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