root/branches/pgrouting-light/configure

Revision 25, 111.9 KB (checked in by anton, 3 years ago)

light and extra branches

  • Property svn:executable set to *
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59.
4#
5# Copyright (C) 2003 Free Software Foundation, Inc.
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
8## --------------------- ##
9## M4sh Initialization.  ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14  emulate sh
15  NULLCMD=:
16  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17  # is contrary to our usage.  Disable this feature.
18  alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20  set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26  as_unset=unset
27else
28  as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42  LC_TELEPHONE LC_TIME
43do
44  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45    eval $as_var=C; export $as_var
46  else
47    $as_unset $as_var
48  fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53  as_expr=expr
54else
55  as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59  as_basename=basename
60else
61  as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68         X"$0" : 'X\(//\)$' \| \
69         X"$0" : 'X\(/\)$' \| \
70         .     : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73          /^X\/\(\/\/\)$/{ s//\1/; q; }
74          /^X\/\(\/\).*/{ s//\1/; q; }
75          s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88  echo "#! /bin/sh" >conf$$.sh
89  echo  "exit 0"   >>conf$$.sh
90  chmod +x conf$$.sh
91  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92    PATH_SEPARATOR=';'
93  else
94    PATH_SEPARATOR=:
95  fi
96  rm -f conf$$.sh
97fi
98
99
100  as_lineno_1=$LINENO
101  as_lineno_2=$LINENO
102  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103  test "x$as_lineno_1" != "x$as_lineno_2" &&
104  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105  # Find who we are.  Look in the path if we contain no path at all
106  # relative or not.
107  case $0 in
108    *[\\/]* ) as_myself=$0 ;;
109    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112  IFS=$as_save_IFS
113  test -z "$as_dir" && as_dir=.
114  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117       ;;
118  esac
119  # We did not find ourselves, most probably we were run as `sh COMMAND'
120  # in which case we are not to be found in the path.
121  if test "x$as_myself" = x; then
122    as_myself=$0
123  fi
124  if test ! -f "$as_myself"; then
125    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126   { (exit 1); exit 1; }; }
127  fi
128  case $CONFIG_SHELL in
129  '')
130    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133  IFS=$as_save_IFS
134  test -z "$as_dir" && as_dir=.
135  for as_base in sh bash ksh sh5; do
136         case $as_dir in
137         /*)
138           if ("$as_dir/$as_base" -c '
139  as_lineno_1=$LINENO
140  as_lineno_2=$LINENO
141  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142  test "x$as_lineno_1" != "x$as_lineno_2" &&
143  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146             CONFIG_SHELL=$as_dir/$as_base
147             export CONFIG_SHELL
148             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149           fi;;
150         esac
151       done
152done
153;;
154  esac
155
156  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157  # uniformly replaced by the line number.  The first 'sed' inserts a
158  # line-number line before each line; the second 'sed' does the real
159  # work.  The second script uses 'N' to pair each line-number line
160  # with the numbered line, and appends trailing '-' during
161  # substitution so that $LINENO is not a special case at line end.
162  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164  sed '=' <$as_myself |
165    sed '
166      N
167      s,$,-,
168      : loop
169      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170      t loop
171      s,-$,,
172      s,^['$as_cr_digits']*\n,,
173    ' >$as_me.lineno &&
174  chmod +x $as_me.lineno ||
175    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176   { (exit 1); exit 1; }; }
177
178  # Don't try to exec as it changes $[0], causing all sort of problems
179  # (the dirname of $[0] is not the place where we might find the
180  # original and so on.  Autoconf is especially sensible to this).
181  . ./$as_me.lineno
182  # Exit status is that of the last command.
183  exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188  *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T='      ' ;;
190  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195  as_expr=expr
196else
197  as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203  # We could just check for DJGPP; but this test a) works b) is more generic
204  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205  if test -f conf$$.exe; then
206    # Don't use ln at all; we don't have any links
207    as_ln_s='cp -p'
208  else
209    as_ln_s='ln -s'
210  fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212  as_ln_s=ln
213else
214  as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219  as_mkdir_p=:
220else
221  test -d ./-p && rmdir ./-p
222  as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS="   $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243
244# Name of the host.
245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246# so uname gets run too.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249exec 6>&1
250
251#
252# Initializations.
253#
254ac_default_prefix=/usr/local
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${CONFIG_SHELL-/bin/sh}
261
262# Maximum number of lines to put in a shell here document.
263# This variable seems obsolete.  It should probably be removed, and
264# only ac_max_sed_lines should be used.
265: ${ac_max_here_lines=38}
266
267# Identity of this package.
268PACKAGE_NAME=
269PACKAGE_TARNAME=
270PACKAGE_VERSION=
271PACKAGE_STRING=
272PACKAGE_BUGREPORT=
273
274ac_unique_file="Makefile.in"
275ac_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 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP EGREP BOOST_DIR LIBOBJS LTLIBOBJS'
276ac_subst_files=''
277
278# Initialize some variables set by options.
279ac_init_help=
280ac_init_version=false
281# The variables have the same names as the options, with
282# dashes changed to underlines.
283cache_file=/dev/null
284exec_prefix=NONE
285no_create=
286no_recursion=
287prefix=NONE
288program_prefix=NONE
289program_suffix=NONE
290program_transform_name=s,x,x,
291silent=
292site=
293srcdir=
294verbose=
295x_includes=NONE
296x_libraries=NONE
297
298# Installation directory options.
299# These are left unexpanded so users can "make install exec_prefix=/foo"
300# and all the variables that are supposed to be based on exec_prefix
301# by default will actually change.
302# Use braces instead of parens because sh, perl, etc. also accept them.
303bindir='${exec_prefix}/bin'
304sbindir='${exec_prefix}/sbin'
305libexecdir='${exec_prefix}/libexec'
306datadir='${prefix}/share'
307sysconfdir='${prefix}/etc'
308sharedstatedir='${prefix}/com'
309localstatedir='${prefix}/var'
310libdir='${exec_prefix}/lib'
311includedir='${prefix}/include'
312oldincludedir='/usr/include'
313infodir='${prefix}/info'
314mandir='${prefix}/man'
315
316ac_prev=
317for ac_option
318do
319  # If the previous option needs an argument, assign it.
320  if test -n "$ac_prev"; then
321    eval "$ac_prev=\$ac_option"
322    ac_prev=
323    continue
324  fi
325
326  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
327
328  # Accept the important Cygnus configure options, so we can diagnose typos.
329
330  case $ac_option in
331
332  -bindir | --bindir | --bindi | --bind | --bin | --bi)
333    ac_prev=bindir ;;
334  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
335    bindir=$ac_optarg ;;
336
337  -build | --build | --buil | --bui | --bu)
338    ac_prev=build_alias ;;
339  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
340    build_alias=$ac_optarg ;;
341
342  -cache-file | --cache-file | --cache-fil | --cache-fi \
343  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
344    ac_prev=cache_file ;;
345  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
346  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
347    cache_file=$ac_optarg ;;
348
349  --config-cache | -C)
350    cache_file=config.cache ;;
351
352  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
353    ac_prev=datadir ;;
354  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
355  | --da=*)
356    datadir=$ac_optarg ;;
357
358  -disable-* | --disable-*)
359    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
360    # Reject names that are not valid shell variable names.
361    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
362      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
363   { (exit 1); exit 1; }; }
364    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
365    eval "enable_$ac_feature=no" ;;
366
367  -enable-* | --enable-*)
368    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
369    # Reject names that are not valid shell variable names.
370    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
371      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
372   { (exit 1); exit 1; }; }
373    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
374    case $ac_option in
375      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
376      *) ac_optarg=yes ;;
377    esac
378    eval "enable_$ac_feature='$ac_optarg'" ;;
379
380  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
381  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
382  | --exec | --exe | --ex)
383    ac_prev=exec_prefix ;;
384  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
385  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
386  | --exec=* | --exe=* | --ex=*)
387    exec_prefix=$ac_optarg ;;
388
389  -gas | --gas | --ga | --g)
390    # Obsolete; use --with-gas.
391    with_gas=yes ;;
392
393  -help | --help | --hel | --he | -h)
394    ac_init_help=long ;;
395  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
396    ac_init_help=recursive ;;
397  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
398    ac_init_help=short ;;
399
400  -host | --host | --hos | --ho)
401    ac_prev=host_alias ;;
402  -host=* | --host=* | --hos=* | --ho=*)
403    host_alias=$ac_optarg ;;
404
405  -includedir | --includedir | --includedi | --included | --include \
406  | --includ | --inclu | --incl | --inc)
407    ac_prev=includedir ;;
408  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
409  | --includ=* | --inclu=* | --incl=* | --inc=*)
410    includedir=$ac_optarg ;;
411
412  -infodir | --infodir | --infodi | --infod | --info | --inf)
413    ac_prev=infodir ;;
414  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
415    infodir=$ac_optarg ;;
416
417  -libdir | --libdir | --libdi | --libd)
418    ac_prev=libdir ;;
419  -libdir=* | --libdir=* | --libdi=* | --libd=*)
420    libdir=$ac_optarg ;;
421
422  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
423  | --libexe | --libex | --libe)
424    ac_prev=libexecdir ;;
425  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
426  | --libexe=* | --libex=* | --libe=*)
427    libexecdir=$ac_optarg ;;
428
429  -localstatedir | --localstatedir | --localstatedi | --localstated \
430  | --localstate | --localstat | --localsta | --localst \
431  | --locals | --local | --loca | --loc | --lo)
432    ac_prev=localstatedir ;;
433  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
434  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
435  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
436    localstatedir=$ac_optarg ;;
437
438  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
439    ac_prev=mandir ;;
440  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
441    mandir=$ac_optarg ;;
442
443  -nfp | --nfp | --nf)
444    # Obsolete; use --without-fp.
445    with_fp=no ;;
446
447  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
448  | --no-cr | --no-c | -n)
449    no_create=yes ;;
450
451  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
452  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
453    no_recursion=yes ;;
454
455  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
456  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
457  | --oldin | --oldi | --old | --ol | --o)
458    ac_prev=oldincludedir ;;
459  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
460  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
461  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
462    oldincludedir=$ac_optarg ;;
463
464  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
465    ac_prev=prefix ;;
466  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
467    prefix=$ac_optarg ;;
468
469  -program-prefix | --program-prefix | --program-prefi | --program-pref \
470  | --program-pre | --program-pr | --program-p)
471    ac_prev=program_prefix ;;
472  -program-prefix=* | --program-prefix=* | --program-prefi=* \
473  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
474    program_prefix=$ac_optarg ;;
475
476  -program-suffix | --program-suffix | --program-suffi | --program-suff \
477  | --program-suf | --program-su | --program-s)
478    ac_prev=program_suffix ;;
479  -program-suffix=* | --program-suffix=* | --program-suffi=* \
480  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
481    program_suffix=$ac_optarg ;;
482
483  -program-transform-name | --program-transform-name \
484  | --program-transform-nam | --program-transform-na \
485  | --program-transform-n | --program-transform- \
486  | --program-transform | --program-transfor \
487  | --program-transfo | --program-transf \
488  | --program-trans | --program-tran \
489  | --progr-tra | --program-tr | --program-t)
490    ac_prev=program_transform_name ;;
491  -program-transform-name=* | --program-transform-name=* \
492  | --program-transform-nam=* | --program-transform-na=* \
493  | --program-transform-n=* | --program-transform-=* \
494  | --program-transform=* | --program-transfor=* \
495  | --program-transfo=* | --program-transf=* \
496  | --program-trans=* | --program-tran=* \
497  | --progr-tra=* | --program-tr=* | --program-t=*)
498    program_transform_name=$ac_optarg ;;
499
500  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
501  | -silent | --silent | --silen | --sile | --sil)
502    silent=yes ;;
503
504  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
505    ac_prev=sbindir ;;
506  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
507  | --sbi=* | --sb=*)
508    sbindir=$ac_optarg ;;
509
510  -sharedstatedir | --sharedstatedir | --sharedstatedi \
511  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
512  | --sharedst | --shareds | --shared | --share | --shar \
513  | --sha | --sh)
514    ac_prev=sharedstatedir ;;
515  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
516  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
517  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
518  | --sha=* | --sh=*)
519    sharedstatedir=$ac_optarg ;;
520
521  -site | --site | --sit)
522    ac_prev=site ;;
523  -site=* | --site=* | --sit=*)
524    site=$ac_optarg ;;
525
526  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
527    ac_prev=srcdir ;;
528  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
529    srcdir=$ac_optarg ;;
530
531  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
532  | --syscon | --sysco | --sysc | --sys | --sy)
533    ac_prev=sysconfdir ;;
534  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
535  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
536    sysconfdir=$ac_optarg ;;
537
538  -target | --target | --targe | --targ | --tar | --ta | --t)
539    ac_prev=target_alias ;;
540  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
541    target_alias=$ac_optarg ;;
542
543  -v | -verbose | --verbose | --verbos | --verbo | --verb)
544    verbose=yes ;;
545
546  -version | --version | --versio | --versi | --vers | -V)
547    ac_init_version=: ;;
548
549  -with-* | --with-*)
550    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
551    # Reject names that are not valid shell variable names.
552    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
553      { echo "$as_me: error: invalid package name: $ac_package" >&2
554   { (exit 1); exit 1; }; }
555    ac_package=`echo $ac_package| sed 's/-/_/g'`
556    case $ac_option in
557      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
558      *) ac_optarg=yes ;;
559    esac
560    eval "with_$ac_package='$ac_optarg'" ;;
561
562  -without-* | --without-*)
563    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
564    # Reject names that are not valid shell variable names.
565    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566      { echo "$as_me: error: invalid package name: $ac_package" >&2
567   { (exit 1); exit 1; }; }
568    ac_package=`echo $ac_package | sed 's/-/_/g'`
569    eval "with_$ac_package=no" ;;
570
571  --x)
572    # Obsolete; use --with-x.
573    with_x=yes ;;
574
575  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
576  | --x-incl | --x-inc | --x-in | --x-i)
577    ac_prev=x_includes ;;
578  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
579  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
580    x_includes=$ac_optarg ;;
581
582  -x-libraries | --x-libraries | --x-librarie | --x-librari \
583  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
584    ac_prev=x_libraries ;;
585  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
586  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
587    x_libraries=$ac_optarg ;;
588
589  -*) { echo "$as_me: error: unrecognized option: $ac_option
590Try \`$0 --help' for more information." >&2
591   { (exit 1); exit 1; }; }
592    ;;
593
594  *=*)
595    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
596    # Reject names that are not valid shell variable names.
597    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
598      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
599   { (exit 1); exit 1; }; }
600    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
601    eval "$ac_envvar='$ac_optarg'"
602    export $ac_envvar ;;
603
604  *)
605    # FIXME: should be removed in autoconf 3.0.
606    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
607    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
608      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
609    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
610    ;;
611
612  esac
613done
614
615if test -n "$ac_prev"; then
616  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
617  { echo "$as_me: error: missing argument to $ac_option" >&2
618   { (exit 1); exit 1; }; }
619fi
620
621# Be sure to have absolute paths.
622for ac_var in exec_prefix prefix
623do
624  eval ac_val=$`echo $ac_var`
625  case $ac_val in
626    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
627    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
628   { (exit 1); exit 1; }; };;
629  esac
630done
631
632# Be sure to have absolute paths.
633for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
634              localstatedir libdir includedir oldincludedir infodir mandir
635do
636  eval ac_val=$`echo $ac_var`
637  case $ac_val in
638    [\\/$]* | ?:[\\/]* ) ;;
639    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
640   { (exit 1); exit 1; }; };;
641  esac
642done
643
644# There might be people who depend on the old broken behavior: `$host'
645# used to hold the argument of --host etc.
646# FIXME: To remove some day.
647build=$build_alias
648host=$host_alias
649target=$target_alias
650
651# FIXME: To remove some day.
652if test "x$host_alias" != x; then
653  if test "x$build_alias" = x; then
654    cross_compiling=maybe
655    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
656    If a cross compiler is detected then cross compile mode will be used." >&2
657  elif test "x$build_alias" != "x$host_alias"; then
658    cross_compiling=yes
659  fi
660fi
661
662ac_tool_prefix=
663test -n "$host_alias" && ac_tool_prefix=$host_alias-
664
665test "$silent" = yes && exec 6>/dev/null
666
667
668# Find the source files, if location was not specified.
669if test -z "$srcdir"; then
670  ac_srcdir_defaulted=yes
671  # Try the directory containing this script, then its parent.
672  ac_confdir=`(dirname "$0") 2>/dev/null ||
673$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
674         X"$0" : 'X\(//\)[^/]' \| \
675         X"$0" : 'X\(//\)$' \| \
676         X"$0" : 'X\(/\)' \| \
677         .     : '\(.\)' 2>/dev/null ||
678echo X"$0" |
679    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
680          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
681          /^X\(\/\/\)$/{ s//\1/; q; }
682          /^X\(\/\).*/{ s//\1/; q; }
683          s/.*/./; q'`
684  srcdir=$ac_confdir
685  if test ! -r $srcdir/$ac_unique_file; then
686    srcdir=..
687  fi
688else
689  ac_srcdir_defaulted=no
690fi
691if test ! -r $srcdir/$ac_unique_file; then
692  if test "$ac_srcdir_defaulted" = yes; then
693    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
694   { (exit 1); exit 1; }; }
695  else
696    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
697   { (exit 1); exit 1; }; }
698  fi
699fi
700(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
701  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
702   { (exit 1); exit 1; }; }
703srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
704ac_env_build_alias_set=${build_alias+set}
705ac_env_build_alias_value=$build_alias
706ac_cv_env_build_alias_set=${build_alias+set}
707ac_cv_env_build_alias_value=$build_alias
708ac_env_host_alias_set=${host_alias+set}
709ac_env_host_alias_value=$host_alias
710ac_cv_env_host_alias_set=${host_alias+set}
711ac_cv_env_host_alias_value=$host_alias
712ac_env_target_alias_set=${target_alias+set}
713ac_env_target_alias_value=$target_alias
714ac_cv_env_target_alias_set=${target_alias+set}
715ac_cv_env_target_alias_value=$target_alias
716ac_env_CC_set=${CC+set}
717ac_env_CC_value=$CC
718ac_cv_env_CC_set=${CC+set}
719ac_cv_env_CC_value=$CC
720ac_env_CFLAGS_set=${CFLAGS+set}
721ac_env_CFLAGS_value=$CFLAGS
722ac_cv_env_CFLAGS_set=${CFLAGS+set}
723ac_cv_env_CFLAGS_value=$CFLAGS
724ac_env_LDFLAGS_set=${LDFLAGS+set}
725ac_env_LDFLAGS_value=$LDFLAGS
726ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
727ac_cv_env_LDFLAGS_value=$LDFLAGS
728ac_env_CPPFLAGS_set=${CPPFLAGS+set}
729ac_env_CPPFLAGS_value=$CPPFLAGS
730ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
731ac_cv_env_CPPFLAGS_value=$CPPFLAGS
732ac_env_CXX_set=${CXX+set}
733ac_env_CXX_value=$CXX
734ac_cv_env_CXX_set=${CXX+set}
735ac_cv_env_CXX_value=$CXX
736ac_env_CXXFLAGS_set=${CXXFLAGS+set}
737ac_env_CXXFLAGS_value=$CXXFLAGS
738ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
739ac_cv_env_CXXFLAGS_value=$CXXFLAGS
740ac_env_CPP_set=${CPP+set}
741ac_env_CPP_value=$CPP
742ac_cv_env_CPP_set=${CPP+set}
743ac_cv_env_CPP_value=$CPP
744
745#
746# Report the --help message.
747#
748if test "$ac_init_help" = "long"; then
749  # Omit some internal or obsolete options to make the list less imposing.
750  # This message is too long to be a string in the A/UX 3.1 sh.
751  cat <<_ACEOF
752\`configure' configures this package to adapt to many kinds of systems.
753
754Usage: $0 [OPTION]... [VAR=VALUE]...
755
756To assign environment variables (e.g., CC, CFLAGS...), specify them as
757VAR=VALUE.  See below for descriptions of some of the useful variables.
758
759Defaults for the options are specified in brackets.
760
761Configuration:
762  -h, --help              display this help and exit
763      --help=short        display options specific to this package
764      --help=recursive    display the short help of all the included packages
765  -V, --version           display version information and exit
766  -q, --quiet, --silent   do not print \`checking...' messages
767      --cache-file=FILE   cache test results in FILE [disabled]
768  -C, --config-cache      alias for \`--cache-file=config.cache'
769  -n, --no-create         do not create output files
770      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
771
772_ACEOF
773
774  cat <<_ACEOF
775Installation directories:
776  --prefix=PREFIX         install architecture-independent files in PREFIX
777                          [$ac_default_prefix]
778  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
779                          [PREFIX]
780
781By default, \`make install' will install all the files in
782\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
783an installation prefix other than \`$ac_default_prefix' using \`--prefix',
784for instance \`--prefix=\$HOME'.
785
786For better control, use the options below.
787
788Fine tuning of the installation directories:
789  --bindir=DIR           user executables [EPREFIX/bin]
790  --sbindir=DIR          system admin executables [EPREFIX/sbin]
791  --libexecdir=DIR       program executables [EPREFIX/libexec]
792  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
793  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
794  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
795  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
796  --libdir=DIR           object code libraries [EPREFIX/lib]
797  --includedir=DIR       C header files [PREFIX/include]
798  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
799  --infodir=DIR          info documentation [PREFIX/info]
800  --mandir=DIR           man documentation [PREFIX/man]
801_ACEOF
802
803  cat <<\_ACEOF
804_ACEOF
805fi
806
807if test -n "$ac_init_help"; then
808
809  cat <<\_ACEOF
810
811Optional Packages:
812  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
813  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
814  --with-boost= DIR  Specify where boost is located
815
816Some influential environment variables:
817  CC          C compiler command
818  CFLAGS      C compiler flags
819  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
820              nonstandard directory <lib dir>
821  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
822              headers in a nonstandard directory <include dir>
823  CXX         C++ compiler command
824  CXXFLAGS    C++ compiler flags
825  CPP         C preprocessor
826
827Use these variables to override the choices made by `configure' or to help
828it to find libraries and programs with nonstandard names/locations.
829
830_ACEOF
831fi
832
833if test "$ac_init_help" = "recursive"; then
834  # If there are subdirs, report their specific --help.
835  ac_popdir=`pwd`
836  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
837    test -d $ac_dir || continue
838    ac_builddir=.
839
840if test "$ac_dir" != .; then
841  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
842  # A "../" for each directory in $ac_dir_suffix.
843  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
844else
845  ac_dir_suffix= ac_top_builddir=
846fi
847
848case $srcdir in
849  .)  # No --srcdir option.  We are building in place.
850    ac_srcdir=.
851    if test -z "$ac_top_builddir"; then
852       ac_top_srcdir=.
853    else
854       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
855    fi ;;
856  [\\/]* | ?:[\\/]* )  # Absolute path.
857    ac_srcdir=$srcdir$ac_dir_suffix;
858    ac_top_srcdir=$srcdir ;;
859  *) # Relative path.
860    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
861    ac_top_srcdir=$ac_top_builddir$srcdir ;;
862esac
863
864# Do not use `cd foo && pwd` to compute absolute paths, because
865# the directories may not exist.
866case `pwd` in
867.) ac_abs_builddir="$ac_dir";;
868*)
869  case "$ac_dir" in
870  .) ac_abs_builddir=`pwd`;;
871  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
872  *) ac_abs_builddir=`pwd`/"$ac_dir";;
873  esac;;
874esac
875case $ac_abs_builddir in
876.) ac_abs_top_builddir=${ac_top_builddir}.;;
877*)
878  case ${ac_top_builddir}. in
879  .) ac_abs_top_builddir=$ac_abs_builddir;;
880  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
881  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
882  esac;;
883esac
884case $ac_abs_builddir in
885.) ac_abs_srcdir=$ac_srcdir;;
886*)
887  case $ac_srcdir in
888  .) ac_abs_srcdir=$ac_abs_builddir;;
889  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
890  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
891  esac;;
892esac
893case $ac_abs_builddir in
894.) ac_abs_top_srcdir=$ac_top_srcdir;;
895*)
896  case $ac_top_srcdir in
897  .) ac_abs_top_srcdir=$ac_abs_builddir;;
898  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
899  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
900  esac;;
901esac
902
903    cd $ac_dir
904    # Check for guested configure; otherwise get Cygnus style configure.
905    if test -f $ac_srcdir/configure.gnu; then
906      echo
907      $SHELL $ac_srcdir/configure.gnu  --help=recursive
908    elif test -f $ac_srcdir/configure; then
909      echo
910      $SHELL $ac_srcdir/configure  --help=recursive
911    elif test -f $ac_srcdir/configure.ac ||
912           test -f $ac_srcdir/configure.in; then
913      echo
914      $ac_configure --help
915    else
916      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
917    fi
918    cd $ac_popdir
919  done
920fi
921
922test -n "$ac_init_help" && exit 0
923if $ac_init_version; then
924  cat <<\_ACEOF
925
926Copyright (C) 2003 Free Software Foundation, Inc.
927This configure script is free software; the Free Software Foundation
928gives unlimited permission to copy, distribute and modify it.
929_ACEOF
930  exit 0
931fi
932exec 5>config.log
933cat >&5 <<_ACEOF
934This file contains any messages produced by compilers while
935running configure, to aid debugging if configure makes a mistake.
936
937It was created by $as_me, which was
938generated by GNU Autoconf 2.59.  Invocation command line was
939
940  $ $0 $@
941
942_ACEOF
943{
944cat <<_ASUNAME
945## --------- ##
946## Platform. ##
947## --------- ##
948
949hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
950uname -m = `(uname -m) 2>/dev/null || echo unknown`
951uname -r = `(uname -r) 2>/dev/null || echo unknown`
952uname -s = `(uname -s) 2>/dev/null || echo unknown`
953uname -v = `(uname -v) 2>/dev/null || echo unknown`
954
955/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
956/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
957
958/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
959/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
960/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
961hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
962/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
963/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
964/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
965
966_ASUNAME
967
968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
969for as_dir in $PATH
970do
971  IFS=$as_save_IFS
972  test -z "$as_dir" && as_dir=.
973  echo "PATH: $as_dir"
974done
975
976} >&5
977
978cat >&5 <<_ACEOF
979
980
981## ----------- ##
982## Core tests. ##
983## ----------- ##
984
985_ACEOF
986
987
988# Keep a trace of the command line.
989# Strip out --no-create and --no-recursion so they do not pile up.
990# Strip out --silent because we don't want to record it for future runs.
991# Also quote any args containing shell meta-characters.
992# Make two passes to allow for proper duplicate-argument suppression.
993ac_configure_args=
994ac_configure_args0=
995ac_configure_args1=
996ac_sep=
997ac_must_keep_next=false
998for ac_pass in 1 2
999do
1000  for ac_arg
1001  do
1002    case $ac_arg in
1003    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1004    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1005    | -silent | --silent | --silen | --sile | --sil)
1006      continue ;;
1007    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1008      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1009    esac
1010    case $ac_pass in
1011    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1012    2)
1013      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1014      if test $ac_must_keep_next = true; then
1015        ac_must_keep_next=false # Got value, back to normal.
1016      else
1017        case $ac_arg in
1018          *=* | --config-cache | -C | -disable-* | --disable-* \
1019          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1020          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1021          | -with-* | --with-* | -without-* | --without-* | --x)
1022            case "$ac_configure_args0 " in
1023              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1024            esac
1025            ;;
1026          -* ) ac_must_keep_next=true ;;
1027        esac
1028      fi
1029      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1030      # Get rid of the leading space.
1031      ac_sep=" "
1032      ;;
1033    esac
1034  done
1035done
1036$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1037$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1038
1039# When interrupted or exit'd, cleanup temporary files, and complete
1040# config.log.  We remove comments because anyway the quotes in there
1041# would cause problems or look ugly.
1042# WARNING: Be sure not to use single quotes in there, as some shells,
1043# such as our DU 5.0 friend, will then `close' the trap.
1044trap 'exit_status=$?
1045  # Save into config.log some information that might help in debugging.
1046  {
1047    echo
1048
1049    cat <<\_ASBOX
1050## ---------------- ##
1051## Cache variables. ##
1052## ---------------- ##
1053_ASBOX
1054    echo
1055    # The following way of writing the cache mishandles newlines in values,
1056{
1057  (set) 2>&1 |
1058    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1059    *ac_space=\ *)
1060      sed -n \
1061        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1062          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1063      ;;
1064    *)
1065      sed -n \
1066        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1067      ;;
1068    esac;
1069}
1070    echo
1071
1072    cat <<\_ASBOX
1073## ----------------- ##
1074## Output variables. ##
1075## ----------------- ##
1076_ASBOX
1077    echo
1078    for ac_var in $ac_subst_vars
1079    do
1080      eval ac_val=$`echo $ac_var`
1081      echo "$ac_var='"'"'$ac_val'"'"'"
1082    done | sort
1083    echo
1084
1085    if test -n "$ac_subst_files"; then
1086      cat <<\_ASBOX
1087## ------------- ##
1088## Output files. ##
1089## ------------- ##
1090_ASBOX
1091      echo
1092      for ac_var in $ac_subst_files
1093      do
1094        eval ac_val=$`echo $ac_var`
1095        echo "$ac_var='"'"'$ac_val'"'"'"
1096      done | sort
1097      echo
1098    fi
1099
1100    if test -s confdefs.h; then
1101      cat <<\_ASBOX
1102## ----------- ##
1103## confdefs.h. ##
1104## ----------- ##
1105_ASBOX
1106      echo
1107      sed "/^$/d" confdefs.h | sort
1108      echo
1109    fi
1110    test "$ac_signal" != 0 &&
1111      echo "$as_me: caught signal $ac_signal"
1112    echo "$as_me: exit $exit_status"
1113  } >&5
1114  rm -f core *.core &&
1115  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1116    exit $exit_status
1117     ' 0
1118for ac_signal in 1 2 13 15; do
1119  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1120done
1121ac_signal=0
1122
1123# confdefs.h avoids OS command line length limits that DEFS can exceed.
1124rm -rf conftest* confdefs.h
1125# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1126echo >confdefs.h
1127
1128# Predefined preprocessor variables.
1129
1130cat >>confdefs.h <<_ACEOF
1131#define PACKAGE_NAME "$PACKAGE_NAME"
1132_ACEOF
1133
1134
1135cat >>confdefs.h <<_ACEOF
1136#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1137_ACEOF
1138
1139
1140cat >>confdefs.h <<_ACEOF
1141#define PACKAGE_VERSION "$PACKAGE_VERSION"
1142_ACEOF
1143
1144
1145cat >>confdefs.h <<_ACEOF
1146#define PACKAGE_STRING "$PACKAGE_STRING"
1147_ACEOF
1148
1149
1150cat >>confdefs.h <<_ACEOF
1151#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1152_ACEOF
1153
1154
1155# Let the site file select an alternate cache file if it wants to.
1156# Prefer explicitly selected file to automatically selected ones.
1157if test -z "$CONFIG_SITE"; then
1158  if test "x$prefix" != xNONE; then
1159    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1160  else
1161    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1162  fi
1163fi
1164for ac_site_file in $CONFIG_SITE; do
1165  if test -r "$ac_site_file"; then
1166    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1167echo "$as_me: loading site script $ac_site_file" >&6;}
1168    sed 's/^/| /' "$ac_site_file" >&5
1169    . "$ac_site_file"
1170  fi
1171done
1172
1173if test -r "$cache_file"; then
1174  # Some versions of bash will fail to source /dev/null (special
1175  # files actually), so we avoid doing that.
1176  if test -f "$cache_file"; then
1177    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1178echo "$as_me: loading cache $cache_file" >&6;}
1179    case $cache_file in
1180      [\\/]* | ?:[\\/]* ) . $cache_file;;
1181      *)                      . ./$cache_file;;
1182    esac
1183  fi
1184else
1185  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1186echo "$as_me: creating cache $cache_file" >&6;}
1187  >$cache_file
1188fi
1189
1190# Check that the precious variables saved in the cache have kept the same
1191# value.
1192ac_cache_corrupted=false
1193for ac_var in `(set) 2>&1 |
1194               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1195  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1196  eval ac_new_set=\$ac_env_${ac_var}_set
1197  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1198  eval ac_new_val="\$ac_env_${ac_var}_value"
1199  case $ac_old_set,$ac_new_set in
1200    set,)
1201      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1202echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1203      ac_cache_corrupted=: ;;
1204    ,set)
1205      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1206echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1207      ac_cache_corrupted=: ;;
1208    ,);;
1209    *)
1210      if test "x$ac_old_val" != "x$ac_new_val"; then
1211        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1212echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1213        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1214echo "$as_me:   former value:  $ac_old_val" >&2;}
1215        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1216echo "$as_me:   current value: $ac_new_val" >&2;}
1217        ac_cache_corrupted=:
1218      fi;;
1219  esac
1220  # Pass precious variables to config.status.
1221  if test "$ac_new_set" = set; then
1222    case $ac_new_val in
1223    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1224      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1225    *) ac_arg=$ac_var=$ac_new_val ;;
1226    esac
1227    case " $ac_configure_args " in
1228      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1229      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1230    esac
1231  fi
1232done
1233if $ac_cache_corrupted; then
1234  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1235echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1236  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1237echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1238   { (exit 1); exit 1; }; }
1239fi
1240
1241ac_ext=c
1242ac_cpp='$CPP $CPPFLAGS'
1243ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1244ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1245ac_compiler_gnu=$ac_cv_c_compiler_gnu
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265ac_ext=c
1266ac_cpp='$CPP $CPPFLAGS'
1267ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1268ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1269ac_compiler_gnu=$ac_cv_c_compiler_gnu
1270if test -n "$ac_tool_prefix"; then
1271  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1272set dummy ${ac_tool_prefix}gcc; ac_word=$2
1273echo "$as_me:$LINENO: checking for $ac_word" >&5
1274echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1275if test "${ac_cv_prog_CC+set}" = set; then
1276  echo $ECHO_N "(cached) $ECHO_C" >&6
1277else
1278  if test -n "$CC"; then
1279  ac_cv_prog_CC="$CC" # Let the user override the test.
1280else
1281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1282for as_dir in $PATH
1283do
1284  IFS=$as_save_IFS
1285  test -z "$as_dir" && as_dir=.
1286  for ac_exec_ext in '' $ac_executable_extensions; do
1287  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1288    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1289    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1290    break 2
1291  fi
1292done
1293done
1294
1295fi
1296fi
1297CC=$ac_cv_prog_CC
1298if test -n "$CC"; then
1299  echo "$as_me:$LINENO: result: $CC" >&5
1300echo "${ECHO_T}$CC" >&6
1301else
1302  echo "$as_me:$LINENO: result: no" >&5
1303echo "${ECHO_T}no" >&6
1304fi
1305
1306fi
1307if test -z "$ac_cv_prog_CC"; then
1308  ac_ct_CC=$CC
1309  # Extract the first word of "gcc", so it can be a program name with args.
1310set dummy gcc; ac_word=$2
1311echo "$as_me:$LINENO: checking for $ac_word" >&5
1312echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1313if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1314  echo $ECHO_N "(cached) $ECHO_C" >&6
1315else
1316  if test -n "$ac_ct_CC"; then
1317  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1318else
1319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1320for as_dir in $PATH
1321do
1322  IFS=$as_save_IFS
1323  test -z "$as_dir" && as_dir=.
1324  for ac_exec_ext in '' $ac_executable_extensions; do
1325  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1326    ac_cv_prog_ac_ct_CC="gcc"
1327    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1328    break 2
1329  fi
1330done
1331done
1332
1333fi
1334fi
1335ac_ct_CC=$ac_cv_prog_ac_ct_CC
1336if test -n "$ac_ct_CC"; then
1337  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1338echo "${ECHO_T}$ac_ct_CC" >&6
1339else
1340  echo "$as_me:$LINENO: result: no" >&5
1341echo "${ECHO_T}no" >&6
1342fi
1343
1344  CC=$ac_ct_CC
1345else
1346  CC="$ac_cv_prog_CC"
1347fi
1348
1349if test -z "$CC"; then
1350  if test -n "$ac_tool_prefix"; then
1351  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1352set dummy ${ac_tool_prefix}cc; ac_word=$2
1353echo "$as_me:$LINENO: checking for $ac_word" >&5
1354echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1355if test "${ac_cv_prog_CC+set}" = set; then
1356  echo $ECHO_N "(cached) $ECHO_C" >&6
1357else
1358  if test -n "$CC"; then
1359  ac_cv_prog_CC="$CC" # Let the user override the test.
1360else
1361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1362for as_dir in $PATH
1363do
1364  IFS=$as_save_IFS
1365  test -z "$as_dir" && as_dir=.
1366  for ac_exec_ext in '' $ac_executable_extensions; do
1367  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1368    ac_cv_prog_CC="${ac_tool_prefix}cc"
1369    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1370    break 2
1371  fi
1372done
1373done
1374
1375fi
1376fi
1377CC=$ac_cv_prog_CC
1378if test -n "$CC"; then
1379  echo "$as_me:$LINENO: result: $CC" >&5
1380echo "${ECHO_T}$CC" >&6
1381else
1382  echo "$as_me:$LINENO: result: no" >&5
1383echo "${ECHO_T}no" >&6
1384fi
1385
1386fi
1387if test -z "$ac_cv_prog_CC"; then
1388  ac_ct_CC=$CC
1389  # Extract the first word of "cc", so it can be a program name with args.
1390set dummy cc; ac_word=$2
1391echo "$as_me:$LINENO: checking for $ac_word" >&5
1392echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1393if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1394  echo $ECHO_N "(cached) $ECHO_C" >&6
1395else
1396  if test -n "$ac_ct_CC"; then
1397  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1398else
1399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1400for as_dir in $PATH
1401do
1402  IFS=$as_save_IFS
1403  test -z "$as_dir" && as_dir=.
1404  for ac_exec_ext in '' $ac_executable_extensions; do
1405  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1406    ac_cv_prog_ac_ct_CC="cc"
1407    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1408    break 2
1409  fi
1410done
1411done
1412
1413fi
1414fi
1415ac_ct_CC=$ac_cv_prog_ac_ct_CC
1416if test -n "$ac_ct_CC"; then
1417  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1418echo "${ECHO_T}$ac_ct_CC" >&6
1419else
1420  echo "$as_me:$LINENO: result: no" >&5
1421echo "${ECHO_T}no" >&6
1422fi
1423
1424  CC=$ac_ct_CC
1425else
1426  CC="$ac_cv_prog_CC"
1427fi
1428
1429fi
1430if test -z "$CC"; then
1431  # Extract the first word of "cc", so it can be a program name with args.
1432set dummy cc; ac_word=$2
1433echo "$as_me:$LINENO: checking for $ac_word" >&5
1434echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1435if test "${ac_cv_prog_CC+set}" = set; then
1436  echo $ECHO_N "(cached) $ECHO_C" >&6
1437else
1438  if test -n "$CC"; then
1439  ac_cv_prog_CC="$CC" # Let the user override the test.
1440else
1441  ac_prog_rejected=no
1442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1443for as_dir in $PATH
1444do
1445  IFS=$as_save_IFS
1446  test -z "$as_dir" && as_dir=.
1447  for ac_exec_ext in '' $ac_executable_extensions; do
1448  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1449    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1450       ac_prog_rejected=yes
1451       continue
1452     fi
1453    ac_cv_prog_CC="cc"
1454    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1455    break 2
1456  fi
1457done
1458done
1459
1460if test $ac_prog_rejected = yes; then
1461  # We found a bogon in the path, so make sure we never use it.
1462  set dummy $ac_cv_prog_CC
1463  shift
1464  if test $# != 0; then
1465    # We chose a different compiler from the bogus one.
1466    # However, it has the same basename, so the bogon will be chosen
1467    # first if we set CC to just the basename; use the full file name.
1468    shift
1469    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1470  fi
1471fi
1472fi
1473fi
1474CC=$ac_cv_prog_CC
1475if test -n "$CC"; then
1476  echo "$as_me:$LINENO: result: $CC" >&5
1477echo "${ECHO_T}$CC" >&6
1478else
1479  echo "$as_me:$LINENO: result: no" >&5
1480echo "${ECHO_T}no" >&6
1481fi
1482
1483fi
1484if test -z "$CC"; then
1485  if test -n "$ac_tool_prefix"; then
1486  for ac_prog in cl
1487  do
1488    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1489set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1490echo "$as_me:$LINENO: checking for $ac_word" >&5
1491echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1492if test "${ac_cv_prog_CC+set}" = set; then
1493  echo $ECHO_N "(cached) $ECHO_C" >&6
1494else
1495  if test -n "$CC"; then
1496  ac_cv_prog_CC="$CC" # Let the user override the test.
1497else
1498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1499for as_dir in $PATH
1500do
1501  IFS=$as_save_IFS
1502  test -z "$as_dir" && as_dir=.
1503  for ac_exec_ext in '' $ac_executable_extensions; do
1504  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1505    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1506    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1507    break 2
1508  fi
1509done
1510done
1511
1512fi
1513fi
1514CC=$ac_cv_prog_CC
1515if test -n "$CC"; then
1516  echo "$as_me:$LINENO: result: $CC" >&5
1517echo "${ECHO_T}$CC" >&6
1518else
1519  echo "$as_me:$LINENO: result: no" >&5
1520echo "${ECHO_T}no" >&6
1521fi
1522
1523    test -n "$CC" && break
1524  done
1525fi
1526if test -z "$CC"; then
1527  ac_ct_CC=$CC
1528  for ac_prog in cl
1529do
1530  # Extract the first word of "$ac_prog", so it can be a program name with args.
1531set dummy $ac_prog; ac_word=$2
1532echo "$as_me:$LINENO: checking for $ac_word" >&5
1533echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1534if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1535  echo $ECHO_N "(cached) $ECHO_C" >&6
1536else
1537  if test -n "$ac_ct_CC"; then
1538  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1539else
1540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1541for as_dir in $PATH
1542do
1543  IFS=$as_save_IFS
1544  test -z "$as_dir" && as_dir=.
1545  for ac_exec_ext in '' $ac_executable_extensions; do
1546  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1547    ac_cv_prog_ac_ct_CC="$ac_prog"
1548    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1549    break 2
1550  fi
1551done
1552done
1553
1554fi
1555fi
1556ac_ct_CC=$ac_cv_prog_ac_ct_CC
1557if test -n "$ac_ct_CC"; then
1558  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1559echo "${ECHO_T}$ac_ct_CC" >&6
1560else
1561  echo "$as_me:$LINENO: result: no" >&5
1562echo "${ECHO_T}no" >&6
1563fi
1564
1565  test -n "$ac_ct_CC" && break
1566done
1567
1568  CC=$ac_ct_CC
1569fi
1570
1571fi
1572
1573
1574test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1575See \`config.log' for more details." >&5
1576echo "$as_me: error: no acceptable C compiler found in \$PATH
1577See \`config.log' for more details." >&2;}
1578   { (exit 1); exit 1; }; }
1579
1580# Provide some information about the compiler.
1581echo "$as_me:$LINENO:" \
1582     "checking for C compiler version" >&5
1583ac_compiler=`set X $ac_compile; echo $2`
1584{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1585  (eval $ac_compiler --version </dev/null >&5) 2>&5
1586  ac_status=$?
1587  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1588  (exit $ac_status); }
1589{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1590  (eval $ac_compiler -v </dev/null >&5) 2>&5
1591  ac_status=$?
1592  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1593  (exit $ac_status); }
1594{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1595  (eval $ac_compiler -V </dev/null >&5) 2>&5
1596  ac_status=$?
1597  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1598  (exit $ac_status); }
1599
1600cat >conftest.$ac_ext <<_ACEOF
1601/* confdefs.h.  */
1602_ACEOF
1603cat confdefs.h >>conftest.$ac_ext
1604cat >>conftest.$ac_ext <<_ACEOF
1605/* end confdefs.h.  */
1606
1607int
1608main ()
1609{
1610
1611  ;
1612  return 0;
1613}
1614_ACEOF
1615ac_clean_files_save=$ac_clean_files
1616ac_clean_files="$ac_clean_files a.out a.exe b.out"
1617# Try to create an executable without -o first, disregard a.out.
1618# It will help us diagnose broken compilers, and finding out an intuition
1619# of exeext.
1620echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1621echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1622ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1623if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1624  (eval $ac_link_default) 2>&5
1625  ac_status=$?
1626  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1627  (exit $ac_status); }; then
1628  # Find the output, starting from the most likely.  This scheme is
1629# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1630# resort.
1631
1632# Be careful to initialize this variable, since it used to be cached.
1633# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1634ac_cv_exeext=
1635# b.out is created by i960 compilers.
1636for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1637do
1638  test -f "$ac_file" || continue
1639  case $ac_file in
1640    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1641        ;;
1642    conftest.$ac_ext )
1643        # This is the source file.
1644        ;;
1645    [ab].out )
1646        # We found the default executable, but exeext='' is most
1647        # certainly right.
1648        break;;
1649    *.* )
1650        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1651        # FIXME: I believe we export ac_cv_exeext for Libtool,
1652        # but it would be cool to find out if it's true.  Does anybody
1653        # maintain Libtool? --akim.
1654        export ac_cv_exeext
1655        break;;
1656    * )
1657        break;;
1658  esac
1659done
1660else
1661  echo "$as_me: failed program was:" >&5
1662sed 's/^/| /' conftest.$ac_ext >&5
1663
1664{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1665See \`config.log' for more details." >&5
1666echo "$as_me: error: C compiler cannot create executables
1667See \`config.log' for more details." >&2;}
1668   { (exit 77); exit 77; }; }
1669fi
1670
1671ac_exeext=$ac_cv_exeext
1672echo "$as_me:$LINENO: result: $ac_file" >&5
1673echo "${ECHO_T}$ac_file" >&6
1674
1675# Check the compiler produces executables we can run.  If not, either
1676# the compiler is broken, or we cross compile.
1677echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1678echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1679# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1680# If not cross compiling, check that we can run a simple program.
1681if test "$cross_compiling" != yes; then
1682  if { ac_try='./$ac_file'
1683  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1684  (eval $ac_try) 2>&5
1685  ac_status=$?
1686  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1687  (exit $ac_status); }; }; then
1688    cross_compiling=no
1689  else
1690    if test "$cross_compiling" = maybe; then
1691        cross_compiling=yes
1692    else
1693        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1694If you meant to cross compile, use \`--host'.
1695See \`config.log' for more details." >&5
1696echo "$as_me: error: cannot run C compiled programs.
1697If you meant to cross compile, use \`--host'.
1698See \`config.log' for more details." >&2;}
1699   { (exit 1); exit 1; }; }
1700    fi
1701  fi
1702fi
1703echo "$as_me:$LINENO: result: yes" >&5
1704echo "${ECHO_T}yes" >&6
1705
1706rm -f a.out a.exe conftest$ac_cv_exeext b.out
1707ac_clean_files=$ac_clean_files_save
1708# Check the compiler produces executables we can run.  If not, either
1709# the compiler is broken, or we cross compile.
1710echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1711echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1712echo "$as_me:$LINENO: result: $cross_compiling" >&5
1713echo "${ECHO_T}$cross_compiling" >&6
1714
1715echo "$as_me:$LINENO: checking for suffix of executables" >&5
1716echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1717if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1718  (eval $ac_link) 2>&5
1719  ac_status=$?
1720  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1721  (exit $ac_status); }; then
1722  # If both `conftest.exe' and `conftest' are `present' (well, observable)
1723# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1724# work properly (i.e., refer to `conftest.exe'), while it won't with
1725# `rm'.
1726for ac_file in conftest.exe conftest conftest.*; do
1727  test -f "$ac_file" || continue
1728  case $ac_file in
1729    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1730    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1731          export ac_cv_exeext
1732          break;;
1733    * ) break;;
1734  esac
1735done
1736else
1737  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1738See \`config.log' for more details." >&5
1739echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1740See \`config.log' for more details." >&2;}
1741   { (exit 1); exit 1; }; }
1742fi
1743
1744rm -f conftest$ac_cv_exeext
1745echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1746echo "${ECHO_T}$ac_cv_exeext" >&6
1747
1748rm -f conftest.$ac_ext
1749EXEEXT=$ac_cv_exeext
1750ac_exeext=$EXEEXT
1751echo "$as_me:$LINENO: checking for suffix of object files" >&5
1752echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1753if test "${ac_cv_objext+set}" = set; then
1754  echo $ECHO_N "(cached) $ECHO_C" >&6
1755else
1756  cat >conftest.$ac_ext <<_ACEOF
1757/* confdefs.h.  */
1758_ACEOF
1759cat confdefs.h >>conftest.$ac_ext
1760cat >>conftest.$ac_ext <<_ACEOF
1761/* end confdefs.h.  */
1762
1763int
1764main ()
1765{
1766
1767  ;
1768  return 0;
1769}
1770_ACEOF
1771rm -f conftest.o conftest.obj
1772if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1773  (eval $ac_compile) 2>&5
1774  ac_status=$?
1775  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1776  (exit $ac_status); }; then
1777  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1778  case $ac_file in
1779    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1780    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1781       break;;
1782  esac
1783done
1784else
1785  echo "$as_me: failed program was:" >&5
1786sed 's/^/| /' conftest.$ac_ext >&5
1787
1788{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1789See \`config.log' for more details." >&5
1790echo "$as_me: error: cannot compute suffix of object files: cannot compile
1791See \`config.log' for more details." >&2;}
1792   { (exit 1); exit 1; }; }
1793fi
1794
1795rm -f conftest.$ac_cv_objext conftest.$ac_ext
1796fi
1797echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1798echo "${ECHO_T}$ac_cv_objext" >&6
1799OBJEXT=$ac_cv_objext
1800ac_objext=$OBJEXT
1801echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1802echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1803if test "${ac_cv_c_compiler_gnu+set}" = set; then
1804  echo $ECHO_N "(cached) $ECHO_C" >&6
1805else
1806  cat >conftest.$ac_ext <<_ACEOF
1807/* confdefs.h.  */
1808_ACEOF
1809cat confdefs.h >>conftest.$ac_ext
1810cat >>conftest.$ac_ext <<_ACEOF
1811/* end confdefs.h.  */
1812
1813int
1814main ()
1815{
1816#ifndef __GNUC__
1817       choke me
1818#endif
1819
1820  ;
1821  return 0;
1822}
1823_ACEOF
1824rm -f conftest.$ac_objext
1825if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1826  (eval $ac_compile) 2>conftest.er1
1827  ac_status=$?
1828  grep -v '^ *+' conftest.er1 >conftest.err
1829  rm -f conftest.er1
1830  cat conftest.err >&5
1831  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1832  (exit $ac_status); } &&
1833         { ac_try='test -z "$ac_c_werror_flag"
1834                         || test ! -s conftest.err'
1835  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1836  (eval $ac_try) 2>&5
1837  ac_status=$?
1838  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1839  (exit $ac_status); }; } &&
1840         { ac_try='test -s conftest.$ac_objext'
1841  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1842  (eval $ac_try) 2>&5
1843  ac_status=$?
1844  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1845  (exit $ac_status); }; }; then
1846  ac_compiler_gnu=yes
1847else
1848  echo "$as_me: failed program was:" >&5
1849sed 's/^/| /' conftest.$ac_ext >&5
1850
1851ac_compiler_gnu=no
1852fi
1853rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1854ac_cv_c_compiler_gnu=$ac_compiler_gnu
1855
1856fi
1857echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1858echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1859GCC=`test $ac_compiler_gnu = yes && echo yes`
1860ac_test_CFLAGS=${CFLAGS+set}
1861ac_save_CFLAGS=$CFLAGS
1862CFLAGS="-g"
1863echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1864echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1865if test "${ac_cv_prog_cc_g+set}" = set; then
1866  echo $ECHO_N "(cached) $ECHO_C" >&6
1867else
1868  cat >conftest.$ac_ext <<_ACEOF
1869/* confdefs.h.  */
1870_ACEOF
1871cat confdefs.h >>conftest.$ac_ext
1872cat >>conftest.$ac_ext <<_ACEOF
1873/* end confdefs.h.  */
1874
1875int
1876main ()
1877{
1878
1879  ;
1880  return 0;
1881}
1882_ACEOF
1883rm -f conftest.$ac_objext
1884if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1885  (eval $ac_compile) 2>conftest.er1
1886  ac_status=$?
1887  grep -v '^ *+' conftest.er1 >conftest.err
1888  rm -f conftest.er1
1889  cat conftest.err >&5
1890  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1891  (exit $ac_status); } &&
1892         { ac_try='test -z "$ac_c_werror_flag"
1893                         || test ! -s conftest.err'
1894  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1895  (eval $ac_try) 2>&5
1896  ac_status=$?
1897  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1898  (exit $ac_status); }; } &&
1899         { ac_try='test -s conftest.$ac_objext'
1900  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1901  (eval $ac_try) 2>&5
1902  ac_status=$?
1903  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1904  (exit $ac_status); }; }; then
1905  ac_cv_prog_cc_g=yes
1906else
1907  echo "$as_me: failed program was:" >&5
1908sed 's/^/| /' conftest.$ac_ext >&5
1909
1910ac_cv_prog_cc_g=no
1911fi
1912rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1913fi
1914echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1915echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1916if test "$ac_test_CFLAGS" = set; then
1917  CFLAGS=$ac_save_CFLAGS
1918elif test $ac_cv_prog_cc_g = yes; then
1919  if test "$GCC" = yes; then
1920    CFLAGS="-g -O2"
1921  else
1922    CFLAGS="-g"
1923  fi
1924else
1925  if test "$GCC" = yes; then
1926    CFLAGS="-O2"
1927  else
1928    CFLAGS=
1929  fi
1930fi
1931echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1932echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1933if test "${ac_cv_prog_cc_stdc+set}" = set; then
1934  echo $ECHO_N "(cached) $ECHO_C" >&6
1935else
1936  ac_cv_prog_cc_stdc=no
1937ac_save_CC=$CC
1938cat >conftest.$ac_ext <<_ACEOF
1939/* confdefs.h.  */
1940_ACEOF
1941cat confdefs.h >>conftest.$ac_ext
1942cat >>conftest.$ac_ext <<_ACEOF
1943/* end confdefs.h.  */
1944#include <stdarg.h>
1945#include <stdio.h>
1946#include <sys/types.h>
1947#include <sys/stat.h>
1948/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
1949struct buf { int x; };
1950FILE * (*rcsopen) (struct buf *, struct stat *, int);
1951static char *e (p, i)
1952     char **p;
1953     int i;
1954{
1955  return p[i];
1956}
1957static char *f (char * (*g) (char **, int), char **p, ...)
1958{
1959  char *s;
1960  va_list v;
1961  va_start (v,p);
1962  s = g (p, va_arg (v,int));
1963  va_end (v);
1964  return s;
1965}
1966
1967/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
1968   function prototypes and stuff, but not '\xHH' hex character constants.
1969   These don't provoke an error unfortunately, instead are silently treated
1970   as 'x'.  The following induces an error, until -std1 is added to get
1971   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
1972   array size at least.  It's necessary to write '\x00'==0 to get something
1973   that's true only with -std1.  */
1974int osf4_cc_array ['\x00' == 0 ? 1 : -1];
1975
1976int test (int i, double x);
1977struct s1 {int (*f) (int a);};
1978struct s2 {int (*f) (double a);};
1979int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1980int argc;
1981char **argv;
1982int
1983main ()
1984{
1985return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
1986  ;
1987  return 0;
1988}
1989_ACEOF
1990# Don't try gcc -ansi; that turns off useful extensions and
1991# breaks some systems' header files.
1992# AIX                   -qlanglvl=ansi
1993# Ultrix and OSF/1      -std1
1994# HP-UX 10.20 and later -Ae
1995# HP-UX older versions  -Aa -D_HPUX_SOURCE
1996# SVR4                  -Xc -D__EXTENSIONS__
1997for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1998do
1999  CC="$ac_save_CC $ac_arg"
2000  rm -f conftest.$ac_objext
2001if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2002  (eval $ac_compile) 2>conftest.er1
2003  ac_status=$?
2004  grep -v '^ *+' conftest.er1 >conftest.err
2005  rm -f conftest.er1
2006  cat conftest.err >&5
2007  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2008  (exit $ac_status); } &&
2009         { ac_try='test -z "$ac_c_werror_flag"
2010                         || test ! -s conftest.err'
2011  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2012  (eval $ac_try) 2>&5
2013  ac_status=$?
2014  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2015  (exit $ac_status); }; } &&
2016         { ac_try='test -s conftest.$ac_objext'
2017  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2018  (eval $ac_try) 2>&5
2019  ac_status=$?
2020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2021  (exit $ac_status); }; }; then
2022  ac_cv_prog_cc_stdc=$ac_arg
2023break
2024else
2025  echo "$as_me: failed program was:" >&5
2026sed 's/^/| /' conftest.$ac_ext >&5
2027
2028fi
2029rm -f conftest.err conftest.$ac_objext
2030done
2031rm -f conftest.$ac_ext conftest.$ac_objext
2032CC=$ac_save_CC
2033
2034fi
2035
2036case "x$ac_cv_prog_cc_stdc" in
2037  x|xno)
2038    echo "$as_me:$LINENO: result: none needed" >&5
2039echo "${ECHO_T}none needed" >&6 ;;
2040  *)
2041    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2042echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2043    CC="$CC $ac_cv_prog_cc_stdc" ;;
2044esac
2045
2046# Some people use a C++ compiler to compile C.  Since we use `exit',
2047# in C++ we need to declare it.  In case someone uses the same compiler
2048# for both compiling C and C++ we need to have the C++ compiler decide
2049# the declaration of exit, since it's the most demanding environment.
2050cat >conftest.$ac_ext <<_ACEOF
2051#ifndef __cplusplus
2052  choke me
2053#endif
2054_ACEOF
2055rm -f conftest.$ac_objext
2056if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2057  (eval $ac_compile) 2>conftest.er1
2058  ac_status=$?
2059  grep -v '^ *+' conftest.er1 >conftest.err
2060  rm -f conftest.er1
2061  cat conftest.err >&5
2062  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2063  (exit $ac_status); } &&
2064         { ac_try='test -z "$ac_c_werror_flag"
2065                         || test ! -s conftest.err'
2066  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2067  (eval $ac_try) 2>&5
2068  ac_status=$?
2069  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2070  (exit $ac_status); }; } &&
2071         { ac_try='test -s conftest.$ac_objext'
2072  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2073  (eval $ac_try) 2>&5
2074  ac_status=$?
2075  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2076  (exit $ac_status); }; }; then
2077  for ac_declaration in \
2078   '' \
2079   'extern "C" void std::exit (int) throw (); using std::exit;' \
2080   'extern "C" void std::exit (int); using std::exit;' \
2081   'extern "C" void exit (int) throw ();' \
2082   'extern "C" void exit (int);' \
2083   'void exit (int);'
2084do
2085  cat >conftest.$ac_ext <<_ACEOF
2086/* confdefs.h.  */
2087_ACEOF
2088cat confdefs.h >>conftest.$ac_ext
2089cat >>conftest.$ac_ext <<_ACEOF
2090/* end confdefs.h.  */
2091$ac_declaration
2092#include <stdlib.h>
2093int
2094main ()
2095{
2096exit (42);
2097  ;
2098  return 0;
2099}
2100_ACEOF
2101rm -f conftest.$ac_objext
2102if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2103  (eval $ac_compile) 2>conftest.er1
2104  ac_status=$?
2105  grep -v '^ *+' conftest.er1 >conftest.err
2106  rm -f conftest.er1
2107  cat conftest.err >&5
2108  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2109  (exit $ac_status); } &&
2110         { ac_try='test -z "$ac_c_werror_flag"
2111                         || test ! -s conftest.err'
2112  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2113  (eval $ac_try) 2>&5
2114  ac_status=$?
2115  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2116  (exit $ac_status); }; } &&
2117         { ac_try='test -s conftest.$ac_objext'
2118  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2119  (eval $ac_try) 2>&5
2120  ac_status=$?
2121  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2122  (exit $ac_status); }; }; then
2123  :
2124else
2125  echo "$as_me: failed program was:" >&5
2126sed 's/^/| /' conftest.$ac_ext >&5
2127
2128continue
2129fi
2130rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2131  cat >conftest.$ac_ext <<_ACEOF
2132/* confdefs.h.  */
2133_ACEOF
2134cat confdefs.h >>conftest.$ac_ext
2135cat >>conftest.$ac_ext <<_ACEOF
2136/* end confdefs.h.  */
2137$ac_declaration
2138int
2139main ()
2140{
2141exit (42);
2142  ;
2143  return 0;
2144}
2145_ACEOF
2146rm -f conftest.$ac_objext
2147if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2148  (eval $ac_compile) 2>conftest.er1
2149  ac_status=$?
2150  grep -v '^ *+' conftest.er1 >conftest.err
2151  rm -f conftest.er1
2152  cat conftest.err >&5
2153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2154  (exit $ac_status); } &&
2155         { ac_try='test -z "$ac_c_werror_flag"
2156                         || test ! -s conftest.err'
2157  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2158  (eval $ac_try) 2>&5
2159  ac_status=$?
2160  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2161  (exit $ac_status); }; } &&
2162         { ac_try='test -s conftest.$ac_objext'
2163  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2164  (eval $ac_try) 2>&5
2165  ac_status=$?
2166  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2167  (exit $ac_status); }; }; then
2168  break
2169else
2170  echo "$as_me: failed program was:" >&5
2171sed 's/^/| /' conftest.$ac_ext >&5
2172
2173fi
2174rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2175done
2176rm -f conftest*
2177if test -n "$ac_declaration"; then
2178  echo '#ifdef __cplusplus' >>confdefs.h
2179  echo $ac_declaration      >>confdefs.h
2180  echo '#endif'             >>confdefs.h
2181fi
2182
2183else
2184  echo "$as_me: failed program was:" >&5
2185sed 's/^/| /' conftest.$ac_ext >&5
2186
2187fi
2188rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2189ac_ext=c
2190ac_cpp='$CPP $CPPFLAGS'
2191ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2192ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2193ac_compiler_gnu=$ac_cv_c_compiler_gnu
2194
2195ac_ext=cc
2196ac_cpp='$CXXCPP $CPPFLAGS'
2197ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2198ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2199ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2200if test -n "$ac_tool_prefix"; then
2201  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2202  do
2203    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2204set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2205echo "$as_me:$LINENO: checking for $ac_word" >&5
2206echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2207if test "${ac_cv_prog_CXX+set}" = set; then
2208  echo $ECHO_N "(cached) $ECHO_C" >&6
2209else
2210  if test -n "$CXX"; then
2211  ac_cv_prog_CXX="$CXX" # Let the user override the test.
2212else
2213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2214for as_dir in $PATH
2215do
2216  IFS=$as_save_IFS
2217  test -z "$as_dir" && as_dir=.
2218  for ac_exec_ext in '' $ac_executable_extensions; do
2219  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2220    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2221    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2222    break 2
2223  fi
2224done
2225done
2226
2227fi
2228fi
2229CXX=$ac_cv_prog_CXX
2230if test -n "$CXX"; then
2231  echo "$as_me:$LINENO: result: $CXX" >&5
2232echo "${ECHO_T}$CXX" >&6
2233else
2234  echo "$as_me:$LINENO: result: no" >&5
2235echo "${ECHO_T}no" >&6
2236fi
2237
2238    test -n "$CXX" && break
2239  done
2240fi
2241if test -z "$CXX"; then
2242  ac_ct_CXX=$CXX
2243  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2244do
2245  # Extract the first word of "$ac_prog", so it can be a program name with args.
2246set dummy $ac_prog; ac_word=$2
2247echo "$as_me:$LINENO: checking for $ac_word" >&5
2248echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2249if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2250  echo $ECHO_N "(cached) $ECHO_C" >&6
2251else
2252  if test -n "$ac_ct_CXX"; then
2253  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2254else
2255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2256for as_dir in $PATH
2257do
2258  IFS=$as_save_IFS
2259  test -z "$as_dir" && as_dir=.
2260  for ac_exec_ext in '' $ac_executable_extensions; do
2261  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2262    ac_cv_prog_ac_ct_CXX="$ac_prog"
2263    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2264    break 2
2265  fi
2266done
2267done
2268
2269fi
2270fi
2271ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2272if test -n "$ac_ct_CXX"; then
2273  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2274echo "${ECHO_T}$ac_ct_CXX" >&6
2275else
2276  echo "$as_me:$LINENO: result: no" >&5
2277echo "${ECHO_T}no" >&6
2278fi
2279
2280  test -n "$ac_ct_CXX" && break
2281done
2282test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2283
2284  CXX=$ac_ct_CXX
2285fi
2286
2287
2288# Provide some information about the compiler.
2289echo "$as_me:$LINENO:" \
2290     "checking for C++ compiler version" >&5
2291ac_compiler=`set X $ac_compile; echo $2`
2292{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2293  (eval $ac_compiler --version </dev/null >&5) 2>&5
2294  ac_status=$?
2295  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2296  (exit $ac_status); }
2297{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2298  (eval $ac_compiler -v </dev/null >&5) 2>&5
2299  ac_status=$?
2300  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2301  (exit $ac_status); }
2302{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2303  (eval $ac_compiler -V </dev/null >&5) 2>&5
2304  ac_status=$?
2305  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2306  (exit $ac_status); }
2307
2308echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2309echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2310if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2311  echo $ECHO_N "(cached) $ECHO_C" >&6
2312else
2313  cat >conftest.$ac_ext <<_ACEOF
2314/* confdefs.h.  */
2315_ACEOF
2316cat confdefs.h >>conftest.$ac_ext
2317cat >>conftest.$ac_ext <<_ACEOF
2318/* end confdefs.h.  */
2319
2320int
2321main ()
2322{
2323#ifndef __GNUC__
2324       choke me
2325#endif
2326
2327  ;
2328  return 0;
2329}
2330_ACEOF
2331rm -f conftest.$ac_objext
2332if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2333  (eval $ac_compile) 2>conftest.er1
2334  ac_status=$?
2335  grep -v '^ *+' conftest.er1 >conftest.err
2336  rm -f conftest.er1
2337  cat conftest.err >&5
2338  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2339  (exit $ac_status); } &&
2340         { ac_try='test -z "$ac_cxx_werror_flag"
2341                         || test ! -s conftest.err'
2342  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2343  (eval $ac_try) 2>&5
2344  ac_status=$?
2345  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2346  (exit $ac_status); }; } &&
2347         { ac_try='test -s conftest.$ac_objext'
2348  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2349  (eval $ac_try) 2>&5
2350  ac_status=$?
2351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352  (exit $ac_status); }; }; then
2353  ac_compiler_gnu=yes
2354else
2355  echo "$as_me: failed program was:" >&5
2356sed 's/^/| /' conftest.$ac_ext >&5
2357
2358ac_compiler_gnu=no
2359fi
2360rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2361ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2362
2363fi
2364echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2365echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2366GXX=`test $ac_compiler_gnu = yes && echo yes`
2367ac_test_CXXFLAGS=${CXXFLAGS+set}
2368ac_save_CXXFLAGS=$CXXFLAGS
2369CXXFLAGS="-g"
2370echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2371echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2372if test "${ac_cv_prog_cxx_g+set}" = set; then
2373  echo $ECHO_N "(cached) $ECHO_C" >&6
2374else
2375  cat >conftest.$ac_ext <<_ACEOF
2376/* confdefs.h.  */
2377_ACEOF
2378cat confdefs.h >>conftest.$ac_ext
2379cat >>conftest.$ac_ext <<_ACEOF
2380/* end confdefs.h.  */
2381
2382int
2383main ()
2384{
2385
2386  ;
2387  return 0;
2388}
2389_ACEOF
2390rm -f conftest.$ac_objext
2391if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2392  (eval $ac_compile) 2>conftest.er1
2393  ac_status=$?
2394  grep -v '^ *+' conftest.er1 >conftest.err
2395  rm -f conftest.er1
2396  cat conftest.err >&5
2397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398  (exit $ac_status); } &&
2399         { ac_try='test -z "$ac_cxx_werror_flag"
2400                         || test ! -s conftest.err'
2401  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2402  (eval $ac_try) 2>&5
2403  ac_status=$?
2404  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405  (exit $ac_status); }; } &&
2406         { ac_try='test -s conftest.$ac_objext'
2407  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2408  (eval $ac_try) 2>&5
2409  ac_status=$?
2410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411  (exit $ac_status); }; }; then
2412  ac_cv_prog_cxx_g=yes
2413else
2414  echo "$as_me: failed program was:" >&5
2415sed 's/^/| /' conftest.$ac_ext >&5
2416
2417ac_cv_prog_cxx_g=no
2418fi
2419rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2420fi
2421echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2422echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2423if test "$ac_test_CXXFLAGS" = set; then
2424  CXXFLAGS=$ac_save_CXXFLAGS
2425elif test $ac_cv_prog_cxx_g = yes; then
2426  if test "$GXX" = yes; then
2427    CXXFLAGS="-g -O2"
2428  else
2429    CXXFLAGS="-g"
2430  fi
2431else
2432  if test "$GXX" = yes; then
2433    CXXFLAGS="-O2"
2434  else
2435    CXXFLAGS=
2436  fi
2437fi
2438for ac_declaration in \
2439   '' \
2440   'extern "C" void std::exit (int) throw (); using std::exit;' \
2441   'extern "C" void std::exit (int); using std::exit;' \
2442   'extern "C" void exit (int) throw ();' \
2443   'extern "C" void exit (int);' \
2444   'void exit (int);'
2445do
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$ac_declaration
2453#include <stdlib.h>
2454int
2455main ()
2456{
2457exit (42);
2458  ;
2459  return 0;
2460}
2461_ACEOF
2462rm -f conftest.$ac_objext
2463if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2464  (eval $ac_compile) 2>conftest.er1
2465  ac_status=$?
2466  grep -v '^ *+' conftest.er1 >conftest.err
2467  rm -f conftest.er1
2468  cat conftest.err >&5
2469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470  (exit $ac_status); } &&
2471         { ac_try='test -z "$ac_cxx_werror_flag"
2472                         || test ! -s conftest.err'
2473  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2474  (eval $ac_try) 2>&5
2475  ac_status=$?
2476  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2477  (exit $ac_status); }; } &&
2478         { ac_try='test -s conftest.$ac_objext'
2479  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2480  (eval $ac_try) 2>&5
2481  ac_status=$?
2482  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2483  (exit $ac_status); }; }; then
2484  :
2485else
2486  echo "$as_me: failed program was:" >&5
2487sed 's/^/| /' conftest.$ac_ext >&5
2488
2489continue
2490fi
2491rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2492  cat >conftest.$ac_ext <<_ACEOF
2493/* confdefs.h.  */
2494_ACEOF
2495cat confdefs.h >>conftest.$ac_ext
2496cat >>conftest.$ac_ext <<_ACEOF
2497/* end confdefs.h.  */
2498$ac_declaration
2499int
2500main ()
2501{
2502exit (42);
2503  ;
2504  return 0;
2505}
2506_ACEOF
2507rm -f conftest.$ac_objext
2508if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2509  (eval $ac_compile) 2>conftest.er1
2510  ac_status=$?
2511  grep -v '^ *+' conftest.er1 >conftest.err
2512  rm -f conftest.er1
2513  cat conftest.err >&5
2514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515  (exit $ac_status); } &&
2516         { ac_try='test -z "$ac_cxx_werror_flag"
2517                         || test ! -s conftest.err'
2518  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2519  (eval $ac_try) 2>&5
2520  ac_status=$?
2521  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2522  (exit $ac_status); }; } &&
2523         { ac_try='test -s conftest.$ac_objext'
2524  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2525  (eval $ac_try) 2>&5
2526  ac_status=$?
2527  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528  (exit $ac_status); }; }; then
2529  break
2530else
2531  echo "$as_me: failed program was:" >&5
2532sed 's/^/| /' conftest.$ac_ext >&5
2533
2534fi
2535rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2536done
2537rm -f conftest*
2538if test -n "$ac_declaration"; then
2539  echo '#ifdef __cplusplus' >>confdefs.h
2540  echo $ac_declaration      >>confdefs.h
2541  echo '#endif'             >>confdefs.h
2542fi
2543
2544ac_ext=c
2545ac_cpp='$CPP $CPPFLAGS'
2546ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2547ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2548ac_compiler_gnu=$ac_cv_c_compiler_gnu
2549
2550
2551ac_ext=c
2552ac_cpp='$CPP $CPPFLAGS'
2553ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2554ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2555ac_compiler_gnu=$ac_cv_c_compiler_gnu
2556echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2557echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2558# On Suns, sometimes $CPP names a directory.
2559if test -n "$CPP" && test -d "$CPP"; then
2560  CPP=
2561fi
2562if test -z "$CPP"; then
2563  if test "${ac_cv_prog_CPP+set}" = set; then
2564  echo $ECHO_N "(cached) $ECHO_C" >&6
2565else
2566      # Double quotes because CPP needs to be expanded
2567    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2568    do
2569      ac_preproc_ok=false
2570for ac_c_preproc_warn_flag in '' yes
2571do
2572  # Use a header file that comes with gcc, so configuring glibc
2573  # with a fresh cross-compiler works.
2574  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2575  # <limits.h> exists even on freestanding compilers.
2576  # On the NeXT, cc -E runs the code through the compiler's parser,
2577  # not just through cpp. "Syntax error" is here to catch this case.
2578  cat >conftest.$ac_ext <<_ACEOF
2579/* confdefs.h.  */
2580_ACEOF
2581cat confdefs.h >>conftest.$ac_ext
2582cat >>conftest.$ac_ext <<_ACEOF
2583/* end confdefs.h.  */
2584#ifdef __STDC__
2585# include <limits.h>
2586#else
2587# include <assert.h>
2588#endif
2589                     Syntax error
2590_ACEOF
2591if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2592  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2593  ac_status=$?
2594  grep -v '^ *+' conftest.er1 >conftest.err
2595  rm -f conftest.er1
2596  cat conftest.err >&5
2597  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2598  (exit $ac_status); } >/dev/null; then
2599  if test -s conftest.err; then
2600    ac_cpp_err=$ac_c_preproc_warn_flag
2601    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2602  else
2603    ac_cpp_err=
2604  fi
2605else
2606  ac_cpp_err=yes
2607fi
2608if test -z "$ac_cpp_err"; then
2609  :
2610else
2611  echo "$as_me: failed program was:" >&5
2612sed 's/^/| /' conftest.$ac_ext >&5
2613
2614  # Broken: fails on valid input.
2615continue
2616fi
2617rm -f conftest.err conftest.$ac_ext
2618
2619  # OK, works on sane cases.  Now check whether non-existent headers
2620  # can be detected and how.
2621  cat >conftest.$ac_ext <<_ACEOF
2622/* confdefs.h.  */
2623_ACEOF
2624cat confdefs.h >>conftest.$ac_ext
2625cat >>conftest.$ac_ext <<_ACEOF
2626/* end confdefs.h.  */
2627#include <ac_nonexistent.h>
2628_ACEOF
2629if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2630  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2631  ac_status=$?
2632  grep -v '^ *+' conftest.er1 >conftest.err
2633  rm -f conftest.er1
2634  cat conftest.err >&5
2635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636  (exit $ac_status); } >/dev/null; then
2637  if test -s conftest.err; then
2638    ac_cpp_err=$ac_c_preproc_warn_flag
2639    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2640  else
2641    ac_cpp_err=
2642  fi
2643else
2644  ac_cpp_err=yes
2645fi
2646if test -z "$ac_cpp_err"; then
2647  # Broken: success on invalid input.
2648continue
2649else
2650  echo "$as_me: failed program was:" >&5
2651sed 's/^/| /' conftest.$ac_ext >&5
2652
2653  # Passes both tests.
2654ac_preproc_ok=:
2655break
2656fi
2657rm -f conftest.err conftest.$ac_ext
2658
2659done
2660# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2661rm -f conftest.err conftest.$ac_ext
2662if $ac_preproc_ok; then
2663  break
2664fi
2665
2666    done
2667    ac_cv_prog_CPP=$CPP
2668
2669fi
2670  CPP=$ac_cv_prog_CPP
2671else
2672  ac_cv_prog_CPP=$CPP
2673fi
2674echo "$as_me:$LINENO: result: $CPP" >&5
2675echo "${ECHO_T}$CPP" >&6
2676ac_preproc_ok=false
2677for ac_c_preproc_warn_flag in '' yes
2678do
2679  # Use a header file that comes with gcc, so configuring glibc
2680  # with a fresh cross-compiler works.
2681  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2682  # <limits.h> exists even on freestanding compilers.
2683  # On the NeXT, cc -E runs the code through the compiler's parser,
2684  # not just through cpp. "Syntax error" is here to catch this case.
2685  cat >conftest.$ac_ext <<_ACEOF
2686/* confdefs.h.  */
2687_ACEOF
2688cat confdefs.h >>conftest.$ac_ext
2689cat >>conftest.$ac_ext <<_ACEOF
2690/* end confdefs.h.  */
2691#ifdef __STDC__
2692# include <limits.h>
2693#else
2694# include <assert.h>
2695#endif
2696                     Syntax error
2697_ACEOF
2698if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2699  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2700  ac_status=$?
2701  grep -v '^ *+' conftest.er1 >conftest.err
2702  rm -f conftest.er1
2703  cat conftest.err >&5
2704  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2705  (exit $ac_status); } >/dev/null; then
2706  if test -s conftest.err; then
2707    ac_cpp_err=$ac_c_preproc_warn_flag
2708    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2709  else
2710    ac_cpp_err=
2711  fi
2712else
2713  ac_cpp_err=yes
2714fi
2715if test -z "$ac_cpp_err"; then
2716  :
2717else
2718  echo "$as_me: failed program was:" >&5
2719sed 's/^/| /' conftest.$ac_ext >&5
2720
2721  # Broken: fails on valid input.
2722continue
2723fi
2724rm -f conftest.err conftest.$ac_ext
2725
2726  # OK, works on sane cases.  Now check whether non-existent headers
2727  # can be detected and how.
2728  cat >conftest.$ac_ext <<_ACEOF
2729/* confdefs.h.  */
2730_ACEOF
2731cat confdefs.h >>conftest.$ac_ext
2732cat >>conftest.$ac_ext <<_ACEOF
2733/* end confdefs.h.  */
2734#include <ac_nonexistent.h>
2735_ACEOF
2736if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2737  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2738  ac_status=$?
2739  grep -v '^ *+' conftest.er1 >conftest.err
2740  rm -f conftest.er1
2741  cat conftest.err >&5
2742  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2743  (exit $ac_status); } >/dev/null; then
2744  if test -s conftest.err; then
2745    ac_cpp_err=$ac_c_preproc_warn_flag
2746    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2747  else
2748    ac_cpp_err=
2749  fi
2750else
2751  ac_cpp_err=yes
2752fi
2753if test -z "$ac_cpp_err"; then
2754  # Broken: success on invalid input.
2755continue
2756else
2757  echo "$as_me: failed program was:" >&5
2758sed 's/^/| /' conftest.$ac_ext >&5
2759
2760  # Passes both tests.
2761ac_preproc_ok=:
2762break
2763fi
2764rm -f conftest.err conftest.$ac_ext
2765
2766done
2767# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2768rm -f conftest.err conftest.$ac_ext
2769if $ac_preproc_ok; then
2770  :
2771else
2772  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2773See \`config.log' for more details." >&5
2774echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2775See \`config.log' for more details." >&2;}
2776   { (exit 1); exit 1; }; }
2777fi
2778
2779ac_ext=c
2780ac_cpp='$CPP $CPPFLAGS'
2781ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2782ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2783ac_compiler_gnu=$ac_cv_c_compiler_gnu
2784
2785
2786echo "$as_me:$LINENO: checking for egrep" >&5
2787echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2788if test "${ac_cv_prog_egrep+set}" = set; then
2789  echo $ECHO_N "(cached) $ECHO_C" >&6
2790else
2791  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2792    then ac_cv_prog_egrep='grep -E'
2793    else ac_cv_prog_egrep='egrep'
2794    fi
2795fi
2796echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2797echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2798 EGREP=$ac_cv_prog_egrep
2799
2800
2801echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2802echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2803if test "${ac_cv_header_stdc+set}" = set; then
2804  echo $ECHO_N "(cached) $ECHO_C" >&6
2805else
2806  cat >conftest.$ac_ext <<_ACEOF
2807/* confdefs.h.  */
2808_ACEOF
2809cat confdefs.h >>conftest.$ac_ext
2810cat >>conftest.$ac_ext <<_ACEOF
2811/* end confdefs.h.  */
2812#include <stdlib.h>
2813#include <stdarg.h>
2814#include <string.h>
2815#include <float.h>
2816
2817int
2818main ()
2819{
2820
2821  ;
2822  return 0;
2823}
2824_ACEOF
2825rm -f conftest.$ac_objext
2826if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2827  (eval $ac_compile) 2>conftest.er1
2828  ac_status=$?
2829  grep -v '^ *+' conftest.er1 >conftest.err
2830  rm -f conftest.er1
2831  cat conftest.err >&5
2832  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833  (exit $ac_status); } &&
2834         { ac_try='test -z "$ac_c_werror_flag"
2835                         || test ! -s conftest.err'
2836  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2837  (eval $ac_try) 2>&5
2838  ac_status=$?
2839  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2840  (exit $ac_status); }; } &&
2841         { ac_try='test -s conftest.$ac_objext'
2842  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2843  (eval $ac_try) 2>&5
2844  ac_status=$?
2845  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846  (exit $ac_status); }; }; then
2847  ac_cv_header_stdc=yes
2848else
2849  echo "$as_me: failed program was:" >&5
2850sed 's/^/| /' conftest.$ac_ext >&5
2851
2852ac_cv_header_stdc=no
2853fi
2854rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2855
2856if test $ac_cv_header_stdc = yes; then
2857  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2858  cat >conftest.$ac_ext <<_ACEOF
2859/* confdefs.h.  */
2860_ACEOF
2861cat confdefs.h >>conftest.$ac_ext
2862cat >>conftest.$ac_ext <<_ACEOF
2863/* end confdefs.h.  */
2864#include <string.h>
2865
2866_ACEOF
2867if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2868  $EGREP "memchr" >/dev/null 2>&1; then
2869  :
2870else
2871  ac_cv_header_stdc=no
2872fi
2873rm -f conftest*
2874
2875fi
2876
2877if test $ac_cv_header_stdc = yes; then
2878  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2879  cat >conftest.$ac_ext <<_ACEOF
2880/* confdefs.h.  */
2881_ACEOF
2882cat confdefs.h >>conftest.$ac_ext
2883cat >>conftest.$ac_ext <<_ACEOF
2884/* end confdefs.h.  */
2885#include <stdlib.h>
2886
2887_ACEOF
2888if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2889  $EGREP "free" >/dev/null 2>&1; then
2890  :
2891else
2892  ac_cv_header_stdc=no
2893fi
2894rm -f conftest*
2895
2896fi
2897
2898if test $ac_cv_header_stdc = yes; then
2899  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2900  if test "$cross_compiling" = yes; then
2901  :
2902else
2903  cat >conftest.$ac_ext <<_ACEOF
2904/* confdefs.h.  */
2905_ACEOF
2906cat confdefs.h >>conftest.$ac_ext
2907cat >>conftest.$ac_ext <<_ACEOF
2908/* end confdefs.h.  */
2909#include <ctype.h>
2910#if ((' ' & 0x0FF) == 0x020)
2911# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2912# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2913#else
2914# define ISLOWER(c) \
2915                   (('a' <= (c) && (c) <= 'i') \
2916                     || ('j' <= (c) && (c) <= 'r') \
2917                     || ('s' <= (c) && (c) <= 'z'))
2918# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2919#endif
2920
2921#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2922int
2923main ()
2924{
2925  int i;
2926  for (i = 0; i < 256; i++)
2927    if (XOR (islower (i), ISLOWER (i))
2928        || toupper (i) != TOUPPER (i))
2929      exit(2);
2930  exit (0);
2931}
2932_ACEOF
2933rm -f conftest$ac_exeext
2934if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2935  (eval $ac_link) 2>&5
2936  ac_status=$?
2937  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2938  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2939  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2940  (eval $ac_try) 2>&5
2941  ac_status=$?
2942  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2943  (exit $ac_status); }; }; then
2944  :
2945else
2946  echo "$as_me: program exited with status $ac_status" >&5
2947echo "$as_me: failed program was:" >&5
2948sed 's/^/| /' conftest.$ac_ext >&5
2949
2950( exit $ac_status )
2951ac_cv_header_stdc=no
2952fi
2953rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2954fi
2955fi
2956fi
2957echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2958echo "${ECHO_T}$ac_cv_header_stdc" >&6
2959if test $ac_cv_header_stdc = yes; then
2960
2961cat >>confdefs.h <<\_ACEOF
2962#define STDC_HEADERS 1
2963_ACEOF
2964
2965fi
2966
2967
2968{ echo "$as_me:$LINENO: checking for BOOST ..." >&5
2969echo "$as_me: checking for BOOST ..." >&6;}
2970
2971# Check whether --with-boost or --without-boost was given.
2972if test "${with_boost+set}" = set; then
2973  withval="$with_boost"
2974
2975fi;
2976
2977if test "$with_boost" = "no" ; then
2978  { { echo "$as_me:$LINENO: error: ** BOOST cannot be disabled **" >&5
2979echo "$as_me: error: ** BOOST cannot be disabled **" >&2;}
2980   { (exit 1); exit 1; }; }
2981elif test -n "$with_boost" -a "$with_boost" != "yes" ; then
2982        BOOST_DIR=$with_boost
2983else
2984  BOOST_DIR='/usr/include/boost'
2985fi
2986
2987if ! test -d $BOOST_DIR/graph ; then
2988 { { echo "$as_me:$LINENO: error: ** $BOOST_DIR/graph can not be found **" >&5
2989echo "$as_me: error: ** $BOOST_DIR/graph can not be found **" >&2;}
2990   { (exit 1); exit 1; }; }
2991else
2992 BOOST_DIR=$BOOST_DIR/graph
2993 BOOST_DIR=$BOOST_DIR
2994
2995fi
2996
2997{ echo "$as_me:$LINENO: checking for astar_search.hpp in $BOOST_DIR ..." >&5
2998echo "$as_me: checking for astar_search.hpp in $BOOST_DIR ..." >&6;}
2999
3000if ! test -f $BOOST_DIR/astar_search.hpp ; then
3001 { { echo "$as_me:$LINENO: error: ** $BOOST_DIR/astar_search.hpp can not be found **" >&5
3002echo "$as_me: error: ** $BOOST_DIR/astar_search.hpp can not be found **" >&2;}
3003   { (exit 1); exit 1; }; }
3004fi
3005
3006          ac_config_files="$ac_config_files Makefile"
3007cat >confcache <<\_ACEOF
3008# This file is a shell script that caches the results of configure
3009# tests run on this system so they can be shared between configure
3010# scripts and configure runs, see configure's option --config-cache.
3011# It is not useful on other systems.  If it contains results you don't
3012# want to keep, you may remove or edit it.
3013#
3014# config.status only pays attention to the cache file if you give it
3015# the --recheck option to rerun configure.
3016#
3017# `ac_cv_env_foo' variables (set or unset) will be overridden when
3018# loading this file, other *unset* `ac_cv_foo' will be assigned the
3019# following values.
3020
3021_ACEOF
3022
3023# The following way of writing the cache mishandles newlines in values,
3024# but we know of no workaround that is simple, portable, and efficient.
3025# So, don't put newlines in cache variables' values.
3026# Ultrix sh set writes to stderr and can't be redirected directly,
3027# and sets the high bit in the cache file unless we assign to the vars.
3028{
3029  (set) 2>&1 |
3030    case `(ac_space=' '; set | grep ac_space) 2>&1` in
3031    *ac_space=\ *)
3032      # `set' does not quote correctly, so add quotes (double-quote
3033      # substitution turns \\\\ into \\, and sed turns \\ into \).
3034      sed -n \
3035        "s/'/'\\\\''/g;
3036          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3037      ;;
3038    *)
3039      # `set' quotes correctly as required by POSIX, so do not add quotes.
3040      sed -n \
3041        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3042      ;;
3043    esac;
3044} |
3045  sed '
3046     t clear
3047     : clear
3048     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3049     t end
3050     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3051     : end' >>confcache
3052if diff $cache_file confcache >/dev/null 2>&1; then :; else
3053  if test -w $cache_file; then
3054    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3055    cat confcache >$cache_file
3056  else
3057    echo "not updating unwritable cache $cache_file"
3058  fi
3059fi
3060rm -f confcache
3061
3062test "x$prefix" = xNONE && prefix=$ac_default_prefix
3063# Let make expand exec_prefix.
3064test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3065
3066# VPATH may cause trouble with some makes, so we remove $(srcdir),
3067# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3068# trailing colons and then remove the whole line if VPATH becomes empty
3069# (actually we leave an empty line to preserve line numbers).
3070if test "x$srcdir" = x.; then
3071  ac_vpsub='/^[  ]*VPATH[        ]*=/{
3072s/:*\$(srcdir):*/:/;
3073s/:*\${srcdir}:*/:/;
3074s/:*@srcdir@:*/:/;
3075s/^\([^=]*=[     ]*\):*/\1/;
3076s/:*$//;
3077s/^[^=]*=[       ]*$//;
3078}'
3079fi
3080
3081# Transform confdefs.h into DEFS.
3082# Protect against shell expansion while executing Makefile rules.
3083# Protect against Makefile macro expansion.
3084#
3085# If the first sed substitution is executed (which looks for macros that
3086# take arguments), then we branch to the quote section.  Otherwise,
3087# look for a macro that doesn't take arguments.
3088cat >confdef2opt.sed <<\_ACEOF
3089t clear
3090: clear
3091s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
3092t quote
3093s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
3094t quote
3095d
3096: quote
3097s,[      `~#$^&*(){}\\|;'"<>?],\\&,g
3098s,\[,\\&,g
3099s,\],\\&,g
3100s,\$,$$,g
3101p
3102_ACEOF
3103# We use echo to avoid assuming a particular line-breaking character.
3104# The extra dot is to prevent the shell from consuming trailing
3105# line-breaks from the sub-command output.  A line-break within
3106# single-quotes doesn't work because, if this script is created in a
3107# platform that uses two characters for line-breaks (e.g., DOS), tr
3108# would break.
3109ac_LF_and_DOT=`echo; echo .`
3110DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
3111rm -f confdef2opt.sed
3112
3113
3114ac_libobjs=
3115ac_ltlibobjs=
3116for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3117  # 1. Remove the extension, and $U if already installed.
3118  ac_i=`echo "$ac_i" |
3119         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
3120  # 2. Add them.
3121  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
3122  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
3123done
3124LIBOBJS=$ac_libobjs
3125
3126LTLIBOBJS=$ac_ltlibobjs
3127
3128
3129
3130: ${CONFIG_STATUS=./config.status}
3131ac_clean_files_save=$ac_clean_files
3132ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3133{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
3134echo "$as_me: creating $CONFIG_STATUS" >&6;}
3135cat >$CONFIG_STATUS <<_ACEOF
3136#! $SHELL
3137# Generated by $as_me.
3138# Run this file to recreate the current configuration.
3139# Compiler output produced by configure, useful for debugging
3140# configure, is in config.log if it exists.
3141
3142debug=false
3143ac_cs_recheck=false
3144ac_cs_silent=false
3145SHELL=\${CONFIG_SHELL-$SHELL}
3146_ACEOF
3147
3148cat >>$CONFIG_STATUS <<\_ACEOF
3149## --------------------- ##
3150## M4sh Initialization.  ##
3151## --------------------- ##
3152
3153# Be Bourne compatible
3154if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3155  emulate sh
3156  NULLCMD=:
3157  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
3158  # is contrary to our usage.  Disable this feature.
3159  alias -g '${1+"$@"}'='"$@"'
3160elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
3161  set -o posix
3162fi
3163DUALCASE=1; export DUALCASE # for MKS sh
3164
3165# Support unset when possible.
3166if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3167  as_unset=unset
3168else
3169  as_unset=false
3170fi
3171
3172
3173# Work around bugs in pre-3.0 UWIN ksh.
3174$as_unset ENV MAIL MAILPATH
3175PS1='$ '
3176PS2='> '
3177PS4='+ '
3178
3179# NLS nuisances.
3180for as_var in \
3181  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
3182  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
3183  LC_TELEPHONE LC_TIME
3184do
3185  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
3186    eval $as_var=C; export $as_var
3187  else
3188    $as_unset $as_var
3189  fi
3190done
3191
3192# Required to use basename.
3193if expr a : '\(a\)' >/dev/null 2>&1; then
3194  as_expr=expr
3195else
3196  as_expr=false
3197fi
3198
3199if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
3200  as_basename=basename
3201else
3202  as_basename=false
3203fi
3204
3205
3206# Name of the executable.
3207as_me=`$as_basename "$0" ||
3208$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3209         X"$0" : 'X\(//\)$' \| \
3210         X"$0" : 'X\(/\)$' \| \
3211         .     : '\(.\)' 2>/dev/null ||
3212echo X/"$0" |
3213    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
3214          /^X\/\(\/\/\)$/{ s//\1/; q; }
3215          /^X\/\(\/\).*/{ s//\1/; q; }
3216          s/.*/./; q'`
3217
3218
3219# PATH needs CR, and LINENO needs CR and PATH.
3220# Avoid depending upon Character Ranges.
3221as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3222as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3223as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3224as_cr_digits='0123456789'
3225as_cr_alnum=$as_cr_Letters$as_cr_digits
3226
3227# The user is always right.
3228if test "${PATH_SEPARATOR+set}" != set; then
3229  echo "#! /bin/sh" >conf$$.sh
3230  echo  "exit 0"   >>conf$$.sh
3231  chmod +x conf$$.sh
3232  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3233    PATH_SEPARATOR=';'
3234  else
3235    PATH_SEPARATOR=:
3236  fi
3237  rm -f conf$$.sh
3238fi
3239
3240
3241  as_lineno_1=$LINENO
3242  as_lineno_2=$LINENO
3243  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3244  test "x$as_lineno_1" != "x$as_lineno_2" &&
3245  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
3246  # Find who we are.  Look in the path if we contain no path at all
3247  # relative or not.
3248  case $0 in
3249    *[\\/]* ) as_myself=$0 ;;
3250    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3251for as_dir in $PATH
3252do
3253  IFS=$as_save_IFS
3254  test -z "$as_dir" && as_dir=.
3255  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3256done
3257
3258       ;;
3259  esac
3260  # We did not find ourselves, most probably we were run as `sh COMMAND'
3261  # in which case we are not to be found in the path.
3262  if test "x$as_myself" = x; then
3263    as_myself=$0
3264  fi
3265  if test ! -f "$as_myself"; then
3266    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
3267echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
3268   { (exit 1); exit 1; }; }
3269  fi
3270  case $CONFIG_SHELL in
3271  '')
3272    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3273for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
3274do
3275  IFS=$as_save_IFS
3276  test -z "$as_dir" && as_dir=.
3277  for as_base in sh bash ksh sh5; do
3278         case $as_dir in
3279         /*)
3280           if ("$as_dir/$as_base" -c '
3281  as_lineno_1=$LINENO
3282  as_lineno_2=$LINENO
3283  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3284  test "x$as_lineno_1" != "x$as_lineno_2" &&
3285  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
3286             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
3287             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
3288             CONFIG_SHELL=$as_dir/$as_base
3289             export CONFIG_SHELL
3290             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
3291           fi;;
3292         esac
3293       done
3294done
3295;;
3296  esac
3297
3298  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
3299  # uniformly replaced by the line number.  The first 'sed' inserts a
3300  # line-number line before each line; the second 'sed' does the real
3301  # work.  The second script uses 'N' to pair each line-number line
3302  # with the numbered line, and appends trailing '-' during
3303  # substitution so that $LINENO is not a special case at line end.
3304  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
3305  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
3306  sed '=' <$as_myself |
3307    sed '
3308      N
3309      s,$,-,
3310      : loop
3311      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
3312      t loop
3313      s,-$,,
3314      s,^['$as_cr_digits']*\n,,
3315    ' >$as_me.lineno &&
3316  chmod +x $as_me.lineno ||
3317    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
3318echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
3319   { (exit 1); exit 1; }; }
3320
3321  # Don't try to exec as it changes $[0], causing all sort of problems
3322  # (the dirname of $[0] is not the place where we might find the
3323  # original and so on.  Autoconf is especially sensible to this).
3324  . ./$as_me.lineno
3325  # Exit status is that of the last command.
3326  exit
3327}
3328
3329
3330case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
3331  *c*,-n*) ECHO_N= ECHO_C='
3332' ECHO_T='      ' ;;
3333  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
3334  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
3335esac
3336
3337if expr a : '\(a\)' >/dev/null 2>&1; then
3338  as_expr=expr
3339else
3340  as_expr=false
3341fi
3342
3343rm -f conf$$ conf$$.exe conf$$.file
3344echo >conf$$.file
3345if ln -s conf$$.file conf$$ 2>/dev/null; then
3346  # We could just check for DJGPP; but this test a) works b) is more generic
3347  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
3348  if test -f conf$$.exe; then
3349    # Don't use ln at all; we don't have any links
3350    as_ln_s='cp -p'
3351  else
3352    as_ln_s='ln -s'
3353  fi
3354elif ln conf$$.file conf$$ 2>/dev/null; then
3355  as_ln_s=ln
3356else
3357  as_ln_s='cp -p'
3358fi
3359rm -f conf$$ conf$$.exe conf$$.file
3360
3361if mkdir -p . 2>/dev/null; then
3362  as_mkdir_p=:
3363else
3364  test -d ./-p && rmdir ./-p
3365  as_mkdir_p=false
3366fi
3367
3368as_executable_p="test -f"
3369
3370# Sed expression to map a string onto a valid CPP name.
3371as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
3372
3373# Sed expression to map a string onto a valid variable name.
3374as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
3375
3376
3377# IFS
3378# We need space, tab and new line, in precisely that order.
3379as_nl='
3380'
3381IFS="   $as_nl"
3382
3383# CDPATH.
3384$as_unset CDPATH
3385
3386exec 6>&1
3387
3388# Open the log real soon, to keep \$[0] and so on meaningful, and to
3389# report actual input values of CONFIG_FILES etc. instead of their
3390# values after options handling.  Logging --version etc. is OK.
3391exec 5>>config.log
3392{
3393  echo
3394  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
3395## Running $as_me. ##
3396_ASBOX
3397} >&5
3398cat >&5 <<_CSEOF
3399
3400This file was extended by $as_me, which was
3401generated by GNU Autoconf 2.59.  Invocation command line was
3402
3403  CONFIG_FILES    = $CONFIG_FILES
3404  CONFIG_HEADERS  = $CONFIG_HEADERS
3405  CONFIG_LINKS    = $CONFIG_LINKS
3406  CONFIG_COMMANDS = $CONFIG_COMMANDS
3407  $ $0 $@
3408
3409_CSEOF
3410echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
3411echo >&5
3412_ACEOF
3413
3414# Files that config.status was made for.
3415if test -n "$ac_config_files"; then
3416  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
3417fi
3418
3419if test -n "$ac_config_headers"; then
3420  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
3421fi
3422
3423if test -n "$ac_config_links"; then
3424  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
3425fi
3426
3427if test -n "$ac_config_commands"; then
3428  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
3429fi
3430
3431cat >>$CONFIG_STATUS <<\_ACEOF
3432
3433ac_cs_usage="\
3434\`$as_me' instantiates files from templates according to the
3435current configuration.
3436
3437Usage: $0 [OPTIONS] [FILE]...
3438
3439  -h, --help       print this help, then exit
3440  -V, --version    print version number, then exit
3441  -q, --quiet      do not print progress messages
3442  -d, --debug      don't remove temporary files
3443      --recheck    update $as_me by reconfiguring in the same conditions
3444  --file=FILE[:TEMPLATE]
3445                   instantiate the configuration file FILE
3446
3447Configuration files:
3448$config_files
3449
3450Report bugs to <bug-autoconf@gnu.org>."
3451_ACEOF
3452
3453cat >>$CONFIG_STATUS <<_ACEOF
3454ac_cs_version="\\
3455config.status
3456configured by $0, generated by GNU Autoconf 2.59,
3457  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
3458
3459Copyright (C) 2003 Free Software Foundation, Inc.
3460This config.status script is free software; the Free Software Foundation
3461gives unlimited permission to copy, distribute and modify it."
3462srcdir=$srcdir
3463_ACEOF
3464
3465cat >>$CONFIG_STATUS <<\_ACEOF
3466# If no file are specified by the user, then we need to provide default
3467# value.  By we need to know if files were specified by the user.
3468ac_need_defaults=:
3469while test $# != 0
3470do
3471  case $1 in
3472  --*=*)
3473    ac_option=`expr "x$1" : 'x\([^=]*\)='`
3474    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
3475    ac_shift=:
3476    ;;
3477  -*)
3478    ac_option=$1
3479    ac_optarg=$2
3480    ac_shift=shift
3481    ;;
3482  *) # This is not an option, so the user has probably given explicit
3483     # arguments.
3484     ac_option=$1
3485     ac_need_defaults=false;;
3486  esac
3487
3488  case $ac_option in
3489  # Handling of the options.
3490_ACEOF
3491cat >>$CONFIG_STATUS <<\_ACEOF
3492  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3493    ac_cs_recheck=: ;;
3494  --version | --vers* | -V )
3495    echo "$ac_cs_version"; exit 0 ;;
3496  --he | --h)
3497    # Conflict between --help and --header
3498    { { echo "$as_me:$LINENO: error: ambiguous option: $1
3499Try \`$0 --help' for more information." >&5
3500echo "$as_me: error: ambiguous option: $1
3501Try \`$0 --help' for more information." >&2;}
3502   { (exit 1); exit 1; }; };;
3503  --help | --hel | -h )
3504    echo "$ac_cs_usage"; exit 0 ;;
3505  --debug | --d* | -d )
3506    debug=: ;;
3507  --file | --fil | --fi | --f )
3508    $ac_shift
3509    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
3510    ac_need_defaults=false;;
3511  --header | --heade | --head | --hea )
3512    $ac_shift
3513    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
3514    ac_need_defaults=false;;
3515  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3516  | -silent | --silent | --silen | --sile | --sil | --si | --s)
3517    ac_cs_silent=: ;;
3518
3519  # This is an error.
3520  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
3521Try \`$0 --help' for more information." >&5
3522echo "$as_me: error: unrecognized option: $1
3523Try \`$0 --help' for more information." >&2;}
3524   { (exit 1); exit 1; }; } ;;
3525
3526  *) ac_config_targets="$ac_config_targets $1" ;;
3527
3528  esac
3529  shift
3530done
3531
3532ac_configure_extra_args=
3533
3534if $ac_cs_silent; then
3535  exec 6>/dev/null
3536  ac_configure_extra_args="$ac_configure_extra_args --silent"
3537fi
3538
3539_ACEOF
3540cat >>$CONFIG_STATUS <<_ACEOF
3541if \$ac_cs_recheck; then
3542  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
3543  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
3544fi
3545
3546_ACEOF
3547
3548
3549
3550
3551
3552cat >>$CONFIG_STATUS <<\_ACEOF
3553for ac_config_target in $ac_config_targets
3554do
3555  case "$ac_config_target" in
3556  # Handling of arguments.
3557  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
3558  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
3559echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
3560   { (exit 1); exit 1; }; };;
3561  esac
3562done
3563
3564# If the user did not use the arguments to specify the items to instantiate,
3565# then the envvar interface is used.  Set only those that are not.
3566# We use the long form for the default assignment because of an extremely
3567# bizarre bug on SunOS 4.1.3.
3568if $ac_need_defaults; then
3569  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
3570fi
3571
3572# Have a temporary directory for convenience.  Make it in the build tree
3573# simply because there is no reason to put it here, and in addition,
3574# creating and moving files from /tmp can sometimes cause problems.
3575# Create a temporary directory, and hook for its removal unless debugging.
3576$debug ||
3577{
3578  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3579  trap '{ (exit 1); exit 1; }' 1 2 13 15
3580}
3581
3582# Create a (secure) tmp directory for tmp files.
3583
3584{
3585  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
3586  test -n "$tmp" && test -d "$tmp"
3587}  ||
3588{
3589  tmp=./confstat$$-$RANDOM
3590  (umask 077 && mkdir $tmp)
3591} ||
3592{
3593   echo "$me: cannot create a temporary directory in ." >&2
3594   { (exit 1); exit 1; }
3595}
3596
3597_ACEOF
3598
3599cat >>$CONFIG_STATUS <<_ACEOF
3600
3601#
3602# CONFIG_FILES section.
3603#
3604
3605# No need to generate the scripts if there are no CONFIG_FILES.
3606# This happens for instance when ./config.status config.h
3607if test -n "\$CONFIG_FILES"; then
3608  # Protect against being on the right side of a sed subst in config.status.
3609  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
3610   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
3611s,@SHELL@,$SHELL,;t t
3612s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
3613s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
3614s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
3615s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
3616s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
3617s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
3618s,@exec_prefix@,$exec_prefix,;t t
3619s,@prefix@,$prefix,;t t
3620s,@program_transform_name@,$program_transform_name,;t t
3621s,@bindir@,$bindir,;t t
3622s,@sbindir@,$sbindir,;t t
3623s,@libexecdir@,$libexecdir,;t t
3624s,@datadir@,$datadir,;t t
3625s,@sysconfdir@,$sysconfdir,;t t
3626s,@sharedstatedir@,$sharedstatedir,;t t
3627s,@localstatedir@,$localstatedir,;t t
3628s,@libdir@,$libdir,;t t
3629s,@includedir@,$includedir,;t t
3630s,@oldincludedir@,$oldincludedir,;t t
3631s,@infodir@,$infodir,;t t
3632s,@mandir@,$mandir,;t t
3633s,@build_alias@,$build_alias,;t t
3634s,@host_alias@,$host_alias,;t t
3635s,@target_alias@,$target_alias,;t t
3636s,@DEFS@,$DEFS,;t t
3637s,@ECHO_C@,$ECHO_C,;t t
3638s,@ECHO_N@,$ECHO_N,;t t
3639s,@ECHO_T@,$ECHO_T,;t t
3640s,@LIBS@,$LIBS,;t t
3641s,@CC@,$CC,;t t
3642s,@CFLAGS@,$CFLAGS,;t t
3643s,@LDFLAGS@,$LDFLAGS,;t t
3644s,@CPPFLAGS@,$CPPFLAGS,;t t
3645s,@ac_ct_CC@,$ac_ct_CC,;t t
3646s,@EXEEXT@,$EXEEXT,;t t
3647s,@OBJEXT@,$OBJEXT,;t t
3648s,@CXX@,$CXX,;t t
3649s,@CXXFLAGS@,$CXXFLAGS,;t t
3650s,@ac_ct_CXX@,$ac_ct_CXX,;t t
3651s,@CPP@,$CPP,;t t
3652s,@EGREP@,$EGREP,;t t
3653s,@BOOST_DIR@,$BOOST_DIR,;t t
3654s,@LIBOBJS@,$LIBOBJS,;t t
3655s,@LTLIBOBJS@,$LTLIBOBJS,;t t
3656CEOF
3657
3658_ACEOF
3659
3660  cat >>$CONFIG_STATUS <<\_ACEOF
3661  # Split the substitutions into bite-sized pieces for seds with
3662  # small command number limits, like on Digital OSF/1 and HP-UX.
3663  ac_max_sed_lines=48
3664  ac_sed_frag=1 # Number of current file.
3665  ac_beg=1 # First line for current file.
3666  ac_end=$ac_max_sed_lines # Line after last line for current file.
3667  ac_more_lines=:
3668  ac_sed_cmds=
3669  while $ac_more_lines; do
3670    if test $ac_beg -gt 1; then
3671      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3672    else
3673      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3674    fi
3675    if test ! -s $tmp/subs.frag; then
3676      ac_more_lines=false
3677    else
3678      # The purpose of the label and of the branching condition is to
3679      # speed up the sed processing (if there are no `@' at all, there
3680      # is no need to browse any of the substitutions).
3681      # These are the two extra sed commands mentioned above.
3682      (echo ':t
3683  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
3684      if test -z "$ac_sed_cmds"; then
3685        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
3686      else
3687        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
3688      fi
3689      ac_sed_frag=`expr $ac_sed_frag + 1`
3690      ac_beg=$ac_end
3691      ac_end=`expr $ac_end + $ac_max_sed_lines`
3692    fi
3693  done
3694  if test -z "$ac_sed_cmds"; then
3695    ac_sed_cmds=cat
3696  fi
3697fi # test -n "$CONFIG_FILES"
3698
3699_ACEOF
3700cat >>$CONFIG_STATUS <<\_ACEOF
3701for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
3702  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3703  case $ac_file in
3704  - | *:- | *:-:* ) # input from stdin
3705        cat >$tmp/stdin
3706        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3707        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3708  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3709        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3710  * )   ac_file_in=$ac_file.in ;;
3711  esac
3712
3713  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
3714  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
3715$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3716         X"$ac_file" : 'X\(//\)[^/]' \| \
3717         X"$ac_file" : 'X\(//\)$' \| \
3718         X"$ac_file" : 'X\(/\)' \| \
3719         .     : '\(.\)' 2>/dev/null ||
3720echo X"$ac_file" |
3721    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3722          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3723          /^X\(\/\/\)$/{ s//\1/; q; }
3724          /^X\(\/\).*/{ s//\1/; q; }
3725          s/.*/./; q'`
3726  { if $as_mkdir_p; then
3727    mkdir -p "$ac_dir"
3728  else
3729    as_dir="$ac_dir"
3730    as_dirs=
3731    while test ! -d "$as_dir"; do
3732      as_dirs="$as_dir $as_dirs"
3733      as_dir=`(dirname "$as_dir") 2>/dev/null ||
3734$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3735         X"$as_dir" : 'X\(//\)[^/]' \| \
3736         X"$as_dir" : 'X\(//\)$' \| \
3737         X"$as_dir" : 'X\(/\)' \| \
3738         .     : '\(.\)' 2>/dev/null ||
3739echo X"$as_dir" |
3740    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3741          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3742          /^X\(\/\/\)$/{ s//\1/; q; }
3743          /^X\(\/\).*/{ s//\1/; q; }
3744          s/.*/./; q'`
3745    done
3746    test ! -n "$as_dirs" || mkdir $as_dirs
3747  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
3748echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
3749   { (exit 1); exit 1; }; }; }
3750
3751  ac_builddir=.
3752
3753if test "$ac_dir" != .; then
3754  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
3755  # A "../" for each directory in $ac_dir_suffix.
3756  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
3757else
3758  ac_dir_suffix= ac_top_builddir=
3759fi
3760
3761case $srcdir in
3762  .)  # No --srcdir option.  We are building in place.
3763    ac_srcdir=.
3764    if test -z "$ac_top_builddir"; then
3765       ac_top_srcdir=.
3766    else
3767       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
3768    fi ;;
3769  [\\/]* | ?:[\\/]* )  # Absolute path.
3770    ac_srcdir=$srcdir$ac_dir_suffix;
3771    ac_top_srcdir=$srcdir ;;
3772  *) # Relative path.
3773    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
3774    ac_top_srcdir=$ac_top_builddir$srcdir ;;
3775esac
3776
3777# Do not use `cd foo && pwd` to compute absolute paths, because
3778# the directories may not exist.
3779case `pwd` in
3780.) ac_abs_builddir="$ac_dir";;
3781*)
3782  case "$ac_dir" in
3783  .) ac_abs_builddir=`pwd`;;
3784  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
3785  *) ac_abs_builddir=`pwd`/"$ac_dir";;
3786  esac;;
3787esac
3788case $ac_abs_builddir in
3789.) ac_abs_top_builddir=${ac_top_builddir}.;;
3790*)
3791  case ${ac_top_builddir}. in
3792  .) ac_abs_top_builddir=$ac_abs_builddir;;
3793  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
3794  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
3795  esac;;
3796esac
3797case $ac_abs_builddir in
3798.) ac_abs_srcdir=$ac_srcdir;;
3799*)
3800  case $ac_srcdir in
3801  .) ac_abs_srcdir=$ac_abs_builddir;;
3802  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
3803  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
3804  esac;;
3805esac
3806case $ac_abs_builddir in
3807.) ac_abs_top_srcdir=$ac_top_srcdir;;
3808*)
3809  case $ac_top_srcdir in
3810  .) ac_abs_top_srcdir=$ac_abs_builddir;;
3811  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
3812  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
3813  esac;;
3814esac
3815
3816
3817
3818  if test x"$ac_file" != x-; then
3819    { echo "$as_me:$LINENO: creating $ac_file" >&5
3820echo "$as_me: creating $ac_file" >&6;}
3821    rm -f "$ac_file"
3822  fi
3823  # Let's still pretend it is `configure' which instantiates (i.e., don't
3824  # use $as_me), people would be surprised to read:
3825  #    /* config.h.  Generated by config.status.  */
3826  if test x"$ac_file" = x-; then
3827    configure_input=
3828  else
3829    configure_input="$ac_file.  "
3830  fi
3831  configure_input=$configure_input"Generated from `echo $ac_file_in |
3832                                     sed 's,.*/,,'` by configure."
3833
3834  # First look for the input files in the build tree, otherwise in the
3835  # src tree.
3836  ac_file_inputs=`IFS=:
3837    for f in $ac_file_in; do
3838      case $f in
3839      -) echo $tmp/stdin ;;
3840      [\\/$]*)
3841         # Absolute (can't be DOS-style, as IFS=:)
3842         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
3843echo "$as_me: error: cannot find input file: $f" >&2;}
3844   { (exit 1); exit 1; }; }
3845         echo "$f";;
3846      *) # Relative
3847         if test -f "$f"; then
3848           # Build tree
3849           echo "$f"
3850         elif test -f "$srcdir/$f"; then
3851           # Source tree
3852           echo "$srcdir/$f"
3853         else
3854           # /dev/null tree
3855           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
3856echo "$as_me: error: cannot find input file: $f" >&2;}
3857   { (exit 1); exit 1; }; }
3858         fi;;
3859      esac
3860    done` || { (exit 1); exit 1; }
3861_ACEOF
3862cat >>$CONFIG_STATUS <<_ACEOF
3863  sed "$ac_vpsub
3864$extrasub
3865_ACEOF
3866cat >>$CONFIG_STATUS <<\_ACEOF
3867:t
3868/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
3869s,@configure_input@,$configure_input,;t t
3870s,@srcdir@,$ac_srcdir,;t t
3871s,@abs_srcdir@,$ac_abs_srcdir,;t t
3872s,@top_srcdir@,$ac_top_srcdir,;t t
3873s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
3874s,@builddir@,$ac_builddir,;t t
3875s,@abs_builddir@,$ac_abs_builddir,;t t
3876s,@top_builddir@,$ac_top_builddir,;t t
3877s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
3878" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
3879  rm -f $tmp/stdin
3880  if test x"$ac_file" != x-; then
3881    mv $tmp/out $ac_file
3882  else
3883    cat $tmp/out
3884    rm -f $tmp/out
3885  fi
3886
3887done
3888_ACEOF
3889
3890cat >>$CONFIG_STATUS <<\_ACEOF
3891
3892{ (exit 0); exit 0; }
3893_ACEOF
3894chmod +x $CONFIG_STATUS
3895ac_clean_files=$ac_clean_files_save
3896
3897
3898# configure is writing to config.log, and then calls config.status.
3899# config.status does its own redirection, appending to config.log.
3900# Unfortunately, on DOS this fails, as config.log is still kept open
3901# by configure, so config.status won't be able to write to it; its
3902# output is simply discarded.  So we exec the FD to /dev/null,
3903# effectively closing config.log, so it can be properly (re)opened and
3904# appended to by config.status.  When coming back to configure, we
3905# need to make the FD available again.
3906if test "$no_create" != yes; then
3907  ac_cs_success=:
3908  ac_config_status_args=
3909  test "$silent" = yes &&
3910    ac_config_status_args="$ac_config_status_args --quiet"
3911  exec 5>/dev/null
3912  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
3913  exec 5>>config.log
3914  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
3915  # would make configure fail if this is the last instruction.
3916  $ac_cs_success || { (exit 1); exit 1; }
3917fi
3918
Note: See TracBrowser for help on using the browser.