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