1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for units 0.7-2.
4#
5# Report bugs to <edzer.pebesma@uni-muenster.de>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1"
202  if (eval "$as_required") 2>/dev/null; then :
203  as_have_required=yes
204else
205  as_have_required=no
206fi
207  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209else
210  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211as_found=false
212for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213do
214  IFS=$as_save_IFS
215  test -z "$as_dir" && as_dir=.
216  as_found=:
217  case $as_dir in #(
218	 /*)
219	   for as_base in sh bash ksh sh5; do
220	     # Try only shells that exist, to save several forks.
221	     as_shell=$as_dir/$as_base
222	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224  CONFIG_SHELL=$as_shell as_have_required=yes
225		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226  break 2
227fi
228fi
229	   done;;
230       esac
231  as_found=false
232done
233$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235  CONFIG_SHELL=$SHELL as_have_required=yes
236fi; }
237IFS=$as_save_IFS
238
239
240      if test "x$CONFIG_SHELL" != x; then :
241  export CONFIG_SHELL
242             # We cannot yet assume a decent shell, so we have to provide a
243# neutralization value for shells without unset; and this also
244# works around shells that cannot unset nonexistent variables.
245# Preserve -v and -x to the replacement shell.
246BASH_ENV=/dev/null
247ENV=/dev/null
248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249case $- in # ((((
250  *v*x* | *x*v* ) as_opts=-vx ;;
251  *v* ) as_opts=-v ;;
252  *x* ) as_opts=-x ;;
253  * ) as_opts= ;;
254esac
255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256# Admittedly, this is quite paranoid, since all the known shells bail
257# out after a failed `exec'.
258$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259exit 255
260fi
261
262    if test x$as_have_required = xno; then :
263  $as_echo "$0: This script requires a shell more modern than all"
264  $as_echo "$0: the shells that I found on your system."
265  if test x${ZSH_VERSION+set} = xset ; then
266    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268  else
269    $as_echo "$0: Please tell bug-autoconf@gnu.org and
270$0: edzer.pebesma@uni-muenster.de about your system,
271$0: including any error possibly output before this
272$0: message. Then install a modern shell, or manually run
273$0: the script under such a shell if you do have one."
274  fi
275  exit 1
276fi
277fi
278fi
279SHELL=${CONFIG_SHELL-/bin/sh}
280export SHELL
281# Unset more variables known to interfere with behavior of common tools.
282CLICOLOR_FORCE= GREP_OPTIONS=
283unset CLICOLOR_FORCE GREP_OPTIONS
284
285## --------------------- ##
286## M4sh Shell Functions. ##
287## --------------------- ##
288# as_fn_unset VAR
289# ---------------
290# Portably unset VAR.
291as_fn_unset ()
292{
293  { eval $1=; unset $1;}
294}
295as_unset=as_fn_unset
296
297# as_fn_set_status STATUS
298# -----------------------
299# Set $? to STATUS, without forking.
300as_fn_set_status ()
301{
302  return $1
303} # as_fn_set_status
304
305# as_fn_exit STATUS
306# -----------------
307# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308as_fn_exit ()
309{
310  set +e
311  as_fn_set_status $1
312  exit $1
313} # as_fn_exit
314
315# as_fn_mkdir_p
316# -------------
317# Create "$as_dir" as a directory, including parents if necessary.
318as_fn_mkdir_p ()
319{
320
321  case $as_dir in #(
322  -*) as_dir=./$as_dir;;
323  esac
324  test -d "$as_dir" || eval $as_mkdir_p || {
325    as_dirs=
326    while :; do
327      case $as_dir in #(
328      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329      *) as_qdir=$as_dir;;
330      esac
331      as_dirs="'$as_qdir' $as_dirs"
332      as_dir=`$as_dirname -- "$as_dir" ||
333$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334	 X"$as_dir" : 'X\(//\)[^/]' \| \
335	 X"$as_dir" : 'X\(//\)$' \| \
336	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337$as_echo X"$as_dir" |
338    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339	    s//\1/
340	    q
341	  }
342	  /^X\(\/\/\)[^/].*/{
343	    s//\1/
344	    q
345	  }
346	  /^X\(\/\/\)$/{
347	    s//\1/
348	    q
349	  }
350	  /^X\(\/\).*/{
351	    s//\1/
352	    q
353	  }
354	  s/.*/./; q'`
355      test -d "$as_dir" && break
356    done
357    test -z "$as_dirs" || eval "mkdir $as_dirs"
358  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
359
360
361} # as_fn_mkdir_p
362
363# as_fn_executable_p FILE
364# -----------------------
365# Test if FILE is an executable regular file.
366as_fn_executable_p ()
367{
368  test -f "$1" && test -x "$1"
369} # as_fn_executable_p
370# as_fn_append VAR VALUE
371# ----------------------
372# Append the text in VALUE to the end of the definition contained in VAR. Take
373# advantage of any shell optimizations that allow amortized linear growth over
374# repeated appends, instead of the typical quadratic growth present in naive
375# implementations.
376if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377  eval 'as_fn_append ()
378  {
379    eval $1+=\$2
380  }'
381else
382  as_fn_append ()
383  {
384    eval $1=\$$1\$2
385  }
386fi # as_fn_append
387
388# as_fn_arith ARG...
389# ------------------
390# Perform arithmetic evaluation on the ARGs, and store the result in the
391# global $as_val. Take advantage of shells that can avoid forks. The arguments
392# must be portable across $(()) and expr.
393if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394  eval 'as_fn_arith ()
395  {
396    as_val=$(( $* ))
397  }'
398else
399  as_fn_arith ()
400  {
401    as_val=`expr "$@" || test $? -eq 1`
402  }
403fi # as_fn_arith
404
405
406# as_fn_error STATUS ERROR [LINENO LOG_FD]
407# ----------------------------------------
408# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410# script with STATUS, using 1 if that was 0.
411as_fn_error ()
412{
413  as_status=$1; test $as_status -eq 0 && as_status=1
414  if test "$4"; then
415    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
417  fi
418  $as_echo "$as_me: error: $2" >&2
419  as_fn_exit $as_status
420} # as_fn_error
421
422if expr a : '\(a\)' >/dev/null 2>&1 &&
423   test "X`expr 00001 : '.*\(...\)'`" = X001; then
424  as_expr=expr
425else
426  as_expr=false
427fi
428
429if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430  as_basename=basename
431else
432  as_basename=false
433fi
434
435if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436  as_dirname=dirname
437else
438  as_dirname=false
439fi
440
441as_me=`$as_basename -- "$0" ||
442$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443	 X"$0" : 'X\(//\)$' \| \
444	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445$as_echo X/"$0" |
446    sed '/^.*\/\([^/][^/]*\)\/*$/{
447	    s//\1/
448	    q
449	  }
450	  /^X\/\(\/\/\)$/{
451	    s//\1/
452	    q
453	  }
454	  /^X\/\(\/\).*/{
455	    s//\1/
456	    q
457	  }
458	  s/.*/./; q'`
459
460# Avoid depending upon Character Ranges.
461as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464as_cr_digits='0123456789'
465as_cr_alnum=$as_cr_Letters$as_cr_digits
466
467
468  as_lineno_1=$LINENO as_lineno_1a=$LINENO
469  as_lineno_2=$LINENO as_lineno_2a=$LINENO
470  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
473  sed -n '
474    p
475    /[$]LINENO/=
476  ' <$as_myself |
477    sed '
478      s/[$]LINENO.*/&-/
479      t lineno
480      b
481      :lineno
482      N
483      :loop
484      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485      t loop
486      s/-\n.*//
487    ' >$as_me.lineno &&
488  chmod +x "$as_me.lineno" ||
489    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
490
491  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492  # already done that, so ensure we don't try to do so again and fall
493  # in an infinite loop.  This has already happened in practice.
494  _as_can_reexec=no; export _as_can_reexec
495  # Don't try to exec as it changes $[0], causing all sort of problems
496  # (the dirname of $[0] is not the place where we might find the
497  # original and so on.  Autoconf is especially sensitive to this).
498  . "./$as_me.lineno"
499  # Exit status is that of the last command.
500  exit
501}
502
503ECHO_C= ECHO_N= ECHO_T=
504case `echo -n x` in #(((((
505-n*)
506  case `echo 'xy\c'` in
507  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
508  xy)  ECHO_C='\c';;
509  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
510       ECHO_T='	';;
511  esac;;
512*)
513  ECHO_N='-n';;
514esac
515
516rm -f conf$$ conf$$.exe conf$$.file
517if test -d conf$$.dir; then
518  rm -f conf$$.dir/conf$$.file
519else
520  rm -f conf$$.dir
521  mkdir conf$$.dir 2>/dev/null
522fi
523if (echo >conf$$.file) 2>/dev/null; then
524  if ln -s conf$$.file conf$$ 2>/dev/null; then
525    as_ln_s='ln -s'
526    # ... but there are two gotchas:
527    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529    # In both cases, we have to default to `cp -pR'.
530    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531      as_ln_s='cp -pR'
532  elif ln conf$$.file conf$$ 2>/dev/null; then
533    as_ln_s=ln
534  else
535    as_ln_s='cp -pR'
536  fi
537else
538  as_ln_s='cp -pR'
539fi
540rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541rmdir conf$$.dir 2>/dev/null
542
543if mkdir -p . 2>/dev/null; then
544  as_mkdir_p='mkdir -p "$as_dir"'
545else
546  test -d ./-p && rmdir ./-p
547  as_mkdir_p=false
548fi
549
550as_test_x='test -x'
551as_executable_p=as_fn_executable_p
552
553# Sed expression to map a string onto a valid CPP name.
554as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
555
556# Sed expression to map a string onto a valid variable name.
557as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
558
559
560test -n "$DJDIR" || exec 7<&0 </dev/null
561exec 6>&1
562
563# Name of the host.
564# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565# so uname gets run too.
566ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
567
568#
569# Initializations.
570#
571ac_default_prefix=/usr/local
572ac_clean_files=
573ac_config_libobj_dir=.
574LIBOBJS=
575cross_compiling=no
576subdirs=
577MFLAGS=
578MAKEFLAGS=
579
580# Identity of this package.
581PACKAGE_NAME='units'
582PACKAGE_TARNAME='units'
583PACKAGE_VERSION='0.7-2'
584PACKAGE_STRING='units 0.7-2'
585PACKAGE_BUGREPORT='edzer.pebesma@uni-muenster.de'
586PACKAGE_URL=''
587
588# Factoring default headers for most tests.
589ac_includes_default="\
590#include <stdio.h>
591#ifdef HAVE_SYS_TYPES_H
592# include <sys/types.h>
593#endif
594#ifdef HAVE_SYS_STAT_H
595# include <sys/stat.h>
596#endif
597#ifdef STDC_HEADERS
598# include <stdlib.h>
599# include <stddef.h>
600#else
601# ifdef HAVE_STDLIB_H
602#  include <stdlib.h>
603# endif
604#endif
605#ifdef HAVE_STRING_H
606# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
607#  include <memory.h>
608# endif
609# include <string.h>
610#endif
611#ifdef HAVE_STRINGS_H
612# include <strings.h>
613#endif
614#ifdef HAVE_INTTYPES_H
615# include <inttypes.h>
616#endif
617#ifdef HAVE_STDINT_H
618# include <stdint.h>
619#endif
620#ifdef HAVE_UNISTD_H
621# include <unistd.h>
622#endif"
623
624ac_subst_vars='LTLIBOBJS
625UDUNITS2_DIR
626UD_CPPFLAGS
627ac_ct_CC
628CFLAGS
629CC
630LIBOBJS
631EGREP
632GREP
633CXXCPP
634OBJEXT
635EXEEXT
636ac_ct_CXX
637CPPFLAGS
638LDFLAGS
639CXXFLAGS
640CXX
641target_alias
642host_alias
643build_alias
644LIBS
645ECHO_T
646ECHO_N
647ECHO_C
648DEFS
649mandir
650localedir
651libdir
652psdir
653pdfdir
654dvidir
655htmldir
656infodir
657docdir
658oldincludedir
659includedir
660localstatedir
661sharedstatedir
662sysconfdir
663datadir
664datarootdir
665libexecdir
666sbindir
667bindir
668program_transform_name
669prefix
670exec_prefix
671PACKAGE_URL
672PACKAGE_BUGREPORT
673PACKAGE_STRING
674PACKAGE_VERSION
675PACKAGE_TARNAME
676PACKAGE_NAME
677PATH_SEPARATOR
678SHELL'
679ac_subst_files=''
680ac_user_opts='
681enable_option_checking
682with_udunits2_include
683with_udunits2_lib
684'
685      ac_precious_vars='build_alias
686host_alias
687target_alias
688CXX
689CXXFLAGS
690LDFLAGS
691LIBS
692CPPFLAGS
693CCC
694CXXCPP
695CC
696CFLAGS'
697
698
699# Initialize some variables set by options.
700ac_init_help=
701ac_init_version=false
702ac_unrecognized_opts=
703ac_unrecognized_sep=
704# The variables have the same names as the options, with
705# dashes changed to underlines.
706cache_file=/dev/null
707exec_prefix=NONE
708no_create=
709no_recursion=
710prefix=NONE
711program_prefix=NONE
712program_suffix=NONE
713program_transform_name=s,x,x,
714silent=
715site=
716srcdir=
717verbose=
718x_includes=NONE
719x_libraries=NONE
720
721# Installation directory options.
722# These are left unexpanded so users can "make install exec_prefix=/foo"
723# and all the variables that are supposed to be based on exec_prefix
724# by default will actually change.
725# Use braces instead of parens because sh, perl, etc. also accept them.
726# (The list follows the same order as the GNU Coding Standards.)
727bindir='${exec_prefix}/bin'
728sbindir='${exec_prefix}/sbin'
729libexecdir='${exec_prefix}/libexec'
730datarootdir='${prefix}/share'
731datadir='${datarootdir}'
732sysconfdir='${prefix}/etc'
733sharedstatedir='${prefix}/com'
734localstatedir='${prefix}/var'
735includedir='${prefix}/include'
736oldincludedir='/usr/include'
737docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
738infodir='${datarootdir}/info'
739htmldir='${docdir}'
740dvidir='${docdir}'
741pdfdir='${docdir}'
742psdir='${docdir}'
743libdir='${exec_prefix}/lib'
744localedir='${datarootdir}/locale'
745mandir='${datarootdir}/man'
746
747ac_prev=
748ac_dashdash=
749for ac_option
750do
751  # If the previous option needs an argument, assign it.
752  if test -n "$ac_prev"; then
753    eval $ac_prev=\$ac_option
754    ac_prev=
755    continue
756  fi
757
758  case $ac_option in
759  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
760  *=)   ac_optarg= ;;
761  *)    ac_optarg=yes ;;
762  esac
763
764  # Accept the important Cygnus configure options, so we can diagnose typos.
765
766  case $ac_dashdash$ac_option in
767  --)
768    ac_dashdash=yes ;;
769
770  -bindir | --bindir | --bindi | --bind | --bin | --bi)
771    ac_prev=bindir ;;
772  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
773    bindir=$ac_optarg ;;
774
775  -build | --build | --buil | --bui | --bu)
776    ac_prev=build_alias ;;
777  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
778    build_alias=$ac_optarg ;;
779
780  -cache-file | --cache-file | --cache-fil | --cache-fi \
781  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
782    ac_prev=cache_file ;;
783  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
784  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
785    cache_file=$ac_optarg ;;
786
787  --config-cache | -C)
788    cache_file=config.cache ;;
789
790  -datadir | --datadir | --datadi | --datad)
791    ac_prev=datadir ;;
792  -datadir=* | --datadir=* | --datadi=* | --datad=*)
793    datadir=$ac_optarg ;;
794
795  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
796  | --dataroo | --dataro | --datar)
797    ac_prev=datarootdir ;;
798  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
799  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
800    datarootdir=$ac_optarg ;;
801
802  -disable-* | --disable-*)
803    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
804    # Reject names that are not valid shell variable names.
805    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
806      as_fn_error $? "invalid feature name: $ac_useropt"
807    ac_useropt_orig=$ac_useropt
808    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
809    case $ac_user_opts in
810      *"
811"enable_$ac_useropt"
812"*) ;;
813      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
814	 ac_unrecognized_sep=', ';;
815    esac
816    eval enable_$ac_useropt=no ;;
817
818  -docdir | --docdir | --docdi | --doc | --do)
819    ac_prev=docdir ;;
820  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
821    docdir=$ac_optarg ;;
822
823  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
824    ac_prev=dvidir ;;
825  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
826    dvidir=$ac_optarg ;;
827
828  -enable-* | --enable-*)
829    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
830    # Reject names that are not valid shell variable names.
831    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
832      as_fn_error $? "invalid feature name: $ac_useropt"
833    ac_useropt_orig=$ac_useropt
834    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
835    case $ac_user_opts in
836      *"
837"enable_$ac_useropt"
838"*) ;;
839      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
840	 ac_unrecognized_sep=', ';;
841    esac
842    eval enable_$ac_useropt=\$ac_optarg ;;
843
844  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
845  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
846  | --exec | --exe | --ex)
847    ac_prev=exec_prefix ;;
848  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
849  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
850  | --exec=* | --exe=* | --ex=*)
851    exec_prefix=$ac_optarg ;;
852
853  -gas | --gas | --ga | --g)
854    # Obsolete; use --with-gas.
855    with_gas=yes ;;
856
857  -help | --help | --hel | --he | -h)
858    ac_init_help=long ;;
859  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
860    ac_init_help=recursive ;;
861  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
862    ac_init_help=short ;;
863
864  -host | --host | --hos | --ho)
865    ac_prev=host_alias ;;
866  -host=* | --host=* | --hos=* | --ho=*)
867    host_alias=$ac_optarg ;;
868
869  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
870    ac_prev=htmldir ;;
871  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
872  | --ht=*)
873    htmldir=$ac_optarg ;;
874
875  -includedir | --includedir | --includedi | --included | --include \
876  | --includ | --inclu | --incl | --inc)
877    ac_prev=includedir ;;
878  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
879  | --includ=* | --inclu=* | --incl=* | --inc=*)
880    includedir=$ac_optarg ;;
881
882  -infodir | --infodir | --infodi | --infod | --info | --inf)
883    ac_prev=infodir ;;
884  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
885    infodir=$ac_optarg ;;
886
887  -libdir | --libdir | --libdi | --libd)
888    ac_prev=libdir ;;
889  -libdir=* | --libdir=* | --libdi=* | --libd=*)
890    libdir=$ac_optarg ;;
891
892  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
893  | --libexe | --libex | --libe)
894    ac_prev=libexecdir ;;
895  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
896  | --libexe=* | --libex=* | --libe=*)
897    libexecdir=$ac_optarg ;;
898
899  -localedir | --localedir | --localedi | --localed | --locale)
900    ac_prev=localedir ;;
901  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
902    localedir=$ac_optarg ;;
903
904  -localstatedir | --localstatedir | --localstatedi | --localstated \
905  | --localstate | --localstat | --localsta | --localst | --locals)
906    ac_prev=localstatedir ;;
907  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
908  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
909    localstatedir=$ac_optarg ;;
910
911  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
912    ac_prev=mandir ;;
913  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
914    mandir=$ac_optarg ;;
915
916  -nfp | --nfp | --nf)
917    # Obsolete; use --without-fp.
918    with_fp=no ;;
919
920  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
921  | --no-cr | --no-c | -n)
922    no_create=yes ;;
923
924  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
925  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
926    no_recursion=yes ;;
927
928  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
929  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
930  | --oldin | --oldi | --old | --ol | --o)
931    ac_prev=oldincludedir ;;
932  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
933  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
934  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
935    oldincludedir=$ac_optarg ;;
936
937  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
938    ac_prev=prefix ;;
939  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
940    prefix=$ac_optarg ;;
941
942  -program-prefix | --program-prefix | --program-prefi | --program-pref \
943  | --program-pre | --program-pr | --program-p)
944    ac_prev=program_prefix ;;
945  -program-prefix=* | --program-prefix=* | --program-prefi=* \
946  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
947    program_prefix=$ac_optarg ;;
948
949  -program-suffix | --program-suffix | --program-suffi | --program-suff \
950  | --program-suf | --program-su | --program-s)
951    ac_prev=program_suffix ;;
952  -program-suffix=* | --program-suffix=* | --program-suffi=* \
953  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
954    program_suffix=$ac_optarg ;;
955
956  -program-transform-name | --program-transform-name \
957  | --program-transform-nam | --program-transform-na \
958  | --program-transform-n | --program-transform- \
959  | --program-transform | --program-transfor \
960  | --program-transfo | --program-transf \
961  | --program-trans | --program-tran \
962  | --progr-tra | --program-tr | --program-t)
963    ac_prev=program_transform_name ;;
964  -program-transform-name=* | --program-transform-name=* \
965  | --program-transform-nam=* | --program-transform-na=* \
966  | --program-transform-n=* | --program-transform-=* \
967  | --program-transform=* | --program-transfor=* \
968  | --program-transfo=* | --program-transf=* \
969  | --program-trans=* | --program-tran=* \
970  | --progr-tra=* | --program-tr=* | --program-t=*)
971    program_transform_name=$ac_optarg ;;
972
973  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
974    ac_prev=pdfdir ;;
975  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
976    pdfdir=$ac_optarg ;;
977
978  -psdir | --psdir | --psdi | --psd | --ps)
979    ac_prev=psdir ;;
980  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
981    psdir=$ac_optarg ;;
982
983  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
984  | -silent | --silent | --silen | --sile | --sil)
985    silent=yes ;;
986
987  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
988    ac_prev=sbindir ;;
989  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
990  | --sbi=* | --sb=*)
991    sbindir=$ac_optarg ;;
992
993  -sharedstatedir | --sharedstatedir | --sharedstatedi \
994  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
995  | --sharedst | --shareds | --shared | --share | --shar \
996  | --sha | --sh)
997    ac_prev=sharedstatedir ;;
998  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
999  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1000  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1001  | --sha=* | --sh=*)
1002    sharedstatedir=$ac_optarg ;;
1003
1004  -site | --site | --sit)
1005    ac_prev=site ;;
1006  -site=* | --site=* | --sit=*)
1007    site=$ac_optarg ;;
1008
1009  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1010    ac_prev=srcdir ;;
1011  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1012    srcdir=$ac_optarg ;;
1013
1014  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1015  | --syscon | --sysco | --sysc | --sys | --sy)
1016    ac_prev=sysconfdir ;;
1017  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1018  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1019    sysconfdir=$ac_optarg ;;
1020
1021  -target | --target | --targe | --targ | --tar | --ta | --t)
1022    ac_prev=target_alias ;;
1023  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1024    target_alias=$ac_optarg ;;
1025
1026  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1027    verbose=yes ;;
1028
1029  -version | --version | --versio | --versi | --vers | -V)
1030    ac_init_version=: ;;
1031
1032  -with-* | --with-*)
1033    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1034    # Reject names that are not valid shell variable names.
1035    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1036      as_fn_error $? "invalid package name: $ac_useropt"
1037    ac_useropt_orig=$ac_useropt
1038    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1039    case $ac_user_opts in
1040      *"
1041"with_$ac_useropt"
1042"*) ;;
1043      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1044	 ac_unrecognized_sep=', ';;
1045    esac
1046    eval with_$ac_useropt=\$ac_optarg ;;
1047
1048  -without-* | --without-*)
1049    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1050    # Reject names that are not valid shell variable names.
1051    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1052      as_fn_error $? "invalid package name: $ac_useropt"
1053    ac_useropt_orig=$ac_useropt
1054    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1055    case $ac_user_opts in
1056      *"
1057"with_$ac_useropt"
1058"*) ;;
1059      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1060	 ac_unrecognized_sep=', ';;
1061    esac
1062    eval with_$ac_useropt=no ;;
1063
1064  --x)
1065    # Obsolete; use --with-x.
1066    with_x=yes ;;
1067
1068  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1069  | --x-incl | --x-inc | --x-in | --x-i)
1070    ac_prev=x_includes ;;
1071  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1072  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1073    x_includes=$ac_optarg ;;
1074
1075  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1076  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1077    ac_prev=x_libraries ;;
1078  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1079  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1080    x_libraries=$ac_optarg ;;
1081
1082  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1083Try \`$0 --help' for more information"
1084    ;;
1085
1086  *=*)
1087    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1088    # Reject names that are not valid shell variable names.
1089    case $ac_envvar in #(
1090      '' | [0-9]* | *[!_$as_cr_alnum]* )
1091      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1092    esac
1093    eval $ac_envvar=\$ac_optarg
1094    export $ac_envvar ;;
1095
1096  *)
1097    # FIXME: should be removed in autoconf 3.0.
1098    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1099    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1100      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1101    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1102    ;;
1103
1104  esac
1105done
1106
1107if test -n "$ac_prev"; then
1108  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1109  as_fn_error $? "missing argument to $ac_option"
1110fi
1111
1112if test -n "$ac_unrecognized_opts"; then
1113  case $enable_option_checking in
1114    no) ;;
1115    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1116    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1117  esac
1118fi
1119
1120# Check all directory arguments for consistency.
1121for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1122		datadir sysconfdir sharedstatedir localstatedir includedir \
1123		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1124		libdir localedir mandir
1125do
1126  eval ac_val=\$$ac_var
1127  # Remove trailing slashes.
1128  case $ac_val in
1129    */ )
1130      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1131      eval $ac_var=\$ac_val;;
1132  esac
1133  # Be sure to have absolute directory names.
1134  case $ac_val in
1135    [\\/$]* | ?:[\\/]* )  continue;;
1136    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1137  esac
1138  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1139done
1140
1141# There might be people who depend on the old broken behavior: `$host'
1142# used to hold the argument of --host etc.
1143# FIXME: To remove some day.
1144build=$build_alias
1145host=$host_alias
1146target=$target_alias
1147
1148# FIXME: To remove some day.
1149if test "x$host_alias" != x; then
1150  if test "x$build_alias" = x; then
1151    cross_compiling=maybe
1152  elif test "x$build_alias" != "x$host_alias"; then
1153    cross_compiling=yes
1154  fi
1155fi
1156
1157ac_tool_prefix=
1158test -n "$host_alias" && ac_tool_prefix=$host_alias-
1159
1160test "$silent" = yes && exec 6>/dev/null
1161
1162
1163ac_pwd=`pwd` && test -n "$ac_pwd" &&
1164ac_ls_di=`ls -di .` &&
1165ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1166  as_fn_error $? "working directory cannot be determined"
1167test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1168  as_fn_error $? "pwd does not report name of working directory"
1169
1170
1171# Find the source files, if location was not specified.
1172if test -z "$srcdir"; then
1173  ac_srcdir_defaulted=yes
1174  # Try the directory containing this script, then the parent directory.
1175  ac_confdir=`$as_dirname -- "$as_myself" ||
1176$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1177	 X"$as_myself" : 'X\(//\)[^/]' \| \
1178	 X"$as_myself" : 'X\(//\)$' \| \
1179	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1180$as_echo X"$as_myself" |
1181    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1182	    s//\1/
1183	    q
1184	  }
1185	  /^X\(\/\/\)[^/].*/{
1186	    s//\1/
1187	    q
1188	  }
1189	  /^X\(\/\/\)$/{
1190	    s//\1/
1191	    q
1192	  }
1193	  /^X\(\/\).*/{
1194	    s//\1/
1195	    q
1196	  }
1197	  s/.*/./; q'`
1198  srcdir=$ac_confdir
1199  if test ! -r "$srcdir/$ac_unique_file"; then
1200    srcdir=..
1201  fi
1202else
1203  ac_srcdir_defaulted=no
1204fi
1205if test ! -r "$srcdir/$ac_unique_file"; then
1206  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1207  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1208fi
1209ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1210ac_abs_confdir=`(
1211	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1212	pwd)`
1213# When building in place, set srcdir=.
1214if test "$ac_abs_confdir" = "$ac_pwd"; then
1215  srcdir=.
1216fi
1217# Remove unnecessary trailing slashes from srcdir.
1218# Double slashes in file names in object file debugging info
1219# mess up M-x gdb in Emacs.
1220case $srcdir in
1221*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1222esac
1223for ac_var in $ac_precious_vars; do
1224  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1225  eval ac_env_${ac_var}_value=\$${ac_var}
1226  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1227  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1228done
1229
1230#
1231# Report the --help message.
1232#
1233if test "$ac_init_help" = "long"; then
1234  # Omit some internal or obsolete options to make the list less imposing.
1235  # This message is too long to be a string in the A/UX 3.1 sh.
1236  cat <<_ACEOF
1237\`configure' configures units 0.7-2 to adapt to many kinds of systems.
1238
1239Usage: $0 [OPTION]... [VAR=VALUE]...
1240
1241To assign environment variables (e.g., CC, CFLAGS...), specify them as
1242VAR=VALUE.  See below for descriptions of some of the useful variables.
1243
1244Defaults for the options are specified in brackets.
1245
1246Configuration:
1247  -h, --help              display this help and exit
1248      --help=short        display options specific to this package
1249      --help=recursive    display the short help of all the included packages
1250  -V, --version           display version information and exit
1251  -q, --quiet, --silent   do not print \`checking ...' messages
1252      --cache-file=FILE   cache test results in FILE [disabled]
1253  -C, --config-cache      alias for \`--cache-file=config.cache'
1254  -n, --no-create         do not create output files
1255      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1256
1257Installation directories:
1258  --prefix=PREFIX         install architecture-independent files in PREFIX
1259                          [$ac_default_prefix]
1260  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1261                          [PREFIX]
1262
1263By default, \`make install' will install all the files in
1264\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1265an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1266for instance \`--prefix=\$HOME'.
1267
1268For better control, use the options below.
1269
1270Fine tuning of the installation directories:
1271  --bindir=DIR            user executables [EPREFIX/bin]
1272  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1273  --libexecdir=DIR        program executables [EPREFIX/libexec]
1274  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1275  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1276  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1277  --libdir=DIR            object code libraries [EPREFIX/lib]
1278  --includedir=DIR        C header files [PREFIX/include]
1279  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1280  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1281  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1282  --infodir=DIR           info documentation [DATAROOTDIR/info]
1283  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1284  --mandir=DIR            man documentation [DATAROOTDIR/man]
1285  --docdir=DIR            documentation root [DATAROOTDIR/doc/units]
1286  --htmldir=DIR           html documentation [DOCDIR]
1287  --dvidir=DIR            dvi documentation [DOCDIR]
1288  --pdfdir=DIR            pdf documentation [DOCDIR]
1289  --psdir=DIR             ps documentation [DOCDIR]
1290_ACEOF
1291
1292  cat <<\_ACEOF
1293_ACEOF
1294fi
1295
1296if test -n "$ac_init_help"; then
1297  case $ac_init_help in
1298     short | recursive ) echo "Configuration of units 0.7-2:";;
1299   esac
1300  cat <<\_ACEOF
1301
1302Optional Packages:
1303  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1304  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1305  --with-udunits2-include=DIR
1306                          location of the udunits2 header files
1307  --with-udunits2-lib=DIR location of the udunits2 libraries
1308
1309Some influential environment variables:
1310  CXX         C++ compiler command
1311  CXXFLAGS    C++ compiler flags
1312  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1313              nonstandard directory <lib dir>
1314  LIBS        libraries to pass to the linker, e.g. -l<library>
1315  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1316              you have headers in a nonstandard directory <include dir>
1317  CXXCPP      C++ preprocessor
1318  CC          C compiler command
1319  CFLAGS      C compiler flags
1320
1321Use these variables to override the choices made by `configure' or to help
1322it to find libraries and programs with nonstandard names/locations.
1323
1324Report bugs to <edzer.pebesma@uni-muenster.de>.
1325_ACEOF
1326ac_status=$?
1327fi
1328
1329if test "$ac_init_help" = "recursive"; then
1330  # If there are subdirs, report their specific --help.
1331  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1332    test -d "$ac_dir" ||
1333      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1334      continue
1335    ac_builddir=.
1336
1337case "$ac_dir" in
1338.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1339*)
1340  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1341  # A ".." for each directory in $ac_dir_suffix.
1342  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1343  case $ac_top_builddir_sub in
1344  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1345  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1346  esac ;;
1347esac
1348ac_abs_top_builddir=$ac_pwd
1349ac_abs_builddir=$ac_pwd$ac_dir_suffix
1350# for backward compatibility:
1351ac_top_builddir=$ac_top_build_prefix
1352
1353case $srcdir in
1354  .)  # We are building in place.
1355    ac_srcdir=.
1356    ac_top_srcdir=$ac_top_builddir_sub
1357    ac_abs_top_srcdir=$ac_pwd ;;
1358  [\\/]* | ?:[\\/]* )  # Absolute name.
1359    ac_srcdir=$srcdir$ac_dir_suffix;
1360    ac_top_srcdir=$srcdir
1361    ac_abs_top_srcdir=$srcdir ;;
1362  *) # Relative name.
1363    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1364    ac_top_srcdir=$ac_top_build_prefix$srcdir
1365    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1366esac
1367ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1368
1369    cd "$ac_dir" || { ac_status=$?; continue; }
1370    # Check for guested configure.
1371    if test -f "$ac_srcdir/configure.gnu"; then
1372      echo &&
1373      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1374    elif test -f "$ac_srcdir/configure"; then
1375      echo &&
1376      $SHELL "$ac_srcdir/configure" --help=recursive
1377    else
1378      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1379    fi || ac_status=$?
1380    cd "$ac_pwd" || { ac_status=$?; break; }
1381  done
1382fi
1383
1384test -n "$ac_init_help" && exit $ac_status
1385if $ac_init_version; then
1386  cat <<\_ACEOF
1387units configure 0.7-2
1388generated by GNU Autoconf 2.69
1389
1390Copyright (C) 2012 Free Software Foundation, Inc.
1391This configure script is free software; the Free Software Foundation
1392gives unlimited permission to copy, distribute and modify it.
1393_ACEOF
1394  exit
1395fi
1396
1397## ------------------------ ##
1398## Autoconf initialization. ##
1399## ------------------------ ##
1400
1401# ac_fn_cxx_try_compile LINENO
1402# ----------------------------
1403# Try to compile conftest.$ac_ext, and return whether this succeeded.
1404ac_fn_cxx_try_compile ()
1405{
1406  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1407  rm -f conftest.$ac_objext
1408  if { { ac_try="$ac_compile"
1409case "(($ac_try" in
1410  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1411  *) ac_try_echo=$ac_try;;
1412esac
1413eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1414$as_echo "$ac_try_echo"; } >&5
1415  (eval "$ac_compile") 2>conftest.err
1416  ac_status=$?
1417  if test -s conftest.err; then
1418    grep -v '^ *+' conftest.err >conftest.er1
1419    cat conftest.er1 >&5
1420    mv -f conftest.er1 conftest.err
1421  fi
1422  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1423  test $ac_status = 0; } && {
1424	 test -z "$ac_cxx_werror_flag" ||
1425	 test ! -s conftest.err
1426       } && test -s conftest.$ac_objext; then :
1427  ac_retval=0
1428else
1429  $as_echo "$as_me: failed program was:" >&5
1430sed 's/^/| /' conftest.$ac_ext >&5
1431
1432	ac_retval=1
1433fi
1434  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1435  as_fn_set_status $ac_retval
1436
1437} # ac_fn_cxx_try_compile
1438
1439# ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
1440# ---------------------------------------------
1441# Tests whether TYPE exists after having included INCLUDES, setting cache
1442# variable VAR accordingly.
1443ac_fn_cxx_check_type ()
1444{
1445  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1446  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1447$as_echo_n "checking for $2... " >&6; }
1448if eval \${$3+:} false; then :
1449  $as_echo_n "(cached) " >&6
1450else
1451  eval "$3=no"
1452  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1453/* end confdefs.h.  */
1454$4
1455int
1456main ()
1457{
1458if (sizeof ($2))
1459	 return 0;
1460  ;
1461  return 0;
1462}
1463_ACEOF
1464if ac_fn_cxx_try_compile "$LINENO"; then :
1465  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1466/* end confdefs.h.  */
1467$4
1468int
1469main ()
1470{
1471if (sizeof (($2)))
1472	    return 0;
1473  ;
1474  return 0;
1475}
1476_ACEOF
1477if ac_fn_cxx_try_compile "$LINENO"; then :
1478
1479else
1480  eval "$3=yes"
1481fi
1482rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1483fi
1484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1485fi
1486eval ac_res=\$$3
1487	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1488$as_echo "$ac_res" >&6; }
1489  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1490
1491} # ac_fn_cxx_check_type
1492
1493# ac_fn_cxx_try_cpp LINENO
1494# ------------------------
1495# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1496ac_fn_cxx_try_cpp ()
1497{
1498  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1499  if { { ac_try="$ac_cpp conftest.$ac_ext"
1500case "(($ac_try" in
1501  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1502  *) ac_try_echo=$ac_try;;
1503esac
1504eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1505$as_echo "$ac_try_echo"; } >&5
1506  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1507  ac_status=$?
1508  if test -s conftest.err; then
1509    grep -v '^ *+' conftest.err >conftest.er1
1510    cat conftest.er1 >&5
1511    mv -f conftest.er1 conftest.err
1512  fi
1513  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1514  test $ac_status = 0; } > conftest.i && {
1515	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1516	 test ! -s conftest.err
1517       }; then :
1518  ac_retval=0
1519else
1520  $as_echo "$as_me: failed program was:" >&5
1521sed 's/^/| /' conftest.$ac_ext >&5
1522
1523    ac_retval=1
1524fi
1525  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1526  as_fn_set_status $ac_retval
1527
1528} # ac_fn_cxx_try_cpp
1529
1530# ac_fn_cxx_try_run LINENO
1531# ------------------------
1532# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1533# that executables *can* be run.
1534ac_fn_cxx_try_run ()
1535{
1536  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1537  if { { ac_try="$ac_link"
1538case "(($ac_try" in
1539  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1540  *) ac_try_echo=$ac_try;;
1541esac
1542eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1543$as_echo "$ac_try_echo"; } >&5
1544  (eval "$ac_link") 2>&5
1545  ac_status=$?
1546  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1547  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1548  { { case "(($ac_try" in
1549  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1550  *) ac_try_echo=$ac_try;;
1551esac
1552eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1553$as_echo "$ac_try_echo"; } >&5
1554  (eval "$ac_try") 2>&5
1555  ac_status=$?
1556  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1557  test $ac_status = 0; }; }; then :
1558  ac_retval=0
1559else
1560  $as_echo "$as_me: program exited with status $ac_status" >&5
1561       $as_echo "$as_me: failed program was:" >&5
1562sed 's/^/| /' conftest.$ac_ext >&5
1563
1564       ac_retval=$ac_status
1565fi
1566  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1567  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1568  as_fn_set_status $ac_retval
1569
1570} # ac_fn_cxx_try_run
1571
1572# ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
1573# ---------------------------------------------------------
1574# Tests whether HEADER exists and can be compiled using the include files in
1575# INCLUDES, setting the cache variable VAR accordingly.
1576ac_fn_cxx_check_header_compile ()
1577{
1578  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1579  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1580$as_echo_n "checking for $2... " >&6; }
1581if eval \${$3+:} false; then :
1582  $as_echo_n "(cached) " >&6
1583else
1584  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1585/* end confdefs.h.  */
1586$4
1587#include <$2>
1588_ACEOF
1589if ac_fn_cxx_try_compile "$LINENO"; then :
1590  eval "$3=yes"
1591else
1592  eval "$3=no"
1593fi
1594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1595fi
1596eval ac_res=\$$3
1597	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1598$as_echo "$ac_res" >&6; }
1599  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1600
1601} # ac_fn_cxx_check_header_compile
1602
1603# ac_fn_cxx_try_link LINENO
1604# -------------------------
1605# Try to link conftest.$ac_ext, and return whether this succeeded.
1606ac_fn_cxx_try_link ()
1607{
1608  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1609  rm -f conftest.$ac_objext conftest$ac_exeext
1610  if { { ac_try="$ac_link"
1611case "(($ac_try" in
1612  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1613  *) ac_try_echo=$ac_try;;
1614esac
1615eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1616$as_echo "$ac_try_echo"; } >&5
1617  (eval "$ac_link") 2>conftest.err
1618  ac_status=$?
1619  if test -s conftest.err; then
1620    grep -v '^ *+' conftest.err >conftest.er1
1621    cat conftest.er1 >&5
1622    mv -f conftest.er1 conftest.err
1623  fi
1624  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1625  test $ac_status = 0; } && {
1626	 test -z "$ac_cxx_werror_flag" ||
1627	 test ! -s conftest.err
1628       } && test -s conftest$ac_exeext && {
1629	 test "$cross_compiling" = yes ||
1630	 test -x conftest$ac_exeext
1631       }; then :
1632  ac_retval=0
1633else
1634  $as_echo "$as_me: failed program was:" >&5
1635sed 's/^/| /' conftest.$ac_ext >&5
1636
1637	ac_retval=1
1638fi
1639  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1640  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1641  # interfere with the next link command; also delete a directory that is
1642  # left behind by Apple's compiler.  We do this before executing the actions.
1643  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1644  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1645  as_fn_set_status $ac_retval
1646
1647} # ac_fn_cxx_try_link
1648
1649# ac_fn_c_try_compile LINENO
1650# --------------------------
1651# Try to compile conftest.$ac_ext, and return whether this succeeded.
1652ac_fn_c_try_compile ()
1653{
1654  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1655  rm -f conftest.$ac_objext
1656  if { { ac_try="$ac_compile"
1657case "(($ac_try" in
1658  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1659  *) ac_try_echo=$ac_try;;
1660esac
1661eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1662$as_echo "$ac_try_echo"; } >&5
1663  (eval "$ac_compile") 2>conftest.err
1664  ac_status=$?
1665  if test -s conftest.err; then
1666    grep -v '^ *+' conftest.err >conftest.er1
1667    cat conftest.er1 >&5
1668    mv -f conftest.er1 conftest.err
1669  fi
1670  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1671  test $ac_status = 0; } && {
1672	 test -z "$ac_c_werror_flag" ||
1673	 test ! -s conftest.err
1674       } && test -s conftest.$ac_objext; then :
1675  ac_retval=0
1676else
1677  $as_echo "$as_me: failed program was:" >&5
1678sed 's/^/| /' conftest.$ac_ext >&5
1679
1680	ac_retval=1
1681fi
1682  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1683  as_fn_set_status $ac_retval
1684
1685} # ac_fn_c_try_compile
1686
1687# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1688# ---------------------------------------------------------
1689# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1690# the include files in INCLUDES and setting the cache variable VAR
1691# accordingly.
1692ac_fn_cxx_check_header_mongrel ()
1693{
1694  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1695  if eval \${$3+:} false; then :
1696  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1697$as_echo_n "checking for $2... " >&6; }
1698if eval \${$3+:} false; then :
1699  $as_echo_n "(cached) " >&6
1700fi
1701eval ac_res=\$$3
1702	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1703$as_echo "$ac_res" >&6; }
1704else
1705  # Is the header compilable?
1706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1707$as_echo_n "checking $2 usability... " >&6; }
1708cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1709/* end confdefs.h.  */
1710$4
1711#include <$2>
1712_ACEOF
1713if ac_fn_cxx_try_compile "$LINENO"; then :
1714  ac_header_compiler=yes
1715else
1716  ac_header_compiler=no
1717fi
1718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1720$as_echo "$ac_header_compiler" >&6; }
1721
1722# Is the header present?
1723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1724$as_echo_n "checking $2 presence... " >&6; }
1725cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1726/* end confdefs.h.  */
1727#include <$2>
1728_ACEOF
1729if ac_fn_cxx_try_cpp "$LINENO"; then :
1730  ac_header_preproc=yes
1731else
1732  ac_header_preproc=no
1733fi
1734rm -f conftest.err conftest.i conftest.$ac_ext
1735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1736$as_echo "$ac_header_preproc" >&6; }
1737
1738# So?  What about this header?
1739case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
1740  yes:no: )
1741    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1742$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1743    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1744$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1745    ;;
1746  no:yes:* )
1747    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1748$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1749    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1750$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1751    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1752$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1753    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1754$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1755    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1756$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1757( $as_echo "## -------------------------------------------- ##
1758## Report this to edzer.pebesma@uni-muenster.de ##
1759## -------------------------------------------- ##"
1760     ) | sed "s/^/$as_me: WARNING:     /" >&2
1761    ;;
1762esac
1763  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1764$as_echo_n "checking for $2... " >&6; }
1765if eval \${$3+:} false; then :
1766  $as_echo_n "(cached) " >&6
1767else
1768  eval "$3=\$ac_header_compiler"
1769fi
1770eval ac_res=\$$3
1771	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1772$as_echo "$ac_res" >&6; }
1773fi
1774  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1775
1776} # ac_fn_cxx_check_header_mongrel
1777cat >config.log <<_ACEOF
1778This file contains any messages produced by compilers while
1779running configure, to aid debugging if configure makes a mistake.
1780
1781It was created by units $as_me 0.7-2, which was
1782generated by GNU Autoconf 2.69.  Invocation command line was
1783
1784  $ $0 $@
1785
1786_ACEOF
1787exec 5>>config.log
1788{
1789cat <<_ASUNAME
1790## --------- ##
1791## Platform. ##
1792## --------- ##
1793
1794hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1795uname -m = `(uname -m) 2>/dev/null || echo unknown`
1796uname -r = `(uname -r) 2>/dev/null || echo unknown`
1797uname -s = `(uname -s) 2>/dev/null || echo unknown`
1798uname -v = `(uname -v) 2>/dev/null || echo unknown`
1799
1800/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1801/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1802
1803/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1804/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1805/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1806/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1807/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1808/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1809/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1810
1811_ASUNAME
1812
1813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1814for as_dir in $PATH
1815do
1816  IFS=$as_save_IFS
1817  test -z "$as_dir" && as_dir=.
1818    $as_echo "PATH: $as_dir"
1819  done
1820IFS=$as_save_IFS
1821
1822} >&5
1823
1824cat >&5 <<_ACEOF
1825
1826
1827## ----------- ##
1828## Core tests. ##
1829## ----------- ##
1830
1831_ACEOF
1832
1833
1834# Keep a trace of the command line.
1835# Strip out --no-create and --no-recursion so they do not pile up.
1836# Strip out --silent because we don't want to record it for future runs.
1837# Also quote any args containing shell meta-characters.
1838# Make two passes to allow for proper duplicate-argument suppression.
1839ac_configure_args=
1840ac_configure_args0=
1841ac_configure_args1=
1842ac_must_keep_next=false
1843for ac_pass in 1 2
1844do
1845  for ac_arg
1846  do
1847    case $ac_arg in
1848    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1849    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1850    | -silent | --silent | --silen | --sile | --sil)
1851      continue ;;
1852    *\'*)
1853      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1854    esac
1855    case $ac_pass in
1856    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1857    2)
1858      as_fn_append ac_configure_args1 " '$ac_arg'"
1859      if test $ac_must_keep_next = true; then
1860	ac_must_keep_next=false # Got value, back to normal.
1861      else
1862	case $ac_arg in
1863	  *=* | --config-cache | -C | -disable-* | --disable-* \
1864	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1865	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1866	  | -with-* | --with-* | -without-* | --without-* | --x)
1867	    case "$ac_configure_args0 " in
1868	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1869	    esac
1870	    ;;
1871	  -* ) ac_must_keep_next=true ;;
1872	esac
1873      fi
1874      as_fn_append ac_configure_args " '$ac_arg'"
1875      ;;
1876    esac
1877  done
1878done
1879{ ac_configure_args0=; unset ac_configure_args0;}
1880{ ac_configure_args1=; unset ac_configure_args1;}
1881
1882# When interrupted or exit'd, cleanup temporary files, and complete
1883# config.log.  We remove comments because anyway the quotes in there
1884# would cause problems or look ugly.
1885# WARNING: Use '\'' to represent an apostrophe within the trap.
1886# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1887trap 'exit_status=$?
1888  # Save into config.log some information that might help in debugging.
1889  {
1890    echo
1891
1892    $as_echo "## ---------------- ##
1893## Cache variables. ##
1894## ---------------- ##"
1895    echo
1896    # The following way of writing the cache mishandles newlines in values,
1897(
1898  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1899    eval ac_val=\$$ac_var
1900    case $ac_val in #(
1901    *${as_nl}*)
1902      case $ac_var in #(
1903      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1904$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1905      esac
1906      case $ac_var in #(
1907      _ | IFS | as_nl) ;; #(
1908      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1909      *) { eval $ac_var=; unset $ac_var;} ;;
1910      esac ;;
1911    esac
1912  done
1913  (set) 2>&1 |
1914    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1915    *${as_nl}ac_space=\ *)
1916      sed -n \
1917	"s/'\''/'\''\\\\'\'''\''/g;
1918	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1919      ;; #(
1920    *)
1921      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1922      ;;
1923    esac |
1924    sort
1925)
1926    echo
1927
1928    $as_echo "## ----------------- ##
1929## Output variables. ##
1930## ----------------- ##"
1931    echo
1932    for ac_var in $ac_subst_vars
1933    do
1934      eval ac_val=\$$ac_var
1935      case $ac_val in
1936      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1937      esac
1938      $as_echo "$ac_var='\''$ac_val'\''"
1939    done | sort
1940    echo
1941
1942    if test -n "$ac_subst_files"; then
1943      $as_echo "## ------------------- ##
1944## File substitutions. ##
1945## ------------------- ##"
1946      echo
1947      for ac_var in $ac_subst_files
1948      do
1949	eval ac_val=\$$ac_var
1950	case $ac_val in
1951	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1952	esac
1953	$as_echo "$ac_var='\''$ac_val'\''"
1954      done | sort
1955      echo
1956    fi
1957
1958    if test -s confdefs.h; then
1959      $as_echo "## ----------- ##
1960## confdefs.h. ##
1961## ----------- ##"
1962      echo
1963      cat confdefs.h
1964      echo
1965    fi
1966    test "$ac_signal" != 0 &&
1967      $as_echo "$as_me: caught signal $ac_signal"
1968    $as_echo "$as_me: exit $exit_status"
1969  } >&5
1970  rm -f core *.core core.conftest.* &&
1971    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1972    exit $exit_status
1973' 0
1974for ac_signal in 1 2 13 15; do
1975  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1976done
1977ac_signal=0
1978
1979# confdefs.h avoids OS command line length limits that DEFS can exceed.
1980rm -f -r conftest* confdefs.h
1981
1982$as_echo "/* confdefs.h */" > confdefs.h
1983
1984# Predefined preprocessor variables.
1985
1986cat >>confdefs.h <<_ACEOF
1987#define PACKAGE_NAME "$PACKAGE_NAME"
1988_ACEOF
1989
1990cat >>confdefs.h <<_ACEOF
1991#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1992_ACEOF
1993
1994cat >>confdefs.h <<_ACEOF
1995#define PACKAGE_VERSION "$PACKAGE_VERSION"
1996_ACEOF
1997
1998cat >>confdefs.h <<_ACEOF
1999#define PACKAGE_STRING "$PACKAGE_STRING"
2000_ACEOF
2001
2002cat >>confdefs.h <<_ACEOF
2003#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2004_ACEOF
2005
2006cat >>confdefs.h <<_ACEOF
2007#define PACKAGE_URL "$PACKAGE_URL"
2008_ACEOF
2009
2010
2011# Let the site file select an alternate cache file if it wants to.
2012# Prefer an explicitly selected file to automatically selected ones.
2013ac_site_file1=NONE
2014ac_site_file2=NONE
2015if test -n "$CONFIG_SITE"; then
2016  # We do not want a PATH search for config.site.
2017  case $CONFIG_SITE in #((
2018    -*)  ac_site_file1=./$CONFIG_SITE;;
2019    */*) ac_site_file1=$CONFIG_SITE;;
2020    *)   ac_site_file1=./$CONFIG_SITE;;
2021  esac
2022elif test "x$prefix" != xNONE; then
2023  ac_site_file1=$prefix/share/config.site
2024  ac_site_file2=$prefix/etc/config.site
2025else
2026  ac_site_file1=$ac_default_prefix/share/config.site
2027  ac_site_file2=$ac_default_prefix/etc/config.site
2028fi
2029for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2030do
2031  test "x$ac_site_file" = xNONE && continue
2032  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2033    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2034$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2035    sed 's/^/| /' "$ac_site_file" >&5
2036    . "$ac_site_file" \
2037      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2038$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2039as_fn_error $? "failed to load site script $ac_site_file
2040See \`config.log' for more details" "$LINENO" 5; }
2041  fi
2042done
2043
2044if test -r "$cache_file"; then
2045  # Some versions of bash will fail to source /dev/null (special files
2046  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2047  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2048    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2049$as_echo "$as_me: loading cache $cache_file" >&6;}
2050    case $cache_file in
2051      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2052      *)                      . "./$cache_file";;
2053    esac
2054  fi
2055else
2056  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2057$as_echo "$as_me: creating cache $cache_file" >&6;}
2058  >$cache_file
2059fi
2060
2061# Check that the precious variables saved in the cache have kept the same
2062# value.
2063ac_cache_corrupted=false
2064for ac_var in $ac_precious_vars; do
2065  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2066  eval ac_new_set=\$ac_env_${ac_var}_set
2067  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2068  eval ac_new_val=\$ac_env_${ac_var}_value
2069  case $ac_old_set,$ac_new_set in
2070    set,)
2071      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2072$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2073      ac_cache_corrupted=: ;;
2074    ,set)
2075      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2076$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2077      ac_cache_corrupted=: ;;
2078    ,);;
2079    *)
2080      if test "x$ac_old_val" != "x$ac_new_val"; then
2081	# differences in whitespace do not lead to failure.
2082	ac_old_val_w=`echo x $ac_old_val`
2083	ac_new_val_w=`echo x $ac_new_val`
2084	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2085	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2086$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2087	  ac_cache_corrupted=:
2088	else
2089	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2090$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2091	  eval $ac_var=\$ac_old_val
2092	fi
2093	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2094$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2095	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2096$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2097      fi;;
2098  esac
2099  # Pass precious variables to config.status.
2100  if test "$ac_new_set" = set; then
2101    case $ac_new_val in
2102    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2103    *) ac_arg=$ac_var=$ac_new_val ;;
2104    esac
2105    case " $ac_configure_args " in
2106      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2107      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2108    esac
2109  fi
2110done
2111if $ac_cache_corrupted; then
2112  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2113$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2114  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2115$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2116  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2117fi
2118## -------------------- ##
2119## Main body of script. ##
2120## -------------------- ##
2121
2122ac_ext=c
2123ac_cpp='$CPP $CPPFLAGS'
2124ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2125ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2126ac_compiler_gnu=$ac_cv_c_compiler_gnu
2127
2128
2129{ $as_echo "$as_me:${as_lineno-$LINENO}: ${PACKAGE_NAME}: ${PACKAGE_VERSION}" >&5
2130$as_echo "$as_me: ${PACKAGE_NAME}: ${PACKAGE_VERSION}" >&6;}
2131
2132: ${R_HOME=`R RHOME`}
2133if test -z "${R_HOME}"; then
2134  echo "could not determine R_HOME"
2135  exit 1
2136fi
2137CC=`"${R_HOME}/bin/R" CMD config CC`
2138CFLAGS=`"${R_HOME}/bin/R" CMD config CFLAGS`
2139CPPFLAGS=`"${R_HOME}/bin/R" CMD config CPPFLAGS`
2140LDFLAGS=`"${R_HOME}/bin/R" CMD config LDFLAGS`
2141CXX=`"${R_HOME}/bin/R" CMD config CXX`
2142CXXFLAGS=`"${R_HOME}/bin/R" CMD config CXXFLAGS`
2143ac_ext=cpp
2144ac_cpp='$CXXCPP $CPPFLAGS'
2145ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2146ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2147ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2148
2149
2150ac_ext=cpp
2151ac_cpp='$CXXCPP $CPPFLAGS'
2152ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2153ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2154ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2155if test -z "$CXX"; then
2156  if test -n "$CCC"; then
2157    CXX=$CCC
2158  else
2159    if test -n "$ac_tool_prefix"; then
2160  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2161  do
2162    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2163set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2165$as_echo_n "checking for $ac_word... " >&6; }
2166if ${ac_cv_prog_CXX+:} false; then :
2167  $as_echo_n "(cached) " >&6
2168else
2169  if test -n "$CXX"; then
2170  ac_cv_prog_CXX="$CXX" # Let the user override the test.
2171else
2172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2173for as_dir in $PATH
2174do
2175  IFS=$as_save_IFS
2176  test -z "$as_dir" && as_dir=.
2177    for ac_exec_ext in '' $ac_executable_extensions; do
2178  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2179    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2180    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2181    break 2
2182  fi
2183done
2184  done
2185IFS=$as_save_IFS
2186
2187fi
2188fi
2189CXX=$ac_cv_prog_CXX
2190if test -n "$CXX"; then
2191  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2192$as_echo "$CXX" >&6; }
2193else
2194  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2195$as_echo "no" >&6; }
2196fi
2197
2198
2199    test -n "$CXX" && break
2200  done
2201fi
2202if test -z "$CXX"; then
2203  ac_ct_CXX=$CXX
2204  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2205do
2206  # Extract the first word of "$ac_prog", so it can be a program name with args.
2207set dummy $ac_prog; ac_word=$2
2208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2209$as_echo_n "checking for $ac_word... " >&6; }
2210if ${ac_cv_prog_ac_ct_CXX+:} false; then :
2211  $as_echo_n "(cached) " >&6
2212else
2213  if test -n "$ac_ct_CXX"; then
2214  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2215else
2216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2217for as_dir in $PATH
2218do
2219  IFS=$as_save_IFS
2220  test -z "$as_dir" && as_dir=.
2221    for ac_exec_ext in '' $ac_executable_extensions; do
2222  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2223    ac_cv_prog_ac_ct_CXX="$ac_prog"
2224    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2225    break 2
2226  fi
2227done
2228  done
2229IFS=$as_save_IFS
2230
2231fi
2232fi
2233ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2234if test -n "$ac_ct_CXX"; then
2235  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
2236$as_echo "$ac_ct_CXX" >&6; }
2237else
2238  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2239$as_echo "no" >&6; }
2240fi
2241
2242
2243  test -n "$ac_ct_CXX" && break
2244done
2245
2246  if test "x$ac_ct_CXX" = x; then
2247    CXX="g++"
2248  else
2249    case $cross_compiling:$ac_tool_warned in
2250yes:)
2251{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2252$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2253ac_tool_warned=yes ;;
2254esac
2255    CXX=$ac_ct_CXX
2256  fi
2257fi
2258
2259  fi
2260fi
2261# Provide some information about the compiler.
2262$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
2263set X $ac_compile
2264ac_compiler=$2
2265for ac_option in --version -v -V -qversion; do
2266  { { ac_try="$ac_compiler $ac_option >&5"
2267case "(($ac_try" in
2268  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2269  *) ac_try_echo=$ac_try;;
2270esac
2271eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2272$as_echo "$ac_try_echo"; } >&5
2273  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2274  ac_status=$?
2275  if test -s conftest.err; then
2276    sed '10a\
2277... rest of stderr output deleted ...
2278         10q' conftest.err >conftest.er1
2279    cat conftest.er1 >&5
2280  fi
2281  rm -f conftest.er1 conftest.err
2282  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2283  test $ac_status = 0; }
2284done
2285
2286cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2287/* end confdefs.h.  */
2288
2289int
2290main ()
2291{
2292
2293  ;
2294  return 0;
2295}
2296_ACEOF
2297ac_clean_files_save=$ac_clean_files
2298ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2299# Try to create an executable without -o first, disregard a.out.
2300# It will help us diagnose broken compilers, and finding out an intuition
2301# of exeext.
2302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
2303$as_echo_n "checking whether the C++ compiler works... " >&6; }
2304ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2305
2306# The possible output files:
2307ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2308
2309ac_rmfiles=
2310for ac_file in $ac_files
2311do
2312  case $ac_file in
2313    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2314    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2315  esac
2316done
2317rm -f $ac_rmfiles
2318
2319if { { ac_try="$ac_link_default"
2320case "(($ac_try" in
2321  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2322  *) ac_try_echo=$ac_try;;
2323esac
2324eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2325$as_echo "$ac_try_echo"; } >&5
2326  (eval "$ac_link_default") 2>&5
2327  ac_status=$?
2328  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2329  test $ac_status = 0; }; then :
2330  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2331# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2332# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2333# so that the user can short-circuit this test for compilers unknown to
2334# Autoconf.
2335for ac_file in $ac_files ''
2336do
2337  test -f "$ac_file" || continue
2338  case $ac_file in
2339    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2340	;;
2341    [ab].out )
2342	# We found the default executable, but exeext='' is most
2343	# certainly right.
2344	break;;
2345    *.* )
2346	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2347	then :; else
2348	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2349	fi
2350	# We set ac_cv_exeext here because the later test for it is not
2351	# safe: cross compilers may not add the suffix if given an `-o'
2352	# argument, so we may need to know it at that point already.
2353	# Even if this section looks crufty: it has the advantage of
2354	# actually working.
2355	break;;
2356    * )
2357	break;;
2358  esac
2359done
2360test "$ac_cv_exeext" = no && ac_cv_exeext=
2361
2362else
2363  ac_file=''
2364fi
2365if test -z "$ac_file"; then :
2366  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2367$as_echo "no" >&6; }
2368$as_echo "$as_me: failed program was:" >&5
2369sed 's/^/| /' conftest.$ac_ext >&5
2370
2371{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2372$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2373as_fn_error 77 "C++ compiler cannot create executables
2374See \`config.log' for more details" "$LINENO" 5; }
2375else
2376  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2377$as_echo "yes" >&6; }
2378fi
2379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
2380$as_echo_n "checking for C++ compiler default output file name... " >&6; }
2381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2382$as_echo "$ac_file" >&6; }
2383ac_exeext=$ac_cv_exeext
2384
2385rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2386ac_clean_files=$ac_clean_files_save
2387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2388$as_echo_n "checking for suffix of executables... " >&6; }
2389if { { ac_try="$ac_link"
2390case "(($ac_try" in
2391  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2392  *) ac_try_echo=$ac_try;;
2393esac
2394eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2395$as_echo "$ac_try_echo"; } >&5
2396  (eval "$ac_link") 2>&5
2397  ac_status=$?
2398  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2399  test $ac_status = 0; }; then :
2400  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2401# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2402# work properly (i.e., refer to `conftest.exe'), while it won't with
2403# `rm'.
2404for ac_file in conftest.exe conftest conftest.*; do
2405  test -f "$ac_file" || continue
2406  case $ac_file in
2407    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2408    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2409	  break;;
2410    * ) break;;
2411  esac
2412done
2413else
2414  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2415$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2416as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2417See \`config.log' for more details" "$LINENO" 5; }
2418fi
2419rm -f conftest conftest$ac_cv_exeext
2420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2421$as_echo "$ac_cv_exeext" >&6; }
2422
2423rm -f conftest.$ac_ext
2424EXEEXT=$ac_cv_exeext
2425ac_exeext=$EXEEXT
2426cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2427/* end confdefs.h.  */
2428#include <stdio.h>
2429int
2430main ()
2431{
2432FILE *f = fopen ("conftest.out", "w");
2433 return ferror (f) || fclose (f) != 0;
2434
2435  ;
2436  return 0;
2437}
2438_ACEOF
2439ac_clean_files="$ac_clean_files conftest.out"
2440# Check that the compiler produces executables we can run.  If not, either
2441# the compiler is broken, or we cross compile.
2442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2443$as_echo_n "checking whether we are cross compiling... " >&6; }
2444if test "$cross_compiling" != yes; then
2445  { { ac_try="$ac_link"
2446case "(($ac_try" in
2447  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2448  *) ac_try_echo=$ac_try;;
2449esac
2450eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2451$as_echo "$ac_try_echo"; } >&5
2452  (eval "$ac_link") 2>&5
2453  ac_status=$?
2454  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2455  test $ac_status = 0; }
2456  if { ac_try='./conftest$ac_cv_exeext'
2457  { { case "(($ac_try" in
2458  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2459  *) ac_try_echo=$ac_try;;
2460esac
2461eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2462$as_echo "$ac_try_echo"; } >&5
2463  (eval "$ac_try") 2>&5
2464  ac_status=$?
2465  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2466  test $ac_status = 0; }; }; then
2467    cross_compiling=no
2468  else
2469    if test "$cross_compiling" = maybe; then
2470	cross_compiling=yes
2471    else
2472	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2473$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2474as_fn_error $? "cannot run C++ compiled programs.
2475If you meant to cross compile, use \`--host'.
2476See \`config.log' for more details" "$LINENO" 5; }
2477    fi
2478  fi
2479fi
2480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2481$as_echo "$cross_compiling" >&6; }
2482
2483rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2484ac_clean_files=$ac_clean_files_save
2485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2486$as_echo_n "checking for suffix of object files... " >&6; }
2487if ${ac_cv_objext+:} false; then :
2488  $as_echo_n "(cached) " >&6
2489else
2490  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2491/* end confdefs.h.  */
2492
2493int
2494main ()
2495{
2496
2497  ;
2498  return 0;
2499}
2500_ACEOF
2501rm -f conftest.o conftest.obj
2502if { { ac_try="$ac_compile"
2503case "(($ac_try" in
2504  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2505  *) ac_try_echo=$ac_try;;
2506esac
2507eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2508$as_echo "$ac_try_echo"; } >&5
2509  (eval "$ac_compile") 2>&5
2510  ac_status=$?
2511  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2512  test $ac_status = 0; }; then :
2513  for ac_file in conftest.o conftest.obj conftest.*; do
2514  test -f "$ac_file" || continue;
2515  case $ac_file in
2516    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2517    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2518       break;;
2519  esac
2520done
2521else
2522  $as_echo "$as_me: failed program was:" >&5
2523sed 's/^/| /' conftest.$ac_ext >&5
2524
2525{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2526$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2527as_fn_error $? "cannot compute suffix of object files: cannot compile
2528See \`config.log' for more details" "$LINENO" 5; }
2529fi
2530rm -f conftest.$ac_cv_objext conftest.$ac_ext
2531fi
2532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2533$as_echo "$ac_cv_objext" >&6; }
2534OBJEXT=$ac_cv_objext
2535ac_objext=$OBJEXT
2536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
2537$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
2538if ${ac_cv_cxx_compiler_gnu+:} false; then :
2539  $as_echo_n "(cached) " >&6
2540else
2541  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2542/* end confdefs.h.  */
2543
2544int
2545main ()
2546{
2547#ifndef __GNUC__
2548       choke me
2549#endif
2550
2551  ;
2552  return 0;
2553}
2554_ACEOF
2555if ac_fn_cxx_try_compile "$LINENO"; then :
2556  ac_compiler_gnu=yes
2557else
2558  ac_compiler_gnu=no
2559fi
2560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2561ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2562
2563fi
2564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
2565$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
2566if test $ac_compiler_gnu = yes; then
2567  GXX=yes
2568else
2569  GXX=
2570fi
2571ac_test_CXXFLAGS=${CXXFLAGS+set}
2572ac_save_CXXFLAGS=$CXXFLAGS
2573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
2574$as_echo_n "checking whether $CXX accepts -g... " >&6; }
2575if ${ac_cv_prog_cxx_g+:} false; then :
2576  $as_echo_n "(cached) " >&6
2577else
2578  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2579   ac_cxx_werror_flag=yes
2580   ac_cv_prog_cxx_g=no
2581   CXXFLAGS="-g"
2582   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2583/* end confdefs.h.  */
2584
2585int
2586main ()
2587{
2588
2589  ;
2590  return 0;
2591}
2592_ACEOF
2593if ac_fn_cxx_try_compile "$LINENO"; then :
2594  ac_cv_prog_cxx_g=yes
2595else
2596  CXXFLAGS=""
2597      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2598/* end confdefs.h.  */
2599
2600int
2601main ()
2602{
2603
2604  ;
2605  return 0;
2606}
2607_ACEOF
2608if ac_fn_cxx_try_compile "$LINENO"; then :
2609
2610else
2611  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2612	 CXXFLAGS="-g"
2613	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2614/* end confdefs.h.  */
2615
2616int
2617main ()
2618{
2619
2620  ;
2621  return 0;
2622}
2623_ACEOF
2624if ac_fn_cxx_try_compile "$LINENO"; then :
2625  ac_cv_prog_cxx_g=yes
2626fi
2627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2628fi
2629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2630fi
2631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2632   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2633fi
2634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
2635$as_echo "$ac_cv_prog_cxx_g" >&6; }
2636if test "$ac_test_CXXFLAGS" = set; then
2637  CXXFLAGS=$ac_save_CXXFLAGS
2638elif test $ac_cv_prog_cxx_g = yes; then
2639  if test "$GXX" = yes; then
2640    CXXFLAGS="-g -O2"
2641  else
2642    CXXFLAGS="-g"
2643  fi
2644else
2645  if test "$GXX" = yes; then
2646    CXXFLAGS="-O2"
2647  else
2648    CXXFLAGS=
2649  fi
2650fi
2651ac_ext=cpp
2652ac_cpp='$CXXCPP $CPPFLAGS'
2653ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2654ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2655ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2656
2657
2658ac_ext=cpp
2659ac_cpp='$CXXCPP $CPPFLAGS'
2660ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2661ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2662ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
2664$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
2665if test -z "$CXXCPP"; then
2666  if ${ac_cv_prog_CXXCPP+:} false; then :
2667  $as_echo_n "(cached) " >&6
2668else
2669      # Double quotes because CXXCPP needs to be expanded
2670    for CXXCPP in "$CXX -E" "/lib/cpp"
2671    do
2672      ac_preproc_ok=false
2673for ac_cxx_preproc_warn_flag in '' yes
2674do
2675  # Use a header file that comes with gcc, so configuring glibc
2676  # with a fresh cross-compiler works.
2677  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2678  # <limits.h> exists even on freestanding compilers.
2679  # On the NeXT, cc -E runs the code through the compiler's parser,
2680  # not just through cpp. "Syntax error" is here to catch this case.
2681  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2682/* end confdefs.h.  */
2683#ifdef __STDC__
2684# include <limits.h>
2685#else
2686# include <assert.h>
2687#endif
2688		     Syntax error
2689_ACEOF
2690if ac_fn_cxx_try_cpp "$LINENO"; then :
2691
2692else
2693  # Broken: fails on valid input.
2694continue
2695fi
2696rm -f conftest.err conftest.i conftest.$ac_ext
2697
2698  # OK, works on sane cases.  Now check whether nonexistent headers
2699  # can be detected and how.
2700  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2701/* end confdefs.h.  */
2702#include <ac_nonexistent.h>
2703_ACEOF
2704if ac_fn_cxx_try_cpp "$LINENO"; then :
2705  # Broken: success on invalid input.
2706continue
2707else
2708  # Passes both tests.
2709ac_preproc_ok=:
2710break
2711fi
2712rm -f conftest.err conftest.i conftest.$ac_ext
2713
2714done
2715# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2716rm -f conftest.i conftest.err conftest.$ac_ext
2717if $ac_preproc_ok; then :
2718  break
2719fi
2720
2721    done
2722    ac_cv_prog_CXXCPP=$CXXCPP
2723
2724fi
2725  CXXCPP=$ac_cv_prog_CXXCPP
2726else
2727  ac_cv_prog_CXXCPP=$CXXCPP
2728fi
2729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
2730$as_echo "$CXXCPP" >&6; }
2731ac_preproc_ok=false
2732for ac_cxx_preproc_warn_flag in '' yes
2733do
2734  # Use a header file that comes with gcc, so configuring glibc
2735  # with a fresh cross-compiler works.
2736  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2737  # <limits.h> exists even on freestanding compilers.
2738  # On the NeXT, cc -E runs the code through the compiler's parser,
2739  # not just through cpp. "Syntax error" is here to catch this case.
2740  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2741/* end confdefs.h.  */
2742#ifdef __STDC__
2743# include <limits.h>
2744#else
2745# include <assert.h>
2746#endif
2747		     Syntax error
2748_ACEOF
2749if ac_fn_cxx_try_cpp "$LINENO"; then :
2750
2751else
2752  # Broken: fails on valid input.
2753continue
2754fi
2755rm -f conftest.err conftest.i conftest.$ac_ext
2756
2757  # OK, works on sane cases.  Now check whether nonexistent headers
2758  # can be detected and how.
2759  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2760/* end confdefs.h.  */
2761#include <ac_nonexistent.h>
2762_ACEOF
2763if ac_fn_cxx_try_cpp "$LINENO"; then :
2764  # Broken: success on invalid input.
2765continue
2766else
2767  # Passes both tests.
2768ac_preproc_ok=:
2769break
2770fi
2771rm -f conftest.err conftest.i conftest.$ac_ext
2772
2773done
2774# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2775rm -f conftest.i conftest.err conftest.$ac_ext
2776if $ac_preproc_ok; then :
2777
2778else
2779  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2780$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2781as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
2782See \`config.log' for more details" "$LINENO" 5; }
2783fi
2784
2785ac_ext=cpp
2786ac_cpp='$CXXCPP $CPPFLAGS'
2787ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2788ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2789ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2790
2791
2792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
2793$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
2794if ${ac_cv_path_GREP+:} false; then :
2795  $as_echo_n "(cached) " >&6
2796else
2797  if test -z "$GREP"; then
2798  ac_path_GREP_found=false
2799  # Loop through the user's path and test for each of PROGNAME-LIST
2800  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2801for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
2802do
2803  IFS=$as_save_IFS
2804  test -z "$as_dir" && as_dir=.
2805    for ac_prog in grep ggrep; do
2806    for ac_exec_ext in '' $ac_executable_extensions; do
2807      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
2808      as_fn_executable_p "$ac_path_GREP" || continue
2809# Check for GNU ac_path_GREP and select it if it is found.
2810  # Check for GNU $ac_path_GREP
2811case `"$ac_path_GREP" --version 2>&1` in
2812*GNU*)
2813  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
2814*)
2815  ac_count=0
2816  $as_echo_n 0123456789 >"conftest.in"
2817  while :
2818  do
2819    cat "conftest.in" "conftest.in" >"conftest.tmp"
2820    mv "conftest.tmp" "conftest.in"
2821    cp "conftest.in" "conftest.nl"
2822    $as_echo 'GREP' >> "conftest.nl"
2823    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
2824    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2825    as_fn_arith $ac_count + 1 && ac_count=$as_val
2826    if test $ac_count -gt ${ac_path_GREP_max-0}; then
2827      # Best one so far, save it but keep looking for a better one
2828      ac_cv_path_GREP="$ac_path_GREP"
2829      ac_path_GREP_max=$ac_count
2830    fi
2831    # 10*(2^10) chars as input seems more than enough
2832    test $ac_count -gt 10 && break
2833  done
2834  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2835esac
2836
2837      $ac_path_GREP_found && break 3
2838    done
2839  done
2840  done
2841IFS=$as_save_IFS
2842  if test -z "$ac_cv_path_GREP"; then
2843    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
2844  fi
2845else
2846  ac_cv_path_GREP=$GREP
2847fi
2848
2849fi
2850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
2851$as_echo "$ac_cv_path_GREP" >&6; }
2852 GREP="$ac_cv_path_GREP"
2853
2854
2855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
2856$as_echo_n "checking for egrep... " >&6; }
2857if ${ac_cv_path_EGREP+:} false; then :
2858  $as_echo_n "(cached) " >&6
2859else
2860  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
2861   then ac_cv_path_EGREP="$GREP -E"
2862   else
2863     if test -z "$EGREP"; then
2864  ac_path_EGREP_found=false
2865  # Loop through the user's path and test for each of PROGNAME-LIST
2866  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2867for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
2868do
2869  IFS=$as_save_IFS
2870  test -z "$as_dir" && as_dir=.
2871    for ac_prog in egrep; do
2872    for ac_exec_ext in '' $ac_executable_extensions; do
2873      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
2874      as_fn_executable_p "$ac_path_EGREP" || continue
2875# Check for GNU ac_path_EGREP and select it if it is found.
2876  # Check for GNU $ac_path_EGREP
2877case `"$ac_path_EGREP" --version 2>&1` in
2878*GNU*)
2879  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
2880*)
2881  ac_count=0
2882  $as_echo_n 0123456789 >"conftest.in"
2883  while :
2884  do
2885    cat "conftest.in" "conftest.in" >"conftest.tmp"
2886    mv "conftest.tmp" "conftest.in"
2887    cp "conftest.in" "conftest.nl"
2888    $as_echo 'EGREP' >> "conftest.nl"
2889    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
2890    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2891    as_fn_arith $ac_count + 1 && ac_count=$as_val
2892    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
2893      # Best one so far, save it but keep looking for a better one
2894      ac_cv_path_EGREP="$ac_path_EGREP"
2895      ac_path_EGREP_max=$ac_count
2896    fi
2897    # 10*(2^10) chars as input seems more than enough
2898    test $ac_count -gt 10 && break
2899  done
2900  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2901esac
2902
2903      $ac_path_EGREP_found && break 3
2904    done
2905  done
2906  done
2907IFS=$as_save_IFS
2908  if test -z "$ac_cv_path_EGREP"; then
2909    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
2910  fi
2911else
2912  ac_cv_path_EGREP=$EGREP
2913fi
2914
2915   fi
2916fi
2917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
2918$as_echo "$ac_cv_path_EGREP" >&6; }
2919 EGREP="$ac_cv_path_EGREP"
2920
2921
2922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
2923$as_echo_n "checking for ANSI C header files... " >&6; }
2924if ${ac_cv_header_stdc+:} false; then :
2925  $as_echo_n "(cached) " >&6
2926else
2927  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2928/* end confdefs.h.  */
2929#include <stdlib.h>
2930#include <stdarg.h>
2931#include <string.h>
2932#include <float.h>
2933
2934int
2935main ()
2936{
2937
2938  ;
2939  return 0;
2940}
2941_ACEOF
2942if ac_fn_cxx_try_compile "$LINENO"; then :
2943  ac_cv_header_stdc=yes
2944else
2945  ac_cv_header_stdc=no
2946fi
2947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2948
2949if test $ac_cv_header_stdc = yes; then
2950  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2951  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2952/* end confdefs.h.  */
2953#include <string.h>
2954
2955_ACEOF
2956if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2957  $EGREP "memchr" >/dev/null 2>&1; then :
2958
2959else
2960  ac_cv_header_stdc=no
2961fi
2962rm -f conftest*
2963
2964fi
2965
2966if test $ac_cv_header_stdc = yes; then
2967  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2968  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2969/* end confdefs.h.  */
2970#include <stdlib.h>
2971
2972_ACEOF
2973if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2974  $EGREP "free" >/dev/null 2>&1; then :
2975
2976else
2977  ac_cv_header_stdc=no
2978fi
2979rm -f conftest*
2980
2981fi
2982
2983if test $ac_cv_header_stdc = yes; then
2984  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2985  if test "$cross_compiling" = yes; then :
2986  :
2987else
2988  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2989/* end confdefs.h.  */
2990#include <ctype.h>
2991#include <stdlib.h>
2992#if ((' ' & 0x0FF) == 0x020)
2993# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2994# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2995#else
2996# define ISLOWER(c) \
2997		   (('a' <= (c) && (c) <= 'i') \
2998		     || ('j' <= (c) && (c) <= 'r') \
2999		     || ('s' <= (c) && (c) <= 'z'))
3000# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3001#endif
3002
3003#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3004int
3005main ()
3006{
3007  int i;
3008  for (i = 0; i < 256; i++)
3009    if (XOR (islower (i), ISLOWER (i))
3010	|| toupper (i) != TOUPPER (i))
3011      return 2;
3012  return 0;
3013}
3014_ACEOF
3015if ac_fn_cxx_try_run "$LINENO"; then :
3016
3017else
3018  ac_cv_header_stdc=no
3019fi
3020rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3021  conftest.$ac_objext conftest.beam conftest.$ac_ext
3022fi
3023
3024fi
3025fi
3026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3027$as_echo "$ac_cv_header_stdc" >&6; }
3028if test $ac_cv_header_stdc = yes; then
3029
3030$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3031
3032fi
3033
3034# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3035for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3036		  inttypes.h stdint.h unistd.h
3037do :
3038  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3039ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3040"
3041if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3042  cat >>confdefs.h <<_ACEOF
3043#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3044_ACEOF
3045
3046fi
3047
3048done
3049
3050
3051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
3052$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
3053if ${ac_cv_header_stdbool_h+:} false; then :
3054  $as_echo_n "(cached) " >&6
3055else
3056  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3057/* end confdefs.h.  */
3058
3059             #include <stdbool.h>
3060             #ifndef bool
3061              "error: bool is not defined"
3062             #endif
3063             #ifndef false
3064              "error: false is not defined"
3065             #endif
3066             #if false
3067              "error: false is not 0"
3068             #endif
3069             #ifndef true
3070              "error: true is not defined"
3071             #endif
3072             #if true != 1
3073              "error: true is not 1"
3074             #endif
3075             #ifndef __bool_true_false_are_defined
3076              "error: __bool_true_false_are_defined is not defined"
3077             #endif
3078
3079             struct s { _Bool s: 1; _Bool t; } s;
3080
3081             char a[true == 1 ? 1 : -1];
3082             char b[false == 0 ? 1 : -1];
3083             char c[__bool_true_false_are_defined == 1 ? 1 : -1];
3084             char d[(bool) 0.5 == true ? 1 : -1];
3085             /* See body of main program for 'e'.  */
3086             char f[(_Bool) 0.0 == false ? 1 : -1];
3087             char g[true];
3088             char h[sizeof (_Bool)];
3089             char i[sizeof s.t];
3090             enum { j = false, k = true, l = false * true, m = true * 256 };
3091             /* The following fails for
3092                HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
3093             _Bool n[m];
3094             char o[sizeof n == m * sizeof n[0] ? 1 : -1];
3095             char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
3096             /* Catch a bug in an HP-UX C compiler.  See
3097                http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
3098                http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
3099              */
3100             _Bool q = true;
3101             _Bool *pq = &q;
3102
3103int
3104main ()
3105{
3106
3107             bool e = &s;
3108             *pq |= q;
3109             *pq |= ! q;
3110             /* Refer to every declared value, to avoid compiler optimizations.  */
3111             return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
3112                     + !m + !n + !o + !p + !q + !pq);
3113
3114  ;
3115  return 0;
3116}
3117_ACEOF
3118if ac_fn_cxx_try_compile "$LINENO"; then :
3119  ac_cv_header_stdbool_h=yes
3120else
3121  ac_cv_header_stdbool_h=no
3122fi
3123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3124fi
3125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
3126$as_echo "$ac_cv_header_stdbool_h" >&6; }
3127   ac_fn_cxx_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
3128if test "x$ac_cv_type__Bool" = xyes; then :
3129
3130cat >>confdefs.h <<_ACEOF
3131#define HAVE__BOOL 1
3132_ACEOF
3133
3134
3135fi
3136
3137
3138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
3139$as_echo_n "checking for error_at_line... " >&6; }
3140if ${ac_cv_lib_error_at_line+:} false; then :
3141  $as_echo_n "(cached) " >&6
3142else
3143  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3144/* end confdefs.h.  */
3145#include <error.h>
3146int
3147main ()
3148{
3149error_at_line (0, 0, "", 0, "an error occurred");
3150  ;
3151  return 0;
3152}
3153_ACEOF
3154if ac_fn_cxx_try_link "$LINENO"; then :
3155  ac_cv_lib_error_at_line=yes
3156else
3157  ac_cv_lib_error_at_line=no
3158fi
3159rm -f core conftest.err conftest.$ac_objext \
3160    conftest$ac_exeext conftest.$ac_ext
3161fi
3162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
3163$as_echo "$ac_cv_lib_error_at_line" >&6; }
3164if test $ac_cv_lib_error_at_line = no; then
3165  case " $LIBOBJS " in
3166  *" error.$ac_objext "* ) ;;
3167  *) LIBOBJS="$LIBOBJS error.$ac_objext"
3168 ;;
3169esac
3170
3171fi
3172
3173
3174ac_ext=c
3175ac_cpp='$CPP $CPPFLAGS'
3176ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3177ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3178ac_compiler_gnu=$ac_cv_c_compiler_gnu
3179if test -n "$ac_tool_prefix"; then
3180  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3181set dummy ${ac_tool_prefix}gcc; ac_word=$2
3182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3183$as_echo_n "checking for $ac_word... " >&6; }
3184if ${ac_cv_prog_CC+:} false; then :
3185  $as_echo_n "(cached) " >&6
3186else
3187  if test -n "$CC"; then
3188  ac_cv_prog_CC="$CC" # Let the user override the test.
3189else
3190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3191for as_dir in $PATH
3192do
3193  IFS=$as_save_IFS
3194  test -z "$as_dir" && as_dir=.
3195    for ac_exec_ext in '' $ac_executable_extensions; do
3196  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3197    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3198    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3199    break 2
3200  fi
3201done
3202  done
3203IFS=$as_save_IFS
3204
3205fi
3206fi
3207CC=$ac_cv_prog_CC
3208if test -n "$CC"; then
3209  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3210$as_echo "$CC" >&6; }
3211else
3212  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3213$as_echo "no" >&6; }
3214fi
3215
3216
3217fi
3218if test -z "$ac_cv_prog_CC"; then
3219  ac_ct_CC=$CC
3220  # Extract the first word of "gcc", so it can be a program name with args.
3221set dummy gcc; ac_word=$2
3222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3223$as_echo_n "checking for $ac_word... " >&6; }
3224if ${ac_cv_prog_ac_ct_CC+:} false; then :
3225  $as_echo_n "(cached) " >&6
3226else
3227  if test -n "$ac_ct_CC"; then
3228  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3229else
3230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3231for as_dir in $PATH
3232do
3233  IFS=$as_save_IFS
3234  test -z "$as_dir" && as_dir=.
3235    for ac_exec_ext in '' $ac_executable_extensions; do
3236  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3237    ac_cv_prog_ac_ct_CC="gcc"
3238    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3239    break 2
3240  fi
3241done
3242  done
3243IFS=$as_save_IFS
3244
3245fi
3246fi
3247ac_ct_CC=$ac_cv_prog_ac_ct_CC
3248if test -n "$ac_ct_CC"; then
3249  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3250$as_echo "$ac_ct_CC" >&6; }
3251else
3252  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3253$as_echo "no" >&6; }
3254fi
3255
3256  if test "x$ac_ct_CC" = x; then
3257    CC=""
3258  else
3259    case $cross_compiling:$ac_tool_warned in
3260yes:)
3261{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3262$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3263ac_tool_warned=yes ;;
3264esac
3265    CC=$ac_ct_CC
3266  fi
3267else
3268  CC="$ac_cv_prog_CC"
3269fi
3270
3271if test -z "$CC"; then
3272          if test -n "$ac_tool_prefix"; then
3273    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3274set dummy ${ac_tool_prefix}cc; ac_word=$2
3275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3276$as_echo_n "checking for $ac_word... " >&6; }
3277if ${ac_cv_prog_CC+:} false; then :
3278  $as_echo_n "(cached) " >&6
3279else
3280  if test -n "$CC"; then
3281  ac_cv_prog_CC="$CC" # Let the user override the test.
3282else
3283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3284for as_dir in $PATH
3285do
3286  IFS=$as_save_IFS
3287  test -z "$as_dir" && as_dir=.
3288    for ac_exec_ext in '' $ac_executable_extensions; do
3289  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3290    ac_cv_prog_CC="${ac_tool_prefix}cc"
3291    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3292    break 2
3293  fi
3294done
3295  done
3296IFS=$as_save_IFS
3297
3298fi
3299fi
3300CC=$ac_cv_prog_CC
3301if test -n "$CC"; then
3302  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3303$as_echo "$CC" >&6; }
3304else
3305  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3306$as_echo "no" >&6; }
3307fi
3308
3309
3310  fi
3311fi
3312if test -z "$CC"; then
3313  # Extract the first word of "cc", so it can be a program name with args.
3314set dummy cc; ac_word=$2
3315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3316$as_echo_n "checking for $ac_word... " >&6; }
3317if ${ac_cv_prog_CC+:} false; then :
3318  $as_echo_n "(cached) " >&6
3319else
3320  if test -n "$CC"; then
3321  ac_cv_prog_CC="$CC" # Let the user override the test.
3322else
3323  ac_prog_rejected=no
3324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3325for as_dir in $PATH
3326do
3327  IFS=$as_save_IFS
3328  test -z "$as_dir" && as_dir=.
3329    for ac_exec_ext in '' $ac_executable_extensions; do
3330  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3331    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3332       ac_prog_rejected=yes
3333       continue
3334     fi
3335    ac_cv_prog_CC="cc"
3336    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3337    break 2
3338  fi
3339done
3340  done
3341IFS=$as_save_IFS
3342
3343if test $ac_prog_rejected = yes; then
3344  # We found a bogon in the path, so make sure we never use it.
3345  set dummy $ac_cv_prog_CC
3346  shift
3347  if test $# != 0; then
3348    # We chose a different compiler from the bogus one.
3349    # However, it has the same basename, so the bogon will be chosen
3350    # first if we set CC to just the basename; use the full file name.
3351    shift
3352    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3353  fi
3354fi
3355fi
3356fi
3357CC=$ac_cv_prog_CC
3358if test -n "$CC"; then
3359  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3360$as_echo "$CC" >&6; }
3361else
3362  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3363$as_echo "no" >&6; }
3364fi
3365
3366
3367fi
3368if test -z "$CC"; then
3369  if test -n "$ac_tool_prefix"; then
3370  for ac_prog in cl.exe
3371  do
3372    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3373set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3375$as_echo_n "checking for $ac_word... " >&6; }
3376if ${ac_cv_prog_CC+:} false; then :
3377  $as_echo_n "(cached) " >&6
3378else
3379  if test -n "$CC"; then
3380  ac_cv_prog_CC="$CC" # Let the user override the test.
3381else
3382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3383for as_dir in $PATH
3384do
3385  IFS=$as_save_IFS
3386  test -z "$as_dir" && as_dir=.
3387    for ac_exec_ext in '' $ac_executable_extensions; do
3388  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3389    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3390    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3391    break 2
3392  fi
3393done
3394  done
3395IFS=$as_save_IFS
3396
3397fi
3398fi
3399CC=$ac_cv_prog_CC
3400if test -n "$CC"; then
3401  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3402$as_echo "$CC" >&6; }
3403else
3404  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3405$as_echo "no" >&6; }
3406fi
3407
3408
3409    test -n "$CC" && break
3410  done
3411fi
3412if test -z "$CC"; then
3413  ac_ct_CC=$CC
3414  for ac_prog in cl.exe
3415do
3416  # Extract the first word of "$ac_prog", so it can be a program name with args.
3417set dummy $ac_prog; ac_word=$2
3418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3419$as_echo_n "checking for $ac_word... " >&6; }
3420if ${ac_cv_prog_ac_ct_CC+:} false; then :
3421  $as_echo_n "(cached) " >&6
3422else
3423  if test -n "$ac_ct_CC"; then
3424  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3425else
3426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3427for as_dir in $PATH
3428do
3429  IFS=$as_save_IFS
3430  test -z "$as_dir" && as_dir=.
3431    for ac_exec_ext in '' $ac_executable_extensions; do
3432  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3433    ac_cv_prog_ac_ct_CC="$ac_prog"
3434    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3435    break 2
3436  fi
3437done
3438  done
3439IFS=$as_save_IFS
3440
3441fi
3442fi
3443ac_ct_CC=$ac_cv_prog_ac_ct_CC
3444if test -n "$ac_ct_CC"; then
3445  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3446$as_echo "$ac_ct_CC" >&6; }
3447else
3448  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3449$as_echo "no" >&6; }
3450fi
3451
3452
3453  test -n "$ac_ct_CC" && break
3454done
3455
3456  if test "x$ac_ct_CC" = x; then
3457    CC=""
3458  else
3459    case $cross_compiling:$ac_tool_warned in
3460yes:)
3461{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3462$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3463ac_tool_warned=yes ;;
3464esac
3465    CC=$ac_ct_CC
3466  fi
3467fi
3468
3469fi
3470
3471
3472test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3473$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3474as_fn_error $? "no acceptable C compiler found in \$PATH
3475See \`config.log' for more details" "$LINENO" 5; }
3476
3477# Provide some information about the compiler.
3478$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3479set X $ac_compile
3480ac_compiler=$2
3481for ac_option in --version -v -V -qversion; do
3482  { { ac_try="$ac_compiler $ac_option >&5"
3483case "(($ac_try" in
3484  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3485  *) ac_try_echo=$ac_try;;
3486esac
3487eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3488$as_echo "$ac_try_echo"; } >&5
3489  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3490  ac_status=$?
3491  if test -s conftest.err; then
3492    sed '10a\
3493... rest of stderr output deleted ...
3494         10q' conftest.err >conftest.er1
3495    cat conftest.er1 >&5
3496  fi
3497  rm -f conftest.er1 conftest.err
3498  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3499  test $ac_status = 0; }
3500done
3501
3502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3503$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3504if ${ac_cv_c_compiler_gnu+:} false; then :
3505  $as_echo_n "(cached) " >&6
3506else
3507  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3508/* end confdefs.h.  */
3509
3510int
3511main ()
3512{
3513#ifndef __GNUC__
3514       choke me
3515#endif
3516
3517  ;
3518  return 0;
3519}
3520_ACEOF
3521if ac_fn_c_try_compile "$LINENO"; then :
3522  ac_compiler_gnu=yes
3523else
3524  ac_compiler_gnu=no
3525fi
3526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3527ac_cv_c_compiler_gnu=$ac_compiler_gnu
3528
3529fi
3530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3531$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3532if test $ac_compiler_gnu = yes; then
3533  GCC=yes
3534else
3535  GCC=
3536fi
3537ac_test_CFLAGS=${CFLAGS+set}
3538ac_save_CFLAGS=$CFLAGS
3539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3540$as_echo_n "checking whether $CC accepts -g... " >&6; }
3541if ${ac_cv_prog_cc_g+:} false; then :
3542  $as_echo_n "(cached) " >&6
3543else
3544  ac_save_c_werror_flag=$ac_c_werror_flag
3545   ac_c_werror_flag=yes
3546   ac_cv_prog_cc_g=no
3547   CFLAGS="-g"
3548   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3549/* end confdefs.h.  */
3550
3551int
3552main ()
3553{
3554
3555  ;
3556  return 0;
3557}
3558_ACEOF
3559if ac_fn_c_try_compile "$LINENO"; then :
3560  ac_cv_prog_cc_g=yes
3561else
3562  CFLAGS=""
3563      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3564/* end confdefs.h.  */
3565
3566int
3567main ()
3568{
3569
3570  ;
3571  return 0;
3572}
3573_ACEOF
3574if ac_fn_c_try_compile "$LINENO"; then :
3575
3576else
3577  ac_c_werror_flag=$ac_save_c_werror_flag
3578	 CFLAGS="-g"
3579	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3580/* end confdefs.h.  */
3581
3582int
3583main ()
3584{
3585
3586  ;
3587  return 0;
3588}
3589_ACEOF
3590if ac_fn_c_try_compile "$LINENO"; then :
3591  ac_cv_prog_cc_g=yes
3592fi
3593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3594fi
3595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3596fi
3597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3598   ac_c_werror_flag=$ac_save_c_werror_flag
3599fi
3600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3601$as_echo "$ac_cv_prog_cc_g" >&6; }
3602if test "$ac_test_CFLAGS" = set; then
3603  CFLAGS=$ac_save_CFLAGS
3604elif test $ac_cv_prog_cc_g = yes; then
3605  if test "$GCC" = yes; then
3606    CFLAGS="-g -O2"
3607  else
3608    CFLAGS="-g"
3609  fi
3610else
3611  if test "$GCC" = yes; then
3612    CFLAGS="-O2"
3613  else
3614    CFLAGS=
3615  fi
3616fi
3617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3618$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3619if ${ac_cv_prog_cc_c89+:} false; then :
3620  $as_echo_n "(cached) " >&6
3621else
3622  ac_cv_prog_cc_c89=no
3623ac_save_CC=$CC
3624cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3625/* end confdefs.h.  */
3626#include <stdarg.h>
3627#include <stdio.h>
3628struct stat;
3629/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3630struct buf { int x; };
3631FILE * (*rcsopen) (struct buf *, struct stat *, int);
3632static char *e (p, i)
3633     char **p;
3634     int i;
3635{
3636  return p[i];
3637}
3638static char *f (char * (*g) (char **, int), char **p, ...)
3639{
3640  char *s;
3641  va_list v;
3642  va_start (v,p);
3643  s = g (p, va_arg (v,int));
3644  va_end (v);
3645  return s;
3646}
3647
3648/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3649   function prototypes and stuff, but not '\xHH' hex character constants.
3650   These don't provoke an error unfortunately, instead are silently treated
3651   as 'x'.  The following induces an error, until -std is added to get
3652   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3653   array size at least.  It's necessary to write '\x00'==0 to get something
3654   that's true only with -std.  */
3655int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3656
3657/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3658   inside strings and character constants.  */
3659#define FOO(x) 'x'
3660int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3661
3662int test (int i, double x);
3663struct s1 {int (*f) (int a);};
3664struct s2 {int (*f) (double a);};
3665int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3666int argc;
3667char **argv;
3668int
3669main ()
3670{
3671return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3672  ;
3673  return 0;
3674}
3675_ACEOF
3676for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3677	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3678do
3679  CC="$ac_save_CC $ac_arg"
3680  if ac_fn_c_try_compile "$LINENO"; then :
3681  ac_cv_prog_cc_c89=$ac_arg
3682fi
3683rm -f core conftest.err conftest.$ac_objext
3684  test "x$ac_cv_prog_cc_c89" != "xno" && break
3685done
3686rm -f conftest.$ac_ext
3687CC=$ac_save_CC
3688
3689fi
3690# AC_CACHE_VAL
3691case "x$ac_cv_prog_cc_c89" in
3692  x)
3693    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3694$as_echo "none needed" >&6; } ;;
3695  xno)
3696    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3697$as_echo "unsupported" >&6; } ;;
3698  *)
3699    CC="$CC $ac_cv_prog_cc_c89"
3700    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3701$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3702esac
3703if test "x$ac_cv_prog_cc_c89" != xno; then :
3704
3705fi
3706
3707ac_ext=cpp
3708ac_cpp='$CXXCPP $CPPFLAGS'
3709ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3710ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3711ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3712
3713
3714
3715# Check whether --with-udunits2-include was given.
3716if test "${with_udunits2_include+set}" = set; then :
3717  withval=$with_udunits2_include; udunits2_include_path=$withval
3718fi
3719
3720if test  -n "$udunits2_include_path"  ; then
3721   UD_CPPFLAGS="-I${udunits2_include_path}"
3722else
3723   if test  -n "${UDUNITS2_INCLUDE}"  ; then
3724      UD_CPPFLAGS="-I${UDUNITS2_INCLUDE}"
3725   fi
3726fi
3727
3728
3729# Check whether --with-udunits2-lib was given.
3730if test "${with_udunits2_lib+set}" = set; then :
3731  withval=$with_udunits2_lib; udunits2_lib_path=$withval
3732fi
3733
3734if test  -n "$udunits2_lib_path"  ; then
3735   LIBS="-L${udunits2_lib_path} ${LIBS}"
3736else
3737   if test  -n "${UDUNITS2_LIBS}"  ; then
3738      LIBS="-L${UDUNITS2_LIBS} ${LIBS}"
3739   fi
3740fi
3741
3742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML_ParserCreate in -lexpat" >&5
3743$as_echo_n "checking for XML_ParserCreate in -lexpat... " >&6; }
3744if ${ac_cv_lib_expat_XML_ParserCreate+:} false; then :
3745  $as_echo_n "(cached) " >&6
3746else
3747  ac_check_lib_save_LIBS=$LIBS
3748LIBS="-lexpat ${LIBS} $LIBS"
3749cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3750/* end confdefs.h.  */
3751
3752/* Override any GCC internal prototype to avoid an error.
3753   Use char because int might match the return type of a GCC
3754   builtin and then its argument prototype would still apply.  */
3755#ifdef __cplusplus
3756extern "C"
3757#endif
3758char XML_ParserCreate ();
3759int
3760main ()
3761{
3762return XML_ParserCreate ();
3763  ;
3764  return 0;
3765}
3766_ACEOF
3767if ac_fn_cxx_try_link "$LINENO"; then :
3768  ac_cv_lib_expat_XML_ParserCreate=yes
3769else
3770  ac_cv_lib_expat_XML_ParserCreate=no
3771fi
3772rm -f core conftest.err conftest.$ac_objext \
3773    conftest$ac_exeext conftest.$ac_ext
3774LIBS=$ac_check_lib_save_LIBS
3775fi
3776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
3777$as_echo "$ac_cv_lib_expat_XML_ParserCreate" >&6; }
3778if test "x$ac_cv_lib_expat_XML_ParserCreate" = xyes; then :
3779  cat >>confdefs.h <<_ACEOF
3780#define HAVE_LIBEXPAT 1
3781_ACEOF
3782
3783  LIBS="-lexpat $LIBS"
3784
3785fi
3786
3787if test "${ac_cv_lib_expat_XML_ParserCreate}" == yes; then
3788   LIBS="${LIBS} -lexpat"
3789fi
3790
3791CPPFLAGS="${UD_CPPFLAGS} ${CPPFLAGS}"
3792
3793ac_fn_cxx_check_header_mongrel "$LINENO" "udunits2.h" "ac_cv_header_udunits2_h" "$ac_includes_default"
3794if test "x$ac_cv_header_udunits2_h" = xyes; then :
3795  UDUNITS2_DIR=0
3796else
3797
3798  ac_fn_cxx_check_header_mongrel "$LINENO" "udunits2/udunits2.h" "ac_cv_header_udunits2_udunits2_h" "$ac_includes_default"
3799if test "x$ac_cv_header_udunits2_udunits2_h" = xyes; then :
3800  UDUNITS2_DIR=1
3801else
3802  UD_ERROR="udunits2.h was not found"
3803fi
3804
3805
3806fi
3807
3808
3809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_read_xml in -ludunits2" >&5
3810$as_echo_n "checking for ut_read_xml in -ludunits2... " >&6; }
3811if ${ac_cv_lib_udunits2_ut_read_xml+:} false; then :
3812  $as_echo_n "(cached) " >&6
3813else
3814  ac_check_lib_save_LIBS=$LIBS
3815LIBS="-ludunits2  $LIBS"
3816cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3817/* end confdefs.h.  */
3818
3819/* Override any GCC internal prototype to avoid an error.
3820   Use char because int might match the return type of a GCC
3821   builtin and then its argument prototype would still apply.  */
3822#ifdef __cplusplus
3823extern "C"
3824#endif
3825char ut_read_xml ();
3826int
3827main ()
3828{
3829return ut_read_xml ();
3830  ;
3831  return 0;
3832}
3833_ACEOF
3834if ac_fn_cxx_try_link "$LINENO"; then :
3835  ac_cv_lib_udunits2_ut_read_xml=yes
3836else
3837  ac_cv_lib_udunits2_ut_read_xml=no
3838fi
3839rm -f core conftest.err conftest.$ac_objext \
3840    conftest$ac_exeext conftest.$ac_ext
3841LIBS=$ac_check_lib_save_LIBS
3842fi
3843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_udunits2_ut_read_xml" >&5
3844$as_echo "$ac_cv_lib_udunits2_ut_read_xml" >&6; }
3845if test "x$ac_cv_lib_udunits2_ut_read_xml" = xyes; then :
3846  LIBS="${LIBS} -ludunits2"
3847else
3848  UD_ERROR="libudunits2.so was not found"
3849fi
3850
3851
3852if test "${UD_ERROR}" != ""  ; then { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3853$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3854as_fn_error $? "
3855--------------------------------------------------------------------------------
3856  Configuration failed because ${UD_ERROR}. Try installing:
3857    * deb: libudunits2-dev (Debian, Ubuntu, ...)
3858    * rpm: udunits2-devel (Fedora, EPEL, ...)
3859    * brew: udunits (OSX)
3860  If udunits2 is already installed in a non-standard location, use:
3861    --configure-args='--with-udunits2-lib=/usr/local/lib'
3862  if the library was not found, and/or:
3863    --configure-args='--with-udunits2-include=/usr/include/udunits2'
3864  if the header was not found, replacing paths with appropriate values.
3865  You can alternatively set UDUNITS2_INCLUDE and UDUNITS2_LIBS manually.
3866--------------------------------------------------------------------------------
3867
3868See \`config.log' for more details" "$LINENO" 5; } fi
3869
3870UD_CPPFLAGS="${UD_CPPFLAGS} ${CPPFLAGS}"
3871
3872
3873
3874ac_config_files="$ac_config_files src/Makevars"
3875
3876cat >confcache <<\_ACEOF
3877# This file is a shell script that caches the results of configure
3878# tests run on this system so they can be shared between configure
3879# scripts and configure runs, see configure's option --config-cache.
3880# It is not useful on other systems.  If it contains results you don't
3881# want to keep, you may remove or edit it.
3882#
3883# config.status only pays attention to the cache file if you give it
3884# the --recheck option to rerun configure.
3885#
3886# `ac_cv_env_foo' variables (set or unset) will be overridden when
3887# loading this file, other *unset* `ac_cv_foo' will be assigned the
3888# following values.
3889
3890_ACEOF
3891
3892# The following way of writing the cache mishandles newlines in values,
3893# but we know of no workaround that is simple, portable, and efficient.
3894# So, we kill variables containing newlines.
3895# Ultrix sh set writes to stderr and can't be redirected directly,
3896# and sets the high bit in the cache file unless we assign to the vars.
3897(
3898  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
3899    eval ac_val=\$$ac_var
3900    case $ac_val in #(
3901    *${as_nl}*)
3902      case $ac_var in #(
3903      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3904$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3905      esac
3906      case $ac_var in #(
3907      _ | IFS | as_nl) ;; #(
3908      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3909      *) { eval $ac_var=; unset $ac_var;} ;;
3910      esac ;;
3911    esac
3912  done
3913
3914  (set) 2>&1 |
3915    case $as_nl`(ac_space=' '; set) 2>&1` in #(
3916    *${as_nl}ac_space=\ *)
3917      # `set' does not quote correctly, so add quotes: double-quote
3918      # substitution turns \\\\ into \\, and sed turns \\ into \.
3919      sed -n \
3920	"s/'/'\\\\''/g;
3921	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3922      ;; #(
3923    *)
3924      # `set' quotes correctly as required by POSIX, so do not add quotes.
3925      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3926      ;;
3927    esac |
3928    sort
3929) |
3930  sed '
3931     /^ac_cv_env_/b end
3932     t clear
3933     :clear
3934     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3935     t end
3936     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3937     :end' >>confcache
3938if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
3939  if test -w "$cache_file"; then
3940    if test "x$cache_file" != "x/dev/null"; then
3941      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
3942$as_echo "$as_me: updating cache $cache_file" >&6;}
3943      if test ! -f "$cache_file" || test -h "$cache_file"; then
3944	cat confcache >"$cache_file"
3945      else
3946        case $cache_file in #(
3947        */* | ?:*)
3948	  mv -f confcache "$cache_file"$$ &&
3949	  mv -f "$cache_file"$$ "$cache_file" ;; #(
3950        *)
3951	  mv -f confcache "$cache_file" ;;
3952	esac
3953      fi
3954    fi
3955  else
3956    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
3957$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
3958  fi
3959fi
3960rm -f confcache
3961
3962test "x$prefix" = xNONE && prefix=$ac_default_prefix
3963# Let make expand exec_prefix.
3964test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3965
3966# Transform confdefs.h into DEFS.
3967# Protect against shell expansion while executing Makefile rules.
3968# Protect against Makefile macro expansion.
3969#
3970# If the first sed substitution is executed (which looks for macros that
3971# take arguments), then branch to the quote section.  Otherwise,
3972# look for a macro that doesn't take arguments.
3973ac_script='
3974:mline
3975/\\$/{
3976 N
3977 s,\\\n,,
3978 b mline
3979}
3980t clear
3981:clear
3982s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\)/-D\1=\2/g
3983t quote
3984s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)/-D\1=\2/g
3985t quote
3986b any
3987:quote
3988s/[	 `~#$^&*(){}\\|;'\''"<>?]/\\&/g
3989s/\[/\\&/g
3990s/\]/\\&/g
3991s/\$/$$/g
3992H
3993:any
3994${
3995	g
3996	s/^\n//
3997	s/\n/ /g
3998	p
3999}
4000'
4001DEFS=`sed -n "$ac_script" confdefs.h`
4002
4003
4004ac_libobjs=
4005ac_ltlibobjs=
4006U=
4007for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4008  # 1. Remove the extension, and $U if already installed.
4009  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
4010  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
4011  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
4012  #    will be set to the directory where LIBOBJS objects are built.
4013  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4014  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
4015done
4016LIBOBJS=$ac_libobjs
4017
4018LTLIBOBJS=$ac_ltlibobjs
4019
4020
4021
4022: "${CONFIG_STATUS=./config.status}"
4023ac_write_fail=0
4024ac_clean_files_save=$ac_clean_files
4025ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4026{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
4027$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
4028as_write_fail=0
4029cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
4030#! $SHELL
4031# Generated by $as_me.
4032# Run this file to recreate the current configuration.
4033# Compiler output produced by configure, useful for debugging
4034# configure, is in config.log if it exists.
4035
4036debug=false
4037ac_cs_recheck=false
4038ac_cs_silent=false
4039
4040SHELL=\${CONFIG_SHELL-$SHELL}
4041export SHELL
4042_ASEOF
4043cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
4044## -------------------- ##
4045## M4sh Initialization. ##
4046## -------------------- ##
4047
4048# Be more Bourne compatible
4049DUALCASE=1; export DUALCASE # for MKS sh
4050if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
4051  emulate sh
4052  NULLCMD=:
4053  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4054  # is contrary to our usage.  Disable this feature.
4055  alias -g '${1+"$@"}'='"$@"'
4056  setopt NO_GLOB_SUBST
4057else
4058  case `(set -o) 2>/dev/null` in #(
4059  *posix*) :
4060    set -o posix ;; #(
4061  *) :
4062     ;;
4063esac
4064fi
4065
4066
4067as_nl='
4068'
4069export as_nl
4070# Printing a long string crashes Solaris 7 /usr/bin/printf.
4071as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4072as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4073as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4074# Prefer a ksh shell builtin over an external printf program on Solaris,
4075# but without wasting forks for bash or zsh.
4076if test -z "$BASH_VERSION$ZSH_VERSION" \
4077    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
4078  as_echo='print -r --'
4079  as_echo_n='print -rn --'
4080elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
4081  as_echo='printf %s\n'
4082  as_echo_n='printf %s'
4083else
4084  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
4085    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
4086    as_echo_n='/usr/ucb/echo -n'
4087  else
4088    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
4089    as_echo_n_body='eval
4090      arg=$1;
4091      case $arg in #(
4092      *"$as_nl"*)
4093	expr "X$arg" : "X\\(.*\\)$as_nl";
4094	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
4095      esac;
4096      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
4097    '
4098    export as_echo_n_body
4099    as_echo_n='sh -c $as_echo_n_body as_echo'
4100  fi
4101  export as_echo_body
4102  as_echo='sh -c $as_echo_body as_echo'
4103fi
4104
4105# The user is always right.
4106if test "${PATH_SEPARATOR+set}" != set; then
4107  PATH_SEPARATOR=:
4108  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
4109    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
4110      PATH_SEPARATOR=';'
4111  }
4112fi
4113
4114
4115# IFS
4116# We need space, tab and new line, in precisely that order.  Quoting is
4117# there to prevent editors from complaining about space-tab.
4118# (If _AS_PATH_WALK were called with IFS unset, it would disable word
4119# splitting by setting IFS to empty value.)
4120IFS=" ""	$as_nl"
4121
4122# Find who we are.  Look in the path if we contain no directory separator.
4123as_myself=
4124case $0 in #((
4125  *[\\/]* ) as_myself=$0 ;;
4126  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4127for as_dir in $PATH
4128do
4129  IFS=$as_save_IFS
4130  test -z "$as_dir" && as_dir=.
4131    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4132  done
4133IFS=$as_save_IFS
4134
4135     ;;
4136esac
4137# We did not find ourselves, most probably we were run as `sh COMMAND'
4138# in which case we are not to be found in the path.
4139if test "x$as_myself" = x; then
4140  as_myself=$0
4141fi
4142if test ! -f "$as_myself"; then
4143  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4144  exit 1
4145fi
4146
4147# Unset variables that we do not need and which cause bugs (e.g. in
4148# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
4149# suppresses any "Segmentation fault" message there.  '((' could
4150# trigger a bug in pdksh 5.2.14.
4151for as_var in BASH_ENV ENV MAIL MAILPATH
4152do eval test x\${$as_var+set} = xset \
4153  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
4154done
4155PS1='$ '
4156PS2='> '
4157PS4='+ '
4158
4159# NLS nuisances.
4160LC_ALL=C
4161export LC_ALL
4162LANGUAGE=C
4163export LANGUAGE
4164
4165# CDPATH.
4166(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4167
4168
4169# as_fn_error STATUS ERROR [LINENO LOG_FD]
4170# ----------------------------------------
4171# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
4172# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
4173# script with STATUS, using 1 if that was 0.
4174as_fn_error ()
4175{
4176  as_status=$1; test $as_status -eq 0 && as_status=1
4177  if test "$4"; then
4178    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
4179    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
4180  fi
4181  $as_echo "$as_me: error: $2" >&2
4182  as_fn_exit $as_status
4183} # as_fn_error
4184
4185
4186# as_fn_set_status STATUS
4187# -----------------------
4188# Set $? to STATUS, without forking.
4189as_fn_set_status ()
4190{
4191  return $1
4192} # as_fn_set_status
4193
4194# as_fn_exit STATUS
4195# -----------------
4196# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
4197as_fn_exit ()
4198{
4199  set +e
4200  as_fn_set_status $1
4201  exit $1
4202} # as_fn_exit
4203
4204# as_fn_unset VAR
4205# ---------------
4206# Portably unset VAR.
4207as_fn_unset ()
4208{
4209  { eval $1=; unset $1;}
4210}
4211as_unset=as_fn_unset
4212# as_fn_append VAR VALUE
4213# ----------------------
4214# Append the text in VALUE to the end of the definition contained in VAR. Take
4215# advantage of any shell optimizations that allow amortized linear growth over
4216# repeated appends, instead of the typical quadratic growth present in naive
4217# implementations.
4218if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
4219  eval 'as_fn_append ()
4220  {
4221    eval $1+=\$2
4222  }'
4223else
4224  as_fn_append ()
4225  {
4226    eval $1=\$$1\$2
4227  }
4228fi # as_fn_append
4229
4230# as_fn_arith ARG...
4231# ------------------
4232# Perform arithmetic evaluation on the ARGs, and store the result in the
4233# global $as_val. Take advantage of shells that can avoid forks. The arguments
4234# must be portable across $(()) and expr.
4235if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
4236  eval 'as_fn_arith ()
4237  {
4238    as_val=$(( $* ))
4239  }'
4240else
4241  as_fn_arith ()
4242  {
4243    as_val=`expr "$@" || test $? -eq 1`
4244  }
4245fi # as_fn_arith
4246
4247
4248if expr a : '\(a\)' >/dev/null 2>&1 &&
4249   test "X`expr 00001 : '.*\(...\)'`" = X001; then
4250  as_expr=expr
4251else
4252  as_expr=false
4253fi
4254
4255if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4256  as_basename=basename
4257else
4258  as_basename=false
4259fi
4260
4261if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4262  as_dirname=dirname
4263else
4264  as_dirname=false
4265fi
4266
4267as_me=`$as_basename -- "$0" ||
4268$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4269	 X"$0" : 'X\(//\)$' \| \
4270	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4271$as_echo X/"$0" |
4272    sed '/^.*\/\([^/][^/]*\)\/*$/{
4273	    s//\1/
4274	    q
4275	  }
4276	  /^X\/\(\/\/\)$/{
4277	    s//\1/
4278	    q
4279	  }
4280	  /^X\/\(\/\).*/{
4281	    s//\1/
4282	    q
4283	  }
4284	  s/.*/./; q'`
4285
4286# Avoid depending upon Character Ranges.
4287as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4288as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4289as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4290as_cr_digits='0123456789'
4291as_cr_alnum=$as_cr_Letters$as_cr_digits
4292
4293ECHO_C= ECHO_N= ECHO_T=
4294case `echo -n x` in #(((((
4295-n*)
4296  case `echo 'xy\c'` in
4297  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
4298  xy)  ECHO_C='\c';;
4299  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
4300       ECHO_T='	';;
4301  esac;;
4302*)
4303  ECHO_N='-n';;
4304esac
4305
4306rm -f conf$$ conf$$.exe conf$$.file
4307if test -d conf$$.dir; then
4308  rm -f conf$$.dir/conf$$.file
4309else
4310  rm -f conf$$.dir
4311  mkdir conf$$.dir 2>/dev/null
4312fi
4313if (echo >conf$$.file) 2>/dev/null; then
4314  if ln -s conf$$.file conf$$ 2>/dev/null; then
4315    as_ln_s='ln -s'
4316    # ... but there are two gotchas:
4317    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
4318    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
4319    # In both cases, we have to default to `cp -pR'.
4320    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
4321      as_ln_s='cp -pR'
4322  elif ln conf$$.file conf$$ 2>/dev/null; then
4323    as_ln_s=ln
4324  else
4325    as_ln_s='cp -pR'
4326  fi
4327else
4328  as_ln_s='cp -pR'
4329fi
4330rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
4331rmdir conf$$.dir 2>/dev/null
4332
4333
4334# as_fn_mkdir_p
4335# -------------
4336# Create "$as_dir" as a directory, including parents if necessary.
4337as_fn_mkdir_p ()
4338{
4339
4340  case $as_dir in #(
4341  -*) as_dir=./$as_dir;;
4342  esac
4343  test -d "$as_dir" || eval $as_mkdir_p || {
4344    as_dirs=
4345    while :; do
4346      case $as_dir in #(
4347      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
4348      *) as_qdir=$as_dir;;
4349      esac
4350      as_dirs="'$as_qdir' $as_dirs"
4351      as_dir=`$as_dirname -- "$as_dir" ||
4352$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4353	 X"$as_dir" : 'X\(//\)[^/]' \| \
4354	 X"$as_dir" : 'X\(//\)$' \| \
4355	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
4356$as_echo X"$as_dir" |
4357    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4358	    s//\1/
4359	    q
4360	  }
4361	  /^X\(\/\/\)[^/].*/{
4362	    s//\1/
4363	    q
4364	  }
4365	  /^X\(\/\/\)$/{
4366	    s//\1/
4367	    q
4368	  }
4369	  /^X\(\/\).*/{
4370	    s//\1/
4371	    q
4372	  }
4373	  s/.*/./; q'`
4374      test -d "$as_dir" && break
4375    done
4376    test -z "$as_dirs" || eval "mkdir $as_dirs"
4377  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
4378
4379
4380} # as_fn_mkdir_p
4381if mkdir -p . 2>/dev/null; then
4382  as_mkdir_p='mkdir -p "$as_dir"'
4383else
4384  test -d ./-p && rmdir ./-p
4385  as_mkdir_p=false
4386fi
4387
4388
4389# as_fn_executable_p FILE
4390# -----------------------
4391# Test if FILE is an executable regular file.
4392as_fn_executable_p ()
4393{
4394  test -f "$1" && test -x "$1"
4395} # as_fn_executable_p
4396as_test_x='test -x'
4397as_executable_p=as_fn_executable_p
4398
4399# Sed expression to map a string onto a valid CPP name.
4400as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4401
4402# Sed expression to map a string onto a valid variable name.
4403as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4404
4405
4406exec 6>&1
4407## ----------------------------------- ##
4408## Main body of $CONFIG_STATUS script. ##
4409## ----------------------------------- ##
4410_ASEOF
4411test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
4412
4413cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4414# Save the log message, to keep $0 and so on meaningful, and to
4415# report actual input values of CONFIG_FILES etc. instead of their
4416# values after options handling.
4417ac_log="
4418This file was extended by units $as_me 0.7-2, which was
4419generated by GNU Autoconf 2.69.  Invocation command line was
4420
4421  CONFIG_FILES    = $CONFIG_FILES
4422  CONFIG_HEADERS  = $CONFIG_HEADERS
4423  CONFIG_LINKS    = $CONFIG_LINKS
4424  CONFIG_COMMANDS = $CONFIG_COMMANDS
4425  $ $0 $@
4426
4427on `(hostname || uname -n) 2>/dev/null | sed 1q`
4428"
4429
4430_ACEOF
4431
4432case $ac_config_files in *"
4433"*) set x $ac_config_files; shift; ac_config_files=$*;;
4434esac
4435
4436
4437
4438cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4439# Files that config.status was made for.
4440config_files="$ac_config_files"
4441
4442_ACEOF
4443
4444cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4445ac_cs_usage="\
4446\`$as_me' instantiates files and other configuration actions
4447from templates according to the current configuration.  Unless the files
4448and actions are specified as TAGs, all are instantiated by default.
4449
4450Usage: $0 [OPTION]... [TAG]...
4451
4452  -h, --help       print this help, then exit
4453  -V, --version    print version number and configuration settings, then exit
4454      --config     print configuration, then exit
4455  -q, --quiet, --silent
4456                   do not print progress messages
4457  -d, --debug      don't remove temporary files
4458      --recheck    update $as_me by reconfiguring in the same conditions
4459      --file=FILE[:TEMPLATE]
4460                   instantiate the configuration file FILE
4461
4462Configuration files:
4463$config_files
4464
4465Report bugs to <edzer.pebesma@uni-muenster.de>."
4466
4467_ACEOF
4468cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4469ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
4470ac_cs_version="\\
4471units config.status 0.7-2
4472configured by $0, generated by GNU Autoconf 2.69,
4473  with options \\"\$ac_cs_config\\"
4474
4475Copyright (C) 2012 Free Software Foundation, Inc.
4476This config.status script is free software; the Free Software Foundation
4477gives unlimited permission to copy, distribute and modify it."
4478
4479ac_pwd='$ac_pwd'
4480srcdir='$srcdir'
4481test -n "\$AWK" || AWK=awk
4482_ACEOF
4483
4484cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4485# The default lists apply if the user does not specify any file.
4486ac_need_defaults=:
4487while test $# != 0
4488do
4489  case $1 in
4490  --*=?*)
4491    ac_option=`expr "X$1" : 'X\([^=]*\)='`
4492    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
4493    ac_shift=:
4494    ;;
4495  --*=)
4496    ac_option=`expr "X$1" : 'X\([^=]*\)='`
4497    ac_optarg=
4498    ac_shift=:
4499    ;;
4500  *)
4501    ac_option=$1
4502    ac_optarg=$2
4503    ac_shift=shift
4504    ;;
4505  esac
4506
4507  case $ac_option in
4508  # Handling of the options.
4509  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4510    ac_cs_recheck=: ;;
4511  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
4512    $as_echo "$ac_cs_version"; exit ;;
4513  --config | --confi | --conf | --con | --co | --c )
4514    $as_echo "$ac_cs_config"; exit ;;
4515  --debug | --debu | --deb | --de | --d | -d )
4516    debug=: ;;
4517  --file | --fil | --fi | --f )
4518    $ac_shift
4519    case $ac_optarg in
4520    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4521    '') as_fn_error $? "missing file argument" ;;
4522    esac
4523    as_fn_append CONFIG_FILES " '$ac_optarg'"
4524    ac_need_defaults=false;;
4525  --he | --h |  --help | --hel | -h )
4526    $as_echo "$ac_cs_usage"; exit ;;
4527  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4528  | -silent | --silent | --silen | --sile | --sil | --si | --s)
4529    ac_cs_silent=: ;;
4530
4531  # This is an error.
4532  -*) as_fn_error $? "unrecognized option: \`$1'
4533Try \`$0 --help' for more information." ;;
4534
4535  *) as_fn_append ac_config_targets " $1"
4536     ac_need_defaults=false ;;
4537
4538  esac
4539  shift
4540done
4541
4542ac_configure_extra_args=
4543
4544if $ac_cs_silent; then
4545  exec 6>/dev/null
4546  ac_configure_extra_args="$ac_configure_extra_args --silent"
4547fi
4548
4549_ACEOF
4550cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4551if \$ac_cs_recheck; then
4552  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4553  shift
4554  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
4555  CONFIG_SHELL='$SHELL'
4556  export CONFIG_SHELL
4557  exec "\$@"
4558fi
4559
4560_ACEOF
4561cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4562exec 5>>config.log
4563{
4564  echo
4565  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4566## Running $as_me. ##
4567_ASBOX
4568  $as_echo "$ac_log"
4569} >&5
4570
4571_ACEOF
4572cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4573_ACEOF
4574
4575cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4576
4577# Handling of arguments.
4578for ac_config_target in $ac_config_targets
4579do
4580  case $ac_config_target in
4581    "src/Makevars") CONFIG_FILES="$CONFIG_FILES src/Makevars" ;;
4582
4583  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
4584  esac
4585done
4586
4587
4588# If the user did not use the arguments to specify the items to instantiate,
4589# then the envvar interface is used.  Set only those that are not.
4590# We use the long form for the default assignment because of an extremely
4591# bizarre bug on SunOS 4.1.3.
4592if $ac_need_defaults; then
4593  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4594fi
4595
4596# Have a temporary directory for convenience.  Make it in the build tree
4597# simply because there is no reason against having it here, and in addition,
4598# creating and moving files from /tmp can sometimes cause problems.
4599# Hook for its removal unless debugging.
4600# Note that there is a small window in which the directory will not be cleaned:
4601# after its creation but before its name has been assigned to `$tmp'.
4602$debug ||
4603{
4604  tmp= ac_tmp=
4605  trap 'exit_status=$?
4606  : "${ac_tmp:=$tmp}"
4607  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
4608' 0
4609  trap 'as_fn_exit 1' 1 2 13 15
4610}
4611# Create a (secure) tmp directory for tmp files.
4612
4613{
4614  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
4615  test -d "$tmp"
4616}  ||
4617{
4618  tmp=./conf$$-$RANDOM
4619  (umask 077 && mkdir "$tmp")
4620} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
4621ac_tmp=$tmp
4622
4623# Set up the scripts for CONFIG_FILES section.
4624# No need to generate them if there are no CONFIG_FILES.
4625# This happens for instance with `./config.status config.h'.
4626if test -n "$CONFIG_FILES"; then
4627
4628
4629ac_cr=`echo X | tr X '\015'`
4630# On cygwin, bash can eat \r inside `` if the user requested igncr.
4631# But we know of no other shell where ac_cr would be empty at this
4632# point, so we can use a bashism as a fallback.
4633if test "x$ac_cr" = x; then
4634  eval ac_cr=\$\'\\r\'
4635fi
4636ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
4637if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
4638  ac_cs_awk_cr='\\r'
4639else
4640  ac_cs_awk_cr=$ac_cr
4641fi
4642
4643echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
4644_ACEOF
4645
4646
4647{
4648  echo "cat >conf$$subs.awk <<_ACEOF" &&
4649  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
4650  echo "_ACEOF"
4651} >conf$$subs.sh ||
4652  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4653ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
4654ac_delim='%!_!# '
4655for ac_last_try in false false false false false :; do
4656  . ./conf$$subs.sh ||
4657    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4658
4659  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
4660  if test $ac_delim_n = $ac_delim_num; then
4661    break
4662  elif $ac_last_try; then
4663    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4664  else
4665    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
4666  fi
4667done
4668rm -f conf$$subs.sh
4669
4670cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4671cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
4672_ACEOF
4673sed -n '
4674h
4675s/^/S["/; s/!.*/"]=/
4676p
4677g
4678s/^[^!]*!//
4679:repl
4680t repl
4681s/'"$ac_delim"'$//
4682t delim
4683:nl
4684h
4685s/\(.\{148\}\)..*/\1/
4686t more1
4687s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
4688p
4689n
4690b repl
4691:more1
4692s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4693p
4694g
4695s/.\{148\}//
4696t nl
4697:delim
4698h
4699s/\(.\{148\}\)..*/\1/
4700t more2
4701s/["\\]/\\&/g; s/^/"/; s/$/"/
4702p
4703b
4704:more2
4705s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4706p
4707g
4708s/.\{148\}//
4709t delim
4710' <conf$$subs.awk | sed '
4711/^[^""]/{
4712  N
4713  s/\n//
4714}
4715' >>$CONFIG_STATUS || ac_write_fail=1
4716rm -f conf$$subs.awk
4717cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4718_ACAWK
4719cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
4720  for (key in S) S_is_set[key] = 1
4721  FS = ""
4722
4723}
4724{
4725  line = $ 0
4726  nfields = split(line, field, "@")
4727  substed = 0
4728  len = length(field[1])
4729  for (i = 2; i < nfields; i++) {
4730    key = field[i]
4731    keylen = length(key)
4732    if (S_is_set[key]) {
4733      value = S[key]
4734      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
4735      len += length(value) + length(field[++i])
4736      substed = 1
4737    } else
4738      len += 1 + keylen
4739  }
4740
4741  print line
4742}
4743
4744_ACAWK
4745_ACEOF
4746cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4747if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
4748  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
4749else
4750  cat
4751fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
4752  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
4753_ACEOF
4754
4755# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
4756# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
4757# trailing colons and then remove the whole line if VPATH becomes empty
4758# (actually we leave an empty line to preserve line numbers).
4759if test "x$srcdir" = x.; then
4760  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
4761h
4762s///
4763s/^/:/
4764s/[	 ]*$/:/
4765s/:\$(srcdir):/:/g
4766s/:\${srcdir}:/:/g
4767s/:@srcdir@:/:/g
4768s/^:*//
4769s/:*$//
4770x
4771s/\(=[	 ]*\).*/\1/
4772G
4773s/\n//
4774s/^[^=]*=[	 ]*$//
4775}'
4776fi
4777
4778cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4779fi # test -n "$CONFIG_FILES"
4780
4781
4782eval set X "  :F $CONFIG_FILES      "
4783shift
4784for ac_tag
4785do
4786  case $ac_tag in
4787  :[FHLC]) ac_mode=$ac_tag; continue;;
4788  esac
4789  case $ac_mode$ac_tag in
4790  :[FHL]*:*);;
4791  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
4792  :[FH]-) ac_tag=-:-;;
4793  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
4794  esac
4795  ac_save_IFS=$IFS
4796  IFS=:
4797  set x $ac_tag
4798  IFS=$ac_save_IFS
4799  shift
4800  ac_file=$1
4801  shift
4802
4803  case $ac_mode in
4804  :L) ac_source=$1;;
4805  :[FH])
4806    ac_file_inputs=
4807    for ac_f
4808    do
4809      case $ac_f in
4810      -) ac_f="$ac_tmp/stdin";;
4811      *) # Look for the file first in the build tree, then in the source tree
4812	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
4813	 # because $ac_f cannot contain `:'.
4814	 test -f "$ac_f" ||
4815	   case $ac_f in
4816	   [\\/$]*) false;;
4817	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
4818	   esac ||
4819	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
4820      esac
4821      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
4822      as_fn_append ac_file_inputs " '$ac_f'"
4823    done
4824
4825    # Let's still pretend it is `configure' which instantiates (i.e., don't
4826    # use $as_me), people would be surprised to read:
4827    #    /* config.h.  Generated by config.status.  */
4828    configure_input='Generated from '`
4829	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
4830	`' by configure.'
4831    if test x"$ac_file" != x-; then
4832      configure_input="$ac_file.  $configure_input"
4833      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
4834$as_echo "$as_me: creating $ac_file" >&6;}
4835    fi
4836    # Neutralize special characters interpreted by sed in replacement strings.
4837    case $configure_input in #(
4838    *\&* | *\|* | *\\* )
4839       ac_sed_conf_input=`$as_echo "$configure_input" |
4840       sed 's/[\\\\&|]/\\\\&/g'`;; #(
4841    *) ac_sed_conf_input=$configure_input;;
4842    esac
4843
4844    case $ac_tag in
4845    *:-:* | *:-) cat >"$ac_tmp/stdin" \
4846      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
4847    esac
4848    ;;
4849  esac
4850
4851  ac_dir=`$as_dirname -- "$ac_file" ||
4852$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4853	 X"$ac_file" : 'X\(//\)[^/]' \| \
4854	 X"$ac_file" : 'X\(//\)$' \| \
4855	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
4856$as_echo X"$ac_file" |
4857    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4858	    s//\1/
4859	    q
4860	  }
4861	  /^X\(\/\/\)[^/].*/{
4862	    s//\1/
4863	    q
4864	  }
4865	  /^X\(\/\/\)$/{
4866	    s//\1/
4867	    q
4868	  }
4869	  /^X\(\/\).*/{
4870	    s//\1/
4871	    q
4872	  }
4873	  s/.*/./; q'`
4874  as_dir="$ac_dir"; as_fn_mkdir_p
4875  ac_builddir=.
4876
4877case "$ac_dir" in
4878.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
4879*)
4880  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
4881  # A ".." for each directory in $ac_dir_suffix.
4882  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
4883  case $ac_top_builddir_sub in
4884  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
4885  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
4886  esac ;;
4887esac
4888ac_abs_top_builddir=$ac_pwd
4889ac_abs_builddir=$ac_pwd$ac_dir_suffix
4890# for backward compatibility:
4891ac_top_builddir=$ac_top_build_prefix
4892
4893case $srcdir in
4894  .)  # We are building in place.
4895    ac_srcdir=.
4896    ac_top_srcdir=$ac_top_builddir_sub
4897    ac_abs_top_srcdir=$ac_pwd ;;
4898  [\\/]* | ?:[\\/]* )  # Absolute name.
4899    ac_srcdir=$srcdir$ac_dir_suffix;
4900    ac_top_srcdir=$srcdir
4901    ac_abs_top_srcdir=$srcdir ;;
4902  *) # Relative name.
4903    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
4904    ac_top_srcdir=$ac_top_build_prefix$srcdir
4905    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
4906esac
4907ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
4908
4909
4910  case $ac_mode in
4911  :F)
4912  #
4913  # CONFIG_FILE
4914  #
4915
4916_ACEOF
4917
4918cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4919# If the template does not know about datarootdir, expand it.
4920# FIXME: This hack should be removed a few years after 2.60.
4921ac_datarootdir_hack=; ac_datarootdir_seen=
4922ac_sed_dataroot='
4923/datarootdir/ {
4924  p
4925  q
4926}
4927/@datadir@/p
4928/@docdir@/p
4929/@infodir@/p
4930/@localedir@/p
4931/@mandir@/p'
4932case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
4933*datarootdir*) ac_datarootdir_seen=yes;;
4934*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
4935  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
4936$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
4937_ACEOF
4938cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4939  ac_datarootdir_hack='
4940  s&@datadir@&$datadir&g
4941  s&@docdir@&$docdir&g
4942  s&@infodir@&$infodir&g
4943  s&@localedir@&$localedir&g
4944  s&@mandir@&$mandir&g
4945  s&\\\${datarootdir}&$datarootdir&g' ;;
4946esac
4947_ACEOF
4948
4949# Neutralize VPATH when `$srcdir' = `.'.
4950# Shell code in configure.ac might set extrasub.
4951# FIXME: do we really want to maintain this feature?
4952cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4953ac_sed_extra="$ac_vpsub
4954$extrasub
4955_ACEOF
4956cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4957:t
4958/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4959s|@configure_input@|$ac_sed_conf_input|;t t
4960s&@top_builddir@&$ac_top_builddir_sub&;t t
4961s&@top_build_prefix@&$ac_top_build_prefix&;t t
4962s&@srcdir@&$ac_srcdir&;t t
4963s&@abs_srcdir@&$ac_abs_srcdir&;t t
4964s&@top_srcdir@&$ac_top_srcdir&;t t
4965s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
4966s&@builddir@&$ac_builddir&;t t
4967s&@abs_builddir@&$ac_abs_builddir&;t t
4968s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
4969$ac_datarootdir_hack
4970"
4971eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
4972  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
4973
4974test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
4975  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
4976  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
4977      "$ac_tmp/out"`; test -z "$ac_out"; } &&
4978  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4979which seems to be undefined.  Please make sure it is defined" >&5
4980$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4981which seems to be undefined.  Please make sure it is defined" >&2;}
4982
4983  rm -f "$ac_tmp/stdin"
4984  case $ac_file in
4985  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
4986  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
4987  esac \
4988  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
4989 ;;
4990
4991
4992
4993  esac
4994
4995done # for ac_tag
4996
4997
4998as_fn_exit 0
4999_ACEOF
5000ac_clean_files=$ac_clean_files_save
5001
5002test $ac_write_fail = 0 ||
5003  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
5004
5005
5006# configure is writing to config.log, and then calls config.status.
5007# config.status does its own redirection, appending to config.log.
5008# Unfortunately, on DOS this fails, as config.log is still kept open
5009# by configure, so config.status won't be able to write to it; its
5010# output is simply discarded.  So we exec the FD to /dev/null,
5011# effectively closing config.log, so it can be properly (re)opened and
5012# appended to by config.status.  When coming back to configure, we
5013# need to make the FD available again.
5014if test "$no_create" != yes; then
5015  ac_cs_success=:
5016  ac_config_status_args=
5017  test "$silent" = yes &&
5018    ac_config_status_args="$ac_config_status_args --quiet"
5019  exec 5>/dev/null
5020  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5021  exec 5>>config.log
5022  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5023  # would make configure fail if this is the last instruction.
5024  $ac_cs_success || as_fn_exit 1
5025fi
5026if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
5027  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
5028$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
5029fi
5030
5031