1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.61 for vfs 1.4.1.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006 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 more Bourne compatible
14DUALCASE=1; export DUALCASE # for MKS sh
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16  emulate sh
17  NULLCMD=:
18  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19  # is contrary to our usage.  Disable this feature.
20  alias -g '${1+"$@"}'='"$@"'
21  setopt NO_GLOB_SUBST
22else
23  case `(set -o) 2>/dev/null` in
24  *posix*) set -o posix ;;
25esac
26
27fi
28
29
30
31
32# PATH needs CR
33# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then
42  echo "#! /bin/sh" >conf$$.sh
43  echo  "exit 0"   >>conf$$.sh
44  chmod +x conf$$.sh
45  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46    PATH_SEPARATOR=';'
47  else
48    PATH_SEPARATOR=:
49  fi
50  rm -f conf$$.sh
51fi
52
53# Support unset when possible.
54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55  as_unset=unset
56else
57  as_unset=false
58fi
59
60
61# IFS
62# We need space, tab and new line, in precisely that order.  Quoting is
63# there to prevent editors from complaining about space-tab.
64# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65# splitting by setting IFS to empty value.)
66as_nl='
67'
68IFS=" ""	$as_nl"
69
70# Find who we are.  Look in the path if we contain no directory separator.
71case $0 in
72  *[\\/]* ) as_myself=$0 ;;
73  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74for as_dir in $PATH
75do
76  IFS=$as_save_IFS
77  test -z "$as_dir" && as_dir=.
78  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done
80IFS=$as_save_IFS
81
82     ;;
83esac
84# We did not find ourselves, most probably we were run as `sh COMMAND'
85# in which case we are not to be found in the path.
86if test "x$as_myself" = x; then
87  as_myself=$0
88fi
89if test ! -f "$as_myself"; then
90  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91  { (exit 1); exit 1; }
92fi
93
94# Work around bugs in pre-3.0 UWIN ksh.
95for as_var in ENV MAIL MAILPATH
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97done
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
103for as_var in \
104  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106  LC_TELEPHONE LC_TIME
107do
108  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109    eval $as_var=C; export $as_var
110  else
111    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112  fi
113done
114
115# Required to use basename.
116if expr a : '\(a\)' >/dev/null 2>&1 &&
117   test "X`expr 00001 : '.*\(...\)'`" = X001; then
118  as_expr=expr
119else
120  as_expr=false
121fi
122
123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124  as_basename=basename
125else
126  as_basename=false
127fi
128
129
130# Name of the executable.
131as_me=`$as_basename -- "$0" ||
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133	 X"$0" : 'X\(//\)$' \| \
134	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135echo X/"$0" |
136    sed '/^.*\/\([^/][^/]*\)\/*$/{
137	    s//\1/
138	    q
139	  }
140	  /^X\/\(\/\/\)$/{
141	    s//\1/
142	    q
143	  }
144	  /^X\/\(\/\).*/{
145	    s//\1/
146	    q
147	  }
148	  s/.*/./; q'`
149
150# CDPATH.
151$as_unset CDPATH
152
153
154if test "x$CONFIG_SHELL" = x; then
155  if (eval ":") 2>/dev/null; then
156  as_have_required=yes
157else
158  as_have_required=no
159fi
160
161  if test $as_have_required = yes && 	 (eval ":
162(as_func_return () {
163  (exit \$1)
164}
165as_func_success () {
166  as_func_return 0
167}
168as_func_failure () {
169  as_func_return 1
170}
171as_func_ret_success () {
172  return 0
173}
174as_func_ret_failure () {
175  return 1
176}
177
178exitcode=0
179if as_func_success; then
180  :
181else
182  exitcode=1
183  echo as_func_success failed.
184fi
185
186if as_func_failure; then
187  exitcode=1
188  echo as_func_failure succeeded.
189fi
190
191if as_func_ret_success; then
192  :
193else
194  exitcode=1
195  echo as_func_ret_success failed.
196fi
197
198if as_func_ret_failure; then
199  exitcode=1
200  echo as_func_ret_failure succeeded.
201fi
202
203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204  :
205else
206  exitcode=1
207  echo positional parameters were not saved.
208fi
209
210test \$exitcode = 0) || { (exit 1); exit 1; }
211
212(
213  as_lineno_1=\$LINENO
214  as_lineno_2=\$LINENO
215  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217") 2> /dev/null; then
218  :
219else
220  as_candidate_shells=
221    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223do
224  IFS=$as_save_IFS
225  test -z "$as_dir" && as_dir=.
226  case $as_dir in
227	 /*)
228	   for as_base in sh bash ksh sh5; do
229	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230	   done;;
231       esac
232done
233IFS=$as_save_IFS
234
235
236      for as_shell in $as_candidate_shells $SHELL; do
237	 # Try only shells that exist, to save several forks.
238	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239		{ ("$as_shell") 2> /dev/null <<\_ASEOF
240if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241  emulate sh
242  NULLCMD=:
243  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244  # is contrary to our usage.  Disable this feature.
245  alias -g '${1+"$@"}'='"$@"'
246  setopt NO_GLOB_SUBST
247else
248  case `(set -o) 2>/dev/null` in
249  *posix*) set -o posix ;;
250esac
251
252fi
253
254
255:
256_ASEOF
257}; then
258  CONFIG_SHELL=$as_shell
259	       as_have_required=yes
260	       if { "$as_shell" 2> /dev/null <<\_ASEOF
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262  emulate sh
263  NULLCMD=:
264  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265  # is contrary to our usage.  Disable this feature.
266  alias -g '${1+"$@"}'='"$@"'
267  setopt NO_GLOB_SUBST
268else
269  case `(set -o) 2>/dev/null` in
270  *posix*) set -o posix ;;
271esac
272
273fi
274
275
276:
277(as_func_return () {
278  (exit $1)
279}
280as_func_success () {
281  as_func_return 0
282}
283as_func_failure () {
284  as_func_return 1
285}
286as_func_ret_success () {
287  return 0
288}
289as_func_ret_failure () {
290  return 1
291}
292
293exitcode=0
294if as_func_success; then
295  :
296else
297  exitcode=1
298  echo as_func_success failed.
299fi
300
301if as_func_failure; then
302  exitcode=1
303  echo as_func_failure succeeded.
304fi
305
306if as_func_ret_success; then
307  :
308else
309  exitcode=1
310  echo as_func_ret_success failed.
311fi
312
313if as_func_ret_failure; then
314  exitcode=1
315  echo as_func_ret_failure succeeded.
316fi
317
318if ( set x; as_func_ret_success y && test x = "$1" ); then
319  :
320else
321  exitcode=1
322  echo positional parameters were not saved.
323fi
324
325test $exitcode = 0) || { (exit 1); exit 1; }
326
327(
328  as_lineno_1=$LINENO
329  as_lineno_2=$LINENO
330  test "x$as_lineno_1" != "x$as_lineno_2" &&
331  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333_ASEOF
334}; then
335  break
336fi
337
338fi
339
340      done
341
342      if test "x$CONFIG_SHELL" != x; then
343  for as_var in BASH_ENV ENV
344        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345        done
346        export CONFIG_SHELL
347        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348fi
349
350
351    if test $as_have_required = no; then
352  echo This script requires a shell more modern than all the
353      echo shells that I found on your system.  Please install a
354      echo modern shell, or manually run the script under such a
355      echo shell if you do have one.
356      { (exit 1); exit 1; }
357fi
358
359
360fi
361
362fi
363
364
365
366(eval "as_func_return () {
367  (exit \$1)
368}
369as_func_success () {
370  as_func_return 0
371}
372as_func_failure () {
373  as_func_return 1
374}
375as_func_ret_success () {
376  return 0
377}
378as_func_ret_failure () {
379  return 1
380}
381
382exitcode=0
383if as_func_success; then
384  :
385else
386  exitcode=1
387  echo as_func_success failed.
388fi
389
390if as_func_failure; then
391  exitcode=1
392  echo as_func_failure succeeded.
393fi
394
395if as_func_ret_success; then
396  :
397else
398  exitcode=1
399  echo as_func_ret_success failed.
400fi
401
402if as_func_ret_failure; then
403  exitcode=1
404  echo as_func_ret_failure succeeded.
405fi
406
407if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408  :
409else
410  exitcode=1
411  echo positional parameters were not saved.
412fi
413
414test \$exitcode = 0") || {
415  echo No shell found that supports shell functions.
416  echo Please tell autoconf@gnu.org about your system,
417  echo including any error possibly output before this
418  echo message
419}
420
421
422
423  as_lineno_1=$LINENO
424  as_lineno_2=$LINENO
425  test "x$as_lineno_1" != "x$as_lineno_2" &&
426  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429  # uniformly replaced by the line number.  The first 'sed' inserts a
430  # line-number line after each line using $LINENO; the second 'sed'
431  # does the real work.  The second script uses 'N' to pair each
432  # line-number line with the line containing $LINENO, and appends
433  # trailing '-' during substitution so that $LINENO is not a special
434  # case at line end.
435  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436  # scripts with optimization help from Paolo Bonzini.  Blame Lee
437  # E. McMahon (1931-1989) for sed's syntax.  :-)
438  sed -n '
439    p
440    /[$]LINENO/=
441  ' <$as_myself |
442    sed '
443      s/[$]LINENO.*/&-/
444      t lineno
445      b
446      :lineno
447      N
448      :loop
449      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450      t loop
451      s/-\n.*//
452    ' >$as_me.lineno &&
453  chmod +x "$as_me.lineno" ||
454    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455   { (exit 1); exit 1; }; }
456
457  # Don't try to exec as it changes $[0], causing all sort of problems
458  # (the dirname of $[0] is not the place where we might find the
459  # original and so on.  Autoconf is especially sensitive to this).
460  . "./$as_me.lineno"
461  # Exit status is that of the last command.
462  exit
463}
464
465
466if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467  as_dirname=dirname
468else
469  as_dirname=false
470fi
471
472ECHO_C= ECHO_N= ECHO_T=
473case `echo -n x` in
474-n*)
475  case `echo 'x\c'` in
476  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
477  *)   ECHO_C='\c';;
478  esac;;
479*)
480  ECHO_N='-n';;
481esac
482
483if expr a : '\(a\)' >/dev/null 2>&1 &&
484   test "X`expr 00001 : '.*\(...\)'`" = X001; then
485  as_expr=expr
486else
487  as_expr=false
488fi
489
490rm -f conf$$ conf$$.exe conf$$.file
491if test -d conf$$.dir; then
492  rm -f conf$$.dir/conf$$.file
493else
494  rm -f conf$$.dir
495  mkdir conf$$.dir
496fi
497echo >conf$$.file
498if ln -s conf$$.file conf$$ 2>/dev/null; then
499  as_ln_s='ln -s'
500  # ... but there are two gotchas:
501  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503  # In both cases, we have to default to `cp -p'.
504  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505    as_ln_s='cp -p'
506elif ln conf$$.file conf$$ 2>/dev/null; then
507  as_ln_s=ln
508else
509  as_ln_s='cp -p'
510fi
511rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512rmdir conf$$.dir 2>/dev/null
513
514if mkdir -p . 2>/dev/null; then
515  as_mkdir_p=:
516else
517  test -d ./-p && rmdir ./-p
518  as_mkdir_p=false
519fi
520
521if test -x / >/dev/null 2>&1; then
522  as_test_x='test -x'
523else
524  if ls -dL / >/dev/null 2>&1; then
525    as_ls_L_option=L
526  else
527    as_ls_L_option=
528  fi
529  as_test_x='
530    eval sh -c '\''
531      if test -d "$1"; then
532        test -d "$1/.";
533      else
534	case $1 in
535        -*)set "./$1";;
536	esac;
537	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538	???[sx]*):;;*)false;;esac;fi
539    '\'' sh
540  '
541fi
542as_executable_p=$as_test_x
543
544# Sed expression to map a string onto a valid CPP name.
545as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547# Sed expression to map a string onto a valid variable name.
548as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552exec 7<&0 </dev/null 6>&1
553
554# Name of the host.
555# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556# so uname gets run too.
557ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
559#
560# Initializations.
561#
562ac_default_prefix=/usr/local
563ac_clean_files=
564ac_config_libobj_dir=.
565LIBOBJS=
566cross_compiling=no
567subdirs=
568MFLAGS=
569MAKEFLAGS=
570SHELL=${CONFIG_SHELL-/bin/sh}
571
572# Identity of this package.
573PACKAGE_NAME='vfs'
574PACKAGE_TARNAME='vfs'
575PACKAGE_VERSION='1.4.1'
576PACKAGE_STRING='vfs 1.4.1'
577PACKAGE_BUGREPORT=''
578
579# Factoring default headers for most tests.
580ac_includes_default="\
581#include <stdio.h>
582#ifdef HAVE_SYS_TYPES_H
583# include <sys/types.h>
584#endif
585#ifdef HAVE_SYS_STAT_H
586# include <sys/stat.h>
587#endif
588#ifdef STDC_HEADERS
589# include <stdlib.h>
590# include <stddef.h>
591#else
592# ifdef HAVE_STDLIB_H
593#  include <stdlib.h>
594# endif
595#endif
596#ifdef HAVE_STRING_H
597# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
598#  include <memory.h>
599# endif
600# include <string.h>
601#endif
602#ifdef HAVE_STRINGS_H
603# include <strings.h>
604#endif
605#ifdef HAVE_INTTYPES_H
606# include <inttypes.h>
607#endif
608#ifdef HAVE_STDINT_H
609# include <stdint.h>
610#endif
611#ifdef HAVE_UNISTD_H
612# include <unistd.h>
613#endif"
614
615ac_subst_vars='SHELL
616PATH_SEPARATOR
617PACKAGE_NAME
618PACKAGE_TARNAME
619PACKAGE_VERSION
620PACKAGE_STRING
621PACKAGE_BUGREPORT
622exec_prefix
623prefix
624program_transform_name
625bindir
626sbindir
627libexecdir
628datarootdir
629datadir
630sysconfdir
631sharedstatedir
632localstatedir
633includedir
634oldincludedir
635docdir
636infodir
637htmldir
638dvidir
639pdfdir
640psdir
641libdir
642localedir
643mandir
644DEFS
645ECHO_C
646ECHO_N
647ECHO_T
648LIBS
649build_alias
650host_alias
651target_alias
652CYGPATH
653EXEEXT
654PKG_LIB_FILE
655PKG_STUB_LIB_FILE
656PKG_STUB_SOURCES
657PKG_STUB_OBJECTS
658PKG_TCL_SOURCES
659PKG_HEADERS
660PKG_INCLUDES
661PKG_LIBS
662PKG_CFLAGS
663TCL_VERSION
664TCL_PATCH_LEVEL
665TCL_BIN_DIR
666TCL_SRC_DIR
667TCL_LIB_FILE
668TCL_LIB_FLAG
669TCL_LIB_SPEC
670TCL_STUB_LIB_FILE
671TCL_STUB_LIB_FLAG
672TCL_STUB_LIB_SPEC
673CLEANFILES
674TCL_LIBS
675TCL_DEFS
676TCL_EXTRA_CFLAGS
677TCL_LD_FLAGS
678TCL_SHLIB_LD_LIBS
679CC
680CFLAGS
681LDFLAGS
682CPPFLAGS
683ac_ct_CC
684OBJEXT
685CPP
686INSTALL_PROGRAM
687INSTALL_SCRIPT
688INSTALL_DATA
689SET_MAKE
690RANLIB
691GREP
692EGREP
693MATH_LIBS
694PKG_SOURCES
695PKG_OBJECTS
696TCL_INCLUDES
697TCL_TOP_DIR_NATIVE
698TCL_THREADS
699SHARED_BUILD
700AR
701CELIB_DIR
702CFLAGS_DEBUG
703CFLAGS_OPTIMIZE
704CFLAGS_WARNING
705STLIB_LD
706SHLIB_LD
707SHLIB_LD_LIBS
708SHLIB_CFLAGS
709LD_LIBRARY_PATH_VAR
710CFLAGS_DEFAULT
711LDFLAGS_DEFAULT
712TCL_DBGX
713MAKE_LIB
714MAKE_SHARED_LIB
715MAKE_STATIC_LIB
716MAKE_STUB_LIB
717RANLIB_STUB
718VC_MANIFEST_EMBED_DLL
719VC_MANIFEST_EMBED_EXE
720TCLSH_PROG
721LIBOBJS
722LTLIBOBJS'
723ac_subst_files=''
724      ac_precious_vars='build_alias
725host_alias
726target_alias
727CC
728CFLAGS
729LDFLAGS
730LIBS
731CPPFLAGS
732CPP'
733
734
735# Initialize some variables set by options.
736ac_init_help=
737ac_init_version=false
738# The variables have the same names as the options, with
739# dashes changed to underlines.
740cache_file=/dev/null
741exec_prefix=NONE
742no_create=
743no_recursion=
744prefix=NONE
745program_prefix=NONE
746program_suffix=NONE
747program_transform_name=s,x,x,
748silent=
749site=
750srcdir=
751verbose=
752x_includes=NONE
753x_libraries=NONE
754
755# Installation directory options.
756# These are left unexpanded so users can "make install exec_prefix=/foo"
757# and all the variables that are supposed to be based on exec_prefix
758# by default will actually change.
759# Use braces instead of parens because sh, perl, etc. also accept them.
760# (The list follows the same order as the GNU Coding Standards.)
761bindir='${exec_prefix}/bin'
762sbindir='${exec_prefix}/sbin'
763libexecdir='${exec_prefix}/libexec'
764datarootdir='${prefix}/share'
765datadir='${datarootdir}'
766sysconfdir='${prefix}/etc'
767sharedstatedir='${prefix}/com'
768localstatedir='${prefix}/var'
769includedir='${prefix}/include'
770oldincludedir='/usr/include'
771docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
772infodir='${datarootdir}/info'
773htmldir='${docdir}'
774dvidir='${docdir}'
775pdfdir='${docdir}'
776psdir='${docdir}'
777libdir='${exec_prefix}/lib'
778localedir='${datarootdir}/locale'
779mandir='${datarootdir}/man'
780
781ac_prev=
782ac_dashdash=
783for ac_option
784do
785  # If the previous option needs an argument, assign it.
786  if test -n "$ac_prev"; then
787    eval $ac_prev=\$ac_option
788    ac_prev=
789    continue
790  fi
791
792  case $ac_option in
793  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
794  *)	ac_optarg=yes ;;
795  esac
796
797  # Accept the important Cygnus configure options, so we can diagnose typos.
798
799  case $ac_dashdash$ac_option in
800  --)
801    ac_dashdash=yes ;;
802
803  -bindir | --bindir | --bindi | --bind | --bin | --bi)
804    ac_prev=bindir ;;
805  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
806    bindir=$ac_optarg ;;
807
808  -build | --build | --buil | --bui | --bu)
809    ac_prev=build_alias ;;
810  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
811    build_alias=$ac_optarg ;;
812
813  -cache-file | --cache-file | --cache-fil | --cache-fi \
814  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
815    ac_prev=cache_file ;;
816  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
817  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
818    cache_file=$ac_optarg ;;
819
820  --config-cache | -C)
821    cache_file=config.cache ;;
822
823  -datadir | --datadir | --datadi | --datad)
824    ac_prev=datadir ;;
825  -datadir=* | --datadir=* | --datadi=* | --datad=*)
826    datadir=$ac_optarg ;;
827
828  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
829  | --dataroo | --dataro | --datar)
830    ac_prev=datarootdir ;;
831  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
832  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
833    datarootdir=$ac_optarg ;;
834
835  -disable-* | --disable-*)
836    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
837    # Reject names that are not valid shell variable names.
838    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
839      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
840   { (exit 1); exit 1; }; }
841    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
842    eval enable_$ac_feature=no ;;
843
844  -docdir | --docdir | --docdi | --doc | --do)
845    ac_prev=docdir ;;
846  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
847    docdir=$ac_optarg ;;
848
849  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
850    ac_prev=dvidir ;;
851  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
852    dvidir=$ac_optarg ;;
853
854  -enable-* | --enable-*)
855    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
856    # Reject names that are not valid shell variable names.
857    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
858      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
859   { (exit 1); exit 1; }; }
860    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
861    eval enable_$ac_feature=\$ac_optarg ;;
862
863  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
864  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
865  | --exec | --exe | --ex)
866    ac_prev=exec_prefix ;;
867  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
868  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
869  | --exec=* | --exe=* | --ex=*)
870    exec_prefix=$ac_optarg ;;
871
872  -gas | --gas | --ga | --g)
873    # Obsolete; use --with-gas.
874    with_gas=yes ;;
875
876  -help | --help | --hel | --he | -h)
877    ac_init_help=long ;;
878  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
879    ac_init_help=recursive ;;
880  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
881    ac_init_help=short ;;
882
883  -host | --host | --hos | --ho)
884    ac_prev=host_alias ;;
885  -host=* | --host=* | --hos=* | --ho=*)
886    host_alias=$ac_optarg ;;
887
888  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
889    ac_prev=htmldir ;;
890  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
891  | --ht=*)
892    htmldir=$ac_optarg ;;
893
894  -includedir | --includedir | --includedi | --included | --include \
895  | --includ | --inclu | --incl | --inc)
896    ac_prev=includedir ;;
897  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
898  | --includ=* | --inclu=* | --incl=* | --inc=*)
899    includedir=$ac_optarg ;;
900
901  -infodir | --infodir | --infodi | --infod | --info | --inf)
902    ac_prev=infodir ;;
903  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
904    infodir=$ac_optarg ;;
905
906  -libdir | --libdir | --libdi | --libd)
907    ac_prev=libdir ;;
908  -libdir=* | --libdir=* | --libdi=* | --libd=*)
909    libdir=$ac_optarg ;;
910
911  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
912  | --libexe | --libex | --libe)
913    ac_prev=libexecdir ;;
914  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
915  | --libexe=* | --libex=* | --libe=*)
916    libexecdir=$ac_optarg ;;
917
918  -localedir | --localedir | --localedi | --localed | --locale)
919    ac_prev=localedir ;;
920  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
921    localedir=$ac_optarg ;;
922
923  -localstatedir | --localstatedir | --localstatedi | --localstated \
924  | --localstate | --localstat | --localsta | --localst | --locals)
925    ac_prev=localstatedir ;;
926  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
927  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
928    localstatedir=$ac_optarg ;;
929
930  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
931    ac_prev=mandir ;;
932  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
933    mandir=$ac_optarg ;;
934
935  -nfp | --nfp | --nf)
936    # Obsolete; use --without-fp.
937    with_fp=no ;;
938
939  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
940  | --no-cr | --no-c | -n)
941    no_create=yes ;;
942
943  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
944  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
945    no_recursion=yes ;;
946
947  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
948  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
949  | --oldin | --oldi | --old | --ol | --o)
950    ac_prev=oldincludedir ;;
951  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
952  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
953  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
954    oldincludedir=$ac_optarg ;;
955
956  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
957    ac_prev=prefix ;;
958  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
959    prefix=$ac_optarg ;;
960
961  -program-prefix | --program-prefix | --program-prefi | --program-pref \
962  | --program-pre | --program-pr | --program-p)
963    ac_prev=program_prefix ;;
964  -program-prefix=* | --program-prefix=* | --program-prefi=* \
965  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
966    program_prefix=$ac_optarg ;;
967
968  -program-suffix | --program-suffix | --program-suffi | --program-suff \
969  | --program-suf | --program-su | --program-s)
970    ac_prev=program_suffix ;;
971  -program-suffix=* | --program-suffix=* | --program-suffi=* \
972  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
973    program_suffix=$ac_optarg ;;
974
975  -program-transform-name | --program-transform-name \
976  | --program-transform-nam | --program-transform-na \
977  | --program-transform-n | --program-transform- \
978  | --program-transform | --program-transfor \
979  | --program-transfo | --program-transf \
980  | --program-trans | --program-tran \
981  | --progr-tra | --program-tr | --program-t)
982    ac_prev=program_transform_name ;;
983  -program-transform-name=* | --program-transform-name=* \
984  | --program-transform-nam=* | --program-transform-na=* \
985  | --program-transform-n=* | --program-transform-=* \
986  | --program-transform=* | --program-transfor=* \
987  | --program-transfo=* | --program-transf=* \
988  | --program-trans=* | --program-tran=* \
989  | --progr-tra=* | --program-tr=* | --program-t=*)
990    program_transform_name=$ac_optarg ;;
991
992  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
993    ac_prev=pdfdir ;;
994  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
995    pdfdir=$ac_optarg ;;
996
997  -psdir | --psdir | --psdi | --psd | --ps)
998    ac_prev=psdir ;;
999  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1000    psdir=$ac_optarg ;;
1001
1002  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1003  | -silent | --silent | --silen | --sile | --sil)
1004    silent=yes ;;
1005
1006  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1007    ac_prev=sbindir ;;
1008  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1009  | --sbi=* | --sb=*)
1010    sbindir=$ac_optarg ;;
1011
1012  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1013  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1014  | --sharedst | --shareds | --shared | --share | --shar \
1015  | --sha | --sh)
1016    ac_prev=sharedstatedir ;;
1017  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1018  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1019  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1020  | --sha=* | --sh=*)
1021    sharedstatedir=$ac_optarg ;;
1022
1023  -site | --site | --sit)
1024    ac_prev=site ;;
1025  -site=* | --site=* | --sit=*)
1026    site=$ac_optarg ;;
1027
1028  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1029    ac_prev=srcdir ;;
1030  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1031    srcdir=$ac_optarg ;;
1032
1033  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1034  | --syscon | --sysco | --sysc | --sys | --sy)
1035    ac_prev=sysconfdir ;;
1036  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1037  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1038    sysconfdir=$ac_optarg ;;
1039
1040  -target | --target | --targe | --targ | --tar | --ta | --t)
1041    ac_prev=target_alias ;;
1042  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1043    target_alias=$ac_optarg ;;
1044
1045  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1046    verbose=yes ;;
1047
1048  -version | --version | --versio | --versi | --vers | -V)
1049    ac_init_version=: ;;
1050
1051  -with-* | --with-*)
1052    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1053    # Reject names that are not valid shell variable names.
1054    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1055      { echo "$as_me: error: invalid package name: $ac_package" >&2
1056   { (exit 1); exit 1; }; }
1057    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1058    eval with_$ac_package=\$ac_optarg ;;
1059
1060  -without-* | --without-*)
1061    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1062    # Reject names that are not valid shell variable names.
1063    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1064      { echo "$as_me: error: invalid package name: $ac_package" >&2
1065   { (exit 1); exit 1; }; }
1066    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1067    eval with_$ac_package=no ;;
1068
1069  --x)
1070    # Obsolete; use --with-x.
1071    with_x=yes ;;
1072
1073  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1074  | --x-incl | --x-inc | --x-in | --x-i)
1075    ac_prev=x_includes ;;
1076  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1077  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1078    x_includes=$ac_optarg ;;
1079
1080  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1081  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1082    ac_prev=x_libraries ;;
1083  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1084  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1085    x_libraries=$ac_optarg ;;
1086
1087  -*) { echo "$as_me: error: unrecognized option: $ac_option
1088Try \`$0 --help' for more information." >&2
1089   { (exit 1); exit 1; }; }
1090    ;;
1091
1092  *=*)
1093    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1094    # Reject names that are not valid shell variable names.
1095    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1096      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1097   { (exit 1); exit 1; }; }
1098    eval $ac_envvar=\$ac_optarg
1099    export $ac_envvar ;;
1100
1101  *)
1102    # FIXME: should be removed in autoconf 3.0.
1103    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1104    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1105      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1106    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1107    ;;
1108
1109  esac
1110done
1111
1112if test -n "$ac_prev"; then
1113  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1114  { echo "$as_me: error: missing argument to $ac_option" >&2
1115   { (exit 1); exit 1; }; }
1116fi
1117
1118# Be sure to have absolute directory names.
1119for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1120		datadir sysconfdir sharedstatedir localstatedir includedir \
1121		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1122		libdir localedir mandir
1123do
1124  eval ac_val=\$$ac_var
1125  case $ac_val in
1126    [\\/$]* | ?:[\\/]* )  continue;;
1127    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1128  esac
1129  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1130   { (exit 1); exit 1; }; }
1131done
1132
1133# There might be people who depend on the old broken behavior: `$host'
1134# used to hold the argument of --host etc.
1135# FIXME: To remove some day.
1136build=$build_alias
1137host=$host_alias
1138target=$target_alias
1139
1140# FIXME: To remove some day.
1141if test "x$host_alias" != x; then
1142  if test "x$build_alias" = x; then
1143    cross_compiling=maybe
1144    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1145    If a cross compiler is detected then cross compile mode will be used." >&2
1146  elif test "x$build_alias" != "x$host_alias"; then
1147    cross_compiling=yes
1148  fi
1149fi
1150
1151ac_tool_prefix=
1152test -n "$host_alias" && ac_tool_prefix=$host_alias-
1153
1154test "$silent" = yes && exec 6>/dev/null
1155
1156
1157ac_pwd=`pwd` && test -n "$ac_pwd" &&
1158ac_ls_di=`ls -di .` &&
1159ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1160  { echo "$as_me: error: Working directory cannot be determined" >&2
1161   { (exit 1); exit 1; }; }
1162test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1163  { echo "$as_me: error: pwd does not report name of working directory" >&2
1164   { (exit 1); exit 1; }; }
1165
1166
1167# Find the source files, if location was not specified.
1168if test -z "$srcdir"; then
1169  ac_srcdir_defaulted=yes
1170  # Try the directory containing this script, then the parent directory.
1171  ac_confdir=`$as_dirname -- "$0" ||
1172$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1173	 X"$0" : 'X\(//\)[^/]' \| \
1174	 X"$0" : 'X\(//\)$' \| \
1175	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1176echo X"$0" |
1177    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1178	    s//\1/
1179	    q
1180	  }
1181	  /^X\(\/\/\)[^/].*/{
1182	    s//\1/
1183	    q
1184	  }
1185	  /^X\(\/\/\)$/{
1186	    s//\1/
1187	    q
1188	  }
1189	  /^X\(\/\).*/{
1190	    s//\1/
1191	    q
1192	  }
1193	  s/.*/./; q'`
1194  srcdir=$ac_confdir
1195  if test ! -r "$srcdir/$ac_unique_file"; then
1196    srcdir=..
1197  fi
1198else
1199  ac_srcdir_defaulted=no
1200fi
1201if test ! -r "$srcdir/$ac_unique_file"; then
1202  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1203  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1204   { (exit 1); exit 1; }; }
1205fi
1206ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1207ac_abs_confdir=`(
1208	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1209   { (exit 1); exit 1; }; }
1210	pwd)`
1211# When building in place, set srcdir=.
1212if test "$ac_abs_confdir" = "$ac_pwd"; then
1213  srcdir=.
1214fi
1215# Remove unnecessary trailing slashes from srcdir.
1216# Double slashes in file names in object file debugging info
1217# mess up M-x gdb in Emacs.
1218case $srcdir in
1219*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1220esac
1221for ac_var in $ac_precious_vars; do
1222  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1223  eval ac_env_${ac_var}_value=\$${ac_var}
1224  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1225  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1226done
1227
1228#
1229# Report the --help message.
1230#
1231if test "$ac_init_help" = "long"; then
1232  # Omit some internal or obsolete options to make the list less imposing.
1233  # This message is too long to be a string in the A/UX 3.1 sh.
1234  cat <<_ACEOF
1235\`configure' configures vfs 1.4.1 to adapt to many kinds of systems.
1236
1237Usage: $0 [OPTION]... [VAR=VALUE]...
1238
1239To assign environment variables (e.g., CC, CFLAGS...), specify them as
1240VAR=VALUE.  See below for descriptions of some of the useful variables.
1241
1242Defaults for the options are specified in brackets.
1243
1244Configuration:
1245  -h, --help              display this help and exit
1246      --help=short        display options specific to this package
1247      --help=recursive    display the short help of all the included packages
1248  -V, --version           display version information and exit
1249  -q, --quiet, --silent   do not print \`checking...' messages
1250      --cache-file=FILE   cache test results in FILE [disabled]
1251  -C, --config-cache      alias for \`--cache-file=config.cache'
1252  -n, --no-create         do not create output files
1253      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1254
1255Installation directories:
1256  --prefix=PREFIX         install architecture-independent files in PREFIX
1257			  [$ac_default_prefix]
1258  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1259			  [PREFIX]
1260
1261By default, \`make install' will install all the files in
1262\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1263an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1264for instance \`--prefix=\$HOME'.
1265
1266For better control, use the options below.
1267
1268Fine tuning of the installation directories:
1269  --bindir=DIR           user executables [EPREFIX/bin]
1270  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1271  --libexecdir=DIR       program executables [EPREFIX/libexec]
1272  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1273  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1274  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1275  --libdir=DIR           object code libraries [EPREFIX/lib]
1276  --includedir=DIR       C header files [PREFIX/include]
1277  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1278  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1279  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1280  --infodir=DIR          info documentation [DATAROOTDIR/info]
1281  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1282  --mandir=DIR           man documentation [DATAROOTDIR/man]
1283  --docdir=DIR           documentation root [DATAROOTDIR/doc/vfs]
1284  --htmldir=DIR          html documentation [DOCDIR]
1285  --dvidir=DIR           dvi documentation [DOCDIR]
1286  --pdfdir=DIR           pdf documentation [DOCDIR]
1287  --psdir=DIR            ps documentation [DOCDIR]
1288_ACEOF
1289
1290  cat <<\_ACEOF
1291_ACEOF
1292fi
1293
1294if test -n "$ac_init_help"; then
1295  case $ac_init_help in
1296     short | recursive ) echo "Configuration of vfs 1.4.1:";;
1297   esac
1298  cat <<\_ACEOF
1299
1300Optional Features:
1301  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1302  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1303  --enable-threads        build with threads
1304  --enable-shared         build and link with shared libraries (default: on)
1305  --enable-64bit          enable 64bit support (default: off)
1306  --enable-64bit-vis      enable 64bit Sparc VIS support (default: off)
1307  --disable-rpath         disable rpath support (default: on)
1308  --enable-wince          enable Win/CE support (where applicable)
1309  --enable-symbols        build with debugging symbols (default: off)
1310
1311Optional Packages:
1312  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1313  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1314  --with-tcl              directory containing tcl configuration
1315                          (tclConfig.sh)
1316  --with-tclinclude       directory containing the public Tcl header files
1317  --with-celib=DIR        use Windows/CE support library from DIR
1318
1319Some influential environment variables:
1320  CC          C compiler command
1321  CFLAGS      C compiler flags
1322  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1323              nonstandard directory <lib dir>
1324  LIBS        libraries to pass to the linker, e.g. -l<library>
1325  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1326              you have headers in a nonstandard directory <include dir>
1327  CPP         C preprocessor
1328
1329Use these variables to override the choices made by `configure' or to help
1330it to find libraries and programs with nonstandard names/locations.
1331
1332_ACEOF
1333ac_status=$?
1334fi
1335
1336if test "$ac_init_help" = "recursive"; then
1337  # If there are subdirs, report their specific --help.
1338  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1339    test -d "$ac_dir" || continue
1340    ac_builddir=.
1341
1342case "$ac_dir" in
1343.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1344*)
1345  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1346  # A ".." for each directory in $ac_dir_suffix.
1347  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1348  case $ac_top_builddir_sub in
1349  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1350  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1351  esac ;;
1352esac
1353ac_abs_top_builddir=$ac_pwd
1354ac_abs_builddir=$ac_pwd$ac_dir_suffix
1355# for backward compatibility:
1356ac_top_builddir=$ac_top_build_prefix
1357
1358case $srcdir in
1359  .)  # We are building in place.
1360    ac_srcdir=.
1361    ac_top_srcdir=$ac_top_builddir_sub
1362    ac_abs_top_srcdir=$ac_pwd ;;
1363  [\\/]* | ?:[\\/]* )  # Absolute name.
1364    ac_srcdir=$srcdir$ac_dir_suffix;
1365    ac_top_srcdir=$srcdir
1366    ac_abs_top_srcdir=$srcdir ;;
1367  *) # Relative name.
1368    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1369    ac_top_srcdir=$ac_top_build_prefix$srcdir
1370    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1371esac
1372ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1373
1374    cd "$ac_dir" || { ac_status=$?; continue; }
1375    # Check for guested configure.
1376    if test -f "$ac_srcdir/configure.gnu"; then
1377      echo &&
1378      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1379    elif test -f "$ac_srcdir/configure"; then
1380      echo &&
1381      $SHELL "$ac_srcdir/configure" --help=recursive
1382    else
1383      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1384    fi || ac_status=$?
1385    cd "$ac_pwd" || { ac_status=$?; break; }
1386  done
1387fi
1388
1389test -n "$ac_init_help" && exit $ac_status
1390if $ac_init_version; then
1391  cat <<\_ACEOF
1392vfs configure 1.4.1
1393generated by GNU Autoconf 2.61
1394
1395Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
13962002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1397This configure script is free software; the Free Software Foundation
1398gives unlimited permission to copy, distribute and modify it.
1399_ACEOF
1400  exit
1401fi
1402cat >config.log <<_ACEOF
1403This file contains any messages produced by compilers while
1404running configure, to aid debugging if configure makes a mistake.
1405
1406It was created by vfs $as_me 1.4.1, which was
1407generated by GNU Autoconf 2.61.  Invocation command line was
1408
1409  $ $0 $@
1410
1411_ACEOF
1412exec 5>>config.log
1413{
1414cat <<_ASUNAME
1415## --------- ##
1416## Platform. ##
1417## --------- ##
1418
1419hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1420uname -m = `(uname -m) 2>/dev/null || echo unknown`
1421uname -r = `(uname -r) 2>/dev/null || echo unknown`
1422uname -s = `(uname -s) 2>/dev/null || echo unknown`
1423uname -v = `(uname -v) 2>/dev/null || echo unknown`
1424
1425/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1426/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1427
1428/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1429/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1430/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1431/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1432/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1433/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1434/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1435
1436_ASUNAME
1437
1438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1439for as_dir in $PATH
1440do
1441  IFS=$as_save_IFS
1442  test -z "$as_dir" && as_dir=.
1443  echo "PATH: $as_dir"
1444done
1445IFS=$as_save_IFS
1446
1447} >&5
1448
1449cat >&5 <<_ACEOF
1450
1451
1452## ----------- ##
1453## Core tests. ##
1454## ----------- ##
1455
1456_ACEOF
1457
1458
1459# Keep a trace of the command line.
1460# Strip out --no-create and --no-recursion so they do not pile up.
1461# Strip out --silent because we don't want to record it for future runs.
1462# Also quote any args containing shell meta-characters.
1463# Make two passes to allow for proper duplicate-argument suppression.
1464ac_configure_args=
1465ac_configure_args0=
1466ac_configure_args1=
1467ac_must_keep_next=false
1468for ac_pass in 1 2
1469do
1470  for ac_arg
1471  do
1472    case $ac_arg in
1473    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1474    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1475    | -silent | --silent | --silen | --sile | --sil)
1476      continue ;;
1477    *\'*)
1478      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1479    esac
1480    case $ac_pass in
1481    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1482    2)
1483      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1484      if test $ac_must_keep_next = true; then
1485	ac_must_keep_next=false # Got value, back to normal.
1486      else
1487	case $ac_arg in
1488	  *=* | --config-cache | -C | -disable-* | --disable-* \
1489	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1490	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1491	  | -with-* | --with-* | -without-* | --without-* | --x)
1492	    case "$ac_configure_args0 " in
1493	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1494	    esac
1495	    ;;
1496	  -* ) ac_must_keep_next=true ;;
1497	esac
1498      fi
1499      ac_configure_args="$ac_configure_args '$ac_arg'"
1500      ;;
1501    esac
1502  done
1503done
1504$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1505$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1506
1507# When interrupted or exit'd, cleanup temporary files, and complete
1508# config.log.  We remove comments because anyway the quotes in there
1509# would cause problems or look ugly.
1510# WARNING: Use '\'' to represent an apostrophe within the trap.
1511# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1512trap 'exit_status=$?
1513  # Save into config.log some information that might help in debugging.
1514  {
1515    echo
1516
1517    cat <<\_ASBOX
1518## ---------------- ##
1519## Cache variables. ##
1520## ---------------- ##
1521_ASBOX
1522    echo
1523    # The following way of writing the cache mishandles newlines in values,
1524(
1525  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1526    eval ac_val=\$$ac_var
1527    case $ac_val in #(
1528    *${as_nl}*)
1529      case $ac_var in #(
1530      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1531echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1532      esac
1533      case $ac_var in #(
1534      _ | IFS | as_nl) ;; #(
1535      *) $as_unset $ac_var ;;
1536      esac ;;
1537    esac
1538  done
1539  (set) 2>&1 |
1540    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1541    *${as_nl}ac_space=\ *)
1542      sed -n \
1543	"s/'\''/'\''\\\\'\'''\''/g;
1544	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1545      ;; #(
1546    *)
1547      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1548      ;;
1549    esac |
1550    sort
1551)
1552    echo
1553
1554    cat <<\_ASBOX
1555## ----------------- ##
1556## Output variables. ##
1557## ----------------- ##
1558_ASBOX
1559    echo
1560    for ac_var in $ac_subst_vars
1561    do
1562      eval ac_val=\$$ac_var
1563      case $ac_val in
1564      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1565      esac
1566      echo "$ac_var='\''$ac_val'\''"
1567    done | sort
1568    echo
1569
1570    if test -n "$ac_subst_files"; then
1571      cat <<\_ASBOX
1572## ------------------- ##
1573## File substitutions. ##
1574## ------------------- ##
1575_ASBOX
1576      echo
1577      for ac_var in $ac_subst_files
1578      do
1579	eval ac_val=\$$ac_var
1580	case $ac_val in
1581	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1582	esac
1583	echo "$ac_var='\''$ac_val'\''"
1584      done | sort
1585      echo
1586    fi
1587
1588    if test -s confdefs.h; then
1589      cat <<\_ASBOX
1590## ----------- ##
1591## confdefs.h. ##
1592## ----------- ##
1593_ASBOX
1594      echo
1595      cat confdefs.h
1596      echo
1597    fi
1598    test "$ac_signal" != 0 &&
1599      echo "$as_me: caught signal $ac_signal"
1600    echo "$as_me: exit $exit_status"
1601  } >&5
1602  rm -f core *.core core.conftest.* &&
1603    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1604    exit $exit_status
1605' 0
1606for ac_signal in 1 2 13 15; do
1607  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1608done
1609ac_signal=0
1610
1611# confdefs.h avoids OS command line length limits that DEFS can exceed.
1612rm -f -r conftest* confdefs.h
1613
1614# Predefined preprocessor variables.
1615
1616cat >>confdefs.h <<_ACEOF
1617#define PACKAGE_NAME "$PACKAGE_NAME"
1618_ACEOF
1619
1620
1621cat >>confdefs.h <<_ACEOF
1622#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1623_ACEOF
1624
1625
1626cat >>confdefs.h <<_ACEOF
1627#define PACKAGE_VERSION "$PACKAGE_VERSION"
1628_ACEOF
1629
1630
1631cat >>confdefs.h <<_ACEOF
1632#define PACKAGE_STRING "$PACKAGE_STRING"
1633_ACEOF
1634
1635
1636cat >>confdefs.h <<_ACEOF
1637#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1638_ACEOF
1639
1640
1641# Let the site file select an alternate cache file if it wants to.
1642# Prefer explicitly selected file to automatically selected ones.
1643if test -n "$CONFIG_SITE"; then
1644  set x "$CONFIG_SITE"
1645elif test "x$prefix" != xNONE; then
1646  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1647else
1648  set x "$ac_default_prefix/share/config.site" \
1649	"$ac_default_prefix/etc/config.site"
1650fi
1651shift
1652for ac_site_file
1653do
1654  if test -r "$ac_site_file"; then
1655    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1656echo "$as_me: loading site script $ac_site_file" >&6;}
1657    sed 's/^/| /' "$ac_site_file" >&5
1658    . "$ac_site_file"
1659  fi
1660done
1661
1662if test -r "$cache_file"; then
1663  # Some versions of bash will fail to source /dev/null (special
1664  # files actually), so we avoid doing that.
1665  if test -f "$cache_file"; then
1666    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1667echo "$as_me: loading cache $cache_file" >&6;}
1668    case $cache_file in
1669      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1670      *)                      . "./$cache_file";;
1671    esac
1672  fi
1673else
1674  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1675echo "$as_me: creating cache $cache_file" >&6;}
1676  >$cache_file
1677fi
1678
1679# Check that the precious variables saved in the cache have kept the same
1680# value.
1681ac_cache_corrupted=false
1682for ac_var in $ac_precious_vars; do
1683  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1684  eval ac_new_set=\$ac_env_${ac_var}_set
1685  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1686  eval ac_new_val=\$ac_env_${ac_var}_value
1687  case $ac_old_set,$ac_new_set in
1688    set,)
1689      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1690echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1691      ac_cache_corrupted=: ;;
1692    ,set)
1693      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1694echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1695      ac_cache_corrupted=: ;;
1696    ,);;
1697    *)
1698      if test "x$ac_old_val" != "x$ac_new_val"; then
1699	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1700echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1701	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1702echo "$as_me:   former value:  $ac_old_val" >&2;}
1703	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1704echo "$as_me:   current value: $ac_new_val" >&2;}
1705	ac_cache_corrupted=:
1706      fi;;
1707  esac
1708  # Pass precious variables to config.status.
1709  if test "$ac_new_set" = set; then
1710    case $ac_new_val in
1711    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1712    *) ac_arg=$ac_var=$ac_new_val ;;
1713    esac
1714    case " $ac_configure_args " in
1715      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1716      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1717    esac
1718  fi
1719done
1720if $ac_cache_corrupted; then
1721  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1722echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1723  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1724echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1725   { (exit 1); exit 1; }; }
1726fi
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752ac_ext=c
1753ac_cpp='$CPP $CPPFLAGS'
1754ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1755ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1756ac_compiler_gnu=$ac_cv_c_compiler_gnu
1757
1758
1759
1760#--------------------------------------------------------------------
1761# Call TEA_INIT as the first TEA_ macro to set up initial vars.
1762# This will define a ${TEA_PLATFORM} variable == "unix" or "windows"
1763# as well as PKG_LIB_FILE and PKG_STUB_LIB_FILE.
1764#--------------------------------------------------------------------
1765
1766
1767    # TEA extensions pass this us the version of TEA they think they
1768    # are compatible with.
1769    TEA_VERSION="3.9"
1770
1771    { echo "$as_me:$LINENO: checking for correct TEA configuration" >&5
1772echo $ECHO_N "checking for correct TEA configuration... $ECHO_C" >&6; }
1773    if test x"${PACKAGE_NAME}" = x ; then
1774	{ { echo "$as_me:$LINENO: error:
1775The PACKAGE_NAME variable must be defined by your TEA configure.in" >&5
1776echo "$as_me: error:
1777The PACKAGE_NAME variable must be defined by your TEA configure.in" >&2;}
1778   { (exit 1); exit 1; }; }
1779    fi
1780    if test x"3.9" = x ; then
1781	{ { echo "$as_me:$LINENO: error:
1782TEA version not specified." >&5
1783echo "$as_me: error:
1784TEA version not specified." >&2;}
1785   { (exit 1); exit 1; }; }
1786    elif test "3.9" != "${TEA_VERSION}" ; then
1787	{ echo "$as_me:$LINENO: result: warning: requested TEA version \"3.9\", have \"${TEA_VERSION}\"" >&5
1788echo "${ECHO_T}warning: requested TEA version \"3.9\", have \"${TEA_VERSION}\"" >&6; }
1789    else
1790	{ echo "$as_me:$LINENO: result: ok (TEA ${TEA_VERSION})" >&5
1791echo "${ECHO_T}ok (TEA ${TEA_VERSION})" >&6; }
1792    fi
1793    case "`uname -s`" in
1794	*win32*|*WIN32*|*MINGW32_*)
1795	    # Extract the first word of "cygpath", so it can be a program name with args.
1796set dummy cygpath; ac_word=$2
1797{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1798echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1799if test "${ac_cv_prog_CYGPATH+set}" = set; then
1800  echo $ECHO_N "(cached) $ECHO_C" >&6
1801else
1802  if test -n "$CYGPATH"; then
1803  ac_cv_prog_CYGPATH="$CYGPATH" # Let the user override the test.
1804else
1805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1806for as_dir in $PATH
1807do
1808  IFS=$as_save_IFS
1809  test -z "$as_dir" && as_dir=.
1810  for ac_exec_ext in '' $ac_executable_extensions; do
1811  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1812    ac_cv_prog_CYGPATH="cygpath -w"
1813    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1814    break 2
1815  fi
1816done
1817done
1818IFS=$as_save_IFS
1819
1820  test -z "$ac_cv_prog_CYGPATH" && ac_cv_prog_CYGPATH="echo"
1821fi
1822fi
1823CYGPATH=$ac_cv_prog_CYGPATH
1824if test -n "$CYGPATH"; then
1825  { echo "$as_me:$LINENO: result: $CYGPATH" >&5
1826echo "${ECHO_T}$CYGPATH" >&6; }
1827else
1828  { echo "$as_me:$LINENO: result: no" >&5
1829echo "${ECHO_T}no" >&6; }
1830fi
1831
1832
1833	    EXEEXT=".exe"
1834	    TEA_PLATFORM="windows"
1835	    ;;
1836	*CYGWIN_*)
1837	    CYGPATH=echo
1838	    EXEEXT=".exe"
1839	    # TEA_PLATFORM is determined later in LOAD_TCLCONFIG
1840	    ;;
1841	*)
1842	    CYGPATH=echo
1843	    EXEEXT=""
1844	    TEA_PLATFORM="unix"
1845	    ;;
1846    esac
1847
1848    # Check if exec_prefix is set. If not use fall back to prefix.
1849    # Note when adjusted, so that TEA_PREFIX can correct for this.
1850    # This is needed for recursive configures, since autoconf propagates
1851    # $prefix, but not $exec_prefix (doh!).
1852    if test x$exec_prefix = xNONE ; then
1853	exec_prefix_default=yes
1854	exec_prefix=$prefix
1855    fi
1856
1857
1858
1859
1860    # This package name must be replaced statically for AC_SUBST to work
1861
1862    # Substitute STUB_LIB_FILE in case package creates a stub library too.
1863
1864
1865    # We AC_SUBST these here to ensure they are subst'ed,
1866    # in case the user doesn't call TEA_ADD_...
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876ac_aux_dir=
1877for ac_dir in tclconfig "$srcdir"/tclconfig; do
1878  if test -f "$ac_dir/install-sh"; then
1879    ac_aux_dir=$ac_dir
1880    ac_install_sh="$ac_aux_dir/install-sh -c"
1881    break
1882  elif test -f "$ac_dir/install.sh"; then
1883    ac_aux_dir=$ac_dir
1884    ac_install_sh="$ac_aux_dir/install.sh -c"
1885    break
1886  elif test -f "$ac_dir/shtool"; then
1887    ac_aux_dir=$ac_dir
1888    ac_install_sh="$ac_aux_dir/shtool install -c"
1889    break
1890  fi
1891done
1892if test -z "$ac_aux_dir"; then
1893  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in tclconfig \"$srcdir\"/tclconfig" >&5
1894echo "$as_me: error: cannot find install-sh or install.sh in tclconfig \"$srcdir\"/tclconfig" >&2;}
1895   { (exit 1); exit 1; }; }
1896fi
1897
1898# These three variables are undocumented and unsupported,
1899# and are intended to be withdrawn in a future Autoconf release.
1900# They can cause serious problems if a builder's source tree is in a directory
1901# whose full name contains unusual characters.
1902ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1903ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1904ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1905
1906
1907
1908
1909
1910    #
1911    # Ok, lets find the tcl configuration
1912    # First, look for one uninstalled.
1913    # the alternative search directory is invoked by --with-tcl
1914    #
1915
1916    if test x"${no_tcl}" = x ; then
1917	# we reset no_tcl in case something fails here
1918	no_tcl=true
1919
1920# Check whether --with-tcl was given.
1921if test "${with_tcl+set}" = set; then
1922  withval=$with_tcl; with_tclconfig="${withval}"
1923fi
1924
1925	{ echo "$as_me:$LINENO: checking for Tcl configuration" >&5
1926echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6; }
1927	if test "${ac_cv_c_tclconfig+set}" = set; then
1928  echo $ECHO_N "(cached) $ECHO_C" >&6
1929else
1930
1931
1932	    # First check to see if --with-tcl was specified.
1933	    if test x"${with_tclconfig}" != x ; then
1934		case "${with_tclconfig}" in
1935		    */tclConfig.sh )
1936			if test -f "${with_tclconfig}"; then
1937			    { echo "$as_me:$LINENO: WARNING: --with-tcl argument should refer to directory containing tclConfig.sh, not to tclConfig.sh itself" >&5
1938echo "$as_me: WARNING: --with-tcl argument should refer to directory containing tclConfig.sh, not to tclConfig.sh itself" >&2;}
1939			    with_tclconfig="`echo "${with_tclconfig}" | sed 's!/tclConfig\.sh$!!'`"
1940			fi ;;
1941		esac
1942		if test -f "${with_tclconfig}/tclConfig.sh" ; then
1943		    ac_cv_c_tclconfig="`(cd "${with_tclconfig}"; pwd)`"
1944		else
1945		    { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
1946echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
1947   { (exit 1); exit 1; }; }
1948		fi
1949	    fi
1950
1951	    # then check for a private Tcl installation
1952	    if test x"${ac_cv_c_tclconfig}" = x ; then
1953		for i in \
1954			../tcl \
1955			`ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
1956			`ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
1957			`ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
1958			../../tcl \
1959			`ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
1960			`ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
1961			`ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
1962			../../../tcl \
1963			`ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
1964			`ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
1965			`ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
1966		    if test "${TEA_PLATFORM}" = "windows" \
1967			    -a -f "$i/win/tclConfig.sh" ; then
1968			ac_cv_c_tclconfig="`(cd $i/win; pwd)`"
1969			break
1970		    fi
1971		    if test -f "$i/unix/tclConfig.sh" ; then
1972			ac_cv_c_tclconfig="`(cd $i/unix; pwd)`"
1973			break
1974		    fi
1975		done
1976	    fi
1977
1978	    # on Darwin, check in Framework installation locations
1979	    if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then
1980		for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
1981			`ls -d /Library/Frameworks 2>/dev/null` \
1982			`ls -d /Network/Library/Frameworks 2>/dev/null` \
1983			`ls -d /System/Library/Frameworks 2>/dev/null` \
1984			; do
1985		    if test -f "$i/Tcl.framework/tclConfig.sh" ; then
1986			ac_cv_c_tclconfig="`(cd $i/Tcl.framework; pwd)`"
1987			break
1988		    fi
1989		done
1990	    fi
1991
1992	    # TEA specific: on Windows, check in common installation locations
1993	    if test "${TEA_PLATFORM}" = "windows" \
1994		-a x"${ac_cv_c_tclconfig}" = x ; then
1995		for i in `ls -d C:/Tcl/lib 2>/dev/null` \
1996			`ls -d C:/Progra~1/Tcl/lib 2>/dev/null` \
1997			; do
1998		    if test -f "$i/tclConfig.sh" ; then
1999			ac_cv_c_tclconfig="`(cd $i; pwd)`"
2000			break
2001		    fi
2002		done
2003	    fi
2004
2005	    # check in a few common install locations
2006	    if test x"${ac_cv_c_tclconfig}" = x ; then
2007		for i in `ls -d ${libdir} 2>/dev/null` \
2008			`ls -d ${exec_prefix}/lib 2>/dev/null` \
2009			`ls -d ${prefix}/lib 2>/dev/null` \
2010			`ls -d /usr/local/lib 2>/dev/null` \
2011			`ls -d /usr/contrib/lib 2>/dev/null` \
2012			`ls -d /usr/lib 2>/dev/null` \
2013			`ls -d /usr/lib64 2>/dev/null` \
2014			; do
2015		    if test -f "$i/tclConfig.sh" ; then
2016			ac_cv_c_tclconfig="`(cd $i; pwd)`"
2017			break
2018		    fi
2019		done
2020	    fi
2021
2022	    # check in a few other private locations
2023	    if test x"${ac_cv_c_tclconfig}" = x ; then
2024		for i in \
2025			${srcdir}/../tcl \
2026			`ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
2027			`ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
2028			`ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
2029		    if test "${TEA_PLATFORM}" = "windows" \
2030			    -a -f "$i/win/tclConfig.sh" ; then
2031			ac_cv_c_tclconfig="`(cd $i/win; pwd)`"
2032			break
2033		    fi
2034		    if test -f "$i/unix/tclConfig.sh" ; then
2035			ac_cv_c_tclconfig="`(cd $i/unix; pwd)`"
2036			break
2037		    fi
2038		done
2039	    fi
2040
2041fi
2042
2043
2044	if test x"${ac_cv_c_tclconfig}" = x ; then
2045	    TCL_BIN_DIR="# no Tcl configs found"
2046	    { { echo "$as_me:$LINENO: error: Can't find Tcl configuration definitions" >&5
2047echo "$as_me: error: Can't find Tcl configuration definitions" >&2;}
2048   { (exit 1); exit 1; }; }
2049	else
2050	    no_tcl=
2051	    TCL_BIN_DIR="${ac_cv_c_tclconfig}"
2052	    { echo "$as_me:$LINENO: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
2053echo "${ECHO_T}found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
2054	fi
2055    fi
2056
2057
2058    { echo "$as_me:$LINENO: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
2059echo $ECHO_N "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... $ECHO_C" >&6; }
2060
2061    if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
2062        { echo "$as_me:$LINENO: result: loading" >&5
2063echo "${ECHO_T}loading" >&6; }
2064	. "${TCL_BIN_DIR}/tclConfig.sh"
2065    else
2066        { echo "$as_me:$LINENO: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
2067echo "${ECHO_T}could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
2068    fi
2069
2070    # eval is required to do the TCL_DBGX substitution
2071    eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
2072    eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
2073
2074    # If the TCL_BIN_DIR is the build directory (not the install directory),
2075    # then set the common variable name to the value of the build variables.
2076    # For example, the variable TCL_LIB_SPEC will be set to the value
2077    # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
2078    # instead of TCL_BUILD_LIB_SPEC since it will work with both an
2079    # installed and uninstalled version of Tcl.
2080    if test -f "${TCL_BIN_DIR}/Makefile" ; then
2081        TCL_LIB_SPEC="${TCL_BUILD_LIB_SPEC}"
2082        TCL_STUB_LIB_SPEC="${TCL_BUILD_STUB_LIB_SPEC}"
2083        TCL_STUB_LIB_PATH="${TCL_BUILD_STUB_LIB_PATH}"
2084    elif test "`uname -s`" = "Darwin"; then
2085	# If Tcl was built as a framework, attempt to use the libraries
2086	# from the framework at the given location so that linking works
2087	# against Tcl.framework installed in an arbitrary location.
2088	case ${TCL_DEFS} in
2089	    *TCL_FRAMEWORK*)
2090		if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
2091		    for i in "`cd "${TCL_BIN_DIR}"; pwd`" \
2092			     "`cd "${TCL_BIN_DIR}"/../..; pwd`"; do
2093			if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
2094			    TCL_LIB_SPEC="-F`dirname "$i" | sed -e 's/ /\\\\ /g'` -framework ${TCL_LIB_FILE}"
2095			    break
2096			fi
2097		    done
2098		fi
2099		if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
2100		    TCL_STUB_LIB_SPEC="-L`echo "${TCL_BIN_DIR}"  | sed -e 's/ /\\\\ /g'` ${TCL_STUB_LIB_FLAG}"
2101		    TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
2102		fi
2103		;;
2104	esac
2105    fi
2106
2107    # eval is required to do the TCL_DBGX substitution
2108    eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
2109    eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
2110    eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
2111    eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126    case "`uname -s`" in
2127	*CYGWIN_*)
2128	    { echo "$as_me:$LINENO: checking for cygwin variant" >&5
2129echo $ECHO_N "checking for cygwin variant... $ECHO_C" >&6; }
2130	    case ${TCL_EXTRA_CFLAGS} in
2131		*-mwin32*|*-mno-cygwin*)
2132		    TEA_PLATFORM="windows"
2133		    CFLAGS="$CFLAGS -mwin32"
2134		    { echo "$as_me:$LINENO: result: win32" >&5
2135echo "${ECHO_T}win32" >&6; }
2136		    ;;
2137		*)
2138		    TEA_PLATFORM="unix"
2139		    { echo "$as_me:$LINENO: result: unix" >&5
2140echo "${ECHO_T}unix" >&6; }
2141		    ;;
2142	    esac
2143	    EXEEXT=".exe"
2144	    ;;
2145	*)
2146	    ;;
2147    esac
2148
2149    # Do this here as we have fully defined TEA_PLATFORM now
2150    if test "${TEA_PLATFORM}" = "windows" ; then
2151	# The BUILD_$pkg is to define the correct extern storage class
2152	# handling when making this package
2153
2154cat >>confdefs.h <<_ACEOF
2155#define BUILD_${PACKAGE_NAME}
2156_ACEOF
2157
2158	CLEANFILES="$CLEANFILES *.lib *.dll *.pdb *.exp"
2159    fi
2160
2161    # TEA specific:
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171    if test "${prefix}" = "NONE"; then
2172	prefix_default=yes
2173	if test x"${TCL_PREFIX}" != x; then
2174	    { echo "$as_me:$LINENO: --prefix defaulting to TCL_PREFIX ${TCL_PREFIX}" >&5
2175echo "$as_me: --prefix defaulting to TCL_PREFIX ${TCL_PREFIX}" >&6;}
2176	    prefix=${TCL_PREFIX}
2177	else
2178	    { echo "$as_me:$LINENO: --prefix defaulting to /usr/local" >&5
2179echo "$as_me: --prefix defaulting to /usr/local" >&6;}
2180	    prefix=/usr/local
2181	fi
2182    fi
2183    if test "${exec_prefix}" = "NONE" -a x"${prefix_default}" = x"yes" \
2184	-o x"${exec_prefix_default}" = x"yes" ; then
2185	if test x"${TCL_EXEC_PREFIX}" != x; then
2186	    { echo "$as_me:$LINENO: --exec-prefix defaulting to TCL_EXEC_PREFIX ${TCL_EXEC_PREFIX}" >&5
2187echo "$as_me: --exec-prefix defaulting to TCL_EXEC_PREFIX ${TCL_EXEC_PREFIX}" >&6;}
2188	    exec_prefix=${TCL_EXEC_PREFIX}
2189	else
2190	    { echo "$as_me:$LINENO: --exec-prefix defaulting to ${prefix}" >&5
2191echo "$as_me: --exec-prefix defaulting to ${prefix}" >&6;}
2192	    exec_prefix=$prefix
2193	fi
2194    fi
2195
2196
2197
2198    # Don't put any macros that use the compiler (e.g. AC_TRY_COMPILE)
2199    # in this macro, they need to go into TEA_SETUP_COMPILER instead.
2200
2201    # If the user did not set CFLAGS, set it now to keep
2202    # the AC_PROG_CC macro from adding "-g -O2".
2203    if test "${CFLAGS+set}" != "set" ; then
2204	CFLAGS=""
2205    fi
2206
2207    ac_ext=c
2208ac_cpp='$CPP $CPPFLAGS'
2209ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2210ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2211ac_compiler_gnu=$ac_cv_c_compiler_gnu
2212if test -n "$ac_tool_prefix"; then
2213  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2214set dummy ${ac_tool_prefix}gcc; ac_word=$2
2215{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2216echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2217if test "${ac_cv_prog_CC+set}" = set; then
2218  echo $ECHO_N "(cached) $ECHO_C" >&6
2219else
2220  if test -n "$CC"; then
2221  ac_cv_prog_CC="$CC" # Let the user override the test.
2222else
2223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2224for as_dir in $PATH
2225do
2226  IFS=$as_save_IFS
2227  test -z "$as_dir" && as_dir=.
2228  for ac_exec_ext in '' $ac_executable_extensions; do
2229  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2230    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2231    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2232    break 2
2233  fi
2234done
2235done
2236IFS=$as_save_IFS
2237
2238fi
2239fi
2240CC=$ac_cv_prog_CC
2241if test -n "$CC"; then
2242  { echo "$as_me:$LINENO: result: $CC" >&5
2243echo "${ECHO_T}$CC" >&6; }
2244else
2245  { echo "$as_me:$LINENO: result: no" >&5
2246echo "${ECHO_T}no" >&6; }
2247fi
2248
2249
2250fi
2251if test -z "$ac_cv_prog_CC"; then
2252  ac_ct_CC=$CC
2253  # Extract the first word of "gcc", so it can be a program name with args.
2254set dummy gcc; ac_word=$2
2255{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2256echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2257if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2258  echo $ECHO_N "(cached) $ECHO_C" >&6
2259else
2260  if test -n "$ac_ct_CC"; then
2261  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2262else
2263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2264for as_dir in $PATH
2265do
2266  IFS=$as_save_IFS
2267  test -z "$as_dir" && as_dir=.
2268  for ac_exec_ext in '' $ac_executable_extensions; do
2269  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2270    ac_cv_prog_ac_ct_CC="gcc"
2271    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2272    break 2
2273  fi
2274done
2275done
2276IFS=$as_save_IFS
2277
2278fi
2279fi
2280ac_ct_CC=$ac_cv_prog_ac_ct_CC
2281if test -n "$ac_ct_CC"; then
2282  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2283echo "${ECHO_T}$ac_ct_CC" >&6; }
2284else
2285  { echo "$as_me:$LINENO: result: no" >&5
2286echo "${ECHO_T}no" >&6; }
2287fi
2288
2289  if test "x$ac_ct_CC" = x; then
2290    CC=""
2291  else
2292    case $cross_compiling:$ac_tool_warned in
2293yes:)
2294{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2295whose name does not start with the host triplet.  If you think this
2296configuration is useful to you, please write to autoconf@gnu.org." >&5
2297echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2298whose name does not start with the host triplet.  If you think this
2299configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2300ac_tool_warned=yes ;;
2301esac
2302    CC=$ac_ct_CC
2303  fi
2304else
2305  CC="$ac_cv_prog_CC"
2306fi
2307
2308if test -z "$CC"; then
2309          if test -n "$ac_tool_prefix"; then
2310    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2311set dummy ${ac_tool_prefix}cc; ac_word=$2
2312{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2313echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2314if test "${ac_cv_prog_CC+set}" = set; then
2315  echo $ECHO_N "(cached) $ECHO_C" >&6
2316else
2317  if test -n "$CC"; then
2318  ac_cv_prog_CC="$CC" # Let the user override the test.
2319else
2320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2321for as_dir in $PATH
2322do
2323  IFS=$as_save_IFS
2324  test -z "$as_dir" && as_dir=.
2325  for ac_exec_ext in '' $ac_executable_extensions; do
2326  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2327    ac_cv_prog_CC="${ac_tool_prefix}cc"
2328    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2329    break 2
2330  fi
2331done
2332done
2333IFS=$as_save_IFS
2334
2335fi
2336fi
2337CC=$ac_cv_prog_CC
2338if test -n "$CC"; then
2339  { echo "$as_me:$LINENO: result: $CC" >&5
2340echo "${ECHO_T}$CC" >&6; }
2341else
2342  { echo "$as_me:$LINENO: result: no" >&5
2343echo "${ECHO_T}no" >&6; }
2344fi
2345
2346
2347  fi
2348fi
2349if test -z "$CC"; then
2350  # Extract the first word of "cc", so it can be a program name with args.
2351set dummy cc; ac_word=$2
2352{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2353echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2354if test "${ac_cv_prog_CC+set}" = set; then
2355  echo $ECHO_N "(cached) $ECHO_C" >&6
2356else
2357  if test -n "$CC"; then
2358  ac_cv_prog_CC="$CC" # Let the user override the test.
2359else
2360  ac_prog_rejected=no
2361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2362for as_dir in $PATH
2363do
2364  IFS=$as_save_IFS
2365  test -z "$as_dir" && as_dir=.
2366  for ac_exec_ext in '' $ac_executable_extensions; do
2367  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2368    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2369       ac_prog_rejected=yes
2370       continue
2371     fi
2372    ac_cv_prog_CC="cc"
2373    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2374    break 2
2375  fi
2376done
2377done
2378IFS=$as_save_IFS
2379
2380if test $ac_prog_rejected = yes; then
2381  # We found a bogon in the path, so make sure we never use it.
2382  set dummy $ac_cv_prog_CC
2383  shift
2384  if test $# != 0; then
2385    # We chose a different compiler from the bogus one.
2386    # However, it has the same basename, so the bogon will be chosen
2387    # first if we set CC to just the basename; use the full file name.
2388    shift
2389    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2390  fi
2391fi
2392fi
2393fi
2394CC=$ac_cv_prog_CC
2395if test -n "$CC"; then
2396  { echo "$as_me:$LINENO: result: $CC" >&5
2397echo "${ECHO_T}$CC" >&6; }
2398else
2399  { echo "$as_me:$LINENO: result: no" >&5
2400echo "${ECHO_T}no" >&6; }
2401fi
2402
2403
2404fi
2405if test -z "$CC"; then
2406  if test -n "$ac_tool_prefix"; then
2407  for ac_prog in cl.exe
2408  do
2409    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2410set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2411{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2412echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2413if test "${ac_cv_prog_CC+set}" = set; then
2414  echo $ECHO_N "(cached) $ECHO_C" >&6
2415else
2416  if test -n "$CC"; then
2417  ac_cv_prog_CC="$CC" # Let the user override the test.
2418else
2419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2420for as_dir in $PATH
2421do
2422  IFS=$as_save_IFS
2423  test -z "$as_dir" && as_dir=.
2424  for ac_exec_ext in '' $ac_executable_extensions; do
2425  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2426    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2427    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2428    break 2
2429  fi
2430done
2431done
2432IFS=$as_save_IFS
2433
2434fi
2435fi
2436CC=$ac_cv_prog_CC
2437if test -n "$CC"; then
2438  { echo "$as_me:$LINENO: result: $CC" >&5
2439echo "${ECHO_T}$CC" >&6; }
2440else
2441  { echo "$as_me:$LINENO: result: no" >&5
2442echo "${ECHO_T}no" >&6; }
2443fi
2444
2445
2446    test -n "$CC" && break
2447  done
2448fi
2449if test -z "$CC"; then
2450  ac_ct_CC=$CC
2451  for ac_prog in cl.exe
2452do
2453  # Extract the first word of "$ac_prog", so it can be a program name with args.
2454set dummy $ac_prog; ac_word=$2
2455{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2456echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2457if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2458  echo $ECHO_N "(cached) $ECHO_C" >&6
2459else
2460  if test -n "$ac_ct_CC"; then
2461  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2462else
2463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2464for as_dir in $PATH
2465do
2466  IFS=$as_save_IFS
2467  test -z "$as_dir" && as_dir=.
2468  for ac_exec_ext in '' $ac_executable_extensions; do
2469  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2470    ac_cv_prog_ac_ct_CC="$ac_prog"
2471    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2472    break 2
2473  fi
2474done
2475done
2476IFS=$as_save_IFS
2477
2478fi
2479fi
2480ac_ct_CC=$ac_cv_prog_ac_ct_CC
2481if test -n "$ac_ct_CC"; then
2482  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2483echo "${ECHO_T}$ac_ct_CC" >&6; }
2484else
2485  { echo "$as_me:$LINENO: result: no" >&5
2486echo "${ECHO_T}no" >&6; }
2487fi
2488
2489
2490  test -n "$ac_ct_CC" && break
2491done
2492
2493  if test "x$ac_ct_CC" = x; then
2494    CC=""
2495  else
2496    case $cross_compiling:$ac_tool_warned in
2497yes:)
2498{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2499whose name does not start with the host triplet.  If you think this
2500configuration is useful to you, please write to autoconf@gnu.org." >&5
2501echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2502whose name does not start with the host triplet.  If you think this
2503configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2504ac_tool_warned=yes ;;
2505esac
2506    CC=$ac_ct_CC
2507  fi
2508fi
2509
2510fi
2511
2512
2513test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2514See \`config.log' for more details." >&5
2515echo "$as_me: error: no acceptable C compiler found in \$PATH
2516See \`config.log' for more details." >&2;}
2517   { (exit 1); exit 1; }; }
2518
2519# Provide some information about the compiler.
2520echo "$as_me:$LINENO: checking for C compiler version" >&5
2521ac_compiler=`set X $ac_compile; echo $2`
2522{ (ac_try="$ac_compiler --version >&5"
2523case "(($ac_try" in
2524  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2525  *) ac_try_echo=$ac_try;;
2526esac
2527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2528  (eval "$ac_compiler --version >&5") 2>&5
2529  ac_status=$?
2530  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2531  (exit $ac_status); }
2532{ (ac_try="$ac_compiler -v >&5"
2533case "(($ac_try" in
2534  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2535  *) ac_try_echo=$ac_try;;
2536esac
2537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2538  (eval "$ac_compiler -v >&5") 2>&5
2539  ac_status=$?
2540  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541  (exit $ac_status); }
2542{ (ac_try="$ac_compiler -V >&5"
2543case "(($ac_try" in
2544  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2545  *) ac_try_echo=$ac_try;;
2546esac
2547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2548  (eval "$ac_compiler -V >&5") 2>&5
2549  ac_status=$?
2550  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2551  (exit $ac_status); }
2552
2553cat >conftest.$ac_ext <<_ACEOF
2554/* confdefs.h.  */
2555_ACEOF
2556cat confdefs.h >>conftest.$ac_ext
2557cat >>conftest.$ac_ext <<_ACEOF
2558/* end confdefs.h.  */
2559
2560int
2561main ()
2562{
2563
2564  ;
2565  return 0;
2566}
2567_ACEOF
2568ac_clean_files_save=$ac_clean_files
2569ac_clean_files="$ac_clean_files a.out a.exe b.out"
2570# Try to create an executable without -o first, disregard a.out.
2571# It will help us diagnose broken compilers, and finding out an intuition
2572# of exeext.
2573{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2574echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2575ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2576#
2577# List of possible output files, starting from the most likely.
2578# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2579# only as a last resort.  b.out is created by i960 compilers.
2580ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2581#
2582# The IRIX 6 linker writes into existing files which may not be
2583# executable, retaining their permissions.  Remove them first so a
2584# subsequent execution test works.
2585ac_rmfiles=
2586for ac_file in $ac_files
2587do
2588  case $ac_file in
2589    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2590    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2591  esac
2592done
2593rm -f $ac_rmfiles
2594
2595if { (ac_try="$ac_link_default"
2596case "(($ac_try" in
2597  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2598  *) ac_try_echo=$ac_try;;
2599esac
2600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2601  (eval "$ac_link_default") 2>&5
2602  ac_status=$?
2603  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604  (exit $ac_status); }; then
2605  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2606# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2607# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2608# so that the user can short-circuit this test for compilers unknown to
2609# Autoconf.
2610for ac_file in $ac_files ''
2611do
2612  test -f "$ac_file" || continue
2613  case $ac_file in
2614    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2615	;;
2616    [ab].out )
2617	# We found the default executable, but exeext='' is most
2618	# certainly right.
2619	break;;
2620    *.* )
2621        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2622	then :; else
2623	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2624	fi
2625	# We set ac_cv_exeext here because the later test for it is not
2626	# safe: cross compilers may not add the suffix if given an `-o'
2627	# argument, so we may need to know it at that point already.
2628	# Even if this section looks crufty: it has the advantage of
2629	# actually working.
2630	break;;
2631    * )
2632	break;;
2633  esac
2634done
2635test "$ac_cv_exeext" = no && ac_cv_exeext=
2636
2637else
2638  ac_file=''
2639fi
2640
2641{ echo "$as_me:$LINENO: result: $ac_file" >&5
2642echo "${ECHO_T}$ac_file" >&6; }
2643if test -z "$ac_file"; then
2644  echo "$as_me: failed program was:" >&5
2645sed 's/^/| /' conftest.$ac_ext >&5
2646
2647{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2648See \`config.log' for more details." >&5
2649echo "$as_me: error: C compiler cannot create executables
2650See \`config.log' for more details." >&2;}
2651   { (exit 77); exit 77; }; }
2652fi
2653
2654ac_exeext=$ac_cv_exeext
2655
2656# Check that the compiler produces executables we can run.  If not, either
2657# the compiler is broken, or we cross compile.
2658{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2659echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2660# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2661# If not cross compiling, check that we can run a simple program.
2662if test "$cross_compiling" != yes; then
2663  if { ac_try='./$ac_file'
2664  { (case "(($ac_try" in
2665  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2666  *) ac_try_echo=$ac_try;;
2667esac
2668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2669  (eval "$ac_try") 2>&5
2670  ac_status=$?
2671  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2672  (exit $ac_status); }; }; then
2673    cross_compiling=no
2674  else
2675    if test "$cross_compiling" = maybe; then
2676	cross_compiling=yes
2677    else
2678	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2679If you meant to cross compile, use \`--host'.
2680See \`config.log' for more details." >&5
2681echo "$as_me: error: cannot run C compiled programs.
2682If you meant to cross compile, use \`--host'.
2683See \`config.log' for more details." >&2;}
2684   { (exit 1); exit 1; }; }
2685    fi
2686  fi
2687fi
2688{ echo "$as_me:$LINENO: result: yes" >&5
2689echo "${ECHO_T}yes" >&6; }
2690
2691rm -f a.out a.exe conftest$ac_cv_exeext b.out
2692ac_clean_files=$ac_clean_files_save
2693# Check that the compiler produces executables we can run.  If not, either
2694# the compiler is broken, or we cross compile.
2695{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2696echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2697{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2698echo "${ECHO_T}$cross_compiling" >&6; }
2699
2700{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2701echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2702if { (ac_try="$ac_link"
2703case "(($ac_try" in
2704  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2705  *) ac_try_echo=$ac_try;;
2706esac
2707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2708  (eval "$ac_link") 2>&5
2709  ac_status=$?
2710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711  (exit $ac_status); }; then
2712  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2713# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2714# work properly (i.e., refer to `conftest.exe'), while it won't with
2715# `rm'.
2716for ac_file in conftest.exe conftest conftest.*; do
2717  test -f "$ac_file" || continue
2718  case $ac_file in
2719    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2720    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2721	  break;;
2722    * ) break;;
2723  esac
2724done
2725else
2726  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2727See \`config.log' for more details." >&5
2728echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2729See \`config.log' for more details." >&2;}
2730   { (exit 1); exit 1; }; }
2731fi
2732
2733rm -f conftest$ac_cv_exeext
2734{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2735echo "${ECHO_T}$ac_cv_exeext" >&6; }
2736
2737rm -f conftest.$ac_ext
2738EXEEXT=$ac_cv_exeext
2739ac_exeext=$EXEEXT
2740{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2741echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2742if test "${ac_cv_objext+set}" = set; then
2743  echo $ECHO_N "(cached) $ECHO_C" >&6
2744else
2745  cat >conftest.$ac_ext <<_ACEOF
2746/* confdefs.h.  */
2747_ACEOF
2748cat confdefs.h >>conftest.$ac_ext
2749cat >>conftest.$ac_ext <<_ACEOF
2750/* end confdefs.h.  */
2751
2752int
2753main ()
2754{
2755
2756  ;
2757  return 0;
2758}
2759_ACEOF
2760rm -f conftest.o conftest.obj
2761if { (ac_try="$ac_compile"
2762case "(($ac_try" in
2763  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2764  *) ac_try_echo=$ac_try;;
2765esac
2766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2767  (eval "$ac_compile") 2>&5
2768  ac_status=$?
2769  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2770  (exit $ac_status); }; then
2771  for ac_file in conftest.o conftest.obj conftest.*; do
2772  test -f "$ac_file" || continue;
2773  case $ac_file in
2774    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2775    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2776       break;;
2777  esac
2778done
2779else
2780  echo "$as_me: failed program was:" >&5
2781sed 's/^/| /' conftest.$ac_ext >&5
2782
2783{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2784See \`config.log' for more details." >&5
2785echo "$as_me: error: cannot compute suffix of object files: cannot compile
2786See \`config.log' for more details." >&2;}
2787   { (exit 1); exit 1; }; }
2788fi
2789
2790rm -f conftest.$ac_cv_objext conftest.$ac_ext
2791fi
2792{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2793echo "${ECHO_T}$ac_cv_objext" >&6; }
2794OBJEXT=$ac_cv_objext
2795ac_objext=$OBJEXT
2796{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2797echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2798if test "${ac_cv_c_compiler_gnu+set}" = set; then
2799  echo $ECHO_N "(cached) $ECHO_C" >&6
2800else
2801  cat >conftest.$ac_ext <<_ACEOF
2802/* confdefs.h.  */
2803_ACEOF
2804cat confdefs.h >>conftest.$ac_ext
2805cat >>conftest.$ac_ext <<_ACEOF
2806/* end confdefs.h.  */
2807
2808int
2809main ()
2810{
2811#ifndef __GNUC__
2812       choke me
2813#endif
2814
2815  ;
2816  return 0;
2817}
2818_ACEOF
2819rm -f conftest.$ac_objext
2820if { (ac_try="$ac_compile"
2821case "(($ac_try" in
2822  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2823  *) ac_try_echo=$ac_try;;
2824esac
2825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2826  (eval "$ac_compile") 2>conftest.er1
2827  ac_status=$?
2828  grep -v '^ *+' conftest.er1 >conftest.err
2829  rm -f conftest.er1
2830  cat conftest.err >&5
2831  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2832  (exit $ac_status); } && {
2833	 test -z "$ac_c_werror_flag" ||
2834	 test ! -s conftest.err
2835       } && test -s conftest.$ac_objext; then
2836  ac_compiler_gnu=yes
2837else
2838  echo "$as_me: failed program was:" >&5
2839sed 's/^/| /' conftest.$ac_ext >&5
2840
2841	ac_compiler_gnu=no
2842fi
2843
2844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2845ac_cv_c_compiler_gnu=$ac_compiler_gnu
2846
2847fi
2848{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2849echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2850GCC=`test $ac_compiler_gnu = yes && echo yes`
2851ac_test_CFLAGS=${CFLAGS+set}
2852ac_save_CFLAGS=$CFLAGS
2853{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2854echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2855if test "${ac_cv_prog_cc_g+set}" = set; then
2856  echo $ECHO_N "(cached) $ECHO_C" >&6
2857else
2858  ac_save_c_werror_flag=$ac_c_werror_flag
2859   ac_c_werror_flag=yes
2860   ac_cv_prog_cc_g=no
2861   CFLAGS="-g"
2862   cat >conftest.$ac_ext <<_ACEOF
2863/* confdefs.h.  */
2864_ACEOF
2865cat confdefs.h >>conftest.$ac_ext
2866cat >>conftest.$ac_ext <<_ACEOF
2867/* end confdefs.h.  */
2868
2869int
2870main ()
2871{
2872
2873  ;
2874  return 0;
2875}
2876_ACEOF
2877rm -f conftest.$ac_objext
2878if { (ac_try="$ac_compile"
2879case "(($ac_try" in
2880  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2881  *) ac_try_echo=$ac_try;;
2882esac
2883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2884  (eval "$ac_compile") 2>conftest.er1
2885  ac_status=$?
2886  grep -v '^ *+' conftest.er1 >conftest.err
2887  rm -f conftest.er1
2888  cat conftest.err >&5
2889  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2890  (exit $ac_status); } && {
2891	 test -z "$ac_c_werror_flag" ||
2892	 test ! -s conftest.err
2893       } && test -s conftest.$ac_objext; then
2894  ac_cv_prog_cc_g=yes
2895else
2896  echo "$as_me: failed program was:" >&5
2897sed 's/^/| /' conftest.$ac_ext >&5
2898
2899	CFLAGS=""
2900      cat >conftest.$ac_ext <<_ACEOF
2901/* confdefs.h.  */
2902_ACEOF
2903cat confdefs.h >>conftest.$ac_ext
2904cat >>conftest.$ac_ext <<_ACEOF
2905/* end confdefs.h.  */
2906
2907int
2908main ()
2909{
2910
2911  ;
2912  return 0;
2913}
2914_ACEOF
2915rm -f conftest.$ac_objext
2916if { (ac_try="$ac_compile"
2917case "(($ac_try" in
2918  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2919  *) ac_try_echo=$ac_try;;
2920esac
2921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2922  (eval "$ac_compile") 2>conftest.er1
2923  ac_status=$?
2924  grep -v '^ *+' conftest.er1 >conftest.err
2925  rm -f conftest.er1
2926  cat conftest.err >&5
2927  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2928  (exit $ac_status); } && {
2929	 test -z "$ac_c_werror_flag" ||
2930	 test ! -s conftest.err
2931       } && test -s conftest.$ac_objext; then
2932  :
2933else
2934  echo "$as_me: failed program was:" >&5
2935sed 's/^/| /' conftest.$ac_ext >&5
2936
2937	ac_c_werror_flag=$ac_save_c_werror_flag
2938	 CFLAGS="-g"
2939	 cat >conftest.$ac_ext <<_ACEOF
2940/* confdefs.h.  */
2941_ACEOF
2942cat confdefs.h >>conftest.$ac_ext
2943cat >>conftest.$ac_ext <<_ACEOF
2944/* end confdefs.h.  */
2945
2946int
2947main ()
2948{
2949
2950  ;
2951  return 0;
2952}
2953_ACEOF
2954rm -f conftest.$ac_objext
2955if { (ac_try="$ac_compile"
2956case "(($ac_try" in
2957  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2958  *) ac_try_echo=$ac_try;;
2959esac
2960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2961  (eval "$ac_compile") 2>conftest.er1
2962  ac_status=$?
2963  grep -v '^ *+' conftest.er1 >conftest.err
2964  rm -f conftest.er1
2965  cat conftest.err >&5
2966  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2967  (exit $ac_status); } && {
2968	 test -z "$ac_c_werror_flag" ||
2969	 test ! -s conftest.err
2970       } && test -s conftest.$ac_objext; then
2971  ac_cv_prog_cc_g=yes
2972else
2973  echo "$as_me: failed program was:" >&5
2974sed 's/^/| /' conftest.$ac_ext >&5
2975
2976
2977fi
2978
2979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2980fi
2981
2982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2983fi
2984
2985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2986   ac_c_werror_flag=$ac_save_c_werror_flag
2987fi
2988{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2989echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2990if test "$ac_test_CFLAGS" = set; then
2991  CFLAGS=$ac_save_CFLAGS
2992elif test $ac_cv_prog_cc_g = yes; then
2993  if test "$GCC" = yes; then
2994    CFLAGS="-g -O2"
2995  else
2996    CFLAGS="-g"
2997  fi
2998else
2999  if test "$GCC" = yes; then
3000    CFLAGS="-O2"
3001  else
3002    CFLAGS=
3003  fi
3004fi
3005{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3006echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3007if test "${ac_cv_prog_cc_c89+set}" = set; then
3008  echo $ECHO_N "(cached) $ECHO_C" >&6
3009else
3010  ac_cv_prog_cc_c89=no
3011ac_save_CC=$CC
3012cat >conftest.$ac_ext <<_ACEOF
3013/* confdefs.h.  */
3014_ACEOF
3015cat confdefs.h >>conftest.$ac_ext
3016cat >>conftest.$ac_ext <<_ACEOF
3017/* end confdefs.h.  */
3018#include <stdarg.h>
3019#include <stdio.h>
3020#include <sys/types.h>
3021#include <sys/stat.h>
3022/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3023struct buf { int x; };
3024FILE * (*rcsopen) (struct buf *, struct stat *, int);
3025static char *e (p, i)
3026     char **p;
3027     int i;
3028{
3029  return p[i];
3030}
3031static char *f (char * (*g) (char **, int), char **p, ...)
3032{
3033  char *s;
3034  va_list v;
3035  va_start (v,p);
3036  s = g (p, va_arg (v,int));
3037  va_end (v);
3038  return s;
3039}
3040
3041/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3042   function prototypes and stuff, but not '\xHH' hex character constants.
3043   These don't provoke an error unfortunately, instead are silently treated
3044   as 'x'.  The following induces an error, until -std is added to get
3045   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3046   array size at least.  It's necessary to write '\x00'==0 to get something
3047   that's true only with -std.  */
3048int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3049
3050/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3051   inside strings and character constants.  */
3052#define FOO(x) 'x'
3053int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3054
3055int test (int i, double x);
3056struct s1 {int (*f) (int a);};
3057struct s2 {int (*f) (double a);};
3058int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3059int argc;
3060char **argv;
3061int
3062main ()
3063{
3064return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3065  ;
3066  return 0;
3067}
3068_ACEOF
3069for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3070	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3071do
3072  CC="$ac_save_CC $ac_arg"
3073  rm -f conftest.$ac_objext
3074if { (ac_try="$ac_compile"
3075case "(($ac_try" in
3076  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3077  *) ac_try_echo=$ac_try;;
3078esac
3079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3080  (eval "$ac_compile") 2>conftest.er1
3081  ac_status=$?
3082  grep -v '^ *+' conftest.er1 >conftest.err
3083  rm -f conftest.er1
3084  cat conftest.err >&5
3085  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3086  (exit $ac_status); } && {
3087	 test -z "$ac_c_werror_flag" ||
3088	 test ! -s conftest.err
3089       } && test -s conftest.$ac_objext; then
3090  ac_cv_prog_cc_c89=$ac_arg
3091else
3092  echo "$as_me: failed program was:" >&5
3093sed 's/^/| /' conftest.$ac_ext >&5
3094
3095
3096fi
3097
3098rm -f core conftest.err conftest.$ac_objext
3099  test "x$ac_cv_prog_cc_c89" != "xno" && break
3100done
3101rm -f conftest.$ac_ext
3102CC=$ac_save_CC
3103
3104fi
3105# AC_CACHE_VAL
3106case "x$ac_cv_prog_cc_c89" in
3107  x)
3108    { echo "$as_me:$LINENO: result: none needed" >&5
3109echo "${ECHO_T}none needed" >&6; } ;;
3110  xno)
3111    { echo "$as_me:$LINENO: result: unsupported" >&5
3112echo "${ECHO_T}unsupported" >&6; } ;;
3113  *)
3114    CC="$CC $ac_cv_prog_cc_c89"
3115    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3116echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3117esac
3118
3119
3120ac_ext=c
3121ac_cpp='$CPP $CPPFLAGS'
3122ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3123ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3124ac_compiler_gnu=$ac_cv_c_compiler_gnu
3125
3126    ac_ext=c
3127ac_cpp='$CPP $CPPFLAGS'
3128ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3129ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3130ac_compiler_gnu=$ac_cv_c_compiler_gnu
3131{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3132echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3133# On Suns, sometimes $CPP names a directory.
3134if test -n "$CPP" && test -d "$CPP"; then
3135  CPP=
3136fi
3137if test -z "$CPP"; then
3138  if test "${ac_cv_prog_CPP+set}" = set; then
3139  echo $ECHO_N "(cached) $ECHO_C" >&6
3140else
3141      # Double quotes because CPP needs to be expanded
3142    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3143    do
3144      ac_preproc_ok=false
3145for ac_c_preproc_warn_flag in '' yes
3146do
3147  # Use a header file that comes with gcc, so configuring glibc
3148  # with a fresh cross-compiler works.
3149  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3150  # <limits.h> exists even on freestanding compilers.
3151  # On the NeXT, cc -E runs the code through the compiler's parser,
3152  # not just through cpp. "Syntax error" is here to catch this case.
3153  cat >conftest.$ac_ext <<_ACEOF
3154/* confdefs.h.  */
3155_ACEOF
3156cat confdefs.h >>conftest.$ac_ext
3157cat >>conftest.$ac_ext <<_ACEOF
3158/* end confdefs.h.  */
3159#ifdef __STDC__
3160# include <limits.h>
3161#else
3162# include <assert.h>
3163#endif
3164		     Syntax error
3165_ACEOF
3166if { (ac_try="$ac_cpp conftest.$ac_ext"
3167case "(($ac_try" in
3168  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3169  *) ac_try_echo=$ac_try;;
3170esac
3171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3172  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3173  ac_status=$?
3174  grep -v '^ *+' conftest.er1 >conftest.err
3175  rm -f conftest.er1
3176  cat conftest.err >&5
3177  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178  (exit $ac_status); } >/dev/null && {
3179	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3180	 test ! -s conftest.err
3181       }; then
3182  :
3183else
3184  echo "$as_me: failed program was:" >&5
3185sed 's/^/| /' conftest.$ac_ext >&5
3186
3187  # Broken: fails on valid input.
3188continue
3189fi
3190
3191rm -f conftest.err conftest.$ac_ext
3192
3193  # OK, works on sane cases.  Now check whether nonexistent headers
3194  # can be detected and how.
3195  cat >conftest.$ac_ext <<_ACEOF
3196/* confdefs.h.  */
3197_ACEOF
3198cat confdefs.h >>conftest.$ac_ext
3199cat >>conftest.$ac_ext <<_ACEOF
3200/* end confdefs.h.  */
3201#include <ac_nonexistent.h>
3202_ACEOF
3203if { (ac_try="$ac_cpp conftest.$ac_ext"
3204case "(($ac_try" in
3205  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3206  *) ac_try_echo=$ac_try;;
3207esac
3208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3209  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3210  ac_status=$?
3211  grep -v '^ *+' conftest.er1 >conftest.err
3212  rm -f conftest.er1
3213  cat conftest.err >&5
3214  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3215  (exit $ac_status); } >/dev/null && {
3216	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3217	 test ! -s conftest.err
3218       }; then
3219  # Broken: success on invalid input.
3220continue
3221else
3222  echo "$as_me: failed program was:" >&5
3223sed 's/^/| /' conftest.$ac_ext >&5
3224
3225  # Passes both tests.
3226ac_preproc_ok=:
3227break
3228fi
3229
3230rm -f conftest.err conftest.$ac_ext
3231
3232done
3233# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3234rm -f conftest.err conftest.$ac_ext
3235if $ac_preproc_ok; then
3236  break
3237fi
3238
3239    done
3240    ac_cv_prog_CPP=$CPP
3241
3242fi
3243  CPP=$ac_cv_prog_CPP
3244else
3245  ac_cv_prog_CPP=$CPP
3246fi
3247{ echo "$as_me:$LINENO: result: $CPP" >&5
3248echo "${ECHO_T}$CPP" >&6; }
3249ac_preproc_ok=false
3250for ac_c_preproc_warn_flag in '' yes
3251do
3252  # Use a header file that comes with gcc, so configuring glibc
3253  # with a fresh cross-compiler works.
3254  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3255  # <limits.h> exists even on freestanding compilers.
3256  # On the NeXT, cc -E runs the code through the compiler's parser,
3257  # not just through cpp. "Syntax error" is here to catch this case.
3258  cat >conftest.$ac_ext <<_ACEOF
3259/* confdefs.h.  */
3260_ACEOF
3261cat confdefs.h >>conftest.$ac_ext
3262cat >>conftest.$ac_ext <<_ACEOF
3263/* end confdefs.h.  */
3264#ifdef __STDC__
3265# include <limits.h>
3266#else
3267# include <assert.h>
3268#endif
3269		     Syntax error
3270_ACEOF
3271if { (ac_try="$ac_cpp conftest.$ac_ext"
3272case "(($ac_try" in
3273  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3274  *) ac_try_echo=$ac_try;;
3275esac
3276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3277  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3278  ac_status=$?
3279  grep -v '^ *+' conftest.er1 >conftest.err
3280  rm -f conftest.er1
3281  cat conftest.err >&5
3282  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3283  (exit $ac_status); } >/dev/null && {
3284	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3285	 test ! -s conftest.err
3286       }; then
3287  :
3288else
3289  echo "$as_me: failed program was:" >&5
3290sed 's/^/| /' conftest.$ac_ext >&5
3291
3292  # Broken: fails on valid input.
3293continue
3294fi
3295
3296rm -f conftest.err conftest.$ac_ext
3297
3298  # OK, works on sane cases.  Now check whether nonexistent headers
3299  # can be detected and how.
3300  cat >conftest.$ac_ext <<_ACEOF
3301/* confdefs.h.  */
3302_ACEOF
3303cat confdefs.h >>conftest.$ac_ext
3304cat >>conftest.$ac_ext <<_ACEOF
3305/* end confdefs.h.  */
3306#include <ac_nonexistent.h>
3307_ACEOF
3308if { (ac_try="$ac_cpp conftest.$ac_ext"
3309case "(($ac_try" in
3310  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3311  *) ac_try_echo=$ac_try;;
3312esac
3313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3314  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3315  ac_status=$?
3316  grep -v '^ *+' conftest.er1 >conftest.err
3317  rm -f conftest.er1
3318  cat conftest.err >&5
3319  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320  (exit $ac_status); } >/dev/null && {
3321	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3322	 test ! -s conftest.err
3323       }; then
3324  # Broken: success on invalid input.
3325continue
3326else
3327  echo "$as_me: failed program was:" >&5
3328sed 's/^/| /' conftest.$ac_ext >&5
3329
3330  # Passes both tests.
3331ac_preproc_ok=:
3332break
3333fi
3334
3335rm -f conftest.err conftest.$ac_ext
3336
3337done
3338# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3339rm -f conftest.err conftest.$ac_ext
3340if $ac_preproc_ok; then
3341  :
3342else
3343  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3344See \`config.log' for more details." >&5
3345echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3346See \`config.log' for more details." >&2;}
3347   { (exit 1); exit 1; }; }
3348fi
3349
3350ac_ext=c
3351ac_cpp='$CPP $CPPFLAGS'
3352ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3353ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3354ac_compiler_gnu=$ac_cv_c_compiler_gnu
3355
3356
3357    # Find a good install program.  We prefer a C program (faster),
3358# so one script is as good as another.  But avoid the broken or
3359# incompatible versions:
3360# SysV /etc/install, /usr/sbin/install
3361# SunOS /usr/etc/install
3362# IRIX /sbin/install
3363# AIX /bin/install
3364# AmigaOS /C/install, which installs bootblocks on floppy discs
3365# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3366# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3367# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3368# OS/2's system install, which has a completely different semantic
3369# ./install, which can be erroneously created by make from ./install.sh.
3370{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3371echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3372if test -z "$INSTALL"; then
3373if test "${ac_cv_path_install+set}" = set; then
3374  echo $ECHO_N "(cached) $ECHO_C" >&6
3375else
3376  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3377for as_dir in $PATH
3378do
3379  IFS=$as_save_IFS
3380  test -z "$as_dir" && as_dir=.
3381  # Account for people who put trailing slashes in PATH elements.
3382case $as_dir/ in
3383  ./ | .// | /cC/* | \
3384  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3385  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3386  /usr/ucb/* ) ;;
3387  *)
3388    # OSF1 and SCO ODT 3.0 have their own names for install.
3389    # Don't use installbsd from OSF since it installs stuff as root
3390    # by default.
3391    for ac_prog in ginstall scoinst install; do
3392      for ac_exec_ext in '' $ac_executable_extensions; do
3393	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3394	  if test $ac_prog = install &&
3395	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3396	    # AIX install.  It has an incompatible calling convention.
3397	    :
3398	  elif test $ac_prog = install &&
3399	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3400	    # program-specific install script used by HP pwplus--don't use.
3401	    :
3402	  else
3403	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3404	    break 3
3405	  fi
3406	fi
3407      done
3408    done
3409    ;;
3410esac
3411done
3412IFS=$as_save_IFS
3413
3414
3415fi
3416  if test "${ac_cv_path_install+set}" = set; then
3417    INSTALL=$ac_cv_path_install
3418  else
3419    # As a last resort, use the slow shell script.  Don't cache a
3420    # value for INSTALL within a source directory, because that will
3421    # break other packages using the cache if that directory is
3422    # removed, or if the value is a relative name.
3423    INSTALL=$ac_install_sh
3424  fi
3425fi
3426{ echo "$as_me:$LINENO: result: $INSTALL" >&5
3427echo "${ECHO_T}$INSTALL" >&6; }
3428
3429# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3430# It thinks the first close brace ends the variable substitution.
3431test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3432
3433test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3434
3435test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3436
3437
3438    #--------------------------------------------------------------------
3439    # Checks to see if the make program sets the $MAKE variable.
3440    #--------------------------------------------------------------------
3441
3442    { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3443echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
3444set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3445if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3446  echo $ECHO_N "(cached) $ECHO_C" >&6
3447else
3448  cat >conftest.make <<\_ACEOF
3449SHELL = /bin/sh
3450all:
3451	@echo '@@@%%%=$(MAKE)=@@@%%%'
3452_ACEOF
3453# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3454case `${MAKE-make} -f conftest.make 2>/dev/null` in
3455  *@@@%%%=?*=@@@%%%*)
3456    eval ac_cv_prog_make_${ac_make}_set=yes;;
3457  *)
3458    eval ac_cv_prog_make_${ac_make}_set=no;;
3459esac
3460rm -f conftest.make
3461fi
3462if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3463  { echo "$as_me:$LINENO: result: yes" >&5
3464echo "${ECHO_T}yes" >&6; }
3465  SET_MAKE=
3466else
3467  { echo "$as_me:$LINENO: result: no" >&5
3468echo "${ECHO_T}no" >&6; }
3469  SET_MAKE="MAKE=${MAKE-make}"
3470fi
3471
3472
3473    #--------------------------------------------------------------------
3474    # Find ranlib
3475    #--------------------------------------------------------------------
3476
3477    if test -n "$ac_tool_prefix"; then
3478  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3479set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3480{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3481echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3482if test "${ac_cv_prog_RANLIB+set}" = set; then
3483  echo $ECHO_N "(cached) $ECHO_C" >&6
3484else
3485  if test -n "$RANLIB"; then
3486  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3487else
3488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3489for as_dir in $PATH
3490do
3491  IFS=$as_save_IFS
3492  test -z "$as_dir" && as_dir=.
3493  for ac_exec_ext in '' $ac_executable_extensions; do
3494  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3495    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3496    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3497    break 2
3498  fi
3499done
3500done
3501IFS=$as_save_IFS
3502
3503fi
3504fi
3505RANLIB=$ac_cv_prog_RANLIB
3506if test -n "$RANLIB"; then
3507  { echo "$as_me:$LINENO: result: $RANLIB" >&5
3508echo "${ECHO_T}$RANLIB" >&6; }
3509else
3510  { echo "$as_me:$LINENO: result: no" >&5
3511echo "${ECHO_T}no" >&6; }
3512fi
3513
3514
3515fi
3516if test -z "$ac_cv_prog_RANLIB"; then
3517  ac_ct_RANLIB=$RANLIB
3518  # Extract the first word of "ranlib", so it can be a program name with args.
3519set dummy ranlib; ac_word=$2
3520{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3521echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3522if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3523  echo $ECHO_N "(cached) $ECHO_C" >&6
3524else
3525  if test -n "$ac_ct_RANLIB"; then
3526  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3527else
3528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3529for as_dir in $PATH
3530do
3531  IFS=$as_save_IFS
3532  test -z "$as_dir" && as_dir=.
3533  for ac_exec_ext in '' $ac_executable_extensions; do
3534  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3535    ac_cv_prog_ac_ct_RANLIB="ranlib"
3536    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3537    break 2
3538  fi
3539done
3540done
3541IFS=$as_save_IFS
3542
3543fi
3544fi
3545ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3546if test -n "$ac_ct_RANLIB"; then
3547  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3548echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3549else
3550  { echo "$as_me:$LINENO: result: no" >&5
3551echo "${ECHO_T}no" >&6; }
3552fi
3553
3554  if test "x$ac_ct_RANLIB" = x; then
3555    RANLIB=":"
3556  else
3557    case $cross_compiling:$ac_tool_warned in
3558yes:)
3559{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3560whose name does not start with the host triplet.  If you think this
3561configuration is useful to you, please write to autoconf@gnu.org." >&5
3562echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3563whose name does not start with the host triplet.  If you think this
3564configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3565ac_tool_warned=yes ;;
3566esac
3567    RANLIB=$ac_ct_RANLIB
3568  fi
3569else
3570  RANLIB="$ac_cv_prog_RANLIB"
3571fi
3572
3573
3574    #--------------------------------------------------------------------
3575    # Determines the correct binary file extension (.o, .obj, .exe etc.)
3576    #--------------------------------------------------------------------
3577
3578
3579
3580
3581
3582
3583{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3584echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3585if test "${ac_cv_path_GREP+set}" = set; then
3586  echo $ECHO_N "(cached) $ECHO_C" >&6
3587else
3588  # Extract the first word of "grep ggrep" to use in msg output
3589if test -z "$GREP"; then
3590set dummy grep ggrep; ac_prog_name=$2
3591if test "${ac_cv_path_GREP+set}" = set; then
3592  echo $ECHO_N "(cached) $ECHO_C" >&6
3593else
3594  ac_path_GREP_found=false
3595# Loop through the user's path and test for each of PROGNAME-LIST
3596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3597for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3598do
3599  IFS=$as_save_IFS
3600  test -z "$as_dir" && as_dir=.
3601  for ac_prog in grep ggrep; do
3602  for ac_exec_ext in '' $ac_executable_extensions; do
3603    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3604    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3605    # Check for GNU ac_path_GREP and select it if it is found.
3606  # Check for GNU $ac_path_GREP
3607case `"$ac_path_GREP" --version 2>&1` in
3608*GNU*)
3609  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3610*)
3611  ac_count=0
3612  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3613  while :
3614  do
3615    cat "conftest.in" "conftest.in" >"conftest.tmp"
3616    mv "conftest.tmp" "conftest.in"
3617    cp "conftest.in" "conftest.nl"
3618    echo 'GREP' >> "conftest.nl"
3619    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3620    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3621    ac_count=`expr $ac_count + 1`
3622    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3623      # Best one so far, save it but keep looking for a better one
3624      ac_cv_path_GREP="$ac_path_GREP"
3625      ac_path_GREP_max=$ac_count
3626    fi
3627    # 10*(2^10) chars as input seems more than enough
3628    test $ac_count -gt 10 && break
3629  done
3630  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3631esac
3632
3633
3634    $ac_path_GREP_found && break 3
3635  done
3636done
3637
3638done
3639IFS=$as_save_IFS
3640
3641
3642fi
3643
3644GREP="$ac_cv_path_GREP"
3645if test -z "$GREP"; then
3646  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3647echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3648   { (exit 1); exit 1; }; }
3649fi
3650
3651else
3652  ac_cv_path_GREP=$GREP
3653fi
3654
3655
3656fi
3657{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3658echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3659 GREP="$ac_cv_path_GREP"
3660
3661
3662{ echo "$as_me:$LINENO: checking for egrep" >&5
3663echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3664if test "${ac_cv_path_EGREP+set}" = set; then
3665  echo $ECHO_N "(cached) $ECHO_C" >&6
3666else
3667  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3668   then ac_cv_path_EGREP="$GREP -E"
3669   else
3670     # Extract the first word of "egrep" to use in msg output
3671if test -z "$EGREP"; then
3672set dummy egrep; ac_prog_name=$2
3673if test "${ac_cv_path_EGREP+set}" = set; then
3674  echo $ECHO_N "(cached) $ECHO_C" >&6
3675else
3676  ac_path_EGREP_found=false
3677# Loop through the user's path and test for each of PROGNAME-LIST
3678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3679for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3680do
3681  IFS=$as_save_IFS
3682  test -z "$as_dir" && as_dir=.
3683  for ac_prog in egrep; do
3684  for ac_exec_ext in '' $ac_executable_extensions; do
3685    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3686    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3687    # Check for GNU ac_path_EGREP and select it if it is found.
3688  # Check for GNU $ac_path_EGREP
3689case `"$ac_path_EGREP" --version 2>&1` in
3690*GNU*)
3691  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3692*)
3693  ac_count=0
3694  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3695  while :
3696  do
3697    cat "conftest.in" "conftest.in" >"conftest.tmp"
3698    mv "conftest.tmp" "conftest.in"
3699    cp "conftest.in" "conftest.nl"
3700    echo 'EGREP' >> "conftest.nl"
3701    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3702    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3703    ac_count=`expr $ac_count + 1`
3704    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3705      # Best one so far, save it but keep looking for a better one
3706      ac_cv_path_EGREP="$ac_path_EGREP"
3707      ac_path_EGREP_max=$ac_count
3708    fi
3709    # 10*(2^10) chars as input seems more than enough
3710    test $ac_count -gt 10 && break
3711  done
3712  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3713esac
3714
3715
3716    $ac_path_EGREP_found && break 3
3717  done
3718done
3719
3720done
3721IFS=$as_save_IFS
3722
3723
3724fi
3725
3726EGREP="$ac_cv_path_EGREP"
3727if test -z "$EGREP"; then
3728  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3729echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3730   { (exit 1); exit 1; }; }
3731fi
3732
3733else
3734  ac_cv_path_EGREP=$EGREP
3735fi
3736
3737
3738   fi
3739fi
3740{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3741echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3742 EGREP="$ac_cv_path_EGREP"
3743
3744
3745{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3746echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3747if test "${ac_cv_header_stdc+set}" = set; then
3748  echo $ECHO_N "(cached) $ECHO_C" >&6
3749else
3750  cat >conftest.$ac_ext <<_ACEOF
3751/* confdefs.h.  */
3752_ACEOF
3753cat confdefs.h >>conftest.$ac_ext
3754cat >>conftest.$ac_ext <<_ACEOF
3755/* end confdefs.h.  */
3756#include <stdlib.h>
3757#include <stdarg.h>
3758#include <string.h>
3759#include <float.h>
3760
3761int
3762main ()
3763{
3764
3765  ;
3766  return 0;
3767}
3768_ACEOF
3769rm -f conftest.$ac_objext
3770if { (ac_try="$ac_compile"
3771case "(($ac_try" in
3772  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3773  *) ac_try_echo=$ac_try;;
3774esac
3775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3776  (eval "$ac_compile") 2>conftest.er1
3777  ac_status=$?
3778  grep -v '^ *+' conftest.er1 >conftest.err
3779  rm -f conftest.er1
3780  cat conftest.err >&5
3781  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3782  (exit $ac_status); } && {
3783	 test -z "$ac_c_werror_flag" ||
3784	 test ! -s conftest.err
3785       } && test -s conftest.$ac_objext; then
3786  ac_cv_header_stdc=yes
3787else
3788  echo "$as_me: failed program was:" >&5
3789sed 's/^/| /' conftest.$ac_ext >&5
3790
3791	ac_cv_header_stdc=no
3792fi
3793
3794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3795
3796if test $ac_cv_header_stdc = yes; then
3797  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3798  cat >conftest.$ac_ext <<_ACEOF
3799/* confdefs.h.  */
3800_ACEOF
3801cat confdefs.h >>conftest.$ac_ext
3802cat >>conftest.$ac_ext <<_ACEOF
3803/* end confdefs.h.  */
3804#include <string.h>
3805
3806_ACEOF
3807if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3808  $EGREP "memchr" >/dev/null 2>&1; then
3809  :
3810else
3811  ac_cv_header_stdc=no
3812fi
3813rm -f -r conftest*
3814
3815fi
3816
3817if test $ac_cv_header_stdc = yes; then
3818  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3819  cat >conftest.$ac_ext <<_ACEOF
3820/* confdefs.h.  */
3821_ACEOF
3822cat confdefs.h >>conftest.$ac_ext
3823cat >>conftest.$ac_ext <<_ACEOF
3824/* end confdefs.h.  */
3825#include <stdlib.h>
3826
3827_ACEOF
3828if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3829  $EGREP "free" >/dev/null 2>&1; then
3830  :
3831else
3832  ac_cv_header_stdc=no
3833fi
3834rm -f -r conftest*
3835
3836fi
3837
3838if test $ac_cv_header_stdc = yes; then
3839  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3840  if test "$cross_compiling" = yes; then
3841  :
3842else
3843  cat >conftest.$ac_ext <<_ACEOF
3844/* confdefs.h.  */
3845_ACEOF
3846cat confdefs.h >>conftest.$ac_ext
3847cat >>conftest.$ac_ext <<_ACEOF
3848/* end confdefs.h.  */
3849#include <ctype.h>
3850#include <stdlib.h>
3851#if ((' ' & 0x0FF) == 0x020)
3852# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3853# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3854#else
3855# define ISLOWER(c) \
3856		   (('a' <= (c) && (c) <= 'i') \
3857		     || ('j' <= (c) && (c) <= 'r') \
3858		     || ('s' <= (c) && (c) <= 'z'))
3859# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3860#endif
3861
3862#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3863int
3864main ()
3865{
3866  int i;
3867  for (i = 0; i < 256; i++)
3868    if (XOR (islower (i), ISLOWER (i))
3869	|| toupper (i) != TOUPPER (i))
3870      return 2;
3871  return 0;
3872}
3873_ACEOF
3874rm -f conftest$ac_exeext
3875if { (ac_try="$ac_link"
3876case "(($ac_try" in
3877  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3878  *) ac_try_echo=$ac_try;;
3879esac
3880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3881  (eval "$ac_link") 2>&5
3882  ac_status=$?
3883  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3884  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3885  { (case "(($ac_try" in
3886  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3887  *) ac_try_echo=$ac_try;;
3888esac
3889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3890  (eval "$ac_try") 2>&5
3891  ac_status=$?
3892  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3893  (exit $ac_status); }; }; then
3894  :
3895else
3896  echo "$as_me: program exited with status $ac_status" >&5
3897echo "$as_me: failed program was:" >&5
3898sed 's/^/| /' conftest.$ac_ext >&5
3899
3900( exit $ac_status )
3901ac_cv_header_stdc=no
3902fi
3903rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3904fi
3905
3906
3907fi
3908fi
3909{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3910echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3911if test $ac_cv_header_stdc = yes; then
3912
3913cat >>confdefs.h <<\_ACEOF
3914#define STDC_HEADERS 1
3915_ACEOF
3916
3917fi
3918
3919# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3930		  inttypes.h stdint.h unistd.h
3931do
3932as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3933{ echo "$as_me:$LINENO: checking for $ac_header" >&5
3934echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3935if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3936  echo $ECHO_N "(cached) $ECHO_C" >&6
3937else
3938  cat >conftest.$ac_ext <<_ACEOF
3939/* confdefs.h.  */
3940_ACEOF
3941cat confdefs.h >>conftest.$ac_ext
3942cat >>conftest.$ac_ext <<_ACEOF
3943/* end confdefs.h.  */
3944$ac_includes_default
3945
3946#include <$ac_header>
3947_ACEOF
3948rm -f conftest.$ac_objext
3949if { (ac_try="$ac_compile"
3950case "(($ac_try" in
3951  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3952  *) ac_try_echo=$ac_try;;
3953esac
3954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3955  (eval "$ac_compile") 2>conftest.er1
3956  ac_status=$?
3957  grep -v '^ *+' conftest.er1 >conftest.err
3958  rm -f conftest.er1
3959  cat conftest.err >&5
3960  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3961  (exit $ac_status); } && {
3962	 test -z "$ac_c_werror_flag" ||
3963	 test ! -s conftest.err
3964       } && test -s conftest.$ac_objext; then
3965  eval "$as_ac_Header=yes"
3966else
3967  echo "$as_me: failed program was:" >&5
3968sed 's/^/| /' conftest.$ac_ext >&5
3969
3970	eval "$as_ac_Header=no"
3971fi
3972
3973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3974fi
3975ac_res=`eval echo '${'$as_ac_Header'}'`
3976	       { echo "$as_me:$LINENO: result: $ac_res" >&5
3977echo "${ECHO_T}$ac_res" >&6; }
3978if test `eval echo '${'$as_ac_Header'}'` = yes; then
3979  cat >>confdefs.h <<_ACEOF
3980#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3981_ACEOF
3982
3983fi
3984
3985done
3986
3987
3988
3989    # Any macros that use the compiler (e.g. AC_TRY_COMPILE) have to go here.
3990
3991
3992    #------------------------------------------------------------------------
3993    # If we're using GCC, see if the compiler understands -pipe. If so, use it.
3994    # It makes compiling go faster.  (This is only a performance feature.)
3995    #------------------------------------------------------------------------
3996
3997    if test -z "$no_pipe" -a -n "$GCC"; then
3998	{ echo "$as_me:$LINENO: checking if the compiler understands -pipe" >&5
3999echo $ECHO_N "checking if the compiler understands -pipe... $ECHO_C" >&6; }
4000if test "${tcl_cv_cc_pipe+set}" = set; then
4001  echo $ECHO_N "(cached) $ECHO_C" >&6
4002else
4003
4004	    hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -pipe"
4005	    cat >conftest.$ac_ext <<_ACEOF
4006/* confdefs.h.  */
4007_ACEOF
4008cat confdefs.h >>conftest.$ac_ext
4009cat >>conftest.$ac_ext <<_ACEOF
4010/* end confdefs.h.  */
4011
4012int
4013main ()
4014{
4015
4016  ;
4017  return 0;
4018}
4019_ACEOF
4020rm -f conftest.$ac_objext
4021if { (ac_try="$ac_compile"
4022case "(($ac_try" in
4023  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4024  *) ac_try_echo=$ac_try;;
4025esac
4026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4027  (eval "$ac_compile") 2>conftest.er1
4028  ac_status=$?
4029  grep -v '^ *+' conftest.er1 >conftest.err
4030  rm -f conftest.er1
4031  cat conftest.err >&5
4032  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4033  (exit $ac_status); } && {
4034	 test -z "$ac_c_werror_flag" ||
4035	 test ! -s conftest.err
4036       } && test -s conftest.$ac_objext; then
4037  tcl_cv_cc_pipe=yes
4038else
4039  echo "$as_me: failed program was:" >&5
4040sed 's/^/| /' conftest.$ac_ext >&5
4041
4042	tcl_cv_cc_pipe=no
4043fi
4044
4045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4046	    CFLAGS=$hold_cflags
4047fi
4048{ echo "$as_me:$LINENO: result: $tcl_cv_cc_pipe" >&5
4049echo "${ECHO_T}$tcl_cv_cc_pipe" >&6; }
4050	if test $tcl_cv_cc_pipe = yes; then
4051	    CFLAGS="$CFLAGS -pipe"
4052	fi
4053    fi
4054
4055    #--------------------------------------------------------------------
4056    # Common compiler flag setup
4057    #--------------------------------------------------------------------
4058
4059    { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4060echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4061if test "${ac_cv_c_bigendian+set}" = set; then
4062  echo $ECHO_N "(cached) $ECHO_C" >&6
4063else
4064  # See if sys/param.h defines the BYTE_ORDER macro.
4065cat >conftest.$ac_ext <<_ACEOF
4066/* confdefs.h.  */
4067_ACEOF
4068cat confdefs.h >>conftest.$ac_ext
4069cat >>conftest.$ac_ext <<_ACEOF
4070/* end confdefs.h.  */
4071#include <sys/types.h>
4072#include <sys/param.h>
4073
4074int
4075main ()
4076{
4077#if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
4078	&& BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
4079 bogus endian macros
4080#endif
4081
4082  ;
4083  return 0;
4084}
4085_ACEOF
4086rm -f conftest.$ac_objext
4087if { (ac_try="$ac_compile"
4088case "(($ac_try" in
4089  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4090  *) ac_try_echo=$ac_try;;
4091esac
4092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4093  (eval "$ac_compile") 2>conftest.er1
4094  ac_status=$?
4095  grep -v '^ *+' conftest.er1 >conftest.err
4096  rm -f conftest.er1
4097  cat conftest.err >&5
4098  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4099  (exit $ac_status); } && {
4100	 test -z "$ac_c_werror_flag" ||
4101	 test ! -s conftest.err
4102       } && test -s conftest.$ac_objext; then
4103  # It does; now see whether it defined to BIG_ENDIAN or not.
4104cat >conftest.$ac_ext <<_ACEOF
4105/* confdefs.h.  */
4106_ACEOF
4107cat confdefs.h >>conftest.$ac_ext
4108cat >>conftest.$ac_ext <<_ACEOF
4109/* end confdefs.h.  */
4110#include <sys/types.h>
4111#include <sys/param.h>
4112
4113int
4114main ()
4115{
4116#if BYTE_ORDER != BIG_ENDIAN
4117 not big endian
4118#endif
4119
4120  ;
4121  return 0;
4122}
4123_ACEOF
4124rm -f conftest.$ac_objext
4125if { (ac_try="$ac_compile"
4126case "(($ac_try" in
4127  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4128  *) ac_try_echo=$ac_try;;
4129esac
4130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4131  (eval "$ac_compile") 2>conftest.er1
4132  ac_status=$?
4133  grep -v '^ *+' conftest.er1 >conftest.err
4134  rm -f conftest.er1
4135  cat conftest.err >&5
4136  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4137  (exit $ac_status); } && {
4138	 test -z "$ac_c_werror_flag" ||
4139	 test ! -s conftest.err
4140       } && test -s conftest.$ac_objext; then
4141  ac_cv_c_bigendian=yes
4142else
4143  echo "$as_me: failed program was:" >&5
4144sed 's/^/| /' conftest.$ac_ext >&5
4145
4146	ac_cv_c_bigendian=no
4147fi
4148
4149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4150else
4151  echo "$as_me: failed program was:" >&5
4152sed 's/^/| /' conftest.$ac_ext >&5
4153
4154	# It does not; compile a test program.
4155if test "$cross_compiling" = yes; then
4156  # try to guess the endianness by grepping values into an object file
4157  ac_cv_c_bigendian=unknown
4158  cat >conftest.$ac_ext <<_ACEOF
4159/* confdefs.h.  */
4160_ACEOF
4161cat confdefs.h >>conftest.$ac_ext
4162cat >>conftest.$ac_ext <<_ACEOF
4163/* end confdefs.h.  */
4164short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4165short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4166void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4167short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4168short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4169void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4170int
4171main ()
4172{
4173 _ascii (); _ebcdic ();
4174  ;
4175  return 0;
4176}
4177_ACEOF
4178rm -f conftest.$ac_objext
4179if { (ac_try="$ac_compile"
4180case "(($ac_try" in
4181  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4182  *) ac_try_echo=$ac_try;;
4183esac
4184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4185  (eval "$ac_compile") 2>conftest.er1
4186  ac_status=$?
4187  grep -v '^ *+' conftest.er1 >conftest.err
4188  rm -f conftest.er1
4189  cat conftest.err >&5
4190  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4191  (exit $ac_status); } && {
4192	 test -z "$ac_c_werror_flag" ||
4193	 test ! -s conftest.err
4194       } && test -s conftest.$ac_objext; then
4195  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4196  ac_cv_c_bigendian=yes
4197fi
4198if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4199  if test "$ac_cv_c_bigendian" = unknown; then
4200    ac_cv_c_bigendian=no
4201  else
4202    # finding both strings is unlikely to happen, but who knows?
4203    ac_cv_c_bigendian=unknown
4204  fi
4205fi
4206else
4207  echo "$as_me: failed program was:" >&5
4208sed 's/^/| /' conftest.$ac_ext >&5
4209
4210
4211fi
4212
4213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4214else
4215  cat >conftest.$ac_ext <<_ACEOF
4216/* confdefs.h.  */
4217_ACEOF
4218cat confdefs.h >>conftest.$ac_ext
4219cat >>conftest.$ac_ext <<_ACEOF
4220/* end confdefs.h.  */
4221$ac_includes_default
4222int
4223main ()
4224{
4225
4226  /* Are we little or big endian?  From Harbison&Steele.  */
4227  union
4228  {
4229    long int l;
4230    char c[sizeof (long int)];
4231  } u;
4232  u.l = 1;
4233  return u.c[sizeof (long int) - 1] == 1;
4234
4235  ;
4236  return 0;
4237}
4238_ACEOF
4239rm -f conftest$ac_exeext
4240if { (ac_try="$ac_link"
4241case "(($ac_try" in
4242  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4243  *) ac_try_echo=$ac_try;;
4244esac
4245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4246  (eval "$ac_link") 2>&5
4247  ac_status=$?
4248  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4249  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4250  { (case "(($ac_try" in
4251  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4252  *) ac_try_echo=$ac_try;;
4253esac
4254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4255  (eval "$ac_try") 2>&5
4256  ac_status=$?
4257  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4258  (exit $ac_status); }; }; then
4259  ac_cv_c_bigendian=no
4260else
4261  echo "$as_me: program exited with status $ac_status" >&5
4262echo "$as_me: failed program was:" >&5
4263sed 's/^/| /' conftest.$ac_ext >&5
4264
4265( exit $ac_status )
4266ac_cv_c_bigendian=yes
4267fi
4268rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4269fi
4270
4271
4272fi
4273
4274rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4275fi
4276{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4277echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4278case $ac_cv_c_bigendian in
4279  yes)
4280
4281cat >>confdefs.h <<\_ACEOF
4282#define WORDS_BIGENDIAN 1
4283_ACEOF
4284 ;;
4285  no)
4286     ;;
4287  *)
4288    { { echo "$as_me:$LINENO: error: unknown endianness
4289presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4290echo "$as_me: error: unknown endianness
4291presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4292   { (exit 1); exit 1; }; } ;;
4293esac
4294
4295    if test "${TEA_PLATFORM}" = "unix" ; then
4296
4297    #--------------------------------------------------------------------
4298    # On a few very rare systems, all of the libm.a stuff is
4299    # already in libc.a.  Set compiler flags accordingly.
4300    # Also, Linux requires the "ieee" library for math to work
4301    # right (and it must appear before "-lm").
4302    #--------------------------------------------------------------------
4303
4304    { echo "$as_me:$LINENO: checking for sin" >&5
4305echo $ECHO_N "checking for sin... $ECHO_C" >&6; }
4306if test "${ac_cv_func_sin+set}" = set; then
4307  echo $ECHO_N "(cached) $ECHO_C" >&6
4308else
4309  cat >conftest.$ac_ext <<_ACEOF
4310/* confdefs.h.  */
4311_ACEOF
4312cat confdefs.h >>conftest.$ac_ext
4313cat >>conftest.$ac_ext <<_ACEOF
4314/* end confdefs.h.  */
4315/* Define sin to an innocuous variant, in case <limits.h> declares sin.
4316   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4317#define sin innocuous_sin
4318
4319/* System header to define __stub macros and hopefully few prototypes,
4320    which can conflict with char sin (); below.
4321    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4322    <limits.h> exists even on freestanding compilers.  */
4323
4324#ifdef __STDC__
4325# include <limits.h>
4326#else
4327# include <assert.h>
4328#endif
4329
4330#undef sin
4331
4332/* Override any GCC internal prototype to avoid an error.
4333   Use char because int might match the return type of a GCC
4334   builtin and then its argument prototype would still apply.  */
4335#ifdef __cplusplus
4336extern "C"
4337#endif
4338char sin ();
4339/* The GNU C library defines this for functions which it implements
4340    to always fail with ENOSYS.  Some functions are actually named
4341    something starting with __ and the normal name is an alias.  */
4342#if defined __stub_sin || defined __stub___sin
4343choke me
4344#endif
4345
4346int
4347main ()
4348{
4349return sin ();
4350  ;
4351  return 0;
4352}
4353_ACEOF
4354rm -f conftest.$ac_objext conftest$ac_exeext
4355if { (ac_try="$ac_link"
4356case "(($ac_try" in
4357  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4358  *) ac_try_echo=$ac_try;;
4359esac
4360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4361  (eval "$ac_link") 2>conftest.er1
4362  ac_status=$?
4363  grep -v '^ *+' conftest.er1 >conftest.err
4364  rm -f conftest.er1
4365  cat conftest.err >&5
4366  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367  (exit $ac_status); } && {
4368	 test -z "$ac_c_werror_flag" ||
4369	 test ! -s conftest.err
4370       } && test -s conftest$ac_exeext &&
4371       $as_test_x conftest$ac_exeext; then
4372  ac_cv_func_sin=yes
4373else
4374  echo "$as_me: failed program was:" >&5
4375sed 's/^/| /' conftest.$ac_ext >&5
4376
4377	ac_cv_func_sin=no
4378fi
4379
4380rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4381      conftest$ac_exeext conftest.$ac_ext
4382fi
4383{ echo "$as_me:$LINENO: result: $ac_cv_func_sin" >&5
4384echo "${ECHO_T}$ac_cv_func_sin" >&6; }
4385if test $ac_cv_func_sin = yes; then
4386  MATH_LIBS=""
4387else
4388  MATH_LIBS="-lm"
4389fi
4390
4391    { echo "$as_me:$LINENO: checking for main in -lieee" >&5
4392echo $ECHO_N "checking for main in -lieee... $ECHO_C" >&6; }
4393if test "${ac_cv_lib_ieee_main+set}" = set; then
4394  echo $ECHO_N "(cached) $ECHO_C" >&6
4395else
4396  ac_check_lib_save_LIBS=$LIBS
4397LIBS="-lieee  $LIBS"
4398cat >conftest.$ac_ext <<_ACEOF
4399/* confdefs.h.  */
4400_ACEOF
4401cat confdefs.h >>conftest.$ac_ext
4402cat >>conftest.$ac_ext <<_ACEOF
4403/* end confdefs.h.  */
4404
4405
4406int
4407main ()
4408{
4409return main ();
4410  ;
4411  return 0;
4412}
4413_ACEOF
4414rm -f conftest.$ac_objext conftest$ac_exeext
4415if { (ac_try="$ac_link"
4416case "(($ac_try" in
4417  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4418  *) ac_try_echo=$ac_try;;
4419esac
4420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4421  (eval "$ac_link") 2>conftest.er1
4422  ac_status=$?
4423  grep -v '^ *+' conftest.er1 >conftest.err
4424  rm -f conftest.er1
4425  cat conftest.err >&5
4426  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4427  (exit $ac_status); } && {
4428	 test -z "$ac_c_werror_flag" ||
4429	 test ! -s conftest.err
4430       } && test -s conftest$ac_exeext &&
4431       $as_test_x conftest$ac_exeext; then
4432  ac_cv_lib_ieee_main=yes
4433else
4434  echo "$as_me: failed program was:" >&5
4435sed 's/^/| /' conftest.$ac_ext >&5
4436
4437	ac_cv_lib_ieee_main=no
4438fi
4439
4440rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4441      conftest$ac_exeext conftest.$ac_ext
4442LIBS=$ac_check_lib_save_LIBS
4443fi
4444{ echo "$as_me:$LINENO: result: $ac_cv_lib_ieee_main" >&5
4445echo "${ECHO_T}$ac_cv_lib_ieee_main" >&6; }
4446if test $ac_cv_lib_ieee_main = yes; then
4447  MATH_LIBS="-lieee $MATH_LIBS"
4448fi
4449
4450
4451    #--------------------------------------------------------------------
4452    # Interactive UNIX requires -linet instead of -lsocket, plus it
4453    # needs net/errno.h to define the socket-related error codes.
4454    #--------------------------------------------------------------------
4455
4456    { echo "$as_me:$LINENO: checking for main in -linet" >&5
4457echo $ECHO_N "checking for main in -linet... $ECHO_C" >&6; }
4458if test "${ac_cv_lib_inet_main+set}" = set; then
4459  echo $ECHO_N "(cached) $ECHO_C" >&6
4460else
4461  ac_check_lib_save_LIBS=$LIBS
4462LIBS="-linet  $LIBS"
4463cat >conftest.$ac_ext <<_ACEOF
4464/* confdefs.h.  */
4465_ACEOF
4466cat confdefs.h >>conftest.$ac_ext
4467cat >>conftest.$ac_ext <<_ACEOF
4468/* end confdefs.h.  */
4469
4470
4471int
4472main ()
4473{
4474return main ();
4475  ;
4476  return 0;
4477}
4478_ACEOF
4479rm -f conftest.$ac_objext conftest$ac_exeext
4480if { (ac_try="$ac_link"
4481case "(($ac_try" in
4482  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4483  *) ac_try_echo=$ac_try;;
4484esac
4485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4486  (eval "$ac_link") 2>conftest.er1
4487  ac_status=$?
4488  grep -v '^ *+' conftest.er1 >conftest.err
4489  rm -f conftest.er1
4490  cat conftest.err >&5
4491  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4492  (exit $ac_status); } && {
4493	 test -z "$ac_c_werror_flag" ||
4494	 test ! -s conftest.err
4495       } && test -s conftest$ac_exeext &&
4496       $as_test_x conftest$ac_exeext; then
4497  ac_cv_lib_inet_main=yes
4498else
4499  echo "$as_me: failed program was:" >&5
4500sed 's/^/| /' conftest.$ac_ext >&5
4501
4502	ac_cv_lib_inet_main=no
4503fi
4504
4505rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4506      conftest$ac_exeext conftest.$ac_ext
4507LIBS=$ac_check_lib_save_LIBS
4508fi
4509{ echo "$as_me:$LINENO: result: $ac_cv_lib_inet_main" >&5
4510echo "${ECHO_T}$ac_cv_lib_inet_main" >&6; }
4511if test $ac_cv_lib_inet_main = yes; then
4512  LIBS="$LIBS -linet"
4513fi
4514
4515    if test "${ac_cv_header_net_errno_h+set}" = set; then
4516  { echo "$as_me:$LINENO: checking for net/errno.h" >&5
4517echo $ECHO_N "checking for net/errno.h... $ECHO_C" >&6; }
4518if test "${ac_cv_header_net_errno_h+set}" = set; then
4519  echo $ECHO_N "(cached) $ECHO_C" >&6
4520fi
4521{ echo "$as_me:$LINENO: result: $ac_cv_header_net_errno_h" >&5
4522echo "${ECHO_T}$ac_cv_header_net_errno_h" >&6; }
4523else
4524  # Is the header compilable?
4525{ echo "$as_me:$LINENO: checking net/errno.h usability" >&5
4526echo $ECHO_N "checking net/errno.h usability... $ECHO_C" >&6; }
4527cat >conftest.$ac_ext <<_ACEOF
4528/* confdefs.h.  */
4529_ACEOF
4530cat confdefs.h >>conftest.$ac_ext
4531cat >>conftest.$ac_ext <<_ACEOF
4532/* end confdefs.h.  */
4533$ac_includes_default
4534#include <net/errno.h>
4535_ACEOF
4536rm -f conftest.$ac_objext
4537if { (ac_try="$ac_compile"
4538case "(($ac_try" in
4539  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4540  *) ac_try_echo=$ac_try;;
4541esac
4542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4543  (eval "$ac_compile") 2>conftest.er1
4544  ac_status=$?
4545  grep -v '^ *+' conftest.er1 >conftest.err
4546  rm -f conftest.er1
4547  cat conftest.err >&5
4548  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4549  (exit $ac_status); } && {
4550	 test -z "$ac_c_werror_flag" ||
4551	 test ! -s conftest.err
4552       } && test -s conftest.$ac_objext; then
4553  ac_header_compiler=yes
4554else
4555  echo "$as_me: failed program was:" >&5
4556sed 's/^/| /' conftest.$ac_ext >&5
4557
4558	ac_header_compiler=no
4559fi
4560
4561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4562{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4563echo "${ECHO_T}$ac_header_compiler" >&6; }
4564
4565# Is the header present?
4566{ echo "$as_me:$LINENO: checking net/errno.h presence" >&5
4567echo $ECHO_N "checking net/errno.h presence... $ECHO_C" >&6; }
4568cat >conftest.$ac_ext <<_ACEOF
4569/* confdefs.h.  */
4570_ACEOF
4571cat confdefs.h >>conftest.$ac_ext
4572cat >>conftest.$ac_ext <<_ACEOF
4573/* end confdefs.h.  */
4574#include <net/errno.h>
4575_ACEOF
4576if { (ac_try="$ac_cpp conftest.$ac_ext"
4577case "(($ac_try" in
4578  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4579  *) ac_try_echo=$ac_try;;
4580esac
4581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4582  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4583  ac_status=$?
4584  grep -v '^ *+' conftest.er1 >conftest.err
4585  rm -f conftest.er1
4586  cat conftest.err >&5
4587  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4588  (exit $ac_status); } >/dev/null && {
4589	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4590	 test ! -s conftest.err
4591       }; then
4592  ac_header_preproc=yes
4593else
4594  echo "$as_me: failed program was:" >&5
4595sed 's/^/| /' conftest.$ac_ext >&5
4596
4597  ac_header_preproc=no
4598fi
4599
4600rm -f conftest.err conftest.$ac_ext
4601{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4602echo "${ECHO_T}$ac_header_preproc" >&6; }
4603
4604# So?  What about this header?
4605case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4606  yes:no: )
4607    { echo "$as_me:$LINENO: WARNING: net/errno.h: accepted by the compiler, rejected by the preprocessor!" >&5
4608echo "$as_me: WARNING: net/errno.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4609    { echo "$as_me:$LINENO: WARNING: net/errno.h: proceeding with the compiler's result" >&5
4610echo "$as_me: WARNING: net/errno.h: proceeding with the compiler's result" >&2;}
4611    ac_header_preproc=yes
4612    ;;
4613  no:yes:* )
4614    { echo "$as_me:$LINENO: WARNING: net/errno.h: present but cannot be compiled" >&5
4615echo "$as_me: WARNING: net/errno.h: present but cannot be compiled" >&2;}
4616    { echo "$as_me:$LINENO: WARNING: net/errno.h:     check for missing prerequisite headers?" >&5
4617echo "$as_me: WARNING: net/errno.h:     check for missing prerequisite headers?" >&2;}
4618    { echo "$as_me:$LINENO: WARNING: net/errno.h: see the Autoconf documentation" >&5
4619echo "$as_me: WARNING: net/errno.h: see the Autoconf documentation" >&2;}
4620    { echo "$as_me:$LINENO: WARNING: net/errno.h:     section \"Present But Cannot Be Compiled\"" >&5
4621echo "$as_me: WARNING: net/errno.h:     section \"Present But Cannot Be Compiled\"" >&2;}
4622    { echo "$as_me:$LINENO: WARNING: net/errno.h: proceeding with the preprocessor's result" >&5
4623echo "$as_me: WARNING: net/errno.h: proceeding with the preprocessor's result" >&2;}
4624    { echo "$as_me:$LINENO: WARNING: net/errno.h: in the future, the compiler will take precedence" >&5
4625echo "$as_me: WARNING: net/errno.h: in the future, the compiler will take precedence" >&2;}
4626
4627    ;;
4628esac
4629{ echo "$as_me:$LINENO: checking for net/errno.h" >&5
4630echo $ECHO_N "checking for net/errno.h... $ECHO_C" >&6; }
4631if test "${ac_cv_header_net_errno_h+set}" = set; then
4632  echo $ECHO_N "(cached) $ECHO_C" >&6
4633else
4634  ac_cv_header_net_errno_h=$ac_header_preproc
4635fi
4636{ echo "$as_me:$LINENO: result: $ac_cv_header_net_errno_h" >&5
4637echo "${ECHO_T}$ac_cv_header_net_errno_h" >&6; }
4638
4639fi
4640if test $ac_cv_header_net_errno_h = yes; then
4641
4642
4643cat >>confdefs.h <<\_ACEOF
4644#define HAVE_NET_ERRNO_H 1
4645_ACEOF
4646
4647fi
4648
4649
4650
4651    #--------------------------------------------------------------------
4652    #	Check for the existence of the -lsocket and -lnsl libraries.
4653    #	The order here is important, so that they end up in the right
4654    #	order in the command line generated by make.  Here are some
4655    #	special considerations:
4656    #	1. Use "connect" and "accept" to check for -lsocket, and
4657    #	   "gethostbyname" to check for -lnsl.
4658    #	2. Use each function name only once:  can't redo a check because
4659    #	   autoconf caches the results of the last check and won't redo it.
4660    #	3. Use -lnsl and -lsocket only if they supply procedures that
4661    #	   aren't already present in the normal libraries.  This is because
4662    #	   IRIX 5.2 has libraries, but they aren't needed and they're
4663    #	   bogus:  they goof up name resolution if used.
4664    #	4. On some SVR4 systems, can't use -lsocket without -lnsl too.
4665    #	   To get around this problem, check for both libraries together
4666    #	   if -lsocket doesn't work by itself.
4667    #--------------------------------------------------------------------
4668
4669    tcl_checkBoth=0
4670    { echo "$as_me:$LINENO: checking for connect" >&5
4671echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
4672if test "${ac_cv_func_connect+set}" = set; then
4673  echo $ECHO_N "(cached) $ECHO_C" >&6
4674else
4675  cat >conftest.$ac_ext <<_ACEOF
4676/* confdefs.h.  */
4677_ACEOF
4678cat confdefs.h >>conftest.$ac_ext
4679cat >>conftest.$ac_ext <<_ACEOF
4680/* end confdefs.h.  */
4681/* Define connect to an innocuous variant, in case <limits.h> declares connect.
4682   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4683#define connect innocuous_connect
4684
4685/* System header to define __stub macros and hopefully few prototypes,
4686    which can conflict with char connect (); below.
4687    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4688    <limits.h> exists even on freestanding compilers.  */
4689
4690#ifdef __STDC__
4691# include <limits.h>
4692#else
4693# include <assert.h>
4694#endif
4695
4696#undef connect
4697
4698/* Override any GCC internal prototype to avoid an error.
4699   Use char because int might match the return type of a GCC
4700   builtin and then its argument prototype would still apply.  */
4701#ifdef __cplusplus
4702extern "C"
4703#endif
4704char connect ();
4705/* The GNU C library defines this for functions which it implements
4706    to always fail with ENOSYS.  Some functions are actually named
4707    something starting with __ and the normal name is an alias.  */
4708#if defined __stub_connect || defined __stub___connect
4709choke me
4710#endif
4711
4712int
4713main ()
4714{
4715return connect ();
4716  ;
4717  return 0;
4718}
4719_ACEOF
4720rm -f conftest.$ac_objext conftest$ac_exeext
4721if { (ac_try="$ac_link"
4722case "(($ac_try" in
4723  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4724  *) ac_try_echo=$ac_try;;
4725esac
4726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4727  (eval "$ac_link") 2>conftest.er1
4728  ac_status=$?
4729  grep -v '^ *+' conftest.er1 >conftest.err
4730  rm -f conftest.er1
4731  cat conftest.err >&5
4732  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4733  (exit $ac_status); } && {
4734	 test -z "$ac_c_werror_flag" ||
4735	 test ! -s conftest.err
4736       } && test -s conftest$ac_exeext &&
4737       $as_test_x conftest$ac_exeext; then
4738  ac_cv_func_connect=yes
4739else
4740  echo "$as_me: failed program was:" >&5
4741sed 's/^/| /' conftest.$ac_ext >&5
4742
4743	ac_cv_func_connect=no
4744fi
4745
4746rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4747      conftest$ac_exeext conftest.$ac_ext
4748fi
4749{ echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
4750echo "${ECHO_T}$ac_cv_func_connect" >&6; }
4751if test $ac_cv_func_connect = yes; then
4752  tcl_checkSocket=0
4753else
4754  tcl_checkSocket=1
4755fi
4756
4757    if test "$tcl_checkSocket" = 1; then
4758	{ echo "$as_me:$LINENO: checking for setsockopt" >&5
4759echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6; }
4760if test "${ac_cv_func_setsockopt+set}" = set; then
4761  echo $ECHO_N "(cached) $ECHO_C" >&6
4762else
4763  cat >conftest.$ac_ext <<_ACEOF
4764/* confdefs.h.  */
4765_ACEOF
4766cat confdefs.h >>conftest.$ac_ext
4767cat >>conftest.$ac_ext <<_ACEOF
4768/* end confdefs.h.  */
4769/* Define setsockopt to an innocuous variant, in case <limits.h> declares setsockopt.
4770   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4771#define setsockopt innocuous_setsockopt
4772
4773/* System header to define __stub macros and hopefully few prototypes,
4774    which can conflict with char setsockopt (); below.
4775    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4776    <limits.h> exists even on freestanding compilers.  */
4777
4778#ifdef __STDC__
4779# include <limits.h>
4780#else
4781# include <assert.h>
4782#endif
4783
4784#undef setsockopt
4785
4786/* Override any GCC internal prototype to avoid an error.
4787   Use char because int might match the return type of a GCC
4788   builtin and then its argument prototype would still apply.  */
4789#ifdef __cplusplus
4790extern "C"
4791#endif
4792char setsockopt ();
4793/* The GNU C library defines this for functions which it implements
4794    to always fail with ENOSYS.  Some functions are actually named
4795    something starting with __ and the normal name is an alias.  */
4796#if defined __stub_setsockopt || defined __stub___setsockopt
4797choke me
4798#endif
4799
4800int
4801main ()
4802{
4803return setsockopt ();
4804  ;
4805  return 0;
4806}
4807_ACEOF
4808rm -f conftest.$ac_objext conftest$ac_exeext
4809if { (ac_try="$ac_link"
4810case "(($ac_try" in
4811  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4812  *) ac_try_echo=$ac_try;;
4813esac
4814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4815  (eval "$ac_link") 2>conftest.er1
4816  ac_status=$?
4817  grep -v '^ *+' conftest.er1 >conftest.err
4818  rm -f conftest.er1
4819  cat conftest.err >&5
4820  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4821  (exit $ac_status); } && {
4822	 test -z "$ac_c_werror_flag" ||
4823	 test ! -s conftest.err
4824       } && test -s conftest$ac_exeext &&
4825       $as_test_x conftest$ac_exeext; then
4826  ac_cv_func_setsockopt=yes
4827else
4828  echo "$as_me: failed program was:" >&5
4829sed 's/^/| /' conftest.$ac_ext >&5
4830
4831	ac_cv_func_setsockopt=no
4832fi
4833
4834rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4835      conftest$ac_exeext conftest.$ac_ext
4836fi
4837{ echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5
4838echo "${ECHO_T}$ac_cv_func_setsockopt" >&6; }
4839if test $ac_cv_func_setsockopt = yes; then
4840  :
4841else
4842  { echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5
4843echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6; }
4844if test "${ac_cv_lib_socket_setsockopt+set}" = set; then
4845  echo $ECHO_N "(cached) $ECHO_C" >&6
4846else
4847  ac_check_lib_save_LIBS=$LIBS
4848LIBS="-lsocket  $LIBS"
4849cat >conftest.$ac_ext <<_ACEOF
4850/* confdefs.h.  */
4851_ACEOF
4852cat confdefs.h >>conftest.$ac_ext
4853cat >>conftest.$ac_ext <<_ACEOF
4854/* end confdefs.h.  */
4855
4856/* Override any GCC internal prototype to avoid an error.
4857   Use char because int might match the return type of a GCC
4858   builtin and then its argument prototype would still apply.  */
4859#ifdef __cplusplus
4860extern "C"
4861#endif
4862char setsockopt ();
4863int
4864main ()
4865{
4866return setsockopt ();
4867  ;
4868  return 0;
4869}
4870_ACEOF
4871rm -f conftest.$ac_objext conftest$ac_exeext
4872if { (ac_try="$ac_link"
4873case "(($ac_try" in
4874  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4875  *) ac_try_echo=$ac_try;;
4876esac
4877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4878  (eval "$ac_link") 2>conftest.er1
4879  ac_status=$?
4880  grep -v '^ *+' conftest.er1 >conftest.err
4881  rm -f conftest.er1
4882  cat conftest.err >&5
4883  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4884  (exit $ac_status); } && {
4885	 test -z "$ac_c_werror_flag" ||
4886	 test ! -s conftest.err
4887       } && test -s conftest$ac_exeext &&
4888       $as_test_x conftest$ac_exeext; then
4889  ac_cv_lib_socket_setsockopt=yes
4890else
4891  echo "$as_me: failed program was:" >&5
4892sed 's/^/| /' conftest.$ac_ext >&5
4893
4894	ac_cv_lib_socket_setsockopt=no
4895fi
4896
4897rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4898      conftest$ac_exeext conftest.$ac_ext
4899LIBS=$ac_check_lib_save_LIBS
4900fi
4901{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5
4902echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6; }
4903if test $ac_cv_lib_socket_setsockopt = yes; then
4904  LIBS="$LIBS -lsocket"
4905else
4906  tcl_checkBoth=1
4907fi
4908
4909fi
4910
4911    fi
4912    if test "$tcl_checkBoth" = 1; then
4913	tk_oldLibs=$LIBS
4914	LIBS="$LIBS -lsocket -lnsl"
4915	{ echo "$as_me:$LINENO: checking for accept" >&5
4916echo $ECHO_N "checking for accept... $ECHO_C" >&6; }
4917if test "${ac_cv_func_accept+set}" = set; then
4918  echo $ECHO_N "(cached) $ECHO_C" >&6
4919else
4920  cat >conftest.$ac_ext <<_ACEOF
4921/* confdefs.h.  */
4922_ACEOF
4923cat confdefs.h >>conftest.$ac_ext
4924cat >>conftest.$ac_ext <<_ACEOF
4925/* end confdefs.h.  */
4926/* Define accept to an innocuous variant, in case <limits.h> declares accept.
4927   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4928#define accept innocuous_accept
4929
4930/* System header to define __stub macros and hopefully few prototypes,
4931    which can conflict with char accept (); below.
4932    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4933    <limits.h> exists even on freestanding compilers.  */
4934
4935#ifdef __STDC__
4936# include <limits.h>
4937#else
4938# include <assert.h>
4939#endif
4940
4941#undef accept
4942
4943/* Override any GCC internal prototype to avoid an error.
4944   Use char because int might match the return type of a GCC
4945   builtin and then its argument prototype would still apply.  */
4946#ifdef __cplusplus
4947extern "C"
4948#endif
4949char accept ();
4950/* The GNU C library defines this for functions which it implements
4951    to always fail with ENOSYS.  Some functions are actually named
4952    something starting with __ and the normal name is an alias.  */
4953#if defined __stub_accept || defined __stub___accept
4954choke me
4955#endif
4956
4957int
4958main ()
4959{
4960return accept ();
4961  ;
4962  return 0;
4963}
4964_ACEOF
4965rm -f conftest.$ac_objext conftest$ac_exeext
4966if { (ac_try="$ac_link"
4967case "(($ac_try" in
4968  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4969  *) ac_try_echo=$ac_try;;
4970esac
4971eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4972  (eval "$ac_link") 2>conftest.er1
4973  ac_status=$?
4974  grep -v '^ *+' conftest.er1 >conftest.err
4975  rm -f conftest.er1
4976  cat conftest.err >&5
4977  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4978  (exit $ac_status); } && {
4979	 test -z "$ac_c_werror_flag" ||
4980	 test ! -s conftest.err
4981       } && test -s conftest$ac_exeext &&
4982       $as_test_x conftest$ac_exeext; then
4983  ac_cv_func_accept=yes
4984else
4985  echo "$as_me: failed program was:" >&5
4986sed 's/^/| /' conftest.$ac_ext >&5
4987
4988	ac_cv_func_accept=no
4989fi
4990
4991rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4992      conftest$ac_exeext conftest.$ac_ext
4993fi
4994{ echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5
4995echo "${ECHO_T}$ac_cv_func_accept" >&6; }
4996if test $ac_cv_func_accept = yes; then
4997  tcl_checkNsl=0
4998else
4999  LIBS=$tk_oldLibs
5000fi
5001
5002    fi
5003    { echo "$as_me:$LINENO: checking for gethostbyname" >&5
5004echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
5005if test "${ac_cv_func_gethostbyname+set}" = set; then
5006  echo $ECHO_N "(cached) $ECHO_C" >&6
5007else
5008  cat >conftest.$ac_ext <<_ACEOF
5009/* confdefs.h.  */
5010_ACEOF
5011cat confdefs.h >>conftest.$ac_ext
5012cat >>conftest.$ac_ext <<_ACEOF
5013/* end confdefs.h.  */
5014/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
5015   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5016#define gethostbyname innocuous_gethostbyname
5017
5018/* System header to define __stub macros and hopefully few prototypes,
5019    which can conflict with char gethostbyname (); below.
5020    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5021    <limits.h> exists even on freestanding compilers.  */
5022
5023#ifdef __STDC__
5024# include <limits.h>
5025#else
5026# include <assert.h>
5027#endif
5028
5029#undef gethostbyname
5030
5031/* Override any GCC internal prototype to avoid an error.
5032   Use char because int might match the return type of a GCC
5033   builtin and then its argument prototype would still apply.  */
5034#ifdef __cplusplus
5035extern "C"
5036#endif
5037char gethostbyname ();
5038/* The GNU C library defines this for functions which it implements
5039    to always fail with ENOSYS.  Some functions are actually named
5040    something starting with __ and the normal name is an alias.  */
5041#if defined __stub_gethostbyname || defined __stub___gethostbyname
5042choke me
5043#endif
5044
5045int
5046main ()
5047{
5048return gethostbyname ();
5049  ;
5050  return 0;
5051}
5052_ACEOF
5053rm -f conftest.$ac_objext conftest$ac_exeext
5054if { (ac_try="$ac_link"
5055case "(($ac_try" in
5056  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5057  *) ac_try_echo=$ac_try;;
5058esac
5059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5060  (eval "$ac_link") 2>conftest.er1
5061  ac_status=$?
5062  grep -v '^ *+' conftest.er1 >conftest.err
5063  rm -f conftest.er1
5064  cat conftest.err >&5
5065  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5066  (exit $ac_status); } && {
5067	 test -z "$ac_c_werror_flag" ||
5068	 test ! -s conftest.err
5069       } && test -s conftest$ac_exeext &&
5070       $as_test_x conftest$ac_exeext; then
5071  ac_cv_func_gethostbyname=yes
5072else
5073  echo "$as_me: failed program was:" >&5
5074sed 's/^/| /' conftest.$ac_ext >&5
5075
5076	ac_cv_func_gethostbyname=no
5077fi
5078
5079rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5080      conftest$ac_exeext conftest.$ac_ext
5081fi
5082{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
5083echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
5084if test $ac_cv_func_gethostbyname = yes; then
5085  :
5086else
5087  { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5088echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
5089if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5090  echo $ECHO_N "(cached) $ECHO_C" >&6
5091else
5092  ac_check_lib_save_LIBS=$LIBS
5093LIBS="-lnsl  $LIBS"
5094cat >conftest.$ac_ext <<_ACEOF
5095/* confdefs.h.  */
5096_ACEOF
5097cat confdefs.h >>conftest.$ac_ext
5098cat >>conftest.$ac_ext <<_ACEOF
5099/* end confdefs.h.  */
5100
5101/* Override any GCC internal prototype to avoid an error.
5102   Use char because int might match the return type of a GCC
5103   builtin and then its argument prototype would still apply.  */
5104#ifdef __cplusplus
5105extern "C"
5106#endif
5107char gethostbyname ();
5108int
5109main ()
5110{
5111return gethostbyname ();
5112  ;
5113  return 0;
5114}
5115_ACEOF
5116rm -f conftest.$ac_objext conftest$ac_exeext
5117if { (ac_try="$ac_link"
5118case "(($ac_try" in
5119  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5120  *) ac_try_echo=$ac_try;;
5121esac
5122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5123  (eval "$ac_link") 2>conftest.er1
5124  ac_status=$?
5125  grep -v '^ *+' conftest.er1 >conftest.err
5126  rm -f conftest.er1
5127  cat conftest.err >&5
5128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5129  (exit $ac_status); } && {
5130	 test -z "$ac_c_werror_flag" ||
5131	 test ! -s conftest.err
5132       } && test -s conftest$ac_exeext &&
5133       $as_test_x conftest$ac_exeext; then
5134  ac_cv_lib_nsl_gethostbyname=yes
5135else
5136  echo "$as_me: failed program was:" >&5
5137sed 's/^/| /' conftest.$ac_ext >&5
5138
5139	ac_cv_lib_nsl_gethostbyname=no
5140fi
5141
5142rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5143      conftest$ac_exeext conftest.$ac_ext
5144LIBS=$ac_check_lib_save_LIBS
5145fi
5146{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5147echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
5148if test $ac_cv_lib_nsl_gethostbyname = yes; then
5149  LIBS="$LIBS -lnsl"
5150fi
5151
5152fi
5153
5154
5155    # TEA specific: Don't perform the eval of the libraries here because
5156    # DL_LIBS won't be set until we call TEA_CONFIG_CFLAGS
5157
5158    TCL_LIBS='${DL_LIBS} ${LIBS} ${MATH_LIBS}'
5159
5160
5161
5162
5163    { echo "$as_me:$LINENO: checking dirent.h" >&5
5164echo $ECHO_N "checking dirent.h... $ECHO_C" >&6; }
5165if test "${tcl_cv_dirent_h+set}" = set; then
5166  echo $ECHO_N "(cached) $ECHO_C" >&6
5167else
5168
5169    cat >conftest.$ac_ext <<_ACEOF
5170/* confdefs.h.  */
5171_ACEOF
5172cat confdefs.h >>conftest.$ac_ext
5173cat >>conftest.$ac_ext <<_ACEOF
5174/* end confdefs.h.  */
5175#include <sys/types.h>
5176#include <dirent.h>
5177int
5178main ()
5179{
5180
5181#ifndef _POSIX_SOURCE
5182#   ifdef __Lynx__
5183	/*
5184	 * Generate compilation error to make the test fail:  Lynx headers
5185	 * are only valid if really in the POSIX environment.
5186	 */
5187
5188	missing_procedure();
5189#   endif
5190#endif
5191DIR *d;
5192struct dirent *entryPtr;
5193char *p;
5194d = opendir("foobar");
5195entryPtr = readdir(d);
5196p = entryPtr->d_name;
5197closedir(d);
5198
5199  ;
5200  return 0;
5201}
5202_ACEOF
5203rm -f conftest.$ac_objext conftest$ac_exeext
5204if { (ac_try="$ac_link"
5205case "(($ac_try" in
5206  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5207  *) ac_try_echo=$ac_try;;
5208esac
5209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5210  (eval "$ac_link") 2>conftest.er1
5211  ac_status=$?
5212  grep -v '^ *+' conftest.er1 >conftest.err
5213  rm -f conftest.er1
5214  cat conftest.err >&5
5215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5216  (exit $ac_status); } && {
5217	 test -z "$ac_c_werror_flag" ||
5218	 test ! -s conftest.err
5219       } && test -s conftest$ac_exeext &&
5220       $as_test_x conftest$ac_exeext; then
5221  tcl_cv_dirent_h=yes
5222else
5223  echo "$as_me: failed program was:" >&5
5224sed 's/^/| /' conftest.$ac_ext >&5
5225
5226	tcl_cv_dirent_h=no
5227fi
5228
5229rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5230      conftest$ac_exeext conftest.$ac_ext
5231fi
5232{ echo "$as_me:$LINENO: result: $tcl_cv_dirent_h" >&5
5233echo "${ECHO_T}$tcl_cv_dirent_h" >&6; }
5234
5235    if test $tcl_cv_dirent_h = no; then
5236
5237cat >>confdefs.h <<\_ACEOF
5238#define NO_DIRENT_H 1
5239_ACEOF
5240
5241    fi
5242
5243    # TEA specific:
5244    if test "${ac_cv_header_errno_h+set}" = set; then
5245  { echo "$as_me:$LINENO: checking for errno.h" >&5
5246echo $ECHO_N "checking for errno.h... $ECHO_C" >&6; }
5247if test "${ac_cv_header_errno_h+set}" = set; then
5248  echo $ECHO_N "(cached) $ECHO_C" >&6
5249fi
5250{ echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5
5251echo "${ECHO_T}$ac_cv_header_errno_h" >&6; }
5252else
5253  # Is the header compilable?
5254{ echo "$as_me:$LINENO: checking errno.h usability" >&5
5255echo $ECHO_N "checking errno.h usability... $ECHO_C" >&6; }
5256cat >conftest.$ac_ext <<_ACEOF
5257/* confdefs.h.  */
5258_ACEOF
5259cat confdefs.h >>conftest.$ac_ext
5260cat >>conftest.$ac_ext <<_ACEOF
5261/* end confdefs.h.  */
5262$ac_includes_default
5263#include <errno.h>
5264_ACEOF
5265rm -f conftest.$ac_objext
5266if { (ac_try="$ac_compile"
5267case "(($ac_try" in
5268  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5269  *) ac_try_echo=$ac_try;;
5270esac
5271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5272  (eval "$ac_compile") 2>conftest.er1
5273  ac_status=$?
5274  grep -v '^ *+' conftest.er1 >conftest.err
5275  rm -f conftest.er1
5276  cat conftest.err >&5
5277  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5278  (exit $ac_status); } && {
5279	 test -z "$ac_c_werror_flag" ||
5280	 test ! -s conftest.err
5281       } && test -s conftest.$ac_objext; then
5282  ac_header_compiler=yes
5283else
5284  echo "$as_me: failed program was:" >&5
5285sed 's/^/| /' conftest.$ac_ext >&5
5286
5287	ac_header_compiler=no
5288fi
5289
5290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5291{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5292echo "${ECHO_T}$ac_header_compiler" >&6; }
5293
5294# Is the header present?
5295{ echo "$as_me:$LINENO: checking errno.h presence" >&5
5296echo $ECHO_N "checking errno.h presence... $ECHO_C" >&6; }
5297cat >conftest.$ac_ext <<_ACEOF
5298/* confdefs.h.  */
5299_ACEOF
5300cat confdefs.h >>conftest.$ac_ext
5301cat >>conftest.$ac_ext <<_ACEOF
5302/* end confdefs.h.  */
5303#include <errno.h>
5304_ACEOF
5305if { (ac_try="$ac_cpp conftest.$ac_ext"
5306case "(($ac_try" in
5307  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5308  *) ac_try_echo=$ac_try;;
5309esac
5310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5311  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5312  ac_status=$?
5313  grep -v '^ *+' conftest.er1 >conftest.err
5314  rm -f conftest.er1
5315  cat conftest.err >&5
5316  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5317  (exit $ac_status); } >/dev/null && {
5318	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5319	 test ! -s conftest.err
5320       }; then
5321  ac_header_preproc=yes
5322else
5323  echo "$as_me: failed program was:" >&5
5324sed 's/^/| /' conftest.$ac_ext >&5
5325
5326  ac_header_preproc=no
5327fi
5328
5329rm -f conftest.err conftest.$ac_ext
5330{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5331echo "${ECHO_T}$ac_header_preproc" >&6; }
5332
5333# So?  What about this header?
5334case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5335  yes:no: )
5336    { echo "$as_me:$LINENO: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&5
5337echo "$as_me: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5338    { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the compiler's result" >&5
5339echo "$as_me: WARNING: errno.h: proceeding with the compiler's result" >&2;}
5340    ac_header_preproc=yes
5341    ;;
5342  no:yes:* )
5343    { echo "$as_me:$LINENO: WARNING: errno.h: present but cannot be compiled" >&5
5344echo "$as_me: WARNING: errno.h: present but cannot be compiled" >&2;}
5345    { echo "$as_me:$LINENO: WARNING: errno.h:     check for missing prerequisite headers?" >&5
5346echo "$as_me: WARNING: errno.h:     check for missing prerequisite headers?" >&2;}
5347    { echo "$as_me:$LINENO: WARNING: errno.h: see the Autoconf documentation" >&5
5348echo "$as_me: WARNING: errno.h: see the Autoconf documentation" >&2;}
5349    { echo "$as_me:$LINENO: WARNING: errno.h:     section \"Present But Cannot Be Compiled\"" >&5
5350echo "$as_me: WARNING: errno.h:     section \"Present But Cannot Be Compiled\"" >&2;}
5351    { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the preprocessor's result" >&5
5352echo "$as_me: WARNING: errno.h: proceeding with the preprocessor's result" >&2;}
5353    { echo "$as_me:$LINENO: WARNING: errno.h: in the future, the compiler will take precedence" >&5
5354echo "$as_me: WARNING: errno.h: in the future, the compiler will take precedence" >&2;}
5355
5356    ;;
5357esac
5358{ echo "$as_me:$LINENO: checking for errno.h" >&5
5359echo $ECHO_N "checking for errno.h... $ECHO_C" >&6; }
5360if test "${ac_cv_header_errno_h+set}" = set; then
5361  echo $ECHO_N "(cached) $ECHO_C" >&6
5362else
5363  ac_cv_header_errno_h=$ac_header_preproc
5364fi
5365{ echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5
5366echo "${ECHO_T}$ac_cv_header_errno_h" >&6; }
5367
5368fi
5369if test $ac_cv_header_errno_h = yes; then
5370  :
5371else
5372
5373cat >>confdefs.h <<\_ACEOF
5374#define NO_ERRNO_H 1
5375_ACEOF
5376
5377fi
5378
5379
5380    if test "${ac_cv_header_float_h+set}" = set; then
5381  { echo "$as_me:$LINENO: checking for float.h" >&5
5382echo $ECHO_N "checking for float.h... $ECHO_C" >&6; }
5383if test "${ac_cv_header_float_h+set}" = set; then
5384  echo $ECHO_N "(cached) $ECHO_C" >&6
5385fi
5386{ echo "$as_me:$LINENO: result: $ac_cv_header_float_h" >&5
5387echo "${ECHO_T}$ac_cv_header_float_h" >&6; }
5388else
5389  # Is the header compilable?
5390{ echo "$as_me:$LINENO: checking float.h usability" >&5
5391echo $ECHO_N "checking float.h usability... $ECHO_C" >&6; }
5392cat >conftest.$ac_ext <<_ACEOF
5393/* confdefs.h.  */
5394_ACEOF
5395cat confdefs.h >>conftest.$ac_ext
5396cat >>conftest.$ac_ext <<_ACEOF
5397/* end confdefs.h.  */
5398$ac_includes_default
5399#include <float.h>
5400_ACEOF
5401rm -f conftest.$ac_objext
5402if { (ac_try="$ac_compile"
5403case "(($ac_try" in
5404  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5405  *) ac_try_echo=$ac_try;;
5406esac
5407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5408  (eval "$ac_compile") 2>conftest.er1
5409  ac_status=$?
5410  grep -v '^ *+' conftest.er1 >conftest.err
5411  rm -f conftest.er1
5412  cat conftest.err >&5
5413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5414  (exit $ac_status); } && {
5415	 test -z "$ac_c_werror_flag" ||
5416	 test ! -s conftest.err
5417       } && test -s conftest.$ac_objext; then
5418  ac_header_compiler=yes
5419else
5420  echo "$as_me: failed program was:" >&5
5421sed 's/^/| /' conftest.$ac_ext >&5
5422
5423	ac_header_compiler=no
5424fi
5425
5426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5427{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5428echo "${ECHO_T}$ac_header_compiler" >&6; }
5429
5430# Is the header present?
5431{ echo "$as_me:$LINENO: checking float.h presence" >&5
5432echo $ECHO_N "checking float.h presence... $ECHO_C" >&6; }
5433cat >conftest.$ac_ext <<_ACEOF
5434/* confdefs.h.  */
5435_ACEOF
5436cat confdefs.h >>conftest.$ac_ext
5437cat >>conftest.$ac_ext <<_ACEOF
5438/* end confdefs.h.  */
5439#include <float.h>
5440_ACEOF
5441if { (ac_try="$ac_cpp conftest.$ac_ext"
5442case "(($ac_try" in
5443  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5444  *) ac_try_echo=$ac_try;;
5445esac
5446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5447  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5448  ac_status=$?
5449  grep -v '^ *+' conftest.er1 >conftest.err
5450  rm -f conftest.er1
5451  cat conftest.err >&5
5452  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5453  (exit $ac_status); } >/dev/null && {
5454	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5455	 test ! -s conftest.err
5456       }; then
5457  ac_header_preproc=yes
5458else
5459  echo "$as_me: failed program was:" >&5
5460sed 's/^/| /' conftest.$ac_ext >&5
5461
5462  ac_header_preproc=no
5463fi
5464
5465rm -f conftest.err conftest.$ac_ext
5466{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5467echo "${ECHO_T}$ac_header_preproc" >&6; }
5468
5469# So?  What about this header?
5470case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5471  yes:no: )
5472    { echo "$as_me:$LINENO: WARNING: float.h: accepted by the compiler, rejected by the preprocessor!" >&5
5473echo "$as_me: WARNING: float.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5474    { echo "$as_me:$LINENO: WARNING: float.h: proceeding with the compiler's result" >&5
5475echo "$as_me: WARNING: float.h: proceeding with the compiler's result" >&2;}
5476    ac_header_preproc=yes
5477    ;;
5478  no:yes:* )
5479    { echo "$as_me:$LINENO: WARNING: float.h: present but cannot be compiled" >&5
5480echo "$as_me: WARNING: float.h: present but cannot be compiled" >&2;}
5481    { echo "$as_me:$LINENO: WARNING: float.h:     check for missing prerequisite headers?" >&5
5482echo "$as_me: WARNING: float.h:     check for missing prerequisite headers?" >&2;}
5483    { echo "$as_me:$LINENO: WARNING: float.h: see the Autoconf documentation" >&5
5484echo "$as_me: WARNING: float.h: see the Autoconf documentation" >&2;}
5485    { echo "$as_me:$LINENO: WARNING: float.h:     section \"Present But Cannot Be Compiled\"" >&5
5486echo "$as_me: WARNING: float.h:     section \"Present But Cannot Be Compiled\"" >&2;}
5487    { echo "$as_me:$LINENO: WARNING: float.h: proceeding with the preprocessor's result" >&5
5488echo "$as_me: WARNING: float.h: proceeding with the preprocessor's result" >&2;}
5489    { echo "$as_me:$LINENO: WARNING: float.h: in the future, the compiler will take precedence" >&5
5490echo "$as_me: WARNING: float.h: in the future, the compiler will take precedence" >&2;}
5491
5492    ;;
5493esac
5494{ echo "$as_me:$LINENO: checking for float.h" >&5
5495echo $ECHO_N "checking for float.h... $ECHO_C" >&6; }
5496if test "${ac_cv_header_float_h+set}" = set; then
5497  echo $ECHO_N "(cached) $ECHO_C" >&6
5498else
5499  ac_cv_header_float_h=$ac_header_preproc
5500fi
5501{ echo "$as_me:$LINENO: result: $ac_cv_header_float_h" >&5
5502echo "${ECHO_T}$ac_cv_header_float_h" >&6; }
5503
5504fi
5505if test $ac_cv_header_float_h = yes; then
5506  :
5507else
5508
5509cat >>confdefs.h <<\_ACEOF
5510#define NO_FLOAT_H 1
5511_ACEOF
5512
5513fi
5514
5515
5516    if test "${ac_cv_header_values_h+set}" = set; then
5517  { echo "$as_me:$LINENO: checking for values.h" >&5
5518echo $ECHO_N "checking for values.h... $ECHO_C" >&6; }
5519if test "${ac_cv_header_values_h+set}" = set; then
5520  echo $ECHO_N "(cached) $ECHO_C" >&6
5521fi
5522{ echo "$as_me:$LINENO: result: $ac_cv_header_values_h" >&5
5523echo "${ECHO_T}$ac_cv_header_values_h" >&6; }
5524else
5525  # Is the header compilable?
5526{ echo "$as_me:$LINENO: checking values.h usability" >&5
5527echo $ECHO_N "checking values.h usability... $ECHO_C" >&6; }
5528cat >conftest.$ac_ext <<_ACEOF
5529/* confdefs.h.  */
5530_ACEOF
5531cat confdefs.h >>conftest.$ac_ext
5532cat >>conftest.$ac_ext <<_ACEOF
5533/* end confdefs.h.  */
5534$ac_includes_default
5535#include <values.h>
5536_ACEOF
5537rm -f conftest.$ac_objext
5538if { (ac_try="$ac_compile"
5539case "(($ac_try" in
5540  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5541  *) ac_try_echo=$ac_try;;
5542esac
5543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5544  (eval "$ac_compile") 2>conftest.er1
5545  ac_status=$?
5546  grep -v '^ *+' conftest.er1 >conftest.err
5547  rm -f conftest.er1
5548  cat conftest.err >&5
5549  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5550  (exit $ac_status); } && {
5551	 test -z "$ac_c_werror_flag" ||
5552	 test ! -s conftest.err
5553       } && test -s conftest.$ac_objext; then
5554  ac_header_compiler=yes
5555else
5556  echo "$as_me: failed program was:" >&5
5557sed 's/^/| /' conftest.$ac_ext >&5
5558
5559	ac_header_compiler=no
5560fi
5561
5562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5563{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5564echo "${ECHO_T}$ac_header_compiler" >&6; }
5565
5566# Is the header present?
5567{ echo "$as_me:$LINENO: checking values.h presence" >&5
5568echo $ECHO_N "checking values.h presence... $ECHO_C" >&6; }
5569cat >conftest.$ac_ext <<_ACEOF
5570/* confdefs.h.  */
5571_ACEOF
5572cat confdefs.h >>conftest.$ac_ext
5573cat >>conftest.$ac_ext <<_ACEOF
5574/* end confdefs.h.  */
5575#include <values.h>
5576_ACEOF
5577if { (ac_try="$ac_cpp conftest.$ac_ext"
5578case "(($ac_try" in
5579  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5580  *) ac_try_echo=$ac_try;;
5581esac
5582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5583  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5584  ac_status=$?
5585  grep -v '^ *+' conftest.er1 >conftest.err
5586  rm -f conftest.er1
5587  cat conftest.err >&5
5588  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5589  (exit $ac_status); } >/dev/null && {
5590	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5591	 test ! -s conftest.err
5592       }; then
5593  ac_header_preproc=yes
5594else
5595  echo "$as_me: failed program was:" >&5
5596sed 's/^/| /' conftest.$ac_ext >&5
5597
5598  ac_header_preproc=no
5599fi
5600
5601rm -f conftest.err conftest.$ac_ext
5602{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5603echo "${ECHO_T}$ac_header_preproc" >&6; }
5604
5605# So?  What about this header?
5606case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5607  yes:no: )
5608    { echo "$as_me:$LINENO: WARNING: values.h: accepted by the compiler, rejected by the preprocessor!" >&5
5609echo "$as_me: WARNING: values.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5610    { echo "$as_me:$LINENO: WARNING: values.h: proceeding with the compiler's result" >&5
5611echo "$as_me: WARNING: values.h: proceeding with the compiler's result" >&2;}
5612    ac_header_preproc=yes
5613    ;;
5614  no:yes:* )
5615    { echo "$as_me:$LINENO: WARNING: values.h: present but cannot be compiled" >&5
5616echo "$as_me: WARNING: values.h: present but cannot be compiled" >&2;}
5617    { echo "$as_me:$LINENO: WARNING: values.h:     check for missing prerequisite headers?" >&5
5618echo "$as_me: WARNING: values.h:     check for missing prerequisite headers?" >&2;}
5619    { echo "$as_me:$LINENO: WARNING: values.h: see the Autoconf documentation" >&5
5620echo "$as_me: WARNING: values.h: see the Autoconf documentation" >&2;}
5621    { echo "$as_me:$LINENO: WARNING: values.h:     section \"Present But Cannot Be Compiled\"" >&5
5622echo "$as_me: WARNING: values.h:     section \"Present But Cannot Be Compiled\"" >&2;}
5623    { echo "$as_me:$LINENO: WARNING: values.h: proceeding with the preprocessor's result" >&5
5624echo "$as_me: WARNING: values.h: proceeding with the preprocessor's result" >&2;}
5625    { echo "$as_me:$LINENO: WARNING: values.h: in the future, the compiler will take precedence" >&5
5626echo "$as_me: WARNING: values.h: in the future, the compiler will take precedence" >&2;}
5627
5628    ;;
5629esac
5630{ echo "$as_me:$LINENO: checking for values.h" >&5
5631echo $ECHO_N "checking for values.h... $ECHO_C" >&6; }
5632if test "${ac_cv_header_values_h+set}" = set; then
5633  echo $ECHO_N "(cached) $ECHO_C" >&6
5634else
5635  ac_cv_header_values_h=$ac_header_preproc
5636fi
5637{ echo "$as_me:$LINENO: result: $ac_cv_header_values_h" >&5
5638echo "${ECHO_T}$ac_cv_header_values_h" >&6; }
5639
5640fi
5641if test $ac_cv_header_values_h = yes; then
5642  :
5643else
5644
5645cat >>confdefs.h <<\_ACEOF
5646#define NO_VALUES_H 1
5647_ACEOF
5648
5649fi
5650
5651
5652    if test "${ac_cv_header_limits_h+set}" = set; then
5653  { echo "$as_me:$LINENO: checking for limits.h" >&5
5654echo $ECHO_N "checking for limits.h... $ECHO_C" >&6; }
5655if test "${ac_cv_header_limits_h+set}" = set; then
5656  echo $ECHO_N "(cached) $ECHO_C" >&6
5657fi
5658{ echo "$as_me:$LINENO: result: $ac_cv_header_limits_h" >&5
5659echo "${ECHO_T}$ac_cv_header_limits_h" >&6; }
5660else
5661  # Is the header compilable?
5662{ echo "$as_me:$LINENO: checking limits.h usability" >&5
5663echo $ECHO_N "checking limits.h usability... $ECHO_C" >&6; }
5664cat >conftest.$ac_ext <<_ACEOF
5665/* confdefs.h.  */
5666_ACEOF
5667cat confdefs.h >>conftest.$ac_ext
5668cat >>conftest.$ac_ext <<_ACEOF
5669/* end confdefs.h.  */
5670$ac_includes_default
5671#include <limits.h>
5672_ACEOF
5673rm -f conftest.$ac_objext
5674if { (ac_try="$ac_compile"
5675case "(($ac_try" in
5676  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5677  *) ac_try_echo=$ac_try;;
5678esac
5679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5680  (eval "$ac_compile") 2>conftest.er1
5681  ac_status=$?
5682  grep -v '^ *+' conftest.er1 >conftest.err
5683  rm -f conftest.er1
5684  cat conftest.err >&5
5685  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5686  (exit $ac_status); } && {
5687	 test -z "$ac_c_werror_flag" ||
5688	 test ! -s conftest.err
5689       } && test -s conftest.$ac_objext; then
5690  ac_header_compiler=yes
5691else
5692  echo "$as_me: failed program was:" >&5
5693sed 's/^/| /' conftest.$ac_ext >&5
5694
5695	ac_header_compiler=no
5696fi
5697
5698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5699{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5700echo "${ECHO_T}$ac_header_compiler" >&6; }
5701
5702# Is the header present?
5703{ echo "$as_me:$LINENO: checking limits.h presence" >&5
5704echo $ECHO_N "checking limits.h presence... $ECHO_C" >&6; }
5705cat >conftest.$ac_ext <<_ACEOF
5706/* confdefs.h.  */
5707_ACEOF
5708cat confdefs.h >>conftest.$ac_ext
5709cat >>conftest.$ac_ext <<_ACEOF
5710/* end confdefs.h.  */
5711#include <limits.h>
5712_ACEOF
5713if { (ac_try="$ac_cpp conftest.$ac_ext"
5714case "(($ac_try" in
5715  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5716  *) ac_try_echo=$ac_try;;
5717esac
5718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5719  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5720  ac_status=$?
5721  grep -v '^ *+' conftest.er1 >conftest.err
5722  rm -f conftest.er1
5723  cat conftest.err >&5
5724  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725  (exit $ac_status); } >/dev/null && {
5726	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5727	 test ! -s conftest.err
5728       }; then
5729  ac_header_preproc=yes
5730else
5731  echo "$as_me: failed program was:" >&5
5732sed 's/^/| /' conftest.$ac_ext >&5
5733
5734  ac_header_preproc=no
5735fi
5736
5737rm -f conftest.err conftest.$ac_ext
5738{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5739echo "${ECHO_T}$ac_header_preproc" >&6; }
5740
5741# So?  What about this header?
5742case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5743  yes:no: )
5744    { echo "$as_me:$LINENO: WARNING: limits.h: accepted by the compiler, rejected by the preprocessor!" >&5
5745echo "$as_me: WARNING: limits.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5746    { echo "$as_me:$LINENO: WARNING: limits.h: proceeding with the compiler's result" >&5
5747echo "$as_me: WARNING: limits.h: proceeding with the compiler's result" >&2;}
5748    ac_header_preproc=yes
5749    ;;
5750  no:yes:* )
5751    { echo "$as_me:$LINENO: WARNING: limits.h: present but cannot be compiled" >&5
5752echo "$as_me: WARNING: limits.h: present but cannot be compiled" >&2;}
5753    { echo "$as_me:$LINENO: WARNING: limits.h:     check for missing prerequisite headers?" >&5
5754echo "$as_me: WARNING: limits.h:     check for missing prerequisite headers?" >&2;}
5755    { echo "$as_me:$LINENO: WARNING: limits.h: see the Autoconf documentation" >&5
5756echo "$as_me: WARNING: limits.h: see the Autoconf documentation" >&2;}
5757    { echo "$as_me:$LINENO: WARNING: limits.h:     section \"Present But Cannot Be Compiled\"" >&5
5758echo "$as_me: WARNING: limits.h:     section \"Present But Cannot Be Compiled\"" >&2;}
5759    { echo "$as_me:$LINENO: WARNING: limits.h: proceeding with the preprocessor's result" >&5
5760echo "$as_me: WARNING: limits.h: proceeding with the preprocessor's result" >&2;}
5761    { echo "$as_me:$LINENO: WARNING: limits.h: in the future, the compiler will take precedence" >&5
5762echo "$as_me: WARNING: limits.h: in the future, the compiler will take precedence" >&2;}
5763
5764    ;;
5765esac
5766{ echo "$as_me:$LINENO: checking for limits.h" >&5
5767echo $ECHO_N "checking for limits.h... $ECHO_C" >&6; }
5768if test "${ac_cv_header_limits_h+set}" = set; then
5769  echo $ECHO_N "(cached) $ECHO_C" >&6
5770else
5771  ac_cv_header_limits_h=$ac_header_preproc
5772fi
5773{ echo "$as_me:$LINENO: result: $ac_cv_header_limits_h" >&5
5774echo "${ECHO_T}$ac_cv_header_limits_h" >&6; }
5775
5776fi
5777if test $ac_cv_header_limits_h = yes; then
5778
5779cat >>confdefs.h <<\_ACEOF
5780#define HAVE_LIMITS_H 1
5781_ACEOF
5782
5783else
5784
5785cat >>confdefs.h <<\_ACEOF
5786#define NO_LIMITS_H 1
5787_ACEOF
5788
5789fi
5790
5791
5792    if test "${ac_cv_header_stdlib_h+set}" = set; then
5793  { echo "$as_me:$LINENO: checking for stdlib.h" >&5
5794echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; }
5795if test "${ac_cv_header_stdlib_h+set}" = set; then
5796  echo $ECHO_N "(cached) $ECHO_C" >&6
5797fi
5798{ echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5
5799echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; }
5800else
5801  # Is the header compilable?
5802{ echo "$as_me:$LINENO: checking stdlib.h usability" >&5
5803echo $ECHO_N "checking stdlib.h usability... $ECHO_C" >&6; }
5804cat >conftest.$ac_ext <<_ACEOF
5805/* confdefs.h.  */
5806_ACEOF
5807cat confdefs.h >>conftest.$ac_ext
5808cat >>conftest.$ac_ext <<_ACEOF
5809/* end confdefs.h.  */
5810$ac_includes_default
5811#include <stdlib.h>
5812_ACEOF
5813rm -f conftest.$ac_objext
5814if { (ac_try="$ac_compile"
5815case "(($ac_try" in
5816  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5817  *) ac_try_echo=$ac_try;;
5818esac
5819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5820  (eval "$ac_compile") 2>conftest.er1
5821  ac_status=$?
5822  grep -v '^ *+' conftest.er1 >conftest.err
5823  rm -f conftest.er1
5824  cat conftest.err >&5
5825  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5826  (exit $ac_status); } && {
5827	 test -z "$ac_c_werror_flag" ||
5828	 test ! -s conftest.err
5829       } && test -s conftest.$ac_objext; then
5830  ac_header_compiler=yes
5831else
5832  echo "$as_me: failed program was:" >&5
5833sed 's/^/| /' conftest.$ac_ext >&5
5834
5835	ac_header_compiler=no
5836fi
5837
5838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5839{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5840echo "${ECHO_T}$ac_header_compiler" >&6; }
5841
5842# Is the header present?
5843{ echo "$as_me:$LINENO: checking stdlib.h presence" >&5
5844echo $ECHO_N "checking stdlib.h presence... $ECHO_C" >&6; }
5845cat >conftest.$ac_ext <<_ACEOF
5846/* confdefs.h.  */
5847_ACEOF
5848cat confdefs.h >>conftest.$ac_ext
5849cat >>conftest.$ac_ext <<_ACEOF
5850/* end confdefs.h.  */
5851#include <stdlib.h>
5852_ACEOF
5853if { (ac_try="$ac_cpp conftest.$ac_ext"
5854case "(($ac_try" in
5855  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5856  *) ac_try_echo=$ac_try;;
5857esac
5858eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5859  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5860  ac_status=$?
5861  grep -v '^ *+' conftest.er1 >conftest.err
5862  rm -f conftest.er1
5863  cat conftest.err >&5
5864  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5865  (exit $ac_status); } >/dev/null && {
5866	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5867	 test ! -s conftest.err
5868       }; then
5869  ac_header_preproc=yes
5870else
5871  echo "$as_me: failed program was:" >&5
5872sed 's/^/| /' conftest.$ac_ext >&5
5873
5874  ac_header_preproc=no
5875fi
5876
5877rm -f conftest.err conftest.$ac_ext
5878{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5879echo "${ECHO_T}$ac_header_preproc" >&6; }
5880
5881# So?  What about this header?
5882case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5883  yes:no: )
5884    { echo "$as_me:$LINENO: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
5885echo "$as_me: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5886    { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the compiler's result" >&5
5887echo "$as_me: WARNING: stdlib.h: proceeding with the compiler's result" >&2;}
5888    ac_header_preproc=yes
5889    ;;
5890  no:yes:* )
5891    { echo "$as_me:$LINENO: WARNING: stdlib.h: present but cannot be compiled" >&5
5892echo "$as_me: WARNING: stdlib.h: present but cannot be compiled" >&2;}
5893    { echo "$as_me:$LINENO: WARNING: stdlib.h:     check for missing prerequisite headers?" >&5
5894echo "$as_me: WARNING: stdlib.h:     check for missing prerequisite headers?" >&2;}
5895    { echo "$as_me:$LINENO: WARNING: stdlib.h: see the Autoconf documentation" >&5
5896echo "$as_me: WARNING: stdlib.h: see the Autoconf documentation" >&2;}
5897    { echo "$as_me:$LINENO: WARNING: stdlib.h:     section \"Present But Cannot Be Compiled\"" >&5
5898echo "$as_me: WARNING: stdlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
5899    { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the preprocessor's result" >&5
5900echo "$as_me: WARNING: stdlib.h: proceeding with the preprocessor's result" >&2;}
5901    { echo "$as_me:$LINENO: WARNING: stdlib.h: in the future, the compiler will take precedence" >&5
5902echo "$as_me: WARNING: stdlib.h: in the future, the compiler will take precedence" >&2;}
5903
5904    ;;
5905esac
5906{ echo "$as_me:$LINENO: checking for stdlib.h" >&5
5907echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; }
5908if test "${ac_cv_header_stdlib_h+set}" = set; then
5909  echo $ECHO_N "(cached) $ECHO_C" >&6
5910else
5911  ac_cv_header_stdlib_h=$ac_header_preproc
5912fi
5913{ echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5
5914echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; }
5915
5916fi
5917if test $ac_cv_header_stdlib_h = yes; then
5918  tcl_ok=1
5919else
5920  tcl_ok=0
5921fi
5922
5923
5924    cat >conftest.$ac_ext <<_ACEOF
5925/* confdefs.h.  */
5926_ACEOF
5927cat confdefs.h >>conftest.$ac_ext
5928cat >>conftest.$ac_ext <<_ACEOF
5929/* end confdefs.h.  */
5930#include <stdlib.h>
5931
5932_ACEOF
5933if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5934  $EGREP "strtol" >/dev/null 2>&1; then
5935  :
5936else
5937  tcl_ok=0
5938fi
5939rm -f -r conftest*
5940
5941    cat >conftest.$ac_ext <<_ACEOF
5942/* confdefs.h.  */
5943_ACEOF
5944cat confdefs.h >>conftest.$ac_ext
5945cat >>conftest.$ac_ext <<_ACEOF
5946/* end confdefs.h.  */
5947#include <stdlib.h>
5948
5949_ACEOF
5950if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5951  $EGREP "strtoul" >/dev/null 2>&1; then
5952  :
5953else
5954  tcl_ok=0
5955fi
5956rm -f -r conftest*
5957
5958    cat >conftest.$ac_ext <<_ACEOF
5959/* confdefs.h.  */
5960_ACEOF
5961cat confdefs.h >>conftest.$ac_ext
5962cat >>conftest.$ac_ext <<_ACEOF
5963/* end confdefs.h.  */
5964#include <stdlib.h>
5965
5966_ACEOF
5967if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5968  $EGREP "strtod" >/dev/null 2>&1; then
5969  :
5970else
5971  tcl_ok=0
5972fi
5973rm -f -r conftest*
5974
5975    if test $tcl_ok = 0; then
5976
5977cat >>confdefs.h <<\_ACEOF
5978#define NO_STDLIB_H 1
5979_ACEOF
5980
5981    fi
5982    if test "${ac_cv_header_string_h+set}" = set; then
5983  { echo "$as_me:$LINENO: checking for string.h" >&5
5984echo $ECHO_N "checking for string.h... $ECHO_C" >&6; }
5985if test "${ac_cv_header_string_h+set}" = set; then
5986  echo $ECHO_N "(cached) $ECHO_C" >&6
5987fi
5988{ echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
5989echo "${ECHO_T}$ac_cv_header_string_h" >&6; }
5990else
5991  # Is the header compilable?
5992{ echo "$as_me:$LINENO: checking string.h usability" >&5
5993echo $ECHO_N "checking string.h usability... $ECHO_C" >&6; }
5994cat >conftest.$ac_ext <<_ACEOF
5995/* confdefs.h.  */
5996_ACEOF
5997cat confdefs.h >>conftest.$ac_ext
5998cat >>conftest.$ac_ext <<_ACEOF
5999/* end confdefs.h.  */
6000$ac_includes_default
6001#include <string.h>
6002_ACEOF
6003rm -f conftest.$ac_objext
6004if { (ac_try="$ac_compile"
6005case "(($ac_try" in
6006  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6007  *) ac_try_echo=$ac_try;;
6008esac
6009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6010  (eval "$ac_compile") 2>conftest.er1
6011  ac_status=$?
6012  grep -v '^ *+' conftest.er1 >conftest.err
6013  rm -f conftest.er1
6014  cat conftest.err >&5
6015  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6016  (exit $ac_status); } && {
6017	 test -z "$ac_c_werror_flag" ||
6018	 test ! -s conftest.err
6019       } && test -s conftest.$ac_objext; then
6020  ac_header_compiler=yes
6021else
6022  echo "$as_me: failed program was:" >&5
6023sed 's/^/| /' conftest.$ac_ext >&5
6024
6025	ac_header_compiler=no
6026fi
6027
6028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6029{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6030echo "${ECHO_T}$ac_header_compiler" >&6; }
6031
6032# Is the header present?
6033{ echo "$as_me:$LINENO: checking string.h presence" >&5
6034echo $ECHO_N "checking string.h presence... $ECHO_C" >&6; }
6035cat >conftest.$ac_ext <<_ACEOF
6036/* confdefs.h.  */
6037_ACEOF
6038cat confdefs.h >>conftest.$ac_ext
6039cat >>conftest.$ac_ext <<_ACEOF
6040/* end confdefs.h.  */
6041#include <string.h>
6042_ACEOF
6043if { (ac_try="$ac_cpp conftest.$ac_ext"
6044case "(($ac_try" in
6045  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6046  *) ac_try_echo=$ac_try;;
6047esac
6048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6049  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6050  ac_status=$?
6051  grep -v '^ *+' conftest.er1 >conftest.err
6052  rm -f conftest.er1
6053  cat conftest.err >&5
6054  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6055  (exit $ac_status); } >/dev/null && {
6056	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6057	 test ! -s conftest.err
6058       }; then
6059  ac_header_preproc=yes
6060else
6061  echo "$as_me: failed program was:" >&5
6062sed 's/^/| /' conftest.$ac_ext >&5
6063
6064  ac_header_preproc=no
6065fi
6066
6067rm -f conftest.err conftest.$ac_ext
6068{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6069echo "${ECHO_T}$ac_header_preproc" >&6; }
6070
6071# So?  What about this header?
6072case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6073  yes:no: )
6074    { echo "$as_me:$LINENO: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&5
6075echo "$as_me: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6076    { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the compiler's result" >&5
6077echo "$as_me: WARNING: string.h: proceeding with the compiler's result" >&2;}
6078    ac_header_preproc=yes
6079    ;;
6080  no:yes:* )
6081    { echo "$as_me:$LINENO: WARNING: string.h: present but cannot be compiled" >&5
6082echo "$as_me: WARNING: string.h: present but cannot be compiled" >&2;}
6083    { echo "$as_me:$LINENO: WARNING: string.h:     check for missing prerequisite headers?" >&5
6084echo "$as_me: WARNING: string.h:     check for missing prerequisite headers?" >&2;}
6085    { echo "$as_me:$LINENO: WARNING: string.h: see the Autoconf documentation" >&5
6086echo "$as_me: WARNING: string.h: see the Autoconf documentation" >&2;}
6087    { echo "$as_me:$LINENO: WARNING: string.h:     section \"Present But Cannot Be Compiled\"" >&5
6088echo "$as_me: WARNING: string.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6089    { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5
6090echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;}
6091    { echo "$as_me:$LINENO: WARNING: string.h: in the future, the compiler will take precedence" >&5
6092echo "$as_me: WARNING: string.h: in the future, the compiler will take precedence" >&2;}
6093
6094    ;;
6095esac
6096{ echo "$as_me:$LINENO: checking for string.h" >&5
6097echo $ECHO_N "checking for string.h... $ECHO_C" >&6; }
6098if test "${ac_cv_header_string_h+set}" = set; then
6099  echo $ECHO_N "(cached) $ECHO_C" >&6
6100else
6101  ac_cv_header_string_h=$ac_header_preproc
6102fi
6103{ echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
6104echo "${ECHO_T}$ac_cv_header_string_h" >&6; }
6105
6106fi
6107if test $ac_cv_header_string_h = yes; then
6108  tcl_ok=1
6109else
6110  tcl_ok=0
6111fi
6112
6113
6114    cat >conftest.$ac_ext <<_ACEOF
6115/* confdefs.h.  */
6116_ACEOF
6117cat confdefs.h >>conftest.$ac_ext
6118cat >>conftest.$ac_ext <<_ACEOF
6119/* end confdefs.h.  */
6120#include <string.h>
6121
6122_ACEOF
6123if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6124  $EGREP "strstr" >/dev/null 2>&1; then
6125  :
6126else
6127  tcl_ok=0
6128fi
6129rm -f -r conftest*
6130
6131    cat >conftest.$ac_ext <<_ACEOF
6132/* confdefs.h.  */
6133_ACEOF
6134cat confdefs.h >>conftest.$ac_ext
6135cat >>conftest.$ac_ext <<_ACEOF
6136/* end confdefs.h.  */
6137#include <string.h>
6138
6139_ACEOF
6140if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6141  $EGREP "strerror" >/dev/null 2>&1; then
6142  :
6143else
6144  tcl_ok=0
6145fi
6146rm -f -r conftest*
6147
6148
6149    # See also memmove check below for a place where NO_STRING_H can be
6150    # set and why.
6151
6152    if test $tcl_ok = 0; then
6153
6154cat >>confdefs.h <<\_ACEOF
6155#define NO_STRING_H 1
6156_ACEOF
6157
6158    fi
6159
6160    if test "${ac_cv_header_sys_wait_h+set}" = set; then
6161  { echo "$as_me:$LINENO: checking for sys/wait.h" >&5
6162echo $ECHO_N "checking for sys/wait.h... $ECHO_C" >&6; }
6163if test "${ac_cv_header_sys_wait_h+set}" = set; then
6164  echo $ECHO_N "(cached) $ECHO_C" >&6
6165fi
6166{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6167echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
6168else
6169  # Is the header compilable?
6170{ echo "$as_me:$LINENO: checking sys/wait.h usability" >&5
6171echo $ECHO_N "checking sys/wait.h usability... $ECHO_C" >&6; }
6172cat >conftest.$ac_ext <<_ACEOF
6173/* confdefs.h.  */
6174_ACEOF
6175cat confdefs.h >>conftest.$ac_ext
6176cat >>conftest.$ac_ext <<_ACEOF
6177/* end confdefs.h.  */
6178$ac_includes_default
6179#include <sys/wait.h>
6180_ACEOF
6181rm -f conftest.$ac_objext
6182if { (ac_try="$ac_compile"
6183case "(($ac_try" in
6184  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6185  *) ac_try_echo=$ac_try;;
6186esac
6187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6188  (eval "$ac_compile") 2>conftest.er1
6189  ac_status=$?
6190  grep -v '^ *+' conftest.er1 >conftest.err
6191  rm -f conftest.er1
6192  cat conftest.err >&5
6193  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6194  (exit $ac_status); } && {
6195	 test -z "$ac_c_werror_flag" ||
6196	 test ! -s conftest.err
6197       } && test -s conftest.$ac_objext; then
6198  ac_header_compiler=yes
6199else
6200  echo "$as_me: failed program was:" >&5
6201sed 's/^/| /' conftest.$ac_ext >&5
6202
6203	ac_header_compiler=no
6204fi
6205
6206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6207{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6208echo "${ECHO_T}$ac_header_compiler" >&6; }
6209
6210# Is the header present?
6211{ echo "$as_me:$LINENO: checking sys/wait.h presence" >&5
6212echo $ECHO_N "checking sys/wait.h presence... $ECHO_C" >&6; }
6213cat >conftest.$ac_ext <<_ACEOF
6214/* confdefs.h.  */
6215_ACEOF
6216cat confdefs.h >>conftest.$ac_ext
6217cat >>conftest.$ac_ext <<_ACEOF
6218/* end confdefs.h.  */
6219#include <sys/wait.h>
6220_ACEOF
6221if { (ac_try="$ac_cpp conftest.$ac_ext"
6222case "(($ac_try" in
6223  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6224  *) ac_try_echo=$ac_try;;
6225esac
6226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6227  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6228  ac_status=$?
6229  grep -v '^ *+' conftest.er1 >conftest.err
6230  rm -f conftest.er1
6231  cat conftest.err >&5
6232  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6233  (exit $ac_status); } >/dev/null && {
6234	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6235	 test ! -s conftest.err
6236       }; then
6237  ac_header_preproc=yes
6238else
6239  echo "$as_me: failed program was:" >&5
6240sed 's/^/| /' conftest.$ac_ext >&5
6241
6242  ac_header_preproc=no
6243fi
6244
6245rm -f conftest.err conftest.$ac_ext
6246{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6247echo "${ECHO_T}$ac_header_preproc" >&6; }
6248
6249# So?  What about this header?
6250case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6251  yes:no: )
6252    { echo "$as_me:$LINENO: WARNING: sys/wait.h: accepted by the compiler, rejected by the preprocessor!" >&5
6253echo "$as_me: WARNING: sys/wait.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6254    { echo "$as_me:$LINENO: WARNING: sys/wait.h: proceeding with the compiler's result" >&5
6255echo "$as_me: WARNING: sys/wait.h: proceeding with the compiler's result" >&2;}
6256    ac_header_preproc=yes
6257    ;;
6258  no:yes:* )
6259    { echo "$as_me:$LINENO: WARNING: sys/wait.h: present but cannot be compiled" >&5
6260echo "$as_me: WARNING: sys/wait.h: present but cannot be compiled" >&2;}
6261    { echo "$as_me:$LINENO: WARNING: sys/wait.h:     check for missing prerequisite headers?" >&5
6262echo "$as_me: WARNING: sys/wait.h:     check for missing prerequisite headers?" >&2;}
6263    { echo "$as_me:$LINENO: WARNING: sys/wait.h: see the Autoconf documentation" >&5
6264echo "$as_me: WARNING: sys/wait.h: see the Autoconf documentation" >&2;}
6265    { echo "$as_me:$LINENO: WARNING: sys/wait.h:     section \"Present But Cannot Be Compiled\"" >&5
6266echo "$as_me: WARNING: sys/wait.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6267    { echo "$as_me:$LINENO: WARNING: sys/wait.h: proceeding with the preprocessor's result" >&5
6268echo "$as_me: WARNING: sys/wait.h: proceeding with the preprocessor's result" >&2;}
6269    { echo "$as_me:$LINENO: WARNING: sys/wait.h: in the future, the compiler will take precedence" >&5
6270echo "$as_me: WARNING: sys/wait.h: in the future, the compiler will take precedence" >&2;}
6271
6272    ;;
6273esac
6274{ echo "$as_me:$LINENO: checking for sys/wait.h" >&5
6275echo $ECHO_N "checking for sys/wait.h... $ECHO_C" >&6; }
6276if test "${ac_cv_header_sys_wait_h+set}" = set; then
6277  echo $ECHO_N "(cached) $ECHO_C" >&6
6278else
6279  ac_cv_header_sys_wait_h=$ac_header_preproc
6280fi
6281{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6282echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
6283
6284fi
6285if test $ac_cv_header_sys_wait_h = yes; then
6286  :
6287else
6288
6289cat >>confdefs.h <<\_ACEOF
6290#define NO_SYS_WAIT_H 1
6291_ACEOF
6292
6293fi
6294
6295
6296    if test "${ac_cv_header_dlfcn_h+set}" = set; then
6297  { echo "$as_me:$LINENO: checking for dlfcn.h" >&5
6298echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; }
6299if test "${ac_cv_header_dlfcn_h+set}" = set; then
6300  echo $ECHO_N "(cached) $ECHO_C" >&6
6301fi
6302{ echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
6303echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; }
6304else
6305  # Is the header compilable?
6306{ echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
6307echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6; }
6308cat >conftest.$ac_ext <<_ACEOF
6309/* confdefs.h.  */
6310_ACEOF
6311cat confdefs.h >>conftest.$ac_ext
6312cat >>conftest.$ac_ext <<_ACEOF
6313/* end confdefs.h.  */
6314$ac_includes_default
6315#include <dlfcn.h>
6316_ACEOF
6317rm -f conftest.$ac_objext
6318if { (ac_try="$ac_compile"
6319case "(($ac_try" in
6320  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6321  *) ac_try_echo=$ac_try;;
6322esac
6323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6324  (eval "$ac_compile") 2>conftest.er1
6325  ac_status=$?
6326  grep -v '^ *+' conftest.er1 >conftest.err
6327  rm -f conftest.er1
6328  cat conftest.err >&5
6329  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6330  (exit $ac_status); } && {
6331	 test -z "$ac_c_werror_flag" ||
6332	 test ! -s conftest.err
6333       } && test -s conftest.$ac_objext; then
6334  ac_header_compiler=yes
6335else
6336  echo "$as_me: failed program was:" >&5
6337sed 's/^/| /' conftest.$ac_ext >&5
6338
6339	ac_header_compiler=no
6340fi
6341
6342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6343{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6344echo "${ECHO_T}$ac_header_compiler" >&6; }
6345
6346# Is the header present?
6347{ echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
6348echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6; }
6349cat >conftest.$ac_ext <<_ACEOF
6350/* confdefs.h.  */
6351_ACEOF
6352cat confdefs.h >>conftest.$ac_ext
6353cat >>conftest.$ac_ext <<_ACEOF
6354/* end confdefs.h.  */
6355#include <dlfcn.h>
6356_ACEOF
6357if { (ac_try="$ac_cpp conftest.$ac_ext"
6358case "(($ac_try" in
6359  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6360  *) ac_try_echo=$ac_try;;
6361esac
6362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6363  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6364  ac_status=$?
6365  grep -v '^ *+' conftest.er1 >conftest.err
6366  rm -f conftest.er1
6367  cat conftest.err >&5
6368  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6369  (exit $ac_status); } >/dev/null && {
6370	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6371	 test ! -s conftest.err
6372       }; then
6373  ac_header_preproc=yes
6374else
6375  echo "$as_me: failed program was:" >&5
6376sed 's/^/| /' conftest.$ac_ext >&5
6377
6378  ac_header_preproc=no
6379fi
6380
6381rm -f conftest.err conftest.$ac_ext
6382{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6383echo "${ECHO_T}$ac_header_preproc" >&6; }
6384
6385# So?  What about this header?
6386case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6387  yes:no: )
6388    { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
6389echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6390    { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5
6391echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;}
6392    ac_header_preproc=yes
6393    ;;
6394  no:yes:* )
6395    { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
6396echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
6397    { echo "$as_me:$LINENO: WARNING: dlfcn.h:     check for missing prerequisite headers?" >&5
6398echo "$as_me: WARNING: dlfcn.h:     check for missing prerequisite headers?" >&2;}
6399    { echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5
6400echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;}
6401    { echo "$as_me:$LINENO: WARNING: dlfcn.h:     section \"Present But Cannot Be Compiled\"" >&5
6402echo "$as_me: WARNING: dlfcn.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6403    { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
6404echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
6405    { echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5
6406echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;}
6407
6408    ;;
6409esac
6410{ echo "$as_me:$LINENO: checking for dlfcn.h" >&5
6411echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; }
6412if test "${ac_cv_header_dlfcn_h+set}" = set; then
6413  echo $ECHO_N "(cached) $ECHO_C" >&6
6414else
6415  ac_cv_header_dlfcn_h=$ac_header_preproc
6416fi
6417{ echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
6418echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; }
6419
6420fi
6421if test $ac_cv_header_dlfcn_h = yes; then
6422  :
6423else
6424
6425cat >>confdefs.h <<\_ACEOF
6426#define NO_DLFCN_H 1
6427_ACEOF
6428
6429fi
6430
6431
6432
6433    # OS/390 lacks sys/param.h (and doesn't need it, by chance).
6434
6435for ac_header in sys/param.h
6436do
6437as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6438if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6439  { echo "$as_me:$LINENO: checking for $ac_header" >&5
6440echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6441if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6442  echo $ECHO_N "(cached) $ECHO_C" >&6
6443fi
6444ac_res=`eval echo '${'$as_ac_Header'}'`
6445	       { echo "$as_me:$LINENO: result: $ac_res" >&5
6446echo "${ECHO_T}$ac_res" >&6; }
6447else
6448  # Is the header compilable?
6449{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
6450echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6451cat >conftest.$ac_ext <<_ACEOF
6452/* confdefs.h.  */
6453_ACEOF
6454cat confdefs.h >>conftest.$ac_ext
6455cat >>conftest.$ac_ext <<_ACEOF
6456/* end confdefs.h.  */
6457$ac_includes_default
6458#include <$ac_header>
6459_ACEOF
6460rm -f conftest.$ac_objext
6461if { (ac_try="$ac_compile"
6462case "(($ac_try" in
6463  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6464  *) ac_try_echo=$ac_try;;
6465esac
6466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6467  (eval "$ac_compile") 2>conftest.er1
6468  ac_status=$?
6469  grep -v '^ *+' conftest.er1 >conftest.err
6470  rm -f conftest.er1
6471  cat conftest.err >&5
6472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6473  (exit $ac_status); } && {
6474	 test -z "$ac_c_werror_flag" ||
6475	 test ! -s conftest.err
6476       } && test -s conftest.$ac_objext; then
6477  ac_header_compiler=yes
6478else
6479  echo "$as_me: failed program was:" >&5
6480sed 's/^/| /' conftest.$ac_ext >&5
6481
6482	ac_header_compiler=no
6483fi
6484
6485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6486{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6487echo "${ECHO_T}$ac_header_compiler" >&6; }
6488
6489# Is the header present?
6490{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
6491echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6492cat >conftest.$ac_ext <<_ACEOF
6493/* confdefs.h.  */
6494_ACEOF
6495cat confdefs.h >>conftest.$ac_ext
6496cat >>conftest.$ac_ext <<_ACEOF
6497/* end confdefs.h.  */
6498#include <$ac_header>
6499_ACEOF
6500if { (ac_try="$ac_cpp conftest.$ac_ext"
6501case "(($ac_try" in
6502  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6503  *) ac_try_echo=$ac_try;;
6504esac
6505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6506  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6507  ac_status=$?
6508  grep -v '^ *+' conftest.er1 >conftest.err
6509  rm -f conftest.er1
6510  cat conftest.err >&5
6511  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6512  (exit $ac_status); } >/dev/null && {
6513	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6514	 test ! -s conftest.err
6515       }; then
6516  ac_header_preproc=yes
6517else
6518  echo "$as_me: failed program was:" >&5
6519sed 's/^/| /' conftest.$ac_ext >&5
6520
6521  ac_header_preproc=no
6522fi
6523
6524rm -f conftest.err conftest.$ac_ext
6525{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6526echo "${ECHO_T}$ac_header_preproc" >&6; }
6527
6528# So?  What about this header?
6529case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6530  yes:no: )
6531    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6532echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6533    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6534echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6535    ac_header_preproc=yes
6536    ;;
6537  no:yes:* )
6538    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6539echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6540    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6541echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6542    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6543echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6544    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6545echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6546    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6547echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6548    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6549echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6550
6551    ;;
6552esac
6553{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6554echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6555if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6556  echo $ECHO_N "(cached) $ECHO_C" >&6
6557else
6558  eval "$as_ac_Header=\$ac_header_preproc"
6559fi
6560ac_res=`eval echo '${'$as_ac_Header'}'`
6561	       { echo "$as_me:$LINENO: result: $ac_res" >&5
6562echo "${ECHO_T}$ac_res" >&6; }
6563
6564fi
6565if test `eval echo '${'$as_ac_Header'}'` = yes; then
6566  cat >>confdefs.h <<_ACEOF
6567#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6568_ACEOF
6569
6570fi
6571
6572done
6573
6574
6575	# Let the user call this, because if it triggers, they will
6576	# need a compat/strtod.c that is correct.  Users can also
6577	# use Tcl_GetDouble(FromObj) instead.
6578	#TEA_BUGGY_STRTOD
6579    fi
6580
6581
6582
6583    vars="vfs.c"
6584    for i in $vars; do
6585	case $i in
6586	    \$*)
6587		# allow $-var names
6588		PKG_SOURCES="$PKG_SOURCES $i"
6589		PKG_OBJECTS="$PKG_OBJECTS $i"
6590		;;
6591	    *)
6592		# check for existence - allows for generic/win/unix VPATH
6593		# To add more dirs here (like 'src'), you have to update VPATH
6594		# in Makefile.in as well
6595		if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \
6596		    -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \
6597		    -a ! -f "${srcdir}/macosx/$i" \
6598		    ; then
6599		    { { echo "$as_me:$LINENO: error: could not find source file '$i'" >&5
6600echo "$as_me: error: could not find source file '$i'" >&2;}
6601   { (exit 1); exit 1; }; }
6602		fi
6603		PKG_SOURCES="$PKG_SOURCES $i"
6604		# this assumes it is in a VPATH dir
6605		i=`basename $i`
6606		# handle user calling this before or after TEA_SETUP_COMPILER
6607		if test x"${OBJEXT}" != x ; then
6608		    j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}"
6609		else
6610		    j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}"
6611		fi
6612		PKG_OBJECTS="$PKG_OBJECTS $j"
6613		;;
6614	esac
6615    done
6616
6617
6618
6619
6620    vars=""
6621    for i in $vars; do
6622	# check for existence, be strict because it is installed
6623	if test ! -f "${srcdir}/$i" ; then
6624	    { { echo "$as_me:$LINENO: error: could not find header file '${srcdir}/$i'" >&5
6625echo "$as_me: error: could not find header file '${srcdir}/$i'" >&2;}
6626   { (exit 1); exit 1; }; }
6627	fi
6628	PKG_HEADERS="$PKG_HEADERS $i"
6629    done
6630
6631
6632
6633    vars="-I\"$(${CYGPATH} ${TCL_SRC_DIR}/generic)\""
6634    for i in $vars; do
6635	PKG_INCLUDES="$PKG_INCLUDES $i"
6636    done
6637
6638
6639
6640    vars=""
6641    for i in $vars; do
6642	if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then
6643	    # Convert foo.lib to -lfoo for GCC.  No-op if not *.lib
6644	    i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'`
6645	fi
6646	PKG_LIBS="$PKG_LIBS $i"
6647    done
6648
6649
6650
6651    PKG_CFLAGS="$PKG_CFLAGS "
6652
6653
6654
6655    vars=""
6656    for i in $vars; do
6657	# check for existence - allows for generic/win/unix VPATH
6658	if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \
6659	    -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \
6660	    -a ! -f "${srcdir}/macosx/$i" \
6661	    ; then
6662	    { { echo "$as_me:$LINENO: error: could not find stub source file '$i'" >&5
6663echo "$as_me: error: could not find stub source file '$i'" >&2;}
6664   { (exit 1); exit 1; }; }
6665	fi
6666	PKG_STUB_SOURCES="$PKG_STUB_SOURCES $i"
6667	# this assumes it is in a VPATH dir
6668	i=`basename $i`
6669	# handle user calling this before or after TEA_SETUP_COMPILER
6670	if test x"${OBJEXT}" != x ; then
6671	    j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}"
6672	else
6673	    j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}"
6674	fi
6675	PKG_STUB_OBJECTS="$PKG_STUB_OBJECTS $j"
6676    done
6677
6678
6679
6680
6681    vars=""
6682    for i in $vars; do
6683	# check for existence, be strict because it is installed
6684	if test ! -f "${srcdir}/$i" ; then
6685	    { { echo "$as_me:$LINENO: error: could not find tcl source file '${srcdir}/$i'" >&5
6686echo "$as_me: error: could not find tcl source file '${srcdir}/$i'" >&2;}
6687   { (exit 1); exit 1; }; }
6688	fi
6689	PKG_TCL_SOURCES="$PKG_TCL_SOURCES $i"
6690    done
6691
6692
6693
6694#TEA_PUBLIC_TCL_HEADERS
6695
6696    { echo "$as_me:$LINENO: checking for Tcl public headers" >&5
6697echo $ECHO_N "checking for Tcl public headers... $ECHO_C" >&6; }
6698
6699
6700# Check whether --with-tclinclude was given.
6701if test "${with_tclinclude+set}" = set; then
6702  withval=$with_tclinclude; with_tclinclude=${withval}
6703fi
6704
6705
6706    if test "${ac_cv_c_tclh+set}" = set; then
6707  echo $ECHO_N "(cached) $ECHO_C" >&6
6708else
6709
6710	# Use the value from --with-tclinclude, if it was given
6711
6712	if test x"${with_tclinclude}" != x ; then
6713	    if test -f "${with_tclinclude}/tcl.h" ; then
6714		ac_cv_c_tclh=${with_tclinclude}
6715	    else
6716		{ { echo "$as_me:$LINENO: error: ${with_tclinclude} directory does not contain tcl.h" >&5
6717echo "$as_me: error: ${with_tclinclude} directory does not contain tcl.h" >&2;}
6718   { (exit 1); exit 1; }; }
6719	    fi
6720	else
6721	    list=""
6722	    if test "`uname -s`" = "Darwin"; then
6723		# If Tcl was built as a framework, attempt to use
6724		# the framework's Headers directory
6725		case ${TCL_DEFS} in
6726		    *TCL_FRAMEWORK*)
6727			list="`ls -d ${TCL_BIN_DIR}/Headers 2>/dev/null`"
6728			;;
6729		esac
6730	    fi
6731
6732	    # Look in the source dir only if Tcl is not installed,
6733	    # and in that situation, look there before installed locations.
6734	    if test -f "${TCL_BIN_DIR}/Makefile" ; then
6735		list="$list `ls -d ${TCL_SRC_DIR}/generic 2>/dev/null`"
6736	    fi
6737
6738	    # Check order: pkg --prefix location, Tcl's --prefix location,
6739	    # relative to directory of tclConfig.sh.
6740
6741	    eval "temp_includedir=${includedir}"
6742	    list="$list \
6743		`ls -d ${temp_includedir}        2>/dev/null` \
6744		`ls -d ${TCL_PREFIX}/include     2>/dev/null` \
6745		`ls -d ${TCL_BIN_DIR}/../include 2>/dev/null`"
6746	    if test "${TEA_PLATFORM}" != "windows" -o "$GCC" = "yes"; then
6747		list="$list /usr/local/include /usr/include"
6748		if test x"${TCL_INCLUDE_SPEC}" != x ; then
6749		    d=`echo "${TCL_INCLUDE_SPEC}" | sed -e 's/^-I//'`
6750		    list="$list `ls -d ${d} 2>/dev/null`"
6751		fi
6752	    fi
6753	    for i in $list ; do
6754		if test -f "$i/tcl.h" ; then
6755		    ac_cv_c_tclh=$i
6756		    break
6757		fi
6758	    done
6759	fi
6760
6761fi
6762
6763
6764    # Print a message based on how we determined the include path
6765
6766    if test x"${ac_cv_c_tclh}" = x ; then
6767	{ { echo "$as_me:$LINENO: error: tcl.h not found.  Please specify its location with --with-tclinclude" >&5
6768echo "$as_me: error: tcl.h not found.  Please specify its location with --with-tclinclude" >&2;}
6769   { (exit 1); exit 1; }; }
6770    else
6771	{ echo "$as_me:$LINENO: result: ${ac_cv_c_tclh}" >&5
6772echo "${ECHO_T}${ac_cv_c_tclh}" >&6; }
6773    fi
6774
6775    # Convert to a native path and substitute into the output files.
6776
6777    INCLUDE_DIR_NATIVE=`${CYGPATH} ${ac_cv_c_tclh}`
6778
6779    TCL_INCLUDES=-I\"${INCLUDE_DIR_NATIVE}\"
6780
6781
6782
6783
6784    # Allow for --with-tclinclude to take effect and define ${ac_cv_c_tclh}
6785
6786    { echo "$as_me:$LINENO: checking for Tcl private include files" >&5
6787echo $ECHO_N "checking for Tcl private include files... $ECHO_C" >&6; }
6788
6789    TCL_SRC_DIR_NATIVE=`${CYGPATH} ${TCL_SRC_DIR}`
6790    TCL_TOP_DIR_NATIVE=\"${TCL_SRC_DIR_NATIVE}\"
6791
6792    # Check to see if tcl<Plat>Port.h isn't already with the public headers
6793    # Don't look for tclInt.h because that resides with tcl.h in the core
6794    # sources, but the <plat>Port headers are in a different directory
6795    if test "${TEA_PLATFORM}" = "windows" -a \
6796	-f "${ac_cv_c_tclh}/tclWinPort.h"; then
6797	result="private headers found with public headers"
6798    elif test "${TEA_PLATFORM}" = "unix" -a \
6799	-f "${ac_cv_c_tclh}/tclUnixPort.h"; then
6800	result="private headers found with public headers"
6801    else
6802	TCL_GENERIC_DIR_NATIVE=\"${TCL_SRC_DIR_NATIVE}/generic\"
6803	if test "${TEA_PLATFORM}" = "windows"; then
6804	    TCL_PLATFORM_DIR_NATIVE=\"${TCL_SRC_DIR_NATIVE}/win\"
6805	else
6806	    TCL_PLATFORM_DIR_NATIVE=\"${TCL_SRC_DIR_NATIVE}/unix\"
6807	fi
6808	# Overwrite the previous TCL_INCLUDES as this should capture both
6809	# public and private headers in the same set.
6810	# We want to ensure these are substituted so as not to require
6811	# any *_NATIVE vars be defined in the Makefile
6812	TCL_INCLUDES="-I${TCL_GENERIC_DIR_NATIVE} -I${TCL_PLATFORM_DIR_NATIVE}"
6813	if test "`uname -s`" = "Darwin"; then
6814            # If Tcl was built as a framework, attempt to use
6815            # the framework's Headers and PrivateHeaders directories
6816            case ${TCL_DEFS} in
6817	    	*TCL_FRAMEWORK*)
6818		    if test -d "${TCL_BIN_DIR}/Headers" -a \
6819			    -d "${TCL_BIN_DIR}/PrivateHeaders"; then
6820			TCL_INCLUDES="-I\"${TCL_BIN_DIR}/Headers\" -I\"${TCL_BIN_DIR}/PrivateHeaders\" ${TCL_INCLUDES}"
6821		    else
6822			TCL_INCLUDES="${TCL_INCLUDES} ${TCL_INCLUDE_SPEC} `echo "${TCL_INCLUDE_SPEC}" | sed -e 's/Headers/PrivateHeaders/'`"
6823		    fi
6824	            ;;
6825	    esac
6826	    result="Using ${TCL_INCLUDES}"
6827	else
6828	    if test ! -f "${TCL_SRC_DIR}/generic/tclInt.h" ; then
6829		{ { echo "$as_me:$LINENO: error: Cannot find private header tclInt.h in ${TCL_SRC_DIR}" >&5
6830echo "$as_me: error: Cannot find private header tclInt.h in ${TCL_SRC_DIR}" >&2;}
6831   { (exit 1); exit 1; }; }
6832	    fi
6833	    result="Using srcdir found in tclConfig.sh: ${TCL_SRC_DIR}"
6834	fi
6835    fi
6836
6837
6838
6839
6840    { echo "$as_me:$LINENO: result: ${result}" >&5
6841echo "${ECHO_T}${result}" >&6; }
6842
6843
6844#--------------------------------------------------------------------
6845# A few miscellaneous platform-specific items:
6846#
6847# Define a special symbol for Windows (BUILD_VFS in this case) so
6848# that we create the export library with the dll.  See sha1.h on how
6849# to use this.
6850#
6851# Windows creates a few extra files that need to be cleaned up.
6852# You can add more files to clean if your extension creates any extra
6853# files.
6854#
6855# Define any extra compiler flags in the PACKAGE_CFLAGS variable.
6856# These will be appended to the current set of compiler flags for
6857# your system.
6858#--------------------------------------------------------------------
6859
6860if test "${TEA_PLATFORM}" = "windows" ; then
6861    cat >>confdefs.h <<\_ACEOF
6862#define BUILD_vfs 1
6863_ACEOF
6864
6865    CLEANFILES="pkgIndex.tcl *.lib *.dll *.exp *.ilk *.pdb vc*.pch"
6866else
6867    CLEANFILES="pkgIndex.tcl"
6868fi
6869
6870
6871
6872    # Check whether --enable-threads was given.
6873if test "${enable_threads+set}" = set; then
6874  enableval=$enable_threads; tcl_ok=$enableval
6875else
6876  tcl_ok=yes
6877fi
6878
6879
6880    if test "${enable_threads+set}" = set; then
6881	enableval="$enable_threads"
6882	tcl_ok=$enableval
6883    else
6884	tcl_ok=yes
6885    fi
6886
6887    if test "$tcl_ok" = "yes" -o "${TCL_THREADS}" = 1; then
6888	TCL_THREADS=1
6889
6890	if test "${TEA_PLATFORM}" != "windows" ; then
6891	    # We are always OK on Windows, so check what this platform wants:
6892
6893	    # USE_THREAD_ALLOC tells us to try the special thread-based
6894	    # allocator that significantly reduces lock contention
6895
6896cat >>confdefs.h <<\_ACEOF
6897#define USE_THREAD_ALLOC 1
6898_ACEOF
6899
6900
6901cat >>confdefs.h <<\_ACEOF
6902#define _REENTRANT 1
6903_ACEOF
6904
6905	    if test "`uname -s`" = "SunOS" ; then
6906
6907cat >>confdefs.h <<\_ACEOF
6908#define _POSIX_PTHREAD_SEMANTICS 1
6909_ACEOF
6910
6911	    fi
6912
6913cat >>confdefs.h <<\_ACEOF
6914#define _THREAD_SAFE 1
6915_ACEOF
6916
6917	    { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
6918echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
6919if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
6920  echo $ECHO_N "(cached) $ECHO_C" >&6
6921else
6922  ac_check_lib_save_LIBS=$LIBS
6923LIBS="-lpthread  $LIBS"
6924cat >conftest.$ac_ext <<_ACEOF
6925/* confdefs.h.  */
6926_ACEOF
6927cat confdefs.h >>conftest.$ac_ext
6928cat >>conftest.$ac_ext <<_ACEOF
6929/* end confdefs.h.  */
6930
6931/* Override any GCC internal prototype to avoid an error.
6932   Use char because int might match the return type of a GCC
6933   builtin and then its argument prototype would still apply.  */
6934#ifdef __cplusplus
6935extern "C"
6936#endif
6937char pthread_mutex_init ();
6938int
6939main ()
6940{
6941return pthread_mutex_init ();
6942  ;
6943  return 0;
6944}
6945_ACEOF
6946rm -f conftest.$ac_objext conftest$ac_exeext
6947if { (ac_try="$ac_link"
6948case "(($ac_try" in
6949  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6950  *) ac_try_echo=$ac_try;;
6951esac
6952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6953  (eval "$ac_link") 2>conftest.er1
6954  ac_status=$?
6955  grep -v '^ *+' conftest.er1 >conftest.err
6956  rm -f conftest.er1
6957  cat conftest.err >&5
6958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6959  (exit $ac_status); } && {
6960	 test -z "$ac_c_werror_flag" ||
6961	 test ! -s conftest.err
6962       } && test -s conftest$ac_exeext &&
6963       $as_test_x conftest$ac_exeext; then
6964  ac_cv_lib_pthread_pthread_mutex_init=yes
6965else
6966  echo "$as_me: failed program was:" >&5
6967sed 's/^/| /' conftest.$ac_ext >&5
6968
6969	ac_cv_lib_pthread_pthread_mutex_init=no
6970fi
6971
6972rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6973      conftest$ac_exeext conftest.$ac_ext
6974LIBS=$ac_check_lib_save_LIBS
6975fi
6976{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
6977echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
6978if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
6979  tcl_ok=yes
6980else
6981  tcl_ok=no
6982fi
6983
6984	    if test "$tcl_ok" = "no"; then
6985		# Check a little harder for __pthread_mutex_init in the same
6986		# library, as some systems hide it there until pthread.h is
6987		# defined.  We could alternatively do an AC_TRY_COMPILE with
6988		# pthread.h, but that will work with libpthread really doesn't
6989		# exist, like AIX 4.2.  [Bug: 4359]
6990		{ echo "$as_me:$LINENO: checking for __pthread_mutex_init in -lpthread" >&5
6991echo $ECHO_N "checking for __pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
6992if test "${ac_cv_lib_pthread___pthread_mutex_init+set}" = set; then
6993  echo $ECHO_N "(cached) $ECHO_C" >&6
6994else
6995  ac_check_lib_save_LIBS=$LIBS
6996LIBS="-lpthread  $LIBS"
6997cat >conftest.$ac_ext <<_ACEOF
6998/* confdefs.h.  */
6999_ACEOF
7000cat confdefs.h >>conftest.$ac_ext
7001cat >>conftest.$ac_ext <<_ACEOF
7002/* end confdefs.h.  */
7003
7004/* Override any GCC internal prototype to avoid an error.
7005   Use char because int might match the return type of a GCC
7006   builtin and then its argument prototype would still apply.  */
7007#ifdef __cplusplus
7008extern "C"
7009#endif
7010char __pthread_mutex_init ();
7011int
7012main ()
7013{
7014return __pthread_mutex_init ();
7015  ;
7016  return 0;
7017}
7018_ACEOF
7019rm -f conftest.$ac_objext conftest$ac_exeext
7020if { (ac_try="$ac_link"
7021case "(($ac_try" in
7022  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7023  *) ac_try_echo=$ac_try;;
7024esac
7025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7026  (eval "$ac_link") 2>conftest.er1
7027  ac_status=$?
7028  grep -v '^ *+' conftest.er1 >conftest.err
7029  rm -f conftest.er1
7030  cat conftest.err >&5
7031  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7032  (exit $ac_status); } && {
7033	 test -z "$ac_c_werror_flag" ||
7034	 test ! -s conftest.err
7035       } && test -s conftest$ac_exeext &&
7036       $as_test_x conftest$ac_exeext; then
7037  ac_cv_lib_pthread___pthread_mutex_init=yes
7038else
7039  echo "$as_me: failed program was:" >&5
7040sed 's/^/| /' conftest.$ac_ext >&5
7041
7042	ac_cv_lib_pthread___pthread_mutex_init=no
7043fi
7044
7045rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7046      conftest$ac_exeext conftest.$ac_ext
7047LIBS=$ac_check_lib_save_LIBS
7048fi
7049{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_mutex_init" >&5
7050echo "${ECHO_T}$ac_cv_lib_pthread___pthread_mutex_init" >&6; }
7051if test $ac_cv_lib_pthread___pthread_mutex_init = yes; then
7052  tcl_ok=yes
7053else
7054  tcl_ok=no
7055fi
7056
7057	    fi
7058
7059	    if test "$tcl_ok" = "yes"; then
7060		# The space is needed
7061		THREADS_LIBS=" -lpthread"
7062	    else
7063		{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthreads" >&5
7064echo $ECHO_N "checking for pthread_mutex_init in -lpthreads... $ECHO_C" >&6; }
7065if test "${ac_cv_lib_pthreads_pthread_mutex_init+set}" = set; then
7066  echo $ECHO_N "(cached) $ECHO_C" >&6
7067else
7068  ac_check_lib_save_LIBS=$LIBS
7069LIBS="-lpthreads  $LIBS"
7070cat >conftest.$ac_ext <<_ACEOF
7071/* confdefs.h.  */
7072_ACEOF
7073cat confdefs.h >>conftest.$ac_ext
7074cat >>conftest.$ac_ext <<_ACEOF
7075/* end confdefs.h.  */
7076
7077/* Override any GCC internal prototype to avoid an error.
7078   Use char because int might match the return type of a GCC
7079   builtin and then its argument prototype would still apply.  */
7080#ifdef __cplusplus
7081extern "C"
7082#endif
7083char pthread_mutex_init ();
7084int
7085main ()
7086{
7087return pthread_mutex_init ();
7088  ;
7089  return 0;
7090}
7091_ACEOF
7092rm -f conftest.$ac_objext conftest$ac_exeext
7093if { (ac_try="$ac_link"
7094case "(($ac_try" in
7095  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7096  *) ac_try_echo=$ac_try;;
7097esac
7098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7099  (eval "$ac_link") 2>conftest.er1
7100  ac_status=$?
7101  grep -v '^ *+' conftest.er1 >conftest.err
7102  rm -f conftest.er1
7103  cat conftest.err >&5
7104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7105  (exit $ac_status); } && {
7106	 test -z "$ac_c_werror_flag" ||
7107	 test ! -s conftest.err
7108       } && test -s conftest$ac_exeext &&
7109       $as_test_x conftest$ac_exeext; then
7110  ac_cv_lib_pthreads_pthread_mutex_init=yes
7111else
7112  echo "$as_me: failed program was:" >&5
7113sed 's/^/| /' conftest.$ac_ext >&5
7114
7115	ac_cv_lib_pthreads_pthread_mutex_init=no
7116fi
7117
7118rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7119      conftest$ac_exeext conftest.$ac_ext
7120LIBS=$ac_check_lib_save_LIBS
7121fi
7122{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_mutex_init" >&5
7123echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_mutex_init" >&6; }
7124if test $ac_cv_lib_pthreads_pthread_mutex_init = yes; then
7125  tcl_ok=yes
7126else
7127  tcl_ok=no
7128fi
7129
7130		if test "$tcl_ok" = "yes"; then
7131		    # The space is needed
7132		    THREADS_LIBS=" -lpthreads"
7133		else
7134		    { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lc" >&5
7135echo $ECHO_N "checking for pthread_mutex_init in -lc... $ECHO_C" >&6; }
7136if test "${ac_cv_lib_c_pthread_mutex_init+set}" = set; then
7137  echo $ECHO_N "(cached) $ECHO_C" >&6
7138else
7139  ac_check_lib_save_LIBS=$LIBS
7140LIBS="-lc  $LIBS"
7141cat >conftest.$ac_ext <<_ACEOF
7142/* confdefs.h.  */
7143_ACEOF
7144cat confdefs.h >>conftest.$ac_ext
7145cat >>conftest.$ac_ext <<_ACEOF
7146/* end confdefs.h.  */
7147
7148/* Override any GCC internal prototype to avoid an error.
7149   Use char because int might match the return type of a GCC
7150   builtin and then its argument prototype would still apply.  */
7151#ifdef __cplusplus
7152extern "C"
7153#endif
7154char pthread_mutex_init ();
7155int
7156main ()
7157{
7158return pthread_mutex_init ();
7159  ;
7160  return 0;
7161}
7162_ACEOF
7163rm -f conftest.$ac_objext conftest$ac_exeext
7164if { (ac_try="$ac_link"
7165case "(($ac_try" in
7166  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7167  *) ac_try_echo=$ac_try;;
7168esac
7169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7170  (eval "$ac_link") 2>conftest.er1
7171  ac_status=$?
7172  grep -v '^ *+' conftest.er1 >conftest.err
7173  rm -f conftest.er1
7174  cat conftest.err >&5
7175  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7176  (exit $ac_status); } && {
7177	 test -z "$ac_c_werror_flag" ||
7178	 test ! -s conftest.err
7179       } && test -s conftest$ac_exeext &&
7180       $as_test_x conftest$ac_exeext; then
7181  ac_cv_lib_c_pthread_mutex_init=yes
7182else
7183  echo "$as_me: failed program was:" >&5
7184sed 's/^/| /' conftest.$ac_ext >&5
7185
7186	ac_cv_lib_c_pthread_mutex_init=no
7187fi
7188
7189rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7190      conftest$ac_exeext conftest.$ac_ext
7191LIBS=$ac_check_lib_save_LIBS
7192fi
7193{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_pthread_mutex_init" >&5
7194echo "${ECHO_T}$ac_cv_lib_c_pthread_mutex_init" >&6; }
7195if test $ac_cv_lib_c_pthread_mutex_init = yes; then
7196  tcl_ok=yes
7197else
7198  tcl_ok=no
7199fi
7200
7201		    if test "$tcl_ok" = "no"; then
7202			{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lc_r" >&5
7203echo $ECHO_N "checking for pthread_mutex_init in -lc_r... $ECHO_C" >&6; }
7204if test "${ac_cv_lib_c_r_pthread_mutex_init+set}" = set; then
7205  echo $ECHO_N "(cached) $ECHO_C" >&6
7206else
7207  ac_check_lib_save_LIBS=$LIBS
7208LIBS="-lc_r  $LIBS"
7209cat >conftest.$ac_ext <<_ACEOF
7210/* confdefs.h.  */
7211_ACEOF
7212cat confdefs.h >>conftest.$ac_ext
7213cat >>conftest.$ac_ext <<_ACEOF
7214/* end confdefs.h.  */
7215
7216/* Override any GCC internal prototype to avoid an error.
7217   Use char because int might match the return type of a GCC
7218   builtin and then its argument prototype would still apply.  */
7219#ifdef __cplusplus
7220extern "C"
7221#endif
7222char pthread_mutex_init ();
7223int
7224main ()
7225{
7226return pthread_mutex_init ();
7227  ;
7228  return 0;
7229}
7230_ACEOF
7231rm -f conftest.$ac_objext conftest$ac_exeext
7232if { (ac_try="$ac_link"
7233case "(($ac_try" in
7234  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7235  *) ac_try_echo=$ac_try;;
7236esac
7237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7238  (eval "$ac_link") 2>conftest.er1
7239  ac_status=$?
7240  grep -v '^ *+' conftest.er1 >conftest.err
7241  rm -f conftest.er1
7242  cat conftest.err >&5
7243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7244  (exit $ac_status); } && {
7245	 test -z "$ac_c_werror_flag" ||
7246	 test ! -s conftest.err
7247       } && test -s conftest$ac_exeext &&
7248       $as_test_x conftest$ac_exeext; then
7249  ac_cv_lib_c_r_pthread_mutex_init=yes
7250else
7251  echo "$as_me: failed program was:" >&5
7252sed 's/^/| /' conftest.$ac_ext >&5
7253
7254	ac_cv_lib_c_r_pthread_mutex_init=no
7255fi
7256
7257rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7258      conftest$ac_exeext conftest.$ac_ext
7259LIBS=$ac_check_lib_save_LIBS
7260fi
7261{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_mutex_init" >&5
7262echo "${ECHO_T}$ac_cv_lib_c_r_pthread_mutex_init" >&6; }
7263if test $ac_cv_lib_c_r_pthread_mutex_init = yes; then
7264  tcl_ok=yes
7265else
7266  tcl_ok=no
7267fi
7268
7269			if test "$tcl_ok" = "yes"; then
7270			    # The space is needed
7271			    THREADS_LIBS=" -pthread"
7272			else
7273			    TCL_THREADS=0
7274			    { echo "$as_me:$LINENO: WARNING: Do not know how to find pthread lib on your system - thread support disabled" >&5
7275echo "$as_me: WARNING: Do not know how to find pthread lib on your system - thread support disabled" >&2;}
7276			fi
7277		    fi
7278		fi
7279	    fi
7280	fi
7281    else
7282	TCL_THREADS=0
7283    fi
7284    # Do checking message here to not mess up interleaved configure output
7285    { echo "$as_me:$LINENO: checking for building with threads" >&5
7286echo $ECHO_N "checking for building with threads... $ECHO_C" >&6; }
7287    if test "${TCL_THREADS}" = 1; then
7288
7289cat >>confdefs.h <<\_ACEOF
7290#define TCL_THREADS 1
7291_ACEOF
7292
7293	{ echo "$as_me:$LINENO: result: yes (default)" >&5
7294echo "${ECHO_T}yes (default)" >&6; }
7295    else
7296	{ echo "$as_me:$LINENO: result: no" >&5
7297echo "${ECHO_T}no" >&6; }
7298    fi
7299    # TCL_THREADS sanity checking.  See if our request for building with
7300    # threads is the same as the way Tcl was built.  If not, warn the user.
7301    case ${TCL_DEFS} in
7302	*THREADS=1*)
7303	    if test "${TCL_THREADS}" = "0"; then
7304		{ echo "$as_me:$LINENO: WARNING:
7305    Building ${PACKAGE_NAME} without threads enabled, but building against Tcl
7306    that IS thread-enabled.  It is recommended to use --enable-threads." >&5
7307echo "$as_me: WARNING:
7308    Building ${PACKAGE_NAME} without threads enabled, but building against Tcl
7309    that IS thread-enabled.  It is recommended to use --enable-threads." >&2;}
7310	    fi
7311	    ;;
7312	*)
7313	    if test "${TCL_THREADS}" = "1"; then
7314		{ echo "$as_me:$LINENO: WARNING:
7315    --enable-threads requested, but building against a Tcl that is NOT
7316    thread-enabled.  This is an OK configuration that will also run in
7317    a thread-enabled core." >&5
7318echo "$as_me: WARNING:
7319    --enable-threads requested, but building against a Tcl that is NOT
7320    thread-enabled.  This is an OK configuration that will also run in
7321    a thread-enabled core." >&2;}
7322	    fi
7323	    ;;
7324    esac
7325
7326
7327
7328    { echo "$as_me:$LINENO: checking how to build libraries" >&5
7329echo $ECHO_N "checking how to build libraries... $ECHO_C" >&6; }
7330    # Check whether --enable-shared was given.
7331if test "${enable_shared+set}" = set; then
7332  enableval=$enable_shared; tcl_ok=$enableval
7333else
7334  tcl_ok=yes
7335fi
7336
7337
7338    if test "${enable_shared+set}" = set; then
7339	enableval="$enable_shared"
7340	tcl_ok=$enableval
7341    else
7342	tcl_ok=yes
7343    fi
7344
7345    if test "$tcl_ok" = "yes" ; then
7346	{ echo "$as_me:$LINENO: result: shared" >&5
7347echo "${ECHO_T}shared" >&6; }
7348	SHARED_BUILD=1
7349    else
7350	{ echo "$as_me:$LINENO: result: static" >&5
7351echo "${ECHO_T}static" >&6; }
7352	SHARED_BUILD=0
7353
7354cat >>confdefs.h <<\_ACEOF
7355#define STATIC_BUILD 1
7356_ACEOF
7357
7358    fi
7359
7360
7361
7362
7363
7364    # Step 0.a: Enable 64 bit support?
7365
7366    { echo "$as_me:$LINENO: checking if 64bit support is requested" >&5
7367echo $ECHO_N "checking if 64bit support is requested... $ECHO_C" >&6; }
7368    # Check whether --enable-64bit was given.
7369if test "${enable_64bit+set}" = set; then
7370  enableval=$enable_64bit; do64bit=$enableval
7371else
7372  do64bit=no
7373fi
7374
7375    { echo "$as_me:$LINENO: result: $do64bit" >&5
7376echo "${ECHO_T}$do64bit" >&6; }
7377
7378    # Step 0.b: Enable Solaris 64 bit VIS support?
7379
7380    { echo "$as_me:$LINENO: checking if 64bit Sparc VIS support is requested" >&5
7381echo $ECHO_N "checking if 64bit Sparc VIS support is requested... $ECHO_C" >&6; }
7382    # Check whether --enable-64bit-vis was given.
7383if test "${enable_64bit_vis+set}" = set; then
7384  enableval=$enable_64bit_vis; do64bitVIS=$enableval
7385else
7386  do64bitVIS=no
7387fi
7388
7389    { echo "$as_me:$LINENO: result: $do64bitVIS" >&5
7390echo "${ECHO_T}$do64bitVIS" >&6; }
7391    # Force 64bit on with VIS
7392    if test "$do64bitVIS" = "yes"; then
7393  do64bit=yes
7394fi
7395
7396
7397    # Step 0.c: Check if visibility support is available. Do this here so
7398    # that platform specific alternatives can be used below if this fails.
7399
7400    { echo "$as_me:$LINENO: checking if compiler supports visibility \"hidden\"" >&5
7401echo $ECHO_N "checking if compiler supports visibility \"hidden\"... $ECHO_C" >&6; }
7402if test "${tcl_cv_cc_visibility_hidden+set}" = set; then
7403  echo $ECHO_N "(cached) $ECHO_C" >&6
7404else
7405
7406	hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -Werror"
7407	cat >conftest.$ac_ext <<_ACEOF
7408/* confdefs.h.  */
7409_ACEOF
7410cat confdefs.h >>conftest.$ac_ext
7411cat >>conftest.$ac_ext <<_ACEOF
7412/* end confdefs.h.  */
7413
7414	    extern __attribute__((__visibility__("hidden"))) void f(void);
7415	    void f(void) {}
7416int
7417main ()
7418{
7419f();
7420  ;
7421  return 0;
7422}
7423_ACEOF
7424rm -f conftest.$ac_objext conftest$ac_exeext
7425if { (ac_try="$ac_link"
7426case "(($ac_try" in
7427  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7428  *) ac_try_echo=$ac_try;;
7429esac
7430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7431  (eval "$ac_link") 2>conftest.er1
7432  ac_status=$?
7433  grep -v '^ *+' conftest.er1 >conftest.err
7434  rm -f conftest.er1
7435  cat conftest.err >&5
7436  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7437  (exit $ac_status); } && {
7438	 test -z "$ac_c_werror_flag" ||
7439	 test ! -s conftest.err
7440       } && test -s conftest$ac_exeext &&
7441       $as_test_x conftest$ac_exeext; then
7442  tcl_cv_cc_visibility_hidden=yes
7443else
7444  echo "$as_me: failed program was:" >&5
7445sed 's/^/| /' conftest.$ac_ext >&5
7446
7447	tcl_cv_cc_visibility_hidden=no
7448fi
7449
7450rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7451      conftest$ac_exeext conftest.$ac_ext
7452	CFLAGS=$hold_cflags
7453fi
7454{ echo "$as_me:$LINENO: result: $tcl_cv_cc_visibility_hidden" >&5
7455echo "${ECHO_T}$tcl_cv_cc_visibility_hidden" >&6; }
7456    if test $tcl_cv_cc_visibility_hidden = yes; then
7457
7458
7459cat >>confdefs.h <<\_ACEOF
7460#define MODULE_SCOPE extern __attribute__((__visibility__("hidden")))
7461_ACEOF
7462
7463
7464fi
7465
7466
7467    # Step 0.d: Disable -rpath support?
7468
7469    { echo "$as_me:$LINENO: checking if rpath support is requested" >&5
7470echo $ECHO_N "checking if rpath support is requested... $ECHO_C" >&6; }
7471    # Check whether --enable-rpath was given.
7472if test "${enable_rpath+set}" = set; then
7473  enableval=$enable_rpath; doRpath=$enableval
7474else
7475  doRpath=yes
7476fi
7477
7478    { echo "$as_me:$LINENO: result: $doRpath" >&5
7479echo "${ECHO_T}$doRpath" >&6; }
7480
7481    # TEA specific: Cross-compiling options for Windows/CE builds?
7482
7483    if test "${TEA_PLATFORM}" = windows; then
7484
7485	{ echo "$as_me:$LINENO: checking if Windows/CE build is requested" >&5
7486echo $ECHO_N "checking if Windows/CE build is requested... $ECHO_C" >&6; }
7487	# Check whether --enable-wince was given.
7488if test "${enable_wince+set}" = set; then
7489  enableval=$enable_wince; doWince=$enableval
7490else
7491  doWince=no
7492fi
7493
7494	{ echo "$as_me:$LINENO: result: $doWince" >&5
7495echo "${ECHO_T}$doWince" >&6; }
7496
7497fi
7498
7499
7500    # Set the variable "system" to hold the name and version number
7501    # for the system.
7502
7503
7504    { echo "$as_me:$LINENO: checking system version" >&5
7505echo $ECHO_N "checking system version... $ECHO_C" >&6; }
7506if test "${tcl_cv_sys_version+set}" = set; then
7507  echo $ECHO_N "(cached) $ECHO_C" >&6
7508else
7509
7510	# TEA specific:
7511	if test "${TEA_PLATFORM}" = "windows" ; then
7512	    tcl_cv_sys_version=windows
7513	else
7514	    tcl_cv_sys_version=`uname -s`-`uname -r`
7515	    if test "$?" -ne 0 ; then
7516		{ echo "$as_me:$LINENO: WARNING: can't find uname command" >&5
7517echo "$as_me: WARNING: can't find uname command" >&2;}
7518		tcl_cv_sys_version=unknown
7519	    else
7520		if test "`uname -s`" = "AIX" ; then
7521		    tcl_cv_sys_version=AIX-`uname -v`.`uname -r`
7522		fi
7523	    fi
7524	fi
7525
7526fi
7527{ echo "$as_me:$LINENO: result: $tcl_cv_sys_version" >&5
7528echo "${ECHO_T}$tcl_cv_sys_version" >&6; }
7529    system=$tcl_cv_sys_version
7530
7531
7532    # Require ranlib early so we can override it in special cases below.
7533
7534
7535
7536    # Set configuration options based on system name and version.
7537    # This is similar to Tcl's unix/tcl.m4 except that we've added a
7538    # "windows" case and removed some core-only vars.
7539
7540    do64bit_ok=no
7541    # default to '{$LIBS}' and set to "" on per-platform necessary basis
7542    SHLIB_LD_LIBS='${LIBS}'
7543    # When ld needs options to work in 64-bit mode, put them in
7544    # LDFLAGS_ARCH so they eventually end up in LDFLAGS even if [load]
7545    # is disabled by the user. [Bug 1016796]
7546    LDFLAGS_ARCH=""
7547    UNSHARED_LIB_SUFFIX=""
7548    # TEA specific: use PACKAGE_VERSION instead of VERSION
7549    TCL_TRIM_DOTS='`echo ${PACKAGE_VERSION} | tr -d .`'
7550    ECHO_VERSION='`echo ${PACKAGE_VERSION}`'
7551    TCL_LIB_VERSIONS_OK=ok
7552    CFLAGS_DEBUG=-g
7553    CFLAGS_OPTIMIZE=-O
7554    if test "$GCC" = yes; then
7555
7556	# TEA specific:
7557	CFLAGS_OPTIMIZE=-O2
7558	CFLAGS_WARNING="-Wall"
7559
7560else
7561  CFLAGS_WARNING=""
7562fi
7563
7564    # Extract the first word of "ar", so it can be a program name with args.
7565set dummy ar; ac_word=$2
7566{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7567echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7568if test "${ac_cv_prog_AR+set}" = set; then
7569  echo $ECHO_N "(cached) $ECHO_C" >&6
7570else
7571  if test -n "$AR"; then
7572  ac_cv_prog_AR="$AR" # Let the user override the test.
7573else
7574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7575for as_dir in $PATH
7576do
7577  IFS=$as_save_IFS
7578  test -z "$as_dir" && as_dir=.
7579  for ac_exec_ext in '' $ac_executable_extensions; do
7580  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7581    ac_cv_prog_AR="ar"
7582    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7583    break 2
7584  fi
7585done
7586done
7587IFS=$as_save_IFS
7588
7589fi
7590fi
7591AR=$ac_cv_prog_AR
7592if test -n "$AR"; then
7593  { echo "$as_me:$LINENO: result: $AR" >&5
7594echo "${ECHO_T}$AR" >&6; }
7595else
7596  { echo "$as_me:$LINENO: result: no" >&5
7597echo "${ECHO_T}no" >&6; }
7598fi
7599
7600
7601    STLIB_LD='${AR} cr'
7602    LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH"
7603    if test "x$SHLIB_VERSION" = x; then
7604  SHLIB_VERSION="1.0"
7605fi
7606
7607    case $system in
7608	# TEA specific:
7609	windows)
7610	    # This is a 2-stage check to make sure we have the 64-bit SDK
7611	    # We have to know where the SDK is installed.
7612	    # This magic is based on MS Platform SDK for Win2003 SP1 - hobbs
7613	    # MACHINE is IX86 for LINK, but this is used by the manifest,
7614	    # which requires x86|amd64|ia64.
7615	    MACHINE="X86"
7616	    if test "$do64bit" != "no" ; then
7617		if test "x${MSSDK}x" = "xx" ; then
7618		    MSSDK="C:/Progra~1/Microsoft Platform SDK"
7619		fi
7620		MSSDK=`echo "$MSSDK" | sed -e  's!\\\!/!g'`
7621		PATH64=""
7622		case "$do64bit" in
7623		    amd64|x64|yes)
7624			MACHINE="AMD64" ; # default to AMD64 64-bit build
7625			PATH64="${MSSDK}/Bin/Win64/x86/AMD64"
7626			;;
7627		    ia64)
7628			MACHINE="IA64"
7629			PATH64="${MSSDK}/Bin/Win64"
7630			;;
7631		esac
7632		if test ! -d "${PATH64}" ; then
7633		    { echo "$as_me:$LINENO: WARNING: Could not find 64-bit $MACHINE SDK to enable 64bit mode" >&5
7634echo "$as_me: WARNING: Could not find 64-bit $MACHINE SDK to enable 64bit mode" >&2;}
7635		    { echo "$as_me:$LINENO: WARNING: Ensure latest Platform SDK is installed" >&5
7636echo "$as_me: WARNING: Ensure latest Platform SDK is installed" >&2;}
7637		    do64bit="no"
7638		else
7639		    { echo "$as_me:$LINENO: result:    Using 64-bit $MACHINE mode" >&5
7640echo "${ECHO_T}   Using 64-bit $MACHINE mode" >&6; }
7641		    do64bit_ok="yes"
7642		fi
7643	    fi
7644
7645	    if test "$doWince" != "no" ; then
7646		if test "$do64bit" != "no" ; then
7647		    { { echo "$as_me:$LINENO: error: Windows/CE and 64-bit builds incompatible" >&5
7648echo "$as_me: error: Windows/CE and 64-bit builds incompatible" >&2;}
7649   { (exit 1); exit 1; }; }
7650		fi
7651		if test "$GCC" = "yes" ; then
7652		    { { echo "$as_me:$LINENO: error: Windows/CE and GCC builds incompatible" >&5
7653echo "$as_me: error: Windows/CE and GCC builds incompatible" >&2;}
7654   { (exit 1); exit 1; }; }
7655		fi
7656
7657    # First, look for one uninstalled.
7658    # the alternative search directory is invoked by --with-celib
7659
7660    if test x"${no_celib}" = x ; then
7661	# we reset no_celib in case something fails here
7662	no_celib=true
7663
7664# Check whether --with-celib was given.
7665if test "${with_celib+set}" = set; then
7666  withval=$with_celib; with_celibconfig=${withval}
7667fi
7668
7669	{ echo "$as_me:$LINENO: checking for Windows/CE celib directory" >&5
7670echo $ECHO_N "checking for Windows/CE celib directory... $ECHO_C" >&6; }
7671	if test "${ac_cv_c_celibconfig+set}" = set; then
7672  echo $ECHO_N "(cached) $ECHO_C" >&6
7673else
7674
7675	    # First check to see if --with-celibconfig was specified.
7676	    if test x"${with_celibconfig}" != x ; then
7677		if test -d "${with_celibconfig}/inc" ; then
7678		    ac_cv_c_celibconfig=`(cd ${with_celibconfig}; pwd)`
7679		else
7680		    { { echo "$as_me:$LINENO: error: ${with_celibconfig} directory doesn't contain inc directory" >&5
7681echo "$as_me: error: ${with_celibconfig} directory doesn't contain inc directory" >&2;}
7682   { (exit 1); exit 1; }; }
7683		fi
7684	    fi
7685
7686	    # then check for a celib library
7687	    if test x"${ac_cv_c_celibconfig}" = x ; then
7688		for i in \
7689			../celib-palm-3.0 \
7690			../celib \
7691			../../celib-palm-3.0 \
7692			../../celib \
7693			`ls -dr ../celib-*3.[0-9]* 2>/dev/null` \
7694			${srcdir}/../celib-palm-3.0 \
7695			${srcdir}/../celib \
7696			`ls -dr ${srcdir}/../celib-*3.[0-9]* 2>/dev/null` \
7697			; do
7698		    if test -d "$i/inc" ; then
7699			ac_cv_c_celibconfig=`(cd $i; pwd)`
7700			break
7701		    fi
7702		done
7703	    fi
7704
7705fi
7706
7707	if test x"${ac_cv_c_celibconfig}" = x ; then
7708	    { { echo "$as_me:$LINENO: error: Cannot find celib support library directory" >&5
7709echo "$as_me: error: Cannot find celib support library directory" >&2;}
7710   { (exit 1); exit 1; }; }
7711	else
7712	    no_celib=
7713	    CELIB_DIR=${ac_cv_c_celibconfig}
7714	    CELIB_DIR=`echo "$CELIB_DIR" | sed -e 's!\\\!/!g'`
7715	    { echo "$as_me:$LINENO: result: found $CELIB_DIR" >&5
7716echo "${ECHO_T}found $CELIB_DIR" >&6; }
7717	fi
7718    fi
7719
7720		# Set defaults for common evc4/PPC2003 setup
7721		# Currently Tcl requires 300+, possibly 420+ for sockets
7722		CEVERSION=420; 		# could be 211 300 301 400 420 ...
7723		TARGETCPU=ARMV4;	# could be ARMV4 ARM MIPS SH3 X86 ...
7724		ARCH=ARM;		# could be ARM MIPS X86EM ...
7725		PLATFORM="Pocket PC 2003"; # or "Pocket PC 2002"
7726		if test "$doWince" != "yes"; then
7727		    # If !yes then the user specified something
7728		    # Reset ARCH to allow user to skip specifying it
7729		    ARCH=
7730		    eval `echo $doWince | awk -F, '{ \
7731	    if (length($1)) { printf "CEVERSION=\"%s\"\n", $1; \
7732	    if ($1 < 400)   { printf "PLATFORM=\"Pocket PC 2002\"\n" } }; \
7733	    if (length($2)) { printf "TARGETCPU=\"%s\"\n", toupper($2) }; \
7734	    if (length($3)) { printf "ARCH=\"%s\"\n", toupper($3) }; \
7735	    if (length($4)) { printf "PLATFORM=\"%s\"\n", $4 }; \
7736		    }'`
7737		    if test "x${ARCH}" = "x" ; then
7738			ARCH=$TARGETCPU;
7739		    fi
7740		fi
7741		OSVERSION=WCE$CEVERSION;
7742	    	if test "x${WCEROOT}" = "x" ; then
7743			WCEROOT="C:/Program Files/Microsoft eMbedded C++ 4.0"
7744		    if test ! -d "${WCEROOT}" ; then
7745			WCEROOT="C:/Program Files/Microsoft eMbedded Tools"
7746		    fi
7747		fi
7748		if test "x${SDKROOT}" = "x" ; then
7749		    SDKROOT="C:/Program Files/Windows CE Tools"
7750		    if test ! -d "${SDKROOT}" ; then
7751			SDKROOT="C:/Windows CE Tools"
7752		    fi
7753		fi
7754		WCEROOT=`echo "$WCEROOT" | sed -e 's!\\\!/!g'`
7755		SDKROOT=`echo "$SDKROOT" | sed -e 's!\\\!/!g'`
7756		if test ! -d "${SDKROOT}/${OSVERSION}/${PLATFORM}/Lib/${TARGETCPU}" \
7757		    -o ! -d "${WCEROOT}/EVC/${OSVERSION}/bin"; then
7758		    { { echo "$as_me:$LINENO: error: could not find PocketPC SDK or target compiler to enable WinCE mode $CEVERSION,$TARGETCPU,$ARCH,$PLATFORM" >&5
7759echo "$as_me: error: could not find PocketPC SDK or target compiler to enable WinCE mode $CEVERSION,$TARGETCPU,$ARCH,$PLATFORM" >&2;}
7760   { (exit 1); exit 1; }; }
7761		    doWince="no"
7762		else
7763		    # We could PATH_NOSPACE these, but that's not important,
7764		    # as long as we quote them when used.
7765		    CEINCLUDE="${SDKROOT}/${OSVERSION}/${PLATFORM}/include"
7766		    if test -d "${CEINCLUDE}/${TARGETCPU}" ; then
7767			CEINCLUDE="${CEINCLUDE}/${TARGETCPU}"
7768		    fi
7769		    CELIBPATH="${SDKROOT}/${OSVERSION}/${PLATFORM}/Lib/${TARGETCPU}"
7770    		fi
7771	    fi
7772
7773	    if test "$GCC" != "yes" ; then
7774	        if test "${SHARED_BUILD}" = "0" ; then
7775		    runtime=-MT
7776	        else
7777		    runtime=-MD
7778	        fi
7779
7780                if test "$do64bit" != "no" ; then
7781		    # All this magic is necessary for the Win64 SDK RC1 - hobbs
7782		    CC="\"${PATH64}/cl.exe\""
7783		    CFLAGS="${CFLAGS} -I\"${MSSDK}/Include\" -I\"${MSSDK}/Include/crt\" -I\"${MSSDK}/Include/crt/sys\""
7784		    RC="\"${MSSDK}/bin/rc.exe\""
7785		    lflags="-nologo -MACHINE:${MACHINE} -LIBPATH:\"${MSSDK}/Lib/${MACHINE}\""
7786		    LINKBIN="\"${PATH64}/link.exe\""
7787		    CFLAGS_DEBUG="-nologo -Zi -Od -W3 ${runtime}d"
7788		    CFLAGS_OPTIMIZE="-nologo -O2 -W2 ${runtime}"
7789		    # Avoid 'unresolved external symbol __security_cookie'
7790		    # errors, c.f. http://support.microsoft.com/?id=894573
7791
7792    vars="bufferoverflowU.lib"
7793    for i in $vars; do
7794	if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then
7795	    # Convert foo.lib to -lfoo for GCC.  No-op if not *.lib
7796	    i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'`
7797	fi
7798	PKG_LIBS="$PKG_LIBS $i"
7799    done
7800
7801
7802		elif test "$doWince" != "no" ; then
7803		    CEBINROOT="${WCEROOT}/EVC/${OSVERSION}/bin"
7804		    if test "${TARGETCPU}" = "X86"; then
7805			CC="\"${CEBINROOT}/cl.exe\""
7806		    else
7807			CC="\"${CEBINROOT}/cl${ARCH}.exe\""
7808		    fi
7809		    CFLAGS="$CFLAGS -I\"${CELIB_DIR}/inc\" -I\"${CEINCLUDE}\""
7810		    RC="\"${WCEROOT}/Common/EVC/bin/rc.exe\""
7811		    arch=`echo ${ARCH} | awk '{print tolower($0)}'`
7812		    defs="${ARCH} _${ARCH}_ ${arch} PALM_SIZE _MT _WINDOWS"
7813		    if test "${SHARED_BUILD}" = "1" ; then
7814			# Static CE builds require static celib as well
7815		    	defs="${defs} _DLL"
7816		    fi
7817		    for i in $defs ; do
7818
7819cat >>confdefs.h <<_ACEOF
7820#define $i 1
7821_ACEOF
7822
7823		    done
7824
7825cat >>confdefs.h <<_ACEOF
7826#define _WIN32_WCE $CEVERSION
7827_ACEOF
7828
7829
7830cat >>confdefs.h <<_ACEOF
7831#define UNDER_CE $CEVERSION
7832_ACEOF
7833
7834		    CFLAGS_DEBUG="-nologo -Zi -Od"
7835		    CFLAGS_OPTIMIZE="-nologo -Ox"
7836		    lversion=`echo ${CEVERSION} | sed -e 's/\(.\)\(..\)/\1\.\2/'`
7837		    lflags="-MACHINE:${ARCH} -LIBPATH:\"${CELIBPATH}\" -subsystem:windowsce,${lversion} -nologo"
7838		    LINKBIN="\"${CEBINROOT}/link.exe\""
7839
7840		else
7841		    RC="rc"
7842		    lflags="-nologo"
7843    		    LINKBIN="link"
7844		    CFLAGS_DEBUG="-nologo -Z7 -Od -W3 -WX ${runtime}d"
7845		    CFLAGS_OPTIMIZE="-nologo -O2 -W2 ${runtime}"
7846		fi
7847	    fi
7848
7849	    if test "$GCC" = "yes"; then
7850		# mingw gcc mode
7851		RC="windres"
7852		CFLAGS_DEBUG="-g"
7853		CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer"
7854		SHLIB_LD="$CC -shared"
7855		UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
7856		LDFLAGS_CONSOLE="-wl,--subsystem,console ${lflags}"
7857		LDFLAGS_WINDOW="-wl,--subsystem,windows ${lflags}"
7858	    else
7859		SHLIB_LD="${LINKBIN} -dll ${lflags}"
7860		# link -lib only works when -lib is the first arg
7861		STLIB_LD="${LINKBIN} -lib ${lflags}"
7862		UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.lib'
7863		PATHTYPE=-w
7864		# For information on what debugtype is most useful, see:
7865		# http://msdn.microsoft.com/library/en-us/dnvc60/html/gendepdebug.asp
7866		# and also
7867		# http://msdn2.microsoft.com/en-us/library/y0zzbyt4%28VS.80%29.aspx
7868		# This essentially turns it all on.
7869		LDFLAGS_DEBUG="-debug -debugtype:cv"
7870		LDFLAGS_OPTIMIZE="-release"
7871		if test "$doWince" != "no" ; then
7872		    LDFLAGS_CONSOLE="-link ${lflags}"
7873		    LDFLAGS_WINDOW=${LDFLAGS_CONSOLE}
7874		else
7875		    LDFLAGS_CONSOLE="-link -subsystem:console ${lflags}"
7876		    LDFLAGS_WINDOW="-link -subsystem:windows ${lflags}"
7877		fi
7878	    fi
7879
7880	    SHLIB_SUFFIX=".dll"
7881	    SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.dll'
7882
7883	    TCL_LIB_VERSIONS_OK=nodots
7884    	    ;;
7885	AIX-*)
7886	    if test "${TCL_THREADS}" = "1" -a "$GCC" != "yes"; then
7887
7888		# AIX requires the _r compiler when gcc isn't being used
7889		case "${CC}" in
7890		    *_r|*_r\ *)
7891			# ok ...
7892			;;
7893		    *)
7894			# Make sure only first arg gets _r
7895		    	CC=`echo "$CC" | sed -e 's/^\([^ ]*\)/\1_r/'`
7896			;;
7897		esac
7898		{ echo "$as_me:$LINENO: result: Using $CC for compiling with threads" >&5
7899echo "${ECHO_T}Using $CC for compiling with threads" >&6; }
7900
7901fi
7902
7903	    LIBS="$LIBS -lc"
7904	    SHLIB_CFLAGS=""
7905	    SHLIB_SUFFIX=".so"
7906
7907	    LD_LIBRARY_PATH_VAR="LIBPATH"
7908
7909	    # Check to enable 64-bit flags for compiler/linker
7910	    if test "$do64bit" = yes; then
7911
7912		if test "$GCC" = yes; then
7913
7914		    { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5
7915echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;}
7916
7917else
7918
7919		    do64bit_ok=yes
7920		    CFLAGS="$CFLAGS -q64"
7921		    LDFLAGS_ARCH="-q64"
7922		    RANLIB="${RANLIB} -X64"
7923		    AR="${AR} -X64"
7924		    SHLIB_LD_FLAGS="-b64"
7925
7926fi
7927
7928
7929fi
7930
7931
7932	    if test "`uname -m`" = ia64; then
7933
7934		# AIX-5 uses ELF style dynamic libraries on IA-64, but not PPC
7935		SHLIB_LD="/usr/ccs/bin/ld -G -z text"
7936		if test "$GCC" = yes; then
7937
7938		    CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
7939
7940else
7941
7942		    CC_SEARCH_FLAGS='-R${LIB_RUNTIME_DIR}'
7943
7944fi
7945
7946		LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
7947
7948else
7949
7950		if test "$GCC" = yes; then
7951
7952		    SHLIB_LD='${CC} -shared -Wl,-bexpall'
7953
7954else
7955
7956		    SHLIB_LD="/bin/ld -bhalt:4 -bM:SRE -bexpall -H512 -T512 -bnoentry"
7957		    LDFLAGS="$LDFLAGS -brtl"
7958
7959fi
7960
7961		SHLIB_LD="${SHLIB_LD} ${SHLIB_LD_FLAGS}"
7962		CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
7963		LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
7964
7965fi
7966
7967	    ;;
7968	BeOS*)
7969	    SHLIB_CFLAGS="-fPIC"
7970	    SHLIB_LD='${CC} -nostart'
7971	    SHLIB_SUFFIX=".so"
7972
7973	    #-----------------------------------------------------------
7974	    # Check for inet_ntoa in -lbind, for BeOS (which also needs
7975	    # -lsocket, even if the network functions are in -lnet which
7976	    # is always linked to, for compatibility.
7977	    #-----------------------------------------------------------
7978	    { echo "$as_me:$LINENO: checking for inet_ntoa in -lbind" >&5
7979echo $ECHO_N "checking for inet_ntoa in -lbind... $ECHO_C" >&6; }
7980if test "${ac_cv_lib_bind_inet_ntoa+set}" = set; then
7981  echo $ECHO_N "(cached) $ECHO_C" >&6
7982else
7983  ac_check_lib_save_LIBS=$LIBS
7984LIBS="-lbind  $LIBS"
7985cat >conftest.$ac_ext <<_ACEOF
7986/* confdefs.h.  */
7987_ACEOF
7988cat confdefs.h >>conftest.$ac_ext
7989cat >>conftest.$ac_ext <<_ACEOF
7990/* end confdefs.h.  */
7991
7992/* Override any GCC internal prototype to avoid an error.
7993   Use char because int might match the return type of a GCC
7994   builtin and then its argument prototype would still apply.  */
7995#ifdef __cplusplus
7996extern "C"
7997#endif
7998char inet_ntoa ();
7999int
8000main ()
8001{
8002return inet_ntoa ();
8003  ;
8004  return 0;
8005}
8006_ACEOF
8007rm -f conftest.$ac_objext conftest$ac_exeext
8008if { (ac_try="$ac_link"
8009case "(($ac_try" in
8010  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8011  *) ac_try_echo=$ac_try;;
8012esac
8013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8014  (eval "$ac_link") 2>conftest.er1
8015  ac_status=$?
8016  grep -v '^ *+' conftest.er1 >conftest.err
8017  rm -f conftest.er1
8018  cat conftest.err >&5
8019  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8020  (exit $ac_status); } && {
8021	 test -z "$ac_c_werror_flag" ||
8022	 test ! -s conftest.err
8023       } && test -s conftest$ac_exeext &&
8024       $as_test_x conftest$ac_exeext; then
8025  ac_cv_lib_bind_inet_ntoa=yes
8026else
8027  echo "$as_me: failed program was:" >&5
8028sed 's/^/| /' conftest.$ac_ext >&5
8029
8030	ac_cv_lib_bind_inet_ntoa=no
8031fi
8032
8033rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8034      conftest$ac_exeext conftest.$ac_ext
8035LIBS=$ac_check_lib_save_LIBS
8036fi
8037{ echo "$as_me:$LINENO: result: $ac_cv_lib_bind_inet_ntoa" >&5
8038echo "${ECHO_T}$ac_cv_lib_bind_inet_ntoa" >&6; }
8039if test $ac_cv_lib_bind_inet_ntoa = yes; then
8040  LIBS="$LIBS -lbind -lsocket"
8041fi
8042
8043	    ;;
8044	BSD/OS-4.*)
8045	    SHLIB_CFLAGS="-export-dynamic -fPIC"
8046	    SHLIB_LD='${CC} -shared'
8047	    SHLIB_SUFFIX=".so"
8048	    LDFLAGS="$LDFLAGS -export-dynamic"
8049	    CC_SEARCH_FLAGS=""
8050	    LD_SEARCH_FLAGS=""
8051	    ;;
8052	CYGWIN_*)
8053	    SHLIB_CFLAGS=""
8054	    SHLIB_LD='${CC} -shared'
8055	    SHLIB_SUFFIX=".dll"
8056	    EXE_SUFFIX=".exe"
8057	    CC_SEARCH_FLAGS=""
8058	    LD_SEARCH_FLAGS=""
8059	    ;;
8060	Haiku*)
8061	    LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
8062	    SHLIB_CFLAGS="-fPIC"
8063	    SHLIB_SUFFIX=".so"
8064	    SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS}'
8065	    { echo "$as_me:$LINENO: checking for inet_ntoa in -lnetwork" >&5
8066echo $ECHO_N "checking for inet_ntoa in -lnetwork... $ECHO_C" >&6; }
8067if test "${ac_cv_lib_network_inet_ntoa+set}" = set; then
8068  echo $ECHO_N "(cached) $ECHO_C" >&6
8069else
8070  ac_check_lib_save_LIBS=$LIBS
8071LIBS="-lnetwork  $LIBS"
8072cat >conftest.$ac_ext <<_ACEOF
8073/* confdefs.h.  */
8074_ACEOF
8075cat confdefs.h >>conftest.$ac_ext
8076cat >>conftest.$ac_ext <<_ACEOF
8077/* end confdefs.h.  */
8078
8079/* Override any GCC internal prototype to avoid an error.
8080   Use char because int might match the return type of a GCC
8081   builtin and then its argument prototype would still apply.  */
8082#ifdef __cplusplus
8083extern "C"
8084#endif
8085char inet_ntoa ();
8086int
8087main ()
8088{
8089return inet_ntoa ();
8090  ;
8091  return 0;
8092}
8093_ACEOF
8094rm -f conftest.$ac_objext conftest$ac_exeext
8095if { (ac_try="$ac_link"
8096case "(($ac_try" in
8097  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8098  *) ac_try_echo=$ac_try;;
8099esac
8100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8101  (eval "$ac_link") 2>conftest.er1
8102  ac_status=$?
8103  grep -v '^ *+' conftest.er1 >conftest.err
8104  rm -f conftest.er1
8105  cat conftest.err >&5
8106  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8107  (exit $ac_status); } && {
8108	 test -z "$ac_c_werror_flag" ||
8109	 test ! -s conftest.err
8110       } && test -s conftest$ac_exeext &&
8111       $as_test_x conftest$ac_exeext; then
8112  ac_cv_lib_network_inet_ntoa=yes
8113else
8114  echo "$as_me: failed program was:" >&5
8115sed 's/^/| /' conftest.$ac_ext >&5
8116
8117	ac_cv_lib_network_inet_ntoa=no
8118fi
8119
8120rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8121      conftest$ac_exeext conftest.$ac_ext
8122LIBS=$ac_check_lib_save_LIBS
8123fi
8124{ echo "$as_me:$LINENO: result: $ac_cv_lib_network_inet_ntoa" >&5
8125echo "${ECHO_T}$ac_cv_lib_network_inet_ntoa" >&6; }
8126if test $ac_cv_lib_network_inet_ntoa = yes; then
8127  LIBS="$LIBS -lnetwork"
8128fi
8129
8130	    ;;
8131	HP-UX-*.11.*)
8132	    # Use updated header definitions where possible
8133
8134cat >>confdefs.h <<\_ACEOF
8135#define _XOPEN_SOURCE_EXTENDED 1
8136_ACEOF
8137
8138	    # TEA specific: Needed by Tcl, but not most extensions
8139	    #AC_DEFINE(_XOPEN_SOURCE, 1, [Do we want to use the XOPEN network library?])
8140	    #LIBS="$LIBS -lxnet"               # Use the XOPEN network library
8141
8142	    if test "`uname -m`" = ia64; then
8143
8144		SHLIB_SUFFIX=".so"
8145		# Use newer C++ library for C++ extensions
8146		#if test "$GCC" != "yes" ; then
8147		#   CPPFLAGS="-AA"
8148		#fi
8149
8150else
8151
8152		SHLIB_SUFFIX=".sl"
8153
8154fi
8155
8156	    { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8157echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
8158if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8159  echo $ECHO_N "(cached) $ECHO_C" >&6
8160else
8161  ac_check_lib_save_LIBS=$LIBS
8162LIBS="-ldld  $LIBS"
8163cat >conftest.$ac_ext <<_ACEOF
8164/* confdefs.h.  */
8165_ACEOF
8166cat confdefs.h >>conftest.$ac_ext
8167cat >>conftest.$ac_ext <<_ACEOF
8168/* end confdefs.h.  */
8169
8170/* Override any GCC internal prototype to avoid an error.
8171   Use char because int might match the return type of a GCC
8172   builtin and then its argument prototype would still apply.  */
8173#ifdef __cplusplus
8174extern "C"
8175#endif
8176char shl_load ();
8177int
8178main ()
8179{
8180return shl_load ();
8181  ;
8182  return 0;
8183}
8184_ACEOF
8185rm -f conftest.$ac_objext conftest$ac_exeext
8186if { (ac_try="$ac_link"
8187case "(($ac_try" in
8188  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8189  *) ac_try_echo=$ac_try;;
8190esac
8191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8192  (eval "$ac_link") 2>conftest.er1
8193  ac_status=$?
8194  grep -v '^ *+' conftest.er1 >conftest.err
8195  rm -f conftest.er1
8196  cat conftest.err >&5
8197  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8198  (exit $ac_status); } && {
8199	 test -z "$ac_c_werror_flag" ||
8200	 test ! -s conftest.err
8201       } && test -s conftest$ac_exeext &&
8202       $as_test_x conftest$ac_exeext; then
8203  ac_cv_lib_dld_shl_load=yes
8204else
8205  echo "$as_me: failed program was:" >&5
8206sed 's/^/| /' conftest.$ac_ext >&5
8207
8208	ac_cv_lib_dld_shl_load=no
8209fi
8210
8211rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8212      conftest$ac_exeext conftest.$ac_ext
8213LIBS=$ac_check_lib_save_LIBS
8214fi
8215{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8216echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
8217if test $ac_cv_lib_dld_shl_load = yes; then
8218  tcl_ok=yes
8219else
8220  tcl_ok=no
8221fi
8222
8223	    if test "$tcl_ok" = yes; then
8224
8225		LDFLAGS="$LDFLAGS -E"
8226		CC_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.'
8227		LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:.'
8228		LD_LIBRARY_PATH_VAR="SHLIB_PATH"
8229
8230fi
8231
8232	    if test "$GCC" = yes; then
8233
8234		SHLIB_LD='${CC} -shared'
8235		LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
8236
8237else
8238
8239		CFLAGS="$CFLAGS -z"
8240		# Users may want PA-RISC 1.1/2.0 portable code - needs HP cc
8241		#CFLAGS="$CFLAGS +DAportable"
8242		SHLIB_CFLAGS="+z"
8243		SHLIB_LD="ld -b"
8244
8245fi
8246
8247
8248	    # Check to enable 64-bit flags for compiler/linker
8249	    if test "$do64bit" = "yes"; then
8250
8251		if test "$GCC" = yes; then
8252
8253		    case `${CC} -dumpmachine` in
8254			hppa64*)
8255			    # 64-bit gcc in use.  Fix flags for GNU ld.
8256			    do64bit_ok=yes
8257			    SHLIB_LD='${CC} -shared'
8258			    if test $doRpath = yes; then
8259
8260				CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
8261fi
8262
8263			    LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
8264			    ;;
8265			*)
8266			    { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5
8267echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;}
8268			    ;;
8269		    esac
8270
8271else
8272
8273		    do64bit_ok=yes
8274		    CFLAGS="$CFLAGS +DD64"
8275		    LDFLAGS_ARCH="+DD64"
8276
8277fi
8278
8279
8280fi
8281 ;;
8282	IRIX-6.*)
8283	    SHLIB_CFLAGS=""
8284	    SHLIB_LD="ld -n32 -shared -rdata_shared"
8285	    SHLIB_SUFFIX=".so"
8286	    if test $doRpath = yes; then
8287
8288		CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
8289		LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
8290fi
8291
8292	    if test "$GCC" = yes; then
8293
8294		CFLAGS="$CFLAGS -mabi=n32"
8295		LDFLAGS="$LDFLAGS -mabi=n32"
8296
8297else
8298
8299		case $system in
8300		    IRIX-6.3)
8301			# Use to build 6.2 compatible binaries on 6.3.
8302			CFLAGS="$CFLAGS -n32 -D_OLD_TERMIOS"
8303			;;
8304		    *)
8305			CFLAGS="$CFLAGS -n32"
8306			;;
8307		esac
8308		LDFLAGS="$LDFLAGS -n32"
8309
8310fi
8311
8312	    ;;
8313	IRIX64-6.*)
8314	    SHLIB_CFLAGS=""
8315	    SHLIB_LD="ld -n32 -shared -rdata_shared"
8316	    SHLIB_SUFFIX=".so"
8317	    if test $doRpath = yes; then
8318
8319		CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
8320		LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
8321fi
8322
8323
8324	    # Check to enable 64-bit flags for compiler/linker
8325
8326	    if test "$do64bit" = yes; then
8327
8328	        if test "$GCC" = yes; then
8329
8330	            { echo "$as_me:$LINENO: WARNING: 64bit mode not supported by gcc" >&5
8331echo "$as_me: WARNING: 64bit mode not supported by gcc" >&2;}
8332
8333else
8334
8335	            do64bit_ok=yes
8336	            SHLIB_LD="ld -64 -shared -rdata_shared"
8337	            CFLAGS="$CFLAGS -64"
8338	            LDFLAGS_ARCH="-64"
8339
8340fi
8341
8342
8343fi
8344
8345	    ;;
8346	Linux*)
8347	    SHLIB_CFLAGS="-fPIC"
8348	    SHLIB_SUFFIX=".so"
8349
8350	    # TEA specific:
8351	    CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer"
8352
8353	    # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS
8354	    SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS_DEFAULT}'
8355	    LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
8356	    if test $doRpath = yes; then
8357
8358		CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
8359fi
8360
8361	    LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
8362	    if test "`uname -m`" = "alpha"; then
8363  CFLAGS="$CFLAGS -mieee"
8364fi
8365
8366	    if test $do64bit = yes; then
8367
8368		{ echo "$as_me:$LINENO: checking if compiler accepts -m64 flag" >&5
8369echo $ECHO_N "checking if compiler accepts -m64 flag... $ECHO_C" >&6; }
8370if test "${tcl_cv_cc_m64+set}" = set; then
8371  echo $ECHO_N "(cached) $ECHO_C" >&6
8372else
8373
8374		    hold_cflags=$CFLAGS
8375		    CFLAGS="$CFLAGS -m64"
8376		    cat >conftest.$ac_ext <<_ACEOF
8377/* confdefs.h.  */
8378_ACEOF
8379cat confdefs.h >>conftest.$ac_ext
8380cat >>conftest.$ac_ext <<_ACEOF
8381/* end confdefs.h.  */
8382
8383int
8384main ()
8385{
8386
8387  ;
8388  return 0;
8389}
8390_ACEOF
8391rm -f conftest.$ac_objext conftest$ac_exeext
8392if { (ac_try="$ac_link"
8393case "(($ac_try" in
8394  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8395  *) ac_try_echo=$ac_try;;
8396esac
8397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8398  (eval "$ac_link") 2>conftest.er1
8399  ac_status=$?
8400  grep -v '^ *+' conftest.er1 >conftest.err
8401  rm -f conftest.er1
8402  cat conftest.err >&5
8403  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8404  (exit $ac_status); } && {
8405	 test -z "$ac_c_werror_flag" ||
8406	 test ! -s conftest.err
8407       } && test -s conftest$ac_exeext &&
8408       $as_test_x conftest$ac_exeext; then
8409  tcl_cv_cc_m64=yes
8410else
8411  echo "$as_me: failed program was:" >&5
8412sed 's/^/| /' conftest.$ac_ext >&5
8413
8414	tcl_cv_cc_m64=no
8415fi
8416
8417rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8418      conftest$ac_exeext conftest.$ac_ext
8419		    CFLAGS=$hold_cflags
8420fi
8421{ echo "$as_me:$LINENO: result: $tcl_cv_cc_m64" >&5
8422echo "${ECHO_T}$tcl_cv_cc_m64" >&6; }
8423		if test $tcl_cv_cc_m64 = yes; then
8424
8425		    CFLAGS="$CFLAGS -m64"
8426		    do64bit_ok=yes
8427
8428fi
8429
8430
8431fi
8432
8433
8434	    # The combo of gcc + glibc has a bug related to inlining of
8435	    # functions like strtod(). The -fno-builtin flag should address
8436	    # this problem but it does not work. The -fno-inline flag is kind
8437	    # of overkill but it works. Disable inlining only when one of the
8438	    # files in compat/*.c is being linked in.
8439
8440	    if test x"${USE_COMPAT}" != x; then
8441  CFLAGS="$CFLAGS -fno-inline"
8442fi
8443
8444
8445	    ;;
8446	GNU*)
8447	    SHLIB_CFLAGS="-fPIC"
8448	    SHLIB_SUFFIX=".so"
8449
8450	    SHLIB_LD='${CC} -shared'
8451	    LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
8452	    CC_SEARCH_FLAGS=""
8453	    LD_SEARCH_FLAGS=""
8454	    if test "`uname -m`" = "alpha"; then
8455  CFLAGS="$CFLAGS -mieee"
8456fi
8457
8458	    ;;
8459	Lynx*)
8460	    SHLIB_CFLAGS="-fPIC"
8461	    SHLIB_SUFFIX=".so"
8462	    CFLAGS_OPTIMIZE=-02
8463	    SHLIB_LD='${CC} -shared'
8464	    LD_FLAGS="-Wl,--export-dynamic"
8465	    if test $doRpath = yes; then
8466
8467		CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
8468		LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
8469fi
8470
8471	    ;;
8472	OpenBSD-*)
8473	    SHLIB_CFLAGS="-fPIC"
8474	    SHLIB_LD='${CC} -shared ${SHLIB_CFLAGS}'
8475	    SHLIB_SUFFIX=".so"
8476	    if test $doRpath = yes; then
8477
8478		CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
8479fi
8480
8481	    LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
8482	    SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so.${SHLIB_VERSION}'
8483	    { echo "$as_me:$LINENO: checking for ELF" >&5
8484echo $ECHO_N "checking for ELF... $ECHO_C" >&6; }
8485if test "${tcl_cv_ld_elf+set}" = set; then
8486  echo $ECHO_N "(cached) $ECHO_C" >&6
8487else
8488
8489		cat >conftest.$ac_ext <<_ACEOF
8490/* confdefs.h.  */
8491_ACEOF
8492cat confdefs.h >>conftest.$ac_ext
8493cat >>conftest.$ac_ext <<_ACEOF
8494/* end confdefs.h.  */
8495
8496#ifdef __ELF__
8497	yes
8498#endif
8499
8500_ACEOF
8501if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8502  $EGREP "yes" >/dev/null 2>&1; then
8503  tcl_cv_ld_elf=yes
8504else
8505  tcl_cv_ld_elf=no
8506fi
8507rm -f -r conftest*
8508
8509fi
8510{ echo "$as_me:$LINENO: result: $tcl_cv_ld_elf" >&5
8511echo "${ECHO_T}$tcl_cv_ld_elf" >&6; }
8512	    if test $tcl_cv_ld_elf = yes; then
8513
8514		LDFLAGS=-Wl,-export-dynamic
8515
8516else
8517  LDFLAGS=""
8518fi
8519
8520	    if test "${TCL_THREADS}" = "1"; then
8521
8522		# OpenBSD builds and links with -pthread, never -lpthread.
8523		LIBS=`echo $LIBS | sed s/-lpthread//`
8524		CFLAGS="$CFLAGS -pthread"
8525		SHLIB_CFLAGS="$SHLIB_CFLAGS -pthread"
8526
8527fi
8528
8529	    # OpenBSD doesn't do version numbers with dots.
8530	    UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
8531	    TCL_LIB_VERSIONS_OK=nodots
8532	    ;;
8533	NetBSD-*|FreeBSD-[3-4].*)
8534	    # FreeBSD 3.* and greater have ELF.
8535	    # NetBSD 2.* has ELF and can use 'cc -shared' to build shared libs
8536	    SHLIB_CFLAGS="-fPIC"
8537	    SHLIB_LD='${CC} -shared ${SHLIB_CFLAGS}'
8538	    SHLIB_SUFFIX=".so"
8539	    LDFLAGS="$LDFLAGS -export-dynamic"
8540	    if test $doRpath = yes; then
8541
8542		CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
8543fi
8544
8545	    LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
8546	    if test "${TCL_THREADS}" = "1"; then
8547
8548		# The -pthread needs to go in the CFLAGS, not LIBS
8549		LIBS=`echo $LIBS | sed s/-pthread//`
8550		CFLAGS="$CFLAGS -pthread"
8551	    	LDFLAGS="$LDFLAGS -pthread"
8552
8553fi
8554
8555	    case $system in
8556	    FreeBSD-3.*)
8557	    	# FreeBSD-3 doesn't handle version numbers with dots.
8558	    	UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
8559	    	SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so'
8560	    	TCL_LIB_VERSIONS_OK=nodots
8561		;;
8562	    esac
8563	    ;;
8564	FreeBSD-*)
8565	    # This configuration from FreeBSD Ports.
8566	    SHLIB_CFLAGS="-fPIC"
8567	    SHLIB_LD="${CC} -shared"
8568	    TCL_SHLIB_LD_EXTRAS="-soname \$@"
8569	    SHLIB_SUFFIX=".so"
8570	    LDFLAGS=""
8571	    if test $doRpath = yes; then
8572
8573		CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
8574		LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
8575fi
8576
8577	    if test "${TCL_THREADS}" = "1"; then
8578
8579		# The -pthread needs to go in the LDFLAGS, not LIBS
8580		LIBS=`echo $LIBS | sed s/-pthread//`
8581		CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8582		LDFLAGS="$LDFLAGS $PTHREAD_LIBS"
8583fi
8584
8585	    # Version numbers are dot-stripped by system policy.
8586	    TCL_TRIM_DOTS=`echo ${VERSION} | tr -d .`
8587	    UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
8588	    SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1'
8589	    TCL_LIB_VERSIONS_OK=nodots
8590	    ;;
8591	Darwin-*)
8592	    CFLAGS_OPTIMIZE="-Os"
8593	    SHLIB_CFLAGS="-fno-common"
8594	    # To avoid discrepancies between what headers configure sees during
8595	    # preprocessing tests and compiling tests, move any -isysroot and
8596	    # -mmacosx-version-min flags from CFLAGS to CPPFLAGS:
8597	    CPPFLAGS="${CPPFLAGS} `echo " ${CFLAGS}" | \
8598		awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \
8599		if ($i~/^(isysroot|mmacosx-version-min)/) print "-"$i}'`"
8600	    CFLAGS="`echo " ${CFLAGS}" | \
8601		awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \
8602		if (!($i~/^(isysroot|mmacosx-version-min)/)) print "-"$i}'`"
8603	    if test $do64bit = yes; then
8604
8605		case `arch` in
8606		    ppc)
8607			{ echo "$as_me:$LINENO: checking if compiler accepts -arch ppc64 flag" >&5
8608echo $ECHO_N "checking if compiler accepts -arch ppc64 flag... $ECHO_C" >&6; }
8609if test "${tcl_cv_cc_arch_ppc64+set}" = set; then
8610  echo $ECHO_N "(cached) $ECHO_C" >&6
8611else
8612
8613			    hold_cflags=$CFLAGS
8614			    CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5"
8615			    cat >conftest.$ac_ext <<_ACEOF
8616/* confdefs.h.  */
8617_ACEOF
8618cat confdefs.h >>conftest.$ac_ext
8619cat >>conftest.$ac_ext <<_ACEOF
8620/* end confdefs.h.  */
8621
8622int
8623main ()
8624{
8625
8626  ;
8627  return 0;
8628}
8629_ACEOF
8630rm -f conftest.$ac_objext conftest$ac_exeext
8631if { (ac_try="$ac_link"
8632case "(($ac_try" in
8633  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8634  *) ac_try_echo=$ac_try;;
8635esac
8636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8637  (eval "$ac_link") 2>conftest.er1
8638  ac_status=$?
8639  grep -v '^ *+' conftest.er1 >conftest.err
8640  rm -f conftest.er1
8641  cat conftest.err >&5
8642  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8643  (exit $ac_status); } && {
8644	 test -z "$ac_c_werror_flag" ||
8645	 test ! -s conftest.err
8646       } && test -s conftest$ac_exeext &&
8647       $as_test_x conftest$ac_exeext; then
8648  tcl_cv_cc_arch_ppc64=yes
8649else
8650  echo "$as_me: failed program was:" >&5
8651sed 's/^/| /' conftest.$ac_ext >&5
8652
8653	tcl_cv_cc_arch_ppc64=no
8654fi
8655
8656rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8657      conftest$ac_exeext conftest.$ac_ext
8658			    CFLAGS=$hold_cflags
8659fi
8660{ echo "$as_me:$LINENO: result: $tcl_cv_cc_arch_ppc64" >&5
8661echo "${ECHO_T}$tcl_cv_cc_arch_ppc64" >&6; }
8662			if test $tcl_cv_cc_arch_ppc64 = yes; then
8663
8664			    CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5"
8665			    do64bit_ok=yes
8666
8667fi
8668;;
8669		    i386)
8670			{ echo "$as_me:$LINENO: checking if compiler accepts -arch x86_64 flag" >&5
8671echo $ECHO_N "checking if compiler accepts -arch x86_64 flag... $ECHO_C" >&6; }
8672if test "${tcl_cv_cc_arch_x86_64+set}" = set; then
8673  echo $ECHO_N "(cached) $ECHO_C" >&6
8674else
8675
8676			    hold_cflags=$CFLAGS
8677			    CFLAGS="$CFLAGS -arch x86_64"
8678			    cat >conftest.$ac_ext <<_ACEOF
8679/* confdefs.h.  */
8680_ACEOF
8681cat confdefs.h >>conftest.$ac_ext
8682cat >>conftest.$ac_ext <<_ACEOF
8683/* end confdefs.h.  */
8684
8685int
8686main ()
8687{
8688
8689  ;
8690  return 0;
8691}
8692_ACEOF
8693rm -f conftest.$ac_objext conftest$ac_exeext
8694if { (ac_try="$ac_link"
8695case "(($ac_try" in
8696  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8697  *) ac_try_echo=$ac_try;;
8698esac
8699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8700  (eval "$ac_link") 2>conftest.er1
8701  ac_status=$?
8702  grep -v '^ *+' conftest.er1 >conftest.err
8703  rm -f conftest.er1
8704  cat conftest.err >&5
8705  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8706  (exit $ac_status); } && {
8707	 test -z "$ac_c_werror_flag" ||
8708	 test ! -s conftest.err
8709       } && test -s conftest$ac_exeext &&
8710       $as_test_x conftest$ac_exeext; then
8711  tcl_cv_cc_arch_x86_64=yes
8712else
8713  echo "$as_me: failed program was:" >&5
8714sed 's/^/| /' conftest.$ac_ext >&5
8715
8716	tcl_cv_cc_arch_x86_64=no
8717fi
8718
8719rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8720      conftest$ac_exeext conftest.$ac_ext
8721			    CFLAGS=$hold_cflags
8722fi
8723{ echo "$as_me:$LINENO: result: $tcl_cv_cc_arch_x86_64" >&5
8724echo "${ECHO_T}$tcl_cv_cc_arch_x86_64" >&6; }
8725			if test $tcl_cv_cc_arch_x86_64 = yes; then
8726
8727			    CFLAGS="$CFLAGS -arch x86_64"
8728			    do64bit_ok=yes
8729
8730fi
8731;;
8732		    *)
8733			{ echo "$as_me:$LINENO: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&5
8734echo "$as_me: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&2;};;
8735		esac
8736
8737else
8738
8739		# Check for combined 32-bit and 64-bit fat build
8740		if echo "$CFLAGS " |grep -E -q -- '-arch (ppc64|x86_64) ' \
8741		    && echo "$CFLAGS " |grep -E -q -- '-arch (ppc|i386) '; then
8742
8743		    fat_32_64=yes
8744fi
8745
8746
8747fi
8748
8749	    # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS
8750	    SHLIB_LD='${CC} -dynamiclib ${CFLAGS} ${LDFLAGS_DEFAULT}'
8751	    { echo "$as_me:$LINENO: checking if ld accepts -single_module flag" >&5
8752echo $ECHO_N "checking if ld accepts -single_module flag... $ECHO_C" >&6; }
8753if test "${tcl_cv_ld_single_module+set}" = set; then
8754  echo $ECHO_N "(cached) $ECHO_C" >&6
8755else
8756
8757		hold_ldflags=$LDFLAGS
8758		LDFLAGS="$LDFLAGS -dynamiclib -Wl,-single_module"
8759		cat >conftest.$ac_ext <<_ACEOF
8760/* confdefs.h.  */
8761_ACEOF
8762cat confdefs.h >>conftest.$ac_ext
8763cat >>conftest.$ac_ext <<_ACEOF
8764/* end confdefs.h.  */
8765
8766int
8767main ()
8768{
8769int i;
8770  ;
8771  return 0;
8772}
8773_ACEOF
8774rm -f conftest.$ac_objext conftest$ac_exeext
8775if { (ac_try="$ac_link"
8776case "(($ac_try" in
8777  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8778  *) ac_try_echo=$ac_try;;
8779esac
8780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8781  (eval "$ac_link") 2>conftest.er1
8782  ac_status=$?
8783  grep -v '^ *+' conftest.er1 >conftest.err
8784  rm -f conftest.er1
8785  cat conftest.err >&5
8786  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8787  (exit $ac_status); } && {
8788	 test -z "$ac_c_werror_flag" ||
8789	 test ! -s conftest.err
8790       } && test -s conftest$ac_exeext &&
8791       $as_test_x conftest$ac_exeext; then
8792  tcl_cv_ld_single_module=yes
8793else
8794  echo "$as_me: failed program was:" >&5
8795sed 's/^/| /' conftest.$ac_ext >&5
8796
8797	tcl_cv_ld_single_module=no
8798fi
8799
8800rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8801      conftest$ac_exeext conftest.$ac_ext
8802		LDFLAGS=$hold_ldflags
8803fi
8804{ echo "$as_me:$LINENO: result: $tcl_cv_ld_single_module" >&5
8805echo "${ECHO_T}$tcl_cv_ld_single_module" >&6; }
8806	    if test $tcl_cv_ld_single_module = yes; then
8807
8808		SHLIB_LD="${SHLIB_LD} -Wl,-single_module"
8809
8810fi
8811
8812	    # TEA specific: link shlib with current and compatiblity version flags
8813	    vers=`echo ${PACKAGE_VERSION} | sed -e 's/^\([0-9]\{1,5\}\)\(\(\.[0-9]\{1,3\}\)\{0,2\}\).*$/\1\2/p' -e d`
8814	    SHLIB_LD="${SHLIB_LD} -current_version ${vers:-0} -compatibility_version ${vers:-0}"
8815	    SHLIB_SUFFIX=".dylib"
8816	    # Don't use -prebind when building for Mac OS X 10.4 or later only:
8817	    if test "`echo "${MACOSX_DEPLOYMENT_TARGET}" | awk -F '10\\.' '{print int($2)}'`" -lt 4 -a \
8818		"`echo "${CPPFLAGS}" | awk -F '-mmacosx-version-min=10\\.' '{print int($2)}'`" -lt 4; then
8819
8820		LDFLAGS="$LDFLAGS -prebind"
8821fi
8822
8823	    LDFLAGS="$LDFLAGS -headerpad_max_install_names"
8824	    { echo "$as_me:$LINENO: checking if ld accepts -search_paths_first flag" >&5
8825echo $ECHO_N "checking if ld accepts -search_paths_first flag... $ECHO_C" >&6; }
8826if test "${tcl_cv_ld_search_paths_first+set}" = set; then
8827  echo $ECHO_N "(cached) $ECHO_C" >&6
8828else
8829
8830		hold_ldflags=$LDFLAGS
8831		LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
8832		cat >conftest.$ac_ext <<_ACEOF
8833/* confdefs.h.  */
8834_ACEOF
8835cat confdefs.h >>conftest.$ac_ext
8836cat >>conftest.$ac_ext <<_ACEOF
8837/* end confdefs.h.  */
8838
8839int
8840main ()
8841{
8842int i;
8843  ;
8844  return 0;
8845}
8846_ACEOF
8847rm -f conftest.$ac_objext conftest$ac_exeext
8848if { (ac_try="$ac_link"
8849case "(($ac_try" in
8850  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8851  *) ac_try_echo=$ac_try;;
8852esac
8853eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8854  (eval "$ac_link") 2>conftest.er1
8855  ac_status=$?
8856  grep -v '^ *+' conftest.er1 >conftest.err
8857  rm -f conftest.er1
8858  cat conftest.err >&5
8859  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8860  (exit $ac_status); } && {
8861	 test -z "$ac_c_werror_flag" ||
8862	 test ! -s conftest.err
8863       } && test -s conftest$ac_exeext &&
8864       $as_test_x conftest$ac_exeext; then
8865  tcl_cv_ld_search_paths_first=yes
8866else
8867  echo "$as_me: failed program was:" >&5
8868sed 's/^/| /' conftest.$ac_ext >&5
8869
8870	tcl_cv_ld_search_paths_first=no
8871fi
8872
8873rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8874      conftest$ac_exeext conftest.$ac_ext
8875		LDFLAGS=$hold_ldflags
8876fi
8877{ echo "$as_me:$LINENO: result: $tcl_cv_ld_search_paths_first" >&5
8878echo "${ECHO_T}$tcl_cv_ld_search_paths_first" >&6; }
8879	    if test $tcl_cv_ld_search_paths_first = yes; then
8880
8881		LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
8882
8883fi
8884
8885	    if test "$tcl_cv_cc_visibility_hidden" != yes; then
8886
8887
8888cat >>confdefs.h <<\_ACEOF
8889#define MODULE_SCOPE __private_extern__
8890_ACEOF
8891
8892		tcl_cv_cc_visibility_hidden=yes
8893
8894fi
8895
8896	    CC_SEARCH_FLAGS=""
8897	    LD_SEARCH_FLAGS=""
8898	    LD_LIBRARY_PATH_VAR="DYLD_LIBRARY_PATH"
8899	    # TEA specific: for combined 32 & 64 bit fat builds of Tk
8900	    # extensions, verify that 64-bit build is possible.
8901	    if test "$fat_32_64" = yes && test -n "${TK_BIN_DIR}"; then
8902
8903		if test "${TEA_WINDOWINGSYSTEM}" = x11; then
8904
8905		    { echo "$as_me:$LINENO: checking for 64-bit X11" >&5
8906echo $ECHO_N "checking for 64-bit X11... $ECHO_C" >&6; }
8907if test "${tcl_cv_lib_x11_64+set}" = set; then
8908  echo $ECHO_N "(cached) $ECHO_C" >&6
8909else
8910
8911			for v in CFLAGS CPPFLAGS LDFLAGS; do
8912			    eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"'
8913			done
8914			CPPFLAGS="$CPPFLAGS -I/usr/X11R6/include"
8915			LDFLAGS="$LDFLAGS -L/usr/X11R6/lib -lX11"
8916			cat >conftest.$ac_ext <<_ACEOF
8917/* confdefs.h.  */
8918_ACEOF
8919cat confdefs.h >>conftest.$ac_ext
8920cat >>conftest.$ac_ext <<_ACEOF
8921/* end confdefs.h.  */
8922#include <X11/Xlib.h>
8923int
8924main ()
8925{
8926XrmInitialize();
8927  ;
8928  return 0;
8929}
8930_ACEOF
8931rm -f conftest.$ac_objext conftest$ac_exeext
8932if { (ac_try="$ac_link"
8933case "(($ac_try" in
8934  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8935  *) ac_try_echo=$ac_try;;
8936esac
8937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8938  (eval "$ac_link") 2>conftest.er1
8939  ac_status=$?
8940  grep -v '^ *+' conftest.er1 >conftest.err
8941  rm -f conftest.er1
8942  cat conftest.err >&5
8943  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8944  (exit $ac_status); } && {
8945	 test -z "$ac_c_werror_flag" ||
8946	 test ! -s conftest.err
8947       } && test -s conftest$ac_exeext &&
8948       $as_test_x conftest$ac_exeext; then
8949  tcl_cv_lib_x11_64=yes
8950else
8951  echo "$as_me: failed program was:" >&5
8952sed 's/^/| /' conftest.$ac_ext >&5
8953
8954	tcl_cv_lib_x11_64=no
8955fi
8956
8957rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8958      conftest$ac_exeext conftest.$ac_ext
8959			for v in CFLAGS CPPFLAGS LDFLAGS; do
8960			    eval $v'="$hold_'$v'"'
8961			done
8962fi
8963{ echo "$as_me:$LINENO: result: $tcl_cv_lib_x11_64" >&5
8964echo "${ECHO_T}$tcl_cv_lib_x11_64" >&6; }
8965
8966fi
8967
8968		if test "${TEA_WINDOWINGSYSTEM}" = aqua; then
8969
8970		    { echo "$as_me:$LINENO: checking for 64-bit Tk" >&5
8971echo $ECHO_N "checking for 64-bit Tk... $ECHO_C" >&6; }
8972if test "${tcl_cv_lib_tk_64+set}" = set; then
8973  echo $ECHO_N "(cached) $ECHO_C" >&6
8974else
8975
8976			for v in CFLAGS CPPFLAGS LDFLAGS; do
8977			    eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"'
8978			done
8979			CPPFLAGS="$CPPFLAGS -DUSE_TCL_STUBS=1 -DUSE_TK_STUBS=1 `eval "echo ${TCL_INCLUDES} ${TK_INCLUDES}"`"
8980			LDFLAGS="$LDFLAGS ${TCL_STUB_LIB_SPEC} ${TK_STUB_LIB_SPEC}"
8981			cat >conftest.$ac_ext <<_ACEOF
8982/* confdefs.h.  */
8983_ACEOF
8984cat confdefs.h >>conftest.$ac_ext
8985cat >>conftest.$ac_ext <<_ACEOF
8986/* end confdefs.h.  */
8987#include <tk.h>
8988int
8989main ()
8990{
8991Tk_InitStubs(NULL, "", 0);
8992  ;
8993  return 0;
8994}
8995_ACEOF
8996rm -f conftest.$ac_objext conftest$ac_exeext
8997if { (ac_try="$ac_link"
8998case "(($ac_try" in
8999  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9000  *) ac_try_echo=$ac_try;;
9001esac
9002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9003  (eval "$ac_link") 2>conftest.er1
9004  ac_status=$?
9005  grep -v '^ *+' conftest.er1 >conftest.err
9006  rm -f conftest.er1
9007  cat conftest.err >&5
9008  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9009  (exit $ac_status); } && {
9010	 test -z "$ac_c_werror_flag" ||
9011	 test ! -s conftest.err
9012       } && test -s conftest$ac_exeext &&
9013       $as_test_x conftest$ac_exeext; then
9014  tcl_cv_lib_tk_64=yes
9015else
9016  echo "$as_me: failed program was:" >&5
9017sed 's/^/| /' conftest.$ac_ext >&5
9018
9019	tcl_cv_lib_tk_64=no
9020fi
9021
9022rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9023      conftest$ac_exeext conftest.$ac_ext
9024			for v in CFLAGS CPPFLAGS LDFLAGS; do
9025			    eval $v'="$hold_'$v'"'
9026			done
9027fi
9028{ echo "$as_me:$LINENO: result: $tcl_cv_lib_tk_64" >&5
9029echo "${ECHO_T}$tcl_cv_lib_tk_64" >&6; }
9030
9031fi
9032
9033		# remove 64-bit arch flags from CFLAGS et al. if configuration
9034		# does not support 64-bit.
9035		if test "$tcl_cv_lib_tk_64" = no -o "$tcl_cv_lib_x11_64" = no; then
9036
9037		    { echo "$as_me:$LINENO: Removing 64-bit architectures from compiler & linker flags" >&5
9038echo "$as_me: Removing 64-bit architectures from compiler & linker flags" >&6;}
9039		    for v in CFLAGS CPPFLAGS LDFLAGS; do
9040			eval $v'="`echo "$'$v' "|sed -e "s/-arch ppc64 / /g" -e "s/-arch x86_64 / /g"`"'
9041		    done
9042fi
9043
9044
9045fi
9046
9047	    ;;
9048	OS/390-*)
9049	    CFLAGS_OPTIMIZE=""		# Optimizer is buggy
9050
9051cat >>confdefs.h <<\_ACEOF
9052#define _OE_SOCKETS 1
9053_ACEOF
9054
9055	    ;;
9056	OSF1-V*)
9057	    # Digital OSF/1
9058	    SHLIB_CFLAGS=""
9059	    if test "$SHARED_BUILD" = 1; then
9060
9061	        SHLIB_LD='ld -shared -expect_unresolved "*"'
9062
9063else
9064
9065	        SHLIB_LD='ld -non_shared -expect_unresolved "*"'
9066
9067fi
9068
9069	    SHLIB_SUFFIX=".so"
9070	    if test $doRpath = yes; then
9071
9072		CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
9073		LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
9074fi
9075
9076	    if test "$GCC" = yes; then
9077  CFLAGS="$CFLAGS -mieee"
9078else
9079
9080		CFLAGS="$CFLAGS -DHAVE_TZSET -std1 -ieee"
9081fi
9082
9083	    # see pthread_intro(3) for pthread support on osf1, k.furukawa
9084	    if test "${TCL_THREADS}" = 1; then
9085
9086		CFLAGS="$CFLAGS -DHAVE_PTHREAD_ATTR_SETSTACKSIZE"
9087		CFLAGS="$CFLAGS -DTCL_THREAD_STACK_MIN=PTHREAD_STACK_MIN*64"
9088		LIBS=`echo $LIBS | sed s/-lpthreads//`
9089		if test "$GCC" = yes; then
9090
9091		    LIBS="$LIBS -lpthread -lmach -lexc"
9092
9093else
9094
9095		    CFLAGS="$CFLAGS -pthread"
9096		    LDFLAGS="$LDFLAGS -pthread"
9097
9098fi
9099
9100
9101fi
9102
9103	    ;;
9104	QNX-6*)
9105	    # QNX RTP
9106	    # This may work for all QNX, but it was only reported for v6.
9107	    SHLIB_CFLAGS="-fPIC"
9108	    SHLIB_LD="ld -Bshareable -x"
9109	    SHLIB_LD_LIBS=""
9110	    SHLIB_SUFFIX=".so"
9111	    CC_SEARCH_FLAGS=""
9112	    LD_SEARCH_FLAGS=""
9113	    ;;
9114	SCO_SV-3.2*)
9115	    if test "$GCC" = yes; then
9116
9117		SHLIB_CFLAGS="-fPIC -melf"
9118		LDFLAGS="$LDFLAGS -melf -Wl,-Bexport"
9119
9120else
9121
9122	       SHLIB_CFLAGS="-Kpic -belf"
9123	       LDFLAGS="$LDFLAGS -belf -Wl,-Bexport"
9124
9125fi
9126
9127	    SHLIB_LD="ld -G"
9128	    SHLIB_LD_LIBS=""
9129	    SHLIB_SUFFIX=".so"
9130	    CC_SEARCH_FLAGS=""
9131	    LD_SEARCH_FLAGS=""
9132	    ;;
9133	SunOS-5.[0-6])
9134	    # Careful to not let 5.10+ fall into this case
9135
9136	    # Note: If _REENTRANT isn't defined, then Solaris
9137	    # won't define thread-safe library routines.
9138
9139
9140cat >>confdefs.h <<\_ACEOF
9141#define _REENTRANT 1
9142_ACEOF
9143
9144
9145cat >>confdefs.h <<\_ACEOF
9146#define _POSIX_PTHREAD_SEMANTICS 1
9147_ACEOF
9148
9149
9150	    SHLIB_CFLAGS="-KPIC"
9151	    SHLIB_SUFFIX=".so"
9152	    if test "$GCC" = yes; then
9153
9154		SHLIB_LD='${CC} -shared'
9155		CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
9156		LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
9157
9158else
9159
9160		SHLIB_LD="/usr/ccs/bin/ld -G -z text"
9161		CC_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
9162		LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
9163
9164fi
9165
9166	    ;;
9167	SunOS-5*)
9168	    # Note: If _REENTRANT isn't defined, then Solaris
9169	    # won't define thread-safe library routines.
9170
9171
9172cat >>confdefs.h <<\_ACEOF
9173#define _REENTRANT 1
9174_ACEOF
9175
9176
9177cat >>confdefs.h <<\_ACEOF
9178#define _POSIX_PTHREAD_SEMANTICS 1
9179_ACEOF
9180
9181
9182	    SHLIB_CFLAGS="-KPIC"
9183
9184	    # Check to enable 64-bit flags for compiler/linker
9185	    if test "$do64bit" = yes; then
9186
9187		arch=`isainfo`
9188		if test "$arch" = "sparcv9 sparc"; then
9189
9190		    if test "$GCC" = yes; then
9191
9192			if test "`${CC} -dumpversion | awk -F. '{print $1}'`" -lt 3; then
9193
9194			    { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&5
9195echo "$as_me: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&2;}
9196
9197else
9198
9199			    do64bit_ok=yes
9200			    CFLAGS="$CFLAGS -m64 -mcpu=v9"
9201			    LDFLAGS="$LDFLAGS -m64 -mcpu=v9"
9202			    SHLIB_CFLAGS="-fPIC"
9203
9204fi
9205
9206
9207else
9208
9209			do64bit_ok=yes
9210			if test "$do64bitVIS" = yes; then
9211
9212			    CFLAGS="$CFLAGS -xarch=v9a"
9213			    LDFLAGS_ARCH="-xarch=v9a"
9214
9215else
9216
9217			    CFLAGS="$CFLAGS -xarch=v9"
9218			    LDFLAGS_ARCH="-xarch=v9"
9219
9220fi
9221
9222			# Solaris 64 uses this as well
9223			#LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH_64"
9224
9225fi
9226
9227
9228else
9229  if test "$arch" = "amd64 i386"; then
9230
9231		    if test "$GCC" = yes; then
9232
9233			case $system in
9234			    SunOS-5.1[1-9]*|SunOS-5.[2-9][0-9]*)
9235				do64bit_ok=yes
9236				CFLAGS="$CFLAGS -m64"
9237				LDFLAGS="$LDFLAGS -m64";;
9238			    *)
9239				{ echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5
9240echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;};;
9241			esac
9242
9243else
9244
9245			do64bit_ok=yes
9246			case $system in
9247			    SunOS-5.1[1-9]*|SunOS-5.[2-9][0-9]*)
9248				CFLAGS="$CFLAGS -m64"
9249				LDFLAGS="$LDFLAGS -m64";;
9250			    *)
9251				CFLAGS="$CFLAGS -xarch=amd64"
9252				LDFLAGS="$LDFLAGS -xarch=amd64";;
9253			esac
9254
9255fi
9256
9257
9258else
9259  { echo "$as_me:$LINENO: WARNING: 64bit mode not supported for $arch" >&5
9260echo "$as_me: WARNING: 64bit mode not supported for $arch" >&2;}
9261fi
9262
9263fi
9264
9265
9266fi
9267
9268
9269	    SHLIB_SUFFIX=".so"
9270	    if test "$GCC" = yes; then
9271
9272		SHLIB_LD='${CC} -shared'
9273		CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
9274		LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
9275		if test "$do64bit_ok" = yes; then
9276
9277		    if test "$arch" = "sparcv9 sparc"; then
9278
9279			# We need to specify -static-libgcc or we need to
9280			# add the path to the sparv9 libgcc.
9281			# JH: static-libgcc is necessary for core Tcl, but may
9282			# not be necessary for extensions.
9283			SHLIB_LD="$SHLIB_LD -m64 -mcpu=v9 -static-libgcc"
9284			# for finding sparcv9 libgcc, get the regular libgcc
9285			# path, remove so name and append 'sparcv9'
9286			#v9gcclibdir="`gcc -print-file-name=libgcc_s.so` | ..."
9287			#CC_SEARCH_FLAGS="${CC_SEARCH_FLAGS},-R,$v9gcclibdir"
9288
9289else
9290  if test "$arch" = "amd64 i386"; then
9291
9292			# JH: static-libgcc is necessary for core Tcl, but may
9293			# not be necessary for extensions.
9294			SHLIB_LD="$SHLIB_LD -m64 -static-libgcc"
9295
9296fi
9297
9298fi
9299
9300
9301fi
9302
9303
9304else
9305
9306		case $system in
9307		    SunOS-5.[1-9][0-9]*)
9308			# TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS
9309			SHLIB_LD='${CC} -G -z text ${LDFLAGS_DEFAULT}';;
9310		    *)
9311			SHLIB_LD='/usr/ccs/bin/ld -G -z text';;
9312		esac
9313		CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
9314		LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
9315
9316fi
9317
9318	    ;;
9319    esac
9320
9321    if test "$do64bit" = yes -a "$do64bit_ok" = no; then
9322
9323	{ echo "$as_me:$LINENO: WARNING: 64bit support being disabled -- don't know magic for this platform" >&5
9324echo "$as_me: WARNING: 64bit support being disabled -- don't know magic for this platform" >&2;}
9325
9326fi
9327
9328
9329
9330
9331    # Add in the arch flags late to ensure it wasn't removed.
9332    # Not necessary in TEA, but this is aligned with core
9333    LDFLAGS="$LDFLAGS $LDFLAGS_ARCH"
9334
9335    # If we're running gcc, then change the C flags for compiling shared
9336    # libraries to the right flags for gcc, instead of those for the
9337    # standard manufacturer compiler.
9338
9339    if test "$GCC" = yes; then
9340
9341	case $system in
9342	    AIX-*) ;;
9343	    BSD/OS*) ;;
9344	    CYGWIN_*) ;;
9345	    IRIX*) ;;
9346	    NetBSD-*|FreeBSD-*|OpenBSD-*) ;;
9347	    Darwin-*) ;;
9348	    SCO_SV-3.2*) ;;
9349	    windows) ;;
9350	    *) SHLIB_CFLAGS="-fPIC" ;;
9351	esac
9352fi
9353
9354
9355    if test "$tcl_cv_cc_visibility_hidden" != yes; then
9356
9357
9358cat >>confdefs.h <<\_ACEOF
9359#define MODULE_SCOPE extern
9360_ACEOF
9361
9362
9363cat >>confdefs.h <<\_ACEOF
9364#define NO_VIZ
9365_ACEOF
9366
9367
9368fi
9369
9370
9371    if test "$SHARED_LIB_SUFFIX" = ""; then
9372
9373	# TEA specific: use PACKAGE_VERSION instead of VERSION
9374	SHARED_LIB_SUFFIX='${PACKAGE_VERSION}${SHLIB_SUFFIX}'
9375fi
9376
9377    if test "$UNSHARED_LIB_SUFFIX" = ""; then
9378
9379	# TEA specific: use PACKAGE_VERSION instead of VERSION
9380	UNSHARED_LIB_SUFFIX='${PACKAGE_VERSION}.a'
9381fi
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396    # These must be called after we do the basic CFLAGS checks and
9397    # verify any possible 64-bit or similar switches are necessary
9398
9399    { echo "$as_me:$LINENO: checking for required early compiler flags" >&5
9400echo $ECHO_N "checking for required early compiler flags... $ECHO_C" >&6; }
9401    tcl_flags=""
9402
9403    if test "${tcl_cv_flag__isoc99_source+set}" = set; then
9404  echo $ECHO_N "(cached) $ECHO_C" >&6
9405else
9406  cat >conftest.$ac_ext <<_ACEOF
9407/* confdefs.h.  */
9408_ACEOF
9409cat confdefs.h >>conftest.$ac_ext
9410cat >>conftest.$ac_ext <<_ACEOF
9411/* end confdefs.h.  */
9412#include <stdlib.h>
9413int
9414main ()
9415{
9416char *p = (char *)strtoll; char *q = (char *)strtoull;
9417  ;
9418  return 0;
9419}
9420_ACEOF
9421rm -f conftest.$ac_objext
9422if { (ac_try="$ac_compile"
9423case "(($ac_try" in
9424  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9425  *) ac_try_echo=$ac_try;;
9426esac
9427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9428  (eval "$ac_compile") 2>conftest.er1
9429  ac_status=$?
9430  grep -v '^ *+' conftest.er1 >conftest.err
9431  rm -f conftest.er1
9432  cat conftest.err >&5
9433  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9434  (exit $ac_status); } && {
9435	 test -z "$ac_c_werror_flag" ||
9436	 test ! -s conftest.err
9437       } && test -s conftest.$ac_objext; then
9438  tcl_cv_flag__isoc99_source=no
9439else
9440  echo "$as_me: failed program was:" >&5
9441sed 's/^/| /' conftest.$ac_ext >&5
9442
9443	cat >conftest.$ac_ext <<_ACEOF
9444/* confdefs.h.  */
9445_ACEOF
9446cat confdefs.h >>conftest.$ac_ext
9447cat >>conftest.$ac_ext <<_ACEOF
9448/* end confdefs.h.  */
9449#define _ISOC99_SOURCE 1
9450#include <stdlib.h>
9451int
9452main ()
9453{
9454char *p = (char *)strtoll; char *q = (char *)strtoull;
9455  ;
9456  return 0;
9457}
9458_ACEOF
9459rm -f conftest.$ac_objext
9460if { (ac_try="$ac_compile"
9461case "(($ac_try" in
9462  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9463  *) ac_try_echo=$ac_try;;
9464esac
9465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9466  (eval "$ac_compile") 2>conftest.er1
9467  ac_status=$?
9468  grep -v '^ *+' conftest.er1 >conftest.err
9469  rm -f conftest.er1
9470  cat conftest.err >&5
9471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9472  (exit $ac_status); } && {
9473	 test -z "$ac_c_werror_flag" ||
9474	 test ! -s conftest.err
9475       } && test -s conftest.$ac_objext; then
9476  tcl_cv_flag__isoc99_source=yes
9477else
9478  echo "$as_me: failed program was:" >&5
9479sed 's/^/| /' conftest.$ac_ext >&5
9480
9481	tcl_cv_flag__isoc99_source=no
9482fi
9483
9484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9485fi
9486
9487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9488fi
9489
9490    if test "x${tcl_cv_flag__isoc99_source}" = "xyes" ; then
9491
9492cat >>confdefs.h <<\_ACEOF
9493#define _ISOC99_SOURCE 1
9494_ACEOF
9495
9496	tcl_flags="$tcl_flags _ISOC99_SOURCE"
9497    fi
9498
9499
9500    if test "${tcl_cv_flag__largefile64_source+set}" = set; then
9501  echo $ECHO_N "(cached) $ECHO_C" >&6
9502else
9503  cat >conftest.$ac_ext <<_ACEOF
9504/* confdefs.h.  */
9505_ACEOF
9506cat confdefs.h >>conftest.$ac_ext
9507cat >>conftest.$ac_ext <<_ACEOF
9508/* end confdefs.h.  */
9509#include <sys/stat.h>
9510int
9511main ()
9512{
9513struct stat64 buf; int i = stat64("/", &buf);
9514  ;
9515  return 0;
9516}
9517_ACEOF
9518rm -f conftest.$ac_objext
9519if { (ac_try="$ac_compile"
9520case "(($ac_try" in
9521  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9522  *) ac_try_echo=$ac_try;;
9523esac
9524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9525  (eval "$ac_compile") 2>conftest.er1
9526  ac_status=$?
9527  grep -v '^ *+' conftest.er1 >conftest.err
9528  rm -f conftest.er1
9529  cat conftest.err >&5
9530  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9531  (exit $ac_status); } && {
9532	 test -z "$ac_c_werror_flag" ||
9533	 test ! -s conftest.err
9534       } && test -s conftest.$ac_objext; then
9535  tcl_cv_flag__largefile64_source=no
9536else
9537  echo "$as_me: failed program was:" >&5
9538sed 's/^/| /' conftest.$ac_ext >&5
9539
9540	cat >conftest.$ac_ext <<_ACEOF
9541/* confdefs.h.  */
9542_ACEOF
9543cat confdefs.h >>conftest.$ac_ext
9544cat >>conftest.$ac_ext <<_ACEOF
9545/* end confdefs.h.  */
9546#define _LARGEFILE64_SOURCE 1
9547#include <sys/stat.h>
9548int
9549main ()
9550{
9551struct stat64 buf; int i = stat64("/", &buf);
9552  ;
9553  return 0;
9554}
9555_ACEOF
9556rm -f conftest.$ac_objext
9557if { (ac_try="$ac_compile"
9558case "(($ac_try" in
9559  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9560  *) ac_try_echo=$ac_try;;
9561esac
9562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9563  (eval "$ac_compile") 2>conftest.er1
9564  ac_status=$?
9565  grep -v '^ *+' conftest.er1 >conftest.err
9566  rm -f conftest.er1
9567  cat conftest.err >&5
9568  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9569  (exit $ac_status); } && {
9570	 test -z "$ac_c_werror_flag" ||
9571	 test ! -s conftest.err
9572       } && test -s conftest.$ac_objext; then
9573  tcl_cv_flag__largefile64_source=yes
9574else
9575  echo "$as_me: failed program was:" >&5
9576sed 's/^/| /' conftest.$ac_ext >&5
9577
9578	tcl_cv_flag__largefile64_source=no
9579fi
9580
9581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9582fi
9583
9584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9585fi
9586
9587    if test "x${tcl_cv_flag__largefile64_source}" = "xyes" ; then
9588
9589cat >>confdefs.h <<\_ACEOF
9590#define _LARGEFILE64_SOURCE 1
9591_ACEOF
9592
9593	tcl_flags="$tcl_flags _LARGEFILE64_SOURCE"
9594    fi
9595
9596
9597    if test "${tcl_cv_flag__largefile_source64+set}" = set; then
9598  echo $ECHO_N "(cached) $ECHO_C" >&6
9599else
9600  cat >conftest.$ac_ext <<_ACEOF
9601/* confdefs.h.  */
9602_ACEOF
9603cat confdefs.h >>conftest.$ac_ext
9604cat >>conftest.$ac_ext <<_ACEOF
9605/* end confdefs.h.  */
9606#include <sys/stat.h>
9607int
9608main ()
9609{
9610char *p = (char *)open64;
9611  ;
9612  return 0;
9613}
9614_ACEOF
9615rm -f conftest.$ac_objext
9616if { (ac_try="$ac_compile"
9617case "(($ac_try" in
9618  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9619  *) ac_try_echo=$ac_try;;
9620esac
9621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9622  (eval "$ac_compile") 2>conftest.er1
9623  ac_status=$?
9624  grep -v '^ *+' conftest.er1 >conftest.err
9625  rm -f conftest.er1
9626  cat conftest.err >&5
9627  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9628  (exit $ac_status); } && {
9629	 test -z "$ac_c_werror_flag" ||
9630	 test ! -s conftest.err
9631       } && test -s conftest.$ac_objext; then
9632  tcl_cv_flag__largefile_source64=no
9633else
9634  echo "$as_me: failed program was:" >&5
9635sed 's/^/| /' conftest.$ac_ext >&5
9636
9637	cat >conftest.$ac_ext <<_ACEOF
9638/* confdefs.h.  */
9639_ACEOF
9640cat confdefs.h >>conftest.$ac_ext
9641cat >>conftest.$ac_ext <<_ACEOF
9642/* end confdefs.h.  */
9643#define _LARGEFILE_SOURCE64 1
9644#include <sys/stat.h>
9645int
9646main ()
9647{
9648char *p = (char *)open64;
9649  ;
9650  return 0;
9651}
9652_ACEOF
9653rm -f conftest.$ac_objext
9654if { (ac_try="$ac_compile"
9655case "(($ac_try" in
9656  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9657  *) ac_try_echo=$ac_try;;
9658esac
9659eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9660  (eval "$ac_compile") 2>conftest.er1
9661  ac_status=$?
9662  grep -v '^ *+' conftest.er1 >conftest.err
9663  rm -f conftest.er1
9664  cat conftest.err >&5
9665  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9666  (exit $ac_status); } && {
9667	 test -z "$ac_c_werror_flag" ||
9668	 test ! -s conftest.err
9669       } && test -s conftest.$ac_objext; then
9670  tcl_cv_flag__largefile_source64=yes
9671else
9672  echo "$as_me: failed program was:" >&5
9673sed 's/^/| /' conftest.$ac_ext >&5
9674
9675	tcl_cv_flag__largefile_source64=no
9676fi
9677
9678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9679fi
9680
9681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9682fi
9683
9684    if test "x${tcl_cv_flag__largefile_source64}" = "xyes" ; then
9685
9686cat >>confdefs.h <<\_ACEOF
9687#define _LARGEFILE_SOURCE64 1
9688_ACEOF
9689
9690	tcl_flags="$tcl_flags _LARGEFILE_SOURCE64"
9691    fi
9692
9693    if test "x${tcl_flags}" = "x" ; then
9694	{ echo "$as_me:$LINENO: result: none" >&5
9695echo "${ECHO_T}none" >&6; }
9696    else
9697	{ echo "$as_me:$LINENO: result: ${tcl_flags}" >&5
9698echo "${ECHO_T}${tcl_flags}" >&6; }
9699    fi
9700
9701
9702    { echo "$as_me:$LINENO: checking for 64-bit integer type" >&5
9703echo $ECHO_N "checking for 64-bit integer type... $ECHO_C" >&6; }
9704    if test "${tcl_cv_type_64bit+set}" = set; then
9705  echo $ECHO_N "(cached) $ECHO_C" >&6
9706else
9707
9708	tcl_cv_type_64bit=none
9709	# See if the compiler knows natively about __int64
9710	cat >conftest.$ac_ext <<_ACEOF
9711/* confdefs.h.  */
9712_ACEOF
9713cat confdefs.h >>conftest.$ac_ext
9714cat >>conftest.$ac_ext <<_ACEOF
9715/* end confdefs.h.  */
9716
9717int
9718main ()
9719{
9720__int64 value = (__int64) 0;
9721  ;
9722  return 0;
9723}
9724_ACEOF
9725rm -f conftest.$ac_objext
9726if { (ac_try="$ac_compile"
9727case "(($ac_try" in
9728  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9729  *) ac_try_echo=$ac_try;;
9730esac
9731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9732  (eval "$ac_compile") 2>conftest.er1
9733  ac_status=$?
9734  grep -v '^ *+' conftest.er1 >conftest.err
9735  rm -f conftest.er1
9736  cat conftest.err >&5
9737  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9738  (exit $ac_status); } && {
9739	 test -z "$ac_c_werror_flag" ||
9740	 test ! -s conftest.err
9741       } && test -s conftest.$ac_objext; then
9742  tcl_type_64bit=__int64
9743else
9744  echo "$as_me: failed program was:" >&5
9745sed 's/^/| /' conftest.$ac_ext >&5
9746
9747	tcl_type_64bit="long long"
9748fi
9749
9750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9751	# See if we should use long anyway  Note that we substitute in the
9752	# type that is our current guess for a 64-bit type inside this check
9753	# program, so it should be modified only carefully...
9754        cat >conftest.$ac_ext <<_ACEOF
9755/* confdefs.h.  */
9756_ACEOF
9757cat confdefs.h >>conftest.$ac_ext
9758cat >>conftest.$ac_ext <<_ACEOF
9759/* end confdefs.h.  */
9760
9761int
9762main ()
9763{
9764switch (0) {
9765            case 1: case (sizeof(${tcl_type_64bit})==sizeof(long)): ;
9766        }
9767  ;
9768  return 0;
9769}
9770_ACEOF
9771rm -f conftest.$ac_objext
9772if { (ac_try="$ac_compile"
9773case "(($ac_try" in
9774  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9775  *) ac_try_echo=$ac_try;;
9776esac
9777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9778  (eval "$ac_compile") 2>conftest.er1
9779  ac_status=$?
9780  grep -v '^ *+' conftest.er1 >conftest.err
9781  rm -f conftest.er1
9782  cat conftest.err >&5
9783  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9784  (exit $ac_status); } && {
9785	 test -z "$ac_c_werror_flag" ||
9786	 test ! -s conftest.err
9787       } && test -s conftest.$ac_objext; then
9788  tcl_cv_type_64bit=${tcl_type_64bit}
9789else
9790  echo "$as_me: failed program was:" >&5
9791sed 's/^/| /' conftest.$ac_ext >&5
9792
9793
9794fi
9795
9796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9797fi
9798
9799    if test "${tcl_cv_type_64bit}" = none ; then
9800
9801cat >>confdefs.h <<\_ACEOF
9802#define TCL_WIDE_INT_IS_LONG 1
9803_ACEOF
9804
9805	{ echo "$as_me:$LINENO: result: using long" >&5
9806echo "${ECHO_T}using long" >&6; }
9807    elif test "${tcl_cv_type_64bit}" = "__int64" \
9808		-a "${TEA_PLATFORM}" = "windows" ; then
9809	# TEA specific: We actually want to use the default tcl.h checks in
9810	# this case to handle both TCL_WIDE_INT_TYPE and TCL_LL_MODIFIER*
9811	{ echo "$as_me:$LINENO: result: using Tcl header defaults" >&5
9812echo "${ECHO_T}using Tcl header defaults" >&6; }
9813    else
9814
9815cat >>confdefs.h <<_ACEOF
9816#define TCL_WIDE_INT_TYPE ${tcl_cv_type_64bit}
9817_ACEOF
9818
9819	{ echo "$as_me:$LINENO: result: ${tcl_cv_type_64bit}" >&5
9820echo "${ECHO_T}${tcl_cv_type_64bit}" >&6; }
9821
9822	# Now check for auxiliary declarations
9823	{ echo "$as_me:$LINENO: checking for struct dirent64" >&5
9824echo $ECHO_N "checking for struct dirent64... $ECHO_C" >&6; }
9825if test "${tcl_cv_struct_dirent64+set}" = set; then
9826  echo $ECHO_N "(cached) $ECHO_C" >&6
9827else
9828
9829	    cat >conftest.$ac_ext <<_ACEOF
9830/* confdefs.h.  */
9831_ACEOF
9832cat confdefs.h >>conftest.$ac_ext
9833cat >>conftest.$ac_ext <<_ACEOF
9834/* end confdefs.h.  */
9835#include <sys/types.h>
9836#include <sys/dirent.h>
9837int
9838main ()
9839{
9840struct dirent64 p;
9841  ;
9842  return 0;
9843}
9844_ACEOF
9845rm -f conftest.$ac_objext
9846if { (ac_try="$ac_compile"
9847case "(($ac_try" in
9848  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9849  *) ac_try_echo=$ac_try;;
9850esac
9851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9852  (eval "$ac_compile") 2>conftest.er1
9853  ac_status=$?
9854  grep -v '^ *+' conftest.er1 >conftest.err
9855  rm -f conftest.er1
9856  cat conftest.err >&5
9857  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858  (exit $ac_status); } && {
9859	 test -z "$ac_c_werror_flag" ||
9860	 test ! -s conftest.err
9861       } && test -s conftest.$ac_objext; then
9862  tcl_cv_struct_dirent64=yes
9863else
9864  echo "$as_me: failed program was:" >&5
9865sed 's/^/| /' conftest.$ac_ext >&5
9866
9867	tcl_cv_struct_dirent64=no
9868fi
9869
9870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9871fi
9872{ echo "$as_me:$LINENO: result: $tcl_cv_struct_dirent64" >&5
9873echo "${ECHO_T}$tcl_cv_struct_dirent64" >&6; }
9874	if test "x${tcl_cv_struct_dirent64}" = "xyes" ; then
9875
9876cat >>confdefs.h <<\_ACEOF
9877#define HAVE_STRUCT_DIRENT64 1
9878_ACEOF
9879
9880	fi
9881
9882	{ echo "$as_me:$LINENO: checking for struct stat64" >&5
9883echo $ECHO_N "checking for struct stat64... $ECHO_C" >&6; }
9884if test "${tcl_cv_struct_stat64+set}" = set; then
9885  echo $ECHO_N "(cached) $ECHO_C" >&6
9886else
9887
9888	    cat >conftest.$ac_ext <<_ACEOF
9889/* confdefs.h.  */
9890_ACEOF
9891cat confdefs.h >>conftest.$ac_ext
9892cat >>conftest.$ac_ext <<_ACEOF
9893/* end confdefs.h.  */
9894#include <sys/stat.h>
9895int
9896main ()
9897{
9898struct stat64 p;
9899
9900  ;
9901  return 0;
9902}
9903_ACEOF
9904rm -f conftest.$ac_objext
9905if { (ac_try="$ac_compile"
9906case "(($ac_try" in
9907  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9908  *) ac_try_echo=$ac_try;;
9909esac
9910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9911  (eval "$ac_compile") 2>conftest.er1
9912  ac_status=$?
9913  grep -v '^ *+' conftest.er1 >conftest.err
9914  rm -f conftest.er1
9915  cat conftest.err >&5
9916  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9917  (exit $ac_status); } && {
9918	 test -z "$ac_c_werror_flag" ||
9919	 test ! -s conftest.err
9920       } && test -s conftest.$ac_objext; then
9921  tcl_cv_struct_stat64=yes
9922else
9923  echo "$as_me: failed program was:" >&5
9924sed 's/^/| /' conftest.$ac_ext >&5
9925
9926	tcl_cv_struct_stat64=no
9927fi
9928
9929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9930fi
9931{ echo "$as_me:$LINENO: result: $tcl_cv_struct_stat64" >&5
9932echo "${ECHO_T}$tcl_cv_struct_stat64" >&6; }
9933	if test "x${tcl_cv_struct_stat64}" = "xyes" ; then
9934
9935cat >>confdefs.h <<\_ACEOF
9936#define HAVE_STRUCT_STAT64 1
9937_ACEOF
9938
9939	fi
9940
9941
9942
9943for ac_func in open64 lseek64
9944do
9945as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9946{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9947echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9948if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9949  echo $ECHO_N "(cached) $ECHO_C" >&6
9950else
9951  cat >conftest.$ac_ext <<_ACEOF
9952/* confdefs.h.  */
9953_ACEOF
9954cat confdefs.h >>conftest.$ac_ext
9955cat >>conftest.$ac_ext <<_ACEOF
9956/* end confdefs.h.  */
9957/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9958   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9959#define $ac_func innocuous_$ac_func
9960
9961/* System header to define __stub macros and hopefully few prototypes,
9962    which can conflict with char $ac_func (); below.
9963    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9964    <limits.h> exists even on freestanding compilers.  */
9965
9966#ifdef __STDC__
9967# include <limits.h>
9968#else
9969# include <assert.h>
9970#endif
9971
9972#undef $ac_func
9973
9974/* Override any GCC internal prototype to avoid an error.
9975   Use char because int might match the return type of a GCC
9976   builtin and then its argument prototype would still apply.  */
9977#ifdef __cplusplus
9978extern "C"
9979#endif
9980char $ac_func ();
9981/* The GNU C library defines this for functions which it implements
9982    to always fail with ENOSYS.  Some functions are actually named
9983    something starting with __ and the normal name is an alias.  */
9984#if defined __stub_$ac_func || defined __stub___$ac_func
9985choke me
9986#endif
9987
9988int
9989main ()
9990{
9991return $ac_func ();
9992  ;
9993  return 0;
9994}
9995_ACEOF
9996rm -f conftest.$ac_objext conftest$ac_exeext
9997if { (ac_try="$ac_link"
9998case "(($ac_try" in
9999  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10000  *) ac_try_echo=$ac_try;;
10001esac
10002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10003  (eval "$ac_link") 2>conftest.er1
10004  ac_status=$?
10005  grep -v '^ *+' conftest.er1 >conftest.err
10006  rm -f conftest.er1
10007  cat conftest.err >&5
10008  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10009  (exit $ac_status); } && {
10010	 test -z "$ac_c_werror_flag" ||
10011	 test ! -s conftest.err
10012       } && test -s conftest$ac_exeext &&
10013       $as_test_x conftest$ac_exeext; then
10014  eval "$as_ac_var=yes"
10015else
10016  echo "$as_me: failed program was:" >&5
10017sed 's/^/| /' conftest.$ac_ext >&5
10018
10019	eval "$as_ac_var=no"
10020fi
10021
10022rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10023      conftest$ac_exeext conftest.$ac_ext
10024fi
10025ac_res=`eval echo '${'$as_ac_var'}'`
10026	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10027echo "${ECHO_T}$ac_res" >&6; }
10028if test `eval echo '${'$as_ac_var'}'` = yes; then
10029  cat >>confdefs.h <<_ACEOF
10030#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10031_ACEOF
10032
10033fi
10034done
10035
10036	{ echo "$as_me:$LINENO: checking for off64_t" >&5
10037echo $ECHO_N "checking for off64_t... $ECHO_C" >&6; }
10038	if test "${tcl_cv_type_off64_t+set}" = set; then
10039  echo $ECHO_N "(cached) $ECHO_C" >&6
10040else
10041
10042	    cat >conftest.$ac_ext <<_ACEOF
10043/* confdefs.h.  */
10044_ACEOF
10045cat confdefs.h >>conftest.$ac_ext
10046cat >>conftest.$ac_ext <<_ACEOF
10047/* end confdefs.h.  */
10048#include <sys/types.h>
10049int
10050main ()
10051{
10052off64_t offset;
10053
10054  ;
10055  return 0;
10056}
10057_ACEOF
10058rm -f conftest.$ac_objext
10059if { (ac_try="$ac_compile"
10060case "(($ac_try" in
10061  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10062  *) ac_try_echo=$ac_try;;
10063esac
10064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10065  (eval "$ac_compile") 2>conftest.er1
10066  ac_status=$?
10067  grep -v '^ *+' conftest.er1 >conftest.err
10068  rm -f conftest.er1
10069  cat conftest.err >&5
10070  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10071  (exit $ac_status); } && {
10072	 test -z "$ac_c_werror_flag" ||
10073	 test ! -s conftest.err
10074       } && test -s conftest.$ac_objext; then
10075  tcl_cv_type_off64_t=yes
10076else
10077  echo "$as_me: failed program was:" >&5
10078sed 's/^/| /' conftest.$ac_ext >&5
10079
10080	tcl_cv_type_off64_t=no
10081fi
10082
10083rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10084fi
10085
10086			if test "x${tcl_cv_type_off64_t}" = "xyes" && \
10087	        test "x${ac_cv_func_lseek64}" = "xyes" && \
10088	        test "x${ac_cv_func_open64}" = "xyes" ; then
10089
10090cat >>confdefs.h <<\_ACEOF
10091#define HAVE_TYPE_OFF64_T 1
10092_ACEOF
10093
10094	    { echo "$as_me:$LINENO: result: yes" >&5
10095echo "${ECHO_T}yes" >&6; }
10096	else
10097	    { echo "$as_me:$LINENO: result: no" >&5
10098echo "${ECHO_T}no" >&6; }
10099	fi
10100    fi
10101
10102
10103
10104
10105    { echo "$as_me:$LINENO: checking for build with symbols" >&5
10106echo $ECHO_N "checking for build with symbols... $ECHO_C" >&6; }
10107    # Check whether --enable-symbols was given.
10108if test "${enable_symbols+set}" = set; then
10109  enableval=$enable_symbols; tcl_ok=$enableval
10110else
10111  tcl_ok=no
10112fi
10113
10114    DBGX=""
10115    if test "$tcl_ok" = "no"; then
10116	CFLAGS_DEFAULT="${CFLAGS_OPTIMIZE}"
10117	LDFLAGS_DEFAULT="${LDFLAGS_OPTIMIZE}"
10118	{ echo "$as_me:$LINENO: result: no" >&5
10119echo "${ECHO_T}no" >&6; }
10120    else
10121	CFLAGS_DEFAULT="${CFLAGS_DEBUG}"
10122	LDFLAGS_DEFAULT="${LDFLAGS_DEBUG}"
10123	if test "$tcl_ok" = "yes"; then
10124	    { echo "$as_me:$LINENO: result: yes (standard debugging)" >&5
10125echo "${ECHO_T}yes (standard debugging)" >&6; }
10126	fi
10127    fi
10128    # TEA specific:
10129    if test "${TEA_PLATFORM}" != "windows" ; then
10130	LDFLAGS_DEFAULT="${LDFLAGS}"
10131    fi
10132
10133
10134
10135
10136    if test "$tcl_ok" = "mem" -o "$tcl_ok" = "all"; then
10137
10138cat >>confdefs.h <<\_ACEOF
10139#define TCL_MEM_DEBUG 1
10140_ACEOF
10141
10142    fi
10143
10144    if test "$tcl_ok" != "yes" -a "$tcl_ok" != "no"; then
10145	if test "$tcl_ok" = "all"; then
10146	    { echo "$as_me:$LINENO: result: enabled symbols mem debugging" >&5
10147echo "${ECHO_T}enabled symbols mem debugging" >&6; }
10148	else
10149	    { echo "$as_me:$LINENO: result: enabled $tcl_ok debugging" >&5
10150echo "${ECHO_T}enabled $tcl_ok debugging" >&6; }
10151	fi
10152    fi
10153
10154
10155if test "${SHARED_BUILD}" = "1"; then
10156cat >>confdefs.h <<\_ACEOF
10157#define USE_TCL_STUBS 1
10158_ACEOF
10159
10160fi
10161
10162
10163    if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes"; then
10164	MAKE_STATIC_LIB="\${STLIB_LD} -out:\$@ \$(PKG_OBJECTS)"
10165	MAKE_SHARED_LIB="\${SHLIB_LD} \${SHLIB_LD_LIBS} \${LDFLAGS_DEFAULT} -out:\$@ \$(PKG_OBJECTS)"
10166	cat >conftest.$ac_ext <<_ACEOF
10167/* confdefs.h.  */
10168_ACEOF
10169cat confdefs.h >>conftest.$ac_ext
10170cat >>conftest.$ac_ext <<_ACEOF
10171/* end confdefs.h.  */
10172
10173#if defined(_MSC_VER) && _MSC_VER >= 1400
10174print("manifest needed")
10175#endif
10176
10177_ACEOF
10178if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10179  $EGREP "manifest needed" >/dev/null 2>&1; then
10180
10181	# Could do a CHECK_PROG for mt, but should always be with MSVC8+
10182	VC_MANIFEST_EMBED_DLL="mt.exe -nologo -manifest \$@.manifest -outputresource:\$@\;2"
10183	VC_MANIFEST_EMBED_EXE="mt.exe -nologo -manifest \$@.manifest -outputresource:\$@\;1"
10184	MAKE_SHARED_LIB="${MAKE_SHARED_LIB} ; ${VC_MANIFEST_EMBED_DLL}"
10185
10186    CLEANFILES="$CLEANFILES *.manifest"
10187
10188
10189fi
10190rm -f -r conftest*
10191
10192	MAKE_STUB_LIB="\${STLIB_LD} -out:\$@ \$(PKG_STUB_OBJECTS)"
10193    else
10194	MAKE_STATIC_LIB="\${STLIB_LD} \$@ \$(PKG_OBJECTS)"
10195	MAKE_SHARED_LIB="\${SHLIB_LD} -o \$@ \$(PKG_OBJECTS) \${SHLIB_LD_LIBS}"
10196	MAKE_STUB_LIB="\${STLIB_LD} \$@ \$(PKG_STUB_OBJECTS)"
10197    fi
10198
10199    if test "${SHARED_BUILD}" = "1" ; then
10200	MAKE_LIB="${MAKE_SHARED_LIB} "
10201    else
10202	MAKE_LIB="${MAKE_STATIC_LIB} "
10203    fi
10204
10205    #--------------------------------------------------------------------
10206    # Shared libraries and static libraries have different names.
10207    # Use the double eval to make sure any variables in the suffix is
10208    # substituted. (@@@ Might not be necessary anymore)
10209    #--------------------------------------------------------------------
10210
10211    if test "${TEA_PLATFORM}" = "windows" ; then
10212	if test "${SHARED_BUILD}" = "1" ; then
10213	    # We force the unresolved linking of symbols that are really in
10214	    # the private libraries of Tcl and Tk.
10215	    SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}`\""
10216	    if test x"${TK_BIN_DIR}" != x ; then
10217		SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${TK_BIN_DIR}/${TK_STUB_LIB_FILE}`\""
10218	    fi
10219	    eval eval "PKG_LIB_FILE=${PACKAGE_NAME}${SHARED_LIB_SUFFIX}"
10220	else
10221	    eval eval "PKG_LIB_FILE=${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}"
10222	fi
10223	# Some packages build their own stubs libraries
10224	eval eval "PKG_STUB_LIB_FILE=${PACKAGE_NAME}stub${UNSHARED_LIB_SUFFIX}"
10225	if test "$GCC" = "yes"; then
10226	    PKG_STUB_LIB_FILE=lib${PKG_STUB_LIB_FILE}
10227	fi
10228	# These aren't needed on Windows (either MSVC or gcc)
10229	RANLIB=:
10230	RANLIB_STUB=:
10231    else
10232	RANLIB_STUB="${RANLIB}"
10233	if test "${SHARED_BUILD}" = "1" ; then
10234	    SHLIB_LD_LIBS="${SHLIB_LD_LIBS} ${TCL_STUB_LIB_SPEC}"
10235	    if test x"${TK_BIN_DIR}" != x ; then
10236		SHLIB_LD_LIBS="${SHLIB_LD_LIBS} ${TK_STUB_LIB_SPEC}"
10237	    fi
10238	    eval eval "PKG_LIB_FILE=lib${PACKAGE_NAME}${SHARED_LIB_SUFFIX}"
10239	    RANLIB=:
10240	else
10241	    eval eval "PKG_LIB_FILE=lib${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}"
10242	fi
10243	# Some packages build their own stubs libraries
10244	eval eval "PKG_STUB_LIB_FILE=lib${PACKAGE_NAME}stub${UNSHARED_LIB_SUFFIX}"
10245    fi
10246
10247    # These are escaped so that only CFLAGS is picked up at configure time.
10248    # The other values will be substituted at make time.
10249    CFLAGS="${CFLAGS} \${CFLAGS_DEFAULT} \${CFLAGS_WARNING}"
10250    if test "${SHARED_BUILD}" = "1" ; then
10251	CFLAGS="${CFLAGS} \${SHLIB_CFLAGS}"
10252    fi
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264    { echo "$as_me:$LINENO: checking for tclsh" >&5
10265echo $ECHO_N "checking for tclsh... $ECHO_C" >&6; }
10266    if test -f "${TCL_BIN_DIR}/Makefile" ; then
10267        # tclConfig.sh is in Tcl build directory
10268        if test "${TEA_PLATFORM}" = "windows"; then
10269            TCLSH_PROG="${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${TCL_DBGX}${EXEEXT}"
10270        else
10271            TCLSH_PROG="${TCL_BIN_DIR}/tclsh"
10272        fi
10273    else
10274        # tclConfig.sh is in install location
10275        if test "${TEA_PLATFORM}" = "windows"; then
10276            TCLSH_PROG="tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${TCL_DBGX}${EXEEXT}"
10277        else
10278            TCLSH_PROG="tclsh${TCL_MAJOR_VERSION}.${TCL_MINOR_VERSION}${TCL_DBGX}"
10279        fi
10280        list="`ls -d ${TCL_BIN_DIR}/../bin 2>/dev/null` \
10281              `ls -d ${TCL_BIN_DIR}/..     2>/dev/null` \
10282              `ls -d ${TCL_PREFIX}/bin     2>/dev/null`"
10283        for i in $list ; do
10284            if test -f "$i/${TCLSH_PROG}" ; then
10285                REAL_TCL_BIN_DIR="`cd "$i"; pwd`/"
10286                break
10287            fi
10288        done
10289        TCLSH_PROG="${REAL_TCL_BIN_DIR}${TCLSH_PROG}"
10290    fi
10291    { echo "$as_me:$LINENO: result: ${TCLSH_PROG}" >&5
10292echo "${ECHO_T}${TCLSH_PROG}" >&6; }
10293
10294
10295
10296ac_config_files="$ac_config_files Makefile pkgIndex.tcl library/vfs.tcl"
10297
10298cat >confcache <<\_ACEOF
10299# This file is a shell script that caches the results of configure
10300# tests run on this system so they can be shared between configure
10301# scripts and configure runs, see configure's option --config-cache.
10302# It is not useful on other systems.  If it contains results you don't
10303# want to keep, you may remove or edit it.
10304#
10305# config.status only pays attention to the cache file if you give it
10306# the --recheck option to rerun configure.
10307#
10308# `ac_cv_env_foo' variables (set or unset) will be overridden when
10309# loading this file, other *unset* `ac_cv_foo' will be assigned the
10310# following values.
10311
10312_ACEOF
10313
10314# The following way of writing the cache mishandles newlines in values,
10315# but we know of no workaround that is simple, portable, and efficient.
10316# So, we kill variables containing newlines.
10317# Ultrix sh set writes to stderr and can't be redirected directly,
10318# and sets the high bit in the cache file unless we assign to the vars.
10319(
10320  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10321    eval ac_val=\$$ac_var
10322    case $ac_val in #(
10323    *${as_nl}*)
10324      case $ac_var in #(
10325      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
10326echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
10327      esac
10328      case $ac_var in #(
10329      _ | IFS | as_nl) ;; #(
10330      *) $as_unset $ac_var ;;
10331      esac ;;
10332    esac
10333  done
10334
10335  (set) 2>&1 |
10336    case $as_nl`(ac_space=' '; set) 2>&1` in #(
10337    *${as_nl}ac_space=\ *)
10338      # `set' does not quote correctly, so add quotes (double-quote
10339      # substitution turns \\\\ into \\, and sed turns \\ into \).
10340      sed -n \
10341	"s/'/'\\\\''/g;
10342	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10343      ;; #(
10344    *)
10345      # `set' quotes correctly as required by POSIX, so do not add quotes.
10346      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10347      ;;
10348    esac |
10349    sort
10350) |
10351  sed '
10352     /^ac_cv_env_/b end
10353     t clear
10354     :clear
10355     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10356     t end
10357     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10358     :end' >>confcache
10359if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10360  if test -w "$cache_file"; then
10361    test "x$cache_file" != "x/dev/null" &&
10362      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
10363echo "$as_me: updating cache $cache_file" >&6;}
10364    cat confcache >$cache_file
10365  else
10366    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
10367echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10368  fi
10369fi
10370rm -f confcache
10371
10372test "x$prefix" = xNONE && prefix=$ac_default_prefix
10373# Let make expand exec_prefix.
10374test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10375
10376# Transform confdefs.h into DEFS.
10377# Protect against shell expansion while executing Makefile rules.
10378# Protect against Makefile macro expansion.
10379#
10380# If the first sed substitution is executed (which looks for macros that
10381# take arguments), then branch to the quote section.  Otherwise,
10382# look for a macro that doesn't take arguments.
10383ac_script='
10384t clear
10385:clear
10386s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\)/-D\1=\2/g
10387t quote
10388s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)/-D\1=\2/g
10389t quote
10390b any
10391:quote
10392s/[	 `~#$^&*(){}\\|;'\''"<>?]/\\&/g
10393s/\[/\\&/g
10394s/\]/\\&/g
10395s/\$/$$/g
10396H
10397:any
10398${
10399	g
10400	s/^\n//
10401	s/\n/ /g
10402	p
10403}
10404'
10405DEFS=`sed -n "$ac_script" confdefs.h`
10406
10407
10408ac_libobjs=
10409ac_ltlibobjs=
10410for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10411  # 1. Remove the extension, and $U if already installed.
10412  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10413  ac_i=`echo "$ac_i" | sed "$ac_script"`
10414  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
10415  #    will be set to the directory where LIBOBJS objects are built.
10416  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10417  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
10418done
10419LIBOBJS=$ac_libobjs
10420
10421LTLIBOBJS=$ac_ltlibobjs
10422
10423
10424CFLAGS="${CFLAGS} ${CPPFLAGS}"; CPPFLAGS=""
10425
10426: ${CONFIG_STATUS=./config.status}
10427ac_clean_files_save=$ac_clean_files
10428ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10429{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10430echo "$as_me: creating $CONFIG_STATUS" >&6;}
10431cat >$CONFIG_STATUS <<_ACEOF
10432#! $SHELL
10433# Generated by $as_me.
10434# Run this file to recreate the current configuration.
10435# Compiler output produced by configure, useful for debugging
10436# configure, is in config.log if it exists.
10437
10438debug=false
10439ac_cs_recheck=false
10440ac_cs_silent=false
10441SHELL=\${CONFIG_SHELL-$SHELL}
10442_ACEOF
10443
10444cat >>$CONFIG_STATUS <<\_ACEOF
10445## --------------------- ##
10446## M4sh Initialization.  ##
10447## --------------------- ##
10448
10449# Be more Bourne compatible
10450DUALCASE=1; export DUALCASE # for MKS sh
10451if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10452  emulate sh
10453  NULLCMD=:
10454  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10455  # is contrary to our usage.  Disable this feature.
10456  alias -g '${1+"$@"}'='"$@"'
10457  setopt NO_GLOB_SUBST
10458else
10459  case `(set -o) 2>/dev/null` in
10460  *posix*) set -o posix ;;
10461esac
10462
10463fi
10464
10465
10466
10467
10468# PATH needs CR
10469# Avoid depending upon Character Ranges.
10470as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10471as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10472as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10473as_cr_digits='0123456789'
10474as_cr_alnum=$as_cr_Letters$as_cr_digits
10475
10476# The user is always right.
10477if test "${PATH_SEPARATOR+set}" != set; then
10478  echo "#! /bin/sh" >conf$$.sh
10479  echo  "exit 0"   >>conf$$.sh
10480  chmod +x conf$$.sh
10481  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10482    PATH_SEPARATOR=';'
10483  else
10484    PATH_SEPARATOR=:
10485  fi
10486  rm -f conf$$.sh
10487fi
10488
10489# Support unset when possible.
10490if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10491  as_unset=unset
10492else
10493  as_unset=false
10494fi
10495
10496
10497# IFS
10498# We need space, tab and new line, in precisely that order.  Quoting is
10499# there to prevent editors from complaining about space-tab.
10500# (If _AS_PATH_WALK were called with IFS unset, it would disable word
10501# splitting by setting IFS to empty value.)
10502as_nl='
10503'
10504IFS=" ""	$as_nl"
10505
10506# Find who we are.  Look in the path if we contain no directory separator.
10507case $0 in
10508  *[\\/]* ) as_myself=$0 ;;
10509  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10510for as_dir in $PATH
10511do
10512  IFS=$as_save_IFS
10513  test -z "$as_dir" && as_dir=.
10514  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10515done
10516IFS=$as_save_IFS
10517
10518     ;;
10519esac
10520# We did not find ourselves, most probably we were run as `sh COMMAND'
10521# in which case we are not to be found in the path.
10522if test "x$as_myself" = x; then
10523  as_myself=$0
10524fi
10525if test ! -f "$as_myself"; then
10526  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10527  { (exit 1); exit 1; }
10528fi
10529
10530# Work around bugs in pre-3.0 UWIN ksh.
10531for as_var in ENV MAIL MAILPATH
10532do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
10533done
10534PS1='$ '
10535PS2='> '
10536PS4='+ '
10537
10538# NLS nuisances.
10539for as_var in \
10540  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10541  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10542  LC_TELEPHONE LC_TIME
10543do
10544  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10545    eval $as_var=C; export $as_var
10546  else
10547    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
10548  fi
10549done
10550
10551# Required to use basename.
10552if expr a : '\(a\)' >/dev/null 2>&1 &&
10553   test "X`expr 00001 : '.*\(...\)'`" = X001; then
10554  as_expr=expr
10555else
10556  as_expr=false
10557fi
10558
10559if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10560  as_basename=basename
10561else
10562  as_basename=false
10563fi
10564
10565
10566# Name of the executable.
10567as_me=`$as_basename -- "$0" ||
10568$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10569	 X"$0" : 'X\(//\)$' \| \
10570	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10571echo X/"$0" |
10572    sed '/^.*\/\([^/][^/]*\)\/*$/{
10573	    s//\1/
10574	    q
10575	  }
10576	  /^X\/\(\/\/\)$/{
10577	    s//\1/
10578	    q
10579	  }
10580	  /^X\/\(\/\).*/{
10581	    s//\1/
10582	    q
10583	  }
10584	  s/.*/./; q'`
10585
10586# CDPATH.
10587$as_unset CDPATH
10588
10589
10590
10591  as_lineno_1=$LINENO
10592  as_lineno_2=$LINENO
10593  test "x$as_lineno_1" != "x$as_lineno_2" &&
10594  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
10595
10596  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10597  # uniformly replaced by the line number.  The first 'sed' inserts a
10598  # line-number line after each line using $LINENO; the second 'sed'
10599  # does the real work.  The second script uses 'N' to pair each
10600  # line-number line with the line containing $LINENO, and appends
10601  # trailing '-' during substitution so that $LINENO is not a special
10602  # case at line end.
10603  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10604  # scripts with optimization help from Paolo Bonzini.  Blame Lee
10605  # E. McMahon (1931-1989) for sed's syntax.  :-)
10606  sed -n '
10607    p
10608    /[$]LINENO/=
10609  ' <$as_myself |
10610    sed '
10611      s/[$]LINENO.*/&-/
10612      t lineno
10613      b
10614      :lineno
10615      N
10616      :loop
10617      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
10618      t loop
10619      s/-\n.*//
10620    ' >$as_me.lineno &&
10621  chmod +x "$as_me.lineno" ||
10622    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
10623   { (exit 1); exit 1; }; }
10624
10625  # Don't try to exec as it changes $[0], causing all sort of problems
10626  # (the dirname of $[0] is not the place where we might find the
10627  # original and so on.  Autoconf is especially sensitive to this).
10628  . "./$as_me.lineno"
10629  # Exit status is that of the last command.
10630  exit
10631}
10632
10633
10634if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10635  as_dirname=dirname
10636else
10637  as_dirname=false
10638fi
10639
10640ECHO_C= ECHO_N= ECHO_T=
10641case `echo -n x` in
10642-n*)
10643  case `echo 'x\c'` in
10644  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
10645  *)   ECHO_C='\c';;
10646  esac;;
10647*)
10648  ECHO_N='-n';;
10649esac
10650
10651if expr a : '\(a\)' >/dev/null 2>&1 &&
10652   test "X`expr 00001 : '.*\(...\)'`" = X001; then
10653  as_expr=expr
10654else
10655  as_expr=false
10656fi
10657
10658rm -f conf$$ conf$$.exe conf$$.file
10659if test -d conf$$.dir; then
10660  rm -f conf$$.dir/conf$$.file
10661else
10662  rm -f conf$$.dir
10663  mkdir conf$$.dir
10664fi
10665echo >conf$$.file
10666if ln -s conf$$.file conf$$ 2>/dev/null; then
10667  as_ln_s='ln -s'
10668  # ... but there are two gotchas:
10669  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10670  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10671  # In both cases, we have to default to `cp -p'.
10672  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10673    as_ln_s='cp -p'
10674elif ln conf$$.file conf$$ 2>/dev/null; then
10675  as_ln_s=ln
10676else
10677  as_ln_s='cp -p'
10678fi
10679rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10680rmdir conf$$.dir 2>/dev/null
10681
10682if mkdir -p . 2>/dev/null; then
10683  as_mkdir_p=:
10684else
10685  test -d ./-p && rmdir ./-p
10686  as_mkdir_p=false
10687fi
10688
10689if test -x / >/dev/null 2>&1; then
10690  as_test_x='test -x'
10691else
10692  if ls -dL / >/dev/null 2>&1; then
10693    as_ls_L_option=L
10694  else
10695    as_ls_L_option=
10696  fi
10697  as_test_x='
10698    eval sh -c '\''
10699      if test -d "$1"; then
10700        test -d "$1/.";
10701      else
10702	case $1 in
10703        -*)set "./$1";;
10704	esac;
10705	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
10706	???[sx]*):;;*)false;;esac;fi
10707    '\'' sh
10708  '
10709fi
10710as_executable_p=$as_test_x
10711
10712# Sed expression to map a string onto a valid CPP name.
10713as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10714
10715# Sed expression to map a string onto a valid variable name.
10716as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10717
10718
10719exec 6>&1
10720
10721# Save the log message, to keep $[0] and so on meaningful, and to
10722# report actual input values of CONFIG_FILES etc. instead of their
10723# values after options handling.
10724ac_log="
10725This file was extended by vfs $as_me 1.4.1, which was
10726generated by GNU Autoconf 2.61.  Invocation command line was
10727
10728  CONFIG_FILES    = $CONFIG_FILES
10729  CONFIG_HEADERS  = $CONFIG_HEADERS
10730  CONFIG_LINKS    = $CONFIG_LINKS
10731  CONFIG_COMMANDS = $CONFIG_COMMANDS
10732  $ $0 $@
10733
10734on `(hostname || uname -n) 2>/dev/null | sed 1q`
10735"
10736
10737_ACEOF
10738
10739cat >>$CONFIG_STATUS <<_ACEOF
10740# Files that config.status was made for.
10741config_files="$ac_config_files"
10742
10743_ACEOF
10744
10745cat >>$CONFIG_STATUS <<\_ACEOF
10746ac_cs_usage="\
10747\`$as_me' instantiates files from templates according to the
10748current configuration.
10749
10750Usage: $0 [OPTIONS] [FILE]...
10751
10752  -h, --help       print this help, then exit
10753  -V, --version    print version number and configuration settings, then exit
10754  -q, --quiet      do not print progress messages
10755  -d, --debug      don't remove temporary files
10756      --recheck    update $as_me by reconfiguring in the same conditions
10757  --file=FILE[:TEMPLATE]
10758		   instantiate the configuration file FILE
10759
10760Configuration files:
10761$config_files
10762
10763Report bugs to <bug-autoconf@gnu.org>."
10764
10765_ACEOF
10766cat >>$CONFIG_STATUS <<_ACEOF
10767ac_cs_version="\\
10768vfs config.status 1.4.1
10769configured by $0, generated by GNU Autoconf 2.61,
10770  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
10771
10772Copyright (C) 2006 Free Software Foundation, Inc.
10773This config.status script is free software; the Free Software Foundation
10774gives unlimited permission to copy, distribute and modify it."
10775
10776ac_pwd='$ac_pwd'
10777srcdir='$srcdir'
10778INSTALL='$INSTALL'
10779_ACEOF
10780
10781cat >>$CONFIG_STATUS <<\_ACEOF
10782# If no file are specified by the user, then we need to provide default
10783# value.  By we need to know if files were specified by the user.
10784ac_need_defaults=:
10785while test $# != 0
10786do
10787  case $1 in
10788  --*=*)
10789    ac_option=`expr "X$1" : 'X\([^=]*\)='`
10790    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10791    ac_shift=:
10792    ;;
10793  *)
10794    ac_option=$1
10795    ac_optarg=$2
10796    ac_shift=shift
10797    ;;
10798  esac
10799
10800  case $ac_option in
10801  # Handling of the options.
10802  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10803    ac_cs_recheck=: ;;
10804  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10805    echo "$ac_cs_version"; exit ;;
10806  --debug | --debu | --deb | --de | --d | -d )
10807    debug=: ;;
10808  --file | --fil | --fi | --f )
10809    $ac_shift
10810    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10811    ac_need_defaults=false;;
10812  --he | --h |  --help | --hel | -h )
10813    echo "$ac_cs_usage"; exit ;;
10814  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10815  | -silent | --silent | --silen | --sile | --sil | --si | --s)
10816    ac_cs_silent=: ;;
10817
10818  # This is an error.
10819  -*) { echo "$as_me: error: unrecognized option: $1
10820Try \`$0 --help' for more information." >&2
10821   { (exit 1); exit 1; }; } ;;
10822
10823  *) ac_config_targets="$ac_config_targets $1"
10824     ac_need_defaults=false ;;
10825
10826  esac
10827  shift
10828done
10829
10830ac_configure_extra_args=
10831
10832if $ac_cs_silent; then
10833  exec 6>/dev/null
10834  ac_configure_extra_args="$ac_configure_extra_args --silent"
10835fi
10836
10837_ACEOF
10838cat >>$CONFIG_STATUS <<_ACEOF
10839if \$ac_cs_recheck; then
10840  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10841  CONFIG_SHELL=$SHELL
10842  export CONFIG_SHELL
10843  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10844fi
10845
10846_ACEOF
10847cat >>$CONFIG_STATUS <<\_ACEOF
10848exec 5>>config.log
10849{
10850  echo
10851  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10852## Running $as_me. ##
10853_ASBOX
10854  echo "$ac_log"
10855} >&5
10856
10857_ACEOF
10858cat >>$CONFIG_STATUS <<_ACEOF
10859_ACEOF
10860
10861cat >>$CONFIG_STATUS <<\_ACEOF
10862
10863# Handling of arguments.
10864for ac_config_target in $ac_config_targets
10865do
10866  case $ac_config_target in
10867    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10868    "pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES pkgIndex.tcl" ;;
10869    "library/vfs.tcl") CONFIG_FILES="$CONFIG_FILES library/vfs.tcl" ;;
10870
10871  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10872echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10873   { (exit 1); exit 1; }; };;
10874  esac
10875done
10876
10877
10878# If the user did not use the arguments to specify the items to instantiate,
10879# then the envvar interface is used.  Set only those that are not.
10880# We use the long form for the default assignment because of an extremely
10881# bizarre bug on SunOS 4.1.3.
10882if $ac_need_defaults; then
10883  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10884fi
10885
10886# Have a temporary directory for convenience.  Make it in the build tree
10887# simply because there is no reason against having it here, and in addition,
10888# creating and moving files from /tmp can sometimes cause problems.
10889# Hook for its removal unless debugging.
10890# Note that there is a small window in which the directory will not be cleaned:
10891# after its creation but before its name has been assigned to `$tmp'.
10892$debug ||
10893{
10894  tmp=
10895  trap 'exit_status=$?
10896  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
10897' 0
10898  trap '{ (exit 1); exit 1; }' 1 2 13 15
10899}
10900# Create a (secure) tmp directory for tmp files.
10901
10902{
10903  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10904  test -n "$tmp" && test -d "$tmp"
10905}  ||
10906{
10907  tmp=./conf$$-$RANDOM
10908  (umask 077 && mkdir "$tmp")
10909} ||
10910{
10911   echo "$me: cannot create a temporary directory in ." >&2
10912   { (exit 1); exit 1; }
10913}
10914
10915#
10916# Set up the sed scripts for CONFIG_FILES section.
10917#
10918
10919# No need to generate the scripts if there are no CONFIG_FILES.
10920# This happens for instance when ./config.status config.h
10921if test -n "$CONFIG_FILES"; then
10922
10923_ACEOF
10924
10925
10926
10927ac_delim='%!_!# '
10928for ac_last_try in false false false false false :; do
10929  cat >conf$$subs.sed <<_ACEOF
10930SHELL!$SHELL$ac_delim
10931PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
10932PACKAGE_NAME!$PACKAGE_NAME$ac_delim
10933PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
10934PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
10935PACKAGE_STRING!$PACKAGE_STRING$ac_delim
10936PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
10937exec_prefix!$exec_prefix$ac_delim
10938prefix!$prefix$ac_delim
10939program_transform_name!$program_transform_name$ac_delim
10940bindir!$bindir$ac_delim
10941sbindir!$sbindir$ac_delim
10942libexecdir!$libexecdir$ac_delim
10943datarootdir!$datarootdir$ac_delim
10944datadir!$datadir$ac_delim
10945sysconfdir!$sysconfdir$ac_delim
10946sharedstatedir!$sharedstatedir$ac_delim
10947localstatedir!$localstatedir$ac_delim
10948includedir!$includedir$ac_delim
10949oldincludedir!$oldincludedir$ac_delim
10950docdir!$docdir$ac_delim
10951infodir!$infodir$ac_delim
10952htmldir!$htmldir$ac_delim
10953dvidir!$dvidir$ac_delim
10954pdfdir!$pdfdir$ac_delim
10955psdir!$psdir$ac_delim
10956libdir!$libdir$ac_delim
10957localedir!$localedir$ac_delim
10958mandir!$mandir$ac_delim
10959DEFS!$DEFS$ac_delim
10960ECHO_C!$ECHO_C$ac_delim
10961ECHO_N!$ECHO_N$ac_delim
10962ECHO_T!$ECHO_T$ac_delim
10963LIBS!$LIBS$ac_delim
10964build_alias!$build_alias$ac_delim
10965host_alias!$host_alias$ac_delim
10966target_alias!$target_alias$ac_delim
10967CYGPATH!$CYGPATH$ac_delim
10968EXEEXT!$EXEEXT$ac_delim
10969PKG_LIB_FILE!$PKG_LIB_FILE$ac_delim
10970PKG_STUB_LIB_FILE!$PKG_STUB_LIB_FILE$ac_delim
10971PKG_STUB_SOURCES!$PKG_STUB_SOURCES$ac_delim
10972PKG_STUB_OBJECTS!$PKG_STUB_OBJECTS$ac_delim
10973PKG_TCL_SOURCES!$PKG_TCL_SOURCES$ac_delim
10974PKG_HEADERS!$PKG_HEADERS$ac_delim
10975PKG_INCLUDES!$PKG_INCLUDES$ac_delim
10976PKG_LIBS!$PKG_LIBS$ac_delim
10977PKG_CFLAGS!$PKG_CFLAGS$ac_delim
10978TCL_VERSION!$TCL_VERSION$ac_delim
10979TCL_PATCH_LEVEL!$TCL_PATCH_LEVEL$ac_delim
10980TCL_BIN_DIR!$TCL_BIN_DIR$ac_delim
10981TCL_SRC_DIR!$TCL_SRC_DIR$ac_delim
10982TCL_LIB_FILE!$TCL_LIB_FILE$ac_delim
10983TCL_LIB_FLAG!$TCL_LIB_FLAG$ac_delim
10984TCL_LIB_SPEC!$TCL_LIB_SPEC$ac_delim
10985TCL_STUB_LIB_FILE!$TCL_STUB_LIB_FILE$ac_delim
10986TCL_STUB_LIB_FLAG!$TCL_STUB_LIB_FLAG$ac_delim
10987TCL_STUB_LIB_SPEC!$TCL_STUB_LIB_SPEC$ac_delim
10988CLEANFILES!$CLEANFILES$ac_delim
10989TCL_LIBS!$TCL_LIBS$ac_delim
10990TCL_DEFS!$TCL_DEFS$ac_delim
10991TCL_EXTRA_CFLAGS!$TCL_EXTRA_CFLAGS$ac_delim
10992TCL_LD_FLAGS!$TCL_LD_FLAGS$ac_delim
10993TCL_SHLIB_LD_LIBS!$TCL_SHLIB_LD_LIBS$ac_delim
10994CC!$CC$ac_delim
10995CFLAGS!$CFLAGS$ac_delim
10996LDFLAGS!$LDFLAGS$ac_delim
10997CPPFLAGS!$CPPFLAGS$ac_delim
10998ac_ct_CC!$ac_ct_CC$ac_delim
10999OBJEXT!$OBJEXT$ac_delim
11000CPP!$CPP$ac_delim
11001INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
11002INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
11003INSTALL_DATA!$INSTALL_DATA$ac_delim
11004SET_MAKE!$SET_MAKE$ac_delim
11005RANLIB!$RANLIB$ac_delim
11006GREP!$GREP$ac_delim
11007EGREP!$EGREP$ac_delim
11008MATH_LIBS!$MATH_LIBS$ac_delim
11009PKG_SOURCES!$PKG_SOURCES$ac_delim
11010PKG_OBJECTS!$PKG_OBJECTS$ac_delim
11011TCL_INCLUDES!$TCL_INCLUDES$ac_delim
11012TCL_TOP_DIR_NATIVE!$TCL_TOP_DIR_NATIVE$ac_delim
11013TCL_THREADS!$TCL_THREADS$ac_delim
11014SHARED_BUILD!$SHARED_BUILD$ac_delim
11015AR!$AR$ac_delim
11016CELIB_DIR!$CELIB_DIR$ac_delim
11017CFLAGS_DEBUG!$CFLAGS_DEBUG$ac_delim
11018CFLAGS_OPTIMIZE!$CFLAGS_OPTIMIZE$ac_delim
11019CFLAGS_WARNING!$CFLAGS_WARNING$ac_delim
11020STLIB_LD!$STLIB_LD$ac_delim
11021SHLIB_LD!$SHLIB_LD$ac_delim
11022SHLIB_LD_LIBS!$SHLIB_LD_LIBS$ac_delim
11023SHLIB_CFLAGS!$SHLIB_CFLAGS$ac_delim
11024LD_LIBRARY_PATH_VAR!$LD_LIBRARY_PATH_VAR$ac_delim
11025CFLAGS_DEFAULT!$CFLAGS_DEFAULT$ac_delim
11026LDFLAGS_DEFAULT!$LDFLAGS_DEFAULT$ac_delim
11027_ACEOF
11028
11029  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
11030    break
11031  elif $ac_last_try; then
11032    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
11033echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
11034   { (exit 1); exit 1; }; }
11035  else
11036    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11037  fi
11038done
11039
11040ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
11041if test -n "$ac_eof"; then
11042  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
11043  ac_eof=`expr $ac_eof + 1`
11044fi
11045
11046cat >>$CONFIG_STATUS <<_ACEOF
11047cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
11048/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11049_ACEOF
11050sed '
11051s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
11052s/^/s,@/; s/!/@,|#_!!_#|/
11053:n
11054t n
11055s/'"$ac_delim"'$/,g/; t
11056s/$/\\/; p
11057N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
11058' >>$CONFIG_STATUS <conf$$subs.sed
11059rm -f conf$$subs.sed
11060cat >>$CONFIG_STATUS <<_ACEOF
11061CEOF$ac_eof
11062_ACEOF
11063
11064
11065ac_delim='%!_!# '
11066for ac_last_try in false false false false false :; do
11067  cat >conf$$subs.sed <<_ACEOF
11068TCL_DBGX!$TCL_DBGX$ac_delim
11069MAKE_LIB!$MAKE_LIB$ac_delim
11070MAKE_SHARED_LIB!$MAKE_SHARED_LIB$ac_delim
11071MAKE_STATIC_LIB!$MAKE_STATIC_LIB$ac_delim
11072MAKE_STUB_LIB!$MAKE_STUB_LIB$ac_delim
11073RANLIB_STUB!$RANLIB_STUB$ac_delim
11074VC_MANIFEST_EMBED_DLL!$VC_MANIFEST_EMBED_DLL$ac_delim
11075VC_MANIFEST_EMBED_EXE!$VC_MANIFEST_EMBED_EXE$ac_delim
11076TCLSH_PROG!$TCLSH_PROG$ac_delim
11077LIBOBJS!$LIBOBJS$ac_delim
11078LTLIBOBJS!$LTLIBOBJS$ac_delim
11079_ACEOF
11080
11081  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 11; then
11082    break
11083  elif $ac_last_try; then
11084    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
11085echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
11086   { (exit 1); exit 1; }; }
11087  else
11088    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11089  fi
11090done
11091
11092ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
11093if test -n "$ac_eof"; then
11094  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
11095  ac_eof=`expr $ac_eof + 1`
11096fi
11097
11098cat >>$CONFIG_STATUS <<_ACEOF
11099cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
11100/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
11101_ACEOF
11102sed '
11103s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
11104s/^/s,@/; s/!/@,|#_!!_#|/
11105:n
11106t n
11107s/'"$ac_delim"'$/,g/; t
11108s/$/\\/; p
11109N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
11110' >>$CONFIG_STATUS <conf$$subs.sed
11111rm -f conf$$subs.sed
11112cat >>$CONFIG_STATUS <<_ACEOF
11113:end
11114s/|#_!!_#|//g
11115CEOF$ac_eof
11116_ACEOF
11117
11118
11119# VPATH may cause trouble with some makes, so we remove $(srcdir),
11120# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11121# trailing colons and then remove the whole line if VPATH becomes empty
11122# (actually we leave an empty line to preserve line numbers).
11123if test "x$srcdir" = x.; then
11124  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
11125s/:*\$(srcdir):*/:/
11126s/:*\${srcdir}:*/:/
11127s/:*@srcdir@:*/:/
11128s/^\([^=]*=[	 ]*\):*/\1/
11129s/:*$//
11130s/^[^=]*=[	 ]*$//
11131}'
11132fi
11133
11134cat >>$CONFIG_STATUS <<\_ACEOF
11135fi # test -n "$CONFIG_FILES"
11136
11137
11138for ac_tag in  :F $CONFIG_FILES
11139do
11140  case $ac_tag in
11141  :[FHLC]) ac_mode=$ac_tag; continue;;
11142  esac
11143  case $ac_mode$ac_tag in
11144  :[FHL]*:*);;
11145  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
11146echo "$as_me: error: Invalid tag $ac_tag." >&2;}
11147   { (exit 1); exit 1; }; };;
11148  :[FH]-) ac_tag=-:-;;
11149  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11150  esac
11151  ac_save_IFS=$IFS
11152  IFS=:
11153  set x $ac_tag
11154  IFS=$ac_save_IFS
11155  shift
11156  ac_file=$1
11157  shift
11158
11159  case $ac_mode in
11160  :L) ac_source=$1;;
11161  :[FH])
11162    ac_file_inputs=
11163    for ac_f
11164    do
11165      case $ac_f in
11166      -) ac_f="$tmp/stdin";;
11167      *) # Look for the file first in the build tree, then in the source tree
11168	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
11169	 # because $ac_f cannot contain `:'.
11170	 test -f "$ac_f" ||
11171	   case $ac_f in
11172	   [\\/$]*) false;;
11173	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11174	   esac ||
11175	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
11176echo "$as_me: error: cannot find input file: $ac_f" >&2;}
11177   { (exit 1); exit 1; }; };;
11178      esac
11179      ac_file_inputs="$ac_file_inputs $ac_f"
11180    done
11181
11182    # Let's still pretend it is `configure' which instantiates (i.e., don't
11183    # use $as_me), people would be surprised to read:
11184    #    /* config.h.  Generated by config.status.  */
11185    configure_input="Generated from "`IFS=:
11186	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
11187    if test x"$ac_file" != x-; then
11188      configure_input="$ac_file.  $configure_input"
11189      { echo "$as_me:$LINENO: creating $ac_file" >&5
11190echo "$as_me: creating $ac_file" >&6;}
11191    fi
11192
11193    case $ac_tag in
11194    *:-:* | *:-) cat >"$tmp/stdin";;
11195    esac
11196    ;;
11197  esac
11198
11199  ac_dir=`$as_dirname -- "$ac_file" ||
11200$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11201	 X"$ac_file" : 'X\(//\)[^/]' \| \
11202	 X"$ac_file" : 'X\(//\)$' \| \
11203	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11204echo X"$ac_file" |
11205    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11206	    s//\1/
11207	    q
11208	  }
11209	  /^X\(\/\/\)[^/].*/{
11210	    s//\1/
11211	    q
11212	  }
11213	  /^X\(\/\/\)$/{
11214	    s//\1/
11215	    q
11216	  }
11217	  /^X\(\/\).*/{
11218	    s//\1/
11219	    q
11220	  }
11221	  s/.*/./; q'`
11222  { as_dir="$ac_dir"
11223  case $as_dir in #(
11224  -*) as_dir=./$as_dir;;
11225  esac
11226  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
11227    as_dirs=
11228    while :; do
11229      case $as_dir in #(
11230      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
11231      *) as_qdir=$as_dir;;
11232      esac
11233      as_dirs="'$as_qdir' $as_dirs"
11234      as_dir=`$as_dirname -- "$as_dir" ||
11235$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11236	 X"$as_dir" : 'X\(//\)[^/]' \| \
11237	 X"$as_dir" : 'X\(//\)$' \| \
11238	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11239echo X"$as_dir" |
11240    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11241	    s//\1/
11242	    q
11243	  }
11244	  /^X\(\/\/\)[^/].*/{
11245	    s//\1/
11246	    q
11247	  }
11248	  /^X\(\/\/\)$/{
11249	    s//\1/
11250	    q
11251	  }
11252	  /^X\(\/\).*/{
11253	    s//\1/
11254	    q
11255	  }
11256	  s/.*/./; q'`
11257      test -d "$as_dir" && break
11258    done
11259    test -z "$as_dirs" || eval "mkdir $as_dirs"
11260  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11261echo "$as_me: error: cannot create directory $as_dir" >&2;}
11262   { (exit 1); exit 1; }; }; }
11263  ac_builddir=.
11264
11265case "$ac_dir" in
11266.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11267*)
11268  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11269  # A ".." for each directory in $ac_dir_suffix.
11270  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
11271  case $ac_top_builddir_sub in
11272  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11273  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11274  esac ;;
11275esac
11276ac_abs_top_builddir=$ac_pwd
11277ac_abs_builddir=$ac_pwd$ac_dir_suffix
11278# for backward compatibility:
11279ac_top_builddir=$ac_top_build_prefix
11280
11281case $srcdir in
11282  .)  # We are building in place.
11283    ac_srcdir=.
11284    ac_top_srcdir=$ac_top_builddir_sub
11285    ac_abs_top_srcdir=$ac_pwd ;;
11286  [\\/]* | ?:[\\/]* )  # Absolute name.
11287    ac_srcdir=$srcdir$ac_dir_suffix;
11288    ac_top_srcdir=$srcdir
11289    ac_abs_top_srcdir=$srcdir ;;
11290  *) # Relative name.
11291    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11292    ac_top_srcdir=$ac_top_build_prefix$srcdir
11293    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11294esac
11295ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11296
11297
11298  case $ac_mode in
11299  :F)
11300  #
11301  # CONFIG_FILE
11302  #
11303
11304  case $INSTALL in
11305  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11306  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11307  esac
11308_ACEOF
11309
11310cat >>$CONFIG_STATUS <<\_ACEOF
11311# If the template does not know about datarootdir, expand it.
11312# FIXME: This hack should be removed a few years after 2.60.
11313ac_datarootdir_hack=; ac_datarootdir_seen=
11314
11315case `sed -n '/datarootdir/ {
11316  p
11317  q
11318}
11319/@datadir@/p
11320/@docdir@/p
11321/@infodir@/p
11322/@localedir@/p
11323/@mandir@/p
11324' $ac_file_inputs` in
11325*datarootdir*) ac_datarootdir_seen=yes;;
11326*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11327  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11328echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11329_ACEOF
11330cat >>$CONFIG_STATUS <<_ACEOF
11331  ac_datarootdir_hack='
11332  s&@datadir@&$datadir&g
11333  s&@docdir@&$docdir&g
11334  s&@infodir@&$infodir&g
11335  s&@localedir@&$localedir&g
11336  s&@mandir@&$mandir&g
11337    s&\\\${datarootdir}&$datarootdir&g' ;;
11338esac
11339_ACEOF
11340
11341# Neutralize VPATH when `$srcdir' = `.'.
11342# Shell code in configure.ac might set extrasub.
11343# FIXME: do we really want to maintain this feature?
11344cat >>$CONFIG_STATUS <<_ACEOF
11345  sed "$ac_vpsub
11346$extrasub
11347_ACEOF
11348cat >>$CONFIG_STATUS <<\_ACEOF
11349:t
11350/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11351s&@configure_input@&$configure_input&;t t
11352s&@top_builddir@&$ac_top_builddir_sub&;t t
11353s&@srcdir@&$ac_srcdir&;t t
11354s&@abs_srcdir@&$ac_abs_srcdir&;t t
11355s&@top_srcdir@&$ac_top_srcdir&;t t
11356s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11357s&@builddir@&$ac_builddir&;t t
11358s&@abs_builddir@&$ac_abs_builddir&;t t
11359s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11360s&@INSTALL@&$ac_INSTALL&;t t
11361$ac_datarootdir_hack
11362" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
11363
11364test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11365  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
11366  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
11367  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11368which seems to be undefined.  Please make sure it is defined." >&5
11369echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11370which seems to be undefined.  Please make sure it is defined." >&2;}
11371
11372  rm -f "$tmp/stdin"
11373  case $ac_file in
11374  -) cat "$tmp/out"; rm -f "$tmp/out";;
11375  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
11376  esac
11377 ;;
11378
11379
11380
11381  esac
11382
11383done # for ac_tag
11384
11385
11386{ (exit 0); exit 0; }
11387_ACEOF
11388chmod +x $CONFIG_STATUS
11389ac_clean_files=$ac_clean_files_save
11390
11391
11392# configure is writing to config.log, and then calls config.status.
11393# config.status does its own redirection, appending to config.log.
11394# Unfortunately, on DOS this fails, as config.log is still kept open
11395# by configure, so config.status won't be able to write to it; its
11396# output is simply discarded.  So we exec the FD to /dev/null,
11397# effectively closing config.log, so it can be properly (re)opened and
11398# appended to by config.status.  When coming back to configure, we
11399# need to make the FD available again.
11400if test "$no_create" != yes; then
11401  ac_cs_success=:
11402  ac_config_status_args=
11403  test "$silent" = yes &&
11404    ac_config_status_args="$ac_config_status_args --quiet"
11405  exec 5>/dev/null
11406  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11407  exec 5>>config.log
11408  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11409  # would make configure fail if this is the last instruction.
11410  $ac_cs_success || { (exit 1); exit 1; }
11411fi
11412
11413