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