1@%:@! /bin/sh
2@%:@ Guess values for system-dependent variables and create Makefiles.
3@%:@ Generated by GNU Autoconf 2.61 for Tclxml 3.3.
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=.
565LIB@&t@OBJS=
566cross_compiling=no
567subdirs=
568MFLAGS=
569MAKEFLAGS=
570SHELL=${CONFIG_SHELL-/bin/sh}
571
572# Identity of this package.
573PACKAGE_NAME='Tclxml'
574PACKAGE_TARNAME='tclxml'
575PACKAGE_VERSION='3.3'
576PACKAGE_STRING='Tclxml 3.3'
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_BIN_DIR
665TCL_SRC_DIR
666TCL_LIB_FILE
667TCL_LIB_FLAG
668TCL_LIB_SPEC
669TCL_STUB_LIB_FILE
670TCL_STUB_LIB_FLAG
671TCL_STUB_LIB_SPEC
672TCL_LIBS
673TCL_DEFS
674TCL_EXTRA_CFLAGS
675TCL_LD_FLAGS
676TCL_SHLIB_LD_LIBS
677CC
678CFLAGS
679LDFLAGS
680CPPFLAGS
681ac_ct_CC
682OBJEXT
683CPP
684INSTALL_PROGRAM
685INSTALL_SCRIPT
686INSTALL_DATA
687SET_MAKE
688RANLIB
689GREP
690EGREP
691MATH_LIBS
692PKG_SOURCES
693PKG_OBJECTS
694CLEANFILES
695TCL_INCLUDES
696TCL_THREADS
697SHARED_BUILD
698AR
699CELIB_DIR
700LIB@&t@OBJS
701DL_LIBS
702CFLAGS_DEBUG
703CFLAGS_OPTIMIZE
704CFLAGS_WARNING
705STLIB_LD
706SHLIB_LD
707SHLIB_LD_LIBS
708SHLIB_CFLAGS
709LD_LIBRARY_PATH_VAR
710TCL_DBGX
711CFLAGS_DEFAULT
712LDFLAGS_DEFAULT
713MAKE_LIB
714MAKE_SHARED_LIB
715MAKE_STATIC_LIB
716MAKE_STUB_LIB
717RANLIB_STUB
718XML2_PREFIX
719XML2_CFLAGS
720XML2_VERSION
721XSLT_VERSION
722XSLT_PREFIX
723XSLT_CFLAGS
724XML_STATIC
725XML2_LIBS
726XSLT_LIBS
727FIX_LIB
728TCLSH_PROG
729Tclxml_BUILD_LIB_SPEC
730Tclxml_LIB_SPEC
731Tclxml_BUILD_STUB_LIB_SPEC
732Tclxml_STUB_LIB_SPEC
733Tclxml_BUILD_STUB_LIB_PATH
734Tclxml_STUB_LIB_PATH
735Tclxml_INCLUDE_SPEC
736XSLTPROC
737LTLIBOBJS'
738ac_subst_files=''
739      ac_precious_vars='build_alias
740host_alias
741target_alias
742CC
743CFLAGS
744LDFLAGS
745LIBS
746CPPFLAGS
747CPP'
748
749
750# Initialize some variables set by options.
751ac_init_help=
752ac_init_version=false
753# The variables have the same names as the options, with
754# dashes changed to underlines.
755cache_file=/dev/null
756exec_prefix=NONE
757no_create=
758no_recursion=
759prefix=NONE
760program_prefix=NONE
761program_suffix=NONE
762program_transform_name=s,x,x,
763silent=
764site=
765srcdir=
766verbose=
767x_includes=NONE
768x_libraries=NONE
769
770# Installation directory options.
771# These are left unexpanded so users can "make install exec_prefix=/foo"
772# and all the variables that are supposed to be based on exec_prefix
773# by default will actually change.
774# Use braces instead of parens because sh, perl, etc. also accept them.
775# (The list follows the same order as the GNU Coding Standards.)
776bindir='${exec_prefix}/bin'
777sbindir='${exec_prefix}/sbin'
778libexecdir='${exec_prefix}/libexec'
779datarootdir='${prefix}/share'
780datadir='${datarootdir}'
781sysconfdir='${prefix}/etc'
782sharedstatedir='${prefix}/com'
783localstatedir='${prefix}/var'
784includedir='${prefix}/include'
785oldincludedir='/usr/include'
786docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
787infodir='${datarootdir}/info'
788htmldir='${docdir}'
789dvidir='${docdir}'
790pdfdir='${docdir}'
791psdir='${docdir}'
792libdir='${exec_prefix}/lib'
793localedir='${datarootdir}/locale'
794mandir='${datarootdir}/man'
795
796ac_prev=
797ac_dashdash=
798for ac_option
799do
800  # If the previous option needs an argument, assign it.
801  if test -n "$ac_prev"; then
802    eval $ac_prev=\$ac_option
803    ac_prev=
804    continue
805  fi
806
807  case $ac_option in
808  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
809  *)	ac_optarg=yes ;;
810  esac
811
812  # Accept the important Cygnus configure options, so we can diagnose typos.
813
814  case $ac_dashdash$ac_option in
815  --)
816    ac_dashdash=yes ;;
817
818  -bindir | --bindir | --bindi | --bind | --bin | --bi)
819    ac_prev=bindir ;;
820  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
821    bindir=$ac_optarg ;;
822
823  -build | --build | --buil | --bui | --bu)
824    ac_prev=build_alias ;;
825  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
826    build_alias=$ac_optarg ;;
827
828  -cache-file | --cache-file | --cache-fil | --cache-fi \
829  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
830    ac_prev=cache_file ;;
831  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
832  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
833    cache_file=$ac_optarg ;;
834
835  --config-cache | -C)
836    cache_file=config.cache ;;
837
838  -datadir | --datadir | --datadi | --datad)
839    ac_prev=datadir ;;
840  -datadir=* | --datadir=* | --datadi=* | --datad=*)
841    datadir=$ac_optarg ;;
842
843  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
844  | --dataroo | --dataro | --datar)
845    ac_prev=datarootdir ;;
846  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
847  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
848    datarootdir=$ac_optarg ;;
849
850  -disable-* | --disable-*)
851    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
852    # Reject names that are not valid shell variable names.
853    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
854      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
855   { (exit 1); exit 1; }; }
856    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
857    eval enable_$ac_feature=no ;;
858
859  -docdir | --docdir | --docdi | --doc | --do)
860    ac_prev=docdir ;;
861  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
862    docdir=$ac_optarg ;;
863
864  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
865    ac_prev=dvidir ;;
866  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
867    dvidir=$ac_optarg ;;
868
869  -enable-* | --enable-*)
870    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
871    # Reject names that are not valid shell variable names.
872    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
873      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
874   { (exit 1); exit 1; }; }
875    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
876    eval enable_$ac_feature=\$ac_optarg ;;
877
878  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
879  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
880  | --exec | --exe | --ex)
881    ac_prev=exec_prefix ;;
882  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
883  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
884  | --exec=* | --exe=* | --ex=*)
885    exec_prefix=$ac_optarg ;;
886
887  -gas | --gas | --ga | --g)
888    # Obsolete; use --with-gas.
889    with_gas=yes ;;
890
891  -help | --help | --hel | --he | -h)
892    ac_init_help=long ;;
893  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
894    ac_init_help=recursive ;;
895  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
896    ac_init_help=short ;;
897
898  -host | --host | --hos | --ho)
899    ac_prev=host_alias ;;
900  -host=* | --host=* | --hos=* | --ho=*)
901    host_alias=$ac_optarg ;;
902
903  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
904    ac_prev=htmldir ;;
905  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
906  | --ht=*)
907    htmldir=$ac_optarg ;;
908
909  -includedir | --includedir | --includedi | --included | --include \
910  | --includ | --inclu | --incl | --inc)
911    ac_prev=includedir ;;
912  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
913  | --includ=* | --inclu=* | --incl=* | --inc=*)
914    includedir=$ac_optarg ;;
915
916  -infodir | --infodir | --infodi | --infod | --info | --inf)
917    ac_prev=infodir ;;
918  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
919    infodir=$ac_optarg ;;
920
921  -libdir | --libdir | --libdi | --libd)
922    ac_prev=libdir ;;
923  -libdir=* | --libdir=* | --libdi=* | --libd=*)
924    libdir=$ac_optarg ;;
925
926  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
927  | --libexe | --libex | --libe)
928    ac_prev=libexecdir ;;
929  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
930  | --libexe=* | --libex=* | --libe=*)
931    libexecdir=$ac_optarg ;;
932
933  -localedir | --localedir | --localedi | --localed | --locale)
934    ac_prev=localedir ;;
935  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
936    localedir=$ac_optarg ;;
937
938  -localstatedir | --localstatedir | --localstatedi | --localstated \
939  | --localstate | --localstat | --localsta | --localst | --locals)
940    ac_prev=localstatedir ;;
941  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
942  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
943    localstatedir=$ac_optarg ;;
944
945  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
946    ac_prev=mandir ;;
947  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
948    mandir=$ac_optarg ;;
949
950  -nfp | --nfp | --nf)
951    # Obsolete; use --without-fp.
952    with_fp=no ;;
953
954  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
955  | --no-cr | --no-c | -n)
956    no_create=yes ;;
957
958  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
959  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
960    no_recursion=yes ;;
961
962  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
963  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
964  | --oldin | --oldi | --old | --ol | --o)
965    ac_prev=oldincludedir ;;
966  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
967  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
968  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
969    oldincludedir=$ac_optarg ;;
970
971  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
972    ac_prev=prefix ;;
973  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
974    prefix=$ac_optarg ;;
975
976  -program-prefix | --program-prefix | --program-prefi | --program-pref \
977  | --program-pre | --program-pr | --program-p)
978    ac_prev=program_prefix ;;
979  -program-prefix=* | --program-prefix=* | --program-prefi=* \
980  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
981    program_prefix=$ac_optarg ;;
982
983  -program-suffix | --program-suffix | --program-suffi | --program-suff \
984  | --program-suf | --program-su | --program-s)
985    ac_prev=program_suffix ;;
986  -program-suffix=* | --program-suffix=* | --program-suffi=* \
987  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
988    program_suffix=$ac_optarg ;;
989
990  -program-transform-name | --program-transform-name \
991  | --program-transform-nam | --program-transform-na \
992  | --program-transform-n | --program-transform- \
993  | --program-transform | --program-transfor \
994  | --program-transfo | --program-transf \
995  | --program-trans | --program-tran \
996  | --progr-tra | --program-tr | --program-t)
997    ac_prev=program_transform_name ;;
998  -program-transform-name=* | --program-transform-name=* \
999  | --program-transform-nam=* | --program-transform-na=* \
1000  | --program-transform-n=* | --program-transform-=* \
1001  | --program-transform=* | --program-transfor=* \
1002  | --program-transfo=* | --program-transf=* \
1003  | --program-trans=* | --program-tran=* \
1004  | --progr-tra=* | --program-tr=* | --program-t=*)
1005    program_transform_name=$ac_optarg ;;
1006
1007  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1008    ac_prev=pdfdir ;;
1009  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1010    pdfdir=$ac_optarg ;;
1011
1012  -psdir | --psdir | --psdi | --psd | --ps)
1013    ac_prev=psdir ;;
1014  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1015    psdir=$ac_optarg ;;
1016
1017  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1018  | -silent | --silent | --silen | --sile | --sil)
1019    silent=yes ;;
1020
1021  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1022    ac_prev=sbindir ;;
1023  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1024  | --sbi=* | --sb=*)
1025    sbindir=$ac_optarg ;;
1026
1027  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1028  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1029  | --sharedst | --shareds | --shared | --share | --shar \
1030  | --sha | --sh)
1031    ac_prev=sharedstatedir ;;
1032  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1033  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1034  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1035  | --sha=* | --sh=*)
1036    sharedstatedir=$ac_optarg ;;
1037
1038  -site | --site | --sit)
1039    ac_prev=site ;;
1040  -site=* | --site=* | --sit=*)
1041    site=$ac_optarg ;;
1042
1043  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1044    ac_prev=srcdir ;;
1045  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1046    srcdir=$ac_optarg ;;
1047
1048  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1049  | --syscon | --sysco | --sysc | --sys | --sy)
1050    ac_prev=sysconfdir ;;
1051  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1052  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1053    sysconfdir=$ac_optarg ;;
1054
1055  -target | --target | --targe | --targ | --tar | --ta | --t)
1056    ac_prev=target_alias ;;
1057  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1058    target_alias=$ac_optarg ;;
1059
1060  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1061    verbose=yes ;;
1062
1063  -version | --version | --versio | --versi | --vers | -V)
1064    ac_init_version=: ;;
1065
1066  -with-* | --with-*)
1067    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1068    # Reject names that are not valid shell variable names.
1069    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1070      { echo "$as_me: error: invalid package name: $ac_package" >&2
1071   { (exit 1); exit 1; }; }
1072    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1073    eval with_$ac_package=\$ac_optarg ;;
1074
1075  -without-* | --without-*)
1076    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1077    # Reject names that are not valid shell variable names.
1078    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1079      { echo "$as_me: error: invalid package name: $ac_package" >&2
1080   { (exit 1); exit 1; }; }
1081    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1082    eval with_$ac_package=no ;;
1083
1084  --x)
1085    # Obsolete; use --with-x.
1086    with_x=yes ;;
1087
1088  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1089  | --x-incl | --x-inc | --x-in | --x-i)
1090    ac_prev=x_includes ;;
1091  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1092  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1093    x_includes=$ac_optarg ;;
1094
1095  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1096  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1097    ac_prev=x_libraries ;;
1098  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1099  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1100    x_libraries=$ac_optarg ;;
1101
1102  -*) { echo "$as_me: error: unrecognized option: $ac_option
1103Try \`$0 --help' for more information." >&2
1104   { (exit 1); exit 1; }; }
1105    ;;
1106
1107  *=*)
1108    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1109    # Reject names that are not valid shell variable names.
1110    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1111      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1112   { (exit 1); exit 1; }; }
1113    eval $ac_envvar=\$ac_optarg
1114    export $ac_envvar ;;
1115
1116  *)
1117    # FIXME: should be removed in autoconf 3.0.
1118    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1119    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1120      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1121    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1122    ;;
1123
1124  esac
1125done
1126
1127if test -n "$ac_prev"; then
1128  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1129  { echo "$as_me: error: missing argument to $ac_option" >&2
1130   { (exit 1); exit 1; }; }
1131fi
1132
1133# Be sure to have absolute directory names.
1134for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1135		datadir sysconfdir sharedstatedir localstatedir includedir \
1136		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1137		libdir localedir mandir
1138do
1139  eval ac_val=\$$ac_var
1140  case $ac_val in
1141    [\\/$]* | ?:[\\/]* )  continue;;
1142    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1143  esac
1144  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1145   { (exit 1); exit 1; }; }
1146done
1147
1148# There might be people who depend on the old broken behavior: `$host'
1149# used to hold the argument of --host etc.
1150# FIXME: To remove some day.
1151build=$build_alias
1152host=$host_alias
1153target=$target_alias
1154
1155# FIXME: To remove some day.
1156if test "x$host_alias" != x; then
1157  if test "x$build_alias" = x; then
1158    cross_compiling=maybe
1159    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1160    If a cross compiler is detected then cross compile mode will be used." >&2
1161  elif test "x$build_alias" != "x$host_alias"; then
1162    cross_compiling=yes
1163  fi
1164fi
1165
1166ac_tool_prefix=
1167test -n "$host_alias" && ac_tool_prefix=$host_alias-
1168
1169test "$silent" = yes && exec 6>/dev/null
1170
1171
1172ac_pwd=`pwd` && test -n "$ac_pwd" &&
1173ac_ls_di=`ls -di .` &&
1174ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1175  { echo "$as_me: error: Working directory cannot be determined" >&2
1176   { (exit 1); exit 1; }; }
1177test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1178  { echo "$as_me: error: pwd does not report name of working directory" >&2
1179   { (exit 1); exit 1; }; }
1180
1181
1182# Find the source files, if location was not specified.
1183if test -z "$srcdir"; then
1184  ac_srcdir_defaulted=yes
1185  # Try the directory containing this script, then the parent directory.
1186  ac_confdir=`$as_dirname -- "$0" ||
1187$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1188	 X"$0" : 'X\(//\)[^/]' \| \
1189	 X"$0" : 'X\(//\)$' \| \
1190	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1191echo X"$0" |
1192    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1193	    s//\1/
1194	    q
1195	  }
1196	  /^X\(\/\/\)[^/].*/{
1197	    s//\1/
1198	    q
1199	  }
1200	  /^X\(\/\/\)$/{
1201	    s//\1/
1202	    q
1203	  }
1204	  /^X\(\/\).*/{
1205	    s//\1/
1206	    q
1207	  }
1208	  s/.*/./; q'`
1209  srcdir=$ac_confdir
1210  if test ! -r "$srcdir/$ac_unique_file"; then
1211    srcdir=..
1212  fi
1213else
1214  ac_srcdir_defaulted=no
1215fi
1216if test ! -r "$srcdir/$ac_unique_file"; then
1217  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1218  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1219   { (exit 1); exit 1; }; }
1220fi
1221ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1222ac_abs_confdir=`(
1223	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1224   { (exit 1); exit 1; }; }
1225	pwd)`
1226# When building in place, set srcdir=.
1227if test "$ac_abs_confdir" = "$ac_pwd"; then
1228  srcdir=.
1229fi
1230# Remove unnecessary trailing slashes from srcdir.
1231# Double slashes in file names in object file debugging info
1232# mess up M-x gdb in Emacs.
1233case $srcdir in
1234*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1235esac
1236for ac_var in $ac_precious_vars; do
1237  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1238  eval ac_env_${ac_var}_value=\$${ac_var}
1239  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1240  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1241done
1242
1243#
1244# Report the --help message.
1245#
1246if test "$ac_init_help" = "long"; then
1247  # Omit some internal or obsolete options to make the list less imposing.
1248  # This message is too long to be a string in the A/UX 3.1 sh.
1249  cat <<_ACEOF
1250\`configure' configures Tclxml 3.3 to adapt to many kinds of systems.
1251
1252Usage: $0 [OPTION]... [VAR=VALUE]...
1253
1254To assign environment variables (e.g., CC, CFLAGS...), specify them as
1255VAR=VALUE.  See below for descriptions of some of the useful variables.
1256
1257Defaults for the options are specified in brackets.
1258
1259Configuration:
1260  -h, --help              display this help and exit
1261      --help=short        display options specific to this package
1262      --help=recursive    display the short help of all the included packages
1263  -V, --version           display version information and exit
1264  -q, --quiet, --silent   do not print \`checking...' messages
1265      --cache-file=FILE   cache test results in FILE [disabled]
1266  -C, --config-cache      alias for \`--cache-file=config.cache'
1267  -n, --no-create         do not create output files
1268      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1269
1270Installation directories:
1271  --prefix=PREFIX         install architecture-independent files in PREFIX
1272			  [$ac_default_prefix]
1273  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1274			  [PREFIX]
1275
1276By default, \`make install' will install all the files in
1277\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1278an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1279for instance \`--prefix=\$HOME'.
1280
1281For better control, use the options below.
1282
1283Fine tuning of the installation directories:
1284  --bindir=DIR           user executables [EPREFIX/bin]
1285  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1286  --libexecdir=DIR       program executables [EPREFIX/libexec]
1287  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1288  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1289  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1290  --libdir=DIR           object code libraries [EPREFIX/lib]
1291  --includedir=DIR       C header files [PREFIX/include]
1292  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1293  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1294  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1295  --infodir=DIR          info documentation [DATAROOTDIR/info]
1296  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1297  --mandir=DIR           man documentation [DATAROOTDIR/man]
1298  --docdir=DIR           documentation root @<:@DATAROOTDIR/doc/tclxml@:>@
1299  --htmldir=DIR          html documentation [DOCDIR]
1300  --dvidir=DIR           dvi documentation [DOCDIR]
1301  --pdfdir=DIR           pdf documentation [DOCDIR]
1302  --psdir=DIR            ps documentation [DOCDIR]
1303_ACEOF
1304
1305  cat <<\_ACEOF
1306_ACEOF
1307fi
1308
1309if test -n "$ac_init_help"; then
1310  case $ac_init_help in
1311     short | recursive ) echo "Configuration of Tclxml 3.3:";;
1312   esac
1313  cat <<\_ACEOF
1314
1315Optional Features:
1316  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1317  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1318  --enable-threads        build with threads
1319  --enable-shared         build and link with shared libraries (default: on)
1320  --enable-64bit          enable 64bit support (default: off)
1321  --enable-64bit-vis      enable 64bit Sparc VIS support (default: off)
1322  --enable-wince          enable Win/CE support (where applicable)
1323  --enable-load           allow dynamic loading and "load" command (default:
1324                          on)
1325  --enable-symbols        build with debugging symbols (default: off)
1326  --enable-framework      build as a Mac OS X framework
1327
1328Optional Packages:
1329  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1330  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1331  --with-tcl              directory containing tcl configuration
1332                          (tclConfig.sh)
1333  --with-tclinclude       directory containing the public Tcl header files
1334  --with-celib=DIR        use Windows/CE support library from DIR
1335  --with-xml2-config      the xml2-config configuration script
1336  --with-xslt-config      the xslt-config configuration script
1337  --with-xml-static      statically link the XML libraries
1338
1339Some influential environment variables:
1340  CC          C compiler command
1341  CFLAGS      C compiler flags
1342  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1343              nonstandard directory <lib dir>
1344  LIBS        libraries to pass to the linker, e.g. -l<library>
1345  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1346              you have headers in a nonstandard directory <include dir>
1347  CPP         C preprocessor
1348
1349Use these variables to override the choices made by `configure' or to help
1350it to find libraries and programs with nonstandard names/locations.
1351
1352_ACEOF
1353ac_status=$?
1354fi
1355
1356if test "$ac_init_help" = "recursive"; then
1357  # If there are subdirs, report their specific --help.
1358  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1359    test -d "$ac_dir" || continue
1360    ac_builddir=.
1361
1362case "$ac_dir" in
1363.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1364*)
1365  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1366  # A ".." for each directory in $ac_dir_suffix.
1367  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1368  case $ac_top_builddir_sub in
1369  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1370  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1371  esac ;;
1372esac
1373ac_abs_top_builddir=$ac_pwd
1374ac_abs_builddir=$ac_pwd$ac_dir_suffix
1375# for backward compatibility:
1376ac_top_builddir=$ac_top_build_prefix
1377
1378case $srcdir in
1379  .)  # We are building in place.
1380    ac_srcdir=.
1381    ac_top_srcdir=$ac_top_builddir_sub
1382    ac_abs_top_srcdir=$ac_pwd ;;
1383  [\\/]* | ?:[\\/]* )  # Absolute name.
1384    ac_srcdir=$srcdir$ac_dir_suffix;
1385    ac_top_srcdir=$srcdir
1386    ac_abs_top_srcdir=$srcdir ;;
1387  *) # Relative name.
1388    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1389    ac_top_srcdir=$ac_top_build_prefix$srcdir
1390    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1391esac
1392ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1393
1394    cd "$ac_dir" || { ac_status=$?; continue; }
1395    # Check for guested configure.
1396    if test -f "$ac_srcdir/configure.gnu"; then
1397      echo &&
1398      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1399    elif test -f "$ac_srcdir/configure"; then
1400      echo &&
1401      $SHELL "$ac_srcdir/configure" --help=recursive
1402    else
1403      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1404    fi || ac_status=$?
1405    cd "$ac_pwd" || { ac_status=$?; break; }
1406  done
1407fi
1408
1409test -n "$ac_init_help" && exit $ac_status
1410if $ac_init_version; then
1411  cat <<\_ACEOF
1412Tclxml configure 3.3
1413generated by GNU Autoconf 2.61
1414
1415Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
14162002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1417This configure script is free software; the Free Software Foundation
1418gives unlimited permission to copy, distribute and modify it.
1419_ACEOF
1420  exit
1421fi
1422cat >config.log <<_ACEOF
1423This file contains any messages produced by compilers while
1424running configure, to aid debugging if configure makes a mistake.
1425
1426It was created by Tclxml $as_me 3.3, which was
1427generated by GNU Autoconf 2.61.  Invocation command line was
1428
1429  $ $0 $@
1430
1431_ACEOF
1432exec 5>>config.log
1433{
1434cat <<_ASUNAME
1435@%:@@%:@ --------- @%:@@%:@
1436@%:@@%:@ Platform. @%:@@%:@
1437@%:@@%:@ --------- @%:@@%:@
1438
1439hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1440uname -m = `(uname -m) 2>/dev/null || echo unknown`
1441uname -r = `(uname -r) 2>/dev/null || echo unknown`
1442uname -s = `(uname -s) 2>/dev/null || echo unknown`
1443uname -v = `(uname -v) 2>/dev/null || echo unknown`
1444
1445/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1446/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1447
1448/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1449/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1450/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1451/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1452/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1453/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1454/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1455
1456_ASUNAME
1457
1458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1459for as_dir in $PATH
1460do
1461  IFS=$as_save_IFS
1462  test -z "$as_dir" && as_dir=.
1463  echo "PATH: $as_dir"
1464done
1465IFS=$as_save_IFS
1466
1467} >&5
1468
1469cat >&5 <<_ACEOF
1470
1471
1472@%:@@%:@ ----------- @%:@@%:@
1473@%:@@%:@ Core tests. @%:@@%:@
1474@%:@@%:@ ----------- @%:@@%:@
1475
1476_ACEOF
1477
1478
1479# Keep a trace of the command line.
1480# Strip out --no-create and --no-recursion so they do not pile up.
1481# Strip out --silent because we don't want to record it for future runs.
1482# Also quote any args containing shell meta-characters.
1483# Make two passes to allow for proper duplicate-argument suppression.
1484ac_configure_args=
1485ac_configure_args0=
1486ac_configure_args1=
1487ac_must_keep_next=false
1488for ac_pass in 1 2
1489do
1490  for ac_arg
1491  do
1492    case $ac_arg in
1493    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1494    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1495    | -silent | --silent | --silen | --sile | --sil)
1496      continue ;;
1497    *\'*)
1498      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1499    esac
1500    case $ac_pass in
1501    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1502    2)
1503      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1504      if test $ac_must_keep_next = true; then
1505	ac_must_keep_next=false # Got value, back to normal.
1506      else
1507	case $ac_arg in
1508	  *=* | --config-cache | -C | -disable-* | --disable-* \
1509	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1510	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1511	  | -with-* | --with-* | -without-* | --without-* | --x)
1512	    case "$ac_configure_args0 " in
1513	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1514	    esac
1515	    ;;
1516	  -* ) ac_must_keep_next=true ;;
1517	esac
1518      fi
1519      ac_configure_args="$ac_configure_args '$ac_arg'"
1520      ;;
1521    esac
1522  done
1523done
1524$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1525$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1526
1527# When interrupted or exit'd, cleanup temporary files, and complete
1528# config.log.  We remove comments because anyway the quotes in there
1529# would cause problems or look ugly.
1530# WARNING: Use '\'' to represent an apostrophe within the trap.
1531# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1532trap 'exit_status=$?
1533  # Save into config.log some information that might help in debugging.
1534  {
1535    echo
1536
1537    cat <<\_ASBOX
1538@%:@@%:@ ---------------- @%:@@%:@
1539@%:@@%:@ Cache variables. @%:@@%:@
1540@%:@@%:@ ---------------- @%:@@%:@
1541_ASBOX
1542    echo
1543    # The following way of writing the cache mishandles newlines in values,
1544(
1545  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1546    eval ac_val=\$$ac_var
1547    case $ac_val in #(
1548    *${as_nl}*)
1549      case $ac_var in #(
1550      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1551echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1552      esac
1553      case $ac_var in #(
1554      _ | IFS | as_nl) ;; #(
1555      *) $as_unset $ac_var ;;
1556      esac ;;
1557    esac
1558  done
1559  (set) 2>&1 |
1560    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1561    *${as_nl}ac_space=\ *)
1562      sed -n \
1563	"s/'\''/'\''\\\\'\'''\''/g;
1564	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1565      ;; #(
1566    *)
1567      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1568      ;;
1569    esac |
1570    sort
1571)
1572    echo
1573
1574    cat <<\_ASBOX
1575@%:@@%:@ ----------------- @%:@@%:@
1576@%:@@%:@ Output variables. @%:@@%:@
1577@%:@@%:@ ----------------- @%:@@%:@
1578_ASBOX
1579    echo
1580    for ac_var in $ac_subst_vars
1581    do
1582      eval ac_val=\$$ac_var
1583      case $ac_val in
1584      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1585      esac
1586      echo "$ac_var='\''$ac_val'\''"
1587    done | sort
1588    echo
1589
1590    if test -n "$ac_subst_files"; then
1591      cat <<\_ASBOX
1592@%:@@%:@ ------------------- @%:@@%:@
1593@%:@@%:@ File substitutions. @%:@@%:@
1594@%:@@%:@ ------------------- @%:@@%:@
1595_ASBOX
1596      echo
1597      for ac_var in $ac_subst_files
1598      do
1599	eval ac_val=\$$ac_var
1600	case $ac_val in
1601	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1602	esac
1603	echo "$ac_var='\''$ac_val'\''"
1604      done | sort
1605      echo
1606    fi
1607
1608    if test -s confdefs.h; then
1609      cat <<\_ASBOX
1610@%:@@%:@ ----------- @%:@@%:@
1611@%:@@%:@ confdefs.h. @%:@@%:@
1612@%:@@%:@ ----------- @%:@@%:@
1613_ASBOX
1614      echo
1615      cat confdefs.h
1616      echo
1617    fi
1618    test "$ac_signal" != 0 &&
1619      echo "$as_me: caught signal $ac_signal"
1620    echo "$as_me: exit $exit_status"
1621  } >&5
1622  rm -f core *.core core.conftest.* &&
1623    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1624    exit $exit_status
1625' 0
1626for ac_signal in 1 2 13 15; do
1627  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1628done
1629ac_signal=0
1630
1631# confdefs.h avoids OS command line length limits that DEFS can exceed.
1632rm -f -r conftest* confdefs.h
1633
1634# Predefined preprocessor variables.
1635
1636cat >>confdefs.h <<_ACEOF
1637@%:@define PACKAGE_NAME "$PACKAGE_NAME"
1638_ACEOF
1639
1640
1641cat >>confdefs.h <<_ACEOF
1642@%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1643_ACEOF
1644
1645
1646cat >>confdefs.h <<_ACEOF
1647@%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
1648_ACEOF
1649
1650
1651cat >>confdefs.h <<_ACEOF
1652@%:@define PACKAGE_STRING "$PACKAGE_STRING"
1653_ACEOF
1654
1655
1656cat >>confdefs.h <<_ACEOF
1657@%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1658_ACEOF
1659
1660
1661# Let the site file select an alternate cache file if it wants to.
1662# Prefer explicitly selected file to automatically selected ones.
1663if test -n "$CONFIG_SITE"; then
1664  set x "$CONFIG_SITE"
1665elif test "x$prefix" != xNONE; then
1666  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1667else
1668  set x "$ac_default_prefix/share/config.site" \
1669	"$ac_default_prefix/etc/config.site"
1670fi
1671shift
1672for ac_site_file
1673do
1674  if test -r "$ac_site_file"; then
1675    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1676echo "$as_me: loading site script $ac_site_file" >&6;}
1677    sed 's/^/| /' "$ac_site_file" >&5
1678    . "$ac_site_file"
1679  fi
1680done
1681
1682if test -r "$cache_file"; then
1683  # Some versions of bash will fail to source /dev/null (special
1684  # files actually), so we avoid doing that.
1685  if test -f "$cache_file"; then
1686    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1687echo "$as_me: loading cache $cache_file" >&6;}
1688    case $cache_file in
1689      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1690      *)                      . "./$cache_file";;
1691    esac
1692  fi
1693else
1694  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1695echo "$as_me: creating cache $cache_file" >&6;}
1696  >$cache_file
1697fi
1698
1699# Check that the precious variables saved in the cache have kept the same
1700# value.
1701ac_cache_corrupted=false
1702for ac_var in $ac_precious_vars; do
1703  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1704  eval ac_new_set=\$ac_env_${ac_var}_set
1705  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1706  eval ac_new_val=\$ac_env_${ac_var}_value
1707  case $ac_old_set,$ac_new_set in
1708    set,)
1709      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1710echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1711      ac_cache_corrupted=: ;;
1712    ,set)
1713      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1714echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1715      ac_cache_corrupted=: ;;
1716    ,);;
1717    *)
1718      if test "x$ac_old_val" != "x$ac_new_val"; then
1719	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1720echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1721	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1722echo "$as_me:   former value:  $ac_old_val" >&2;}
1723	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1724echo "$as_me:   current value: $ac_new_val" >&2;}
1725	ac_cache_corrupted=:
1726      fi;;
1727  esac
1728  # Pass precious variables to config.status.
1729  if test "$ac_new_set" = set; then
1730    case $ac_new_val in
1731    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1732    *) ac_arg=$ac_var=$ac_new_val ;;
1733    esac
1734    case " $ac_configure_args " in
1735      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1736      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1737    esac
1738  fi
1739done
1740if $ac_cache_corrupted; then
1741  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1742echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1743  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1744echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1745   { (exit 1); exit 1; }; }
1746fi
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772ac_ext=c
1773ac_cpp='$CPP $CPPFLAGS'
1774ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1775ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1776ac_compiler_gnu=$ac_cv_c_compiler_gnu
1777
1778
1779PACKAGE_NAME=Tclxml
1780PACKAGE_VERSION=3.3
1781
1782
1783    # TEA extensions pass this us the version of TEA they think they
1784    # are compatible with.
1785    TEA_VERSION="3.6"
1786
1787    { echo "$as_me:$LINENO: checking for correct TEA configuration" >&5
1788echo $ECHO_N "checking for correct TEA configuration... $ECHO_C" >&6; }
1789    if test x"${PACKAGE_NAME}" = x ; then
1790	{ { echo "$as_me:$LINENO: error:
1791The PACKAGE_NAME variable must be defined by your TEA configure.in" >&5
1792echo "$as_me: error:
1793The PACKAGE_NAME variable must be defined by your TEA configure.in" >&2;}
1794   { (exit 1); exit 1; }; }
1795    fi
1796    if test x"3.6" = x ; then
1797	{ { echo "$as_me:$LINENO: error:
1798TEA version not specified." >&5
1799echo "$as_me: error:
1800TEA version not specified." >&2;}
1801   { (exit 1); exit 1; }; }
1802    elif test "3.6" != "${TEA_VERSION}" ; then
1803	{ echo "$as_me:$LINENO: result: warning: requested TEA version \"3.6\", have \"${TEA_VERSION}\"" >&5
1804echo "${ECHO_T}warning: requested TEA version \"3.6\", have \"${TEA_VERSION}\"" >&6; }
1805    else
1806	{ echo "$as_me:$LINENO: result: ok (TEA ${TEA_VERSION})" >&5
1807echo "${ECHO_T}ok (TEA ${TEA_VERSION})" >&6; }
1808    fi
1809    case "`uname -s`" in
1810	*win32*|*WIN32*|*CYGWIN_NT*|*CYGWIN_9*|*CYGWIN_ME*|*MINGW32_*)
1811	    # Extract the first word of "cygpath", so it can be a program name with args.
1812set dummy cygpath; ac_word=$2
1813{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1814echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1815if test "${ac_cv_prog_CYGPATH+set}" = set; then
1816  echo $ECHO_N "(cached) $ECHO_C" >&6
1817else
1818  if test -n "$CYGPATH"; then
1819  ac_cv_prog_CYGPATH="$CYGPATH" # Let the user override the test.
1820else
1821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1822for as_dir in $PATH
1823do
1824  IFS=$as_save_IFS
1825  test -z "$as_dir" && as_dir=.
1826  for ac_exec_ext in '' $ac_executable_extensions; do
1827  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1828    ac_cv_prog_CYGPATH="cygpath -w"
1829    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1830    break 2
1831  fi
1832done
1833done
1834IFS=$as_save_IFS
1835
1836  test -z "$ac_cv_prog_CYGPATH" && ac_cv_prog_CYGPATH="echo"
1837fi
1838fi
1839CYGPATH=$ac_cv_prog_CYGPATH
1840if test -n "$CYGPATH"; then
1841  { echo "$as_me:$LINENO: result: $CYGPATH" >&5
1842echo "${ECHO_T}$CYGPATH" >&6; }
1843else
1844  { echo "$as_me:$LINENO: result: no" >&5
1845echo "${ECHO_T}no" >&6; }
1846fi
1847
1848
1849	    EXEEXT=".exe"
1850	    TEA_PLATFORM="windows"
1851	    ;;
1852	*)
1853	    CYGPATH=echo
1854	    EXEEXT=""
1855	    TEA_PLATFORM="unix"
1856	    ;;
1857    esac
1858
1859    # Check if exec_prefix is set. If not use fall back to prefix.
1860    # Note when adjusted, so that TEA_PREFIX can correct for this.
1861    # This is needed for recursive configures, since autoconf propagates
1862    # $prefix, but not $exec_prefix (doh!).
1863    if test x$exec_prefix = xNONE ; then
1864	exec_prefix_default=yes
1865	exec_prefix=$prefix
1866    fi
1867
1868
1869
1870
1871    # This package name must be replaced statically for AC_SUBST to work
1872
1873    # Substitute STUB_LIB_FILE in case package creates a stub library too.
1874
1875
1876    # We AC_SUBST these here to ensure they are subst'ed,
1877    # in case the user doesn't call TEA_ADD_...
1878
1879
1880
1881
1882
1883
1884
1885
1886ac_aux_dir=
1887for ac_dir in tclconfig "$srcdir"/tclconfig; do
1888  if test -f "$ac_dir/install-sh"; then
1889    ac_aux_dir=$ac_dir
1890    ac_install_sh="$ac_aux_dir/install-sh -c"
1891    break
1892  elif test -f "$ac_dir/install.sh"; then
1893    ac_aux_dir=$ac_dir
1894    ac_install_sh="$ac_aux_dir/install.sh -c"
1895    break
1896  elif test -f "$ac_dir/shtool"; then
1897    ac_aux_dir=$ac_dir
1898    ac_install_sh="$ac_aux_dir/shtool install -c"
1899    break
1900  fi
1901done
1902if test -z "$ac_aux_dir"; then
1903  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in tclconfig \"$srcdir\"/tclconfig" >&5
1904echo "$as_me: error: cannot find install-sh or install.sh in tclconfig \"$srcdir\"/tclconfig" >&2;}
1905   { (exit 1); exit 1; }; }
1906fi
1907
1908# These three variables are undocumented and unsupported,
1909# and are intended to be withdrawn in a future Autoconf release.
1910# They can cause serious problems if a builder's source tree is in a directory
1911# whose full name contains unusual characters.
1912ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1913ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1914ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1915
1916
1917
1918
1919
1920    #
1921    # Ok, lets find the tcl configuration
1922    # First, look for one uninstalled.
1923    # the alternative search directory is invoked by --with-tcl
1924    #
1925
1926    if test x"${no_tcl}" = x ; then
1927	# we reset no_tcl in case something fails here
1928	no_tcl=true
1929
1930# Check whether --with-tcl was given.
1931if test "${with_tcl+set}" = set; then
1932  withval=$with_tcl; with_tclconfig=${withval}
1933fi
1934
1935	{ echo "$as_me:$LINENO: checking for Tcl configuration" >&5
1936echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6; }
1937	if test "${ac_cv_c_tclconfig+set}" = set; then
1938  echo $ECHO_N "(cached) $ECHO_C" >&6
1939else
1940
1941
1942	    # First check to see if --with-tcl was specified.
1943	    if test x"${with_tclconfig}" != x ; then
1944		case ${with_tclconfig} in
1945		    */tclConfig.sh )
1946			if test -f ${with_tclconfig}; then
1947			    { echo "$as_me:$LINENO: WARNING: --with-tcl argument should refer to directory containing tclConfig.sh, not to tclConfig.sh itself" >&5
1948echo "$as_me: WARNING: --with-tcl argument should refer to directory containing tclConfig.sh, not to tclConfig.sh itself" >&2;}
1949			    with_tclconfig=`echo ${with_tclconfig} | sed 's!/tclConfig\.sh$!!'`
1950			fi ;;
1951		esac
1952		if test -f "${with_tclconfig}/tclConfig.sh" ; then
1953		    ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
1954		else
1955		    { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
1956echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
1957   { (exit 1); exit 1; }; }
1958		fi
1959	    fi
1960
1961	    # then check for a private Tcl installation
1962	    if test x"${ac_cv_c_tclconfig}" = x ; then
1963		for i in \
1964			../tcl \
1965			`ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
1966			`ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
1967			`ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
1968			../../tcl \
1969			`ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
1970			`ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
1971			`ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
1972			../../../tcl \
1973			`ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
1974			`ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
1975			`ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
1976		    if test -f "$i/unix/tclConfig.sh" ; then
1977			ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
1978			break
1979		    fi
1980		done
1981	    fi
1982
1983	    # on Darwin, check in Framework installation locations
1984	    if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then
1985		for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
1986			`ls -d /Library/Frameworks 2>/dev/null` \
1987			`ls -d /Network/Library/Frameworks 2>/dev/null` \
1988			`ls -d /System/Library/Frameworks 2>/dev/null` \
1989			; do
1990		    if test -f "$i/Tcl.framework/tclConfig.sh" ; then
1991			ac_cv_c_tclconfig=`(cd $i/Tcl.framework; pwd)`
1992			break
1993		    fi
1994		done
1995	    fi
1996
1997	    # on Windows, check in common installation locations
1998	    if test "${TEA_PLATFORM}" = "windows" \
1999		-a x"${ac_cv_c_tclconfig}" = x ; then
2000		for i in `ls -d C:/Tcl/lib 2>/dev/null` \
2001			`ls -d C:/Progra~1/Tcl/lib 2>/dev/null` \
2002			; do
2003		    if test -f "$i/tclConfig.sh" ; then
2004			ac_cv_c_tclconfig=`(cd $i; pwd)`
2005			break
2006		    fi
2007		done
2008	    fi
2009
2010	    # check in a few common install locations
2011	    # Bug fix #1367779 (by Wart)
2012	    if test x"${ac_cv_c_tclconfig}" = x ; then
2013		for i in `ls -d ${libdir} 2>/dev/null` \
2014			`ls -d ${exec_prefix}/lib 2>/dev/null` \
2015			`ls -d ${prefix}/lib 2>/dev/null` \
2016			`ls -d /usr/local/lib 2>/dev/null` \
2017			`ls -d /usr/contrib/lib 2>/dev/null` \
2018			`ls -d /usr/lib64 2>/dev/null` \
2019			`ls -d /usr/lib 2>/dev/null` \
2020			; do
2021		    if test -f "$i/tclConfig.sh" ; then
2022			ac_cv_c_tclconfig=`(cd $i; pwd)`
2023			break
2024		    fi
2025		done
2026	    fi
2027
2028	    # check in a few other private locations
2029	    if test x"${ac_cv_c_tclconfig}" = x ; then
2030		for i in \
2031			${srcdir}/../tcl \
2032			`ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
2033			`ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
2034			`ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
2035		    if test -f "$i/unix/tclConfig.sh" ; then
2036		    ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
2037		    break
2038		fi
2039		done
2040	    fi
2041
2042fi
2043
2044
2045	if test x"${ac_cv_c_tclconfig}" = x ; then
2046	    TCL_BIN_DIR="# no Tcl configs found"
2047	    { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
2048echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
2049	    exit 0
2050	else
2051	    no_tcl=
2052	    TCL_BIN_DIR=${ac_cv_c_tclconfig}
2053	    { echo "$as_me:$LINENO: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
2054echo "${ECHO_T}found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
2055	fi
2056    fi
2057
2058
2059    { echo "$as_me:$LINENO: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
2060echo $ECHO_N "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... $ECHO_C" >&6; }
2061
2062    if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
2063        { echo "$as_me:$LINENO: result: loading" >&5
2064echo "${ECHO_T}loading" >&6; }
2065	. "${TCL_BIN_DIR}/tclConfig.sh"
2066    else
2067        { echo "$as_me:$LINENO: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
2068echo "${ECHO_T}could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
2069    fi
2070
2071    # eval is required to do the TCL_DBGX substitution
2072    eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
2073    eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
2074
2075    # If the TCL_BIN_DIR is the build directory (not the install directory),
2076    # then set the common variable name to the value of the build variables.
2077    # For example, the variable TCL_LIB_SPEC will be set to the value
2078    # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
2079    # instead of TCL_BUILD_LIB_SPEC since it will work with both an
2080    # installed and uninstalled version of Tcl.
2081    if test -f "${TCL_BIN_DIR}/Makefile" ; then
2082        TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
2083        TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
2084        TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
2085    elif test "`uname -s`" = "Darwin"; then
2086	# If Tcl was built as a framework, attempt to use the libraries
2087	# from the framework at the given location so that linking works
2088	# against Tcl.framework installed in an arbitary location.
2089	case ${TCL_DEFS} in
2090	    *TCL_FRAMEWORK*)
2091		if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
2092		    for i in "`cd ${TCL_BIN_DIR}; pwd`" \
2093			     "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
2094			if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
2095			    TCL_LIB_SPEC="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
2096			    break
2097			fi
2098		    done
2099		fi
2100		if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
2101		    TCL_STUB_LIB_SPEC="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
2102		    TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
2103		fi
2104		;;
2105	esac
2106    fi
2107
2108    # eval is required to do the TCL_DBGX substitution
2109    eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
2110    eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
2111    eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
2112    eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134    if test "${prefix}" = "NONE"; then
2135	prefix_default=yes
2136	if test x"${TCL_PREFIX}" != x; then
2137	    { echo "$as_me:$LINENO: --prefix defaulting to TCL_PREFIX ${TCL_PREFIX}" >&5
2138echo "$as_me: --prefix defaulting to TCL_PREFIX ${TCL_PREFIX}" >&6;}
2139	    prefix=${TCL_PREFIX}
2140	else
2141	    { echo "$as_me:$LINENO: --prefix defaulting to /usr/local" >&5
2142echo "$as_me: --prefix defaulting to /usr/local" >&6;}
2143	    prefix=/usr/local
2144	fi
2145    fi
2146    if test "${exec_prefix}" = "NONE" -a x"${prefix_default}" = x"yes" \
2147	-o x"${exec_prefix_default}" = x"yes" ; then
2148	if test x"${TCL_EXEC_PREFIX}" != x; then
2149	    { echo "$as_me:$LINENO: --exec-prefix defaulting to TCL_EXEC_PREFIX ${TCL_EXEC_PREFIX}" >&5
2150echo "$as_me: --exec-prefix defaulting to TCL_EXEC_PREFIX ${TCL_EXEC_PREFIX}" >&6;}
2151	    exec_prefix=${TCL_EXEC_PREFIX}
2152	else
2153	    { echo "$as_me:$LINENO: --exec-prefix defaulting to ${prefix}" >&5
2154echo "$as_me: --exec-prefix defaulting to ${prefix}" >&6;}
2155	    exec_prefix=$prefix
2156	fi
2157    fi
2158
2159
2160
2161    # Don't put any macros that use the compiler (e.g. AC_TRY_COMPILE)
2162    # in this macro, they need to go into TEA_SETUP_COMPILER instead.
2163
2164    # If the user did not set CFLAGS, set it now to keep
2165    # the AC_PROG_CC macro from adding "-g -O2".
2166    if test "${CFLAGS+set}" != "set" ; then
2167	CFLAGS=""
2168    fi
2169
2170    ac_ext=c
2171ac_cpp='$CPP $CPPFLAGS'
2172ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2173ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2174ac_compiler_gnu=$ac_cv_c_compiler_gnu
2175if test -n "$ac_tool_prefix"; then
2176  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2177set dummy ${ac_tool_prefix}gcc; ac_word=$2
2178{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2179echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2180if test "${ac_cv_prog_CC+set}" = set; then
2181  echo $ECHO_N "(cached) $ECHO_C" >&6
2182else
2183  if test -n "$CC"; then
2184  ac_cv_prog_CC="$CC" # Let the user override the test.
2185else
2186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2187for as_dir in $PATH
2188do
2189  IFS=$as_save_IFS
2190  test -z "$as_dir" && as_dir=.
2191  for ac_exec_ext in '' $ac_executable_extensions; do
2192  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2193    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2194    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2195    break 2
2196  fi
2197done
2198done
2199IFS=$as_save_IFS
2200
2201fi
2202fi
2203CC=$ac_cv_prog_CC
2204if test -n "$CC"; then
2205  { echo "$as_me:$LINENO: result: $CC" >&5
2206echo "${ECHO_T}$CC" >&6; }
2207else
2208  { echo "$as_me:$LINENO: result: no" >&5
2209echo "${ECHO_T}no" >&6; }
2210fi
2211
2212
2213fi
2214if test -z "$ac_cv_prog_CC"; then
2215  ac_ct_CC=$CC
2216  # Extract the first word of "gcc", so it can be a program name with args.
2217set dummy gcc; ac_word=$2
2218{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2219echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2220if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2221  echo $ECHO_N "(cached) $ECHO_C" >&6
2222else
2223  if test -n "$ac_ct_CC"; then
2224  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2225else
2226as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2227for as_dir in $PATH
2228do
2229  IFS=$as_save_IFS
2230  test -z "$as_dir" && as_dir=.
2231  for ac_exec_ext in '' $ac_executable_extensions; do
2232  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2233    ac_cv_prog_ac_ct_CC="gcc"
2234    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2235    break 2
2236  fi
2237done
2238done
2239IFS=$as_save_IFS
2240
2241fi
2242fi
2243ac_ct_CC=$ac_cv_prog_ac_ct_CC
2244if test -n "$ac_ct_CC"; then
2245  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2246echo "${ECHO_T}$ac_ct_CC" >&6; }
2247else
2248  { echo "$as_me:$LINENO: result: no" >&5
2249echo "${ECHO_T}no" >&6; }
2250fi
2251
2252  if test "x$ac_ct_CC" = x; then
2253    CC=""
2254  else
2255    case $cross_compiling:$ac_tool_warned in
2256yes:)
2257{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2258whose name does not start with the host triplet.  If you think this
2259configuration is useful to you, please write to autoconf@gnu.org." >&5
2260echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2261whose name does not start with the host triplet.  If you think this
2262configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2263ac_tool_warned=yes ;;
2264esac
2265    CC=$ac_ct_CC
2266  fi
2267else
2268  CC="$ac_cv_prog_CC"
2269fi
2270
2271if test -z "$CC"; then
2272          if test -n "$ac_tool_prefix"; then
2273    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2274set dummy ${ac_tool_prefix}cc; ac_word=$2
2275{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2276echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2277if test "${ac_cv_prog_CC+set}" = set; then
2278  echo $ECHO_N "(cached) $ECHO_C" >&6
2279else
2280  if test -n "$CC"; then
2281  ac_cv_prog_CC="$CC" # Let the user override the test.
2282else
2283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2284for as_dir in $PATH
2285do
2286  IFS=$as_save_IFS
2287  test -z "$as_dir" && as_dir=.
2288  for ac_exec_ext in '' $ac_executable_extensions; do
2289  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2290    ac_cv_prog_CC="${ac_tool_prefix}cc"
2291    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2292    break 2
2293  fi
2294done
2295done
2296IFS=$as_save_IFS
2297
2298fi
2299fi
2300CC=$ac_cv_prog_CC
2301if test -n "$CC"; then
2302  { echo "$as_me:$LINENO: result: $CC" >&5
2303echo "${ECHO_T}$CC" >&6; }
2304else
2305  { echo "$as_me:$LINENO: result: no" >&5
2306echo "${ECHO_T}no" >&6; }
2307fi
2308
2309
2310  fi
2311fi
2312if test -z "$CC"; then
2313  # Extract the first word of "cc", so it can be a program name with args.
2314set dummy cc; ac_word=$2
2315{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2316echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2317if test "${ac_cv_prog_CC+set}" = set; then
2318  echo $ECHO_N "(cached) $ECHO_C" >&6
2319else
2320  if test -n "$CC"; then
2321  ac_cv_prog_CC="$CC" # Let the user override the test.
2322else
2323  ac_prog_rejected=no
2324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2325for as_dir in $PATH
2326do
2327  IFS=$as_save_IFS
2328  test -z "$as_dir" && as_dir=.
2329  for ac_exec_ext in '' $ac_executable_extensions; do
2330  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2331    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2332       ac_prog_rejected=yes
2333       continue
2334     fi
2335    ac_cv_prog_CC="cc"
2336    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2337    break 2
2338  fi
2339done
2340done
2341IFS=$as_save_IFS
2342
2343if test $ac_prog_rejected = yes; then
2344  # We found a bogon in the path, so make sure we never use it.
2345  set dummy $ac_cv_prog_CC
2346  shift
2347  if test $@%:@ != 0; then
2348    # We chose a different compiler from the bogus one.
2349    # However, it has the same basename, so the bogon will be chosen
2350    # first if we set CC to just the basename; use the full file name.
2351    shift
2352    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2353  fi
2354fi
2355fi
2356fi
2357CC=$ac_cv_prog_CC
2358if test -n "$CC"; then
2359  { echo "$as_me:$LINENO: result: $CC" >&5
2360echo "${ECHO_T}$CC" >&6; }
2361else
2362  { echo "$as_me:$LINENO: result: no" >&5
2363echo "${ECHO_T}no" >&6; }
2364fi
2365
2366
2367fi
2368if test -z "$CC"; then
2369  if test -n "$ac_tool_prefix"; then
2370  for ac_prog in cl.exe
2371  do
2372    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2373set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2374{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2375echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2376if test "${ac_cv_prog_CC+set}" = set; then
2377  echo $ECHO_N "(cached) $ECHO_C" >&6
2378else
2379  if test -n "$CC"; then
2380  ac_cv_prog_CC="$CC" # Let the user override the test.
2381else
2382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2383for as_dir in $PATH
2384do
2385  IFS=$as_save_IFS
2386  test -z "$as_dir" && as_dir=.
2387  for ac_exec_ext in '' $ac_executable_extensions; do
2388  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2389    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2390    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2391    break 2
2392  fi
2393done
2394done
2395IFS=$as_save_IFS
2396
2397fi
2398fi
2399CC=$ac_cv_prog_CC
2400if test -n "$CC"; then
2401  { echo "$as_me:$LINENO: result: $CC" >&5
2402echo "${ECHO_T}$CC" >&6; }
2403else
2404  { echo "$as_me:$LINENO: result: no" >&5
2405echo "${ECHO_T}no" >&6; }
2406fi
2407
2408
2409    test -n "$CC" && break
2410  done
2411fi
2412if test -z "$CC"; then
2413  ac_ct_CC=$CC
2414  for ac_prog in cl.exe
2415do
2416  # Extract the first word of "$ac_prog", so it can be a program name with args.
2417set dummy $ac_prog; ac_word=$2
2418{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2419echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2420if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2421  echo $ECHO_N "(cached) $ECHO_C" >&6
2422else
2423  if test -n "$ac_ct_CC"; then
2424  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2425else
2426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2427for as_dir in $PATH
2428do
2429  IFS=$as_save_IFS
2430  test -z "$as_dir" && as_dir=.
2431  for ac_exec_ext in '' $ac_executable_extensions; do
2432  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2433    ac_cv_prog_ac_ct_CC="$ac_prog"
2434    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2435    break 2
2436  fi
2437done
2438done
2439IFS=$as_save_IFS
2440
2441fi
2442fi
2443ac_ct_CC=$ac_cv_prog_ac_ct_CC
2444if test -n "$ac_ct_CC"; then
2445  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2446echo "${ECHO_T}$ac_ct_CC" >&6; }
2447else
2448  { echo "$as_me:$LINENO: result: no" >&5
2449echo "${ECHO_T}no" >&6; }
2450fi
2451
2452
2453  test -n "$ac_ct_CC" && break
2454done
2455
2456  if test "x$ac_ct_CC" = x; then
2457    CC=""
2458  else
2459    case $cross_compiling:$ac_tool_warned in
2460yes:)
2461{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2462whose name does not start with the host triplet.  If you think this
2463configuration is useful to you, please write to autoconf@gnu.org." >&5
2464echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2465whose name does not start with the host triplet.  If you think this
2466configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2467ac_tool_warned=yes ;;
2468esac
2469    CC=$ac_ct_CC
2470  fi
2471fi
2472
2473fi
2474
2475
2476test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2477See \`config.log' for more details." >&5
2478echo "$as_me: error: no acceptable C compiler found in \$PATH
2479See \`config.log' for more details." >&2;}
2480   { (exit 1); exit 1; }; }
2481
2482# Provide some information about the compiler.
2483echo "$as_me:$LINENO: checking for C compiler version" >&5
2484ac_compiler=`set X $ac_compile; echo $2`
2485{ (ac_try="$ac_compiler --version >&5"
2486case "(($ac_try" in
2487  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2488  *) ac_try_echo=$ac_try;;
2489esac
2490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2491  (eval "$ac_compiler --version >&5") 2>&5
2492  ac_status=$?
2493  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494  (exit $ac_status); }
2495{ (ac_try="$ac_compiler -v >&5"
2496case "(($ac_try" in
2497  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2498  *) ac_try_echo=$ac_try;;
2499esac
2500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2501  (eval "$ac_compiler -v >&5") 2>&5
2502  ac_status=$?
2503  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2504  (exit $ac_status); }
2505{ (ac_try="$ac_compiler -V >&5"
2506case "(($ac_try" in
2507  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2508  *) ac_try_echo=$ac_try;;
2509esac
2510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2511  (eval "$ac_compiler -V >&5") 2>&5
2512  ac_status=$?
2513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514  (exit $ac_status); }
2515
2516cat >conftest.$ac_ext <<_ACEOF
2517/* confdefs.h.  */
2518_ACEOF
2519cat confdefs.h >>conftest.$ac_ext
2520cat >>conftest.$ac_ext <<_ACEOF
2521/* end confdefs.h.  */
2522
2523int
2524main ()
2525{
2526
2527  ;
2528  return 0;
2529}
2530_ACEOF
2531ac_clean_files_save=$ac_clean_files
2532ac_clean_files="$ac_clean_files a.out a.exe b.out"
2533# Try to create an executable without -o first, disregard a.out.
2534# It will help us diagnose broken compilers, and finding out an intuition
2535# of exeext.
2536{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2537echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2538ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2539#
2540# List of possible output files, starting from the most likely.
2541# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2542# only as a last resort.  b.out is created by i960 compilers.
2543ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2544#
2545# The IRIX 6 linker writes into existing files which may not be
2546# executable, retaining their permissions.  Remove them first so a
2547# subsequent execution test works.
2548ac_rmfiles=
2549for ac_file in $ac_files
2550do
2551  case $ac_file in
2552    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2553    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2554  esac
2555done
2556rm -f $ac_rmfiles
2557
2558if { (ac_try="$ac_link_default"
2559case "(($ac_try" in
2560  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2561  *) ac_try_echo=$ac_try;;
2562esac
2563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2564  (eval "$ac_link_default") 2>&5
2565  ac_status=$?
2566  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2567  (exit $ac_status); }; then
2568  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2569# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2570# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2571# so that the user can short-circuit this test for compilers unknown to
2572# Autoconf.
2573for ac_file in $ac_files ''
2574do
2575  test -f "$ac_file" || continue
2576  case $ac_file in
2577    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2578	;;
2579    [ab].out )
2580	# We found the default executable, but exeext='' is most
2581	# certainly right.
2582	break;;
2583    *.* )
2584        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2585	then :; else
2586	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2587	fi
2588	# We set ac_cv_exeext here because the later test for it is not
2589	# safe: cross compilers may not add the suffix if given an `-o'
2590	# argument, so we may need to know it at that point already.
2591	# Even if this section looks crufty: it has the advantage of
2592	# actually working.
2593	break;;
2594    * )
2595	break;;
2596  esac
2597done
2598test "$ac_cv_exeext" = no && ac_cv_exeext=
2599
2600else
2601  ac_file=''
2602fi
2603
2604{ echo "$as_me:$LINENO: result: $ac_file" >&5
2605echo "${ECHO_T}$ac_file" >&6; }
2606if test -z "$ac_file"; then
2607  echo "$as_me: failed program was:" >&5
2608sed 's/^/| /' conftest.$ac_ext >&5
2609
2610{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2611See \`config.log' for more details." >&5
2612echo "$as_me: error: C compiler cannot create executables
2613See \`config.log' for more details." >&2;}
2614   { (exit 77); exit 77; }; }
2615fi
2616
2617ac_exeext=$ac_cv_exeext
2618
2619# Check that the compiler produces executables we can run.  If not, either
2620# the compiler is broken, or we cross compile.
2621{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2622echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2623# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2624# If not cross compiling, check that we can run a simple program.
2625if test "$cross_compiling" != yes; then
2626  if { ac_try='./$ac_file'
2627  { (case "(($ac_try" in
2628  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2629  *) ac_try_echo=$ac_try;;
2630esac
2631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2632  (eval "$ac_try") 2>&5
2633  ac_status=$?
2634  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2635  (exit $ac_status); }; }; then
2636    cross_compiling=no
2637  else
2638    if test "$cross_compiling" = maybe; then
2639	cross_compiling=yes
2640    else
2641	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2642If you meant to cross compile, use \`--host'.
2643See \`config.log' for more details." >&5
2644echo "$as_me: error: cannot run C compiled programs.
2645If you meant to cross compile, use \`--host'.
2646See \`config.log' for more details." >&2;}
2647   { (exit 1); exit 1; }; }
2648    fi
2649  fi
2650fi
2651{ echo "$as_me:$LINENO: result: yes" >&5
2652echo "${ECHO_T}yes" >&6; }
2653
2654rm -f a.out a.exe conftest$ac_cv_exeext b.out
2655ac_clean_files=$ac_clean_files_save
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 we are cross compiling" >&5
2659echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2660{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2661echo "${ECHO_T}$cross_compiling" >&6; }
2662
2663{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2664echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2665if { (ac_try="$ac_link"
2666case "(($ac_try" in
2667  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2668  *) ac_try_echo=$ac_try;;
2669esac
2670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2671  (eval "$ac_link") 2>&5
2672  ac_status=$?
2673  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674  (exit $ac_status); }; then
2675  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2676# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2677# work properly (i.e., refer to `conftest.exe'), while it won't with
2678# `rm'.
2679for ac_file in conftest.exe conftest conftest.*; do
2680  test -f "$ac_file" || continue
2681  case $ac_file in
2682    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2683    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2684	  break;;
2685    * ) break;;
2686  esac
2687done
2688else
2689  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2690See \`config.log' for more details." >&5
2691echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2692See \`config.log' for more details." >&2;}
2693   { (exit 1); exit 1; }; }
2694fi
2695
2696rm -f conftest$ac_cv_exeext
2697{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2698echo "${ECHO_T}$ac_cv_exeext" >&6; }
2699
2700rm -f conftest.$ac_ext
2701EXEEXT=$ac_cv_exeext
2702ac_exeext=$EXEEXT
2703{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2704echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2705if test "${ac_cv_objext+set}" = set; then
2706  echo $ECHO_N "(cached) $ECHO_C" >&6
2707else
2708  cat >conftest.$ac_ext <<_ACEOF
2709/* confdefs.h.  */
2710_ACEOF
2711cat confdefs.h >>conftest.$ac_ext
2712cat >>conftest.$ac_ext <<_ACEOF
2713/* end confdefs.h.  */
2714
2715int
2716main ()
2717{
2718
2719  ;
2720  return 0;
2721}
2722_ACEOF
2723rm -f conftest.o conftest.obj
2724if { (ac_try="$ac_compile"
2725case "(($ac_try" in
2726  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2727  *) ac_try_echo=$ac_try;;
2728esac
2729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2730  (eval "$ac_compile") 2>&5
2731  ac_status=$?
2732  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733  (exit $ac_status); }; then
2734  for ac_file in conftest.o conftest.obj conftest.*; do
2735  test -f "$ac_file" || continue;
2736  case $ac_file in
2737    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2738    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2739       break;;
2740  esac
2741done
2742else
2743  echo "$as_me: failed program was:" >&5
2744sed 's/^/| /' conftest.$ac_ext >&5
2745
2746{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2747See \`config.log' for more details." >&5
2748echo "$as_me: error: cannot compute suffix of object files: cannot compile
2749See \`config.log' for more details." >&2;}
2750   { (exit 1); exit 1; }; }
2751fi
2752
2753rm -f conftest.$ac_cv_objext conftest.$ac_ext
2754fi
2755{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2756echo "${ECHO_T}$ac_cv_objext" >&6; }
2757OBJEXT=$ac_cv_objext
2758ac_objext=$OBJEXT
2759{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2760echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2761if test "${ac_cv_c_compiler_gnu+set}" = set; then
2762  echo $ECHO_N "(cached) $ECHO_C" >&6
2763else
2764  cat >conftest.$ac_ext <<_ACEOF
2765/* confdefs.h.  */
2766_ACEOF
2767cat confdefs.h >>conftest.$ac_ext
2768cat >>conftest.$ac_ext <<_ACEOF
2769/* end confdefs.h.  */
2770
2771int
2772main ()
2773{
2774#ifndef __GNUC__
2775       choke me
2776#endif
2777
2778  ;
2779  return 0;
2780}
2781_ACEOF
2782rm -f conftest.$ac_objext
2783if { (ac_try="$ac_compile"
2784case "(($ac_try" in
2785  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2786  *) ac_try_echo=$ac_try;;
2787esac
2788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2789  (eval "$ac_compile") 2>conftest.er1
2790  ac_status=$?
2791  grep -v '^ *+' conftest.er1 >conftest.err
2792  rm -f conftest.er1
2793  cat conftest.err >&5
2794  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795  (exit $ac_status); } && {
2796	 test -z "$ac_c_werror_flag" ||
2797	 test ! -s conftest.err
2798       } && test -s conftest.$ac_objext; then
2799  ac_compiler_gnu=yes
2800else
2801  echo "$as_me: failed program was:" >&5
2802sed 's/^/| /' conftest.$ac_ext >&5
2803
2804	ac_compiler_gnu=no
2805fi
2806
2807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2808ac_cv_c_compiler_gnu=$ac_compiler_gnu
2809
2810fi
2811{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2812echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2813GCC=`test $ac_compiler_gnu = yes && echo yes`
2814ac_test_CFLAGS=${CFLAGS+set}
2815ac_save_CFLAGS=$CFLAGS
2816{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2817echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2818if test "${ac_cv_prog_cc_g+set}" = set; then
2819  echo $ECHO_N "(cached) $ECHO_C" >&6
2820else
2821  ac_save_c_werror_flag=$ac_c_werror_flag
2822   ac_c_werror_flag=yes
2823   ac_cv_prog_cc_g=no
2824   CFLAGS="-g"
2825   cat >conftest.$ac_ext <<_ACEOF
2826/* confdefs.h.  */
2827_ACEOF
2828cat confdefs.h >>conftest.$ac_ext
2829cat >>conftest.$ac_ext <<_ACEOF
2830/* end confdefs.h.  */
2831
2832int
2833main ()
2834{
2835
2836  ;
2837  return 0;
2838}
2839_ACEOF
2840rm -f conftest.$ac_objext
2841if { (ac_try="$ac_compile"
2842case "(($ac_try" in
2843  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2844  *) ac_try_echo=$ac_try;;
2845esac
2846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2847  (eval "$ac_compile") 2>conftest.er1
2848  ac_status=$?
2849  grep -v '^ *+' conftest.er1 >conftest.err
2850  rm -f conftest.er1
2851  cat conftest.err >&5
2852  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2853  (exit $ac_status); } && {
2854	 test -z "$ac_c_werror_flag" ||
2855	 test ! -s conftest.err
2856       } && test -s conftest.$ac_objext; then
2857  ac_cv_prog_cc_g=yes
2858else
2859  echo "$as_me: failed program was:" >&5
2860sed 's/^/| /' conftest.$ac_ext >&5
2861
2862	CFLAGS=""
2863      cat >conftest.$ac_ext <<_ACEOF
2864/* confdefs.h.  */
2865_ACEOF
2866cat confdefs.h >>conftest.$ac_ext
2867cat >>conftest.$ac_ext <<_ACEOF
2868/* end confdefs.h.  */
2869
2870int
2871main ()
2872{
2873
2874  ;
2875  return 0;
2876}
2877_ACEOF
2878rm -f conftest.$ac_objext
2879if { (ac_try="$ac_compile"
2880case "(($ac_try" in
2881  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2882  *) ac_try_echo=$ac_try;;
2883esac
2884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2885  (eval "$ac_compile") 2>conftest.er1
2886  ac_status=$?
2887  grep -v '^ *+' conftest.er1 >conftest.err
2888  rm -f conftest.er1
2889  cat conftest.err >&5
2890  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891  (exit $ac_status); } && {
2892	 test -z "$ac_c_werror_flag" ||
2893	 test ! -s conftest.err
2894       } && test -s conftest.$ac_objext; then
2895  :
2896else
2897  echo "$as_me: failed program was:" >&5
2898sed 's/^/| /' conftest.$ac_ext >&5
2899
2900	ac_c_werror_flag=$ac_save_c_werror_flag
2901	 CFLAGS="-g"
2902	 cat >conftest.$ac_ext <<_ACEOF
2903/* confdefs.h.  */
2904_ACEOF
2905cat confdefs.h >>conftest.$ac_ext
2906cat >>conftest.$ac_ext <<_ACEOF
2907/* end confdefs.h.  */
2908
2909int
2910main ()
2911{
2912
2913  ;
2914  return 0;
2915}
2916_ACEOF
2917rm -f conftest.$ac_objext
2918if { (ac_try="$ac_compile"
2919case "(($ac_try" in
2920  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2921  *) ac_try_echo=$ac_try;;
2922esac
2923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2924  (eval "$ac_compile") 2>conftest.er1
2925  ac_status=$?
2926  grep -v '^ *+' conftest.er1 >conftest.err
2927  rm -f conftest.er1
2928  cat conftest.err >&5
2929  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930  (exit $ac_status); } && {
2931	 test -z "$ac_c_werror_flag" ||
2932	 test ! -s conftest.err
2933       } && test -s conftest.$ac_objext; then
2934  ac_cv_prog_cc_g=yes
2935else
2936  echo "$as_me: failed program was:" >&5
2937sed 's/^/| /' conftest.$ac_ext >&5
2938
2939
2940fi
2941
2942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2943fi
2944
2945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2946fi
2947
2948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2949   ac_c_werror_flag=$ac_save_c_werror_flag
2950fi
2951{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2952echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2953if test "$ac_test_CFLAGS" = set; then
2954  CFLAGS=$ac_save_CFLAGS
2955elif test $ac_cv_prog_cc_g = yes; then
2956  if test "$GCC" = yes; then
2957    CFLAGS="-g -O2"
2958  else
2959    CFLAGS="-g"
2960  fi
2961else
2962  if test "$GCC" = yes; then
2963    CFLAGS="-O2"
2964  else
2965    CFLAGS=
2966  fi
2967fi
2968{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2969echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2970if test "${ac_cv_prog_cc_c89+set}" = set; then
2971  echo $ECHO_N "(cached) $ECHO_C" >&6
2972else
2973  ac_cv_prog_cc_c89=no
2974ac_save_CC=$CC
2975cat >conftest.$ac_ext <<_ACEOF
2976/* confdefs.h.  */
2977_ACEOF
2978cat confdefs.h >>conftest.$ac_ext
2979cat >>conftest.$ac_ext <<_ACEOF
2980/* end confdefs.h.  */
2981#include <stdarg.h>
2982#include <stdio.h>
2983#include <sys/types.h>
2984#include <sys/stat.h>
2985/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2986struct buf { int x; };
2987FILE * (*rcsopen) (struct buf *, struct stat *, int);
2988static char *e (p, i)
2989     char **p;
2990     int i;
2991{
2992  return p[i];
2993}
2994static char *f (char * (*g) (char **, int), char **p, ...)
2995{
2996  char *s;
2997  va_list v;
2998  va_start (v,p);
2999  s = g (p, va_arg (v,int));
3000  va_end (v);
3001  return s;
3002}
3003
3004/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3005   function prototypes and stuff, but not '\xHH' hex character constants.
3006   These don't provoke an error unfortunately, instead are silently treated
3007   as 'x'.  The following induces an error, until -std is added to get
3008   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3009   array size at least.  It's necessary to write '\x00'==0 to get something
3010   that's true only with -std.  */
3011int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3012
3013/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3014   inside strings and character constants.  */
3015#define FOO(x) 'x'
3016int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3017
3018int test (int i, double x);
3019struct s1 {int (*f) (int a);};
3020struct s2 {int (*f) (double a);};
3021int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3022int argc;
3023char **argv;
3024int
3025main ()
3026{
3027return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3028  ;
3029  return 0;
3030}
3031_ACEOF
3032for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3033	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3034do
3035  CC="$ac_save_CC $ac_arg"
3036  rm -f conftest.$ac_objext
3037if { (ac_try="$ac_compile"
3038case "(($ac_try" in
3039  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3040  *) ac_try_echo=$ac_try;;
3041esac
3042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3043  (eval "$ac_compile") 2>conftest.er1
3044  ac_status=$?
3045  grep -v '^ *+' conftest.er1 >conftest.err
3046  rm -f conftest.er1
3047  cat conftest.err >&5
3048  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3049  (exit $ac_status); } && {
3050	 test -z "$ac_c_werror_flag" ||
3051	 test ! -s conftest.err
3052       } && test -s conftest.$ac_objext; then
3053  ac_cv_prog_cc_c89=$ac_arg
3054else
3055  echo "$as_me: failed program was:" >&5
3056sed 's/^/| /' conftest.$ac_ext >&5
3057
3058
3059fi
3060
3061rm -f core conftest.err conftest.$ac_objext
3062  test "x$ac_cv_prog_cc_c89" != "xno" && break
3063done
3064rm -f conftest.$ac_ext
3065CC=$ac_save_CC
3066
3067fi
3068# AC_CACHE_VAL
3069case "x$ac_cv_prog_cc_c89" in
3070  x)
3071    { echo "$as_me:$LINENO: result: none needed" >&5
3072echo "${ECHO_T}none needed" >&6; } ;;
3073  xno)
3074    { echo "$as_me:$LINENO: result: unsupported" >&5
3075echo "${ECHO_T}unsupported" >&6; } ;;
3076  *)
3077    CC="$CC $ac_cv_prog_cc_c89"
3078    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3079echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3080esac
3081
3082
3083ac_ext=c
3084ac_cpp='$CPP $CPPFLAGS'
3085ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3086ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3087ac_compiler_gnu=$ac_cv_c_compiler_gnu
3088
3089    ac_ext=c
3090ac_cpp='$CPP $CPPFLAGS'
3091ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3092ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3093ac_compiler_gnu=$ac_cv_c_compiler_gnu
3094{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3095echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3096# On Suns, sometimes $CPP names a directory.
3097if test -n "$CPP" && test -d "$CPP"; then
3098  CPP=
3099fi
3100if test -z "$CPP"; then
3101  if test "${ac_cv_prog_CPP+set}" = set; then
3102  echo $ECHO_N "(cached) $ECHO_C" >&6
3103else
3104      # Double quotes because CPP needs to be expanded
3105    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3106    do
3107      ac_preproc_ok=false
3108for ac_c_preproc_warn_flag in '' yes
3109do
3110  # Use a header file that comes with gcc, so configuring glibc
3111  # with a fresh cross-compiler works.
3112  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3113  # <limits.h> exists even on freestanding compilers.
3114  # On the NeXT, cc -E runs the code through the compiler's parser,
3115  # not just through cpp. "Syntax error" is here to catch this case.
3116  cat >conftest.$ac_ext <<_ACEOF
3117/* confdefs.h.  */
3118_ACEOF
3119cat confdefs.h >>conftest.$ac_ext
3120cat >>conftest.$ac_ext <<_ACEOF
3121/* end confdefs.h.  */
3122@%:@ifdef __STDC__
3123@%:@ include <limits.h>
3124@%:@else
3125@%:@ include <assert.h>
3126@%:@endif
3127		     Syntax error
3128_ACEOF
3129if { (ac_try="$ac_cpp conftest.$ac_ext"
3130case "(($ac_try" in
3131  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3132  *) ac_try_echo=$ac_try;;
3133esac
3134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3135  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3136  ac_status=$?
3137  grep -v '^ *+' conftest.er1 >conftest.err
3138  rm -f conftest.er1
3139  cat conftest.err >&5
3140  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141  (exit $ac_status); } >/dev/null && {
3142	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3143	 test ! -s conftest.err
3144       }; then
3145  :
3146else
3147  echo "$as_me: failed program was:" >&5
3148sed 's/^/| /' conftest.$ac_ext >&5
3149
3150  # Broken: fails on valid input.
3151continue
3152fi
3153
3154rm -f conftest.err conftest.$ac_ext
3155
3156  # OK, works on sane cases.  Now check whether nonexistent headers
3157  # can be detected and how.
3158  cat >conftest.$ac_ext <<_ACEOF
3159/* confdefs.h.  */
3160_ACEOF
3161cat confdefs.h >>conftest.$ac_ext
3162cat >>conftest.$ac_ext <<_ACEOF
3163/* end confdefs.h.  */
3164@%:@include <ac_nonexistent.h>
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  # Broken: success on invalid input.
3183continue
3184else
3185  echo "$as_me: failed program was:" >&5
3186sed 's/^/| /' conftest.$ac_ext >&5
3187
3188  # Passes both tests.
3189ac_preproc_ok=:
3190break
3191fi
3192
3193rm -f conftest.err conftest.$ac_ext
3194
3195done
3196# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3197rm -f conftest.err conftest.$ac_ext
3198if $ac_preproc_ok; then
3199  break
3200fi
3201
3202    done
3203    ac_cv_prog_CPP=$CPP
3204
3205fi
3206  CPP=$ac_cv_prog_CPP
3207else
3208  ac_cv_prog_CPP=$CPP
3209fi
3210{ echo "$as_me:$LINENO: result: $CPP" >&5
3211echo "${ECHO_T}$CPP" >&6; }
3212ac_preproc_ok=false
3213for ac_c_preproc_warn_flag in '' yes
3214do
3215  # Use a header file that comes with gcc, so configuring glibc
3216  # with a fresh cross-compiler works.
3217  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3218  # <limits.h> exists even on freestanding compilers.
3219  # On the NeXT, cc -E runs the code through the compiler's parser,
3220  # not just through cpp. "Syntax error" is here to catch this case.
3221  cat >conftest.$ac_ext <<_ACEOF
3222/* confdefs.h.  */
3223_ACEOF
3224cat confdefs.h >>conftest.$ac_ext
3225cat >>conftest.$ac_ext <<_ACEOF
3226/* end confdefs.h.  */
3227@%:@ifdef __STDC__
3228@%:@ include <limits.h>
3229@%:@else
3230@%:@ include <assert.h>
3231@%:@endif
3232		     Syntax error
3233_ACEOF
3234if { (ac_try="$ac_cpp conftest.$ac_ext"
3235case "(($ac_try" in
3236  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3237  *) ac_try_echo=$ac_try;;
3238esac
3239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3240  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3241  ac_status=$?
3242  grep -v '^ *+' conftest.er1 >conftest.err
3243  rm -f conftest.er1
3244  cat conftest.err >&5
3245  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246  (exit $ac_status); } >/dev/null && {
3247	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3248	 test ! -s conftest.err
3249       }; then
3250  :
3251else
3252  echo "$as_me: failed program was:" >&5
3253sed 's/^/| /' conftest.$ac_ext >&5
3254
3255  # Broken: fails on valid input.
3256continue
3257fi
3258
3259rm -f conftest.err conftest.$ac_ext
3260
3261  # OK, works on sane cases.  Now check whether nonexistent headers
3262  # can be detected and how.
3263  cat >conftest.$ac_ext <<_ACEOF
3264/* confdefs.h.  */
3265_ACEOF
3266cat confdefs.h >>conftest.$ac_ext
3267cat >>conftest.$ac_ext <<_ACEOF
3268/* end confdefs.h.  */
3269@%:@include <ac_nonexistent.h>
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  # Broken: success on invalid input.
3288continue
3289else
3290  echo "$as_me: failed program was:" >&5
3291sed 's/^/| /' conftest.$ac_ext >&5
3292
3293  # Passes both tests.
3294ac_preproc_ok=:
3295break
3296fi
3297
3298rm -f conftest.err conftest.$ac_ext
3299
3300done
3301# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3302rm -f conftest.err conftest.$ac_ext
3303if $ac_preproc_ok; then
3304  :
3305else
3306  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3307See \`config.log' for more details." >&5
3308echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3309See \`config.log' for more details." >&2;}
3310   { (exit 1); exit 1; }; }
3311fi
3312
3313ac_ext=c
3314ac_cpp='$CPP $CPPFLAGS'
3315ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3316ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3317ac_compiler_gnu=$ac_cv_c_compiler_gnu
3318
3319
3320    # Find a good install program.  We prefer a C program (faster),
3321# so one script is as good as another.  But avoid the broken or
3322# incompatible versions:
3323# SysV /etc/install, /usr/sbin/install
3324# SunOS /usr/etc/install
3325# IRIX /sbin/install
3326# AIX /bin/install
3327# AmigaOS /C/install, which installs bootblocks on floppy discs
3328# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3329# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3330# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3331# OS/2's system install, which has a completely different semantic
3332# ./install, which can be erroneously created by make from ./install.sh.
3333{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3334echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3335if test -z "$INSTALL"; then
3336if test "${ac_cv_path_install+set}" = set; then
3337  echo $ECHO_N "(cached) $ECHO_C" >&6
3338else
3339  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3340for as_dir in $PATH
3341do
3342  IFS=$as_save_IFS
3343  test -z "$as_dir" && as_dir=.
3344  # Account for people who put trailing slashes in PATH elements.
3345case $as_dir/ in
3346  ./ | .// | /cC/* | \
3347  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3348  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3349  /usr/ucb/* ) ;;
3350  *)
3351    # OSF1 and SCO ODT 3.0 have their own names for install.
3352    # Don't use installbsd from OSF since it installs stuff as root
3353    # by default.
3354    for ac_prog in ginstall scoinst install; do
3355      for ac_exec_ext in '' $ac_executable_extensions; do
3356	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3357	  if test $ac_prog = install &&
3358	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3359	    # AIX install.  It has an incompatible calling convention.
3360	    :
3361	  elif test $ac_prog = install &&
3362	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3363	    # program-specific install script used by HP pwplus--don't use.
3364	    :
3365	  else
3366	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3367	    break 3
3368	  fi
3369	fi
3370      done
3371    done
3372    ;;
3373esac
3374done
3375IFS=$as_save_IFS
3376
3377
3378fi
3379  if test "${ac_cv_path_install+set}" = set; then
3380    INSTALL=$ac_cv_path_install
3381  else
3382    # As a last resort, use the slow shell script.  Don't cache a
3383    # value for INSTALL within a source directory, because that will
3384    # break other packages using the cache if that directory is
3385    # removed, or if the value is a relative name.
3386    INSTALL=$ac_install_sh
3387  fi
3388fi
3389{ echo "$as_me:$LINENO: result: $INSTALL" >&5
3390echo "${ECHO_T}$INSTALL" >&6; }
3391
3392# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3393# It thinks the first close brace ends the variable substitution.
3394test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3395
3396test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3397
3398test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3399
3400
3401    #--------------------------------------------------------------------
3402    # Checks to see if the make program sets the $MAKE variable.
3403    #--------------------------------------------------------------------
3404
3405    { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3406echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
3407set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3408if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3409  echo $ECHO_N "(cached) $ECHO_C" >&6
3410else
3411  cat >conftest.make <<\_ACEOF
3412SHELL = /bin/sh
3413all:
3414	@echo '@@@%%%=$(MAKE)=@@@%%%'
3415_ACEOF
3416# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3417case `${MAKE-make} -f conftest.make 2>/dev/null` in
3418  *@@@%%%=?*=@@@%%%*)
3419    eval ac_cv_prog_make_${ac_make}_set=yes;;
3420  *)
3421    eval ac_cv_prog_make_${ac_make}_set=no;;
3422esac
3423rm -f conftest.make
3424fi
3425if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3426  { echo "$as_me:$LINENO: result: yes" >&5
3427echo "${ECHO_T}yes" >&6; }
3428  SET_MAKE=
3429else
3430  { echo "$as_me:$LINENO: result: no" >&5
3431echo "${ECHO_T}no" >&6; }
3432  SET_MAKE="MAKE=${MAKE-make}"
3433fi
3434
3435
3436    #--------------------------------------------------------------------
3437    # Find ranlib
3438    #--------------------------------------------------------------------
3439
3440    if test -n "$ac_tool_prefix"; then
3441  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3442set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3443{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3444echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3445if test "${ac_cv_prog_RANLIB+set}" = set; then
3446  echo $ECHO_N "(cached) $ECHO_C" >&6
3447else
3448  if test -n "$RANLIB"; then
3449  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3450else
3451as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3452for as_dir in $PATH
3453do
3454  IFS=$as_save_IFS
3455  test -z "$as_dir" && as_dir=.
3456  for ac_exec_ext in '' $ac_executable_extensions; do
3457  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3458    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3459    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3460    break 2
3461  fi
3462done
3463done
3464IFS=$as_save_IFS
3465
3466fi
3467fi
3468RANLIB=$ac_cv_prog_RANLIB
3469if test -n "$RANLIB"; then
3470  { echo "$as_me:$LINENO: result: $RANLIB" >&5
3471echo "${ECHO_T}$RANLIB" >&6; }
3472else
3473  { echo "$as_me:$LINENO: result: no" >&5
3474echo "${ECHO_T}no" >&6; }
3475fi
3476
3477
3478fi
3479if test -z "$ac_cv_prog_RANLIB"; then
3480  ac_ct_RANLIB=$RANLIB
3481  # Extract the first word of "ranlib", so it can be a program name with args.
3482set dummy ranlib; ac_word=$2
3483{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3484echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3485if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3486  echo $ECHO_N "(cached) $ECHO_C" >&6
3487else
3488  if test -n "$ac_ct_RANLIB"; then
3489  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3490else
3491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3492for as_dir in $PATH
3493do
3494  IFS=$as_save_IFS
3495  test -z "$as_dir" && as_dir=.
3496  for ac_exec_ext in '' $ac_executable_extensions; do
3497  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3498    ac_cv_prog_ac_ct_RANLIB="ranlib"
3499    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3500    break 2
3501  fi
3502done
3503done
3504IFS=$as_save_IFS
3505
3506fi
3507fi
3508ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3509if test -n "$ac_ct_RANLIB"; then
3510  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3511echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3512else
3513  { echo "$as_me:$LINENO: result: no" >&5
3514echo "${ECHO_T}no" >&6; }
3515fi
3516
3517  if test "x$ac_ct_RANLIB" = x; then
3518    RANLIB=":"
3519  else
3520    case $cross_compiling:$ac_tool_warned in
3521yes:)
3522{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3523whose name does not start with the host triplet.  If you think this
3524configuration is useful to you, please write to autoconf@gnu.org." >&5
3525echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3526whose name does not start with the host triplet.  If you think this
3527configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3528ac_tool_warned=yes ;;
3529esac
3530    RANLIB=$ac_ct_RANLIB
3531  fi
3532else
3533  RANLIB="$ac_cv_prog_RANLIB"
3534fi
3535
3536
3537    #--------------------------------------------------------------------
3538    # Determines the correct binary file extension (.o, .obj, .exe etc.)
3539    #--------------------------------------------------------------------
3540
3541
3542
3543
3544
3545
3546{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3547echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3548if test "${ac_cv_path_GREP+set}" = set; then
3549  echo $ECHO_N "(cached) $ECHO_C" >&6
3550else
3551  # Extract the first word of "grep ggrep" to use in msg output
3552if test -z "$GREP"; then
3553set dummy grep ggrep; ac_prog_name=$2
3554if test "${ac_cv_path_GREP+set}" = set; then
3555  echo $ECHO_N "(cached) $ECHO_C" >&6
3556else
3557  ac_path_GREP_found=false
3558# Loop through the user's path and test for each of PROGNAME-LIST
3559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3560for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3561do
3562  IFS=$as_save_IFS
3563  test -z "$as_dir" && as_dir=.
3564  for ac_prog in grep ggrep; do
3565  for ac_exec_ext in '' $ac_executable_extensions; do
3566    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3567    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3568    # Check for GNU ac_path_GREP and select it if it is found.
3569  # Check for GNU $ac_path_GREP
3570case `"$ac_path_GREP" --version 2>&1` in
3571*GNU*)
3572  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3573*)
3574  ac_count=0
3575  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3576  while :
3577  do
3578    cat "conftest.in" "conftest.in" >"conftest.tmp"
3579    mv "conftest.tmp" "conftest.in"
3580    cp "conftest.in" "conftest.nl"
3581    echo 'GREP' >> "conftest.nl"
3582    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3583    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3584    ac_count=`expr $ac_count + 1`
3585    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3586      # Best one so far, save it but keep looking for a better one
3587      ac_cv_path_GREP="$ac_path_GREP"
3588      ac_path_GREP_max=$ac_count
3589    fi
3590    # 10*(2^10) chars as input seems more than enough
3591    test $ac_count -gt 10 && break
3592  done
3593  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3594esac
3595
3596
3597    $ac_path_GREP_found && break 3
3598  done
3599done
3600
3601done
3602IFS=$as_save_IFS
3603
3604
3605fi
3606
3607GREP="$ac_cv_path_GREP"
3608if test -z "$GREP"; then
3609  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3610echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3611   { (exit 1); exit 1; }; }
3612fi
3613
3614else
3615  ac_cv_path_GREP=$GREP
3616fi
3617
3618
3619fi
3620{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3621echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3622 GREP="$ac_cv_path_GREP"
3623
3624
3625{ echo "$as_me:$LINENO: checking for egrep" >&5
3626echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3627if test "${ac_cv_path_EGREP+set}" = set; then
3628  echo $ECHO_N "(cached) $ECHO_C" >&6
3629else
3630  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3631   then ac_cv_path_EGREP="$GREP -E"
3632   else
3633     # Extract the first word of "egrep" to use in msg output
3634if test -z "$EGREP"; then
3635set dummy egrep; ac_prog_name=$2
3636if test "${ac_cv_path_EGREP+set}" = set; then
3637  echo $ECHO_N "(cached) $ECHO_C" >&6
3638else
3639  ac_path_EGREP_found=false
3640# Loop through the user's path and test for each of PROGNAME-LIST
3641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3642for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3643do
3644  IFS=$as_save_IFS
3645  test -z "$as_dir" && as_dir=.
3646  for ac_prog in egrep; do
3647  for ac_exec_ext in '' $ac_executable_extensions; do
3648    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3649    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3650    # Check for GNU ac_path_EGREP and select it if it is found.
3651  # Check for GNU $ac_path_EGREP
3652case `"$ac_path_EGREP" --version 2>&1` in
3653*GNU*)
3654  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3655*)
3656  ac_count=0
3657  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3658  while :
3659  do
3660    cat "conftest.in" "conftest.in" >"conftest.tmp"
3661    mv "conftest.tmp" "conftest.in"
3662    cp "conftest.in" "conftest.nl"
3663    echo 'EGREP' >> "conftest.nl"
3664    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3665    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3666    ac_count=`expr $ac_count + 1`
3667    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3668      # Best one so far, save it but keep looking for a better one
3669      ac_cv_path_EGREP="$ac_path_EGREP"
3670      ac_path_EGREP_max=$ac_count
3671    fi
3672    # 10*(2^10) chars as input seems more than enough
3673    test $ac_count -gt 10 && break
3674  done
3675  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3676esac
3677
3678
3679    $ac_path_EGREP_found && break 3
3680  done
3681done
3682
3683done
3684IFS=$as_save_IFS
3685
3686
3687fi
3688
3689EGREP="$ac_cv_path_EGREP"
3690if test -z "$EGREP"; then
3691  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3692echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3693   { (exit 1); exit 1; }; }
3694fi
3695
3696else
3697  ac_cv_path_EGREP=$EGREP
3698fi
3699
3700
3701   fi
3702fi
3703{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3704echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3705 EGREP="$ac_cv_path_EGREP"
3706
3707
3708{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3709echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3710if test "${ac_cv_header_stdc+set}" = set; then
3711  echo $ECHO_N "(cached) $ECHO_C" >&6
3712else
3713  cat >conftest.$ac_ext <<_ACEOF
3714/* confdefs.h.  */
3715_ACEOF
3716cat confdefs.h >>conftest.$ac_ext
3717cat >>conftest.$ac_ext <<_ACEOF
3718/* end confdefs.h.  */
3719#include <stdlib.h>
3720#include <stdarg.h>
3721#include <string.h>
3722#include <float.h>
3723
3724int
3725main ()
3726{
3727
3728  ;
3729  return 0;
3730}
3731_ACEOF
3732rm -f conftest.$ac_objext
3733if { (ac_try="$ac_compile"
3734case "(($ac_try" in
3735  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3736  *) ac_try_echo=$ac_try;;
3737esac
3738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3739  (eval "$ac_compile") 2>conftest.er1
3740  ac_status=$?
3741  grep -v '^ *+' conftest.er1 >conftest.err
3742  rm -f conftest.er1
3743  cat conftest.err >&5
3744  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3745  (exit $ac_status); } && {
3746	 test -z "$ac_c_werror_flag" ||
3747	 test ! -s conftest.err
3748       } && test -s conftest.$ac_objext; then
3749  ac_cv_header_stdc=yes
3750else
3751  echo "$as_me: failed program was:" >&5
3752sed 's/^/| /' conftest.$ac_ext >&5
3753
3754	ac_cv_header_stdc=no
3755fi
3756
3757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3758
3759if test $ac_cv_header_stdc = yes; then
3760  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3761  cat >conftest.$ac_ext <<_ACEOF
3762/* confdefs.h.  */
3763_ACEOF
3764cat confdefs.h >>conftest.$ac_ext
3765cat >>conftest.$ac_ext <<_ACEOF
3766/* end confdefs.h.  */
3767#include <string.h>
3768
3769_ACEOF
3770if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3771  $EGREP "memchr" >/dev/null 2>&1; then
3772  :
3773else
3774  ac_cv_header_stdc=no
3775fi
3776rm -f conftest*
3777
3778fi
3779
3780if test $ac_cv_header_stdc = yes; then
3781  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3782  cat >conftest.$ac_ext <<_ACEOF
3783/* confdefs.h.  */
3784_ACEOF
3785cat confdefs.h >>conftest.$ac_ext
3786cat >>conftest.$ac_ext <<_ACEOF
3787/* end confdefs.h.  */
3788#include <stdlib.h>
3789
3790_ACEOF
3791if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3792  $EGREP "free" >/dev/null 2>&1; then
3793  :
3794else
3795  ac_cv_header_stdc=no
3796fi
3797rm -f conftest*
3798
3799fi
3800
3801if test $ac_cv_header_stdc = yes; then
3802  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3803  if test "$cross_compiling" = yes; then
3804  :
3805else
3806  cat >conftest.$ac_ext <<_ACEOF
3807/* confdefs.h.  */
3808_ACEOF
3809cat confdefs.h >>conftest.$ac_ext
3810cat >>conftest.$ac_ext <<_ACEOF
3811/* end confdefs.h.  */
3812#include <ctype.h>
3813#include <stdlib.h>
3814#if ((' ' & 0x0FF) == 0x020)
3815# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3816# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3817#else
3818# define ISLOWER(c) \
3819		   (('a' <= (c) && (c) <= 'i') \
3820		     || ('j' <= (c) && (c) <= 'r') \
3821		     || ('s' <= (c) && (c) <= 'z'))
3822# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3823#endif
3824
3825#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3826int
3827main ()
3828{
3829  int i;
3830  for (i = 0; i < 256; i++)
3831    if (XOR (islower (i), ISLOWER (i))
3832	|| toupper (i) != TOUPPER (i))
3833      return 2;
3834  return 0;
3835}
3836_ACEOF
3837rm -f conftest$ac_exeext
3838if { (ac_try="$ac_link"
3839case "(($ac_try" in
3840  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3841  *) ac_try_echo=$ac_try;;
3842esac
3843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3844  (eval "$ac_link") 2>&5
3845  ac_status=$?
3846  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3847  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3848  { (case "(($ac_try" in
3849  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3850  *) ac_try_echo=$ac_try;;
3851esac
3852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3853  (eval "$ac_try") 2>&5
3854  ac_status=$?
3855  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856  (exit $ac_status); }; }; then
3857  :
3858else
3859  echo "$as_me: program exited with status $ac_status" >&5
3860echo "$as_me: failed program was:" >&5
3861sed 's/^/| /' conftest.$ac_ext >&5
3862
3863( exit $ac_status )
3864ac_cv_header_stdc=no
3865fi
3866rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3867fi
3868
3869
3870fi
3871fi
3872{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3873echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3874if test $ac_cv_header_stdc = yes; then
3875
3876cat >>confdefs.h <<\_ACEOF
3877@%:@define STDC_HEADERS 1
3878_ACEOF
3879
3880fi
3881
3882# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3893		  inttypes.h stdint.h unistd.h
3894do
3895as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3896{ echo "$as_me:$LINENO: checking for $ac_header" >&5
3897echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3898if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3899  echo $ECHO_N "(cached) $ECHO_C" >&6
3900else
3901  cat >conftest.$ac_ext <<_ACEOF
3902/* confdefs.h.  */
3903_ACEOF
3904cat confdefs.h >>conftest.$ac_ext
3905cat >>conftest.$ac_ext <<_ACEOF
3906/* end confdefs.h.  */
3907$ac_includes_default
3908
3909@%:@include <$ac_header>
3910_ACEOF
3911rm -f conftest.$ac_objext
3912if { (ac_try="$ac_compile"
3913case "(($ac_try" in
3914  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3915  *) ac_try_echo=$ac_try;;
3916esac
3917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3918  (eval "$ac_compile") 2>conftest.er1
3919  ac_status=$?
3920  grep -v '^ *+' conftest.er1 >conftest.err
3921  rm -f conftest.er1
3922  cat conftest.err >&5
3923  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3924  (exit $ac_status); } && {
3925	 test -z "$ac_c_werror_flag" ||
3926	 test ! -s conftest.err
3927       } && test -s conftest.$ac_objext; then
3928  eval "$as_ac_Header=yes"
3929else
3930  echo "$as_me: failed program was:" >&5
3931sed 's/^/| /' conftest.$ac_ext >&5
3932
3933	eval "$as_ac_Header=no"
3934fi
3935
3936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3937fi
3938ac_res=`eval echo '${'$as_ac_Header'}'`
3939	       { echo "$as_me:$LINENO: result: $ac_res" >&5
3940echo "${ECHO_T}$ac_res" >&6; }
3941if test `eval echo '${'$as_ac_Header'}'` = yes; then
3942  cat >>confdefs.h <<_ACEOF
3943@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3944_ACEOF
3945
3946fi
3947
3948done
3949
3950
3951
3952    # Any macros that use the compiler (e.g. AC_TRY_COMPILE) have to go here.
3953
3954
3955    #------------------------------------------------------------------------
3956    # If we're using GCC, see if the compiler understands -pipe. If so, use it.
3957    # It makes compiling go faster.  (This is only a performance feature.)
3958    #------------------------------------------------------------------------
3959
3960    if test -z "$no_pipe" -a -n "$GCC"; then
3961	{ echo "$as_me:$LINENO: checking if the compiler understands -pipe" >&5
3962echo $ECHO_N "checking if the compiler understands -pipe... $ECHO_C" >&6; }
3963if test "${tcl_cv_cc_pipe+set}" = set; then
3964  echo $ECHO_N "(cached) $ECHO_C" >&6
3965else
3966
3967	    hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -pipe"
3968	    cat >conftest.$ac_ext <<_ACEOF
3969/* confdefs.h.  */
3970_ACEOF
3971cat confdefs.h >>conftest.$ac_ext
3972cat >>conftest.$ac_ext <<_ACEOF
3973/* end confdefs.h.  */
3974
3975int
3976main ()
3977{
3978
3979  ;
3980  return 0;
3981}
3982_ACEOF
3983rm -f conftest.$ac_objext
3984if { (ac_try="$ac_compile"
3985case "(($ac_try" in
3986  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3987  *) ac_try_echo=$ac_try;;
3988esac
3989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3990  (eval "$ac_compile") 2>conftest.er1
3991  ac_status=$?
3992  grep -v '^ *+' conftest.er1 >conftest.err
3993  rm -f conftest.er1
3994  cat conftest.err >&5
3995  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3996  (exit $ac_status); } && {
3997	 test -z "$ac_c_werror_flag" ||
3998	 test ! -s conftest.err
3999       } && test -s conftest.$ac_objext; then
4000  tcl_cv_cc_pipe=yes
4001else
4002  echo "$as_me: failed program was:" >&5
4003sed 's/^/| /' conftest.$ac_ext >&5
4004
4005	tcl_cv_cc_pipe=no
4006fi
4007
4008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4009	    CFLAGS=$hold_cflags
4010fi
4011{ echo "$as_me:$LINENO: result: $tcl_cv_cc_pipe" >&5
4012echo "${ECHO_T}$tcl_cv_cc_pipe" >&6; }
4013	if test $tcl_cv_cc_pipe = yes; then
4014	    CFLAGS="$CFLAGS -pipe"
4015	fi
4016    fi
4017
4018    #--------------------------------------------------------------------
4019    # Common compiler flag setup
4020    #--------------------------------------------------------------------
4021
4022    { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4023echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4024if test "${ac_cv_c_bigendian+set}" = set; then
4025  echo $ECHO_N "(cached) $ECHO_C" >&6
4026else
4027  # See if sys/param.h defines the BYTE_ORDER macro.
4028cat >conftest.$ac_ext <<_ACEOF
4029/* confdefs.h.  */
4030_ACEOF
4031cat confdefs.h >>conftest.$ac_ext
4032cat >>conftest.$ac_ext <<_ACEOF
4033/* end confdefs.h.  */
4034#include <sys/types.h>
4035#include <sys/param.h>
4036
4037int
4038main ()
4039{
4040#if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
4041	&& BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
4042 bogus endian macros
4043#endif
4044
4045  ;
4046  return 0;
4047}
4048_ACEOF
4049rm -f conftest.$ac_objext
4050if { (ac_try="$ac_compile"
4051case "(($ac_try" in
4052  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4053  *) ac_try_echo=$ac_try;;
4054esac
4055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4056  (eval "$ac_compile") 2>conftest.er1
4057  ac_status=$?
4058  grep -v '^ *+' conftest.er1 >conftest.err
4059  rm -f conftest.er1
4060  cat conftest.err >&5
4061  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4062  (exit $ac_status); } && {
4063	 test -z "$ac_c_werror_flag" ||
4064	 test ! -s conftest.err
4065       } && test -s conftest.$ac_objext; then
4066  # It does; now see whether it defined to BIG_ENDIAN or not.
4067cat >conftest.$ac_ext <<_ACEOF
4068/* confdefs.h.  */
4069_ACEOF
4070cat confdefs.h >>conftest.$ac_ext
4071cat >>conftest.$ac_ext <<_ACEOF
4072/* end confdefs.h.  */
4073#include <sys/types.h>
4074#include <sys/param.h>
4075
4076int
4077main ()
4078{
4079#if BYTE_ORDER != BIG_ENDIAN
4080 not big endian
4081#endif
4082
4083  ;
4084  return 0;
4085}
4086_ACEOF
4087rm -f conftest.$ac_objext
4088if { (ac_try="$ac_compile"
4089case "(($ac_try" in
4090  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4091  *) ac_try_echo=$ac_try;;
4092esac
4093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4094  (eval "$ac_compile") 2>conftest.er1
4095  ac_status=$?
4096  grep -v '^ *+' conftest.er1 >conftest.err
4097  rm -f conftest.er1
4098  cat conftest.err >&5
4099  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4100  (exit $ac_status); } && {
4101	 test -z "$ac_c_werror_flag" ||
4102	 test ! -s conftest.err
4103       } && test -s conftest.$ac_objext; then
4104  ac_cv_c_bigendian=yes
4105else
4106  echo "$as_me: failed program was:" >&5
4107sed 's/^/| /' conftest.$ac_ext >&5
4108
4109	ac_cv_c_bigendian=no
4110fi
4111
4112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4113else
4114  echo "$as_me: failed program was:" >&5
4115sed 's/^/| /' conftest.$ac_ext >&5
4116
4117	# It does not; compile a test program.
4118if test "$cross_compiling" = yes; then
4119  # try to guess the endianness by grepping values into an object file
4120  ac_cv_c_bigendian=unknown
4121  cat >conftest.$ac_ext <<_ACEOF
4122/* confdefs.h.  */
4123_ACEOF
4124cat confdefs.h >>conftest.$ac_ext
4125cat >>conftest.$ac_ext <<_ACEOF
4126/* end confdefs.h.  */
4127short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4128short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4129void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4130short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4131short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4132void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4133int
4134main ()
4135{
4136 _ascii (); _ebcdic ();
4137  ;
4138  return 0;
4139}
4140_ACEOF
4141rm -f conftest.$ac_objext
4142if { (ac_try="$ac_compile"
4143case "(($ac_try" in
4144  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4145  *) ac_try_echo=$ac_try;;
4146esac
4147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4148  (eval "$ac_compile") 2>conftest.er1
4149  ac_status=$?
4150  grep -v '^ *+' conftest.er1 >conftest.err
4151  rm -f conftest.er1
4152  cat conftest.err >&5
4153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154  (exit $ac_status); } && {
4155	 test -z "$ac_c_werror_flag" ||
4156	 test ! -s conftest.err
4157       } && test -s conftest.$ac_objext; then
4158  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4159  ac_cv_c_bigendian=yes
4160fi
4161if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4162  if test "$ac_cv_c_bigendian" = unknown; then
4163    ac_cv_c_bigendian=no
4164  else
4165    # finding both strings is unlikely to happen, but who knows?
4166    ac_cv_c_bigendian=unknown
4167  fi
4168fi
4169else
4170  echo "$as_me: failed program was:" >&5
4171sed 's/^/| /' conftest.$ac_ext >&5
4172
4173
4174fi
4175
4176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4177else
4178  cat >conftest.$ac_ext <<_ACEOF
4179/* confdefs.h.  */
4180_ACEOF
4181cat confdefs.h >>conftest.$ac_ext
4182cat >>conftest.$ac_ext <<_ACEOF
4183/* end confdefs.h.  */
4184$ac_includes_default
4185int
4186main ()
4187{
4188
4189  /* Are we little or big endian?  From Harbison&Steele.  */
4190  union
4191  {
4192    long int l;
4193    char c[sizeof (long int)];
4194  } u;
4195  u.l = 1;
4196  return u.c[sizeof (long int) - 1] == 1;
4197
4198  ;
4199  return 0;
4200}
4201_ACEOF
4202rm -f conftest$ac_exeext
4203if { (ac_try="$ac_link"
4204case "(($ac_try" in
4205  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4206  *) ac_try_echo=$ac_try;;
4207esac
4208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4209  (eval "$ac_link") 2>&5
4210  ac_status=$?
4211  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4212  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4213  { (case "(($ac_try" in
4214  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4215  *) ac_try_echo=$ac_try;;
4216esac
4217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4218  (eval "$ac_try") 2>&5
4219  ac_status=$?
4220  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4221  (exit $ac_status); }; }; then
4222  ac_cv_c_bigendian=no
4223else
4224  echo "$as_me: program exited with status $ac_status" >&5
4225echo "$as_me: failed program was:" >&5
4226sed 's/^/| /' conftest.$ac_ext >&5
4227
4228( exit $ac_status )
4229ac_cv_c_bigendian=yes
4230fi
4231rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4232fi
4233
4234
4235fi
4236
4237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4238fi
4239{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4240echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4241case $ac_cv_c_bigendian in
4242  yes)
4243
4244cat >>confdefs.h <<\_ACEOF
4245@%:@define WORDS_BIGENDIAN 1
4246_ACEOF
4247 ;;
4248  no)
4249     ;;
4250  *)
4251    { { echo "$as_me:$LINENO: error: unknown endianness
4252presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4253echo "$as_me: error: unknown endianness
4254presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4255   { (exit 1); exit 1; }; } ;;
4256esac
4257
4258    if test "${TEA_PLATFORM}" = "unix" ; then
4259
4260    #--------------------------------------------------------------------
4261    # On a few very rare systems, all of the libm.a stuff is
4262    # already in libc.a.  Set compiler flags accordingly.
4263    # Also, Linux requires the "ieee" library for math to work
4264    # right (and it must appear before "-lm").
4265    #--------------------------------------------------------------------
4266
4267    { echo "$as_me:$LINENO: checking for sin" >&5
4268echo $ECHO_N "checking for sin... $ECHO_C" >&6; }
4269if test "${ac_cv_func_sin+set}" = set; then
4270  echo $ECHO_N "(cached) $ECHO_C" >&6
4271else
4272  cat >conftest.$ac_ext <<_ACEOF
4273/* confdefs.h.  */
4274_ACEOF
4275cat confdefs.h >>conftest.$ac_ext
4276cat >>conftest.$ac_ext <<_ACEOF
4277/* end confdefs.h.  */
4278/* Define sin to an innocuous variant, in case <limits.h> declares sin.
4279   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4280#define sin innocuous_sin
4281
4282/* System header to define __stub macros and hopefully few prototypes,
4283    which can conflict with char sin (); below.
4284    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4285    <limits.h> exists even on freestanding compilers.  */
4286
4287#ifdef __STDC__
4288# include <limits.h>
4289#else
4290# include <assert.h>
4291#endif
4292
4293#undef sin
4294
4295/* Override any GCC internal prototype to avoid an error.
4296   Use char because int might match the return type of a GCC
4297   builtin and then its argument prototype would still apply.  */
4298#ifdef __cplusplus
4299extern "C"
4300#endif
4301char sin ();
4302/* The GNU C library defines this for functions which it implements
4303    to always fail with ENOSYS.  Some functions are actually named
4304    something starting with __ and the normal name is an alias.  */
4305#if defined __stub_sin || defined __stub___sin
4306choke me
4307#endif
4308
4309int
4310main ()
4311{
4312return sin ();
4313  ;
4314  return 0;
4315}
4316_ACEOF
4317rm -f conftest.$ac_objext conftest$ac_exeext
4318if { (ac_try="$ac_link"
4319case "(($ac_try" in
4320  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4321  *) ac_try_echo=$ac_try;;
4322esac
4323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4324  (eval "$ac_link") 2>conftest.er1
4325  ac_status=$?
4326  grep -v '^ *+' conftest.er1 >conftest.err
4327  rm -f conftest.er1
4328  cat conftest.err >&5
4329  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4330  (exit $ac_status); } && {
4331	 test -z "$ac_c_werror_flag" ||
4332	 test ! -s conftest.err
4333       } && test -s conftest$ac_exeext &&
4334       $as_test_x conftest$ac_exeext; then
4335  ac_cv_func_sin=yes
4336else
4337  echo "$as_me: failed program was:" >&5
4338sed 's/^/| /' conftest.$ac_ext >&5
4339
4340	ac_cv_func_sin=no
4341fi
4342
4343rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4344      conftest$ac_exeext conftest.$ac_ext
4345fi
4346{ echo "$as_me:$LINENO: result: $ac_cv_func_sin" >&5
4347echo "${ECHO_T}$ac_cv_func_sin" >&6; }
4348if test $ac_cv_func_sin = yes; then
4349  MATH_LIBS=""
4350else
4351  MATH_LIBS="-lm"
4352fi
4353
4354    { echo "$as_me:$LINENO: checking for main in -lieee" >&5
4355echo $ECHO_N "checking for main in -lieee... $ECHO_C" >&6; }
4356if test "${ac_cv_lib_ieee_main+set}" = set; then
4357  echo $ECHO_N "(cached) $ECHO_C" >&6
4358else
4359  ac_check_lib_save_LIBS=$LIBS
4360LIBS="-lieee  $LIBS"
4361cat >conftest.$ac_ext <<_ACEOF
4362/* confdefs.h.  */
4363_ACEOF
4364cat confdefs.h >>conftest.$ac_ext
4365cat >>conftest.$ac_ext <<_ACEOF
4366/* end confdefs.h.  */
4367
4368
4369int
4370main ()
4371{
4372return main ();
4373  ;
4374  return 0;
4375}
4376_ACEOF
4377rm -f conftest.$ac_objext conftest$ac_exeext
4378if { (ac_try="$ac_link"
4379case "(($ac_try" in
4380  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4381  *) ac_try_echo=$ac_try;;
4382esac
4383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4384  (eval "$ac_link") 2>conftest.er1
4385  ac_status=$?
4386  grep -v '^ *+' conftest.er1 >conftest.err
4387  rm -f conftest.er1
4388  cat conftest.err >&5
4389  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4390  (exit $ac_status); } && {
4391	 test -z "$ac_c_werror_flag" ||
4392	 test ! -s conftest.err
4393       } && test -s conftest$ac_exeext &&
4394       $as_test_x conftest$ac_exeext; then
4395  ac_cv_lib_ieee_main=yes
4396else
4397  echo "$as_me: failed program was:" >&5
4398sed 's/^/| /' conftest.$ac_ext >&5
4399
4400	ac_cv_lib_ieee_main=no
4401fi
4402
4403rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4404      conftest$ac_exeext conftest.$ac_ext
4405LIBS=$ac_check_lib_save_LIBS
4406fi
4407{ echo "$as_me:$LINENO: result: $ac_cv_lib_ieee_main" >&5
4408echo "${ECHO_T}$ac_cv_lib_ieee_main" >&6; }
4409if test $ac_cv_lib_ieee_main = yes; then
4410  MATH_LIBS="-lieee $MATH_LIBS"
4411fi
4412
4413
4414    #--------------------------------------------------------------------
4415    # Interactive UNIX requires -linet instead of -lsocket, plus it
4416    # needs net/errno.h to define the socket-related error codes.
4417    #--------------------------------------------------------------------
4418
4419    { echo "$as_me:$LINENO: checking for main in -linet" >&5
4420echo $ECHO_N "checking for main in -linet... $ECHO_C" >&6; }
4421if test "${ac_cv_lib_inet_main+set}" = set; then
4422  echo $ECHO_N "(cached) $ECHO_C" >&6
4423else
4424  ac_check_lib_save_LIBS=$LIBS
4425LIBS="-linet  $LIBS"
4426cat >conftest.$ac_ext <<_ACEOF
4427/* confdefs.h.  */
4428_ACEOF
4429cat confdefs.h >>conftest.$ac_ext
4430cat >>conftest.$ac_ext <<_ACEOF
4431/* end confdefs.h.  */
4432
4433
4434int
4435main ()
4436{
4437return main ();
4438  ;
4439  return 0;
4440}
4441_ACEOF
4442rm -f conftest.$ac_objext conftest$ac_exeext
4443if { (ac_try="$ac_link"
4444case "(($ac_try" in
4445  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4446  *) ac_try_echo=$ac_try;;
4447esac
4448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4449  (eval "$ac_link") 2>conftest.er1
4450  ac_status=$?
4451  grep -v '^ *+' conftest.er1 >conftest.err
4452  rm -f conftest.er1
4453  cat conftest.err >&5
4454  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4455  (exit $ac_status); } && {
4456	 test -z "$ac_c_werror_flag" ||
4457	 test ! -s conftest.err
4458       } && test -s conftest$ac_exeext &&
4459       $as_test_x conftest$ac_exeext; then
4460  ac_cv_lib_inet_main=yes
4461else
4462  echo "$as_me: failed program was:" >&5
4463sed 's/^/| /' conftest.$ac_ext >&5
4464
4465	ac_cv_lib_inet_main=no
4466fi
4467
4468rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4469      conftest$ac_exeext conftest.$ac_ext
4470LIBS=$ac_check_lib_save_LIBS
4471fi
4472{ echo "$as_me:$LINENO: result: $ac_cv_lib_inet_main" >&5
4473echo "${ECHO_T}$ac_cv_lib_inet_main" >&6; }
4474if test $ac_cv_lib_inet_main = yes; then
4475  LIBS="$LIBS -linet"
4476fi
4477
4478    if test "${ac_cv_header_net_errno_h+set}" = set; then
4479  { echo "$as_me:$LINENO: checking for net/errno.h" >&5
4480echo $ECHO_N "checking for net/errno.h... $ECHO_C" >&6; }
4481if test "${ac_cv_header_net_errno_h+set}" = set; then
4482  echo $ECHO_N "(cached) $ECHO_C" >&6
4483fi
4484{ echo "$as_me:$LINENO: result: $ac_cv_header_net_errno_h" >&5
4485echo "${ECHO_T}$ac_cv_header_net_errno_h" >&6; }
4486else
4487  # Is the header compilable?
4488{ echo "$as_me:$LINENO: checking net/errno.h usability" >&5
4489echo $ECHO_N "checking net/errno.h usability... $ECHO_C" >&6; }
4490cat >conftest.$ac_ext <<_ACEOF
4491/* confdefs.h.  */
4492_ACEOF
4493cat confdefs.h >>conftest.$ac_ext
4494cat >>conftest.$ac_ext <<_ACEOF
4495/* end confdefs.h.  */
4496$ac_includes_default
4497@%:@include <net/errno.h>
4498_ACEOF
4499rm -f conftest.$ac_objext
4500if { (ac_try="$ac_compile"
4501case "(($ac_try" in
4502  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4503  *) ac_try_echo=$ac_try;;
4504esac
4505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4506  (eval "$ac_compile") 2>conftest.er1
4507  ac_status=$?
4508  grep -v '^ *+' conftest.er1 >conftest.err
4509  rm -f conftest.er1
4510  cat conftest.err >&5
4511  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4512  (exit $ac_status); } && {
4513	 test -z "$ac_c_werror_flag" ||
4514	 test ! -s conftest.err
4515       } && test -s conftest.$ac_objext; then
4516  ac_header_compiler=yes
4517else
4518  echo "$as_me: failed program was:" >&5
4519sed 's/^/| /' conftest.$ac_ext >&5
4520
4521	ac_header_compiler=no
4522fi
4523
4524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4525{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4526echo "${ECHO_T}$ac_header_compiler" >&6; }
4527
4528# Is the header present?
4529{ echo "$as_me:$LINENO: checking net/errno.h presence" >&5
4530echo $ECHO_N "checking net/errno.h presence... $ECHO_C" >&6; }
4531cat >conftest.$ac_ext <<_ACEOF
4532/* confdefs.h.  */
4533_ACEOF
4534cat confdefs.h >>conftest.$ac_ext
4535cat >>conftest.$ac_ext <<_ACEOF
4536/* end confdefs.h.  */
4537@%:@include <net/errno.h>
4538_ACEOF
4539if { (ac_try="$ac_cpp conftest.$ac_ext"
4540case "(($ac_try" in
4541  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4542  *) ac_try_echo=$ac_try;;
4543esac
4544eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4545  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4546  ac_status=$?
4547  grep -v '^ *+' conftest.er1 >conftest.err
4548  rm -f conftest.er1
4549  cat conftest.err >&5
4550  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551  (exit $ac_status); } >/dev/null && {
4552	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4553	 test ! -s conftest.err
4554       }; then
4555  ac_header_preproc=yes
4556else
4557  echo "$as_me: failed program was:" >&5
4558sed 's/^/| /' conftest.$ac_ext >&5
4559
4560  ac_header_preproc=no
4561fi
4562
4563rm -f conftest.err conftest.$ac_ext
4564{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4565echo "${ECHO_T}$ac_header_preproc" >&6; }
4566
4567# So?  What about this header?
4568case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4569  yes:no: )
4570    { echo "$as_me:$LINENO: WARNING: net/errno.h: accepted by the compiler, rejected by the preprocessor!" >&5
4571echo "$as_me: WARNING: net/errno.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4572    { echo "$as_me:$LINENO: WARNING: net/errno.h: proceeding with the compiler's result" >&5
4573echo "$as_me: WARNING: net/errno.h: proceeding with the compiler's result" >&2;}
4574    ac_header_preproc=yes
4575    ;;
4576  no:yes:* )
4577    { echo "$as_me:$LINENO: WARNING: net/errno.h: present but cannot be compiled" >&5
4578echo "$as_me: WARNING: net/errno.h: present but cannot be compiled" >&2;}
4579    { echo "$as_me:$LINENO: WARNING: net/errno.h:     check for missing prerequisite headers?" >&5
4580echo "$as_me: WARNING: net/errno.h:     check for missing prerequisite headers?" >&2;}
4581    { echo "$as_me:$LINENO: WARNING: net/errno.h: see the Autoconf documentation" >&5
4582echo "$as_me: WARNING: net/errno.h: see the Autoconf documentation" >&2;}
4583    { echo "$as_me:$LINENO: WARNING: net/errno.h:     section \"Present But Cannot Be Compiled\"" >&5
4584echo "$as_me: WARNING: net/errno.h:     section \"Present But Cannot Be Compiled\"" >&2;}
4585    { echo "$as_me:$LINENO: WARNING: net/errno.h: proceeding with the preprocessor's result" >&5
4586echo "$as_me: WARNING: net/errno.h: proceeding with the preprocessor's result" >&2;}
4587    { echo "$as_me:$LINENO: WARNING: net/errno.h: in the future, the compiler will take precedence" >&5
4588echo "$as_me: WARNING: net/errno.h: in the future, the compiler will take precedence" >&2;}
4589
4590    ;;
4591esac
4592{ echo "$as_me:$LINENO: checking for net/errno.h" >&5
4593echo $ECHO_N "checking for net/errno.h... $ECHO_C" >&6; }
4594if test "${ac_cv_header_net_errno_h+set}" = set; then
4595  echo $ECHO_N "(cached) $ECHO_C" >&6
4596else
4597  ac_cv_header_net_errno_h=$ac_header_preproc
4598fi
4599{ echo "$as_me:$LINENO: result: $ac_cv_header_net_errno_h" >&5
4600echo "${ECHO_T}$ac_cv_header_net_errno_h" >&6; }
4601
4602fi
4603if test $ac_cv_header_net_errno_h = yes; then
4604
4605
4606cat >>confdefs.h <<\_ACEOF
4607@%:@define HAVE_NET_ERRNO_H 1
4608_ACEOF
4609
4610fi
4611
4612
4613
4614    #--------------------------------------------------------------------
4615    #	Check for the existence of the -lsocket and -lnsl libraries.
4616    #	The order here is important, so that they end up in the right
4617    #	order in the command line generated by make.  Here are some
4618    #	special considerations:
4619    #	1. Use "connect" and "accept" to check for -lsocket, and
4620    #	   "gethostbyname" to check for -lnsl.
4621    #	2. Use each function name only once:  can't redo a check because
4622    #	   autoconf caches the results of the last check and won't redo it.
4623    #	3. Use -lnsl and -lsocket only if they supply procedures that
4624    #	   aren't already present in the normal libraries.  This is because
4625    #	   IRIX 5.2 has libraries, but they aren't needed and they're
4626    #	   bogus:  they goof up name resolution if used.
4627    #	4. On some SVR4 systems, can't use -lsocket without -lnsl too.
4628    #	   To get around this problem, check for both libraries together
4629    #	   if -lsocket doesn't work by itself.
4630    #--------------------------------------------------------------------
4631
4632    tcl_checkBoth=0
4633    { echo "$as_me:$LINENO: checking for connect" >&5
4634echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
4635if test "${ac_cv_func_connect+set}" = set; then
4636  echo $ECHO_N "(cached) $ECHO_C" >&6
4637else
4638  cat >conftest.$ac_ext <<_ACEOF
4639/* confdefs.h.  */
4640_ACEOF
4641cat confdefs.h >>conftest.$ac_ext
4642cat >>conftest.$ac_ext <<_ACEOF
4643/* end confdefs.h.  */
4644/* Define connect to an innocuous variant, in case <limits.h> declares connect.
4645   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4646#define connect innocuous_connect
4647
4648/* System header to define __stub macros and hopefully few prototypes,
4649    which can conflict with char connect (); below.
4650    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4651    <limits.h> exists even on freestanding compilers.  */
4652
4653#ifdef __STDC__
4654# include <limits.h>
4655#else
4656# include <assert.h>
4657#endif
4658
4659#undef connect
4660
4661/* Override any GCC internal prototype to avoid an error.
4662   Use char because int might match the return type of a GCC
4663   builtin and then its argument prototype would still apply.  */
4664#ifdef __cplusplus
4665extern "C"
4666#endif
4667char connect ();
4668/* The GNU C library defines this for functions which it implements
4669    to always fail with ENOSYS.  Some functions are actually named
4670    something starting with __ and the normal name is an alias.  */
4671#if defined __stub_connect || defined __stub___connect
4672choke me
4673#endif
4674
4675int
4676main ()
4677{
4678return connect ();
4679  ;
4680  return 0;
4681}
4682_ACEOF
4683rm -f conftest.$ac_objext conftest$ac_exeext
4684if { (ac_try="$ac_link"
4685case "(($ac_try" in
4686  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4687  *) ac_try_echo=$ac_try;;
4688esac
4689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4690  (eval "$ac_link") 2>conftest.er1
4691  ac_status=$?
4692  grep -v '^ *+' conftest.er1 >conftest.err
4693  rm -f conftest.er1
4694  cat conftest.err >&5
4695  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4696  (exit $ac_status); } && {
4697	 test -z "$ac_c_werror_flag" ||
4698	 test ! -s conftest.err
4699       } && test -s conftest$ac_exeext &&
4700       $as_test_x conftest$ac_exeext; then
4701  ac_cv_func_connect=yes
4702else
4703  echo "$as_me: failed program was:" >&5
4704sed 's/^/| /' conftest.$ac_ext >&5
4705
4706	ac_cv_func_connect=no
4707fi
4708
4709rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4710      conftest$ac_exeext conftest.$ac_ext
4711fi
4712{ echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
4713echo "${ECHO_T}$ac_cv_func_connect" >&6; }
4714if test $ac_cv_func_connect = yes; then
4715  tcl_checkSocket=0
4716else
4717  tcl_checkSocket=1
4718fi
4719
4720    if test "$tcl_checkSocket" = 1; then
4721	{ echo "$as_me:$LINENO: checking for setsockopt" >&5
4722echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6; }
4723if test "${ac_cv_func_setsockopt+set}" = set; then
4724  echo $ECHO_N "(cached) $ECHO_C" >&6
4725else
4726  cat >conftest.$ac_ext <<_ACEOF
4727/* confdefs.h.  */
4728_ACEOF
4729cat confdefs.h >>conftest.$ac_ext
4730cat >>conftest.$ac_ext <<_ACEOF
4731/* end confdefs.h.  */
4732/* Define setsockopt to an innocuous variant, in case <limits.h> declares setsockopt.
4733   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4734#define setsockopt innocuous_setsockopt
4735
4736/* System header to define __stub macros and hopefully few prototypes,
4737    which can conflict with char setsockopt (); below.
4738    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4739    <limits.h> exists even on freestanding compilers.  */
4740
4741#ifdef __STDC__
4742# include <limits.h>
4743#else
4744# include <assert.h>
4745#endif
4746
4747#undef setsockopt
4748
4749/* Override any GCC internal prototype to avoid an error.
4750   Use char because int might match the return type of a GCC
4751   builtin and then its argument prototype would still apply.  */
4752#ifdef __cplusplus
4753extern "C"
4754#endif
4755char setsockopt ();
4756/* The GNU C library defines this for functions which it implements
4757    to always fail with ENOSYS.  Some functions are actually named
4758    something starting with __ and the normal name is an alias.  */
4759#if defined __stub_setsockopt || defined __stub___setsockopt
4760choke me
4761#endif
4762
4763int
4764main ()
4765{
4766return setsockopt ();
4767  ;
4768  return 0;
4769}
4770_ACEOF
4771rm -f conftest.$ac_objext conftest$ac_exeext
4772if { (ac_try="$ac_link"
4773case "(($ac_try" in
4774  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4775  *) ac_try_echo=$ac_try;;
4776esac
4777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4778  (eval "$ac_link") 2>conftest.er1
4779  ac_status=$?
4780  grep -v '^ *+' conftest.er1 >conftest.err
4781  rm -f conftest.er1
4782  cat conftest.err >&5
4783  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4784  (exit $ac_status); } && {
4785	 test -z "$ac_c_werror_flag" ||
4786	 test ! -s conftest.err
4787       } && test -s conftest$ac_exeext &&
4788       $as_test_x conftest$ac_exeext; then
4789  ac_cv_func_setsockopt=yes
4790else
4791  echo "$as_me: failed program was:" >&5
4792sed 's/^/| /' conftest.$ac_ext >&5
4793
4794	ac_cv_func_setsockopt=no
4795fi
4796
4797rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4798      conftest$ac_exeext conftest.$ac_ext
4799fi
4800{ echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5
4801echo "${ECHO_T}$ac_cv_func_setsockopt" >&6; }
4802if test $ac_cv_func_setsockopt = yes; then
4803  :
4804else
4805  { echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5
4806echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6; }
4807if test "${ac_cv_lib_socket_setsockopt+set}" = set; then
4808  echo $ECHO_N "(cached) $ECHO_C" >&6
4809else
4810  ac_check_lib_save_LIBS=$LIBS
4811LIBS="-lsocket  $LIBS"
4812cat >conftest.$ac_ext <<_ACEOF
4813/* confdefs.h.  */
4814_ACEOF
4815cat confdefs.h >>conftest.$ac_ext
4816cat >>conftest.$ac_ext <<_ACEOF
4817/* end confdefs.h.  */
4818
4819/* Override any GCC internal prototype to avoid an error.
4820   Use char because int might match the return type of a GCC
4821   builtin and then its argument prototype would still apply.  */
4822#ifdef __cplusplus
4823extern "C"
4824#endif
4825char setsockopt ();
4826int
4827main ()
4828{
4829return setsockopt ();
4830  ;
4831  return 0;
4832}
4833_ACEOF
4834rm -f conftest.$ac_objext conftest$ac_exeext
4835if { (ac_try="$ac_link"
4836case "(($ac_try" in
4837  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4838  *) ac_try_echo=$ac_try;;
4839esac
4840eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4841  (eval "$ac_link") 2>conftest.er1
4842  ac_status=$?
4843  grep -v '^ *+' conftest.er1 >conftest.err
4844  rm -f conftest.er1
4845  cat conftest.err >&5
4846  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4847  (exit $ac_status); } && {
4848	 test -z "$ac_c_werror_flag" ||
4849	 test ! -s conftest.err
4850       } && test -s conftest$ac_exeext &&
4851       $as_test_x conftest$ac_exeext; then
4852  ac_cv_lib_socket_setsockopt=yes
4853else
4854  echo "$as_me: failed program was:" >&5
4855sed 's/^/| /' conftest.$ac_ext >&5
4856
4857	ac_cv_lib_socket_setsockopt=no
4858fi
4859
4860rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4861      conftest$ac_exeext conftest.$ac_ext
4862LIBS=$ac_check_lib_save_LIBS
4863fi
4864{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5
4865echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6; }
4866if test $ac_cv_lib_socket_setsockopt = yes; then
4867  LIBS="$LIBS -lsocket"
4868else
4869  tcl_checkBoth=1
4870fi
4871
4872fi
4873
4874    fi
4875    if test "$tcl_checkBoth" = 1; then
4876	tk_oldLibs=$LIBS
4877	LIBS="$LIBS -lsocket -lnsl"
4878	{ echo "$as_me:$LINENO: checking for accept" >&5
4879echo $ECHO_N "checking for accept... $ECHO_C" >&6; }
4880if test "${ac_cv_func_accept+set}" = set; then
4881  echo $ECHO_N "(cached) $ECHO_C" >&6
4882else
4883  cat >conftest.$ac_ext <<_ACEOF
4884/* confdefs.h.  */
4885_ACEOF
4886cat confdefs.h >>conftest.$ac_ext
4887cat >>conftest.$ac_ext <<_ACEOF
4888/* end confdefs.h.  */
4889/* Define accept to an innocuous variant, in case <limits.h> declares accept.
4890   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4891#define accept innocuous_accept
4892
4893/* System header to define __stub macros and hopefully few prototypes,
4894    which can conflict with char accept (); below.
4895    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4896    <limits.h> exists even on freestanding compilers.  */
4897
4898#ifdef __STDC__
4899# include <limits.h>
4900#else
4901# include <assert.h>
4902#endif
4903
4904#undef accept
4905
4906/* Override any GCC internal prototype to avoid an error.
4907   Use char because int might match the return type of a GCC
4908   builtin and then its argument prototype would still apply.  */
4909#ifdef __cplusplus
4910extern "C"
4911#endif
4912char accept ();
4913/* The GNU C library defines this for functions which it implements
4914    to always fail with ENOSYS.  Some functions are actually named
4915    something starting with __ and the normal name is an alias.  */
4916#if defined __stub_accept || defined __stub___accept
4917choke me
4918#endif
4919
4920int
4921main ()
4922{
4923return accept ();
4924  ;
4925  return 0;
4926}
4927_ACEOF
4928rm -f conftest.$ac_objext conftest$ac_exeext
4929if { (ac_try="$ac_link"
4930case "(($ac_try" in
4931  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4932  *) ac_try_echo=$ac_try;;
4933esac
4934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4935  (eval "$ac_link") 2>conftest.er1
4936  ac_status=$?
4937  grep -v '^ *+' conftest.er1 >conftest.err
4938  rm -f conftest.er1
4939  cat conftest.err >&5
4940  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941  (exit $ac_status); } && {
4942	 test -z "$ac_c_werror_flag" ||
4943	 test ! -s conftest.err
4944       } && test -s conftest$ac_exeext &&
4945       $as_test_x conftest$ac_exeext; then
4946  ac_cv_func_accept=yes
4947else
4948  echo "$as_me: failed program was:" >&5
4949sed 's/^/| /' conftest.$ac_ext >&5
4950
4951	ac_cv_func_accept=no
4952fi
4953
4954rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4955      conftest$ac_exeext conftest.$ac_ext
4956fi
4957{ echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5
4958echo "${ECHO_T}$ac_cv_func_accept" >&6; }
4959if test $ac_cv_func_accept = yes; then
4960  tcl_checkNsl=0
4961else
4962  LIBS=$tk_oldLibs
4963fi
4964
4965    fi
4966    { echo "$as_me:$LINENO: checking for gethostbyname" >&5
4967echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
4968if test "${ac_cv_func_gethostbyname+set}" = set; then
4969  echo $ECHO_N "(cached) $ECHO_C" >&6
4970else
4971  cat >conftest.$ac_ext <<_ACEOF
4972/* confdefs.h.  */
4973_ACEOF
4974cat confdefs.h >>conftest.$ac_ext
4975cat >>conftest.$ac_ext <<_ACEOF
4976/* end confdefs.h.  */
4977/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
4978   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4979#define gethostbyname innocuous_gethostbyname
4980
4981/* System header to define __stub macros and hopefully few prototypes,
4982    which can conflict with char gethostbyname (); below.
4983    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4984    <limits.h> exists even on freestanding compilers.  */
4985
4986#ifdef __STDC__
4987# include <limits.h>
4988#else
4989# include <assert.h>
4990#endif
4991
4992#undef gethostbyname
4993
4994/* Override any GCC internal prototype to avoid an error.
4995   Use char because int might match the return type of a GCC
4996   builtin and then its argument prototype would still apply.  */
4997#ifdef __cplusplus
4998extern "C"
4999#endif
5000char gethostbyname ();
5001/* The GNU C library defines this for functions which it implements
5002    to always fail with ENOSYS.  Some functions are actually named
5003    something starting with __ and the normal name is an alias.  */
5004#if defined __stub_gethostbyname || defined __stub___gethostbyname
5005choke me
5006#endif
5007
5008int
5009main ()
5010{
5011return gethostbyname ();
5012  ;
5013  return 0;
5014}
5015_ACEOF
5016rm -f conftest.$ac_objext conftest$ac_exeext
5017if { (ac_try="$ac_link"
5018case "(($ac_try" in
5019  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5020  *) ac_try_echo=$ac_try;;
5021esac
5022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5023  (eval "$ac_link") 2>conftest.er1
5024  ac_status=$?
5025  grep -v '^ *+' conftest.er1 >conftest.err
5026  rm -f conftest.er1
5027  cat conftest.err >&5
5028  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5029  (exit $ac_status); } && {
5030	 test -z "$ac_c_werror_flag" ||
5031	 test ! -s conftest.err
5032       } && test -s conftest$ac_exeext &&
5033       $as_test_x conftest$ac_exeext; then
5034  ac_cv_func_gethostbyname=yes
5035else
5036  echo "$as_me: failed program was:" >&5
5037sed 's/^/| /' conftest.$ac_ext >&5
5038
5039	ac_cv_func_gethostbyname=no
5040fi
5041
5042rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5043      conftest$ac_exeext conftest.$ac_ext
5044fi
5045{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
5046echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
5047if test $ac_cv_func_gethostbyname = yes; then
5048  :
5049else
5050  { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5051echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
5052if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5053  echo $ECHO_N "(cached) $ECHO_C" >&6
5054else
5055  ac_check_lib_save_LIBS=$LIBS
5056LIBS="-lnsl  $LIBS"
5057cat >conftest.$ac_ext <<_ACEOF
5058/* confdefs.h.  */
5059_ACEOF
5060cat confdefs.h >>conftest.$ac_ext
5061cat >>conftest.$ac_ext <<_ACEOF
5062/* end confdefs.h.  */
5063
5064/* Override any GCC internal prototype to avoid an error.
5065   Use char because int might match the return type of a GCC
5066   builtin and then its argument prototype would still apply.  */
5067#ifdef __cplusplus
5068extern "C"
5069#endif
5070char gethostbyname ();
5071int
5072main ()
5073{
5074return gethostbyname ();
5075  ;
5076  return 0;
5077}
5078_ACEOF
5079rm -f conftest.$ac_objext conftest$ac_exeext
5080if { (ac_try="$ac_link"
5081case "(($ac_try" in
5082  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5083  *) ac_try_echo=$ac_try;;
5084esac
5085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5086  (eval "$ac_link") 2>conftest.er1
5087  ac_status=$?
5088  grep -v '^ *+' conftest.er1 >conftest.err
5089  rm -f conftest.er1
5090  cat conftest.err >&5
5091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5092  (exit $ac_status); } && {
5093	 test -z "$ac_c_werror_flag" ||
5094	 test ! -s conftest.err
5095       } && test -s conftest$ac_exeext &&
5096       $as_test_x conftest$ac_exeext; then
5097  ac_cv_lib_nsl_gethostbyname=yes
5098else
5099  echo "$as_me: failed program was:" >&5
5100sed 's/^/| /' conftest.$ac_ext >&5
5101
5102	ac_cv_lib_nsl_gethostbyname=no
5103fi
5104
5105rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5106      conftest$ac_exeext conftest.$ac_ext
5107LIBS=$ac_check_lib_save_LIBS
5108fi
5109{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5110echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
5111if test $ac_cv_lib_nsl_gethostbyname = yes; then
5112  LIBS="$LIBS -lnsl"
5113fi
5114
5115fi
5116
5117
5118    # Don't perform the eval of the libraries here because DL_LIBS
5119    # won't be set until we call TEA_CONFIG_CFLAGS
5120
5121    TCL_LIBS='${DL_LIBS} ${LIBS} ${MATH_LIBS}'
5122
5123
5124
5125
5126    { echo "$as_me:$LINENO: checking dirent.h" >&5
5127echo $ECHO_N "checking dirent.h... $ECHO_C" >&6; }
5128if test "${tcl_cv_dirent_h+set}" = set; then
5129  echo $ECHO_N "(cached) $ECHO_C" >&6
5130else
5131
5132    cat >conftest.$ac_ext <<_ACEOF
5133/* confdefs.h.  */
5134_ACEOF
5135cat confdefs.h >>conftest.$ac_ext
5136cat >>conftest.$ac_ext <<_ACEOF
5137/* end confdefs.h.  */
5138#include <sys/types.h>
5139#include <dirent.h>
5140int
5141main ()
5142{
5143
5144#ifndef _POSIX_SOURCE
5145#   ifdef __Lynx__
5146	/*
5147	 * Generate compilation error to make the test fail:  Lynx headers
5148	 * are only valid if really in the POSIX environment.
5149	 */
5150
5151	missing_procedure();
5152#   endif
5153#endif
5154DIR *d;
5155struct dirent *entryPtr;
5156char *p;
5157d = opendir("foobar");
5158entryPtr = readdir(d);
5159p = entryPtr->d_name;
5160closedir(d);
5161
5162  ;
5163  return 0;
5164}
5165_ACEOF
5166rm -f conftest.$ac_objext conftest$ac_exeext
5167if { (ac_try="$ac_link"
5168case "(($ac_try" in
5169  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5170  *) ac_try_echo=$ac_try;;
5171esac
5172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5173  (eval "$ac_link") 2>conftest.er1
5174  ac_status=$?
5175  grep -v '^ *+' conftest.er1 >conftest.err
5176  rm -f conftest.er1
5177  cat conftest.err >&5
5178  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5179  (exit $ac_status); } && {
5180	 test -z "$ac_c_werror_flag" ||
5181	 test ! -s conftest.err
5182       } && test -s conftest$ac_exeext &&
5183       $as_test_x conftest$ac_exeext; then
5184  tcl_cv_dirent_h=yes
5185else
5186  echo "$as_me: failed program was:" >&5
5187sed 's/^/| /' conftest.$ac_ext >&5
5188
5189	tcl_cv_dirent_h=no
5190fi
5191
5192rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5193      conftest$ac_exeext conftest.$ac_ext
5194fi
5195{ echo "$as_me:$LINENO: result: $tcl_cv_dirent_h" >&5
5196echo "${ECHO_T}$tcl_cv_dirent_h" >&6; }
5197
5198    if test $tcl_cv_dirent_h = no; then
5199
5200cat >>confdefs.h <<\_ACEOF
5201@%:@define NO_DIRENT_H 1
5202_ACEOF
5203
5204    fi
5205
5206    if test "${ac_cv_header_errno_h+set}" = set; then
5207  { echo "$as_me:$LINENO: checking for errno.h" >&5
5208echo $ECHO_N "checking for errno.h... $ECHO_C" >&6; }
5209if test "${ac_cv_header_errno_h+set}" = set; then
5210  echo $ECHO_N "(cached) $ECHO_C" >&6
5211fi
5212{ echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5
5213echo "${ECHO_T}$ac_cv_header_errno_h" >&6; }
5214else
5215  # Is the header compilable?
5216{ echo "$as_me:$LINENO: checking errno.h usability" >&5
5217echo $ECHO_N "checking errno.h usability... $ECHO_C" >&6; }
5218cat >conftest.$ac_ext <<_ACEOF
5219/* confdefs.h.  */
5220_ACEOF
5221cat confdefs.h >>conftest.$ac_ext
5222cat >>conftest.$ac_ext <<_ACEOF
5223/* end confdefs.h.  */
5224$ac_includes_default
5225@%:@include <errno.h>
5226_ACEOF
5227rm -f conftest.$ac_objext
5228if { (ac_try="$ac_compile"
5229case "(($ac_try" in
5230  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5231  *) ac_try_echo=$ac_try;;
5232esac
5233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5234  (eval "$ac_compile") 2>conftest.er1
5235  ac_status=$?
5236  grep -v '^ *+' conftest.er1 >conftest.err
5237  rm -f conftest.er1
5238  cat conftest.err >&5
5239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5240  (exit $ac_status); } && {
5241	 test -z "$ac_c_werror_flag" ||
5242	 test ! -s conftest.err
5243       } && test -s conftest.$ac_objext; then
5244  ac_header_compiler=yes
5245else
5246  echo "$as_me: failed program was:" >&5
5247sed 's/^/| /' conftest.$ac_ext >&5
5248
5249	ac_header_compiler=no
5250fi
5251
5252rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5253{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5254echo "${ECHO_T}$ac_header_compiler" >&6; }
5255
5256# Is the header present?
5257{ echo "$as_me:$LINENO: checking errno.h presence" >&5
5258echo $ECHO_N "checking errno.h presence... $ECHO_C" >&6; }
5259cat >conftest.$ac_ext <<_ACEOF
5260/* confdefs.h.  */
5261_ACEOF
5262cat confdefs.h >>conftest.$ac_ext
5263cat >>conftest.$ac_ext <<_ACEOF
5264/* end confdefs.h.  */
5265@%:@include <errno.h>
5266_ACEOF
5267if { (ac_try="$ac_cpp conftest.$ac_ext"
5268case "(($ac_try" in
5269  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5270  *) ac_try_echo=$ac_try;;
5271esac
5272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5273  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5274  ac_status=$?
5275  grep -v '^ *+' conftest.er1 >conftest.err
5276  rm -f conftest.er1
5277  cat conftest.err >&5
5278  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5279  (exit $ac_status); } >/dev/null && {
5280	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5281	 test ! -s conftest.err
5282       }; then
5283  ac_header_preproc=yes
5284else
5285  echo "$as_me: failed program was:" >&5
5286sed 's/^/| /' conftest.$ac_ext >&5
5287
5288  ac_header_preproc=no
5289fi
5290
5291rm -f conftest.err conftest.$ac_ext
5292{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5293echo "${ECHO_T}$ac_header_preproc" >&6; }
5294
5295# So?  What about this header?
5296case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5297  yes:no: )
5298    { echo "$as_me:$LINENO: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&5
5299echo "$as_me: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5300    { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the compiler's result" >&5
5301echo "$as_me: WARNING: errno.h: proceeding with the compiler's result" >&2;}
5302    ac_header_preproc=yes
5303    ;;
5304  no:yes:* )
5305    { echo "$as_me:$LINENO: WARNING: errno.h: present but cannot be compiled" >&5
5306echo "$as_me: WARNING: errno.h: present but cannot be compiled" >&2;}
5307    { echo "$as_me:$LINENO: WARNING: errno.h:     check for missing prerequisite headers?" >&5
5308echo "$as_me: WARNING: errno.h:     check for missing prerequisite headers?" >&2;}
5309    { echo "$as_me:$LINENO: WARNING: errno.h: see the Autoconf documentation" >&5
5310echo "$as_me: WARNING: errno.h: see the Autoconf documentation" >&2;}
5311    { echo "$as_me:$LINENO: WARNING: errno.h:     section \"Present But Cannot Be Compiled\"" >&5
5312echo "$as_me: WARNING: errno.h:     section \"Present But Cannot Be Compiled\"" >&2;}
5313    { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the preprocessor's result" >&5
5314echo "$as_me: WARNING: errno.h: proceeding with the preprocessor's result" >&2;}
5315    { echo "$as_me:$LINENO: WARNING: errno.h: in the future, the compiler will take precedence" >&5
5316echo "$as_me: WARNING: errno.h: in the future, the compiler will take precedence" >&2;}
5317
5318    ;;
5319esac
5320{ echo "$as_me:$LINENO: checking for errno.h" >&5
5321echo $ECHO_N "checking for errno.h... $ECHO_C" >&6; }
5322if test "${ac_cv_header_errno_h+set}" = set; then
5323  echo $ECHO_N "(cached) $ECHO_C" >&6
5324else
5325  ac_cv_header_errno_h=$ac_header_preproc
5326fi
5327{ echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5
5328echo "${ECHO_T}$ac_cv_header_errno_h" >&6; }
5329
5330fi
5331if test $ac_cv_header_errno_h = yes; then
5332  :
5333else
5334
5335cat >>confdefs.h <<\_ACEOF
5336@%:@define NO_ERRNO_H 1
5337_ACEOF
5338
5339fi
5340
5341
5342    if test "${ac_cv_header_float_h+set}" = set; then
5343  { echo "$as_me:$LINENO: checking for float.h" >&5
5344echo $ECHO_N "checking for float.h... $ECHO_C" >&6; }
5345if test "${ac_cv_header_float_h+set}" = set; then
5346  echo $ECHO_N "(cached) $ECHO_C" >&6
5347fi
5348{ echo "$as_me:$LINENO: result: $ac_cv_header_float_h" >&5
5349echo "${ECHO_T}$ac_cv_header_float_h" >&6; }
5350else
5351  # Is the header compilable?
5352{ echo "$as_me:$LINENO: checking float.h usability" >&5
5353echo $ECHO_N "checking float.h usability... $ECHO_C" >&6; }
5354cat >conftest.$ac_ext <<_ACEOF
5355/* confdefs.h.  */
5356_ACEOF
5357cat confdefs.h >>conftest.$ac_ext
5358cat >>conftest.$ac_ext <<_ACEOF
5359/* end confdefs.h.  */
5360$ac_includes_default
5361@%:@include <float.h>
5362_ACEOF
5363rm -f conftest.$ac_objext
5364if { (ac_try="$ac_compile"
5365case "(($ac_try" in
5366  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5367  *) ac_try_echo=$ac_try;;
5368esac
5369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5370  (eval "$ac_compile") 2>conftest.er1
5371  ac_status=$?
5372  grep -v '^ *+' conftest.er1 >conftest.err
5373  rm -f conftest.er1
5374  cat conftest.err >&5
5375  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5376  (exit $ac_status); } && {
5377	 test -z "$ac_c_werror_flag" ||
5378	 test ! -s conftest.err
5379       } && test -s conftest.$ac_objext; then
5380  ac_header_compiler=yes
5381else
5382  echo "$as_me: failed program was:" >&5
5383sed 's/^/| /' conftest.$ac_ext >&5
5384
5385	ac_header_compiler=no
5386fi
5387
5388rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5389{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5390echo "${ECHO_T}$ac_header_compiler" >&6; }
5391
5392# Is the header present?
5393{ echo "$as_me:$LINENO: checking float.h presence" >&5
5394echo $ECHO_N "checking float.h presence... $ECHO_C" >&6; }
5395cat >conftest.$ac_ext <<_ACEOF
5396/* confdefs.h.  */
5397_ACEOF
5398cat confdefs.h >>conftest.$ac_ext
5399cat >>conftest.$ac_ext <<_ACEOF
5400/* end confdefs.h.  */
5401@%:@include <float.h>
5402_ACEOF
5403if { (ac_try="$ac_cpp conftest.$ac_ext"
5404case "(($ac_try" in
5405  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5406  *) ac_try_echo=$ac_try;;
5407esac
5408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5409  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5410  ac_status=$?
5411  grep -v '^ *+' conftest.er1 >conftest.err
5412  rm -f conftest.er1
5413  cat conftest.err >&5
5414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5415  (exit $ac_status); } >/dev/null && {
5416	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5417	 test ! -s conftest.err
5418       }; then
5419  ac_header_preproc=yes
5420else
5421  echo "$as_me: failed program was:" >&5
5422sed 's/^/| /' conftest.$ac_ext >&5
5423
5424  ac_header_preproc=no
5425fi
5426
5427rm -f conftest.err conftest.$ac_ext
5428{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5429echo "${ECHO_T}$ac_header_preproc" >&6; }
5430
5431# So?  What about this header?
5432case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5433  yes:no: )
5434    { echo "$as_me:$LINENO: WARNING: float.h: accepted by the compiler, rejected by the preprocessor!" >&5
5435echo "$as_me: WARNING: float.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5436    { echo "$as_me:$LINENO: WARNING: float.h: proceeding with the compiler's result" >&5
5437echo "$as_me: WARNING: float.h: proceeding with the compiler's result" >&2;}
5438    ac_header_preproc=yes
5439    ;;
5440  no:yes:* )
5441    { echo "$as_me:$LINENO: WARNING: float.h: present but cannot be compiled" >&5
5442echo "$as_me: WARNING: float.h: present but cannot be compiled" >&2;}
5443    { echo "$as_me:$LINENO: WARNING: float.h:     check for missing prerequisite headers?" >&5
5444echo "$as_me: WARNING: float.h:     check for missing prerequisite headers?" >&2;}
5445    { echo "$as_me:$LINENO: WARNING: float.h: see the Autoconf documentation" >&5
5446echo "$as_me: WARNING: float.h: see the Autoconf documentation" >&2;}
5447    { echo "$as_me:$LINENO: WARNING: float.h:     section \"Present But Cannot Be Compiled\"" >&5
5448echo "$as_me: WARNING: float.h:     section \"Present But Cannot Be Compiled\"" >&2;}
5449    { echo "$as_me:$LINENO: WARNING: float.h: proceeding with the preprocessor's result" >&5
5450echo "$as_me: WARNING: float.h: proceeding with the preprocessor's result" >&2;}
5451    { echo "$as_me:$LINENO: WARNING: float.h: in the future, the compiler will take precedence" >&5
5452echo "$as_me: WARNING: float.h: in the future, the compiler will take precedence" >&2;}
5453
5454    ;;
5455esac
5456{ echo "$as_me:$LINENO: checking for float.h" >&5
5457echo $ECHO_N "checking for float.h... $ECHO_C" >&6; }
5458if test "${ac_cv_header_float_h+set}" = set; then
5459  echo $ECHO_N "(cached) $ECHO_C" >&6
5460else
5461  ac_cv_header_float_h=$ac_header_preproc
5462fi
5463{ echo "$as_me:$LINENO: result: $ac_cv_header_float_h" >&5
5464echo "${ECHO_T}$ac_cv_header_float_h" >&6; }
5465
5466fi
5467if test $ac_cv_header_float_h = yes; then
5468  :
5469else
5470
5471cat >>confdefs.h <<\_ACEOF
5472@%:@define NO_FLOAT_H 1
5473_ACEOF
5474
5475fi
5476
5477
5478    if test "${ac_cv_header_values_h+set}" = set; then
5479  { echo "$as_me:$LINENO: checking for values.h" >&5
5480echo $ECHO_N "checking for values.h... $ECHO_C" >&6; }
5481if test "${ac_cv_header_values_h+set}" = set; then
5482  echo $ECHO_N "(cached) $ECHO_C" >&6
5483fi
5484{ echo "$as_me:$LINENO: result: $ac_cv_header_values_h" >&5
5485echo "${ECHO_T}$ac_cv_header_values_h" >&6; }
5486else
5487  # Is the header compilable?
5488{ echo "$as_me:$LINENO: checking values.h usability" >&5
5489echo $ECHO_N "checking values.h usability... $ECHO_C" >&6; }
5490cat >conftest.$ac_ext <<_ACEOF
5491/* confdefs.h.  */
5492_ACEOF
5493cat confdefs.h >>conftest.$ac_ext
5494cat >>conftest.$ac_ext <<_ACEOF
5495/* end confdefs.h.  */
5496$ac_includes_default
5497@%:@include <values.h>
5498_ACEOF
5499rm -f conftest.$ac_objext
5500if { (ac_try="$ac_compile"
5501case "(($ac_try" in
5502  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5503  *) ac_try_echo=$ac_try;;
5504esac
5505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5506  (eval "$ac_compile") 2>conftest.er1
5507  ac_status=$?
5508  grep -v '^ *+' conftest.er1 >conftest.err
5509  rm -f conftest.er1
5510  cat conftest.err >&5
5511  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5512  (exit $ac_status); } && {
5513	 test -z "$ac_c_werror_flag" ||
5514	 test ! -s conftest.err
5515       } && test -s conftest.$ac_objext; then
5516  ac_header_compiler=yes
5517else
5518  echo "$as_me: failed program was:" >&5
5519sed 's/^/| /' conftest.$ac_ext >&5
5520
5521	ac_header_compiler=no
5522fi
5523
5524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5525{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5526echo "${ECHO_T}$ac_header_compiler" >&6; }
5527
5528# Is the header present?
5529{ echo "$as_me:$LINENO: checking values.h presence" >&5
5530echo $ECHO_N "checking values.h presence... $ECHO_C" >&6; }
5531cat >conftest.$ac_ext <<_ACEOF
5532/* confdefs.h.  */
5533_ACEOF
5534cat confdefs.h >>conftest.$ac_ext
5535cat >>conftest.$ac_ext <<_ACEOF
5536/* end confdefs.h.  */
5537@%:@include <values.h>
5538_ACEOF
5539if { (ac_try="$ac_cpp conftest.$ac_ext"
5540case "(($ac_try" in
5541  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5542  *) ac_try_echo=$ac_try;;
5543esac
5544eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5545  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5546  ac_status=$?
5547  grep -v '^ *+' conftest.er1 >conftest.err
5548  rm -f conftest.er1
5549  cat conftest.err >&5
5550  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5551  (exit $ac_status); } >/dev/null && {
5552	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5553	 test ! -s conftest.err
5554       }; then
5555  ac_header_preproc=yes
5556else
5557  echo "$as_me: failed program was:" >&5
5558sed 's/^/| /' conftest.$ac_ext >&5
5559
5560  ac_header_preproc=no
5561fi
5562
5563rm -f conftest.err conftest.$ac_ext
5564{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5565echo "${ECHO_T}$ac_header_preproc" >&6; }
5566
5567# So?  What about this header?
5568case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5569  yes:no: )
5570    { echo "$as_me:$LINENO: WARNING: values.h: accepted by the compiler, rejected by the preprocessor!" >&5
5571echo "$as_me: WARNING: values.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5572    { echo "$as_me:$LINENO: WARNING: values.h: proceeding with the compiler's result" >&5
5573echo "$as_me: WARNING: values.h: proceeding with the compiler's result" >&2;}
5574    ac_header_preproc=yes
5575    ;;
5576  no:yes:* )
5577    { echo "$as_me:$LINENO: WARNING: values.h: present but cannot be compiled" >&5
5578echo "$as_me: WARNING: values.h: present but cannot be compiled" >&2;}
5579    { echo "$as_me:$LINENO: WARNING: values.h:     check for missing prerequisite headers?" >&5
5580echo "$as_me: WARNING: values.h:     check for missing prerequisite headers?" >&2;}
5581    { echo "$as_me:$LINENO: WARNING: values.h: see the Autoconf documentation" >&5
5582echo "$as_me: WARNING: values.h: see the Autoconf documentation" >&2;}
5583    { echo "$as_me:$LINENO: WARNING: values.h:     section \"Present But Cannot Be Compiled\"" >&5
5584echo "$as_me: WARNING: values.h:     section \"Present But Cannot Be Compiled\"" >&2;}
5585    { echo "$as_me:$LINENO: WARNING: values.h: proceeding with the preprocessor's result" >&5
5586echo "$as_me: WARNING: values.h: proceeding with the preprocessor's result" >&2;}
5587    { echo "$as_me:$LINENO: WARNING: values.h: in the future, the compiler will take precedence" >&5
5588echo "$as_me: WARNING: values.h: in the future, the compiler will take precedence" >&2;}
5589
5590    ;;
5591esac
5592{ echo "$as_me:$LINENO: checking for values.h" >&5
5593echo $ECHO_N "checking for values.h... $ECHO_C" >&6; }
5594if test "${ac_cv_header_values_h+set}" = set; then
5595  echo $ECHO_N "(cached) $ECHO_C" >&6
5596else
5597  ac_cv_header_values_h=$ac_header_preproc
5598fi
5599{ echo "$as_me:$LINENO: result: $ac_cv_header_values_h" >&5
5600echo "${ECHO_T}$ac_cv_header_values_h" >&6; }
5601
5602fi
5603if test $ac_cv_header_values_h = yes; then
5604  :
5605else
5606
5607cat >>confdefs.h <<\_ACEOF
5608@%:@define NO_VALUES_H 1
5609_ACEOF
5610
5611fi
5612
5613
5614    if test "${ac_cv_header_limits_h+set}" = set; then
5615  { echo "$as_me:$LINENO: checking for limits.h" >&5
5616echo $ECHO_N "checking for limits.h... $ECHO_C" >&6; }
5617if test "${ac_cv_header_limits_h+set}" = set; then
5618  echo $ECHO_N "(cached) $ECHO_C" >&6
5619fi
5620{ echo "$as_me:$LINENO: result: $ac_cv_header_limits_h" >&5
5621echo "${ECHO_T}$ac_cv_header_limits_h" >&6; }
5622else
5623  # Is the header compilable?
5624{ echo "$as_me:$LINENO: checking limits.h usability" >&5
5625echo $ECHO_N "checking limits.h usability... $ECHO_C" >&6; }
5626cat >conftest.$ac_ext <<_ACEOF
5627/* confdefs.h.  */
5628_ACEOF
5629cat confdefs.h >>conftest.$ac_ext
5630cat >>conftest.$ac_ext <<_ACEOF
5631/* end confdefs.h.  */
5632$ac_includes_default
5633@%:@include <limits.h>
5634_ACEOF
5635rm -f conftest.$ac_objext
5636if { (ac_try="$ac_compile"
5637case "(($ac_try" in
5638  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5639  *) ac_try_echo=$ac_try;;
5640esac
5641eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5642  (eval "$ac_compile") 2>conftest.er1
5643  ac_status=$?
5644  grep -v '^ *+' conftest.er1 >conftest.err
5645  rm -f conftest.er1
5646  cat conftest.err >&5
5647  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5648  (exit $ac_status); } && {
5649	 test -z "$ac_c_werror_flag" ||
5650	 test ! -s conftest.err
5651       } && test -s conftest.$ac_objext; then
5652  ac_header_compiler=yes
5653else
5654  echo "$as_me: failed program was:" >&5
5655sed 's/^/| /' conftest.$ac_ext >&5
5656
5657	ac_header_compiler=no
5658fi
5659
5660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5661{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5662echo "${ECHO_T}$ac_header_compiler" >&6; }
5663
5664# Is the header present?
5665{ echo "$as_me:$LINENO: checking limits.h presence" >&5
5666echo $ECHO_N "checking limits.h presence... $ECHO_C" >&6; }
5667cat >conftest.$ac_ext <<_ACEOF
5668/* confdefs.h.  */
5669_ACEOF
5670cat confdefs.h >>conftest.$ac_ext
5671cat >>conftest.$ac_ext <<_ACEOF
5672/* end confdefs.h.  */
5673@%:@include <limits.h>
5674_ACEOF
5675if { (ac_try="$ac_cpp conftest.$ac_ext"
5676case "(($ac_try" in
5677  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5678  *) ac_try_echo=$ac_try;;
5679esac
5680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5681  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5682  ac_status=$?
5683  grep -v '^ *+' conftest.er1 >conftest.err
5684  rm -f conftest.er1
5685  cat conftest.err >&5
5686  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5687  (exit $ac_status); } >/dev/null && {
5688	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5689	 test ! -s conftest.err
5690       }; then
5691  ac_header_preproc=yes
5692else
5693  echo "$as_me: failed program was:" >&5
5694sed 's/^/| /' conftest.$ac_ext >&5
5695
5696  ac_header_preproc=no
5697fi
5698
5699rm -f conftest.err conftest.$ac_ext
5700{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5701echo "${ECHO_T}$ac_header_preproc" >&6; }
5702
5703# So?  What about this header?
5704case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5705  yes:no: )
5706    { echo "$as_me:$LINENO: WARNING: limits.h: accepted by the compiler, rejected by the preprocessor!" >&5
5707echo "$as_me: WARNING: limits.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5708    { echo "$as_me:$LINENO: WARNING: limits.h: proceeding with the compiler's result" >&5
5709echo "$as_me: WARNING: limits.h: proceeding with the compiler's result" >&2;}
5710    ac_header_preproc=yes
5711    ;;
5712  no:yes:* )
5713    { echo "$as_me:$LINENO: WARNING: limits.h: present but cannot be compiled" >&5
5714echo "$as_me: WARNING: limits.h: present but cannot be compiled" >&2;}
5715    { echo "$as_me:$LINENO: WARNING: limits.h:     check for missing prerequisite headers?" >&5
5716echo "$as_me: WARNING: limits.h:     check for missing prerequisite headers?" >&2;}
5717    { echo "$as_me:$LINENO: WARNING: limits.h: see the Autoconf documentation" >&5
5718echo "$as_me: WARNING: limits.h: see the Autoconf documentation" >&2;}
5719    { echo "$as_me:$LINENO: WARNING: limits.h:     section \"Present But Cannot Be Compiled\"" >&5
5720echo "$as_me: WARNING: limits.h:     section \"Present But Cannot Be Compiled\"" >&2;}
5721    { echo "$as_me:$LINENO: WARNING: limits.h: proceeding with the preprocessor's result" >&5
5722echo "$as_me: WARNING: limits.h: proceeding with the preprocessor's result" >&2;}
5723    { echo "$as_me:$LINENO: WARNING: limits.h: in the future, the compiler will take precedence" >&5
5724echo "$as_me: WARNING: limits.h: in the future, the compiler will take precedence" >&2;}
5725
5726    ;;
5727esac
5728{ echo "$as_me:$LINENO: checking for limits.h" >&5
5729echo $ECHO_N "checking for limits.h... $ECHO_C" >&6; }
5730if test "${ac_cv_header_limits_h+set}" = set; then
5731  echo $ECHO_N "(cached) $ECHO_C" >&6
5732else
5733  ac_cv_header_limits_h=$ac_header_preproc
5734fi
5735{ echo "$as_me:$LINENO: result: $ac_cv_header_limits_h" >&5
5736echo "${ECHO_T}$ac_cv_header_limits_h" >&6; }
5737
5738fi
5739if test $ac_cv_header_limits_h = yes; then
5740
5741cat >>confdefs.h <<\_ACEOF
5742@%:@define HAVE_LIMITS_H 1
5743_ACEOF
5744
5745else
5746
5747cat >>confdefs.h <<\_ACEOF
5748@%:@define NO_LIMITS_H 1
5749_ACEOF
5750
5751fi
5752
5753
5754    if test "${ac_cv_header_stdlib_h+set}" = set; then
5755  { echo "$as_me:$LINENO: checking for stdlib.h" >&5
5756echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; }
5757if test "${ac_cv_header_stdlib_h+set}" = set; then
5758  echo $ECHO_N "(cached) $ECHO_C" >&6
5759fi
5760{ echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5
5761echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; }
5762else
5763  # Is the header compilable?
5764{ echo "$as_me:$LINENO: checking stdlib.h usability" >&5
5765echo $ECHO_N "checking stdlib.h usability... $ECHO_C" >&6; }
5766cat >conftest.$ac_ext <<_ACEOF
5767/* confdefs.h.  */
5768_ACEOF
5769cat confdefs.h >>conftest.$ac_ext
5770cat >>conftest.$ac_ext <<_ACEOF
5771/* end confdefs.h.  */
5772$ac_includes_default
5773@%:@include <stdlib.h>
5774_ACEOF
5775rm -f conftest.$ac_objext
5776if { (ac_try="$ac_compile"
5777case "(($ac_try" in
5778  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5779  *) ac_try_echo=$ac_try;;
5780esac
5781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5782  (eval "$ac_compile") 2>conftest.er1
5783  ac_status=$?
5784  grep -v '^ *+' conftest.er1 >conftest.err
5785  rm -f conftest.er1
5786  cat conftest.err >&5
5787  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5788  (exit $ac_status); } && {
5789	 test -z "$ac_c_werror_flag" ||
5790	 test ! -s conftest.err
5791       } && test -s conftest.$ac_objext; then
5792  ac_header_compiler=yes
5793else
5794  echo "$as_me: failed program was:" >&5
5795sed 's/^/| /' conftest.$ac_ext >&5
5796
5797	ac_header_compiler=no
5798fi
5799
5800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5801{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5802echo "${ECHO_T}$ac_header_compiler" >&6; }
5803
5804# Is the header present?
5805{ echo "$as_me:$LINENO: checking stdlib.h presence" >&5
5806echo $ECHO_N "checking stdlib.h presence... $ECHO_C" >&6; }
5807cat >conftest.$ac_ext <<_ACEOF
5808/* confdefs.h.  */
5809_ACEOF
5810cat confdefs.h >>conftest.$ac_ext
5811cat >>conftest.$ac_ext <<_ACEOF
5812/* end confdefs.h.  */
5813@%:@include <stdlib.h>
5814_ACEOF
5815if { (ac_try="$ac_cpp conftest.$ac_ext"
5816case "(($ac_try" in
5817  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5818  *) ac_try_echo=$ac_try;;
5819esac
5820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5821  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5822  ac_status=$?
5823  grep -v '^ *+' conftest.er1 >conftest.err
5824  rm -f conftest.er1
5825  cat conftest.err >&5
5826  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5827  (exit $ac_status); } >/dev/null && {
5828	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5829	 test ! -s conftest.err
5830       }; then
5831  ac_header_preproc=yes
5832else
5833  echo "$as_me: failed program was:" >&5
5834sed 's/^/| /' conftest.$ac_ext >&5
5835
5836  ac_header_preproc=no
5837fi
5838
5839rm -f conftest.err conftest.$ac_ext
5840{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5841echo "${ECHO_T}$ac_header_preproc" >&6; }
5842
5843# So?  What about this header?
5844case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5845  yes:no: )
5846    { echo "$as_me:$LINENO: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
5847echo "$as_me: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5848    { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the compiler's result" >&5
5849echo "$as_me: WARNING: stdlib.h: proceeding with the compiler's result" >&2;}
5850    ac_header_preproc=yes
5851    ;;
5852  no:yes:* )
5853    { echo "$as_me:$LINENO: WARNING: stdlib.h: present but cannot be compiled" >&5
5854echo "$as_me: WARNING: stdlib.h: present but cannot be compiled" >&2;}
5855    { echo "$as_me:$LINENO: WARNING: stdlib.h:     check for missing prerequisite headers?" >&5
5856echo "$as_me: WARNING: stdlib.h:     check for missing prerequisite headers?" >&2;}
5857    { echo "$as_me:$LINENO: WARNING: stdlib.h: see the Autoconf documentation" >&5
5858echo "$as_me: WARNING: stdlib.h: see the Autoconf documentation" >&2;}
5859    { echo "$as_me:$LINENO: WARNING: stdlib.h:     section \"Present But Cannot Be Compiled\"" >&5
5860echo "$as_me: WARNING: stdlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
5861    { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the preprocessor's result" >&5
5862echo "$as_me: WARNING: stdlib.h: proceeding with the preprocessor's result" >&2;}
5863    { echo "$as_me:$LINENO: WARNING: stdlib.h: in the future, the compiler will take precedence" >&5
5864echo "$as_me: WARNING: stdlib.h: in the future, the compiler will take precedence" >&2;}
5865
5866    ;;
5867esac
5868{ echo "$as_me:$LINENO: checking for stdlib.h" >&5
5869echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; }
5870if test "${ac_cv_header_stdlib_h+set}" = set; then
5871  echo $ECHO_N "(cached) $ECHO_C" >&6
5872else
5873  ac_cv_header_stdlib_h=$ac_header_preproc
5874fi
5875{ echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5
5876echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; }
5877
5878fi
5879if test $ac_cv_header_stdlib_h = yes; then
5880  tcl_ok=1
5881else
5882  tcl_ok=0
5883fi
5884
5885
5886    cat >conftest.$ac_ext <<_ACEOF
5887/* confdefs.h.  */
5888_ACEOF
5889cat confdefs.h >>conftest.$ac_ext
5890cat >>conftest.$ac_ext <<_ACEOF
5891/* end confdefs.h.  */
5892#include <stdlib.h>
5893
5894_ACEOF
5895if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5896  $EGREP "strtol" >/dev/null 2>&1; then
5897  :
5898else
5899  tcl_ok=0
5900fi
5901rm -f conftest*
5902
5903    cat >conftest.$ac_ext <<_ACEOF
5904/* confdefs.h.  */
5905_ACEOF
5906cat confdefs.h >>conftest.$ac_ext
5907cat >>conftest.$ac_ext <<_ACEOF
5908/* end confdefs.h.  */
5909#include <stdlib.h>
5910
5911_ACEOF
5912if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5913  $EGREP "strtoul" >/dev/null 2>&1; then
5914  :
5915else
5916  tcl_ok=0
5917fi
5918rm -f conftest*
5919
5920    cat >conftest.$ac_ext <<_ACEOF
5921/* confdefs.h.  */
5922_ACEOF
5923cat confdefs.h >>conftest.$ac_ext
5924cat >>conftest.$ac_ext <<_ACEOF
5925/* end confdefs.h.  */
5926#include <stdlib.h>
5927
5928_ACEOF
5929if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5930  $EGREP "strtod" >/dev/null 2>&1; then
5931  :
5932else
5933  tcl_ok=0
5934fi
5935rm -f conftest*
5936
5937    if test $tcl_ok = 0; then
5938
5939cat >>confdefs.h <<\_ACEOF
5940@%:@define NO_STDLIB_H 1
5941_ACEOF
5942
5943    fi
5944    if test "${ac_cv_header_string_h+set}" = set; then
5945  { echo "$as_me:$LINENO: checking for string.h" >&5
5946echo $ECHO_N "checking for string.h... $ECHO_C" >&6; }
5947if test "${ac_cv_header_string_h+set}" = set; then
5948  echo $ECHO_N "(cached) $ECHO_C" >&6
5949fi
5950{ echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
5951echo "${ECHO_T}$ac_cv_header_string_h" >&6; }
5952else
5953  # Is the header compilable?
5954{ echo "$as_me:$LINENO: checking string.h usability" >&5
5955echo $ECHO_N "checking string.h usability... $ECHO_C" >&6; }
5956cat >conftest.$ac_ext <<_ACEOF
5957/* confdefs.h.  */
5958_ACEOF
5959cat confdefs.h >>conftest.$ac_ext
5960cat >>conftest.$ac_ext <<_ACEOF
5961/* end confdefs.h.  */
5962$ac_includes_default
5963@%:@include <string.h>
5964_ACEOF
5965rm -f conftest.$ac_objext
5966if { (ac_try="$ac_compile"
5967case "(($ac_try" in
5968  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5969  *) ac_try_echo=$ac_try;;
5970esac
5971eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5972  (eval "$ac_compile") 2>conftest.er1
5973  ac_status=$?
5974  grep -v '^ *+' conftest.er1 >conftest.err
5975  rm -f conftest.er1
5976  cat conftest.err >&5
5977  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5978  (exit $ac_status); } && {
5979	 test -z "$ac_c_werror_flag" ||
5980	 test ! -s conftest.err
5981       } && test -s conftest.$ac_objext; then
5982  ac_header_compiler=yes
5983else
5984  echo "$as_me: failed program was:" >&5
5985sed 's/^/| /' conftest.$ac_ext >&5
5986
5987	ac_header_compiler=no
5988fi
5989
5990rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5991{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5992echo "${ECHO_T}$ac_header_compiler" >&6; }
5993
5994# Is the header present?
5995{ echo "$as_me:$LINENO: checking string.h presence" >&5
5996echo $ECHO_N "checking string.h presence... $ECHO_C" >&6; }
5997cat >conftest.$ac_ext <<_ACEOF
5998/* confdefs.h.  */
5999_ACEOF
6000cat confdefs.h >>conftest.$ac_ext
6001cat >>conftest.$ac_ext <<_ACEOF
6002/* end confdefs.h.  */
6003@%:@include <string.h>
6004_ACEOF
6005if { (ac_try="$ac_cpp conftest.$ac_ext"
6006case "(($ac_try" in
6007  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6008  *) ac_try_echo=$ac_try;;
6009esac
6010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6011  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6012  ac_status=$?
6013  grep -v '^ *+' conftest.er1 >conftest.err
6014  rm -f conftest.er1
6015  cat conftest.err >&5
6016  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6017  (exit $ac_status); } >/dev/null && {
6018	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6019	 test ! -s conftest.err
6020       }; then
6021  ac_header_preproc=yes
6022else
6023  echo "$as_me: failed program was:" >&5
6024sed 's/^/| /' conftest.$ac_ext >&5
6025
6026  ac_header_preproc=no
6027fi
6028
6029rm -f conftest.err conftest.$ac_ext
6030{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6031echo "${ECHO_T}$ac_header_preproc" >&6; }
6032
6033# So?  What about this header?
6034case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6035  yes:no: )
6036    { echo "$as_me:$LINENO: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&5
6037echo "$as_me: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6038    { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the compiler's result" >&5
6039echo "$as_me: WARNING: string.h: proceeding with the compiler's result" >&2;}
6040    ac_header_preproc=yes
6041    ;;
6042  no:yes:* )
6043    { echo "$as_me:$LINENO: WARNING: string.h: present but cannot be compiled" >&5
6044echo "$as_me: WARNING: string.h: present but cannot be compiled" >&2;}
6045    { echo "$as_me:$LINENO: WARNING: string.h:     check for missing prerequisite headers?" >&5
6046echo "$as_me: WARNING: string.h:     check for missing prerequisite headers?" >&2;}
6047    { echo "$as_me:$LINENO: WARNING: string.h: see the Autoconf documentation" >&5
6048echo "$as_me: WARNING: string.h: see the Autoconf documentation" >&2;}
6049    { echo "$as_me:$LINENO: WARNING: string.h:     section \"Present But Cannot Be Compiled\"" >&5
6050echo "$as_me: WARNING: string.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6051    { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5
6052echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;}
6053    { echo "$as_me:$LINENO: WARNING: string.h: in the future, the compiler will take precedence" >&5
6054echo "$as_me: WARNING: string.h: in the future, the compiler will take precedence" >&2;}
6055
6056    ;;
6057esac
6058{ echo "$as_me:$LINENO: checking for string.h" >&5
6059echo $ECHO_N "checking for string.h... $ECHO_C" >&6; }
6060if test "${ac_cv_header_string_h+set}" = set; then
6061  echo $ECHO_N "(cached) $ECHO_C" >&6
6062else
6063  ac_cv_header_string_h=$ac_header_preproc
6064fi
6065{ echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
6066echo "${ECHO_T}$ac_cv_header_string_h" >&6; }
6067
6068fi
6069if test $ac_cv_header_string_h = yes; then
6070  tcl_ok=1
6071else
6072  tcl_ok=0
6073fi
6074
6075
6076    cat >conftest.$ac_ext <<_ACEOF
6077/* confdefs.h.  */
6078_ACEOF
6079cat confdefs.h >>conftest.$ac_ext
6080cat >>conftest.$ac_ext <<_ACEOF
6081/* end confdefs.h.  */
6082#include <string.h>
6083
6084_ACEOF
6085if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6086  $EGREP "strstr" >/dev/null 2>&1; then
6087  :
6088else
6089  tcl_ok=0
6090fi
6091rm -f conftest*
6092
6093    cat >conftest.$ac_ext <<_ACEOF
6094/* confdefs.h.  */
6095_ACEOF
6096cat confdefs.h >>conftest.$ac_ext
6097cat >>conftest.$ac_ext <<_ACEOF
6098/* end confdefs.h.  */
6099#include <string.h>
6100
6101_ACEOF
6102if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6103  $EGREP "strerror" >/dev/null 2>&1; then
6104  :
6105else
6106  tcl_ok=0
6107fi
6108rm -f conftest*
6109
6110
6111    # See also memmove check below for a place where NO_STRING_H can be
6112    # set and why.
6113
6114    if test $tcl_ok = 0; then
6115
6116cat >>confdefs.h <<\_ACEOF
6117@%:@define NO_STRING_H 1
6118_ACEOF
6119
6120    fi
6121
6122    if test "${ac_cv_header_sys_wait_h+set}" = set; then
6123  { echo "$as_me:$LINENO: checking for sys/wait.h" >&5
6124echo $ECHO_N "checking for sys/wait.h... $ECHO_C" >&6; }
6125if test "${ac_cv_header_sys_wait_h+set}" = set; then
6126  echo $ECHO_N "(cached) $ECHO_C" >&6
6127fi
6128{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6129echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
6130else
6131  # Is the header compilable?
6132{ echo "$as_me:$LINENO: checking sys/wait.h usability" >&5
6133echo $ECHO_N "checking sys/wait.h usability... $ECHO_C" >&6; }
6134cat >conftest.$ac_ext <<_ACEOF
6135/* confdefs.h.  */
6136_ACEOF
6137cat confdefs.h >>conftest.$ac_ext
6138cat >>conftest.$ac_ext <<_ACEOF
6139/* end confdefs.h.  */
6140$ac_includes_default
6141@%:@include <sys/wait.h>
6142_ACEOF
6143rm -f conftest.$ac_objext
6144if { (ac_try="$ac_compile"
6145case "(($ac_try" in
6146  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6147  *) ac_try_echo=$ac_try;;
6148esac
6149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6150  (eval "$ac_compile") 2>conftest.er1
6151  ac_status=$?
6152  grep -v '^ *+' conftest.er1 >conftest.err
6153  rm -f conftest.er1
6154  cat conftest.err >&5
6155  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6156  (exit $ac_status); } && {
6157	 test -z "$ac_c_werror_flag" ||
6158	 test ! -s conftest.err
6159       } && test -s conftest.$ac_objext; then
6160  ac_header_compiler=yes
6161else
6162  echo "$as_me: failed program was:" >&5
6163sed 's/^/| /' conftest.$ac_ext >&5
6164
6165	ac_header_compiler=no
6166fi
6167
6168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6169{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6170echo "${ECHO_T}$ac_header_compiler" >&6; }
6171
6172# Is the header present?
6173{ echo "$as_me:$LINENO: checking sys/wait.h presence" >&5
6174echo $ECHO_N "checking sys/wait.h presence... $ECHO_C" >&6; }
6175cat >conftest.$ac_ext <<_ACEOF
6176/* confdefs.h.  */
6177_ACEOF
6178cat confdefs.h >>conftest.$ac_ext
6179cat >>conftest.$ac_ext <<_ACEOF
6180/* end confdefs.h.  */
6181@%:@include <sys/wait.h>
6182_ACEOF
6183if { (ac_try="$ac_cpp conftest.$ac_ext"
6184case "(($ac_try" in
6185  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6186  *) ac_try_echo=$ac_try;;
6187esac
6188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6189  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6190  ac_status=$?
6191  grep -v '^ *+' conftest.er1 >conftest.err
6192  rm -f conftest.er1
6193  cat conftest.err >&5
6194  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195  (exit $ac_status); } >/dev/null && {
6196	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6197	 test ! -s conftest.err
6198       }; then
6199  ac_header_preproc=yes
6200else
6201  echo "$as_me: failed program was:" >&5
6202sed 's/^/| /' conftest.$ac_ext >&5
6203
6204  ac_header_preproc=no
6205fi
6206
6207rm -f conftest.err conftest.$ac_ext
6208{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6209echo "${ECHO_T}$ac_header_preproc" >&6; }
6210
6211# So?  What about this header?
6212case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6213  yes:no: )
6214    { echo "$as_me:$LINENO: WARNING: sys/wait.h: accepted by the compiler, rejected by the preprocessor!" >&5
6215echo "$as_me: WARNING: sys/wait.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6216    { echo "$as_me:$LINENO: WARNING: sys/wait.h: proceeding with the compiler's result" >&5
6217echo "$as_me: WARNING: sys/wait.h: proceeding with the compiler's result" >&2;}
6218    ac_header_preproc=yes
6219    ;;
6220  no:yes:* )
6221    { echo "$as_me:$LINENO: WARNING: sys/wait.h: present but cannot be compiled" >&5
6222echo "$as_me: WARNING: sys/wait.h: present but cannot be compiled" >&2;}
6223    { echo "$as_me:$LINENO: WARNING: sys/wait.h:     check for missing prerequisite headers?" >&5
6224echo "$as_me: WARNING: sys/wait.h:     check for missing prerequisite headers?" >&2;}
6225    { echo "$as_me:$LINENO: WARNING: sys/wait.h: see the Autoconf documentation" >&5
6226echo "$as_me: WARNING: sys/wait.h: see the Autoconf documentation" >&2;}
6227    { echo "$as_me:$LINENO: WARNING: sys/wait.h:     section \"Present But Cannot Be Compiled\"" >&5
6228echo "$as_me: WARNING: sys/wait.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6229    { echo "$as_me:$LINENO: WARNING: sys/wait.h: proceeding with the preprocessor's result" >&5
6230echo "$as_me: WARNING: sys/wait.h: proceeding with the preprocessor's result" >&2;}
6231    { echo "$as_me:$LINENO: WARNING: sys/wait.h: in the future, the compiler will take precedence" >&5
6232echo "$as_me: WARNING: sys/wait.h: in the future, the compiler will take precedence" >&2;}
6233
6234    ;;
6235esac
6236{ echo "$as_me:$LINENO: checking for sys/wait.h" >&5
6237echo $ECHO_N "checking for sys/wait.h... $ECHO_C" >&6; }
6238if test "${ac_cv_header_sys_wait_h+set}" = set; then
6239  echo $ECHO_N "(cached) $ECHO_C" >&6
6240else
6241  ac_cv_header_sys_wait_h=$ac_header_preproc
6242fi
6243{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6244echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
6245
6246fi
6247if test $ac_cv_header_sys_wait_h = yes; then
6248  :
6249else
6250
6251cat >>confdefs.h <<\_ACEOF
6252@%:@define NO_SYS_WAIT_H 1
6253_ACEOF
6254
6255fi
6256
6257
6258    if test "${ac_cv_header_dlfcn_h+set}" = set; then
6259  { echo "$as_me:$LINENO: checking for dlfcn.h" >&5
6260echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; }
6261if test "${ac_cv_header_dlfcn_h+set}" = set; then
6262  echo $ECHO_N "(cached) $ECHO_C" >&6
6263fi
6264{ echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
6265echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; }
6266else
6267  # Is the header compilable?
6268{ echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
6269echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6; }
6270cat >conftest.$ac_ext <<_ACEOF
6271/* confdefs.h.  */
6272_ACEOF
6273cat confdefs.h >>conftest.$ac_ext
6274cat >>conftest.$ac_ext <<_ACEOF
6275/* end confdefs.h.  */
6276$ac_includes_default
6277@%:@include <dlfcn.h>
6278_ACEOF
6279rm -f conftest.$ac_objext
6280if { (ac_try="$ac_compile"
6281case "(($ac_try" in
6282  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6283  *) ac_try_echo=$ac_try;;
6284esac
6285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6286  (eval "$ac_compile") 2>conftest.er1
6287  ac_status=$?
6288  grep -v '^ *+' conftest.er1 >conftest.err
6289  rm -f conftest.er1
6290  cat conftest.err >&5
6291  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6292  (exit $ac_status); } && {
6293	 test -z "$ac_c_werror_flag" ||
6294	 test ! -s conftest.err
6295       } && test -s conftest.$ac_objext; then
6296  ac_header_compiler=yes
6297else
6298  echo "$as_me: failed program was:" >&5
6299sed 's/^/| /' conftest.$ac_ext >&5
6300
6301	ac_header_compiler=no
6302fi
6303
6304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6305{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6306echo "${ECHO_T}$ac_header_compiler" >&6; }
6307
6308# Is the header present?
6309{ echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
6310echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6; }
6311cat >conftest.$ac_ext <<_ACEOF
6312/* confdefs.h.  */
6313_ACEOF
6314cat confdefs.h >>conftest.$ac_ext
6315cat >>conftest.$ac_ext <<_ACEOF
6316/* end confdefs.h.  */
6317@%:@include <dlfcn.h>
6318_ACEOF
6319if { (ac_try="$ac_cpp conftest.$ac_ext"
6320case "(($ac_try" in
6321  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6322  *) ac_try_echo=$ac_try;;
6323esac
6324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6325  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6326  ac_status=$?
6327  grep -v '^ *+' conftest.er1 >conftest.err
6328  rm -f conftest.er1
6329  cat conftest.err >&5
6330  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6331  (exit $ac_status); } >/dev/null && {
6332	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6333	 test ! -s conftest.err
6334       }; then
6335  ac_header_preproc=yes
6336else
6337  echo "$as_me: failed program was:" >&5
6338sed 's/^/| /' conftest.$ac_ext >&5
6339
6340  ac_header_preproc=no
6341fi
6342
6343rm -f conftest.err conftest.$ac_ext
6344{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6345echo "${ECHO_T}$ac_header_preproc" >&6; }
6346
6347# So?  What about this header?
6348case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6349  yes:no: )
6350    { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
6351echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6352    { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5
6353echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;}
6354    ac_header_preproc=yes
6355    ;;
6356  no:yes:* )
6357    { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
6358echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
6359    { echo "$as_me:$LINENO: WARNING: dlfcn.h:     check for missing prerequisite headers?" >&5
6360echo "$as_me: WARNING: dlfcn.h:     check for missing prerequisite headers?" >&2;}
6361    { echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5
6362echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;}
6363    { echo "$as_me:$LINENO: WARNING: dlfcn.h:     section \"Present But Cannot Be Compiled\"" >&5
6364echo "$as_me: WARNING: dlfcn.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6365    { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
6366echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
6367    { echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5
6368echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;}
6369
6370    ;;
6371esac
6372{ echo "$as_me:$LINENO: checking for dlfcn.h" >&5
6373echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; }
6374if test "${ac_cv_header_dlfcn_h+set}" = set; then
6375  echo $ECHO_N "(cached) $ECHO_C" >&6
6376else
6377  ac_cv_header_dlfcn_h=$ac_header_preproc
6378fi
6379{ echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
6380echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; }
6381
6382fi
6383if test $ac_cv_header_dlfcn_h = yes; then
6384  :
6385else
6386
6387cat >>confdefs.h <<\_ACEOF
6388@%:@define NO_DLFCN_H 1
6389_ACEOF
6390
6391fi
6392
6393
6394
6395    # OS/390 lacks sys/param.h (and doesn't need it, by chance).
6396
6397for ac_header in sys/param.h
6398do
6399as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6400if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6401  { echo "$as_me:$LINENO: checking for $ac_header" >&5
6402echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6403if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6404  echo $ECHO_N "(cached) $ECHO_C" >&6
6405fi
6406ac_res=`eval echo '${'$as_ac_Header'}'`
6407	       { echo "$as_me:$LINENO: result: $ac_res" >&5
6408echo "${ECHO_T}$ac_res" >&6; }
6409else
6410  # Is the header compilable?
6411{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
6412echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6413cat >conftest.$ac_ext <<_ACEOF
6414/* confdefs.h.  */
6415_ACEOF
6416cat confdefs.h >>conftest.$ac_ext
6417cat >>conftest.$ac_ext <<_ACEOF
6418/* end confdefs.h.  */
6419$ac_includes_default
6420@%:@include <$ac_header>
6421_ACEOF
6422rm -f conftest.$ac_objext
6423if { (ac_try="$ac_compile"
6424case "(($ac_try" in
6425  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6426  *) ac_try_echo=$ac_try;;
6427esac
6428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6429  (eval "$ac_compile") 2>conftest.er1
6430  ac_status=$?
6431  grep -v '^ *+' conftest.er1 >conftest.err
6432  rm -f conftest.er1
6433  cat conftest.err >&5
6434  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6435  (exit $ac_status); } && {
6436	 test -z "$ac_c_werror_flag" ||
6437	 test ! -s conftest.err
6438       } && test -s conftest.$ac_objext; then
6439  ac_header_compiler=yes
6440else
6441  echo "$as_me: failed program was:" >&5
6442sed 's/^/| /' conftest.$ac_ext >&5
6443
6444	ac_header_compiler=no
6445fi
6446
6447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6448{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6449echo "${ECHO_T}$ac_header_compiler" >&6; }
6450
6451# Is the header present?
6452{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
6453echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6454cat >conftest.$ac_ext <<_ACEOF
6455/* confdefs.h.  */
6456_ACEOF
6457cat confdefs.h >>conftest.$ac_ext
6458cat >>conftest.$ac_ext <<_ACEOF
6459/* end confdefs.h.  */
6460@%:@include <$ac_header>
6461_ACEOF
6462if { (ac_try="$ac_cpp conftest.$ac_ext"
6463case "(($ac_try" in
6464  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6465  *) ac_try_echo=$ac_try;;
6466esac
6467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6468  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6469  ac_status=$?
6470  grep -v '^ *+' conftest.er1 >conftest.err
6471  rm -f conftest.er1
6472  cat conftest.err >&5
6473  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6474  (exit $ac_status); } >/dev/null && {
6475	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6476	 test ! -s conftest.err
6477       }; then
6478  ac_header_preproc=yes
6479else
6480  echo "$as_me: failed program was:" >&5
6481sed 's/^/| /' conftest.$ac_ext >&5
6482
6483  ac_header_preproc=no
6484fi
6485
6486rm -f conftest.err conftest.$ac_ext
6487{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6488echo "${ECHO_T}$ac_header_preproc" >&6; }
6489
6490# So?  What about this header?
6491case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6492  yes:no: )
6493    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6494echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6495    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6496echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6497    ac_header_preproc=yes
6498    ;;
6499  no:yes:* )
6500    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6501echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6502    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6503echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6504    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6505echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6506    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6507echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6508    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6509echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6510    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6511echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6512
6513    ;;
6514esac
6515{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6516echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6517if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6518  echo $ECHO_N "(cached) $ECHO_C" >&6
6519else
6520  eval "$as_ac_Header=\$ac_header_preproc"
6521fi
6522ac_res=`eval echo '${'$as_ac_Header'}'`
6523	       { echo "$as_me:$LINENO: result: $ac_res" >&5
6524echo "${ECHO_T}$ac_res" >&6; }
6525
6526fi
6527if test `eval echo '${'$as_ac_Header'}'` = yes; then
6528  cat >>confdefs.h <<_ACEOF
6529@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6530_ACEOF
6531
6532fi
6533
6534done
6535
6536
6537	# Let the user call this, because if it triggers, they will
6538	# need a compat/strtod.c that is correct.  Users can also
6539	# use Tcl_GetDouble(FromObj) instead.
6540	#TEA_BUGGY_STRTOD
6541    fi
6542
6543
6544#-----------------------------------------------------------------------
6545# Specify the C source files to compile in TEA_ADD_SOURCES,
6546# public headers that need to be installed in TEA_ADD_HEADERS,
6547# stub library C source files to compile in TEA_ADD_STUB_SOURCES,
6548# and runtime Tcl library files in TEA_ADD_TCL_SOURCES.
6549# This defines PKG(_STUB)_SOURCES, PKG(_STUB)_OBJECTS, PKG_HEADERS
6550# and PKG_TCL_SOURCES.
6551#-----------------------------------------------------------------------
6552
6553
6554    vars="tclxml.c docObj.c tclxml-libxml2.c nodeObj.c tcldom-libxml2.c tclxslt-libxslt.c"
6555    for i in $vars; do
6556	case $i in
6557	    \$*)
6558		# allow $-var names
6559		PKG_SOURCES="$PKG_SOURCES $i"
6560		PKG_OBJECTS="$PKG_OBJECTS $i"
6561		;;
6562	    *)
6563		# check for existence - allows for generic/win/unix VPATH
6564		if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \
6565		    -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \
6566		    ; then
6567		    { { echo "$as_me:$LINENO: error: could not find source file '$i'" >&5
6568echo "$as_me: error: could not find source file '$i'" >&2;}
6569   { (exit 1); exit 1; }; }
6570		fi
6571		PKG_SOURCES="$PKG_SOURCES $i"
6572		# this assumes it is in a VPATH dir
6573		i=`basename $i`
6574		# handle user calling this before or after TEA_SETUP_COMPILER
6575		if test x"${OBJEXT}" != x ; then
6576		    j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}"
6577		else
6578		    j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}"
6579		fi
6580		PKG_OBJECTS="$PKG_OBJECTS $j"
6581		;;
6582	esac
6583    done
6584
6585
6586
6587
6588    vars="include/tclxml-libxml2/docObj.h include/tclxml-libxml2/tclxml-libxml2.h include/tcldom/tcldom.h include/tcldom-libxml2/tcldom-libxml2.h include/tclxslt/tclxslt.h"
6589    for i in $vars; do
6590	# check for existence, be strict because it is installed
6591	if test ! -f "${srcdir}/$i" ; then
6592	    { { echo "$as_me:$LINENO: error: could not find header file '${srcdir}/$i'" >&5
6593echo "$as_me: error: could not find header file '${srcdir}/$i'" >&2;}
6594   { (exit 1); exit 1; }; }
6595	fi
6596	PKG_HEADERS="$PKG_HEADERS $i"
6597    done
6598
6599
6600
6601    vars="-Iinclude"
6602    for i in $vars; do
6603	PKG_INCLUDES="$PKG_INCLUDES $i"
6604    done
6605
6606
6607#TEA_ADD_LIBS([-lexslt])
6608
6609    vars=""
6610    for i in $vars; do
6611	if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then
6612	    # Convert foo.lib to -lfoo for GCC.  No-op if not *.lib
6613	    i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'`
6614	fi
6615	PKG_LIBS="$PKG_LIBS $i"
6616    done
6617
6618
6619
6620    PKG_CFLAGS="$PKG_CFLAGS "
6621
6622
6623
6624    vars="tclxmlStubInit.c tclxmlStubLib.c"
6625    for i in $vars; do
6626	# check for existence - allows for generic/win/unix VPATH
6627	if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \
6628	    -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \
6629	    ; then
6630	    { { echo "$as_me:$LINENO: error: could not find stub source file '$i'" >&5
6631echo "$as_me: error: could not find stub source file '$i'" >&2;}
6632   { (exit 1); exit 1; }; }
6633	fi
6634	PKG_STUB_SOURCES="$PKG_STUB_SOURCES $i"
6635	# this assumes it is in a VPATH dir
6636	i=`basename $i`
6637	# handle user calling this before or after TEA_SETUP_COMPILER
6638	if test x"${OBJEXT}" != x ; then
6639	    j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}"
6640	else
6641	    j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}"
6642	fi
6643	PKG_STUB_OBJECTS="$PKG_STUB_OBJECTS $j"
6644    done
6645
6646
6647
6648
6649    vars="tclxml-tcl/xml__tcl.tcl tclxml-tcl/sgml-8.0.tcl tclxml-tcl/sgml-8.1.tcl tclxml-tcl/xml-8.0.tcl tclxml-tcl/xml-8.1.tcl tclxml-tcl/sgmlparser.tcl tclxml-tcl/tclparser-8.0.tcl tclxml-tcl/tclparser-8.1.tcl tclxml-tcl/xmldep.tcl tclxml-tcl/xpath.tcl tcldom-libxml2.tcl tcldom-tcl/xmlswitch.tcl tclxslt/process.tcl tclxslt/resources.tcl tclxslt/utilities.tcl tclxslt/xsltcache.tcl tclxslt-libxslt.tcl"
6650    for i in $vars; do
6651	# check for existence, be strict because it is installed
6652	if test ! -f "${srcdir}/$i" ; then
6653	    { { echo "$as_me:$LINENO: error: could not find tcl source file '${srcdir}/$i'" >&5
6654echo "$as_me: error: could not find tcl source file '${srcdir}/$i'" >&2;}
6655   { (exit 1); exit 1; }; }
6656	fi
6657	PKG_TCL_SOURCES="$PKG_TCL_SOURCES $i"
6658    done
6659
6660
6661
6662#--------------------------------------------------------------------
6663# A few miscellaneous platform-specific items:
6664#
6665# We have to define a special symbol for Windows (BUILD_Tclxml in this
6666# case) so that we create the export library with the dll.
6667#
6668# Windows creates a few extra files that need to be cleaned up.
6669# We can add more files to clean if our extension creates any extra
6670# files in the future.
6671#
6672# TEA_ADD_* any platform specific compiler/build info here.
6673#--------------------------------------------------------------------
6674
6675CLEANFILES=pkgIndex.tcl
6676if test "${TEA_PLATFORM}" = "windows" ; then
6677
6678cat >>confdefs.h <<\_ACEOF
6679@%:@define BUILD_Tclxml 1
6680_ACEOF
6681
6682    CLEANFILES="$CLEANFILES *.lib *.dll *.exp *.ilk *.pdb vc*.pch"
6683else
6684    :
6685fi
6686
6687
6688
6689    { echo "$as_me:$LINENO: checking for Tcl public headers" >&5
6690echo $ECHO_N "checking for Tcl public headers... $ECHO_C" >&6; }
6691
6692
6693# Check whether --with-tclinclude was given.
6694if test "${with_tclinclude+set}" = set; then
6695  withval=$with_tclinclude; with_tclinclude=${withval}
6696fi
6697
6698
6699    if test "${ac_cv_c_tclh+set}" = set; then
6700  echo $ECHO_N "(cached) $ECHO_C" >&6
6701else
6702
6703	# Use the value from --with-tclinclude, if it was given
6704
6705	if test x"${with_tclinclude}" != x ; then
6706	    if test -f "${with_tclinclude}/tcl.h" ; then
6707		ac_cv_c_tclh=${with_tclinclude}
6708	    else
6709		{ { echo "$as_me:$LINENO: error: ${with_tclinclude} directory does not contain tcl.h" >&5
6710echo "$as_me: error: ${with_tclinclude} directory does not contain tcl.h" >&2;}
6711   { (exit 1); exit 1; }; }
6712	    fi
6713	else
6714	    if test "`uname -s`" = "Darwin"; then
6715		# If Tcl was built as a framework, attempt to use
6716		# the framework's Headers directory
6717		case ${TCL_DEFS} in
6718		    *TCL_FRAMEWORK*)
6719			list="`ls -d ${TCL_BIN_DIR}/Headers 2>/dev/null`"
6720			;;
6721		esac
6722	    fi
6723
6724	    # Look in the source dir only if Tcl is not installed,
6725	    # and in that situation, look there before installed locations.
6726	    if test -f "${TCL_BIN_DIR}/Makefile" ; then
6727		list="$list `ls -d ${TCL_SRC_DIR}/generic 2>/dev/null`"
6728	    fi
6729
6730	    # Check order: pkg --prefix location, Tcl's --prefix location,
6731	    # relative to directory of tclConfig.sh.
6732
6733	    eval "temp_includedir=${includedir}"
6734	    list="$list \
6735		`ls -d ${temp_includedir}        2>/dev/null` \
6736		`ls -d ${TCL_PREFIX}/include     2>/dev/null` \
6737		`ls -d ${TCL_BIN_DIR}/../include 2>/dev/null`"
6738	    if test "${TEA_PLATFORM}" != "windows" -o "$GCC" = "yes"; then
6739		list="$list /usr/local/include /usr/include"
6740		if test x"${TCL_INCLUDE_SPEC}" != x ; then
6741		    d=`echo "${TCL_INCLUDE_SPEC}" | sed -e 's/^-I//'`
6742		    list="$list `ls -d ${d} 2>/dev/null`"
6743		fi
6744	    fi
6745	    for i in $list ; do
6746		if test -f "$i/tcl.h" ; then
6747		    ac_cv_c_tclh=$i
6748		    break
6749		fi
6750	    done
6751	fi
6752
6753fi
6754
6755
6756    # Print a message based on how we determined the include path
6757
6758    if test x"${ac_cv_c_tclh}" = x ; then
6759	{ { echo "$as_me:$LINENO: error: tcl.h not found.  Please specify its location with --with-tclinclude" >&5
6760echo "$as_me: error: tcl.h not found.  Please specify its location with --with-tclinclude" >&2;}
6761   { (exit 1); exit 1; }; }
6762    else
6763	{ echo "$as_me:$LINENO: result: ${ac_cv_c_tclh}" >&5
6764echo "${ECHO_T}${ac_cv_c_tclh}" >&6; }
6765    fi
6766
6767    # Convert to a native path and substitute into the output files.
6768
6769    INCLUDE_DIR_NATIVE=`${CYGPATH} ${ac_cv_c_tclh}`
6770
6771    TCL_INCLUDES=-I\"${INCLUDE_DIR_NATIVE}\"
6772
6773
6774
6775
6776#--------------------------------------------------------------------
6777# Check whether --enable-threads or --disable-threads was given.
6778# So far only Tcl responds to this one.
6779#--------------------------------------------------------------------
6780
6781
6782    # Check whether --enable-threads was given.
6783if test "${enable_threads+set}" = set; then
6784  enableval=$enable_threads; tcl_ok=$enableval
6785else
6786  tcl_ok=yes
6787fi
6788
6789
6790    if test "${enable_threads+set}" = set; then
6791	enableval="$enable_threads"
6792	tcl_ok=$enableval
6793    else
6794	tcl_ok=yes
6795    fi
6796
6797    if test "$tcl_ok" = "yes" -o "${TCL_THREADS}" = 1; then
6798	TCL_THREADS=1
6799
6800	if test "${TEA_PLATFORM}" != "windows" ; then
6801	    # We are always OK on Windows, so check what this platform wants:
6802
6803	    # USE_THREAD_ALLOC tells us to try the special thread-based
6804	    # allocator that significantly reduces lock contention
6805
6806cat >>confdefs.h <<\_ACEOF
6807@%:@define USE_THREAD_ALLOC 1
6808_ACEOF
6809
6810
6811cat >>confdefs.h <<\_ACEOF
6812@%:@define _REENTRANT 1
6813_ACEOF
6814
6815	    if test "`uname -s`" = "SunOS" ; then
6816
6817cat >>confdefs.h <<\_ACEOF
6818@%:@define _POSIX_PTHREAD_SEMANTICS 1
6819_ACEOF
6820
6821	    fi
6822
6823cat >>confdefs.h <<\_ACEOF
6824@%:@define _THREAD_SAFE 1
6825_ACEOF
6826
6827	    { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
6828echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
6829if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
6830  echo $ECHO_N "(cached) $ECHO_C" >&6
6831else
6832  ac_check_lib_save_LIBS=$LIBS
6833LIBS="-lpthread  $LIBS"
6834cat >conftest.$ac_ext <<_ACEOF
6835/* confdefs.h.  */
6836_ACEOF
6837cat confdefs.h >>conftest.$ac_ext
6838cat >>conftest.$ac_ext <<_ACEOF
6839/* end confdefs.h.  */
6840
6841/* Override any GCC internal prototype to avoid an error.
6842   Use char because int might match the return type of a GCC
6843   builtin and then its argument prototype would still apply.  */
6844#ifdef __cplusplus
6845extern "C"
6846#endif
6847char pthread_mutex_init ();
6848int
6849main ()
6850{
6851return pthread_mutex_init ();
6852  ;
6853  return 0;
6854}
6855_ACEOF
6856rm -f conftest.$ac_objext conftest$ac_exeext
6857if { (ac_try="$ac_link"
6858case "(($ac_try" in
6859  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6860  *) ac_try_echo=$ac_try;;
6861esac
6862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6863  (eval "$ac_link") 2>conftest.er1
6864  ac_status=$?
6865  grep -v '^ *+' conftest.er1 >conftest.err
6866  rm -f conftest.er1
6867  cat conftest.err >&5
6868  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6869  (exit $ac_status); } && {
6870	 test -z "$ac_c_werror_flag" ||
6871	 test ! -s conftest.err
6872       } && test -s conftest$ac_exeext &&
6873       $as_test_x conftest$ac_exeext; then
6874  ac_cv_lib_pthread_pthread_mutex_init=yes
6875else
6876  echo "$as_me: failed program was:" >&5
6877sed 's/^/| /' conftest.$ac_ext >&5
6878
6879	ac_cv_lib_pthread_pthread_mutex_init=no
6880fi
6881
6882rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6883      conftest$ac_exeext conftest.$ac_ext
6884LIBS=$ac_check_lib_save_LIBS
6885fi
6886{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
6887echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
6888if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
6889  tcl_ok=yes
6890else
6891  tcl_ok=no
6892fi
6893
6894	    if test "$tcl_ok" = "no"; then
6895		# Check a little harder for __pthread_mutex_init in the same
6896		# library, as some systems hide it there until pthread.h is
6897		# defined.  We could alternatively do an AC_TRY_COMPILE with
6898		# pthread.h, but that will work with libpthread really doesn't
6899		# exist, like AIX 4.2.  [Bug: 4359]
6900		{ echo "$as_me:$LINENO: checking for __pthread_mutex_init in -lpthread" >&5
6901echo $ECHO_N "checking for __pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
6902if test "${ac_cv_lib_pthread___pthread_mutex_init+set}" = set; then
6903  echo $ECHO_N "(cached) $ECHO_C" >&6
6904else
6905  ac_check_lib_save_LIBS=$LIBS
6906LIBS="-lpthread  $LIBS"
6907cat >conftest.$ac_ext <<_ACEOF
6908/* confdefs.h.  */
6909_ACEOF
6910cat confdefs.h >>conftest.$ac_ext
6911cat >>conftest.$ac_ext <<_ACEOF
6912/* end confdefs.h.  */
6913
6914/* Override any GCC internal prototype to avoid an error.
6915   Use char because int might match the return type of a GCC
6916   builtin and then its argument prototype would still apply.  */
6917#ifdef __cplusplus
6918extern "C"
6919#endif
6920char __pthread_mutex_init ();
6921int
6922main ()
6923{
6924return __pthread_mutex_init ();
6925  ;
6926  return 0;
6927}
6928_ACEOF
6929rm -f conftest.$ac_objext conftest$ac_exeext
6930if { (ac_try="$ac_link"
6931case "(($ac_try" in
6932  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6933  *) ac_try_echo=$ac_try;;
6934esac
6935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6936  (eval "$ac_link") 2>conftest.er1
6937  ac_status=$?
6938  grep -v '^ *+' conftest.er1 >conftest.err
6939  rm -f conftest.er1
6940  cat conftest.err >&5
6941  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6942  (exit $ac_status); } && {
6943	 test -z "$ac_c_werror_flag" ||
6944	 test ! -s conftest.err
6945       } && test -s conftest$ac_exeext &&
6946       $as_test_x conftest$ac_exeext; then
6947  ac_cv_lib_pthread___pthread_mutex_init=yes
6948else
6949  echo "$as_me: failed program was:" >&5
6950sed 's/^/| /' conftest.$ac_ext >&5
6951
6952	ac_cv_lib_pthread___pthread_mutex_init=no
6953fi
6954
6955rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6956      conftest$ac_exeext conftest.$ac_ext
6957LIBS=$ac_check_lib_save_LIBS
6958fi
6959{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_mutex_init" >&5
6960echo "${ECHO_T}$ac_cv_lib_pthread___pthread_mutex_init" >&6; }
6961if test $ac_cv_lib_pthread___pthread_mutex_init = yes; then
6962  tcl_ok=yes
6963else
6964  tcl_ok=no
6965fi
6966
6967	    fi
6968
6969	    if test "$tcl_ok" = "yes"; then
6970		# The space is needed
6971		THREADS_LIBS=" -lpthread"
6972	    else
6973		{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthreads" >&5
6974echo $ECHO_N "checking for pthread_mutex_init in -lpthreads... $ECHO_C" >&6; }
6975if test "${ac_cv_lib_pthreads_pthread_mutex_init+set}" = set; then
6976  echo $ECHO_N "(cached) $ECHO_C" >&6
6977else
6978  ac_check_lib_save_LIBS=$LIBS
6979LIBS="-lpthreads  $LIBS"
6980cat >conftest.$ac_ext <<_ACEOF
6981/* confdefs.h.  */
6982_ACEOF
6983cat confdefs.h >>conftest.$ac_ext
6984cat >>conftest.$ac_ext <<_ACEOF
6985/* end confdefs.h.  */
6986
6987/* Override any GCC internal prototype to avoid an error.
6988   Use char because int might match the return type of a GCC
6989   builtin and then its argument prototype would still apply.  */
6990#ifdef __cplusplus
6991extern "C"
6992#endif
6993char pthread_mutex_init ();
6994int
6995main ()
6996{
6997return pthread_mutex_init ();
6998  ;
6999  return 0;
7000}
7001_ACEOF
7002rm -f conftest.$ac_objext conftest$ac_exeext
7003if { (ac_try="$ac_link"
7004case "(($ac_try" in
7005  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7006  *) ac_try_echo=$ac_try;;
7007esac
7008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7009  (eval "$ac_link") 2>conftest.er1
7010  ac_status=$?
7011  grep -v '^ *+' conftest.er1 >conftest.err
7012  rm -f conftest.er1
7013  cat conftest.err >&5
7014  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7015  (exit $ac_status); } && {
7016	 test -z "$ac_c_werror_flag" ||
7017	 test ! -s conftest.err
7018       } && test -s conftest$ac_exeext &&
7019       $as_test_x conftest$ac_exeext; then
7020  ac_cv_lib_pthreads_pthread_mutex_init=yes
7021else
7022  echo "$as_me: failed program was:" >&5
7023sed 's/^/| /' conftest.$ac_ext >&5
7024
7025	ac_cv_lib_pthreads_pthread_mutex_init=no
7026fi
7027
7028rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7029      conftest$ac_exeext conftest.$ac_ext
7030LIBS=$ac_check_lib_save_LIBS
7031fi
7032{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_mutex_init" >&5
7033echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_mutex_init" >&6; }
7034if test $ac_cv_lib_pthreads_pthread_mutex_init = yes; then
7035  tcl_ok=yes
7036else
7037  tcl_ok=no
7038fi
7039
7040		if test "$tcl_ok" = "yes"; then
7041		    # The space is needed
7042		    THREADS_LIBS=" -lpthreads"
7043		else
7044		    { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lc" >&5
7045echo $ECHO_N "checking for pthread_mutex_init in -lc... $ECHO_C" >&6; }
7046if test "${ac_cv_lib_c_pthread_mutex_init+set}" = set; then
7047  echo $ECHO_N "(cached) $ECHO_C" >&6
7048else
7049  ac_check_lib_save_LIBS=$LIBS
7050LIBS="-lc  $LIBS"
7051cat >conftest.$ac_ext <<_ACEOF
7052/* confdefs.h.  */
7053_ACEOF
7054cat confdefs.h >>conftest.$ac_ext
7055cat >>conftest.$ac_ext <<_ACEOF
7056/* end confdefs.h.  */
7057
7058/* Override any GCC internal prototype to avoid an error.
7059   Use char because int might match the return type of a GCC
7060   builtin and then its argument prototype would still apply.  */
7061#ifdef __cplusplus
7062extern "C"
7063#endif
7064char pthread_mutex_init ();
7065int
7066main ()
7067{
7068return pthread_mutex_init ();
7069  ;
7070  return 0;
7071}
7072_ACEOF
7073rm -f conftest.$ac_objext conftest$ac_exeext
7074if { (ac_try="$ac_link"
7075case "(($ac_try" in
7076  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7077  *) ac_try_echo=$ac_try;;
7078esac
7079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7080  (eval "$ac_link") 2>conftest.er1
7081  ac_status=$?
7082  grep -v '^ *+' conftest.er1 >conftest.err
7083  rm -f conftest.er1
7084  cat conftest.err >&5
7085  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7086  (exit $ac_status); } && {
7087	 test -z "$ac_c_werror_flag" ||
7088	 test ! -s conftest.err
7089       } && test -s conftest$ac_exeext &&
7090       $as_test_x conftest$ac_exeext; then
7091  ac_cv_lib_c_pthread_mutex_init=yes
7092else
7093  echo "$as_me: failed program was:" >&5
7094sed 's/^/| /' conftest.$ac_ext >&5
7095
7096	ac_cv_lib_c_pthread_mutex_init=no
7097fi
7098
7099rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7100      conftest$ac_exeext conftest.$ac_ext
7101LIBS=$ac_check_lib_save_LIBS
7102fi
7103{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_pthread_mutex_init" >&5
7104echo "${ECHO_T}$ac_cv_lib_c_pthread_mutex_init" >&6; }
7105if test $ac_cv_lib_c_pthread_mutex_init = yes; then
7106  tcl_ok=yes
7107else
7108  tcl_ok=no
7109fi
7110
7111		    if test "$tcl_ok" = "no"; then
7112			{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lc_r" >&5
7113echo $ECHO_N "checking for pthread_mutex_init in -lc_r... $ECHO_C" >&6; }
7114if test "${ac_cv_lib_c_r_pthread_mutex_init+set}" = set; then
7115  echo $ECHO_N "(cached) $ECHO_C" >&6
7116else
7117  ac_check_lib_save_LIBS=$LIBS
7118LIBS="-lc_r  $LIBS"
7119cat >conftest.$ac_ext <<_ACEOF
7120/* confdefs.h.  */
7121_ACEOF
7122cat confdefs.h >>conftest.$ac_ext
7123cat >>conftest.$ac_ext <<_ACEOF
7124/* end confdefs.h.  */
7125
7126/* Override any GCC internal prototype to avoid an error.
7127   Use char because int might match the return type of a GCC
7128   builtin and then its argument prototype would still apply.  */
7129#ifdef __cplusplus
7130extern "C"
7131#endif
7132char pthread_mutex_init ();
7133int
7134main ()
7135{
7136return pthread_mutex_init ();
7137  ;
7138  return 0;
7139}
7140_ACEOF
7141rm -f conftest.$ac_objext conftest$ac_exeext
7142if { (ac_try="$ac_link"
7143case "(($ac_try" in
7144  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7145  *) ac_try_echo=$ac_try;;
7146esac
7147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7148  (eval "$ac_link") 2>conftest.er1
7149  ac_status=$?
7150  grep -v '^ *+' conftest.er1 >conftest.err
7151  rm -f conftest.er1
7152  cat conftest.err >&5
7153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7154  (exit $ac_status); } && {
7155	 test -z "$ac_c_werror_flag" ||
7156	 test ! -s conftest.err
7157       } && test -s conftest$ac_exeext &&
7158       $as_test_x conftest$ac_exeext; then
7159  ac_cv_lib_c_r_pthread_mutex_init=yes
7160else
7161  echo "$as_me: failed program was:" >&5
7162sed 's/^/| /' conftest.$ac_ext >&5
7163
7164	ac_cv_lib_c_r_pthread_mutex_init=no
7165fi
7166
7167rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7168      conftest$ac_exeext conftest.$ac_ext
7169LIBS=$ac_check_lib_save_LIBS
7170fi
7171{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_mutex_init" >&5
7172echo "${ECHO_T}$ac_cv_lib_c_r_pthread_mutex_init" >&6; }
7173if test $ac_cv_lib_c_r_pthread_mutex_init = yes; then
7174  tcl_ok=yes
7175else
7176  tcl_ok=no
7177fi
7178
7179			if test "$tcl_ok" = "yes"; then
7180			    # The space is needed
7181			    THREADS_LIBS=" -pthread"
7182			else
7183			    TCL_THREADS=0
7184			    { echo "$as_me:$LINENO: WARNING: Do not know how to find pthread lib on your system - thread support disabled" >&5
7185echo "$as_me: WARNING: Do not know how to find pthread lib on your system - thread support disabled" >&2;}
7186			fi
7187		    fi
7188		fi
7189	    fi
7190	fi
7191    else
7192	TCL_THREADS=0
7193    fi
7194    # Do checking message here to not mess up interleaved configure output
7195    { echo "$as_me:$LINENO: checking for building with threads" >&5
7196echo $ECHO_N "checking for building with threads... $ECHO_C" >&6; }
7197    if test "${TCL_THREADS}" = 1; then
7198
7199cat >>confdefs.h <<\_ACEOF
7200@%:@define TCL_THREADS 1
7201_ACEOF
7202
7203	{ echo "$as_me:$LINENO: result: yes (default)" >&5
7204echo "${ECHO_T}yes (default)" >&6; }
7205    else
7206	{ echo "$as_me:$LINENO: result: no" >&5
7207echo "${ECHO_T}no" >&6; }
7208    fi
7209    # TCL_THREADS sanity checking.  See if our request for building with
7210    # threads is the same as the way Tcl was built.  If not, warn the user.
7211    case ${TCL_DEFS} in
7212	*THREADS=1*)
7213	    if test "${TCL_THREADS}" = "0"; then
7214		{ echo "$as_me:$LINENO: WARNING:
7215    Building ${PACKAGE_NAME} without threads enabled, but building against Tcl
7216    that IS thread-enabled.  It is recommended to use --enable-threads." >&5
7217echo "$as_me: WARNING:
7218    Building ${PACKAGE_NAME} without threads enabled, but building against Tcl
7219    that IS thread-enabled.  It is recommended to use --enable-threads." >&2;}
7220	    fi
7221	    ;;
7222	*)
7223	    if test "${TCL_THREADS}" = "1"; then
7224		{ echo "$as_me:$LINENO: WARNING:
7225    --enable-threads requested, but building against a Tcl that is NOT
7226    thread-enabled.  This is an OK configuration that will also run in
7227    a thread-enabled core." >&5
7228echo "$as_me: WARNING:
7229    --enable-threads requested, but building against a Tcl that is NOT
7230    thread-enabled.  This is an OK configuration that will also run in
7231    a thread-enabled core." >&2;}
7232	    fi
7233	    ;;
7234    esac
7235
7236
7237
7238#--------------------------------------------------------------------
7239# The statement below defines a collection of symbols related to
7240# building as a shared library instead of a static library.
7241#--------------------------------------------------------------------
7242
7243
7244    { echo "$as_me:$LINENO: checking how to build libraries" >&5
7245echo $ECHO_N "checking how to build libraries... $ECHO_C" >&6; }
7246    # Check whether --enable-shared was given.
7247if test "${enable_shared+set}" = set; then
7248  enableval=$enable_shared; tcl_ok=$enableval
7249else
7250  tcl_ok=yes
7251fi
7252
7253
7254    if test "${enable_shared+set}" = set; then
7255	enableval="$enable_shared"
7256	tcl_ok=$enableval
7257    else
7258	tcl_ok=yes
7259    fi
7260
7261    if test "$tcl_ok" = "yes" ; then
7262	{ echo "$as_me:$LINENO: result: shared" >&5
7263echo "${ECHO_T}shared" >&6; }
7264	SHARED_BUILD=1
7265    else
7266	{ echo "$as_me:$LINENO: result: static" >&5
7267echo "${ECHO_T}static" >&6; }
7268	SHARED_BUILD=0
7269
7270cat >>confdefs.h <<\_ACEOF
7271@%:@define STATIC_BUILD 1
7272_ACEOF
7273
7274    fi
7275
7276
7277
7278#--------------------------------------------------------------------
7279# This macro figures out what flags to use with the compiler/linker
7280# when building shared/static debug/optimized objects.  This information
7281# can be taken from the tclConfig.sh file, but this figures it all out.
7282#--------------------------------------------------------------------
7283
7284
7285
7286
7287    # Step 0.a: Enable 64 bit support?
7288
7289    { echo "$as_me:$LINENO: checking if 64bit support is requested" >&5
7290echo $ECHO_N "checking if 64bit support is requested... $ECHO_C" >&6; }
7291    # Check whether --enable-64bit was given.
7292if test "${enable_64bit+set}" = set; then
7293  enableval=$enable_64bit; do64bit=$enableval
7294else
7295  do64bit=no
7296fi
7297
7298    { echo "$as_me:$LINENO: result: $do64bit" >&5
7299echo "${ECHO_T}$do64bit" >&6; }
7300
7301    # Step 0.b: Enable Solaris 64 bit VIS support?
7302
7303    { echo "$as_me:$LINENO: checking if 64bit Sparc VIS support is requested" >&5
7304echo $ECHO_N "checking if 64bit Sparc VIS support is requested... $ECHO_C" >&6; }
7305    # Check whether --enable-64bit-vis was given.
7306if test "${enable_64bit_vis+set}" = set; then
7307  enableval=$enable_64bit_vis; do64bitVIS=$enableval
7308else
7309  do64bitVIS=no
7310fi
7311
7312    { echo "$as_me:$LINENO: result: $do64bitVIS" >&5
7313echo "${ECHO_T}$do64bitVIS" >&6; }
7314
7315    if test "$do64bitVIS" = "yes"; then
7316	# Force 64bit on with VIS
7317	do64bit=yes
7318    fi
7319
7320    # Step 0.c: Cross-compiling options for Windows/CE builds?
7321
7322    if test "${TEA_PLATFORM}" = "windows" ; then
7323	{ echo "$as_me:$LINENO: checking if Windows/CE build is requested" >&5
7324echo $ECHO_N "checking if Windows/CE build is requested... $ECHO_C" >&6; }
7325	# Check whether --enable-wince was given.
7326if test "${enable_wince+set}" = set; then
7327  enableval=$enable_wince; doWince=$enableval
7328else
7329  doWince=no
7330fi
7331
7332	{ echo "$as_me:$LINENO: result: $doWince" >&5
7333echo "${ECHO_T}$doWince" >&6; }
7334    fi
7335
7336    # Step 1: set the variable "system" to hold the name and version number
7337    # for the system.
7338
7339
7340    { echo "$as_me:$LINENO: checking system version" >&5
7341echo $ECHO_N "checking system version... $ECHO_C" >&6; }
7342if test "${tcl_cv_sys_version+set}" = set; then
7343  echo $ECHO_N "(cached) $ECHO_C" >&6
7344else
7345
7346	if test "${TEA_PLATFORM}" = "windows" ; then
7347	    tcl_cv_sys_version=windows
7348	elif test -f /usr/lib/NextStep/software_version; then
7349	    tcl_cv_sys_version=NEXTSTEP-`awk '/3/,/3/' /usr/lib/NextStep/software_version`
7350	else
7351	    tcl_cv_sys_version=`uname -s`-`uname -r`
7352	    if test "$?" -ne 0 ; then
7353		{ echo "$as_me:$LINENO: WARNING: can't find uname command" >&5
7354echo "$as_me: WARNING: can't find uname command" >&2;}
7355		tcl_cv_sys_version=unknown
7356	    else
7357		# Special check for weird MP-RAS system (uname returns weird
7358		# results, and the version is kept in special file).
7359
7360		if test -r /etc/.relid -a "X`uname -n`" = "X`uname -s`" ; then
7361		    tcl_cv_sys_version=MP-RAS-`awk '{print $3}' /etc/.relid`
7362		fi
7363		if test "`uname -s`" = "AIX" ; then
7364		    tcl_cv_sys_version=AIX-`uname -v`.`uname -r`
7365		fi
7366	    fi
7367	fi
7368
7369fi
7370{ echo "$as_me:$LINENO: result: $tcl_cv_sys_version" >&5
7371echo "${ECHO_T}$tcl_cv_sys_version" >&6; }
7372    system=$tcl_cv_sys_version
7373
7374
7375    # Step 2: check for existence of -ldl library.  This is needed because
7376    # Linux can use either -ldl or -ldld for dynamic loading.
7377
7378    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7379echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
7380if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7381  echo $ECHO_N "(cached) $ECHO_C" >&6
7382else
7383  ac_check_lib_save_LIBS=$LIBS
7384LIBS="-ldl  $LIBS"
7385cat >conftest.$ac_ext <<_ACEOF
7386/* confdefs.h.  */
7387_ACEOF
7388cat confdefs.h >>conftest.$ac_ext
7389cat >>conftest.$ac_ext <<_ACEOF
7390/* end confdefs.h.  */
7391
7392/* Override any GCC internal prototype to avoid an error.
7393   Use char because int might match the return type of a GCC
7394   builtin and then its argument prototype would still apply.  */
7395#ifdef __cplusplus
7396extern "C"
7397#endif
7398char dlopen ();
7399int
7400main ()
7401{
7402return dlopen ();
7403  ;
7404  return 0;
7405}
7406_ACEOF
7407rm -f conftest.$ac_objext conftest$ac_exeext
7408if { (ac_try="$ac_link"
7409case "(($ac_try" in
7410  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7411  *) ac_try_echo=$ac_try;;
7412esac
7413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7414  (eval "$ac_link") 2>conftest.er1
7415  ac_status=$?
7416  grep -v '^ *+' conftest.er1 >conftest.err
7417  rm -f conftest.er1
7418  cat conftest.err >&5
7419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7420  (exit $ac_status); } && {
7421	 test -z "$ac_c_werror_flag" ||
7422	 test ! -s conftest.err
7423       } && test -s conftest$ac_exeext &&
7424       $as_test_x conftest$ac_exeext; then
7425  ac_cv_lib_dl_dlopen=yes
7426else
7427  echo "$as_me: failed program was:" >&5
7428sed 's/^/| /' conftest.$ac_ext >&5
7429
7430	ac_cv_lib_dl_dlopen=no
7431fi
7432
7433rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7434      conftest$ac_exeext conftest.$ac_ext
7435LIBS=$ac_check_lib_save_LIBS
7436fi
7437{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7438echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
7439if test $ac_cv_lib_dl_dlopen = yes; then
7440  have_dl=yes
7441else
7442  have_dl=no
7443fi
7444
7445
7446    # Require ranlib early so we can override it in special cases below.
7447
7448
7449
7450    # Step 3: set configuration options based on system name and version.
7451    # This is similar to Tcl's unix/tcl.m4 except that we've added a
7452    # "windows" case.
7453
7454    do64bit_ok=no
7455    LDFLAGS_ORIG="$LDFLAGS"
7456    # When ld needs options to work in 64-bit mode, put them in
7457    # LDFLAGS_ARCH so they eventually end up in LDFLAGS even if [load]
7458    # is disabled by the user. [Bug 1016796]
7459    LDFLAGS_ARCH=""
7460    TCL_EXPORT_FILE_SUFFIX=""
7461    UNSHARED_LIB_SUFFIX=""
7462    TCL_TRIM_DOTS='`echo ${PACKAGE_VERSION} | tr -d .`'
7463    ECHO_VERSION='`echo ${PACKAGE_VERSION}`'
7464    TCL_LIB_VERSIONS_OK=ok
7465    CFLAGS_DEBUG=-g
7466    CFLAGS_OPTIMIZE=-O
7467    if test "$GCC" = "yes" ; then
7468	CFLAGS_OPTIMIZE=-O2
7469	CFLAGS_WARNING="-Wall -Wno-implicit-int"
7470    else
7471	CFLAGS_WARNING=""
7472    fi
7473    TCL_NEEDS_EXP_FILE=0
7474    TCL_BUILD_EXP_FILE=""
7475    TCL_EXP_FILE=""
7476    # Extract the first word of "ar", so it can be a program name with args.
7477set dummy ar; ac_word=$2
7478{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7479echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7480if test "${ac_cv_prog_AR+set}" = set; then
7481  echo $ECHO_N "(cached) $ECHO_C" >&6
7482else
7483  if test -n "$AR"; then
7484  ac_cv_prog_AR="$AR" # Let the user override the test.
7485else
7486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7487for as_dir in $PATH
7488do
7489  IFS=$as_save_IFS
7490  test -z "$as_dir" && as_dir=.
7491  for ac_exec_ext in '' $ac_executable_extensions; do
7492  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7493    ac_cv_prog_AR="ar"
7494    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7495    break 2
7496  fi
7497done
7498done
7499IFS=$as_save_IFS
7500
7501fi
7502fi
7503AR=$ac_cv_prog_AR
7504if test -n "$AR"; then
7505  { echo "$as_me:$LINENO: result: $AR" >&5
7506echo "${ECHO_T}$AR" >&6; }
7507else
7508  { echo "$as_me:$LINENO: result: no" >&5
7509echo "${ECHO_T}no" >&6; }
7510fi
7511
7512
7513    STLIB_LD='${AR} cr'
7514    LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH"
7515    case $system in
7516	windows)
7517	    # This is a 2-stage check to make sure we have the 64-bit SDK
7518	    # We have to know where the SDK is installed.
7519	    # This magic is based on MS Platform SDK for Win2003 SP1 - hobbs
7520	    # MACHINE is IX86 for LINK, but this is used by the manifest,
7521	    # which requires x86|amd64|ia64.
7522	    MACHINE="X86"
7523	    if test "$do64bit" != "no" ; then
7524		if test "x${MSSDK}x" = "xx" ; then
7525		    MSSDK="C:/Progra~1/Microsoft Platform SDK"
7526		fi
7527		MSSDK=`echo "$MSSDK" | sed -e  's!\\\!/!g'`
7528		PATH64=""
7529		case "$do64bit" in
7530		    amd64|x64|yes)
7531			MACHINE="AMD64" ; # default to AMD64 64-bit build
7532			PATH64="${MSSDK}/Bin/Win64/x86/AMD64"
7533			;;
7534		    ia64)
7535			MACHINE="IA64"
7536			PATH64="${MSSDK}/Bin/Win64"
7537			;;
7538		esac
7539		if test ! -d "${PATH64}" ; then
7540		    { echo "$as_me:$LINENO: WARNING: Could not find 64-bit $MACHINE SDK to enable 64bit mode" >&5
7541echo "$as_me: WARNING: Could not find 64-bit $MACHINE SDK to enable 64bit mode" >&2;}
7542		    { echo "$as_me:$LINENO: WARNING: Ensure latest Platform SDK is installed" >&5
7543echo "$as_me: WARNING: Ensure latest Platform SDK is installed" >&2;}
7544		    do64bit="no"
7545		else
7546		    { echo "$as_me:$LINENO: result:    Using 64-bit $MACHINE mode" >&5
7547echo "${ECHO_T}   Using 64-bit $MACHINE mode" >&6; }
7548		    do64bit_ok="yes"
7549		fi
7550	    fi
7551
7552	    if test "$doWince" != "no" ; then
7553		if test "$do64bit" != "no" ; then
7554		    { { echo "$as_me:$LINENO: error: Windows/CE and 64-bit builds incompatible" >&5
7555echo "$as_me: error: Windows/CE and 64-bit builds incompatible" >&2;}
7556   { (exit 1); exit 1; }; }
7557		fi
7558		if test "$GCC" = "yes" ; then
7559		    { { echo "$as_me:$LINENO: error: Windows/CE and GCC builds incompatible" >&5
7560echo "$as_me: error: Windows/CE and GCC builds incompatible" >&2;}
7561   { (exit 1); exit 1; }; }
7562		fi
7563
7564    # First, look for one uninstalled.
7565    # the alternative search directory is invoked by --with-celib
7566
7567    if test x"${no_celib}" = x ; then
7568	# we reset no_celib in case something fails here
7569	no_celib=true
7570
7571# Check whether --with-celib was given.
7572if test "${with_celib+set}" = set; then
7573  withval=$with_celib; with_celibconfig=${withval}
7574fi
7575
7576	{ echo "$as_me:$LINENO: checking for Windows/CE celib directory" >&5
7577echo $ECHO_N "checking for Windows/CE celib directory... $ECHO_C" >&6; }
7578	if test "${ac_cv_c_celibconfig+set}" = set; then
7579  echo $ECHO_N "(cached) $ECHO_C" >&6
7580else
7581
7582	    # First check to see if --with-celibconfig was specified.
7583	    if test x"${with_celibconfig}" != x ; then
7584		if test -d "${with_celibconfig}/inc" ; then
7585		    ac_cv_c_celibconfig=`(cd ${with_celibconfig}; pwd)`
7586		else
7587		    { { echo "$as_me:$LINENO: error: ${with_celibconfig} directory doesn't contain inc directory" >&5
7588echo "$as_me: error: ${with_celibconfig} directory doesn't contain inc directory" >&2;}
7589   { (exit 1); exit 1; }; }
7590		fi
7591	    fi
7592
7593	    # then check for a celib library
7594	    if test x"${ac_cv_c_celibconfig}" = x ; then
7595		for i in \
7596			../celib-palm-3.0 \
7597			../celib \
7598			../../celib-palm-3.0 \
7599			../../celib \
7600			`ls -dr ../celib-*3.[0-9]* 2>/dev/null` \
7601			${srcdir}/../celib-palm-3.0 \
7602			${srcdir}/../celib \
7603			`ls -dr ${srcdir}/../celib-*3.[0-9]* 2>/dev/null` \
7604			; do
7605		    if test -d "$i/inc" ; then
7606			ac_cv_c_celibconfig=`(cd $i; pwd)`
7607			break
7608		    fi
7609		done
7610	    fi
7611
7612fi
7613
7614	if test x"${ac_cv_c_celibconfig}" = x ; then
7615	    { { echo "$as_me:$LINENO: error: Cannot find celib support library directory" >&5
7616echo "$as_me: error: Cannot find celib support library directory" >&2;}
7617   { (exit 1); exit 1; }; }
7618	else
7619	    no_celib=
7620	    CELIB_DIR=${ac_cv_c_celibconfig}
7621	    CELIB_DIR=`echo "$CELIB_DIR" | sed -e 's!\\\!/!g'`
7622	    { echo "$as_me:$LINENO: result: found $CELIB_DIR" >&5
7623echo "${ECHO_T}found $CELIB_DIR" >&6; }
7624	fi
7625    fi
7626
7627		# Set defaults for common evc4/PPC2003 setup
7628		# Currently Tcl requires 300+, possibly 420+ for sockets
7629		CEVERSION=420; 		# could be 211 300 301 400 420 ...
7630		TARGETCPU=ARMV4;	# could be ARMV4 ARM MIPS SH3 X86 ...
7631		ARCH=ARM;		# could be ARM MIPS X86EM ...
7632		PLATFORM="Pocket PC 2003"; # or "Pocket PC 2002"
7633		if test "$doWince" != "yes"; then
7634		    # If !yes then the user specified something
7635		    # Reset ARCH to allow user to skip specifying it
7636		    ARCH=
7637		    eval `echo $doWince | awk -F, '{ \
7638	    if (length($1)) { printf "CEVERSION=\"%s\"\n", $1; \
7639	    if ($1 < 400)   { printf "PLATFORM=\"Pocket PC 2002\"\n" } }; \
7640	    if (length($2)) { printf "TARGETCPU=\"%s\"\n", toupper($2) }; \
7641	    if (length($3)) { printf "ARCH=\"%s\"\n", toupper($3) }; \
7642	    if (length($4)) { printf "PLATFORM=\"%s\"\n", $4 }; \
7643		    }'`
7644		    if test "x${ARCH}" = "x" ; then
7645			ARCH=$TARGETCPU;
7646		    fi
7647		fi
7648		OSVERSION=WCE$CEVERSION;
7649	    	if test "x${WCEROOT}" = "x" ; then
7650			WCEROOT="C:/Program Files/Microsoft eMbedded C++ 4.0"
7651		    if test ! -d "${WCEROOT}" ; then
7652			WCEROOT="C:/Program Files/Microsoft eMbedded Tools"
7653		    fi
7654		fi
7655		if test "x${SDKROOT}" = "x" ; then
7656		    SDKROOT="C:/Program Files/Windows CE Tools"
7657		    if test ! -d "${SDKROOT}" ; then
7658			SDKROOT="C:/Windows CE Tools"
7659		    fi
7660		fi
7661		WCEROOT=`echo "$WCEROOT" | sed -e 's!\\\!/!g'`
7662		SDKROOT=`echo "$SDKROOT" | sed -e 's!\\\!/!g'`
7663		if test ! -d "${SDKROOT}/${OSVERSION}/${PLATFORM}/Lib/${TARGETCPU}" \
7664		    -o ! -d "${WCEROOT}/EVC/${OSVERSION}/bin"; then
7665		    { { echo "$as_me:$LINENO: error: could not find PocketPC SDK or target compiler to enable WinCE mode $CEVERSION,$TARGETCPU,$ARCH,$PLATFORM" >&5
7666echo "$as_me: error: could not find PocketPC SDK or target compiler to enable WinCE mode $CEVERSION,$TARGETCPU,$ARCH,$PLATFORM" >&2;}
7667   { (exit 1); exit 1; }; }
7668		    doWince="no"
7669		else
7670		    # We could PATH_NOSPACE these, but that's not important,
7671		    # as long as we quote them when used.
7672		    CEINCLUDE="${SDKROOT}/${OSVERSION}/${PLATFORM}/include"
7673		    if test -d "${CEINCLUDE}/${TARGETCPU}" ; then
7674			CEINCLUDE="${CEINCLUDE}/${TARGETCPU}"
7675		    fi
7676		    CELIBPATH="${SDKROOT}/${OSVERSION}/${PLATFORM}/Lib/${TARGETCPU}"
7677    		fi
7678	    fi
7679
7680	    if test "$GCC" != "yes" ; then
7681	        if test "${SHARED_BUILD}" = "0" ; then
7682		    runtime=-MT
7683	        else
7684		    runtime=-MD
7685	        fi
7686
7687                if test "$do64bit" != "no" ; then
7688		    # All this magic is necessary for the Win64 SDK RC1 - hobbs
7689		    CC="\"${PATH64}/cl.exe\""
7690		    CFLAGS="${CFLAGS} -I\"${MSSDK}/Include\" -I\"${MSSDK}/Include/crt\" -I\"${MSSDK}/Include/crt/sys\""
7691		    RC="\"${MSSDK}/bin/rc.exe\""
7692		    lflags="-nologo -MACHINE:${MACHINE} -LIBPATH:\"${MSSDK}/Lib/${MACHINE}\""
7693		    LINKBIN="\"${PATH64}/link.exe\""
7694		    CFLAGS_DEBUG="-nologo -Zi -Od -W3 ${runtime}d"
7695		    CFLAGS_OPTIMIZE="-nologo -O2 -W2 ${runtime}"
7696		    # Avoid 'unresolved external symbol __security_cookie'
7697		    # errors, c.f. http://support.microsoft.com/?id=894573
7698
7699    vars="bufferoverflowU.lib"
7700    for i in $vars; do
7701	if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then
7702	    # Convert foo.lib to -lfoo for GCC.  No-op if not *.lib
7703	    i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'`
7704	fi
7705	PKG_LIBS="$PKG_LIBS $i"
7706    done
7707
7708
7709		elif test "$doWince" != "no" ; then
7710		    CEBINROOT="${WCEROOT}/EVC/${OSVERSION}/bin"
7711		    if test "${TARGETCPU}" = "X86"; then
7712			CC="\"${CEBINROOT}/cl.exe\""
7713		    else
7714			CC="\"${CEBINROOT}/cl${ARCH}.exe\""
7715		    fi
7716		    CFLAGS="$CFLAGS -I\"${CELIB_DIR}/inc\" -I\"${CEINCLUDE}\""
7717		    RC="\"${WCEROOT}/Common/EVC/bin/rc.exe\""
7718		    arch=`echo ${ARCH} | awk '{print tolower($0)}'`
7719		    defs="${ARCH} _${ARCH}_ ${arch} PALM_SIZE _MT _WINDOWS"
7720		    if test "${SHARED_BUILD}" = "1" ; then
7721			# Static CE builds require static celib as well
7722		    	defs="${defs} _DLL"
7723		    fi
7724		    for i in $defs ; do
7725
7726cat >>confdefs.h <<_ACEOF
7727@%:@define $i 1
7728_ACEOF
7729
7730		    done
7731
7732cat >>confdefs.h <<_ACEOF
7733@%:@define _WIN32_WCE $CEVERSION
7734_ACEOF
7735
7736
7737cat >>confdefs.h <<_ACEOF
7738@%:@define UNDER_CE $CEVERSION
7739_ACEOF
7740
7741		    CFLAGS_DEBUG="-nologo -Zi -Od"
7742		    CFLAGS_OPTIMIZE="-nologo -Ox"
7743		    lversion=`echo ${CEVERSION} | sed -e 's/\(.\)\(..\)/\1\.\2/'`
7744		    lflags="-MACHINE:${ARCH} -LIBPATH:\"${CELIBPATH}\" -subsystem:windowsce,${lversion} -nologo"
7745		    LINKBIN="\"${CEBINROOT}/link.exe\""
7746
7747		else
7748		    RC="rc"
7749		    lflags="-nologo"
7750    		    LINKBIN="link"
7751		    CFLAGS_DEBUG="-nologo -Z7 -Od -W3 -WX ${runtime}d"
7752		    CFLAGS_OPTIMIZE="-nologo -O2 -W2 ${runtime}"
7753		fi
7754	    fi
7755
7756	    if test "$GCC" = "yes"; then
7757		# mingw gcc mode
7758		RC="windres"
7759		CFLAGS_DEBUG="-g"
7760		CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer"
7761		SHLIB_LD="$CC -shared"
7762		UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
7763		LDFLAGS_CONSOLE="-wl,--subsystem,console ${lflags}"
7764		LDFLAGS_WINDOW="-wl,--subsystem,windows ${lflags}"
7765	    else
7766		SHLIB_LD="${LINKBIN} -dll ${lflags}"
7767		# link -lib only works when -lib is the first arg
7768		STLIB_LD="${LINKBIN} -lib ${lflags}"
7769		UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.lib'
7770		PATHTYPE=-w
7771		# For information on what debugtype is most useful, see:
7772		# http://msdn.microsoft.com/library/en-us/dnvc60/html/gendepdebug.asp
7773		# This essentially turns it all on.
7774		LDFLAGS_DEBUG="-debug:full -debugtype:both -warn:2"
7775		LDFLAGS_OPTIMIZE="-release"
7776		if test "$doWince" != "no" ; then
7777		    LDFLAGS_CONSOLE="-link ${lflags}"
7778		    LDFLAGS_WINDOW=${LDFLAGS_CONSOLE}
7779		else
7780		    LDFLAGS_CONSOLE="-link -subsystem:console ${lflags}"
7781		    LDFLAGS_WINDOW="-link -subsystem:windows ${lflags}"
7782		fi
7783	    fi
7784
7785	    SHLIB_LD_LIBS='${LIBS}'
7786	    SHLIB_SUFFIX=".dll"
7787	    SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.dll'
7788
7789	    TCL_LIB_VERSIONS_OK=nodots
7790	    # Bogus to avoid getting this turned off
7791	    DL_OBJS="tclLoadNone.obj"
7792    	    ;;
7793	AIX-*)
7794	    if test "${TCL_THREADS}" = "1" -a "$GCC" != "yes" ; then
7795		# AIX requires the _r compiler when gcc isn't being used
7796		case "${CC}" in
7797		    *_r)
7798			# ok ...
7799			;;
7800		    *)
7801			CC=${CC}_r
7802			;;
7803		esac
7804		{ echo "$as_me:$LINENO: result: Using $CC for compiling with threads" >&5
7805echo "${ECHO_T}Using $CC for compiling with threads" >&6; }
7806	    fi
7807	    LIBS="$LIBS -lc"
7808	    SHLIB_CFLAGS=""
7809	    SHLIB_LD_LIBS='${LIBS}'
7810	    SHLIB_SUFFIX=".so"
7811
7812	    DL_OBJS="tclLoadDl.o"
7813	    LD_LIBRARY_PATH_VAR="LIBPATH"
7814
7815	    # Check to enable 64-bit flags for compiler/linker on AIX 4+
7816	    if test "$do64bit" = "yes" -a "`uname -v`" -gt "3" ; then
7817		if test "$GCC" = "yes" ; then
7818		    { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5
7819echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;}
7820		else
7821		    do64bit_ok=yes
7822		    CFLAGS="$CFLAGS -q64"
7823		    LDFLAGS_ARCH="-q64"
7824		    RANLIB="${RANLIB} -X64"
7825		    AR="${AR} -X64"
7826		    SHLIB_LD_FLAGS="-b64"
7827		fi
7828	    fi
7829
7830	    if test "`uname -m`" = "ia64" ; then
7831		# AIX-5 uses ELF style dynamic libraries on IA-64, but not PPC
7832		SHLIB_LD="/usr/ccs/bin/ld -G -z text"
7833		# AIX-5 has dl* in libc.so
7834		DL_LIBS=""
7835		if test "$GCC" = "yes" ; then
7836		    CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
7837		else
7838		    CC_SEARCH_FLAGS='-R${LIB_RUNTIME_DIR}'
7839		fi
7840		LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
7841	    else
7842		if test "$GCC" = "yes" ; then
7843		    SHLIB_LD="gcc -shared"
7844		else
7845		    SHLIB_LD="/bin/ld -bhalt:4 -bM:SRE -bE:lib.exp -H512 -T512 -bnoentry"
7846		fi
7847		SHLIB_LD="${TCL_SRC_DIR}/unix/ldAix ${SHLIB_LD} ${SHLIB_LD_FLAGS}"
7848		DL_LIBS="-ldl"
7849		CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
7850		LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
7851		TCL_NEEDS_EXP_FILE=1
7852		TCL_EXPORT_FILE_SUFFIX='${PACKAGE_VERSION}.exp'
7853	    fi
7854
7855	    # AIX v<=4.1 has some different flags than 4.2+
7856	    if test "$system" = "AIX-4.1" -o "`uname -v`" -lt "4" ; then
7857		case " $LIB@&t@OBJS " in
7858  *" tclLoadAix.$ac_objext "* ) ;;
7859  *) LIB@&t@OBJS="$LIB@&t@OBJS tclLoadAix.$ac_objext"
7860 ;;
7861esac
7862
7863		DL_LIBS="-lld"
7864	    fi
7865
7866	    # On AIX <=v4 systems, libbsd.a has to be linked in to support
7867	    # non-blocking file IO.  This library has to be linked in after
7868	    # the MATH_LIBS or it breaks the pow() function.  The way to
7869	    # insure proper sequencing, is to add it to the tail of MATH_LIBS.
7870	    # This library also supplies gettimeofday.
7871	    #
7872	    # AIX does not have a timezone field in struct tm. When the AIX
7873	    # bsd library is used, the timezone global and the gettimeofday
7874	    # methods are to be avoided for timezone deduction instead, we
7875	    # deduce the timezone by comparing the localtime result on a
7876	    # known GMT value.
7877
7878	    { echo "$as_me:$LINENO: checking for gettimeofday in -lbsd" >&5
7879echo $ECHO_N "checking for gettimeofday in -lbsd... $ECHO_C" >&6; }
7880if test "${ac_cv_lib_bsd_gettimeofday+set}" = set; then
7881  echo $ECHO_N "(cached) $ECHO_C" >&6
7882else
7883  ac_check_lib_save_LIBS=$LIBS
7884LIBS="-lbsd  $LIBS"
7885cat >conftest.$ac_ext <<_ACEOF
7886/* confdefs.h.  */
7887_ACEOF
7888cat confdefs.h >>conftest.$ac_ext
7889cat >>conftest.$ac_ext <<_ACEOF
7890/* end confdefs.h.  */
7891
7892/* Override any GCC internal prototype to avoid an error.
7893   Use char because int might match the return type of a GCC
7894   builtin and then its argument prototype would still apply.  */
7895#ifdef __cplusplus
7896extern "C"
7897#endif
7898char gettimeofday ();
7899int
7900main ()
7901{
7902return gettimeofday ();
7903  ;
7904  return 0;
7905}
7906_ACEOF
7907rm -f conftest.$ac_objext conftest$ac_exeext
7908if { (ac_try="$ac_link"
7909case "(($ac_try" in
7910  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7911  *) ac_try_echo=$ac_try;;
7912esac
7913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7914  (eval "$ac_link") 2>conftest.er1
7915  ac_status=$?
7916  grep -v '^ *+' conftest.er1 >conftest.err
7917  rm -f conftest.er1
7918  cat conftest.err >&5
7919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7920  (exit $ac_status); } && {
7921	 test -z "$ac_c_werror_flag" ||
7922	 test ! -s conftest.err
7923       } && test -s conftest$ac_exeext &&
7924       $as_test_x conftest$ac_exeext; then
7925  ac_cv_lib_bsd_gettimeofday=yes
7926else
7927  echo "$as_me: failed program was:" >&5
7928sed 's/^/| /' conftest.$ac_ext >&5
7929
7930	ac_cv_lib_bsd_gettimeofday=no
7931fi
7932
7933rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7934      conftest$ac_exeext conftest.$ac_ext
7935LIBS=$ac_check_lib_save_LIBS
7936fi
7937{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gettimeofday" >&5
7938echo "${ECHO_T}$ac_cv_lib_bsd_gettimeofday" >&6; }
7939if test $ac_cv_lib_bsd_gettimeofday = yes; then
7940  libbsd=yes
7941else
7942  libbsd=no
7943fi
7944
7945	    if test $libbsd = yes; then
7946	    	MATH_LIBS="$MATH_LIBS -lbsd"
7947
7948cat >>confdefs.h <<\_ACEOF
7949@%:@define USE_DELTA_FOR_TZ 1
7950_ACEOF
7951
7952	    fi
7953	    ;;
7954	BeOS*)
7955	    SHLIB_CFLAGS="-fPIC"
7956	    SHLIB_LD="${CC} -nostart"
7957	    SHLIB_LD_LIBS='${LIBS}'
7958	    SHLIB_SUFFIX=".so"
7959	    DL_OBJS="tclLoadDl.o"
7960	    DL_LIBS="-ldl"
7961
7962	    #-----------------------------------------------------------
7963	    # Check for inet_ntoa in -lbind, for BeOS (which also needs
7964	    # -lsocket, even if the network functions are in -lnet which
7965	    # is always linked to, for compatibility.
7966	    #-----------------------------------------------------------
7967	    { echo "$as_me:$LINENO: checking for inet_ntoa in -lbind" >&5
7968echo $ECHO_N "checking for inet_ntoa in -lbind... $ECHO_C" >&6; }
7969if test "${ac_cv_lib_bind_inet_ntoa+set}" = set; then
7970  echo $ECHO_N "(cached) $ECHO_C" >&6
7971else
7972  ac_check_lib_save_LIBS=$LIBS
7973LIBS="-lbind  $LIBS"
7974cat >conftest.$ac_ext <<_ACEOF
7975/* confdefs.h.  */
7976_ACEOF
7977cat confdefs.h >>conftest.$ac_ext
7978cat >>conftest.$ac_ext <<_ACEOF
7979/* end confdefs.h.  */
7980
7981/* Override any GCC internal prototype to avoid an error.
7982   Use char because int might match the return type of a GCC
7983   builtin and then its argument prototype would still apply.  */
7984#ifdef __cplusplus
7985extern "C"
7986#endif
7987char inet_ntoa ();
7988int
7989main ()
7990{
7991return inet_ntoa ();
7992  ;
7993  return 0;
7994}
7995_ACEOF
7996rm -f conftest.$ac_objext conftest$ac_exeext
7997if { (ac_try="$ac_link"
7998case "(($ac_try" in
7999  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8000  *) ac_try_echo=$ac_try;;
8001esac
8002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8003  (eval "$ac_link") 2>conftest.er1
8004  ac_status=$?
8005  grep -v '^ *+' conftest.er1 >conftest.err
8006  rm -f conftest.er1
8007  cat conftest.err >&5
8008  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8009  (exit $ac_status); } && {
8010	 test -z "$ac_c_werror_flag" ||
8011	 test ! -s conftest.err
8012       } && test -s conftest$ac_exeext &&
8013       $as_test_x conftest$ac_exeext; then
8014  ac_cv_lib_bind_inet_ntoa=yes
8015else
8016  echo "$as_me: failed program was:" >&5
8017sed 's/^/| /' conftest.$ac_ext >&5
8018
8019	ac_cv_lib_bind_inet_ntoa=no
8020fi
8021
8022rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8023      conftest$ac_exeext conftest.$ac_ext
8024LIBS=$ac_check_lib_save_LIBS
8025fi
8026{ echo "$as_me:$LINENO: result: $ac_cv_lib_bind_inet_ntoa" >&5
8027echo "${ECHO_T}$ac_cv_lib_bind_inet_ntoa" >&6; }
8028if test $ac_cv_lib_bind_inet_ntoa = yes; then
8029  LIBS="$LIBS -lbind -lsocket"
8030fi
8031
8032	    ;;
8033	BSD/OS-2.1*|BSD/OS-3*)
8034	    SHLIB_CFLAGS=""
8035	    SHLIB_LD="shlicc -r"
8036	    SHLIB_LD_LIBS='${LIBS}'
8037	    SHLIB_SUFFIX=".so"
8038	    DL_OBJS="tclLoadDl.o"
8039	    DL_LIBS="-ldl"
8040	    CC_SEARCH_FLAGS=""
8041	    LD_SEARCH_FLAGS=""
8042	    ;;
8043	BSD/OS-4.*)
8044	    SHLIB_CFLAGS="-export-dynamic -fPIC"
8045	    SHLIB_LD="cc -shared"
8046	    SHLIB_LD_LIBS='${LIBS}'
8047	    SHLIB_SUFFIX=".so"
8048	    DL_OBJS="tclLoadDl.o"
8049	    DL_LIBS="-ldl"
8050	    LDFLAGS="$LDFLAGS -export-dynamic"
8051	    CC_SEARCH_FLAGS=""
8052	    LD_SEARCH_FLAGS=""
8053	    ;;
8054	dgux*)
8055	    SHLIB_CFLAGS="-K PIC"
8056	    SHLIB_LD="cc -G"
8057	    SHLIB_LD_LIBS=""
8058	    SHLIB_SUFFIX=".so"
8059	    DL_OBJS="tclLoadDl.o"
8060	    DL_LIBS="-ldl"
8061	    CC_SEARCH_FLAGS=""
8062	    LD_SEARCH_FLAGS=""
8063	    ;;
8064	HP-UX-*.11.*)
8065	    # Use updated header definitions where possible
8066
8067cat >>confdefs.h <<\_ACEOF
8068@%:@define _XOPEN_SOURCE_EXTENDED 1
8069_ACEOF
8070
8071	    # Needed by Tcl, but not most extensions
8072	    #AC_DEFINE(_XOPEN_SOURCE, 1, [Do we want to use the XOPEN network library?])
8073	    #LIBS="$LIBS -lxnet"               # Use the XOPEN network library
8074
8075	    if test "`uname -m`" = "ia64" ; then
8076		SHLIB_SUFFIX=".so"
8077	    else
8078		SHLIB_SUFFIX=".sl"
8079	    fi
8080	    { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8081echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
8082if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8083  echo $ECHO_N "(cached) $ECHO_C" >&6
8084else
8085  ac_check_lib_save_LIBS=$LIBS
8086LIBS="-ldld  $LIBS"
8087cat >conftest.$ac_ext <<_ACEOF
8088/* confdefs.h.  */
8089_ACEOF
8090cat confdefs.h >>conftest.$ac_ext
8091cat >>conftest.$ac_ext <<_ACEOF
8092/* end confdefs.h.  */
8093
8094/* Override any GCC internal prototype to avoid an error.
8095   Use char because int might match the return type of a GCC
8096   builtin and then its argument prototype would still apply.  */
8097#ifdef __cplusplus
8098extern "C"
8099#endif
8100char shl_load ();
8101int
8102main ()
8103{
8104return shl_load ();
8105  ;
8106  return 0;
8107}
8108_ACEOF
8109rm -f conftest.$ac_objext conftest$ac_exeext
8110if { (ac_try="$ac_link"
8111case "(($ac_try" in
8112  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8113  *) ac_try_echo=$ac_try;;
8114esac
8115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8116  (eval "$ac_link") 2>conftest.er1
8117  ac_status=$?
8118  grep -v '^ *+' conftest.er1 >conftest.err
8119  rm -f conftest.er1
8120  cat conftest.err >&5
8121  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8122  (exit $ac_status); } && {
8123	 test -z "$ac_c_werror_flag" ||
8124	 test ! -s conftest.err
8125       } && test -s conftest$ac_exeext &&
8126       $as_test_x conftest$ac_exeext; then
8127  ac_cv_lib_dld_shl_load=yes
8128else
8129  echo "$as_me: failed program was:" >&5
8130sed 's/^/| /' conftest.$ac_ext >&5
8131
8132	ac_cv_lib_dld_shl_load=no
8133fi
8134
8135rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8136      conftest$ac_exeext conftest.$ac_ext
8137LIBS=$ac_check_lib_save_LIBS
8138fi
8139{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8140echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
8141if test $ac_cv_lib_dld_shl_load = yes; then
8142  tcl_ok=yes
8143else
8144  tcl_ok=no
8145fi
8146
8147	    if test "$tcl_ok" = yes; then
8148		SHLIB_CFLAGS="+z"
8149		SHLIB_LD="ld -b"
8150		SHLIB_LD_LIBS='${LIBS}'
8151		DL_OBJS="tclLoadShl.o"
8152		DL_LIBS="-ldld"
8153		LDFLAGS="$LDFLAGS -Wl,-E"
8154		CC_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.'
8155		LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:.'
8156		LD_LIBRARY_PATH_VAR="SHLIB_PATH"
8157	    fi
8158	    if test "$GCC" = "yes" ; then
8159		SHLIB_LD="gcc -shared"
8160		SHLIB_LD_LIBS='${LIBS}'
8161		LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
8162	    fi
8163
8164	    # Users may want PA-RISC 1.1/2.0 portable code - needs HP cc
8165	    #CFLAGS="$CFLAGS +DAportable"
8166
8167	    # Check to enable 64-bit flags for compiler/linker
8168	    if test "$do64bit" = "yes" ; then
8169		if test "$GCC" = "yes" ; then
8170		    hpux_arch=`${CC} -dumpmachine`
8171		    case $hpux_arch in
8172			hppa64*)
8173			    # 64-bit gcc in use.  Fix flags for GNU ld.
8174			    do64bit_ok=yes
8175			    SHLIB_LD="${CC} -shared"
8176			    SHLIB_LD_LIBS='${LIBS}'
8177			    CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
8178			    LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
8179			    ;;
8180			*)
8181			    { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5
8182echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;}
8183			    ;;
8184		    esac
8185		else
8186		    do64bit_ok=yes
8187		    CFLAGS="$CFLAGS +DD64"
8188		    LDFLAGS_ARCH="+DD64"
8189		fi
8190	    fi
8191	    ;;
8192	HP-UX-*.08.*|HP-UX-*.09.*|HP-UX-*.10.*)
8193	    SHLIB_SUFFIX=".sl"
8194	    { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8195echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
8196if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8197  echo $ECHO_N "(cached) $ECHO_C" >&6
8198else
8199  ac_check_lib_save_LIBS=$LIBS
8200LIBS="-ldld  $LIBS"
8201cat >conftest.$ac_ext <<_ACEOF
8202/* confdefs.h.  */
8203_ACEOF
8204cat confdefs.h >>conftest.$ac_ext
8205cat >>conftest.$ac_ext <<_ACEOF
8206/* end confdefs.h.  */
8207
8208/* Override any GCC internal prototype to avoid an error.
8209   Use char because int might match the return type of a GCC
8210   builtin and then its argument prototype would still apply.  */
8211#ifdef __cplusplus
8212extern "C"
8213#endif
8214char shl_load ();
8215int
8216main ()
8217{
8218return shl_load ();
8219  ;
8220  return 0;
8221}
8222_ACEOF
8223rm -f conftest.$ac_objext conftest$ac_exeext
8224if { (ac_try="$ac_link"
8225case "(($ac_try" in
8226  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8227  *) ac_try_echo=$ac_try;;
8228esac
8229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8230  (eval "$ac_link") 2>conftest.er1
8231  ac_status=$?
8232  grep -v '^ *+' conftest.er1 >conftest.err
8233  rm -f conftest.er1
8234  cat conftest.err >&5
8235  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8236  (exit $ac_status); } && {
8237	 test -z "$ac_c_werror_flag" ||
8238	 test ! -s conftest.err
8239       } && test -s conftest$ac_exeext &&
8240       $as_test_x conftest$ac_exeext; then
8241  ac_cv_lib_dld_shl_load=yes
8242else
8243  echo "$as_me: failed program was:" >&5
8244sed 's/^/| /' conftest.$ac_ext >&5
8245
8246	ac_cv_lib_dld_shl_load=no
8247fi
8248
8249rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8250      conftest$ac_exeext conftest.$ac_ext
8251LIBS=$ac_check_lib_save_LIBS
8252fi
8253{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8254echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
8255if test $ac_cv_lib_dld_shl_load = yes; then
8256  tcl_ok=yes
8257else
8258  tcl_ok=no
8259fi
8260
8261	    if test "$tcl_ok" = yes; then
8262		SHLIB_CFLAGS="+z"
8263		SHLIB_LD="ld -b"
8264		SHLIB_LD_LIBS=""
8265		DL_OBJS="tclLoadShl.o"
8266		DL_LIBS="-ldld"
8267		LDFLAGS="$LDFLAGS -Wl,-E"
8268		CC_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.'
8269		LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:.'
8270		LD_LIBRARY_PATH_VAR="SHLIB_PATH"
8271	    fi
8272	    ;;
8273	IRIX-5.*)
8274	    SHLIB_CFLAGS=""
8275	    SHLIB_LD="ld -shared -rdata_shared"
8276	    SHLIB_LD_LIBS='${LIBS}'
8277	    SHLIB_SUFFIX=".so"
8278	    DL_OBJS="tclLoadDl.o"
8279	    DL_LIBS=""
8280	    CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
8281	    LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
8282	    ;;
8283	IRIX-6.*)
8284	    SHLIB_CFLAGS=""
8285	    SHLIB_LD="ld -n32 -shared -rdata_shared"
8286	    SHLIB_LD_LIBS='${LIBS}'
8287	    SHLIB_SUFFIX=".so"
8288	    DL_OBJS="tclLoadDl.o"
8289	    DL_LIBS=""
8290	    CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
8291	    LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
8292	    if test "$GCC" = "yes" ; then
8293		CFLAGS="$CFLAGS -mabi=n32"
8294		LDFLAGS="$LDFLAGS -mabi=n32"
8295	    else
8296		case $system in
8297		    IRIX-6.3)
8298			# Use to build 6.2 compatible binaries on 6.3.
8299			CFLAGS="$CFLAGS -n32 -D_OLD_TERMIOS"
8300			;;
8301		    *)
8302			CFLAGS="$CFLAGS -n32"
8303			;;
8304		esac
8305		LDFLAGS="$LDFLAGS -n32"
8306	    fi
8307	    ;;
8308	IRIX64-6.*)
8309	    SHLIB_CFLAGS=""
8310	    SHLIB_LD="ld -n32 -shared -rdata_shared"
8311	    SHLIB_LD_LIBS='${LIBS}'
8312	    SHLIB_SUFFIX=".so"
8313	    DL_OBJS="tclLoadDl.o"
8314	    DL_LIBS=""
8315	    CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
8316	    LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
8317
8318	    # Check to enable 64-bit flags for compiler/linker
8319
8320	    if test "$do64bit" = "yes" ; then
8321	        if test "$GCC" = "yes" ; then
8322	            { echo "$as_me:$LINENO: WARNING: 64bit mode not supported by gcc" >&5
8323echo "$as_me: WARNING: 64bit mode not supported by gcc" >&2;}
8324	        else
8325	            do64bit_ok=yes
8326	            SHLIB_LD="ld -64 -shared -rdata_shared"
8327	            CFLAGS="$CFLAGS -64"
8328	            LDFLAGS_ARCH="-64"
8329	        fi
8330	    fi
8331	    ;;
8332	Linux*)
8333	    SHLIB_CFLAGS="-fPIC"
8334	    SHLIB_LD_LIBS='${LIBS}'
8335	    SHLIB_SUFFIX=".so"
8336
8337	    CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer"
8338	    # egcs-2.91.66 on Redhat Linux 6.0 generates lots of warnings
8339	    # when you inline the string and math operations.  Turn this off to
8340	    # get rid of the warnings.
8341	    #CFLAGS_OPTIMIZE="${CFLAGS_OPTIMIZE} -D__NO_STRING_INLINES -D__NO_MATH_INLINES"
8342
8343	    # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS here:
8344	    SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS_DEFAULT}'
8345	    DL_OBJS="tclLoadDl.o"
8346	    DL_LIBS="-ldl"
8347	    LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
8348	    CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
8349	    LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
8350	    if test "`uname -m`" = "alpha" ; then
8351		CFLAGS="$CFLAGS -mieee"
8352	    fi
8353	    if test $do64bit = yes; then
8354		{ echo "$as_me:$LINENO: checking if compiler accepts -m64 flag" >&5
8355echo $ECHO_N "checking if compiler accepts -m64 flag... $ECHO_C" >&6; }
8356if test "${tcl_cv_cc_m64+set}" = set; then
8357  echo $ECHO_N "(cached) $ECHO_C" >&6
8358else
8359
8360		    hold_cflags=$CFLAGS
8361		    CFLAGS="$CFLAGS -m64"
8362		    cat >conftest.$ac_ext <<_ACEOF
8363/* confdefs.h.  */
8364_ACEOF
8365cat confdefs.h >>conftest.$ac_ext
8366cat >>conftest.$ac_ext <<_ACEOF
8367/* end confdefs.h.  */
8368
8369int
8370main ()
8371{
8372
8373  ;
8374  return 0;
8375}
8376_ACEOF
8377rm -f conftest.$ac_objext conftest$ac_exeext
8378if { (ac_try="$ac_link"
8379case "(($ac_try" in
8380  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8381  *) ac_try_echo=$ac_try;;
8382esac
8383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8384  (eval "$ac_link") 2>conftest.er1
8385  ac_status=$?
8386  grep -v '^ *+' conftest.er1 >conftest.err
8387  rm -f conftest.er1
8388  cat conftest.err >&5
8389  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8390  (exit $ac_status); } && {
8391	 test -z "$ac_c_werror_flag" ||
8392	 test ! -s conftest.err
8393       } && test -s conftest$ac_exeext &&
8394       $as_test_x conftest$ac_exeext; then
8395  tcl_cv_cc_m64=yes
8396else
8397  echo "$as_me: failed program was:" >&5
8398sed 's/^/| /' conftest.$ac_ext >&5
8399
8400	tcl_cv_cc_m64=no
8401fi
8402
8403rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8404      conftest$ac_exeext conftest.$ac_ext
8405		    CFLAGS=$hold_cflags
8406fi
8407{ echo "$as_me:$LINENO: result: $tcl_cv_cc_m64" >&5
8408echo "${ECHO_T}$tcl_cv_cc_m64" >&6; }
8409		if test $tcl_cv_cc_m64 = yes; then
8410		    CFLAGS="$CFLAGS -m64"
8411		    do64bit_ok=yes
8412		fi
8413	    fi
8414
8415	    # The combo of gcc + glibc has a bug related
8416	    # to inlining of functions like strtod(). The
8417	    # -fno-builtin flag should address this problem
8418	    # but it does not work. The -fno-inline flag
8419	    # is kind of overkill but it works.
8420	    # Disable inlining only when one of the
8421	    # files in compat/*.c is being linked in.
8422	    if test x"${USE_COMPAT}" != x ; then
8423	        CFLAGS="$CFLAGS -fno-inline"
8424	    fi
8425
8426	    ;;
8427	GNU*)
8428	    SHLIB_CFLAGS="-fPIC"
8429	    SHLIB_LD_LIBS='${LIBS}'
8430	    SHLIB_SUFFIX=".so"
8431
8432	    SHLIB_LD="${CC} -shared"
8433	    DL_OBJS=""
8434	    DL_LIBS="-ldl"
8435	    LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
8436	    CC_SEARCH_FLAGS=""
8437	    LD_SEARCH_FLAGS=""
8438	    if test "`uname -m`" = "alpha" ; then
8439		CFLAGS="$CFLAGS -mieee"
8440	    fi
8441	    ;;
8442	Lynx*)
8443	    SHLIB_CFLAGS="-fPIC"
8444	    SHLIB_LD_LIBS='${LIBS}'
8445	    SHLIB_SUFFIX=".so"
8446	    CFLAGS_OPTIMIZE=-02
8447	    SHLIB_LD="${CC} -shared "
8448	    DL_OBJS="tclLoadDl.o"
8449	    DL_LIBS="-mshared -ldl"
8450	    LD_FLAGS="-Wl,--export-dynamic"
8451	    CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
8452	    LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
8453	    ;;
8454	MP-RAS-02*)
8455	    SHLIB_CFLAGS="-K PIC"
8456	    SHLIB_LD="cc -G"
8457	    SHLIB_LD_LIBS=""
8458	    SHLIB_SUFFIX=".so"
8459	    DL_OBJS="tclLoadDl.o"
8460	    DL_LIBS="-ldl"
8461	    CC_SEARCH_FLAGS=""
8462	    LD_SEARCH_FLAGS=""
8463	    ;;
8464	MP-RAS-*)
8465	    SHLIB_CFLAGS="-K PIC"
8466	    SHLIB_LD="cc -G"
8467	    SHLIB_LD_LIBS=""
8468	    SHLIB_SUFFIX=".so"
8469	    DL_OBJS="tclLoadDl.o"
8470	    DL_LIBS="-ldl"
8471	    LDFLAGS="$LDFLAGS -Wl,-Bexport"
8472	    CC_SEARCH_FLAGS=""
8473	    LD_SEARCH_FLAGS=""
8474	    ;;
8475	NetBSD-*|FreeBSD-[1-2].*)
8476	    # NetBSD/SPARC needs -fPIC, -fpic will not do.
8477	    SHLIB_CFLAGS="-fPIC"
8478	    SHLIB_LD="ld -Bshareable -x"
8479	    SHLIB_LD_LIBS='${LIBS}'
8480	    SHLIB_SUFFIX=".so"
8481	    DL_OBJS="tclLoadDl.o"
8482	    DL_LIBS=""
8483	    CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
8484	    LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
8485	    { echo "$as_me:$LINENO: checking for ELF" >&5
8486echo $ECHO_N "checking for ELF... $ECHO_C" >&6; }
8487if test "${tcl_cv_ld_elf+set}" = set; then
8488  echo $ECHO_N "(cached) $ECHO_C" >&6
8489else
8490
8491		cat >conftest.$ac_ext <<_ACEOF
8492/* confdefs.h.  */
8493_ACEOF
8494cat confdefs.h >>conftest.$ac_ext
8495cat >>conftest.$ac_ext <<_ACEOF
8496/* end confdefs.h.  */
8497
8498#ifdef __ELF__
8499	yes
8500#endif
8501
8502_ACEOF
8503if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8504  $EGREP "yes" >/dev/null 2>&1; then
8505  tcl_cv_ld_elf=yes
8506else
8507  tcl_cv_ld_elf=no
8508fi
8509rm -f conftest*
8510
8511fi
8512{ echo "$as_me:$LINENO: result: $tcl_cv_ld_elf" >&5
8513echo "${ECHO_T}$tcl_cv_ld_elf" >&6; }
8514	    if test $tcl_cv_ld_elf = yes; then
8515		SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so'
8516	    else
8517		SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so.1.0'
8518	    fi
8519
8520	    # Ancient FreeBSD doesn't handle version numbers with dots.
8521
8522	    UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
8523	    TCL_LIB_VERSIONS_OK=nodots
8524	    ;;
8525	OpenBSD-*)
8526	    # OpenBSD/SPARC[64] needs -fPIC, -fpic will not do.
8527	    case `machine` in
8528	    sparc|sparc64)
8529		SHLIB_CFLAGS="-fPIC";;
8530	    *)
8531		SHLIB_CFLAGS="-fpic";;
8532	    esac
8533	    SHLIB_LD="${CC} -shared ${SHLIB_CFLAGS}"
8534	    SHLIB_LD_LIBS='${LIBS}'
8535	    SHLIB_SUFFIX=".so"
8536	    DL_OBJS="tclLoadDl.o"
8537	    DL_LIBS=""
8538	    CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
8539	    LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
8540	    SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so.1.0'
8541	    { echo "$as_me:$LINENO: checking for ELF" >&5
8542echo $ECHO_N "checking for ELF... $ECHO_C" >&6; }
8543if test "${tcl_cv_ld_elf+set}" = set; then
8544  echo $ECHO_N "(cached) $ECHO_C" >&6
8545else
8546
8547		cat >conftest.$ac_ext <<_ACEOF
8548/* confdefs.h.  */
8549_ACEOF
8550cat confdefs.h >>conftest.$ac_ext
8551cat >>conftest.$ac_ext <<_ACEOF
8552/* end confdefs.h.  */
8553
8554#ifdef __ELF__
8555	yes
8556#endif
8557
8558_ACEOF
8559if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8560  $EGREP "yes" >/dev/null 2>&1; then
8561  tcl_cv_ld_elf=yes
8562else
8563  tcl_cv_ld_elf=no
8564fi
8565rm -f conftest*
8566
8567fi
8568{ echo "$as_me:$LINENO: result: $tcl_cv_ld_elf" >&5
8569echo "${ECHO_T}$tcl_cv_ld_elf" >&6; }
8570	    if test $tcl_cv_ld_elf = yes; then
8571		LDFLAGS=-Wl,-export-dynamic
8572	    else
8573		LDFLAGS=""
8574	    fi
8575
8576	    # OpenBSD doesn't do version numbers with dots.
8577	    UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
8578	    TCL_LIB_VERSIONS_OK=nodots
8579	    ;;
8580	FreeBSD-*)
8581	    # FreeBSD 3.* and greater have ELF.
8582	    SHLIB_CFLAGS="-fPIC"
8583	    SHLIB_LD="ld -Bshareable -x"
8584	    SHLIB_LD_LIBS='${LIBS}'
8585	    SHLIB_SUFFIX=".so"
8586	    DL_OBJS="tclLoadDl.o"
8587	    DL_LIBS=""
8588	    LDFLAGS="$LDFLAGS -export-dynamic"
8589	    CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
8590	    LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
8591	    if test "${TCL_THREADS}" = "1" ; then
8592		# The -pthread needs to go in the CFLAGS, not LIBS
8593		LIBS=`echo $LIBS | sed s/-pthread//`
8594		CFLAGS="$CFLAGS -pthread"
8595	    	LDFLAGS="$LDFLAGS -pthread"
8596	    fi
8597	    case $system in
8598	    FreeBSD-3.*)
8599	    	# FreeBSD-3 doesn't handle version numbers with dots.
8600	    	UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
8601	    	SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so'
8602	    	TCL_LIB_VERSIONS_OK=nodots
8603		;;
8604	    esac
8605	    ;;
8606	Darwin-*)
8607	    CFLAGS_OPTIMIZE="-Os"
8608	    SHLIB_CFLAGS="-fno-common"
8609	    # To avoid discrepancies between what headers configure sees during
8610	    # preprocessing tests and compiling tests, move any -isysroot and
8611	    # -mmacosx-version-min flags from CFLAGS to CPPFLAGS:
8612	    CPPFLAGS="${CPPFLAGS} `echo " ${CFLAGS}" | \
8613		awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \
8614		if ($i~/^(isysroot|mmacosx-version-min)/) print "-"$i}'`"
8615	    CFLAGS="`echo " ${CFLAGS}" | \
8616		awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \
8617		if (!($i~/^(isysroot|mmacosx-version-min)/)) print "-"$i}'`"
8618	    if test $do64bit = yes; then
8619		case `arch` in
8620		    ppc)
8621			{ echo "$as_me:$LINENO: checking if compiler accepts -arch ppc64 flag" >&5
8622echo $ECHO_N "checking if compiler accepts -arch ppc64 flag... $ECHO_C" >&6; }
8623if test "${tcl_cv_cc_arch_ppc64+set}" = set; then
8624  echo $ECHO_N "(cached) $ECHO_C" >&6
8625else
8626
8627			    hold_cflags=$CFLAGS
8628			    CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5"
8629			    cat >conftest.$ac_ext <<_ACEOF
8630/* confdefs.h.  */
8631_ACEOF
8632cat confdefs.h >>conftest.$ac_ext
8633cat >>conftest.$ac_ext <<_ACEOF
8634/* end confdefs.h.  */
8635
8636int
8637main ()
8638{
8639
8640  ;
8641  return 0;
8642}
8643_ACEOF
8644rm -f conftest.$ac_objext conftest$ac_exeext
8645if { (ac_try="$ac_link"
8646case "(($ac_try" in
8647  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8648  *) ac_try_echo=$ac_try;;
8649esac
8650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8651  (eval "$ac_link") 2>conftest.er1
8652  ac_status=$?
8653  grep -v '^ *+' conftest.er1 >conftest.err
8654  rm -f conftest.er1
8655  cat conftest.err >&5
8656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8657  (exit $ac_status); } && {
8658	 test -z "$ac_c_werror_flag" ||
8659	 test ! -s conftest.err
8660       } && test -s conftest$ac_exeext &&
8661       $as_test_x conftest$ac_exeext; then
8662  tcl_cv_cc_arch_ppc64=yes
8663else
8664  echo "$as_me: failed program was:" >&5
8665sed 's/^/| /' conftest.$ac_ext >&5
8666
8667	tcl_cv_cc_arch_ppc64=no
8668fi
8669
8670rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8671      conftest$ac_exeext conftest.$ac_ext
8672			    CFLAGS=$hold_cflags
8673fi
8674{ echo "$as_me:$LINENO: result: $tcl_cv_cc_arch_ppc64" >&5
8675echo "${ECHO_T}$tcl_cv_cc_arch_ppc64" >&6; }
8676			if test $tcl_cv_cc_arch_ppc64 = yes; then
8677			    CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5"
8678			    do64bit_ok=yes
8679			fi;;
8680		    i386)
8681			{ echo "$as_me:$LINENO: checking if compiler accepts -arch x86_64 flag" >&5
8682echo $ECHO_N "checking if compiler accepts -arch x86_64 flag... $ECHO_C" >&6; }
8683if test "${tcl_cv_cc_arch_x86_64+set}" = set; then
8684  echo $ECHO_N "(cached) $ECHO_C" >&6
8685else
8686
8687			    hold_cflags=$CFLAGS
8688			    CFLAGS="$CFLAGS -arch x86_64"
8689			    cat >conftest.$ac_ext <<_ACEOF
8690/* confdefs.h.  */
8691_ACEOF
8692cat confdefs.h >>conftest.$ac_ext
8693cat >>conftest.$ac_ext <<_ACEOF
8694/* end confdefs.h.  */
8695
8696int
8697main ()
8698{
8699
8700  ;
8701  return 0;
8702}
8703_ACEOF
8704rm -f conftest.$ac_objext conftest$ac_exeext
8705if { (ac_try="$ac_link"
8706case "(($ac_try" in
8707  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8708  *) ac_try_echo=$ac_try;;
8709esac
8710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8711  (eval "$ac_link") 2>conftest.er1
8712  ac_status=$?
8713  grep -v '^ *+' conftest.er1 >conftest.err
8714  rm -f conftest.er1
8715  cat conftest.err >&5
8716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8717  (exit $ac_status); } && {
8718	 test -z "$ac_c_werror_flag" ||
8719	 test ! -s conftest.err
8720       } && test -s conftest$ac_exeext &&
8721       $as_test_x conftest$ac_exeext; then
8722  tcl_cv_cc_arch_x86_64=yes
8723else
8724  echo "$as_me: failed program was:" >&5
8725sed 's/^/| /' conftest.$ac_ext >&5
8726
8727	tcl_cv_cc_arch_x86_64=no
8728fi
8729
8730rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8731      conftest$ac_exeext conftest.$ac_ext
8732			    CFLAGS=$hold_cflags
8733fi
8734{ echo "$as_me:$LINENO: result: $tcl_cv_cc_arch_x86_64" >&5
8735echo "${ECHO_T}$tcl_cv_cc_arch_x86_64" >&6; }
8736			if test $tcl_cv_cc_arch_x86_64 = yes; then
8737			    CFLAGS="$CFLAGS -arch x86_64"
8738			    do64bit_ok=yes
8739			fi;;
8740		    *)
8741			{ echo "$as_me:$LINENO: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&5
8742echo "$as_me: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&2;};;
8743		esac
8744	    else
8745		# Check for combined 32-bit and 64-bit fat build
8746		echo "$CFLAGS " | grep -E -q -- '-arch (ppc64|x86_64) ' && \
8747		    echo "$CFLAGS " | grep -E -q -- '-arch (ppc|i386) ' && \
8748		    fat_32_64=yes
8749	    fi
8750	    # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS here:
8751	    SHLIB_LD='${CC} -dynamiclib ${CFLAGS} ${LDFLAGS_DEFAULT}'
8752	    { echo "$as_me:$LINENO: checking if ld accepts -single_module flag" >&5
8753echo $ECHO_N "checking if ld accepts -single_module flag... $ECHO_C" >&6; }
8754if test "${tcl_cv_ld_single_module+set}" = set; then
8755  echo $ECHO_N "(cached) $ECHO_C" >&6
8756else
8757
8758		hold_ldflags=$LDFLAGS
8759		LDFLAGS="$LDFLAGS -dynamiclib -Wl,-single_module"
8760		cat >conftest.$ac_ext <<_ACEOF
8761/* confdefs.h.  */
8762_ACEOF
8763cat confdefs.h >>conftest.$ac_ext
8764cat >>conftest.$ac_ext <<_ACEOF
8765/* end confdefs.h.  */
8766
8767int
8768main ()
8769{
8770int i;
8771  ;
8772  return 0;
8773}
8774_ACEOF
8775rm -f conftest.$ac_objext conftest$ac_exeext
8776if { (ac_try="$ac_link"
8777case "(($ac_try" in
8778  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8779  *) ac_try_echo=$ac_try;;
8780esac
8781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8782  (eval "$ac_link") 2>conftest.er1
8783  ac_status=$?
8784  grep -v '^ *+' conftest.er1 >conftest.err
8785  rm -f conftest.er1
8786  cat conftest.err >&5
8787  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8788  (exit $ac_status); } && {
8789	 test -z "$ac_c_werror_flag" ||
8790	 test ! -s conftest.err
8791       } && test -s conftest$ac_exeext &&
8792       $as_test_x conftest$ac_exeext; then
8793  tcl_cv_ld_single_module=yes
8794else
8795  echo "$as_me: failed program was:" >&5
8796sed 's/^/| /' conftest.$ac_ext >&5
8797
8798	tcl_cv_ld_single_module=no
8799fi
8800
8801rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8802      conftest$ac_exeext conftest.$ac_ext
8803		LDFLAGS=$hold_ldflags
8804fi
8805{ echo "$as_me:$LINENO: result: $tcl_cv_ld_single_module" >&5
8806echo "${ECHO_T}$tcl_cv_ld_single_module" >&6; }
8807	    if test $tcl_cv_ld_single_module = yes; then
8808		SHLIB_LD="${SHLIB_LD} -Wl,-single_module"
8809	    fi
8810	    SHLIB_LD_LIBS='${LIBS}'
8811	    SHLIB_SUFFIX=".dylib"
8812	    DL_OBJS="tclLoadDyld.o"
8813	    DL_LIBS=""
8814	    # Don't use -prebind when building for Mac OS X 10.4 or later only:
8815	    test "`echo "${MACOSX_DEPLOYMENT_TARGET}" | awk -F '10\\.' '{print int($2)}'`" -lt 4 -a \
8816		"`echo "${CPPFLAGS}" | awk -F '-mmacosx-version-min=10\\.' '{print int($2)}'`" -lt 4 && \
8817		LDFLAGS="$LDFLAGS -prebind"
8818	    LDFLAGS="$LDFLAGS -headerpad_max_install_names"
8819	    { echo "$as_me:$LINENO: checking if ld accepts -search_paths_first flag" >&5
8820echo $ECHO_N "checking if ld accepts -search_paths_first flag... $ECHO_C" >&6; }
8821if test "${tcl_cv_ld_search_paths_first+set}" = set; then
8822  echo $ECHO_N "(cached) $ECHO_C" >&6
8823else
8824
8825		hold_ldflags=$LDFLAGS
8826		LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
8827		cat >conftest.$ac_ext <<_ACEOF
8828/* confdefs.h.  */
8829_ACEOF
8830cat confdefs.h >>conftest.$ac_ext
8831cat >>conftest.$ac_ext <<_ACEOF
8832/* end confdefs.h.  */
8833
8834int
8835main ()
8836{
8837int i;
8838  ;
8839  return 0;
8840}
8841_ACEOF
8842rm -f conftest.$ac_objext conftest$ac_exeext
8843if { (ac_try="$ac_link"
8844case "(($ac_try" in
8845  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8846  *) ac_try_echo=$ac_try;;
8847esac
8848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8849  (eval "$ac_link") 2>conftest.er1
8850  ac_status=$?
8851  grep -v '^ *+' conftest.er1 >conftest.err
8852  rm -f conftest.er1
8853  cat conftest.err >&5
8854  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8855  (exit $ac_status); } && {
8856	 test -z "$ac_c_werror_flag" ||
8857	 test ! -s conftest.err
8858       } && test -s conftest$ac_exeext &&
8859       $as_test_x conftest$ac_exeext; then
8860  tcl_cv_ld_search_paths_first=yes
8861else
8862  echo "$as_me: failed program was:" >&5
8863sed 's/^/| /' conftest.$ac_ext >&5
8864
8865	tcl_cv_ld_search_paths_first=no
8866fi
8867
8868rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8869      conftest$ac_exeext conftest.$ac_ext
8870		LDFLAGS=$hold_ldflags
8871fi
8872{ echo "$as_me:$LINENO: result: $tcl_cv_ld_search_paths_first" >&5
8873echo "${ECHO_T}$tcl_cv_ld_search_paths_first" >&6; }
8874	    if test $tcl_cv_ld_search_paths_first = yes; then
8875		LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
8876	    fi
8877	    CC_SEARCH_FLAGS=""
8878	    LD_SEARCH_FLAGS=""
8879	    LD_LIBRARY_PATH_VAR="DYLD_LIBRARY_PATH"
8880
8881	    # TEA specific: for Tk extensions, remove 64-bit arch flags from
8882	    # CFLAGS et al. for combined 32 & 64 bit fat builds as neither
8883	    # TkAqua nor TkX11 can be built for 64-bit at present.
8884	    test "$fat_32_64" = yes && test -n "${TK_BIN_DIR}" && for v in CFLAGS CPPFLAGS LDFLAGS; do
8885		eval $v'="`echo "$'$v' "|sed -e "s/-arch ppc64 / /g" -e "s/-arch x86_64 / /g"`"'; done
8886	    ;;
8887	NEXTSTEP-*)
8888	    SHLIB_CFLAGS=""
8889	    SHLIB_LD="cc -nostdlib -r"
8890	    SHLIB_LD_LIBS=""
8891	    SHLIB_SUFFIX=".so"
8892	    DL_OBJS="tclLoadNext.o"
8893	    DL_LIBS=""
8894	    CC_SEARCH_FLAGS=""
8895	    LD_SEARCH_FLAGS=""
8896	    ;;
8897	OS/390-*)
8898	    CFLAGS_OPTIMIZE=""		# Optimizer is buggy
8899
8900cat >>confdefs.h <<\_ACEOF
8901@%:@define _OE_SOCKETS 1
8902_ACEOF
8903
8904	    ;;
8905	OSF1-1.0|OSF1-1.1|OSF1-1.2)
8906	    # OSF/1 1.[012] from OSF, and derivatives, including Paragon OSF/1
8907	    SHLIB_CFLAGS=""
8908	    # Hack: make package name same as library name
8909	    SHLIB_LD='ld -R -export :'
8910	    SHLIB_LD_LIBS=""
8911	    SHLIB_SUFFIX=".so"
8912	    DL_OBJS="tclLoadOSF.o"
8913	    DL_LIBS=""
8914	    CC_SEARCH_FLAGS=""
8915	    LD_SEARCH_FLAGS=""
8916	    ;;
8917	OSF1-1.*)
8918	    # OSF/1 1.3 from OSF using ELF, and derivatives, including AD2
8919	    SHLIB_CFLAGS="-fPIC"
8920	    if test "$SHARED_BUILD" = "1" ; then
8921	        SHLIB_LD="ld -shared"
8922	    else
8923	        SHLIB_LD="ld -non_shared"
8924	    fi
8925	    SHLIB_LD_LIBS=""
8926	    SHLIB_SUFFIX=".so"
8927	    DL_OBJS="tclLoadDl.o"
8928	    DL_LIBS=""
8929	    CC_SEARCH_FLAGS=""
8930	    LD_SEARCH_FLAGS=""
8931	    ;;
8932	OSF1-V*)
8933	    # Digital OSF/1
8934	    SHLIB_CFLAGS=""
8935	    if test "$SHARED_BUILD" = "1" ; then
8936	        SHLIB_LD='ld -shared -expect_unresolved "*"'
8937	    else
8938	        SHLIB_LD='ld -non_shared -expect_unresolved "*"'
8939	    fi
8940	    SHLIB_LD_LIBS=""
8941	    SHLIB_SUFFIX=".so"
8942	    DL_OBJS="tclLoadDl.o"
8943	    DL_LIBS=""
8944	    CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
8945	    LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
8946	    if test "$GCC" = "yes" ; then
8947		CFLAGS="$CFLAGS -mieee"
8948            else
8949		CFLAGS="$CFLAGS -DHAVE_TZSET -std1 -ieee"
8950	    fi
8951	    # see pthread_intro(3) for pthread support on osf1, k.furukawa
8952	    if test "${TCL_THREADS}" = "1" ; then
8953		CFLAGS="$CFLAGS -DHAVE_PTHREAD_ATTR_SETSTACKSIZE"
8954		CFLAGS="$CFLAGS -DTCL_THREAD_STACK_MIN=PTHREAD_STACK_MIN*64"
8955		LIBS=`echo $LIBS | sed s/-lpthreads//`
8956		if test "$GCC" = "yes" ; then
8957		    LIBS="$LIBS -lpthread -lmach -lexc"
8958		else
8959		    CFLAGS="$CFLAGS -pthread"
8960		    LDFLAGS="$LDFLAGS -pthread"
8961		fi
8962	    fi
8963
8964	    ;;
8965	QNX-6*)
8966	    # QNX RTP
8967	    # This may work for all QNX, but it was only reported for v6.
8968	    SHLIB_CFLAGS="-fPIC"
8969	    SHLIB_LD="ld -Bshareable -x"
8970	    SHLIB_LD_LIBS=""
8971	    SHLIB_SUFFIX=".so"
8972	    DL_OBJS="tclLoadDl.o"
8973	    # dlopen is in -lc on QNX
8974	    DL_LIBS=""
8975	    CC_SEARCH_FLAGS=""
8976	    LD_SEARCH_FLAGS=""
8977	    ;;
8978	SCO_SV-3.2*)
8979	    # Note, dlopen is available only on SCO 3.2.5 and greater. However,
8980	    # this test works, since "uname -s" was non-standard in 3.2.4 and
8981	    # below.
8982	    if test "$GCC" = "yes" ; then
8983	    	SHLIB_CFLAGS="-fPIC -melf"
8984	    	LDFLAGS="$LDFLAGS -melf -Wl,-Bexport"
8985	    else
8986	    	SHLIB_CFLAGS="-Kpic -belf"
8987	    	LDFLAGS="$LDFLAGS -belf -Wl,-Bexport"
8988	    fi
8989	    SHLIB_LD="ld -G"
8990	    SHLIB_LD_LIBS=""
8991	    SHLIB_SUFFIX=".so"
8992	    DL_OBJS="tclLoadDl.o"
8993	    DL_LIBS=""
8994	    CC_SEARCH_FLAGS=""
8995	    LD_SEARCH_FLAGS=""
8996	    ;;
8997	SINIX*5.4*)
8998	    SHLIB_CFLAGS="-K PIC"
8999	    SHLIB_LD="cc -G"
9000	    SHLIB_LD_LIBS=""
9001	    SHLIB_SUFFIX=".so"
9002	    DL_OBJS="tclLoadDl.o"
9003	    DL_LIBS="-ldl"
9004	    CC_SEARCH_FLAGS=""
9005	    LD_SEARCH_FLAGS=""
9006	    ;;
9007	SunOS-4*)
9008	    SHLIB_CFLAGS="-PIC"
9009	    SHLIB_LD="ld"
9010	    SHLIB_LD_LIBS=""
9011	    SHLIB_SUFFIX=".so"
9012	    DL_OBJS="tclLoadDl.o"
9013	    DL_LIBS="-ldl"
9014	    CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
9015	    LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
9016
9017	    # SunOS can't handle version numbers with dots in them in library
9018	    # specs, like -ltcl7.5, so use -ltcl75 instead.  Also, it
9019	    # requires an extra version number at the end of .so file names.
9020	    # So, the library has to have a name like libtcl75.so.1.0
9021
9022	    SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so.1.0'
9023	    UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
9024	    TCL_LIB_VERSIONS_OK=nodots
9025	    ;;
9026	SunOS-5.[0-6])
9027	    # Careful to not let 5.10+ fall into this case
9028
9029	    # Note: If _REENTRANT isn't defined, then Solaris
9030	    # won't define thread-safe library routines.
9031
9032
9033cat >>confdefs.h <<\_ACEOF
9034@%:@define _REENTRANT 1
9035_ACEOF
9036
9037
9038cat >>confdefs.h <<\_ACEOF
9039@%:@define _POSIX_PTHREAD_SEMANTICS 1
9040_ACEOF
9041
9042
9043	    SHLIB_CFLAGS="-KPIC"
9044
9045	    # Note: need the LIBS below, otherwise Tk won't find Tcl's
9046	    # symbols when dynamically loaded into tclsh.
9047
9048	    SHLIB_LD_LIBS='${LIBS}'
9049	    SHLIB_SUFFIX=".so"
9050	    DL_OBJS="tclLoadDl.o"
9051	    DL_LIBS="-ldl"
9052	    if test "$GCC" = "yes" ; then
9053		SHLIB_LD="$CC -shared"
9054		CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
9055		LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
9056	    else
9057		SHLIB_LD="/usr/ccs/bin/ld -G -z text"
9058		CC_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
9059		LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
9060	    fi
9061	    ;;
9062	SunOS-5*)
9063	    # Note: If _REENTRANT isn't defined, then Solaris
9064	    # won't define thread-safe library routines.
9065
9066
9067cat >>confdefs.h <<\_ACEOF
9068@%:@define _REENTRANT 1
9069_ACEOF
9070
9071
9072cat >>confdefs.h <<\_ACEOF
9073@%:@define _POSIX_PTHREAD_SEMANTICS 1
9074_ACEOF
9075
9076
9077	    SHLIB_CFLAGS="-KPIC"
9078
9079	    # Check to enable 64-bit flags for compiler/linker
9080	    if test "$do64bit" = "yes" ; then
9081		arch=`isainfo`
9082		if test "$arch" = "sparcv9 sparc" ; then
9083			if test "$GCC" = "yes" ; then
9084			    if test "`gcc -dumpversion | awk -F. '{print $1}'`" -lt "3" ; then
9085				{ echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&5
9086echo "$as_me: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&2;}
9087			    else
9088				do64bit_ok=yes
9089				CFLAGS="$CFLAGS -m64 -mcpu=v9"
9090				LDFLAGS="$LDFLAGS -m64 -mcpu=v9"
9091				SHLIB_CFLAGS="-fPIC"
9092			    fi
9093			else
9094			    do64bit_ok=yes
9095			    if test "$do64bitVIS" = "yes" ; then
9096				CFLAGS="$CFLAGS -xarch=v9a"
9097			    	LDFLAGS_ARCH="-xarch=v9a"
9098			    else
9099				CFLAGS="$CFLAGS -xarch=v9"
9100			    	LDFLAGS_ARCH="-xarch=v9"
9101			    fi
9102			    # Solaris 64 uses this as well
9103			    #LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH_64"
9104			fi
9105		elif test "$arch" = "amd64 i386" ; then
9106		    if test "$GCC" = "yes" ; then
9107			{ echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5
9108echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;}
9109		    else
9110			do64bit_ok=yes
9111			CFLAGS="$CFLAGS -xarch=amd64"
9112			LDFLAGS="$LDFLAGS -xarch=amd64"
9113		    fi
9114		else
9115		    { echo "$as_me:$LINENO: WARNING: 64bit mode not supported for $arch" >&5
9116echo "$as_me: WARNING: 64bit mode not supported for $arch" >&2;}
9117		fi
9118	    fi
9119
9120	    # Note: need the LIBS below, otherwise Tk won't find Tcl's
9121	    # symbols when dynamically loaded into tclsh.
9122
9123	    SHLIB_LD_LIBS='${LIBS}'
9124	    SHLIB_SUFFIX=".so"
9125	    DL_OBJS="tclLoadDl.o"
9126	    DL_LIBS="-ldl"
9127	    if test "$GCC" = "yes" ; then
9128		SHLIB_LD="$CC -shared"
9129		CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
9130		LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
9131		if test "$do64bit_ok" = "yes" ; then
9132		    # We need to specify -static-libgcc or we need to
9133		    # add the path to the sparv9 libgcc.
9134		    # JH: static-libgcc is necessary for core Tcl, but may
9135		    # not be necessary for extensions.
9136		    SHLIB_LD="$SHLIB_LD -m64 -mcpu=v9 -static-libgcc"
9137		    # for finding sparcv9 libgcc, get the regular libgcc
9138		    # path, remove so name and append 'sparcv9'
9139		    #v9gcclibdir="`gcc -print-file-name=libgcc_s.so` | ..."
9140		    #CC_SEARCH_FLAGS="${CC_SEARCH_FLAGS},-R,$v9gcclibdir"
9141		fi
9142	    else
9143		SHLIB_LD="/usr/ccs/bin/ld -G -z text"
9144		CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
9145		LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
9146	    fi
9147	    ;;
9148	UNIX_SV* | UnixWare-5*)
9149	    SHLIB_CFLAGS="-KPIC"
9150	    SHLIB_LD="cc -G"
9151	    SHLIB_LD_LIBS=""
9152	    SHLIB_SUFFIX=".so"
9153	    DL_OBJS="tclLoadDl.o"
9154	    DL_LIBS="-ldl"
9155	    # Some UNIX_SV* systems (unixware 1.1.2 for example) have linkers
9156	    # that don't grok the -Bexport option.  Test that it does.
9157	    { echo "$as_me:$LINENO: checking for ld accepts -Bexport flag" >&5
9158echo $ECHO_N "checking for ld accepts -Bexport flag... $ECHO_C" >&6; }
9159if test "${tcl_cv_ld_Bexport+set}" = set; then
9160  echo $ECHO_N "(cached) $ECHO_C" >&6
9161else
9162
9163		hold_ldflags=$LDFLAGS
9164		LDFLAGS="$LDFLAGS -Wl,-Bexport"
9165		cat >conftest.$ac_ext <<_ACEOF
9166/* confdefs.h.  */
9167_ACEOF
9168cat confdefs.h >>conftest.$ac_ext
9169cat >>conftest.$ac_ext <<_ACEOF
9170/* end confdefs.h.  */
9171
9172int
9173main ()
9174{
9175int i;
9176  ;
9177  return 0;
9178}
9179_ACEOF
9180rm -f conftest.$ac_objext conftest$ac_exeext
9181if { (ac_try="$ac_link"
9182case "(($ac_try" in
9183  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9184  *) ac_try_echo=$ac_try;;
9185esac
9186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9187  (eval "$ac_link") 2>conftest.er1
9188  ac_status=$?
9189  grep -v '^ *+' conftest.er1 >conftest.err
9190  rm -f conftest.er1
9191  cat conftest.err >&5
9192  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9193  (exit $ac_status); } && {
9194	 test -z "$ac_c_werror_flag" ||
9195	 test ! -s conftest.err
9196       } && test -s conftest$ac_exeext &&
9197       $as_test_x conftest$ac_exeext; then
9198  tcl_cv_ld_Bexport=yes
9199else
9200  echo "$as_me: failed program was:" >&5
9201sed 's/^/| /' conftest.$ac_ext >&5
9202
9203	tcl_cv_ld_Bexport=no
9204fi
9205
9206rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9207      conftest$ac_exeext conftest.$ac_ext
9208	        LDFLAGS=$hold_ldflags
9209fi
9210{ echo "$as_me:$LINENO: result: $tcl_cv_ld_Bexport" >&5
9211echo "${ECHO_T}$tcl_cv_ld_Bexport" >&6; }
9212	    if test $tcl_cv_ld_Bexport = yes; then
9213		LDFLAGS="$LDFLAGS -Wl,-Bexport"
9214	    fi
9215	    CC_SEARCH_FLAGS=""
9216	    LD_SEARCH_FLAGS=""
9217	    ;;
9218    esac
9219
9220    if test "$do64bit" = "yes" -a "$do64bit_ok" = "no" ; then
9221	{ echo "$as_me:$LINENO: WARNING: 64bit support being disabled -- don't know magic for this platform" >&5
9222echo "$as_me: WARNING: 64bit support being disabled -- don't know magic for this platform" >&2;}
9223    fi
9224
9225
9226
9227    # Step 4: disable dynamic loading if requested via a command-line switch.
9228
9229    # Check whether --enable-load was given.
9230if test "${enable_load+set}" = set; then
9231  enableval=$enable_load; tcl_ok=$enableval
9232else
9233  tcl_ok=yes
9234fi
9235
9236    if test "$tcl_ok" = "no"; then
9237	DL_OBJS=""
9238    fi
9239
9240    if test "x$DL_OBJS" != "x" ; then
9241	BUILD_DLTEST="\$(DLTEST_TARGETS)"
9242    else
9243	echo "Can't figure out how to do dynamic loading or shared libraries"
9244	echo "on this system."
9245	SHLIB_CFLAGS=""
9246	SHLIB_LD=""
9247	SHLIB_SUFFIX=""
9248	DL_OBJS="tclLoadNone.o"
9249	DL_LIBS=""
9250	LDFLAGS="$LDFLAGS_ORIG"
9251	CC_SEARCH_FLAGS=""
9252	LD_SEARCH_FLAGS=""
9253	BUILD_DLTEST=""
9254    fi
9255    LDFLAGS="$LDFLAGS $LDFLAGS_ARCH"
9256
9257    # If we're running gcc, then change the C flags for compiling shared
9258    # libraries to the right flags for gcc, instead of those for the
9259    # standard manufacturer compiler.
9260
9261    if test "$DL_OBJS" != "tclLoadNone.o" ; then
9262	if test "$GCC" = "yes" ; then
9263	    case $system in
9264		AIX-*)
9265		    ;;
9266		BSD/OS*)
9267		    ;;
9268		IRIX*)
9269		    ;;
9270		NetBSD-*|FreeBSD-*)
9271		    ;;
9272		Darwin-*)
9273		    ;;
9274		SCO_SV-3.2*)
9275		    ;;
9276		windows)
9277		    ;;
9278		*)
9279		    SHLIB_CFLAGS="-fPIC"
9280		    ;;
9281	    esac
9282	fi
9283    fi
9284
9285    if test "$SHARED_LIB_SUFFIX" = "" ; then
9286	SHARED_LIB_SUFFIX='${PACKAGE_VERSION}${SHLIB_SUFFIX}'
9287    fi
9288    if test "$UNSHARED_LIB_SUFFIX" = "" ; then
9289	UNSHARED_LIB_SUFFIX='${PACKAGE_VERSION}.a'
9290    fi
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306    # These must be called after we do the basic CFLAGS checks and
9307    # verify any possible 64-bit or similar switches are necessary
9308
9309    { echo "$as_me:$LINENO: checking for required early compiler flags" >&5
9310echo $ECHO_N "checking for required early compiler flags... $ECHO_C" >&6; }
9311    tcl_flags=""
9312
9313    if test "${tcl_cv_flag__isoc99_source+set}" = set; then
9314  echo $ECHO_N "(cached) $ECHO_C" >&6
9315else
9316  cat >conftest.$ac_ext <<_ACEOF
9317/* confdefs.h.  */
9318_ACEOF
9319cat confdefs.h >>conftest.$ac_ext
9320cat >>conftest.$ac_ext <<_ACEOF
9321/* end confdefs.h.  */
9322#include <stdlib.h>
9323int
9324main ()
9325{
9326char *p = (char *)strtoll; char *q = (char *)strtoull;
9327  ;
9328  return 0;
9329}
9330_ACEOF
9331rm -f conftest.$ac_objext
9332if { (ac_try="$ac_compile"
9333case "(($ac_try" in
9334  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9335  *) ac_try_echo=$ac_try;;
9336esac
9337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9338  (eval "$ac_compile") 2>conftest.er1
9339  ac_status=$?
9340  grep -v '^ *+' conftest.er1 >conftest.err
9341  rm -f conftest.er1
9342  cat conftest.err >&5
9343  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9344  (exit $ac_status); } && {
9345	 test -z "$ac_c_werror_flag" ||
9346	 test ! -s conftest.err
9347       } && test -s conftest.$ac_objext; then
9348  tcl_cv_flag__isoc99_source=no
9349else
9350  echo "$as_me: failed program was:" >&5
9351sed 's/^/| /' conftest.$ac_ext >&5
9352
9353	cat >conftest.$ac_ext <<_ACEOF
9354/* confdefs.h.  */
9355_ACEOF
9356cat confdefs.h >>conftest.$ac_ext
9357cat >>conftest.$ac_ext <<_ACEOF
9358/* end confdefs.h.  */
9359#define _ISOC99_SOURCE 1
9360#include <stdlib.h>
9361int
9362main ()
9363{
9364char *p = (char *)strtoll; char *q = (char *)strtoull;
9365  ;
9366  return 0;
9367}
9368_ACEOF
9369rm -f conftest.$ac_objext
9370if { (ac_try="$ac_compile"
9371case "(($ac_try" in
9372  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9373  *) ac_try_echo=$ac_try;;
9374esac
9375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9376  (eval "$ac_compile") 2>conftest.er1
9377  ac_status=$?
9378  grep -v '^ *+' conftest.er1 >conftest.err
9379  rm -f conftest.er1
9380  cat conftest.err >&5
9381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9382  (exit $ac_status); } && {
9383	 test -z "$ac_c_werror_flag" ||
9384	 test ! -s conftest.err
9385       } && test -s conftest.$ac_objext; then
9386  tcl_cv_flag__isoc99_source=yes
9387else
9388  echo "$as_me: failed program was:" >&5
9389sed 's/^/| /' conftest.$ac_ext >&5
9390
9391	tcl_cv_flag__isoc99_source=no
9392fi
9393
9394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9395fi
9396
9397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9398fi
9399
9400    if test "x${tcl_cv_flag__isoc99_source}" = "xyes" ; then
9401
9402cat >>confdefs.h <<\_ACEOF
9403@%:@define _ISOC99_SOURCE 1
9404_ACEOF
9405
9406	tcl_flags="$tcl_flags _ISOC99_SOURCE"
9407    fi
9408
9409
9410    if test "${tcl_cv_flag__largefile64_source+set}" = set; then
9411  echo $ECHO_N "(cached) $ECHO_C" >&6
9412else
9413  cat >conftest.$ac_ext <<_ACEOF
9414/* confdefs.h.  */
9415_ACEOF
9416cat confdefs.h >>conftest.$ac_ext
9417cat >>conftest.$ac_ext <<_ACEOF
9418/* end confdefs.h.  */
9419#include <sys/stat.h>
9420int
9421main ()
9422{
9423struct stat64 buf; int i = stat64("/", &buf);
9424  ;
9425  return 0;
9426}
9427_ACEOF
9428rm -f conftest.$ac_objext
9429if { (ac_try="$ac_compile"
9430case "(($ac_try" in
9431  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9432  *) ac_try_echo=$ac_try;;
9433esac
9434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9435  (eval "$ac_compile") 2>conftest.er1
9436  ac_status=$?
9437  grep -v '^ *+' conftest.er1 >conftest.err
9438  rm -f conftest.er1
9439  cat conftest.err >&5
9440  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9441  (exit $ac_status); } && {
9442	 test -z "$ac_c_werror_flag" ||
9443	 test ! -s conftest.err
9444       } && test -s conftest.$ac_objext; then
9445  tcl_cv_flag__largefile64_source=no
9446else
9447  echo "$as_me: failed program was:" >&5
9448sed 's/^/| /' conftest.$ac_ext >&5
9449
9450	cat >conftest.$ac_ext <<_ACEOF
9451/* confdefs.h.  */
9452_ACEOF
9453cat confdefs.h >>conftest.$ac_ext
9454cat >>conftest.$ac_ext <<_ACEOF
9455/* end confdefs.h.  */
9456#define _LARGEFILE64_SOURCE 1
9457#include <sys/stat.h>
9458int
9459main ()
9460{
9461struct stat64 buf; int i = stat64("/", &buf);
9462  ;
9463  return 0;
9464}
9465_ACEOF
9466rm -f conftest.$ac_objext
9467if { (ac_try="$ac_compile"
9468case "(($ac_try" in
9469  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9470  *) ac_try_echo=$ac_try;;
9471esac
9472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9473  (eval "$ac_compile") 2>conftest.er1
9474  ac_status=$?
9475  grep -v '^ *+' conftest.er1 >conftest.err
9476  rm -f conftest.er1
9477  cat conftest.err >&5
9478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9479  (exit $ac_status); } && {
9480	 test -z "$ac_c_werror_flag" ||
9481	 test ! -s conftest.err
9482       } && test -s conftest.$ac_objext; then
9483  tcl_cv_flag__largefile64_source=yes
9484else
9485  echo "$as_me: failed program was:" >&5
9486sed 's/^/| /' conftest.$ac_ext >&5
9487
9488	tcl_cv_flag__largefile64_source=no
9489fi
9490
9491rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9492fi
9493
9494rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9495fi
9496
9497    if test "x${tcl_cv_flag__largefile64_source}" = "xyes" ; then
9498
9499cat >>confdefs.h <<\_ACEOF
9500@%:@define _LARGEFILE64_SOURCE 1
9501_ACEOF
9502
9503	tcl_flags="$tcl_flags _LARGEFILE64_SOURCE"
9504    fi
9505
9506
9507    if test "${tcl_cv_flag__largefile_source64+set}" = set; then
9508  echo $ECHO_N "(cached) $ECHO_C" >&6
9509else
9510  cat >conftest.$ac_ext <<_ACEOF
9511/* confdefs.h.  */
9512_ACEOF
9513cat confdefs.h >>conftest.$ac_ext
9514cat >>conftest.$ac_ext <<_ACEOF
9515/* end confdefs.h.  */
9516#include <sys/stat.h>
9517int
9518main ()
9519{
9520char *p = (char *)open64;
9521  ;
9522  return 0;
9523}
9524_ACEOF
9525rm -f conftest.$ac_objext
9526if { (ac_try="$ac_compile"
9527case "(($ac_try" in
9528  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9529  *) ac_try_echo=$ac_try;;
9530esac
9531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9532  (eval "$ac_compile") 2>conftest.er1
9533  ac_status=$?
9534  grep -v '^ *+' conftest.er1 >conftest.err
9535  rm -f conftest.er1
9536  cat conftest.err >&5
9537  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9538  (exit $ac_status); } && {
9539	 test -z "$ac_c_werror_flag" ||
9540	 test ! -s conftest.err
9541       } && test -s conftest.$ac_objext; then
9542  tcl_cv_flag__largefile_source64=no
9543else
9544  echo "$as_me: failed program was:" >&5
9545sed 's/^/| /' conftest.$ac_ext >&5
9546
9547	cat >conftest.$ac_ext <<_ACEOF
9548/* confdefs.h.  */
9549_ACEOF
9550cat confdefs.h >>conftest.$ac_ext
9551cat >>conftest.$ac_ext <<_ACEOF
9552/* end confdefs.h.  */
9553#define _LARGEFILE_SOURCE64 1
9554#include <sys/stat.h>
9555int
9556main ()
9557{
9558char *p = (char *)open64;
9559  ;
9560  return 0;
9561}
9562_ACEOF
9563rm -f conftest.$ac_objext
9564if { (ac_try="$ac_compile"
9565case "(($ac_try" in
9566  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9567  *) ac_try_echo=$ac_try;;
9568esac
9569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9570  (eval "$ac_compile") 2>conftest.er1
9571  ac_status=$?
9572  grep -v '^ *+' conftest.er1 >conftest.err
9573  rm -f conftest.er1
9574  cat conftest.err >&5
9575  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9576  (exit $ac_status); } && {
9577	 test -z "$ac_c_werror_flag" ||
9578	 test ! -s conftest.err
9579       } && test -s conftest.$ac_objext; then
9580  tcl_cv_flag__largefile_source64=yes
9581else
9582  echo "$as_me: failed program was:" >&5
9583sed 's/^/| /' conftest.$ac_ext >&5
9584
9585	tcl_cv_flag__largefile_source64=no
9586fi
9587
9588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9589fi
9590
9591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9592fi
9593
9594    if test "x${tcl_cv_flag__largefile_source64}" = "xyes" ; then
9595
9596cat >>confdefs.h <<\_ACEOF
9597@%:@define _LARGEFILE_SOURCE64 1
9598_ACEOF
9599
9600	tcl_flags="$tcl_flags _LARGEFILE_SOURCE64"
9601    fi
9602
9603    if test "x${tcl_flags}" = "x" ; then
9604	{ echo "$as_me:$LINENO: result: none" >&5
9605echo "${ECHO_T}none" >&6; }
9606    else
9607	{ echo "$as_me:$LINENO: result: ${tcl_flags}" >&5
9608echo "${ECHO_T}${tcl_flags}" >&6; }
9609    fi
9610
9611
9612    { echo "$as_me:$LINENO: checking for 64-bit integer type" >&5
9613echo $ECHO_N "checking for 64-bit integer type... $ECHO_C" >&6; }
9614    if test "${tcl_cv_type_64bit+set}" = set; then
9615  echo $ECHO_N "(cached) $ECHO_C" >&6
9616else
9617
9618	tcl_cv_type_64bit=none
9619	# See if the compiler knows natively about __int64
9620	cat >conftest.$ac_ext <<_ACEOF
9621/* confdefs.h.  */
9622_ACEOF
9623cat confdefs.h >>conftest.$ac_ext
9624cat >>conftest.$ac_ext <<_ACEOF
9625/* end confdefs.h.  */
9626
9627int
9628main ()
9629{
9630__int64 value = (__int64) 0;
9631  ;
9632  return 0;
9633}
9634_ACEOF
9635rm -f conftest.$ac_objext
9636if { (ac_try="$ac_compile"
9637case "(($ac_try" in
9638  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9639  *) ac_try_echo=$ac_try;;
9640esac
9641eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9642  (eval "$ac_compile") 2>conftest.er1
9643  ac_status=$?
9644  grep -v '^ *+' conftest.er1 >conftest.err
9645  rm -f conftest.er1
9646  cat conftest.err >&5
9647  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9648  (exit $ac_status); } && {
9649	 test -z "$ac_c_werror_flag" ||
9650	 test ! -s conftest.err
9651       } && test -s conftest.$ac_objext; then
9652  tcl_type_64bit=__int64
9653else
9654  echo "$as_me: failed program was:" >&5
9655sed 's/^/| /' conftest.$ac_ext >&5
9656
9657	tcl_type_64bit="long long"
9658fi
9659
9660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9661	# See if we should use long anyway  Note that we substitute in the
9662	# type that is our current guess for a 64-bit type inside this check
9663	# program, so it should be modified only carefully...
9664        cat >conftest.$ac_ext <<_ACEOF
9665/* confdefs.h.  */
9666_ACEOF
9667cat confdefs.h >>conftest.$ac_ext
9668cat >>conftest.$ac_ext <<_ACEOF
9669/* end confdefs.h.  */
9670
9671int
9672main ()
9673{
9674switch (0) {
9675            case 1: case (sizeof(${tcl_type_64bit})==sizeof(long)): ;
9676        }
9677  ;
9678  return 0;
9679}
9680_ACEOF
9681rm -f conftest.$ac_objext
9682if { (ac_try="$ac_compile"
9683case "(($ac_try" in
9684  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9685  *) ac_try_echo=$ac_try;;
9686esac
9687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9688  (eval "$ac_compile") 2>conftest.er1
9689  ac_status=$?
9690  grep -v '^ *+' conftest.er1 >conftest.err
9691  rm -f conftest.er1
9692  cat conftest.err >&5
9693  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9694  (exit $ac_status); } && {
9695	 test -z "$ac_c_werror_flag" ||
9696	 test ! -s conftest.err
9697       } && test -s conftest.$ac_objext; then
9698  tcl_cv_type_64bit=${tcl_type_64bit}
9699else
9700  echo "$as_me: failed program was:" >&5
9701sed 's/^/| /' conftest.$ac_ext >&5
9702
9703
9704fi
9705
9706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9707fi
9708
9709    if test "${tcl_cv_type_64bit}" = none ; then
9710
9711cat >>confdefs.h <<\_ACEOF
9712@%:@define TCL_WIDE_INT_IS_LONG 1
9713_ACEOF
9714
9715	{ echo "$as_me:$LINENO: result: using long" >&5
9716echo "${ECHO_T}using long" >&6; }
9717    elif test "${tcl_cv_type_64bit}" = "__int64" \
9718		-a "${TEA_PLATFORM}" = "windows" ; then
9719	# We actually want to use the default tcl.h checks in this
9720	# case to handle both TCL_WIDE_INT_TYPE and TCL_LL_MODIFIER*
9721	{ echo "$as_me:$LINENO: result: using Tcl header defaults" >&5
9722echo "${ECHO_T}using Tcl header defaults" >&6; }
9723    else
9724
9725cat >>confdefs.h <<_ACEOF
9726@%:@define TCL_WIDE_INT_TYPE ${tcl_cv_type_64bit}
9727_ACEOF
9728
9729	{ echo "$as_me:$LINENO: result: ${tcl_cv_type_64bit}" >&5
9730echo "${ECHO_T}${tcl_cv_type_64bit}" >&6; }
9731
9732	# Now check for auxiliary declarations
9733	{ echo "$as_me:$LINENO: checking for struct dirent64" >&5
9734echo $ECHO_N "checking for struct dirent64... $ECHO_C" >&6; }
9735if test "${tcl_cv_struct_dirent64+set}" = set; then
9736  echo $ECHO_N "(cached) $ECHO_C" >&6
9737else
9738
9739	    cat >conftest.$ac_ext <<_ACEOF
9740/* confdefs.h.  */
9741_ACEOF
9742cat confdefs.h >>conftest.$ac_ext
9743cat >>conftest.$ac_ext <<_ACEOF
9744/* end confdefs.h.  */
9745#include <sys/types.h>
9746#include <sys/dirent.h>
9747int
9748main ()
9749{
9750struct dirent64 p;
9751  ;
9752  return 0;
9753}
9754_ACEOF
9755rm -f conftest.$ac_objext
9756if { (ac_try="$ac_compile"
9757case "(($ac_try" in
9758  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9759  *) ac_try_echo=$ac_try;;
9760esac
9761eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9762  (eval "$ac_compile") 2>conftest.er1
9763  ac_status=$?
9764  grep -v '^ *+' conftest.er1 >conftest.err
9765  rm -f conftest.er1
9766  cat conftest.err >&5
9767  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9768  (exit $ac_status); } && {
9769	 test -z "$ac_c_werror_flag" ||
9770	 test ! -s conftest.err
9771       } && test -s conftest.$ac_objext; then
9772  tcl_cv_struct_dirent64=yes
9773else
9774  echo "$as_me: failed program was:" >&5
9775sed 's/^/| /' conftest.$ac_ext >&5
9776
9777	tcl_cv_struct_dirent64=no
9778fi
9779
9780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9781fi
9782{ echo "$as_me:$LINENO: result: $tcl_cv_struct_dirent64" >&5
9783echo "${ECHO_T}$tcl_cv_struct_dirent64" >&6; }
9784	if test "x${tcl_cv_struct_dirent64}" = "xyes" ; then
9785
9786cat >>confdefs.h <<\_ACEOF
9787@%:@define HAVE_STRUCT_DIRENT64 1
9788_ACEOF
9789
9790	fi
9791
9792	{ echo "$as_me:$LINENO: checking for struct stat64" >&5
9793echo $ECHO_N "checking for struct stat64... $ECHO_C" >&6; }
9794if test "${tcl_cv_struct_stat64+set}" = set; then
9795  echo $ECHO_N "(cached) $ECHO_C" >&6
9796else
9797
9798	    cat >conftest.$ac_ext <<_ACEOF
9799/* confdefs.h.  */
9800_ACEOF
9801cat confdefs.h >>conftest.$ac_ext
9802cat >>conftest.$ac_ext <<_ACEOF
9803/* end confdefs.h.  */
9804#include <sys/stat.h>
9805int
9806main ()
9807{
9808struct stat64 p;
9809
9810  ;
9811  return 0;
9812}
9813_ACEOF
9814rm -f conftest.$ac_objext
9815if { (ac_try="$ac_compile"
9816case "(($ac_try" in
9817  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9818  *) ac_try_echo=$ac_try;;
9819esac
9820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9821  (eval "$ac_compile") 2>conftest.er1
9822  ac_status=$?
9823  grep -v '^ *+' conftest.er1 >conftest.err
9824  rm -f conftest.er1
9825  cat conftest.err >&5
9826  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9827  (exit $ac_status); } && {
9828	 test -z "$ac_c_werror_flag" ||
9829	 test ! -s conftest.err
9830       } && test -s conftest.$ac_objext; then
9831  tcl_cv_struct_stat64=yes
9832else
9833  echo "$as_me: failed program was:" >&5
9834sed 's/^/| /' conftest.$ac_ext >&5
9835
9836	tcl_cv_struct_stat64=no
9837fi
9838
9839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9840fi
9841{ echo "$as_me:$LINENO: result: $tcl_cv_struct_stat64" >&5
9842echo "${ECHO_T}$tcl_cv_struct_stat64" >&6; }
9843	if test "x${tcl_cv_struct_stat64}" = "xyes" ; then
9844
9845cat >>confdefs.h <<\_ACEOF
9846@%:@define HAVE_STRUCT_STAT64 1
9847_ACEOF
9848
9849	fi
9850
9851
9852
9853for ac_func in open64 lseek64
9854do
9855as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9856{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9857echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9858if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9859  echo $ECHO_N "(cached) $ECHO_C" >&6
9860else
9861  cat >conftest.$ac_ext <<_ACEOF
9862/* confdefs.h.  */
9863_ACEOF
9864cat confdefs.h >>conftest.$ac_ext
9865cat >>conftest.$ac_ext <<_ACEOF
9866/* end confdefs.h.  */
9867/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9868   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9869#define $ac_func innocuous_$ac_func
9870
9871/* System header to define __stub macros and hopefully few prototypes,
9872    which can conflict with char $ac_func (); below.
9873    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9874    <limits.h> exists even on freestanding compilers.  */
9875
9876#ifdef __STDC__
9877# include <limits.h>
9878#else
9879# include <assert.h>
9880#endif
9881
9882#undef $ac_func
9883
9884/* Override any GCC internal prototype to avoid an error.
9885   Use char because int might match the return type of a GCC
9886   builtin and then its argument prototype would still apply.  */
9887#ifdef __cplusplus
9888extern "C"
9889#endif
9890char $ac_func ();
9891/* The GNU C library defines this for functions which it implements
9892    to always fail with ENOSYS.  Some functions are actually named
9893    something starting with __ and the normal name is an alias.  */
9894#if defined __stub_$ac_func || defined __stub___$ac_func
9895choke me
9896#endif
9897
9898int
9899main ()
9900{
9901return $ac_func ();
9902  ;
9903  return 0;
9904}
9905_ACEOF
9906rm -f conftest.$ac_objext conftest$ac_exeext
9907if { (ac_try="$ac_link"
9908case "(($ac_try" in
9909  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9910  *) ac_try_echo=$ac_try;;
9911esac
9912eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9913  (eval "$ac_link") 2>conftest.er1
9914  ac_status=$?
9915  grep -v '^ *+' conftest.er1 >conftest.err
9916  rm -f conftest.er1
9917  cat conftest.err >&5
9918  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9919  (exit $ac_status); } && {
9920	 test -z "$ac_c_werror_flag" ||
9921	 test ! -s conftest.err
9922       } && test -s conftest$ac_exeext &&
9923       $as_test_x conftest$ac_exeext; then
9924  eval "$as_ac_var=yes"
9925else
9926  echo "$as_me: failed program was:" >&5
9927sed 's/^/| /' conftest.$ac_ext >&5
9928
9929	eval "$as_ac_var=no"
9930fi
9931
9932rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9933      conftest$ac_exeext conftest.$ac_ext
9934fi
9935ac_res=`eval echo '${'$as_ac_var'}'`
9936	       { echo "$as_me:$LINENO: result: $ac_res" >&5
9937echo "${ECHO_T}$ac_res" >&6; }
9938if test `eval echo '${'$as_ac_var'}'` = yes; then
9939  cat >>confdefs.h <<_ACEOF
9940@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9941_ACEOF
9942
9943fi
9944done
9945
9946	{ echo "$as_me:$LINENO: checking for off64_t" >&5
9947echo $ECHO_N "checking for off64_t... $ECHO_C" >&6; }
9948	if test "${tcl_cv_type_off64_t+set}" = set; then
9949  echo $ECHO_N "(cached) $ECHO_C" >&6
9950else
9951
9952	    cat >conftest.$ac_ext <<_ACEOF
9953/* confdefs.h.  */
9954_ACEOF
9955cat confdefs.h >>conftest.$ac_ext
9956cat >>conftest.$ac_ext <<_ACEOF
9957/* end confdefs.h.  */
9958#include <sys/types.h>
9959int
9960main ()
9961{
9962off64_t offset;
9963
9964  ;
9965  return 0;
9966}
9967_ACEOF
9968rm -f conftest.$ac_objext
9969if { (ac_try="$ac_compile"
9970case "(($ac_try" in
9971  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9972  *) ac_try_echo=$ac_try;;
9973esac
9974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9975  (eval "$ac_compile") 2>conftest.er1
9976  ac_status=$?
9977  grep -v '^ *+' conftest.er1 >conftest.err
9978  rm -f conftest.er1
9979  cat conftest.err >&5
9980  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9981  (exit $ac_status); } && {
9982	 test -z "$ac_c_werror_flag" ||
9983	 test ! -s conftest.err
9984       } && test -s conftest.$ac_objext; then
9985  tcl_cv_type_off64_t=yes
9986else
9987  echo "$as_me: failed program was:" >&5
9988sed 's/^/| /' conftest.$ac_ext >&5
9989
9990	tcl_cv_type_off64_t=no
9991fi
9992
9993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9994fi
9995
9996			if test "x${tcl_cv_type_off64_t}" = "xyes" && \
9997	        test "x${ac_cv_func_lseek64}" = "xyes" && \
9998	        test "x${ac_cv_func_open64}" = "xyes" ; then
9999
10000cat >>confdefs.h <<\_ACEOF
10001@%:@define HAVE_TYPE_OFF64_T 1
10002_ACEOF
10003
10004	    { echo "$as_me:$LINENO: result: yes" >&5
10005echo "${ECHO_T}yes" >&6; }
10006	else
10007	    { echo "$as_me:$LINENO: result: no" >&5
10008echo "${ECHO_T}no" >&6; }
10009	fi
10010    fi
10011
10012
10013
10014#--------------------------------------------------------------------
10015# Set the default compiler switches based on the --enable-symbols option.
10016#--------------------------------------------------------------------
10017
10018
10019
10020    { echo "$as_me:$LINENO: checking for build with symbols" >&5
10021echo $ECHO_N "checking for build with symbols... $ECHO_C" >&6; }
10022    # Check whether --enable-symbols was given.
10023if test "${enable_symbols+set}" = set; then
10024  enableval=$enable_symbols; tcl_ok=$enableval
10025else
10026  tcl_ok=no
10027fi
10028
10029    DBGX=""
10030    if test "$tcl_ok" = "no"; then
10031	CFLAGS_DEFAULT="${CFLAGS_OPTIMIZE}"
10032	LDFLAGS_DEFAULT="${LDFLAGS_OPTIMIZE}"
10033	{ echo "$as_me:$LINENO: result: no" >&5
10034echo "${ECHO_T}no" >&6; }
10035    else
10036	CFLAGS_DEFAULT="${CFLAGS_DEBUG}"
10037	LDFLAGS_DEFAULT="${LDFLAGS_DEBUG}"
10038	if test "$tcl_ok" = "yes"; then
10039	    { echo "$as_me:$LINENO: result: yes (standard debugging)" >&5
10040echo "${ECHO_T}yes (standard debugging)" >&6; }
10041	fi
10042    fi
10043    if test "${TEA_PLATFORM}" != "windows" ; then
10044	LDFLAGS_DEFAULT="${LDFLAGS}"
10045    fi
10046
10047
10048
10049
10050
10051    if test "$tcl_ok" = "mem" -o "$tcl_ok" = "all"; then
10052
10053cat >>confdefs.h <<\_ACEOF
10054@%:@define TCL_MEM_DEBUG 1
10055_ACEOF
10056
10057    fi
10058
10059    if test "$tcl_ok" != "yes" -a "$tcl_ok" != "no"; then
10060	if test "$tcl_ok" = "all"; then
10061	    { echo "$as_me:$LINENO: result: enabled symbols mem debugging" >&5
10062echo "${ECHO_T}enabled symbols mem debugging" >&6; }
10063	else
10064	    { echo "$as_me:$LINENO: result: enabled $tcl_ok debugging" >&5
10065echo "${ECHO_T}enabled $tcl_ok debugging" >&6; }
10066	fi
10067    fi
10068
10069
10070#--------------------------------------------------------------------
10071# Everyone should be linking against the Tcl stub library.  If you
10072# can't for some reason, remove this definition.  If you aren't using
10073# stubs, you also need to modify the SHLIB_LD_LIBS setting below to
10074# link against the non-stubbed Tcl library.
10075#--------------------------------------------------------------------
10076
10077
10078cat >>confdefs.h <<\_ACEOF
10079@%:@define USE_TCL_STUBS 1
10080_ACEOF
10081
10082
10083#--------------------------------------------------------------------
10084# This macro generates a line to use when building a library.  It
10085# depends on values set by the TEA_ENABLE_SHARED, TEA_ENABLE_SYMBOLS,
10086# and TEA_LOAD_TCLCONFIG macros above.
10087#--------------------------------------------------------------------
10088
10089
10090    if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes"; then
10091	MAKE_STATIC_LIB="\${STLIB_LD} -out:\$@ \$(PKG_OBJECTS)"
10092	MAKE_SHARED_LIB="\${SHLIB_LD} \${SHLIB_LD_LIBS} \${LDFLAGS_DEFAULT} -out:\$@ \$(PKG_OBJECTS)"
10093	MAKE_STUB_LIB="\${STLIB_LD} -out:\$@ \$(PKG_STUB_OBJECTS)"
10094    else
10095	MAKE_STATIC_LIB="\${STLIB_LD} \$@ \$(PKG_OBJECTS)"
10096	MAKE_SHARED_LIB="\${SHLIB_LD} -o \$@ \$(PKG_OBJECTS) \${SHLIB_LD_LIBS}"
10097	MAKE_STUB_LIB="\${STLIB_LD} \$@ \$(PKG_STUB_OBJECTS)"
10098    fi
10099
10100    if test "${SHARED_BUILD}" = "1" ; then
10101	MAKE_LIB="${MAKE_SHARED_LIB} "
10102    else
10103	MAKE_LIB="${MAKE_STATIC_LIB} "
10104    fi
10105
10106    #--------------------------------------------------------------------
10107    # Shared libraries and static libraries have different names.
10108    # Use the double eval to make sure any variables in the suffix is
10109    # substituted. (@@@ Might not be necessary anymore)
10110    #--------------------------------------------------------------------
10111
10112    if test "${TEA_PLATFORM}" = "windows" ; then
10113	if test "${SHARED_BUILD}" = "1" ; then
10114	    # We force the unresolved linking of symbols that are really in
10115	    # the private libraries of Tcl and Tk.
10116	    SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}`\""
10117	    if test x"${TK_BIN_DIR}" != x ; then
10118		SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${TK_BIN_DIR}/${TK_STUB_LIB_FILE}`\""
10119	    fi
10120	    eval eval "PKG_LIB_FILE=${PACKAGE_NAME}${SHARED_LIB_SUFFIX}"
10121	else
10122	    eval eval "PKG_LIB_FILE=${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}"
10123	fi
10124	# Some packages build their own stubs libraries
10125	eval eval "PKG_STUB_LIB_FILE=${PACKAGE_NAME}stub${UNSHARED_LIB_SUFFIX}"
10126	if test "$GCC" = "yes"; then
10127	    PKG_STUB_LIB_FILE=lib${PKG_STUB_LIB_FILE}
10128	fi
10129	# These aren't needed on Windows (either MSVC or gcc)
10130	RANLIB=:
10131	RANLIB_STUB=:
10132    else
10133	RANLIB_STUB="${RANLIB}"
10134	if test "${SHARED_BUILD}" = "1" ; then
10135	    SHLIB_LD_LIBS="${SHLIB_LD_LIBS} ${TCL_STUB_LIB_SPEC}"
10136	    if test x"${TK_BIN_DIR}" != x ; then
10137		SHLIB_LD_LIBS="${SHLIB_LD_LIBS} ${TK_STUB_LIB_SPEC}"
10138	    fi
10139	    eval eval "PKG_LIB_FILE=lib${PACKAGE_NAME}${SHARED_LIB_SUFFIX}"
10140	    RANLIB=:
10141	else
10142	    eval eval "PKG_LIB_FILE=lib${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}"
10143	fi
10144	# Some packages build their own stubs libraries
10145	eval eval "PKG_STUB_LIB_FILE=lib${PACKAGE_NAME}stub${UNSHARED_LIB_SUFFIX}"
10146    fi
10147
10148    # These are escaped so that only CFLAGS is picked up at configure time.
10149    # The other values will be substituted at make time.
10150    CFLAGS="${CFLAGS} \${CFLAGS_DEFAULT} \${CFLAGS_WARNING}"
10151    if test "${SHARED_BUILD}" = "1" ; then
10152	CFLAGS="${CFLAGS} \${SHLIB_CFLAGS}"
10153    fi
10154
10155
10156
10157
10158
10159
10160
10161
10162#--------------------------------------------------------------------
10163# On Mac OS X we may want to build as a framework.
10164# This affects the location and naming of headers and libaries.
10165#--------------------------------------------------------------------
10166
10167# Check whether --enable-framework was given.
10168if test "${enable_framework+set}" = set; then
10169  enableval=$enable_framework; tcl_ok=$enableval
10170else
10171  tcl_ok=$1
10172fi
10173
10174
10175#--------------------------------------------------------------------
10176# Load libxml2 configuration
10177#--------------------------------------------------------------------
10178
10179{ echo "$as_me:$LINENO: checking for xml2-config script" >&5
10180echo $ECHO_N "checking for xml2-config script... $ECHO_C" >&6; }
10181
10182
10183# Check whether --with-xml2-config was given.
10184if test "${with_xml2_config+set}" = set; then
10185  withval=$with_xml2_config; with_xml2_config=${withval}
10186fi
10187
10188
10189LIBXML2_CONFIG=
10190if test "x${with_xml2_config}" = "x" ; then
10191    for c in \
10192	/Library/Frameworks/libxml.framework/Resources/Scripts/xml2-config \
10193	${prefix}/bin/xml2-config \
10194	/usr/bin/xml2-config \
10195	/usr/local/bin/xml2-config
10196    do
10197	if test -x "$c" ; then
10198	    LIBXML2_CONFIG="$c"
10199	    break
10200	fi
10201    done
10202else
10203    LIBXML2_CONFIG="${with_xml2_config}"
10204fi
10205if test "x$LIBXML2_CONFIG" = "x" ; then
10206    { { echo "$as_me:$LINENO: error: unable to find xml2-config" >&5
10207echo "$as_me: error: unable to find xml2-config" >&2;}
10208   { (exit 1); exit 1; }; }
10209else
10210    { echo "$as_me:$LINENO: result: ${LIBXML2_CONFIG}" >&5
10211echo "${ECHO_T}${LIBXML2_CONFIG}" >&6; }
10212    XML2_VERSION=`${LIBXML2_CONFIG} --version`
10213    XML2_PREFIX=`${LIBXML2_CONFIG} --prefix`
10214    XML2_LIBS="`${LIBXML2_CONFIG} --libs`"
10215    XML2_CFLAGS=`${LIBXML2_CONFIG} --cflags`
10216fi
10217
10218
10219
10220
10221
10222#--------------------------------------------------------------------
10223# Load libxslt configuration
10224#--------------------------------------------------------------------
10225
10226{ echo "$as_me:$LINENO: checking for xslt-config script" >&5
10227echo $ECHO_N "checking for xslt-config script... $ECHO_C" >&6; }
10228
10229
10230# Check whether --with-xslt-config was given.
10231if test "${with_xslt_config+set}" = set; then
10232  withval=$with_xslt_config; with_xslt_config=${withval}
10233fi
10234
10235
10236LIBXSLT_CONFIG=
10237if test "x${with_xslt_config}" = "x" ; then
10238    if test "x${with_xml2_config}" = "x" ; then
10239	:
10240    else
10241	if test -x "`dirname ${with_xml2_config}`/xslt-config" ; then
10242	    LIBXSLT_CONFIG="`dirname ${with_xml2_config}`/xslt-config"
10243	fi
10244    fi
10245else
10246    LIBXSLT_CONFIG="${with_xslt_config}"
10247fi
10248if test "x${LIBXSLT_CONFIG}" = "x" ; then
10249    for c in \
10250	/Library/Frameworks/libxslt.framework/Resources/Scripts/xslt-config \
10251	${prefix}/bin/xslt-config \
10252	/usr/bin/xslt-config \
10253	/usr/local/bin/xslt-config
10254    do
10255	if test -x "$c" ; then
10256	    LIBXSLT_CONFIG="$c"
10257	    break
10258	fi
10259    done
10260fi
10261if test "x$LIBXSLT_CONFIG" = "x" ; then
10262    { { echo "$as_me:$LINENO: error: unable to find xslt-config script" >&5
10263echo "$as_me: error: unable to find xslt-config script" >&2;}
10264   { (exit 1); exit 1; }; }
10265else
10266    { echo "$as_me:$LINENO: result: ${LIBXSLT_CONFIG}" >&5
10267echo "${ECHO_T}${LIBXSLT_CONFIG}" >&6; }
10268    XSLT_VERSION=`${LIBXSLT_CONFIG} --version`
10269    XSLT_PREFIX=`${LIBXSLT_CONFIG} --prefix`
10270    XSLT_CFLAGS=`${LIBXSLT_CONFIG} --cflags`
10271    XSLT_LIBS="`${LIBXSLT_CONFIG} --libs` -lexslt"
10272fi
10273
10274
10275
10276
10277
10278#--------------------------------------------------------------------
10279# See if we want to statically link the libxml2 and libxslt
10280# libraries. This is desirable for Tclkit.
10281#--------------------------------------------------------------------
10282
10283{ echo "$as_me:$LINENO: checking for static linking of XML/XSLT libraries" >&5
10284echo $ECHO_N "checking for static linking of XML/XSLT libraries... $ECHO_C" >&6; }
10285
10286
10287# Check whether --with-xml-static was given.
10288if test "${with_xml_static+set}" = set; then
10289  withval=$with_xml_static; with_xml_static=${withval}
10290fi
10291
10292
10293XML_STATIC="0"
10294if test "${with_xml_static}" = "1" ; then
10295    XML_STATIC="1"
10296    { echo "$as_me:$LINENO: result: use static linking" >&5
10297echo "${ECHO_T}use static linking" >&6; }
10298else
10299    { echo "$as_me:$LINENO: result: use dynamic linking" >&5
10300echo "${ECHO_T}use dynamic linking" >&6; }
10301fi
10302
10303
10304
10305#--------------------------------------------------------------------
10306# __CHANGE__
10307# Add platform libs to LIBS or SHLIB_LD_LIBS as necessary.
10308#--------------------------------------------------------------------
10309
10310FIX_LIB=":"
10311if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes" ; then
10312    SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${LIBXSLT_LIBDIR}/libxslt.lib`\""
10313    SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${LIBXSLT_LIBDIR}/libexslt.lib`\""
10314    SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${LIBXML2_LIBDIR}/libxml2.lib`\""
10315else
10316if test "${XML_STATIC}" = "0" ; then
10317    echo "setting up dynamic linking"
10318    SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \${XSLT_LIBS}"
10319else
10320    SHLIB_LD_LIBS="${SHLIB_LD_LIBS} ${XSLT_PREFIX}/lib/libexslt.a"
10321    SHLIB_LD_LIBS="${SHLIB_LD_LIBS} ${XSLT_PREFIX}/lib/libxslt.a"
10322    SHLIB_LD_LIBS="${SHLIB_LD_LIBS} ${XML2_PREFIX}/lib/libxml2.a"
10323    SHLIB_LD_LIBS="${SHLIB_LD_LIBS} -L/usr/lib -lgcrypt -lgpg-error -lz -lm"
10324    XML2_LIBS=
10325    XSLT_LIBS=
10326    FIX_LIB="chcon -t texrel_shlib_t"
10327fi
10328fi
10329
10330# Enabling static linking modifies the setting of the libraries,
10331# so delay substitution until this point.
10332
10333
10334
10335
10336#--------------------------------------------------------------------
10337# Find tclsh so that we can run pkg_mkIndex to generate the pkgIndex.tcl
10338# file during the install process.  Don't run the TCLSH_PROG through
10339# ${CYGPATH} because it's being used directly by make.
10340# Require that we use a tclsh shell version 8.2 or later since earlier
10341# versions have bugs in the pkg_mkIndex routine.
10342# Add WISH as well if this is a Tk extension.
10343#--------------------------------------------------------------------
10344
10345
10346    { echo "$as_me:$LINENO: checking for tclsh" >&5
10347echo $ECHO_N "checking for tclsh... $ECHO_C" >&6; }
10348    if test -f "${TCL_BIN_DIR}/Makefile" ; then
10349        # tclConfig.sh is in Tcl build directory
10350        if test "${TEA_PLATFORM}" = "windows"; then
10351            TCLSH_PROG="${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${TCL_DBGX}${EXEEXT}"
10352        else
10353            TCLSH_PROG="${TCL_BIN_DIR}/tclsh"
10354        fi
10355    else
10356        # tclConfig.sh is in install location
10357        if test "${TEA_PLATFORM}" = "windows"; then
10358            TCLSH_PROG="tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${TCL_DBGX}${EXEEXT}"
10359        else
10360            TCLSH_PROG="tclsh${TCL_MAJOR_VERSION}.${TCL_MINOR_VERSION}${TCL_DBGX}"
10361        fi
10362        list="`ls -d ${TCL_BIN_DIR}/../bin 2>/dev/null` \
10363              `ls -d ${TCL_BIN_DIR}/..     2>/dev/null` \
10364              `ls -d ${TCL_PREFIX}/bin     2>/dev/null`"
10365        for i in $list ; do
10366            if test -f "$i/${TCLSH_PROG}" ; then
10367                REAL_TCL_BIN_DIR="`cd "$i"; pwd`/"
10368                break
10369            fi
10370        done
10371        TCLSH_PROG="${REAL_TCL_BIN_DIR}${TCLSH_PROG}"
10372    fi
10373    { echo "$as_me:$LINENO: result: ${TCLSH_PROG}" >&5
10374echo "${ECHO_T}${TCLSH_PROG}" >&6; }
10375
10376
10377
10378#--------------------------------------------------------------------
10379# These are for tclxmlConfig.sh
10380#--------------------------------------------------------------------
10381
10382# pkglibdir must be a fully qualified path and (not ${exec_prefix}/lib)
10383eval pkglibdir="${libdir}/${PACKAGE_NAME}${PACKAGE_VERSION}"
10384if test "${TCL_LIB_VERSIONS_OK}" = "ok"; then
10385    eval Tclxml_LIB_FLAG="-l${PACKAGE_NAME}${PACKAGE_VERSION}${DBGX}"
10386else
10387    eval Tclxml_LIB_FLAG="-l${PACKAGE_NAME}`echo ${PACKAGE_VERSION} | tr -d .`${DBGX}"
10388fi
10389Tclxml_BUILD_LIB_SPEC="-L`pwd` ${Tclxml_LIB_FLAG}"
10390Tclxml_LIB_SPEC="-L${pkglibdir} ${Tclxml_LIB_FLAG}"
10391
10392if test "${TCL_LIB_VERSIONS_OK}" = "ok"; then
10393    eval Tclxml_STUB_LIB_FLAG="-l${PACKAGE_NAME}stub${PACKAGE_VERSION}${DBGX}"
10394else
10395    eval Tclxml_STUB_LIB_FLAG="-l${PACKAGE_NAME}stub`echo ${PACKAGE_VERSION} | tr -d .`${DBGX}"
10396fi
10397Tclxml_BUILD_STUB_LIB_SPEC="-L`pwd` ${Tclxml_STUB_LIB_FLAG}"
10398Tclxml_STUB_LIB_SPEC="-L${pkglibdir} ${Tclxml_STUB_LIB_FLAG}"
10399Tclxml_BUILD_STUB_LIB_PATH="`pwd`/${Tclxmlstub_LIB_FILE}"
10400Tclxml_STUB_LIB_PATH="${pkglibdir}/${Tclxmlstub_LIB_FILE}"
10401eval pkgincludedir="${includedir}"
10402Tclxml_INCLUDE_SPEC="-I${pkgincludedir}"
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412#--------------------------------------------------------------------
10413# TODO: search for an appropriate xsltproc to use
10414#--------------------------------------------------------------------
10415
10416XSLTPROC=xsltproc
10417
10418
10419#--------------------------------------------------------------------
10420# Finally, substitute all of the various values into the Makefile.
10421# You may alternatively have a special pkgIndex.tcl.in or other files
10422# which require substituting th AC variables in.  Include these here.
10423#--------------------------------------------------------------------
10424
10425ac_config_files="$ac_config_files Makefile Makefile.macosx pkgIndex.tcl TclxmlConfig.sh include/tclxml/tclxml.h doc/tclxml.xml doc/tcldom.xml doc/tclxslt.xml doc/README.xml"
10426
10427cat >confcache <<\_ACEOF
10428# This file is a shell script that caches the results of configure
10429# tests run on this system so they can be shared between configure
10430# scripts and configure runs, see configure's option --config-cache.
10431# It is not useful on other systems.  If it contains results you don't
10432# want to keep, you may remove or edit it.
10433#
10434# config.status only pays attention to the cache file if you give it
10435# the --recheck option to rerun configure.
10436#
10437# `ac_cv_env_foo' variables (set or unset) will be overridden when
10438# loading this file, other *unset* `ac_cv_foo' will be assigned the
10439# following values.
10440
10441_ACEOF
10442
10443# The following way of writing the cache mishandles newlines in values,
10444# but we know of no workaround that is simple, portable, and efficient.
10445# So, we kill variables containing newlines.
10446# Ultrix sh set writes to stderr and can't be redirected directly,
10447# and sets the high bit in the cache file unless we assign to the vars.
10448(
10449  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10450    eval ac_val=\$$ac_var
10451    case $ac_val in #(
10452    *${as_nl}*)
10453      case $ac_var in #(
10454      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
10455echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
10456      esac
10457      case $ac_var in #(
10458      _ | IFS | as_nl) ;; #(
10459      *) $as_unset $ac_var ;;
10460      esac ;;
10461    esac
10462  done
10463
10464  (set) 2>&1 |
10465    case $as_nl`(ac_space=' '; set) 2>&1` in #(
10466    *${as_nl}ac_space=\ *)
10467      # `set' does not quote correctly, so add quotes (double-quote
10468      # substitution turns \\\\ into \\, and sed turns \\ into \).
10469      sed -n \
10470	"s/'/'\\\\''/g;
10471	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10472      ;; #(
10473    *)
10474      # `set' quotes correctly as required by POSIX, so do not add quotes.
10475      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10476      ;;
10477    esac |
10478    sort
10479) |
10480  sed '
10481     /^ac_cv_env_/b end
10482     t clear
10483     :clear
10484     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10485     t end
10486     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10487     :end' >>confcache
10488if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10489  if test -w "$cache_file"; then
10490    test "x$cache_file" != "x/dev/null" &&
10491      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
10492echo "$as_me: updating cache $cache_file" >&6;}
10493    cat confcache >$cache_file
10494  else
10495    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
10496echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10497  fi
10498fi
10499rm -f confcache
10500
10501test "x$prefix" = xNONE && prefix=$ac_default_prefix
10502# Let make expand exec_prefix.
10503test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10504
10505# Transform confdefs.h into DEFS.
10506# Protect against shell expansion while executing Makefile rules.
10507# Protect against Makefile macro expansion.
10508#
10509# If the first sed substitution is executed (which looks for macros that
10510# take arguments), then branch to the quote section.  Otherwise,
10511# look for a macro that doesn't take arguments.
10512ac_script='
10513t clear
10514:clear
10515s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\)/-D\1=\2/g
10516t quote
10517s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)/-D\1=\2/g
10518t quote
10519b any
10520:quote
10521s/[	 `~#$^&*(){}\\|;'\''"<>?]/\\&/g
10522s/\[/\\&/g
10523s/\]/\\&/g
10524s/\$/$$/g
10525H
10526:any
10527${
10528	g
10529	s/^\n//
10530	s/\n/ /g
10531	p
10532}
10533'
10534DEFS=`sed -n "$ac_script" confdefs.h`
10535
10536
10537ac_libobjs=
10538ac_ltlibobjs=
10539for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
10540  # 1. Remove the extension, and $U if already installed.
10541  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10542  ac_i=`echo "$ac_i" | sed "$ac_script"`
10543  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
10544  #    will be set to the directory where LIBOBJS objects are built.
10545  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10546  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
10547done
10548LIB@&t@OBJS=$ac_libobjs
10549
10550LTLIBOBJS=$ac_ltlibobjs
10551
10552
10553CFLAGS="${CFLAGS} ${CPPFLAGS}"; CPPFLAGS=""
10554
10555: ${CONFIG_STATUS=./config.status}
10556ac_clean_files_save=$ac_clean_files
10557ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10558{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10559echo "$as_me: creating $CONFIG_STATUS" >&6;}
10560cat >$CONFIG_STATUS <<_ACEOF
10561#! $SHELL
10562# Generated by $as_me.
10563# Run this file to recreate the current configuration.
10564# Compiler output produced by configure, useful for debugging
10565# configure, is in config.log if it exists.
10566
10567debug=false
10568ac_cs_recheck=false
10569ac_cs_silent=false
10570SHELL=\${CONFIG_SHELL-$SHELL}
10571_ACEOF
10572
10573cat >>$CONFIG_STATUS <<\_ACEOF
10574## --------------------- ##
10575## M4sh Initialization.  ##
10576## --------------------- ##
10577
10578# Be more Bourne compatible
10579DUALCASE=1; export DUALCASE # for MKS sh
10580if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10581  emulate sh
10582  NULLCMD=:
10583  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10584  # is contrary to our usage.  Disable this feature.
10585  alias -g '${1+"$@"}'='"$@"'
10586  setopt NO_GLOB_SUBST
10587else
10588  case `(set -o) 2>/dev/null` in
10589  *posix*) set -o posix ;;
10590esac
10591
10592fi
10593
10594
10595
10596
10597# PATH needs CR
10598# Avoid depending upon Character Ranges.
10599as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10600as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10601as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10602as_cr_digits='0123456789'
10603as_cr_alnum=$as_cr_Letters$as_cr_digits
10604
10605# The user is always right.
10606if test "${PATH_SEPARATOR+set}" != set; then
10607  echo "#! /bin/sh" >conf$$.sh
10608  echo  "exit 0"   >>conf$$.sh
10609  chmod +x conf$$.sh
10610  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10611    PATH_SEPARATOR=';'
10612  else
10613    PATH_SEPARATOR=:
10614  fi
10615  rm -f conf$$.sh
10616fi
10617
10618# Support unset when possible.
10619if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10620  as_unset=unset
10621else
10622  as_unset=false
10623fi
10624
10625
10626# IFS
10627# We need space, tab and new line, in precisely that order.  Quoting is
10628# there to prevent editors from complaining about space-tab.
10629# (If _AS_PATH_WALK were called with IFS unset, it would disable word
10630# splitting by setting IFS to empty value.)
10631as_nl='
10632'
10633IFS=" ""	$as_nl"
10634
10635# Find who we are.  Look in the path if we contain no directory separator.
10636case $0 in
10637  *[\\/]* ) as_myself=$0 ;;
10638  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10639for as_dir in $PATH
10640do
10641  IFS=$as_save_IFS
10642  test -z "$as_dir" && as_dir=.
10643  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10644done
10645IFS=$as_save_IFS
10646
10647     ;;
10648esac
10649# We did not find ourselves, most probably we were run as `sh COMMAND'
10650# in which case we are not to be found in the path.
10651if test "x$as_myself" = x; then
10652  as_myself=$0
10653fi
10654if test ! -f "$as_myself"; then
10655  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10656  { (exit 1); exit 1; }
10657fi
10658
10659# Work around bugs in pre-3.0 UWIN ksh.
10660for as_var in ENV MAIL MAILPATH
10661do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
10662done
10663PS1='$ '
10664PS2='> '
10665PS4='+ '
10666
10667# NLS nuisances.
10668for as_var in \
10669  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10670  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10671  LC_TELEPHONE LC_TIME
10672do
10673  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10674    eval $as_var=C; export $as_var
10675  else
10676    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
10677  fi
10678done
10679
10680# Required to use basename.
10681if expr a : '\(a\)' >/dev/null 2>&1 &&
10682   test "X`expr 00001 : '.*\(...\)'`" = X001; then
10683  as_expr=expr
10684else
10685  as_expr=false
10686fi
10687
10688if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10689  as_basename=basename
10690else
10691  as_basename=false
10692fi
10693
10694
10695# Name of the executable.
10696as_me=`$as_basename -- "$0" ||
10697$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10698	 X"$0" : 'X\(//\)$' \| \
10699	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10700echo X/"$0" |
10701    sed '/^.*\/\([^/][^/]*\)\/*$/{
10702	    s//\1/
10703	    q
10704	  }
10705	  /^X\/\(\/\/\)$/{
10706	    s//\1/
10707	    q
10708	  }
10709	  /^X\/\(\/\).*/{
10710	    s//\1/
10711	    q
10712	  }
10713	  s/.*/./; q'`
10714
10715# CDPATH.
10716$as_unset CDPATH
10717
10718
10719
10720  as_lineno_1=$LINENO
10721  as_lineno_2=$LINENO
10722  test "x$as_lineno_1" != "x$as_lineno_2" &&
10723  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
10724
10725  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10726  # uniformly replaced by the line number.  The first 'sed' inserts a
10727  # line-number line after each line using $LINENO; the second 'sed'
10728  # does the real work.  The second script uses 'N' to pair each
10729  # line-number line with the line containing $LINENO, and appends
10730  # trailing '-' during substitution so that $LINENO is not a special
10731  # case at line end.
10732  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10733  # scripts with optimization help from Paolo Bonzini.  Blame Lee
10734  # E. McMahon (1931-1989) for sed's syntax.  :-)
10735  sed -n '
10736    p
10737    /[$]LINENO/=
10738  ' <$as_myself |
10739    sed '
10740      s/[$]LINENO.*/&-/
10741      t lineno
10742      b
10743      :lineno
10744      N
10745      :loop
10746      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
10747      t loop
10748      s/-\n.*//
10749    ' >$as_me.lineno &&
10750  chmod +x "$as_me.lineno" ||
10751    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
10752   { (exit 1); exit 1; }; }
10753
10754  # Don't try to exec as it changes $[0], causing all sort of problems
10755  # (the dirname of $[0] is not the place where we might find the
10756  # original and so on.  Autoconf is especially sensitive to this).
10757  . "./$as_me.lineno"
10758  # Exit status is that of the last command.
10759  exit
10760}
10761
10762
10763if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10764  as_dirname=dirname
10765else
10766  as_dirname=false
10767fi
10768
10769ECHO_C= ECHO_N= ECHO_T=
10770case `echo -n x` in
10771-n*)
10772  case `echo 'x\c'` in
10773  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
10774  *)   ECHO_C='\c';;
10775  esac;;
10776*)
10777  ECHO_N='-n';;
10778esac
10779
10780if expr a : '\(a\)' >/dev/null 2>&1 &&
10781   test "X`expr 00001 : '.*\(...\)'`" = X001; then
10782  as_expr=expr
10783else
10784  as_expr=false
10785fi
10786
10787rm -f conf$$ conf$$.exe conf$$.file
10788if test -d conf$$.dir; then
10789  rm -f conf$$.dir/conf$$.file
10790else
10791  rm -f conf$$.dir
10792  mkdir conf$$.dir
10793fi
10794echo >conf$$.file
10795if ln -s conf$$.file conf$$ 2>/dev/null; then
10796  as_ln_s='ln -s'
10797  # ... but there are two gotchas:
10798  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10799  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10800  # In both cases, we have to default to `cp -p'.
10801  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10802    as_ln_s='cp -p'
10803elif ln conf$$.file conf$$ 2>/dev/null; then
10804  as_ln_s=ln
10805else
10806  as_ln_s='cp -p'
10807fi
10808rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10809rmdir conf$$.dir 2>/dev/null
10810
10811if mkdir -p . 2>/dev/null; then
10812  as_mkdir_p=:
10813else
10814  test -d ./-p && rmdir ./-p
10815  as_mkdir_p=false
10816fi
10817
10818if test -x / >/dev/null 2>&1; then
10819  as_test_x='test -x'
10820else
10821  if ls -dL / >/dev/null 2>&1; then
10822    as_ls_L_option=L
10823  else
10824    as_ls_L_option=
10825  fi
10826  as_test_x='
10827    eval sh -c '\''
10828      if test -d "$1"; then
10829        test -d "$1/.";
10830      else
10831	case $1 in
10832        -*)set "./$1";;
10833	esac;
10834	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
10835	???[sx]*):;;*)false;;esac;fi
10836    '\'' sh
10837  '
10838fi
10839as_executable_p=$as_test_x
10840
10841# Sed expression to map a string onto a valid CPP name.
10842as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10843
10844# Sed expression to map a string onto a valid variable name.
10845as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10846
10847
10848exec 6>&1
10849
10850# Save the log message, to keep $[0] and so on meaningful, and to
10851# report actual input values of CONFIG_FILES etc. instead of their
10852# values after options handling.
10853ac_log="
10854This file was extended by Tclxml $as_me 3.3, which was
10855generated by GNU Autoconf 2.61.  Invocation command line was
10856
10857  CONFIG_FILES    = $CONFIG_FILES
10858  CONFIG_HEADERS  = $CONFIG_HEADERS
10859  CONFIG_LINKS    = $CONFIG_LINKS
10860  CONFIG_COMMANDS = $CONFIG_COMMANDS
10861  $ $0 $@
10862
10863on `(hostname || uname -n) 2>/dev/null | sed 1q`
10864"
10865
10866_ACEOF
10867
10868cat >>$CONFIG_STATUS <<_ACEOF
10869# Files that config.status was made for.
10870config_files="$ac_config_files"
10871
10872_ACEOF
10873
10874cat >>$CONFIG_STATUS <<\_ACEOF
10875ac_cs_usage="\
10876\`$as_me' instantiates files from templates according to the
10877current configuration.
10878
10879Usage: $0 [OPTIONS] [FILE]...
10880
10881  -h, --help       print this help, then exit
10882  -V, --version    print version number and configuration settings, then exit
10883  -q, --quiet      do not print progress messages
10884  -d, --debug      don't remove temporary files
10885      --recheck    update $as_me by reconfiguring in the same conditions
10886  --file=FILE[:TEMPLATE]
10887		   instantiate the configuration file FILE
10888
10889Configuration files:
10890$config_files
10891
10892Report bugs to <bug-autoconf@gnu.org>."
10893
10894_ACEOF
10895cat >>$CONFIG_STATUS <<_ACEOF
10896ac_cs_version="\\
10897Tclxml config.status 3.3
10898configured by $0, generated by GNU Autoconf 2.61,
10899  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
10900
10901Copyright (C) 2006 Free Software Foundation, Inc.
10902This config.status script is free software; the Free Software Foundation
10903gives unlimited permission to copy, distribute and modify it."
10904
10905ac_pwd='$ac_pwd'
10906srcdir='$srcdir'
10907INSTALL='$INSTALL'
10908_ACEOF
10909
10910cat >>$CONFIG_STATUS <<\_ACEOF
10911# If no file are specified by the user, then we need to provide default
10912# value.  By we need to know if files were specified by the user.
10913ac_need_defaults=:
10914while test $# != 0
10915do
10916  case $1 in
10917  --*=*)
10918    ac_option=`expr "X$1" : 'X\([^=]*\)='`
10919    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10920    ac_shift=:
10921    ;;
10922  *)
10923    ac_option=$1
10924    ac_optarg=$2
10925    ac_shift=shift
10926    ;;
10927  esac
10928
10929  case $ac_option in
10930  # Handling of the options.
10931  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10932    ac_cs_recheck=: ;;
10933  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10934    echo "$ac_cs_version"; exit ;;
10935  --debug | --debu | --deb | --de | --d | -d )
10936    debug=: ;;
10937  --file | --fil | --fi | --f )
10938    $ac_shift
10939    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10940    ac_need_defaults=false;;
10941  --he | --h |  --help | --hel | -h )
10942    echo "$ac_cs_usage"; exit ;;
10943  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10944  | -silent | --silent | --silen | --sile | --sil | --si | --s)
10945    ac_cs_silent=: ;;
10946
10947  # This is an error.
10948  -*) { echo "$as_me: error: unrecognized option: $1
10949Try \`$0 --help' for more information." >&2
10950   { (exit 1); exit 1; }; } ;;
10951
10952  *) ac_config_targets="$ac_config_targets $1"
10953     ac_need_defaults=false ;;
10954
10955  esac
10956  shift
10957done
10958
10959ac_configure_extra_args=
10960
10961if $ac_cs_silent; then
10962  exec 6>/dev/null
10963  ac_configure_extra_args="$ac_configure_extra_args --silent"
10964fi
10965
10966_ACEOF
10967cat >>$CONFIG_STATUS <<_ACEOF
10968if \$ac_cs_recheck; then
10969  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10970  CONFIG_SHELL=$SHELL
10971  export CONFIG_SHELL
10972  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10973fi
10974
10975_ACEOF
10976cat >>$CONFIG_STATUS <<\_ACEOF
10977exec 5>>config.log
10978{
10979  echo
10980  sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
10981@%:@@%:@ Running $as_me. @%:@@%:@
10982_ASBOX
10983  echo "$ac_log"
10984} >&5
10985
10986_ACEOF
10987cat >>$CONFIG_STATUS <<_ACEOF
10988_ACEOF
10989
10990cat >>$CONFIG_STATUS <<\_ACEOF
10991
10992# Handling of arguments.
10993for ac_config_target in $ac_config_targets
10994do
10995  case $ac_config_target in
10996    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10997    "Makefile.macosx") CONFIG_FILES="$CONFIG_FILES Makefile.macosx" ;;
10998    "pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES pkgIndex.tcl" ;;
10999    "TclxmlConfig.sh") CONFIG_FILES="$CONFIG_FILES TclxmlConfig.sh" ;;
11000    "include/tclxml/tclxml.h") CONFIG_FILES="$CONFIG_FILES include/tclxml/tclxml.h" ;;
11001    "doc/tclxml.xml") CONFIG_FILES="$CONFIG_FILES doc/tclxml.xml" ;;
11002    "doc/tcldom.xml") CONFIG_FILES="$CONFIG_FILES doc/tcldom.xml" ;;
11003    "doc/tclxslt.xml") CONFIG_FILES="$CONFIG_FILES doc/tclxslt.xml" ;;
11004    "doc/README.xml") CONFIG_FILES="$CONFIG_FILES doc/README.xml" ;;
11005
11006  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11007echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11008   { (exit 1); exit 1; }; };;
11009  esac
11010done
11011
11012
11013# If the user did not use the arguments to specify the items to instantiate,
11014# then the envvar interface is used.  Set only those that are not.
11015# We use the long form for the default assignment because of an extremely
11016# bizarre bug on SunOS 4.1.3.
11017if $ac_need_defaults; then
11018  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11019fi
11020
11021# Have a temporary directory for convenience.  Make it in the build tree
11022# simply because there is no reason against having it here, and in addition,
11023# creating and moving files from /tmp can sometimes cause problems.
11024# Hook for its removal unless debugging.
11025# Note that there is a small window in which the directory will not be cleaned:
11026# after its creation but before its name has been assigned to `$tmp'.
11027$debug ||
11028{
11029  tmp=
11030  trap 'exit_status=$?
11031  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11032' 0
11033  trap '{ (exit 1); exit 1; }' 1 2 13 15
11034}
11035# Create a (secure) tmp directory for tmp files.
11036
11037{
11038  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11039  test -n "$tmp" && test -d "$tmp"
11040}  ||
11041{
11042  tmp=./conf$$-$RANDOM
11043  (umask 077 && mkdir "$tmp")
11044} ||
11045{
11046   echo "$me: cannot create a temporary directory in ." >&2
11047   { (exit 1); exit 1; }
11048}
11049
11050#
11051# Set up the sed scripts for CONFIG_FILES section.
11052#
11053
11054# No need to generate the scripts if there are no CONFIG_FILES.
11055# This happens for instance when ./config.status config.h
11056if test -n "$CONFIG_FILES"; then
11057
11058_ACEOF
11059
11060
11061
11062ac_delim='%!_!# '
11063for ac_last_try in false false false false false :; do
11064  cat >conf$$subs.sed <<_ACEOF
11065SHELL!$SHELL$ac_delim
11066PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
11067PACKAGE_NAME!$PACKAGE_NAME$ac_delim
11068PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
11069PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
11070PACKAGE_STRING!$PACKAGE_STRING$ac_delim
11071PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
11072exec_prefix!$exec_prefix$ac_delim
11073prefix!$prefix$ac_delim
11074program_transform_name!$program_transform_name$ac_delim
11075bindir!$bindir$ac_delim
11076sbindir!$sbindir$ac_delim
11077libexecdir!$libexecdir$ac_delim
11078datarootdir!$datarootdir$ac_delim
11079datadir!$datadir$ac_delim
11080sysconfdir!$sysconfdir$ac_delim
11081sharedstatedir!$sharedstatedir$ac_delim
11082localstatedir!$localstatedir$ac_delim
11083includedir!$includedir$ac_delim
11084oldincludedir!$oldincludedir$ac_delim
11085docdir!$docdir$ac_delim
11086infodir!$infodir$ac_delim
11087htmldir!$htmldir$ac_delim
11088dvidir!$dvidir$ac_delim
11089pdfdir!$pdfdir$ac_delim
11090psdir!$psdir$ac_delim
11091libdir!$libdir$ac_delim
11092localedir!$localedir$ac_delim
11093mandir!$mandir$ac_delim
11094DEFS!$DEFS$ac_delim
11095ECHO_C!$ECHO_C$ac_delim
11096ECHO_N!$ECHO_N$ac_delim
11097ECHO_T!$ECHO_T$ac_delim
11098LIBS!$LIBS$ac_delim
11099build_alias!$build_alias$ac_delim
11100host_alias!$host_alias$ac_delim
11101target_alias!$target_alias$ac_delim
11102CYGPATH!$CYGPATH$ac_delim
11103EXEEXT!$EXEEXT$ac_delim
11104PKG_LIB_FILE!$PKG_LIB_FILE$ac_delim
11105PKG_STUB_LIB_FILE!$PKG_STUB_LIB_FILE$ac_delim
11106PKG_STUB_SOURCES!$PKG_STUB_SOURCES$ac_delim
11107PKG_STUB_OBJECTS!$PKG_STUB_OBJECTS$ac_delim
11108PKG_TCL_SOURCES!$PKG_TCL_SOURCES$ac_delim
11109PKG_HEADERS!$PKG_HEADERS$ac_delim
11110PKG_INCLUDES!$PKG_INCLUDES$ac_delim
11111PKG_LIBS!$PKG_LIBS$ac_delim
11112PKG_CFLAGS!$PKG_CFLAGS$ac_delim
11113TCL_VERSION!$TCL_VERSION$ac_delim
11114TCL_BIN_DIR!$TCL_BIN_DIR$ac_delim
11115TCL_SRC_DIR!$TCL_SRC_DIR$ac_delim
11116TCL_LIB_FILE!$TCL_LIB_FILE$ac_delim
11117TCL_LIB_FLAG!$TCL_LIB_FLAG$ac_delim
11118TCL_LIB_SPEC!$TCL_LIB_SPEC$ac_delim
11119TCL_STUB_LIB_FILE!$TCL_STUB_LIB_FILE$ac_delim
11120TCL_STUB_LIB_FLAG!$TCL_STUB_LIB_FLAG$ac_delim
11121TCL_STUB_LIB_SPEC!$TCL_STUB_LIB_SPEC$ac_delim
11122TCL_LIBS!$TCL_LIBS$ac_delim
11123TCL_DEFS!$TCL_DEFS$ac_delim
11124TCL_EXTRA_CFLAGS!$TCL_EXTRA_CFLAGS$ac_delim
11125TCL_LD_FLAGS!$TCL_LD_FLAGS$ac_delim
11126TCL_SHLIB_LD_LIBS!$TCL_SHLIB_LD_LIBS$ac_delim
11127CC!$CC$ac_delim
11128CFLAGS!$CFLAGS$ac_delim
11129LDFLAGS!$LDFLAGS$ac_delim
11130CPPFLAGS!$CPPFLAGS$ac_delim
11131ac_ct_CC!$ac_ct_CC$ac_delim
11132OBJEXT!$OBJEXT$ac_delim
11133CPP!$CPP$ac_delim
11134INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
11135INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
11136INSTALL_DATA!$INSTALL_DATA$ac_delim
11137SET_MAKE!$SET_MAKE$ac_delim
11138RANLIB!$RANLIB$ac_delim
11139GREP!$GREP$ac_delim
11140EGREP!$EGREP$ac_delim
11141MATH_LIBS!$MATH_LIBS$ac_delim
11142PKG_SOURCES!$PKG_SOURCES$ac_delim
11143PKG_OBJECTS!$PKG_OBJECTS$ac_delim
11144CLEANFILES!$CLEANFILES$ac_delim
11145TCL_INCLUDES!$TCL_INCLUDES$ac_delim
11146TCL_THREADS!$TCL_THREADS$ac_delim
11147SHARED_BUILD!$SHARED_BUILD$ac_delim
11148AR!$AR$ac_delim
11149CELIB_DIR!$CELIB_DIR$ac_delim
11150LIB@&t@OBJS!$LIB@&t@OBJS$ac_delim
11151DL_LIBS!$DL_LIBS$ac_delim
11152CFLAGS_DEBUG!$CFLAGS_DEBUG$ac_delim
11153CFLAGS_OPTIMIZE!$CFLAGS_OPTIMIZE$ac_delim
11154CFLAGS_WARNING!$CFLAGS_WARNING$ac_delim
11155STLIB_LD!$STLIB_LD$ac_delim
11156SHLIB_LD!$SHLIB_LD$ac_delim
11157SHLIB_LD_LIBS!$SHLIB_LD_LIBS$ac_delim
11158SHLIB_CFLAGS!$SHLIB_CFLAGS$ac_delim
11159LD_LIBRARY_PATH_VAR!$LD_LIBRARY_PATH_VAR$ac_delim
11160TCL_DBGX!$TCL_DBGX$ac_delim
11161CFLAGS_DEFAULT!$CFLAGS_DEFAULT$ac_delim
11162_ACEOF
11163
11164  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
11165    break
11166  elif $ac_last_try; then
11167    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
11168echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
11169   { (exit 1); exit 1; }; }
11170  else
11171    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11172  fi
11173done
11174
11175ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
11176if test -n "$ac_eof"; then
11177  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
11178  ac_eof=`expr $ac_eof + 1`
11179fi
11180
11181cat >>$CONFIG_STATUS <<_ACEOF
11182cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
11183/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11184_ACEOF
11185sed '
11186s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
11187s/^/s,@/; s/!/@,|#_!!_#|/
11188:n
11189t n
11190s/'"$ac_delim"'$/,g/; t
11191s/$/\\/; p
11192N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
11193' >>$CONFIG_STATUS <conf$$subs.sed
11194rm -f conf$$subs.sed
11195cat >>$CONFIG_STATUS <<_ACEOF
11196CEOF$ac_eof
11197_ACEOF
11198
11199
11200ac_delim='%!_!# '
11201for ac_last_try in false false false false false :; do
11202  cat >conf$$subs.sed <<_ACEOF
11203LDFLAGS_DEFAULT!$LDFLAGS_DEFAULT$ac_delim
11204MAKE_LIB!$MAKE_LIB$ac_delim
11205MAKE_SHARED_LIB!$MAKE_SHARED_LIB$ac_delim
11206MAKE_STATIC_LIB!$MAKE_STATIC_LIB$ac_delim
11207MAKE_STUB_LIB!$MAKE_STUB_LIB$ac_delim
11208RANLIB_STUB!$RANLIB_STUB$ac_delim
11209XML2_PREFIX!$XML2_PREFIX$ac_delim
11210XML2_CFLAGS!$XML2_CFLAGS$ac_delim
11211XML2_VERSION!$XML2_VERSION$ac_delim
11212XSLT_VERSION!$XSLT_VERSION$ac_delim
11213XSLT_PREFIX!$XSLT_PREFIX$ac_delim
11214XSLT_CFLAGS!$XSLT_CFLAGS$ac_delim
11215XML_STATIC!$XML_STATIC$ac_delim
11216XML2_LIBS!$XML2_LIBS$ac_delim
11217XSLT_LIBS!$XSLT_LIBS$ac_delim
11218FIX_LIB!$FIX_LIB$ac_delim
11219TCLSH_PROG!$TCLSH_PROG$ac_delim
11220Tclxml_BUILD_LIB_SPEC!$Tclxml_BUILD_LIB_SPEC$ac_delim
11221Tclxml_LIB_SPEC!$Tclxml_LIB_SPEC$ac_delim
11222Tclxml_BUILD_STUB_LIB_SPEC!$Tclxml_BUILD_STUB_LIB_SPEC$ac_delim
11223Tclxml_STUB_LIB_SPEC!$Tclxml_STUB_LIB_SPEC$ac_delim
11224Tclxml_BUILD_STUB_LIB_PATH!$Tclxml_BUILD_STUB_LIB_PATH$ac_delim
11225Tclxml_STUB_LIB_PATH!$Tclxml_STUB_LIB_PATH$ac_delim
11226Tclxml_INCLUDE_SPEC!$Tclxml_INCLUDE_SPEC$ac_delim
11227XSLTPROC!$XSLTPROC$ac_delim
11228LTLIBOBJS!$LTLIBOBJS$ac_delim
11229_ACEOF
11230
11231  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 26; then
11232    break
11233  elif $ac_last_try; then
11234    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
11235echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
11236   { (exit 1); exit 1; }; }
11237  else
11238    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11239  fi
11240done
11241
11242ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
11243if test -n "$ac_eof"; then
11244  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
11245  ac_eof=`expr $ac_eof + 1`
11246fi
11247
11248cat >>$CONFIG_STATUS <<_ACEOF
11249cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
11250/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
11251_ACEOF
11252sed '
11253s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
11254s/^/s,@/; s/!/@,|#_!!_#|/
11255:n
11256t n
11257s/'"$ac_delim"'$/,g/; t
11258s/$/\\/; p
11259N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
11260' >>$CONFIG_STATUS <conf$$subs.sed
11261rm -f conf$$subs.sed
11262cat >>$CONFIG_STATUS <<_ACEOF
11263:end
11264s/|#_!!_#|//g
11265CEOF$ac_eof
11266_ACEOF
11267
11268
11269# VPATH may cause trouble with some makes, so we remove $(srcdir),
11270# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11271# trailing colons and then remove the whole line if VPATH becomes empty
11272# (actually we leave an empty line to preserve line numbers).
11273if test "x$srcdir" = x.; then
11274  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
11275s/:*\$(srcdir):*/:/
11276s/:*\${srcdir}:*/:/
11277s/:*@srcdir@:*/:/
11278s/^\([^=]*=[	 ]*\):*/\1/
11279s/:*$//
11280s/^[^=]*=[	 ]*$//
11281}'
11282fi
11283
11284cat >>$CONFIG_STATUS <<\_ACEOF
11285fi # test -n "$CONFIG_FILES"
11286
11287
11288for ac_tag in  :F $CONFIG_FILES
11289do
11290  case $ac_tag in
11291  :[FHLC]) ac_mode=$ac_tag; continue;;
11292  esac
11293  case $ac_mode$ac_tag in
11294  :[FHL]*:*);;
11295  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
11296echo "$as_me: error: Invalid tag $ac_tag." >&2;}
11297   { (exit 1); exit 1; }; };;
11298  :[FH]-) ac_tag=-:-;;
11299  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11300  esac
11301  ac_save_IFS=$IFS
11302  IFS=:
11303  set x $ac_tag
11304  IFS=$ac_save_IFS
11305  shift
11306  ac_file=$1
11307  shift
11308
11309  case $ac_mode in
11310  :L) ac_source=$1;;
11311  :[FH])
11312    ac_file_inputs=
11313    for ac_f
11314    do
11315      case $ac_f in
11316      -) ac_f="$tmp/stdin";;
11317      *) # Look for the file first in the build tree, then in the source tree
11318	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
11319	 # because $ac_f cannot contain `:'.
11320	 test -f "$ac_f" ||
11321	   case $ac_f in
11322	   [\\/$]*) false;;
11323	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11324	   esac ||
11325	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
11326echo "$as_me: error: cannot find input file: $ac_f" >&2;}
11327   { (exit 1); exit 1; }; };;
11328      esac
11329      ac_file_inputs="$ac_file_inputs $ac_f"
11330    done
11331
11332    # Let's still pretend it is `configure' which instantiates (i.e., don't
11333    # use $as_me), people would be surprised to read:
11334    #    /* config.h.  Generated by config.status.  */
11335    configure_input="Generated from "`IFS=:
11336	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
11337    if test x"$ac_file" != x-; then
11338      configure_input="$ac_file.  $configure_input"
11339      { echo "$as_me:$LINENO: creating $ac_file" >&5
11340echo "$as_me: creating $ac_file" >&6;}
11341    fi
11342
11343    case $ac_tag in
11344    *:-:* | *:-) cat >"$tmp/stdin";;
11345    esac
11346    ;;
11347  esac
11348
11349  ac_dir=`$as_dirname -- "$ac_file" ||
11350$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11351	 X"$ac_file" : 'X\(//\)[^/]' \| \
11352	 X"$ac_file" : 'X\(//\)$' \| \
11353	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11354echo X"$ac_file" |
11355    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11356	    s//\1/
11357	    q
11358	  }
11359	  /^X\(\/\/\)[^/].*/{
11360	    s//\1/
11361	    q
11362	  }
11363	  /^X\(\/\/\)$/{
11364	    s//\1/
11365	    q
11366	  }
11367	  /^X\(\/\).*/{
11368	    s//\1/
11369	    q
11370	  }
11371	  s/.*/./; q'`
11372  { as_dir="$ac_dir"
11373  case $as_dir in #(
11374  -*) as_dir=./$as_dir;;
11375  esac
11376  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
11377    as_dirs=
11378    while :; do
11379      case $as_dir in #(
11380      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
11381      *) as_qdir=$as_dir;;
11382      esac
11383      as_dirs="'$as_qdir' $as_dirs"
11384      as_dir=`$as_dirname -- "$as_dir" ||
11385$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11386	 X"$as_dir" : 'X\(//\)[^/]' \| \
11387	 X"$as_dir" : 'X\(//\)$' \| \
11388	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11389echo X"$as_dir" |
11390    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11391	    s//\1/
11392	    q
11393	  }
11394	  /^X\(\/\/\)[^/].*/{
11395	    s//\1/
11396	    q
11397	  }
11398	  /^X\(\/\/\)$/{
11399	    s//\1/
11400	    q
11401	  }
11402	  /^X\(\/\).*/{
11403	    s//\1/
11404	    q
11405	  }
11406	  s/.*/./; q'`
11407      test -d "$as_dir" && break
11408    done
11409    test -z "$as_dirs" || eval "mkdir $as_dirs"
11410  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11411echo "$as_me: error: cannot create directory $as_dir" >&2;}
11412   { (exit 1); exit 1; }; }; }
11413  ac_builddir=.
11414
11415case "$ac_dir" in
11416.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11417*)
11418  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11419  # A ".." for each directory in $ac_dir_suffix.
11420  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
11421  case $ac_top_builddir_sub in
11422  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11423  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11424  esac ;;
11425esac
11426ac_abs_top_builddir=$ac_pwd
11427ac_abs_builddir=$ac_pwd$ac_dir_suffix
11428# for backward compatibility:
11429ac_top_builddir=$ac_top_build_prefix
11430
11431case $srcdir in
11432  .)  # We are building in place.
11433    ac_srcdir=.
11434    ac_top_srcdir=$ac_top_builddir_sub
11435    ac_abs_top_srcdir=$ac_pwd ;;
11436  [\\/]* | ?:[\\/]* )  # Absolute name.
11437    ac_srcdir=$srcdir$ac_dir_suffix;
11438    ac_top_srcdir=$srcdir
11439    ac_abs_top_srcdir=$srcdir ;;
11440  *) # Relative name.
11441    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11442    ac_top_srcdir=$ac_top_build_prefix$srcdir
11443    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11444esac
11445ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11446
11447
11448  case $ac_mode in
11449  :F)
11450  #
11451  # CONFIG_FILE
11452  #
11453
11454  case $INSTALL in
11455  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11456  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11457  esac
11458_ACEOF
11459
11460cat >>$CONFIG_STATUS <<\_ACEOF
11461# If the template does not know about datarootdir, expand it.
11462# FIXME: This hack should be removed a few years after 2.60.
11463ac_datarootdir_hack=; ac_datarootdir_seen=
11464
11465case `sed -n '/datarootdir/ {
11466  p
11467  q
11468}
11469/@datadir@/p
11470/@docdir@/p
11471/@infodir@/p
11472/@localedir@/p
11473/@mandir@/p
11474' $ac_file_inputs` in
11475*datarootdir*) ac_datarootdir_seen=yes;;
11476*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11477  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11478echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11479_ACEOF
11480cat >>$CONFIG_STATUS <<_ACEOF
11481  ac_datarootdir_hack='
11482  s&@datadir@&$datadir&g
11483  s&@docdir@&$docdir&g
11484  s&@infodir@&$infodir&g
11485  s&@localedir@&$localedir&g
11486  s&@mandir@&$mandir&g
11487    s&\\\${datarootdir}&$datarootdir&g' ;;
11488esac
11489_ACEOF
11490
11491# Neutralize VPATH when `$srcdir' = `.'.
11492# Shell code in configure.ac might set extrasub.
11493# FIXME: do we really want to maintain this feature?
11494cat >>$CONFIG_STATUS <<_ACEOF
11495  sed "$ac_vpsub
11496$extrasub
11497_ACEOF
11498cat >>$CONFIG_STATUS <<\_ACEOF
11499:t
11500/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11501s&@configure_input@&$configure_input&;t t
11502s&@top_builddir@&$ac_top_builddir_sub&;t t
11503s&@srcdir@&$ac_srcdir&;t t
11504s&@abs_srcdir@&$ac_abs_srcdir&;t t
11505s&@top_srcdir@&$ac_top_srcdir&;t t
11506s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11507s&@builddir@&$ac_builddir&;t t
11508s&@abs_builddir@&$ac_abs_builddir&;t t
11509s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11510s&@INSTALL@&$ac_INSTALL&;t t
11511$ac_datarootdir_hack
11512" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
11513
11514test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11515  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
11516  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
11517  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11518which seems to be undefined.  Please make sure it is defined." >&5
11519echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11520which seems to be undefined.  Please make sure it is defined." >&2;}
11521
11522  rm -f "$tmp/stdin"
11523  case $ac_file in
11524  -) cat "$tmp/out"; rm -f "$tmp/out";;
11525  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
11526  esac
11527 ;;
11528
11529
11530
11531  esac
11532
11533done # for ac_tag
11534
11535
11536{ (exit 0); exit 0; }
11537_ACEOF
11538chmod +x $CONFIG_STATUS
11539ac_clean_files=$ac_clean_files_save
11540
11541
11542# configure is writing to config.log, and then calls config.status.
11543# config.status does its own redirection, appending to config.log.
11544# Unfortunately, on DOS this fails, as config.log is still kept open
11545# by configure, so config.status won't be able to write to it; its
11546# output is simply discarded.  So we exec the FD to /dev/null,
11547# effectively closing config.log, so it can be properly (re)opened and
11548# appended to by config.status.  When coming back to configure, we
11549# need to make the FD available again.
11550if test "$no_create" != yes; then
11551  ac_cs_success=:
11552  ac_config_status_args=
11553  test "$silent" = yes &&
11554    ac_config_status_args="$ac_config_status_args --quiet"
11555  exec 5>/dev/null
11556  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11557  exec 5>>config.log
11558  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11559  # would make configure fail if this is the last instruction.
11560  $ac_cs_success || { (exit 1); exit 1; }
11561fi
11562
11563
11564#--------------------------------------------------------------------
11565