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