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 libconfig 0.2.5. 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='libconfig' 270 PACKAGE_TARNAME='libconfig' 271 PACKAGE_VERSION='0.2.5' 272 PACKAGE_STRING='libconfig 0.2.5' 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 SHOBJEXT SHOBJFLAGS SHOBJLDFLAGS CFLAGS CPPFLAGS AREXT CC LDFLAGS ac_ct_CC EXEEXT OBJEXT SET_MAKE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S RANLIB ac_ct_RANLIB CPP EGREP AR ac_ct_AR SHLIBOBJS 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 libconfig 0.2.5 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 libconfig 0.2.5:";; 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 --enable-small Enable small build of libconfig. (disabled) 850 851 Optional Packages: 852 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 853 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 854 --with-libopennet Enable opennet support (auto) 855 856 Some influential environment variables: 857 CC C compiler command 858 CFLAGS C compiler flags 859 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 860 nonstandard directory <lib dir> 861 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 862 headers in a nonstandard directory <include dir> 863 CPP C preprocessor 864 865 Use these variables to override the choices made by `configure' or to help 866 it to find libraries and programs with nonstandard names/locations. 867 868 _ACEOF 869 fi 870 871 if test "$ac_init_help" = "recursive"; then 872 # If there are subdirs, report their specific --help. 873 ac_popdir=`pwd` 874 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 875 test -d $ac_dir || continue 876 ac_builddir=. 877 878 if test "$ac_dir" != .; then 879 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 880 # A "../" for each directory in $ac_dir_suffix. 881 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 882 else 883 ac_dir_suffix= ac_top_builddir= 884 fi 885 886 case $srcdir in 887 .) # No --srcdir option. We are building in place. 888 ac_srcdir=. 889 if test -z "$ac_top_builddir"; then 890 ac_top_srcdir=. 891 else 892 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 893 fi ;; 894 [\\/]* | ?:[\\/]* ) # Absolute path. 895 ac_srcdir=$srcdir$ac_dir_suffix; 896 ac_top_srcdir=$srcdir ;; 897 *) # Relative path. 898 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 899 ac_top_srcdir=$ac_top_builddir$srcdir ;; 900 esac 901 902 # Do not use `cd foo && pwd` to compute absolute paths, because 903 # the directories may not exist. 904 case `pwd` in 905 .) ac_abs_builddir="$ac_dir";; 906 *) 907 case "$ac_dir" in 908 .) ac_abs_builddir=`pwd`;; 909 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 910 *) ac_abs_builddir=`pwd`/"$ac_dir";; 911 esac;; 912 esac 913 case $ac_abs_builddir in 914 .) ac_abs_top_builddir=${ac_top_builddir}.;; 915 *) 916 case ${ac_top_builddir}. in 917 .) ac_abs_top_builddir=$ac_abs_builddir;; 918 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 919 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 920 esac;; 921 esac 922 case $ac_abs_builddir in 923 .) ac_abs_srcdir=$ac_srcdir;; 924 *) 925 case $ac_srcdir in 926 .) ac_abs_srcdir=$ac_abs_builddir;; 927 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 928 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 929 esac;; 930 esac 931 case $ac_abs_builddir in 932 .) ac_abs_top_srcdir=$ac_top_srcdir;; 933 *) 934 case $ac_top_srcdir in 935 .) ac_abs_top_srcdir=$ac_abs_builddir;; 936 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 937 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 938 esac;; 939 esac 940 941 cd $ac_dir 942 # Check for guested configure; otherwise get Cygnus style configure. 943 if test -f $ac_srcdir/configure.gnu; then 944 echo 945 $SHELL $ac_srcdir/configure.gnu --help=recursive 946 elif test -f $ac_srcdir/configure; then 947 echo 948 $SHELL $ac_srcdir/configure --help=recursive 949 elif test -f $ac_srcdir/configure.ac || 950 test -f $ac_srcdir/configure.in; then 951 echo 952 $ac_configure --help 953 else 954 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 955 fi 956 cd $ac_popdir 957 done 958 fi 959 960 test -n "$ac_init_help" && exit 0 961 if $ac_init_version; then 962 cat <<\_ACEOF 963 libconfig configure 0.2.5 964 generated by GNU Autoconf 2.59 965 966 Copyright (C) 2003 Free Software Foundation, Inc. 967 This configure script is free software; the Free Software Foundation 968 gives unlimited permission to copy, distribute and modify it. 969 _ACEOF 970 exit 0 971 fi 972 exec 5>config.log 973 cat >&5 <<_ACEOF 974 This file contains any messages produced by compilers while 975 running configure, to aid debugging if configure makes a mistake. 976 977 It was created by libconfig $as_me 0.2.5, which was 978 generated by GNU Autoconf 2.59. Invocation command line was 979 980 $ $0 $@ 981 982 _ACEOF 983 { 984 cat <<_ASUNAME 985 ## --------- ## 986 ## Platform. ## 987 ## --------- ## 988 989 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 990 uname -m = `(uname -m) 2>/dev/null || echo unknown` 991 uname -r = `(uname -r) 2>/dev/null || echo unknown` 992 uname -s = `(uname -s) 2>/dev/null || echo unknown` 993 uname -v = `(uname -v) 2>/dev/null || echo unknown` 994 995 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 996 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 997 998 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 999 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1000 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1001 hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 1002 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1003 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1004 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1005 1006 _ASUNAME 1007 1008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1009 for as_dir in $PATH 1010 do 1011 IFS=$as_save_IFS 1012 test -z "$as_dir" && as_dir=. 1013 echo "PATH: $as_dir" 1014 done 1015 1016 } >&5 1017 1018 cat >&5 <<_ACEOF 1019 1020 1021 ## ----------- ## 1022 ## Core tests. ## 1023 ## ----------- ## 1024 1025 _ACEOF 1026 1027 1028 # Keep a trace of the command line. 1029 # Strip out --no-create and --no-recursion so they do not pile up. 1030 # Strip out --silent because we don't want to record it for future runs. 1031 # Also quote any args containing shell meta-characters. 1032 # Make two passes to allow for proper duplicate-argument suppression. 1033 ac_configure_args= 1034 ac_configure_args0= 1035 ac_configure_args1= 1036 ac_sep= 1037 ac_must_keep_next=false 1038 for ac_pass in 1 2 1039 do 1040 for ac_arg 1041 do 1042 case $ac_arg in 1043 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1044 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1045 | -silent | --silent | --silen | --sile | --sil) 1046 continue ;; 1047 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1048 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1049 esac 1050 case $ac_pass in 1051 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1052 2) 1053 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1054 if test $ac_must_keep_next = true; then 1055 ac_must_keep_next=false # Got value, back to normal. 1056 else 1057 case $ac_arg in 1058 *=* | --config-cache | -C | -disable-* | --disable-* \ 1059 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1060 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1061 | -with-* | --with-* | -without-* | --without-* | --x) 1062 case "$ac_configure_args0 " in 1063 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1064 esac 1065 ;; 1066 -* ) ac_must_keep_next=true ;; 1067 esac 1068 fi 1069 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1070 # Get rid of the leading space. 1071 ac_sep=" " 1072 ;; 1073 esac 1074 done 1075 done 1076 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1077 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1078 1079 # When interrupted or exit'd, cleanup temporary files, and complete 1080 # config.log. We remove comments because anyway the quotes in there 1081 # would cause problems or look ugly. 1082 # WARNING: Be sure not to use single quotes in there, as some shells, 1083 # such as our DU 5.0 friend, will then `close' the trap. 1084 trap 'exit_status=$? 1085 # Save into config.log some information that might help in debugging. 1086 { 1087 echo 1088 1089 cat <<\_ASBOX 1090 ## ---------------- ## 1091 ## Cache variables. ## 1092 ## ---------------- ## 1093 _ASBOX 1094 echo 1095 # The following way of writing the cache mishandles newlines in values, 1096 { 1097 (set) 2>&1 | 1098 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1099 *ac_space=\ *) 1100 sed -n \ 1101 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1102 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1103 ;; 1104 *) 1105 sed -n \ 1106 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1107 ;; 1108 esac; 1109 } 1110 echo 1111 1112 cat <<\_ASBOX 1113 ## ----------------- ## 1114 ## Output variables. ## 1115 ## ----------------- ## 1116 _ASBOX 1117 echo 1118 for ac_var in $ac_subst_vars 1119 do 1120 eval ac_val=$`echo $ac_var` 1121 echo "$ac_var='"'"'$ac_val'"'"'" 1122 done | sort 1123 echo 1124 1125 if test -n "$ac_subst_files"; then 1126 cat <<\_ASBOX 1127 ## ------------- ## 1128 ## Output files. ## 1129 ## ------------- ## 1130 _ASBOX 1131 echo 1132 for ac_var in $ac_subst_files 1133 do 1134 eval ac_val=$`echo $ac_var` 1135 echo "$ac_var='"'"'$ac_val'"'"'" 1136 done | sort 1137 echo 1138 fi 1139 1140 if test -s confdefs.h; then 1141 cat <<\_ASBOX 1142 ## ----------- ## 1143 ## confdefs.h. ## 1144 ## ----------- ## 1145 _ASBOX 1146 echo 1147 sed "/^$/d" confdefs.h | sort 1148 echo 1149 fi 1150 test "$ac_signal" != 0 && 1151 echo "$as_me: caught signal $ac_signal" 1152 echo "$as_me: exit $exit_status" 1153 } >&5 1154 rm -f core *.core && 1155 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1156 exit $exit_status 1157 ' 0 1158 for ac_signal in 1 2 13 15; do 1159 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1160 done 1161 ac_signal=0 1162 1163 # confdefs.h avoids OS command line length limits that DEFS can exceed. 1164 rm -rf conftest* confdefs.h 1165 # AIX cpp loses on an empty file, so make sure it contains at least a newline. 1166 echo >confdefs.h 1167 1168 # Predefined preprocessor variables. 1169 1170 cat >>confdefs.h <<_ACEOF 1171 #define PACKAGE_NAME "$PACKAGE_NAME" 1172 _ACEOF 1173 1174 1175 cat >>confdefs.h <<_ACEOF 1176 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1177 _ACEOF 1178 1179 1180 cat >>confdefs.h <<_ACEOF 1181 #define PACKAGE_VERSION "$PACKAGE_VERSION" 1182 _ACEOF 1183 1184 1185 cat >>confdefs.h <<_ACEOF 1186 #define PACKAGE_STRING "$PACKAGE_STRING" 1187 _ACEOF 1188 1189 1190 cat >>confdefs.h <<_ACEOF 1191 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1192 _ACEOF 1193 1194 1195 # Let the site file select an alternate cache file if it wants to. 1196 # Prefer explicitly selected file to automatically selected ones. 1197 if test -z "$CONFIG_SITE"; then 1198 if test "x$prefix" != xNONE; then 1199 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1200 else 1201 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1202 fi 1203 fi 1204 for ac_site_file in $CONFIG_SITE; do 1205 if test -r "$ac_site_file"; then 1206 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1207 echo "$as_me: loading site script $ac_site_file" >&6;} 1208 sed 's/^/| /' "$ac_site_file" >&5 1209 . "$ac_site_file" 1210 fi 1211 done 1212 1213 if test -r "$cache_file"; then 1214 # Some versions of bash will fail to source /dev/null (special 1215 # files actually), so we avoid doing that. 1216 if test -f "$cache_file"; then 1217 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1218 echo "$as_me: loading cache $cache_file" >&6;} 1219 case $cache_file in 1220 [\\/]* | ?:[\\/]* ) . $cache_file;; 1221 *) . ./$cache_file;; 1222 esac 1223 fi 1224 else 1225 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1226 echo "$as_me: creating cache $cache_file" >&6;} 1227 >$cache_file 1228 fi 1229 1230 # Check that the precious variables saved in the cache have kept the same 1231 # value. 1232 ac_cache_corrupted=false 1233 for ac_var in `(set) 2>&1 | 1234 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1235 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1236 eval ac_new_set=\$ac_env_${ac_var}_set 1237 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1238 eval ac_new_val="\$ac_env_${ac_var}_value" 1239 case $ac_old_set,$ac_new_set in 1240 set,) 1241 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1242 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1243 ac_cache_corrupted=: ;; 1244 ,set) 1245 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1246 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1247 ac_cache_corrupted=: ;; 1248 ,);; 1249 *) 1250 if test "x$ac_old_val" != "x$ac_new_val"; then 1251 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1252 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1253 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1254 echo "$as_me: former value: $ac_old_val" >&2;} 1255 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1256 echo "$as_me: current value: $ac_new_val" >&2;} 1257 ac_cache_corrupted=: 1258 fi;; 1259 esac 1260 # Pass precious variables to config.status. 1261 if test "$ac_new_set" = set; then 1262 case $ac_new_val in 1263 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1264 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1265 *) ac_arg=$ac_var=$ac_new_val ;; 1266 esac 1267 case " $ac_configure_args " in 1268 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1269 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1270 esac 1271 fi 1272 done 1273 if $ac_cache_corrupted; then 1274 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1275 echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1276 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1277 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1278 { (exit 1); exit 1; }; } 1279 fi 1280 1281 ac_ext=c 1282 ac_cpp='$CPP $CPPFLAGS' 1283 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1284 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1285 ac_compiler_gnu=$ac_cv_c_compiler_gnu 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 ac_config_headers="$ac_config_headers config.h" 1314 1315 1316 ac_aux_dir= 1317 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 1318 if test -f $ac_dir/install-sh; then 1319 ac_aux_dir=$ac_dir 1320 ac_install_sh="$ac_aux_dir/install-sh -c" 1321 break 1322 elif test -f $ac_dir/install.sh; then 1323 ac_aux_dir=$ac_dir 1324 ac_install_sh="$ac_aux_dir/install.sh -c" 1325 break 1326 elif test -f $ac_dir/shtool; then 1327 ac_aux_dir=$ac_dir 1328 ac_install_sh="$ac_aux_dir/shtool install -c" 1329 break 1330 fi 1331 done 1332 if test -z "$ac_aux_dir"; then 1333 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 1334 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 1335 { (exit 1); exit 1; }; } 1336 fi 1337 ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1338 ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1339 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1340 1341 # Make sure we can run config.sub. 1342 $ac_config_sub sun4 >/dev/null 2>&1 || 1343 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 1344 echo "$as_me: error: cannot run $ac_config_sub" >&2;} 1345 { (exit 1); exit 1; }; } 1346 1347 echo "$as_me:$LINENO: checking build system type" >&5 1348 echo $ECHO_N "checking build system type... $ECHO_C" >&6 1349 if test "${ac_cv_build+set}" = set; then 1350 echo $ECHO_N "(cached) $ECHO_C" >&6 1351 else 1352 ac_cv_build_alias=$build_alias 1353 test -z "$ac_cv_build_alias" && 1354 ac_cv_build_alias=`$ac_config_guess` 1355 test -z "$ac_cv_build_alias" && 1356 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 1357 echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 1358 { (exit 1); exit 1; }; } 1359 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 1360 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 1361 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} 1362 { (exit 1); exit 1; }; } 1363 1364 fi 1365 echo "$as_me:$LINENO: result: $ac_cv_build" >&5 1366 echo "${ECHO_T}$ac_cv_build" >&6 1367 build=$ac_cv_build 1368 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1369 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1370 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1371 1372 1373 1374 echo "$as_me:$LINENO: checking host system type" >&5 1375 echo $ECHO_N "checking host system type... $ECHO_C" >&6 1376 if test "${ac_cv_host+set}" = set; then 1377 echo $ECHO_N "(cached) $ECHO_C" >&6 1378 else 1379 ac_cv_host_alias=$host_alias 1380 test -z "$ac_cv_host_alias" && 1381 ac_cv_host_alias=$ac_cv_build_alias 1382 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 1383 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 1384 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 1385 { (exit 1); exit 1; }; } 1386 1387 fi 1388 echo "$as_me:$LINENO: result: $ac_cv_host" >&5 1389 echo "${ECHO_T}$ac_cv_host" >&6 1390 host=$ac_cv_host 1391 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1392 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1393 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 echo "$as_me:$LINENO: checking host operating system" >&5 1404 echo $ECHO_N "checking host operating system... $ECHO_C" >&6 1405 echo "$as_me:$LINENO: result: $host_os" >&5 1406 echo "${ECHO_T}$host_os" >&6 1407 1408 SHOBJEXT="so" 1409 AREXT="a" 1410 1411 case $host_os in 1412 darwin*) 1413 SHOBJEXT="dylib" 1414 ;; 1415 hpux*) 1416 SHOBJEXT="sl" 1417 ;; 1418 mingw32msvc*) 1419 SHOBJEXT="dll" 1420 SHOBJFLAGS="-DPIC" 1421 CFLAGS="$CFLAGS -mno-cygwin -mms-bitfields" 1422 CPPFLAGS="$CPPFLAGS -mno-cygwin -mms-bitfields" 1423 SHOBJLDFLAGS='-shared -Wl,--dll -Wl,--enable-auto-image-base -Wl,--output-def,$@.def,--out-implib,$@.a' 1424 ;; 1425 cygwin*) 1426 SHOBJEXT="dll" 1427 SHOBJFLAGS="-fPIC -DPIC" 1428 CFLAGS="$CFLAGS -mms-bitfields" 1429 CPPFLAGS="$CPPFLAGS -mms-bitfields" 1430 SHOBJLDFLAGS='-shared -Wl,--enable-auto-image-base -Wl,--output-def,$@.def,--out-implib,$@.a' 1431 ;; 1432 esac 1433 1434 1435 ac_ext=c 1436 ac_cpp='$CPP $CPPFLAGS' 1437 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1438 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1439 ac_compiler_gnu=$ac_cv_c_compiler_gnu 1440 if test -n "$ac_tool_prefix"; then 1441 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1442 set dummy ${ac_tool_prefix}gcc; ac_word=$2 1443 echo "$as_me:$LINENO: checking for $ac_word" >&5 1444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1445 if test "${ac_cv_prog_CC+set}" = set; then 1446 echo $ECHO_N "(cached) $ECHO_C" >&6 1447 else 1448 if test -n "$CC"; then 1449 ac_cv_prog_CC="$CC" # Let the user override the test. 1450 else 1451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1452 for as_dir in $PATH 1453 do 1454 IFS=$as_save_IFS 1455 test -z "$as_dir" && as_dir=. 1456 for ac_exec_ext in '' $ac_executable_extensions; do 1457 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1458 ac_cv_prog_CC="${ac_tool_prefix}gcc" 1459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1460 break 2 1461 fi 1462 done 1463 done 1464 1465 fi 1466 fi 1467 CC=$ac_cv_prog_CC 1468 if test -n "$CC"; then 1469 echo "$as_me:$LINENO: result: $CC" >&5 1470 echo "${ECHO_T}$CC" >&6 1471 else 1472 echo "$as_me:$LINENO: result: no" >&5 1473 echo "${ECHO_T}no" >&6 1474 fi 1475 1476 fi 1477 if test -z "$ac_cv_prog_CC"; then 1478 ac_ct_CC=$CC 1479 # Extract the first word of "gcc", so it can be a program name with args. 1480 set dummy gcc; ac_word=$2 1481 echo "$as_me:$LINENO: checking for $ac_word" >&5 1482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1483 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1484 echo $ECHO_N "(cached) $ECHO_C" >&6 1485 else 1486 if test -n "$ac_ct_CC"; then 1487 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1488 else 1489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1490 for as_dir in $PATH 1491 do 1492 IFS=$as_save_IFS 1493 test -z "$as_dir" && as_dir=. 1494 for ac_exec_ext in '' $ac_executable_extensions; do 1495 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1496 ac_cv_prog_ac_ct_CC="gcc" 1497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1498 break 2 1499 fi 1500 done 1501 done 1502 1503 fi 1504 fi 1505 ac_ct_CC=$ac_cv_prog_ac_ct_CC 1506 if test -n "$ac_ct_CC"; then 1507 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1508 echo "${ECHO_T}$ac_ct_CC" >&6 1509 else 1510 echo "$as_me:$LINENO: result: no" >&5 1511 echo "${ECHO_T}no" >&6 1512 fi 1513 1514 CC=$ac_ct_CC 1515 else 1516 CC="$ac_cv_prog_CC" 1517 fi 1518 1519 if test -z "$CC"; then 1520 if test -n "$ac_tool_prefix"; then 1521 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1522 set dummy ${ac_tool_prefix}cc; ac_word=$2 1523 echo "$as_me:$LINENO: checking for $ac_word" >&5 1524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1525 if test "${ac_cv_prog_CC+set}" = set; then 1526 echo $ECHO_N "(cached) $ECHO_C" >&6 1527 else 1528 if test -n "$CC"; then 1529 ac_cv_prog_CC="$CC" # Let the user override the test. 1530 else 1531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1532 for as_dir in $PATH 1533 do 1534 IFS=$as_save_IFS 1535 test -z "$as_dir" && as_dir=. 1536 for ac_exec_ext in '' $ac_executable_extensions; do 1537 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1538 ac_cv_prog_CC="${ac_tool_prefix}cc" 1539 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1540 break 2 1541 fi 1542 done 1543 done 1544 1545 fi 1546 fi 1547 CC=$ac_cv_prog_CC 1548 if test -n "$CC"; then 1549 echo "$as_me:$LINENO: result: $CC" >&5 1550 echo "${ECHO_T}$CC" >&6 1551 else 1552 echo "$as_me:$LINENO: result: no" >&5 1553 echo "${ECHO_T}no" >&6 1554 fi 1555 1556 fi 1557 if test -z "$ac_cv_prog_CC"; then 1558 ac_ct_CC=$CC 1559 # Extract the first word of "cc", so it can be a program name with args. 1560 set dummy cc; ac_word=$2 1561 echo "$as_me:$LINENO: checking for $ac_word" >&5 1562 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1563 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1564 echo $ECHO_N "(cached) $ECHO_C" >&6 1565 else 1566 if test -n "$ac_ct_CC"; then 1567 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1568 else 1569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1570 for as_dir in $PATH 1571 do 1572 IFS=$as_save_IFS 1573 test -z "$as_dir" && as_dir=. 1574 for ac_exec_ext in '' $ac_executable_extensions; do 1575 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1576 ac_cv_prog_ac_ct_CC="cc" 1577 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1578 break 2 1579 fi 1580 done 1581 done 1582 1583 fi 1584 fi 1585 ac_ct_CC=$ac_cv_prog_ac_ct_CC 1586 if test -n "$ac_ct_CC"; then 1587 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1588 echo "${ECHO_T}$ac_ct_CC" >&6 1589 else 1590 echo "$as_me:$LINENO: result: no" >&5 1591 echo "${ECHO_T}no" >&6 1592 fi 1593 1594 CC=$ac_ct_CC 1595 else 1596 CC="$ac_cv_prog_CC" 1597 fi 1598 1599 fi 1600 if test -z "$CC"; then 1601 # Extract the first word of "cc", so it can be a program name with args. 1602 set dummy cc; ac_word=$2 1603 echo "$as_me:$LINENO: checking for $ac_word" >&5 1604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1605 if test "${ac_cv_prog_CC+set}" = set; then 1606 echo $ECHO_N "(cached) $ECHO_C" >&6 1607 else 1608 if test -n "$CC"; then 1609 ac_cv_prog_CC="$CC" # Let the user override the test. 1610 else 1611 ac_prog_rejected=no 1612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1613 for as_dir in $PATH 1614 do 1615 IFS=$as_save_IFS 1616 test -z "$as_dir" && as_dir=. 1617 for ac_exec_ext in '' $ac_executable_extensions; do 1618 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1619 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 1620 ac_prog_rejected=yes 1621 continue 1622 fi 1623 ac_cv_prog_CC="cc" 1624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1625 break 2 1626 fi 1627 done 1628 done 1629 1630 if test $ac_prog_rejected = yes; then 1631 # We found a bogon in the path, so make sure we never use it. 1632 set dummy $ac_cv_prog_CC 1633 shift 1634 if test $# != 0; then 1635 # We chose a different compiler from the bogus one. 1636 # However, it has the same basename, so the bogon will be chosen 1637 # first if we set CC to just the basename; use the full file name. 1638 shift 1639 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 1640 fi 1641 fi 1642 fi 1643 fi 1644 CC=$ac_cv_prog_CC 1645 if test -n "$CC"; then 1646 echo "$as_me:$LINENO: result: $CC" >&5 1647 echo "${ECHO_T}$CC" >&6 1648 else 1649 echo "$as_me:$LINENO: result: no" >&5 1650 echo "${ECHO_T}no" >&6 1651 fi 1652 1653 fi 1654 if test -z "$CC"; then 1655 if test -n "$ac_tool_prefix"; then 1656 for ac_prog in cl 1657 do 1658 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1659 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1660 echo "$as_me:$LINENO: checking for $ac_word" >&5 1661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1662 if test "${ac_cv_prog_CC+set}" = set; then 1663 echo $ECHO_N "(cached) $ECHO_C" >&6 1664 else 1665 if test -n "$CC"; then 1666 ac_cv_prog_CC="$CC" # Let the user override the test. 1667 else 1668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1669 for as_dir in $PATH 1670 do 1671 IFS=$as_save_IFS 1672 test -z "$as_dir" && as_dir=. 1673 for ac_exec_ext in '' $ac_executable_extensions; do 1674 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1675 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 1676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1677 break 2 1678 fi 1679 done 1680 done 1681 1682 fi 1683 fi 1684 CC=$ac_cv_prog_CC 1685 if test -n "$CC"; then 1686 echo "$as_me:$LINENO: result: $CC" >&5 1687 echo "${ECHO_T}$CC" >&6 1688 else 1689 echo "$as_me:$LINENO: result: no" >&5 1690 echo "${ECHO_T}no" >&6 1691 fi 1692 1693 test -n "$CC" && break 1694 done 1695 fi 1696 if test -z "$CC"; then 1697 ac_ct_CC=$CC 1698 for ac_prog in cl 1699 do 1700 # Extract the first word of "$ac_prog", so it can be a program name with args. 1701 set dummy $ac_prog; ac_word=$2 1702 echo "$as_me:$LINENO: checking for $ac_word" >&5 1703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1704 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1705 echo $ECHO_N "(cached) $ECHO_C" >&6 1706 else 1707 if test -n "$ac_ct_CC"; then 1708 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1709 else 1710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1711 for as_dir in $PATH 1712 do 1713 IFS=$as_save_IFS 1714 test -z "$as_dir" && as_dir=. 1715 for ac_exec_ext in '' $ac_executable_extensions; do 1716 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1717 ac_cv_prog_ac_ct_CC="$ac_prog" 1718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1719 break 2 1720 fi 1721 done 1722 done 1723 1724 fi 1725 fi 1726 ac_ct_CC=$ac_cv_prog_ac_ct_CC 1727 if test -n "$ac_ct_CC"; then 1728 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1729 echo "${ECHO_T}$ac_ct_CC" >&6 1730 else 1731 echo "$as_me:$LINENO: result: no" >&5 1732 echo "${ECHO_T}no" >&6 1733 fi 1734 1735 test -n "$ac_ct_CC" && break 1736 done 1737 1738 CC=$ac_ct_CC 1739 fi 1740 1741 fi 1742 1743 1744 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 1745 See \`config.log' for more details." >&5 1746 echo "$as_me: error: no acceptable C compiler found in \$PATH 1747 See \`config.log' for more details." >&2;} 1748 { (exit 1); exit 1; }; } 1749 1750 # Provide some information about the compiler. 1751 echo "$as_me:$LINENO:" \ 1752 "checking for C compiler version" >&5 1753 ac_compiler=`set X $ac_compile; echo $2` 1754 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 1755 (eval $ac_compiler --version </dev/null >&5) 2>&5 1756 ac_status=$? 1757 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1758 (exit $ac_status); } 1759 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 1760 (eval $ac_compiler -v </dev/null >&5) 2>&5 1761 ac_status=$? 1762 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1763 (exit $ac_status); } 1764 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 1765 (eval $ac_compiler -V </dev/null >&5) 2>&5 1766 ac_status=$? 1767 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1768 (exit $ac_status); } 1769 1770 cat >conftest.$ac_ext <<_ACEOF 1771 /* confdefs.h. */ 1772 _ACEOF 1773 cat confdefs.h >>conftest.$ac_ext 1774 cat >>conftest.$ac_ext <<_ACEOF 1775 /* end confdefs.h. */ 1776 1777 int 1778 main () 1779 { 1780 1781 ; 1782 return 0; 1783 } 1784 _ACEOF 1785 ac_clean_files_save=$ac_clean_files 1786 ac_clean_files="$ac_clean_files a.out a.exe b.out" 1787 # Try to create an executable without -o first, disregard a.out. 1788 # It will help us diagnose broken compilers, and finding out an intuition 1789 # of exeext. 1790 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 1791 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 1792 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 1793 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 1794 (eval $ac_link_default) 2>&5 1795 ac_status=$? 1796 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1797 (exit $ac_status); }; then 1798 # Find the output, starting from the most likely. This scheme is 1799 # not robust to junk in `.', hence go to wildcards (a.*) only as a last 1800 # resort. 1801 1802 # Be careful to initialize this variable, since it used to be cached. 1803 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 1804 ac_cv_exeext= 1805 # b.out is created by i960 compilers. 1806 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 1807 do 1808 test -f "$ac_file" || continue 1809 case $ac_file in 1810 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 1811 ;; 1812 conftest.$ac_ext ) 1813 # This is the source file. 1814 ;; 1815 [ab].out ) 1816 # We found the default executable, but exeext='' is most 1817 # certainly right. 1818 break;; 1819 *.* ) 1820 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1821 # FIXME: I believe we export ac_cv_exeext for Libtool, 1822 # but it would be cool to find out if it's true. Does anybody 1823 # maintain Libtool? --akim. 1824 export ac_cv_exeext 1825 break;; 1826 * ) 1827 break;; 1828 esac 1829 done 1830 else 1831 echo "$as_me: failed program was:" >&5 1832 sed 's/^/| /' conftest.$ac_ext >&5 1833 1834 { { echo "$as_me:$LINENO: error: C compiler cannot create executables 1835 See \`config.log' for more details." >&5 1836 echo "$as_me: error: C compiler cannot create executables 1837 See \`config.log' for more details." >&2;} 1838 { (exit 77); exit 77; }; } 1839 fi 1840 1841 ac_exeext=$ac_cv_exeext 1842 echo "$as_me:$LINENO: result: $ac_file" >&5 1843 echo "${ECHO_T}$ac_file" >&6 1844 1845 # Check the compiler produces executables we can run. If not, either 1846 # the compiler is broken, or we cross compile. 1847 echo "$as_me:$LINENO: checking whether the C compiler works" >&5 1848 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 1849 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 1850 # If not cross compiling, check that we can run a simple program. 1851 if test "$cross_compiling" != yes; then 1852 if { ac_try='./$ac_file' 1853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1854 (eval $ac_try) 2>&5 1855 ac_status=$? 1856 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1857 (exit $ac_status); }; }; then 1858 cross_compiling=no 1859 else 1860 if test "$cross_compiling" = maybe; then 1861 cross_compiling=yes 1862 else 1863 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 1864 If you meant to cross compile, use \`--host'. 1865 See \`config.log' for more details." >&5 1866 echo "$as_me: error: cannot run C compiled programs. 1867 If you meant to cross compile, use \`--host'. 1868 See \`config.log' for more details." >&2;} 1869 { (exit 1); exit 1; }; } 1870 fi 1871 fi 1872 fi 1873 echo "$as_me:$LINENO: result: yes" >&5 1874 echo "${ECHO_T}yes" >&6 1875 1876 rm -f a.out a.exe conftest$ac_cv_exeext b.out 1877 ac_clean_files=$ac_clean_files_save 1878 # Check the compiler produces executables we can run. If not, either 1879 # the compiler is broken, or we cross compile. 1880 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 1881 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 1882 echo "$as_me:$LINENO: result: $cross_compiling" >&5 1883 echo "${ECHO_T}$cross_compiling" >&6 1884 1885 echo "$as_me:$LINENO: checking for suffix of executables" >&5 1886 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 1887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 1888 (eval $ac_link) 2>&5 1889 ac_status=$? 1890 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1891 (exit $ac_status); }; then 1892 # If both `conftest.exe' and `conftest' are `present' (well, observable) 1893 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 1894 # work properly (i.e., refer to `conftest.exe'), while it won't with 1895 # `rm'. 1896 for ac_file in conftest.exe conftest conftest.*; do 1897 test -f "$ac_file" || continue 1898 case $ac_file in 1899 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 1900 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1901 export ac_cv_exeext 1902 break;; 1903 * ) break;; 1904 esac 1905 done 1906 else 1907 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 1908 See \`config.log' for more details." >&5 1909 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 1910 See \`config.log' for more details." >&2;} 1911 { (exit 1); exit 1; }; } 1912 fi 1913 1914 rm -f conftest$ac_cv_exeext 1915 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 1916 echo "${ECHO_T}$ac_cv_exeext" >&6 1917 1918 rm -f conftest.$ac_ext 1919 EXEEXT=$ac_cv_exeext 1920 ac_exeext=$EXEEXT 1921 echo "$as_me:$LINENO: checking for suffix of object files" >&5 1922 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 1923 if test "${ac_cv_objext+set}" = set; then 1924 echo $ECHO_N "(cached) $ECHO_C" >&6 1925 else 1926 cat >conftest.$ac_ext <<_ACEOF 1927 /* confdefs.h. */ 1928 _ACEOF 1929 cat confdefs.h >>conftest.$ac_ext 1930 cat >>conftest.$ac_ext <<_ACEOF 1931 /* end confdefs.h. */ 1932 1933 int 1934 main () 1935 { 1936 1937 ; 1938 return 0; 1939 } 1940 _ACEOF 1941 rm -f conftest.o conftest.obj 1942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1943 (eval $ac_compile) 2>&5 1944 ac_status=$? 1945 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1946 (exit $ac_status); }; then 1947 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 1948 case $ac_file in 1949 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 1950 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 1951 break;; 1952 esac 1953 done 1954 else 1955 echo "$as_me: failed program was:" >&5 1956 sed 's/^/| /' conftest.$ac_ext >&5 1957 1958 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 1959 See \`config.log' for more details." >&5 1960 echo "$as_me: error: cannot compute suffix of object files: cannot compile 1961 See \`config.log' for more details." >&2;} 1962 { (exit 1); exit 1; }; } 1963 fi 1964 1965 rm -f conftest.$ac_cv_objext conftest.$ac_ext 1966 fi 1967 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 1968 echo "${ECHO_T}$ac_cv_objext" >&6 1969 OBJEXT=$ac_cv_objext 1970 ac_objext=$OBJEXT 1971 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 1972 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 1973 if test "${ac_cv_c_compiler_gnu+set}" = set; then 1974 echo $ECHO_N "(cached) $ECHO_C" >&6 1975 else 1976 cat >conftest.$ac_ext <<_ACEOF 1977 /* confdefs.h. */ 1978 _ACEOF 1979 cat confdefs.h >>conftest.$ac_ext 1980 cat >>conftest.$ac_ext <<_ACEOF 1981 /* end confdefs.h. */ 1982 1983 int 1984 main () 1985 { 1986 #ifndef __GNUC__ 1987 choke me 1988 #endif 1989 1990 ; 1991 return 0; 1992 } 1993 _ACEOF 1994 rm -f conftest.$ac_objext 1995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1996 (eval $ac_compile) 2>conftest.er1 1997 ac_status=$? 1998 grep -v '^ *+' conftest.er1 >conftest.err 1999 rm -f conftest.er1 2000 cat conftest.err >&5 2001 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2002 (exit $ac_status); } && 2003 { ac_try='test -z "$ac_c_werror_flag" 2004 || test ! -s conftest.err' 2005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2006 (eval $ac_try) 2>&5 2007 ac_status=$? 2008 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2009 (exit $ac_status); }; } && 2010 { ac_try='test -s conftest.$ac_objext' 2011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2012 (eval $ac_try) 2>&5 2013 ac_status=$? 2014 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2015 (exit $ac_status); }; }; then 2016 ac_compiler_gnu=yes 2017 else 2018 echo "$as_me: failed program was:" >&5 2019 sed 's/^/| /' conftest.$ac_ext >&5 2020 2021 ac_compiler_gnu=no 2022 fi 2023 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2024 ac_cv_c_compiler_gnu=$ac_compiler_gnu 2025 2026 fi 2027 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2028 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 2029 GCC=`test $ac_compiler_gnu = yes && echo yes` 2030 ac_test_CFLAGS=${CFLAGS+set} 2031 ac_save_CFLAGS=$CFLAGS 2032 CFLAGS="-g" 2033 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2034 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 2035 if test "${ac_cv_prog_cc_g+set}" = set; then 2036 echo $ECHO_N "(cached) $ECHO_C" >&6 2037 else 2038 cat >conftest.$ac_ext <<_ACEOF 2039 /* confdefs.h. */ 2040 _ACEOF 2041 cat confdefs.h >>conftest.$ac_ext 2042 cat >>conftest.$ac_ext <<_ACEOF 2043 /* end confdefs.h. */ 2044 2045 int 2046 main () 2047 { 2048 2049 ; 2050 return 0; 2051 } 2052 _ACEOF 2053 rm -f conftest.$ac_objext 2054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2055 (eval $ac_compile) 2>conftest.er1 2056 ac_status=$? 2057 grep -v '^ *+' conftest.er1 >conftest.err 2058 rm -f conftest.er1 2059 cat conftest.err >&5 2060 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2061 (exit $ac_status); } && 2062 { ac_try='test -z "$ac_c_werror_flag" 2063 || test ! -s conftest.err' 2064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2065 (eval $ac_try) 2>&5 2066 ac_status=$? 2067 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2068 (exit $ac_status); }; } && 2069 { ac_try='test -s conftest.$ac_objext' 2070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2071 (eval $ac_try) 2>&5 2072 ac_status=$? 2073 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2074 (exit $ac_status); }; }; then 2075 ac_cv_prog_cc_g=yes 2076 else 2077 echo "$as_me: failed program was:" >&5 2078 sed 's/^/| /' conftest.$ac_ext >&5 2079 2080 ac_cv_prog_cc_g=no 2081 fi 2082 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2083 fi 2084 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2085 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 2086 if test "$ac_test_CFLAGS" = set; then 2087 CFLAGS=$ac_save_CFLAGS 2088 elif test $ac_cv_prog_cc_g = yes; then 2089 if test "$GCC" = yes; then 2090 CFLAGS="-g -O2" 2091 else 2092 CFLAGS="-g" 2093 fi 2094 else 2095 if test "$GCC" = yes; then 2096 CFLAGS="-O2" 2097 else 2098 CFLAGS= 2099 fi 2100 fi 2101 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2102 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2103 if test "${ac_cv_prog_cc_stdc+set}" = set; then 2104 echo $ECHO_N "(cached) $ECHO_C" >&6 2105 else 2106 ac_cv_prog_cc_stdc=no 2107 ac_save_CC=$CC 2108 cat >conftest.$ac_ext <<_ACEOF 2109 /* confdefs.h. */ 2110 _ACEOF 2111 cat confdefs.h >>conftest.$ac_ext 2112 cat >>conftest.$ac_ext <<_ACEOF 2113 /* end confdefs.h. */ 2114 #include <stdarg.h> 2115 #include <stdio.h> 2116 #include <sys/types.h> 2117 #include <sys/stat.h> 2118 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2119 struct buf { int x; }; 2120 FILE * (*rcsopen) (struct buf *, struct stat *, int); 2121 static char *e (p, i) 2122 char **p; 2123 int i; 2124 { 2125 return p[i]; 2126 } 2127 static char *f (char * (*g) (char **, int), char **p, ...) 2128 { 2129 char *s; 2130 va_list v; 2131 va_start (v,p); 2132 s = g (p, va_arg (v,int)); 2133 va_end (v); 2134 return s; 2135 } 2136 2137 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2138 function prototypes and stuff, but not '\xHH' hex character constants. 2139 These don't provoke an error unfortunately, instead are silently treated 2140 as 'x'. The following induces an error, until -std1 is added to get 2141 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2142 array size at least. It's necessary to write '\x00'==0 to get something 2143 that's true only with -std1. */ 2144 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2145 2146 int test (int i, double x); 2147 struct s1 {int (*f) (int a);}; 2148 struct s2 {int (*f) (double a);}; 2149 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2150 int argc; 2151 char **argv; 2152 int 2153 main () 2154 { 2155 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2156 ; 2157 return 0; 2158 } 2159 _ACEOF 2160 # Don't try gcc -ansi; that turns off useful extensions and 2161 # breaks some systems' header files. 2162 # AIX -qlanglvl=ansi 2163 # Ultrix and OSF/1 -std1 2164 # HP-UX 10.20 and later -Ae 2165 # HP-UX older versions -Aa -D_HPUX_SOURCE 2166 # SVR4 -Xc -D__EXTENSIONS__ 2167 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2168 do 2169 CC="$ac_save_CC $ac_arg" 2170 rm -f conftest.$ac_objext 2171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2172 (eval $ac_compile) 2>conftest.er1 2173 ac_status=$? 2174 grep -v '^ *+' conftest.er1 >conftest.err 2175 rm -f conftest.er1 2176 cat conftest.err >&5 2177 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2178 (exit $ac_status); } && 2179 { ac_try='test -z "$ac_c_werror_flag" 2180 || test ! -s conftest.err' 2181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2182 (eval $ac_try) 2>&5 2183 ac_status=$? 2184 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2185 (exit $ac_status); }; } && 2186 { ac_try='test -s conftest.$ac_objext' 2187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2188 (eval $ac_try) 2>&5 2189 ac_status=$? 2190 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2191 (exit $ac_status); }; }; then 2192 ac_cv_prog_cc_stdc=$ac_arg 2193 break 2194 else 2195 echo "$as_me: failed program was:" >&5 2196 sed 's/^/| /' conftest.$ac_ext >&5 2197 2198 fi 2199 rm -f conftest.err conftest.$ac_objext 2200 done 2201 rm -f conftest.$ac_ext conftest.$ac_objext 2202 CC=$ac_save_CC 2203 2204 fi 2205 2206 case "x$ac_cv_prog_cc_stdc" in 2207 x|xno) 2208 echo "$as_me:$LINENO: result: none needed" >&5 2209 echo "${ECHO_T}none needed" >&6 ;; 2210 *) 2211 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2212 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2213 CC="$CC $ac_cv_prog_cc_stdc" ;; 2214 esac 2215 2216 # Some people use a C++ compiler to compile C. Since we use `exit', 2217 # in C++ we need to declare it. In case someone uses the same compiler 2218 # for both compiling C and C++ we need to have the C++ compiler decide 2219 # the declaration of exit, since it's the most demanding environment. 2220 cat >conftest.$ac_ext <<_ACEOF 2221 #ifndef __cplusplus 2222 choke me 2223 #endif 2224 _ACEOF 2225 rm -f conftest.$ac_objext 2226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2227 (eval $ac_compile) 2>conftest.er1 2228 ac_status=$? 2229 grep -v '^ *+' conftest.er1 >conftest.err 2230 rm -f conftest.er1 2231 cat conftest.err >&5 2232 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2233 (exit $ac_status); } && 2234 { ac_try='test -z "$ac_c_werror_flag" 2235 || test ! -s conftest.err' 2236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2237 (eval $ac_try) 2>&5 2238 ac_status=$? 2239 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2240 (exit $ac_status); }; } && 2241 { ac_try='test -s conftest.$ac_objext' 2242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2243 (eval $ac_try) 2>&5 2244 ac_status=$? 2245 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2246 (exit $ac_status); }; }; then 2247 for ac_declaration in \ 2248 '' \ 2249 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2250 'extern "C" void std::exit (int); using std::exit;' \ 2251 'extern "C" void exit (int) throw ();' \ 2252 'extern "C" void exit (int);' \ 2253 'void exit (int);' 2254 do 2255 cat >conftest.$ac_ext <<_ACEOF 2256 /* confdefs.h. */ 2257 _ACEOF 2258 cat confdefs.h >>conftest.$ac_ext 2259 cat >>conftest.$ac_ext <<_ACEOF 2260 /* end confdefs.h. */ 2261 $ac_declaration 2262 #include <stdlib.h> 2263 int 2264 main () 2265 { 2266 exit (42); 2267 ; 2268 return 0; 2269 } 2270 _ACEOF 2271 rm -f conftest.$ac_objext 2272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2273 (eval $ac_compile) 2>conftest.er1 2274 ac_status=$? 2275 grep -v '^ *+' conftest.er1 >conftest.err 2276 rm -f conftest.er1 2277 cat conftest.err >&5 2278 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2279 (exit $ac_status); } && 2280 { ac_try='test -z "$ac_c_werror_flag" 2281 || test ! -s conftest.err' 2282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2283 (eval $ac_try) 2>&5 2284 ac_status=$? 2285 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2286 (exit $ac_status); }; } && 2287 { ac_try='test -s conftest.$ac_objext' 2288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2289 (eval $ac_try) 2>&5 2290 ac_status=$? 2291 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2292 (exit $ac_status); }; }; then 2293 : 2294 else 2295 echo "$as_me: failed program was:" >&5 2296 sed 's/^/| /' conftest.$ac_ext >&5 2297 2298 continue 2299 fi 2300 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2301 cat >conftest.$ac_ext <<_ACEOF 2302 /* confdefs.h. */ 2303 _ACEOF 2304 cat confdefs.h >>conftest.$ac_ext 2305 cat >>conftest.$ac_ext <<_ACEOF 2306 /* end confdefs.h. */ 2307 $ac_declaration 2308 int 2309 main () 2310 { 2311 exit (42); 2312 ; 2313 return 0; 2314 } 2315 _ACEOF 2316 rm -f conftest.$ac_objext 2317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2318 (eval $ac_compile) 2>conftest.er1 2319 ac_status=$? 2320 grep -v '^ *+' conftest.er1 >conftest.err 2321 rm -f conftest.er1 2322 cat conftest.err >&5 2323 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2324 (exit $ac_status); } && 2325 { ac_try='test -z "$ac_c_werror_flag" 2326 || test ! -s conftest.err' 2327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2328 (eval $ac_try) 2>&5 2329 ac_status=$? 2330 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2331 (exit $ac_status); }; } && 2332 { ac_try='test -s conftest.$ac_objext' 2333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2334 (eval $ac_try) 2>&5 2335 ac_status=$? 2336 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2337 (exit $ac_status); }; }; then 2338 break 2339 else 2340 echo "$as_me: failed program was:" >&5 2341 sed 's/^/| /' conftest.$ac_ext >&5 2342 2343 fi 2344 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2345 done 2346 rm -f conftest* 2347 if test -n "$ac_declaration"; then 2348 echo '#ifdef __cplusplus' >>confdefs.h 2349 echo $ac_declaration >>confdefs.h 2350 echo '#endif' >>confdefs.h 2351 fi 2352 2353 else 2354 echo "$as_me: failed program was:" >&5 2355 sed 's/^/| /' conftest.$ac_ext >&5 2356 2357 fi 2358 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2359 ac_ext=c 2360 ac_cpp='$CPP $CPPFLAGS' 2361 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2362 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2363 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2364 2365 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2366 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 2367 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` 2368 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 2369 echo $ECHO_N "(cached) $ECHO_C" >&6 2370 else 2371 cat >conftest.make <<\_ACEOF 2372 all: 2373 @echo 'ac_maketemp="$(MAKE)"' 2374 _ACEOF 2375 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2376 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 2377 if test -n "$ac_maketemp"; then 2378 eval ac_cv_prog_make_${ac_make}_set=yes 2379 else 2380 eval ac_cv_prog_make_${ac_make}_set=no 2381 fi 2382 rm -f conftest.make 2383 fi 2384 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 2385 echo "$as_me:$LINENO: result: yes" >&5 2386 echo "${ECHO_T}yes" >&6 2387 SET_MAKE= 2388 else 2389 echo "$as_me:$LINENO: result: no" >&5 2390 echo "${ECHO_T}no" >&6 2391 SET_MAKE="MAKE=${MAKE-make}" 2392 fi 2393 2394 # Find a good install program. We prefer a C program (faster), 2395 # so one script is as good as another. But avoid the broken or 2396 # incompatible versions: 2397 # SysV /etc/install, /usr/sbin/install 2398 # SunOS /usr/etc/install 2399 # IRIX /sbin/install 2400 # AIX /bin/install 2401 # AmigaOS /C/install, which installs bootblocks on floppy discs 2402 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2403 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 2404 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2405 # OS/2's system install, which has a completely different semantic 2406 # ./install, which can be erroneously created by make from ./install.sh. 2407 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2408 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 2409 if test -z "$INSTALL"; then 2410 if test "${ac_cv_path_install+set}" = set; then 2411 echo $ECHO_N "(cached) $ECHO_C" >&6 2412 else 2413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2414 for as_dir in $PATH 2415 do 2416 IFS=$as_save_IFS 2417 test -z "$as_dir" && as_dir=. 2418 # Account for people who put trailing slashes in PATH elements. 2419 case $as_dir/ in 2420 ./ | .// | /cC/* | \ 2421 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2422 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2423 /usr/ucb/* ) ;; 2424 *) 2425 # OSF1 and SCO ODT 3.0 have their own names for install. 2426 # Don't use installbsd from OSF since it installs stuff as root 2427 # by default. 2428 for ac_prog in ginstall scoinst install; do 2429 for ac_exec_ext in '' $ac_executable_extensions; do 2430 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2431 if test $ac_prog = install && 2432 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2433 # AIX install. It has an incompatible calling convention. 2434 : 2435 elif test $ac_prog = install && 2436 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2437 # program-specific install script used by HP pwplus--don't use. 2438 : 2439 else 2440 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2441 break 3 2442 fi 2443 fi 2444 done 2445 done 2446 ;; 2447 esac 2448 done 2449 2450 2451 fi 2452 if test "${ac_cv_path_install+set}" = set; then 2453 INSTALL=$ac_cv_path_install 2454 else 2455 # As a last resort, use the slow shell script. We don't cache a 2456 # path for INSTALL within a source directory, because that will 2457 # break other packages using the cache if that directory is 2458 # removed, or if the path is relative. 2459 INSTALL=$ac_install_sh 2460 fi 2461 fi 2462 echo "$as_me:$LINENO: result: $INSTALL" >&5 2463 echo "${ECHO_T}$INSTALL" >&6 2464 2465 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2466 # It thinks the first close brace ends the variable substitution. 2467 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2468 2469 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2470 2471 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2472 2473 echo "$as_me:$LINENO: checking whether ln -s works" >&5 2474 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 2475 LN_S=$as_ln_s 2476 if test "$LN_S" = "ln -s"; then 2477 echo "$as_me:$LINENO: result: yes" >&5 2478 echo "${ECHO_T}yes" >&6 2479 else 2480 echo "$as_me:$LINENO: result: no, using $LN_S" >&5 2481 echo "${ECHO_T}no, using $LN_S" >&6 2482 fi 2483 2484 if test -n "$ac_tool_prefix"; then 2485 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 2486 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 2487 echo "$as_me:$LINENO: checking for $ac_word" >&5 2488 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2489 if test "${ac_cv_prog_RANLIB+set}" = set; then 2490 echo $ECHO_N "(cached) $ECHO_C" >&6 2491 else 2492 if test -n "$RANLIB"; then 2493 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 2494 else 2495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2496 for as_dir in $PATH 2497 do 2498 IFS=$as_save_IFS 2499 test -z "$as_dir" && as_dir=. 2500 for ac_exec_ext in '' $ac_executable_extensions; do 2501 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2502 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 2503 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2504 break 2 2505 fi 2506 done 2507 done 2508 2509 fi 2510 fi 2511 RANLIB=$ac_cv_prog_RANLIB 2512 if test -n "$RANLIB"; then 2513 echo "$as_me:$LINENO: result: $RANLIB" >&5 2514 echo "${ECHO_T}$RANLIB" >&6 2515 else 2516 echo "$as_me:$LINENO: result: no" >&5 2517 echo "${ECHO_T}no" >&6 2518 fi 2519 2520 fi 2521 if test -z "$ac_cv_prog_RANLIB"; then 2522 ac_ct_RANLIB=$RANLIB 2523 # Extract the first word of "ranlib", so it can be a program name with args. 2524 set dummy ranlib; ac_word=$2 2525 echo "$as_me:$LINENO: checking for $ac_word" >&5 2526 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2527 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 2528 echo $ECHO_N "(cached) $ECHO_C" >&6 2529 else 2530 if test -n "$ac_ct_RANLIB"; then 2531 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 2532 else 2533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2534 for as_dir in $PATH 2535 do 2536 IFS=$as_save_IFS 2537 test -z "$as_dir" && as_dir=. 2538 for ac_exec_ext in '' $ac_executable_extensions; do 2539 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2540 ac_cv_prog_ac_ct_RANLIB="ranlib" 2541 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2542 break 2 2543 fi 2544 done 2545 done 2546 2547 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 2548 fi 2549 fi 2550 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 2551 if test -n "$ac_ct_RANLIB"; then 2552 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 2553 echo "${ECHO_T}$ac_ct_RANLIB" >&6 2554 else 2555 echo "$as_me:$LINENO: result: no" >&5 2556 echo "${ECHO_T}no" >&6 2557 fi 2558 2559 RANLIB=$ac_ct_RANLIB 2560 else 2561 RANLIB="$ac_cv_prog_RANLIB" 2562 fi 2563 2564 2565 ac_ext=c 2566 ac_cpp='$CPP $CPPFLAGS' 2567 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2568 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2569 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2570 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 2571 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 2572 # On Suns, sometimes $CPP names a directory. 2573 if test -n "$CPP" && test -d "$CPP"; then 2574 CPP= 2575 fi 2576 if test -z "$CPP"; then 2577 if test "${ac_cv_prog_CPP+set}" = set; then 2578 echo $ECHO_N "(cached) $ECHO_C" >&6 2579 else 2580 # Double quotes because CPP needs to be expanded 2581 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 2582 do 2583 ac_preproc_ok=false 2584 for ac_c_preproc_warn_flag in '' yes 2585 do 2586 # Use a header file that comes with gcc, so configuring glibc 2587 # with a fresh cross-compiler works. 2588 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2589 # <limits.h> exists even on freestanding compilers. 2590 # On the NeXT, cc -E runs the code through the compiler's parser, 2591 # not just through cpp. "Syntax error" is here to catch this case. 2592 cat >conftest.$ac_ext <<_ACEOF 2593 /* confdefs.h. */ 2594 _ACEOF 2595 cat confdefs.h >>conftest.$ac_ext 2596 cat >>conftest.$ac_ext <<_ACEOF 2597 /* end confdefs.h. */ 2598 #ifdef __STDC__ 2599 # include <limits.h> 2600 #else 2601 # include <assert.h> 2602 #endif 2603 Syntax error 2604 _ACEOF 2605 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2606 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2607 ac_status=$? 2608 grep -v '^ *+' conftest.er1 >conftest.err 2609 rm -f conftest.er1 2610 cat conftest.err >&5 2611 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2612 (exit $ac_status); } >/dev/null; then 2613 if test -s conftest.err; then 2614 ac_cpp_err=$ac_c_preproc_warn_flag 2615 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2616 else 2617 ac_cpp_err= 2618 fi 2619 else 2620 ac_cpp_err=yes 2621 fi 2622 if test -z "$ac_cpp_err"; then 2623 : 2624 else 2625 echo "$as_me: failed program was:" >&5 2626 sed 's/^/| /' conftest.$ac_ext >&5 2627 2628 # Broken: fails on valid input. 2629 continue 2630 fi 2631 rm -f conftest.err conftest.$ac_ext 2632 2633 # OK, works on sane cases. Now check whether non-existent headers 2634 # can be detected and how. 2635 cat >conftest.$ac_ext <<_ACEOF 2636 /* confdefs.h. */ 2637 _ACEOF 2638 cat confdefs.h >>conftest.$ac_ext 2639 cat >>conftest.$ac_ext <<_ACEOF 2640 /* end confdefs.h. */ 2641 #include <ac_nonexistent.h> 2642 _ACEOF 2643 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2644 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2645 ac_status=$? 2646 grep -v '^ *+' conftest.er1 >conftest.err 2647 rm -f conftest.er1 2648 cat conftest.err >&5 2649 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2650 (exit $ac_status); } >/dev/null; then 2651 if test -s conftest.err; then 2652 ac_cpp_err=$ac_c_preproc_warn_flag 2653 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2654 else 2655 ac_cpp_err= 2656 fi 2657 else 2658 ac_cpp_err=yes 2659 fi 2660 if test -z "$ac_cpp_err"; then 2661 # Broken: success on invalid input. 2662 continue 2663 else 2664 echo "$as_me: failed program was:" >&5 2665 sed 's/^/| /' conftest.$ac_ext >&5 2666 2667 # Passes both tests. 2668 ac_preproc_ok=: 2669 break 2670 fi 2671 rm -f conftest.err conftest.$ac_ext 2672 2673 done 2674 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2675 rm -f conftest.err conftest.$ac_ext 2676 if $ac_preproc_ok; then 2677 break 2678 fi 2679 2680 done 2681 ac_cv_prog_CPP=$CPP 2682 2683 fi 2684 CPP=$ac_cv_prog_CPP 2685 else 2686 ac_cv_prog_CPP=$CPP 2687 fi 2688 echo "$as_me:$LINENO: result: $CPP" >&5 2689 echo "${ECHO_T}$CPP" >&6 2690 ac_preproc_ok=false 2691 for ac_c_preproc_warn_flag in '' yes 2692 do 2693 # Use a header file that comes with gcc, so configuring glibc 2694 # with a fresh cross-compiler works. 2695 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2696 # <limits.h> exists even on freestanding compilers. 2697 # On the NeXT, cc -E runs the code through the compiler's parser, 2698 # not just through cpp. "Syntax error" is here to catch this case. 2699 cat >conftest.$ac_ext <<_ACEOF 2700 /* confdefs.h. */ 2701 _ACEOF 2702 cat confdefs.h >>conftest.$ac_ext 2703 cat >>conftest.$ac_ext <<_ACEOF 2704 /* end confdefs.h. */ 2705 #ifdef __STDC__ 2706 # include <limits.h> 2707 #else 2708 # include <assert.h> 2709 #endif 2710 Syntax error 2711 _ACEOF 2712 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2713 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2714 ac_status=$? 2715 grep -v '^ *+' conftest.er1 >conftest.err 2716 rm -f conftest.er1 2717 cat conftest.err >&5 2718 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2719 (exit $ac_status); } >/dev/null; then 2720 if test -s conftest.err; then 2721 ac_cpp_err=$ac_c_preproc_warn_flag 2722 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2723 else 2724 ac_cpp_err= 2725 fi 2726 else 2727 ac_cpp_err=yes 2728 fi 2729 if test -z "$ac_cpp_err"; then 2730 : 2731 else 2732 echo "$as_me: failed program was:" >&5 2733 sed 's/^/| /' conftest.$ac_ext >&5 2734 2735 # Broken: fails on valid input. 2736 continue 2737 fi 2738 rm -f conftest.err conftest.$ac_ext 2739 2740 # OK, works on sane cases. Now check whether non-existent headers 2741 # can be detected and how. 2742 cat >conftest.$ac_ext <<_ACEOF 2743 /* confdefs.h. */ 2744 _ACEOF 2745 cat confdefs.h >>conftest.$ac_ext 2746 cat >>conftest.$ac_ext <<_ACEOF 2747 /* end confdefs.h. */ 2748 #include <ac_nonexistent.h> 2749 _ACEOF 2750 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2751 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2752 ac_status=$? 2753 grep -v '^ *+' conftest.er1 >conftest.err 2754 rm -f conftest.er1 2755 cat conftest.err >&5 2756 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2757 (exit $ac_status); } >/dev/null; then 2758 if test -s conftest.err; then 2759 ac_cpp_err=$ac_c_preproc_warn_flag 2760 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2761 else 2762 ac_cpp_err= 2763 fi 2764 else 2765 ac_cpp_err=yes 2766 fi 2767 if test -z "$ac_cpp_err"; then 2768 # Broken: success on invalid input. 2769 continue 2770 else 2771 echo "$as_me: failed program was:" >&5 2772 sed 's/^/| /' conftest.$ac_ext >&5 2773 2774 # Passes both tests. 2775 ac_preproc_ok=: 2776 break 2777 fi 2778 rm -f conftest.err conftest.$ac_ext 2779 2780 done 2781 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2782 rm -f conftest.err conftest.$ac_ext 2783 if $ac_preproc_ok; then 2784 : 2785 else 2786 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 2787 See \`config.log' for more details." >&5 2788 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 2789 See \`config.log' for more details." >&2;} 2790 { (exit 1); exit 1; }; } 2791 fi 2792 2793 ac_ext=c 2794 ac_cpp='$CPP $CPPFLAGS' 2795 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2796 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2797 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2798 2799 2800 echo "$as_me:$LINENO: checking for egrep" >&5 2801 echo $ECHO_N "checking for egrep... $ECHO_C" >&6 2802 if test "${ac_cv_prog_egrep+set}" = set; then 2803 echo $ECHO_N "(cached) $ECHO_C" >&6 2804 else 2805 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 2806 then ac_cv_prog_egrep='grep -E' 2807 else ac_cv_prog_egrep='egrep' 2808 fi 2809 fi 2810 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 2811 echo "${ECHO_T}$ac_cv_prog_egrep" >&6 2812 EGREP=$ac_cv_prog_egrep 2813 2814 2815 2816 echo "$as_me:$LINENO: checking for AIX" >&5 2817 echo $ECHO_N "checking for AIX... $ECHO_C" >&6 2818 cat >conftest.$ac_ext <<_ACEOF 2819 /* confdefs.h. */ 2820 _ACEOF 2821 cat confdefs.h >>conftest.$ac_ext 2822 cat >>conftest.$ac_ext <<_ACEOF 2823 /* end confdefs.h. */ 2824 #ifdef _AIX 2825 yes 2826 #endif 2827 2828 _ACEOF 2829 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2830 $EGREP "yes" >/dev/null 2>&1; then 2831 echo "$as_me:$LINENO: result: yes" >&5 2832 echo "${ECHO_T}yes" >&6 2833 cat >>confdefs.h <<\_ACEOF 2834 #define _ALL_SOURCE 1 2835 _ACEOF 2836 2837 else 2838 echo "$as_me:$LINENO: result: no" >&5 2839 echo "${ECHO_T}no" >&6 2840 fi 2841 rm -f conftest* 2842 2843 2844 if test -n "$ac_tool_prefix"; then 2845 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 2846 set dummy ${ac_tool_prefix}ar; ac_word=$2 2847 echo "$as_me:$LINENO: checking for $ac_word" >&5 2848 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2849 if test "${ac_cv_prog_AR+set}" = set; then 2850 echo $ECHO_N "(cached) $ECHO_C" >&6 2851 else 2852 if test -n "$AR"; then 2853 ac_cv_prog_AR="$AR" # Let the user override the test. 2854 else 2855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2856 for as_dir in $PATH 2857 do 2858 IFS=$as_save_IFS 2859 test -z "$as_dir" && as_dir=. 2860 for ac_exec_ext in '' $ac_executable_extensions; do 2861 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2862 ac_cv_prog_AR="${ac_tool_prefix}ar" 2863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2864 break 2 2865 fi 2866 done 2867 done 2868 2869 fi 2870 fi 2871 AR=$ac_cv_prog_AR 2872 if test -n "$AR"; then 2873 echo "$as_me:$LINENO: result: $AR" >&5 2874 echo "${ECHO_T}$AR" >&6 2875 else 2876 echo "$as_me:$LINENO: result: no" >&5 2877 echo "${ECHO_T}no" >&6 2878 fi 2879 2880 fi 2881 if test -z "$ac_cv_prog_AR"; then 2882 ac_ct_AR=$AR 2883 # Extract the first word of "ar", so it can be a program name with args. 2884 set dummy ar; ac_word=$2 2885 echo "$as_me:$LINENO: checking for $ac_word" >&5 2886 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2887 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 2888 echo $ECHO_N "(cached) $ECHO_C" >&6 2889 else 2890 if test -n "$ac_ct_AR"; then 2891 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 2892 else 2893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2894 for as_dir in $PATH 2895 do 2896 IFS=$as_save_IFS 2897 test -z "$as_dir" && as_dir=. 2898 for ac_exec_ext in '' $ac_executable_extensions; do 2899 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2900 ac_cv_prog_ac_ct_AR="ar" 2901 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2902 break 2 2903 fi 2904 done 2905 done 2906 2907 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="true" 2908 fi 2909 fi 2910 ac_ct_AR=$ac_cv_prog_ac_ct_AR 2911 if test -n "$ac_ct_AR"; then 2912 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 2913 echo "${ECHO_T}$ac_ct_AR" >&6 2914 else 2915 echo "$as_me:$LINENO: result: no" >&5 2916 echo "${ECHO_T}no" >&6 2917 fi 2918 2919 AR=$ac_ct_AR 2920 else 2921 AR="$ac_cv_prog_AR" 2922 fi 2923 2924 2925 echo "$as_me:$LINENO: checking for ANSI C header files" >&5 2926 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 2927 if test "${ac_cv_header_stdc+set}" = set; then 2928 echo $ECHO_N "(cached) $ECHO_C" >&6 2929 else 2930 cat >conftest.$ac_ext <<_ACEOF 2931 /* confdefs.h. */ 2932 _ACEOF 2933 cat confdefs.h >>conftest.$ac_ext 2934 cat >>conftest.$ac_ext <<_ACEOF 2935 /* end confdefs.h. */ 2936 #include <stdlib.h> 2937 #include <stdarg.h> 2938 #include <string.h> 2939 #include <float.h> 2940 2941 int 2942 main () 2943 { 2944 2945 ; 2946 return 0; 2947 } 2948 _ACEOF 2949 rm -f conftest.$ac_objext 2950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2951 (eval $ac_compile) 2>conftest.er1 2952 ac_status=$? 2953 grep -v '^ *+' conftest.er1 >conftest.err 2954 rm -f conftest.er1 2955 cat conftest.err >&5 2956 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2957 (exit $ac_status); } && 2958 { ac_try='test -z "$ac_c_werror_flag" 2959 || test ! -s conftest.err' 2960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2961 (eval $ac_try) 2>&5 2962 ac_status=$? 2963 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2964 (exit $ac_status); }; } && 2965 { ac_try='test -s conftest.$ac_objext' 2966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2967 (eval $ac_try) 2>&5 2968 ac_status=$? 2969 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2970 (exit $ac_status); }; }; then 2971 ac_cv_header_stdc=yes 2972 else 2973 echo "$as_me: failed program was:" >&5 2974 sed 's/^/| /' conftest.$ac_ext >&5 2975 2976 ac_cv_header_stdc=no 2977 fi 2978 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2979 2980 if test $ac_cv_header_stdc = yes; then 2981 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 2982 cat >conftest.$ac_ext <<_ACEOF 2983 /* confdefs.h. */ 2984 _ACEOF 2985 cat confdefs.h >>conftest.$ac_ext 2986 cat >>conftest.$ac_ext <<_ACEOF 2987 /* end confdefs.h. */ 2988 #include <string.h> 2989 2990 _ACEOF 2991 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2992 $EGREP "memchr" >/dev/null 2>&1; then 2993 : 2994 else 2995 ac_cv_header_stdc=no 2996 fi 2997 rm -f conftest* 2998 2999 fi 3000 3001 if test $ac_cv_header_stdc = yes; then 3002 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3003 cat >conftest.$ac_ext <<_ACEOF 3004 /* confdefs.h. */ 3005 _ACEOF 3006 cat confdefs.h >>conftest.$ac_ext 3007 cat >>conftest.$ac_ext <<_ACEOF 3008 /* end confdefs.h. */ 3009 #include <stdlib.h> 3010 3011 _ACEOF 3012 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3013 $EGREP "free" >/dev/null 2>&1; then 3014 : 3015 else 3016 ac_cv_header_stdc=no 3017 fi 3018 rm -f conftest* 3019 3020 fi 3021 3022 if test $ac_cv_header_stdc = yes; then 3023 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3024 if test "$cross_compiling" = yes; then 3025 : 3026 else 3027 cat >conftest.$ac_ext <<_ACEOF 3028 /* confdefs.h. */ 3029 _ACEOF 3030 cat confdefs.h >>conftest.$ac_ext 3031 cat >>conftest.$ac_ext <<_ACEOF 3032 /* end confdefs.h. */ 3033 #include <ctype.h> 3034 #if ((' ' & 0x0FF) == 0x020) 3035 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3036 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3037 #else 3038 # define ISLOWER(c) \ 3039 (('a' <= (c) && (c) <= 'i') \ 3040 || ('j' <= (c) && (c) <= 'r') \ 3041 || ('s' <= (c) && (c) <= 'z')) 3042 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3043 #endif 3044 3045 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3046 int 3047 main () 3048 { 3049 int i; 3050 for (i = 0; i < 256; i++) 3051 if (XOR (islower (i), ISLOWER (i)) 3052 || toupper (i) != TOUPPER (i)) 3053 exit(2); 3054 exit (0); 3055 } 3056 _ACEOF 3057 rm -f conftest$ac_exeext 3058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3059 (eval $ac_link) 2>&5 3060 ac_status=$? 3061 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3062 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3064 (eval $ac_try) 2>&5 3065 ac_status=$? 3066 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3067 (exit $ac_status); }; }; then 3068 : 3069 else 3070 echo "$as_me: program exited with status $ac_status" >&5 3071 echo "$as_me: failed program was:" >&5 3072 sed 's/^/| /' conftest.$ac_ext >&5 3073 3074 ( exit $ac_status ) 3075 ac_cv_header_stdc=no 3076 fi 3077 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3078 fi 3079 fi 3080 fi 3081 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 3082 echo "${ECHO_T}$ac_cv_header_stdc" >&6 3083 if test $ac_cv_header_stdc = yes; then 3084 3085 cat >>confdefs.h <<\_ACEOF 3086 #define STDC_HEADERS 1 3087 _ACEOF 3088 3089 fi 3090 3091 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3102 inttypes.h stdint.h unistd.h 3103 do 3104 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3105 echo "$as_me:$LINENO: checking for $ac_header" >&5 3106 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3107 if eval "test \"\${$as_ac_Header+set}\" = set"; then 3108 echo $ECHO_N "(cached) $ECHO_C" >&6 3109 else 3110 cat >conftest.$ac_ext <<_ACEOF 3111 /* confdefs.h. */ 3112 _ACEOF 3113 cat confdefs.h >>conftest.$ac_ext 3114 cat >>conftest.$ac_ext <<_ACEOF 3115 /* end confdefs.h. */ 3116 $ac_includes_default 3117 3118 #include <$ac_header> 3119 _ACEOF 3120 rm -f conftest.$ac_objext 3121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3122 (eval $ac_compile) 2>conftest.er1 3123 ac_status=$? 3124 grep -v '^ *+' conftest.er1 >conftest.err 3125 rm -f conftest.er1 3126 cat conftest.err >&5 3127 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3128 (exit $ac_status); } && 3129 { ac_try='test -z "$ac_c_werror_flag" 3130 || test ! -s conftest.err' 3131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3132 (eval $ac_try) 2>&5 3133 ac_status=$? 3134 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3135 (exit $ac_status); }; } && 3136 { ac_try='test -s conftest.$ac_objext' 3137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3138 (eval $ac_try) 2>&5 3139 ac_status=$? 3140 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3141 (exit $ac_status); }; }; then 3142 eval "$as_ac_Header=yes" 3143 else 3144 echo "$as_me: failed program was:" >&5 3145 sed 's/^/| /' conftest.$ac_ext >&5 3146 3147 eval "$as_ac_Header=no" 3148 fi 3149 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3150 fi 3151 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3152 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3153 if test `eval echo '${'$as_ac_Header'}'` = yes; then 3154 cat >>confdefs.h <<_ACEOF 3155 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3156 _ACEOF 3157 3158 fi 3159 3160 done 3161 3162 3163 3164 if test -z "$ac_cv_sizeof_long"; then 3165 echo "$as_me:$LINENO: checking for inline" >&5 3166 echo $ECHO_N "checking for inline... $ECHO_C" >&6 3167 if test "${ac_cv_c_inline+set}" = set; then 3168 echo $ECHO_N "(cached) $ECHO_C" >&6 3169 else 3170 ac_cv_c_inline=no 3171 for ac_kw in inline __inline__ __inline; do 3172 cat >conftest.$ac_ext <<_ACEOF 3173 /* confdefs.h. */ 3174 _ACEOF 3175 cat confdefs.h >>conftest.$ac_ext 3176 cat >>conftest.$ac_ext <<_ACEOF 3177 /* end confdefs.h. */ 3178 #ifndef __cplusplus 3179 typedef int foo_t; 3180 static $ac_kw foo_t static_foo () {return 0; } 3181 $ac_kw foo_t foo () {return 0; } 3182 #endif 3183 3184 _ACEOF 3185 rm -f conftest.$ac_objext 3186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3187 (eval $ac_compile) 2>conftest.er1 3188 ac_status=$? 3189 grep -v '^ *+' conftest.er1 >conftest.err 3190 rm -f conftest.er1 3191 cat conftest.err >&5 3192 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3193 (exit $ac_status); } && 3194 { ac_try='test -z "$ac_c_werror_flag" 3195 || test ! -s conftest.err' 3196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3197 (eval $ac_try) 2>&5 3198 ac_status=$? 3199 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3200 (exit $ac_status); }; } && 3201 { ac_try='test -s conftest.$ac_objext' 3202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3203 (eval $ac_try) 2>&5 3204 ac_status=$? 3205 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3206 (exit $ac_status); }; }; then 3207 ac_cv_c_inline=$ac_kw; break 3208 else 3209 echo "$as_me: failed program was:" >&5 3210 sed 's/^/| /' conftest.$ac_ext >&5 3211 3212 fi 3213 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3214 done 3215 3216 fi 3217 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 3218 echo "${ECHO_T}$ac_cv_c_inline" >&6 3219 3220 3221 case $ac_cv_c_inline in 3222 inline | yes) ;; 3223 *) 3224 case $ac_cv_c_inline in 3225 no) ac_val=;; 3226 *) ac_val=$ac_cv_c_inline;; 3227 esac 3228 cat >>confdefs.h <<_ACEOF 3229 #ifndef __cplusplus 3230 #define inline $ac_val 3231 #endif 3232 _ACEOF 3233 ;; 3234 esac 3235 3236 echo "$as_me:$LINENO: checking for long long" >&5 3237 echo $ECHO_N "checking for long long... $ECHO_C" >&6 3238 if test "${ac_cv_type_long_long+set}" = set; then 3239 echo $ECHO_N "(cached) $ECHO_C" >&6 3240 else 3241 cat >conftest.$ac_ext <<_ACEOF 3242 /* confdefs.h. */ 3243 _ACEOF 3244 cat confdefs.h >>conftest.$ac_ext 3245 cat >>conftest.$ac_ext <<_ACEOF 3246 /* end confdefs.h. */ 3247 $ac_includes_default 3248 int 3249 main () 3250 { 3251 if ((long long *) 0) 3252 return 0; 3253 if (sizeof (long long)) 3254 return 0; 3255 ; 3256 return 0; 3257 } 3258 _ACEOF 3259 rm -f conftest.$ac_objext 3260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3261 (eval $ac_compile) 2>conftest.er1 3262 ac_status=$? 3263 grep -v '^ *+' conftest.er1 >conftest.err 3264 rm -f conftest.er1 3265 cat conftest.err >&5 3266 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3267 (exit $ac_status); } && 3268 { ac_try='test -z "$ac_c_werror_flag" 3269 || test ! -s conftest.err' 3270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3271 (eval $ac_try) 2>&5 3272 ac_status=$? 3273 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3274 (exit $ac_status); }; } && 3275 { ac_try='test -s conftest.$ac_objext' 3276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3277 (eval $ac_try) 2>&5 3278 ac_status=$? 3279 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3280 (exit $ac_status); }; }; then 3281 ac_cv_type_long_long=yes 3282 else 3283 echo "$as_me: failed program was:" >&5 3284 sed 's/^/| /' conftest.$ac_ext >&5 3285 3286 ac_cv_type_long_long=no 3287 fi 3288 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3289 fi 3290 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 3291 echo "${ECHO_T}$ac_cv_type_long_long" >&6 3292 3293 echo "$as_me:$LINENO: checking size of long long" >&5 3294 echo $ECHO_N "checking size of long long... $ECHO_C" >&6 3295 if test "${ac_cv_sizeof_long_long+set}" = set; then 3296 echo $ECHO_N "(cached) $ECHO_C" >&6 3297 else 3298 if test "$ac_cv_type_long_long" = yes; then 3299 # The cast to unsigned long works around a bug in the HP C Compiler 3300 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 3301 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 3302 # This bug is HP SR number 8606223364. 3303 if test "$cross_compiling" = yes; then 3304 # Depending upon the size, compute the lo and hi bounds. 3305 cat >conftest.$ac_ext <<_ACEOF 3306 /* confdefs.h. */ 3307 _ACEOF 3308 cat confdefs.h >>conftest.$ac_ext 3309 cat >>conftest.$ac_ext <<_ACEOF 3310 /* end confdefs.h. */ 3311 $ac_includes_default 3312 int 3313 main () 3314 { 3315 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; 3316 test_array [0] = 0 3317 3318 ; 3319 return 0; 3320 } 3321 _ACEOF 3322 rm -f conftest.$ac_objext 3323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3324 (eval $ac_compile) 2>conftest.er1 3325 ac_status=$? 3326 grep -v '^ *+' conftest.er1 >conftest.err 3327 rm -f conftest.er1 3328 cat conftest.err >&5 3329 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3330 (exit $ac_status); } && 3331 { ac_try='test -z "$ac_c_werror_flag" 3332 || test ! -s conftest.err' 3333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3334 (eval $ac_try) 2>&5 3335 ac_status=$? 3336 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3337 (exit $ac_status); }; } && 3338 { ac_try='test -s conftest.$ac_objext' 3339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3340 (eval $ac_try) 2>&5 3341 ac_status=$? 3342 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3343 (exit $ac_status); }; }; then 3344 ac_lo=0 ac_mid=0 3345 while :; do 3346 cat >conftest.$ac_ext <<_ACEOF 3347 /* confdefs.h. */ 3348 _ACEOF 3349 cat confdefs.h >>conftest.$ac_ext 3350 cat >>conftest.$ac_ext <<_ACEOF 3351 /* end confdefs.h. */ 3352 $ac_includes_default 3353 int 3354 main () 3355 { 3356 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; 3357 test_array [0] = 0 3358 3359 ; 3360 return 0; 3361 } 3362 _ACEOF 3363 rm -f conftest.$ac_objext 3364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3365 (eval $ac_compile) 2>conftest.er1 3366 ac_status=$? 3367 grep -v '^ *+' conftest.er1 >conftest.err 3368 rm -f conftest.er1 3369 cat conftest.err >&5 3370 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3371 (exit $ac_status); } && 3372 { ac_try='test -z "$ac_c_werror_flag" 3373 || test ! -s conftest.err' 3374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3375 (eval $ac_try) 2>&5 3376 ac_status=$? 3377 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3378 (exit $ac_status); }; } && 3379 { ac_try='test -s conftest.$ac_objext' 3380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3381 (eval $ac_try) 2>&5 3382 ac_status=$? 3383 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3384 (exit $ac_status); }; }; then 3385 ac_hi=$ac_mid; break 3386 else 3387 echo "$as_me: failed program was:" >&5 3388 sed 's/^/| /' conftest.$ac_ext >&5 3389 3390 ac_lo=`expr $ac_mid + 1` 3391 if test $ac_lo -le $ac_mid; then 3392 ac_lo= ac_hi= 3393 break 3394 fi 3395 ac_mid=`expr 2 '*' $ac_mid + 1` 3396 fi 3397 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3398 done 3399 else 3400 echo "$as_me: failed program was:" >&5 3401 sed 's/^/| /' conftest.$ac_ext >&5 3402 3403 cat >conftest.$ac_ext <<_ACEOF 3404 /* confdefs.h. */ 3405 _ACEOF 3406 cat confdefs.h >>conftest.$ac_ext 3407 cat >>conftest.$ac_ext <<_ACEOF 3408 /* end confdefs.h. */ 3409 $ac_includes_default 3410 int 3411 main () 3412 { 3413 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; 3414 test_array [0] = 0 3415 3416 ; 3417 return 0; 3418 } 3419 _ACEOF 3420 rm -f conftest.$ac_objext 3421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3422 (eval $ac_compile) 2>conftest.er1 3423 ac_status=$? 3424 grep -v '^ *+' conftest.er1 >conftest.err 3425 rm -f conftest.er1 3426 cat conftest.err >&5 3427 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3428 (exit $ac_status); } && 3429 { ac_try='test -z "$ac_c_werror_flag" 3430 || test ! -s conftest.err' 3431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3432 (eval $ac_try) 2>&5 3433 ac_status=$? 3434 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3435 (exit $ac_status); }; } && 3436 { ac_try='test -s conftest.$ac_objext' 3437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3438 (eval $ac_try) 2>&5 3439 ac_status=$? 3440 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3441 (exit $ac_status); }; }; then 3442 ac_hi=-1 ac_mid=-1 3443 while :; do 3444 cat >conftest.$ac_ext <<_ACEOF 3445 /* confdefs.h. */ 3446 _ACEOF 3447 cat confdefs.h >>conftest.$ac_ext 3448 cat >>conftest.$ac_ext <<_ACEOF 3449 /* end confdefs.h. */ 3450 $ac_includes_default 3451 int 3452 main () 3453 { 3454 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; 3455 test_array [0] = 0 3456 3457 ; 3458 return 0; 3459 } 3460 _ACEOF 3461 rm -f conftest.$ac_objext 3462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3463 (eval $ac_compile) 2>conftest.er1 3464 ac_status=$? 3465 grep -v '^ *+' conftest.er1 >conftest.err 3466 rm -f conftest.er1 3467 cat conftest.err >&5 3468 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3469 (exit $ac_status); } && 3470 { ac_try='test -z "$ac_c_werror_flag" 3471 || test ! -s conftest.err' 3472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3473 (eval $ac_try) 2>&5 3474 ac_status=$? 3475 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3476 (exit $ac_status); }; } && 3477 { ac_try='test -s conftest.$ac_objext' 3478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3479 (eval $ac_try) 2>&5 3480 ac_status=$? 3481 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3482 (exit $ac_status); }; }; then 3483 ac_lo=$ac_mid; break 3484 else 3485 echo "$as_me: failed program was:" >&5 3486 sed 's/^/| /' conftest.$ac_ext >&5 3487 3488 ac_hi=`expr '(' $ac_mid ')' - 1` 3489 if test $ac_mid -le $ac_hi; then 3490 ac_lo= ac_hi= 3491 break 3492 fi 3493 ac_mid=`expr 2 '*' $ac_mid` 3494 fi 3495 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3496 done 3497 else 3498 echo "$as_me: failed program was:" >&5 3499 sed 's/^/| /' conftest.$ac_ext >&5 3500 3501 ac_lo= ac_hi= 3502 fi 3503 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3504 fi 3505 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3506 # Binary search between lo and hi bounds. 3507 while test "x$ac_lo" != "x$ac_hi"; do 3508 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 3509 cat >conftest.$ac_ext <<_ACEOF 3510 /* confdefs.h. */ 3511 _ACEOF 3512 cat confdefs.h >>conftest.$ac_ext 3513 cat >>conftest.$ac_ext <<_ACEOF 3514 /* end confdefs.h. */ 3515 $ac_includes_default 3516 int 3517 main () 3518 { 3519 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; 3520 test_array [0] = 0 3521 3522 ; 3523 return 0; 3524 } 3525 _ACEOF 3526 rm -f conftest.$ac_objext 3527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3528 (eval $ac_compile) 2>conftest.er1 3529 ac_status=$? 3530 grep -v '^ *+' conftest.er1 >conftest.err 3531 rm -f conftest.er1 3532 cat conftest.err >&5 3533 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3534 (exit $ac_status); } && 3535 { ac_try='test -z "$ac_c_werror_flag" 3536 || test ! -s conftest.err' 3537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3538 (eval $ac_try) 2>&5 3539 ac_status=$? 3540 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3541 (exit $ac_status); }; } && 3542 { ac_try='test -s conftest.$ac_objext' 3543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3544 (eval $ac_try) 2>&5 3545 ac_status=$? 3546 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3547 (exit $ac_status); }; }; then 3548 ac_hi=$ac_mid 3549 else 3550 echo "$as_me: failed program was:" >&5 3551 sed 's/^/| /' conftest.$ac_ext >&5 3552 3553 ac_lo=`expr '(' $ac_mid ')' + 1` 3554 fi 3555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3556 done 3557 case $ac_lo in 3558 ?*) ac_cv_sizeof_long_long=$ac_lo;; 3559 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 3560 See \`config.log' for more details." >&5 3561 echo "$as_me: error: cannot compute sizeof (long long), 77 3562 See \`config.log' for more details." >&2;} 3563 { (exit 1); exit 1; }; } ;; 3564 esac 3565 else 3566 if test "$cross_compiling" = yes; then 3567 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 3568 See \`config.log' for more details." >&5 3569 echo "$as_me: error: cannot run test program while cross compiling 3570 See \`config.log' for more details." >&2;} 3571 { (exit 1); exit 1; }; } 3572 else 3573 cat >conftest.$ac_ext <<_ACEOF 3574 /* confdefs.h. */ 3575 _ACEOF 3576 cat confdefs.h >>conftest.$ac_ext 3577 cat >>conftest.$ac_ext <<_ACEOF 3578 /* end confdefs.h. */ 3579 $ac_includes_default 3580 long longval () { return (long) (sizeof (long long)); } 3581 unsigned long ulongval () { return (long) (sizeof (long long)); } 3582 #include <stdio.h> 3583 #include <stdlib.h> 3584 int 3585 main () 3586 { 3587 3588 FILE *f = fopen ("conftest.val", "w"); 3589 if (! f) 3590 exit (1); 3591 if (((long) (sizeof (long long))) < 0) 3592 { 3593 long i = longval (); 3594 if (i != ((long) (sizeof (long long)))) 3595 exit (1); 3596 fprintf (f, "%ld\n", i); 3597 } 3598 else 3599 { 3600 unsigned long i = ulongval (); 3601 if (i != ((long) (sizeof (long long)))) 3602 exit (1); 3603 fprintf (f, "%lu\n", i); 3604 } 3605 exit (ferror (f) || fclose (f) != 0); 3606 3607 ; 3608 return 0; 3609 } 3610 _ACEOF 3611 rm -f conftest$ac_exeext 3612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3613 (eval $ac_link) 2>&5 3614 ac_status=$? 3615 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3616 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3618 (eval $ac_try) 2>&5 3619 ac_status=$? 3620 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3621 (exit $ac_status); }; }; then 3622 ac_cv_sizeof_long_long=`cat conftest.val` 3623 else 3624 echo "$as_me: program exited with status $ac_status" >&5 3625 echo "$as_me: failed program was:" >&5 3626 sed 's/^/| /' conftest.$ac_ext >&5 3627 3628 ( exit $ac_status ) 3629 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 3630 See \`config.log' for more details." >&5 3631 echo "$as_me: error: cannot compute sizeof (long long), 77 3632 See \`config.log' for more details." >&2;} 3633 { (exit 1); exit 1; }; } 3634 fi 3635 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3636 fi 3637 fi 3638 rm -f conftest.val 3639 else 3640 ac_cv_sizeof_long_long=0 3641 fi 3642 fi 3643 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 3644 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 3645 cat >>confdefs.h <<_ACEOF 3646 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long 3647 _ACEOF 3648 3649 3650 echo "$as_me:$LINENO: checking for long" >&5 3651 echo $ECHO_N "checking for long... $ECHO_C" >&6 3652 if test "${ac_cv_type_long+set}" = set; then 3653 echo $ECHO_N "(cached) $ECHO_C" >&6 3654 else 3655 cat >conftest.$ac_ext <<_ACEOF 3656 /* confdefs.h. */ 3657 _ACEOF 3658 cat confdefs.h >>conftest.$ac_ext 3659 cat >>conftest.$ac_ext <<_ACEOF 3660 /* end confdefs.h. */ 3661 $ac_includes_default 3662 int 3663 main () 3664 { 3665 if ((long *) 0) 3666 return 0; 3667 if (sizeof (long)) 3668 return 0; 3669 ; 3670 return 0; 3671 } 3672 _ACEOF 3673 rm -f conftest.$ac_objext 3674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3675 (eval $ac_compile) 2>conftest.er1 3676 ac_status=$? 3677 grep -v '^ *+' conftest.er1 >conftest.err 3678 rm -f conftest.er1 3679 cat conftest.err >&5 3680 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3681 (exit $ac_status); } && 3682 { ac_try='test -z "$ac_c_werror_flag" 3683 || test ! -s conftest.err' 3684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3685 (eval $ac_try) 2>&5 3686 ac_status=$? 3687 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3688 (exit $ac_status); }; } && 3689 { ac_try='test -s conftest.$ac_objext' 3690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3691 (eval $ac_try) 2>&5 3692 ac_status=$? 3693 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3694 (exit $ac_status); }; }; then 3695 ac_cv_type_long=yes 3696 else 3697 echo "$as_me: failed program was:" >&5 3698 sed 's/^/| /' conftest.$ac_ext >&5 3699 3700 ac_cv_type_long=no 3701 fi 3702 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3703 fi 3704 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 3705 echo "${ECHO_T}$ac_cv_type_long" >&6 3706 3707 echo "$as_me:$LINENO: checking size of long" >&5 3708 echo $ECHO_N "checking size of long... $ECHO_C" >&6 3709 if test "${ac_cv_sizeof_long+set}" = set; then 3710 echo $ECHO_N "(cached) $ECHO_C" >&6 3711 else 3712 if test "$ac_cv_type_long" = yes; then 3713 # The cast to unsigned long works around a bug in the HP C Compiler 3714 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 3715 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 3716 # This bug is HP SR number 8606223364. 3717 if test "$cross_compiling" = yes; then 3718 # Depending upon the size, compute the lo and hi bounds. 3719 cat >conftest.$ac_ext <<_ACEOF 3720 /* confdefs.h. */ 3721 _ACEOF 3722 cat confdefs.h >>conftest.$ac_ext 3723 cat >>conftest.$ac_ext <<_ACEOF 3724 /* end confdefs.h. */ 3725 $ac_includes_default 3726 int 3727 main () 3728 { 3729 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; 3730 test_array [0] = 0 3731 3732 ; 3733 return 0; 3734 } 3735 _ACEOF 3736 rm -f conftest.$ac_objext 3737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3738 (eval $ac_compile) 2>conftest.er1 3739 ac_status=$? 3740 grep -v '^ *+' conftest.er1 >conftest.err 3741 rm -f conftest.er1 3742 cat conftest.err >&5 3743 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3744 (exit $ac_status); } && 3745 { ac_try='test -z "$ac_c_werror_flag" 3746 || test ! -s conftest.err' 3747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3748 (eval $ac_try) 2>&5 3749 ac_status=$? 3750 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3751 (exit $ac_status); }; } && 3752 { ac_try='test -s conftest.$ac_objext' 3753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3754 (eval $ac_try) 2>&5 3755 ac_status=$? 3756 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3757 (exit $ac_status); }; }; then 3758 ac_lo=0 ac_mid=0 3759 while :; do 3760 cat >conftest.$ac_ext <<_ACEOF 3761 /* confdefs.h. */ 3762 _ACEOF 3763 cat confdefs.h >>conftest.$ac_ext 3764 cat >>conftest.$ac_ext <<_ACEOF 3765 /* end confdefs.h. */ 3766 $ac_includes_default 3767 int 3768 main () 3769 { 3770 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; 3771 test_array [0] = 0 3772 3773 ; 3774 return 0; 3775 } 3776 _ACEOF 3777 rm -f conftest.$ac_objext 3778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3779 (eval $ac_compile) 2>conftest.er1 3780 ac_status=$? 3781 grep -v '^ *+' conftest.er1 >conftest.err 3782 rm -f conftest.er1 3783 cat conftest.err >&5 3784 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3785 (exit $ac_status); } && 3786 { ac_try='test -z "$ac_c_werror_flag" 3787 || test ! -s conftest.err' 3788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3789 (eval $ac_try) 2>&5 3790 ac_status=$? 3791 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3792 (exit $ac_status); }; } && 3793 { ac_try='test -s conftest.$ac_objext' 3794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3795 (eval $ac_try) 2>&5 3796 ac_status=$? 3797 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3798 (exit $ac_status); }; }; then 3799 ac_hi=$ac_mid; break 3800 else 3801 echo "$as_me: failed program was:" >&5 3802 sed 's/^/| /' conftest.$ac_ext >&5 3803 3804 ac_lo=`expr $ac_mid + 1` 3805 if test $ac_lo -le $ac_mid; then 3806 ac_lo= ac_hi= 3807 break 3808 fi 3809 ac_mid=`expr 2 '*' $ac_mid + 1` 3810 fi 3811 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3812 done 3813 else 3814 echo "$as_me: failed program was:" >&5 3815 sed 's/^/| /' conftest.$ac_ext >&5 3816 3817 cat >conftest.$ac_ext <<_ACEOF 3818 /* confdefs.h. */ 3819 _ACEOF 3820 cat confdefs.h >>conftest.$ac_ext 3821 cat >>conftest.$ac_ext <<_ACEOF 3822 /* end confdefs.h. */ 3823 $ac_includes_default 3824 int 3825 main () 3826 { 3827 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; 3828 test_array [0] = 0 3829 3830 ; 3831 return 0; 3832 } 3833 _ACEOF 3834 rm -f conftest.$ac_objext 3835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3836 (eval $ac_compile) 2>conftest.er1 3837 ac_status=$? 3838 grep -v '^ *+' conftest.er1 >conftest.err 3839 rm -f conftest.er1 3840 cat conftest.err >&5 3841 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3842 (exit $ac_status); } && 3843 { ac_try='test -z "$ac_c_werror_flag" 3844 || test ! -s conftest.err' 3845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3846 (eval $ac_try) 2>&5 3847 ac_status=$? 3848 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3849 (exit $ac_status); }; } && 3850 { ac_try='test -s conftest.$ac_objext' 3851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3852 (eval $ac_try) 2>&5 3853 ac_status=$? 3854 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3855 (exit $ac_status); }; }; then 3856 ac_hi=-1 ac_mid=-1 3857 while :; do 3858 cat >conftest.$ac_ext <<_ACEOF 3859 /* confdefs.h. */ 3860 _ACEOF 3861 cat confdefs.h >>conftest.$ac_ext 3862 cat >>conftest.$ac_ext <<_ACEOF 3863 /* end confdefs.h. */ 3864 $ac_includes_default 3865 int 3866 main () 3867 { 3868 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; 3869 test_array [0] = 0 3870 3871 ; 3872 return 0; 3873 } 3874 _ACEOF 3875 rm -f conftest.$ac_objext 3876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3877 (eval $ac_compile) 2>conftest.er1 3878 ac_status=$? 3879 grep -v '^ *+' conftest.er1 >conftest.err 3880 rm -f conftest.er1 3881 cat conftest.err >&5 3882 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3883 (exit $ac_status); } && 3884 { ac_try='test -z "$ac_c_werror_flag" 3885 || test ! -s conftest.err' 3886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3887 (eval $ac_try) 2>&5 3888 ac_status=$? 3889 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3890 (exit $ac_status); }; } && 3891 { ac_try='test -s conftest.$ac_objext' 3892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3893 (eval $ac_try) 2>&5 3894 ac_status=$? 3895 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3896 (exit $ac_status); }; }; then 3897 ac_lo=$ac_mid; break 3898 else 3899 echo "$as_me: failed program was:" >&5 3900 sed 's/^/| /' conftest.$ac_ext >&5 3901 3902 ac_hi=`expr '(' $ac_mid ')' - 1` 3903 if test $ac_mid -le $ac_hi; then 3904 ac_lo= ac_hi= 3905 break 3906 fi 3907 ac_mid=`expr 2 '*' $ac_mid` 3908 fi 3909 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3910 done 3911 else 3912 echo "$as_me: failed program was:" >&5 3913 sed 's/^/| /' conftest.$ac_ext >&5 3914 3915 ac_lo= ac_hi= 3916 fi 3917 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3918 fi 3919 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3920 # Binary search between lo and hi bounds. 3921 while test "x$ac_lo" != "x$ac_hi"; do 3922 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 3923 cat >conftest.$ac_ext <<_ACEOF 3924 /* confdefs.h. */ 3925 _ACEOF 3926 cat confdefs.h >>conftest.$ac_ext 3927 cat >>conftest.$ac_ext <<_ACEOF 3928 /* end confdefs.h. */ 3929 $ac_includes_default 3930 int 3931 main () 3932 { 3933 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; 3934 test_array [0] = 0 3935 3936 ; 3937 return 0; 3938 } 3939 _ACEOF 3940 rm -f conftest.$ac_objext 3941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3942 (eval $ac_compile) 2>conftest.er1 3943 ac_status=$? 3944 grep -v '^ *+' conftest.er1 >conftest.err 3945 rm -f conftest.er1 3946 cat conftest.err >&5 3947 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3948 (exit $ac_status); } && 3949 { ac_try='test -z "$ac_c_werror_flag" 3950 || test ! -s conftest.err' 3951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3952 (eval $ac_try) 2>&5 3953 ac_status=$? 3954 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3955 (exit $ac_status); }; } && 3956 { ac_try='test -s conftest.$ac_objext' 3957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3958 (eval $ac_try) 2>&5 3959 ac_status=$? 3960 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3961 (exit $ac_status); }; }; then 3962 ac_hi=$ac_mid 3963 else 3964 echo "$as_me: failed program was:" >&5 3965 sed 's/^/| /' conftest.$ac_ext >&5 3966 3967 ac_lo=`expr '(' $ac_mid ')' + 1` 3968 fi 3969 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3970 done 3971 case $ac_lo in 3972 ?*) ac_cv_sizeof_long=$ac_lo;; 3973 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 3974 See \`config.log' for more details." >&5 3975 echo "$as_me: error: cannot compute sizeof (long), 77 3976 See \`config.log' for more details." >&2;} 3977 { (exit 1); exit 1; }; } ;; 3978 esac 3979 else 3980 if test "$cross_compiling" = yes; then 3981 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 3982 See \`config.log' for more details." >&5 3983 echo "$as_me: error: cannot run test program while cross compiling 3984 See \`config.log' for more details." >&2;} 3985 { (exit 1); exit 1; }; } 3986 else 3987 cat >conftest.$ac_ext <<_ACEOF 3988 /* confdefs.h. */ 3989 _ACEOF 3990 cat confdefs.h >>conftest.$ac_ext 3991 cat >>conftest.$ac_ext <<_ACEOF 3992 /* end confdefs.h. */ 3993 $ac_includes_default 3994 long longval () { return (long) (sizeof (long)); } 3995 unsigned long ulongval () { return (long) (sizeof (long)); } 3996 #include <stdio.h> 3997 #include <stdlib.h> 3998 int 3999 main () 4000 { 4001 4002 FILE *f = fopen ("conftest.val", "w"); 4003 if (! f) 4004 exit (1); 4005 if (((long) (sizeof (long))) < 0) 4006 { 4007 long i = longval (); 4008 if (i != ((long) (sizeof (long)))) 4009 exit (1); 4010 fprintf (f, "%ld\n", i); 4011 } 4012 else 4013 { 4014 unsigned long i = ulongval (); 4015 if (i != ((long) (sizeof (long)))) 4016 exit (1); 4017 fprintf (f, "%lu\n", i); 4018 } 4019 exit (ferror (f) || fclose (f) != 0); 4020 4021 ; 4022 return 0; 4023 } 4024 _ACEOF 4025 rm -f conftest$ac_exeext 4026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4027 (eval $ac_link) 2>&5 4028 ac_status=$? 4029 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4030 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4032 (eval $ac_try) 2>&5 4033 ac_status=$? 4034 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4035 (exit $ac_status); }; }; then 4036 ac_cv_sizeof_long=`cat conftest.val` 4037 else 4038 echo "$as_me: program exited with status $ac_status" >&5 4039 echo "$as_me: failed program was:" >&5 4040 sed 's/^/| /' conftest.$ac_ext >&5 4041 4042 ( exit $ac_status ) 4043 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 4044 See \`config.log' for more details." >&5 4045 echo "$as_me: error: cannot compute sizeof (long), 77 4046 See \`config.log' for more details." >&2;} 4047 { (exit 1); exit 1; }; } 4048 fi 4049 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4050 fi 4051 fi 4052 rm -f conftest.val 4053 else 4054 ac_cv_sizeof_long=0 4055 fi 4056 fi 4057 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 4058 echo "${ECHO_T}$ac_cv_sizeof_long" >&6 4059 cat >>confdefs.h <<_ACEOF 4060 #define SIZEOF_LONG $ac_cv_sizeof_long 4061 _ACEOF 4062 4063 4064 echo "$as_me:$LINENO: checking for int" >&5 4065 echo $ECHO_N "checking for int... $ECHO_C" >&6 4066 if test "${ac_cv_type_int+set}" = set; then 4067 echo $ECHO_N "(cached) $ECHO_C" >&6 4068 else 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 $ac_includes_default 4076 int 4077 main () 4078 { 4079 if ((int *) 0) 4080 return 0; 4081 if (sizeof (int)) 4082 return 0; 4083 ; 4084 return 0; 4085 } 4086 _ACEOF 4087 rm -f conftest.$ac_objext 4088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4089 (eval $ac_compile) 2>conftest.er1 4090 ac_status=$? 4091 grep -v '^ *+' conftest.er1 >conftest.err 4092 rm -f conftest.er1 4093 cat conftest.err >&5 4094 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4095 (exit $ac_status); } && 4096 { ac_try='test -z "$ac_c_werror_flag" 4097 || test ! -s conftest.err' 4098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4099 (eval $ac_try) 2>&5 4100 ac_status=$? 4101 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4102 (exit $ac_status); }; } && 4103 { ac_try='test -s conftest.$ac_objext' 4104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4105 (eval $ac_try) 2>&5 4106 ac_status=$? 4107 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4108 (exit $ac_status); }; }; then 4109 ac_cv_type_int=yes 4110 else 4111 echo "$as_me: failed program was:" >&5 4112 sed 's/^/| /' conftest.$ac_ext >&5 4113 4114 ac_cv_type_int=no 4115 fi 4116 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4117 fi 4118 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 4119 echo "${ECHO_T}$ac_cv_type_int" >&6 4120 4121 echo "$as_me:$LINENO: checking size of int" >&5 4122 echo $ECHO_N "checking size of int... $ECHO_C" >&6 4123 if test "${ac_cv_sizeof_int+set}" = set; then 4124 echo $ECHO_N "(cached) $ECHO_C" >&6 4125 else 4126 if test "$ac_cv_type_int" = yes; then 4127 # The cast to unsigned long works around a bug in the HP C Compiler 4128 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 4129 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 4130 # This bug is HP SR number 8606223364. 4131 if test "$cross_compiling" = yes; then 4132 # Depending upon the size, compute the lo and hi bounds. 4133 cat >conftest.$ac_ext <<_ACEOF 4134 /* confdefs.h. */ 4135 _ACEOF 4136 cat confdefs.h >>conftest.$ac_ext 4137 cat >>conftest.$ac_ext <<_ACEOF 4138 /* end confdefs.h. */ 4139 $ac_includes_default 4140 int 4141 main () 4142 { 4143 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; 4144 test_array [0] = 0 4145 4146 ; 4147 return 0; 4148 } 4149 _ACEOF 4150 rm -f conftest.$ac_objext 4151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4152 (eval $ac_compile) 2>conftest.er1 4153 ac_status=$? 4154 grep -v '^ *+' conftest.er1 >conftest.err 4155 rm -f conftest.er1 4156 cat conftest.err >&5 4157 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4158 (exit $ac_status); } && 4159 { ac_try='test -z "$ac_c_werror_flag" 4160 || test ! -s conftest.err' 4161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4162 (eval $ac_try) 2>&5 4163 ac_status=$? 4164 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4165 (exit $ac_status); }; } && 4166 { ac_try='test -s conftest.$ac_objext' 4167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4168 (eval $ac_try) 2>&5 4169 ac_status=$? 4170 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4171 (exit $ac_status); }; }; then 4172 ac_lo=0 ac_mid=0 4173 while :; do 4174 cat >conftest.$ac_ext <<_ACEOF 4175 /* confdefs.h. */ 4176 _ACEOF 4177 cat confdefs.h >>conftest.$ac_ext 4178 cat >>conftest.$ac_ext <<_ACEOF 4179 /* end confdefs.h. */ 4180 $ac_includes_default 4181 int 4182 main () 4183 { 4184 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; 4185 test_array [0] = 0 4186 4187 ; 4188 return 0; 4189 } 4190 _ACEOF 4191 rm -f conftest.$ac_objext 4192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4193 (eval $ac_compile) 2>conftest.er1 4194 ac_status=$? 4195 grep -v '^ *+' conftest.er1 >conftest.err 4196 rm -f conftest.er1 4197 cat conftest.err >&5 4198 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4199 (exit $ac_status); } && 4200 { ac_try='test -z "$ac_c_werror_flag" 4201 || test ! -s conftest.err' 4202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4203 (eval $ac_try) 2>&5 4204 ac_status=$? 4205 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4206 (exit $ac_status); }; } && 4207 { ac_try='test -s conftest.$ac_objext' 4208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4209 (eval $ac_try) 2>&5 4210 ac_status=$? 4211 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4212 (exit $ac_status); }; }; then 4213 ac_hi=$ac_mid; break 4214 else 4215 echo "$as_me: failed program was:" >&5 4216 sed 's/^/| /' conftest.$ac_ext >&5 4217 4218 ac_lo=`expr $ac_mid + 1` 4219 if test $ac_lo -le $ac_mid; then 4220 ac_lo= ac_hi= 4221 break 4222 fi 4223 ac_mid=`expr 2 '*' $ac_mid + 1` 4224 fi 4225 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4226 done 4227 else 4228 echo "$as_me: failed program was:" >&5 4229 sed 's/^/| /' conftest.$ac_ext >&5 4230 4231 cat >conftest.$ac_ext <<_ACEOF 4232 /* confdefs.h. */ 4233 _ACEOF 4234 cat confdefs.h >>conftest.$ac_ext 4235 cat >>conftest.$ac_ext <<_ACEOF 4236 /* end confdefs.h. */ 4237 $ac_includes_default 4238 int 4239 main () 4240 { 4241 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; 4242 test_array [0] = 0 4243 4244 ; 4245 return 0; 4246 } 4247 _ACEOF 4248 rm -f conftest.$ac_objext 4249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4250 (eval $ac_compile) 2>conftest.er1 4251 ac_status=$? 4252 grep -v '^ *+' conftest.er1 >conftest.err 4253 rm -f conftest.er1 4254 cat conftest.err >&5 4255 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4256 (exit $ac_status); } && 4257 { ac_try='test -z "$ac_c_werror_flag" 4258 || test ! -s conftest.err' 4259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4260 (eval $ac_try) 2>&5 4261 ac_status=$? 4262 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4263 (exit $ac_status); }; } && 4264 { ac_try='test -s conftest.$ac_objext' 4265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4266 (eval $ac_try) 2>&5 4267 ac_status=$? 4268 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4269 (exit $ac_status); }; }; then 4270 ac_hi=-1 ac_mid=-1 4271 while :; do 4272 cat >conftest.$ac_ext <<_ACEOF 4273 /* confdefs.h. */ 4274 _ACEOF 4275 cat confdefs.h >>conftest.$ac_ext 4276 cat >>conftest.$ac_ext <<_ACEOF 4277 /* end confdefs.h. */ 4278 $ac_includes_default 4279 int 4280 main () 4281 { 4282 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; 4283 test_array [0] = 0 4284 4285 ; 4286 return 0; 4287 } 4288 _ACEOF 4289 rm -f conftest.$ac_objext 4290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4291 (eval $ac_compile) 2>conftest.er1 4292 ac_status=$? 4293 grep -v '^ *+' conftest.er1 >conftest.err 4294 rm -f conftest.er1 4295 cat conftest.err >&5 4296 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4297 (exit $ac_status); } && 4298 { ac_try='test -z "$ac_c_werror_flag" 4299 || test ! -s conftest.err' 4300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4301 (eval $ac_try) 2>&5 4302 ac_status=$? 4303 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4304 (exit $ac_status); }; } && 4305 { ac_try='test -s conftest.$ac_objext' 4306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4307 (eval $ac_try) 2>&5 4308 ac_status=$? 4309 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4310 (exit $ac_status); }; }; then 4311 ac_lo=$ac_mid; break 4312 else 4313 echo "$as_me: failed program was:" >&5 4314 sed 's/^/| /' conftest.$ac_ext >&5 4315 4316 ac_hi=`expr '(' $ac_mid ')' - 1` 4317 if test $ac_mid -le $ac_hi; then 4318 ac_lo= ac_hi= 4319 break 4320 fi 4321 ac_mid=`expr 2 '*' $ac_mid` 4322 fi 4323 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4324 done 4325 else 4326 echo "$as_me: failed program was:" >&5 4327 sed 's/^/| /' conftest.$ac_ext >&5 4328 4329 ac_lo= ac_hi= 4330 fi 4331 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4332 fi 4333 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4334 # Binary search between lo and hi bounds. 4335 while test "x$ac_lo" != "x$ac_hi"; do 4336 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 4337 cat >conftest.$ac_ext <<_ACEOF 4338 /* confdefs.h. */ 4339 _ACEOF 4340 cat confdefs.h >>conftest.$ac_ext 4341 cat >>conftest.$ac_ext <<_ACEOF 4342 /* end confdefs.h. */ 4343 $ac_includes_default 4344 int 4345 main () 4346 { 4347 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; 4348 test_array [0] = 0 4349 4350 ; 4351 return 0; 4352 } 4353 _ACEOF 4354 rm -f conftest.$ac_objext 4355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4356 (eval $ac_compile) 2>conftest.er1 4357 ac_status=$? 4358 grep -v '^ *+' conftest.er1 >conftest.err 4359 rm -f conftest.er1 4360 cat conftest.err >&5 4361 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4362 (exit $ac_status); } && 4363 { ac_try='test -z "$ac_c_werror_flag" 4364 || test ! -s conftest.err' 4365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4366 (eval $ac_try) 2>&5 4367 ac_status=$? 4368 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4369 (exit $ac_status); }; } && 4370 { ac_try='test -s conftest.$ac_objext' 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); }; }; then 4376 ac_hi=$ac_mid 4377 else 4378 echo "$as_me: failed program was:" >&5 4379 sed 's/^/| /' conftest.$ac_ext >&5 4380 4381 ac_lo=`expr '(' $ac_mid ')' + 1` 4382 fi 4383 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4384 done 4385 case $ac_lo in 4386 ?*) ac_cv_sizeof_int=$ac_lo;; 4387 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 4388 See \`config.log' for more details." >&5 4389 echo "$as_me: error: cannot compute sizeof (int), 77 4390 See \`config.log' for more details." >&2;} 4391 { (exit 1); exit 1; }; } ;; 4392 esac 4393 else 4394 if test "$cross_compiling" = yes; then 4395 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 4396 See \`config.log' for more details." >&5 4397 echo "$as_me: error: cannot run test program while cross compiling 4398 See \`config.log' for more details." >&2;} 4399 { (exit 1); exit 1; }; } 4400 else 4401 cat >conftest.$ac_ext <<_ACEOF 4402 /* confdefs.h. */ 4403 _ACEOF 4404 cat confdefs.h >>conftest.$ac_ext 4405 cat >>conftest.$ac_ext <<_ACEOF 4406 /* end confdefs.h. */ 4407 $ac_includes_default 4408 long longval () { return (long) (sizeof (int)); } 4409 unsigned long ulongval () { return (long) (sizeof (int)); } 4410 #include <stdio.h> 4411 #include <stdlib.h> 4412 int 4413 main () 4414 { 4415 4416 FILE *f = fopen ("conftest.val", "w"); 4417 if (! f) 4418 exit (1); 4419 if (((long) (sizeof (int))) < 0) 4420 { 4421 long i = longval (); 4422 if (i != ((long) (sizeof (int)))) 4423 exit (1); 4424 fprintf (f, "%ld\n", i); 4425 } 4426 else 4427 { 4428 unsigned long i = ulongval (); 4429 if (i != ((long) (sizeof (int)))) 4430 exit (1); 4431 fprintf (f, "%lu\n", i); 4432 } 4433 exit (ferror (f) || fclose (f) != 0); 4434 4435 ; 4436 return 0; 4437 } 4438 _ACEOF 4439 rm -f conftest$ac_exeext 4440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4441 (eval $ac_link) 2>&5 4442 ac_status=$? 4443 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4444 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4446 (eval $ac_try) 2>&5 4447 ac_status=$? 4448 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4449 (exit $ac_status); }; }; then 4450 ac_cv_sizeof_int=`cat conftest.val` 4451 else 4452 echo "$as_me: program exited with status $ac_status" >&5 4453 echo "$as_me: failed program was:" >&5 4454 sed 's/^/| /' conftest.$ac_ext >&5 4455 4456 ( exit $ac_status ) 4457 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 4458 See \`config.log' for more details." >&5 4459 echo "$as_me: error: cannot compute sizeof (int), 77 4460 See \`config.log' for more details." >&2;} 4461 { (exit 1); exit 1; }; } 4462 fi 4463 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4464 fi 4465 fi 4466 rm -f conftest.val 4467 else 4468 ac_cv_sizeof_int=0 4469 fi 4470 fi 4471 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 4472 echo "${ECHO_T}$ac_cv_sizeof_int" >&6 4473 cat >>confdefs.h <<_ACEOF 4474 #define SIZEOF_INT $ac_cv_sizeof_int 4475 _ACEOF 4476 4477 4478 echo "$as_me:$LINENO: checking for short" >&5 4479 echo $ECHO_N "checking for short... $ECHO_C" >&6 4480 if test "${ac_cv_type_short+set}" = set; then 4481 echo $ECHO_N "(cached) $ECHO_C" >&6 4482 else 4483 cat >conftest.$ac_ext <<_ACEOF 4484 /* confdefs.h. */ 4485 _ACEOF 4486 cat confdefs.h >>conftest.$ac_ext 4487 cat >>conftest.$ac_ext <<_ACEOF 4488 /* end confdefs.h. */ 4489 $ac_includes_default 4490 int 4491 main () 4492 { 4493 if ((short *) 0) 4494 return 0; 4495 if (sizeof (short)) 4496 return 0; 4497 ; 4498 return 0; 4499 } 4500 _ACEOF 4501 rm -f conftest.$ac_objext 4502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4503 (eval $ac_compile) 2>conftest.er1 4504 ac_status=$? 4505 grep -v '^ *+' conftest.er1 >conftest.err 4506 rm -f conftest.er1 4507 cat conftest.err >&5 4508 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4509 (exit $ac_status); } && 4510 { ac_try='test -z "$ac_c_werror_flag" 4511 || test ! -s conftest.err' 4512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4513 (eval $ac_try) 2>&5 4514 ac_status=$? 4515 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4516 (exit $ac_status); }; } && 4517 { ac_try='test -s conftest.$ac_objext' 4518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4519 (eval $ac_try) 2>&5 4520 ac_status=$? 4521 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4522 (exit $ac_status); }; }; then 4523 ac_cv_type_short=yes 4524 else 4525 echo "$as_me: failed program was:" >&5 4526 sed 's/^/| /' conftest.$ac_ext >&5 4527 4528 ac_cv_type_short=no 4529 fi 4530 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4531 fi 4532 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 4533 echo "${ECHO_T}$ac_cv_type_short" >&6 4534 4535 echo "$as_me:$LINENO: checking size of short" >&5 4536 echo $ECHO_N "checking size of short... $ECHO_C" >&6 4537 if test "${ac_cv_sizeof_short+set}" = set; then 4538 echo $ECHO_N "(cached) $ECHO_C" >&6 4539 else 4540 if test "$ac_cv_type_short" = yes; then 4541 # The cast to unsigned long works around a bug in the HP C Compiler 4542 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 4543 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 4544 # This bug is HP SR number 8606223364. 4545 if test "$cross_compiling" = yes; then 4546 # Depending upon the size, compute the lo and hi bounds. 4547 cat >conftest.$ac_ext <<_ACEOF 4548 /* confdefs.h. */ 4549 _ACEOF 4550 cat confdefs.h >>conftest.$ac_ext 4551 cat >>conftest.$ac_ext <<_ACEOF 4552 /* end confdefs.h. */ 4553 $ac_includes_default 4554 int 4555 main () 4556 { 4557 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; 4558 test_array [0] = 0 4559 4560 ; 4561 return 0; 4562 } 4563 _ACEOF 4564 rm -f conftest.$ac_objext 4565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4566 (eval $ac_compile) 2>conftest.er1 4567 ac_status=$? 4568 grep -v '^ *+' conftest.er1 >conftest.err 4569 rm -f conftest.er1 4570 cat conftest.err >&5 4571 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4572 (exit $ac_status); } && 4573 { ac_try='test -z "$ac_c_werror_flag" 4574 || test ! -s conftest.err' 4575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4576 (eval $ac_try) 2>&5 4577 ac_status=$? 4578 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4579 (exit $ac_status); }; } && 4580 { ac_try='test -s conftest.$ac_objext' 4581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4582 (eval $ac_try) 2>&5 4583 ac_status=$? 4584 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4585 (exit $ac_status); }; }; then 4586 ac_lo=0 ac_mid=0 4587 while :; do 4588 cat >conftest.$ac_ext <<_ACEOF 4589 /* confdefs.h. */ 4590 _ACEOF 4591 cat confdefs.h >>conftest.$ac_ext 4592 cat >>conftest.$ac_ext <<_ACEOF 4593 /* end confdefs.h. */ 4594 $ac_includes_default 4595 int 4596 main () 4597 { 4598 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; 4599 test_array [0] = 0 4600 4601 ; 4602 return 0; 4603 } 4604 _ACEOF 4605 rm -f conftest.$ac_objext 4606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4607 (eval $ac_compile) 2>conftest.er1 4608 ac_status=$? 4609 grep -v '^ *+' conftest.er1 >conftest.err 4610 rm -f conftest.er1 4611 cat conftest.err >&5 4612 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4613 (exit $ac_status); } && 4614 { ac_try='test -z "$ac_c_werror_flag" 4615 || test ! -s conftest.err' 4616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4617 (eval $ac_try) 2>&5 4618 ac_status=$? 4619 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4620 (exit $ac_status); }; } && 4621 { ac_try='test -s conftest.$ac_objext' 4622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4623 (eval $ac_try) 2>&5 4624 ac_status=$? 4625 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4626 (exit $ac_status); }; }; then 4627 ac_hi=$ac_mid; break 4628 else 4629 echo "$as_me: failed program was:" >&5 4630 sed 's/^/| /' conftest.$ac_ext >&5 4631 4632 ac_lo=`expr $ac_mid + 1` 4633 if test $ac_lo -le $ac_mid; then 4634 ac_lo= ac_hi= 4635 break 4636 fi 4637 ac_mid=`expr 2 '*' $ac_mid + 1` 4638 fi 4639 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4640 done 4641 else 4642 echo "$as_me: failed program was:" >&5 4643 sed 's/^/| /' conftest.$ac_ext >&5 4644 4645 cat >conftest.$ac_ext <<_ACEOF 4646 /* confdefs.h. */ 4647 _ACEOF 4648 cat confdefs.h >>conftest.$ac_ext 4649 cat >>conftest.$ac_ext <<_ACEOF 4650 /* end confdefs.h. */ 4651 $ac_includes_default 4652 int 4653 main () 4654 { 4655 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; 4656 test_array [0] = 0 4657 4658 ; 4659 return 0; 4660 } 4661 _ACEOF 4662 rm -f conftest.$ac_objext 4663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4664 (eval $ac_compile) 2>conftest.er1 4665 ac_status=$? 4666 grep -v '^ *+' conftest.er1 >conftest.err 4667 rm -f conftest.er1 4668 cat conftest.err >&5 4669 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4670 (exit $ac_status); } && 4671 { ac_try='test -z "$ac_c_werror_flag" 4672 || test ! -s conftest.err' 4673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4674 (eval $ac_try) 2>&5 4675 ac_status=$? 4676 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4677 (exit $ac_status); }; } && 4678 { ac_try='test -s conftest.$ac_objext' 4679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4680 (eval $ac_try) 2>&5 4681 ac_status=$? 4682 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4683 (exit $ac_status); }; }; then 4684 ac_hi=-1 ac_mid=-1 4685 while :; do 4686 cat >conftest.$ac_ext <<_ACEOF 4687 /* confdefs.h. */ 4688 _ACEOF 4689 cat confdefs.h >>conftest.$ac_ext 4690 cat >>conftest.$ac_ext <<_ACEOF 4691 /* end confdefs.h. */ 4692 $ac_includes_default 4693 int 4694 main () 4695 { 4696 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; 4697 test_array [0] = 0 4698 4699 ; 4700 return 0; 4701 } 4702 _ACEOF 4703 rm -f conftest.$ac_objext 4704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4705 (eval $ac_compile) 2>conftest.er1 4706 ac_status=$? 4707 grep -v '^ *+' conftest.er1 >conftest.err 4708 rm -f conftest.er1 4709 cat conftest.err >&5 4710 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4711 (exit $ac_status); } && 4712 { ac_try='test -z "$ac_c_werror_flag" 4713 || test ! -s conftest.err' 4714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4715 (eval $ac_try) 2>&5 4716 ac_status=$? 4717 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4718 (exit $ac_status); }; } && 4719 { ac_try='test -s conftest.$ac_objext' 4720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4721 (eval $ac_try) 2>&5 4722 ac_status=$? 4723 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4724 (exit $ac_status); }; }; then 4725 ac_lo=$ac_mid; break 4726 else 4727 echo "$as_me: failed program was:" >&5 4728 sed 's/^/| /' conftest.$ac_ext >&5 4729 4730 ac_hi=`expr '(' $ac_mid ')' - 1` 4731 if test $ac_mid -le $ac_hi; then 4732 ac_lo= ac_hi= 4733 break 4734 fi 4735 ac_mid=`expr 2 '*' $ac_mid` 4736 fi 4737 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4738 done 4739 else 4740 echo "$as_me: failed program was:" >&5 4741 sed 's/^/| /' conftest.$ac_ext >&5 4742 4743 ac_lo= ac_hi= 4744 fi 4745 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4746 fi 4747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4748 # Binary search between lo and hi bounds. 4749 while test "x$ac_lo" != "x$ac_hi"; do 4750 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 4751 cat >conftest.$ac_ext <<_ACEOF 4752 /* confdefs.h. */ 4753 _ACEOF 4754 cat confdefs.h >>conftest.$ac_ext 4755 cat >>conftest.$ac_ext <<_ACEOF 4756 /* end confdefs.h. */ 4757 $ac_includes_default 4758 int 4759 main () 4760 { 4761 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; 4762 test_array [0] = 0 4763 4764 ; 4765 return 0; 4766 } 4767 _ACEOF 4768 rm -f conftest.$ac_objext 4769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4770 (eval $ac_compile) 2>conftest.er1 4771 ac_status=$? 4772 grep -v '^ *+' conftest.er1 >conftest.err 4773 rm -f conftest.er1 4774 cat conftest.err >&5 4775 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4776 (exit $ac_status); } && 4777 { ac_try='test -z "$ac_c_werror_flag" 4778 || test ! -s conftest.err' 4779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4780 (eval $ac_try) 2>&5 4781 ac_status=$? 4782 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4783 (exit $ac_status); }; } && 4784 { ac_try='test -s conftest.$ac_objext' 4785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4786 (eval $ac_try) 2>&5 4787 ac_status=$? 4788 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4789 (exit $ac_status); }; }; then 4790 ac_hi=$ac_mid 4791 else 4792 echo "$as_me: failed program was:" >&5 4793 sed 's/^/| /' conftest.$ac_ext >&5 4794 4795 ac_lo=`expr '(' $ac_mid ')' + 1` 4796 fi 4797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4798 done 4799 case $ac_lo in 4800 ?*) ac_cv_sizeof_short=$ac_lo;; 4801 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 4802 See \`config.log' for more details." >&5 4803 echo "$as_me: error: cannot compute sizeof (short), 77 4804 See \`config.log' for more details." >&2;} 4805 { (exit 1); exit 1; }; } ;; 4806 esac 4807 else 4808 if test "$cross_compiling" = yes; then 4809 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 4810 See \`config.log' for more details." >&5 4811 echo "$as_me: error: cannot run test program while cross compiling 4812 See \`config.log' for more details." >&2;} 4813 { (exit 1); exit 1; }; } 4814 else 4815 cat >conftest.$ac_ext <<_ACEOF 4816 /* confdefs.h. */ 4817 _ACEOF 4818 cat confdefs.h >>conftest.$ac_ext 4819 cat >>conftest.$ac_ext <<_ACEOF 4820 /* end confdefs.h. */ 4821 $ac_includes_default 4822 long longval () { return (long) (sizeof (short)); } 4823 unsigned long ulongval () { return (long) (sizeof (short)); } 4824 #include <stdio.h> 4825 #include <stdlib.h> 4826 int 4827 main () 4828 { 4829 4830 FILE *f = fopen ("conftest.val", "w"); 4831 if (! f) 4832 exit (1); 4833 if (((long) (sizeof (short))) < 0) 4834 { 4835 long i = longval (); 4836 if (i != ((long) (sizeof (short)))) 4837 exit (1); 4838 fprintf (f, "%ld\n", i); 4839 } 4840 else 4841 { 4842 unsigned long i = ulongval (); 4843 if (i != ((long) (sizeof (short)))) 4844 exit (1); 4845 fprintf (f, "%lu\n", i); 4846 } 4847 exit (ferror (f) || fclose (f) != 0); 4848 4849 ; 4850 return 0; 4851 } 4852 _ACEOF 4853 rm -f conftest$ac_exeext 4854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4855 (eval $ac_link) 2>&5 4856 ac_status=$? 4857 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4858 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4860 (eval $ac_try) 2>&5 4861 ac_status=$? 4862 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4863 (exit $ac_status); }; }; then 4864 ac_cv_sizeof_short=`cat conftest.val` 4865 else 4866 echo "$as_me: program exited with status $ac_status" >&5 4867 echo "$as_me: failed program was:" >&5 4868 sed 's/^/| /' conftest.$ac_ext >&5 4869 4870 ( exit $ac_status ) 4871 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 4872 See \`config.log' for more details." >&5 4873 echo "$as_me: error: cannot compute sizeof (short), 77 4874 See \`config.log' for more details." >&2;} 4875 { (exit 1); exit 1; }; } 4876 fi 4877 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4878 fi 4879 fi 4880 rm -f conftest.val 4881 else 4882 ac_cv_sizeof_short=0 4883 fi 4884 fi 4885 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 4886 echo "${ECHO_T}$ac_cv_sizeof_short" >&6 4887 cat >>confdefs.h <<_ACEOF 4888 #define SIZEOF_SHORT $ac_cv_sizeof_short 4889 _ACEOF 4890 4891 4892 fi 4893 FOUND=0 4894 for dc_cv_loop in \$ac_cv_sizeof_long_long \$ac_cv_sizeof_int \$ac_cv_sizeof_long \$ac_cv_sizeof_short; do 4895 dc_cv_size=`eval echo $dc_cv_loop` 4896 dc_cv_name=`echo $dc_cv_loop | sed s/\\\$ac_cv_sizeof_//` 4897 if test "$dc_cv_size" = "8"; then 4898 if test "$dc_cv_name" = "int"; then 4899 echo "$as_me:$LINENO: checking for uint64_t" >&5 4900 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6 4901 if test "${ac_cv_type_uint64_t+set}" = set; then 4902 echo $ECHO_N "(cached) $ECHO_C" >&6 4903 else 4904 cat >conftest.$ac_ext <<_ACEOF 4905 /* confdefs.h. */ 4906 _ACEOF 4907 cat confdefs.h >>conftest.$ac_ext 4908 cat >>conftest.$ac_ext <<_ACEOF 4909 /* end confdefs.h. */ 4910 $ac_includes_default 4911 int 4912 main () 4913 { 4914 if ((uint64_t *) 0) 4915 return 0; 4916 if (sizeof (uint64_t)) 4917 return 0; 4918 ; 4919 return 0; 4920 } 4921 _ACEOF 4922 rm -f conftest.$ac_objext 4923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4924 (eval $ac_compile) 2>conftest.er1 4925 ac_status=$? 4926 grep -v '^ *+' conftest.er1 >conftest.err 4927 rm -f conftest.er1 4928 cat conftest.err >&5 4929 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4930 (exit $ac_status); } && 4931 { ac_try='test -z "$ac_c_werror_flag" 4932 || test ! -s conftest.err' 4933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4934 (eval $ac_try) 2>&5 4935 ac_status=$? 4936 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4937 (exit $ac_status); }; } && 4938 { ac_try='test -s conftest.$ac_objext' 4939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4940 (eval $ac_try) 2>&5 4941 ac_status=$? 4942 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4943 (exit $ac_status); }; }; then 4944 ac_cv_type_uint64_t=yes 4945 else 4946 echo "$as_me: failed program was:" >&5 4947 sed 's/^/| /' conftest.$ac_ext >&5 4948 4949 ac_cv_type_uint64_t=no 4950 fi 4951 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4952 fi 4953 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 4954 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6 4955 if test $ac_cv_type_uint64_t = yes; then 4956 : 4957 else 4958 4959 cat >>confdefs.h <<_ACEOF 4960 #define uint64_t unsigned int 4961 _ACEOF 4962 4963 fi 4964 4965 fi 4966 if test "$dc_cv_name" = "long"; then 4967 echo "$as_me:$LINENO: checking for uint64_t" >&5 4968 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6 4969 if test "${ac_cv_type_uint64_t+set}" = set; then 4970 echo $ECHO_N "(cached) $ECHO_C" >&6 4971 else 4972 cat >conftest.$ac_ext <<_ACEOF 4973 /* confdefs.h. */ 4974 _ACEOF 4975 cat confdefs.h >>conftest.$ac_ext 4976 cat >>conftest.$ac_ext <<_ACEOF 4977 /* end confdefs.h. */ 4978 $ac_includes_default 4979 int 4980 main () 4981 { 4982 if ((uint64_t *) 0) 4983 return 0; 4984 if (sizeof (uint64_t)) 4985 return 0; 4986 ; 4987 return 0; 4988 } 4989 _ACEOF 4990 rm -f conftest.$ac_objext 4991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4992 (eval $ac_compile) 2>conftest.er1 4993 ac_status=$? 4994 grep -v '^ *+' conftest.er1 >conftest.err 4995 rm -f conftest.er1 4996 cat conftest.err >&5 4997 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4998 (exit $ac_status); } && 4999 { ac_try='test -z "$ac_c_werror_flag" 5000 || test ! -s conftest.err' 5001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5002 (eval $ac_try) 2>&5 5003 ac_status=$? 5004 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5005 (exit $ac_status); }; } && 5006 { ac_try='test -s conftest.$ac_objext' 5007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5008 (eval $ac_try) 2>&5 5009 ac_status=$? 5010 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5011 (exit $ac_status); }; }; then 5012 ac_cv_type_uint64_t=yes 5013 else 5014 echo "$as_me: failed program was:" >&5 5015 sed 's/^/| /' conftest.$ac_ext >&5 5016 5017 ac_cv_type_uint64_t=no 5018 fi 5019 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5020 fi 5021 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 5022 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6 5023 if test $ac_cv_type_uint64_t = yes; then 5024 : 5025 else 5026 5027 cat >>confdefs.h <<_ACEOF 5028 #define uint64_t unsigned long 5029 _ACEOF 5030 5031 fi 5032 5033 fi 5034 if test "$dc_cv_name" = "long_long"; then 5035 echo "$as_me:$LINENO: checking for uint64_t" >&5 5036 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6 5037 if test "${ac_cv_type_uint64_t+set}" = set; then 5038 echo $ECHO_N "(cached) $ECHO_C" >&6 5039 else 5040 cat >conftest.$ac_ext <<_ACEOF 5041 /* confdefs.h. */ 5042 _ACEOF 5043 cat confdefs.h >>conftest.$ac_ext 5044 cat >>conftest.$ac_ext <<_ACEOF 5045 /* end confdefs.h. */ 5046 $ac_includes_default 5047 int 5048 main () 5049 { 5050 if ((uint64_t *) 0) 5051 return 0; 5052 if (sizeof (uint64_t)) 5053 return 0; 5054 ; 5055 return 0; 5056 } 5057 _ACEOF 5058 rm -f conftest.$ac_objext 5059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5060 (eval $ac_compile) 2>conftest.er1 5061 ac_status=$? 5062 grep -v '^ *+' conftest.er1 >conftest.err 5063 rm -f conftest.er1 5064 cat conftest.err >&5 5065 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5066 (exit $ac_status); } && 5067 { ac_try='test -z "$ac_c_werror_flag" 5068 || test ! -s conftest.err' 5069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5070 (eval $ac_try) 2>&5 5071 ac_status=$? 5072 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5073 (exit $ac_status); }; } && 5074 { ac_try='test -s conftest.$ac_objext' 5075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5076 (eval $ac_try) 2>&5 5077 ac_status=$? 5078 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5079 (exit $ac_status); }; }; then 5080 ac_cv_type_uint64_t=yes 5081 else 5082 echo "$as_me: failed program was:" >&5 5083 sed 's/^/| /' conftest.$ac_ext >&5 5084 5085 ac_cv_type_uint64_t=no 5086 fi 5087 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5088 fi 5089 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 5090 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6 5091 if test $ac_cv_type_uint64_t = yes; then 5092 : 5093 else 5094 5095 cat >>confdefs.h <<_ACEOF 5096 #define uint64_t unsigned long long 5097 _ACEOF 5098 5099 fi 5100 5101 fi 5102 if test "$dc_cv_name" = "short"; then 5103 echo "$as_me:$LINENO: checking for uint64_t" >&5 5104 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6 5105 if test "${ac_cv_type_uint64_t+set}" = set; then 5106 echo $ECHO_N "(cached) $ECHO_C" >&6 5107 else 5108 cat >conftest.$ac_ext <<_ACEOF 5109 /* confdefs.h. */ 5110 _ACEOF 5111 cat confdefs.h >>conftest.$ac_ext 5112 cat >>conftest.$ac_ext <<_ACEOF 5113 /* end confdefs.h. */ 5114 $ac_includes_default 5115 int 5116 main () 5117 { 5118 if ((uint64_t *) 0) 5119 return 0; 5120 if (sizeof (uint64_t)) 5121 return 0; 5122 ; 5123 return 0; 5124 } 5125 _ACEOF 5126 rm -f conftest.$ac_objext 5127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5128 (eval $ac_compile) 2>conftest.er1 5129 ac_status=$? 5130 grep -v '^ *+' conftest.er1 >conftest.err 5131 rm -f conftest.er1 5132 cat conftest.err >&5 5133 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5134 (exit $ac_status); } && 5135 { ac_try='test -z "$ac_c_werror_flag" 5136 || test ! -s conftest.err' 5137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5138 (eval $ac_try) 2>&5 5139 ac_status=$? 5140 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5141 (exit $ac_status); }; } && 5142 { ac_try='test -s conftest.$ac_objext' 5143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5144 (eval $ac_try) 2>&5 5145 ac_status=$? 5146 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5147 (exit $ac_status); }; }; then 5148 ac_cv_type_uint64_t=yes 5149 else 5150 echo "$as_me: failed program was:" >&5 5151 sed 's/^/| /' conftest.$ac_ext >&5 5152 5153 ac_cv_type_uint64_t=no 5154 fi 5155 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5156 fi 5157 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 5158 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6 5159 if test $ac_cv_type_uint64_t = yes; then 5160 : 5161 else 5162 5163 cat >>confdefs.h <<_ACEOF 5164 #define uint64_t unsigned short 5165 _ACEOF 5166 5167 fi 5168 5169 fi 5170 FOUND=1 5171 break 5172 fi 5173 done 5174 5175 5176 if test -z "$ac_cv_sizeof_long"; then 5177 echo "$as_me:$LINENO: checking for inline" >&5 5178 echo $ECHO_N "checking for inline... $ECHO_C" >&6 5179 if test "${ac_cv_c_inline+set}" = set; then 5180 echo $ECHO_N "(cached) $ECHO_C" >&6 5181 else 5182 ac_cv_c_inline=no 5183 for ac_kw in inline __inline__ __inline; do 5184 cat >conftest.$ac_ext <<_ACEOF 5185 /* confdefs.h. */ 5186 _ACEOF 5187 cat confdefs.h >>conftest.$ac_ext 5188 cat >>conftest.$ac_ext <<_ACEOF 5189 /* end confdefs.h. */ 5190 #ifndef __cplusplus 5191 typedef int foo_t; 5192 static $ac_kw foo_t static_foo () {return 0; } 5193 $ac_kw foo_t foo () {return 0; } 5194 #endif 5195 5196 _ACEOF 5197 rm -f conftest.$ac_objext 5198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5199 (eval $ac_compile) 2>conftest.er1 5200 ac_status=$? 5201 grep -v '^ *+' conftest.er1 >conftest.err 5202 rm -f conftest.er1 5203 cat conftest.err >&5 5204 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5205 (exit $ac_status); } && 5206 { ac_try='test -z "$ac_c_werror_flag" 5207 || test ! -s conftest.err' 5208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5209 (eval $ac_try) 2>&5 5210 ac_status=$? 5211 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5212 (exit $ac_status); }; } && 5213 { ac_try='test -s conftest.$ac_objext' 5214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5215 (eval $ac_try) 2>&5 5216 ac_status=$? 5217 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5218 (exit $ac_status); }; }; then 5219 ac_cv_c_inline=$ac_kw; break 5220 else 5221 echo "$as_me: failed program was:" >&5 5222 sed 's/^/| /' conftest.$ac_ext >&5 5223 5224 fi 5225 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5226 done 5227 5228 fi 5229 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 5230 echo "${ECHO_T}$ac_cv_c_inline" >&6 5231 5232 5233 case $ac_cv_c_inline in 5234 inline | yes) ;; 5235 *) 5236 case $ac_cv_c_inline in 5237 no) ac_val=;; 5238 *) ac_val=$ac_cv_c_inline;; 5239 esac 5240 cat >>confdefs.h <<_ACEOF 5241 #ifndef __cplusplus 5242 #define inline $ac_val 5243 #endif 5244 _ACEOF 5245 ;; 5246 esac 5247 5248 echo "$as_me:$LINENO: checking for long long" >&5 5249 echo $ECHO_N "checking for long long... $ECHO_C" >&6 5250 if test "${ac_cv_type_long_long+set}" = set; then 5251 echo $ECHO_N "(cached) $ECHO_C" >&6 5252 else 5253 cat >conftest.$ac_ext <<_ACEOF 5254 /* confdefs.h. */ 5255 _ACEOF 5256 cat confdefs.h >>conftest.$ac_ext 5257 cat >>conftest.$ac_ext <<_ACEOF 5258 /* end confdefs.h. */ 5259 $ac_includes_default 5260 int 5261 main () 5262 { 5263 if ((long long *) 0) 5264 return 0; 5265 if (sizeof (long long)) 5266 return 0; 5267 ; 5268 return 0; 5269 } 5270 _ACEOF 5271 rm -f conftest.$ac_objext 5272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5273 (eval $ac_compile) 2>conftest.er1 5274 ac_status=$? 5275 grep -v '^ *+' conftest.er1 >conftest.err 5276 rm -f conftest.er1 5277 cat conftest.err >&5 5278 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5279 (exit $ac_status); } && 5280 { ac_try='test -z "$ac_c_werror_flag" 5281 || test ! -s conftest.err' 5282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5283 (eval $ac_try) 2>&5 5284 ac_status=$? 5285 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5286 (exit $ac_status); }; } && 5287 { ac_try='test -s conftest.$ac_objext' 5288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5289 (eval $ac_try) 2>&5 5290 ac_status=$? 5291 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5292 (exit $ac_status); }; }; then 5293 ac_cv_type_long_long=yes 5294 else 5295 echo "$as_me: failed program was:" >&5 5296 sed 's/^/| /' conftest.$ac_ext >&5 5297 5298 ac_cv_type_long_long=no 5299 fi 5300 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5301 fi 5302 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 5303 echo "${ECHO_T}$ac_cv_type_long_long" >&6 5304 5305 echo "$as_me:$LINENO: checking size of long long" >&5 5306 echo $ECHO_N "checking size of long long... $ECHO_C" >&6 5307 if test "${ac_cv_sizeof_long_long+set}" = set; then 5308 echo $ECHO_N "(cached) $ECHO_C" >&6 5309 else 5310 if test "$ac_cv_type_long_long" = yes; then 5311 # The cast to unsigned long works around a bug in the HP C Compiler 5312 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 5313 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 5314 # This bug is HP SR number 8606223364. 5315 if test "$cross_compiling" = yes; then 5316 # Depending upon the size, compute the lo and hi bounds. 5317 cat >conftest.$ac_ext <<_ACEOF 5318 /* confdefs.h. */ 5319 _ACEOF 5320 cat confdefs.h >>conftest.$ac_ext 5321 cat >>conftest.$ac_ext <<_ACEOF 5322 /* end confdefs.h. */ 5323 $ac_includes_default 5324 int 5325 main () 5326 { 5327 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; 5328 test_array [0] = 0 5329 5330 ; 5331 return 0; 5332 } 5333 _ACEOF 5334 rm -f conftest.$ac_objext 5335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5336 (eval $ac_compile) 2>conftest.er1 5337 ac_status=$? 5338 grep -v '^ *+' conftest.er1 >conftest.err 5339 rm -f conftest.er1 5340 cat conftest.err >&5 5341 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5342 (exit $ac_status); } && 5343 { ac_try='test -z "$ac_c_werror_flag" 5344 || test ! -s conftest.err' 5345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5346 (eval $ac_try) 2>&5 5347 ac_status=$? 5348 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5349 (exit $ac_status); }; } && 5350 { ac_try='test -s conftest.$ac_objext' 5351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5352 (eval $ac_try) 2>&5 5353 ac_status=$? 5354 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5355 (exit $ac_status); }; }; then 5356 ac_lo=0 ac_mid=0 5357 while :; do 5358 cat >conftest.$ac_ext <<_ACEOF 5359 /* confdefs.h. */ 5360 _ACEOF 5361 cat confdefs.h >>conftest.$ac_ext 5362 cat >>conftest.$ac_ext <<_ACEOF 5363 /* end confdefs.h. */ 5364 $ac_includes_default 5365 int 5366 main () 5367 { 5368 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; 5369 test_array [0] = 0 5370 5371 ; 5372 return 0; 5373 } 5374 _ACEOF 5375 rm -f conftest.$ac_objext 5376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5377 (eval $ac_compile) 2>conftest.er1 5378 ac_status=$? 5379 grep -v '^ *+' conftest.er1 >conftest.err 5380 rm -f conftest.er1 5381 cat conftest.err >&5 5382 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5383 (exit $ac_status); } && 5384 { ac_try='test -z "$ac_c_werror_flag" 5385 || test ! -s conftest.err' 5386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5387 (eval $ac_try) 2>&5 5388 ac_status=$? 5389 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5390 (exit $ac_status); }; } && 5391 { ac_try='test -s conftest.$ac_objext' 5392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5393 (eval $ac_try) 2>&5 5394 ac_status=$? 5395 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5396 (exit $ac_status); }; }; then 5397 ac_hi=$ac_mid; break 5398 else 5399 echo "$as_me: failed program was:" >&5 5400 sed 's/^/| /' conftest.$ac_ext >&5 5401 5402 ac_lo=`expr $ac_mid + 1` 5403 if test $ac_lo -le $ac_mid; then 5404 ac_lo= ac_hi= 5405 break 5406 fi 5407 ac_mid=`expr 2 '*' $ac_mid + 1` 5408 fi 5409 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5410 done 5411 else 5412 echo "$as_me: failed program was:" >&5 5413 sed 's/^/| /' conftest.$ac_ext >&5 5414 5415 cat >conftest.$ac_ext <<_ACEOF 5416 /* confdefs.h. */ 5417 _ACEOF 5418 cat confdefs.h >>conftest.$ac_ext 5419 cat >>conftest.$ac_ext <<_ACEOF 5420 /* end confdefs.h. */ 5421 $ac_includes_default 5422 int 5423 main () 5424 { 5425 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; 5426 test_array [0] = 0 5427 5428 ; 5429 return 0; 5430 } 5431 _ACEOF 5432 rm -f conftest.$ac_objext 5433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5434 (eval $ac_compile) 2>conftest.er1 5435 ac_status=$? 5436 grep -v '^ *+' conftest.er1 >conftest.err 5437 rm -f conftest.er1 5438 cat conftest.err >&5 5439 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5440 (exit $ac_status); } && 5441 { ac_try='test -z "$ac_c_werror_flag" 5442 || test ! -s conftest.err' 5443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5444 (eval $ac_try) 2>&5 5445 ac_status=$? 5446 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5447 (exit $ac_status); }; } && 5448 { ac_try='test -s conftest.$ac_objext' 5449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5450 (eval $ac_try) 2>&5 5451 ac_status=$? 5452 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5453 (exit $ac_status); }; }; then 5454 ac_hi=-1 ac_mid=-1 5455 while :; do 5456 cat >conftest.$ac_ext <<_ACEOF 5457 /* confdefs.h. */ 5458 _ACEOF 5459 cat confdefs.h >>conftest.$ac_ext 5460 cat >>conftest.$ac_ext <<_ACEOF 5461 /* end confdefs.h. */ 5462 $ac_includes_default 5463 int 5464 main () 5465 { 5466 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; 5467 test_array [0] = 0 5468 5469 ; 5470 return 0; 5471 } 5472 _ACEOF 5473 rm -f conftest.$ac_objext 5474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5475 (eval $ac_compile) 2>conftest.er1 5476 ac_status=$? 5477 grep -v '^ *+' conftest.er1 >conftest.err 5478 rm -f conftest.er1 5479 cat conftest.err >&5 5480 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5481 (exit $ac_status); } && 5482 { ac_try='test -z "$ac_c_werror_flag" 5483 || test ! -s conftest.err' 5484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5485 (eval $ac_try) 2>&5 5486 ac_status=$? 5487 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5488 (exit $ac_status); }; } && 5489 { ac_try='test -s conftest.$ac_objext' 5490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5491 (eval $ac_try) 2>&5 5492 ac_status=$? 5493 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5494 (exit $ac_status); }; }; then 5495 ac_lo=$ac_mid; break 5496 else 5497 echo "$as_me: failed program was:" >&5 5498 sed 's/^/| /' conftest.$ac_ext >&5 5499 5500 ac_hi=`expr '(' $ac_mid ')' - 1` 5501 if test $ac_mid -le $ac_hi; then 5502 ac_lo= ac_hi= 5503 break 5504 fi 5505 ac_mid=`expr 2 '*' $ac_mid` 5506 fi 5507 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5508 done 5509 else 5510 echo "$as_me: failed program was:" >&5 5511 sed 's/^/| /' conftest.$ac_ext >&5 5512 5513 ac_lo= ac_hi= 5514 fi 5515 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5516 fi 5517 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5518 # Binary search between lo and hi bounds. 5519 while test "x$ac_lo" != "x$ac_hi"; do 5520 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 5521 cat >conftest.$ac_ext <<_ACEOF 5522 /* confdefs.h. */ 5523 _ACEOF 5524 cat confdefs.h >>conftest.$ac_ext 5525 cat >>conftest.$ac_ext <<_ACEOF 5526 /* end confdefs.h. */ 5527 $ac_includes_default 5528 int 5529 main () 5530 { 5531 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; 5532 test_array [0] = 0 5533 5534 ; 5535 return 0; 5536 } 5537 _ACEOF 5538 rm -f conftest.$ac_objext 5539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5540 (eval $ac_compile) 2>conftest.er1 5541 ac_status=$? 5542 grep -v '^ *+' conftest.er1 >conftest.err 5543 rm -f conftest.er1 5544 cat conftest.err >&5 5545 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5546 (exit $ac_status); } && 5547 { ac_try='test -z "$ac_c_werror_flag" 5548 || test ! -s conftest.err' 5549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5550 (eval $ac_try) 2>&5 5551 ac_status=$? 5552 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5553 (exit $ac_status); }; } && 5554 { ac_try='test -s conftest.$ac_objext' 5555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5556 (eval $ac_try) 2>&5 5557 ac_status=$? 5558 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5559 (exit $ac_status); }; }; then 5560 ac_hi=$ac_mid 5561 else 5562 echo "$as_me: failed program was:" >&5 5563 sed 's/^/| /' conftest.$ac_ext >&5 5564 5565 ac_lo=`expr '(' $ac_mid ')' + 1` 5566 fi 5567 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5568 done 5569 case $ac_lo in 5570 ?*) ac_cv_sizeof_long_long=$ac_lo;; 5571 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 5572 See \`config.log' for more details." >&5 5573 echo "$as_me: error: cannot compute sizeof (long long), 77 5574 See \`config.log' for more details." >&2;} 5575 { (exit 1); exit 1; }; } ;; 5576 esac 5577 else 5578 if test "$cross_compiling" = yes; then 5579 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 5580 See \`config.log' for more details." >&5 5581 echo "$as_me: error: cannot run test program while cross compiling 5582 See \`config.log' for more details." >&2;} 5583 { (exit 1); exit 1; }; } 5584 else 5585 cat >conftest.$ac_ext <<_ACEOF 5586 /* confdefs.h. */ 5587 _ACEOF 5588 cat confdefs.h >>conftest.$ac_ext 5589 cat >>conftest.$ac_ext <<_ACEOF 5590 /* end confdefs.h. */ 5591 $ac_includes_default 5592 long longval () { return (long) (sizeof (long long)); } 5593 unsigned long ulongval () { return (long) (sizeof (long long)); } 5594 #include <stdio.h> 5595 #include <stdlib.h> 5596 int 5597 main () 5598 { 5599 5600 FILE *f = fopen ("conftest.val", "w"); 5601 if (! f) 5602 exit (1); 5603 if (((long) (sizeof (long long))) < 0) 5604 { 5605 long i = longval (); 5606 if (i != ((long) (sizeof (long long)))) 5607 exit (1); 5608 fprintf (f, "%ld\n", i); 5609 } 5610 else 5611 { 5612 unsigned long i = ulongval (); 5613 if (i != ((long) (sizeof (long long)))) 5614 exit (1); 5615 fprintf (f, "%lu\n", i); 5616 } 5617 exit (ferror (f) || fclose (f) != 0); 5618 5619 ; 5620 return 0; 5621 } 5622 _ACEOF 5623 rm -f conftest$ac_exeext 5624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5625 (eval $ac_link) 2>&5 5626 ac_status=$? 5627 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5628 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5630 (eval $ac_try) 2>&5 5631 ac_status=$? 5632 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5633 (exit $ac_status); }; }; then 5634 ac_cv_sizeof_long_long=`cat conftest.val` 5635 else 5636 echo "$as_me: program exited with status $ac_status" >&5 5637 echo "$as_me: failed program was:" >&5 5638 sed 's/^/| /' conftest.$ac_ext >&5 5639 5640 ( exit $ac_status ) 5641 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 5642 See \`config.log' for more details." >&5 5643 echo "$as_me: error: cannot compute sizeof (long long), 77 5644 See \`config.log' for more details." >&2;} 5645 { (exit 1); exit 1; }; } 5646 fi 5647 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5648 fi 5649 fi 5650 rm -f conftest.val 5651 else 5652 ac_cv_sizeof_long_long=0 5653 fi 5654 fi 5655 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 5656 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 5657 cat >>confdefs.h <<_ACEOF 5658 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long 5659 _ACEOF 5660 5661 5662 echo "$as_me:$LINENO: checking for long" >&5 5663 echo $ECHO_N "checking for long... $ECHO_C" >&6 5664 if test "${ac_cv_type_long+set}" = set; then 5665 echo $ECHO_N "(cached) $ECHO_C" >&6 5666 else 5667 cat >conftest.$ac_ext <<_ACEOF 5668 /* confdefs.h. */ 5669 _ACEOF 5670 cat confdefs.h >>conftest.$ac_ext 5671 cat >>conftest.$ac_ext <<_ACEOF 5672 /* end confdefs.h. */ 5673 $ac_includes_default 5674 int 5675 main () 5676 { 5677 if ((long *) 0) 5678 return 0; 5679 if (sizeof (long)) 5680 return 0; 5681 ; 5682 return 0; 5683 } 5684 _ACEOF 5685 rm -f conftest.$ac_objext 5686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5687 (eval $ac_compile) 2>conftest.er1 5688 ac_status=$? 5689 grep -v '^ *+' conftest.er1 >conftest.err 5690 rm -f conftest.er1 5691 cat conftest.err >&5 5692 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5693 (exit $ac_status); } && 5694 { ac_try='test -z "$ac_c_werror_flag" 5695 || test ! -s conftest.err' 5696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5697 (eval $ac_try) 2>&5 5698 ac_status=$? 5699 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5700 (exit $ac_status); }; } && 5701 { ac_try='test -s conftest.$ac_objext' 5702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5703 (eval $ac_try) 2>&5 5704 ac_status=$? 5705 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5706 (exit $ac_status); }; }; then 5707 ac_cv_type_long=yes 5708 else 5709 echo "$as_me: failed program was:" >&5 5710 sed 's/^/| /' conftest.$ac_ext >&5 5711 5712 ac_cv_type_long=no 5713 fi 5714 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5715 fi 5716 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 5717 echo "${ECHO_T}$ac_cv_type_long" >&6 5718 5719 echo "$as_me:$LINENO: checking size of long" >&5 5720 echo $ECHO_N "checking size of long... $ECHO_C" >&6 5721 if test "${ac_cv_sizeof_long+set}" = set; then 5722 echo $ECHO_N "(cached) $ECHO_C" >&6 5723 else 5724 if test "$ac_cv_type_long" = yes; then 5725 # The cast to unsigned long works around a bug in the HP C Compiler 5726 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 5727 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 5728 # This bug is HP SR number 8606223364. 5729 if test "$cross_compiling" = yes; then 5730 # Depending upon the size, compute the lo and hi bounds. 5731 cat >conftest.$ac_ext <<_ACEOF 5732 /* confdefs.h. */ 5733 _ACEOF 5734 cat confdefs.h >>conftest.$ac_ext 5735 cat >>conftest.$ac_ext <<_ACEOF 5736 /* end confdefs.h. */ 5737 $ac_includes_default 5738 int 5739 main () 5740 { 5741 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; 5742 test_array [0] = 0 5743 5744 ; 5745 return 0; 5746 } 5747 _ACEOF 5748 rm -f conftest.$ac_objext 5749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5750 (eval $ac_compile) 2>conftest.er1 5751 ac_status=$? 5752 grep -v '^ *+' conftest.er1 >conftest.err 5753 rm -f conftest.er1 5754 cat conftest.err >&5 5755 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5756 (exit $ac_status); } && 5757 { ac_try='test -z "$ac_c_werror_flag" 5758 || test ! -s conftest.err' 5759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5760 (eval $ac_try) 2>&5 5761 ac_status=$? 5762 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5763 (exit $ac_status); }; } && 5764 { ac_try='test -s conftest.$ac_objext' 5765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5766 (eval $ac_try) 2>&5 5767 ac_status=$? 5768 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5769 (exit $ac_status); }; }; then 5770 ac_lo=0 ac_mid=0 5771 while :; do 5772 cat >conftest.$ac_ext <<_ACEOF 5773 /* confdefs.h. */ 5774 _ACEOF 5775 cat confdefs.h >>conftest.$ac_ext 5776 cat >>conftest.$ac_ext <<_ACEOF 5777 /* end confdefs.h. */ 5778 $ac_includes_default 5779 int 5780 main () 5781 { 5782 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; 5783 test_array [0] = 0 5784 5785 ; 5786 return 0; 5787 } 5788 _ACEOF 5789 rm -f conftest.$ac_objext 5790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5791 (eval $ac_compile) 2>conftest.er1 5792 ac_status=$? 5793 grep -v '^ *+' conftest.er1 >conftest.err 5794 rm -f conftest.er1 5795 cat conftest.err >&5 5796 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5797 (exit $ac_status); } && 5798 { ac_try='test -z "$ac_c_werror_flag" 5799 || test ! -s conftest.err' 5800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5801 (eval $ac_try) 2>&5 5802 ac_status=$? 5803 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5804 (exit $ac_status); }; } && 5805 { ac_try='test -s conftest.$ac_objext' 5806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5807 (eval $ac_try) 2>&5 5808 ac_status=$? 5809 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5810 (exit $ac_status); }; }; then 5811 ac_hi=$ac_mid; break 5812 else 5813 echo "$as_me: failed program was:" >&5 5814 sed 's/^/| /' conftest.$ac_ext >&5 5815 5816 ac_lo=`expr $ac_mid + 1` 5817 if test $ac_lo -le $ac_mid; then 5818 ac_lo= ac_hi= 5819 break 5820 fi 5821 ac_mid=`expr 2 '*' $ac_mid + 1` 5822 fi 5823 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5824 done 5825 else 5826 echo "$as_me: failed program was:" >&5 5827 sed 's/^/| /' conftest.$ac_ext >&5 5828 5829 cat >conftest.$ac_ext <<_ACEOF 5830 /* confdefs.h. */ 5831 _ACEOF 5832 cat confdefs.h >>conftest.$ac_ext 5833 cat >>conftest.$ac_ext <<_ACEOF 5834 /* end confdefs.h. */ 5835 $ac_includes_default 5836 int 5837 main () 5838 { 5839 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; 5840 test_array [0] = 0 5841 5842 ; 5843 return 0; 5844 } 5845 _ACEOF 5846 rm -f conftest.$ac_objext 5847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5848 (eval $ac_compile) 2>conftest.er1 5849 ac_status=$? 5850 grep -v '^ *+' conftest.er1 >conftest.err 5851 rm -f conftest.er1 5852 cat conftest.err >&5 5853 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5854 (exit $ac_status); } && 5855 { ac_try='test -z "$ac_c_werror_flag" 5856 || test ! -s conftest.err' 5857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5858 (eval $ac_try) 2>&5 5859 ac_status=$? 5860 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5861 (exit $ac_status); }; } && 5862 { ac_try='test -s conftest.$ac_objext' 5863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5864 (eval $ac_try) 2>&5 5865 ac_status=$? 5866 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5867 (exit $ac_status); }; }; then 5868 ac_hi=-1 ac_mid=-1 5869 while :; do 5870 cat >conftest.$ac_ext <<_ACEOF 5871 /* confdefs.h. */ 5872 _ACEOF 5873 cat confdefs.h >>conftest.$ac_ext 5874 cat >>conftest.$ac_ext <<_ACEOF 5875 /* end confdefs.h. */ 5876 $ac_includes_default 5877 int 5878 main () 5879 { 5880 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; 5881 test_array [0] = 0 5882 5883 ; 5884 return 0; 5885 } 5886 _ACEOF 5887 rm -f conftest.$ac_objext 5888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5889 (eval $ac_compile) 2>conftest.er1 5890 ac_status=$? 5891 grep -v '^ *+' conftest.er1 >conftest.err 5892 rm -f conftest.er1 5893 cat conftest.err >&5 5894 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5895 (exit $ac_status); } && 5896 { ac_try='test -z "$ac_c_werror_flag" 5897 || test ! -s conftest.err' 5898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5899 (eval $ac_try) 2>&5 5900 ac_status=$? 5901 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5902 (exit $ac_status); }; } && 5903 { ac_try='test -s conftest.$ac_objext' 5904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5905 (eval $ac_try) 2>&5 5906 ac_status=$? 5907 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5908 (exit $ac_status); }; }; then 5909 ac_lo=$ac_mid; break 5910 else 5911 echo "$as_me: failed program was:" >&5 5912 sed 's/^/| /' conftest.$ac_ext >&5 5913 5914 ac_hi=`expr '(' $ac_mid ')' - 1` 5915 if test $ac_mid -le $ac_hi; then 5916 ac_lo= ac_hi= 5917 break 5918 fi 5919 ac_mid=`expr 2 '*' $ac_mid` 5920 fi 5921 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5922 done 5923 else 5924 echo "$as_me: failed program was:" >&5 5925 sed 's/^/| /' conftest.$ac_ext >&5 5926 5927 ac_lo= ac_hi= 5928 fi 5929 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5930 fi 5931 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5932 # Binary search between lo and hi bounds. 5933 while test "x$ac_lo" != "x$ac_hi"; do 5934 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 5935 cat >conftest.$ac_ext <<_ACEOF 5936 /* confdefs.h. */ 5937 _ACEOF 5938 cat confdefs.h >>conftest.$ac_ext 5939 cat >>conftest.$ac_ext <<_ACEOF 5940 /* end confdefs.h. */ 5941 $ac_includes_default 5942 int 5943 main () 5944 { 5945 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; 5946 test_array [0] = 0 5947 5948 ; 5949 return 0; 5950 } 5951 _ACEOF 5952 rm -f conftest.$ac_objext 5953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5954 (eval $ac_compile) 2>conftest.er1 5955 ac_status=$? 5956 grep -v '^ *+' conftest.er1 >conftest.err 5957 rm -f conftest.er1 5958 cat conftest.err >&5 5959 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5960 (exit $ac_status); } && 5961 { ac_try='test -z "$ac_c_werror_flag" 5962 || test ! -s conftest.err' 5963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5964 (eval $ac_try) 2>&5 5965 ac_status=$? 5966 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5967 (exit $ac_status); }; } && 5968 { ac_try='test -s conftest.$ac_objext' 5969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5970 (eval $ac_try) 2>&5 5971 ac_status=$? 5972 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5973 (exit $ac_status); }; }; then 5974 ac_hi=$ac_mid 5975 else 5976 echo "$as_me: failed program was:" >&5 5977 sed 's/^/| /' conftest.$ac_ext >&5 5978 5979 ac_lo=`expr '(' $ac_mid ')' + 1` 5980 fi 5981 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5982 done 5983 case $ac_lo in 5984 ?*) ac_cv_sizeof_long=$ac_lo;; 5985 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 5986 See \`config.log' for more details." >&5 5987 echo "$as_me: error: cannot compute sizeof (long), 77 5988 See \`config.log' for more details." >&2;} 5989 { (exit 1); exit 1; }; } ;; 5990 esac 5991 else 5992 if test "$cross_compiling" = yes; then 5993 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 5994 See \`config.log' for more details." >&5 5995 echo "$as_me: error: cannot run test program while cross compiling 5996 See \`config.log' for more details." >&2;} 5997 { (exit 1); exit 1; }; } 5998 else 5999 cat >conftest.$ac_ext <<_ACEOF 6000 /* confdefs.h. */ 6001 _ACEOF 6002 cat confdefs.h >>conftest.$ac_ext 6003 cat >>conftest.$ac_ext <<_ACEOF 6004 /* end confdefs.h. */ 6005 $ac_includes_default 6006 long longval () { return (long) (sizeof (long)); } 6007 unsigned long ulongval () { return (long) (sizeof (long)); } 6008 #include <stdio.h> 6009 #include <stdlib.h> 6010 int 6011 main () 6012 { 6013 6014 FILE *f = fopen ("conftest.val", "w"); 6015 if (! f) 6016 exit (1); 6017 if (((long) (sizeof (long))) < 0) 6018 { 6019 long i = longval (); 6020 if (i != ((long) (sizeof (long)))) 6021 exit (1); 6022 fprintf (f, "%ld\n", i); 6023 } 6024 else 6025 { 6026 unsigned long i = ulongval (); 6027 if (i != ((long) (sizeof (long)))) 6028 exit (1); 6029 fprintf (f, "%lu\n", i); 6030 } 6031 exit (ferror (f) || fclose (f) != 0); 6032 6033 ; 6034 return 0; 6035 } 6036 _ACEOF 6037 rm -f conftest$ac_exeext 6038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6039 (eval $ac_link) 2>&5 6040 ac_status=$? 6041 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6042 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6044 (eval $ac_try) 2>&5 6045 ac_status=$? 6046 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6047 (exit $ac_status); }; }; then 6048 ac_cv_sizeof_long=`cat conftest.val` 6049 else 6050 echo "$as_me: program exited with status $ac_status" >&5 6051 echo "$as_me: failed program was:" >&5 6052 sed 's/^/| /' conftest.$ac_ext >&5 6053 6054 ( exit $ac_status ) 6055 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 6056 See \`config.log' for more details." >&5 6057 echo "$as_me: error: cannot compute sizeof (long), 77 6058 See \`config.log' for more details." >&2;} 6059 { (exit 1); exit 1; }; } 6060 fi 6061 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6062 fi 6063 fi 6064 rm -f conftest.val 6065 else 6066 ac_cv_sizeof_long=0 6067 fi 6068 fi 6069 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 6070 echo "${ECHO_T}$ac_cv_sizeof_long" >&6 6071 cat >>confdefs.h <<_ACEOF 6072 #define SIZEOF_LONG $ac_cv_sizeof_long 6073 _ACEOF 6074 6075 6076 echo "$as_me:$LINENO: checking for int" >&5 6077 echo $ECHO_N "checking for int... $ECHO_C" >&6 6078 if test "${ac_cv_type_int+set}" = set; then 6079 echo $ECHO_N "(cached) $ECHO_C" >&6 6080 else 6081 cat >conftest.$ac_ext <<_ACEOF 6082 /* confdefs.h. */ 6083 _ACEOF 6084 cat confdefs.h >>conftest.$ac_ext 6085 cat >>conftest.$ac_ext <<_ACEOF 6086 /* end confdefs.h. */ 6087 $ac_includes_default 6088 int 6089 main () 6090 { 6091 if ((int *) 0) 6092 return 0; 6093 if (sizeof (int)) 6094 return 0; 6095 ; 6096 return 0; 6097 } 6098 _ACEOF 6099 rm -f conftest.$ac_objext 6100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6101 (eval $ac_compile) 2>conftest.er1 6102 ac_status=$? 6103 grep -v '^ *+' conftest.er1 >conftest.err 6104 rm -f conftest.er1 6105 cat conftest.err >&5 6106 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6107 (exit $ac_status); } && 6108 { ac_try='test -z "$ac_c_werror_flag" 6109 || test ! -s conftest.err' 6110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6111 (eval $ac_try) 2>&5 6112 ac_status=$? 6113 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6114 (exit $ac_status); }; } && 6115 { ac_try='test -s conftest.$ac_objext' 6116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6117 (eval $ac_try) 2>&5 6118 ac_status=$? 6119 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6120 (exit $ac_status); }; }; then 6121 ac_cv_type_int=yes 6122 else 6123 echo "$as_me: failed program was:" >&5 6124 sed 's/^/| /' conftest.$ac_ext >&5 6125 6126 ac_cv_type_int=no 6127 fi 6128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6129 fi 6130 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 6131 echo "${ECHO_T}$ac_cv_type_int" >&6 6132 6133 echo "$as_me:$LINENO: checking size of int" >&5 6134 echo $ECHO_N "checking size of int... $ECHO_C" >&6 6135 if test "${ac_cv_sizeof_int+set}" = set; then 6136 echo $ECHO_N "(cached) $ECHO_C" >&6 6137 else 6138 if test "$ac_cv_type_int" = yes; then 6139 # The cast to unsigned long works around a bug in the HP C Compiler 6140 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 6141 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 6142 # This bug is HP SR number 8606223364. 6143 if test "$cross_compiling" = yes; then 6144 # Depending upon the size, compute the lo and hi bounds. 6145 cat >conftest.$ac_ext <<_ACEOF 6146 /* confdefs.h. */ 6147 _ACEOF 6148 cat confdefs.h >>conftest.$ac_ext 6149 cat >>conftest.$ac_ext <<_ACEOF 6150 /* end confdefs.h. */ 6151 $ac_includes_default 6152 int 6153 main () 6154 { 6155 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; 6156 test_array [0] = 0 6157 6158 ; 6159 return 0; 6160 } 6161 _ACEOF 6162 rm -f conftest.$ac_objext 6163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6164 (eval $ac_compile) 2>conftest.er1 6165 ac_status=$? 6166 grep -v '^ *+' conftest.er1 >conftest.err 6167 rm -f conftest.er1 6168 cat conftest.err >&5 6169 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6170 (exit $ac_status); } && 6171 { ac_try='test -z "$ac_c_werror_flag" 6172 || test ! -s conftest.err' 6173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6174 (eval $ac_try) 2>&5 6175 ac_status=$? 6176 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6177 (exit $ac_status); }; } && 6178 { ac_try='test -s conftest.$ac_objext' 6179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6180 (eval $ac_try) 2>&5 6181 ac_status=$? 6182 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6183 (exit $ac_status); }; }; then 6184 ac_lo=0 ac_mid=0 6185 while :; do 6186 cat >conftest.$ac_ext <<_ACEOF 6187 /* confdefs.h. */ 6188 _ACEOF 6189 cat confdefs.h >>conftest.$ac_ext 6190 cat >>conftest.$ac_ext <<_ACEOF 6191 /* end confdefs.h. */ 6192 $ac_includes_default 6193 int 6194 main () 6195 { 6196 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; 6197 test_array [0] = 0 6198 6199 ; 6200 return 0; 6201 } 6202 _ACEOF 6203 rm -f conftest.$ac_objext 6204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6205 (eval $ac_compile) 2>conftest.er1 6206 ac_status=$? 6207 grep -v '^ *+' conftest.er1 >conftest.err 6208 rm -f conftest.er1 6209 cat conftest.err >&5 6210 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6211 (exit $ac_status); } && 6212 { ac_try='test -z "$ac_c_werror_flag" 6213 || test ! -s conftest.err' 6214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6215 (eval $ac_try) 2>&5 6216 ac_status=$? 6217 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6218 (exit $ac_status); }; } && 6219 { ac_try='test -s conftest.$ac_objext' 6220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6221 (eval $ac_try) 2>&5 6222 ac_status=$? 6223 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6224 (exit $ac_status); }; }; then 6225 ac_hi=$ac_mid; break 6226 else 6227 echo "$as_me: failed program was:" >&5 6228 sed 's/^/| /' conftest.$ac_ext >&5 6229 6230 ac_lo=`expr $ac_mid + 1` 6231 if test $ac_lo -le $ac_mid; then 6232 ac_lo= ac_hi= 6233 break 6234 fi 6235 ac_mid=`expr 2 '*' $ac_mid + 1` 6236 fi 6237 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6238 done 6239 else 6240 echo "$as_me: failed program was:" >&5 6241 sed 's/^/| /' conftest.$ac_ext >&5 6242 6243 cat >conftest.$ac_ext <<_ACEOF 6244 /* confdefs.h. */ 6245 _ACEOF 6246 cat confdefs.h >>conftest.$ac_ext 6247 cat >>conftest.$ac_ext <<_ACEOF 6248 /* end confdefs.h. */ 6249 $ac_includes_default 6250 int 6251 main () 6252 { 6253 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; 6254 test_array [0] = 0 6255 6256 ; 6257 return 0; 6258 } 6259 _ACEOF 6260 rm -f conftest.$ac_objext 6261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6262 (eval $ac_compile) 2>conftest.er1 6263 ac_status=$? 6264 grep -v '^ *+' conftest.er1 >conftest.err 6265 rm -f conftest.er1 6266 cat conftest.err >&5 6267 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6268 (exit $ac_status); } && 6269 { ac_try='test -z "$ac_c_werror_flag" 6270 || test ! -s conftest.err' 6271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6272 (eval $ac_try) 2>&5 6273 ac_status=$? 6274 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6275 (exit $ac_status); }; } && 6276 { ac_try='test -s conftest.$ac_objext' 6277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6278 (eval $ac_try) 2>&5 6279 ac_status=$? 6280 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6281 (exit $ac_status); }; }; then 6282 ac_hi=-1 ac_mid=-1 6283 while :; do 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 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; 6295 test_array [0] = 0 6296 6297 ; 6298 return 0; 6299 } 6300 _ACEOF 6301 rm -f conftest.$ac_objext 6302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6303 (eval $ac_compile) 2>conftest.er1 6304 ac_status=$? 6305 grep -v '^ *+' conftest.er1 >conftest.err 6306 rm -f conftest.er1 6307 cat conftest.err >&5 6308 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6309 (exit $ac_status); } && 6310 { ac_try='test -z "$ac_c_werror_flag" 6311 || test ! -s conftest.err' 6312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6313 (eval $ac_try) 2>&5 6314 ac_status=$? 6315 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6316 (exit $ac_status); }; } && 6317 { ac_try='test -s conftest.$ac_objext' 6318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6319 (eval $ac_try) 2>&5 6320 ac_status=$? 6321 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6322 (exit $ac_status); }; }; then 6323 ac_lo=$ac_mid; break 6324 else 6325 echo "$as_me: failed program was:" >&5 6326 sed 's/^/| /' conftest.$ac_ext >&5 6327 6328 ac_hi=`expr '(' $ac_mid ')' - 1` 6329 if test $ac_mid -le $ac_hi; then 6330 ac_lo= ac_hi= 6331 break 6332 fi 6333 ac_mid=`expr 2 '*' $ac_mid` 6334 fi 6335 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6336 done 6337 else 6338 echo "$as_me: failed program was:" >&5 6339 sed 's/^/| /' conftest.$ac_ext >&5 6340 6341 ac_lo= ac_hi= 6342 fi 6343 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6344 fi 6345 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6346 # Binary search between lo and hi bounds. 6347 while test "x$ac_lo" != "x$ac_hi"; do 6348 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 6349 cat >conftest.$ac_ext <<_ACEOF 6350 /* confdefs.h. */ 6351 _ACEOF 6352 cat confdefs.h >>conftest.$ac_ext 6353 cat >>conftest.$ac_ext <<_ACEOF 6354 /* end confdefs.h. */ 6355 $ac_includes_default 6356 int 6357 main () 6358 { 6359 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; 6360 test_array [0] = 0 6361 6362 ; 6363 return 0; 6364 } 6365 _ACEOF 6366 rm -f conftest.$ac_objext 6367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6368 (eval $ac_compile) 2>conftest.er1 6369 ac_status=$? 6370 grep -v '^ *+' conftest.er1 >conftest.err 6371 rm -f conftest.er1 6372 cat conftest.err >&5 6373 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6374 (exit $ac_status); } && 6375 { ac_try='test -z "$ac_c_werror_flag" 6376 || test ! -s conftest.err' 6377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6378 (eval $ac_try) 2>&5 6379 ac_status=$? 6380 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6381 (exit $ac_status); }; } && 6382 { ac_try='test -s conftest.$ac_objext' 6383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6384 (eval $ac_try) 2>&5 6385 ac_status=$? 6386 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6387 (exit $ac_status); }; }; then 6388 ac_hi=$ac_mid 6389 else 6390 echo "$as_me: failed program was:" >&5 6391 sed 's/^/| /' conftest.$ac_ext >&5 6392 6393 ac_lo=`expr '(' $ac_mid ')' + 1` 6394 fi 6395 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6396 done 6397 case $ac_lo in 6398 ?*) ac_cv_sizeof_int=$ac_lo;; 6399 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 6400 See \`config.log' for more details." >&5 6401 echo "$as_me: error: cannot compute sizeof (int), 77 6402 See \`config.log' for more details." >&2;} 6403 { (exit 1); exit 1; }; } ;; 6404 esac 6405 else 6406 if test "$cross_compiling" = yes; then 6407 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 6408 See \`config.log' for more details." >&5 6409 echo "$as_me: error: cannot run test program while cross compiling 6410 See \`config.log' for more details." >&2;} 6411 { (exit 1); exit 1; }; } 6412 else 6413 cat >conftest.$ac_ext <<_ACEOF 6414 /* confdefs.h. */ 6415 _ACEOF 6416 cat confdefs.h >>conftest.$ac_ext 6417 cat >>conftest.$ac_ext <<_ACEOF 6418 /* end confdefs.h. */ 6419 $ac_includes_default 6420 long longval () { return (long) (sizeof (int)); } 6421 unsigned long ulongval () { return (long) (sizeof (int)); } 6422 #include <stdio.h> 6423 #include <stdlib.h> 6424 int 6425 main () 6426 { 6427 6428 FILE *f = fopen ("conftest.val", "w"); 6429 if (! f) 6430 exit (1); 6431 if (((long) (sizeof (int))) < 0) 6432 { 6433 long i = longval (); 6434 if (i != ((long) (sizeof (int)))) 6435 exit (1); 6436 fprintf (f, "%ld\n", i); 6437 } 6438 else 6439 { 6440 unsigned long i = ulongval (); 6441 if (i != ((long) (sizeof (int)))) 6442 exit (1); 6443 fprintf (f, "%lu\n", i); 6444 } 6445 exit (ferror (f) || fclose (f) != 0); 6446 6447 ; 6448 return 0; 6449 } 6450 _ACEOF 6451 rm -f conftest$ac_exeext 6452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6453 (eval $ac_link) 2>&5 6454 ac_status=$? 6455 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6456 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6458 (eval $ac_try) 2>&5 6459 ac_status=$? 6460 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6461 (exit $ac_status); }; }; then 6462 ac_cv_sizeof_int=`cat conftest.val` 6463 else 6464 echo "$as_me: program exited with status $ac_status" >&5 6465 echo "$as_me: failed program was:" >&5 6466 sed 's/^/| /' conftest.$ac_ext >&5 6467 6468 ( exit $ac_status ) 6469 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 6470 See \`config.log' for more details." >&5 6471 echo "$as_me: error: cannot compute sizeof (int), 77 6472 See \`config.log' for more details." >&2;} 6473 { (exit 1); exit 1; }; } 6474 fi 6475 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6476 fi 6477 fi 6478 rm -f conftest.val 6479 else 6480 ac_cv_sizeof_int=0 6481 fi 6482 fi 6483 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 6484 echo "${ECHO_T}$ac_cv_sizeof_int" >&6 6485 cat >>confdefs.h <<_ACEOF 6486 #define SIZEOF_INT $ac_cv_sizeof_int 6487 _ACEOF 6488 6489 6490 echo "$as_me:$LINENO: checking for short" >&5 6491 echo $ECHO_N "checking for short... $ECHO_C" >&6 6492 if test "${ac_cv_type_short+set}" = set; then 6493 echo $ECHO_N "(cached) $ECHO_C" >&6 6494 else 6495 cat >conftest.$ac_ext <<_ACEOF 6496 /* confdefs.h. */ 6497 _ACEOF 6498 cat confdefs.h >>conftest.$ac_ext 6499 cat >>conftest.$ac_ext <<_ACEOF 6500 /* end confdefs.h. */ 6501 $ac_includes_default 6502 int 6503 main () 6504 { 6505 if ((short *) 0) 6506 return 0; 6507 if (sizeof (short)) 6508 return 0; 6509 ; 6510 return 0; 6511 } 6512 _ACEOF 6513 rm -f conftest.$ac_objext 6514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6515 (eval $ac_compile) 2>conftest.er1 6516 ac_status=$? 6517 grep -v '^ *+' conftest.er1 >conftest.err 6518 rm -f conftest.er1 6519 cat conftest.err >&5 6520 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6521 (exit $ac_status); } && 6522 { ac_try='test -z "$ac_c_werror_flag" 6523 || test ! -s conftest.err' 6524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6525 (eval $ac_try) 2>&5 6526 ac_status=$? 6527 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6528 (exit $ac_status); }; } && 6529 { ac_try='test -s conftest.$ac_objext' 6530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6531 (eval $ac_try) 2>&5 6532 ac_status=$? 6533 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6534 (exit $ac_status); }; }; then 6535 ac_cv_type_short=yes 6536 else 6537 echo "$as_me: failed program was:" >&5 6538 sed 's/^/| /' conftest.$ac_ext >&5 6539 6540 ac_cv_type_short=no 6541 fi 6542 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6543 fi 6544 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 6545 echo "${ECHO_T}$ac_cv_type_short" >&6 6546 6547 echo "$as_me:$LINENO: checking size of short" >&5 6548 echo $ECHO_N "checking size of short... $ECHO_C" >&6 6549 if test "${ac_cv_sizeof_short+set}" = set; then 6550 echo $ECHO_N "(cached) $ECHO_C" >&6 6551 else 6552 if test "$ac_cv_type_short" = yes; then 6553 # The cast to unsigned long works around a bug in the HP C Compiler 6554 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 6555 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 6556 # This bug is HP SR number 8606223364. 6557 if test "$cross_compiling" = yes; then 6558 # Depending upon the size, compute the lo and hi bounds. 6559 cat >conftest.$ac_ext <<_ACEOF 6560 /* confdefs.h. */ 6561 _ACEOF 6562 cat confdefs.h >>conftest.$ac_ext 6563 cat >>conftest.$ac_ext <<_ACEOF 6564 /* end confdefs.h. */ 6565 $ac_includes_default 6566 int 6567 main () 6568 { 6569 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; 6570 test_array [0] = 0 6571 6572 ; 6573 return 0; 6574 } 6575 _ACEOF 6576 rm -f conftest.$ac_objext 6577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6578 (eval $ac_compile) 2>conftest.er1 6579 ac_status=$? 6580 grep -v '^ *+' conftest.er1 >conftest.err 6581 rm -f conftest.er1 6582 cat conftest.err >&5 6583 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6584 (exit $ac_status); } && 6585 { ac_try='test -z "$ac_c_werror_flag" 6586 || test ! -s conftest.err' 6587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6588 (eval $ac_try) 2>&5 6589 ac_status=$? 6590 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6591 (exit $ac_status); }; } && 6592 { ac_try='test -s conftest.$ac_objext' 6593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6594 (eval $ac_try) 2>&5 6595 ac_status=$? 6596 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6597 (exit $ac_status); }; }; then 6598 ac_lo=0 ac_mid=0 6599 while :; do 6600 cat >conftest.$ac_ext <<_ACEOF 6601 /* confdefs.h. */ 6602 _ACEOF 6603 cat confdefs.h >>conftest.$ac_ext 6604 cat >>conftest.$ac_ext <<_ACEOF 6605 /* end confdefs.h. */ 6606 $ac_includes_default 6607 int 6608 main () 6609 { 6610 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; 6611 test_array [0] = 0 6612 6613 ; 6614 return 0; 6615 } 6616 _ACEOF 6617 rm -f conftest.$ac_objext 6618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6619 (eval $ac_compile) 2>conftest.er1 6620 ac_status=$? 6621 grep -v '^ *+' conftest.er1 >conftest.err 6622 rm -f conftest.er1 6623 cat conftest.err >&5 6624 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6625 (exit $ac_status); } && 6626 { ac_try='test -z "$ac_c_werror_flag" 6627 || test ! -s conftest.err' 6628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6629 (eval $ac_try) 2>&5 6630 ac_status=$? 6631 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6632 (exit $ac_status); }; } && 6633 { ac_try='test -s conftest.$ac_objext' 6634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6635 (eval $ac_try) 2>&5 6636 ac_status=$? 6637 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6638 (exit $ac_status); }; }; then 6639 ac_hi=$ac_mid; break 6640 else 6641 echo "$as_me: failed program was:" >&5 6642 sed 's/^/| /' conftest.$ac_ext >&5 6643 6644 ac_lo=`expr $ac_mid + 1` 6645 if test $ac_lo -le $ac_mid; then 6646 ac_lo= ac_hi= 6647 break 6648 fi 6649 ac_mid=`expr 2 '*' $ac_mid + 1` 6650 fi 6651 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6652 done 6653 else 6654 echo "$as_me: failed program was:" >&5 6655 sed 's/^/| /' conftest.$ac_ext >&5 6656 6657 cat >conftest.$ac_ext <<_ACEOF 6658 /* confdefs.h. */ 6659 _ACEOF 6660 cat confdefs.h >>conftest.$ac_ext 6661 cat >>conftest.$ac_ext <<_ACEOF 6662 /* end confdefs.h. */ 6663 $ac_includes_default 6664 int 6665 main () 6666 { 6667 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; 6668 test_array [0] = 0 6669 6670 ; 6671 return 0; 6672 } 6673 _ACEOF 6674 rm -f conftest.$ac_objext 6675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6676 (eval $ac_compile) 2>conftest.er1 6677 ac_status=$? 6678 grep -v '^ *+' conftest.er1 >conftest.err 6679 rm -f conftest.er1 6680 cat conftest.err >&5 6681 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6682 (exit $ac_status); } && 6683 { ac_try='test -z "$ac_c_werror_flag" 6684 || test ! -s conftest.err' 6685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6686 (eval $ac_try) 2>&5 6687 ac_status=$? 6688 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6689 (exit $ac_status); }; } && 6690 { ac_try='test -s conftest.$ac_objext' 6691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6692 (eval $ac_try) 2>&5 6693 ac_status=$? 6694 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6695 (exit $ac_status); }; }; then 6696 ac_hi=-1 ac_mid=-1 6697 while :; do 6698 cat >conftest.$ac_ext <<_ACEOF 6699 /* confdefs.h. */ 6700 _ACEOF 6701 cat confdefs.h >>conftest.$ac_ext 6702 cat >>conftest.$ac_ext <<_ACEOF 6703 /* end confdefs.h. */ 6704 $ac_includes_default 6705 int 6706 main () 6707 { 6708 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; 6709 test_array [0] = 0 6710 6711 ; 6712 return 0; 6713 } 6714 _ACEOF 6715 rm -f conftest.$ac_objext 6716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6717 (eval $ac_compile) 2>conftest.er1 6718 ac_status=$? 6719 grep -v '^ *+' conftest.er1 >conftest.err 6720 rm -f conftest.er1 6721 cat conftest.err >&5 6722 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6723 (exit $ac_status); } && 6724 { ac_try='test -z "$ac_c_werror_flag" 6725 || test ! -s conftest.err' 6726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6727 (eval $ac_try) 2>&5 6728 ac_status=$? 6729 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6730 (exit $ac_status); }; } && 6731 { ac_try='test -s conftest.$ac_objext' 6732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6733 (eval $ac_try) 2>&5 6734 ac_status=$? 6735 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6736 (exit $ac_status); }; }; then 6737 ac_lo=$ac_mid; break 6738 else 6739 echo "$as_me: failed program was:" >&5 6740 sed 's/^/| /' conftest.$ac_ext >&5 6741 6742 ac_hi=`expr '(' $ac_mid ')' - 1` 6743 if test $ac_mid -le $ac_hi; then 6744 ac_lo= ac_hi= 6745 break 6746 fi 6747 ac_mid=`expr 2 '*' $ac_mid` 6748 fi 6749 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6750 done 6751 else 6752 echo "$as_me: failed program was:" >&5 6753 sed 's/^/| /' conftest.$ac_ext >&5 6754 6755 ac_lo= ac_hi= 6756 fi 6757 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6758 fi 6759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6760 # Binary search between lo and hi bounds. 6761 while test "x$ac_lo" != "x$ac_hi"; do 6762 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 6763 cat >conftest.$ac_ext <<_ACEOF 6764 /* confdefs.h. */ 6765 _ACEOF 6766 cat confdefs.h >>conftest.$ac_ext 6767 cat >>conftest.$ac_ext <<_ACEOF 6768 /* end confdefs.h. */ 6769 $ac_includes_default 6770 int 6771 main () 6772 { 6773 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; 6774 test_array [0] = 0 6775 6776 ; 6777 return 0; 6778 } 6779 _ACEOF 6780 rm -f conftest.$ac_objext 6781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6782 (eval $ac_compile) 2>conftest.er1 6783 ac_status=$? 6784 grep -v '^ *+' conftest.er1 >conftest.err 6785 rm -f conftest.er1 6786 cat conftest.err >&5 6787 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6788 (exit $ac_status); } && 6789 { ac_try='test -z "$ac_c_werror_flag" 6790 || test ! -s conftest.err' 6791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6792 (eval $ac_try) 2>&5 6793 ac_status=$? 6794 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6795 (exit $ac_status); }; } && 6796 { ac_try='test -s conftest.$ac_objext' 6797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6798 (eval $ac_try) 2>&5 6799 ac_status=$? 6800 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6801 (exit $ac_status); }; }; then 6802 ac_hi=$ac_mid 6803 else 6804 echo "$as_me: failed program was:" >&5 6805 sed 's/^/| /' conftest.$ac_ext >&5 6806 6807 ac_lo=`expr '(' $ac_mid ')' + 1` 6808 fi 6809 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6810 done 6811 case $ac_lo in 6812 ?*) ac_cv_sizeof_short=$ac_lo;; 6813 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 6814 See \`config.log' for more details." >&5 6815 echo "$as_me: error: cannot compute sizeof (short), 77 6816 See \`config.log' for more details." >&2;} 6817 { (exit 1); exit 1; }; } ;; 6818 esac 6819 else 6820 if test "$cross_compiling" = yes; then 6821 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 6822 See \`config.log' for more details." >&5 6823 echo "$as_me: error: cannot run test program while cross compiling 6824 See \`config.log' for more details." >&2;} 6825 { (exit 1); exit 1; }; } 6826 else 6827 cat >conftest.$ac_ext <<_ACEOF 6828 /* confdefs.h. */ 6829 _ACEOF 6830 cat confdefs.h >>conftest.$ac_ext 6831 cat >>conftest.$ac_ext <<_ACEOF 6832 /* end confdefs.h. */ 6833 $ac_includes_default 6834 long longval () { return (long) (sizeof (short)); } 6835 unsigned long ulongval () { return (long) (sizeof (short)); } 6836 #include <stdio.h> 6837 #include <stdlib.h> 6838 int 6839 main () 6840 { 6841 6842 FILE *f = fopen ("conftest.val", "w"); 6843 if (! f) 6844 exit (1); 6845 if (((long) (sizeof (short))) < 0) 6846 { 6847 long i = longval (); 6848 if (i != ((long) (sizeof (short)))) 6849 exit (1); 6850 fprintf (f, "%ld\n", i); 6851 } 6852 else 6853 { 6854 unsigned long i = ulongval (); 6855 if (i != ((long) (sizeof (short)))) 6856 exit (1); 6857 fprintf (f, "%lu\n", i); 6858 } 6859 exit (ferror (f) || fclose (f) != 0); 6860 6861 ; 6862 return 0; 6863 } 6864 _ACEOF 6865 rm -f conftest$ac_exeext 6866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6867 (eval $ac_link) 2>&5 6868 ac_status=$? 6869 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6870 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6872 (eval $ac_try) 2>&5 6873 ac_status=$? 6874 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6875 (exit $ac_status); }; }; then 6876 ac_cv_sizeof_short=`cat conftest.val` 6877 else 6878 echo "$as_me: program exited with status $ac_status" >&5 6879 echo "$as_me: failed program was:" >&5 6880 sed 's/^/| /' conftest.$ac_ext >&5 6881 6882 ( exit $ac_status ) 6883 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 6884 See \`config.log' for more details." >&5 6885 echo "$as_me: error: cannot compute sizeof (short), 77 6886 See \`config.log' for more details." >&2;} 6887 { (exit 1); exit 1; }; } 6888 fi 6889 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6890 fi 6891 fi 6892 rm -f conftest.val 6893 else 6894 ac_cv_sizeof_short=0 6895 fi 6896 fi 6897 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 6898 echo "${ECHO_T}$ac_cv_sizeof_short" >&6 6899 cat >>confdefs.h <<_ACEOF 6900 #define SIZEOF_SHORT $ac_cv_sizeof_short 6901 _ACEOF 6902 6903 6904 fi 6905 FOUND=0 6906 for dc_cv_loop in \$ac_cv_sizeof_long_long \$ac_cv_sizeof_int \$ac_cv_sizeof_long \$ac_cv_sizeof_short; do 6907 dc_cv_size=`eval echo $dc_cv_loop` 6908 dc_cv_name=`echo $dc_cv_loop | sed s/\\\$ac_cv_sizeof_//` 6909 if test "$dc_cv_size" = "8"; then 6910 if test "$dc_cv_name" = "int"; then 6911 echo "$as_me:$LINENO: checking for int64_t" >&5 6912 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6 6913 if test "${ac_cv_type_int64_t+set}" = set; then 6914 echo $ECHO_N "(cached) $ECHO_C" >&6 6915 else 6916 cat >conftest.$ac_ext <<_ACEOF 6917 /* confdefs.h. */ 6918 _ACEOF 6919 cat confdefs.h >>conftest.$ac_ext 6920 cat >>conftest.$ac_ext <<_ACEOF 6921 /* end confdefs.h. */ 6922 $ac_includes_default 6923 int 6924 main () 6925 { 6926 if ((int64_t *) 0) 6927 return 0; 6928 if (sizeof (int64_t)) 6929 return 0; 6930 ; 6931 return 0; 6932 } 6933 _ACEOF 6934 rm -f conftest.$ac_objext 6935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6936 (eval $ac_compile) 2>conftest.er1 6937 ac_status=$? 6938 grep -v '^ *+' conftest.er1 >conftest.err 6939 rm -f conftest.er1 6940 cat conftest.err >&5 6941 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6942 (exit $ac_status); } && 6943 { ac_try='test -z "$ac_c_werror_flag" 6944 || test ! -s conftest.err' 6945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6946 (eval $ac_try) 2>&5 6947 ac_status=$? 6948 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6949 (exit $ac_status); }; } && 6950 { ac_try='test -s conftest.$ac_objext' 6951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6952 (eval $ac_try) 2>&5 6953 ac_status=$? 6954 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6955 (exit $ac_status); }; }; then 6956 ac_cv_type_int64_t=yes 6957 else 6958 echo "$as_me: failed program was:" >&5 6959 sed 's/^/| /' conftest.$ac_ext >&5 6960 6961 ac_cv_type_int64_t=no 6962 fi 6963 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6964 fi 6965 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 6966 echo "${ECHO_T}$ac_cv_type_int64_t" >&6 6967 if test $ac_cv_type_int64_t = yes; then 6968 : 6969 else 6970 6971 cat >>confdefs.h <<_ACEOF 6972 #define int64_t signed int 6973 _ACEOF 6974 6975 fi 6976 6977 fi 6978 if test "$dc_cv_name" = "long"; then 6979 echo "$as_me:$LINENO: checking for int64_t" >&5 6980 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6 6981 if test "${ac_cv_type_int64_t+set}" = set; then 6982 echo $ECHO_N "(cached) $ECHO_C" >&6 6983 else 6984 cat >conftest.$ac_ext <<_ACEOF 6985 /* confdefs.h. */ 6986 _ACEOF 6987 cat confdefs.h >>conftest.$ac_ext 6988 cat >>conftest.$ac_ext <<_ACEOF 6989 /* end confdefs.h. */ 6990 $ac_includes_default 6991 int 6992 main () 6993 { 6994 if ((int64_t *) 0) 6995 return 0; 6996 if (sizeof (int64_t)) 6997 return 0; 6998 ; 6999 return 0; 7000 } 7001 _ACEOF 7002 rm -f conftest.$ac_objext 7003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7004 (eval $ac_compile) 2>conftest.er1 7005 ac_status=$? 7006 grep -v '^ *+' conftest.er1 >conftest.err 7007 rm -f conftest.er1 7008 cat conftest.err >&5 7009 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7010 (exit $ac_status); } && 7011 { ac_try='test -z "$ac_c_werror_flag" 7012 || test ! -s conftest.err' 7013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7014 (eval $ac_try) 2>&5 7015 ac_status=$? 7016 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7017 (exit $ac_status); }; } && 7018 { ac_try='test -s conftest.$ac_objext' 7019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7020 (eval $ac_try) 2>&5 7021 ac_status=$? 7022 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7023 (exit $ac_status); }; }; then 7024 ac_cv_type_int64_t=yes 7025 else 7026 echo "$as_me: failed program was:" >&5 7027 sed 's/^/| /' conftest.$ac_ext >&5 7028 7029 ac_cv_type_int64_t=no 7030 fi 7031 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7032 fi 7033 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 7034 echo "${ECHO_T}$ac_cv_type_int64_t" >&6 7035 if test $ac_cv_type_int64_t = yes; then 7036 : 7037 else 7038 7039 cat >>confdefs.h <<_ACEOF 7040 #define int64_t signed long 7041 _ACEOF 7042 7043 fi 7044 7045 fi 7046 if test "$dc_cv_name" = "long_long"; then 7047 echo "$as_me:$LINENO: checking for int64_t" >&5 7048 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6 7049 if test "${ac_cv_type_int64_t+set}" = set; then 7050 echo $ECHO_N "(cached) $ECHO_C" >&6 7051 else 7052 cat >conftest.$ac_ext <<_ACEOF 7053 /* confdefs.h. */ 7054 _ACEOF 7055 cat confdefs.h >>conftest.$ac_ext 7056 cat >>conftest.$ac_ext <<_ACEOF 7057 /* end confdefs.h. */ 7058 $ac_includes_default 7059 int 7060 main () 7061 { 7062 if ((int64_t *) 0) 7063 return 0; 7064 if (sizeof (int64_t)) 7065 return 0; 7066 ; 7067 return 0; 7068 } 7069 _ACEOF 7070 rm -f conftest.$ac_objext 7071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7072 (eval $ac_compile) 2>conftest.er1 7073 ac_status=$? 7074 grep -v '^ *+' conftest.er1 >conftest.err 7075 rm -f conftest.er1 7076 cat conftest.err >&5 7077 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7078 (exit $ac_status); } && 7079 { ac_try='test -z "$ac_c_werror_flag" 7080 || test ! -s conftest.err' 7081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7082 (eval $ac_try) 2>&5 7083 ac_status=$? 7084 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7085 (exit $ac_status); }; } && 7086 { ac_try='test -s conftest.$ac_objext' 7087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7088 (eval $ac_try) 2>&5 7089 ac_status=$? 7090 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7091 (exit $ac_status); }; }; then 7092 ac_cv_type_int64_t=yes 7093 else 7094 echo "$as_me: failed program was:" >&5 7095 sed 's/^/| /' conftest.$ac_ext >&5 7096 7097 ac_cv_type_int64_t=no 7098 fi 7099 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7100 fi 7101 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 7102 echo "${ECHO_T}$ac_cv_type_int64_t" >&6 7103 if test $ac_cv_type_int64_t = yes; then 7104 : 7105 else 7106 7107 cat >>confdefs.h <<_ACEOF 7108 #define int64_t signed long long 7109 _ACEOF 7110 7111 fi 7112 7113 fi 7114 if test "$dc_cv_name" = "short"; then 7115 echo "$as_me:$LINENO: checking for int64_t" >&5 7116 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6 7117 if test "${ac_cv_type_int64_t+set}" = set; then 7118 echo $ECHO_N "(cached) $ECHO_C" >&6 7119 else 7120 cat >conftest.$ac_ext <<_ACEOF 7121 /* confdefs.h. */ 7122 _ACEOF 7123 cat confdefs.h >>conftest.$ac_ext 7124 cat >>conftest.$ac_ext <<_ACEOF 7125 /* end confdefs.h. */ 7126 $ac_includes_default 7127 int 7128 main () 7129 { 7130 if ((int64_t *) 0) 7131 return 0; 7132 if (sizeof (int64_t)) 7133 return 0; 7134 ; 7135 return 0; 7136 } 7137 _ACEOF 7138 rm -f conftest.$ac_objext 7139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7140 (eval $ac_compile) 2>conftest.er1 7141 ac_status=$? 7142 grep -v '^ *+' conftest.er1 >conftest.err 7143 rm -f conftest.er1 7144 cat conftest.err >&5 7145 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7146 (exit $ac_status); } && 7147 { ac_try='test -z "$ac_c_werror_flag" 7148 || test ! -s conftest.err' 7149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7150 (eval $ac_try) 2>&5 7151 ac_status=$? 7152 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7153 (exit $ac_status); }; } && 7154 { ac_try='test -s conftest.$ac_objext' 7155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7156 (eval $ac_try) 2>&5 7157 ac_status=$? 7158 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7159 (exit $ac_status); }; }; then 7160 ac_cv_type_int64_t=yes 7161 else 7162 echo "$as_me: failed program was:" >&5 7163 sed 's/^/| /' conftest.$ac_ext >&5 7164 7165 ac_cv_type_int64_t=no 7166 fi 7167 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7168 fi 7169 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 7170 echo "${ECHO_T}$ac_cv_type_int64_t" >&6 7171 if test $ac_cv_type_int64_t = yes; then 7172 : 7173 else 7174 7175 cat >>confdefs.h <<_ACEOF 7176 #define int64_t signed short 7177 _ACEOF 7178 7179 fi 7180 7181 fi 7182 FOUND=1 7183 break 7184 fi 7185 done 7186 7187 7188 if test -z "$ac_cv_sizeof_long"; then 7189 echo "$as_me:$LINENO: checking for inline" >&5 7190 echo $ECHO_N "checking for inline... $ECHO_C" >&6 7191 if test "${ac_cv_c_inline+set}" = set; then 7192 echo $ECHO_N "(cached) $ECHO_C" >&6 7193 else 7194 ac_cv_c_inline=no 7195 for ac_kw in inline __inline__ __inline; do 7196 cat >conftest.$ac_ext <<_ACEOF 7197 /* confdefs.h. */ 7198 _ACEOF 7199 cat confdefs.h >>conftest.$ac_ext 7200 cat >>conftest.$ac_ext <<_ACEOF 7201 /* end confdefs.h. */ 7202 #ifndef __cplusplus 7203 typedef int foo_t; 7204 static $ac_kw foo_t static_foo () {return 0; } 7205 $ac_kw foo_t foo () {return 0; } 7206 #endif 7207 7208 _ACEOF 7209 rm -f conftest.$ac_objext 7210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7211 (eval $ac_compile) 2>conftest.er1 7212 ac_status=$? 7213 grep -v '^ *+' conftest.er1 >conftest.err 7214 rm -f conftest.er1 7215 cat conftest.err >&5 7216 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7217 (exit $ac_status); } && 7218 { ac_try='test -z "$ac_c_werror_flag" 7219 || test ! -s conftest.err' 7220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7221 (eval $ac_try) 2>&5 7222 ac_status=$? 7223 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7224 (exit $ac_status); }; } && 7225 { ac_try='test -s conftest.$ac_objext' 7226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7227 (eval $ac_try) 2>&5 7228 ac_status=$? 7229 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7230 (exit $ac_status); }; }; then 7231 ac_cv_c_inline=$ac_kw; break 7232 else 7233 echo "$as_me: failed program was:" >&5 7234 sed 's/^/| /' conftest.$ac_ext >&5 7235 7236 fi 7237 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7238 done 7239 7240 fi 7241 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 7242 echo "${ECHO_T}$ac_cv_c_inline" >&6 7243 7244 7245 case $ac_cv_c_inline in 7246 inline | yes) ;; 7247 *) 7248 case $ac_cv_c_inline in 7249 no) ac_val=;; 7250 *) ac_val=$ac_cv_c_inline;; 7251 esac 7252 cat >>confdefs.h <<_ACEOF 7253 #ifndef __cplusplus 7254 #define inline $ac_val 7255 #endif 7256 _ACEOF 7257 ;; 7258 esac 7259 7260 echo "$as_me:$LINENO: checking for long long" >&5 7261 echo $ECHO_N "checking for long long... $ECHO_C" >&6 7262 if test "${ac_cv_type_long_long+set}" = set; then 7263 echo $ECHO_N "(cached) $ECHO_C" >&6 7264 else 7265 cat >conftest.$ac_ext <<_ACEOF 7266 /* confdefs.h. */ 7267 _ACEOF 7268 cat confdefs.h >>conftest.$ac_ext 7269 cat >>conftest.$ac_ext <<_ACEOF 7270 /* end confdefs.h. */ 7271 $ac_includes_default 7272 int 7273 main () 7274 { 7275 if ((long long *) 0) 7276 return 0; 7277 if (sizeof (long long)) 7278 return 0; 7279 ; 7280 return 0; 7281 } 7282 _ACEOF 7283 rm -f conftest.$ac_objext 7284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7285 (eval $ac_compile) 2>conftest.er1 7286 ac_status=$? 7287 grep -v '^ *+' conftest.er1 >conftest.err 7288 rm -f conftest.er1 7289 cat conftest.err >&5 7290 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7291 (exit $ac_status); } && 7292 { ac_try='test -z "$ac_c_werror_flag" 7293 || test ! -s conftest.err' 7294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7295 (eval $ac_try) 2>&5 7296 ac_status=$? 7297 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7298 (exit $ac_status); }; } && 7299 { ac_try='test -s conftest.$ac_objext' 7300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7301 (eval $ac_try) 2>&5 7302 ac_status=$? 7303 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7304 (exit $ac_status); }; }; then 7305 ac_cv_type_long_long=yes 7306 else 7307 echo "$as_me: failed program was:" >&5 7308 sed 's/^/| /' conftest.$ac_ext >&5 7309 7310 ac_cv_type_long_long=no 7311 fi 7312 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7313 fi 7314 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 7315 echo "${ECHO_T}$ac_cv_type_long_long" >&6 7316 7317 echo "$as_me:$LINENO: checking size of long long" >&5 7318 echo $ECHO_N "checking size of long long... $ECHO_C" >&6 7319 if test "${ac_cv_sizeof_long_long+set}" = set; then 7320 echo $ECHO_N "(cached) $ECHO_C" >&6 7321 else 7322 if test "$ac_cv_type_long_long" = yes; then 7323 # The cast to unsigned long works around a bug in the HP C Compiler 7324 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 7325 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 7326 # This bug is HP SR number 8606223364. 7327 if test "$cross_compiling" = yes; then 7328 # Depending upon the size, compute the lo and hi bounds. 7329 cat >conftest.$ac_ext <<_ACEOF 7330 /* confdefs.h. */ 7331 _ACEOF 7332 cat confdefs.h >>conftest.$ac_ext 7333 cat >>conftest.$ac_ext <<_ACEOF 7334 /* end confdefs.h. */ 7335 $ac_includes_default 7336 int 7337 main () 7338 { 7339 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; 7340 test_array [0] = 0 7341 7342 ; 7343 return 0; 7344 } 7345 _ACEOF 7346 rm -f conftest.$ac_objext 7347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7348 (eval $ac_compile) 2>conftest.er1 7349 ac_status=$? 7350 grep -v '^ *+' conftest.er1 >conftest.err 7351 rm -f conftest.er1 7352 cat conftest.err >&5 7353 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7354 (exit $ac_status); } && 7355 { ac_try='test -z "$ac_c_werror_flag" 7356 || test ! -s conftest.err' 7357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7358 (eval $ac_try) 2>&5 7359 ac_status=$? 7360 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7361 (exit $ac_status); }; } && 7362 { ac_try='test -s conftest.$ac_objext' 7363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7364 (eval $ac_try) 2>&5 7365 ac_status=$? 7366 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7367 (exit $ac_status); }; }; then 7368 ac_lo=0 ac_mid=0 7369 while :; do 7370 cat >conftest.$ac_ext <<_ACEOF 7371 /* confdefs.h. */ 7372 _ACEOF 7373 cat confdefs.h >>conftest.$ac_ext 7374 cat >>conftest.$ac_ext <<_ACEOF 7375 /* end confdefs.h. */ 7376 $ac_includes_default 7377 int 7378 main () 7379 { 7380 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; 7381 test_array [0] = 0 7382 7383 ; 7384 return 0; 7385 } 7386 _ACEOF 7387 rm -f conftest.$ac_objext 7388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7389 (eval $ac_compile) 2>conftest.er1 7390 ac_status=$? 7391 grep -v '^ *+' conftest.er1 >conftest.err 7392 rm -f conftest.er1 7393 cat conftest.err >&5 7394 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7395 (exit $ac_status); } && 7396 { ac_try='test -z "$ac_c_werror_flag" 7397 || test ! -s conftest.err' 7398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7399 (eval $ac_try) 2>&5 7400 ac_status=$? 7401 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7402 (exit $ac_status); }; } && 7403 { ac_try='test -s conftest.$ac_objext' 7404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7405 (eval $ac_try) 2>&5 7406 ac_status=$? 7407 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7408 (exit $ac_status); }; }; then 7409 ac_hi=$ac_mid; break 7410 else 7411 echo "$as_me: failed program was:" >&5 7412 sed 's/^/| /' conftest.$ac_ext >&5 7413 7414 ac_lo=`expr $ac_mid + 1` 7415 if test $ac_lo -le $ac_mid; then 7416 ac_lo= ac_hi= 7417 break 7418 fi 7419 ac_mid=`expr 2 '*' $ac_mid + 1` 7420 fi 7421 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7422 done 7423 else 7424 echo "$as_me: failed program was:" >&5 7425 sed 's/^/| /' conftest.$ac_ext >&5 7426 7427 cat >conftest.$ac_ext <<_ACEOF 7428 /* confdefs.h. */ 7429 _ACEOF 7430 cat confdefs.h >>conftest.$ac_ext 7431 cat >>conftest.$ac_ext <<_ACEOF 7432 /* end confdefs.h. */ 7433 $ac_includes_default 7434 int 7435 main () 7436 { 7437 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; 7438 test_array [0] = 0 7439 7440 ; 7441 return 0; 7442 } 7443 _ACEOF 7444 rm -f conftest.$ac_objext 7445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7446 (eval $ac_compile) 2>conftest.er1 7447 ac_status=$? 7448 grep -v '^ *+' conftest.er1 >conftest.err 7449 rm -f conftest.er1 7450 cat conftest.err >&5 7451 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7452 (exit $ac_status); } && 7453 { ac_try='test -z "$ac_c_werror_flag" 7454 || test ! -s conftest.err' 7455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7456 (eval $ac_try) 2>&5 7457 ac_status=$? 7458 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7459 (exit $ac_status); }; } && 7460 { ac_try='test -s conftest.$ac_objext' 7461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7462 (eval $ac_try) 2>&5 7463 ac_status=$? 7464 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7465 (exit $ac_status); }; }; then 7466 ac_hi=-1 ac_mid=-1 7467 while :; do 7468 cat >conftest.$ac_ext <<_ACEOF 7469 /* confdefs.h. */ 7470 _ACEOF 7471 cat confdefs.h >>conftest.$ac_ext 7472 cat >>conftest.$ac_ext <<_ACEOF 7473 /* end confdefs.h. */ 7474 $ac_includes_default 7475 int 7476 main () 7477 { 7478 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; 7479 test_array [0] = 0 7480 7481 ; 7482 return 0; 7483 } 7484 _ACEOF 7485 rm -f conftest.$ac_objext 7486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7487 (eval $ac_compile) 2>conftest.er1 7488 ac_status=$? 7489 grep -v '^ *+' conftest.er1 >conftest.err 7490 rm -f conftest.er1 7491 cat conftest.err >&5 7492 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7493 (exit $ac_status); } && 7494 { ac_try='test -z "$ac_c_werror_flag" 7495 || test ! -s conftest.err' 7496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7497 (eval $ac_try) 2>&5 7498 ac_status=$? 7499 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7500 (exit $ac_status); }; } && 7501 { ac_try='test -s conftest.$ac_objext' 7502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7503 (eval $ac_try) 2>&5 7504 ac_status=$? 7505 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7506 (exit $ac_status); }; }; then 7507 ac_lo=$ac_mid; break 7508 else 7509 echo "$as_me: failed program was:" >&5 7510 sed 's/^/| /' conftest.$ac_ext >&5 7511 7512 ac_hi=`expr '(' $ac_mid ')' - 1` 7513 if test $ac_mid -le $ac_hi; then 7514 ac_lo= ac_hi= 7515 break 7516 fi 7517 ac_mid=`expr 2 '*' $ac_mid` 7518 fi 7519 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7520 done 7521 else 7522 echo "$as_me: failed program was:" >&5 7523 sed 's/^/| /' conftest.$ac_ext >&5 7524 7525 ac_lo= ac_hi= 7526 fi 7527 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7528 fi 7529 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7530 # Binary search between lo and hi bounds. 7531 while test "x$ac_lo" != "x$ac_hi"; do 7532 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 7533 cat >conftest.$ac_ext <<_ACEOF 7534 /* confdefs.h. */ 7535 _ACEOF 7536 cat confdefs.h >>conftest.$ac_ext 7537 cat >>conftest.$ac_ext <<_ACEOF 7538 /* end confdefs.h. */ 7539 $ac_includes_default 7540 int 7541 main () 7542 { 7543 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; 7544 test_array [0] = 0 7545 7546 ; 7547 return 0; 7548 } 7549 _ACEOF 7550 rm -f conftest.$ac_objext 7551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7552 (eval $ac_compile) 2>conftest.er1 7553 ac_status=$? 7554 grep -v '^ *+' conftest.er1 >conftest.err 7555 rm -f conftest.er1 7556 cat conftest.err >&5 7557 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7558 (exit $ac_status); } && 7559 { ac_try='test -z "$ac_c_werror_flag" 7560 || test ! -s conftest.err' 7561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7562 (eval $ac_try) 2>&5 7563 ac_status=$? 7564 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7565 (exit $ac_status); }; } && 7566 { ac_try='test -s conftest.$ac_objext' 7567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7568 (eval $ac_try) 2>&5 7569 ac_status=$? 7570 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7571 (exit $ac_status); }; }; then 7572 ac_hi=$ac_mid 7573 else 7574 echo "$as_me: failed program was:" >&5 7575 sed 's/^/| /' conftest.$ac_ext >&5 7576 7577 ac_lo=`expr '(' $ac_mid ')' + 1` 7578 fi 7579 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7580 done 7581 case $ac_lo in 7582 ?*) ac_cv_sizeof_long_long=$ac_lo;; 7583 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 7584 See \`config.log' for more details." >&5 7585 echo "$as_me: error: cannot compute sizeof (long long), 77 7586 See \`config.log' for more details." >&2;} 7587 { (exit 1); exit 1; }; } ;; 7588 esac 7589 else 7590 if test "$cross_compiling" = yes; then 7591 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 7592 See \`config.log' for more details." >&5 7593 echo "$as_me: error: cannot run test program while cross compiling 7594 See \`config.log' for more details." >&2;} 7595 { (exit 1); exit 1; }; } 7596 else 7597 cat >conftest.$ac_ext <<_ACEOF 7598 /* confdefs.h. */ 7599 _ACEOF 7600 cat confdefs.h >>conftest.$ac_ext 7601 cat >>conftest.$ac_ext <<_ACEOF 7602 /* end confdefs.h. */ 7603 $ac_includes_default 7604 long longval () { return (long) (sizeof (long long)); } 7605 unsigned long ulongval () { return (long) (sizeof (long long)); } 7606 #include <stdio.h> 7607 #include <stdlib.h> 7608 int 7609 main () 7610 { 7611 7612 FILE *f = fopen ("conftest.val", "w"); 7613 if (! f) 7614 exit (1); 7615 if (((long) (sizeof (long long))) < 0) 7616 { 7617 long i = longval (); 7618 if (i != ((long) (sizeof (long long)))) 7619 exit (1); 7620 fprintf (f, "%ld\n", i); 7621 } 7622 else 7623 { 7624 unsigned long i = ulongval (); 7625 if (i != ((long) (sizeof (long long)))) 7626 exit (1); 7627 fprintf (f, "%lu\n", i); 7628 } 7629 exit (ferror (f) || fclose (f) != 0); 7630 7631 ; 7632 return 0; 7633 } 7634 _ACEOF 7635 rm -f conftest$ac_exeext 7636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7637 (eval $ac_link) 2>&5 7638 ac_status=$? 7639 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7640 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 7641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7642 (eval $ac_try) 2>&5 7643 ac_status=$? 7644 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7645 (exit $ac_status); }; }; then 7646 ac_cv_sizeof_long_long=`cat conftest.val` 7647 else 7648 echo "$as_me: program exited with status $ac_status" >&5 7649 echo "$as_me: failed program was:" >&5 7650 sed 's/^/| /' conftest.$ac_ext >&5 7651 7652 ( exit $ac_status ) 7653 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 7654 See \`config.log' for more details." >&5 7655 echo "$as_me: error: cannot compute sizeof (long long), 77 7656 See \`config.log' for more details." >&2;} 7657 { (exit 1); exit 1; }; } 7658 fi 7659 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 7660 fi 7661 fi 7662 rm -f conftest.val 7663 else 7664 ac_cv_sizeof_long_long=0 7665 fi 7666 fi 7667 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 7668 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 7669 cat >>confdefs.h <<_ACEOF 7670 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long 7671 _ACEOF 7672 7673 7674 echo "$as_me:$LINENO: checking for long" >&5 7675 echo $ECHO_N "checking for long... $ECHO_C" >&6 7676 if test "${ac_cv_type_long+set}" = set; then 7677 echo $ECHO_N "(cached) $ECHO_C" >&6 7678 else 7679 cat >conftest.$ac_ext <<_ACEOF 7680 /* confdefs.h. */ 7681 _ACEOF 7682 cat confdefs.h >>conftest.$ac_ext 7683 cat >>conftest.$ac_ext <<_ACEOF 7684 /* end confdefs.h. */ 7685 $ac_includes_default 7686 int 7687 main () 7688 { 7689 if ((long *) 0) 7690 return 0; 7691 if (sizeof (long)) 7692 return 0; 7693 ; 7694 return 0; 7695 } 7696 _ACEOF 7697 rm -f conftest.$ac_objext 7698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7699 (eval $ac_compile) 2>conftest.er1 7700 ac_status=$? 7701 grep -v '^ *+' conftest.er1 >conftest.err 7702 rm -f conftest.er1 7703 cat conftest.err >&5 7704 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7705 (exit $ac_status); } && 7706 { ac_try='test -z "$ac_c_werror_flag" 7707 || test ! -s conftest.err' 7708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7709 (eval $ac_try) 2>&5 7710 ac_status=$? 7711 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7712 (exit $ac_status); }; } && 7713 { ac_try='test -s conftest.$ac_objext' 7714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7715 (eval $ac_try) 2>&5 7716 ac_status=$? 7717 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7718 (exit $ac_status); }; }; then 7719 ac_cv_type_long=yes 7720 else 7721 echo "$as_me: failed program was:" >&5 7722 sed 's/^/| /' conftest.$ac_ext >&5 7723 7724 ac_cv_type_long=no 7725 fi 7726 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7727 fi 7728 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 7729 echo "${ECHO_T}$ac_cv_type_long" >&6 7730 7731 echo "$as_me:$LINENO: checking size of long" >&5 7732 echo $ECHO_N "checking size of long... $ECHO_C" >&6 7733 if test "${ac_cv_sizeof_long+set}" = set; then 7734 echo $ECHO_N "(cached) $ECHO_C" >&6 7735 else 7736 if test "$ac_cv_type_long" = yes; then 7737 # The cast to unsigned long works around a bug in the HP C Compiler 7738 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 7739 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 7740 # This bug is HP SR number 8606223364. 7741 if test "$cross_compiling" = yes; then 7742 # Depending upon the size, compute the lo and hi bounds. 7743 cat >conftest.$ac_ext <<_ACEOF 7744 /* confdefs.h. */ 7745 _ACEOF 7746 cat confdefs.h >>conftest.$ac_ext 7747 cat >>conftest.$ac_ext <<_ACEOF 7748 /* end confdefs.h. */ 7749 $ac_includes_default 7750 int 7751 main () 7752 { 7753 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; 7754 test_array [0] = 0 7755 7756 ; 7757 return 0; 7758 } 7759 _ACEOF 7760 rm -f conftest.$ac_objext 7761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7762 (eval $ac_compile) 2>conftest.er1 7763 ac_status=$? 7764 grep -v '^ *+' conftest.er1 >conftest.err 7765 rm -f conftest.er1 7766 cat conftest.err >&5 7767 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7768 (exit $ac_status); } && 7769 { ac_try='test -z "$ac_c_werror_flag" 7770 || test ! -s conftest.err' 7771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7772 (eval $ac_try) 2>&5 7773 ac_status=$? 7774 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7775 (exit $ac_status); }; } && 7776 { ac_try='test -s conftest.$ac_objext' 7777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7778 (eval $ac_try) 2>&5 7779 ac_status=$? 7780 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7781 (exit $ac_status); }; }; then 7782 ac_lo=0 ac_mid=0 7783 while :; do 7784 cat >conftest.$ac_ext <<_ACEOF 7785 /* confdefs.h. */ 7786 _ACEOF 7787 cat confdefs.h >>conftest.$ac_ext 7788 cat >>conftest.$ac_ext <<_ACEOF 7789 /* end confdefs.h. */ 7790 $ac_includes_default 7791 int 7792 main () 7793 { 7794 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; 7795 test_array [0] = 0 7796 7797 ; 7798 return 0; 7799 } 7800 _ACEOF 7801 rm -f conftest.$ac_objext 7802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7803 (eval $ac_compile) 2>conftest.er1 7804 ac_status=$? 7805 grep -v '^ *+' conftest.er1 >conftest.err 7806 rm -f conftest.er1 7807 cat conftest.err >&5 7808 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7809 (exit $ac_status); } && 7810 { ac_try='test -z "$ac_c_werror_flag" 7811 || test ! -s conftest.err' 7812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7813 (eval $ac_try) 2>&5 7814 ac_status=$? 7815 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7816 (exit $ac_status); }; } && 7817 { ac_try='test -s conftest.$ac_objext' 7818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7819 (eval $ac_try) 2>&5 7820 ac_status=$? 7821 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7822 (exit $ac_status); }; }; then 7823 ac_hi=$ac_mid; break 7824 else 7825 echo "$as_me: failed program was:" >&5 7826 sed 's/^/| /' conftest.$ac_ext >&5 7827 7828 ac_lo=`expr $ac_mid + 1` 7829 if test $ac_lo -le $ac_mid; then 7830 ac_lo= ac_hi= 7831 break 7832 fi 7833 ac_mid=`expr 2 '*' $ac_mid + 1` 7834 fi 7835 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7836 done 7837 else 7838 echo "$as_me: failed program was:" >&5 7839 sed 's/^/| /' conftest.$ac_ext >&5 7840 7841 cat >conftest.$ac_ext <<_ACEOF 7842 /* confdefs.h. */ 7843 _ACEOF 7844 cat confdefs.h >>conftest.$ac_ext 7845 cat >>conftest.$ac_ext <<_ACEOF 7846 /* end confdefs.h. */ 7847 $ac_includes_default 7848 int 7849 main () 7850 { 7851 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; 7852 test_array [0] = 0 7853 7854 ; 7855 return 0; 7856 } 7857 _ACEOF 7858 rm -f conftest.$ac_objext 7859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7860 (eval $ac_compile) 2>conftest.er1 7861 ac_status=$? 7862 grep -v '^ *+' conftest.er1 >conftest.err 7863 rm -f conftest.er1 7864 cat conftest.err >&5 7865 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7866 (exit $ac_status); } && 7867 { ac_try='test -z "$ac_c_werror_flag" 7868 || test ! -s conftest.err' 7869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7870 (eval $ac_try) 2>&5 7871 ac_status=$? 7872 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7873 (exit $ac_status); }; } && 7874 { ac_try='test -s conftest.$ac_objext' 7875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7876 (eval $ac_try) 2>&5 7877 ac_status=$? 7878 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7879 (exit $ac_status); }; }; then 7880 ac_hi=-1 ac_mid=-1 7881 while :; do 7882 cat >conftest.$ac_ext <<_ACEOF 7883 /* confdefs.h. */ 7884 _ACEOF 7885 cat confdefs.h >>conftest.$ac_ext 7886 cat >>conftest.$ac_ext <<_ACEOF 7887 /* end confdefs.h. */ 7888 $ac_includes_default 7889 int 7890 main () 7891 { 7892 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; 7893 test_array [0] = 0 7894 7895 ; 7896 return 0; 7897 } 7898 _ACEOF 7899 rm -f conftest.$ac_objext 7900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7901 (eval $ac_compile) 2>conftest.er1 7902 ac_status=$? 7903 grep -v '^ *+' conftest.er1 >conftest.err 7904 rm -f conftest.er1 7905 cat conftest.err >&5 7906 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7907 (exit $ac_status); } && 7908 { ac_try='test -z "$ac_c_werror_flag" 7909 || test ! -s conftest.err' 7910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7911 (eval $ac_try) 2>&5 7912 ac_status=$? 7913 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7914 (exit $ac_status); }; } && 7915 { ac_try='test -s conftest.$ac_objext' 7916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7917 (eval $ac_try) 2>&5 7918 ac_status=$? 7919 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7920 (exit $ac_status); }; }; then 7921 ac_lo=$ac_mid; break 7922 else 7923 echo "$as_me: failed program was:" >&5 7924 sed 's/^/| /' conftest.$ac_ext >&5 7925 7926 ac_hi=`expr '(' $ac_mid ')' - 1` 7927 if test $ac_mid -le $ac_hi; then 7928 ac_lo= ac_hi= 7929 break 7930 fi 7931 ac_mid=`expr 2 '*' $ac_mid` 7932 fi 7933 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7934 done 7935 else 7936 echo "$as_me: failed program was:" >&5 7937 sed 's/^/| /' conftest.$ac_ext >&5 7938 7939 ac_lo= ac_hi= 7940 fi 7941 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7942 fi 7943 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7944 # Binary search between lo and hi bounds. 7945 while test "x$ac_lo" != "x$ac_hi"; do 7946 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 7947 cat >conftest.$ac_ext <<_ACEOF 7948 /* confdefs.h. */ 7949 _ACEOF 7950 cat confdefs.h >>conftest.$ac_ext 7951 cat >>conftest.$ac_ext <<_ACEOF 7952 /* end confdefs.h. */ 7953 $ac_includes_default 7954 int 7955 main () 7956 { 7957 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; 7958 test_array [0] = 0 7959 7960 ; 7961 return 0; 7962 } 7963 _ACEOF 7964 rm -f conftest.$ac_objext 7965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7966 (eval $ac_compile) 2>conftest.er1 7967 ac_status=$? 7968 grep -v '^ *+' conftest.er1 >conftest.err 7969 rm -f conftest.er1 7970 cat conftest.err >&5 7971 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7972 (exit $ac_status); } && 7973 { ac_try='test -z "$ac_c_werror_flag" 7974 || test ! -s conftest.err' 7975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7976 (eval $ac_try) 2>&5 7977 ac_status=$? 7978 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7979 (exit $ac_status); }; } && 7980 { ac_try='test -s conftest.$ac_objext' 7981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7982 (eval $ac_try) 2>&5 7983 ac_status=$? 7984 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7985 (exit $ac_status); }; }; then 7986 ac_hi=$ac_mid 7987 else 7988 echo "$as_me: failed program was:" >&5 7989 sed 's/^/| /' conftest.$ac_ext >&5 7990 7991 ac_lo=`expr '(' $ac_mid ')' + 1` 7992 fi 7993 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7994 done 7995 case $ac_lo in 7996 ?*) ac_cv_sizeof_long=$ac_lo;; 7997 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 7998 See \`config.log' for more details." >&5 7999 echo "$as_me: error: cannot compute sizeof (long), 77 8000 See \`config.log' for more details." >&2;} 8001 { (exit 1); exit 1; }; } ;; 8002 esac 8003 else 8004 if test "$cross_compiling" = yes; then 8005 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 8006 See \`config.log' for more details." >&5 8007 echo "$as_me: error: cannot run test program while cross compiling 8008 See \`config.log' for more details." >&2;} 8009 { (exit 1); exit 1; }; } 8010 else 8011 cat >conftest.$ac_ext <<_ACEOF 8012 /* confdefs.h. */ 8013 _ACEOF 8014 cat confdefs.h >>conftest.$ac_ext 8015 cat >>conftest.$ac_ext <<_ACEOF 8016 /* end confdefs.h. */ 8017 $ac_includes_default 8018 long longval () { return (long) (sizeof (long)); } 8019 unsigned long ulongval () { return (long) (sizeof (long)); } 8020 #include <stdio.h> 8021 #include <stdlib.h> 8022 int 8023 main () 8024 { 8025 8026 FILE *f = fopen ("conftest.val", "w"); 8027 if (! f) 8028 exit (1); 8029 if (((long) (sizeof (long))) < 0) 8030 { 8031 long i = longval (); 8032 if (i != ((long) (sizeof (long)))) 8033 exit (1); 8034 fprintf (f, "%ld\n", i); 8035 } 8036 else 8037 { 8038 unsigned long i = ulongval (); 8039 if (i != ((long) (sizeof (long)))) 8040 exit (1); 8041 fprintf (f, "%lu\n", i); 8042 } 8043 exit (ferror (f) || fclose (f) != 0); 8044 8045 ; 8046 return 0; 8047 } 8048 _ACEOF 8049 rm -f conftest$ac_exeext 8050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8051 (eval $ac_link) 2>&5 8052 ac_status=$? 8053 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8054 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 8055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8056 (eval $ac_try) 2>&5 8057 ac_status=$? 8058 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8059 (exit $ac_status); }; }; then 8060 ac_cv_sizeof_long=`cat conftest.val` 8061 else 8062 echo "$as_me: program exited with status $ac_status" >&5 8063 echo "$as_me: failed program was:" >&5 8064 sed 's/^/| /' conftest.$ac_ext >&5 8065 8066 ( exit $ac_status ) 8067 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 8068 See \`config.log' for more details." >&5 8069 echo "$as_me: error: cannot compute sizeof (long), 77 8070 See \`config.log' for more details." >&2;} 8071 { (exit 1); exit 1; }; } 8072 fi 8073 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 8074 fi 8075 fi 8076 rm -f conftest.val 8077 else 8078 ac_cv_sizeof_long=0 8079 fi 8080 fi 8081 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 8082 echo "${ECHO_T}$ac_cv_sizeof_long" >&6 8083 cat >>confdefs.h <<_ACEOF 8084 #define SIZEOF_LONG $ac_cv_sizeof_long 8085 _ACEOF 8086 8087 8088 echo "$as_me:$LINENO: checking for int" >&5 8089 echo $ECHO_N "checking for int... $ECHO_C" >&6 8090 if test "${ac_cv_type_int+set}" = set; then 8091 echo $ECHO_N "(cached) $ECHO_C" >&6 8092 else 8093 cat >conftest.$ac_ext <<_ACEOF 8094 /* confdefs.h. */ 8095 _ACEOF 8096 cat confdefs.h >>conftest.$ac_ext 8097 cat >>conftest.$ac_ext <<_ACEOF 8098 /* end confdefs.h. */ 8099 $ac_includes_default 8100 int 8101 main () 8102 { 8103 if ((int *) 0) 8104 return 0; 8105 if (sizeof (int)) 8106 return 0; 8107 ; 8108 return 0; 8109 } 8110 _ACEOF 8111 rm -f conftest.$ac_objext 8112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8113 (eval $ac_compile) 2>conftest.er1 8114 ac_status=$? 8115 grep -v '^ *+' conftest.er1 >conftest.err 8116 rm -f conftest.er1 8117 cat conftest.err >&5 8118 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8119 (exit $ac_status); } && 8120 { ac_try='test -z "$ac_c_werror_flag" 8121 || test ! -s conftest.err' 8122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8123 (eval $ac_try) 2>&5 8124 ac_status=$? 8125 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8126 (exit $ac_status); }; } && 8127 { ac_try='test -s conftest.$ac_objext' 8128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8129 (eval $ac_try) 2>&5 8130 ac_status=$? 8131 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8132 (exit $ac_status); }; }; then 8133 ac_cv_type_int=yes 8134 else 8135 echo "$as_me: failed program was:" >&5 8136 sed 's/^/| /' conftest.$ac_ext >&5 8137 8138 ac_cv_type_int=no 8139 fi 8140 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8141 fi 8142 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 8143 echo "${ECHO_T}$ac_cv_type_int" >&6 8144 8145 echo "$as_me:$LINENO: checking size of int" >&5 8146 echo $ECHO_N "checking size of int... $ECHO_C" >&6 8147 if test "${ac_cv_sizeof_int+set}" = set; then 8148 echo $ECHO_N "(cached) $ECHO_C" >&6 8149 else 8150 if test "$ac_cv_type_int" = yes; then 8151 # The cast to unsigned long works around a bug in the HP C Compiler 8152 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 8153 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 8154 # This bug is HP SR number 8606223364. 8155 if test "$cross_compiling" = yes; then 8156 # Depending upon the size, compute the lo and hi bounds. 8157 cat >conftest.$ac_ext <<_ACEOF 8158 /* confdefs.h. */ 8159 _ACEOF 8160 cat confdefs.h >>conftest.$ac_ext 8161 cat >>conftest.$ac_ext <<_ACEOF 8162 /* end confdefs.h. */ 8163 $ac_includes_default 8164 int 8165 main () 8166 { 8167 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; 8168 test_array [0] = 0 8169 8170 ; 8171 return 0; 8172 } 8173 _ACEOF 8174 rm -f conftest.$ac_objext 8175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8176 (eval $ac_compile) 2>conftest.er1 8177 ac_status=$? 8178 grep -v '^ *+' conftest.er1 >conftest.err 8179 rm -f conftest.er1 8180 cat conftest.err >&5 8181 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8182 (exit $ac_status); } && 8183 { ac_try='test -z "$ac_c_werror_flag" 8184 || test ! -s conftest.err' 8185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8186 (eval $ac_try) 2>&5 8187 ac_status=$? 8188 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8189 (exit $ac_status); }; } && 8190 { ac_try='test -s conftest.$ac_objext' 8191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8192 (eval $ac_try) 2>&5 8193 ac_status=$? 8194 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8195 (exit $ac_status); }; }; then 8196 ac_lo=0 ac_mid=0 8197 while :; do 8198 cat >conftest.$ac_ext <<_ACEOF 8199 /* confdefs.h. */ 8200 _ACEOF 8201 cat confdefs.h >>conftest.$ac_ext 8202 cat >>conftest.$ac_ext <<_ACEOF 8203 /* end confdefs.h. */ 8204 $ac_includes_default 8205 int 8206 main () 8207 { 8208 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; 8209 test_array [0] = 0 8210 8211 ; 8212 return 0; 8213 } 8214 _ACEOF 8215 rm -f conftest.$ac_objext 8216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8217 (eval $ac_compile) 2>conftest.er1 8218 ac_status=$? 8219 grep -v '^ *+' conftest.er1 >conftest.err 8220 rm -f conftest.er1 8221 cat conftest.err >&5 8222 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8223 (exit $ac_status); } && 8224 { ac_try='test -z "$ac_c_werror_flag" 8225 || test ! -s conftest.err' 8226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8227 (eval $ac_try) 2>&5 8228 ac_status=$? 8229 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8230 (exit $ac_status); }; } && 8231 { ac_try='test -s conftest.$ac_objext' 8232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8233 (eval $ac_try) 2>&5 8234 ac_status=$? 8235 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8236 (exit $ac_status); }; }; then 8237 ac_hi=$ac_mid; break 8238 else 8239 echo "$as_me: failed program was:" >&5 8240 sed 's/^/| /' conftest.$ac_ext >&5 8241 8242 ac_lo=`expr $ac_mid + 1` 8243 if test $ac_lo -le $ac_mid; then 8244 ac_lo= ac_hi= 8245 break 8246 fi 8247 ac_mid=`expr 2 '*' $ac_mid + 1` 8248 fi 8249 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8250 done 8251 else 8252 echo "$as_me: failed program was:" >&5 8253 sed 's/^/| /' conftest.$ac_ext >&5 8254 8255 cat >conftest.$ac_ext <<_ACEOF 8256 /* confdefs.h. */ 8257 _ACEOF 8258 cat confdefs.h >>conftest.$ac_ext 8259 cat >>conftest.$ac_ext <<_ACEOF 8260 /* end confdefs.h. */ 8261 $ac_includes_default 8262 int 8263 main () 8264 { 8265 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; 8266 test_array [0] = 0 8267 8268 ; 8269 return 0; 8270 } 8271 _ACEOF 8272 rm -f conftest.$ac_objext 8273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8274 (eval $ac_compile) 2>conftest.er1 8275 ac_status=$? 8276 grep -v '^ *+' conftest.er1 >conftest.err 8277 rm -f conftest.er1 8278 cat conftest.err >&5 8279 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8280 (exit $ac_status); } && 8281 { ac_try='test -z "$ac_c_werror_flag" 8282 || test ! -s conftest.err' 8283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8284 (eval $ac_try) 2>&5 8285 ac_status=$? 8286 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8287 (exit $ac_status); }; } && 8288 { ac_try='test -s conftest.$ac_objext' 8289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8290 (eval $ac_try) 2>&5 8291 ac_status=$? 8292 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8293 (exit $ac_status); }; }; then 8294 ac_hi=-1 ac_mid=-1 8295 while :; do 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 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; 8307 test_array [0] = 0 8308 8309 ; 8310 return 0; 8311 } 8312 _ACEOF 8313 rm -f conftest.$ac_objext 8314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8315 (eval $ac_compile) 2>conftest.er1 8316 ac_status=$? 8317 grep -v '^ *+' conftest.er1 >conftest.err 8318 rm -f conftest.er1 8319 cat conftest.err >&5 8320 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8321 (exit $ac_status); } && 8322 { ac_try='test -z "$ac_c_werror_flag" 8323 || test ! -s conftest.err' 8324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8325 (eval $ac_try) 2>&5 8326 ac_status=$? 8327 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8328 (exit $ac_status); }; } && 8329 { ac_try='test -s conftest.$ac_objext' 8330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8331 (eval $ac_try) 2>&5 8332 ac_status=$? 8333 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8334 (exit $ac_status); }; }; then 8335 ac_lo=$ac_mid; break 8336 else 8337 echo "$as_me: failed program was:" >&5 8338 sed 's/^/| /' conftest.$ac_ext >&5 8339 8340 ac_hi=`expr '(' $ac_mid ')' - 1` 8341 if test $ac_mid -le $ac_hi; then 8342 ac_lo= ac_hi= 8343 break 8344 fi 8345 ac_mid=`expr 2 '*' $ac_mid` 8346 fi 8347 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8348 done 8349 else 8350 echo "$as_me: failed program was:" >&5 8351 sed 's/^/| /' conftest.$ac_ext >&5 8352 8353 ac_lo= ac_hi= 8354 fi 8355 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8356 fi 8357 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8358 # Binary search between lo and hi bounds. 8359 while test "x$ac_lo" != "x$ac_hi"; do 8360 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 8361 cat >conftest.$ac_ext <<_ACEOF 8362 /* confdefs.h. */ 8363 _ACEOF 8364 cat confdefs.h >>conftest.$ac_ext 8365 cat >>conftest.$ac_ext <<_ACEOF 8366 /* end confdefs.h. */ 8367 $ac_includes_default 8368 int 8369 main () 8370 { 8371 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; 8372 test_array [0] = 0 8373 8374 ; 8375 return 0; 8376 } 8377 _ACEOF 8378 rm -f conftest.$ac_objext 8379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8380 (eval $ac_compile) 2>conftest.er1 8381 ac_status=$? 8382 grep -v '^ *+' conftest.er1 >conftest.err 8383 rm -f conftest.er1 8384 cat conftest.err >&5 8385 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8386 (exit $ac_status); } && 8387 { ac_try='test -z "$ac_c_werror_flag" 8388 || test ! -s conftest.err' 8389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8390 (eval $ac_try) 2>&5 8391 ac_status=$? 8392 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8393 (exit $ac_status); }; } && 8394 { ac_try='test -s conftest.$ac_objext' 8395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8396 (eval $ac_try) 2>&5 8397 ac_status=$? 8398 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8399 (exit $ac_status); }; }; then 8400 ac_hi=$ac_mid 8401 else 8402 echo "$as_me: failed program was:" >&5 8403 sed 's/^/| /' conftest.$ac_ext >&5 8404 8405 ac_lo=`expr '(' $ac_mid ')' + 1` 8406 fi 8407 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8408 done 8409 case $ac_lo in 8410 ?*) ac_cv_sizeof_int=$ac_lo;; 8411 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 8412 See \`config.log' for more details." >&5 8413 echo "$as_me: error: cannot compute sizeof (int), 77 8414 See \`config.log' for more details." >&2;} 8415 { (exit 1); exit 1; }; } ;; 8416 esac 8417 else 8418 if test "$cross_compiling" = yes; then 8419 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 8420 See \`config.log' for more details." >&5 8421 echo "$as_me: error: cannot run test program while cross compiling 8422 See \`config.log' for more details." >&2;} 8423 { (exit 1); exit 1; }; } 8424 else 8425 cat >conftest.$ac_ext <<_ACEOF 8426 /* confdefs.h. */ 8427 _ACEOF 8428 cat confdefs.h >>conftest.$ac_ext 8429 cat >>conftest.$ac_ext <<_ACEOF 8430 /* end confdefs.h. */ 8431 $ac_includes_default 8432 long longval () { return (long) (sizeof (int)); } 8433 unsigned long ulongval () { return (long) (sizeof (int)); } 8434 #include <stdio.h> 8435 #include <stdlib.h> 8436 int 8437 main () 8438 { 8439 8440 FILE *f = fopen ("conftest.val", "w"); 8441 if (! f) 8442 exit (1); 8443 if (((long) (sizeof (int))) < 0) 8444 { 8445 long i = longval (); 8446 if (i != ((long) (sizeof (int)))) 8447 exit (1); 8448 fprintf (f, "%ld\n", i); 8449 } 8450 else 8451 { 8452 unsigned long i = ulongval (); 8453 if (i != ((long) (sizeof (int)))) 8454 exit (1); 8455 fprintf (f, "%lu\n", i); 8456 } 8457 exit (ferror (f) || fclose (f) != 0); 8458 8459 ; 8460 return 0; 8461 } 8462 _ACEOF 8463 rm -f conftest$ac_exeext 8464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8465 (eval $ac_link) 2>&5 8466 ac_status=$? 8467 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8468 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 8469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8470 (eval $ac_try) 2>&5 8471 ac_status=$? 8472 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8473 (exit $ac_status); }; }; then 8474 ac_cv_sizeof_int=`cat conftest.val` 8475 else 8476 echo "$as_me: program exited with status $ac_status" >&5 8477 echo "$as_me: failed program was:" >&5 8478 sed 's/^/| /' conftest.$ac_ext >&5 8479 8480 ( exit $ac_status ) 8481 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 8482 See \`config.log' for more details." >&5 8483 echo "$as_me: error: cannot compute sizeof (int), 77 8484 See \`config.log' for more details." >&2;} 8485 { (exit 1); exit 1; }; } 8486 fi 8487 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 8488 fi 8489 fi 8490 rm -f conftest.val 8491 else 8492 ac_cv_sizeof_int=0 8493 fi 8494 fi 8495 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 8496 echo "${ECHO_T}$ac_cv_sizeof_int" >&6 8497 cat >>confdefs.h <<_ACEOF 8498 #define SIZEOF_INT $ac_cv_sizeof_int 8499 _ACEOF 8500 8501 8502 echo "$as_me:$LINENO: checking for short" >&5 8503 echo $ECHO_N "checking for short... $ECHO_C" >&6 8504 if test "${ac_cv_type_short+set}" = set; then 8505 echo $ECHO_N "(cached) $ECHO_C" >&6 8506 else 8507 cat >conftest.$ac_ext <<_ACEOF 8508 /* confdefs.h. */ 8509 _ACEOF 8510 cat confdefs.h >>conftest.$ac_ext 8511 cat >>conftest.$ac_ext <<_ACEOF 8512 /* end confdefs.h. */ 8513 $ac_includes_default 8514 int 8515 main () 8516 { 8517 if ((short *) 0) 8518 return 0; 8519 if (sizeof (short)) 8520 return 0; 8521 ; 8522 return 0; 8523 } 8524 _ACEOF 8525 rm -f conftest.$ac_objext 8526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8527 (eval $ac_compile) 2>conftest.er1 8528 ac_status=$? 8529 grep -v '^ *+' conftest.er1 >conftest.err 8530 rm -f conftest.er1 8531 cat conftest.err >&5 8532 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8533 (exit $ac_status); } && 8534 { ac_try='test -z "$ac_c_werror_flag" 8535 || test ! -s conftest.err' 8536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8537 (eval $ac_try) 2>&5 8538 ac_status=$? 8539 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8540 (exit $ac_status); }; } && 8541 { ac_try='test -s conftest.$ac_objext' 8542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8543 (eval $ac_try) 2>&5 8544 ac_status=$? 8545 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8546 (exit $ac_status); }; }; then 8547 ac_cv_type_short=yes 8548 else 8549 echo "$as_me: failed program was:" >&5 8550 sed 's/^/| /' conftest.$ac_ext >&5 8551 8552 ac_cv_type_short=no 8553 fi 8554 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8555 fi 8556 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 8557 echo "${ECHO_T}$ac_cv_type_short" >&6 8558 8559 echo "$as_me:$LINENO: checking size of short" >&5 8560 echo $ECHO_N "checking size of short... $ECHO_C" >&6 8561 if test "${ac_cv_sizeof_short+set}" = set; then 8562 echo $ECHO_N "(cached) $ECHO_C" >&6 8563 else 8564 if test "$ac_cv_type_short" = yes; then 8565 # The cast to unsigned long works around a bug in the HP C Compiler 8566 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 8567 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 8568 # This bug is HP SR number 8606223364. 8569 if test "$cross_compiling" = yes; then 8570 # Depending upon the size, compute the lo and hi bounds. 8571 cat >conftest.$ac_ext <<_ACEOF 8572 /* confdefs.h. */ 8573 _ACEOF 8574 cat confdefs.h >>conftest.$ac_ext 8575 cat >>conftest.$ac_ext <<_ACEOF 8576 /* end confdefs.h. */ 8577 $ac_includes_default 8578 int 8579 main () 8580 { 8581 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; 8582 test_array [0] = 0 8583 8584 ; 8585 return 0; 8586 } 8587 _ACEOF 8588 rm -f conftest.$ac_objext 8589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8590 (eval $ac_compile) 2>conftest.er1 8591 ac_status=$? 8592 grep -v '^ *+' conftest.er1 >conftest.err 8593 rm -f conftest.er1 8594 cat conftest.err >&5 8595 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8596 (exit $ac_status); } && 8597 { ac_try='test -z "$ac_c_werror_flag" 8598 || test ! -s conftest.err' 8599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8600 (eval $ac_try) 2>&5 8601 ac_status=$? 8602 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8603 (exit $ac_status); }; } && 8604 { ac_try='test -s conftest.$ac_objext' 8605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8606 (eval $ac_try) 2>&5 8607 ac_status=$? 8608 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8609 (exit $ac_status); }; }; then 8610 ac_lo=0 ac_mid=0 8611 while :; do 8612 cat >conftest.$ac_ext <<_ACEOF 8613 /* confdefs.h. */ 8614 _ACEOF 8615 cat confdefs.h >>conftest.$ac_ext 8616 cat >>conftest.$ac_ext <<_ACEOF 8617 /* end confdefs.h. */ 8618 $ac_includes_default 8619 int 8620 main () 8621 { 8622 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; 8623 test_array [0] = 0 8624 8625 ; 8626 return 0; 8627 } 8628 _ACEOF 8629 rm -f conftest.$ac_objext 8630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8631 (eval $ac_compile) 2>conftest.er1 8632 ac_status=$? 8633 grep -v '^ *+' conftest.er1 >conftest.err 8634 rm -f conftest.er1 8635 cat conftest.err >&5 8636 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8637 (exit $ac_status); } && 8638 { ac_try='test -z "$ac_c_werror_flag" 8639 || test ! -s conftest.err' 8640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8641 (eval $ac_try) 2>&5 8642 ac_status=$? 8643 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8644 (exit $ac_status); }; } && 8645 { ac_try='test -s conftest.$ac_objext' 8646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8647 (eval $ac_try) 2>&5 8648 ac_status=$? 8649 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8650 (exit $ac_status); }; }; then 8651 ac_hi=$ac_mid; break 8652 else 8653 echo "$as_me: failed program was:" >&5 8654 sed 's/^/| /' conftest.$ac_ext >&5 8655 8656 ac_lo=`expr $ac_mid + 1` 8657 if test $ac_lo -le $ac_mid; then 8658 ac_lo= ac_hi= 8659 break 8660 fi 8661 ac_mid=`expr 2 '*' $ac_mid + 1` 8662 fi 8663 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8664 done 8665 else 8666 echo "$as_me: failed program was:" >&5 8667 sed 's/^/| /' conftest.$ac_ext >&5 8668 8669 cat >conftest.$ac_ext <<_ACEOF 8670 /* confdefs.h. */ 8671 _ACEOF 8672 cat confdefs.h >>conftest.$ac_ext 8673 cat >>conftest.$ac_ext <<_ACEOF 8674 /* end confdefs.h. */ 8675 $ac_includes_default 8676 int 8677 main () 8678 { 8679 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; 8680 test_array [0] = 0 8681 8682 ; 8683 return 0; 8684 } 8685 _ACEOF 8686 rm -f conftest.$ac_objext 8687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8688 (eval $ac_compile) 2>conftest.er1 8689 ac_status=$? 8690 grep -v '^ *+' conftest.er1 >conftest.err 8691 rm -f conftest.er1 8692 cat conftest.err >&5 8693 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8694 (exit $ac_status); } && 8695 { ac_try='test -z "$ac_c_werror_flag" 8696 || test ! -s conftest.err' 8697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8698 (eval $ac_try) 2>&5 8699 ac_status=$? 8700 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8701 (exit $ac_status); }; } && 8702 { ac_try='test -s conftest.$ac_objext' 8703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8704 (eval $ac_try) 2>&5 8705 ac_status=$? 8706 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8707 (exit $ac_status); }; }; then 8708 ac_hi=-1 ac_mid=-1 8709 while :; do 8710 cat >conftest.$ac_ext <<_ACEOF 8711 /* confdefs.h. */ 8712 _ACEOF 8713 cat confdefs.h >>conftest.$ac_ext 8714 cat >>conftest.$ac_ext <<_ACEOF 8715 /* end confdefs.h. */ 8716 $ac_includes_default 8717 int 8718 main () 8719 { 8720 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; 8721 test_array [0] = 0 8722 8723 ; 8724 return 0; 8725 } 8726 _ACEOF 8727 rm -f conftest.$ac_objext 8728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8729 (eval $ac_compile) 2>conftest.er1 8730 ac_status=$? 8731 grep -v '^ *+' conftest.er1 >conftest.err 8732 rm -f conftest.er1 8733 cat conftest.err >&5 8734 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8735 (exit $ac_status); } && 8736 { ac_try='test -z "$ac_c_werror_flag" 8737 || test ! -s conftest.err' 8738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8739 (eval $ac_try) 2>&5 8740 ac_status=$? 8741 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8742 (exit $ac_status); }; } && 8743 { ac_try='test -s conftest.$ac_objext' 8744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8745 (eval $ac_try) 2>&5 8746 ac_status=$? 8747 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8748 (exit $ac_status); }; }; then 8749 ac_lo=$ac_mid; break 8750 else 8751 echo "$as_me: failed program was:" >&5 8752 sed 's/^/| /' conftest.$ac_ext >&5 8753 8754 ac_hi=`expr '(' $ac_mid ')' - 1` 8755 if test $ac_mid -le $ac_hi; then 8756 ac_lo= ac_hi= 8757 break 8758 fi 8759 ac_mid=`expr 2 '*' $ac_mid` 8760 fi 8761 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8762 done 8763 else 8764 echo "$as_me: failed program was:" >&5 8765 sed 's/^/| /' conftest.$ac_ext >&5 8766 8767 ac_lo= ac_hi= 8768 fi 8769 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8770 fi 8771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8772 # Binary search between lo and hi bounds. 8773 while test "x$ac_lo" != "x$ac_hi"; do 8774 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 8775 cat >conftest.$ac_ext <<_ACEOF 8776 /* confdefs.h. */ 8777 _ACEOF 8778 cat confdefs.h >>conftest.$ac_ext 8779 cat >>conftest.$ac_ext <<_ACEOF 8780 /* end confdefs.h. */ 8781 $ac_includes_default 8782 int 8783 main () 8784 { 8785 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; 8786 test_array [0] = 0 8787 8788 ; 8789 return 0; 8790 } 8791 _ACEOF 8792 rm -f conftest.$ac_objext 8793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8794 (eval $ac_compile) 2>conftest.er1 8795 ac_status=$? 8796 grep -v '^ *+' conftest.er1 >conftest.err 8797 rm -f conftest.er1 8798 cat conftest.err >&5 8799 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8800 (exit $ac_status); } && 8801 { ac_try='test -z "$ac_c_werror_flag" 8802 || test ! -s conftest.err' 8803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8804 (eval $ac_try) 2>&5 8805 ac_status=$? 8806 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8807 (exit $ac_status); }; } && 8808 { ac_try='test -s conftest.$ac_objext' 8809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8810 (eval $ac_try) 2>&5 8811 ac_status=$? 8812 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8813 (exit $ac_status); }; }; then 8814 ac_hi=$ac_mid 8815 else 8816 echo "$as_me: failed program was:" >&5 8817 sed 's/^/| /' conftest.$ac_ext >&5 8818 8819 ac_lo=`expr '(' $ac_mid ')' + 1` 8820 fi 8821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8822 done 8823 case $ac_lo in 8824 ?*) ac_cv_sizeof_short=$ac_lo;; 8825 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 8826 See \`config.log' for more details." >&5 8827 echo "$as_me: error: cannot compute sizeof (short), 77 8828 See \`config.log' for more details." >&2;} 8829 { (exit 1); exit 1; }; } ;; 8830 esac 8831 else 8832 if test "$cross_compiling" = yes; then 8833 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 8834 See \`config.log' for more details." >&5 8835 echo "$as_me: error: cannot run test program while cross compiling 8836 See \`config.log' for more details." >&2;} 8837 { (exit 1); exit 1; }; } 8838 else 8839 cat >conftest.$ac_ext <<_ACEOF 8840 /* confdefs.h. */ 8841 _ACEOF 8842 cat confdefs.h >>conftest.$ac_ext 8843 cat >>conftest.$ac_ext <<_ACEOF 8844 /* end confdefs.h. */ 8845 $ac_includes_default 8846 long longval () { return (long) (sizeof (short)); } 8847 unsigned long ulongval () { return (long) (sizeof (short)); } 8848 #include <stdio.h> 8849 #include <stdlib.h> 8850 int 8851 main () 8852 { 8853 8854 FILE *f = fopen ("conftest.val", "w"); 8855 if (! f) 8856 exit (1); 8857 if (((long) (sizeof (short))) < 0) 8858 { 8859 long i = longval (); 8860 if (i != ((long) (sizeof (short)))) 8861 exit (1); 8862 fprintf (f, "%ld\n", i); 8863 } 8864 else 8865 { 8866 unsigned long i = ulongval (); 8867 if (i != ((long) (sizeof (short)))) 8868 exit (1); 8869 fprintf (f, "%lu\n", i); 8870 } 8871 exit (ferror (f) || fclose (f) != 0); 8872 8873 ; 8874 return 0; 8875 } 8876 _ACEOF 8877 rm -f conftest$ac_exeext 8878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8879 (eval $ac_link) 2>&5 8880 ac_status=$? 8881 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8882 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 8883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8884 (eval $ac_try) 2>&5 8885 ac_status=$? 8886 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8887 (exit $ac_status); }; }; then 8888 ac_cv_sizeof_short=`cat conftest.val` 8889 else 8890 echo "$as_me: program exited with status $ac_status" >&5 8891 echo "$as_me: failed program was:" >&5 8892 sed 's/^/| /' conftest.$ac_ext >&5 8893 8894 ( exit $ac_status ) 8895 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 8896 See \`config.log' for more details." >&5 8897 echo "$as_me: error: cannot compute sizeof (short), 77 8898 See \`config.log' for more details." >&2;} 8899 { (exit 1); exit 1; }; } 8900 fi 8901 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 8902 fi 8903 fi 8904 rm -f conftest.val 8905 else 8906 ac_cv_sizeof_short=0 8907 fi 8908 fi 8909 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 8910 echo "${ECHO_T}$ac_cv_sizeof_short" >&6 8911 cat >>confdefs.h <<_ACEOF 8912 #define SIZEOF_SHORT $ac_cv_sizeof_short 8913 _ACEOF 8914 8915 8916 fi 8917 FOUND=0 8918 for dc_cv_loop in \$ac_cv_sizeof_long_long \$ac_cv_sizeof_int \$ac_cv_sizeof_long \$ac_cv_sizeof_short; do 8919 dc_cv_size=`eval echo $dc_cv_loop` 8920 dc_cv_name=`echo $dc_cv_loop | sed s/\\\$ac_cv_sizeof_//` 8921 if test "$dc_cv_size" = "4"; then 8922 if test "$dc_cv_name" = "int"; then 8923 echo "$as_me:$LINENO: checking for uint32_t" >&5 8924 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6 8925 if test "${ac_cv_type_uint32_t+set}" = set; then 8926 echo $ECHO_N "(cached) $ECHO_C" >&6 8927 else 8928 cat >conftest.$ac_ext <<_ACEOF 8929 /* confdefs.h. */ 8930 _ACEOF 8931 cat confdefs.h >>conftest.$ac_ext 8932 cat >>conftest.$ac_ext <<_ACEOF 8933 /* end confdefs.h. */ 8934 $ac_includes_default 8935 int 8936 main () 8937 { 8938 if ((uint32_t *) 0) 8939 return 0; 8940 if (sizeof (uint32_t)) 8941 return 0; 8942 ; 8943 return 0; 8944 } 8945 _ACEOF 8946 rm -f conftest.$ac_objext 8947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8948 (eval $ac_compile) 2>conftest.er1 8949 ac_status=$? 8950 grep -v '^ *+' conftest.er1 >conftest.err 8951 rm -f conftest.er1 8952 cat conftest.err >&5 8953 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8954 (exit $ac_status); } && 8955 { ac_try='test -z "$ac_c_werror_flag" 8956 || test ! -s conftest.err' 8957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8958 (eval $ac_try) 2>&5 8959 ac_status=$? 8960 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8961 (exit $ac_status); }; } && 8962 { ac_try='test -s conftest.$ac_objext' 8963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8964 (eval $ac_try) 2>&5 8965 ac_status=$? 8966 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8967 (exit $ac_status); }; }; then 8968 ac_cv_type_uint32_t=yes 8969 else 8970 echo "$as_me: failed program was:" >&5 8971 sed 's/^/| /' conftest.$ac_ext >&5 8972 8973 ac_cv_type_uint32_t=no 8974 fi 8975 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8976 fi 8977 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5 8978 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6 8979 if test $ac_cv_type_uint32_t = yes; then 8980 : 8981 else 8982 8983 cat >>confdefs.h <<_ACEOF 8984 #define uint32_t unsigned int 8985 _ACEOF 8986 8987 fi 8988 8989 fi 8990 if test "$dc_cv_name" = "long"; then 8991 echo "$as_me:$LINENO: checking for uint32_t" >&5 8992 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6 8993 if test "${ac_cv_type_uint32_t+set}" = set; then 8994 echo $ECHO_N "(cached) $ECHO_C" >&6 8995 else 8996 cat >conftest.$ac_ext <<_ACEOF 8997 /* confdefs.h. */ 8998 _ACEOF 8999 cat confdefs.h >>conftest.$ac_ext 9000 cat >>conftest.$ac_ext <<_ACEOF 9001 /* end confdefs.h. */ 9002 $ac_includes_default 9003 int 9004 main () 9005 { 9006 if ((uint32_t *) 0) 9007 return 0; 9008 if (sizeof (uint32_t)) 9009 return 0; 9010 ; 9011 return 0; 9012 } 9013 _ACEOF 9014 rm -f conftest.$ac_objext 9015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9016 (eval $ac_compile) 2>conftest.er1 9017 ac_status=$? 9018 grep -v '^ *+' conftest.er1 >conftest.err 9019 rm -f conftest.er1 9020 cat conftest.err >&5 9021 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9022 (exit $ac_status); } && 9023 { ac_try='test -z "$ac_c_werror_flag" 9024 || test ! -s conftest.err' 9025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9026 (eval $ac_try) 2>&5 9027 ac_status=$? 9028 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9029 (exit $ac_status); }; } && 9030 { ac_try='test -s conftest.$ac_objext' 9031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9032 (eval $ac_try) 2>&5 9033 ac_status=$? 9034 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9035 (exit $ac_status); }; }; then 9036 ac_cv_type_uint32_t=yes 9037 else 9038 echo "$as_me: failed program was:" >&5 9039 sed 's/^/| /' conftest.$ac_ext >&5 9040 9041 ac_cv_type_uint32_t=no 9042 fi 9043 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9044 fi 9045 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5 9046 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6 9047 if test $ac_cv_type_uint32_t = yes; then 9048 : 9049 else 9050 9051 cat >>confdefs.h <<_ACEOF 9052 #define uint32_t unsigned long 9053 _ACEOF 9054 9055 fi 9056 9057 fi 9058 if test "$dc_cv_name" = "long_long"; then 9059 echo "$as_me:$LINENO: checking for uint32_t" >&5 9060 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6 9061 if test "${ac_cv_type_uint32_t+set}" = set; then 9062 echo $ECHO_N "(cached) $ECHO_C" >&6 9063 else 9064 cat >conftest.$ac_ext <<_ACEOF 9065 /* confdefs.h. */ 9066 _ACEOF 9067 cat confdefs.h >>conftest.$ac_ext 9068 cat >>conftest.$ac_ext <<_ACEOF 9069 /* end confdefs.h. */ 9070 $ac_includes_default 9071 int 9072 main () 9073 { 9074 if ((uint32_t *) 0) 9075 return 0; 9076 if (sizeof (uint32_t)) 9077 return 0; 9078 ; 9079 return 0; 9080 } 9081 _ACEOF 9082 rm -f conftest.$ac_objext 9083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9084 (eval $ac_compile) 2>conftest.er1 9085 ac_status=$? 9086 grep -v '^ *+' conftest.er1 >conftest.err 9087 rm -f conftest.er1 9088 cat conftest.err >&5 9089 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9090 (exit $ac_status); } && 9091 { ac_try='test -z "$ac_c_werror_flag" 9092 || test ! -s conftest.err' 9093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9094 (eval $ac_try) 2>&5 9095 ac_status=$? 9096 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9097 (exit $ac_status); }; } && 9098 { ac_try='test -s conftest.$ac_objext' 9099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9100 (eval $ac_try) 2>&5 9101 ac_status=$? 9102 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9103 (exit $ac_status); }; }; then 9104 ac_cv_type_uint32_t=yes 9105 else 9106 echo "$as_me: failed program was:" >&5 9107 sed 's/^/| /' conftest.$ac_ext >&5 9108 9109 ac_cv_type_uint32_t=no 9110 fi 9111 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9112 fi 9113 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5 9114 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6 9115 if test $ac_cv_type_uint32_t = yes; then 9116 : 9117 else 9118 9119 cat >>confdefs.h <<_ACEOF 9120 #define uint32_t unsigned long long 9121 _ACEOF 9122 9123 fi 9124 9125 fi 9126 if test "$dc_cv_name" = "short"; then 9127 echo "$as_me:$LINENO: checking for uint32_t" >&5 9128 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6 9129 if test "${ac_cv_type_uint32_t+set}" = set; then 9130 echo $ECHO_N "(cached) $ECHO_C" >&6 9131 else 9132 cat >conftest.$ac_ext <<_ACEOF 9133 /* confdefs.h. */ 9134 _ACEOF 9135 cat confdefs.h >>conftest.$ac_ext 9136 cat >>conftest.$ac_ext <<_ACEOF 9137 /* end confdefs.h. */ 9138 $ac_includes_default 9139 int 9140 main () 9141 { 9142 if ((uint32_t *) 0) 9143 return 0; 9144 if (sizeof (uint32_t)) 9145 return 0; 9146 ; 9147 return 0; 9148 } 9149 _ACEOF 9150 rm -f conftest.$ac_objext 9151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9152 (eval $ac_compile) 2>conftest.er1 9153 ac_status=$? 9154 grep -v '^ *+' conftest.er1 >conftest.err 9155 rm -f conftest.er1 9156 cat conftest.err >&5 9157 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9158 (exit $ac_status); } && 9159 { ac_try='test -z "$ac_c_werror_flag" 9160 || test ! -s conftest.err' 9161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9162 (eval $ac_try) 2>&5 9163 ac_status=$? 9164 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9165 (exit $ac_status); }; } && 9166 { ac_try='test -s conftest.$ac_objext' 9167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9168 (eval $ac_try) 2>&5 9169 ac_status=$? 9170 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9171 (exit $ac_status); }; }; then 9172 ac_cv_type_uint32_t=yes 9173 else 9174 echo "$as_me: failed program was:" >&5 9175 sed 's/^/| /' conftest.$ac_ext >&5 9176 9177 ac_cv_type_uint32_t=no 9178 fi 9179 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9180 fi 9181 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5 9182 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6 9183 if test $ac_cv_type_uint32_t = yes; then 9184 : 9185 else 9186 9187 cat >>confdefs.h <<_ACEOF 9188 #define uint32_t unsigned short 9189 _ACEOF 9190 9191 fi 9192 9193 fi 9194 FOUND=1 9195 break 9196 fi 9197 done 9198 9199 9200 if test -z "$ac_cv_sizeof_long"; then 9201 echo "$as_me:$LINENO: checking for inline" >&5 9202 echo $ECHO_N "checking for inline... $ECHO_C" >&6 9203 if test "${ac_cv_c_inline+set}" = set; then 9204 echo $ECHO_N "(cached) $ECHO_C" >&6 9205 else 9206 ac_cv_c_inline=no 9207 for ac_kw in inline __inline__ __inline; do 9208 cat >conftest.$ac_ext <<_ACEOF 9209 /* confdefs.h. */ 9210 _ACEOF 9211 cat confdefs.h >>conftest.$ac_ext 9212 cat >>conftest.$ac_ext <<_ACEOF 9213 /* end confdefs.h. */ 9214 #ifndef __cplusplus 9215 typedef int foo_t; 9216 static $ac_kw foo_t static_foo () {return 0; } 9217 $ac_kw foo_t foo () {return 0; } 9218 #endif 9219 9220 _ACEOF 9221 rm -f conftest.$ac_objext 9222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9223 (eval $ac_compile) 2>conftest.er1 9224 ac_status=$? 9225 grep -v '^ *+' conftest.er1 >conftest.err 9226 rm -f conftest.er1 9227 cat conftest.err >&5 9228 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9229 (exit $ac_status); } && 9230 { ac_try='test -z "$ac_c_werror_flag" 9231 || test ! -s conftest.err' 9232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9233 (eval $ac_try) 2>&5 9234 ac_status=$? 9235 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9236 (exit $ac_status); }; } && 9237 { ac_try='test -s conftest.$ac_objext' 9238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9239 (eval $ac_try) 2>&5 9240 ac_status=$? 9241 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9242 (exit $ac_status); }; }; then 9243 ac_cv_c_inline=$ac_kw; break 9244 else 9245 echo "$as_me: failed program was:" >&5 9246 sed 's/^/| /' conftest.$ac_ext >&5 9247 9248 fi 9249 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9250 done 9251 9252 fi 9253 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 9254 echo "${ECHO_T}$ac_cv_c_inline" >&6 9255 9256 9257 case $ac_cv_c_inline in 9258 inline | yes) ;; 9259 *) 9260 case $ac_cv_c_inline in 9261 no) ac_val=;; 9262 *) ac_val=$ac_cv_c_inline;; 9263 esac 9264 cat >>confdefs.h <<_ACEOF 9265 #ifndef __cplusplus 9266 #define inline $ac_val 9267 #endif 9268 _ACEOF 9269 ;; 9270 esac 9271 9272 echo "$as_me:$LINENO: checking for long long" >&5 9273 echo $ECHO_N "checking for long long... $ECHO_C" >&6 9274 if test "${ac_cv_type_long_long+set}" = set; then 9275 echo $ECHO_N "(cached) $ECHO_C" >&6 9276 else 9277 cat >conftest.$ac_ext <<_ACEOF 9278 /* confdefs.h. */ 9279 _ACEOF 9280 cat confdefs.h >>conftest.$ac_ext 9281 cat >>conftest.$ac_ext <<_ACEOF 9282 /* end confdefs.h. */ 9283 $ac_includes_default 9284 int 9285 main () 9286 { 9287 if ((long long *) 0) 9288 return 0; 9289 if (sizeof (long long)) 9290 return 0; 9291 ; 9292 return 0; 9293 } 9294 _ACEOF 9295 rm -f conftest.$ac_objext 9296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9297 (eval $ac_compile) 2>conftest.er1 9298 ac_status=$? 9299 grep -v '^ *+' conftest.er1 >conftest.err 9300 rm -f conftest.er1 9301 cat conftest.err >&5 9302 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9303 (exit $ac_status); } && 9304 { ac_try='test -z "$ac_c_werror_flag" 9305 || test ! -s conftest.err' 9306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9307 (eval $ac_try) 2>&5 9308 ac_status=$? 9309 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9310 (exit $ac_status); }; } && 9311 { ac_try='test -s conftest.$ac_objext' 9312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9313 (eval $ac_try) 2>&5 9314 ac_status=$? 9315 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9316 (exit $ac_status); }; }; then 9317 ac_cv_type_long_long=yes 9318 else 9319 echo "$as_me: failed program was:" >&5 9320 sed 's/^/| /' conftest.$ac_ext >&5 9321 9322 ac_cv_type_long_long=no 9323 fi 9324 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9325 fi 9326 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 9327 echo "${ECHO_T}$ac_cv_type_long_long" >&6 9328 9329 echo "$as_me:$LINENO: checking size of long long" >&5 9330 echo $ECHO_N "checking size of long long... $ECHO_C" >&6 9331 if test "${ac_cv_sizeof_long_long+set}" = set; then 9332 echo $ECHO_N "(cached) $ECHO_C" >&6 9333 else 9334 if test "$ac_cv_type_long_long" = yes; then 9335 # The cast to unsigned long works around a bug in the HP C Compiler 9336 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 9337 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 9338 # This bug is HP SR number 8606223364. 9339 if test "$cross_compiling" = yes; then 9340 # Depending upon the size, compute the lo and hi bounds. 9341 cat >conftest.$ac_ext <<_ACEOF 9342 /* confdefs.h. */ 9343 _ACEOF 9344 cat confdefs.h >>conftest.$ac_ext 9345 cat >>conftest.$ac_ext <<_ACEOF 9346 /* end confdefs.h. */ 9347 $ac_includes_default 9348 int 9349 main () 9350 { 9351 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; 9352 test_array [0] = 0 9353 9354 ; 9355 return 0; 9356 } 9357 _ACEOF 9358 rm -f conftest.$ac_objext 9359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9360 (eval $ac_compile) 2>conftest.er1 9361 ac_status=$? 9362 grep -v '^ *+' conftest.er1 >conftest.err 9363 rm -f conftest.er1 9364 cat conftest.err >&5 9365 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9366 (exit $ac_status); } && 9367 { ac_try='test -z "$ac_c_werror_flag" 9368 || test ! -s conftest.err' 9369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9370 (eval $ac_try) 2>&5 9371 ac_status=$? 9372 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9373 (exit $ac_status); }; } && 9374 { ac_try='test -s conftest.$ac_objext' 9375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9376 (eval $ac_try) 2>&5 9377 ac_status=$? 9378 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9379 (exit $ac_status); }; }; then 9380 ac_lo=0 ac_mid=0 9381 while :; do 9382 cat >conftest.$ac_ext <<_ACEOF 9383 /* confdefs.h. */ 9384 _ACEOF 9385 cat confdefs.h >>conftest.$ac_ext 9386 cat >>conftest.$ac_ext <<_ACEOF 9387 /* end confdefs.h. */ 9388 $ac_includes_default 9389 int 9390 main () 9391 { 9392 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; 9393 test_array [0] = 0 9394 9395 ; 9396 return 0; 9397 } 9398 _ACEOF 9399 rm -f conftest.$ac_objext 9400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9401 (eval $ac_compile) 2>conftest.er1 9402 ac_status=$? 9403 grep -v '^ *+' conftest.er1 >conftest.err 9404 rm -f conftest.er1 9405 cat conftest.err >&5 9406 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9407 (exit $ac_status); } && 9408 { ac_try='test -z "$ac_c_werror_flag" 9409 || test ! -s conftest.err' 9410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9411 (eval $ac_try) 2>&5 9412 ac_status=$? 9413 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9414 (exit $ac_status); }; } && 9415 { ac_try='test -s conftest.$ac_objext' 9416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9417 (eval $ac_try) 2>&5 9418 ac_status=$? 9419 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9420 (exit $ac_status); }; }; then 9421 ac_hi=$ac_mid; break 9422 else 9423 echo "$as_me: failed program was:" >&5 9424 sed 's/^/| /' conftest.$ac_ext >&5 9425 9426 ac_lo=`expr $ac_mid + 1` 9427 if test $ac_lo -le $ac_mid; then 9428 ac_lo= ac_hi= 9429 break 9430 fi 9431 ac_mid=`expr 2 '*' $ac_mid + 1` 9432 fi 9433 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9434 done 9435 else 9436 echo "$as_me: failed program was:" >&5 9437 sed 's/^/| /' conftest.$ac_ext >&5 9438 9439 cat >conftest.$ac_ext <<_ACEOF 9440 /* confdefs.h. */ 9441 _ACEOF 9442 cat confdefs.h >>conftest.$ac_ext 9443 cat >>conftest.$ac_ext <<_ACEOF 9444 /* end confdefs.h. */ 9445 $ac_includes_default 9446 int 9447 main () 9448 { 9449 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; 9450 test_array [0] = 0 9451 9452 ; 9453 return 0; 9454 } 9455 _ACEOF 9456 rm -f conftest.$ac_objext 9457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9458 (eval $ac_compile) 2>conftest.er1 9459 ac_status=$? 9460 grep -v '^ *+' conftest.er1 >conftest.err 9461 rm -f conftest.er1 9462 cat conftest.err >&5 9463 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9464 (exit $ac_status); } && 9465 { ac_try='test -z "$ac_c_werror_flag" 9466 || test ! -s conftest.err' 9467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9468 (eval $ac_try) 2>&5 9469 ac_status=$? 9470 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9471 (exit $ac_status); }; } && 9472 { ac_try='test -s conftest.$ac_objext' 9473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9474 (eval $ac_try) 2>&5 9475 ac_status=$? 9476 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9477 (exit $ac_status); }; }; then 9478 ac_hi=-1 ac_mid=-1 9479 while :; do 9480 cat >conftest.$ac_ext <<_ACEOF 9481 /* confdefs.h. */ 9482 _ACEOF 9483 cat confdefs.h >>conftest.$ac_ext 9484 cat >>conftest.$ac_ext <<_ACEOF 9485 /* end confdefs.h. */ 9486 $ac_includes_default 9487 int 9488 main () 9489 { 9490 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; 9491 test_array [0] = 0 9492 9493 ; 9494 return 0; 9495 } 9496 _ACEOF 9497 rm -f conftest.$ac_objext 9498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9499 (eval $ac_compile) 2>conftest.er1 9500 ac_status=$? 9501 grep -v '^ *+' conftest.er1 >conftest.err 9502 rm -f conftest.er1 9503 cat conftest.err >&5 9504 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9505 (exit $ac_status); } && 9506 { ac_try='test -z "$ac_c_werror_flag" 9507 || test ! -s conftest.err' 9508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9509 (eval $ac_try) 2>&5 9510 ac_status=$? 9511 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9512 (exit $ac_status); }; } && 9513 { ac_try='test -s conftest.$ac_objext' 9514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9515 (eval $ac_try) 2>&5 9516 ac_status=$? 9517 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9518 (exit $ac_status); }; }; then 9519 ac_lo=$ac_mid; break 9520 else 9521 echo "$as_me: failed program was:" >&5 9522 sed 's/^/| /' conftest.$ac_ext >&5 9523 9524 ac_hi=`expr '(' $ac_mid ')' - 1` 9525 if test $ac_mid -le $ac_hi; then 9526 ac_lo= ac_hi= 9527 break 9528 fi 9529 ac_mid=`expr 2 '*' $ac_mid` 9530 fi 9531 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9532 done 9533 else 9534 echo "$as_me: failed program was:" >&5 9535 sed 's/^/| /' conftest.$ac_ext >&5 9536 9537 ac_lo= ac_hi= 9538 fi 9539 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9540 fi 9541 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9542 # Binary search between lo and hi bounds. 9543 while test "x$ac_lo" != "x$ac_hi"; do 9544 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 9545 cat >conftest.$ac_ext <<_ACEOF 9546 /* confdefs.h. */ 9547 _ACEOF 9548 cat confdefs.h >>conftest.$ac_ext 9549 cat >>conftest.$ac_ext <<_ACEOF 9550 /* end confdefs.h. */ 9551 $ac_includes_default 9552 int 9553 main () 9554 { 9555 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; 9556 test_array [0] = 0 9557 9558 ; 9559 return 0; 9560 } 9561 _ACEOF 9562 rm -f conftest.$ac_objext 9563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9564 (eval $ac_compile) 2>conftest.er1 9565 ac_status=$? 9566 grep -v '^ *+' conftest.er1 >conftest.err 9567 rm -f conftest.er1 9568 cat conftest.err >&5 9569 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9570 (exit $ac_status); } && 9571 { ac_try='test -z "$ac_c_werror_flag" 9572 || test ! -s conftest.err' 9573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9574 (eval $ac_try) 2>&5 9575 ac_status=$? 9576 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9577 (exit $ac_status); }; } && 9578 { ac_try='test -s conftest.$ac_objext' 9579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9580 (eval $ac_try) 2>&5 9581 ac_status=$? 9582 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9583 (exit $ac_status); }; }; then 9584 ac_hi=$ac_mid 9585 else 9586 echo "$as_me: failed program was:" >&5 9587 sed 's/^/| /' conftest.$ac_ext >&5 9588 9589 ac_lo=`expr '(' $ac_mid ')' + 1` 9590 fi 9591 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9592 done 9593 case $ac_lo in 9594 ?*) ac_cv_sizeof_long_long=$ac_lo;; 9595 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 9596 See \`config.log' for more details." >&5 9597 echo "$as_me: error: cannot compute sizeof (long long), 77 9598 See \`config.log' for more details." >&2;} 9599 { (exit 1); exit 1; }; } ;; 9600 esac 9601 else 9602 if test "$cross_compiling" = yes; then 9603 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 9604 See \`config.log' for more details." >&5 9605 echo "$as_me: error: cannot run test program while cross compiling 9606 See \`config.log' for more details." >&2;} 9607 { (exit 1); exit 1; }; } 9608 else 9609 cat >conftest.$ac_ext <<_ACEOF 9610 /* confdefs.h. */ 9611 _ACEOF 9612 cat confdefs.h >>conftest.$ac_ext 9613 cat >>conftest.$ac_ext <<_ACEOF 9614 /* end confdefs.h. */ 9615 $ac_includes_default 9616 long longval () { return (long) (sizeof (long long)); } 9617 unsigned long ulongval () { return (long) (sizeof (long long)); } 9618 #include <stdio.h> 9619 #include <stdlib.h> 9620 int 9621 main () 9622 { 9623 9624 FILE *f = fopen ("conftest.val", "w"); 9625 if (! f) 9626 exit (1); 9627 if (((long) (sizeof (long long))) < 0) 9628 { 9629 long i = longval (); 9630 if (i != ((long) (sizeof (long long)))) 9631 exit (1); 9632 fprintf (f, "%ld\n", i); 9633 } 9634 else 9635 { 9636 unsigned long i = ulongval (); 9637 if (i != ((long) (sizeof (long long)))) 9638 exit (1); 9639 fprintf (f, "%lu\n", i); 9640 } 9641 exit (ferror (f) || fclose (f) != 0); 9642 9643 ; 9644 return 0; 9645 } 9646 _ACEOF 9647 rm -f conftest$ac_exeext 9648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9649 (eval $ac_link) 2>&5 9650 ac_status=$? 9651 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9652 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 9653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9654 (eval $ac_try) 2>&5 9655 ac_status=$? 9656 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9657 (exit $ac_status); }; }; then 9658 ac_cv_sizeof_long_long=`cat conftest.val` 9659 else 9660 echo "$as_me: program exited with status $ac_status" >&5 9661 echo "$as_me: failed program was:" >&5 9662 sed 's/^/| /' conftest.$ac_ext >&5 9663 9664 ( exit $ac_status ) 9665 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 9666 See \`config.log' for more details." >&5 9667 echo "$as_me: error: cannot compute sizeof (long long), 77 9668 See \`config.log' for more details." >&2;} 9669 { (exit 1); exit 1; }; } 9670 fi 9671 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 9672 fi 9673 fi 9674 rm -f conftest.val 9675 else 9676 ac_cv_sizeof_long_long=0 9677 fi 9678 fi 9679 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 9680 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 9681 cat >>confdefs.h <<_ACEOF 9682 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long 9683 _ACEOF 9684 9685 9686 echo "$as_me:$LINENO: checking for long" >&5 9687 echo $ECHO_N "checking for long... $ECHO_C" >&6 9688 if test "${ac_cv_type_long+set}" = set; then 9689 echo $ECHO_N "(cached) $ECHO_C" >&6 9690 else 9691 cat >conftest.$ac_ext <<_ACEOF 9692 /* confdefs.h. */ 9693 _ACEOF 9694 cat confdefs.h >>conftest.$ac_ext 9695 cat >>conftest.$ac_ext <<_ACEOF 9696 /* end confdefs.h. */ 9697 $ac_includes_default 9698 int 9699 main () 9700 { 9701 if ((long *) 0) 9702 return 0; 9703 if (sizeof (long)) 9704 return 0; 9705 ; 9706 return 0; 9707 } 9708 _ACEOF 9709 rm -f conftest.$ac_objext 9710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9711 (eval $ac_compile) 2>conftest.er1 9712 ac_status=$? 9713 grep -v '^ *+' conftest.er1 >conftest.err 9714 rm -f conftest.er1 9715 cat conftest.err >&5 9716 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9717 (exit $ac_status); } && 9718 { ac_try='test -z "$ac_c_werror_flag" 9719 || test ! -s conftest.err' 9720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9721 (eval $ac_try) 2>&5 9722 ac_status=$? 9723 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9724 (exit $ac_status); }; } && 9725 { ac_try='test -s conftest.$ac_objext' 9726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9727 (eval $ac_try) 2>&5 9728 ac_status=$? 9729 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9730 (exit $ac_status); }; }; then 9731 ac_cv_type_long=yes 9732 else 9733 echo "$as_me: failed program was:" >&5 9734 sed 's/^/| /' conftest.$ac_ext >&5 9735 9736 ac_cv_type_long=no 9737 fi 9738 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9739 fi 9740 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 9741 echo "${ECHO_T}$ac_cv_type_long" >&6 9742 9743 echo "$as_me:$LINENO: checking size of long" >&5 9744 echo $ECHO_N "checking size of long... $ECHO_C" >&6 9745 if test "${ac_cv_sizeof_long+set}" = set; then 9746 echo $ECHO_N "(cached) $ECHO_C" >&6 9747 else 9748 if test "$ac_cv_type_long" = yes; then 9749 # The cast to unsigned long works around a bug in the HP C Compiler 9750 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 9751 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 9752 # This bug is HP SR number 8606223364. 9753 if test "$cross_compiling" = yes; then 9754 # Depending upon the size, compute the lo and hi bounds. 9755 cat >conftest.$ac_ext <<_ACEOF 9756 /* confdefs.h. */ 9757 _ACEOF 9758 cat confdefs.h >>conftest.$ac_ext 9759 cat >>conftest.$ac_ext <<_ACEOF 9760 /* end confdefs.h. */ 9761 $ac_includes_default 9762 int 9763 main () 9764 { 9765 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; 9766 test_array [0] = 0 9767 9768 ; 9769 return 0; 9770 } 9771 _ACEOF 9772 rm -f conftest.$ac_objext 9773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9774 (eval $ac_compile) 2>conftest.er1 9775 ac_status=$? 9776 grep -v '^ *+' conftest.er1 >conftest.err 9777 rm -f conftest.er1 9778 cat conftest.err >&5 9779 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9780 (exit $ac_status); } && 9781 { ac_try='test -z "$ac_c_werror_flag" 9782 || test ! -s conftest.err' 9783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9784 (eval $ac_try) 2>&5 9785 ac_status=$? 9786 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9787 (exit $ac_status); }; } && 9788 { ac_try='test -s conftest.$ac_objext' 9789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9790 (eval $ac_try) 2>&5 9791 ac_status=$? 9792 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9793 (exit $ac_status); }; }; then 9794 ac_lo=0 ac_mid=0 9795 while :; do 9796 cat >conftest.$ac_ext <<_ACEOF 9797 /* confdefs.h. */ 9798 _ACEOF 9799 cat confdefs.h >>conftest.$ac_ext 9800 cat >>conftest.$ac_ext <<_ACEOF 9801 /* end confdefs.h. */ 9802 $ac_includes_default 9803 int 9804 main () 9805 { 9806 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; 9807 test_array [0] = 0 9808 9809 ; 9810 return 0; 9811 } 9812 _ACEOF 9813 rm -f conftest.$ac_objext 9814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9815 (eval $ac_compile) 2>conftest.er1 9816 ac_status=$? 9817 grep -v '^ *+' conftest.er1 >conftest.err 9818 rm -f conftest.er1 9819 cat conftest.err >&5 9820 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9821 (exit $ac_status); } && 9822 { ac_try='test -z "$ac_c_werror_flag" 9823 || test ! -s conftest.err' 9824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9825 (eval $ac_try) 2>&5 9826 ac_status=$? 9827 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9828 (exit $ac_status); }; } && 9829 { ac_try='test -s conftest.$ac_objext' 9830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9831 (eval $ac_try) 2>&5 9832 ac_status=$? 9833 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9834 (exit $ac_status); }; }; then 9835 ac_hi=$ac_mid; break 9836 else 9837 echo "$as_me: failed program was:" >&5 9838 sed 's/^/| /' conftest.$ac_ext >&5 9839 9840 ac_lo=`expr $ac_mid + 1` 9841 if test $ac_lo -le $ac_mid; then 9842 ac_lo= ac_hi= 9843 break 9844 fi 9845 ac_mid=`expr 2 '*' $ac_mid + 1` 9846 fi 9847 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9848 done 9849 else 9850 echo "$as_me: failed program was:" >&5 9851 sed 's/^/| /' conftest.$ac_ext >&5 9852 9853 cat >conftest.$ac_ext <<_ACEOF 9854 /* confdefs.h. */ 9855 _ACEOF 9856 cat confdefs.h >>conftest.$ac_ext 9857 cat >>conftest.$ac_ext <<_ACEOF 9858 /* end confdefs.h. */ 9859 $ac_includes_default 9860 int 9861 main () 9862 { 9863 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; 9864 test_array [0] = 0 9865 9866 ; 9867 return 0; 9868 } 9869 _ACEOF 9870 rm -f conftest.$ac_objext 9871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9872 (eval $ac_compile) 2>conftest.er1 9873 ac_status=$? 9874 grep -v '^ *+' conftest.er1 >conftest.err 9875 rm -f conftest.er1 9876 cat conftest.err >&5 9877 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9878 (exit $ac_status); } && 9879 { ac_try='test -z "$ac_c_werror_flag" 9880 || test ! -s conftest.err' 9881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9882 (eval $ac_try) 2>&5 9883 ac_status=$? 9884 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9885 (exit $ac_status); }; } && 9886 { ac_try='test -s conftest.$ac_objext' 9887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9888 (eval $ac_try) 2>&5 9889 ac_status=$? 9890 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9891 (exit $ac_status); }; }; then 9892 ac_hi=-1 ac_mid=-1 9893 while :; do 9894 cat >conftest.$ac_ext <<_ACEOF 9895 /* confdefs.h. */ 9896 _ACEOF 9897 cat confdefs.h >>conftest.$ac_ext 9898 cat >>conftest.$ac_ext <<_ACEOF 9899 /* end confdefs.h. */ 9900 $ac_includes_default 9901 int 9902 main () 9903 { 9904 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; 9905 test_array [0] = 0 9906 9907 ; 9908 return 0; 9909 } 9910 _ACEOF 9911 rm -f conftest.$ac_objext 9912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9913 (eval $ac_compile) 2>conftest.er1 9914 ac_status=$? 9915 grep -v '^ *+' conftest.er1 >conftest.err 9916 rm -f conftest.er1 9917 cat conftest.err >&5 9918 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9919 (exit $ac_status); } && 9920 { ac_try='test -z "$ac_c_werror_flag" 9921 || test ! -s conftest.err' 9922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9923 (eval $ac_try) 2>&5 9924 ac_status=$? 9925 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9926 (exit $ac_status); }; } && 9927 { ac_try='test -s conftest.$ac_objext' 9928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9929 (eval $ac_try) 2>&5 9930 ac_status=$? 9931 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9932 (exit $ac_status); }; }; then 9933 ac_lo=$ac_mid; break 9934 else 9935 echo "$as_me: failed program was:" >&5 9936 sed 's/^/| /' conftest.$ac_ext >&5 9937 9938 ac_hi=`expr '(' $ac_mid ')' - 1` 9939 if test $ac_mid -le $ac_hi; then 9940 ac_lo= ac_hi= 9941 break 9942 fi 9943 ac_mid=`expr 2 '*' $ac_mid` 9944 fi 9945 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9946 done 9947 else 9948 echo "$as_me: failed program was:" >&5 9949 sed 's/^/| /' conftest.$ac_ext >&5 9950 9951 ac_lo= ac_hi= 9952 fi 9953 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9954 fi 9955 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9956 # Binary search between lo and hi bounds. 9957 while test "x$ac_lo" != "x$ac_hi"; do 9958 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 9959 cat >conftest.$ac_ext <<_ACEOF 9960 /* confdefs.h. */ 9961 _ACEOF 9962 cat confdefs.h >>conftest.$ac_ext 9963 cat >>conftest.$ac_ext <<_ACEOF 9964 /* end confdefs.h. */ 9965 $ac_includes_default 9966 int 9967 main () 9968 { 9969 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; 9970 test_array [0] = 0 9971 9972 ; 9973 return 0; 9974 } 9975 _ACEOF 9976 rm -f conftest.$ac_objext 9977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9978 (eval $ac_compile) 2>conftest.er1 9979 ac_status=$? 9980 grep -v '^ *+' conftest.er1 >conftest.err 9981 rm -f conftest.er1 9982 cat conftest.err >&5 9983 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9984 (exit $ac_status); } && 9985 { ac_try='test -z "$ac_c_werror_flag" 9986 || test ! -s conftest.err' 9987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9988 (eval $ac_try) 2>&5 9989 ac_status=$? 9990 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9991 (exit $ac_status); }; } && 9992 { ac_try='test -s conftest.$ac_objext' 9993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9994 (eval $ac_try) 2>&5 9995 ac_status=$? 9996 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9997 (exit $ac_status); }; }; then 9998 ac_hi=$ac_mid 9999 else 10000 echo "$as_me: failed program was:" >&5 10001 sed 's/^/| /' conftest.$ac_ext >&5 10002 10003 ac_lo=`expr '(' $ac_mid ')' + 1` 10004 fi 10005 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10006 done 10007 case $ac_lo in 10008 ?*) ac_cv_sizeof_long=$ac_lo;; 10009 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 10010 See \`config.log' for more details." >&5 10011 echo "$as_me: error: cannot compute sizeof (long), 77 10012 See \`config.log' for more details." >&2;} 10013 { (exit 1); exit 1; }; } ;; 10014 esac 10015 else 10016 if test "$cross_compiling" = yes; then 10017 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 10018 See \`config.log' for more details." >&5 10019 echo "$as_me: error: cannot run test program while cross compiling 10020 See \`config.log' for more details." >&2;} 10021 { (exit 1); exit 1; }; } 10022 else 10023 cat >conftest.$ac_ext <<_ACEOF 10024 /* confdefs.h. */ 10025 _ACEOF 10026 cat confdefs.h >>conftest.$ac_ext 10027 cat >>conftest.$ac_ext <<_ACEOF 10028 /* end confdefs.h. */ 10029 $ac_includes_default 10030 long longval () { return (long) (sizeof (long)); } 10031 unsigned long ulongval () { return (long) (sizeof (long)); } 10032 #include <stdio.h> 10033 #include <stdlib.h> 10034 int 10035 main () 10036 { 10037 10038 FILE *f = fopen ("conftest.val", "w"); 10039 if (! f) 10040 exit (1); 10041 if (((long) (sizeof (long))) < 0) 10042 { 10043 long i = longval (); 10044 if (i != ((long) (sizeof (long)))) 10045 exit (1); 10046 fprintf (f, "%ld\n", i); 10047 } 10048 else 10049 { 10050 unsigned long i = ulongval (); 10051 if (i != ((long) (sizeof (long)))) 10052 exit (1); 10053 fprintf (f, "%lu\n", i); 10054 } 10055 exit (ferror (f) || fclose (f) != 0); 10056 10057 ; 10058 return 0; 10059 } 10060 _ACEOF 10061 rm -f conftest$ac_exeext 10062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10063 (eval $ac_link) 2>&5 10064 ac_status=$? 10065 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10066 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 10067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10068 (eval $ac_try) 2>&5 10069 ac_status=$? 10070 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10071 (exit $ac_status); }; }; then 10072 ac_cv_sizeof_long=`cat conftest.val` 10073 else 10074 echo "$as_me: program exited with status $ac_status" >&5 10075 echo "$as_me: failed program was:" >&5 10076 sed 's/^/| /' conftest.$ac_ext >&5 10077 10078 ( exit $ac_status ) 10079 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 10080 See \`config.log' for more details." >&5 10081 echo "$as_me: error: cannot compute sizeof (long), 77 10082 See \`config.log' for more details." >&2;} 10083 { (exit 1); exit 1; }; } 10084 fi 10085 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 10086 fi 10087 fi 10088 rm -f conftest.val 10089 else 10090 ac_cv_sizeof_long=0 10091 fi 10092 fi 10093 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 10094 echo "${ECHO_T}$ac_cv_sizeof_long" >&6 10095 cat >>confdefs.h <<_ACEOF 10096 #define SIZEOF_LONG $ac_cv_sizeof_long 10097 _ACEOF 10098 10099 10100 echo "$as_me:$LINENO: checking for int" >&5 10101 echo $ECHO_N "checking for int... $ECHO_C" >&6 10102 if test "${ac_cv_type_int+set}" = set; then 10103 echo $ECHO_N "(cached) $ECHO_C" >&6 10104 else 10105 cat >conftest.$ac_ext <<_ACEOF 10106 /* confdefs.h. */ 10107 _ACEOF 10108 cat confdefs.h >>conftest.$ac_ext 10109 cat >>conftest.$ac_ext <<_ACEOF 10110 /* end confdefs.h. */ 10111 $ac_includes_default 10112 int 10113 main () 10114 { 10115 if ((int *) 0) 10116 return 0; 10117 if (sizeof (int)) 10118 return 0; 10119 ; 10120 return 0; 10121 } 10122 _ACEOF 10123 rm -f conftest.$ac_objext 10124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10125 (eval $ac_compile) 2>conftest.er1 10126 ac_status=$? 10127 grep -v '^ *+' conftest.er1 >conftest.err 10128 rm -f conftest.er1 10129 cat conftest.err >&5 10130 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10131 (exit $ac_status); } && 10132 { ac_try='test -z "$ac_c_werror_flag" 10133 || test ! -s conftest.err' 10134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10135 (eval $ac_try) 2>&5 10136 ac_status=$? 10137 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10138 (exit $ac_status); }; } && 10139 { ac_try='test -s conftest.$ac_objext' 10140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10141 (eval $ac_try) 2>&5 10142 ac_status=$? 10143 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10144 (exit $ac_status); }; }; then 10145 ac_cv_type_int=yes 10146 else 10147 echo "$as_me: failed program was:" >&5 10148 sed 's/^/| /' conftest.$ac_ext >&5 10149 10150 ac_cv_type_int=no 10151 fi 10152 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10153 fi 10154 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 10155 echo "${ECHO_T}$ac_cv_type_int" >&6 10156 10157 echo "$as_me:$LINENO: checking size of int" >&5 10158 echo $ECHO_N "checking size of int... $ECHO_C" >&6 10159 if test "${ac_cv_sizeof_int+set}" = set; then 10160 echo $ECHO_N "(cached) $ECHO_C" >&6 10161 else 10162 if test "$ac_cv_type_int" = yes; then 10163 # The cast to unsigned long works around a bug in the HP C Compiler 10164 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 10165 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 10166 # This bug is HP SR number 8606223364. 10167 if test "$cross_compiling" = yes; then 10168 # Depending upon the size, compute the lo and hi bounds. 10169 cat >conftest.$ac_ext <<_ACEOF 10170 /* confdefs.h. */ 10171 _ACEOF 10172 cat confdefs.h >>conftest.$ac_ext 10173 cat >>conftest.$ac_ext <<_ACEOF 10174 /* end confdefs.h. */ 10175 $ac_includes_default 10176 int 10177 main () 10178 { 10179 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; 10180 test_array [0] = 0 10181 10182 ; 10183 return 0; 10184 } 10185 _ACEOF 10186 rm -f conftest.$ac_objext 10187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10188 (eval $ac_compile) 2>conftest.er1 10189 ac_status=$? 10190 grep -v '^ *+' conftest.er1 >conftest.err 10191 rm -f conftest.er1 10192 cat conftest.err >&5 10193 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10194 (exit $ac_status); } && 10195 { ac_try='test -z "$ac_c_werror_flag" 10196 || test ! -s conftest.err' 10197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10198 (eval $ac_try) 2>&5 10199 ac_status=$? 10200 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10201 (exit $ac_status); }; } && 10202 { ac_try='test -s conftest.$ac_objext' 10203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10204 (eval $ac_try) 2>&5 10205 ac_status=$? 10206 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10207 (exit $ac_status); }; }; then 10208 ac_lo=0 ac_mid=0 10209 while :; do 10210 cat >conftest.$ac_ext <<_ACEOF 10211 /* confdefs.h. */ 10212 _ACEOF 10213 cat confdefs.h >>conftest.$ac_ext 10214 cat >>conftest.$ac_ext <<_ACEOF 10215 /* end confdefs.h. */ 10216 $ac_includes_default 10217 int 10218 main () 10219 { 10220 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; 10221 test_array [0] = 0 10222 10223 ; 10224 return 0; 10225 } 10226 _ACEOF 10227 rm -f conftest.$ac_objext 10228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10229 (eval $ac_compile) 2>conftest.er1 10230 ac_status=$? 10231 grep -v '^ *+' conftest.er1 >conftest.err 10232 rm -f conftest.er1 10233 cat conftest.err >&5 10234 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10235 (exit $ac_status); } && 10236 { ac_try='test -z "$ac_c_werror_flag" 10237 || test ! -s conftest.err' 10238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10239 (eval $ac_try) 2>&5 10240 ac_status=$? 10241 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10242 (exit $ac_status); }; } && 10243 { ac_try='test -s conftest.$ac_objext' 10244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10245 (eval $ac_try) 2>&5 10246 ac_status=$? 10247 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10248 (exit $ac_status); }; }; then 10249 ac_hi=$ac_mid; break 10250 else 10251 echo "$as_me: failed program was:" >&5 10252 sed 's/^/| /' conftest.$ac_ext >&5 10253 10254 ac_lo=`expr $ac_mid + 1` 10255 if test $ac_lo -le $ac_mid; then 10256 ac_lo= ac_hi= 10257 break 10258 fi 10259 ac_mid=`expr 2 '*' $ac_mid + 1` 10260 fi 10261 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10262 done 10263 else 10264 echo "$as_me: failed program was:" >&5 10265 sed 's/^/| /' conftest.$ac_ext >&5 10266 10267 cat >conftest.$ac_ext <<_ACEOF 10268 /* confdefs.h. */ 10269 _ACEOF 10270 cat confdefs.h >>conftest.$ac_ext 10271 cat >>conftest.$ac_ext <<_ACEOF 10272 /* end confdefs.h. */ 10273 $ac_includes_default 10274 int 10275 main () 10276 { 10277 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; 10278 test_array [0] = 0 10279 10280 ; 10281 return 0; 10282 } 10283 _ACEOF 10284 rm -f conftest.$ac_objext 10285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10286 (eval $ac_compile) 2>conftest.er1 10287 ac_status=$? 10288 grep -v '^ *+' conftest.er1 >conftest.err 10289 rm -f conftest.er1 10290 cat conftest.err >&5 10291 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10292 (exit $ac_status); } && 10293 { ac_try='test -z "$ac_c_werror_flag" 10294 || test ! -s conftest.err' 10295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10296 (eval $ac_try) 2>&5 10297 ac_status=$? 10298 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10299 (exit $ac_status); }; } && 10300 { ac_try='test -s conftest.$ac_objext' 10301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10302 (eval $ac_try) 2>&5 10303 ac_status=$? 10304 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10305 (exit $ac_status); }; }; then 10306 ac_hi=-1 ac_mid=-1 10307 while :; do 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 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; 10319 test_array [0] = 0 10320 10321 ; 10322 return 0; 10323 } 10324 _ACEOF 10325 rm -f conftest.$ac_objext 10326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10327 (eval $ac_compile) 2>conftest.er1 10328 ac_status=$? 10329 grep -v '^ *+' conftest.er1 >conftest.err 10330 rm -f conftest.er1 10331 cat conftest.err >&5 10332 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10333 (exit $ac_status); } && 10334 { ac_try='test -z "$ac_c_werror_flag" 10335 || test ! -s conftest.err' 10336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10337 (eval $ac_try) 2>&5 10338 ac_status=$? 10339 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10340 (exit $ac_status); }; } && 10341 { ac_try='test -s conftest.$ac_objext' 10342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10343 (eval $ac_try) 2>&5 10344 ac_status=$? 10345 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10346 (exit $ac_status); }; }; then 10347 ac_lo=$ac_mid; break 10348 else 10349 echo "$as_me: failed program was:" >&5 10350 sed 's/^/| /' conftest.$ac_ext >&5 10351 10352 ac_hi=`expr '(' $ac_mid ')' - 1` 10353 if test $ac_mid -le $ac_hi; then 10354 ac_lo= ac_hi= 10355 break 10356 fi 10357 ac_mid=`expr 2 '*' $ac_mid` 10358 fi 10359 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10360 done 10361 else 10362 echo "$as_me: failed program was:" >&5 10363 sed 's/^/| /' conftest.$ac_ext >&5 10364 10365 ac_lo= ac_hi= 10366 fi 10367 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10368 fi 10369 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10370 # Binary search between lo and hi bounds. 10371 while test "x$ac_lo" != "x$ac_hi"; do 10372 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 10373 cat >conftest.$ac_ext <<_ACEOF 10374 /* confdefs.h. */ 10375 _ACEOF 10376 cat confdefs.h >>conftest.$ac_ext 10377 cat >>conftest.$ac_ext <<_ACEOF 10378 /* end confdefs.h. */ 10379 $ac_includes_default 10380 int 10381 main () 10382 { 10383 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; 10384 test_array [0] = 0 10385 10386 ; 10387 return 0; 10388 } 10389 _ACEOF 10390 rm -f conftest.$ac_objext 10391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10392 (eval $ac_compile) 2>conftest.er1 10393 ac_status=$? 10394 grep -v '^ *+' conftest.er1 >conftest.err 10395 rm -f conftest.er1 10396 cat conftest.err >&5 10397 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10398 (exit $ac_status); } && 10399 { ac_try='test -z "$ac_c_werror_flag" 10400 || test ! -s conftest.err' 10401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10402 (eval $ac_try) 2>&5 10403 ac_status=$? 10404 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10405 (exit $ac_status); }; } && 10406 { ac_try='test -s conftest.$ac_objext' 10407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10408 (eval $ac_try) 2>&5 10409 ac_status=$? 10410 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10411 (exit $ac_status); }; }; then 10412 ac_hi=$ac_mid 10413 else 10414 echo "$as_me: failed program was:" >&5 10415 sed 's/^/| /' conftest.$ac_ext >&5 10416 10417 ac_lo=`expr '(' $ac_mid ')' + 1` 10418 fi 10419 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10420 done 10421 case $ac_lo in 10422 ?*) ac_cv_sizeof_int=$ac_lo;; 10423 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 10424 See \`config.log' for more details." >&5 10425 echo "$as_me: error: cannot compute sizeof (int), 77 10426 See \`config.log' for more details." >&2;} 10427 { (exit 1); exit 1; }; } ;; 10428 esac 10429 else 10430 if test "$cross_compiling" = yes; then 10431 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 10432 See \`config.log' for more details." >&5 10433 echo "$as_me: error: cannot run test program while cross compiling 10434 See \`config.log' for more details." >&2;} 10435 { (exit 1); exit 1; }; } 10436 else 10437 cat >conftest.$ac_ext <<_ACEOF 10438 /* confdefs.h. */ 10439 _ACEOF 10440 cat confdefs.h >>conftest.$ac_ext 10441 cat >>conftest.$ac_ext <<_ACEOF 10442 /* end confdefs.h. */ 10443 $ac_includes_default 10444 long longval () { return (long) (sizeof (int)); } 10445 unsigned long ulongval () { return (long) (sizeof (int)); } 10446 #include <stdio.h> 10447 #include <stdlib.h> 10448 int 10449 main () 10450 { 10451 10452 FILE *f = fopen ("conftest.val", "w"); 10453 if (! f) 10454 exit (1); 10455 if (((long) (sizeof (int))) < 0) 10456 { 10457 long i = longval (); 10458 if (i != ((long) (sizeof (int)))) 10459 exit (1); 10460 fprintf (f, "%ld\n", i); 10461 } 10462 else 10463 { 10464 unsigned long i = ulongval (); 10465 if (i != ((long) (sizeof (int)))) 10466 exit (1); 10467 fprintf (f, "%lu\n", i); 10468 } 10469 exit (ferror (f) || fclose (f) != 0); 10470 10471 ; 10472 return 0; 10473 } 10474 _ACEOF 10475 rm -f conftest$ac_exeext 10476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10477 (eval $ac_link) 2>&5 10478 ac_status=$? 10479 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10480 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 10481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10482 (eval $ac_try) 2>&5 10483 ac_status=$? 10484 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10485 (exit $ac_status); }; }; then 10486 ac_cv_sizeof_int=`cat conftest.val` 10487 else 10488 echo "$as_me: program exited with status $ac_status" >&5 10489 echo "$as_me: failed program was:" >&5 10490 sed 's/^/| /' conftest.$ac_ext >&5 10491 10492 ( exit $ac_status ) 10493 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 10494 See \`config.log' for more details." >&5 10495 echo "$as_me: error: cannot compute sizeof (int), 77 10496 See \`config.log' for more details." >&2;} 10497 { (exit 1); exit 1; }; } 10498 fi 10499 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 10500 fi 10501 fi 10502 rm -f conftest.val 10503 else 10504 ac_cv_sizeof_int=0 10505 fi 10506 fi 10507 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 10508 echo "${ECHO_T}$ac_cv_sizeof_int" >&6 10509 cat >>confdefs.h <<_ACEOF 10510 #define SIZEOF_INT $ac_cv_sizeof_int 10511 _ACEOF 10512 10513 10514 echo "$as_me:$LINENO: checking for short" >&5 10515 echo $ECHO_N "checking for short... $ECHO_C" >&6 10516 if test "${ac_cv_type_short+set}" = set; then 10517 echo $ECHO_N "(cached) $ECHO_C" >&6 10518 else 10519 cat >conftest.$ac_ext <<_ACEOF 10520 /* confdefs.h. */ 10521 _ACEOF 10522 cat confdefs.h >>conftest.$ac_ext 10523 cat >>conftest.$ac_ext <<_ACEOF 10524 /* end confdefs.h. */ 10525 $ac_includes_default 10526 int 10527 main () 10528 { 10529 if ((short *) 0) 10530 return 0; 10531 if (sizeof (short)) 10532 return 0; 10533 ; 10534 return 0; 10535 } 10536 _ACEOF 10537 rm -f conftest.$ac_objext 10538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10539 (eval $ac_compile) 2>conftest.er1 10540 ac_status=$? 10541 grep -v '^ *+' conftest.er1 >conftest.err 10542 rm -f conftest.er1 10543 cat conftest.err >&5 10544 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10545 (exit $ac_status); } && 10546 { ac_try='test -z "$ac_c_werror_flag" 10547 || test ! -s conftest.err' 10548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10549 (eval $ac_try) 2>&5 10550 ac_status=$? 10551 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10552 (exit $ac_status); }; } && 10553 { ac_try='test -s conftest.$ac_objext' 10554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10555 (eval $ac_try) 2>&5 10556 ac_status=$? 10557 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10558 (exit $ac_status); }; }; then 10559 ac_cv_type_short=yes 10560 else 10561 echo "$as_me: failed program was:" >&5 10562 sed 's/^/| /' conftest.$ac_ext >&5 10563 10564 ac_cv_type_short=no 10565 fi 10566 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10567 fi 10568 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 10569 echo "${ECHO_T}$ac_cv_type_short" >&6 10570 10571 echo "$as_me:$LINENO: checking size of short" >&5 10572 echo $ECHO_N "checking size of short... $ECHO_C" >&6 10573 if test "${ac_cv_sizeof_short+set}" = set; then 10574 echo $ECHO_N "(cached) $ECHO_C" >&6 10575 else 10576 if test "$ac_cv_type_short" = yes; then 10577 # The cast to unsigned long works around a bug in the HP C Compiler 10578 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 10579 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 10580 # This bug is HP SR number 8606223364. 10581 if test "$cross_compiling" = yes; then 10582 # Depending upon the size, compute the lo and hi bounds. 10583 cat >conftest.$ac_ext <<_ACEOF 10584 /* confdefs.h. */ 10585 _ACEOF 10586 cat confdefs.h >>conftest.$ac_ext 10587 cat >>conftest.$ac_ext <<_ACEOF 10588 /* end confdefs.h. */ 10589 $ac_includes_default 10590 int 10591 main () 10592 { 10593 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; 10594 test_array [0] = 0 10595 10596 ; 10597 return 0; 10598 } 10599 _ACEOF 10600 rm -f conftest.$ac_objext 10601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10602 (eval $ac_compile) 2>conftest.er1 10603 ac_status=$? 10604 grep -v '^ *+' conftest.er1 >conftest.err 10605 rm -f conftest.er1 10606 cat conftest.err >&5 10607 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10608 (exit $ac_status); } && 10609 { ac_try='test -z "$ac_c_werror_flag" 10610 || test ! -s conftest.err' 10611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10612 (eval $ac_try) 2>&5 10613 ac_status=$? 10614 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10615 (exit $ac_status); }; } && 10616 { ac_try='test -s conftest.$ac_objext' 10617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10618 (eval $ac_try) 2>&5 10619 ac_status=$? 10620 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10621 (exit $ac_status); }; }; then 10622 ac_lo=0 ac_mid=0 10623 while :; do 10624 cat >conftest.$ac_ext <<_ACEOF 10625 /* confdefs.h. */ 10626 _ACEOF 10627 cat confdefs.h >>conftest.$ac_ext 10628 cat >>conftest.$ac_ext <<_ACEOF 10629 /* end confdefs.h. */ 10630 $ac_includes_default 10631 int 10632 main () 10633 { 10634 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; 10635 test_array [0] = 0 10636 10637 ; 10638 return 0; 10639 } 10640 _ACEOF 10641 rm -f conftest.$ac_objext 10642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10643 (eval $ac_compile) 2>conftest.er1 10644 ac_status=$? 10645 grep -v '^ *+' conftest.er1 >conftest.err 10646 rm -f conftest.er1 10647 cat conftest.err >&5 10648 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10649 (exit $ac_status); } && 10650 { ac_try='test -z "$ac_c_werror_flag" 10651 || test ! -s conftest.err' 10652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10653 (eval $ac_try) 2>&5 10654 ac_status=$? 10655 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10656 (exit $ac_status); }; } && 10657 { ac_try='test -s conftest.$ac_objext' 10658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10659 (eval $ac_try) 2>&5 10660 ac_status=$? 10661 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10662 (exit $ac_status); }; }; then 10663 ac_hi=$ac_mid; break 10664 else 10665 echo "$as_me: failed program was:" >&5 10666 sed 's/^/| /' conftest.$ac_ext >&5 10667 10668 ac_lo=`expr $ac_mid + 1` 10669 if test $ac_lo -le $ac_mid; then 10670 ac_lo= ac_hi= 10671 break 10672 fi 10673 ac_mid=`expr 2 '*' $ac_mid + 1` 10674 fi 10675 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10676 done 10677 else 10678 echo "$as_me: failed program was:" >&5 10679 sed 's/^/| /' conftest.$ac_ext >&5 10680 10681 cat >conftest.$ac_ext <<_ACEOF 10682 /* confdefs.h. */ 10683 _ACEOF 10684 cat confdefs.h >>conftest.$ac_ext 10685 cat >>conftest.$ac_ext <<_ACEOF 10686 /* end confdefs.h. */ 10687 $ac_includes_default 10688 int 10689 main () 10690 { 10691 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; 10692 test_array [0] = 0 10693 10694 ; 10695 return 0; 10696 } 10697 _ACEOF 10698 rm -f conftest.$ac_objext 10699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10700 (eval $ac_compile) 2>conftest.er1 10701 ac_status=$? 10702 grep -v '^ *+' conftest.er1 >conftest.err 10703 rm -f conftest.er1 10704 cat conftest.err >&5 10705 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10706 (exit $ac_status); } && 10707 { ac_try='test -z "$ac_c_werror_flag" 10708 || test ! -s conftest.err' 10709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10710 (eval $ac_try) 2>&5 10711 ac_status=$? 10712 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10713 (exit $ac_status); }; } && 10714 { ac_try='test -s conftest.$ac_objext' 10715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10716 (eval $ac_try) 2>&5 10717 ac_status=$? 10718 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10719 (exit $ac_status); }; }; then 10720 ac_hi=-1 ac_mid=-1 10721 while :; do 10722 cat >conftest.$ac_ext <<_ACEOF 10723 /* confdefs.h. */ 10724 _ACEOF 10725 cat confdefs.h >>conftest.$ac_ext 10726 cat >>conftest.$ac_ext <<_ACEOF 10727 /* end confdefs.h. */ 10728 $ac_includes_default 10729 int 10730 main () 10731 { 10732 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; 10733 test_array [0] = 0 10734 10735 ; 10736 return 0; 10737 } 10738 _ACEOF 10739 rm -f conftest.$ac_objext 10740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10741 (eval $ac_compile) 2>conftest.er1 10742 ac_status=$? 10743 grep -v '^ *+' conftest.er1 >conftest.err 10744 rm -f conftest.er1 10745 cat conftest.err >&5 10746 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10747 (exit $ac_status); } && 10748 { ac_try='test -z "$ac_c_werror_flag" 10749 || test ! -s conftest.err' 10750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10751 (eval $ac_try) 2>&5 10752 ac_status=$? 10753 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10754 (exit $ac_status); }; } && 10755 { ac_try='test -s conftest.$ac_objext' 10756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10757 (eval $ac_try) 2>&5 10758 ac_status=$? 10759 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10760 (exit $ac_status); }; }; then 10761 ac_lo=$ac_mid; break 10762 else 10763 echo "$as_me: failed program was:" >&5 10764 sed 's/^/| /' conftest.$ac_ext >&5 10765 10766 ac_hi=`expr '(' $ac_mid ')' - 1` 10767 if test $ac_mid -le $ac_hi; then 10768 ac_lo= ac_hi= 10769 break 10770 fi 10771 ac_mid=`expr 2 '*' $ac_mid` 10772 fi 10773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10774 done 10775 else 10776 echo "$as_me: failed program was:" >&5 10777 sed 's/^/| /' conftest.$ac_ext >&5 10778 10779 ac_lo= ac_hi= 10780 fi 10781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10782 fi 10783 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10784 # Binary search between lo and hi bounds. 10785 while test "x$ac_lo" != "x$ac_hi"; do 10786 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 10787 cat >conftest.$ac_ext <<_ACEOF 10788 /* confdefs.h. */ 10789 _ACEOF 10790 cat confdefs.h >>conftest.$ac_ext 10791 cat >>conftest.$ac_ext <<_ACEOF 10792 /* end confdefs.h. */ 10793 $ac_includes_default 10794 int 10795 main () 10796 { 10797 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; 10798 test_array [0] = 0 10799 10800 ; 10801 return 0; 10802 } 10803 _ACEOF 10804 rm -f conftest.$ac_objext 10805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10806 (eval $ac_compile) 2>conftest.er1 10807 ac_status=$? 10808 grep -v '^ *+' conftest.er1 >conftest.err 10809 rm -f conftest.er1 10810 cat conftest.err >&5 10811 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10812 (exit $ac_status); } && 10813 { ac_try='test -z "$ac_c_werror_flag" 10814 || test ! -s conftest.err' 10815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10816 (eval $ac_try) 2>&5 10817 ac_status=$? 10818 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10819 (exit $ac_status); }; } && 10820 { ac_try='test -s conftest.$ac_objext' 10821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10822 (eval $ac_try) 2>&5 10823 ac_status=$? 10824 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10825 (exit $ac_status); }; }; then 10826 ac_hi=$ac_mid 10827 else 10828 echo "$as_me: failed program was:" >&5 10829 sed 's/^/| /' conftest.$ac_ext >&5 10830 10831 ac_lo=`expr '(' $ac_mid ')' + 1` 10832 fi 10833 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10834 done 10835 case $ac_lo in 10836 ?*) ac_cv_sizeof_short=$ac_lo;; 10837 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 10838 See \`config.log' for more details." >&5 10839 echo "$as_me: error: cannot compute sizeof (short), 77 10840 See \`config.log' for more details." >&2;} 10841 { (exit 1); exit 1; }; } ;; 10842 esac 10843 else 10844 if test "$cross_compiling" = yes; then 10845 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 10846 See \`config.log' for more details." >&5 10847 echo "$as_me: error: cannot run test program while cross compiling 10848 See \`config.log' for more details." >&2;} 10849 { (exit 1); exit 1; }; } 10850 else 10851 cat >conftest.$ac_ext <<_ACEOF 10852 /* confdefs.h. */ 10853 _ACEOF 10854 cat confdefs.h >>conftest.$ac_ext 10855 cat >>conftest.$ac_ext <<_ACEOF 10856 /* end confdefs.h. */ 10857 $ac_includes_default 10858 long longval () { return (long) (sizeof (short)); } 10859 unsigned long ulongval () { return (long) (sizeof (short)); } 10860 #include <stdio.h> 10861 #include <stdlib.h> 10862 int 10863 main () 10864 { 10865 10866 FILE *f = fopen ("conftest.val", "w"); 10867 if (! f) 10868 exit (1); 10869 if (((long) (sizeof (short))) < 0) 10870 { 10871 long i = longval (); 10872 if (i != ((long) (sizeof (short)))) 10873 exit (1); 10874 fprintf (f, "%ld\n", i); 10875 } 10876 else 10877 { 10878 unsigned long i = ulongval (); 10879 if (i != ((long) (sizeof (short)))) 10880 exit (1); 10881 fprintf (f, "%lu\n", i); 10882 } 10883 exit (ferror (f) || fclose (f) != 0); 10884 10885 ; 10886 return 0; 10887 } 10888 _ACEOF 10889 rm -f conftest$ac_exeext 10890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10891 (eval $ac_link) 2>&5 10892 ac_status=$? 10893 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10894 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 10895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10896 (eval $ac_try) 2>&5 10897 ac_status=$? 10898 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10899 (exit $ac_status); }; }; then 10900 ac_cv_sizeof_short=`cat conftest.val` 10901 else 10902 echo "$as_me: program exited with status $ac_status" >&5 10903 echo "$as_me: failed program was:" >&5 10904 sed 's/^/| /' conftest.$ac_ext >&5 10905 10906 ( exit $ac_status ) 10907 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 10908 See \`config.log' for more details." >&5 10909 echo "$as_me: error: cannot compute sizeof (short), 77 10910 See \`config.log' for more details." >&2;} 10911 { (exit 1); exit 1; }; } 10912 fi 10913 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 10914 fi 10915 fi 10916 rm -f conftest.val 10917 else 10918 ac_cv_sizeof_short=0 10919 fi 10920 fi 10921 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 10922 echo "${ECHO_T}$ac_cv_sizeof_short" >&6 10923 cat >>confdefs.h <<_ACEOF 10924 #define SIZEOF_SHORT $ac_cv_sizeof_short 10925 _ACEOF 10926 10927 10928 fi 10929 FOUND=0 10930 for dc_cv_loop in \$ac_cv_sizeof_long_long \$ac_cv_sizeof_int \$ac_cv_sizeof_long \$ac_cv_sizeof_short; do 10931 dc_cv_size=`eval echo $dc_cv_loop` 10932 dc_cv_name=`echo $dc_cv_loop | sed s/\\\$ac_cv_sizeof_//` 10933 if test "$dc_cv_size" = "4"; then 10934 if test "$dc_cv_name" = "int"; then 10935 echo "$as_me:$LINENO: checking for int32_t" >&5 10936 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6 10937 if test "${ac_cv_type_int32_t+set}" = set; then 10938 echo $ECHO_N "(cached) $ECHO_C" >&6 10939 else 10940 cat >conftest.$ac_ext <<_ACEOF 10941 /* confdefs.h. */ 10942 _ACEOF 10943 cat confdefs.h >>conftest.$ac_ext 10944 cat >>conftest.$ac_ext <<_ACEOF 10945 /* end confdefs.h. */ 10946 $ac_includes_default 10947 int 10948 main () 10949 { 10950 if ((int32_t *) 0) 10951 return 0; 10952 if (sizeof (int32_t)) 10953 return 0; 10954 ; 10955 return 0; 10956 } 10957 _ACEOF 10958 rm -f conftest.$ac_objext 10959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10960 (eval $ac_compile) 2>conftest.er1 10961 ac_status=$? 10962 grep -v '^ *+' conftest.er1 >conftest.err 10963 rm -f conftest.er1 10964 cat conftest.err >&5 10965 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10966 (exit $ac_status); } && 10967 { ac_try='test -z "$ac_c_werror_flag" 10968 || test ! -s conftest.err' 10969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10970 (eval $ac_try) 2>&5 10971 ac_status=$? 10972 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10973 (exit $ac_status); }; } && 10974 { ac_try='test -s conftest.$ac_objext' 10975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10976 (eval $ac_try) 2>&5 10977 ac_status=$? 10978 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10979 (exit $ac_status); }; }; then 10980 ac_cv_type_int32_t=yes 10981 else 10982 echo "$as_me: failed program was:" >&5 10983 sed 's/^/| /' conftest.$ac_ext >&5 10984 10985 ac_cv_type_int32_t=no 10986 fi 10987 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10988 fi 10989 echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5 10990 echo "${ECHO_T}$ac_cv_type_int32_t" >&6 10991 if test $ac_cv_type_int32_t = yes; then 10992 : 10993 else 10994 10995 cat >>confdefs.h <<_ACEOF 10996 #define int32_t signed int 10997 _ACEOF 10998 10999 fi 11000 11001 fi 11002 if test "$dc_cv_name" = "long"; then 11003 echo "$as_me:$LINENO: checking for int32_t" >&5 11004 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6 11005 if test "${ac_cv_type_int32_t+set}" = set; then 11006 echo $ECHO_N "(cached) $ECHO_C" >&6 11007 else 11008 cat >conftest.$ac_ext <<_ACEOF 11009 /* confdefs.h. */ 11010 _ACEOF 11011 cat confdefs.h >>conftest.$ac_ext 11012 cat >>conftest.$ac_ext <<_ACEOF 11013 /* end confdefs.h. */ 11014 $ac_includes_default 11015 int 11016 main () 11017 { 11018 if ((int32_t *) 0) 11019 return 0; 11020 if (sizeof (int32_t)) 11021 return 0; 11022 ; 11023 return 0; 11024 } 11025 _ACEOF 11026 rm -f conftest.$ac_objext 11027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11028 (eval $ac_compile) 2>conftest.er1 11029 ac_status=$? 11030 grep -v '^ *+' conftest.er1 >conftest.err 11031 rm -f conftest.er1 11032 cat conftest.err >&5 11033 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11034 (exit $ac_status); } && 11035 { ac_try='test -z "$ac_c_werror_flag" 11036 || test ! -s conftest.err' 11037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11038 (eval $ac_try) 2>&5 11039 ac_status=$? 11040 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11041 (exit $ac_status); }; } && 11042 { ac_try='test -s conftest.$ac_objext' 11043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11044 (eval $ac_try) 2>&5 11045 ac_status=$? 11046 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11047 (exit $ac_status); }; }; then 11048 ac_cv_type_int32_t=yes 11049 else 11050 echo "$as_me: failed program was:" >&5 11051 sed 's/^/| /' conftest.$ac_ext >&5 11052 11053 ac_cv_type_int32_t=no 11054 fi 11055 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11056 fi 11057 echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5 11058 echo "${ECHO_T}$ac_cv_type_int32_t" >&6 11059 if test $ac_cv_type_int32_t = yes; then 11060 : 11061 else 11062 11063 cat >>confdefs.h <<_ACEOF 11064 #define int32_t signed long 11065 _ACEOF 11066 11067 fi 11068 11069 fi 11070 if test "$dc_cv_name" = "long_long"; then 11071 echo "$as_me:$LINENO: checking for int32_t" >&5 11072 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6 11073 if test "${ac_cv_type_int32_t+set}" = set; then 11074 echo $ECHO_N "(cached) $ECHO_C" >&6 11075 else 11076 cat >conftest.$ac_ext <<_ACEOF 11077 /* confdefs.h. */ 11078 _ACEOF 11079 cat confdefs.h >>conftest.$ac_ext 11080 cat >>conftest.$ac_ext <<_ACEOF 11081 /* end confdefs.h. */ 11082 $ac_includes_default 11083 int 11084 main () 11085 { 11086 if ((int32_t *) 0) 11087 return 0; 11088 if (sizeof (int32_t)) 11089 return 0; 11090 ; 11091 return 0; 11092 } 11093 _ACEOF 11094 rm -f conftest.$ac_objext 11095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11096 (eval $ac_compile) 2>conftest.er1 11097 ac_status=$? 11098 grep -v '^ *+' conftest.er1 >conftest.err 11099 rm -f conftest.er1 11100 cat conftest.err >&5 11101 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11102 (exit $ac_status); } && 11103 { ac_try='test -z "$ac_c_werror_flag" 11104 || test ! -s conftest.err' 11105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11106 (eval $ac_try) 2>&5 11107 ac_status=$? 11108 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11109 (exit $ac_status); }; } && 11110 { ac_try='test -s conftest.$ac_objext' 11111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11112 (eval $ac_try) 2>&5 11113 ac_status=$? 11114 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11115 (exit $ac_status); }; }; then 11116 ac_cv_type_int32_t=yes 11117 else 11118 echo "$as_me: failed program was:" >&5 11119 sed 's/^/| /' conftest.$ac_ext >&5 11120 11121 ac_cv_type_int32_t=no 11122 fi 11123 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11124 fi 11125 echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5 11126 echo "${ECHO_T}$ac_cv_type_int32_t" >&6 11127 if test $ac_cv_type_int32_t = yes; then 11128 : 11129 else 11130 11131 cat >>confdefs.h <<_ACEOF 11132 #define int32_t signed long long 11133 _ACEOF 11134 11135 fi 11136 11137 fi 11138 if test "$dc_cv_name" = "short"; then 11139 echo "$as_me:$LINENO: checking for int32_t" >&5 11140 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6 11141 if test "${ac_cv_type_int32_t+set}" = set; then 11142 echo $ECHO_N "(cached) $ECHO_C" >&6 11143 else 11144 cat >conftest.$ac_ext <<_ACEOF 11145 /* confdefs.h. */ 11146 _ACEOF 11147 cat confdefs.h >>conftest.$ac_ext 11148 cat >>conftest.$ac_ext <<_ACEOF 11149 /* end confdefs.h. */ 11150 $ac_includes_default 11151 int 11152 main () 11153 { 11154 if ((int32_t *) 0) 11155 return 0; 11156 if (sizeof (int32_t)) 11157 return 0; 11158 ; 11159 return 0; 11160 } 11161 _ACEOF 11162 rm -f conftest.$ac_objext 11163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11164 (eval $ac_compile) 2>conftest.er1 11165 ac_status=$? 11166 grep -v '^ *+' conftest.er1 >conftest.err 11167 rm -f conftest.er1 11168 cat conftest.err >&5 11169 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11170 (exit $ac_status); } && 11171 { ac_try='test -z "$ac_c_werror_flag" 11172 || test ! -s conftest.err' 11173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11174 (eval $ac_try) 2>&5 11175 ac_status=$? 11176 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11177 (exit $ac_status); }; } && 11178 { ac_try='test -s conftest.$ac_objext' 11179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11180 (eval $ac_try) 2>&5 11181 ac_status=$? 11182 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11183 (exit $ac_status); }; }; then 11184 ac_cv_type_int32_t=yes 11185 else 11186 echo "$as_me: failed program was:" >&5 11187 sed 's/^/| /' conftest.$ac_ext >&5 11188 11189 ac_cv_type_int32_t=no 11190 fi 11191 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11192 fi 11193 echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5 11194 echo "${ECHO_T}$ac_cv_type_int32_t" >&6 11195 if test $ac_cv_type_int32_t = yes; then 11196 : 11197 else 11198 11199 cat >>confdefs.h <<_ACEOF 11200 #define int32_t signed short 11201 _ACEOF 11202 11203 fi 11204 11205 fi 11206 FOUND=1 11207 break 11208 fi 11209 done 11210 11211 11212 if test -z "$ac_cv_sizeof_long"; then 11213 echo "$as_me:$LINENO: checking for inline" >&5 11214 echo $ECHO_N "checking for inline... $ECHO_C" >&6 11215 if test "${ac_cv_c_inline+set}" = set; then 11216 echo $ECHO_N "(cached) $ECHO_C" >&6 11217 else 11218 ac_cv_c_inline=no 11219 for ac_kw in inline __inline__ __inline; do 11220 cat >conftest.$ac_ext <<_ACEOF 11221 /* confdefs.h. */ 11222 _ACEOF 11223 cat confdefs.h >>conftest.$ac_ext 11224 cat >>conftest.$ac_ext <<_ACEOF 11225 /* end confdefs.h. */ 11226 #ifndef __cplusplus 11227 typedef int foo_t; 11228 static $ac_kw foo_t static_foo () {return 0; } 11229 $ac_kw foo_t foo () {return 0; } 11230 #endif 11231 11232 _ACEOF 11233 rm -f conftest.$ac_objext 11234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11235 (eval $ac_compile) 2>conftest.er1 11236 ac_status=$? 11237 grep -v '^ *+' conftest.er1 >conftest.err 11238 rm -f conftest.er1 11239 cat conftest.err >&5 11240 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11241 (exit $ac_status); } && 11242 { ac_try='test -z "$ac_c_werror_flag" 11243 || test ! -s conftest.err' 11244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11245 (eval $ac_try) 2>&5 11246 ac_status=$? 11247 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11248 (exit $ac_status); }; } && 11249 { ac_try='test -s conftest.$ac_objext' 11250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11251 (eval $ac_try) 2>&5 11252 ac_status=$? 11253 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11254 (exit $ac_status); }; }; then 11255 ac_cv_c_inline=$ac_kw; break 11256 else 11257 echo "$as_me: failed program was:" >&5 11258 sed 's/^/| /' conftest.$ac_ext >&5 11259 11260 fi 11261 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11262 done 11263 11264 fi 11265 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 11266 echo "${ECHO_T}$ac_cv_c_inline" >&6 11267 11268 11269 case $ac_cv_c_inline in 11270 inline | yes) ;; 11271 *) 11272 case $ac_cv_c_inline in 11273 no) ac_val=;; 11274 *) ac_val=$ac_cv_c_inline;; 11275 esac 11276 cat >>confdefs.h <<_ACEOF 11277 #ifndef __cplusplus 11278 #define inline $ac_val 11279 #endif 11280 _ACEOF 11281 ;; 11282 esac 11283 11284 echo "$as_me:$LINENO: checking for long long" >&5 11285 echo $ECHO_N "checking for long long... $ECHO_C" >&6 11286 if test "${ac_cv_type_long_long+set}" = set; then 11287 echo $ECHO_N "(cached) $ECHO_C" >&6 11288 else 11289 cat >conftest.$ac_ext <<_ACEOF 11290 /* confdefs.h. */ 11291 _ACEOF 11292 cat confdefs.h >>conftest.$ac_ext 11293 cat >>conftest.$ac_ext <<_ACEOF 11294 /* end confdefs.h. */ 11295 $ac_includes_default 11296 int 11297 main () 11298 { 11299 if ((long long *) 0) 11300 return 0; 11301 if (sizeof (long long)) 11302 return 0; 11303 ; 11304 return 0; 11305 } 11306 _ACEOF 11307 rm -f conftest.$ac_objext 11308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11309 (eval $ac_compile) 2>conftest.er1 11310 ac_status=$? 11311 grep -v '^ *+' conftest.er1 >conftest.err 11312 rm -f conftest.er1 11313 cat conftest.err >&5 11314 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11315 (exit $ac_status); } && 11316 { ac_try='test -z "$ac_c_werror_flag" 11317 || test ! -s conftest.err' 11318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11319 (eval $ac_try) 2>&5 11320 ac_status=$? 11321 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11322 (exit $ac_status); }; } && 11323 { ac_try='test -s conftest.$ac_objext' 11324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11325 (eval $ac_try) 2>&5 11326 ac_status=$? 11327 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11328 (exit $ac_status); }; }; then 11329 ac_cv_type_long_long=yes 11330 else 11331 echo "$as_me: failed program was:" >&5 11332 sed 's/^/| /' conftest.$ac_ext >&5 11333 11334 ac_cv_type_long_long=no 11335 fi 11336 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11337 fi 11338 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 11339 echo "${ECHO_T}$ac_cv_type_long_long" >&6 11340 11341 echo "$as_me:$LINENO: checking size of long long" >&5 11342 echo $ECHO_N "checking size of long long... $ECHO_C" >&6 11343 if test "${ac_cv_sizeof_long_long+set}" = set; then 11344 echo $ECHO_N "(cached) $ECHO_C" >&6 11345 else 11346 if test "$ac_cv_type_long_long" = yes; then 11347 # The cast to unsigned long works around a bug in the HP C Compiler 11348 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 11349 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 11350 # This bug is HP SR number 8606223364. 11351 if test "$cross_compiling" = yes; then 11352 # Depending upon the size, compute the lo and hi bounds. 11353 cat >conftest.$ac_ext <<_ACEOF 11354 /* confdefs.h. */ 11355 _ACEOF 11356 cat confdefs.h >>conftest.$ac_ext 11357 cat >>conftest.$ac_ext <<_ACEOF 11358 /* end confdefs.h. */ 11359 $ac_includes_default 11360 int 11361 main () 11362 { 11363 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; 11364 test_array [0] = 0 11365 11366 ; 11367 return 0; 11368 } 11369 _ACEOF 11370 rm -f conftest.$ac_objext 11371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11372 (eval $ac_compile) 2>conftest.er1 11373 ac_status=$? 11374 grep -v '^ *+' conftest.er1 >conftest.err 11375 rm -f conftest.er1 11376 cat conftest.err >&5 11377 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11378 (exit $ac_status); } && 11379 { ac_try='test -z "$ac_c_werror_flag" 11380 || test ! -s conftest.err' 11381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11382 (eval $ac_try) 2>&5 11383 ac_status=$? 11384 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11385 (exit $ac_status); }; } && 11386 { ac_try='test -s conftest.$ac_objext' 11387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11388 (eval $ac_try) 2>&5 11389 ac_status=$? 11390 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11391 (exit $ac_status); }; }; then 11392 ac_lo=0 ac_mid=0 11393 while :; do 11394 cat >conftest.$ac_ext <<_ACEOF 11395 /* confdefs.h. */ 11396 _ACEOF 11397 cat confdefs.h >>conftest.$ac_ext 11398 cat >>conftest.$ac_ext <<_ACEOF 11399 /* end confdefs.h. */ 11400 $ac_includes_default 11401 int 11402 main () 11403 { 11404 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; 11405 test_array [0] = 0 11406 11407 ; 11408 return 0; 11409 } 11410 _ACEOF 11411 rm -f conftest.$ac_objext 11412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11413 (eval $ac_compile) 2>conftest.er1 11414 ac_status=$? 11415 grep -v '^ *+' conftest.er1 >conftest.err 11416 rm -f conftest.er1 11417 cat conftest.err >&5 11418 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11419 (exit $ac_status); } && 11420 { ac_try='test -z "$ac_c_werror_flag" 11421 || test ! -s conftest.err' 11422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11423 (eval $ac_try) 2>&5 11424 ac_status=$? 11425 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11426 (exit $ac_status); }; } && 11427 { ac_try='test -s conftest.$ac_objext' 11428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11429 (eval $ac_try) 2>&5 11430 ac_status=$? 11431 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11432 (exit $ac_status); }; }; then 11433 ac_hi=$ac_mid; break 11434 else 11435 echo "$as_me: failed program was:" >&5 11436 sed 's/^/| /' conftest.$ac_ext >&5 11437 11438 ac_lo=`expr $ac_mid + 1` 11439 if test $ac_lo -le $ac_mid; then 11440 ac_lo= ac_hi= 11441 break 11442 fi 11443 ac_mid=`expr 2 '*' $ac_mid + 1` 11444 fi 11445 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11446 done 11447 else 11448 echo "$as_me: failed program was:" >&5 11449 sed 's/^/| /' conftest.$ac_ext >&5 11450 11451 cat >conftest.$ac_ext <<_ACEOF 11452 /* confdefs.h. */ 11453 _ACEOF 11454 cat confdefs.h >>conftest.$ac_ext 11455 cat >>conftest.$ac_ext <<_ACEOF 11456 /* end confdefs.h. */ 11457 $ac_includes_default 11458 int 11459 main () 11460 { 11461 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; 11462 test_array [0] = 0 11463 11464 ; 11465 return 0; 11466 } 11467 _ACEOF 11468 rm -f conftest.$ac_objext 11469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11470 (eval $ac_compile) 2>conftest.er1 11471 ac_status=$? 11472 grep -v '^ *+' conftest.er1 >conftest.err 11473 rm -f conftest.er1 11474 cat conftest.err >&5 11475 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11476 (exit $ac_status); } && 11477 { ac_try='test -z "$ac_c_werror_flag" 11478 || test ! -s conftest.err' 11479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11480 (eval $ac_try) 2>&5 11481 ac_status=$? 11482 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11483 (exit $ac_status); }; } && 11484 { ac_try='test -s conftest.$ac_objext' 11485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11486 (eval $ac_try) 2>&5 11487 ac_status=$? 11488 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11489 (exit $ac_status); }; }; then 11490 ac_hi=-1 ac_mid=-1 11491 while :; do 11492 cat >conftest.$ac_ext <<_ACEOF 11493 /* confdefs.h. */ 11494 _ACEOF 11495 cat confdefs.h >>conftest.$ac_ext 11496 cat >>conftest.$ac_ext <<_ACEOF 11497 /* end confdefs.h. */ 11498 $ac_includes_default 11499 int 11500 main () 11501 { 11502 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; 11503 test_array [0] = 0 11504 11505 ; 11506 return 0; 11507 } 11508 _ACEOF 11509 rm -f conftest.$ac_objext 11510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11511 (eval $ac_compile) 2>conftest.er1 11512 ac_status=$? 11513 grep -v '^ *+' conftest.er1 >conftest.err 11514 rm -f conftest.er1 11515 cat conftest.err >&5 11516 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11517 (exit $ac_status); } && 11518 { ac_try='test -z "$ac_c_werror_flag" 11519 || test ! -s conftest.err' 11520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11521 (eval $ac_try) 2>&5 11522 ac_status=$? 11523 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11524 (exit $ac_status); }; } && 11525 { ac_try='test -s conftest.$ac_objext' 11526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11527 (eval $ac_try) 2>&5 11528 ac_status=$? 11529 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11530 (exit $ac_status); }; }; then 11531 ac_lo=$ac_mid; break 11532 else 11533 echo "$as_me: failed program was:" >&5 11534 sed 's/^/| /' conftest.$ac_ext >&5 11535 11536 ac_hi=`expr '(' $ac_mid ')' - 1` 11537 if test $ac_mid -le $ac_hi; then 11538 ac_lo= ac_hi= 11539 break 11540 fi 11541 ac_mid=`expr 2 '*' $ac_mid` 11542 fi 11543 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11544 done 11545 else 11546 echo "$as_me: failed program was:" >&5 11547 sed 's/^/| /' conftest.$ac_ext >&5 11548 11549 ac_lo= ac_hi= 11550 fi 11551 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11552 fi 11553 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11554 # Binary search between lo and hi bounds. 11555 while test "x$ac_lo" != "x$ac_hi"; do 11556 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 11557 cat >conftest.$ac_ext <<_ACEOF 11558 /* confdefs.h. */ 11559 _ACEOF 11560 cat confdefs.h >>conftest.$ac_ext 11561 cat >>conftest.$ac_ext <<_ACEOF 11562 /* end confdefs.h. */ 11563 $ac_includes_default 11564 int 11565 main () 11566 { 11567 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; 11568 test_array [0] = 0 11569 11570 ; 11571 return 0; 11572 } 11573 _ACEOF 11574 rm -f conftest.$ac_objext 11575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11576 (eval $ac_compile) 2>conftest.er1 11577 ac_status=$? 11578 grep -v '^ *+' conftest.er1 >conftest.err 11579 rm -f conftest.er1 11580 cat conftest.err >&5 11581 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11582 (exit $ac_status); } && 11583 { ac_try='test -z "$ac_c_werror_flag" 11584 || test ! -s conftest.err' 11585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11586 (eval $ac_try) 2>&5 11587 ac_status=$? 11588 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11589 (exit $ac_status); }; } && 11590 { ac_try='test -s conftest.$ac_objext' 11591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11592 (eval $ac_try) 2>&5 11593 ac_status=$? 11594 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11595 (exit $ac_status); }; }; then 11596 ac_hi=$ac_mid 11597 else 11598 echo "$as_me: failed program was:" >&5 11599 sed 's/^/| /' conftest.$ac_ext >&5 11600 11601 ac_lo=`expr '(' $ac_mid ')' + 1` 11602 fi 11603 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11604 done 11605 case $ac_lo in 11606 ?*) ac_cv_sizeof_long_long=$ac_lo;; 11607 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 11608 See \`config.log' for more details." >&5 11609 echo "$as_me: error: cannot compute sizeof (long long), 77 11610 See \`config.log' for more details." >&2;} 11611 { (exit 1); exit 1; }; } ;; 11612 esac 11613 else 11614 if test "$cross_compiling" = yes; then 11615 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 11616 See \`config.log' for more details." >&5 11617 echo "$as_me: error: cannot run test program while cross compiling 11618 See \`config.log' for more details." >&2;} 11619 { (exit 1); exit 1; }; } 11620 else 11621 cat >conftest.$ac_ext <<_ACEOF 11622 /* confdefs.h. */ 11623 _ACEOF 11624 cat confdefs.h >>conftest.$ac_ext 11625 cat >>conftest.$ac_ext <<_ACEOF 11626 /* end confdefs.h. */ 11627 $ac_includes_default 11628 long longval () { return (long) (sizeof (long long)); } 11629 unsigned long ulongval () { return (long) (sizeof (long long)); } 11630 #include <stdio.h> 11631 #include <stdlib.h> 11632 int 11633 main () 11634 { 11635 11636 FILE *f = fopen ("conftest.val", "w"); 11637 if (! f) 11638 exit (1); 11639 if (((long) (sizeof (long long))) < 0) 11640 { 11641 long i = longval (); 11642 if (i != ((long) (sizeof (long long)))) 11643 exit (1); 11644 fprintf (f, "%ld\n", i); 11645 } 11646 else 11647 { 11648 unsigned long i = ulongval (); 11649 if (i != ((long) (sizeof (long long)))) 11650 exit (1); 11651 fprintf (f, "%lu\n", i); 11652 } 11653 exit (ferror (f) || fclose (f) != 0); 11654 11655 ; 11656 return 0; 11657 } 11658 _ACEOF 11659 rm -f conftest$ac_exeext 11660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11661 (eval $ac_link) 2>&5 11662 ac_status=$? 11663 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11664 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 11665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11666 (eval $ac_try) 2>&5 11667 ac_status=$? 11668 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11669 (exit $ac_status); }; }; then 11670 ac_cv_sizeof_long_long=`cat conftest.val` 11671 else 11672 echo "$as_me: program exited with status $ac_status" >&5 11673 echo "$as_me: failed program was:" >&5 11674 sed 's/^/| /' conftest.$ac_ext >&5 11675 11676 ( exit $ac_status ) 11677 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 11678 See \`config.log' for more details." >&5 11679 echo "$as_me: error: cannot compute sizeof (long long), 77 11680 See \`config.log' for more details." >&2;} 11681 { (exit 1); exit 1; }; } 11682 fi 11683 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11684 fi 11685 fi 11686 rm -f conftest.val 11687 else 11688 ac_cv_sizeof_long_long=0 11689 fi 11690 fi 11691 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 11692 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 11693 cat >>confdefs.h <<_ACEOF 11694 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long 11695 _ACEOF 11696 11697 11698 echo "$as_me:$LINENO: checking for long" >&5 11699 echo $ECHO_N "checking for long... $ECHO_C" >&6 11700 if test "${ac_cv_type_long+set}" = set; then 11701 echo $ECHO_N "(cached) $ECHO_C" >&6 11702 else 11703 cat >conftest.$ac_ext <<_ACEOF 11704 /* confdefs.h. */ 11705 _ACEOF 11706 cat confdefs.h >>conftest.$ac_ext 11707 cat >>conftest.$ac_ext <<_ACEOF 11708 /* end confdefs.h. */ 11709 $ac_includes_default 11710 int 11711 main () 11712 { 11713 if ((long *) 0) 11714 return 0; 11715 if (sizeof (long)) 11716 return 0; 11717 ; 11718 return 0; 11719 } 11720 _ACEOF 11721 rm -f conftest.$ac_objext 11722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11723 (eval $ac_compile) 2>conftest.er1 11724 ac_status=$? 11725 grep -v '^ *+' conftest.er1 >conftest.err 11726 rm -f conftest.er1 11727 cat conftest.err >&5 11728 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11729 (exit $ac_status); } && 11730 { ac_try='test -z "$ac_c_werror_flag" 11731 || test ! -s conftest.err' 11732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11733 (eval $ac_try) 2>&5 11734 ac_status=$? 11735 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11736 (exit $ac_status); }; } && 11737 { ac_try='test -s conftest.$ac_objext' 11738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11739 (eval $ac_try) 2>&5 11740 ac_status=$? 11741 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11742 (exit $ac_status); }; }; then 11743 ac_cv_type_long=yes 11744 else 11745 echo "$as_me: failed program was:" >&5 11746 sed 's/^/| /' conftest.$ac_ext >&5 11747 11748 ac_cv_type_long=no 11749 fi 11750 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11751 fi 11752 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 11753 echo "${ECHO_T}$ac_cv_type_long" >&6 11754 11755 echo "$as_me:$LINENO: checking size of long" >&5 11756 echo $ECHO_N "checking size of long... $ECHO_C" >&6 11757 if test "${ac_cv_sizeof_long+set}" = set; then 11758 echo $ECHO_N "(cached) $ECHO_C" >&6 11759 else 11760 if test "$ac_cv_type_long" = yes; then 11761 # The cast to unsigned long works around a bug in the HP C Compiler 11762 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 11763 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 11764 # This bug is HP SR number 8606223364. 11765 if test "$cross_compiling" = yes; then 11766 # Depending upon the size, compute the lo and hi bounds. 11767 cat >conftest.$ac_ext <<_ACEOF 11768 /* confdefs.h. */ 11769 _ACEOF 11770 cat confdefs.h >>conftest.$ac_ext 11771 cat >>conftest.$ac_ext <<_ACEOF 11772 /* end confdefs.h. */ 11773 $ac_includes_default 11774 int 11775 main () 11776 { 11777 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; 11778 test_array [0] = 0 11779 11780 ; 11781 return 0; 11782 } 11783 _ACEOF 11784 rm -f conftest.$ac_objext 11785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11786 (eval $ac_compile) 2>conftest.er1 11787 ac_status=$? 11788 grep -v '^ *+' conftest.er1 >conftest.err 11789 rm -f conftest.er1 11790 cat conftest.err >&5 11791 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11792 (exit $ac_status); } && 11793 { ac_try='test -z "$ac_c_werror_flag" 11794 || test ! -s conftest.err' 11795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11796 (eval $ac_try) 2>&5 11797 ac_status=$? 11798 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11799 (exit $ac_status); }; } && 11800 { ac_try='test -s conftest.$ac_objext' 11801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11802 (eval $ac_try) 2>&5 11803 ac_status=$? 11804 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11805 (exit $ac_status); }; }; then 11806 ac_lo=0 ac_mid=0 11807 while :; do 11808 cat >conftest.$ac_ext <<_ACEOF 11809 /* confdefs.h. */ 11810 _ACEOF 11811 cat confdefs.h >>conftest.$ac_ext 11812 cat >>conftest.$ac_ext <<_ACEOF 11813 /* end confdefs.h. */ 11814 $ac_includes_default 11815 int 11816 main () 11817 { 11818 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; 11819 test_array [0] = 0 11820 11821 ; 11822 return 0; 11823 } 11824 _ACEOF 11825 rm -f conftest.$ac_objext 11826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11827 (eval $ac_compile) 2>conftest.er1 11828 ac_status=$? 11829 grep -v '^ *+' conftest.er1 >conftest.err 11830 rm -f conftest.er1 11831 cat conftest.err >&5 11832 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11833 (exit $ac_status); } && 11834 { ac_try='test -z "$ac_c_werror_flag" 11835 || test ! -s conftest.err' 11836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11837 (eval $ac_try) 2>&5 11838 ac_status=$? 11839 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11840 (exit $ac_status); }; } && 11841 { ac_try='test -s conftest.$ac_objext' 11842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11843 (eval $ac_try) 2>&5 11844 ac_status=$? 11845 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11846 (exit $ac_status); }; }; then 11847 ac_hi=$ac_mid; break 11848 else 11849 echo "$as_me: failed program was:" >&5 11850 sed 's/^/| /' conftest.$ac_ext >&5 11851 11852 ac_lo=`expr $ac_mid + 1` 11853 if test $ac_lo -le $ac_mid; then 11854 ac_lo= ac_hi= 11855 break 11856 fi 11857 ac_mid=`expr 2 '*' $ac_mid + 1` 11858 fi 11859 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11860 done 11861 else 11862 echo "$as_me: failed program was:" >&5 11863 sed 's/^/| /' conftest.$ac_ext >&5 11864 11865 cat >conftest.$ac_ext <<_ACEOF 11866 /* confdefs.h. */ 11867 _ACEOF 11868 cat confdefs.h >>conftest.$ac_ext 11869 cat >>conftest.$ac_ext <<_ACEOF 11870 /* end confdefs.h. */ 11871 $ac_includes_default 11872 int 11873 main () 11874 { 11875 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; 11876 test_array [0] = 0 11877 11878 ; 11879 return 0; 11880 } 11881 _ACEOF 11882 rm -f conftest.$ac_objext 11883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11884 (eval $ac_compile) 2>conftest.er1 11885 ac_status=$? 11886 grep -v '^ *+' conftest.er1 >conftest.err 11887 rm -f conftest.er1 11888 cat conftest.err >&5 11889 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11890 (exit $ac_status); } && 11891 { ac_try='test -z "$ac_c_werror_flag" 11892 || test ! -s conftest.err' 11893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11894 (eval $ac_try) 2>&5 11895 ac_status=$? 11896 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11897 (exit $ac_status); }; } && 11898 { ac_try='test -s conftest.$ac_objext' 11899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11900 (eval $ac_try) 2>&5 11901 ac_status=$? 11902 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11903 (exit $ac_status); }; }; then 11904 ac_hi=-1 ac_mid=-1 11905 while :; do 11906 cat >conftest.$ac_ext <<_ACEOF 11907 /* confdefs.h. */ 11908 _ACEOF 11909 cat confdefs.h >>conftest.$ac_ext 11910 cat >>conftest.$ac_ext <<_ACEOF 11911 /* end confdefs.h. */ 11912 $ac_includes_default 11913 int 11914 main () 11915 { 11916 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; 11917 test_array [0] = 0 11918 11919 ; 11920 return 0; 11921 } 11922 _ACEOF 11923 rm -f conftest.$ac_objext 11924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11925 (eval $ac_compile) 2>conftest.er1 11926 ac_status=$? 11927 grep -v '^ *+' conftest.er1 >conftest.err 11928 rm -f conftest.er1 11929 cat conftest.err >&5 11930 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11931 (exit $ac_status); } && 11932 { ac_try='test -z "$ac_c_werror_flag" 11933 || test ! -s conftest.err' 11934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11935 (eval $ac_try) 2>&5 11936 ac_status=$? 11937 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11938 (exit $ac_status); }; } && 11939 { ac_try='test -s conftest.$ac_objext' 11940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11941 (eval $ac_try) 2>&5 11942 ac_status=$? 11943 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11944 (exit $ac_status); }; }; then 11945 ac_lo=$ac_mid; break 11946 else 11947 echo "$as_me: failed program was:" >&5 11948 sed 's/^/| /' conftest.$ac_ext >&5 11949 11950 ac_hi=`expr '(' $ac_mid ')' - 1` 11951 if test $ac_mid -le $ac_hi; then 11952 ac_lo= ac_hi= 11953 break 11954 fi 11955 ac_mid=`expr 2 '*' $ac_mid` 11956 fi 11957 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11958 done 11959 else 11960 echo "$as_me: failed program was:" >&5 11961 sed 's/^/| /' conftest.$ac_ext >&5 11962 11963 ac_lo= ac_hi= 11964 fi 11965 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11966 fi 11967 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11968 # Binary search between lo and hi bounds. 11969 while test "x$ac_lo" != "x$ac_hi"; do 11970 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 11971 cat >conftest.$ac_ext <<_ACEOF 11972 /* confdefs.h. */ 11973 _ACEOF 11974 cat confdefs.h >>conftest.$ac_ext 11975 cat >>conftest.$ac_ext <<_ACEOF 11976 /* end confdefs.h. */ 11977 $ac_includes_default 11978 int 11979 main () 11980 { 11981 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; 11982 test_array [0] = 0 11983 11984 ; 11985 return 0; 11986 } 11987 _ACEOF 11988 rm -f conftest.$ac_objext 11989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11990 (eval $ac_compile) 2>conftest.er1 11991 ac_status=$? 11992 grep -v '^ *+' conftest.er1 >conftest.err 11993 rm -f conftest.er1 11994 cat conftest.err >&5 11995 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11996 (exit $ac_status); } && 11997 { ac_try='test -z "$ac_c_werror_flag" 11998 || test ! -s conftest.err' 11999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12000 (eval $ac_try) 2>&5 12001 ac_status=$? 12002 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12003 (exit $ac_status); }; } && 12004 { ac_try='test -s conftest.$ac_objext' 12005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12006 (eval $ac_try) 2>&5 12007 ac_status=$? 12008 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12009 (exit $ac_status); }; }; then 12010 ac_hi=$ac_mid 12011 else 12012 echo "$as_me: failed program was:" >&5 12013 sed 's/^/| /' conftest.$ac_ext >&5 12014 12015 ac_lo=`expr '(' $ac_mid ')' + 1` 12016 fi 12017 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12018 done 12019 case $ac_lo in 12020 ?*) ac_cv_sizeof_long=$ac_lo;; 12021 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 12022 See \`config.log' for more details." >&5 12023 echo "$as_me: error: cannot compute sizeof (long), 77 12024 See \`config.log' for more details." >&2;} 12025 { (exit 1); exit 1; }; } ;; 12026 esac 12027 else 12028 if test "$cross_compiling" = yes; then 12029 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 12030 See \`config.log' for more details." >&5 12031 echo "$as_me: error: cannot run test program while cross compiling 12032 See \`config.log' for more details." >&2;} 12033 { (exit 1); exit 1; }; } 12034 else 12035 cat >conftest.$ac_ext <<_ACEOF 12036 /* confdefs.h. */ 12037 _ACEOF 12038 cat confdefs.h >>conftest.$ac_ext 12039 cat >>conftest.$ac_ext <<_ACEOF 12040 /* end confdefs.h. */ 12041 $ac_includes_default 12042 long longval () { return (long) (sizeof (long)); } 12043 unsigned long ulongval () { return (long) (sizeof (long)); } 12044 #include <stdio.h> 12045 #include <stdlib.h> 12046 int 12047 main () 12048 { 12049 12050 FILE *f = fopen ("conftest.val", "w"); 12051 if (! f) 12052 exit (1); 12053 if (((long) (sizeof (long))) < 0) 12054 { 12055 long i = longval (); 12056 if (i != ((long) (sizeof (long)))) 12057 exit (1); 12058 fprintf (f, "%ld\n", i); 12059 } 12060 else 12061 { 12062 unsigned long i = ulongval (); 12063 if (i != ((long) (sizeof (long)))) 12064 exit (1); 12065 fprintf (f, "%lu\n", i); 12066 } 12067 exit (ferror (f) || fclose (f) != 0); 12068 12069 ; 12070 return 0; 12071 } 12072 _ACEOF 12073 rm -f conftest$ac_exeext 12074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12075 (eval $ac_link) 2>&5 12076 ac_status=$? 12077 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12078 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 12079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12080 (eval $ac_try) 2>&5 12081 ac_status=$? 12082 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12083 (exit $ac_status); }; }; then 12084 ac_cv_sizeof_long=`cat conftest.val` 12085 else 12086 echo "$as_me: program exited with status $ac_status" >&5 12087 echo "$as_me: failed program was:" >&5 12088 sed 's/^/| /' conftest.$ac_ext >&5 12089 12090 ( exit $ac_status ) 12091 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 12092 See \`config.log' for more details." >&5 12093 echo "$as_me: error: cannot compute sizeof (long), 77 12094 See \`config.log' for more details." >&2;} 12095 { (exit 1); exit 1; }; } 12096 fi 12097 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 12098 fi 12099 fi 12100 rm -f conftest.val 12101 else 12102 ac_cv_sizeof_long=0 12103 fi 12104 fi 12105 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 12106 echo "${ECHO_T}$ac_cv_sizeof_long" >&6 12107 cat >>confdefs.h <<_ACEOF 12108 #define SIZEOF_LONG $ac_cv_sizeof_long 12109 _ACEOF 12110 12111 12112 echo "$as_me:$LINENO: checking for int" >&5 12113 echo $ECHO_N "checking for int... $ECHO_C" >&6 12114 if test "${ac_cv_type_int+set}" = set; then 12115 echo $ECHO_N "(cached) $ECHO_C" >&6 12116 else 12117 cat >conftest.$ac_ext <<_ACEOF 12118 /* confdefs.h. */ 12119 _ACEOF 12120 cat confdefs.h >>conftest.$ac_ext 12121 cat >>conftest.$ac_ext <<_ACEOF 12122 /* end confdefs.h. */ 12123 $ac_includes_default 12124 int 12125 main () 12126 { 12127 if ((int *) 0) 12128 return 0; 12129 if (sizeof (int)) 12130 return 0; 12131 ; 12132 return 0; 12133 } 12134 _ACEOF 12135 rm -f conftest.$ac_objext 12136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12137 (eval $ac_compile) 2>conftest.er1 12138 ac_status=$? 12139 grep -v '^ *+' conftest.er1 >conftest.err 12140 rm -f conftest.er1 12141 cat conftest.err >&5 12142 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12143 (exit $ac_status); } && 12144 { ac_try='test -z "$ac_c_werror_flag" 12145 || test ! -s conftest.err' 12146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12147 (eval $ac_try) 2>&5 12148 ac_status=$? 12149 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12150 (exit $ac_status); }; } && 12151 { ac_try='test -s conftest.$ac_objext' 12152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12153 (eval $ac_try) 2>&5 12154 ac_status=$? 12155 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12156 (exit $ac_status); }; }; then 12157 ac_cv_type_int=yes 12158 else 12159 echo "$as_me: failed program was:" >&5 12160 sed 's/^/| /' conftest.$ac_ext >&5 12161 12162 ac_cv_type_int=no 12163 fi 12164 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12165 fi 12166 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 12167 echo "${ECHO_T}$ac_cv_type_int" >&6 12168 12169 echo "$as_me:$LINENO: checking size of int" >&5 12170 echo $ECHO_N "checking size of int... $ECHO_C" >&6 12171 if test "${ac_cv_sizeof_int+set}" = set; then 12172 echo $ECHO_N "(cached) $ECHO_C" >&6 12173 else 12174 if test "$ac_cv_type_int" = yes; then 12175 # The cast to unsigned long works around a bug in the HP C Compiler 12176 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 12177 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 12178 # This bug is HP SR number 8606223364. 12179 if test "$cross_compiling" = yes; then 12180 # Depending upon the size, compute the lo and hi bounds. 12181 cat >conftest.$ac_ext <<_ACEOF 12182 /* confdefs.h. */ 12183 _ACEOF 12184 cat confdefs.h >>conftest.$ac_ext 12185 cat >>conftest.$ac_ext <<_ACEOF 12186 /* end confdefs.h. */ 12187 $ac_includes_default 12188 int 12189 main () 12190 { 12191 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; 12192 test_array [0] = 0 12193 12194 ; 12195 return 0; 12196 } 12197 _ACEOF 12198 rm -f conftest.$ac_objext 12199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12200 (eval $ac_compile) 2>conftest.er1 12201 ac_status=$? 12202 grep -v '^ *+' conftest.er1 >conftest.err 12203 rm -f conftest.er1 12204 cat conftest.err >&5 12205 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12206 (exit $ac_status); } && 12207 { ac_try='test -z "$ac_c_werror_flag" 12208 || test ! -s conftest.err' 12209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12210 (eval $ac_try) 2>&5 12211 ac_status=$? 12212 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12213 (exit $ac_status); }; } && 12214 { ac_try='test -s conftest.$ac_objext' 12215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12216 (eval $ac_try) 2>&5 12217 ac_status=$? 12218 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12219 (exit $ac_status); }; }; then 12220 ac_lo=0 ac_mid=0 12221 while :; do 12222 cat >conftest.$ac_ext <<_ACEOF 12223 /* confdefs.h. */ 12224 _ACEOF 12225 cat confdefs.h >>conftest.$ac_ext 12226 cat >>conftest.$ac_ext <<_ACEOF 12227 /* end confdefs.h. */ 12228 $ac_includes_default 12229 int 12230 main () 12231 { 12232 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; 12233 test_array [0] = 0 12234 12235 ; 12236 return 0; 12237 } 12238 _ACEOF 12239 rm -f conftest.$ac_objext 12240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12241 (eval $ac_compile) 2>conftest.er1 12242 ac_status=$? 12243 grep -v '^ *+' conftest.er1 >conftest.err 12244 rm -f conftest.er1 12245 cat conftest.err >&5 12246 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12247 (exit $ac_status); } && 12248 { ac_try='test -z "$ac_c_werror_flag" 12249 || test ! -s conftest.err' 12250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12251 (eval $ac_try) 2>&5 12252 ac_status=$? 12253 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12254 (exit $ac_status); }; } && 12255 { ac_try='test -s conftest.$ac_objext' 12256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12257 (eval $ac_try) 2>&5 12258 ac_status=$? 12259 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12260 (exit $ac_status); }; }; then 12261 ac_hi=$ac_mid; break 12262 else 12263 echo "$as_me: failed program was:" >&5 12264 sed 's/^/| /' conftest.$ac_ext >&5 12265 12266 ac_lo=`expr $ac_mid + 1` 12267 if test $ac_lo -le $ac_mid; then 12268 ac_lo= ac_hi= 12269 break 12270 fi 12271 ac_mid=`expr 2 '*' $ac_mid + 1` 12272 fi 12273 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12274 done 12275 else 12276 echo "$as_me: failed program was:" >&5 12277 sed 's/^/| /' conftest.$ac_ext >&5 12278 12279 cat >conftest.$ac_ext <<_ACEOF 12280 /* confdefs.h. */ 12281 _ACEOF 12282 cat confdefs.h >>conftest.$ac_ext 12283 cat >>conftest.$ac_ext <<_ACEOF 12284 /* end confdefs.h. */ 12285 $ac_includes_default 12286 int 12287 main () 12288 { 12289 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; 12290 test_array [0] = 0 12291 12292 ; 12293 return 0; 12294 } 12295 _ACEOF 12296 rm -f conftest.$ac_objext 12297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12298 (eval $ac_compile) 2>conftest.er1 12299 ac_status=$? 12300 grep -v '^ *+' conftest.er1 >conftest.err 12301 rm -f conftest.er1 12302 cat conftest.err >&5 12303 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12304 (exit $ac_status); } && 12305 { ac_try='test -z "$ac_c_werror_flag" 12306 || test ! -s conftest.err' 12307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12308 (eval $ac_try) 2>&5 12309 ac_status=$? 12310 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12311 (exit $ac_status); }; } && 12312 { ac_try='test -s conftest.$ac_objext' 12313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12314 (eval $ac_try) 2>&5 12315 ac_status=$? 12316 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12317 (exit $ac_status); }; }; then 12318 ac_hi=-1 ac_mid=-1 12319 while :; do 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 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; 12331 test_array [0] = 0 12332 12333 ; 12334 return 0; 12335 } 12336 _ACEOF 12337 rm -f conftest.$ac_objext 12338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12339 (eval $ac_compile) 2>conftest.er1 12340 ac_status=$? 12341 grep -v '^ *+' conftest.er1 >conftest.err 12342 rm -f conftest.er1 12343 cat conftest.err >&5 12344 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12345 (exit $ac_status); } && 12346 { ac_try='test -z "$ac_c_werror_flag" 12347 || test ! -s conftest.err' 12348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12349 (eval $ac_try) 2>&5 12350 ac_status=$? 12351 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12352 (exit $ac_status); }; } && 12353 { ac_try='test -s conftest.$ac_objext' 12354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12355 (eval $ac_try) 2>&5 12356 ac_status=$? 12357 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12358 (exit $ac_status); }; }; then 12359 ac_lo=$ac_mid; break 12360 else 12361 echo "$as_me: failed program was:" >&5 12362 sed 's/^/| /' conftest.$ac_ext >&5 12363 12364 ac_hi=`expr '(' $ac_mid ')' - 1` 12365 if test $ac_mid -le $ac_hi; then 12366 ac_lo= ac_hi= 12367 break 12368 fi 12369 ac_mid=`expr 2 '*' $ac_mid` 12370 fi 12371 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12372 done 12373 else 12374 echo "$as_me: failed program was:" >&5 12375 sed 's/^/| /' conftest.$ac_ext >&5 12376 12377 ac_lo= ac_hi= 12378 fi 12379 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12380 fi 12381 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12382 # Binary search between lo and hi bounds. 12383 while test "x$ac_lo" != "x$ac_hi"; do 12384 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 12385 cat >conftest.$ac_ext <<_ACEOF 12386 /* confdefs.h. */ 12387 _ACEOF 12388 cat confdefs.h >>conftest.$ac_ext 12389 cat >>conftest.$ac_ext <<_ACEOF 12390 /* end confdefs.h. */ 12391 $ac_includes_default 12392 int 12393 main () 12394 { 12395 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; 12396 test_array [0] = 0 12397 12398 ; 12399 return 0; 12400 } 12401 _ACEOF 12402 rm -f conftest.$ac_objext 12403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12404 (eval $ac_compile) 2>conftest.er1 12405 ac_status=$? 12406 grep -v '^ *+' conftest.er1 >conftest.err 12407 rm -f conftest.er1 12408 cat conftest.err >&5 12409 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12410 (exit $ac_status); } && 12411 { ac_try='test -z "$ac_c_werror_flag" 12412 || test ! -s conftest.err' 12413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12414 (eval $ac_try) 2>&5 12415 ac_status=$? 12416 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12417 (exit $ac_status); }; } && 12418 { ac_try='test -s conftest.$ac_objext' 12419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12420 (eval $ac_try) 2>&5 12421 ac_status=$? 12422 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12423 (exit $ac_status); }; }; then 12424 ac_hi=$ac_mid 12425 else 12426 echo "$as_me: failed program was:" >&5 12427 sed 's/^/| /' conftest.$ac_ext >&5 12428 12429 ac_lo=`expr '(' $ac_mid ')' + 1` 12430 fi 12431 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12432 done 12433 case $ac_lo in 12434 ?*) ac_cv_sizeof_int=$ac_lo;; 12435 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 12436 See \`config.log' for more details." >&5 12437 echo "$as_me: error: cannot compute sizeof (int), 77 12438 See \`config.log' for more details." >&2;} 12439 { (exit 1); exit 1; }; } ;; 12440 esac 12441 else 12442 if test "$cross_compiling" = yes; then 12443 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 12444 See \`config.log' for more details." >&5 12445 echo "$as_me: error: cannot run test program while cross compiling 12446 See \`config.log' for more details." >&2;} 12447 { (exit 1); exit 1; }; } 12448 else 12449 cat >conftest.$ac_ext <<_ACEOF 12450 /* confdefs.h. */ 12451 _ACEOF 12452 cat confdefs.h >>conftest.$ac_ext 12453 cat >>conftest.$ac_ext <<_ACEOF 12454 /* end confdefs.h. */ 12455 $ac_includes_default 12456 long longval () { return (long) (sizeof (int)); } 12457 unsigned long ulongval () { return (long) (sizeof (int)); } 12458 #include <stdio.h> 12459 #include <stdlib.h> 12460 int 12461 main () 12462 { 12463 12464 FILE *f = fopen ("conftest.val", "w"); 12465 if (! f) 12466 exit (1); 12467 if (((long) (sizeof (int))) < 0) 12468 { 12469 long i = longval (); 12470 if (i != ((long) (sizeof (int)))) 12471 exit (1); 12472 fprintf (f, "%ld\n", i); 12473 } 12474 else 12475 { 12476 unsigned long i = ulongval (); 12477 if (i != ((long) (sizeof (int)))) 12478 exit (1); 12479 fprintf (f, "%lu\n", i); 12480 } 12481 exit (ferror (f) || fclose (f) != 0); 12482 12483 ; 12484 return 0; 12485 } 12486 _ACEOF 12487 rm -f conftest$ac_exeext 12488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12489 (eval $ac_link) 2>&5 12490 ac_status=$? 12491 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12492 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 12493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12494 (eval $ac_try) 2>&5 12495 ac_status=$? 12496 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12497 (exit $ac_status); }; }; then 12498 ac_cv_sizeof_int=`cat conftest.val` 12499 else 12500 echo "$as_me: program exited with status $ac_status" >&5 12501 echo "$as_me: failed program was:" >&5 12502 sed 's/^/| /' conftest.$ac_ext >&5 12503 12504 ( exit $ac_status ) 12505 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 12506 See \`config.log' for more details." >&5 12507 echo "$as_me: error: cannot compute sizeof (int), 77 12508 See \`config.log' for more details." >&2;} 12509 { (exit 1); exit 1; }; } 12510 fi 12511 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 12512 fi 12513 fi 12514 rm -f conftest.val 12515 else 12516 ac_cv_sizeof_int=0 12517 fi 12518 fi 12519 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 12520 echo "${ECHO_T}$ac_cv_sizeof_int" >&6 12521 cat >>confdefs.h <<_ACEOF 12522 #define SIZEOF_INT $ac_cv_sizeof_int 12523 _ACEOF 12524 12525 12526 echo "$as_me:$LINENO: checking for short" >&5 12527 echo $ECHO_N "checking for short... $ECHO_C" >&6 12528 if test "${ac_cv_type_short+set}" = set; then 12529 echo $ECHO_N "(cached) $ECHO_C" >&6 12530 else 12531 cat >conftest.$ac_ext <<_ACEOF 12532 /* confdefs.h. */ 12533 _ACEOF 12534 cat confdefs.h >>conftest.$ac_ext 12535 cat >>conftest.$ac_ext <<_ACEOF 12536 /* end confdefs.h. */ 12537 $ac_includes_default 12538 int 12539 main () 12540 { 12541 if ((short *) 0) 12542 return 0; 12543 if (sizeof (short)) 12544 return 0; 12545 ; 12546 return 0; 12547 } 12548 _ACEOF 12549 rm -f conftest.$ac_objext 12550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12551 (eval $ac_compile) 2>conftest.er1 12552 ac_status=$? 12553 grep -v '^ *+' conftest.er1 >conftest.err 12554 rm -f conftest.er1 12555 cat conftest.err >&5 12556 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12557 (exit $ac_status); } && 12558 { ac_try='test -z "$ac_c_werror_flag" 12559 || test ! -s conftest.err' 12560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12561 (eval $ac_try) 2>&5 12562 ac_status=$? 12563 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12564 (exit $ac_status); }; } && 12565 { ac_try='test -s conftest.$ac_objext' 12566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12567 (eval $ac_try) 2>&5 12568 ac_status=$? 12569 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12570 (exit $ac_status); }; }; then 12571 ac_cv_type_short=yes 12572 else 12573 echo "$as_me: failed program was:" >&5 12574 sed 's/^/| /' conftest.$ac_ext >&5 12575 12576 ac_cv_type_short=no 12577 fi 12578 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12579 fi 12580 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 12581 echo "${ECHO_T}$ac_cv_type_short" >&6 12582 12583 echo "$as_me:$LINENO: checking size of short" >&5 12584 echo $ECHO_N "checking size of short... $ECHO_C" >&6 12585 if test "${ac_cv_sizeof_short+set}" = set; then 12586 echo $ECHO_N "(cached) $ECHO_C" >&6 12587 else 12588 if test "$ac_cv_type_short" = yes; then 12589 # The cast to unsigned long works around a bug in the HP C Compiler 12590 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 12591 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 12592 # This bug is HP SR number 8606223364. 12593 if test "$cross_compiling" = yes; then 12594 # Depending upon the size, compute the lo and hi bounds. 12595 cat >conftest.$ac_ext <<_ACEOF 12596 /* confdefs.h. */ 12597 _ACEOF 12598 cat confdefs.h >>conftest.$ac_ext 12599 cat >>conftest.$ac_ext <<_ACEOF 12600 /* end confdefs.h. */ 12601 $ac_includes_default 12602 int 12603 main () 12604 { 12605 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; 12606 test_array [0] = 0 12607 12608 ; 12609 return 0; 12610 } 12611 _ACEOF 12612 rm -f conftest.$ac_objext 12613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12614 (eval $ac_compile) 2>conftest.er1 12615 ac_status=$? 12616 grep -v '^ *+' conftest.er1 >conftest.err 12617 rm -f conftest.er1 12618 cat conftest.err >&5 12619 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12620 (exit $ac_status); } && 12621 { ac_try='test -z "$ac_c_werror_flag" 12622 || test ! -s conftest.err' 12623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12624 (eval $ac_try) 2>&5 12625 ac_status=$? 12626 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12627 (exit $ac_status); }; } && 12628 { ac_try='test -s conftest.$ac_objext' 12629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12630 (eval $ac_try) 2>&5 12631 ac_status=$? 12632 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12633 (exit $ac_status); }; }; then 12634 ac_lo=0 ac_mid=0 12635 while :; do 12636 cat >conftest.$ac_ext <<_ACEOF 12637 /* confdefs.h. */ 12638 _ACEOF 12639 cat confdefs.h >>conftest.$ac_ext 12640 cat >>conftest.$ac_ext <<_ACEOF 12641 /* end confdefs.h. */ 12642 $ac_includes_default 12643 int 12644 main () 12645 { 12646 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; 12647 test_array [0] = 0 12648 12649 ; 12650 return 0; 12651 } 12652 _ACEOF 12653 rm -f conftest.$ac_objext 12654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12655 (eval $ac_compile) 2>conftest.er1 12656 ac_status=$? 12657 grep -v '^ *+' conftest.er1 >conftest.err 12658 rm -f conftest.er1 12659 cat conftest.err >&5 12660 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12661 (exit $ac_status); } && 12662 { ac_try='test -z "$ac_c_werror_flag" 12663 || test ! -s conftest.err' 12664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12665 (eval $ac_try) 2>&5 12666 ac_status=$? 12667 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12668 (exit $ac_status); }; } && 12669 { ac_try='test -s conftest.$ac_objext' 12670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12671 (eval $ac_try) 2>&5 12672 ac_status=$? 12673 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12674 (exit $ac_status); }; }; then 12675 ac_hi=$ac_mid; break 12676 else 12677 echo "$as_me: failed program was:" >&5 12678 sed 's/^/| /' conftest.$ac_ext >&5 12679 12680 ac_lo=`expr $ac_mid + 1` 12681 if test $ac_lo -le $ac_mid; then 12682 ac_lo= ac_hi= 12683 break 12684 fi 12685 ac_mid=`expr 2 '*' $ac_mid + 1` 12686 fi 12687 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12688 done 12689 else 12690 echo "$as_me: failed program was:" >&5 12691 sed 's/^/| /' conftest.$ac_ext >&5 12692 12693 cat >conftest.$ac_ext <<_ACEOF 12694 /* confdefs.h. */ 12695 _ACEOF 12696 cat confdefs.h >>conftest.$ac_ext 12697 cat >>conftest.$ac_ext <<_ACEOF 12698 /* end confdefs.h. */ 12699 $ac_includes_default 12700 int 12701 main () 12702 { 12703 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; 12704 test_array [0] = 0 12705 12706 ; 12707 return 0; 12708 } 12709 _ACEOF 12710 rm -f conftest.$ac_objext 12711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12712 (eval $ac_compile) 2>conftest.er1 12713 ac_status=$? 12714 grep -v '^ *+' conftest.er1 >conftest.err 12715 rm -f conftest.er1 12716 cat conftest.err >&5 12717 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12718 (exit $ac_status); } && 12719 { ac_try='test -z "$ac_c_werror_flag" 12720 || test ! -s conftest.err' 12721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12722 (eval $ac_try) 2>&5 12723 ac_status=$? 12724 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12725 (exit $ac_status); }; } && 12726 { ac_try='test -s conftest.$ac_objext' 12727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12728 (eval $ac_try) 2>&5 12729 ac_status=$? 12730 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12731 (exit $ac_status); }; }; then 12732 ac_hi=-1 ac_mid=-1 12733 while :; do 12734 cat >conftest.$ac_ext <<_ACEOF 12735 /* confdefs.h. */ 12736 _ACEOF 12737 cat confdefs.h >>conftest.$ac_ext 12738 cat >>conftest.$ac_ext <<_ACEOF 12739 /* end confdefs.h. */ 12740 $ac_includes_default 12741 int 12742 main () 12743 { 12744 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; 12745 test_array [0] = 0 12746 12747 ; 12748 return 0; 12749 } 12750 _ACEOF 12751 rm -f conftest.$ac_objext 12752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12753 (eval $ac_compile) 2>conftest.er1 12754 ac_status=$? 12755 grep -v '^ *+' conftest.er1 >conftest.err 12756 rm -f conftest.er1 12757 cat conftest.err >&5 12758 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12759 (exit $ac_status); } && 12760 { ac_try='test -z "$ac_c_werror_flag" 12761 || test ! -s conftest.err' 12762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12763 (eval $ac_try) 2>&5 12764 ac_status=$? 12765 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12766 (exit $ac_status); }; } && 12767 { ac_try='test -s conftest.$ac_objext' 12768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12769 (eval $ac_try) 2>&5 12770 ac_status=$? 12771 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12772 (exit $ac_status); }; }; then 12773 ac_lo=$ac_mid; break 12774 else 12775 echo "$as_me: failed program was:" >&5 12776 sed 's/^/| /' conftest.$ac_ext >&5 12777 12778 ac_hi=`expr '(' $ac_mid ')' - 1` 12779 if test $ac_mid -le $ac_hi; then 12780 ac_lo= ac_hi= 12781 break 12782 fi 12783 ac_mid=`expr 2 '*' $ac_mid` 12784 fi 12785 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12786 done 12787 else 12788 echo "$as_me: failed program was:" >&5 12789 sed 's/^/| /' conftest.$ac_ext >&5 12790 12791 ac_lo= ac_hi= 12792 fi 12793 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12794 fi 12795 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12796 # Binary search between lo and hi bounds. 12797 while test "x$ac_lo" != "x$ac_hi"; do 12798 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 12799 cat >conftest.$ac_ext <<_ACEOF 12800 /* confdefs.h. */ 12801 _ACEOF 12802 cat confdefs.h >>conftest.$ac_ext 12803 cat >>conftest.$ac_ext <<_ACEOF 12804 /* end confdefs.h. */ 12805 $ac_includes_default 12806 int 12807 main () 12808 { 12809 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; 12810 test_array [0] = 0 12811 12812 ; 12813 return 0; 12814 } 12815 _ACEOF 12816 rm -f conftest.$ac_objext 12817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12818 (eval $ac_compile) 2>conftest.er1 12819 ac_status=$? 12820 grep -v '^ *+' conftest.er1 >conftest.err 12821 rm -f conftest.er1 12822 cat conftest.err >&5 12823 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12824 (exit $ac_status); } && 12825 { ac_try='test -z "$ac_c_werror_flag" 12826 || test ! -s conftest.err' 12827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12828 (eval $ac_try) 2>&5 12829 ac_status=$? 12830 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12831 (exit $ac_status); }; } && 12832 { ac_try='test -s conftest.$ac_objext' 12833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12834 (eval $ac_try) 2>&5 12835 ac_status=$? 12836 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12837 (exit $ac_status); }; }; then 12838 ac_hi=$ac_mid 12839 else 12840 echo "$as_me: failed program was:" >&5 12841 sed 's/^/| /' conftest.$ac_ext >&5 12842 12843 ac_lo=`expr '(' $ac_mid ')' + 1` 12844 fi 12845 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12846 done 12847 case $ac_lo in 12848 ?*) ac_cv_sizeof_short=$ac_lo;; 12849 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 12850 See \`config.log' for more details." >&5 12851 echo "$as_me: error: cannot compute sizeof (short), 77 12852 See \`config.log' for more details." >&2;} 12853 { (exit 1); exit 1; }; } ;; 12854 esac 12855 else 12856 if test "$cross_compiling" = yes; then 12857 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 12858 See \`config.log' for more details." >&5 12859 echo "$as_me: error: cannot run test program while cross compiling 12860 See \`config.log' for more details." >&2;} 12861 { (exit 1); exit 1; }; } 12862 else 12863 cat >conftest.$ac_ext <<_ACEOF 12864 /* confdefs.h. */ 12865 _ACEOF 12866 cat confdefs.h >>conftest.$ac_ext 12867 cat >>conftest.$ac_ext <<_ACEOF 12868 /* end confdefs.h. */ 12869 $ac_includes_default 12870 long longval () { return (long) (sizeof (short)); } 12871 unsigned long ulongval () { return (long) (sizeof (short)); } 12872 #include <stdio.h> 12873 #include <stdlib.h> 12874 int 12875 main () 12876 { 12877 12878 FILE *f = fopen ("conftest.val", "w"); 12879 if (! f) 12880 exit (1); 12881 if (((long) (sizeof (short))) < 0) 12882 { 12883 long i = longval (); 12884 if (i != ((long) (sizeof (short)))) 12885 exit (1); 12886 fprintf (f, "%ld\n", i); 12887 } 12888 else 12889 { 12890 unsigned long i = ulongval (); 12891 if (i != ((long) (sizeof (short)))) 12892 exit (1); 12893 fprintf (f, "%lu\n", i); 12894 } 12895 exit (ferror (f) || fclose (f) != 0); 12896 12897 ; 12898 return 0; 12899 } 12900 _ACEOF 12901 rm -f conftest$ac_exeext 12902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12903 (eval $ac_link) 2>&5 12904 ac_status=$? 12905 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12906 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 12907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12908 (eval $ac_try) 2>&5 12909 ac_status=$? 12910 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12911 (exit $ac_status); }; }; then 12912 ac_cv_sizeof_short=`cat conftest.val` 12913 else 12914 echo "$as_me: program exited with status $ac_status" >&5 12915 echo "$as_me: failed program was:" >&5 12916 sed 's/^/| /' conftest.$ac_ext >&5 12917 12918 ( exit $ac_status ) 12919 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 12920 See \`config.log' for more details." >&5 12921 echo "$as_me: error: cannot compute sizeof (short), 77 12922 See \`config.log' for more details." >&2;} 12923 { (exit 1); exit 1; }; } 12924 fi 12925 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 12926 fi 12927 fi 12928 rm -f conftest.val 12929 else 12930 ac_cv_sizeof_short=0 12931 fi 12932 fi 12933 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 12934 echo "${ECHO_T}$ac_cv_sizeof_short" >&6 12935 cat >>confdefs.h <<_ACEOF 12936 #define SIZEOF_SHORT $ac_cv_sizeof_short 12937 _ACEOF 12938 12939 12940 fi 12941 FOUND=0 12942 for dc_cv_loop in \$ac_cv_sizeof_long_long \$ac_cv_sizeof_int \$ac_cv_sizeof_long \$ac_cv_sizeof_short; do 12943 dc_cv_size=`eval echo $dc_cv_loop` 12944 dc_cv_name=`echo $dc_cv_loop | sed s/\\\$ac_cv_sizeof_//` 12945 if test "$dc_cv_size" = "2"; then 12946 if test "$dc_cv_name" = "int"; then 12947 echo "$as_me:$LINENO: checking for uint16_t" >&5 12948 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6 12949 if test "${ac_cv_type_uint16_t+set}" = set; then 12950 echo $ECHO_N "(cached) $ECHO_C" >&6 12951 else 12952 cat >conftest.$ac_ext <<_ACEOF 12953 /* confdefs.h. */ 12954 _ACEOF 12955 cat confdefs.h >>conftest.$ac_ext 12956 cat >>conftest.$ac_ext <<_ACEOF 12957 /* end confdefs.h. */ 12958 $ac_includes_default 12959 int 12960 main () 12961 { 12962 if ((uint16_t *) 0) 12963 return 0; 12964 if (sizeof (uint16_t)) 12965 return 0; 12966 ; 12967 return 0; 12968 } 12969 _ACEOF 12970 rm -f conftest.$ac_objext 12971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12972 (eval $ac_compile) 2>conftest.er1 12973 ac_status=$? 12974 grep -v '^ *+' conftest.er1 >conftest.err 12975 rm -f conftest.er1 12976 cat conftest.err >&5 12977 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12978 (exit $ac_status); } && 12979 { ac_try='test -z "$ac_c_werror_flag" 12980 || test ! -s conftest.err' 12981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12982 (eval $ac_try) 2>&5 12983 ac_status=$? 12984 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12985 (exit $ac_status); }; } && 12986 { ac_try='test -s conftest.$ac_objext' 12987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12988 (eval $ac_try) 2>&5 12989 ac_status=$? 12990 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12991 (exit $ac_status); }; }; then 12992 ac_cv_type_uint16_t=yes 12993 else 12994 echo "$as_me: failed program was:" >&5 12995 sed 's/^/| /' conftest.$ac_ext >&5 12996 12997 ac_cv_type_uint16_t=no 12998 fi 12999 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 13000 fi 13001 echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5 13002 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6 13003 if test $ac_cv_type_uint16_t = yes; then 13004 : 13005 else 13006 13007 cat >>confdefs.h <<_ACEOF 13008 #define uint16_t unsigned int 13009 _ACEOF 13010 13011 fi 13012 13013 fi 13014 if test "$dc_cv_name" = "long"; then 13015 echo "$as_me:$LINENO: checking for uint16_t" >&5 13016 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6 13017 if test "${ac_cv_type_uint16_t+set}" = set; then 13018 echo $ECHO_N "(cached) $ECHO_C" >&6 13019 else 13020 cat >conftest.$ac_ext <<_ACEOF 13021 /* confdefs.h. */ 13022 _ACEOF 13023 cat confdefs.h >>conftest.$ac_ext 13024 cat >>conftest.$ac_ext <<_ACEOF 13025 /* end confdefs.h. */ 13026 $ac_includes_default 13027 int 13028 main () 13029 { 13030 if ((uint16_t *) 0) 13031 return 0; 13032 if (sizeof (uint16_t)) 13033 return 0; 13034 ; 13035 return 0; 13036 } 13037 _ACEOF 13038 rm -f conftest.$ac_objext 13039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13040 (eval $ac_compile) 2>conftest.er1 13041 ac_status=$? 13042 grep -v '^ *+' conftest.er1 >conftest.err 13043 rm -f conftest.er1 13044 cat conftest.err >&5 13045 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13046 (exit $ac_status); } && 13047 { ac_try='test -z "$ac_c_werror_flag" 13048 || test ! -s conftest.err' 13049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13050 (eval $ac_try) 2>&5 13051 ac_status=$? 13052 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13053 (exit $ac_status); }; } && 13054 { ac_try='test -s conftest.$ac_objext' 13055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13056 (eval $ac_try) 2>&5 13057 ac_status=$? 13058 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13059 (exit $ac_status); }; }; then 13060 ac_cv_type_uint16_t=yes 13061 else 13062 echo "$as_me: failed program was:" >&5 13063 sed 's/^/| /' conftest.$ac_ext >&5 13064 13065 ac_cv_type_uint16_t=no 13066 fi 13067 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 13068 fi 13069 echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5 13070 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6 13071 if test $ac_cv_type_uint16_t = yes; then 13072 : 13073 else 13074 13075 cat >>confdefs.h <<_ACEOF 13076 #define uint16_t unsigned long 13077 _ACEOF 13078 13079 fi 13080 13081 fi 13082 if test "$dc_cv_name" = "long_long"; then 13083 echo "$as_me:$LINENO: checking for uint16_t" >&5 13084 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6 13085 if test "${ac_cv_type_uint16_t+set}" = set; then 13086 echo $ECHO_N "(cached) $ECHO_C" >&6 13087 else 13088 cat >conftest.$ac_ext <<_ACEOF 13089 /* confdefs.h. */ 13090 _ACEOF 13091 cat confdefs.h >>conftest.$ac_ext 13092 cat >>conftest.$ac_ext <<_ACEOF 13093 /* end confdefs.h. */ 13094 $ac_includes_default 13095 int 13096 main () 13097 { 13098 if ((uint16_t *) 0) 13099 return 0; 13100 if (sizeof (uint16_t)) 13101 return 0; 13102 ; 13103 return 0; 13104 } 13105 _ACEOF 13106 rm -f conftest.$ac_objext 13107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13108 (eval $ac_compile) 2>conftest.er1 13109 ac_status=$? 13110 grep -v '^ *+' conftest.er1 >conftest.err 13111 rm -f conftest.er1 13112 cat conftest.err >&5 13113 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13114 (exit $ac_status); } && 13115 { ac_try='test -z "$ac_c_werror_flag" 13116 || test ! -s conftest.err' 13117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13118 (eval $ac_try) 2>&5 13119 ac_status=$? 13120 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13121 (exit $ac_status); }; } && 13122 { ac_try='test -s conftest.$ac_objext' 13123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13124 (eval $ac_try) 2>&5 13125 ac_status=$? 13126 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13127 (exit $ac_status); }; }; then 13128 ac_cv_type_uint16_t=yes 13129 else 13130 echo "$as_me: failed program was:" >&5 13131 sed 's/^/| /' conftest.$ac_ext >&5 13132 13133 ac_cv_type_uint16_t=no 13134 fi 13135 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 13136 fi 13137 echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5 13138 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6 13139 if test $ac_cv_type_uint16_t = yes; then 13140 : 13141 else 13142 13143 cat >>confdefs.h <<_ACEOF 13144 #define uint16_t unsigned long long 13145 _ACEOF 13146 13147 fi 13148 13149 fi 13150 if test "$dc_cv_name" = "short"; then 13151 echo "$as_me:$LINENO: checking for uint16_t" >&5 13152 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6 13153 if test "${ac_cv_type_uint16_t+set}" = set; then 13154 echo $ECHO_N "(cached) $ECHO_C" >&6 13155 else 13156 cat >conftest.$ac_ext <<_ACEOF 13157 /* confdefs.h. */ 13158 _ACEOF 13159 cat confdefs.h >>conftest.$ac_ext 13160 cat >>conftest.$ac_ext <<_ACEOF 13161 /* end confdefs.h. */ 13162 $ac_includes_default 13163 int 13164 main () 13165 { 13166 if ((uint16_t *) 0) 13167 return 0; 13168 if (sizeof (uint16_t)) 13169 return 0; 13170 ; 13171 return 0; 13172 } 13173 _ACEOF 13174 rm -f conftest.$ac_objext 13175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13176 (eval $ac_compile) 2>conftest.er1 13177 ac_status=$? 13178 grep -v '^ *+' conftest.er1 >conftest.err 13179 rm -f conftest.er1 13180 cat conftest.err >&5 13181 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13182 (exit $ac_status); } && 13183 { ac_try='test -z "$ac_c_werror_flag" 13184 || test ! -s conftest.err' 13185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13186 (eval $ac_try) 2>&5 13187 ac_status=$? 13188 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13189 (exit $ac_status); }; } && 13190 { ac_try='test -s conftest.$ac_objext' 13191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13192 (eval $ac_try) 2>&5 13193 ac_status=$? 13194 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13195 (exit $ac_status); }; }; then 13196 ac_cv_type_uint16_t=yes 13197 else 13198 echo "$as_me: failed program was:" >&5 13199 sed 's/^/| /' conftest.$ac_ext >&5 13200 13201 ac_cv_type_uint16_t=no 13202 fi 13203 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 13204 fi 13205 echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5 13206 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6 13207 if test $ac_cv_type_uint16_t = yes; then 13208 : 13209 else 13210 13211 cat >>confdefs.h <<_ACEOF 13212 #define uint16_t unsigned short 13213 _ACEOF 13214 13215 fi 13216 13217 fi 13218 FOUND=1 13219 break 13220 fi 13221 done 13222 13223 13224 if test -z "$ac_cv_sizeof_long"; then 13225 echo "$as_me:$LINENO: checking for inline" >&5 13226 echo $ECHO_N "checking for inline... $ECHO_C" >&6 13227 if test "${ac_cv_c_inline+set}" = set; then 13228 echo $ECHO_N "(cached) $ECHO_C" >&6 13229 else 13230 ac_cv_c_inline=no 13231 for ac_kw in inline __inline__ __inline; do 13232 cat >conftest.$ac_ext <<_ACEOF 13233 /* confdefs.h. */ 13234 _ACEOF 13235 cat confdefs.h >>conftest.$ac_ext 13236 cat >>conftest.$ac_ext <<_ACEOF 13237 /* end confdefs.h. */ 13238 #ifndef __cplusplus 13239 typedef int foo_t; 13240 static $ac_kw foo_t static_foo () {return 0; } 13241 $ac_kw foo_t foo () {return 0; } 13242 #endif 13243 13244 _ACEOF 13245 rm -f conftest.$ac_objext 13246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13247 (eval $ac_compile) 2>conftest.er1 13248 ac_status=$? 13249 grep -v '^ *+' conftest.er1 >conftest.err 13250 rm -f conftest.er1 13251 cat conftest.err >&5 13252 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13253 (exit $ac_status); } && 13254 { ac_try='test -z "$ac_c_werror_flag" 13255 || test ! -s conftest.err' 13256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13257 (eval $ac_try) 2>&5 13258 ac_status=$? 13259 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13260 (exit $ac_status); }; } && 13261 { ac_try='test -s conftest.$ac_objext' 13262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13263 (eval $ac_try) 2>&5 13264 ac_status=$? 13265 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13266 (exit $ac_status); }; }; then 13267 ac_cv_c_inline=$ac_kw; break 13268 else 13269 echo "$as_me: failed program was:" >&5 13270 sed 's/^/| /' conftest.$ac_ext >&5 13271 13272 fi 13273 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 13274 done 13275 13276 fi 13277 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 13278 echo "${ECHO_T}$ac_cv_c_inline" >&6 13279 13280 13281 case $ac_cv_c_inline in 13282 inline | yes) ;; 13283 *) 13284 case $ac_cv_c_inline in 13285 no) ac_val=;; 13286 *) ac_val=$ac_cv_c_inline;; 13287 esac 13288 cat >>confdefs.h <<_ACEOF 13289 #ifndef __cplusplus 13290 #define inline $ac_val 13291 #endif 13292 _ACEOF 13293 ;; 13294 esac 13295 13296 echo "$as_me:$LINENO: checking for long long" >&5 13297 echo $ECHO_N "checking for long long... $ECHO_C" >&6 13298 if test "${ac_cv_type_long_long+set}" = set; then 13299 echo $ECHO_N "(cached) $ECHO_C" >&6 13300 else 13301 cat >conftest.$ac_ext <<_ACEOF 13302 /* confdefs.h. */ 13303 _ACEOF 13304 cat confdefs.h >>conftest.$ac_ext 13305 cat >>conftest.$ac_ext <<_ACEOF 13306 /* end confdefs.h. */ 13307 $ac_includes_default 13308 int 13309 main () 13310 { 13311 if ((long long *) 0) 13312 return 0; 13313 if (sizeof (long long)) 13314 return 0; 13315 ; 13316 return 0; 13317 } 13318 _ACEOF 13319 rm -f conftest.$ac_objext 13320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13321 (eval $ac_compile) 2>conftest.er1 13322 ac_status=$? 13323 grep -v '^ *+' conftest.er1 >conftest.err 13324 rm -f conftest.er1 13325 cat conftest.err >&5 13326 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13327 (exit $ac_status); } && 13328 { ac_try='test -z "$ac_c_werror_flag" 13329 || test ! -s conftest.err' 13330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13331 (eval $ac_try) 2>&5 13332 ac_status=$? 13333 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13334 (exit $ac_status); }; } && 13335 { ac_try='test -s conftest.$ac_objext' 13336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13337 (eval $ac_try) 2>&5 13338 ac_status=$? 13339 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13340 (exit $ac_status); }; }; then 13341 ac_cv_type_long_long=yes 13342 else 13343 echo "$as_me: failed program was:" >&5 13344 sed 's/^/| /' conftest.$ac_ext >&5 13345 13346 ac_cv_type_long_long=no 13347 fi 13348 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 13349 fi 13350 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 13351 echo "${ECHO_T}$ac_cv_type_long_long" >&6 13352 13353 echo "$as_me:$LINENO: checking size of long long" >&5 13354 echo $ECHO_N "checking size of long long... $ECHO_C" >&6 13355 if test "${ac_cv_sizeof_long_long+set}" = set; then 13356 echo $ECHO_N "(cached) $ECHO_C" >&6 13357 else 13358 if test "$ac_cv_type_long_long" = yes; then 13359 # The cast to unsigned long works around a bug in the HP C Compiler 13360 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 13361 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 13362 # This bug is HP SR number 8606223364. 13363 if test "$cross_compiling" = yes; then 13364 # Depending upon the size, compute the lo and hi bounds. 13365 cat >conftest.$ac_ext <<_ACEOF 13366 /* confdefs.h. */ 13367 _ACEOF 13368 cat confdefs.h >>conftest.$ac_ext 13369 cat >>conftest.$ac_ext <<_ACEOF 13370 /* end confdefs.h. */ 13371 $ac_includes_default 13372 int 13373 main () 13374 { 13375 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; 13376 test_array [0] = 0 13377 13378 ; 13379 return 0; 13380 } 13381 _ACEOF 13382 rm -f conftest.$ac_objext 13383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13384 (eval $ac_compile) 2>conftest.er1 13385 ac_status=$? 13386 grep -v '^ *+' conftest.er1 >conftest.err 13387 rm -f conftest.er1 13388 cat conftest.err >&5 13389 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13390 (exit $ac_status); } && 13391 { ac_try='test -z "$ac_c_werror_flag" 13392 || test ! -s conftest.err' 13393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13394 (eval $ac_try) 2>&5 13395 ac_status=$? 13396 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13397 (exit $ac_status); }; } && 13398 { ac_try='test -s conftest.$ac_objext' 13399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13400 (eval $ac_try) 2>&5 13401 ac_status=$? 13402 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13403 (exit $ac_status); }; }; then 13404 ac_lo=0 ac_mid=0 13405 while :; do 13406 cat >conftest.$ac_ext <<_ACEOF 13407 /* confdefs.h. */ 13408 _ACEOF 13409 cat confdefs.h >>conftest.$ac_ext 13410 cat >>conftest.$ac_ext <<_ACEOF 13411 /* end confdefs.h. */ 13412 $ac_includes_default 13413 int 13414 main () 13415 { 13416 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; 13417 test_array [0] = 0 13418 13419 ; 13420 return 0; 13421 } 13422 _ACEOF 13423 rm -f conftest.$ac_objext 13424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13425 (eval $ac_compile) 2>conftest.er1 13426 ac_status=$? 13427 grep -v '^ *+' conftest.er1 >conftest.err 13428 rm -f conftest.er1 13429 cat conftest.err >&5 13430 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13431 (exit $ac_status); } && 13432 { ac_try='test -z "$ac_c_werror_flag" 13433 || test ! -s conftest.err' 13434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13435 (eval $ac_try) 2>&5 13436 ac_status=$? 13437 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13438 (exit $ac_status); }; } && 13439 { ac_try='test -s conftest.$ac_objext' 13440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13441 (eval $ac_try) 2>&5 13442 ac_status=$? 13443 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13444 (exit $ac_status); }; }; then 13445 ac_hi=$ac_mid; break 13446 else 13447 echo "$as_me: failed program was:" >&5 13448 sed 's/^/| /' conftest.$ac_ext >&5 13449 13450 ac_lo=`expr $ac_mid + 1` 13451 if test $ac_lo -le $ac_mid; then 13452 ac_lo= ac_hi= 13453 break 13454 fi 13455 ac_mid=`expr 2 '*' $ac_mid + 1` 13456 fi 13457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 13458 done 13459 else 13460 echo "$as_me: failed program was:" >&5 13461 sed 's/^/| /' conftest.$ac_ext >&5 13462 13463 cat >conftest.$ac_ext <<_ACEOF 13464 /* confdefs.h. */ 13465 _ACEOF 13466 cat confdefs.h >>conftest.$ac_ext 13467 cat >>conftest.$ac_ext <<_ACEOF 13468 /* end confdefs.h. */ 13469 $ac_includes_default 13470 int 13471 main () 13472 { 13473 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; 13474 test_array [0] = 0 13475 13476 ; 13477 return 0; 13478 } 13479 _ACEOF 13480 rm -f conftest.$ac_objext 13481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13482 (eval $ac_compile) 2>conftest.er1 13483 ac_status=$? 13484 grep -v '^ *+' conftest.er1 >conftest.err 13485 rm -f conftest.er1 13486 cat conftest.err >&5 13487 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13488 (exit $ac_status); } && 13489 { ac_try='test -z "$ac_c_werror_flag" 13490 || test ! -s conftest.err' 13491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13492 (eval $ac_try) 2>&5 13493 ac_status=$? 13494 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13495 (exit $ac_status); }; } && 13496 { ac_try='test -s conftest.$ac_objext' 13497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13498 (eval $ac_try) 2>&5 13499 ac_status=$? 13500 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13501 (exit $ac_status); }; }; then 13502 ac_hi=-1 ac_mid=-1 13503 while :; do 13504 cat >conftest.$ac_ext <<_ACEOF 13505 /* confdefs.h. */ 13506 _ACEOF 13507 cat confdefs.h >>conftest.$ac_ext 13508 cat >>conftest.$ac_ext <<_ACEOF 13509 /* end confdefs.h. */ 13510 $ac_includes_default 13511 int 13512 main () 13513 { 13514 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; 13515 test_array [0] = 0 13516 13517 ; 13518 return 0; 13519 } 13520 _ACEOF 13521 rm -f conftest.$ac_objext 13522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13523 (eval $ac_compile) 2>conftest.er1 13524 ac_status=$? 13525 grep -v '^ *+' conftest.er1 >conftest.err 13526 rm -f conftest.er1 13527 cat conftest.err >&5 13528 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13529 (exit $ac_status); } && 13530 { ac_try='test -z "$ac_c_werror_flag" 13531 || test ! -s conftest.err' 13532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13533 (eval $ac_try) 2>&5 13534 ac_status=$? 13535 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13536 (exit $ac_status); }; } && 13537 { ac_try='test -s conftest.$ac_objext' 13538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13539 (eval $ac_try) 2>&5 13540 ac_status=$? 13541 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13542 (exit $ac_status); }; }; then 13543 ac_lo=$ac_mid; break 13544 else 13545 echo "$as_me: failed program was:" >&5 13546 sed 's/^/| /' conftest.$ac_ext >&5 13547 13548 ac_hi=`expr '(' $ac_mid ')' - 1` 13549 if test $ac_mid -le $ac_hi; then 13550 ac_lo= ac_hi= 13551 break 13552 fi 13553 ac_mid=`expr 2 '*' $ac_mid` 13554 fi 13555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 13556 done 13557 else 13558 echo "$as_me: failed program was:" >&5 13559 sed 's/^/| /' conftest.$ac_ext >&5 13560 13561 ac_lo= ac_hi= 13562 fi 13563 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 13564 fi 13565 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 13566 # Binary search between lo and hi bounds. 13567 while test "x$ac_lo" != "x$ac_hi"; do 13568 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 13569 cat >conftest.$ac_ext <<_ACEOF 13570 /* confdefs.h. */ 13571 _ACEOF 13572 cat confdefs.h >>conftest.$ac_ext 13573 cat >>conftest.$ac_ext <<_ACEOF 13574 /* end confdefs.h. */ 13575 $ac_includes_default 13576 int 13577 main () 13578 { 13579 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; 13580 test_array [0] = 0 13581 13582 ; 13583 return 0; 13584 } 13585 _ACEOF 13586 rm -f conftest.$ac_objext 13587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13588 (eval $ac_compile) 2>conftest.er1 13589 ac_status=$? 13590 grep -v '^ *+' conftest.er1 >conftest.err 13591 rm -f conftest.er1 13592 cat conftest.err >&5 13593 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13594 (exit $ac_status); } && 13595 { ac_try='test -z "$ac_c_werror_flag" 13596 || test ! -s conftest.err' 13597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13598 (eval $ac_try) 2>&5 13599 ac_status=$? 13600 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13601 (exit $ac_status); }; } && 13602 { ac_try='test -s conftest.$ac_objext' 13603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13604 (eval $ac_try) 2>&5 13605 ac_status=$? 13606 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13607 (exit $ac_status); }; }; then 13608 ac_hi=$ac_mid 13609 else 13610 echo "$as_me: failed program was:" >&5 13611 sed 's/^/| /' conftest.$ac_ext >&5 13612 13613 ac_lo=`expr '(' $ac_mid ')' + 1` 13614 fi 13615 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 13616 done 13617 case $ac_lo in 13618 ?*) ac_cv_sizeof_long_long=$ac_lo;; 13619 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 13620 See \`config.log' for more details." >&5 13621 echo "$as_me: error: cannot compute sizeof (long long), 77 13622 See \`config.log' for more details." >&2;} 13623 { (exit 1); exit 1; }; } ;; 13624 esac 13625 else 13626 if test "$cross_compiling" = yes; then 13627 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 13628 See \`config.log' for more details." >&5 13629 echo "$as_me: error: cannot run test program while cross compiling 13630 See \`config.log' for more details." >&2;} 13631 { (exit 1); exit 1; }; } 13632 else 13633 cat >conftest.$ac_ext <<_ACEOF 13634 /* confdefs.h. */ 13635 _ACEOF 13636 cat confdefs.h >>conftest.$ac_ext 13637 cat >>conftest.$ac_ext <<_ACEOF 13638 /* end confdefs.h. */ 13639 $ac_includes_default 13640 long longval () { return (long) (sizeof (long long)); } 13641 unsigned long ulongval () { return (long) (sizeof (long long)); } 13642 #include <stdio.h> 13643 #include <stdlib.h> 13644 int 13645 main () 13646 { 13647 13648 FILE *f = fopen ("conftest.val", "w"); 13649 if (! f) 13650 exit (1); 13651 if (((long) (sizeof (long long))) < 0) 13652 { 13653 long i = longval (); 13654 if (i != ((long) (sizeof (long long)))) 13655 exit (1); 13656 fprintf (f, "%ld\n", i); 13657 } 13658 else 13659 { 13660 unsigned long i = ulongval (); 13661 if (i != ((long) (sizeof (long long)))) 13662 exit (1); 13663 fprintf (f, "%lu\n", i); 13664 } 13665 exit (ferror (f) || fclose (f) != 0); 13666 13667 ; 13668 return 0; 13669 } 13670 _ACEOF 13671 rm -f conftest$ac_exeext 13672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13673 (eval $ac_link) 2>&5 13674 ac_status=$? 13675 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13676 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 13677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13678 (eval $ac_try) 2>&5 13679 ac_status=$? 13680 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13681 (exit $ac_status); }; }; then 13682 ac_cv_sizeof_long_long=`cat conftest.val` 13683 else 13684 echo "$as_me: program exited with status $ac_status" >&5 13685 echo "$as_me: failed program was:" >&5 13686 sed 's/^/| /' conftest.$ac_ext >&5 13687 13688 ( exit $ac_status ) 13689 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 13690 See \`config.log' for more details." >&5 13691 echo "$as_me: error: cannot compute sizeof (long long), 77 13692 See \`config.log' for more details." >&2;} 13693 { (exit 1); exit 1; }; } 13694 fi 13695 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 13696 fi 13697 fi 13698 rm -f conftest.val 13699 else 13700 ac_cv_sizeof_long_long=0 13701 fi 13702 fi 13703 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 13704 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 13705 cat >>confdefs.h <<_ACEOF 13706 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long 13707 _ACEOF 13708 13709 13710 echo "$as_me:$LINENO: checking for long" >&5 13711 echo $ECHO_N "checking for long... $ECHO_C" >&6 13712 if test "${ac_cv_type_long+set}" = set; then 13713 echo $ECHO_N "(cached) $ECHO_C" >&6 13714 else 13715 cat >conftest.$ac_ext <<_ACEOF 13716 /* confdefs.h. */ 13717 _ACEOF 13718 cat confdefs.h >>conftest.$ac_ext 13719 cat >>conftest.$ac_ext <<_ACEOF 13720 /* end confdefs.h. */ 13721 $ac_includes_default 13722 int 13723 main () 13724 { 13725 if ((long *) 0) 13726 return 0; 13727 if (sizeof (long)) 13728 return 0; 13729 ; 13730 return 0; 13731 } 13732 _ACEOF 13733 rm -f conftest.$ac_objext 13734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13735 (eval $ac_compile) 2>conftest.er1 13736 ac_status=$? 13737 grep -v '^ *+' conftest.er1 >conftest.err 13738 rm -f conftest.er1 13739 cat conftest.err >&5 13740 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13741 (exit $ac_status); } && 13742 { ac_try='test -z "$ac_c_werror_flag" 13743 || test ! -s conftest.err' 13744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13745 (eval $ac_try) 2>&5 13746 ac_status=$? 13747 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13748 (exit $ac_status); }; } && 13749 { ac_try='test -s conftest.$ac_objext' 13750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13751 (eval $ac_try) 2>&5 13752 ac_status=$? 13753 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13754 (exit $ac_status); }; }; then 13755 ac_cv_type_long=yes 13756 else 13757 echo "$as_me: failed program was:" >&5 13758 sed 's/^/| /' conftest.$ac_ext >&5 13759 13760 ac_cv_type_long=no 13761 fi 13762 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 13763 fi 13764 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 13765 echo "${ECHO_T}$ac_cv_type_long" >&6 13766 13767 echo "$as_me:$LINENO: checking size of long" >&5 13768 echo $ECHO_N "checking size of long... $ECHO_C" >&6 13769 if test "${ac_cv_sizeof_long+set}" = set; then 13770 echo $ECHO_N "(cached) $ECHO_C" >&6 13771 else 13772 if test "$ac_cv_type_long" = yes; then 13773 # The cast to unsigned long works around a bug in the HP C Compiler 13774 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 13775 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 13776 # This bug is HP SR number 8606223364. 13777 if test "$cross_compiling" = yes; then 13778 # Depending upon the size, compute the lo and hi bounds. 13779 cat >conftest.$ac_ext <<_ACEOF 13780 /* confdefs.h. */ 13781 _ACEOF 13782 cat confdefs.h >>conftest.$ac_ext 13783 cat >>conftest.$ac_ext <<_ACEOF 13784 /* end confdefs.h. */ 13785 $ac_includes_default 13786 int 13787 main () 13788 { 13789 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; 13790 test_array [0] = 0 13791 13792 ; 13793 return 0; 13794 } 13795 _ACEOF 13796 rm -f conftest.$ac_objext 13797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13798 (eval $ac_compile) 2>conftest.er1 13799 ac_status=$? 13800 grep -v '^ *+' conftest.er1 >conftest.err 13801 rm -f conftest.er1 13802 cat conftest.err >&5 13803 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13804 (exit $ac_status); } && 13805 { ac_try='test -z "$ac_c_werror_flag" 13806 || test ! -s conftest.err' 13807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13808 (eval $ac_try) 2>&5 13809 ac_status=$? 13810 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13811 (exit $ac_status); }; } && 13812 { ac_try='test -s conftest.$ac_objext' 13813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13814 (eval $ac_try) 2>&5 13815 ac_status=$? 13816 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13817 (exit $ac_status); }; }; then 13818 ac_lo=0 ac_mid=0 13819 while :; do 13820 cat >conftest.$ac_ext <<_ACEOF 13821 /* confdefs.h. */ 13822 _ACEOF 13823 cat confdefs.h >>conftest.$ac_ext 13824 cat >>conftest.$ac_ext <<_ACEOF 13825 /* end confdefs.h. */ 13826 $ac_includes_default 13827 int 13828 main () 13829 { 13830 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; 13831 test_array [0] = 0 13832 13833 ; 13834 return 0; 13835 } 13836 _ACEOF 13837 rm -f conftest.$ac_objext 13838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13839 (eval $ac_compile) 2>conftest.er1 13840 ac_status=$? 13841 grep -v '^ *+' conftest.er1 >conftest.err 13842 rm -f conftest.er1 13843 cat conftest.err >&5 13844 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13845 (exit $ac_status); } && 13846 { ac_try='test -z "$ac_c_werror_flag" 13847 || test ! -s conftest.err' 13848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13849 (eval $ac_try) 2>&5 13850 ac_status=$? 13851 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13852 (exit $ac_status); }; } && 13853 { ac_try='test -s conftest.$ac_objext' 13854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13855 (eval $ac_try) 2>&5 13856 ac_status=$? 13857 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13858 (exit $ac_status); }; }; then 13859 ac_hi=$ac_mid; break 13860 else 13861 echo "$as_me: failed program was:" >&5 13862 sed 's/^/| /' conftest.$ac_ext >&5 13863 13864 ac_lo=`expr $ac_mid + 1` 13865 if test $ac_lo -le $ac_mid; then 13866 ac_lo= ac_hi= 13867 break 13868 fi 13869 ac_mid=`expr 2 '*' $ac_mid + 1` 13870 fi 13871 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 13872 done 13873 else 13874 echo "$as_me: failed program was:" >&5 13875 sed 's/^/| /' conftest.$ac_ext >&5 13876 13877 cat >conftest.$ac_ext <<_ACEOF 13878 /* confdefs.h. */ 13879 _ACEOF 13880 cat confdefs.h >>conftest.$ac_ext 13881 cat >>conftest.$ac_ext <<_ACEOF 13882 /* end confdefs.h. */ 13883 $ac_includes_default 13884 int 13885 main () 13886 { 13887 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; 13888 test_array [0] = 0 13889 13890 ; 13891 return 0; 13892 } 13893 _ACEOF 13894 rm -f conftest.$ac_objext 13895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13896 (eval $ac_compile) 2>conftest.er1 13897 ac_status=$? 13898 grep -v '^ *+' conftest.er1 >conftest.err 13899 rm -f conftest.er1 13900 cat conftest.err >&5 13901 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13902 (exit $ac_status); } && 13903 { ac_try='test -z "$ac_c_werror_flag" 13904 || test ! -s conftest.err' 13905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13906 (eval $ac_try) 2>&5 13907 ac_status=$? 13908 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13909 (exit $ac_status); }; } && 13910 { ac_try='test -s conftest.$ac_objext' 13911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13912 (eval $ac_try) 2>&5 13913 ac_status=$? 13914 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13915 (exit $ac_status); }; }; then 13916 ac_hi=-1 ac_mid=-1 13917 while :; do 13918 cat >conftest.$ac_ext <<_ACEOF 13919 /* confdefs.h. */ 13920 _ACEOF 13921 cat confdefs.h >>conftest.$ac_ext 13922 cat >>conftest.$ac_ext <<_ACEOF 13923 /* end confdefs.h. */ 13924 $ac_includes_default 13925 int 13926 main () 13927 { 13928 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; 13929 test_array [0] = 0 13930 13931 ; 13932 return 0; 13933 } 13934 _ACEOF 13935 rm -f conftest.$ac_objext 13936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13937 (eval $ac_compile) 2>conftest.er1 13938 ac_status=$? 13939 grep -v '^ *+' conftest.er1 >conftest.err 13940 rm -f conftest.er1 13941 cat conftest.err >&5 13942 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13943 (exit $ac_status); } && 13944 { ac_try='test -z "$ac_c_werror_flag" 13945 || test ! -s conftest.err' 13946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13947 (eval $ac_try) 2>&5 13948 ac_status=$? 13949 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13950 (exit $ac_status); }; } && 13951 { ac_try='test -s conftest.$ac_objext' 13952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13953 (eval $ac_try) 2>&5 13954 ac_status=$? 13955 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13956 (exit $ac_status); }; }; then 13957 ac_lo=$ac_mid; break 13958 else 13959 echo "$as_me: failed program was:" >&5 13960 sed 's/^/| /' conftest.$ac_ext >&5 13961 13962 ac_hi=`expr '(' $ac_mid ')' - 1` 13963 if test $ac_mid -le $ac_hi; then 13964 ac_lo= ac_hi= 13965 break 13966 fi 13967 ac_mid=`expr 2 '*' $ac_mid` 13968 fi 13969 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 13970 done 13971 else 13972 echo "$as_me: failed program was:" >&5 13973 sed 's/^/| /' conftest.$ac_ext >&5 13974 13975 ac_lo= ac_hi= 13976 fi 13977 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 13978 fi 13979 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 13980 # Binary search between lo and hi bounds. 13981 while test "x$ac_lo" != "x$ac_hi"; do 13982 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 13983 cat >conftest.$ac_ext <<_ACEOF 13984 /* confdefs.h. */ 13985 _ACEOF 13986 cat confdefs.h >>conftest.$ac_ext 13987 cat >>conftest.$ac_ext <<_ACEOF 13988 /* end confdefs.h. */ 13989 $ac_includes_default 13990 int 13991 main () 13992 { 13993 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; 13994 test_array [0] = 0 13995 13996 ; 13997 return 0; 13998 } 13999 _ACEOF 14000 rm -f conftest.$ac_objext 14001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14002 (eval $ac_compile) 2>conftest.er1 14003 ac_status=$? 14004 grep -v '^ *+' conftest.er1 >conftest.err 14005 rm -f conftest.er1 14006 cat conftest.err >&5 14007 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14008 (exit $ac_status); } && 14009 { ac_try='test -z "$ac_c_werror_flag" 14010 || test ! -s conftest.err' 14011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14012 (eval $ac_try) 2>&5 14013 ac_status=$? 14014 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14015 (exit $ac_status); }; } && 14016 { ac_try='test -s conftest.$ac_objext' 14017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14018 (eval $ac_try) 2>&5 14019 ac_status=$? 14020 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14021 (exit $ac_status); }; }; then 14022 ac_hi=$ac_mid 14023 else 14024 echo "$as_me: failed program was:" >&5 14025 sed 's/^/| /' conftest.$ac_ext >&5 14026 14027 ac_lo=`expr '(' $ac_mid ')' + 1` 14028 fi 14029 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 14030 done 14031 case $ac_lo in 14032 ?*) ac_cv_sizeof_long=$ac_lo;; 14033 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 14034 See \`config.log' for more details." >&5 14035 echo "$as_me: error: cannot compute sizeof (long), 77 14036 See \`config.log' for more details." >&2;} 14037 { (exit 1); exit 1; }; } ;; 14038 esac 14039 else 14040 if test "$cross_compiling" = yes; then 14041 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 14042 See \`config.log' for more details." >&5 14043 echo "$as_me: error: cannot run test program while cross compiling 14044 See \`config.log' for more details." >&2;} 14045 { (exit 1); exit 1; }; } 14046 else 14047 cat >conftest.$ac_ext <<_ACEOF 14048 /* confdefs.h. */ 14049 _ACEOF 14050 cat confdefs.h >>conftest.$ac_ext 14051 cat >>conftest.$ac_ext <<_ACEOF 14052 /* end confdefs.h. */ 14053 $ac_includes_default 14054 long longval () { return (long) (sizeof (long)); } 14055 unsigned long ulongval () { return (long) (sizeof (long)); } 14056 #include <stdio.h> 14057 #include <stdlib.h> 14058 int 14059 main () 14060 { 14061 14062 FILE *f = fopen ("conftest.val", "w"); 14063 if (! f) 14064 exit (1); 14065 if (((long) (sizeof (long))) < 0) 14066 { 14067 long i = longval (); 14068 if (i != ((long) (sizeof (long)))) 14069 exit (1); 14070 fprintf (f, "%ld\n", i); 14071 } 14072 else 14073 { 14074 unsigned long i = ulongval (); 14075 if (i != ((long) (sizeof (long)))) 14076 exit (1); 14077 fprintf (f, "%lu\n", i); 14078 } 14079 exit (ferror (f) || fclose (f) != 0); 14080 14081 ; 14082 return 0; 14083 } 14084 _ACEOF 14085 rm -f conftest$ac_exeext 14086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14087 (eval $ac_link) 2>&5 14088 ac_status=$? 14089 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14090 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 14091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14092 (eval $ac_try) 2>&5 14093 ac_status=$? 14094 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14095 (exit $ac_status); }; }; then 14096 ac_cv_sizeof_long=`cat conftest.val` 14097 else 14098 echo "$as_me: program exited with status $ac_status" >&5 14099 echo "$as_me: failed program was:" >&5 14100 sed 's/^/| /' conftest.$ac_ext >&5 14101 14102 ( exit $ac_status ) 14103 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 14104 See \`config.log' for more details." >&5 14105 echo "$as_me: error: cannot compute sizeof (long), 77 14106 See \`config.log' for more details." >&2;} 14107 { (exit 1); exit 1; }; } 14108 fi 14109 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 14110 fi 14111 fi 14112 rm -f conftest.val 14113 else 14114 ac_cv_sizeof_long=0 14115 fi 14116 fi 14117 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 14118 echo "${ECHO_T}$ac_cv_sizeof_long" >&6 14119 cat >>confdefs.h <<_ACEOF 14120 #define SIZEOF_LONG $ac_cv_sizeof_long 14121 _ACEOF 14122 14123 14124 echo "$as_me:$LINENO: checking for int" >&5 14125 echo $ECHO_N "checking for int... $ECHO_C" >&6 14126 if test "${ac_cv_type_int+set}" = set; then 14127 echo $ECHO_N "(cached) $ECHO_C" >&6 14128 else 14129 cat >conftest.$ac_ext <<_ACEOF 14130 /* confdefs.h. */ 14131 _ACEOF 14132 cat confdefs.h >>conftest.$ac_ext 14133 cat >>conftest.$ac_ext <<_ACEOF 14134 /* end confdefs.h. */ 14135 $ac_includes_default 14136 int 14137 main () 14138 { 14139 if ((int *) 0) 14140 return 0; 14141 if (sizeof (int)) 14142 return 0; 14143 ; 14144 return 0; 14145 } 14146 _ACEOF 14147 rm -f conftest.$ac_objext 14148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14149 (eval $ac_compile) 2>conftest.er1 14150 ac_status=$? 14151 grep -v '^ *+' conftest.er1 >conftest.err 14152 rm -f conftest.er1 14153 cat conftest.err >&5 14154 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14155 (exit $ac_status); } && 14156 { ac_try='test -z "$ac_c_werror_flag" 14157 || test ! -s conftest.err' 14158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14159 (eval $ac_try) 2>&5 14160 ac_status=$? 14161 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14162 (exit $ac_status); }; } && 14163 { ac_try='test -s conftest.$ac_objext' 14164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14165 (eval $ac_try) 2>&5 14166 ac_status=$? 14167 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14168 (exit $ac_status); }; }; then 14169 ac_cv_type_int=yes 14170 else 14171 echo "$as_me: failed program was:" >&5 14172 sed 's/^/| /' conftest.$ac_ext >&5 14173 14174 ac_cv_type_int=no 14175 fi 14176 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 14177 fi 14178 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 14179 echo "${ECHO_T}$ac_cv_type_int" >&6 14180 14181 echo "$as_me:$LINENO: checking size of int" >&5 14182 echo $ECHO_N "checking size of int... $ECHO_C" >&6 14183 if test "${ac_cv_sizeof_int+set}" = set; then 14184 echo $ECHO_N "(cached) $ECHO_C" >&6 14185 else 14186 if test "$ac_cv_type_int" = yes; then 14187 # The cast to unsigned long works around a bug in the HP C Compiler 14188 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14189 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14190 # This bug is HP SR number 8606223364. 14191 if test "$cross_compiling" = yes; then 14192 # Depending upon the size, compute the lo and hi bounds. 14193 cat >conftest.$ac_ext <<_ACEOF 14194 /* confdefs.h. */ 14195 _ACEOF 14196 cat confdefs.h >>conftest.$ac_ext 14197 cat >>conftest.$ac_ext <<_ACEOF 14198 /* end confdefs.h. */ 14199 $ac_includes_default 14200 int 14201 main () 14202 { 14203 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; 14204 test_array [0] = 0 14205 14206 ; 14207 return 0; 14208 } 14209 _ACEOF 14210 rm -f conftest.$ac_objext 14211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14212 (eval $ac_compile) 2>conftest.er1 14213 ac_status=$? 14214 grep -v '^ *+' conftest.er1 >conftest.err 14215 rm -f conftest.er1 14216 cat conftest.err >&5 14217 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14218 (exit $ac_status); } && 14219 { ac_try='test -z "$ac_c_werror_flag" 14220 || test ! -s conftest.err' 14221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14222 (eval $ac_try) 2>&5 14223 ac_status=$? 14224 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14225 (exit $ac_status); }; } && 14226 { ac_try='test -s conftest.$ac_objext' 14227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14228 (eval $ac_try) 2>&5 14229 ac_status=$? 14230 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14231 (exit $ac_status); }; }; then 14232 ac_lo=0 ac_mid=0 14233 while :; do 14234 cat >conftest.$ac_ext <<_ACEOF 14235 /* confdefs.h. */ 14236 _ACEOF 14237 cat confdefs.h >>conftest.$ac_ext 14238 cat >>conftest.$ac_ext <<_ACEOF 14239 /* end confdefs.h. */ 14240 $ac_includes_default 14241 int 14242 main () 14243 { 14244 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; 14245 test_array [0] = 0 14246 14247 ; 14248 return 0; 14249 } 14250 _ACEOF 14251 rm -f conftest.$ac_objext 14252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14253 (eval $ac_compile) 2>conftest.er1 14254 ac_status=$? 14255 grep -v '^ *+' conftest.er1 >conftest.err 14256 rm -f conftest.er1 14257 cat conftest.err >&5 14258 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14259 (exit $ac_status); } && 14260 { ac_try='test -z "$ac_c_werror_flag" 14261 || test ! -s conftest.err' 14262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14263 (eval $ac_try) 2>&5 14264 ac_status=$? 14265 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14266 (exit $ac_status); }; } && 14267 { ac_try='test -s conftest.$ac_objext' 14268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14269 (eval $ac_try) 2>&5 14270 ac_status=$? 14271 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14272 (exit $ac_status); }; }; then 14273 ac_hi=$ac_mid; break 14274 else 14275 echo "$as_me: failed program was:" >&5 14276 sed 's/^/| /' conftest.$ac_ext >&5 14277 14278 ac_lo=`expr $ac_mid + 1` 14279 if test $ac_lo -le $ac_mid; then 14280 ac_lo= ac_hi= 14281 break 14282 fi 14283 ac_mid=`expr 2 '*' $ac_mid + 1` 14284 fi 14285 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 14286 done 14287 else 14288 echo "$as_me: failed program was:" >&5 14289 sed 's/^/| /' conftest.$ac_ext >&5 14290 14291 cat >conftest.$ac_ext <<_ACEOF 14292 /* confdefs.h. */ 14293 _ACEOF 14294 cat confdefs.h >>conftest.$ac_ext 14295 cat >>conftest.$ac_ext <<_ACEOF 14296 /* end confdefs.h. */ 14297 $ac_includes_default 14298 int 14299 main () 14300 { 14301 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; 14302 test_array [0] = 0 14303 14304 ; 14305 return 0; 14306 } 14307 _ACEOF 14308 rm -f conftest.$ac_objext 14309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14310 (eval $ac_compile) 2>conftest.er1 14311 ac_status=$? 14312 grep -v '^ *+' conftest.er1 >conftest.err 14313 rm -f conftest.er1 14314 cat conftest.err >&5 14315 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14316 (exit $ac_status); } && 14317 { ac_try='test -z "$ac_c_werror_flag" 14318 || test ! -s conftest.err' 14319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14320 (eval $ac_try) 2>&5 14321 ac_status=$? 14322 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14323 (exit $ac_status); }; } && 14324 { ac_try='test -s conftest.$ac_objext' 14325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14326 (eval $ac_try) 2>&5 14327 ac_status=$? 14328 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14329 (exit $ac_status); }; }; then 14330 ac_hi=-1 ac_mid=-1 14331 while :; do 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 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; 14343 test_array [0] = 0 14344 14345 ; 14346 return 0; 14347 } 14348 _ACEOF 14349 rm -f conftest.$ac_objext 14350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14351 (eval $ac_compile) 2>conftest.er1 14352 ac_status=$? 14353 grep -v '^ *+' conftest.er1 >conftest.err 14354 rm -f conftest.er1 14355 cat conftest.err >&5 14356 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14357 (exit $ac_status); } && 14358 { ac_try='test -z "$ac_c_werror_flag" 14359 || test ! -s conftest.err' 14360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14361 (eval $ac_try) 2>&5 14362 ac_status=$? 14363 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14364 (exit $ac_status); }; } && 14365 { ac_try='test -s conftest.$ac_objext' 14366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14367 (eval $ac_try) 2>&5 14368 ac_status=$? 14369 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14370 (exit $ac_status); }; }; then 14371 ac_lo=$ac_mid; break 14372 else 14373 echo "$as_me: failed program was:" >&5 14374 sed 's/^/| /' conftest.$ac_ext >&5 14375 14376 ac_hi=`expr '(' $ac_mid ')' - 1` 14377 if test $ac_mid -le $ac_hi; then 14378 ac_lo= ac_hi= 14379 break 14380 fi 14381 ac_mid=`expr 2 '*' $ac_mid` 14382 fi 14383 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 14384 done 14385 else 14386 echo "$as_me: failed program was:" >&5 14387 sed 's/^/| /' conftest.$ac_ext >&5 14388 14389 ac_lo= ac_hi= 14390 fi 14391 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 14392 fi 14393 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 14394 # Binary search between lo and hi bounds. 14395 while test "x$ac_lo" != "x$ac_hi"; do 14396 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 14397 cat >conftest.$ac_ext <<_ACEOF 14398 /* confdefs.h. */ 14399 _ACEOF 14400 cat confdefs.h >>conftest.$ac_ext 14401 cat >>conftest.$ac_ext <<_ACEOF 14402 /* end confdefs.h. */ 14403 $ac_includes_default 14404 int 14405 main () 14406 { 14407 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; 14408 test_array [0] = 0 14409 14410 ; 14411 return 0; 14412 } 14413 _ACEOF 14414 rm -f conftest.$ac_objext 14415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14416 (eval $ac_compile) 2>conftest.er1 14417 ac_status=$? 14418 grep -v '^ *+' conftest.er1 >conftest.err 14419 rm -f conftest.er1 14420 cat conftest.err >&5 14421 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14422 (exit $ac_status); } && 14423 { ac_try='test -z "$ac_c_werror_flag" 14424 || test ! -s conftest.err' 14425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14426 (eval $ac_try) 2>&5 14427 ac_status=$? 14428 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14429 (exit $ac_status); }; } && 14430 { ac_try='test -s conftest.$ac_objext' 14431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14432 (eval $ac_try) 2>&5 14433 ac_status=$? 14434 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14435 (exit $ac_status); }; }; then 14436 ac_hi=$ac_mid 14437 else 14438 echo "$as_me: failed program was:" >&5 14439 sed 's/^/| /' conftest.$ac_ext >&5 14440 14441 ac_lo=`expr '(' $ac_mid ')' + 1` 14442 fi 14443 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 14444 done 14445 case $ac_lo in 14446 ?*) ac_cv_sizeof_int=$ac_lo;; 14447 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 14448 See \`config.log' for more details." >&5 14449 echo "$as_me: error: cannot compute sizeof (int), 77 14450 See \`config.log' for more details." >&2;} 14451 { (exit 1); exit 1; }; } ;; 14452 esac 14453 else 14454 if test "$cross_compiling" = yes; then 14455 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 14456 See \`config.log' for more details." >&5 14457 echo "$as_me: error: cannot run test program while cross compiling 14458 See \`config.log' for more details." >&2;} 14459 { (exit 1); exit 1; }; } 14460 else 14461 cat >conftest.$ac_ext <<_ACEOF 14462 /* confdefs.h. */ 14463 _ACEOF 14464 cat confdefs.h >>conftest.$ac_ext 14465 cat >>conftest.$ac_ext <<_ACEOF 14466 /* end confdefs.h. */ 14467 $ac_includes_default 14468 long longval () { return (long) (sizeof (int)); } 14469 unsigned long ulongval () { return (long) (sizeof (int)); } 14470 #include <stdio.h> 14471 #include <stdlib.h> 14472 int 14473 main () 14474 { 14475 14476 FILE *f = fopen ("conftest.val", "w"); 14477 if (! f) 14478 exit (1); 14479 if (((long) (sizeof (int))) < 0) 14480 { 14481 long i = longval (); 14482 if (i != ((long) (sizeof (int)))) 14483 exit (1); 14484 fprintf (f, "%ld\n", i); 14485 } 14486 else 14487 { 14488 unsigned long i = ulongval (); 14489 if (i != ((long) (sizeof (int)))) 14490 exit (1); 14491 fprintf (f, "%lu\n", i); 14492 } 14493 exit (ferror (f) || fclose (f) != 0); 14494 14495 ; 14496 return 0; 14497 } 14498 _ACEOF 14499 rm -f conftest$ac_exeext 14500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14501 (eval $ac_link) 2>&5 14502 ac_status=$? 14503 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14504 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 14505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14506 (eval $ac_try) 2>&5 14507 ac_status=$? 14508 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14509 (exit $ac_status); }; }; then 14510 ac_cv_sizeof_int=`cat conftest.val` 14511 else 14512 echo "$as_me: program exited with status $ac_status" >&5 14513 echo "$as_me: failed program was:" >&5 14514 sed 's/^/| /' conftest.$ac_ext >&5 14515 14516 ( exit $ac_status ) 14517 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 14518 See \`config.log' for more details." >&5 14519 echo "$as_me: error: cannot compute sizeof (int), 77 14520 See \`config.log' for more details." >&2;} 14521 { (exit 1); exit 1; }; } 14522 fi 14523 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 14524 fi 14525 fi 14526 rm -f conftest.val 14527 else 14528 ac_cv_sizeof_int=0 14529 fi 14530 fi 14531 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 14532 echo "${ECHO_T}$ac_cv_sizeof_int" >&6 14533 cat >>confdefs.h <<_ACEOF 14534 #define SIZEOF_INT $ac_cv_sizeof_int 14535 _ACEOF 14536 14537 14538 echo "$as_me:$LINENO: checking for short" >&5 14539 echo $ECHO_N "checking for short... $ECHO_C" >&6 14540 if test "${ac_cv_type_short+set}" = set; then 14541 echo $ECHO_N "(cached) $ECHO_C" >&6 14542 else 14543 cat >conftest.$ac_ext <<_ACEOF 14544 /* confdefs.h. */ 14545 _ACEOF 14546 cat confdefs.h >>conftest.$ac_ext 14547 cat >>conftest.$ac_ext <<_ACEOF 14548 /* end confdefs.h. */ 14549 $ac_includes_default 14550 int 14551 main () 14552 { 14553 if ((short *) 0) 14554 return 0; 14555 if (sizeof (short)) 14556 return 0; 14557 ; 14558 return 0; 14559 } 14560 _ACEOF 14561 rm -f conftest.$ac_objext 14562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14563 (eval $ac_compile) 2>conftest.er1 14564 ac_status=$? 14565 grep -v '^ *+' conftest.er1 >conftest.err 14566 rm -f conftest.er1 14567 cat conftest.err >&5 14568 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14569 (exit $ac_status); } && 14570 { ac_try='test -z "$ac_c_werror_flag" 14571 || test ! -s conftest.err' 14572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14573 (eval $ac_try) 2>&5 14574 ac_status=$? 14575 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14576 (exit $ac_status); }; } && 14577 { ac_try='test -s conftest.$ac_objext' 14578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14579 (eval $ac_try) 2>&5 14580 ac_status=$? 14581 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14582 (exit $ac_status); }; }; then 14583 ac_cv_type_short=yes 14584 else 14585 echo "$as_me: failed program was:" >&5 14586 sed 's/^/| /' conftest.$ac_ext >&5 14587 14588 ac_cv_type_short=no 14589 fi 14590 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 14591 fi 14592 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 14593 echo "${ECHO_T}$ac_cv_type_short" >&6 14594 14595 echo "$as_me:$LINENO: checking size of short" >&5 14596 echo $ECHO_N "checking size of short... $ECHO_C" >&6 14597 if test "${ac_cv_sizeof_short+set}" = set; then 14598 echo $ECHO_N "(cached) $ECHO_C" >&6 14599 else 14600 if test "$ac_cv_type_short" = yes; then 14601 # The cast to unsigned long works around a bug in the HP C Compiler 14602 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14603 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14604 # This bug is HP SR number 8606223364. 14605 if test "$cross_compiling" = yes; then 14606 # Depending upon the size, compute the lo and hi bounds. 14607 cat >conftest.$ac_ext <<_ACEOF 14608 /* confdefs.h. */ 14609 _ACEOF 14610 cat confdefs.h >>conftest.$ac_ext 14611 cat >>conftest.$ac_ext <<_ACEOF 14612 /* end confdefs.h. */ 14613 $ac_includes_default 14614 int 14615 main () 14616 { 14617 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; 14618 test_array [0] = 0 14619 14620 ; 14621 return 0; 14622 } 14623 _ACEOF 14624 rm -f conftest.$ac_objext 14625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14626 (eval $ac_compile) 2>conftest.er1 14627 ac_status=$? 14628 grep -v '^ *+' conftest.er1 >conftest.err 14629 rm -f conftest.er1 14630 cat conftest.err >&5 14631 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14632 (exit $ac_status); } && 14633 { ac_try='test -z "$ac_c_werror_flag" 14634 || test ! -s conftest.err' 14635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14636 (eval $ac_try) 2>&5 14637 ac_status=$? 14638 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14639 (exit $ac_status); }; } && 14640 { ac_try='test -s conftest.$ac_objext' 14641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14642 (eval $ac_try) 2>&5 14643 ac_status=$? 14644 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14645 (exit $ac_status); }; }; then 14646 ac_lo=0 ac_mid=0 14647 while :; do 14648 cat >conftest.$ac_ext <<_ACEOF 14649 /* confdefs.h. */ 14650 _ACEOF 14651 cat confdefs.h >>conftest.$ac_ext 14652 cat >>conftest.$ac_ext <<_ACEOF 14653 /* end confdefs.h. */ 14654 $ac_includes_default 14655 int 14656 main () 14657 { 14658 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; 14659 test_array [0] = 0 14660 14661 ; 14662 return 0; 14663 } 14664 _ACEOF 14665 rm -f conftest.$ac_objext 14666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14667 (eval $ac_compile) 2>conftest.er1 14668 ac_status=$? 14669 grep -v '^ *+' conftest.er1 >conftest.err 14670 rm -f conftest.er1 14671 cat conftest.err >&5 14672 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14673 (exit $ac_status); } && 14674 { ac_try='test -z "$ac_c_werror_flag" 14675 || test ! -s conftest.err' 14676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14677 (eval $ac_try) 2>&5 14678 ac_status=$? 14679 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14680 (exit $ac_status); }; } && 14681 { ac_try='test -s conftest.$ac_objext' 14682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14683 (eval $ac_try) 2>&5 14684 ac_status=$? 14685 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14686 (exit $ac_status); }; }; then 14687 ac_hi=$ac_mid; break 14688 else 14689 echo "$as_me: failed program was:" >&5 14690 sed 's/^/| /' conftest.$ac_ext >&5 14691 14692 ac_lo=`expr $ac_mid + 1` 14693 if test $ac_lo -le $ac_mid; then 14694 ac_lo= ac_hi= 14695 break 14696 fi 14697 ac_mid=`expr 2 '*' $ac_mid + 1` 14698 fi 14699 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 14700 done 14701 else 14702 echo "$as_me: failed program was:" >&5 14703 sed 's/^/| /' conftest.$ac_ext >&5 14704 14705 cat >conftest.$ac_ext <<_ACEOF 14706 /* confdefs.h. */ 14707 _ACEOF 14708 cat confdefs.h >>conftest.$ac_ext 14709 cat >>conftest.$ac_ext <<_ACEOF 14710 /* end confdefs.h. */ 14711 $ac_includes_default 14712 int 14713 main () 14714 { 14715 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; 14716 test_array [0] = 0 14717 14718 ; 14719 return 0; 14720 } 14721 _ACEOF 14722 rm -f conftest.$ac_objext 14723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14724 (eval $ac_compile) 2>conftest.er1 14725 ac_status=$? 14726 grep -v '^ *+' conftest.er1 >conftest.err 14727 rm -f conftest.er1 14728 cat conftest.err >&5 14729 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14730 (exit $ac_status); } && 14731 { ac_try='test -z "$ac_c_werror_flag" 14732 || test ! -s conftest.err' 14733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14734 (eval $ac_try) 2>&5 14735 ac_status=$? 14736 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14737 (exit $ac_status); }; } && 14738 { ac_try='test -s conftest.$ac_objext' 14739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14740 (eval $ac_try) 2>&5 14741 ac_status=$? 14742 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14743 (exit $ac_status); }; }; then 14744 ac_hi=-1 ac_mid=-1 14745 while :; do 14746 cat >conftest.$ac_ext <<_ACEOF 14747 /* confdefs.h. */ 14748 _ACEOF 14749 cat confdefs.h >>conftest.$ac_ext 14750 cat >>conftest.$ac_ext <<_ACEOF 14751 /* end confdefs.h. */ 14752 $ac_includes_default 14753 int 14754 main () 14755 { 14756 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; 14757 test_array [0] = 0 14758 14759 ; 14760 return 0; 14761 } 14762 _ACEOF 14763 rm -f conftest.$ac_objext 14764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14765 (eval $ac_compile) 2>conftest.er1 14766 ac_status=$? 14767 grep -v '^ *+' conftest.er1 >conftest.err 14768 rm -f conftest.er1 14769 cat conftest.err >&5 14770 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14771 (exit $ac_status); } && 14772 { ac_try='test -z "$ac_c_werror_flag" 14773 || test ! -s conftest.err' 14774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14775 (eval $ac_try) 2>&5 14776 ac_status=$? 14777 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14778 (exit $ac_status); }; } && 14779 { ac_try='test -s conftest.$ac_objext' 14780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14781 (eval $ac_try) 2>&5 14782 ac_status=$? 14783 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14784 (exit $ac_status); }; }; then 14785 ac_lo=$ac_mid; break 14786 else 14787 echo "$as_me: failed program was:" >&5 14788 sed 's/^/| /' conftest.$ac_ext >&5 14789 14790 ac_hi=`expr '(' $ac_mid ')' - 1` 14791 if test $ac_mid -le $ac_hi; then 14792 ac_lo= ac_hi= 14793 break 14794 fi 14795 ac_mid=`expr 2 '*' $ac_mid` 14796 fi 14797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 14798 done 14799 else 14800 echo "$as_me: failed program was:" >&5 14801 sed 's/^/| /' conftest.$ac_ext >&5 14802 14803 ac_lo= ac_hi= 14804 fi 14805 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 14806 fi 14807 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 14808 # Binary search between lo and hi bounds. 14809 while test "x$ac_lo" != "x$ac_hi"; do 14810 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 14811 cat >conftest.$ac_ext <<_ACEOF 14812 /* confdefs.h. */ 14813 _ACEOF 14814 cat confdefs.h >>conftest.$ac_ext 14815 cat >>conftest.$ac_ext <<_ACEOF 14816 /* end confdefs.h. */ 14817 $ac_includes_default 14818 int 14819 main () 14820 { 14821 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; 14822 test_array [0] = 0 14823 14824 ; 14825 return 0; 14826 } 14827 _ACEOF 14828 rm -f conftest.$ac_objext 14829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14830 (eval $ac_compile) 2>conftest.er1 14831 ac_status=$? 14832 grep -v '^ *+' conftest.er1 >conftest.err 14833 rm -f conftest.er1 14834 cat conftest.err >&5 14835 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14836 (exit $ac_status); } && 14837 { ac_try='test -z "$ac_c_werror_flag" 14838 || test ! -s conftest.err' 14839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14840 (eval $ac_try) 2>&5 14841 ac_status=$? 14842 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14843 (exit $ac_status); }; } && 14844 { ac_try='test -s conftest.$ac_objext' 14845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14846 (eval $ac_try) 2>&5 14847 ac_status=$? 14848 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14849 (exit $ac_status); }; }; then 14850 ac_hi=$ac_mid 14851 else 14852 echo "$as_me: failed program was:" >&5 14853 sed 's/^/| /' conftest.$ac_ext >&5 14854 14855 ac_lo=`expr '(' $ac_mid ')' + 1` 14856 fi 14857 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 14858 done 14859 case $ac_lo in 14860 ?*) ac_cv_sizeof_short=$ac_lo;; 14861 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 14862 See \`config.log' for more details." >&5 14863 echo "$as_me: error: cannot compute sizeof (short), 77 14864 See \`config.log' for more details." >&2;} 14865 { (exit 1); exit 1; }; } ;; 14866 esac 14867 else 14868 if test "$cross_compiling" = yes; then 14869 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 14870 See \`config.log' for more details." >&5 14871 echo "$as_me: error: cannot run test program while cross compiling 14872 See \`config.log' for more details." >&2;} 14873 { (exit 1); exit 1; }; } 14874 else 14875 cat >conftest.$ac_ext <<_ACEOF 14876 /* confdefs.h. */ 14877 _ACEOF 14878 cat confdefs.h >>conftest.$ac_ext 14879 cat >>conftest.$ac_ext <<_ACEOF 14880 /* end confdefs.h. */ 14881 $ac_includes_default 14882 long longval () { return (long) (sizeof (short)); } 14883 unsigned long ulongval () { return (long) (sizeof (short)); } 14884 #include <stdio.h> 14885 #include <stdlib.h> 14886 int 14887 main () 14888 { 14889 14890 FILE *f = fopen ("conftest.val", "w"); 14891 if (! f) 14892 exit (1); 14893 if (((long) (sizeof (short))) < 0) 14894 { 14895 long i = longval (); 14896 if (i != ((long) (sizeof (short)))) 14897 exit (1); 14898 fprintf (f, "%ld\n", i); 14899 } 14900 else 14901 { 14902 unsigned long i = ulongval (); 14903 if (i != ((long) (sizeof (short)))) 14904 exit (1); 14905 fprintf (f, "%lu\n", i); 14906 } 14907 exit (ferror (f) || fclose (f) != 0); 14908 14909 ; 14910 return 0; 14911 } 14912 _ACEOF 14913 rm -f conftest$ac_exeext 14914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14915 (eval $ac_link) 2>&5 14916 ac_status=$? 14917 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14918 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 14919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14920 (eval $ac_try) 2>&5 14921 ac_status=$? 14922 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14923 (exit $ac_status); }; }; then 14924 ac_cv_sizeof_short=`cat conftest.val` 14925 else 14926 echo "$as_me: program exited with status $ac_status" >&5 14927 echo "$as_me: failed program was:" >&5 14928 sed 's/^/| /' conftest.$ac_ext >&5 14929 14930 ( exit $ac_status ) 14931 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 14932 See \`config.log' for more details." >&5 14933 echo "$as_me: error: cannot compute sizeof (short), 77 14934 See \`config.log' for more details." >&2;} 14935 { (exit 1); exit 1; }; } 14936 fi 14937 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 14938 fi 14939 fi 14940 rm -f conftest.val 14941 else 14942 ac_cv_sizeof_short=0 14943 fi 14944 fi 14945 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 14946 echo "${ECHO_T}$ac_cv_sizeof_short" >&6 14947 cat >>confdefs.h <<_ACEOF 14948 #define SIZEOF_SHORT $ac_cv_sizeof_short 14949 _ACEOF 14950 14951 14952 fi 14953 FOUND=0 14954 for dc_cv_loop in \$ac_cv_sizeof_long_long \$ac_cv_sizeof_int \$ac_cv_sizeof_long \$ac_cv_sizeof_short; do 14955 dc_cv_size=`eval echo $dc_cv_loop` 14956 dc_cv_name=`echo $dc_cv_loop | sed s/\\\$ac_cv_sizeof_//` 14957 if test "$dc_cv_size" = "2"; then 14958 if test "$dc_cv_name" = "int"; then 14959 echo "$as_me:$LINENO: checking for int16_t" >&5 14960 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6 14961 if test "${ac_cv_type_int16_t+set}" = set; then 14962 echo $ECHO_N "(cached) $ECHO_C" >&6 14963 else 14964 cat >conftest.$ac_ext <<_ACEOF 14965 /* confdefs.h. */ 14966 _ACEOF 14967 cat confdefs.h >>conftest.$ac_ext 14968 cat >>conftest.$ac_ext <<_ACEOF 14969 /* end confdefs.h. */ 14970 $ac_includes_default 14971 int 14972 main () 14973 { 14974 if ((int16_t *) 0) 14975 return 0; 14976 if (sizeof (int16_t)) 14977 return 0; 14978 ; 14979 return 0; 14980 } 14981 _ACEOF 14982 rm -f conftest.$ac_objext 14983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14984 (eval $ac_compile) 2>conftest.er1 14985 ac_status=$? 14986 grep -v '^ *+' conftest.er1 >conftest.err 14987 rm -f conftest.er1 14988 cat conftest.err >&5 14989 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14990 (exit $ac_status); } && 14991 { ac_try='test -z "$ac_c_werror_flag" 14992 || test ! -s conftest.err' 14993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14994 (eval $ac_try) 2>&5 14995 ac_status=$? 14996 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14997 (exit $ac_status); }; } && 14998 { ac_try='test -s conftest.$ac_objext' 14999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15000 (eval $ac_try) 2>&5 15001 ac_status=$? 15002 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15003 (exit $ac_status); }; }; then 15004 ac_cv_type_int16_t=yes 15005 else 15006 echo "$as_me: failed program was:" >&5 15007 sed 's/^/| /' conftest.$ac_ext >&5 15008 15009 ac_cv_type_int16_t=no 15010 fi 15011 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 15012 fi 15013 echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5 15014 echo "${ECHO_T}$ac_cv_type_int16_t" >&6 15015 if test $ac_cv_type_int16_t = yes; then 15016 : 15017 else 15018 15019 cat >>confdefs.h <<_ACEOF 15020 #define int16_t signed int 15021 _ACEOF 15022 15023 fi 15024 15025 fi 15026 if test "$dc_cv_name" = "long"; then 15027 echo "$as_me:$LINENO: checking for int16_t" >&5 15028 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6 15029 if test "${ac_cv_type_int16_t+set}" = set; then 15030 echo $ECHO_N "(cached) $ECHO_C" >&6 15031 else 15032 cat >conftest.$ac_ext <<_ACEOF 15033 /* confdefs.h. */ 15034 _ACEOF 15035 cat confdefs.h >>conftest.$ac_ext 15036 cat >>conftest.$ac_ext <<_ACEOF 15037 /* end confdefs.h. */ 15038 $ac_includes_default 15039 int 15040 main () 15041 { 15042 if ((int16_t *) 0) 15043 return 0; 15044 if (sizeof (int16_t)) 15045 return 0; 15046 ; 15047 return 0; 15048 } 15049 _ACEOF 15050 rm -f conftest.$ac_objext 15051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15052 (eval $ac_compile) 2>conftest.er1 15053 ac_status=$? 15054 grep -v '^ *+' conftest.er1 >conftest.err 15055 rm -f conftest.er1 15056 cat conftest.err >&5 15057 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15058 (exit $ac_status); } && 15059 { ac_try='test -z "$ac_c_werror_flag" 15060 || test ! -s conftest.err' 15061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15062 (eval $ac_try) 2>&5 15063 ac_status=$? 15064 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15065 (exit $ac_status); }; } && 15066 { ac_try='test -s conftest.$ac_objext' 15067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15068 (eval $ac_try) 2>&5 15069 ac_status=$? 15070 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15071 (exit $ac_status); }; }; then 15072 ac_cv_type_int16_t=yes 15073 else 15074 echo "$as_me: failed program was:" >&5 15075 sed 's/^/| /' conftest.$ac_ext >&5 15076 15077 ac_cv_type_int16_t=no 15078 fi 15079 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 15080 fi 15081 echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5 15082 echo "${ECHO_T}$ac_cv_type_int16_t" >&6 15083 if test $ac_cv_type_int16_t = yes; then 15084 : 15085 else 15086 15087 cat >>confdefs.h <<_ACEOF 15088 #define int16_t signed long 15089 _ACEOF 15090 15091 fi 15092 15093 fi 15094 if test "$dc_cv_name" = "long_long"; then 15095 echo "$as_me:$LINENO: checking for int16_t" >&5 15096 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6 15097 if test "${ac_cv_type_int16_t+set}" = set; then 15098 echo $ECHO_N "(cached) $ECHO_C" >&6 15099 else 15100 cat >conftest.$ac_ext <<_ACEOF 15101 /* confdefs.h. */ 15102 _ACEOF 15103 cat confdefs.h >>conftest.$ac_ext 15104 cat >>conftest.$ac_ext <<_ACEOF 15105 /* end confdefs.h. */ 15106 $ac_includes_default 15107 int 15108 main () 15109 { 15110 if ((int16_t *) 0) 15111 return 0; 15112 if (sizeof (int16_t)) 15113 return 0; 15114 ; 15115 return 0; 15116 } 15117 _ACEOF 15118 rm -f conftest.$ac_objext 15119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15120 (eval $ac_compile) 2>conftest.er1 15121 ac_status=$? 15122 grep -v '^ *+' conftest.er1 >conftest.err 15123 rm -f conftest.er1 15124 cat conftest.err >&5 15125 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15126 (exit $ac_status); } && 15127 { ac_try='test -z "$ac_c_werror_flag" 15128 || test ! -s conftest.err' 15129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15130 (eval $ac_try) 2>&5 15131 ac_status=$? 15132 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15133 (exit $ac_status); }; } && 15134 { ac_try='test -s conftest.$ac_objext' 15135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15136 (eval $ac_try) 2>&5 15137 ac_status=$? 15138 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15139 (exit $ac_status); }; }; then 15140 ac_cv_type_int16_t=yes 15141 else 15142 echo "$as_me: failed program was:" >&5 15143 sed 's/^/| /' conftest.$ac_ext >&5 15144 15145 ac_cv_type_int16_t=no 15146 fi 15147 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 15148 fi 15149 echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5 15150 echo "${ECHO_T}$ac_cv_type_int16_t" >&6 15151 if test $ac_cv_type_int16_t = yes; then 15152 : 15153 else 15154 15155 cat >>confdefs.h <<_ACEOF 15156 #define int16_t signed long long 15157 _ACEOF 15158 15159 fi 15160 15161 fi 15162 if test "$dc_cv_name" = "short"; then 15163 echo "$as_me:$LINENO: checking for int16_t" >&5 15164 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6 15165 if test "${ac_cv_type_int16_t+set}" = set; then 15166 echo $ECHO_N "(cached) $ECHO_C" >&6 15167 else 15168 cat >conftest.$ac_ext <<_ACEOF 15169 /* confdefs.h. */ 15170 _ACEOF 15171 cat confdefs.h >>conftest.$ac_ext 15172 cat >>conftest.$ac_ext <<_ACEOF 15173 /* end confdefs.h. */ 15174 $ac_includes_default 15175 int 15176 main () 15177 { 15178 if ((int16_t *) 0) 15179 return 0; 15180 if (sizeof (int16_t)) 15181 return 0; 15182 ; 15183 return 0; 15184 } 15185 _ACEOF 15186 rm -f conftest.$ac_objext 15187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15188 (eval $ac_compile) 2>conftest.er1 15189 ac_status=$? 15190 grep -v '^ *+' conftest.er1 >conftest.err 15191 rm -f conftest.er1 15192 cat conftest.err >&5 15193 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15194 (exit $ac_status); } && 15195 { ac_try='test -z "$ac_c_werror_flag" 15196 || test ! -s conftest.err' 15197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15198 (eval $ac_try) 2>&5 15199 ac_status=$? 15200 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15201 (exit $ac_status); }; } && 15202 { ac_try='test -s conftest.$ac_objext' 15203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15204 (eval $ac_try) 2>&5 15205 ac_status=$? 15206 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15207 (exit $ac_status); }; }; then 15208 ac_cv_type_int16_t=yes 15209 else 15210 echo "$as_me: failed program was:" >&5 15211 sed 's/^/| /' conftest.$ac_ext >&5 15212 15213 ac_cv_type_int16_t=no 15214 fi 15215 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 15216 fi 15217 echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5 15218 echo "${ECHO_T}$ac_cv_type_int16_t" >&6 15219 if test $ac_cv_type_int16_t = yes; then 15220 : 15221 else 15222 15223 cat >>confdefs.h <<_ACEOF 15224 #define int16_t signed short 15225 _ACEOF 15226 15227 fi 15228 15229 fi 15230 FOUND=1 15231 break 15232 fi 15233 done 15234 15235 15236 15237 SMALL=0 15238 # Check whether --enable-small or --disable-small was given. 15239 if test "${enable_small+set}" = set; then 15240 enableval="$enable_small" 15241 15242 case $enableval in 15243 yes) 15244 SMALL=1 15245 ;; 15246 esac 15247 15248 fi; 15249 15250 if test $SMALL = 0; then 15251 15252 15253 # Check whether --with-libopennet or --without-libopennet was given. 15254 if test "${with_libopennet+set}" = set; then 15255 withval="$with_libopennet" 15256 15257 # Specified 15258 LIBSPEC=$withval 15259 15260 else 15261 15262 # Not specified 15263 LIBSPECFLAGS=`pkg-config --libs libopennet 2>/dev/null` 15264 LIBSPECCFLAGS=`pkg-config --cflags libopennet 2>/dev/null` 15265 echo "$as_me:$LINENO: checking for fopen_net in -lopennet" >&5 15266 echo $ECHO_N "checking for fopen_net in -lopennet... $ECHO_C" >&6 15267 if test "${ac_cv_lib_opennet_fopen_net+set}" = set; then 15268 echo $ECHO_N "(cached) $ECHO_C" >&6 15269 else 15270 ac_check_lib_save_LIBS=$LIBS 15271 LIBS="-lopennet $LIBSPECFLAGS $LIBS" 15272 cat >conftest.$ac_ext <<_ACEOF 15273 /* confdefs.h. */ 15274 _ACEOF 15275 cat confdefs.h >>conftest.$ac_ext 15276 cat >>conftest.$ac_ext <<_ACEOF 15277 /* end confdefs.h. */ 15278 15279 /* Override any gcc2 internal prototype to avoid an error. */ 15280 #ifdef __cplusplus 15281 extern "C" 15282 #endif 15283 /* We use char because int might match the return type of a gcc2 15284 builtin and then its argument prototype would still apply. */ 15285 char fopen_net (); 15286 int 15287 main () 15288 { 15289 fopen_net (); 15290 ; 15291 return 0; 15292 } 15293 _ACEOF 15294 rm -f conftest.$ac_objext conftest$ac_exeext 15295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 15296 (eval $ac_link) 2>conftest.er1 15297 ac_status=$? 15298 grep -v '^ *+' conftest.er1 >conftest.err 15299 rm -f conftest.er1 15300 cat conftest.err >&5 15301 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15302 (exit $ac_status); } && 15303 { ac_try='test -z "$ac_c_werror_flag" 15304 || test ! -s conftest.err' 15305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15306 (eval $ac_try) 2>&5 15307 ac_status=$? 15308 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15309 (exit $ac_status); }; } && 15310 { ac_try='test -s conftest$ac_exeext' 15311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15312 (eval $ac_try) 2>&5 15313 ac_status=$? 15314 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15315 (exit $ac_status); }; }; then 15316 ac_cv_lib_opennet_fopen_net=yes 15317 else 15318 echo "$as_me: failed program was:" >&5 15319 sed 's/^/| /' conftest.$ac_ext >&5 15320 15321 ac_cv_lib_opennet_fopen_net=no 15322 fi 15323 rm -f conftest.err conftest.$ac_objext \ 15324 conftest$ac_exeext conftest.$ac_ext 15325 LIBS=$ac_check_lib_save_LIBS 15326 fi 15327 echo "$as_me:$LINENO: result: $ac_cv_lib_opennet_fopen_net" >&5 15328 echo "${ECHO_T}$ac_cv_lib_opennet_fopen_net" >&6 15329 if test $ac_cv_lib_opennet_fopen_net = yes; then 15330 15331 OLDCPPFLAGS="$CPPFLAGS" 15332 OLDCFLAGS="$CFLAGS" 15333 CPPFLAGS="$CPPFLAGS $LIBSPECCFLAGS" 15334 CFLAGS="$CFLAGS $LIBSPECCFLAGS" 15335 if test "${ac_cv_header_opennet_h+set}" = set; then 15336 echo "$as_me:$LINENO: checking for opennet.h" >&5 15337 echo $ECHO_N "checking for opennet.h... $ECHO_C" >&6 15338 if test "${ac_cv_header_opennet_h+set}" = set; then 15339 echo $ECHO_N "(cached) $ECHO_C" >&6 15340 fi 15341 echo "$as_me:$LINENO: result: $ac_cv_header_opennet_h" >&5 15342 echo "${ECHO_T}$ac_cv_header_opennet_h" >&6 15343 else 15344 # Is the header compilable? 15345 echo "$as_me:$LINENO: checking opennet.h usability" >&5 15346 echo $ECHO_N "checking opennet.h usability... $ECHO_C" >&6 15347 cat >conftest.$ac_ext <<_ACEOF 15348 /* confdefs.h. */ 15349 _ACEOF 15350 cat confdefs.h >>conftest.$ac_ext 15351 cat >>conftest.$ac_ext <<_ACEOF 15352 /* end confdefs.h. */ 15353 $ac_includes_default 15354 #include <opennet.h> 15355 _ACEOF 15356 rm -f conftest.$ac_objext 15357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15358 (eval $ac_compile) 2>conftest.er1 15359 ac_status=$? 15360 grep -v '^ *+' conftest.er1 >conftest.err 15361 rm -f conftest.er1 15362 cat conftest.err >&5 15363 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15364 (exit $ac_status); } && 15365 { ac_try='test -z "$ac_c_werror_flag" 15366 || test ! -s conftest.err' 15367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15368 (eval $ac_try) 2>&5 15369 ac_status=$? 15370 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15371 (exit $ac_status); }; } && 15372 { ac_try='test -s conftest.$ac_objext' 15373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15374 (eval $ac_try) 2>&5 15375 ac_status=$? 15376 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15377 (exit $ac_status); }; }; then 15378 ac_header_compiler=yes 15379 else 15380 echo "$as_me: failed program was:" >&5 15381 sed 's/^/| /' conftest.$ac_ext >&5 15382 15383 ac_header_compiler=no 15384 fi 15385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 15386 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 15387 echo "${ECHO_T}$ac_header_compiler" >&6 15388 15389 # Is the header present? 15390 echo "$as_me:$LINENO: checking opennet.h presence" >&5 15391 echo $ECHO_N "checking opennet.h presence... $ECHO_C" >&6 15392 cat >conftest.$ac_ext <<_ACEOF 15393 /* confdefs.h. */ 15394 _ACEOF 15395 cat confdefs.h >>conftest.$ac_ext 15396 cat >>conftest.$ac_ext <<_ACEOF 15397 /* end confdefs.h. */ 15398 #include <opennet.h> 15399 _ACEOF 15400 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 15401 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 15402 ac_status=$? 15403 grep -v '^ *+' conftest.er1 >conftest.err 15404 rm -f conftest.er1 15405 cat conftest.err >&5 15406 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15407 (exit $ac_status); } >/dev/null; then 15408 if test -s conftest.err; then 15409 ac_cpp_err=$ac_c_preproc_warn_flag 15410 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 15411 else 15412 ac_cpp_err= 15413 fi 15414 else 15415 ac_cpp_err=yes 15416 fi 15417 if test -z "$ac_cpp_err"; then 15418 ac_header_preproc=yes 15419 else 15420 echo "$as_me: failed program was:" >&5 15421 sed 's/^/| /' conftest.$ac_ext >&5 15422 15423 ac_header_preproc=no 15424 fi 15425 rm -f conftest.err conftest.$ac_ext 15426 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 15427 echo "${ECHO_T}$ac_header_preproc" >&6 15428 15429 # So? What about this header? 15430 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 15431 yes:no: ) 15432 { echo "$as_me:$LINENO: WARNING: opennet.h: accepted by the compiler, rejected by the preprocessor!" >&5 15433 echo "$as_me: WARNING: opennet.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 15434 { echo "$as_me:$LINENO: WARNING: opennet.h: proceeding with the compiler's result" >&5 15435 echo "$as_me: WARNING: opennet.h: proceeding with the compiler's result" >&2;} 15436 ac_header_preproc=yes 15437 ;; 15438 no:yes:* ) 15439 { echo "$as_me:$LINENO: WARNING: opennet.h: present but cannot be compiled" >&5 15440 echo "$as_me: WARNING: opennet.h: present but cannot be compiled" >&2;} 15441 { echo "$as_me:$LINENO: WARNING: opennet.h: check for missing prerequisite headers?" >&5 15442 echo "$as_me: WARNING: opennet.h: check for missing prerequisite headers?" >&2;} 15443 { echo "$as_me:$LINENO: WARNING: opennet.h: see the Autoconf documentation" >&5 15444 echo "$as_me: WARNING: opennet.h: see the Autoconf documentation" >&2;} 15445 { echo "$as_me:$LINENO: WARNING: opennet.h: section \"Present But Cannot Be Compiled\"" >&5 15446 echo "$as_me: WARNING: opennet.h: section \"Present But Cannot Be Compiled\"" >&2;} 15447 { echo "$as_me:$LINENO: WARNING: opennet.h: proceeding with the preprocessor's result" >&5 15448 echo "$as_me: WARNING: opennet.h: proceeding with the preprocessor's result" >&2;} 15449 { echo "$as_me:$LINENO: WARNING: opennet.h: in the future, the compiler will take precedence" >&5 15450 echo "$as_me: WARNING: opennet.h: in the future, the compiler will take precedence" >&2;} 15451 ( 15452 cat <<\_ASBOX 15453 ## ------------------------------------ ## 15454 ## Report this to the libconfig lists. ## 15455 ## ------------------------------------ ## 15456 _ASBOX 15457 ) | 15458 sed "s/^/$as_me: WARNING: /" >&2 15459 ;; 15460 esac 15461 echo "$as_me:$LINENO: checking for opennet.h" >&5 15462 echo $ECHO_N "checking for opennet.h... $ECHO_C" >&6 15463 if test "${ac_cv_header_opennet_h+set}" = set; then 15464 echo $ECHO_N "(cached) $ECHO_C" >&6 15465 else 15466 ac_cv_header_opennet_h=$ac_header_preproc 15467 fi 15468 echo "$as_me:$LINENO: result: $ac_cv_header_opennet_h" >&5 15469 echo "${ECHO_T}$ac_cv_header_opennet_h" >&6 15470 15471 fi 15472 if test $ac_cv_header_opennet_h = yes; then 15473 15474 LIBSPEC=yes 15475 15476 else 15477 15478 LIBSPEC=no 15479 15480 fi 15481 15482 15483 CPPFLAGS="$OLDCPPFLAGS" 15484 CFLAGS="$OLDCFLAGS" 15485 15486 else 15487 15488 LIBSPEC=no 15489 { echo "$as_me:$LINENO: WARNING: Didn't find libopennet" >&5 15490 echo "$as_me: WARNING: Didn't find libopennet" >&2;} 15491 15492 fi 15493 15494 15495 fi; 15496 case $LIBSPEC in 15497 no) 15498 { echo "$as_me:$LINENO: WARNING: Support for libopennet disabled" >&5 15499 echo "$as_me: WARNING: Support for libopennet disabled" >&2;} 15500 ;; 15501 *) 15502 if test "${LIBSPEC}" = "yes"; then 15503 true 15504 else 15505 LIBSPECFLAGS="-L${LIBSPEC}/lib ${LIBSPECFLAGS}" 15506 LIBSPECCFLAGS="-I${LIBSPEC}/include ${LIBSPECCFLAGS}" 15507 fi 15508 echo "$as_me:$LINENO: checking for fopen_net in -lopennet" >&5 15509 echo $ECHO_N "checking for fopen_net in -lopennet... $ECHO_C" >&6 15510 if test "${ac_cv_lib_opennet_fopen_net+set}" = set; then 15511 echo $ECHO_N "(cached) $ECHO_C" >&6 15512 else 15513 ac_check_lib_save_LIBS=$LIBS 15514 LIBS="-lopennet $LIBSPECFLAGS $LIBS" 15515 cat >conftest.$ac_ext <<_ACEOF 15516 /* confdefs.h. */ 15517 _ACEOF 15518 cat confdefs.h >>conftest.$ac_ext 15519 cat >>conftest.$ac_ext <<_ACEOF 15520 /* end confdefs.h. */ 15521 15522 /* Override any gcc2 internal prototype to avoid an error. */ 15523 #ifdef __cplusplus 15524 extern "C" 15525 #endif 15526 /* We use char because int might match the return type of a gcc2 15527 builtin and then its argument prototype would still apply. */ 15528 char fopen_net (); 15529 int 15530 main () 15531 { 15532 fopen_net (); 15533 ; 15534 return 0; 15535 } 15536 _ACEOF 15537 rm -f conftest.$ac_objext conftest$ac_exeext 15538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 15539 (eval $ac_link) 2>conftest.er1 15540 ac_status=$? 15541 grep -v '^ *+' conftest.er1 >conftest.err 15542 rm -f conftest.er1 15543 cat conftest.err >&5 15544 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15545 (exit $ac_status); } && 15546 { ac_try='test -z "$ac_c_werror_flag" 15547 || test ! -s conftest.err' 15548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15549 (eval $ac_try) 2>&5 15550 ac_status=$? 15551 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15552 (exit $ac_status); }; } && 15553 { ac_try='test -s conftest$ac_exeext' 15554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15555 (eval $ac_try) 2>&5 15556 ac_status=$? 15557 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15558 (exit $ac_status); }; }; then 15559 ac_cv_lib_opennet_fopen_net=yes 15560 else 15561 echo "$as_me: failed program was:" >&5 15562 sed 's/^/| /' conftest.$ac_ext >&5 15563 15564 ac_cv_lib_opennet_fopen_net=no 15565 fi 15566 rm -f conftest.err conftest.$ac_objext \ 15567 conftest$ac_exeext conftest.$ac_ext 15568 LIBS=$ac_check_lib_save_LIBS 15569 fi 15570 echo "$as_me:$LINENO: result: $ac_cv_lib_opennet_fopen_net" >&5 15571 echo "${ECHO_T}$ac_cv_lib_opennet_fopen_net" >&6 15572 if test $ac_cv_lib_opennet_fopen_net = yes; then 15573 15574 OLDCFLAGS="$CFLAGS" 15575 OLDCPPFLAGS="$CPPFLAGS" 15576 CPPFLAGS="$CPPFLAGS ${LIBSPECCFLAGS}" 15577 CFLAGS="$CFLAGS ${LIBSPECCFLAGS}" 15578 if test "${ac_cv_header_opennet_h+set}" = set; then 15579 echo "$as_me:$LINENO: checking for opennet.h" >&5 15580 echo $ECHO_N "checking for opennet.h... $ECHO_C" >&6 15581 if test "${ac_cv_header_opennet_h+set}" = set; then 15582 echo $ECHO_N "(cached) $ECHO_C" >&6 15583 fi 15584 echo "$as_me:$LINENO: result: $ac_cv_header_opennet_h" >&5 15585 echo "${ECHO_T}$ac_cv_header_opennet_h" >&6 15586 else 15587 # Is the header compilable? 15588 echo "$as_me:$LINENO: checking opennet.h usability" >&5 15589 echo $ECHO_N "checking opennet.h usability... $ECHO_C" >&6 15590 cat >conftest.$ac_ext <<_ACEOF 15591 /* confdefs.h. */ 15592 _ACEOF 15593 cat confdefs.h >>conftest.$ac_ext 15594 cat >>conftest.$ac_ext <<_ACEOF 15595 /* end confdefs.h. */ 15596 $ac_includes_default 15597 #include <opennet.h> 15598 _ACEOF 15599 rm -f conftest.$ac_objext 15600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15601 (eval $ac_compile) 2>conftest.er1 15602 ac_status=$? 15603 grep -v '^ *+' conftest.er1 >conftest.err 15604 rm -f conftest.er1 15605 cat conftest.err >&5 15606 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15607 (exit $ac_status); } && 15608 { ac_try='test -z "$ac_c_werror_flag" 15609 || test ! -s conftest.err' 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); }; } && 15615 { ac_try='test -s conftest.$ac_objext' 15616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15617 (eval $ac_try) 2>&5 15618 ac_status=$? 15619 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15620 (exit $ac_status); }; }; then 15621 ac_header_compiler=yes 15622 else 15623 echo "$as_me: failed program was:" >&5 15624 sed 's/^/| /' conftest.$ac_ext >&5 15625 15626 ac_header_compiler=no 15627 fi 15628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 15629 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 15630 echo "${ECHO_T}$ac_header_compiler" >&6 15631 15632 # Is the header present? 15633 echo "$as_me:$LINENO: checking opennet.h presence" >&5 15634 echo $ECHO_N "checking opennet.h presence... $ECHO_C" >&6 15635 cat >conftest.$ac_ext <<_ACEOF 15636 /* confdefs.h. */ 15637 _ACEOF 15638 cat confdefs.h >>conftest.$ac_ext 15639 cat >>conftest.$ac_ext <<_ACEOF 15640 /* end confdefs.h. */ 15641 #include <opennet.h> 15642 _ACEOF 15643 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 15644 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 15645 ac_status=$? 15646 grep -v '^ *+' conftest.er1 >conftest.err 15647 rm -f conftest.er1 15648 cat conftest.err >&5 15649 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15650 (exit $ac_status); } >/dev/null; then 15651 if test -s conftest.err; then 15652 ac_cpp_err=$ac_c_preproc_warn_flag 15653 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 15654 else 15655 ac_cpp_err= 15656 fi 15657 else 15658 ac_cpp_err=yes 15659 fi 15660 if test -z "$ac_cpp_err"; then 15661 ac_header_preproc=yes 15662 else 15663 echo "$as_me: failed program was:" >&5 15664 sed 's/^/| /' conftest.$ac_ext >&5 15665 15666 ac_header_preproc=no 15667 fi 15668 rm -f conftest.err conftest.$ac_ext 15669 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 15670 echo "${ECHO_T}$ac_header_preproc" >&6 15671 15672 # So? What about this header? 15673 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 15674 yes:no: ) 15675 { echo "$as_me:$LINENO: WARNING: opennet.h: accepted by the compiler, rejected by the preprocessor!" >&5 15676 echo "$as_me: WARNING: opennet.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 15677 { echo "$as_me:$LINENO: WARNING: opennet.h: proceeding with the compiler's result" >&5 15678 echo "$as_me: WARNING: opennet.h: proceeding with the compiler's result" >&2;} 15679 ac_header_preproc=yes 15680 ;; 15681 no:yes:* ) 15682 { echo "$as_me:$LINENO: WARNING: opennet.h: present but cannot be compiled" >&5 15683 echo "$as_me: WARNING: opennet.h: present but cannot be compiled" >&2;} 15684 { echo "$as_me:$LINENO: WARNING: opennet.h: check for missing prerequisite headers?" >&5 15685 echo "$as_me: WARNING: opennet.h: check for missing prerequisite headers?" >&2;} 15686 { echo "$as_me:$LINENO: WARNING: opennet.h: see the Autoconf documentation" >&5 15687 echo "$as_me: WARNING: opennet.h: see the Autoconf documentation" >&2;} 15688 { echo "$as_me:$LINENO: WARNING: opennet.h: section \"Present But Cannot Be Compiled\"" >&5 15689 echo "$as_me: WARNING: opennet.h: section \"Present But Cannot Be Compiled\"" >&2;} 15690 { echo "$as_me:$LINENO: WARNING: opennet.h: proceeding with the preprocessor's result" >&5 15691 echo "$as_me: WARNING: opennet.h: proceeding with the preprocessor's result" >&2;} 15692 { echo "$as_me:$LINENO: WARNING: opennet.h: in the future, the compiler will take precedence" >&5 15693 echo "$as_me: WARNING: opennet.h: in the future, the compiler will take precedence" >&2;} 15694 ( 15695 cat <<\_ASBOX 15696 ## ------------------------------------ ## 15697 ## Report this to the libconfig lists. ## 15698 ## ------------------------------------ ## 15699 _ASBOX 15700 ) | 15701 sed "s/^/$as_me: WARNING: /" >&2 15702 ;; 15703 esac 15704 echo "$as_me:$LINENO: checking for opennet.h" >&5 15705 echo $ECHO_N "checking for opennet.h... $ECHO_C" >&6 15706 if test "${ac_cv_header_opennet_h+set}" = set; then 15707 echo $ECHO_N "(cached) $ECHO_C" >&6 15708 else 15709 ac_cv_header_opennet_h=$ac_header_preproc 15710 fi 15711 echo "$as_me:$LINENO: result: $ac_cv_header_opennet_h" >&5 15712 echo "${ECHO_T}$ac_cv_header_opennet_h" >&6 15713 15714 fi 15715 if test $ac_cv_header_opennet_h = yes; then 15716 15717 if test -n "HAVE_OPENNET_H"; then 15718 15719 cat >>confdefs.h <<\_ACEOF 15720 #define HAVE_OPENNET_H 1 15721 _ACEOF 15722 15723 fi 15724 if test -n "HAVE_LIBOPENNET"; then 15725 15726 cat >>confdefs.h <<\_ACEOF 15727 #define HAVE_LIBOPENNET 1 15728 _ACEOF 15729 15730 fi 15731 LDFLAGS="$LDFLAGS $LIBSPECFLAGS" 15732 LIBS="-lopennet $LIBS" 15733 15734 else 15735 15736 CFLAGS="$OLDCFLAGS" 15737 CPPFLAGS="$OLDCPPFLAGS" 15738 { { echo "$as_me:$LINENO: error: Could not find opennet.h" >&5 15739 echo "$as_me: error: Could not find opennet.h" >&2;} 15740 { (exit 1); exit 1; }; } 15741 15742 fi 15743 15744 15745 15746 else 15747 15748 { { echo "$as_me:$LINENO: error: Could not find libopennet" >&5 15749 echo "$as_me: error: Could not find libopennet" >&2;} 15750 { (exit 1); exit 1; }; } 15751 15752 fi 15753 15754 ;; 15755 esac 15756 15757 else 15758 15759 cat >>confdefs.h <<\_ACEOF 15760 #define ENABLE_SMALL 1 15761 _ACEOF 15762 15763 fi 15764 15765 15766 15767 15768 15769 for ac_header in windows.h windowsx.h 15770 do 15771 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 15772 if eval "test \"\${$as_ac_Header+set}\" = set"; then 15773 echo "$as_me:$LINENO: checking for $ac_header" >&5 15774 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 15775 if eval "test \"\${$as_ac_Header+set}\" = set"; then 15776 echo $ECHO_N "(cached) $ECHO_C" >&6 15777 fi 15778 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 15779 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 15780 else 15781 # Is the header compilable? 15782 echo "$as_me:$LINENO: checking $ac_header usability" >&5 15783 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 15784 cat >conftest.$ac_ext <<_ACEOF 15785 /* confdefs.h. */ 15786 _ACEOF 15787 cat confdefs.h >>conftest.$ac_ext 15788 cat >>conftest.$ac_ext <<_ACEOF 15789 /* end confdefs.h. */ 15790 $ac_includes_default 15791 #include <$ac_header> 15792 _ACEOF 15793 rm -f conftest.$ac_objext 15794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15795 (eval $ac_compile) 2>conftest.er1 15796 ac_status=$? 15797 grep -v '^ *+' conftest.er1 >conftest.err 15798 rm -f conftest.er1 15799 cat conftest.err >&5 15800 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15801 (exit $ac_status); } && 15802 { ac_try='test -z "$ac_c_werror_flag" 15803 || test ! -s conftest.err' 15804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15805 (eval $ac_try) 2>&5 15806 ac_status=$? 15807 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15808 (exit $ac_status); }; } && 15809 { ac_try='test -s conftest.$ac_objext' 15810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15811 (eval $ac_try) 2>&5 15812 ac_status=$? 15813 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15814 (exit $ac_status); }; }; then 15815 ac_header_compiler=yes 15816 else 15817 echo "$as_me: failed program was:" >&5 15818 sed 's/^/| /' conftest.$ac_ext >&5 15819 15820 ac_header_compiler=no 15821 fi 15822 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 15823 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 15824 echo "${ECHO_T}$ac_header_compiler" >&6 15825 15826 # Is the header present? 15827 echo "$as_me:$LINENO: checking $ac_header presence" >&5 15828 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 15829 cat >conftest.$ac_ext <<_ACEOF 15830 /* confdefs.h. */ 15831 _ACEOF 15832 cat confdefs.h >>conftest.$ac_ext 15833 cat >>conftest.$ac_ext <<_ACEOF 15834 /* end confdefs.h. */ 15835 #include <$ac_header> 15836 _ACEOF 15837 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 15838 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 15839 ac_status=$? 15840 grep -v '^ *+' conftest.er1 >conftest.err 15841 rm -f conftest.er1 15842 cat conftest.err >&5 15843 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15844 (exit $ac_status); } >/dev/null; then 15845 if test -s conftest.err; then 15846 ac_cpp_err=$ac_c_preproc_warn_flag 15847 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 15848 else 15849 ac_cpp_err= 15850 fi 15851 else 15852 ac_cpp_err=yes 15853 fi 15854 if test -z "$ac_cpp_err"; then 15855 ac_header_preproc=yes 15856 else 15857 echo "$as_me: failed program was:" >&5 15858 sed 's/^/| /' conftest.$ac_ext >&5 15859 15860 ac_header_preproc=no 15861 fi 15862 rm -f conftest.err conftest.$ac_ext 15863 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 15864 echo "${ECHO_T}$ac_header_preproc" >&6 15865 15866 # So? What about this header? 15867 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 15868 yes:no: ) 15869 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 15870 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 15871 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 15872 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 15873 ac_header_preproc=yes 15874 ;; 15875 no:yes:* ) 15876 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 15877 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 15878 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 15879 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 15880 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 15881 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 15882 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 15883 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 15884 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 15885 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 15886 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 15887 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 15888 ( 15889 cat <<\_ASBOX 15890 ## ------------------------------------ ## 15891 ## Report this to the libconfig lists. ## 15892 ## ------------------------------------ ## 15893 _ASBOX 15894 ) | 15895 sed "s/^/$as_me: WARNING: /" >&2 15896 ;; 15897 esac 15898 echo "$as_me:$LINENO: checking for $ac_header" >&5 15899 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 15900 if eval "test \"\${$as_ac_Header+set}\" = set"; then 15901 echo $ECHO_N "(cached) $ECHO_C" >&6 15902 else 15903 eval "$as_ac_Header=\$ac_header_preproc" 15904 fi 15905 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 15906 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 15907 15908 fi 15909 if test `eval echo '${'$as_ac_Header'}'` = yes; then 15910 cat >>confdefs.h <<_ACEOF 15911 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 15912 _ACEOF 15913 15914 fi 15915 15916 done 15917 15918 15919 15920 15921 15922 15923 15924 echo "$as_me:$LINENO: checking how to create shared objects" >&5 15925 echo $ECHO_N "checking how to create shared objects... $ECHO_C" >&6 15926 15927 if test -z "$SHOBJFLAGS" -a -z "$SHOBJLDFLAGS"; then 15928 15929 15930 15931 15932 OLD_LDFLAGS="$LDFLAGS" 15933 SHOBJFLAGS="" 15934 15935 LDFLAGS="$OLD_LDFLAGS -fPIC -DPIC -shared -rdynamic" 15936 15937 cat >conftest.$ac_ext <<_ACEOF 15938 /* confdefs.h. */ 15939 _ACEOF 15940 cat confdefs.h >>conftest.$ac_ext 15941 cat >>conftest.$ac_ext <<_ACEOF 15942 /* end confdefs.h. */ 15943 #include <stdio.h> 15944 int unrestst(void); 15945 int 15946 main () 15947 { 15948 printf("okay\n"); unrestst(); return(0); 15949 ; 15950 return 0; 15951 } 15952 _ACEOF 15953 rm -f conftest.$ac_objext conftest$ac_exeext 15954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 15955 (eval $ac_link) 2>conftest.er1 15956 ac_status=$? 15957 grep -v '^ *+' conftest.er1 >conftest.err 15958 rm -f conftest.er1 15959 cat conftest.err >&5 15960 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15961 (exit $ac_status); } && 15962 { ac_try='test -z "$ac_c_werror_flag" 15963 || test ! -s conftest.err' 15964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15965 (eval $ac_try) 2>&5 15966 ac_status=$? 15967 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15968 (exit $ac_status); }; } && 15969 { ac_try='test -s conftest$ac_exeext' 15970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15971 (eval $ac_try) 2>&5 15972 ac_status=$? 15973 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15974 (exit $ac_status); }; }; then 15975 SHOBJFLAGS="-fPIC -DPIC"; SHOBJLDFLAGS="-shared -rdynamic" 15976 else 15977 echo "$as_me: failed program was:" >&5 15978 sed 's/^/| /' conftest.$ac_ext >&5 15979 15980 15981 LDFLAGS="$OLD_LDFLAGS" 15982 15983 15984 15985 15986 15987 OLD_LDFLAGS="$LDFLAGS" 15988 SHOBJFLAGS="" 15989 15990 LDFLAGS="$OLD_LDFLAGS -fPIC -DPIC -shared" 15991 15992 cat >conftest.$ac_ext <<_ACEOF 15993 /* confdefs.h. */ 15994 _ACEOF 15995 cat confdefs.h >>conftest.$ac_ext 15996 cat >>conftest.$ac_ext <<_ACEOF 15997 /* end confdefs.h. */ 15998 #include <stdio.h> 15999 int unrestst(void); 16000 int 16001 main () 16002 { 16003 printf("okay\n"); unrestst(); return(0); 16004 ; 16005 return 0; 16006 } 16007 _ACEOF 16008 rm -f conftest.$ac_objext conftest$ac_exeext 16009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16010 (eval $ac_link) 2>conftest.er1 16011 ac_status=$? 16012 grep -v '^ *+' conftest.er1 >conftest.err 16013 rm -f conftest.er1 16014 cat conftest.err >&5 16015 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16016 (exit $ac_status); } && 16017 { ac_try='test -z "$ac_c_werror_flag" 16018 || test ! -s conftest.err' 16019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16020 (eval $ac_try) 2>&5 16021 ac_status=$? 16022 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16023 (exit $ac_status); }; } && 16024 { ac_try='test -s conftest$ac_exeext' 16025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16026 (eval $ac_try) 2>&5 16027 ac_status=$? 16028 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16029 (exit $ac_status); }; }; then 16030 SHOBJFLAGS="-fPIC -DPIC"; SHOBJLDFLAGS="-shared" 16031 else 16032 echo "$as_me: failed program was:" >&5 16033 sed 's/^/| /' conftest.$ac_ext >&5 16034 16035 16036 LDFLAGS="$OLD_LDFLAGS" 16037 16038 16039 16040 16041 16042 OLD_LDFLAGS="$LDFLAGS" 16043 SHOBJFLAGS="" 16044 16045 LDFLAGS="$OLD_LDFLAGS -fPIC -DPIC -shared -rdynamic -mimpure-text" 16046 16047 cat >conftest.$ac_ext <<_ACEOF 16048 /* confdefs.h. */ 16049 _ACEOF 16050 cat confdefs.h >>conftest.$ac_ext 16051 cat >>conftest.$ac_ext <<_ACEOF 16052 /* end confdefs.h. */ 16053 #include <stdio.h> 16054 int unrestst(void); 16055 int 16056 main () 16057 { 16058 printf("okay\n"); unrestst(); return(0); 16059 ; 16060 return 0; 16061 } 16062 _ACEOF 16063 rm -f conftest.$ac_objext conftest$ac_exeext 16064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16065 (eval $ac_link) 2>conftest.er1 16066 ac_status=$? 16067 grep -v '^ *+' conftest.er1 >conftest.err 16068 rm -f conftest.er1 16069 cat conftest.err >&5 16070 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16071 (exit $ac_status); } && 16072 { ac_try='test -z "$ac_c_werror_flag" 16073 || test ! -s conftest.err' 16074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16075 (eval $ac_try) 2>&5 16076 ac_status=$? 16077 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16078 (exit $ac_status); }; } && 16079 { ac_try='test -s conftest$ac_exeext' 16080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16081 (eval $ac_try) 2>&5 16082 ac_status=$? 16083 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16084 (exit $ac_status); }; }; then 16085 SHOBJFLAGS="-fPIC -DPIC"; SHOBJLDFLAGS="-shared -rdynamic -mimpure-text" 16086 else 16087 echo "$as_me: failed program was:" >&5 16088 sed 's/^/| /' conftest.$ac_ext >&5 16089 16090 16091 LDFLAGS="$OLD_LDFLAGS" 16092 16093 16094 16095 16096 16097 OLD_LDFLAGS="$LDFLAGS" 16098 SHOBJFLAGS="" 16099 16100 LDFLAGS="$OLD_LDFLAGS -fPIC -DPIC -shared -mimpure-text" 16101 16102 cat >conftest.$ac_ext <<_ACEOF 16103 /* confdefs.h. */ 16104 _ACEOF 16105 cat confdefs.h >>conftest.$ac_ext 16106 cat >>conftest.$ac_ext <<_ACEOF 16107 /* end confdefs.h. */ 16108 #include <stdio.h> 16109 int unrestst(void); 16110 int 16111 main () 16112 { 16113 printf("okay\n"); unrestst(); return(0); 16114 ; 16115 return 0; 16116 } 16117 _ACEOF 16118 rm -f conftest.$ac_objext conftest$ac_exeext 16119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16120 (eval $ac_link) 2>conftest.er1 16121 ac_status=$? 16122 grep -v '^ *+' conftest.er1 >conftest.err 16123 rm -f conftest.er1 16124 cat conftest.err >&5 16125 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16126 (exit $ac_status); } && 16127 { ac_try='test -z "$ac_c_werror_flag" 16128 || test ! -s conftest.err' 16129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16130 (eval $ac_try) 2>&5 16131 ac_status=$? 16132 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16133 (exit $ac_status); }; } && 16134 { ac_try='test -s conftest$ac_exeext' 16135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16136 (eval $ac_try) 2>&5 16137 ac_status=$? 16138 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16139 (exit $ac_status); }; }; then 16140 SHOBJFLAGS="-fPIC -DPIC"; SHOBJLDFLAGS="-shared -mimpure-text" 16141 else 16142 echo "$as_me: failed program was:" >&5 16143 sed 's/^/| /' conftest.$ac_ext >&5 16144 16145 16146 LDFLAGS="$OLD_LDFLAGS" 16147 16148 16149 16150 16151 16152 OLD_LDFLAGS="$LDFLAGS" 16153 SHOBJFLAGS="" 16154 16155 LDFLAGS="$OLD_LDFLAGS -fPIC -DPIC -shared -rdynamic -Wl,-G,-z,textoff" 16156 16157 cat >conftest.$ac_ext <<_ACEOF 16158 /* confdefs.h. */ 16159 _ACEOF 16160 cat confdefs.h >>conftest.$ac_ext 16161 cat >>conftest.$ac_ext <<_ACEOF 16162 /* end confdefs.h. */ 16163 #include <stdio.h> 16164 int unrestst(void); 16165 int 16166 main () 16167 { 16168 printf("okay\n"); unrestst(); return(0); 16169 ; 16170 return 0; 16171 } 16172 _ACEOF 16173 rm -f conftest.$ac_objext conftest$ac_exeext 16174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16175 (eval $ac_link) 2>conftest.er1 16176 ac_status=$? 16177 grep -v '^ *+' conftest.er1 >conftest.err 16178 rm -f conftest.er1 16179 cat conftest.err >&5 16180 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16181 (exit $ac_status); } && 16182 { ac_try='test -z "$ac_c_werror_flag" 16183 || test ! -s conftest.err' 16184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16185 (eval $ac_try) 2>&5 16186 ac_status=$? 16187 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16188 (exit $ac_status); }; } && 16189 { ac_try='test -s conftest$ac_exeext' 16190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16191 (eval $ac_try) 2>&5 16192 ac_status=$? 16193 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16194 (exit $ac_status); }; }; then 16195 SHOBJFLAGS="-fPIC -DPIC"; SHOBJLDFLAGS="-shared -rdynamic -Wl,-G,-z,textoff" 16196 else 16197 echo "$as_me: failed program was:" >&5 16198 sed 's/^/| /' conftest.$ac_ext >&5 16199 16200 16201 LDFLAGS="$OLD_LDFLAGS" 16202 16203 16204 16205 16206 16207 OLD_LDFLAGS="$LDFLAGS" 16208 SHOBJFLAGS="" 16209 16210 LDFLAGS="$OLD_LDFLAGS -fPIC -DPIC -shared -Wl,-G,-z,textoff" 16211 16212 cat >conftest.$ac_ext <<_ACEOF 16213 /* confdefs.h. */ 16214 _ACEOF 16215 cat confdefs.h >>conftest.$ac_ext 16216 cat >>conftest.$ac_ext <<_ACEOF 16217 /* end confdefs.h. */ 16218 #include <stdio.h> 16219 int unrestst(void); 16220 int 16221 main () 16222 { 16223 printf("okay\n"); unrestst(); return(0); 16224 ; 16225 return 0; 16226 } 16227 _ACEOF 16228 rm -f conftest.$ac_objext conftest$ac_exeext 16229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16230 (eval $ac_link) 2>conftest.er1 16231 ac_status=$? 16232 grep -v '^ *+' conftest.er1 >conftest.err 16233 rm -f conftest.er1 16234 cat conftest.err >&5 16235 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16236 (exit $ac_status); } && 16237 { ac_try='test -z "$ac_c_werror_flag" 16238 || test ! -s conftest.err' 16239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16240 (eval $ac_try) 2>&5 16241 ac_status=$? 16242 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16243 (exit $ac_status); }; } && 16244 { ac_try='test -s conftest$ac_exeext' 16245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16246 (eval $ac_try) 2>&5 16247 ac_status=$? 16248 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16249 (exit $ac_status); }; }; then 16250 SHOBJFLAGS="-fPIC -DPIC"; SHOBJLDFLAGS="-shared -Wl,-G,-z,textoff" 16251 else 16252 echo "$as_me: failed program was:" >&5 16253 sed 's/^/| /' conftest.$ac_ext >&5 16254 16255 16256 LDFLAGS="$OLD_LDFLAGS" 16257 16258 16259 16260 16261 16262 OLD_LDFLAGS="$LDFLAGS" 16263 SHOBJFLAGS="" 16264 16265 LDFLAGS="$OLD_LDFLAGS -fPIC -DPIC -shared -dynamiclib -flat_namespace -undefined suppress -bind_at_load" 16266 16267 cat >conftest.$ac_ext <<_ACEOF 16268 /* confdefs.h. */ 16269 _ACEOF 16270 cat confdefs.h >>conftest.$ac_ext 16271 cat >>conftest.$ac_ext <<_ACEOF 16272 /* end confdefs.h. */ 16273 #include <stdio.h> 16274 int unrestst(void); 16275 int 16276 main () 16277 { 16278 printf("okay\n"); unrestst(); return(0); 16279 ; 16280 return 0; 16281 } 16282 _ACEOF 16283 rm -f conftest.$ac_objext conftest$ac_exeext 16284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16285 (eval $ac_link) 2>conftest.er1 16286 ac_status=$? 16287 grep -v '^ *+' conftest.er1 >conftest.err 16288 rm -f conftest.er1 16289 cat conftest.err >&5 16290 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16291 (exit $ac_status); } && 16292 { ac_try='test -z "$ac_c_werror_flag" 16293 || test ! -s conftest.err' 16294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16295 (eval $ac_try) 2>&5 16296 ac_status=$? 16297 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16298 (exit $ac_status); }; } && 16299 { ac_try='test -s conftest$ac_exeext' 16300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16301 (eval $ac_try) 2>&5 16302 ac_status=$? 16303 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16304 (exit $ac_status); }; }; then 16305 SHOBJFLAGS="-fPIC -DPIC"; SHOBJLDFLAGS="-shared -dynamiclib -flat_namespace -undefined suppress -bind_at_load" 16306 else 16307 echo "$as_me: failed program was:" >&5 16308 sed 's/^/| /' conftest.$ac_ext >&5 16309 16310 16311 LDFLAGS="$OLD_LDFLAGS" 16312 16313 16314 16315 16316 16317 OLD_LDFLAGS="$LDFLAGS" 16318 SHOBJFLAGS="" 16319 16320 LDFLAGS="$OLD_LDFLAGS -fPIC -DPIC -dynamiclib -flat_namespace -undefined suppress -bind_at_load" 16321 16322 cat >conftest.$ac_ext <<_ACEOF 16323 /* confdefs.h. */ 16324 _ACEOF 16325 cat confdefs.h >>conftest.$ac_ext 16326 cat >>conftest.$ac_ext <<_ACEOF 16327 /* end confdefs.h. */ 16328 #include <stdio.h> 16329 int unrestst(void); 16330 int 16331 main () 16332 { 16333 printf("okay\n"); unrestst(); return(0); 16334 ; 16335 return 0; 16336 } 16337 _ACEOF 16338 rm -f conftest.$ac_objext conftest$ac_exeext 16339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16340 (eval $ac_link) 2>conftest.er1 16341 ac_status=$? 16342 grep -v '^ *+' conftest.er1 >conftest.err 16343 rm -f conftest.er1 16344 cat conftest.err >&5 16345 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16346 (exit $ac_status); } && 16347 { ac_try='test -z "$ac_c_werror_flag" 16348 || test ! -s conftest.err' 16349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16350 (eval $ac_try) 2>&5 16351 ac_status=$? 16352 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16353 (exit $ac_status); }; } && 16354 { ac_try='test -s conftest$ac_exeext' 16355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16356 (eval $ac_try) 2>&5 16357 ac_status=$? 16358 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16359 (exit $ac_status); }; }; then 16360 SHOBJFLAGS="-fPIC -DPIC"; SHOBJLDFLAGS="-dynamiclib -flat_namespace -undefined suppress -bind_at_load" 16361 else 16362 echo "$as_me: failed program was:" >&5 16363 sed 's/^/| /' conftest.$ac_ext >&5 16364 16365 16366 LDFLAGS="$OLD_LDFLAGS" 16367 16368 16369 16370 16371 16372 OLD_LDFLAGS="$LDFLAGS" 16373 SHOBJFLAGS="" 16374 16375 LDFLAGS="$OLD_LDFLAGS -fPIC -DPIC -Wl,-dynamiclib -Wl,-flat_namespace -Wl,-undefined,suppress -Wl,-bind_at_load" 16376 16377 cat >conftest.$ac_ext <<_ACEOF 16378 /* confdefs.h. */ 16379 _ACEOF 16380 cat confdefs.h >>conftest.$ac_ext 16381 cat >>conftest.$ac_ext <<_ACEOF 16382 /* end confdefs.h. */ 16383 #include <stdio.h> 16384 int unrestst(void); 16385 int 16386 main () 16387 { 16388 printf("okay\n"); unrestst(); return(0); 16389 ; 16390 return 0; 16391 } 16392 _ACEOF 16393 rm -f conftest.$ac_objext conftest$ac_exeext 16394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16395 (eval $ac_link) 2>conftest.er1 16396 ac_status=$? 16397 grep -v '^ *+' conftest.er1 >conftest.err 16398 rm -f conftest.er1 16399 cat conftest.err >&5 16400 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16401 (exit $ac_status); } && 16402 { ac_try='test -z "$ac_c_werror_flag" 16403 || test ! -s conftest.err' 16404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16405 (eval $ac_try) 2>&5 16406 ac_status=$? 16407 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16408 (exit $ac_status); }; } && 16409 { ac_try='test -s conftest$ac_exeext' 16410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16411 (eval $ac_try) 2>&5 16412 ac_status=$? 16413 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16414 (exit $ac_status); }; }; then 16415 SHOBJFLAGS="-fPIC -DPIC"; SHOBJLDFLAGS="-Wl,-dynamiclib -Wl,-flat_namespace -Wl,-undefined,suppress -Wl,-bind_at_load" 16416 else 16417 echo "$as_me: failed program was:" >&5 16418 sed 's/^/| /' conftest.$ac_ext >&5 16419 16420 16421 LDFLAGS="$OLD_LDFLAGS" 16422 16423 16424 16425 16426 16427 OLD_LDFLAGS="$LDFLAGS" 16428 SHOBJFLAGS="" 16429 16430 LDFLAGS="$OLD_LDFLAGS -fPIC -DPIC -dynamiclib -flat_namespace -undefined suppress" 16431 16432 cat >conftest.$ac_ext <<_ACEOF 16433 /* confdefs.h. */ 16434 _ACEOF 16435 cat confdefs.h >>conftest.$ac_ext 16436 cat >>conftest.$ac_ext <<_ACEOF 16437 /* end confdefs.h. */ 16438 #include <stdio.h> 16439 int unrestst(void); 16440 int 16441 main () 16442 { 16443 printf("okay\n"); unrestst(); return(0); 16444 ; 16445 return 0; 16446 } 16447 _ACEOF 16448 rm -f conftest.$ac_objext conftest$ac_exeext 16449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16450 (eval $ac_link) 2>conftest.er1 16451 ac_status=$? 16452 grep -v '^ *+' conftest.er1 >conftest.err 16453 rm -f conftest.er1 16454 cat conftest.err >&5 16455 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16456 (exit $ac_status); } && 16457 { ac_try='test -z "$ac_c_werror_flag" 16458 || test ! -s conftest.err' 16459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16460 (eval $ac_try) 2>&5 16461 ac_status=$? 16462 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16463 (exit $ac_status); }; } && 16464 { ac_try='test -s conftest$ac_exeext' 16465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16466 (eval $ac_try) 2>&5 16467 ac_status=$? 16468 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16469 (exit $ac_status); }; }; then 16470 SHOBJFLAGS="-fPIC -DPIC"; SHOBJLDFLAGS="-dynamiclib -flat_namespace -undefined suppress" 16471 else 16472 echo "$as_me: failed program was:" >&5 16473 sed 's/^/| /' conftest.$ac_ext >&5 16474 16475 16476 LDFLAGS="$OLD_LDFLAGS" 16477 16478 16479 16480 16481 16482 OLD_LDFLAGS="$LDFLAGS" 16483 SHOBJFLAGS="" 16484 16485 LDFLAGS="$OLD_LDFLAGS -fPIC -DPIC -dynamiclib" 16486 16487 cat >conftest.$ac_ext <<_ACEOF 16488 /* confdefs.h. */ 16489 _ACEOF 16490 cat confdefs.h >>conftest.$ac_ext 16491 cat >>conftest.$ac_ext <<_ACEOF 16492 /* end confdefs.h. */ 16493 #include <stdio.h> 16494 int unrestst(void); 16495 int 16496 main () 16497 { 16498 printf("okay\n"); unrestst(); return(0); 16499 ; 16500 return 0; 16501 } 16502 _ACEOF 16503 rm -f conftest.$ac_objext conftest$ac_exeext 16504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16505 (eval $ac_link) 2>conftest.er1 16506 ac_status=$? 16507 grep -v '^ *+' conftest.er1 >conftest.err 16508 rm -f conftest.er1 16509 cat conftest.err >&5 16510 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16511 (exit $ac_status); } && 16512 { ac_try='test -z "$ac_c_werror_flag" 16513 || test ! -s conftest.err' 16514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16515 (eval $ac_try) 2>&5 16516 ac_status=$? 16517 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16518 (exit $ac_status); }; } && 16519 { ac_try='test -s conftest$ac_exeext' 16520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16521 (eval $ac_try) 2>&5 16522 ac_status=$? 16523 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16524 (exit $ac_status); }; }; then 16525 SHOBJFLAGS="-fPIC -DPIC"; SHOBJLDFLAGS="-dynamiclib" 16526 else 16527 echo "$as_me: failed program was:" >&5 16528 sed 's/^/| /' conftest.$ac_ext >&5 16529 16530 16531 LDFLAGS="$OLD_LDFLAGS" 16532 16533 echo "$as_me:$LINENO: result: cant" >&5 16534 echo "${ECHO_T}cant" >&6 16535 { { echo "$as_me:$LINENO: error: We are unable to make shared objects." >&5 16536 echo "$as_me: error: We are unable to make shared objects." >&2;} 16537 { (exit 1); exit 1; }; } 16538 16539 16540 fi 16541 rm -f conftest.err conftest.$ac_objext \ 16542 conftest$ac_exeext conftest.$ac_ext 16543 16544 LDFLAGS="$OLD_LDFLAGS" 16545 16546 16547 16548 fi 16549 rm -f conftest.err conftest.$ac_objext \ 16550 conftest$ac_exeext conftest.$ac_ext 16551 16552 LDFLAGS="$OLD_LDFLAGS" 16553 16554 16555 16556 fi 16557 rm -f conftest.err conftest.$ac_objext \ 16558 conftest$ac_exeext conftest.$ac_ext 16559 16560 LDFLAGS="$OLD_LDFLAGS" 16561 16562 16563 16564 fi 16565 rm -f conftest.err conftest.$ac_objext \ 16566 conftest$ac_exeext conftest.$ac_ext 16567 16568 LDFLAGS="$OLD_LDFLAGS" 16569 16570 16571 16572 fi 16573 rm -f conftest.err conftest.$ac_objext \ 16574 conftest$ac_exeext conftest.$ac_ext 16575 16576 LDFLAGS="$OLD_LDFLAGS" 16577 16578 16579 16580 fi 16581 rm -f conftest.err conftest.$ac_objext \ 16582 conftest$ac_exeext conftest.$ac_ext 16583 16584 LDFLAGS="$OLD_LDFLAGS" 16585 16586 16587 16588 fi 16589 rm -f conftest.err conftest.$ac_objext \ 16590 conftest$ac_exeext conftest.$ac_ext 16591 16592 LDFLAGS="$OLD_LDFLAGS" 16593 16594 16595 16596 fi 16597 rm -f conftest.err conftest.$ac_objext \ 16598 conftest$ac_exeext conftest.$ac_ext 16599 16600 LDFLAGS="$OLD_LDFLAGS" 16601 16602 16603 16604 fi 16605 rm -f conftest.err conftest.$ac_objext \ 16606 conftest$ac_exeext conftest.$ac_ext 16607 16608 LDFLAGS="$OLD_LDFLAGS" 16609 16610 16611 16612 fi 16613 rm -f conftest.err conftest.$ac_objext \ 16614 conftest$ac_exeext conftest.$ac_ext 16615 16616 LDFLAGS="$OLD_LDFLAGS" 16617 16618 16619 16620 fi 16621 rm -f conftest.err conftest.$ac_objext \ 16622 conftest$ac_exeext conftest.$ac_ext 16623 16624 LDFLAGS="$OLD_LDFLAGS" 16625 16626 fi 16627 16628 echo "$as_me:$LINENO: result: $SHOBJLDFLAGS $SHOBJFLAGS" >&5 16629 echo "${ECHO_T}$SHOBJLDFLAGS $SHOBJFLAGS" >&6 16630 16631 16632 16633 SHLIBOBJS="" 16634 for obj in $LIBOBJS; do 16635 SHLIBOBJS="$SHLIBOBJS `echo $obj | sed 's/\.o$/_shr.o/g'`" 16636 done 16637 16638 16639 16640 16641 16642 16643 16644 16645 16646 16647 16648 16649 16650 16651 16652 16653 for ac_header in ctype.h dirent.h pwd.h stdio.h stdlib.h string.h sys/stat.h sys/time.h sys/types.h time.h unistd.h netdb.h netinet/in.h 16654 do 16655 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 16656 if eval "test \"\${$as_ac_Header+set}\" = set"; then 16657 echo "$as_me:$LINENO: checking for $ac_header" >&5 16658 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 16659 if eval "test \"\${$as_ac_Header+set}\" = set"; then 16660 echo $ECHO_N "(cached) $ECHO_C" >&6 16661 fi 16662 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 16663 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 16664 else 16665 # Is the header compilable? 16666 echo "$as_me:$LINENO: checking $ac_header usability" >&5 16667 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 16668 cat >conftest.$ac_ext <<_ACEOF 16669 /* confdefs.h. */ 16670 _ACEOF 16671 cat confdefs.h >>conftest.$ac_ext 16672 cat >>conftest.$ac_ext <<_ACEOF 16673 /* end confdefs.h. */ 16674 $ac_includes_default 16675 #include <$ac_header> 16676 _ACEOF 16677 rm -f conftest.$ac_objext 16678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 16679 (eval $ac_compile) 2>conftest.er1 16680 ac_status=$? 16681 grep -v '^ *+' conftest.er1 >conftest.err 16682 rm -f conftest.er1 16683 cat conftest.err >&5 16684 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16685 (exit $ac_status); } && 16686 { ac_try='test -z "$ac_c_werror_flag" 16687 || test ! -s conftest.err' 16688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16689 (eval $ac_try) 2>&5 16690 ac_status=$? 16691 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16692 (exit $ac_status); }; } && 16693 { ac_try='test -s conftest.$ac_objext' 16694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16695 (eval $ac_try) 2>&5 16696 ac_status=$? 16697 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16698 (exit $ac_status); }; }; then 16699 ac_header_compiler=yes 16700 else 16701 echo "$as_me: failed program was:" >&5 16702 sed 's/^/| /' conftest.$ac_ext >&5 16703 16704 ac_header_compiler=no 16705 fi 16706 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 16707 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 16708 echo "${ECHO_T}$ac_header_compiler" >&6 16709 16710 # Is the header present? 16711 echo "$as_me:$LINENO: checking $ac_header presence" >&5 16712 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 16713 cat >conftest.$ac_ext <<_ACEOF 16714 /* confdefs.h. */ 16715 _ACEOF 16716 cat confdefs.h >>conftest.$ac_ext 16717 cat >>conftest.$ac_ext <<_ACEOF 16718 /* end confdefs.h. */ 16719 #include <$ac_header> 16720 _ACEOF 16721 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 16722 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 16723 ac_status=$? 16724 grep -v '^ *+' conftest.er1 >conftest.err 16725 rm -f conftest.er1 16726 cat conftest.err >&5 16727 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16728 (exit $ac_status); } >/dev/null; then 16729 if test -s conftest.err; then 16730 ac_cpp_err=$ac_c_preproc_warn_flag 16731 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 16732 else 16733 ac_cpp_err= 16734 fi 16735 else 16736 ac_cpp_err=yes 16737 fi 16738 if test -z "$ac_cpp_err"; then 16739 ac_header_preproc=yes 16740 else 16741 echo "$as_me: failed program was:" >&5 16742 sed 's/^/| /' conftest.$ac_ext >&5 16743 16744 ac_header_preproc=no 16745 fi 16746 rm -f conftest.err conftest.$ac_ext 16747 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 16748 echo "${ECHO_T}$ac_header_preproc" >&6 16749 16750 # So? What about this header? 16751 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 16752 yes:no: ) 16753 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 16754 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 16755 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 16756 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 16757 ac_header_preproc=yes 16758 ;; 16759 no:yes:* ) 16760 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 16761 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 16762 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 16763 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 16764 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 16765 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 16766 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 16767 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 16768 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 16769 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 16770 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 16771 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 16772 ( 16773 cat <<\_ASBOX 16774 ## ------------------------------------ ## 16775 ## Report this to the libconfig lists. ## 16776 ## ------------------------------------ ## 16777 _ASBOX 16778 ) | 16779 sed "s/^/$as_me: WARNING: /" >&2 16780 ;; 16781 esac 16782 echo "$as_me:$LINENO: checking for $ac_header" >&5 16783 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 16784 if eval "test \"\${$as_ac_Header+set}\" = set"; then 16785 echo $ECHO_N "(cached) $ECHO_C" >&6 16786 else 16787 eval "$as_ac_Header=\$ac_header_preproc" 16788 fi 16789 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 16790 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 16791 16792 fi 16793 if test `eval echo '${'$as_ac_Header'}'` = yes; then 16794 cat >>confdefs.h <<_ACEOF 16795 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 16796 _ACEOF 16797 16798 fi 16799 16800 done 16801 16802 16803 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 16804 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 16805 if test "${ac_cv_header_time+set}" = set; then 16806 echo $ECHO_N "(cached) $ECHO_C" >&6 16807 else 16808 cat >conftest.$ac_ext <<_ACEOF 16809 /* confdefs.h. */ 16810 _ACEOF 16811 cat confdefs.h >>conftest.$ac_ext 16812 cat >>conftest.$ac_ext <<_ACEOF 16813 /* end confdefs.h. */ 16814 #include <sys/types.h> 16815 #include <sys/time.h> 16816 #include <time.h> 16817 16818 int 16819 main () 16820 { 16821 if ((struct tm *) 0) 16822 return 0; 16823 ; 16824 return 0; 16825 } 16826 _ACEOF 16827 rm -f conftest.$ac_objext 16828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 16829 (eval $ac_compile) 2>conftest.er1 16830 ac_status=$? 16831 grep -v '^ *+' conftest.er1 >conftest.err 16832 rm -f conftest.er1 16833 cat conftest.err >&5 16834 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16835 (exit $ac_status); } && 16836 { ac_try='test -z "$ac_c_werror_flag" 16837 || test ! -s conftest.err' 16838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16839 (eval $ac_try) 2>&5 16840 ac_status=$? 16841 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16842 (exit $ac_status); }; } && 16843 { ac_try='test -s conftest.$ac_objext' 16844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16845 (eval $ac_try) 2>&5 16846 ac_status=$? 16847 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16848 (exit $ac_status); }; }; then 16849 ac_cv_header_time=yes 16850 else 16851 echo "$as_me: failed program was:" >&5 16852 sed 's/^/| /' conftest.$ac_ext >&5 16853 16854 ac_cv_header_time=no 16855 fi 16856 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 16857 fi 16858 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 16859 echo "${ECHO_T}$ac_cv_header_time" >&6 16860 if test $ac_cv_header_time = yes; then 16861 16862 cat >>confdefs.h <<\_ACEOF 16863 #define TIME_WITH_SYS_TIME 1 16864 _ACEOF 16865 16866 fi 16867 16868 16869 16870 16871 16872 for ac_func in strsep strtoll getuid 16873 do 16874 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 16875 echo "$as_me:$LINENO: checking for $ac_func" >&5 16876 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 16877 if eval "test \"\${$as_ac_var+set}\" = set"; then 16878 echo $ECHO_N "(cached) $ECHO_C" >&6 16879 else 16880 cat >conftest.$ac_ext <<_ACEOF 16881 /* confdefs.h. */ 16882 _ACEOF 16883 cat confdefs.h >>conftest.$ac_ext 16884 cat >>conftest.$ac_ext <<_ACEOF 16885 /* end confdefs.h. */ 16886 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 16887 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 16888 #define $ac_func innocuous_$ac_func 16889 16890 /* System header to define __stub macros and hopefully few prototypes, 16891 which can conflict with char $ac_func (); below. 16892 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 16893 <limits.h> exists even on freestanding compilers. */ 16894 16895 #ifdef __STDC__ 16896 # include <limits.h> 16897 #else 16898 # include <assert.h> 16899 #endif 16900 16901 #undef $ac_func 16902 16903 /* Override any gcc2 internal prototype to avoid an error. */ 16904 #ifdef __cplusplus 16905 extern "C" 16906 { 16907 #endif 16908 /* We use char because int might match the return type of a gcc2 16909 builtin and then its argument prototype would still apply. */ 16910 char $ac_func (); 16911 /* The GNU C library defines this for functions which it implements 16912 to always fail with ENOSYS. Some functions are actually named 16913 something starting with __ and the normal name is an alias. */ 16914 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) 16915 choke me 16916 #else 16917 char (*f) () = $ac_func; 16918 #endif 16919 #ifdef __cplusplus 16920 } 16921 #endif 16922 16923 int 16924 main () 16925 { 16926 return f != $ac_func; 16927 ; 16928 return 0; 16929 } 16930 _ACEOF 16931 rm -f conftest.$ac_objext conftest$ac_exeext 16932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16933 (eval $ac_link) 2>conftest.er1 16934 ac_status=$? 16935 grep -v '^ *+' conftest.er1 >conftest.err 16936 rm -f conftest.er1 16937 cat conftest.err >&5 16938 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16939 (exit $ac_status); } && 16940 { ac_try='test -z "$ac_c_werror_flag" 16941 || test ! -s conftest.err' 16942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16943 (eval $ac_try) 2>&5 16944 ac_status=$? 16945 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16946 (exit $ac_status); }; } && 16947 { ac_try='test -s conftest$ac_exeext' 16948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16949 (eval $ac_try) 2>&5 16950 ac_status=$? 16951 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16952 (exit $ac_status); }; }; then 16953 eval "$as_ac_var=yes" 16954 else 16955 echo "$as_me: failed program was:" >&5 16956 sed 's/^/| /' conftest.$ac_ext >&5 16957 16958 eval "$as_ac_var=no" 16959 fi 16960 rm -f conftest.err conftest.$ac_objext \ 16961 conftest$ac_exeext conftest.$ac_ext 16962 fi 16963 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 16964 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 16965 if test `eval echo '${'$as_ac_var'}'` = yes; then 16966 cat >>confdefs.h <<_ACEOF 16967 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 16968 _ACEOF 16969 16970 else 16971 case $LIBOBJS in 16972 "$ac_func.$ac_objext" | \ 16973 *" $ac_func.$ac_objext" | \ 16974 "$ac_func.$ac_objext "* | \ 16975 *" $ac_func.$ac_objext "* ) ;; 16976 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;; 16977 esac 16978 16979 fi 16980 done 16981 16982 16983 16984 16985 for ac_func in getpwuid strtof 16986 do 16987 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 16988 echo "$as_me:$LINENO: checking for $ac_func" >&5 16989 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 16990 if eval "test \"\${$as_ac_var+set}\" = set"; then 16991 echo $ECHO_N "(cached) $ECHO_C" >&6 16992 else 16993 cat >conftest.$ac_ext <<_ACEOF 16994 /* confdefs.h. */ 16995 _ACEOF 16996 cat confdefs.h >>conftest.$ac_ext 16997 cat >>conftest.$ac_ext <<_ACEOF 16998 /* end confdefs.h. */ 16999 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 17000 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17001 #define $ac_func innocuous_$ac_func 17002 17003 /* System header to define __stub macros and hopefully few prototypes, 17004 which can conflict with char $ac_func (); below. 17005 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17006 <limits.h> exists even on freestanding compilers. */ 17007 17008 #ifdef __STDC__ 17009 # include <limits.h> 17010 #else 17011 # include <assert.h> 17012 #endif 17013 17014 #undef $ac_func 17015 17016 /* Override any gcc2 internal prototype to avoid an error. */ 17017 #ifdef __cplusplus 17018 extern "C" 17019 { 17020 #endif 17021 /* We use char because int might match the return type of a gcc2 17022 builtin and then its argument prototype would still apply. */ 17023 char $ac_func (); 17024 /* The GNU C library defines this for functions which it implements 17025 to always fail with ENOSYS. Some functions are actually named 17026 something starting with __ and the normal name is an alias. */ 17027 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) 17028 choke me 17029 #else 17030 char (*f) () = $ac_func; 17031 #endif 17032 #ifdef __cplusplus 17033 } 17034 #endif 17035 17036 int 17037 main () 17038 { 17039 return f != $ac_func; 17040 ; 17041 return 0; 17042 } 17043 _ACEOF 17044 rm -f conftest.$ac_objext conftest$ac_exeext 17045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17046 (eval $ac_link) 2>conftest.er1 17047 ac_status=$? 17048 grep -v '^ *+' conftest.er1 >conftest.err 17049 rm -f conftest.er1 17050 cat conftest.err >&5 17051 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17052 (exit $ac_status); } && 17053 { ac_try='test -z "$ac_c_werror_flag" 17054 || test ! -s conftest.err' 17055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17056 (eval $ac_try) 2>&5 17057 ac_status=$? 17058 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17059 (exit $ac_status); }; } && 17060 { ac_try='test -s conftest$ac_exeext' 17061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17062 (eval $ac_try) 2>&5 17063 ac_status=$? 17064 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17065 (exit $ac_status); }; }; then 17066 eval "$as_ac_var=yes" 17067 else 17068 echo "$as_me: failed program was:" >&5 17069 sed 's/^/| /' conftest.$ac_ext >&5 17070 17071 eval "$as_ac_var=no" 17072 fi 17073 rm -f conftest.err conftest.$ac_objext \ 17074 conftest$ac_exeext conftest.$ac_ext 17075 fi 17076 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 17077 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 17078 if test `eval echo '${'$as_ac_var'}'` = yes; then 17079 cat >>confdefs.h <<_ACEOF 17080 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 17081 _ACEOF 17082 17083 fi 17084 done 17085 17086 17087 17088 17089 SHLIBOBJS="" 17090 for obj in $LIBOBJS; do 17091 SHLIBOBJS="$SHLIBOBJS `echo $obj | sed 's/\.o$/_shr.o/g'`" 17092 done 17093 17094 17095 ac_config_files="$ac_config_files Makefile lc_geterrno.3 lc_process.3 lc_register_var.3 lc_geterrstr.3 lc_seterrstr.3 lc_register_callback.3 lc_cleanup.3 lc_process_file.3 libconfig.3 lc_handle_type.3" 17096 cat >confcache <<\_ACEOF 17097 # This file is a shell script that caches the results of configure 17098 # tests run on this system so they can be shared between configure 17099 # scripts and configure runs, see configure's option --config-cache. 17100 # It is not useful on other systems. If it contains results you don't 17101 # want to keep, you may remove or edit it. 17102 # 17103 # config.status only pays attention to the cache file if you give it 17104 # the --recheck option to rerun configure. 17105 # 17106 # `ac_cv_env_foo' variables (set or unset) will be overridden when 17107 # loading this file, other *unset* `ac_cv_foo' will be assigned the 17108 # following values. 17109 17110 _ACEOF 17111 17112 # The following way of writing the cache mishandles newlines in values, 17113 # but we know of no workaround that is simple, portable, and efficient. 17114 # So, don't put newlines in cache variables' values. 17115 # Ultrix sh set writes to stderr and can't be redirected directly, 17116 # and sets the high bit in the cache file unless we assign to the vars. 17117 { 17118 (set) 2>&1 | 17119 case `(ac_space=' '; set | grep ac_space) 2>&1` in 17120 *ac_space=\ *) 17121 # `set' does not quote correctly, so add quotes (double-quote 17122 # substitution turns \\\\ into \\, and sed turns \\ into \). 17123 sed -n \ 17124 "s/'/'\\\\''/g; 17125 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 17126 ;; 17127 *) 17128 # `set' quotes correctly as required by POSIX, so do not add quotes. 17129 sed -n \ 17130 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 17131 ;; 17132 esac; 17133 } | 17134 sed ' 17135 t clear 17136 : clear 17137 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 17138 t end 17139 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 17140 : end' >>confcache 17141 if diff $cache_file confcache >/dev/null 2>&1; then :; else 17142 if test -w $cache_file; then 17143 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 17144 cat confcache >$cache_file 17145 else 17146 echo "not updating unwritable cache $cache_file" 17147 fi 17148 fi 17149 rm -f confcache 17150 17151 test "x$prefix" = xNONE && prefix=$ac_default_prefix 17152 # Let make expand exec_prefix. 17153 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 17154 17155 # VPATH may cause trouble with some makes, so we remove $(srcdir), 17156 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 17157 # trailing colons and then remove the whole line if VPATH becomes empty 17158 # (actually we leave an empty line to preserve line numbers). 17159 if test "x$srcdir" = x.; then 17160 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 17161 s/:*\$(srcdir):*/:/; 17162 s/:*\${srcdir}:*/:/; 17163 s/:*@srcdir@:*/:/; 17164 s/^\([^=]*=[ ]*\):*/\1/; 17165 s/:*$//; 17166 s/^[^=]*=[ ]*$//; 17167 }' 17168 fi 17169 17170 DEFS=-DHAVE_CONFIG_H 17171 17172 ac_libobjs= 17173 ac_ltlibobjs= 17174 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 17175 # 1. Remove the extension, and $U if already installed. 17176 ac_i=`echo "$ac_i" | 17177 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 17178 # 2. Add them. 17179 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 17180 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 17181 done 17182 LIBOBJS=$ac_libobjs 17183 17184 LTLIBOBJS=$ac_ltlibobjs 17185 17186 17187 17188 : ${CONFIG_STATUS=./config.status} 17189 ac_clean_files_save=$ac_clean_files 17190 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 17191 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 17192 echo "$as_me: creating $CONFIG_STATUS" >&6;} 17193 cat >$CONFIG_STATUS <<_ACEOF 17194 #! $SHELL 17195 # Generated by $as_me. 17196 # Run this file to recreate the current configuration. 17197 # Compiler output produced by configure, useful for debugging 17198 # configure, is in config.log if it exists. 17199 17200 debug=false 17201 ac_cs_recheck=false 17202 ac_cs_silent=false 17203 SHELL=\${CONFIG_SHELL-$SHELL} 17204 _ACEOF 17205 17206 cat >>$CONFIG_STATUS <<\_ACEOF 17207 ## --------------------- ## 17208 ## M4sh Initialization. ## 17209 ## --------------------- ## 17210 17211 # Be Bourne compatible 17212 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 17213 emulate sh 17214 NULLCMD=: 17215 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 17216 # is contrary to our usage. Disable this feature. 17217 alias -g '${1+"$@"}'='"$@"' 17218 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 17219 set -o posix 17220 fi 17221 DUALCASE=1; export DUALCASE # for MKS sh 17222 17223 # Support unset when possible. 17224 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 17225 as_unset=unset 17226 else 17227 as_unset=false 17228 fi 17229 17230 17231 # Work around bugs in pre-3.0 UWIN ksh. 17232 $as_unset ENV MAIL MAILPATH 17233 PS1='$ ' 17234 PS2='> ' 17235 PS4='+ ' 17236 17237 # NLS nuisances. 17238 for as_var in \ 17239 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 17240 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 17241 LC_TELEPHONE LC_TIME 17242 do 17243 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 17244 eval $as_var=C; export $as_var 17245 else 17246 $as_unset $as_var 17247 fi 17248 done 17249 17250 # Required to use basename. 17251 if expr a : '\(a\)' >/dev/null 2>&1; then 17252 as_expr=expr 17253 else 17254 as_expr=false 17255 fi 17256 17257 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 17258 as_basename=basename 17259 else 17260 as_basename=false 17261 fi 17262 17263 17264 # Name of the executable. 17265 as_me=`$as_basename "$0" || 17266 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 17267 X"$0" : 'X\(//\)$' \| \ 17268 X"$0" : 'X\(/\)$' \| \ 17269 . : '\(.\)' 2>/dev/null || 17270 echo X/"$0" | 17271 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 17272 /^X\/\(\/\/\)$/{ s//\1/; q; } 17273 /^X\/\(\/\).*/{ s//\1/; q; } 17274 s/.*/./; q'` 17275 17276 17277 # PATH needs CR, and LINENO needs CR and PATH. 17278 # Avoid depending upon Character Ranges. 17279 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 17280 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 17281 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 17282 as_cr_digits='0123456789' 17283 as_cr_alnum=$as_cr_Letters$as_cr_digits 17284 17285 # The user is always right. 17286 if test "${PATH_SEPARATOR+set}" != set; then 17287 echo "#! /bin/sh" >conf$$.sh 17288 echo "exit 0" >>conf$$.sh 17289 chmod +x conf$$.sh 17290 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 17291 PATH_SEPARATOR=';' 17292 else 17293 PATH_SEPARATOR=: 17294 fi 17295 rm -f conf$$.sh 17296 fi 17297 17298 17299 as_lineno_1=$LINENO 17300 as_lineno_2=$LINENO 17301 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 17302 test "x$as_lineno_1" != "x$as_lineno_2" && 17303 test "x$as_lineno_3" = "x$as_lineno_2" || { 17304 # Find who we are. Look in the path if we contain no path at all 17305 # relative or not. 17306 case $0 in 17307 *[\\/]* ) as_myself=$0 ;; 17308 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17309 for as_dir in $PATH 17310 do 17311 IFS=$as_save_IFS 17312 test -z "$as_dir" && as_dir=. 17313 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 17314 done 17315 17316 ;; 17317 esac 17318 # We did not find ourselves, most probably we were run as `sh COMMAND' 17319 # in which case we are not to be found in the path. 17320 if test "x$as_myself" = x; then 17321 as_myself=$0 17322 fi 17323 if test ! -f "$as_myself"; then 17324 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 17325 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 17326 { (exit 1); exit 1; }; } 17327 fi 17328 case $CONFIG_SHELL in 17329 '') 17330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17331 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 17332 do 17333 IFS=$as_save_IFS 17334 test -z "$as_dir" && as_dir=. 17335 for as_base in sh bash ksh sh5; do 17336 case $as_dir in 17337 /*) 17338 if ("$as_dir/$as_base" -c ' 17339 as_lineno_1=$LINENO 17340 as_lineno_2=$LINENO 17341 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 17342 test "x$as_lineno_1" != "x$as_lineno_2" && 17343 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 17344 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 17345 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 17346 CONFIG_SHELL=$as_dir/$as_base 17347 export CONFIG_SHELL 17348 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 17349 fi;; 17350 esac 17351 done 17352 done 17353 ;; 17354 esac 17355 17356 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 17357 # uniformly replaced by the line number. The first 'sed' inserts a 17358 # line-number line before each line; the second 'sed' does the real 17359 # work. The second script uses 'N' to pair each line-number line 17360 # with the numbered line, and appends trailing '-' during 17361 # substitution so that $LINENO is not a special case at line end. 17362 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 17363 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 17364 sed '=' <$as_myself | 17365 sed ' 17366 N 17367 s,$,-, 17368 : loop 17369 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 17370 t loop 17371 s,-$,, 17372 s,^['$as_cr_digits']*\n,, 17373 ' >$as_me.lineno && 17374 chmod +x $as_me.lineno || 17375 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 17376 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 17377 { (exit 1); exit 1; }; } 17378 17379 # Don't try to exec as it changes $[0], causing all sort of problems 17380 # (the dirname of $[0] is not the place where we might find the 17381 # original and so on. Autoconf is especially sensible to this). 17382 . ./$as_me.lineno 17383 # Exit status is that of the last command. 17384 exit 17385 } 17386 17387 17388 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 17389 *c*,-n*) ECHO_N= ECHO_C=' 17390 ' ECHO_T=' ' ;; 17391 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 17392 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 17393 esac 17394 17395 if expr a : '\(a\)' >/dev/null 2>&1; then 17396 as_expr=expr 17397 else 17398 as_expr=false 17399 fi 17400 17401 rm -f conf$$ conf$$.exe conf$$.file 17402 echo >conf$$.file 17403 if ln -s conf$$.file conf$$ 2>/dev/null; then 17404 # We could just check for DJGPP; but this test a) works b) is more generic 17405 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 17406 if test -f conf$$.exe; then 17407 # Don't use ln at all; we don't have any links 17408 as_ln_s='cp -p' 17409 else 17410 as_ln_s='ln -s' 17411 fi 17412 elif ln conf$$.file conf$$ 2>/dev/null; then 17413 as_ln_s=ln 17414 else 17415 as_ln_s='cp -p' 17416 fi 17417 rm -f conf$$ conf$$.exe conf$$.file 17418 17419 if mkdir -p . 2>/dev/null; then 17420 as_mkdir_p=: 17421 else 17422 test -d ./-p && rmdir ./-p 17423 as_mkdir_p=false 17424 fi 17425 17426 as_executable_p="test -f" 17427 17428 # Sed expression to map a string onto a valid CPP name. 17429 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 17430 17431 # Sed expression to map a string onto a valid variable name. 17432 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 17433 17434 17435 # IFS 17436 # We need space, tab and new line, in precisely that order. 17437 as_nl=' 17438 ' 17439 IFS=" $as_nl" 17440 17441 # CDPATH. 17442 $as_unset CDPATH 17443 17444 exec 6>&1 17445 17446 # Open the log real soon, to keep \$[0] and so on meaningful, and to 17447 # report actual input values of CONFIG_FILES etc. instead of their 17448 # values after options handling. Logging --version etc. is OK. 17449 exec 5>>config.log 17450 { 17451 echo 17452 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 17453 ## Running $as_me. ## 17454 _ASBOX 17455 } >&5 17456 cat >&5 <<_CSEOF 17457 17458 This file was extended by libconfig $as_me 0.2.5, which was 17459 generated by GNU Autoconf 2.59. Invocation command line was 17460 17461 CONFIG_FILES = $CONFIG_FILES 17462 CONFIG_HEADERS = $CONFIG_HEADERS 17463 CONFIG_LINKS = $CONFIG_LINKS 17464 CONFIG_COMMANDS = $CONFIG_COMMANDS 17465 $ $0 $@ 17466 17467 _CSEOF 17468 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 17469 echo >&5 17470 _ACEOF 17471 17472 # Files that config.status was made for. 17473 if test -n "$ac_config_files"; then 17474 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 17475 fi 17476 17477 if test -n "$ac_config_headers"; then 17478 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 17479 fi 17480 17481 if test -n "$ac_config_links"; then 17482 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 17483 fi 17484 17485 if test -n "$ac_config_commands"; then 17486 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 17487 fi 17488 17489 cat >>$CONFIG_STATUS <<\_ACEOF 17490 17491 ac_cs_usage="\ 17492 \`$as_me' instantiates files from templates according to the 17493 current configuration. 17494 17495 Usage: $0 [OPTIONS] [FILE]... 17496 17497 -h, --help print this help, then exit 17498 -V, --version print version number, then exit 17499 -q, --quiet do not print progress messages 17500 -d, --debug don't remove temporary files 17501 --recheck update $as_me by reconfiguring in the same conditions 17502 --file=FILE[:TEMPLATE] 17503 instantiate the configuration file FILE 17504 --header=FILE[:TEMPLATE] 17505 instantiate the configuration header FILE 17506 17507 Configuration files: 17508 $config_files 17509 17510 Configuration headers: 17511 $config_headers 17512 17513 Report bugs to <bug-autoconf@gnu.org>." 17514 _ACEOF 17515 17516 cat >>$CONFIG_STATUS <<_ACEOF 17517 ac_cs_version="\\ 17518 libconfig config.status 0.2.5 17519 configured by $0, generated by GNU Autoconf 2.59, 17520 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 17521 17522 Copyright (C) 2003 Free Software Foundation, Inc. 17523 This config.status script is free software; the Free Software Foundation 17524 gives unlimited permission to copy, distribute and modify it." 17525 srcdir=$srcdir 17526 INSTALL="$INSTALL" 17527 _ACEOF 17528 17529 cat >>$CONFIG_STATUS <<\_ACEOF 17530 # If no file are specified by the user, then we need to provide default 17531 # value. By we need to know if files were specified by the user. 17532 ac_need_defaults=: 17533 while test $# != 0 17534 do 17535 case $1 in 17536 --*=*) 17537 ac_option=`expr "x$1" : 'x\([^=]*\)='` 17538 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 17539 ac_shift=: 17540 ;; 17541 -*) 17542 ac_option=$1 17543 ac_optarg=$2 17544 ac_shift=shift 17545 ;; 17546 *) # This is not an option, so the user has probably given explicit 17547 # arguments. 17548 ac_option=$1 17549 ac_need_defaults=false;; 17550 esac 17551 17552 case $ac_option in 17553 # Handling of the options. 17554 _ACEOF 17555 cat >>$CONFIG_STATUS <<\_ACEOF 17556 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 17557 ac_cs_recheck=: ;; 17558 --version | --vers* | -V ) 17559 echo "$ac_cs_version"; exit 0 ;; 17560 --he | --h) 17561 # Conflict between --help and --header 17562 { { echo "$as_me:$LINENO: error: ambiguous option: $1 17563 Try \`$0 --help' for more information." >&5 17564 echo "$as_me: error: ambiguous option: $1 17565 Try \`$0 --help' for more information." >&2;} 17566 { (exit 1); exit 1; }; };; 17567 --help | --hel | -h ) 17568 echo "$ac_cs_usage"; exit 0 ;; 17569 --debug | --d* | -d ) 17570 debug=: ;; 17571 --file | --fil | --fi | --f ) 17572 $ac_shift 17573 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 17574 ac_need_defaults=false;; 17575 --header | --heade | --head | --hea ) 17576 $ac_shift 17577 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 17578 ac_need_defaults=false;; 17579 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 17580 | -silent | --silent | --silen | --sile | --sil | --si | --s) 17581 ac_cs_silent=: ;; 17582 17583 # This is an error. 17584 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 17585 Try \`$0 --help' for more information." >&5 17586 echo "$as_me: error: unrecognized option: $1 17587 Try \`$0 --help' for more information." >&2;} 17588 { (exit 1); exit 1; }; } ;; 17589 17590 *) ac_config_targets="$ac_config_targets $1" ;; 17591 17592 esac 17593 shift 17594 done 17595 17596 ac_configure_extra_args= 17597 17598 if $ac_cs_silent; then 17599 exec 6>/dev/null 17600 ac_configure_extra_args="$ac_configure_extra_args --silent" 17601 fi 17602 17603 _ACEOF 17604 cat >>$CONFIG_STATUS <<_ACEOF 17605 if \$ac_cs_recheck; then 17606 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 17607 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 17608 fi 17609 17610 _ACEOF 17611 17612 17613 17614 17615 17616 cat >>$CONFIG_STATUS <<\_ACEOF 17617 for ac_config_target in $ac_config_targets 17618 do 17619 case "$ac_config_target" in 17620 # Handling of arguments. 17621 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 17622 "lc_geterrno.3" ) CONFIG_FILES="$CONFIG_FILES lc_geterrno.3" ;; 17623 "lc_process.3" ) CONFIG_FILES="$CONFIG_FILES lc_process.3" ;; 17624 "lc_register_var.3" ) CONFIG_FILES="$CONFIG_FILES lc_register_var.3" ;; 17625 "lc_geterrstr.3" ) CONFIG_FILES="$CONFIG_FILES lc_geterrstr.3" ;; 17626 "lc_seterrstr.3" ) CONFIG_FILES="$CONFIG_FILES lc_seterrstr.3" ;; 17627 "lc_register_callback.3" ) CONFIG_FILES="$CONFIG_FILES lc_register_callback.3" ;; 17628 "lc_cleanup.3" ) CONFIG_FILES="$CONFIG_FILES lc_cleanup.3" ;; 17629 "lc_process_file.3" ) CONFIG_FILES="$CONFIG_FILES lc_process_file.3" ;; 17630 "libconfig.3" ) CONFIG_FILES="$CONFIG_FILES libconfig.3" ;; 17631 "lc_handle_type.3" ) CONFIG_FILES="$CONFIG_FILES lc_handle_type.3" ;; 17632 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 17633 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 17634 echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 17635 { (exit 1); exit 1; }; };; 17636 esac 17637 done 17638 17639 # If the user did not use the arguments to specify the items to instantiate, 17640 # then the envvar interface is used. Set only those that are not. 17641 # We use the long form for the default assignment because of an extremely 17642 # bizarre bug on SunOS 4.1.3. 17643 if $ac_need_defaults; then 17644 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 17645 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 17646 fi 17647 17648 # Have a temporary directory for convenience. Make it in the build tree 17649 # simply because there is no reason to put it here, and in addition, 17650 # creating and moving files from /tmp can sometimes cause problems. 17651 # Create a temporary directory, and hook for its removal unless debugging. 17652 $debug || 17653 { 17654 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 17655 trap '{ (exit 1); exit 1; }' 1 2 13 15 17656 } 17657 17658 # Create a (secure) tmp directory for tmp files. 17659 17660 { 17661 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 17662 test -n "$tmp" && test -d "$tmp" 17663 } || 17664 { 17665 tmp=./confstat$$-$RANDOM 17666 (umask 077 && mkdir $tmp) 17667 } || 17668 { 17669 echo "$me: cannot create a temporary directory in ." >&2 17670 { (exit 1); exit 1; } 17671 } 17672 17673 _ACEOF 17674 17675 cat >>$CONFIG_STATUS <<_ACEOF 17676 17677 # 17678 # CONFIG_FILES section. 17679 # 17680 17681 # No need to generate the scripts if there are no CONFIG_FILES. 17682 # This happens for instance when ./config.status config.h 17683 if test -n "\$CONFIG_FILES"; then 17684 # Protect against being on the right side of a sed subst in config.status. 17685 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 17686 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 17687 s,@SHELL@,$SHELL,;t t 17688 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 17689 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 17690 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 17691 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 17692 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 17693 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 17694 s,@exec_prefix@,$exec_prefix,;t t 17695 s,@prefix@,$prefix,;t t 17696 s,@program_transform_name@,$program_transform_name,;t t 17697 s,@bindir@,$bindir,;t t 17698 s,@sbindir@,$sbindir,;t t 17699 s,@libexecdir@,$libexecdir,;t t 17700 s,@datadir@,$datadir,;t t 17701 s,@sysconfdir@,$sysconfdir,;t t 17702 s,@sharedstatedir@,$sharedstatedir,;t t 17703 s,@localstatedir@,$localstatedir,;t t 17704 s,@libdir@,$libdir,;t t 17705 s,@includedir@,$includedir,;t t 17706 s,@oldincludedir@,$oldincludedir,;t t 17707 s,@infodir@,$infodir,;t t 17708 s,@mandir@,$mandir,;t t 17709 s,@build_alias@,$build_alias,;t t 17710 s,@host_alias@,$host_alias,;t t 17711 s,@target_alias@,$target_alias,;t t 17712 s,@DEFS@,$DEFS,;t t 17713 s,@ECHO_C@,$ECHO_C,;t t 17714 s,@ECHO_N@,$ECHO_N,;t t 17715 s,@ECHO_T@,$ECHO_T,;t t 17716 s,@LIBS@,$LIBS,;t t 17717 s,@build@,$build,;t t 17718 s,@build_cpu@,$build_cpu,;t t 17719 s,@build_vendor@,$build_vendor,;t t 17720 s,@build_os@,$build_os,;t t 17721 s,@host@,$host,;t t 17722 s,@host_cpu@,$host_cpu,;t t 17723 s,@host_vendor@,$host_vendor,;t t 17724 s,@host_os@,$host_os,;t t 17725 s,@SHOBJEXT@,$SHOBJEXT,;t t 17726 s,@SHOBJFLAGS@,$SHOBJFLAGS,;t t 17727 s,@SHOBJLDFLAGS@,$SHOBJLDFLAGS,;t t 17728 s,@CFLAGS@,$CFLAGS,;t t 17729 s,@CPPFLAGS@,$CPPFLAGS,;t t 17730 s,@AREXT@,$AREXT,;t t 17731 s,@CC@,$CC,;t t 17732 s,@LDFLAGS@,$LDFLAGS,;t t 17733 s,@ac_ct_CC@,$ac_ct_CC,;t t 17734 s,@EXEEXT@,$EXEEXT,;t t 17735 s,@OBJEXT@,$OBJEXT,;t t 17736 s,@SET_MAKE@,$SET_MAKE,;t t 17737 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 17738 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 17739 s,@INSTALL_DATA@,$INSTALL_DATA,;t t 17740 s,@LN_S@,$LN_S,;t t 17741 s,@RANLIB@,$RANLIB,;t t 17742 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 17743 s,@CPP@,$CPP,;t t 17744 s,@EGREP@,$EGREP,;t t 17745 s,@AR@,$AR,;t t 17746 s,@ac_ct_AR@,$ac_ct_AR,;t t 17747 s,@SHLIBOBJS@,$SHLIBOBJS,;t t 17748 s,@LIBOBJS@,$LIBOBJS,;t t 17749 s,@LTLIBOBJS@,$LTLIBOBJS,;t t 17750 CEOF 17751 17752 _ACEOF 17753 17754 cat >>$CONFIG_STATUS <<\_ACEOF 17755 # Split the substitutions into bite-sized pieces for seds with 17756 # small command number limits, like on Digital OSF/1 and HP-UX. 17757 ac_max_sed_lines=48 17758 ac_sed_frag=1 # Number of current file. 17759 ac_beg=1 # First line for current file. 17760 ac_end=$ac_max_sed_lines # Line after last line for current file. 17761 ac_more_lines=: 17762 ac_sed_cmds= 17763 while $ac_more_lines; do 17764 if test $ac_beg -gt 1; then 17765 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 17766 else 17767 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 17768 fi 17769 if test ! -s $tmp/subs.frag; then 17770 ac_more_lines=false 17771 else 17772 # The purpose of the label and of the branching condition is to 17773 # speed up the sed processing (if there are no `@' at all, there 17774 # is no need to browse any of the substitutions). 17775 # These are the two extra sed commands mentioned above. 17776 (echo ':t 17777 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 17778 if test -z "$ac_sed_cmds"; then 17779 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 17780 else 17781 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 17782 fi 17783 ac_sed_frag=`expr $ac_sed_frag + 1` 17784 ac_beg=$ac_end 17785 ac_end=`expr $ac_end + $ac_max_sed_lines` 17786 fi 17787 done 17788 if test -z "$ac_sed_cmds"; then 17789 ac_sed_cmds=cat 17790 fi 17791 fi # test -n "$CONFIG_FILES" 17792 17793 _ACEOF 17794 cat >>$CONFIG_STATUS <<\_ACEOF 17795 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 17796 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 17797 case $ac_file in 17798 - | *:- | *:-:* ) # input from stdin 17799 cat >$tmp/stdin 17800 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 17801 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 17802 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 17803 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 17804 * ) ac_file_in=$ac_file.in ;; 17805 esac 17806 17807 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 17808 ac_dir=`(dirname "$ac_file") 2>/dev/null || 17809 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17810 X"$ac_file" : 'X\(//\)[^/]' \| \ 17811 X"$ac_file" : 'X\(//\)$' \| \ 17812 X"$ac_file" : 'X\(/\)' \| \ 17813 . : '\(.\)' 2>/dev/null || 17814 echo X"$ac_file" | 17815 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 17816 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 17817 /^X\(\/\/\)$/{ s//\1/; q; } 17818 /^X\(\/\).*/{ s//\1/; q; } 17819 s/.*/./; q'` 17820 { if $as_mkdir_p; then 17821 mkdir -p "$ac_dir" 17822 else 17823 as_dir="$ac_dir" 17824 as_dirs= 17825 while test ! -d "$as_dir"; do 17826 as_dirs="$as_dir $as_dirs" 17827 as_dir=`(dirname "$as_dir") 2>/dev/null || 17828 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17829 X"$as_dir" : 'X\(//\)[^/]' \| \ 17830 X"$as_dir" : 'X\(//\)$' \| \ 17831 X"$as_dir" : 'X\(/\)' \| \ 17832 . : '\(.\)' 2>/dev/null || 17833 echo X"$as_dir" | 17834 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 17835 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 17836 /^X\(\/\/\)$/{ s//\1/; q; } 17837 /^X\(\/\).*/{ s//\1/; q; } 17838 s/.*/./; q'` 17839 done 17840 test ! -n "$as_dirs" || mkdir $as_dirs 17841 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 17842 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 17843 { (exit 1); exit 1; }; }; } 17844 17845 ac_builddir=. 17846 17847 if test "$ac_dir" != .; then 17848 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 17849 # A "../" for each directory in $ac_dir_suffix. 17850 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 17851 else 17852 ac_dir_suffix= ac_top_builddir= 17853 fi 17854 17855 case $srcdir in 17856 .) # No --srcdir option. We are building in place. 17857 ac_srcdir=. 17858 if test -z "$ac_top_builddir"; then 17859 ac_top_srcdir=. 17860 else 17861 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 17862 fi ;; 17863 [\\/]* | ?:[\\/]* ) # Absolute path. 17864 ac_srcdir=$srcdir$ac_dir_suffix; 17865 ac_top_srcdir=$srcdir ;; 17866 *) # Relative path. 17867 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 17868 ac_top_srcdir=$ac_top_builddir$srcdir ;; 17869 esac 17870 17871 # Do not use `cd foo && pwd` to compute absolute paths, because 17872 # the directories may not exist. 17873 case `pwd` in 17874 .) ac_abs_builddir="$ac_dir";; 17875 *) 17876 case "$ac_dir" in 17877 .) ac_abs_builddir=`pwd`;; 17878 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 17879 *) ac_abs_builddir=`pwd`/"$ac_dir";; 17880 esac;; 17881 esac 17882 case $ac_abs_builddir in 17883 .) ac_abs_top_builddir=${ac_top_builddir}.;; 17884 *) 17885 case ${ac_top_builddir}. in 17886 .) ac_abs_top_builddir=$ac_abs_builddir;; 17887 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 17888 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 17889 esac;; 17890 esac 17891 case $ac_abs_builddir in 17892 .) ac_abs_srcdir=$ac_srcdir;; 17893 *) 17894 case $ac_srcdir in 17895 .) ac_abs_srcdir=$ac_abs_builddir;; 17896 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 17897 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 17898 esac;; 17899 esac 17900 case $ac_abs_builddir in 17901 .) ac_abs_top_srcdir=$ac_top_srcdir;; 17902 *) 17903 case $ac_top_srcdir in 17904 .) ac_abs_top_srcdir=$ac_abs_builddir;; 17905 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 17906 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 17907 esac;; 17908 esac 17909 17910 17911 case $INSTALL in 17912 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 17913 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 17914 esac 17915 17916 if test x"$ac_file" != x-; then 17917 { echo "$as_me:$LINENO: creating $ac_file" >&5 17918 echo "$as_me: creating $ac_file" >&6;} 17919 rm -f "$ac_file" 17920 fi 17921 # Let's still pretend it is `configure' which instantiates (i.e., don't 17922 # use $as_me), people would be surprised to read: 17923 # /* config.h. Generated by config.status. */ 17924 if test x"$ac_file" = x-; then 17925 configure_input= 17926 else 17927 configure_input="$ac_file. " 17928 fi 17929 configure_input=$configure_input"Generated from `echo $ac_file_in | 17930 sed 's,.*/,,'` by configure." 17931 17932 # First look for the input files in the build tree, otherwise in the 17933 # src tree. 17934 ac_file_inputs=`IFS=: 17935 for f in $ac_file_in; do 17936 case $f in 17937 -) echo $tmp/stdin ;; 17938 [\\/$]*) 17939 # Absolute (can't be DOS-style, as IFS=:) 17940 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 17941 echo "$as_me: error: cannot find input file: $f" >&2;} 17942 { (exit 1); exit 1; }; } 17943 echo "$f";; 17944 *) # Relative 17945 if test -f "$f"; then 17946 # Build tree 17947 echo "$f" 17948 elif test -f "$srcdir/$f"; then 17949 # Source tree 17950 echo "$srcdir/$f" 17951 else 17952 # /dev/null tree 17953 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 17954 echo "$as_me: error: cannot find input file: $f" >&2;} 17955 { (exit 1); exit 1; }; } 17956 fi;; 17957 esac 17958 done` || { (exit 1); exit 1; } 17959 _ACEOF 17960 cat >>$CONFIG_STATUS <<_ACEOF 17961 sed "$ac_vpsub 17962 $extrasub 17963 _ACEOF 17964 cat >>$CONFIG_STATUS <<\_ACEOF 17965 :t 17966 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 17967 s,@configure_input@,$configure_input,;t t 17968 s,@srcdir@,$ac_srcdir,;t t 17969 s,@abs_srcdir@,$ac_abs_srcdir,;t t 17970 s,@top_srcdir@,$ac_top_srcdir,;t t 17971 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 17972 s,@builddir@,$ac_builddir,;t t 17973 s,@abs_builddir@,$ac_abs_builddir,;t t 17974 s,@top_builddir@,$ac_top_builddir,;t t 17975 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 17976 s,@INSTALL@,$ac_INSTALL,;t t 17977 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 17978 rm -f $tmp/stdin 17979 if test x"$ac_file" != x-; then 17980 mv $tmp/out $ac_file 17981 else 17982 cat $tmp/out 17983 rm -f $tmp/out 17984 fi 17985 17986 done 17987 _ACEOF 17988 cat >>$CONFIG_STATUS <<\_ACEOF 17989 17990 # 17991 # CONFIG_HEADER section. 17992 # 17993 17994 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 17995 # NAME is the cpp macro being defined and VALUE is the value it is being given. 17996 # 17997 # ac_d sets the value in "#define NAME VALUE" lines. 17998 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 17999 ac_dB='[ ].*$,\1#\2' 18000 ac_dC=' ' 18001 ac_dD=',;t' 18002 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 18003 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 18004 ac_uB='$,\1#\2define\3' 18005 ac_uC=' ' 18006 ac_uD=',;t' 18007 18008 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 18009 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 18010 case $ac_file in 18011 - | *:- | *:-:* ) # input from stdin 18012 cat >$tmp/stdin 18013 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 18014 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 18015 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 18016 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 18017 * ) ac_file_in=$ac_file.in ;; 18018 esac 18019 18020 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 18021 echo "$as_me: creating $ac_file" >&6;} 18022 18023 # First look for the input files in the build tree, otherwise in the 18024 # src tree. 18025 ac_file_inputs=`IFS=: 18026 for f in $ac_file_in; do 18027 case $f in 18028 -) echo $tmp/stdin ;; 18029 [\\/$]*) 18030 # Absolute (can't be DOS-style, as IFS=:) 18031 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 18032 echo "$as_me: error: cannot find input file: $f" >&2;} 18033 { (exit 1); exit 1; }; } 18034 # Do quote $f, to prevent DOS paths from being IFS'd. 18035 echo "$f";; 18036 *) # Relative 18037 if test -f "$f"; then 18038 # Build tree 18039 echo "$f" 18040 elif test -f "$srcdir/$f"; then 18041 # Source tree 18042 echo "$srcdir/$f" 18043 else 18044 # /dev/null tree 18045 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 18046 echo "$as_me: error: cannot find input file: $f" >&2;} 18047 { (exit 1); exit 1; }; } 18048 fi;; 18049 esac 18050 done` || { (exit 1); exit 1; } 18051 # Remove the trailing spaces. 18052 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 18053 18054 _ACEOF 18055 18056 # Transform confdefs.h into two sed scripts, `conftest.defines' and 18057 # `conftest.undefs', that substitutes the proper values into 18058 # config.h.in to produce config.h. The first handles `#define' 18059 # templates, and the second `#undef' templates. 18060 # And first: Protect against being on the right side of a sed subst in 18061 # config.status. Protect against being in an unquoted here document 18062 # in config.status. 18063 rm -f conftest.defines conftest.undefs 18064 # Using a here document instead of a string reduces the quoting nightmare. 18065 # Putting comments in sed scripts is not portable. 18066 # 18067 # `end' is used to avoid that the second main sed command (meant for 18068 # 0-ary CPP macros) applies to n-ary macro definitions. 18069 # See the Autoconf documentation for `clear'. 18070 cat >confdef2sed.sed <<\_ACEOF 18071 s/[\\&,]/\\&/g 18072 s,[\\$`],\\&,g 18073 t clear 18074 : clear 18075 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp 18076 t end 18077 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 18078 : end 18079 _ACEOF 18080 # If some macros were called several times there might be several times 18081 # the same #defines, which is useless. Nevertheless, we may not want to 18082 # sort them, since we want the *last* AC-DEFINE to be honored. 18083 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 18084 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 18085 rm -f confdef2sed.sed 18086 18087 # This sed command replaces #undef with comments. This is necessary, for 18088 # example, in the case of _POSIX_SOURCE, which is predefined and required 18089 # on some systems where configure will not decide to define it. 18090 cat >>conftest.undefs <<\_ACEOF 18091 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 18092 _ACEOF 18093 18094 # Break up conftest.defines because some shells have a limit on the size 18095 # of here documents, and old seds have small limits too (100 cmds). 18096 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 18097 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 18098 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 18099 echo ' :' >>$CONFIG_STATUS 18100 rm -f conftest.tail 18101 while grep . conftest.defines >/dev/null 18102 do 18103 # Write a limited-size here document to $tmp/defines.sed. 18104 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 18105 # Speed up: don't consider the non `#define' lines. 18106 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 18107 # Work around the forget-to-reset-the-flag bug. 18108 echo 't clr' >>$CONFIG_STATUS 18109 echo ': clr' >>$CONFIG_STATUS 18110 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 18111 echo 'CEOF 18112 sed -f $tmp/defines.sed $tmp/in >$tmp/out 18113 rm -f $tmp/in 18114 mv $tmp/out $tmp/in 18115 ' >>$CONFIG_STATUS 18116 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 18117 rm -f conftest.defines 18118 mv conftest.tail conftest.defines 18119 done 18120 rm -f conftest.defines 18121 echo ' fi # grep' >>$CONFIG_STATUS 18122 echo >>$CONFIG_STATUS 18123 18124 # Break up conftest.undefs because some shells have a limit on the size 18125 # of here documents, and old seds have small limits too (100 cmds). 18126 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 18127 rm -f conftest.tail 18128 while grep . conftest.undefs >/dev/null 18129 do 18130 # Write a limited-size here document to $tmp/undefs.sed. 18131 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 18132 # Speed up: don't consider the non `#undef' 18133 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 18134 # Work around the forget-to-reset-the-flag bug. 18135 echo 't clr' >>$CONFIG_STATUS 18136 echo ': clr' >>$CONFIG_STATUS 18137 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 18138 echo 'CEOF 18139 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 18140 rm -f $tmp/in 18141 mv $tmp/out $tmp/in 18142 ' >>$CONFIG_STATUS 18143 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 18144 rm -f conftest.undefs 18145 mv conftest.tail conftest.undefs 18146 done 18147 rm -f conftest.undefs 18148 18149 cat >>$CONFIG_STATUS <<\_ACEOF 18150 # Let's still pretend it is `configure' which instantiates (i.e., don't 18151 # use $as_me), people would be surprised to read: 18152 # /* config.h. Generated by config.status. */ 18153 if test x"$ac_file" = x-; then 18154 echo "/* Generated by configure. */" >$tmp/config.h 18155 else 18156 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h 18157 fi 18158 cat $tmp/in >>$tmp/config.h 18159 rm -f $tmp/in 18160 if test x"$ac_file" != x-; then 18161 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then 18162 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 18163 echo "$as_me: $ac_file is unchanged" >&6;} 18164 else 18165 ac_dir=`(dirname "$ac_file") 2>/dev/null || 18166 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18167 X"$ac_file" : 'X\(//\)[^/]' \| \ 18168 X"$ac_file" : 'X\(//\)$' \| \ 18169 X"$ac_file" : 'X\(/\)' \| \ 18170 . : '\(.\)' 2>/dev/null || 18171 echo X"$ac_file" | 18172 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 18173 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 18174 /^X\(\/\/\)$/{ s//\1/; q; } 18175 /^X\(\/\).*/{ s//\1/; q; } 18176 s/.*/./; q'` 18177 { if $as_mkdir_p; then 18178 mkdir -p "$ac_dir" 18179 else 18180 as_dir="$ac_dir" 18181 as_dirs= 18182 while test ! -d "$as_dir"; do 18183 as_dirs="$as_dir $as_dirs" 18184 as_dir=`(dirname "$as_dir") 2>/dev/null || 18185 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18186 X"$as_dir" : 'X\(//\)[^/]' \| \ 18187 X"$as_dir" : 'X\(//\)$' \| \ 18188 X"$as_dir" : 'X\(/\)' \| \ 18189 . : '\(.\)' 2>/dev/null || 18190 echo X"$as_dir" | 18191 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 18192 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 18193 /^X\(\/\/\)$/{ s//\1/; q; } 18194 /^X\(\/\).*/{ s//\1/; q; } 18195 s/.*/./; q'` 18196 done 18197 test ! -n "$as_dirs" || mkdir $as_dirs 18198 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 18199 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 18200 { (exit 1); exit 1; }; }; } 18201 18202 rm -f $ac_file 18203 mv $tmp/config.h $ac_file 18204 fi 18205 else 18206 cat $tmp/config.h 18207 rm -f $tmp/config.h 18208 fi 18209 done 18210 _ACEOF 18211 18212 cat >>$CONFIG_STATUS <<\_ACEOF 18213 18214 { (exit 0); exit 0; } 18215 _ACEOF 18216 chmod +x $CONFIG_STATUS 18217 ac_clean_files=$ac_clean_files_save 18218 18219 18220 # configure is writing to config.log, and then calls config.status. 18221 # config.status does its own redirection, appending to config.log. 18222 # Unfortunately, on DOS this fails, as config.log is still kept open 18223 # by configure, so config.status won't be able to write to it; its 18224 # output is simply discarded. So we exec the FD to /dev/null, 18225 # effectively closing config.log, so it can be properly (re)opened and 18226 # appended to by config.status. When coming back to configure, we 18227 # need to make the FD available again. 18228 if test "$no_create" != yes; then 18229 ac_cs_success=: 18230 ac_config_status_args= 18231 test "$silent" = yes && 18232 ac_config_status_args="$ac_config_status_args --quiet" 18233 exec 5>/dev/null 18234 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 18235 exec 5>>config.log 18236 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 18237 # would make configure fail if this is the last instruction. 18238 $ac_cs_success || { (exit 1); exit 1; } 18239 fi |