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