source: trunk/src/tcl/configure @ 232

Last change on this file since 232 was 225, checked in by dkearney, 19 years ago

added alternative Rappture:result function to tcl bindings
added Rappture::Units::convert function.
adjusted makefile for more files to compile
adjusted configure file to once again check for bltInt.h
adjusted children function to allow for blank path

  • Property svn:executable set to *
File size: 134.2 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59.
4#
5# Copyright (C) 2003 Free Software Foundation, Inc.
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
8## --------------------- ##
9## M4sh Initialization.  ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14  emulate sh
15  NULLCMD=:
16  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17  # is contrary to our usage.  Disable this feature.
18  alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20  set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26  as_unset=unset
27else
28  as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42  LC_TELEPHONE LC_TIME
43do
44  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45    eval $as_var=C; export $as_var
46  else
47    $as_unset $as_var
48  fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53  as_expr=expr
54else
55  as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59  as_basename=basename
60else
61  as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68         X"$0" : 'X\(//\)$' \| \
69         X"$0" : 'X\(/\)$' \| \
70         .     : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73          /^X\/\(\/\/\)$/{ s//\1/; q; }
74          /^X\/\(\/\).*/{ s//\1/; q; }
75          s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88  echo "#! /bin/sh" >conf$$.sh
89  echo  "exit 0"   >>conf$$.sh
90  chmod +x conf$$.sh
91  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92    PATH_SEPARATOR=';'
93  else
94    PATH_SEPARATOR=:
95  fi
96  rm -f conf$$.sh
97fi
98
99
100  as_lineno_1=$LINENO
101  as_lineno_2=$LINENO
102  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103  test "x$as_lineno_1" != "x$as_lineno_2" &&
104  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105  # Find who we are.  Look in the path if we contain no path at all
106  # relative or not.
107  case $0 in
108    *[\\/]* ) as_myself=$0 ;;
109    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112  IFS=$as_save_IFS
113  test -z "$as_dir" && as_dir=.
114  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117       ;;
118  esac
119  # We did not find ourselves, most probably we were run as `sh COMMAND'
120  # in which case we are not to be found in the path.
121  if test "x$as_myself" = x; then
122    as_myself=$0
123  fi
124  if test ! -f "$as_myself"; then
125    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126   { (exit 1); exit 1; }; }
127  fi
128  case $CONFIG_SHELL in
129  '')
130    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133  IFS=$as_save_IFS
134  test -z "$as_dir" && as_dir=.
135  for as_base in sh bash ksh sh5; do
136         case $as_dir in
137         /*)
138           if ("$as_dir/$as_base" -c '
139  as_lineno_1=$LINENO
140  as_lineno_2=$LINENO
141  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142  test "x$as_lineno_1" != "x$as_lineno_2" &&
143  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146             CONFIG_SHELL=$as_dir/$as_base
147             export CONFIG_SHELL
148             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149           fi;;
150         esac
151       done
152done
153;;
154  esac
155
156  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157  # uniformly replaced by the line number.  The first 'sed' inserts a
158  # line-number line before each line; the second 'sed' does the real
159  # work.  The second script uses 'N' to pair each line-number line
160  # with the numbered line, and appends trailing '-' during
161  # substitution so that $LINENO is not a special case at line end.
162  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164  sed '=' <$as_myself |
165    sed '
166      N
167      s,$,-,
168      : loop
169      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170      t loop
171      s,-$,,
172      s,^['$as_cr_digits']*\n,,
173    ' >$as_me.lineno &&
174  chmod +x $as_me.lineno ||
175    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176   { (exit 1); exit 1; }; }
177
178  # Don't try to exec as it changes $[0], causing all sort of problems
179  # (the dirname of $[0] is not the place where we might find the
180  # original and so on.  Autoconf is especially sensible to this).
181  . ./$as_me.lineno
182  # Exit status is that of the last command.
183  exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188  *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T='      ' ;;
190  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195  as_expr=expr
196else
197  as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203  # We could just check for DJGPP; but this test a) works b) is more generic
204  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205  if test -f conf$$.exe; then
206    # Don't use ln at all; we don't have any links
207    as_ln_s='cp -p'
208  else
209    as_ln_s='ln -s'
210  fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212  as_ln_s=ln
213else
214  as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219  as_mkdir_p=:
220else
221  test -d ./-p && rmdir ./-p
222  as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS="   $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243
244# Name of the host.
245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246# so uname gets run too.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249exec 6>&1
250
251#
252# Initializations.
253#
254ac_default_prefix=/usr/local
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${CONFIG_SHELL-/bin/sh}
261
262# Maximum number of lines to put in a shell here document.
263# This variable seems obsolete.  It should probably be removed, and
264# only ac_max_sed_lines should be used.
265: ${ac_max_here_lines=38}
266
267# Identity of this package.
268PACKAGE_NAME=
269PACKAGE_TARNAME=
270PACKAGE_VERSION=
271PACKAGE_STRING=
272PACKAGE_BUGREPORT=
273
274ac_unique_file="src/RpLibraryTclInterface.cc"
275ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA SET_MAKE RANLIB ac_ct_RANLIB build build_cpu build_vendor build_os host host_cpu host_vendor host_os CYGPATH TCL_INCLUDES TCL_BIN_DIR TCL_SRC_DIR TCL_LIB_FILE TCL_LIBS TCL_DEFS TCL_SHLIB_LD_LIBS TCL_EXTRA_CFLAGS TCL_LD_FLAGS TCL_STUB_LIB_FILE TCL_LIB_SPEC TCL_BUILD_LIB_SPEC TCL_STUB_LIB_SPEC TCL_BUILD_STUB_LIB_SPEC BLT_SRC_DIR CLEANFILES CC CFLAGS ac_ct_CC CFLAGS_DEBUG CFLAGS_OPTIMIZE STLIB_LD SHLIB_LD SHLIB_CFLAGS SHLIB_LDFLAGS TCL_DBGX CFLAGS_DEFAULT LDFLAGS_DEFAULT MAKE_LIB MAKE_SHARED_LIB MAKE_STATIC_LIB Rappture_LIB_FILE SHLIB_LD_LIBS TCLSH_PROG PACKAGE VERSION PATCHLEVEL EXACT_VERSION NODOT_VERSION LIBOBJS LTLIBOBJS'
276ac_subst_files=''
277
278# Initialize some variables set by options.
279ac_init_help=
280ac_init_version=false
281# The variables have the same names as the options, with
282# dashes changed to underlines.
283cache_file=/dev/null
284exec_prefix=NONE
285no_create=
286no_recursion=
287prefix=NONE
288program_prefix=NONE
289program_suffix=NONE
290program_transform_name=s,x,x,
291silent=
292site=
293srcdir=
294verbose=
295x_includes=NONE
296x_libraries=NONE
297
298# Installation directory options.
299# These are left unexpanded so users can "make install exec_prefix=/foo"
300# and all the variables that are supposed to be based on exec_prefix
301# by default will actually change.
302# Use braces instead of parens because sh, perl, etc. also accept them.
303bindir='${exec_prefix}/bin'
304sbindir='${exec_prefix}/sbin'
305libexecdir='${exec_prefix}/libexec'
306datadir='${prefix}/share'
307sysconfdir='${prefix}/etc'
308sharedstatedir='${prefix}/com'
309localstatedir='${prefix}/var'
310libdir='${exec_prefix}/lib'
311includedir='${prefix}/include'
312oldincludedir='/usr/include'
313infodir='${prefix}/info'
314mandir='${prefix}/man'
315
316ac_prev=
317for ac_option
318do
319  # If the previous option needs an argument, assign it.
320  if test -n "$ac_prev"; then
321    eval "$ac_prev=\$ac_option"
322    ac_prev=
323    continue
324  fi
325
326  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
327
328  # Accept the important Cygnus configure options, so we can diagnose typos.
329
330  case $ac_option in
331
332  -bindir | --bindir | --bindi | --bind | --bin | --bi)
333    ac_prev=bindir ;;
334  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
335    bindir=$ac_optarg ;;
336
337  -build | --build | --buil | --bui | --bu)
338    ac_prev=build_alias ;;
339  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
340    build_alias=$ac_optarg ;;
341
342  -cache-file | --cache-file | --cache-fil | --cache-fi \
343  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
344    ac_prev=cache_file ;;
345  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
346  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
347    cache_file=$ac_optarg ;;
348
349  --config-cache | -C)
350    cache_file=config.cache ;;
351
352  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
353    ac_prev=datadir ;;
354  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
355  | --da=*)
356    datadir=$ac_optarg ;;
357
358  -disable-* | --disable-*)
359    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
360    # Reject names that are not valid shell variable names.
361    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
362      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
363   { (exit 1); exit 1; }; }
364    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
365    eval "enable_$ac_feature=no" ;;
366
367  -enable-* | --enable-*)
368    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
369    # Reject names that are not valid shell variable names.
370    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
371      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
372   { (exit 1); exit 1; }; }
373    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
374    case $ac_option in
375      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
376      *) ac_optarg=yes ;;
377    esac
378    eval "enable_$ac_feature='$ac_optarg'" ;;
379
380  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
381  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
382  | --exec | --exe | --ex)
383    ac_prev=exec_prefix ;;
384  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
385  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
386  | --exec=* | --exe=* | --ex=*)
387    exec_prefix=$ac_optarg ;;
388
389  -gas | --gas | --ga | --g)
390    # Obsolete; use --with-gas.
391    with_gas=yes ;;
392
393  -help | --help | --hel | --he | -h)
394    ac_init_help=long ;;
395  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
396    ac_init_help=recursive ;;
397  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
398    ac_init_help=short ;;
399
400  -host | --host | --hos | --ho)
401    ac_prev=host_alias ;;
402  -host=* | --host=* | --hos=* | --ho=*)
403    host_alias=$ac_optarg ;;
404
405  -includedir | --includedir | --includedi | --included | --include \
406  | --includ | --inclu | --incl | --inc)
407    ac_prev=includedir ;;
408  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
409  | --includ=* | --inclu=* | --incl=* | --inc=*)
410    includedir=$ac_optarg ;;
411
412  -infodir | --infodir | --infodi | --infod | --info | --inf)
413    ac_prev=infodir ;;
414  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
415    infodir=$ac_optarg ;;
416
417  -libdir | --libdir | --libdi | --libd)
418    ac_prev=libdir ;;
419  -libdir=* | --libdir=* | --libdi=* | --libd=*)
420    libdir=$ac_optarg ;;
421
422  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
423  | --libexe | --libex | --libe)
424    ac_prev=libexecdir ;;
425  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
426  | --libexe=* | --libex=* | --libe=*)
427    libexecdir=$ac_optarg ;;
428
429  -localstatedir | --localstatedir | --localstatedi | --localstated \
430  | --localstate | --localstat | --localsta | --localst \
431  | --locals | --local | --loca | --loc | --lo)
432    ac_prev=localstatedir ;;
433  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
434  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
435  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
436    localstatedir=$ac_optarg ;;
437
438  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
439    ac_prev=mandir ;;
440  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
441    mandir=$ac_optarg ;;
442
443  -nfp | --nfp | --nf)
444    # Obsolete; use --without-fp.
445    with_fp=no ;;
446
447  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
448  | --no-cr | --no-c | -n)
449    no_create=yes ;;
450
451  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
452  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
453    no_recursion=yes ;;
454
455  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
456  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
457  | --oldin | --oldi | --old | --ol | --o)
458    ac_prev=oldincludedir ;;
459  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
460  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
461  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
462    oldincludedir=$ac_optarg ;;
463
464  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
465    ac_prev=prefix ;;
466  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
467    prefix=$ac_optarg ;;
468
469  -program-prefix | --program-prefix | --program-prefi | --program-pref \
470  | --program-pre | --program-pr | --program-p)
471    ac_prev=program_prefix ;;
472  -program-prefix=* | --program-prefix=* | --program-prefi=* \
473  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
474    program_prefix=$ac_optarg ;;
475
476  -program-suffix | --program-suffix | --program-suffi | --program-suff \
477  | --program-suf | --program-su | --program-s)
478    ac_prev=program_suffix ;;
479  -program-suffix=* | --program-suffix=* | --program-suffi=* \
480  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
481    program_suffix=$ac_optarg ;;
482
483  -program-transform-name | --program-transform-name \
484  | --program-transform-nam | --program-transform-na \
485  | --program-transform-n | --program-transform- \
486  | --program-transform | --program-transfor \
487  | --program-transfo | --program-transf \
488  | --program-trans | --program-tran \
489  | --progr-tra | --program-tr | --program-t)
490    ac_prev=program_transform_name ;;
491  -program-transform-name=* | --program-transform-name=* \
492  | --program-transform-nam=* | --program-transform-na=* \
493  | --program-transform-n=* | --program-transform-=* \
494  | --program-transform=* | --program-transfor=* \
495  | --program-transfo=* | --program-transf=* \
496  | --program-trans=* | --program-tran=* \
497  | --progr-tra=* | --program-tr=* | --program-t=*)
498    program_transform_name=$ac_optarg ;;
499
500  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
501  | -silent | --silent | --silen | --sile | --sil)
502    silent=yes ;;
503
504  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
505    ac_prev=sbindir ;;
506  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
507  | --sbi=* | --sb=*)
508    sbindir=$ac_optarg ;;
509
510  -sharedstatedir | --sharedstatedir | --sharedstatedi \
511  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
512  | --sharedst | --shareds | --shared | --share | --shar \
513  | --sha | --sh)
514    ac_prev=sharedstatedir ;;
515  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
516  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
517  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
518  | --sha=* | --sh=*)
519    sharedstatedir=$ac_optarg ;;
520
521  -site | --site | --sit)
522    ac_prev=site ;;
523  -site=* | --site=* | --sit=*)
524    site=$ac_optarg ;;
525
526  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
527    ac_prev=srcdir ;;
528  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
529    srcdir=$ac_optarg ;;
530
531  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
532  | --syscon | --sysco | --sysc | --sys | --sy)
533    ac_prev=sysconfdir ;;
534  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
535  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
536    sysconfdir=$ac_optarg ;;
537
538  -target | --target | --targe | --targ | --tar | --ta | --t)
539    ac_prev=target_alias ;;
540  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
541    target_alias=$ac_optarg ;;
542
543  -v | -verbose | --verbose | --verbos | --verbo | --verb)
544    verbose=yes ;;
545
546  -version | --version | --versio | --versi | --vers | -V)
547    ac_init_version=: ;;
548
549  -with-* | --with-*)
550    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
551    # Reject names that are not valid shell variable names.
552    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
553      { echo "$as_me: error: invalid package name: $ac_package" >&2
554   { (exit 1); exit 1; }; }
555    ac_package=`echo $ac_package| sed 's/-/_/g'`
556    case $ac_option in
557      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
558      *) ac_optarg=yes ;;
559    esac
560    eval "with_$ac_package='$ac_optarg'" ;;
561
562  -without-* | --without-*)
563    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
564    # Reject names that are not valid shell variable names.
565    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566      { echo "$as_me: error: invalid package name: $ac_package" >&2
567   { (exit 1); exit 1; }; }
568    ac_package=`echo $ac_package | sed 's/-/_/g'`
569    eval "with_$ac_package=no" ;;
570
571  --x)
572    # Obsolete; use --with-x.
573    with_x=yes ;;
574
575  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
576  | --x-incl | --x-inc | --x-in | --x-i)
577    ac_prev=x_includes ;;
578  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
579  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
580    x_includes=$ac_optarg ;;
581
582  -x-libraries | --x-libraries | --x-librarie | --x-librari \
583  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
584    ac_prev=x_libraries ;;
585  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
586  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
587    x_libraries=$ac_optarg ;;
588
589  -*) { echo "$as_me: error: unrecognized option: $ac_option
590Try \`$0 --help' for more information." >&2
591   { (exit 1); exit 1; }; }
592    ;;
593
594  *=*)
595    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
596    # Reject names that are not valid shell variable names.
597    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
598      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
599   { (exit 1); exit 1; }; }
600    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
601    eval "$ac_envvar='$ac_optarg'"
602    export $ac_envvar ;;
603
604  *)
605    # FIXME: should be removed in autoconf 3.0.
606    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
607    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
608      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
609    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
610    ;;
611
612  esac
613done
614
615if test -n "$ac_prev"; then
616  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
617  { echo "$as_me: error: missing argument to $ac_option" >&2
618   { (exit 1); exit 1; }; }
619fi
620
621# Be sure to have absolute paths.
622for ac_var in exec_prefix prefix
623do
624  eval ac_val=$`echo $ac_var`
625  case $ac_val in
626    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
627    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
628   { (exit 1); exit 1; }; };;
629  esac
630done
631
632# Be sure to have absolute paths.
633for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
634              localstatedir libdir includedir oldincludedir infodir mandir
635do
636  eval ac_val=$`echo $ac_var`
637  case $ac_val in
638    [\\/$]* | ?:[\\/]* ) ;;
639    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
640   { (exit 1); exit 1; }; };;
641  esac
642done
643
644# There might be people who depend on the old broken behavior: `$host'
645# used to hold the argument of --host etc.
646# FIXME: To remove some day.
647build=$build_alias
648host=$host_alias
649target=$target_alias
650
651# FIXME: To remove some day.
652if test "x$host_alias" != x; then
653  if test "x$build_alias" = x; then
654    cross_compiling=maybe
655    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
656    If a cross compiler is detected then cross compile mode will be used." >&2
657  elif test "x$build_alias" != "x$host_alias"; then
658    cross_compiling=yes
659  fi
660fi
661
662ac_tool_prefix=
663test -n "$host_alias" && ac_tool_prefix=$host_alias-
664
665test "$silent" = yes && exec 6>/dev/null
666
667
668# Find the source files, if location was not specified.
669if test -z "$srcdir"; then
670  ac_srcdir_defaulted=yes
671  # Try the directory containing this script, then its parent.
672  ac_confdir=`(dirname "$0") 2>/dev/null ||
673$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
674         X"$0" : 'X\(//\)[^/]' \| \
675         X"$0" : 'X\(//\)$' \| \
676         X"$0" : 'X\(/\)' \| \
677         .     : '\(.\)' 2>/dev/null ||
678echo X"$0" |
679    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
680          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
681          /^X\(\/\/\)$/{ s//\1/; q; }
682          /^X\(\/\).*/{ s//\1/; q; }
683          s/.*/./; q'`
684  srcdir=$ac_confdir
685  if test ! -r $srcdir/$ac_unique_file; then
686    srcdir=..
687  fi
688else
689  ac_srcdir_defaulted=no
690fi
691if test ! -r $srcdir/$ac_unique_file; then
692  if test "$ac_srcdir_defaulted" = yes; then
693    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
694   { (exit 1); exit 1; }; }
695  else
696    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
697   { (exit 1); exit 1; }; }
698  fi
699fi
700(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
701  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
702   { (exit 1); exit 1; }; }
703srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
704ac_env_build_alias_set=${build_alias+set}
705ac_env_build_alias_value=$build_alias
706ac_cv_env_build_alias_set=${build_alias+set}
707ac_cv_env_build_alias_value=$build_alias
708ac_env_host_alias_set=${host_alias+set}
709ac_env_host_alias_value=$host_alias
710ac_cv_env_host_alias_set=${host_alias+set}
711ac_cv_env_host_alias_value=$host_alias
712ac_env_target_alias_set=${target_alias+set}
713ac_env_target_alias_value=$target_alias
714ac_cv_env_target_alias_set=${target_alias+set}
715ac_cv_env_target_alias_value=$target_alias
716ac_env_CXX_set=${CXX+set}
717ac_env_CXX_value=$CXX
718ac_cv_env_CXX_set=${CXX+set}
719ac_cv_env_CXX_value=$CXX
720ac_env_CXXFLAGS_set=${CXXFLAGS+set}
721ac_env_CXXFLAGS_value=$CXXFLAGS
722ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
723ac_cv_env_CXXFLAGS_value=$CXXFLAGS
724ac_env_LDFLAGS_set=${LDFLAGS+set}
725ac_env_LDFLAGS_value=$LDFLAGS
726ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
727ac_cv_env_LDFLAGS_value=$LDFLAGS
728ac_env_CPPFLAGS_set=${CPPFLAGS+set}
729ac_env_CPPFLAGS_value=$CPPFLAGS
730ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
731ac_cv_env_CPPFLAGS_value=$CPPFLAGS
732ac_env_CC_set=${CC+set}
733ac_env_CC_value=$CC
734ac_cv_env_CC_set=${CC+set}
735ac_cv_env_CC_value=$CC
736ac_env_CFLAGS_set=${CFLAGS+set}
737ac_env_CFLAGS_value=$CFLAGS
738ac_cv_env_CFLAGS_set=${CFLAGS+set}
739ac_cv_env_CFLAGS_value=$CFLAGS
740
741#
742# Report the --help message.
743#
744if test "$ac_init_help" = "long"; then
745  # Omit some internal or obsolete options to make the list less imposing.
746  # This message is too long to be a string in the A/UX 3.1 sh.
747  cat <<_ACEOF
748\`configure' configures this package to adapt to many kinds of systems.
749
750Usage: $0 [OPTION]... [VAR=VALUE]...
751
752To assign environment variables (e.g., CC, CFLAGS...), specify them as
753VAR=VALUE.  See below for descriptions of some of the useful variables.
754
755Defaults for the options are specified in brackets.
756
757Configuration:
758  -h, --help              display this help and exit
759      --help=short        display options specific to this package
760      --help=recursive    display the short help of all the included packages
761  -V, --version           display version information and exit
762  -q, --quiet, --silent   do not print \`checking...' messages
763      --cache-file=FILE   cache test results in FILE [disabled]
764  -C, --config-cache      alias for \`--cache-file=config.cache'
765  -n, --no-create         do not create output files
766      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
767
768_ACEOF
769
770  cat <<_ACEOF
771Installation directories:
772  --prefix=PREFIX         install architecture-independent files in PREFIX
773                          [$ac_default_prefix]
774  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
775                          [PREFIX]
776
777By default, \`make install' will install all the files in
778\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
779an installation prefix other than \`$ac_default_prefix' using \`--prefix',
780for instance \`--prefix=\$HOME'.
781
782For better control, use the options below.
783
784Fine tuning of the installation directories:
785  --bindir=DIR           user executables [EPREFIX/bin]
786  --sbindir=DIR          system admin executables [EPREFIX/sbin]
787  --libexecdir=DIR       program executables [EPREFIX/libexec]
788  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
789  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
790  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
791  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
792  --libdir=DIR           object code libraries [EPREFIX/lib]
793  --includedir=DIR       C header files [PREFIX/include]
794  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
795  --infodir=DIR          info documentation [PREFIX/info]
796  --mandir=DIR           man documentation [PREFIX/man]
797_ACEOF
798
799  cat <<\_ACEOF
800
801System types:
802  --build=BUILD     configure for building on BUILD [guessed]
803  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
804_ACEOF
805fi
806
807if test -n "$ac_init_help"; then
808
809  cat <<\_ACEOF
810
811Optional Features:
812  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
813  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
814  --enable-threads        build with threads
815  --enable-shared         build and link with shared libraries --enable-shared
816  --enable-symbols        build with debugging symbols --disable-symbols
817
818Optional Packages:
819  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
820  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
821 --with-tclinclude      directory containing the public Tcl header files.
822  --with-tcl              directory containing tcl configuration (tclConfig.sh)
823
824Some influential environment variables:
825  CXX         C++ compiler command
826  CXXFLAGS    C++ compiler flags
827  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
828              nonstandard directory <lib dir>
829  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
830              headers in a nonstandard directory <include dir>
831  CC          C compiler command
832  CFLAGS      C compiler flags
833
834Use these variables to override the choices made by `configure' or to help
835it to find libraries and programs with nonstandard names/locations.
836
837_ACEOF
838fi
839
840if test "$ac_init_help" = "recursive"; then
841  # If there are subdirs, report their specific --help.
842  ac_popdir=`pwd`
843  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
844    test -d $ac_dir || continue
845    ac_builddir=.
846
847if test "$ac_dir" != .; then
848  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
849  # A "../" for each directory in $ac_dir_suffix.
850  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
851else
852  ac_dir_suffix= ac_top_builddir=
853fi
854
855case $srcdir in
856  .)  # No --srcdir option.  We are building in place.
857    ac_srcdir=.
858    if test -z "$ac_top_builddir"; then
859       ac_top_srcdir=.
860    else
861       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
862    fi ;;
863  [\\/]* | ?:[\\/]* )  # Absolute path.
864    ac_srcdir=$srcdir$ac_dir_suffix;
865    ac_top_srcdir=$srcdir ;;
866  *) # Relative path.
867    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
868    ac_top_srcdir=$ac_top_builddir$srcdir ;;
869esac
870
871# Do not use `cd foo && pwd` to compute absolute paths, because
872# the directories may not exist.
873case `pwd` in
874.) ac_abs_builddir="$ac_dir";;
875*)
876  case "$ac_dir" in
877  .) ac_abs_builddir=`pwd`;;
878  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
879  *) ac_abs_builddir=`pwd`/"$ac_dir";;
880  esac;;
881esac
882case $ac_abs_builddir in
883.) ac_abs_top_builddir=${ac_top_builddir}.;;
884*)
885  case ${ac_top_builddir}. in
886  .) ac_abs_top_builddir=$ac_abs_builddir;;
887  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
888  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
889  esac;;
890esac
891case $ac_abs_builddir in
892.) ac_abs_srcdir=$ac_srcdir;;
893*)
894  case $ac_srcdir in
895  .) ac_abs_srcdir=$ac_abs_builddir;;
896  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
897  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
898  esac;;
899esac
900case $ac_abs_builddir in
901.) ac_abs_top_srcdir=$ac_top_srcdir;;
902*)
903  case $ac_top_srcdir in
904  .) ac_abs_top_srcdir=$ac_abs_builddir;;
905  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
906  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
907  esac;;
908esac
909
910    cd $ac_dir
911    # Check for guested configure; otherwise get Cygnus style configure.
912    if test -f $ac_srcdir/configure.gnu; then
913      echo
914      $SHELL $ac_srcdir/configure.gnu  --help=recursive
915    elif test -f $ac_srcdir/configure; then
916      echo
917      $SHELL $ac_srcdir/configure  --help=recursive
918    elif test -f $ac_srcdir/configure.ac ||
919           test -f $ac_srcdir/configure.in; then
920      echo
921      $ac_configure --help
922    else
923      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
924    fi
925    cd "$ac_popdir"
926  done
927fi
928
929test -n "$ac_init_help" && exit 0
930if $ac_init_version; then
931  cat <<\_ACEOF
932
933Copyright (C) 2003 Free Software Foundation, Inc.
934This configure script is free software; the Free Software Foundation
935gives unlimited permission to copy, distribute and modify it.
936_ACEOF
937  exit 0
938fi
939exec 5>config.log
940cat >&5 <<_ACEOF
941This file contains any messages produced by compilers while
942running configure, to aid debugging if configure makes a mistake.
943
944It was created by $as_me, which was
945generated by GNU Autoconf 2.59.  Invocation command line was
946
947  $ $0 $@
948
949_ACEOF
950{
951cat <<_ASUNAME
952## --------- ##
953## Platform. ##
954## --------- ##
955
956hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
957uname -m = `(uname -m) 2>/dev/null || echo unknown`
958uname -r = `(uname -r) 2>/dev/null || echo unknown`
959uname -s = `(uname -s) 2>/dev/null || echo unknown`
960uname -v = `(uname -v) 2>/dev/null || echo unknown`
961
962/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
963/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
964
965/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
966/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
967/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
968hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
969/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
970/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
971/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
972
973_ASUNAME
974
975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
976for as_dir in $PATH
977do
978  IFS=$as_save_IFS
979  test -z "$as_dir" && as_dir=.
980  echo "PATH: $as_dir"
981done
982
983} >&5
984
985cat >&5 <<_ACEOF
986
987
988## ----------- ##
989## Core tests. ##
990## ----------- ##
991
992_ACEOF
993
994
995# Keep a trace of the command line.
996# Strip out --no-create and --no-recursion so they do not pile up.
997# Strip out --silent because we don't want to record it for future runs.
998# Also quote any args containing shell meta-characters.
999# Make two passes to allow for proper duplicate-argument suppression.
1000ac_configure_args=
1001ac_configure_args0=
1002ac_configure_args1=
1003ac_sep=
1004ac_must_keep_next=false
1005for ac_pass in 1 2
1006do
1007  for ac_arg
1008  do
1009    case $ac_arg in
1010    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1011    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1012    | -silent | --silent | --silen | --sile | --sil)
1013      continue ;;
1014    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1015      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1016    esac
1017    case $ac_pass in
1018    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1019    2)
1020      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1021      if test $ac_must_keep_next = true; then
1022        ac_must_keep_next=false # Got value, back to normal.
1023      else
1024        case $ac_arg in
1025          *=* | --config-cache | -C | -disable-* | --disable-* \
1026          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1027          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1028          | -with-* | --with-* | -without-* | --without-* | --x)
1029            case "$ac_configure_args0 " in
1030              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1031            esac
1032            ;;
1033          -* ) ac_must_keep_next=true ;;
1034        esac
1035      fi
1036      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1037      # Get rid of the leading space.
1038      ac_sep=" "
1039      ;;
1040    esac
1041  done
1042done
1043$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1044$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1045
1046# When interrupted or exit'd, cleanup temporary files, and complete
1047# config.log.  We remove comments because anyway the quotes in there
1048# would cause problems or look ugly.
1049# WARNING: Be sure not to use single quotes in there, as some shells,
1050# such as our DU 5.0 friend, will then `close' the trap.
1051trap 'exit_status=$?
1052  # Save into config.log some information that might help in debugging.
1053  {
1054    echo
1055
1056    cat <<\_ASBOX
1057## ---------------- ##
1058## Cache variables. ##
1059## ---------------- ##
1060_ASBOX
1061    echo
1062    # The following way of writing the cache mishandles newlines in values,
1063{
1064  (set) 2>&1 |
1065    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1066    *ac_space=\ *)
1067      sed -n \
1068        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1069          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1070      ;;
1071    *)
1072      sed -n \
1073        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1074      ;;
1075    esac;
1076}
1077    echo
1078
1079    cat <<\_ASBOX
1080## ----------------- ##
1081## Output variables. ##
1082## ----------------- ##
1083_ASBOX
1084    echo
1085    for ac_var in $ac_subst_vars
1086    do
1087      eval ac_val=$`echo $ac_var`
1088      echo "$ac_var='"'"'$ac_val'"'"'"
1089    done | sort
1090    echo
1091
1092    if test -n "$ac_subst_files"; then
1093      cat <<\_ASBOX
1094## ------------- ##
1095## Output files. ##
1096## ------------- ##
1097_ASBOX
1098      echo
1099      for ac_var in $ac_subst_files
1100      do
1101        eval ac_val=$`echo $ac_var`
1102        echo "$ac_var='"'"'$ac_val'"'"'"
1103      done | sort
1104      echo
1105    fi
1106
1107    if test -s confdefs.h; then
1108      cat <<\_ASBOX
1109## ----------- ##
1110## confdefs.h. ##
1111## ----------- ##
1112_ASBOX
1113      echo
1114      sed "/^$/d" confdefs.h | sort
1115      echo
1116    fi
1117    test "$ac_signal" != 0 &&
1118      echo "$as_me: caught signal $ac_signal"
1119    echo "$as_me: exit $exit_status"
1120  } >&5
1121  rm -f core *.core &&
1122  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1123    exit $exit_status
1124     ' 0
1125for ac_signal in 1 2 13 15; do
1126  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1127done
1128ac_signal=0
1129
1130# confdefs.h avoids OS command line length limits that DEFS can exceed.
1131rm -rf conftest* confdefs.h
1132# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1133echo >confdefs.h
1134
1135# Predefined preprocessor variables.
1136
1137cat >>confdefs.h <<_ACEOF
1138#define PACKAGE_NAME "$PACKAGE_NAME"
1139_ACEOF
1140
1141
1142cat >>confdefs.h <<_ACEOF
1143#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1144_ACEOF
1145
1146
1147cat >>confdefs.h <<_ACEOF
1148#define PACKAGE_VERSION "$PACKAGE_VERSION"
1149_ACEOF
1150
1151
1152cat >>confdefs.h <<_ACEOF
1153#define PACKAGE_STRING "$PACKAGE_STRING"
1154_ACEOF
1155
1156
1157cat >>confdefs.h <<_ACEOF
1158#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1159_ACEOF
1160
1161
1162# Let the site file select an alternate cache file if it wants to.
1163# Prefer explicitly selected file to automatically selected ones.
1164if test -z "$CONFIG_SITE"; then
1165  if test "x$prefix" != xNONE; then
1166    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1167  else
1168    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1169  fi
1170fi
1171for ac_site_file in $CONFIG_SITE; do
1172  if test -r "$ac_site_file"; then
1173    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1174echo "$as_me: loading site script $ac_site_file" >&6;}
1175    sed 's/^/| /' "$ac_site_file" >&5
1176    . "$ac_site_file"
1177  fi
1178done
1179
1180if test -r "$cache_file"; then
1181  # Some versions of bash will fail to source /dev/null (special
1182  # files actually), so we avoid doing that.
1183  if test -f "$cache_file"; then
1184    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1185echo "$as_me: loading cache $cache_file" >&6;}
1186    case $cache_file in
1187      [\\/]* | ?:[\\/]* ) . $cache_file;;
1188      *)                      . ./$cache_file;;
1189    esac
1190  fi
1191else
1192  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1193echo "$as_me: creating cache $cache_file" >&6;}
1194  >$cache_file
1195fi
1196
1197# Check that the precious variables saved in the cache have kept the same
1198# value.
1199ac_cache_corrupted=false
1200for ac_var in `(set) 2>&1 |
1201               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1202  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1203  eval ac_new_set=\$ac_env_${ac_var}_set
1204  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1205  eval ac_new_val="\$ac_env_${ac_var}_value"
1206  case $ac_old_set,$ac_new_set in
1207    set,)
1208      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1209echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1210      ac_cache_corrupted=: ;;
1211    ,set)
1212      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1213echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1214      ac_cache_corrupted=: ;;
1215    ,);;
1216    *)
1217      if test "x$ac_old_val" != "x$ac_new_val"; then
1218        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1219echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1220        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1221echo "$as_me:   former value:  $ac_old_val" >&2;}
1222        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1223echo "$as_me:   current value: $ac_new_val" >&2;}
1224        ac_cache_corrupted=:
1225      fi;;
1226  esac
1227  # Pass precious variables to config.status.
1228  if test "$ac_new_set" = set; then
1229    case $ac_new_val in
1230    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1231      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1232    *) ac_arg=$ac_var=$ac_new_val ;;
1233    esac
1234    case " $ac_configure_args " in
1235      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1236      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1237    esac
1238  fi
1239done
1240if $ac_cache_corrupted; then
1241  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1242echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1243  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1244echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1245   { (exit 1); exit 1; }; }
1246fi
1247
1248ac_ext=c
1249ac_cpp='$CPP $CPPFLAGS'
1250ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1251ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1252ac_compiler_gnu=$ac_cv_c_compiler_gnu
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272ac_aux_dir=
1273for ac_dir in cf $srcdir/cf; do
1274  if test -f $ac_dir/install-sh; then
1275    ac_aux_dir=$ac_dir
1276    ac_install_sh="$ac_aux_dir/install-sh -c"
1277    break
1278  elif test -f $ac_dir/install.sh; then
1279    ac_aux_dir=$ac_dir
1280    ac_install_sh="$ac_aux_dir/install.sh -c"
1281    break
1282  elif test -f $ac_dir/shtool; then
1283    ac_aux_dir=$ac_dir
1284    ac_install_sh="$ac_aux_dir/shtool install -c"
1285    break
1286  fi
1287done
1288if test -z "$ac_aux_dir"; then
1289  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in cf $srcdir/cf" >&5
1290echo "$as_me: error: cannot find install-sh or install.sh in cf $srcdir/cf" >&2;}
1291   { (exit 1); exit 1; }; }
1292fi
1293ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1294ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1295ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1296
1297
1298#--------------------------------------------------------------------
1299# __CHANGE__
1300# Set your package name and version numbers here.  The NODOT_VERSION is
1301# required for constructing the library name on systems that don't like
1302# dots in library names (Windows).  The VERSION variable is used on the
1303# other systems.
1304#--------------------------------------------------------------------
1305
1306PACKAGE=Rappture
1307
1308MAJOR_VERSION=1
1309MINOR_VERSION=1
1310VERSION=${MAJOR_VERSION}.${MINOR_VERSION}
1311
1312#--------------------------------------------------------------------
1313# Extra build options
1314#--------------------------------------------------------------------
1315#AC_ARG_WITH(blt, [  --with-blt=DIR          Find bltInt.h in DIR],
1316#  blt_source_dir=$withval)
1317
1318#--------------------------------------------------------------------
1319# We put this here so that you can compile with -DVERSION="1.2" to
1320# encode the package version directly into the source files.
1321#--------------------------------------------------------------------
1322
1323eval cat >>confdefs.h <<_ACEOF
1324#define VERSION "${VERSION}"
1325_ACEOF
1326
1327
1328#--------------------------------------------------------------------
1329# Check whether --enable-gcc or --disable-gcc was given.  Do this
1330# before AC_CYGWIN is called so the compiler can
1331# be fully tested by built-in autoconf tools.
1332# This macro also calls AC_PROG_CC to set the compiler if --enable-gcc
1333# was not used.
1334#--------------------------------------------------------------------
1335
1336#SC_ENABLE_GCC
1337ac_ext=cc
1338ac_cpp='$CXXCPP $CPPFLAGS'
1339ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1340ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1341ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1342if test -n "$ac_tool_prefix"; then
1343  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1344  do
1345    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1346set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1347echo "$as_me:$LINENO: checking for $ac_word" >&5
1348echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1349if test "${ac_cv_prog_CXX+set}" = set; then
1350  echo $ECHO_N "(cached) $ECHO_C" >&6
1351else
1352  if test -n "$CXX"; then
1353  ac_cv_prog_CXX="$CXX" # Let the user override the test.
1354else
1355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1356for as_dir in $PATH
1357do
1358  IFS=$as_save_IFS
1359  test -z "$as_dir" && as_dir=.
1360  for ac_exec_ext in '' $ac_executable_extensions; do
1361  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1362    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1363    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1364    break 2
1365  fi
1366done
1367done
1368
1369fi
1370fi
1371CXX=$ac_cv_prog_CXX
1372if test -n "$CXX"; then
1373  echo "$as_me:$LINENO: result: $CXX" >&5
1374echo "${ECHO_T}$CXX" >&6
1375else
1376  echo "$as_me:$LINENO: result: no" >&5
1377echo "${ECHO_T}no" >&6
1378fi
1379
1380    test -n "$CXX" && break
1381  done
1382fi
1383if test -z "$CXX"; then
1384  ac_ct_CXX=$CXX
1385  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1386do
1387  # Extract the first word of "$ac_prog", so it can be a program name with args.
1388set dummy $ac_prog; ac_word=$2
1389echo "$as_me:$LINENO: checking for $ac_word" >&5
1390echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1391if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1392  echo $ECHO_N "(cached) $ECHO_C" >&6
1393else
1394  if test -n "$ac_ct_CXX"; then
1395  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1396else
1397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1398for as_dir in $PATH
1399do
1400  IFS=$as_save_IFS
1401  test -z "$as_dir" && as_dir=.
1402  for ac_exec_ext in '' $ac_executable_extensions; do
1403  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1404    ac_cv_prog_ac_ct_CXX="$ac_prog"
1405    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1406    break 2
1407  fi
1408done
1409done
1410
1411fi
1412fi
1413ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1414if test -n "$ac_ct_CXX"; then
1415  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1416echo "${ECHO_T}$ac_ct_CXX" >&6
1417else
1418  echo "$as_me:$LINENO: result: no" >&5
1419echo "${ECHO_T}no" >&6
1420fi
1421
1422  test -n "$ac_ct_CXX" && break
1423done
1424test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1425
1426  CXX=$ac_ct_CXX
1427fi
1428
1429
1430# Provide some information about the compiler.
1431echo "$as_me:$LINENO:" \
1432     "checking for C++ compiler version" >&5
1433ac_compiler=`set X $ac_compile; echo $2`
1434{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1435  (eval $ac_compiler --version </dev/null >&5) 2>&5
1436  ac_status=$?
1437  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1438  (exit $ac_status); }
1439{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1440  (eval $ac_compiler -v </dev/null >&5) 2>&5
1441  ac_status=$?
1442  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1443  (exit $ac_status); }
1444{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1445  (eval $ac_compiler -V </dev/null >&5) 2>&5
1446  ac_status=$?
1447  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1448  (exit $ac_status); }
1449
1450cat >conftest.$ac_ext <<_ACEOF
1451/* confdefs.h.  */
1452_ACEOF
1453cat confdefs.h >>conftest.$ac_ext
1454cat >>conftest.$ac_ext <<_ACEOF
1455/* end confdefs.h.  */
1456
1457int
1458main ()
1459{
1460
1461  ;
1462  return 0;
1463}
1464_ACEOF
1465ac_clean_files_save=$ac_clean_files
1466ac_clean_files="$ac_clean_files a.out a.exe b.out"
1467# Try to create an executable without -o first, disregard a.out.
1468# It will help us diagnose broken compilers, and finding out an intuition
1469# of exeext.
1470echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
1471echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
1472ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1473if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1474  (eval $ac_link_default) 2>&5
1475  ac_status=$?
1476  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1477  (exit $ac_status); }; then
1478  # Find the output, starting from the most likely.  This scheme is
1479# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1480# resort.
1481
1482# Be careful to initialize this variable, since it used to be cached.
1483# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1484ac_cv_exeext=
1485# b.out is created by i960 compilers.
1486for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1487do
1488  test -f "$ac_file" || continue
1489  case $ac_file in
1490    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1491        ;;
1492    conftest.$ac_ext )
1493        # This is the source file.
1494        ;;
1495    [ab].out )
1496        # We found the default executable, but exeext='' is most
1497        # certainly right.
1498        break;;
1499    *.* )
1500        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1501        # FIXME: I believe we export ac_cv_exeext for Libtool,
1502        # but it would be cool to find out if it's true.  Does anybody
1503        # maintain Libtool? --akim.
1504        export ac_cv_exeext
1505        break;;
1506    * )
1507        break;;
1508  esac
1509done
1510else
1511  echo "$as_me: failed program was:" >&5
1512sed 's/^/| /' conftest.$ac_ext >&5
1513
1514{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
1515See \`config.log' for more details." >&5
1516echo "$as_me: error: C++ compiler cannot create executables
1517See \`config.log' for more details." >&2;}
1518   { (exit 77); exit 77; }; }
1519fi
1520
1521ac_exeext=$ac_cv_exeext
1522echo "$as_me:$LINENO: result: $ac_file" >&5
1523echo "${ECHO_T}$ac_file" >&6
1524
1525# Check the compiler produces executables we can run.  If not, either
1526# the compiler is broken, or we cross compile.
1527echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
1528echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
1529# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1530# If not cross compiling, check that we can run a simple program.
1531if test "$cross_compiling" != yes; then
1532  if { ac_try='./$ac_file'
1533  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1534  (eval $ac_try) 2>&5
1535  ac_status=$?
1536  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1537  (exit $ac_status); }; }; then
1538    cross_compiling=no
1539  else
1540    if test "$cross_compiling" = maybe; then
1541        cross_compiling=yes
1542    else
1543        { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
1544If you meant to cross compile, use \`--host'.
1545See \`config.log' for more details." >&5
1546echo "$as_me: error: cannot run C++ compiled programs.
1547If you meant to cross compile, use \`--host'.
1548See \`config.log' for more details." >&2;}
1549   { (exit 1); exit 1; }; }
1550    fi
1551  fi
1552fi
1553echo "$as_me:$LINENO: result: yes" >&5
1554echo "${ECHO_T}yes" >&6
1555
1556rm -f a.out a.exe conftest$ac_cv_exeext b.out
1557ac_clean_files=$ac_clean_files_save
1558# Check the compiler produces executables we can run.  If not, either
1559# the compiler is broken, or we cross compile.
1560echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1561echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1562echo "$as_me:$LINENO: result: $cross_compiling" >&5
1563echo "${ECHO_T}$cross_compiling" >&6
1564
1565echo "$as_me:$LINENO: checking for suffix of executables" >&5
1566echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1567if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1568  (eval $ac_link) 2>&5
1569  ac_status=$?
1570  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1571  (exit $ac_status); }; then
1572  # If both `conftest.exe' and `conftest' are `present' (well, observable)
1573# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1574# work properly (i.e., refer to `conftest.exe'), while it won't with
1575# `rm'.
1576for ac_file in conftest.exe conftest conftest.*; do
1577  test -f "$ac_file" || continue
1578  case $ac_file in
1579    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1580    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1581          export ac_cv_exeext
1582          break;;
1583    * ) break;;
1584  esac
1585done
1586else
1587  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1588See \`config.log' for more details." >&5
1589echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1590See \`config.log' for more details." >&2;}
1591   { (exit 1); exit 1; }; }
1592fi
1593
1594rm -f conftest$ac_cv_exeext
1595echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1596echo "${ECHO_T}$ac_cv_exeext" >&6
1597
1598rm -f conftest.$ac_ext
1599EXEEXT=$ac_cv_exeext
1600ac_exeext=$EXEEXT
1601echo "$as_me:$LINENO: checking for suffix of object files" >&5
1602echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1603if test "${ac_cv_objext+set}" = set; then
1604  echo $ECHO_N "(cached) $ECHO_C" >&6
1605else
1606  cat >conftest.$ac_ext <<_ACEOF
1607/* confdefs.h.  */
1608_ACEOF
1609cat confdefs.h >>conftest.$ac_ext
1610cat >>conftest.$ac_ext <<_ACEOF
1611/* end confdefs.h.  */
1612
1613int
1614main ()
1615{
1616
1617  ;
1618  return 0;
1619}
1620_ACEOF
1621rm -f conftest.o conftest.obj
1622if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1623  (eval $ac_compile) 2>&5
1624  ac_status=$?
1625  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1626  (exit $ac_status); }; then
1627  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1628  case $ac_file in
1629    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1630    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1631       break;;
1632  esac
1633done
1634else
1635  echo "$as_me: failed program was:" >&5
1636sed 's/^/| /' conftest.$ac_ext >&5
1637
1638{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1639See \`config.log' for more details." >&5
1640echo "$as_me: error: cannot compute suffix of object files: cannot compile
1641See \`config.log' for more details." >&2;}
1642   { (exit 1); exit 1; }; }
1643fi
1644
1645rm -f conftest.$ac_cv_objext conftest.$ac_ext
1646fi
1647echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1648echo "${ECHO_T}$ac_cv_objext" >&6
1649OBJEXT=$ac_cv_objext
1650ac_objext=$OBJEXT
1651echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
1652echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
1653if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
1654  echo $ECHO_N "(cached) $ECHO_C" >&6
1655else
1656  cat >conftest.$ac_ext <<_ACEOF
1657/* confdefs.h.  */
1658_ACEOF
1659cat confdefs.h >>conftest.$ac_ext
1660cat >>conftest.$ac_ext <<_ACEOF
1661/* end confdefs.h.  */
1662
1663int
1664main ()
1665{
1666#ifndef __GNUC__
1667       choke me
1668#endif
1669
1670  ;
1671  return 0;
1672}
1673_ACEOF
1674rm -f conftest.$ac_objext
1675if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1676  (eval $ac_compile) 2>conftest.er1
1677  ac_status=$?
1678  grep -v '^ *+' conftest.er1 >conftest.err
1679  rm -f conftest.er1
1680  cat conftest.err >&5
1681  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1682  (exit $ac_status); } &&
1683         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
1684  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1685  (eval $ac_try) 2>&5
1686  ac_status=$?
1687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1688  (exit $ac_status); }; } &&
1689         { ac_try='test -s conftest.$ac_objext'
1690  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1691  (eval $ac_try) 2>&5
1692  ac_status=$?
1693  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1694  (exit $ac_status); }; }; then
1695  ac_compiler_gnu=yes
1696else
1697  echo "$as_me: failed program was:" >&5
1698sed 's/^/| /' conftest.$ac_ext >&5
1699
1700ac_compiler_gnu=no
1701fi
1702rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1703ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
1704
1705fi
1706echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
1707echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
1708GXX=`test $ac_compiler_gnu = yes && echo yes`
1709ac_test_CXXFLAGS=${CXXFLAGS+set}
1710ac_save_CXXFLAGS=$CXXFLAGS
1711CXXFLAGS="-g"
1712echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
1713echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
1714if test "${ac_cv_prog_cxx_g+set}" = set; then
1715  echo $ECHO_N "(cached) $ECHO_C" >&6
1716else
1717  cat >conftest.$ac_ext <<_ACEOF
1718/* confdefs.h.  */
1719_ACEOF
1720cat confdefs.h >>conftest.$ac_ext
1721cat >>conftest.$ac_ext <<_ACEOF
1722/* end confdefs.h.  */
1723
1724int
1725main ()
1726{
1727
1728  ;
1729  return 0;
1730}
1731_ACEOF
1732rm -f conftest.$ac_objext
1733if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1734  (eval $ac_compile) 2>conftest.er1
1735  ac_status=$?
1736  grep -v '^ *+' conftest.er1 >conftest.err
1737  rm -f conftest.er1
1738  cat conftest.err >&5
1739  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1740  (exit $ac_status); } &&
1741         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
1742  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1743  (eval $ac_try) 2>&5
1744  ac_status=$?
1745  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1746  (exit $ac_status); }; } &&
1747         { ac_try='test -s conftest.$ac_objext'
1748  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1749  (eval $ac_try) 2>&5
1750  ac_status=$?
1751  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1752  (exit $ac_status); }; }; then
1753  ac_cv_prog_cxx_g=yes
1754else
1755  echo "$as_me: failed program was:" >&5
1756sed 's/^/| /' conftest.$ac_ext >&5
1757
1758ac_cv_prog_cxx_g=no
1759fi
1760rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1761fi
1762echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
1763echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
1764if test "$ac_test_CXXFLAGS" = set; then
1765  CXXFLAGS=$ac_save_CXXFLAGS
1766elif test $ac_cv_prog_cxx_g = yes; then
1767  if test "$GXX" = yes; then
1768    CXXFLAGS="-g -O2"
1769  else
1770    CXXFLAGS="-g"
1771  fi
1772else
1773  if test "$GXX" = yes; then
1774    CXXFLAGS="-O2"
1775  else
1776    CXXFLAGS=
1777  fi
1778fi
1779for ac_declaration in \
1780   '' \
1781   'extern "C" void std::exit (int) throw (); using std::exit;' \
1782   'extern "C" void std::exit (int); using std::exit;' \
1783   'extern "C" void exit (int) throw ();' \
1784   'extern "C" void exit (int);' \
1785   'void exit (int);'
1786do
1787  cat >conftest.$ac_ext <<_ACEOF
1788/* confdefs.h.  */
1789_ACEOF
1790cat confdefs.h >>conftest.$ac_ext
1791cat >>conftest.$ac_ext <<_ACEOF
1792/* end confdefs.h.  */
1793$ac_declaration
1794#include <stdlib.h>
1795int
1796main ()
1797{
1798exit (42);
1799  ;
1800  return 0;
1801}
1802_ACEOF
1803rm -f conftest.$ac_objext
1804if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1805  (eval $ac_compile) 2>conftest.er1
1806  ac_status=$?
1807  grep -v '^ *+' conftest.er1 >conftest.err
1808  rm -f conftest.er1
1809  cat conftest.err >&5
1810  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1811  (exit $ac_status); } &&
1812         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
1813  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1814  (eval $ac_try) 2>&5
1815  ac_status=$?
1816  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1817  (exit $ac_status); }; } &&
1818         { ac_try='test -s conftest.$ac_objext'
1819  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1820  (eval $ac_try) 2>&5
1821  ac_status=$?
1822  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1823  (exit $ac_status); }; }; then
1824  :
1825else
1826  echo "$as_me: failed program was:" >&5
1827sed 's/^/| /' conftest.$ac_ext >&5
1828
1829continue
1830fi
1831rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1832  cat >conftest.$ac_ext <<_ACEOF
1833/* confdefs.h.  */
1834_ACEOF
1835cat confdefs.h >>conftest.$ac_ext
1836cat >>conftest.$ac_ext <<_ACEOF
1837/* end confdefs.h.  */
1838$ac_declaration
1839int
1840main ()
1841{
1842exit (42);
1843  ;
1844  return 0;
1845}
1846_ACEOF
1847rm -f conftest.$ac_objext
1848if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1849  (eval $ac_compile) 2>conftest.er1
1850  ac_status=$?
1851  grep -v '^ *+' conftest.er1 >conftest.err
1852  rm -f conftest.er1
1853  cat conftest.err >&5
1854  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1855  (exit $ac_status); } &&
1856         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
1857  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1858  (eval $ac_try) 2>&5
1859  ac_status=$?
1860  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1861  (exit $ac_status); }; } &&
1862         { ac_try='test -s conftest.$ac_objext'
1863  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1864  (eval $ac_try) 2>&5
1865  ac_status=$?
1866  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1867  (exit $ac_status); }; }; then
1868  break
1869else
1870  echo "$as_me: failed program was:" >&5
1871sed 's/^/| /' conftest.$ac_ext >&5
1872
1873fi
1874rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1875done
1876rm -f conftest*
1877if test -n "$ac_declaration"; then
1878  echo '#ifdef __cplusplus' >>confdefs.h
1879  echo $ac_declaration      >>confdefs.h
1880  echo '#endif'             >>confdefs.h
1881fi
1882
1883ac_ext=c
1884ac_cpp='$CPP $CPPFLAGS'
1885ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1886ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1887ac_compiler_gnu=$ac_cv_c_compiler_gnu
1888
1889# Find a good install program.  We prefer a C program (faster),
1890# so one script is as good as another.  But avoid the broken or
1891# incompatible versions:
1892# SysV /etc/install, /usr/sbin/install
1893# SunOS /usr/etc/install
1894# IRIX /sbin/install
1895# AIX /bin/install
1896# AmigaOS /C/install, which installs bootblocks on floppy discs
1897# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1898# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1899# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1900# OS/2's system install, which has a completely different semantic
1901# ./install, which can be erroneously created by make from ./install.sh.
1902echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1903echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1904if test -z "$INSTALL"; then
1905if test "${ac_cv_path_install+set}" = set; then
1906  echo $ECHO_N "(cached) $ECHO_C" >&6
1907else
1908  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1909for as_dir in $PATH
1910do
1911  IFS=$as_save_IFS
1912  test -z "$as_dir" && as_dir=.
1913  # Account for people who put trailing slashes in PATH elements.
1914case $as_dir/ in
1915  ./ | .// | /cC/* | \
1916  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1917  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1918  /usr/ucb/* ) ;;
1919  *)
1920    # OSF1 and SCO ODT 3.0 have their own names for install.
1921    # Don't use installbsd from OSF since it installs stuff as root
1922    # by default.
1923    for ac_prog in ginstall scoinst install; do
1924      for ac_exec_ext in '' $ac_executable_extensions; do
1925        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1926          if test $ac_prog = install &&
1927            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1928            # AIX install.  It has an incompatible calling convention.
1929            :
1930          elif test $ac_prog = install &&
1931            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1932            # program-specific install script used by HP pwplus--don't use.
1933            :
1934          else
1935            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1936            break 3
1937          fi
1938        fi
1939      done
1940    done
1941    ;;
1942esac
1943done
1944
1945
1946fi
1947  if test "${ac_cv_path_install+set}" = set; then
1948    INSTALL=$ac_cv_path_install
1949  else
1950    # As a last resort, use the slow shell script.  We don't cache a
1951    # path for INSTALL within a source directory, because that will
1952    # break other packages using the cache if that directory is
1953    # removed, or if the path is relative.
1954    INSTALL=$ac_install_sh
1955  fi
1956fi
1957echo "$as_me:$LINENO: result: $INSTALL" >&5
1958echo "${ECHO_T}$INSTALL" >&6
1959
1960# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1961# It thinks the first close brace ends the variable substitution.
1962test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1963
1964test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1965
1966test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1967
1968
1969#--------------------------------------------------------------------
1970# Checks to see if the make program sets the $MAKE variable.
1971#--------------------------------------------------------------------
1972
1973echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1974echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1975set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1976if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1977  echo $ECHO_N "(cached) $ECHO_C" >&6
1978else
1979  cat >conftest.make <<\_ACEOF
1980all:
1981        @echo 'ac_maketemp="$(MAKE)"'
1982_ACEOF
1983# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1984eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1985if test -n "$ac_maketemp"; then
1986  eval ac_cv_prog_make_${ac_make}_set=yes
1987else
1988  eval ac_cv_prog_make_${ac_make}_set=no
1989fi
1990rm -f conftest.make
1991fi
1992if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1993  echo "$as_me:$LINENO: result: yes" >&5
1994echo "${ECHO_T}yes" >&6
1995  SET_MAKE=
1996else
1997  echo "$as_me:$LINENO: result: no" >&5
1998echo "${ECHO_T}no" >&6
1999  SET_MAKE="MAKE=${MAKE-make}"
2000fi
2001
2002
2003#--------------------------------------------------------------------
2004# Find ranlib
2005#--------------------------------------------------------------------
2006
2007if test -n "$ac_tool_prefix"; then
2008  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2009set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2010echo "$as_me:$LINENO: checking for $ac_word" >&5
2011echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2012if test "${ac_cv_prog_RANLIB+set}" = set; then
2013  echo $ECHO_N "(cached) $ECHO_C" >&6
2014else
2015  if test -n "$RANLIB"; then
2016  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2017else
2018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2019for as_dir in $PATH
2020do
2021  IFS=$as_save_IFS
2022  test -z "$as_dir" && as_dir=.
2023  for ac_exec_ext in '' $ac_executable_extensions; do
2024  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2025    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2026    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2027    break 2
2028  fi
2029done
2030done
2031
2032fi
2033fi
2034RANLIB=$ac_cv_prog_RANLIB
2035if test -n "$RANLIB"; then
2036  echo "$as_me:$LINENO: result: $RANLIB" >&5
2037echo "${ECHO_T}$RANLIB" >&6
2038else
2039  echo "$as_me:$LINENO: result: no" >&5
2040echo "${ECHO_T}no" >&6
2041fi
2042
2043fi
2044if test -z "$ac_cv_prog_RANLIB"; then
2045  ac_ct_RANLIB=$RANLIB
2046  # Extract the first word of "ranlib", so it can be a program name with args.
2047set dummy ranlib; ac_word=$2
2048echo "$as_me:$LINENO: checking for $ac_word" >&5
2049echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2050if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2051  echo $ECHO_N "(cached) $ECHO_C" >&6
2052else
2053  if test -n "$ac_ct_RANLIB"; then
2054  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2055else
2056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2057for as_dir in $PATH
2058do
2059  IFS=$as_save_IFS
2060  test -z "$as_dir" && as_dir=.
2061  for ac_exec_ext in '' $ac_executable_extensions; do
2062  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2063    ac_cv_prog_ac_ct_RANLIB="ranlib"
2064    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2065    break 2
2066  fi
2067done
2068done
2069
2070  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2071fi
2072fi
2073ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2074if test -n "$ac_ct_RANLIB"; then
2075  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2076echo "${ECHO_T}$ac_ct_RANLIB" >&6
2077else
2078  echo "$as_me:$LINENO: result: no" >&5
2079echo "${ECHO_T}no" >&6
2080fi
2081
2082  RANLIB=$ac_ct_RANLIB
2083else
2084  RANLIB="$ac_cv_prog_RANLIB"
2085fi
2086
2087
2088#--------------------------------------------------------------------
2089# This macro performs additional compiler tests.
2090#--------------------------------------------------------------------
2091
2092# Make sure we can run config.sub.
2093$ac_config_sub sun4 >/dev/null 2>&1 ||
2094  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2095echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2096   { (exit 1); exit 1; }; }
2097
2098echo "$as_me:$LINENO: checking build system type" >&5
2099echo $ECHO_N "checking build system type... $ECHO_C" >&6
2100if test "${ac_cv_build+set}" = set; then
2101  echo $ECHO_N "(cached) $ECHO_C" >&6
2102else
2103  ac_cv_build_alias=$build_alias
2104test -z "$ac_cv_build_alias" &&
2105  ac_cv_build_alias=`$ac_config_guess`
2106test -z "$ac_cv_build_alias" &&
2107  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2108echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2109   { (exit 1); exit 1; }; }
2110ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2111  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2112echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2113   { (exit 1); exit 1; }; }
2114
2115fi
2116echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2117echo "${ECHO_T}$ac_cv_build" >&6
2118build=$ac_cv_build
2119build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2120build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2121build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2122
2123
2124echo "$as_me:$LINENO: checking host system type" >&5
2125echo $ECHO_N "checking host system type... $ECHO_C" >&6
2126if test "${ac_cv_host+set}" = set; then
2127  echo $ECHO_N "(cached) $ECHO_C" >&6
2128else
2129  ac_cv_host_alias=$host_alias
2130test -z "$ac_cv_host_alias" &&
2131  ac_cv_host_alias=$ac_cv_build_alias
2132ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2133  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2134echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2135   { (exit 1); exit 1; }; }
2136
2137fi
2138echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2139echo "${ECHO_T}$ac_cv_host" >&6
2140host=$ac_cv_host
2141host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2142host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2143host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2144
2145
2146case $host_os in
2147  *cygwin* ) CYGWIN=yes;;
2148         * ) CYGWIN=no;;
2149esac
2150
2151
2152#--------------------------------------------------------------------
2153# Determines the correct binary file extension (.o, .obj, .exe etc.)
2154#--------------------------------------------------------------------
2155
2156
2157
2158
2159#--------------------------------------------------------------------
2160# "cygpath" is used on windows to generate native path names for include
2161# files.
2162# These variables should only be used with the compiler and linker since
2163# they generate native path names.
2164#
2165# Unix tclConfig.sh points SRC_DIR at the top-level directory of
2166# the Tcl sources, while the Windows tclConfig.sh points SRC_DIR at
2167# the win subdirectory.  Hence the different usages of SRC_DIR below.
2168#
2169# This must be done before calling SC_PUBLIC_TCL_HEADERS
2170#--------------------------------------------------------------------
2171
2172case "`uname -s`" in
2173    *win32* | *WIN32* | *CYGWIN_NT*)
2174        CYGPATH="cygpath -w"
2175    ;;
2176    *)
2177        CYGPATH=echo
2178    ;;
2179esac
2180
2181
2182
2183#--------------------------------------------------------------------
2184# __CHANGE__
2185# Choose which headers you need.  Extension authors should try very
2186# hard to only rely on the Tcl public header files.  Internal headers
2187# contain private data structures and are subject to change without
2188# notice.
2189# This MUST be called before SC_PATH_TCLCONFIG/SC_LOAD_TCLCONFIG
2190#--------------------------------------------------------------------
2191
2192
2193    echo "$as_me:$LINENO: checking for Tcl public headers" >&5
2194echo $ECHO_N "checking for Tcl public headers... $ECHO_C" >&6
2195
2196
2197# Check whether --with-tclinclude or --without-tclinclude was given.
2198if test "${with_tclinclude+set}" = set; then
2199  withval="$with_tclinclude"
2200  with_tclinclude=${withval}
2201fi;
2202
2203    if test x"${with_tclinclude}" != x ; then
2204        if test -f "${with_tclinclude}/tcl.h" ; then
2205            ac_cv_c_tclh=${with_tclinclude}
2206        else
2207            { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory does not contain Tcl public header file tcl.h" >&5
2208echo "$as_me: error: ${with_tclinclude} directory does not contain Tcl public header file tcl.h" >&2;}
2209   { (exit 1); exit 1; }; }
2210        fi
2211    else
2212        if test "${ac_cv_c_tclh+set}" = set; then
2213  echo $ECHO_N "(cached) $ECHO_C" >&6
2214else
2215
2216            # Use the value from --with-tclinclude, if it was given
2217
2218            if test x"${with_tclinclude}" != x ; then
2219                ac_cv_c_tclh=${with_tclinclude}
2220            else
2221                # Check in the includedir, if --prefix was specified
2222
2223                eval "temp_includedir=${includedir}"
2224                for i in \
2225                        `ls -d ${temp_includedir} 2>/dev/null` \
2226                        /usr/local/include /usr/include ; do
2227                    if test -f "$i/tcl.h" ; then
2228                        ac_cv_c_tclh=$i
2229                        break
2230                    fi
2231                done
2232            fi
2233
2234fi
2235
2236    fi
2237
2238    # Print a message based on how we determined the include path
2239
2240    if test x"${ac_cv_c_tclh}" = x ; then
2241        { { echo "$as_me:$LINENO: error: tcl.h not found.  Please specify its location with --with-tclinclude" >&5
2242echo "$as_me: error: tcl.h not found.  Please specify its location with --with-tclinclude" >&2;}
2243   { (exit 1); exit 1; }; }
2244    else
2245        echo "$as_me:$LINENO: result: ${ac_cv_c_tclh}" >&5
2246echo "${ECHO_T}${ac_cv_c_tclh}" >&6
2247    fi
2248
2249    # Convert to a native path and substitute into the output files.
2250
2251    INCLUDE_DIR_NATIVE=`${CYGPATH} ${ac_cv_c_tclh}`
2252
2253    TCL_INCLUDES=-I\"${INCLUDE_DIR_NATIVE}\"
2254
2255
2256
2257#SC_PRIVATE_TCL_HEADERS
2258
2259#--------------------------------------------------------------------
2260# Load the tclConfig.sh file
2261#--------------------------------------------------------------------
2262
2263
2264    #
2265    # Ok, lets find the tcl configuration
2266    # First, look for one uninstalled.
2267    # the alternative search directory is invoked by --with-tcl
2268    #
2269
2270    if test x"${no_tcl}" = x ; then
2271        # we reset no_tcl in case something fails here
2272        no_tcl=true
2273
2274# Check whether --with-tcl or --without-tcl was given.
2275if test "${with_tcl+set}" = set; then
2276  withval="$with_tcl"
2277  with_tclconfig=${withval}
2278fi;
2279        echo "$as_me:$LINENO: checking for Tcl configuration" >&5
2280echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6
2281        if test "${ac_cv_c_tclconfig+set}" = set; then
2282  echo $ECHO_N "(cached) $ECHO_C" >&6
2283else
2284
2285
2286            # First check to see if --with-tcl was specified.
2287            if test x"${with_tclconfig}" != x ; then
2288                if test -f "${with_tclconfig}/tclConfig.sh" ; then
2289                    ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
2290                else
2291                    { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
2292echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
2293   { (exit 1); exit 1; }; }
2294                fi
2295            fi
2296
2297            # then check for a private Tcl installation
2298            if test x"${ac_cv_c_tclconfig}" = x ; then
2299                for i in \
2300                        ../tcl \
2301                        `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
2302                        ../../tcl \
2303                        `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
2304                        ../../../tcl \
2305                        `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
2306                    if test -f "$i/unix/tclConfig.sh" ; then
2307                        ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
2308                        break
2309                    fi
2310                done
2311            fi
2312
2313            # check in a few common install locations
2314            if test x"${ac_cv_c_tclconfig}" = x ; then
2315                for i in `ls -d ${prefix}/lib 2>/dev/null` \
2316                        `ls -d /usr/local/lib 2>/dev/null` ; do
2317                    if test -f "$i/tclConfig.sh" ; then
2318                        ac_cv_c_tclconfig=`(cd $i; pwd)`
2319                        break
2320                    fi
2321                done
2322            fi
2323
2324            # check in a few other private locations
2325            if test x"${ac_cv_c_tclconfig}" = x ; then
2326                for i in \
2327                        ${srcdir}/../tcl \
2328                        `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
2329                    if test -f "$i/unix/tclConfig.sh" ; then
2330                    ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
2331                    break
2332                fi
2333                done
2334            fi
2335
2336fi
2337
2338
2339        if test x"${ac_cv_c_tclconfig}" = x ; then
2340            TCL_BIN_DIR="# no Tcl configs found"
2341            { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
2342echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
2343            exit 0
2344        else
2345            no_tcl=
2346            TCL_BIN_DIR=${ac_cv_c_tclconfig}
2347            echo "$as_me:$LINENO: result: found $TCL_BIN_DIR/tclConfig.sh" >&5
2348echo "${ECHO_T}found $TCL_BIN_DIR/tclConfig.sh" >&6
2349        fi
2350    fi
2351
2352
2353    echo "$as_me:$LINENO: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5
2354echo $ECHO_N "checking for existence of $TCL_BIN_DIR/tclConfig.sh... $ECHO_C" >&6
2355
2356    if test -f "$TCL_BIN_DIR/tclConfig.sh" ; then
2357        echo "$as_me:$LINENO: result: loading" >&5
2358echo "${ECHO_T}loading" >&6
2359        . $TCL_BIN_DIR/tclConfig.sh
2360    else
2361        echo "$as_me:$LINENO: result: file not found" >&5
2362echo "${ECHO_T}file not found" >&6
2363    fi
2364
2365    #
2366    # The eval is required to do the TCL_DBGX substitution in the
2367    # TCL_LIB_FILE variable
2368    #
2369
2370    eval TCL_LIB_FILE=${TCL_LIB_FILE}
2371    eval TCL_LIB_FLAG=${TCL_LIB_FLAG}
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389#--------------------------------------------------------------------
2390# Look for bltInt.h on the normal include path.  If not found, look
2391# for it in the --with-blt directory.
2392#--------------------------------------------------------------------
2393echo "$as_me:$LINENO: checking for bltInt.h" >&5
2394echo $ECHO_N "checking for bltInt.h... $ECHO_C" >&6
2395BLT_SRC_DIR=""
2396if test "x$blt_source_dir" != "x" ; then
2397  #
2398  # Verify that a tclConfig.sh file exists in the directory specified
2399  # by --with-blt.
2400  #
2401  if test -r "$blt_source_dir/bltInt.h" ; then
2402    BLT_SRC_DIR="$blt_source_dir"
2403  elif test -r "$blt_source_dir/src/bltInt.h" ; then
2404    BLT_SRC_DIR="$blt_source_dir/src"
2405  fi
2406else
2407  #
2408  # Otherwise, search for the bltInt.h include file...
2409  # 1. Search previously named locations.
2410  #
2411  for dir in \
2412   $prefix \
2413   $exec_prefix
2414  do
2415    if test -r "$dir/bltInt.h" ; then
2416      BLT_SRC_DIR="$dir"
2417      break
2418    elif test -r "$dir/include/bltInt.h" ; then
2419      BLT_SRC_DIR="$dir/lib"
2420      break
2421    fi
2422  done
2423  #
2424  #  2. Search source directories.
2425  #
2426  if test "x$BLT_SRC_DIR" = "x" ; then
2427    for dir in \
2428     `ls -dr ../blt[2-3].[0-9]* 2>/dev/null` \
2429     ../blt \
2430     `ls -dr ../../blt[2-3].[0-9]* 2>/dev/null` \
2431     ../../blt \
2432     `ls -dr ../../../blt[2-3].[0-9]* 2>/dev/null` \
2433     ../../../blt
2434    do
2435      if test -r "$dir/bltInt.h" ; then
2436        tclConfigFile="$dir/bltInt.h"
2437        break
2438      fi
2439    done
2440  fi
2441fi
2442
2443echo "$as_me:$LINENO: result: ${BLT_SRC_DIR}" >&5
2444echo "${ECHO_T}${BLT_SRC_DIR}" >&6
2445
2446if test "x$BLT_SRC_DIR" = "x" ; then
2447  echo "can't find BLT include file \"bltInt.h\""
2448  echo "use --with-blt=DIR to specify the location of the BLT sources"
2449  exit 1
2450fi
2451
2452
2453
2454#--------------------------------------------------------------------
2455# __CHANGE__
2456# A few miscellaneous platform-specific items:
2457#
2458# Define a special symbol for Windows (BUILD_exampleA in this case) so
2459# that we create the export library with the dll.  See sha1.h on how
2460# to use this.
2461#
2462# Windows creates a few extra files that need to be cleaned up.
2463# You can add more files to clean if your extension creates any extra
2464# files.
2465#
2466# Define any extra compiler flags in the PACKAGE_CFLAGS variable.
2467# These will be appended to the current set of compiler flags for
2468# your system.
2469#--------------------------------------------------------------------
2470
2471case "`uname -s`" in
2472    *win32* | *WIN32* | *CYGWIN_NT*)
2473        cat >>confdefs.h <<\_ACEOF
2474#define BUILD_Rappture 1
2475_ACEOF
2476
2477        CLEANFILES="*.lib *.dll *.exp *.ilk *.pdb vc50.pch"
2478
2479    ;;
2480    *)
2481        CLEANFILES=
2482    ;;
2483esac
2484
2485#--------------------------------------------------------------------
2486# Check whether --enable-threads or --disable-threads was given.
2487# So far only Tcl responds to this one.
2488#--------------------------------------------------------------------
2489
2490ac_ext=c
2491ac_cpp='$CPP $CPPFLAGS'
2492ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2493ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2494ac_compiler_gnu=$ac_cv_c_compiler_gnu
2495if test -n "$ac_tool_prefix"; then
2496  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2497set dummy ${ac_tool_prefix}gcc; ac_word=$2
2498echo "$as_me:$LINENO: checking for $ac_word" >&5
2499echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2500if test "${ac_cv_prog_CC+set}" = set; then
2501  echo $ECHO_N "(cached) $ECHO_C" >&6
2502else
2503  if test -n "$CC"; then
2504  ac_cv_prog_CC="$CC" # Let the user override the test.
2505else
2506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2507for as_dir in $PATH
2508do
2509  IFS=$as_save_IFS
2510  test -z "$as_dir" && as_dir=.
2511  for ac_exec_ext in '' $ac_executable_extensions; do
2512  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2513    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2514    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2515    break 2
2516  fi
2517done
2518done
2519
2520fi
2521fi
2522CC=$ac_cv_prog_CC
2523if test -n "$CC"; then
2524  echo "$as_me:$LINENO: result: $CC" >&5
2525echo "${ECHO_T}$CC" >&6
2526else
2527  echo "$as_me:$LINENO: result: no" >&5
2528echo "${ECHO_T}no" >&6
2529fi
2530
2531fi
2532if test -z "$ac_cv_prog_CC"; then
2533  ac_ct_CC=$CC
2534  # Extract the first word of "gcc", so it can be a program name with args.
2535set dummy gcc; ac_word=$2
2536echo "$as_me:$LINENO: checking for $ac_word" >&5
2537echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2538if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2539  echo $ECHO_N "(cached) $ECHO_C" >&6
2540else
2541  if test -n "$ac_ct_CC"; then
2542  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2543else
2544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2545for as_dir in $PATH
2546do
2547  IFS=$as_save_IFS
2548  test -z "$as_dir" && as_dir=.
2549  for ac_exec_ext in '' $ac_executable_extensions; do
2550  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2551    ac_cv_prog_ac_ct_CC="gcc"
2552    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2553    break 2
2554  fi
2555done
2556done
2557
2558fi
2559fi
2560ac_ct_CC=$ac_cv_prog_ac_ct_CC
2561if test -n "$ac_ct_CC"; then
2562  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2563echo "${ECHO_T}$ac_ct_CC" >&6
2564else
2565  echo "$as_me:$LINENO: result: no" >&5
2566echo "${ECHO_T}no" >&6
2567fi
2568
2569  CC=$ac_ct_CC
2570else
2571  CC="$ac_cv_prog_CC"
2572fi
2573
2574if test -z "$CC"; then
2575  if test -n "$ac_tool_prefix"; then
2576  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2577set dummy ${ac_tool_prefix}cc; ac_word=$2
2578echo "$as_me:$LINENO: checking for $ac_word" >&5
2579echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2580if test "${ac_cv_prog_CC+set}" = set; then
2581  echo $ECHO_N "(cached) $ECHO_C" >&6
2582else
2583  if test -n "$CC"; then
2584  ac_cv_prog_CC="$CC" # Let the user override the test.
2585else
2586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2587for as_dir in $PATH
2588do
2589  IFS=$as_save_IFS
2590  test -z "$as_dir" && as_dir=.
2591  for ac_exec_ext in '' $ac_executable_extensions; do
2592  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2593    ac_cv_prog_CC="${ac_tool_prefix}cc"
2594    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2595    break 2
2596  fi
2597done
2598done
2599
2600fi
2601fi
2602CC=$ac_cv_prog_CC
2603if test -n "$CC"; then
2604  echo "$as_me:$LINENO: result: $CC" >&5
2605echo "${ECHO_T}$CC" >&6
2606else
2607  echo "$as_me:$LINENO: result: no" >&5
2608echo "${ECHO_T}no" >&6
2609fi
2610
2611fi
2612if test -z "$ac_cv_prog_CC"; then
2613  ac_ct_CC=$CC
2614  # Extract the first word of "cc", so it can be a program name with args.
2615set dummy cc; ac_word=$2
2616echo "$as_me:$LINENO: checking for $ac_word" >&5
2617echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2618if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2619  echo $ECHO_N "(cached) $ECHO_C" >&6
2620else
2621  if test -n "$ac_ct_CC"; then
2622  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2623else
2624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2625for as_dir in $PATH
2626do
2627  IFS=$as_save_IFS
2628  test -z "$as_dir" && as_dir=.
2629  for ac_exec_ext in '' $ac_executable_extensions; do
2630  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2631    ac_cv_prog_ac_ct_CC="cc"
2632    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2633    break 2
2634  fi
2635done
2636done
2637
2638fi
2639fi
2640ac_ct_CC=$ac_cv_prog_ac_ct_CC
2641if test -n "$ac_ct_CC"; then
2642  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2643echo "${ECHO_T}$ac_ct_CC" >&6
2644else
2645  echo "$as_me:$LINENO: result: no" >&5
2646echo "${ECHO_T}no" >&6
2647fi
2648
2649  CC=$ac_ct_CC
2650else
2651  CC="$ac_cv_prog_CC"
2652fi
2653
2654fi
2655if test -z "$CC"; then
2656  # Extract the first word of "cc", so it can be a program name with args.
2657set dummy cc; ac_word=$2
2658echo "$as_me:$LINENO: checking for $ac_word" >&5
2659echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2660if test "${ac_cv_prog_CC+set}" = set; then
2661  echo $ECHO_N "(cached) $ECHO_C" >&6
2662else
2663  if test -n "$CC"; then
2664  ac_cv_prog_CC="$CC" # Let the user override the test.
2665else
2666  ac_prog_rejected=no
2667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2668for as_dir in $PATH
2669do
2670  IFS=$as_save_IFS
2671  test -z "$as_dir" && as_dir=.
2672  for ac_exec_ext in '' $ac_executable_extensions; do
2673  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2674    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2675       ac_prog_rejected=yes
2676       continue
2677     fi
2678    ac_cv_prog_CC="cc"
2679    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2680    break 2
2681  fi
2682done
2683done
2684
2685if test $ac_prog_rejected = yes; then
2686  # We found a bogon in the path, so make sure we never use it.
2687  set dummy $ac_cv_prog_CC
2688  shift
2689  if test $# != 0; then
2690    # We chose a different compiler from the bogus one.
2691    # However, it has the same basename, so the bogon will be chosen
2692    # first if we set CC to just the basename; use the full file name.
2693    shift
2694    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2695  fi
2696fi
2697fi
2698fi
2699CC=$ac_cv_prog_CC
2700if test -n "$CC"; then
2701  echo "$as_me:$LINENO: result: $CC" >&5
2702echo "${ECHO_T}$CC" >&6
2703else
2704  echo "$as_me:$LINENO: result: no" >&5
2705echo "${ECHO_T}no" >&6
2706fi
2707
2708fi
2709if test -z "$CC"; then
2710  if test -n "$ac_tool_prefix"; then
2711  for ac_prog in cl
2712  do
2713    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2714set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2715echo "$as_me:$LINENO: checking for $ac_word" >&5
2716echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2717if test "${ac_cv_prog_CC+set}" = set; then
2718  echo $ECHO_N "(cached) $ECHO_C" >&6
2719else
2720  if test -n "$CC"; then
2721  ac_cv_prog_CC="$CC" # Let the user override the test.
2722else
2723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2724for as_dir in $PATH
2725do
2726  IFS=$as_save_IFS
2727  test -z "$as_dir" && as_dir=.
2728  for ac_exec_ext in '' $ac_executable_extensions; do
2729  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2730    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2731    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2732    break 2
2733  fi
2734done
2735done
2736
2737fi
2738fi
2739CC=$ac_cv_prog_CC
2740if test -n "$CC"; then
2741  echo "$as_me:$LINENO: result: $CC" >&5
2742echo "${ECHO_T}$CC" >&6
2743else
2744  echo "$as_me:$LINENO: result: no" >&5
2745echo "${ECHO_T}no" >&6
2746fi
2747
2748    test -n "$CC" && break
2749  done
2750fi
2751if test -z "$CC"; then
2752  ac_ct_CC=$CC
2753  for ac_prog in cl
2754do
2755  # Extract the first word of "$ac_prog", so it can be a program name with args.
2756set dummy $ac_prog; ac_word=$2
2757echo "$as_me:$LINENO: checking for $ac_word" >&5
2758echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2759if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2760  echo $ECHO_N "(cached) $ECHO_C" >&6
2761else
2762  if test -n "$ac_ct_CC"; then
2763  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2764else
2765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2766for as_dir in $PATH
2767do
2768  IFS=$as_save_IFS
2769  test -z "$as_dir" && as_dir=.
2770  for ac_exec_ext in '' $ac_executable_extensions; do
2771  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2772    ac_cv_prog_ac_ct_CC="$ac_prog"
2773    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2774    break 2
2775  fi
2776done
2777done
2778
2779fi
2780fi
2781ac_ct_CC=$ac_cv_prog_ac_ct_CC
2782if test -n "$ac_ct_CC"; then
2783  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2784echo "${ECHO_T}$ac_ct_CC" >&6
2785else
2786  echo "$as_me:$LINENO: result: no" >&5
2787echo "${ECHO_T}no" >&6
2788fi
2789
2790  test -n "$ac_ct_CC" && break
2791done
2792
2793  CC=$ac_ct_CC
2794fi
2795
2796fi
2797
2798
2799test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2800See \`config.log' for more details." >&5
2801echo "$as_me: error: no acceptable C compiler found in \$PATH
2802See \`config.log' for more details." >&2;}
2803   { (exit 1); exit 1; }; }
2804
2805# Provide some information about the compiler.
2806echo "$as_me:$LINENO:" \
2807     "checking for C compiler version" >&5
2808ac_compiler=`set X $ac_compile; echo $2`
2809{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2810  (eval $ac_compiler --version </dev/null >&5) 2>&5
2811  ac_status=$?
2812  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2813  (exit $ac_status); }
2814{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2815  (eval $ac_compiler -v </dev/null >&5) 2>&5
2816  ac_status=$?
2817  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2818  (exit $ac_status); }
2819{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2820  (eval $ac_compiler -V </dev/null >&5) 2>&5
2821  ac_status=$?
2822  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2823  (exit $ac_status); }
2824
2825echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2826echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2827if test "${ac_cv_c_compiler_gnu+set}" = set; then
2828  echo $ECHO_N "(cached) $ECHO_C" >&6
2829else
2830  cat >conftest.$ac_ext <<_ACEOF
2831/* confdefs.h.  */
2832_ACEOF
2833cat confdefs.h >>conftest.$ac_ext
2834cat >>conftest.$ac_ext <<_ACEOF
2835/* end confdefs.h.  */
2836
2837int
2838main ()
2839{
2840#ifndef __GNUC__
2841       choke me
2842#endif
2843
2844  ;
2845  return 0;
2846}
2847_ACEOF
2848rm -f conftest.$ac_objext
2849if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2850  (eval $ac_compile) 2>conftest.er1
2851  ac_status=$?
2852  grep -v '^ *+' conftest.er1 >conftest.err
2853  rm -f conftest.er1
2854  cat conftest.err >&5
2855  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856  (exit $ac_status); } &&
2857         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2858  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2859  (eval $ac_try) 2>&5
2860  ac_status=$?
2861  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2862  (exit $ac_status); }; } &&
2863         { ac_try='test -s conftest.$ac_objext'
2864  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2865  (eval $ac_try) 2>&5
2866  ac_status=$?
2867  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2868  (exit $ac_status); }; }; then
2869  ac_compiler_gnu=yes
2870else
2871  echo "$as_me: failed program was:" >&5
2872sed 's/^/| /' conftest.$ac_ext >&5
2873
2874ac_compiler_gnu=no
2875fi
2876rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2877ac_cv_c_compiler_gnu=$ac_compiler_gnu
2878
2879fi
2880echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2881echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2882GCC=`test $ac_compiler_gnu = yes && echo yes`
2883ac_test_CFLAGS=${CFLAGS+set}
2884ac_save_CFLAGS=$CFLAGS
2885CFLAGS="-g"
2886echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2887echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2888if test "${ac_cv_prog_cc_g+set}" = set; then
2889  echo $ECHO_N "(cached) $ECHO_C" >&6
2890else
2891  cat >conftest.$ac_ext <<_ACEOF
2892/* confdefs.h.  */
2893_ACEOF
2894cat confdefs.h >>conftest.$ac_ext
2895cat >>conftest.$ac_ext <<_ACEOF
2896/* end confdefs.h.  */
2897
2898int
2899main ()
2900{
2901
2902  ;
2903  return 0;
2904}
2905_ACEOF
2906rm -f conftest.$ac_objext
2907if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2908  (eval $ac_compile) 2>conftest.er1
2909  ac_status=$?
2910  grep -v '^ *+' conftest.er1 >conftest.err
2911  rm -f conftest.er1
2912  cat conftest.err >&5
2913  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914  (exit $ac_status); } &&
2915         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2916  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2917  (eval $ac_try) 2>&5
2918  ac_status=$?
2919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920  (exit $ac_status); }; } &&
2921         { ac_try='test -s conftest.$ac_objext'
2922  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2923  (eval $ac_try) 2>&5
2924  ac_status=$?
2925  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926  (exit $ac_status); }; }; then
2927  ac_cv_prog_cc_g=yes
2928else
2929  echo "$as_me: failed program was:" >&5
2930sed 's/^/| /' conftest.$ac_ext >&5
2931
2932ac_cv_prog_cc_g=no
2933fi
2934rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2935fi
2936echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2937echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2938if test "$ac_test_CFLAGS" = set; then
2939  CFLAGS=$ac_save_CFLAGS
2940elif test $ac_cv_prog_cc_g = yes; then
2941  if test "$GCC" = yes; then
2942    CFLAGS="-g -O2"
2943  else
2944    CFLAGS="-g"
2945  fi
2946else
2947  if test "$GCC" = yes; then
2948    CFLAGS="-O2"
2949  else
2950    CFLAGS=
2951  fi
2952fi
2953echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2954echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2955if test "${ac_cv_prog_cc_stdc+set}" = set; then
2956  echo $ECHO_N "(cached) $ECHO_C" >&6
2957else
2958  ac_cv_prog_cc_stdc=no
2959ac_save_CC=$CC
2960cat >conftest.$ac_ext <<_ACEOF
2961/* confdefs.h.  */
2962_ACEOF
2963cat confdefs.h >>conftest.$ac_ext
2964cat >>conftest.$ac_ext <<_ACEOF
2965/* end confdefs.h.  */
2966#include <stdarg.h>
2967#include <stdio.h>
2968#include <sys/types.h>
2969#include <sys/stat.h>
2970/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2971struct buf { int x; };
2972FILE * (*rcsopen) (struct buf *, struct stat *, int);
2973static char *e (p, i)
2974     char **p;
2975     int i;
2976{
2977  return p[i];
2978}
2979static char *f (char * (*g) (char **, int), char **p, ...)
2980{
2981  char *s;
2982  va_list v;
2983  va_start (v,p);
2984  s = g (p, va_arg (v,int));
2985  va_end (v);
2986  return s;
2987}
2988
2989/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2990   function prototypes and stuff, but not '\xHH' hex character constants.
2991   These don't provoke an error unfortunately, instead are silently treated
2992   as 'x'.  The following induces an error, until -std1 is added to get
2993   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2994   array size at least.  It's necessary to write '\x00'==0 to get something
2995   that's true only with -std1.  */
2996int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2997
2998int test (int i, double x);
2999struct s1 {int (*f) (int a);};
3000struct s2 {int (*f) (double a);};
3001int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3002int argc;
3003char **argv;
3004int
3005main ()
3006{
3007return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3008  ;
3009  return 0;
3010}
3011_ACEOF
3012# Don't try gcc -ansi; that turns off useful extensions and
3013# breaks some systems' header files.
3014# AIX                   -qlanglvl=ansi
3015# Ultrix and OSF/1      -std1
3016# HP-UX 10.20 and later -Ae
3017# HP-UX older versions  -Aa -D_HPUX_SOURCE
3018# SVR4                  -Xc -D__EXTENSIONS__
3019for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3020do
3021  CC="$ac_save_CC $ac_arg"
3022  rm -f conftest.$ac_objext
3023if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3024  (eval $ac_compile) 2>conftest.er1
3025  ac_status=$?
3026  grep -v '^ *+' conftest.er1 >conftest.err
3027  rm -f conftest.er1
3028  cat conftest.err >&5
3029  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030  (exit $ac_status); } &&
3031         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3032  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3033  (eval $ac_try) 2>&5
3034  ac_status=$?
3035  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036  (exit $ac_status); }; } &&
3037         { ac_try='test -s conftest.$ac_objext'
3038  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3039  (eval $ac_try) 2>&5
3040  ac_status=$?
3041  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042  (exit $ac_status); }; }; then
3043  ac_cv_prog_cc_stdc=$ac_arg
3044break
3045else
3046  echo "$as_me: failed program was:" >&5
3047sed 's/^/| /' conftest.$ac_ext >&5
3048
3049fi
3050rm -f conftest.err conftest.$ac_objext
3051done
3052rm -f conftest.$ac_ext conftest.$ac_objext
3053CC=$ac_save_CC
3054
3055fi
3056
3057case "x$ac_cv_prog_cc_stdc" in
3058  x|xno)
3059    echo "$as_me:$LINENO: result: none needed" >&5
3060echo "${ECHO_T}none needed" >&6 ;;
3061  *)
3062    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3063echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3064    CC="$CC $ac_cv_prog_cc_stdc" ;;
3065esac
3066
3067# Some people use a C++ compiler to compile C.  Since we use `exit',
3068# in C++ we need to declare it.  In case someone uses the same compiler
3069# for both compiling C and C++ we need to have the C++ compiler decide
3070# the declaration of exit, since it's the most demanding environment.
3071cat >conftest.$ac_ext <<_ACEOF
3072#ifndef __cplusplus
3073  choke me
3074#endif
3075_ACEOF
3076rm -f conftest.$ac_objext
3077if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3078  (eval $ac_compile) 2>conftest.er1
3079  ac_status=$?
3080  grep -v '^ *+' conftest.er1 >conftest.err
3081  rm -f conftest.er1
3082  cat conftest.err >&5
3083  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3084  (exit $ac_status); } &&
3085         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3086  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3087  (eval $ac_try) 2>&5
3088  ac_status=$?
3089  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090  (exit $ac_status); }; } &&
3091         { ac_try='test -s conftest.$ac_objext'
3092  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3093  (eval $ac_try) 2>&5
3094  ac_status=$?
3095  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096  (exit $ac_status); }; }; then
3097  for ac_declaration in \
3098   '' \
3099   'extern "C" void std::exit (int) throw (); using std::exit;' \
3100   'extern "C" void std::exit (int); using std::exit;' \
3101   'extern "C" void exit (int) throw ();' \
3102   'extern "C" void exit (int);' \
3103   'void exit (int);'
3104do
3105  cat >conftest.$ac_ext <<_ACEOF
3106/* confdefs.h.  */
3107_ACEOF
3108cat confdefs.h >>conftest.$ac_ext
3109cat >>conftest.$ac_ext <<_ACEOF
3110/* end confdefs.h.  */
3111$ac_declaration
3112#include <stdlib.h>
3113int
3114main ()
3115{
3116exit (42);
3117  ;
3118  return 0;
3119}
3120_ACEOF
3121rm -f conftest.$ac_objext
3122if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3123  (eval $ac_compile) 2>conftest.er1
3124  ac_status=$?
3125  grep -v '^ *+' conftest.er1 >conftest.err
3126  rm -f conftest.er1
3127  cat conftest.err >&5
3128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129  (exit $ac_status); } &&
3130         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3131  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3132  (eval $ac_try) 2>&5
3133  ac_status=$?
3134  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3135  (exit $ac_status); }; } &&
3136         { ac_try='test -s conftest.$ac_objext'
3137  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3138  (eval $ac_try) 2>&5
3139  ac_status=$?
3140  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141  (exit $ac_status); }; }; then
3142  :
3143else
3144  echo "$as_me: failed program was:" >&5
3145sed 's/^/| /' conftest.$ac_ext >&5
3146
3147continue
3148fi
3149rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3150  cat >conftest.$ac_ext <<_ACEOF
3151/* confdefs.h.  */
3152_ACEOF
3153cat confdefs.h >>conftest.$ac_ext
3154cat >>conftest.$ac_ext <<_ACEOF
3155/* end confdefs.h.  */
3156$ac_declaration
3157int
3158main ()
3159{
3160exit (42);
3161  ;
3162  return 0;
3163}
3164_ACEOF
3165rm -f conftest.$ac_objext
3166if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3167  (eval $ac_compile) 2>conftest.er1
3168  ac_status=$?
3169  grep -v '^ *+' conftest.er1 >conftest.err
3170  rm -f conftest.er1
3171  cat conftest.err >&5
3172  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3173  (exit $ac_status); } &&
3174         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3175  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3176  (eval $ac_try) 2>&5
3177  ac_status=$?
3178  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3179  (exit $ac_status); }; } &&
3180         { ac_try='test -s conftest.$ac_objext'
3181  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3182  (eval $ac_try) 2>&5
3183  ac_status=$?
3184  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185  (exit $ac_status); }; }; then
3186  break
3187else
3188  echo "$as_me: failed program was:" >&5
3189sed 's/^/| /' conftest.$ac_ext >&5
3190
3191fi
3192rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3193done
3194rm -f conftest*
3195if test -n "$ac_declaration"; then
3196  echo '#ifdef __cplusplus' >>confdefs.h
3197  echo $ac_declaration      >>confdefs.h
3198  echo '#endif'             >>confdefs.h
3199fi
3200
3201else
3202  echo "$as_me: failed program was:" >&5
3203sed 's/^/| /' conftest.$ac_ext >&5
3204
3205fi
3206rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3207ac_ext=c
3208ac_cpp='$CPP $CPPFLAGS'
3209ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3210ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3211ac_compiler_gnu=$ac_cv_c_compiler_gnu
3212
3213
3214
3215    echo "$as_me:$LINENO: checking for building with threads" >&5
3216echo $ECHO_N "checking for building with threads... $ECHO_C" >&6
3217    # Check whether --enable-threads or --disable-threads was given.
3218if test "${enable_threads+set}" = set; then
3219  enableval="$enable_threads"
3220  tcl_ok=$enableval
3221else
3222  tcl_ok=no
3223fi;
3224
3225    if test "$tcl_ok" = "yes"; then
3226        echo "$as_me:$LINENO: result: yes" >&5
3227echo "${ECHO_T}yes" >&6
3228        TCL_THREADS=1
3229        cat >>confdefs.h <<\_ACEOF
3230#define TCL_THREADS 1
3231_ACEOF
3232
3233        cat >>confdefs.h <<\_ACEOF
3234#define _REENTRANT 1
3235_ACEOF
3236
3237
3238        echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
3239echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6
3240if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
3241  echo $ECHO_N "(cached) $ECHO_C" >&6
3242else
3243  ac_check_lib_save_LIBS=$LIBS
3244LIBS="-lpthread  $LIBS"
3245cat >conftest.$ac_ext <<_ACEOF
3246/* confdefs.h.  */
3247_ACEOF
3248cat confdefs.h >>conftest.$ac_ext
3249cat >>conftest.$ac_ext <<_ACEOF
3250/* end confdefs.h.  */
3251
3252/* Override any gcc2 internal prototype to avoid an error.  */
3253#ifdef __cplusplus
3254extern "C"
3255#endif
3256/* We use char because int might match the return type of a gcc2
3257   builtin and then its argument prototype would still apply.  */
3258char pthread_mutex_init ();
3259int
3260main ()
3261{
3262pthread_mutex_init ();
3263  ;
3264  return 0;
3265}
3266_ACEOF
3267rm -f conftest.$ac_objext conftest$ac_exeext
3268if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3269  (eval $ac_link) 2>conftest.er1
3270  ac_status=$?
3271  grep -v '^ *+' conftest.er1 >conftest.err
3272  rm -f conftest.er1
3273  cat conftest.err >&5
3274  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3275  (exit $ac_status); } &&
3276         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3277  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3278  (eval $ac_try) 2>&5
3279  ac_status=$?
3280  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3281  (exit $ac_status); }; } &&
3282         { ac_try='test -s conftest$ac_exeext'
3283  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3284  (eval $ac_try) 2>&5
3285  ac_status=$?
3286  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3287  (exit $ac_status); }; }; then
3288  ac_cv_lib_pthread_pthread_mutex_init=yes
3289else
3290  echo "$as_me: failed program was:" >&5
3291sed 's/^/| /' conftest.$ac_ext >&5
3292
3293ac_cv_lib_pthread_pthread_mutex_init=no
3294fi
3295rm -f conftest.err conftest.$ac_objext \
3296      conftest$ac_exeext conftest.$ac_ext
3297LIBS=$ac_check_lib_save_LIBS
3298fi
3299echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
3300echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6
3301if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
3302  tcl_ok=yes
3303else
3304  tcl_ok=no
3305fi
3306
3307        if test "$tcl_ok" = "yes"; then
3308            # The space is needed
3309            THREADS_LIBS=" -lpthread"
3310        else
3311            TCL_THREADS=0
3312            { echo "$as_me:$LINENO: WARNING: \"Don t know how to find pthread lib on your system - you must disable thread support or edit the LIBS in the Makefile...\"" >&5
3313echo "$as_me: WARNING: \"Don t know how to find pthread lib on your system - you must disable thread support or edit the LIBS in the Makefile...\"" >&2;}
3314        fi
3315    else
3316        TCL_THREADS=0
3317        echo "$as_me:$LINENO: result: no (default)" >&5
3318echo "${ECHO_T}no (default)" >&6
3319    fi
3320
3321
3322
3323#--------------------------------------------------------------------
3324# The statement below defines a collection of symbols related to
3325# building as a shared library instead of a static library.
3326#--------------------------------------------------------------------
3327
3328
3329    echo "$as_me:$LINENO: checking how to build libraries" >&5
3330echo $ECHO_N "checking how to build libraries... $ECHO_C" >&6
3331    # Check whether --enable-shared or --disable-shared was given.
3332if test "${enable_shared+set}" = set; then
3333  enableval="$enable_shared"
3334  tcl_ok=$enableval
3335else
3336  tcl_ok=yes
3337fi;
3338
3339    if test "${enable_shared+set}" = set; then
3340        enableval="$enable_shared"
3341        tcl_ok=$enableval
3342    else
3343        tcl_ok=yes
3344    fi
3345
3346    if test "$tcl_ok" = "yes" ; then
3347        echo "$as_me:$LINENO: result: shared" >&5
3348echo "${ECHO_T}shared" >&6
3349        SHARED_BUILD=1
3350    else
3351        echo "$as_me:$LINENO: result: static" >&5
3352echo "${ECHO_T}static" >&6
3353        SHARED_BUILD=0
3354        cat >>confdefs.h <<\_ACEOF
3355#define STATIC_BUILD 1
3356_ACEOF
3357
3358    fi
3359
3360
3361#--------------------------------------------------------------------
3362# This macro figures out what flags to use with the compiler/linker
3363# when building shared/static debug/optimized objects.  This information
3364# is all taken from the tclConfig.sh file.
3365#--------------------------------------------------------------------
3366
3367CFLAGS_DEBUG=${TCL_CFLAGS_DEBUG}
3368CFLAGS_OPTIMIZE=${TCL_CFLAGS_OPTIMIZE}
3369LDFLAGS_DEBUG=${TCL_LDFLAGS_DEBUG}
3370LDFLAGS_OPTIMIZE=${TCL_LDFLAGS_OPTIMIZE}
3371SHLIB_LD=${TCL_SHLIB_LD}
3372STLIB_LD=${TCL_STLIB_LD}
3373SHLIB_CFLAGS=${TCL_SHLIB_CFLAGS}
3374
3375
3376
3377
3378
3379
3380
3381
3382#--------------------------------------------------------------------
3383# Set the default compiler switches based on the --enable-symbols
3384# option.
3385#--------------------------------------------------------------------
3386
3387
3388    case "`uname -s`" in
3389        *win32* | *WIN32* | *CYGWIN_NT*)
3390            tcl_dbgx=d
3391        ;;
3392        *)
3393            tcl_dbgx=g
3394        ;;
3395    esac
3396
3397    echo "$as_me:$LINENO: checking for build with symbols" >&5
3398echo $ECHO_N "checking for build with symbols... $ECHO_C" >&6
3399    # Check whether --enable-symbols or --disable-symbols was given.
3400if test "${enable_symbols+set}" = set; then
3401  enableval="$enable_symbols"
3402  tcl_ok=$enableval
3403else
3404  tcl_ok=no
3405fi;
3406    if test "$tcl_ok" = "yes"; then
3407        CFLAGS_DEFAULT="${CFLAGS_DEBUG}"
3408        LDFLAGS_DEFAULT="${LDFLAGS_DEBUG}"
3409        DBGX=${tcl_dbgx}
3410        TCL_DBGX=${tcl_dbgx}
3411        echo "$as_me:$LINENO: result: yes" >&5
3412echo "${ECHO_T}yes" >&6
3413    else
3414        CFLAGS_DEFAULT="${CFLAGS_OPTIMIZE}"
3415        LDFLAGS_DEFAULT="${LDFLAGS_OPTIMIZE}"
3416        DBGX=""
3417        TCL_DBGX=""
3418        echo "$as_me:$LINENO: result: no" >&5
3419echo "${ECHO_T}no" >&6
3420    fi
3421
3422
3423
3424
3425
3426
3427if test "${SHARED_BUILD}" = "1" ; then
3428    CFLAGS='${CFLAGS_DEFAULT} ${CFLAGS_WARNING} ${SHLIB_CFLAGS}'
3429else
3430    CFLAGS='${CFLAGS_DEFAULT} ${CFLAGS_WARNING}'
3431fi
3432
3433#--------------------------------------------------------------------
3434# Everyone should be linking against the Tcl stub library.  If you
3435# can't for some reason, remove this definition.  If you aren't using
3436# stubs, you also need to modify the SHLIB_LD_LIBS setting below to
3437# link against the non-stubbed Tcl library.
3438#--------------------------------------------------------------------
3439
3440cat >>confdefs.h <<\_ACEOF
3441#define USE_TCL_STUBS 1
3442_ACEOF
3443
3444
3445#--------------------------------------------------------------------
3446# This macro generates a line to use when building a library.  It
3447# depends on values set by the SC_ENABLE_SHARED, SC_ENABLE_SYMBOLS,
3448# and SC_LOAD_TCLCONFIG macros above.
3449#--------------------------------------------------------------------
3450
3451
3452    case "`uname -s`" in
3453        *win32* | *WIN32* | *CYGWIN_NT*)
3454            if test "${CC-cc}" = "cl"; then
3455                MAKE_STATIC_LIB="\${STLIB_LD} -out:\$@ \$(\$@_OBJECTS) "
3456                MAKE_SHARED_LIB="\${SHLIB_LD} \${SHLIB_LDFLAGS} \${SHLIB_LD_LIBS} \$(LDFLAGS) -out:\$@ \$(\$@_OBJECTS) "
3457            fi
3458            ;;
3459        *)
3460            MAKE_STATIC_LIB="\${STLIB_LD} \$@ \$(\$@_OBJECTS)"
3461            MAKE_SHARED_LIB="\${SHLIB_LD} -o \$@ \$(\$@_OBJECTS) \${SHLIB_LDFLAGS} \${SHLIB_LD_LIBS}"
3462            ;;
3463    esac
3464
3465    if test "${SHARED_BUILD}" = "1" ; then
3466        MAKE_LIB=${MAKE_SHARED_LIB}
3467    else
3468        MAKE_LIB=${MAKE_STATIC_LIB}
3469    fi
3470
3471
3472
3473
3474
3475
3476#--------------------------------------------------------------------
3477# eval these two values to dereference the ${DBGX} variable.
3478#--------------------------------------------------------------------
3479
3480eval "SHARED_LIB_SUFFIX=${TCL_SHARED_LIB_SUFFIX}"
3481eval "UNSHARED_LIB_SUFFIX=${TCL_UNSHARED_LIB_SUFFIX}"
3482
3483#--------------------------------------------------------------------
3484# Shared libraries and static libraries have different names.
3485#--------------------------------------------------------------------
3486
3487case "`uname -s`" in
3488    *win32* | *WIN32* | *CYGWIN_NT*)
3489        if test "${SHARED_BUILD}" = "1" ; then
3490            SHLIB_LD_LIBS="\"`cygpath -w ${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}`\" ${TCL_SHLIB_LD_LIBS}"
3491            eval "${PACKAGE}_LIB_FILE=${PACKAGE}${SHARED_LIB_SUFFIX}"
3492            RANLIB=:
3493        else
3494            eval "${PACKAGE}_LIB_FILE=${PACKAGE}${UNSHARED_LIB_SUFFIX}"
3495        fi
3496        ;;
3497    *)
3498        if test "${SHARED_BUILD}" = "1" ; then
3499            SHLIB_LD_LIBS="${TCL_STUB_LIB_SPEC}"
3500            eval "${PACKAGE}_LIB_FILE=lib${PACKAGE}${SHARED_LIB_SUFFIX}"
3501            RANLIB=:
3502        else
3503            eval "${PACKAGE}_LIB_FILE=lib${PACKAGE}${UNSHARED_LIB_SUFFIX}"
3504        fi
3505        ;;
3506esac
3507
3508#--------------------------------------------------------------------
3509# __CHANGE__
3510# Change the name from exampeA_LIB_FILE to match your package name.
3511#--------------------------------------------------------------------
3512
3513
3514
3515
3516#--------------------------------------------------------------------
3517# Find tclsh so that we can run pkg_mkIndex to generate the pkgIndex.tcl
3518# file during the install process.  Don't run the TCLSH_PROG through
3519# ${CYGPATH} because it's being used directly by make.
3520# Require that we use a tclsh shell version 8.2 or later since earlier
3521# versions have bugs in the pkg_mkIndex routine.
3522#--------------------------------------------------------------------
3523
3524for ac_prog in tclsh8.4${EXEEXT} tclsh84${EXEEXT} tclsh${EXEEXT}
3525do
3526  # Extract the first word of "$ac_prog", so it can be a program name with args.
3527set dummy $ac_prog; ac_word=$2
3528echo "$as_me:$LINENO: checking for $ac_word" >&5
3529echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3530if test "${ac_cv_path_TCLSH_PROG+set}" = set; then
3531  echo $ECHO_N "(cached) $ECHO_C" >&6
3532else
3533  case $TCLSH_PROG in
3534  [\\/]* | ?:[\\/]*)
3535  ac_cv_path_TCLSH_PROG="$TCLSH_PROG" # Let the user override the test with a path.
3536  ;;
3537  *)
3538  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3539as_dummy="${exec_prefix}:${PATH}"
3540for as_dir in $as_dummy
3541do
3542  IFS=$as_save_IFS
3543  test -z "$as_dir" && as_dir=.
3544  for ac_exec_ext in '' $ac_executable_extensions; do
3545  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3546    ac_cv_path_TCLSH_PROG="$as_dir/$ac_word$ac_exec_ext"
3547    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3548    break 2
3549  fi
3550done
3551done
3552
3553  ;;
3554esac
3555fi
3556TCLSH_PROG=$ac_cv_path_TCLSH_PROG
3557
3558if test -n "$TCLSH_PROG"; then
3559  echo "$as_me:$LINENO: result: $TCLSH_PROG" >&5
3560echo "${ECHO_T}$TCLSH_PROG" >&6
3561else
3562  echo "$as_me:$LINENO: result: no" >&5
3563echo "${ECHO_T}no" >&6
3564fi
3565
3566  test -n "$TCLSH_PROG" && break
3567done
3568test -n "$TCLSH_PROG" || TCLSH_PROG=":"
3569
3570
3571if test "x${TCLSH_PROG}" = "x:" ; then
3572    { echo "$as_me:$LINENO: WARNING: No tclsh executable found.  You will have to build the pkgIndex.tcl file manually." >&5
3573echo "$as_me: WARNING: No tclsh executable found.  You will have to build the pkgIndex.tcl file manually." >&2;}
3574fi
3575
3576
3577#--------------------------------------------------------------------
3578# Finalize patchlevel and version info
3579#--------------------------------------------------------------------
3580PATCHLEVEL=`${TCLSH_PROG} cf/patchlevel.tcl`
3581EXACT_VERSION=${MAJOR_VERSION}.${MINOR_VERSION}-${PATCHLEVEL}
3582NODOT_VERSION=${MAJOR_VERSION}${MINOR_VERSION}
3583
3584
3585
3586
3587
3588
3589
3590
3591#--------------------------------------------------------------------
3592# Finally, substitute all of the various values into the Makefile.
3593#--------------------------------------------------------------------
3594
3595                              ac_config_files="$ac_config_files Makefile pkgIndex.tcl init.tcl"
3596cat >confcache <<\_ACEOF
3597# This file is a shell script that caches the results of configure
3598# tests run on this system so they can be shared between configure
3599# scripts and configure runs, see configure's option --config-cache.
3600# It is not useful on other systems.  If it contains results you don't
3601# want to keep, you may remove or edit it.
3602#
3603# config.status only pays attention to the cache file if you give it
3604# the --recheck option to rerun configure.
3605#
3606# `ac_cv_env_foo' variables (set or unset) will be overridden when
3607# loading this file, other *unset* `ac_cv_foo' will be assigned the
3608# following values.
3609
3610_ACEOF
3611
3612# The following way of writing the cache mishandles newlines in values,
3613# but we know of no workaround that is simple, portable, and efficient.
3614# So, don't put newlines in cache variables' values.
3615# Ultrix sh set writes to stderr and can't be redirected directly,
3616# and sets the high bit in the cache file unless we assign to the vars.
3617{
3618  (set) 2>&1 |
3619    case `(ac_space=' '; set | grep ac_space) 2>&1` in
3620    *ac_space=\ *)
3621      # `set' does not quote correctly, so add quotes (double-quote
3622      # substitution turns \\\\ into \\, and sed turns \\ into \).
3623      sed -n \
3624        "s/'/'\\\\''/g;
3625          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3626      ;;
3627    *)
3628      # `set' quotes correctly as required by POSIX, so do not add quotes.
3629      sed -n \
3630        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3631      ;;
3632    esac;
3633} |
3634  sed '
3635     t clear
3636     : clear
3637     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3638     t end
3639     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3640     : end' >>confcache
3641if diff $cache_file confcache >/dev/null 2>&1; then :; else
3642  if test -w $cache_file; then
3643    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3644    cat confcache >$cache_file
3645  else
3646    echo "not updating unwritable cache $cache_file"
3647  fi
3648fi
3649rm -f confcache
3650
3651test "x$prefix" = xNONE && prefix=$ac_default_prefix
3652# Let make expand exec_prefix.
3653test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3654
3655# VPATH may cause trouble with some makes, so we remove $(srcdir),
3656# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3657# trailing colons and then remove the whole line if VPATH becomes empty
3658# (actually we leave an empty line to preserve line numbers).
3659if test "x$srcdir" = x.; then
3660  ac_vpsub='/^[  ]*VPATH[        ]*=/{
3661s/:*\$(srcdir):*/:/;
3662s/:*\${srcdir}:*/:/;
3663s/:*@srcdir@:*/:/;
3664s/^\([^=]*=[     ]*\):*/\1/;
3665s/:*$//;
3666s/^[^=]*=[       ]*$//;
3667}'
3668fi
3669
3670# Transform confdefs.h into DEFS.
3671# Protect against shell expansion while executing Makefile rules.
3672# Protect against Makefile macro expansion.
3673#
3674# If the first sed substitution is executed (which looks for macros that
3675# take arguments), then we branch to the quote section.  Otherwise,
3676# look for a macro that doesn't take arguments.
3677cat >confdef2opt.sed <<\_ACEOF
3678t clear
3679: clear
3680s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
3681t quote
3682s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
3683t quote
3684d
3685: quote
3686s,[      `~#$^&*(){}\\|;'"<>?],\\&,g
3687s,\[,\\&,g
3688s,\],\\&,g
3689s,\$,$$,g
3690p
3691_ACEOF
3692# We use echo to avoid assuming a particular line-breaking character.
3693# The extra dot is to prevent the shell from consuming trailing
3694# line-breaks from the sub-command output.  A line-break within
3695# single-quotes doesn't work because, if this script is created in a
3696# platform that uses two characters for line-breaks (e.g., DOS), tr
3697# would break.
3698ac_LF_and_DOT=`echo; echo .`
3699DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
3700rm -f confdef2opt.sed
3701
3702
3703ac_libobjs=
3704ac_ltlibobjs=
3705for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3706  # 1. Remove the extension, and $U if already installed.
3707  ac_i=`echo "$ac_i" |
3708         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
3709  # 2. Add them.
3710  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
3711  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
3712done
3713LIBOBJS=$ac_libobjs
3714
3715LTLIBOBJS=$ac_ltlibobjs
3716
3717
3718
3719: ${CONFIG_STATUS=./config.status}
3720ac_clean_files_save=$ac_clean_files
3721ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3722{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
3723echo "$as_me: creating $CONFIG_STATUS" >&6;}
3724cat >$CONFIG_STATUS <<_ACEOF
3725#! $SHELL
3726# Generated by $as_me.
3727# Run this file to recreate the current configuration.
3728# Compiler output produced by configure, useful for debugging
3729# configure, is in config.log if it exists.
3730
3731debug=false
3732ac_cs_recheck=false
3733ac_cs_silent=false
3734SHELL=\${CONFIG_SHELL-$SHELL}
3735_ACEOF
3736
3737cat >>$CONFIG_STATUS <<\_ACEOF
3738## --------------------- ##
3739## M4sh Initialization.  ##
3740## --------------------- ##
3741
3742# Be Bourne compatible
3743if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3744  emulate sh
3745  NULLCMD=:
3746  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
3747  # is contrary to our usage.  Disable this feature.
3748  alias -g '${1+"$@"}'='"$@"'
3749elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
3750  set -o posix
3751fi
3752DUALCASE=1; export DUALCASE # for MKS sh
3753
3754# Support unset when possible.
3755if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3756  as_unset=unset
3757else
3758  as_unset=false
3759fi
3760
3761
3762# Work around bugs in pre-3.0 UWIN ksh.
3763$as_unset ENV MAIL MAILPATH
3764PS1='$ '
3765PS2='> '
3766PS4='+ '
3767
3768# NLS nuisances.
3769for as_var in \
3770  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
3771  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
3772  LC_TELEPHONE LC_TIME
3773do
3774  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
3775    eval $as_var=C; export $as_var
3776  else
3777    $as_unset $as_var
3778  fi
3779done
3780
3781# Required to use basename.
3782if expr a : '\(a\)' >/dev/null 2>&1; then
3783  as_expr=expr
3784else
3785  as_expr=false
3786fi
3787
3788if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
3789  as_basename=basename
3790else
3791  as_basename=false
3792fi
3793
3794
3795# Name of the executable.
3796as_me=`$as_basename "$0" ||
3797$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3798         X"$0" : 'X\(//\)$' \| \
3799         X"$0" : 'X\(/\)$' \| \
3800         .     : '\(.\)' 2>/dev/null ||
3801echo X/"$0" |
3802    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
3803          /^X\/\(\/\/\)$/{ s//\1/; q; }
3804          /^X\/\(\/\).*/{ s//\1/; q; }
3805          s/.*/./; q'`
3806
3807
3808# PATH needs CR, and LINENO needs CR and PATH.
3809# Avoid depending upon Character Ranges.
3810as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3811as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3812as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3813as_cr_digits='0123456789'
3814as_cr_alnum=$as_cr_Letters$as_cr_digits
3815
3816# The user is always right.
3817if test "${PATH_SEPARATOR+set}" != set; then
3818  echo "#! /bin/sh" >conf$$.sh
3819  echo  "exit 0"   >>conf$$.sh
3820  chmod +x conf$$.sh
3821  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3822    PATH_SEPARATOR=';'
3823  else
3824    PATH_SEPARATOR=:
3825  fi
3826  rm -f conf$$.sh
3827fi
3828
3829
3830  as_lineno_1=$LINENO
3831  as_lineno_2=$LINENO
3832  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3833  test "x$as_lineno_1" != "x$as_lineno_2" &&
3834  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
3835  # Find who we are.  Look in the path if we contain no path at all
3836  # relative or not.
3837  case $0 in
3838    *[\\/]* ) as_myself=$0 ;;
3839    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3840for as_dir in $PATH
3841do
3842  IFS=$as_save_IFS
3843  test -z "$as_dir" && as_dir=.
3844  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3845done
3846
3847       ;;
3848  esac
3849  # We did not find ourselves, most probably we were run as `sh COMMAND'
3850  # in which case we are not to be found in the path.
3851  if test "x$as_myself" = x; then
3852    as_myself=$0
3853  fi
3854  if test ! -f "$as_myself"; then
3855    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
3856echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
3857   { (exit 1); exit 1; }; }
3858  fi
3859  case $CONFIG_SHELL in
3860  '')
3861    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3862for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
3863do
3864  IFS=$as_save_IFS
3865  test -z "$as_dir" && as_dir=.
3866  for as_base in sh bash ksh sh5; do
3867         case $as_dir in
3868         /*)
3869           if ("$as_dir/$as_base" -c '
3870  as_lineno_1=$LINENO
3871  as_lineno_2=$LINENO
3872  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3873  test "x$as_lineno_1" != "x$as_lineno_2" &&
3874  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
3875             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
3876             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
3877             CONFIG_SHELL=$as_dir/$as_base
3878             export CONFIG_SHELL
3879             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
3880           fi;;
3881         esac
3882       done
3883done
3884;;
3885  esac
3886
3887  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
3888  # uniformly replaced by the line number.  The first 'sed' inserts a
3889  # line-number line before each line; the second 'sed' does the real
3890  # work.  The second script uses 'N' to pair each line-number line
3891  # with the numbered line, and appends trailing '-' during
3892  # substitution so that $LINENO is not a special case at line end.
3893  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
3894  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
3895  sed '=' <$as_myself |
3896    sed '
3897      N
3898      s,$,-,
3899      : loop
3900      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
3901      t loop
3902      s,-$,,
3903      s,^['$as_cr_digits']*\n,,
3904    ' >$as_me.lineno &&
3905  chmod +x $as_me.lineno ||
3906    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
3907echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
3908   { (exit 1); exit 1; }; }
3909
3910  # Don't try to exec as it changes $[0], causing all sort of problems
3911  # (the dirname of $[0] is not the place where we might find the
3912  # original and so on.  Autoconf is especially sensible to this).
3913  . ./$as_me.lineno
3914  # Exit status is that of the last command.
3915  exit
3916}
3917
3918
3919case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
3920  *c*,-n*) ECHO_N= ECHO_C='
3921' ECHO_T='      ' ;;
3922  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
3923  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
3924esac
3925
3926if expr a : '\(a\)' >/dev/null 2>&1; then
3927  as_expr=expr
3928else
3929  as_expr=false
3930fi
3931
3932rm -f conf$$ conf$$.exe conf$$.file
3933echo >conf$$.file
3934if ln -s conf$$.file conf$$ 2>/dev/null; then
3935  # We could just check for DJGPP; but this test a) works b) is more generic
3936  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
3937  if test -f conf$$.exe; then
3938    # Don't use ln at all; we don't have any links
3939    as_ln_s='cp -p'
3940  else
3941    as_ln_s='ln -s'
3942  fi
3943elif ln conf$$.file conf$$ 2>/dev/null; then
3944  as_ln_s=ln
3945else
3946  as_ln_s='cp -p'
3947fi
3948rm -f conf$$ conf$$.exe conf$$.file
3949
3950if mkdir -p . 2>/dev/null; then
3951  as_mkdir_p=:
3952else
3953  test -d ./-p && rmdir ./-p
3954  as_mkdir_p=false
3955fi
3956
3957as_executable_p="test -f"
3958
3959# Sed expression to map a string onto a valid CPP name.
3960as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
3961
3962# Sed expression to map a string onto a valid variable name.
3963as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
3964
3965
3966# IFS
3967# We need space, tab and new line, in precisely that order.
3968as_nl='
3969'
3970IFS="   $as_nl"
3971
3972# CDPATH.
3973$as_unset CDPATH
3974
3975exec 6>&1
3976
3977# Open the log real soon, to keep \$[0] and so on meaningful, and to
3978# report actual input values of CONFIG_FILES etc. instead of their
3979# values after options handling.  Logging --version etc. is OK.
3980exec 5>>config.log
3981{
3982  echo
3983  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
3984## Running $as_me. ##
3985_ASBOX
3986} >&5
3987cat >&5 <<_CSEOF
3988
3989This file was extended by $as_me, which was
3990generated by GNU Autoconf 2.59.  Invocation command line was
3991
3992  CONFIG_FILES    = $CONFIG_FILES
3993  CONFIG_HEADERS  = $CONFIG_HEADERS
3994  CONFIG_LINKS    = $CONFIG_LINKS
3995  CONFIG_COMMANDS = $CONFIG_COMMANDS
3996  $ $0 $@
3997
3998_CSEOF
3999echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
4000echo >&5
4001_ACEOF
4002
4003# Files that config.status was made for.
4004if test -n "$ac_config_files"; then
4005  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
4006fi
4007
4008if test -n "$ac_config_headers"; then
4009  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4010fi
4011
4012if test -n "$ac_config_links"; then
4013  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4014fi
4015
4016if test -n "$ac_config_commands"; then
4017  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4018fi
4019
4020cat >>$CONFIG_STATUS <<\_ACEOF
4021
4022ac_cs_usage="\
4023\`$as_me' instantiates files from templates according to the
4024current configuration.
4025
4026Usage: $0 [OPTIONS] [FILE]...
4027
4028  -h, --help       print this help, then exit
4029  -V, --version    print version number, then exit
4030  -q, --quiet      do not print progress messages
4031  -d, --debug      don't remove temporary files
4032      --recheck    update $as_me by reconfiguring in the same conditions
4033  --file=FILE[:TEMPLATE]
4034                   instantiate the configuration file FILE
4035
4036Configuration files:
4037$config_files
4038
4039Report bugs to <bug-autoconf@gnu.org>."
4040_ACEOF
4041
4042cat >>$CONFIG_STATUS <<_ACEOF
4043ac_cs_version="\\
4044config.status
4045configured by $0, generated by GNU Autoconf 2.59,
4046  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4047
4048Copyright (C) 2003 Free Software Foundation, Inc.
4049This config.status script is free software; the Free Software Foundation
4050gives unlimited permission to copy, distribute and modify it."
4051srcdir=$srcdir
4052INSTALL="$INSTALL"
4053_ACEOF
4054
4055cat >>$CONFIG_STATUS <<\_ACEOF
4056# If no file are specified by the user, then we need to provide default
4057# value.  By we need to know if files were specified by the user.
4058ac_need_defaults=:
4059while test $# != 0
4060do
4061  case $1 in
4062  --*=*)
4063    ac_option=`expr "x$1" : 'x\([^=]*\)='`
4064    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
4065    ac_shift=:
4066    ;;
4067  -*)
4068    ac_option=$1
4069    ac_optarg=$2
4070    ac_shift=shift
4071    ;;
4072  *) # This is not an option, so the user has probably given explicit
4073     # arguments.
4074     ac_option=$1
4075     ac_need_defaults=false;;
4076  esac
4077
4078  case $ac_option in
4079  # Handling of the options.
4080_ACEOF
4081cat >>$CONFIG_STATUS <<\_ACEOF
4082  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4083    ac_cs_recheck=: ;;
4084  --version | --vers* | -V )
4085    echo "$ac_cs_version"; exit 0 ;;
4086  --he | --h)
4087    # Conflict between --help and --header
4088    { { echo "$as_me:$LINENO: error: ambiguous option: $1
4089Try \`$0 --help' for more information." >&5
4090echo "$as_me: error: ambiguous option: $1
4091Try \`$0 --help' for more information." >&2;}
4092   { (exit 1); exit 1; }; };;
4093  --help | --hel | -h )
4094    echo "$ac_cs_usage"; exit 0 ;;
4095  --debug | --d* | -d )
4096    debug=: ;;
4097  --file | --fil | --fi | --f )
4098    $ac_shift
4099    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
4100    ac_need_defaults=false;;
4101  --header | --heade | --head | --hea )
4102    $ac_shift
4103    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
4104    ac_need_defaults=false;;
4105  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4106  | -silent | --silent | --silen | --sile | --sil | --si | --s)
4107    ac_cs_silent=: ;;
4108
4109  # This is an error.
4110  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
4111Try \`$0 --help' for more information." >&5
4112echo "$as_me: error: unrecognized option: $1
4113Try \`$0 --help' for more information." >&2;}
4114   { (exit 1); exit 1; }; } ;;
4115
4116  *) ac_config_targets="$ac_config_targets $1" ;;
4117
4118  esac
4119  shift
4120done
4121
4122ac_configure_extra_args=
4123
4124if $ac_cs_silent; then
4125  exec 6>/dev/null
4126  ac_configure_extra_args="$ac_configure_extra_args --silent"
4127fi
4128
4129_ACEOF
4130cat >>$CONFIG_STATUS <<_ACEOF
4131if \$ac_cs_recheck; then
4132  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
4133  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4134fi
4135
4136_ACEOF
4137
4138
4139
4140
4141
4142cat >>$CONFIG_STATUS <<\_ACEOF
4143for ac_config_target in $ac_config_targets
4144do
4145  case "$ac_config_target" in
4146  # Handling of arguments.
4147  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4148  "pkgIndex.tcl" ) CONFIG_FILES="$CONFIG_FILES pkgIndex.tcl" ;;
4149  "init.tcl" ) CONFIG_FILES="$CONFIG_FILES init.tcl" ;;
4150  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4151echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4152   { (exit 1); exit 1; }; };;
4153  esac
4154done
4155
4156# If the user did not use the arguments to specify the items to instantiate,
4157# then the envvar interface is used.  Set only those that are not.
4158# We use the long form for the default assignment because of an extremely
4159# bizarre bug on SunOS 4.1.3.
4160if $ac_need_defaults; then
4161  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4162fi
4163
4164# Have a temporary directory for convenience.  Make it in the build tree
4165# simply because there is no reason to put it here, and in addition,
4166# creating and moving files from /tmp can sometimes cause problems.
4167# Create a temporary directory, and hook for its removal unless debugging.
4168$debug ||
4169{
4170  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4171  trap '{ (exit 1); exit 1; }' 1 2 13 15
4172}
4173
4174# Create a (secure) tmp directory for tmp files.
4175
4176{
4177  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
4178  test -n "$tmp" && test -d "$tmp"
4179}  ||
4180{
4181  tmp=./confstat$$-$RANDOM
4182  (umask 077 && mkdir $tmp)
4183} ||
4184{
4185   echo "$me: cannot create a temporary directory in ." >&2
4186   { (exit 1); exit 1; }
4187}
4188
4189_ACEOF
4190
4191cat >>$CONFIG_STATUS <<_ACEOF
4192
4193#
4194# CONFIG_FILES section.
4195#
4196
4197# No need to generate the scripts if there are no CONFIG_FILES.
4198# This happens for instance when ./config.status config.h
4199if test -n "\$CONFIG_FILES"; then
4200  # Protect against being on the right side of a sed subst in config.status.
4201  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4202   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4203s,@SHELL@,$SHELL,;t t
4204s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4205s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4206s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4207s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4208s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4209s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4210s,@exec_prefix@,$exec_prefix,;t t
4211s,@prefix@,$prefix,;t t
4212s,@program_transform_name@,$program_transform_name,;t t
4213s,@bindir@,$bindir,;t t
4214s,@sbindir@,$sbindir,;t t
4215s,@libexecdir@,$libexecdir,;t t
4216s,@datadir@,$datadir,;t t
4217s,@sysconfdir@,$sysconfdir,;t t
4218s,@sharedstatedir@,$sharedstatedir,;t t
4219s,@localstatedir@,$localstatedir,;t t
4220s,@libdir@,$libdir,;t t
4221s,@includedir@,$includedir,;t t
4222s,@oldincludedir@,$oldincludedir,;t t
4223s,@infodir@,$infodir,;t t
4224s,@mandir@,$mandir,;t t
4225s,@build_alias@,$build_alias,;t t
4226s,@host_alias@,$host_alias,;t t
4227s,@target_alias@,$target_alias,;t t
4228s,@DEFS@,$DEFS,;t t
4229s,@ECHO_C@,$ECHO_C,;t t
4230s,@ECHO_N@,$ECHO_N,;t t
4231s,@ECHO_T@,$ECHO_T,;t t
4232s,@LIBS@,$LIBS,;t t
4233s,@CXX@,$CXX,;t t
4234s,@CXXFLAGS@,$CXXFLAGS,;t t
4235s,@LDFLAGS@,$LDFLAGS,;t t
4236s,@CPPFLAGS@,$CPPFLAGS,;t t
4237s,@ac_ct_CXX@,$ac_ct_CXX,;t t
4238s,@EXEEXT@,$EXEEXT,;t t
4239s,@OBJEXT@,$OBJEXT,;t t
4240s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
4241s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
4242s,@INSTALL_DATA@,$INSTALL_DATA,;t t
4243s,@SET_MAKE@,$SET_MAKE,;t t
4244s,@RANLIB@,$RANLIB,;t t
4245s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
4246s,@build@,$build,;t t
4247s,@build_cpu@,$build_cpu,;t t
4248s,@build_vendor@,$build_vendor,;t t
4249s,@build_os@,$build_os,;t t
4250s,@host@,$host,;t t
4251s,@host_cpu@,$host_cpu,;t t
4252s,@host_vendor@,$host_vendor,;t t
4253s,@host_os@,$host_os,;t t
4254s,@CYGPATH@,$CYGPATH,;t t
4255s,@TCL_INCLUDES@,$TCL_INCLUDES,;t t
4256s,@TCL_BIN_DIR@,$TCL_BIN_DIR,;t t
4257s,@TCL_SRC_DIR@,$TCL_SRC_DIR,;t t
4258s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
4259s,@TCL_LIBS@,$TCL_LIBS,;t t
4260s,@TCL_DEFS@,$TCL_DEFS,;t t
4261s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
4262s,@TCL_EXTRA_CFLAGS@,$TCL_EXTRA_CFLAGS,;t t
4263s,@TCL_LD_FLAGS@,$TCL_LD_FLAGS,;t t
4264s,@TCL_STUB_LIB_FILE@,$TCL_STUB_LIB_FILE,;t t
4265s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
4266s,@TCL_BUILD_LIB_SPEC@,$TCL_BUILD_LIB_SPEC,;t t
4267s,@TCL_STUB_LIB_SPEC@,$TCL_STUB_LIB_SPEC,;t t
4268s,@TCL_BUILD_STUB_LIB_SPEC@,$TCL_BUILD_STUB_LIB_SPEC,;t t
4269s,@BLT_SRC_DIR@,$BLT_SRC_DIR,;t t
4270s,@CLEANFILES@,$CLEANFILES,;t t
4271s,@CC@,$CC,;t t
4272s,@CFLAGS@,$CFLAGS,;t t
4273s,@ac_ct_CC@,$ac_ct_CC,;t t
4274s,@CFLAGS_DEBUG@,$CFLAGS_DEBUG,;t t
4275s,@CFLAGS_OPTIMIZE@,$CFLAGS_OPTIMIZE,;t t
4276s,@STLIB_LD@,$STLIB_LD,;t t
4277s,@SHLIB_LD@,$SHLIB_LD,;t t
4278s,@SHLIB_CFLAGS@,$SHLIB_CFLAGS,;t t
4279s,@SHLIB_LDFLAGS@,$SHLIB_LDFLAGS,;t t
4280s,@TCL_DBGX@,$TCL_DBGX,;t t
4281s,@CFLAGS_DEFAULT@,$CFLAGS_DEFAULT,;t t
4282s,@LDFLAGS_DEFAULT@,$LDFLAGS_DEFAULT,;t t
4283s,@MAKE_LIB@,$MAKE_LIB,;t t
4284s,@MAKE_SHARED_LIB@,$MAKE_SHARED_LIB,;t t
4285s,@MAKE_STATIC_LIB@,$MAKE_STATIC_LIB,;t t
4286s,@Rappture_LIB_FILE@,$Rappture_LIB_FILE,;t t
4287s,@SHLIB_LD_LIBS@,$SHLIB_LD_LIBS,;t t
4288s,@TCLSH_PROG@,$TCLSH_PROG,;t t
4289s,@PACKAGE@,$PACKAGE,;t t
4290s,@VERSION@,$VERSION,;t t
4291s,@PATCHLEVEL@,$PATCHLEVEL,;t t
4292s,@EXACT_VERSION@,$EXACT_VERSION,;t t
4293s,@NODOT_VERSION@,$NODOT_VERSION,;t t
4294s,@LIBOBJS@,$LIBOBJS,;t t
4295s,@LTLIBOBJS@,$LTLIBOBJS,;t t
4296CEOF
4297
4298_ACEOF
4299
4300  cat >>$CONFIG_STATUS <<\_ACEOF
4301  # Split the substitutions into bite-sized pieces for seds with
4302  # small command number limits, like on Digital OSF/1 and HP-UX.
4303  ac_max_sed_lines=48
4304  ac_sed_frag=1 # Number of current file.
4305  ac_beg=1 # First line for current file.
4306  ac_end=$ac_max_sed_lines # Line after last line for current file.
4307  ac_more_lines=:
4308  ac_sed_cmds=
4309  while $ac_more_lines; do
4310    if test $ac_beg -gt 1; then
4311      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4312    else
4313      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4314    fi
4315    if test ! -s $tmp/subs.frag; then
4316      ac_more_lines=false
4317    else
4318      # The purpose of the label and of the branching condition is to
4319      # speed up the sed processing (if there are no `@' at all, there
4320      # is no need to browse any of the substitutions).
4321      # These are the two extra sed commands mentioned above.
4322      (echo ':t
4323  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
4324      if test -z "$ac_sed_cmds"; then
4325        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
4326      else
4327        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4328      fi
4329      ac_sed_frag=`expr $ac_sed_frag + 1`
4330      ac_beg=$ac_end
4331      ac_end=`expr $ac_end + $ac_max_sed_lines`
4332    fi
4333  done
4334  if test -z "$ac_sed_cmds"; then
4335    ac_sed_cmds=cat
4336  fi
4337fi # test -n "$CONFIG_FILES"
4338
4339_ACEOF
4340cat >>$CONFIG_STATUS <<\_ACEOF
4341for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
4342  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4343  case $ac_file in
4344  - | *:- | *:-:* ) # input from stdin
4345        cat >$tmp/stdin
4346        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4347        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4348  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4349        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4350  * )   ac_file_in=$ac_file.in ;;
4351  esac
4352
4353  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4354  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4355$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4356         X"$ac_file" : 'X\(//\)[^/]' \| \
4357         X"$ac_file" : 'X\(//\)$' \| \
4358         X"$ac_file" : 'X\(/\)' \| \
4359         .     : '\(.\)' 2>/dev/null ||
4360echo X"$ac_file" |
4361    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4362          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4363          /^X\(\/\/\)$/{ s//\1/; q; }
4364          /^X\(\/\).*/{ s//\1/; q; }
4365          s/.*/./; q'`
4366  { if $as_mkdir_p; then
4367    mkdir -p "$ac_dir"
4368  else
4369    as_dir="$ac_dir"
4370    as_dirs=
4371    while test ! -d "$as_dir"; do
4372      as_dirs="$as_dir $as_dirs"
4373      as_dir=`(dirname "$as_dir") 2>/dev/null ||
4374$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4375         X"$as_dir" : 'X\(//\)[^/]' \| \
4376         X"$as_dir" : 'X\(//\)$' \| \
4377         X"$as_dir" : 'X\(/\)' \| \
4378         .     : '\(.\)' 2>/dev/null ||
4379echo X"$as_dir" |
4380    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4381          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4382          /^X\(\/\/\)$/{ s//\1/; q; }
4383          /^X\(\/\).*/{ s//\1/; q; }
4384          s/.*/./; q'`
4385    done
4386    test ! -n "$as_dirs" || mkdir $as_dirs
4387  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4388echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4389   { (exit 1); exit 1; }; }; }
4390
4391  ac_builddir=.
4392
4393if test "$ac_dir" != .; then
4394  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4395  # A "../" for each directory in $ac_dir_suffix.
4396  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4397else
4398  ac_dir_suffix= ac_top_builddir=
4399fi
4400
4401case $srcdir in
4402  .)  # No --srcdir option.  We are building in place.
4403    ac_srcdir=.
4404    if test -z "$ac_top_builddir"; then
4405       ac_top_srcdir=.
4406    else
4407       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4408    fi ;;
4409  [\\/]* | ?:[\\/]* )  # Absolute path.
4410    ac_srcdir=$srcdir$ac_dir_suffix;
4411    ac_top_srcdir=$srcdir ;;
4412  *) # Relative path.
4413    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4414    ac_top_srcdir=$ac_top_builddir$srcdir ;;
4415esac
4416
4417# Do not use `cd foo && pwd` to compute absolute paths, because
4418# the directories may not exist.
4419case `pwd` in
4420.) ac_abs_builddir="$ac_dir";;
4421*)
4422  case "$ac_dir" in
4423  .) ac_abs_builddir=`pwd`;;
4424  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
4425  *) ac_abs_builddir=`pwd`/"$ac_dir";;
4426  esac;;
4427esac
4428case $ac_abs_builddir in
4429.) ac_abs_top_builddir=${ac_top_builddir}.;;
4430*)
4431  case ${ac_top_builddir}. in
4432  .) ac_abs_top_builddir=$ac_abs_builddir;;
4433  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
4434  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
4435  esac;;
4436esac
4437case $ac_abs_builddir in
4438.) ac_abs_srcdir=$ac_srcdir;;
4439*)
4440  case $ac_srcdir in
4441  .) ac_abs_srcdir=$ac_abs_builddir;;
4442  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
4443  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
4444  esac;;
4445esac
4446case $ac_abs_builddir in
4447.) ac_abs_top_srcdir=$ac_top_srcdir;;
4448*)
4449  case $ac_top_srcdir in
4450  .) ac_abs_top_srcdir=$ac_abs_builddir;;
4451  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
4452  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
4453  esac;;
4454esac
4455
4456
4457  case $INSTALL in
4458  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
4459  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
4460  esac
4461
4462  # Let's still pretend it is `configure' which instantiates (i.e., don't
4463  # use $as_me), people would be surprised to read:
4464  #    /* config.h.  Generated by config.status.  */
4465  if test x"$ac_file" = x-; then
4466    configure_input=
4467  else
4468    configure_input="$ac_file.  "
4469  fi
4470  configure_input=$configure_input"Generated from `echo $ac_file_in |
4471                                     sed 's,.*/,,'` by configure."
4472
4473  # First look for the input files in the build tree, otherwise in the
4474  # src tree.
4475  ac_file_inputs=`IFS=:
4476    for f in $ac_file_in; do
4477      case $f in
4478      -) echo $tmp/stdin ;;
4479      [\\/$]*)
4480         # Absolute (can't be DOS-style, as IFS=:)
4481         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4482echo "$as_me: error: cannot find input file: $f" >&2;}
4483   { (exit 1); exit 1; }; }
4484         echo "$f";;
4485      *) # Relative
4486         if test -f "$f"; then
4487           # Build tree
4488           echo "$f"
4489         elif test -f "$srcdir/$f"; then
4490           # Source tree
4491           echo "$srcdir/$f"
4492         else
4493           # /dev/null tree
4494           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4495echo "$as_me: error: cannot find input file: $f" >&2;}
4496   { (exit 1); exit 1; }; }
4497         fi;;
4498      esac
4499    done` || { (exit 1); exit 1; }
4500
4501  if test x"$ac_file" != x-; then
4502    { echo "$as_me:$LINENO: creating $ac_file" >&5
4503echo "$as_me: creating $ac_file" >&6;}
4504    rm -f "$ac_file"
4505  fi
4506_ACEOF
4507cat >>$CONFIG_STATUS <<_ACEOF
4508  sed "$ac_vpsub
4509$extrasub
4510_ACEOF
4511cat >>$CONFIG_STATUS <<\_ACEOF
4512:t
4513/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4514s,@configure_input@,$configure_input,;t t
4515s,@srcdir@,$ac_srcdir,;t t
4516s,@abs_srcdir@,$ac_abs_srcdir,;t t
4517s,@top_srcdir@,$ac_top_srcdir,;t t
4518s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
4519s,@builddir@,$ac_builddir,;t t
4520s,@abs_builddir@,$ac_abs_builddir,;t t
4521s,@top_builddir@,$ac_top_builddir,;t t
4522s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
4523s,@INSTALL@,$ac_INSTALL,;t t
4524" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
4525  rm -f $tmp/stdin
4526  if test x"$ac_file" != x-; then
4527    mv $tmp/out $ac_file
4528  else
4529    cat $tmp/out
4530    rm -f $tmp/out
4531  fi
4532
4533done
4534_ACEOF
4535
4536cat >>$CONFIG_STATUS <<\_ACEOF
4537
4538{ (exit 0); exit 0; }
4539_ACEOF
4540chmod +x $CONFIG_STATUS
4541ac_clean_files=$ac_clean_files_save
4542
4543
4544# configure is writing to config.log, and then calls config.status.
4545# config.status does its own redirection, appending to config.log.
4546# Unfortunately, on DOS this fails, as config.log is still kept open
4547# by configure, so config.status won't be able to write to it; its
4548# output is simply discarded.  So we exec the FD to /dev/null,
4549# effectively closing config.log, so it can be properly (re)opened and
4550# appended to by config.status.  When coming back to configure, we
4551# need to make the FD available again.
4552if test "$no_create" != yes; then
4553  ac_cs_success=:
4554  ac_config_status_args=
4555  test "$silent" = yes &&
4556    ac_config_status_args="$ac_config_status_args --quiet"
4557  exec 5>/dev/null
4558  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4559  exec 5>>config.log
4560  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4561  # would make configure fail if this is the last instruction.
4562  $ac_cs_success || { (exit 1); exit 1; }
4563fi
4564
Note: See TracBrowser for help on using the repository browser.