source: trunk/base/configure @ 2620

Last change on this file since 2620 was 2620, checked in by landonf (Landon Fuller), 17 years ago

Switch to autoconf. This change is far reaching through the build architecture.
Detailed ChangeLog:

  • Added the following files:

base/Makefile.in: Renamed Makefile to Makefile.in
base/aclocal.m4: Local m4 macros. Currently only includes tcl.m4
base/tcl.m4: TEA && Tcl distribution macros with some local modifications
base/configure: configure script, generated from configure.ac
base/configure.ac: m4 used to generate base/configure
base/install.sh: install(1) replacement to appease autoconf
base/Mk/dports.autoconf.mk.in: Contains all autoconf AC_SUBST variables used.
base/Mk/dports.tea.mk: Standardized C extension building

  • Removed the following files:

base/Makefile: Renamed to Makefile.in
base/scripts/config.sh: Entirely replaced by autoconf

  • Modified the following files:

Makefile: Updated to execute configure script in base/, providing backwards compatibility. (Users expext to type "make").
base/src/cflib1.0/Makefile: Updated to use dports.tea.mk and use ${datadir} from dports.autoconf.mk
base/src/pextlib1.0/Makefile: Updated to use dports.tea.mk and use ${datadir} from dports.autoconf.mk
base/src/darwinports1.0/Makefile: Updated to use ${TCL_PACKAGE_DIR} from dports.autoconf.mk
base/src/port1.0/Makefile: Updated to use ${datadir} from dports.autoconf.mk
base/src/port1.0/resources/Makefile: Updated use ${datadir} from dports.autoconf.mk
base/src/port1.0/resources/package/Makefile: Updated to use ${datadir} from dports.autoconf.mk

  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 90.2 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by Autoconf 2.52.
4#
5# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6# Free Software Foundation, Inc.
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9
10# Avoid depending upon Character Ranges.
11as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14as_cr_digits='0123456789'
15as_cr_alnum=$as_cr_Letters$as_cr_digits
16
17# Sed expression to map a string onto a valid variable name.
18as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
19
20# Sed expression to map a string onto a valid CPP name.
21as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
22
23# Be Bourne compatible
24if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25  emulate sh
26  NULLCMD=:
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30
31# Name of the executable.
32as_me=`echo "$0" |sed 's,.*[\\/],,'`
33
34if expr a : '\(a\)' >/dev/null 2>&1; then
35  as_expr=expr
36else
37  as_expr=false
38fi
39
40rm -f conf$$ conf$$.exe conf$$.file
41echo >conf$$.file
42if ln -s conf$$.file conf$$ 2>/dev/null; then
43  # We could just check for DJGPP; but this test a) works b) is more generic
44  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
45  if test -f conf$$.exe; then
46    # Don't use ln at all; we don't have any links
47    as_ln_s='cp -p'
48  else
49    as_ln_s='ln -s'
50  fi
51elif ln conf$$.file conf$$ 2>/dev/null; then
52  as_ln_s=ln
53else
54  as_ln_s='cp -p'
55fi
56rm -f conf$$ conf$$.exe conf$$.file
57
58as_executable_p="test -f"
59
60# Support unset when possible.
61if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
62  as_unset=unset
63else
64  as_unset=false
65fi
66
67# NLS nuisances.
68$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
69$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
70$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
71$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
72$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
73$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
74$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
75$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
76
77# IFS
78# We need space, tab and new line, in precisely that order.
79as_nl='
80'
81IFS="   $as_nl"
82
83# CDPATH.
84$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
85
86# Name of the host.
87# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
88# so uname gets run too.
89ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
90
91exec 6>&1
92
93#
94# Initializations.
95#
96ac_default_prefix=/usr/local
97cross_compiling=no
98subdirs=
99MFLAGS= MAKEFLAGS=
100SHELL=${CONFIG_SHELL-/bin/sh}
101
102# Maximum number of lines to put in a shell here document.
103# This variable seems obsolete.  It should probably be removed, and
104# only ac_max_sed_lines should be used.
105: ${ac_max_here_lines=38}
106
107ac_unique_file="src/pextlib1.0/Pextlib.c"
108ac_default_prefix=/opt/local
109
110# Initialize some variables set by options.
111ac_init_help=
112ac_init_version=false
113# The variables have the same names as the options, with
114# dashes changed to underlines.
115cache_file=/dev/null
116exec_prefix=NONE
117no_create=
118no_recursion=
119prefix=NONE
120program_prefix=NONE
121program_suffix=NONE
122program_transform_name=s,x,x,
123silent=
124site=
125srcdir=
126verbose=
127x_includes=NONE
128x_libraries=NONE
129
130# Installation directory options.
131# These are left unexpanded so users can "make install exec_prefix=/foo"
132# and all the variables that are supposed to be based on exec_prefix
133# by default will actually change.
134# Use braces instead of parens because sh, perl, etc. also accept them.
135bindir='${exec_prefix}/bin'
136sbindir='${exec_prefix}/sbin'
137libexecdir='${exec_prefix}/libexec'
138datadir='${prefix}/share'
139sysconfdir='${prefix}/etc'
140sharedstatedir='${prefix}/com'
141localstatedir='${prefix}/var'
142libdir='${exec_prefix}/lib'
143includedir='${prefix}/include'
144oldincludedir='/usr/include'
145infodir='${prefix}/info'
146mandir='${prefix}/man'
147
148# Identity of this package.
149PACKAGE_NAME=
150PACKAGE_TARNAME=
151PACKAGE_VERSION=
152PACKAGE_STRING=
153PACKAGE_BUGREPORT=
154
155ac_prev=
156for ac_option
157do
158  # If the previous option needs an argument, assign it.
159  if test -n "$ac_prev"; then
160    eval "$ac_prev=\$ac_option"
161    ac_prev=
162    continue
163  fi
164
165  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
166
167  # Accept the important Cygnus configure options, so we can diagnose typos.
168
169  case $ac_option in
170
171  -bindir | --bindir | --bindi | --bind | --bin | --bi)
172    ac_prev=bindir ;;
173  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
174    bindir=$ac_optarg ;;
175
176  -build | --build | --buil | --bui | --bu)
177    ac_prev=build_alias ;;
178  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
179    build_alias=$ac_optarg ;;
180
181  -cache-file | --cache-file | --cache-fil | --cache-fi \
182  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
183    ac_prev=cache_file ;;
184  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
185  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
186    cache_file=$ac_optarg ;;
187
188  --config-cache | -C)
189    cache_file=config.cache ;;
190
191  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
192    ac_prev=datadir ;;
193  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
194  | --da=*)
195    datadir=$ac_optarg ;;
196
197  -disable-* | --disable-*)
198    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
199    # Reject names that are not valid shell variable names.
200    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
201      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
202   { (exit 1); exit 1; }; }
203    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
204    eval "enable_$ac_feature=no" ;;
205
206  -enable-* | --enable-*)
207    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
208    # Reject names that are not valid shell variable names.
209    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
210      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
211   { (exit 1); exit 1; }; }
212    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
213    case $ac_option in
214      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
215      *) ac_optarg=yes ;;
216    esac
217    eval "enable_$ac_feature='$ac_optarg'" ;;
218
219  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
220  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
221  | --exec | --exe | --ex)
222    ac_prev=exec_prefix ;;
223  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
224  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
225  | --exec=* | --exe=* | --ex=*)
226    exec_prefix=$ac_optarg ;;
227
228  -gas | --gas | --ga | --g)
229    # Obsolete; use --with-gas.
230    with_gas=yes ;;
231
232  -help | --help | --hel | --he | -h)
233    ac_init_help=long ;;
234  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
235    ac_init_help=recursive ;;
236  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
237    ac_init_help=short ;;
238
239  -host | --host | --hos | --ho)
240    ac_prev=host_alias ;;
241  -host=* | --host=* | --hos=* | --ho=*)
242    host_alias=$ac_optarg ;;
243
244  -includedir | --includedir | --includedi | --included | --include \
245  | --includ | --inclu | --incl | --inc)
246    ac_prev=includedir ;;
247  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
248  | --includ=* | --inclu=* | --incl=* | --inc=*)
249    includedir=$ac_optarg ;;
250
251  -infodir | --infodir | --infodi | --infod | --info | --inf)
252    ac_prev=infodir ;;
253  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
254    infodir=$ac_optarg ;;
255
256  -libdir | --libdir | --libdi | --libd)
257    ac_prev=libdir ;;
258  -libdir=* | --libdir=* | --libdi=* | --libd=*)
259    libdir=$ac_optarg ;;
260
261  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
262  | --libexe | --libex | --libe)
263    ac_prev=libexecdir ;;
264  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
265  | --libexe=* | --libex=* | --libe=*)
266    libexecdir=$ac_optarg ;;
267
268  -localstatedir | --localstatedir | --localstatedi | --localstated \
269  | --localstate | --localstat | --localsta | --localst \
270  | --locals | --local | --loca | --loc | --lo)
271    ac_prev=localstatedir ;;
272  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
273  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
274  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
275    localstatedir=$ac_optarg ;;
276
277  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
278    ac_prev=mandir ;;
279  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
280    mandir=$ac_optarg ;;
281
282  -nfp | --nfp | --nf)
283    # Obsolete; use --without-fp.
284    with_fp=no ;;
285
286  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
287  | --no-cr | --no-c)
288    no_create=yes ;;
289
290  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
291  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
292    no_recursion=yes ;;
293
294  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
295  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
296  | --oldin | --oldi | --old | --ol | --o)
297    ac_prev=oldincludedir ;;
298  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
299  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
300  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
301    oldincludedir=$ac_optarg ;;
302
303  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
304    ac_prev=prefix ;;
305  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
306    prefix=$ac_optarg ;;
307
308  -program-prefix | --program-prefix | --program-prefi | --program-pref \
309  | --program-pre | --program-pr | --program-p)
310    ac_prev=program_prefix ;;
311  -program-prefix=* | --program-prefix=* | --program-prefi=* \
312  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
313    program_prefix=$ac_optarg ;;
314
315  -program-suffix | --program-suffix | --program-suffi | --program-suff \
316  | --program-suf | --program-su | --program-s)
317    ac_prev=program_suffix ;;
318  -program-suffix=* | --program-suffix=* | --program-suffi=* \
319  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
320    program_suffix=$ac_optarg ;;
321
322  -program-transform-name | --program-transform-name \
323  | --program-transform-nam | --program-transform-na \
324  | --program-transform-n | --program-transform- \
325  | --program-transform | --program-transfor \
326  | --program-transfo | --program-transf \
327  | --program-trans | --program-tran \
328  | --progr-tra | --program-tr | --program-t)
329    ac_prev=program_transform_name ;;
330  -program-transform-name=* | --program-transform-name=* \
331  | --program-transform-nam=* | --program-transform-na=* \
332  | --program-transform-n=* | --program-transform-=* \
333  | --program-transform=* | --program-transfor=* \
334  | --program-transfo=* | --program-transf=* \
335  | --program-trans=* | --program-tran=* \
336  | --progr-tra=* | --program-tr=* | --program-t=*)
337    program_transform_name=$ac_optarg ;;
338
339  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
340  | -silent | --silent | --silen | --sile | --sil)
341    silent=yes ;;
342
343  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
344    ac_prev=sbindir ;;
345  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
346  | --sbi=* | --sb=*)
347    sbindir=$ac_optarg ;;
348
349  -sharedstatedir | --sharedstatedir | --sharedstatedi \
350  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
351  | --sharedst | --shareds | --shared | --share | --shar \
352  | --sha | --sh)
353    ac_prev=sharedstatedir ;;
354  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
355  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
356  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
357  | --sha=* | --sh=*)
358    sharedstatedir=$ac_optarg ;;
359
360  -site | --site | --sit)
361    ac_prev=site ;;
362  -site=* | --site=* | --sit=*)
363    site=$ac_optarg ;;
364
365  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
366    ac_prev=srcdir ;;
367  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
368    srcdir=$ac_optarg ;;
369
370  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
371  | --syscon | --sysco | --sysc | --sys | --sy)
372    ac_prev=sysconfdir ;;
373  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
374  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
375    sysconfdir=$ac_optarg ;;
376
377  -target | --target | --targe | --targ | --tar | --ta | --t)
378    ac_prev=target_alias ;;
379  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
380    target_alias=$ac_optarg ;;
381
382  -v | -verbose | --verbose | --verbos | --verbo | --verb)
383    verbose=yes ;;
384
385  -version | --version | --versio | --versi | --vers | -V)
386    ac_init_version=: ;;
387
388  -with-* | --with-*)
389    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
390    # Reject names that are not valid shell variable names.
391    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
392      { echo "$as_me: error: invalid package name: $ac_package" >&2
393   { (exit 1); exit 1; }; }
394    ac_package=`echo $ac_package| sed 's/-/_/g'`
395    case $ac_option in
396      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
397      *) ac_optarg=yes ;;
398    esac
399    eval "with_$ac_package='$ac_optarg'" ;;
400
401  -without-* | --without-*)
402    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
403    # Reject names that are not valid shell variable names.
404    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
405      { echo "$as_me: error: invalid package name: $ac_package" >&2
406   { (exit 1); exit 1; }; }
407    ac_package=`echo $ac_package | sed 's/-/_/g'`
408    eval "with_$ac_package=no" ;;
409
410  --x)
411    # Obsolete; use --with-x.
412    with_x=yes ;;
413
414  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
415  | --x-incl | --x-inc | --x-in | --x-i)
416    ac_prev=x_includes ;;
417  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
418  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
419    x_includes=$ac_optarg ;;
420
421  -x-libraries | --x-libraries | --x-librarie | --x-librari \
422  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
423    ac_prev=x_libraries ;;
424  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
425  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
426    x_libraries=$ac_optarg ;;
427
428  -*) { echo "$as_me: error: unrecognized option: $ac_option
429Try \`$0 --help' for more information." >&2
430   { (exit 1); exit 1; }; }
431    ;;
432
433  *=*)
434    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
435    # Reject names that are not valid shell variable names.
436    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
437      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
438   { (exit 1); exit 1; }; }
439    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
440    eval "$ac_envvar='$ac_optarg'"
441    export $ac_envvar ;;
442
443  *)
444    # FIXME: should be removed in autoconf 3.0.
445    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
446    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
447      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
448    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
449    ;;
450
451  esac
452done
453
454if test -n "$ac_prev"; then
455  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
456  { echo "$as_me: error: missing argument to $ac_option" >&2
457   { (exit 1); exit 1; }; }
458fi
459
460# Be sure to have absolute paths.
461for ac_var in exec_prefix prefix
462do
463  eval ac_val=$`echo $ac_var`
464  case $ac_val in
465    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
466    *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
467   { (exit 1); exit 1; }; };;
468  esac
469done
470
471# Be sure to have absolute paths.
472for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
473              localstatedir libdir includedir oldincludedir infodir mandir
474do
475  eval ac_val=$`echo $ac_var`
476  case $ac_val in
477    [\\/$]* | ?:[\\/]* ) ;;
478    *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
479   { (exit 1); exit 1; }; };;
480  esac
481done
482
483# There might be people who depend on the old broken behavior: `$host'
484# used to hold the argument of --host etc.
485build=$build_alias
486host=$host_alias
487target=$target_alias
488
489# FIXME: should be removed in autoconf 3.0.
490if test "x$host_alias" != x; then
491  if test "x$build_alias" = x; then
492    cross_compiling=maybe
493    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
494    If a cross compiler is detected then cross compile mode will be used." >&2
495  elif test "x$build_alias" != "x$host_alias"; then
496    cross_compiling=yes
497  fi
498fi
499
500ac_tool_prefix=
501test -n "$host_alias" && ac_tool_prefix=$host_alias-
502
503test "$silent" = yes && exec 6>/dev/null
504
505# Find the source files, if location was not specified.
506if test -z "$srcdir"; then
507  ac_srcdir_defaulted=yes
508  # Try the directory containing this script, then its parent.
509  ac_prog=$0
510  ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
511  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
512  srcdir=$ac_confdir
513  if test ! -r $srcdir/$ac_unique_file; then
514    srcdir=..
515  fi
516else
517  ac_srcdir_defaulted=no
518fi
519if test ! -r $srcdir/$ac_unique_file; then
520  if test "$ac_srcdir_defaulted" = yes; then
521    { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
522   { (exit 1); exit 1; }; }
523  else
524    { echo "$as_me: error: cannot find sources in $srcdir" >&2
525   { (exit 1); exit 1; }; }
526  fi
527fi
528srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
529ac_env_build_alias_set=${build_alias+set}
530ac_env_build_alias_value=$build_alias
531ac_cv_env_build_alias_set=${build_alias+set}
532ac_cv_env_build_alias_value=$build_alias
533ac_env_host_alias_set=${host_alias+set}
534ac_env_host_alias_value=$host_alias
535ac_cv_env_host_alias_set=${host_alias+set}
536ac_cv_env_host_alias_value=$host_alias
537ac_env_target_alias_set=${target_alias+set}
538ac_env_target_alias_value=$target_alias
539ac_cv_env_target_alias_set=${target_alias+set}
540ac_cv_env_target_alias_value=$target_alias
541ac_env_CC_set=${CC+set}
542ac_env_CC_value=$CC
543ac_cv_env_CC_set=${CC+set}
544ac_cv_env_CC_value=$CC
545ac_env_CFLAGS_set=${CFLAGS+set}
546ac_env_CFLAGS_value=$CFLAGS
547ac_cv_env_CFLAGS_set=${CFLAGS+set}
548ac_cv_env_CFLAGS_value=$CFLAGS
549ac_env_LDFLAGS_set=${LDFLAGS+set}
550ac_env_LDFLAGS_value=$LDFLAGS
551ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
552ac_cv_env_LDFLAGS_value=$LDFLAGS
553ac_env_CPPFLAGS_set=${CPPFLAGS+set}
554ac_env_CPPFLAGS_value=$CPPFLAGS
555ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
556ac_cv_env_CPPFLAGS_value=$CPPFLAGS
557ac_env_CPP_set=${CPP+set}
558ac_env_CPP_value=$CPP
559ac_cv_env_CPP_set=${CPP+set}
560ac_cv_env_CPP_value=$CPP
561
562#
563# Report the --help message.
564#
565if test "$ac_init_help" = "long"; then
566  # Omit some internal or obsolete options to make the list less imposing.
567  # This message is too long to be a string in the A/UX 3.1 sh.
568  cat <<EOF
569\`configure' configures this package to adapt to many kinds of systems.
570
571Usage: $0 [OPTION]... [VAR=VALUE]...
572
573To assign environment variables (e.g., CC, CFLAGS...), specify them as
574VAR=VALUE.  See below for descriptions of some of the useful variables.
575
576Defaults for the options are specified in brackets.
577
578Configuration:
579  -h, --help              display this help and exit
580      --help=short        display options specific to this package
581      --help=recursive    display the short help of all the included packages
582  -V, --version           display version information and exit
583  -q, --quiet, --silent   do not print \`checking...' messages
584      --cache-file=FILE   cache test results in FILE [disabled]
585  -C, --config-cache      alias for \`--cache-file=config.cache'
586  -n, --no-create         do not create output files
587      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
588
589EOF
590
591  cat <<EOF
592Installation directories:
593  --prefix=PREFIX         install architecture-independent files in PREFIX
594                          [$ac_default_prefix]
595  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
596                          [PREFIX]
597
598By default, \`make install' will install all the files in
599\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
600an installation prefix other than \`$ac_default_prefix' using \`--prefix',
601for instance \`--prefix=\$HOME'.
602
603For better control, use the options below.
604
605Fine tuning of the installation directories:
606  --bindir=DIR           user executables [EPREFIX/bin]
607  --sbindir=DIR          system admin executables [EPREFIX/sbin]
608  --libexecdir=DIR       program executables [EPREFIX/libexec]
609  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
610  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
611  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
612  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
613  --libdir=DIR           object code libraries [EPREFIX/lib]
614  --includedir=DIR       C header files [PREFIX/include]
615  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
616  --infodir=DIR          info documentation [PREFIX/info]
617  --mandir=DIR           man documentation [PREFIX/man]
618EOF
619
620  cat <<\EOF
621EOF
622fi
623
624if test -n "$ac_init_help"; then
625
626  cat <<\EOF
627
628Optional Features:
629  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
630  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
631  --enable-shared         build and link with shared libraries --enable-shared
632
633Optional Packages:
634  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
635  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
636  --with-tclinclude       directory containing the public Tcl header files.
637  --with-tcl              directory containing tcl configuration (tclConfig.sh)
638  --with-tclpackage       Tcl package installation directory.
639
640Some influential environment variables:
641  CC          C compiler command
642  CFLAGS      C compiler flags
643  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
644              nonstandard directory <lib dir>
645  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
646              headers in a nonstandard directory <include dir>
647  CPP         C preprocessor
648
649Use these variables to override the choices made by `configure' or to help
650it to find libraries and programs with nonstandard names/locations.
651
652EOF
653fi
654
655if test "$ac_init_help" = "recursive"; then
656  # If there are subdirs, report their specific --help.
657  ac_popdir=`pwd`
658  for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
659    cd $ac_subdir
660    # A "../" for each directory in /$ac_subdir.
661    ac_dots=`echo $ac_subdir |
662             sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
663
664    case $srcdir in
665    .) # No --srcdir option.  We are building in place.
666      ac_sub_srcdir=$srcdir ;;
667    [\\/]* | ?:[\\/]* ) # Absolute path.
668      ac_sub_srcdir=$srcdir/$ac_subdir ;;
669    *) # Relative path.
670      ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
671    esac
672
673    # Check for guested configure; otherwise get Cygnus style configure.
674    if test -f $ac_sub_srcdir/configure.gnu; then
675      echo
676      $SHELL $ac_sub_srcdir/configure.gnu  --help=recursive
677    elif test -f $ac_sub_srcdir/configure; then
678      echo
679      $SHELL $ac_sub_srcdir/configure  --help=recursive
680    elif test -f $ac_sub_srcdir/configure.ac ||
681           test -f $ac_sub_srcdir/configure.in; then
682      echo
683      $ac_configure --help
684    else
685      echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
686    fi
687    cd $ac_popdir
688  done
689fi
690
691test -n "$ac_init_help" && exit 0
692if $ac_init_version; then
693  cat <<\EOF
694
695Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
696Free Software Foundation, Inc.
697This configure script is free software; the Free Software Foundation
698gives unlimited permission to copy, distribute and modify it.
699EOF
700  exit 0
701fi
702exec 5>config.log
703cat >&5 <<EOF
704This file contains any messages produced by compilers while
705running configure, to aid debugging if configure makes a mistake.
706
707It was created by $as_me, which was
708generated by GNU Autoconf 2.52.  Invocation command line was
709
710  $ $0 $@
711
712EOF
713{
714cat <<_ASUNAME
715## ---------- ##
716## Platform.  ##
717## ---------- ##
718
719hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
720uname -m = `(uname -m) 2>/dev/null || echo unknown`
721uname -r = `(uname -r) 2>/dev/null || echo unknown`
722uname -s = `(uname -s) 2>/dev/null || echo unknown`
723uname -v = `(uname -v) 2>/dev/null || echo unknown`
724
725/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
726/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
727
728/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
729/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
730/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
731hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
732/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
733/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
734/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
735
736PATH = $PATH
737
738_ASUNAME
739} >&5
740
741cat >&5 <<EOF
742## ------------ ##
743## Core tests.  ##
744## ------------ ##
745
746EOF
747
748# Keep a trace of the command line.
749# Strip out --no-create and --no-recursion so they do not pile up.
750# Also quote any args containing shell meta-characters.
751ac_configure_args=
752ac_sep=
753for ac_arg
754do
755  case $ac_arg in
756  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
757  | --no-cr | --no-c) ;;
758  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
759  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
760  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
761    ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
762    ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
763    ac_sep=" " ;;
764  *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
765     ac_sep=" " ;;
766  esac
767  # Get rid of the leading space.
768done
769
770# When interrupted or exit'd, cleanup temporary files, and complete
771# config.log.  We remove comments because anyway the quotes in there
772# would cause problems or look ugly.
773trap 'exit_status=$?
774  # Save into config.log some information that might help in debugging.
775  echo >&5
776  echo "## ----------------- ##" >&5
777  echo "## Cache variables.  ##" >&5
778  echo "## ----------------- ##" >&5
779  echo >&5
780  # The following way of writing the cache mishandles newlines in values,
781{
782  (set) 2>&1 |
783    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
784    *ac_space=\ *)
785      sed -n \
786        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
787          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
788      ;;
789    *)
790      sed -n \
791        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
792      ;;
793    esac;
794} >&5
795  sed "/^$/d" confdefs.h >conftest.log
796  if test -s conftest.log; then
797    echo >&5
798    echo "## ------------ ##" >&5
799    echo "## confdefs.h.  ##" >&5
800    echo "## ------------ ##" >&5
801    echo >&5
802    cat conftest.log >&5
803  fi
804  (echo; echo) >&5
805  test "$ac_signal" != 0 &&
806    echo "$as_me: caught signal $ac_signal" >&5
807  echo "$as_me: exit $exit_status" >&5
808  rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
809    exit $exit_status
810     ' 0
811for ac_signal in 1 2 13 15; do
812  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
813done
814ac_signal=0
815
816# confdefs.h avoids OS command line length limits that DEFS can exceed.
817rm -rf conftest* confdefs.h
818# AIX cpp loses on an empty file, so make sure it contains at least a newline.
819echo >confdefs.h
820
821# Let the site file select an alternate cache file if it wants to.
822# Prefer explicitly selected file to automatically selected ones.
823if test -z "$CONFIG_SITE"; then
824  if test "x$prefix" != xNONE; then
825    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
826  else
827    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
828  fi
829fi
830for ac_site_file in $CONFIG_SITE; do
831  if test -r "$ac_site_file"; then
832    { echo "$as_me:832: loading site script $ac_site_file" >&5
833echo "$as_me: loading site script $ac_site_file" >&6;}
834    cat "$ac_site_file" >&5
835    . "$ac_site_file"
836  fi
837done
838
839if test -r "$cache_file"; then
840  # Some versions of bash will fail to source /dev/null (special
841  # files actually), so we avoid doing that.
842  if test -f "$cache_file"; then
843    { echo "$as_me:843: loading cache $cache_file" >&5
844echo "$as_me: loading cache $cache_file" >&6;}
845    case $cache_file in
846      [\\/]* | ?:[\\/]* ) . $cache_file;;
847      *)                      . ./$cache_file;;
848    esac
849  fi
850else
851  { echo "$as_me:851: creating cache $cache_file" >&5
852echo "$as_me: creating cache $cache_file" >&6;}
853  >$cache_file
854fi
855
856# Check that the precious variables saved in the cache have kept the same
857# value.
858ac_cache_corrupted=false
859for ac_var in `(set) 2>&1 |
860               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
861  eval ac_old_set=\$ac_cv_env_${ac_var}_set
862  eval ac_new_set=\$ac_env_${ac_var}_set
863  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
864  eval ac_new_val="\$ac_env_${ac_var}_value"
865  case $ac_old_set,$ac_new_set in
866    set,)
867      { echo "$as_me:867: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
868echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
869      ac_cache_corrupted=: ;;
870    ,set)
871      { echo "$as_me:871: error: \`$ac_var' was not set in the previous run" >&5
872echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
873      ac_cache_corrupted=: ;;
874    ,);;
875    *)
876      if test "x$ac_old_val" != "x$ac_new_val"; then
877        { echo "$as_me:877: error: \`$ac_var' has changed since the previous run:" >&5
878echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
879        { echo "$as_me:879:   former value:  $ac_old_val" >&5
880echo "$as_me:   former value:  $ac_old_val" >&2;}
881        { echo "$as_me:881:   current value: $ac_new_val" >&5
882echo "$as_me:   current value: $ac_new_val" >&2;}
883        ac_cache_corrupted=:
884      fi;;
885  esac
886  # Pass precious variables to config.status.  It doesn't matter if
887  # we pass some twice (in addition to the command line arguments).
888  if test "$ac_new_set" = set; then
889    case $ac_new_val in
890    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
891      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
892      ac_configure_args="$ac_configure_args '$ac_arg'"
893      ;;
894    *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
895       ;;
896    esac
897  fi
898done
899if $ac_cache_corrupted; then
900  { echo "$as_me:900: error: changes in the environment can compromise the build" >&5
901echo "$as_me: error: changes in the environment can compromise the build" >&2;}
902  { { echo "$as_me:902: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
903echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
904   { (exit 1); exit 1; }; }
905fi
906
907ac_ext=c
908ac_cpp='$CPP $CPPFLAGS'
909ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
910ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
911ac_compiler_gnu=$ac_cv_c_compiler_gnu
912
913case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
914  *c*,-n*) ECHO_N= ECHO_C='
915' ECHO_T='      ' ;;
916  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
917  *)      ECHO_N= ECHO_C='\c' ECHO_T= ;;
918esac
919echo "#! $SHELL" >conftest.sh
920echo  "exit 0"   >>conftest.sh
921chmod +x conftest.sh
922if { (echo "$as_me:922: PATH=\".;.\"; conftest.sh") >&5
923  (PATH=".;."; conftest.sh) 2>&5
924  ac_status=$?
925  echo "$as_me:925: \$? = $ac_status" >&5
926  (exit $ac_status); }; then
927  ac_path_separator=';'
928else
929  ac_path_separator=:
930fi
931PATH_SEPARATOR="$ac_path_separator"
932rm -f conftest.sh
933
934# Checks for programs.
935ac_ext=c
936ac_cpp='$CPP $CPPFLAGS'
937ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
938ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
939ac_compiler_gnu=$ac_cv_c_compiler_gnu
940if test -n "$ac_tool_prefix"; then
941  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
942set dummy ${ac_tool_prefix}gcc; ac_word=$2
943echo "$as_me:943: checking for $ac_word" >&5
944echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
945if test "${ac_cv_prog_CC+set}" = set; then
946  echo $ECHO_N "(cached) $ECHO_C" >&6
947else
948  if test -n "$CC"; then
949  ac_cv_prog_CC="$CC" # Let the user override the test.
950else
951  ac_save_IFS=$IFS; IFS=$ac_path_separator
952ac_dummy="$PATH"
953for ac_dir in $ac_dummy; do
954  IFS=$ac_save_IFS
955  test -z "$ac_dir" && ac_dir=.
956  $as_executable_p "$ac_dir/$ac_word" || continue
957ac_cv_prog_CC="${ac_tool_prefix}gcc"
958echo "$as_me:958: found $ac_dir/$ac_word" >&5
959break
960done
961
962fi
963fi
964CC=$ac_cv_prog_CC
965if test -n "$CC"; then
966  echo "$as_me:966: result: $CC" >&5
967echo "${ECHO_T}$CC" >&6
968else
969  echo "$as_me:969: result: no" >&5
970echo "${ECHO_T}no" >&6
971fi
972
973fi
974if test -z "$ac_cv_prog_CC"; then
975  ac_ct_CC=$CC
976  # Extract the first word of "gcc", so it can be a program name with args.
977set dummy gcc; ac_word=$2
978echo "$as_me:978: checking for $ac_word" >&5
979echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
980if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
981  echo $ECHO_N "(cached) $ECHO_C" >&6
982else
983  if test -n "$ac_ct_CC"; then
984  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
985else
986  ac_save_IFS=$IFS; IFS=$ac_path_separator
987ac_dummy="$PATH"
988for ac_dir in $ac_dummy; do
989  IFS=$ac_save_IFS
990  test -z "$ac_dir" && ac_dir=.
991  $as_executable_p "$ac_dir/$ac_word" || continue
992ac_cv_prog_ac_ct_CC="gcc"
993echo "$as_me:993: found $ac_dir/$ac_word" >&5
994break
995done
996
997fi
998fi
999ac_ct_CC=$ac_cv_prog_ac_ct_CC
1000if test -n "$ac_ct_CC"; then
1001  echo "$as_me:1001: result: $ac_ct_CC" >&5
1002echo "${ECHO_T}$ac_ct_CC" >&6
1003else
1004  echo "$as_me:1004: result: no" >&5
1005echo "${ECHO_T}no" >&6
1006fi
1007
1008  CC=$ac_ct_CC
1009else
1010  CC="$ac_cv_prog_CC"
1011fi
1012
1013if test -z "$CC"; then
1014  if test -n "$ac_tool_prefix"; then
1015  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1016set dummy ${ac_tool_prefix}cc; ac_word=$2
1017echo "$as_me:1017: checking for $ac_word" >&5
1018echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1019if test "${ac_cv_prog_CC+set}" = set; then
1020  echo $ECHO_N "(cached) $ECHO_C" >&6
1021else
1022  if test -n "$CC"; then
1023  ac_cv_prog_CC="$CC" # Let the user override the test.
1024else
1025  ac_save_IFS=$IFS; IFS=$ac_path_separator
1026ac_dummy="$PATH"
1027for ac_dir in $ac_dummy; do
1028  IFS=$ac_save_IFS
1029  test -z "$ac_dir" && ac_dir=.
1030  $as_executable_p "$ac_dir/$ac_word" || continue
1031ac_cv_prog_CC="${ac_tool_prefix}cc"
1032echo "$as_me:1032: found $ac_dir/$ac_word" >&5
1033break
1034done
1035
1036fi
1037fi
1038CC=$ac_cv_prog_CC
1039if test -n "$CC"; then
1040  echo "$as_me:1040: result: $CC" >&5
1041echo "${ECHO_T}$CC" >&6
1042else
1043  echo "$as_me:1043: result: no" >&5
1044echo "${ECHO_T}no" >&6
1045fi
1046
1047fi
1048if test -z "$ac_cv_prog_CC"; then
1049  ac_ct_CC=$CC
1050  # Extract the first word of "cc", so it can be a program name with args.
1051set dummy cc; ac_word=$2
1052echo "$as_me:1052: checking for $ac_word" >&5
1053echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1054if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1055  echo $ECHO_N "(cached) $ECHO_C" >&6
1056else
1057  if test -n "$ac_ct_CC"; then
1058  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1059else
1060  ac_save_IFS=$IFS; IFS=$ac_path_separator
1061ac_dummy="$PATH"
1062for ac_dir in $ac_dummy; do
1063  IFS=$ac_save_IFS
1064  test -z "$ac_dir" && ac_dir=.
1065  $as_executable_p "$ac_dir/$ac_word" || continue
1066ac_cv_prog_ac_ct_CC="cc"
1067echo "$as_me:1067: found $ac_dir/$ac_word" >&5
1068break
1069done
1070
1071fi
1072fi
1073ac_ct_CC=$ac_cv_prog_ac_ct_CC
1074if test -n "$ac_ct_CC"; then
1075  echo "$as_me:1075: result: $ac_ct_CC" >&5
1076echo "${ECHO_T}$ac_ct_CC" >&6
1077else
1078  echo "$as_me:1078: result: no" >&5
1079echo "${ECHO_T}no" >&6
1080fi
1081
1082  CC=$ac_ct_CC
1083else
1084  CC="$ac_cv_prog_CC"
1085fi
1086
1087fi
1088if test -z "$CC"; then
1089  # Extract the first word of "cc", so it can be a program name with args.
1090set dummy cc; ac_word=$2
1091echo "$as_me:1091: checking for $ac_word" >&5
1092echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1093if test "${ac_cv_prog_CC+set}" = set; then
1094  echo $ECHO_N "(cached) $ECHO_C" >&6
1095else
1096  if test -n "$CC"; then
1097  ac_cv_prog_CC="$CC" # Let the user override the test.
1098else
1099  ac_prog_rejected=no
1100  ac_save_IFS=$IFS; IFS=$ac_path_separator
1101ac_dummy="$PATH"
1102for ac_dir in $ac_dummy; do
1103  IFS=$ac_save_IFS
1104  test -z "$ac_dir" && ac_dir=.
1105  $as_executable_p "$ac_dir/$ac_word" || continue
1106if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1107  ac_prog_rejected=yes
1108  continue
1109fi
1110ac_cv_prog_CC="cc"
1111echo "$as_me:1111: found $ac_dir/$ac_word" >&5
1112break
1113done
1114
1115if test $ac_prog_rejected = yes; then
1116  # We found a bogon in the path, so make sure we never use it.
1117  set dummy $ac_cv_prog_CC
1118  shift
1119  if test $# != 0; then
1120    # We chose a different compiler from the bogus one.
1121    # However, it has the same basename, so the bogon will be chosen
1122    # first if we set CC to just the basename; use the full file name.
1123    shift
1124    set dummy "$ac_dir/$ac_word" ${1+"$@"}
1125    shift
1126    ac_cv_prog_CC="$@"
1127  fi
1128fi
1129fi
1130fi
1131CC=$ac_cv_prog_CC
1132if test -n "$CC"; then
1133  echo "$as_me:1133: result: $CC" >&5
1134echo "${ECHO_T}$CC" >&6
1135else
1136  echo "$as_me:1136: result: no" >&5
1137echo "${ECHO_T}no" >&6
1138fi
1139
1140fi
1141if test -z "$CC"; then
1142  if test -n "$ac_tool_prefix"; then
1143  for ac_prog in cl
1144  do
1145    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1146set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1147echo "$as_me:1147: checking for $ac_word" >&5
1148echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1149if test "${ac_cv_prog_CC+set}" = set; then
1150  echo $ECHO_N "(cached) $ECHO_C" >&6
1151else
1152  if test -n "$CC"; then
1153  ac_cv_prog_CC="$CC" # Let the user override the test.
1154else
1155  ac_save_IFS=$IFS; IFS=$ac_path_separator
1156ac_dummy="$PATH"
1157for ac_dir in $ac_dummy; do
1158  IFS=$ac_save_IFS
1159  test -z "$ac_dir" && ac_dir=.
1160  $as_executable_p "$ac_dir/$ac_word" || continue
1161ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1162echo "$as_me:1162: found $ac_dir/$ac_word" >&5
1163break
1164done
1165
1166fi
1167fi
1168CC=$ac_cv_prog_CC
1169if test -n "$CC"; then
1170  echo "$as_me:1170: result: $CC" >&5
1171echo "${ECHO_T}$CC" >&6
1172else
1173  echo "$as_me:1173: result: no" >&5
1174echo "${ECHO_T}no" >&6
1175fi
1176
1177    test -n "$CC" && break
1178  done
1179fi
1180if test -z "$CC"; then
1181  ac_ct_CC=$CC
1182  for ac_prog in cl
1183do
1184  # Extract the first word of "$ac_prog", so it can be a program name with args.
1185set dummy $ac_prog; ac_word=$2
1186echo "$as_me:1186: checking for $ac_word" >&5
1187echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1188if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1189  echo $ECHO_N "(cached) $ECHO_C" >&6
1190else
1191  if test -n "$ac_ct_CC"; then
1192  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1193else
1194  ac_save_IFS=$IFS; IFS=$ac_path_separator
1195ac_dummy="$PATH"
1196for ac_dir in $ac_dummy; do
1197  IFS=$ac_save_IFS
1198  test -z "$ac_dir" && ac_dir=.
1199  $as_executable_p "$ac_dir/$ac_word" || continue
1200ac_cv_prog_ac_ct_CC="$ac_prog"
1201echo "$as_me:1201: found $ac_dir/$ac_word" >&5
1202break
1203done
1204
1205fi
1206fi
1207ac_ct_CC=$ac_cv_prog_ac_ct_CC
1208if test -n "$ac_ct_CC"; then
1209  echo "$as_me:1209: result: $ac_ct_CC" >&5
1210echo "${ECHO_T}$ac_ct_CC" >&6
1211else
1212  echo "$as_me:1212: result: no" >&5
1213echo "${ECHO_T}no" >&6
1214fi
1215
1216  test -n "$ac_ct_CC" && break
1217done
1218
1219  CC=$ac_ct_CC
1220fi
1221
1222fi
1223
1224test -z "$CC" && { { echo "$as_me:1224: error: no acceptable cc found in \$PATH" >&5
1225echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1226   { (exit 1); exit 1; }; }
1227
1228# Provide some information about the compiler.
1229echo "$as_me:1229:" \
1230     "checking for C compiler version" >&5
1231ac_compiler=`set X $ac_compile; echo $2`
1232{ (eval echo "$as_me:1232: \"$ac_compiler --version </dev/null >&5\"") >&5
1233  (eval $ac_compiler --version </dev/null >&5) 2>&5
1234  ac_status=$?
1235  echo "$as_me:1235: \$? = $ac_status" >&5
1236  (exit $ac_status); }
1237{ (eval echo "$as_me:1237: \"$ac_compiler -v </dev/null >&5\"") >&5
1238  (eval $ac_compiler -v </dev/null >&5) 2>&5
1239  ac_status=$?
1240  echo "$as_me:1240: \$? = $ac_status" >&5
1241  (exit $ac_status); }
1242{ (eval echo "$as_me:1242: \"$ac_compiler -V </dev/null >&5\"") >&5
1243  (eval $ac_compiler -V </dev/null >&5) 2>&5
1244  ac_status=$?
1245  echo "$as_me:1245: \$? = $ac_status" >&5
1246  (exit $ac_status); }
1247
1248cat >conftest.$ac_ext <<_ACEOF
1249#line 1249 "configure"
1250#include "confdefs.h"
1251
1252int
1253main ()
1254{
1255
1256  ;
1257  return 0;
1258}
1259_ACEOF
1260ac_clean_files_save=$ac_clean_files
1261ac_clean_files="$ac_clean_files a.out a.exe"
1262# Try to create an executable without -o first, disregard a.out.
1263# It will help us diagnose broken compilers, and finding out an intuition
1264# of exeext.
1265echo "$as_me:1265: checking for C compiler default output" >&5
1266echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1267ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1268if { (eval echo "$as_me:1268: \"$ac_link_default\"") >&5
1269  (eval $ac_link_default) 2>&5
1270  ac_status=$?
1271  echo "$as_me:1271: \$? = $ac_status" >&5
1272  (exit $ac_status); }; then
1273  # Find the output, starting from the most likely.  This scheme is
1274# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1275# resort.
1276for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1277                ls a.out conftest 2>/dev/null;
1278                ls a.* conftest.* 2>/dev/null`; do
1279  case $ac_file in
1280    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1281    a.out ) # We found the default executable, but exeext='' is most
1282            # certainly right.
1283            break;;
1284    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1285          # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1286          export ac_cv_exeext
1287          break;;
1288    * ) break;;
1289  esac
1290done
1291else
1292  echo "$as_me: failed program was:" >&5
1293cat conftest.$ac_ext >&5
1294{ { echo "$as_me:1294: error: C compiler cannot create executables" >&5
1295echo "$as_me: error: C compiler cannot create executables" >&2;}
1296   { (exit 77); exit 77; }; }
1297fi
1298
1299ac_exeext=$ac_cv_exeext
1300echo "$as_me:1300: result: $ac_file" >&5
1301echo "${ECHO_T}$ac_file" >&6
1302
1303# Check the compiler produces executables we can run.  If not, either
1304# the compiler is broken, or we cross compile.
1305echo "$as_me:1305: checking whether the C compiler works" >&5
1306echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1307# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1308# If not cross compiling, check that we can run a simple program.
1309if test "$cross_compiling" != yes; then
1310  if { ac_try='./$ac_file'
1311  { (eval echo "$as_me:1311: \"$ac_try\"") >&5
1312  (eval $ac_try) 2>&5
1313  ac_status=$?
1314  echo "$as_me:1314: \$? = $ac_status" >&5
1315  (exit $ac_status); }; }; then
1316    cross_compiling=no
1317  else
1318    if test "$cross_compiling" = maybe; then
1319        cross_compiling=yes
1320    else
1321        { { echo "$as_me:1321: error: cannot run C compiled programs.
1322If you meant to cross compile, use \`--host'." >&5
1323echo "$as_me: error: cannot run C compiled programs.
1324If you meant to cross compile, use \`--host'." >&2;}
1325   { (exit 1); exit 1; }; }
1326    fi
1327  fi
1328fi
1329echo "$as_me:1329: result: yes" >&5
1330echo "${ECHO_T}yes" >&6
1331
1332rm -f a.out a.exe conftest$ac_cv_exeext
1333ac_clean_files=$ac_clean_files_save
1334# Check the compiler produces executables we can run.  If not, either
1335# the compiler is broken, or we cross compile.
1336echo "$as_me:1336: checking whether we are cross compiling" >&5
1337echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1338echo "$as_me:1338: result: $cross_compiling" >&5
1339echo "${ECHO_T}$cross_compiling" >&6
1340
1341echo "$as_me:1341: checking for executable suffix" >&5
1342echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1343if { (eval echo "$as_me:1343: \"$ac_link\"") >&5
1344  (eval $ac_link) 2>&5
1345  ac_status=$?
1346  echo "$as_me:1346: \$? = $ac_status" >&5
1347  (exit $ac_status); }; then
1348  # If both `conftest.exe' and `conftest' are `present' (well, observable)
1349# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1350# work properly (i.e., refer to `conftest.exe'), while it won't with
1351# `rm'.
1352for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1353  case $ac_file in
1354    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1355    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1356          export ac_cv_exeext
1357          break;;
1358    * ) break;;
1359  esac
1360done
1361else
1362  { { echo "$as_me:1362: error: cannot compute EXEEXT: cannot compile and link" >&5
1363echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1364   { (exit 1); exit 1; }; }
1365fi
1366
1367rm -f conftest$ac_cv_exeext
1368echo "$as_me:1368: result: $ac_cv_exeext" >&5
1369echo "${ECHO_T}$ac_cv_exeext" >&6
1370
1371rm -f conftest.$ac_ext
1372EXEEXT=$ac_cv_exeext
1373ac_exeext=$EXEEXT
1374echo "$as_me:1374: checking for object suffix" >&5
1375echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1376if test "${ac_cv_objext+set}" = set; then
1377  echo $ECHO_N "(cached) $ECHO_C" >&6
1378else
1379  cat >conftest.$ac_ext <<_ACEOF
1380#line 1380 "configure"
1381#include "confdefs.h"
1382
1383int
1384main ()
1385{
1386
1387  ;
1388  return 0;
1389}
1390_ACEOF
1391rm -f conftest.o conftest.obj
1392if { (eval echo "$as_me:1392: \"$ac_compile\"") >&5
1393  (eval $ac_compile) 2>&5
1394  ac_status=$?
1395  echo "$as_me:1395: \$? = $ac_status" >&5
1396  (exit $ac_status); }; then
1397  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1398  case $ac_file in
1399    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1400    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1401       break;;
1402  esac
1403done
1404else
1405  echo "$as_me: failed program was:" >&5
1406cat conftest.$ac_ext >&5
1407{ { echo "$as_me:1407: error: cannot compute OBJEXT: cannot compile" >&5
1408echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1409   { (exit 1); exit 1; }; }
1410fi
1411
1412rm -f conftest.$ac_cv_objext conftest.$ac_ext
1413fi
1414echo "$as_me:1414: result: $ac_cv_objext" >&5
1415echo "${ECHO_T}$ac_cv_objext" >&6
1416OBJEXT=$ac_cv_objext
1417ac_objext=$OBJEXT
1418echo "$as_me:1418: checking whether we are using the GNU C compiler" >&5
1419echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1420if test "${ac_cv_c_compiler_gnu+set}" = set; then
1421  echo $ECHO_N "(cached) $ECHO_C" >&6
1422else
1423  cat >conftest.$ac_ext <<_ACEOF
1424#line 1424 "configure"
1425#include "confdefs.h"
1426
1427int
1428main ()
1429{
1430#ifndef __GNUC__
1431       choke me
1432#endif
1433
1434  ;
1435  return 0;
1436}
1437_ACEOF
1438rm -f conftest.$ac_objext
1439if { (eval echo "$as_me:1439: \"$ac_compile\"") >&5
1440  (eval $ac_compile) 2>&5
1441  ac_status=$?
1442  echo "$as_me:1442: \$? = $ac_status" >&5
1443  (exit $ac_status); } &&
1444         { ac_try='test -s conftest.$ac_objext'
1445  { (eval echo "$as_me:1445: \"$ac_try\"") >&5
1446  (eval $ac_try) 2>&5
1447  ac_status=$?
1448  echo "$as_me:1448: \$? = $ac_status" >&5
1449  (exit $ac_status); }; }; then
1450  ac_compiler_gnu=yes
1451else
1452  echo "$as_me: failed program was:" >&5
1453cat conftest.$ac_ext >&5
1454ac_compiler_gnu=no
1455fi
1456rm -f conftest.$ac_objext conftest.$ac_ext
1457ac_cv_c_compiler_gnu=$ac_compiler_gnu
1458
1459fi
1460echo "$as_me:1460: result: $ac_cv_c_compiler_gnu" >&5
1461echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1462GCC=`test $ac_compiler_gnu = yes && echo yes`
1463ac_test_CFLAGS=${CFLAGS+set}
1464ac_save_CFLAGS=$CFLAGS
1465CFLAGS="-g"
1466echo "$as_me:1466: checking whether $CC accepts -g" >&5
1467echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1468if test "${ac_cv_prog_cc_g+set}" = set; then
1469  echo $ECHO_N "(cached) $ECHO_C" >&6
1470else
1471  cat >conftest.$ac_ext <<_ACEOF
1472#line 1472 "configure"
1473#include "confdefs.h"
1474
1475int
1476main ()
1477{
1478
1479  ;
1480  return 0;
1481}
1482_ACEOF
1483rm -f conftest.$ac_objext
1484if { (eval echo "$as_me:1484: \"$ac_compile\"") >&5
1485  (eval $ac_compile) 2>&5
1486  ac_status=$?
1487  echo "$as_me:1487: \$? = $ac_status" >&5
1488  (exit $ac_status); } &&
1489         { ac_try='test -s conftest.$ac_objext'
1490  { (eval echo "$as_me:1490: \"$ac_try\"") >&5
1491  (eval $ac_try) 2>&5
1492  ac_status=$?
1493  echo "$as_me:1493: \$? = $ac_status" >&5
1494  (exit $ac_status); }; }; then
1495  ac_cv_prog_cc_g=yes
1496else
1497  echo "$as_me: failed program was:" >&5
1498cat conftest.$ac_ext >&5
1499ac_cv_prog_cc_g=no
1500fi
1501rm -f conftest.$ac_objext conftest.$ac_ext
1502fi
1503echo "$as_me:1503: result: $ac_cv_prog_cc_g" >&5
1504echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1505if test "$ac_test_CFLAGS" = set; then
1506  CFLAGS=$ac_save_CFLAGS
1507elif test $ac_cv_prog_cc_g = yes; then
1508  if test "$GCC" = yes; then
1509    CFLAGS="-g -O2"
1510  else
1511    CFLAGS="-g"
1512  fi
1513else
1514  if test "$GCC" = yes; then
1515    CFLAGS="-O2"
1516  else
1517    CFLAGS=
1518  fi
1519fi
1520# Some people use a C++ compiler to compile C.  Since we use `exit',
1521# in C++ we need to declare it.  In case someone uses the same compiler
1522# for both compiling C and C++ we need to have the C++ compiler decide
1523# the declaration of exit, since it's the most demanding environment.
1524cat >conftest.$ac_ext <<_ACEOF
1525#ifndef __cplusplus
1526  choke me
1527#endif
1528_ACEOF
1529rm -f conftest.$ac_objext
1530if { (eval echo "$as_me:1530: \"$ac_compile\"") >&5
1531  (eval $ac_compile) 2>&5
1532  ac_status=$?
1533  echo "$as_me:1533: \$? = $ac_status" >&5
1534  (exit $ac_status); } &&
1535         { ac_try='test -s conftest.$ac_objext'
1536  { (eval echo "$as_me:1536: \"$ac_try\"") >&5
1537  (eval $ac_try) 2>&5
1538  ac_status=$?
1539  echo "$as_me:1539: \$? = $ac_status" >&5
1540  (exit $ac_status); }; }; then
1541  for ac_declaration in \
1542   ''\
1543   '#include <stdlib.h>' \
1544   'extern "C" void std::exit (int) throw (); using std::exit;' \
1545   'extern "C" void std::exit (int); using std::exit;' \
1546   'extern "C" void exit (int) throw ();' \
1547   'extern "C" void exit (int);' \
1548   'void exit (int);'
1549do
1550  cat >conftest.$ac_ext <<_ACEOF
1551#line 1551 "configure"
1552#include "confdefs.h"
1553#include <stdlib.h>
1554$ac_declaration
1555int
1556main ()
1557{
1558exit (42);
1559  ;
1560  return 0;
1561}
1562_ACEOF
1563rm -f conftest.$ac_objext
1564if { (eval echo "$as_me:1564: \"$ac_compile\"") >&5
1565  (eval $ac_compile) 2>&5
1566  ac_status=$?
1567  echo "$as_me:1567: \$? = $ac_status" >&5
1568  (exit $ac_status); } &&
1569         { ac_try='test -s conftest.$ac_objext'
1570  { (eval echo "$as_me:1570: \"$ac_try\"") >&5
1571  (eval $ac_try) 2>&5
1572  ac_status=$?
1573  echo "$as_me:1573: \$? = $ac_status" >&5
1574  (exit $ac_status); }; }; then
1575  :
1576else
1577  echo "$as_me: failed program was:" >&5
1578cat conftest.$ac_ext >&5
1579continue
1580fi
1581rm -f conftest.$ac_objext conftest.$ac_ext
1582  cat >conftest.$ac_ext <<_ACEOF
1583#line 1583 "configure"
1584#include "confdefs.h"
1585$ac_declaration
1586int
1587main ()
1588{
1589exit (42);
1590  ;
1591  return 0;
1592}
1593_ACEOF
1594rm -f conftest.$ac_objext
1595if { (eval echo "$as_me:1595: \"$ac_compile\"") >&5
1596  (eval $ac_compile) 2>&5
1597  ac_status=$?
1598  echo "$as_me:1598: \$? = $ac_status" >&5
1599  (exit $ac_status); } &&
1600         { ac_try='test -s conftest.$ac_objext'
1601  { (eval echo "$as_me:1601: \"$ac_try\"") >&5
1602  (eval $ac_try) 2>&5
1603  ac_status=$?
1604  echo "$as_me:1604: \$? = $ac_status" >&5
1605  (exit $ac_status); }; }; then
1606  break
1607else
1608  echo "$as_me: failed program was:" >&5
1609cat conftest.$ac_ext >&5
1610fi
1611rm -f conftest.$ac_objext conftest.$ac_ext
1612done
1613rm -f conftest*
1614if test -n "$ac_declaration"; then
1615  echo '#ifdef __cplusplus' >>confdefs.h
1616  echo $ac_declaration      >>confdefs.h
1617  echo '#endif'             >>confdefs.h
1618fi
1619
1620else
1621  echo "$as_me: failed program was:" >&5
1622cat conftest.$ac_ext >&5
1623fi
1624rm -f conftest.$ac_objext conftest.$ac_ext
1625ac_ext=c
1626ac_cpp='$CPP $CPPFLAGS'
1627ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1628ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1629ac_compiler_gnu=$ac_cv_c_compiler_gnu
1630
1631ac_aux_dir=
1632for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1633  if test -f $ac_dir/install-sh; then
1634    ac_aux_dir=$ac_dir
1635    ac_install_sh="$ac_aux_dir/install-sh -c"
1636    break
1637  elif test -f $ac_dir/install.sh; then
1638    ac_aux_dir=$ac_dir
1639    ac_install_sh="$ac_aux_dir/install.sh -c"
1640    break
1641  elif test -f $ac_dir/shtool; then
1642    ac_aux_dir=$ac_dir
1643    ac_install_sh="$ac_aux_dir/shtool install -c"
1644    break
1645  fi
1646done
1647if test -z "$ac_aux_dir"; then
1648  { { echo "$as_me:1648: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1649echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1650   { (exit 1); exit 1; }; }
1651fi
1652ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1653ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1654ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1655
1656# Find a good install program.  We prefer a C program (faster),
1657# so one script is as good as another.  But avoid the broken or
1658# incompatible versions:
1659# SysV /etc/install, /usr/sbin/install
1660# SunOS /usr/etc/install
1661# IRIX /sbin/install
1662# AIX /bin/install
1663# AmigaOS /C/install, which installs bootblocks on floppy discs
1664# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1665# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1666# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1667# ./install, which can be erroneously created by make from ./install.sh.
1668echo "$as_me:1668: checking for a BSD compatible install" >&5
1669echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
1670if test -z "$INSTALL"; then
1671if test "${ac_cv_path_install+set}" = set; then
1672  echo $ECHO_N "(cached) $ECHO_C" >&6
1673else
1674    ac_save_IFS=$IFS; IFS=$ac_path_separator
1675  for ac_dir in $PATH; do
1676    IFS=$ac_save_IFS
1677    # Account for people who put trailing slashes in PATH elements.
1678    case $ac_dir/ in
1679    / | ./ | .// | /cC/* \
1680    | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
1681    | /usr/ucb/* ) ;;
1682    *)
1683      # OSF1 and SCO ODT 3.0 have their own names for install.
1684      # Don't use installbsd from OSF since it installs stuff as root
1685      # by default.
1686      for ac_prog in ginstall scoinst install; do
1687        if $as_executable_p "$ac_dir/$ac_prog"; then
1688          if test $ac_prog = install &&
1689            grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
1690            # AIX install.  It has an incompatible calling convention.
1691            :
1692          elif test $ac_prog = install &&
1693            grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
1694            # program-specific install script used by HP pwplus--don't use.
1695            :
1696          else
1697            ac_cv_path_install="$ac_dir/$ac_prog -c"
1698            break 2
1699          fi
1700        fi
1701      done
1702      ;;
1703    esac
1704  done
1705
1706fi
1707  if test "${ac_cv_path_install+set}" = set; then
1708    INSTALL=$ac_cv_path_install
1709  else
1710    # As a last resort, use the slow shell script.  We don't cache a
1711    # path for INSTALL within a source directory, because that will
1712    # break other packages using the cache if that directory is
1713    # removed, or if the path is relative.
1714    INSTALL=$ac_install_sh
1715  fi
1716fi
1717echo "$as_me:1717: result: $INSTALL" >&5
1718echo "${ECHO_T}$INSTALL" >&6
1719
1720# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1721# It thinks the first close brace ends the variable substitution.
1722test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1723
1724test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1725
1726test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1727
1728# Check for standard header files.
1729
1730ac_ext=c
1731ac_cpp='$CPP $CPPFLAGS'
1732ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1733ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1734ac_compiler_gnu=$ac_cv_c_compiler_gnu
1735echo "$as_me:1735: checking how to run the C preprocessor" >&5
1736echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
1737# On Suns, sometimes $CPP names a directory.
1738if test -n "$CPP" && test -d "$CPP"; then
1739  CPP=
1740fi
1741if test -z "$CPP"; then
1742  if test "${ac_cv_prog_CPP+set}" = set; then
1743  echo $ECHO_N "(cached) $ECHO_C" >&6
1744else
1745      # Double quotes because CPP needs to be expanded
1746    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
1747    do
1748      ac_preproc_ok=false
1749for ac_c_preproc_warn_flag in '' yes
1750do
1751  # Use a header file that comes with gcc, so configuring glibc
1752  # with a fresh cross-compiler works.
1753  # On the NeXT, cc -E runs the code through the compiler's parser,
1754  # not just through cpp. "Syntax error" is here to catch this case.
1755  cat >conftest.$ac_ext <<_ACEOF
1756#line 1756 "configure"
1757#include "confdefs.h"
1758#include <assert.h>
1759                     Syntax error
1760_ACEOF
1761if { (eval echo "$as_me:1761: \"$ac_cpp conftest.$ac_ext\"") >&5
1762  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1763  ac_status=$?
1764  egrep -v '^ *\+' conftest.er1 >conftest.err
1765  rm -f conftest.er1
1766  cat conftest.err >&5
1767  echo "$as_me:1767: \$? = $ac_status" >&5
1768  (exit $ac_status); } >/dev/null; then
1769  if test -s conftest.err; then
1770    ac_cpp_err=$ac_c_preproc_warn_flag
1771  else
1772    ac_cpp_err=
1773  fi
1774else
1775  ac_cpp_err=yes
1776fi
1777if test -z "$ac_cpp_err"; then
1778  :
1779else
1780  echo "$as_me: failed program was:" >&5
1781  cat conftest.$ac_ext >&5
1782  # Broken: fails on valid input.
1783continue
1784fi
1785rm -f conftest.err conftest.$ac_ext
1786
1787  # OK, works on sane cases.  Now check whether non-existent headers
1788  # can be detected and how.
1789  cat >conftest.$ac_ext <<_ACEOF
1790#line 1790 "configure"
1791#include "confdefs.h"
1792#include <ac_nonexistent.h>
1793_ACEOF
1794if { (eval echo "$as_me:1794: \"$ac_cpp conftest.$ac_ext\"") >&5
1795  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1796  ac_status=$?
1797  egrep -v '^ *\+' conftest.er1 >conftest.err
1798  rm -f conftest.er1
1799  cat conftest.err >&5
1800  echo "$as_me:1800: \$? = $ac_status" >&5
1801  (exit $ac_status); } >/dev/null; then
1802  if test -s conftest.err; then
1803    ac_cpp_err=$ac_c_preproc_warn_flag
1804  else
1805    ac_cpp_err=
1806  fi
1807else
1808  ac_cpp_err=yes
1809fi
1810if test -z "$ac_cpp_err"; then
1811  # Broken: success on invalid input.
1812continue
1813else
1814  echo "$as_me: failed program was:" >&5
1815  cat conftest.$ac_ext >&5
1816  # Passes both tests.
1817ac_preproc_ok=:
1818break
1819fi
1820rm -f conftest.err conftest.$ac_ext
1821
1822done
1823# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1824rm -f conftest.err conftest.$ac_ext
1825if $ac_preproc_ok; then
1826  break
1827fi
1828
1829    done
1830    ac_cv_prog_CPP=$CPP
1831
1832fi
1833  CPP=$ac_cv_prog_CPP
1834else
1835  ac_cv_prog_CPP=$CPP
1836fi
1837echo "$as_me:1837: result: $CPP" >&5
1838echo "${ECHO_T}$CPP" >&6
1839ac_preproc_ok=false
1840for ac_c_preproc_warn_flag in '' yes
1841do
1842  # Use a header file that comes with gcc, so configuring glibc
1843  # with a fresh cross-compiler works.
1844  # On the NeXT, cc -E runs the code through the compiler's parser,
1845  # not just through cpp. "Syntax error" is here to catch this case.
1846  cat >conftest.$ac_ext <<_ACEOF
1847#line 1847 "configure"
1848#include "confdefs.h"
1849#include <assert.h>
1850                     Syntax error
1851_ACEOF
1852if { (eval echo "$as_me:1852: \"$ac_cpp conftest.$ac_ext\"") >&5
1853  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1854  ac_status=$?
1855  egrep -v '^ *\+' conftest.er1 >conftest.err
1856  rm -f conftest.er1
1857  cat conftest.err >&5
1858  echo "$as_me:1858: \$? = $ac_status" >&5
1859  (exit $ac_status); } >/dev/null; then
1860  if test -s conftest.err; then
1861    ac_cpp_err=$ac_c_preproc_warn_flag
1862  else
1863    ac_cpp_err=
1864  fi
1865else
1866  ac_cpp_err=yes
1867fi
1868if test -z "$ac_cpp_err"; then
1869  :
1870else
1871  echo "$as_me: failed program was:" >&5
1872  cat conftest.$ac_ext >&5
1873  # Broken: fails on valid input.
1874continue
1875fi
1876rm -f conftest.err conftest.$ac_ext
1877
1878  # OK, works on sane cases.  Now check whether non-existent headers
1879  # can be detected and how.
1880  cat >conftest.$ac_ext <<_ACEOF
1881#line 1881 "configure"
1882#include "confdefs.h"
1883#include <ac_nonexistent.h>
1884_ACEOF
1885if { (eval echo "$as_me:1885: \"$ac_cpp conftest.$ac_ext\"") >&5
1886  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1887  ac_status=$?
1888  egrep -v '^ *\+' conftest.er1 >conftest.err
1889  rm -f conftest.er1
1890  cat conftest.err >&5
1891  echo "$as_me:1891: \$? = $ac_status" >&5
1892  (exit $ac_status); } >/dev/null; then
1893  if test -s conftest.err; then
1894    ac_cpp_err=$ac_c_preproc_warn_flag
1895  else
1896    ac_cpp_err=
1897  fi
1898else
1899  ac_cpp_err=yes
1900fi
1901if test -z "$ac_cpp_err"; then
1902  # Broken: success on invalid input.
1903continue
1904else
1905  echo "$as_me: failed program was:" >&5
1906  cat conftest.$ac_ext >&5
1907  # Passes both tests.
1908ac_preproc_ok=:
1909break
1910fi
1911rm -f conftest.err conftest.$ac_ext
1912
1913done
1914# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1915rm -f conftest.err conftest.$ac_ext
1916if $ac_preproc_ok; then
1917  :
1918else
1919  { { echo "$as_me:1919: error: C preprocessor \"$CPP\" fails sanity check" >&5
1920echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
1921   { (exit 1); exit 1; }; }
1922fi
1923
1924ac_ext=c
1925ac_cpp='$CPP $CPPFLAGS'
1926ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1927ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1928ac_compiler_gnu=$ac_cv_c_compiler_gnu
1929
1930echo "$as_me:1930: checking for ANSI C header files" >&5
1931echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
1932if test "${ac_cv_header_stdc+set}" = set; then
1933  echo $ECHO_N "(cached) $ECHO_C" >&6
1934else
1935  cat >conftest.$ac_ext <<_ACEOF
1936#line 1936 "configure"
1937#include "confdefs.h"
1938#include <stdlib.h>
1939#include <stdarg.h>
1940#include <string.h>
1941#include <float.h>
1942
1943_ACEOF
1944if { (eval echo "$as_me:1944: \"$ac_cpp conftest.$ac_ext\"") >&5
1945  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1946  ac_status=$?
1947  egrep -v '^ *\+' conftest.er1 >conftest.err
1948  rm -f conftest.er1
1949  cat conftest.err >&5
1950  echo "$as_me:1950: \$? = $ac_status" >&5
1951  (exit $ac_status); } >/dev/null; then
1952  if test -s conftest.err; then
1953    ac_cpp_err=$ac_c_preproc_warn_flag
1954  else
1955    ac_cpp_err=
1956  fi
1957else
1958  ac_cpp_err=yes
1959fi
1960if test -z "$ac_cpp_err"; then
1961  ac_cv_header_stdc=yes
1962else
1963  echo "$as_me: failed program was:" >&5
1964  cat conftest.$ac_ext >&5
1965  ac_cv_header_stdc=no
1966fi
1967rm -f conftest.err conftest.$ac_ext
1968
1969if test $ac_cv_header_stdc = yes; then
1970  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1971  cat >conftest.$ac_ext <<_ACEOF
1972#line 1972 "configure"
1973#include "confdefs.h"
1974#include <string.h>
1975
1976_ACEOF
1977if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1978  egrep "memchr" >/dev/null 2>&1; then
1979  :
1980else
1981  ac_cv_header_stdc=no
1982fi
1983rm -f conftest*
1984
1985fi
1986
1987if test $ac_cv_header_stdc = yes; then
1988  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1989  cat >conftest.$ac_ext <<_ACEOF
1990#line 1990 "configure"
1991#include "confdefs.h"
1992#include <stdlib.h>
1993
1994_ACEOF
1995if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1996  egrep "free" >/dev/null 2>&1; then
1997  :
1998else
1999  ac_cv_header_stdc=no
2000fi
2001rm -f conftest*
2002
2003fi
2004
2005if test $ac_cv_header_stdc = yes; then
2006  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2007  if test "$cross_compiling" = yes; then
2008  :
2009else
2010  cat >conftest.$ac_ext <<_ACEOF
2011#line 2011 "configure"
2012#include "confdefs.h"
2013#include <ctype.h>
2014#if ((' ' & 0x0FF) == 0x020)
2015# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2016# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2017#else
2018# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
2019                     || ('j' <= (c) && (c) <= 'r') \
2020                     || ('s' <= (c) && (c) <= 'z'))
2021# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2022#endif
2023
2024#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2025int
2026main ()
2027{
2028  int i;
2029  for (i = 0; i < 256; i++)
2030    if (XOR (islower (i), ISLOWER (i))
2031        || toupper (i) != TOUPPER (i))
2032      exit(2);
2033  exit (0);
2034}
2035_ACEOF
2036rm -f conftest$ac_exeext
2037if { (eval echo "$as_me:2037: \"$ac_link\"") >&5
2038  (eval $ac_link) 2>&5
2039  ac_status=$?
2040  echo "$as_me:2040: \$? = $ac_status" >&5
2041  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2042  { (eval echo "$as_me:2042: \"$ac_try\"") >&5
2043  (eval $ac_try) 2>&5
2044  ac_status=$?
2045  echo "$as_me:2045: \$? = $ac_status" >&5
2046  (exit $ac_status); }; }; then
2047  :
2048else
2049  echo "$as_me: program exited with status $ac_status" >&5
2050echo "$as_me: failed program was:" >&5
2051cat conftest.$ac_ext >&5
2052ac_cv_header_stdc=no
2053fi
2054rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2055fi
2056fi
2057fi
2058echo "$as_me:2058: result: $ac_cv_header_stdc" >&5
2059echo "${ECHO_T}$ac_cv_header_stdc" >&6
2060if test $ac_cv_header_stdc = yes; then
2061
2062cat >>confdefs.h <<\EOF
2063#define STDC_HEADERS 1
2064EOF
2065
2066fi
2067
2068# Check for Tcl public headers
2069CYGPATH=echo
2070
2071    echo "$as_me:2071: checking for Tcl public headers" >&5
2072echo $ECHO_N "checking for Tcl public headers... $ECHO_C" >&6
2073
2074# Check whether --with-tclinclude or --without-tclinclude was given.
2075if test "${with_tclinclude+set}" = set; then
2076  withval="$with_tclinclude"
2077  with_tclinclude=${withval}
2078fi;
2079
2080    if test x"${with_tclinclude}" != x ; then
2081        if test -f "${with_tclinclude}/tcl.h" ; then
2082            ac_cv_c_tclh=${with_tclinclude}
2083        else
2084            { { echo "$as_me:2084: error: ${with_tclinclude} directory does not contain Tcl public header file tcl.h" >&5
2085echo "$as_me: error: ${with_tclinclude} directory does not contain Tcl public header file tcl.h" >&2;}
2086   { (exit 1); exit 1; }; }
2087        fi
2088    else
2089        if test "${ac_cv_c_tclh+set}" = set; then
2090  echo $ECHO_N "(cached) $ECHO_C" >&6
2091else
2092
2093            # Use the value from --with-tclinclude, if it was given
2094
2095            if test x"${with_tclinclude}" != x ; then
2096                ac_cv_c_tclh=${with_tclinclude}
2097            else
2098                # Check in the includedir, if --prefix was specified
2099
2100                eval "temp_includedir=${includedir}"
2101                for i in \
2102                        `ls -d ${temp_includedir} 2>/dev/null` \
2103                        /usr/local/include /usr/include ; do
2104                    if test -f "$i/tcl.h" ; then
2105                        ac_cv_c_tclh=$i
2106                        break
2107                    fi
2108                done
2109            fi
2110
2111fi
2112
2113    fi
2114
2115    # Print a message based on how we determined the include path
2116
2117    if test x"${ac_cv_c_tclh}" = x ; then
2118        { { echo "$as_me:2118: error: tcl.h not found.  Please specify its location with --with-tclinclude" >&5
2119echo "$as_me: error: tcl.h not found.  Please specify its location with --with-tclinclude" >&2;}
2120   { (exit 1); exit 1; }; }
2121    else
2122        echo "$as_me:2122: result: ${ac_cv_c_tclh}" >&5
2123echo "${ECHO_T}${ac_cv_c_tclh}" >&6
2124    fi
2125
2126    # Convert to a native path and substitute into the output files.
2127
2128    INCLUDE_DIR_NATIVE=`${CYGPATH} ${ac_cv_c_tclh}`
2129
2130    TCL_INCLUDES=-I\"${INCLUDE_DIR_NATIVE}\"
2131
2132# Load tclConfig.sh
2133
2134    #
2135    # Ok, lets find the tcl configuration
2136    # First, look for one uninstalled.
2137    # the alternative search directory is invoked by --with-tcl
2138    #
2139
2140    if test x"${no_tcl}" = x ; then
2141        # we reset no_tcl in case something fails here
2142        no_tcl=true
2143
2144# Check whether --with-tcl or --without-tcl was given.
2145if test "${with_tcl+set}" = set; then
2146  withval="$with_tcl"
2147  with_tclconfig=${withval}
2148fi;
2149        echo "$as_me:2149: checking for Tcl configuration" >&5
2150echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6
2151        if test "${ac_cv_c_tclconfig+set}" = set; then
2152  echo $ECHO_N "(cached) $ECHO_C" >&6
2153else
2154
2155            # First check to see if --with-tcl was specified.
2156            if test x"${with_tclconfig}" != x ; then
2157                if test -f "${with_tclconfig}/tclConfig.sh" ; then
2158                    ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
2159                else
2160                    { { echo "$as_me:2160: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
2161echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
2162   { (exit 1); exit 1; }; }
2163                fi
2164            fi
2165
2166            # then check for a private Tcl installation
2167            if test x"${ac_cv_c_tclconfig}" = x ; then
2168                for i in \
2169                        ../tcl \
2170                        `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
2171                        ../../tcl \
2172                        `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
2173                        ../../../tcl \
2174                        `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
2175                    if test -f "$i/unix/tclConfig.sh" ; then
2176                        ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
2177                        break
2178                    fi
2179                done
2180            fi
2181
2182            # check in a few common install locations
2183            if test x"${ac_cv_c_tclconfig}" = x ; then
2184                for i in `ls -d ${libdir} 2>/dev/null` \
2185                        `ls -d /usr/local/lib 2>/dev/null` \
2186                        `ls -d /usr/contrib/lib 2>/dev/null` \
2187                        `ls -d /usr/lib 2>/dev/null` \
2188                        `ls -d /usr/pkg/lib 2>/dev/null` \
2189                        `ls -d /System/Library/Tcl/8.3 2>/dev/null` \
2190                        ; do
2191                    if test -f "$i/tclConfig.sh" ; then
2192                        ac_cv_c_tclconfig=`(cd $i; pwd)`
2193                        break
2194                    fi
2195                done
2196            fi
2197
2198            # check in a few other private locations
2199            if test x"${ac_cv_c_tclconfig}" = x ; then
2200                for i in \
2201                        ${srcdir}/../tcl \
2202                        `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
2203                    if test -f "$i/unix/tclConfig.sh" ; then
2204                    ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
2205                    break
2206                fi
2207                done
2208            fi
2209
2210fi
2211
2212        if test x"${ac_cv_c_tclconfig}" = x ; then
2213            TCL_BIN_DIR="# no Tcl configs found"
2214            { echo "$as_me:2214: WARNING: Can't find Tcl configuration definitions" >&5
2215echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
2216            exit 0
2217        else
2218            no_tcl=
2219            TCL_BIN_DIR=${ac_cv_c_tclconfig}
2220            echo "$as_me:2220: result: found $TCL_BIN_DIR/tclConfig.sh" >&5
2221echo "${ECHO_T}found $TCL_BIN_DIR/tclConfig.sh" >&6
2222        fi
2223    fi
2224
2225    echo "$as_me:2225: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5
2226echo $ECHO_N "checking for existence of $TCL_BIN_DIR/tclConfig.sh... $ECHO_C" >&6
2227
2228    if test -f "$TCL_BIN_DIR/tclConfig.sh" ; then
2229        echo "$as_me:2229: result: loading" >&5
2230echo "${ECHO_T}loading" >&6
2231        . $TCL_BIN_DIR/tclConfig.sh
2232    else
2233        echo "$as_me:2233: result: file not found" >&5
2234echo "${ECHO_T}file not found" >&6
2235    fi
2236
2237    #
2238    # If the TCL_BIN_DIR is the build directory (not the install directory),
2239    # then set the common variable name to the value of the build variables.
2240    # For example, the variable TCL_LIB_SPEC will be set to the value
2241    # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
2242    # instead of TCL_BUILD_LIB_SPEC since it will work with both an
2243    # installed and uninstalled version of Tcl.
2244    #
2245
2246    if test -f $TCL_BIN_DIR/Makefile ; then
2247        TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
2248        TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
2249        TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
2250    fi
2251
2252    #
2253    # eval is required to do the TCL_DBGX substitution
2254    #
2255
2256    eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
2257    eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
2258    eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
2259
2260    eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
2261    eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
2262    eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
2263
2264# Check for Tcl package path
2265
2266    echo "$as_me:2266: checking for Tcl package directory" >&5
2267echo $ECHO_N "checking for Tcl package directory... $ECHO_C" >&6
2268
2269# Check whether --with-tclpackage or --without-tclpackage was given.
2270if test "${with_tclpackage+set}" = set; then
2271  withval="$with_tclpackage"
2272  with_tclpackagedir=${withval}
2273fi;
2274
2275    if test x"${with_tclpackagedir}" != x ; then
2276        ac_cv_c_tclpkgd=${with_tclpackagedir}
2277    else
2278        if test "${ac_cv_c_tclpkgd+set}" = set; then
2279  echo $ECHO_N "(cached) $ECHO_C" >&6
2280else
2281
2282            # Use the value from --with-tclpackagedir, if it was given
2283
2284            if test x"${with_tclpackagedir}" != x ; then
2285                ac_cv_c_tclpkgd=${with_tclpackagedir}
2286            else
2287                if test "`uname -s`" = "Darwin" ; then
2288                    if test -d "/System/Library/Tcl/$TCL_VERSION"; then
2289                        ac_cv_c_tclpkgd="/System/Library/Tcl/$TCL_VERSION/"
2290                    fi
2291                else
2292                    for i in /usr/lib /usr/pkg/lib /usr/local/lib; do
2293                        if  -d "$i/tcl$TCL_VERSION" ; then
2294                            ac_cv_c_tclpkgd="$i/tcl$TCL_VERSION/"
2295                        fi
2296                    done
2297                fi
2298            fi
2299
2300fi
2301
2302    fi
2303
2304    if test x"${ac_cv_c_tclpkgd}" = x ; then
2305        { { echo "$as_me:2305: error: Tcl package directory not found.  Please specify its location with --with-tclpackagedir" >&5
2306echo "$as_me: error: Tcl package directory not found.  Please specify its location with --with-tclpackagedir" >&2;}
2307   { (exit 1); exit 1; }; }
2308    else
2309        echo "$as_me:2309: result: ${ac_cv_c_tclpkgd}" >&5
2310echo "${ECHO_T}${ac_cv_c_tclpkgd}" >&6
2311    fi
2312
2313    # Convert to a native path and substitute into the output files.
2314
2315    PACKAGE_DIR_NATIVE=`${CYGPATH} ${ac_cv_c_tclpkgd}`
2316
2317    TCL_PACKAGE_DIR=${PACKAGE_DIR_NATIVE}
2318
2319# Allows building of shared libraries
2320
2321    echo "$as_me:2321: checking how to build libraries" >&5
2322echo $ECHO_N "checking how to build libraries... $ECHO_C" >&6
2323    # Check whether --enable-shared or --disable-shared was given.
2324if test "${enable_shared+set}" = set; then
2325  enableval="$enable_shared"
2326  tcl_ok=$enableval
2327else
2328  tcl_ok=yes
2329fi;
2330
2331    if test "${enable_shared+set}" = set; then
2332        enableval="$enable_shared"
2333        tcl_ok=$enableval
2334    else
2335        tcl_ok=yes
2336    fi
2337
2338    if test "$tcl_ok" = "yes" ; then
2339        echo "$as_me:2339: result: shared" >&5
2340echo "${ECHO_T}shared" >&6
2341        SHARED_BUILD=1
2342    else
2343        echo "$as_me:2343: result: static" >&5
2344echo "${ECHO_T}static" >&6
2345        SHARED_BUILD=0
2346        cat >>confdefs.h <<\EOF
2347#define STATIC_BUILD 1
2348EOF
2349
2350    fi
2351
2352# Pull compiler / linker values from tclConfig.sh
2353CFLAGS_DEBUG=${TCL_CFLAGS_DEBUG}
2354CFLAGS_OPTIMIZE=${TCL_CFLAGS_OPTIMIZE}
2355LDFLAGS_DEBUG=${TCL_LDFLAGS_DEBUG}
2356LDFLAGS_OPTIMIZE=${TCL_LDFLAGS_OPTIMIZE}
2357SHLIB_LD=${TCL_SHLIB_LD}
2358STLIB_LD=${TCL_STLIB_LD}
2359SHLIB_CFLAGS=${TCL_SHLIB_CFLAGS}
2360SHLIB_SUFFIX=${TCL_SHLIB_SUFFIX}
2361
2362# Output
2363ac_config_files="$ac_config_files Makefile Mk/dports.autoconf.mk"
2364cat >confcache <<\_ACEOF
2365# This file is a shell script that caches the results of configure
2366# tests run on this system so they can be shared between configure
2367# scripts and configure runs, see configure's option --config-cache.
2368# It is not useful on other systems.  If it contains results you don't
2369# want to keep, you may remove or edit it.
2370#
2371# config.status only pays attention to the cache file if you give it
2372# the --recheck option to rerun configure.
2373#
2374# `ac_cv_env_foo' variables (set or unset) will be overriden when
2375# loading this file, other *unset* `ac_cv_foo' will be assigned the
2376# following values.
2377
2378_ACEOF
2379
2380# The following way of writing the cache mishandles newlines in values,
2381# but we know of no workaround that is simple, portable, and efficient.
2382# So, don't put newlines in cache variables' values.
2383# Ultrix sh set writes to stderr and can't be redirected directly,
2384# and sets the high bit in the cache file unless we assign to the vars.
2385{
2386  (set) 2>&1 |
2387    case `(ac_space=' '; set | grep ac_space) 2>&1` in
2388    *ac_space=\ *)
2389      # `set' does not quote correctly, so add quotes (double-quote
2390      # substitution turns \\\\ into \\, and sed turns \\ into \).
2391      sed -n \
2392        "s/'/'\\\\''/g;
2393          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
2394      ;;
2395    *)
2396      # `set' quotes correctly as required by POSIX, so do not add quotes.
2397      sed -n \
2398        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
2399      ;;
2400    esac;
2401} |
2402  sed '
2403     t clear
2404     : clear
2405     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
2406     t end
2407     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
2408     : end' >>confcache
2409if cmp -s $cache_file confcache; then :; else
2410  if test -w $cache_file; then
2411    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
2412    cat confcache >$cache_file
2413  else
2414    echo "not updating unwritable cache $cache_file"
2415  fi
2416fi
2417rm -f confcache
2418
2419test "x$prefix" = xNONE && prefix=$ac_default_prefix
2420# Let make expand exec_prefix.
2421test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2422
2423# VPATH may cause trouble with some makes, so we remove $(srcdir),
2424# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
2425# trailing colons and then remove the whole line if VPATH becomes empty
2426# (actually we leave an empty line to preserve line numbers).
2427if test "x$srcdir" = x.; then
2428  ac_vpsub='/^[         ]*VPATH[        ]*=/{
2429s/:*\$(srcdir):*/:/;
2430s/:*\${srcdir}:*/:/;
2431s/:*@srcdir@:*/:/;
2432s/^\([^=]*=[    ]*\):*/\1/;
2433s/:*$//;
2434s/^[^=]*=[      ]*$//;
2435}'
2436fi
2437
2438# Transform confdefs.h into DEFS.
2439# Protect against shell expansion while executing Makefile rules.
2440# Protect against Makefile macro expansion.
2441#
2442# If the first sed substitution is executed (which looks for macros that
2443# take arguments), then we branch to the quote section.  Otherwise,
2444# look for a macro that doesn't take arguments.
2445cat >confdef2opt.sed <<\EOF
2446t clear
2447: clear
2448s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
2449t quote
2450s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
2451t quote
2452d
2453: quote
2454s,[     `~#$^&*(){}\\|;'"<>?],\\&,g
2455s,\[,\\&,g
2456s,\],\\&,g
2457s,\$,$$,g
2458p
2459EOF
2460# We use echo to avoid assuming a particular line-breaking character.
2461# The extra dot is to prevent the shell from consuming trailing
2462# line-breaks from the sub-command output.  A line-break within
2463# single-quotes doesn't work because, if this script is created in a
2464# platform that uses two characters for line-breaks (e.g., DOS), tr
2465# would break.
2466ac_LF_and_DOT=`echo; echo .`
2467DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
2468rm -f confdef2opt.sed
2469
2470: ${CONFIG_STATUS=./config.status}
2471ac_clean_files_save=$ac_clean_files
2472ac_clean_files="$ac_clean_files $CONFIG_STATUS"
2473{ echo "$as_me:2473: creating $CONFIG_STATUS" >&5
2474echo "$as_me: creating $CONFIG_STATUS" >&6;}
2475cat >$CONFIG_STATUS <<_ACEOF
2476#! $SHELL
2477# Generated automatically by configure.
2478# Run this file to recreate the current configuration.
2479# Compiler output produced by configure, useful for debugging
2480# configure, is in config.log if it exists.
2481
2482debug=false
2483SHELL=\${CONFIG_SHELL-$SHELL}
2484ac_cs_invocation="\$0 \$@"
2485
2486_ACEOF
2487
2488cat >>$CONFIG_STATUS <<\_ACEOF
2489# Be Bourne compatible
2490if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
2491  emulate sh
2492  NULLCMD=:
2493elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
2494  set -o posix
2495fi
2496
2497# Name of the executable.
2498as_me=`echo "$0" |sed 's,.*[\\/],,'`
2499
2500if expr a : '\(a\)' >/dev/null 2>&1; then
2501  as_expr=expr
2502else
2503  as_expr=false
2504fi
2505
2506rm -f conf$$ conf$$.exe conf$$.file
2507echo >conf$$.file
2508if ln -s conf$$.file conf$$ 2>/dev/null; then
2509  # We could just check for DJGPP; but this test a) works b) is more generic
2510  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
2511  if test -f conf$$.exe; then
2512    # Don't use ln at all; we don't have any links
2513    as_ln_s='cp -p'
2514  else
2515    as_ln_s='ln -s'
2516  fi
2517elif ln conf$$.file conf$$ 2>/dev/null; then
2518  as_ln_s=ln
2519else
2520  as_ln_s='cp -p'
2521fi
2522rm -f conf$$ conf$$.exe conf$$.file
2523
2524as_executable_p="test -f"
2525
2526# Support unset when possible.
2527if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
2528  as_unset=unset
2529else
2530  as_unset=false
2531fi
2532
2533# NLS nuisances.
2534$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
2535$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
2536$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
2537$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
2538$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
2539$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
2540$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
2541$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
2542
2543# IFS
2544# We need space, tab and new line, in precisely that order.
2545as_nl='
2546'
2547IFS="   $as_nl"
2548
2549# CDPATH.
2550$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
2551
2552exec 6>&1
2553
2554_ACEOF
2555
2556# Files that config.status was made for.
2557if test -n "$ac_config_files"; then
2558  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
2559fi
2560
2561if test -n "$ac_config_headers"; then
2562  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
2563fi
2564
2565if test -n "$ac_config_links"; then
2566  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
2567fi
2568
2569if test -n "$ac_config_commands"; then
2570  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
2571fi
2572
2573cat >>$CONFIG_STATUS <<\EOF
2574
2575ac_cs_usage="\
2576\`$as_me' instantiates files from templates according to the
2577current configuration.
2578
2579Usage: $0 [OPTIONS] [FILE]...
2580
2581  -h, --help       print this help, then exit
2582  -V, --version    print version number, then exit
2583  -d, --debug      don't remove temporary files
2584      --recheck    update $as_me by reconfiguring in the same conditions
2585  --file=FILE[:TEMPLATE]
2586                   instantiate the configuration file FILE
2587
2588Configuration files:
2589$config_files
2590
2591Report bugs to <bug-autoconf@gnu.org>."
2592EOF
2593
2594cat >>$CONFIG_STATUS <<EOF
2595ac_cs_version="\\
2596config.status
2597configured by $0, generated by GNU Autoconf 2.52,
2598  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
2599
2600Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
2601Free Software Foundation, Inc.
2602This config.status script is free software; the Free Software Foundation
2603gives unlimited permission to copy, distribute and modify it."
2604srcdir=$srcdir
2605INSTALL="$INSTALL"
2606EOF
2607
2608cat >>$CONFIG_STATUS <<\EOF
2609# If no file are specified by the user, then we need to provide default
2610# value.  By we need to know if files were specified by the user.
2611ac_need_defaults=:
2612while test $# != 0
2613do
2614  case $1 in
2615  --*=*)
2616    ac_option=`expr "x$1" : 'x\([^=]*\)='`
2617    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
2618    shift
2619    set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
2620    shift
2621    ;;
2622  -*);;
2623  *) # This is not an option, so the user has probably given explicit
2624     # arguments.
2625     ac_need_defaults=false;;
2626  esac
2627
2628  case $1 in
2629  # Handling of the options.
2630EOF
2631cat >>$CONFIG_STATUS <<EOF
2632  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2633    echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
2634    exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
2635EOF
2636cat >>$CONFIG_STATUS <<\EOF
2637  --version | --vers* | -V )
2638    echo "$ac_cs_version"; exit 0 ;;
2639  --he | --h)
2640    # Conflict between --help and --header
2641    { { echo "$as_me:2641: error: ambiguous option: $1
2642Try \`$0 --help' for more information." >&5
2643echo "$as_me: error: ambiguous option: $1
2644Try \`$0 --help' for more information." >&2;}
2645   { (exit 1); exit 1; }; };;
2646  --help | --hel | -h )
2647    echo "$ac_cs_usage"; exit 0 ;;
2648  --debug | --d* | -d )
2649    debug=: ;;
2650  --file | --fil | --fi | --f )
2651    shift
2652    CONFIG_FILES="$CONFIG_FILES $1"
2653    ac_need_defaults=false;;
2654  --header | --heade | --head | --hea )
2655    shift
2656    CONFIG_HEADERS="$CONFIG_HEADERS $1"
2657    ac_need_defaults=false;;
2658
2659  # This is an error.
2660  -*) { { echo "$as_me:2660: error: unrecognized option: $1
2661Try \`$0 --help' for more information." >&5
2662echo "$as_me: error: unrecognized option: $1
2663Try \`$0 --help' for more information." >&2;}
2664   { (exit 1); exit 1; }; } ;;
2665
2666  *) ac_config_targets="$ac_config_targets $1" ;;
2667
2668  esac
2669  shift
2670done
2671
2672exec 5>>config.log
2673cat >&5 << _ACEOF
2674
2675## ----------------------- ##
2676## Running config.status.  ##
2677## ----------------------- ##
2678
2679This file was extended by $as_me 2.52, executed with
2680  CONFIG_FILES    = $CONFIG_FILES
2681  CONFIG_HEADERS  = $CONFIG_HEADERS
2682  CONFIG_LINKS    = $CONFIG_LINKS
2683  CONFIG_COMMANDS = $CONFIG_COMMANDS
2684  > $ac_cs_invocation
2685on `(hostname || uname -n) 2>/dev/null | sed 1q`
2686
2687_ACEOF
2688EOF
2689
2690cat >>$CONFIG_STATUS <<\EOF
2691for ac_config_target in $ac_config_targets
2692do
2693  case "$ac_config_target" in
2694  # Handling of arguments.
2695  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
2696  "Mk/dports.autoconf.mk" ) CONFIG_FILES="$CONFIG_FILES Mk/dports.autoconf.mk" ;;
2697  *) { { echo "$as_me:2697: error: invalid argument: $ac_config_target" >&5
2698echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
2699   { (exit 1); exit 1; }; };;
2700  esac
2701done
2702
2703# If the user did not use the arguments to specify the items to instantiate,
2704# then the envvar interface is used.  Set only those that are not.
2705# We use the long form for the default assignment because of an extremely
2706# bizarre bug on SunOS 4.1.3.
2707if $ac_need_defaults; then
2708  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
2709fi
2710
2711# Create a temporary directory, and hook for its removal unless debugging.
2712$debug ||
2713{
2714  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
2715  trap '{ (exit 1); exit 1; }' 1 2 13 15
2716}
2717
2718# Create a (secure) tmp directory for tmp files.
2719: ${TMPDIR=/tmp}
2720{
2721  tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
2722  test -n "$tmp" && test -d "$tmp"
2723}  ||
2724{
2725  tmp=$TMPDIR/cs$$-$RANDOM
2726  (umask 077 && mkdir $tmp)
2727} ||
2728{
2729   echo "$me: cannot create a temporary directory in $TMPDIR" >&2
2730   { (exit 1); exit 1; }
2731}
2732
2733EOF
2734
2735cat >>$CONFIG_STATUS <<EOF
2736
2737#
2738# CONFIG_FILES section.
2739#
2740
2741# No need to generate the scripts if there are no CONFIG_FILES.
2742# This happens for instance when ./config.status config.h
2743if test -n "\$CONFIG_FILES"; then
2744  # Protect against being on the right side of a sed subst in config.status.
2745  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
2746   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
2747s,@SHELL@,$SHELL,;t t
2748s,@exec_prefix@,$exec_prefix,;t t
2749s,@prefix@,$prefix,;t t
2750s,@program_transform_name@,$program_transform_name,;t t
2751s,@bindir@,$bindir,;t t
2752s,@sbindir@,$sbindir,;t t
2753s,@libexecdir@,$libexecdir,;t t
2754s,@datadir@,$datadir,;t t
2755s,@sysconfdir@,$sysconfdir,;t t
2756s,@sharedstatedir@,$sharedstatedir,;t t
2757s,@localstatedir@,$localstatedir,;t t
2758s,@libdir@,$libdir,;t t
2759s,@includedir@,$includedir,;t t
2760s,@oldincludedir@,$oldincludedir,;t t
2761s,@infodir@,$infodir,;t t
2762s,@mandir@,$mandir,;t t
2763s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
2764s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
2765s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
2766s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
2767s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
2768s,@build_alias@,$build_alias,;t t
2769s,@host_alias@,$host_alias,;t t
2770s,@target_alias@,$target_alias,;t t
2771s,@ECHO_C@,$ECHO_C,;t t
2772s,@ECHO_N@,$ECHO_N,;t t
2773s,@ECHO_T@,$ECHO_T,;t t
2774s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
2775s,@DEFS@,$DEFS,;t t
2776s,@LIBS@,$LIBS,;t t
2777s,@CC@,$CC,;t t
2778s,@CFLAGS@,$CFLAGS,;t t
2779s,@LDFLAGS@,$LDFLAGS,;t t
2780s,@CPPFLAGS@,$CPPFLAGS,;t t
2781s,@ac_ct_CC@,$ac_ct_CC,;t t
2782s,@EXEEXT@,$EXEEXT,;t t
2783s,@OBJEXT@,$OBJEXT,;t t
2784s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
2785s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
2786s,@INSTALL_DATA@,$INSTALL_DATA,;t t
2787s,@CPP@,$CPP,;t t
2788s,@TCL_INCLUDES@,$TCL_INCLUDES,;t t
2789s,@TCL_VERSION@,$TCL_VERSION,;t t
2790s,@TCL_BIN_DIR@,$TCL_BIN_DIR,;t t
2791s,@TCL_SRC_DIR@,$TCL_SRC_DIR,;t t
2792s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
2793s,@TCL_LIB_FLAG@,$TCL_LIB_FLAG,;t t
2794s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
2795s,@TCL_STUB_LIB_FILE@,$TCL_STUB_LIB_FILE,;t t
2796s,@TCL_STUB_LIB_FLAG@,$TCL_STUB_LIB_FLAG,;t t
2797s,@TCL_STUB_LIB_SPEC@,$TCL_STUB_LIB_SPEC,;t t
2798s,@TCL_PACKAGE_DIR@,$TCL_PACKAGE_DIR,;t t
2799s,@CFLAGS_DEBUG@,$CFLAGS_DEBUG,;t t
2800s,@CFLAGS_OPTIMIZE@,$CFLAGS_OPTIMIZE,;t t
2801s,@STLIB_LD@,$STLIB_LD,;t t
2802s,@SHLIB_LD@,$SHLIB_LD,;t t
2803s,@SHLIB_CFLAGS@,$SHLIB_CFLAGS,;t t
2804s,@SHLIB_LDFLAGS@,$SHLIB_LDFLAGS,;t t
2805s,@SHLIB_SUFFIX@,$SHLIB_SUFFIX,;t t
2806CEOF
2807
2808EOF
2809
2810  cat >>$CONFIG_STATUS <<\EOF
2811  # Split the substitutions into bite-sized pieces for seds with
2812  # small command number limits, like on Digital OSF/1 and HP-UX.
2813  ac_max_sed_lines=48
2814  ac_sed_frag=1 # Number of current file.
2815  ac_beg=1 # First line for current file.
2816  ac_end=$ac_max_sed_lines # Line after last line for current file.
2817  ac_more_lines=:
2818  ac_sed_cmds=
2819  while $ac_more_lines; do
2820    if test $ac_beg -gt 1; then
2821      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
2822    else
2823      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
2824    fi
2825    if test ! -s $tmp/subs.frag; then
2826      ac_more_lines=false
2827    else
2828      # The purpose of the label and of the branching condition is to
2829      # speed up the sed processing (if there are no `@' at all, there
2830      # is no need to browse any of the substitutions).
2831      # These are the two extra sed commands mentioned above.
2832      (echo ':t
2833  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
2834      if test -z "$ac_sed_cmds"; then
2835        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
2836      else
2837        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
2838      fi
2839      ac_sed_frag=`expr $ac_sed_frag + 1`
2840      ac_beg=$ac_end
2841      ac_end=`expr $ac_end + $ac_max_sed_lines`
2842    fi
2843  done
2844  if test -z "$ac_sed_cmds"; then
2845    ac_sed_cmds=cat
2846  fi
2847fi # test -n "$CONFIG_FILES"
2848
2849EOF
2850cat >>$CONFIG_STATUS <<\EOF
2851for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
2852  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2853  case $ac_file in
2854  - | *:- | *:-:* ) # input from stdin
2855        cat >$tmp/stdin
2856        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
2857        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
2858  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
2859        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
2860  * )   ac_file_in=$ac_file.in ;;
2861  esac
2862
2863  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
2864  ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2865         X"$ac_file" : 'X\(//\)[^/]' \| \
2866         X"$ac_file" : 'X\(//\)$' \| \
2867         X"$ac_file" : 'X\(/\)' \| \
2868         .     : '\(.\)' 2>/dev/null ||
2869echo X"$ac_file" |
2870    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
2871          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
2872          /^X\(\/\/\)$/{ s//\1/; q; }
2873          /^X\(\/\).*/{ s//\1/; q; }
2874          s/.*/./; q'`
2875  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2876    { case "$ac_dir" in
2877  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
2878  *)                      as_incr_dir=.;;
2879esac
2880as_dummy="$ac_dir"
2881for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
2882  case $as_mkdir_dir in
2883    # Skip DOS drivespec
2884    ?:) as_incr_dir=$as_mkdir_dir ;;
2885    *)
2886      as_incr_dir=$as_incr_dir/$as_mkdir_dir
2887      test -d "$as_incr_dir" || mkdir "$as_incr_dir"
2888    ;;
2889  esac
2890done; }
2891
2892    ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
2893    # A "../" for each directory in $ac_dir_suffix.
2894    ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
2895  else
2896    ac_dir_suffix= ac_dots=
2897  fi
2898
2899  case $srcdir in
2900  .)  ac_srcdir=.
2901      if test -z "$ac_dots"; then
2902         ac_top_srcdir=.
2903      else
2904         ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
2905      fi ;;
2906  [\\/]* | ?:[\\/]* )
2907      ac_srcdir=$srcdir$ac_dir_suffix;
2908      ac_top_srcdir=$srcdir ;;
2909  *) # Relative path.
2910    ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
2911    ac_top_srcdir=$ac_dots$srcdir ;;
2912  esac
2913
2914  case $INSTALL in
2915  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
2916  *) ac_INSTALL=$ac_dots$INSTALL ;;
2917  esac
2918
2919  if test x"$ac_file" != x-; then
2920    { echo "$as_me:2920: creating $ac_file" >&5
2921echo "$as_me: creating $ac_file" >&6;}
2922    rm -f "$ac_file"
2923  fi
2924  # Let's still pretend it is `configure' which instantiates (i.e., don't
2925  # use $as_me), people would be surprised to read:
2926  #    /* config.h.  Generated automatically by config.status.  */
2927  configure_input="Generated automatically from `echo $ac_file_in |
2928                                                 sed 's,.*/,,'` by configure."
2929
2930  # First look for the input files in the build tree, otherwise in the
2931  # src tree.
2932  ac_file_inputs=`IFS=:
2933    for f in $ac_file_in; do
2934      case $f in
2935      -) echo $tmp/stdin ;;
2936      [\\/$]*)
2937         # Absolute (can't be DOS-style, as IFS=:)
2938         test -f "$f" || { { echo "$as_me:2938: error: cannot find input file: $f" >&5
2939echo "$as_me: error: cannot find input file: $f" >&2;}
2940   { (exit 1); exit 1; }; }
2941         echo $f;;
2942      *) # Relative
2943         if test -f "$f"; then
2944           # Build tree
2945           echo $f
2946         elif test -f "$srcdir/$f"; then
2947           # Source tree
2948           echo $srcdir/$f
2949         else
2950           # /dev/null tree
2951           { { echo "$as_me:2951: error: cannot find input file: $f" >&5
2952echo "$as_me: error: cannot find input file: $f" >&2;}
2953   { (exit 1); exit 1; }; }
2954         fi;;
2955      esac
2956    done` || { (exit 1); exit 1; }
2957EOF
2958cat >>$CONFIG_STATUS <<EOF
2959  sed "$ac_vpsub
2960$extrasub
2961EOF
2962cat >>$CONFIG_STATUS <<\EOF
2963:t
2964/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
2965s,@configure_input@,$configure_input,;t t
2966s,@srcdir@,$ac_srcdir,;t t
2967s,@top_srcdir@,$ac_top_srcdir,;t t
2968s,@INSTALL@,$ac_INSTALL,;t t
2969" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
2970  rm -f $tmp/stdin
2971  if test x"$ac_file" != x-; then
2972    mv $tmp/out $ac_file
2973  else
2974    cat $tmp/out
2975    rm -f $tmp/out
2976  fi
2977
2978done
2979EOF
2980
2981cat >>$CONFIG_STATUS <<\EOF
2982
2983{ (exit 0); exit 0; }
2984EOF
2985chmod +x $CONFIG_STATUS
2986ac_clean_files=$ac_clean_files_save
2987
2988# configure is writing to config.log, and then calls config.status.
2989# config.status does its own redirection, appending to config.log.
2990# Unfortunately, on DOS this fails, as config.log is still kept open
2991# by configure, so config.status won't be able to write to it; its
2992# output is simply discarded.  So we exec the FD to /dev/null,
2993# effectively closing config.log, so it can be properly (re)opened and
2994# appended to by config.status.  When coming back to configure, we
2995# need to make the FD available again.
2996if test "$no_create" != yes; then
2997  ac_cs_success=:
2998  exec 5>/dev/null
2999  $SHELL $CONFIG_STATUS || ac_cs_success=false
3000  exec 5>>config.log
3001  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
3002  # would make configure fail if this is the last instruction.
3003  $ac_cs_success || { (exit 1); exit 1; }
3004fi
3005
Note: See TracBrowser for help on using the repository browser.