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 srcdir SNACK_VERSION SNACK_NODOT_VERSION TCL_INCLUDE_SPEC TK_INCLUDE_SPEC TCL_LIB_SPEC TK_LIB_SPEC SNACK_INSTALL_PATH SNACK_HINSTALL_PATH SNACK_LIB_SPEC SNACK_STUB_LIB_FILE SNACK_STUB_LIB_FLAG 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 Packages: 840 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 841 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 842 --with-tcl=DIR use Tcl 8.5 binaries from DIR 843 --with-tk=DIR use Tk 8.5 binaries from DIR 844 845Some influential environment variables: 846 CC C compiler command 847 CFLAGS C compiler flags 848 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 849 nonstandard directory <lib dir> 850 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 851 headers in a nonstandard directory <include dir> 852 CPP C preprocessor 853 854Use these variables to override the choices made by `configure' or to help 855it to find libraries and programs with nonstandard names/locations. 856 857_ACEOF 858fi 859 860if test "$ac_init_help" = "recursive"; then 861 # If there are subdirs, report their specific --help. 862 ac_popdir=`pwd` 863 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 864 test -d $ac_dir || continue 865 ac_builddir=. 866 867if test "$ac_dir" != .; then 868 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 869 # A "../" for each directory in $ac_dir_suffix. 870 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 871else 872 ac_dir_suffix= ac_top_builddir= 873fi 874 875case $srcdir in 876 .) # No --srcdir option. We are building in place. 877 ac_srcdir=. 878 if test -z "$ac_top_builddir"; then 879 ac_top_srcdir=. 880 else 881 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 882 fi ;; 883 [\\/]* | ?:[\\/]* ) # Absolute path. 884 ac_srcdir=$srcdir$ac_dir_suffix; 885 ac_top_srcdir=$srcdir ;; 886 *) # Relative path. 887 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 888 ac_top_srcdir=$ac_top_builddir$srcdir ;; 889esac 890# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be 891# absolute. 892ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` 893ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` 894ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` 895ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` 896 897 cd $ac_dir 898 # Check for guested configure; otherwise get Cygnus style configure. 899 if test -f $ac_srcdir/configure.gnu; then 900 echo 901 $SHELL $ac_srcdir/configure.gnu --help=recursive 902 elif test -f $ac_srcdir/configure; then 903 echo 904 $SHELL $ac_srcdir/configure --help=recursive 905 elif test -f $ac_srcdir/configure.ac || 906 test -f $ac_srcdir/configure.in; then 907 echo 908 $ac_configure --help 909 else 910 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 911 fi 912 cd $ac_popdir 913 done 914fi 915 916test -n "$ac_init_help" && exit 0 917if $ac_init_version; then 918 cat <<\_ACEOF 919 920Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 921Free Software Foundation, Inc. 922This configure script is free software; the Free Software Foundation 923gives unlimited permission to copy, distribute and modify it. 924_ACEOF 925 exit 0 926fi 927exec 5>config.log 928cat >&5 <<_ACEOF 929This file contains any messages produced by compilers while 930running configure, to aid debugging if configure makes a mistake. 931 932It was created by $as_me, which was 933generated by GNU Autoconf 2.57. Invocation command line was 934 935 $ $0 $@ 936 937_ACEOF 938{ 939cat <<_ASUNAME 940## --------- ## 941## Platform. ## 942## --------- ## 943 944hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 945uname -m = `(uname -m) 2>/dev/null || echo unknown` 946uname -r = `(uname -r) 2>/dev/null || echo unknown` 947uname -s = `(uname -s) 2>/dev/null || echo unknown` 948uname -v = `(uname -v) 2>/dev/null || echo unknown` 949 950/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 951/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 952 953/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 954/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 955/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 956hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 957/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 958/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 959/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 960 961_ASUNAME 962 963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 964for as_dir in $PATH 965do 966 IFS=$as_save_IFS 967 test -z "$as_dir" && as_dir=. 968 echo "PATH: $as_dir" 969done 970 971} >&5 972 973cat >&5 <<_ACEOF 974 975 976## ----------- ## 977## Core tests. ## 978## ----------- ## 979 980_ACEOF 981 982 983# Keep a trace of the command line. 984# Strip out --no-create and --no-recursion so they do not pile up. 985# Strip out --silent because we don't want to record it for future runs. 986# Also quote any args containing shell meta-characters. 987# Make two passes to allow for proper duplicate-argument suppression. 988ac_configure_args= 989ac_configure_args0= 990ac_configure_args1= 991ac_sep= 992ac_must_keep_next=false 993for ac_pass in 1 2 994do 995 for ac_arg 996 do 997 case $ac_arg in 998 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 999 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1000 | -silent | --silent | --silen | --sile | --sil) 1001 continue ;; 1002 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1003 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1004 esac 1005 case $ac_pass in 1006 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1007 2) 1008 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1009 if test $ac_must_keep_next = true; then 1010 ac_must_keep_next=false # Got value, back to normal. 1011 else 1012 case $ac_arg in 1013 *=* | --config-cache | -C | -disable-* | --disable-* \ 1014 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1015 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1016 | -with-* | --with-* | -without-* | --without-* | --x) 1017 case "$ac_configure_args0 " in 1018 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1019 esac 1020 ;; 1021 -* ) ac_must_keep_next=true ;; 1022 esac 1023 fi 1024 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1025 # Get rid of the leading space. 1026 ac_sep=" " 1027 ;; 1028 esac 1029 done 1030done 1031$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1032$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1033 1034# When interrupted or exit'd, cleanup temporary files, and complete 1035# config.log. We remove comments because anyway the quotes in there 1036# would cause problems or look ugly. 1037# WARNING: Be sure not to use single quotes in there, as some shells, 1038# such as our DU 5.0 friend, will then `close' the trap. 1039trap 'exit_status=$? 1040 # Save into config.log some information that might help in debugging. 1041 { 1042 echo 1043 1044 cat <<\_ASBOX 1045## ---------------- ## 1046## Cache variables. ## 1047## ---------------- ## 1048_ASBOX 1049 echo 1050 # The following way of writing the cache mishandles newlines in values, 1051{ 1052 (set) 2>&1 | 1053 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1054 *ac_space=\ *) 1055 sed -n \ 1056 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1057 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1058 ;; 1059 *) 1060 sed -n \ 1061 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1062 ;; 1063 esac; 1064} 1065 echo 1066 1067 cat <<\_ASBOX 1068## ----------------- ## 1069## Output variables. ## 1070## ----------------- ## 1071_ASBOX 1072 echo 1073 for ac_var in $ac_subst_vars 1074 do 1075 eval ac_val=$`echo $ac_var` 1076 echo "$ac_var='"'"'$ac_val'"'"'" 1077 done | sort 1078 echo 1079 1080 if test -n "$ac_subst_files"; then 1081 cat <<\_ASBOX 1082## ------------- ## 1083## Output files. ## 1084## ------------- ## 1085_ASBOX 1086 echo 1087 for ac_var in $ac_subst_files 1088 do 1089 eval ac_val=$`echo $ac_var` 1090 echo "$ac_var='"'"'$ac_val'"'"'" 1091 done | sort 1092 echo 1093 fi 1094 1095 if test -s confdefs.h; then 1096 cat <<\_ASBOX 1097## ----------- ## 1098## confdefs.h. ## 1099## ----------- ## 1100_ASBOX 1101 echo 1102 sed "/^$/d" confdefs.h | sort 1103 echo 1104 fi 1105 test "$ac_signal" != 0 && 1106 echo "$as_me: caught signal $ac_signal" 1107 echo "$as_me: exit $exit_status" 1108 } >&5 1109 rm -f core core.* *.core && 1110 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1111 exit $exit_status 1112 ' 0 1113for ac_signal in 1 2 13 15; do 1114 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1115done 1116ac_signal=0 1117 1118# confdefs.h avoids OS command line length limits that DEFS can exceed. 1119rm -rf conftest* confdefs.h 1120# AIX cpp loses on an empty file, so make sure it contains at least a newline. 1121echo >confdefs.h 1122 1123# Predefined preprocessor variables. 1124 1125cat >>confdefs.h <<_ACEOF 1126#define PACKAGE_NAME "$PACKAGE_NAME" 1127_ACEOF 1128 1129 1130cat >>confdefs.h <<_ACEOF 1131#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1132_ACEOF 1133 1134 1135cat >>confdefs.h <<_ACEOF 1136#define PACKAGE_VERSION "$PACKAGE_VERSION" 1137_ACEOF 1138 1139 1140cat >>confdefs.h <<_ACEOF 1141#define PACKAGE_STRING "$PACKAGE_STRING" 1142_ACEOF 1143 1144 1145cat >>confdefs.h <<_ACEOF 1146#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1147_ACEOF 1148 1149 1150# Let the site file select an alternate cache file if it wants to. 1151# Prefer explicitly selected file to automatically selected ones. 1152if test -z "$CONFIG_SITE"; then 1153 if test "x$prefix" != xNONE; then 1154 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1155 else 1156 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1157 fi 1158fi 1159for ac_site_file in $CONFIG_SITE; do 1160 if test -r "$ac_site_file"; then 1161 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1162echo "$as_me: loading site script $ac_site_file" >&6;} 1163 sed 's/^/| /' "$ac_site_file" >&5 1164 . "$ac_site_file" 1165 fi 1166done 1167 1168if test -r "$cache_file"; then 1169 # Some versions of bash will fail to source /dev/null (special 1170 # files actually), so we avoid doing that. 1171 if test -f "$cache_file"; then 1172 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1173echo "$as_me: loading cache $cache_file" >&6;} 1174 case $cache_file in 1175 [\\/]* | ?:[\\/]* ) . $cache_file;; 1176 *) . ./$cache_file;; 1177 esac 1178 fi 1179else 1180 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1181echo "$as_me: creating cache $cache_file" >&6;} 1182 >$cache_file 1183fi 1184 1185# Check that the precious variables saved in the cache have kept the same 1186# value. 1187ac_cache_corrupted=false 1188for ac_var in `(set) 2>&1 | 1189 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1190 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1191 eval ac_new_set=\$ac_env_${ac_var}_set 1192 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1193 eval ac_new_val="\$ac_env_${ac_var}_value" 1194 case $ac_old_set,$ac_new_set in 1195 set,) 1196 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1197echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1198 ac_cache_corrupted=: ;; 1199 ,set) 1200 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1201echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1202 ac_cache_corrupted=: ;; 1203 ,);; 1204 *) 1205 if test "x$ac_old_val" != "x$ac_new_val"; then 1206 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1207echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1208 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1209echo "$as_me: former value: $ac_old_val" >&2;} 1210 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1211echo "$as_me: current value: $ac_new_val" >&2;} 1212 ac_cache_corrupted=: 1213 fi;; 1214 esac 1215 # Pass precious variables to config.status. 1216 if test "$ac_new_set" = set; then 1217 case $ac_new_val in 1218 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1219 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1220 *) ac_arg=$ac_var=$ac_new_val ;; 1221 esac 1222 case " $ac_configure_args " in 1223 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1224 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1225 esac 1226 fi 1227done 1228if $ac_cache_corrupted; then 1229 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1230echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1231 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1232echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1233 { (exit 1); exit 1; }; } 1234fi 1235 1236ac_ext=c 1237ac_cpp='$CPP $CPPFLAGS' 1238ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1239ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1240ac_compiler_gnu=$ac_cv_c_compiler_gnu 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261SNACK_VERSION=`sh $srcdir/sver.sh $srcdir/../generic/snack.h` 1262SNACK_NODOT_VERSION=`echo $SNACK_VERSION | tr -d .` 1263 1264ac_ext=c 1265ac_cpp='$CPP $CPPFLAGS' 1266ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1267ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1268ac_compiler_gnu=$ac_cv_c_compiler_gnu 1269if test -n "$ac_tool_prefix"; then 1270 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1271set dummy ${ac_tool_prefix}gcc; ac_word=$2 1272echo "$as_me:$LINENO: checking for $ac_word" >&5 1273echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1274if test "${ac_cv_prog_CC+set}" = set; then 1275 echo $ECHO_N "(cached) $ECHO_C" >&6 1276else 1277 if test -n "$CC"; then 1278 ac_cv_prog_CC="$CC" # Let the user override the test. 1279else 1280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1281for as_dir in $PATH 1282do 1283 IFS=$as_save_IFS 1284 test -z "$as_dir" && as_dir=. 1285 for ac_exec_ext in '' $ac_executable_extensions; do 1286 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1287 ac_cv_prog_CC="${ac_tool_prefix}gcc" 1288 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1289 break 2 1290 fi 1291done 1292done 1293 1294fi 1295fi 1296CC=$ac_cv_prog_CC 1297if test -n "$CC"; then 1298 echo "$as_me:$LINENO: result: $CC" >&5 1299echo "${ECHO_T}$CC" >&6 1300else 1301 echo "$as_me:$LINENO: result: no" >&5 1302echo "${ECHO_T}no" >&6 1303fi 1304 1305fi 1306if test -z "$ac_cv_prog_CC"; then 1307 ac_ct_CC=$CC 1308 # Extract the first word of "gcc", so it can be a program name with args. 1309set dummy gcc; ac_word=$2 1310echo "$as_me:$LINENO: checking for $ac_word" >&5 1311echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1312if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1313 echo $ECHO_N "(cached) $ECHO_C" >&6 1314else 1315 if test -n "$ac_ct_CC"; then 1316 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1317else 1318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1319for as_dir in $PATH 1320do 1321 IFS=$as_save_IFS 1322 test -z "$as_dir" && as_dir=. 1323 for ac_exec_ext in '' $ac_executable_extensions; do 1324 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1325 ac_cv_prog_ac_ct_CC="gcc" 1326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1327 break 2 1328 fi 1329done 1330done 1331 1332fi 1333fi 1334ac_ct_CC=$ac_cv_prog_ac_ct_CC 1335if test -n "$ac_ct_CC"; then 1336 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1337echo "${ECHO_T}$ac_ct_CC" >&6 1338else 1339 echo "$as_me:$LINENO: result: no" >&5 1340echo "${ECHO_T}no" >&6 1341fi 1342 1343 CC=$ac_ct_CC 1344else 1345 CC="$ac_cv_prog_CC" 1346fi 1347 1348if test -z "$CC"; then 1349 if test -n "$ac_tool_prefix"; then 1350 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1351set dummy ${ac_tool_prefix}cc; ac_word=$2 1352echo "$as_me:$LINENO: checking for $ac_word" >&5 1353echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1354if test "${ac_cv_prog_CC+set}" = set; then 1355 echo $ECHO_N "(cached) $ECHO_C" >&6 1356else 1357 if test -n "$CC"; then 1358 ac_cv_prog_CC="$CC" # Let the user override the test. 1359else 1360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1361for as_dir in $PATH 1362do 1363 IFS=$as_save_IFS 1364 test -z "$as_dir" && as_dir=. 1365 for ac_exec_ext in '' $ac_executable_extensions; do 1366 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1367 ac_cv_prog_CC="${ac_tool_prefix}cc" 1368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1369 break 2 1370 fi 1371done 1372done 1373 1374fi 1375fi 1376CC=$ac_cv_prog_CC 1377if test -n "$CC"; then 1378 echo "$as_me:$LINENO: result: $CC" >&5 1379echo "${ECHO_T}$CC" >&6 1380else 1381 echo "$as_me:$LINENO: result: no" >&5 1382echo "${ECHO_T}no" >&6 1383fi 1384 1385fi 1386if test -z "$ac_cv_prog_CC"; then 1387 ac_ct_CC=$CC 1388 # Extract the first word of "cc", so it can be a program name with args. 1389set dummy cc; ac_word=$2 1390echo "$as_me:$LINENO: checking for $ac_word" >&5 1391echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1392if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1393 echo $ECHO_N "(cached) $ECHO_C" >&6 1394else 1395 if test -n "$ac_ct_CC"; then 1396 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1397else 1398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1399for as_dir in $PATH 1400do 1401 IFS=$as_save_IFS 1402 test -z "$as_dir" && as_dir=. 1403 for ac_exec_ext in '' $ac_executable_extensions; do 1404 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1405 ac_cv_prog_ac_ct_CC="cc" 1406 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1407 break 2 1408 fi 1409done 1410done 1411 1412fi 1413fi 1414ac_ct_CC=$ac_cv_prog_ac_ct_CC 1415if test -n "$ac_ct_CC"; then 1416 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1417echo "${ECHO_T}$ac_ct_CC" >&6 1418else 1419 echo "$as_me:$LINENO: result: no" >&5 1420echo "${ECHO_T}no" >&6 1421fi 1422 1423 CC=$ac_ct_CC 1424else 1425 CC="$ac_cv_prog_CC" 1426fi 1427 1428fi 1429if test -z "$CC"; then 1430 # Extract the first word of "cc", so it can be a program name with args. 1431set dummy cc; ac_word=$2 1432echo "$as_me:$LINENO: checking for $ac_word" >&5 1433echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1434if test "${ac_cv_prog_CC+set}" = set; then 1435 echo $ECHO_N "(cached) $ECHO_C" >&6 1436else 1437 if test -n "$CC"; then 1438 ac_cv_prog_CC="$CC" # Let the user override the test. 1439else 1440 ac_prog_rejected=no 1441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1442for as_dir in $PATH 1443do 1444 IFS=$as_save_IFS 1445 test -z "$as_dir" && as_dir=. 1446 for ac_exec_ext in '' $ac_executable_extensions; do 1447 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1448 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 1449 ac_prog_rejected=yes 1450 continue 1451 fi 1452 ac_cv_prog_CC="cc" 1453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1454 break 2 1455 fi 1456done 1457done 1458 1459if test $ac_prog_rejected = yes; then 1460 # We found a bogon in the path, so make sure we never use it. 1461 set dummy $ac_cv_prog_CC 1462 shift 1463 if test $# != 0; then 1464 # We chose a different compiler from the bogus one. 1465 # However, it has the same basename, so the bogon will be chosen 1466 # first if we set CC to just the basename; use the full file name. 1467 shift 1468 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 1469 fi 1470fi 1471fi 1472fi 1473CC=$ac_cv_prog_CC 1474if test -n "$CC"; then 1475 echo "$as_me:$LINENO: result: $CC" >&5 1476echo "${ECHO_T}$CC" >&6 1477else 1478 echo "$as_me:$LINENO: result: no" >&5 1479echo "${ECHO_T}no" >&6 1480fi 1481 1482fi 1483if test -z "$CC"; then 1484 if test -n "$ac_tool_prefix"; then 1485 for ac_prog in cl 1486 do 1487 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1488set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1489echo "$as_me:$LINENO: checking for $ac_word" >&5 1490echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1491if test "${ac_cv_prog_CC+set}" = set; then 1492 echo $ECHO_N "(cached) $ECHO_C" >&6 1493else 1494 if test -n "$CC"; then 1495 ac_cv_prog_CC="$CC" # Let the user override the test. 1496else 1497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1498for as_dir in $PATH 1499do 1500 IFS=$as_save_IFS 1501 test -z "$as_dir" && as_dir=. 1502 for ac_exec_ext in '' $ac_executable_extensions; do 1503 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1504 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 1505 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1506 break 2 1507 fi 1508done 1509done 1510 1511fi 1512fi 1513CC=$ac_cv_prog_CC 1514if test -n "$CC"; then 1515 echo "$as_me:$LINENO: result: $CC" >&5 1516echo "${ECHO_T}$CC" >&6 1517else 1518 echo "$as_me:$LINENO: result: no" >&5 1519echo "${ECHO_T}no" >&6 1520fi 1521 1522 test -n "$CC" && break 1523 done 1524fi 1525if test -z "$CC"; then 1526 ac_ct_CC=$CC 1527 for ac_prog in cl 1528do 1529 # Extract the first word of "$ac_prog", so it can be a program name with args. 1530set dummy $ac_prog; ac_word=$2 1531echo "$as_me:$LINENO: checking for $ac_word" >&5 1532echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1533if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1534 echo $ECHO_N "(cached) $ECHO_C" >&6 1535else 1536 if test -n "$ac_ct_CC"; then 1537 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1538else 1539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1540for as_dir in $PATH 1541do 1542 IFS=$as_save_IFS 1543 test -z "$as_dir" && as_dir=. 1544 for ac_exec_ext in '' $ac_executable_extensions; do 1545 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1546 ac_cv_prog_ac_ct_CC="$ac_prog" 1547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1548 break 2 1549 fi 1550done 1551done 1552 1553fi 1554fi 1555ac_ct_CC=$ac_cv_prog_ac_ct_CC 1556if test -n "$ac_ct_CC"; then 1557 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1558echo "${ECHO_T}$ac_ct_CC" >&6 1559else 1560 echo "$as_me:$LINENO: result: no" >&5 1561echo "${ECHO_T}no" >&6 1562fi 1563 1564 test -n "$ac_ct_CC" && break 1565done 1566 1567 CC=$ac_ct_CC 1568fi 1569 1570fi 1571 1572 1573test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 1574See \`config.log' for more details." >&5 1575echo "$as_me: error: no acceptable C compiler found in \$PATH 1576See \`config.log' for more details." >&2;} 1577 { (exit 1); exit 1; }; } 1578 1579# Provide some information about the compiler. 1580echo "$as_me:$LINENO:" \ 1581 "checking for C compiler version" >&5 1582ac_compiler=`set X $ac_compile; echo $2` 1583{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 1584 (eval $ac_compiler --version </dev/null >&5) 2>&5 1585 ac_status=$? 1586 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1587 (exit $ac_status); } 1588{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 1589 (eval $ac_compiler -v </dev/null >&5) 2>&5 1590 ac_status=$? 1591 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1592 (exit $ac_status); } 1593{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 1594 (eval $ac_compiler -V </dev/null >&5) 2>&5 1595 ac_status=$? 1596 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1597 (exit $ac_status); } 1598 1599cat >conftest.$ac_ext <<_ACEOF 1600#line $LINENO "configure" 1601/* confdefs.h. */ 1602_ACEOF 1603cat confdefs.h >>conftest.$ac_ext 1604cat >>conftest.$ac_ext <<_ACEOF 1605/* end confdefs.h. */ 1606 1607int 1608main () 1609{ 1610 1611 ; 1612 return 0; 1613} 1614_ACEOF 1615ac_clean_files_save=$ac_clean_files 1616ac_clean_files="$ac_clean_files a.out a.exe b.out" 1617# Try to create an executable without -o first, disregard a.out. 1618# It will help us diagnose broken compilers, and finding out an intuition 1619# of exeext. 1620echo "$as_me:$LINENO: checking for C compiler default output" >&5 1621echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 1622ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 1623if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 1624 (eval $ac_link_default) 2>&5 1625 ac_status=$? 1626 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1627 (exit $ac_status); }; then 1628 # Find the output, starting from the most likely. This scheme is 1629# not robust to junk in `.', hence go to wildcards (a.*) only as a last 1630# resort. 1631 1632# Be careful to initialize this variable, since it used to be cached. 1633# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 1634ac_cv_exeext= 1635# b.out is created by i960 compilers. 1636for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 1637do 1638 test -f "$ac_file" || continue 1639 case $ac_file in 1640 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 1641 ;; 1642 conftest.$ac_ext ) 1643 # This is the source file. 1644 ;; 1645 [ab].out ) 1646 # We found the default executable, but exeext='' is most 1647 # certainly right. 1648 break;; 1649 *.* ) 1650 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1651 # FIXME: I believe we export ac_cv_exeext for Libtool, 1652 # but it would be cool to find out if it's true. Does anybody 1653 # maintain Libtool? --akim. 1654 export ac_cv_exeext 1655 break;; 1656 * ) 1657 break;; 1658 esac 1659done 1660else 1661 echo "$as_me: failed program was:" >&5 1662sed 's/^/| /' conftest.$ac_ext >&5 1663 1664{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 1665See \`config.log' for more details." >&5 1666echo "$as_me: error: C compiler cannot create executables 1667See \`config.log' for more details." >&2;} 1668 { (exit 77); exit 77; }; } 1669fi 1670 1671ac_exeext=$ac_cv_exeext 1672echo "$as_me:$LINENO: result: $ac_file" >&5 1673echo "${ECHO_T}$ac_file" >&6 1674 1675# Check the compiler produces executables we can run. If not, either 1676# the compiler is broken, or we cross compile. 1677echo "$as_me:$LINENO: checking whether the C compiler works" >&5 1678echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 1679# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 1680# If not cross compiling, check that we can run a simple program. 1681if test "$cross_compiling" != yes; then 1682 if { ac_try='./$ac_file' 1683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1684 (eval $ac_try) 2>&5 1685 ac_status=$? 1686 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1687 (exit $ac_status); }; }; then 1688 cross_compiling=no 1689 else 1690 if test "$cross_compiling" = maybe; then 1691 cross_compiling=yes 1692 else 1693 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 1694If you meant to cross compile, use \`--host'. 1695See \`config.log' for more details." >&5 1696echo "$as_me: error: cannot run C compiled programs. 1697If you meant to cross compile, use \`--host'. 1698See \`config.log' for more details." >&2;} 1699 { (exit 1); exit 1; }; } 1700 fi 1701 fi 1702fi 1703echo "$as_me:$LINENO: result: yes" >&5 1704echo "${ECHO_T}yes" >&6 1705 1706rm -f a.out a.exe conftest$ac_cv_exeext b.out 1707ac_clean_files=$ac_clean_files_save 1708# Check the compiler produces executables we can run. If not, either 1709# the compiler is broken, or we cross compile. 1710echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 1711echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 1712echo "$as_me:$LINENO: result: $cross_compiling" >&5 1713echo "${ECHO_T}$cross_compiling" >&6 1714 1715echo "$as_me:$LINENO: checking for suffix of executables" >&5 1716echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 1717if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 1718 (eval $ac_link) 2>&5 1719 ac_status=$? 1720 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1721 (exit $ac_status); }; then 1722 # If both `conftest.exe' and `conftest' are `present' (well, observable) 1723# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 1724# work properly (i.e., refer to `conftest.exe'), while it won't with 1725# `rm'. 1726for ac_file in conftest.exe conftest conftest.*; do 1727 test -f "$ac_file" || continue 1728 case $ac_file in 1729 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 1730 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1731 export ac_cv_exeext 1732 break;; 1733 * ) break;; 1734 esac 1735done 1736else 1737 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 1738See \`config.log' for more details." >&5 1739echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 1740See \`config.log' for more details." >&2;} 1741 { (exit 1); exit 1; }; } 1742fi 1743 1744rm -f conftest$ac_cv_exeext 1745echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 1746echo "${ECHO_T}$ac_cv_exeext" >&6 1747 1748rm -f conftest.$ac_ext 1749EXEEXT=$ac_cv_exeext 1750ac_exeext=$EXEEXT 1751echo "$as_me:$LINENO: checking for suffix of object files" >&5 1752echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 1753if test "${ac_cv_objext+set}" = set; then 1754 echo $ECHO_N "(cached) $ECHO_C" >&6 1755else 1756 cat >conftest.$ac_ext <<_ACEOF 1757#line $LINENO "configure" 1758/* confdefs.h. */ 1759_ACEOF 1760cat confdefs.h >>conftest.$ac_ext 1761cat >>conftest.$ac_ext <<_ACEOF 1762/* end confdefs.h. */ 1763 1764int 1765main () 1766{ 1767 1768 ; 1769 return 0; 1770} 1771_ACEOF 1772rm -f conftest.o conftest.obj 1773if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1774 (eval $ac_compile) 2>&5 1775 ac_status=$? 1776 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1777 (exit $ac_status); }; then 1778 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 1779 case $ac_file in 1780 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 1781 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 1782 break;; 1783 esac 1784done 1785else 1786 echo "$as_me: failed program was:" >&5 1787sed 's/^/| /' conftest.$ac_ext >&5 1788 1789{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 1790See \`config.log' for more details." >&5 1791echo "$as_me: error: cannot compute suffix of object files: cannot compile 1792See \`config.log' for more details." >&2;} 1793 { (exit 1); exit 1; }; } 1794fi 1795 1796rm -f conftest.$ac_cv_objext conftest.$ac_ext 1797fi 1798echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 1799echo "${ECHO_T}$ac_cv_objext" >&6 1800OBJEXT=$ac_cv_objext 1801ac_objext=$OBJEXT 1802echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 1803echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 1804if test "${ac_cv_c_compiler_gnu+set}" = set; then 1805 echo $ECHO_N "(cached) $ECHO_C" >&6 1806else 1807 cat >conftest.$ac_ext <<_ACEOF 1808#line $LINENO "configure" 1809/* confdefs.h. */ 1810_ACEOF 1811cat confdefs.h >>conftest.$ac_ext 1812cat >>conftest.$ac_ext <<_ACEOF 1813/* end confdefs.h. */ 1814 1815int 1816main () 1817{ 1818#ifndef __GNUC__ 1819 choke me 1820#endif 1821 1822 ; 1823 return 0; 1824} 1825_ACEOF 1826rm -f conftest.$ac_objext 1827if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1828 (eval $ac_compile) 2>&5 1829 ac_status=$? 1830 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1831 (exit $ac_status); } && 1832 { ac_try='test -s conftest.$ac_objext' 1833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1834 (eval $ac_try) 2>&5 1835 ac_status=$? 1836 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1837 (exit $ac_status); }; }; then 1838 ac_compiler_gnu=yes 1839else 1840 echo "$as_me: failed program was:" >&5 1841sed 's/^/| /' conftest.$ac_ext >&5 1842 1843ac_compiler_gnu=no 1844fi 1845rm -f conftest.$ac_objext conftest.$ac_ext 1846ac_cv_c_compiler_gnu=$ac_compiler_gnu 1847 1848fi 1849echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 1850echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 1851GCC=`test $ac_compiler_gnu = yes && echo yes` 1852ac_test_CFLAGS=${CFLAGS+set} 1853ac_save_CFLAGS=$CFLAGS 1854CFLAGS="-g" 1855echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 1856echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 1857if test "${ac_cv_prog_cc_g+set}" = set; then 1858 echo $ECHO_N "(cached) $ECHO_C" >&6 1859else 1860 cat >conftest.$ac_ext <<_ACEOF 1861#line $LINENO "configure" 1862/* confdefs.h. */ 1863_ACEOF 1864cat confdefs.h >>conftest.$ac_ext 1865cat >>conftest.$ac_ext <<_ACEOF 1866/* end confdefs.h. */ 1867 1868int 1869main () 1870{ 1871 1872 ; 1873 return 0; 1874} 1875_ACEOF 1876rm -f conftest.$ac_objext 1877if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1878 (eval $ac_compile) 2>&5 1879 ac_status=$? 1880 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1881 (exit $ac_status); } && 1882 { ac_try='test -s conftest.$ac_objext' 1883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1884 (eval $ac_try) 2>&5 1885 ac_status=$? 1886 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1887 (exit $ac_status); }; }; then 1888 ac_cv_prog_cc_g=yes 1889else 1890 echo "$as_me: failed program was:" >&5 1891sed 's/^/| /' conftest.$ac_ext >&5 1892 1893ac_cv_prog_cc_g=no 1894fi 1895rm -f conftest.$ac_objext conftest.$ac_ext 1896fi 1897echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 1898echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 1899if test "$ac_test_CFLAGS" = set; then 1900 CFLAGS=$ac_save_CFLAGS 1901elif test $ac_cv_prog_cc_g = yes; then 1902 if test "$GCC" = yes; then 1903 CFLAGS="-g -O2" 1904 else 1905 CFLAGS="-g" 1906 fi 1907else 1908 if test "$GCC" = yes; then 1909 CFLAGS="-O2" 1910 else 1911 CFLAGS= 1912 fi 1913fi 1914echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 1915echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 1916if test "${ac_cv_prog_cc_stdc+set}" = set; then 1917 echo $ECHO_N "(cached) $ECHO_C" >&6 1918else 1919 ac_cv_prog_cc_stdc=no 1920ac_save_CC=$CC 1921cat >conftest.$ac_ext <<_ACEOF 1922#line $LINENO "configure" 1923/* confdefs.h. */ 1924_ACEOF 1925cat confdefs.h >>conftest.$ac_ext 1926cat >>conftest.$ac_ext <<_ACEOF 1927/* end confdefs.h. */ 1928#include <stdarg.h> 1929#include <stdio.h> 1930#include <sys/types.h> 1931#include <sys/stat.h> 1932/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 1933struct buf { int x; }; 1934FILE * (*rcsopen) (struct buf *, struct stat *, int); 1935static char *e (p, i) 1936 char **p; 1937 int i; 1938{ 1939 return p[i]; 1940} 1941static char *f (char * (*g) (char **, int), char **p, ...) 1942{ 1943 char *s; 1944 va_list v; 1945 va_start (v,p); 1946 s = g (p, va_arg (v,int)); 1947 va_end (v); 1948 return s; 1949} 1950int test (int i, double x); 1951struct s1 {int (*f) (int a);}; 1952struct s2 {int (*f) (double a);}; 1953int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 1954int argc; 1955char **argv; 1956int 1957main () 1958{ 1959return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 1960 ; 1961 return 0; 1962} 1963_ACEOF 1964# Don't try gcc -ansi; that turns off useful extensions and 1965# breaks some systems' header files. 1966# AIX -qlanglvl=ansi 1967# Ultrix and OSF/1 -std1 1968# HP-UX 10.20 and later -Ae 1969# HP-UX older versions -Aa -D_HPUX_SOURCE 1970# SVR4 -Xc -D__EXTENSIONS__ 1971for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 1972do 1973 CC="$ac_save_CC $ac_arg" 1974 rm -f conftest.$ac_objext 1975if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1976 (eval $ac_compile) 2>&5 1977 ac_status=$? 1978 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1979 (exit $ac_status); } && 1980 { ac_try='test -s conftest.$ac_objext' 1981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1982 (eval $ac_try) 2>&5 1983 ac_status=$? 1984 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1985 (exit $ac_status); }; }; then 1986 ac_cv_prog_cc_stdc=$ac_arg 1987break 1988else 1989 echo "$as_me: failed program was:" >&5 1990sed 's/^/| /' conftest.$ac_ext >&5 1991 1992fi 1993rm -f conftest.$ac_objext 1994done 1995rm -f conftest.$ac_ext conftest.$ac_objext 1996CC=$ac_save_CC 1997 1998fi 1999 2000case "x$ac_cv_prog_cc_stdc" in 2001 x|xno) 2002 echo "$as_me:$LINENO: result: none needed" >&5 2003echo "${ECHO_T}none needed" >&6 ;; 2004 *) 2005 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2006echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2007 CC="$CC $ac_cv_prog_cc_stdc" ;; 2008esac 2009 2010# Some people use a C++ compiler to compile C. Since we use `exit', 2011# in C++ we need to declare it. In case someone uses the same compiler 2012# for both compiling C and C++ we need to have the C++ compiler decide 2013# the declaration of exit, since it's the most demanding environment. 2014cat >conftest.$ac_ext <<_ACEOF 2015#ifndef __cplusplus 2016 choke me 2017#endif 2018_ACEOF 2019rm -f conftest.$ac_objext 2020if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2021 (eval $ac_compile) 2>&5 2022 ac_status=$? 2023 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2024 (exit $ac_status); } && 2025 { ac_try='test -s conftest.$ac_objext' 2026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2027 (eval $ac_try) 2>&5 2028 ac_status=$? 2029 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2030 (exit $ac_status); }; }; then 2031 for ac_declaration in \ 2032 ''\ 2033 '#include <stdlib.h>' \ 2034 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2035 'extern "C" void std::exit (int); using std::exit;' \ 2036 'extern "C" void exit (int) throw ();' \ 2037 'extern "C" void exit (int);' \ 2038 'void exit (int);' 2039do 2040 cat >conftest.$ac_ext <<_ACEOF 2041#line $LINENO "configure" 2042/* confdefs.h. */ 2043_ACEOF 2044cat confdefs.h >>conftest.$ac_ext 2045cat >>conftest.$ac_ext <<_ACEOF 2046/* end confdefs.h. */ 2047#include <stdlib.h> 2048$ac_declaration 2049int 2050main () 2051{ 2052exit (42); 2053 ; 2054 return 0; 2055} 2056_ACEOF 2057rm -f conftest.$ac_objext 2058if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2059 (eval $ac_compile) 2>&5 2060 ac_status=$? 2061 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2062 (exit $ac_status); } && 2063 { ac_try='test -s conftest.$ac_objext' 2064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2065 (eval $ac_try) 2>&5 2066 ac_status=$? 2067 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2068 (exit $ac_status); }; }; then 2069 : 2070else 2071 echo "$as_me: failed program was:" >&5 2072sed 's/^/| /' conftest.$ac_ext >&5 2073 2074continue 2075fi 2076rm -f conftest.$ac_objext conftest.$ac_ext 2077 cat >conftest.$ac_ext <<_ACEOF 2078#line $LINENO "configure" 2079/* confdefs.h. */ 2080_ACEOF 2081cat confdefs.h >>conftest.$ac_ext 2082cat >>conftest.$ac_ext <<_ACEOF 2083/* end confdefs.h. */ 2084$ac_declaration 2085int 2086main () 2087{ 2088exit (42); 2089 ; 2090 return 0; 2091} 2092_ACEOF 2093rm -f conftest.$ac_objext 2094if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2095 (eval $ac_compile) 2>&5 2096 ac_status=$? 2097 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2098 (exit $ac_status); } && 2099 { ac_try='test -s conftest.$ac_objext' 2100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2101 (eval $ac_try) 2>&5 2102 ac_status=$? 2103 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2104 (exit $ac_status); }; }; then 2105 break 2106else 2107 echo "$as_me: failed program was:" >&5 2108sed 's/^/| /' conftest.$ac_ext >&5 2109 2110fi 2111rm -f conftest.$ac_objext conftest.$ac_ext 2112done 2113rm -f conftest* 2114if test -n "$ac_declaration"; then 2115 echo '#ifdef __cplusplus' >>confdefs.h 2116 echo $ac_declaration >>confdefs.h 2117 echo '#endif' >>confdefs.h 2118fi 2119 2120else 2121 echo "$as_me: failed program was:" >&5 2122sed 's/^/| /' conftest.$ac_ext >&5 2123 2124fi 2125rm -f conftest.$ac_objext conftest.$ac_ext 2126ac_ext=c 2127ac_cpp='$CPP $CPPFLAGS' 2128ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2129ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2130ac_compiler_gnu=$ac_cv_c_compiler_gnu 2131 2132 2133ac_ext=c 2134ac_cpp='$CPP $CPPFLAGS' 2135ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2136ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2137ac_compiler_gnu=$ac_cv_c_compiler_gnu 2138echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 2139echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 2140# On Suns, sometimes $CPP names a directory. 2141if test -n "$CPP" && test -d "$CPP"; then 2142 CPP= 2143fi 2144if test -z "$CPP"; then 2145 if test "${ac_cv_prog_CPP+set}" = set; then 2146 echo $ECHO_N "(cached) $ECHO_C" >&6 2147else 2148 # Double quotes because CPP needs to be expanded 2149 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 2150 do 2151 ac_preproc_ok=false 2152for ac_c_preproc_warn_flag in '' yes 2153do 2154 # Use a header file that comes with gcc, so configuring glibc 2155 # with a fresh cross-compiler works. 2156 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2157 # <limits.h> exists even on freestanding compilers. 2158 # On the NeXT, cc -E runs the code through the compiler's parser, 2159 # not just through cpp. "Syntax error" is here to catch this case. 2160 cat >conftest.$ac_ext <<_ACEOF 2161#line $LINENO "configure" 2162/* confdefs.h. */ 2163_ACEOF 2164cat confdefs.h >>conftest.$ac_ext 2165cat >>conftest.$ac_ext <<_ACEOF 2166/* end confdefs.h. */ 2167#ifdef __STDC__ 2168# include <limits.h> 2169#else 2170# include <assert.h> 2171#endif 2172 Syntax error 2173_ACEOF 2174if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2175 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2176 ac_status=$? 2177 grep -v '^ *+' conftest.er1 >conftest.err 2178 rm -f conftest.er1 2179 cat conftest.err >&5 2180 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2181 (exit $ac_status); } >/dev/null; then 2182 if test -s conftest.err; then 2183 ac_cpp_err=$ac_c_preproc_warn_flag 2184 else 2185 ac_cpp_err= 2186 fi 2187else 2188 ac_cpp_err=yes 2189fi 2190if test -z "$ac_cpp_err"; then 2191 : 2192else 2193 echo "$as_me: failed program was:" >&5 2194sed 's/^/| /' conftest.$ac_ext >&5 2195 2196 # Broken: fails on valid input. 2197continue 2198fi 2199rm -f conftest.err conftest.$ac_ext 2200 2201 # OK, works on sane cases. Now check whether non-existent headers 2202 # can be detected and how. 2203 cat >conftest.$ac_ext <<_ACEOF 2204#line $LINENO "configure" 2205/* confdefs.h. */ 2206_ACEOF 2207cat confdefs.h >>conftest.$ac_ext 2208cat >>conftest.$ac_ext <<_ACEOF 2209/* end confdefs.h. */ 2210#include <ac_nonexistent.h> 2211_ACEOF 2212if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2213 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2214 ac_status=$? 2215 grep -v '^ *+' conftest.er1 >conftest.err 2216 rm -f conftest.er1 2217 cat conftest.err >&5 2218 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2219 (exit $ac_status); } >/dev/null; then 2220 if test -s conftest.err; then 2221 ac_cpp_err=$ac_c_preproc_warn_flag 2222 else 2223 ac_cpp_err= 2224 fi 2225else 2226 ac_cpp_err=yes 2227fi 2228if test -z "$ac_cpp_err"; then 2229 # Broken: success on invalid input. 2230continue 2231else 2232 echo "$as_me: failed program was:" >&5 2233sed 's/^/| /' conftest.$ac_ext >&5 2234 2235 # Passes both tests. 2236ac_preproc_ok=: 2237break 2238fi 2239rm -f conftest.err conftest.$ac_ext 2240 2241done 2242# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2243rm -f conftest.err conftest.$ac_ext 2244if $ac_preproc_ok; then 2245 break 2246fi 2247 2248 done 2249 ac_cv_prog_CPP=$CPP 2250 2251fi 2252 CPP=$ac_cv_prog_CPP 2253else 2254 ac_cv_prog_CPP=$CPP 2255fi 2256echo "$as_me:$LINENO: result: $CPP" >&5 2257echo "${ECHO_T}$CPP" >&6 2258ac_preproc_ok=false 2259for ac_c_preproc_warn_flag in '' yes 2260do 2261 # Use a header file that comes with gcc, so configuring glibc 2262 # with a fresh cross-compiler works. 2263 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2264 # <limits.h> exists even on freestanding compilers. 2265 # On the NeXT, cc -E runs the code through the compiler's parser, 2266 # not just through cpp. "Syntax error" is here to catch this case. 2267 cat >conftest.$ac_ext <<_ACEOF 2268#line $LINENO "configure" 2269/* confdefs.h. */ 2270_ACEOF 2271cat confdefs.h >>conftest.$ac_ext 2272cat >>conftest.$ac_ext <<_ACEOF 2273/* end confdefs.h. */ 2274#ifdef __STDC__ 2275# include <limits.h> 2276#else 2277# include <assert.h> 2278#endif 2279 Syntax error 2280_ACEOF 2281if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2282 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2283 ac_status=$? 2284 grep -v '^ *+' conftest.er1 >conftest.err 2285 rm -f conftest.er1 2286 cat conftest.err >&5 2287 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2288 (exit $ac_status); } >/dev/null; then 2289 if test -s conftest.err; then 2290 ac_cpp_err=$ac_c_preproc_warn_flag 2291 else 2292 ac_cpp_err= 2293 fi 2294else 2295 ac_cpp_err=yes 2296fi 2297if test -z "$ac_cpp_err"; then 2298 : 2299else 2300 echo "$as_me: failed program was:" >&5 2301sed 's/^/| /' conftest.$ac_ext >&5 2302 2303 # Broken: fails on valid input. 2304continue 2305fi 2306rm -f conftest.err conftest.$ac_ext 2307 2308 # OK, works on sane cases. Now check whether non-existent headers 2309 # can be detected and how. 2310 cat >conftest.$ac_ext <<_ACEOF 2311#line $LINENO "configure" 2312/* confdefs.h. */ 2313_ACEOF 2314cat confdefs.h >>conftest.$ac_ext 2315cat >>conftest.$ac_ext <<_ACEOF 2316/* end confdefs.h. */ 2317#include <ac_nonexistent.h> 2318_ACEOF 2319if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2320 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2321 ac_status=$? 2322 grep -v '^ *+' conftest.er1 >conftest.err 2323 rm -f conftest.er1 2324 cat conftest.err >&5 2325 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2326 (exit $ac_status); } >/dev/null; then 2327 if test -s conftest.err; then 2328 ac_cpp_err=$ac_c_preproc_warn_flag 2329 else 2330 ac_cpp_err= 2331 fi 2332else 2333 ac_cpp_err=yes 2334fi 2335if test -z "$ac_cpp_err"; then 2336 # Broken: success on invalid input. 2337continue 2338else 2339 echo "$as_me: failed program was:" >&5 2340sed 's/^/| /' conftest.$ac_ext >&5 2341 2342 # Passes both tests. 2343ac_preproc_ok=: 2344break 2345fi 2346rm -f conftest.err conftest.$ac_ext 2347 2348done 2349# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2350rm -f conftest.err conftest.$ac_ext 2351if $ac_preproc_ok; then 2352 : 2353else 2354 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 2355See \`config.log' for more details." >&5 2356echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 2357See \`config.log' for more details." >&2;} 2358 { (exit 1); exit 1; }; } 2359fi 2360 2361ac_ext=c 2362ac_cpp='$CPP $CPPFLAGS' 2363ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2364ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2365ac_compiler_gnu=$ac_cv_c_compiler_gnu 2366 2367 2368echo "$as_me:$LINENO: checking for egrep" >&5 2369echo $ECHO_N "checking for egrep... $ECHO_C" >&6 2370if test "${ac_cv_prog_egrep+set}" = set; then 2371 echo $ECHO_N "(cached) $ECHO_C" >&6 2372else 2373 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 2374 then ac_cv_prog_egrep='grep -E' 2375 else ac_cv_prog_egrep='egrep' 2376 fi 2377fi 2378echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 2379echo "${ECHO_T}$ac_cv_prog_egrep" >&6 2380 EGREP=$ac_cv_prog_egrep 2381 2382 2383echo "$as_me:$LINENO: checking for ANSI C header files" >&5 2384echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 2385if test "${ac_cv_header_stdc+set}" = set; then 2386 echo $ECHO_N "(cached) $ECHO_C" >&6 2387else 2388 cat >conftest.$ac_ext <<_ACEOF 2389#line $LINENO "configure" 2390/* confdefs.h. */ 2391_ACEOF 2392cat confdefs.h >>conftest.$ac_ext 2393cat >>conftest.$ac_ext <<_ACEOF 2394/* end confdefs.h. */ 2395#include <stdlib.h> 2396#include <stdarg.h> 2397#include <string.h> 2398#include <float.h> 2399 2400int 2401main () 2402{ 2403 2404 ; 2405 return 0; 2406} 2407_ACEOF 2408rm -f conftest.$ac_objext 2409if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2410 (eval $ac_compile) 2>&5 2411 ac_status=$? 2412 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2413 (exit $ac_status); } && 2414 { ac_try='test -s conftest.$ac_objext' 2415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2416 (eval $ac_try) 2>&5 2417 ac_status=$? 2418 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2419 (exit $ac_status); }; }; then 2420 ac_cv_header_stdc=yes 2421else 2422 echo "$as_me: failed program was:" >&5 2423sed 's/^/| /' conftest.$ac_ext >&5 2424 2425ac_cv_header_stdc=no 2426fi 2427rm -f conftest.$ac_objext conftest.$ac_ext 2428 2429if test $ac_cv_header_stdc = yes; then 2430 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 2431 cat >conftest.$ac_ext <<_ACEOF 2432#line $LINENO "configure" 2433/* confdefs.h. */ 2434_ACEOF 2435cat confdefs.h >>conftest.$ac_ext 2436cat >>conftest.$ac_ext <<_ACEOF 2437/* end confdefs.h. */ 2438#include <string.h> 2439 2440_ACEOF 2441if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2442 $EGREP "memchr" >/dev/null 2>&1; then 2443 : 2444else 2445 ac_cv_header_stdc=no 2446fi 2447rm -f conftest* 2448 2449fi 2450 2451if test $ac_cv_header_stdc = yes; then 2452 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 2453 cat >conftest.$ac_ext <<_ACEOF 2454#line $LINENO "configure" 2455/* confdefs.h. */ 2456_ACEOF 2457cat confdefs.h >>conftest.$ac_ext 2458cat >>conftest.$ac_ext <<_ACEOF 2459/* end confdefs.h. */ 2460#include <stdlib.h> 2461 2462_ACEOF 2463if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2464 $EGREP "free" >/dev/null 2>&1; then 2465 : 2466else 2467 ac_cv_header_stdc=no 2468fi 2469rm -f conftest* 2470 2471fi 2472 2473if test $ac_cv_header_stdc = yes; then 2474 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 2475 if test "$cross_compiling" = yes; then 2476 : 2477else 2478 cat >conftest.$ac_ext <<_ACEOF 2479#line $LINENO "configure" 2480/* confdefs.h. */ 2481_ACEOF 2482cat confdefs.h >>conftest.$ac_ext 2483cat >>conftest.$ac_ext <<_ACEOF 2484/* end confdefs.h. */ 2485#include <ctype.h> 2486#if ((' ' & 0x0FF) == 0x020) 2487# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 2488# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 2489#else 2490# define ISLOWER(c) \ 2491 (('a' <= (c) && (c) <= 'i') \ 2492 || ('j' <= (c) && (c) <= 'r') \ 2493 || ('s' <= (c) && (c) <= 'z')) 2494# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 2495#endif 2496 2497#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 2498int 2499main () 2500{ 2501 int i; 2502 for (i = 0; i < 256; i++) 2503 if (XOR (islower (i), ISLOWER (i)) 2504 || toupper (i) != TOUPPER (i)) 2505 exit(2); 2506 exit (0); 2507} 2508_ACEOF 2509rm -f conftest$ac_exeext 2510if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2511 (eval $ac_link) 2>&5 2512 ac_status=$? 2513 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2514 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 2515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2516 (eval $ac_try) 2>&5 2517 ac_status=$? 2518 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2519 (exit $ac_status); }; }; then 2520 : 2521else 2522 echo "$as_me: program exited with status $ac_status" >&5 2523echo "$as_me: failed program was:" >&5 2524sed 's/^/| /' conftest.$ac_ext >&5 2525 2526( exit $ac_status ) 2527ac_cv_header_stdc=no 2528fi 2529rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 2530fi 2531fi 2532fi 2533echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 2534echo "${ECHO_T}$ac_cv_header_stdc" >&6 2535if test $ac_cv_header_stdc = yes; then 2536 2537cat >>confdefs.h <<\_ACEOF 2538#define STDC_HEADERS 1 2539_ACEOF 2540 2541fi 2542 2543# On IRIX 5.3, sys/types and inttypes.h are conflicting. 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 2554 inttypes.h stdint.h unistd.h 2555do 2556as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 2557echo "$as_me:$LINENO: checking for $ac_header" >&5 2558echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 2559if eval "test \"\${$as_ac_Header+set}\" = set"; then 2560 echo $ECHO_N "(cached) $ECHO_C" >&6 2561else 2562 cat >conftest.$ac_ext <<_ACEOF 2563#line $LINENO "configure" 2564/* confdefs.h. */ 2565_ACEOF 2566cat confdefs.h >>conftest.$ac_ext 2567cat >>conftest.$ac_ext <<_ACEOF 2568/* end confdefs.h. */ 2569$ac_includes_default 2570 2571#include <$ac_header> 2572_ACEOF 2573rm -f conftest.$ac_objext 2574if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2575 (eval $ac_compile) 2>&5 2576 ac_status=$? 2577 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2578 (exit $ac_status); } && 2579 { ac_try='test -s conftest.$ac_objext' 2580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2581 (eval $ac_try) 2>&5 2582 ac_status=$? 2583 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2584 (exit $ac_status); }; }; then 2585 eval "$as_ac_Header=yes" 2586else 2587 echo "$as_me: failed program was:" >&5 2588sed 's/^/| /' conftest.$ac_ext >&5 2589 2590eval "$as_ac_Header=no" 2591fi 2592rm -f conftest.$ac_objext conftest.$ac_ext 2593fi 2594echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 2595echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 2596if test `eval echo '${'$as_ac_Header'}'` = yes; then 2597 cat >>confdefs.h <<_ACEOF 2598#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 2599_ACEOF 2600 2601fi 2602 2603done 2604 2605 2606if test "${ac_cv_header_stdint_h+set}" = set; then 2607 echo "$as_me:$LINENO: checking for stdint.h" >&5 2608echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6 2609if test "${ac_cv_header_stdint_h+set}" = set; then 2610 echo $ECHO_N "(cached) $ECHO_C" >&6 2611fi 2612echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5 2613echo "${ECHO_T}$ac_cv_header_stdint_h" >&6 2614else 2615 # Is the header compilable? 2616echo "$as_me:$LINENO: checking stdint.h usability" >&5 2617echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6 2618cat >conftest.$ac_ext <<_ACEOF 2619#line $LINENO "configure" 2620/* confdefs.h. */ 2621_ACEOF 2622cat confdefs.h >>conftest.$ac_ext 2623cat >>conftest.$ac_ext <<_ACEOF 2624/* end confdefs.h. */ 2625$ac_includes_default 2626#include <stdint.h> 2627_ACEOF 2628rm -f conftest.$ac_objext 2629if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2630 (eval $ac_compile) 2>&5 2631 ac_status=$? 2632 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2633 (exit $ac_status); } && 2634 { ac_try='test -s conftest.$ac_objext' 2635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2636 (eval $ac_try) 2>&5 2637 ac_status=$? 2638 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2639 (exit $ac_status); }; }; then 2640 ac_header_compiler=yes 2641else 2642 echo "$as_me: failed program was:" >&5 2643sed 's/^/| /' conftest.$ac_ext >&5 2644 2645ac_header_compiler=no 2646fi 2647rm -f conftest.$ac_objext conftest.$ac_ext 2648echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 2649echo "${ECHO_T}$ac_header_compiler" >&6 2650 2651# Is the header present? 2652echo "$as_me:$LINENO: checking stdint.h presence" >&5 2653echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6 2654cat >conftest.$ac_ext <<_ACEOF 2655#line $LINENO "configure" 2656/* confdefs.h. */ 2657_ACEOF 2658cat confdefs.h >>conftest.$ac_ext 2659cat >>conftest.$ac_ext <<_ACEOF 2660/* end confdefs.h. */ 2661#include <stdint.h> 2662_ACEOF 2663if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2664 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2665 ac_status=$? 2666 grep -v '^ *+' conftest.er1 >conftest.err 2667 rm -f conftest.er1 2668 cat conftest.err >&5 2669 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2670 (exit $ac_status); } >/dev/null; then 2671 if test -s conftest.err; then 2672 ac_cpp_err=$ac_c_preproc_warn_flag 2673 else 2674 ac_cpp_err= 2675 fi 2676else 2677 ac_cpp_err=yes 2678fi 2679if test -z "$ac_cpp_err"; then 2680 ac_header_preproc=yes 2681else 2682 echo "$as_me: failed program was:" >&5 2683sed 's/^/| /' conftest.$ac_ext >&5 2684 2685 ac_header_preproc=no 2686fi 2687rm -f conftest.err conftest.$ac_ext 2688echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 2689echo "${ECHO_T}$ac_header_preproc" >&6 2690 2691# So? What about this header? 2692case $ac_header_compiler:$ac_header_preproc in 2693 yes:no ) 2694 { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5 2695echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 2696 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5 2697echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;} 2698 ( 2699 cat <<\_ASBOX 2700## ------------------------------------ ## 2701## Report this to bug-autoconf@gnu.org. ## 2702## ------------------------------------ ## 2703_ASBOX 2704 ) | 2705 sed "s/^/$as_me: WARNING: /" >&2 2706 ;; 2707 no:yes ) 2708 { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5 2709echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;} 2710 { echo "$as_me:$LINENO: WARNING: stdint.h: check for missing prerequisite headers?" >&5 2711echo "$as_me: WARNING: stdint.h: check for missing prerequisite headers?" >&2;} 2712 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5 2713echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;} 2714 ( 2715 cat <<\_ASBOX 2716## ------------------------------------ ## 2717## Report this to bug-autoconf@gnu.org. ## 2718## ------------------------------------ ## 2719_ASBOX 2720 ) | 2721 sed "s/^/$as_me: WARNING: /" >&2 2722 ;; 2723esac 2724echo "$as_me:$LINENO: checking for stdint.h" >&5 2725echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6 2726if test "${ac_cv_header_stdint_h+set}" = set; then 2727 echo $ECHO_N "(cached) $ECHO_C" >&6 2728else 2729 ac_cv_header_stdint_h=$ac_header_preproc 2730fi 2731echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5 2732echo "${ECHO_T}$ac_cv_header_stdint_h" >&6 2733 2734fi 2735 2736 2737 2738#-------------------------------------------------------------------- 2739# See if there was a command-line option for where Tcl is; if 2740# not, assume that its top-level directory is a sibling of ours. 2741#-------------------------------------------------------------------- 2742 2743 2744 echo "$as_me:$LINENO: checking the location of tclConfig.sh" >&5 2745echo $ECHO_N "checking the location of tclConfig.sh... $ECHO_C" >&6 2746 2747 if test -d ../../tcl8.5/win; then 2748 TCL_BIN_DIR_DEFAULT=../../tcl8.5/win 2749 elif test -d ../../tcl8.5/win; then 2750 TCL_BIN_DIR_DEFAULT=../../tcl8.5/win 2751 else 2752 TCL_BIN_DIR_DEFAULT=../../tcl/win 2753 fi 2754 2755 2756# Check whether --with-tcl or --without-tcl was given. 2757if test "${with_tcl+set}" = set; then 2758 withval="$with_tcl" 2759 TCL_BIN_DIR=$withval 2760else 2761 TCL_BIN_DIR=`cd $TCL_BIN_DIR_DEFAULT; pwd` 2762fi; 2763 if test ! -d $TCL_BIN_DIR; then 2764 { { echo "$as_me:$LINENO: error: Tcl directory $TCL_BIN_DIR does not exist" >&5 2765echo "$as_me: error: Tcl directory $TCL_BIN_DIR does not exist" >&2;} 2766 { (exit 1); exit 1; }; } 2767 fi 2768 if test ! -f $TCL_BIN_DIR/tclConfig.sh; then 2769 { { echo "$as_me:$LINENO: error: There is no tclConfig.sh in $TCL_BIN_DIR: perhaps you did not specify the Tcl *build* directory (not the toplevel Tcl directory) or you forgot to configure Tcl?" >&5 2770echo "$as_me: error: There is no tclConfig.sh in $TCL_BIN_DIR: perhaps you did not specify the Tcl *build* directory (not the toplevel Tcl directory) or you forgot to configure Tcl?" >&2;} 2771 { (exit 1); exit 1; }; } 2772 fi 2773 echo "$as_me:$LINENO: result: $TCL_BIN_DIR/tclConfig.sh" >&5 2774echo "${ECHO_T}$TCL_BIN_DIR/tclConfig.sh" >&6 2775 2776 2777#-------------------------------------------------------------------- 2778# See if there was a command-line option for where Tk is; if 2779# not, assume that its top-level directory is a sibling of ours. 2780#-------------------------------------------------------------------- 2781 2782 2783 echo "$as_me:$LINENO: checking the location of tkConfig.sh" >&5 2784echo $ECHO_N "checking the location of tkConfig.sh... $ECHO_C" >&6 2785 2786 if test -d ../../tk8.5/win; then 2787 TK_BIN_DIR_DEFAULT=../../tk8.5/win 2788 elif test -d ../../tk8.5/win; then 2789 TK_BIN_DIR_DEFAULT=../../tk8.5/win 2790 else 2791 TK_BIN_DIR_DEFAULT=../../tk/win 2792 fi 2793 2794 2795# Check whether --with-tk or --without-tk was given. 2796if test "${with_tk+set}" = set; then 2797 withval="$with_tk" 2798 TK_BIN_DIR=$withval 2799else 2800 TK_BIN_DIR=`cd $TK_BIN_DIR_DEFAULT; pwd` 2801fi; 2802 if test ! -d $TK_BIN_DIR; then 2803 { { echo "$as_me:$LINENO: error: Tk directory $TK_BIN_DIR does not exist" >&5 2804echo "$as_me: error: Tk directory $TK_BIN_DIR does not exist" >&2;} 2805 { (exit 1); exit 1; }; } 2806 fi 2807 if test ! -f $TK_BIN_DIR/tkConfig.sh; then 2808 { { echo "$as_me:$LINENO: error: There is no tkConfig.sh in $TK_BIN_DIR: perhaps you did not specify the Tk *build* directory (not the toplevel Tk directory) or you forgot to configure Tk?" >&5 2809echo "$as_me: error: There is no tkConfig.sh in $TK_BIN_DIR: perhaps you did not specify the Tk *build* directory (not the toplevel Tk directory) or you forgot to configure Tk?" >&2;} 2810 { (exit 1); exit 1; }; } 2811 fi 2812 2813 echo "$as_me:$LINENO: result: $TK_BIN_DIR/tkConfig.sh" >&5 2814echo "${ECHO_T}$TK_BIN_DIR/tkConfig.sh" >&6 2815 2816 2817#-------------------------------------------------------------------- 2818 2819if test "x${prefix}" = "xNONE"; then 2820 prefix=/usr/local 2821fi 2822if test "x${exec_prefix}" = "xNONE"; then 2823 exec_prefix=$prefix 2824fi 2825 2826SNACK_INSTALL_PATH=${libdir} 2827SNACK_HINSTALL_PATH=${includedir} 2828SNACK_LIB_SPEC="-L${libdir} -lsnack" 2829 2830#-------------------------------------------------------------------- 2831# Read in configuration information generated by Tcl and 2832# arrange for it to be substituted into our Makefile. 2833#-------------------------------------------------------------------- 2834 2835file=$TCL_BIN_DIR/tclConfig.sh 2836. $file 2837 2838if test "$TCL_SHARED_BUILD" = 0; then 2839 { { echo "$as_me:$LINENO: error: Tcl and Tk must be configured with the --enable-shared flag" >&5 2840echo "$as_me: error: Tcl and Tk must be configured with the --enable-shared flag" >&2;} 2841 { (exit 1); exit 1; }; } 2842fi 2843 2844#-------------------------------------------------------------------- 2845# Read in configuration information generated by Tk and arrange 2846# for it to be substituted into our Makefile. 2847#-------------------------------------------------------------------- 2848 2849file=$TK_BIN_DIR/tkConfig.sh 2850. $file 2851 2852 2853SNACK_STUB_LIB_FILE="libsnackstub${SNACK_NODOT_VERSION}.a" 2854SNACK_STUB_LIB_FLAG="-lsnackstub${SNACK_NODOT_VERSION}" 2855 2856if test "$TCL_DBGX" = ""; then 2857 CFLAGS="$CFLAGS $TCL_CFLAGS_OPTIMIZE" 2858else 2859 CFLAGS="$CFLAGS $TCL_CFLAGS_DEBUG" 2860fi 2861 2862# If TCL_MEM_DEBUG is defined, add it to the CFLAGS 2863if (echo "$TCL_DEFS" | grep TCL_MEM_DEBUG > /dev/null) ; then 2864 CFLAGS="$CFLAGS -DTCL_MEM_DEBUG" 2865fi 2866 2867# If HAVE_STDINT_H was detected, pass it to the CFLAGS 2868if test "$ac_cv_header_stdint_h" = "yes" ; then 2869 CFLAGS="$CFLAGS -DHAVE_STDINT_H" 2870fi 2871 2872 2873# Include files from Tcl src/build location 2874TCL_INCLUDE_SPEC="-I$TCL_SRC_DIR/generic" 2875TK_INCLUDE_SPEC="-I$TK_SRC_DIR/generic -I$TK_SRC_DIR/xlib" 2876TCL_LIB_SPEC=$TCL_BUILD_STUB_LIB_SPEC 2877TK_LIB_SPEC=$TK_BUILD_STUB_LIB_SPEC 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 ac_config_files="$ac_config_files Makefile snackConfig.sh" 2898cat >confcache <<\_ACEOF 2899# This file is a shell script that caches the results of configure 2900# tests run on this system so they can be shared between configure 2901# scripts and configure runs, see configure's option --config-cache. 2902# It is not useful on other systems. If it contains results you don't 2903# want to keep, you may remove or edit it. 2904# 2905# config.status only pays attention to the cache file if you give it 2906# the --recheck option to rerun configure. 2907# 2908# `ac_cv_env_foo' variables (set or unset) will be overridden when 2909# loading this file, other *unset* `ac_cv_foo' will be assigned the 2910# following values. 2911 2912_ACEOF 2913 2914# The following way of writing the cache mishandles newlines in values, 2915# but we know of no workaround that is simple, portable, and efficient. 2916# So, don't put newlines in cache variables' values. 2917# Ultrix sh set writes to stderr and can't be redirected directly, 2918# and sets the high bit in the cache file unless we assign to the vars. 2919{ 2920 (set) 2>&1 | 2921 case `(ac_space=' '; set | grep ac_space) 2>&1` in 2922 *ac_space=\ *) 2923 # `set' does not quote correctly, so add quotes (double-quote 2924 # substitution turns \\\\ into \\, and sed turns \\ into \). 2925 sed -n \ 2926 "s/'/'\\\\''/g; 2927 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 2928 ;; 2929 *) 2930 # `set' quotes correctly as required by POSIX, so do not add quotes. 2931 sed -n \ 2932 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 2933 ;; 2934 esac; 2935} | 2936 sed ' 2937 t clear 2938 : clear 2939 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 2940 t end 2941 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 2942 : end' >>confcache 2943if diff $cache_file confcache >/dev/null 2>&1; then :; else 2944 if test -w $cache_file; then 2945 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 2946 cat confcache >$cache_file 2947 else 2948 echo "not updating unwritable cache $cache_file" 2949 fi 2950fi 2951rm -f confcache 2952 2953test "x$prefix" = xNONE && prefix=$ac_default_prefix 2954# Let make expand exec_prefix. 2955test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 2956 2957# VPATH may cause trouble with some makes, so we remove $(srcdir), 2958# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 2959# trailing colons and then remove the whole line if VPATH becomes empty 2960# (actually we leave an empty line to preserve line numbers). 2961if test "x$srcdir" = x.; then 2962 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 2963s/:*\$(srcdir):*/:/; 2964s/:*\${srcdir}:*/:/; 2965s/:*@srcdir@:*/:/; 2966s/^\([^=]*=[ ]*\):*/\1/; 2967s/:*$//; 2968s/^[^=]*=[ ]*$//; 2969}' 2970fi 2971 2972# Transform confdefs.h into DEFS. 2973# Protect against shell expansion while executing Makefile rules. 2974# Protect against Makefile macro expansion. 2975# 2976# If the first sed substitution is executed (which looks for macros that 2977# take arguments), then we branch to the quote section. Otherwise, 2978# look for a macro that doesn't take arguments. 2979cat >confdef2opt.sed <<\_ACEOF 2980t clear 2981: clear 2982s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g 2983t quote 2984s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g 2985t quote 2986d 2987: quote 2988s,[ `~#$^&*(){}\\|;'"<>?],\\&,g 2989s,\[,\\&,g 2990s,\],\\&,g 2991s,\$,$$,g 2992p 2993_ACEOF 2994# We use echo to avoid assuming a particular line-breaking character. 2995# The extra dot is to prevent the shell from consuming trailing 2996# line-breaks from the sub-command output. A line-break within 2997# single-quotes doesn't work because, if this script is created in a 2998# platform that uses two characters for line-breaks (e.g., DOS), tr 2999# would break. 3000ac_LF_and_DOT=`echo; echo .` 3001DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'` 3002rm -f confdef2opt.sed 3003 3004 3005ac_libobjs= 3006ac_ltlibobjs= 3007for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 3008 # 1. Remove the extension, and $U if already installed. 3009 ac_i=`echo "$ac_i" | 3010 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 3011 # 2. Add them. 3012 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 3013 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 3014done 3015LIBOBJS=$ac_libobjs 3016 3017LTLIBOBJS=$ac_ltlibobjs 3018 3019 3020 3021: ${CONFIG_STATUS=./config.status} 3022ac_clean_files_save=$ac_clean_files 3023ac_clean_files="$ac_clean_files $CONFIG_STATUS" 3024{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 3025echo "$as_me: creating $CONFIG_STATUS" >&6;} 3026cat >$CONFIG_STATUS <<_ACEOF 3027#! $SHELL 3028# Generated by $as_me. 3029# Run this file to recreate the current configuration. 3030# Compiler output produced by configure, useful for debugging 3031# configure, is in config.log if it exists. 3032 3033debug=false 3034ac_cs_recheck=false 3035ac_cs_silent=false 3036SHELL=\${CONFIG_SHELL-$SHELL} 3037_ACEOF 3038 3039cat >>$CONFIG_STATUS <<\_ACEOF 3040## --------------------- ## 3041## M4sh Initialization. ## 3042## --------------------- ## 3043 3044# Be Bourne compatible 3045if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 3046 emulate sh 3047 NULLCMD=: 3048 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 3049 # is contrary to our usage. Disable this feature. 3050 alias -g '${1+"$@"}'='"$@"' 3051elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 3052 set -o posix 3053fi 3054 3055# Support unset when possible. 3056if (FOO=FOO; unset FOO) >/dev/null 2>&1; then 3057 as_unset=unset 3058else 3059 as_unset=false 3060fi 3061 3062 3063# Work around bugs in pre-3.0 UWIN ksh. 3064$as_unset ENV MAIL MAILPATH 3065PS1='$ ' 3066PS2='> ' 3067PS4='+ ' 3068 3069# NLS nuisances. 3070for as_var in \ 3071 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 3072 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 3073 LC_TELEPHONE LC_TIME 3074do 3075 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then 3076 eval $as_var=C; export $as_var 3077 else 3078 $as_unset $as_var 3079 fi 3080done 3081 3082# Required to use basename. 3083if expr a : '\(a\)' >/dev/null 2>&1; then 3084 as_expr=expr 3085else 3086 as_expr=false 3087fi 3088 3089if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 3090 as_basename=basename 3091else 3092 as_basename=false 3093fi 3094 3095 3096# Name of the executable. 3097as_me=`$as_basename "$0" || 3098$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 3099 X"$0" : 'X\(//\)$' \| \ 3100 X"$0" : 'X\(/\)$' \| \ 3101 . : '\(.\)' 2>/dev/null || 3102echo X/"$0" | 3103 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 3104 /^X\/\(\/\/\)$/{ s//\1/; q; } 3105 /^X\/\(\/\).*/{ s//\1/; q; } 3106 s/.*/./; q'` 3107 3108 3109# PATH needs CR, and LINENO needs CR and PATH. 3110# Avoid depending upon Character Ranges. 3111as_cr_letters='abcdefghijklmnopqrstuvwxyz' 3112as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 3113as_cr_Letters=$as_cr_letters$as_cr_LETTERS 3114as_cr_digits='0123456789' 3115as_cr_alnum=$as_cr_Letters$as_cr_digits 3116 3117# The user is always right. 3118if test "${PATH_SEPARATOR+set}" != set; then 3119 echo "#! /bin/sh" >conf$$.sh 3120 echo "exit 0" >>conf$$.sh 3121 chmod +x conf$$.sh 3122 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 3123 PATH_SEPARATOR=';' 3124 else 3125 PATH_SEPARATOR=: 3126 fi 3127 rm -f conf$$.sh 3128fi 3129 3130 3131 as_lineno_1=$LINENO 3132 as_lineno_2=$LINENO 3133 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 3134 test "x$as_lineno_1" != "x$as_lineno_2" && 3135 test "x$as_lineno_3" = "x$as_lineno_2" || { 3136 # Find who we are. Look in the path if we contain no path at all 3137 # relative or not. 3138 case $0 in 3139 *[\\/]* ) as_myself=$0 ;; 3140 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3141for as_dir in $PATH 3142do 3143 IFS=$as_save_IFS 3144 test -z "$as_dir" && as_dir=. 3145 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 3146done 3147 3148 ;; 3149 esac 3150 # We did not find ourselves, most probably we were run as `sh COMMAND' 3151 # in which case we are not to be found in the path. 3152 if test "x$as_myself" = x; then 3153 as_myself=$0 3154 fi 3155 if test ! -f "$as_myself"; then 3156 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 3157echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 3158 { (exit 1); exit 1; }; } 3159 fi 3160 case $CONFIG_SHELL in 3161 '') 3162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3163for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 3164do 3165 IFS=$as_save_IFS 3166 test -z "$as_dir" && as_dir=. 3167 for as_base in sh bash ksh sh5; do 3168 case $as_dir in 3169 /*) 3170 if ("$as_dir/$as_base" -c ' 3171 as_lineno_1=$LINENO 3172 as_lineno_2=$LINENO 3173 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 3174 test "x$as_lineno_1" != "x$as_lineno_2" && 3175 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 3176 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 3177 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 3178 CONFIG_SHELL=$as_dir/$as_base 3179 export CONFIG_SHELL 3180 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 3181 fi;; 3182 esac 3183 done 3184done 3185;; 3186 esac 3187 3188 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 3189 # uniformly replaced by the line number. The first 'sed' inserts a 3190 # line-number line before each line; the second 'sed' does the real 3191 # work. The second script uses 'N' to pair each line-number line 3192 # with the numbered line, and appends trailing '-' during 3193 # substitution so that $LINENO is not a special case at line end. 3194 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 3195 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 3196 sed '=' <$as_myself | 3197 sed ' 3198 N 3199 s,$,-, 3200 : loop 3201 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 3202 t loop 3203 s,-$,, 3204 s,^['$as_cr_digits']*\n,, 3205 ' >$as_me.lineno && 3206 chmod +x $as_me.lineno || 3207 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 3208echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 3209 { (exit 1); exit 1; }; } 3210 3211 # Don't try to exec as it changes $[0], causing all sort of problems 3212 # (the dirname of $[0] is not the place where we might find the 3213 # original and so on. Autoconf is especially sensible to this). 3214 . ./$as_me.lineno 3215 # Exit status is that of the last command. 3216 exit 3217} 3218 3219 3220case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 3221 *c*,-n*) ECHO_N= ECHO_C=' 3222' ECHO_T=' ' ;; 3223 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 3224 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 3225esac 3226 3227if expr a : '\(a\)' >/dev/null 2>&1; then 3228 as_expr=expr 3229else 3230 as_expr=false 3231fi 3232 3233rm -f conf$$ conf$$.exe conf$$.file 3234echo >conf$$.file 3235if ln -s conf$$.file conf$$ 2>/dev/null; then 3236 # We could just check for DJGPP; but this test a) works b) is more generic 3237 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 3238 if test -f conf$$.exe; then 3239 # Don't use ln at all; we don't have any links 3240 as_ln_s='cp -p' 3241 else 3242 as_ln_s='ln -s' 3243 fi 3244elif ln conf$$.file conf$$ 2>/dev/null; then 3245 as_ln_s=ln 3246else 3247 as_ln_s='cp -p' 3248fi 3249rm -f conf$$ conf$$.exe conf$$.file 3250 3251if mkdir -p . 2>/dev/null; then 3252 as_mkdir_p=: 3253else 3254 as_mkdir_p=false 3255fi 3256 3257as_executable_p="test -f" 3258 3259# Sed expression to map a string onto a valid CPP name. 3260as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 3261 3262# Sed expression to map a string onto a valid variable name. 3263as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 3264 3265 3266# IFS 3267# We need space, tab and new line, in precisely that order. 3268as_nl=' 3269' 3270IFS=" $as_nl" 3271 3272# CDPATH. 3273$as_unset CDPATH 3274 3275exec 6>&1 3276 3277# Open the log real soon, to keep \$[0] and so on meaningful, and to 3278# report actual input values of CONFIG_FILES etc. instead of their 3279# values after options handling. Logging --version etc. is OK. 3280exec 5>>config.log 3281{ 3282 echo 3283 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 3284## Running $as_me. ## 3285_ASBOX 3286} >&5 3287cat >&5 <<_CSEOF 3288 3289This file was extended by $as_me, which was 3290generated by GNU Autoconf 2.57. Invocation command line was 3291 3292 CONFIG_FILES = $CONFIG_FILES 3293 CONFIG_HEADERS = $CONFIG_HEADERS 3294 CONFIG_LINKS = $CONFIG_LINKS 3295 CONFIG_COMMANDS = $CONFIG_COMMANDS 3296 $ $0 $@ 3297 3298_CSEOF 3299echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 3300echo >&5 3301_ACEOF 3302 3303# Files that config.status was made for. 3304if test -n "$ac_config_files"; then 3305 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 3306fi 3307 3308if test -n "$ac_config_headers"; then 3309 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 3310fi 3311 3312if test -n "$ac_config_links"; then 3313 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 3314fi 3315 3316if test -n "$ac_config_commands"; then 3317 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 3318fi 3319 3320cat >>$CONFIG_STATUS <<\_ACEOF 3321 3322ac_cs_usage="\ 3323\`$as_me' instantiates files from templates according to the 3324current configuration. 3325 3326Usage: $0 [OPTIONS] [FILE]... 3327 3328 -h, --help print this help, then exit 3329 -V, --version print version number, then exit 3330 -q, --quiet do not print progress messages 3331 -d, --debug don't remove temporary files 3332 --recheck update $as_me by reconfiguring in the same conditions 3333 --file=FILE[:TEMPLATE] 3334 instantiate the configuration file FILE 3335 3336Configuration files: 3337$config_files 3338 3339Report bugs to <bug-autoconf@gnu.org>." 3340_ACEOF 3341 3342cat >>$CONFIG_STATUS <<_ACEOF 3343ac_cs_version="\\ 3344config.status 3345configured by $0, generated by GNU Autoconf 2.57, 3346 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 3347 3348Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 3349Free Software Foundation, Inc. 3350This config.status script is free software; the Free Software Foundation 3351gives unlimited permission to copy, distribute and modify it." 3352srcdir=$srcdir 3353_ACEOF 3354 3355cat >>$CONFIG_STATUS <<\_ACEOF 3356# If no file are specified by the user, then we need to provide default 3357# value. By we need to know if files were specified by the user. 3358ac_need_defaults=: 3359while test $# != 0 3360do 3361 case $1 in 3362 --*=*) 3363 ac_option=`expr "x$1" : 'x\([^=]*\)='` 3364 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 3365 ac_shift=: 3366 ;; 3367 -*) 3368 ac_option=$1 3369 ac_optarg=$2 3370 ac_shift=shift 3371 ;; 3372 *) # This is not an option, so the user has probably given explicit 3373 # arguments. 3374 ac_option=$1 3375 ac_need_defaults=false;; 3376 esac 3377 3378 case $ac_option in 3379 # Handling of the options. 3380_ACEOF 3381cat >>$CONFIG_STATUS <<\_ACEOF 3382 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 3383 ac_cs_recheck=: ;; 3384 --version | --vers* | -V ) 3385 echo "$ac_cs_version"; exit 0 ;; 3386 --he | --h) 3387 # Conflict between --help and --header 3388 { { echo "$as_me:$LINENO: error: ambiguous option: $1 3389Try \`$0 --help' for more information." >&5 3390echo "$as_me: error: ambiguous option: $1 3391Try \`$0 --help' for more information." >&2;} 3392 { (exit 1); exit 1; }; };; 3393 --help | --hel | -h ) 3394 echo "$ac_cs_usage"; exit 0 ;; 3395 --debug | --d* | -d ) 3396 debug=: ;; 3397 --file | --fil | --fi | --f ) 3398 $ac_shift 3399 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 3400 ac_need_defaults=false;; 3401 --header | --heade | --head | --hea ) 3402 $ac_shift 3403 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 3404 ac_need_defaults=false;; 3405 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 3406 | -silent | --silent | --silen | --sile | --sil | --si | --s) 3407 ac_cs_silent=: ;; 3408 3409 # This is an error. 3410 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 3411Try \`$0 --help' for more information." >&5 3412echo "$as_me: error: unrecognized option: $1 3413Try \`$0 --help' for more information." >&2;} 3414 { (exit 1); exit 1; }; } ;; 3415 3416 *) ac_config_targets="$ac_config_targets $1" ;; 3417 3418 esac 3419 shift 3420done 3421 3422ac_configure_extra_args= 3423 3424if $ac_cs_silent; then 3425 exec 6>/dev/null 3426 ac_configure_extra_args="$ac_configure_extra_args --silent" 3427fi 3428 3429_ACEOF 3430cat >>$CONFIG_STATUS <<_ACEOF 3431if \$ac_cs_recheck; then 3432 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 3433 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 3434fi 3435 3436_ACEOF 3437 3438 3439 3440 3441 3442cat >>$CONFIG_STATUS <<\_ACEOF 3443for ac_config_target in $ac_config_targets 3444do 3445 case "$ac_config_target" in 3446 # Handling of arguments. 3447 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 3448 "snackConfig.sh" ) CONFIG_FILES="$CONFIG_FILES snackConfig.sh" ;; 3449 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 3450echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 3451 { (exit 1); exit 1; }; };; 3452 esac 3453done 3454 3455# If the user did not use the arguments to specify the items to instantiate, 3456# then the envvar interface is used. Set only those that are not. 3457# We use the long form for the default assignment because of an extremely 3458# bizarre bug on SunOS 4.1.3. 3459if $ac_need_defaults; then 3460 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 3461fi 3462 3463# Have a temporary directory for convenience. Make it in the build tree 3464# simply because there is no reason to put it here, and in addition, 3465# creating and moving files from /tmp can sometimes cause problems. 3466# Create a temporary directory, and hook for its removal unless debugging. 3467$debug || 3468{ 3469 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 3470 trap '{ (exit 1); exit 1; }' 1 2 13 15 3471} 3472 3473# Create a (secure) tmp directory for tmp files. 3474 3475{ 3476 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 3477 test -n "$tmp" && test -d "$tmp" 3478} || 3479{ 3480 tmp=./confstat$$-$RANDOM 3481 (umask 077 && mkdir $tmp) 3482} || 3483{ 3484 echo "$me: cannot create a temporary directory in ." >&2 3485 { (exit 1); exit 1; } 3486} 3487 3488_ACEOF 3489 3490cat >>$CONFIG_STATUS <<_ACEOF 3491 3492# 3493# CONFIG_FILES section. 3494# 3495 3496# No need to generate the scripts if there are no CONFIG_FILES. 3497# This happens for instance when ./config.status config.h 3498if test -n "\$CONFIG_FILES"; then 3499 # Protect against being on the right side of a sed subst in config.status. 3500 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 3501 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 3502s,@SHELL@,$SHELL,;t t 3503s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 3504s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 3505s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 3506s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 3507s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 3508s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 3509s,@exec_prefix@,$exec_prefix,;t t 3510s,@prefix@,$prefix,;t t 3511s,@program_transform_name@,$program_transform_name,;t t 3512s,@bindir@,$bindir,;t t 3513s,@sbindir@,$sbindir,;t t 3514s,@libexecdir@,$libexecdir,;t t 3515s,@datadir@,$datadir,;t t 3516s,@sysconfdir@,$sysconfdir,;t t 3517s,@sharedstatedir@,$sharedstatedir,;t t 3518s,@localstatedir@,$localstatedir,;t t 3519s,@libdir@,$libdir,;t t 3520s,@includedir@,$includedir,;t t 3521s,@oldincludedir@,$oldincludedir,;t t 3522s,@infodir@,$infodir,;t t 3523s,@mandir@,$mandir,;t t 3524s,@build_alias@,$build_alias,;t t 3525s,@host_alias@,$host_alias,;t t 3526s,@target_alias@,$target_alias,;t t 3527s,@DEFS@,$DEFS,;t t 3528s,@ECHO_C@,$ECHO_C,;t t 3529s,@ECHO_N@,$ECHO_N,;t t 3530s,@ECHO_T@,$ECHO_T,;t t 3531s,@LIBS@,$LIBS,;t t 3532s,@CC@,$CC,;t t 3533s,@CFLAGS@,$CFLAGS,;t t 3534s,@LDFLAGS@,$LDFLAGS,;t t 3535s,@CPPFLAGS@,$CPPFLAGS,;t t 3536s,@ac_ct_CC@,$ac_ct_CC,;t t 3537s,@EXEEXT@,$EXEEXT,;t t 3538s,@OBJEXT@,$OBJEXT,;t t 3539s,@CPP@,$CPP,;t t 3540s,@EGREP@,$EGREP,;t t 3541s,@srcdir@,$srcdir,;t t 3542s,@SNACK_VERSION@,$SNACK_VERSION,;t t 3543s,@SNACK_NODOT_VERSION@,$SNACK_NODOT_VERSION,;t t 3544s,@TCL_INCLUDE_SPEC@,$TCL_INCLUDE_SPEC,;t t 3545s,@TK_INCLUDE_SPEC@,$TK_INCLUDE_SPEC,;t t 3546s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t 3547s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t 3548s,@SNACK_INSTALL_PATH@,$SNACK_INSTALL_PATH,;t t 3549s,@SNACK_HINSTALL_PATH@,$SNACK_HINSTALL_PATH,;t t 3550s,@SNACK_LIB_SPEC@,$SNACK_LIB_SPEC,;t t 3551s,@SNACK_STUB_LIB_FILE@,$SNACK_STUB_LIB_FILE,;t t 3552s,@SNACK_STUB_LIB_FLAG@,$SNACK_STUB_LIB_FLAG,;t t 3553s,@LIBOBJS@,$LIBOBJS,;t t 3554s,@LTLIBOBJS@,$LTLIBOBJS,;t t 3555CEOF 3556 3557_ACEOF 3558 3559 cat >>$CONFIG_STATUS <<\_ACEOF 3560 # Split the substitutions into bite-sized pieces for seds with 3561 # small command number limits, like on Digital OSF/1 and HP-UX. 3562 ac_max_sed_lines=48 3563 ac_sed_frag=1 # Number of current file. 3564 ac_beg=1 # First line for current file. 3565 ac_end=$ac_max_sed_lines # Line after last line for current file. 3566 ac_more_lines=: 3567 ac_sed_cmds= 3568 while $ac_more_lines; do 3569 if test $ac_beg -gt 1; then 3570 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 3571 else 3572 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 3573 fi 3574 if test ! -s $tmp/subs.frag; then 3575 ac_more_lines=false 3576 else 3577 # The purpose of the label and of the branching condition is to 3578 # speed up the sed processing (if there are no `@' at all, there 3579 # is no need to browse any of the substitutions). 3580 # These are the two extra sed commands mentioned above. 3581 (echo ':t 3582 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 3583 if test -z "$ac_sed_cmds"; then 3584 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 3585 else 3586 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 3587 fi 3588 ac_sed_frag=`expr $ac_sed_frag + 1` 3589 ac_beg=$ac_end 3590 ac_end=`expr $ac_end + $ac_max_sed_lines` 3591 fi 3592 done 3593 if test -z "$ac_sed_cmds"; then 3594 ac_sed_cmds=cat 3595 fi 3596fi # test -n "$CONFIG_FILES" 3597 3598_ACEOF 3599cat >>$CONFIG_STATUS <<\_ACEOF 3600for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 3601 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 3602 case $ac_file in 3603 - | *:- | *:-:* ) # input from stdin 3604 cat >$tmp/stdin 3605 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 3606 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 3607 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 3608 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 3609 * ) ac_file_in=$ac_file.in ;; 3610 esac 3611 3612 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 3613 ac_dir=`(dirname "$ac_file") 2>/dev/null || 3614$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 3615 X"$ac_file" : 'X\(//\)[^/]' \| \ 3616 X"$ac_file" : 'X\(//\)$' \| \ 3617 X"$ac_file" : 'X\(/\)' \| \ 3618 . : '\(.\)' 2>/dev/null || 3619echo X"$ac_file" | 3620 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 3621 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 3622 /^X\(\/\/\)$/{ s//\1/; q; } 3623 /^X\(\/\).*/{ s//\1/; q; } 3624 s/.*/./; q'` 3625 { if $as_mkdir_p; then 3626 mkdir -p "$ac_dir" 3627 else 3628 as_dir="$ac_dir" 3629 as_dirs= 3630 while test ! -d "$as_dir"; do 3631 as_dirs="$as_dir $as_dirs" 3632 as_dir=`(dirname "$as_dir") 2>/dev/null || 3633$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 3634 X"$as_dir" : 'X\(//\)[^/]' \| \ 3635 X"$as_dir" : 'X\(//\)$' \| \ 3636 X"$as_dir" : 'X\(/\)' \| \ 3637 . : '\(.\)' 2>/dev/null || 3638echo X"$as_dir" | 3639 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 3640 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 3641 /^X\(\/\/\)$/{ s//\1/; q; } 3642 /^X\(\/\).*/{ s//\1/; q; } 3643 s/.*/./; q'` 3644 done 3645 test ! -n "$as_dirs" || mkdir $as_dirs 3646 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 3647echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 3648 { (exit 1); exit 1; }; }; } 3649 3650 ac_builddir=. 3651 3652if test "$ac_dir" != .; then 3653 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 3654 # A "../" for each directory in $ac_dir_suffix. 3655 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 3656else 3657 ac_dir_suffix= ac_top_builddir= 3658fi 3659 3660case $srcdir in 3661 .) # No --srcdir option. We are building in place. 3662 ac_srcdir=. 3663 if test -z "$ac_top_builddir"; then 3664 ac_top_srcdir=. 3665 else 3666 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 3667 fi ;; 3668 [\\/]* | ?:[\\/]* ) # Absolute path. 3669 ac_srcdir=$srcdir$ac_dir_suffix; 3670 ac_top_srcdir=$srcdir ;; 3671 *) # Relative path. 3672 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 3673 ac_top_srcdir=$ac_top_builddir$srcdir ;; 3674esac 3675# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be 3676# absolute. 3677ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` 3678ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` 3679ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` 3680ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` 3681 3682 3683 3684 if test x"$ac_file" != x-; then 3685 { echo "$as_me:$LINENO: creating $ac_file" >&5 3686echo "$as_me: creating $ac_file" >&6;} 3687 rm -f "$ac_file" 3688 fi 3689 # Let's still pretend it is `configure' which instantiates (i.e., don't 3690 # use $as_me), people would be surprised to read: 3691 # /* config.h. Generated by config.status. */ 3692 if test x"$ac_file" = x-; then 3693 configure_input= 3694 else 3695 configure_input="$ac_file. " 3696 fi 3697 configure_input=$configure_input"Generated from `echo $ac_file_in | 3698 sed 's,.*/,,'` by configure." 3699 3700 # First look for the input files in the build tree, otherwise in the 3701 # src tree. 3702 ac_file_inputs=`IFS=: 3703 for f in $ac_file_in; do 3704 case $f in 3705 -) echo $tmp/stdin ;; 3706 [\\/$]*) 3707 # Absolute (can't be DOS-style, as IFS=:) 3708 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 3709echo "$as_me: error: cannot find input file: $f" >&2;} 3710 { (exit 1); exit 1; }; } 3711 echo $f;; 3712 *) # Relative 3713 if test -f "$f"; then 3714 # Build tree 3715 echo $f 3716 elif test -f "$srcdir/$f"; then 3717 # Source tree 3718 echo $srcdir/$f 3719 else 3720 # /dev/null tree 3721 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 3722echo "$as_me: error: cannot find input file: $f" >&2;} 3723 { (exit 1); exit 1; }; } 3724 fi;; 3725 esac 3726 done` || { (exit 1); exit 1; } 3727_ACEOF 3728cat >>$CONFIG_STATUS <<_ACEOF 3729 sed "$ac_vpsub 3730$extrasub 3731_ACEOF 3732cat >>$CONFIG_STATUS <<\_ACEOF 3733:t 3734/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 3735s,@configure_input@,$configure_input,;t t 3736s,@srcdir@,$ac_srcdir,;t t 3737s,@abs_srcdir@,$ac_abs_srcdir,;t t 3738s,@top_srcdir@,$ac_top_srcdir,;t t 3739s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 3740s,@builddir@,$ac_builddir,;t t 3741s,@abs_builddir@,$ac_abs_builddir,;t t 3742s,@top_builddir@,$ac_top_builddir,;t t 3743s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 3744" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 3745 rm -f $tmp/stdin 3746 if test x"$ac_file" != x-; then 3747 mv $tmp/out $ac_file 3748 else 3749 cat $tmp/out 3750 rm -f $tmp/out 3751 fi 3752 3753done 3754_ACEOF 3755 3756cat >>$CONFIG_STATUS <<\_ACEOF 3757 3758{ (exit 0); exit 0; } 3759_ACEOF 3760chmod +x $CONFIG_STATUS 3761ac_clean_files=$ac_clean_files_save 3762 3763 3764# configure is writing to config.log, and then calls config.status. 3765# config.status does its own redirection, appending to config.log. 3766# Unfortunately, on DOS this fails, as config.log is still kept open 3767# by configure, so config.status won't be able to write to it; its 3768# output is simply discarded. So we exec the FD to /dev/null, 3769# effectively closing config.log, so it can be properly (re)opened and 3770# appended to by config.status. When coming back to configure, we 3771# need to make the FD available again. 3772if test "$no_create" != yes; then 3773 ac_cs_success=: 3774 ac_config_status_args= 3775 test "$silent" = yes && 3776 ac_config_status_args="$ac_config_status_args --quiet" 3777 exec 5>/dev/null 3778 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 3779 exec 5>>config.log 3780 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 3781 # would make configure fail if this is the last instruction. 3782 $ac_cs_success || { (exit 1); exit 1; } 3783fi 3784 3785 3786