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