1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.70 for tdbc 1.1.3.
4#
5#
6# Copyright (C) 1992-1996, 1998-2017, 2020 Free Software Foundation, Inc.
7#
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17as_nop=:
18if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
19then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else $as_nop
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36
37# Reset variables that may have inherited troublesome values from
38# the environment.
39
40# IFS needs to be set, to space, tab, and newline, in precisely that order.
41# (If _AS_PATH_WALK were called with IFS unset, it would have the
42# side effect of setting IFS to empty, thus disabling word splitting.)
43# Quoting is to prevent editors from complaining about space-tab.
44as_nl='
45'
46export as_nl
47IFS=" ""	$as_nl"
48
49PS1='$ '
50PS2='> '
51PS4='+ '
52
53# Ensure predictable behavior from utilities with locale-dependent output.
54LC_ALL=C
55export LC_ALL
56LANGUAGE=C
57export LANGUAGE
58
59# We cannot yet rely on "unset" to work, but we need these variables
60# to be unset--not just set to an empty or harmless value--now, to
61# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
62# also avoids known problems related to "unset" and subshell syntax
63# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
64for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
65do eval test \${$as_var+y} \
66  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
67done
68
69# Ensure that fds 0, 1, and 2 are open.
70if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
71if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
72if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
73
74# The user is always right.
75if ${PATH_SEPARATOR+false} :; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# Find who we are.  Look in the path if we contain no directory separator.
85as_myself=
86case $0 in #((
87  *[\\/]* ) as_myself=$0 ;;
88  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
89for as_dir in $PATH
90do
91  IFS=$as_save_IFS
92  case $as_dir in #(((
93    '') as_dir=./ ;;
94    */) ;;
95    *) as_dir=$as_dir/ ;;
96  esac
97    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
98  done
99IFS=$as_save_IFS
100
101     ;;
102esac
103# We did not find ourselves, most probably we were run as `sh COMMAND'
104# in which case we are not to be found in the path.
105if test "x$as_myself" = x; then
106  as_myself=$0
107fi
108if test ! -f "$as_myself"; then
109  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110  exit 1
111fi
112
113
114# Use a proper internal environment variable to ensure we don't fall
115  # into an infinite loop, continuously re-executing ourselves.
116  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
117    _as_can_reexec=no; export _as_can_reexec;
118    # We cannot yet assume a decent shell, so we have to provide a
119# neutralization value for shells without unset; and this also
120# works around shells that cannot unset nonexistent variables.
121# Preserve -v and -x to the replacement shell.
122BASH_ENV=/dev/null
123ENV=/dev/null
124(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
125case $- in # ((((
126  *v*x* | *x*v* ) as_opts=-vx ;;
127  *v* ) as_opts=-v ;;
128  *x* ) as_opts=-x ;;
129  * ) as_opts= ;;
130esac
131exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
132# Admittedly, this is quite paranoid, since all the known shells bail
133# out after a failed `exec'.
134printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
135exit 255
136  fi
137  # We don't want this to propagate to other subprocesses.
138          { _as_can_reexec=; unset _as_can_reexec;}
139if test "x$CONFIG_SHELL" = x; then
140  as_bourne_compatible="as_nop=:
141if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
142then :
143  emulate sh
144  NULLCMD=:
145  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
146  # is contrary to our usage.  Disable this feature.
147  alias -g '\${1+\"\$@\"}'='\"\$@\"'
148  setopt NO_GLOB_SUBST
149else \$as_nop
150  case \`(set -o) 2>/dev/null\` in #(
151  *posix*) :
152    set -o posix ;; #(
153  *) :
154     ;;
155esac
156fi
157"
158  as_required="as_fn_return () { (exit \$1); }
159as_fn_success () { as_fn_return 0; }
160as_fn_failure () { as_fn_return 1; }
161as_fn_ret_success () { return 0; }
162as_fn_ret_failure () { return 1; }
163
164exitcode=0
165as_fn_success || { exitcode=1; echo as_fn_success failed.; }
166as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
167as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
168as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
169if ( set x; as_fn_ret_success y && test x = \"\$1\" )
170then :
171
172else \$as_nop
173  exitcode=1; echo positional parameters were not saved.
174fi
175test x\$exitcode = x0 || exit 1
176blah=\$(echo \$(echo blah))
177test x\"\$blah\" = xblah || exit 1
178test -x / || exit 1"
179  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
180  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
181  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
182  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
183test \$(( 1 + 1 )) = 2 || exit 1"
184  if (eval "$as_required") 2>/dev/null
185then :
186  as_have_required=yes
187else $as_nop
188  as_have_required=no
189fi
190  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
191then :
192
193else $as_nop
194  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195as_found=false
196for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197do
198  IFS=$as_save_IFS
199  case $as_dir in #(((
200    '') as_dir=./ ;;
201    */) ;;
202    *) as_dir=$as_dir/ ;;
203  esac
204  as_found=:
205  case $as_dir in #(
206	 /*)
207	   for as_base in sh bash ksh sh5; do
208	     # Try only shells that exist, to save several forks.
209	     as_shell=$as_dir$as_base
210	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
211		    as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
212then :
213  CONFIG_SHELL=$as_shell as_have_required=yes
214		   if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
215then :
216  break 2
217fi
218fi
219	   done;;
220       esac
221  as_found=false
222done
223IFS=$as_save_IFS
224if $as_found
225then :
226
227else $as_nop
228  if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
229	      as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
230then :
231  CONFIG_SHELL=$SHELL as_have_required=yes
232fi
233fi
234
235
236      if test "x$CONFIG_SHELL" != x
237then :
238  export CONFIG_SHELL
239             # We cannot yet assume a decent shell, so we have to provide a
240# neutralization value for shells without unset; and this also
241# works around shells that cannot unset nonexistent variables.
242# Preserve -v and -x to the replacement shell.
243BASH_ENV=/dev/null
244ENV=/dev/null
245(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
246case $- in # ((((
247  *v*x* | *x*v* ) as_opts=-vx ;;
248  *v* ) as_opts=-v ;;
249  *x* ) as_opts=-x ;;
250  * ) as_opts= ;;
251esac
252exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
253# Admittedly, this is quite paranoid, since all the known shells bail
254# out after a failed `exec'.
255printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
256exit 255
257fi
258
259    if test x$as_have_required = xno
260then :
261  printf "%s\n" "$0: This script requires a shell more modern than all"
262  printf "%s\n" "$0: the shells that I found on your system."
263  if test ${ZSH_VERSION+y} ; then
264    printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265    printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
266  else
267    printf "%s\n" "$0: Please tell bug-autoconf@gnu.org about your system,
268$0: including any error possibly output before this
269$0: message. Then install a modern shell, or manually run
270$0: the script under such a shell if you do have one."
271  fi
272  exit 1
273fi
274fi
275fi
276SHELL=${CONFIG_SHELL-/bin/sh}
277export SHELL
278# Unset more variables known to interfere with behavior of common tools.
279CLICOLOR_FORCE= GREP_OPTIONS=
280unset CLICOLOR_FORCE GREP_OPTIONS
281
282## --------------------- ##
283## M4sh Shell Functions. ##
284## --------------------- ##
285# as_fn_unset VAR
286# ---------------
287# Portably unset VAR.
288as_fn_unset ()
289{
290  { eval $1=; unset $1;}
291}
292as_unset=as_fn_unset
293
294
295# as_fn_set_status STATUS
296# -----------------------
297# Set $? to STATUS, without forking.
298as_fn_set_status ()
299{
300  return $1
301} # as_fn_set_status
302
303# as_fn_exit STATUS
304# -----------------
305# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
306as_fn_exit ()
307{
308  set +e
309  as_fn_set_status $1
310  exit $1
311} # as_fn_exit
312# as_fn_nop
313# ---------
314# Do nothing but, unlike ":", preserve the value of $?.
315as_fn_nop ()
316{
317  return $?
318}
319as_nop=as_fn_nop
320
321# as_fn_mkdir_p
322# -------------
323# Create "$as_dir" as a directory, including parents if necessary.
324as_fn_mkdir_p ()
325{
326
327  case $as_dir in #(
328  -*) as_dir=./$as_dir;;
329  esac
330  test -d "$as_dir" || eval $as_mkdir_p || {
331    as_dirs=
332    while :; do
333      case $as_dir in #(
334      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
335      *) as_qdir=$as_dir;;
336      esac
337      as_dirs="'$as_qdir' $as_dirs"
338      as_dir=`$as_dirname -- "$as_dir" ||
339$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
340	 X"$as_dir" : 'X\(//\)[^/]' \| \
341	 X"$as_dir" : 'X\(//\)$' \| \
342	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
343printf "%s\n" X"$as_dir" |
344    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
345	    s//\1/
346	    q
347	  }
348	  /^X\(\/\/\)[^/].*/{
349	    s//\1/
350	    q
351	  }
352	  /^X\(\/\/\)$/{
353	    s//\1/
354	    q
355	  }
356	  /^X\(\/\).*/{
357	    s//\1/
358	    q
359	  }
360	  s/.*/./; q'`
361      test -d "$as_dir" && break
362    done
363    test -z "$as_dirs" || eval "mkdir $as_dirs"
364  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
365
366
367} # as_fn_mkdir_p
368
369# as_fn_executable_p FILE
370# -----------------------
371# Test if FILE is an executable regular file.
372as_fn_executable_p ()
373{
374  test -f "$1" && test -x "$1"
375} # as_fn_executable_p
376# as_fn_append VAR VALUE
377# ----------------------
378# Append the text in VALUE to the end of the definition contained in VAR. Take
379# advantage of any shell optimizations that allow amortized linear growth over
380# repeated appends, instead of the typical quadratic growth present in naive
381# implementations.
382if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
383then :
384  eval 'as_fn_append ()
385  {
386    eval $1+=\$2
387  }'
388else $as_nop
389  as_fn_append ()
390  {
391    eval $1=\$$1\$2
392  }
393fi # as_fn_append
394
395# as_fn_arith ARG...
396# ------------------
397# Perform arithmetic evaluation on the ARGs, and store the result in the
398# global $as_val. Take advantage of shells that can avoid forks. The arguments
399# must be portable across $(()) and expr.
400if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
401then :
402  eval 'as_fn_arith ()
403  {
404    as_val=$(( $* ))
405  }'
406else $as_nop
407  as_fn_arith ()
408  {
409    as_val=`expr "$@" || test $? -eq 1`
410  }
411fi # as_fn_arith
412
413# as_fn_nop
414# ---------
415# Do nothing but, unlike ":", preserve the value of $?.
416as_fn_nop ()
417{
418  return $?
419}
420as_nop=as_fn_nop
421
422# as_fn_error STATUS ERROR [LINENO LOG_FD]
423# ----------------------------------------
424# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
425# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
426# script with STATUS, using 1 if that was 0.
427as_fn_error ()
428{
429  as_status=$1; test $as_status -eq 0 && as_status=1
430  if test "$4"; then
431    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
432    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
433  fi
434  printf "%s\n" "$as_me: error: $2" >&2
435  as_fn_exit $as_status
436} # as_fn_error
437
438if expr a : '\(a\)' >/dev/null 2>&1 &&
439   test "X`expr 00001 : '.*\(...\)'`" = X001; then
440  as_expr=expr
441else
442  as_expr=false
443fi
444
445if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
446  as_basename=basename
447else
448  as_basename=false
449fi
450
451if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
452  as_dirname=dirname
453else
454  as_dirname=false
455fi
456
457as_me=`$as_basename -- "$0" ||
458$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
459	 X"$0" : 'X\(//\)$' \| \
460	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
461printf "%s\n" X/"$0" |
462    sed '/^.*\/\([^/][^/]*\)\/*$/{
463	    s//\1/
464	    q
465	  }
466	  /^X\/\(\/\/\)$/{
467	    s//\1/
468	    q
469	  }
470	  /^X\/\(\/\).*/{
471	    s//\1/
472	    q
473	  }
474	  s/.*/./; q'`
475
476# Avoid depending upon Character Ranges.
477as_cr_letters='abcdefghijklmnopqrstuvwxyz'
478as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
479as_cr_Letters=$as_cr_letters$as_cr_LETTERS
480as_cr_digits='0123456789'
481as_cr_alnum=$as_cr_Letters$as_cr_digits
482
483
484  as_lineno_1=$LINENO as_lineno_1a=$LINENO
485  as_lineno_2=$LINENO as_lineno_2a=$LINENO
486  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
487  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
488  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
489  sed -n '
490    p
491    /[$]LINENO/=
492  ' <$as_myself |
493    sed '
494      s/[$]LINENO.*/&-/
495      t lineno
496      b
497      :lineno
498      N
499      :loop
500      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
501      t loop
502      s/-\n.*//
503    ' >$as_me.lineno &&
504  chmod +x "$as_me.lineno" ||
505    { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
506
507  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
508  # already done that, so ensure we don't try to do so again and fall
509  # in an infinite loop.  This has already happened in practice.
510  _as_can_reexec=no; export _as_can_reexec
511  # Don't try to exec as it changes $[0], causing all sort of problems
512  # (the dirname of $[0] is not the place where we might find the
513  # original and so on.  Autoconf is especially sensitive to this).
514  . "./$as_me.lineno"
515  # Exit status is that of the last command.
516  exit
517}
518
519
520# Determine whether it's possible to make 'echo' print without a newline.
521# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
522# for compatibility with existing Makefiles.
523ECHO_C= ECHO_N= ECHO_T=
524case `echo -n x` in #(((((
525-n*)
526  case `echo 'xy\c'` in
527  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
528  xy)  ECHO_C='\c';;
529  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
530       ECHO_T='	';;
531  esac;;
532*)
533  ECHO_N='-n';;
534esac
535
536# For backward compatibility with old third-party macros, we provide
537# the shell variables $as_echo and $as_echo_n.  New code should use
538# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
539as_echo='printf %s\n'
540as_echo_n='printf %s'
541
542
543rm -f conf$$ conf$$.exe conf$$.file
544if test -d conf$$.dir; then
545  rm -f conf$$.dir/conf$$.file
546else
547  rm -f conf$$.dir
548  mkdir conf$$.dir 2>/dev/null
549fi
550if (echo >conf$$.file) 2>/dev/null; then
551  if ln -s conf$$.file conf$$ 2>/dev/null; then
552    as_ln_s='ln -s'
553    # ... but there are two gotchas:
554    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
555    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
556    # In both cases, we have to default to `cp -pR'.
557    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
558      as_ln_s='cp -pR'
559  elif ln conf$$.file conf$$ 2>/dev/null; then
560    as_ln_s=ln
561  else
562    as_ln_s='cp -pR'
563  fi
564else
565  as_ln_s='cp -pR'
566fi
567rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
568rmdir conf$$.dir 2>/dev/null
569
570if mkdir -p . 2>/dev/null; then
571  as_mkdir_p='mkdir -p "$as_dir"'
572else
573  test -d ./-p && rmdir ./-p
574  as_mkdir_p=false
575fi
576
577as_test_x='test -x'
578as_executable_p=as_fn_executable_p
579
580# Sed expression to map a string onto a valid CPP name.
581as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
582
583# Sed expression to map a string onto a valid variable name.
584as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
585
586
587test -n "$DJDIR" || exec 7<&0 </dev/null
588exec 6>&1
589
590# Name of the host.
591# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
592# so uname gets run too.
593ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
594
595#
596# Initializations.
597#
598ac_default_prefix=/usr/local
599ac_clean_files=
600ac_config_libobj_dir=.
601LIBOBJS=
602cross_compiling=no
603subdirs=
604MFLAGS=
605MAKEFLAGS=
606
607# Identity of this package.
608PACKAGE_NAME='tdbc'
609PACKAGE_TARNAME='tdbc'
610PACKAGE_VERSION='1.1.3'
611PACKAGE_STRING='tdbc 1.1.3'
612PACKAGE_BUGREPORT=''
613PACKAGE_URL=''
614
615# Factoring default headers for most tests.
616ac_includes_default="\
617#include <stddef.h>
618#ifdef HAVE_STDIO_H
619# include <stdio.h>
620#endif
621#ifdef HAVE_STDLIB_H
622# include <stdlib.h>
623#endif
624#ifdef HAVE_STRING_H
625# include <string.h>
626#endif
627#ifdef HAVE_INTTYPES_H
628# include <inttypes.h>
629#endif
630#ifdef HAVE_STDINT_H
631# include <stdint.h>
632#endif
633#ifdef HAVE_STRINGS_H
634# include <strings.h>
635#endif
636#ifdef HAVE_SYS_TYPES_H
637# include <sys/types.h>
638#endif
639#ifdef HAVE_SYS_STAT_H
640# include <sys/stat.h>
641#endif
642#ifdef HAVE_UNISTD_H
643# include <unistd.h>
644#endif"
645
646ac_header_c_list=
647ac_subst_vars='LTLIBOBJS
648PATCHLEVEL
649MINOR_VERSION
650MAJOR_VERSION
651tdbc_STUB_LIB_PATH
652tdbc_BUILD_STUB_LIB_PATH
653tdbc_STUB_LIB_SPEC
654tdbc_BUILD_STUB_LIB_SPEC
655tdbc_LIB_SPEC
656tdbc_BUILD_LIB_SPEC
657tdbc_LIB_DIR
658tdbc_BUILD_INCLUDE_SPEC
659tdbc_INCLUDE_SPEC
660tdbc_SRC_DIR
661TCLSH_PROG
662VC_MANIFEST_EMBED_EXE
663VC_MANIFEST_EMBED_DLL
664RANLIB_STUB
665MAKE_STUB_LIB
666MAKE_STATIC_LIB
667MAKE_SHARED_LIB
668MAKE_LIB
669EGREP
670GREP
671LDFLAGS_DEFAULT
672CFLAGS_DEFAULT
673LD_LIBRARY_PATH_VAR
674SHLIB_CFLAGS
675SHLIB_LD_LIBS
676SHLIB_LD
677STLIB_LD
678LDFLAGS_OPTIMIZE
679LDFLAGS_DEBUG
680CFLAGS_WARNING
681CFLAGS_OPTIMIZE
682CFLAGS_DEBUG
683LIBOBJS
684RC
685AR
686STUBS_BUILD
687SHARED_BUILD
688TCL_THREADS
689TCL_INCLUDES
690PKG_OBJECTS
691PKG_SOURCES
692RANLIB
693SET_MAKE
694CPP
695TCLOO_VERSION_REQ
696TCL_VERSION_DESIRED
697TCL_VERSION_REQ
698tcloo_STUB_LIB_PATH
699tcloo_STUB_LIB_SPEC
700tcloo_STUB_LIB_FILE
701tcloo_LIB_SPEC
702tcloo_LIB_FILE
703tcloo_SRC_DIR
704tcloo_BIN_DIR
705tcloo_VERSION
706TCL_SHLIB_LD_LIBS
707TCL_LD_FLAGS
708TCL_EXTRA_CFLAGS
709TCL_DEFS
710TCL_LIBS
711CLEANFILES
712OBJEXT
713ac_ct_CC
714CPPFLAGS
715LDFLAGS
716CFLAGS
717CC
718TCL_STUB_LIB_SPEC
719TCL_STUB_LIB_FLAG
720TCL_STUB_LIB_FILE
721TCL_LIB_SPEC
722TCL_LIB_FLAG
723TCL_LIB_FILE
724TCL_SRC_DIR
725TCL_BIN_DIR
726TCL_PATCH_LEVEL
727TCL_VERSION
728INSTALL_LIBRARY
729INSTALL_SCRIPT
730INSTALL_PROGRAM
731INSTALL_DATA
732INSTALL_DATA_DIR
733INSTALL
734PKG_CFLAGS
735PKG_LIBS
736PKG_INCLUDES
737PKG_HEADERS
738PKG_TCL_SOURCES
739PKG_STUB_OBJECTS
740PKG_STUB_SOURCES
741PKG_STUB_LIB_FILE
742PKG_LIB_FILE9
743PKG_LIB_FILE8
744PKG_LIB_FILE
745EXEEXT
746CYGPATH
747target_alias
748host_alias
749build_alias
750LIBS
751ECHO_T
752ECHO_N
753ECHO_C
754DEFS
755mandir
756localedir
757libdir
758psdir
759pdfdir
760dvidir
761htmldir
762infodir
763docdir
764oldincludedir
765includedir
766runstatedir
767localstatedir
768sharedstatedir
769sysconfdir
770datadir
771datarootdir
772libexecdir
773sbindir
774bindir
775program_transform_name
776prefix
777exec_prefix
778PACKAGE_URL
779PACKAGE_BUGREPORT
780PACKAGE_STRING
781PACKAGE_VERSION
782PACKAGE_TARNAME
783PACKAGE_NAME
784PATH_SEPARATOR
785SHELL'
786ac_subst_files=''
787ac_user_opts='
788enable_option_checking
789with_tcl
790with_tcloo
791with_tclinclude
792enable_threads
793enable_shared
794enable_stubs
795enable_64bit
796enable_64bit_vis
797enable_rpath
798enable_symbols
799'
800      ac_precious_vars='build_alias
801host_alias
802target_alias
803CC
804CFLAGS
805LDFLAGS
806LIBS
807CPPFLAGS
808CPP'
809
810
811# Initialize some variables set by options.
812ac_init_help=
813ac_init_version=false
814ac_unrecognized_opts=
815ac_unrecognized_sep=
816# The variables have the same names as the options, with
817# dashes changed to underlines.
818cache_file=/dev/null
819exec_prefix=NONE
820no_create=
821no_recursion=
822prefix=NONE
823program_prefix=NONE
824program_suffix=NONE
825program_transform_name=s,x,x,
826silent=
827site=
828srcdir=
829verbose=
830x_includes=NONE
831x_libraries=NONE
832
833# Installation directory options.
834# These are left unexpanded so users can "make install exec_prefix=/foo"
835# and all the variables that are supposed to be based on exec_prefix
836# by default will actually change.
837# Use braces instead of parens because sh, perl, etc. also accept them.
838# (The list follows the same order as the GNU Coding Standards.)
839bindir='${exec_prefix}/bin'
840sbindir='${exec_prefix}/sbin'
841libexecdir='${exec_prefix}/libexec'
842datarootdir='${prefix}/share'
843datadir='${datarootdir}'
844sysconfdir='${prefix}/etc'
845sharedstatedir='${prefix}/com'
846localstatedir='${prefix}/var'
847runstatedir='${localstatedir}/run'
848includedir='${prefix}/include'
849oldincludedir='/usr/include'
850docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
851infodir='${datarootdir}/info'
852htmldir='${docdir}'
853dvidir='${docdir}'
854pdfdir='${docdir}'
855psdir='${docdir}'
856libdir='${exec_prefix}/lib'
857localedir='${datarootdir}/locale'
858mandir='${datarootdir}/man'
859
860ac_prev=
861ac_dashdash=
862for ac_option
863do
864  # If the previous option needs an argument, assign it.
865  if test -n "$ac_prev"; then
866    eval $ac_prev=\$ac_option
867    ac_prev=
868    continue
869  fi
870
871  case $ac_option in
872  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
873  *=)   ac_optarg= ;;
874  *)    ac_optarg=yes ;;
875  esac
876
877  case $ac_dashdash$ac_option in
878  --)
879    ac_dashdash=yes ;;
880
881  -bindir | --bindir | --bindi | --bind | --bin | --bi)
882    ac_prev=bindir ;;
883  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
884    bindir=$ac_optarg ;;
885
886  -build | --build | --buil | --bui | --bu)
887    ac_prev=build_alias ;;
888  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
889    build_alias=$ac_optarg ;;
890
891  -cache-file | --cache-file | --cache-fil | --cache-fi \
892  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
893    ac_prev=cache_file ;;
894  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
895  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
896    cache_file=$ac_optarg ;;
897
898  --config-cache | -C)
899    cache_file=config.cache ;;
900
901  -datadir | --datadir | --datadi | --datad)
902    ac_prev=datadir ;;
903  -datadir=* | --datadir=* | --datadi=* | --datad=*)
904    datadir=$ac_optarg ;;
905
906  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
907  | --dataroo | --dataro | --datar)
908    ac_prev=datarootdir ;;
909  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
910  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
911    datarootdir=$ac_optarg ;;
912
913  -disable-* | --disable-*)
914    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
915    # Reject names that are not valid shell variable names.
916    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
917      as_fn_error $? "invalid feature name: \`$ac_useropt'"
918    ac_useropt_orig=$ac_useropt
919    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
920    case $ac_user_opts in
921      *"
922"enable_$ac_useropt"
923"*) ;;
924      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
925	 ac_unrecognized_sep=', ';;
926    esac
927    eval enable_$ac_useropt=no ;;
928
929  -docdir | --docdir | --docdi | --doc | --do)
930    ac_prev=docdir ;;
931  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
932    docdir=$ac_optarg ;;
933
934  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
935    ac_prev=dvidir ;;
936  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
937    dvidir=$ac_optarg ;;
938
939  -enable-* | --enable-*)
940    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
941    # Reject names that are not valid shell variable names.
942    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
943      as_fn_error $? "invalid feature name: \`$ac_useropt'"
944    ac_useropt_orig=$ac_useropt
945    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
946    case $ac_user_opts in
947      *"
948"enable_$ac_useropt"
949"*) ;;
950      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
951	 ac_unrecognized_sep=', ';;
952    esac
953    eval enable_$ac_useropt=\$ac_optarg ;;
954
955  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
956  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
957  | --exec | --exe | --ex)
958    ac_prev=exec_prefix ;;
959  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
960  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
961  | --exec=* | --exe=* | --ex=*)
962    exec_prefix=$ac_optarg ;;
963
964  -gas | --gas | --ga | --g)
965    # Obsolete; use --with-gas.
966    with_gas=yes ;;
967
968  -help | --help | --hel | --he | -h)
969    ac_init_help=long ;;
970  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
971    ac_init_help=recursive ;;
972  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
973    ac_init_help=short ;;
974
975  -host | --host | --hos | --ho)
976    ac_prev=host_alias ;;
977  -host=* | --host=* | --hos=* | --ho=*)
978    host_alias=$ac_optarg ;;
979
980  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
981    ac_prev=htmldir ;;
982  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
983  | --ht=*)
984    htmldir=$ac_optarg ;;
985
986  -includedir | --includedir | --includedi | --included | --include \
987  | --includ | --inclu | --incl | --inc)
988    ac_prev=includedir ;;
989  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
990  | --includ=* | --inclu=* | --incl=* | --inc=*)
991    includedir=$ac_optarg ;;
992
993  -infodir | --infodir | --infodi | --infod | --info | --inf)
994    ac_prev=infodir ;;
995  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
996    infodir=$ac_optarg ;;
997
998  -libdir | --libdir | --libdi | --libd)
999    ac_prev=libdir ;;
1000  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1001    libdir=$ac_optarg ;;
1002
1003  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1004  | --libexe | --libex | --libe)
1005    ac_prev=libexecdir ;;
1006  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1007  | --libexe=* | --libex=* | --libe=*)
1008    libexecdir=$ac_optarg ;;
1009
1010  -localedir | --localedir | --localedi | --localed | --locale)
1011    ac_prev=localedir ;;
1012  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1013    localedir=$ac_optarg ;;
1014
1015  -localstatedir | --localstatedir | --localstatedi | --localstated \
1016  | --localstate | --localstat | --localsta | --localst | --locals)
1017    ac_prev=localstatedir ;;
1018  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1019  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1020    localstatedir=$ac_optarg ;;
1021
1022  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1023    ac_prev=mandir ;;
1024  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1025    mandir=$ac_optarg ;;
1026
1027  -nfp | --nfp | --nf)
1028    # Obsolete; use --without-fp.
1029    with_fp=no ;;
1030
1031  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1032  | --no-cr | --no-c | -n)
1033    no_create=yes ;;
1034
1035  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1036  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1037    no_recursion=yes ;;
1038
1039  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1040  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1041  | --oldin | --oldi | --old | --ol | --o)
1042    ac_prev=oldincludedir ;;
1043  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1044  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1045  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1046    oldincludedir=$ac_optarg ;;
1047
1048  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1049    ac_prev=prefix ;;
1050  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1051    prefix=$ac_optarg ;;
1052
1053  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1054  | --program-pre | --program-pr | --program-p)
1055    ac_prev=program_prefix ;;
1056  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1057  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1058    program_prefix=$ac_optarg ;;
1059
1060  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1061  | --program-suf | --program-su | --program-s)
1062    ac_prev=program_suffix ;;
1063  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1064  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1065    program_suffix=$ac_optarg ;;
1066
1067  -program-transform-name | --program-transform-name \
1068  | --program-transform-nam | --program-transform-na \
1069  | --program-transform-n | --program-transform- \
1070  | --program-transform | --program-transfor \
1071  | --program-transfo | --program-transf \
1072  | --program-trans | --program-tran \
1073  | --progr-tra | --program-tr | --program-t)
1074    ac_prev=program_transform_name ;;
1075  -program-transform-name=* | --program-transform-name=* \
1076  | --program-transform-nam=* | --program-transform-na=* \
1077  | --program-transform-n=* | --program-transform-=* \
1078  | --program-transform=* | --program-transfor=* \
1079  | --program-transfo=* | --program-transf=* \
1080  | --program-trans=* | --program-tran=* \
1081  | --progr-tra=* | --program-tr=* | --program-t=*)
1082    program_transform_name=$ac_optarg ;;
1083
1084  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1085    ac_prev=pdfdir ;;
1086  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1087    pdfdir=$ac_optarg ;;
1088
1089  -psdir | --psdir | --psdi | --psd | --ps)
1090    ac_prev=psdir ;;
1091  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1092    psdir=$ac_optarg ;;
1093
1094  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1095  | -silent | --silent | --silen | --sile | --sil)
1096    silent=yes ;;
1097
1098  -runstatedir | --runstatedir | --runstatedi | --runstated \
1099  | --runstate | --runstat | --runsta | --runst | --runs \
1100  | --run | --ru | --r)
1101    ac_prev=runstatedir ;;
1102  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1103  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1104  | --run=* | --ru=* | --r=*)
1105    runstatedir=$ac_optarg ;;
1106
1107  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1108    ac_prev=sbindir ;;
1109  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1110  | --sbi=* | --sb=*)
1111    sbindir=$ac_optarg ;;
1112
1113  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1114  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1115  | --sharedst | --shareds | --shared | --share | --shar \
1116  | --sha | --sh)
1117    ac_prev=sharedstatedir ;;
1118  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1119  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1120  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1121  | --sha=* | --sh=*)
1122    sharedstatedir=$ac_optarg ;;
1123
1124  -site | --site | --sit)
1125    ac_prev=site ;;
1126  -site=* | --site=* | --sit=*)
1127    site=$ac_optarg ;;
1128
1129  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1130    ac_prev=srcdir ;;
1131  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1132    srcdir=$ac_optarg ;;
1133
1134  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1135  | --syscon | --sysco | --sysc | --sys | --sy)
1136    ac_prev=sysconfdir ;;
1137  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1138  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1139    sysconfdir=$ac_optarg ;;
1140
1141  -target | --target | --targe | --targ | --tar | --ta | --t)
1142    ac_prev=target_alias ;;
1143  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1144    target_alias=$ac_optarg ;;
1145
1146  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1147    verbose=yes ;;
1148
1149  -version | --version | --versio | --versi | --vers | -V)
1150    ac_init_version=: ;;
1151
1152  -with-* | --with-*)
1153    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1154    # Reject names that are not valid shell variable names.
1155    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1156      as_fn_error $? "invalid package name: \`$ac_useropt'"
1157    ac_useropt_orig=$ac_useropt
1158    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1159    case $ac_user_opts in
1160      *"
1161"with_$ac_useropt"
1162"*) ;;
1163      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1164	 ac_unrecognized_sep=', ';;
1165    esac
1166    eval with_$ac_useropt=\$ac_optarg ;;
1167
1168  -without-* | --without-*)
1169    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1170    # Reject names that are not valid shell variable names.
1171    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1172      as_fn_error $? "invalid package name: \`$ac_useropt'"
1173    ac_useropt_orig=$ac_useropt
1174    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1175    case $ac_user_opts in
1176      *"
1177"with_$ac_useropt"
1178"*) ;;
1179      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1180	 ac_unrecognized_sep=', ';;
1181    esac
1182    eval with_$ac_useropt=no ;;
1183
1184  --x)
1185    # Obsolete; use --with-x.
1186    with_x=yes ;;
1187
1188  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1189  | --x-incl | --x-inc | --x-in | --x-i)
1190    ac_prev=x_includes ;;
1191  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1192  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1193    x_includes=$ac_optarg ;;
1194
1195  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1196  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1197    ac_prev=x_libraries ;;
1198  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1199  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1200    x_libraries=$ac_optarg ;;
1201
1202  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1203Try \`$0 --help' for more information"
1204    ;;
1205
1206  *=*)
1207    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1208    # Reject names that are not valid shell variable names.
1209    case $ac_envvar in #(
1210      '' | [0-9]* | *[!_$as_cr_alnum]* )
1211      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1212    esac
1213    eval $ac_envvar=\$ac_optarg
1214    export $ac_envvar ;;
1215
1216  *)
1217    # FIXME: should be removed in autoconf 3.0.
1218    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1219    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1220      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1221    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1222    ;;
1223
1224  esac
1225done
1226
1227if test -n "$ac_prev"; then
1228  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1229  as_fn_error $? "missing argument to $ac_option"
1230fi
1231
1232if test -n "$ac_unrecognized_opts"; then
1233  case $enable_option_checking in
1234    no) ;;
1235    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1236    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1237  esac
1238fi
1239
1240# Check all directory arguments for consistency.
1241for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1242		datadir sysconfdir sharedstatedir localstatedir includedir \
1243		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1244		libdir localedir mandir runstatedir
1245do
1246  eval ac_val=\$$ac_var
1247  # Remove trailing slashes.
1248  case $ac_val in
1249    */ )
1250      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1251      eval $ac_var=\$ac_val;;
1252  esac
1253  # Be sure to have absolute directory names.
1254  case $ac_val in
1255    [\\/$]* | ?:[\\/]* )  continue;;
1256    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1257  esac
1258  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1259done
1260
1261# There might be people who depend on the old broken behavior: `$host'
1262# used to hold the argument of --host etc.
1263# FIXME: To remove some day.
1264build=$build_alias
1265host=$host_alias
1266target=$target_alias
1267
1268# FIXME: To remove some day.
1269if test "x$host_alias" != x; then
1270  if test "x$build_alias" = x; then
1271    cross_compiling=maybe
1272  elif test "x$build_alias" != "x$host_alias"; then
1273    cross_compiling=yes
1274  fi
1275fi
1276
1277ac_tool_prefix=
1278test -n "$host_alias" && ac_tool_prefix=$host_alias-
1279
1280test "$silent" = yes && exec 6>/dev/null
1281
1282
1283ac_pwd=`pwd` && test -n "$ac_pwd" &&
1284ac_ls_di=`ls -di .` &&
1285ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1286  as_fn_error $? "working directory cannot be determined"
1287test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1288  as_fn_error $? "pwd does not report name of working directory"
1289
1290
1291# Find the source files, if location was not specified.
1292if test -z "$srcdir"; then
1293  ac_srcdir_defaulted=yes
1294  # Try the directory containing this script, then the parent directory.
1295  ac_confdir=`$as_dirname -- "$as_myself" ||
1296$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1297	 X"$as_myself" : 'X\(//\)[^/]' \| \
1298	 X"$as_myself" : 'X\(//\)$' \| \
1299	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1300printf "%s\n" X"$as_myself" |
1301    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1302	    s//\1/
1303	    q
1304	  }
1305	  /^X\(\/\/\)[^/].*/{
1306	    s//\1/
1307	    q
1308	  }
1309	  /^X\(\/\/\)$/{
1310	    s//\1/
1311	    q
1312	  }
1313	  /^X\(\/\).*/{
1314	    s//\1/
1315	    q
1316	  }
1317	  s/.*/./; q'`
1318  srcdir=$ac_confdir
1319  if test ! -r "$srcdir/$ac_unique_file"; then
1320    srcdir=..
1321  fi
1322else
1323  ac_srcdir_defaulted=no
1324fi
1325if test ! -r "$srcdir/$ac_unique_file"; then
1326  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1327  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1328fi
1329ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1330ac_abs_confdir=`(
1331	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1332	pwd)`
1333# When building in place, set srcdir=.
1334if test "$ac_abs_confdir" = "$ac_pwd"; then
1335  srcdir=.
1336fi
1337# Remove unnecessary trailing slashes from srcdir.
1338# Double slashes in file names in object file debugging info
1339# mess up M-x gdb in Emacs.
1340case $srcdir in
1341*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1342esac
1343for ac_var in $ac_precious_vars; do
1344  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1345  eval ac_env_${ac_var}_value=\$${ac_var}
1346  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1347  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1348done
1349
1350#
1351# Report the --help message.
1352#
1353if test "$ac_init_help" = "long"; then
1354  # Omit some internal or obsolete options to make the list less imposing.
1355  # This message is too long to be a string in the A/UX 3.1 sh.
1356  cat <<_ACEOF
1357\`configure' configures tdbc 1.1.3 to adapt to many kinds of systems.
1358
1359Usage: $0 [OPTION]... [VAR=VALUE]...
1360
1361To assign environment variables (e.g., CC, CFLAGS...), specify them as
1362VAR=VALUE.  See below for descriptions of some of the useful variables.
1363
1364Defaults for the options are specified in brackets.
1365
1366Configuration:
1367  -h, --help              display this help and exit
1368      --help=short        display options specific to this package
1369      --help=recursive    display the short help of all the included packages
1370  -V, --version           display version information and exit
1371  -q, --quiet, --silent   do not print \`checking ...' messages
1372      --cache-file=FILE   cache test results in FILE [disabled]
1373  -C, --config-cache      alias for \`--cache-file=config.cache'
1374  -n, --no-create         do not create output files
1375      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1376
1377Installation directories:
1378  --prefix=PREFIX         install architecture-independent files in PREFIX
1379                          [$ac_default_prefix]
1380  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1381                          [PREFIX]
1382
1383By default, \`make install' will install all the files in
1384\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1385an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1386for instance \`--prefix=\$HOME'.
1387
1388For better control, use the options below.
1389
1390Fine tuning of the installation directories:
1391  --bindir=DIR            user executables [EPREFIX/bin]
1392  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1393  --libexecdir=DIR        program executables [EPREFIX/libexec]
1394  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1395  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1396  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1397  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1398  --libdir=DIR            object code libraries [EPREFIX/lib]
1399  --includedir=DIR        C header files [PREFIX/include]
1400  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1401  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1402  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1403  --infodir=DIR           info documentation [DATAROOTDIR/info]
1404  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1405  --mandir=DIR            man documentation [DATAROOTDIR/man]
1406  --docdir=DIR            documentation root [DATAROOTDIR/doc/tdbc]
1407  --htmldir=DIR           html documentation [DOCDIR]
1408  --dvidir=DIR            dvi documentation [DOCDIR]
1409  --pdfdir=DIR            pdf documentation [DOCDIR]
1410  --psdir=DIR             ps documentation [DOCDIR]
1411_ACEOF
1412
1413  cat <<\_ACEOF
1414_ACEOF
1415fi
1416
1417if test -n "$ac_init_help"; then
1418  case $ac_init_help in
1419     short | recursive ) echo "Configuration of tdbc 1.1.3:";;
1420   esac
1421  cat <<\_ACEOF
1422
1423Optional Features:
1424  --disable-option-checking  ignore unrecognized --enable/--with options
1425  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1426  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1427  --enable-threads        build with threads (default: on)
1428  --enable-shared         build and link with shared libraries (default: on)
1429  --enable-stubs          build and link with stub libraries. Always true for
1430                          shared builds (default: on)
1431  --enable-64bit          enable 64bit support (default: off)
1432  --enable-64bit-vis      enable 64bit Sparc VIS support (default: off)
1433  --disable-rpath         disable rpath support (default: on)
1434  --enable-symbols        build with debugging symbols (default: off)
1435
1436Optional Packages:
1437  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1438  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1439  --with-tcl              directory containing tcl configuration
1440                          (tclConfig.sh)
1441  --with-tcloo              directory containing tcloo configuration (tclooConfig.sh)
1442  --with-tclinclude       directory containing the public Tcl header files
1443
1444Some influential environment variables:
1445  CC          C compiler command
1446  CFLAGS      C compiler flags
1447  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1448              nonstandard directory <lib dir>
1449  LIBS        libraries to pass to the linker, e.g. -l<library>
1450  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1451              you have headers in a nonstandard directory <include dir>
1452  CPP         C preprocessor
1453
1454Use these variables to override the choices made by `configure' or to help
1455it to find libraries and programs with nonstandard names/locations.
1456
1457Report bugs to the package provider.
1458_ACEOF
1459ac_status=$?
1460fi
1461
1462if test "$ac_init_help" = "recursive"; then
1463  # If there are subdirs, report their specific --help.
1464  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1465    test -d "$ac_dir" ||
1466      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1467      continue
1468    ac_builddir=.
1469
1470case "$ac_dir" in
1471.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1472*)
1473  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1474  # A ".." for each directory in $ac_dir_suffix.
1475  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1476  case $ac_top_builddir_sub in
1477  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1478  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1479  esac ;;
1480esac
1481ac_abs_top_builddir=$ac_pwd
1482ac_abs_builddir=$ac_pwd$ac_dir_suffix
1483# for backward compatibility:
1484ac_top_builddir=$ac_top_build_prefix
1485
1486case $srcdir in
1487  .)  # We are building in place.
1488    ac_srcdir=.
1489    ac_top_srcdir=$ac_top_builddir_sub
1490    ac_abs_top_srcdir=$ac_pwd ;;
1491  [\\/]* | ?:[\\/]* )  # Absolute name.
1492    ac_srcdir=$srcdir$ac_dir_suffix;
1493    ac_top_srcdir=$srcdir
1494    ac_abs_top_srcdir=$srcdir ;;
1495  *) # Relative name.
1496    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1497    ac_top_srcdir=$ac_top_build_prefix$srcdir
1498    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1499esac
1500ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1501
1502    cd "$ac_dir" || { ac_status=$?; continue; }
1503    # Check for configure.gnu first; this name is used for a wrapper for
1504    # Metaconfig's "Configure" on case-insensitive file systems.
1505    if test -f "$ac_srcdir/configure.gnu"; then
1506      echo &&
1507      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1508    elif test -f "$ac_srcdir/configure"; then
1509      echo &&
1510      $SHELL "$ac_srcdir/configure" --help=recursive
1511    else
1512      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1513    fi || ac_status=$?
1514    cd "$ac_pwd" || { ac_status=$?; break; }
1515  done
1516fi
1517
1518test -n "$ac_init_help" && exit $ac_status
1519if $ac_init_version; then
1520  cat <<\_ACEOF
1521tdbc configure 1.1.3
1522generated by GNU Autoconf 2.70
1523
1524Copyright (C) 2020 Free Software Foundation, Inc.
1525This configure script is free software; the Free Software Foundation
1526gives unlimited permission to copy, distribute and modify it.
1527_ACEOF
1528  exit
1529fi
1530
1531## ------------------------ ##
1532## Autoconf initialization. ##
1533## ------------------------ ##
1534
1535# ac_fn_c_try_compile LINENO
1536# --------------------------
1537# Try to compile conftest.$ac_ext, and return whether this succeeded.
1538ac_fn_c_try_compile ()
1539{
1540  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1541  rm -f conftest.$ac_objext conftest.beam
1542  if { { ac_try="$ac_compile"
1543case "(($ac_try" in
1544  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1545  *) ac_try_echo=$ac_try;;
1546esac
1547eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1548printf "%s\n" "$ac_try_echo"; } >&5
1549  (eval "$ac_compile") 2>conftest.err
1550  ac_status=$?
1551  if test -s conftest.err; then
1552    grep -v '^ *+' conftest.err >conftest.er1
1553    cat conftest.er1 >&5
1554    mv -f conftest.er1 conftest.err
1555  fi
1556  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1557  test $ac_status = 0; } && {
1558	 test -z "$ac_c_werror_flag" ||
1559	 test ! -s conftest.err
1560       } && test -s conftest.$ac_objext
1561then :
1562  ac_retval=0
1563else $as_nop
1564  printf "%s\n" "$as_me: failed program was:" >&5
1565sed 's/^/| /' conftest.$ac_ext >&5
1566
1567	ac_retval=1
1568fi
1569  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1570  as_fn_set_status $ac_retval
1571
1572} # ac_fn_c_try_compile
1573
1574# ac_fn_c_try_cpp LINENO
1575# ----------------------
1576# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1577ac_fn_c_try_cpp ()
1578{
1579  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1580  if { { ac_try="$ac_cpp conftest.$ac_ext"
1581case "(($ac_try" in
1582  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1583  *) ac_try_echo=$ac_try;;
1584esac
1585eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1586printf "%s\n" "$ac_try_echo"; } >&5
1587  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1588  ac_status=$?
1589  if test -s conftest.err; then
1590    grep -v '^ *+' conftest.err >conftest.er1
1591    cat conftest.er1 >&5
1592    mv -f conftest.er1 conftest.err
1593  fi
1594  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1595  test $ac_status = 0; } > conftest.i && {
1596	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1597	 test ! -s conftest.err
1598       }
1599then :
1600  ac_retval=0
1601else $as_nop
1602  printf "%s\n" "$as_me: failed program was:" >&5
1603sed 's/^/| /' conftest.$ac_ext >&5
1604
1605    ac_retval=1
1606fi
1607  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1608  as_fn_set_status $ac_retval
1609
1610} # ac_fn_c_try_cpp
1611
1612# ac_fn_c_try_run LINENO
1613# ----------------------
1614# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1615# executables *can* be run.
1616ac_fn_c_try_run ()
1617{
1618  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1619  if { { ac_try="$ac_link"
1620case "(($ac_try" in
1621  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1622  *) ac_try_echo=$ac_try;;
1623esac
1624eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1625printf "%s\n" "$ac_try_echo"; } >&5
1626  (eval "$ac_link") 2>&5
1627  ac_status=$?
1628  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1629  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1630  { { case "(($ac_try" in
1631  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1632  *) ac_try_echo=$ac_try;;
1633esac
1634eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1635printf "%s\n" "$ac_try_echo"; } >&5
1636  (eval "$ac_try") 2>&5
1637  ac_status=$?
1638  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1639  test $ac_status = 0; }; }
1640then :
1641  ac_retval=0
1642else $as_nop
1643  printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1644       printf "%s\n" "$as_me: failed program was:" >&5
1645sed 's/^/| /' conftest.$ac_ext >&5
1646
1647       ac_retval=$ac_status
1648fi
1649  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1650  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1651  as_fn_set_status $ac_retval
1652
1653} # ac_fn_c_try_run
1654
1655# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1656# -------------------------------------------------------
1657# Tests whether HEADER exists and can be compiled using the include files in
1658# INCLUDES, setting the cache variable VAR accordingly.
1659ac_fn_c_check_header_compile ()
1660{
1661  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1662  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1663printf %s "checking for $2... " >&6; }
1664if eval test \${$3+y}
1665then :
1666  printf %s "(cached) " >&6
1667else $as_nop
1668  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1669/* end confdefs.h.  */
1670$4
1671#include <$2>
1672_ACEOF
1673if ac_fn_c_try_compile "$LINENO"
1674then :
1675  eval "$3=yes"
1676else $as_nop
1677  eval "$3=no"
1678fi
1679rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1680fi
1681eval ac_res=\$$3
1682	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1683printf "%s\n" "$ac_res" >&6; }
1684  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1685
1686} # ac_fn_c_check_header_compile
1687
1688# ac_fn_c_try_link LINENO
1689# -----------------------
1690# Try to link conftest.$ac_ext, and return whether this succeeded.
1691ac_fn_c_try_link ()
1692{
1693  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1694  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1695  if { { ac_try="$ac_link"
1696case "(($ac_try" in
1697  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1698  *) ac_try_echo=$ac_try;;
1699esac
1700eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1701printf "%s\n" "$ac_try_echo"; } >&5
1702  (eval "$ac_link") 2>conftest.err
1703  ac_status=$?
1704  if test -s conftest.err; then
1705    grep -v '^ *+' conftest.err >conftest.er1
1706    cat conftest.er1 >&5
1707    mv -f conftest.er1 conftest.err
1708  fi
1709  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1710  test $ac_status = 0; } && {
1711	 test -z "$ac_c_werror_flag" ||
1712	 test ! -s conftest.err
1713       } && test -s conftest$ac_exeext && {
1714	 test "$cross_compiling" = yes ||
1715	 test -x conftest$ac_exeext
1716       }
1717then :
1718  ac_retval=0
1719else $as_nop
1720  printf "%s\n" "$as_me: failed program was:" >&5
1721sed 's/^/| /' conftest.$ac_ext >&5
1722
1723	ac_retval=1
1724fi
1725  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1726  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1727  # interfere with the next link command; also delete a directory that is
1728  # left behind by Apple's compiler.  We do this before executing the actions.
1729  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1730  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1731  as_fn_set_status $ac_retval
1732
1733} # ac_fn_c_try_link
1734
1735# ac_fn_c_check_func LINENO FUNC VAR
1736# ----------------------------------
1737# Tests whether FUNC exists, setting the cache variable VAR accordingly
1738ac_fn_c_check_func ()
1739{
1740  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1741  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1742printf %s "checking for $2... " >&6; }
1743if eval test \${$3+y}
1744then :
1745  printf %s "(cached) " >&6
1746else $as_nop
1747  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1748/* end confdefs.h.  */
1749/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1750   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1751#define $2 innocuous_$2
1752
1753/* System header to define __stub macros and hopefully few prototypes,
1754   which can conflict with char $2 (); below.  */
1755
1756#include <limits.h>
1757#undef $2
1758
1759/* Override any GCC internal prototype to avoid an error.
1760   Use char because int might match the return type of a GCC
1761   builtin and then its argument prototype would still apply.  */
1762#ifdef __cplusplus
1763extern "C"
1764#endif
1765char $2 ();
1766/* The GNU C library defines this for functions which it implements
1767    to always fail with ENOSYS.  Some functions are actually named
1768    something starting with __ and the normal name is an alias.  */
1769#if defined __stub_$2 || defined __stub___$2
1770choke me
1771#endif
1772
1773int
1774main (void)
1775{
1776return $2 ();
1777  ;
1778  return 0;
1779}
1780_ACEOF
1781if ac_fn_c_try_link "$LINENO"
1782then :
1783  eval "$3=yes"
1784else $as_nop
1785  eval "$3=no"
1786fi
1787rm -f core conftest.err conftest.$ac_objext conftest.beam \
1788    conftest$ac_exeext conftest.$ac_ext
1789fi
1790eval ac_res=\$$3
1791	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1792printf "%s\n" "$ac_res" >&6; }
1793  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1794
1795} # ac_fn_c_check_func
1796ac_configure_args_raw=
1797for ac_arg
1798do
1799  case $ac_arg in
1800  *\'*)
1801    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1802  esac
1803  as_fn_append ac_configure_args_raw " '$ac_arg'"
1804done
1805
1806case $ac_configure_args_raw in
1807  *$as_nl*)
1808    ac_safe_unquote= ;;
1809  *)
1810    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
1811    ac_unsafe_a="$ac_unsafe_z#~"
1812    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1813    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1814esac
1815
1816cat >config.log <<_ACEOF
1817This file contains any messages produced by compilers while
1818running configure, to aid debugging if configure makes a mistake.
1819
1820It was created by tdbc $as_me 1.1.3, which was
1821generated by GNU Autoconf 2.70.  Invocation command line was
1822
1823  $ $0$ac_configure_args_raw
1824
1825_ACEOF
1826exec 5>>config.log
1827{
1828cat <<_ASUNAME
1829## --------- ##
1830## Platform. ##
1831## --------- ##
1832
1833hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1834uname -m = `(uname -m) 2>/dev/null || echo unknown`
1835uname -r = `(uname -r) 2>/dev/null || echo unknown`
1836uname -s = `(uname -s) 2>/dev/null || echo unknown`
1837uname -v = `(uname -v) 2>/dev/null || echo unknown`
1838
1839/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1840/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1841
1842/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1843/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1844/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1845/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1846/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1847/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1848/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1849
1850_ASUNAME
1851
1852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1853for as_dir in $PATH
1854do
1855  IFS=$as_save_IFS
1856  case $as_dir in #(((
1857    '') as_dir=./ ;;
1858    */) ;;
1859    *) as_dir=$as_dir/ ;;
1860  esac
1861    printf "%s\n" "PATH: $as_dir"
1862  done
1863IFS=$as_save_IFS
1864
1865} >&5
1866
1867cat >&5 <<_ACEOF
1868
1869
1870## ----------- ##
1871## Core tests. ##
1872## ----------- ##
1873
1874_ACEOF
1875
1876
1877# Keep a trace of the command line.
1878# Strip out --no-create and --no-recursion so they do not pile up.
1879# Strip out --silent because we don't want to record it for future runs.
1880# Also quote any args containing shell meta-characters.
1881# Make two passes to allow for proper duplicate-argument suppression.
1882ac_configure_args=
1883ac_configure_args0=
1884ac_configure_args1=
1885ac_must_keep_next=false
1886for ac_pass in 1 2
1887do
1888  for ac_arg
1889  do
1890    case $ac_arg in
1891    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1892    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1893    | -silent | --silent | --silen | --sile | --sil)
1894      continue ;;
1895    *\'*)
1896      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1897    esac
1898    case $ac_pass in
1899    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1900    2)
1901      as_fn_append ac_configure_args1 " '$ac_arg'"
1902      if test $ac_must_keep_next = true; then
1903	ac_must_keep_next=false # Got value, back to normal.
1904      else
1905	case $ac_arg in
1906	  *=* | --config-cache | -C | -disable-* | --disable-* \
1907	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1908	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1909	  | -with-* | --with-* | -without-* | --without-* | --x)
1910	    case "$ac_configure_args0 " in
1911	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1912	    esac
1913	    ;;
1914	  -* ) ac_must_keep_next=true ;;
1915	esac
1916      fi
1917      as_fn_append ac_configure_args " '$ac_arg'"
1918      ;;
1919    esac
1920  done
1921done
1922{ ac_configure_args0=; unset ac_configure_args0;}
1923{ ac_configure_args1=; unset ac_configure_args1;}
1924
1925# When interrupted or exit'd, cleanup temporary files, and complete
1926# config.log.  We remove comments because anyway the quotes in there
1927# would cause problems or look ugly.
1928# WARNING: Use '\'' to represent an apostrophe within the trap.
1929# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1930trap 'exit_status=$?
1931  # Sanitize IFS.
1932  IFS=" ""	$as_nl"
1933  # Save into config.log some information that might help in debugging.
1934  {
1935    echo
1936
1937    printf "%s\n" "## ---------------- ##
1938## Cache variables. ##
1939## ---------------- ##"
1940    echo
1941    # The following way of writing the cache mishandles newlines in values,
1942(
1943  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1944    eval ac_val=\$$ac_var
1945    case $ac_val in #(
1946    *${as_nl}*)
1947      case $ac_var in #(
1948      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1949printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1950      esac
1951      case $ac_var in #(
1952      _ | IFS | as_nl) ;; #(
1953      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1954      *) { eval $ac_var=; unset $ac_var;} ;;
1955      esac ;;
1956    esac
1957  done
1958  (set) 2>&1 |
1959    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1960    *${as_nl}ac_space=\ *)
1961      sed -n \
1962	"s/'\''/'\''\\\\'\'''\''/g;
1963	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1964      ;; #(
1965    *)
1966      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1967      ;;
1968    esac |
1969    sort
1970)
1971    echo
1972
1973    printf "%s\n" "## ----------------- ##
1974## Output variables. ##
1975## ----------------- ##"
1976    echo
1977    for ac_var in $ac_subst_vars
1978    do
1979      eval ac_val=\$$ac_var
1980      case $ac_val in
1981      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1982      esac
1983      printf "%s\n" "$ac_var='\''$ac_val'\''"
1984    done | sort
1985    echo
1986
1987    if test -n "$ac_subst_files"; then
1988      printf "%s\n" "## ------------------- ##
1989## File substitutions. ##
1990## ------------------- ##"
1991      echo
1992      for ac_var in $ac_subst_files
1993      do
1994	eval ac_val=\$$ac_var
1995	case $ac_val in
1996	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1997	esac
1998	printf "%s\n" "$ac_var='\''$ac_val'\''"
1999      done | sort
2000      echo
2001    fi
2002
2003    if test -s confdefs.h; then
2004      printf "%s\n" "## ----------- ##
2005## confdefs.h. ##
2006## ----------- ##"
2007      echo
2008      cat confdefs.h
2009      echo
2010    fi
2011    test "$ac_signal" != 0 &&
2012      printf "%s\n" "$as_me: caught signal $ac_signal"
2013    printf "%s\n" "$as_me: exit $exit_status"
2014  } >&5
2015  rm -f core *.core core.conftest.* &&
2016    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2017    exit $exit_status
2018' 0
2019for ac_signal in 1 2 13 15; do
2020  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2021done
2022ac_signal=0
2023
2024# confdefs.h avoids OS command line length limits that DEFS can exceed.
2025rm -f -r conftest* confdefs.h
2026
2027printf "%s\n" "/* confdefs.h */" > confdefs.h
2028
2029# Predefined preprocessor variables.
2030
2031printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2032
2033printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2034
2035printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2036
2037printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2038
2039printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2040
2041printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2042
2043
2044# Let the site file select an alternate cache file if it wants to.
2045# Prefer an explicitly selected file to automatically selected ones.
2046if test -n "$CONFIG_SITE"; then
2047  ac_site_files="$CONFIG_SITE"
2048elif test "x$prefix" != xNONE; then
2049  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2050else
2051  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2052fi
2053
2054for ac_site_file in $ac_site_files
2055do
2056  case $ac_site_file in #(
2057  */*) :
2058     ;; #(
2059  *) :
2060    ac_site_file=./$ac_site_file ;;
2061esac
2062  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2063    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2064printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2065    sed 's/^/| /' "$ac_site_file" >&5
2066    . "$ac_site_file" \
2067      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2068printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2069as_fn_error $? "failed to load site script $ac_site_file
2070See \`config.log' for more details" "$LINENO" 5; }
2071  fi
2072done
2073
2074if test -r "$cache_file"; then
2075  # Some versions of bash will fail to source /dev/null (special files
2076  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2077  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2078    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2079printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2080    case $cache_file in
2081      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2082      *)                      . "./$cache_file";;
2083    esac
2084  fi
2085else
2086  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2087printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2088  >$cache_file
2089fi
2090
2091# Test code for whether the C compiler supports C89 (global declarations)
2092ac_c_conftest_c89_globals='
2093/* Does the compiler advertise C89 conformance?
2094   Do not test the value of __STDC__, because some compilers set it to 0
2095   while being otherwise adequately conformant. */
2096#if !defined __STDC__
2097# error "Compiler does not advertise C89 conformance"
2098#endif
2099
2100#include <stddef.h>
2101#include <stdarg.h>
2102struct stat;
2103/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2104struct buf { int x; };
2105struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2106static char *e (p, i)
2107     char **p;
2108     int i;
2109{
2110  return p[i];
2111}
2112static char *f (char * (*g) (char **, int), char **p, ...)
2113{
2114  char *s;
2115  va_list v;
2116  va_start (v,p);
2117  s = g (p, va_arg (v,int));
2118  va_end (v);
2119  return s;
2120}
2121
2122/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2123   function prototypes and stuff, but not \xHH hex character constants.
2124   These do not provoke an error unfortunately, instead are silently treated
2125   as an "x".  The following induces an error, until -std is added to get
2126   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2127   array size at least.  It is necessary to write \x00 == 0 to get something
2128   that is true only with -std.  */
2129int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2130
2131/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2132   inside strings and character constants.  */
2133#define FOO(x) '\''x'\''
2134int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2135
2136int test (int i, double x);
2137struct s1 {int (*f) (int a);};
2138struct s2 {int (*f) (double a);};
2139int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2140               int, int);'
2141
2142# Test code for whether the C compiler supports C89 (body of main).
2143ac_c_conftest_c89_main='
2144ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2145'
2146
2147# Test code for whether the C compiler supports C99 (global declarations)
2148ac_c_conftest_c99_globals='
2149// Does the compiler advertise C99 conformance?
2150#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2151# error "Compiler does not advertise C99 conformance"
2152#endif
2153
2154#include <stdbool.h>
2155extern int puts (const char *);
2156extern int printf (const char *, ...);
2157extern int dprintf (int, const char *, ...);
2158extern void *malloc (size_t);
2159
2160// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2161// dprintf is used instead of fprintf to avoid needing to declare
2162// FILE and stderr.
2163#define debug(...) dprintf (2, __VA_ARGS__)
2164#define showlist(...) puts (#__VA_ARGS__)
2165#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2166static void
2167test_varargs_macros (void)
2168{
2169  int x = 1234;
2170  int y = 5678;
2171  debug ("Flag");
2172  debug ("X = %d\n", x);
2173  showlist (The first, second, and third items.);
2174  report (x>y, "x is %d but y is %d", x, y);
2175}
2176
2177// Check long long types.
2178#define BIG64 18446744073709551615ull
2179#define BIG32 4294967295ul
2180#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2181#if !BIG_OK
2182  #error "your preprocessor is broken"
2183#endif
2184#if BIG_OK
2185#else
2186  #error "your preprocessor is broken"
2187#endif
2188static long long int bignum = -9223372036854775807LL;
2189static unsigned long long int ubignum = BIG64;
2190
2191struct incomplete_array
2192{
2193  int datasize;
2194  double data[];
2195};
2196
2197struct named_init {
2198  int number;
2199  const wchar_t *name;
2200  double average;
2201};
2202
2203typedef const char *ccp;
2204
2205static inline int
2206test_restrict (ccp restrict text)
2207{
2208  // See if C++-style comments work.
2209  // Iterate through items via the restricted pointer.
2210  // Also check for declarations in for loops.
2211  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2212    continue;
2213  return 0;
2214}
2215
2216// Check varargs and va_copy.
2217static bool
2218test_varargs (const char *format, ...)
2219{
2220  va_list args;
2221  va_start (args, format);
2222  va_list args_copy;
2223  va_copy (args_copy, args);
2224
2225  const char *str = "";
2226  int number = 0;
2227  float fnumber = 0;
2228
2229  while (*format)
2230    {
2231      switch (*format++)
2232	{
2233	case '\''s'\'': // string
2234	  str = va_arg (args_copy, const char *);
2235	  break;
2236	case '\''d'\'': // int
2237	  number = va_arg (args_copy, int);
2238	  break;
2239	case '\''f'\'': // float
2240	  fnumber = va_arg (args_copy, double);
2241	  break;
2242	default:
2243	  break;
2244	}
2245    }
2246  va_end (args_copy);
2247  va_end (args);
2248
2249  return *str && number && fnumber;
2250}
2251'
2252
2253# Test code for whether the C compiler supports C99 (body of main).
2254ac_c_conftest_c99_main='
2255  // Check bool.
2256  _Bool success = false;
2257  success |= (argc != 0);
2258
2259  // Check restrict.
2260  if (test_restrict ("String literal") == 0)
2261    success = true;
2262  char *restrict newvar = "Another string";
2263
2264  // Check varargs.
2265  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2266  test_varargs_macros ();
2267
2268  // Check flexible array members.
2269  struct incomplete_array *ia =
2270    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2271  ia->datasize = 10;
2272  for (int i = 0; i < ia->datasize; ++i)
2273    ia->data[i] = i * 1.234;
2274
2275  // Check named initializers.
2276  struct named_init ni = {
2277    .number = 34,
2278    .name = L"Test wide string",
2279    .average = 543.34343,
2280  };
2281
2282  ni.number = 58;
2283
2284  int dynamic_array[ni.number];
2285  dynamic_array[0] = argv[0][0];
2286  dynamic_array[ni.number - 1] = 543;
2287
2288  // work around unused variable warnings
2289  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2290	 || dynamic_array[ni.number - 1] != 543);
2291'
2292
2293# Test code for whether the C compiler supports C11 (global declarations)
2294ac_c_conftest_c11_globals='
2295// Does the compiler advertise C11 conformance?
2296#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2297# error "Compiler does not advertise C11 conformance"
2298#endif
2299
2300// Check _Alignas.
2301char _Alignas (double) aligned_as_double;
2302char _Alignas (0) no_special_alignment;
2303extern char aligned_as_int;
2304char _Alignas (0) _Alignas (int) aligned_as_int;
2305
2306// Check _Alignof.
2307enum
2308{
2309  int_alignment = _Alignof (int),
2310  int_array_alignment = _Alignof (int[100]),
2311  char_alignment = _Alignof (char)
2312};
2313_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2314
2315// Check _Noreturn.
2316int _Noreturn does_not_return (void) { for (;;) continue; }
2317
2318// Check _Static_assert.
2319struct test_static_assert
2320{
2321  int x;
2322  _Static_assert (sizeof (int) <= sizeof (long int),
2323                  "_Static_assert does not work in struct");
2324  long int y;
2325};
2326
2327// Check UTF-8 literals.
2328#define u8 syntax error!
2329char const utf8_literal[] = u8"happens to be ASCII" "another string";
2330
2331// Check duplicate typedefs.
2332typedef long *long_ptr;
2333typedef long int *long_ptr;
2334typedef long_ptr long_ptr;
2335
2336// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2337struct anonymous
2338{
2339  union {
2340    struct { int i; int j; };
2341    struct { int k; long int l; } w;
2342  };
2343  int m;
2344} v1;
2345'
2346
2347# Test code for whether the C compiler supports C11 (body of main).
2348ac_c_conftest_c11_main='
2349  _Static_assert ((offsetof (struct anonymous, i)
2350		   == offsetof (struct anonymous, w.k)),
2351		  "Anonymous union alignment botch");
2352  v1.i = 2;
2353  v1.w.k = 5;
2354  ok |= v1.i != 5;
2355'
2356
2357# Test code for whether the C compiler supports C11 (complete).
2358ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2359${ac_c_conftest_c99_globals}
2360${ac_c_conftest_c11_globals}
2361
2362int
2363main (int argc, char **argv)
2364{
2365  int ok = 0;
2366  ${ac_c_conftest_c89_main}
2367  ${ac_c_conftest_c99_main}
2368  ${ac_c_conftest_c11_main}
2369  return ok;
2370}
2371"
2372
2373# Test code for whether the C compiler supports C99 (complete).
2374ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2375${ac_c_conftest_c99_globals}
2376
2377int
2378main (int argc, char **argv)
2379{
2380  int ok = 0;
2381  ${ac_c_conftest_c89_main}
2382  ${ac_c_conftest_c99_main}
2383  return ok;
2384}
2385"
2386
2387# Test code for whether the C compiler supports C89 (complete).
2388ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2389
2390int
2391main (int argc, char **argv)
2392{
2393  int ok = 0;
2394  ${ac_c_conftest_c89_main}
2395  return ok;
2396}
2397"
2398
2399as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2400as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2401as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2402as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2403as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2404as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2405as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2406as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2407as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2408# Check that the precious variables saved in the cache have kept the same
2409# value.
2410ac_cache_corrupted=false
2411for ac_var in $ac_precious_vars; do
2412  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2413  eval ac_new_set=\$ac_env_${ac_var}_set
2414  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2415  eval ac_new_val=\$ac_env_${ac_var}_value
2416  case $ac_old_set,$ac_new_set in
2417    set,)
2418      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2419printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2420      ac_cache_corrupted=: ;;
2421    ,set)
2422      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2423printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2424      ac_cache_corrupted=: ;;
2425    ,);;
2426    *)
2427      if test "x$ac_old_val" != "x$ac_new_val"; then
2428	# differences in whitespace do not lead to failure.
2429	ac_old_val_w=`echo x $ac_old_val`
2430	ac_new_val_w=`echo x $ac_new_val`
2431	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2432	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2433printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2434	  ac_cache_corrupted=:
2435	else
2436	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2437printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2438	  eval $ac_var=\$ac_old_val
2439	fi
2440	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2441printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
2442	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2443printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
2444      fi;;
2445  esac
2446  # Pass precious variables to config.status.
2447  if test "$ac_new_set" = set; then
2448    case $ac_new_val in
2449    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2450    *) ac_arg=$ac_var=$ac_new_val ;;
2451    esac
2452    case " $ac_configure_args " in
2453      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2454      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2455    esac
2456  fi
2457done
2458if $ac_cache_corrupted; then
2459  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2460printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2461  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2462printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2463  as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2464	    and start over" "$LINENO" 5
2465fi
2466## -------------------- ##
2467## Main body of script. ##
2468## -------------------- ##
2469
2470ac_ext=c
2471ac_cpp='$CPP $CPPFLAGS'
2472ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2473ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2474ac_compiler_gnu=$ac_cv_c_compiler_gnu
2475
2476
2477
2478#--------------------------------------------------------------------
2479# Call TEA_INIT as the first TEA_ macro to set up initial vars.
2480# This will define a ${TEA_PLATFORM} variable == "unix" or "windows"
2481# as well as PKG_LIB_FILE and PKG_STUB_LIB_FILE.
2482#--------------------------------------------------------------------
2483
2484
2485    TEA_VERSION="3.13"
2486
2487    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking TEA configuration" >&5
2488printf %s "checking TEA configuration... " >&6; }
2489    if test x"${PACKAGE_NAME}" = x ; then
2490	as_fn_error $? "
2491The PACKAGE_NAME variable must be defined by your TEA configure.ac" "$LINENO" 5
2492    fi
2493    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok (TEA ${TEA_VERSION})" >&5
2494printf "%s\n" "ok (TEA ${TEA_VERSION})" >&6; }
2495
2496    # If the user did not set CFLAGS, set it now to keep macros
2497    # like AC_PROG_CC and AC_TRY_COMPILE from adding "-g -O2".
2498    if test "${CFLAGS+set}" != "set" ; then
2499	CFLAGS=""
2500    fi
2501
2502    case "`uname -s`" in
2503	*win32*|*WIN32*|*MINGW32_*|*MINGW64_*|*MSYS_*)
2504	    # Extract the first word of "cygpath", so it can be a program name with args.
2505set dummy cygpath; ac_word=$2
2506{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2507printf %s "checking for $ac_word... " >&6; }
2508if test ${ac_cv_prog_CYGPATH+y}
2509then :
2510  printf %s "(cached) " >&6
2511else $as_nop
2512  if test -n "$CYGPATH"; then
2513  ac_cv_prog_CYGPATH="$CYGPATH" # Let the user override the test.
2514else
2515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2516for as_dir in $PATH
2517do
2518  IFS=$as_save_IFS
2519  case $as_dir in #(((
2520    '') as_dir=./ ;;
2521    */) ;;
2522    *) as_dir=$as_dir/ ;;
2523  esac
2524    for ac_exec_ext in '' $ac_executable_extensions; do
2525  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2526    ac_cv_prog_CYGPATH="cygpath -m"
2527    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2528    break 2
2529  fi
2530done
2531  done
2532IFS=$as_save_IFS
2533
2534  test -z "$ac_cv_prog_CYGPATH" && ac_cv_prog_CYGPATH="echo"
2535fi
2536fi
2537CYGPATH=$ac_cv_prog_CYGPATH
2538if test -n "$CYGPATH"; then
2539  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
2540printf "%s\n" "$CYGPATH" >&6; }
2541else
2542  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2543printf "%s\n" "no" >&6; }
2544fi
2545
2546
2547	    EXEEXT=".exe"
2548	    TEA_PLATFORM="windows"
2549	    ;;
2550	*CYGWIN_*)
2551	    EXEEXT=".exe"
2552	    # CYGPATH and TEA_PLATFORM are determined later in LOAD_TCLCONFIG
2553	    ;;
2554	*)
2555	    CYGPATH=echo
2556	    # Maybe we are cross-compiling....
2557	    case ${host_alias} in
2558		*mingw32*)
2559		EXEEXT=".exe"
2560		TEA_PLATFORM="windows"
2561		;;
2562	    *)
2563		EXEEXT=""
2564		TEA_PLATFORM="unix"
2565		;;
2566	    esac
2567	    ;;
2568    esac
2569
2570    # Check if exec_prefix is set. If not use fall back to prefix.
2571    # Note when adjusted, so that TEA_PREFIX can correct for this.
2572    # This is needed for recursive configures, since autoconf propagates
2573    # $prefix, but not $exec_prefix (doh!).
2574    if test x$exec_prefix = xNONE ; then
2575	exec_prefix_default=yes
2576	exec_prefix=$prefix
2577    fi
2578
2579    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}" >&5
2580printf "%s\n" "$as_me: configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}" >&6;}
2581
2582
2583
2584
2585    # This package name must be replaced statically for AC_SUBST to work
2586
2587
2588
2589    # Substitute STUB_LIB_FILE in case package creates a stub library too.
2590
2591
2592    # We AC_SUBST these here to ensure they are subst'ed,
2593    # in case the user doesn't call TEA_ADD_...
2594
2595
2596
2597
2598
2599
2600
2601
2602    # Configure the installer.
2603
2604    INSTALL='$(SHELL) $(srcdir)/tclconfig/install-sh -c'
2605    INSTALL_DATA_DIR='${INSTALL} -d -m 755'
2606    INSTALL_DATA='${INSTALL} -m 644'
2607    INSTALL_PROGRAM='${INSTALL} -m 755'
2608    INSTALL_SCRIPT='${INSTALL} -m 755'
2609
2610
2611    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking system version" >&5
2612printf %s "checking system version... " >&6; }
2613if test ${tcl_cv_sys_version+y}
2614then :
2615  printf %s "(cached) " >&6
2616else $as_nop
2617
2618	# TEA specific:
2619	if test "${TEA_PLATFORM}" = "windows" ; then
2620	    tcl_cv_sys_version=windows
2621	else
2622	    tcl_cv_sys_version=`uname -s`-`uname -r`
2623	    if test "$?" -ne 0 ; then
2624		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: can't find uname command" >&5
2625printf "%s\n" "$as_me: WARNING: can't find uname command" >&2;}
2626		tcl_cv_sys_version=unknown
2627	    else
2628		if test "`uname -s`" = "AIX" ; then
2629		    tcl_cv_sys_version=AIX-`uname -v`.`uname -r`
2630		fi
2631		if test "`uname -s`" = "NetBSD" -a -f /etc/debian_version ; then
2632		    tcl_cv_sys_version=NetBSD-Debian
2633		fi
2634	    fi
2635	fi
2636
2637fi
2638{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_sys_version" >&5
2639printf "%s\n" "$tcl_cv_sys_version" >&6; }
2640    system=$tcl_cv_sys_version
2641
2642    case $system in
2643	HP-UX-*) INSTALL_LIBRARY='${INSTALL} -m 755' ;;
2644	      *) INSTALL_LIBRARY='${INSTALL} -m 644' ;;
2645    esac
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658#--------------------------------------------------------------------
2659# Load the tclConfig.sh file
2660#--------------------------------------------------------------------
2661
2662
2663
2664    #
2665    # Ok, lets find the tcl configuration
2666    # First, look for one uninstalled.
2667    # the alternative search directory is invoked by --with-tcl
2668    #
2669
2670    if test x"${no_tcl}" = x ; then
2671	# we reset no_tcl in case something fails here
2672	no_tcl=true
2673
2674# Check whether --with-tcl was given.
2675if test ${with_tcl+y}
2676then :
2677  withval=$with_tcl; with_tclconfig="${withval}"
2678fi
2679
2680	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
2681printf %s "checking for Tcl configuration... " >&6; }
2682	if test ${ac_cv_c_tclconfig+y}
2683then :
2684  printf %s "(cached) " >&6
2685else $as_nop
2686
2687
2688	    # First check to see if --with-tcl was specified.
2689	    if test x"${with_tclconfig}" != x ; then
2690		case "${with_tclconfig}" in
2691		    */tclConfig.sh )
2692			if test -f "${with_tclconfig}"; then
2693			    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --with-tcl argument should refer to directory containing tclConfig.sh, not to tclConfig.sh itself" >&5
2694printf "%s\n" "$as_me: WARNING: --with-tcl argument should refer to directory containing tclConfig.sh, not to tclConfig.sh itself" >&2;}
2695			    with_tclconfig="`echo "${with_tclconfig}" | sed 's!/tclConfig\.sh$!!'`"
2696			fi ;;
2697		esac
2698		if test -f "${with_tclconfig}/tclConfig.sh" ; then
2699		    ac_cv_c_tclconfig="`(cd "${with_tclconfig}"; pwd)`"
2700		else
2701		    as_fn_error $? "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
2702		fi
2703	    fi
2704
2705	    # then check for a private Tcl installation
2706	    if test x"${ac_cv_c_tclconfig}" = x ; then
2707		for i in \
2708			../tcl \
2709			`ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
2710			`ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
2711			`ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
2712			../../tcl \
2713			`ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
2714			`ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
2715			`ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
2716			../../../tcl \
2717			`ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
2718			`ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
2719			`ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
2720		    if test "${TEA_PLATFORM}" = "windows" \
2721			    -a -f "$i/win/tclConfig.sh" ; then
2722			ac_cv_c_tclconfig="`(cd $i/win; pwd)`"
2723			break
2724		    fi
2725		    if test -f "$i/unix/tclConfig.sh" ; then
2726			ac_cv_c_tclconfig="`(cd $i/unix; pwd)`"
2727			break
2728		    fi
2729		done
2730	    fi
2731
2732	    # on Darwin, check in Framework installation locations
2733	    if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then
2734		for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
2735			`ls -d /Library/Frameworks 2>/dev/null` \
2736			`ls -d /Network/Library/Frameworks 2>/dev/null` \
2737			`ls -d /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/Library/Frameworks/Tcl.framework 2>/dev/null` \
2738			`ls -d /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/Network/Library/Frameworks/Tcl.framework 2>/dev/null` \
2739			`ls -d /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Tcl.framework 2>/dev/null` \
2740			; do
2741		    if test -f "$i/Tcl.framework/tclConfig.sh" ; then
2742			ac_cv_c_tclconfig="`(cd $i/Tcl.framework; pwd)`"
2743			break
2744		    fi
2745		done
2746	    fi
2747
2748	    # TEA specific: on Windows, check in common installation locations
2749	    if test "${TEA_PLATFORM}" = "windows" \
2750		-a x"${ac_cv_c_tclconfig}" = x ; then
2751		for i in `ls -d C:/Tcl/lib 2>/dev/null` \
2752			`ls -d C:/Progra~1/Tcl/lib 2>/dev/null` \
2753			; do
2754		    if test -f "$i/tclConfig.sh" ; then
2755			ac_cv_c_tclconfig="`(cd $i; pwd)`"
2756			break
2757		    fi
2758		done
2759	    fi
2760
2761	    # check in a few common install locations
2762	    if test x"${ac_cv_c_tclconfig}" = x ; then
2763		for i in `ls -d ${libdir} 2>/dev/null` \
2764			`ls -d ${exec_prefix}/lib 2>/dev/null` \
2765			`ls -d ${prefix}/lib 2>/dev/null` \
2766			`ls -d /usr/local/lib 2>/dev/null` \
2767			`ls -d /usr/contrib/lib 2>/dev/null` \
2768			`ls -d /usr/pkg/lib 2>/dev/null` \
2769			`ls -d /usr/lib 2>/dev/null` \
2770			`ls -d /usr/lib64 2>/dev/null` \
2771			`ls -d /usr/lib/tcl8.6 2>/dev/null` \
2772			`ls -d /usr/lib/tcl8.5 2>/dev/null` \
2773			`ls -d /usr/local/lib/tcl8.6 2>/dev/null` \
2774			`ls -d /usr/local/lib/tcl8.5 2>/dev/null` \
2775			`ls -d /usr/local/lib/tcl/tcl8.6 2>/dev/null` \
2776			`ls -d /usr/local/lib/tcl/tcl8.5 2>/dev/null` \
2777			; do
2778		    if test -f "$i/tclConfig.sh" ; then
2779			ac_cv_c_tclconfig="`(cd $i; pwd)`"
2780			break
2781		    fi
2782		done
2783	    fi
2784
2785	    # check in a few other private locations
2786	    if test x"${ac_cv_c_tclconfig}" = x ; then
2787		for i in \
2788			${srcdir}/../tcl \
2789			`ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
2790			`ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
2791			`ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
2792		    if test "${TEA_PLATFORM}" = "windows" \
2793			    -a -f "$i/win/tclConfig.sh" ; then
2794			ac_cv_c_tclconfig="`(cd $i/win; pwd)`"
2795			break
2796		    fi
2797		    if test -f "$i/unix/tclConfig.sh" ; then
2798			ac_cv_c_tclconfig="`(cd $i/unix; pwd)`"
2799			break
2800		    fi
2801		done
2802	    fi
2803
2804fi
2805
2806
2807	if test x"${ac_cv_c_tclconfig}" = x ; then
2808	    TCL_BIN_DIR="# no Tcl configs found"
2809	    as_fn_error $? "Can't find Tcl configuration definitions. Use --with-tcl to specify a directory containing tclConfig.sh" "$LINENO" 5
2810	else
2811	    no_tcl=
2812	    TCL_BIN_DIR="${ac_cv_c_tclconfig}"
2813	    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
2814printf "%s\n" "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
2815	fi
2816    fi
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827ac_ext=c
2828ac_cpp='$CPP $CPPFLAGS'
2829ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2830ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2831ac_compiler_gnu=$ac_cv_c_compiler_gnu
2832if test -n "$ac_tool_prefix"; then
2833  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2834set dummy ${ac_tool_prefix}gcc; ac_word=$2
2835{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2836printf %s "checking for $ac_word... " >&6; }
2837if test ${ac_cv_prog_CC+y}
2838then :
2839  printf %s "(cached) " >&6
2840else $as_nop
2841  if test -n "$CC"; then
2842  ac_cv_prog_CC="$CC" # Let the user override the test.
2843else
2844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2845for as_dir in $PATH
2846do
2847  IFS=$as_save_IFS
2848  case $as_dir in #(((
2849    '') as_dir=./ ;;
2850    */) ;;
2851    *) as_dir=$as_dir/ ;;
2852  esac
2853    for ac_exec_ext in '' $ac_executable_extensions; do
2854  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2855    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2856    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2857    break 2
2858  fi
2859done
2860  done
2861IFS=$as_save_IFS
2862
2863fi
2864fi
2865CC=$ac_cv_prog_CC
2866if test -n "$CC"; then
2867  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2868printf "%s\n" "$CC" >&6; }
2869else
2870  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2871printf "%s\n" "no" >&6; }
2872fi
2873
2874
2875fi
2876if test -z "$ac_cv_prog_CC"; then
2877  ac_ct_CC=$CC
2878  # Extract the first word of "gcc", so it can be a program name with args.
2879set dummy gcc; ac_word=$2
2880{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2881printf %s "checking for $ac_word... " >&6; }
2882if test ${ac_cv_prog_ac_ct_CC+y}
2883then :
2884  printf %s "(cached) " >&6
2885else $as_nop
2886  if test -n "$ac_ct_CC"; then
2887  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2888else
2889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2890for as_dir in $PATH
2891do
2892  IFS=$as_save_IFS
2893  case $as_dir in #(((
2894    '') as_dir=./ ;;
2895    */) ;;
2896    *) as_dir=$as_dir/ ;;
2897  esac
2898    for ac_exec_ext in '' $ac_executable_extensions; do
2899  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2900    ac_cv_prog_ac_ct_CC="gcc"
2901    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2902    break 2
2903  fi
2904done
2905  done
2906IFS=$as_save_IFS
2907
2908fi
2909fi
2910ac_ct_CC=$ac_cv_prog_ac_ct_CC
2911if test -n "$ac_ct_CC"; then
2912  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2913printf "%s\n" "$ac_ct_CC" >&6; }
2914else
2915  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2916printf "%s\n" "no" >&6; }
2917fi
2918
2919  if test "x$ac_ct_CC" = x; then
2920    CC=""
2921  else
2922    case $cross_compiling:$ac_tool_warned in
2923yes:)
2924{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2925printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2926ac_tool_warned=yes ;;
2927esac
2928    CC=$ac_ct_CC
2929  fi
2930else
2931  CC="$ac_cv_prog_CC"
2932fi
2933
2934if test -z "$CC"; then
2935          if test -n "$ac_tool_prefix"; then
2936    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2937set dummy ${ac_tool_prefix}cc; ac_word=$2
2938{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2939printf %s "checking for $ac_word... " >&6; }
2940if test ${ac_cv_prog_CC+y}
2941then :
2942  printf %s "(cached) " >&6
2943else $as_nop
2944  if test -n "$CC"; then
2945  ac_cv_prog_CC="$CC" # Let the user override the test.
2946else
2947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2948for as_dir in $PATH
2949do
2950  IFS=$as_save_IFS
2951  case $as_dir in #(((
2952    '') as_dir=./ ;;
2953    */) ;;
2954    *) as_dir=$as_dir/ ;;
2955  esac
2956    for ac_exec_ext in '' $ac_executable_extensions; do
2957  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2958    ac_cv_prog_CC="${ac_tool_prefix}cc"
2959    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2960    break 2
2961  fi
2962done
2963  done
2964IFS=$as_save_IFS
2965
2966fi
2967fi
2968CC=$ac_cv_prog_CC
2969if test -n "$CC"; then
2970  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2971printf "%s\n" "$CC" >&6; }
2972else
2973  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2974printf "%s\n" "no" >&6; }
2975fi
2976
2977
2978  fi
2979fi
2980if test -z "$CC"; then
2981  # Extract the first word of "cc", so it can be a program name with args.
2982set dummy cc; ac_word=$2
2983{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2984printf %s "checking for $ac_word... " >&6; }
2985if test ${ac_cv_prog_CC+y}
2986then :
2987  printf %s "(cached) " >&6
2988else $as_nop
2989  if test -n "$CC"; then
2990  ac_cv_prog_CC="$CC" # Let the user override the test.
2991else
2992  ac_prog_rejected=no
2993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2994for as_dir in $PATH
2995do
2996  IFS=$as_save_IFS
2997  case $as_dir in #(((
2998    '') as_dir=./ ;;
2999    */) ;;
3000    *) as_dir=$as_dir/ ;;
3001  esac
3002    for ac_exec_ext in '' $ac_executable_extensions; do
3003  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3004    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3005       ac_prog_rejected=yes
3006       continue
3007     fi
3008    ac_cv_prog_CC="cc"
3009    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3010    break 2
3011  fi
3012done
3013  done
3014IFS=$as_save_IFS
3015
3016if test $ac_prog_rejected = yes; then
3017  # We found a bogon in the path, so make sure we never use it.
3018  set dummy $ac_cv_prog_CC
3019  shift
3020  if test $# != 0; then
3021    # We chose a different compiler from the bogus one.
3022    # However, it has the same basename, so the bogon will be chosen
3023    # first if we set CC to just the basename; use the full file name.
3024    shift
3025    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3026  fi
3027fi
3028fi
3029fi
3030CC=$ac_cv_prog_CC
3031if test -n "$CC"; then
3032  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3033printf "%s\n" "$CC" >&6; }
3034else
3035  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3036printf "%s\n" "no" >&6; }
3037fi
3038
3039
3040fi
3041if test -z "$CC"; then
3042  if test -n "$ac_tool_prefix"; then
3043  for ac_prog in cl.exe
3044  do
3045    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3046set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3047{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3048printf %s "checking for $ac_word... " >&6; }
3049if test ${ac_cv_prog_CC+y}
3050then :
3051  printf %s "(cached) " >&6
3052else $as_nop
3053  if test -n "$CC"; then
3054  ac_cv_prog_CC="$CC" # Let the user override the test.
3055else
3056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3057for as_dir in $PATH
3058do
3059  IFS=$as_save_IFS
3060  case $as_dir in #(((
3061    '') as_dir=./ ;;
3062    */) ;;
3063    *) as_dir=$as_dir/ ;;
3064  esac
3065    for ac_exec_ext in '' $ac_executable_extensions; do
3066  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3067    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3068    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3069    break 2
3070  fi
3071done
3072  done
3073IFS=$as_save_IFS
3074
3075fi
3076fi
3077CC=$ac_cv_prog_CC
3078if test -n "$CC"; then
3079  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3080printf "%s\n" "$CC" >&6; }
3081else
3082  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3083printf "%s\n" "no" >&6; }
3084fi
3085
3086
3087    test -n "$CC" && break
3088  done
3089fi
3090if test -z "$CC"; then
3091  ac_ct_CC=$CC
3092  for ac_prog in cl.exe
3093do
3094  # Extract the first word of "$ac_prog", so it can be a program name with args.
3095set dummy $ac_prog; ac_word=$2
3096{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3097printf %s "checking for $ac_word... " >&6; }
3098if test ${ac_cv_prog_ac_ct_CC+y}
3099then :
3100  printf %s "(cached) " >&6
3101else $as_nop
3102  if test -n "$ac_ct_CC"; then
3103  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3104else
3105as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3106for as_dir in $PATH
3107do
3108  IFS=$as_save_IFS
3109  case $as_dir in #(((
3110    '') as_dir=./ ;;
3111    */) ;;
3112    *) as_dir=$as_dir/ ;;
3113  esac
3114    for ac_exec_ext in '' $ac_executable_extensions; do
3115  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3116    ac_cv_prog_ac_ct_CC="$ac_prog"
3117    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3118    break 2
3119  fi
3120done
3121  done
3122IFS=$as_save_IFS
3123
3124fi
3125fi
3126ac_ct_CC=$ac_cv_prog_ac_ct_CC
3127if test -n "$ac_ct_CC"; then
3128  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3129printf "%s\n" "$ac_ct_CC" >&6; }
3130else
3131  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3132printf "%s\n" "no" >&6; }
3133fi
3134
3135
3136  test -n "$ac_ct_CC" && break
3137done
3138
3139  if test "x$ac_ct_CC" = x; then
3140    CC=""
3141  else
3142    case $cross_compiling:$ac_tool_warned in
3143yes:)
3144{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3145printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3146ac_tool_warned=yes ;;
3147esac
3148    CC=$ac_ct_CC
3149  fi
3150fi
3151
3152fi
3153if test -z "$CC"; then
3154  if test -n "$ac_tool_prefix"; then
3155  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3156set dummy ${ac_tool_prefix}clang; ac_word=$2
3157{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3158printf %s "checking for $ac_word... " >&6; }
3159if test ${ac_cv_prog_CC+y}
3160then :
3161  printf %s "(cached) " >&6
3162else $as_nop
3163  if test -n "$CC"; then
3164  ac_cv_prog_CC="$CC" # Let the user override the test.
3165else
3166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3167for as_dir in $PATH
3168do
3169  IFS=$as_save_IFS
3170  case $as_dir in #(((
3171    '') as_dir=./ ;;
3172    */) ;;
3173    *) as_dir=$as_dir/ ;;
3174  esac
3175    for ac_exec_ext in '' $ac_executable_extensions; do
3176  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3177    ac_cv_prog_CC="${ac_tool_prefix}clang"
3178    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3179    break 2
3180  fi
3181done
3182  done
3183IFS=$as_save_IFS
3184
3185fi
3186fi
3187CC=$ac_cv_prog_CC
3188if test -n "$CC"; then
3189  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3190printf "%s\n" "$CC" >&6; }
3191else
3192  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3193printf "%s\n" "no" >&6; }
3194fi
3195
3196
3197fi
3198if test -z "$ac_cv_prog_CC"; then
3199  ac_ct_CC=$CC
3200  # Extract the first word of "clang", so it can be a program name with args.
3201set dummy clang; ac_word=$2
3202{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3203printf %s "checking for $ac_word... " >&6; }
3204if test ${ac_cv_prog_ac_ct_CC+y}
3205then :
3206  printf %s "(cached) " >&6
3207else $as_nop
3208  if test -n "$ac_ct_CC"; then
3209  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3210else
3211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3212for as_dir in $PATH
3213do
3214  IFS=$as_save_IFS
3215  case $as_dir in #(((
3216    '') as_dir=./ ;;
3217    */) ;;
3218    *) as_dir=$as_dir/ ;;
3219  esac
3220    for ac_exec_ext in '' $ac_executable_extensions; do
3221  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3222    ac_cv_prog_ac_ct_CC="clang"
3223    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3224    break 2
3225  fi
3226done
3227  done
3228IFS=$as_save_IFS
3229
3230fi
3231fi
3232ac_ct_CC=$ac_cv_prog_ac_ct_CC
3233if test -n "$ac_ct_CC"; then
3234  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3235printf "%s\n" "$ac_ct_CC" >&6; }
3236else
3237  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3238printf "%s\n" "no" >&6; }
3239fi
3240
3241  if test "x$ac_ct_CC" = x; then
3242    CC=""
3243  else
3244    case $cross_compiling:$ac_tool_warned in
3245yes:)
3246{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3247printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3248ac_tool_warned=yes ;;
3249esac
3250    CC=$ac_ct_CC
3251  fi
3252else
3253  CC="$ac_cv_prog_CC"
3254fi
3255
3256fi
3257
3258
3259test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3260printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3261as_fn_error $? "no acceptable C compiler found in \$PATH
3262See \`config.log' for more details" "$LINENO" 5; }
3263
3264# Provide some information about the compiler.
3265printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3266set X $ac_compile
3267ac_compiler=$2
3268for ac_option in --version -v -V -qversion -version; do
3269  { { ac_try="$ac_compiler $ac_option >&5"
3270case "(($ac_try" in
3271  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3272  *) ac_try_echo=$ac_try;;
3273esac
3274eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3275printf "%s\n" "$ac_try_echo"; } >&5
3276  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3277  ac_status=$?
3278  if test -s conftest.err; then
3279    sed '10a\
3280... rest of stderr output deleted ...
3281         10q' conftest.err >conftest.er1
3282    cat conftest.er1 >&5
3283  fi
3284  rm -f conftest.er1 conftest.err
3285  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3286  test $ac_status = 0; }
3287done
3288
3289cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3290/* end confdefs.h.  */
3291
3292int
3293main (void)
3294{
3295
3296  ;
3297  return 0;
3298}
3299_ACEOF
3300ac_clean_files_save=$ac_clean_files
3301ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3302# Try to create an executable without -o first, disregard a.out.
3303# It will help us diagnose broken compilers, and finding out an intuition
3304# of exeext.
3305{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3306printf %s "checking whether the C compiler works... " >&6; }
3307ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3308
3309# The possible output files:
3310ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3311
3312ac_rmfiles=
3313for ac_file in $ac_files
3314do
3315  case $ac_file in
3316    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3317    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3318  esac
3319done
3320rm -f $ac_rmfiles
3321
3322if { { ac_try="$ac_link_default"
3323case "(($ac_try" in
3324  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3325  *) ac_try_echo=$ac_try;;
3326esac
3327eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3328printf "%s\n" "$ac_try_echo"; } >&5
3329  (eval "$ac_link_default") 2>&5
3330  ac_status=$?
3331  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3332  test $ac_status = 0; }
3333then :
3334  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3335# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3336# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3337# so that the user can short-circuit this test for compilers unknown to
3338# Autoconf.
3339for ac_file in $ac_files ''
3340do
3341  test -f "$ac_file" || continue
3342  case $ac_file in
3343    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3344	;;
3345    [ab].out )
3346	# We found the default executable, but exeext='' is most
3347	# certainly right.
3348	break;;
3349    *.* )
3350	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3351	then :; else
3352	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3353	fi
3354	# We set ac_cv_exeext here because the later test for it is not
3355	# safe: cross compilers may not add the suffix if given an `-o'
3356	# argument, so we may need to know it at that point already.
3357	# Even if this section looks crufty: it has the advantage of
3358	# actually working.
3359	break;;
3360    * )
3361	break;;
3362  esac
3363done
3364test "$ac_cv_exeext" = no && ac_cv_exeext=
3365
3366else $as_nop
3367  ac_file=''
3368fi
3369if test -z "$ac_file"
3370then :
3371  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3372printf "%s\n" "no" >&6; }
3373printf "%s\n" "$as_me: failed program was:" >&5
3374sed 's/^/| /' conftest.$ac_ext >&5
3375
3376{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3377printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3378as_fn_error 77 "C compiler cannot create executables
3379See \`config.log' for more details" "$LINENO" 5; }
3380else $as_nop
3381  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3382printf "%s\n" "yes" >&6; }
3383fi
3384{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3385printf %s "checking for C compiler default output file name... " >&6; }
3386{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3387printf "%s\n" "$ac_file" >&6; }
3388ac_exeext=$ac_cv_exeext
3389
3390rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3391ac_clean_files=$ac_clean_files_save
3392{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3393printf %s "checking for suffix of executables... " >&6; }
3394if { { ac_try="$ac_link"
3395case "(($ac_try" in
3396  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3397  *) ac_try_echo=$ac_try;;
3398esac
3399eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3400printf "%s\n" "$ac_try_echo"; } >&5
3401  (eval "$ac_link") 2>&5
3402  ac_status=$?
3403  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3404  test $ac_status = 0; }
3405then :
3406  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3407# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3408# work properly (i.e., refer to `conftest.exe'), while it won't with
3409# `rm'.
3410for ac_file in conftest.exe conftest conftest.*; do
3411  test -f "$ac_file" || continue
3412  case $ac_file in
3413    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3414    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3415	  break;;
3416    * ) break;;
3417  esac
3418done
3419else $as_nop
3420  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3421printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3422as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3423See \`config.log' for more details" "$LINENO" 5; }
3424fi
3425rm -f conftest conftest$ac_cv_exeext
3426{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3427printf "%s\n" "$ac_cv_exeext" >&6; }
3428
3429rm -f conftest.$ac_ext
3430EXEEXT=$ac_cv_exeext
3431ac_exeext=$EXEEXT
3432cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3433/* end confdefs.h.  */
3434#include <stdio.h>
3435int
3436main (void)
3437{
3438FILE *f = fopen ("conftest.out", "w");
3439 return ferror (f) || fclose (f) != 0;
3440
3441  ;
3442  return 0;
3443}
3444_ACEOF
3445ac_clean_files="$ac_clean_files conftest.out"
3446# Check that the compiler produces executables we can run.  If not, either
3447# the compiler is broken, or we cross compile.
3448{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3449printf %s "checking whether we are cross compiling... " >&6; }
3450if test "$cross_compiling" != yes; then
3451  { { ac_try="$ac_link"
3452case "(($ac_try" in
3453  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3454  *) ac_try_echo=$ac_try;;
3455esac
3456eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3457printf "%s\n" "$ac_try_echo"; } >&5
3458  (eval "$ac_link") 2>&5
3459  ac_status=$?
3460  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3461  test $ac_status = 0; }
3462  if { ac_try='./conftest$ac_cv_exeext'
3463  { { case "(($ac_try" in
3464  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3465  *) ac_try_echo=$ac_try;;
3466esac
3467eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3468printf "%s\n" "$ac_try_echo"; } >&5
3469  (eval "$ac_try") 2>&5
3470  ac_status=$?
3471  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3472  test $ac_status = 0; }; }; then
3473    cross_compiling=no
3474  else
3475    if test "$cross_compiling" = maybe; then
3476	cross_compiling=yes
3477    else
3478	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3479printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3480as_fn_error 77 "cannot run C compiled programs.
3481If you meant to cross compile, use \`--host'.
3482See \`config.log' for more details" "$LINENO" 5; }
3483    fi
3484  fi
3485fi
3486{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3487printf "%s\n" "$cross_compiling" >&6; }
3488
3489rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3490ac_clean_files=$ac_clean_files_save
3491{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3492printf %s "checking for suffix of object files... " >&6; }
3493if test ${ac_cv_objext+y}
3494then :
3495  printf %s "(cached) " >&6
3496else $as_nop
3497  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3498/* end confdefs.h.  */
3499
3500int
3501main (void)
3502{
3503
3504  ;
3505  return 0;
3506}
3507_ACEOF
3508rm -f conftest.o conftest.obj
3509if { { ac_try="$ac_compile"
3510case "(($ac_try" in
3511  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3512  *) ac_try_echo=$ac_try;;
3513esac
3514eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3515printf "%s\n" "$ac_try_echo"; } >&5
3516  (eval "$ac_compile") 2>&5
3517  ac_status=$?
3518  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3519  test $ac_status = 0; }
3520then :
3521  for ac_file in conftest.o conftest.obj conftest.*; do
3522  test -f "$ac_file" || continue;
3523  case $ac_file in
3524    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3525    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3526       break;;
3527  esac
3528done
3529else $as_nop
3530  printf "%s\n" "$as_me: failed program was:" >&5
3531sed 's/^/| /' conftest.$ac_ext >&5
3532
3533{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3534printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3535as_fn_error $? "cannot compute suffix of object files: cannot compile
3536See \`config.log' for more details" "$LINENO" 5; }
3537fi
3538rm -f conftest.$ac_cv_objext conftest.$ac_ext
3539fi
3540{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3541printf "%s\n" "$ac_cv_objext" >&6; }
3542OBJEXT=$ac_cv_objext
3543ac_objext=$OBJEXT
3544{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3545printf %s "checking whether the compiler supports GNU C... " >&6; }
3546if test ${ac_cv_c_compiler_gnu+y}
3547then :
3548  printf %s "(cached) " >&6
3549else $as_nop
3550  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3551/* end confdefs.h.  */
3552
3553int
3554main (void)
3555{
3556#ifndef __GNUC__
3557       choke me
3558#endif
3559
3560  ;
3561  return 0;
3562}
3563_ACEOF
3564if ac_fn_c_try_compile "$LINENO"
3565then :
3566  ac_compiler_gnu=yes
3567else $as_nop
3568  ac_compiler_gnu=no
3569fi
3570rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3571ac_cv_c_compiler_gnu=$ac_compiler_gnu
3572
3573fi
3574{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3575printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3576ac_compiler_gnu=$ac_cv_c_compiler_gnu
3577
3578if test $ac_compiler_gnu = yes; then
3579  GCC=yes
3580else
3581  GCC=
3582fi
3583ac_test_CFLAGS=${CFLAGS+y}
3584ac_save_CFLAGS=$CFLAGS
3585{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3586printf %s "checking whether $CC accepts -g... " >&6; }
3587if test ${ac_cv_prog_cc_g+y}
3588then :
3589  printf %s "(cached) " >&6
3590else $as_nop
3591  ac_save_c_werror_flag=$ac_c_werror_flag
3592   ac_c_werror_flag=yes
3593   ac_cv_prog_cc_g=no
3594   CFLAGS="-g"
3595   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3596/* end confdefs.h.  */
3597
3598int
3599main (void)
3600{
3601
3602  ;
3603  return 0;
3604}
3605_ACEOF
3606if ac_fn_c_try_compile "$LINENO"
3607then :
3608  ac_cv_prog_cc_g=yes
3609else $as_nop
3610  CFLAGS=""
3611      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3612/* end confdefs.h.  */
3613
3614int
3615main (void)
3616{
3617
3618  ;
3619  return 0;
3620}
3621_ACEOF
3622if ac_fn_c_try_compile "$LINENO"
3623then :
3624
3625else $as_nop
3626  ac_c_werror_flag=$ac_save_c_werror_flag
3627	 CFLAGS="-g"
3628	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3629/* end confdefs.h.  */
3630
3631int
3632main (void)
3633{
3634
3635  ;
3636  return 0;
3637}
3638_ACEOF
3639if ac_fn_c_try_compile "$LINENO"
3640then :
3641  ac_cv_prog_cc_g=yes
3642fi
3643rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3644fi
3645rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3646fi
3647rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3648   ac_c_werror_flag=$ac_save_c_werror_flag
3649fi
3650{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3651printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3652if test $ac_test_CFLAGS; then
3653  CFLAGS=$ac_save_CFLAGS
3654elif test $ac_cv_prog_cc_g = yes; then
3655  if test "$GCC" = yes; then
3656    CFLAGS="-g -O2"
3657  else
3658    CFLAGS="-g"
3659  fi
3660else
3661  if test "$GCC" = yes; then
3662    CFLAGS="-O2"
3663  else
3664    CFLAGS=
3665  fi
3666fi
3667{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3668printf %s "checking for $CC option to enable C11 features... " >&6; }
3669if test ${ac_cv_prog_cc_c11+y}
3670then :
3671  printf %s "(cached) " >&6
3672else $as_nop
3673  ac_cv_prog_cc_c11=no
3674ac_save_CC=$CC
3675cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3676/* end confdefs.h.  */
3677$ac_c_conftest_c11_program
3678_ACEOF
3679for ac_arg in '' -std=gnu11
3680do
3681  CC="$ac_save_CC $ac_arg"
3682  if ac_fn_c_try_compile "$LINENO"
3683then :
3684  ac_cv_prog_cc_c11=$ac_arg
3685fi
3686rm -f core conftest.err conftest.$ac_objext conftest.beam
3687  test "x$ac_cv_prog_cc_c11" != "xno" && break
3688done
3689rm -f conftest.$ac_ext
3690CC=$ac_save_CC
3691
3692fi
3693# AC_CACHE_VAL
3694ac_prog_cc_stdc_options=
3695case "x$ac_cv_prog_cc_c11" in #(
3696  x) :
3697    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3698printf "%s\n" "none needed" >&6; } ;; #(
3699  xno) :
3700    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3701printf "%s\n" "unsupported" >&6; } ;; #(
3702  *) :
3703    ac_prog_cc_stdc_options=" $ac_cv_prog_cc_c11"
3704    CC="$CC$ac_prog_cc_stdc_options"
3705    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3706printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } ;;
3707esac
3708if test "x$ac_cv_prog_cc_c11" != xno
3709then :
3710  ac_prog_cc_stdc=c11
3711		 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3712else $as_nop
3713  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3714printf %s "checking for $CC option to enable C99 features... " >&6; }
3715if test ${ac_cv_prog_cc_c99+y}
3716then :
3717  printf %s "(cached) " >&6
3718else $as_nop
3719  ac_cv_prog_cc_c99=no
3720ac_save_CC=$CC
3721cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3722/* end confdefs.h.  */
3723$ac_c_conftest_c89_program
3724_ACEOF
3725for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc1x -qlanglvl=extc99
3726do
3727  CC="$ac_save_CC $ac_arg"
3728  if ac_fn_c_try_compile "$LINENO"
3729then :
3730  ac_cv_prog_cc_c99=$ac_arg
3731fi
3732rm -f core conftest.err conftest.$ac_objext conftest.beam
3733  test "x$ac_cv_prog_cc_c99" != "xno" && break
3734done
3735rm -f conftest.$ac_ext
3736CC=$ac_save_CC
3737
3738fi
3739# AC_CACHE_VAL
3740ac_prog_cc_stdc_options=
3741case "x$ac_cv_prog_cc_c99" in #(
3742  x) :
3743    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3744printf "%s\n" "none needed" >&6; } ;; #(
3745  xno) :
3746    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3747printf "%s\n" "unsupported" >&6; } ;; #(
3748  *) :
3749    ac_prog_cc_stdc_options=" $ac_cv_prog_cc_c99"
3750    CC="$CC$ac_prog_cc_stdc_options"
3751    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3752printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } ;;
3753esac
3754if test "x$ac_cv_prog_cc_c99" != xno
3755then :
3756  ac_prog_cc_stdc=c99
3757		    ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3758else $as_nop
3759  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3760printf %s "checking for $CC option to enable C89 features... " >&6; }
3761if test ${ac_cv_prog_cc_c89+y}
3762then :
3763  printf %s "(cached) " >&6
3764else $as_nop
3765  ac_cv_prog_cc_c89=no
3766ac_save_CC=$CC
3767cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3768/* end confdefs.h.  */
3769$ac_c_conftest_c89_program
3770_ACEOF
3771for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3772	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3773do
3774  CC="$ac_save_CC $ac_arg"
3775  if ac_fn_c_try_compile "$LINENO"
3776then :
3777  ac_cv_prog_cc_c89=$ac_arg
3778fi
3779rm -f core conftest.err conftest.$ac_objext conftest.beam
3780  test "x$ac_cv_prog_cc_c89" != "xno" && break
3781done
3782rm -f conftest.$ac_ext
3783CC=$ac_save_CC
3784
3785fi
3786# AC_CACHE_VAL
3787ac_prog_cc_stdc_options=
3788case "x$ac_cv_prog_cc_c89" in #(
3789  x) :
3790    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3791printf "%s\n" "none needed" >&6; } ;; #(
3792  xno) :
3793    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3794printf "%s\n" "unsupported" >&6; } ;; #(
3795  *) :
3796    ac_prog_cc_stdc_options=" $ac_cv_prog_cc_c89"
3797    CC="$CC$ac_prog_cc_stdc_options"
3798    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3799printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } ;;
3800esac
3801if test "x$ac_cv_prog_cc_c89" != xno
3802then :
3803  ac_prog_cc_stdc=c89
3804		       ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3805else $as_nop
3806  ac_prog_cc_stdc=no
3807		       ac_cv_prog_cc_stdc=no
3808fi
3809
3810fi
3811
3812fi
3813
3814ac_ext=c
3815ac_cpp='$CPP $CPPFLAGS'
3816ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3817ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3818ac_compiler_gnu=$ac_cv_c_compiler_gnu
3819
3820
3821
3822    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
3823printf %s "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
3824
3825    if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
3826        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: loading" >&5
3827printf "%s\n" "loading" >&6; }
3828	. "${TCL_BIN_DIR}/tclConfig.sh"
3829    else
3830        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
3831printf "%s\n" "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
3832    fi
3833
3834    # If the TCL_BIN_DIR is the build directory (not the install directory),
3835    # then set the common variable name to the value of the build variables.
3836    # For example, the variable TCL_LIB_SPEC will be set to the value
3837    # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
3838    # instead of TCL_BUILD_LIB_SPEC since it will work with both an
3839    # installed and uninstalled version of Tcl.
3840    if test -f "${TCL_BIN_DIR}/Makefile" ; then
3841        TCL_LIB_SPEC="${TCL_BUILD_LIB_SPEC}"
3842        TCL_STUB_LIB_SPEC="${TCL_BUILD_STUB_LIB_SPEC}"
3843        TCL_STUB_LIB_PATH="${TCL_BUILD_STUB_LIB_PATH}"
3844    elif test "`uname -s`" = "Darwin"; then
3845	# If Tcl was built as a framework, attempt to use the libraries
3846	# from the framework at the given location so that linking works
3847	# against Tcl.framework installed in an arbitrary location.
3848	case ${TCL_DEFS} in
3849	    *TCL_FRAMEWORK*)
3850		if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
3851		    for i in "`cd "${TCL_BIN_DIR}"; pwd`" \
3852			     "`cd "${TCL_BIN_DIR}"/../..; pwd`"; do
3853			if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
3854			    TCL_LIB_SPEC="-F`dirname "$i" | sed -e 's/ /\\\\ /g'` -framework ${TCL_LIB_FILE}"
3855			    break
3856			fi
3857		    done
3858		fi
3859		if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
3860		    TCL_STUB_LIB_SPEC="-L`echo "${TCL_BIN_DIR}"  | sed -e 's/ /\\\\ /g'` ${TCL_STUB_LIB_FLAG}"
3861		    TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
3862		fi
3863		;;
3864	esac
3865    fi
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking platform" >&5
3881printf %s "checking platform... " >&6; }
3882    hold_cc=$CC; CC="$TCL_CC"
3883    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3884/* end confdefs.h.  */
3885
3886int
3887main (void)
3888{
3889
3890	    #ifdef _WIN32
3891		#error win32
3892	    #endif
3893
3894  ;
3895  return 0;
3896}
3897_ACEOF
3898if ac_fn_c_try_compile "$LINENO"
3899then :
3900
3901	    # first test we've already retrieved platform (cross-compile), fallback to unix otherwise:
3902	    TEA_PLATFORM="${TEA_PLATFORM-unix}"
3903	    CYGPATH=echo
3904
3905else $as_nop
3906
3907	    TEA_PLATFORM="windows"
3908	    # Extract the first word of "cygpath", so it can be a program name with args.
3909set dummy cygpath; ac_word=$2
3910{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3911printf %s "checking for $ac_word... " >&6; }
3912if test ${ac_cv_prog_CYGPATH+y}
3913then :
3914  printf %s "(cached) " >&6
3915else $as_nop
3916  if test -n "$CYGPATH"; then
3917  ac_cv_prog_CYGPATH="$CYGPATH" # Let the user override the test.
3918else
3919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3920for as_dir in $PATH
3921do
3922  IFS=$as_save_IFS
3923  case $as_dir in #(((
3924    '') as_dir=./ ;;
3925    */) ;;
3926    *) as_dir=$as_dir/ ;;
3927  esac
3928    for ac_exec_ext in '' $ac_executable_extensions; do
3929  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3930    ac_cv_prog_CYGPATH="cygpath -m"
3931    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3932    break 2
3933  fi
3934done
3935  done
3936IFS=$as_save_IFS
3937
3938  test -z "$ac_cv_prog_CYGPATH" && ac_cv_prog_CYGPATH="echo"
3939fi
3940fi
3941CYGPATH=$ac_cv_prog_CYGPATH
3942if test -n "$CYGPATH"; then
3943  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
3944printf "%s\n" "$CYGPATH" >&6; }
3945else
3946  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3947printf "%s\n" "no" >&6; }
3948fi
3949
3950
3951
3952fi
3953rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3954    CC=$hold_cc
3955    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TEA_PLATFORM" >&5
3956printf "%s\n" "$TEA_PLATFORM" >&6; }
3957
3958    # The BUILD_$pkg is to define the correct extern storage class
3959    # handling when making this package
3960
3961printf "%s\n" "#define BUILD_${PACKAGE_NAME} /**/" >>confdefs.h
3962
3963    # Do this here as we have fully defined TEA_PLATFORM now
3964    if test "${TEA_PLATFORM}" = "windows" ; then
3965	EXEEXT=".exe"
3966	CLEANFILES="$CLEANFILES *.lib *.dll *.pdb *.exp"
3967    fi
3968
3969    # TEA specific:
3970
3971
3972
3973
3974
3975
3976
3977
3978#--------------------------------------------------------------------
3979# Load the tkConfig.sh file if necessary (Tk extension)
3980#--------------------------------------------------------------------
3981
3982#TEA_PATH_TKCONFIG
3983#TEA_LOAD_TKCONFIG
3984
3985#--------------------------------------------------------------------
3986# Load the tclooConfig.sh file on Tcl versions where oo is an
3987# extension.
3988#--------------------------------------------------------------------
3989
3990if test "${TCL_MAJOR_VERSION}" -lt 8 ; then
3991    as_fn_error $? "${PACKAGE_NAME} ${PACKAGE_VERSION} requires Tcl 8.5 or newer.
3992Found configuration for Tcl ${TCL_VERSION}." "$LINENO" 5
3993fi
3994if test "${TCL_MAJOR_VERSION}" -eq 8 ; then
3995  if test "${TCL_MINOR_VERSION}" -lt 5 ; then
3996    as_fn_error $? "${PACKAGE_NAME} ${PACKAGE_VERSION} requires Tcl 8.5 or newer.
3997Found configuration for Tcl ${TCL_VERSION}." "$LINENO" 5
3998  fi
3999  if test "${TCL_MINOR_VERSION}" -eq 5 ; then
4000
4001    #
4002    # Ok, lets find the tcloo configuration
4003    # First, look for one uninstalled.
4004    # the alternative search directory is invoked by --with-tcloo
4005    #
4006
4007    if test x"${no_tcloo}" = x ; then
4008	# we reset no_tcloo in case something fails here
4009	no_tcloo=true
4010
4011# Check whether --with-tcloo was given.
4012if test ${with_tcloo+y}
4013then :
4014  withval=$with_tcloo; with_tclooconfig=${withval}
4015fi
4016
4017	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tcloo configuration" >&5
4018printf %s "checking for tcloo configuration... " >&6; }
4019	if test ${ac_cv_c_tclooconfig+y}
4020then :
4021  printf %s "(cached) " >&6
4022else $as_nop
4023
4024
4025	    # First check to see if --with-tcloo was specified.
4026	    if test x"${with_tclooconfig}" != x ; then
4027		case ${with_tclooconfig} in
4028		    */tclooConfig.sh )
4029			if test -f ${with_tclooconfig}; then
4030			    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --with-tcloo argument should refer to directory containing tclooConfig.sh, not to tclooConfig.sh itself" >&5
4031printf "%s\n" "$as_me: WARNING: --with-tcloo argument should refer to directory containing tclooConfig.sh, not to tclooConfig.sh itself" >&2;}
4032			    with_tclooconfig=`echo ${with_tclooconfig} | sed 's!/tclooConfig\.sh$!!'`
4033			fi;;
4034		esac
4035		if test -f "${with_tclooconfig}/tclooConfig.sh" ; then
4036		    ac_cv_c_tclooconfig=`(cd ${with_tclooconfig}; pwd)`
4037		else
4038		    as_fn_error $? "${with_tclooconfig} directory doesn't contain tclooConfig.sh" "$LINENO" 5
4039		fi
4040	    fi
4041
4042	    # then check for a private tcloo installation
4043	    if test x"${ac_cv_c_tclooconfig}" = x ; then
4044		for i in \
4045			../tcloo \
4046			`ls -dr ../tcloo*[0-9].[0-9]*.[0-9]* 2>/dev/null` \
4047			`ls -dr ../tcloo*[0-9].[0-9][0-9] 2>/dev/null` \
4048			`ls -dr ../tcloo*[0-9].[0-9] 2>/dev/null` \
4049			`ls -dr ../tcloo*[0-9].[0-9]* 2>/dev/null` \
4050			../../tcloo \
4051			`ls -dr ../../tcloo*[0-9].[0-9]*.[0-9]* 2>/dev/null` \
4052			`ls -dr ../../tcloo*[0-9].[0-9][0-9] 2>/dev/null` \
4053			`ls -dr ../../tcloo*[0-9].[0-9] 2>/dev/null` \
4054			`ls -dr ../../tcloo*[0-9].[0-9]* 2>/dev/null` \
4055			../../../tcloo \
4056			`ls -dr ../../../tcloo*[0-9].[0-9]*.[0-9]* 2>/dev/null` \
4057			`ls -dr ../../../tcloo*[0-9].[0-9][0-9] 2>/dev/null` \
4058			`ls -dr ../../../tcloo*[0-9].[0-9] 2>/dev/null` \
4059			`ls -dr ../../../tcloo*[0-9].[0-9]* 2>/dev/null` \
4060			${srcdir}/../tcloo \
4061			`ls -dr ${srcdir}/../tcloo*[0-9].[0-9]*.[0-9]* 2>/dev/null` \
4062			`ls -dr ${srcdir}/../tcloo*[0-9].[0-9][0-9] 2>/dev/null` \
4063			`ls -dr ${srcdir}/../tcloo*[0-9].[0-9] 2>/dev/null` \
4064			`ls -dr ${srcdir}/../tcloo*[0-9].[0-9]* 2>/dev/null` \
4065			; do
4066		    if test -f "$i/tclooConfig.sh" ; then
4067			ac_cv_c_tclooconfig=`(cd $i; pwd)`
4068			break
4069		    fi
4070		    if test -f "$i/unix/tclooConfig.sh" ; then
4071			ac_cv_c_tclooconfig=`(cd $i/unix; pwd)`
4072			break
4073		    fi
4074		done
4075	    fi
4076
4077	    # check in a few common install locations
4078	    if test x"${ac_cv_c_tclooconfig}" = x ; then
4079		for i in `ls -d ${libdir} 2>/dev/null` \
4080			`ls -d ${exec_prefix}/lib 2>/dev/null` \
4081			`ls -d ${prefix}/lib 2>/dev/null` \
4082			`ls -d /usr/local/lib 2>/dev/null` \
4083			`ls -d /usr/contrib/lib 2>/dev/null` \
4084			`ls -d /usr/pkg/lib 2>/dev/null` \
4085			`ls -d /usr/lib 2>/dev/null` \
4086			`ls -d /usr/lib64 2>/dev/null` \
4087			; do
4088		    if test -f "$i/tclooConfig.sh" ; then
4089			ac_cv_c_tclooconfig=`(cd $i; pwd)`
4090			break
4091		    fi
4092		done
4093	    fi
4094
4095fi
4096
4097
4098	if test x"${ac_cv_c_tclooconfig}" = x ; then
4099	    tcloo_BIN_DIR="# no tcloo configs found"
4100	    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find tcloo configuration definitions" >&5
4101printf "%s\n" "$as_me: WARNING: Cannot find tcloo configuration definitions" >&2;}
4102	    exit 0
4103	else
4104	    no_tcloo=
4105	    tcloo_BIN_DIR=${ac_cv_c_tclooconfig}
4106	    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found $tcloo_BIN_DIR/tclooConfig.sh" >&5
4107printf "%s\n" "found $tcloo_BIN_DIR/tclooConfig.sh" >&6; }
4108	fi
4109    fi
4110
4111
4112    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for existence of ${tcloo_BIN_DIR}/tclooConfig.sh" >&5
4113printf %s "checking for existence of ${tcloo_BIN_DIR}/tclooConfig.sh... " >&6; }
4114
4115    if test -f "${tcloo_BIN_DIR}/tclooConfig.sh" ; then
4116        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: loading" >&5
4117printf "%s\n" "loading" >&6; }
4118	. "${tcloo_BIN_DIR}/tclooConfig.sh"
4119    else
4120        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: file not found" >&5
4121printf "%s\n" "file not found" >&6; }
4122    fi
4123
4124    #
4125    # If the tcloo_BIN_DIR is the build directory (not the install directory),
4126    # then set the common variable name to the value of the build variables.
4127    # For example, the variable tcloo_LIB_SPEC will be set to the value
4128    # of tcloo_BUILD_LIB_SPEC. An extension should make use of tcloo_LIB_SPEC
4129    # instead of tcloo_BUILD_LIB_SPEC since it will work with both an
4130    # installed and uninstalled version of Tcl.
4131    #
4132
4133    if test -f "${tcloo_BIN_DIR}/Makefile" ; then
4134	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Found Makefile - using build library specs for tcloo" >&5
4135printf "%s\n" "$as_me: WARNING: Found Makefile - using build library specs for tcloo" >&2;}
4136        tcloo_LIB_SPEC=${tcloo_BUILD_LIB_SPEC}
4137        tcloo_STUB_LIB_SPEC=${tcloo_BUILD_STUB_LIB_SPEC}
4138        tcloo_STUB_LIB_PATH=${tcloo_BUILD_STUB_LIB_PATH}
4139        tcloo_INCLUDE_SPEC=${tcloo_BUILD_INCLUDE_SPEC}
4140        tcloo_LIBRARY_PATH=${tcloo_LIBRARY_PATH}
4141    fi
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154    # Allow the caller to prevent this auto-check by specifying any 2nd arg
4155    if test "x" = x
4156then :
4157
4158	# Check both upper and lower-case variants
4159	# If a dev wanted non-stubs libs, this function could take an option
4160	# to not use _STUB in the paths below
4161	if test "x${tcloo_STUB_LIB_SPEC}" = x
4162then :
4163
4164    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking For TCLOO_STUB library for LIBS" >&5
4165printf %s "checking For TCLOO_STUB library for LIBS... " >&6; }
4166    # This simplifies the use of stub libraries by automatically adding
4167    # the stub lib to your path.  Normally this would add to SHLIB_LD_LIBS,
4168    # but this is called before CONFIG_CFLAGS.  More importantly, this adds
4169    # to PKG_LIBS, which becomes LIBS, and that is only used by SHLIB_LD.
4170    if test "x${TCLOO_STUB_LIB_SPEC}" != "x" ; then
4171	if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes" ; then
4172
4173    vars="\"`${CYGPATH} ${TCLOO_STUB_LIB_PATH}`\""
4174    for i in $vars; do
4175	if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then
4176	    # Convert foo.lib to -lfoo for GCC.  No-op if not *.lib
4177	    i=`echo "$i" | sed -e 's/^\([^-].*\)\.[lL][iI][bB]$/-l\1/'`
4178	fi
4179	PKG_LIBS="$PKG_LIBS $i"
4180    done
4181
4182
4183	    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using TCLOO_STUB_LIB_PATH ${TCLOO_STUB_LIB_PATH}" >&5
4184printf "%s\n" "using TCLOO_STUB_LIB_PATH ${TCLOO_STUB_LIB_PATH}" >&6; }
4185	else
4186
4187    vars="${TCLOO_STUB_LIB_SPEC}"
4188    for i in $vars; do
4189	if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then
4190	    # Convert foo.lib to -lfoo for GCC.  No-op if not *.lib
4191	    i=`echo "$i" | sed -e 's/^\([^-].*\)\.[lL][iI][bB]$/-l\1/'`
4192	fi
4193	PKG_LIBS="$PKG_LIBS $i"
4194    done
4195
4196
4197	    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using TCLOO_STUB_LIB_SPEC ${TCLOO_STUB_LIB_SPEC}" >&5
4198printf "%s\n" "using TCLOO_STUB_LIB_SPEC ${TCLOO_STUB_LIB_SPEC}" >&6; }
4199	fi
4200    else
4201	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: file not found" >&5
4202printf "%s\n" "file not found" >&6; }
4203    fi
4204
4205else $as_nop
4206
4207    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking For tcloo_STUB library for LIBS" >&5
4208printf %s "checking For tcloo_STUB library for LIBS... " >&6; }
4209    # This simplifies the use of stub libraries by automatically adding
4210    # the stub lib to your path.  Normally this would add to SHLIB_LD_LIBS,
4211    # but this is called before CONFIG_CFLAGS.  More importantly, this adds
4212    # to PKG_LIBS, which becomes LIBS, and that is only used by SHLIB_LD.
4213    if test "x${tcloo_STUB_LIB_SPEC}" != "x" ; then
4214	if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes" ; then
4215
4216    vars="\"`${CYGPATH} ${tcloo_STUB_LIB_PATH}`\""
4217    for i in $vars; do
4218	if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then
4219	    # Convert foo.lib to -lfoo for GCC.  No-op if not *.lib
4220	    i=`echo "$i" | sed -e 's/^\([^-].*\)\.[lL][iI][bB]$/-l\1/'`
4221	fi
4222	PKG_LIBS="$PKG_LIBS $i"
4223    done
4224
4225
4226	    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using tcloo_STUB_LIB_PATH ${tcloo_STUB_LIB_PATH}" >&5
4227printf "%s\n" "using tcloo_STUB_LIB_PATH ${tcloo_STUB_LIB_PATH}" >&6; }
4228	else
4229
4230    vars="${tcloo_STUB_LIB_SPEC}"
4231    for i in $vars; do
4232	if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then
4233	    # Convert foo.lib to -lfoo for GCC.  No-op if not *.lib
4234	    i=`echo "$i" | sed -e 's/^\([^-].*\)\.[lL][iI][bB]$/-l\1/'`
4235	fi
4236	PKG_LIBS="$PKG_LIBS $i"
4237    done
4238
4239
4240	    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using tcloo_STUB_LIB_SPEC ${tcloo_STUB_LIB_SPEC}" >&5
4241printf "%s\n" "using tcloo_STUB_LIB_SPEC ${tcloo_STUB_LIB_SPEC}" >&6; }
4242	fi
4243    else
4244	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: file not found" >&5
4245printf "%s\n" "file not found" >&6; }
4246    fi
4247
4248fi
4249
4250fi
4251
4252  else
4253    TCLOO_CFLAGS=""
4254  fi
4255fi
4256# Announce what versions of Tcl (and TclOO) are needed
4257TCL_VERSION_REQ=8.5-;
4258TCL_VERSION_DESIRED=8.6;
4259TCLOO_VERSION_REQ=1.0;
4260
4261#-----------------------------------------------------------------------
4262# Handle the --prefix=... option by defaulting to what Tcl gave.
4263# Must be called after TEA_LOAD_TCLCONFIG and before TEA_SETUP_COMPILER.
4264#-----------------------------------------------------------------------
4265
4266
4267    if test "${prefix}" = "NONE"; then
4268	prefix_default=yes
4269	if test x"${TCL_PREFIX}" != x; then
4270	    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: --prefix defaulting to TCL_PREFIX ${TCL_PREFIX}" >&5
4271printf "%s\n" "$as_me: --prefix defaulting to TCL_PREFIX ${TCL_PREFIX}" >&6;}
4272	    prefix=${TCL_PREFIX}
4273	else
4274	    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: --prefix defaulting to /usr/local" >&5
4275printf "%s\n" "$as_me: --prefix defaulting to /usr/local" >&6;}
4276	    prefix=/usr/local
4277	fi
4278    fi
4279    if test "${exec_prefix}" = "NONE" -a x"${prefix_default}" = x"yes" \
4280	-o x"${exec_prefix_default}" = x"yes" ; then
4281	if test x"${TCL_EXEC_PREFIX}" != x; then
4282	    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: --exec-prefix defaulting to TCL_EXEC_PREFIX ${TCL_EXEC_PREFIX}" >&5
4283printf "%s\n" "$as_me: --exec-prefix defaulting to TCL_EXEC_PREFIX ${TCL_EXEC_PREFIX}" >&6;}
4284	    exec_prefix=${TCL_EXEC_PREFIX}
4285	else
4286	    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: --exec-prefix defaulting to ${prefix}" >&5
4287printf "%s\n" "$as_me: --exec-prefix defaulting to ${prefix}" >&6;}
4288	    exec_prefix=$prefix
4289	fi
4290    fi
4291
4292
4293#-----------------------------------------------------------------------
4294# Standard compiler checks.
4295# This sets up CC by using the CC env var, or looks for gcc otherwise.
4296# This also calls AC_PROG_CC and a few others to create the basic setup
4297# necessary to compile executables.
4298#-----------------------------------------------------------------------
4299
4300
4301    # Don't put any macros that use the compiler (e.g. AC_TRY_COMPILE)
4302    # in this macro, they need to go into TEA_SETUP_COMPILER instead.
4303
4304    ac_ext=c
4305ac_cpp='$CPP $CPPFLAGS'
4306ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4307ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4308ac_compiler_gnu=$ac_cv_c_compiler_gnu
4309if test -n "$ac_tool_prefix"; then
4310  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4311set dummy ${ac_tool_prefix}gcc; ac_word=$2
4312{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4313printf %s "checking for $ac_word... " >&6; }
4314if test ${ac_cv_prog_CC+y}
4315then :
4316  printf %s "(cached) " >&6
4317else $as_nop
4318  if test -n "$CC"; then
4319  ac_cv_prog_CC="$CC" # Let the user override the test.
4320else
4321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4322for as_dir in $PATH
4323do
4324  IFS=$as_save_IFS
4325  case $as_dir in #(((
4326    '') as_dir=./ ;;
4327    */) ;;
4328    *) as_dir=$as_dir/ ;;
4329  esac
4330    for ac_exec_ext in '' $ac_executable_extensions; do
4331  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4332    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4333    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4334    break 2
4335  fi
4336done
4337  done
4338IFS=$as_save_IFS
4339
4340fi
4341fi
4342CC=$ac_cv_prog_CC
4343if test -n "$CC"; then
4344  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4345printf "%s\n" "$CC" >&6; }
4346else
4347  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4348printf "%s\n" "no" >&6; }
4349fi
4350
4351
4352fi
4353if test -z "$ac_cv_prog_CC"; then
4354  ac_ct_CC=$CC
4355  # Extract the first word of "gcc", so it can be a program name with args.
4356set dummy gcc; ac_word=$2
4357{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4358printf %s "checking for $ac_word... " >&6; }
4359if test ${ac_cv_prog_ac_ct_CC+y}
4360then :
4361  printf %s "(cached) " >&6
4362else $as_nop
4363  if test -n "$ac_ct_CC"; then
4364  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4365else
4366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4367for as_dir in $PATH
4368do
4369  IFS=$as_save_IFS
4370  case $as_dir in #(((
4371    '') as_dir=./ ;;
4372    */) ;;
4373    *) as_dir=$as_dir/ ;;
4374  esac
4375    for ac_exec_ext in '' $ac_executable_extensions; do
4376  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4377    ac_cv_prog_ac_ct_CC="gcc"
4378    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4379    break 2
4380  fi
4381done
4382  done
4383IFS=$as_save_IFS
4384
4385fi
4386fi
4387ac_ct_CC=$ac_cv_prog_ac_ct_CC
4388if test -n "$ac_ct_CC"; then
4389  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4390printf "%s\n" "$ac_ct_CC" >&6; }
4391else
4392  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4393printf "%s\n" "no" >&6; }
4394fi
4395
4396  if test "x$ac_ct_CC" = x; then
4397    CC=""
4398  else
4399    case $cross_compiling:$ac_tool_warned in
4400yes:)
4401{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4402printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4403ac_tool_warned=yes ;;
4404esac
4405    CC=$ac_ct_CC
4406  fi
4407else
4408  CC="$ac_cv_prog_CC"
4409fi
4410
4411if test -z "$CC"; then
4412          if test -n "$ac_tool_prefix"; then
4413    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4414set dummy ${ac_tool_prefix}cc; ac_word=$2
4415{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4416printf %s "checking for $ac_word... " >&6; }
4417if test ${ac_cv_prog_CC+y}
4418then :
4419  printf %s "(cached) " >&6
4420else $as_nop
4421  if test -n "$CC"; then
4422  ac_cv_prog_CC="$CC" # Let the user override the test.
4423else
4424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4425for as_dir in $PATH
4426do
4427  IFS=$as_save_IFS
4428  case $as_dir in #(((
4429    '') as_dir=./ ;;
4430    */) ;;
4431    *) as_dir=$as_dir/ ;;
4432  esac
4433    for ac_exec_ext in '' $ac_executable_extensions; do
4434  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4435    ac_cv_prog_CC="${ac_tool_prefix}cc"
4436    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4437    break 2
4438  fi
4439done
4440  done
4441IFS=$as_save_IFS
4442
4443fi
4444fi
4445CC=$ac_cv_prog_CC
4446if test -n "$CC"; then
4447  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4448printf "%s\n" "$CC" >&6; }
4449else
4450  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4451printf "%s\n" "no" >&6; }
4452fi
4453
4454
4455  fi
4456fi
4457if test -z "$CC"; then
4458  # Extract the first word of "cc", so it can be a program name with args.
4459set dummy cc; ac_word=$2
4460{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4461printf %s "checking for $ac_word... " >&6; }
4462if test ${ac_cv_prog_CC+y}
4463then :
4464  printf %s "(cached) " >&6
4465else $as_nop
4466  if test -n "$CC"; then
4467  ac_cv_prog_CC="$CC" # Let the user override the test.
4468else
4469  ac_prog_rejected=no
4470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4471for as_dir in $PATH
4472do
4473  IFS=$as_save_IFS
4474  case $as_dir in #(((
4475    '') as_dir=./ ;;
4476    */) ;;
4477    *) as_dir=$as_dir/ ;;
4478  esac
4479    for ac_exec_ext in '' $ac_executable_extensions; do
4480  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4481    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4482       ac_prog_rejected=yes
4483       continue
4484     fi
4485    ac_cv_prog_CC="cc"
4486    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4487    break 2
4488  fi
4489done
4490  done
4491IFS=$as_save_IFS
4492
4493if test $ac_prog_rejected = yes; then
4494  # We found a bogon in the path, so make sure we never use it.
4495  set dummy $ac_cv_prog_CC
4496  shift
4497  if test $# != 0; then
4498    # We chose a different compiler from the bogus one.
4499    # However, it has the same basename, so the bogon will be chosen
4500    # first if we set CC to just the basename; use the full file name.
4501    shift
4502    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4503  fi
4504fi
4505fi
4506fi
4507CC=$ac_cv_prog_CC
4508if test -n "$CC"; then
4509  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4510printf "%s\n" "$CC" >&6; }
4511else
4512  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4513printf "%s\n" "no" >&6; }
4514fi
4515
4516
4517fi
4518if test -z "$CC"; then
4519  if test -n "$ac_tool_prefix"; then
4520  for ac_prog in cl.exe
4521  do
4522    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4523set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4524{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4525printf %s "checking for $ac_word... " >&6; }
4526if test ${ac_cv_prog_CC+y}
4527then :
4528  printf %s "(cached) " >&6
4529else $as_nop
4530  if test -n "$CC"; then
4531  ac_cv_prog_CC="$CC" # Let the user override the test.
4532else
4533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4534for as_dir in $PATH
4535do
4536  IFS=$as_save_IFS
4537  case $as_dir in #(((
4538    '') as_dir=./ ;;
4539    */) ;;
4540    *) as_dir=$as_dir/ ;;
4541  esac
4542    for ac_exec_ext in '' $ac_executable_extensions; do
4543  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4544    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4545    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4546    break 2
4547  fi
4548done
4549  done
4550IFS=$as_save_IFS
4551
4552fi
4553fi
4554CC=$ac_cv_prog_CC
4555if test -n "$CC"; then
4556  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4557printf "%s\n" "$CC" >&6; }
4558else
4559  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4560printf "%s\n" "no" >&6; }
4561fi
4562
4563
4564    test -n "$CC" && break
4565  done
4566fi
4567if test -z "$CC"; then
4568  ac_ct_CC=$CC
4569  for ac_prog in cl.exe
4570do
4571  # Extract the first word of "$ac_prog", so it can be a program name with args.
4572set dummy $ac_prog; ac_word=$2
4573{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4574printf %s "checking for $ac_word... " >&6; }
4575if test ${ac_cv_prog_ac_ct_CC+y}
4576then :
4577  printf %s "(cached) " >&6
4578else $as_nop
4579  if test -n "$ac_ct_CC"; then
4580  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4581else
4582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4583for as_dir in $PATH
4584do
4585  IFS=$as_save_IFS
4586  case $as_dir in #(((
4587    '') as_dir=./ ;;
4588    */) ;;
4589    *) as_dir=$as_dir/ ;;
4590  esac
4591    for ac_exec_ext in '' $ac_executable_extensions; do
4592  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4593    ac_cv_prog_ac_ct_CC="$ac_prog"
4594    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4595    break 2
4596  fi
4597done
4598  done
4599IFS=$as_save_IFS
4600
4601fi
4602fi
4603ac_ct_CC=$ac_cv_prog_ac_ct_CC
4604if test -n "$ac_ct_CC"; then
4605  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4606printf "%s\n" "$ac_ct_CC" >&6; }
4607else
4608  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4609printf "%s\n" "no" >&6; }
4610fi
4611
4612
4613  test -n "$ac_ct_CC" && break
4614done
4615
4616  if test "x$ac_ct_CC" = x; then
4617    CC=""
4618  else
4619    case $cross_compiling:$ac_tool_warned in
4620yes:)
4621{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4622printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4623ac_tool_warned=yes ;;
4624esac
4625    CC=$ac_ct_CC
4626  fi
4627fi
4628
4629fi
4630if test -z "$CC"; then
4631  if test -n "$ac_tool_prefix"; then
4632  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4633set dummy ${ac_tool_prefix}clang; ac_word=$2
4634{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4635printf %s "checking for $ac_word... " >&6; }
4636if test ${ac_cv_prog_CC+y}
4637then :
4638  printf %s "(cached) " >&6
4639else $as_nop
4640  if test -n "$CC"; then
4641  ac_cv_prog_CC="$CC" # Let the user override the test.
4642else
4643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4644for as_dir in $PATH
4645do
4646  IFS=$as_save_IFS
4647  case $as_dir in #(((
4648    '') as_dir=./ ;;
4649    */) ;;
4650    *) as_dir=$as_dir/ ;;
4651  esac
4652    for ac_exec_ext in '' $ac_executable_extensions; do
4653  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4654    ac_cv_prog_CC="${ac_tool_prefix}clang"
4655    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4656    break 2
4657  fi
4658done
4659  done
4660IFS=$as_save_IFS
4661
4662fi
4663fi
4664CC=$ac_cv_prog_CC
4665if test -n "$CC"; then
4666  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4667printf "%s\n" "$CC" >&6; }
4668else
4669  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4670printf "%s\n" "no" >&6; }
4671fi
4672
4673
4674fi
4675if test -z "$ac_cv_prog_CC"; then
4676  ac_ct_CC=$CC
4677  # Extract the first word of "clang", so it can be a program name with args.
4678set dummy clang; ac_word=$2
4679{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4680printf %s "checking for $ac_word... " >&6; }
4681if test ${ac_cv_prog_ac_ct_CC+y}
4682then :
4683  printf %s "(cached) " >&6
4684else $as_nop
4685  if test -n "$ac_ct_CC"; then
4686  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4687else
4688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4689for as_dir in $PATH
4690do
4691  IFS=$as_save_IFS
4692  case $as_dir in #(((
4693    '') as_dir=./ ;;
4694    */) ;;
4695    *) as_dir=$as_dir/ ;;
4696  esac
4697    for ac_exec_ext in '' $ac_executable_extensions; do
4698  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4699    ac_cv_prog_ac_ct_CC="clang"
4700    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4701    break 2
4702  fi
4703done
4704  done
4705IFS=$as_save_IFS
4706
4707fi
4708fi
4709ac_ct_CC=$ac_cv_prog_ac_ct_CC
4710if test -n "$ac_ct_CC"; then
4711  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4712printf "%s\n" "$ac_ct_CC" >&6; }
4713else
4714  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4715printf "%s\n" "no" >&6; }
4716fi
4717
4718  if test "x$ac_ct_CC" = x; then
4719    CC=""
4720  else
4721    case $cross_compiling:$ac_tool_warned in
4722yes:)
4723{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4724printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4725ac_tool_warned=yes ;;
4726esac
4727    CC=$ac_ct_CC
4728  fi
4729else
4730  CC="$ac_cv_prog_CC"
4731fi
4732
4733fi
4734
4735
4736test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4737printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4738as_fn_error $? "no acceptable C compiler found in \$PATH
4739See \`config.log' for more details" "$LINENO" 5; }
4740
4741# Provide some information about the compiler.
4742printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4743set X $ac_compile
4744ac_compiler=$2
4745for ac_option in --version -v -V -qversion -version; do
4746  { { ac_try="$ac_compiler $ac_option >&5"
4747case "(($ac_try" in
4748  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4749  *) ac_try_echo=$ac_try;;
4750esac
4751eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4752printf "%s\n" "$ac_try_echo"; } >&5
4753  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4754  ac_status=$?
4755  if test -s conftest.err; then
4756    sed '10a\
4757... rest of stderr output deleted ...
4758         10q' conftest.err >conftest.er1
4759    cat conftest.er1 >&5
4760  fi
4761  rm -f conftest.er1 conftest.err
4762  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4763  test $ac_status = 0; }
4764done
4765
4766{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4767printf %s "checking whether the compiler supports GNU C... " >&6; }
4768if test ${ac_cv_c_compiler_gnu+y}
4769then :
4770  printf %s "(cached) " >&6
4771else $as_nop
4772  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4773/* end confdefs.h.  */
4774
4775int
4776main (void)
4777{
4778#ifndef __GNUC__
4779       choke me
4780#endif
4781
4782  ;
4783  return 0;
4784}
4785_ACEOF
4786if ac_fn_c_try_compile "$LINENO"
4787then :
4788  ac_compiler_gnu=yes
4789else $as_nop
4790  ac_compiler_gnu=no
4791fi
4792rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4793ac_cv_c_compiler_gnu=$ac_compiler_gnu
4794
4795fi
4796{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4797printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4798ac_compiler_gnu=$ac_cv_c_compiler_gnu
4799
4800if test $ac_compiler_gnu = yes; then
4801  GCC=yes
4802else
4803  GCC=
4804fi
4805ac_test_CFLAGS=${CFLAGS+y}
4806ac_save_CFLAGS=$CFLAGS
4807{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4808printf %s "checking whether $CC accepts -g... " >&6; }
4809if test ${ac_cv_prog_cc_g+y}
4810then :
4811  printf %s "(cached) " >&6
4812else $as_nop
4813  ac_save_c_werror_flag=$ac_c_werror_flag
4814   ac_c_werror_flag=yes
4815   ac_cv_prog_cc_g=no
4816   CFLAGS="-g"
4817   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4818/* end confdefs.h.  */
4819
4820int
4821main (void)
4822{
4823
4824  ;
4825  return 0;
4826}
4827_ACEOF
4828if ac_fn_c_try_compile "$LINENO"
4829then :
4830  ac_cv_prog_cc_g=yes
4831else $as_nop
4832  CFLAGS=""
4833      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4834/* end confdefs.h.  */
4835
4836int
4837main (void)
4838{
4839
4840  ;
4841  return 0;
4842}
4843_ACEOF
4844if ac_fn_c_try_compile "$LINENO"
4845then :
4846
4847else $as_nop
4848  ac_c_werror_flag=$ac_save_c_werror_flag
4849	 CFLAGS="-g"
4850	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4851/* end confdefs.h.  */
4852
4853int
4854main (void)
4855{
4856
4857  ;
4858  return 0;
4859}
4860_ACEOF
4861if ac_fn_c_try_compile "$LINENO"
4862then :
4863  ac_cv_prog_cc_g=yes
4864fi
4865rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4866fi
4867rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4868fi
4869rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4870   ac_c_werror_flag=$ac_save_c_werror_flag
4871fi
4872{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4873printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4874if test $ac_test_CFLAGS; then
4875  CFLAGS=$ac_save_CFLAGS
4876elif test $ac_cv_prog_cc_g = yes; then
4877  if test "$GCC" = yes; then
4878    CFLAGS="-g -O2"
4879  else
4880    CFLAGS="-g"
4881  fi
4882else
4883  if test "$GCC" = yes; then
4884    CFLAGS="-O2"
4885  else
4886    CFLAGS=
4887  fi
4888fi
4889{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4890printf %s "checking for $CC option to enable C11 features... " >&6; }
4891if test ${ac_cv_prog_cc_c11+y}
4892then :
4893  printf %s "(cached) " >&6
4894else $as_nop
4895  ac_cv_prog_cc_c11=no
4896ac_save_CC=$CC
4897cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4898/* end confdefs.h.  */
4899$ac_c_conftest_c11_program
4900_ACEOF
4901for ac_arg in '' -std=gnu11
4902do
4903  CC="$ac_save_CC $ac_arg"
4904  if ac_fn_c_try_compile "$LINENO"
4905then :
4906  ac_cv_prog_cc_c11=$ac_arg
4907fi
4908rm -f core conftest.err conftest.$ac_objext conftest.beam
4909  test "x$ac_cv_prog_cc_c11" != "xno" && break
4910done
4911rm -f conftest.$ac_ext
4912CC=$ac_save_CC
4913
4914fi
4915# AC_CACHE_VAL
4916ac_prog_cc_stdc_options=
4917case "x$ac_cv_prog_cc_c11" in #(
4918  x) :
4919    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4920printf "%s\n" "none needed" >&6; } ;; #(
4921  xno) :
4922    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4923printf "%s\n" "unsupported" >&6; } ;; #(
4924  *) :
4925    ac_prog_cc_stdc_options=" $ac_cv_prog_cc_c11"
4926    CC="$CC$ac_prog_cc_stdc_options"
4927    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4928printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } ;;
4929esac
4930if test "x$ac_cv_prog_cc_c11" != xno
4931then :
4932  ac_prog_cc_stdc=c11
4933		 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4934else $as_nop
4935  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4936printf %s "checking for $CC option to enable C99 features... " >&6; }
4937if test ${ac_cv_prog_cc_c99+y}
4938then :
4939  printf %s "(cached) " >&6
4940else $as_nop
4941  ac_cv_prog_cc_c99=no
4942ac_save_CC=$CC
4943cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4944/* end confdefs.h.  */
4945$ac_c_conftest_c89_program
4946_ACEOF
4947for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc1x -qlanglvl=extc99
4948do
4949  CC="$ac_save_CC $ac_arg"
4950  if ac_fn_c_try_compile "$LINENO"
4951then :
4952  ac_cv_prog_cc_c99=$ac_arg
4953fi
4954rm -f core conftest.err conftest.$ac_objext conftest.beam
4955  test "x$ac_cv_prog_cc_c99" != "xno" && break
4956done
4957rm -f conftest.$ac_ext
4958CC=$ac_save_CC
4959
4960fi
4961# AC_CACHE_VAL
4962ac_prog_cc_stdc_options=
4963case "x$ac_cv_prog_cc_c99" in #(
4964  x) :
4965    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4966printf "%s\n" "none needed" >&6; } ;; #(
4967  xno) :
4968    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4969printf "%s\n" "unsupported" >&6; } ;; #(
4970  *) :
4971    ac_prog_cc_stdc_options=" $ac_cv_prog_cc_c99"
4972    CC="$CC$ac_prog_cc_stdc_options"
4973    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4974printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } ;;
4975esac
4976if test "x$ac_cv_prog_cc_c99" != xno
4977then :
4978  ac_prog_cc_stdc=c99
4979		    ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4980else $as_nop
4981  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4982printf %s "checking for $CC option to enable C89 features... " >&6; }
4983if test ${ac_cv_prog_cc_c89+y}
4984then :
4985  printf %s "(cached) " >&6
4986else $as_nop
4987  ac_cv_prog_cc_c89=no
4988ac_save_CC=$CC
4989cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4990/* end confdefs.h.  */
4991$ac_c_conftest_c89_program
4992_ACEOF
4993for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4994	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4995do
4996  CC="$ac_save_CC $ac_arg"
4997  if ac_fn_c_try_compile "$LINENO"
4998then :
4999  ac_cv_prog_cc_c89=$ac_arg
5000fi
5001rm -f core conftest.err conftest.$ac_objext conftest.beam
5002  test "x$ac_cv_prog_cc_c89" != "xno" && break
5003done
5004rm -f conftest.$ac_ext
5005CC=$ac_save_CC
5006
5007fi
5008# AC_CACHE_VAL
5009ac_prog_cc_stdc_options=
5010case "x$ac_cv_prog_cc_c89" in #(
5011  x) :
5012    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5013printf "%s\n" "none needed" >&6; } ;; #(
5014  xno) :
5015    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5016printf "%s\n" "unsupported" >&6; } ;; #(
5017  *) :
5018    ac_prog_cc_stdc_options=" $ac_cv_prog_cc_c89"
5019    CC="$CC$ac_prog_cc_stdc_options"
5020    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5021printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } ;;
5022esac
5023if test "x$ac_cv_prog_cc_c89" != xno
5024then :
5025  ac_prog_cc_stdc=c89
5026		       ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5027else $as_nop
5028  ac_prog_cc_stdc=no
5029		       ac_cv_prog_cc_stdc=no
5030fi
5031
5032fi
5033
5034fi
5035
5036ac_ext=c
5037ac_cpp='$CPP $CPPFLAGS'
5038ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5039ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5040ac_compiler_gnu=$ac_cv_c_compiler_gnu
5041
5042    ac_ext=c
5043ac_cpp='$CPP $CPPFLAGS'
5044ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5045ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5046ac_compiler_gnu=$ac_cv_c_compiler_gnu
5047{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5048printf %s "checking how to run the C preprocessor... " >&6; }
5049# On Suns, sometimes $CPP names a directory.
5050if test -n "$CPP" && test -d "$CPP"; then
5051  CPP=
5052fi
5053if test -z "$CPP"; then
5054  if test ${ac_cv_prog_CPP+y}
5055then :
5056  printf %s "(cached) " >&6
5057else $as_nop
5058      # Double quotes because $CC needs to be expanded
5059    for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
5060    do
5061      ac_preproc_ok=false
5062for ac_c_preproc_warn_flag in '' yes
5063do
5064  # Use a header file that comes with gcc, so configuring glibc
5065  # with a fresh cross-compiler works.
5066  # On the NeXT, cc -E runs the code through the compiler's parser,
5067  # not just through cpp. "Syntax error" is here to catch this case.
5068  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5069/* end confdefs.h.  */
5070#include <limits.h>
5071		     Syntax error
5072_ACEOF
5073if ac_fn_c_try_cpp "$LINENO"
5074then :
5075
5076else $as_nop
5077  # Broken: fails on valid input.
5078continue
5079fi
5080rm -f conftest.err conftest.i conftest.$ac_ext
5081
5082  # OK, works on sane cases.  Now check whether nonexistent headers
5083  # can be detected and how.
5084  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5085/* end confdefs.h.  */
5086#include <ac_nonexistent.h>
5087_ACEOF
5088if ac_fn_c_try_cpp "$LINENO"
5089then :
5090  # Broken: success on invalid input.
5091continue
5092else $as_nop
5093  # Passes both tests.
5094ac_preproc_ok=:
5095break
5096fi
5097rm -f conftest.err conftest.i conftest.$ac_ext
5098
5099done
5100# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5101rm -f conftest.i conftest.err conftest.$ac_ext
5102if $ac_preproc_ok
5103then :
5104  break
5105fi
5106
5107    done
5108    ac_cv_prog_CPP=$CPP
5109
5110fi
5111  CPP=$ac_cv_prog_CPP
5112else
5113  ac_cv_prog_CPP=$CPP
5114fi
5115{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5116printf "%s\n" "$CPP" >&6; }
5117ac_preproc_ok=false
5118for ac_c_preproc_warn_flag in '' yes
5119do
5120  # Use a header file that comes with gcc, so configuring glibc
5121  # with a fresh cross-compiler works.
5122  # On the NeXT, cc -E runs the code through the compiler's parser,
5123  # not just through cpp. "Syntax error" is here to catch this case.
5124  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5125/* end confdefs.h.  */
5126#include <limits.h>
5127		     Syntax error
5128_ACEOF
5129if ac_fn_c_try_cpp "$LINENO"
5130then :
5131
5132else $as_nop
5133  # Broken: fails on valid input.
5134continue
5135fi
5136rm -f conftest.err conftest.i conftest.$ac_ext
5137
5138  # OK, works on sane cases.  Now check whether nonexistent headers
5139  # can be detected and how.
5140  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5141/* end confdefs.h.  */
5142#include <ac_nonexistent.h>
5143_ACEOF
5144if ac_fn_c_try_cpp "$LINENO"
5145then :
5146  # Broken: success on invalid input.
5147continue
5148else $as_nop
5149  # Passes both tests.
5150ac_preproc_ok=:
5151break
5152fi
5153rm -f conftest.err conftest.i conftest.$ac_ext
5154
5155done
5156# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5157rm -f conftest.i conftest.err conftest.$ac_ext
5158if $ac_preproc_ok
5159then :
5160
5161else $as_nop
5162  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5163printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5164as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5165See \`config.log' for more details" "$LINENO" 5; }
5166fi
5167
5168ac_ext=c
5169ac_cpp='$CPP $CPPFLAGS'
5170ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5171ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5172ac_compiler_gnu=$ac_cv_c_compiler_gnu
5173
5174
5175    #--------------------------------------------------------------------
5176    # Checks to see if the make program sets the $MAKE variable.
5177    #--------------------------------------------------------------------
5178
5179    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5180printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5181set x ${MAKE-make}
5182ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5183if eval test \${ac_cv_prog_make_${ac_make}_set+y}
5184then :
5185  printf %s "(cached) " >&6
5186else $as_nop
5187  cat >conftest.make <<\_ACEOF
5188SHELL = /bin/sh
5189all:
5190	@echo '@@@%%%=$(MAKE)=@@@%%%'
5191_ACEOF
5192# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5193case `${MAKE-make} -f conftest.make 2>/dev/null` in
5194  *@@@%%%=?*=@@@%%%*)
5195    eval ac_cv_prog_make_${ac_make}_set=yes;;
5196  *)
5197    eval ac_cv_prog_make_${ac_make}_set=no;;
5198esac
5199rm -f conftest.make
5200fi
5201if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5202  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5203printf "%s\n" "yes" >&6; }
5204  SET_MAKE=
5205else
5206  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5207printf "%s\n" "no" >&6; }
5208  SET_MAKE="MAKE=${MAKE-make}"
5209fi
5210
5211
5212    #--------------------------------------------------------------------
5213    # Find ranlib
5214    #--------------------------------------------------------------------
5215
5216    if test -n "$ac_tool_prefix"; then
5217  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5218set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5219{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5220printf %s "checking for $ac_word... " >&6; }
5221if test ${ac_cv_prog_RANLIB+y}
5222then :
5223  printf %s "(cached) " >&6
5224else $as_nop
5225  if test -n "$RANLIB"; then
5226  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5227else
5228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5229for as_dir in $PATH
5230do
5231  IFS=$as_save_IFS
5232  case $as_dir in #(((
5233    '') as_dir=./ ;;
5234    */) ;;
5235    *) as_dir=$as_dir/ ;;
5236  esac
5237    for ac_exec_ext in '' $ac_executable_extensions; do
5238  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5239    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5240    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5241    break 2
5242  fi
5243done
5244  done
5245IFS=$as_save_IFS
5246
5247fi
5248fi
5249RANLIB=$ac_cv_prog_RANLIB
5250if test -n "$RANLIB"; then
5251  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5252printf "%s\n" "$RANLIB" >&6; }
5253else
5254  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5255printf "%s\n" "no" >&6; }
5256fi
5257
5258
5259fi
5260if test -z "$ac_cv_prog_RANLIB"; then
5261  ac_ct_RANLIB=$RANLIB
5262  # Extract the first word of "ranlib", so it can be a program name with args.
5263set dummy ranlib; ac_word=$2
5264{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5265printf %s "checking for $ac_word... " >&6; }
5266if test ${ac_cv_prog_ac_ct_RANLIB+y}
5267then :
5268  printf %s "(cached) " >&6
5269else $as_nop
5270  if test -n "$ac_ct_RANLIB"; then
5271  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5272else
5273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5274for as_dir in $PATH
5275do
5276  IFS=$as_save_IFS
5277  case $as_dir in #(((
5278    '') as_dir=./ ;;
5279    */) ;;
5280    *) as_dir=$as_dir/ ;;
5281  esac
5282    for ac_exec_ext in '' $ac_executable_extensions; do
5283  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5284    ac_cv_prog_ac_ct_RANLIB="ranlib"
5285    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5286    break 2
5287  fi
5288done
5289  done
5290IFS=$as_save_IFS
5291
5292fi
5293fi
5294ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5295if test -n "$ac_ct_RANLIB"; then
5296  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5297printf "%s\n" "$ac_ct_RANLIB" >&6; }
5298else
5299  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5300printf "%s\n" "no" >&6; }
5301fi
5302
5303  if test "x$ac_ct_RANLIB" = x; then
5304    RANLIB=""
5305  else
5306    case $cross_compiling:$ac_tool_warned in
5307yes:)
5308{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5309printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5310ac_tool_warned=yes ;;
5311esac
5312    RANLIB=$ac_ct_RANLIB
5313  fi
5314else
5315  RANLIB="$ac_cv_prog_RANLIB"
5316fi
5317
5318
5319    #--------------------------------------------------------------------
5320    # Determines the correct binary file extension (.o, .obj, .exe etc.)
5321    #--------------------------------------------------------------------
5322
5323
5324
5325
5326ac_header= ac_cache=
5327for ac_item in $ac_header_c_list
5328do
5329  if test $ac_cache; then
5330    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
5331    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
5332      printf "%s\n" "#define $ac_item 1" >> confdefs.h
5333    fi
5334    ac_header= ac_cache=
5335  elif test $ac_header; then
5336    ac_cache=$ac_item
5337  else
5338    ac_header=$ac_item
5339  fi
5340done
5341
5342
5343
5344
5345
5346
5347
5348
5349if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
5350then :
5351
5352printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
5353
5354fi
5355
5356    # Any macros that use the compiler (e.g. AC_TRY_COMPILE) have to go here.
5357
5358
5359    #------------------------------------------------------------------------
5360    # If we're using GCC, see if the compiler understands -pipe. If so, use it.
5361    # It makes compiling go faster.  (This is only a performance feature.)
5362    #------------------------------------------------------------------------
5363
5364    if test -z "$no_pipe" -a -n "$GCC"; then
5365	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the compiler understands -pipe" >&5
5366printf %s "checking if the compiler understands -pipe... " >&6; }
5367if test ${tcl_cv_cc_pipe+y}
5368then :
5369  printf %s "(cached) " >&6
5370else $as_nop
5371
5372	    hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -pipe"
5373	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5374/* end confdefs.h.  */
5375
5376int
5377main (void)
5378{
5379
5380  ;
5381  return 0;
5382}
5383_ACEOF
5384if ac_fn_c_try_compile "$LINENO"
5385then :
5386  tcl_cv_cc_pipe=yes
5387else $as_nop
5388  tcl_cv_cc_pipe=no
5389fi
5390rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5391	    CFLAGS=$hold_cflags
5392fi
5393{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_pipe" >&5
5394printf "%s\n" "$tcl_cv_cc_pipe" >&6; }
5395	if test $tcl_cv_cc_pipe = yes; then
5396	    CFLAGS="$CFLAGS -pipe"
5397	fi
5398    fi
5399
5400    #--------------------------------------------------------------------
5401    # Common compiler flag setup
5402    #--------------------------------------------------------------------
5403
5404     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5405printf %s "checking whether byte ordering is bigendian... " >&6; }
5406if test ${ac_cv_c_bigendian+y}
5407then :
5408  printf %s "(cached) " >&6
5409else $as_nop
5410  ac_cv_c_bigendian=unknown
5411    # See if we're dealing with a universal compiler.
5412    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5413/* end confdefs.h.  */
5414#ifndef __APPLE_CC__
5415	       not a universal capable compiler
5416	     #endif
5417	     typedef int dummy;
5418
5419_ACEOF
5420if ac_fn_c_try_compile "$LINENO"
5421then :
5422
5423	# Check for potential -arch flags.  It is not universal unless
5424	# there are at least two -arch flags with different values.
5425	ac_arch=
5426	ac_prev=
5427	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
5428	 if test -n "$ac_prev"; then
5429	   case $ac_word in
5430	     i?86 | x86_64 | ppc | ppc64)
5431	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
5432		 ac_arch=$ac_word
5433	       else
5434		 ac_cv_c_bigendian=universal
5435		 break
5436	       fi
5437	       ;;
5438	   esac
5439	   ac_prev=
5440	 elif test "x$ac_word" = "x-arch"; then
5441	   ac_prev=arch
5442	 fi
5443       done
5444fi
5445rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5446    if test $ac_cv_c_bigendian = unknown; then
5447      # See if sys/param.h defines the BYTE_ORDER macro.
5448      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5449/* end confdefs.h.  */
5450#include <sys/types.h>
5451	     #include <sys/param.h>
5452
5453int
5454main (void)
5455{
5456#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5457		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5458		     && LITTLE_ENDIAN)
5459	      bogus endian macros
5460	     #endif
5461
5462  ;
5463  return 0;
5464}
5465_ACEOF
5466if ac_fn_c_try_compile "$LINENO"
5467then :
5468  # It does; now see whether it defined to BIG_ENDIAN or not.
5469	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5470/* end confdefs.h.  */
5471#include <sys/types.h>
5472		#include <sys/param.h>
5473
5474int
5475main (void)
5476{
5477#if BYTE_ORDER != BIG_ENDIAN
5478		 not big endian
5479		#endif
5480
5481  ;
5482  return 0;
5483}
5484_ACEOF
5485if ac_fn_c_try_compile "$LINENO"
5486then :
5487  ac_cv_c_bigendian=yes
5488else $as_nop
5489  ac_cv_c_bigendian=no
5490fi
5491rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5492fi
5493rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5494    fi
5495    if test $ac_cv_c_bigendian = unknown; then
5496      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5497      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5498/* end confdefs.h.  */
5499#include <limits.h>
5500
5501int
5502main (void)
5503{
5504#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5505	      bogus endian macros
5506	     #endif
5507
5508  ;
5509  return 0;
5510}
5511_ACEOF
5512if ac_fn_c_try_compile "$LINENO"
5513then :
5514  # It does; now see whether it defined to _BIG_ENDIAN or not.
5515	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5516/* end confdefs.h.  */
5517#include <limits.h>
5518
5519int
5520main (void)
5521{
5522#ifndef _BIG_ENDIAN
5523		 not big endian
5524		#endif
5525
5526  ;
5527  return 0;
5528}
5529_ACEOF
5530if ac_fn_c_try_compile "$LINENO"
5531then :
5532  ac_cv_c_bigendian=yes
5533else $as_nop
5534  ac_cv_c_bigendian=no
5535fi
5536rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5537fi
5538rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5539    fi
5540    if test $ac_cv_c_bigendian = unknown; then
5541      # Compile a test program.
5542      if test "$cross_compiling" = yes
5543then :
5544  # Try to guess by grepping values from an object file.
5545	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5546/* end confdefs.h.  */
5547unsigned short int ascii_mm[] =
5548		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5549		unsigned short int ascii_ii[] =
5550		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5551		int use_ascii (int i) {
5552		  return ascii_mm[i] + ascii_ii[i];
5553		}
5554		unsigned short int ebcdic_ii[] =
5555		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5556		unsigned short int ebcdic_mm[] =
5557		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5558		int use_ebcdic (int i) {
5559		  return ebcdic_mm[i] + ebcdic_ii[i];
5560		}
5561		extern int foo;
5562
5563int
5564main (void)
5565{
5566return use_ascii (foo) == use_ebcdic (foo);
5567  ;
5568  return 0;
5569}
5570_ACEOF
5571if ac_fn_c_try_compile "$LINENO"
5572then :
5573  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
5574	      ac_cv_c_bigendian=yes
5575	    fi
5576	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5577	      if test "$ac_cv_c_bigendian" = unknown; then
5578		ac_cv_c_bigendian=no
5579	      else
5580		# finding both strings is unlikely to happen, but who knows?
5581		ac_cv_c_bigendian=unknown
5582	      fi
5583	    fi
5584fi
5585rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5586else $as_nop
5587  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5588/* end confdefs.h.  */
5589$ac_includes_default
5590int
5591main (void)
5592{
5593
5594	     /* Are we little or big endian?  From Harbison&Steele.  */
5595	     union
5596	     {
5597	       long int l;
5598	       char c[sizeof (long int)];
5599	     } u;
5600	     u.l = 1;
5601	     return u.c[sizeof (long int) - 1] == 1;
5602
5603  ;
5604  return 0;
5605}
5606_ACEOF
5607if ac_fn_c_try_run "$LINENO"
5608then :
5609  ac_cv_c_bigendian=no
5610else $as_nop
5611  ac_cv_c_bigendian=yes
5612fi
5613rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5614  conftest.$ac_objext conftest.beam conftest.$ac_ext
5615fi
5616
5617    fi
5618fi
5619{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5620printf "%s\n" "$ac_cv_c_bigendian" >&6; }
5621 case $ac_cv_c_bigendian in #(
5622   yes)
5623     printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
5624;; #(
5625   no)
5626      ;; #(
5627   universal)
5628
5629printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5630
5631     ;; #(
5632   *)
5633     as_fn_error $? "unknown endianness
5634 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5635 esac
5636
5637
5638
5639#-----------------------------------------------------------------------
5640# Setup inlining if available.
5641#-----------------------------------------------------------------------
5642
5643{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5644printf %s "checking for inline... " >&6; }
5645if test ${ac_cv_c_inline+y}
5646then :
5647  printf %s "(cached) " >&6
5648else $as_nop
5649  ac_cv_c_inline=no
5650for ac_kw in inline __inline__ __inline; do
5651  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5652/* end confdefs.h.  */
5653#ifndef __cplusplus
5654typedef int foo_t;
5655static $ac_kw foo_t static_foo (void) {return 0; }
5656$ac_kw foo_t foo (void) {return 0; }
5657#endif
5658
5659_ACEOF
5660if ac_fn_c_try_compile "$LINENO"
5661then :
5662  ac_cv_c_inline=$ac_kw
5663fi
5664rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5665  test "$ac_cv_c_inline" != no && break
5666done
5667
5668fi
5669{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5670printf "%s\n" "$ac_cv_c_inline" >&6; }
5671
5672case $ac_cv_c_inline in
5673  inline | yes) ;;
5674  *)
5675    case $ac_cv_c_inline in
5676      no) ac_val=;;
5677      *) ac_val=$ac_cv_c_inline;;
5678    esac
5679    cat >>confdefs.h <<_ACEOF
5680#ifndef __cplusplus
5681#define inline $ac_val
5682#endif
5683_ACEOF
5684    ;;
5685esac
5686
5687
5688#-----------------------------------------------------------------------
5689# __CHANGE__
5690# Specify the C source files to compile in TEA_ADD_SOURCES,
5691# public headers that need to be installed in TEA_ADD_HEADERS,
5692# stub library C source files to compile in TEA_ADD_STUB_SOURCES,
5693# and runtime Tcl library files in TEA_ADD_TCL_SOURCES.
5694# This defines PKG(_STUB)_SOURCES, PKG(_STUB)_OBJECTS, PKG_HEADERS
5695# and PKG_TCL_SOURCES.
5696#-----------------------------------------------------------------------
5697
5698
5699    vars="tdbc.c tdbcStubInit.c tdbcTokenize.c"
5700    for i in $vars; do
5701	case $i in
5702	    \$*)
5703		# allow $-var names
5704		PKG_SOURCES="$PKG_SOURCES $i"
5705		PKG_OBJECTS="$PKG_OBJECTS $i"
5706		;;
5707	    *)
5708		# check for existence - allows for generic/win/unix VPATH
5709		# To add more dirs here (like 'src'), you have to update VPATH
5710		# in Makefile.in as well
5711		if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \
5712		    -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \
5713		    -a ! -f "${srcdir}/macosx/$i" \
5714		    ; then
5715		    as_fn_error $? "could not find source file '$i'" "$LINENO" 5
5716		fi
5717		PKG_SOURCES="$PKG_SOURCES $i"
5718		# this assumes it is in a VPATH dir
5719		i=`basename $i`
5720		# handle user calling this before or after TEA_SETUP_COMPILER
5721		if test x"${OBJEXT}" != x ; then
5722		    j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}"
5723		else
5724		    j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}"
5725		fi
5726		PKG_OBJECTS="$PKG_OBJECTS $j"
5727		;;
5728	esac
5729    done
5730
5731
5732
5733
5734    vars="generic/tdbc.h generic/tdbcInt.h generic/tdbcDecls.h"
5735    for i in $vars; do
5736	# check for existence, be strict because it is installed
5737	if test ! -f "${srcdir}/$i" ; then
5738	    as_fn_error $? "could not find header file '${srcdir}/$i'" "$LINENO" 5
5739	fi
5740	PKG_HEADERS="$PKG_HEADERS $i"
5741    done
5742
5743
5744if test "${TCL_MAJOR_VERSION}" -eq 8 ; then
5745  if test "${TCL_MINOR_VERSION}" -eq 5 ; then
5746
5747    vars="${TCLOO_INCLUDE_SPEC}"
5748    for i in $vars; do
5749	PKG_INCLUDES="$PKG_INCLUDES $i"
5750    done
5751
5752
5753
5754    vars="${TCLOO_STUB_LIB_SPEC}"
5755    for i in $vars; do
5756	if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then
5757	    # Convert foo.lib to -lfoo for GCC.  No-op if not *.lib
5758	    i=`echo "$i" | sed -e 's/^\([^-].*\)\.[lL][iI][bB]$/-l\1/'`
5759	fi
5760	PKG_LIBS="$PKG_LIBS $i"
5761    done
5762
5763
5764  fi
5765fi
5766
5767    PKG_CFLAGS="$PKG_CFLAGS ${TCLOO_CFLAGS}"
5768
5769
5770
5771    vars="tdbcStubLib.c"
5772    for i in $vars; do
5773	# check for existence - allows for generic/win/unix VPATH
5774	if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \
5775	    -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \
5776	    -a ! -f "${srcdir}/macosx/$i" \
5777	    ; then
5778	    as_fn_error $? "could not find stub source file '$i'" "$LINENO" 5
5779	fi
5780	PKG_STUB_SOURCES="$PKG_STUB_SOURCES $i"
5781	# this assumes it is in a VPATH dir
5782	i=`basename $i`
5783	# handle user calling this before or after TEA_SETUP_COMPILER
5784	if test x"${OBJEXT}" != x ; then
5785	    j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}"
5786	else
5787	    j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}"
5788	fi
5789	PKG_STUB_OBJECTS="$PKG_STUB_OBJECTS $j"
5790    done
5791
5792
5793
5794
5795    vars="library/tdbc.tcl"
5796    for i in $vars; do
5797	# check for existence, be strict because it is installed
5798	if test ! -f "${srcdir}/$i" ; then
5799	    as_fn_error $? "could not find tcl source file '${srcdir}/$i'" "$LINENO" 5
5800	fi
5801	PKG_TCL_SOURCES="$PKG_TCL_SOURCES $i"
5802    done
5803
5804
5805
5806#--------------------------------------------------------------------
5807# __CHANGE__
5808#
5809# You can add more files to clean if your extension creates any extra
5810# files by extending CLEANFILES.
5811# Add pkgIndex.tcl if it is generated in the Makefile instead of ./configure
5812# and change Makefile.in to move it from CONFIG_CLEAN_FILES to BINARIES var.
5813#
5814# A few miscellaneous platform-specific items:
5815# TEA_ADD_* any platform specific compiler/build info here.
5816#--------------------------------------------------------------------
5817
5818#CLEANFILES="$CLEANFILES pkgIndex.tcl"
5819if test "${TEA_PLATFORM}" = "windows" ; then
5820    # Ensure no empty if clauses
5821    :
5822    #TEA_ADD_SOURCES([win/winFile.c])
5823    #TEA_ADD_INCLUDES([-I\"$(${CYGPATH} ${srcdir}/win)\"])
5824else
5825    # Ensure no empty else clauses
5826    :
5827    #TEA_ADD_SOURCES([unix/unixFile.c])
5828    #TEA_ADD_LIBS([-lsuperfly])
5829fi
5830
5831#--------------------------------------------------------------------
5832# __CHANGE__
5833# Choose which headers you need.  Extension authors should try very
5834# hard to only rely on the Tcl public header files.  Internal headers
5835# contain private data structures and are subject to change without
5836# notice.
5837# This MUST be called after TEA_LOAD_TCLCONFIG / TEA_LOAD_TKCONFIG
5838#--------------------------------------------------------------------
5839
5840
5841    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Tcl public headers" >&5
5842printf %s "checking for Tcl public headers... " >&6; }
5843
5844
5845# Check whether --with-tclinclude was given.
5846if test ${with_tclinclude+y}
5847then :
5848  withval=$with_tclinclude; with_tclinclude=${withval}
5849fi
5850
5851
5852    if test ${ac_cv_c_tclh+y}
5853then :
5854  printf %s "(cached) " >&6
5855else $as_nop
5856
5857	# Use the value from --with-tclinclude, if it was given
5858
5859	if test x"${with_tclinclude}" != x ; then
5860	    if test -f "${with_tclinclude}/tcl.h" ; then
5861		ac_cv_c_tclh=${with_tclinclude}
5862	    else
5863		as_fn_error $? "${with_tclinclude} directory does not contain tcl.h" "$LINENO" 5
5864	    fi
5865	else
5866	    list=""
5867	    if test "`uname -s`" = "Darwin"; then
5868		# If Tcl was built as a framework, attempt to use
5869		# the framework's Headers directory
5870		case ${TCL_DEFS} in
5871		    *TCL_FRAMEWORK*)
5872			list="`ls -d ${TCL_BIN_DIR}/Headers 2>/dev/null`"
5873			;;
5874		esac
5875	    fi
5876
5877	    # Look in the source dir only if Tcl is not installed,
5878	    # and in that situation, look there before installed locations.
5879	    if test -f "${TCL_BIN_DIR}/Makefile" ; then
5880		list="$list `ls -d ${TCL_SRC_DIR}/generic 2>/dev/null`"
5881	    fi
5882
5883	    # Check order: pkg --prefix location, Tcl's --prefix location,
5884	    # relative to directory of tclConfig.sh.
5885
5886	    eval "temp_includedir=${includedir}"
5887	    list="$list \
5888		`ls -d ${temp_includedir}        2>/dev/null` \
5889		`ls -d ${TCL_PREFIX}/include     2>/dev/null` \
5890		`ls -d ${TCL_BIN_DIR}/../include 2>/dev/null`"
5891	    if test "${TEA_PLATFORM}" != "windows" -o "$GCC" = "yes"; then
5892		list="$list /usr/local/include /usr/include"
5893		if test x"${TCL_INCLUDE_SPEC}" != x ; then
5894		    d=`echo "${TCL_INCLUDE_SPEC}" | sed -e 's/^-I//'`
5895		    list="$list `ls -d ${d} 2>/dev/null`"
5896		fi
5897	    fi
5898	    for i in $list ; do
5899		if test -f "$i/tcl.h" ; then
5900		    ac_cv_c_tclh=$i
5901		    break
5902		fi
5903	    done
5904	fi
5905
5906fi
5907
5908
5909    # Print a message based on how we determined the include path
5910
5911    if test x"${ac_cv_c_tclh}" = x ; then
5912	as_fn_error $? "tcl.h not found.  Please specify its location with --with-tclinclude" "$LINENO" 5
5913    else
5914	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_c_tclh}" >&5
5915printf "%s\n" "${ac_cv_c_tclh}" >&6; }
5916    fi
5917
5918    # Convert to a native path and substitute into the output files.
5919
5920    INCLUDE_DIR_NATIVE=`${CYGPATH} ${ac_cv_c_tclh}`
5921
5922    TCL_INCLUDES=-I\"${INCLUDE_DIR_NATIVE}\"
5923
5924
5925
5926#TEA_PRIVATE_TCL_HEADERS
5927
5928#TEA_PUBLIC_TK_HEADERS
5929#TEA_PRIVATE_TK_HEADERS
5930#TEA_PATH_X
5931
5932#--------------------------------------------------------------------
5933# Check whether --enable-threads or --disable-threads was given.
5934# This auto-enables if Tcl was compiled threaded.
5935#--------------------------------------------------------------------
5936
5937
5938    # Check whether --enable-threads was given.
5939if test ${enable_threads+y}
5940then :
5941  enableval=$enable_threads; tcl_ok=$enableval
5942else $as_nop
5943  tcl_ok=yes
5944fi
5945
5946
5947    if test "${enable_threads+set}" = set; then
5948	enableval="$enable_threads"
5949	tcl_ok=$enableval
5950    else
5951	tcl_ok=yes
5952    fi
5953
5954    if test "$tcl_ok" = "yes" -o "${TCL_THREADS}" = 1; then
5955	TCL_THREADS=1
5956
5957	if test "${TEA_PLATFORM}" != "windows" ; then
5958	    # We are always OK on Windows, so check what this platform wants:
5959
5960	    # USE_THREAD_ALLOC tells us to try the special thread-based
5961	    # allocator that significantly reduces lock contention
5962
5963printf "%s\n" "#define USE_THREAD_ALLOC 1" >>confdefs.h
5964
5965
5966printf "%s\n" "#define _REENTRANT 1" >>confdefs.h
5967
5968	    if test "`uname -s`" = "SunOS" ; then
5969
5970printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5971
5972	    fi
5973
5974printf "%s\n" "#define _THREAD_SAFE 1" >>confdefs.h
5975
5976	    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lpthread" >&5
5977printf %s "checking for pthread_mutex_init in -lpthread... " >&6; }
5978if test ${ac_cv_lib_pthread_pthread_mutex_init+y}
5979then :
5980  printf %s "(cached) " >&6
5981else $as_nop
5982  ac_check_lib_save_LIBS=$LIBS
5983LIBS="-lpthread  $LIBS"
5984cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5985/* end confdefs.h.  */
5986
5987/* Override any GCC internal prototype to avoid an error.
5988   Use char because int might match the return type of a GCC
5989   builtin and then its argument prototype would still apply.  */
5990char pthread_mutex_init ();
5991int
5992main (void)
5993{
5994return pthread_mutex_init ();
5995  ;
5996  return 0;
5997}
5998_ACEOF
5999if ac_fn_c_try_link "$LINENO"
6000then :
6001  ac_cv_lib_pthread_pthread_mutex_init=yes
6002else $as_nop
6003  ac_cv_lib_pthread_pthread_mutex_init=no
6004fi
6005rm -f core conftest.err conftest.$ac_objext conftest.beam \
6006    conftest$ac_exeext conftest.$ac_ext
6007LIBS=$ac_check_lib_save_LIBS
6008fi
6009{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
6010printf "%s\n" "$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
6011if test "x$ac_cv_lib_pthread_pthread_mutex_init" = xyes
6012then :
6013  tcl_ok=yes
6014else $as_nop
6015  tcl_ok=no
6016fi
6017
6018	    if test "$tcl_ok" = "no"; then
6019		# Check a little harder for __pthread_mutex_init in the same
6020		# library, as some systems hide it there until pthread.h is
6021		# defined.  We could alternatively do an AC_TRY_COMPILE with
6022		# pthread.h, but that will work with libpthread really doesn't
6023		# exist, like AIX 4.2.  [Bug: 4359]
6024		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __pthread_mutex_init in -lpthread" >&5
6025printf %s "checking for __pthread_mutex_init in -lpthread... " >&6; }
6026if test ${ac_cv_lib_pthread___pthread_mutex_init+y}
6027then :
6028  printf %s "(cached) " >&6
6029else $as_nop
6030  ac_check_lib_save_LIBS=$LIBS
6031LIBS="-lpthread  $LIBS"
6032cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6033/* end confdefs.h.  */
6034
6035/* Override any GCC internal prototype to avoid an error.
6036   Use char because int might match the return type of a GCC
6037   builtin and then its argument prototype would still apply.  */
6038char __pthread_mutex_init ();
6039int
6040main (void)
6041{
6042return __pthread_mutex_init ();
6043  ;
6044  return 0;
6045}
6046_ACEOF
6047if ac_fn_c_try_link "$LINENO"
6048then :
6049  ac_cv_lib_pthread___pthread_mutex_init=yes
6050else $as_nop
6051  ac_cv_lib_pthread___pthread_mutex_init=no
6052fi
6053rm -f core conftest.err conftest.$ac_objext conftest.beam \
6054    conftest$ac_exeext conftest.$ac_ext
6055LIBS=$ac_check_lib_save_LIBS
6056fi
6057{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread___pthread_mutex_init" >&5
6058printf "%s\n" "$ac_cv_lib_pthread___pthread_mutex_init" >&6; }
6059if test "x$ac_cv_lib_pthread___pthread_mutex_init" = xyes
6060then :
6061  tcl_ok=yes
6062else $as_nop
6063  tcl_ok=no
6064fi
6065
6066	    fi
6067
6068	    if test "$tcl_ok" = "yes"; then
6069		# The space is needed
6070		THREADS_LIBS=" -lpthread"
6071	    else
6072		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lpthreads" >&5
6073printf %s "checking for pthread_mutex_init in -lpthreads... " >&6; }
6074if test ${ac_cv_lib_pthreads_pthread_mutex_init+y}
6075then :
6076  printf %s "(cached) " >&6
6077else $as_nop
6078  ac_check_lib_save_LIBS=$LIBS
6079LIBS="-lpthreads  $LIBS"
6080cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6081/* end confdefs.h.  */
6082
6083/* Override any GCC internal prototype to avoid an error.
6084   Use char because int might match the return type of a GCC
6085   builtin and then its argument prototype would still apply.  */
6086char pthread_mutex_init ();
6087int
6088main (void)
6089{
6090return pthread_mutex_init ();
6091  ;
6092  return 0;
6093}
6094_ACEOF
6095if ac_fn_c_try_link "$LINENO"
6096then :
6097  ac_cv_lib_pthreads_pthread_mutex_init=yes
6098else $as_nop
6099  ac_cv_lib_pthreads_pthread_mutex_init=no
6100fi
6101rm -f core conftest.err conftest.$ac_objext conftest.beam \
6102    conftest$ac_exeext conftest.$ac_ext
6103LIBS=$ac_check_lib_save_LIBS
6104fi
6105{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_mutex_init" >&5
6106printf "%s\n" "$ac_cv_lib_pthreads_pthread_mutex_init" >&6; }
6107if test "x$ac_cv_lib_pthreads_pthread_mutex_init" = xyes
6108then :
6109  tcl_ok=yes
6110else $as_nop
6111  tcl_ok=no
6112fi
6113
6114		if test "$tcl_ok" = "yes"; then
6115		    # The space is needed
6116		    THREADS_LIBS=" -lpthreads"
6117		else
6118		    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lc" >&5
6119printf %s "checking for pthread_mutex_init in -lc... " >&6; }
6120if test ${ac_cv_lib_c_pthread_mutex_init+y}
6121then :
6122  printf %s "(cached) " >&6
6123else $as_nop
6124  ac_check_lib_save_LIBS=$LIBS
6125LIBS="-lc  $LIBS"
6126cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6127/* end confdefs.h.  */
6128
6129/* Override any GCC internal prototype to avoid an error.
6130   Use char because int might match the return type of a GCC
6131   builtin and then its argument prototype would still apply.  */
6132char pthread_mutex_init ();
6133int
6134main (void)
6135{
6136return pthread_mutex_init ();
6137  ;
6138  return 0;
6139}
6140_ACEOF
6141if ac_fn_c_try_link "$LINENO"
6142then :
6143  ac_cv_lib_c_pthread_mutex_init=yes
6144else $as_nop
6145  ac_cv_lib_c_pthread_mutex_init=no
6146fi
6147rm -f core conftest.err conftest.$ac_objext conftest.beam \
6148    conftest$ac_exeext conftest.$ac_ext
6149LIBS=$ac_check_lib_save_LIBS
6150fi
6151{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_pthread_mutex_init" >&5
6152printf "%s\n" "$ac_cv_lib_c_pthread_mutex_init" >&6; }
6153if test "x$ac_cv_lib_c_pthread_mutex_init" = xyes
6154then :
6155  tcl_ok=yes
6156else $as_nop
6157  tcl_ok=no
6158fi
6159
6160		    if test "$tcl_ok" = "no"; then
6161			{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lc_r" >&5
6162printf %s "checking for pthread_mutex_init in -lc_r... " >&6; }
6163if test ${ac_cv_lib_c_r_pthread_mutex_init+y}
6164then :
6165  printf %s "(cached) " >&6
6166else $as_nop
6167  ac_check_lib_save_LIBS=$LIBS
6168LIBS="-lc_r  $LIBS"
6169cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6170/* end confdefs.h.  */
6171
6172/* Override any GCC internal prototype to avoid an error.
6173   Use char because int might match the return type of a GCC
6174   builtin and then its argument prototype would still apply.  */
6175char pthread_mutex_init ();
6176int
6177main (void)
6178{
6179return pthread_mutex_init ();
6180  ;
6181  return 0;
6182}
6183_ACEOF
6184if ac_fn_c_try_link "$LINENO"
6185then :
6186  ac_cv_lib_c_r_pthread_mutex_init=yes
6187else $as_nop
6188  ac_cv_lib_c_r_pthread_mutex_init=no
6189fi
6190rm -f core conftest.err conftest.$ac_objext conftest.beam \
6191    conftest$ac_exeext conftest.$ac_ext
6192LIBS=$ac_check_lib_save_LIBS
6193fi
6194{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_mutex_init" >&5
6195printf "%s\n" "$ac_cv_lib_c_r_pthread_mutex_init" >&6; }
6196if test "x$ac_cv_lib_c_r_pthread_mutex_init" = xyes
6197then :
6198  tcl_ok=yes
6199else $as_nop
6200  tcl_ok=no
6201fi
6202
6203			if test "$tcl_ok" = "yes"; then
6204			    # The space is needed
6205			    THREADS_LIBS=" -pthread"
6206			else
6207			    TCL_THREADS=0
6208			    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Do not know how to find pthread lib on your system - thread support disabled" >&5
6209printf "%s\n" "$as_me: WARNING: Do not know how to find pthread lib on your system - thread support disabled" >&2;}
6210			fi
6211		    fi
6212		fi
6213	    fi
6214	fi
6215    else
6216	TCL_THREADS=0
6217    fi
6218    # Do checking message here to not mess up interleaved configure output
6219    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for building with threads" >&5
6220printf %s "checking for building with threads... " >&6; }
6221    if test "${TCL_THREADS}" = 1; then
6222
6223printf "%s\n" "#define TCL_THREADS 1" >>confdefs.h
6224
6225	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes (default)" >&5
6226printf "%s\n" "yes (default)" >&6; }
6227    else
6228	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6229printf "%s\n" "no" >&6; }
6230    fi
6231    # TCL_THREADS sanity checking.  See if our request for building with
6232    # threads is the same as the way Tcl was built.  If not, warn the user.
6233    case ${TCL_DEFS} in
6234	*THREADS=1*)
6235	    if test "${TCL_THREADS}" = "0"; then
6236		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:
6237    Building ${PACKAGE_NAME} without threads enabled, but building against Tcl
6238    that IS thread-enabled.  It is recommended to use --enable-threads." >&5
6239printf "%s\n" "$as_me: WARNING:
6240    Building ${PACKAGE_NAME} without threads enabled, but building against Tcl
6241    that IS thread-enabled.  It is recommended to use --enable-threads." >&2;}
6242	    fi
6243	    ;;
6244    esac
6245
6246
6247
6248#--------------------------------------------------------------------
6249# The statement below defines a collection of symbols related to
6250# building as a shared library instead of a static library.
6251#--------------------------------------------------------------------
6252
6253
6254    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to build libraries" >&5
6255printf %s "checking how to build libraries... " >&6; }
6256    # Check whether --enable-shared was given.
6257if test ${enable_shared+y}
6258then :
6259  enableval=$enable_shared; shared_ok=$enableval
6260else $as_nop
6261  shared_ok=yes
6262fi
6263
6264
6265    if test "${enable_shared+set}" = set; then
6266	enableval="$enable_shared"
6267	shared_ok=$enableval
6268    else
6269	shared_ok=yes
6270    fi
6271
6272    # Check whether --enable-stubs was given.
6273if test ${enable_stubs+y}
6274then :
6275  enableval=$enable_stubs; stubs_ok=$enableval
6276else $as_nop
6277  stubs_ok=yes
6278fi
6279
6280
6281    if test "${enable_stubs+set}" = set; then
6282	enableval="$enable_stubs"
6283	stubs_ok=$enableval
6284    else
6285	stubs_ok=yes
6286    fi
6287
6288    # Stubs are always enabled for shared builds
6289    if test "$shared_ok" = "yes" ; then
6290	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: shared" >&5
6291printf "%s\n" "shared" >&6; }
6292	SHARED_BUILD=1
6293        STUBS_BUILD=1
6294    else
6295	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: static" >&5
6296printf "%s\n" "static" >&6; }
6297	SHARED_BUILD=0
6298
6299printf "%s\n" "#define STATIC_BUILD 1" >>confdefs.h
6300
6301        if test "$stubs_ok" = "yes" ; then
6302          STUBS_BUILD=1
6303        else
6304          STUBS_BUILD=0
6305        fi
6306    fi
6307    if test "${STUBS_BUILD}" = "1" ; then
6308
6309printf "%s\n" "#define USE_TCL_STUBS 1" >>confdefs.h
6310
6311
6312printf "%s\n" "#define USE_TCLOO_STUBS 1" >>confdefs.h
6313
6314      if test "${TEA_WINDOWINGSYSTEM}" != ""; then
6315
6316printf "%s\n" "#define USE_TK_STUBS 1" >>confdefs.h
6317
6318      fi
6319    fi
6320
6321
6322
6323
6324
6325#--------------------------------------------------------------------
6326# This macro figures out what flags to use with the compiler/linker
6327# when building shared/static debug/optimized objects.  This information
6328# can be taken from the tclConfig.sh file, but this figures it all out.
6329#--------------------------------------------------------------------
6330
6331if test -n "$ac_tool_prefix"; then
6332  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6333set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6334{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6335printf %s "checking for $ac_word... " >&6; }
6336if test ${ac_cv_prog_RANLIB+y}
6337then :
6338  printf %s "(cached) " >&6
6339else $as_nop
6340  if test -n "$RANLIB"; then
6341  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6342else
6343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6344for as_dir in $PATH
6345do
6346  IFS=$as_save_IFS
6347  case $as_dir in #(((
6348    '') as_dir=./ ;;
6349    */) ;;
6350    *) as_dir=$as_dir/ ;;
6351  esac
6352    for ac_exec_ext in '' $ac_executable_extensions; do
6353  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6354    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6355    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6356    break 2
6357  fi
6358done
6359  done
6360IFS=$as_save_IFS
6361
6362fi
6363fi
6364RANLIB=$ac_cv_prog_RANLIB
6365if test -n "$RANLIB"; then
6366  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6367printf "%s\n" "$RANLIB" >&6; }
6368else
6369  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6370printf "%s\n" "no" >&6; }
6371fi
6372
6373
6374fi
6375if test -z "$ac_cv_prog_RANLIB"; then
6376  ac_ct_RANLIB=$RANLIB
6377  # Extract the first word of "ranlib", so it can be a program name with args.
6378set dummy ranlib; ac_word=$2
6379{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6380printf %s "checking for $ac_word... " >&6; }
6381if test ${ac_cv_prog_ac_ct_RANLIB+y}
6382then :
6383  printf %s "(cached) " >&6
6384else $as_nop
6385  if test -n "$ac_ct_RANLIB"; then
6386  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6387else
6388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6389for as_dir in $PATH
6390do
6391  IFS=$as_save_IFS
6392  case $as_dir in #(((
6393    '') as_dir=./ ;;
6394    */) ;;
6395    *) as_dir=$as_dir/ ;;
6396  esac
6397    for ac_exec_ext in '' $ac_executable_extensions; do
6398  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6399    ac_cv_prog_ac_ct_RANLIB="ranlib"
6400    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6401    break 2
6402  fi
6403done
6404  done
6405IFS=$as_save_IFS
6406
6407fi
6408fi
6409ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6410if test -n "$ac_ct_RANLIB"; then
6411  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6412printf "%s\n" "$ac_ct_RANLIB" >&6; }
6413else
6414  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6415printf "%s\n" "no" >&6; }
6416fi
6417
6418  if test "x$ac_ct_RANLIB" = x; then
6419    RANLIB=":"
6420  else
6421    case $cross_compiling:$ac_tool_warned in
6422yes:)
6423{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6424printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6425ac_tool_warned=yes ;;
6426esac
6427    RANLIB=$ac_ct_RANLIB
6428  fi
6429else
6430  RANLIB="$ac_cv_prog_RANLIB"
6431fi
6432
6433
6434
6435
6436    # Step 0.a: Enable 64 bit support?
6437
6438    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if 64bit support is requested" >&5
6439printf %s "checking if 64bit support is requested... " >&6; }
6440    # Check whether --enable-64bit was given.
6441if test ${enable_64bit+y}
6442then :
6443  enableval=$enable_64bit; do64bit=$enableval
6444else $as_nop
6445  do64bit=no
6446fi
6447
6448    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $do64bit" >&5
6449printf "%s\n" "$do64bit" >&6; }
6450
6451    # Step 0.b: Enable Solaris 64 bit VIS support?
6452
6453    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if 64bit Sparc VIS support is requested" >&5
6454printf %s "checking if 64bit Sparc VIS support is requested... " >&6; }
6455    # Check whether --enable-64bit-vis was given.
6456if test ${enable_64bit_vis+y}
6457then :
6458  enableval=$enable_64bit_vis; do64bitVIS=$enableval
6459else $as_nop
6460  do64bitVIS=no
6461fi
6462
6463    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $do64bitVIS" >&5
6464printf "%s\n" "$do64bitVIS" >&6; }
6465    # Force 64bit on with VIS
6466    if test "$do64bitVIS" = "yes"
6467then :
6468  do64bit=yes
6469fi
6470
6471    # Step 0.c: Check if visibility support is available. Do this here so
6472    # that platform specific alternatives can be used below if this fails.
6473
6474    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler supports visibility \"hidden\"" >&5
6475printf %s "checking if compiler supports visibility \"hidden\"... " >&6; }
6476if test ${tcl_cv_cc_visibility_hidden+y}
6477then :
6478  printf %s "(cached) " >&6
6479else $as_nop
6480
6481	hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -Werror"
6482	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6483/* end confdefs.h.  */
6484
6485	    extern __attribute__((__visibility__("hidden"))) void f(void);
6486	    void f(void) {}
6487int
6488main (void)
6489{
6490f();
6491  ;
6492  return 0;
6493}
6494_ACEOF
6495if ac_fn_c_try_link "$LINENO"
6496then :
6497  tcl_cv_cc_visibility_hidden=yes
6498else $as_nop
6499  tcl_cv_cc_visibility_hidden=no
6500fi
6501rm -f core conftest.err conftest.$ac_objext conftest.beam \
6502    conftest$ac_exeext conftest.$ac_ext
6503	CFLAGS=$hold_cflags
6504fi
6505{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_visibility_hidden" >&5
6506printf "%s\n" "$tcl_cv_cc_visibility_hidden" >&6; }
6507    if test $tcl_cv_cc_visibility_hidden = yes
6508then :
6509
6510
6511printf "%s\n" "#define MODULE_SCOPE extern __attribute__((__visibility__(\"hidden\")))" >>confdefs.h
6512
6513
6514printf "%s\n" "#define HAVE_HIDDEN 1" >>confdefs.h
6515
6516
6517fi
6518
6519    # Step 0.d: Disable -rpath support?
6520
6521    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if rpath support is requested" >&5
6522printf %s "checking if rpath support is requested... " >&6; }
6523    # Check whether --enable-rpath was given.
6524if test ${enable_rpath+y}
6525then :
6526  enableval=$enable_rpath; doRpath=$enableval
6527else $as_nop
6528  doRpath=yes
6529fi
6530
6531    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $doRpath" >&5
6532printf "%s\n" "$doRpath" >&6; }
6533
6534    # Set the variable "system" to hold the name and version number
6535    # for the system.
6536
6537
6538    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking system version" >&5
6539printf %s "checking system version... " >&6; }
6540if test ${tcl_cv_sys_version+y}
6541then :
6542  printf %s "(cached) " >&6
6543else $as_nop
6544
6545	# TEA specific:
6546	if test "${TEA_PLATFORM}" = "windows" ; then
6547	    tcl_cv_sys_version=windows
6548	else
6549	    tcl_cv_sys_version=`uname -s`-`uname -r`
6550	    if test "$?" -ne 0 ; then
6551		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: can't find uname command" >&5
6552printf "%s\n" "$as_me: WARNING: can't find uname command" >&2;}
6553		tcl_cv_sys_version=unknown
6554	    else
6555		if test "`uname -s`" = "AIX" ; then
6556		    tcl_cv_sys_version=AIX-`uname -v`.`uname -r`
6557		fi
6558		if test "`uname -s`" = "NetBSD" -a -f /etc/debian_version ; then
6559		    tcl_cv_sys_version=NetBSD-Debian
6560		fi
6561	    fi
6562	fi
6563
6564fi
6565{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_sys_version" >&5
6566printf "%s\n" "$tcl_cv_sys_version" >&6; }
6567    system=$tcl_cv_sys_version
6568
6569
6570    # Require ranlib early so we can override it in special cases below.
6571
6572
6573
6574    # Set configuration options based on system name and version.
6575    # This is similar to Tcl's unix/tcl.m4 except that we've added a
6576    # "windows" case and removed some core-only vars.
6577
6578    do64bit_ok=no
6579    # default to '{$LIBS}' and set to "" on per-platform necessary basis
6580    SHLIB_LD_LIBS='${LIBS}'
6581    # When ld needs options to work in 64-bit mode, put them in
6582    # LDFLAGS_ARCH so they eventually end up in LDFLAGS even if [load]
6583    # is disabled by the user. [Bug 1016796]
6584    LDFLAGS_ARCH=""
6585    UNSHARED_LIB_SUFFIX=""
6586    # TEA specific: use PACKAGE_VERSION instead of VERSION
6587    TCL_TRIM_DOTS='`echo ${PACKAGE_VERSION} | tr -d .`'
6588    ECHO_VERSION='`echo ${PACKAGE_VERSION}`'
6589    TCL_LIB_VERSIONS_OK=ok
6590    CFLAGS_DEBUG=-g
6591    if test "$GCC" = yes
6592then :
6593
6594	CFLAGS_OPTIMIZE=-O2
6595	CFLAGS_WARNING="-Wall"
6596
6597else $as_nop
6598
6599	CFLAGS_OPTIMIZE=-O
6600	CFLAGS_WARNING=""
6601
6602fi
6603    if test -n "$ac_tool_prefix"; then
6604  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6605set dummy ${ac_tool_prefix}ar; ac_word=$2
6606{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6607printf %s "checking for $ac_word... " >&6; }
6608if test ${ac_cv_prog_AR+y}
6609then :
6610  printf %s "(cached) " >&6
6611else $as_nop
6612  if test -n "$AR"; then
6613  ac_cv_prog_AR="$AR" # Let the user override the test.
6614else
6615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6616for as_dir in $PATH
6617do
6618  IFS=$as_save_IFS
6619  case $as_dir in #(((
6620    '') as_dir=./ ;;
6621    */) ;;
6622    *) as_dir=$as_dir/ ;;
6623  esac
6624    for ac_exec_ext in '' $ac_executable_extensions; do
6625  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6626    ac_cv_prog_AR="${ac_tool_prefix}ar"
6627    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6628    break 2
6629  fi
6630done
6631  done
6632IFS=$as_save_IFS
6633
6634fi
6635fi
6636AR=$ac_cv_prog_AR
6637if test -n "$AR"; then
6638  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6639printf "%s\n" "$AR" >&6; }
6640else
6641  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6642printf "%s\n" "no" >&6; }
6643fi
6644
6645
6646fi
6647if test -z "$ac_cv_prog_AR"; then
6648  ac_ct_AR=$AR
6649  # Extract the first word of "ar", so it can be a program name with args.
6650set dummy ar; ac_word=$2
6651{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6652printf %s "checking for $ac_word... " >&6; }
6653if test ${ac_cv_prog_ac_ct_AR+y}
6654then :
6655  printf %s "(cached) " >&6
6656else $as_nop
6657  if test -n "$ac_ct_AR"; then
6658  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6659else
6660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6661for as_dir in $PATH
6662do
6663  IFS=$as_save_IFS
6664  case $as_dir in #(((
6665    '') as_dir=./ ;;
6666    */) ;;
6667    *) as_dir=$as_dir/ ;;
6668  esac
6669    for ac_exec_ext in '' $ac_executable_extensions; do
6670  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6671    ac_cv_prog_ac_ct_AR="ar"
6672    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6673    break 2
6674  fi
6675done
6676  done
6677IFS=$as_save_IFS
6678
6679fi
6680fi
6681ac_ct_AR=$ac_cv_prog_ac_ct_AR
6682if test -n "$ac_ct_AR"; then
6683  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6684printf "%s\n" "$ac_ct_AR" >&6; }
6685else
6686  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6687printf "%s\n" "no" >&6; }
6688fi
6689
6690  if test "x$ac_ct_AR" = x; then
6691    AR=""
6692  else
6693    case $cross_compiling:$ac_tool_warned in
6694yes:)
6695{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6696printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6697ac_tool_warned=yes ;;
6698esac
6699    AR=$ac_ct_AR
6700  fi
6701else
6702  AR="$ac_cv_prog_AR"
6703fi
6704
6705    STLIB_LD='${AR} cr'
6706    LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH"
6707    if test "x$SHLIB_VERSION" = x
6708then :
6709  SHLIB_VERSION=""
6710else $as_nop
6711  SHLIB_VERSION=".$SHLIB_VERSION"
6712fi
6713    case $system in
6714	# TEA specific:
6715	windows)
6716	    MACHINE="X86"
6717	    if test "$do64bit" != "no" ; then
6718		case "$do64bit" in
6719		    amd64|x64|yes)
6720			MACHINE="AMD64" ; # default to AMD64 64-bit build
6721			;;
6722		    ia64)
6723			MACHINE="IA64"
6724			;;
6725		esac
6726	    fi
6727
6728	    if test "$GCC" != "yes" ; then
6729	        if test "${SHARED_BUILD}" = "0" ; then
6730		    runtime=-MT
6731	        else
6732		    runtime=-MD
6733	        fi
6734	        case "x`echo \${VisualStudioVersion}`" in
6735	            x1[4-9]*)
6736		        lflags="${lflags} -nodefaultlib:libucrt.lib"
6737
6738    vars="ucrt.lib"
6739    for i in $vars; do
6740	if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then
6741	    # Convert foo.lib to -lfoo for GCC.  No-op if not *.lib
6742	    i=`echo "$i" | sed -e 's/^\([^-].*\)\.[lL][iI][bB]$/-l\1/'`
6743	fi
6744	PKG_LIBS="$PKG_LIBS $i"
6745    done
6746
6747
6748	            ;;
6749	            *)
6750	            ;;
6751	        esac
6752
6753                if test "$do64bit" != "no" ; then
6754		    CC="cl.exe"
6755		    RC="rc.exe"
6756		    lflags="${lflags} -nologo -MACHINE:${MACHINE} "
6757		    LINKBIN="link.exe"
6758		    CFLAGS_DEBUG="-nologo -Zi -Od -W3 ${runtime}d"
6759		    CFLAGS_OPTIMIZE="-nologo -O2 -W2 ${runtime}"
6760		    # Avoid 'unresolved external symbol __security_cookie'
6761		    # errors, c.f. http://support.microsoft.com/?id=894573
6762
6763    vars="bufferoverflowU.lib"
6764    for i in $vars; do
6765	if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then
6766	    # Convert foo.lib to -lfoo for GCC.  No-op if not *.lib
6767	    i=`echo "$i" | sed -e 's/^\([^-].*\)\.[lL][iI][bB]$/-l\1/'`
6768	fi
6769	PKG_LIBS="$PKG_LIBS $i"
6770    done
6771
6772
6773		else
6774		    RC="rc"
6775		    lflags="${lflags} -nologo"
6776		    LINKBIN="link"
6777		    CFLAGS_DEBUG="-nologo -Z7 -Od -W3 -WX ${runtime}d"
6778		    CFLAGS_OPTIMIZE="-nologo -O2 -W2 ${runtime}"
6779		fi
6780	    fi
6781
6782	    if test "$GCC" = "yes"; then
6783		# mingw gcc mode
6784		if test -n "$ac_tool_prefix"; then
6785  # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
6786set dummy ${ac_tool_prefix}windres; ac_word=$2
6787{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6788printf %s "checking for $ac_word... " >&6; }
6789if test ${ac_cv_prog_RC+y}
6790then :
6791  printf %s "(cached) " >&6
6792else $as_nop
6793  if test -n "$RC"; then
6794  ac_cv_prog_RC="$RC" # Let the user override the test.
6795else
6796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6797for as_dir in $PATH
6798do
6799  IFS=$as_save_IFS
6800  case $as_dir in #(((
6801    '') as_dir=./ ;;
6802    */) ;;
6803    *) as_dir=$as_dir/ ;;
6804  esac
6805    for ac_exec_ext in '' $ac_executable_extensions; do
6806  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6807    ac_cv_prog_RC="${ac_tool_prefix}windres"
6808    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6809    break 2
6810  fi
6811done
6812  done
6813IFS=$as_save_IFS
6814
6815fi
6816fi
6817RC=$ac_cv_prog_RC
6818if test -n "$RC"; then
6819  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
6820printf "%s\n" "$RC" >&6; }
6821else
6822  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6823printf "%s\n" "no" >&6; }
6824fi
6825
6826
6827fi
6828if test -z "$ac_cv_prog_RC"; then
6829  ac_ct_RC=$RC
6830  # Extract the first word of "windres", so it can be a program name with args.
6831set dummy windres; ac_word=$2
6832{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6833printf %s "checking for $ac_word... " >&6; }
6834if test ${ac_cv_prog_ac_ct_RC+y}
6835then :
6836  printf %s "(cached) " >&6
6837else $as_nop
6838  if test -n "$ac_ct_RC"; then
6839  ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
6840else
6841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6842for as_dir in $PATH
6843do
6844  IFS=$as_save_IFS
6845  case $as_dir in #(((
6846    '') as_dir=./ ;;
6847    */) ;;
6848    *) as_dir=$as_dir/ ;;
6849  esac
6850    for ac_exec_ext in '' $ac_executable_extensions; do
6851  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6852    ac_cv_prog_ac_ct_RC="windres"
6853    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6854    break 2
6855  fi
6856done
6857  done
6858IFS=$as_save_IFS
6859
6860fi
6861fi
6862ac_ct_RC=$ac_cv_prog_ac_ct_RC
6863if test -n "$ac_ct_RC"; then
6864  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
6865printf "%s\n" "$ac_ct_RC" >&6; }
6866else
6867  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6868printf "%s\n" "no" >&6; }
6869fi
6870
6871  if test "x$ac_ct_RC" = x; then
6872    RC=""
6873  else
6874    case $cross_compiling:$ac_tool_warned in
6875yes:)
6876{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6877printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6878ac_tool_warned=yes ;;
6879esac
6880    RC=$ac_ct_RC
6881  fi
6882else
6883  RC="$ac_cv_prog_RC"
6884fi
6885
6886		CFLAGS_DEBUG="-g"
6887		CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer"
6888		SHLIB_LD='${CC} -shared'
6889		UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
6890		LDFLAGS_CONSOLE="-wl,--subsystem,console ${lflags}"
6891		LDFLAGS_WINDOW="-wl,--subsystem,windows ${lflags}"
6892
6893		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cross-compile version of gcc" >&5
6894printf %s "checking for cross-compile version of gcc... " >&6; }
6895if test ${ac_cv_cross+y}
6896then :
6897  printf %s "(cached) " >&6
6898else $as_nop
6899  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6900/* end confdefs.h.  */
6901
6902			    #ifdef _WIN32
6903				#error cross-compiler
6904			    #endif
6905
6906int
6907main (void)
6908{
6909
6910  ;
6911  return 0;
6912}
6913_ACEOF
6914if ac_fn_c_try_compile "$LINENO"
6915then :
6916  ac_cv_cross=yes
6917else $as_nop
6918  ac_cv_cross=no
6919fi
6920rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6921
6922fi
6923{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cross" >&5
6924printf "%s\n" "$ac_cv_cross" >&6; }
6925		      if test "$ac_cv_cross" = "yes"; then
6926			case "$do64bit" in
6927			    amd64|x64|yes)
6928				CC="x86_64-w64-mingw32-${CC}"
6929				LD="x86_64-w64-mingw32-ld"
6930				AR="x86_64-w64-mingw32-ar"
6931				RANLIB="x86_64-w64-mingw32-ranlib"
6932				RC="x86_64-w64-mingw32-windres"
6933			    ;;
6934			    *)
6935				CC="i686-w64-mingw32-${CC}"
6936				LD="i686-w64-mingw32-ld"
6937				AR="i686-w64-mingw32-ar"
6938				RANLIB="i686-w64-mingw32-ranlib"
6939				RC="i686-w64-mingw32-windres"
6940			    ;;
6941			esac
6942		fi
6943
6944	    else
6945		SHLIB_LD="${LINKBIN} -dll ${lflags}"
6946		# link -lib only works when -lib is the first arg
6947		STLIB_LD="${LINKBIN} -lib ${lflags}"
6948		UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.lib'
6949		PATHTYPE=-w
6950		# For information on what debugtype is most useful, see:
6951		# http://msdn.microsoft.com/library/en-us/dnvc60/html/gendepdebug.asp
6952		# and also
6953		# http://msdn2.microsoft.com/en-us/library/y0zzbyt4%28VS.80%29.aspx
6954		# This essentially turns it all on.
6955		LDFLAGS_DEBUG="-debug -debugtype:cv"
6956		LDFLAGS_OPTIMIZE="-release"
6957		LDFLAGS_CONSOLE="-link -subsystem:console ${lflags}"
6958		LDFLAGS_WINDOW="-link -subsystem:windows ${lflags}"
6959	    fi
6960
6961	    SHLIB_SUFFIX=".dll"
6962	    SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.dll'
6963
6964	    TCL_LIB_VERSIONS_OK=nodots
6965    	    ;;
6966	AIX-*)
6967	    if test "$GCC" != "yes"
6968then :
6969
6970		# AIX requires the _r compiler when gcc isn't being used
6971		case "${CC}" in
6972		    *_r|*_r\ *)
6973			# ok ...
6974			;;
6975		    *)
6976			# Make sure only first arg gets _r
6977		    	CC=`echo "$CC" | sed -e 's/^\([^ ]*\)/\1_r/'`
6978			;;
6979		esac
6980		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using $CC for compiling with threads" >&5
6981printf "%s\n" "Using $CC for compiling with threads" >&6; }
6982
6983fi
6984	    LIBS="$LIBS -lc"
6985	    SHLIB_CFLAGS=""
6986	    SHLIB_SUFFIX=".so"
6987
6988	    LD_LIBRARY_PATH_VAR="LIBPATH"
6989
6990	    # Check to enable 64-bit flags for compiler/linker
6991	    if test "$do64bit" = yes
6992then :
6993
6994		if test "$GCC" = yes
6995then :
6996
6997		    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5
6998printf "%s\n" "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;}
6999
7000else $as_nop
7001
7002		    do64bit_ok=yes
7003		    CFLAGS="$CFLAGS -q64"
7004		    LDFLAGS_ARCH="-q64"
7005		    RANLIB="${RANLIB} -X64"
7006		    AR="${AR} -X64"
7007		    SHLIB_LD_FLAGS="-b64"
7008
7009fi
7010
7011fi
7012
7013	    if test "`uname -m`" = ia64
7014then :
7015
7016		# AIX-5 uses ELF style dynamic libraries on IA-64, but not PPC
7017		SHLIB_LD="/usr/ccs/bin/ld -G -z text"
7018		if test "$GCC" = yes
7019then :
7020
7021		    CC_SEARCH_FLAGS='"-Wl,-R,${LIB_RUNTIME_DIR}"'
7022
7023else $as_nop
7024
7025		    CC_SEARCH_FLAGS='"-R${LIB_RUNTIME_DIR}"'
7026
7027fi
7028		LD_SEARCH_FLAGS='-R "${LIB_RUNTIME_DIR}"'
7029
7030else $as_nop
7031
7032		if test "$GCC" = yes
7033then :
7034
7035		    SHLIB_LD='${CC} -shared -Wl,-bexpall'
7036
7037else $as_nop
7038
7039		    SHLIB_LD="/bin/ld -bhalt:4 -bM:SRE -bexpall -H512 -T512 -bnoentry"
7040		    LDFLAGS="$LDFLAGS -brtl"
7041
7042fi
7043		SHLIB_LD="${SHLIB_LD} ${SHLIB_LD_FLAGS}"
7044		CC_SEARCH_FLAGS='"-L${LIB_RUNTIME_DIR}"'
7045		LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
7046
7047fi
7048	    ;;
7049	BeOS*)
7050	    SHLIB_CFLAGS="-fPIC"
7051	    SHLIB_LD='${CC} -nostart'
7052	    SHLIB_SUFFIX=".so"
7053
7054	    #-----------------------------------------------------------
7055	    # Check for inet_ntoa in -lbind, for BeOS (which also needs
7056	    # -lsocket, even if the network functions are in -lnet which
7057	    # is always linked to, for compatibility.
7058	    #-----------------------------------------------------------
7059	    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lbind" >&5
7060printf %s "checking for inet_ntoa in -lbind... " >&6; }
7061if test ${ac_cv_lib_bind_inet_ntoa+y}
7062then :
7063  printf %s "(cached) " >&6
7064else $as_nop
7065  ac_check_lib_save_LIBS=$LIBS
7066LIBS="-lbind  $LIBS"
7067cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7068/* end confdefs.h.  */
7069
7070/* Override any GCC internal prototype to avoid an error.
7071   Use char because int might match the return type of a GCC
7072   builtin and then its argument prototype would still apply.  */
7073char inet_ntoa ();
7074int
7075main (void)
7076{
7077return inet_ntoa ();
7078  ;
7079  return 0;
7080}
7081_ACEOF
7082if ac_fn_c_try_link "$LINENO"
7083then :
7084  ac_cv_lib_bind_inet_ntoa=yes
7085else $as_nop
7086  ac_cv_lib_bind_inet_ntoa=no
7087fi
7088rm -f core conftest.err conftest.$ac_objext conftest.beam \
7089    conftest$ac_exeext conftest.$ac_ext
7090LIBS=$ac_check_lib_save_LIBS
7091fi
7092{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_inet_ntoa" >&5
7093printf "%s\n" "$ac_cv_lib_bind_inet_ntoa" >&6; }
7094if test "x$ac_cv_lib_bind_inet_ntoa" = xyes
7095then :
7096  LIBS="$LIBS -lbind -lsocket"
7097fi
7098
7099	    ;;
7100	BSD/OS-2.1*|BSD/OS-3*)
7101	    SHLIB_CFLAGS=""
7102	    SHLIB_LD="shlicc -r"
7103	    SHLIB_SUFFIX=".so"
7104	    CC_SEARCH_FLAGS=""
7105	    LD_SEARCH_FLAGS=""
7106	    ;;
7107	BSD/OS-4.*)
7108	    SHLIB_CFLAGS="-export-dynamic -fPIC"
7109	    SHLIB_LD='${CC} -shared'
7110	    SHLIB_SUFFIX=".so"
7111	    LDFLAGS="$LDFLAGS -export-dynamic"
7112	    CC_SEARCH_FLAGS=""
7113	    LD_SEARCH_FLAGS=""
7114	    ;;
7115	CYGWIN_*)
7116	    SHLIB_CFLAGS=""
7117	    SHLIB_LD='${CC} -shared'
7118	    SHLIB_SUFFIX=".dll"
7119	    SHLIB_LD_LIBS="${SHLIB_LD_LIBS} -Wl,--out-implib,\$@.a"
7120	    EXEEXT=".exe"
7121	    do64bit_ok=yes
7122	    CC_SEARCH_FLAGS=""
7123	    LD_SEARCH_FLAGS=""
7124	    ;;
7125	dgux*)
7126	    SHLIB_CFLAGS="-K PIC"
7127	    SHLIB_LD='${CC} -G'
7128	    SHLIB_LD_LIBS=""
7129	    SHLIB_SUFFIX=".so"
7130	    CC_SEARCH_FLAGS=""
7131	    LD_SEARCH_FLAGS=""
7132	    ;;
7133	Haiku*)
7134	    LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
7135	    SHLIB_CFLAGS="-fPIC"
7136	    SHLIB_SUFFIX=".so"
7137	    SHLIB_LD='${CC} ${CFLAGS} ${LDFLAGS} -shared'
7138	    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lnetwork" >&5
7139printf %s "checking for inet_ntoa in -lnetwork... " >&6; }
7140if test ${ac_cv_lib_network_inet_ntoa+y}
7141then :
7142  printf %s "(cached) " >&6
7143else $as_nop
7144  ac_check_lib_save_LIBS=$LIBS
7145LIBS="-lnetwork  $LIBS"
7146cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7147/* end confdefs.h.  */
7148
7149/* Override any GCC internal prototype to avoid an error.
7150   Use char because int might match the return type of a GCC
7151   builtin and then its argument prototype would still apply.  */
7152char inet_ntoa ();
7153int
7154main (void)
7155{
7156return inet_ntoa ();
7157  ;
7158  return 0;
7159}
7160_ACEOF
7161if ac_fn_c_try_link "$LINENO"
7162then :
7163  ac_cv_lib_network_inet_ntoa=yes
7164else $as_nop
7165  ac_cv_lib_network_inet_ntoa=no
7166fi
7167rm -f core conftest.err conftest.$ac_objext conftest.beam \
7168    conftest$ac_exeext conftest.$ac_ext
7169LIBS=$ac_check_lib_save_LIBS
7170fi
7171{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_inet_ntoa" >&5
7172printf "%s\n" "$ac_cv_lib_network_inet_ntoa" >&6; }
7173if test "x$ac_cv_lib_network_inet_ntoa" = xyes
7174then :
7175  LIBS="$LIBS -lnetwork"
7176fi
7177
7178	    ;;
7179	HP-UX-*.11.*)
7180	    # Use updated header definitions where possible
7181
7182printf "%s\n" "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h
7183
7184	    # TEA specific: Needed by Tcl, but not most extensions
7185	    #AC_DEFINE(_XOPEN_SOURCE, 1, [Do we want to use the XOPEN network library?])
7186	    #LIBS="$LIBS -lxnet"               # Use the XOPEN network library
7187
7188	    if test "`uname -m`" = ia64
7189then :
7190
7191		SHLIB_SUFFIX=".so"
7192
7193else $as_nop
7194
7195		SHLIB_SUFFIX=".sl"
7196
7197fi
7198	    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
7199printf %s "checking for shl_load in -ldld... " >&6; }
7200if test ${ac_cv_lib_dld_shl_load+y}
7201then :
7202  printf %s "(cached) " >&6
7203else $as_nop
7204  ac_check_lib_save_LIBS=$LIBS
7205LIBS="-ldld  $LIBS"
7206cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7207/* end confdefs.h.  */
7208
7209/* Override any GCC internal prototype to avoid an error.
7210   Use char because int might match the return type of a GCC
7211   builtin and then its argument prototype would still apply.  */
7212char shl_load ();
7213int
7214main (void)
7215{
7216return shl_load ();
7217  ;
7218  return 0;
7219}
7220_ACEOF
7221if ac_fn_c_try_link "$LINENO"
7222then :
7223  ac_cv_lib_dld_shl_load=yes
7224else $as_nop
7225  ac_cv_lib_dld_shl_load=no
7226fi
7227rm -f core conftest.err conftest.$ac_objext conftest.beam \
7228    conftest$ac_exeext conftest.$ac_ext
7229LIBS=$ac_check_lib_save_LIBS
7230fi
7231{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
7232printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
7233if test "x$ac_cv_lib_dld_shl_load" = xyes
7234then :
7235  tcl_ok=yes
7236else $as_nop
7237  tcl_ok=no
7238fi
7239
7240	    if test "$tcl_ok" = yes
7241then :
7242
7243		SHLIB_CFLAGS="+z"
7244		SHLIB_LD="ld -b"
7245		LDFLAGS="$LDFLAGS -Wl,-E"
7246		CC_SEARCH_FLAGS='"-Wl,+s,+b,${LIB_RUNTIME_DIR}:."'
7247		LD_SEARCH_FLAGS='+s +b "${LIB_RUNTIME_DIR}:."'
7248		LD_LIBRARY_PATH_VAR="SHLIB_PATH"
7249
7250fi
7251	    if test "$GCC" = yes
7252then :
7253
7254		SHLIB_LD='${CC} -shared'
7255		LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
7256
7257else $as_nop
7258
7259		CFLAGS="$CFLAGS -z"
7260
7261fi
7262
7263	    # Check to enable 64-bit flags for compiler/linker
7264	    if test "$do64bit" = "yes"
7265then :
7266
7267		if test "$GCC" = yes
7268then :
7269
7270		    case `${CC} -dumpmachine` in
7271			hppa64*)
7272			    # 64-bit gcc in use.  Fix flags for GNU ld.
7273			    do64bit_ok=yes
7274			    SHLIB_LD='${CC} -shared'
7275			    if test $doRpath = yes
7276then :
7277
7278				CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
7279fi
7280			    LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
7281			    ;;
7282			*)
7283			    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5
7284printf "%s\n" "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;}
7285			    ;;
7286		    esac
7287
7288else $as_nop
7289
7290		    do64bit_ok=yes
7291		    CFLAGS="$CFLAGS +DD64"
7292		    LDFLAGS_ARCH="+DD64"
7293
7294fi
7295
7296fi ;;
7297	HP-UX-*.08.*|HP-UX-*.09.*|HP-UX-*.10.*)
7298	    SHLIB_SUFFIX=".sl"
7299	    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
7300printf %s "checking for shl_load in -ldld... " >&6; }
7301if test ${ac_cv_lib_dld_shl_load+y}
7302then :
7303  printf %s "(cached) " >&6
7304else $as_nop
7305  ac_check_lib_save_LIBS=$LIBS
7306LIBS="-ldld  $LIBS"
7307cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7308/* end confdefs.h.  */
7309
7310/* Override any GCC internal prototype to avoid an error.
7311   Use char because int might match the return type of a GCC
7312   builtin and then its argument prototype would still apply.  */
7313char shl_load ();
7314int
7315main (void)
7316{
7317return shl_load ();
7318  ;
7319  return 0;
7320}
7321_ACEOF
7322if ac_fn_c_try_link "$LINENO"
7323then :
7324  ac_cv_lib_dld_shl_load=yes
7325else $as_nop
7326  ac_cv_lib_dld_shl_load=no
7327fi
7328rm -f core conftest.err conftest.$ac_objext conftest.beam \
7329    conftest$ac_exeext conftest.$ac_ext
7330LIBS=$ac_check_lib_save_LIBS
7331fi
7332{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
7333printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
7334if test "x$ac_cv_lib_dld_shl_load" = xyes
7335then :
7336  tcl_ok=yes
7337else $as_nop
7338  tcl_ok=no
7339fi
7340
7341	    if test "$tcl_ok" = yes
7342then :
7343
7344		SHLIB_CFLAGS="+z"
7345		SHLIB_LD="ld -b"
7346		SHLIB_LD_LIBS=""
7347		LDFLAGS="$LDFLAGS -Wl,-E"
7348		CC_SEARCH_FLAGS='"-Wl,+s,+b,${LIB_RUNTIME_DIR}:."'
7349		LD_SEARCH_FLAGS='+s +b "${LIB_RUNTIME_DIR}:."'
7350		LD_LIBRARY_PATH_VAR="SHLIB_PATH"
7351
7352fi ;;
7353	IRIX-5.*)
7354	    SHLIB_CFLAGS=""
7355	    SHLIB_LD="ld -shared -rdata_shared"
7356	    SHLIB_SUFFIX=".so"
7357	    case " $LIBOBJS " in
7358  *" mkstemp.$ac_objext "* ) ;;
7359  *) LIBOBJS="$LIBOBJS mkstemp.$ac_objext"
7360 ;;
7361esac
7362
7363	    if test $doRpath = yes
7364then :
7365
7366		CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
7367		LD_SEARCH_FLAGS='-rpath "${LIB_RUNTIME_DIR}"'
7368fi
7369	    ;;
7370	IRIX-6.*)
7371	    SHLIB_CFLAGS=""
7372	    SHLIB_LD="ld -n32 -shared -rdata_shared"
7373	    SHLIB_SUFFIX=".so"
7374	    if test $doRpath = yes
7375then :
7376
7377		CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
7378		LD_SEARCH_FLAGS='-rpath "${LIB_RUNTIME_DIR}"'
7379fi
7380	    if test "$GCC" = yes
7381then :
7382
7383		CFLAGS="$CFLAGS -mabi=n32"
7384		LDFLAGS="$LDFLAGS -mabi=n32"
7385
7386else $as_nop
7387
7388		case $system in
7389		    IRIX-6.3)
7390			# Use to build 6.2 compatible binaries on 6.3.
7391			CFLAGS="$CFLAGS -n32 -D_OLD_TERMIOS"
7392			;;
7393		    *)
7394			CFLAGS="$CFLAGS -n32"
7395			;;
7396		esac
7397		LDFLAGS="$LDFLAGS -n32"
7398
7399fi
7400	    ;;
7401	IRIX64-6.*)
7402	    SHLIB_CFLAGS=""
7403	    SHLIB_LD="ld -n32 -shared -rdata_shared"
7404	    SHLIB_SUFFIX=".so"
7405	    if test $doRpath = yes
7406then :
7407
7408		CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
7409		LD_SEARCH_FLAGS='-rpath "${LIB_RUNTIME_DIR}"'
7410fi
7411
7412	    # Check to enable 64-bit flags for compiler/linker
7413
7414	    if test "$do64bit" = yes
7415then :
7416
7417	        if test "$GCC" = yes
7418then :
7419
7420	            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported by gcc" >&5
7421printf "%s\n" "$as_me: WARNING: 64bit mode not supported by gcc" >&2;}
7422
7423else $as_nop
7424
7425	            do64bit_ok=yes
7426	            SHLIB_LD="ld -64 -shared -rdata_shared"
7427	            CFLAGS="$CFLAGS -64"
7428	            LDFLAGS_ARCH="-64"
7429
7430fi
7431
7432fi
7433	    ;;
7434	Linux*|GNU*|NetBSD-Debian|DragonFly-*|FreeBSD-*)
7435	    SHLIB_CFLAGS="-fPIC"
7436	    SHLIB_SUFFIX=".so"
7437
7438	    # TEA specific:
7439	    CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer"
7440
7441	    # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS
7442	    SHLIB_LD='${CC} ${CFLAGS} ${LDFLAGS_DEFAULT} -shared'
7443	    LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
7444
7445	    case $system in
7446	    DragonFly-*|FreeBSD-*)
7447		if test "${TCL_THREADS}" = "1"
7448then :
7449
7450		    # The -pthread needs to go in the LDFLAGS, not LIBS
7451		    LIBS=`echo $LIBS | sed s/-pthread//`
7452		    CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7453		    LDFLAGS="$LDFLAGS $PTHREAD_LIBS"
7454fi
7455	    ;;
7456            esac
7457
7458	    if test $doRpath = yes
7459then :
7460
7461		CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
7462fi
7463	    LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
7464	    if test "`uname -m`" = "alpha"
7465then :
7466  CFLAGS="$CFLAGS -mieee"
7467fi
7468	    if test $do64bit = yes
7469then :
7470
7471		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -m64 flag" >&5
7472printf %s "checking if compiler accepts -m64 flag... " >&6; }
7473if test ${tcl_cv_cc_m64+y}
7474then :
7475  printf %s "(cached) " >&6
7476else $as_nop
7477
7478		    hold_cflags=$CFLAGS
7479		    CFLAGS="$CFLAGS -m64"
7480		    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7481/* end confdefs.h.  */
7482
7483int
7484main (void)
7485{
7486
7487  ;
7488  return 0;
7489}
7490_ACEOF
7491if ac_fn_c_try_link "$LINENO"
7492then :
7493  tcl_cv_cc_m64=yes
7494else $as_nop
7495  tcl_cv_cc_m64=no
7496fi
7497rm -f core conftest.err conftest.$ac_objext conftest.beam \
7498    conftest$ac_exeext conftest.$ac_ext
7499		    CFLAGS=$hold_cflags
7500fi
7501{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_m64" >&5
7502printf "%s\n" "$tcl_cv_cc_m64" >&6; }
7503		if test $tcl_cv_cc_m64 = yes
7504then :
7505
7506		    CFLAGS="$CFLAGS -m64"
7507		    do64bit_ok=yes
7508
7509fi
7510
7511fi
7512
7513	    # The combo of gcc + glibc has a bug related to inlining of
7514	    # functions like strtod(). The -fno-builtin flag should address
7515	    # this problem but it does not work. The -fno-inline flag is kind
7516	    # of overkill but it works. Disable inlining only when one of the
7517	    # files in compat/*.c is being linked in.
7518
7519	    if test x"${USE_COMPAT}" != x
7520then :
7521  CFLAGS="$CFLAGS -fno-inline"
7522fi
7523	    ;;
7524	Lynx*)
7525	    SHLIB_CFLAGS="-fPIC"
7526	    SHLIB_SUFFIX=".so"
7527	    CFLAGS_OPTIMIZE=-02
7528	    SHLIB_LD='${CC} -shared'
7529	    LD_FLAGS="-Wl,--export-dynamic"
7530	    if test $doRpath = yes
7531then :
7532
7533		CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
7534		LD_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
7535fi
7536	    ;;
7537	OpenBSD-*)
7538	    arch=`arch -s`
7539	    case "$arch" in
7540	    alpha|sparc64)
7541		SHLIB_CFLAGS="-fPIC"
7542		;;
7543	    *)
7544		SHLIB_CFLAGS="-fpic"
7545		;;
7546	    esac
7547	    SHLIB_LD='${CC} ${SHLIB_CFLAGS} -shared'
7548	    SHLIB_SUFFIX=".so"
7549	    if test $doRpath = yes
7550then :
7551
7552		CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
7553fi
7554	    LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
7555	    SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so${SHLIB_VERSION}'
7556	    LDFLAGS="$LDFLAGS -Wl,-export-dynamic"
7557	    CFLAGS_OPTIMIZE="-O2"
7558	    # On OpenBSD:	Compile with -pthread
7559	    #		Don't link with -lpthread
7560	    LIBS=`echo $LIBS | sed s/-lpthread//`
7561	    CFLAGS="$CFLAGS -pthread"
7562	    # OpenBSD doesn't do version numbers with dots.
7563	    UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
7564	    TCL_LIB_VERSIONS_OK=nodots
7565	    ;;
7566	NetBSD-*)
7567	    # NetBSD has ELF and can use 'cc -shared' to build shared libs
7568	    SHLIB_CFLAGS="-fPIC"
7569	    SHLIB_LD='${CC} ${SHLIB_CFLAGS} -shared'
7570	    SHLIB_SUFFIX=".so"
7571	    LDFLAGS="$LDFLAGS -export-dynamic"
7572	    if test $doRpath = yes
7573then :
7574
7575		CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
7576fi
7577	    LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
7578	    # The -pthread needs to go in the CFLAGS, not LIBS
7579	    LIBS=`echo $LIBS | sed s/-pthread//`
7580	    CFLAGS="$CFLAGS -pthread"
7581	    LDFLAGS="$LDFLAGS -pthread"
7582	    ;;
7583	Darwin-*)
7584	    CFLAGS_OPTIMIZE="-Os"
7585	    SHLIB_CFLAGS="-fno-common"
7586	    # To avoid discrepancies between what headers configure sees during
7587	    # preprocessing tests and compiling tests, move any -isysroot and
7588	    # -mmacosx-version-min flags from CFLAGS to CPPFLAGS:
7589	    CPPFLAGS="${CPPFLAGS} `echo " ${CFLAGS}" | \
7590		awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \
7591		if ($i~/^(isysroot|mmacosx-version-min)/) print "-"$i}'`"
7592	    CFLAGS="`echo " ${CFLAGS}" | \
7593		awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \
7594		if (!($i~/^(isysroot|mmacosx-version-min)/)) print "-"$i}'`"
7595	    if test $do64bit = yes
7596then :
7597
7598		case `arch` in
7599		    ppc)
7600			{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -arch ppc64 flag" >&5
7601printf %s "checking if compiler accepts -arch ppc64 flag... " >&6; }
7602if test ${tcl_cv_cc_arch_ppc64+y}
7603then :
7604  printf %s "(cached) " >&6
7605else $as_nop
7606
7607			    hold_cflags=$CFLAGS
7608			    CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5"
7609			    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7610/* end confdefs.h.  */
7611
7612int
7613main (void)
7614{
7615
7616  ;
7617  return 0;
7618}
7619_ACEOF
7620if ac_fn_c_try_link "$LINENO"
7621then :
7622  tcl_cv_cc_arch_ppc64=yes
7623else $as_nop
7624  tcl_cv_cc_arch_ppc64=no
7625fi
7626rm -f core conftest.err conftest.$ac_objext conftest.beam \
7627    conftest$ac_exeext conftest.$ac_ext
7628			    CFLAGS=$hold_cflags
7629fi
7630{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_arch_ppc64" >&5
7631printf "%s\n" "$tcl_cv_cc_arch_ppc64" >&6; }
7632			if test $tcl_cv_cc_arch_ppc64 = yes
7633then :
7634
7635			    CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5"
7636			    do64bit_ok=yes
7637
7638fi;;
7639		    i386)
7640			{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -arch x86_64 flag" >&5
7641printf %s "checking if compiler accepts -arch x86_64 flag... " >&6; }
7642if test ${tcl_cv_cc_arch_x86_64+y}
7643then :
7644  printf %s "(cached) " >&6
7645else $as_nop
7646
7647			    hold_cflags=$CFLAGS
7648			    CFLAGS="$CFLAGS -arch x86_64"
7649			    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7650/* end confdefs.h.  */
7651
7652int
7653main (void)
7654{
7655
7656  ;
7657  return 0;
7658}
7659_ACEOF
7660if ac_fn_c_try_link "$LINENO"
7661then :
7662  tcl_cv_cc_arch_x86_64=yes
7663else $as_nop
7664  tcl_cv_cc_arch_x86_64=no
7665fi
7666rm -f core conftest.err conftest.$ac_objext conftest.beam \
7667    conftest$ac_exeext conftest.$ac_ext
7668			    CFLAGS=$hold_cflags
7669fi
7670{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_arch_x86_64" >&5
7671printf "%s\n" "$tcl_cv_cc_arch_x86_64" >&6; }
7672			if test $tcl_cv_cc_arch_x86_64 = yes
7673then :
7674
7675			    CFLAGS="$CFLAGS -arch x86_64"
7676			    do64bit_ok=yes
7677
7678fi;;
7679		    *)
7680			{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&5
7681printf "%s\n" "$as_me: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&2;};;
7682		esac
7683
7684else $as_nop
7685
7686		# Check for combined 32-bit and 64-bit fat build
7687		if echo "$CFLAGS " |grep -E -q -- '-arch (ppc64|x86_64) ' \
7688		    && echo "$CFLAGS " |grep -E -q -- '-arch (ppc|i386) '
7689then :
7690
7691		    fat_32_64=yes
7692fi
7693
7694fi
7695	    # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS
7696	    SHLIB_LD='${CC} -dynamiclib ${CFLAGS} ${LDFLAGS_DEFAULT}'
7697	    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ld accepts -single_module flag" >&5
7698printf %s "checking if ld accepts -single_module flag... " >&6; }
7699if test ${tcl_cv_ld_single_module+y}
7700then :
7701  printf %s "(cached) " >&6
7702else $as_nop
7703
7704		hold_ldflags=$LDFLAGS
7705		LDFLAGS="$LDFLAGS -dynamiclib -Wl,-single_module"
7706		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7707/* end confdefs.h.  */
7708
7709int
7710main (void)
7711{
7712int i;
7713  ;
7714  return 0;
7715}
7716_ACEOF
7717if ac_fn_c_try_link "$LINENO"
7718then :
7719  tcl_cv_ld_single_module=yes
7720else $as_nop
7721  tcl_cv_ld_single_module=no
7722fi
7723rm -f core conftest.err conftest.$ac_objext conftest.beam \
7724    conftest$ac_exeext conftest.$ac_ext
7725		LDFLAGS=$hold_ldflags
7726fi
7727{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_single_module" >&5
7728printf "%s\n" "$tcl_cv_ld_single_module" >&6; }
7729	    if test $tcl_cv_ld_single_module = yes
7730then :
7731
7732		SHLIB_LD="${SHLIB_LD} -Wl,-single_module"
7733
7734fi
7735	    # TEA specific: link shlib with current and compatibility version flags
7736	    vers=`echo ${PACKAGE_VERSION} | sed -e 's/^\([0-9]\{1,5\}\)\(\(\.[0-9]\{1,3\}\)\{0,2\}\).*$/\1\2/p' -e d`
7737	    SHLIB_LD="${SHLIB_LD} -current_version ${vers:-0} -compatibility_version ${vers:-0}"
7738	    SHLIB_SUFFIX=".dylib"
7739	    LDFLAGS="$LDFLAGS -headerpad_max_install_names"
7740	    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ld accepts -search_paths_first flag" >&5
7741printf %s "checking if ld accepts -search_paths_first flag... " >&6; }
7742if test ${tcl_cv_ld_search_paths_first+y}
7743then :
7744  printf %s "(cached) " >&6
7745else $as_nop
7746
7747		hold_ldflags=$LDFLAGS
7748		LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
7749		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7750/* end confdefs.h.  */
7751
7752int
7753main (void)
7754{
7755int i;
7756  ;
7757  return 0;
7758}
7759_ACEOF
7760if ac_fn_c_try_link "$LINENO"
7761then :
7762  tcl_cv_ld_search_paths_first=yes
7763else $as_nop
7764  tcl_cv_ld_search_paths_first=no
7765fi
7766rm -f core conftest.err conftest.$ac_objext conftest.beam \
7767    conftest$ac_exeext conftest.$ac_ext
7768		LDFLAGS=$hold_ldflags
7769fi
7770{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_search_paths_first" >&5
7771printf "%s\n" "$tcl_cv_ld_search_paths_first" >&6; }
7772	    if test $tcl_cv_ld_search_paths_first = yes
7773then :
7774
7775		LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
7776
7777fi
7778	    if test "$tcl_cv_cc_visibility_hidden" != yes
7779then :
7780
7781
7782printf "%s\n" "#define MODULE_SCOPE __private_extern__" >>confdefs.h
7783
7784		tcl_cv_cc_visibility_hidden=yes
7785
7786fi
7787	    CC_SEARCH_FLAGS=""
7788	    LD_SEARCH_FLAGS=""
7789	    LD_LIBRARY_PATH_VAR="DYLD_LIBRARY_PATH"
7790	    # TEA specific: for combined 32 & 64 bit fat builds of Tk
7791	    # extensions, verify that 64-bit build is possible.
7792	    if test "$fat_32_64" = yes && test -n "${TK_BIN_DIR}"
7793then :
7794
7795		if test "${TEA_WINDOWINGSYSTEM}" = x11
7796then :
7797
7798		    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit X11" >&5
7799printf %s "checking for 64-bit X11... " >&6; }
7800if test ${tcl_cv_lib_x11_64+y}
7801then :
7802  printf %s "(cached) " >&6
7803else $as_nop
7804
7805			for v in CFLAGS CPPFLAGS LDFLAGS; do
7806			    eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"'
7807			done
7808			CPPFLAGS="$CPPFLAGS -I/usr/X11R6/include"
7809			LDFLAGS="$LDFLAGS -L/usr/X11R6/lib -lX11"
7810			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7811/* end confdefs.h.  */
7812#include <X11/Xlib.h>
7813int
7814main (void)
7815{
7816XrmInitialize();
7817  ;
7818  return 0;
7819}
7820_ACEOF
7821if ac_fn_c_try_link "$LINENO"
7822then :
7823  tcl_cv_lib_x11_64=yes
7824else $as_nop
7825  tcl_cv_lib_x11_64=no
7826fi
7827rm -f core conftest.err conftest.$ac_objext conftest.beam \
7828    conftest$ac_exeext conftest.$ac_ext
7829			for v in CFLAGS CPPFLAGS LDFLAGS; do
7830			    eval $v'="$hold_'$v'"'
7831			done
7832fi
7833{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_lib_x11_64" >&5
7834printf "%s\n" "$tcl_cv_lib_x11_64" >&6; }
7835
7836fi
7837		if test "${TEA_WINDOWINGSYSTEM}" = aqua
7838then :
7839
7840		    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit Tk" >&5
7841printf %s "checking for 64-bit Tk... " >&6; }
7842if test ${tcl_cv_lib_tk_64+y}
7843then :
7844  printf %s "(cached) " >&6
7845else $as_nop
7846
7847			for v in CFLAGS CPPFLAGS LDFLAGS; do
7848			    eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"'
7849			done
7850			CPPFLAGS="$CPPFLAGS -DUSE_TCL_STUBS=1 -DUSE_TK_STUBS=1 ${TCL_INCLUDES} ${TK_INCLUDES}"
7851			LDFLAGS="$LDFLAGS ${TCL_STUB_LIB_SPEC} ${TK_STUB_LIB_SPEC}"
7852			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7853/* end confdefs.h.  */
7854#include <tk.h>
7855int
7856main (void)
7857{
7858Tk_InitStubs(NULL, "", 0);
7859  ;
7860  return 0;
7861}
7862_ACEOF
7863if ac_fn_c_try_link "$LINENO"
7864then :
7865  tcl_cv_lib_tk_64=yes
7866else $as_nop
7867  tcl_cv_lib_tk_64=no
7868fi
7869rm -f core conftest.err conftest.$ac_objext conftest.beam \
7870    conftest$ac_exeext conftest.$ac_ext
7871			for v in CFLAGS CPPFLAGS LDFLAGS; do
7872			    eval $v'="$hold_'$v'"'
7873			done
7874fi
7875{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_lib_tk_64" >&5
7876printf "%s\n" "$tcl_cv_lib_tk_64" >&6; }
7877
7878fi
7879		# remove 64-bit arch flags from CFLAGS et al. if configuration
7880		# does not support 64-bit.
7881		if test "$tcl_cv_lib_tk_64" = no -o "$tcl_cv_lib_x11_64" = no
7882then :
7883
7884		    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Removing 64-bit architectures from compiler & linker flags" >&5
7885printf "%s\n" "$as_me: Removing 64-bit architectures from compiler & linker flags" >&6;}
7886		    for v in CFLAGS CPPFLAGS LDFLAGS; do
7887			eval $v'="`echo "$'$v' "|sed -e "s/-arch ppc64 / /g" -e "s/-arch x86_64 / /g"`"'
7888		    done
7889fi
7890
7891fi
7892	    ;;
7893	OS/390-*)
7894	    CFLAGS_OPTIMIZE=""		# Optimizer is buggy
7895
7896printf "%s\n" "#define _OE_SOCKETS 1" >>confdefs.h
7897
7898	    ;;
7899	OSF1-V*)
7900	    # Digital OSF/1
7901	    SHLIB_CFLAGS=""
7902	    if test "$SHARED_BUILD" = 1
7903then :
7904
7905	        SHLIB_LD='ld -shared -expect_unresolved "*"'
7906
7907else $as_nop
7908
7909	        SHLIB_LD='ld -non_shared -expect_unresolved "*"'
7910
7911fi
7912	    SHLIB_SUFFIX=".so"
7913	    if test $doRpath = yes
7914then :
7915
7916		CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
7917		LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
7918fi
7919	    if test "$GCC" = yes
7920then :
7921  CFLAGS="$CFLAGS -mieee"
7922else $as_nop
7923
7924		CFLAGS="$CFLAGS -DHAVE_TZSET -std1 -ieee"
7925fi
7926	    # see pthread_intro(3) for pthread support on osf1, k.furukawa
7927	    CFLAGS="$CFLAGS -DHAVE_PTHREAD_ATTR_SETSTACKSIZE"
7928	    CFLAGS="$CFLAGS -DTCL_THREAD_STACK_MIN=PTHREAD_STACK_MIN*64"
7929	    LIBS=`echo $LIBS | sed s/-lpthreads//`
7930	    if test "$GCC" = yes
7931then :
7932
7933		LIBS="$LIBS -lpthread -lmach -lexc"
7934
7935else $as_nop
7936
7937		CFLAGS="$CFLAGS -pthread"
7938		LDFLAGS="$LDFLAGS -pthread"
7939
7940fi
7941	    ;;
7942	QNX-6*)
7943	    # QNX RTP
7944	    # This may work for all QNX, but it was only reported for v6.
7945	    SHLIB_CFLAGS="-fPIC"
7946	    SHLIB_LD="ld -Bshareable -x"
7947	    SHLIB_LD_LIBS=""
7948	    SHLIB_SUFFIX=".so"
7949	    CC_SEARCH_FLAGS=""
7950	    LD_SEARCH_FLAGS=""
7951	    ;;
7952	SCO_SV-3.2*)
7953	    if test "$GCC" = yes
7954then :
7955
7956		SHLIB_CFLAGS="-fPIC -melf"
7957		LDFLAGS="$LDFLAGS -melf -Wl,-Bexport"
7958
7959else $as_nop
7960
7961		SHLIB_CFLAGS="-Kpic -belf"
7962		LDFLAGS="$LDFLAGS -belf -Wl,-Bexport"
7963
7964fi
7965	    SHLIB_LD="ld -G"
7966	    SHLIB_LD_LIBS=""
7967	    SHLIB_SUFFIX=".so"
7968	    CC_SEARCH_FLAGS=""
7969	    LD_SEARCH_FLAGS=""
7970	    ;;
7971	SunOS-5.[0-6])
7972	    # Careful to not let 5.10+ fall into this case
7973
7974	    # Note: If _REENTRANT isn't defined, then Solaris
7975	    # won't define thread-safe library routines.
7976
7977
7978printf "%s\n" "#define _REENTRANT 1" >>confdefs.h
7979
7980
7981printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
7982
7983
7984	    SHLIB_CFLAGS="-KPIC"
7985	    SHLIB_SUFFIX=".so"
7986	    if test "$GCC" = yes
7987then :
7988
7989		SHLIB_LD='${CC} -shared'
7990		CC_SEARCH_FLAGS='"-Wl,-R,${LIB_RUNTIME_DIR}"'
7991		LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
7992
7993else $as_nop
7994
7995		SHLIB_LD="/usr/ccs/bin/ld -G -z text"
7996		CC_SEARCH_FLAGS='-R "${LIB_RUNTIME_DIR}"'
7997		LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
7998
7999fi
8000	    ;;
8001	SunOS-5*)
8002	    # Note: If _REENTRANT isn't defined, then Solaris
8003	    # won't define thread-safe library routines.
8004
8005
8006printf "%s\n" "#define _REENTRANT 1" >>confdefs.h
8007
8008
8009printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
8010
8011
8012	    SHLIB_CFLAGS="-KPIC"
8013
8014	    # Check to enable 64-bit flags for compiler/linker
8015	    if test "$do64bit" = yes
8016then :
8017
8018		arch=`isainfo`
8019		if test "$arch" = "sparcv9 sparc"
8020then :
8021
8022		    if test "$GCC" = yes
8023then :
8024
8025			if test "`${CC} -dumpversion | awk -F. '{print $1}'`" -lt 3
8026then :
8027
8028			    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&5
8029printf "%s\n" "$as_me: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&2;}
8030
8031else $as_nop
8032
8033			    do64bit_ok=yes
8034			    CFLAGS="$CFLAGS -m64 -mcpu=v9"
8035			    LDFLAGS="$LDFLAGS -m64 -mcpu=v9"
8036			    SHLIB_CFLAGS="-fPIC"
8037
8038fi
8039
8040else $as_nop
8041
8042			do64bit_ok=yes
8043			if test "$do64bitVIS" = yes
8044then :
8045
8046			    CFLAGS="$CFLAGS -xarch=v9a"
8047			    LDFLAGS_ARCH="-xarch=v9a"
8048
8049else $as_nop
8050
8051			    CFLAGS="$CFLAGS -xarch=v9"
8052			    LDFLAGS_ARCH="-xarch=v9"
8053
8054fi
8055			# Solaris 64 uses this as well
8056			#LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH_64"
8057
8058fi
8059
8060else $as_nop
8061  if test "$arch" = "amd64 i386"
8062then :
8063
8064		    if test "$GCC" = yes
8065then :
8066
8067			case $system in
8068			    SunOS-5.1[1-9]*|SunOS-5.[2-9][0-9]*)
8069				do64bit_ok=yes
8070				CFLAGS="$CFLAGS -m64"
8071				LDFLAGS="$LDFLAGS -m64";;
8072			    *)
8073				{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5
8074printf "%s\n" "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;};;
8075			esac
8076
8077else $as_nop
8078
8079			do64bit_ok=yes
8080			case $system in
8081			    SunOS-5.1[1-9]*|SunOS-5.[2-9][0-9]*)
8082				CFLAGS="$CFLAGS -m64"
8083				LDFLAGS="$LDFLAGS -m64";;
8084			    *)
8085				CFLAGS="$CFLAGS -xarch=amd64"
8086				LDFLAGS="$LDFLAGS -xarch=amd64";;
8087			esac
8088
8089fi
8090
8091else $as_nop
8092  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported for $arch" >&5
8093printf "%s\n" "$as_me: WARNING: 64bit mode not supported for $arch" >&2;}
8094fi
8095fi
8096
8097fi
8098
8099	    SHLIB_SUFFIX=".so"
8100	    if test "$GCC" = yes
8101then :
8102
8103		SHLIB_LD='${CC} -shared'
8104		CC_SEARCH_FLAGS='"-Wl,-R,${LIB_RUNTIME_DIR}"'
8105		LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
8106		if test "$do64bit_ok" = yes
8107then :
8108
8109		    if test "$arch" = "sparcv9 sparc"
8110then :
8111
8112			# We need to specify -static-libgcc or we need to
8113			# add the path to the sparv9 libgcc.
8114			# JH: static-libgcc is necessary for core Tcl, but may
8115			# not be necessary for extensions.
8116			SHLIB_LD="$SHLIB_LD -m64 -mcpu=v9 -static-libgcc"
8117			# for finding sparcv9 libgcc, get the regular libgcc
8118			# path, remove so name and append 'sparcv9'
8119			#v9gcclibdir="`gcc -print-file-name=libgcc_s.so` | ..."
8120			#CC_SEARCH_FLAGS="${CC_SEARCH_FLAGS},-R,$v9gcclibdir"
8121
8122else $as_nop
8123  if test "$arch" = "amd64 i386"
8124then :
8125
8126			# JH: static-libgcc is necessary for core Tcl, but may
8127			# not be necessary for extensions.
8128			SHLIB_LD="$SHLIB_LD -m64 -static-libgcc"
8129
8130fi
8131fi
8132
8133fi
8134
8135else $as_nop
8136
8137		case $system in
8138		    SunOS-5.[1-9][0-9]*)
8139			# TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS
8140			SHLIB_LD='${CC} -G -z text ${LDFLAGS_DEFAULT}';;
8141		    *)
8142			SHLIB_LD='/usr/ccs/bin/ld -G -z text';;
8143		esac
8144		CC_SEARCH_FLAGS='"-Wl,-R,${LIB_RUNTIME_DIR}"'
8145		LD_SEARCH_FLAGS='-R "${LIB_RUNTIME_DIR}"'
8146
8147fi
8148	    ;;
8149	UNIX_SV* | UnixWare-5*)
8150	    SHLIB_CFLAGS="-KPIC"
8151	    SHLIB_LD='${CC} -G'
8152	    SHLIB_LD_LIBS=""
8153	    SHLIB_SUFFIX=".so"
8154	    # Some UNIX_SV* systems (unixware 1.1.2 for example) have linkers
8155	    # that don't grok the -Bexport option.  Test that it does.
8156	    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld accepts -Bexport flag" >&5
8157printf %s "checking for ld accepts -Bexport flag... " >&6; }
8158if test ${tcl_cv_ld_Bexport+y}
8159then :
8160  printf %s "(cached) " >&6
8161else $as_nop
8162
8163		hold_ldflags=$LDFLAGS
8164		LDFLAGS="$LDFLAGS -Wl,-Bexport"
8165		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8166/* end confdefs.h.  */
8167
8168int
8169main (void)
8170{
8171int i;
8172  ;
8173  return 0;
8174}
8175_ACEOF
8176if ac_fn_c_try_link "$LINENO"
8177then :
8178  tcl_cv_ld_Bexport=yes
8179else $as_nop
8180  tcl_cv_ld_Bexport=no
8181fi
8182rm -f core conftest.err conftest.$ac_objext conftest.beam \
8183    conftest$ac_exeext conftest.$ac_ext
8184	        LDFLAGS=$hold_ldflags
8185fi
8186{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_Bexport" >&5
8187printf "%s\n" "$tcl_cv_ld_Bexport" >&6; }
8188	    if test $tcl_cv_ld_Bexport = yes
8189then :
8190
8191		LDFLAGS="$LDFLAGS -Wl,-Bexport"
8192
8193fi
8194	    CC_SEARCH_FLAGS=""
8195	    LD_SEARCH_FLAGS=""
8196	    ;;
8197    esac
8198
8199    if test "$do64bit" = yes -a "$do64bit_ok" = no
8200then :
8201
8202	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 64bit support being disabled -- don't know magic for this platform" >&5
8203printf "%s\n" "$as_me: WARNING: 64bit support being disabled -- don't know magic for this platform" >&2;}
8204
8205fi
8206
8207
8208
8209    # Add in the arch flags late to ensure it wasn't removed.
8210    # Not necessary in TEA, but this is aligned with core
8211    LDFLAGS="$LDFLAGS $LDFLAGS_ARCH"
8212
8213    # If we're running gcc, then change the C flags for compiling shared
8214    # libraries to the right flags for gcc, instead of those for the
8215    # standard manufacturer compiler.
8216
8217    if test "$GCC" = yes
8218then :
8219
8220	case $system in
8221	    AIX-*) ;;
8222	    BSD/OS*) ;;
8223	    CYGWIN_*|MINGW32_*|MINGW64_*|MSYS_*) ;;
8224	    IRIX*) ;;
8225	    NetBSD-*|DragonFly-*|FreeBSD-*|OpenBSD-*) ;;
8226	    Darwin-*) ;;
8227	    SCO_SV-3.2*) ;;
8228	    windows) ;;
8229	    *) SHLIB_CFLAGS="-fPIC" ;;
8230	esac
8231fi
8232
8233    if test "$tcl_cv_cc_visibility_hidden" != yes
8234then :
8235
8236
8237printf "%s\n" "#define MODULE_SCOPE extern" >>confdefs.h
8238
8239
8240fi
8241
8242    if test "$SHARED_LIB_SUFFIX" = ""
8243then :
8244
8245    # TEA specific: use PACKAGE_VERSION instead of VERSION
8246    SHARED_LIB_SUFFIX='${PACKAGE_VERSION}${SHLIB_SUFFIX}'
8247fi
8248    if test "$UNSHARED_LIB_SUFFIX" = ""
8249then :
8250
8251    # TEA specific: use PACKAGE_VERSION instead of VERSION
8252    UNSHARED_LIB_SUFFIX='${PACKAGE_VERSION}.a'
8253fi
8254
8255    if test "${GCC}" = "yes" -a ${SHLIB_SUFFIX} = ".dll"; then
8256	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SEH support in compiler" >&5
8257printf %s "checking for SEH support in compiler... " >&6; }
8258if test ${tcl_cv_seh+y}
8259then :
8260  printf %s "(cached) " >&6
8261else $as_nop
8262  if test "$cross_compiling" = yes
8263then :
8264  tcl_cv_seh=no
8265else $as_nop
8266  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8267/* end confdefs.h.  */
8268
8269#define WIN32_LEAN_AND_MEAN
8270#include <windows.h>
8271#undef WIN32_LEAN_AND_MEAN
8272
8273	    int main(int argc, char** argv) {
8274		int a, b = 0;
8275		__try {
8276		    a = 666 / b;
8277		}
8278		__except (EXCEPTION_EXECUTE_HANDLER) {
8279		    return 0;
8280		}
8281		return 1;
8282	    }
8283
8284_ACEOF
8285if ac_fn_c_try_run "$LINENO"
8286then :
8287  tcl_cv_seh=yes
8288else $as_nop
8289  tcl_cv_seh=no
8290fi
8291rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8292  conftest.$ac_objext conftest.beam conftest.$ac_ext
8293fi
8294
8295
8296fi
8297{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_seh" >&5
8298printf "%s\n" "$tcl_cv_seh" >&6; }
8299	if test "$tcl_cv_seh" = "no" ; then
8300
8301printf "%s\n" "#define HAVE_NO_SEH 1" >>confdefs.h
8302
8303	fi
8304
8305	#
8306	# Check to see if the excpt.h include file provided contains the
8307	# definition for EXCEPTION_DISPOSITION; if not, which is the case
8308	# with Cygwin's version as of 2002-04-10, define it to be int,
8309	# sufficient for getting the current code to work.
8310	#
8311	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EXCEPTION_DISPOSITION support in include files" >&5
8312printf %s "checking for EXCEPTION_DISPOSITION support in include files... " >&6; }
8313if test ${tcl_cv_eh_disposition+y}
8314then :
8315  printf %s "(cached) " >&6
8316else $as_nop
8317  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8318/* end confdefs.h.  */
8319
8320#	    define WIN32_LEAN_AND_MEAN
8321#	    include <windows.h>
8322#	    undef WIN32_LEAN_AND_MEAN
8323
8324int
8325main (void)
8326{
8327
8328		EXCEPTION_DISPOSITION x;
8329
8330  ;
8331  return 0;
8332}
8333_ACEOF
8334if ac_fn_c_try_compile "$LINENO"
8335then :
8336  tcl_cv_eh_disposition=yes
8337else $as_nop
8338  tcl_cv_eh_disposition=no
8339fi
8340rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8341
8342fi
8343{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_eh_disposition" >&5
8344printf "%s\n" "$tcl_cv_eh_disposition" >&6; }
8345	if test "$tcl_cv_eh_disposition" = "no" ; then
8346
8347printf "%s\n" "#define EXCEPTION_DISPOSITION int" >>confdefs.h
8348
8349	fi
8350
8351	# Check to see if winnt.h defines CHAR, SHORT, and LONG
8352	# even if VOID has already been #defined. The win32api
8353	# used by mingw and cygwin is known to do this.
8354
8355	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for winnt.h that ignores VOID define" >&5
8356printf %s "checking for winnt.h that ignores VOID define... " >&6; }
8357if test ${tcl_cv_winnt_ignore_void+y}
8358then :
8359  printf %s "(cached) " >&6
8360else $as_nop
8361  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8362/* end confdefs.h.  */
8363
8364#define VOID void
8365#define WIN32_LEAN_AND_MEAN
8366#include <windows.h>
8367#undef WIN32_LEAN_AND_MEAN
8368
8369int
8370main (void)
8371{
8372
8373		CHAR c;
8374		SHORT s;
8375		LONG l;
8376
8377  ;
8378  return 0;
8379}
8380_ACEOF
8381if ac_fn_c_try_compile "$LINENO"
8382then :
8383  tcl_cv_winnt_ignore_void=yes
8384else $as_nop
8385  tcl_cv_winnt_ignore_void=no
8386fi
8387rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8388
8389fi
8390{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_winnt_ignore_void" >&5
8391printf "%s\n" "$tcl_cv_winnt_ignore_void" >&6; }
8392	if test "$tcl_cv_winnt_ignore_void" = "yes" ; then
8393
8394printf "%s\n" "#define HAVE_WINNT_IGNORE_VOID 1" >>confdefs.h
8395
8396	fi
8397    fi
8398
8399	# See if the compiler supports casting to a union type.
8400	# This is used to stop gcc from printing a compiler
8401	# warning when initializing a union member.
8402
8403	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cast to union support" >&5
8404printf %s "checking for cast to union support... " >&6; }
8405if test ${tcl_cv_cast_to_union+y}
8406then :
8407  printf %s "(cached) " >&6
8408else $as_nop
8409  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8410/* end confdefs.h.  */
8411
8412int
8413main (void)
8414{
8415
8416		  union foo { int i; double d; };
8417		  union foo f = (union foo) (int) 0;
8418
8419  ;
8420  return 0;
8421}
8422_ACEOF
8423if ac_fn_c_try_compile "$LINENO"
8424then :
8425  tcl_cv_cast_to_union=yes
8426else $as_nop
8427  tcl_cv_cast_to_union=no
8428fi
8429rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8430
8431fi
8432{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cast_to_union" >&5
8433printf "%s\n" "$tcl_cv_cast_to_union" >&6; }
8434	if test "$tcl_cv_cast_to_union" = "yes"; then
8435
8436printf "%s\n" "#define HAVE_CAST_TO_UNION 1" >>confdefs.h
8437
8438	fi
8439
8440	ac_fn_c_check_header_compile "$LINENO" "stdbool.h" "ac_cv_header_stdbool_h" "$ac_includes_default"
8441if test "x$ac_cv_header_stdbool_h" = xyes
8442then :
8443
8444printf "%s\n" "#define HAVE_STDBOOL_H 1" >>confdefs.h
8445
8446fi
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463    # These must be called after we do the basic CFLAGS checks and
8464    # verify any possible 64-bit or similar switches are necessary
8465
8466    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for required early compiler flags" >&5
8467printf %s "checking for required early compiler flags... " >&6; }
8468    tcl_flags=""
8469
8470    if test ${tcl_cv_flag__isoc99_source+y}
8471then :
8472  printf %s "(cached) " >&6
8473else $as_nop
8474  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8475/* end confdefs.h.  */
8476#include <stdlib.h>
8477int
8478main (void)
8479{
8480char *p = (char *)strtoll; char *q = (char *)strtoull;
8481  ;
8482  return 0;
8483}
8484_ACEOF
8485if ac_fn_c_try_compile "$LINENO"
8486then :
8487  tcl_cv_flag__isoc99_source=no
8488else $as_nop
8489  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8490/* end confdefs.h.  */
8491#define _ISOC99_SOURCE 1
8492#include <stdlib.h>
8493int
8494main (void)
8495{
8496char *p = (char *)strtoll; char *q = (char *)strtoull;
8497  ;
8498  return 0;
8499}
8500_ACEOF
8501if ac_fn_c_try_compile "$LINENO"
8502then :
8503  tcl_cv_flag__isoc99_source=yes
8504else $as_nop
8505  tcl_cv_flag__isoc99_source=no
8506fi
8507rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8508fi
8509rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8510fi
8511
8512    if test "x${tcl_cv_flag__isoc99_source}" = "xyes" ; then
8513
8514printf "%s\n" "#define _ISOC99_SOURCE 1" >>confdefs.h
8515
8516	tcl_flags="$tcl_flags _ISOC99_SOURCE"
8517    fi
8518
8519
8520    if test ${tcl_cv_flag__largefile64_source+y}
8521then :
8522  printf %s "(cached) " >&6
8523else $as_nop
8524  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8525/* end confdefs.h.  */
8526#include <sys/stat.h>
8527int
8528main (void)
8529{
8530struct stat64 buf; int i = stat64("/", &buf);
8531  ;
8532  return 0;
8533}
8534_ACEOF
8535if ac_fn_c_try_compile "$LINENO"
8536then :
8537  tcl_cv_flag__largefile64_source=no
8538else $as_nop
8539  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8540/* end confdefs.h.  */
8541#define _LARGEFILE64_SOURCE 1
8542#include <sys/stat.h>
8543int
8544main (void)
8545{
8546struct stat64 buf; int i = stat64("/", &buf);
8547  ;
8548  return 0;
8549}
8550_ACEOF
8551if ac_fn_c_try_compile "$LINENO"
8552then :
8553  tcl_cv_flag__largefile64_source=yes
8554else $as_nop
8555  tcl_cv_flag__largefile64_source=no
8556fi
8557rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8558fi
8559rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8560fi
8561
8562    if test "x${tcl_cv_flag__largefile64_source}" = "xyes" ; then
8563
8564printf "%s\n" "#define _LARGEFILE64_SOURCE 1" >>confdefs.h
8565
8566	tcl_flags="$tcl_flags _LARGEFILE64_SOURCE"
8567    fi
8568
8569
8570    if test ${tcl_cv_flag__largefile_source64+y}
8571then :
8572  printf %s "(cached) " >&6
8573else $as_nop
8574  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8575/* end confdefs.h.  */
8576#include <sys/stat.h>
8577int
8578main (void)
8579{
8580char *p = (char *)open64;
8581  ;
8582  return 0;
8583}
8584_ACEOF
8585if ac_fn_c_try_compile "$LINENO"
8586then :
8587  tcl_cv_flag__largefile_source64=no
8588else $as_nop
8589  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8590/* end confdefs.h.  */
8591#define _LARGEFILE_SOURCE64 1
8592#include <sys/stat.h>
8593int
8594main (void)
8595{
8596char *p = (char *)open64;
8597  ;
8598  return 0;
8599}
8600_ACEOF
8601if ac_fn_c_try_compile "$LINENO"
8602then :
8603  tcl_cv_flag__largefile_source64=yes
8604else $as_nop
8605  tcl_cv_flag__largefile_source64=no
8606fi
8607rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8608fi
8609rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8610fi
8611
8612    if test "x${tcl_cv_flag__largefile_source64}" = "xyes" ; then
8613
8614printf "%s\n" "#define _LARGEFILE_SOURCE64 1" >>confdefs.h
8615
8616	tcl_flags="$tcl_flags _LARGEFILE_SOURCE64"
8617    fi
8618
8619    if test "x${tcl_flags}" = "x" ; then
8620	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
8621printf "%s\n" "none" >&6; }
8622    else
8623	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${tcl_flags}" >&5
8624printf "%s\n" "${tcl_flags}" >&6; }
8625    fi
8626
8627
8628    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit integer type" >&5
8629printf %s "checking for 64-bit integer type... " >&6; }
8630    if test ${tcl_cv_type_64bit+y}
8631then :
8632  printf %s "(cached) " >&6
8633else $as_nop
8634
8635	tcl_cv_type_64bit=none
8636	# See if the compiler knows natively about __int64
8637	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8638/* end confdefs.h.  */
8639
8640int
8641main (void)
8642{
8643__int64 value = (__int64) 0;
8644  ;
8645  return 0;
8646}
8647_ACEOF
8648if ac_fn_c_try_compile "$LINENO"
8649then :
8650  tcl_type_64bit=__int64
8651else $as_nop
8652  tcl_type_64bit="long long"
8653fi
8654rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8655	# See if we could use long anyway  Note that we substitute in the
8656	# type that is our current guess for a 64-bit type inside this check
8657	# program, so it should be modified only carefully...
8658        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8659/* end confdefs.h.  */
8660
8661int
8662main (void)
8663{
8664switch (0) {
8665            case 1: case (sizeof(${tcl_type_64bit})==sizeof(long)): ;
8666        }
8667  ;
8668  return 0;
8669}
8670_ACEOF
8671if ac_fn_c_try_compile "$LINENO"
8672then :
8673  tcl_cv_type_64bit=${tcl_type_64bit}
8674fi
8675rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8676fi
8677
8678    if test "${tcl_cv_type_64bit}" = none ; then
8679
8680printf "%s\n" "#define TCL_WIDE_INT_IS_LONG 1" >>confdefs.h
8681
8682	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8683printf "%s\n" "yes" >&6; }
8684    elif test "${tcl_cv_type_64bit}" = "__int64" \
8685		-a "${TEA_PLATFORM}" = "windows" ; then
8686	# TEA specific: We actually want to use the default tcl.h checks in
8687	# this case to handle both TCL_WIDE_INT_TYPE and TCL_LL_MODIFIER*
8688	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using Tcl header defaults" >&5
8689printf "%s\n" "using Tcl header defaults" >&6; }
8690    else
8691
8692printf "%s\n" "#define TCL_WIDE_INT_TYPE ${tcl_cv_type_64bit}" >>confdefs.h
8693
8694	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${tcl_cv_type_64bit}" >&5
8695printf "%s\n" "${tcl_cv_type_64bit}" >&6; }
8696
8697	# Now check for auxiliary declarations
8698	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct dirent64" >&5
8699printf %s "checking for struct dirent64... " >&6; }
8700if test ${tcl_cv_struct_dirent64+y}
8701then :
8702  printf %s "(cached) " >&6
8703else $as_nop
8704
8705	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8706/* end confdefs.h.  */
8707#include <sys/types.h>
8708#include <dirent.h>
8709int
8710main (void)
8711{
8712struct dirent64 p;
8713  ;
8714  return 0;
8715}
8716_ACEOF
8717if ac_fn_c_try_compile "$LINENO"
8718then :
8719  tcl_cv_struct_dirent64=yes
8720else $as_nop
8721  tcl_cv_struct_dirent64=no
8722fi
8723rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8724fi
8725{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_struct_dirent64" >&5
8726printf "%s\n" "$tcl_cv_struct_dirent64" >&6; }
8727	if test "x${tcl_cv_struct_dirent64}" = "xyes" ; then
8728
8729printf "%s\n" "#define HAVE_STRUCT_DIRENT64 1" >>confdefs.h
8730
8731	fi
8732
8733	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for DIR64" >&5
8734printf %s "checking for DIR64... " >&6; }
8735if test ${tcl_cv_DIR64+y}
8736then :
8737  printf %s "(cached) " >&6
8738else $as_nop
8739
8740	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8741/* end confdefs.h.  */
8742#include <sys/types.h>
8743#include <dirent.h>
8744int
8745main (void)
8746{
8747struct dirent64 *p; DIR64 d = opendir64(".");
8748            p = readdir64(d); rewinddir64(d); closedir64(d);
8749  ;
8750  return 0;
8751}
8752_ACEOF
8753if ac_fn_c_try_compile "$LINENO"
8754then :
8755  tcl_cv_DIR64=yes
8756else $as_nop
8757  tcl_cv_DIR64=no
8758fi
8759rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8760fi
8761{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_DIR64" >&5
8762printf "%s\n" "$tcl_cv_DIR64" >&6; }
8763	if test "x${tcl_cv_DIR64}" = "xyes" ; then
8764
8765printf "%s\n" "#define HAVE_DIR64 1" >>confdefs.h
8766
8767	fi
8768
8769	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct stat64" >&5
8770printf %s "checking for struct stat64... " >&6; }
8771if test ${tcl_cv_struct_stat64+y}
8772then :
8773  printf %s "(cached) " >&6
8774else $as_nop
8775
8776	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8777/* end confdefs.h.  */
8778#include <sys/stat.h>
8779int
8780main (void)
8781{
8782struct stat64 p;
8783
8784  ;
8785  return 0;
8786}
8787_ACEOF
8788if ac_fn_c_try_compile "$LINENO"
8789then :
8790  tcl_cv_struct_stat64=yes
8791else $as_nop
8792  tcl_cv_struct_stat64=no
8793fi
8794rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8795fi
8796{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_struct_stat64" >&5
8797printf "%s\n" "$tcl_cv_struct_stat64" >&6; }
8798	if test "x${tcl_cv_struct_stat64}" = "xyes" ; then
8799
8800printf "%s\n" "#define HAVE_STRUCT_STAT64 1" >>confdefs.h
8801
8802	fi
8803
8804	ac_fn_c_check_func "$LINENO" "open64" "ac_cv_func_open64"
8805if test "x$ac_cv_func_open64" = xyes
8806then :
8807  printf "%s\n" "#define HAVE_OPEN64 1" >>confdefs.h
8808
8809fi
8810ac_fn_c_check_func "$LINENO" "lseek64" "ac_cv_func_lseek64"
8811if test "x$ac_cv_func_lseek64" = xyes
8812then :
8813  printf "%s\n" "#define HAVE_LSEEK64 1" >>confdefs.h
8814
8815fi
8816
8817	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for off64_t" >&5
8818printf %s "checking for off64_t... " >&6; }
8819	if test ${tcl_cv_type_off64_t+y}
8820then :
8821  printf %s "(cached) " >&6
8822else $as_nop
8823
8824	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8825/* end confdefs.h.  */
8826#include <sys/types.h>
8827int
8828main (void)
8829{
8830off64_t offset;
8831
8832  ;
8833  return 0;
8834}
8835_ACEOF
8836if ac_fn_c_try_compile "$LINENO"
8837then :
8838  tcl_cv_type_off64_t=yes
8839else $as_nop
8840  tcl_cv_type_off64_t=no
8841fi
8842rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8843fi
8844
8845			if test "x${tcl_cv_type_off64_t}" = "xyes" && \
8846	        test "x${ac_cv_func_lseek64}" = "xyes" && \
8847	        test "x${ac_cv_func_open64}" = "xyes" ; then
8848
8849printf "%s\n" "#define HAVE_TYPE_OFF64_T 1" >>confdefs.h
8850
8851	    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8852printf "%s\n" "yes" >&6; }
8853	else
8854	    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8855printf "%s\n" "no" >&6; }
8856	fi
8857    fi
8858
8859
8860
8861#--------------------------------------------------------------------
8862# Set the default compiler switches based on the --enable-symbols option.
8863#--------------------------------------------------------------------
8864
8865
8866
8867    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for build with symbols" >&5
8868printf %s "checking for build with symbols... " >&6; }
8869    # Check whether --enable-symbols was given.
8870if test ${enable_symbols+y}
8871then :
8872  enableval=$enable_symbols; tcl_ok=$enableval
8873else $as_nop
8874  tcl_ok=no
8875fi
8876
8877    if test "$tcl_ok" = "no"; then
8878	CFLAGS_DEFAULT="${CFLAGS_OPTIMIZE} -DNDEBUG"
8879	LDFLAGS_DEFAULT="${LDFLAGS_OPTIMIZE}"
8880	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8881printf "%s\n" "no" >&6; }
8882
8883printf "%s\n" "#define TCL_CFG_OPTIMIZED 1" >>confdefs.h
8884
8885    else
8886	CFLAGS_DEFAULT="${CFLAGS_DEBUG}"
8887	LDFLAGS_DEFAULT="${LDFLAGS_DEBUG}"
8888	if test "$tcl_ok" = "yes"; then
8889	    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes (standard debugging)" >&5
8890printf "%s\n" "yes (standard debugging)" >&6; }
8891	fi
8892    fi
8893
8894
8895
8896    if test "$tcl_ok" = "mem" -o "$tcl_ok" = "all"; then
8897
8898printf "%s\n" "#define TCL_MEM_DEBUG 1" >>confdefs.h
8899
8900    fi
8901
8902    if test "$tcl_ok" != "yes" -a "$tcl_ok" != "no"; then
8903	if test "$tcl_ok" = "all"; then
8904	    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: enabled symbols mem debugging" >&5
8905printf "%s\n" "enabled symbols mem debugging" >&6; }
8906	else
8907	    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: enabled $tcl_ok debugging" >&5
8908printf "%s\n" "enabled $tcl_ok debugging" >&6; }
8909	fi
8910    fi
8911
8912
8913#--------------------------------------------------------------------
8914# This macro generates a line to use when building a library.  It
8915# depends on values set by the TEA_ENABLE_SHARED, TEA_ENABLE_SYMBOLS,
8916# and TEA_LOAD_TCLCONFIG macros above.
8917#--------------------------------------------------------------------
8918
8919
8920{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
8921printf %s "checking for grep that handles long lines and -e... " >&6; }
8922if test ${ac_cv_path_GREP+y}
8923then :
8924  printf %s "(cached) " >&6
8925else $as_nop
8926  if test -z "$GREP"; then
8927  ac_path_GREP_found=false
8928  # Loop through the user's path and test for each of PROGNAME-LIST
8929  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8930for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8931do
8932  IFS=$as_save_IFS
8933  case $as_dir in #(((
8934    '') as_dir=./ ;;
8935    */) ;;
8936    *) as_dir=$as_dir/ ;;
8937  esac
8938    for ac_prog in grep ggrep
8939   do
8940    for ac_exec_ext in '' $ac_executable_extensions; do
8941      ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
8942      as_fn_executable_p "$ac_path_GREP" || continue
8943# Check for GNU ac_path_GREP and select it if it is found.
8944  # Check for GNU $ac_path_GREP
8945case `"$ac_path_GREP" --version 2>&1` in
8946*GNU*)
8947  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
8948*)
8949  ac_count=0
8950  printf %s 0123456789 >"conftest.in"
8951  while :
8952  do
8953    cat "conftest.in" "conftest.in" >"conftest.tmp"
8954    mv "conftest.tmp" "conftest.in"
8955    cp "conftest.in" "conftest.nl"
8956    printf "%s\n" 'GREP' >> "conftest.nl"
8957    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
8958    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8959    as_fn_arith $ac_count + 1 && ac_count=$as_val
8960    if test $ac_count -gt ${ac_path_GREP_max-0}; then
8961      # Best one so far, save it but keep looking for a better one
8962      ac_cv_path_GREP="$ac_path_GREP"
8963      ac_path_GREP_max=$ac_count
8964    fi
8965    # 10*(2^10) chars as input seems more than enough
8966    test $ac_count -gt 10 && break
8967  done
8968  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8969esac
8970
8971      $ac_path_GREP_found && break 3
8972    done
8973  done
8974  done
8975IFS=$as_save_IFS
8976  if test -z "$ac_cv_path_GREP"; then
8977    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8978  fi
8979else
8980  ac_cv_path_GREP=$GREP
8981fi
8982
8983fi
8984{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
8985printf "%s\n" "$ac_cv_path_GREP" >&6; }
8986 GREP="$ac_cv_path_GREP"
8987
8988
8989{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
8990printf %s "checking for egrep... " >&6; }
8991if test ${ac_cv_path_EGREP+y}
8992then :
8993  printf %s "(cached) " >&6
8994else $as_nop
8995  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
8996   then ac_cv_path_EGREP="$GREP -E"
8997   else
8998     if test -z "$EGREP"; then
8999  ac_path_EGREP_found=false
9000  # Loop through the user's path and test for each of PROGNAME-LIST
9001  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9002for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9003do
9004  IFS=$as_save_IFS
9005  case $as_dir in #(((
9006    '') as_dir=./ ;;
9007    */) ;;
9008    *) as_dir=$as_dir/ ;;
9009  esac
9010    for ac_prog in egrep
9011   do
9012    for ac_exec_ext in '' $ac_executable_extensions; do
9013      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
9014      as_fn_executable_p "$ac_path_EGREP" || continue
9015# Check for GNU ac_path_EGREP and select it if it is found.
9016  # Check for GNU $ac_path_EGREP
9017case `"$ac_path_EGREP" --version 2>&1` in
9018*GNU*)
9019  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
9020*)
9021  ac_count=0
9022  printf %s 0123456789 >"conftest.in"
9023  while :
9024  do
9025    cat "conftest.in" "conftest.in" >"conftest.tmp"
9026    mv "conftest.tmp" "conftest.in"
9027    cp "conftest.in" "conftest.nl"
9028    printf "%s\n" 'EGREP' >> "conftest.nl"
9029    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
9030    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9031    as_fn_arith $ac_count + 1 && ac_count=$as_val
9032    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
9033      # Best one so far, save it but keep looking for a better one
9034      ac_cv_path_EGREP="$ac_path_EGREP"
9035      ac_path_EGREP_max=$ac_count
9036    fi
9037    # 10*(2^10) chars as input seems more than enough
9038    test $ac_count -gt 10 && break
9039  done
9040  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9041esac
9042
9043      $ac_path_EGREP_found && break 3
9044    done
9045  done
9046  done
9047IFS=$as_save_IFS
9048  if test -z "$ac_cv_path_EGREP"; then
9049    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
9050  fi
9051else
9052  ac_cv_path_EGREP=$EGREP
9053fi
9054
9055   fi
9056fi
9057{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
9058printf "%s\n" "$ac_cv_path_EGREP" >&6; }
9059 EGREP="$ac_cv_path_EGREP"
9060
9061
9062
9063    if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes"; then
9064	MAKE_STATIC_LIB="\${STLIB_LD} -out:\$@ \$(PKG_OBJECTS)"
9065	MAKE_SHARED_LIB="\${SHLIB_LD} \${LDFLAGS} \${LDFLAGS_DEFAULT} -out:\$@ \$(PKG_OBJECTS) \${SHLIB_LD_LIBS}"
9066	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9067/* end confdefs.h.  */
9068
9069#if defined(_MSC_VER) && _MSC_VER >= 1400
9070print("manifest needed")
9071#endif
9072
9073_ACEOF
9074if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9075  $EGREP "manifest needed" >/dev/null 2>&1
9076then :
9077
9078	# Could do a CHECK_PROG for mt, but should always be with MSVC8+
9079	VC_MANIFEST_EMBED_DLL="if test -f \$@.manifest ; then mt.exe -nologo -manifest \$@.manifest -outputresource:\$@\;2 ; fi"
9080	VC_MANIFEST_EMBED_EXE="if test -f \$@.manifest ; then mt.exe -nologo -manifest \$@.manifest -outputresource:\$@\;1 ; fi"
9081	MAKE_SHARED_LIB="${MAKE_SHARED_LIB} ; ${VC_MANIFEST_EMBED_DLL}"
9082
9083    CLEANFILES="$CLEANFILES *.manifest"
9084
9085
9086fi
9087rm -rf conftest*
9088
9089	MAKE_STUB_LIB="\${STLIB_LD} -nodefaultlib -out:\$@ \$(PKG_STUB_OBJECTS)"
9090    else
9091	MAKE_STATIC_LIB="\${STLIB_LD} \$@ \$(PKG_OBJECTS)"
9092	MAKE_SHARED_LIB="\${SHLIB_LD} \${LDFLAGS} \${LDFLAGS_DEFAULT} -o \$@ \$(PKG_OBJECTS) \${SHLIB_LD_LIBS}"
9093	MAKE_STUB_LIB="\${STLIB_LD} \$@ \$(PKG_STUB_OBJECTS)"
9094    fi
9095
9096    if test "${SHARED_BUILD}" = "1" ; then
9097	MAKE_LIB="${MAKE_SHARED_LIB} "
9098    else
9099	MAKE_LIB="${MAKE_STATIC_LIB} "
9100    fi
9101
9102    #--------------------------------------------------------------------
9103    # Shared libraries and static libraries have different names.
9104    # Use the double eval to make sure any variables in the suffix is
9105    # substituted. (@@@ Might not be necessary anymore)
9106    #--------------------------------------------------------------------
9107
9108    PACKAGE_LIB_PREFIX8="${PACKAGE_LIB_PREFIX}"
9109    PACKAGE_LIB_PREFIX9="${PACKAGE_LIB_PREFIX}tcl9"
9110    if test "${TCL_MAJOR_VERSION}" -gt 8 ; then
9111	PACKAGE_LIB_PREFIX="${PACKAGE_LIB_PREFIX9}"
9112    else
9113	PACKAGE_LIB_PREFIX="${PACKAGE_LIB_PREFIX8}"
9114    fi
9115    if test "${TEA_PLATFORM}" = "windows" ; then
9116	if test "${SHARED_BUILD}" = "1" ; then
9117	    # We force the unresolved linking of symbols that are really in
9118	    # the private libraries of Tcl and Tk.
9119	    if test x"${TK_BIN_DIR}" != x ; then
9120		SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${TK_BIN_DIR}/${TK_STUB_LIB_FILE}`\""
9121	    fi
9122	    SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}`\""
9123	    if test "$GCC" = "yes"; then
9124		SHLIB_LD_LIBS="${SHLIB_LD_LIBS} -static-libgcc"
9125	    fi
9126	    eval eval "PKG_LIB_FILE8=${PACKAGE_LIB_PREFIX8}${PACKAGE_NAME}${SHARED_LIB_SUFFIX}"
9127	    eval eval "PKG_LIB_FILE9=${PACKAGE_LIB_PREFIX9}${PACKAGE_NAME}${SHARED_LIB_SUFFIX}"
9128	    eval eval "PKG_LIB_FILE=${PACKAGE_LIB_PREFIX}${PACKAGE_NAME}${SHARED_LIB_SUFFIX}"
9129	else
9130	    if test "$GCC" = "yes"; then
9131		PACKAGE_LIB_PREFIX=lib${PACKAGE_LIB_PREFIX}
9132	    fi
9133	    eval eval "PKG_LIB_FILE8=${PACKAGE_LIB_PREFIX8}${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}"
9134	    eval eval "PKG_LIB_FILE9=${PACKAGE_LIB_PREFIX9}${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}"
9135	    eval eval "PKG_LIB_FILE=${PACKAGE_LIB_PREFIX}${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}"
9136	fi
9137	# Some packages build their own stubs libraries
9138	eval eval "PKG_STUB_LIB_FILE=${PACKAGE_LIB_PREFIX}${PACKAGE_NAME}stub${UNSHARED_LIB_SUFFIX}"
9139	if test "$GCC" = "yes"; then
9140	    PKG_STUB_LIB_FILE=lib${PKG_STUB_LIB_FILE}
9141	fi
9142	# These aren't needed on Windows (either MSVC or gcc)
9143	RANLIB=:
9144	RANLIB_STUB=:
9145    else
9146	RANLIB_STUB="${RANLIB}"
9147	if test "${SHARED_BUILD}" = "1" ; then
9148	    SHLIB_LD_LIBS="${SHLIB_LD_LIBS} ${TCL_STUB_LIB_SPEC}"
9149	    if test x"${TK_BIN_DIR}" != x ; then
9150		SHLIB_LD_LIBS="${SHLIB_LD_LIBS} ${TK_STUB_LIB_SPEC}"
9151	    fi
9152	    eval eval "PKG_LIB_FILE8=lib${PACKAGE_LIB_PREFIX8}${PACKAGE_NAME}${SHARED_LIB_SUFFIX}"
9153	    eval eval "PKG_LIB_FILE9=lib${PACKAGE_LIB_PREFIX9}${PACKAGE_NAME}${SHARED_LIB_SUFFIX}"
9154	    eval eval "PKG_LIB_FILE=lib${PACKAGE_LIB_PREFIX}${PACKAGE_NAME}${SHARED_LIB_SUFFIX}"
9155	    RANLIB=:
9156	else
9157	    eval eval "PKG_LIB_FILE=lib${PACKAGE_LIB_PREFIX8}${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}"
9158	    eval eval "PKG_LIB_FILE=lib${PACKAGE_LIB_PREFIX9}${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}"
9159	    eval eval "PKG_LIB_FILE=lib${PACKAGE_LIB_PREFIX}${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}"
9160	fi
9161	# Some packages build their own stubs libraries
9162	eval eval "PKG_STUB_LIB_FILE=lib${PACKAGE_LIB_PREFIX8}${PACKAGE_NAME}stub${UNSHARED_LIB_SUFFIX}"
9163    fi
9164
9165    # These are escaped so that only CFLAGS is picked up at configure time.
9166    # The other values will be substituted at make time.
9167    CFLAGS="${CFLAGS} \${CFLAGS_DEFAULT} \${CFLAGS_WARNING}"
9168    if test "${SHARED_BUILD}" = "1" ; then
9169	CFLAGS="${CFLAGS} \${SHLIB_CFLAGS}"
9170    fi
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181#--------------------------------------------------------------------
9182# Determine the name of the tclsh and/or wish executables in the
9183# Tcl and Tk build directories or the location they were installed
9184# into. These paths are used to support running test cases only,
9185# the Makefile should not be making use of these paths to generate
9186# a pkgIndex.tcl file or anything else at extension build time.
9187#--------------------------------------------------------------------
9188
9189
9190    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tclsh" >&5
9191printf %s "checking for tclsh... " >&6; }
9192    if test -f "${TCL_BIN_DIR}/Makefile" ; then
9193        # tclConfig.sh is in Tcl build directory
9194        if test "${TEA_PLATFORM}" = "windows"; then
9195          if test -f "${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${EXEEXT}" ; then
9196            TCLSH_PROG="${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${EXEEXT}"
9197          elif test -f "${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}s${EXEEXT}" ; then
9198            TCLSH_PROG="${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}s${EXEEXT}"
9199          elif test -f "${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}t${EXEEXT}" ; then
9200            TCLSH_PROG="${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}t${EXEEXT}"
9201          elif test -f "${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}st${EXEEXT}" ; then
9202            TCLSH_PROG="${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}st${EXEEXT}"
9203          fi
9204        else
9205            TCLSH_PROG="${TCL_BIN_DIR}/tclsh"
9206        fi
9207    else
9208        # tclConfig.sh is in install location
9209        if test "${TEA_PLATFORM}" = "windows"; then
9210            TCLSH_PROG="tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${EXEEXT}"
9211        else
9212            TCLSH_PROG="tclsh${TCL_MAJOR_VERSION}.${TCL_MINOR_VERSION}"
9213        fi
9214        list="`ls -d ${TCL_BIN_DIR}/../bin 2>/dev/null` \
9215              `ls -d ${TCL_BIN_DIR}/..     2>/dev/null` \
9216              `ls -d ${TCL_PREFIX}/bin     2>/dev/null`"
9217        for i in $list ; do
9218            if test -f "$i/${TCLSH_PROG}" ; then
9219                REAL_TCL_BIN_DIR="`cd "$i"; pwd`/"
9220                break
9221            fi
9222        done
9223        TCLSH_PROG="${REAL_TCL_BIN_DIR}${TCLSH_PROG}"
9224    fi
9225    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${TCLSH_PROG}" >&5
9226printf "%s\n" "${TCLSH_PROG}" >&6; }
9227
9228
9229#TEA_PROG_WISH
9230
9231#--------------------------------------------------------------------
9232# Finally, substitute all of the various values into the Makefile.
9233# You may alternatively have a special pkgIndex.tcl.in or other files
9234# which require substituting the AC variables in. Include these here.
9235#--------------------------------------------------------------------
9236
9237# Develop a fully qualified path for the package source dir
9238eval tdbc_SRC_DIR="${srcdir}"
9239tdbc_SRC_DIR=`cd "${tdbc_SRC_DIR}"; $CYGPATH $(pwd)`
9240
9241
9242# Develop -I specifications for the build and installed directories where
9243# tdbc.h may be found.
9244
9245    eval "tdbc_INCLUDE_SPEC=\"-I`${CYGPATH} ${includedir}`\""
9246
9247
9248    eval "tdbc_BUILD_INCLUDE_SPEC=\"-I`${CYGPATH} ${tdbc_SRC_DIR}/generic`\""
9249
9250
9251# Develop a fully qualified path for where .tcl files for the tdbc package
9252# appear at run time.
9253eval tdbc_LIB_DIR="${libdir}/${PACKAGE_NAME}${PACKAGE_VERSION}"
9254if test -d "${tdbc_LIB_DIR}" ; then
9255    tdbc_LIB_DIR=`cd "${tdbc_LIB_DIR}"; $CYGPATH $(pwd)`
9256fi
9257
9258
9259# Make the export configuration for the TDBC package
9260
9261
9262    #--------------------------------------------------------------------
9263    # These are for tdbcConfig.sh
9264    #--------------------------------------------------------------------
9265
9266    # pkglibdir must be a fully qualified path and (not ${exec_prefix}/lib)
9267    eval pkglibdir="${libdir}/tdbc${PACKAGE_VERSION}"
9268    if test "${TCL_LIB_VERSIONS_OK}" = "ok"; then
9269	eval tdbc_LIB_FLAG="-ltdbc${PACKAGE_VERSION}"
9270	eval tdbc_STUB_LIB_FLAG="-ltdbcstub${PACKAGE_VERSION}"
9271    else
9272	eval tdbc_LIB_FLAG="-ltdbc`echo ${PACKAGE_VERSION} | tr -d .`"
9273	eval tdbc_STUB_LIB_FLAG="-ltdbcstub`echo ${PACKAGE_VERSION} | tr -d .`"
9274    fi
9275    tdbc_BUILD_LIB_SPEC="-L`$CYGPATH $(pwd)` ${tdbc_LIB_FLAG}"
9276    tdbc_LIB_SPEC="-L`$CYGPATH ${pkglibdir}` ${tdbc_LIB_FLAG}"
9277    tdbc_BUILD_STUB_LIB_SPEC="-L`$CYGPATH $(pwd)` ${tdbc_STUB_LIB_FLAG}"
9278    tdbc_STUB_LIB_SPEC="-L`$CYGPATH ${pkglibdir}` ${tdbc_STUB_LIB_FLAG}"
9279    tdbc_BUILD_STUB_LIB_PATH="`$CYGPATH $(pwd)`/${PKG_STUB_LIB_FILE}"
9280    tdbc_STUB_LIB_PATH="`$CYGPATH ${pkglibdir}`/${PKG_STUB_LIB_FILE}"
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294# Set up to produce Makefile from Makefile.in and tdbcConfig.sh from
9295# tdbcConfig.sh.in.
9296
9297ac_config_files="$ac_config_files Makefile pkgIndex.tcl tdbcConfig.sh"
9298
9299cat >confcache <<\_ACEOF
9300# This file is a shell script that caches the results of configure
9301# tests run on this system so they can be shared between configure
9302# scripts and configure runs, see configure's option --config-cache.
9303# It is not useful on other systems.  If it contains results you don't
9304# want to keep, you may remove or edit it.
9305#
9306# config.status only pays attention to the cache file if you give it
9307# the --recheck option to rerun configure.
9308#
9309# `ac_cv_env_foo' variables (set or unset) will be overridden when
9310# loading this file, other *unset* `ac_cv_foo' will be assigned the
9311# following values.
9312
9313_ACEOF
9314
9315# The following way of writing the cache mishandles newlines in values,
9316# but we know of no workaround that is simple, portable, and efficient.
9317# So, we kill variables containing newlines.
9318# Ultrix sh set writes to stderr and can't be redirected directly,
9319# and sets the high bit in the cache file unless we assign to the vars.
9320(
9321  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9322    eval ac_val=\$$ac_var
9323    case $ac_val in #(
9324    *${as_nl}*)
9325      case $ac_var in #(
9326      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9327printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9328      esac
9329      case $ac_var in #(
9330      _ | IFS | as_nl) ;; #(
9331      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
9332      *) { eval $ac_var=; unset $ac_var;} ;;
9333      esac ;;
9334    esac
9335  done
9336
9337  (set) 2>&1 |
9338    case $as_nl`(ac_space=' '; set) 2>&1` in #(
9339    *${as_nl}ac_space=\ *)
9340      # `set' does not quote correctly, so add quotes: double-quote
9341      # substitution turns \\\\ into \\, and sed turns \\ into \.
9342      sed -n \
9343	"s/'/'\\\\''/g;
9344	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9345      ;; #(
9346    *)
9347      # `set' quotes correctly as required by POSIX, so do not add quotes.
9348      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9349      ;;
9350    esac |
9351    sort
9352) |
9353  sed '
9354     /^ac_cv_env_/b end
9355     t clear
9356     :clear
9357     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
9358     t end
9359     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9360     :end' >>confcache
9361if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9362  if test -w "$cache_file"; then
9363    if test "x$cache_file" != "x/dev/null"; then
9364      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9365printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
9366      if test ! -f "$cache_file" || test -h "$cache_file"; then
9367	cat confcache >"$cache_file"
9368      else
9369        case $cache_file in #(
9370        */* | ?:*)
9371	  mv -f confcache "$cache_file"$$ &&
9372	  mv -f "$cache_file"$$ "$cache_file" ;; #(
9373        *)
9374	  mv -f confcache "$cache_file" ;;
9375	esac
9376      fi
9377    fi
9378  else
9379    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9380printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
9381  fi
9382fi
9383rm -f confcache
9384
9385test "x$prefix" = xNONE && prefix=$ac_default_prefix
9386# Let make expand exec_prefix.
9387test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9388
9389# Transform confdefs.h into DEFS.
9390# Protect against shell expansion while executing Makefile rules.
9391# Protect against Makefile macro expansion.
9392#
9393# If the first sed substitution is executed (which looks for macros that
9394# take arguments), then branch to the quote section.  Otherwise,
9395# look for a macro that doesn't take arguments.
9396ac_script='
9397:mline
9398/\\$/{
9399 N
9400 s,\\\n,,
9401 b mline
9402}
9403t clear
9404:clear
9405s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\)/-D\1=\2/g
9406t quote
9407s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)/-D\1=\2/g
9408t quote
9409b any
9410:quote
9411s/[	 `~#$^&*(){}\\|;'\''"<>?]/\\&/g
9412s/\[/\\&/g
9413s/\]/\\&/g
9414s/\$/$$/g
9415H
9416:any
9417${
9418	g
9419	s/^\n//
9420	s/\n/ /g
9421	p
9422}
9423'
9424DEFS=`sed -n "$ac_script" confdefs.h`
9425
9426
9427ac_libobjs=
9428ac_ltlibobjs=
9429U=
9430for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9431  # 1. Remove the extension, and $U if already installed.
9432  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
9433  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
9434  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
9435  #    will be set to the directory where LIBOBJS objects are built.
9436  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9437  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
9438done
9439LIBOBJS=$ac_libobjs
9440
9441LTLIBOBJS=$ac_ltlibobjs
9442
9443
9444
9445CFLAGS="${CFLAGS} ${CPPFLAGS}"; CPPFLAGS=""
9446
9447: "${CONFIG_STATUS=./config.status}"
9448ac_write_fail=0
9449ac_clean_files_save=$ac_clean_files
9450ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9451{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
9452printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
9453as_write_fail=0
9454cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
9455#! $SHELL
9456# Generated by $as_me.
9457# Run this file to recreate the current configuration.
9458# Compiler output produced by configure, useful for debugging
9459# configure, is in config.log if it exists.
9460
9461debug=false
9462ac_cs_recheck=false
9463ac_cs_silent=false
9464
9465SHELL=\${CONFIG_SHELL-$SHELL}
9466export SHELL
9467_ASEOF
9468cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
9469## -------------------- ##
9470## M4sh Initialization. ##
9471## -------------------- ##
9472
9473# Be more Bourne compatible
9474DUALCASE=1; export DUALCASE # for MKS sh
9475as_nop=:
9476if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
9477then :
9478  emulate sh
9479  NULLCMD=:
9480  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
9481  # is contrary to our usage.  Disable this feature.
9482  alias -g '${1+"$@"}'='"$@"'
9483  setopt NO_GLOB_SUBST
9484else $as_nop
9485  case `(set -o) 2>/dev/null` in #(
9486  *posix*) :
9487    set -o posix ;; #(
9488  *) :
9489     ;;
9490esac
9491fi
9492
9493
9494
9495# Reset variables that may have inherited troublesome values from
9496# the environment.
9497
9498# IFS needs to be set, to space, tab, and newline, in precisely that order.
9499# (If _AS_PATH_WALK were called with IFS unset, it would have the
9500# side effect of setting IFS to empty, thus disabling word splitting.)
9501# Quoting is to prevent editors from complaining about space-tab.
9502as_nl='
9503'
9504export as_nl
9505IFS=" ""	$as_nl"
9506
9507PS1='$ '
9508PS2='> '
9509PS4='+ '
9510
9511# Ensure predictable behavior from utilities with locale-dependent output.
9512LC_ALL=C
9513export LC_ALL
9514LANGUAGE=C
9515export LANGUAGE
9516
9517# We cannot yet rely on "unset" to work, but we need these variables
9518# to be unset--not just set to an empty or harmless value--now, to
9519# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
9520# also avoids known problems related to "unset" and subshell syntax
9521# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
9522for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
9523do eval test \${$as_var+y} \
9524  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
9525done
9526
9527# Ensure that fds 0, 1, and 2 are open.
9528if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
9529if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
9530if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
9531
9532# The user is always right.
9533if ${PATH_SEPARATOR+false} :; then
9534  PATH_SEPARATOR=:
9535  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9536    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9537      PATH_SEPARATOR=';'
9538  }
9539fi
9540
9541
9542# Find who we are.  Look in the path if we contain no directory separator.
9543as_myself=
9544case $0 in #((
9545  *[\\/]* ) as_myself=$0 ;;
9546  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9547for as_dir in $PATH
9548do
9549  IFS=$as_save_IFS
9550  case $as_dir in #(((
9551    '') as_dir=./ ;;
9552    */) ;;
9553    *) as_dir=$as_dir/ ;;
9554  esac
9555    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
9556  done
9557IFS=$as_save_IFS
9558
9559     ;;
9560esac
9561# We did not find ourselves, most probably we were run as `sh COMMAND'
9562# in which case we are not to be found in the path.
9563if test "x$as_myself" = x; then
9564  as_myself=$0
9565fi
9566if test ! -f "$as_myself"; then
9567  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9568  exit 1
9569fi
9570
9571
9572
9573# as_fn_error STATUS ERROR [LINENO LOG_FD]
9574# ----------------------------------------
9575# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
9576# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
9577# script with STATUS, using 1 if that was 0.
9578as_fn_error ()
9579{
9580  as_status=$1; test $as_status -eq 0 && as_status=1
9581  if test "$4"; then
9582    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9583    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
9584  fi
9585  printf "%s\n" "$as_me: error: $2" >&2
9586  as_fn_exit $as_status
9587} # as_fn_error
9588
9589
9590
9591# as_fn_set_status STATUS
9592# -----------------------
9593# Set $? to STATUS, without forking.
9594as_fn_set_status ()
9595{
9596  return $1
9597} # as_fn_set_status
9598
9599# as_fn_exit STATUS
9600# -----------------
9601# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
9602as_fn_exit ()
9603{
9604  set +e
9605  as_fn_set_status $1
9606  exit $1
9607} # as_fn_exit
9608
9609# as_fn_unset VAR
9610# ---------------
9611# Portably unset VAR.
9612as_fn_unset ()
9613{
9614  { eval $1=; unset $1;}
9615}
9616as_unset=as_fn_unset
9617
9618# as_fn_append VAR VALUE
9619# ----------------------
9620# Append the text in VALUE to the end of the definition contained in VAR. Take
9621# advantage of any shell optimizations that allow amortized linear growth over
9622# repeated appends, instead of the typical quadratic growth present in naive
9623# implementations.
9624if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
9625then :
9626  eval 'as_fn_append ()
9627  {
9628    eval $1+=\$2
9629  }'
9630else $as_nop
9631  as_fn_append ()
9632  {
9633    eval $1=\$$1\$2
9634  }
9635fi # as_fn_append
9636
9637# as_fn_arith ARG...
9638# ------------------
9639# Perform arithmetic evaluation on the ARGs, and store the result in the
9640# global $as_val. Take advantage of shells that can avoid forks. The arguments
9641# must be portable across $(()) and expr.
9642if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
9643then :
9644  eval 'as_fn_arith ()
9645  {
9646    as_val=$(( $* ))
9647  }'
9648else $as_nop
9649  as_fn_arith ()
9650  {
9651    as_val=`expr "$@" || test $? -eq 1`
9652  }
9653fi # as_fn_arith
9654
9655
9656if expr a : '\(a\)' >/dev/null 2>&1 &&
9657   test "X`expr 00001 : '.*\(...\)'`" = X001; then
9658  as_expr=expr
9659else
9660  as_expr=false
9661fi
9662
9663if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9664  as_basename=basename
9665else
9666  as_basename=false
9667fi
9668
9669if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9670  as_dirname=dirname
9671else
9672  as_dirname=false
9673fi
9674
9675as_me=`$as_basename -- "$0" ||
9676$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9677	 X"$0" : 'X\(//\)$' \| \
9678	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9679printf "%s\n" X/"$0" |
9680    sed '/^.*\/\([^/][^/]*\)\/*$/{
9681	    s//\1/
9682	    q
9683	  }
9684	  /^X\/\(\/\/\)$/{
9685	    s//\1/
9686	    q
9687	  }
9688	  /^X\/\(\/\).*/{
9689	    s//\1/
9690	    q
9691	  }
9692	  s/.*/./; q'`
9693
9694# Avoid depending upon Character Ranges.
9695as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9696as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9697as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9698as_cr_digits='0123456789'
9699as_cr_alnum=$as_cr_Letters$as_cr_digits
9700
9701
9702# Determine whether it's possible to make 'echo' print without a newline.
9703# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
9704# for compatibility with existing Makefiles.
9705ECHO_C= ECHO_N= ECHO_T=
9706case `echo -n x` in #(((((
9707-n*)
9708  case `echo 'xy\c'` in
9709  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
9710  xy)  ECHO_C='\c';;
9711  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
9712       ECHO_T='	';;
9713  esac;;
9714*)
9715  ECHO_N='-n';;
9716esac
9717
9718# For backward compatibility with old third-party macros, we provide
9719# the shell variables $as_echo and $as_echo_n.  New code should use
9720# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
9721as_echo='printf %s\n'
9722as_echo_n='printf %s'
9723
9724rm -f conf$$ conf$$.exe conf$$.file
9725if test -d conf$$.dir; then
9726  rm -f conf$$.dir/conf$$.file
9727else
9728  rm -f conf$$.dir
9729  mkdir conf$$.dir 2>/dev/null
9730fi
9731if (echo >conf$$.file) 2>/dev/null; then
9732  if ln -s conf$$.file conf$$ 2>/dev/null; then
9733    as_ln_s='ln -s'
9734    # ... but there are two gotchas:
9735    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9736    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9737    # In both cases, we have to default to `cp -pR'.
9738    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9739      as_ln_s='cp -pR'
9740  elif ln conf$$.file conf$$ 2>/dev/null; then
9741    as_ln_s=ln
9742  else
9743    as_ln_s='cp -pR'
9744  fi
9745else
9746  as_ln_s='cp -pR'
9747fi
9748rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9749rmdir conf$$.dir 2>/dev/null
9750
9751
9752# as_fn_mkdir_p
9753# -------------
9754# Create "$as_dir" as a directory, including parents if necessary.
9755as_fn_mkdir_p ()
9756{
9757
9758  case $as_dir in #(
9759  -*) as_dir=./$as_dir;;
9760  esac
9761  test -d "$as_dir" || eval $as_mkdir_p || {
9762    as_dirs=
9763    while :; do
9764      case $as_dir in #(
9765      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9766      *) as_qdir=$as_dir;;
9767      esac
9768      as_dirs="'$as_qdir' $as_dirs"
9769      as_dir=`$as_dirname -- "$as_dir" ||
9770$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9771	 X"$as_dir" : 'X\(//\)[^/]' \| \
9772	 X"$as_dir" : 'X\(//\)$' \| \
9773	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9774printf "%s\n" X"$as_dir" |
9775    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9776	    s//\1/
9777	    q
9778	  }
9779	  /^X\(\/\/\)[^/].*/{
9780	    s//\1/
9781	    q
9782	  }
9783	  /^X\(\/\/\)$/{
9784	    s//\1/
9785	    q
9786	  }
9787	  /^X\(\/\).*/{
9788	    s//\1/
9789	    q
9790	  }
9791	  s/.*/./; q'`
9792      test -d "$as_dir" && break
9793    done
9794    test -z "$as_dirs" || eval "mkdir $as_dirs"
9795  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
9796
9797
9798} # as_fn_mkdir_p
9799if mkdir -p . 2>/dev/null; then
9800  as_mkdir_p='mkdir -p "$as_dir"'
9801else
9802  test -d ./-p && rmdir ./-p
9803  as_mkdir_p=false
9804fi
9805
9806
9807# as_fn_executable_p FILE
9808# -----------------------
9809# Test if FILE is an executable regular file.
9810as_fn_executable_p ()
9811{
9812  test -f "$1" && test -x "$1"
9813} # as_fn_executable_p
9814as_test_x='test -x'
9815as_executable_p=as_fn_executable_p
9816
9817# Sed expression to map a string onto a valid CPP name.
9818as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9819
9820# Sed expression to map a string onto a valid variable name.
9821as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9822
9823
9824exec 6>&1
9825## ----------------------------------- ##
9826## Main body of $CONFIG_STATUS script. ##
9827## ----------------------------------- ##
9828_ASEOF
9829test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
9830
9831cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9832# Save the log message, to keep $0 and so on meaningful, and to
9833# report actual input values of CONFIG_FILES etc. instead of their
9834# values after options handling.
9835ac_log="
9836This file was extended by tdbc $as_me 1.1.3, which was
9837generated by GNU Autoconf 2.70.  Invocation command line was
9838
9839  CONFIG_FILES    = $CONFIG_FILES
9840  CONFIG_HEADERS  = $CONFIG_HEADERS
9841  CONFIG_LINKS    = $CONFIG_LINKS
9842  CONFIG_COMMANDS = $CONFIG_COMMANDS
9843  $ $0 $@
9844
9845on `(hostname || uname -n) 2>/dev/null | sed 1q`
9846"
9847
9848_ACEOF
9849
9850case $ac_config_files in *"
9851"*) set x $ac_config_files; shift; ac_config_files=$*;;
9852esac
9853
9854
9855
9856cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9857# Files that config.status was made for.
9858config_files="$ac_config_files"
9859
9860_ACEOF
9861
9862cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9863ac_cs_usage="\
9864\`$as_me' instantiates files and other configuration actions
9865from templates according to the current configuration.  Unless the files
9866and actions are specified as TAGs, all are instantiated by default.
9867
9868Usage: $0 [OPTION]... [TAG]...
9869
9870  -h, --help       print this help, then exit
9871  -V, --version    print version number and configuration settings, then exit
9872      --config     print configuration, then exit
9873  -q, --quiet, --silent
9874                   do not print progress messages
9875  -d, --debug      don't remove temporary files
9876      --recheck    update $as_me by reconfiguring in the same conditions
9877      --file=FILE[:TEMPLATE]
9878                   instantiate the configuration file FILE
9879
9880Configuration files:
9881$config_files
9882
9883Report bugs to the package provider."
9884
9885_ACEOF
9886ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
9887ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
9888cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9889ac_cs_config='$ac_cs_config_escaped'
9890ac_cs_version="\\
9891tdbc config.status 1.1.3
9892configured by $0, generated by GNU Autoconf 2.70,
9893  with options \\"\$ac_cs_config\\"
9894
9895Copyright (C) 2020 Free Software Foundation, Inc.
9896This config.status script is free software; the Free Software Foundation
9897gives unlimited permission to copy, distribute and modify it."
9898
9899ac_pwd='$ac_pwd'
9900srcdir='$srcdir'
9901test -n "\$AWK" || AWK=awk
9902_ACEOF
9903
9904cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9905# The default lists apply if the user does not specify any file.
9906ac_need_defaults=:
9907while test $# != 0
9908do
9909  case $1 in
9910  --*=?*)
9911    ac_option=`expr "X$1" : 'X\([^=]*\)='`
9912    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
9913    ac_shift=:
9914    ;;
9915  --*=)
9916    ac_option=`expr "X$1" : 'X\([^=]*\)='`
9917    ac_optarg=
9918    ac_shift=:
9919    ;;
9920  *)
9921    ac_option=$1
9922    ac_optarg=$2
9923    ac_shift=shift
9924    ;;
9925  esac
9926
9927  case $ac_option in
9928  # Handling of the options.
9929  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9930    ac_cs_recheck=: ;;
9931  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
9932    printf "%s\n" "$ac_cs_version"; exit ;;
9933  --config | --confi | --conf | --con | --co | --c )
9934    printf "%s\n" "$ac_cs_config"; exit ;;
9935  --debug | --debu | --deb | --de | --d | -d )
9936    debug=: ;;
9937  --file | --fil | --fi | --f )
9938    $ac_shift
9939    case $ac_optarg in
9940    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9941    '') as_fn_error $? "missing file argument" ;;
9942    esac
9943    as_fn_append CONFIG_FILES " '$ac_optarg'"
9944    ac_need_defaults=false;;
9945  --he | --h |  --help | --hel | -h )
9946    printf "%s\n" "$ac_cs_usage"; exit ;;
9947  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9948  | -silent | --silent | --silen | --sile | --sil | --si | --s)
9949    ac_cs_silent=: ;;
9950
9951  # This is an error.
9952  -*) as_fn_error $? "unrecognized option: \`$1'
9953Try \`$0 --help' for more information." ;;
9954
9955  *) as_fn_append ac_config_targets " $1"
9956     ac_need_defaults=false ;;
9957
9958  esac
9959  shift
9960done
9961
9962ac_configure_extra_args=
9963
9964if $ac_cs_silent; then
9965  exec 6>/dev/null
9966  ac_configure_extra_args="$ac_configure_extra_args --silent"
9967fi
9968
9969_ACEOF
9970cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9971if \$ac_cs_recheck; then
9972  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9973  shift
9974  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
9975  CONFIG_SHELL='$SHELL'
9976  export CONFIG_SHELL
9977  exec "\$@"
9978fi
9979
9980_ACEOF
9981cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9982exec 5>>config.log
9983{
9984  echo
9985  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9986## Running $as_me. ##
9987_ASBOX
9988  printf "%s\n" "$ac_log"
9989} >&5
9990
9991_ACEOF
9992cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9993_ACEOF
9994
9995cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9996
9997# Handling of arguments.
9998for ac_config_target in $ac_config_targets
9999do
10000  case $ac_config_target in
10001    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10002    "pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES pkgIndex.tcl" ;;
10003    "tdbcConfig.sh") CONFIG_FILES="$CONFIG_FILES tdbcConfig.sh" ;;
10004
10005  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
10006  esac
10007done
10008
10009
10010# If the user did not use the arguments to specify the items to instantiate,
10011# then the envvar interface is used.  Set only those that are not.
10012# We use the long form for the default assignment because of an extremely
10013# bizarre bug on SunOS 4.1.3.
10014if $ac_need_defaults; then
10015  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
10016fi
10017
10018# Have a temporary directory for convenience.  Make it in the build tree
10019# simply because there is no reason against having it here, and in addition,
10020# creating and moving files from /tmp can sometimes cause problems.
10021# Hook for its removal unless debugging.
10022# Note that there is a small window in which the directory will not be cleaned:
10023# after its creation but before its name has been assigned to `$tmp'.
10024$debug ||
10025{
10026  tmp= ac_tmp=
10027  trap 'exit_status=$?
10028  : "${ac_tmp:=$tmp}"
10029  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
10030' 0
10031  trap 'as_fn_exit 1' 1 2 13 15
10032}
10033# Create a (secure) tmp directory for tmp files.
10034
10035{
10036  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10037  test -d "$tmp"
10038}  ||
10039{
10040  tmp=./conf$$-$RANDOM
10041  (umask 077 && mkdir "$tmp")
10042} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
10043ac_tmp=$tmp
10044
10045# Set up the scripts for CONFIG_FILES section.
10046# No need to generate them if there are no CONFIG_FILES.
10047# This happens for instance with `./config.status config.h'.
10048if test -n "$CONFIG_FILES"; then
10049
10050
10051ac_cr=`echo X | tr X '\015'`
10052# On cygwin, bash can eat \r inside `` if the user requested igncr.
10053# But we know of no other shell where ac_cr would be empty at this
10054# point, so we can use a bashism as a fallback.
10055if test "x$ac_cr" = x; then
10056  eval ac_cr=\$\'\\r\'
10057fi
10058ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10059if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10060  ac_cs_awk_cr='\\r'
10061else
10062  ac_cs_awk_cr=$ac_cr
10063fi
10064
10065echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
10066_ACEOF
10067
10068
10069{
10070  echo "cat >conf$$subs.awk <<_ACEOF" &&
10071  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10072  echo "_ACEOF"
10073} >conf$$subs.sh ||
10074  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10075ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
10076ac_delim='%!_!# '
10077for ac_last_try in false false false false false :; do
10078  . ./conf$$subs.sh ||
10079    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10080
10081  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
10082  if test $ac_delim_n = $ac_delim_num; then
10083    break
10084  elif $ac_last_try; then
10085    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10086  else
10087    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10088  fi
10089done
10090rm -f conf$$subs.sh
10091
10092cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10093cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
10094_ACEOF
10095sed -n '
10096h
10097s/^/S["/; s/!.*/"]=/
10098p
10099g
10100s/^[^!]*!//
10101:repl
10102t repl
10103s/'"$ac_delim"'$//
10104t delim
10105:nl
10106h
10107s/\(.\{148\}\)..*/\1/
10108t more1
10109s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10110p
10111n
10112b repl
10113:more1
10114s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10115p
10116g
10117s/.\{148\}//
10118t nl
10119:delim
10120h
10121s/\(.\{148\}\)..*/\1/
10122t more2
10123s/["\\]/\\&/g; s/^/"/; s/$/"/
10124p
10125b
10126:more2
10127s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10128p
10129g
10130s/.\{148\}//
10131t delim
10132' <conf$$subs.awk | sed '
10133/^[^""]/{
10134  N
10135  s/\n//
10136}
10137' >>$CONFIG_STATUS || ac_write_fail=1
10138rm -f conf$$subs.awk
10139cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10140_ACAWK
10141cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
10142  for (key in S) S_is_set[key] = 1
10143  FS = ""
10144
10145}
10146{
10147  line = $ 0
10148  nfields = split(line, field, "@")
10149  substed = 0
10150  len = length(field[1])
10151  for (i = 2; i < nfields; i++) {
10152    key = field[i]
10153    keylen = length(key)
10154    if (S_is_set[key]) {
10155      value = S[key]
10156      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10157      len += length(value) + length(field[++i])
10158      substed = 1
10159    } else
10160      len += 1 + keylen
10161  }
10162
10163  print line
10164}
10165
10166_ACAWK
10167_ACEOF
10168cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10169if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10170  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
10171else
10172  cat
10173fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
10174  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
10175_ACEOF
10176
10177# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
10178# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
10179# trailing colons and then remove the whole line if VPATH becomes empty
10180# (actually we leave an empty line to preserve line numbers).
10181if test "x$srcdir" = x.; then
10182  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
10183h
10184s///
10185s/^/:/
10186s/[	 ]*$/:/
10187s/:\$(srcdir):/:/g
10188s/:\${srcdir}:/:/g
10189s/:@srcdir@:/:/g
10190s/^:*//
10191s/:*$//
10192x
10193s/\(=[	 ]*\).*/\1/
10194G
10195s/\n//
10196s/^[^=]*=[	 ]*$//
10197}'
10198fi
10199
10200cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10201fi # test -n "$CONFIG_FILES"
10202
10203
10204eval set X "  :F $CONFIG_FILES      "
10205shift
10206for ac_tag
10207do
10208  case $ac_tag in
10209  :[FHLC]) ac_mode=$ac_tag; continue;;
10210  esac
10211  case $ac_mode$ac_tag in
10212  :[FHL]*:*);;
10213  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
10214  :[FH]-) ac_tag=-:-;;
10215  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10216  esac
10217  ac_save_IFS=$IFS
10218  IFS=:
10219  set x $ac_tag
10220  IFS=$ac_save_IFS
10221  shift
10222  ac_file=$1
10223  shift
10224
10225  case $ac_mode in
10226  :L) ac_source=$1;;
10227  :[FH])
10228    ac_file_inputs=
10229    for ac_f
10230    do
10231      case $ac_f in
10232      -) ac_f="$ac_tmp/stdin";;
10233      *) # Look for the file first in the build tree, then in the source tree
10234	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
10235	 # because $ac_f cannot contain `:'.
10236	 test -f "$ac_f" ||
10237	   case $ac_f in
10238	   [\\/$]*) false;;
10239	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10240	   esac ||
10241	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
10242      esac
10243      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10244      as_fn_append ac_file_inputs " '$ac_f'"
10245    done
10246
10247    # Let's still pretend it is `configure' which instantiates (i.e., don't
10248    # use $as_me), people would be surprised to read:
10249    #    /* config.h.  Generated by config.status.  */
10250    configure_input='Generated from '`
10251	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10252	`' by configure.'
10253    if test x"$ac_file" != x-; then
10254      configure_input="$ac_file.  $configure_input"
10255      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
10256printf "%s\n" "$as_me: creating $ac_file" >&6;}
10257    fi
10258    # Neutralize special characters interpreted by sed in replacement strings.
10259    case $configure_input in #(
10260    *\&* | *\|* | *\\* )
10261       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
10262       sed 's/[\\\\&|]/\\\\&/g'`;; #(
10263    *) ac_sed_conf_input=$configure_input;;
10264    esac
10265
10266    case $ac_tag in
10267    *:-:* | *:-) cat >"$ac_tmp/stdin" \
10268      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
10269    esac
10270    ;;
10271  esac
10272
10273  ac_dir=`$as_dirname -- "$ac_file" ||
10274$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10275	 X"$ac_file" : 'X\(//\)[^/]' \| \
10276	 X"$ac_file" : 'X\(//\)$' \| \
10277	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10278printf "%s\n" X"$ac_file" |
10279    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10280	    s//\1/
10281	    q
10282	  }
10283	  /^X\(\/\/\)[^/].*/{
10284	    s//\1/
10285	    q
10286	  }
10287	  /^X\(\/\/\)$/{
10288	    s//\1/
10289	    q
10290	  }
10291	  /^X\(\/\).*/{
10292	    s//\1/
10293	    q
10294	  }
10295	  s/.*/./; q'`
10296  as_dir="$ac_dir"; as_fn_mkdir_p
10297  ac_builddir=.
10298
10299case "$ac_dir" in
10300.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10301*)
10302  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
10303  # A ".." for each directory in $ac_dir_suffix.
10304  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10305  case $ac_top_builddir_sub in
10306  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10307  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10308  esac ;;
10309esac
10310ac_abs_top_builddir=$ac_pwd
10311ac_abs_builddir=$ac_pwd$ac_dir_suffix
10312# for backward compatibility:
10313ac_top_builddir=$ac_top_build_prefix
10314
10315case $srcdir in
10316  .)  # We are building in place.
10317    ac_srcdir=.
10318    ac_top_srcdir=$ac_top_builddir_sub
10319    ac_abs_top_srcdir=$ac_pwd ;;
10320  [\\/]* | ?:[\\/]* )  # Absolute name.
10321    ac_srcdir=$srcdir$ac_dir_suffix;
10322    ac_top_srcdir=$srcdir
10323    ac_abs_top_srcdir=$srcdir ;;
10324  *) # Relative name.
10325    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10326    ac_top_srcdir=$ac_top_build_prefix$srcdir
10327    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10328esac
10329ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10330
10331
10332  case $ac_mode in
10333  :F)
10334  #
10335  # CONFIG_FILE
10336  #
10337
10338_ACEOF
10339
10340cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10341# If the template does not know about datarootdir, expand it.
10342# FIXME: This hack should be removed a few years after 2.60.
10343ac_datarootdir_hack=; ac_datarootdir_seen=
10344ac_sed_dataroot='
10345/datarootdir/ {
10346  p
10347  q
10348}
10349/@datadir@/p
10350/@docdir@/p
10351/@infodir@/p
10352/@localedir@/p
10353/@mandir@/p'
10354case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
10355*datarootdir*) ac_datarootdir_seen=yes;;
10356*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
10357  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10358printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10359_ACEOF
10360cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10361  ac_datarootdir_hack='
10362  s&@datadir@&$datadir&g
10363  s&@docdir@&$docdir&g
10364  s&@infodir@&$infodir&g
10365  s&@localedir@&$localedir&g
10366  s&@mandir@&$mandir&g
10367  s&\\\${datarootdir}&$datarootdir&g' ;;
10368esac
10369_ACEOF
10370
10371# Neutralize VPATH when `$srcdir' = `.'.
10372# Shell code in configure.ac might set extrasub.
10373# FIXME: do we really want to maintain this feature?
10374cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10375ac_sed_extra="$ac_vpsub
10376$extrasub
10377_ACEOF
10378cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10379:t
10380/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10381s|@configure_input@|$ac_sed_conf_input|;t t
10382s&@top_builddir@&$ac_top_builddir_sub&;t t
10383s&@top_build_prefix@&$ac_top_build_prefix&;t t
10384s&@srcdir@&$ac_srcdir&;t t
10385s&@abs_srcdir@&$ac_abs_srcdir&;t t
10386s&@top_srcdir@&$ac_top_srcdir&;t t
10387s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10388s&@builddir@&$ac_builddir&;t t
10389s&@abs_builddir@&$ac_abs_builddir&;t t
10390s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10391$ac_datarootdir_hack
10392"
10393eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
10394  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10395
10396test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10397  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
10398  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
10399      "$ac_tmp/out"`; test -z "$ac_out"; } &&
10400  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10401which seems to be undefined.  Please make sure it is defined" >&5
10402printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10403which seems to be undefined.  Please make sure it is defined" >&2;}
10404
10405  rm -f "$ac_tmp/stdin"
10406  case $ac_file in
10407  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
10408  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
10409  esac \
10410  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10411 ;;
10412
10413
10414
10415  esac
10416
10417done # for ac_tag
10418
10419
10420as_fn_exit 0
10421_ACEOF
10422ac_clean_files=$ac_clean_files_save
10423
10424test $ac_write_fail = 0 ||
10425  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
10426
10427
10428# configure is writing to config.log, and then calls config.status.
10429# config.status does its own redirection, appending to config.log.
10430# Unfortunately, on DOS this fails, as config.log is still kept open
10431# by configure, so config.status won't be able to write to it; its
10432# output is simply discarded.  So we exec the FD to /dev/null,
10433# effectively closing config.log, so it can be properly (re)opened and
10434# appended to by config.status.  When coming back to configure, we
10435# need to make the FD available again.
10436if test "$no_create" != yes; then
10437  ac_cs_success=:
10438  ac_config_status_args=
10439  test "$silent" = yes &&
10440    ac_config_status_args="$ac_config_status_args --quiet"
10441  exec 5>/dev/null
10442  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10443  exec 5>>config.log
10444  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10445  # would make configure fail if this is the last instruction.
10446  $ac_cs_success || as_fn_exit 1
10447fi
10448if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
10449  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10450printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
10451fi
10452
10453
10454