1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.57. 4# 5# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 6# Free Software Foundation, Inc. 7# This configure script is free software; the Free Software Foundation 8# gives unlimited permission to copy, distribute and modify it. 9## --------------------- ## 10## M4sh Initialization. ## 11## --------------------- ## 12 13# Be Bourne compatible 14if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 15 emulate sh 16 NULLCMD=: 17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 18 # is contrary to our usage. Disable this feature. 19 alias -g '${1+"$@"}'='"$@"' 20elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 21 set -o posix 22fi 23 24# Support unset when possible. 25if (FOO=FOO; unset FOO) >/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 -n "`(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 as_mkdir_p=false 222fi 223 224as_executable_p="test -f" 225 226# Sed expression to map a string onto a valid CPP name. 227as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 228 229# Sed expression to map a string onto a valid variable name. 230as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 231 232 233# IFS 234# We need space, tab and new line, in precisely that order. 235as_nl=' 236' 237IFS=" $as_nl" 238 239# CDPATH. 240$as_unset CDPATH 241 242 243# Name of the host. 244# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 245# so uname gets run too. 246ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 247 248exec 6>&1 249 250# 251# Initializations. 252# 253ac_default_prefix=/usr/local 254ac_config_libobj_dir=. 255cross_compiling=no 256subdirs= 257MFLAGS= 258MAKEFLAGS= 259SHELL=${CONFIG_SHELL-/bin/sh} 260 261# Maximum number of lines to put in a shell here document. 262# This variable seems obsolete. It should probably be removed, and 263# only ac_max_sed_lines should be used. 264: ${ac_max_here_lines=38} 265 266# Identity of this package. 267PACKAGE_NAME= 268PACKAGE_TARNAME= 269PACKAGE_VERSION= 270PACKAGE_STRING= 271PACKAGE_BUGREPORT= 272 273ac_unique_file="../generic/snack.h" 274# Factoring default headers for most tests. 275ac_includes_default="\ 276#include <stdio.h> 277#if HAVE_SYS_TYPES_H 278# include <sys/types.h> 279#endif 280#if HAVE_SYS_STAT_H 281# include <sys/stat.h> 282#endif 283#if STDC_HEADERS 284# include <stdlib.h> 285# include <stddef.h> 286#else 287# if HAVE_STDLIB_H 288# include <stdlib.h> 289# endif 290#endif 291#if HAVE_STRING_H 292# if !STDC_HEADERS && HAVE_MEMORY_H 293# include <memory.h> 294# endif 295# include <string.h> 296#endif 297#if HAVE_STRINGS_H 298# include <strings.h> 299#endif 300#if HAVE_INTTYPES_H 301# include <inttypes.h> 302#else 303# if HAVE_STDINT_H 304# include <stdint.h> 305# endif 306#endif 307#if HAVE_UNISTD_H 308# include <unistd.h> 309#endif" 310 311ac_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 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP SHLIB_LD SHLIB_SUFFIX XINCLUDES TCL_INCLUDE_SPEC TCL_LIB_SPEC TK_LIB_SPEC TCL_SRC_DIR TK_SRC_DIR TK_LIBS SNACK_INSTALL_PATH SNACK_HINSTALL_PATH SNACK_LIB_SPEC AINC AFLAG ALIB AOBJ NISTINC NISTLIBS LIBNIST OGGINC OGGLIBS LIBOGG TCLAPI LD_SEARCH_FLAGS TCLVER STUBINITOBJ DOSTUBLIB SNACK_STUB_LIB_FLAG SNACK_VERSION LIBOBJS LTLIBOBJS' 312ac_subst_files='' 313 314# Initialize some variables set by options. 315ac_init_help= 316ac_init_version=false 317# The variables have the same names as the options, with 318# dashes changed to underlines. 319cache_file=/dev/null 320exec_prefix=NONE 321no_create= 322no_recursion= 323prefix=NONE 324program_prefix=NONE 325program_suffix=NONE 326program_transform_name=s,x,x, 327silent= 328site= 329srcdir= 330verbose= 331x_includes=NONE 332x_libraries=NONE 333 334# Installation directory options. 335# These are left unexpanded so users can "make install exec_prefix=/foo" 336# and all the variables that are supposed to be based on exec_prefix 337# by default will actually change. 338# Use braces instead of parens because sh, perl, etc. also accept them. 339bindir='${exec_prefix}/bin' 340sbindir='${exec_prefix}/sbin' 341libexecdir='${exec_prefix}/libexec' 342datadir='${prefix}/share' 343sysconfdir='${prefix}/etc' 344sharedstatedir='${prefix}/com' 345localstatedir='${prefix}/var' 346libdir='${exec_prefix}/lib' 347includedir='${prefix}/include' 348oldincludedir='/usr/include' 349infodir='${prefix}/info' 350mandir='${prefix}/man' 351 352ac_prev= 353for ac_option 354do 355 # If the previous option needs an argument, assign it. 356 if test -n "$ac_prev"; then 357 eval "$ac_prev=\$ac_option" 358 ac_prev= 359 continue 360 fi 361 362 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 363 364 # Accept the important Cygnus configure options, so we can diagnose typos. 365 366 case $ac_option in 367 368 -bindir | --bindir | --bindi | --bind | --bin | --bi) 369 ac_prev=bindir ;; 370 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 371 bindir=$ac_optarg ;; 372 373 -build | --build | --buil | --bui | --bu) 374 ac_prev=build_alias ;; 375 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 376 build_alias=$ac_optarg ;; 377 378 -cache-file | --cache-file | --cache-fil | --cache-fi \ 379 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 380 ac_prev=cache_file ;; 381 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 382 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 383 cache_file=$ac_optarg ;; 384 385 --config-cache | -C) 386 cache_file=config.cache ;; 387 388 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 389 ac_prev=datadir ;; 390 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 391 | --da=*) 392 datadir=$ac_optarg ;; 393 394 -disable-* | --disable-*) 395 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 396 # Reject names that are not valid shell variable names. 397 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 398 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 399 { (exit 1); exit 1; }; } 400 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 401 eval "enable_$ac_feature=no" ;; 402 403 -enable-* | --enable-*) 404 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 405 # Reject names that are not valid shell variable names. 406 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 407 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 408 { (exit 1); exit 1; }; } 409 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 410 case $ac_option in 411 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 412 *) ac_optarg=yes ;; 413 esac 414 eval "enable_$ac_feature='$ac_optarg'" ;; 415 416 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 417 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 418 | --exec | --exe | --ex) 419 ac_prev=exec_prefix ;; 420 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 421 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 422 | --exec=* | --exe=* | --ex=*) 423 exec_prefix=$ac_optarg ;; 424 425 -gas | --gas | --ga | --g) 426 # Obsolete; use --with-gas. 427 with_gas=yes ;; 428 429 -help | --help | --hel | --he | -h) 430 ac_init_help=long ;; 431 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 432 ac_init_help=recursive ;; 433 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 434 ac_init_help=short ;; 435 436 -host | --host | --hos | --ho) 437 ac_prev=host_alias ;; 438 -host=* | --host=* | --hos=* | --ho=*) 439 host_alias=$ac_optarg ;; 440 441 -includedir | --includedir | --includedi | --included | --include \ 442 | --includ | --inclu | --incl | --inc) 443 ac_prev=includedir ;; 444 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 445 | --includ=* | --inclu=* | --incl=* | --inc=*) 446 includedir=$ac_optarg ;; 447 448 -infodir | --infodir | --infodi | --infod | --info | --inf) 449 ac_prev=infodir ;; 450 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 451 infodir=$ac_optarg ;; 452 453 -libdir | --libdir | --libdi | --libd) 454 ac_prev=libdir ;; 455 -libdir=* | --libdir=* | --libdi=* | --libd=*) 456 libdir=$ac_optarg ;; 457 458 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 459 | --libexe | --libex | --libe) 460 ac_prev=libexecdir ;; 461 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 462 | --libexe=* | --libex=* | --libe=*) 463 libexecdir=$ac_optarg ;; 464 465 -localstatedir | --localstatedir | --localstatedi | --localstated \ 466 | --localstate | --localstat | --localsta | --localst \ 467 | --locals | --local | --loca | --loc | --lo) 468 ac_prev=localstatedir ;; 469 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 470 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 471 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 472 localstatedir=$ac_optarg ;; 473 474 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 475 ac_prev=mandir ;; 476 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 477 mandir=$ac_optarg ;; 478 479 -nfp | --nfp | --nf) 480 # Obsolete; use --without-fp. 481 with_fp=no ;; 482 483 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 484 | --no-cr | --no-c | -n) 485 no_create=yes ;; 486 487 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 488 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 489 no_recursion=yes ;; 490 491 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 492 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 493 | --oldin | --oldi | --old | --ol | --o) 494 ac_prev=oldincludedir ;; 495 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 496 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 497 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 498 oldincludedir=$ac_optarg ;; 499 500 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 501 ac_prev=prefix ;; 502 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 503 prefix=$ac_optarg ;; 504 505 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 506 | --program-pre | --program-pr | --program-p) 507 ac_prev=program_prefix ;; 508 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 509 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 510 program_prefix=$ac_optarg ;; 511 512 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 513 | --program-suf | --program-su | --program-s) 514 ac_prev=program_suffix ;; 515 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 516 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 517 program_suffix=$ac_optarg ;; 518 519 -program-transform-name | --program-transform-name \ 520 | --program-transform-nam | --program-transform-na \ 521 | --program-transform-n | --program-transform- \ 522 | --program-transform | --program-transfor \ 523 | --program-transfo | --program-transf \ 524 | --program-trans | --program-tran \ 525 | --progr-tra | --program-tr | --program-t) 526 ac_prev=program_transform_name ;; 527 -program-transform-name=* | --program-transform-name=* \ 528 | --program-transform-nam=* | --program-transform-na=* \ 529 | --program-transform-n=* | --program-transform-=* \ 530 | --program-transform=* | --program-transfor=* \ 531 | --program-transfo=* | --program-transf=* \ 532 | --program-trans=* | --program-tran=* \ 533 | --progr-tra=* | --program-tr=* | --program-t=*) 534 program_transform_name=$ac_optarg ;; 535 536 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 537 | -silent | --silent | --silen | --sile | --sil) 538 silent=yes ;; 539 540 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 541 ac_prev=sbindir ;; 542 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 543 | --sbi=* | --sb=*) 544 sbindir=$ac_optarg ;; 545 546 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 547 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 548 | --sharedst | --shareds | --shared | --share | --shar \ 549 | --sha | --sh) 550 ac_prev=sharedstatedir ;; 551 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 552 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 553 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 554 | --sha=* | --sh=*) 555 sharedstatedir=$ac_optarg ;; 556 557 -site | --site | --sit) 558 ac_prev=site ;; 559 -site=* | --site=* | --sit=*) 560 site=$ac_optarg ;; 561 562 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 563 ac_prev=srcdir ;; 564 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 565 srcdir=$ac_optarg ;; 566 567 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 568 | --syscon | --sysco | --sysc | --sys | --sy) 569 ac_prev=sysconfdir ;; 570 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 571 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 572 sysconfdir=$ac_optarg ;; 573 574 -target | --target | --targe | --targ | --tar | --ta | --t) 575 ac_prev=target_alias ;; 576 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 577 target_alias=$ac_optarg ;; 578 579 -v | -verbose | --verbose | --verbos | --verbo | --verb) 580 verbose=yes ;; 581 582 -version | --version | --versio | --versi | --vers | -V) 583 ac_init_version=: ;; 584 585 -with-* | --with-*) 586 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 587 # Reject names that are not valid shell variable names. 588 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 589 { echo "$as_me: error: invalid package name: $ac_package" >&2 590 { (exit 1); exit 1; }; } 591 ac_package=`echo $ac_package| sed 's/-/_/g'` 592 case $ac_option in 593 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 594 *) ac_optarg=yes ;; 595 esac 596 eval "with_$ac_package='$ac_optarg'" ;; 597 598 -without-* | --without-*) 599 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 600 # Reject names that are not valid shell variable names. 601 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 602 { echo "$as_me: error: invalid package name: $ac_package" >&2 603 { (exit 1); exit 1; }; } 604 ac_package=`echo $ac_package | sed 's/-/_/g'` 605 eval "with_$ac_package=no" ;; 606 607 --x) 608 # Obsolete; use --with-x. 609 with_x=yes ;; 610 611 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 612 | --x-incl | --x-inc | --x-in | --x-i) 613 ac_prev=x_includes ;; 614 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 615 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 616 x_includes=$ac_optarg ;; 617 618 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 619 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 620 ac_prev=x_libraries ;; 621 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 622 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 623 x_libraries=$ac_optarg ;; 624 625 -*) { echo "$as_me: error: unrecognized option: $ac_option 626Try \`$0 --help' for more information." >&2 627 { (exit 1); exit 1; }; } 628 ;; 629 630 *=*) 631 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 632 # Reject names that are not valid shell variable names. 633 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 634 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 635 { (exit 1); exit 1; }; } 636 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 637 eval "$ac_envvar='$ac_optarg'" 638 export $ac_envvar ;; 639 640 *) 641 # FIXME: should be removed in autoconf 3.0. 642 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 643 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 644 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 645 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 646 ;; 647 648 esac 649done 650 651if test -n "$ac_prev"; then 652 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 653 { echo "$as_me: error: missing argument to $ac_option" >&2 654 { (exit 1); exit 1; }; } 655fi 656 657# Be sure to have absolute paths. 658for ac_var in exec_prefix prefix 659do 660 eval ac_val=$`echo $ac_var` 661 case $ac_val in 662 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 663 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 664 { (exit 1); exit 1; }; };; 665 esac 666done 667 668# Be sure to have absolute paths. 669for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 670 localstatedir libdir includedir oldincludedir infodir mandir 671do 672 eval ac_val=$`echo $ac_var` 673 case $ac_val in 674 [\\/$]* | ?:[\\/]* ) ;; 675 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 676 { (exit 1); exit 1; }; };; 677 esac 678done 679 680# There might be people who depend on the old broken behavior: `$host' 681# used to hold the argument of --host etc. 682# FIXME: To remove some day. 683build=$build_alias 684host=$host_alias 685target=$target_alias 686 687# FIXME: To remove some day. 688if test "x$host_alias" != x; then 689 if test "x$build_alias" = x; then 690 cross_compiling=maybe 691 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 692 If a cross compiler is detected then cross compile mode will be used." >&2 693 elif test "x$build_alias" != "x$host_alias"; then 694 cross_compiling=yes 695 fi 696fi 697 698ac_tool_prefix= 699test -n "$host_alias" && ac_tool_prefix=$host_alias- 700 701test "$silent" = yes && exec 6>/dev/null 702 703 704# Find the source files, if location was not specified. 705if test -z "$srcdir"; then 706 ac_srcdir_defaulted=yes 707 # Try the directory containing this script, then its parent. 708 ac_confdir=`(dirname "$0") 2>/dev/null || 709$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 710 X"$0" : 'X\(//\)[^/]' \| \ 711 X"$0" : 'X\(//\)$' \| \ 712 X"$0" : 'X\(/\)' \| \ 713 . : '\(.\)' 2>/dev/null || 714echo X"$0" | 715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 716 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 717 /^X\(\/\/\)$/{ s//\1/; q; } 718 /^X\(\/\).*/{ s//\1/; q; } 719 s/.*/./; q'` 720 srcdir=$ac_confdir 721 if test ! -r $srcdir/$ac_unique_file; then 722 srcdir=.. 723 fi 724else 725 ac_srcdir_defaulted=no 726fi 727if test ! -r $srcdir/$ac_unique_file; then 728 if test "$ac_srcdir_defaulted" = yes; then 729 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 730 { (exit 1); exit 1; }; } 731 else 732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 733 { (exit 1); exit 1; }; } 734 fi 735fi 736(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || 737 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 738 { (exit 1); exit 1; }; } 739srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 740ac_env_build_alias_set=${build_alias+set} 741ac_env_build_alias_value=$build_alias 742ac_cv_env_build_alias_set=${build_alias+set} 743ac_cv_env_build_alias_value=$build_alias 744ac_env_host_alias_set=${host_alias+set} 745ac_env_host_alias_value=$host_alias 746ac_cv_env_host_alias_set=${host_alias+set} 747ac_cv_env_host_alias_value=$host_alias 748ac_env_target_alias_set=${target_alias+set} 749ac_env_target_alias_value=$target_alias 750ac_cv_env_target_alias_set=${target_alias+set} 751ac_cv_env_target_alias_value=$target_alias 752ac_env_CC_set=${CC+set} 753ac_env_CC_value=$CC 754ac_cv_env_CC_set=${CC+set} 755ac_cv_env_CC_value=$CC 756ac_env_CFLAGS_set=${CFLAGS+set} 757ac_env_CFLAGS_value=$CFLAGS 758ac_cv_env_CFLAGS_set=${CFLAGS+set} 759ac_cv_env_CFLAGS_value=$CFLAGS 760ac_env_LDFLAGS_set=${LDFLAGS+set} 761ac_env_LDFLAGS_value=$LDFLAGS 762ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 763ac_cv_env_LDFLAGS_value=$LDFLAGS 764ac_env_CPPFLAGS_set=${CPPFLAGS+set} 765ac_env_CPPFLAGS_value=$CPPFLAGS 766ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 767ac_cv_env_CPPFLAGS_value=$CPPFLAGS 768ac_env_CPP_set=${CPP+set} 769ac_env_CPP_value=$CPP 770ac_cv_env_CPP_set=${CPP+set} 771ac_cv_env_CPP_value=$CPP 772 773# 774# Report the --help message. 775# 776if test "$ac_init_help" = "long"; then 777 # Omit some internal or obsolete options to make the list less imposing. 778 # This message is too long to be a string in the A/UX 3.1 sh. 779 cat <<_ACEOF 780\`configure' configures this package to adapt to many kinds of systems. 781 782Usage: $0 [OPTION]... [VAR=VALUE]... 783 784To assign environment variables (e.g., CC, CFLAGS...), specify them as 785VAR=VALUE. See below for descriptions of some of the useful variables. 786 787Defaults for the options are specified in brackets. 788 789Configuration: 790 -h, --help display this help and exit 791 --help=short display options specific to this package 792 --help=recursive display the short help of all the included packages 793 -V, --version display version information and exit 794 -q, --quiet, --silent do not print \`checking...' messages 795 --cache-file=FILE cache test results in FILE [disabled] 796 -C, --config-cache alias for \`--cache-file=config.cache' 797 -n, --no-create do not create output files 798 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 799 800_ACEOF 801 802 cat <<_ACEOF 803Installation directories: 804 --prefix=PREFIX install architecture-independent files in PREFIX 805 [$ac_default_prefix] 806 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 807 [PREFIX] 808 809By default, \`make install' will install all the files in 810\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 811an installation prefix other than \`$ac_default_prefix' using \`--prefix', 812for instance \`--prefix=\$HOME'. 813 814For better control, use the options below. 815 816Fine tuning of the installation directories: 817 --bindir=DIR user executables [EPREFIX/bin] 818 --sbindir=DIR system admin executables [EPREFIX/sbin] 819 --libexecdir=DIR program executables [EPREFIX/libexec] 820 --datadir=DIR read-only architecture-independent data [PREFIX/share] 821 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 822 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 823 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 824 --libdir=DIR object code libraries [EPREFIX/lib] 825 --includedir=DIR C header files [PREFIX/include] 826 --oldincludedir=DIR C header files for non-gcc [/usr/include] 827 --infodir=DIR info documentation [PREFIX/info] 828 --mandir=DIR man documentation [PREFIX/man] 829_ACEOF 830 831 cat <<\_ACEOF 832_ACEOF 833fi 834 835if test -n "$ac_init_help"; then 836 837 cat <<\_ACEOF 838 839Optional Features: 840 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 841 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 842 --disable-stubs disable stub support 843 --enable-alsa enable ALSA support 844 845Optional Packages: 846 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 847 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 848 --with-tcl directory containing tcl configuration (tclConfig.sh) 849 --with-tk directory containing tk configuration (tkConfig.sh) 850 --with-nist-include=DIR use NIST/SPHERE includes in DIR 851 --with-nist-lib=DIR use NIST/SPHERE libraries in DIR 852 --with-ogg-include=DIR use Ogg/Vorbis includes in DIR 853 --with-ogg-lib=DIR use Ogg/Vorbis libraries in DIR 854 855Some influential environment variables: 856 CC C compiler command 857 CFLAGS C compiler flags 858 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 859 nonstandard directory <lib dir> 860 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 861 headers in a nonstandard directory <include dir> 862 CPP C preprocessor 863 864Use these variables to override the choices made by `configure' or to help 865it to find libraries and programs with nonstandard names/locations. 866 867_ACEOF 868fi 869 870if test "$ac_init_help" = "recursive"; then 871 # If there are subdirs, report their specific --help. 872 ac_popdir=`pwd` 873 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 874 test -d $ac_dir || continue 875 ac_builddir=. 876 877if test "$ac_dir" != .; then 878 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 879 # A "../" for each directory in $ac_dir_suffix. 880 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 881else 882 ac_dir_suffix= ac_top_builddir= 883fi 884 885case $srcdir in 886 .) # No --srcdir option. We are building in place. 887 ac_srcdir=. 888 if test -z "$ac_top_builddir"; then 889 ac_top_srcdir=. 890 else 891 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 892 fi ;; 893 [\\/]* | ?:[\\/]* ) # Absolute path. 894 ac_srcdir=$srcdir$ac_dir_suffix; 895 ac_top_srcdir=$srcdir ;; 896 *) # Relative path. 897 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 898 ac_top_srcdir=$ac_top_builddir$srcdir ;; 899esac 900# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be 901# absolute. 902ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` 903ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` 904ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` 905ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` 906 907 cd $ac_dir 908 # Check for guested configure; otherwise get Cygnus style configure. 909 if test -f $ac_srcdir/configure.gnu; then 910 echo 911 $SHELL $ac_srcdir/configure.gnu --help=recursive 912 elif test -f $ac_srcdir/configure; then 913 echo 914 $SHELL $ac_srcdir/configure --help=recursive 915 elif test -f $ac_srcdir/configure.ac || 916 test -f $ac_srcdir/configure.in; then 917 echo 918 $ac_configure --help 919 else 920 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 921 fi 922 cd $ac_popdir 923 done 924fi 925 926test -n "$ac_init_help" && exit 0 927if $ac_init_version; then 928 cat <<\_ACEOF 929 930Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 931Free Software Foundation, Inc. 932This configure script is free software; the Free Software Foundation 933gives unlimited permission to copy, distribute and modify it. 934_ACEOF 935 exit 0 936fi 937exec 5>config.log 938cat >&5 <<_ACEOF 939This file contains any messages produced by compilers while 940running configure, to aid debugging if configure makes a mistake. 941 942It was created by $as_me, which was 943generated by GNU Autoconf 2.57. Invocation command line was 944 945 $ $0 $@ 946 947_ACEOF 948{ 949cat <<_ASUNAME 950## --------- ## 951## Platform. ## 952## --------- ## 953 954hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 955uname -m = `(uname -m) 2>/dev/null || echo unknown` 956uname -r = `(uname -r) 2>/dev/null || echo unknown` 957uname -s = `(uname -s) 2>/dev/null || echo unknown` 958uname -v = `(uname -v) 2>/dev/null || echo unknown` 959 960/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 961/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 962 963/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 964/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 965/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 966hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 967/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 968/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 969/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 970 971_ASUNAME 972 973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 974for as_dir in $PATH 975do 976 IFS=$as_save_IFS 977 test -z "$as_dir" && as_dir=. 978 echo "PATH: $as_dir" 979done 980 981} >&5 982 983cat >&5 <<_ACEOF 984 985 986## ----------- ## 987## Core tests. ## 988## ----------- ## 989 990_ACEOF 991 992 993# Keep a trace of the command line. 994# Strip out --no-create and --no-recursion so they do not pile up. 995# Strip out --silent because we don't want to record it for future runs. 996# Also quote any args containing shell meta-characters. 997# Make two passes to allow for proper duplicate-argument suppression. 998ac_configure_args= 999ac_configure_args0= 1000ac_configure_args1= 1001ac_sep= 1002ac_must_keep_next=false 1003for ac_pass in 1 2 1004do 1005 for ac_arg 1006 do 1007 case $ac_arg in 1008 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1009 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1010 | -silent | --silent | --silen | --sile | --sil) 1011 continue ;; 1012 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1013 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1014 esac 1015 case $ac_pass in 1016 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1017 2) 1018 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1019 if test $ac_must_keep_next = true; then 1020 ac_must_keep_next=false # Got value, back to normal. 1021 else 1022 case $ac_arg in 1023 *=* | --config-cache | -C | -disable-* | --disable-* \ 1024 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1025 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1026 | -with-* | --with-* | -without-* | --without-* | --x) 1027 case "$ac_configure_args0 " in 1028 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1029 esac 1030 ;; 1031 -* ) ac_must_keep_next=true ;; 1032 esac 1033 fi 1034 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1035 # Get rid of the leading space. 1036 ac_sep=" " 1037 ;; 1038 esac 1039 done 1040done 1041$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1042$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1043 1044# When interrupted or exit'd, cleanup temporary files, and complete 1045# config.log. We remove comments because anyway the quotes in there 1046# would cause problems or look ugly. 1047# WARNING: Be sure not to use single quotes in there, as some shells, 1048# such as our DU 5.0 friend, will then `close' the trap. 1049trap 'exit_status=$? 1050 # Save into config.log some information that might help in debugging. 1051 { 1052 echo 1053 1054 cat <<\_ASBOX 1055## ---------------- ## 1056## Cache variables. ## 1057## ---------------- ## 1058_ASBOX 1059 echo 1060 # The following way of writing the cache mishandles newlines in values, 1061{ 1062 (set) 2>&1 | 1063 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1064 *ac_space=\ *) 1065 sed -n \ 1066 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1067 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1068 ;; 1069 *) 1070 sed -n \ 1071 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1072 ;; 1073 esac; 1074} 1075 echo 1076 1077 cat <<\_ASBOX 1078## ----------------- ## 1079## Output variables. ## 1080## ----------------- ## 1081_ASBOX 1082 echo 1083 for ac_var in $ac_subst_vars 1084 do 1085 eval ac_val=$`echo $ac_var` 1086 echo "$ac_var='"'"'$ac_val'"'"'" 1087 done | sort 1088 echo 1089 1090 if test -n "$ac_subst_files"; then 1091 cat <<\_ASBOX 1092## ------------- ## 1093## Output files. ## 1094## ------------- ## 1095_ASBOX 1096 echo 1097 for ac_var in $ac_subst_files 1098 do 1099 eval ac_val=$`echo $ac_var` 1100 echo "$ac_var='"'"'$ac_val'"'"'" 1101 done | sort 1102 echo 1103 fi 1104 1105 if test -s confdefs.h; then 1106 cat <<\_ASBOX 1107## ----------- ## 1108## confdefs.h. ## 1109## ----------- ## 1110_ASBOX 1111 echo 1112 sed "/^$/d" confdefs.h | sort 1113 echo 1114 fi 1115 test "$ac_signal" != 0 && 1116 echo "$as_me: caught signal $ac_signal" 1117 echo "$as_me: exit $exit_status" 1118 } >&5 1119 rm -f core core.* *.core && 1120 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1121 exit $exit_status 1122 ' 0 1123for ac_signal in 1 2 13 15; do 1124 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1125done 1126ac_signal=0 1127 1128# confdefs.h avoids OS command line length limits that DEFS can exceed. 1129rm -rf conftest* confdefs.h 1130# AIX cpp loses on an empty file, so make sure it contains at least a newline. 1131echo >confdefs.h 1132 1133# Predefined preprocessor variables. 1134 1135cat >>confdefs.h <<_ACEOF 1136#define PACKAGE_NAME "$PACKAGE_NAME" 1137_ACEOF 1138 1139 1140cat >>confdefs.h <<_ACEOF 1141#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1142_ACEOF 1143 1144 1145cat >>confdefs.h <<_ACEOF 1146#define PACKAGE_VERSION "$PACKAGE_VERSION" 1147_ACEOF 1148 1149 1150cat >>confdefs.h <<_ACEOF 1151#define PACKAGE_STRING "$PACKAGE_STRING" 1152_ACEOF 1153 1154 1155cat >>confdefs.h <<_ACEOF 1156#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1157_ACEOF 1158 1159 1160# Let the site file select an alternate cache file if it wants to. 1161# Prefer explicitly selected file to automatically selected ones. 1162if test -z "$CONFIG_SITE"; then 1163 if test "x$prefix" != xNONE; then 1164 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1165 else 1166 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1167 fi 1168fi 1169for ac_site_file in $CONFIG_SITE; do 1170 if test -r "$ac_site_file"; then 1171 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1172echo "$as_me: loading site script $ac_site_file" >&6;} 1173 sed 's/^/| /' "$ac_site_file" >&5 1174 . "$ac_site_file" 1175 fi 1176done 1177 1178if test -r "$cache_file"; then 1179 # Some versions of bash will fail to source /dev/null (special 1180 # files actually), so we avoid doing that. 1181 if test -f "$cache_file"; then 1182 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1183echo "$as_me: loading cache $cache_file" >&6;} 1184 case $cache_file in 1185 [\\/]* | ?:[\\/]* ) . $cache_file;; 1186 *) . ./$cache_file;; 1187 esac 1188 fi 1189else 1190 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1191echo "$as_me: creating cache $cache_file" >&6;} 1192 >$cache_file 1193fi 1194 1195# Check that the precious variables saved in the cache have kept the same 1196# value. 1197ac_cache_corrupted=false 1198for ac_var in `(set) 2>&1 | 1199 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1200 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1201 eval ac_new_set=\$ac_env_${ac_var}_set 1202 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1203 eval ac_new_val="\$ac_env_${ac_var}_value" 1204 case $ac_old_set,$ac_new_set in 1205 set,) 1206 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1207echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1208 ac_cache_corrupted=: ;; 1209 ,set) 1210 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1211echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1212 ac_cache_corrupted=: ;; 1213 ,);; 1214 *) 1215 if test "x$ac_old_val" != "x$ac_new_val"; then 1216 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1217echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1218 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1219echo "$as_me: former value: $ac_old_val" >&2;} 1220 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1221echo "$as_me: current value: $ac_new_val" >&2;} 1222 ac_cache_corrupted=: 1223 fi;; 1224 esac 1225 # Pass precious variables to config.status. 1226 if test "$ac_new_set" = set; then 1227 case $ac_new_val in 1228 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1229 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1230 *) ac_arg=$ac_var=$ac_new_val ;; 1231 esac 1232 case " $ac_configure_args " in 1233 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1234 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1235 esac 1236 fi 1237done 1238if $ac_cache_corrupted; then 1239 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1240echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1241 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1242echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1243 { (exit 1); exit 1; }; } 1244fi 1245 1246ac_ext=c 1247ac_cpp='$CPP $CPPFLAGS' 1248ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1249ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1250ac_compiler_gnu=$ac_cv_c_compiler_gnu 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271SNACK_VERSION=2.2 1272 1273#-------------------------------------------------------------------- 1274# See if there was a command-line option for where Tcl is; if 1275# not, assume that its top-level directory is a sibling of ours. 1276#-------------------------------------------------------------------- 1277 1278 1279 # 1280 # Ok, lets find the tcl configuration 1281 # First, look for one uninstalled. 1282 # the alternative search directory is invoked by --with-tcl 1283 # 1284 1285 if test x"${no_tcl}" = x ; then 1286 # we reset no_tcl in case something fails here 1287 no_tcl=true 1288 1289# Check whether --with-tcl or --without-tcl was given. 1290if test "${with_tcl+set}" = set; then 1291 withval="$with_tcl" 1292 with_tclconfig=${withval} 1293fi; 1294 echo "$as_me:$LINENO: checking for Tcl configuration" >&5 1295echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6 1296 if test "${ac_cv_c_tclconfig+set}" = set; then 1297 echo $ECHO_N "(cached) $ECHO_C" >&6 1298else 1299 1300 1301 # First check to see if --with-tcl was specified. 1302 if test x"${with_tclconfig}" != x ; then 1303 if test -f "${with_tclconfig}/tclConfig.sh" ; then 1304 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)` 1305 else 1306 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5 1307echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;} 1308 { (exit 1); exit 1; }; } 1309 fi 1310 fi 1311 1312 # then check for a private Tcl installation 1313 if test x"${ac_cv_c_tclconfig}" = x ; then 1314 for i in \ 1315 ../tcl \ 1316 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \ 1317 ../../tcl \ 1318 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \ 1319 ../../../tcl \ 1320 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do 1321 if test -f "$i/unix/tclConfig.sh" ; then 1322 ac_cv_c_tclconfig=`(cd $i/unix; pwd)` 1323 break 1324 fi 1325 done 1326 fi 1327 1328 # check in a few common install locations 1329 if test x"${ac_cv_c_tclconfig}" = x ; then 1330 for i in `ls -d ${prefix}/lib 2>/dev/null` \ 1331 `ls -d /usr/local/lib 2>/dev/null` ; do 1332 if test -f "$i/tclConfig.sh" ; then 1333 ac_cv_c_tclconfig=`(cd $i; pwd)` 1334 break 1335 fi 1336 done 1337 fi 1338 1339 # check in a few other private locations 1340 if test x"${ac_cv_c_tclconfig}" = x ; then 1341 for i in \ 1342 ${srcdir}/../tcl \ 1343 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do 1344 if test -f "$i/unix/tclConfig.sh" ; then 1345 ac_cv_c_tclconfig=`(cd $i/unix; pwd)` 1346 break 1347 fi 1348 done 1349 fi 1350 1351fi 1352 1353 1354 if test x"${ac_cv_c_tclconfig}" = x ; then 1355 TCL_BIN_DIR="# no Tcl configs found" 1356 { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5 1357echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;} 1358 exit 0 1359 else 1360 no_tcl= 1361 TCL_BIN_DIR=${ac_cv_c_tclconfig} 1362 echo "$as_me:$LINENO: result: found $TCL_BIN_DIR/tclConfig.sh" >&5 1363echo "${ECHO_T}found $TCL_BIN_DIR/tclConfig.sh" >&6 1364 fi 1365 fi 1366 1367 1368#-------------------------------------------------------------------- 1369# See if there was a command-line option for where Tk is; if 1370# not, assume that its top-level directory is a sibling of ours. 1371#-------------------------------------------------------------------- 1372 1373 1374 # 1375 # Ok, lets find the tk configuration 1376 # First, look for one uninstalled. 1377 # the alternative search directory is invoked by --with-tk 1378 # 1379 1380 if test x"${no_tk}" = x ; then 1381 # we reset no_tk in case something fails here 1382 no_tk=true 1383 1384# Check whether --with-tk or --without-tk was given. 1385if test "${with_tk+set}" = set; then 1386 withval="$with_tk" 1387 with_tkconfig=${withval} 1388fi; 1389 echo "$as_me:$LINENO: checking for Tk configuration" >&5 1390echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6 1391 if test "${ac_cv_c_tkconfig+set}" = set; then 1392 echo $ECHO_N "(cached) $ECHO_C" >&6 1393else 1394 1395 1396 # First check to see if --with-tkconfig was specified. 1397 if test x"${with_tkconfig}" != x ; then 1398 if test -f "${with_tkconfig}/tkConfig.sh" ; then 1399 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)` 1400 else 1401 { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5 1402echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;} 1403 { (exit 1); exit 1; }; } 1404 fi 1405 fi 1406 1407 # then check for a private Tk library 1408 if test x"${ac_cv_c_tkconfig}" = x ; then 1409 for i in \ 1410 ../tk \ 1411 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \ 1412 ../../tk \ 1413 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \ 1414 ../../../tk \ 1415 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do 1416 if test -f "$i/unix/tkConfig.sh" ; then 1417 ac_cv_c_tkconfig=`(cd $i/unix; pwd)` 1418 break 1419 fi 1420 done 1421 fi 1422 # check in a few common install locations 1423 if test x"${ac_cv_c_tkconfig}" = x ; then 1424 for i in `ls -d ${prefix}/lib 2>/dev/null` \ 1425 `ls -d /usr/local/lib 2>/dev/null` ; do 1426 if test -f "$i/tkConfig.sh" ; then 1427 ac_cv_c_tkconfig=`(cd $i; pwd)` 1428 break 1429 fi 1430 done 1431 fi 1432 # check in a few other private locations 1433 if test x"${ac_cv_c_tkconfig}" = x ; then 1434 for i in \ 1435 ${srcdir}/../tk \ 1436 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do 1437 if test -f "$i/unix/tkConfig.sh" ; then 1438 ac_cv_c_tkconfig=`(cd $i/unix; pwd)` 1439 break 1440 fi 1441 done 1442 fi 1443 1444fi 1445 1446 if test x"${ac_cv_c_tkconfig}" = x ; then 1447 TK_BIN_DIR="# no Tk configs found" 1448 { echo "$as_me:$LINENO: WARNING: Can't find Tk configuration definitions" >&5 1449echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;} 1450 exit 0 1451 else 1452 no_tk= 1453 TK_BIN_DIR=${ac_cv_c_tkconfig} 1454 echo "$as_me:$LINENO: result: found $TK_BIN_DIR/tkConfig.sh" >&5 1455echo "${ECHO_T}found $TK_BIN_DIR/tkConfig.sh" >&6 1456 fi 1457 fi 1458 1459 1460 1461#-------------------------------------------------------------------- 1462 1463if test "x${prefix}" = "xNONE"; then 1464 prefix=/usr/local 1465fi 1466if test "x${exec_prefix}" = "xNONE"; then 1467 exec_prefix=$prefix 1468fi 1469 1470#SNACK_INSTALL_PATH=${exec_prefix}/lib 1471#SNACK_HINSTALL_PATH=${exec_prefix}/inc 1472#SNACK_LIB_SPEC="-L${exec_prefix}/lib -lsnack" 1473SNACK_INSTALL_PATH=${libdir} 1474SNACK_HINSTALL_PATH=${includedir} 1475SNACK_LIB_SPEC="-L${libdir} -lsnack" 1476 1477#-------------------------------------------------------------------- 1478# Read in configuration information generated by Tcl and 1479# arrange for it to be substituted into our Makefile. 1480#-------------------------------------------------------------------- 1481 1482file=$TCL_BIN_DIR/tclConfig.sh 1483. $file 1484 1485if test "$TCL_SHARED_BUILD" = 0; then 1486 { { echo "$as_me:$LINENO: error: Tcl and Tk must be configured with the --enable-shared flag" >&5 1487echo "$as_me: error: Tcl and Tk must be configured with the --enable-shared flag" >&2;} 1488 { (exit 1); exit 1; }; } 1489fi 1490CFLAGS=$TCL_SHLIB_CFLAGS 1491LD_SEARCH_FLAGS=$TCL_LD_SEARCH_FLAGS 1492SHLIB_LD=$TCL_SHLIB_LD 1493SHLIB_SUFFIX=$TCL_SHLIB_SUFFIX 1494CC=$TCL_CC 1495TCLVER=$TCL_VERSION 1496TCLAPI="" 1497if test "$TCLVER" != "8.0"; then 1498 TCLAPI="-DTCL_81_API" 1499fi 1500 1501#-------------------------------------------------------------------- 1502# Read in configuration information generated by Tk and arrange 1503# for it to be substituted into our Makefile. 1504#-------------------------------------------------------------------- 1505 1506file=$TK_BIN_DIR/tkConfig.sh 1507. $file 1508XINCLUDES=$TK_XINCLUDES 1509 1510#-------------------------------------------------------------------- 1511# Set audio related variables for the supported systems 1512#-------------------------------------------------------------------- 1513 1514system=`uname -s`-`uname -r` 1515 1516AINC="" 1517ALIB="" 1518 1519case $system in 1520 BSD/OS-4.*) 1521 AFLAG="-DOSS" 1522 ALIB="-lossaudio" 1523 AOBJ="jkAudIO_oss.o" 1524 ;; 1525 HP-UX-*.1*) 1526 if test "$CC" = "gcc" -o `$CC -v 2>&1 | grep -c gcc` != "0" ; then 1527 CFLAGS=$CFLAGS 1528 else 1529 CFLAGS="-Ae +z" 1530 fi 1531 AINC="-I/opt/audio/include" 1532 AFLAG="-DHPUX" 1533 ALIB="-L/opt/audio/lib -lAlib" 1534 AOBJ="jkAudIO_hp.o" 1535 if test "$SHLIB_LD" = "ld -b" ; then 1536 # this will not work if gcc is used as "linker" 1537 SHLIB_LD="$SHLIB_LD +s" 1538 else 1539 # gcc requires the prefix -Xlinker for each linker option 1540 SHLIB_LD="$SHLIB_LD -Xlinker +s" 1541 fi 1542 ;; 1543 IRIX*) 1544 AFLAG="-DIRIX" 1545 ALIB="-laudio" 1546 AOBJ="jkAudIO_sgi.o" 1547 ;; 1548 IRIX64-6.*) 1549 AFLAG="-DIRIX" 1550 ALIB="-laudio" 1551 AOBJ="jkAudIO_sgi.o" 1552 ;; 1553 Linux*) 1554 AFLAG="-DOSS" 1555 AOBJ="jkAudIO_oss.o" 1556 ;; 1557 NetBSD*|OpenBSD-*) 1558 AFLAG="-DOSS" 1559 ALIB="-lossaudio" 1560 AOBJ="jkAudIO_oss.o" 1561 ;; 1562 FreeBSD-*) 1563 AFLAG="-DOSS" 1564 ALIB="" 1565 AOBJ="jkAudIO_oss.o" 1566 ;; 1567 SunOS*) 1568 AFLAG="-DSolaris" 1569 AOBJ="jkAudIO_sun.o" 1570 ;; 1571 Rhapsody-*|Darwin-*) 1572 HACK="" 1573 AFLAG="-DOS_X_CORE_AUDIO -DMA${HACK}C_OSX_TCL -DMA${HACK}C_OSX_TK" 1574 ALIB="-framework CoreFoundation -framework CoreAudio" 1575 AOBJ="jkAudIO_osx.o" 1576 CFLAGS="-Os -fno-common" 1577 ;; 1578 *) 1579 AFLAG="-DOTHER" 1580 AOBJ="jkAudIO_skel.o" 1581 ;; 1582esac 1583 1584 1585#-------------------------------------------------------------------- 1586# Get the path to the NIST/SPHERE distribution. This is 1587# only necessary if you want to build the NIST package. 1588#-------------------------------------------------------------------- 1589 1590 1591# Check whether --with-nist-include or --without-nist-include was given. 1592if test "${with_nist_include+set}" = set; then 1593 withval="$with_nist_include" 1594 NIST_INC_DIR=$withval 1595else 1596 NIST_INC_DIR="" 1597fi; 1598NISTINC="-I$NIST_INC_DIR" 1599if test "$NISTINC" = "-I"; then 1600 NISTINC="" 1601fi 1602 1603 1604# Check whether --with-nist-lib or --without-nist-lib was given. 1605if test "${with_nist_lib+set}" = set; then 1606 withval="$with_nist_lib" 1607 NIST_LIB_DIR=$withval 1608else 1609 NIST_LIB_DIR="" 1610fi; 1611NISTLIBS="$NIST_LIB_DIR/libsp.a $NIST_LIB_DIR/libutil.a" 1612LIBNIST="" 1613if test ! "$NIST_LIB_DIR" = ""; then 1614 LIBNIST="libsnacksphere${SHLIB_SUFFIX}" 1615fi 1616 1617 1618#-------------------------------------------------------------------- 1619# Get the path to the Ogg/Vorbis installation. This is 1620# only necessary if you want to build the snackogg package. 1621#-------------------------------------------------------------------- 1622 1623LIBOGG="" 1624 1625# Check whether --with-ogg-include or --without-ogg-include was given. 1626if test "${with_ogg_include+set}" = set; then 1627 withval="$with_ogg_include" 1628 OGG_INC_DIR=$withval 1629else 1630 OGG_INC_DIR="" 1631fi; 1632 1633# Check whether --with-ogg-lib or --without-ogg-lib was given. 1634if test "${with_ogg_lib+set}" = set; then 1635 withval="$with_ogg_lib" 1636 OGG_LIB_DIR=$withval 1637else 1638 OGG_LIB_DIR="" 1639fi; 1640OGGINC="-I$OGG_INC_DIR" 1641OGGLIBS="-L$OGG_LIB_DIR -lvorbisenc -lvorbis -logg" 1642if test ! "$OGG_LIB_DIR" = ""; then 1643 LIBOGG="libsnackogg${SHLIB_SUFFIX}" 1644fi 1645 1646#-------------------------------------------------------------------- 1647# Disable stub support. This is necessary if you 1648# want to run Snack with Tcl/Tk versions 8.0 through 8.0.5 1649#-------------------------------------------------------------------- 1650 1651# Check whether --enable-stubs or --disable-stubs was given. 1652if test "${enable_stubs+set}" = set; then 1653 enableval="$enable_stubs" 1654 1655else 1656 enableval2="no" 1657fi; 1658 1659if test "$enableval2" = "no"; then 1660 echo "$as_me:$LINENO: result: will use stubs (normal)" >&5 1661echo "${ECHO_T}will use stubs (normal)" >&6 1662 CFLAGS="$CFLAGS -DUSE_TCL_STUBS -DUSE_TK_STUBS" 1663 TCL_LIB_SPEC="${TCL_STUB_LIB_SPEC}" 1664 TK_LIB_SPEC="${TK_STUB_LIB_SPEC}" 1665 STUBINITOBJ="snackStubInit.o" 1666 DOSTUBLIB="stublib" 1667 SNACK_STUB_LIB_FLAG="-lsnackstub$SNACK_VERSION" 1668 if test "$TCLVER" = "8.0"; then 1669 { echo "$as_me:$LINENO: WARNING: \"You probably forgot to specify --disable-stubs\"" >&5 1670echo "$as_me: WARNING: \"You probably forgot to specify --disable-stubs\"" >&2;} 1671 fi 1672else 1673 echo "$as_me:$LINENO: result: will not use stubs" >&5 1674echo "${ECHO_T}will not use stubs" >&6 1675 if test "$TCLVER" != "8.0"; then 1676 STUBINITOBJ="snackStubInit.o" 1677 else 1678 STUBINITOBJ="" 1679 fi 1680 DOSTUBLIB="" 1681 SNIST_LIB_SPEC="-lsnack" 1682fi 1683 1684#-------------------------------------------------------------------- 1685# Enable ALSA sound support. 1686#-------------------------------------------------------------------- 1687 1688# Check whether --enable-alsa or --disable-alsa was given. 1689if test "${enable_alsa+set}" = set; then 1690 enableval="$enable_alsa" 1691 1692else 1693 enableval3="no" 1694fi; 1695 1696if test "$enableval3" != "no"; then 1697 echo "$as_me:$LINENO: result: will use ALSA" >&5 1698echo "${ECHO_T}will use ALSA" >&6 1699 AFLAG="-DALSA" 1700 ALIB="-lasound" 1701 AOBJ="jkAudIO_alsa.o" 1702else 1703 echo "$as_me:$LINENO: result: will use OSS" >&5 1704echo "${ECHO_T}will use OSS" >&6 1705fi 1706#-------------------------------------------------------------------- 1707 1708# Checks for header files. 1709ac_ext=c 1710ac_cpp='$CPP $CPPFLAGS' 1711ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1712ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1713ac_compiler_gnu=$ac_cv_c_compiler_gnu 1714if test -n "$ac_tool_prefix"; then 1715 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1716set dummy ${ac_tool_prefix}gcc; ac_word=$2 1717echo "$as_me:$LINENO: checking for $ac_word" >&5 1718echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1719if test "${ac_cv_prog_CC+set}" = set; then 1720 echo $ECHO_N "(cached) $ECHO_C" >&6 1721else 1722 if test -n "$CC"; then 1723 ac_cv_prog_CC="$CC" # Let the user override the test. 1724else 1725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1726for as_dir in $PATH 1727do 1728 IFS=$as_save_IFS 1729 test -z "$as_dir" && as_dir=. 1730 for ac_exec_ext in '' $ac_executable_extensions; do 1731 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1732 ac_cv_prog_CC="${ac_tool_prefix}gcc" 1733 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1734 break 2 1735 fi 1736done 1737done 1738 1739fi 1740fi 1741CC=$ac_cv_prog_CC 1742if test -n "$CC"; then 1743 echo "$as_me:$LINENO: result: $CC" >&5 1744echo "${ECHO_T}$CC" >&6 1745else 1746 echo "$as_me:$LINENO: result: no" >&5 1747echo "${ECHO_T}no" >&6 1748fi 1749 1750fi 1751if test -z "$ac_cv_prog_CC"; then 1752 ac_ct_CC=$CC 1753 # Extract the first word of "gcc", so it can be a program name with args. 1754set dummy gcc; ac_word=$2 1755echo "$as_me:$LINENO: checking for $ac_word" >&5 1756echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1757if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1758 echo $ECHO_N "(cached) $ECHO_C" >&6 1759else 1760 if test -n "$ac_ct_CC"; then 1761 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1762else 1763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1764for as_dir in $PATH 1765do 1766 IFS=$as_save_IFS 1767 test -z "$as_dir" && as_dir=. 1768 for ac_exec_ext in '' $ac_executable_extensions; do 1769 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1770 ac_cv_prog_ac_ct_CC="gcc" 1771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1772 break 2 1773 fi 1774done 1775done 1776 1777fi 1778fi 1779ac_ct_CC=$ac_cv_prog_ac_ct_CC 1780if test -n "$ac_ct_CC"; then 1781 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1782echo "${ECHO_T}$ac_ct_CC" >&6 1783else 1784 echo "$as_me:$LINENO: result: no" >&5 1785echo "${ECHO_T}no" >&6 1786fi 1787 1788 CC=$ac_ct_CC 1789else 1790 CC="$ac_cv_prog_CC" 1791fi 1792 1793if test -z "$CC"; then 1794 if test -n "$ac_tool_prefix"; then 1795 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1796set dummy ${ac_tool_prefix}cc; ac_word=$2 1797echo "$as_me:$LINENO: checking for $ac_word" >&5 1798echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1799if test "${ac_cv_prog_CC+set}" = set; then 1800 echo $ECHO_N "(cached) $ECHO_C" >&6 1801else 1802 if test -n "$CC"; then 1803 ac_cv_prog_CC="$CC" # Let the user override the test. 1804else 1805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1806for as_dir in $PATH 1807do 1808 IFS=$as_save_IFS 1809 test -z "$as_dir" && as_dir=. 1810 for ac_exec_ext in '' $ac_executable_extensions; do 1811 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1812 ac_cv_prog_CC="${ac_tool_prefix}cc" 1813 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1814 break 2 1815 fi 1816done 1817done 1818 1819fi 1820fi 1821CC=$ac_cv_prog_CC 1822if test -n "$CC"; then 1823 echo "$as_me:$LINENO: result: $CC" >&5 1824echo "${ECHO_T}$CC" >&6 1825else 1826 echo "$as_me:$LINENO: result: no" >&5 1827echo "${ECHO_T}no" >&6 1828fi 1829 1830fi 1831if test -z "$ac_cv_prog_CC"; then 1832 ac_ct_CC=$CC 1833 # Extract the first word of "cc", so it can be a program name with args. 1834set dummy cc; ac_word=$2 1835echo "$as_me:$LINENO: checking for $ac_word" >&5 1836echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1837if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1838 echo $ECHO_N "(cached) $ECHO_C" >&6 1839else 1840 if test -n "$ac_ct_CC"; then 1841 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1842else 1843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1844for as_dir in $PATH 1845do 1846 IFS=$as_save_IFS 1847 test -z "$as_dir" && as_dir=. 1848 for ac_exec_ext in '' $ac_executable_extensions; do 1849 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1850 ac_cv_prog_ac_ct_CC="cc" 1851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1852 break 2 1853 fi 1854done 1855done 1856 1857fi 1858fi 1859ac_ct_CC=$ac_cv_prog_ac_ct_CC 1860if test -n "$ac_ct_CC"; then 1861 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1862echo "${ECHO_T}$ac_ct_CC" >&6 1863else 1864 echo "$as_me:$LINENO: result: no" >&5 1865echo "${ECHO_T}no" >&6 1866fi 1867 1868 CC=$ac_ct_CC 1869else 1870 CC="$ac_cv_prog_CC" 1871fi 1872 1873fi 1874if test -z "$CC"; then 1875 # Extract the first word of "cc", so it can be a program name with args. 1876set dummy cc; ac_word=$2 1877echo "$as_me:$LINENO: checking for $ac_word" >&5 1878echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1879if test "${ac_cv_prog_CC+set}" = set; then 1880 echo $ECHO_N "(cached) $ECHO_C" >&6 1881else 1882 if test -n "$CC"; then 1883 ac_cv_prog_CC="$CC" # Let the user override the test. 1884else 1885 ac_prog_rejected=no 1886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1887for as_dir in $PATH 1888do 1889 IFS=$as_save_IFS 1890 test -z "$as_dir" && as_dir=. 1891 for ac_exec_ext in '' $ac_executable_extensions; do 1892 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1893 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 1894 ac_prog_rejected=yes 1895 continue 1896 fi 1897 ac_cv_prog_CC="cc" 1898 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1899 break 2 1900 fi 1901done 1902done 1903 1904if test $ac_prog_rejected = yes; then 1905 # We found a bogon in the path, so make sure we never use it. 1906 set dummy $ac_cv_prog_CC 1907 shift 1908 if test $# != 0; then 1909 # We chose a different compiler from the bogus one. 1910 # However, it has the same basename, so the bogon will be chosen 1911 # first if we set CC to just the basename; use the full file name. 1912 shift 1913 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 1914 fi 1915fi 1916fi 1917fi 1918CC=$ac_cv_prog_CC 1919if test -n "$CC"; then 1920 echo "$as_me:$LINENO: result: $CC" >&5 1921echo "${ECHO_T}$CC" >&6 1922else 1923 echo "$as_me:$LINENO: result: no" >&5 1924echo "${ECHO_T}no" >&6 1925fi 1926 1927fi 1928if test -z "$CC"; then 1929 if test -n "$ac_tool_prefix"; then 1930 for ac_prog in cl 1931 do 1932 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1933set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1934echo "$as_me:$LINENO: checking for $ac_word" >&5 1935echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1936if test "${ac_cv_prog_CC+set}" = set; then 1937 echo $ECHO_N "(cached) $ECHO_C" >&6 1938else 1939 if test -n "$CC"; then 1940 ac_cv_prog_CC="$CC" # Let the user override the test. 1941else 1942as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1943for as_dir in $PATH 1944do 1945 IFS=$as_save_IFS 1946 test -z "$as_dir" && as_dir=. 1947 for ac_exec_ext in '' $ac_executable_extensions; do 1948 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1949 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 1950 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1951 break 2 1952 fi 1953done 1954done 1955 1956fi 1957fi 1958CC=$ac_cv_prog_CC 1959if test -n "$CC"; then 1960 echo "$as_me:$LINENO: result: $CC" >&5 1961echo "${ECHO_T}$CC" >&6 1962else 1963 echo "$as_me:$LINENO: result: no" >&5 1964echo "${ECHO_T}no" >&6 1965fi 1966 1967 test -n "$CC" && break 1968 done 1969fi 1970if test -z "$CC"; then 1971 ac_ct_CC=$CC 1972 for ac_prog in cl 1973do 1974 # Extract the first word of "$ac_prog", so it can be a program name with args. 1975set dummy $ac_prog; ac_word=$2 1976echo "$as_me:$LINENO: checking for $ac_word" >&5 1977echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1978if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1979 echo $ECHO_N "(cached) $ECHO_C" >&6 1980else 1981 if test -n "$ac_ct_CC"; then 1982 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1983else 1984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1985for as_dir in $PATH 1986do 1987 IFS=$as_save_IFS 1988 test -z "$as_dir" && as_dir=. 1989 for ac_exec_ext in '' $ac_executable_extensions; do 1990 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1991 ac_cv_prog_ac_ct_CC="$ac_prog" 1992 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1993 break 2 1994 fi 1995done 1996done 1997 1998fi 1999fi 2000ac_ct_CC=$ac_cv_prog_ac_ct_CC 2001if test -n "$ac_ct_CC"; then 2002 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2003echo "${ECHO_T}$ac_ct_CC" >&6 2004else 2005 echo "$as_me:$LINENO: result: no" >&5 2006echo "${ECHO_T}no" >&6 2007fi 2008 2009 test -n "$ac_ct_CC" && break 2010done 2011 2012 CC=$ac_ct_CC 2013fi 2014 2015fi 2016 2017 2018test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2019See \`config.log' for more details." >&5 2020echo "$as_me: error: no acceptable C compiler found in \$PATH 2021See \`config.log' for more details." >&2;} 2022 { (exit 1); exit 1; }; } 2023 2024# Provide some information about the compiler. 2025echo "$as_me:$LINENO:" \ 2026 "checking for C compiler version" >&5 2027ac_compiler=`set X $ac_compile; echo $2` 2028{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 2029 (eval $ac_compiler --version </dev/null >&5) 2>&5 2030 ac_status=$? 2031 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2032 (exit $ac_status); } 2033{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 2034 (eval $ac_compiler -v </dev/null >&5) 2>&5 2035 ac_status=$? 2036 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2037 (exit $ac_status); } 2038{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 2039 (eval $ac_compiler -V </dev/null >&5) 2>&5 2040 ac_status=$? 2041 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2042 (exit $ac_status); } 2043 2044cat >conftest.$ac_ext <<_ACEOF 2045#line $LINENO "configure" 2046/* confdefs.h. */ 2047_ACEOF 2048cat confdefs.h >>conftest.$ac_ext 2049cat >>conftest.$ac_ext <<_ACEOF 2050/* end confdefs.h. */ 2051 2052int 2053main () 2054{ 2055 2056 ; 2057 return 0; 2058} 2059_ACEOF 2060ac_clean_files_save=$ac_clean_files 2061ac_clean_files="$ac_clean_files a.out a.exe b.out" 2062# Try to create an executable without -o first, disregard a.out. 2063# It will help us diagnose broken compilers, and finding out an intuition 2064# of exeext. 2065echo "$as_me:$LINENO: checking for C compiler default output" >&5 2066echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 2067ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2068if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 2069 (eval $ac_link_default) 2>&5 2070 ac_status=$? 2071 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2072 (exit $ac_status); }; then 2073 # Find the output, starting from the most likely. This scheme is 2074# not robust to junk in `.', hence go to wildcards (a.*) only as a last 2075# resort. 2076 2077# Be careful to initialize this variable, since it used to be cached. 2078# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 2079ac_cv_exeext= 2080# b.out is created by i960 compilers. 2081for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 2082do 2083 test -f "$ac_file" || continue 2084 case $ac_file in 2085 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 2086 ;; 2087 conftest.$ac_ext ) 2088 # This is the source file. 2089 ;; 2090 [ab].out ) 2091 # We found the default executable, but exeext='' is most 2092 # certainly right. 2093 break;; 2094 *.* ) 2095 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2096 # FIXME: I believe we export ac_cv_exeext for Libtool, 2097 # but it would be cool to find out if it's true. Does anybody 2098 # maintain Libtool? --akim. 2099 export ac_cv_exeext 2100 break;; 2101 * ) 2102 break;; 2103 esac 2104done 2105else 2106 echo "$as_me: failed program was:" >&5 2107sed 's/^/| /' conftest.$ac_ext >&5 2108 2109{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2110See \`config.log' for more details." >&5 2111echo "$as_me: error: C compiler cannot create executables 2112See \`config.log' for more details." >&2;} 2113 { (exit 77); exit 77; }; } 2114fi 2115 2116ac_exeext=$ac_cv_exeext 2117echo "$as_me:$LINENO: result: $ac_file" >&5 2118echo "${ECHO_T}$ac_file" >&6 2119 2120# Check the compiler produces executables we can run. If not, either 2121# the compiler is broken, or we cross compile. 2122echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2123echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 2124# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2125# If not cross compiling, check that we can run a simple program. 2126if test "$cross_compiling" != yes; then 2127 if { ac_try='./$ac_file' 2128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2129 (eval $ac_try) 2>&5 2130 ac_status=$? 2131 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2132 (exit $ac_status); }; }; then 2133 cross_compiling=no 2134 else 2135 if test "$cross_compiling" = maybe; then 2136 cross_compiling=yes 2137 else 2138 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2139If you meant to cross compile, use \`--host'. 2140See \`config.log' for more details." >&5 2141echo "$as_me: error: cannot run C compiled programs. 2142If you meant to cross compile, use \`--host'. 2143See \`config.log' for more details." >&2;} 2144 { (exit 1); exit 1; }; } 2145 fi 2146 fi 2147fi 2148echo "$as_me:$LINENO: result: yes" >&5 2149echo "${ECHO_T}yes" >&6 2150 2151rm -f a.out a.exe conftest$ac_cv_exeext b.out 2152ac_clean_files=$ac_clean_files_save 2153# Check the compiler produces executables we can run. If not, either 2154# the compiler is broken, or we cross compile. 2155echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2156echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 2157echo "$as_me:$LINENO: result: $cross_compiling" >&5 2158echo "${ECHO_T}$cross_compiling" >&6 2159 2160echo "$as_me:$LINENO: checking for suffix of executables" >&5 2161echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 2162if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2163 (eval $ac_link) 2>&5 2164 ac_status=$? 2165 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2166 (exit $ac_status); }; then 2167 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2168# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2169# work properly (i.e., refer to `conftest.exe'), while it won't with 2170# `rm'. 2171for ac_file in conftest.exe conftest conftest.*; do 2172 test -f "$ac_file" || continue 2173 case $ac_file in 2174 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 2175 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2176 export ac_cv_exeext 2177 break;; 2178 * ) break;; 2179 esac 2180done 2181else 2182 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2183See \`config.log' for more details." >&5 2184echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2185See \`config.log' for more details." >&2;} 2186 { (exit 1); exit 1; }; } 2187fi 2188 2189rm -f conftest$ac_cv_exeext 2190echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2191echo "${ECHO_T}$ac_cv_exeext" >&6 2192 2193rm -f conftest.$ac_ext 2194EXEEXT=$ac_cv_exeext 2195ac_exeext=$EXEEXT 2196echo "$as_me:$LINENO: checking for suffix of object files" >&5 2197echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 2198if test "${ac_cv_objext+set}" = set; then 2199 echo $ECHO_N "(cached) $ECHO_C" >&6 2200else 2201 cat >conftest.$ac_ext <<_ACEOF 2202#line $LINENO "configure" 2203/* confdefs.h. */ 2204_ACEOF 2205cat confdefs.h >>conftest.$ac_ext 2206cat >>conftest.$ac_ext <<_ACEOF 2207/* end confdefs.h. */ 2208 2209int 2210main () 2211{ 2212 2213 ; 2214 return 0; 2215} 2216_ACEOF 2217rm -f conftest.o conftest.obj 2218if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2219 (eval $ac_compile) 2>&5 2220 ac_status=$? 2221 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2222 (exit $ac_status); }; then 2223 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 2224 case $ac_file in 2225 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 2226 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2227 break;; 2228 esac 2229done 2230else 2231 echo "$as_me: failed program was:" >&5 2232sed 's/^/| /' conftest.$ac_ext >&5 2233 2234{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2235See \`config.log' for more details." >&5 2236echo "$as_me: error: cannot compute suffix of object files: cannot compile 2237See \`config.log' for more details." >&2;} 2238 { (exit 1); exit 1; }; } 2239fi 2240 2241rm -f conftest.$ac_cv_objext conftest.$ac_ext 2242fi 2243echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2244echo "${ECHO_T}$ac_cv_objext" >&6 2245OBJEXT=$ac_cv_objext 2246ac_objext=$OBJEXT 2247echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2248echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 2249if test "${ac_cv_c_compiler_gnu+set}" = set; then 2250 echo $ECHO_N "(cached) $ECHO_C" >&6 2251else 2252 cat >conftest.$ac_ext <<_ACEOF 2253#line $LINENO "configure" 2254/* confdefs.h. */ 2255_ACEOF 2256cat confdefs.h >>conftest.$ac_ext 2257cat >>conftest.$ac_ext <<_ACEOF 2258/* end confdefs.h. */ 2259 2260int 2261main () 2262{ 2263#ifndef __GNUC__ 2264 choke me 2265#endif 2266 2267 ; 2268 return 0; 2269} 2270_ACEOF 2271rm -f conftest.$ac_objext 2272if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2273 (eval $ac_compile) 2>&5 2274 ac_status=$? 2275 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2276 (exit $ac_status); } && 2277 { ac_try='test -s conftest.$ac_objext' 2278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2279 (eval $ac_try) 2>&5 2280 ac_status=$? 2281 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2282 (exit $ac_status); }; }; then 2283 ac_compiler_gnu=yes 2284else 2285 echo "$as_me: failed program was:" >&5 2286sed 's/^/| /' conftest.$ac_ext >&5 2287 2288ac_compiler_gnu=no 2289fi 2290rm -f conftest.$ac_objext conftest.$ac_ext 2291ac_cv_c_compiler_gnu=$ac_compiler_gnu 2292 2293fi 2294echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2295echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 2296GCC=`test $ac_compiler_gnu = yes && echo yes` 2297ac_test_CFLAGS=${CFLAGS+set} 2298ac_save_CFLAGS=$CFLAGS 2299CFLAGS="-g" 2300echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2301echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 2302if test "${ac_cv_prog_cc_g+set}" = set; then 2303 echo $ECHO_N "(cached) $ECHO_C" >&6 2304else 2305 cat >conftest.$ac_ext <<_ACEOF 2306#line $LINENO "configure" 2307/* confdefs.h. */ 2308_ACEOF 2309cat confdefs.h >>conftest.$ac_ext 2310cat >>conftest.$ac_ext <<_ACEOF 2311/* end confdefs.h. */ 2312 2313int 2314main () 2315{ 2316 2317 ; 2318 return 0; 2319} 2320_ACEOF 2321rm -f conftest.$ac_objext 2322if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2323 (eval $ac_compile) 2>&5 2324 ac_status=$? 2325 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2326 (exit $ac_status); } && 2327 { ac_try='test -s conftest.$ac_objext' 2328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2329 (eval $ac_try) 2>&5 2330 ac_status=$? 2331 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2332 (exit $ac_status); }; }; then 2333 ac_cv_prog_cc_g=yes 2334else 2335 echo "$as_me: failed program was:" >&5 2336sed 's/^/| /' conftest.$ac_ext >&5 2337 2338ac_cv_prog_cc_g=no 2339fi 2340rm -f conftest.$ac_objext conftest.$ac_ext 2341fi 2342echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2343echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 2344if test "$ac_test_CFLAGS" = set; then 2345 CFLAGS=$ac_save_CFLAGS 2346elif test $ac_cv_prog_cc_g = yes; then 2347 if test "$GCC" = yes; then 2348 CFLAGS="-g -O2" 2349 else 2350 CFLAGS="-g" 2351 fi 2352else 2353 if test "$GCC" = yes; then 2354 CFLAGS="-O2" 2355 else 2356 CFLAGS= 2357 fi 2358fi 2359echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2360echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2361if test "${ac_cv_prog_cc_stdc+set}" = set; then 2362 echo $ECHO_N "(cached) $ECHO_C" >&6 2363else 2364 ac_cv_prog_cc_stdc=no 2365ac_save_CC=$CC 2366cat >conftest.$ac_ext <<_ACEOF 2367#line $LINENO "configure" 2368/* confdefs.h. */ 2369_ACEOF 2370cat confdefs.h >>conftest.$ac_ext 2371cat >>conftest.$ac_ext <<_ACEOF 2372/* end confdefs.h. */ 2373#include <stdarg.h> 2374#include <stdio.h> 2375#include <sys/types.h> 2376#include <sys/stat.h> 2377/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2378struct buf { int x; }; 2379FILE * (*rcsopen) (struct buf *, struct stat *, int); 2380static char *e (p, i) 2381 char **p; 2382 int i; 2383{ 2384 return p[i]; 2385} 2386static char *f (char * (*g) (char **, int), char **p, ...) 2387{ 2388 char *s; 2389 va_list v; 2390 va_start (v,p); 2391 s = g (p, va_arg (v,int)); 2392 va_end (v); 2393 return s; 2394} 2395int test (int i, double x); 2396struct s1 {int (*f) (int a);}; 2397struct s2 {int (*f) (double a);}; 2398int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2399int argc; 2400char **argv; 2401int 2402main () 2403{ 2404return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2405 ; 2406 return 0; 2407} 2408_ACEOF 2409# Don't try gcc -ansi; that turns off useful extensions and 2410# breaks some systems' header files. 2411# AIX -qlanglvl=ansi 2412# Ultrix and OSF/1 -std1 2413# HP-UX 10.20 and later -Ae 2414# HP-UX older versions -Aa -D_HPUX_SOURCE 2415# SVR4 -Xc -D__EXTENSIONS__ 2416for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2417do 2418 CC="$ac_save_CC $ac_arg" 2419 rm -f conftest.$ac_objext 2420if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2421 (eval $ac_compile) 2>&5 2422 ac_status=$? 2423 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2424 (exit $ac_status); } && 2425 { ac_try='test -s conftest.$ac_objext' 2426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2427 (eval $ac_try) 2>&5 2428 ac_status=$? 2429 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2430 (exit $ac_status); }; }; then 2431 ac_cv_prog_cc_stdc=$ac_arg 2432break 2433else 2434 echo "$as_me: failed program was:" >&5 2435sed 's/^/| /' conftest.$ac_ext >&5 2436 2437fi 2438rm -f conftest.$ac_objext 2439done 2440rm -f conftest.$ac_ext conftest.$ac_objext 2441CC=$ac_save_CC 2442 2443fi 2444 2445case "x$ac_cv_prog_cc_stdc" in 2446 x|xno) 2447 echo "$as_me:$LINENO: result: none needed" >&5 2448echo "${ECHO_T}none needed" >&6 ;; 2449 *) 2450 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2451echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2452 CC="$CC $ac_cv_prog_cc_stdc" ;; 2453esac 2454 2455# Some people use a C++ compiler to compile C. Since we use `exit', 2456# in C++ we need to declare it. In case someone uses the same compiler 2457# for both compiling C and C++ we need to have the C++ compiler decide 2458# the declaration of exit, since it's the most demanding environment. 2459cat >conftest.$ac_ext <<_ACEOF 2460#ifndef __cplusplus 2461 choke me 2462#endif 2463_ACEOF 2464rm -f conftest.$ac_objext 2465if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2466 (eval $ac_compile) 2>&5 2467 ac_status=$? 2468 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2469 (exit $ac_status); } && 2470 { ac_try='test -s conftest.$ac_objext' 2471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2472 (eval $ac_try) 2>&5 2473 ac_status=$? 2474 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2475 (exit $ac_status); }; }; then 2476 for ac_declaration in \ 2477 ''\ 2478 '#include <stdlib.h>' \ 2479 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2480 'extern "C" void std::exit (int); using std::exit;' \ 2481 'extern "C" void exit (int) throw ();' \ 2482 'extern "C" void exit (int);' \ 2483 'void exit (int);' 2484do 2485 cat >conftest.$ac_ext <<_ACEOF 2486#line $LINENO "configure" 2487/* confdefs.h. */ 2488_ACEOF 2489cat confdefs.h >>conftest.$ac_ext 2490cat >>conftest.$ac_ext <<_ACEOF 2491/* end confdefs.h. */ 2492#include <stdlib.h> 2493$ac_declaration 2494int 2495main () 2496{ 2497exit (42); 2498 ; 2499 return 0; 2500} 2501_ACEOF 2502rm -f conftest.$ac_objext 2503if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2504 (eval $ac_compile) 2>&5 2505 ac_status=$? 2506 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2507 (exit $ac_status); } && 2508 { ac_try='test -s conftest.$ac_objext' 2509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2510 (eval $ac_try) 2>&5 2511 ac_status=$? 2512 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2513 (exit $ac_status); }; }; then 2514 : 2515else 2516 echo "$as_me: failed program was:" >&5 2517sed 's/^/| /' conftest.$ac_ext >&5 2518 2519continue 2520fi 2521rm -f conftest.$ac_objext conftest.$ac_ext 2522 cat >conftest.$ac_ext <<_ACEOF 2523#line $LINENO "configure" 2524/* confdefs.h. */ 2525_ACEOF 2526cat confdefs.h >>conftest.$ac_ext 2527cat >>conftest.$ac_ext <<_ACEOF 2528/* end confdefs.h. */ 2529$ac_declaration 2530int 2531main () 2532{ 2533exit (42); 2534 ; 2535 return 0; 2536} 2537_ACEOF 2538rm -f conftest.$ac_objext 2539if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2540 (eval $ac_compile) 2>&5 2541 ac_status=$? 2542 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2543 (exit $ac_status); } && 2544 { ac_try='test -s conftest.$ac_objext' 2545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2546 (eval $ac_try) 2>&5 2547 ac_status=$? 2548 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2549 (exit $ac_status); }; }; then 2550 break 2551else 2552 echo "$as_me: failed program was:" >&5 2553sed 's/^/| /' conftest.$ac_ext >&5 2554 2555fi 2556rm -f conftest.$ac_objext conftest.$ac_ext 2557done 2558rm -f conftest* 2559if test -n "$ac_declaration"; then 2560 echo '#ifdef __cplusplus' >>confdefs.h 2561 echo $ac_declaration >>confdefs.h 2562 echo '#endif' >>confdefs.h 2563fi 2564 2565else 2566 echo "$as_me: failed program was:" >&5 2567sed 's/^/| /' conftest.$ac_ext >&5 2568 2569fi 2570rm -f conftest.$ac_objext conftest.$ac_ext 2571ac_ext=c 2572ac_cpp='$CPP $CPPFLAGS' 2573ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2574ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2575ac_compiler_gnu=$ac_cv_c_compiler_gnu 2576 2577 2578ac_ext=c 2579ac_cpp='$CPP $CPPFLAGS' 2580ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2581ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2582ac_compiler_gnu=$ac_cv_c_compiler_gnu 2583echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 2584echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 2585# On Suns, sometimes $CPP names a directory. 2586if test -n "$CPP" && test -d "$CPP"; then 2587 CPP= 2588fi 2589if test -z "$CPP"; then 2590 if test "${ac_cv_prog_CPP+set}" = set; then 2591 echo $ECHO_N "(cached) $ECHO_C" >&6 2592else 2593 # Double quotes because CPP needs to be expanded 2594 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 2595 do 2596 ac_preproc_ok=false 2597for ac_c_preproc_warn_flag in '' yes 2598do 2599 # Use a header file that comes with gcc, so configuring glibc 2600 # with a fresh cross-compiler works. 2601 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2602 # <limits.h> exists even on freestanding compilers. 2603 # On the NeXT, cc -E runs the code through the compiler's parser, 2604 # not just through cpp. "Syntax error" is here to catch this case. 2605 cat >conftest.$ac_ext <<_ACEOF 2606#line $LINENO "configure" 2607/* confdefs.h. */ 2608_ACEOF 2609cat confdefs.h >>conftest.$ac_ext 2610cat >>conftest.$ac_ext <<_ACEOF 2611/* end confdefs.h. */ 2612#ifdef __STDC__ 2613# include <limits.h> 2614#else 2615# include <assert.h> 2616#endif 2617 Syntax error 2618_ACEOF 2619if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2620 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2621 ac_status=$? 2622 grep -v '^ *+' conftest.er1 >conftest.err 2623 rm -f conftest.er1 2624 cat conftest.err >&5 2625 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2626 (exit $ac_status); } >/dev/null; then 2627 if test -s conftest.err; then 2628 ac_cpp_err=$ac_c_preproc_warn_flag 2629 else 2630 ac_cpp_err= 2631 fi 2632else 2633 ac_cpp_err=yes 2634fi 2635if test -z "$ac_cpp_err"; then 2636 : 2637else 2638 echo "$as_me: failed program was:" >&5 2639sed 's/^/| /' conftest.$ac_ext >&5 2640 2641 # Broken: fails on valid input. 2642continue 2643fi 2644rm -f conftest.err conftest.$ac_ext 2645 2646 # OK, works on sane cases. Now check whether non-existent headers 2647 # can be detected and how. 2648 cat >conftest.$ac_ext <<_ACEOF 2649#line $LINENO "configure" 2650/* confdefs.h. */ 2651_ACEOF 2652cat confdefs.h >>conftest.$ac_ext 2653cat >>conftest.$ac_ext <<_ACEOF 2654/* end confdefs.h. */ 2655#include <ac_nonexistent.h> 2656_ACEOF 2657if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2658 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2659 ac_status=$? 2660 grep -v '^ *+' conftest.er1 >conftest.err 2661 rm -f conftest.er1 2662 cat conftest.err >&5 2663 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2664 (exit $ac_status); } >/dev/null; then 2665 if test -s conftest.err; then 2666 ac_cpp_err=$ac_c_preproc_warn_flag 2667 else 2668 ac_cpp_err= 2669 fi 2670else 2671 ac_cpp_err=yes 2672fi 2673if test -z "$ac_cpp_err"; then 2674 # Broken: success on invalid input. 2675continue 2676else 2677 echo "$as_me: failed program was:" >&5 2678sed 's/^/| /' conftest.$ac_ext >&5 2679 2680 # Passes both tests. 2681ac_preproc_ok=: 2682break 2683fi 2684rm -f conftest.err conftest.$ac_ext 2685 2686done 2687# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2688rm -f conftest.err conftest.$ac_ext 2689if $ac_preproc_ok; then 2690 break 2691fi 2692 2693 done 2694 ac_cv_prog_CPP=$CPP 2695 2696fi 2697 CPP=$ac_cv_prog_CPP 2698else 2699 ac_cv_prog_CPP=$CPP 2700fi 2701echo "$as_me:$LINENO: result: $CPP" >&5 2702echo "${ECHO_T}$CPP" >&6 2703ac_preproc_ok=false 2704for ac_c_preproc_warn_flag in '' yes 2705do 2706 # Use a header file that comes with gcc, so configuring glibc 2707 # with a fresh cross-compiler works. 2708 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2709 # <limits.h> exists even on freestanding compilers. 2710 # On the NeXT, cc -E runs the code through the compiler's parser, 2711 # not just through cpp. "Syntax error" is here to catch this case. 2712 cat >conftest.$ac_ext <<_ACEOF 2713#line $LINENO "configure" 2714/* confdefs.h. */ 2715_ACEOF 2716cat confdefs.h >>conftest.$ac_ext 2717cat >>conftest.$ac_ext <<_ACEOF 2718/* end confdefs.h. */ 2719#ifdef __STDC__ 2720# include <limits.h> 2721#else 2722# include <assert.h> 2723#endif 2724 Syntax error 2725_ACEOF 2726if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2727 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2728 ac_status=$? 2729 grep -v '^ *+' conftest.er1 >conftest.err 2730 rm -f conftest.er1 2731 cat conftest.err >&5 2732 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2733 (exit $ac_status); } >/dev/null; then 2734 if test -s conftest.err; then 2735 ac_cpp_err=$ac_c_preproc_warn_flag 2736 else 2737 ac_cpp_err= 2738 fi 2739else 2740 ac_cpp_err=yes 2741fi 2742if test -z "$ac_cpp_err"; then 2743 : 2744else 2745 echo "$as_me: failed program was:" >&5 2746sed 's/^/| /' conftest.$ac_ext >&5 2747 2748 # Broken: fails on valid input. 2749continue 2750fi 2751rm -f conftest.err conftest.$ac_ext 2752 2753 # OK, works on sane cases. Now check whether non-existent headers 2754 # can be detected and how. 2755 cat >conftest.$ac_ext <<_ACEOF 2756#line $LINENO "configure" 2757/* confdefs.h. */ 2758_ACEOF 2759cat confdefs.h >>conftest.$ac_ext 2760cat >>conftest.$ac_ext <<_ACEOF 2761/* end confdefs.h. */ 2762#include <ac_nonexistent.h> 2763_ACEOF 2764if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2765 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2766 ac_status=$? 2767 grep -v '^ *+' conftest.er1 >conftest.err 2768 rm -f conftest.er1 2769 cat conftest.err >&5 2770 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2771 (exit $ac_status); } >/dev/null; then 2772 if test -s conftest.err; then 2773 ac_cpp_err=$ac_c_preproc_warn_flag 2774 else 2775 ac_cpp_err= 2776 fi 2777else 2778 ac_cpp_err=yes 2779fi 2780if test -z "$ac_cpp_err"; then 2781 # Broken: success on invalid input. 2782continue 2783else 2784 echo "$as_me: failed program was:" >&5 2785sed 's/^/| /' conftest.$ac_ext >&5 2786 2787 # Passes both tests. 2788ac_preproc_ok=: 2789break 2790fi 2791rm -f conftest.err conftest.$ac_ext 2792 2793done 2794# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2795rm -f conftest.err conftest.$ac_ext 2796if $ac_preproc_ok; then 2797 : 2798else 2799 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 2800See \`config.log' for more details." >&5 2801echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 2802See \`config.log' for more details." >&2;} 2803 { (exit 1); exit 1; }; } 2804fi 2805 2806ac_ext=c 2807ac_cpp='$CPP $CPPFLAGS' 2808ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2809ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2810ac_compiler_gnu=$ac_cv_c_compiler_gnu 2811 2812 2813echo "$as_me:$LINENO: checking for egrep" >&5 2814echo $ECHO_N "checking for egrep... $ECHO_C" >&6 2815if test "${ac_cv_prog_egrep+set}" = set; then 2816 echo $ECHO_N "(cached) $ECHO_C" >&6 2817else 2818 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 2819 then ac_cv_prog_egrep='grep -E' 2820 else ac_cv_prog_egrep='egrep' 2821 fi 2822fi 2823echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 2824echo "${ECHO_T}$ac_cv_prog_egrep" >&6 2825 EGREP=$ac_cv_prog_egrep 2826 2827 2828echo "$as_me:$LINENO: checking for ANSI C header files" >&5 2829echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 2830if test "${ac_cv_header_stdc+set}" = set; then 2831 echo $ECHO_N "(cached) $ECHO_C" >&6 2832else 2833 cat >conftest.$ac_ext <<_ACEOF 2834#line $LINENO "configure" 2835/* confdefs.h. */ 2836_ACEOF 2837cat confdefs.h >>conftest.$ac_ext 2838cat >>conftest.$ac_ext <<_ACEOF 2839/* end confdefs.h. */ 2840#include <stdlib.h> 2841#include <stdarg.h> 2842#include <string.h> 2843#include <float.h> 2844 2845int 2846main () 2847{ 2848 2849 ; 2850 return 0; 2851} 2852_ACEOF 2853rm -f conftest.$ac_objext 2854if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2855 (eval $ac_compile) 2>&5 2856 ac_status=$? 2857 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2858 (exit $ac_status); } && 2859 { ac_try='test -s conftest.$ac_objext' 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); }; }; then 2865 ac_cv_header_stdc=yes 2866else 2867 echo "$as_me: failed program was:" >&5 2868sed 's/^/| /' conftest.$ac_ext >&5 2869 2870ac_cv_header_stdc=no 2871fi 2872rm -f conftest.$ac_objext conftest.$ac_ext 2873 2874if test $ac_cv_header_stdc = yes; then 2875 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 2876 cat >conftest.$ac_ext <<_ACEOF 2877#line $LINENO "configure" 2878/* confdefs.h. */ 2879_ACEOF 2880cat confdefs.h >>conftest.$ac_ext 2881cat >>conftest.$ac_ext <<_ACEOF 2882/* end confdefs.h. */ 2883#include <string.h> 2884 2885_ACEOF 2886if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2887 $EGREP "memchr" >/dev/null 2>&1; then 2888 : 2889else 2890 ac_cv_header_stdc=no 2891fi 2892rm -f conftest* 2893 2894fi 2895 2896if test $ac_cv_header_stdc = yes; then 2897 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 2898 cat >conftest.$ac_ext <<_ACEOF 2899#line $LINENO "configure" 2900/* confdefs.h. */ 2901_ACEOF 2902cat confdefs.h >>conftest.$ac_ext 2903cat >>conftest.$ac_ext <<_ACEOF 2904/* end confdefs.h. */ 2905#include <stdlib.h> 2906 2907_ACEOF 2908if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2909 $EGREP "free" >/dev/null 2>&1; then 2910 : 2911else 2912 ac_cv_header_stdc=no 2913fi 2914rm -f conftest* 2915 2916fi 2917 2918if test $ac_cv_header_stdc = yes; then 2919 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 2920 if test "$cross_compiling" = yes; then 2921 : 2922else 2923 cat >conftest.$ac_ext <<_ACEOF 2924#line $LINENO "configure" 2925/* confdefs.h. */ 2926_ACEOF 2927cat confdefs.h >>conftest.$ac_ext 2928cat >>conftest.$ac_ext <<_ACEOF 2929/* end confdefs.h. */ 2930#include <ctype.h> 2931#if ((' ' & 0x0FF) == 0x020) 2932# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 2933# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 2934#else 2935# define ISLOWER(c) \ 2936 (('a' <= (c) && (c) <= 'i') \ 2937 || ('j' <= (c) && (c) <= 'r') \ 2938 || ('s' <= (c) && (c) <= 'z')) 2939# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 2940#endif 2941 2942#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 2943int 2944main () 2945{ 2946 int i; 2947 for (i = 0; i < 256; i++) 2948 if (XOR (islower (i), ISLOWER (i)) 2949 || toupper (i) != TOUPPER (i)) 2950 exit(2); 2951 exit (0); 2952} 2953_ACEOF 2954rm -f conftest$ac_exeext 2955if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2956 (eval $ac_link) 2>&5 2957 ac_status=$? 2958 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2959 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 2960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2961 (eval $ac_try) 2>&5 2962 ac_status=$? 2963 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2964 (exit $ac_status); }; }; then 2965 : 2966else 2967 echo "$as_me: program exited with status $ac_status" >&5 2968echo "$as_me: failed program was:" >&5 2969sed 's/^/| /' conftest.$ac_ext >&5 2970 2971( exit $ac_status ) 2972ac_cv_header_stdc=no 2973fi 2974rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 2975fi 2976fi 2977fi 2978echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 2979echo "${ECHO_T}$ac_cv_header_stdc" >&6 2980if test $ac_cv_header_stdc = yes; then 2981 2982cat >>confdefs.h <<\_ACEOF 2983#define STDC_HEADERS 1 2984_ACEOF 2985 2986fi 2987 2988# On IRIX 5.3, sys/types and inttypes.h are conflicting. 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 2999 inttypes.h stdint.h unistd.h 3000do 3001as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3002echo "$as_me:$LINENO: checking for $ac_header" >&5 3003echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3004if eval "test \"\${$as_ac_Header+set}\" = set"; then 3005 echo $ECHO_N "(cached) $ECHO_C" >&6 3006else 3007 cat >conftest.$ac_ext <<_ACEOF 3008#line $LINENO "configure" 3009/* confdefs.h. */ 3010_ACEOF 3011cat confdefs.h >>conftest.$ac_ext 3012cat >>conftest.$ac_ext <<_ACEOF 3013/* end confdefs.h. */ 3014$ac_includes_default 3015 3016#include <$ac_header> 3017_ACEOF 3018rm -f conftest.$ac_objext 3019if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3020 (eval $ac_compile) 2>&5 3021 ac_status=$? 3022 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3023 (exit $ac_status); } && 3024 { ac_try='test -s conftest.$ac_objext' 3025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3026 (eval $ac_try) 2>&5 3027 ac_status=$? 3028 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3029 (exit $ac_status); }; }; then 3030 eval "$as_ac_Header=yes" 3031else 3032 echo "$as_me: failed program was:" >&5 3033sed 's/^/| /' conftest.$ac_ext >&5 3034 3035eval "$as_ac_Header=no" 3036fi 3037rm -f conftest.$ac_objext conftest.$ac_ext 3038fi 3039echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3040echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3041if test `eval echo '${'$as_ac_Header'}'` = yes; then 3042 cat >>confdefs.h <<_ACEOF 3043#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3044_ACEOF 3045 3046fi 3047 3048done 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 ac_config_files="$ac_config_files Makefile snackConfig.sh" 3085cat >confcache <<\_ACEOF 3086# This file is a shell script that caches the results of configure 3087# tests run on this system so they can be shared between configure 3088# scripts and configure runs, see configure's option --config-cache. 3089# It is not useful on other systems. If it contains results you don't 3090# want to keep, you may remove or edit it. 3091# 3092# config.status only pays attention to the cache file if you give it 3093# the --recheck option to rerun configure. 3094# 3095# `ac_cv_env_foo' variables (set or unset) will be overridden when 3096# loading this file, other *unset* `ac_cv_foo' will be assigned the 3097# following values. 3098 3099_ACEOF 3100 3101# The following way of writing the cache mishandles newlines in values, 3102# but we know of no workaround that is simple, portable, and efficient. 3103# So, don't put newlines in cache variables' values. 3104# Ultrix sh set writes to stderr and can't be redirected directly, 3105# and sets the high bit in the cache file unless we assign to the vars. 3106{ 3107 (set) 2>&1 | 3108 case `(ac_space=' '; set | grep ac_space) 2>&1` in 3109 *ac_space=\ *) 3110 # `set' does not quote correctly, so add quotes (double-quote 3111 # substitution turns \\\\ into \\, and sed turns \\ into \). 3112 sed -n \ 3113 "s/'/'\\\\''/g; 3114 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 3115 ;; 3116 *) 3117 # `set' quotes correctly as required by POSIX, so do not add quotes. 3118 sed -n \ 3119 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 3120 ;; 3121 esac; 3122} | 3123 sed ' 3124 t clear 3125 : clear 3126 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 3127 t end 3128 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 3129 : end' >>confcache 3130if diff $cache_file confcache >/dev/null 2>&1; then :; else 3131 if test -w $cache_file; then 3132 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 3133 cat confcache >$cache_file 3134 else 3135 echo "not updating unwritable cache $cache_file" 3136 fi 3137fi 3138rm -f confcache 3139 3140test "x$prefix" = xNONE && prefix=$ac_default_prefix 3141# Let make expand exec_prefix. 3142test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 3143 3144# VPATH may cause trouble with some makes, so we remove $(srcdir), 3145# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 3146# trailing colons and then remove the whole line if VPATH becomes empty 3147# (actually we leave an empty line to preserve line numbers). 3148if test "x$srcdir" = x.; then 3149 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 3150s/:*\$(srcdir):*/:/; 3151s/:*\${srcdir}:*/:/; 3152s/:*@srcdir@:*/:/; 3153s/^\([^=]*=[ ]*\):*/\1/; 3154s/:*$//; 3155s/^[^=]*=[ ]*$//; 3156}' 3157fi 3158 3159# Transform confdefs.h into DEFS. 3160# Protect against shell expansion while executing Makefile rules. 3161# Protect against Makefile macro expansion. 3162# 3163# If the first sed substitution is executed (which looks for macros that 3164# take arguments), then we branch to the quote section. Otherwise, 3165# look for a macro that doesn't take arguments. 3166cat >confdef2opt.sed <<\_ACEOF 3167t clear 3168: clear 3169s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g 3170t quote 3171s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g 3172t quote 3173d 3174: quote 3175s,[ `~#$^&*(){}\\|;'"<>?],\\&,g 3176s,\[,\\&,g 3177s,\],\\&,g 3178s,\$,$$,g 3179p 3180_ACEOF 3181# We use echo to avoid assuming a particular line-breaking character. 3182# The extra dot is to prevent the shell from consuming trailing 3183# line-breaks from the sub-command output. A line-break within 3184# single-quotes doesn't work because, if this script is created in a 3185# platform that uses two characters for line-breaks (e.g., DOS), tr 3186# would break. 3187ac_LF_and_DOT=`echo; echo .` 3188DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'` 3189rm -f confdef2opt.sed 3190 3191 3192ac_libobjs= 3193ac_ltlibobjs= 3194for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 3195 # 1. Remove the extension, and $U if already installed. 3196 ac_i=`echo "$ac_i" | 3197 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 3198 # 2. Add them. 3199 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 3200 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 3201done 3202LIBOBJS=$ac_libobjs 3203 3204LTLIBOBJS=$ac_ltlibobjs 3205 3206 3207 3208: ${CONFIG_STATUS=./config.status} 3209ac_clean_files_save=$ac_clean_files 3210ac_clean_files="$ac_clean_files $CONFIG_STATUS" 3211{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 3212echo "$as_me: creating $CONFIG_STATUS" >&6;} 3213cat >$CONFIG_STATUS <<_ACEOF 3214#! $SHELL 3215# Generated by $as_me. 3216# Run this file to recreate the current configuration. 3217# Compiler output produced by configure, useful for debugging 3218# configure, is in config.log if it exists. 3219 3220debug=false 3221ac_cs_recheck=false 3222ac_cs_silent=false 3223SHELL=\${CONFIG_SHELL-$SHELL} 3224_ACEOF 3225 3226cat >>$CONFIG_STATUS <<\_ACEOF 3227## --------------------- ## 3228## M4sh Initialization. ## 3229## --------------------- ## 3230 3231# Be Bourne compatible 3232if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 3233 emulate sh 3234 NULLCMD=: 3235 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 3236 # is contrary to our usage. Disable this feature. 3237 alias -g '${1+"$@"}'='"$@"' 3238elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 3239 set -o posix 3240fi 3241 3242# Support unset when possible. 3243if (FOO=FOO; unset FOO) >/dev/null 2>&1; then 3244 as_unset=unset 3245else 3246 as_unset=false 3247fi 3248 3249 3250# Work around bugs in pre-3.0 UWIN ksh. 3251$as_unset ENV MAIL MAILPATH 3252PS1='$ ' 3253PS2='> ' 3254PS4='+ ' 3255 3256# NLS nuisances. 3257for as_var in \ 3258 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 3259 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 3260 LC_TELEPHONE LC_TIME 3261do 3262 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then 3263 eval $as_var=C; export $as_var 3264 else 3265 $as_unset $as_var 3266 fi 3267done 3268 3269# Required to use basename. 3270if expr a : '\(a\)' >/dev/null 2>&1; then 3271 as_expr=expr 3272else 3273 as_expr=false 3274fi 3275 3276if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 3277 as_basename=basename 3278else 3279 as_basename=false 3280fi 3281 3282 3283# Name of the executable. 3284as_me=`$as_basename "$0" || 3285$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 3286 X"$0" : 'X\(//\)$' \| \ 3287 X"$0" : 'X\(/\)$' \| \ 3288 . : '\(.\)' 2>/dev/null || 3289echo X/"$0" | 3290 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 3291 /^X\/\(\/\/\)$/{ s//\1/; q; } 3292 /^X\/\(\/\).*/{ s//\1/; q; } 3293 s/.*/./; q'` 3294 3295 3296# PATH needs CR, and LINENO needs CR and PATH. 3297# Avoid depending upon Character Ranges. 3298as_cr_letters='abcdefghijklmnopqrstuvwxyz' 3299as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 3300as_cr_Letters=$as_cr_letters$as_cr_LETTERS 3301as_cr_digits='0123456789' 3302as_cr_alnum=$as_cr_Letters$as_cr_digits 3303 3304# The user is always right. 3305if test "${PATH_SEPARATOR+set}" != set; then 3306 echo "#! /bin/sh" >conf$$.sh 3307 echo "exit 0" >>conf$$.sh 3308 chmod +x conf$$.sh 3309 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 3310 PATH_SEPARATOR=';' 3311 else 3312 PATH_SEPARATOR=: 3313 fi 3314 rm -f conf$$.sh 3315fi 3316 3317 3318 as_lineno_1=$LINENO 3319 as_lineno_2=$LINENO 3320 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 3321 test "x$as_lineno_1" != "x$as_lineno_2" && 3322 test "x$as_lineno_3" = "x$as_lineno_2" || { 3323 # Find who we are. Look in the path if we contain no path at all 3324 # relative or not. 3325 case $0 in 3326 *[\\/]* ) as_myself=$0 ;; 3327 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3328for as_dir in $PATH 3329do 3330 IFS=$as_save_IFS 3331 test -z "$as_dir" && as_dir=. 3332 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 3333done 3334 3335 ;; 3336 esac 3337 # We did not find ourselves, most probably we were run as `sh COMMAND' 3338 # in which case we are not to be found in the path. 3339 if test "x$as_myself" = x; then 3340 as_myself=$0 3341 fi 3342 if test ! -f "$as_myself"; then 3343 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 3344echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 3345 { (exit 1); exit 1; }; } 3346 fi 3347 case $CONFIG_SHELL in 3348 '') 3349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3350for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 3351do 3352 IFS=$as_save_IFS 3353 test -z "$as_dir" && as_dir=. 3354 for as_base in sh bash ksh sh5; do 3355 case $as_dir in 3356 /*) 3357 if ("$as_dir/$as_base" -c ' 3358 as_lineno_1=$LINENO 3359 as_lineno_2=$LINENO 3360 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 3361 test "x$as_lineno_1" != "x$as_lineno_2" && 3362 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 3363 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 3364 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 3365 CONFIG_SHELL=$as_dir/$as_base 3366 export CONFIG_SHELL 3367 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 3368 fi;; 3369 esac 3370 done 3371done 3372;; 3373 esac 3374 3375 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 3376 # uniformly replaced by the line number. The first 'sed' inserts a 3377 # line-number line before each line; the second 'sed' does the real 3378 # work. The second script uses 'N' to pair each line-number line 3379 # with the numbered line, and appends trailing '-' during 3380 # substitution so that $LINENO is not a special case at line end. 3381 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 3382 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 3383 sed '=' <$as_myself | 3384 sed ' 3385 N 3386 s,$,-, 3387 : loop 3388 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 3389 t loop 3390 s,-$,, 3391 s,^['$as_cr_digits']*\n,, 3392 ' >$as_me.lineno && 3393 chmod +x $as_me.lineno || 3394 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 3395echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 3396 { (exit 1); exit 1; }; } 3397 3398 # Don't try to exec as it changes $[0], causing all sort of problems 3399 # (the dirname of $[0] is not the place where we might find the 3400 # original and so on. Autoconf is especially sensible to this). 3401 . ./$as_me.lineno 3402 # Exit status is that of the last command. 3403 exit 3404} 3405 3406 3407case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 3408 *c*,-n*) ECHO_N= ECHO_C=' 3409' ECHO_T=' ' ;; 3410 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 3411 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 3412esac 3413 3414if expr a : '\(a\)' >/dev/null 2>&1; then 3415 as_expr=expr 3416else 3417 as_expr=false 3418fi 3419 3420rm -f conf$$ conf$$.exe conf$$.file 3421echo >conf$$.file 3422if ln -s conf$$.file conf$$ 2>/dev/null; then 3423 # We could just check for DJGPP; but this test a) works b) is more generic 3424 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 3425 if test -f conf$$.exe; then 3426 # Don't use ln at all; we don't have any links 3427 as_ln_s='cp -p' 3428 else 3429 as_ln_s='ln -s' 3430 fi 3431elif ln conf$$.file conf$$ 2>/dev/null; then 3432 as_ln_s=ln 3433else 3434 as_ln_s='cp -p' 3435fi 3436rm -f conf$$ conf$$.exe conf$$.file 3437 3438if mkdir -p . 2>/dev/null; then 3439 as_mkdir_p=: 3440else 3441 as_mkdir_p=false 3442fi 3443 3444as_executable_p="test -f" 3445 3446# Sed expression to map a string onto a valid CPP name. 3447as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 3448 3449# Sed expression to map a string onto a valid variable name. 3450as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 3451 3452 3453# IFS 3454# We need space, tab and new line, in precisely that order. 3455as_nl=' 3456' 3457IFS=" $as_nl" 3458 3459# CDPATH. 3460$as_unset CDPATH 3461 3462exec 6>&1 3463 3464# Open the log real soon, to keep \$[0] and so on meaningful, and to 3465# report actual input values of CONFIG_FILES etc. instead of their 3466# values after options handling. Logging --version etc. is OK. 3467exec 5>>config.log 3468{ 3469 echo 3470 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 3471## Running $as_me. ## 3472_ASBOX 3473} >&5 3474cat >&5 <<_CSEOF 3475 3476This file was extended by $as_me, which was 3477generated by GNU Autoconf 2.57. Invocation command line was 3478 3479 CONFIG_FILES = $CONFIG_FILES 3480 CONFIG_HEADERS = $CONFIG_HEADERS 3481 CONFIG_LINKS = $CONFIG_LINKS 3482 CONFIG_COMMANDS = $CONFIG_COMMANDS 3483 $ $0 $@ 3484 3485_CSEOF 3486echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 3487echo >&5 3488_ACEOF 3489 3490# Files that config.status was made for. 3491if test -n "$ac_config_files"; then 3492 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 3493fi 3494 3495if test -n "$ac_config_headers"; then 3496 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 3497fi 3498 3499if test -n "$ac_config_links"; then 3500 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 3501fi 3502 3503if test -n "$ac_config_commands"; then 3504 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 3505fi 3506 3507cat >>$CONFIG_STATUS <<\_ACEOF 3508 3509ac_cs_usage="\ 3510\`$as_me' instantiates files from templates according to the 3511current configuration. 3512 3513Usage: $0 [OPTIONS] [FILE]... 3514 3515 -h, --help print this help, then exit 3516 -V, --version print version number, then exit 3517 -q, --quiet do not print progress messages 3518 -d, --debug don't remove temporary files 3519 --recheck update $as_me by reconfiguring in the same conditions 3520 --file=FILE[:TEMPLATE] 3521 instantiate the configuration file FILE 3522 3523Configuration files: 3524$config_files 3525 3526Report bugs to <bug-autoconf@gnu.org>." 3527_ACEOF 3528 3529cat >>$CONFIG_STATUS <<_ACEOF 3530ac_cs_version="\\ 3531config.status 3532configured by $0, generated by GNU Autoconf 2.57, 3533 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 3534 3535Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 3536Free Software Foundation, Inc. 3537This config.status script is free software; the Free Software Foundation 3538gives unlimited permission to copy, distribute and modify it." 3539srcdir=$srcdir 3540_ACEOF 3541 3542cat >>$CONFIG_STATUS <<\_ACEOF 3543# If no file are specified by the user, then we need to provide default 3544# value. By we need to know if files were specified by the user. 3545ac_need_defaults=: 3546while test $# != 0 3547do 3548 case $1 in 3549 --*=*) 3550 ac_option=`expr "x$1" : 'x\([^=]*\)='` 3551 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 3552 ac_shift=: 3553 ;; 3554 -*) 3555 ac_option=$1 3556 ac_optarg=$2 3557 ac_shift=shift 3558 ;; 3559 *) # This is not an option, so the user has probably given explicit 3560 # arguments. 3561 ac_option=$1 3562 ac_need_defaults=false;; 3563 esac 3564 3565 case $ac_option in 3566 # Handling of the options. 3567_ACEOF 3568cat >>$CONFIG_STATUS <<\_ACEOF 3569 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 3570 ac_cs_recheck=: ;; 3571 --version | --vers* | -V ) 3572 echo "$ac_cs_version"; exit 0 ;; 3573 --he | --h) 3574 # Conflict between --help and --header 3575 { { echo "$as_me:$LINENO: error: ambiguous option: $1 3576Try \`$0 --help' for more information." >&5 3577echo "$as_me: error: ambiguous option: $1 3578Try \`$0 --help' for more information." >&2;} 3579 { (exit 1); exit 1; }; };; 3580 --help | --hel | -h ) 3581 echo "$ac_cs_usage"; exit 0 ;; 3582 --debug | --d* | -d ) 3583 debug=: ;; 3584 --file | --fil | --fi | --f ) 3585 $ac_shift 3586 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 3587 ac_need_defaults=false;; 3588 --header | --heade | --head | --hea ) 3589 $ac_shift 3590 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 3591 ac_need_defaults=false;; 3592 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 3593 | -silent | --silent | --silen | --sile | --sil | --si | --s) 3594 ac_cs_silent=: ;; 3595 3596 # This is an error. 3597 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 3598Try \`$0 --help' for more information." >&5 3599echo "$as_me: error: unrecognized option: $1 3600Try \`$0 --help' for more information." >&2;} 3601 { (exit 1); exit 1; }; } ;; 3602 3603 *) ac_config_targets="$ac_config_targets $1" ;; 3604 3605 esac 3606 shift 3607done 3608 3609ac_configure_extra_args= 3610 3611if $ac_cs_silent; then 3612 exec 6>/dev/null 3613 ac_configure_extra_args="$ac_configure_extra_args --silent" 3614fi 3615 3616_ACEOF 3617cat >>$CONFIG_STATUS <<_ACEOF 3618if \$ac_cs_recheck; then 3619 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 3620 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 3621fi 3622 3623_ACEOF 3624 3625 3626 3627 3628 3629cat >>$CONFIG_STATUS <<\_ACEOF 3630for ac_config_target in $ac_config_targets 3631do 3632 case "$ac_config_target" in 3633 # Handling of arguments. 3634 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 3635 "snackConfig.sh" ) CONFIG_FILES="$CONFIG_FILES snackConfig.sh" ;; 3636 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 3637echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 3638 { (exit 1); exit 1; }; };; 3639 esac 3640done 3641 3642# If the user did not use the arguments to specify the items to instantiate, 3643# then the envvar interface is used. Set only those that are not. 3644# We use the long form for the default assignment because of an extremely 3645# bizarre bug on SunOS 4.1.3. 3646if $ac_need_defaults; then 3647 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 3648fi 3649 3650# Have a temporary directory for convenience. Make it in the build tree 3651# simply because there is no reason to put it here, and in addition, 3652# creating and moving files from /tmp can sometimes cause problems. 3653# Create a temporary directory, and hook for its removal unless debugging. 3654$debug || 3655{ 3656 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 3657 trap '{ (exit 1); exit 1; }' 1 2 13 15 3658} 3659 3660# Create a (secure) tmp directory for tmp files. 3661 3662{ 3663 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 3664 test -n "$tmp" && test -d "$tmp" 3665} || 3666{ 3667 tmp=./confstat$$-$RANDOM 3668 (umask 077 && mkdir $tmp) 3669} || 3670{ 3671 echo "$me: cannot create a temporary directory in ." >&2 3672 { (exit 1); exit 1; } 3673} 3674 3675_ACEOF 3676 3677cat >>$CONFIG_STATUS <<_ACEOF 3678 3679# 3680# CONFIG_FILES section. 3681# 3682 3683# No need to generate the scripts if there are no CONFIG_FILES. 3684# This happens for instance when ./config.status config.h 3685if test -n "\$CONFIG_FILES"; then 3686 # Protect against being on the right side of a sed subst in config.status. 3687 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 3688 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 3689s,@SHELL@,$SHELL,;t t 3690s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 3691s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 3692s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 3693s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 3694s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 3695s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 3696s,@exec_prefix@,$exec_prefix,;t t 3697s,@prefix@,$prefix,;t t 3698s,@program_transform_name@,$program_transform_name,;t t 3699s,@bindir@,$bindir,;t t 3700s,@sbindir@,$sbindir,;t t 3701s,@libexecdir@,$libexecdir,;t t 3702s,@datadir@,$datadir,;t t 3703s,@sysconfdir@,$sysconfdir,;t t 3704s,@sharedstatedir@,$sharedstatedir,;t t 3705s,@localstatedir@,$localstatedir,;t t 3706s,@libdir@,$libdir,;t t 3707s,@includedir@,$includedir,;t t 3708s,@oldincludedir@,$oldincludedir,;t t 3709s,@infodir@,$infodir,;t t 3710s,@mandir@,$mandir,;t t 3711s,@build_alias@,$build_alias,;t t 3712s,@host_alias@,$host_alias,;t t 3713s,@target_alias@,$target_alias,;t t 3714s,@DEFS@,$DEFS,;t t 3715s,@ECHO_C@,$ECHO_C,;t t 3716s,@ECHO_N@,$ECHO_N,;t t 3717s,@ECHO_T@,$ECHO_T,;t t 3718s,@LIBS@,$LIBS,;t t 3719s,@CC@,$CC,;t t 3720s,@CFLAGS@,$CFLAGS,;t t 3721s,@LDFLAGS@,$LDFLAGS,;t t 3722s,@CPPFLAGS@,$CPPFLAGS,;t t 3723s,@ac_ct_CC@,$ac_ct_CC,;t t 3724s,@EXEEXT@,$EXEEXT,;t t 3725s,@OBJEXT@,$OBJEXT,;t t 3726s,@CPP@,$CPP,;t t 3727s,@EGREP@,$EGREP,;t t 3728s,@SHLIB_LD@,$SHLIB_LD,;t t 3729s,@SHLIB_SUFFIX@,$SHLIB_SUFFIX,;t t 3730s,@XINCLUDES@,$XINCLUDES,;t t 3731s,@TCL_INCLUDE_SPEC@,$TCL_INCLUDE_SPEC,;t t 3732s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t 3733s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t 3734s,@TCL_SRC_DIR@,$TCL_SRC_DIR,;t t 3735s,@TK_SRC_DIR@,$TK_SRC_DIR,;t t 3736s,@TK_LIBS@,$TK_LIBS,;t t 3737s,@SNACK_INSTALL_PATH@,$SNACK_INSTALL_PATH,;t t 3738s,@SNACK_HINSTALL_PATH@,$SNACK_HINSTALL_PATH,;t t 3739s,@SNACK_LIB_SPEC@,$SNACK_LIB_SPEC,;t t 3740s,@AINC@,$AINC,;t t 3741s,@AFLAG@,$AFLAG,;t t 3742s,@ALIB@,$ALIB,;t t 3743s,@AOBJ@,$AOBJ,;t t 3744s,@NISTINC@,$NISTINC,;t t 3745s,@NISTLIBS@,$NISTLIBS,;t t 3746s,@LIBNIST@,$LIBNIST,;t t 3747s,@OGGINC@,$OGGINC,;t t 3748s,@OGGLIBS@,$OGGLIBS,;t t 3749s,@LIBOGG@,$LIBOGG,;t t 3750s,@TCLAPI@,$TCLAPI,;t t 3751s,@LD_SEARCH_FLAGS@,$LD_SEARCH_FLAGS,;t t 3752s,@TCLVER@,$TCLVER,;t t 3753s,@STUBINITOBJ@,$STUBINITOBJ,;t t 3754s,@DOSTUBLIB@,$DOSTUBLIB,;t t 3755s,@SNACK_STUB_LIB_FLAG@,$SNACK_STUB_LIB_FLAG,;t t 3756s,@SNACK_VERSION@,$SNACK_VERSION,;t t 3757s,@LIBOBJS@,$LIBOBJS,;t t 3758s,@LTLIBOBJS@,$LTLIBOBJS,;t t 3759CEOF 3760 3761_ACEOF 3762 3763 cat >>$CONFIG_STATUS <<\_ACEOF 3764 # Split the substitutions into bite-sized pieces for seds with 3765 # small command number limits, like on Digital OSF/1 and HP-UX. 3766 ac_max_sed_lines=48 3767 ac_sed_frag=1 # Number of current file. 3768 ac_beg=1 # First line for current file. 3769 ac_end=$ac_max_sed_lines # Line after last line for current file. 3770 ac_more_lines=: 3771 ac_sed_cmds= 3772 while $ac_more_lines; do 3773 if test $ac_beg -gt 1; then 3774 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 3775 else 3776 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 3777 fi 3778 if test ! -s $tmp/subs.frag; then 3779 ac_more_lines=false 3780 else 3781 # The purpose of the label and of the branching condition is to 3782 # speed up the sed processing (if there are no `@' at all, there 3783 # is no need to browse any of the substitutions). 3784 # These are the two extra sed commands mentioned above. 3785 (echo ':t 3786 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 3787 if test -z "$ac_sed_cmds"; then 3788 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 3789 else 3790 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 3791 fi 3792 ac_sed_frag=`expr $ac_sed_frag + 1` 3793 ac_beg=$ac_end 3794 ac_end=`expr $ac_end + $ac_max_sed_lines` 3795 fi 3796 done 3797 if test -z "$ac_sed_cmds"; then 3798 ac_sed_cmds=cat 3799 fi 3800fi # test -n "$CONFIG_FILES" 3801 3802_ACEOF 3803cat >>$CONFIG_STATUS <<\_ACEOF 3804for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 3805 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 3806 case $ac_file in 3807 - | *:- | *:-:* ) # input from stdin 3808 cat >$tmp/stdin 3809 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 3810 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 3811 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 3812 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 3813 * ) ac_file_in=$ac_file.in ;; 3814 esac 3815 3816 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 3817 ac_dir=`(dirname "$ac_file") 2>/dev/null || 3818$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 3819 X"$ac_file" : 'X\(//\)[^/]' \| \ 3820 X"$ac_file" : 'X\(//\)$' \| \ 3821 X"$ac_file" : 'X\(/\)' \| \ 3822 . : '\(.\)' 2>/dev/null || 3823echo X"$ac_file" | 3824 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 3825 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 3826 /^X\(\/\/\)$/{ s//\1/; q; } 3827 /^X\(\/\).*/{ s//\1/; q; } 3828 s/.*/./; q'` 3829 { if $as_mkdir_p; then 3830 mkdir -p "$ac_dir" 3831 else 3832 as_dir="$ac_dir" 3833 as_dirs= 3834 while test ! -d "$as_dir"; do 3835 as_dirs="$as_dir $as_dirs" 3836 as_dir=`(dirname "$as_dir") 2>/dev/null || 3837$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 3838 X"$as_dir" : 'X\(//\)[^/]' \| \ 3839 X"$as_dir" : 'X\(//\)$' \| \ 3840 X"$as_dir" : 'X\(/\)' \| \ 3841 . : '\(.\)' 2>/dev/null || 3842echo X"$as_dir" | 3843 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 3844 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 3845 /^X\(\/\/\)$/{ s//\1/; q; } 3846 /^X\(\/\).*/{ s//\1/; q; } 3847 s/.*/./; q'` 3848 done 3849 test ! -n "$as_dirs" || mkdir $as_dirs 3850 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 3851echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 3852 { (exit 1); exit 1; }; }; } 3853 3854 ac_builddir=. 3855 3856if test "$ac_dir" != .; then 3857 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 3858 # A "../" for each directory in $ac_dir_suffix. 3859 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 3860else 3861 ac_dir_suffix= ac_top_builddir= 3862fi 3863 3864case $srcdir in 3865 .) # No --srcdir option. We are building in place. 3866 ac_srcdir=. 3867 if test -z "$ac_top_builddir"; then 3868 ac_top_srcdir=. 3869 else 3870 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 3871 fi ;; 3872 [\\/]* | ?:[\\/]* ) # Absolute path. 3873 ac_srcdir=$srcdir$ac_dir_suffix; 3874 ac_top_srcdir=$srcdir ;; 3875 *) # Relative path. 3876 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 3877 ac_top_srcdir=$ac_top_builddir$srcdir ;; 3878esac 3879# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be 3880# absolute. 3881ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` 3882ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` 3883ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` 3884ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` 3885 3886 3887 3888 if test x"$ac_file" != x-; then 3889 { echo "$as_me:$LINENO: creating $ac_file" >&5 3890echo "$as_me: creating $ac_file" >&6;} 3891 rm -f "$ac_file" 3892 fi 3893 # Let's still pretend it is `configure' which instantiates (i.e., don't 3894 # use $as_me), people would be surprised to read: 3895 # /* config.h. Generated by config.status. */ 3896 if test x"$ac_file" = x-; then 3897 configure_input= 3898 else 3899 configure_input="$ac_file. " 3900 fi 3901 configure_input=$configure_input"Generated from `echo $ac_file_in | 3902 sed 's,.*/,,'` by configure." 3903 3904 # First look for the input files in the build tree, otherwise in the 3905 # src tree. 3906 ac_file_inputs=`IFS=: 3907 for f in $ac_file_in; do 3908 case $f in 3909 -) echo $tmp/stdin ;; 3910 [\\/$]*) 3911 # Absolute (can't be DOS-style, as IFS=:) 3912 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 3913echo "$as_me: error: cannot find input file: $f" >&2;} 3914 { (exit 1); exit 1; }; } 3915 echo $f;; 3916 *) # Relative 3917 if test -f "$f"; then 3918 # Build tree 3919 echo $f 3920 elif test -f "$srcdir/$f"; then 3921 # Source tree 3922 echo $srcdir/$f 3923 else 3924 # /dev/null tree 3925 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 3926echo "$as_me: error: cannot find input file: $f" >&2;} 3927 { (exit 1); exit 1; }; } 3928 fi;; 3929 esac 3930 done` || { (exit 1); exit 1; } 3931_ACEOF 3932cat >>$CONFIG_STATUS <<_ACEOF 3933 sed "$ac_vpsub 3934$extrasub 3935_ACEOF 3936cat >>$CONFIG_STATUS <<\_ACEOF 3937:t 3938/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 3939s,@configure_input@,$configure_input,;t t 3940s,@srcdir@,$ac_srcdir,;t t 3941s,@abs_srcdir@,$ac_abs_srcdir,;t t 3942s,@top_srcdir@,$ac_top_srcdir,;t t 3943s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 3944s,@builddir@,$ac_builddir,;t t 3945s,@abs_builddir@,$ac_abs_builddir,;t t 3946s,@top_builddir@,$ac_top_builddir,;t t 3947s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 3948" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 3949 rm -f $tmp/stdin 3950 if test x"$ac_file" != x-; then 3951 mv $tmp/out $ac_file 3952 else 3953 cat $tmp/out 3954 rm -f $tmp/out 3955 fi 3956 3957done 3958_ACEOF 3959 3960cat >>$CONFIG_STATUS <<\_ACEOF 3961 3962{ (exit 0); exit 0; } 3963_ACEOF 3964chmod +x $CONFIG_STATUS 3965ac_clean_files=$ac_clean_files_save 3966 3967 3968# configure is writing to config.log, and then calls config.status. 3969# config.status does its own redirection, appending to config.log. 3970# Unfortunately, on DOS this fails, as config.log is still kept open 3971# by configure, so config.status won't be able to write to it; its 3972# output is simply discarded. So we exec the FD to /dev/null, 3973# effectively closing config.log, so it can be properly (re)opened and 3974# appended to by config.status. When coming back to configure, we 3975# need to make the FD available again. 3976if test "$no_create" != yes; then 3977 ac_cs_success=: 3978 ac_config_status_args= 3979 test "$silent" = yes && 3980 ac_config_status_args="$ac_config_status_args --quiet" 3981 exec 5>/dev/null 3982 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 3983 exec 5>>config.log 3984 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 3985 # would make configure fail if this is the last instruction. 3986 $ac_cs_success || { (exit 1); exit 1; } 3987fi 3988 3989