source: trunk/configure @ 498

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

added checks for matlab's mex compiler and octave's mkoctfile
added hooks for mex and mkoctfile inside src's makefile

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