1 #! /bin/sh 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.59 for libssh 0.11-dev . 4 # 5 # Report bugs to <aris@0xbadc0de.be>. 6 # 7 # Copyright (C) 2003 Free Software Foundation, Inc. 8 # This configure script is free software; the Free Software Foundation 9 # gives unlimited permission to copy, distribute and modify it. 10 ## --------------------- ## 11 ## M4sh Initialization. ## 12 ## --------------------- ## 13 14 # Be Bourne compatible 15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 16 emulate sh 17 NULLCMD=: 18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 19 # is contrary to our usage. Disable this feature. 20 alias -g '${1+"$@"}'='"$@"' 21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 22 set -o posix 23 fi 24 DUALCASE=1; export DUALCASE # for MKS sh 25 26 # Support unset when possible. 27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 28 as_unset=unset 29 else 30 as_unset=false 31 fi 32 33 34 # Work around bugs in pre-3.0 UWIN ksh. 35 $as_unset ENV MAIL MAILPATH 36 PS1='$ ' 37 PS2='> ' 38 PS4='+ ' 39 40 # NLS nuisances. 41 for as_var in \ 42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 44 LC_TELEPHONE LC_TIME 45 do 46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 47 eval $as_var=C; export $as_var 48 else 49 $as_unset $as_var 50 fi 51 done 52 53 # Required to use basename. 54 if expr a : '\(a\)' >/dev/null 2>&1; then 55 as_expr=expr 56 else 57 as_expr=false 58 fi 59 60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 61 as_basename=basename 62 else 63 as_basename=false 64 fi 65 66 67 # Name of the executable. 68 as_me=`$as_basename "$0" || 69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 70 X"$0" : 'X\(//\)$' \| \ 71 X"$0" : 'X\(/\)$' \| \ 72 . : '\(.\)' 2>/dev/null || 73 echo X/"$0" | 74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 75 /^X\/\(\/\/\)$/{ s//\1/; q; } 76 /^X\/\(\/\).*/{ s//\1/; q; } 77 s/.*/./; q'` 78 79 80 # PATH needs CR, and LINENO needs CR and PATH. 81 # Avoid depending upon Character Ranges. 82 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 85 as_cr_digits='0123456789' 86 as_cr_alnum=$as_cr_Letters$as_cr_digits 87 88 # The user is always right. 89 if test "${PATH_SEPARATOR+set}" != set; then 90 echo "#! /bin/sh" >conf$$.sh 91 echo "exit 0" >>conf$$.sh 92 chmod +x conf$$.sh 93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 94 PATH_SEPARATOR=';' 95 else 96 PATH_SEPARATOR=: 97 fi 98 rm -f conf$$.sh 99 fi 100 101 102 as_lineno_1=$LINENO 103 as_lineno_2=$LINENO 104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 105 test "x$as_lineno_1" != "x$as_lineno_2" && 106 test "x$as_lineno_3" = "x$as_lineno_2" || { 107 # Find who we are. Look in the path if we contain no path at all 108 # relative or not. 109 case $0 in 110 *[\\/]* ) as_myself=$0 ;; 111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 112 for as_dir in $PATH 113 do 114 IFS=$as_save_IFS 115 test -z "$as_dir" && as_dir=. 116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 117 done 118 119 ;; 120 esac 121 # We did not find ourselves, most probably we were run as `sh COMMAND' 122 # in which case we are not to be found in the path. 123 if test "x$as_myself" = x; then 124 as_myself=$0 125 fi 126 if test ! -f "$as_myself"; then 127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 128 { (exit 1); exit 1; }; } 129 fi 130 case $CONFIG_SHELL in 131 '') 132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 134 do 135 IFS=$as_save_IFS 136 test -z "$as_dir" && as_dir=. 137 for as_base in sh bash ksh sh5; do 138 case $as_dir in 139 /*) 140 if ("$as_dir/$as_base" -c ' 141 as_lineno_1=$LINENO 142 as_lineno_2=$LINENO 143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 144 test "x$as_lineno_1" != "x$as_lineno_2" && 145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 148 CONFIG_SHELL=$as_dir/$as_base 149 export CONFIG_SHELL 150 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 151 fi;; 152 esac 153 done 154 done 155 ;; 156 esac 157 158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 159 # uniformly replaced by the line number. The first 'sed' inserts a 160 # line-number line before each line; the second 'sed' does the real 161 # work. The second script uses 'N' to pair each line-number line 162 # with the numbered line, and appends trailing '-' during 163 # substitution so that $LINENO is not a special case at line end. 164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 166 sed '=' <$as_myself | 167 sed ' 168 N 169 s,$,-, 170 : loop 171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 172 t loop 173 s,-$,, 174 s,^['$as_cr_digits']*\n,, 175 ' >$as_me.lineno && 176 chmod +x $as_me.lineno || 177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 178 { (exit 1); exit 1; }; } 179 180 # Don't try to exec as it changes $[0], causing all sort of problems 181 # (the dirname of $[0] is not the place where we might find the 182 # original and so on. Autoconf is especially sensible to this). 183 . ./$as_me.lineno 184 # Exit status is that of the last command. 185 exit 186 } 187 188 189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 190 *c*,-n*) ECHO_N= ECHO_C=' 191 ' ECHO_T=' ' ;; 192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 194 esac 195 196 if expr a : '\(a\)' >/dev/null 2>&1; then 197 as_expr=expr 198 else 199 as_expr=false 200 fi 201 202 rm -f conf$$ conf$$.exe conf$$.file 203 echo >conf$$.file 204 if ln -s conf$$.file conf$$ 2>/dev/null; then 205 # We could just check for DJGPP; but this test a) works b) is more generic 206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 207 if test -f conf$$.exe; then 208 # Don't use ln at all; we don't have any links 209 as_ln_s='cp -p' 210 else 211 as_ln_s='ln -s' 212 fi 213 elif ln conf$$.file conf$$ 2>/dev/null; then 214 as_ln_s=ln 215 else 216 as_ln_s='cp -p' 217 fi 218 rm -f conf$$ conf$$.exe conf$$.file 219 220 if mkdir -p . 2>/dev/null; then 221 as_mkdir_p=: 222 else 223 test -d ./-p && rmdir ./-p 224 as_mkdir_p=false 225 fi 226 227 as_executable_p="test -f" 228 229 # Sed expression to map a string onto a valid CPP name. 230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 231 232 # Sed expression to map a string onto a valid variable name. 233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 234 235 236 # IFS 237 # We need space, tab and new line, in precisely that order. 238 as_nl=' 239 ' 240 IFS=" $as_nl" 241 242 # CDPATH. 243 $as_unset CDPATH 244 245 246 # Name of the host. 247 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 248 # so uname gets run too. 249 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 250 251 exec 6>&1 252 253 # 254 # Initializations. 255 # 256 ac_default_prefix=/usr/local 257 ac_config_libobj_dir=. 258 cross_compiling=no 259 subdirs= 260 MFLAGS= 261 MAKEFLAGS= 262 SHELL=${CONFIG_SHELL-/bin/sh} 263 264 # Maximum number of lines to put in a shell here document. 265 # This variable seems obsolete. It should probably be removed, and 266 # only ac_max_sed_lines should be used. 267 : ${ac_max_here_lines=38} 268 269 # Identity of this package. 270 PACKAGE_NAME='libssh' 271 PACKAGE_TARNAME='libssh' 272 PACKAGE_VERSION='0.11-dev ' 273 PACKAGE_STRING='libssh 0.11-dev ' 274 PACKAGE_BUGREPORT='aris@0xbadc0de.be' 275 276 ac_unique_file="sample.c" 277 # Factoring default headers for most tests. 278 ac_includes_default="\ 279 #include <stdio.h> 280 #if HAVE_SYS_TYPES_H 281 # include <sys/types.h> 282 #endif 283 #if HAVE_SYS_STAT_H 284 # include <sys/stat.h> 285 #endif 286 #if STDC_HEADERS 287 # include <stdlib.h> 288 # include <stddef.h> 289 #else 290 # if HAVE_STDLIB_H 291 # include <stdlib.h> 292 # endif 293 #endif 294 #if HAVE_STRING_H 295 # if !STDC_HEADERS && HAVE_MEMORY_H 296 # include <memory.h> 297 # endif 298 # include <string.h> 299 #endif 300 #if HAVE_STRINGS_H 301 # include <strings.h> 302 #endif 303 #if HAVE_INTTYPES_H 304 # include <inttypes.h> 305 #else 306 # if HAVE_STDINT_H 307 # include <stdint.h> 308 # endif 309 #endif 310 #if HAVE_UNISTD_H 311 # include <unistd.h> 312 #endif" 313 314 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 DYLIB_EXTENSION LIBSSH_LDFLAGS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S SET_MAKE RANLIB ac_ct_RANLIB CPP EGREP LIBOBJS LTLIBOBJS' 315 ac_subst_files='' 316 317 # Initialize some variables set by options. 318 ac_init_help= 319 ac_init_version=false 320 # The variables have the same names as the options, with 321 # dashes changed to underlines. 322 cache_file=/dev/null 323 exec_prefix=NONE 324 no_create= 325 no_recursion= 326 prefix=NONE 327 program_prefix=NONE 328 program_suffix=NONE 329 program_transform_name=s,x,x, 330 silent= 331 site= 332 srcdir= 333 verbose= 334 x_includes=NONE 335 x_libraries=NONE 336 337 # Installation directory options. 338 # These are left unexpanded so users can "make install exec_prefix=/foo" 339 # and all the variables that are supposed to be based on exec_prefix 340 # by default will actually change. 341 # Use braces instead of parens because sh, perl, etc. also accept them. 342 bindir='${exec_prefix}/bin' 343 sbindir='${exec_prefix}/sbin' 344 libexecdir='${exec_prefix}/libexec' 345 datadir='${prefix}/share' 346 sysconfdir='${prefix}/etc' 347 sharedstatedir='${prefix}/com' 348 localstatedir='${prefix}/var' 349 libdir='${exec_prefix}/lib' 350 includedir='${prefix}/include' 351 oldincludedir='/usr/include' 352 infodir='${prefix}/info' 353 mandir='${prefix}/man' 354 355 ac_prev= 356 for ac_option 357 do 358 # If the previous option needs an argument, assign it. 359 if test -n "$ac_prev"; then 360 eval "$ac_prev=\$ac_option" 361 ac_prev= 362 continue 363 fi 364 365 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 366 367 # Accept the important Cygnus configure options, so we can diagnose typos. 368 369 case $ac_option in 370 371 -bindir | --bindir | --bindi | --bind | --bin | --bi) 372 ac_prev=bindir ;; 373 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 374 bindir=$ac_optarg ;; 375 376 -build | --build | --buil | --bui | --bu) 377 ac_prev=build_alias ;; 378 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 379 build_alias=$ac_optarg ;; 380 381 -cache-file | --cache-file | --cache-fil | --cache-fi \ 382 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 383 ac_prev=cache_file ;; 384 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 385 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 386 cache_file=$ac_optarg ;; 387 388 --config-cache | -C) 389 cache_file=config.cache ;; 390 391 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 392 ac_prev=datadir ;; 393 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 394 | --da=*) 395 datadir=$ac_optarg ;; 396 397 -disable-* | --disable-*) 398 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 399 # Reject names that are not valid shell variable names. 400 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 401 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 402 { (exit 1); exit 1; }; } 403 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 404 eval "enable_$ac_feature=no" ;; 405 406 -enable-* | --enable-*) 407 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 408 # Reject names that are not valid shell variable names. 409 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 410 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 411 { (exit 1); exit 1; }; } 412 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 413 case $ac_option in 414 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 415 *) ac_optarg=yes ;; 416 esac 417 eval "enable_$ac_feature='$ac_optarg'" ;; 418 419 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 420 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 421 | --exec | --exe | --ex) 422 ac_prev=exec_prefix ;; 423 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 424 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 425 | --exec=* | --exe=* | --ex=*) 426 exec_prefix=$ac_optarg ;; 427 428 -gas | --gas | --ga | --g) 429 # Obsolete; use --with-gas. 430 with_gas=yes ;; 431 432 -help | --help | --hel | --he | -h) 433 ac_init_help=long ;; 434 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 435 ac_init_help=recursive ;; 436 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 437 ac_init_help=short ;; 438 439 -host | --host | --hos | --ho) 440 ac_prev=host_alias ;; 441 -host=* | --host=* | --hos=* | --ho=*) 442 host_alias=$ac_optarg ;; 443 444 -includedir | --includedir | --includedi | --included | --include \ 445 | --includ | --inclu | --incl | --inc) 446 ac_prev=includedir ;; 447 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 448 | --includ=* | --inclu=* | --incl=* | --inc=*) 449 includedir=$ac_optarg ;; 450 451 -infodir | --infodir | --infodi | --infod | --info | --inf) 452 ac_prev=infodir ;; 453 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 454 infodir=$ac_optarg ;; 455 456 -libdir | --libdir | --libdi | --libd) 457 ac_prev=libdir ;; 458 -libdir=* | --libdir=* | --libdi=* | --libd=*) 459 libdir=$ac_optarg ;; 460 461 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 462 | --libexe | --libex | --libe) 463 ac_prev=libexecdir ;; 464 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 465 | --libexe=* | --libex=* | --libe=*) 466 libexecdir=$ac_optarg ;; 467 468 -localstatedir | --localstatedir | --localstatedi | --localstated \ 469 | --localstate | --localstat | --localsta | --localst \ 470 | --locals | --local | --loca | --loc | --lo) 471 ac_prev=localstatedir ;; 472 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 473 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 474 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 475 localstatedir=$ac_optarg ;; 476 477 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 478 ac_prev=mandir ;; 479 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 480 mandir=$ac_optarg ;; 481 482 -nfp | --nfp | --nf) 483 # Obsolete; use --without-fp. 484 with_fp=no ;; 485 486 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 487 | --no-cr | --no-c | -n) 488 no_create=yes ;; 489 490 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 491 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 492 no_recursion=yes ;; 493 494 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 495 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 496 | --oldin | --oldi | --old | --ol | --o) 497 ac_prev=oldincludedir ;; 498 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 499 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 500 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 501 oldincludedir=$ac_optarg ;; 502 503 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 504 ac_prev=prefix ;; 505 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 506 prefix=$ac_optarg ;; 507 508 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 509 | --program-pre | --program-pr | --program-p) 510 ac_prev=program_prefix ;; 511 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 512 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 513 program_prefix=$ac_optarg ;; 514 515 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 516 | --program-suf | --program-su | --program-s) 517 ac_prev=program_suffix ;; 518 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 519 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 520 program_suffix=$ac_optarg ;; 521 522 -program-transform-name | --program-transform-name \ 523 | --program-transform-nam | --program-transform-na \ 524 | --program-transform-n | --program-transform- \ 525 | --program-transform | --program-transfor \ 526 | --program-transfo | --program-transf \ 527 | --program-trans | --program-tran \ 528 | --progr-tra | --program-tr | --program-t) 529 ac_prev=program_transform_name ;; 530 -program-transform-name=* | --program-transform-name=* \ 531 | --program-transform-nam=* | --program-transform-na=* \ 532 | --program-transform-n=* | --program-transform-=* \ 533 | --program-transform=* | --program-transfor=* \ 534 | --program-transfo=* | --program-transf=* \ 535 | --program-trans=* | --program-tran=* \ 536 | --progr-tra=* | --program-tr=* | --program-t=*) 537 program_transform_name=$ac_optarg ;; 538 539 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 540 | -silent | --silent | --silen | --sile | --sil) 541 silent=yes ;; 542 543 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 544 ac_prev=sbindir ;; 545 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 546 | --sbi=* | --sb=*) 547 sbindir=$ac_optarg ;; 548 549 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 550 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 551 | --sharedst | --shareds | --shared | --share | --shar \ 552 | --sha | --sh) 553 ac_prev=sharedstatedir ;; 554 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 555 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 556 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 557 | --sha=* | --sh=*) 558 sharedstatedir=$ac_optarg ;; 559 560 -site | --site | --sit) 561 ac_prev=site ;; 562 -site=* | --site=* | --sit=*) 563 site=$ac_optarg ;; 564 565 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 566 ac_prev=srcdir ;; 567 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 568 srcdir=$ac_optarg ;; 569 570 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 571 | --syscon | --sysco | --sysc | --sys | --sy) 572 ac_prev=sysconfdir ;; 573 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 574 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 575 sysconfdir=$ac_optarg ;; 576 577 -target | --target | --targe | --targ | --tar | --ta | --t) 578 ac_prev=target_alias ;; 579 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 580 target_alias=$ac_optarg ;; 581 582 -v | -verbose | --verbose | --verbos | --verbo | --verb) 583 verbose=yes ;; 584 585 -version | --version | --versio | --versi | --vers | -V) 586 ac_init_version=: ;; 587 588 -with-* | --with-*) 589 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 590 # Reject names that are not valid shell variable names. 591 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 592 { echo "$as_me: error: invalid package name: $ac_package" >&2 593 { (exit 1); exit 1; }; } 594 ac_package=`echo $ac_package| sed 's/-/_/g'` 595 case $ac_option in 596 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 597 *) ac_optarg=yes ;; 598 esac 599 eval "with_$ac_package='$ac_optarg'" ;; 600 601 -without-* | --without-*) 602 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 603 # Reject names that are not valid shell variable names. 604 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 605 { echo "$as_me: error: invalid package name: $ac_package" >&2 606 { (exit 1); exit 1; }; } 607 ac_package=`echo $ac_package | sed 's/-/_/g'` 608 eval "with_$ac_package=no" ;; 609 610 --x) 611 # Obsolete; use --with-x. 612 with_x=yes ;; 613 614 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 615 | --x-incl | --x-inc | --x-in | --x-i) 616 ac_prev=x_includes ;; 617 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 618 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 619 x_includes=$ac_optarg ;; 620 621 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 622 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 623 ac_prev=x_libraries ;; 624 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 625 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 626 x_libraries=$ac_optarg ;; 627 628 -*) { echo "$as_me: error: unrecognized option: $ac_option 629 Try \`$0 --help' for more information." >&2 630 { (exit 1); exit 1; }; } 631 ;; 632 633 *=*) 634 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 635 # Reject names that are not valid shell variable names. 636 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 637 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 638 { (exit 1); exit 1; }; } 639 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 640 eval "$ac_envvar='$ac_optarg'" 641 export $ac_envvar ;; 642 643 *) 644 # FIXME: should be removed in autoconf 3.0. 645 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 646 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 647 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 648 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 649 ;; 650 651 esac 652 done 653 654 if test -n "$ac_prev"; then 655 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 656 { echo "$as_me: error: missing argument to $ac_option" >&2 657 { (exit 1); exit 1; }; } 658 fi 659 660 # Be sure to have absolute paths. 661 for ac_var in exec_prefix prefix 662 do 663 eval ac_val=$`echo $ac_var` 664 case $ac_val in 665 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 666 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 667 { (exit 1); exit 1; }; };; 668 esac 669 done 670 671 # Be sure to have absolute paths. 672 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 673 localstatedir libdir includedir oldincludedir infodir mandir 674 do 675 eval ac_val=$`echo $ac_var` 676 case $ac_val in 677 [\\/$]* | ?:[\\/]* ) ;; 678 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 679 { (exit 1); exit 1; }; };; 680 esac 681 done 682 683 # There might be people who depend on the old broken behavior: `$host' 684 # used to hold the argument of --host etc. 685 # FIXME: To remove some day. 686 build=$build_alias 687 host=$host_alias 688 target=$target_alias 689 690 # FIXME: To remove some day. 691 if test "x$host_alias" != x; then 692 if test "x$build_alias" = x; then 693 cross_compiling=maybe 694 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 695 If a cross compiler is detected then cross compile mode will be used." >&2 696 elif test "x$build_alias" != "x$host_alias"; then 697 cross_compiling=yes 698 fi 699 fi 700 701 ac_tool_prefix= 702 test -n "$host_alias" && ac_tool_prefix=$host_alias- 703 704 test "$silent" = yes && exec 6>/dev/null 705 706 707 # Find the source files, if location was not specified. 708 if test -z "$srcdir"; then 709 ac_srcdir_defaulted=yes 710 # Try the directory containing this script, then its parent. 711 ac_confdir=`(dirname "$0") 2>/dev/null || 712 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 713 X"$0" : 'X\(//\)[^/]' \| \ 714 X"$0" : 'X\(//\)$' \| \ 715 X"$0" : 'X\(/\)' \| \ 716 . : '\(.\)' 2>/dev/null || 717 echo X"$0" | 718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 719 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 720 /^X\(\/\/\)$/{ s//\1/; q; } 721 /^X\(\/\).*/{ s//\1/; q; } 722 s/.*/./; q'` 723 srcdir=$ac_confdir 724 if test ! -r $srcdir/$ac_unique_file; then 725 srcdir=.. 726 fi 727 else 728 ac_srcdir_defaulted=no 729 fi 730 if test ! -r $srcdir/$ac_unique_file; then 731 if test "$ac_srcdir_defaulted" = yes; then 732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 733 { (exit 1); exit 1; }; } 734 else 735 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 736 { (exit 1); exit 1; }; } 737 fi 738 fi 739 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || 740 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 741 { (exit 1); exit 1; }; } 742 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 743 ac_env_build_alias_set=${build_alias+set} 744 ac_env_build_alias_value=$build_alias 745 ac_cv_env_build_alias_set=${build_alias+set} 746 ac_cv_env_build_alias_value=$build_alias 747 ac_env_host_alias_set=${host_alias+set} 748 ac_env_host_alias_value=$host_alias 749 ac_cv_env_host_alias_set=${host_alias+set} 750 ac_cv_env_host_alias_value=$host_alias 751 ac_env_target_alias_set=${target_alias+set} 752 ac_env_target_alias_value=$target_alias 753 ac_cv_env_target_alias_set=${target_alias+set} 754 ac_cv_env_target_alias_value=$target_alias 755 ac_env_CC_set=${CC+set} 756 ac_env_CC_value=$CC 757 ac_cv_env_CC_set=${CC+set} 758 ac_cv_env_CC_value=$CC 759 ac_env_CFLAGS_set=${CFLAGS+set} 760 ac_env_CFLAGS_value=$CFLAGS 761 ac_cv_env_CFLAGS_set=${CFLAGS+set} 762 ac_cv_env_CFLAGS_value=$CFLAGS 763 ac_env_LDFLAGS_set=${LDFLAGS+set} 764 ac_env_LDFLAGS_value=$LDFLAGS 765 ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 766 ac_cv_env_LDFLAGS_value=$LDFLAGS 767 ac_env_CPPFLAGS_set=${CPPFLAGS+set} 768 ac_env_CPPFLAGS_value=$CPPFLAGS 769 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 770 ac_cv_env_CPPFLAGS_value=$CPPFLAGS 771 ac_env_CPP_set=${CPP+set} 772 ac_env_CPP_value=$CPP 773 ac_cv_env_CPP_set=${CPP+set} 774 ac_cv_env_CPP_value=$CPP 775 776 # 777 # Report the --help message. 778 # 779 if test "$ac_init_help" = "long"; then 780 # Omit some internal or obsolete options to make the list less imposing. 781 # This message is too long to be a string in the A/UX 3.1 sh. 782 cat <<_ACEOF 783 \`configure' configures libssh 0.11-dev to adapt to many kinds of systems. 784 785 Usage: $0 [OPTION]... [VAR=VALUE]... 786 787 To assign environment variables (e.g., CC, CFLAGS...), specify them as 788 VAR=VALUE. See below for descriptions of some of the useful variables. 789 790 Defaults for the options are specified in brackets. 791 792 Configuration: 793 -h, --help display this help and exit 794 --help=short display options specific to this package 795 --help=recursive display the short help of all the included packages 796 -V, --version display version information and exit 797 -q, --quiet, --silent do not print \`checking...' messages 798 --cache-file=FILE cache test results in FILE [disabled] 799 -C, --config-cache alias for \`--cache-file=config.cache' 800 -n, --no-create do not create output files 801 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 802 803 _ACEOF 804 805 cat <<_ACEOF 806 Installation directories: 807 --prefix=PREFIX install architecture-independent files in PREFIX 808 [$ac_default_prefix] 809 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 810 [PREFIX] 811 812 By default, \`make install' will install all the files in 813 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 814 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 815 for instance \`--prefix=\$HOME'. 816 817 For better control, use the options below. 818 819 Fine tuning of the installation directories: 820 --bindir=DIR user executables [EPREFIX/bin] 821 --sbindir=DIR system admin executables [EPREFIX/sbin] 822 --libexecdir=DIR program executables [EPREFIX/libexec] 823 --datadir=DIR read-only architecture-independent data [PREFIX/share] 824 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 825 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 826 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 827 --libdir=DIR object code libraries [EPREFIX/lib] 828 --includedir=DIR C header files [PREFIX/include] 829 --oldincludedir=DIR C header files for non-gcc [/usr/include] 830 --infodir=DIR info documentation [PREFIX/info] 831 --mandir=DIR man documentation [PREFIX/man] 832 _ACEOF 833 834 cat <<\_ACEOF 835 836 System types: 837 --build=BUILD configure for building on BUILD [guessed] 838 --host=HOST cross-compile to build programs to run on HOST [BUILD] 839 _ACEOF 840 fi 841 842 if test -n "$ac_init_help"; then 843 case $ac_init_help in 844 short | recursive ) echo "Configuration of libssh 0.11-dev :";; 845 esac 846 cat <<\_ACEOF 847 848 Some influential environment variables: 849 CC C compiler command 850 CFLAGS C compiler flags 851 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 852 nonstandard directory <lib dir> 853 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 854 headers in a nonstandard directory <include dir> 855 CPP C preprocessor 856 857 Use these variables to override the choices made by `configure' or to help 858 it to find libraries and programs with nonstandard names/locations. 859 860 Report bugs to <aris@0xbadc0de.be>. 861 _ACEOF 862 fi 863 864 if test "$ac_init_help" = "recursive"; then 865 # If there are subdirs, report their specific --help. 866 ac_popdir=`pwd` 867 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 868 test -d $ac_dir || continue 869 ac_builddir=. 870 871 if test "$ac_dir" != .; then 872 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 873 # A "../" for each directory in $ac_dir_suffix. 874 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 875 else 876 ac_dir_suffix= ac_top_builddir= 877 fi 878 879 case $srcdir in 880 .) # No --srcdir option. We are building in place. 881 ac_srcdir=. 882 if test -z "$ac_top_builddir"; then 883 ac_top_srcdir=. 884 else 885 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 886 fi ;; 887 [\\/]* | ?:[\\/]* ) # Absolute path. 888 ac_srcdir=$srcdir$ac_dir_suffix; 889 ac_top_srcdir=$srcdir ;; 890 *) # Relative path. 891 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 892 ac_top_srcdir=$ac_top_builddir$srcdir ;; 893 esac 894 895 # Do not use `cd foo && pwd` to compute absolute paths, because 896 # the directories may not exist. 897 case `pwd` in 898 .) ac_abs_builddir="$ac_dir";; 899 *) 900 case "$ac_dir" in 901 .) ac_abs_builddir=`pwd`;; 902 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 903 *) ac_abs_builddir=`pwd`/"$ac_dir";; 904 esac;; 905 esac 906 case $ac_abs_builddir in 907 .) ac_abs_top_builddir=${ac_top_builddir}.;; 908 *) 909 case ${ac_top_builddir}. in 910 .) ac_abs_top_builddir=$ac_abs_builddir;; 911 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 912 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 913 esac;; 914 esac 915 case $ac_abs_builddir in 916 .) ac_abs_srcdir=$ac_srcdir;; 917 *) 918 case $ac_srcdir in 919 .) ac_abs_srcdir=$ac_abs_builddir;; 920 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 921 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 922 esac;; 923 esac 924 case $ac_abs_builddir in 925 .) ac_abs_top_srcdir=$ac_top_srcdir;; 926 *) 927 case $ac_top_srcdir in 928 .) ac_abs_top_srcdir=$ac_abs_builddir;; 929 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 930 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 931 esac;; 932 esac 933 934 cd $ac_dir 935 # Check for guested configure; otherwise get Cygnus style configure. 936 if test -f $ac_srcdir/configure.gnu; then 937 echo 938 $SHELL $ac_srcdir/configure.gnu --help=recursive 939 elif test -f $ac_srcdir/configure; then 940 echo 941 $SHELL $ac_srcdir/configure --help=recursive 942 elif test -f $ac_srcdir/configure.ac || 943 test -f $ac_srcdir/configure.in; then 944 echo 945 $ac_configure --help 946 else 947 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 948 fi 949 cd $ac_popdir 950 done 951 fi 952 953 test -n "$ac_init_help" && exit 0 954 if $ac_init_version; then 955 cat <<\_ACEOF 956 libssh configure 0.11-dev 957 generated by GNU Autoconf 2.59 958 959 Copyright (C) 2003 Free Software Foundation, Inc. 960 This configure script is free software; the Free Software Foundation 961 gives unlimited permission to copy, distribute and modify it. 962 _ACEOF 963 exit 0 964 fi 965 exec 5>config.log 966 cat >&5 <<_ACEOF 967 This file contains any messages produced by compilers while 968 running configure, to aid debugging if configure makes a mistake. 969 970 It was created by libssh $as_me 0.11-dev , which was 971 generated by GNU Autoconf 2.59. Invocation command line was 972 973 $ $0 $@ 974 975 _ACEOF 976 { 977 cat <<_ASUNAME 978 ## --------- ## 979 ## Platform. ## 980 ## --------- ## 981 982 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 983 uname -m = `(uname -m) 2>/dev/null || echo unknown` 984 uname -r = `(uname -r) 2>/dev/null || echo unknown` 985 uname -s = `(uname -s) 2>/dev/null || echo unknown` 986 uname -v = `(uname -v) 2>/dev/null || echo unknown` 987 988 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 989 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 990 991 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 992 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 993 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 994 hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 995 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 996 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 997 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 998 999 _ASUNAME 1000 1001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1002 for as_dir in $PATH 1003 do 1004 IFS=$as_save_IFS 1005 test -z "$as_dir" && as_dir=. 1006 echo "PATH: $as_dir" 1007 done 1008 1009 } >&5 1010 1011 cat >&5 <<_ACEOF 1012 1013 1014 ## ----------- ## 1015 ## Core tests. ## 1016 ## ----------- ## 1017 1018 _ACEOF 1019 1020 1021 # Keep a trace of the command line. 1022 # Strip out --no-create and --no-recursion so they do not pile up. 1023 # Strip out --silent because we don't want to record it for future runs. 1024 # Also quote any args containing shell meta-characters. 1025 # Make two passes to allow for proper duplicate-argument suppression. 1026 ac_configure_args= 1027 ac_configure_args0= 1028 ac_configure_args1= 1029 ac_sep= 1030 ac_must_keep_next=false 1031 for ac_pass in 1 2 1032 do 1033 for ac_arg 1034 do 1035 case $ac_arg in 1036 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1037 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1038 | -silent | --silent | --silen | --sile | --sil) 1039 continue ;; 1040 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1041 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1042 esac 1043 case $ac_pass in 1044 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1045 2) 1046 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1047 if test $ac_must_keep_next = true; then 1048 ac_must_keep_next=false # Got value, back to normal. 1049 else 1050 case $ac_arg in 1051 *=* | --config-cache | -C | -disable-* | --disable-* \ 1052 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1053 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1054 | -with-* | --with-* | -without-* | --without-* | --x) 1055 case "$ac_configure_args0 " in 1056 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1057 esac 1058 ;; 1059 -* ) ac_must_keep_next=true ;; 1060 esac 1061 fi 1062 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1063 # Get rid of the leading space. 1064 ac_sep=" " 1065 ;; 1066 esac 1067 done 1068 done 1069 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1070 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1071 1072 # When interrupted or exit'd, cleanup temporary files, and complete 1073 # config.log. We remove comments because anyway the quotes in there 1074 # would cause problems or look ugly. 1075 # WARNING: Be sure not to use single quotes in there, as some shells, 1076 # such as our DU 5.0 friend, will then `close' the trap. 1077 trap 'exit_status=$? 1078 # Save into config.log some information that might help in debugging. 1079 { 1080 echo 1081 1082 cat <<\_ASBOX 1083 ## ---------------- ## 1084 ## Cache variables. ## 1085 ## ---------------- ## 1086 _ASBOX 1087 echo 1088 # The following way of writing the cache mishandles newlines in values, 1089 { 1090 (set) 2>&1 | 1091 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1092 *ac_space=\ *) 1093 sed -n \ 1094 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1095 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1096 ;; 1097 *) 1098 sed -n \ 1099 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1100 ;; 1101 esac; 1102 } 1103 echo 1104 1105 cat <<\_ASBOX 1106 ## ----------------- ## 1107 ## Output variables. ## 1108 ## ----------------- ## 1109 _ASBOX 1110 echo 1111 for ac_var in $ac_subst_vars 1112 do 1113 eval ac_val=$`echo $ac_var` 1114 echo "$ac_var='"'"'$ac_val'"'"'" 1115 done | sort 1116 echo 1117 1118 if test -n "$ac_subst_files"; then 1119 cat <<\_ASBOX 1120 ## ------------- ## 1121 ## Output files. ## 1122 ## ------------- ## 1123 _ASBOX 1124 echo 1125 for ac_var in $ac_subst_files 1126 do 1127 eval ac_val=$`echo $ac_var` 1128 echo "$ac_var='"'"'$ac_val'"'"'" 1129 done | sort 1130 echo 1131 fi 1132 1133 if test -s confdefs.h; then 1134 cat <<\_ASBOX 1135 ## ----------- ## 1136 ## confdefs.h. ## 1137 ## ----------- ## 1138 _ASBOX 1139 echo 1140 sed "/^$/d" confdefs.h | sort 1141 echo 1142 fi 1143 test "$ac_signal" != 0 && 1144 echo "$as_me: caught signal $ac_signal" 1145 echo "$as_me: exit $exit_status" 1146 } >&5 1147 rm -f core *.core && 1148 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1149 exit $exit_status 1150 ' 0 1151 for ac_signal in 1 2 13 15; do 1152 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1153 done 1154 ac_signal=0 1155 1156 # confdefs.h avoids OS command line length limits that DEFS can exceed. 1157 rm -rf conftest* confdefs.h 1158 # AIX cpp loses on an empty file, so make sure it contains at least a newline. 1159 echo >confdefs.h 1160 1161 # Predefined preprocessor variables. 1162 1163 cat >>confdefs.h <<_ACEOF 1164 #define PACKAGE_NAME "$PACKAGE_NAME" 1165 _ACEOF 1166 1167 1168 cat >>confdefs.h <<_ACEOF 1169 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1170 _ACEOF 1171 1172 1173 cat >>confdefs.h <<_ACEOF 1174 #define PACKAGE_VERSION "$PACKAGE_VERSION" 1175 _ACEOF 1176 1177 1178 cat >>confdefs.h <<_ACEOF 1179 #define PACKAGE_STRING "$PACKAGE_STRING" 1180 _ACEOF 1181 1182 1183 cat >>confdefs.h <<_ACEOF 1184 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1185 _ACEOF 1186 1187 1188 # Let the site file select an alternate cache file if it wants to. 1189 # Prefer explicitly selected file to automatically selected ones. 1190 if test -z "$CONFIG_SITE"; then 1191 if test "x$prefix" != xNONE; then 1192 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1193 else 1194 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1195 fi 1196 fi 1197 for ac_site_file in $CONFIG_SITE; do 1198 if test -r "$ac_site_file"; then 1199 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1200 echo "$as_me: loading site script $ac_site_file" >&6;} 1201 sed 's/^/| /' "$ac_site_file" >&5 1202 . "$ac_site_file" 1203 fi 1204 done 1205 1206 if test -r "$cache_file"; then 1207 # Some versions of bash will fail to source /dev/null (special 1208 # files actually), so we avoid doing that. 1209 if test -f "$cache_file"; then 1210 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1211 echo "$as_me: loading cache $cache_file" >&6;} 1212 case $cache_file in 1213 [\\/]* | ?:[\\/]* ) . $cache_file;; 1214 *) . ./$cache_file;; 1215 esac 1216 fi 1217 else 1218 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1219 echo "$as_me: creating cache $cache_file" >&6;} 1220 >$cache_file 1221 fi 1222 1223 # Check that the precious variables saved in the cache have kept the same 1224 # value. 1225 ac_cache_corrupted=false 1226 for ac_var in `(set) 2>&1 | 1227 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1228 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1229 eval ac_new_set=\$ac_env_${ac_var}_set 1230 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1231 eval ac_new_val="\$ac_env_${ac_var}_value" 1232 case $ac_old_set,$ac_new_set in 1233 set,) 1234 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1235 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1236 ac_cache_corrupted=: ;; 1237 ,set) 1238 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1239 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1240 ac_cache_corrupted=: ;; 1241 ,);; 1242 *) 1243 if test "x$ac_old_val" != "x$ac_new_val"; then 1244 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1245 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1246 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1247 echo "$as_me: former value: $ac_old_val" >&2;} 1248 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1249 echo "$as_me: current value: $ac_new_val" >&2;} 1250 ac_cache_corrupted=: 1251 fi;; 1252 esac 1253 # Pass precious variables to config.status. 1254 if test "$ac_new_set" = set; then 1255 case $ac_new_val in 1256 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1257 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1258 *) ac_arg=$ac_var=$ac_new_val ;; 1259 esac 1260 case " $ac_configure_args " in 1261 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1262 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1263 esac 1264 fi 1265 done 1266 if $ac_cache_corrupted; then 1267 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1268 echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1269 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1270 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1271 { (exit 1); exit 1; }; } 1272 fi 1273 1274 ac_ext=c 1275 ac_cpp='$CPP $CPPFLAGS' 1276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1278 ac_compiler_gnu=$ac_cv_c_compiler_gnu 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 ac_config_headers="$ac_config_headers config.h" 1308 1309 1310 # Check for the OS. 1311 ac_aux_dir= 1312 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 1313 if test -f $ac_dir/install-sh; then 1314 ac_aux_dir=$ac_dir 1315 ac_install_sh="$ac_aux_dir/install-sh -c" 1316 break 1317 elif test -f $ac_dir/install.sh; then 1318 ac_aux_dir=$ac_dir 1319 ac_install_sh="$ac_aux_dir/install.sh -c" 1320 break 1321 elif test -f $ac_dir/shtool; then 1322 ac_aux_dir=$ac_dir 1323 ac_install_sh="$ac_aux_dir/shtool install -c" 1324 break 1325 fi 1326 done 1327 if test -z "$ac_aux_dir"; then 1328 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 1329 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 1330 { (exit 1); exit 1; }; } 1331 fi 1332 ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1333 ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1334 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1335 1336 # Make sure we can run config.sub. 1337 $ac_config_sub sun4 >/dev/null 2>&1 || 1338 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 1339 echo "$as_me: error: cannot run $ac_config_sub" >&2;} 1340 { (exit 1); exit 1; }; } 1341 1342 echo "$as_me:$LINENO: checking build system type" >&5 1343 echo $ECHO_N "checking build system type... $ECHO_C" >&6 1344 if test "${ac_cv_build+set}" = set; then 1345 echo $ECHO_N "(cached) $ECHO_C" >&6 1346 else 1347 ac_cv_build_alias=$build_alias 1348 test -z "$ac_cv_build_alias" && 1349 ac_cv_build_alias=`$ac_config_guess` 1350 test -z "$ac_cv_build_alias" && 1351 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 1352 echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 1353 { (exit 1); exit 1; }; } 1354 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 1355 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 1356 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} 1357 { (exit 1); exit 1; }; } 1358 1359 fi 1360 echo "$as_me:$LINENO: result: $ac_cv_build" >&5 1361 echo "${ECHO_T}$ac_cv_build" >&6 1362 build=$ac_cv_build 1363 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1364 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1365 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1366 1367 1368 echo "$as_me:$LINENO: checking host system type" >&5 1369 echo $ECHO_N "checking host system type... $ECHO_C" >&6 1370 if test "${ac_cv_host+set}" = set; then 1371 echo $ECHO_N "(cached) $ECHO_C" >&6 1372 else 1373 ac_cv_host_alias=$host_alias 1374 test -z "$ac_cv_host_alias" && 1375 ac_cv_host_alias=$ac_cv_build_alias 1376 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 1377 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 1378 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 1379 { (exit 1); exit 1; }; } 1380 1381 fi 1382 echo "$as_me:$LINENO: result: $ac_cv_host" >&5 1383 echo "${ECHO_T}$ac_cv_host" >&6 1384 host=$ac_cv_host 1385 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1386 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1387 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1388 1389 1390 case "$host" in 1391 *-apple*) 1392 DYLIB_EXTENSION="dylib" 1393 LIBSSH_LDFLAGS="-dynamiclib -prebind -seg1addr 0x3a000000 -install_name \"${libdir}/libssh.dylib\" -headerpad_max_install_names -current_version 0.1" 1394 ;; 1395 *) 1396 DYLIB_EXTENSION="so" 1397 LIBSSH_LDFLAGS="-shared" 1398 ;; 1399 esac 1400 1401 1402 1403 # Checks for programs. 1404 ac_ext=c 1405 ac_cpp='$CPP $CPPFLAGS' 1406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1408 ac_compiler_gnu=$ac_cv_c_compiler_gnu 1409 if test -n "$ac_tool_prefix"; then 1410 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1411 set dummy ${ac_tool_prefix}gcc; ac_word=$2 1412 echo "$as_me:$LINENO: checking for $ac_word" >&5 1413 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1414 if test "${ac_cv_prog_CC+set}" = set; then 1415 echo $ECHO_N "(cached) $ECHO_C" >&6 1416 else 1417 if test -n "$CC"; then 1418 ac_cv_prog_CC="$CC" # Let the user override the test. 1419 else 1420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1421 for as_dir in $PATH 1422 do 1423 IFS=$as_save_IFS 1424 test -z "$as_dir" && as_dir=. 1425 for ac_exec_ext in '' $ac_executable_extensions; do 1426 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1427 ac_cv_prog_CC="${ac_tool_prefix}gcc" 1428 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1429 break 2 1430 fi 1431 done 1432 done 1433 1434 fi 1435 fi 1436 CC=$ac_cv_prog_CC 1437 if test -n "$CC"; then 1438 echo "$as_me:$LINENO: result: $CC" >&5 1439 echo "${ECHO_T}$CC" >&6 1440 else 1441 echo "$as_me:$LINENO: result: no" >&5 1442 echo "${ECHO_T}no" >&6 1443 fi 1444 1445 fi 1446 if test -z "$ac_cv_prog_CC"; then 1447 ac_ct_CC=$CC 1448 # Extract the first word of "gcc", so it can be a program name with args. 1449 set dummy gcc; ac_word=$2 1450 echo "$as_me:$LINENO: checking for $ac_word" >&5 1451 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1452 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1453 echo $ECHO_N "(cached) $ECHO_C" >&6 1454 else 1455 if test -n "$ac_ct_CC"; then 1456 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1457 else 1458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1459 for as_dir in $PATH 1460 do 1461 IFS=$as_save_IFS 1462 test -z "$as_dir" && as_dir=. 1463 for ac_exec_ext in '' $ac_executable_extensions; do 1464 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1465 ac_cv_prog_ac_ct_CC="gcc" 1466 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1467 break 2 1468 fi 1469 done 1470 done 1471 1472 fi 1473 fi 1474 ac_ct_CC=$ac_cv_prog_ac_ct_CC 1475 if test -n "$ac_ct_CC"; then 1476 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1477 echo "${ECHO_T}$ac_ct_CC" >&6 1478 else 1479 echo "$as_me:$LINENO: result: no" >&5 1480 echo "${ECHO_T}no" >&6 1481 fi 1482 1483 CC=$ac_ct_CC 1484 else 1485 CC="$ac_cv_prog_CC" 1486 fi 1487 1488 if test -z "$CC"; then 1489 if test -n "$ac_tool_prefix"; then 1490 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1491 set dummy ${ac_tool_prefix}cc; ac_word=$2 1492 echo "$as_me:$LINENO: checking for $ac_word" >&5 1493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1494 if test "${ac_cv_prog_CC+set}" = set; then 1495 echo $ECHO_N "(cached) $ECHO_C" >&6 1496 else 1497 if test -n "$CC"; then 1498 ac_cv_prog_CC="$CC" # Let the user override the test. 1499 else 1500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1501 for as_dir in $PATH 1502 do 1503 IFS=$as_save_IFS 1504 test -z "$as_dir" && as_dir=. 1505 for ac_exec_ext in '' $ac_executable_extensions; do 1506 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1507 ac_cv_prog_CC="${ac_tool_prefix}cc" 1508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1509 break 2 1510 fi 1511 done 1512 done 1513 1514 fi 1515 fi 1516 CC=$ac_cv_prog_CC 1517 if test -n "$CC"; then 1518 echo "$as_me:$LINENO: result: $CC" >&5 1519 echo "${ECHO_T}$CC" >&6 1520 else 1521 echo "$as_me:$LINENO: result: no" >&5 1522 echo "${ECHO_T}no" >&6 1523 fi 1524 1525 fi 1526 if test -z "$ac_cv_prog_CC"; then 1527 ac_ct_CC=$CC 1528 # Extract the first word of "cc", so it can be a program name with args. 1529 set dummy cc; ac_word=$2 1530 echo "$as_me:$LINENO: checking for $ac_word" >&5 1531 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1532 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1533 echo $ECHO_N "(cached) $ECHO_C" >&6 1534 else 1535 if test -n "$ac_ct_CC"; then 1536 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1537 else 1538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1539 for as_dir in $PATH 1540 do 1541 IFS=$as_save_IFS 1542 test -z "$as_dir" && as_dir=. 1543 for ac_exec_ext in '' $ac_executable_extensions; do 1544 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1545 ac_cv_prog_ac_ct_CC="cc" 1546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1547 break 2 1548 fi 1549 done 1550 done 1551 1552 fi 1553 fi 1554 ac_ct_CC=$ac_cv_prog_ac_ct_CC 1555 if test -n "$ac_ct_CC"; then 1556 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1557 echo "${ECHO_T}$ac_ct_CC" >&6 1558 else 1559 echo "$as_me:$LINENO: result: no" >&5 1560 echo "${ECHO_T}no" >&6 1561 fi 1562 1563 CC=$ac_ct_CC 1564 else 1565 CC="$ac_cv_prog_CC" 1566 fi 1567 1568 fi 1569 if test -z "$CC"; then 1570 # Extract the first word of "cc", so it can be a program name with args. 1571 set dummy cc; ac_word=$2 1572 echo "$as_me:$LINENO: checking for $ac_word" >&5 1573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1574 if test "${ac_cv_prog_CC+set}" = set; then 1575 echo $ECHO_N "(cached) $ECHO_C" >&6 1576 else 1577 if test -n "$CC"; then 1578 ac_cv_prog_CC="$CC" # Let the user override the test. 1579 else 1580 ac_prog_rejected=no 1581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1582 for as_dir in $PATH 1583 do 1584 IFS=$as_save_IFS 1585 test -z "$as_dir" && as_dir=. 1586 for ac_exec_ext in '' $ac_executable_extensions; do 1587 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1588 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 1589 ac_prog_rejected=yes 1590 continue 1591 fi 1592 ac_cv_prog_CC="cc" 1593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1594 break 2 1595 fi 1596 done 1597 done 1598 1599 if test $ac_prog_rejected = yes; then 1600 # We found a bogon in the path, so make sure we never use it. 1601 set dummy $ac_cv_prog_CC 1602 shift 1603 if test $# != 0; then 1604 # We chose a different compiler from the bogus one. 1605 # However, it has the same basename, so the bogon will be chosen 1606 # first if we set CC to just the basename; use the full file name. 1607 shift 1608 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 1609 fi 1610 fi 1611 fi 1612 fi 1613 CC=$ac_cv_prog_CC 1614 if test -n "$CC"; then 1615 echo "$as_me:$LINENO: result: $CC" >&5 1616 echo "${ECHO_T}$CC" >&6 1617 else 1618 echo "$as_me:$LINENO: result: no" >&5 1619 echo "${ECHO_T}no" >&6 1620 fi 1621 1622 fi 1623 if test -z "$CC"; then 1624 if test -n "$ac_tool_prefix"; then 1625 for ac_prog in cl 1626 do 1627 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1628 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1629 echo "$as_me:$LINENO: checking for $ac_word" >&5 1630 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1631 if test "${ac_cv_prog_CC+set}" = set; then 1632 echo $ECHO_N "(cached) $ECHO_C" >&6 1633 else 1634 if test -n "$CC"; then 1635 ac_cv_prog_CC="$CC" # Let the user override the test. 1636 else 1637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1638 for as_dir in $PATH 1639 do 1640 IFS=$as_save_IFS 1641 test -z "$as_dir" && as_dir=. 1642 for ac_exec_ext in '' $ac_executable_extensions; do 1643 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1644 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 1645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1646 break 2 1647 fi 1648 done 1649 done 1650 1651 fi 1652 fi 1653 CC=$ac_cv_prog_CC 1654 if test -n "$CC"; then 1655 echo "$as_me:$LINENO: result: $CC" >&5 1656 echo "${ECHO_T}$CC" >&6 1657 else 1658 echo "$as_me:$LINENO: result: no" >&5 1659 echo "${ECHO_T}no" >&6 1660 fi 1661 1662 test -n "$CC" && break 1663 done 1664 fi 1665 if test -z "$CC"; then 1666 ac_ct_CC=$CC 1667 for ac_prog in cl 1668 do 1669 # Extract the first word of "$ac_prog", so it can be a program name with args. 1670 set dummy $ac_prog; ac_word=$2 1671 echo "$as_me:$LINENO: checking for $ac_word" >&5 1672 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1673 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1674 echo $ECHO_N "(cached) $ECHO_C" >&6 1675 else 1676 if test -n "$ac_ct_CC"; then 1677 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1678 else 1679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1680 for as_dir in $PATH 1681 do 1682 IFS=$as_save_IFS 1683 test -z "$as_dir" && as_dir=. 1684 for ac_exec_ext in '' $ac_executable_extensions; do 1685 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1686 ac_cv_prog_ac_ct_CC="$ac_prog" 1687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1688 break 2 1689 fi 1690 done 1691 done 1692 1693 fi 1694 fi 1695 ac_ct_CC=$ac_cv_prog_ac_ct_CC 1696 if test -n "$ac_ct_CC"; then 1697 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1698 echo "${ECHO_T}$ac_ct_CC" >&6 1699 else 1700 echo "$as_me:$LINENO: result: no" >&5 1701 echo "${ECHO_T}no" >&6 1702 fi 1703 1704 test -n "$ac_ct_CC" && break 1705 done 1706 1707 CC=$ac_ct_CC 1708 fi 1709 1710 fi 1711 1712 1713 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 1714 See \`config.log' for more details." >&5 1715 echo "$as_me: error: no acceptable C compiler found in \$PATH 1716 See \`config.log' for more details." >&2;} 1717 { (exit 1); exit 1; }; } 1718 1719 # Provide some information about the compiler. 1720 echo "$as_me:$LINENO:" \ 1721 "checking for C compiler version" >&5 1722 ac_compiler=`set X $ac_compile; echo $2` 1723 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 1724 (eval $ac_compiler --version </dev/null >&5) 2>&5 1725 ac_status=$? 1726 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1727 (exit $ac_status); } 1728 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 1729 (eval $ac_compiler -v </dev/null >&5) 2>&5 1730 ac_status=$? 1731 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1732 (exit $ac_status); } 1733 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 1734 (eval $ac_compiler -V </dev/null >&5) 2>&5 1735 ac_status=$? 1736 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1737 (exit $ac_status); } 1738 1739 cat >conftest.$ac_ext <<_ACEOF 1740 /* confdefs.h. */ 1741 _ACEOF 1742 cat confdefs.h >>conftest.$ac_ext 1743 cat >>conftest.$ac_ext <<_ACEOF 1744 /* end confdefs.h. */ 1745 1746 int 1747 main () 1748 { 1749 1750 ; 1751 return 0; 1752 } 1753 _ACEOF 1754 ac_clean_files_save=$ac_clean_files 1755 ac_clean_files="$ac_clean_files a.out a.exe b.out" 1756 # Try to create an executable without -o first, disregard a.out. 1757 # It will help us diagnose broken compilers, and finding out an intuition 1758 # of exeext. 1759 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 1760 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 1761 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 1762 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 1763 (eval $ac_link_default) 2>&5 1764 ac_status=$? 1765 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1766 (exit $ac_status); }; then 1767 # Find the output, starting from the most likely. This scheme is 1768 # not robust to junk in `.', hence go to wildcards (a.*) only as a last 1769 # resort. 1770 1771 # Be careful to initialize this variable, since it used to be cached. 1772 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 1773 ac_cv_exeext= 1774 # b.out is created by i960 compilers. 1775 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 1776 do 1777 test -f "$ac_file" || continue 1778 case $ac_file in 1779 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 1780 ;; 1781 conftest.$ac_ext ) 1782 # This is the source file. 1783 ;; 1784 [ab].out ) 1785 # We found the default executable, but exeext='' is most 1786 # certainly right. 1787 break;; 1788 *.* ) 1789 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1790 # FIXME: I believe we export ac_cv_exeext for Libtool, 1791 # but it would be cool to find out if it's true. Does anybody 1792 # maintain Libtool? --akim. 1793 export ac_cv_exeext 1794 break;; 1795 * ) 1796 break;; 1797 esac 1798 done 1799 else 1800 echo "$as_me: failed program was:" >&5 1801 sed 's/^/| /' conftest.$ac_ext >&5 1802 1803 { { echo "$as_me:$LINENO: error: C compiler cannot create executables 1804 See \`config.log' for more details." >&5 1805 echo "$as_me: error: C compiler cannot create executables 1806 See \`config.log' for more details." >&2;} 1807 { (exit 77); exit 77; }; } 1808 fi 1809 1810 ac_exeext=$ac_cv_exeext 1811 echo "$as_me:$LINENO: result: $ac_file" >&5 1812 echo "${ECHO_T}$ac_file" >&6 1813 1814 # Check the compiler produces executables we can run. If not, either 1815 # the compiler is broken, or we cross compile. 1816 echo "$as_me:$LINENO: checking whether the C compiler works" >&5 1817 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 1818 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 1819 # If not cross compiling, check that we can run a simple program. 1820 if test "$cross_compiling" != yes; then 1821 if { ac_try='./$ac_file' 1822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1823 (eval $ac_try) 2>&5 1824 ac_status=$? 1825 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1826 (exit $ac_status); }; }; then 1827 cross_compiling=no 1828 else 1829 if test "$cross_compiling" = maybe; then 1830 cross_compiling=yes 1831 else 1832 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 1833 If you meant to cross compile, use \`--host'. 1834 See \`config.log' for more details." >&5 1835 echo "$as_me: error: cannot run C compiled programs. 1836 If you meant to cross compile, use \`--host'. 1837 See \`config.log' for more details." >&2;} 1838 { (exit 1); exit 1; }; } 1839 fi 1840 fi 1841 fi 1842 echo "$as_me:$LINENO: result: yes" >&5 1843 echo "${ECHO_T}yes" >&6 1844 1845 rm -f a.out a.exe conftest$ac_cv_exeext b.out 1846 ac_clean_files=$ac_clean_files_save 1847 # Check the compiler produces executables we can run. If not, either 1848 # the compiler is broken, or we cross compile. 1849 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 1850 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 1851 echo "$as_me:$LINENO: result: $cross_compiling" >&5 1852 echo "${ECHO_T}$cross_compiling" >&6 1853 1854 echo "$as_me:$LINENO: checking for suffix of executables" >&5 1855 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 1856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 1857 (eval $ac_link) 2>&5 1858 ac_status=$? 1859 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1860 (exit $ac_status); }; then 1861 # If both `conftest.exe' and `conftest' are `present' (well, observable) 1862 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 1863 # work properly (i.e., refer to `conftest.exe'), while it won't with 1864 # `rm'. 1865 for ac_file in conftest.exe conftest conftest.*; do 1866 test -f "$ac_file" || continue 1867 case $ac_file in 1868 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 1869 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1870 export ac_cv_exeext 1871 break;; 1872 * ) break;; 1873 esac 1874 done 1875 else 1876 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 1877 See \`config.log' for more details." >&5 1878 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 1879 See \`config.log' for more details." >&2;} 1880 { (exit 1); exit 1; }; } 1881 fi 1882 1883 rm -f conftest$ac_cv_exeext 1884 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 1885 echo "${ECHO_T}$ac_cv_exeext" >&6 1886 1887 rm -f conftest.$ac_ext 1888 EXEEXT=$ac_cv_exeext 1889 ac_exeext=$EXEEXT 1890 echo "$as_me:$LINENO: checking for suffix of object files" >&5 1891 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 1892 if test "${ac_cv_objext+set}" = set; then 1893 echo $ECHO_N "(cached) $ECHO_C" >&6 1894 else 1895 cat >conftest.$ac_ext <<_ACEOF 1896 /* confdefs.h. */ 1897 _ACEOF 1898 cat confdefs.h >>conftest.$ac_ext 1899 cat >>conftest.$ac_ext <<_ACEOF 1900 /* end confdefs.h. */ 1901 1902 int 1903 main () 1904 { 1905 1906 ; 1907 return 0; 1908 } 1909 _ACEOF 1910 rm -f conftest.o conftest.obj 1911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1912 (eval $ac_compile) 2>&5 1913 ac_status=$? 1914 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1915 (exit $ac_status); }; then 1916 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 1917 case $ac_file in 1918 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 1919 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 1920 break;; 1921 esac 1922 done 1923 else 1924 echo "$as_me: failed program was:" >&5 1925 sed 's/^/| /' conftest.$ac_ext >&5 1926 1927 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 1928 See \`config.log' for more details." >&5 1929 echo "$as_me: error: cannot compute suffix of object files: cannot compile 1930 See \`config.log' for more details." >&2;} 1931 { (exit 1); exit 1; }; } 1932 fi 1933 1934 rm -f conftest.$ac_cv_objext conftest.$ac_ext 1935 fi 1936 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 1937 echo "${ECHO_T}$ac_cv_objext" >&6 1938 OBJEXT=$ac_cv_objext 1939 ac_objext=$OBJEXT 1940 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 1941 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 1942 if test "${ac_cv_c_compiler_gnu+set}" = set; then 1943 echo $ECHO_N "(cached) $ECHO_C" >&6 1944 else 1945 cat >conftest.$ac_ext <<_ACEOF 1946 /* confdefs.h. */ 1947 _ACEOF 1948 cat confdefs.h >>conftest.$ac_ext 1949 cat >>conftest.$ac_ext <<_ACEOF 1950 /* end confdefs.h. */ 1951 1952 int 1953 main () 1954 { 1955 #ifndef __GNUC__ 1956 choke me 1957 #endif 1958 1959 ; 1960 return 0; 1961 } 1962 _ACEOF 1963 rm -f conftest.$ac_objext 1964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1965 (eval $ac_compile) 2>conftest.er1 1966 ac_status=$? 1967 grep -v '^ *+' conftest.er1 >conftest.err 1968 rm -f conftest.er1 1969 cat conftest.err >&5 1970 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1971 (exit $ac_status); } && 1972 { ac_try='test -z "$ac_c_werror_flag" 1973 || test ! -s conftest.err' 1974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1975 (eval $ac_try) 2>&5 1976 ac_status=$? 1977 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1978 (exit $ac_status); }; } && 1979 { ac_try='test -s conftest.$ac_objext' 1980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1981 (eval $ac_try) 2>&5 1982 ac_status=$? 1983 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1984 (exit $ac_status); }; }; then 1985 ac_compiler_gnu=yes 1986 else 1987 echo "$as_me: failed program was:" >&5 1988 sed 's/^/| /' conftest.$ac_ext >&5 1989 1990 ac_compiler_gnu=no 1991 fi 1992 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 1993 ac_cv_c_compiler_gnu=$ac_compiler_gnu 1994 1995 fi 1996 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 1997 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 1998 GCC=`test $ac_compiler_gnu = yes && echo yes` 1999 ac_test_CFLAGS=${CFLAGS+set} 2000 ac_save_CFLAGS=$CFLAGS 2001 CFLAGS="-g" 2002 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2003 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 2004 if test "${ac_cv_prog_cc_g+set}" = set; then 2005 echo $ECHO_N "(cached) $ECHO_C" >&6 2006 else 2007 cat >conftest.$ac_ext <<_ACEOF 2008 /* confdefs.h. */ 2009 _ACEOF 2010 cat confdefs.h >>conftest.$ac_ext 2011 cat >>conftest.$ac_ext <<_ACEOF 2012 /* end confdefs.h. */ 2013 2014 int 2015 main () 2016 { 2017 2018 ; 2019 return 0; 2020 } 2021 _ACEOF 2022 rm -f conftest.$ac_objext 2023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2024 (eval $ac_compile) 2>conftest.er1 2025 ac_status=$? 2026 grep -v '^ *+' conftest.er1 >conftest.err 2027 rm -f conftest.er1 2028 cat conftest.err >&5 2029 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2030 (exit $ac_status); } && 2031 { ac_try='test -z "$ac_c_werror_flag" 2032 || test ! -s conftest.err' 2033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2034 (eval $ac_try) 2>&5 2035 ac_status=$? 2036 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2037 (exit $ac_status); }; } && 2038 { ac_try='test -s conftest.$ac_objext' 2039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2040 (eval $ac_try) 2>&5 2041 ac_status=$? 2042 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2043 (exit $ac_status); }; }; then 2044 ac_cv_prog_cc_g=yes 2045 else 2046 echo "$as_me: failed program was:" >&5 2047 sed 's/^/| /' conftest.$ac_ext >&5 2048 2049 ac_cv_prog_cc_g=no 2050 fi 2051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2052 fi 2053 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2054 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 2055 if test "$ac_test_CFLAGS" = set; then 2056 CFLAGS=$ac_save_CFLAGS 2057 elif test $ac_cv_prog_cc_g = yes; then 2058 if test "$GCC" = yes; then 2059 CFLAGS="-g -O2" 2060 else 2061 CFLAGS="-g" 2062 fi 2063 else 2064 if test "$GCC" = yes; then 2065 CFLAGS="-O2" 2066 else 2067 CFLAGS= 2068 fi 2069 fi 2070 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2071 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2072 if test "${ac_cv_prog_cc_stdc+set}" = set; then 2073 echo $ECHO_N "(cached) $ECHO_C" >&6 2074 else 2075 ac_cv_prog_cc_stdc=no 2076 ac_save_CC=$CC 2077 cat >conftest.$ac_ext <<_ACEOF 2078 /* confdefs.h. */ 2079 _ACEOF 2080 cat confdefs.h >>conftest.$ac_ext 2081 cat >>conftest.$ac_ext <<_ACEOF 2082 /* end confdefs.h. */ 2083 #include <stdarg.h> 2084 #include <stdio.h> 2085 #include <sys/types.h> 2086 #include <sys/stat.h> 2087 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2088 struct buf { int x; }; 2089 FILE * (*rcsopen) (struct buf *, struct stat *, int); 2090 static char *e (p, i) 2091 char **p; 2092 int i; 2093 { 2094 return p[i]; 2095 } 2096 static char *f (char * (*g) (char **, int), char **p, ...) 2097 { 2098 char *s; 2099 va_list v; 2100 va_start (v,p); 2101 s = g (p, va_arg (v,int)); 2102 va_end (v); 2103 return s; 2104 } 2105 2106 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2107 function prototypes and stuff, but not '\xHH' hex character constants. 2108 These don't provoke an error unfortunately, instead are silently treated 2109 as 'x'. The following induces an error, until -std1 is added to get 2110 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2111 array size at least. It's necessary to write '\x00'==0 to get something 2112 that's true only with -std1. */ 2113 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2114 2115 int test (int i, double x); 2116 struct s1 {int (*f) (int a);}; 2117 struct s2 {int (*f) (double a);}; 2118 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2119 int argc; 2120 char **argv; 2121 int 2122 main () 2123 { 2124 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2125 ; 2126 return 0; 2127 } 2128 _ACEOF 2129 # Don't try gcc -ansi; that turns off useful extensions and 2130 # breaks some systems' header files. 2131 # AIX -qlanglvl=ansi 2132 # Ultrix and OSF/1 -std1 2133 # HP-UX 10.20 and later -Ae 2134 # HP-UX older versions -Aa -D_HPUX_SOURCE 2135 # SVR4 -Xc -D__EXTENSIONS__ 2136 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2137 do 2138 CC="$ac_save_CC $ac_arg" 2139 rm -f conftest.$ac_objext 2140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2141 (eval $ac_compile) 2>conftest.er1 2142 ac_status=$? 2143 grep -v '^ *+' conftest.er1 >conftest.err 2144 rm -f conftest.er1 2145 cat conftest.err >&5 2146 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2147 (exit $ac_status); } && 2148 { ac_try='test -z "$ac_c_werror_flag" 2149 || test ! -s conftest.err' 2150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2151 (eval $ac_try) 2>&5 2152 ac_status=$? 2153 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2154 (exit $ac_status); }; } && 2155 { ac_try='test -s conftest.$ac_objext' 2156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2157 (eval $ac_try) 2>&5 2158 ac_status=$? 2159 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2160 (exit $ac_status); }; }; then 2161 ac_cv_prog_cc_stdc=$ac_arg 2162 break 2163 else 2164 echo "$as_me: failed program was:" >&5 2165 sed 's/^/| /' conftest.$ac_ext >&5 2166 2167 fi 2168 rm -f conftest.err conftest.$ac_objext 2169 done 2170 rm -f conftest.$ac_ext conftest.$ac_objext 2171 CC=$ac_save_CC 2172 2173 fi 2174 2175 case "x$ac_cv_prog_cc_stdc" in 2176 x|xno) 2177 echo "$as_me:$LINENO: result: none needed" >&5 2178 echo "${ECHO_T}none needed" >&6 ;; 2179 *) 2180 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2181 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2182 CC="$CC $ac_cv_prog_cc_stdc" ;; 2183 esac 2184 2185 # Some people use a C++ compiler to compile C. Since we use `exit', 2186 # in C++ we need to declare it. In case someone uses the same compiler 2187 # for both compiling C and C++ we need to have the C++ compiler decide 2188 # the declaration of exit, since it's the most demanding environment. 2189 cat >conftest.$ac_ext <<_ACEOF 2190 #ifndef __cplusplus 2191 choke me 2192 #endif 2193 _ACEOF 2194 rm -f conftest.$ac_objext 2195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2196 (eval $ac_compile) 2>conftest.er1 2197 ac_status=$? 2198 grep -v '^ *+' conftest.er1 >conftest.err 2199 rm -f conftest.er1 2200 cat conftest.err >&5 2201 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2202 (exit $ac_status); } && 2203 { ac_try='test -z "$ac_c_werror_flag" 2204 || test ! -s conftest.err' 2205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2206 (eval $ac_try) 2>&5 2207 ac_status=$? 2208 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2209 (exit $ac_status); }; } && 2210 { ac_try='test -s conftest.$ac_objext' 2211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2212 (eval $ac_try) 2>&5 2213 ac_status=$? 2214 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2215 (exit $ac_status); }; }; then 2216 for ac_declaration in \ 2217 '' \ 2218 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2219 'extern "C" void std::exit (int); using std::exit;' \ 2220 'extern "C" void exit (int) throw ();' \ 2221 'extern "C" void exit (int);' \ 2222 'void exit (int);' 2223 do 2224 cat >conftest.$ac_ext <<_ACEOF 2225 /* confdefs.h. */ 2226 _ACEOF 2227 cat confdefs.h >>conftest.$ac_ext 2228 cat >>conftest.$ac_ext <<_ACEOF 2229 /* end confdefs.h. */ 2230 $ac_declaration 2231 #include <stdlib.h> 2232 int 2233 main () 2234 { 2235 exit (42); 2236 ; 2237 return 0; 2238 } 2239 _ACEOF 2240 rm -f conftest.$ac_objext 2241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2242 (eval $ac_compile) 2>conftest.er1 2243 ac_status=$? 2244 grep -v '^ *+' conftest.er1 >conftest.err 2245 rm -f conftest.er1 2246 cat conftest.err >&5 2247 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2248 (exit $ac_status); } && 2249 { ac_try='test -z "$ac_c_werror_flag" 2250 || test ! -s conftest.err' 2251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2252 (eval $ac_try) 2>&5 2253 ac_status=$? 2254 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2255 (exit $ac_status); }; } && 2256 { ac_try='test -s conftest.$ac_objext' 2257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2258 (eval $ac_try) 2>&5 2259 ac_status=$? 2260 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2261 (exit $ac_status); }; }; then 2262 : 2263 else 2264 echo "$as_me: failed program was:" >&5 2265 sed 's/^/| /' conftest.$ac_ext >&5 2266 2267 continue 2268 fi 2269 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2270 cat >conftest.$ac_ext <<_ACEOF 2271 /* confdefs.h. */ 2272 _ACEOF 2273 cat confdefs.h >>conftest.$ac_ext 2274 cat >>conftest.$ac_ext <<_ACEOF 2275 /* end confdefs.h. */ 2276 $ac_declaration 2277 int 2278 main () 2279 { 2280 exit (42); 2281 ; 2282 return 0; 2283 } 2284 _ACEOF 2285 rm -f conftest.$ac_objext 2286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2287 (eval $ac_compile) 2>conftest.er1 2288 ac_status=$? 2289 grep -v '^ *+' conftest.er1 >conftest.err 2290 rm -f conftest.er1 2291 cat conftest.err >&5 2292 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2293 (exit $ac_status); } && 2294 { ac_try='test -z "$ac_c_werror_flag" 2295 || test ! -s conftest.err' 2296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2297 (eval $ac_try) 2>&5 2298 ac_status=$? 2299 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2300 (exit $ac_status); }; } && 2301 { ac_try='test -s conftest.$ac_objext' 2302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2303 (eval $ac_try) 2>&5 2304 ac_status=$? 2305 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2306 (exit $ac_status); }; }; then 2307 break 2308 else 2309 echo "$as_me: failed program was:" >&5 2310 sed 's/^/| /' conftest.$ac_ext >&5 2311 2312 fi 2313 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2314 done 2315 rm -f conftest* 2316 if test -n "$ac_declaration"; then 2317 echo '#ifdef __cplusplus' >>confdefs.h 2318 echo $ac_declaration >>confdefs.h 2319 echo '#endif' >>confdefs.h 2320 fi 2321 2322 else 2323 echo "$as_me: failed program was:" >&5 2324 sed 's/^/| /' conftest.$ac_ext >&5 2325 2326 fi 2327 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2328 ac_ext=c 2329 ac_cpp='$CPP $CPPFLAGS' 2330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2332 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2333 2334 # Find a good install program. We prefer a C program (faster), 2335 # so one script is as good as another. But avoid the broken or 2336 # incompatible versions: 2337 # SysV /etc/install, /usr/sbin/install 2338 # SunOS /usr/etc/install 2339 # IRIX /sbin/install 2340 # AIX /bin/install 2341 # AmigaOS /C/install, which installs bootblocks on floppy discs 2342 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2343 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 2344 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2345 # OS/2's system install, which has a completely different semantic 2346 # ./install, which can be erroneously created by make from ./install.sh. 2347 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2348 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 2349 if test -z "$INSTALL"; then 2350 if test "${ac_cv_path_install+set}" = set; then 2351 echo $ECHO_N "(cached) $ECHO_C" >&6 2352 else 2353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2354 for as_dir in $PATH 2355 do 2356 IFS=$as_save_IFS 2357 test -z "$as_dir" && as_dir=. 2358 # Account for people who put trailing slashes in PATH elements. 2359 case $as_dir/ in 2360 ./ | .// | /cC/* | \ 2361 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2362 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2363 /usr/ucb/* ) ;; 2364 *) 2365 # OSF1 and SCO ODT 3.0 have their own names for install. 2366 # Don't use installbsd from OSF since it installs stuff as root 2367 # by default. 2368 for ac_prog in ginstall scoinst install; do 2369 for ac_exec_ext in '' $ac_executable_extensions; do 2370 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2371 if test $ac_prog = install && 2372 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2373 # AIX install. It has an incompatible calling convention. 2374 : 2375 elif test $ac_prog = install && 2376 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2377 # program-specific install script used by HP pwplus--don't use. 2378 : 2379 else 2380 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2381 break 3 2382 fi 2383 fi 2384 done 2385 done 2386 ;; 2387 esac 2388 done 2389 2390 2391 fi 2392 if test "${ac_cv_path_install+set}" = set; then 2393 INSTALL=$ac_cv_path_install 2394 else 2395 # As a last resort, use the slow shell script. We don't cache a 2396 # path for INSTALL within a source directory, because that will 2397 # break other packages using the cache if that directory is 2398 # removed, or if the path is relative. 2399 INSTALL=$ac_install_sh 2400 fi 2401 fi 2402 echo "$as_me:$LINENO: result: $INSTALL" >&5 2403 echo "${ECHO_T}$INSTALL" >&6 2404 2405 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2406 # It thinks the first close brace ends the variable substitution. 2407 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2408 2409 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2410 2411 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2412 2413 echo "$as_me:$LINENO: checking whether ln -s works" >&5 2414 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 2415 LN_S=$as_ln_s 2416 if test "$LN_S" = "ln -s"; then 2417 echo "$as_me:$LINENO: result: yes" >&5 2418 echo "${ECHO_T}yes" >&6 2419 else 2420 echo "$as_me:$LINENO: result: no, using $LN_S" >&5 2421 echo "${ECHO_T}no, using $LN_S" >&6 2422 fi 2423 2424 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2425 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 2426 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` 2427 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 2428 echo $ECHO_N "(cached) $ECHO_C" >&6 2429 else 2430 cat >conftest.make <<\_ACEOF 2431 all: 2432 @echo 'ac_maketemp="$(MAKE)"' 2433 _ACEOF 2434 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2435 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 2436 if test -n "$ac_maketemp"; then 2437 eval ac_cv_prog_make_${ac_make}_set=yes 2438 else 2439 eval ac_cv_prog_make_${ac_make}_set=no 2440 fi 2441 rm -f conftest.make 2442 fi 2443 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 2444 echo "$as_me:$LINENO: result: yes" >&5 2445 echo "${ECHO_T}yes" >&6 2446 SET_MAKE= 2447 else 2448 echo "$as_me:$LINENO: result: no" >&5 2449 echo "${ECHO_T}no" >&6 2450 SET_MAKE="MAKE=${MAKE-make}" 2451 fi 2452 2453 if test -n "$ac_tool_prefix"; then 2454 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 2455 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 2456 echo "$as_me:$LINENO: checking for $ac_word" >&5 2457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2458 if test "${ac_cv_prog_RANLIB+set}" = set; then 2459 echo $ECHO_N "(cached) $ECHO_C" >&6 2460 else 2461 if test -n "$RANLIB"; then 2462 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 2463 else 2464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2465 for as_dir in $PATH 2466 do 2467 IFS=$as_save_IFS 2468 test -z "$as_dir" && as_dir=. 2469 for ac_exec_ext in '' $ac_executable_extensions; do 2470 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2471 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 2472 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2473 break 2 2474 fi 2475 done 2476 done 2477 2478 fi 2479 fi 2480 RANLIB=$ac_cv_prog_RANLIB 2481 if test -n "$RANLIB"; then 2482 echo "$as_me:$LINENO: result: $RANLIB" >&5 2483 echo "${ECHO_T}$RANLIB" >&6 2484 else 2485 echo "$as_me:$LINENO: result: no" >&5 2486 echo "${ECHO_T}no" >&6 2487 fi 2488 2489 fi 2490 if test -z "$ac_cv_prog_RANLIB"; then 2491 ac_ct_RANLIB=$RANLIB 2492 # Extract the first word of "ranlib", so it can be a program name with args. 2493 set dummy ranlib; ac_word=$2 2494 echo "$as_me:$LINENO: checking for $ac_word" >&5 2495 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2496 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 2497 echo $ECHO_N "(cached) $ECHO_C" >&6 2498 else 2499 if test -n "$ac_ct_RANLIB"; then 2500 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 2501 else 2502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2503 for as_dir in $PATH 2504 do 2505 IFS=$as_save_IFS 2506 test -z "$as_dir" && as_dir=. 2507 for ac_exec_ext in '' $ac_executable_extensions; do 2508 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2509 ac_cv_prog_ac_ct_RANLIB="ranlib" 2510 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2511 break 2 2512 fi 2513 done 2514 done 2515 2516 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 2517 fi 2518 fi 2519 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 2520 if test -n "$ac_ct_RANLIB"; then 2521 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 2522 echo "${ECHO_T}$ac_ct_RANLIB" >&6 2523 else 2524 echo "$as_me:$LINENO: result: no" >&5 2525 echo "${ECHO_T}no" >&6 2526 fi 2527 2528 RANLIB=$ac_ct_RANLIB 2529 else 2530 RANLIB="$ac_cv_prog_RANLIB" 2531 fi 2532 2533 2534 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 2535 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 2536 if test "${ac_cv_c_bigendian+set}" = set; then 2537 echo $ECHO_N "(cached) $ECHO_C" >&6 2538 else 2539 # See if sys/param.h defines the BYTE_ORDER macro. 2540 cat >conftest.$ac_ext <<_ACEOF 2541 /* confdefs.h. */ 2542 _ACEOF 2543 cat confdefs.h >>conftest.$ac_ext 2544 cat >>conftest.$ac_ext <<_ACEOF 2545 /* end confdefs.h. */ 2546 #include <sys/types.h> 2547 #include <sys/param.h> 2548 2549 int 2550 main () 2551 { 2552 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN 2553 bogus endian macros 2554 #endif 2555 2556 ; 2557 return 0; 2558 } 2559 _ACEOF 2560 rm -f conftest.$ac_objext 2561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2562 (eval $ac_compile) 2>conftest.er1 2563 ac_status=$? 2564 grep -v '^ *+' conftest.er1 >conftest.err 2565 rm -f conftest.er1 2566 cat conftest.err >&5 2567 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2568 (exit $ac_status); } && 2569 { ac_try='test -z "$ac_c_werror_flag" 2570 || test ! -s conftest.err' 2571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2572 (eval $ac_try) 2>&5 2573 ac_status=$? 2574 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2575 (exit $ac_status); }; } && 2576 { ac_try='test -s conftest.$ac_objext' 2577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2578 (eval $ac_try) 2>&5 2579 ac_status=$? 2580 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2581 (exit $ac_status); }; }; then 2582 # It does; now see whether it defined to BIG_ENDIAN or not. 2583 cat >conftest.$ac_ext <<_ACEOF 2584 /* confdefs.h. */ 2585 _ACEOF 2586 cat confdefs.h >>conftest.$ac_ext 2587 cat >>conftest.$ac_ext <<_ACEOF 2588 /* end confdefs.h. */ 2589 #include <sys/types.h> 2590 #include <sys/param.h> 2591 2592 int 2593 main () 2594 { 2595 #if BYTE_ORDER != BIG_ENDIAN 2596 not big endian 2597 #endif 2598 2599 ; 2600 return 0; 2601 } 2602 _ACEOF 2603 rm -f conftest.$ac_objext 2604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2605 (eval $ac_compile) 2>conftest.er1 2606 ac_status=$? 2607 grep -v '^ *+' conftest.er1 >conftest.err 2608 rm -f conftest.er1 2609 cat conftest.err >&5 2610 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2611 (exit $ac_status); } && 2612 { ac_try='test -z "$ac_c_werror_flag" 2613 || test ! -s conftest.err' 2614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2615 (eval $ac_try) 2>&5 2616 ac_status=$? 2617 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2618 (exit $ac_status); }; } && 2619 { ac_try='test -s conftest.$ac_objext' 2620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2621 (eval $ac_try) 2>&5 2622 ac_status=$? 2623 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2624 (exit $ac_status); }; }; then 2625 ac_cv_c_bigendian=yes 2626 else 2627 echo "$as_me: failed program was:" >&5 2628 sed 's/^/| /' conftest.$ac_ext >&5 2629 2630 ac_cv_c_bigendian=no 2631 fi 2632 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2633 else 2634 echo "$as_me: failed program was:" >&5 2635 sed 's/^/| /' conftest.$ac_ext >&5 2636 2637 # It does not; compile a test program. 2638 if test "$cross_compiling" = yes; then 2639 # try to guess the endianness by grepping values into an object file 2640 ac_cv_c_bigendian=unknown 2641 cat >conftest.$ac_ext <<_ACEOF 2642 /* confdefs.h. */ 2643 _ACEOF 2644 cat confdefs.h >>conftest.$ac_ext 2645 cat >>conftest.$ac_ext <<_ACEOF 2646 /* end confdefs.h. */ 2647 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 2648 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 2649 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } 2650 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 2651 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 2652 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } 2653 int 2654 main () 2655 { 2656 _ascii (); _ebcdic (); 2657 ; 2658 return 0; 2659 } 2660 _ACEOF 2661 rm -f conftest.$ac_objext 2662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2663 (eval $ac_compile) 2>conftest.er1 2664 ac_status=$? 2665 grep -v '^ *+' conftest.er1 >conftest.err 2666 rm -f conftest.er1 2667 cat conftest.err >&5 2668 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2669 (exit $ac_status); } && 2670 { ac_try='test -z "$ac_c_werror_flag" 2671 || test ! -s conftest.err' 2672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2673 (eval $ac_try) 2>&5 2674 ac_status=$? 2675 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2676 (exit $ac_status); }; } && 2677 { ac_try='test -s conftest.$ac_objext' 2678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2679 (eval $ac_try) 2>&5 2680 ac_status=$? 2681 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2682 (exit $ac_status); }; }; then 2683 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then 2684 ac_cv_c_bigendian=yes 2685 fi 2686 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 2687 if test "$ac_cv_c_bigendian" = unknown; then 2688 ac_cv_c_bigendian=no 2689 else 2690 # finding both strings is unlikely to happen, but who knows? 2691 ac_cv_c_bigendian=unknown 2692 fi 2693 fi 2694 else 2695 echo "$as_me: failed program was:" >&5 2696 sed 's/^/| /' conftest.$ac_ext >&5 2697 2698 fi 2699 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2700 else 2701 cat >conftest.$ac_ext <<_ACEOF 2702 /* confdefs.h. */ 2703 _ACEOF 2704 cat confdefs.h >>conftest.$ac_ext 2705 cat >>conftest.$ac_ext <<_ACEOF 2706 /* end confdefs.h. */ 2707 int 2708 main () 2709 { 2710 /* Are we little or big endian? From Harbison&Steele. */ 2711 union 2712 { 2713 long l; 2714 char c[sizeof (long)]; 2715 } u; 2716 u.l = 1; 2717 exit (u.c[sizeof (long) - 1] == 1); 2718 } 2719 _ACEOF 2720 rm -f conftest$ac_exeext 2721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2722 (eval $ac_link) 2>&5 2723 ac_status=$? 2724 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2725 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 2726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2727 (eval $ac_try) 2>&5 2728 ac_status=$? 2729 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2730 (exit $ac_status); }; }; then 2731 ac_cv_c_bigendian=no 2732 else 2733 echo "$as_me: program exited with status $ac_status" >&5 2734 echo "$as_me: failed program was:" >&5 2735 sed 's/^/| /' conftest.$ac_ext >&5 2736 2737 ( exit $ac_status ) 2738 ac_cv_c_bigendian=yes 2739 fi 2740 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 2741 fi 2742 fi 2743 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2744 fi 2745 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 2746 echo "${ECHO_T}$ac_cv_c_bigendian" >&6 2747 case $ac_cv_c_bigendian in 2748 yes) 2749 2750 cat >>confdefs.h <<\_ACEOF 2751 #define WORDS_BIGENDIAN 1 2752 _ACEOF 2753 ;; 2754 no) 2755 ;; 2756 *) 2757 { { echo "$as_me:$LINENO: error: unknown endianness 2758 presetting ac_cv_c_bigendian=no (or yes) will help" >&5 2759 echo "$as_me: error: unknown endianness 2760 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} 2761 { (exit 1); exit 1; }; } ;; 2762 esac 2763 2764 2765 # Checks for libraries. 2766 2767 echo "$as_me:$LINENO: checking for BN_init in -lcrypto" >&5 2768 echo $ECHO_N "checking for BN_init in -lcrypto... $ECHO_C" >&6 2769 if test "${ac_cv_lib_crypto_BN_init+set}" = set; then 2770 echo $ECHO_N "(cached) $ECHO_C" >&6 2771 else 2772 ac_check_lib_save_LIBS=$LIBS 2773 LIBS="-lcrypto $LIBS" 2774 cat >conftest.$ac_ext <<_ACEOF 2775 /* confdefs.h. */ 2776 _ACEOF 2777 cat confdefs.h >>conftest.$ac_ext 2778 cat >>conftest.$ac_ext <<_ACEOF 2779 /* end confdefs.h. */ 2780 2781 /* Override any gcc2 internal prototype to avoid an error. */ 2782 #ifdef __cplusplus 2783 extern "C" 2784 #endif 2785 /* We use char because int might match the return type of a gcc2 2786 builtin and then its argument prototype would still apply. */ 2787 char BN_init (); 2788 int 2789 main () 2790 { 2791 BN_init (); 2792 ; 2793 return 0; 2794 } 2795 _ACEOF 2796 rm -f conftest.$ac_objext conftest$ac_exeext 2797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2798 (eval $ac_link) 2>conftest.er1 2799 ac_status=$? 2800 grep -v '^ *+' conftest.er1 >conftest.err 2801 rm -f conftest.er1 2802 cat conftest.err >&5 2803 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2804 (exit $ac_status); } && 2805 { ac_try='test -z "$ac_c_werror_flag" 2806 || test ! -s conftest.err' 2807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2808 (eval $ac_try) 2>&5 2809 ac_status=$? 2810 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2811 (exit $ac_status); }; } && 2812 { ac_try='test -s conftest$ac_exeext' 2813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2814 (eval $ac_try) 2>&5 2815 ac_status=$? 2816 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2817 (exit $ac_status); }; }; then 2818 ac_cv_lib_crypto_BN_init=yes 2819 else 2820 echo "$as_me: failed program was:" >&5 2821 sed 's/^/| /' conftest.$ac_ext >&5 2822 2823 ac_cv_lib_crypto_BN_init=no 2824 fi 2825 rm -f conftest.err conftest.$ac_objext \ 2826 conftest$ac_exeext conftest.$ac_ext 2827 LIBS=$ac_check_lib_save_LIBS 2828 fi 2829 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_BN_init" >&5 2830 echo "${ECHO_T}$ac_cv_lib_crypto_BN_init" >&6 2831 if test $ac_cv_lib_crypto_BN_init = yes; then 2832 cat >>confdefs.h <<_ACEOF 2833 #define HAVE_LIBCRYPTO 1 2834 _ACEOF 2835 2836 LIBS="-lcrypto $LIBS" 2837 2838 fi 2839 2840 2841 echo "$as_me:$LINENO: checking for deflateInit_ in -lz" >&5 2842 echo $ECHO_N "checking for deflateInit_ in -lz... $ECHO_C" >&6 2843 if test "${ac_cv_lib_z_deflateInit_+set}" = set; then 2844 echo $ECHO_N "(cached) $ECHO_C" >&6 2845 else 2846 ac_check_lib_save_LIBS=$LIBS 2847 LIBS="-lz $LIBS" 2848 cat >conftest.$ac_ext <<_ACEOF 2849 /* confdefs.h. */ 2850 _ACEOF 2851 cat confdefs.h >>conftest.$ac_ext 2852 cat >>conftest.$ac_ext <<_ACEOF 2853 /* end confdefs.h. */ 2854 2855 /* Override any gcc2 internal prototype to avoid an error. */ 2856 #ifdef __cplusplus 2857 extern "C" 2858 #endif 2859 /* We use char because int might match the return type of a gcc2 2860 builtin and then its argument prototype would still apply. */ 2861 char deflateInit_ (); 2862 int 2863 main () 2864 { 2865 deflateInit_ (); 2866 ; 2867 return 0; 2868 } 2869 _ACEOF 2870 rm -f conftest.$ac_objext conftest$ac_exeext 2871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2872 (eval $ac_link) 2>conftest.er1 2873 ac_status=$? 2874 grep -v '^ *+' conftest.er1 >conftest.err 2875 rm -f conftest.er1 2876 cat conftest.err >&5 2877 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2878 (exit $ac_status); } && 2879 { ac_try='test -z "$ac_c_werror_flag" 2880 || test ! -s conftest.err' 2881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2882 (eval $ac_try) 2>&5 2883 ac_status=$? 2884 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2885 (exit $ac_status); }; } && 2886 { ac_try='test -s conftest$ac_exeext' 2887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2888 (eval $ac_try) 2>&5 2889 ac_status=$? 2890 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2891 (exit $ac_status); }; }; then 2892 ac_cv_lib_z_deflateInit_=yes 2893 else 2894 echo "$as_me: failed program was:" >&5 2895 sed 's/^/| /' conftest.$ac_ext >&5 2896 2897 ac_cv_lib_z_deflateInit_=no 2898 fi 2899 rm -f conftest.err conftest.$ac_objext \ 2900 conftest$ac_exeext conftest.$ac_ext 2901 LIBS=$ac_check_lib_save_LIBS 2902 fi 2903 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflateInit_" >&5 2904 echo "${ECHO_T}$ac_cv_lib_z_deflateInit_" >&6 2905 if test $ac_cv_lib_z_deflateInit_ = yes; then 2906 cat >>confdefs.h <<_ACEOF 2907 #define HAVE_LIBZ 1 2908 _ACEOF 2909 2910 LIBS="-lz $LIBS" 2911 2912 fi 2913 2914 2915 echo "$as_me:$LINENO: checking for gethostbyname in -lresolv" >&5 2916 echo $ECHO_N "checking for gethostbyname in -lresolv... $ECHO_C" >&6 2917 if test "${ac_cv_lib_resolv_gethostbyname+set}" = set; then 2918 echo $ECHO_N "(cached) $ECHO_C" >&6 2919 else 2920 ac_check_lib_save_LIBS=$LIBS 2921 LIBS="-lresolv $LIBS" 2922 cat >conftest.$ac_ext <<_ACEOF 2923 /* confdefs.h. */ 2924 _ACEOF 2925 cat confdefs.h >>conftest.$ac_ext 2926 cat >>conftest.$ac_ext <<_ACEOF 2927 /* end confdefs.h. */ 2928 2929 /* Override any gcc2 internal prototype to avoid an error. */ 2930 #ifdef __cplusplus 2931 extern "C" 2932 #endif 2933 /* We use char because int might match the return type of a gcc2 2934 builtin and then its argument prototype would still apply. */ 2935 char gethostbyname (); 2936 int 2937 main () 2938 { 2939 gethostbyname (); 2940 ; 2941 return 0; 2942 } 2943 _ACEOF 2944 rm -f conftest.$ac_objext conftest$ac_exeext 2945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2946 (eval $ac_link) 2>conftest.er1 2947 ac_status=$? 2948 grep -v '^ *+' conftest.er1 >conftest.err 2949 rm -f conftest.er1 2950 cat conftest.err >&5 2951 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2952 (exit $ac_status); } && 2953 { ac_try='test -z "$ac_c_werror_flag" 2954 || test ! -s conftest.err' 2955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2956 (eval $ac_try) 2>&5 2957 ac_status=$? 2958 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2959 (exit $ac_status); }; } && 2960 { ac_try='test -s conftest$ac_exeext' 2961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2962 (eval $ac_try) 2>&5 2963 ac_status=$? 2964 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2965 (exit $ac_status); }; }; then 2966 ac_cv_lib_resolv_gethostbyname=yes 2967 else 2968 echo "$as_me: failed program was:" >&5 2969 sed 's/^/| /' conftest.$ac_ext >&5 2970 2971 ac_cv_lib_resolv_gethostbyname=no 2972 fi 2973 rm -f conftest.err conftest.$ac_objext \ 2974 conftest$ac_exeext conftest.$ac_ext 2975 LIBS=$ac_check_lib_save_LIBS 2976 fi 2977 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname" >&5 2978 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname" >&6 2979 if test $ac_cv_lib_resolv_gethostbyname = yes; then 2980 cat >>confdefs.h <<_ACEOF 2981 #define HAVE_LIBRESOLV 1 2982 _ACEOF 2983 2984 LIBS="-lresolv $LIBS" 2985 2986 fi 2987 2988 2989 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 2990 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 2991 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then 2992 echo $ECHO_N "(cached) $ECHO_C" >&6 2993 else 2994 ac_check_lib_save_LIBS=$LIBS 2995 LIBS="-lnsl $LIBS" 2996 cat >conftest.$ac_ext <<_ACEOF 2997 /* confdefs.h. */ 2998 _ACEOF 2999 cat confdefs.h >>conftest.$ac_ext 3000 cat >>conftest.$ac_ext <<_ACEOF 3001 /* end confdefs.h. */ 3002 3003 /* Override any gcc2 internal prototype to avoid an error. */ 3004 #ifdef __cplusplus 3005 extern "C" 3006 #endif 3007 /* We use char because int might match the return type of a gcc2 3008 builtin and then its argument prototype would still apply. */ 3009 char gethostbyname (); 3010 int 3011 main () 3012 { 3013 gethostbyname (); 3014 ; 3015 return 0; 3016 } 3017 _ACEOF 3018 rm -f conftest.$ac_objext conftest$ac_exeext 3019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3020 (eval $ac_link) 2>conftest.er1 3021 ac_status=$? 3022 grep -v '^ *+' conftest.er1 >conftest.err 3023 rm -f conftest.er1 3024 cat conftest.err >&5 3025 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3026 (exit $ac_status); } && 3027 { ac_try='test -z "$ac_c_werror_flag" 3028 || test ! -s conftest.err' 3029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3030 (eval $ac_try) 2>&5 3031 ac_status=$? 3032 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3033 (exit $ac_status); }; } && 3034 { ac_try='test -s conftest$ac_exeext' 3035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3036 (eval $ac_try) 2>&5 3037 ac_status=$? 3038 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3039 (exit $ac_status); }; }; then 3040 ac_cv_lib_nsl_gethostbyname=yes 3041 else 3042 echo "$as_me: failed program was:" >&5 3043 sed 's/^/| /' conftest.$ac_ext >&5 3044 3045 ac_cv_lib_nsl_gethostbyname=no 3046 fi 3047 rm -f conftest.err conftest.$ac_objext \ 3048 conftest$ac_exeext conftest.$ac_ext 3049 LIBS=$ac_check_lib_save_LIBS 3050 fi 3051 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 3052 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 3053 if test $ac_cv_lib_nsl_gethostbyname = yes; then 3054 cat >>confdefs.h <<_ACEOF 3055 #define HAVE_LIBNSL 1 3056 _ACEOF 3057 3058 LIBS="-lnsl $LIBS" 3059 3060 fi 3061 3062 3063 # Checks for header files. 3064 ac_ext=c 3065 ac_cpp='$CPP $CPPFLAGS' 3066 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3067 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3068 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3069 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3070 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 3071 # On Suns, sometimes $CPP names a directory. 3072 if test -n "$CPP" && test -d "$CPP"; then 3073 CPP= 3074 fi 3075 if test -z "$CPP"; then 3076 if test "${ac_cv_prog_CPP+set}" = set; then 3077 echo $ECHO_N "(cached) $ECHO_C" >&6 3078 else 3079 # Double quotes because CPP needs to be expanded 3080 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3081 do 3082 ac_preproc_ok=false 3083 for ac_c_preproc_warn_flag in '' yes 3084 do 3085 # Use a header file that comes with gcc, so configuring glibc 3086 # with a fresh cross-compiler works. 3087 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3088 # <limits.h> exists even on freestanding compilers. 3089 # On the NeXT, cc -E runs the code through the compiler's parser, 3090 # not just through cpp. "Syntax error" is here to catch this case. 3091 cat >conftest.$ac_ext <<_ACEOF 3092 /* confdefs.h. */ 3093 _ACEOF 3094 cat confdefs.h >>conftest.$ac_ext 3095 cat >>conftest.$ac_ext <<_ACEOF 3096 /* end confdefs.h. */ 3097 #ifdef __STDC__ 3098 # include <limits.h> 3099 #else 3100 # include <assert.h> 3101 #endif 3102 Syntax error 3103 _ACEOF 3104 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3105 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3106 ac_status=$? 3107 grep -v '^ *+' conftest.er1 >conftest.err 3108 rm -f conftest.er1 3109 cat conftest.err >&5 3110 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3111 (exit $ac_status); } >/dev/null; then 3112 if test -s conftest.err; then 3113 ac_cpp_err=$ac_c_preproc_warn_flag 3114 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3115 else 3116 ac_cpp_err= 3117 fi 3118 else 3119 ac_cpp_err=yes 3120 fi 3121 if test -z "$ac_cpp_err"; then 3122 : 3123 else 3124 echo "$as_me: failed program was:" >&5 3125 sed 's/^/| /' conftest.$ac_ext >&5 3126 3127 # Broken: fails on valid input. 3128 continue 3129 fi 3130 rm -f conftest.err conftest.$ac_ext 3131 3132 # OK, works on sane cases. Now check whether non-existent headers 3133 # can be detected and how. 3134 cat >conftest.$ac_ext <<_ACEOF 3135 /* confdefs.h. */ 3136 _ACEOF 3137 cat confdefs.h >>conftest.$ac_ext 3138 cat >>conftest.$ac_ext <<_ACEOF 3139 /* end confdefs.h. */ 3140 #include <ac_nonexistent.h> 3141 _ACEOF 3142 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3143 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3144 ac_status=$? 3145 grep -v '^ *+' conftest.er1 >conftest.err 3146 rm -f conftest.er1 3147 cat conftest.err >&5 3148 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3149 (exit $ac_status); } >/dev/null; then 3150 if test -s conftest.err; then 3151 ac_cpp_err=$ac_c_preproc_warn_flag 3152 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3153 else 3154 ac_cpp_err= 3155 fi 3156 else 3157 ac_cpp_err=yes 3158 fi 3159 if test -z "$ac_cpp_err"; then 3160 # Broken: success on invalid input. 3161 continue 3162 else 3163 echo "$as_me: failed program was:" >&5 3164 sed 's/^/| /' conftest.$ac_ext >&5 3165 3166 # Passes both tests. 3167 ac_preproc_ok=: 3168 break 3169 fi 3170 rm -f conftest.err conftest.$ac_ext 3171 3172 done 3173 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3174 rm -f conftest.err conftest.$ac_ext 3175 if $ac_preproc_ok; then 3176 break 3177 fi 3178 3179 done 3180 ac_cv_prog_CPP=$CPP 3181 3182 fi 3183 CPP=$ac_cv_prog_CPP 3184 else 3185 ac_cv_prog_CPP=$CPP 3186 fi 3187 echo "$as_me:$LINENO: result: $CPP" >&5 3188 echo "${ECHO_T}$CPP" >&6 3189 ac_preproc_ok=false 3190 for ac_c_preproc_warn_flag in '' yes 3191 do 3192 # Use a header file that comes with gcc, so configuring glibc 3193 # with a fresh cross-compiler works. 3194 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3195 # <limits.h> exists even on freestanding compilers. 3196 # On the NeXT, cc -E runs the code through the compiler's parser, 3197 # not just through cpp. "Syntax error" is here to catch this case. 3198 cat >conftest.$ac_ext <<_ACEOF 3199 /* confdefs.h. */ 3200 _ACEOF 3201 cat confdefs.h >>conftest.$ac_ext 3202 cat >>conftest.$ac_ext <<_ACEOF 3203 /* end confdefs.h. */ 3204 #ifdef __STDC__ 3205 # include <limits.h> 3206 #else 3207 # include <assert.h> 3208 #endif 3209 Syntax error 3210 _ACEOF 3211 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3212 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3213 ac_status=$? 3214 grep -v '^ *+' conftest.er1 >conftest.err 3215 rm -f conftest.er1 3216 cat conftest.err >&5 3217 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3218 (exit $ac_status); } >/dev/null; then 3219 if test -s conftest.err; then 3220 ac_cpp_err=$ac_c_preproc_warn_flag 3221 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3222 else 3223 ac_cpp_err= 3224 fi 3225 else 3226 ac_cpp_err=yes 3227 fi 3228 if test -z "$ac_cpp_err"; then 3229 : 3230 else 3231 echo "$as_me: failed program was:" >&5 3232 sed 's/^/| /' conftest.$ac_ext >&5 3233 3234 # Broken: fails on valid input. 3235 continue 3236 fi 3237 rm -f conftest.err conftest.$ac_ext 3238 3239 # OK, works on sane cases. Now check whether non-existent headers 3240 # can be detected and how. 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 #include <ac_nonexistent.h> 3248 _ACEOF 3249 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3250 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3251 ac_status=$? 3252 grep -v '^ *+' conftest.er1 >conftest.err 3253 rm -f conftest.er1 3254 cat conftest.err >&5 3255 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3256 (exit $ac_status); } >/dev/null; then 3257 if test -s conftest.err; then 3258 ac_cpp_err=$ac_c_preproc_warn_flag 3259 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3260 else 3261 ac_cpp_err= 3262 fi 3263 else 3264 ac_cpp_err=yes 3265 fi 3266 if test -z "$ac_cpp_err"; then 3267 # Broken: success on invalid input. 3268 continue 3269 else 3270 echo "$as_me: failed program was:" >&5 3271 sed 's/^/| /' conftest.$ac_ext >&5 3272 3273 # Passes both tests. 3274 ac_preproc_ok=: 3275 break 3276 fi 3277 rm -f conftest.err conftest.$ac_ext 3278 3279 done 3280 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3281 rm -f conftest.err conftest.$ac_ext 3282 if $ac_preproc_ok; then 3283 : 3284 else 3285 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3286 See \`config.log' for more details." >&5 3287 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3288 See \`config.log' for more details." >&2;} 3289 { (exit 1); exit 1; }; } 3290 fi 3291 3292 ac_ext=c 3293 ac_cpp='$CPP $CPPFLAGS' 3294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3296 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3297 3298 3299 echo "$as_me:$LINENO: checking for egrep" >&5 3300 echo $ECHO_N "checking for egrep... $ECHO_C" >&6 3301 if test "${ac_cv_prog_egrep+set}" = set; then 3302 echo $ECHO_N "(cached) $ECHO_C" >&6 3303 else 3304 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 3305 then ac_cv_prog_egrep='grep -E' 3306 else ac_cv_prog_egrep='egrep' 3307 fi 3308 fi 3309 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 3310 echo "${ECHO_T}$ac_cv_prog_egrep" >&6 3311 EGREP=$ac_cv_prog_egrep 3312 3313 3314 echo "$as_me:$LINENO: checking for ANSI C header files" >&5 3315 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 3316 if test "${ac_cv_header_stdc+set}" = set; then 3317 echo $ECHO_N "(cached) $ECHO_C" >&6 3318 else 3319 cat >conftest.$ac_ext <<_ACEOF 3320 /* confdefs.h. */ 3321 _ACEOF 3322 cat confdefs.h >>conftest.$ac_ext 3323 cat >>conftest.$ac_ext <<_ACEOF 3324 /* end confdefs.h. */ 3325 #include <stdlib.h> 3326 #include <stdarg.h> 3327 #include <string.h> 3328 #include <float.h> 3329 3330 int 3331 main () 3332 { 3333 3334 ; 3335 return 0; 3336 } 3337 _ACEOF 3338 rm -f conftest.$ac_objext 3339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3340 (eval $ac_compile) 2>conftest.er1 3341 ac_status=$? 3342 grep -v '^ *+' conftest.er1 >conftest.err 3343 rm -f conftest.er1 3344 cat conftest.err >&5 3345 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3346 (exit $ac_status); } && 3347 { ac_try='test -z "$ac_c_werror_flag" 3348 || test ! -s conftest.err' 3349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3350 (eval $ac_try) 2>&5 3351 ac_status=$? 3352 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3353 (exit $ac_status); }; } && 3354 { ac_try='test -s conftest.$ac_objext' 3355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3356 (eval $ac_try) 2>&5 3357 ac_status=$? 3358 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3359 (exit $ac_status); }; }; then 3360 ac_cv_header_stdc=yes 3361 else 3362 echo "$as_me: failed program was:" >&5 3363 sed 's/^/| /' conftest.$ac_ext >&5 3364 3365 ac_cv_header_stdc=no 3366 fi 3367 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3368 3369 if test $ac_cv_header_stdc = yes; then 3370 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3371 cat >conftest.$ac_ext <<_ACEOF 3372 /* confdefs.h. */ 3373 _ACEOF 3374 cat confdefs.h >>conftest.$ac_ext 3375 cat >>conftest.$ac_ext <<_ACEOF 3376 /* end confdefs.h. */ 3377 #include <string.h> 3378 3379 _ACEOF 3380 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3381 $EGREP "memchr" >/dev/null 2>&1; then 3382 : 3383 else 3384 ac_cv_header_stdc=no 3385 fi 3386 rm -f conftest* 3387 3388 fi 3389 3390 if test $ac_cv_header_stdc = yes; then 3391 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3392 cat >conftest.$ac_ext <<_ACEOF 3393 /* confdefs.h. */ 3394 _ACEOF 3395 cat confdefs.h >>conftest.$ac_ext 3396 cat >>conftest.$ac_ext <<_ACEOF 3397 /* end confdefs.h. */ 3398 #include <stdlib.h> 3399 3400 _ACEOF 3401 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3402 $EGREP "free" >/dev/null 2>&1; then 3403 : 3404 else 3405 ac_cv_header_stdc=no 3406 fi 3407 rm -f conftest* 3408 3409 fi 3410 3411 if test $ac_cv_header_stdc = yes; then 3412 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3413 if test "$cross_compiling" = yes; then 3414 : 3415 else 3416 cat >conftest.$ac_ext <<_ACEOF 3417 /* confdefs.h. */ 3418 _ACEOF 3419 cat confdefs.h >>conftest.$ac_ext 3420 cat >>conftest.$ac_ext <<_ACEOF 3421 /* end confdefs.h. */ 3422 #include <ctype.h> 3423 #if ((' ' & 0x0FF) == 0x020) 3424 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3425 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3426 #else 3427 # define ISLOWER(c) \ 3428 (('a' <= (c) && (c) <= 'i') \ 3429 || ('j' <= (c) && (c) <= 'r') \ 3430 || ('s' <= (c) && (c) <= 'z')) 3431 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3432 #endif 3433 3434 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3435 int 3436 main () 3437 { 3438 int i; 3439 for (i = 0; i < 256; i++) 3440 if (XOR (islower (i), ISLOWER (i)) 3441 || toupper (i) != TOUPPER (i)) 3442 exit(2); 3443 exit (0); 3444 } 3445 _ACEOF 3446 rm -f conftest$ac_exeext 3447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3448 (eval $ac_link) 2>&5 3449 ac_status=$? 3450 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3451 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3453 (eval $ac_try) 2>&5 3454 ac_status=$? 3455 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3456 (exit $ac_status); }; }; then 3457 : 3458 else 3459 echo "$as_me: program exited with status $ac_status" >&5 3460 echo "$as_me: failed program was:" >&5 3461 sed 's/^/| /' conftest.$ac_ext >&5 3462 3463 ( exit $ac_status ) 3464 ac_cv_header_stdc=no 3465 fi 3466 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3467 fi 3468 fi 3469 fi 3470 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 3471 echo "${ECHO_T}$ac_cv_header_stdc" >&6 3472 if test $ac_cv_header_stdc = yes; then 3473 3474 cat >>confdefs.h <<\_ACEOF 3475 #define STDC_HEADERS 1 3476 _ACEOF 3477 3478 fi 3479 3480 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3491 inttypes.h stdint.h unistd.h 3492 do 3493 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3494 echo "$as_me:$LINENO: checking for $ac_header" >&5 3495 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3496 if eval "test \"\${$as_ac_Header+set}\" = set"; then 3497 echo $ECHO_N "(cached) $ECHO_C" >&6 3498 else 3499 cat >conftest.$ac_ext <<_ACEOF 3500 /* confdefs.h. */ 3501 _ACEOF 3502 cat confdefs.h >>conftest.$ac_ext 3503 cat >>conftest.$ac_ext <<_ACEOF 3504 /* end confdefs.h. */ 3505 $ac_includes_default 3506 3507 #include <$ac_header> 3508 _ACEOF 3509 rm -f conftest.$ac_objext 3510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3511 (eval $ac_compile) 2>conftest.er1 3512 ac_status=$? 3513 grep -v '^ *+' conftest.er1 >conftest.err 3514 rm -f conftest.er1 3515 cat conftest.err >&5 3516 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3517 (exit $ac_status); } && 3518 { ac_try='test -z "$ac_c_werror_flag" 3519 || test ! -s conftest.err' 3520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3521 (eval $ac_try) 2>&5 3522 ac_status=$? 3523 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3524 (exit $ac_status); }; } && 3525 { ac_try='test -s conftest.$ac_objext' 3526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3527 (eval $ac_try) 2>&5 3528 ac_status=$? 3529 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3530 (exit $ac_status); }; }; then 3531 eval "$as_ac_Header=yes" 3532 else 3533 echo "$as_me: failed program was:" >&5 3534 sed 's/^/| /' conftest.$ac_ext >&5 3535 3536 eval "$as_ac_Header=no" 3537 fi 3538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3539 fi 3540 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3541 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3542 if test `eval echo '${'$as_ac_Header'}'` = yes; then 3543 cat >>confdefs.h <<_ACEOF 3544 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3545 _ACEOF 3546 3547 fi 3548 3549 done 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 for ac_header in fcntl.h netdb.h netinet/in.h stdlib.h string.h sys/socket.h \ 3566 sys/time.h termios.h unistd.h openssl/aes.h openssl/blowfish.h zlib.h \ 3567 sys/poll.h 3568 do 3569 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3570 if eval "test \"\${$as_ac_Header+set}\" = set"; then 3571 echo "$as_me:$LINENO: checking for $ac_header" >&5 3572 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3573 if eval "test \"\${$as_ac_Header+set}\" = set"; then 3574 echo $ECHO_N "(cached) $ECHO_C" >&6 3575 fi 3576 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3577 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3578 else 3579 # Is the header compilable? 3580 echo "$as_me:$LINENO: checking $ac_header usability" >&5 3581 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 3582 cat >conftest.$ac_ext <<_ACEOF 3583 /* confdefs.h. */ 3584 _ACEOF 3585 cat confdefs.h >>conftest.$ac_ext 3586 cat >>conftest.$ac_ext <<_ACEOF 3587 /* end confdefs.h. */ 3588 $ac_includes_default 3589 #include <$ac_header> 3590 _ACEOF 3591 rm -f conftest.$ac_objext 3592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3593 (eval $ac_compile) 2>conftest.er1 3594 ac_status=$? 3595 grep -v '^ *+' conftest.er1 >conftest.err 3596 rm -f conftest.er1 3597 cat conftest.err >&5 3598 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3599 (exit $ac_status); } && 3600 { ac_try='test -z "$ac_c_werror_flag" 3601 || test ! -s conftest.err' 3602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3603 (eval $ac_try) 2>&5 3604 ac_status=$? 3605 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3606 (exit $ac_status); }; } && 3607 { ac_try='test -s conftest.$ac_objext' 3608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3609 (eval $ac_try) 2>&5 3610 ac_status=$? 3611 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3612 (exit $ac_status); }; }; then 3613 ac_header_compiler=yes 3614 else 3615 echo "$as_me: failed program was:" >&5 3616 sed 's/^/| /' conftest.$ac_ext >&5 3617 3618 ac_header_compiler=no 3619 fi 3620 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3621 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 3622 echo "${ECHO_T}$ac_header_compiler" >&6 3623 3624 # Is the header present? 3625 echo "$as_me:$LINENO: checking $ac_header presence" >&5 3626 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 3627 cat >conftest.$ac_ext <<_ACEOF 3628 /* confdefs.h. */ 3629 _ACEOF 3630 cat confdefs.h >>conftest.$ac_ext 3631 cat >>conftest.$ac_ext <<_ACEOF 3632 /* end confdefs.h. */ 3633 #include <$ac_header> 3634 _ACEOF 3635 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3636 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3637 ac_status=$? 3638 grep -v '^ *+' conftest.er1 >conftest.err 3639 rm -f conftest.er1 3640 cat conftest.err >&5 3641 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3642 (exit $ac_status); } >/dev/null; then 3643 if test -s conftest.err; then 3644 ac_cpp_err=$ac_c_preproc_warn_flag 3645 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3646 else 3647 ac_cpp_err= 3648 fi 3649 else 3650 ac_cpp_err=yes 3651 fi 3652 if test -z "$ac_cpp_err"; then 3653 ac_header_preproc=yes 3654 else 3655 echo "$as_me: failed program was:" >&5 3656 sed 's/^/| /' conftest.$ac_ext >&5 3657 3658 ac_header_preproc=no 3659 fi 3660 rm -f conftest.err conftest.$ac_ext 3661 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 3662 echo "${ECHO_T}$ac_header_preproc" >&6 3663 3664 # So? What about this header? 3665 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 3666 yes:no: ) 3667 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 3668 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 3669 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 3670 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 3671 ac_header_preproc=yes 3672 ;; 3673 no:yes:* ) 3674 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 3675 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 3676 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 3677 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 3678 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 3679 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 3680 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 3681 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 3682 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 3683 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 3684 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 3685 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 3686 ( 3687 cat <<\_ASBOX 3688 ## -------------------------------- ## 3689 ## Report this to aris@0xbadc0de.be ## 3690 ## -------------------------------- ## 3691 _ASBOX 3692 ) | 3693 sed "s/^/$as_me: WARNING: /" >&2 3694 ;; 3695 esac 3696 echo "$as_me:$LINENO: checking for $ac_header" >&5 3697 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3698 if eval "test \"\${$as_ac_Header+set}\" = set"; then 3699 echo $ECHO_N "(cached) $ECHO_C" >&6 3700 else 3701 eval "$as_ac_Header=\$ac_header_preproc" 3702 fi 3703 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3704 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3705 3706 fi 3707 if test `eval echo '${'$as_ac_Header'}'` = yes; then 3708 cat >>confdefs.h <<_ACEOF 3709 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3710 _ACEOF 3711 3712 fi 3713 3714 done 3715 3716 3717 # Checks for typedefs, structures, and compiler characteristics. 3718 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 3719 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 3720 if test "${ac_cv_c_const+set}" = set; then 3721 echo $ECHO_N "(cached) $ECHO_C" >&6 3722 else 3723 cat >conftest.$ac_ext <<_ACEOF 3724 /* confdefs.h. */ 3725 _ACEOF 3726 cat confdefs.h >>conftest.$ac_ext 3727 cat >>conftest.$ac_ext <<_ACEOF 3728 /* end confdefs.h. */ 3729 3730 int 3731 main () 3732 { 3733 /* FIXME: Include the comments suggested by Paul. */ 3734 #ifndef __cplusplus 3735 /* Ultrix mips cc rejects this. */ 3736 typedef int charset[2]; 3737 const charset x; 3738 /* SunOS 4.1.1 cc rejects this. */ 3739 char const *const *ccp; 3740 char **p; 3741 /* NEC SVR4.0.2 mips cc rejects this. */ 3742 struct point {int x, y;}; 3743 static struct point const zero = {0,0}; 3744 /* AIX XL C 1.02.0.0 rejects this. 3745 It does not let you subtract one const X* pointer from another in 3746 an arm of an if-expression whose if-part is not a constant 3747 expression */ 3748 const char *g = "string"; 3749 ccp = &g + (g ? g-g : 0); 3750 /* HPUX 7.0 cc rejects these. */ 3751 ++ccp; 3752 p = (char**) ccp; 3753 ccp = (char const *const *) p; 3754 { /* SCO 3.2v4 cc rejects this. */ 3755 char *t; 3756 char const *s = 0 ? (char *) 0 : (char const *) 0; 3757 3758 *t++ = 0; 3759 } 3760 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 3761 int x[] = {25, 17}; 3762 const int *foo = &x[0]; 3763 ++foo; 3764 } 3765 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 3766 typedef const int *iptr; 3767 iptr p = 0; 3768 ++p; 3769 } 3770 { /* AIX XL C 1.02.0.0 rejects this saying 3771 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 3772 struct s { int j; const int *ap[3]; }; 3773 struct s *b; b->j = 5; 3774 } 3775 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 3776 const int foo = 10; 3777 } 3778 #endif 3779 3780 ; 3781 return 0; 3782 } 3783 _ACEOF 3784 rm -f conftest.$ac_objext 3785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3786 (eval $ac_compile) 2>conftest.er1 3787 ac_status=$? 3788 grep -v '^ *+' conftest.er1 >conftest.err 3789 rm -f conftest.er1 3790 cat conftest.err >&5 3791 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3792 (exit $ac_status); } && 3793 { ac_try='test -z "$ac_c_werror_flag" 3794 || test ! -s conftest.err' 3795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3796 (eval $ac_try) 2>&5 3797 ac_status=$? 3798 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3799 (exit $ac_status); }; } && 3800 { ac_try='test -s conftest.$ac_objext' 3801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3802 (eval $ac_try) 2>&5 3803 ac_status=$? 3804 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3805 (exit $ac_status); }; }; then 3806 ac_cv_c_const=yes 3807 else 3808 echo "$as_me: failed program was:" >&5 3809 sed 's/^/| /' conftest.$ac_ext >&5 3810 3811 ac_cv_c_const=no 3812 fi 3813 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3814 fi 3815 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 3816 echo "${ECHO_T}$ac_cv_c_const" >&6 3817 if test $ac_cv_c_const = no; then 3818 3819 cat >>confdefs.h <<\_ACEOF 3820 #define const 3821 _ACEOF 3822 3823 fi 3824 3825 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 3826 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 3827 if test "${ac_cv_header_time+set}" = set; then 3828 echo $ECHO_N "(cached) $ECHO_C" >&6 3829 else 3830 cat >conftest.$ac_ext <<_ACEOF 3831 /* confdefs.h. */ 3832 _ACEOF 3833 cat confdefs.h >>conftest.$ac_ext 3834 cat >>conftest.$ac_ext <<_ACEOF 3835 /* end confdefs.h. */ 3836 #include <sys/types.h> 3837 #include <sys/time.h> 3838 #include <time.h> 3839 3840 int 3841 main () 3842 { 3843 if ((struct tm *) 0) 3844 return 0; 3845 ; 3846 return 0; 3847 } 3848 _ACEOF 3849 rm -f conftest.$ac_objext 3850 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3851 (eval $ac_compile) 2>conftest.er1 3852 ac_status=$? 3853 grep -v '^ *+' conftest.er1 >conftest.err 3854 rm -f conftest.er1 3855 cat conftest.err >&5 3856 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3857 (exit $ac_status); } && 3858 { ac_try='test -z "$ac_c_werror_flag" 3859 || test ! -s conftest.err' 3860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3861 (eval $ac_try) 2>&5 3862 ac_status=$? 3863 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3864 (exit $ac_status); }; } && 3865 { ac_try='test -s conftest.$ac_objext' 3866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3867 (eval $ac_try) 2>&5 3868 ac_status=$? 3869 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3870 (exit $ac_status); }; }; then 3871 ac_cv_header_time=yes 3872 else 3873 echo "$as_me: failed program was:" >&5 3874 sed 's/^/| /' conftest.$ac_ext >&5 3875 3876 ac_cv_header_time=no 3877 fi 3878 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3879 fi 3880 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 3881 echo "${ECHO_T}$ac_cv_header_time" >&6 3882 if test $ac_cv_header_time = yes; then 3883 3884 cat >>confdefs.h <<\_ACEOF 3885 #define TIME_WITH_SYS_TIME 1 3886 _ACEOF 3887 3888 fi 3889 3890 3891 # Checks for library functions. 3892 3893 for ac_header in stdlib.h 3894 do 3895 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3896 if eval "test \"\${$as_ac_Header+set}\" = set"; then 3897 echo "$as_me:$LINENO: checking for $ac_header" >&5 3898 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3899 if eval "test \"\${$as_ac_Header+set}\" = set"; then 3900 echo $ECHO_N "(cached) $ECHO_C" >&6 3901 fi 3902 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3903 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3904 else 3905 # Is the header compilable? 3906 echo "$as_me:$LINENO: checking $ac_header usability" >&5 3907 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 3908 cat >conftest.$ac_ext <<_ACEOF 3909 /* confdefs.h. */ 3910 _ACEOF 3911 cat confdefs.h >>conftest.$ac_ext 3912 cat >>conftest.$ac_ext <<_ACEOF 3913 /* end confdefs.h. */ 3914 $ac_includes_default 3915 #include <$ac_header> 3916 _ACEOF 3917 rm -f conftest.$ac_objext 3918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3919 (eval $ac_compile) 2>conftest.er1 3920 ac_status=$? 3921 grep -v '^ *+' conftest.er1 >conftest.err 3922 rm -f conftest.er1 3923 cat conftest.err >&5 3924 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3925 (exit $ac_status); } && 3926 { ac_try='test -z "$ac_c_werror_flag" 3927 || test ! -s conftest.err' 3928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3929 (eval $ac_try) 2>&5 3930 ac_status=$? 3931 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3932 (exit $ac_status); }; } && 3933 { ac_try='test -s conftest.$ac_objext' 3934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3935 (eval $ac_try) 2>&5 3936 ac_status=$? 3937 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3938 (exit $ac_status); }; }; then 3939 ac_header_compiler=yes 3940 else 3941 echo "$as_me: failed program was:" >&5 3942 sed 's/^/| /' conftest.$ac_ext >&5 3943 3944 ac_header_compiler=no 3945 fi 3946 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3947 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 3948 echo "${ECHO_T}$ac_header_compiler" >&6 3949 3950 # Is the header present? 3951 echo "$as_me:$LINENO: checking $ac_header presence" >&5 3952 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 3953 cat >conftest.$ac_ext <<_ACEOF 3954 /* confdefs.h. */ 3955 _ACEOF 3956 cat confdefs.h >>conftest.$ac_ext 3957 cat >>conftest.$ac_ext <<_ACEOF 3958 /* end confdefs.h. */ 3959 #include <$ac_header> 3960 _ACEOF 3961 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3962 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3963 ac_status=$? 3964 grep -v '^ *+' conftest.er1 >conftest.err 3965 rm -f conftest.er1 3966 cat conftest.err >&5 3967 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3968 (exit $ac_status); } >/dev/null; then 3969 if test -s conftest.err; then 3970 ac_cpp_err=$ac_c_preproc_warn_flag 3971 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3972 else 3973 ac_cpp_err= 3974 fi 3975 else 3976 ac_cpp_err=yes 3977 fi 3978 if test -z "$ac_cpp_err"; then 3979 ac_header_preproc=yes 3980 else 3981 echo "$as_me: failed program was:" >&5 3982 sed 's/^/| /' conftest.$ac_ext >&5 3983 3984 ac_header_preproc=no 3985 fi 3986 rm -f conftest.err conftest.$ac_ext 3987 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 3988 echo "${ECHO_T}$ac_header_preproc" >&6 3989 3990 # So? What about this header? 3991 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 3992 yes:no: ) 3993 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 3994 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 3995 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 3996 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 3997 ac_header_preproc=yes 3998 ;; 3999 no:yes:* ) 4000 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4001 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4002 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4003 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4004 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 4005 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 4006 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 4007 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 4008 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4009 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4010 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 4011 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 4012 ( 4013 cat <<\_ASBOX 4014 ## -------------------------------- ## 4015 ## Report this to aris@0xbadc0de.be ## 4016 ## -------------------------------- ## 4017 _ASBOX 4018 ) | 4019 sed "s/^/$as_me: WARNING: /" >&2 4020 ;; 4021 esac 4022 echo "$as_me:$LINENO: checking for $ac_header" >&5 4023 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4024 if eval "test \"\${$as_ac_Header+set}\" = set"; then 4025 echo $ECHO_N "(cached) $ECHO_C" >&6 4026 else 4027 eval "$as_ac_Header=\$ac_header_preproc" 4028 fi 4029 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4030 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4031 4032 fi 4033 if test `eval echo '${'$as_ac_Header'}'` = yes; then 4034 cat >>confdefs.h <<_ACEOF 4035 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4036 _ACEOF 4037 4038 fi 4039 4040 done 4041 4042 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 4043 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6 4044 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then 4045 echo $ECHO_N "(cached) $ECHO_C" >&6 4046 else 4047 if test "$cross_compiling" = yes; then 4048 ac_cv_func_malloc_0_nonnull=no 4049 else 4050 cat >conftest.$ac_ext <<_ACEOF 4051 /* confdefs.h. */ 4052 _ACEOF 4053 cat confdefs.h >>conftest.$ac_ext 4054 cat >>conftest.$ac_ext <<_ACEOF 4055 /* end confdefs.h. */ 4056 #if STDC_HEADERS || HAVE_STDLIB_H 4057 # include <stdlib.h> 4058 #else 4059 char *malloc (); 4060 #endif 4061 4062 int 4063 main () 4064 { 4065 exit (malloc (0) ? 0 : 1); 4066 ; 4067 return 0; 4068 } 4069 _ACEOF 4070 rm -f conftest$ac_exeext 4071 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4072 (eval $ac_link) 2>&5 4073 ac_status=$? 4074 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4075 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4077 (eval $ac_try) 2>&5 4078 ac_status=$? 4079 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4080 (exit $ac_status); }; }; then 4081 ac_cv_func_malloc_0_nonnull=yes 4082 else 4083 echo "$as_me: program exited with status $ac_status" >&5 4084 echo "$as_me: failed program was:" >&5 4085 sed 's/^/| /' conftest.$ac_ext >&5 4086 4087 ( exit $ac_status ) 4088 ac_cv_func_malloc_0_nonnull=no 4089 fi 4090 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4091 fi 4092 fi 4093 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 4094 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6 4095 if test $ac_cv_func_malloc_0_nonnull = yes; then 4096 4097 cat >>confdefs.h <<\_ACEOF 4098 #define HAVE_MALLOC 1 4099 _ACEOF 4100 4101 else 4102 cat >>confdefs.h <<\_ACEOF 4103 #define HAVE_MALLOC 0 4104 _ACEOF 4105 4106 case $LIBOBJS in 4107 "malloc.$ac_objext" | \ 4108 *" malloc.$ac_objext" | \ 4109 "malloc.$ac_objext "* | \ 4110 *" malloc.$ac_objext "* ) ;; 4111 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;; 4112 esac 4113 4114 4115 cat >>confdefs.h <<\_ACEOF 4116 #define malloc rpl_malloc 4117 _ACEOF 4118 4119 fi 4120 4121 4122 4123 echo "$as_me:$LINENO: checking for working memcmp" >&5 4124 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6 4125 if test "${ac_cv_func_memcmp_working+set}" = set; then 4126 echo $ECHO_N "(cached) $ECHO_C" >&6 4127 else 4128 if test "$cross_compiling" = yes; then 4129 ac_cv_func_memcmp_working=no 4130 else 4131 cat >conftest.$ac_ext <<_ACEOF 4132 /* confdefs.h. */ 4133 _ACEOF 4134 cat confdefs.h >>conftest.$ac_ext 4135 cat >>conftest.$ac_ext <<_ACEOF 4136 /* end confdefs.h. */ 4137 $ac_includes_default 4138 int 4139 main () 4140 { 4141 4142 /* Some versions of memcmp are not 8-bit clean. */ 4143 char c0 = 0x40, c1 = 0x80, c2 = 0x81; 4144 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) 4145 exit (1); 4146 4147 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes 4148 or more and with at least one buffer not starting on a 4-byte boundary. 4149 William Lewis provided this test program. */ 4150 { 4151 char foo[21]; 4152 char bar[21]; 4153 int i; 4154 for (i = 0; i < 4; i++) 4155 { 4156 char *a = foo + i; 4157 char *b = bar + i; 4158 strcpy (a, "--------01111111"); 4159 strcpy (b, "--------10000000"); 4160 if (memcmp (a, b, 16) >= 0) 4161 exit (1); 4162 } 4163 exit (0); 4164 } 4165 4166 ; 4167 return 0; 4168 } 4169 _ACEOF 4170 rm -f conftest$ac_exeext 4171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4172 (eval $ac_link) 2>&5 4173 ac_status=$? 4174 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4175 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4177 (eval $ac_try) 2>&5 4178 ac_status=$? 4179 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4180 (exit $ac_status); }; }; then 4181 ac_cv_func_memcmp_working=yes 4182 else 4183 echo "$as_me: program exited with status $ac_status" >&5 4184 echo "$as_me: failed program was:" >&5 4185 sed 's/^/| /' conftest.$ac_ext >&5 4186 4187 ( exit $ac_status ) 4188 ac_cv_func_memcmp_working=no 4189 fi 4190 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4191 fi 4192 fi 4193 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5 4194 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6 4195 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in 4196 "memcmp.$ac_objext" | \ 4197 *" memcmp.$ac_objext" | \ 4198 "memcmp.$ac_objext "* | \ 4199 *" memcmp.$ac_objext "* ) ;; 4200 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;; 4201 esac 4202 4203 4204 4205 for ac_header in stdlib.h 4206 do 4207 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4208 if eval "test \"\${$as_ac_Header+set}\" = set"; then 4209 echo "$as_me:$LINENO: checking for $ac_header" >&5 4210 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4211 if eval "test \"\${$as_ac_Header+set}\" = set"; then 4212 echo $ECHO_N "(cached) $ECHO_C" >&6 4213 fi 4214 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4215 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4216 else 4217 # Is the header compilable? 4218 echo "$as_me:$LINENO: checking $ac_header usability" >&5 4219 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 4220 cat >conftest.$ac_ext <<_ACEOF 4221 /* confdefs.h. */ 4222 _ACEOF 4223 cat confdefs.h >>conftest.$ac_ext 4224 cat >>conftest.$ac_ext <<_ACEOF 4225 /* end confdefs.h. */ 4226 $ac_includes_default 4227 #include <$ac_header> 4228 _ACEOF 4229 rm -f conftest.$ac_objext 4230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4231 (eval $ac_compile) 2>conftest.er1 4232 ac_status=$? 4233 grep -v '^ *+' conftest.er1 >conftest.err 4234 rm -f conftest.er1 4235 cat conftest.err >&5 4236 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4237 (exit $ac_status); } && 4238 { ac_try='test -z "$ac_c_werror_flag" 4239 || test ! -s conftest.err' 4240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4241 (eval $ac_try) 2>&5 4242 ac_status=$? 4243 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4244 (exit $ac_status); }; } && 4245 { ac_try='test -s conftest.$ac_objext' 4246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4247 (eval $ac_try) 2>&5 4248 ac_status=$? 4249 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4250 (exit $ac_status); }; }; then 4251 ac_header_compiler=yes 4252 else 4253 echo "$as_me: failed program was:" >&5 4254 sed 's/^/| /' conftest.$ac_ext >&5 4255 4256 ac_header_compiler=no 4257 fi 4258 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4259 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4260 echo "${ECHO_T}$ac_header_compiler" >&6 4261 4262 # Is the header present? 4263 echo "$as_me:$LINENO: checking $ac_header presence" >&5 4264 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 4265 cat >conftest.$ac_ext <<_ACEOF 4266 /* confdefs.h. */ 4267 _ACEOF 4268 cat confdefs.h >>conftest.$ac_ext 4269 cat >>conftest.$ac_ext <<_ACEOF 4270 /* end confdefs.h. */ 4271 #include <$ac_header> 4272 _ACEOF 4273 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4274 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4275 ac_status=$? 4276 grep -v '^ *+' conftest.er1 >conftest.err 4277 rm -f conftest.er1 4278 cat conftest.err >&5 4279 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4280 (exit $ac_status); } >/dev/null; then 4281 if test -s conftest.err; then 4282 ac_cpp_err=$ac_c_preproc_warn_flag 4283 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4284 else 4285 ac_cpp_err= 4286 fi 4287 else 4288 ac_cpp_err=yes 4289 fi 4290 if test -z "$ac_cpp_err"; then 4291 ac_header_preproc=yes 4292 else 4293 echo "$as_me: failed program was:" >&5 4294 sed 's/^/| /' conftest.$ac_ext >&5 4295 4296 ac_header_preproc=no 4297 fi 4298 rm -f conftest.err conftest.$ac_ext 4299 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4300 echo "${ECHO_T}$ac_header_preproc" >&6 4301 4302 # So? What about this header? 4303 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4304 yes:no: ) 4305 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4306 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4307 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 4308 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 4309 ac_header_preproc=yes 4310 ;; 4311 no:yes:* ) 4312 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4313 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4314 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4315 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4316 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 4317 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 4318 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 4319 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 4320 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4321 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4322 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 4323 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 4324 ( 4325 cat <<\_ASBOX 4326 ## -------------------------------- ## 4327 ## Report this to aris@0xbadc0de.be ## 4328 ## -------------------------------- ## 4329 _ASBOX 4330 ) | 4331 sed "s/^/$as_me: WARNING: /" >&2 4332 ;; 4333 esac 4334 echo "$as_me:$LINENO: checking for $ac_header" >&5 4335 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4336 if eval "test \"\${$as_ac_Header+set}\" = set"; then 4337 echo $ECHO_N "(cached) $ECHO_C" >&6 4338 else 4339 eval "$as_ac_Header=\$ac_header_preproc" 4340 fi 4341 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4342 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4343 4344 fi 4345 if test `eval echo '${'$as_ac_Header'}'` = yes; then 4346 cat >>confdefs.h <<_ACEOF 4347 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4348 _ACEOF 4349 4350 fi 4351 4352 done 4353 4354 echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5 4355 echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6 4356 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then 4357 echo $ECHO_N "(cached) $ECHO_C" >&6 4358 else 4359 if test "$cross_compiling" = yes; then 4360 ac_cv_func_realloc_0_nonnull=no 4361 else 4362 cat >conftest.$ac_ext <<_ACEOF 4363 /* confdefs.h. */ 4364 _ACEOF 4365 cat confdefs.h >>conftest.$ac_ext 4366 cat >>conftest.$ac_ext <<_ACEOF 4367 /* end confdefs.h. */ 4368 #if STDC_HEADERS || HAVE_STDLIB_H 4369 # include <stdlib.h> 4370 #else 4371 char *realloc (); 4372 #endif 4373 4374 int 4375 main () 4376 { 4377 exit (realloc (0, 0) ? 0 : 1); 4378 ; 4379 return 0; 4380 } 4381 _ACEOF 4382 rm -f conftest$ac_exeext 4383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4384 (eval $ac_link) 2>&5 4385 ac_status=$? 4386 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4387 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4389 (eval $ac_try) 2>&5 4390 ac_status=$? 4391 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4392 (exit $ac_status); }; }; then 4393 ac_cv_func_realloc_0_nonnull=yes 4394 else 4395 echo "$as_me: program exited with status $ac_status" >&5 4396 echo "$as_me: failed program was:" >&5 4397 sed 's/^/| /' conftest.$ac_ext >&5 4398 4399 ( exit $ac_status ) 4400 ac_cv_func_realloc_0_nonnull=no 4401 fi 4402 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4403 fi 4404 fi 4405 echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5 4406 echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6 4407 if test $ac_cv_func_realloc_0_nonnull = yes; then 4408 4409 cat >>confdefs.h <<\_ACEOF 4410 #define HAVE_REALLOC 1 4411 _ACEOF 4412 4413 else 4414 cat >>confdefs.h <<\_ACEOF 4415 #define HAVE_REALLOC 0 4416 _ACEOF 4417 4418 case $LIBOBJS in 4419 "realloc.$ac_objext" | \ 4420 *" realloc.$ac_objext" | \ 4421 "realloc.$ac_objext "* | \ 4422 *" realloc.$ac_objext "* ) ;; 4423 *) LIBOBJS="$LIBOBJS realloc.$ac_objext" ;; 4424 esac 4425 4426 4427 cat >>confdefs.h <<\_ACEOF 4428 #define realloc rpl_realloc 4429 _ACEOF 4430 4431 fi 4432 4433 4434 4435 4436 4437 for ac_header in sys/select.h sys/socket.h 4438 do 4439 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4440 if eval "test \"\${$as_ac_Header+set}\" = set"; then 4441 echo "$as_me:$LINENO: checking for $ac_header" >&5 4442 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4443 if eval "test \"\${$as_ac_Header+set}\" = set"; then 4444 echo $ECHO_N "(cached) $ECHO_C" >&6 4445 fi 4446 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4447 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4448 else 4449 # Is the header compilable? 4450 echo "$as_me:$LINENO: checking $ac_header usability" >&5 4451 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 4452 cat >conftest.$ac_ext <<_ACEOF 4453 /* confdefs.h. */ 4454 _ACEOF 4455 cat confdefs.h >>conftest.$ac_ext 4456 cat >>conftest.$ac_ext <<_ACEOF 4457 /* end confdefs.h. */ 4458 $ac_includes_default 4459 #include <$ac_header> 4460 _ACEOF 4461 rm -f conftest.$ac_objext 4462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4463 (eval $ac_compile) 2>conftest.er1 4464 ac_status=$? 4465 grep -v '^ *+' conftest.er1 >conftest.err 4466 rm -f conftest.er1 4467 cat conftest.err >&5 4468 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4469 (exit $ac_status); } && 4470 { ac_try='test -z "$ac_c_werror_flag" 4471 || test ! -s conftest.err' 4472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4473 (eval $ac_try) 2>&5 4474 ac_status=$? 4475 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4476 (exit $ac_status); }; } && 4477 { ac_try='test -s conftest.$ac_objext' 4478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4479 (eval $ac_try) 2>&5 4480 ac_status=$? 4481 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4482 (exit $ac_status); }; }; then 4483 ac_header_compiler=yes 4484 else 4485 echo "$as_me: failed program was:" >&5 4486 sed 's/^/| /' conftest.$ac_ext >&5 4487 4488 ac_header_compiler=no 4489 fi 4490 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4491 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4492 echo "${ECHO_T}$ac_header_compiler" >&6 4493 4494 # Is the header present? 4495 echo "$as_me:$LINENO: checking $ac_header presence" >&5 4496 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 4497 cat >conftest.$ac_ext <<_ACEOF 4498 /* confdefs.h. */ 4499 _ACEOF 4500 cat confdefs.h >>conftest.$ac_ext 4501 cat >>conftest.$ac_ext <<_ACEOF 4502 /* end confdefs.h. */ 4503 #include <$ac_header> 4504 _ACEOF 4505 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4506 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4507 ac_status=$? 4508 grep -v '^ *+' conftest.er1 >conftest.err 4509 rm -f conftest.er1 4510 cat conftest.err >&5 4511 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4512 (exit $ac_status); } >/dev/null; then 4513 if test -s conftest.err; then 4514 ac_cpp_err=$ac_c_preproc_warn_flag 4515 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4516 else 4517 ac_cpp_err= 4518 fi 4519 else 4520 ac_cpp_err=yes 4521 fi 4522 if test -z "$ac_cpp_err"; then 4523 ac_header_preproc=yes 4524 else 4525 echo "$as_me: failed program was:" >&5 4526 sed 's/^/| /' conftest.$ac_ext >&5 4527 4528 ac_header_preproc=no 4529 fi 4530 rm -f conftest.err conftest.$ac_ext 4531 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4532 echo "${ECHO_T}$ac_header_preproc" >&6 4533 4534 # So? What about this header? 4535 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4536 yes:no: ) 4537 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4538 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4539 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 4540 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 4541 ac_header_preproc=yes 4542 ;; 4543 no:yes:* ) 4544 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4545 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4546 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4547 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4548 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 4549 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 4550 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 4551 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 4552 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4553 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4554 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 4555 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 4556 ( 4557 cat <<\_ASBOX 4558 ## -------------------------------- ## 4559 ## Report this to aris@0xbadc0de.be ## 4560 ## -------------------------------- ## 4561 _ASBOX 4562 ) | 4563 sed "s/^/$as_me: WARNING: /" >&2 4564 ;; 4565 esac 4566 echo "$as_me:$LINENO: checking for $ac_header" >&5 4567 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4568 if eval "test \"\${$as_ac_Header+set}\" = set"; then 4569 echo $ECHO_N "(cached) $ECHO_C" >&6 4570 else 4571 eval "$as_ac_Header=\$ac_header_preproc" 4572 fi 4573 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4574 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4575 4576 fi 4577 if test `eval echo '${'$as_ac_Header'}'` = yes; then 4578 cat >>confdefs.h <<_ACEOF 4579 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4580 _ACEOF 4581 4582 fi 4583 4584 done 4585 4586 echo "$as_me:$LINENO: checking types of arguments for select" >&5 4587 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6 4588 if test "${ac_cv_func_select_args+set}" = set; then 4589 echo $ECHO_N "(cached) $ECHO_C" >&6 4590 else 4591 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do 4592 for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do 4593 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do 4594 cat >conftest.$ac_ext <<_ACEOF 4595 /* confdefs.h. */ 4596 _ACEOF 4597 cat confdefs.h >>conftest.$ac_ext 4598 cat >>conftest.$ac_ext <<_ACEOF 4599 /* end confdefs.h. */ 4600 $ac_includes_default 4601 #if HAVE_SYS_SELECT_H 4602 # include <sys/select.h> 4603 #endif 4604 #if HAVE_SYS_SOCKET_H 4605 # include <sys/socket.h> 4606 #endif 4607 4608 int 4609 main () 4610 { 4611 extern int select ($ac_arg1, 4612 $ac_arg234, $ac_arg234, $ac_arg234, 4613 $ac_arg5); 4614 ; 4615 return 0; 4616 } 4617 _ACEOF 4618 rm -f conftest.$ac_objext 4619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4620 (eval $ac_compile) 2>conftest.er1 4621 ac_status=$? 4622 grep -v '^ *+' conftest.er1 >conftest.err 4623 rm -f conftest.er1 4624 cat conftest.err >&5 4625 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4626 (exit $ac_status); } && 4627 { ac_try='test -z "$ac_c_werror_flag" 4628 || test ! -s conftest.err' 4629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4630 (eval $ac_try) 2>&5 4631 ac_status=$? 4632 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4633 (exit $ac_status); }; } && 4634 { ac_try='test -s conftest.$ac_objext' 4635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4636 (eval $ac_try) 2>&5 4637 ac_status=$? 4638 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4639 (exit $ac_status); }; }; then 4640 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3 4641 else 4642 echo "$as_me: failed program was:" >&5 4643 sed 's/^/| /' conftest.$ac_ext >&5 4644 4645 fi 4646 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4647 done 4648 done 4649 done 4650 # Provide a safe default value. 4651 : ${ac_cv_func_select_args='int,int *,struct timeval *'} 4652 4653 fi 4654 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5 4655 echo "${ECHO_T}$ac_cv_func_select_args" >&6 4656 ac_save_IFS=$IFS; IFS=',' 4657 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'` 4658 IFS=$ac_save_IFS 4659 shift 4660 4661 cat >>confdefs.h <<_ACEOF 4662 #define SELECT_TYPE_ARG1 $1 4663 _ACEOF 4664 4665 4666 cat >>confdefs.h <<_ACEOF 4667 #define SELECT_TYPE_ARG234 ($2) 4668 _ACEOF 4669 4670 4671 cat >>confdefs.h <<_ACEOF 4672 #define SELECT_TYPE_ARG5 ($3) 4673 _ACEOF 4674 4675 rm -f conftest* 4676 4677 echo "$as_me:$LINENO: checking return type of signal handlers" >&5 4678 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 4679 if test "${ac_cv_type_signal+set}" = set; then 4680 echo $ECHO_N "(cached) $ECHO_C" >&6 4681 else 4682 cat >conftest.$ac_ext <<_ACEOF 4683 /* confdefs.h. */ 4684 _ACEOF 4685 cat confdefs.h >>conftest.$ac_ext 4686 cat >>conftest.$ac_ext <<_ACEOF 4687 /* end confdefs.h. */ 4688 #include <sys/types.h> 4689 #include <signal.h> 4690 #ifdef signal 4691 # undef signal 4692 #endif 4693 #ifdef __cplusplus 4694 extern "C" void (*signal (int, void (*)(int)))(int); 4695 #else 4696 void (*signal ()) (); 4697 #endif 4698 4699 int 4700 main () 4701 { 4702 int i; 4703 ; 4704 return 0; 4705 } 4706 _ACEOF 4707 rm -f conftest.$ac_objext 4708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4709 (eval $ac_compile) 2>conftest.er1 4710 ac_status=$? 4711 grep -v '^ *+' conftest.er1 >conftest.err 4712 rm -f conftest.er1 4713 cat conftest.err >&5 4714 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4715 (exit $ac_status); } && 4716 { ac_try='test -z "$ac_c_werror_flag" 4717 || test ! -s conftest.err' 4718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4719 (eval $ac_try) 2>&5 4720 ac_status=$? 4721 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4722 (exit $ac_status); }; } && 4723 { ac_try='test -s conftest.$ac_objext' 4724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4725 (eval $ac_try) 2>&5 4726 ac_status=$? 4727 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4728 (exit $ac_status); }; }; then 4729 ac_cv_type_signal=void 4730 else 4731 echo "$as_me: failed program was:" >&5 4732 sed 's/^/| /' conftest.$ac_ext >&5 4733 4734 ac_cv_type_signal=int 4735 fi 4736 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4737 fi 4738 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 4739 echo "${ECHO_T}$ac_cv_type_signal" >&6 4740 4741 cat >>confdefs.h <<_ACEOF 4742 #define RETSIGTYPE $ac_cv_type_signal 4743 _ACEOF 4744 4745 4746 4747 for ac_func in vprintf 4748 do 4749 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 4750 echo "$as_me:$LINENO: checking for $ac_func" >&5 4751 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 4752 if eval "test \"\${$as_ac_var+set}\" = set"; then 4753 echo $ECHO_N "(cached) $ECHO_C" >&6 4754 else 4755 cat >conftest.$ac_ext <<_ACEOF 4756 /* confdefs.h. */ 4757 _ACEOF 4758 cat confdefs.h >>conftest.$ac_ext 4759 cat >>conftest.$ac_ext <<_ACEOF 4760 /* end confdefs.h. */ 4761 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 4762 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4763 #define $ac_func innocuous_$ac_func 4764 4765 /* System header to define __stub macros and hopefully few prototypes, 4766 which can conflict with char $ac_func (); below. 4767 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4768 <limits.h> exists even on freestanding compilers. */ 4769 4770 #ifdef __STDC__ 4771 # include <limits.h> 4772 #else 4773 # include <assert.h> 4774 #endif 4775 4776 #undef $ac_func 4777 4778 /* Override any gcc2 internal prototype to avoid an error. */ 4779 #ifdef __cplusplus 4780 extern "C" 4781 { 4782 #endif 4783 /* We use char because int might match the return type of a gcc2 4784 builtin and then its argument prototype would still apply. */ 4785 char $ac_func (); 4786 /* The GNU C library defines this for functions which it implements 4787 to always fail with ENOSYS. Some functions are actually named 4788 something starting with __ and the normal name is an alias. */ 4789 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) 4790 choke me 4791 #else 4792 char (*f) () = $ac_func; 4793 #endif 4794 #ifdef __cplusplus 4795 } 4796 #endif 4797 4798 int 4799 main () 4800 { 4801 return f != $ac_func; 4802 ; 4803 return 0; 4804 } 4805 _ACEOF 4806 rm -f conftest.$ac_objext conftest$ac_exeext 4807 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4808 (eval $ac_link) 2>conftest.er1 4809 ac_status=$? 4810 grep -v '^ *+' conftest.er1 >conftest.err 4811 rm -f conftest.er1 4812 cat conftest.err >&5 4813 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4814 (exit $ac_status); } && 4815 { ac_try='test -z "$ac_c_werror_flag" 4816 || test ! -s conftest.err' 4817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4818 (eval $ac_try) 2>&5 4819 ac_status=$? 4820 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4821 (exit $ac_status); }; } && 4822 { ac_try='test -s conftest$ac_exeext' 4823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4824 (eval $ac_try) 2>&5 4825 ac_status=$? 4826 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4827 (exit $ac_status); }; }; then 4828 eval "$as_ac_var=yes" 4829 else 4830 echo "$as_me: failed program was:" >&5 4831 sed 's/^/| /' conftest.$ac_ext >&5 4832 4833 eval "$as_ac_var=no" 4834 fi 4835 rm -f conftest.err conftest.$ac_objext \ 4836 conftest$ac_exeext conftest.$ac_ext 4837 fi 4838 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 4839 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 4840 if test `eval echo '${'$as_ac_var'}'` = yes; then 4841 cat >>confdefs.h <<_ACEOF 4842 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 4843 _ACEOF 4844 4845 echo "$as_me:$LINENO: checking for _doprnt" >&5 4846 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6 4847 if test "${ac_cv_func__doprnt+set}" = set; then 4848 echo $ECHO_N "(cached) $ECHO_C" >&6 4849 else 4850 cat >conftest.$ac_ext <<_ACEOF 4851 /* confdefs.h. */ 4852 _ACEOF 4853 cat confdefs.h >>conftest.$ac_ext 4854 cat >>conftest.$ac_ext <<_ACEOF 4855 /* end confdefs.h. */ 4856 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt. 4857 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4858 #define _doprnt innocuous__doprnt 4859 4860 /* System header to define __stub macros and hopefully few prototypes, 4861 which can conflict with char _doprnt (); below. 4862 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4863 <limits.h> exists even on freestanding compilers. */ 4864 4865 #ifdef __STDC__ 4866 # include <limits.h> 4867 #else 4868 # include <assert.h> 4869 #endif 4870 4871 #undef _doprnt 4872 4873 /* Override any gcc2 internal prototype to avoid an error. */ 4874 #ifdef __cplusplus 4875 extern "C" 4876 { 4877 #endif 4878 /* We use char because int might match the return type of a gcc2 4879 builtin and then its argument prototype would still apply. */ 4880 char _doprnt (); 4881 /* The GNU C library defines this for functions which it implements 4882 to always fail with ENOSYS. Some functions are actually named 4883 something starting with __ and the normal name is an alias. */ 4884 #if defined (__stub__doprnt) || defined (__stub____doprnt) 4885 choke me 4886 #else 4887 char (*f) () = _doprnt; 4888 #endif 4889 #ifdef __cplusplus 4890 } 4891 #endif 4892 4893 int 4894 main () 4895 { 4896 return f != _doprnt; 4897 ; 4898 return 0; 4899 } 4900 _ACEOF 4901 rm -f conftest.$ac_objext conftest$ac_exeext 4902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4903 (eval $ac_link) 2>conftest.er1 4904 ac_status=$? 4905 grep -v '^ *+' conftest.er1 >conftest.err 4906 rm -f conftest.er1 4907 cat conftest.err >&5 4908 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4909 (exit $ac_status); } && 4910 { ac_try='test -z "$ac_c_werror_flag" 4911 || test ! -s conftest.err' 4912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4913 (eval $ac_try) 2>&5 4914 ac_status=$? 4915 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4916 (exit $ac_status); }; } && 4917 { ac_try='test -s conftest$ac_exeext' 4918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4919 (eval $ac_try) 2>&5 4920 ac_status=$? 4921 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4922 (exit $ac_status); }; }; then 4923 ac_cv_func__doprnt=yes 4924 else 4925 echo "$as_me: failed program was:" >&5 4926 sed 's/^/| /' conftest.$ac_ext >&5 4927 4928 ac_cv_func__doprnt=no 4929 fi 4930 rm -f conftest.err conftest.$ac_objext \ 4931 conftest$ac_exeext conftest.$ac_ext 4932 fi 4933 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 4934 echo "${ECHO_T}$ac_cv_func__doprnt" >&6 4935 if test $ac_cv_func__doprnt = yes; then 4936 4937 cat >>confdefs.h <<\_ACEOF 4938 #define HAVE_DOPRNT 1 4939 _ACEOF 4940 4941 fi 4942 4943 fi 4944 done 4945 4946 4947 4948 4949 4950 4951 4952 4953 4954 4955 4956 4957 4958 4959 4960 for ac_func in endpwent gethostbyaddr gethostbyname getpass memmove memset \ 4961 select socket strchr strdup strerror strstr poll 4962 do 4963 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 4964 echo "$as_me:$LINENO: checking for $ac_func" >&5 4965 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 4966 if eval "test \"\${$as_ac_var+set}\" = set"; then 4967 echo $ECHO_N "(cached) $ECHO_C" >&6 4968 else 4969 cat >conftest.$ac_ext <<_ACEOF 4970 /* confdefs.h. */ 4971 _ACEOF 4972 cat confdefs.h >>conftest.$ac_ext 4973 cat >>conftest.$ac_ext <<_ACEOF 4974 /* end confdefs.h. */ 4975 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 4976 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4977 #define $ac_func innocuous_$ac_func 4978 4979 /* System header to define __stub macros and hopefully few prototypes, 4980 which can conflict with char $ac_func (); below. 4981 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4982 <limits.h> exists even on freestanding compilers. */ 4983 4984 #ifdef __STDC__ 4985 # include <limits.h> 4986 #else 4987 # include <assert.h> 4988 #endif 4989 4990 #undef $ac_func 4991 4992 /* Override any gcc2 internal prototype to avoid an error. */ 4993 #ifdef __cplusplus 4994 extern "C" 4995 { 4996 #endif 4997 /* We use char because int might match the return type of a gcc2 4998 builtin and then its argument prototype would still apply. */ 4999 char $ac_func (); 5000 /* The GNU C library defines this for functions which it implements 5001 to always fail with ENOSYS. Some functions are actually named 5002 something starting with __ and the normal name is an alias. */ 5003 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) 5004 choke me 5005 #else 5006 char (*f) () = $ac_func; 5007 #endif 5008 #ifdef __cplusplus 5009 } 5010 #endif 5011 5012 int 5013 main () 5014 { 5015 return f != $ac_func; 5016 ; 5017 return 0; 5018 } 5019 _ACEOF 5020 rm -f conftest.$ac_objext conftest$ac_exeext 5021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5022 (eval $ac_link) 2>conftest.er1 5023 ac_status=$? 5024 grep -v '^ *+' conftest.er1 >conftest.err 5025 rm -f conftest.er1 5026 cat conftest.err >&5 5027 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5028 (exit $ac_status); } && 5029 { ac_try='test -z "$ac_c_werror_flag" 5030 || test ! -s conftest.err' 5031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5032 (eval $ac_try) 2>&5 5033 ac_status=$? 5034 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5035 (exit $ac_status); }; } && 5036 { ac_try='test -s conftest$ac_exeext' 5037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5038 (eval $ac_try) 2>&5 5039 ac_status=$? 5040 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5041 (exit $ac_status); }; }; then 5042 eval "$as_ac_var=yes" 5043 else 5044 echo "$as_me: failed program was:" >&5 5045 sed 's/^/| /' conftest.$ac_ext >&5 5046 5047 eval "$as_ac_var=no" 5048 fi 5049 rm -f conftest.err conftest.$ac_objext \ 5050 conftest$ac_exeext conftest.$ac_ext 5051 fi 5052 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 5053 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 5054 if test `eval echo '${'$as_ac_var'}'` = yes; then 5055 cat >>confdefs.h <<_ACEOF 5056 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 5057 _ACEOF 5058 5059 fi 5060 done 5061 5062 5063 ac_config_files="$ac_config_files Makefile libssh/Makefile" 5064 5065 cat >confcache <<\_ACEOF 5066 # This file is a shell script that caches the results of configure 5067 # tests run on this system so they can be shared between configure 5068 # scripts and configure runs, see configure's option --config-cache. 5069 # It is not useful on other systems. If it contains results you don't 5070 # want to keep, you may remove or edit it. 5071 # 5072 # config.status only pays attention to the cache file if you give it 5073 # the --recheck option to rerun configure. 5074 # 5075 # `ac_cv_env_foo' variables (set or unset) will be overridden when 5076 # loading this file, other *unset* `ac_cv_foo' will be assigned the 5077 # following values. 5078 5079 _ACEOF 5080 5081 # The following way of writing the cache mishandles newlines in values, 5082 # but we know of no workaround that is simple, portable, and efficient. 5083 # So, don't put newlines in cache variables' values. 5084 # Ultrix sh set writes to stderr and can't be redirected directly, 5085 # and sets the high bit in the cache file unless we assign to the vars. 5086 { 5087 (set) 2>&1 | 5088 case `(ac_space=' '; set | grep ac_space) 2>&1` in 5089 *ac_space=\ *) 5090 # `set' does not quote correctly, so add quotes (double-quote 5091 # substitution turns \\\\ into \\, and sed turns \\ into \). 5092 sed -n \ 5093 "s/'/'\\\\''/g; 5094 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 5095 ;; 5096 *) 5097 # `set' quotes correctly as required by POSIX, so do not add quotes. 5098 sed -n \ 5099 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 5100 ;; 5101 esac; 5102 } | 5103 sed ' 5104 t clear 5105 : clear 5106 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 5107 t end 5108 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 5109 : end' >>confcache 5110 if diff $cache_file confcache >/dev/null 2>&1; then :; else 5111 if test -w $cache_file; then 5112 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 5113 cat confcache >$cache_file 5114 else 5115 echo "not updating unwritable cache $cache_file" 5116 fi 5117 fi 5118 rm -f confcache 5119 5120 test "x$prefix" = xNONE && prefix=$ac_default_prefix 5121 # Let make expand exec_prefix. 5122 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 5123 5124 # VPATH may cause trouble with some makes, so we remove $(srcdir), 5125 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 5126 # trailing colons and then remove the whole line if VPATH becomes empty 5127 # (actually we leave an empty line to preserve line numbers). 5128 if test "x$srcdir" = x.; then 5129 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 5130 s/:*\$(srcdir):*/:/; 5131 s/:*\${srcdir}:*/:/; 5132 s/:*@srcdir@:*/:/; 5133 s/^\([^=]*=[ ]*\):*/\1/; 5134 s/:*$//; 5135 s/^[^=]*=[ ]*$//; 5136 }' 5137 fi 5138 5139 DEFS=-DHAVE_CONFIG_H 5140 5141 ac_libobjs= 5142 ac_ltlibobjs= 5143 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 5144 # 1. Remove the extension, and $U if already installed. 5145 ac_i=`echo "$ac_i" | 5146 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 5147 # 2. Add them. 5148 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 5149 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 5150 done 5151 LIBOBJS=$ac_libobjs 5152 5153 LTLIBOBJS=$ac_ltlibobjs 5154 5155 5156 5157 : ${CONFIG_STATUS=./config.status} 5158 ac_clean_files_save=$ac_clean_files 5159 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 5160 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 5161 echo "$as_me: creating $CONFIG_STATUS" >&6;} 5162 cat >$CONFIG_STATUS <<_ACEOF 5163 #! $SHELL 5164 # Generated by $as_me. 5165 # Run this file to recreate the current configuration. 5166 # Compiler output produced by configure, useful for debugging 5167 # configure, is in config.log if it exists. 5168 5169 debug=false 5170 ac_cs_recheck=false 5171 ac_cs_silent=false 5172 SHELL=\${CONFIG_SHELL-$SHELL} 5173 _ACEOF 5174 5175 cat >>$CONFIG_STATUS <<\_ACEOF 5176 ## --------------------- ## 5177 ## M4sh Initialization. ## 5178 ## --------------------- ## 5179 5180 # Be Bourne compatible 5181 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 5182 emulate sh 5183 NULLCMD=: 5184 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 5185 # is contrary to our usage. Disable this feature. 5186 alias -g '${1+"$@"}'='"$@"' 5187 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 5188 set -o posix 5189 fi 5190 DUALCASE=1; export DUALCASE # for MKS sh 5191 5192 # Support unset when possible. 5193 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5194 as_unset=unset 5195 else 5196 as_unset=false 5197 fi 5198 5199 5200 # Work around bugs in pre-3.0 UWIN ksh. 5201 $as_unset ENV MAIL MAILPATH 5202 PS1='$ ' 5203 PS2='> ' 5204 PS4='+ ' 5205 5206 # NLS nuisances. 5207 for as_var in \ 5208 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 5209 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 5210 LC_TELEPHONE LC_TIME 5211 do 5212 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 5213 eval $as_var=C; export $as_var 5214 else 5215 $as_unset $as_var 5216 fi 5217 done 5218 5219 # Required to use basename. 5220 if expr a : '\(a\)' >/dev/null 2>&1; then 5221 as_expr=expr 5222 else 5223 as_expr=false 5224 fi 5225 5226 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 5227 as_basename=basename 5228 else 5229 as_basename=false 5230 fi 5231 5232 5233 # Name of the executable. 5234 as_me=`$as_basename "$0" || 5235 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 5236 X"$0" : 'X\(//\)$' \| \ 5237 X"$0" : 'X\(/\)$' \| \ 5238 . : '\(.\)' 2>/dev/null || 5239 echo X/"$0" | 5240 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 5241 /^X\/\(\/\/\)$/{ s//\1/; q; } 5242 /^X\/\(\/\).*/{ s//\1/; q; } 5243 s/.*/./; q'` 5244 5245 5246 # PATH needs CR, and LINENO needs CR and PATH. 5247 # Avoid depending upon Character Ranges. 5248 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 5249 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 5250 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 5251 as_cr_digits='0123456789' 5252 as_cr_alnum=$as_cr_Letters$as_cr_digits 5253 5254 # The user is always right. 5255 if test "${PATH_SEPARATOR+set}" != set; then 5256 echo "#! /bin/sh" >conf$$.sh 5257 echo "exit 0" >>conf$$.sh 5258 chmod +x conf$$.sh 5259 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 5260 PATH_SEPARATOR=';' 5261 else 5262 PATH_SEPARATOR=: 5263 fi 5264 rm -f conf$$.sh 5265 fi 5266 5267 5268 as_lineno_1=$LINENO 5269 as_lineno_2=$LINENO 5270 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 5271 test "x$as_lineno_1" != "x$as_lineno_2" && 5272 test "x$as_lineno_3" = "x$as_lineno_2" || { 5273 # Find who we are. Look in the path if we contain no path at all 5274 # relative or not. 5275 case $0 in 5276 *[\\/]* ) as_myself=$0 ;; 5277 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5278 for as_dir in $PATH 5279 do 5280 IFS=$as_save_IFS 5281 test -z "$as_dir" && as_dir=. 5282 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 5283 done 5284 5285 ;; 5286 esac 5287 # We did not find ourselves, most probably we were run as `sh COMMAND' 5288 # in which case we are not to be found in the path. 5289 if test "x$as_myself" = x; then 5290 as_myself=$0 5291 fi 5292 if test ! -f "$as_myself"; then 5293 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 5294 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 5295 { (exit 1); exit 1; }; } 5296 fi 5297 case $CONFIG_SHELL in 5298 '') 5299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5300 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 5301 do 5302 IFS=$as_save_IFS 5303 test -z "$as_dir" && as_dir=. 5304 for as_base in sh bash ksh sh5; do 5305 case $as_dir in 5306 /*) 5307 if ("$as_dir/$as_base" -c ' 5308 as_lineno_1=$LINENO 5309 as_lineno_2=$LINENO 5310 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 5311 test "x$as_lineno_1" != "x$as_lineno_2" && 5312 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 5313 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 5314 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 5315 CONFIG_SHELL=$as_dir/$as_base 5316 export CONFIG_SHELL 5317 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 5318 fi;; 5319 esac 5320 done 5321 done 5322 ;; 5323 esac 5324 5325 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 5326 # uniformly replaced by the line number. The first 'sed' inserts a 5327 # line-number line before each line; the second 'sed' does the real 5328 # work. The second script uses 'N' to pair each line-number line 5329 # with the numbered line, and appends trailing '-' during 5330 # substitution so that $LINENO is not a special case at line end. 5331 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 5332 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 5333 sed '=' <$as_myself | 5334 sed ' 5335 N 5336 s,$,-, 5337 : loop 5338 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 5339 t loop 5340 s,-$,, 5341 s,^['$as_cr_digits']*\n,, 5342 ' >$as_me.lineno && 5343 chmod +x $as_me.lineno || 5344 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 5345 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 5346 { (exit 1); exit 1; }; } 5347 5348 # Don't try to exec as it changes $[0], causing all sort of problems 5349 # (the dirname of $[0] is not the place where we might find the 5350 # original and so on. Autoconf is especially sensible to this). 5351 . ./$as_me.lineno 5352 # Exit status is that of the last command. 5353 exit 5354 } 5355 5356 5357 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 5358 *c*,-n*) ECHO_N= ECHO_C=' 5359 ' ECHO_T=' ' ;; 5360 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 5361 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 5362 esac 5363 5364 if expr a : '\(a\)' >/dev/null 2>&1; then 5365 as_expr=expr 5366 else 5367 as_expr=false 5368 fi 5369 5370 rm -f conf$$ conf$$.exe conf$$.file 5371 echo >conf$$.file 5372 if ln -s conf$$.file conf$$ 2>/dev/null; then 5373 # We could just check for DJGPP; but this test a) works b) is more generic 5374 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 5375 if test -f conf$$.exe; then 5376 # Don't use ln at all; we don't have any links 5377 as_ln_s='cp -p' 5378 else 5379 as_ln_s='ln -s' 5380 fi 5381 elif ln conf$$.file conf$$ 2>/dev/null; then 5382 as_ln_s=ln 5383 else 5384 as_ln_s='cp -p' 5385 fi 5386 rm -f conf$$ conf$$.exe conf$$.file 5387 5388 if mkdir -p . 2>/dev/null; then 5389 as_mkdir_p=: 5390 else 5391 test -d ./-p && rmdir ./-p 5392 as_mkdir_p=false 5393 fi 5394 5395 as_executable_p="test -f" 5396 5397 # Sed expression to map a string onto a valid CPP name. 5398 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 5399 5400 # Sed expression to map a string onto a valid variable name. 5401 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 5402 5403 5404 # IFS 5405 # We need space, tab and new line, in precisely that order. 5406 as_nl=' 5407 ' 5408 IFS=" $as_nl" 5409 5410 # CDPATH. 5411 $as_unset CDPATH 5412 5413 exec 6>&1 5414 5415 # Open the log real soon, to keep \$[0] and so on meaningful, and to 5416 # report actual input values of CONFIG_FILES etc. instead of their 5417 # values after options handling. Logging --version etc. is OK. 5418 exec 5>>config.log 5419 { 5420 echo 5421 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 5422 ## Running $as_me. ## 5423 _ASBOX 5424 } >&5 5425 cat >&5 <<_CSEOF 5426 5427 This file was extended by libssh $as_me 0.11-dev , which was 5428 generated by GNU Autoconf 2.59. Invocation command line was 5429 5430 CONFIG_FILES = $CONFIG_FILES 5431 CONFIG_HEADERS = $CONFIG_HEADERS 5432 CONFIG_LINKS = $CONFIG_LINKS 5433 CONFIG_COMMANDS = $CONFIG_COMMANDS 5434 $ $0 $@ 5435 5436 _CSEOF 5437 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 5438 echo >&5 5439 _ACEOF 5440 5441 # Files that config.status was made for. 5442 if test -n "$ac_config_files"; then 5443 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 5444 fi 5445 5446 if test -n "$ac_config_headers"; then 5447 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 5448 fi 5449 5450 if test -n "$ac_config_links"; then 5451 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 5452 fi 5453 5454 if test -n "$ac_config_commands"; then 5455 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 5456 fi 5457 5458 cat >>$CONFIG_STATUS <<\_ACEOF 5459 5460 ac_cs_usage="\ 5461 \`$as_me' instantiates files from templates according to the 5462 current configuration. 5463 5464 Usage: $0 [OPTIONS] [FILE]... 5465 5466 -h, --help print this help, then exit 5467 -V, --version print version number, then exit 5468 -q, --quiet do not print progress messages 5469 -d, --debug don't remove temporary files 5470 --recheck update $as_me by reconfiguring in the same conditions 5471 --file=FILE[:TEMPLATE] 5472 instantiate the configuration file FILE 5473 --header=FILE[:TEMPLATE] 5474 instantiate the configuration header FILE 5475 5476 Configuration files: 5477 $config_files 5478 5479 Configuration headers: 5480 $config_headers 5481 5482 Report bugs to <bug-autoconf@gnu.org>." 5483 _ACEOF 5484 5485 cat >>$CONFIG_STATUS <<_ACEOF 5486 ac_cs_version="\\ 5487 libssh config.status 0.11-dev 5488 configured by $0, generated by GNU Autoconf 2.59, 5489 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 5490 5491 Copyright (C) 2003 Free Software Foundation, Inc. 5492 This config.status script is free software; the Free Software Foundation 5493 gives unlimited permission to copy, distribute and modify it." 5494 srcdir=$srcdir 5495 INSTALL="$INSTALL" 5496 _ACEOF 5497 5498 cat >>$CONFIG_STATUS <<\_ACEOF 5499 # If no file are specified by the user, then we need to provide default 5500 # value. By we need to know if files were specified by the user. 5501 ac_need_defaults=: 5502 while test $# != 0 5503 do 5504 case $1 in 5505 --*=*) 5506 ac_option=`expr "x$1" : 'x\([^=]*\)='` 5507 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 5508 ac_shift=: 5509 ;; 5510 -*) 5511 ac_option=$1 5512 ac_optarg=$2 5513 ac_shift=shift 5514 ;; 5515 *) # This is not an option, so the user has probably given explicit 5516 # arguments. 5517 ac_option=$1 5518 ac_need_defaults=false;; 5519 esac 5520 5521 case $ac_option in 5522 # Handling of the options. 5523 _ACEOF 5524 cat >>$CONFIG_STATUS <<\_ACEOF 5525 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 5526 ac_cs_recheck=: ;; 5527 --version | --vers* | -V ) 5528 echo "$ac_cs_version"; exit 0 ;; 5529 --he | --h) 5530 # Conflict between --help and --header 5531 { { echo "$as_me:$LINENO: error: ambiguous option: $1 5532 Try \`$0 --help' for more information." >&5 5533 echo "$as_me: error: ambiguous option: $1 5534 Try \`$0 --help' for more information." >&2;} 5535 { (exit 1); exit 1; }; };; 5536 --help | --hel | -h ) 5537 echo "$ac_cs_usage"; exit 0 ;; 5538 --debug | --d* | -d ) 5539 debug=: ;; 5540 --file | --fil | --fi | --f ) 5541 $ac_shift 5542 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 5543 ac_need_defaults=false;; 5544 --header | --heade | --head | --hea ) 5545 $ac_shift 5546 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 5547 ac_need_defaults=false;; 5548 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 5549 | -silent | --silent | --silen | --sile | --sil | --si | --s) 5550 ac_cs_silent=: ;; 5551 5552 # This is an error. 5553 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 5554 Try \`$0 --help' for more information." >&5 5555 echo "$as_me: error: unrecognized option: $1 5556 Try \`$0 --help' for more information." >&2;} 5557 { (exit 1); exit 1; }; } ;; 5558 5559 *) ac_config_targets="$ac_config_targets $1" ;; 5560 5561 esac 5562 shift 5563 done 5564 5565 ac_configure_extra_args= 5566 5567 if $ac_cs_silent; then 5568 exec 6>/dev/null 5569 ac_configure_extra_args="$ac_configure_extra_args --silent" 5570 fi 5571 5572 _ACEOF 5573 cat >>$CONFIG_STATUS <<_ACEOF 5574 if \$ac_cs_recheck; then 5575 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 5576 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 5577 fi 5578 5579 _ACEOF 5580 5581 5582 5583 5584 5585 cat >>$CONFIG_STATUS <<\_ACEOF 5586 for ac_config_target in $ac_config_targets 5587 do 5588 case "$ac_config_target" in 5589 # Handling of arguments. 5590 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 5591 "libssh/Makefile" ) CONFIG_FILES="$CONFIG_FILES libssh/Makefile" ;; 5592 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 5593 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 5594 echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 5595 { (exit 1); exit 1; }; };; 5596 esac 5597 done 5598 5599 # If the user did not use the arguments to specify the items to instantiate, 5600 # then the envvar interface is used. Set only those that are not. 5601 # We use the long form for the default assignment because of an extremely 5602 # bizarre bug on SunOS 4.1.3. 5603 if $ac_need_defaults; then 5604 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 5605 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 5606 fi 5607 5608 # Have a temporary directory for convenience. Make it in the build tree 5609 # simply because there is no reason to put it here, and in addition, 5610 # creating and moving files from /tmp can sometimes cause problems. 5611 # Create a temporary directory, and hook for its removal unless debugging. 5612 $debug || 5613 { 5614 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 5615 trap '{ (exit 1); exit 1; }' 1 2 13 15 5616 } 5617 5618 # Create a (secure) tmp directory for tmp files. 5619 5620 { 5621 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 5622 test -n "$tmp" && test -d "$tmp" 5623 } || 5624 { 5625 tmp=./confstat$$-$RANDOM 5626 (umask 077 && mkdir $tmp) 5627 } || 5628 { 5629 echo "$me: cannot create a temporary directory in ." >&2 5630 { (exit 1); exit 1; } 5631 } 5632 5633 _ACEOF 5634 5635 cat >>$CONFIG_STATUS <<_ACEOF 5636 5637 # 5638 # CONFIG_FILES section. 5639 # 5640 5641 # No need to generate the scripts if there are no CONFIG_FILES. 5642 # This happens for instance when ./config.status config.h 5643 if test -n "\$CONFIG_FILES"; then 5644 # Protect against being on the right side of a sed subst in config.status. 5645 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 5646 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 5647 s,@SHELL@,$SHELL,;t t 5648 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 5649 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 5650 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 5651 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 5652 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 5653 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 5654 s,@exec_prefix@,$exec_prefix,;t t 5655 s,@prefix@,$prefix,;t t 5656 s,@program_transform_name@,$program_transform_name,;t t 5657 s,@bindir@,$bindir,;t t 5658 s,@sbindir@,$sbindir,;t t 5659 s,@libexecdir@,$libexecdir,;t t 5660 s,@datadir@,$datadir,;t t 5661 s,@sysconfdir@,$sysconfdir,;t t 5662 s,@sharedstatedir@,$sharedstatedir,;t t 5663 s,@localstatedir@,$localstatedir,;t t 5664 s,@libdir@,$libdir,;t t 5665 s,@includedir@,$includedir,;t t 5666 s,@oldincludedir@,$oldincludedir,;t t 5667 s,@infodir@,$infodir,;t t 5668 s,@mandir@,$mandir,;t t 5669 s,@build_alias@,$build_alias,;t t 5670 s,@host_alias@,$host_alias,;t t 5671 s,@target_alias@,$target_alias,;t t 5672 s,@DEFS@,$DEFS,;t t 5673 s,@ECHO_C@,$ECHO_C,;t t 5674 s,@ECHO_N@,$ECHO_N,;t t 5675 s,@ECHO_T@,$ECHO_T,;t t 5676 s,@LIBS@,$LIBS,;t t 5677 s,@build@,$build,;t t 5678 s,@build_cpu@,$build_cpu,;t t 5679 s,@build_vendor@,$build_vendor,;t t 5680 s,@build_os@,$build_os,;t t 5681 s,@host@,$host,;t t 5682 s,@host_cpu@,$host_cpu,;t t 5683 s,@host_vendor@,$host_vendor,;t t 5684 s,@host_os@,$host_os,;t t 5685 s,@DYLIB_EXTENSION@,$DYLIB_EXTENSION,;t t 5686 s,@LIBSSH_LDFLAGS@,$LIBSSH_LDFLAGS,;t t 5687 s,@CC@,$CC,;t t 5688 s,@CFLAGS@,$CFLAGS,;t t 5689 s,@LDFLAGS@,$LDFLAGS,;t t 5690 s,@CPPFLAGS@,$CPPFLAGS,;t t 5691 s,@ac_ct_CC@,$ac_ct_CC,;t t 5692 s,@EXEEXT@,$EXEEXT,;t t 5693 s,@OBJEXT@,$OBJEXT,;t t 5694 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 5695 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 5696 s,@INSTALL_DATA@,$INSTALL_DATA,;t t 5697 s,@LN_S@,$LN_S,;t t 5698 s,@SET_MAKE@,$SET_MAKE,;t t 5699 s,@RANLIB@,$RANLIB,;t t 5700 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 5701 s,@CPP@,$CPP,;t t 5702 s,@EGREP@,$EGREP,;t t 5703 s,@LIBOBJS@,$LIBOBJS,;t t 5704 s,@LTLIBOBJS@,$LTLIBOBJS,;t t 5705 CEOF 5706 5707 _ACEOF 5708 5709 cat >>$CONFIG_STATUS <<\_ACEOF 5710 # Split the substitutions into bite-sized pieces for seds with 5711 # small command number limits, like on Digital OSF/1 and HP-UX. 5712 ac_max_sed_lines=48 5713 ac_sed_frag=1 # Number of current file. 5714 ac_beg=1 # First line for current file. 5715 ac_end=$ac_max_sed_lines # Line after last line for current file. 5716 ac_more_lines=: 5717 ac_sed_cmds= 5718 while $ac_more_lines; do 5719 if test $ac_beg -gt 1; then 5720 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 5721 else 5722 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 5723 fi 5724 if test ! -s $tmp/subs.frag; then 5725 ac_more_lines=false 5726 else 5727 # The purpose of the label and of the branching condition is to 5728 # speed up the sed processing (if there are no `@' at all, there 5729 # is no need to browse any of the substitutions). 5730 # These are the two extra sed commands mentioned above. 5731 (echo ':t 5732 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 5733 if test -z "$ac_sed_cmds"; then 5734 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 5735 else 5736 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 5737 fi 5738 ac_sed_frag=`expr $ac_sed_frag + 1` 5739 ac_beg=$ac_end 5740 ac_end=`expr $ac_end + $ac_max_sed_lines` 5741 fi 5742 done 5743 if test -z "$ac_sed_cmds"; then 5744 ac_sed_cmds=cat 5745 fi 5746 fi # test -n "$CONFIG_FILES" 5747 5748 _ACEOF 5749 cat >>$CONFIG_STATUS <<\_ACEOF 5750 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 5751 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 5752 case $ac_file in 5753 - | *:- | *:-:* ) # input from stdin 5754 cat >$tmp/stdin 5755 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 5756 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 5757 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 5758 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 5759 * ) ac_file_in=$ac_file.in ;; 5760 esac 5761 5762 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 5763 ac_dir=`(dirname "$ac_file") 2>/dev/null || 5764 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 5765 X"$ac_file" : 'X\(//\)[^/]' \| \ 5766 X"$ac_file" : 'X\(//\)$' \| \ 5767 X"$ac_file" : 'X\(/\)' \| \ 5768 . : '\(.\)' 2>/dev/null || 5769 echo X"$ac_file" | 5770 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 5771 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 5772 /^X\(\/\/\)$/{ s//\1/; q; } 5773 /^X\(\/\).*/{ s//\1/; q; } 5774 s/.*/./; q'` 5775 { if $as_mkdir_p; then 5776 mkdir -p "$ac_dir" 5777 else 5778 as_dir="$ac_dir" 5779 as_dirs= 5780 while test ! -d "$as_dir"; do 5781 as_dirs="$as_dir $as_dirs" 5782 as_dir=`(dirname "$as_dir") 2>/dev/null || 5783 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 5784 X"$as_dir" : 'X\(//\)[^/]' \| \ 5785 X"$as_dir" : 'X\(//\)$' \| \ 5786 X"$as_dir" : 'X\(/\)' \| \ 5787 . : '\(.\)' 2>/dev/null || 5788 echo X"$as_dir" | 5789 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 5790 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 5791 /^X\(\/\/\)$/{ s//\1/; q; } 5792 /^X\(\/\).*/{ s//\1/; q; } 5793 s/.*/./; q'` 5794 done 5795 test ! -n "$as_dirs" || mkdir $as_dirs 5796 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 5797 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 5798 { (exit 1); exit 1; }; }; } 5799 5800 ac_builddir=. 5801 5802 if test "$ac_dir" != .; then 5803 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 5804 # A "../" for each directory in $ac_dir_suffix. 5805 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 5806 else 5807 ac_dir_suffix= ac_top_builddir= 5808 fi 5809 5810 case $srcdir in 5811 .) # No --srcdir option. We are building in place. 5812 ac_srcdir=. 5813 if test -z "$ac_top_builddir"; then 5814 ac_top_srcdir=. 5815 else 5816 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 5817 fi ;; 5818 [\\/]* | ?:[\\/]* ) # Absolute path. 5819 ac_srcdir=$srcdir$ac_dir_suffix; 5820 ac_top_srcdir=$srcdir ;; 5821 *) # Relative path. 5822 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 5823 ac_top_srcdir=$ac_top_builddir$srcdir ;; 5824 esac 5825 5826 # Do not use `cd foo && pwd` to compute absolute paths, because 5827 # the directories may not exist. 5828 case `pwd` in 5829 .) ac_abs_builddir="$ac_dir";; 5830 *) 5831 case "$ac_dir" in 5832 .) ac_abs_builddir=`pwd`;; 5833 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 5834 *) ac_abs_builddir=`pwd`/"$ac_dir";; 5835 esac;; 5836 esac 5837 case $ac_abs_builddir in 5838 .) ac_abs_top_builddir=${ac_top_builddir}.;; 5839 *) 5840 case ${ac_top_builddir}. in 5841 .) ac_abs_top_builddir=$ac_abs_builddir;; 5842 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 5843 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 5844 esac;; 5845 esac 5846 case $ac_abs_builddir in 5847 .) ac_abs_srcdir=$ac_srcdir;; 5848 *) 5849 case $ac_srcdir in 5850 .) ac_abs_srcdir=$ac_abs_builddir;; 5851 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 5852 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 5853 esac;; 5854 esac 5855 case $ac_abs_builddir in 5856 .) ac_abs_top_srcdir=$ac_top_srcdir;; 5857 *) 5858 case $ac_top_srcdir in 5859 .) ac_abs_top_srcdir=$ac_abs_builddir;; 5860 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 5861 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 5862 esac;; 5863 esac 5864 5865 5866 case $INSTALL in 5867 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 5868 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 5869 esac 5870 5871 if test x"$ac_file" != x-; then 5872 { echo "$as_me:$LINENO: creating $ac_file" >&5 5873 echo "$as_me: creating $ac_file" >&6;} 5874 rm -f "$ac_file" 5875 fi 5876 # Let's still pretend it is `configure' which instantiates (i.e., don't 5877 # use $as_me), people would be surprised to read: 5878 # /* config.h. Generated by config.status. */ 5879 if test x"$ac_file" = x-; then 5880 configure_input= 5881 else 5882 configure_input="$ac_file. " 5883 fi 5884 configure_input=$configure_input"Generated from `echo $ac_file_in | 5885 sed 's,.*/,,'` by configure." 5886 5887 # First look for the input files in the build tree, otherwise in the 5888 # src tree. 5889 ac_file_inputs=`IFS=: 5890 for f in $ac_file_in; do 5891 case $f in 5892 -) echo $tmp/stdin ;; 5893 [\\/$]*) 5894 # Absolute (can't be DOS-style, as IFS=:) 5895 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 5896 echo "$as_me: error: cannot find input file: $f" >&2;} 5897 { (exit 1); exit 1; }; } 5898 echo "$f";; 5899 *) # Relative 5900 if test -f "$f"; then 5901 # Build tree 5902 echo "$f" 5903 elif test -f "$srcdir/$f"; then 5904 # Source tree 5905 echo "$srcdir/$f" 5906 else 5907 # /dev/null tree 5908 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 5909 echo "$as_me: error: cannot find input file: $f" >&2;} 5910 { (exit 1); exit 1; }; } 5911 fi;; 5912 esac 5913 done` || { (exit 1); exit 1; } 5914 _ACEOF 5915 cat >>$CONFIG_STATUS <<_ACEOF 5916 sed "$ac_vpsub 5917 $extrasub 5918 _ACEOF 5919 cat >>$CONFIG_STATUS <<\_ACEOF 5920 :t 5921 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 5922 s,@configure_input@,$configure_input,;t t 5923 s,@srcdir@,$ac_srcdir,;t t 5924 s,@abs_srcdir@,$ac_abs_srcdir,;t t 5925 s,@top_srcdir@,$ac_top_srcdir,;t t 5926 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 5927 s,@builddir@,$ac_builddir,;t t 5928 s,@abs_builddir@,$ac_abs_builddir,;t t 5929 s,@top_builddir@,$ac_top_builddir,;t t 5930 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 5931 s,@INSTALL@,$ac_INSTALL,;t t 5932 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 5933 rm -f $tmp/stdin 5934 if test x"$ac_file" != x-; then 5935 mv $tmp/out $ac_file 5936 else 5937 cat $tmp/out 5938 rm -f $tmp/out 5939 fi 5940 5941 done 5942 _ACEOF 5943 cat >>$CONFIG_STATUS <<\_ACEOF 5944 5945 # 5946 # CONFIG_HEADER section. 5947 # 5948 5949 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 5950 # NAME is the cpp macro being defined and VALUE is the value it is being given. 5951 # 5952 # ac_d sets the value in "#define NAME VALUE" lines. 5953 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 5954 ac_dB='[ ].*$,\1#\2' 5955 ac_dC=' ' 5956 ac_dD=',;t' 5957 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 5958 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 5959 ac_uB='$,\1#\2define\3' 5960 ac_uC=' ' 5961 ac_uD=',;t' 5962 5963 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 5964 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 5965 case $ac_file in 5966 - | *:- | *:-:* ) # input from stdin 5967 cat >$tmp/stdin 5968 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 5969 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 5970 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 5971 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 5972 * ) ac_file_in=$ac_file.in ;; 5973 esac 5974 5975 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 5976 echo "$as_me: creating $ac_file" >&6;} 5977 5978 # First look for the input files in the build tree, otherwise in the 5979 # src tree. 5980 ac_file_inputs=`IFS=: 5981 for f in $ac_file_in; do 5982 case $f in 5983 -) echo $tmp/stdin ;; 5984 [\\/$]*) 5985 # Absolute (can't be DOS-style, as IFS=:) 5986 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 5987 echo "$as_me: error: cannot find input file: $f" >&2;} 5988 { (exit 1); exit 1; }; } 5989 # Do quote $f, to prevent DOS paths from being IFS'd. 5990 echo "$f";; 5991 *) # Relative 5992 if test -f "$f"; then 5993 # Build tree 5994 echo "$f" 5995 elif test -f "$srcdir/$f"; then 5996 # Source tree 5997 echo "$srcdir/$f" 5998 else 5999 # /dev/null tree 6000 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 6001 echo "$as_me: error: cannot find input file: $f" >&2;} 6002 { (exit 1); exit 1; }; } 6003 fi;; 6004 esac 6005 done` || { (exit 1); exit 1; } 6006 # Remove the trailing spaces. 6007 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 6008 6009 _ACEOF 6010 6011 # Transform confdefs.h into two sed scripts, `conftest.defines' and 6012 # `conftest.undefs', that substitutes the proper values into 6013 # config.h.in to produce config.h. The first handles `#define' 6014 # templates, and the second `#undef' templates. 6015 # And first: Protect against being on the right side of a sed subst in 6016 # config.status. Protect against being in an unquoted here document 6017 # in config.status. 6018 rm -f conftest.defines conftest.undefs 6019 # Using a here document instead of a string reduces the quoting nightmare. 6020 # Putting comments in sed scripts is not portable. 6021 # 6022 # `end' is used to avoid that the second main sed command (meant for 6023 # 0-ary CPP macros) applies to n-ary macro definitions. 6024 # See the Autoconf documentation for `clear'. 6025 cat >confdef2sed.sed <<\_ACEOF 6026 s/[\\&,]/\\&/g 6027 s,[\\$`],\\&,g 6028 t clear 6029 : clear 6030 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp 6031 t end 6032 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 6033 : end 6034 _ACEOF 6035 # If some macros were called several times there might be several times 6036 # the same #defines, which is useless. Nevertheless, we may not want to 6037 # sort them, since we want the *last* AC-DEFINE to be honored. 6038 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 6039 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 6040 rm -f confdef2sed.sed 6041 6042 # This sed command replaces #undef with comments. This is necessary, for 6043 # example, in the case of _POSIX_SOURCE, which is predefined and required 6044 # on some systems where configure will not decide to define it. 6045 cat >>conftest.undefs <<\_ACEOF 6046 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 6047 _ACEOF 6048 6049 # Break up conftest.defines because some shells have a limit on the size 6050 # of here documents, and old seds have small limits too (100 cmds). 6051 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 6052 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 6053 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 6054 echo ' :' >>$CONFIG_STATUS 6055 rm -f conftest.tail 6056 while grep . conftest.defines >/dev/null 6057 do 6058 # Write a limited-size here document to $tmp/defines.sed. 6059 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 6060 # Speed up: don't consider the non `#define' lines. 6061 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 6062 # Work around the forget-to-reset-the-flag bug. 6063 echo 't clr' >>$CONFIG_STATUS 6064 echo ': clr' >>$CONFIG_STATUS 6065 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 6066 echo 'CEOF 6067 sed -f $tmp/defines.sed $tmp/in >$tmp/out 6068 rm -f $tmp/in 6069 mv $tmp/out $tmp/in 6070 ' >>$CONFIG_STATUS 6071 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 6072 rm -f conftest.defines 6073 mv conftest.tail conftest.defines 6074 done 6075 rm -f conftest.defines 6076 echo ' fi # grep' >>$CONFIG_STATUS 6077 echo >>$CONFIG_STATUS 6078 6079 # Break up conftest.undefs because some shells have a limit on the size 6080 # of here documents, and old seds have small limits too (100 cmds). 6081 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 6082 rm -f conftest.tail 6083 while grep . conftest.undefs >/dev/null 6084 do 6085 # Write a limited-size here document to $tmp/undefs.sed. 6086 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 6087 # Speed up: don't consider the non `#undef' 6088 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 6089 # Work around the forget-to-reset-the-flag bug. 6090 echo 't clr' >>$CONFIG_STATUS 6091 echo ': clr' >>$CONFIG_STATUS 6092 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 6093 echo 'CEOF 6094 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 6095 rm -f $tmp/in 6096 mv $tmp/out $tmp/in 6097 ' >>$CONFIG_STATUS 6098 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 6099 rm -f conftest.undefs 6100 mv conftest.tail conftest.undefs 6101 done 6102 rm -f conftest.undefs 6103 6104 cat >>$CONFIG_STATUS <<\_ACEOF 6105 # Let's still pretend it is `configure' which instantiates (i.e., don't 6106 # use $as_me), people would be surprised to read: 6107 # /* config.h. Generated by config.status. */ 6108 if test x"$ac_file" = x-; then 6109 echo "/* Generated by configure. */" >$tmp/config.h 6110 else 6111 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h 6112 fi 6113 cat $tmp/in >>$tmp/config.h 6114 rm -f $tmp/in 6115 if test x"$ac_file" != x-; then 6116 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then 6117 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 6118 echo "$as_me: $ac_file is unchanged" >&6;} 6119 else 6120 ac_dir=`(dirname "$ac_file") 2>/dev/null || 6121 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 6122 X"$ac_file" : 'X\(//\)[^/]' \| \ 6123 X"$ac_file" : 'X\(//\)$' \| \ 6124 X"$ac_file" : 'X\(/\)' \| \ 6125 . : '\(.\)' 2>/dev/null || 6126 echo X"$ac_file" | 6127 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 6128 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 6129 /^X\(\/\/\)$/{ s//\1/; q; } 6130 /^X\(\/\).*/{ s//\1/; q; } 6131 s/.*/./; q'` 6132 { if $as_mkdir_p; then 6133 mkdir -p "$ac_dir" 6134 else 6135 as_dir="$ac_dir" 6136 as_dirs= 6137 while test ! -d "$as_dir"; do 6138 as_dirs="$as_dir $as_dirs" 6139 as_dir=`(dirname "$as_dir") 2>/dev/null || 6140 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 6141 X"$as_dir" : 'X\(//\)[^/]' \| \ 6142 X"$as_dir" : 'X\(//\)$' \| \ 6143 X"$as_dir" : 'X\(/\)' \| \ 6144 . : '\(.\)' 2>/dev/null || 6145 echo X"$as_dir" | 6146 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 6147 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 6148 /^X\(\/\/\)$/{ s//\1/; q; } 6149 /^X\(\/\).*/{ s//\1/; q; } 6150 s/.*/./; q'` 6151 done 6152 test ! -n "$as_dirs" || mkdir $as_dirs 6153 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 6154 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 6155 { (exit 1); exit 1; }; }; } 6156 6157 rm -f $ac_file 6158 mv $tmp/config.h $ac_file 6159 fi 6160 else 6161 cat $tmp/config.h 6162 rm -f $tmp/config.h 6163 fi 6164 done 6165 _ACEOF 6166 6167 cat >>$CONFIG_STATUS <<\_ACEOF 6168 6169 { (exit 0); exit 0; } 6170 _ACEOF 6171 chmod +x $CONFIG_STATUS 6172 ac_clean_files=$ac_clean_files_save 6173 6174 6175 # configure is writing to config.log, and then calls config.status. 6176 # config.status does its own redirection, appending to config.log. 6177 # Unfortunately, on DOS this fails, as config.log is still kept open 6178 # by configure, so config.status won't be able to write to it; its 6179 # output is simply discarded. So we exec the FD to /dev/null, 6180 # effectively closing config.log, so it can be properly (re)opened and 6181 # appended to by config.status. When coming back to configure, we 6182 # need to make the FD available again. 6183 if test "$no_create" != yes; then 6184 ac_cs_success=: 6185 ac_config_status_args= 6186 test "$silent" = yes && 6187 ac_config_status_args="$ac_config_status_args --quiet" 6188 exec 5>/dev/null 6189 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 6190 exec 5>>config.log 6191 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 6192 # would make configure fail if this is the last instruction. 6193 $ac_cs_success || { (exit 1); exit 1; } 6194 fi |