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