1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.53.
4#
5# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
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
10if expr a : '\(a\)' >/dev/null 2>&1; then
11  as_expr=expr
12else
13  as_expr=false
14fi
15
16
17## --------------------- ##
18## M4sh Initialization.  ##
19## --------------------- ##
20
21# Be Bourne compatible
22if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23  emulate sh
24  NULLCMD=:
25elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26  set -o posix
27fi
28
29# NLS nuisances.
30# Support unset when possible.
31if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
32  as_unset=unset
33else
34  as_unset=false
35fi
36
37(set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
38    { $as_unset LANG || test "${LANG+set}" != set; } ||
39      { LANG=C; export LANG; }
40(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
41    { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
42      { LC_ALL=C; export LC_ALL; }
43(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
44    { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
45      { LC_TIME=C; export LC_TIME; }
46(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
47    { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
48      { LC_CTYPE=C; export LC_CTYPE; }
49(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
50    { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
51      { LANGUAGE=C; export LANGUAGE; }
52(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
53    { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
54      { LC_COLLATE=C; export LC_COLLATE; }
55(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
56    { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
57      { LC_NUMERIC=C; export LC_NUMERIC; }
58(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
59    { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
60      { LC_MESSAGES=C; export LC_MESSAGES; }
61
62
63# Name of the executable.
64as_me=`(basename "$0") 2>/dev/null ||
65$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
66	 X"$0" : 'X\(//\)$' \| \
67	 X"$0" : 'X\(/\)$' \| \
68	 .     : '\(.\)' 2>/dev/null ||
69echo X/"$0" |
70    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
71  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
72  	  /^X\/\(\/\).*/{ s//\1/; q; }
73  	  s/.*/./; q'`
74
75# PATH needs CR, and LINENO needs CR and PATH.
76# Avoid depending upon Character Ranges.
77as_cr_letters='abcdefghijklmnopqrstuvwxyz'
78as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
79as_cr_Letters=$as_cr_letters$as_cr_LETTERS
80as_cr_digits='0123456789'
81as_cr_alnum=$as_cr_Letters$as_cr_digits
82
83# The user is always right.
84if test "${PATH_SEPARATOR+set}" != set; then
85  echo "#! /bin/sh" >conftest.sh
86  echo  "exit 0"   >>conftest.sh
87  chmod +x conftest.sh
88  if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
89    PATH_SEPARATOR=';'
90  else
91    PATH_SEPARATOR=:
92  fi
93  rm -f conftest.sh
94fi
95
96
97  as_lineno_1=$LINENO
98  as_lineno_2=$LINENO
99  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
100  test "x$as_lineno_1" != "x$as_lineno_2" &&
101  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
102  # Find who we are.  Look in the path if we contain no path at all
103  # relative or not.
104  case $0 in
105    *[\\/]* ) as_myself=$0 ;;
106    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
107for as_dir in $PATH
108do
109  IFS=$as_save_IFS
110  test -z "$as_dir" && as_dir=.
111  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
112done
113
114       ;;
115  esac
116  # We did not find ourselves, most probably we were run as `sh COMMAND'
117  # in which case we are not to be found in the path.
118  if test "x$as_myself" = x; then
119    as_myself=$0
120  fi
121  if test ! -f "$as_myself"; then
122    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
123   { (exit 1); exit 1; }; }
124  fi
125  case $CONFIG_SHELL in
126  '')
127    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
128for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
129do
130  IFS=$as_save_IFS
131  test -z "$as_dir" && as_dir=.
132  for as_base in sh bash ksh sh5; do
133	 case $as_dir in
134	 /*)
135	   if ("$as_dir/$as_base" -c '
136  as_lineno_1=$LINENO
137  as_lineno_2=$LINENO
138  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
139  test "x$as_lineno_1" != "x$as_lineno_2" &&
140  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
141	     CONFIG_SHELL=$as_dir/$as_base
142	     export CONFIG_SHELL
143	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
144	   fi;;
145	 esac
146       done
147done
148;;
149  esac
150
151  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
152  # uniformly replaced by the line number.  The first 'sed' inserts a
153  # line-number line before each line; the second 'sed' does the real
154  # work.  The second script uses 'N' to pair each line-number line
155  # with the numbered line, and appends trailing '-' during
156  # substitution so that $LINENO is not a special case at line end.
157  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
158  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
159  sed '=' <$as_myself |
160    sed '
161      N
162      s,$,-,
163      : loop
164      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
165      t loop
166      s,-$,,
167      s,^['$as_cr_digits']*\n,,
168    ' >$as_me.lineno &&
169  chmod +x $as_me.lineno ||
170    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
171   { (exit 1); exit 1; }; }
172
173  # Don't try to exec as it changes $[0], causing all sort of problems
174  # (the dirname of $[0] is not the place where we might find the
175  # original and so on.  Autoconf is especially sensible to this).
176  . ./$as_me.lineno
177  # Exit status is that of the last command.
178  exit
179}
180
181
182case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
183  *c*,-n*) ECHO_N= ECHO_C='
184' ECHO_T='	' ;;
185  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
186  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
187esac
188
189if expr a : '\(a\)' >/dev/null 2>&1; then
190  as_expr=expr
191else
192  as_expr=false
193fi
194
195rm -f conf$$ conf$$.exe conf$$.file
196echo >conf$$.file
197if ln -s conf$$.file conf$$ 2>/dev/null; then
198  # We could just check for DJGPP; but this test a) works b) is more generic
199  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
200  if test -f conf$$.exe; then
201    # Don't use ln at all; we don't have any links
202    as_ln_s='cp -p'
203  else
204    as_ln_s='ln -s'
205  fi
206elif ln conf$$.file conf$$ 2>/dev/null; then
207  as_ln_s=ln
208else
209  as_ln_s='cp -p'
210fi
211rm -f conf$$ conf$$.exe conf$$.file
212
213as_executable_p="test -f"
214
215# Sed expression to map a string onto a valid CPP name.
216as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
217
218# Sed expression to map a string onto a valid variable name.
219as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
220
221
222# IFS
223# We need space, tab and new line, in precisely that order.
224as_nl='
225'
226IFS=" 	$as_nl"
227
228# CDPATH.
229$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
230
231
232# Name of the host.
233# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
234# so uname gets run too.
235ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
236
237exec 6>&1
238
239#
240# Initializations.
241#
242ac_default_prefix=/usr/local
243cross_compiling=no
244subdirs=
245MFLAGS=
246MAKEFLAGS=
247SHELL=${CONFIG_SHELL-/bin/sh}
248
249# Maximum number of lines to put in a shell here document.
250# This variable seems obsolete.  It should probably be removed, and
251# only ac_max_sed_lines should be used.
252: ${ac_max_here_lines=38}
253
254# Identity of this package.
255PACKAGE_NAME=
256PACKAGE_TARNAME=
257PACKAGE_VERSION=
258PACKAGE_STRING=
259PACKAGE_BUGREPORT=
260
261ac_unique_file="fastlst/fastlst.cc"
262# Factoring default headers for most tests.
263ac_includes_default="\
264#include <stdio.h>
265#if HAVE_SYS_TYPES_H
266# include <sys/types.h>
267#endif
268#if HAVE_SYS_STAT_H
269# include <sys/stat.h>
270#endif
271#if STDC_HEADERS
272# include <stdlib.h>
273# include <stddef.h>
274#else
275# if HAVE_STDLIB_H
276#  include <stdlib.h>
277# endif
278#endif
279#if HAVE_STRING_H
280# if !STDC_HEADERS && HAVE_MEMORY_H
281#  include <memory.h>
282# endif
283# include <string.h>
284#endif
285#if HAVE_STRINGS_H
286# include <strings.h>
287#endif
288#if HAVE_INTTYPES_H
289# include <inttypes.h>
290#else
291# if HAVE_STDINT_H
292#  include <stdint.h>
293# endif
294#endif
295#if HAVE_UNISTD_H
296# include <unistd.h>
297#endif"
298
299
300# Initialize some variables set by options.
301ac_init_help=
302ac_init_version=false
303# The variables have the same names as the options, with
304# dashes changed to underlines.
305cache_file=/dev/null
306exec_prefix=NONE
307no_create=
308no_recursion=
309prefix=NONE
310program_prefix=NONE
311program_suffix=NONE
312program_transform_name=s,x,x,
313silent=
314site=
315srcdir=
316verbose=
317x_includes=NONE
318x_libraries=NONE
319
320# Installation directory options.
321# These are left unexpanded so users can "make install exec_prefix=/foo"
322# and all the variables that are supposed to be based on exec_prefix
323# by default will actually change.
324# Use braces instead of parens because sh, perl, etc. also accept them.
325bindir='${exec_prefix}/bin'
326sbindir='${exec_prefix}/sbin'
327libexecdir='${exec_prefix}/libexec'
328datadir='${prefix}/share'
329sysconfdir='${prefix}/etc'
330sharedstatedir='${prefix}/com'
331localstatedir='${prefix}/var'
332libdir='${exec_prefix}/lib'
333includedir='${prefix}/include'
334oldincludedir='/usr/include'
335infodir='${prefix}/info'
336mandir='${prefix}/man'
337
338ac_prev=
339for ac_option
340do
341  # If the previous option needs an argument, assign it.
342  if test -n "$ac_prev"; then
343    eval "$ac_prev=\$ac_option"
344    ac_prev=
345    continue
346  fi
347
348  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
349
350  # Accept the important Cygnus configure options, so we can diagnose typos.
351
352  case $ac_option in
353
354  -bindir | --bindir | --bindi | --bind | --bin | --bi)
355    ac_prev=bindir ;;
356  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
357    bindir=$ac_optarg ;;
358
359  -build | --build | --buil | --bui | --bu)
360    ac_prev=build_alias ;;
361  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
362    build_alias=$ac_optarg ;;
363
364  -cache-file | --cache-file | --cache-fil | --cache-fi \
365  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
366    ac_prev=cache_file ;;
367  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
368  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
369    cache_file=$ac_optarg ;;
370
371  --config-cache | -C)
372    cache_file=config.cache ;;
373
374  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
375    ac_prev=datadir ;;
376  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
377  | --da=*)
378    datadir=$ac_optarg ;;
379
380  -disable-* | --disable-*)
381    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
382    # Reject names that are not valid shell variable names.
383    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
384      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
385   { (exit 1); exit 1; }; }
386    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
387    eval "enable_$ac_feature=no" ;;
388
389  -enable-* | --enable-*)
390    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
391    # Reject names that are not valid shell variable names.
392    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
393      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
394   { (exit 1); exit 1; }; }
395    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
396    case $ac_option in
397      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
398      *) ac_optarg=yes ;;
399    esac
400    eval "enable_$ac_feature='$ac_optarg'" ;;
401
402  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
403  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
404  | --exec | --exe | --ex)
405    ac_prev=exec_prefix ;;
406  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
407  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
408  | --exec=* | --exe=* | --ex=*)
409    exec_prefix=$ac_optarg ;;
410
411  -gas | --gas | --ga | --g)
412    # Obsolete; use --with-gas.
413    with_gas=yes ;;
414
415  -help | --help | --hel | --he | -h)
416    ac_init_help=long ;;
417  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
418    ac_init_help=recursive ;;
419  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
420    ac_init_help=short ;;
421
422  -host | --host | --hos | --ho)
423    ac_prev=host_alias ;;
424  -host=* | --host=* | --hos=* | --ho=*)
425    host_alias=$ac_optarg ;;
426
427  -includedir | --includedir | --includedi | --included | --include \
428  | --includ | --inclu | --incl | --inc)
429    ac_prev=includedir ;;
430  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
431  | --includ=* | --inclu=* | --incl=* | --inc=*)
432    includedir=$ac_optarg ;;
433
434  -infodir | --infodir | --infodi | --infod | --info | --inf)
435    ac_prev=infodir ;;
436  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
437    infodir=$ac_optarg ;;
438
439  -libdir | --libdir | --libdi | --libd)
440    ac_prev=libdir ;;
441  -libdir=* | --libdir=* | --libdi=* | --libd=*)
442    libdir=$ac_optarg ;;
443
444  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
445  | --libexe | --libex | --libe)
446    ac_prev=libexecdir ;;
447  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
448  | --libexe=* | --libex=* | --libe=*)
449    libexecdir=$ac_optarg ;;
450
451  -localstatedir | --localstatedir | --localstatedi | --localstated \
452  | --localstate | --localstat | --localsta | --localst \
453  | --locals | --local | --loca | --loc | --lo)
454    ac_prev=localstatedir ;;
455  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
456  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
457  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
458    localstatedir=$ac_optarg ;;
459
460  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
461    ac_prev=mandir ;;
462  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
463    mandir=$ac_optarg ;;
464
465  -nfp | --nfp | --nf)
466    # Obsolete; use --without-fp.
467    with_fp=no ;;
468
469  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
470  | --no-cr | --no-c | -n)
471    no_create=yes ;;
472
473  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
474  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
475    no_recursion=yes ;;
476
477  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
478  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
479  | --oldin | --oldi | --old | --ol | --o)
480    ac_prev=oldincludedir ;;
481  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
482  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
483  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
484    oldincludedir=$ac_optarg ;;
485
486  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
487    ac_prev=prefix ;;
488  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
489    prefix=$ac_optarg ;;
490
491  -program-prefix | --program-prefix | --program-prefi | --program-pref \
492  | --program-pre | --program-pr | --program-p)
493    ac_prev=program_prefix ;;
494  -program-prefix=* | --program-prefix=* | --program-prefi=* \
495  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
496    program_prefix=$ac_optarg ;;
497
498  -program-suffix | --program-suffix | --program-suffi | --program-suff \
499  | --program-suf | --program-su | --program-s)
500    ac_prev=program_suffix ;;
501  -program-suffix=* | --program-suffix=* | --program-suffi=* \
502  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
503    program_suffix=$ac_optarg ;;
504
505  -program-transform-name | --program-transform-name \
506  | --program-transform-nam | --program-transform-na \
507  | --program-transform-n | --program-transform- \
508  | --program-transform | --program-transfor \
509  | --program-transfo | --program-transf \
510  | --program-trans | --program-tran \
511  | --progr-tra | --program-tr | --program-t)
512    ac_prev=program_transform_name ;;
513  -program-transform-name=* | --program-transform-name=* \
514  | --program-transform-nam=* | --program-transform-na=* \
515  | --program-transform-n=* | --program-transform-=* \
516  | --program-transform=* | --program-transfor=* \
517  | --program-transfo=* | --program-transf=* \
518  | --program-trans=* | --program-tran=* \
519  | --progr-tra=* | --program-tr=* | --program-t=*)
520    program_transform_name=$ac_optarg ;;
521
522  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
523  | -silent | --silent | --silen | --sile | --sil)
524    silent=yes ;;
525
526  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
527    ac_prev=sbindir ;;
528  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
529  | --sbi=* | --sb=*)
530    sbindir=$ac_optarg ;;
531
532  -sharedstatedir | --sharedstatedir | --sharedstatedi \
533  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
534  | --sharedst | --shareds | --shared | --share | --shar \
535  | --sha | --sh)
536    ac_prev=sharedstatedir ;;
537  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
538  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
539  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
540  | --sha=* | --sh=*)
541    sharedstatedir=$ac_optarg ;;
542
543  -site | --site | --sit)
544    ac_prev=site ;;
545  -site=* | --site=* | --sit=*)
546    site=$ac_optarg ;;
547
548  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
549    ac_prev=srcdir ;;
550  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
551    srcdir=$ac_optarg ;;
552
553  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
554  | --syscon | --sysco | --sysc | --sys | --sy)
555    ac_prev=sysconfdir ;;
556  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
557  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
558    sysconfdir=$ac_optarg ;;
559
560  -target | --target | --targe | --targ | --tar | --ta | --t)
561    ac_prev=target_alias ;;
562  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
563    target_alias=$ac_optarg ;;
564
565  -v | -verbose | --verbose | --verbos | --verbo | --verb)
566    verbose=yes ;;
567
568  -version | --version | --versio | --versi | --vers | -V)
569    ac_init_version=: ;;
570
571  -with-* | --with-*)
572    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
573    # Reject names that are not valid shell variable names.
574    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
575      { echo "$as_me: error: invalid package name: $ac_package" >&2
576   { (exit 1); exit 1; }; }
577    ac_package=`echo $ac_package| sed 's/-/_/g'`
578    case $ac_option in
579      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
580      *) ac_optarg=yes ;;
581    esac
582    eval "with_$ac_package='$ac_optarg'" ;;
583
584  -without-* | --without-*)
585    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
586    # Reject names that are not valid shell variable names.
587    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
588      { echo "$as_me: error: invalid package name: $ac_package" >&2
589   { (exit 1); exit 1; }; }
590    ac_package=`echo $ac_package | sed 's/-/_/g'`
591    eval "with_$ac_package=no" ;;
592
593  --x)
594    # Obsolete; use --with-x.
595    with_x=yes ;;
596
597  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
598  | --x-incl | --x-inc | --x-in | --x-i)
599    ac_prev=x_includes ;;
600  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
601  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
602    x_includes=$ac_optarg ;;
603
604  -x-libraries | --x-libraries | --x-librarie | --x-librari \
605  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
606    ac_prev=x_libraries ;;
607  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
608  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
609    x_libraries=$ac_optarg ;;
610
611  -*) { echo "$as_me: error: unrecognized option: $ac_option
612Try \`$0 --help' for more information." >&2
613   { (exit 1); exit 1; }; }
614    ;;
615
616  *=*)
617    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
618    # Reject names that are not valid shell variable names.
619    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
620      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
621   { (exit 1); exit 1; }; }
622    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
623    eval "$ac_envvar='$ac_optarg'"
624    export $ac_envvar ;;
625
626  *)
627    # FIXME: should be removed in autoconf 3.0.
628    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
629    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
630      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
631    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
632    ;;
633
634  esac
635done
636
637if test -n "$ac_prev"; then
638  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
639  { echo "$as_me: error: missing argument to $ac_option" >&2
640   { (exit 1); exit 1; }; }
641fi
642
643# Be sure to have absolute paths.
644for ac_var in exec_prefix prefix
645do
646  eval ac_val=$`echo $ac_var`
647  case $ac_val in
648    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
649    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
650   { (exit 1); exit 1; }; };;
651  esac
652done
653
654# Be sure to have absolute paths.
655for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
656              localstatedir libdir includedir oldincludedir infodir mandir
657do
658  eval ac_val=$`echo $ac_var`
659  case $ac_val in
660    [\\/$]* | ?:[\\/]* ) ;;
661    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
662   { (exit 1); exit 1; }; };;
663  esac
664done
665
666# There might be people who depend on the old broken behavior: `$host'
667# used to hold the argument of --host etc.
668# FIXME: To remove some day.
669build=$build_alias
670host=$host_alias
671target=$target_alias
672
673# FIXME: To remove some day.
674if test "x$host_alias" != x; then
675  if test "x$build_alias" = x; then
676    cross_compiling=maybe
677    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
678    If a cross compiler is detected then cross compile mode will be used." >&2
679  elif test "x$build_alias" != "x$host_alias"; then
680    cross_compiling=yes
681  fi
682fi
683
684ac_tool_prefix=
685test -n "$host_alias" && ac_tool_prefix=$host_alias-
686
687test "$silent" = yes && exec 6>/dev/null
688
689
690# Find the source files, if location was not specified.
691if test -z "$srcdir"; then
692  ac_srcdir_defaulted=yes
693  # Try the directory containing this script, then its parent.
694  ac_confdir=`(dirname "$0") 2>/dev/null ||
695$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
696         X"$0" : 'X\(//\)[^/]' \| \
697         X"$0" : 'X\(//\)$' \| \
698         X"$0" : 'X\(/\)' \| \
699         .     : '\(.\)' 2>/dev/null ||
700echo X"$0" |
701    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
702  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
703  	  /^X\(\/\/\)$/{ s//\1/; q; }
704  	  /^X\(\/\).*/{ s//\1/; q; }
705  	  s/.*/./; q'`
706  srcdir=$ac_confdir
707  if test ! -r $srcdir/$ac_unique_file; then
708    srcdir=..
709  fi
710else
711  ac_srcdir_defaulted=no
712fi
713if test ! -r $srcdir/$ac_unique_file; then
714  if test "$ac_srcdir_defaulted" = yes; then
715    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
716   { (exit 1); exit 1; }; }
717  else
718    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
719   { (exit 1); exit 1; }; }
720  fi
721fi
722srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
723ac_env_build_alias_set=${build_alias+set}
724ac_env_build_alias_value=$build_alias
725ac_cv_env_build_alias_set=${build_alias+set}
726ac_cv_env_build_alias_value=$build_alias
727ac_env_host_alias_set=${host_alias+set}
728ac_env_host_alias_value=$host_alias
729ac_cv_env_host_alias_set=${host_alias+set}
730ac_cv_env_host_alias_value=$host_alias
731ac_env_target_alias_set=${target_alias+set}
732ac_env_target_alias_value=$target_alias
733ac_cv_env_target_alias_set=${target_alias+set}
734ac_cv_env_target_alias_value=$target_alias
735ac_env_CC_set=${CC+set}
736ac_env_CC_value=$CC
737ac_cv_env_CC_set=${CC+set}
738ac_cv_env_CC_value=$CC
739ac_env_CFLAGS_set=${CFLAGS+set}
740ac_env_CFLAGS_value=$CFLAGS
741ac_cv_env_CFLAGS_set=${CFLAGS+set}
742ac_cv_env_CFLAGS_value=$CFLAGS
743ac_env_LDFLAGS_set=${LDFLAGS+set}
744ac_env_LDFLAGS_value=$LDFLAGS
745ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
746ac_cv_env_LDFLAGS_value=$LDFLAGS
747ac_env_CPPFLAGS_set=${CPPFLAGS+set}
748ac_env_CPPFLAGS_value=$CPPFLAGS
749ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
750ac_cv_env_CPPFLAGS_value=$CPPFLAGS
751ac_env_CXX_set=${CXX+set}
752ac_env_CXX_value=$CXX
753ac_cv_env_CXX_set=${CXX+set}
754ac_cv_env_CXX_value=$CXX
755ac_env_CXXFLAGS_set=${CXXFLAGS+set}
756ac_env_CXXFLAGS_value=$CXXFLAGS
757ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
758ac_cv_env_CXXFLAGS_value=$CXXFLAGS
759ac_env_CPP_set=${CPP+set}
760ac_env_CPP_value=$CPP
761ac_cv_env_CPP_set=${CPP+set}
762ac_cv_env_CPP_value=$CPP
763
764#
765# Report the --help message.
766#
767if test "$ac_init_help" = "long"; then
768  # Omit some internal or obsolete options to make the list less imposing.
769  # This message is too long to be a string in the A/UX 3.1 sh.
770  cat <<_ACEOF
771\`configure' configures this package to adapt to many kinds of systems.
772
773Usage: $0 [OPTION]... [VAR=VALUE]...
774
775To assign environment variables (e.g., CC, CFLAGS...), specify them as
776VAR=VALUE.  See below for descriptions of some of the useful variables.
777
778Defaults for the options are specified in brackets.
779
780Configuration:
781  -h, --help              display this help and exit
782      --help=short        display options specific to this package
783      --help=recursive    display the short help of all the included packages
784  -V, --version           display version information and exit
785  -q, --quiet, --silent   do not print \`checking...' messages
786      --cache-file=FILE   cache test results in FILE [disabled]
787  -C, --config-cache      alias for \`--cache-file=config.cache'
788  -n, --no-create         do not create output files
789      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
790
791_ACEOF
792
793  cat <<_ACEOF
794Installation directories:
795  --prefix=PREFIX         install architecture-independent files in PREFIX
796                          [$ac_default_prefix]
797  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
798                          [PREFIX]
799
800By default, \`make install' will install all the files in
801\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
802an installation prefix other than \`$ac_default_prefix' using \`--prefix',
803for instance \`--prefix=\$HOME'.
804
805For better control, use the options below.
806
807Fine tuning of the installation directories:
808  --bindir=DIR           user executables [EPREFIX/bin]
809  --sbindir=DIR          system admin executables [EPREFIX/sbin]
810  --libexecdir=DIR       program executables [EPREFIX/libexec]
811  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
812  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
813  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
814  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
815  --libdir=DIR           object code libraries [EPREFIX/lib]
816  --includedir=DIR       C header files [PREFIX/include]
817  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
818  --infodir=DIR          info documentation [PREFIX/info]
819  --mandir=DIR           man documentation [PREFIX/man]
820_ACEOF
821
822  cat <<\_ACEOF
823
824Program names:
825  --program-prefix=PREFIX            prepend PREFIX to installed program names
826  --program-suffix=SUFFIX            append SUFFIX to installed program names
827  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
828_ACEOF
829fi
830
831if test -n "$ac_init_help"; then
832
833  cat <<\_ACEOF
834
835Optional Features:
836  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
837  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
838  --disable-dependency-tracking Speeds up one-time builds
839  --enable-dependency-tracking  Do not reject slow dependency extractors
840  --enable-maintainer-mode enable make rules and dependencies not useful
841                          (and sometimes confusing) to the casual installer
842
843Some influential environment variables:
844  CC          C compiler command
845  CFLAGS      C compiler flags
846  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
847              nonstandard directory <lib dir>
848  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
849              headers in a nonstandard directory <include dir>
850  CXX         C++ compiler command
851  CXXFLAGS    C++ compiler flags
852  CPP         C preprocessor
853
854Use these variables to override the choices made by `configure' or to help
855it to find libraries and programs with nonstandard names/locations.
856
857_ACEOF
858fi
859
860if test "$ac_init_help" = "recursive"; then
861  # If there are subdirs, report their specific --help.
862  ac_popdir=`pwd`
863  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
864    test -d $ac_dir || continue
865    ac_builddir=.
866
867if test "$ac_dir" != .; then
868  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
869  # A "../" for each directory in $ac_dir_suffix.
870  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
871else
872  ac_dir_suffix= ac_top_builddir=
873fi
874
875case $srcdir in
876  .)  # No --srcdir option.  We are building in place.
877    ac_srcdir=.
878    if test -z "$ac_top_builddir"; then
879       ac_top_srcdir=.
880    else
881       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
882    fi ;;
883  [\\/]* | ?:[\\/]* )  # Absolute path.
884    ac_srcdir=$srcdir$ac_dir_suffix;
885    ac_top_srcdir=$srcdir ;;
886  *) # Relative path.
887    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
888    ac_top_srcdir=$ac_top_builddir$srcdir ;;
889esac
890# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
891# absolute.
892ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
893ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
894ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
895ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
896
897    cd $ac_dir
898    # Check for guested configure; otherwise get Cygnus style configure.
899    if test -f $ac_srcdir/configure.gnu; then
900      echo
901      $SHELL $ac_srcdir/configure.gnu  --help=recursive
902    elif test -f $ac_srcdir/configure; then
903      echo
904      $SHELL $ac_srcdir/configure  --help=recursive
905    elif test -f $ac_srcdir/configure.ac ||
906           test -f $ac_srcdir/configure.in; then
907      echo
908      $ac_configure --help
909    else
910      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
911    fi
912    cd $ac_popdir
913  done
914fi
915
916test -n "$ac_init_help" && exit 0
917if $ac_init_version; then
918  cat <<\_ACEOF
919
920Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
921Free Software Foundation, Inc.
922This configure script is free software; the Free Software Foundation
923gives unlimited permission to copy, distribute and modify it.
924_ACEOF
925  exit 0
926fi
927exec 5>config.log
928cat >&5 <<_ACEOF
929This file contains any messages produced by compilers while
930running configure, to aid debugging if configure makes a mistake.
931
932It was created by $as_me, which was
933generated by GNU Autoconf 2.53.  Invocation command line was
934
935  $ $0 $@
936
937_ACEOF
938{
939cat <<_ASUNAME
940## --------- ##
941## Platform. ##
942## --------- ##
943
944hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
945uname -m = `(uname -m) 2>/dev/null || echo unknown`
946uname -r = `(uname -r) 2>/dev/null || echo unknown`
947uname -s = `(uname -s) 2>/dev/null || echo unknown`
948uname -v = `(uname -v) 2>/dev/null || echo unknown`
949
950/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
951/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
952
953/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
954/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
955/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
956hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
957/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
958/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
959/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
960
961_ASUNAME
962
963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
964for as_dir in $PATH
965do
966  IFS=$as_save_IFS
967  test -z "$as_dir" && as_dir=.
968  echo "PATH: $as_dir"
969done
970
971} >&5
972
973cat >&5 <<_ACEOF
974
975
976## ----------- ##
977## Core tests. ##
978## ----------- ##
979
980_ACEOF
981
982
983# Keep a trace of the command line.
984# Strip out --no-create and --no-recursion so they do not pile up.
985# Also quote any args containing shell meta-characters.
986ac_configure_args=
987ac_sep=
988for ac_arg
989do
990  case $ac_arg in
991  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
992  | --no-cr | --no-c | -n ) continue ;;
993  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
994  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
995    continue ;;
996  *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
997    ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
998  esac
999  case " $ac_configure_args " in
1000    *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1001    *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1002       ac_sep=" " ;;
1003  esac
1004  # Get rid of the leading space.
1005done
1006
1007# When interrupted or exit'd, cleanup temporary files, and complete
1008# config.log.  We remove comments because anyway the quotes in there
1009# would cause problems or look ugly.
1010# WARNING: Be sure not to use single quotes in there, as some shells,
1011# such as our DU 5.0 friend, will then `close' the trap.
1012trap 'exit_status=$?
1013  # Save into config.log some information that might help in debugging.
1014  {
1015    echo
1016    cat <<\_ASBOX
1017## ---------------- ##
1018## Cache variables. ##
1019## ---------------- ##
1020_ASBOX
1021    echo
1022    # The following way of writing the cache mishandles newlines in values,
1023{
1024  (set) 2>&1 |
1025    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1026    *ac_space=\ *)
1027      sed -n \
1028        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1029    	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1030      ;;
1031    *)
1032      sed -n \
1033        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1034      ;;
1035    esac;
1036}
1037    echo
1038    if test -s confdefs.h; then
1039      cat <<\_ASBOX
1040## ----------- ##
1041## confdefs.h. ##
1042## ----------- ##
1043_ASBOX
1044      echo
1045      sed "/^$/d" confdefs.h
1046      echo
1047    fi
1048    test "$ac_signal" != 0 &&
1049      echo "$as_me: caught signal $ac_signal"
1050    echo "$as_me: exit $exit_status"
1051  } >&5
1052  rm -f core core.* *.core &&
1053  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1054    exit $exit_status
1055     ' 0
1056for ac_signal in 1 2 13 15; do
1057  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1058done
1059ac_signal=0
1060
1061# confdefs.h avoids OS command line length limits that DEFS can exceed.
1062rm -rf conftest* confdefs.h
1063# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1064echo >confdefs.h
1065
1066# Predefined preprocessor variables.
1067
1068cat >>confdefs.h <<_ACEOF
1069#define PACKAGE_NAME "$PACKAGE_NAME"
1070_ACEOF
1071
1072
1073cat >>confdefs.h <<_ACEOF
1074#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1075_ACEOF
1076
1077
1078cat >>confdefs.h <<_ACEOF
1079#define PACKAGE_VERSION "$PACKAGE_VERSION"
1080_ACEOF
1081
1082
1083cat >>confdefs.h <<_ACEOF
1084#define PACKAGE_STRING "$PACKAGE_STRING"
1085_ACEOF
1086
1087
1088cat >>confdefs.h <<_ACEOF
1089#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1090_ACEOF
1091
1092
1093# Let the site file select an alternate cache file if it wants to.
1094# Prefer explicitly selected file to automatically selected ones.
1095if test -z "$CONFIG_SITE"; then
1096  if test "x$prefix" != xNONE; then
1097    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1098  else
1099    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1100  fi
1101fi
1102for ac_site_file in $CONFIG_SITE; do
1103  if test -r "$ac_site_file"; then
1104    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1105echo "$as_me: loading site script $ac_site_file" >&6;}
1106    sed 's/^/| /' "$ac_site_file" >&5
1107    . "$ac_site_file"
1108  fi
1109done
1110
1111if test -r "$cache_file"; then
1112  # Some versions of bash will fail to source /dev/null (special
1113  # files actually), so we avoid doing that.
1114  if test -f "$cache_file"; then
1115    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1116echo "$as_me: loading cache $cache_file" >&6;}
1117    case $cache_file in
1118      [\\/]* | ?:[\\/]* ) . $cache_file;;
1119      *)                      . ./$cache_file;;
1120    esac
1121  fi
1122else
1123  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1124echo "$as_me: creating cache $cache_file" >&6;}
1125  >$cache_file
1126fi
1127
1128# Check that the precious variables saved in the cache have kept the same
1129# value.
1130ac_cache_corrupted=false
1131for ac_var in `(set) 2>&1 |
1132               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1133  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1134  eval ac_new_set=\$ac_env_${ac_var}_set
1135  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1136  eval ac_new_val="\$ac_env_${ac_var}_value"
1137  case $ac_old_set,$ac_new_set in
1138    set,)
1139      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1140echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1141      ac_cache_corrupted=: ;;
1142    ,set)
1143      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1144echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1145      ac_cache_corrupted=: ;;
1146    ,);;
1147    *)
1148      if test "x$ac_old_val" != "x$ac_new_val"; then
1149        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1150echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1151        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1152echo "$as_me:   former value:  $ac_old_val" >&2;}
1153        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1154echo "$as_me:   current value: $ac_new_val" >&2;}
1155        ac_cache_corrupted=:
1156      fi;;
1157  esac
1158  # Pass precious variables to config.status.
1159  if test "$ac_new_set" = set; then
1160    case $ac_new_val in
1161    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1162      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1163    *) ac_arg=$ac_var=$ac_new_val ;;
1164    esac
1165    case " $ac_configure_args " in
1166      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1167      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1168    esac
1169  fi
1170done
1171if $ac_cache_corrupted; then
1172  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1173echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1174  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1175echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1176   { (exit 1); exit 1; }; }
1177fi
1178
1179ac_ext=c
1180ac_cpp='$CPP $CPPFLAGS'
1181ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1182ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1183ac_compiler_gnu=$ac_cv_c_compiler_gnu
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202ac_aux_dir=
1203for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1204  if test -f $ac_dir/install-sh; then
1205    ac_aux_dir=$ac_dir
1206    ac_install_sh="$ac_aux_dir/install-sh -c"
1207    break
1208  elif test -f $ac_dir/install.sh; then
1209    ac_aux_dir=$ac_dir
1210    ac_install_sh="$ac_aux_dir/install.sh -c"
1211    break
1212  elif test -f $ac_dir/shtool; then
1213    ac_aux_dir=$ac_dir
1214    ac_install_sh="$ac_aux_dir/shtool install -c"
1215    break
1216  fi
1217done
1218if test -z "$ac_aux_dir"; then
1219  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1220echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1221   { (exit 1); exit 1; }; }
1222fi
1223ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1224ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1225ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1226
1227# Find a good install program.  We prefer a C program (faster),
1228# so one script is as good as another.  But avoid the broken or
1229# incompatible versions:
1230# SysV /etc/install, /usr/sbin/install
1231# SunOS /usr/etc/install
1232# IRIX /sbin/install
1233# AIX /bin/install
1234# AmigaOS /C/install, which installs bootblocks on floppy discs
1235# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1236# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1237# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1238# ./install, which can be erroneously created by make from ./install.sh.
1239echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1240echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1241if test -z "$INSTALL"; then
1242if test "${ac_cv_path_install+set}" = set; then
1243  echo $ECHO_N "(cached) $ECHO_C" >&6
1244else
1245  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1246for as_dir in $PATH
1247do
1248  IFS=$as_save_IFS
1249  test -z "$as_dir" && as_dir=.
1250  # Account for people who put trailing slashes in PATH elements.
1251case $as_dir/ in
1252  ./ | .// | /cC/* | \
1253  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1254  /usr/ucb/* ) ;;
1255  *)
1256    # OSF1 and SCO ODT 3.0 have their own names for install.
1257    # Don't use installbsd from OSF since it installs stuff as root
1258    # by default.
1259    for ac_prog in ginstall scoinst install; do
1260      for ac_exec_ext in '' $ac_executable_extensions; do
1261        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1262          if test $ac_prog = install &&
1263            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1264            # AIX install.  It has an incompatible calling convention.
1265            :
1266          elif test $ac_prog = install &&
1267            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1268            # program-specific install script used by HP pwplus--don't use.
1269            :
1270          else
1271            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1272            break 3
1273          fi
1274        fi
1275      done
1276    done
1277    ;;
1278esac
1279done
1280
1281
1282fi
1283  if test "${ac_cv_path_install+set}" = set; then
1284    INSTALL=$ac_cv_path_install
1285  else
1286    # As a last resort, use the slow shell script.  We don't cache a
1287    # path for INSTALL within a source directory, because that will
1288    # break other packages using the cache if that directory is
1289    # removed, or if the path is relative.
1290    INSTALL=$ac_install_sh
1291  fi
1292fi
1293echo "$as_me:$LINENO: result: $INSTALL" >&5
1294echo "${ECHO_T}$INSTALL" >&6
1295
1296# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1297# It thinks the first close brace ends the variable substitution.
1298test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1299
1300test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1301
1302test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1303
1304echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1305echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1306# Just in case
1307sleep 1
1308echo timestamp > conftest.file
1309# Do `set' in a subshell so we don't clobber the current shell's
1310# arguments.  Must try -L first in case configure is actually a
1311# symlink; some systems play weird games with the mod time of symlinks
1312# (eg FreeBSD returns the mod time of the symlink's containing
1313# directory).
1314if (
1315   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1316   if test "$*" = "X"; then
1317      # -L didn't work.
1318      set X `ls -t $srcdir/configure conftest.file`
1319   fi
1320   rm -f conftest.file
1321   if test "$*" != "X $srcdir/configure conftest.file" \
1322      && test "$*" != "X conftest.file $srcdir/configure"; then
1323
1324      # If neither matched, then we have a broken ls.  This can happen
1325      # if, for instance, CONFIG_SHELL is bash and it inherits a
1326      # broken ls alias from the environment.  This has actually
1327      # happened.  Such a system could not be considered "sane".
1328      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1329alias in your environment" >&5
1330echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1331alias in your environment" >&2;}
1332   { (exit 1); exit 1; }; }
1333   fi
1334
1335   test "$2" = conftest.file
1336   )
1337then
1338   # Ok.
1339   :
1340else
1341   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1342Check your system clock" >&5
1343echo "$as_me: error: newly created file is older than distributed files!
1344Check your system clock" >&2;}
1345   { (exit 1); exit 1; }; }
1346fi
1347echo "$as_me:$LINENO: result: yes" >&5
1348echo "${ECHO_T}yes" >&6
1349test "$program_prefix" != NONE &&
1350  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1351# Use a double $ so make ignores it.
1352test "$program_suffix" != NONE &&
1353  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1354# Double any \ or $.  echo might interpret backslashes.
1355# By default was `s,x,x', remove it if useless.
1356cat <<\_ACEOF >conftest.sed
1357s/[\\$]/&&/g;s/;s,x,x,$//
1358_ACEOF
1359program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1360rm conftest.sed
1361
1362
1363# expand $ac_aux_dir to an absolute path
1364am_aux_dir=`CDPATH=:; cd $ac_aux_dir && pwd`
1365
1366test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1367# Use eval to expand $SHELL
1368if eval "$MISSING --run true"; then
1369  am_missing_run="$MISSING --run "
1370else
1371  am_missing_run=
1372  am_backtick='`'
1373  { echo "$as_me:$LINENO: WARNING: ${am_backtick}missing' script is too old or missing" >&5
1374echo "$as_me: WARNING: ${am_backtick}missing' script is too old or missing" >&2;}
1375fi
1376
1377for ac_prog in gawk mawk nawk awk
1378do
1379  # Extract the first word of "$ac_prog", so it can be a program name with args.
1380set dummy $ac_prog; ac_word=$2
1381echo "$as_me:$LINENO: checking for $ac_word" >&5
1382echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1383if test "${ac_cv_prog_AWK+set}" = set; then
1384  echo $ECHO_N "(cached) $ECHO_C" >&6
1385else
1386  if test -n "$AWK"; then
1387  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1388else
1389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1390for as_dir in $PATH
1391do
1392  IFS=$as_save_IFS
1393  test -z "$as_dir" && as_dir=.
1394  for ac_exec_ext in '' $ac_executable_extensions; do
1395  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1396    ac_cv_prog_AWK="$ac_prog"
1397    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1398    break 2
1399  fi
1400done
1401done
1402
1403fi
1404fi
1405AWK=$ac_cv_prog_AWK
1406if test -n "$AWK"; then
1407  echo "$as_me:$LINENO: result: $AWK" >&5
1408echo "${ECHO_T}$AWK" >&6
1409else
1410  echo "$as_me:$LINENO: result: no" >&5
1411echo "${ECHO_T}no" >&6
1412fi
1413
1414  test -n "$AWK" && break
1415done
1416
1417echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1418echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1419set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1420if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1421  echo $ECHO_N "(cached) $ECHO_C" >&6
1422else
1423  cat >conftest.make <<\_ACEOF
1424all:
1425	@echo 'ac_maketemp="${MAKE}"'
1426_ACEOF
1427# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1428eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1429if test -n "$ac_maketemp"; then
1430  eval ac_cv_prog_make_${ac_make}_set=yes
1431else
1432  eval ac_cv_prog_make_${ac_make}_set=no
1433fi
1434rm -f conftest.make
1435fi
1436if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1437  echo "$as_me:$LINENO: result: yes" >&5
1438echo "${ECHO_T}yes" >&6
1439  SET_MAKE=
1440else
1441  echo "$as_me:$LINENO: result: no" >&5
1442echo "${ECHO_T}no" >&6
1443  SET_MAKE="MAKE=${MAKE-make}"
1444fi
1445
1446# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
1447if test "${enable_dependency_tracking+set}" = set; then
1448  enableval="$enable_dependency_tracking"
1449
1450fi;
1451if test "x$enable_dependency_tracking" != xno; then
1452  am_depcomp="$ac_aux_dir/depcomp"
1453  AMDEPBACKSLASH='\'
1454fi
1455
1456
1457if test "x$enable_dependency_tracking" != xno; then
1458  AMDEP_TRUE=
1459  AMDEP_FALSE='#'
1460else
1461  AMDEP_TRUE='#'
1462  AMDEP_FALSE=
1463fi
1464
1465
1466
1467
1468rm -f .deps 2>/dev/null
1469mkdir .deps 2>/dev/null
1470if test -d .deps; then
1471  DEPDIR=.deps
1472else
1473  # MS-DOS does not allow filenames that begin with a dot.
1474  DEPDIR=_deps
1475fi
1476rmdir .deps 2>/dev/null
1477
1478
1479# test to see if srcdir already configured
1480if test "`CDPATH=:; cd $srcdir && pwd`" != "`pwd`" &&
1481   test -f $srcdir/config.status; then
1482  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1483echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1484   { (exit 1); exit 1; }; }
1485fi
1486
1487# Define the identity of the package.
1488PACKAGE=fastlst
1489VERSION=2.0.4-beta
1490
1491cat >>confdefs.h <<_ACEOF
1492#define PACKAGE "$PACKAGE"
1493_ACEOF
1494
1495
1496cat >>confdefs.h <<_ACEOF
1497#define VERSION "$VERSION"
1498_ACEOF
1499
1500
1501# Autoconf 2.50 wants to disallow AM_ names.  We explicitly allow
1502# the ones we care about.
1503
1504# Autoconf 2.50 always computes EXEEXT.  However we need to be
1505# compatible with 2.13, for now.  So we always define EXEEXT, but we
1506# don't compute it.
1507
1508# Similar for OBJEXT -- only we only use OBJEXT if the user actually
1509# requests that it be used.  This is a bit dumb.
1510: ${OBJEXT=o}
1511
1512
1513# Some tools Automake needs.
1514
1515ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
1516
1517
1518AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1519
1520
1521AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
1522
1523
1524AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1525
1526
1527MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1528
1529
1530AMTAR=${AMTAR-"${am_missing_run}tar"}
1531
1532install_sh=${install_sh-"$am_aux_dir/install-sh"}
1533
1534INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1535
1536# We need awk for the "check" target.  The system "awk" is bad on
1537# some platforms.
1538
1539
1540
1541
1542		    		    		    ac_config_headers="$ac_config_headers include/config.h"
1543
1544echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1545echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1546    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1547if test "${enable_maintainer_mode+set}" = set; then
1548  enableval="$enable_maintainer_mode"
1549  USE_MAINTAINER_MODE=$enableval
1550else
1551  USE_MAINTAINER_MODE=no
1552fi;
1553  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1554echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1555
1556
1557if test $USE_MAINTAINER_MODE = yes; then
1558  MAINTAINER_MODE_TRUE=
1559  MAINTAINER_MODE_FALSE='#'
1560else
1561  MAINTAINER_MODE_TRUE='#'
1562  MAINTAINER_MODE_FALSE=
1563fi
1564  MAINT=$MAINTAINER_MODE_TRUE
1565
1566
1567
1568ac_ext=c
1569ac_cpp='$CPP $CPPFLAGS'
1570ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1571ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1572ac_compiler_gnu=$ac_cv_c_compiler_gnu
1573if test -n "$ac_tool_prefix"; then
1574  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1575set dummy ${ac_tool_prefix}gcc; ac_word=$2
1576echo "$as_me:$LINENO: checking for $ac_word" >&5
1577echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1578if test "${ac_cv_prog_CC+set}" = set; then
1579  echo $ECHO_N "(cached) $ECHO_C" >&6
1580else
1581  if test -n "$CC"; then
1582  ac_cv_prog_CC="$CC" # Let the user override the test.
1583else
1584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1585for as_dir in $PATH
1586do
1587  IFS=$as_save_IFS
1588  test -z "$as_dir" && as_dir=.
1589  for ac_exec_ext in '' $ac_executable_extensions; do
1590  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1591    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1592    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1593    break 2
1594  fi
1595done
1596done
1597
1598fi
1599fi
1600CC=$ac_cv_prog_CC
1601if test -n "$CC"; then
1602  echo "$as_me:$LINENO: result: $CC" >&5
1603echo "${ECHO_T}$CC" >&6
1604else
1605  echo "$as_me:$LINENO: result: no" >&5
1606echo "${ECHO_T}no" >&6
1607fi
1608
1609fi
1610if test -z "$ac_cv_prog_CC"; then
1611  ac_ct_CC=$CC
1612  # Extract the first word of "gcc", so it can be a program name with args.
1613set dummy gcc; ac_word=$2
1614echo "$as_me:$LINENO: checking for $ac_word" >&5
1615echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1616if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1617  echo $ECHO_N "(cached) $ECHO_C" >&6
1618else
1619  if test -n "$ac_ct_CC"; then
1620  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1621else
1622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1623for as_dir in $PATH
1624do
1625  IFS=$as_save_IFS
1626  test -z "$as_dir" && as_dir=.
1627  for ac_exec_ext in '' $ac_executable_extensions; do
1628  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1629    ac_cv_prog_ac_ct_CC="gcc"
1630    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1631    break 2
1632  fi
1633done
1634done
1635
1636fi
1637fi
1638ac_ct_CC=$ac_cv_prog_ac_ct_CC
1639if test -n "$ac_ct_CC"; then
1640  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1641echo "${ECHO_T}$ac_ct_CC" >&6
1642else
1643  echo "$as_me:$LINENO: result: no" >&5
1644echo "${ECHO_T}no" >&6
1645fi
1646
1647  CC=$ac_ct_CC
1648else
1649  CC="$ac_cv_prog_CC"
1650fi
1651
1652if test -z "$CC"; then
1653  if test -n "$ac_tool_prefix"; then
1654  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1655set dummy ${ac_tool_prefix}cc; ac_word=$2
1656echo "$as_me:$LINENO: checking for $ac_word" >&5
1657echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1658if test "${ac_cv_prog_CC+set}" = set; then
1659  echo $ECHO_N "(cached) $ECHO_C" >&6
1660else
1661  if test -n "$CC"; then
1662  ac_cv_prog_CC="$CC" # Let the user override the test.
1663else
1664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1665for as_dir in $PATH
1666do
1667  IFS=$as_save_IFS
1668  test -z "$as_dir" && as_dir=.
1669  for ac_exec_ext in '' $ac_executable_extensions; do
1670  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1671    ac_cv_prog_CC="${ac_tool_prefix}cc"
1672    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1673    break 2
1674  fi
1675done
1676done
1677
1678fi
1679fi
1680CC=$ac_cv_prog_CC
1681if test -n "$CC"; then
1682  echo "$as_me:$LINENO: result: $CC" >&5
1683echo "${ECHO_T}$CC" >&6
1684else
1685  echo "$as_me:$LINENO: result: no" >&5
1686echo "${ECHO_T}no" >&6
1687fi
1688
1689fi
1690if test -z "$ac_cv_prog_CC"; then
1691  ac_ct_CC=$CC
1692  # Extract the first word of "cc", so it can be a program name with args.
1693set dummy cc; ac_word=$2
1694echo "$as_me:$LINENO: checking for $ac_word" >&5
1695echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1696if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1697  echo $ECHO_N "(cached) $ECHO_C" >&6
1698else
1699  if test -n "$ac_ct_CC"; then
1700  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1701else
1702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1703for as_dir in $PATH
1704do
1705  IFS=$as_save_IFS
1706  test -z "$as_dir" && as_dir=.
1707  for ac_exec_ext in '' $ac_executable_extensions; do
1708  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1709    ac_cv_prog_ac_ct_CC="cc"
1710    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1711    break 2
1712  fi
1713done
1714done
1715
1716fi
1717fi
1718ac_ct_CC=$ac_cv_prog_ac_ct_CC
1719if test -n "$ac_ct_CC"; then
1720  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1721echo "${ECHO_T}$ac_ct_CC" >&6
1722else
1723  echo "$as_me:$LINENO: result: no" >&5
1724echo "${ECHO_T}no" >&6
1725fi
1726
1727  CC=$ac_ct_CC
1728else
1729  CC="$ac_cv_prog_CC"
1730fi
1731
1732fi
1733if test -z "$CC"; then
1734  # Extract the first word of "cc", so it can be a program name with args.
1735set dummy cc; ac_word=$2
1736echo "$as_me:$LINENO: checking for $ac_word" >&5
1737echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1738if test "${ac_cv_prog_CC+set}" = set; then
1739  echo $ECHO_N "(cached) $ECHO_C" >&6
1740else
1741  if test -n "$CC"; then
1742  ac_cv_prog_CC="$CC" # Let the user override the test.
1743else
1744  ac_prog_rejected=no
1745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1746for as_dir in $PATH
1747do
1748  IFS=$as_save_IFS
1749  test -z "$as_dir" && as_dir=.
1750  for ac_exec_ext in '' $ac_executable_extensions; do
1751  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1752    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1753       ac_prog_rejected=yes
1754       continue
1755     fi
1756    ac_cv_prog_CC="cc"
1757    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1758    break 2
1759  fi
1760done
1761done
1762
1763if test $ac_prog_rejected = yes; then
1764  # We found a bogon in the path, so make sure we never use it.
1765  set dummy $ac_cv_prog_CC
1766  shift
1767  if test $# != 0; then
1768    # We chose a different compiler from the bogus one.
1769    # However, it has the same basename, so the bogon will be chosen
1770    # first if we set CC to just the basename; use the full file name.
1771    shift
1772    set dummy "$as_dir/$ac_word" ${1+"$@"}
1773    shift
1774    ac_cv_prog_CC="$@"
1775  fi
1776fi
1777fi
1778fi
1779CC=$ac_cv_prog_CC
1780if test -n "$CC"; then
1781  echo "$as_me:$LINENO: result: $CC" >&5
1782echo "${ECHO_T}$CC" >&6
1783else
1784  echo "$as_me:$LINENO: result: no" >&5
1785echo "${ECHO_T}no" >&6
1786fi
1787
1788fi
1789if test -z "$CC"; then
1790  if test -n "$ac_tool_prefix"; then
1791  for ac_prog in cl
1792  do
1793    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1794set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1795echo "$as_me:$LINENO: checking for $ac_word" >&5
1796echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1797if test "${ac_cv_prog_CC+set}" = set; then
1798  echo $ECHO_N "(cached) $ECHO_C" >&6
1799else
1800  if test -n "$CC"; then
1801  ac_cv_prog_CC="$CC" # Let the user override the test.
1802else
1803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1804for as_dir in $PATH
1805do
1806  IFS=$as_save_IFS
1807  test -z "$as_dir" && as_dir=.
1808  for ac_exec_ext in '' $ac_executable_extensions; do
1809  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1810    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1811    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1812    break 2
1813  fi
1814done
1815done
1816
1817fi
1818fi
1819CC=$ac_cv_prog_CC
1820if test -n "$CC"; then
1821  echo "$as_me:$LINENO: result: $CC" >&5
1822echo "${ECHO_T}$CC" >&6
1823else
1824  echo "$as_me:$LINENO: result: no" >&5
1825echo "${ECHO_T}no" >&6
1826fi
1827
1828    test -n "$CC" && break
1829  done
1830fi
1831if test -z "$CC"; then
1832  ac_ct_CC=$CC
1833  for ac_prog in cl
1834do
1835  # Extract the first word of "$ac_prog", so it can be a program name with args.
1836set dummy $ac_prog; ac_word=$2
1837echo "$as_me:$LINENO: checking for $ac_word" >&5
1838echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1839if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1840  echo $ECHO_N "(cached) $ECHO_C" >&6
1841else
1842  if test -n "$ac_ct_CC"; then
1843  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1844else
1845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1846for as_dir in $PATH
1847do
1848  IFS=$as_save_IFS
1849  test -z "$as_dir" && as_dir=.
1850  for ac_exec_ext in '' $ac_executable_extensions; do
1851  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1852    ac_cv_prog_ac_ct_CC="$ac_prog"
1853    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1854    break 2
1855  fi
1856done
1857done
1858
1859fi
1860fi
1861ac_ct_CC=$ac_cv_prog_ac_ct_CC
1862if test -n "$ac_ct_CC"; then
1863  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1864echo "${ECHO_T}$ac_ct_CC" >&6
1865else
1866  echo "$as_me:$LINENO: result: no" >&5
1867echo "${ECHO_T}no" >&6
1868fi
1869
1870  test -n "$ac_ct_CC" && break
1871done
1872
1873  CC=$ac_ct_CC
1874fi
1875
1876fi
1877
1878
1879test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1880echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1881   { (exit 1); exit 1; }; }
1882
1883# Provide some information about the compiler.
1884echo "$as_me:$LINENO:" \
1885     "checking for C compiler version" >&5
1886ac_compiler=`set X $ac_compile; echo $2`
1887{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1888  (eval $ac_compiler --version </dev/null >&5) 2>&5
1889  ac_status=$?
1890  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1891  (exit $ac_status); }
1892{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1893  (eval $ac_compiler -v </dev/null >&5) 2>&5
1894  ac_status=$?
1895  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1896  (exit $ac_status); }
1897{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1898  (eval $ac_compiler -V </dev/null >&5) 2>&5
1899  ac_status=$?
1900  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1901  (exit $ac_status); }
1902
1903cat >conftest.$ac_ext <<_ACEOF
1904#line $LINENO "configure"
1905#include "confdefs.h"
1906
1907#ifdef F77_DUMMY_MAIN
1908#  ifdef __cplusplus
1909     extern "C"
1910#  endif
1911   int F77_DUMMY_MAIN() { return 1; }
1912#endif
1913int
1914main ()
1915{
1916
1917  ;
1918  return 0;
1919}
1920_ACEOF
1921ac_clean_files_save=$ac_clean_files
1922ac_clean_files="$ac_clean_files a.out a.exe"
1923# Try to create an executable without -o first, disregard a.out.
1924# It will help us diagnose broken compilers, and finding out an intuition
1925# of exeext.
1926echo "$as_me:$LINENO: checking for C compiler default output" >&5
1927echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1928ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1929if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1930  (eval $ac_link_default) 2>&5
1931  ac_status=$?
1932  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1933  (exit $ac_status); }; then
1934  # Find the output, starting from the most likely.  This scheme is
1935# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1936# resort.
1937
1938# Be careful to initialize this variable, since it used to be cached.
1939# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1940ac_cv_exeext=
1941for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
1942                ls a.out conftest 2>/dev/null;
1943                ls a.* conftest.* 2>/dev/null`; do
1944  case $ac_file in
1945    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
1946    a.out ) # We found the default executable, but exeext='' is most
1947            # certainly right.
1948            break;;
1949    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1950          # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1951          export ac_cv_exeext
1952          break;;
1953    * ) break;;
1954  esac
1955done
1956else
1957  echo "$as_me: failed program was:" >&5
1958cat conftest.$ac_ext >&5
1959{ { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
1960echo "$as_me: error: C compiler cannot create executables" >&2;}
1961   { (exit 77); exit 77; }; }
1962fi
1963
1964ac_exeext=$ac_cv_exeext
1965echo "$as_me:$LINENO: result: $ac_file" >&5
1966echo "${ECHO_T}$ac_file" >&6
1967
1968# Check the compiler produces executables we can run.  If not, either
1969# the compiler is broken, or we cross compile.
1970echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1971echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1972# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1973# If not cross compiling, check that we can run a simple program.
1974if test "$cross_compiling" != yes; then
1975  if { ac_try='./$ac_file'
1976  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1977  (eval $ac_try) 2>&5
1978  ac_status=$?
1979  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1980  (exit $ac_status); }; }; then
1981    cross_compiling=no
1982  else
1983    if test "$cross_compiling" = maybe; then
1984	cross_compiling=yes
1985    else
1986	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1987If you meant to cross compile, use \`--host'." >&5
1988echo "$as_me: error: cannot run C compiled programs.
1989If you meant to cross compile, use \`--host'." >&2;}
1990   { (exit 1); exit 1; }; }
1991    fi
1992  fi
1993fi
1994echo "$as_me:$LINENO: result: yes" >&5
1995echo "${ECHO_T}yes" >&6
1996
1997rm -f a.out a.exe conftest$ac_cv_exeext
1998ac_clean_files=$ac_clean_files_save
1999# Check the compiler produces executables we can run.  If not, either
2000# the compiler is broken, or we cross compile.
2001echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2002echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2003echo "$as_me:$LINENO: result: $cross_compiling" >&5
2004echo "${ECHO_T}$cross_compiling" >&6
2005
2006echo "$as_me:$LINENO: checking for suffix of executables" >&5
2007echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2008if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2009  (eval $ac_link) 2>&5
2010  ac_status=$?
2011  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2012  (exit $ac_status); }; then
2013  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2014# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2015# work properly (i.e., refer to `conftest.exe'), while it won't with
2016# `rm'.
2017for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2018  case $ac_file in
2019    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2020    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2021          export ac_cv_exeext
2022          break;;
2023    * ) break;;
2024  esac
2025done
2026else
2027  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2028echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2029   { (exit 1); exit 1; }; }
2030fi
2031
2032rm -f conftest$ac_cv_exeext
2033echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2034echo "${ECHO_T}$ac_cv_exeext" >&6
2035
2036rm -f conftest.$ac_ext
2037EXEEXT=$ac_cv_exeext
2038ac_exeext=$EXEEXT
2039echo "$as_me:$LINENO: checking for suffix of object files" >&5
2040echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2041if test "${ac_cv_objext+set}" = set; then
2042  echo $ECHO_N "(cached) $ECHO_C" >&6
2043else
2044  cat >conftest.$ac_ext <<_ACEOF
2045#line $LINENO "configure"
2046#include "confdefs.h"
2047
2048#ifdef F77_DUMMY_MAIN
2049#  ifdef __cplusplus
2050     extern "C"
2051#  endif
2052   int F77_DUMMY_MAIN() { return 1; }
2053#endif
2054int
2055main ()
2056{
2057
2058  ;
2059  return 0;
2060}
2061_ACEOF
2062rm -f conftest.o conftest.obj
2063if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2064  (eval $ac_compile) 2>&5
2065  ac_status=$?
2066  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2067  (exit $ac_status); }; then
2068  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2069  case $ac_file in
2070    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2071    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2072       break;;
2073  esac
2074done
2075else
2076  echo "$as_me: failed program was:" >&5
2077cat conftest.$ac_ext >&5
2078{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2079echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2080   { (exit 1); exit 1; }; }
2081fi
2082
2083rm -f conftest.$ac_cv_objext conftest.$ac_ext
2084fi
2085echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2086echo "${ECHO_T}$ac_cv_objext" >&6
2087OBJEXT=$ac_cv_objext
2088ac_objext=$OBJEXT
2089echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2090echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2091if test "${ac_cv_c_compiler_gnu+set}" = set; then
2092  echo $ECHO_N "(cached) $ECHO_C" >&6
2093else
2094  cat >conftest.$ac_ext <<_ACEOF
2095#line $LINENO "configure"
2096#include "confdefs.h"
2097
2098#ifdef F77_DUMMY_MAIN
2099#  ifdef __cplusplus
2100     extern "C"
2101#  endif
2102   int F77_DUMMY_MAIN() { return 1; }
2103#endif
2104int
2105main ()
2106{
2107#ifndef __GNUC__
2108       choke me
2109#endif
2110
2111  ;
2112  return 0;
2113}
2114_ACEOF
2115rm -f conftest.$ac_objext
2116if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2117  (eval $ac_compile) 2>&5
2118  ac_status=$?
2119  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2120  (exit $ac_status); } &&
2121         { ac_try='test -s conftest.$ac_objext'
2122  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2123  (eval $ac_try) 2>&5
2124  ac_status=$?
2125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2126  (exit $ac_status); }; }; then
2127  ac_compiler_gnu=yes
2128else
2129  echo "$as_me: failed program was:" >&5
2130cat conftest.$ac_ext >&5
2131ac_compiler_gnu=no
2132fi
2133rm -f conftest.$ac_objext conftest.$ac_ext
2134ac_cv_c_compiler_gnu=$ac_compiler_gnu
2135
2136fi
2137echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2138echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2139GCC=`test $ac_compiler_gnu = yes && echo yes`
2140ac_test_CFLAGS=${CFLAGS+set}
2141ac_save_CFLAGS=$CFLAGS
2142CFLAGS="-g"
2143echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2144echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2145if test "${ac_cv_prog_cc_g+set}" = set; then
2146  echo $ECHO_N "(cached) $ECHO_C" >&6
2147else
2148  cat >conftest.$ac_ext <<_ACEOF
2149#line $LINENO "configure"
2150#include "confdefs.h"
2151
2152#ifdef F77_DUMMY_MAIN
2153#  ifdef __cplusplus
2154     extern "C"
2155#  endif
2156   int F77_DUMMY_MAIN() { return 1; }
2157#endif
2158int
2159main ()
2160{
2161
2162  ;
2163  return 0;
2164}
2165_ACEOF
2166rm -f conftest.$ac_objext
2167if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2168  (eval $ac_compile) 2>&5
2169  ac_status=$?
2170  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2171  (exit $ac_status); } &&
2172         { ac_try='test -s conftest.$ac_objext'
2173  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2174  (eval $ac_try) 2>&5
2175  ac_status=$?
2176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2177  (exit $ac_status); }; }; then
2178  ac_cv_prog_cc_g=yes
2179else
2180  echo "$as_me: failed program was:" >&5
2181cat conftest.$ac_ext >&5
2182ac_cv_prog_cc_g=no
2183fi
2184rm -f conftest.$ac_objext conftest.$ac_ext
2185fi
2186echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2187echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2188if test "$ac_test_CFLAGS" = set; then
2189  CFLAGS=$ac_save_CFLAGS
2190elif test $ac_cv_prog_cc_g = yes; then
2191  if test "$GCC" = yes; then
2192    CFLAGS="-g -O2"
2193  else
2194    CFLAGS="-g"
2195  fi
2196else
2197  if test "$GCC" = yes; then
2198    CFLAGS="-O2"
2199  else
2200    CFLAGS=
2201  fi
2202fi
2203# Some people use a C++ compiler to compile C.  Since we use `exit',
2204# in C++ we need to declare it.  In case someone uses the same compiler
2205# for both compiling C and C++ we need to have the C++ compiler decide
2206# the declaration of exit, since it's the most demanding environment.
2207cat >conftest.$ac_ext <<_ACEOF
2208#ifndef __cplusplus
2209  choke me
2210#endif
2211_ACEOF
2212rm -f conftest.$ac_objext
2213if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2214  (eval $ac_compile) 2>&5
2215  ac_status=$?
2216  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2217  (exit $ac_status); } &&
2218         { ac_try='test -s conftest.$ac_objext'
2219  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2220  (eval $ac_try) 2>&5
2221  ac_status=$?
2222  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2223  (exit $ac_status); }; }; then
2224  for ac_declaration in \
2225   ''\
2226   '#include <stdlib.h>' \
2227   'extern "C" void std::exit (int) throw (); using std::exit;' \
2228   'extern "C" void std::exit (int); using std::exit;' \
2229   'extern "C" void exit (int) throw ();' \
2230   'extern "C" void exit (int);' \
2231   'void exit (int);'
2232do
2233  cat >conftest.$ac_ext <<_ACEOF
2234#line $LINENO "configure"
2235#include "confdefs.h"
2236#include <stdlib.h>
2237$ac_declaration
2238#ifdef F77_DUMMY_MAIN
2239#  ifdef __cplusplus
2240     extern "C"
2241#  endif
2242   int F77_DUMMY_MAIN() { return 1; }
2243#endif
2244int
2245main ()
2246{
2247exit (42);
2248  ;
2249  return 0;
2250}
2251_ACEOF
2252rm -f conftest.$ac_objext
2253if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2254  (eval $ac_compile) 2>&5
2255  ac_status=$?
2256  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2257  (exit $ac_status); } &&
2258         { ac_try='test -s conftest.$ac_objext'
2259  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2260  (eval $ac_try) 2>&5
2261  ac_status=$?
2262  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263  (exit $ac_status); }; }; then
2264  :
2265else
2266  echo "$as_me: failed program was:" >&5
2267cat conftest.$ac_ext >&5
2268continue
2269fi
2270rm -f conftest.$ac_objext conftest.$ac_ext
2271  cat >conftest.$ac_ext <<_ACEOF
2272#line $LINENO "configure"
2273#include "confdefs.h"
2274$ac_declaration
2275#ifdef F77_DUMMY_MAIN
2276#  ifdef __cplusplus
2277     extern "C"
2278#  endif
2279   int F77_DUMMY_MAIN() { return 1; }
2280#endif
2281int
2282main ()
2283{
2284exit (42);
2285  ;
2286  return 0;
2287}
2288_ACEOF
2289rm -f conftest.$ac_objext
2290if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2291  (eval $ac_compile) 2>&5
2292  ac_status=$?
2293  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2294  (exit $ac_status); } &&
2295         { ac_try='test -s conftest.$ac_objext'
2296  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2297  (eval $ac_try) 2>&5
2298  ac_status=$?
2299  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2300  (exit $ac_status); }; }; then
2301  break
2302else
2303  echo "$as_me: failed program was:" >&5
2304cat conftest.$ac_ext >&5
2305fi
2306rm -f conftest.$ac_objext conftest.$ac_ext
2307done
2308rm -f conftest*
2309if test -n "$ac_declaration"; then
2310  echo '#ifdef __cplusplus' >>confdefs.h
2311  echo $ac_declaration      >>confdefs.h
2312  echo '#endif'             >>confdefs.h
2313fi
2314
2315else
2316  echo "$as_me: failed program was:" >&5
2317cat conftest.$ac_ext >&5
2318fi
2319rm -f conftest.$ac_objext conftest.$ac_ext
2320ac_ext=c
2321ac_cpp='$CPP $CPPFLAGS'
2322ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2323ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2324ac_compiler_gnu=$ac_cv_c_compiler_gnu
2325
2326ac_config_commands="$ac_config_commands default-1"
2327
2328am_make=${MAKE-make}
2329cat > confinc << 'END'
2330doit:
2331	@echo done
2332END
2333# If we don't find an include directive, just comment out the code.
2334echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2335echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2336am__include='#'
2337am__quote=
2338_am_result=none
2339# First try GNU make style include.
2340echo "include confinc" > confmf
2341# We grep out `Entering directory' and `Leaving directory'
2342# messages which can occur if `w' ends up in MAKEFLAGS.
2343# In particular we don't look at `^make:' because GNU make might
2344# be invoked under some other name (usually "gmake"), in which
2345# case it prints its new name instead of `make'.
2346if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
2347   am__include=include
2348   am__quote=
2349   _am_result=GNU
2350fi
2351# Now try BSD make style include.
2352if test "$am__include" = "#"; then
2353   echo '.include "confinc"' > confmf
2354   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2355      am__include=.include
2356      am__quote='"'
2357      _am_result=BSD
2358   fi
2359fi
2360
2361
2362echo "$as_me:$LINENO: result: $_am_result" >&5
2363echo "${ECHO_T}$_am_result" >&6
2364rm -f confinc confmf
2365
2366
2367depcc="$CC"   am_compiler_list=
2368
2369echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2370echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2371if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2372  echo $ECHO_N "(cached) $ECHO_C" >&6
2373else
2374  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2375  # We make a subdir and do the tests there.  Otherwise we can end up
2376  # making bogus files that we don't know about and never remove.  For
2377  # instance it was reported that on HP-UX the gcc test will end up
2378  # making a dummy file named `D' -- because `-MD' means `put the output
2379  # in D'.
2380  mkdir conftest.dir
2381  # Copy depcomp to subdir because otherwise we won't find it if we're
2382  # using a relative directory.
2383  cp "$am_depcomp" conftest.dir
2384  cd conftest.dir
2385
2386  am_cv_CC_dependencies_compiler_type=none
2387  if test "$am_compiler_list" = ""; then
2388     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2389  fi
2390  for depmode in $am_compiler_list; do
2391    # We need to recreate these files for each test, as the compiler may
2392    # overwrite some of them when testing with obscure command lines.
2393    # This happens at least with the AIX C compiler.
2394    echo '#include "conftest.h"' > conftest.c
2395    echo 'int i;' > conftest.h
2396    echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2397
2398    case $depmode in
2399    nosideeffect)
2400      # after this tag, mechanisms are not by side-effect, so they'll
2401      # only be used when explicitly requested
2402      if test "x$enable_dependency_tracking" = xyes; then
2403	continue
2404      else
2405	break
2406      fi
2407      ;;
2408    none) break ;;
2409    esac
2410    # We check with `-c' and `-o' for the sake of the "dashmstdout"
2411    # mode.  It turns out that the SunPro C++ compiler does not properly
2412    # handle `-M -o', and we need to detect this.
2413    if depmode=$depmode \
2414       source=conftest.c object=conftest.o \
2415       depfile=conftest.Po tmpdepfile=conftest.TPo \
2416       $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2417       grep conftest.h conftest.Po > /dev/null 2>&1 &&
2418       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2419      am_cv_CC_dependencies_compiler_type=$depmode
2420      break
2421    fi
2422  done
2423
2424  cd ..
2425  rm -rf conftest.dir
2426else
2427  am_cv_CC_dependencies_compiler_type=none
2428fi
2429
2430fi
2431echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2432echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2433CCDEPMODE="depmode=$am_cv_CC_dependencies_compiler_type"
2434
2435
2436ac_ext=cc
2437ac_cpp='$CXXCPP $CPPFLAGS'
2438ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2439ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2440ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2441if test -n "$ac_tool_prefix"; then
2442  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2443  do
2444    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2445set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2446echo "$as_me:$LINENO: checking for $ac_word" >&5
2447echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2448if test "${ac_cv_prog_CXX+set}" = set; then
2449  echo $ECHO_N "(cached) $ECHO_C" >&6
2450else
2451  if test -n "$CXX"; then
2452  ac_cv_prog_CXX="$CXX" # Let the user override the test.
2453else
2454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2455for as_dir in $PATH
2456do
2457  IFS=$as_save_IFS
2458  test -z "$as_dir" && as_dir=.
2459  for ac_exec_ext in '' $ac_executable_extensions; do
2460  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2461    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2462    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2463    break 2
2464  fi
2465done
2466done
2467
2468fi
2469fi
2470CXX=$ac_cv_prog_CXX
2471if test -n "$CXX"; then
2472  echo "$as_me:$LINENO: result: $CXX" >&5
2473echo "${ECHO_T}$CXX" >&6
2474else
2475  echo "$as_me:$LINENO: result: no" >&5
2476echo "${ECHO_T}no" >&6
2477fi
2478
2479    test -n "$CXX" && break
2480  done
2481fi
2482if test -z "$CXX"; then
2483  ac_ct_CXX=$CXX
2484  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2485do
2486  # Extract the first word of "$ac_prog", so it can be a program name with args.
2487set dummy $ac_prog; ac_word=$2
2488echo "$as_me:$LINENO: checking for $ac_word" >&5
2489echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2490if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2491  echo $ECHO_N "(cached) $ECHO_C" >&6
2492else
2493  if test -n "$ac_ct_CXX"; then
2494  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2495else
2496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2497for as_dir in $PATH
2498do
2499  IFS=$as_save_IFS
2500  test -z "$as_dir" && as_dir=.
2501  for ac_exec_ext in '' $ac_executable_extensions; do
2502  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2503    ac_cv_prog_ac_ct_CXX="$ac_prog"
2504    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2505    break 2
2506  fi
2507done
2508done
2509
2510fi
2511fi
2512ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2513if test -n "$ac_ct_CXX"; then
2514  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2515echo "${ECHO_T}$ac_ct_CXX" >&6
2516else
2517  echo "$as_me:$LINENO: result: no" >&5
2518echo "${ECHO_T}no" >&6
2519fi
2520
2521  test -n "$ac_ct_CXX" && break
2522done
2523test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2524
2525  CXX=$ac_ct_CXX
2526fi
2527
2528
2529# Provide some information about the compiler.
2530echo "$as_me:$LINENO:" \
2531     "checking for C++ compiler version" >&5
2532ac_compiler=`set X $ac_compile; echo $2`
2533{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2534  (eval $ac_compiler --version </dev/null >&5) 2>&5
2535  ac_status=$?
2536  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2537  (exit $ac_status); }
2538{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2539  (eval $ac_compiler -v </dev/null >&5) 2>&5
2540  ac_status=$?
2541  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2542  (exit $ac_status); }
2543{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2544  (eval $ac_compiler -V </dev/null >&5) 2>&5
2545  ac_status=$?
2546  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2547  (exit $ac_status); }
2548
2549echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2550echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2551if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2552  echo $ECHO_N "(cached) $ECHO_C" >&6
2553else
2554  cat >conftest.$ac_ext <<_ACEOF
2555#line $LINENO "configure"
2556#include "confdefs.h"
2557
2558#ifdef F77_DUMMY_MAIN
2559#  ifdef __cplusplus
2560     extern "C"
2561#  endif
2562   int F77_DUMMY_MAIN() { return 1; }
2563#endif
2564int
2565main ()
2566{
2567#ifndef __GNUC__
2568       choke me
2569#endif
2570
2571  ;
2572  return 0;
2573}
2574_ACEOF
2575rm -f conftest.$ac_objext
2576if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2577  (eval $ac_compile) 2>&5
2578  ac_status=$?
2579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580  (exit $ac_status); } &&
2581         { ac_try='test -s conftest.$ac_objext'
2582  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2583  (eval $ac_try) 2>&5
2584  ac_status=$?
2585  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586  (exit $ac_status); }; }; then
2587  ac_compiler_gnu=yes
2588else
2589  echo "$as_me: failed program was:" >&5
2590cat conftest.$ac_ext >&5
2591ac_compiler_gnu=no
2592fi
2593rm -f conftest.$ac_objext conftest.$ac_ext
2594ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2595
2596fi
2597echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2598echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2599GXX=`test $ac_compiler_gnu = yes && echo yes`
2600ac_test_CXXFLAGS=${CXXFLAGS+set}
2601ac_save_CXXFLAGS=$CXXFLAGS
2602CXXFLAGS="-g"
2603echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2604echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2605if test "${ac_cv_prog_cxx_g+set}" = set; then
2606  echo $ECHO_N "(cached) $ECHO_C" >&6
2607else
2608  cat >conftest.$ac_ext <<_ACEOF
2609#line $LINENO "configure"
2610#include "confdefs.h"
2611
2612#ifdef F77_DUMMY_MAIN
2613#  ifdef __cplusplus
2614     extern "C"
2615#  endif
2616   int F77_DUMMY_MAIN() { return 1; }
2617#endif
2618int
2619main ()
2620{
2621
2622  ;
2623  return 0;
2624}
2625_ACEOF
2626rm -f conftest.$ac_objext
2627if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2628  (eval $ac_compile) 2>&5
2629  ac_status=$?
2630  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631  (exit $ac_status); } &&
2632         { ac_try='test -s conftest.$ac_objext'
2633  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2634  (eval $ac_try) 2>&5
2635  ac_status=$?
2636  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637  (exit $ac_status); }; }; then
2638  ac_cv_prog_cxx_g=yes
2639else
2640  echo "$as_me: failed program was:" >&5
2641cat conftest.$ac_ext >&5
2642ac_cv_prog_cxx_g=no
2643fi
2644rm -f conftest.$ac_objext conftest.$ac_ext
2645fi
2646echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2647echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2648if test "$ac_test_CXXFLAGS" = set; then
2649  CXXFLAGS=$ac_save_CXXFLAGS
2650elif test $ac_cv_prog_cxx_g = yes; then
2651  if test "$GXX" = yes; then
2652    CXXFLAGS="-g -O2"
2653  else
2654    CXXFLAGS="-g"
2655  fi
2656else
2657  if test "$GXX" = yes; then
2658    CXXFLAGS="-O2"
2659  else
2660    CXXFLAGS=
2661  fi
2662fi
2663for ac_declaration in \
2664   ''\
2665   '#include <stdlib.h>' \
2666   'extern "C" void std::exit (int) throw (); using std::exit;' \
2667   'extern "C" void std::exit (int); using std::exit;' \
2668   'extern "C" void exit (int) throw ();' \
2669   'extern "C" void exit (int);' \
2670   'void exit (int);'
2671do
2672  cat >conftest.$ac_ext <<_ACEOF
2673#line $LINENO "configure"
2674#include "confdefs.h"
2675#include <stdlib.h>
2676$ac_declaration
2677#ifdef F77_DUMMY_MAIN
2678#  ifdef __cplusplus
2679     extern "C"
2680#  endif
2681   int F77_DUMMY_MAIN() { return 1; }
2682#endif
2683int
2684main ()
2685{
2686exit (42);
2687  ;
2688  return 0;
2689}
2690_ACEOF
2691rm -f conftest.$ac_objext
2692if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2693  (eval $ac_compile) 2>&5
2694  ac_status=$?
2695  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2696  (exit $ac_status); } &&
2697         { ac_try='test -s conftest.$ac_objext'
2698  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2699  (eval $ac_try) 2>&5
2700  ac_status=$?
2701  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2702  (exit $ac_status); }; }; then
2703  :
2704else
2705  echo "$as_me: failed program was:" >&5
2706cat conftest.$ac_ext >&5
2707continue
2708fi
2709rm -f conftest.$ac_objext conftest.$ac_ext
2710  cat >conftest.$ac_ext <<_ACEOF
2711#line $LINENO "configure"
2712#include "confdefs.h"
2713$ac_declaration
2714#ifdef F77_DUMMY_MAIN
2715#  ifdef __cplusplus
2716     extern "C"
2717#  endif
2718   int F77_DUMMY_MAIN() { return 1; }
2719#endif
2720int
2721main ()
2722{
2723exit (42);
2724  ;
2725  return 0;
2726}
2727_ACEOF
2728rm -f conftest.$ac_objext
2729if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2730  (eval $ac_compile) 2>&5
2731  ac_status=$?
2732  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733  (exit $ac_status); } &&
2734         { ac_try='test -s conftest.$ac_objext'
2735  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2736  (eval $ac_try) 2>&5
2737  ac_status=$?
2738  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2739  (exit $ac_status); }; }; then
2740  break
2741else
2742  echo "$as_me: failed program was:" >&5
2743cat conftest.$ac_ext >&5
2744fi
2745rm -f conftest.$ac_objext conftest.$ac_ext
2746done
2747rm -f conftest*
2748if test -n "$ac_declaration"; then
2749  echo '#ifdef __cplusplus' >>confdefs.h
2750  echo $ac_declaration      >>confdefs.h
2751  echo '#endif'             >>confdefs.h
2752fi
2753
2754ac_ext=c
2755ac_cpp='$CPP $CPPFLAGS'
2756ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2757ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2758ac_compiler_gnu=$ac_cv_c_compiler_gnu
2759
2760depcc="$CXX"  am_compiler_list=
2761
2762echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2763echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2764if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2765  echo $ECHO_N "(cached) $ECHO_C" >&6
2766else
2767  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2768  # We make a subdir and do the tests there.  Otherwise we can end up
2769  # making bogus files that we don't know about and never remove.  For
2770  # instance it was reported that on HP-UX the gcc test will end up
2771  # making a dummy file named `D' -- because `-MD' means `put the output
2772  # in D'.
2773  mkdir conftest.dir
2774  # Copy depcomp to subdir because otherwise we won't find it if we're
2775  # using a relative directory.
2776  cp "$am_depcomp" conftest.dir
2777  cd conftest.dir
2778
2779  am_cv_CXX_dependencies_compiler_type=none
2780  if test "$am_compiler_list" = ""; then
2781     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2782  fi
2783  for depmode in $am_compiler_list; do
2784    # We need to recreate these files for each test, as the compiler may
2785    # overwrite some of them when testing with obscure command lines.
2786    # This happens at least with the AIX C compiler.
2787    echo '#include "conftest.h"' > conftest.c
2788    echo 'int i;' > conftest.h
2789    echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2790
2791    case $depmode in
2792    nosideeffect)
2793      # after this tag, mechanisms are not by side-effect, so they'll
2794      # only be used when explicitly requested
2795      if test "x$enable_dependency_tracking" = xyes; then
2796	continue
2797      else
2798	break
2799      fi
2800      ;;
2801    none) break ;;
2802    esac
2803    # We check with `-c' and `-o' for the sake of the "dashmstdout"
2804    # mode.  It turns out that the SunPro C++ compiler does not properly
2805    # handle `-M -o', and we need to detect this.
2806    if depmode=$depmode \
2807       source=conftest.c object=conftest.o \
2808       depfile=conftest.Po tmpdepfile=conftest.TPo \
2809       $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2810       grep conftest.h conftest.Po > /dev/null 2>&1 &&
2811       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2812      am_cv_CXX_dependencies_compiler_type=$depmode
2813      break
2814    fi
2815  done
2816
2817  cd ..
2818  rm -rf conftest.dir
2819else
2820  am_cv_CXX_dependencies_compiler_type=none
2821fi
2822
2823fi
2824echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2825echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2826CXXDEPMODE="depmode=$am_cv_CXX_dependencies_compiler_type"
2827
2828
2829echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
2830echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
2831set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
2832if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2833  echo $ECHO_N "(cached) $ECHO_C" >&6
2834else
2835  cat >conftest.make <<\_ACEOF
2836all:
2837	@echo 'ac_maketemp="${MAKE}"'
2838_ACEOF
2839# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2840eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2841if test -n "$ac_maketemp"; then
2842  eval ac_cv_prog_make_${ac_make}_set=yes
2843else
2844  eval ac_cv_prog_make_${ac_make}_set=no
2845fi
2846rm -f conftest.make
2847fi
2848if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2849  echo "$as_me:$LINENO: result: yes" >&5
2850echo "${ECHO_T}yes" >&6
2851  SET_MAKE=
2852else
2853  echo "$as_me:$LINENO: result: no" >&5
2854echo "${ECHO_T}no" >&6
2855  SET_MAKE="MAKE=${MAKE-make}"
2856fi
2857
2858if test -n "$ac_tool_prefix"; then
2859  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2860set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2861echo "$as_me:$LINENO: checking for $ac_word" >&5
2862echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2863if test "${ac_cv_prog_RANLIB+set}" = set; then
2864  echo $ECHO_N "(cached) $ECHO_C" >&6
2865else
2866  if test -n "$RANLIB"; then
2867  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2868else
2869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2870for as_dir in $PATH
2871do
2872  IFS=$as_save_IFS
2873  test -z "$as_dir" && as_dir=.
2874  for ac_exec_ext in '' $ac_executable_extensions; do
2875  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2876    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2877    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2878    break 2
2879  fi
2880done
2881done
2882
2883fi
2884fi
2885RANLIB=$ac_cv_prog_RANLIB
2886if test -n "$RANLIB"; then
2887  echo "$as_me:$LINENO: result: $RANLIB" >&5
2888echo "${ECHO_T}$RANLIB" >&6
2889else
2890  echo "$as_me:$LINENO: result: no" >&5
2891echo "${ECHO_T}no" >&6
2892fi
2893
2894fi
2895if test -z "$ac_cv_prog_RANLIB"; then
2896  ac_ct_RANLIB=$RANLIB
2897  # Extract the first word of "ranlib", so it can be a program name with args.
2898set dummy ranlib; ac_word=$2
2899echo "$as_me:$LINENO: checking for $ac_word" >&5
2900echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2901if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2902  echo $ECHO_N "(cached) $ECHO_C" >&6
2903else
2904  if test -n "$ac_ct_RANLIB"; then
2905  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2906else
2907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2908for as_dir in $PATH
2909do
2910  IFS=$as_save_IFS
2911  test -z "$as_dir" && as_dir=.
2912  for ac_exec_ext in '' $ac_executable_extensions; do
2913  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2914    ac_cv_prog_ac_ct_RANLIB="ranlib"
2915    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2916    break 2
2917  fi
2918done
2919done
2920
2921  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2922fi
2923fi
2924ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2925if test -n "$ac_ct_RANLIB"; then
2926  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2927echo "${ECHO_T}$ac_ct_RANLIB" >&6
2928else
2929  echo "$as_me:$LINENO: result: no" >&5
2930echo "${ECHO_T}no" >&6
2931fi
2932
2933  RANLIB=$ac_ct_RANLIB
2934else
2935  RANLIB="$ac_cv_prog_RANLIB"
2936fi
2937
2938
2939if test "$libdir" = "\${exec_prefix}/lib"; then
2940  libdir=${prefix}/lib
2941fi
2942
2943LDFLAGS="$LIBS -L$libdir"
2944
2945echo "$as_me:$LINENO: checking for library containing MsgOpenApi" >&5
2946echo $ECHO_N "checking for library containing MsgOpenApi... $ECHO_C" >&6
2947if test "${ac_cv_search_MsgOpenApi+set}" = set; then
2948  echo $ECHO_N "(cached) $ECHO_C" >&6
2949else
2950  ac_func_search_save_LIBS=$LIBS
2951ac_cv_search_MsgOpenApi=no
2952cat >conftest.$ac_ext <<_ACEOF
2953#line $LINENO "configure"
2954#include "confdefs.h"
2955
2956/* Override any gcc2 internal prototype to avoid an error.  */
2957#ifdef __cplusplus
2958extern "C"
2959#endif
2960/* We use char because int might match the return type of a gcc2
2961   builtin and then its argument prototype would still apply.  */
2962char MsgOpenApi ();
2963#ifdef F77_DUMMY_MAIN
2964#  ifdef __cplusplus
2965     extern "C"
2966#  endif
2967   int F77_DUMMY_MAIN() { return 1; }
2968#endif
2969int
2970main ()
2971{
2972MsgOpenApi ();
2973  ;
2974  return 0;
2975}
2976_ACEOF
2977rm -f conftest.$ac_objext conftest$ac_exeext
2978if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2979  (eval $ac_link) 2>&5
2980  ac_status=$?
2981  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2982  (exit $ac_status); } &&
2983         { ac_try='test -s conftest$ac_exeext'
2984  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2985  (eval $ac_try) 2>&5
2986  ac_status=$?
2987  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2988  (exit $ac_status); }; }; then
2989  ac_cv_search_MsgOpenApi="none required"
2990else
2991  echo "$as_me: failed program was:" >&5
2992cat conftest.$ac_ext >&5
2993fi
2994rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2995if test "$ac_cv_search_MsgOpenApi" = no; then
2996  for ac_lib in smapi smapilnx smapiqnx; do
2997    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
2998    cat >conftest.$ac_ext <<_ACEOF
2999#line $LINENO "configure"
3000#include "confdefs.h"
3001
3002/* Override any gcc2 internal prototype to avoid an error.  */
3003#ifdef __cplusplus
3004extern "C"
3005#endif
3006/* We use char because int might match the return type of a gcc2
3007   builtin and then its argument prototype would still apply.  */
3008char MsgOpenApi ();
3009#ifdef F77_DUMMY_MAIN
3010#  ifdef __cplusplus
3011     extern "C"
3012#  endif
3013   int F77_DUMMY_MAIN() { return 1; }
3014#endif
3015int
3016main ()
3017{
3018MsgOpenApi ();
3019  ;
3020  return 0;
3021}
3022_ACEOF
3023rm -f conftest.$ac_objext conftest$ac_exeext
3024if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3025  (eval $ac_link) 2>&5
3026  ac_status=$?
3027  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3028  (exit $ac_status); } &&
3029         { ac_try='test -s conftest$ac_exeext'
3030  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3031  (eval $ac_try) 2>&5
3032  ac_status=$?
3033  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034  (exit $ac_status); }; }; then
3035  ac_cv_search_MsgOpenApi="-l$ac_lib"
3036break
3037else
3038  echo "$as_me: failed program was:" >&5
3039cat conftest.$ac_ext >&5
3040fi
3041rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3042  done
3043fi
3044LIBS=$ac_func_search_save_LIBS
3045fi
3046echo "$as_me:$LINENO: result: $ac_cv_search_MsgOpenApi" >&5
3047echo "${ECHO_T}$ac_cv_search_MsgOpenApi" >&6
3048if test "$ac_cv_search_MsgOpenApi" != no; then
3049  test "$ac_cv_search_MsgOpenApi" = "none required" || LIBS="$ac_cv_search_MsgOpenApi $LIBS"
3050
3051else
3052    echo -e "\nYou need a working smapi installation for this program to compile.\n"
3053  exit 1
3054
3055fi
3056
3057
3058ac_ext=c
3059ac_cpp='$CPP $CPPFLAGS'
3060ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3061ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3062ac_compiler_gnu=$ac_cv_c_compiler_gnu
3063echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3064echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3065# On Suns, sometimes $CPP names a directory.
3066if test -n "$CPP" && test -d "$CPP"; then
3067  CPP=
3068fi
3069if test -z "$CPP"; then
3070  if test "${ac_cv_prog_CPP+set}" = set; then
3071  echo $ECHO_N "(cached) $ECHO_C" >&6
3072else
3073      # Double quotes because CPP needs to be expanded
3074    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3075    do
3076      ac_preproc_ok=false
3077for ac_c_preproc_warn_flag in '' yes
3078do
3079  # Use a header file that comes with gcc, so configuring glibc
3080  # with a fresh cross-compiler works.
3081  # On the NeXT, cc -E runs the code through the compiler's parser,
3082  # not just through cpp. "Syntax error" is here to catch this case.
3083  cat >conftest.$ac_ext <<_ACEOF
3084#line $LINENO "configure"
3085#include "confdefs.h"
3086#include <assert.h>
3087                     Syntax error
3088_ACEOF
3089if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3090  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3091  ac_status=$?
3092  egrep -v '^ *\+' conftest.er1 >conftest.err
3093  rm -f conftest.er1
3094  cat conftest.err >&5
3095  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096  (exit $ac_status); } >/dev/null; then
3097  if test -s conftest.err; then
3098    ac_cpp_err=$ac_c_preproc_warn_flag
3099  else
3100    ac_cpp_err=
3101  fi
3102else
3103  ac_cpp_err=yes
3104fi
3105if test -z "$ac_cpp_err"; then
3106  :
3107else
3108  echo "$as_me: failed program was:" >&5
3109  cat conftest.$ac_ext >&5
3110  # Broken: fails on valid input.
3111continue
3112fi
3113rm -f conftest.err conftest.$ac_ext
3114
3115  # OK, works on sane cases.  Now check whether non-existent headers
3116  # can be detected and how.
3117  cat >conftest.$ac_ext <<_ACEOF
3118#line $LINENO "configure"
3119#include "confdefs.h"
3120#include <ac_nonexistent.h>
3121_ACEOF
3122if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3123  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3124  ac_status=$?
3125  egrep -v '^ *\+' conftest.er1 >conftest.err
3126  rm -f conftest.er1
3127  cat conftest.err >&5
3128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129  (exit $ac_status); } >/dev/null; then
3130  if test -s conftest.err; then
3131    ac_cpp_err=$ac_c_preproc_warn_flag
3132  else
3133    ac_cpp_err=
3134  fi
3135else
3136  ac_cpp_err=yes
3137fi
3138if test -z "$ac_cpp_err"; then
3139  # Broken: success on invalid input.
3140continue
3141else
3142  echo "$as_me: failed program was:" >&5
3143  cat conftest.$ac_ext >&5
3144  # Passes both tests.
3145ac_preproc_ok=:
3146break
3147fi
3148rm -f conftest.err conftest.$ac_ext
3149
3150done
3151# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3152rm -f conftest.err conftest.$ac_ext
3153if $ac_preproc_ok; then
3154  break
3155fi
3156
3157    done
3158    ac_cv_prog_CPP=$CPP
3159
3160fi
3161  CPP=$ac_cv_prog_CPP
3162else
3163  ac_cv_prog_CPP=$CPP
3164fi
3165echo "$as_me:$LINENO: result: $CPP" >&5
3166echo "${ECHO_T}$CPP" >&6
3167ac_preproc_ok=false
3168for ac_c_preproc_warn_flag in '' yes
3169do
3170  # Use a header file that comes with gcc, so configuring glibc
3171  # with a fresh cross-compiler works.
3172  # On the NeXT, cc -E runs the code through the compiler's parser,
3173  # not just through cpp. "Syntax error" is here to catch this case.
3174  cat >conftest.$ac_ext <<_ACEOF
3175#line $LINENO "configure"
3176#include "confdefs.h"
3177#include <assert.h>
3178                     Syntax error
3179_ACEOF
3180if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3181  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3182  ac_status=$?
3183  egrep -v '^ *\+' conftest.er1 >conftest.err
3184  rm -f conftest.er1
3185  cat conftest.err >&5
3186  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187  (exit $ac_status); } >/dev/null; then
3188  if test -s conftest.err; then
3189    ac_cpp_err=$ac_c_preproc_warn_flag
3190  else
3191    ac_cpp_err=
3192  fi
3193else
3194  ac_cpp_err=yes
3195fi
3196if test -z "$ac_cpp_err"; then
3197  :
3198else
3199  echo "$as_me: failed program was:" >&5
3200  cat conftest.$ac_ext >&5
3201  # Broken: fails on valid input.
3202continue
3203fi
3204rm -f conftest.err conftest.$ac_ext
3205
3206  # OK, works on sane cases.  Now check whether non-existent headers
3207  # can be detected and how.
3208  cat >conftest.$ac_ext <<_ACEOF
3209#line $LINENO "configure"
3210#include "confdefs.h"
3211#include <ac_nonexistent.h>
3212_ACEOF
3213if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3214  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3215  ac_status=$?
3216  egrep -v '^ *\+' conftest.er1 >conftest.err
3217  rm -f conftest.er1
3218  cat conftest.err >&5
3219  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3220  (exit $ac_status); } >/dev/null; then
3221  if test -s conftest.err; then
3222    ac_cpp_err=$ac_c_preproc_warn_flag
3223  else
3224    ac_cpp_err=
3225  fi
3226else
3227  ac_cpp_err=yes
3228fi
3229if test -z "$ac_cpp_err"; then
3230  # Broken: success on invalid input.
3231continue
3232else
3233  echo "$as_me: failed program was:" >&5
3234  cat conftest.$ac_ext >&5
3235  # Passes both tests.
3236ac_preproc_ok=:
3237break
3238fi
3239rm -f conftest.err conftest.$ac_ext
3240
3241done
3242# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3243rm -f conftest.err conftest.$ac_ext
3244if $ac_preproc_ok; then
3245  :
3246else
3247  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
3248echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3249   { (exit 1); exit 1; }; }
3250fi
3251
3252ac_ext=c
3253ac_cpp='$CPP $CPPFLAGS'
3254ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3255ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3256ac_compiler_gnu=$ac_cv_c_compiler_gnu
3257
3258
3259echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3260echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3261if test "${ac_cv_header_stdc+set}" = set; then
3262  echo $ECHO_N "(cached) $ECHO_C" >&6
3263else
3264  cat >conftest.$ac_ext <<_ACEOF
3265#line $LINENO "configure"
3266#include "confdefs.h"
3267#include <stdlib.h>
3268#include <stdarg.h>
3269#include <string.h>
3270#include <float.h>
3271
3272_ACEOF
3273if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3274  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3275  ac_status=$?
3276  egrep -v '^ *\+' conftest.er1 >conftest.err
3277  rm -f conftest.er1
3278  cat conftest.err >&5
3279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3280  (exit $ac_status); } >/dev/null; then
3281  if test -s conftest.err; then
3282    ac_cpp_err=$ac_c_preproc_warn_flag
3283  else
3284    ac_cpp_err=
3285  fi
3286else
3287  ac_cpp_err=yes
3288fi
3289if test -z "$ac_cpp_err"; then
3290  ac_cv_header_stdc=yes
3291else
3292  echo "$as_me: failed program was:" >&5
3293  cat conftest.$ac_ext >&5
3294  ac_cv_header_stdc=no
3295fi
3296rm -f conftest.err conftest.$ac_ext
3297
3298if test $ac_cv_header_stdc = yes; then
3299  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3300  cat >conftest.$ac_ext <<_ACEOF
3301#line $LINENO "configure"
3302#include "confdefs.h"
3303#include <string.h>
3304
3305_ACEOF
3306if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3307  egrep "memchr" >/dev/null 2>&1; then
3308  :
3309else
3310  ac_cv_header_stdc=no
3311fi
3312rm -f conftest*
3313
3314fi
3315
3316if test $ac_cv_header_stdc = yes; then
3317  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3318  cat >conftest.$ac_ext <<_ACEOF
3319#line $LINENO "configure"
3320#include "confdefs.h"
3321#include <stdlib.h>
3322
3323_ACEOF
3324if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3325  egrep "free" >/dev/null 2>&1; then
3326  :
3327else
3328  ac_cv_header_stdc=no
3329fi
3330rm -f conftest*
3331
3332fi
3333
3334if test $ac_cv_header_stdc = yes; then
3335  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3336  if test "$cross_compiling" = yes; then
3337  :
3338else
3339  cat >conftest.$ac_ext <<_ACEOF
3340#line $LINENO "configure"
3341#include "confdefs.h"
3342#include <ctype.h>
3343#if ((' ' & 0x0FF) == 0x020)
3344# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3345# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3346#else
3347# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3348                     || ('j' <= (c) && (c) <= 'r') \
3349                     || ('s' <= (c) && (c) <= 'z'))
3350# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3351#endif
3352
3353#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3354int
3355main ()
3356{
3357  int i;
3358  for (i = 0; i < 256; i++)
3359    if (XOR (islower (i), ISLOWER (i))
3360        || toupper (i) != TOUPPER (i))
3361      exit(2);
3362  exit (0);
3363}
3364_ACEOF
3365rm -f conftest$ac_exeext
3366if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3367  (eval $ac_link) 2>&5
3368  ac_status=$?
3369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3370  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3371  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3372  (eval $ac_try) 2>&5
3373  ac_status=$?
3374  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3375  (exit $ac_status); }; }; then
3376  :
3377else
3378  echo "$as_me: program exited with status $ac_status" >&5
3379echo "$as_me: failed program was:" >&5
3380cat conftest.$ac_ext >&5
3381( exit $ac_status )
3382ac_cv_header_stdc=no
3383fi
3384rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3385fi
3386fi
3387fi
3388echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3389echo "${ECHO_T}$ac_cv_header_stdc" >&6
3390if test $ac_cv_header_stdc = yes; then
3391
3392cat >>confdefs.h <<\_ACEOF
3393#define STDC_HEADERS 1
3394_ACEOF
3395
3396fi
3397
3398# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3409                  inttypes.h stdint.h unistd.h
3410do
3411as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3412echo "$as_me:$LINENO: checking for $ac_header" >&5
3413echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3414if eval "test \"\${$as_ac_Header+set}\" = set"; then
3415  echo $ECHO_N "(cached) $ECHO_C" >&6
3416else
3417  cat >conftest.$ac_ext <<_ACEOF
3418#line $LINENO "configure"
3419#include "confdefs.h"
3420$ac_includes_default
3421
3422#include <$ac_header>
3423_ACEOF
3424rm -f conftest.$ac_objext
3425if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3426  (eval $ac_compile) 2>&5
3427  ac_status=$?
3428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3429  (exit $ac_status); } &&
3430         { ac_try='test -s conftest.$ac_objext'
3431  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3432  (eval $ac_try) 2>&5
3433  ac_status=$?
3434  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3435  (exit $ac_status); }; }; then
3436  eval "$as_ac_Header=yes"
3437else
3438  echo "$as_me: failed program was:" >&5
3439cat conftest.$ac_ext >&5
3440eval "$as_ac_Header=no"
3441fi
3442rm -f conftest.$ac_objext conftest.$ac_ext
3443fi
3444echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3445echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3446if test `eval echo '${'$as_ac_Header'}'` = yes; then
3447  cat >>confdefs.h <<_ACEOF
3448#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3449_ACEOF
3450
3451fi
3452
3453done
3454
3455
3456
3457
3458
3459
3460
3461
3462for ac_header in fcntl.h limits.h malloc.h unistd.h string.h strings.h
3463do
3464as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3465if eval "test \"\${$as_ac_Header+set}\" = set"; then
3466  echo "$as_me:$LINENO: checking for $ac_header" >&5
3467echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3468if eval "test \"\${$as_ac_Header+set}\" = set"; then
3469  echo $ECHO_N "(cached) $ECHO_C" >&6
3470fi
3471echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3472echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3473else
3474  # Is the header compilable?
3475echo "$as_me:$LINENO: checking $ac_header usability" >&5
3476echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3477cat >conftest.$ac_ext <<_ACEOF
3478#line $LINENO "configure"
3479#include "confdefs.h"
3480$ac_includes_default
3481#include <$ac_header>
3482_ACEOF
3483rm -f conftest.$ac_objext
3484if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3485  (eval $ac_compile) 2>&5
3486  ac_status=$?
3487  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488  (exit $ac_status); } &&
3489         { ac_try='test -s conftest.$ac_objext'
3490  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3491  (eval $ac_try) 2>&5
3492  ac_status=$?
3493  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3494  (exit $ac_status); }; }; then
3495  ac_header_compiler=yes
3496else
3497  echo "$as_me: failed program was:" >&5
3498cat conftest.$ac_ext >&5
3499ac_header_compiler=no
3500fi
3501rm -f conftest.$ac_objext conftest.$ac_ext
3502echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3503echo "${ECHO_T}$ac_header_compiler" >&6
3504
3505# Is the header present?
3506echo "$as_me:$LINENO: checking $ac_header presence" >&5
3507echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3508cat >conftest.$ac_ext <<_ACEOF
3509#line $LINENO "configure"
3510#include "confdefs.h"
3511#include <$ac_header>
3512_ACEOF
3513if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3514  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3515  ac_status=$?
3516  egrep -v '^ *\+' conftest.er1 >conftest.err
3517  rm -f conftest.er1
3518  cat conftest.err >&5
3519  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3520  (exit $ac_status); } >/dev/null; then
3521  if test -s conftest.err; then
3522    ac_cpp_err=$ac_c_preproc_warn_flag
3523  else
3524    ac_cpp_err=
3525  fi
3526else
3527  ac_cpp_err=yes
3528fi
3529if test -z "$ac_cpp_err"; then
3530  ac_header_preproc=yes
3531else
3532  echo "$as_me: failed program was:" >&5
3533  cat conftest.$ac_ext >&5
3534  ac_header_preproc=no
3535fi
3536rm -f conftest.err conftest.$ac_ext
3537echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3538echo "${ECHO_T}$ac_header_preproc" >&6
3539
3540# So?  What about this header?
3541case $ac_header_compiler:$ac_header_preproc in
3542  yes:no )
3543    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3544echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3545    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3546echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3547  no:yes )
3548    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3549echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3550    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3551echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3552    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3553echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3554esac
3555echo "$as_me:$LINENO: checking for $ac_header" >&5
3556echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3557if eval "test \"\${$as_ac_Header+set}\" = set"; then
3558  echo $ECHO_N "(cached) $ECHO_C" >&6
3559else
3560  eval "$as_ac_Header=$ac_header_preproc"
3561fi
3562echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3563echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3564
3565fi
3566if test `eval echo '${'$as_ac_Header'}'` = yes; then
3567  cat >>confdefs.h <<_ACEOF
3568#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3569_ACEOF
3570
3571fi
3572
3573done
3574
3575
3576echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3577echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3578if test "${ac_cv_prog_cc_stdc+set}" = set; then
3579  echo $ECHO_N "(cached) $ECHO_C" >&6
3580else
3581  ac_cv_prog_cc_stdc=no
3582ac_save_CC=$CC
3583cat >conftest.$ac_ext <<_ACEOF
3584#line $LINENO "configure"
3585#include "confdefs.h"
3586#include <stdarg.h>
3587#include <stdio.h>
3588#include <sys/types.h>
3589#include <sys/stat.h>
3590/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3591struct buf { int x; };
3592FILE * (*rcsopen) (struct buf *, struct stat *, int);
3593static char *e (p, i)
3594     char **p;
3595     int i;
3596{
3597  return p[i];
3598}
3599static char *f (char * (*g) (char **, int), char **p, ...)
3600{
3601  char *s;
3602  va_list v;
3603  va_start (v,p);
3604  s = g (p, va_arg (v,int));
3605  va_end (v);
3606  return s;
3607}
3608int test (int i, double x);
3609struct s1 {int (*f) (int a);};
3610struct s2 {int (*f) (double a);};
3611int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3612int argc;
3613char **argv;
3614#ifdef F77_DUMMY_MAIN
3615#  ifdef __cplusplus
3616     extern "C"
3617#  endif
3618   int F77_DUMMY_MAIN() { return 1; }
3619#endif
3620int
3621main ()
3622{
3623return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3624  ;
3625  return 0;
3626}
3627_ACEOF
3628# Don't try gcc -ansi; that turns off useful extensions and
3629# breaks some systems' header files.
3630# AIX			-qlanglvl=ansi
3631# Ultrix and OSF/1	-std1
3632# HP-UX 10.20 and later	-Ae
3633# HP-UX older versions	-Aa -D_HPUX_SOURCE
3634# SVR4			-Xc -D__EXTENSIONS__
3635for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3636do
3637  CC="$ac_save_CC $ac_arg"
3638  rm -f conftest.$ac_objext
3639if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3640  (eval $ac_compile) 2>&5
3641  ac_status=$?
3642  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3643  (exit $ac_status); } &&
3644         { ac_try='test -s conftest.$ac_objext'
3645  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3646  (eval $ac_try) 2>&5
3647  ac_status=$?
3648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3649  (exit $ac_status); }; }; then
3650  ac_cv_prog_cc_stdc=$ac_arg
3651break
3652else
3653  echo "$as_me: failed program was:" >&5
3654cat conftest.$ac_ext >&5
3655fi
3656rm -f conftest.$ac_objext
3657done
3658rm -f conftest.$ac_ext conftest.$ac_objext
3659CC=$ac_save_CC
3660
3661fi
3662
3663case "x$ac_cv_prog_cc_stdc" in
3664  x|xno)
3665    echo "$as_me:$LINENO: result: none needed" >&5
3666echo "${ECHO_T}none needed" >&6 ;;
3667  *)
3668    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3669echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3670    CC="$CC $ac_cv_prog_cc_stdc" ;;
3671esac
3672
3673echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3674echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3675if test "${ac_cv_c_const+set}" = set; then
3676  echo $ECHO_N "(cached) $ECHO_C" >&6
3677else
3678  cat >conftest.$ac_ext <<_ACEOF
3679#line $LINENO "configure"
3680#include "confdefs.h"
3681
3682#ifdef F77_DUMMY_MAIN
3683#  ifdef __cplusplus
3684     extern "C"
3685#  endif
3686   int F77_DUMMY_MAIN() { return 1; }
3687#endif
3688int
3689main ()
3690{
3691/* FIXME: Include the comments suggested by Paul. */
3692#ifndef __cplusplus
3693  /* Ultrix mips cc rejects this.  */
3694  typedef int charset[2];
3695  const charset x;
3696  /* SunOS 4.1.1 cc rejects this.  */
3697  char const *const *ccp;
3698  char **p;
3699  /* NEC SVR4.0.2 mips cc rejects this.  */
3700  struct point {int x, y;};
3701  static struct point const zero = {0,0};
3702  /* AIX XL C 1.02.0.0 rejects this.
3703     It does not let you subtract one const X* pointer from another in
3704     an arm of an if-expression whose if-part is not a constant
3705     expression */
3706  const char *g = "string";
3707  ccp = &g + (g ? g-g : 0);
3708  /* HPUX 7.0 cc rejects these. */
3709  ++ccp;
3710  p = (char**) ccp;
3711  ccp = (char const *const *) p;
3712  { /* SCO 3.2v4 cc rejects this.  */
3713    char *t;
3714    char const *s = 0 ? (char *) 0 : (char const *) 0;
3715
3716    *t++ = 0;
3717  }
3718  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
3719    int x[] = {25, 17};
3720    const int *foo = &x[0];
3721    ++foo;
3722  }
3723  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3724    typedef const int *iptr;
3725    iptr p = 0;
3726    ++p;
3727  }
3728  { /* AIX XL C 1.02.0.0 rejects this saying
3729       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3730    struct s { int j; const int *ap[3]; };
3731    struct s *b; b->j = 5;
3732  }
3733  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3734    const int foo = 10;
3735  }
3736#endif
3737
3738  ;
3739  return 0;
3740}
3741_ACEOF
3742rm -f conftest.$ac_objext
3743if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3744  (eval $ac_compile) 2>&5
3745  ac_status=$?
3746  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3747  (exit $ac_status); } &&
3748         { ac_try='test -s conftest.$ac_objext'
3749  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3750  (eval $ac_try) 2>&5
3751  ac_status=$?
3752  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3753  (exit $ac_status); }; }; then
3754  ac_cv_c_const=yes
3755else
3756  echo "$as_me: failed program was:" >&5
3757cat conftest.$ac_ext >&5
3758ac_cv_c_const=no
3759fi
3760rm -f conftest.$ac_objext conftest.$ac_ext
3761fi
3762echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3763echo "${ECHO_T}$ac_cv_c_const" >&6
3764if test $ac_cv_c_const = no; then
3765
3766cat >>confdefs.h <<\_ACEOF
3767#define const
3768_ACEOF
3769
3770fi
3771
3772echo "$as_me:$LINENO: checking for size_t" >&5
3773echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3774if test "${ac_cv_type_size_t+set}" = set; then
3775  echo $ECHO_N "(cached) $ECHO_C" >&6
3776else
3777  cat >conftest.$ac_ext <<_ACEOF
3778#line $LINENO "configure"
3779#include "confdefs.h"
3780$ac_includes_default
3781#ifdef F77_DUMMY_MAIN
3782#  ifdef __cplusplus
3783     extern "C"
3784#  endif
3785   int F77_DUMMY_MAIN() { return 1; }
3786#endif
3787int
3788main ()
3789{
3790if ((size_t *) 0)
3791  return 0;
3792if (sizeof (size_t))
3793  return 0;
3794  ;
3795  return 0;
3796}
3797_ACEOF
3798rm -f conftest.$ac_objext
3799if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3800  (eval $ac_compile) 2>&5
3801  ac_status=$?
3802  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3803  (exit $ac_status); } &&
3804         { ac_try='test -s conftest.$ac_objext'
3805  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3806  (eval $ac_try) 2>&5
3807  ac_status=$?
3808  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3809  (exit $ac_status); }; }; then
3810  ac_cv_type_size_t=yes
3811else
3812  echo "$as_me: failed program was:" >&5
3813cat conftest.$ac_ext >&5
3814ac_cv_type_size_t=no
3815fi
3816rm -f conftest.$ac_objext conftest.$ac_ext
3817fi
3818echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
3819echo "${ECHO_T}$ac_cv_type_size_t" >&6
3820if test $ac_cv_type_size_t = yes; then
3821  :
3822else
3823
3824cat >>confdefs.h <<_ACEOF
3825#define size_t unsigned
3826_ACEOF
3827
3828fi
3829
3830echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
3831echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
3832if test "${ac_cv_struct_tm+set}" = set; then
3833  echo $ECHO_N "(cached) $ECHO_C" >&6
3834else
3835  cat >conftest.$ac_ext <<_ACEOF
3836#line $LINENO "configure"
3837#include "confdefs.h"
3838#include <sys/types.h>
3839#include <time.h>
3840
3841#ifdef F77_DUMMY_MAIN
3842#  ifdef __cplusplus
3843     extern "C"
3844#  endif
3845   int F77_DUMMY_MAIN() { return 1; }
3846#endif
3847int
3848main ()
3849{
3850struct tm *tp; tp->tm_sec;
3851  ;
3852  return 0;
3853}
3854_ACEOF
3855rm -f conftest.$ac_objext
3856if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3857  (eval $ac_compile) 2>&5
3858  ac_status=$?
3859  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860  (exit $ac_status); } &&
3861         { ac_try='test -s conftest.$ac_objext'
3862  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3863  (eval $ac_try) 2>&5
3864  ac_status=$?
3865  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866  (exit $ac_status); }; }; then
3867  ac_cv_struct_tm=time.h
3868else
3869  echo "$as_me: failed program was:" >&5
3870cat conftest.$ac_ext >&5
3871ac_cv_struct_tm=sys/time.h
3872fi
3873rm -f conftest.$ac_objext conftest.$ac_ext
3874fi
3875echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
3876echo "${ECHO_T}$ac_cv_struct_tm" >&6
3877if test $ac_cv_struct_tm = sys/time.h; then
3878
3879cat >>confdefs.h <<\_ACEOF
3880#define TM_IN_SYS_TIME 1
3881_ACEOF
3882
3883fi
3884
3885
3886echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
3887echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
3888if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
3889  echo $ECHO_N "(cached) $ECHO_C" >&6
3890else
3891  if test "$cross_compiling" = yes; then
3892  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
3893echo "$as_me: error: cannot run test program while cross compiling" >&2;}
3894   { (exit 1); exit 1; }; }
3895else
3896  cat >conftest.$ac_ext <<_ACEOF
3897#line $LINENO "configure"
3898#include "confdefs.h"
3899#include <stdio.h>
3900/* If setvbuf has the reversed format, exit 0. */
3901int
3902main ()
3903{
3904  /* This call has the arguments reversed.
3905     A reversed system may check and see that the address of main
3906     is not _IOLBF, _IONBF, or _IOFBF, and return nonzero.  */
3907  if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0)
3908    exit(1);
3909  putc('\r', stdout);
3910  exit(0);			/* Non-reversed systems segv here.  */
3911}
3912_ACEOF
3913rm -f conftest$ac_exeext
3914if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3915  (eval $ac_link) 2>&5
3916  ac_status=$?
3917  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3918  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3919  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3920  (eval $ac_try) 2>&5
3921  ac_status=$?
3922  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3923  (exit $ac_status); }; }; then
3924  ac_cv_func_setvbuf_reversed=yes
3925else
3926  echo "$as_me: program exited with status $ac_status" >&5
3927echo "$as_me: failed program was:" >&5
3928cat conftest.$ac_ext >&5
3929( exit $ac_status )
3930ac_cv_func_setvbuf_reversed=no
3931fi
3932rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3933fi
3934rm -f core core.* *.core
3935fi
3936echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
3937echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
3938if test $ac_cv_func_setvbuf_reversed = yes; then
3939
3940cat >>confdefs.h <<\_ACEOF
3941#define SETVBUF_REVERSED 1
3942_ACEOF
3943
3944fi
3945
3946echo "$as_me:$LINENO: checking return type of signal handlers" >&5
3947echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
3948if test "${ac_cv_type_signal+set}" = set; then
3949  echo $ECHO_N "(cached) $ECHO_C" >&6
3950else
3951  cat >conftest.$ac_ext <<_ACEOF
3952#line $LINENO "configure"
3953#include "confdefs.h"
3954#include <sys/types.h>
3955#include <signal.h>
3956#ifdef signal
3957# undef signal
3958#endif
3959#ifdef __cplusplus
3960extern "C" void (*signal (int, void (*)(int)))(int);
3961#else
3962void (*signal ()) ();
3963#endif
3964
3965#ifdef F77_DUMMY_MAIN
3966#  ifdef __cplusplus
3967     extern "C"
3968#  endif
3969   int F77_DUMMY_MAIN() { return 1; }
3970#endif
3971int
3972main ()
3973{
3974int i;
3975  ;
3976  return 0;
3977}
3978_ACEOF
3979rm -f conftest.$ac_objext
3980if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3981  (eval $ac_compile) 2>&5
3982  ac_status=$?
3983  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3984  (exit $ac_status); } &&
3985         { ac_try='test -s conftest.$ac_objext'
3986  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3987  (eval $ac_try) 2>&5
3988  ac_status=$?
3989  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3990  (exit $ac_status); }; }; then
3991  ac_cv_type_signal=void
3992else
3993  echo "$as_me: failed program was:" >&5
3994cat conftest.$ac_ext >&5
3995ac_cv_type_signal=int
3996fi
3997rm -f conftest.$ac_objext conftest.$ac_ext
3998fi
3999echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
4000echo "${ECHO_T}$ac_cv_type_signal" >&6
4001
4002cat >>confdefs.h <<_ACEOF
4003#define RETSIGTYPE $ac_cv_type_signal
4004_ACEOF
4005
4006
4007
4008for ac_func in strftime
4009do
4010as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4011echo "$as_me:$LINENO: checking for $ac_func" >&5
4012echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4013if eval "test \"\${$as_ac_var+set}\" = set"; then
4014  echo $ECHO_N "(cached) $ECHO_C" >&6
4015else
4016  cat >conftest.$ac_ext <<_ACEOF
4017#line $LINENO "configure"
4018#include "confdefs.h"
4019/* System header to define __stub macros and hopefully few prototypes,
4020    which can conflict with char $ac_func (); below.  */
4021#include <assert.h>
4022/* Override any gcc2 internal prototype to avoid an error.  */
4023#ifdef __cplusplus
4024extern "C"
4025#endif
4026/* We use char because int might match the return type of a gcc2
4027   builtin and then its argument prototype would still apply.  */
4028char $ac_func ();
4029char (*f) ();
4030
4031#ifdef F77_DUMMY_MAIN
4032#  ifdef __cplusplus
4033     extern "C"
4034#  endif
4035   int F77_DUMMY_MAIN() { return 1; }
4036#endif
4037int
4038main ()
4039{
4040/* The GNU C library defines this for functions which it implements
4041    to always fail with ENOSYS.  Some functions are actually named
4042    something starting with __ and the normal name is an alias.  */
4043#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4044choke me
4045#else
4046f = $ac_func;
4047#endif
4048
4049  ;
4050  return 0;
4051}
4052_ACEOF
4053rm -f conftest.$ac_objext conftest$ac_exeext
4054if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4055  (eval $ac_link) 2>&5
4056  ac_status=$?
4057  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4058  (exit $ac_status); } &&
4059         { ac_try='test -s conftest$ac_exeext'
4060  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4061  (eval $ac_try) 2>&5
4062  ac_status=$?
4063  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064  (exit $ac_status); }; }; then
4065  eval "$as_ac_var=yes"
4066else
4067  echo "$as_me: failed program was:" >&5
4068cat conftest.$ac_ext >&5
4069eval "$as_ac_var=no"
4070fi
4071rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4072fi
4073echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4074echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4075if test `eval echo '${'$as_ac_var'}'` = yes; then
4076  cat >>confdefs.h <<_ACEOF
4077#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4078_ACEOF
4079
4080else
4081  # strftime is in -lintl on SCO UNIX.
4082echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
4083echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
4084if test "${ac_cv_lib_intl_strftime+set}" = set; then
4085  echo $ECHO_N "(cached) $ECHO_C" >&6
4086else
4087  ac_check_lib_save_LIBS=$LIBS
4088LIBS="-lintl  $LIBS"
4089cat >conftest.$ac_ext <<_ACEOF
4090#line $LINENO "configure"
4091#include "confdefs.h"
4092
4093/* Override any gcc2 internal prototype to avoid an error.  */
4094#ifdef __cplusplus
4095extern "C"
4096#endif
4097/* We use char because int might match the return type of a gcc2
4098   builtin and then its argument prototype would still apply.  */
4099char strftime ();
4100#ifdef F77_DUMMY_MAIN
4101#  ifdef __cplusplus
4102     extern "C"
4103#  endif
4104   int F77_DUMMY_MAIN() { return 1; }
4105#endif
4106int
4107main ()
4108{
4109strftime ();
4110  ;
4111  return 0;
4112}
4113_ACEOF
4114rm -f conftest.$ac_objext conftest$ac_exeext
4115if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4116  (eval $ac_link) 2>&5
4117  ac_status=$?
4118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4119  (exit $ac_status); } &&
4120         { ac_try='test -s conftest$ac_exeext'
4121  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4122  (eval $ac_try) 2>&5
4123  ac_status=$?
4124  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4125  (exit $ac_status); }; }; then
4126  ac_cv_lib_intl_strftime=yes
4127else
4128  echo "$as_me: failed program was:" >&5
4129cat conftest.$ac_ext >&5
4130ac_cv_lib_intl_strftime=no
4131fi
4132rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4133LIBS=$ac_check_lib_save_LIBS
4134fi
4135echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
4136echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
4137if test $ac_cv_lib_intl_strftime = yes; then
4138  cat >>confdefs.h <<\_ACEOF
4139#define HAVE_STRFTIME 1
4140_ACEOF
4141
4142LIBS="-lintl $LIBS"
4143fi
4144
4145fi
4146done
4147
4148
4149for ac_func in vprintf
4150do
4151as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4152echo "$as_me:$LINENO: checking for $ac_func" >&5
4153echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4154if eval "test \"\${$as_ac_var+set}\" = set"; then
4155  echo $ECHO_N "(cached) $ECHO_C" >&6
4156else
4157  cat >conftest.$ac_ext <<_ACEOF
4158#line $LINENO "configure"
4159#include "confdefs.h"
4160/* System header to define __stub macros and hopefully few prototypes,
4161    which can conflict with char $ac_func (); below.  */
4162#include <assert.h>
4163/* Override any gcc2 internal prototype to avoid an error.  */
4164#ifdef __cplusplus
4165extern "C"
4166#endif
4167/* We use char because int might match the return type of a gcc2
4168   builtin and then its argument prototype would still apply.  */
4169char $ac_func ();
4170char (*f) ();
4171
4172#ifdef F77_DUMMY_MAIN
4173#  ifdef __cplusplus
4174     extern "C"
4175#  endif
4176   int F77_DUMMY_MAIN() { return 1; }
4177#endif
4178int
4179main ()
4180{
4181/* The GNU C library defines this for functions which it implements
4182    to always fail with ENOSYS.  Some functions are actually named
4183    something starting with __ and the normal name is an alias.  */
4184#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4185choke me
4186#else
4187f = $ac_func;
4188#endif
4189
4190  ;
4191  return 0;
4192}
4193_ACEOF
4194rm -f conftest.$ac_objext conftest$ac_exeext
4195if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4196  (eval $ac_link) 2>&5
4197  ac_status=$?
4198  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4199  (exit $ac_status); } &&
4200         { ac_try='test -s conftest$ac_exeext'
4201  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4202  (eval $ac_try) 2>&5
4203  ac_status=$?
4204  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4205  (exit $ac_status); }; }; then
4206  eval "$as_ac_var=yes"
4207else
4208  echo "$as_me: failed program was:" >&5
4209cat conftest.$ac_ext >&5
4210eval "$as_ac_var=no"
4211fi
4212rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4213fi
4214echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4215echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4216if test `eval echo '${'$as_ac_var'}'` = yes; then
4217  cat >>confdefs.h <<_ACEOF
4218#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4219_ACEOF
4220
4221echo "$as_me:$LINENO: checking for _doprnt" >&5
4222echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
4223if test "${ac_cv_func__doprnt+set}" = set; then
4224  echo $ECHO_N "(cached) $ECHO_C" >&6
4225else
4226  cat >conftest.$ac_ext <<_ACEOF
4227#line $LINENO "configure"
4228#include "confdefs.h"
4229/* System header to define __stub macros and hopefully few prototypes,
4230    which can conflict with char _doprnt (); below.  */
4231#include <assert.h>
4232/* Override any gcc2 internal prototype to avoid an error.  */
4233#ifdef __cplusplus
4234extern "C"
4235#endif
4236/* We use char because int might match the return type of a gcc2
4237   builtin and then its argument prototype would still apply.  */
4238char _doprnt ();
4239char (*f) ();
4240
4241#ifdef F77_DUMMY_MAIN
4242#  ifdef __cplusplus
4243     extern "C"
4244#  endif
4245   int F77_DUMMY_MAIN() { return 1; }
4246#endif
4247int
4248main ()
4249{
4250/* The GNU C library defines this for functions which it implements
4251    to always fail with ENOSYS.  Some functions are actually named
4252    something starting with __ and the normal name is an alias.  */
4253#if defined (__stub__doprnt) || defined (__stub____doprnt)
4254choke me
4255#else
4256f = _doprnt;
4257#endif
4258
4259  ;
4260  return 0;
4261}
4262_ACEOF
4263rm -f conftest.$ac_objext conftest$ac_exeext
4264if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4265  (eval $ac_link) 2>&5
4266  ac_status=$?
4267  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4268  (exit $ac_status); } &&
4269         { ac_try='test -s conftest$ac_exeext'
4270  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4271  (eval $ac_try) 2>&5
4272  ac_status=$?
4273  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4274  (exit $ac_status); }; }; then
4275  ac_cv_func__doprnt=yes
4276else
4277  echo "$as_me: failed program was:" >&5
4278cat conftest.$ac_ext >&5
4279ac_cv_func__doprnt=no
4280fi
4281rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4282fi
4283echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
4284echo "${ECHO_T}$ac_cv_func__doprnt" >&6
4285if test $ac_cv_func__doprnt = yes; then
4286
4287cat >>confdefs.h <<\_ACEOF
4288#define HAVE_DOPRNT 1
4289_ACEOF
4290
4291fi
4292
4293fi
4294done
4295
4296
4297
4298
4299
4300
4301
4302
4303for ac_func in getcwd mktime strcspn strspn strtoul strcasecmp
4304do
4305as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4306echo "$as_me:$LINENO: checking for $ac_func" >&5
4307echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4308if eval "test \"\${$as_ac_var+set}\" = set"; then
4309  echo $ECHO_N "(cached) $ECHO_C" >&6
4310else
4311  cat >conftest.$ac_ext <<_ACEOF
4312#line $LINENO "configure"
4313#include "confdefs.h"
4314/* System header to define __stub macros and hopefully few prototypes,
4315    which can conflict with char $ac_func (); below.  */
4316#include <assert.h>
4317/* Override any gcc2 internal prototype to avoid an error.  */
4318#ifdef __cplusplus
4319extern "C"
4320#endif
4321/* We use char because int might match the return type of a gcc2
4322   builtin and then its argument prototype would still apply.  */
4323char $ac_func ();
4324char (*f) ();
4325
4326#ifdef F77_DUMMY_MAIN
4327#  ifdef __cplusplus
4328     extern "C"
4329#  endif
4330   int F77_DUMMY_MAIN() { return 1; }
4331#endif
4332int
4333main ()
4334{
4335/* The GNU C library defines this for functions which it implements
4336    to always fail with ENOSYS.  Some functions are actually named
4337    something starting with __ and the normal name is an alias.  */
4338#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4339choke me
4340#else
4341f = $ac_func;
4342#endif
4343
4344  ;
4345  return 0;
4346}
4347_ACEOF
4348rm -f conftest.$ac_objext conftest$ac_exeext
4349if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4350  (eval $ac_link) 2>&5
4351  ac_status=$?
4352  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4353  (exit $ac_status); } &&
4354         { ac_try='test -s conftest$ac_exeext'
4355  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4356  (eval $ac_try) 2>&5
4357  ac_status=$?
4358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4359  (exit $ac_status); }; }; then
4360  eval "$as_ac_var=yes"
4361else
4362  echo "$as_me: failed program was:" >&5
4363cat conftest.$ac_ext >&5
4364eval "$as_ac_var=no"
4365fi
4366rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4367fi
4368echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4369echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4370if test `eval echo '${'$as_ac_var'}'` = yes; then
4371  cat >>confdefs.h <<_ACEOF
4372#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4373_ACEOF
4374
4375fi
4376done
4377
4378
4379ac_config_files="$ac_config_files Makefile aplibs/Makefile aplibs/include/Makefile fastlst/Makefile include/Makefile include/max/Makefile"
4380cat >confcache <<\_ACEOF
4381# This file is a shell script that caches the results of configure
4382# tests run on this system so they can be shared between configure
4383# scripts and configure runs, see configure's option --config-cache.
4384# It is not useful on other systems.  If it contains results you don't
4385# want to keep, you may remove or edit it.
4386#
4387# config.status only pays attention to the cache file if you give it
4388# the --recheck option to rerun configure.
4389#
4390# `ac_cv_env_foo' variables (set or unset) will be overriden when
4391# loading this file, other *unset* `ac_cv_foo' will be assigned the
4392# following values.
4393
4394_ACEOF
4395
4396# The following way of writing the cache mishandles newlines in values,
4397# but we know of no workaround that is simple, portable, and efficient.
4398# So, don't put newlines in cache variables' values.
4399# Ultrix sh set writes to stderr and can't be redirected directly,
4400# and sets the high bit in the cache file unless we assign to the vars.
4401{
4402  (set) 2>&1 |
4403    case `(ac_space=' '; set | grep ac_space) 2>&1` in
4404    *ac_space=\ *)
4405      # `set' does not quote correctly, so add quotes (double-quote
4406      # substitution turns \\\\ into \\, and sed turns \\ into \).
4407      sed -n \
4408        "s/'/'\\\\''/g;
4409    	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4410      ;;
4411    *)
4412      # `set' quotes correctly as required by POSIX, so do not add quotes.
4413      sed -n \
4414        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4415      ;;
4416    esac;
4417} |
4418  sed '
4419     t clear
4420     : clear
4421     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4422     t end
4423     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4424     : end' >>confcache
4425if cmp -s $cache_file confcache; then :; else
4426  if test -w $cache_file; then
4427    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4428    cat confcache >$cache_file
4429  else
4430    echo "not updating unwritable cache $cache_file"
4431  fi
4432fi
4433rm -f confcache
4434
4435test "x$prefix" = xNONE && prefix=$ac_default_prefix
4436# Let make expand exec_prefix.
4437test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4438
4439# VPATH may cause trouble with some makes, so we remove $(srcdir),
4440# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4441# trailing colons and then remove the whole line if VPATH becomes empty
4442# (actually we leave an empty line to preserve line numbers).
4443if test "x$srcdir" = x.; then
4444  ac_vpsub='/^[ 	]*VPATH[ 	]*=/{
4445s/:*\$(srcdir):*/:/;
4446s/:*\${srcdir}:*/:/;
4447s/:*@srcdir@:*/:/;
4448s/^\([^=]*=[ 	]*\):*/\1/;
4449s/:*$//;
4450s/^[^=]*=[ 	]*$//;
4451}'
4452fi
4453
4454DEFS=-DHAVE_CONFIG_H
4455
4456
4457: ${CONFIG_STATUS=./config.status}
4458ac_clean_files_save=$ac_clean_files
4459ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4460{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4461echo "$as_me: creating $CONFIG_STATUS" >&6;}
4462cat >$CONFIG_STATUS <<_ACEOF
4463#! $SHELL
4464# Generated by $as_me.
4465# Run this file to recreate the current configuration.
4466# Compiler output produced by configure, useful for debugging
4467# configure, is in config.log if it exists.
4468
4469debug=false
4470SHELL=\${CONFIG_SHELL-$SHELL}
4471_ACEOF
4472
4473cat >>$CONFIG_STATUS <<\_ACEOF
4474
4475## --------------------- ##
4476## M4sh Initialization.  ##
4477## --------------------- ##
4478
4479# Be Bourne compatible
4480if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4481  emulate sh
4482  NULLCMD=:
4483elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
4484  set -o posix
4485fi
4486
4487# NLS nuisances.
4488# Support unset when possible.
4489if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
4490  as_unset=unset
4491else
4492  as_unset=false
4493fi
4494
4495(set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
4496    { $as_unset LANG || test "${LANG+set}" != set; } ||
4497      { LANG=C; export LANG; }
4498(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
4499    { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
4500      { LC_ALL=C; export LC_ALL; }
4501(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
4502    { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
4503      { LC_TIME=C; export LC_TIME; }
4504(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
4505    { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
4506      { LC_CTYPE=C; export LC_CTYPE; }
4507(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
4508    { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
4509      { LANGUAGE=C; export LANGUAGE; }
4510(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
4511    { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
4512      { LC_COLLATE=C; export LC_COLLATE; }
4513(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
4514    { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
4515      { LC_NUMERIC=C; export LC_NUMERIC; }
4516(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
4517    { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
4518      { LC_MESSAGES=C; export LC_MESSAGES; }
4519
4520
4521# Name of the executable.
4522as_me=`(basename "$0") 2>/dev/null ||
4523$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4524	 X"$0" : 'X\(//\)$' \| \
4525	 X"$0" : 'X\(/\)$' \| \
4526	 .     : '\(.\)' 2>/dev/null ||
4527echo X/"$0" |
4528    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
4529  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
4530  	  /^X\/\(\/\).*/{ s//\1/; q; }
4531  	  s/.*/./; q'`
4532
4533# PATH needs CR, and LINENO needs CR and PATH.
4534# Avoid depending upon Character Ranges.
4535as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4536as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4537as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4538as_cr_digits='0123456789'
4539as_cr_alnum=$as_cr_Letters$as_cr_digits
4540
4541# The user is always right.
4542if test "${PATH_SEPARATOR+set}" != set; then
4543  echo "#! /bin/sh" >conftest.sh
4544  echo  "exit 0"   >>conftest.sh
4545  chmod +x conftest.sh
4546  if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
4547    PATH_SEPARATOR=';'
4548  else
4549    PATH_SEPARATOR=:
4550  fi
4551  rm -f conftest.sh
4552fi
4553
4554
4555  as_lineno_1=$LINENO
4556  as_lineno_2=$LINENO
4557  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4558  test "x$as_lineno_1" != "x$as_lineno_2" &&
4559  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
4560  # Find who we are.  Look in the path if we contain no path at all
4561  # relative or not.
4562  case $0 in
4563    *[\\/]* ) as_myself=$0 ;;
4564    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4565for as_dir in $PATH
4566do
4567  IFS=$as_save_IFS
4568  test -z "$as_dir" && as_dir=.
4569  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4570done
4571
4572       ;;
4573  esac
4574  # We did not find ourselves, most probably we were run as `sh COMMAND'
4575  # in which case we are not to be found in the path.
4576  if test "x$as_myself" = x; then
4577    as_myself=$0
4578  fi
4579  if test ! -f "$as_myself"; then
4580    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
4581echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
4582   { (exit 1); exit 1; }; }
4583  fi
4584  case $CONFIG_SHELL in
4585  '')
4586    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4587for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
4588do
4589  IFS=$as_save_IFS
4590  test -z "$as_dir" && as_dir=.
4591  for as_base in sh bash ksh sh5; do
4592	 case $as_dir in
4593	 /*)
4594	   if ("$as_dir/$as_base" -c '
4595  as_lineno_1=$LINENO
4596  as_lineno_2=$LINENO
4597  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4598  test "x$as_lineno_1" != "x$as_lineno_2" &&
4599  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
4600	     CONFIG_SHELL=$as_dir/$as_base
4601	     export CONFIG_SHELL
4602	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
4603	   fi;;
4604	 esac
4605       done
4606done
4607;;
4608  esac
4609
4610  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4611  # uniformly replaced by the line number.  The first 'sed' inserts a
4612  # line-number line before each line; the second 'sed' does the real
4613  # work.  The second script uses 'N' to pair each line-number line
4614  # with the numbered line, and appends trailing '-' during
4615  # substitution so that $LINENO is not a special case at line end.
4616  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4617  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
4618  sed '=' <$as_myself |
4619    sed '
4620      N
4621      s,$,-,
4622      : loop
4623      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
4624      t loop
4625      s,-$,,
4626      s,^['$as_cr_digits']*\n,,
4627    ' >$as_me.lineno &&
4628  chmod +x $as_me.lineno ||
4629    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
4630echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
4631   { (exit 1); exit 1; }; }
4632
4633  # Don't try to exec as it changes $[0], causing all sort of problems
4634  # (the dirname of $[0] is not the place where we might find the
4635  # original and so on.  Autoconf is especially sensible to this).
4636  . ./$as_me.lineno
4637  # Exit status is that of the last command.
4638  exit
4639}
4640
4641
4642case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
4643  *c*,-n*) ECHO_N= ECHO_C='
4644' ECHO_T='	' ;;
4645  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
4646  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
4647esac
4648
4649if expr a : '\(a\)' >/dev/null 2>&1; then
4650  as_expr=expr
4651else
4652  as_expr=false
4653fi
4654
4655rm -f conf$$ conf$$.exe conf$$.file
4656echo >conf$$.file
4657if ln -s conf$$.file conf$$ 2>/dev/null; then
4658  # We could just check for DJGPP; but this test a) works b) is more generic
4659  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4660  if test -f conf$$.exe; then
4661    # Don't use ln at all; we don't have any links
4662    as_ln_s='cp -p'
4663  else
4664    as_ln_s='ln -s'
4665  fi
4666elif ln conf$$.file conf$$ 2>/dev/null; then
4667  as_ln_s=ln
4668else
4669  as_ln_s='cp -p'
4670fi
4671rm -f conf$$ conf$$.exe conf$$.file
4672
4673as_executable_p="test -f"
4674
4675# Sed expression to map a string onto a valid CPP name.
4676as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
4677
4678# Sed expression to map a string onto a valid variable name.
4679as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
4680
4681
4682# IFS
4683# We need space, tab and new line, in precisely that order.
4684as_nl='
4685'
4686IFS=" 	$as_nl"
4687
4688# CDPATH.
4689$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
4690
4691exec 6>&1
4692
4693# Open the log real soon, to keep \$[0] and so on meaningful, and to
4694# report actual input values of CONFIG_FILES etc. instead of their
4695# values after options handling.  Logging --version etc. is OK.
4696exec 5>>config.log
4697{
4698  echo
4699  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4700## Running $as_me. ##
4701_ASBOX
4702} >&5
4703cat >&5 <<_CSEOF
4704
4705This file was extended by $as_me, which was
4706generated by GNU Autoconf 2.53.  Invocation command line was
4707
4708  CONFIG_FILES    = $CONFIG_FILES
4709  CONFIG_HEADERS  = $CONFIG_HEADERS
4710  CONFIG_LINKS    = $CONFIG_LINKS
4711  CONFIG_COMMANDS = $CONFIG_COMMANDS
4712  $ $0 $@
4713
4714_CSEOF
4715echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
4716echo >&5
4717_ACEOF
4718
4719# Files that config.status was made for.
4720if test -n "$ac_config_files"; then
4721  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
4722fi
4723
4724if test -n "$ac_config_headers"; then
4725  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4726fi
4727
4728if test -n "$ac_config_links"; then
4729  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4730fi
4731
4732if test -n "$ac_config_commands"; then
4733  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4734fi
4735
4736cat >>$CONFIG_STATUS <<\_ACEOF
4737
4738ac_cs_usage="\
4739\`$as_me' instantiates files from templates according to the
4740current configuration.
4741
4742Usage: $0 [OPTIONS] [FILE]...
4743
4744  -h, --help       print this help, then exit
4745  -V, --version    print version number, then exit
4746  -d, --debug      don't remove temporary files
4747      --recheck    update $as_me by reconfiguring in the same conditions
4748  --file=FILE[:TEMPLATE]
4749                   instantiate the configuration file FILE
4750  --header=FILE[:TEMPLATE]
4751                   instantiate the configuration header FILE
4752
4753Configuration files:
4754$config_files
4755
4756Configuration headers:
4757$config_headers
4758
4759Configuration commands:
4760$config_commands
4761
4762Report bugs to <bug-autoconf@gnu.org>."
4763_ACEOF
4764
4765cat >>$CONFIG_STATUS <<_ACEOF
4766ac_cs_version="\\
4767config.status
4768configured by $0, generated by GNU Autoconf 2.53,
4769  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4770
4771Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
4772Free Software Foundation, Inc.
4773This config.status script is free software; the Free Software Foundation
4774gives unlimited permission to copy, distribute and modify it."
4775srcdir=$srcdir
4776INSTALL="$INSTALL"
4777_ACEOF
4778
4779cat >>$CONFIG_STATUS <<\_ACEOF
4780# If no file are specified by the user, then we need to provide default
4781# value.  By we need to know if files were specified by the user.
4782ac_need_defaults=:
4783while test $# != 0
4784do
4785  case $1 in
4786  --*=*)
4787    ac_option=`expr "x$1" : 'x\([^=]*\)='`
4788    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
4789    shift
4790    set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
4791    shift
4792    ;;
4793  -*);;
4794  *) # This is not an option, so the user has probably given explicit
4795     # arguments.
4796     ac_need_defaults=false;;
4797  esac
4798
4799  case $1 in
4800  # Handling of the options.
4801_ACEOF
4802cat >>$CONFIG_STATUS <<_ACEOF
4803  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4804    echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
4805    exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
4806_ACEOF
4807cat >>$CONFIG_STATUS <<\_ACEOF
4808  --version | --vers* | -V )
4809    echo "$ac_cs_version"; exit 0 ;;
4810  --he | --h)
4811    # Conflict between --help and --header
4812    { { echo "$as_me:$LINENO: error: ambiguous option: $1
4813Try \`$0 --help' for more information." >&5
4814echo "$as_me: error: ambiguous option: $1
4815Try \`$0 --help' for more information." >&2;}
4816   { (exit 1); exit 1; }; };;
4817  --help | --hel | -h )
4818    echo "$ac_cs_usage"; exit 0 ;;
4819  --debug | --d* | -d )
4820    debug=: ;;
4821  --file | --fil | --fi | --f )
4822    shift
4823    CONFIG_FILES="$CONFIG_FILES $1"
4824    ac_need_defaults=false;;
4825  --header | --heade | --head | --hea )
4826    shift
4827    CONFIG_HEADERS="$CONFIG_HEADERS $1"
4828    ac_need_defaults=false;;
4829
4830  # This is an error.
4831  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
4832Try \`$0 --help' for more information." >&5
4833echo "$as_me: error: unrecognized option: $1
4834Try \`$0 --help' for more information." >&2;}
4835   { (exit 1); exit 1; }; } ;;
4836
4837  *) ac_config_targets="$ac_config_targets $1" ;;
4838
4839  esac
4840  shift
4841done
4842
4843_ACEOF
4844
4845cat >>$CONFIG_STATUS <<_ACEOF
4846#
4847# INIT-COMMANDS section.
4848#
4849
4850AMDEP_TRUE="$AMDEP_TRUE"
4851ac_aux_dir="$ac_aux_dir"
4852
4853_ACEOF
4854
4855
4856
4857cat >>$CONFIG_STATUS <<\_ACEOF
4858for ac_config_target in $ac_config_targets
4859do
4860  case "$ac_config_target" in
4861  # Handling of arguments.
4862  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4863  "aplibs/Makefile" ) CONFIG_FILES="$CONFIG_FILES aplibs/Makefile" ;;
4864  "aplibs/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES aplibs/include/Makefile" ;;
4865  "fastlst/Makefile" ) CONFIG_FILES="$CONFIG_FILES fastlst/Makefile" ;;
4866  "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
4867  "include/max/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/max/Makefile" ;;
4868  "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
4869  "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
4870  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4871echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4872   { (exit 1); exit 1; }; };;
4873  esac
4874done
4875
4876# If the user did not use the arguments to specify the items to instantiate,
4877# then the envvar interface is used.  Set only those that are not.
4878# We use the long form for the default assignment because of an extremely
4879# bizarre bug on SunOS 4.1.3.
4880if $ac_need_defaults; then
4881  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4882  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4883  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
4884fi
4885
4886# Create a temporary directory, and hook for its removal unless debugging.
4887$debug ||
4888{
4889  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4890  trap '{ (exit 1); exit 1; }' 1 2 13 15
4891}
4892
4893# Create a (secure) tmp directory for tmp files.
4894: ${TMPDIR=/tmp}
4895{
4896  tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
4897  test -n "$tmp" && test -d "$tmp"
4898}  ||
4899{
4900  tmp=$TMPDIR/cs$$-$RANDOM
4901  (umask 077 && mkdir $tmp)
4902} ||
4903{
4904   echo "$me: cannot create a temporary directory in $TMPDIR" >&2
4905   { (exit 1); exit 1; }
4906}
4907
4908_ACEOF
4909
4910cat >>$CONFIG_STATUS <<_ACEOF
4911
4912#
4913# CONFIG_FILES section.
4914#
4915
4916# No need to generate the scripts if there are no CONFIG_FILES.
4917# This happens for instance when ./config.status config.h
4918if test -n "\$CONFIG_FILES"; then
4919  # Protect against being on the right side of a sed subst in config.status.
4920  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4921   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4922s,@SHELL@,$SHELL,;t t
4923s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4924s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4925s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4926s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4927s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4928s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4929s,@exec_prefix@,$exec_prefix,;t t
4930s,@prefix@,$prefix,;t t
4931s,@program_transform_name@,$program_transform_name,;t t
4932s,@bindir@,$bindir,;t t
4933s,@sbindir@,$sbindir,;t t
4934s,@libexecdir@,$libexecdir,;t t
4935s,@datadir@,$datadir,;t t
4936s,@sysconfdir@,$sysconfdir,;t t
4937s,@sharedstatedir@,$sharedstatedir,;t t
4938s,@localstatedir@,$localstatedir,;t t
4939s,@libdir@,$libdir,;t t
4940s,@includedir@,$includedir,;t t
4941s,@oldincludedir@,$oldincludedir,;t t
4942s,@infodir@,$infodir,;t t
4943s,@mandir@,$mandir,;t t
4944s,@build_alias@,$build_alias,;t t
4945s,@host_alias@,$host_alias,;t t
4946s,@target_alias@,$target_alias,;t t
4947s,@DEFS@,$DEFS,;t t
4948s,@ECHO_C@,$ECHO_C,;t t
4949s,@ECHO_N@,$ECHO_N,;t t
4950s,@ECHO_T@,$ECHO_T,;t t
4951s,@LIBS@,$LIBS,;t t
4952s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
4953s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
4954s,@INSTALL_DATA@,$INSTALL_DATA,;t t
4955s,@PACKAGE@,$PACKAGE,;t t
4956s,@VERSION@,$VERSION,;t t
4957s,@EXEEXT@,$EXEEXT,;t t
4958s,@OBJEXT@,$OBJEXT,;t t
4959s,@ACLOCAL@,$ACLOCAL,;t t
4960s,@AUTOCONF@,$AUTOCONF,;t t
4961s,@AUTOMAKE@,$AUTOMAKE,;t t
4962s,@AUTOHEADER@,$AUTOHEADER,;t t
4963s,@MAKEINFO@,$MAKEINFO,;t t
4964s,@AMTAR@,$AMTAR,;t t
4965s,@install_sh@,$install_sh,;t t
4966s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
4967s,@AWK@,$AWK,;t t
4968s,@SET_MAKE@,$SET_MAKE,;t t
4969s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
4970s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
4971s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
4972s,@DEPDIR@,$DEPDIR,;t t
4973s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
4974s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
4975s,@MAINT@,$MAINT,;t t
4976s,@CC@,$CC,;t t
4977s,@CFLAGS@,$CFLAGS,;t t
4978s,@LDFLAGS@,$LDFLAGS,;t t
4979s,@CPPFLAGS@,$CPPFLAGS,;t t
4980s,@ac_ct_CC@,$ac_ct_CC,;t t
4981s,@am__include@,$am__include,;t t
4982s,@am__quote@,$am__quote,;t t
4983s,@CCDEPMODE@,$CCDEPMODE,;t t
4984s,@CXX@,$CXX,;t t
4985s,@CXXFLAGS@,$CXXFLAGS,;t t
4986s,@ac_ct_CXX@,$ac_ct_CXX,;t t
4987s,@CXXDEPMODE@,$CXXDEPMODE,;t t
4988s,@RANLIB@,$RANLIB,;t t
4989s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
4990s,@CPP@,$CPP,;t t
4991CEOF
4992
4993_ACEOF
4994
4995  cat >>$CONFIG_STATUS <<\_ACEOF
4996  # Split the substitutions into bite-sized pieces for seds with
4997  # small command number limits, like on Digital OSF/1 and HP-UX.
4998  ac_max_sed_lines=48
4999  ac_sed_frag=1 # Number of current file.
5000  ac_beg=1 # First line for current file.
5001  ac_end=$ac_max_sed_lines # Line after last line for current file.
5002  ac_more_lines=:
5003  ac_sed_cmds=
5004  while $ac_more_lines; do
5005    if test $ac_beg -gt 1; then
5006      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5007    else
5008      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5009    fi
5010    if test ! -s $tmp/subs.frag; then
5011      ac_more_lines=false
5012    else
5013      # The purpose of the label and of the branching condition is to
5014      # speed up the sed processing (if there are no `@' at all, there
5015      # is no need to browse any of the substitutions).
5016      # These are the two extra sed commands mentioned above.
5017      (echo ':t
5018  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5019      if test -z "$ac_sed_cmds"; then
5020  	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5021      else
5022  	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5023      fi
5024      ac_sed_frag=`expr $ac_sed_frag + 1`
5025      ac_beg=$ac_end
5026      ac_end=`expr $ac_end + $ac_max_sed_lines`
5027    fi
5028  done
5029  if test -z "$ac_sed_cmds"; then
5030    ac_sed_cmds=cat
5031  fi
5032fi # test -n "$CONFIG_FILES"
5033
5034_ACEOF
5035cat >>$CONFIG_STATUS <<\_ACEOF
5036for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5037  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5038  case $ac_file in
5039  - | *:- | *:-:* ) # input from stdin
5040        cat >$tmp/stdin
5041        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5042        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5043  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5044        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5045  * )   ac_file_in=$ac_file.in ;;
5046  esac
5047
5048  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5049  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5050$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5051         X"$ac_file" : 'X\(//\)[^/]' \| \
5052         X"$ac_file" : 'X\(//\)$' \| \
5053         X"$ac_file" : 'X\(/\)' \| \
5054         .     : '\(.\)' 2>/dev/null ||
5055echo X"$ac_file" |
5056    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5057  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5058  	  /^X\(\/\/\)$/{ s//\1/; q; }
5059  	  /^X\(\/\).*/{ s//\1/; q; }
5060  	  s/.*/./; q'`
5061  { case "$ac_dir" in
5062  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
5063  *)                      as_incr_dir=.;;
5064esac
5065as_dummy="$ac_dir"
5066for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
5067  case $as_mkdir_dir in
5068    # Skip DOS drivespec
5069    ?:) as_incr_dir=$as_mkdir_dir ;;
5070    *)
5071      as_incr_dir=$as_incr_dir/$as_mkdir_dir
5072      test -d "$as_incr_dir" ||
5073        mkdir "$as_incr_dir" ||
5074	{ { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
5075echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
5076   { (exit 1); exit 1; }; }
5077    ;;
5078  esac
5079done; }
5080
5081  ac_builddir=.
5082
5083if test "$ac_dir" != .; then
5084  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5085  # A "../" for each directory in $ac_dir_suffix.
5086  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5087else
5088  ac_dir_suffix= ac_top_builddir=
5089fi
5090
5091case $srcdir in
5092  .)  # No --srcdir option.  We are building in place.
5093    ac_srcdir=.
5094    if test -z "$ac_top_builddir"; then
5095       ac_top_srcdir=.
5096    else
5097       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5098    fi ;;
5099  [\\/]* | ?:[\\/]* )  # Absolute path.
5100    ac_srcdir=$srcdir$ac_dir_suffix;
5101    ac_top_srcdir=$srcdir ;;
5102  *) # Relative path.
5103    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5104    ac_top_srcdir=$ac_top_builddir$srcdir ;;
5105esac
5106# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
5107# absolute.
5108ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
5109ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
5110ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
5111ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
5112
5113
5114  case $INSTALL in
5115  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5116  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
5117  esac
5118
5119  if test x"$ac_file" != x-; then
5120    { echo "$as_me:$LINENO: creating $ac_file" >&5
5121echo "$as_me: creating $ac_file" >&6;}
5122    rm -f "$ac_file"
5123  fi
5124  # Let's still pretend it is `configure' which instantiates (i.e., don't
5125  # use $as_me), people would be surprised to read:
5126  #    /* config.h.  Generated by config.status.  */
5127  if test x"$ac_file" = x-; then
5128    configure_input=
5129  else
5130    configure_input="$ac_file.  "
5131  fi
5132  configure_input=$configure_input"Generated from `echo $ac_file_in |
5133                                     sed 's,.*/,,'` by configure."
5134
5135  # First look for the input files in the build tree, otherwise in the
5136  # src tree.
5137  ac_file_inputs=`IFS=:
5138    for f in $ac_file_in; do
5139      case $f in
5140      -) echo $tmp/stdin ;;
5141      [\\/$]*)
5142         # Absolute (can't be DOS-style, as IFS=:)
5143         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5144echo "$as_me: error: cannot find input file: $f" >&2;}
5145   { (exit 1); exit 1; }; }
5146         echo $f;;
5147      *) # Relative
5148         if test -f "$f"; then
5149           # Build tree
5150           echo $f
5151         elif test -f "$srcdir/$f"; then
5152           # Source tree
5153           echo $srcdir/$f
5154         else
5155           # /dev/null tree
5156           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5157echo "$as_me: error: cannot find input file: $f" >&2;}
5158   { (exit 1); exit 1; }; }
5159         fi;;
5160      esac
5161    done` || { (exit 1); exit 1; }
5162_ACEOF
5163cat >>$CONFIG_STATUS <<_ACEOF
5164  sed "$ac_vpsub
5165$extrasub
5166_ACEOF
5167cat >>$CONFIG_STATUS <<\_ACEOF
5168:t
5169/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5170s,@configure_input@,$configure_input,;t t
5171s,@srcdir@,$ac_srcdir,;t t
5172s,@abs_srcdir@,$ac_abs_srcdir,;t t
5173s,@top_srcdir@,$ac_top_srcdir,;t t
5174s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
5175s,@builddir@,$ac_builddir,;t t
5176s,@abs_builddir@,$ac_abs_builddir,;t t
5177s,@top_builddir@,$ac_top_builddir,;t t
5178s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
5179s,@INSTALL@,$ac_INSTALL,;t t
5180" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5181  rm -f $tmp/stdin
5182  if test x"$ac_file" != x-; then
5183    mv $tmp/out $ac_file
5184  else
5185    cat $tmp/out
5186    rm -f $tmp/out
5187  fi
5188
5189done
5190_ACEOF
5191cat >>$CONFIG_STATUS <<\_ACEOF
5192
5193#
5194# CONFIG_HEADER section.
5195#
5196
5197# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5198# NAME is the cpp macro being defined and VALUE is the value it is being given.
5199#
5200# ac_d sets the value in "#define NAME VALUE" lines.
5201ac_dA='s,^\([ 	]*\)#\([ 	]*define[ 	][ 	]*\)'
5202ac_dB='[ 	].*$,\1#\2'
5203ac_dC=' '
5204ac_dD=',;t'
5205# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5206ac_uA='s,^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
5207ac_uB='$,\1#\2define\3'
5208ac_uC=' '
5209ac_uD=',;t'
5210
5211for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
5212  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5213  case $ac_file in
5214  - | *:- | *:-:* ) # input from stdin
5215        cat >$tmp/stdin
5216        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5217        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5218  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5219        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5220  * )   ac_file_in=$ac_file.in ;;
5221  esac
5222
5223  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
5224echo "$as_me: creating $ac_file" >&6;}
5225
5226  # First look for the input files in the build tree, otherwise in the
5227  # src tree.
5228  ac_file_inputs=`IFS=:
5229    for f in $ac_file_in; do
5230      case $f in
5231      -) echo $tmp/stdin ;;
5232      [\\/$]*)
5233         # Absolute (can't be DOS-style, as IFS=:)
5234         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5235echo "$as_me: error: cannot find input file: $f" >&2;}
5236   { (exit 1); exit 1; }; }
5237         echo $f;;
5238      *) # Relative
5239         if test -f "$f"; then
5240           # Build tree
5241           echo $f
5242         elif test -f "$srcdir/$f"; then
5243           # Source tree
5244           echo $srcdir/$f
5245         else
5246           # /dev/null tree
5247           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5248echo "$as_me: error: cannot find input file: $f" >&2;}
5249   { (exit 1); exit 1; }; }
5250         fi;;
5251      esac
5252    done` || { (exit 1); exit 1; }
5253  # Remove the trailing spaces.
5254  sed 's/[ 	]*$//' $ac_file_inputs >$tmp/in
5255
5256_ACEOF
5257
5258# Transform confdefs.h into two sed scripts, `conftest.defines' and
5259# `conftest.undefs', that substitutes the proper values into
5260# config.h.in to produce config.h.  The first handles `#define'
5261# templates, and the second `#undef' templates.
5262# And first: Protect against being on the right side of a sed subst in
5263# config.status.  Protect against being in an unquoted here document
5264# in config.status.
5265rm -f conftest.defines conftest.undefs
5266# Using a here document instead of a string reduces the quoting nightmare.
5267# Putting comments in sed scripts is not portable.
5268#
5269# `end' is used to avoid that the second main sed command (meant for
5270# 0-ary CPP macros) applies to n-ary macro definitions.
5271# See the Autoconf documentation for `clear'.
5272cat >confdef2sed.sed <<\_ACEOF
5273s/[\\&,]/\\&/g
5274s,[\\$`],\\&,g
5275t clear
5276: clear
5277s,^[ 	]*#[ 	]*define[ 	][ 	]*\([^ 	(][^ 	(]*\)\(([^)]*)\)[ 	]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
5278t end
5279s,^[ 	]*#[ 	]*define[ 	][ 	]*\([^ 	][^ 	]*\)[ 	]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
5280: end
5281_ACEOF
5282# If some macros were called several times there might be several times
5283# the same #defines, which is useless.  Nevertheless, we may not want to
5284# sort them, since we want the *last* AC-DEFINE to be honored.
5285uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
5286sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
5287rm -f confdef2sed.sed
5288
5289# This sed command replaces #undef with comments.  This is necessary, for
5290# example, in the case of _POSIX_SOURCE, which is predefined and required
5291# on some systems where configure will not decide to define it.
5292cat >>conftest.undefs <<\_ACEOF
5293s,^[ 	]*#[ 	]*undef[ 	][ 	]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
5294_ACEOF
5295
5296# Break up conftest.defines because some shells have a limit on the size
5297# of here documents, and old seds have small limits too (100 cmds).
5298echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
5299echo '  if egrep "^[ 	]*#[ 	]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
5300echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
5301echo '  :' >>$CONFIG_STATUS
5302rm -f conftest.tail
5303while grep . conftest.defines >/dev/null
5304do
5305  # Write a limited-size here document to $tmp/defines.sed.
5306  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
5307  # Speed up: don't consider the non `#define' lines.
5308  echo '/^[ 	]*#[ 	]*define/!b' >>$CONFIG_STATUS
5309  # Work around the forget-to-reset-the-flag bug.
5310  echo 't clr' >>$CONFIG_STATUS
5311  echo ': clr' >>$CONFIG_STATUS
5312  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
5313  echo 'CEOF
5314  sed -f $tmp/defines.sed $tmp/in >$tmp/out
5315  rm -f $tmp/in
5316  mv $tmp/out $tmp/in
5317' >>$CONFIG_STATUS
5318  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
5319  rm -f conftest.defines
5320  mv conftest.tail conftest.defines
5321done
5322rm -f conftest.defines
5323echo '  fi # egrep' >>$CONFIG_STATUS
5324echo >>$CONFIG_STATUS
5325
5326# Break up conftest.undefs because some shells have a limit on the size
5327# of here documents, and old seds have small limits too (100 cmds).
5328echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
5329rm -f conftest.tail
5330while grep . conftest.undefs >/dev/null
5331do
5332  # Write a limited-size here document to $tmp/undefs.sed.
5333  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
5334  # Speed up: don't consider the non `#undef'
5335  echo '/^[ 	]*#[ 	]*undef/!b' >>$CONFIG_STATUS
5336  # Work around the forget-to-reset-the-flag bug.
5337  echo 't clr' >>$CONFIG_STATUS
5338  echo ': clr' >>$CONFIG_STATUS
5339  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
5340  echo 'CEOF
5341  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
5342  rm -f $tmp/in
5343  mv $tmp/out $tmp/in
5344' >>$CONFIG_STATUS
5345  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
5346  rm -f conftest.undefs
5347  mv conftest.tail conftest.undefs
5348done
5349rm -f conftest.undefs
5350
5351cat >>$CONFIG_STATUS <<\_ACEOF
5352  # Let's still pretend it is `configure' which instantiates (i.e., don't
5353  # use $as_me), people would be surprised to read:
5354  #    /* config.h.  Generated by config.status.  */
5355  if test x"$ac_file" = x-; then
5356    echo "/* Generated by configure.  */" >$tmp/config.h
5357  else
5358    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
5359  fi
5360  cat $tmp/in >>$tmp/config.h
5361  rm -f $tmp/in
5362  if test x"$ac_file" != x-; then
5363    if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
5364      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
5365echo "$as_me: $ac_file is unchanged" >&6;}
5366    else
5367      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5368$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5369         X"$ac_file" : 'X\(//\)[^/]' \| \
5370         X"$ac_file" : 'X\(//\)$' \| \
5371         X"$ac_file" : 'X\(/\)' \| \
5372         .     : '\(.\)' 2>/dev/null ||
5373echo X"$ac_file" |
5374    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5375  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5376  	  /^X\(\/\/\)$/{ s//\1/; q; }
5377  	  /^X\(\/\).*/{ s//\1/; q; }
5378  	  s/.*/./; q'`
5379      { case "$ac_dir" in
5380  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
5381  *)                      as_incr_dir=.;;
5382esac
5383as_dummy="$ac_dir"
5384for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
5385  case $as_mkdir_dir in
5386    # Skip DOS drivespec
5387    ?:) as_incr_dir=$as_mkdir_dir ;;
5388    *)
5389      as_incr_dir=$as_incr_dir/$as_mkdir_dir
5390      test -d "$as_incr_dir" ||
5391        mkdir "$as_incr_dir" ||
5392	{ { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
5393echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
5394   { (exit 1); exit 1; }; }
5395    ;;
5396  esac
5397done; }
5398
5399      rm -f $ac_file
5400      mv $tmp/config.h $ac_file
5401    fi
5402  else
5403    cat $tmp/config.h
5404    rm -f $tmp/config.h
5405  fi
5406  # Run the commands associated with the file.
5407  case $ac_file in
5408    include/config.h ) # update the timestamp
5409echo timestamp >"include/stamp-h1"
5410 ;;
5411  esac
5412done
5413_ACEOF
5414cat >>$CONFIG_STATUS <<\_ACEOF
5415
5416#
5417# CONFIG_COMMANDS section.
5418#
5419for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
5420  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
5421  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
5422  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
5423$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5424         X"$ac_dest" : 'X\(//\)[^/]' \| \
5425         X"$ac_dest" : 'X\(//\)$' \| \
5426         X"$ac_dest" : 'X\(/\)' \| \
5427         .     : '\(.\)' 2>/dev/null ||
5428echo X"$ac_dest" |
5429    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5430  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5431  	  /^X\(\/\/\)$/{ s//\1/; q; }
5432  	  /^X\(\/\).*/{ s//\1/; q; }
5433  	  s/.*/./; q'`
5434  ac_builddir=.
5435
5436if test "$ac_dir" != .; then
5437  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5438  # A "../" for each directory in $ac_dir_suffix.
5439  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5440else
5441  ac_dir_suffix= ac_top_builddir=
5442fi
5443
5444case $srcdir in
5445  .)  # No --srcdir option.  We are building in place.
5446    ac_srcdir=.
5447    if test -z "$ac_top_builddir"; then
5448       ac_top_srcdir=.
5449    else
5450       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5451    fi ;;
5452  [\\/]* | ?:[\\/]* )  # Absolute path.
5453    ac_srcdir=$srcdir$ac_dir_suffix;
5454    ac_top_srcdir=$srcdir ;;
5455  *) # Relative path.
5456    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5457    ac_top_srcdir=$ac_top_builddir$srcdir ;;
5458esac
5459# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
5460# absolute.
5461ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
5462ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
5463ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
5464ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
5465
5466
5467  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
5468echo "$as_me: executing $ac_dest commands" >&6;}
5469  case $ac_dest in
5470    default-1 )
5471test x"$AMDEP_TRUE" != x"" ||
5472for mf in $CONFIG_FILES; do
5473  case "$mf" in
5474  Makefile) dirpart=.;;
5475  */Makefile) dirpart=`echo "$mf" | sed -e 's|/[^/]*$||'`;;
5476  *) continue;;
5477  esac
5478  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
5479  # Extract the definition of DEP_FILES from the Makefile without
5480  # running `make'.
5481  DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
5482  test -z "$DEPDIR" && continue
5483  # When using ansi2knr, U may be empty or an underscore; expand it
5484  U=`sed -n -e '/^U = / s///p' < "$mf"`
5485  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
5486  # We invoke sed twice because it is the simplest approach to
5487  # changing $(DEPDIR) to its actual value in the expansion.
5488  for file in `sed -n -e '
5489    /^DEP_FILES = .*\\\\$/ {
5490      s/^DEP_FILES = //
5491      :loop
5492	s/\\\\$//
5493	p
5494	n
5495	/\\\\$/ b loop
5496      p
5497    }
5498    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
5499       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
5500    # Make sure the directory exists.
5501    test -f "$dirpart/$file" && continue
5502    fdir=`echo "$file" | sed -e 's|/[^/]*$||'`
5503    $ac_aux_dir/mkinstalldirs "$dirpart/$fdir" > /dev/null 2>&1
5504    # echo "creating $dirpart/$file"
5505    echo '# dummy' > "$dirpart/$file"
5506  done
5507done
5508 ;;
5509  esac
5510done
5511_ACEOF
5512
5513cat >>$CONFIG_STATUS <<\_ACEOF
5514
5515{ (exit 0); exit 0; }
5516_ACEOF
5517chmod +x $CONFIG_STATUS
5518ac_clean_files=$ac_clean_files_save
5519
5520
5521# configure is writing to config.log, and then calls config.status.
5522# config.status does its own redirection, appending to config.log.
5523# Unfortunately, on DOS this fails, as config.log is still kept open
5524# by configure, so config.status won't be able to write to it; its
5525# output is simply discarded.  So we exec the FD to /dev/null,
5526# effectively closing config.log, so it can be properly (re)opened and
5527# appended to by config.status.  When coming back to configure, we
5528# need to make the FD available again.
5529if test "$no_create" != yes; then
5530  ac_cs_success=:
5531  exec 5>/dev/null
5532  $SHELL $CONFIG_STATUS || ac_cs_success=false
5533  exec 5>>config.log
5534  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5535  # would make configure fail if this is the last instruction.
5536  $ac_cs_success || { (exit 1); exit 1; }
5537fi
5538
5539