Logrunner is statically linked for easy deployment.
[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 main in -lAXE" >&5
4354 $as_echo_n "checking for main in -lAXE... " >&6; }
4355 if ${ac_cv_lib_AXE_main+:} false; then :
4356   $as_echo_n "(cached) " >&6
4357 else
4358   ac_check_lib_save_LIBS=$LIBS
4359 LIBS="-lAXE  $LIBS"
4360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4361 /* end confdefs.h.  */
4362
4363
4364 int
4365 main ()
4366 {
4367 return main ();
4368   ;
4369   return 0;
4370 }
4371 _ACEOF
4372 if ac_fn_c_try_link "$LINENO"; then :
4373   ac_cv_lib_AXE_main=yes
4374 else
4375   ac_cv_lib_AXE_main=no
4376 fi
4377 rm -f core conftest.err conftest.$ac_objext \
4378     conftest$ac_exeext conftest.$ac_ext
4379 LIBS=$ac_check_lib_save_LIBS
4380 fi
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_AXE_main" >&5
4382 $as_echo "$ac_cv_lib_AXE_main" >&6; }
4383 if test "x$ac_cv_lib_AXE_main" = xyes; then :
4384   cat >>confdefs.h <<_ACEOF
4385 #define HAVE_LIBAXE 1
4386 _ACEOF
4387
4388   LIBS="-lAXE $LIBS"
4389
4390 else
4391   as_fn_error $? "AXE Library is not installed" "$LINENO" 5
4392 fi
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4403         if test -n "$ac_tool_prefix"; then
4404   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4405 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4407 $as_echo_n "checking for $ac_word... " >&6; }
4408 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4409   $as_echo_n "(cached) " >&6
4410 else
4411   case $PKG_CONFIG in
4412   [\\/]* | ?:[\\/]*)
4413   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4414   ;;
4415   *)
4416   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4417 for as_dir in $PATH
4418 do
4419   IFS=$as_save_IFS
4420   test -z "$as_dir" && as_dir=.
4421     for ac_exec_ext in '' $ac_executable_extensions; do
4422   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4423     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4424     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4425     break 2
4426   fi
4427 done
4428   done
4429 IFS=$as_save_IFS
4430
4431   ;;
4432 esac
4433 fi
4434 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4435 if test -n "$PKG_CONFIG"; then
4436   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4437 $as_echo "$PKG_CONFIG" >&6; }
4438 else
4439   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4440 $as_echo "no" >&6; }
4441 fi
4442
4443
4444 fi
4445 if test -z "$ac_cv_path_PKG_CONFIG"; then
4446   ac_pt_PKG_CONFIG=$PKG_CONFIG
4447   # Extract the first word of "pkg-config", so it can be a program name with args.
4448 set dummy pkg-config; ac_word=$2
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4450 $as_echo_n "checking for $ac_word... " >&6; }
4451 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4452   $as_echo_n "(cached) " >&6
4453 else
4454   case $ac_pt_PKG_CONFIG in
4455   [\\/]* | ?:[\\/]*)
4456   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4457   ;;
4458   *)
4459   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4460 for as_dir in $PATH
4461 do
4462   IFS=$as_save_IFS
4463   test -z "$as_dir" && as_dir=.
4464     for ac_exec_ext in '' $ac_executable_extensions; do
4465   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4466     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4467     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4468     break 2
4469   fi
4470 done
4471   done
4472 IFS=$as_save_IFS
4473
4474   ;;
4475 esac
4476 fi
4477 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4478 if test -n "$ac_pt_PKG_CONFIG"; then
4479   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4480 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4481 else
4482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4483 $as_echo "no" >&6; }
4484 fi
4485
4486   if test "x$ac_pt_PKG_CONFIG" = x; then
4487     PKG_CONFIG=""
4488   else
4489     case $cross_compiling:$ac_tool_warned in
4490 yes:)
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4492 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4493 ac_tool_warned=yes ;;
4494 esac
4495     PKG_CONFIG=$ac_pt_PKG_CONFIG
4496   fi
4497 else
4498   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4499 fi
4500
4501 fi
4502 if test -n "$PKG_CONFIG"; then
4503         _pkg_min_version=0.9.0
4504         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4505 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4506         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4507                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4508 $as_echo "yes" >&6; }
4509         else
4510                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4511 $as_echo "no" >&6; }
4512                 PKG_CONFIG=""
4513         fi
4514 fi
4515
4516 pkg_failed=no
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPQXX" >&5
4518 $as_echo_n "checking for LIBPQXX... " >&6; }
4519
4520 if test -n "$LIBPQXX_CFLAGS"; then
4521     pkg_cv_LIBPQXX_CFLAGS="$LIBPQXX_CFLAGS"
4522  elif test -n "$PKG_CONFIG"; then
4523     if test -n "$PKG_CONFIG" && \
4524     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpqxx >= 2.5.1\""; } >&5
4525   ($PKG_CONFIG --exists --print-errors "libpqxx >= 2.5.1") 2>&5
4526   ac_status=$?
4527   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4528   test $ac_status = 0; }; then
4529   pkg_cv_LIBPQXX_CFLAGS=`$PKG_CONFIG --cflags "libpqxx >= 2.5.1" 2>/dev/null`
4530                       test "x$?" != "x0" && pkg_failed=yes
4531 else
4532   pkg_failed=yes
4533 fi
4534  else
4535     pkg_failed=untried
4536 fi
4537 if test -n "$LIBPQXX_LIBS"; then
4538     pkg_cv_LIBPQXX_LIBS="$LIBPQXX_LIBS"
4539  elif test -n "$PKG_CONFIG"; then
4540     if test -n "$PKG_CONFIG" && \
4541     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpqxx >= 2.5.1\""; } >&5
4542   ($PKG_CONFIG --exists --print-errors "libpqxx >= 2.5.1") 2>&5
4543   ac_status=$?
4544   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4545   test $ac_status = 0; }; then
4546   pkg_cv_LIBPQXX_LIBS=`$PKG_CONFIG --libs "libpqxx >= 2.5.1" 2>/dev/null`
4547                       test "x$?" != "x0" && pkg_failed=yes
4548 else
4549   pkg_failed=yes
4550 fi
4551  else
4552     pkg_failed=untried
4553 fi
4554
4555
4556
4557 if test $pkg_failed = yes; then
4558         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4559 $as_echo "no" >&6; }
4560
4561 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4562         _pkg_short_errors_supported=yes
4563 else
4564         _pkg_short_errors_supported=no
4565 fi
4566         if test $_pkg_short_errors_supported = yes; then
4567                 LIBPQXX_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpqxx >= 2.5.1" 2>&1`
4568         else
4569                 LIBPQXX_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpqxx >= 2.5.1" 2>&1`
4570         fi
4571         # Put the nasty error message in config.log where it belongs
4572         echo "$LIBPQXX_PKG_ERRORS" >&5
4573
4574         as_fn_error $? "Package requirements (libpqxx >= 2.5.1) were not met:
4575
4576 $LIBPQXX_PKG_ERRORS
4577
4578 Consider adjusting the PKG_CONFIG_PATH environment variable if you
4579 installed software in a non-standard prefix.
4580
4581 Alternatively, you may set the environment variables LIBPQXX_CFLAGS
4582 and LIBPQXX_LIBS to avoid the need to call pkg-config.
4583 See the pkg-config man page for more details." "$LINENO" 5
4584 elif test $pkg_failed = untried; then
4585         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4586 $as_echo "no" >&6; }
4587         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4588 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4589 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
4590 is in your PATH or set the PKG_CONFIG environment variable to the full
4591 path to pkg-config.
4592
4593 Alternatively, you may set the environment variables LIBPQXX_CFLAGS
4594 and LIBPQXX_LIBS to avoid the need to call pkg-config.
4595 See the pkg-config man page for more details.
4596
4597 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
4598 See \`config.log' for more details" "$LINENO" 5; }
4599 else
4600         LIBPQXX_CFLAGS=$pkg_cv_LIBPQXX_CFLAGS
4601         LIBPQXX_LIBS=$pkg_cv_LIBPQXX_LIBS
4602         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4603 $as_echo "yes" >&6; }
4604
4605 fi
4606
4607
4608
4609 # Checks for header files.
4610 XML_CFLAGS=`$XML_CONFIG --cflags`
4611 CFLAGS="$CFLAGS $X_CFLAGS $XML_CFLAGS "
4612 CXXFLAGS="$CXXFLAGS  -Wno-deprecated $X_CFLAGS $XML_CFLAGS"
4613
4614 ac_ext=c
4615 ac_cpp='$CPP $CPPFLAGS'
4616 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4617 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4618 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4620 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4621 # On Suns, sometimes $CPP names a directory.
4622 if test -n "$CPP" && test -d "$CPP"; then
4623   CPP=
4624 fi
4625 if test -z "$CPP"; then
4626   if ${ac_cv_prog_CPP+:} false; then :
4627   $as_echo_n "(cached) " >&6
4628 else
4629       # Double quotes because CPP needs to be expanded
4630     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4631     do
4632       ac_preproc_ok=false
4633 for ac_c_preproc_warn_flag in '' yes
4634 do
4635   # Use a header file that comes with gcc, so configuring glibc
4636   # with a fresh cross-compiler works.
4637   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4638   # <limits.h> exists even on freestanding compilers.
4639   # On the NeXT, cc -E runs the code through the compiler's parser,
4640   # not just through cpp. "Syntax error" is here to catch this case.
4641   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4642 /* end confdefs.h.  */
4643 #ifdef __STDC__
4644 # include <limits.h>
4645 #else
4646 # include <assert.h>
4647 #endif
4648                      Syntax error
4649 _ACEOF
4650 if ac_fn_c_try_cpp "$LINENO"; then :
4651
4652 else
4653   # Broken: fails on valid input.
4654 continue
4655 fi
4656 rm -f conftest.err conftest.i conftest.$ac_ext
4657
4658   # OK, works on sane cases.  Now check whether nonexistent headers
4659   # can be detected and how.
4660   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4661 /* end confdefs.h.  */
4662 #include <ac_nonexistent.h>
4663 _ACEOF
4664 if ac_fn_c_try_cpp "$LINENO"; then :
4665   # Broken: success on invalid input.
4666 continue
4667 else
4668   # Passes both tests.
4669 ac_preproc_ok=:
4670 break
4671 fi
4672 rm -f conftest.err conftest.i conftest.$ac_ext
4673
4674 done
4675 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4676 rm -f conftest.i conftest.err conftest.$ac_ext
4677 if $ac_preproc_ok; then :
4678   break
4679 fi
4680
4681     done
4682     ac_cv_prog_CPP=$CPP
4683
4684 fi
4685   CPP=$ac_cv_prog_CPP
4686 else
4687   ac_cv_prog_CPP=$CPP
4688 fi
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4690 $as_echo "$CPP" >&6; }
4691 ac_preproc_ok=false
4692 for ac_c_preproc_warn_flag in '' yes
4693 do
4694   # Use a header file that comes with gcc, so configuring glibc
4695   # with a fresh cross-compiler works.
4696   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4697   # <limits.h> exists even on freestanding compilers.
4698   # On the NeXT, cc -E runs the code through the compiler's parser,
4699   # not just through cpp. "Syntax error" is here to catch this case.
4700   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4701 /* end confdefs.h.  */
4702 #ifdef __STDC__
4703 # include <limits.h>
4704 #else
4705 # include <assert.h>
4706 #endif
4707                      Syntax error
4708 _ACEOF
4709 if ac_fn_c_try_cpp "$LINENO"; then :
4710
4711 else
4712   # Broken: fails on valid input.
4713 continue
4714 fi
4715 rm -f conftest.err conftest.i conftest.$ac_ext
4716
4717   # OK, works on sane cases.  Now check whether nonexistent headers
4718   # can be detected and how.
4719   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4720 /* end confdefs.h.  */
4721 #include <ac_nonexistent.h>
4722 _ACEOF
4723 if ac_fn_c_try_cpp "$LINENO"; then :
4724   # Broken: success on invalid input.
4725 continue
4726 else
4727   # Passes both tests.
4728 ac_preproc_ok=:
4729 break
4730 fi
4731 rm -f conftest.err conftest.i conftest.$ac_ext
4732
4733 done
4734 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4735 rm -f conftest.i conftest.err conftest.$ac_ext
4736 if $ac_preproc_ok; then :
4737
4738 else
4739   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4740 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4741 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4742 See \`config.log' for more details" "$LINENO" 5; }
4743 fi
4744
4745 ac_ext=c
4746 ac_cpp='$CPP $CPPFLAGS'
4747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4750
4751
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4753 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4754 if ${ac_cv_path_GREP+:} false; then :
4755   $as_echo_n "(cached) " >&6
4756 else
4757   if test -z "$GREP"; then
4758   ac_path_GREP_found=false
4759   # Loop through the user's path and test for each of PROGNAME-LIST
4760   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4761 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4762 do
4763   IFS=$as_save_IFS
4764   test -z "$as_dir" && as_dir=.
4765     for ac_prog in grep ggrep; do
4766     for ac_exec_ext in '' $ac_executable_extensions; do
4767       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4768       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4769 # Check for GNU ac_path_GREP and select it if it is found.
4770   # Check for GNU $ac_path_GREP
4771 case `"$ac_path_GREP" --version 2>&1` in
4772 *GNU*)
4773   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4774 *)
4775   ac_count=0
4776   $as_echo_n 0123456789 >"conftest.in"
4777   while :
4778   do
4779     cat "conftest.in" "conftest.in" >"conftest.tmp"
4780     mv "conftest.tmp" "conftest.in"
4781     cp "conftest.in" "conftest.nl"
4782     $as_echo 'GREP' >> "conftest.nl"
4783     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4784     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4785     as_fn_arith $ac_count + 1 && ac_count=$as_val
4786     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4787       # Best one so far, save it but keep looking for a better one
4788       ac_cv_path_GREP="$ac_path_GREP"
4789       ac_path_GREP_max=$ac_count
4790     fi
4791     # 10*(2^10) chars as input seems more than enough
4792     test $ac_count -gt 10 && break
4793   done
4794   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4795 esac
4796
4797       $ac_path_GREP_found && break 3
4798     done
4799   done
4800   done
4801 IFS=$as_save_IFS
4802   if test -z "$ac_cv_path_GREP"; then
4803     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4804   fi
4805 else
4806   ac_cv_path_GREP=$GREP
4807 fi
4808
4809 fi
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4811 $as_echo "$ac_cv_path_GREP" >&6; }
4812  GREP="$ac_cv_path_GREP"
4813
4814
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4816 $as_echo_n "checking for egrep... " >&6; }
4817 if ${ac_cv_path_EGREP+:} false; then :
4818   $as_echo_n "(cached) " >&6
4819 else
4820   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4821    then ac_cv_path_EGREP="$GREP -E"
4822    else
4823      if test -z "$EGREP"; then
4824   ac_path_EGREP_found=false
4825   # Loop through the user's path and test for each of PROGNAME-LIST
4826   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4827 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4828 do
4829   IFS=$as_save_IFS
4830   test -z "$as_dir" && as_dir=.
4831     for ac_prog in egrep; do
4832     for ac_exec_ext in '' $ac_executable_extensions; do
4833       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4834       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4835 # Check for GNU ac_path_EGREP and select it if it is found.
4836   # Check for GNU $ac_path_EGREP
4837 case `"$ac_path_EGREP" --version 2>&1` in
4838 *GNU*)
4839   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4840 *)
4841   ac_count=0
4842   $as_echo_n 0123456789 >"conftest.in"
4843   while :
4844   do
4845     cat "conftest.in" "conftest.in" >"conftest.tmp"
4846     mv "conftest.tmp" "conftest.in"
4847     cp "conftest.in" "conftest.nl"
4848     $as_echo 'EGREP' >> "conftest.nl"
4849     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4850     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4851     as_fn_arith $ac_count + 1 && ac_count=$as_val
4852     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4853       # Best one so far, save it but keep looking for a better one
4854       ac_cv_path_EGREP="$ac_path_EGREP"
4855       ac_path_EGREP_max=$ac_count
4856     fi
4857     # 10*(2^10) chars as input seems more than enough
4858     test $ac_count -gt 10 && break
4859   done
4860   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4861 esac
4862
4863       $ac_path_EGREP_found && break 3
4864     done
4865   done
4866   done
4867 IFS=$as_save_IFS
4868   if test -z "$ac_cv_path_EGREP"; then
4869     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4870   fi
4871 else
4872   ac_cv_path_EGREP=$EGREP
4873 fi
4874
4875    fi
4876 fi
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4878 $as_echo "$ac_cv_path_EGREP" >&6; }
4879  EGREP="$ac_cv_path_EGREP"
4880
4881
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4883 $as_echo_n "checking for ANSI C header files... " >&6; }
4884 if ${ac_cv_header_stdc+:} false; then :
4885   $as_echo_n "(cached) " >&6
4886 else
4887   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4888 /* end confdefs.h.  */
4889 #include <stdlib.h>
4890 #include <stdarg.h>
4891 #include <string.h>
4892 #include <float.h>
4893
4894 int
4895 main ()
4896 {
4897
4898   ;
4899   return 0;
4900 }
4901 _ACEOF
4902 if ac_fn_c_try_compile "$LINENO"; then :
4903   ac_cv_header_stdc=yes
4904 else
4905   ac_cv_header_stdc=no
4906 fi
4907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4908
4909 if test $ac_cv_header_stdc = yes; then
4910   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4911   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4912 /* end confdefs.h.  */
4913 #include <string.h>
4914
4915 _ACEOF
4916 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4917   $EGREP "memchr" >/dev/null 2>&1; then :
4918
4919 else
4920   ac_cv_header_stdc=no
4921 fi
4922 rm -f conftest*
4923
4924 fi
4925
4926 if test $ac_cv_header_stdc = yes; then
4927   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4928   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4929 /* end confdefs.h.  */
4930 #include <stdlib.h>
4931
4932 _ACEOF
4933 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4934   $EGREP "free" >/dev/null 2>&1; then :
4935
4936 else
4937   ac_cv_header_stdc=no
4938 fi
4939 rm -f conftest*
4940
4941 fi
4942
4943 if test $ac_cv_header_stdc = yes; then
4944   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4945   if test "$cross_compiling" = yes; then :
4946   :
4947 else
4948   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4949 /* end confdefs.h.  */
4950 #include <ctype.h>
4951 #include <stdlib.h>
4952 #if ((' ' & 0x0FF) == 0x020)
4953 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4954 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4955 #else
4956 # define ISLOWER(c) \
4957                    (('a' <= (c) && (c) <= 'i') \
4958                      || ('j' <= (c) && (c) <= 'r') \
4959                      || ('s' <= (c) && (c) <= 'z'))
4960 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4961 #endif
4962
4963 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4964 int
4965 main ()
4966 {
4967   int i;
4968   for (i = 0; i < 256; i++)
4969     if (XOR (islower (i), ISLOWER (i))
4970         || toupper (i) != TOUPPER (i))
4971       return 2;
4972   return 0;
4973 }
4974 _ACEOF
4975 if ac_fn_c_try_run "$LINENO"; then :
4976
4977 else
4978   ac_cv_header_stdc=no
4979 fi
4980 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4981   conftest.$ac_objext conftest.beam conftest.$ac_ext
4982 fi
4983
4984 fi
4985 fi
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4987 $as_echo "$ac_cv_header_stdc" >&6; }
4988 if test $ac_cv_header_stdc = yes; then
4989
4990 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4991
4992 fi
4993
4994 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4995 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4996                   inttypes.h stdint.h unistd.h
4997 do :
4998   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4999 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5000 "
5001 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5002   cat >>confdefs.h <<_ACEOF
5003 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5004 _ACEOF
5005
5006 fi
5007
5008 done
5009
5010
5011 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
5012 do :
5013   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5014 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5015 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5016   cat >>confdefs.h <<_ACEOF
5017 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5018 _ACEOF
5019
5020 fi
5021
5022 done
5023
5024
5025 # Checks for typedefs, structures, and compiler characteristics.
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
5027 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
5028 if ${ac_cv_header_stdbool_h+:} false; then :
5029   $as_echo_n "(cached) " >&6
5030 else
5031   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5032 /* end confdefs.h.  */
5033
5034 #include <stdbool.h>
5035 #ifndef bool
5036  "error: bool is not defined"
5037 #endif
5038 #ifndef false
5039  "error: false is not defined"
5040 #endif
5041 #if false
5042  "error: false is not 0"
5043 #endif
5044 #ifndef true
5045  "error: true is not defined"
5046 #endif
5047 #if true != 1
5048  "error: true is not 1"
5049 #endif
5050 #ifndef __bool_true_false_are_defined
5051  "error: __bool_true_false_are_defined is not defined"
5052 #endif
5053
5054         struct s { _Bool s: 1; _Bool t; } s;
5055
5056         char a[true == 1 ? 1 : -1];
5057         char b[false == 0 ? 1 : -1];
5058         char c[__bool_true_false_are_defined == 1 ? 1 : -1];
5059         char d[(bool) 0.5 == true ? 1 : -1];
5060         /* See body of main program for 'e'.  */
5061         char f[(_Bool) 0.0 == false ? 1 : -1];
5062         char g[true];
5063         char h[sizeof (_Bool)];
5064         char i[sizeof s.t];
5065         enum { j = false, k = true, l = false * true, m = true * 256 };
5066         /* The following fails for
5067            HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
5068         _Bool n[m];
5069         char o[sizeof n == m * sizeof n[0] ? 1 : -1];
5070         char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
5071         /* Catch a bug in an HP-UX C compiler.  See
5072            http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
5073            http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
5074          */
5075         _Bool q = true;
5076         _Bool *pq = &q;
5077
5078 int
5079 main ()
5080 {
5081
5082         bool e = &s;
5083         *pq |= q;
5084         *pq |= ! q;
5085         /* Refer to every declared value, to avoid compiler optimizations.  */
5086         return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
5087                 + !m + !n + !o + !p + !q + !pq);
5088
5089   ;
5090   return 0;
5091 }
5092 _ACEOF
5093 if ac_fn_c_try_compile "$LINENO"; then :
5094   ac_cv_header_stdbool_h=yes
5095 else
5096   ac_cv_header_stdbool_h=no
5097 fi
5098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5099 fi
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
5101 $as_echo "$ac_cv_header_stdbool_h" >&6; }
5102 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
5103 if test "x$ac_cv_type__Bool" = xyes; then :
5104
5105 cat >>confdefs.h <<_ACEOF
5106 #define HAVE__BOOL 1
5107 _ACEOF
5108
5109
5110 fi
5111
5112 if test $ac_cv_header_stdbool_h = yes; then
5113
5114 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
5115
5116 fi
5117
5118 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
5119 if test "x$ac_cv_type_off_t" = xyes; then :
5120
5121 else
5122
5123 cat >>confdefs.h <<_ACEOF
5124 #define off_t long int
5125 _ACEOF
5126
5127 fi
5128
5129
5130 # Checks for library functions.
5131 for ac_header in stdlib.h
5132 do :
5133   ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
5134 if test "x$ac_cv_header_stdlib_h" = xyes; then :
5135   cat >>confdefs.h <<_ACEOF
5136 #define HAVE_STDLIB_H 1
5137 _ACEOF
5138
5139 fi
5140
5141 done
5142
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
5144 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
5145 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
5146   $as_echo_n "(cached) " >&6
5147 else
5148   if test "$cross_compiling" = yes; then :
5149   ac_cv_func_malloc_0_nonnull=no
5150 else
5151   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5152 /* end confdefs.h.  */
5153 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
5154 # include <stdlib.h>
5155 #else
5156 char *malloc ();
5157 #endif
5158
5159 int
5160 main ()
5161 {
5162 return ! malloc (0);
5163   ;
5164   return 0;
5165 }
5166 _ACEOF
5167 if ac_fn_c_try_run "$LINENO"; then :
5168   ac_cv_func_malloc_0_nonnull=yes
5169 else
5170   ac_cv_func_malloc_0_nonnull=no
5171 fi
5172 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5173   conftest.$ac_objext conftest.beam conftest.$ac_ext
5174 fi
5175
5176 fi
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
5178 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
5179 if test $ac_cv_func_malloc_0_nonnull = yes; then :
5180
5181 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
5182
5183 else
5184   $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
5185
5186    case " $LIBOBJS " in
5187   *" malloc.$ac_objext "* ) ;;
5188   *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
5189  ;;
5190 esac
5191
5192
5193 $as_echo "#define malloc rpl_malloc" >>confdefs.h
5194
5195 fi
5196
5197
5198 for ac_func in gethostbyname gethostname memmove socket strchr strdup strerror
5199 do :
5200   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5201 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5202 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5203   cat >>confdefs.h <<_ACEOF
5204 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5205 _ACEOF
5206
5207 fi
5208 done
5209
5210
5211 ac_config_files="$ac_config_files Makefile src/Makefile src/gcm_input/Makefile src/lib/Makefile test/Makefile"
5212
5213 cat >confcache <<\_ACEOF
5214 # This file is a shell script that caches the results of configure
5215 # tests run on this system so they can be shared between configure
5216 # scripts and configure runs, see configure's option --config-cache.
5217 # It is not useful on other systems.  If it contains results you don't
5218 # want to keep, you may remove or edit it.
5219 #
5220 # config.status only pays attention to the cache file if you give it
5221 # the --recheck option to rerun configure.
5222 #
5223 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5224 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5225 # following values.
5226
5227 _ACEOF
5228
5229 # The following way of writing the cache mishandles newlines in values,
5230 # but we know of no workaround that is simple, portable, and efficient.
5231 # So, we kill variables containing newlines.
5232 # Ultrix sh set writes to stderr and can't be redirected directly,
5233 # and sets the high bit in the cache file unless we assign to the vars.
5234 (
5235   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5236     eval ac_val=\$$ac_var
5237     case $ac_val in #(
5238     *${as_nl}*)
5239       case $ac_var in #(
5240       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5241 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5242       esac
5243       case $ac_var in #(
5244       _ | IFS | as_nl) ;; #(
5245       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5246       *) { eval $ac_var=; unset $ac_var;} ;;
5247       esac ;;
5248     esac
5249   done
5250
5251   (set) 2>&1 |
5252     case $as_nl`(ac_space=' '; set) 2>&1` in #(
5253     *${as_nl}ac_space=\ *)
5254       # `set' does not quote correctly, so add quotes: double-quote
5255       # substitution turns \\\\ into \\, and sed turns \\ into \.
5256       sed -n \
5257         "s/'/'\\\\''/g;
5258           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5259       ;; #(
5260     *)
5261       # `set' quotes correctly as required by POSIX, so do not add quotes.
5262       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5263       ;;
5264     esac |
5265     sort
5266 ) |
5267   sed '
5268      /^ac_cv_env_/b end
5269      t clear
5270      :clear
5271      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5272      t end
5273      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5274      :end' >>confcache
5275 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5276   if test -w "$cache_file"; then
5277     if test "x$cache_file" != "x/dev/null"; then
5278       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5279 $as_echo "$as_me: updating cache $cache_file" >&6;}
5280       if test ! -f "$cache_file" || test -h "$cache_file"; then
5281         cat confcache >"$cache_file"
5282       else
5283         case $cache_file in #(
5284         */* | ?:*)
5285           mv -f confcache "$cache_file"$$ &&
5286           mv -f "$cache_file"$$ "$cache_file" ;; #(
5287         *)
5288           mv -f confcache "$cache_file" ;;
5289         esac
5290       fi
5291     fi
5292   else
5293     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5294 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5295   fi
5296 fi
5297 rm -f confcache
5298
5299 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5300 # Let make expand exec_prefix.
5301 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5302
5303 DEFS=-DHAVE_CONFIG_H
5304
5305 ac_libobjs=
5306 ac_ltlibobjs=
5307 U=
5308 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5309   # 1. Remove the extension, and $U if already installed.
5310   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5311   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5312   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
5313   #    will be set to the directory where LIBOBJS objects are built.
5314   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5315   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5316 done
5317 LIBOBJS=$ac_libobjs
5318
5319 LTLIBOBJS=$ac_ltlibobjs
5320
5321
5322  if test -n "$EXEEXT"; then
5323   am__EXEEXT_TRUE=
5324   am__EXEEXT_FALSE='#'
5325 else
5326   am__EXEEXT_TRUE='#'
5327   am__EXEEXT_FALSE=
5328 fi
5329
5330 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5331   as_fn_error $? "conditional \"AMDEP\" was never defined.
5332 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5333 fi
5334 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
5335   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
5336 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5337 fi
5338 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5339   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
5340 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5341 fi
5342
5343 : "${CONFIG_STATUS=./config.status}"
5344 ac_write_fail=0
5345 ac_clean_files_save=$ac_clean_files
5346 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5348 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5349 as_write_fail=0
5350 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5351 #! $SHELL
5352 # Generated by $as_me.
5353 # Run this file to recreate the current configuration.
5354 # Compiler output produced by configure, useful for debugging
5355 # configure, is in config.log if it exists.
5356
5357 debug=false
5358 ac_cs_recheck=false
5359 ac_cs_silent=false
5360
5361 SHELL=\${CONFIG_SHELL-$SHELL}
5362 export SHELL
5363 _ASEOF
5364 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5365 ## -------------------- ##
5366 ## M4sh Initialization. ##
5367 ## -------------------- ##
5368
5369 # Be more Bourne compatible
5370 DUALCASE=1; export DUALCASE # for MKS sh
5371 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5372   emulate sh
5373   NULLCMD=:
5374   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5375   # is contrary to our usage.  Disable this feature.
5376   alias -g '${1+"$@"}'='"$@"'
5377   setopt NO_GLOB_SUBST
5378 else
5379   case `(set -o) 2>/dev/null` in #(
5380   *posix*) :
5381     set -o posix ;; #(
5382   *) :
5383      ;;
5384 esac
5385 fi
5386
5387
5388 as_nl='
5389 '
5390 export as_nl
5391 # Printing a long string crashes Solaris 7 /usr/bin/printf.
5392 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5393 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5394 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5395 # Prefer a ksh shell builtin over an external printf program on Solaris,
5396 # but without wasting forks for bash or zsh.
5397 if test -z "$BASH_VERSION$ZSH_VERSION" \
5398     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5399   as_echo='print -r --'
5400   as_echo_n='print -rn --'
5401 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5402   as_echo='printf %s\n'
5403   as_echo_n='printf %s'
5404 else
5405   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5406     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5407     as_echo_n='/usr/ucb/echo -n'
5408   else
5409     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5410     as_echo_n_body='eval
5411       arg=$1;
5412       case $arg in #(
5413       *"$as_nl"*)
5414         expr "X$arg" : "X\\(.*\\)$as_nl";
5415         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5416       esac;
5417       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5418     '
5419     export as_echo_n_body
5420     as_echo_n='sh -c $as_echo_n_body as_echo'
5421   fi
5422   export as_echo_body
5423   as_echo='sh -c $as_echo_body as_echo'
5424 fi
5425
5426 # The user is always right.
5427 if test "${PATH_SEPARATOR+set}" != set; then
5428   PATH_SEPARATOR=:
5429   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5430     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5431       PATH_SEPARATOR=';'
5432   }
5433 fi
5434
5435
5436 # IFS
5437 # We need space, tab and new line, in precisely that order.  Quoting is
5438 # there to prevent editors from complaining about space-tab.
5439 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5440 # splitting by setting IFS to empty value.)
5441 IFS=" ""        $as_nl"
5442
5443 # Find who we are.  Look in the path if we contain no directory separator.
5444 as_myself=
5445 case $0 in #((
5446   *[\\/]* ) as_myself=$0 ;;
5447   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5448 for as_dir in $PATH
5449 do
5450   IFS=$as_save_IFS
5451   test -z "$as_dir" && as_dir=.
5452     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5453   done
5454 IFS=$as_save_IFS
5455
5456      ;;
5457 esac
5458 # We did not find ourselves, most probably we were run as `sh COMMAND'
5459 # in which case we are not to be found in the path.
5460 if test "x$as_myself" = x; then
5461   as_myself=$0
5462 fi
5463 if test ! -f "$as_myself"; then
5464   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5465   exit 1
5466 fi
5467
5468 # Unset variables that we do not need and which cause bugs (e.g. in
5469 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
5470 # suppresses any "Segmentation fault" message there.  '((' could
5471 # trigger a bug in pdksh 5.2.14.
5472 for as_var in BASH_ENV ENV MAIL MAILPATH
5473 do eval test x\${$as_var+set} = xset \
5474   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5475 done
5476 PS1='$ '
5477 PS2='> '
5478 PS4='+ '
5479
5480 # NLS nuisances.
5481 LC_ALL=C
5482 export LC_ALL
5483 LANGUAGE=C
5484 export LANGUAGE
5485
5486 # CDPATH.
5487 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5488
5489
5490 # as_fn_error STATUS ERROR [LINENO LOG_FD]
5491 # ----------------------------------------
5492 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5493 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5494 # script with STATUS, using 1 if that was 0.
5495 as_fn_error ()
5496 {
5497   as_status=$1; test $as_status -eq 0 && as_status=1
5498   if test "$4"; then
5499     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5500     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5501   fi
5502   $as_echo "$as_me: error: $2" >&2
5503   as_fn_exit $as_status
5504 } # as_fn_error
5505
5506
5507 # as_fn_set_status STATUS
5508 # -----------------------
5509 # Set $? to STATUS, without forking.
5510 as_fn_set_status ()
5511 {
5512   return $1
5513 } # as_fn_set_status
5514
5515 # as_fn_exit STATUS
5516 # -----------------
5517 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5518 as_fn_exit ()
5519 {
5520   set +e
5521   as_fn_set_status $1
5522   exit $1
5523 } # as_fn_exit
5524
5525 # as_fn_unset VAR
5526 # ---------------
5527 # Portably unset VAR.
5528 as_fn_unset ()
5529 {
5530   { eval $1=; unset $1;}
5531 }
5532 as_unset=as_fn_unset
5533 # as_fn_append VAR VALUE
5534 # ----------------------
5535 # Append the text in VALUE to the end of the definition contained in VAR. Take
5536 # advantage of any shell optimizations that allow amortized linear growth over
5537 # repeated appends, instead of the typical quadratic growth present in naive
5538 # implementations.
5539 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5540   eval 'as_fn_append ()
5541   {
5542     eval $1+=\$2
5543   }'
5544 else
5545   as_fn_append ()
5546   {
5547     eval $1=\$$1\$2
5548   }
5549 fi # as_fn_append
5550
5551 # as_fn_arith ARG...
5552 # ------------------
5553 # Perform arithmetic evaluation on the ARGs, and store the result in the
5554 # global $as_val. Take advantage of shells that can avoid forks. The arguments
5555 # must be portable across $(()) and expr.
5556 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5557   eval 'as_fn_arith ()
5558   {
5559     as_val=$(( $* ))
5560   }'
5561 else
5562   as_fn_arith ()
5563   {
5564     as_val=`expr "$@" || test $? -eq 1`
5565   }
5566 fi # as_fn_arith
5567
5568
5569 if expr a : '\(a\)' >/dev/null 2>&1 &&
5570    test "X`expr 00001 : '.*\(...\)'`" = X001; then
5571   as_expr=expr
5572 else
5573   as_expr=false
5574 fi
5575
5576 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5577   as_basename=basename
5578 else
5579   as_basename=false
5580 fi
5581
5582 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5583   as_dirname=dirname
5584 else
5585   as_dirname=false
5586 fi
5587
5588 as_me=`$as_basename -- "$0" ||
5589 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5590          X"$0" : 'X\(//\)$' \| \
5591          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5592 $as_echo X/"$0" |
5593     sed '/^.*\/\([^/][^/]*\)\/*$/{
5594             s//\1/
5595             q
5596           }
5597           /^X\/\(\/\/\)$/{
5598             s//\1/
5599             q
5600           }
5601           /^X\/\(\/\).*/{
5602             s//\1/
5603             q
5604           }
5605           s/.*/./; q'`
5606
5607 # Avoid depending upon Character Ranges.
5608 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5609 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5610 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5611 as_cr_digits='0123456789'
5612 as_cr_alnum=$as_cr_Letters$as_cr_digits
5613
5614 ECHO_C= ECHO_N= ECHO_T=
5615 case `echo -n x` in #(((((
5616 -n*)
5617   case `echo 'xy\c'` in
5618   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
5619   xy)  ECHO_C='\c';;
5620   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
5621        ECHO_T=' ';;
5622   esac;;
5623 *)
5624   ECHO_N='-n';;
5625 esac
5626
5627 rm -f conf$$ conf$$.exe conf$$.file
5628 if test -d conf$$.dir; then
5629   rm -f conf$$.dir/conf$$.file
5630 else
5631   rm -f conf$$.dir
5632   mkdir conf$$.dir 2>/dev/null
5633 fi
5634 if (echo >conf$$.file) 2>/dev/null; then
5635   if ln -s conf$$.file conf$$ 2>/dev/null; then
5636     as_ln_s='ln -s'
5637     # ... but there are two gotchas:
5638     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5639     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5640     # In both cases, we have to default to `cp -p'.
5641     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5642       as_ln_s='cp -p'
5643   elif ln conf$$.file conf$$ 2>/dev/null; then
5644     as_ln_s=ln
5645   else
5646     as_ln_s='cp -p'
5647   fi
5648 else
5649   as_ln_s='cp -p'
5650 fi
5651 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5652 rmdir conf$$.dir 2>/dev/null
5653
5654
5655 # as_fn_mkdir_p
5656 # -------------
5657 # Create "$as_dir" as a directory, including parents if necessary.
5658 as_fn_mkdir_p ()
5659 {
5660
5661   case $as_dir in #(
5662   -*) as_dir=./$as_dir;;
5663   esac
5664   test -d "$as_dir" || eval $as_mkdir_p || {
5665     as_dirs=
5666     while :; do
5667       case $as_dir in #(
5668       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5669       *) as_qdir=$as_dir;;
5670       esac
5671       as_dirs="'$as_qdir' $as_dirs"
5672       as_dir=`$as_dirname -- "$as_dir" ||
5673 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5674          X"$as_dir" : 'X\(//\)[^/]' \| \
5675          X"$as_dir" : 'X\(//\)$' \| \
5676          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5677 $as_echo X"$as_dir" |
5678     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5679             s//\1/
5680             q
5681           }
5682           /^X\(\/\/\)[^/].*/{
5683             s//\1/
5684             q
5685           }
5686           /^X\(\/\/\)$/{
5687             s//\1/
5688             q
5689           }
5690           /^X\(\/\).*/{
5691             s//\1/
5692             q
5693           }
5694           s/.*/./; q'`
5695       test -d "$as_dir" && break
5696     done
5697     test -z "$as_dirs" || eval "mkdir $as_dirs"
5698   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5699
5700
5701 } # as_fn_mkdir_p
5702 if mkdir -p . 2>/dev/null; then
5703   as_mkdir_p='mkdir -p "$as_dir"'
5704 else
5705   test -d ./-p && rmdir ./-p
5706   as_mkdir_p=false
5707 fi
5708
5709 if test -x / >/dev/null 2>&1; then
5710   as_test_x='test -x'
5711 else
5712   if ls -dL / >/dev/null 2>&1; then
5713     as_ls_L_option=L
5714   else
5715     as_ls_L_option=
5716   fi
5717   as_test_x='
5718     eval sh -c '\''
5719       if test -d "$1"; then
5720         test -d "$1/.";
5721       else
5722         case $1 in #(
5723         -*)set "./$1";;
5724         esac;
5725         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
5726         ???[sx]*):;;*)false;;esac;fi
5727     '\'' sh
5728   '
5729 fi
5730 as_executable_p=$as_test_x
5731
5732 # Sed expression to map a string onto a valid CPP name.
5733 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5734
5735 # Sed expression to map a string onto a valid variable name.
5736 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5737
5738
5739 exec 6>&1
5740 ## ----------------------------------- ##
5741 ## Main body of $CONFIG_STATUS script. ##
5742 ## ----------------------------------- ##
5743 _ASEOF
5744 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5745
5746 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5747 # Save the log message, to keep $0 and so on meaningful, and to
5748 # report actual input values of CONFIG_FILES etc. instead of their
5749 # values after options handling.
5750 ac_log="
5751 This file was extended by FULL-PACKAGE-NAME $as_me VERSION, which was
5752 generated by GNU Autoconf 2.68.  Invocation command line was
5753
5754   CONFIG_FILES    = $CONFIG_FILES
5755   CONFIG_HEADERS  = $CONFIG_HEADERS
5756   CONFIG_LINKS    = $CONFIG_LINKS
5757   CONFIG_COMMANDS = $CONFIG_COMMANDS
5758   $ $0 $@
5759
5760 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5761 "
5762
5763 _ACEOF
5764
5765 case $ac_config_files in *"
5766 "*) set x $ac_config_files; shift; ac_config_files=$*;;
5767 esac
5768
5769 case $ac_config_headers in *"
5770 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
5771 esac
5772
5773
5774 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5775 # Files that config.status was made for.
5776 config_files="$ac_config_files"
5777 config_headers="$ac_config_headers"
5778 config_commands="$ac_config_commands"
5779
5780 _ACEOF
5781
5782 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5783 ac_cs_usage="\
5784 \`$as_me' instantiates files and other configuration actions
5785 from templates according to the current configuration.  Unless the files
5786 and actions are specified as TAGs, all are instantiated by default.
5787
5788 Usage: $0 [OPTION]... [TAG]...
5789
5790   -h, --help       print this help, then exit
5791   -V, --version    print version number and configuration settings, then exit
5792       --config     print configuration, then exit
5793   -q, --quiet, --silent
5794                    do not print progress messages
5795   -d, --debug      don't remove temporary files
5796       --recheck    update $as_me by reconfiguring in the same conditions
5797       --file=FILE[:TEMPLATE]
5798                    instantiate the configuration file FILE
5799       --header=FILE[:TEMPLATE]
5800                    instantiate the configuration header FILE
5801
5802 Configuration files:
5803 $config_files
5804
5805 Configuration headers:
5806 $config_headers
5807
5808 Configuration commands:
5809 $config_commands
5810
5811 Report bugs to <BUG-REPORT-ADDRESS>."
5812
5813 _ACEOF
5814 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5815 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
5816 ac_cs_version="\\
5817 FULL-PACKAGE-NAME config.status VERSION
5818 configured by $0, generated by GNU Autoconf 2.68,
5819   with options \\"\$ac_cs_config\\"
5820
5821 Copyright (C) 2010 Free Software Foundation, Inc.
5822 This config.status script is free software; the Free Software Foundation
5823 gives unlimited permission to copy, distribute and modify it."
5824
5825 ac_pwd='$ac_pwd'
5826 srcdir='$srcdir'
5827 INSTALL='$INSTALL'
5828 MKDIR_P='$MKDIR_P'
5829 AWK='$AWK'
5830 test -n "\$AWK" || AWK=awk
5831 _ACEOF
5832
5833 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5834 # The default lists apply if the user does not specify any file.
5835 ac_need_defaults=:
5836 while test $# != 0
5837 do
5838   case $1 in
5839   --*=?*)
5840     ac_option=`expr "X$1" : 'X\([^=]*\)='`
5841     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5842     ac_shift=:
5843     ;;
5844   --*=)
5845     ac_option=`expr "X$1" : 'X\([^=]*\)='`
5846     ac_optarg=
5847     ac_shift=:
5848     ;;
5849   *)
5850     ac_option=$1
5851     ac_optarg=$2
5852     ac_shift=shift
5853     ;;
5854   esac
5855
5856   case $ac_option in
5857   # Handling of the options.
5858   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5859     ac_cs_recheck=: ;;
5860   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5861     $as_echo "$ac_cs_version"; exit ;;
5862   --config | --confi | --conf | --con | --co | --c )
5863     $as_echo "$ac_cs_config"; exit ;;
5864   --debug | --debu | --deb | --de | --d | -d )
5865     debug=: ;;
5866   --file | --fil | --fi | --f )
5867     $ac_shift
5868     case $ac_optarg in
5869     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5870     '') as_fn_error $? "missing file argument" ;;
5871     esac
5872     as_fn_append CONFIG_FILES " '$ac_optarg'"
5873     ac_need_defaults=false;;
5874   --header | --heade | --head | --hea )
5875     $ac_shift
5876     case $ac_optarg in
5877     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5878     esac
5879     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
5880     ac_need_defaults=false;;
5881   --he | --h)
5882     # Conflict between --help and --header
5883     as_fn_error $? "ambiguous option: \`$1'
5884 Try \`$0 --help' for more information.";;
5885   --help | --hel | -h )
5886     $as_echo "$ac_cs_usage"; exit ;;
5887   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5888   | -silent | --silent | --silen | --sile | --sil | --si | --s)
5889     ac_cs_silent=: ;;
5890
5891   # This is an error.
5892   -*) as_fn_error $? "unrecognized option: \`$1'
5893 Try \`$0 --help' for more information." ;;
5894
5895   *) as_fn_append ac_config_targets " $1"
5896      ac_need_defaults=false ;;
5897
5898   esac
5899   shift
5900 done
5901
5902 ac_configure_extra_args=
5903
5904 if $ac_cs_silent; then
5905   exec 6>/dev/null
5906   ac_configure_extra_args="$ac_configure_extra_args --silent"
5907 fi
5908
5909 _ACEOF
5910 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5911 if \$ac_cs_recheck; then
5912   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5913   shift
5914   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5915   CONFIG_SHELL='$SHELL'
5916   export CONFIG_SHELL
5917   exec "\$@"
5918 fi
5919
5920 _ACEOF
5921 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5922 exec 5>>config.log
5923 {
5924   echo
5925   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5926 ## Running $as_me. ##
5927 _ASBOX
5928   $as_echo "$ac_log"
5929 } >&5
5930
5931 _ACEOF
5932 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5933 #
5934 # INIT-COMMANDS
5935 #
5936 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
5937
5938 _ACEOF
5939
5940 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5941
5942 # Handling of arguments.
5943 for ac_config_target in $ac_config_targets
5944 do
5945   case $ac_config_target in
5946     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5947     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
5948     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5949     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
5950     "src/gcm_input/Makefile") CONFIG_FILES="$CONFIG_FILES src/gcm_input/Makefile" ;;
5951     "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
5952     "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
5953
5954   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
5955   esac
5956 done
5957
5958
5959 # If the user did not use the arguments to specify the items to instantiate,
5960 # then the envvar interface is used.  Set only those that are not.
5961 # We use the long form for the default assignment because of an extremely
5962 # bizarre bug on SunOS 4.1.3.
5963 if $ac_need_defaults; then
5964   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5965   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5966   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5967 fi
5968
5969 # Have a temporary directory for convenience.  Make it in the build tree
5970 # simply because there is no reason against having it here, and in addition,
5971 # creating and moving files from /tmp can sometimes cause problems.
5972 # Hook for its removal unless debugging.
5973 # Note that there is a small window in which the directory will not be cleaned:
5974 # after its creation but before its name has been assigned to `$tmp'.
5975 $debug ||
5976 {
5977   tmp= ac_tmp=
5978   trap 'exit_status=$?
5979   : "${ac_tmp:=$tmp}"
5980   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5981 ' 0
5982   trap 'as_fn_exit 1' 1 2 13 15
5983 }
5984 # Create a (secure) tmp directory for tmp files.
5985
5986 {
5987   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5988   test -d "$tmp"
5989 }  ||
5990 {
5991   tmp=./conf$$-$RANDOM
5992   (umask 077 && mkdir "$tmp")
5993 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
5994 ac_tmp=$tmp
5995
5996 # Set up the scripts for CONFIG_FILES section.
5997 # No need to generate them if there are no CONFIG_FILES.
5998 # This happens for instance with `./config.status config.h'.
5999 if test -n "$CONFIG_FILES"; then
6000
6001
6002 ac_cr=`echo X | tr X '\015'`
6003 # On cygwin, bash can eat \r inside `` if the user requested igncr.
6004 # But we know of no other shell where ac_cr would be empty at this
6005 # point, so we can use a bashism as a fallback.
6006 if test "x$ac_cr" = x; then
6007   eval ac_cr=\$\'\\r\'
6008 fi
6009 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6010 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6011   ac_cs_awk_cr='\\r'
6012 else
6013   ac_cs_awk_cr=$ac_cr
6014 fi
6015
6016 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
6017 _ACEOF
6018
6019
6020 {
6021   echo "cat >conf$$subs.awk <<_ACEOF" &&
6022   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6023   echo "_ACEOF"
6024 } >conf$$subs.sh ||
6025   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6026 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
6027 ac_delim='%!_!# '
6028 for ac_last_try in false false false false false :; do
6029   . ./conf$$subs.sh ||
6030     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6031
6032   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6033   if test $ac_delim_n = $ac_delim_num; then
6034     break
6035   elif $ac_last_try; then
6036     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6037   else
6038     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6039   fi
6040 done
6041 rm -f conf$$subs.sh
6042
6043 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6044 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
6045 _ACEOF
6046 sed -n '
6047 h
6048 s/^/S["/; s/!.*/"]=/
6049 p
6050 g
6051 s/^[^!]*!//
6052 :repl
6053 t repl
6054 s/'"$ac_delim"'$//
6055 t delim
6056 :nl
6057 h
6058 s/\(.\{148\}\)..*/\1/
6059 t more1
6060 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6061 p
6062 n
6063 b repl
6064 :more1
6065 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6066 p
6067 g
6068 s/.\{148\}//
6069 t nl
6070 :delim
6071 h
6072 s/\(.\{148\}\)..*/\1/
6073 t more2
6074 s/["\\]/\\&/g; s/^/"/; s/$/"/
6075 p
6076 b
6077 :more2
6078 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6079 p
6080 g
6081 s/.\{148\}//
6082 t delim
6083 ' <conf$$subs.awk | sed '
6084 /^[^""]/{
6085   N
6086   s/\n//
6087 }
6088 ' >>$CONFIG_STATUS || ac_write_fail=1
6089 rm -f conf$$subs.awk
6090 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6091 _ACAWK
6092 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
6093   for (key in S) S_is_set[key] = 1
6094   FS = "\a"
6095
6096 }
6097 {
6098   line = $ 0
6099   nfields = split(line, field, "@")
6100   substed = 0
6101   len = length(field[1])
6102   for (i = 2; i < nfields; i++) {
6103     key = field[i]
6104     keylen = length(key)
6105     if (S_is_set[key]) {
6106       value = S[key]
6107       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6108       len += length(value) + length(field[++i])
6109       substed = 1
6110     } else
6111       len += 1 + keylen
6112   }
6113
6114   print line
6115 }
6116
6117 _ACAWK
6118 _ACEOF
6119 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6120 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6121   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6122 else
6123   cat
6124 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
6125   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
6126 _ACEOF
6127
6128 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
6129 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
6130 # trailing colons and then remove the whole line if VPATH becomes empty
6131 # (actually we leave an empty line to preserve line numbers).
6132 if test "x$srcdir" = x.; then
6133   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
6134 h
6135 s///
6136 s/^/:/
6137 s/[      ]*$/:/
6138 s/:\$(srcdir):/:/g
6139 s/:\${srcdir}:/:/g
6140 s/:@srcdir@:/:/g
6141 s/^:*//
6142 s/:*$//
6143 x
6144 s/\(=[   ]*\).*/\1/
6145 G
6146 s/\n//
6147 s/^[^=]*=[       ]*$//
6148 }'
6149 fi
6150
6151 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6152 fi # test -n "$CONFIG_FILES"
6153
6154 # Set up the scripts for CONFIG_HEADERS section.
6155 # No need to generate them if there are no CONFIG_HEADERS.
6156 # This happens for instance with `./config.status Makefile'.
6157 if test -n "$CONFIG_HEADERS"; then
6158 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
6159 BEGIN {
6160 _ACEOF
6161
6162 # Transform confdefs.h into an awk script `defines.awk', embedded as
6163 # here-document in config.status, that substitutes the proper values into
6164 # config.h.in to produce config.h.
6165
6166 # Create a delimiter string that does not exist in confdefs.h, to ease
6167 # handling of long lines.
6168 ac_delim='%!_!# '
6169 for ac_last_try in false false :; do
6170   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
6171   if test -z "$ac_tt"; then
6172     break
6173   elif $ac_last_try; then
6174     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
6175   else
6176     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6177   fi
6178 done
6179
6180 # For the awk script, D is an array of macro values keyed by name,
6181 # likewise P contains macro parameters if any.  Preserve backslash
6182 # newline sequences.
6183
6184 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6185 sed -n '
6186 s/.\{148\}/&'"$ac_delim"'/g
6187 t rset
6188 :rset
6189 s/^[     ]*#[    ]*define[       ][      ]*/ /
6190 t def
6191 d
6192 :def
6193 s/\\$//
6194 t bsnl
6195 s/["\\]/\\&/g
6196 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
6197 D["\1"]=" \3"/p
6198 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
6199 d
6200 :bsnl
6201 s/["\\]/\\&/g
6202 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
6203 D["\1"]=" \3\\\\\\n"\\/p
6204 t cont
6205 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6206 t cont
6207 d
6208 :cont
6209 n
6210 s/.\{148\}/&'"$ac_delim"'/g
6211 t clear
6212 :clear
6213 s/\\$//
6214 t bsnlc
6215 s/["\\]/\\&/g; s/^/"/; s/$/"/p
6216 d
6217 :bsnlc
6218 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6219 b cont
6220 ' <confdefs.h | sed '
6221 s/'"$ac_delim"'/"\\\
6222 "/g' >>$CONFIG_STATUS || ac_write_fail=1
6223
6224 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6225   for (key in D) D_is_set[key] = 1
6226   FS = "\a"
6227 }
6228 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6229   line = \$ 0
6230   split(line, arg, " ")
6231   if (arg[1] == "#") {
6232     defundef = arg[2]
6233     mac1 = arg[3]
6234   } else {
6235     defundef = substr(arg[1], 2)
6236     mac1 = arg[2]
6237   }
6238   split(mac1, mac2, "(") #)
6239   macro = mac2[1]
6240   prefix = substr(line, 1, index(line, defundef) - 1)
6241   if (D_is_set[macro]) {
6242     # Preserve the white space surrounding the "#".
6243     print prefix "define", macro P[macro] D[macro]
6244     next
6245   } else {
6246     # Replace #undef with comments.  This is necessary, for example,
6247     # in the case of _POSIX_SOURCE, which is predefined and required
6248     # on some systems where configure will not decide to define it.
6249     if (defundef == "undef") {
6250       print "/*", prefix defundef, macro, "*/"
6251       next
6252     }
6253   }
6254 }
6255 { print }
6256 _ACAWK
6257 _ACEOF
6258 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6259   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
6260 fi # test -n "$CONFIG_HEADERS"
6261
6262
6263 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
6264 shift
6265 for ac_tag
6266 do
6267   case $ac_tag in
6268   :[FHLC]) ac_mode=$ac_tag; continue;;
6269   esac
6270   case $ac_mode$ac_tag in
6271   :[FHL]*:*);;
6272   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
6273   :[FH]-) ac_tag=-:-;;
6274   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6275   esac
6276   ac_save_IFS=$IFS
6277   IFS=:
6278   set x $ac_tag
6279   IFS=$ac_save_IFS
6280   shift
6281   ac_file=$1
6282   shift
6283
6284   case $ac_mode in
6285   :L) ac_source=$1;;
6286   :[FH])
6287     ac_file_inputs=
6288     for ac_f
6289     do
6290       case $ac_f in
6291       -) ac_f="$ac_tmp/stdin";;
6292       *) # Look for the file first in the build tree, then in the source tree
6293          # (if the path is not absolute).  The absolute path cannot be DOS-style,
6294          # because $ac_f cannot contain `:'.
6295          test -f "$ac_f" ||
6296            case $ac_f in
6297            [\\/$]*) false;;
6298            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6299            esac ||
6300            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6301       esac
6302       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6303       as_fn_append ac_file_inputs " '$ac_f'"
6304     done
6305
6306     # Let's still pretend it is `configure' which instantiates (i.e., don't
6307     # use $as_me), people would be surprised to read:
6308     #    /* config.h.  Generated by config.status.  */
6309     configure_input='Generated from '`
6310           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6311         `' by configure.'
6312     if test x"$ac_file" != x-; then
6313       configure_input="$ac_file.  $configure_input"
6314       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6315 $as_echo "$as_me: creating $ac_file" >&6;}
6316     fi
6317     # Neutralize special characters interpreted by sed in replacement strings.
6318     case $configure_input in #(
6319     *\&* | *\|* | *\\* )
6320        ac_sed_conf_input=`$as_echo "$configure_input" |
6321        sed 's/[\\\\&|]/\\\\&/g'`;; #(
6322     *) ac_sed_conf_input=$configure_input;;
6323     esac
6324
6325     case $ac_tag in
6326     *:-:* | *:-) cat >"$ac_tmp/stdin" \
6327       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
6328     esac
6329     ;;
6330   esac
6331
6332   ac_dir=`$as_dirname -- "$ac_file" ||
6333 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6334          X"$ac_file" : 'X\(//\)[^/]' \| \
6335          X"$ac_file" : 'X\(//\)$' \| \
6336          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6337 $as_echo X"$ac_file" |
6338     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6339             s//\1/
6340             q
6341           }
6342           /^X\(\/\/\)[^/].*/{
6343             s//\1/
6344             q
6345           }
6346           /^X\(\/\/\)$/{
6347             s//\1/
6348             q
6349           }
6350           /^X\(\/\).*/{
6351             s//\1/
6352             q
6353           }
6354           s/.*/./; q'`
6355   as_dir="$ac_dir"; as_fn_mkdir_p
6356   ac_builddir=.
6357
6358 case "$ac_dir" in
6359 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6360 *)
6361   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6362   # A ".." for each directory in $ac_dir_suffix.
6363   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6364   case $ac_top_builddir_sub in
6365   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6366   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6367   esac ;;
6368 esac
6369 ac_abs_top_builddir=$ac_pwd
6370 ac_abs_builddir=$ac_pwd$ac_dir_suffix
6371 # for backward compatibility:
6372 ac_top_builddir=$ac_top_build_prefix
6373
6374 case $srcdir in
6375   .)  # We are building in place.
6376     ac_srcdir=.
6377     ac_top_srcdir=$ac_top_builddir_sub
6378     ac_abs_top_srcdir=$ac_pwd ;;
6379   [\\/]* | ?:[\\/]* )  # Absolute name.
6380     ac_srcdir=$srcdir$ac_dir_suffix;
6381     ac_top_srcdir=$srcdir
6382     ac_abs_top_srcdir=$srcdir ;;
6383   *) # Relative name.
6384     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6385     ac_top_srcdir=$ac_top_build_prefix$srcdir
6386     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6387 esac
6388 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6389
6390
6391   case $ac_mode in
6392   :F)
6393   #
6394   # CONFIG_FILE
6395   #
6396
6397   case $INSTALL in
6398   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6399   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
6400   esac
6401   ac_MKDIR_P=$MKDIR_P
6402   case $MKDIR_P in
6403   [\\/$]* | ?:[\\/]* ) ;;
6404   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
6405   esac
6406 _ACEOF
6407
6408 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6409 # If the template does not know about datarootdir, expand it.
6410 # FIXME: This hack should be removed a few years after 2.60.
6411 ac_datarootdir_hack=; ac_datarootdir_seen=
6412 ac_sed_dataroot='
6413 /datarootdir/ {
6414   p
6415   q
6416 }
6417 /@datadir@/p
6418 /@docdir@/p
6419 /@infodir@/p
6420 /@localedir@/p
6421 /@mandir@/p'
6422 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6423 *datarootdir*) ac_datarootdir_seen=yes;;
6424 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6425   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6426 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6427 _ACEOF
6428 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6429   ac_datarootdir_hack='
6430   s&@datadir@&$datadir&g
6431   s&@docdir@&$docdir&g
6432   s&@infodir@&$infodir&g
6433   s&@localedir@&$localedir&g
6434   s&@mandir@&$mandir&g
6435   s&\\\${datarootdir}&$datarootdir&g' ;;
6436 esac
6437 _ACEOF
6438
6439 # Neutralize VPATH when `$srcdir' = `.'.
6440 # Shell code in configure.ac might set extrasub.
6441 # FIXME: do we really want to maintain this feature?
6442 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6443 ac_sed_extra="$ac_vpsub
6444 $extrasub
6445 _ACEOF
6446 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6447 :t
6448 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6449 s|@configure_input@|$ac_sed_conf_input|;t t
6450 s&@top_builddir@&$ac_top_builddir_sub&;t t
6451 s&@top_build_prefix@&$ac_top_build_prefix&;t t
6452 s&@srcdir@&$ac_srcdir&;t t
6453 s&@abs_srcdir@&$ac_abs_srcdir&;t t
6454 s&@top_srcdir@&$ac_top_srcdir&;t t
6455 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6456 s&@builddir@&$ac_builddir&;t t
6457 s&@abs_builddir@&$ac_abs_builddir&;t t
6458 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6459 s&@INSTALL@&$ac_INSTALL&;t t
6460 s&@MKDIR_P@&$ac_MKDIR_P&;t t
6461 $ac_datarootdir_hack
6462 "
6463 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
6464   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6465
6466 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6467   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
6468   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
6469       "$ac_tmp/out"`; test -z "$ac_out"; } &&
6470   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6471 which seems to be undefined.  Please make sure it is defined" >&5
6472 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6473 which seems to be undefined.  Please make sure it is defined" >&2;}
6474
6475   rm -f "$ac_tmp/stdin"
6476   case $ac_file in
6477   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
6478   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
6479   esac \
6480   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6481  ;;
6482   :H)
6483   #
6484   # CONFIG_HEADER
6485   #
6486   if test x"$ac_file" != x-; then
6487     {
6488       $as_echo "/* $configure_input  */" \
6489       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
6490     } >"$ac_tmp/config.h" \
6491       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6492     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
6493       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6494 $as_echo "$as_me: $ac_file is unchanged" >&6;}
6495     else
6496       rm -f "$ac_file"
6497       mv "$ac_tmp/config.h" "$ac_file" \
6498         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6499     fi
6500   else
6501     $as_echo "/* $configure_input  */" \
6502       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
6503       || as_fn_error $? "could not create -" "$LINENO" 5
6504   fi
6505 # Compute "$ac_file"'s index in $config_headers.
6506 _am_arg="$ac_file"
6507 _am_stamp_count=1
6508 for _am_header in $config_headers :; do
6509   case $_am_header in
6510     $_am_arg | $_am_arg:* )
6511       break ;;
6512     * )
6513       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
6514   esac
6515 done
6516 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
6517 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6518          X"$_am_arg" : 'X\(//\)[^/]' \| \
6519          X"$_am_arg" : 'X\(//\)$' \| \
6520          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
6521 $as_echo X"$_am_arg" |
6522     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6523             s//\1/
6524             q
6525           }
6526           /^X\(\/\/\)[^/].*/{
6527             s//\1/
6528             q
6529           }
6530           /^X\(\/\/\)$/{
6531             s//\1/
6532             q
6533           }
6534           /^X\(\/\).*/{
6535             s//\1/
6536             q
6537           }
6538           s/.*/./; q'`/stamp-h$_am_stamp_count
6539  ;;
6540
6541   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
6542 $as_echo "$as_me: executing $ac_file commands" >&6;}
6543  ;;
6544   esac
6545
6546
6547   case $ac_file$ac_mode in
6548     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
6549   # Autoconf 2.62 quotes --file arguments for eval, but not when files
6550   # are listed without --file.  Let's play safe and only enable the eval
6551   # if we detect the quoting.
6552   case $CONFIG_FILES in
6553   *\'*) eval set x "$CONFIG_FILES" ;;
6554   *)   set x $CONFIG_FILES ;;
6555   esac
6556   shift
6557   for mf
6558   do
6559     # Strip MF so we end up with the name of the file.
6560     mf=`echo "$mf" | sed -e 's/:.*$//'`
6561     # Check whether this is an Automake generated Makefile or not.
6562     # We used to match only the files named `Makefile.in', but
6563     # some people rename them; so instead we look at the file content.
6564     # Grep'ing the first line is not enough: some people post-process
6565     # each Makefile.in and add a new line on top of each file to say so.
6566     # Grep'ing the whole file is not good either: AIX grep has a line
6567     # limit of 2048, but all sed's we know have understand at least 4000.
6568     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
6569       dirpart=`$as_dirname -- "$mf" ||
6570 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6571          X"$mf" : 'X\(//\)[^/]' \| \
6572          X"$mf" : 'X\(//\)$' \| \
6573          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
6574 $as_echo X"$mf" |
6575     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6576             s//\1/
6577             q
6578           }
6579           /^X\(\/\/\)[^/].*/{
6580             s//\1/
6581             q
6582           }
6583           /^X\(\/\/\)$/{
6584             s//\1/
6585             q
6586           }
6587           /^X\(\/\).*/{
6588             s//\1/
6589             q
6590           }
6591           s/.*/./; q'`
6592     else
6593       continue
6594     fi
6595     # Extract the definition of DEPDIR, am__include, and am__quote
6596     # from the Makefile without running `make'.
6597     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
6598     test -z "$DEPDIR" && continue
6599     am__include=`sed -n 's/^am__include = //p' < "$mf"`
6600     test -z "am__include" && continue
6601     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
6602     # When using ansi2knr, U may be empty or an underscore; expand it
6603     U=`sed -n 's/^U = //p' < "$mf"`
6604     # Find all dependency output files, they are included files with
6605     # $(DEPDIR) in their names.  We invoke sed twice because it is the
6606     # simplest approach to changing $(DEPDIR) to its actual value in the
6607     # expansion.
6608     for file in `sed -n "
6609       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
6610          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
6611       # Make sure the directory exists.
6612       test -f "$dirpart/$file" && continue
6613       fdir=`$as_dirname -- "$file" ||
6614 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6615          X"$file" : 'X\(//\)[^/]' \| \
6616          X"$file" : 'X\(//\)$' \| \
6617          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
6618 $as_echo X"$file" |
6619     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6620             s//\1/
6621             q
6622           }
6623           /^X\(\/\/\)[^/].*/{
6624             s//\1/
6625             q
6626           }
6627           /^X\(\/\/\)$/{
6628             s//\1/
6629             q
6630           }
6631           /^X\(\/\).*/{
6632             s//\1/
6633             q
6634           }
6635           s/.*/./; q'`
6636       as_dir=$dirpart/$fdir; as_fn_mkdir_p
6637       # echo "creating $dirpart/$file"
6638       echo '# dummy' > "$dirpart/$file"
6639     done
6640   done
6641 }
6642  ;;
6643
6644   esac
6645 done # for ac_tag
6646
6647
6648 as_fn_exit 0
6649 _ACEOF
6650 ac_clean_files=$ac_clean_files_save
6651
6652 test $ac_write_fail = 0 ||
6653   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
6654
6655
6656 # configure is writing to config.log, and then calls config.status.
6657 # config.status does its own redirection, appending to config.log.
6658 # Unfortunately, on DOS this fails, as config.log is still kept open
6659 # by configure, so config.status won't be able to write to it; its
6660 # output is simply discarded.  So we exec the FD to /dev/null,
6661 # effectively closing config.log, so it can be properly (re)opened and
6662 # appended to by config.status.  When coming back to configure, we
6663 # need to make the FD available again.
6664 if test "$no_create" != yes; then
6665   ac_cs_success=:
6666   ac_config_status_args=
6667   test "$silent" = yes &&
6668     ac_config_status_args="$ac_config_status_args --quiet"
6669   exec 5>/dev/null
6670   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6671   exec 5>>config.log
6672   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6673   # would make configure fail if this is the last instruction.
6674   $ac_cs_success || as_fn_exit 1
6675 fi
6676 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6677   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6678 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
6679 fi
6680