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