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: cann |