source: git/dyn_modules/configure @ ba5e9e

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