source: trunk/configure @ 512

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

made changes to the build system for the rappture package and added a few automake necessary files. also demo.bash was added to the list of files tha
t are automatically generated.

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