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