source: trunk/configure @ 497

Last change on this file since 497 was 497, checked in by dkearney, 13 years ago

added checks to configure.in to find where python and perl live,
added .in files for python and perl build files
configure now builds perl/Makefile.PL and python/setup.py and fits
it with the correct values needed to build and install the module
in the correct directory, where it will live in the rappture distribution.
there had been talk of using env variables to point python and perl
to where these modules live, so that is the current line of thinking.
added queue module for python. the Rappture.queue module's purpose
is to make it easy to send a job to the pbs and condor queues and
track the job using rappture. pbs is kinda complete, condor is not
complete and is still being worked on. the signalHandler and tools
python modules came from left over code that all python rappture
applications might want to include to make the developers life
a little more enjoyable.

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