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