Intial commit
[profile/ivi/w3m.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for w3m 0.5.2.
4 #
5 # Report bugs to <satodai@w3m.jp>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization.  ##
13 ## --------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18   emulate sh
19   NULLCMD=:
20   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in
26   *posix*) set -o posix ;;
27 esac
28
29 fi
30
31
32
33
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44   echo "#! /bin/sh" >conf$$.sh
45   echo  "exit 0"   >>conf$$.sh
46   chmod +x conf$$.sh
47   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48     PATH_SEPARATOR=';'
49   else
50     PATH_SEPARATOR=:
51   fi
52   rm -f conf$$.sh
53 fi
54
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57   as_unset=unset
58 else
59   as_unset=false
60 fi
61
62
63 # IFS
64 # We need space, tab and new line, in precisely that order.  Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
68 as_nl='
69 '
70 IFS=" ""        $as_nl"
71
72 # Find who we are.  Look in the path if we contain no directory separator.
73 case $0 in
74   *[\\/]* ) as_myself=$0 ;;
75   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76 for as_dir in $PATH
77 do
78   IFS=$as_save_IFS
79   test -z "$as_dir" && as_dir=.
80   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81 done
82 IFS=$as_save_IFS
83
84      ;;
85 esac
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
89   as_myself=$0
90 fi
91 if test ! -f "$as_myself"; then
92   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93   { (exit 1); exit 1; }
94 fi
95
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99 done
100 PS1='$ '
101 PS2='> '
102 PS4='+ '
103
104 # NLS nuisances.
105 for as_var in \
106   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108   LC_TELEPHONE LC_TIME
109 do
110   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111     eval $as_var=C; export $as_var
112   else
113     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114   fi
115 done
116
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119    test "X`expr 00001 : '.*\(...\)'`" = X001; then
120   as_expr=expr
121 else
122   as_expr=false
123 fi
124
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126   as_basename=basename
127 else
128   as_basename=false
129 fi
130
131
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135          X"$0" : 'X\(//\)$' \| \
136          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 echo X/"$0" |
138     sed '/^.*\/\([^/][^/]*\)\/*$/{
139             s//\1/
140             q
141           }
142           /^X\/\(\/\/\)$/{
143             s//\1/
144             q
145           }
146           /^X\/\(\/\).*/{
147             s//\1/
148             q
149           }
150           s/.*/./; q'`
151
152 # CDPATH.
153 $as_unset CDPATH
154
155
156 if test "x$CONFIG_SHELL" = x; then
157   if (eval ":") 2>/dev/null; then
158   as_have_required=yes
159 else
160   as_have_required=no
161 fi
162
163   if test $as_have_required = yes &&     (eval ":
164 (as_func_return () {
165   (exit \$1)
166 }
167 as_func_success () {
168   as_func_return 0
169 }
170 as_func_failure () {
171   as_func_return 1
172 }
173 as_func_ret_success () {
174   return 0
175 }
176 as_func_ret_failure () {
177   return 1
178 }
179
180 exitcode=0
181 if as_func_success; then
182   :
183 else
184   exitcode=1
185   echo as_func_success failed.
186 fi
187
188 if as_func_failure; then
189   exitcode=1
190   echo as_func_failure succeeded.
191 fi
192
193 if as_func_ret_success; then
194   :
195 else
196   exitcode=1
197   echo as_func_ret_success failed.
198 fi
199
200 if as_func_ret_failure; then
201   exitcode=1
202   echo as_func_ret_failure succeeded.
203 fi
204
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206   :
207 else
208   exitcode=1
209   echo positional parameters were not saved.
210 fi
211
212 test \$exitcode = 0) || { (exit 1); exit 1; }
213
214 (
215   as_lineno_1=\$LINENO
216   as_lineno_2=\$LINENO
217   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
220   :
221 else
222   as_candidate_shells=
223     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 do
226   IFS=$as_save_IFS
227   test -z "$as_dir" && as_dir=.
228   case $as_dir in
229          /*)
230            for as_base in sh bash ksh sh5; do
231              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232            done;;
233        esac
234 done
235 IFS=$as_save_IFS
236
237
238       for as_shell in $as_candidate_shells $SHELL; do
239          # Try only shells that exist, to save several forks.
240          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241                 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243   emulate sh
244   NULLCMD=:
245   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246   # is contrary to our usage.  Disable this feature.
247   alias -g '${1+"$@"}'='"$@"'
248   setopt NO_GLOB_SUBST
249 else
250   case `(set -o) 2>/dev/null` in
251   *posix*) set -o posix ;;
252 esac
253
254 fi
255
256
257 :
258 _ASEOF
259 }; then
260   CONFIG_SHELL=$as_shell
261                as_have_required=yes
262                if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264   emulate sh
265   NULLCMD=:
266   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267   # is contrary to our usage.  Disable this feature.
268   alias -g '${1+"$@"}'='"$@"'
269   setopt NO_GLOB_SUBST
270 else
271   case `(set -o) 2>/dev/null` in
272   *posix*) set -o posix ;;
273 esac
274
275 fi
276
277
278 :
279 (as_func_return () {
280   (exit $1)
281 }
282 as_func_success () {
283   as_func_return 0
284 }
285 as_func_failure () {
286   as_func_return 1
287 }
288 as_func_ret_success () {
289   return 0
290 }
291 as_func_ret_failure () {
292   return 1
293 }
294
295 exitcode=0
296 if as_func_success; then
297   :
298 else
299   exitcode=1
300   echo as_func_success failed.
301 fi
302
303 if as_func_failure; then
304   exitcode=1
305   echo as_func_failure succeeded.
306 fi
307
308 if as_func_ret_success; then
309   :
310 else
311   exitcode=1
312   echo as_func_ret_success failed.
313 fi
314
315 if as_func_ret_failure; then
316   exitcode=1
317   echo as_func_ret_failure succeeded.
318 fi
319
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
321   :
322 else
323   exitcode=1
324   echo positional parameters were not saved.
325 fi
326
327 test $exitcode = 0) || { (exit 1); exit 1; }
328
329 (
330   as_lineno_1=$LINENO
331   as_lineno_2=$LINENO
332   test "x$as_lineno_1" != "x$as_lineno_2" &&
333   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335 _ASEOF
336 }; then
337   break
338 fi
339
340 fi
341
342       done
343
344       if test "x$CONFIG_SHELL" != x; then
345   for as_var in BASH_ENV ENV
346         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347         done
348         export CONFIG_SHELL
349         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350 fi
351
352
353     if test $as_have_required = no; then
354   echo This script requires a shell more modern than all the
355       echo shells that I found on your system.  Please install a
356       echo modern shell, or manually run the script under such a
357       echo shell if you do have one.
358       { (exit 1); exit 1; }
359 fi
360
361
362 fi
363
364 fi
365
366
367
368 (eval "as_func_return () {
369   (exit \$1)
370 }
371 as_func_success () {
372   as_func_return 0
373 }
374 as_func_failure () {
375   as_func_return 1
376 }
377 as_func_ret_success () {
378   return 0
379 }
380 as_func_ret_failure () {
381   return 1
382 }
383
384 exitcode=0
385 if as_func_success; then
386   :
387 else
388   exitcode=1
389   echo as_func_success failed.
390 fi
391
392 if as_func_failure; then
393   exitcode=1
394   echo as_func_failure succeeded.
395 fi
396
397 if as_func_ret_success; then
398   :
399 else
400   exitcode=1
401   echo as_func_ret_success failed.
402 fi
403
404 if as_func_ret_failure; then
405   exitcode=1
406   echo as_func_ret_failure succeeded.
407 fi
408
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410   :
411 else
412   exitcode=1
413   echo positional parameters were not saved.
414 fi
415
416 test \$exitcode = 0") || {
417   echo No shell found that supports shell functions.
418   echo Please tell autoconf@gnu.org about your system,
419   echo including any error possibly output before this
420   echo message
421 }
422
423
424
425   as_lineno_1=$LINENO
426   as_lineno_2=$LINENO
427   test "x$as_lineno_1" != "x$as_lineno_2" &&
428   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429
430   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431   # uniformly replaced by the line number.  The first 'sed' inserts a
432   # line-number line after each line using $LINENO; the second 'sed'
433   # does the real work.  The second script uses 'N' to pair each
434   # line-number line with the line containing $LINENO, and appends
435   # trailing '-' during substitution so that $LINENO is not a special
436   # case at line end.
437   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438   # scripts with optimization help from Paolo Bonzini.  Blame Lee
439   # E. McMahon (1931-1989) for sed's syntax.  :-)
440   sed -n '
441     p
442     /[$]LINENO/=
443   ' <$as_myself |
444     sed '
445       s/[$]LINENO.*/&-/
446       t lineno
447       b
448       :lineno
449       N
450       :loop
451       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452       t loop
453       s/-\n.*//
454     ' >$as_me.lineno &&
455   chmod +x "$as_me.lineno" ||
456     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457    { (exit 1); exit 1; }; }
458
459   # Don't try to exec as it changes $[0], causing all sort of problems
460   # (the dirname of $[0] is not the place where we might find the
461   # original and so on.  Autoconf is especially sensitive to this).
462   . "./$as_me.lineno"
463   # Exit status is that of the last command.
464   exit
465 }
466
467
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469   as_dirname=dirname
470 else
471   as_dirname=false
472 fi
473
474 ECHO_C= ECHO_N= ECHO_T=
475 case `echo -n x` in
476 -n*)
477   case `echo 'x\c'` in
478   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
479   *)   ECHO_C='\c';;
480   esac;;
481 *)
482   ECHO_N='-n';;
483 esac
484
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486    test "X`expr 00001 : '.*\(...\)'`" = X001; then
487   as_expr=expr
488 else
489   as_expr=false
490 fi
491
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494   rm -f conf$$.dir/conf$$.file
495 else
496   rm -f conf$$.dir
497   mkdir conf$$.dir
498 fi
499 echo >conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
501   as_ln_s='ln -s'
502   # ... but there are two gotchas:
503   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505   # In both cases, we have to default to `cp -p'.
506   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507     as_ln_s='cp -p'
508 elif ln conf$$.file conf$$ 2>/dev/null; then
509   as_ln_s=ln
510 else
511   as_ln_s='cp -p'
512 fi
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
515
516 if mkdir -p . 2>/dev/null; then
517   as_mkdir_p=:
518 else
519   test -d ./-p && rmdir ./-p
520   as_mkdir_p=false
521 fi
522
523 if test -x / >/dev/null 2>&1; then
524   as_test_x='test -x'
525 else
526   if ls -dL / >/dev/null 2>&1; then
527     as_ls_L_option=L
528   else
529     as_ls_L_option=
530   fi
531   as_test_x='
532     eval sh -c '\''
533       if test -d "$1"; then
534         test -d "$1/.";
535       else
536         case $1 in
537         -*)set "./$1";;
538         esac;
539         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540         ???[sx]*):;;*)false;;esac;fi
541     '\'' sh
542   '
543 fi
544 as_executable_p=$as_test_x
545
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
553
554 exec 7<&0 </dev/null 6>&1
555
556 # Name of the host.
557 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
558 # so uname gets run too.
559 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
560
561 #
562 # Initializations.
563 #
564 ac_default_prefix=/usr/local
565 ac_clean_files=
566 ac_config_libobj_dir=.
567 LIBOBJS=
568 cross_compiling=no
569 subdirs=
570 MFLAGS=
571 MAKEFLAGS=
572 SHELL=${CONFIG_SHELL-/bin/sh}
573
574 # Identity of this package.
575 PACKAGE_NAME='w3m'
576 PACKAGE_TARNAME='w3m'
577 PACKAGE_VERSION='0.5.2'
578 PACKAGE_STRING='w3m 0.5.2'
579 PACKAGE_BUGREPORT='satodai@w3m.jp'
580
581 # Factoring default headers for most tests.
582 ac_includes_default="\
583 #include <stdio.h>
584 #ifdef HAVE_SYS_TYPES_H
585 # include <sys/types.h>
586 #endif
587 #ifdef HAVE_SYS_STAT_H
588 # include <sys/stat.h>
589 #endif
590 #ifdef STDC_HEADERS
591 # include <stdlib.h>
592 # include <stddef.h>
593 #else
594 # ifdef HAVE_STDLIB_H
595 #  include <stdlib.h>
596 # endif
597 #endif
598 #ifdef HAVE_STRING_H
599 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
600 #  include <memory.h>
601 # endif
602 # include <string.h>
603 #endif
604 #ifdef HAVE_STRINGS_H
605 # include <strings.h>
606 #endif
607 #ifdef HAVE_INTTYPES_H
608 # include <inttypes.h>
609 #endif
610 #ifdef HAVE_STDINT_H
611 # include <stdint.h>
612 #endif
613 #ifdef HAVE_UNISTD_H
614 # include <unistd.h>
615 #endif"
616
617 ac_subst_vars='SHELL
618 PATH_SEPARATOR
619 PACKAGE_NAME
620 PACKAGE_TARNAME
621 PACKAGE_VERSION
622 PACKAGE_STRING
623 PACKAGE_BUGREPORT
624 exec_prefix
625 prefix
626 program_transform_name
627 bindir
628 sbindir
629 libexecdir
630 datarootdir
631 datadir
632 sysconfdir
633 sharedstatedir
634 localstatedir
635 includedir
636 oldincludedir
637 docdir
638 infodir
639 htmldir
640 dvidir
641 pdfdir
642 psdir
643 libdir
644 localedir
645 mandir
646 DEFS
647 ECHO_C
648 ECHO_N
649 ECHO_T
650 LIBS
651 build_alias
652 host_alias
653 target_alias
654 PACKAGE
655 VERSION
656 W3M
657 W3M_LANG
658 AWK
659 CC
660 CFLAGS
661 LDFLAGS
662 CPPFLAGS
663 ac_ct_CC
664 EXEEXT
665 OBJEXT
666 CPP
667 INSTALL_PROGRAM
668 INSTALL_SCRIPT
669 INSTALL_DATA
670 LN_S
671 SET_MAKE
672 RANLIB
673 PERL
674 NKF
675 MAN
676 build
677 build_cpu
678 build_vendor
679 build_os
680 host
681 host_cpu
682 host_vendor
683 host_os
684 W3M_TARGET
685 W3M_LIBS
686 USE_M17N
687 USE_UNICODE
688 WCTARGET
689 WCCFLAGS
690 DISPLAY_CHARSET
691 SYSTEM_CHARSET
692 DOCUMENT_CHARSET
693 POSUBST
694 POLANG
695 MKINSTALLDIRS
696 USE_NLS
697 MSGFMT
698 GMSGFMT
699 XGETTEXT
700 MSGMERGE
701 LIBICONV
702 LTLIBICONV
703 INTLLIBS
704 LIBINTL
705 LTLIBINTL
706 POSUB
707 INTLTARGET
708 NLSTARGET
709 USE_COLOR
710 USE_ANSI_COLOR
711 USE_BG_COLOR
712 USE_IMAGE
713 USE_W3MIMG_X11
714 USE_W3MIMG_FB
715 W3MIMGDISPLAY_SETUID
716 INSTALL_W3MIMGDISPLAY
717 USE_GDKPIXBUF
718 USE_GTK2
719 USE_IMLIB
720 USE_IMLIB2
721 IMGTARGETS
722 IMGOBJS
723 IMGX11CFLAGS
724 IMGX11LDFLAGS
725 IMGFBCFLAGS
726 IMGFBLDFLAGS
727 USE_XFACE
728 uncompface
729 KEYMAP_FILE
730 HELP_FILE
731 KEYBIND
732 USE_MENU
733 USE_MOUSE
734 USE_HISTORY
735 USE_ALARM
736 USE_COOKIE
737 USE_NNTP
738 USE_GOPHER
739 USE_DICT
740 USE_HELP_CGI
741 USE_EXTERNAL_URI_LOADER
742 USE_W3MMAILER
743 USE_MIGEMO
744 DEF_MIGEMO_COMMAND
745 DEF_EDITOR
746 DEF_MAILER
747 DEF_EXT_BROWSER
748 INET6
749 HAVE_OLD_SS_FAMILY
750 USE_SSL
751 USE_SSL_VERIFY
752 PKG_CONFIG
753 SSL_CFLAGS
754 SSL_LIBS
755 USE_DIGEST_AUTH
756 USE_W3M
757 USE_SYSMOUSE
758 AUXBIN_TARGETS
759 LIBGC
760 GREP
761 EGREP
762 USE_BINMODE_STREAM
763 HAVE_SYS_ERRLIST
764 HAVE_SIGSETJMP
765 RETSIGTYPE
766 SIGNAL_RETURN
767 HELP_DIR
768 RC_DIR
769 DOCDIRS
770 CURRENT_VERSION
771 LIBOBJS
772 LTLIBOBJS'
773 ac_subst_files=''
774       ac_precious_vars='build_alias
775 host_alias
776 target_alias
777 CC
778 CFLAGS
779 LDFLAGS
780 LIBS
781 CPPFLAGS
782 CPP'
783
784
785 # Initialize some variables set by options.
786 ac_init_help=
787 ac_init_version=false
788 # The variables have the same names as the options, with
789 # dashes changed to underlines.
790 cache_file=/dev/null
791 exec_prefix=NONE
792 no_create=
793 no_recursion=
794 prefix=NONE
795 program_prefix=NONE
796 program_suffix=NONE
797 program_transform_name=s,x,x,
798 silent=
799 site=
800 srcdir=
801 verbose=
802 x_includes=NONE
803 x_libraries=NONE
804
805 # Installation directory options.
806 # These are left unexpanded so users can "make install exec_prefix=/foo"
807 # and all the variables that are supposed to be based on exec_prefix
808 # by default will actually change.
809 # Use braces instead of parens because sh, perl, etc. also accept them.
810 # (The list follows the same order as the GNU Coding Standards.)
811 bindir='${exec_prefix}/bin'
812 sbindir='${exec_prefix}/sbin'
813 libexecdir='${exec_prefix}/libexec'
814 datarootdir='${prefix}/share'
815 datadir='${datarootdir}'
816 sysconfdir='${prefix}/etc'
817 sharedstatedir='${prefix}/com'
818 localstatedir='${prefix}/var'
819 includedir='${prefix}/include'
820 oldincludedir='/usr/include'
821 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
822 infodir='${datarootdir}/info'
823 htmldir='${docdir}'
824 dvidir='${docdir}'
825 pdfdir='${docdir}'
826 psdir='${docdir}'
827 libdir='${exec_prefix}/lib'
828 localedir='${datarootdir}/locale'
829 mandir='${datarootdir}/man'
830
831 ac_prev=
832 ac_dashdash=
833 for ac_option
834 do
835   # If the previous option needs an argument, assign it.
836   if test -n "$ac_prev"; then
837     eval $ac_prev=\$ac_option
838     ac_prev=
839     continue
840   fi
841
842   case $ac_option in
843   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
844   *)    ac_optarg=yes ;;
845   esac
846
847   # Accept the important Cygnus configure options, so we can diagnose typos.
848
849   case $ac_dashdash$ac_option in
850   --)
851     ac_dashdash=yes ;;
852
853   -bindir | --bindir | --bindi | --bind | --bin | --bi)
854     ac_prev=bindir ;;
855   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
856     bindir=$ac_optarg ;;
857
858   -build | --build | --buil | --bui | --bu)
859     ac_prev=build_alias ;;
860   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
861     build_alias=$ac_optarg ;;
862
863   -cache-file | --cache-file | --cache-fil | --cache-fi \
864   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
865     ac_prev=cache_file ;;
866   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
867   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
868     cache_file=$ac_optarg ;;
869
870   --config-cache | -C)
871     cache_file=config.cache ;;
872
873   -datadir | --datadir | --datadi | --datad)
874     ac_prev=datadir ;;
875   -datadir=* | --datadir=* | --datadi=* | --datad=*)
876     datadir=$ac_optarg ;;
877
878   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
879   | --dataroo | --dataro | --datar)
880     ac_prev=datarootdir ;;
881   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
882   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
883     datarootdir=$ac_optarg ;;
884
885   -disable-* | --disable-*)
886     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
887     # Reject names that are not valid shell variable names.
888     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
889       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
890    { (exit 1); exit 1; }; }
891     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
892     eval enable_$ac_feature=no ;;
893
894   -docdir | --docdir | --docdi | --doc | --do)
895     ac_prev=docdir ;;
896   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
897     docdir=$ac_optarg ;;
898
899   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
900     ac_prev=dvidir ;;
901   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
902     dvidir=$ac_optarg ;;
903
904   -enable-* | --enable-*)
905     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
906     # Reject names that are not valid shell variable names.
907     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
908       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
909    { (exit 1); exit 1; }; }
910     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
911     eval enable_$ac_feature=\$ac_optarg ;;
912
913   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
914   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
915   | --exec | --exe | --ex)
916     ac_prev=exec_prefix ;;
917   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
918   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
919   | --exec=* | --exe=* | --ex=*)
920     exec_prefix=$ac_optarg ;;
921
922   -gas | --gas | --ga | --g)
923     # Obsolete; use --with-gas.
924     with_gas=yes ;;
925
926   -help | --help | --hel | --he | -h)
927     ac_init_help=long ;;
928   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
929     ac_init_help=recursive ;;
930   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
931     ac_init_help=short ;;
932
933   -host | --host | --hos | --ho)
934     ac_prev=host_alias ;;
935   -host=* | --host=* | --hos=* | --ho=*)
936     host_alias=$ac_optarg ;;
937
938   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
939     ac_prev=htmldir ;;
940   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
941   | --ht=*)
942     htmldir=$ac_optarg ;;
943
944   -includedir | --includedir | --includedi | --included | --include \
945   | --includ | --inclu | --incl | --inc)
946     ac_prev=includedir ;;
947   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
948   | --includ=* | --inclu=* | --incl=* | --inc=*)
949     includedir=$ac_optarg ;;
950
951   -infodir | --infodir | --infodi | --infod | --info | --inf)
952     ac_prev=infodir ;;
953   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
954     infodir=$ac_optarg ;;
955
956   -libdir | --libdir | --libdi | --libd)
957     ac_prev=libdir ;;
958   -libdir=* | --libdir=* | --libdi=* | --libd=*)
959     libdir=$ac_optarg ;;
960
961   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
962   | --libexe | --libex | --libe)
963     ac_prev=libexecdir ;;
964   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
965   | --libexe=* | --libex=* | --libe=*)
966     libexecdir=$ac_optarg ;;
967
968   -localedir | --localedir | --localedi | --localed | --locale)
969     ac_prev=localedir ;;
970   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
971     localedir=$ac_optarg ;;
972
973   -localstatedir | --localstatedir | --localstatedi | --localstated \
974   | --localstate | --localstat | --localsta | --localst | --locals)
975     ac_prev=localstatedir ;;
976   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
977   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
978     localstatedir=$ac_optarg ;;
979
980   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
981     ac_prev=mandir ;;
982   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
983     mandir=$ac_optarg ;;
984
985   -nfp | --nfp | --nf)
986     # Obsolete; use --without-fp.
987     with_fp=no ;;
988
989   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
990   | --no-cr | --no-c | -n)
991     no_create=yes ;;
992
993   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
994   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
995     no_recursion=yes ;;
996
997   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
998   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
999   | --oldin | --oldi | --old | --ol | --o)
1000     ac_prev=oldincludedir ;;
1001   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1002   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1003   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1004     oldincludedir=$ac_optarg ;;
1005
1006   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1007     ac_prev=prefix ;;
1008   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1009     prefix=$ac_optarg ;;
1010
1011   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1012   | --program-pre | --program-pr | --program-p)
1013     ac_prev=program_prefix ;;
1014   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1015   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1016     program_prefix=$ac_optarg ;;
1017
1018   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1019   | --program-suf | --program-su | --program-s)
1020     ac_prev=program_suffix ;;
1021   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1022   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1023     program_suffix=$ac_optarg ;;
1024
1025   -program-transform-name | --program-transform-name \
1026   | --program-transform-nam | --program-transform-na \
1027   | --program-transform-n | --program-transform- \
1028   | --program-transform | --program-transfor \
1029   | --program-transfo | --program-transf \
1030   | --program-trans | --program-tran \
1031   | --progr-tra | --program-tr | --program-t)
1032     ac_prev=program_transform_name ;;
1033   -program-transform-name=* | --program-transform-name=* \
1034   | --program-transform-nam=* | --program-transform-na=* \
1035   | --program-transform-n=* | --program-transform-=* \
1036   | --program-transform=* | --program-transfor=* \
1037   | --program-transfo=* | --program-transf=* \
1038   | --program-trans=* | --program-tran=* \
1039   | --progr-tra=* | --program-tr=* | --program-t=*)
1040     program_transform_name=$ac_optarg ;;
1041
1042   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1043     ac_prev=pdfdir ;;
1044   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1045     pdfdir=$ac_optarg ;;
1046
1047   -psdir | --psdir | --psdi | --psd | --ps)
1048     ac_prev=psdir ;;
1049   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1050     psdir=$ac_optarg ;;
1051
1052   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1053   | -silent | --silent | --silen | --sile | --sil)
1054     silent=yes ;;
1055
1056   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1057     ac_prev=sbindir ;;
1058   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1059   | --sbi=* | --sb=*)
1060     sbindir=$ac_optarg ;;
1061
1062   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1063   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1064   | --sharedst | --shareds | --shared | --share | --shar \
1065   | --sha | --sh)
1066     ac_prev=sharedstatedir ;;
1067   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1068   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1069   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1070   | --sha=* | --sh=*)
1071     sharedstatedir=$ac_optarg ;;
1072
1073   -site | --site | --sit)
1074     ac_prev=site ;;
1075   -site=* | --site=* | --sit=*)
1076     site=$ac_optarg ;;
1077
1078   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1079     ac_prev=srcdir ;;
1080   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1081     srcdir=$ac_optarg ;;
1082
1083   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1084   | --syscon | --sysco | --sysc | --sys | --sy)
1085     ac_prev=sysconfdir ;;
1086   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1087   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1088     sysconfdir=$ac_optarg ;;
1089
1090   -target | --target | --targe | --targ | --tar | --ta | --t)
1091     ac_prev=target_alias ;;
1092   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1093     target_alias=$ac_optarg ;;
1094
1095   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1096     verbose=yes ;;
1097
1098   -version | --version | --versio | --versi | --vers | -V)
1099     ac_init_version=: ;;
1100
1101   -with-* | --with-*)
1102     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1103     # Reject names that are not valid shell variable names.
1104     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1105       { echo "$as_me: error: invalid package name: $ac_package" >&2
1106    { (exit 1); exit 1; }; }
1107     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1108     eval with_$ac_package=\$ac_optarg ;;
1109
1110   -without-* | --without-*)
1111     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1112     # Reject names that are not valid shell variable names.
1113     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1114       { echo "$as_me: error: invalid package name: $ac_package" >&2
1115    { (exit 1); exit 1; }; }
1116     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1117     eval with_$ac_package=no ;;
1118
1119   --x)
1120     # Obsolete; use --with-x.
1121     with_x=yes ;;
1122
1123   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1124   | --x-incl | --x-inc | --x-in | --x-i)
1125     ac_prev=x_includes ;;
1126   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1127   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1128     x_includes=$ac_optarg ;;
1129
1130   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1131   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1132     ac_prev=x_libraries ;;
1133   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1134   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1135     x_libraries=$ac_optarg ;;
1136
1137   -*) { echo "$as_me: error: unrecognized option: $ac_option
1138 Try \`$0 --help' for more information." >&2
1139    { (exit 1); exit 1; }; }
1140     ;;
1141
1142   *=*)
1143     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1144     # Reject names that are not valid shell variable names.
1145     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1146       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1147    { (exit 1); exit 1; }; }
1148     eval $ac_envvar=\$ac_optarg
1149     export $ac_envvar ;;
1150
1151   *)
1152     # FIXME: should be removed in autoconf 3.0.
1153     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1154     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1155       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1156     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1157     ;;
1158
1159   esac
1160 done
1161
1162 if test -n "$ac_prev"; then
1163   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1164   { echo "$as_me: error: missing argument to $ac_option" >&2
1165    { (exit 1); exit 1; }; }
1166 fi
1167
1168 # Be sure to have absolute directory names.
1169 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1170                 datadir sysconfdir sharedstatedir localstatedir includedir \
1171                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1172                 libdir localedir mandir
1173 do
1174   eval ac_val=\$$ac_var
1175   case $ac_val in
1176     [\\/$]* | ?:[\\/]* )  continue;;
1177     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1178   esac
1179   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1180    { (exit 1); exit 1; }; }
1181 done
1182
1183 # There might be people who depend on the old broken behavior: `$host'
1184 # used to hold the argument of --host etc.
1185 # FIXME: To remove some day.
1186 build=$build_alias
1187 host=$host_alias
1188 target=$target_alias
1189
1190 # FIXME: To remove some day.
1191 if test "x$host_alias" != x; then
1192   if test "x$build_alias" = x; then
1193     cross_compiling=maybe
1194     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1195     If a cross compiler is detected then cross compile mode will be used." >&2
1196   elif test "x$build_alias" != "x$host_alias"; then
1197     cross_compiling=yes
1198   fi
1199 fi
1200
1201 ac_tool_prefix=
1202 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1203
1204 test "$silent" = yes && exec 6>/dev/null
1205
1206
1207 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1208 ac_ls_di=`ls -di .` &&
1209 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1210   { echo "$as_me: error: Working directory cannot be determined" >&2
1211    { (exit 1); exit 1; }; }
1212 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1213   { echo "$as_me: error: pwd does not report name of working directory" >&2
1214    { (exit 1); exit 1; }; }
1215
1216
1217 # Find the source files, if location was not specified.
1218 if test -z "$srcdir"; then
1219   ac_srcdir_defaulted=yes
1220   # Try the directory containing this script, then the parent directory.
1221   ac_confdir=`$as_dirname -- "$0" ||
1222 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1223          X"$0" : 'X\(//\)[^/]' \| \
1224          X"$0" : 'X\(//\)$' \| \
1225          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1226 echo X"$0" |
1227     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1228             s//\1/
1229             q
1230           }
1231           /^X\(\/\/\)[^/].*/{
1232             s//\1/
1233             q
1234           }
1235           /^X\(\/\/\)$/{
1236             s//\1/
1237             q
1238           }
1239           /^X\(\/\).*/{
1240             s//\1/
1241             q
1242           }
1243           s/.*/./; q'`
1244   srcdir=$ac_confdir
1245   if test ! -r "$srcdir/$ac_unique_file"; then
1246     srcdir=..
1247   fi
1248 else
1249   ac_srcdir_defaulted=no
1250 fi
1251 if test ! -r "$srcdir/$ac_unique_file"; then
1252   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1253   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1254    { (exit 1); exit 1; }; }
1255 fi
1256 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1257 ac_abs_confdir=`(
1258         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1259    { (exit 1); exit 1; }; }
1260         pwd)`
1261 # When building in place, set srcdir=.
1262 if test "$ac_abs_confdir" = "$ac_pwd"; then
1263   srcdir=.
1264 fi
1265 # Remove unnecessary trailing slashes from srcdir.
1266 # Double slashes in file names in object file debugging info
1267 # mess up M-x gdb in Emacs.
1268 case $srcdir in
1269 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1270 esac
1271 for ac_var in $ac_precious_vars; do
1272   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1273   eval ac_env_${ac_var}_value=\$${ac_var}
1274   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1275   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1276 done
1277
1278 #
1279 # Report the --help message.
1280 #
1281 if test "$ac_init_help" = "long"; then
1282   # Omit some internal or obsolete options to make the list less imposing.
1283   # This message is too long to be a string in the A/UX 3.1 sh.
1284   cat <<_ACEOF
1285 \`configure' configures w3m 0.5.2 to adapt to many kinds of systems.
1286
1287 Usage: $0 [OPTION]... [VAR=VALUE]...
1288
1289 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1290 VAR=VALUE.  See below for descriptions of some of the useful variables.
1291
1292 Defaults for the options are specified in brackets.
1293
1294 Configuration:
1295   -h, --help              display this help and exit
1296       --help=short        display options specific to this package
1297       --help=recursive    display the short help of all the included packages
1298   -V, --version           display version information and exit
1299   -q, --quiet, --silent   do not print \`checking...' messages
1300       --cache-file=FILE   cache test results in FILE [disabled]
1301   -C, --config-cache      alias for \`--cache-file=config.cache'
1302   -n, --no-create         do not create output files
1303       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1304
1305 Installation directories:
1306   --prefix=PREFIX         install architecture-independent files in PREFIX
1307                           [$ac_default_prefix]
1308   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1309                           [PREFIX]
1310
1311 By default, \`make install' will install all the files in
1312 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1313 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1314 for instance \`--prefix=\$HOME'.
1315
1316 For better control, use the options below.
1317
1318 Fine tuning of the installation directories:
1319   --bindir=DIR           user executables [EPREFIX/bin]
1320   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1321   --libexecdir=DIR       program executables [EPREFIX/libexec]
1322   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1323   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1324   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1325   --libdir=DIR           object code libraries [EPREFIX/lib]
1326   --includedir=DIR       C header files [PREFIX/include]
1327   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1328   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1329   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1330   --infodir=DIR          info documentation [DATAROOTDIR/info]
1331   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1332   --mandir=DIR           man documentation [DATAROOTDIR/man]
1333   --docdir=DIR           documentation root [DATAROOTDIR/doc/w3m]
1334   --htmldir=DIR          html documentation [DOCDIR]
1335   --dvidir=DIR           dvi documentation [DOCDIR]
1336   --pdfdir=DIR           pdf documentation [DOCDIR]
1337   --psdir=DIR            ps documentation [DOCDIR]
1338 _ACEOF
1339
1340   cat <<\_ACEOF
1341
1342 System types:
1343   --build=BUILD     configure for building on BUILD [guessed]
1344   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1345 _ACEOF
1346 fi
1347
1348 if test -n "$ac_init_help"; then
1349   case $ac_init_help in
1350      short | recursive ) echo "Configuration of w3m 0.5.2:";;
1351    esac
1352   cat <<\_ACEOF
1353
1354 Optional Features:
1355   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1356   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1357   --disable-m17n                do not use m17n
1358    --disable-unicode            do not use unicode
1359    --enable-messagel10n=LL      message l10n instead of NLS
1360    --enable-japanese=CODE       support Japanese CODE=(S|E|J|U)
1361   --disable-nls           do not use Native Language Support
1362   --disable-rpath         do not hardcode runtime library paths
1363   --disable-color               disable color for vt100 terminal
1364    --disable-ansi-color         disable ansi color escape sequence
1365    --disable-bgcolor            disable to set background color
1366   --enable-image=DEVS           enable inline image handler for DEVS
1367                                  DEVS may be comma separeted: x11,fb,fb+s
1368                                  default: autodetected.
1369                                  'no' means disable inline image
1370    --disable-xface              disable xface support
1371   --enable-keymap=w3m|lynx      default keybind style(w3m or lynx)
1372   --disable-menu                disable popup menu
1373   --disable-mouse               disable mouse operation
1374   --disable-history             disable URL history
1375   --disable-alarm               disable alarm
1376   --disable-cookie              disable cookie
1377   --disable-nntp                disable NNTP
1378   --enable-gopher               enable GOPHER
1379   --disable-dict                disable dictionary lookup (see README.dict)
1380   --disable-help-cgi            disable help cgi
1381   --disable-external-uri-loader disable external URI loader
1382    --disable-w3mmailer          disable w3mmailer
1383   --disable-ipv6                disable IPv6
1384    --disable-sslverify          verify SSL certificate
1385   --disable-digest-auth         disable digest auth
1386
1387 Optional Packages:
1388   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1389   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1390   --with-charset=CHARSET
1391   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1392   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1393   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1394   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1395   --without-libintl-prefix     don't search for libintl in includedir and libdir
1396   --with-imagelib=IMAGELIBS             image library
1397                                  IMAGELIBS may be space separeted list of:
1398                                     gtk2 gdk-pixbuf imlib imlib2
1399   --with-migemo=MIGEMO_COMMAND  migemo command
1400   --with-editor=EDITOR          default editor (/usr/bin/vi)
1401   --with-mailer=MAILER          default mailer (/usr/bin/mail)
1402   --with-browser=BROWSER        default browser (/usr/bin/mozilla)
1403   --with-ssl=PREFIX             support https protocol
1404   --with-termlib=LIBS           terminal library
1405                                 LIBS is space separated list of:
1406                                   terminfo mytinfo termcap ncurses curses
1407   --with-gc=PREFIX              libgc PREFIX
1408
1409 Some influential environment variables:
1410   CC          C compiler command
1411   CFLAGS      C compiler flags
1412   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1413               nonstandard directory <lib dir>
1414   LIBS        libraries to pass to the linker, e.g. -l<library>
1415   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1416               you have headers in a nonstandard directory <include dir>
1417   CPP         C preprocessor
1418
1419 Use these variables to override the choices made by `configure' or to help
1420 it to find libraries and programs with nonstandard names/locations.
1421
1422 Report bugs to <satodai@w3m.jp>.
1423 _ACEOF
1424 ac_status=$?
1425 fi
1426
1427 if test "$ac_init_help" = "recursive"; then
1428   # If there are subdirs, report their specific --help.
1429   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1430     test -d "$ac_dir" || continue
1431     ac_builddir=.
1432
1433 case "$ac_dir" in
1434 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1435 *)
1436   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1437   # A ".." for each directory in $ac_dir_suffix.
1438   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1439   case $ac_top_builddir_sub in
1440   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1441   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1442   esac ;;
1443 esac
1444 ac_abs_top_builddir=$ac_pwd
1445 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1446 # for backward compatibility:
1447 ac_top_builddir=$ac_top_build_prefix
1448
1449 case $srcdir in
1450   .)  # We are building in place.
1451     ac_srcdir=.
1452     ac_top_srcdir=$ac_top_builddir_sub
1453     ac_abs_top_srcdir=$ac_pwd ;;
1454   [\\/]* | ?:[\\/]* )  # Absolute name.
1455     ac_srcdir=$srcdir$ac_dir_suffix;
1456     ac_top_srcdir=$srcdir
1457     ac_abs_top_srcdir=$srcdir ;;
1458   *) # Relative name.
1459     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1460     ac_top_srcdir=$ac_top_build_prefix$srcdir
1461     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1462 esac
1463 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1464
1465     cd "$ac_dir" || { ac_status=$?; continue; }
1466     # Check for guested configure.
1467     if test -f "$ac_srcdir/configure.gnu"; then
1468       echo &&
1469       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1470     elif test -f "$ac_srcdir/configure"; then
1471       echo &&
1472       $SHELL "$ac_srcdir/configure" --help=recursive
1473     else
1474       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1475     fi || ac_status=$?
1476     cd "$ac_pwd" || { ac_status=$?; break; }
1477   done
1478 fi
1479
1480 test -n "$ac_init_help" && exit $ac_status
1481 if $ac_init_version; then
1482   cat <<\_ACEOF
1483 w3m configure 0.5.2
1484 generated by GNU Autoconf 2.61
1485
1486 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1487 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1488 This configure script is free software; the Free Software Foundation
1489 gives unlimited permission to copy, distribute and modify it.
1490 _ACEOF
1491   exit
1492 fi
1493 cat >config.log <<_ACEOF
1494 This file contains any messages produced by compilers while
1495 running configure, to aid debugging if configure makes a mistake.
1496
1497 It was created by w3m $as_me 0.5.2, which was
1498 generated by GNU Autoconf 2.61.  Invocation command line was
1499
1500   $ $0 $@
1501
1502 _ACEOF
1503 exec 5>>config.log
1504 {
1505 cat <<_ASUNAME
1506 ## --------- ##
1507 ## Platform. ##
1508 ## --------- ##
1509
1510 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1511 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1512 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1513 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1514 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1515
1516 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1517 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1518
1519 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1520 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1521 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1522 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1523 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1524 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1525 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1526
1527 _ASUNAME
1528
1529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1530 for as_dir in $PATH
1531 do
1532   IFS=$as_save_IFS
1533   test -z "$as_dir" && as_dir=.
1534   echo "PATH: $as_dir"
1535 done
1536 IFS=$as_save_IFS
1537
1538 } >&5
1539
1540 cat >&5 <<_ACEOF
1541
1542
1543 ## ----------- ##
1544 ## Core tests. ##
1545 ## ----------- ##
1546
1547 _ACEOF
1548
1549
1550 # Keep a trace of the command line.
1551 # Strip out --no-create and --no-recursion so they do not pile up.
1552 # Strip out --silent because we don't want to record it for future runs.
1553 # Also quote any args containing shell meta-characters.
1554 # Make two passes to allow for proper duplicate-argument suppression.
1555 ac_configure_args=
1556 ac_configure_args0=
1557 ac_configure_args1=
1558 ac_must_keep_next=false
1559 for ac_pass in 1 2
1560 do
1561   for ac_arg
1562   do
1563     case $ac_arg in
1564     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1565     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1566     | -silent | --silent | --silen | --sile | --sil)
1567       continue ;;
1568     *\'*)
1569       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1570     esac
1571     case $ac_pass in
1572     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1573     2)
1574       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1575       if test $ac_must_keep_next = true; then
1576         ac_must_keep_next=false # Got value, back to normal.
1577       else
1578         case $ac_arg in
1579           *=* | --config-cache | -C | -disable-* | --disable-* \
1580           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1581           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1582           | -with-* | --with-* | -without-* | --without-* | --x)
1583             case "$ac_configure_args0 " in
1584               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1585             esac
1586             ;;
1587           -* ) ac_must_keep_next=true ;;
1588         esac
1589       fi
1590       ac_configure_args="$ac_configure_args '$ac_arg'"
1591       ;;
1592     esac
1593   done
1594 done
1595 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1596 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1597
1598 # When interrupted or exit'd, cleanup temporary files, and complete
1599 # config.log.  We remove comments because anyway the quotes in there
1600 # would cause problems or look ugly.
1601 # WARNING: Use '\'' to represent an apostrophe within the trap.
1602 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1603 trap 'exit_status=$?
1604   # Save into config.log some information that might help in debugging.
1605   {
1606     echo
1607
1608     cat <<\_ASBOX
1609 ## ---------------- ##
1610 ## Cache variables. ##
1611 ## ---------------- ##
1612 _ASBOX
1613     echo
1614     # The following way of writing the cache mishandles newlines in values,
1615 (
1616   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1617     eval ac_val=\$$ac_var
1618     case $ac_val in #(
1619     *${as_nl}*)
1620       case $ac_var in #(
1621       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1622 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1623       esac
1624       case $ac_var in #(
1625       _ | IFS | as_nl) ;; #(
1626       *) $as_unset $ac_var ;;
1627       esac ;;
1628     esac
1629   done
1630   (set) 2>&1 |
1631     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1632     *${as_nl}ac_space=\ *)
1633       sed -n \
1634         "s/'\''/'\''\\\\'\'''\''/g;
1635           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1636       ;; #(
1637     *)
1638       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1639       ;;
1640     esac |
1641     sort
1642 )
1643     echo
1644
1645     cat <<\_ASBOX
1646 ## ----------------- ##
1647 ## Output variables. ##
1648 ## ----------------- ##
1649 _ASBOX
1650     echo
1651     for ac_var in $ac_subst_vars
1652     do
1653       eval ac_val=\$$ac_var
1654       case $ac_val in
1655       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1656       esac
1657       echo "$ac_var='\''$ac_val'\''"
1658     done | sort
1659     echo
1660
1661     if test -n "$ac_subst_files"; then
1662       cat <<\_ASBOX
1663 ## ------------------- ##
1664 ## File substitutions. ##
1665 ## ------------------- ##
1666 _ASBOX
1667       echo
1668       for ac_var in $ac_subst_files
1669       do
1670         eval ac_val=\$$ac_var
1671         case $ac_val in
1672         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1673         esac
1674         echo "$ac_var='\''$ac_val'\''"
1675       done | sort
1676       echo
1677     fi
1678
1679     if test -s confdefs.h; then
1680       cat <<\_ASBOX
1681 ## ----------- ##
1682 ## confdefs.h. ##
1683 ## ----------- ##
1684 _ASBOX
1685       echo
1686       cat confdefs.h
1687       echo
1688     fi
1689     test "$ac_signal" != 0 &&
1690       echo "$as_me: caught signal $ac_signal"
1691     echo "$as_me: exit $exit_status"
1692   } >&5
1693   rm -f core *.core core.conftest.* &&
1694     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1695     exit $exit_status
1696 ' 0
1697 for ac_signal in 1 2 13 15; do
1698   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1699 done
1700 ac_signal=0
1701
1702 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1703 rm -f -r conftest* confdefs.h
1704
1705 # Predefined preprocessor variables.
1706
1707 cat >>confdefs.h <<_ACEOF
1708 #define PACKAGE_NAME "$PACKAGE_NAME"
1709 _ACEOF
1710
1711
1712 cat >>confdefs.h <<_ACEOF
1713 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1714 _ACEOF
1715
1716
1717 cat >>confdefs.h <<_ACEOF
1718 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1719 _ACEOF
1720
1721
1722 cat >>confdefs.h <<_ACEOF
1723 #define PACKAGE_STRING "$PACKAGE_STRING"
1724 _ACEOF
1725
1726
1727 cat >>confdefs.h <<_ACEOF
1728 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1729 _ACEOF
1730
1731
1732 # Let the site file select an alternate cache file if it wants to.
1733 # Prefer explicitly selected file to automatically selected ones.
1734 if test -n "$CONFIG_SITE"; then
1735   set x "$CONFIG_SITE"
1736 elif test "x$prefix" != xNONE; then
1737   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1738 else
1739   set x "$ac_default_prefix/share/config.site" \
1740         "$ac_default_prefix/etc/config.site"
1741 fi
1742 shift
1743 for ac_site_file
1744 do
1745   if test -r "$ac_site_file"; then
1746     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1747 echo "$as_me: loading site script $ac_site_file" >&6;}
1748     sed 's/^/| /' "$ac_site_file" >&5
1749     . "$ac_site_file"
1750   fi
1751 done
1752
1753 if test -r "$cache_file"; then
1754   # Some versions of bash will fail to source /dev/null (special
1755   # files actually), so we avoid doing that.
1756   if test -f "$cache_file"; then
1757     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1758 echo "$as_me: loading cache $cache_file" >&6;}
1759     case $cache_file in
1760       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1761       *)                      . "./$cache_file";;
1762     esac
1763   fi
1764 else
1765   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1766 echo "$as_me: creating cache $cache_file" >&6;}
1767   >$cache_file
1768 fi
1769
1770 # Check that the precious variables saved in the cache have kept the same
1771 # value.
1772 ac_cache_corrupted=false
1773 for ac_var in $ac_precious_vars; do
1774   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1775   eval ac_new_set=\$ac_env_${ac_var}_set
1776   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1777   eval ac_new_val=\$ac_env_${ac_var}_value
1778   case $ac_old_set,$ac_new_set in
1779     set,)
1780       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1781 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1782       ac_cache_corrupted=: ;;
1783     ,set)
1784       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1785 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1786       ac_cache_corrupted=: ;;
1787     ,);;
1788     *)
1789       if test "x$ac_old_val" != "x$ac_new_val"; then
1790         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1791 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1792         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1793 echo "$as_me:   former value:  $ac_old_val" >&2;}
1794         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1795 echo "$as_me:   current value: $ac_new_val" >&2;}
1796         ac_cache_corrupted=:
1797       fi;;
1798   esac
1799   # Pass precious variables to config.status.
1800   if test "$ac_new_set" = set; then
1801     case $ac_new_val in
1802     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1803     *) ac_arg=$ac_var=$ac_new_val ;;
1804     esac
1805     case " $ac_configure_args " in
1806       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1807       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1808     esac
1809   fi
1810 done
1811 if $ac_cache_corrupted; then
1812   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1813 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1814   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1815 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1816    { (exit 1); exit 1; }; }
1817 fi
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843 ac_ext=c
1844 ac_cpp='$CPP $CPPFLAGS'
1845 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1846 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1847 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1848
1849
1850 PACKAGE=w3m
1851 VERSION=0.5.2
1852 cat >>confdefs.h <<_ACEOF
1853 #define PACKAGE "$PACKAGE"
1854 _ACEOF
1855
1856 cat >>confdefs.h <<_ACEOF
1857 #define VERSION "$VERSION"
1858 _ACEOF
1859
1860
1861
1862
1863
1864 W3M=w3m
1865 cat >>confdefs.h <<\_ACEOF
1866 #define W3M w3m
1867 _ACEOF
1868
1869
1870
1871 W3M_LANG=${LC_ALL:-$LANG}
1872 ac_config_headers="$ac_config_headers config.h"
1873
1874 for ac_prog in gawk mawk nawk awk
1875 do
1876   # Extract the first word of "$ac_prog", so it can be a program name with args.
1877 set dummy $ac_prog; ac_word=$2
1878 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1879 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1880 if test "${ac_cv_prog_AWK+set}" = set; then
1881   echo $ECHO_N "(cached) $ECHO_C" >&6
1882 else
1883   if test -n "$AWK"; then
1884   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1885 else
1886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1887 for as_dir in $PATH
1888 do
1889   IFS=$as_save_IFS
1890   test -z "$as_dir" && as_dir=.
1891   for ac_exec_ext in '' $ac_executable_extensions; do
1892   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1893     ac_cv_prog_AWK="$ac_prog"
1894     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1895     break 2
1896   fi
1897 done
1898 done
1899 IFS=$as_save_IFS
1900
1901 fi
1902 fi
1903 AWK=$ac_cv_prog_AWK
1904 if test -n "$AWK"; then
1905   { echo "$as_me:$LINENO: result: $AWK" >&5
1906 echo "${ECHO_T}$AWK" >&6; }
1907 else
1908   { echo "$as_me:$LINENO: result: no" >&5
1909 echo "${ECHO_T}no" >&6; }
1910 fi
1911
1912
1913   test -n "$AWK" && break
1914 done
1915
1916 ac_ext=c
1917 ac_cpp='$CPP $CPPFLAGS'
1918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1921 if test -n "$ac_tool_prefix"; then
1922   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1923 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1924 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1926 if test "${ac_cv_prog_CC+set}" = set; then
1927   echo $ECHO_N "(cached) $ECHO_C" >&6
1928 else
1929   if test -n "$CC"; then
1930   ac_cv_prog_CC="$CC" # Let the user override the test.
1931 else
1932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1933 for as_dir in $PATH
1934 do
1935   IFS=$as_save_IFS
1936   test -z "$as_dir" && as_dir=.
1937   for ac_exec_ext in '' $ac_executable_extensions; do
1938   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1939     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1940     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1941     break 2
1942   fi
1943 done
1944 done
1945 IFS=$as_save_IFS
1946
1947 fi
1948 fi
1949 CC=$ac_cv_prog_CC
1950 if test -n "$CC"; then
1951   { echo "$as_me:$LINENO: result: $CC" >&5
1952 echo "${ECHO_T}$CC" >&6; }
1953 else
1954   { echo "$as_me:$LINENO: result: no" >&5
1955 echo "${ECHO_T}no" >&6; }
1956 fi
1957
1958
1959 fi
1960 if test -z "$ac_cv_prog_CC"; then
1961   ac_ct_CC=$CC
1962   # Extract the first word of "gcc", so it can be a program name with args.
1963 set dummy gcc; ac_word=$2
1964 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1966 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1967   echo $ECHO_N "(cached) $ECHO_C" >&6
1968 else
1969   if test -n "$ac_ct_CC"; then
1970   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1971 else
1972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1973 for as_dir in $PATH
1974 do
1975   IFS=$as_save_IFS
1976   test -z "$as_dir" && as_dir=.
1977   for ac_exec_ext in '' $ac_executable_extensions; do
1978   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1979     ac_cv_prog_ac_ct_CC="gcc"
1980     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1981     break 2
1982   fi
1983 done
1984 done
1985 IFS=$as_save_IFS
1986
1987 fi
1988 fi
1989 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1990 if test -n "$ac_ct_CC"; then
1991   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1992 echo "${ECHO_T}$ac_ct_CC" >&6; }
1993 else
1994   { echo "$as_me:$LINENO: result: no" >&5
1995 echo "${ECHO_T}no" >&6; }
1996 fi
1997
1998   if test "x$ac_ct_CC" = x; then
1999     CC=""
2000   else
2001     case $cross_compiling:$ac_tool_warned in
2002 yes:)
2003 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2004 whose name does not start with the host triplet.  If you think this
2005 configuration is useful to you, please write to autoconf@gnu.org." >&5
2006 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2007 whose name does not start with the host triplet.  If you think this
2008 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2009 ac_tool_warned=yes ;;
2010 esac
2011     CC=$ac_ct_CC
2012   fi
2013 else
2014   CC="$ac_cv_prog_CC"
2015 fi
2016
2017 if test -z "$CC"; then
2018           if test -n "$ac_tool_prefix"; then
2019     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2020 set dummy ${ac_tool_prefix}cc; ac_word=$2
2021 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2023 if test "${ac_cv_prog_CC+set}" = set; then
2024   echo $ECHO_N "(cached) $ECHO_C" >&6
2025 else
2026   if test -n "$CC"; then
2027   ac_cv_prog_CC="$CC" # Let the user override the test.
2028 else
2029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2030 for as_dir in $PATH
2031 do
2032   IFS=$as_save_IFS
2033   test -z "$as_dir" && as_dir=.
2034   for ac_exec_ext in '' $ac_executable_extensions; do
2035   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2036     ac_cv_prog_CC="${ac_tool_prefix}cc"
2037     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2038     break 2
2039   fi
2040 done
2041 done
2042 IFS=$as_save_IFS
2043
2044 fi
2045 fi
2046 CC=$ac_cv_prog_CC
2047 if test -n "$CC"; then
2048   { echo "$as_me:$LINENO: result: $CC" >&5
2049 echo "${ECHO_T}$CC" >&6; }
2050 else
2051   { echo "$as_me:$LINENO: result: no" >&5
2052 echo "${ECHO_T}no" >&6; }
2053 fi
2054
2055
2056   fi
2057 fi
2058 if test -z "$CC"; then
2059   # Extract the first word of "cc", so it can be a program name with args.
2060 set dummy cc; ac_word=$2
2061 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2063 if test "${ac_cv_prog_CC+set}" = set; then
2064   echo $ECHO_N "(cached) $ECHO_C" >&6
2065 else
2066   if test -n "$CC"; then
2067   ac_cv_prog_CC="$CC" # Let the user override the test.
2068 else
2069   ac_prog_rejected=no
2070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2071 for as_dir in $PATH
2072 do
2073   IFS=$as_save_IFS
2074   test -z "$as_dir" && as_dir=.
2075   for ac_exec_ext in '' $ac_executable_extensions; do
2076   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2077     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2078        ac_prog_rejected=yes
2079        continue
2080      fi
2081     ac_cv_prog_CC="cc"
2082     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2083     break 2
2084   fi
2085 done
2086 done
2087 IFS=$as_save_IFS
2088
2089 if test $ac_prog_rejected = yes; then
2090   # We found a bogon in the path, so make sure we never use it.
2091   set dummy $ac_cv_prog_CC
2092   shift
2093   if test $# != 0; then
2094     # We chose a different compiler from the bogus one.
2095     # However, it has the same basename, so the bogon will be chosen
2096     # first if we set CC to just the basename; use the full file name.
2097     shift
2098     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2099   fi
2100 fi
2101 fi
2102 fi
2103 CC=$ac_cv_prog_CC
2104 if test -n "$CC"; then
2105   { echo "$as_me:$LINENO: result: $CC" >&5
2106 echo "${ECHO_T}$CC" >&6; }
2107 else
2108   { echo "$as_me:$LINENO: result: no" >&5
2109 echo "${ECHO_T}no" >&6; }
2110 fi
2111
2112
2113 fi
2114 if test -z "$CC"; then
2115   if test -n "$ac_tool_prefix"; then
2116   for ac_prog in cl.exe
2117   do
2118     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2119 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2120 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2121 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2122 if test "${ac_cv_prog_CC+set}" = set; then
2123   echo $ECHO_N "(cached) $ECHO_C" >&6
2124 else
2125   if test -n "$CC"; then
2126   ac_cv_prog_CC="$CC" # Let the user override the test.
2127 else
2128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2129 for as_dir in $PATH
2130 do
2131   IFS=$as_save_IFS
2132   test -z "$as_dir" && as_dir=.
2133   for ac_exec_ext in '' $ac_executable_extensions; do
2134   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2135     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2136     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2137     break 2
2138   fi
2139 done
2140 done
2141 IFS=$as_save_IFS
2142
2143 fi
2144 fi
2145 CC=$ac_cv_prog_CC
2146 if test -n "$CC"; then
2147   { echo "$as_me:$LINENO: result: $CC" >&5
2148 echo "${ECHO_T}$CC" >&6; }
2149 else
2150   { echo "$as_me:$LINENO: result: no" >&5
2151 echo "${ECHO_T}no" >&6; }
2152 fi
2153
2154
2155     test -n "$CC" && break
2156   done
2157 fi
2158 if test -z "$CC"; then
2159   ac_ct_CC=$CC
2160   for ac_prog in cl.exe
2161 do
2162   # Extract the first word of "$ac_prog", so it can be a program name with args.
2163 set dummy $ac_prog; ac_word=$2
2164 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2166 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2167   echo $ECHO_N "(cached) $ECHO_C" >&6
2168 else
2169   if test -n "$ac_ct_CC"; then
2170   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2171 else
2172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2173 for as_dir in $PATH
2174 do
2175   IFS=$as_save_IFS
2176   test -z "$as_dir" && as_dir=.
2177   for ac_exec_ext in '' $ac_executable_extensions; do
2178   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2179     ac_cv_prog_ac_ct_CC="$ac_prog"
2180     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2181     break 2
2182   fi
2183 done
2184 done
2185 IFS=$as_save_IFS
2186
2187 fi
2188 fi
2189 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2190 if test -n "$ac_ct_CC"; then
2191   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2192 echo "${ECHO_T}$ac_ct_CC" >&6; }
2193 else
2194   { echo "$as_me:$LINENO: result: no" >&5
2195 echo "${ECHO_T}no" >&6; }
2196 fi
2197
2198
2199   test -n "$ac_ct_CC" && break
2200 done
2201
2202   if test "x$ac_ct_CC" = x; then
2203     CC=""
2204   else
2205     case $cross_compiling:$ac_tool_warned in
2206 yes:)
2207 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2208 whose name does not start with the host triplet.  If you think this
2209 configuration is useful to you, please write to autoconf@gnu.org." >&5
2210 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2211 whose name does not start with the host triplet.  If you think this
2212 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2213 ac_tool_warned=yes ;;
2214 esac
2215     CC=$ac_ct_CC
2216   fi
2217 fi
2218
2219 fi
2220
2221
2222 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2223 See \`config.log' for more details." >&5
2224 echo "$as_me: error: no acceptable C compiler found in \$PATH
2225 See \`config.log' for more details." >&2;}
2226    { (exit 1); exit 1; }; }
2227
2228 # Provide some information about the compiler.
2229 echo "$as_me:$LINENO: checking for C compiler version" >&5
2230 ac_compiler=`set X $ac_compile; echo $2`
2231 { (ac_try="$ac_compiler --version >&5"
2232 case "(($ac_try" in
2233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2234   *) ac_try_echo=$ac_try;;
2235 esac
2236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2237   (eval "$ac_compiler --version >&5") 2>&5
2238   ac_status=$?
2239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2240   (exit $ac_status); }
2241 { (ac_try="$ac_compiler -v >&5"
2242 case "(($ac_try" in
2243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2244   *) ac_try_echo=$ac_try;;
2245 esac
2246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2247   (eval "$ac_compiler -v >&5") 2>&5
2248   ac_status=$?
2249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2250   (exit $ac_status); }
2251 { (ac_try="$ac_compiler -V >&5"
2252 case "(($ac_try" in
2253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2254   *) ac_try_echo=$ac_try;;
2255 esac
2256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2257   (eval "$ac_compiler -V >&5") 2>&5
2258   ac_status=$?
2259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2260   (exit $ac_status); }
2261
2262 cat >conftest.$ac_ext <<_ACEOF
2263 /* confdefs.h.  */
2264 _ACEOF
2265 cat confdefs.h >>conftest.$ac_ext
2266 cat >>conftest.$ac_ext <<_ACEOF
2267 /* end confdefs.h.  */
2268
2269 int
2270 main ()
2271 {
2272
2273   ;
2274   return 0;
2275 }
2276 _ACEOF
2277 ac_clean_files_save=$ac_clean_files
2278 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2279 # Try to create an executable without -o first, disregard a.out.
2280 # It will help us diagnose broken compilers, and finding out an intuition
2281 # of exeext.
2282 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2283 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2284 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2285 #
2286 # List of possible output files, starting from the most likely.
2287 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2288 # only as a last resort.  b.out is created by i960 compilers.
2289 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2290 #
2291 # The IRIX 6 linker writes into existing files which may not be
2292 # executable, retaining their permissions.  Remove them first so a
2293 # subsequent execution test works.
2294 ac_rmfiles=
2295 for ac_file in $ac_files
2296 do
2297   case $ac_file in
2298     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2299     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2300   esac
2301 done
2302 rm -f $ac_rmfiles
2303
2304 if { (ac_try="$ac_link_default"
2305 case "(($ac_try" in
2306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2307   *) ac_try_echo=$ac_try;;
2308 esac
2309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2310   (eval "$ac_link_default") 2>&5
2311   ac_status=$?
2312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313   (exit $ac_status); }; then
2314   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2315 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2316 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2317 # so that the user can short-circuit this test for compilers unknown to
2318 # Autoconf.
2319 for ac_file in $ac_files ''
2320 do
2321   test -f "$ac_file" || continue
2322   case $ac_file in
2323     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2324         ;;
2325     [ab].out )
2326         # We found the default executable, but exeext='' is most
2327         # certainly right.
2328         break;;
2329     *.* )
2330         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2331         then :; else
2332            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2333         fi
2334         # We set ac_cv_exeext here because the later test for it is not
2335         # safe: cross compilers may not add the suffix if given an `-o'
2336         # argument, so we may need to know it at that point already.
2337         # Even if this section looks crufty: it has the advantage of
2338         # actually working.
2339         break;;
2340     * )
2341         break;;
2342   esac
2343 done
2344 test "$ac_cv_exeext" = no && ac_cv_exeext=
2345
2346 else
2347   ac_file=''
2348 fi
2349
2350 { echo "$as_me:$LINENO: result: $ac_file" >&5
2351 echo "${ECHO_T}$ac_file" >&6; }
2352 if test -z "$ac_file"; then
2353   echo "$as_me: failed program was:" >&5
2354 sed 's/^/| /' conftest.$ac_ext >&5
2355
2356 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2357 See \`config.log' for more details." >&5
2358 echo "$as_me: error: C compiler cannot create executables
2359 See \`config.log' for more details." >&2;}
2360    { (exit 77); exit 77; }; }
2361 fi
2362
2363 ac_exeext=$ac_cv_exeext
2364
2365 # Check that the compiler produces executables we can run.  If not, either
2366 # the compiler is broken, or we cross compile.
2367 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2368 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2369 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2370 # If not cross compiling, check that we can run a simple program.
2371 if test "$cross_compiling" != yes; then
2372   if { ac_try='./$ac_file'
2373   { (case "(($ac_try" in
2374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2375   *) ac_try_echo=$ac_try;;
2376 esac
2377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2378   (eval "$ac_try") 2>&5
2379   ac_status=$?
2380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2381   (exit $ac_status); }; }; then
2382     cross_compiling=no
2383   else
2384     if test "$cross_compiling" = maybe; then
2385         cross_compiling=yes
2386     else
2387         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2388 If you meant to cross compile, use \`--host'.
2389 See \`config.log' for more details." >&5
2390 echo "$as_me: error: cannot run C compiled programs.
2391 If you meant to cross compile, use \`--host'.
2392 See \`config.log' for more details." >&2;}
2393    { (exit 1); exit 1; }; }
2394     fi
2395   fi
2396 fi
2397 { echo "$as_me:$LINENO: result: yes" >&5
2398 echo "${ECHO_T}yes" >&6; }
2399
2400 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2401 ac_clean_files=$ac_clean_files_save
2402 # Check that the compiler produces executables we can run.  If not, either
2403 # the compiler is broken, or we cross compile.
2404 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2405 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2406 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2407 echo "${ECHO_T}$cross_compiling" >&6; }
2408
2409 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2410 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2411 if { (ac_try="$ac_link"
2412 case "(($ac_try" in
2413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2414   *) ac_try_echo=$ac_try;;
2415 esac
2416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2417   (eval "$ac_link") 2>&5
2418   ac_status=$?
2419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420   (exit $ac_status); }; then
2421   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2422 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2423 # work properly (i.e., refer to `conftest.exe'), while it won't with
2424 # `rm'.
2425 for ac_file in conftest.exe conftest conftest.*; do
2426   test -f "$ac_file" || continue
2427   case $ac_file in
2428     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2429     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2430           break;;
2431     * ) break;;
2432   esac
2433 done
2434 else
2435   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2436 See \`config.log' for more details." >&5
2437 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2438 See \`config.log' for more details." >&2;}
2439    { (exit 1); exit 1; }; }
2440 fi
2441
2442 rm -f conftest$ac_cv_exeext
2443 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2444 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2445
2446 rm -f conftest.$ac_ext
2447 EXEEXT=$ac_cv_exeext
2448 ac_exeext=$EXEEXT
2449 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2450 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2451 if test "${ac_cv_objext+set}" = set; then
2452   echo $ECHO_N "(cached) $ECHO_C" >&6
2453 else
2454   cat >conftest.$ac_ext <<_ACEOF
2455 /* confdefs.h.  */
2456 _ACEOF
2457 cat confdefs.h >>conftest.$ac_ext
2458 cat >>conftest.$ac_ext <<_ACEOF
2459 /* end confdefs.h.  */
2460
2461 int
2462 main ()
2463 {
2464
2465   ;
2466   return 0;
2467 }
2468 _ACEOF
2469 rm -f conftest.o conftest.obj
2470 if { (ac_try="$ac_compile"
2471 case "(($ac_try" in
2472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2473   *) ac_try_echo=$ac_try;;
2474 esac
2475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2476   (eval "$ac_compile") 2>&5
2477   ac_status=$?
2478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2479   (exit $ac_status); }; then
2480   for ac_file in conftest.o conftest.obj conftest.*; do
2481   test -f "$ac_file" || continue;
2482   case $ac_file in
2483     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2484     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2485        break;;
2486   esac
2487 done
2488 else
2489   echo "$as_me: failed program was:" >&5
2490 sed 's/^/| /' conftest.$ac_ext >&5
2491
2492 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2493 See \`config.log' for more details." >&5
2494 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2495 See \`config.log' for more details." >&2;}
2496    { (exit 1); exit 1; }; }
2497 fi
2498
2499 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2500 fi
2501 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2502 echo "${ECHO_T}$ac_cv_objext" >&6; }
2503 OBJEXT=$ac_cv_objext
2504 ac_objext=$OBJEXT
2505 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2506 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2507 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2508   echo $ECHO_N "(cached) $ECHO_C" >&6
2509 else
2510   cat >conftest.$ac_ext <<_ACEOF
2511 /* confdefs.h.  */
2512 _ACEOF
2513 cat confdefs.h >>conftest.$ac_ext
2514 cat >>conftest.$ac_ext <<_ACEOF
2515 /* end confdefs.h.  */
2516
2517 int
2518 main ()
2519 {
2520 #ifndef __GNUC__
2521        choke me
2522 #endif
2523
2524   ;
2525   return 0;
2526 }
2527 _ACEOF
2528 rm -f conftest.$ac_objext
2529 if { (ac_try="$ac_compile"
2530 case "(($ac_try" in
2531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2532   *) ac_try_echo=$ac_try;;
2533 esac
2534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2535   (eval "$ac_compile") 2>conftest.er1
2536   ac_status=$?
2537   grep -v '^ *+' conftest.er1 >conftest.err
2538   rm -f conftest.er1
2539   cat conftest.err >&5
2540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541   (exit $ac_status); } && {
2542          test -z "$ac_c_werror_flag" ||
2543          test ! -s conftest.err
2544        } && test -s conftest.$ac_objext; then
2545   ac_compiler_gnu=yes
2546 else
2547   echo "$as_me: failed program was:" >&5
2548 sed 's/^/| /' conftest.$ac_ext >&5
2549
2550         ac_compiler_gnu=no
2551 fi
2552
2553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2554 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2555
2556 fi
2557 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2558 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2559 GCC=`test $ac_compiler_gnu = yes && echo yes`
2560 ac_test_CFLAGS=${CFLAGS+set}
2561 ac_save_CFLAGS=$CFLAGS
2562 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2563 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2564 if test "${ac_cv_prog_cc_g+set}" = set; then
2565   echo $ECHO_N "(cached) $ECHO_C" >&6
2566 else
2567   ac_save_c_werror_flag=$ac_c_werror_flag
2568    ac_c_werror_flag=yes
2569    ac_cv_prog_cc_g=no
2570    CFLAGS="-g"
2571    cat >conftest.$ac_ext <<_ACEOF
2572 /* confdefs.h.  */
2573 _ACEOF
2574 cat confdefs.h >>conftest.$ac_ext
2575 cat >>conftest.$ac_ext <<_ACEOF
2576 /* end confdefs.h.  */
2577
2578 int
2579 main ()
2580 {
2581
2582   ;
2583   return 0;
2584 }
2585 _ACEOF
2586 rm -f conftest.$ac_objext
2587 if { (ac_try="$ac_compile"
2588 case "(($ac_try" in
2589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2590   *) ac_try_echo=$ac_try;;
2591 esac
2592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2593   (eval "$ac_compile") 2>conftest.er1
2594   ac_status=$?
2595   grep -v '^ *+' conftest.er1 >conftest.err
2596   rm -f conftest.er1
2597   cat conftest.err >&5
2598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599   (exit $ac_status); } && {
2600          test -z "$ac_c_werror_flag" ||
2601          test ! -s conftest.err
2602        } && test -s conftest.$ac_objext; then
2603   ac_cv_prog_cc_g=yes
2604 else
2605   echo "$as_me: failed program was:" >&5
2606 sed 's/^/| /' conftest.$ac_ext >&5
2607
2608         CFLAGS=""
2609       cat >conftest.$ac_ext <<_ACEOF
2610 /* confdefs.h.  */
2611 _ACEOF
2612 cat confdefs.h >>conftest.$ac_ext
2613 cat >>conftest.$ac_ext <<_ACEOF
2614 /* end confdefs.h.  */
2615
2616 int
2617 main ()
2618 {
2619
2620   ;
2621   return 0;
2622 }
2623 _ACEOF
2624 rm -f conftest.$ac_objext
2625 if { (ac_try="$ac_compile"
2626 case "(($ac_try" in
2627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2628   *) ac_try_echo=$ac_try;;
2629 esac
2630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2631   (eval "$ac_compile") 2>conftest.er1
2632   ac_status=$?
2633   grep -v '^ *+' conftest.er1 >conftest.err
2634   rm -f conftest.er1
2635   cat conftest.err >&5
2636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637   (exit $ac_status); } && {
2638          test -z "$ac_c_werror_flag" ||
2639          test ! -s conftest.err
2640        } && test -s conftest.$ac_objext; then
2641   :
2642 else
2643   echo "$as_me: failed program was:" >&5
2644 sed 's/^/| /' conftest.$ac_ext >&5
2645
2646         ac_c_werror_flag=$ac_save_c_werror_flag
2647          CFLAGS="-g"
2648          cat >conftest.$ac_ext <<_ACEOF
2649 /* confdefs.h.  */
2650 _ACEOF
2651 cat confdefs.h >>conftest.$ac_ext
2652 cat >>conftest.$ac_ext <<_ACEOF
2653 /* end confdefs.h.  */
2654
2655 int
2656 main ()
2657 {
2658
2659   ;
2660   return 0;
2661 }
2662 _ACEOF
2663 rm -f conftest.$ac_objext
2664 if { (ac_try="$ac_compile"
2665 case "(($ac_try" in
2666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2667   *) ac_try_echo=$ac_try;;
2668 esac
2669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2670   (eval "$ac_compile") 2>conftest.er1
2671   ac_status=$?
2672   grep -v '^ *+' conftest.er1 >conftest.err
2673   rm -f conftest.er1
2674   cat conftest.err >&5
2675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676   (exit $ac_status); } && {
2677          test -z "$ac_c_werror_flag" ||
2678          test ! -s conftest.err
2679        } && test -s conftest.$ac_objext; then
2680   ac_cv_prog_cc_g=yes
2681 else
2682   echo "$as_me: failed program was:" >&5
2683 sed 's/^/| /' conftest.$ac_ext >&5
2684
2685
2686 fi
2687
2688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2689 fi
2690
2691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2692 fi
2693
2694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2695    ac_c_werror_flag=$ac_save_c_werror_flag
2696 fi
2697 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2698 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2699 if test "$ac_test_CFLAGS" = set; then
2700   CFLAGS=$ac_save_CFLAGS
2701 elif test $ac_cv_prog_cc_g = yes; then
2702   if test "$GCC" = yes; then
2703     CFLAGS="-g -O2"
2704   else
2705     CFLAGS="-g"
2706   fi
2707 else
2708   if test "$GCC" = yes; then
2709     CFLAGS="-O2"
2710   else
2711     CFLAGS=
2712   fi
2713 fi
2714 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2715 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2716 if test "${ac_cv_prog_cc_c89+set}" = set; then
2717   echo $ECHO_N "(cached) $ECHO_C" >&6
2718 else
2719   ac_cv_prog_cc_c89=no
2720 ac_save_CC=$CC
2721 cat >conftest.$ac_ext <<_ACEOF
2722 /* confdefs.h.  */
2723 _ACEOF
2724 cat confdefs.h >>conftest.$ac_ext
2725 cat >>conftest.$ac_ext <<_ACEOF
2726 /* end confdefs.h.  */
2727 #include <stdarg.h>
2728 #include <stdio.h>
2729 #include <sys/types.h>
2730 #include <sys/stat.h>
2731 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2732 struct buf { int x; };
2733 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2734 static char *e (p, i)
2735      char **p;
2736      int i;
2737 {
2738   return p[i];
2739 }
2740 static char *f (char * (*g) (char **, int), char **p, ...)
2741 {
2742   char *s;
2743   va_list v;
2744   va_start (v,p);
2745   s = g (p, va_arg (v,int));
2746   va_end (v);
2747   return s;
2748 }
2749
2750 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2751    function prototypes and stuff, but not '\xHH' hex character constants.
2752    These don't provoke an error unfortunately, instead are silently treated
2753    as 'x'.  The following induces an error, until -std is added to get
2754    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2755    array size at least.  It's necessary to write '\x00'==0 to get something
2756    that's true only with -std.  */
2757 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2758
2759 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2760    inside strings and character constants.  */
2761 #define FOO(x) 'x'
2762 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2763
2764 int test (int i, double x);
2765 struct s1 {int (*f) (int a);};
2766 struct s2 {int (*f) (double a);};
2767 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2768 int argc;
2769 char **argv;
2770 int
2771 main ()
2772 {
2773 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2774   ;
2775   return 0;
2776 }
2777 _ACEOF
2778 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2779         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2780 do
2781   CC="$ac_save_CC $ac_arg"
2782   rm -f conftest.$ac_objext
2783 if { (ac_try="$ac_compile"
2784 case "(($ac_try" in
2785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2786   *) ac_try_echo=$ac_try;;
2787 esac
2788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2789   (eval "$ac_compile") 2>conftest.er1
2790   ac_status=$?
2791   grep -v '^ *+' conftest.er1 >conftest.err
2792   rm -f conftest.er1
2793   cat conftest.err >&5
2794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795   (exit $ac_status); } && {
2796          test -z "$ac_c_werror_flag" ||
2797          test ! -s conftest.err
2798        } && test -s conftest.$ac_objext; then
2799   ac_cv_prog_cc_c89=$ac_arg
2800 else
2801   echo "$as_me: failed program was:" >&5
2802 sed 's/^/| /' conftest.$ac_ext >&5
2803
2804
2805 fi
2806
2807 rm -f core conftest.err conftest.$ac_objext
2808   test "x$ac_cv_prog_cc_c89" != "xno" && break
2809 done
2810 rm -f conftest.$ac_ext
2811 CC=$ac_save_CC
2812
2813 fi
2814 # AC_CACHE_VAL
2815 case "x$ac_cv_prog_cc_c89" in
2816   x)
2817     { echo "$as_me:$LINENO: result: none needed" >&5
2818 echo "${ECHO_T}none needed" >&6; } ;;
2819   xno)
2820     { echo "$as_me:$LINENO: result: unsupported" >&5
2821 echo "${ECHO_T}unsupported" >&6; } ;;
2822   *)
2823     CC="$CC $ac_cv_prog_cc_c89"
2824     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2825 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2826 esac
2827
2828
2829 ac_ext=c
2830 ac_cpp='$CPP $CPPFLAGS'
2831 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2832 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2833 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2834
2835 ac_ext=c
2836 ac_cpp='$CPP $CPPFLAGS'
2837 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2838 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2839 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2840 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2841 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2842 # On Suns, sometimes $CPP names a directory.
2843 if test -n "$CPP" && test -d "$CPP"; then
2844   CPP=
2845 fi
2846 if test -z "$CPP"; then
2847   if test "${ac_cv_prog_CPP+set}" = set; then
2848   echo $ECHO_N "(cached) $ECHO_C" >&6
2849 else
2850       # Double quotes because CPP needs to be expanded
2851     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2852     do
2853       ac_preproc_ok=false
2854 for ac_c_preproc_warn_flag in '' yes
2855 do
2856   # Use a header file that comes with gcc, so configuring glibc
2857   # with a fresh cross-compiler works.
2858   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2859   # <limits.h> exists even on freestanding compilers.
2860   # On the NeXT, cc -E runs the code through the compiler's parser,
2861   # not just through cpp. "Syntax error" is here to catch this case.
2862   cat >conftest.$ac_ext <<_ACEOF
2863 /* confdefs.h.  */
2864 _ACEOF
2865 cat confdefs.h >>conftest.$ac_ext
2866 cat >>conftest.$ac_ext <<_ACEOF
2867 /* end confdefs.h.  */
2868 #ifdef __STDC__
2869 # include <limits.h>
2870 #else
2871 # include <assert.h>
2872 #endif
2873                      Syntax error
2874 _ACEOF
2875 if { (ac_try="$ac_cpp conftest.$ac_ext"
2876 case "(($ac_try" in
2877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2878   *) ac_try_echo=$ac_try;;
2879 esac
2880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2881   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2882   ac_status=$?
2883   grep -v '^ *+' conftest.er1 >conftest.err
2884   rm -f conftest.er1
2885   cat conftest.err >&5
2886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887   (exit $ac_status); } >/dev/null && {
2888          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2889          test ! -s conftest.err
2890        }; then
2891   :
2892 else
2893   echo "$as_me: failed program was:" >&5
2894 sed 's/^/| /' conftest.$ac_ext >&5
2895
2896   # Broken: fails on valid input.
2897 continue
2898 fi
2899
2900 rm -f conftest.err conftest.$ac_ext
2901
2902   # OK, works on sane cases.  Now check whether nonexistent headers
2903   # can be detected and how.
2904   cat >conftest.$ac_ext <<_ACEOF
2905 /* confdefs.h.  */
2906 _ACEOF
2907 cat confdefs.h >>conftest.$ac_ext
2908 cat >>conftest.$ac_ext <<_ACEOF
2909 /* end confdefs.h.  */
2910 #include <ac_nonexistent.h>
2911 _ACEOF
2912 if { (ac_try="$ac_cpp conftest.$ac_ext"
2913 case "(($ac_try" in
2914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2915   *) ac_try_echo=$ac_try;;
2916 esac
2917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2918   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2919   ac_status=$?
2920   grep -v '^ *+' conftest.er1 >conftest.err
2921   rm -f conftest.er1
2922   cat conftest.err >&5
2923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924   (exit $ac_status); } >/dev/null && {
2925          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2926          test ! -s conftest.err
2927        }; then
2928   # Broken: success on invalid input.
2929 continue
2930 else
2931   echo "$as_me: failed program was:" >&5
2932 sed 's/^/| /' conftest.$ac_ext >&5
2933
2934   # Passes both tests.
2935 ac_preproc_ok=:
2936 break
2937 fi
2938
2939 rm -f conftest.err conftest.$ac_ext
2940
2941 done
2942 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2943 rm -f conftest.err conftest.$ac_ext
2944 if $ac_preproc_ok; then
2945   break
2946 fi
2947
2948     done
2949     ac_cv_prog_CPP=$CPP
2950
2951 fi
2952   CPP=$ac_cv_prog_CPP
2953 else
2954   ac_cv_prog_CPP=$CPP
2955 fi
2956 { echo "$as_me:$LINENO: result: $CPP" >&5
2957 echo "${ECHO_T}$CPP" >&6; }
2958 ac_preproc_ok=false
2959 for ac_c_preproc_warn_flag in '' yes
2960 do
2961   # Use a header file that comes with gcc, so configuring glibc
2962   # with a fresh cross-compiler works.
2963   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2964   # <limits.h> exists even on freestanding compilers.
2965   # On the NeXT, cc -E runs the code through the compiler's parser,
2966   # not just through cpp. "Syntax error" is here to catch this case.
2967   cat >conftest.$ac_ext <<_ACEOF
2968 /* confdefs.h.  */
2969 _ACEOF
2970 cat confdefs.h >>conftest.$ac_ext
2971 cat >>conftest.$ac_ext <<_ACEOF
2972 /* end confdefs.h.  */
2973 #ifdef __STDC__
2974 # include <limits.h>
2975 #else
2976 # include <assert.h>
2977 #endif
2978                      Syntax error
2979 _ACEOF
2980 if { (ac_try="$ac_cpp conftest.$ac_ext"
2981 case "(($ac_try" in
2982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2983   *) ac_try_echo=$ac_try;;
2984 esac
2985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2986   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2987   ac_status=$?
2988   grep -v '^ *+' conftest.er1 >conftest.err
2989   rm -f conftest.er1
2990   cat conftest.err >&5
2991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992   (exit $ac_status); } >/dev/null && {
2993          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2994          test ! -s conftest.err
2995        }; then
2996   :
2997 else
2998   echo "$as_me: failed program was:" >&5
2999 sed 's/^/| /' conftest.$ac_ext >&5
3000
3001   # Broken: fails on valid input.
3002 continue
3003 fi
3004
3005 rm -f conftest.err conftest.$ac_ext
3006
3007   # OK, works on sane cases.  Now check whether nonexistent headers
3008   # can be detected and how.
3009   cat >conftest.$ac_ext <<_ACEOF
3010 /* confdefs.h.  */
3011 _ACEOF
3012 cat confdefs.h >>conftest.$ac_ext
3013 cat >>conftest.$ac_ext <<_ACEOF
3014 /* end confdefs.h.  */
3015 #include <ac_nonexistent.h>
3016 _ACEOF
3017 if { (ac_try="$ac_cpp conftest.$ac_ext"
3018 case "(($ac_try" in
3019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3020   *) ac_try_echo=$ac_try;;
3021 esac
3022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3023   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3024   ac_status=$?
3025   grep -v '^ *+' conftest.er1 >conftest.err
3026   rm -f conftest.er1
3027   cat conftest.err >&5
3028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029   (exit $ac_status); } >/dev/null && {
3030          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3031          test ! -s conftest.err
3032        }; then
3033   # Broken: success on invalid input.
3034 continue
3035 else
3036   echo "$as_me: failed program was:" >&5
3037 sed 's/^/| /' conftest.$ac_ext >&5
3038
3039   # Passes both tests.
3040 ac_preproc_ok=:
3041 break
3042 fi
3043
3044 rm -f conftest.err conftest.$ac_ext
3045
3046 done
3047 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3048 rm -f conftest.err conftest.$ac_ext
3049 if $ac_preproc_ok; then
3050   :
3051 else
3052   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3053 See \`config.log' for more details." >&5
3054 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3055 See \`config.log' for more details." >&2;}
3056    { (exit 1); exit 1; }; }
3057 fi
3058
3059 ac_ext=c
3060 ac_cpp='$CPP $CPPFLAGS'
3061 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3062 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3063 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3064
3065 ac_aux_dir=
3066 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3067   if test -f "$ac_dir/install-sh"; then
3068     ac_aux_dir=$ac_dir
3069     ac_install_sh="$ac_aux_dir/install-sh -c"
3070     break
3071   elif test -f "$ac_dir/install.sh"; then
3072     ac_aux_dir=$ac_dir
3073     ac_install_sh="$ac_aux_dir/install.sh -c"
3074     break
3075   elif test -f "$ac_dir/shtool"; then
3076     ac_aux_dir=$ac_dir
3077     ac_install_sh="$ac_aux_dir/shtool install -c"
3078     break
3079   fi
3080 done
3081 if test -z "$ac_aux_dir"; then
3082   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
3083 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
3084    { (exit 1); exit 1; }; }
3085 fi
3086
3087 # These three variables are undocumented and unsupported,
3088 # and are intended to be withdrawn in a future Autoconf release.
3089 # They can cause serious problems if a builder's source tree is in a directory
3090 # whose full name contains unusual characters.
3091 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3092 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3093 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3094
3095
3096 # Find a good install program.  We prefer a C program (faster),
3097 # so one script is as good as another.  But avoid the broken or
3098 # incompatible versions:
3099 # SysV /etc/install, /usr/sbin/install
3100 # SunOS /usr/etc/install
3101 # IRIX /sbin/install
3102 # AIX /bin/install
3103 # AmigaOS /C/install, which installs bootblocks on floppy discs
3104 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3105 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3106 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3107 # OS/2's system install, which has a completely different semantic
3108 # ./install, which can be erroneously created by make from ./install.sh.
3109 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3110 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3111 if test -z "$INSTALL"; then
3112 if test "${ac_cv_path_install+set}" = set; then
3113   echo $ECHO_N "(cached) $ECHO_C" >&6
3114 else
3115   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3116 for as_dir in $PATH
3117 do
3118   IFS=$as_save_IFS
3119   test -z "$as_dir" && as_dir=.
3120   # Account for people who put trailing slashes in PATH elements.
3121 case $as_dir/ in
3122   ./ | .// | /cC/* | \
3123   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3124   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3125   /usr/ucb/* ) ;;
3126   *)
3127     # OSF1 and SCO ODT 3.0 have their own names for install.
3128     # Don't use installbsd from OSF since it installs stuff as root
3129     # by default.
3130     for ac_prog in ginstall scoinst install; do
3131       for ac_exec_ext in '' $ac_executable_extensions; do
3132         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3133           if test $ac_prog = install &&
3134             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3135             # AIX install.  It has an incompatible calling convention.
3136             :
3137           elif test $ac_prog = install &&
3138             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3139             # program-specific install script used by HP pwplus--don't use.
3140             :
3141           else
3142             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3143             break 3
3144           fi
3145         fi
3146       done
3147     done
3148     ;;
3149 esac
3150 done
3151 IFS=$as_save_IFS
3152
3153
3154 fi
3155   if test "${ac_cv_path_install+set}" = set; then
3156     INSTALL=$ac_cv_path_install
3157   else
3158     # As a last resort, use the slow shell script.  Don't cache a
3159     # value for INSTALL within a source directory, because that will
3160     # break other packages using the cache if that directory is
3161     # removed, or if the value is a relative name.
3162     INSTALL=$ac_install_sh
3163   fi
3164 fi
3165 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3166 echo "${ECHO_T}$INSTALL" >&6; }
3167
3168 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3169 # It thinks the first close brace ends the variable substitution.
3170 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3171
3172 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3173
3174 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3175
3176 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
3177 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
3178 LN_S=$as_ln_s
3179 if test "$LN_S" = "ln -s"; then
3180   { echo "$as_me:$LINENO: result: yes" >&5
3181 echo "${ECHO_T}yes" >&6; }
3182 else
3183   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3184 echo "${ECHO_T}no, using $LN_S" >&6; }
3185 fi
3186
3187 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3188 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
3189 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3190 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3191   echo $ECHO_N "(cached) $ECHO_C" >&6
3192 else
3193   cat >conftest.make <<\_ACEOF
3194 SHELL = /bin/sh
3195 all:
3196         @echo '@@@%%%=$(MAKE)=@@@%%%'
3197 _ACEOF
3198 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3199 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3200   *@@@%%%=?*=@@@%%%*)
3201     eval ac_cv_prog_make_${ac_make}_set=yes;;
3202   *)
3203     eval ac_cv_prog_make_${ac_make}_set=no;;
3204 esac
3205 rm -f conftest.make
3206 fi
3207 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3208   { echo "$as_me:$LINENO: result: yes" >&5
3209 echo "${ECHO_T}yes" >&6; }
3210   SET_MAKE=
3211 else
3212   { echo "$as_me:$LINENO: result: no" >&5
3213 echo "${ECHO_T}no" >&6; }
3214   SET_MAKE="MAKE=${MAKE-make}"
3215 fi
3216
3217 if test -n "$ac_tool_prefix"; then
3218   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3219 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3220 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3222 if test "${ac_cv_prog_RANLIB+set}" = set; then
3223   echo $ECHO_N "(cached) $ECHO_C" >&6
3224 else
3225   if test -n "$RANLIB"; then
3226   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3227 else
3228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3229 for as_dir in $PATH
3230 do
3231   IFS=$as_save_IFS
3232   test -z "$as_dir" && as_dir=.
3233   for ac_exec_ext in '' $ac_executable_extensions; do
3234   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3235     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3236     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3237     break 2
3238   fi
3239 done
3240 done
3241 IFS=$as_save_IFS
3242
3243 fi
3244 fi
3245 RANLIB=$ac_cv_prog_RANLIB
3246 if test -n "$RANLIB"; then
3247   { echo "$as_me:$LINENO: result: $RANLIB" >&5
3248 echo "${ECHO_T}$RANLIB" >&6; }
3249 else
3250   { echo "$as_me:$LINENO: result: no" >&5
3251 echo "${ECHO_T}no" >&6; }
3252 fi
3253
3254
3255 fi
3256 if test -z "$ac_cv_prog_RANLIB"; then
3257   ac_ct_RANLIB=$RANLIB
3258   # Extract the first word of "ranlib", so it can be a program name with args.
3259 set dummy ranlib; ac_word=$2
3260 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3262 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3263   echo $ECHO_N "(cached) $ECHO_C" >&6
3264 else
3265   if test -n "$ac_ct_RANLIB"; then
3266   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3267 else
3268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3269 for as_dir in $PATH
3270 do
3271   IFS=$as_save_IFS
3272   test -z "$as_dir" && as_dir=.
3273   for ac_exec_ext in '' $ac_executable_extensions; do
3274   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3275     ac_cv_prog_ac_ct_RANLIB="ranlib"
3276     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3277     break 2
3278   fi
3279 done
3280 done
3281 IFS=$as_save_IFS
3282
3283 fi
3284 fi
3285 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3286 if test -n "$ac_ct_RANLIB"; then
3287   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3288 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3289 else
3290   { echo "$as_me:$LINENO: result: no" >&5
3291 echo "${ECHO_T}no" >&6; }
3292 fi
3293
3294   if test "x$ac_ct_RANLIB" = x; then
3295     RANLIB=":"
3296   else
3297     case $cross_compiling:$ac_tool_warned in
3298 yes:)
3299 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3300 whose name does not start with the host triplet.  If you think this
3301 configuration is useful to you, please write to autoconf@gnu.org." >&5
3302 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3303 whose name does not start with the host triplet.  If you think this
3304 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3305 ac_tool_warned=yes ;;
3306 esac
3307     RANLIB=$ac_ct_RANLIB
3308   fi
3309 else
3310   RANLIB="$ac_cv_prog_RANLIB"
3311 fi
3312
3313 for ac_prog in perl
3314 do
3315   # Extract the first word of "$ac_prog", so it can be a program name with args.
3316 set dummy $ac_prog; ac_word=$2
3317 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3319 if test "${ac_cv_path_PERL+set}" = set; then
3320   echo $ECHO_N "(cached) $ECHO_C" >&6
3321 else
3322   case $PERL in
3323   [\\/]* | ?:[\\/]*)
3324   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
3325   ;;
3326   *)
3327   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3328 for as_dir in $PATH
3329 do
3330   IFS=$as_save_IFS
3331   test -z "$as_dir" && as_dir=.
3332   for ac_exec_ext in '' $ac_executable_extensions; do
3333   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3334     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
3335     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3336     break 2
3337   fi
3338 done
3339 done
3340 IFS=$as_save_IFS
3341
3342   ;;
3343 esac
3344 fi
3345 PERL=$ac_cv_path_PERL
3346 if test -n "$PERL"; then
3347   { echo "$as_me:$LINENO: result: $PERL" >&5
3348 echo "${ECHO_T}$PERL" >&6; }
3349 else
3350   { echo "$as_me:$LINENO: result: no" >&5
3351 echo "${ECHO_T}no" >&6; }
3352 fi
3353
3354
3355   test -n "$PERL" && break
3356 done
3357 test -n "$PERL" || PERL="/usr/local/bin/perl"
3358
3359 for ac_prog in nkf
3360 do
3361   # Extract the first word of "$ac_prog", so it can be a program name with args.
3362 set dummy $ac_prog; ac_word=$2
3363 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3365 if test "${ac_cv_path_NKF+set}" = set; then
3366   echo $ECHO_N "(cached) $ECHO_C" >&6
3367 else
3368   case $NKF in
3369   [\\/]* | ?:[\\/]*)
3370   ac_cv_path_NKF="$NKF" # Let the user override the test with a path.
3371   ;;
3372   *)
3373   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3374 for as_dir in $PATH
3375 do
3376   IFS=$as_save_IFS
3377   test -z "$as_dir" && as_dir=.
3378   for ac_exec_ext in '' $ac_executable_extensions; do
3379   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3380     ac_cv_path_NKF="$as_dir/$ac_word$ac_exec_ext"
3381     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3382     break 2
3383   fi
3384 done
3385 done
3386 IFS=$as_save_IFS
3387
3388   ;;
3389 esac
3390 fi
3391 NKF=$ac_cv_path_NKF
3392 if test -n "$NKF"; then
3393   { echo "$as_me:$LINENO: result: $NKF" >&5
3394 echo "${ECHO_T}$NKF" >&6; }
3395 else
3396   { echo "$as_me:$LINENO: result: no" >&5
3397 echo "${ECHO_T}no" >&6; }
3398 fi
3399
3400
3401   test -n "$NKF" && break
3402 done
3403 test -n "$NKF" || NKF="/usr/local/bin/nkf"
3404
3405 for ac_prog in man
3406 do
3407   # Extract the first word of "$ac_prog", so it can be a program name with args.
3408 set dummy $ac_prog; ac_word=$2
3409 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3410 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3411 if test "${ac_cv_path_MAN+set}" = set; then
3412   echo $ECHO_N "(cached) $ECHO_C" >&6
3413 else
3414   case $MAN in
3415   [\\/]* | ?:[\\/]*)
3416   ac_cv_path_MAN="$MAN" # Let the user override the test with a path.
3417   ;;
3418   *)
3419   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3420 for as_dir in $PATH
3421 do
3422   IFS=$as_save_IFS
3423   test -z "$as_dir" && as_dir=.
3424   for ac_exec_ext in '' $ac_executable_extensions; do
3425   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3426     ac_cv_path_MAN="$as_dir/$ac_word$ac_exec_ext"
3427     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3428     break 2
3429   fi
3430 done
3431 done
3432 IFS=$as_save_IFS
3433
3434   ;;
3435 esac
3436 fi
3437 MAN=$ac_cv_path_MAN
3438 if test -n "$MAN"; then
3439   { echo "$as_me:$LINENO: result: $MAN" >&5
3440 echo "${ECHO_T}$MAN" >&6; }
3441 else
3442   { echo "$as_me:$LINENO: result: no" >&5
3443 echo "${ECHO_T}no" >&6; }
3444 fi
3445
3446
3447   test -n "$MAN" && break
3448 done
3449 test -n "$MAN" || MAN="/usr/bin/man"
3450
3451 # Make sure we can run config.sub.
3452 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3453   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3454 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3455    { (exit 1); exit 1; }; }
3456
3457 { echo "$as_me:$LINENO: checking build system type" >&5
3458 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3459 if test "${ac_cv_build+set}" = set; then
3460   echo $ECHO_N "(cached) $ECHO_C" >&6
3461 else
3462   ac_build_alias=$build_alias
3463 test "x$ac_build_alias" = x &&
3464   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3465 test "x$ac_build_alias" = x &&
3466   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3467 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3468    { (exit 1); exit 1; }; }
3469 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3470   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3471 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3472    { (exit 1); exit 1; }; }
3473
3474 fi
3475 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3476 echo "${ECHO_T}$ac_cv_build" >&6; }
3477 case $ac_cv_build in
3478 *-*-*) ;;
3479 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3480 echo "$as_me: error: invalid value of canonical build" >&2;}
3481    { (exit 1); exit 1; }; };;
3482 esac
3483 build=$ac_cv_build
3484 ac_save_IFS=$IFS; IFS='-'
3485 set x $ac_cv_build
3486 shift
3487 build_cpu=$1
3488 build_vendor=$2
3489 shift; shift
3490 # Remember, the first character of IFS is used to create $*,
3491 # except with old shells:
3492 build_os=$*
3493 IFS=$ac_save_IFS
3494 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3495
3496
3497 { echo "$as_me:$LINENO: checking host system type" >&5
3498 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3499 if test "${ac_cv_host+set}" = set; then
3500   echo $ECHO_N "(cached) $ECHO_C" >&6
3501 else
3502   if test "x$host_alias" = x; then
3503   ac_cv_host=$ac_cv_build
3504 else
3505   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3506     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3507 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3508    { (exit 1); exit 1; }; }
3509 fi
3510
3511 fi
3512 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3513 echo "${ECHO_T}$ac_cv_host" >&6; }
3514 case $ac_cv_host in
3515 *-*-*) ;;
3516 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3517 echo "$as_me: error: invalid value of canonical host" >&2;}
3518    { (exit 1); exit 1; }; };;
3519 esac
3520 host=$ac_cv_host
3521 ac_save_IFS=$IFS; IFS='-'
3522 set x $ac_cv_host
3523 shift
3524 host_cpu=$1
3525 host_vendor=$2
3526 shift; shift
3527 # Remember, the first character of IFS is used to create $*,
3528 # except with old shells:
3529 host_os=$*
3530 IFS=$ac_save_IFS
3531 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3532
3533
3534
3535
3536
3537
3538 AUXBIN_TARGETS=
3539
3540
3541
3542 W3M_TARGET=$target
3543 cat >>confdefs.h <<_ACEOF
3544 #define W3M_TARGET $W3M_TARGET
3545 _ACEOF
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557 WCTARGET=""; WCCFLAGS=""; wcinclude=""; wclib=""
3558 { echo "$as_me:$LINENO: checking if m17n support is enabled" >&5
3559 echo $ECHO_N "checking if m17n support is enabled... $ECHO_C" >&6; }
3560 # Check whether --enable-m17n was given.
3561 if test "${enable_m17n+set}" = set; then
3562   enableval=$enable_m17n;
3563 else
3564   enable_m17n="yes"
3565 fi
3566
3567 { echo "$as_me:$LINENO: result: $enable_m17n" >&5
3568 echo "${ECHO_T}$enable_m17n" >&6; }
3569 if test x"$enable_m17n" = xno; then
3570   w3m_lang="en"
3571   WCTARGET=""
3572   WCCFLAGS=""
3573   wcinclude=""
3574   wclib=""
3575   display_charset='WC_CES_US_ASCII'
3576   system_charset='WC_CES_US_ASCII'
3577   document_charset='WC_CES_US_ASCII'
3578 else
3579  cat >>confdefs.h <<\_ACEOF
3580 #define USE_M17N 1
3581 _ACEOF
3582
3583  WCTARGET="libwc/libwc.a"
3584  WCCFLAGS='-I$(srcdir) -I$(srcdir)/..'
3585  wcinclude='-I$(srcdir)/libwc'
3586  wclib="-L./libwc -lwc"
3587  { echo "$as_me:$LINENO: checking if unicode support is enabled" >&5
3588 echo $ECHO_N "checking if unicode support is enabled... $ECHO_C" >&6; }
3589  # Check whether --enable-unicode was given.
3590 if test "${enable_unicode+set}" = set; then
3591   enableval=$enable_unicode;
3592 else
3593   enable_unicode="yes"
3594 fi
3595
3596  { echo "$as_me:$LINENO: result: $enable_unicode" >&5
3597 echo "${ECHO_T}$enable_unicode" >&6; }
3598  if test x"$enable_m17n" = xyes; then
3599   charset=US-ASCII
3600  else
3601   charset=$enable_m17n
3602  fi
3603  if test x"$enable_unicode" = xyes; then
3604     WCCFLAGS="-DUSE_UNICODE $WCCFLAGS"
3605     if test x"$charset" = xUS-ASCII; then
3606      charset=UTF-8
3607     fi
3608     cat >>confdefs.h <<\_ACEOF
3609 #define USE_UNICODE 1
3610 _ACEOF
3611
3612  fi
3613  { echo "$as_me:$LINENO: checking if message l10n" >&5
3614 echo $ECHO_N "checking if message l10n... $ECHO_C" >&6; }
3615  # Check whether --enable-messagel10n was given.
3616 if test "${enable_messagel10n+set}" = set; then
3617   enableval=$enable_messagel10n;
3618 else
3619   enable_messagel10n="no"
3620 fi
3621
3622  if test x$enable_messagel10n = xyes; then
3623   enable_messagel10n="ja";
3624  fi
3625  { echo "$as_me:$LINENO: result: $enable_messagel10n" >&5
3626 echo "${ECHO_T}$enable_messagel10n" >&6; }
3627  if test x$enable_messagel10n = xno; then
3628     :
3629  else
3630     POSUBST="\$(top_srcdir)/posubst"
3631     POLANG="$enable_messagel10n"
3632  fi
3633  { echo "$as_me:$LINENO: checking if japanese support is enabled" >&5
3634 echo $ECHO_N "checking if japanese support is enabled... $ECHO_C" >&6; }
3635  # Check whether --enable-japanese was given.
3636 if test "${enable_japanese+set}" = set; then
3637   enableval=$enable_japanese;
3638 else
3639   enable_japanese="no"
3640 fi
3641
3642  { echo "$as_me:$LINENO: result: $enable_japanese" >&5
3643 echo "${ECHO_T}$enable_japanese" >&6; }
3644  if test x"$enable_japanese" = xno; then
3645    w3m_lang="en"
3646  else
3647    w3m_lang="ja"
3648    case "$enable_japanese" in
3649    E*) charset=EUC-JP;;
3650    S*) charset=Shift_JIS;;
3651    J*) charset=ISO-2022-JP;;
3652    U*) charset=UTF-8;;
3653    esac
3654  fi
3655  display_charset=$charset
3656  { echo "$as_me:$LINENO: checking which charset is used for display" >&5
3657 echo $ECHO_N "checking which charset is used for display... $ECHO_C" >&6; }
3658
3659 # Check whether --with-charset was given.
3660 if test "${with_charset+set}" = set; then
3661   withval=$with_charset; test x"with_charset" = xyes || display_charset="$with_charset"
3662 fi
3663
3664  { echo "$as_me:$LINENO: result: $display_charset" >&5
3665 echo "${ECHO_T}$display_charset" >&6; }
3666  display_charset=`awk '$1 == "'$display_charset'" {print $2}' $srcdir/charset-list`
3667  case "$display_charset" in
3668    WC_CES_ISO_2022_JP*)
3669      system_charset=WC_CES_EUC_JP
3670      document_charset=WC_CES_EUC_JP
3671      ;;
3672    WC_CES_SHIFT_JIS)
3673      system_charset=$display_charset
3674      # for auto-detect
3675      document_charset=WC_CES_EUC_JP
3676      ;;
3677    WC_CES_ISO_2022_CN|WC_CES_HZ_GB_2312)
3678      system_charset=WC_CES_EUC_CN
3679      document_charset=WC_CES_EUC_CN
3680      ;;
3681    WC_CES_BIG5)
3682      system_charset=$display_charset
3683      # for auto-detect
3684      document_charset=WC_CES_EUC_TW
3685      ;;
3686   WC_CES_ISO_2022_KR)
3687      system_charset=WC_CES_EUC_KR
3688      document_charset=WC_CES_EUC_KR
3689      ;;
3690   *)
3691      system_charset=$display_charset
3692      document_charset=$display_charset
3693      ;;
3694  esac
3695 fi
3696 W3M_LANGDEF=`echo $w3m_lang | tr 'a-z' 'A-Z'`
3697 W3M_LANG=$W3M_LANGDEF
3698 cat >>confdefs.h <<_ACEOF
3699 #define W3M_LANG $W3M_LANG
3700 _ACEOF
3701
3702 cat >>confdefs.h <<_ACEOF
3703 #define WCTARGET "$WCTARGET"
3704 _ACEOF
3705
3706 cat >>confdefs.h <<_ACEOF
3707 #define WCCFLAGS "$WCCFLAGS"
3708 _ACEOF
3709
3710 CFLAGS="$CFLAGS $wcinclude"
3711 W3M_LIBS="$W3M_LIBS $wclib"
3712 cat >>confdefs.h <<_ACEOF
3713 #define DISPLAY_CHARSET $display_charset
3714 _ACEOF
3715
3716 cat >>confdefs.h <<_ACEOF
3717 #define SYSTEM_CHARSET $system_charset
3718 _ACEOF
3719
3720 cat >>confdefs.h <<_ACEOF
3721 #define DOCUMENT_CHARSET $document_charset
3722 _ACEOF
3723
3724 if test x$enable_messagel10n = xno; then
3725
3726         MKINSTALLDIRS=
3727   if test -n "$ac_aux_dir"; then
3728     case "$ac_aux_dir" in
3729       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
3730       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
3731     esac
3732   fi
3733   if test -z "$MKINSTALLDIRS"; then
3734     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
3735   fi
3736
3737
3738
3739   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
3740 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
3741     # Check whether --enable-nls was given.
3742 if test "${enable_nls+set}" = set; then
3743   enableval=$enable_nls; USE_NLS=$enableval
3744 else
3745   USE_NLS=yes
3746 fi
3747
3748   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
3749 echo "${ECHO_T}$USE_NLS" >&6; }
3750
3751
3752
3753
3754
3755
3756 # Prepare PATH_SEPARATOR.
3757 # The user is always right.
3758 if test "${PATH_SEPARATOR+set}" != set; then
3759   echo "#! /bin/sh" >conf$$.sh
3760   echo  "exit 0"   >>conf$$.sh
3761   chmod +x conf$$.sh
3762   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3763     PATH_SEPARATOR=';'
3764   else
3765     PATH_SEPARATOR=:
3766   fi
3767   rm -f conf$$.sh
3768 fi
3769
3770 # Find out how to test for executable files. Don't use a zero-byte file,
3771 # as systems may use methods other than mode bits to determine executability.
3772 cat >conf$$.file <<_ASEOF
3773 #! /bin/sh
3774 exit 0
3775 _ASEOF
3776 chmod +x conf$$.file
3777 if test -x conf$$.file >/dev/null 2>&1; then
3778   ac_executable_p="test -x"
3779 else
3780   ac_executable_p="test -f"
3781 fi
3782 rm -f conf$$.file
3783
3784 # Extract the first word of "msgfmt", so it can be a program name with args.
3785 set dummy msgfmt; ac_word=$2
3786 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3788 if test "${ac_cv_path_MSGFMT+set}" = set; then
3789   echo $ECHO_N "(cached) $ECHO_C" >&6
3790 else
3791   case "$MSGFMT" in
3792   [\\/]* | ?:[\\/]*)
3793     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3794     ;;
3795   *)
3796     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
3797     for ac_dir in $PATH; do
3798       IFS="$ac_save_IFS"
3799       test -z "$ac_dir" && ac_dir=.
3800       for ac_exec_ext in '' $ac_executable_extensions; do
3801         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3802           if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
3803      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3804             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
3805             break 2
3806           fi
3807         fi
3808       done
3809     done
3810     IFS="$ac_save_IFS"
3811   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
3812     ;;
3813 esac
3814 fi
3815 MSGFMT="$ac_cv_path_MSGFMT"
3816 if test "$MSGFMT" != ":"; then
3817   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
3818 echo "${ECHO_T}$MSGFMT" >&6; }
3819 else
3820   { echo "$as_me:$LINENO: result: no" >&5
3821 echo "${ECHO_T}no" >&6; }
3822 fi
3823
3824   # Extract the first word of "gmsgfmt", so it can be a program name with args.
3825 set dummy gmsgfmt; ac_word=$2
3826 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3828 if test "${ac_cv_path_GMSGFMT+set}" = set; then
3829   echo $ECHO_N "(cached) $ECHO_C" >&6
3830 else
3831   case $GMSGFMT in
3832   [\\/]* | ?:[\\/]*)
3833   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3834   ;;
3835   *)
3836   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3837 for as_dir in $PATH
3838 do
3839   IFS=$as_save_IFS
3840   test -z "$as_dir" && as_dir=.
3841   for ac_exec_ext in '' $ac_executable_extensions; do
3842   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3843     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
3844     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3845     break 2
3846   fi
3847 done
3848 done
3849 IFS=$as_save_IFS
3850
3851   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3852   ;;
3853 esac
3854 fi
3855 GMSGFMT=$ac_cv_path_GMSGFMT
3856 if test -n "$GMSGFMT"; then
3857   { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
3858 echo "${ECHO_T}$GMSGFMT" >&6; }
3859 else
3860   { echo "$as_me:$LINENO: result: no" >&5
3861 echo "${ECHO_T}no" >&6; }
3862 fi
3863
3864
3865
3866
3867 # Prepare PATH_SEPARATOR.
3868 # The user is always right.
3869 if test "${PATH_SEPARATOR+set}" != set; then
3870   echo "#! /bin/sh" >conf$$.sh
3871   echo  "exit 0"   >>conf$$.sh
3872   chmod +x conf$$.sh
3873   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3874     PATH_SEPARATOR=';'
3875   else
3876     PATH_SEPARATOR=:
3877   fi
3878   rm -f conf$$.sh
3879 fi
3880
3881 # Find out how to test for executable files. Don't use a zero-byte file,
3882 # as systems may use methods other than mode bits to determine executability.
3883 cat >conf$$.file <<_ASEOF
3884 #! /bin/sh
3885 exit 0
3886 _ASEOF
3887 chmod +x conf$$.file
3888 if test -x conf$$.file >/dev/null 2>&1; then
3889   ac_executable_p="test -x"
3890 else
3891   ac_executable_p="test -f"
3892 fi
3893 rm -f conf$$.file
3894
3895 # Extract the first word of "xgettext", so it can be a program name with args.
3896 set dummy xgettext; ac_word=$2
3897 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3899 if test "${ac_cv_path_XGETTEXT+set}" = set; then
3900   echo $ECHO_N "(cached) $ECHO_C" >&6
3901 else
3902   case "$XGETTEXT" in
3903   [\\/]* | ?:[\\/]*)
3904     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3905     ;;
3906   *)
3907     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
3908     for ac_dir in $PATH; do
3909       IFS="$ac_save_IFS"
3910       test -z "$ac_dir" && ac_dir=.
3911       for ac_exec_ext in '' $ac_executable_extensions; do
3912         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3913           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
3914      (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3915             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
3916             break 2
3917           fi
3918         fi
3919       done
3920     done
3921     IFS="$ac_save_IFS"
3922   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3923     ;;
3924 esac
3925 fi
3926 XGETTEXT="$ac_cv_path_XGETTEXT"
3927 if test "$XGETTEXT" != ":"; then
3928   { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
3929 echo "${ECHO_T}$XGETTEXT" >&6; }
3930 else
3931   { echo "$as_me:$LINENO: result: no" >&5
3932 echo "${ECHO_T}no" >&6; }
3933 fi
3934
3935     rm -f messages.po
3936
3937
3938 # Prepare PATH_SEPARATOR.
3939 # The user is always right.
3940 if test "${PATH_SEPARATOR+set}" != set; then
3941   echo "#! /bin/sh" >conf$$.sh
3942   echo  "exit 0"   >>conf$$.sh
3943   chmod +x conf$$.sh
3944   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3945     PATH_SEPARATOR=';'
3946   else
3947     PATH_SEPARATOR=:
3948   fi
3949   rm -f conf$$.sh
3950 fi
3951
3952 # Find out how to test for executable files. Don't use a zero-byte file,
3953 # as systems may use methods other than mode bits to determine executability.
3954 cat >conf$$.file <<_ASEOF
3955 #! /bin/sh
3956 exit 0
3957 _ASEOF
3958 chmod +x conf$$.file
3959 if test -x conf$$.file >/dev/null 2>&1; then
3960   ac_executable_p="test -x"
3961 else
3962   ac_executable_p="test -f"
3963 fi
3964 rm -f conf$$.file
3965
3966 # Extract the first word of "msgmerge", so it can be a program name with args.
3967 set dummy msgmerge; ac_word=$2
3968 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3969 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3970 if test "${ac_cv_path_MSGMERGE+set}" = set; then
3971   echo $ECHO_N "(cached) $ECHO_C" >&6
3972 else
3973   case "$MSGMERGE" in
3974   [\\/]* | ?:[\\/]*)
3975     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
3976     ;;
3977   *)
3978     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
3979     for ac_dir in $PATH; do
3980       IFS="$ac_save_IFS"
3981       test -z "$ac_dir" && ac_dir=.
3982       for ac_exec_ext in '' $ac_executable_extensions; do
3983         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3984           if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
3985             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
3986             break 2
3987           fi
3988         fi
3989       done
3990     done
3991     IFS="$ac_save_IFS"
3992   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
3993     ;;
3994 esac
3995 fi
3996 MSGMERGE="$ac_cv_path_MSGMERGE"
3997 if test "$MSGMERGE" != ":"; then
3998   { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
3999 echo "${ECHO_T}$MSGMERGE" >&6; }
4000 else
4001   { echo "$as_me:$LINENO: result: no" >&5
4002 echo "${ECHO_T}no" >&6; }
4003 fi
4004
4005
4006       if test "$GMSGFMT" != ":"; then
4007             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
4008        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4009       : ;
4010     else
4011       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
4012       { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
4013 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
4014       GMSGFMT=":"
4015     fi
4016   fi
4017
4018       if test "$XGETTEXT" != ":"; then
4019             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4020        (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4021       : ;
4022     else
4023       { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
4024 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
4025       XGETTEXT=":"
4026     fi
4027         rm -f messages.po
4028   fi
4029
4030   ac_config_commands="$ac_config_commands default-1"
4031
4032
4033
4034       if test "X$prefix" = "XNONE"; then
4035     acl_final_prefix="$ac_default_prefix"
4036   else
4037     acl_final_prefix="$prefix"
4038   fi
4039   if test "X$exec_prefix" = "XNONE"; then
4040     acl_final_exec_prefix='${prefix}'
4041   else
4042     acl_final_exec_prefix="$exec_prefix"
4043   fi
4044   acl_save_prefix="$prefix"
4045   prefix="$acl_final_prefix"
4046   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
4047   prefix="$acl_save_prefix"
4048
4049
4050 # Check whether --with-gnu-ld was given.
4051 if test "${with_gnu_ld+set}" = set; then
4052   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4053 else
4054   with_gnu_ld=no
4055 fi
4056
4057 # Prepare PATH_SEPARATOR.
4058 # The user is always right.
4059 if test "${PATH_SEPARATOR+set}" != set; then
4060   echo "#! /bin/sh" >conf$$.sh
4061   echo  "exit 0"   >>conf$$.sh
4062   chmod +x conf$$.sh
4063   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4064     PATH_SEPARATOR=';'
4065   else
4066     PATH_SEPARATOR=:
4067   fi
4068   rm -f conf$$.sh
4069 fi
4070 ac_prog=ld
4071 if test "$GCC" = yes; then
4072   # Check if gcc -print-prog-name=ld gives a path.
4073   { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4074 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
4075   case $host in
4076   *-*-mingw*)
4077     # gcc leaves a trailing carriage return which upsets mingw
4078     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4079   *)
4080     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4081   esac
4082   case $ac_prog in
4083     # Accept absolute paths.
4084     [\\/]* | [A-Za-z]:[\\/]*)
4085       re_direlt='/[^/][^/]*/\.\./'
4086       # Canonicalize the path of ld
4087       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4088       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4089         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4090       done
4091       test -z "$LD" && LD="$ac_prog"
4092       ;;
4093   "")
4094     # If it fails, then pretend we aren't using GCC.
4095     ac_prog=ld
4096     ;;
4097   *)
4098     # If it is relative, then search for the first ld in PATH.
4099     with_gnu_ld=unknown
4100     ;;
4101   esac
4102 elif test "$with_gnu_ld" = yes; then
4103   { echo "$as_me:$LINENO: checking for GNU ld" >&5
4104 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4105 else
4106   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4107 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4108 fi
4109 if test "${acl_cv_path_LD+set}" = set; then
4110   echo $ECHO_N "(cached) $ECHO_C" >&6
4111 else
4112   if test -z "$LD"; then
4113   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4114   for ac_dir in $PATH; do
4115     test -z "$ac_dir" && ac_dir=.
4116     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4117       acl_cv_path_LD="$ac_dir/$ac_prog"
4118       # Check to see if the program is GNU ld.  I'd rather use --version,
4119       # but apparently some GNU ld's only accept -v.
4120       # Break only if it was the GNU/non-GNU ld that we prefer.
4121       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
4122       *GNU* | *'with BFD'*)
4123         test "$with_gnu_ld" != no && break ;;
4124       *)
4125         test "$with_gnu_ld" != yes && break ;;
4126       esac
4127     fi
4128   done
4129   IFS="$ac_save_ifs"
4130 else
4131   acl_cv_path_LD="$LD" # Let the user override the test with a path.
4132 fi
4133 fi
4134
4135 LD="$acl_cv_path_LD"
4136 if test -n "$LD"; then
4137   { echo "$as_me:$LINENO: result: $LD" >&5
4138 echo "${ECHO_T}$LD" >&6; }
4139 else
4140   { echo "$as_me:$LINENO: result: no" >&5
4141 echo "${ECHO_T}no" >&6; }
4142 fi
4143 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4144 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4145    { (exit 1); exit 1; }; }
4146 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4147 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4148 if test "${acl_cv_prog_gnu_ld+set}" = set; then
4149   echo $ECHO_N "(cached) $ECHO_C" >&6
4150 else
4151   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4152 case `$LD -v 2>&1 </dev/null` in
4153 *GNU* | *'with BFD'*)
4154   acl_cv_prog_gnu_ld=yes ;;
4155 *)
4156   acl_cv_prog_gnu_ld=no ;;
4157 esac
4158 fi
4159 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
4160 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
4161 with_gnu_ld=$acl_cv_prog_gnu_ld
4162
4163
4164
4165                                                 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
4166 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
4167 if test "${acl_cv_rpath+set}" = set; then
4168   echo $ECHO_N "(cached) $ECHO_C" >&6
4169 else
4170
4171     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
4172     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
4173     . ./conftest.sh
4174     rm -f ./conftest.sh
4175     acl_cv_rpath=done
4176
4177 fi
4178 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
4179 echo "${ECHO_T}$acl_cv_rpath" >&6; }
4180   wl="$acl_cv_wl"
4181   libext="$acl_cv_libext"
4182   shlibext="$acl_cv_shlibext"
4183   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
4184   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
4185   hardcode_direct="$acl_cv_hardcode_direct"
4186   hardcode_minus_L="$acl_cv_hardcode_minus_L"
4187     # Check whether --enable-rpath was given.
4188 if test "${enable_rpath+set}" = set; then
4189   enableval=$enable_rpath; :
4190 else
4191   enable_rpath=yes
4192 fi
4193
4194
4195
4196
4197
4198
4199
4200
4201     use_additional=yes
4202
4203   acl_save_prefix="$prefix"
4204   prefix="$acl_final_prefix"
4205   acl_save_exec_prefix="$exec_prefix"
4206   exec_prefix="$acl_final_exec_prefix"
4207
4208     eval additional_includedir=\"$includedir\"
4209     eval additional_libdir=\"$libdir\"
4210
4211   exec_prefix="$acl_save_exec_prefix"
4212   prefix="$acl_save_prefix"
4213
4214
4215 # Check whether --with-libiconv-prefix was given.
4216 if test "${with_libiconv_prefix+set}" = set; then
4217   withval=$with_libiconv_prefix;
4218     if test "X$withval" = "Xno"; then
4219       use_additional=no
4220     else
4221       if test "X$withval" = "X"; then
4222
4223   acl_save_prefix="$prefix"
4224   prefix="$acl_final_prefix"
4225   acl_save_exec_prefix="$exec_prefix"
4226   exec_prefix="$acl_final_exec_prefix"
4227
4228           eval additional_includedir=\"$includedir\"
4229           eval additional_libdir=\"$libdir\"
4230
4231   exec_prefix="$acl_save_exec_prefix"
4232   prefix="$acl_save_prefix"
4233
4234       else
4235         additional_includedir="$withval/include"
4236         additional_libdir="$withval/lib"
4237       fi
4238     fi
4239
4240 fi
4241
4242       LIBICONV=
4243   LTLIBICONV=
4244   INCICONV=
4245   rpathdirs=
4246   ltrpathdirs=
4247   names_already_handled=
4248   names_next_round='iconv '
4249   while test -n "$names_next_round"; do
4250     names_this_round="$names_next_round"
4251     names_next_round=
4252     for name in $names_this_round; do
4253       already_handled=
4254       for n in $names_already_handled; do
4255         if test "$n" = "$name"; then
4256           already_handled=yes
4257           break
4258         fi
4259       done
4260       if test -z "$already_handled"; then
4261         names_already_handled="$names_already_handled $name"
4262                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
4263         eval value=\"\$HAVE_LIB$uppername\"
4264         if test -n "$value"; then
4265           if test "$value" = yes; then
4266             eval value=\"\$LIB$uppername\"
4267             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
4268             eval value=\"\$LTLIB$uppername\"
4269             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
4270           else
4271                                     :
4272           fi
4273         else
4274                               found_dir=
4275           found_la=
4276           found_so=
4277           found_a=
4278           if test $use_additional = yes; then
4279             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
4280               found_dir="$additional_libdir"
4281               found_so="$additional_libdir/lib$name.$shlibext"
4282               if test -f "$additional_libdir/lib$name.la"; then
4283                 found_la="$additional_libdir/lib$name.la"
4284               fi
4285             else
4286               if test -f "$additional_libdir/lib$name.$libext"; then
4287                 found_dir="$additional_libdir"
4288                 found_a="$additional_libdir/lib$name.$libext"
4289                 if test -f "$additional_libdir/lib$name.la"; then
4290                   found_la="$additional_libdir/lib$name.la"
4291                 fi
4292               fi
4293             fi
4294           fi
4295           if test "X$found_dir" = "X"; then
4296             for x in $LDFLAGS $LTLIBICONV; do
4297
4298   acl_save_prefix="$prefix"
4299   prefix="$acl_final_prefix"
4300   acl_save_exec_prefix="$exec_prefix"
4301   exec_prefix="$acl_final_exec_prefix"
4302   eval x=\"$x\"
4303   exec_prefix="$acl_save_exec_prefix"
4304   prefix="$acl_save_prefix"
4305
4306               case "$x" in
4307                 -L*)
4308                   dir=`echo "X$x" | sed -e 's/^X-L//'`
4309                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
4310                     found_dir="$dir"
4311                     found_so="$dir/lib$name.$shlibext"
4312                     if test -f "$dir/lib$name.la"; then
4313                       found_la="$dir/lib$name.la"
4314                     fi
4315                   else
4316                     if test -f "$dir/lib$name.$libext"; then
4317                       found_dir="$dir"
4318                       found_a="$dir/lib$name.$libext"
4319                       if test -f "$dir/lib$name.la"; then
4320                         found_la="$dir/lib$name.la"
4321                       fi
4322                     fi
4323                   fi
4324                   ;;
4325               esac
4326               if test "X$found_dir" != "X"; then
4327                 break
4328               fi
4329             done
4330           fi
4331           if test "X$found_dir" != "X"; then
4332                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
4333             if test "X$found_so" != "X"; then
4334                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
4335                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4336               else
4337                                                                                 haveit=
4338                 for x in $ltrpathdirs; do
4339                   if test "X$x" = "X$found_dir"; then
4340                     haveit=yes
4341                     break
4342                   fi
4343                 done
4344                 if test -z "$haveit"; then
4345                   ltrpathdirs="$ltrpathdirs $found_dir"
4346                 fi
4347                                 if test "$hardcode_direct" = yes; then
4348                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4349                 else
4350                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
4351                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4352                                                             haveit=
4353                     for x in $rpathdirs; do
4354                       if test "X$x" = "X$found_dir"; then
4355                         haveit=yes
4356                         break
4357                       fi
4358                     done
4359                     if test -z "$haveit"; then
4360                       rpathdirs="$rpathdirs $found_dir"
4361                     fi
4362                   else
4363                                                                                 haveit=
4364                     for x in $LDFLAGS $LIBICONV; do
4365
4366   acl_save_prefix="$prefix"
4367   prefix="$acl_final_prefix"
4368   acl_save_exec_prefix="$exec_prefix"
4369   exec_prefix="$acl_final_exec_prefix"
4370   eval x=\"$x\"
4371   exec_prefix="$acl_save_exec_prefix"
4372   prefix="$acl_save_prefix"
4373
4374                       if test "X$x" = "X-L$found_dir"; then
4375                         haveit=yes
4376                         break
4377                       fi
4378                     done
4379                     if test -z "$haveit"; then
4380                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
4381                     fi
4382                     if test "$hardcode_minus_L" != no; then
4383                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4384                     else
4385                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
4386                     fi
4387                   fi
4388                 fi
4389               fi
4390             else
4391               if test "X$found_a" != "X"; then
4392                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
4393               else
4394                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
4395               fi
4396             fi
4397                         additional_includedir=
4398             case "$found_dir" in
4399               */lib | */lib/)
4400                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
4401                 additional_includedir="$basedir/include"
4402                 ;;
4403             esac
4404             if test "X$additional_includedir" != "X"; then
4405                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
4406                 haveit=
4407                 if test "X$additional_includedir" = "X/usr/local/include"; then
4408                   if test -n "$GCC"; then
4409                     case $host_os in
4410                       linux*) haveit=yes;;
4411                     esac
4412                   fi
4413                 fi
4414                 if test -z "$haveit"; then
4415                   for x in $CPPFLAGS $INCICONV; do
4416
4417   acl_save_prefix="$prefix"
4418   prefix="$acl_final_prefix"
4419   acl_save_exec_prefix="$exec_prefix"
4420   exec_prefix="$acl_final_exec_prefix"
4421   eval x=\"$x\"
4422   exec_prefix="$acl_save_exec_prefix"
4423   prefix="$acl_save_prefix"
4424
4425                     if test "X$x" = "X-I$additional_includedir"; then
4426                       haveit=yes
4427                       break
4428                     fi
4429                   done
4430                   if test -z "$haveit"; then
4431                     if test -d "$additional_includedir"; then
4432                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
4433                     fi
4434                   fi
4435                 fi
4436               fi
4437             fi
4438                         if test -n "$found_la"; then
4439                                                         save_libdir="$libdir"
4440               case "$found_la" in
4441                 */* | *\\*) . "$found_la" ;;
4442                 *) . "./$found_la" ;;
4443               esac
4444               libdir="$save_libdir"
4445                             for dep in $dependency_libs; do
4446                 case "$dep" in
4447                   -L*)
4448                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
4449                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
4450                       haveit=
4451                       if test "X$additional_libdir" = "X/usr/local/lib"; then
4452                         if test -n "$GCC"; then
4453                           case $host_os in
4454                             linux*) haveit=yes;;
4455                           esac
4456                         fi
4457                       fi
4458                       if test -z "$haveit"; then
4459                         haveit=
4460                         for x in $LDFLAGS $LIBICONV; do
4461
4462   acl_save_prefix="$prefix"
4463   prefix="$acl_final_prefix"
4464   acl_save_exec_prefix="$exec_prefix"
4465   exec_prefix="$acl_final_exec_prefix"
4466   eval x=\"$x\"
4467   exec_prefix="$acl_save_exec_prefix"
4468   prefix="$acl_save_prefix"
4469
4470                           if test "X$x" = "X-L$additional_libdir"; then
4471                             haveit=yes
4472                             break
4473                           fi
4474                         done
4475                         if test -z "$haveit"; then
4476                           if test -d "$additional_libdir"; then
4477                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
4478                           fi
4479                         fi
4480                         haveit=
4481                         for x in $LDFLAGS $LTLIBICONV; do
4482
4483   acl_save_prefix="$prefix"
4484   prefix="$acl_final_prefix"
4485   acl_save_exec_prefix="$exec_prefix"
4486   exec_prefix="$acl_final_exec_prefix"
4487   eval x=\"$x\"
4488   exec_prefix="$acl_save_exec_prefix"
4489   prefix="$acl_save_prefix"
4490
4491                           if test "X$x" = "X-L$additional_libdir"; then
4492                             haveit=yes
4493                             break
4494                           fi
4495                         done
4496                         if test -z "$haveit"; then
4497                           if test -d "$additional_libdir"; then
4498                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
4499                           fi
4500                         fi
4501                       fi
4502                     fi
4503                     ;;
4504                   -R*)
4505                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
4506                     if test "$enable_rpath" != no; then
4507                                                                   haveit=
4508                       for x in $rpathdirs; do
4509                         if test "X$x" = "X$dir"; then
4510                           haveit=yes
4511                           break
4512                         fi
4513                       done
4514                       if test -z "$haveit"; then
4515                         rpathdirs="$rpathdirs $dir"
4516                       fi
4517                                                                   haveit=
4518                       for x in $ltrpathdirs; do
4519                         if test "X$x" = "X$dir"; then
4520                           haveit=yes
4521                           break
4522                         fi
4523                       done
4524                       if test -z "$haveit"; then
4525                         ltrpathdirs="$ltrpathdirs $dir"
4526                       fi
4527                     fi
4528                     ;;
4529                   -l*)
4530                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
4531                     ;;
4532                   *.la)
4533                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
4534                     ;;
4535                   *)
4536                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
4537                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
4538                     ;;
4539                 esac
4540               done
4541             fi
4542           else
4543                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
4544             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
4545           fi
4546         fi
4547       fi
4548     done
4549   done
4550   if test "X$rpathdirs" != "X"; then
4551     if test -n "$hardcode_libdir_separator"; then
4552                         alldirs=
4553       for found_dir in $rpathdirs; do
4554         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
4555       done
4556             acl_save_libdir="$libdir"
4557       libdir="$alldirs"
4558       eval flag=\"$hardcode_libdir_flag_spec\"
4559       libdir="$acl_save_libdir"
4560       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
4561     else
4562             for found_dir in $rpathdirs; do
4563         acl_save_libdir="$libdir"
4564         libdir="$found_dir"
4565         eval flag=\"$hardcode_libdir_flag_spec\"
4566         libdir="$acl_save_libdir"
4567         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
4568       done
4569     fi
4570   fi
4571   if test "X$ltrpathdirs" != "X"; then
4572             for found_dir in $ltrpathdirs; do
4573       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
4574     done
4575   fi
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4596 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
4597     # Check whether --enable-nls was given.
4598 if test "${enable_nls+set}" = set; then
4599   enableval=$enable_nls; USE_NLS=$enableval
4600 else
4601   USE_NLS=yes
4602 fi
4603
4604   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
4605 echo "${ECHO_T}$USE_NLS" >&6; }
4606
4607
4608
4609
4610   LIBINTL=
4611   LTLIBINTL=
4612   POSUB=
4613
4614     if test "$USE_NLS" = "yes"; then
4615     gt_use_preinstalled_gnugettext=no
4616
4617
4618
4619
4620
4621
4622         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
4623 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
4624 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
4625   echo $ECHO_N "(cached) $ECHO_C" >&6
4626 else
4627   cat >conftest.$ac_ext <<_ACEOF
4628 /* confdefs.h.  */
4629 _ACEOF
4630 cat confdefs.h >>conftest.$ac_ext
4631 cat >>conftest.$ac_ext <<_ACEOF
4632 /* end confdefs.h.  */
4633 #include <libintl.h>
4634 extern int _nl_msg_cat_cntr;
4635 extern int *_nl_domain_bindings;
4636 int
4637 main ()
4638 {
4639 bindtextdomain ("", "");
4640 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
4641   ;
4642   return 0;
4643 }
4644 _ACEOF
4645 rm -f conftest.$ac_objext conftest$ac_exeext
4646 if { (ac_try="$ac_link"
4647 case "(($ac_try" in
4648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4649   *) ac_try_echo=$ac_try;;
4650 esac
4651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4652   (eval "$ac_link") 2>conftest.er1
4653   ac_status=$?
4654   grep -v '^ *+' conftest.er1 >conftest.err
4655   rm -f conftest.er1
4656   cat conftest.err >&5
4657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4658   (exit $ac_status); } && {
4659          test -z "$ac_c_werror_flag" ||
4660          test ! -s conftest.err
4661        } && test -s conftest$ac_exeext &&
4662        $as_test_x conftest$ac_exeext; then
4663   gt_cv_func_gnugettext1_libc=yes
4664 else
4665   echo "$as_me: failed program was:" >&5
4666 sed 's/^/| /' conftest.$ac_ext >&5
4667
4668         gt_cv_func_gnugettext1_libc=no
4669 fi
4670
4671 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4672       conftest$ac_exeext conftest.$ac_ext
4673 fi
4674 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
4675 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
4676
4677         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
4678
4679
4680
4681
4682
4683           am_save_CPPFLAGS="$CPPFLAGS"
4684
4685   for element in $INCICONV; do
4686     haveit=
4687     for x in $CPPFLAGS; do
4688
4689   acl_save_prefix="$prefix"
4690   prefix="$acl_final_prefix"
4691   acl_save_exec_prefix="$exec_prefix"
4692   exec_prefix="$acl_final_exec_prefix"
4693   eval x=\"$x\"
4694   exec_prefix="$acl_save_exec_prefix"
4695   prefix="$acl_save_prefix"
4696
4697       if test "X$x" = "X$element"; then
4698         haveit=yes
4699         break
4700       fi
4701     done
4702     if test -z "$haveit"; then
4703       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
4704     fi
4705   done
4706
4707
4708   { echo "$as_me:$LINENO: checking for iconv" >&5
4709 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
4710 if test "${am_cv_func_iconv+set}" = set; then
4711   echo $ECHO_N "(cached) $ECHO_C" >&6
4712 else
4713
4714     am_cv_func_iconv="no, consider installing GNU libiconv"
4715     am_cv_lib_iconv=no
4716     cat >conftest.$ac_ext <<_ACEOF
4717 /* confdefs.h.  */
4718 _ACEOF
4719 cat confdefs.h >>conftest.$ac_ext
4720 cat >>conftest.$ac_ext <<_ACEOF
4721 /* end confdefs.h.  */
4722 #include <stdlib.h>
4723 #include <iconv.h>
4724 int
4725 main ()
4726 {
4727 iconv_t cd = iconv_open("","");
4728        iconv(cd,NULL,NULL,NULL,NULL);
4729        iconv_close(cd);
4730   ;
4731   return 0;
4732 }
4733 _ACEOF
4734 rm -f conftest.$ac_objext conftest$ac_exeext
4735 if { (ac_try="$ac_link"
4736 case "(($ac_try" in
4737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4738   *) ac_try_echo=$ac_try;;
4739 esac
4740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4741   (eval "$ac_link") 2>conftest.er1
4742   ac_status=$?
4743   grep -v '^ *+' conftest.er1 >conftest.err
4744   rm -f conftest.er1
4745   cat conftest.err >&5
4746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747   (exit $ac_status); } && {
4748          test -z "$ac_c_werror_flag" ||
4749          test ! -s conftest.err
4750        } && test -s conftest$ac_exeext &&
4751        $as_test_x conftest$ac_exeext; then
4752   am_cv_func_iconv=yes
4753 else
4754   echo "$as_me: failed program was:" >&5
4755 sed 's/^/| /' conftest.$ac_ext >&5
4756
4757
4758 fi
4759
4760 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4761       conftest$ac_exeext conftest.$ac_ext
4762     if test "$am_cv_func_iconv" != yes; then
4763       am_save_LIBS="$LIBS"
4764       LIBS="$LIBS $LIBICONV"
4765       cat >conftest.$ac_ext <<_ACEOF
4766 /* confdefs.h.  */
4767 _ACEOF
4768 cat confdefs.h >>conftest.$ac_ext
4769 cat >>conftest.$ac_ext <<_ACEOF
4770 /* end confdefs.h.  */
4771 #include <stdlib.h>
4772 #include <iconv.h>
4773 int
4774 main ()
4775 {
4776 iconv_t cd = iconv_open("","");
4777          iconv(cd,NULL,NULL,NULL,NULL);
4778          iconv_close(cd);
4779   ;
4780   return 0;
4781 }
4782 _ACEOF
4783 rm -f conftest.$ac_objext conftest$ac_exeext
4784 if { (ac_try="$ac_link"
4785 case "(($ac_try" in
4786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4787   *) ac_try_echo=$ac_try;;
4788 esac
4789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4790   (eval "$ac_link") 2>conftest.er1
4791   ac_status=$?
4792   grep -v '^ *+' conftest.er1 >conftest.err
4793   rm -f conftest.er1
4794   cat conftest.err >&5
4795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4796   (exit $ac_status); } && {
4797          test -z "$ac_c_werror_flag" ||
4798          test ! -s conftest.err
4799        } && test -s conftest$ac_exeext &&
4800        $as_test_x conftest$ac_exeext; then
4801   am_cv_lib_iconv=yes
4802         am_cv_func_iconv=yes
4803 else
4804   echo "$as_me: failed program was:" >&5
4805 sed 's/^/| /' conftest.$ac_ext >&5
4806
4807
4808 fi
4809
4810 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4811       conftest$ac_exeext conftest.$ac_ext
4812       LIBS="$am_save_LIBS"
4813     fi
4814
4815 fi
4816 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
4817 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
4818   if test "$am_cv_func_iconv" = yes; then
4819
4820 cat >>confdefs.h <<\_ACEOF
4821 #define HAVE_ICONV 1
4822 _ACEOF
4823
4824   fi
4825   if test "$am_cv_lib_iconv" = yes; then
4826     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
4827 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
4828     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
4829 echo "${ECHO_T}$LIBICONV" >&6; }
4830   else
4831             CPPFLAGS="$am_save_CPPFLAGS"
4832     LIBICONV=
4833     LTLIBICONV=
4834   fi
4835
4836
4837
4838
4839
4840
4841     use_additional=yes
4842
4843   acl_save_prefix="$prefix"
4844   prefix="$acl_final_prefix"
4845   acl_save_exec_prefix="$exec_prefix"
4846   exec_prefix="$acl_final_exec_prefix"
4847
4848     eval additional_includedir=\"$includedir\"
4849     eval additional_libdir=\"$libdir\"
4850
4851   exec_prefix="$acl_save_exec_prefix"
4852   prefix="$acl_save_prefix"
4853
4854
4855 # Check whether --with-libintl-prefix was given.
4856 if test "${with_libintl_prefix+set}" = set; then
4857   withval=$with_libintl_prefix;
4858     if test "X$withval" = "Xno"; then
4859       use_additional=no
4860     else
4861       if test "X$withval" = "X"; then
4862
4863   acl_save_prefix="$prefix"
4864   prefix="$acl_final_prefix"
4865   acl_save_exec_prefix="$exec_prefix"
4866   exec_prefix="$acl_final_exec_prefix"
4867
4868           eval additional_includedir=\"$includedir\"
4869           eval additional_libdir=\"$libdir\"
4870
4871   exec_prefix="$acl_save_exec_prefix"
4872   prefix="$acl_save_prefix"
4873
4874       else
4875         additional_includedir="$withval/include"
4876         additional_libdir="$withval/lib"
4877       fi
4878     fi
4879
4880 fi
4881
4882       LIBINTL=
4883   LTLIBINTL=
4884   INCINTL=
4885   rpathdirs=
4886   ltrpathdirs=
4887   names_already_handled=
4888   names_next_round='intl '
4889   while test -n "$names_next_round"; do
4890     names_this_round="$names_next_round"
4891     names_next_round=
4892     for name in $names_this_round; do
4893       already_handled=
4894       for n in $names_already_handled; do
4895         if test "$n" = "$name"; then
4896           already_handled=yes
4897           break
4898         fi
4899       done
4900       if test -z "$already_handled"; then
4901         names_already_handled="$names_already_handled $name"
4902                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
4903         eval value=\"\$HAVE_LIB$uppername\"
4904         if test -n "$value"; then
4905           if test "$value" = yes; then
4906             eval value=\"\$LIB$uppername\"
4907             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
4908             eval value=\"\$LTLIB$uppername\"
4909             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
4910           else
4911                                     :
4912           fi
4913         else
4914                               found_dir=
4915           found_la=
4916           found_so=
4917           found_a=
4918           if test $use_additional = yes; then
4919             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
4920               found_dir="$additional_libdir"
4921               found_so="$additional_libdir/lib$name.$shlibext"
4922               if test -f "$additional_libdir/lib$name.la"; then
4923                 found_la="$additional_libdir/lib$name.la"
4924               fi
4925             else
4926               if test -f "$additional_libdir/lib$name.$libext"; then
4927                 found_dir="$additional_libdir"
4928                 found_a="$additional_libdir/lib$name.$libext"
4929                 if test -f "$additional_libdir/lib$name.la"; then
4930                   found_la="$additional_libdir/lib$name.la"
4931                 fi
4932               fi
4933             fi
4934           fi
4935           if test "X$found_dir" = "X"; then
4936             for x in $LDFLAGS $LTLIBINTL; do
4937
4938   acl_save_prefix="$prefix"
4939   prefix="$acl_final_prefix"
4940   acl_save_exec_prefix="$exec_prefix"
4941   exec_prefix="$acl_final_exec_prefix"
4942   eval x=\"$x\"
4943   exec_prefix="$acl_save_exec_prefix"
4944   prefix="$acl_save_prefix"
4945
4946               case "$x" in
4947                 -L*)
4948                   dir=`echo "X$x" | sed -e 's/^X-L//'`
4949                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
4950                     found_dir="$dir"
4951                     found_so="$dir/lib$name.$shlibext"
4952                     if test -f "$dir/lib$name.la"; then
4953                       found_la="$dir/lib$name.la"
4954                     fi
4955                   else
4956                     if test -f "$dir/lib$name.$libext"; then
4957                       found_dir="$dir"
4958                       found_a="$dir/lib$name.$libext"
4959                       if test -f "$dir/lib$name.la"; then
4960                         found_la="$dir/lib$name.la"
4961                       fi
4962                     fi
4963                   fi
4964                   ;;
4965               esac
4966               if test "X$found_dir" != "X"; then
4967                 break
4968               fi
4969             done
4970           fi
4971           if test "X$found_dir" != "X"; then
4972                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
4973             if test "X$found_so" != "X"; then
4974                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
4975                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
4976               else
4977                                                                                 haveit=
4978                 for x in $ltrpathdirs; do
4979                   if test "X$x" = "X$found_dir"; then
4980                     haveit=yes
4981                     break
4982                   fi
4983                 done
4984                 if test -z "$haveit"; then
4985                   ltrpathdirs="$ltrpathdirs $found_dir"
4986                 fi
4987                                 if test "$hardcode_direct" = yes; then
4988                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
4989                 else
4990                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
4991                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
4992                                                             haveit=
4993                     for x in $rpathdirs; do
4994                       if test "X$x" = "X$found_dir"; then
4995                         haveit=yes
4996                         break
4997                       fi
4998                     done
4999                     if test -z "$haveit"; then
5000                       rpathdirs="$rpathdirs $found_dir"
5001                     fi
5002                   else
5003                                                                                 haveit=
5004                     for x in $LDFLAGS $LIBINTL; do
5005
5006   acl_save_prefix="$prefix"
5007   prefix="$acl_final_prefix"
5008   acl_save_exec_prefix="$exec_prefix"
5009   exec_prefix="$acl_final_exec_prefix"
5010   eval x=\"$x\"
5011   exec_prefix="$acl_save_exec_prefix"
5012   prefix="$acl_save_prefix"
5013
5014                       if test "X$x" = "X-L$found_dir"; then
5015                         haveit=yes
5016                         break
5017                       fi
5018                     done
5019                     if test -z "$haveit"; then
5020                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
5021                     fi
5022                     if test "$hardcode_minus_L" != no; then
5023                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5024                     else
5025                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
5026                     fi
5027                   fi
5028                 fi
5029               fi
5030             else
5031               if test "X$found_a" != "X"; then
5032                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
5033               else
5034                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
5035               fi
5036             fi
5037                         additional_includedir=
5038             case "$found_dir" in
5039               */lib | */lib/)
5040                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
5041                 additional_includedir="$basedir/include"
5042                 ;;
5043             esac
5044             if test "X$additional_includedir" != "X"; then
5045                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
5046                 haveit=
5047                 if test "X$additional_includedir" = "X/usr/local/include"; then
5048                   if test -n "$GCC"; then
5049                     case $host_os in
5050                       linux*) haveit=yes;;
5051                     esac
5052                   fi
5053                 fi
5054                 if test -z "$haveit"; then
5055                   for x in $CPPFLAGS $INCINTL; do
5056
5057   acl_save_prefix="$prefix"
5058   prefix="$acl_final_prefix"
5059   acl_save_exec_prefix="$exec_prefix"
5060   exec_prefix="$acl_final_exec_prefix"
5061   eval x=\"$x\"
5062   exec_prefix="$acl_save_exec_prefix"
5063   prefix="$acl_save_prefix"
5064
5065                     if test "X$x" = "X-I$additional_includedir"; then
5066                       haveit=yes
5067                       break
5068                     fi
5069                   done
5070                   if test -z "$haveit"; then
5071                     if test -d "$additional_includedir"; then
5072                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
5073                     fi
5074                   fi
5075                 fi
5076               fi
5077             fi
5078                         if test -n "$found_la"; then
5079                                                         save_libdir="$libdir"
5080               case "$found_la" in
5081                 */* | *\\*) . "$found_la" ;;
5082                 *) . "./$found_la" ;;
5083               esac
5084               libdir="$save_libdir"
5085                             for dep in $dependency_libs; do
5086                 case "$dep" in
5087                   -L*)
5088                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5089                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
5090                       haveit=
5091                       if test "X$additional_libdir" = "X/usr/local/lib"; then
5092                         if test -n "$GCC"; then
5093                           case $host_os in
5094                             linux*) haveit=yes;;
5095                           esac
5096                         fi
5097                       fi
5098                       if test -z "$haveit"; then
5099                         haveit=
5100                         for x in $LDFLAGS $LIBINTL; do
5101
5102   acl_save_prefix="$prefix"
5103   prefix="$acl_final_prefix"
5104   acl_save_exec_prefix="$exec_prefix"
5105   exec_prefix="$acl_final_exec_prefix"
5106   eval x=\"$x\"
5107   exec_prefix="$acl_save_exec_prefix"
5108   prefix="$acl_save_prefix"
5109
5110                           if test "X$x" = "X-L$additional_libdir"; then
5111                             haveit=yes
5112                             break
5113                           fi
5114                         done
5115                         if test -z "$haveit"; then
5116                           if test -d "$additional_libdir"; then
5117                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
5118                           fi
5119                         fi
5120                         haveit=
5121                         for x in $LDFLAGS $LTLIBINTL; do
5122
5123   acl_save_prefix="$prefix"
5124   prefix="$acl_final_prefix"
5125   acl_save_exec_prefix="$exec_prefix"
5126   exec_prefix="$acl_final_exec_prefix"
5127   eval x=\"$x\"
5128   exec_prefix="$acl_save_exec_prefix"
5129   prefix="$acl_save_prefix"
5130
5131                           if test "X$x" = "X-L$additional_libdir"; then
5132                             haveit=yes
5133                             break
5134                           fi
5135                         done
5136                         if test -z "$haveit"; then
5137                           if test -d "$additional_libdir"; then
5138                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
5139                           fi
5140                         fi
5141                       fi
5142                     fi
5143                     ;;
5144                   -R*)
5145                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
5146                     if test "$enable_rpath" != no; then
5147                                                                   haveit=
5148                       for x in $rpathdirs; do
5149                         if test "X$x" = "X$dir"; then
5150                           haveit=yes
5151                           break
5152                         fi
5153                       done
5154                       if test -z "$haveit"; then
5155                         rpathdirs="$rpathdirs $dir"
5156                       fi
5157                                                                   haveit=
5158                       for x in $ltrpathdirs; do
5159                         if test "X$x" = "X$dir"; then
5160                           haveit=yes
5161                           break
5162                         fi
5163                       done
5164                       if test -z "$haveit"; then
5165                         ltrpathdirs="$ltrpathdirs $dir"
5166                       fi
5167                     fi
5168                     ;;
5169                   -l*)
5170                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5171                     ;;
5172                   *.la)
5173                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5174                     ;;
5175                   *)
5176                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
5177                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
5178                     ;;
5179                 esac
5180               done
5181             fi
5182           else
5183                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
5184             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
5185           fi
5186         fi
5187       fi
5188     done
5189   done
5190   if test "X$rpathdirs" != "X"; then
5191     if test -n "$hardcode_libdir_separator"; then
5192                         alldirs=
5193       for found_dir in $rpathdirs; do
5194         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
5195       done
5196             acl_save_libdir="$libdir"
5197       libdir="$alldirs"
5198       eval flag=\"$hardcode_libdir_flag_spec\"
5199       libdir="$acl_save_libdir"
5200       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
5201     else
5202             for found_dir in $rpathdirs; do
5203         acl_save_libdir="$libdir"
5204         libdir="$found_dir"
5205         eval flag=\"$hardcode_libdir_flag_spec\"
5206         libdir="$acl_save_libdir"
5207         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
5208       done
5209     fi
5210   fi
5211   if test "X$ltrpathdirs" != "X"; then
5212             for found_dir in $ltrpathdirs; do
5213       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
5214     done
5215   fi
5216
5217           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
5218 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
5219 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
5220   echo $ECHO_N "(cached) $ECHO_C" >&6
5221 else
5222   gt_save_CPPFLAGS="$CPPFLAGS"
5223             CPPFLAGS="$CPPFLAGS $INCINTL"
5224             gt_save_LIBS="$LIBS"
5225             LIBS="$LIBS $LIBINTL"
5226                         cat >conftest.$ac_ext <<_ACEOF
5227 /* confdefs.h.  */
5228 _ACEOF
5229 cat confdefs.h >>conftest.$ac_ext
5230 cat >>conftest.$ac_ext <<_ACEOF
5231 /* end confdefs.h.  */
5232 #include <libintl.h>
5233 extern int _nl_msg_cat_cntr;
5234 extern
5235 #ifdef __cplusplus
5236 "C"
5237 #endif
5238 const char *_nl_expand_alias ();
5239 int
5240 main ()
5241 {
5242 bindtextdomain ("", "");
5243 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
5244   ;
5245   return 0;
5246 }
5247 _ACEOF
5248 rm -f conftest.$ac_objext conftest$ac_exeext
5249 if { (ac_try="$ac_link"
5250 case "(($ac_try" in
5251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5252   *) ac_try_echo=$ac_try;;
5253 esac
5254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5255   (eval "$ac_link") 2>conftest.er1
5256   ac_status=$?
5257   grep -v '^ *+' conftest.er1 >conftest.err
5258   rm -f conftest.er1
5259   cat conftest.err >&5
5260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5261   (exit $ac_status); } && {
5262          test -z "$ac_c_werror_flag" ||
5263          test ! -s conftest.err
5264        } && test -s conftest$ac_exeext &&
5265        $as_test_x conftest$ac_exeext; then
5266   gt_cv_func_gnugettext1_libintl=yes
5267 else
5268   echo "$as_me: failed program was:" >&5
5269 sed 's/^/| /' conftest.$ac_ext >&5
5270
5271         gt_cv_func_gnugettext1_libintl=no
5272 fi
5273
5274 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5275       conftest$ac_exeext conftest.$ac_ext
5276                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
5277               LIBS="$LIBS $LIBICONV"
5278               cat >conftest.$ac_ext <<_ACEOF
5279 /* confdefs.h.  */
5280 _ACEOF
5281 cat confdefs.h >>conftest.$ac_ext
5282 cat >>conftest.$ac_ext <<_ACEOF
5283 /* end confdefs.h.  */
5284 #include <libintl.h>
5285 extern int _nl_msg_cat_cntr;
5286 extern
5287 #ifdef __cplusplus
5288 "C"
5289 #endif
5290 const char *_nl_expand_alias ();
5291 int
5292 main ()
5293 {
5294 bindtextdomain ("", "");
5295 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
5296   ;
5297   return 0;
5298 }
5299 _ACEOF
5300 rm -f conftest.$ac_objext conftest$ac_exeext
5301 if { (ac_try="$ac_link"
5302 case "(($ac_try" in
5303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5304   *) ac_try_echo=$ac_try;;
5305 esac
5306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5307   (eval "$ac_link") 2>conftest.er1
5308   ac_status=$?
5309   grep -v '^ *+' conftest.er1 >conftest.err
5310   rm -f conftest.er1
5311   cat conftest.err >&5
5312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5313   (exit $ac_status); } && {
5314          test -z "$ac_c_werror_flag" ||
5315          test ! -s conftest.err
5316        } && test -s conftest$ac_exeext &&
5317        $as_test_x conftest$ac_exeext; then
5318   LIBINTL="$LIBINTL $LIBICONV"
5319                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
5320                 gt_cv_func_gnugettext1_libintl=yes
5321
5322 else
5323   echo "$as_me: failed program was:" >&5
5324 sed 's/^/| /' conftest.$ac_ext >&5
5325
5326
5327 fi
5328
5329 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5330       conftest$ac_exeext conftest.$ac_ext
5331             fi
5332             CPPFLAGS="$gt_save_CPPFLAGS"
5333             LIBS="$gt_save_LIBS"
5334 fi
5335 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
5336 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
5337         fi
5338
5339                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
5340            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
5341                 && test "$PACKAGE" != gettext-runtime \
5342                 && test "$PACKAGE" != gettext-tools; }; then
5343           gt_use_preinstalled_gnugettext=yes
5344         else
5345                     LIBINTL=
5346           LTLIBINTL=
5347           INCINTL=
5348         fi
5349
5350
5351
5352     if test "$gt_use_preinstalled_gnugettext" = "yes" \
5353        || test "$nls_cv_use_gnu_gettext" = "yes"; then
5354
5355 cat >>confdefs.h <<\_ACEOF
5356 #define ENABLE_NLS 1
5357 _ACEOF
5358
5359     else
5360       USE_NLS=no
5361     fi
5362   fi
5363
5364   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
5365 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
5366   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
5367 echo "${ECHO_T}$USE_NLS" >&6; }
5368   if test "$USE_NLS" = "yes"; then
5369     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
5370 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
5371     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
5372       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
5373         gt_source="external libintl"
5374       else
5375         gt_source="libc"
5376       fi
5377     else
5378       gt_source="included intl directory"
5379     fi
5380     { echo "$as_me:$LINENO: result: $gt_source" >&5
5381 echo "${ECHO_T}$gt_source" >&6; }
5382   fi
5383
5384   if test "$USE_NLS" = "yes"; then
5385
5386     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
5387       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
5388         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
5389 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
5390         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
5391 echo "${ECHO_T}$LIBINTL" >&6; }
5392
5393   for element in $INCINTL; do
5394     haveit=
5395     for x in $CPPFLAGS; do
5396
5397   acl_save_prefix="$prefix"
5398   prefix="$acl_final_prefix"
5399   acl_save_exec_prefix="$exec_prefix"
5400   exec_prefix="$acl_final_exec_prefix"
5401   eval x=\"$x\"
5402   exec_prefix="$acl_save_exec_prefix"
5403   prefix="$acl_save_prefix"
5404
5405       if test "X$x" = "X$element"; then
5406         haveit=yes
5407         break
5408       fi
5409     done
5410     if test -z "$haveit"; then
5411       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5412     fi
5413   done
5414
5415       fi
5416
5417
5418 cat >>confdefs.h <<\_ACEOF
5419 #define HAVE_GETTEXT 1
5420 _ACEOF
5421
5422
5423 cat >>confdefs.h <<\_ACEOF
5424 #define HAVE_DCGETTEXT 1
5425 _ACEOF
5426
5427     fi
5428
5429         POSUB=po
5430   fi
5431
5432
5433
5434     INTLLIBS="$LIBINTL"
5435
5436
5437
5438
5439
5440
5441 fi
5442
5443 NLSTARGET=""
5444 if test x"$USE_NLS" = xyes; then
5445   NLSTARGET="po"
5446 fi
5447
5448
5449
5450
5451 { echo "$as_me:$LINENO: checking if color escape sequence for kterm/pxvt is enabled" >&5
5452 echo $ECHO_N "checking if color escape sequence for kterm/pxvt is enabled... $ECHO_C" >&6; }
5453 # Check whether --enable-color was given.
5454 if test "${enable_color+set}" = set; then
5455   enableval=$enable_color;
5456 else
5457   enable_color="yes"
5458 fi
5459
5460 test x"$enable_color" = xyes && cat >>confdefs.h <<\_ACEOF
5461 #define USE_COLOR 1
5462 _ACEOF
5463
5464 { echo "$as_me:$LINENO: result: $enable_color" >&5
5465 echo "${ECHO_T}$enable_color" >&6; }
5466
5467 { echo "$as_me:$LINENO: checking if ansi color escape sequence support is enabled" >&5
5468 echo $ECHO_N "checking if ansi color escape sequence support is enabled... $ECHO_C" >&6; }
5469 # Check whether --enable-ansi_color was given.
5470 if test "${enable_ansi_color+set}" = set; then
5471   enableval=$enable_ansi_color;
5472 else
5473   enable_ansi_color="$enable_color"
5474 fi
5475
5476  test x"$enable_ansi_color" = xyes && cat >>confdefs.h <<\_ACEOF
5477 #define USE_ANSI_COLOR 1
5478 _ACEOF
5479
5480  { echo "$as_me:$LINENO: result: $enable_ansi_color" >&5
5481 echo "${ECHO_T}$enable_ansi_color" >&6; }
5482
5483 { echo "$as_me:$LINENO: checking if background color support is enabled" >&5
5484 echo $ECHO_N "checking if background color support is enabled... $ECHO_C" >&6; }
5485 # Check whether --enable-bgcolor was given.
5486 if test "${enable_bgcolor+set}" = set; then
5487   enableval=$enable_bgcolor;
5488 else
5489   enable_bgcolor="$enable_color"
5490 fi
5491
5492  test x"$enable_bgcolor" = xyes && cat >>confdefs.h <<\_ACEOF
5493 #define USE_BG_COLOR 1
5494 _ACEOF
5495
5496 { echo "$as_me:$LINENO: result: $enable_bgcolor" >&5
5497 echo "${ECHO_T}$enable_bgcolor" >&6; }
5498
5499
5500
5501
5502
5503
5504  INSTALL_W3MIMGDISPLAY='${INSTALL_PROGRAM}'
5505  cat >>confdefs.h <<\_ACEOF
5506 #define INSTALL_W3MIMGDISPLAY $INSTALL_W3MIMGDISPLAY
5507 _ACEOF
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519  { echo "$as_me:$LINENO: checking if image is enabled" >&5
5520 echo $ECHO_N "checking if image is enabled... $ECHO_C" >&6; }
5521  # Check whether --enable-image was given.
5522 if test "${enable_image+set}" = set; then
5523   enableval=$enable_image;
5524 else
5525   enable_image="yes"
5526 fi
5527
5528  { echo "$as_me:$LINENO: result: $enable_image" >&5
5529 echo "${ECHO_T}$enable_image" >&6; }
5530  if test x"$enable_image" != xno; then
5531   IMGOBJS=w3mimg.o
5532   if test x"$enable_image" = xyes; then
5533     enable_image=x11
5534     case "`uname -s`" in
5535     Linux|linux|LINUX)
5536         if test -c /dev/fb0; then
5537           enable_image=x11,fb
5538         fi;;
5539     esac
5540   fi
5541   save_ifs="$IFS"; IFS=",";
5542   for img in $enable_image; do
5543     case $img in
5544       x11) x11=yes;;
5545       fb)  fb=yes;;
5546       fb+s) fb=yes
5547            cat >>confdefs.h <<\_ACEOF
5548 #define W3MIMGDISPLAY_SETUID 1
5549 _ACEOF
5550
5551            INSTALL_W3MIMGDISPLAY='${INSTALL} -o root -m 4755 -s'
5552            cat >>confdefs.h <<\_ACEOF
5553 #define INSTALL_W3MIMGDISPLAY $INSTALL_W3MIMGDISPLAY
5554 _ACEOF
5555 ;;
5556     esac
5557   done
5558   IFS="$save_ifs"
5559   enable_image=yes
5560   cat >>confdefs.h <<\_ACEOF
5561 #define USE_IMAGE 1
5562 _ACEOF
5563
5564   { echo "$as_me:$LINENO: checking image library" >&5
5565 echo $ECHO_N "checking image library... $ECHO_C" >&6; }
5566
5567 # Check whether --with-imagelib was given.
5568 if test "${with_imagelib+set}" = set; then
5569   withval=$with_imagelib;
5570 else
5571   with_imagelib="yes"
5572 fi
5573
5574   if test x"$with_imagelib" = xyes; then
5575     with_imagelib="gtk2 gdk-pixbuf imlib imlib2"
5576   fi
5577   { echo "$as_me:$LINENO: result: $with_imagelib" >&5
5578 echo "${ECHO_T}$with_imagelib" >&6; }
5579   with_imlib=no
5580   with_imlib2=no
5581   with_gdkpixbuf=no
5582   with_gtk2=no
5583   for imagelib in $with_imagelib
5584   do
5585    case "$imagelib" in
5586    imlib)
5587      with_imlib="yes"
5588      if test x"$IMLIB_CONFIG" = x; then
5589        IMLIB_CONFIG=imlib-config
5590      fi;;
5591    imlib2)
5592      with_imlib2="yes"
5593      if test x"$IMLIB2_CONFIG" = x; then
5594        IMLIB2_CONFIG=imlib2-config
5595      fi;;
5596    gdk-pixbuf)
5597      with_gdkpixbuf="yes"
5598      if test x"$GDKPIXBUF_CONFIG" = x; then
5599        GDKPIXBUF_CONFIG=gdk-pixbuf-config
5600      fi;;
5601    gtk2)
5602      with_gtk2="yes"
5603      if test x"$PKG_CONFIG" = x; then
5604        PKG_CONFIG=pkg-config
5605      else
5606        PKG_CONFIG=:
5607      fi;;
5608    esac
5609   done
5610   IMGTARGETS=""
5611   if test x"$with_gtk2" = xyes; then
5612    version="`$PKG_CONFIG --modversion gdk-pixbuf-2.0 2>/dev/null`"
5613  if test x"$version" != x; then
5614    { echo "$as_me:$LINENO: checking GdkPixbuf version" >&5
5615 echo $ECHO_N "checking GdkPixbuf version... $ECHO_C" >&6; }
5616    { echo "$as_me:$LINENO: result: $version" >&5
5617 echo "${ECHO_T}$version" >&6; }
5618    set -- `echo "$version" | sed 's/[^0-9]/ /g'`
5619    if test "$1" -ne "2" -o "$2" -lt "0" || test "$2" -eq "0" -a "$3" -lt "0"; then
5620      { echo "$as_me:$LINENO: WARNING: GdkPixbuf is too old. Install GdkPixbuf (version >= 2.0.0)" >&5
5621 echo "$as_me: WARNING: GdkPixbuf is too old. Install GdkPixbuf (version >= 2.0.0)" >&2;}
5622      have_gdkpixbuf="no"; have_gtk2="no"
5623    else
5624      have_gdkpixbuf="yes"; have_gtk2="yes"
5625    fi
5626  else
5627    { echo "$as_me:$LINENO: WARNING: GdkPixbuf is not installed.  Install GdkPixbuf (version >= 2.0.0)" >&5
5628 echo "$as_me: WARNING: GdkPixbuf is not installed.  Install GdkPixbuf (version >= 2.0.0)" >&2;}
5629    have_gdkpixbuf="no"; have_gtk2="no"
5630  fi
5631   fi
5632   if test x"$with_gdkpixbuf" = xyes; then
5633    if test x"$have_gdkpixbuf" != xyes; then
5634     version="`$GDKPIXBUF_CONFIG --version 2>/dev/null`"
5635  if test x"$version" != x; then
5636    { echo "$as_me:$LINENO: checking GdkPixbuf version" >&5
5637 echo $ECHO_N "checking GdkPixbuf version... $ECHO_C" >&6; }
5638    { echo "$as_me:$LINENO: result: $version" >&5
5639 echo "${ECHO_T}$version" >&6; }
5640    set -- `echo "$version" | sed 's/[^0-9]/ /g'`
5641    if test "$1" -ne "0" -o "$2" -lt "16" || test "$2" -eq "16" -a "$3" -lt "0"; then
5642      { echo "$as_me:$LINENO: WARNING: GdkPixbuf is too old. Install GdkPixbuf (version >= 0.16.0)" >&5
5643 echo "$as_me: WARNING: GdkPixbuf is too old. Install GdkPixbuf (version >= 0.16.0)" >&2;}
5644      have_gdkpixbuf="no"
5645    else
5646      have_gdkpixbuf="yes"
5647    fi
5648  else
5649    { echo "$as_me:$LINENO: WARNING: GdkPixbuf is not installed.  Install GdkPixbuf (version >= 0.16.0)" >&5
5650 echo "$as_me: WARNING: GdkPixbuf is not installed.  Install GdkPixbuf (version >= 0.16.0)" >&2;}
5651    have_gdkpixbuf="no"
5652  fi
5653    fi
5654   fi
5655   if test x"$with_imlib" = xyes; then
5656    version="`$IMLIB_CONFIG --version 2>/dev/null`"
5657  if test x"$version" != x; then
5658    { echo "$as_me:$LINENO: checking Imlib version" >&5
5659 echo $ECHO_N "checking Imlib version... $ECHO_C" >&6; }
5660    { echo "$as_me:$LINENO: result: $version" >&5
5661 echo "${ECHO_T}$version" >&6; }
5662    set -- `echo "$version" | sed 's/[^0-9]/ /g'`
5663    if test "$1" -ne "1" -o "$2" -lt "9" || test "$2" -eq "9" -a "$3" -lt "8"; then
5664      { echo "$as_me:$LINENO: WARNING: Imlib is too old. Install Imlib (version >= 1.9.8)" >&5
5665 echo "$as_me: WARNING: Imlib is too old. Install Imlib (version >= 1.9.8)" >&2;}
5666      have_imlib="no"
5667    else
5668      have_imlib="yes"
5669    fi
5670  else
5671    { echo "$as_me:$LINENO: WARNING: Imlib is not installed.  Install Imlib (version >= 1.9.8)" >&5
5672 echo "$as_me: WARNING: Imlib is not installed.  Install Imlib (version >= 1.9.8)" >&2;}
5673    have_imlib="no"
5674  fi
5675   fi
5676   if test x"$with_imlib2" = xyes; then
5677    version="`$IMLIB2_CONFIG --version 2>/dev/null`"
5678  if test x"$version" != x; then
5679    { echo "$as_me:$LINENO: checking Imlib2 version" >&5
5680 echo $ECHO_N "checking Imlib2 version... $ECHO_C" >&6; }
5681    { echo "$as_me:$LINENO: result: $version" >&5
5682 echo "${ECHO_T}$version" >&6; }
5683    set -- `echo "$version" | sed 's/[^0-9]/ /g'`
5684    if test "$1" -ne "1" -o "$2" -lt "0" || test "$2" -eq "0" -a "$3" -lt "5"; then
5685      { echo "$as_me:$LINENO: WARNING: Imlib2 is too old. Install Imlib2 (version >= 1.0.5)" >&5
5686 echo "$as_me: WARNING: Imlib2 is too old. Install Imlib2 (version >= 1.0.5)" >&2;}
5687      have_imlib2="no"
5688    else
5689      have_imlib2="yes"
5690    fi
5691  else
5692    { echo "$as_me:$LINENO: WARNING: Imlib2 is not installed.  Install Imlib2 (version >= 1.0.5)" >&5
5693 echo "$as_me: WARNING: Imlib2 is not installed.  Install Imlib2 (version >= 1.0.5)" >&2;}
5694    have_imlib2="no"
5695  fi
5696   fi
5697   if test x"$x11" = xyes; then
5698    if test x"$have_gtk2" = xyes; then
5699      cat >>confdefs.h <<\_ACEOF
5700 #define USE_W3MIMG_X11 1
5701 _ACEOF
5702
5703      IMGOBJS="$IMGOBJS x11/x11_w3mimg.o"
5704      IMGTARGETS="x11"
5705      cat >>confdefs.h <<\_ACEOF
5706 #define USE_GDKPIXBUF 1
5707 _ACEOF
5708
5709      cat >>confdefs.h <<\_ACEOF
5710 #define USE_GTK2 1
5711 _ACEOF
5712
5713      IMGX11CFLAGS="`${PKG_CONFIG} --cflags gdk-pixbuf-2.0 gdk-pixbuf-xlib-2.0 gtk+-2.0`"
5714      IMGX11LDFLAGS="`${PKG_CONFIG} --libs gdk-pixbuf-2.0 gdk-pixbuf-xlib-2.0 gtk+-2.0`"
5715    elif test x"$have_gdkpixbuf" = xyes; then
5716      cat >>confdefs.h <<\_ACEOF
5717 #define USE_W3MIMG_X11 1
5718 _ACEOF
5719
5720      IMGOBJS="$IMGOBJS x11/x11_w3mimg.o"
5721      IMGTARGETS="x11"
5722      cat >>confdefs.h <<\_ACEOF
5723 #define USE_GDKPIXBUF 1
5724 _ACEOF
5725
5726      IMGX11CFLAGS="`${GDKPIXBUF_CONFIG} --cflags`"
5727      IMGX11LDFLAGS="`${GDKPIXBUF_CONFIG} --libs` -lgdk_pixbuf_xlib"
5728    elif test x"$have_imlib" = xyes; then
5729      cat >>confdefs.h <<\_ACEOF
5730 #define USE_W3MIMG_X11 1
5731 _ACEOF
5732
5733      IMGOBJS="$IMGOBJS x11/x11_w3mimg.o"
5734      IMGTARGETS="x11"
5735      cat >>confdefs.h <<\_ACEOF
5736 #define USE_IMLIB 1
5737 _ACEOF
5738
5739      IMGX11CFLAGS="`${IMLIB_CONFIG} --cflags`"
5740      IMGX11LDFLAGS="`${IMLIB_CONFIG} --libs`"
5741      IMGTARGETS="x11"
5742    elif test x"$have_imlib2" = xyes; then
5743      cat >>confdefs.h <<\_ACEOF
5744 #define USE_W3MIMG_X11 1
5745 _ACEOF
5746
5747      IMGOBJS="$IMGOBJS x11/x11_w3mimg.o"
5748      IMGTARGETS="x11"
5749      cat >>confdefs.h <<\_ACEOF
5750 #define USE_IMLIB2 1
5751 _ACEOF
5752
5753      IMGX11CFLAGS="`${IMLIB2_CONFIG} --cflags`"
5754      IMGX11LDFLAGS="`${IMLIB2_CONFIG} --libs`"
5755    else
5756      { echo "$as_me:$LINENO: WARNING: unable to build w3mimgdisplay with X11 support" >&5
5757 echo "$as_me: WARNING: unable to build w3mimgdisplay with X11 support" >&2;}
5758    fi
5759   fi
5760   if test x"$fb" = xyes; then
5761    if test x"$have_gtk2" = xyes; then
5762      cat >>confdefs.h <<\_ACEOF
5763 #define USE_W3MIMG_FB 1
5764 _ACEOF
5765
5766      IMGOBJS="$IMGOBJS fb/fb_w3mimg.o fb/fb.o fb/fb_img.o"
5767      IMGTARGETS="${IMGTARGETS} fb"
5768      cat >>confdefs.h <<\_ACEOF
5769 #define USE_GDKPIXBUF 1
5770 _ACEOF
5771
5772      cat >>confdefs.h <<\_ACEOF
5773 #define USE_GTK2 1
5774 _ACEOF
5775
5776      IMGFBCFLAGS="`${PKG_CONFIG} --cflags gdk-pixbuf-2.0 gtk+-2.0`"
5777      IMGFBLDFLAGS="`${PKG_CONFIG} --libs gdk-pixbuf-2.0 gtk+-2.0`"
5778    elif test x"$have_gdkpixbuf" = xyes; then
5779      cat >>confdefs.h <<\_ACEOF
5780 #define USE_W3MIMG_FB 1
5781 _ACEOF
5782
5783      IMGOBJS="$IMGOBJS fb/fb_w3mimg.o fb/fb.o fb/fb_img.o"
5784      IMGTARGETS="${IMGTARGETS} fb"
5785      cat >>confdefs.h <<\_ACEOF
5786 #define USE_GDKPIXBUF 1
5787 _ACEOF
5788
5789      IMGFBCFLAGS="`${GDKPIXBUF_CONFIG} --cflags`"
5790      IMGFBLDFLAGS="`${GDKPIXBUF_CONFIG} --libs`"
5791    elif test x"$have_imlib2" = xyes; then
5792      cat >>confdefs.h <<\_ACEOF
5793 #define USE_W3MIMG_FB 1
5794 _ACEOF
5795
5796      IMGOBJS="$IMGOBJS fb/fb_w3mimg.o fb/fb.o fb/fb_img.o"
5797      IMGTARGETS="${IMGTARGETS} fb"
5798      cat >>confdefs.h <<\_ACEOF
5799 #define USE_IMLIB2 1
5800 _ACEOF
5801
5802      IMGOBJS="$IMGOBJS fb/fb_w3mimg.o fb/fb.o fb/fb_img.o"
5803      IMGFBCFLAGS="`${IMLIB2_CONFIG} --cflags`"
5804      IMGFBLDFLAGS="`${IMLIB2_CONFIG} --libs`"
5805    else
5806      { echo "$as_me:$LINENO: WARNING: unable to build w3mimgdisplay with FB support" >&5
5807 echo "$as_me: WARNING: unable to build w3mimgdisplay with FB support" >&2;}
5808    fi
5809   fi
5810   cat >>confdefs.h <<\_ACEOF
5811 #define IMGTARGETS "$IMGTARGETS"
5812 _ACEOF
5813
5814   cat >>confdefs.h <<\_ACEOF
5815 #define IMGOBJS "$IMGOBJS"
5816 _ACEOF
5817
5818   cat >>confdefs.h <<\_ACEOF
5819 #define IMGX11CFLAGS "$IMGX11CFLAGS"
5820 _ACEOF
5821
5822   cat >>confdefs.h <<\_ACEOF
5823 #define IMGX11LDFLAGS "$IMGX11LDFLAGS"
5824 _ACEOF
5825
5826   cat >>confdefs.h <<\_ACEOF
5827 #define IMGFBCFLAGS "$IMGFBCFLAGS"
5828 _ACEOF
5829
5830   cat >>confdefs.h <<\_ACEOF
5831 #define IMGFBLDFLAGS "$IMGLDFLAGS"
5832 _ACEOF
5833
5834  fi
5835 if test x"$enable_image" != xno; then
5836  AUXBIN_TARGETS="$AUXBIN_TARGETS w3mimgdisplay\$(EXT)"
5837
5838  { echo "$as_me:$LINENO: checking if xface is enabled" >&5
5839 echo $ECHO_N "checking if xface is enabled... $ECHO_C" >&6; }
5840  # Check whether --enable-xface was given.
5841 if test "${enable_xface+set}" = set; then
5842   enableval=$enable_xface;
5843 else
5844   enable_xface="$enable_image"
5845 fi
5846
5847  test x"$enable_xface" = xyes && cat >>confdefs.h <<\_ACEOF
5848 #define USE_XFACE 1
5849 _ACEOF
5850
5851  { echo "$as_me:$LINENO: result: $enable_xface" >&5
5852 echo "${ECHO_T}$enable_xface" >&6; }
5853  # Extract the first word of "uncompface", so it can be a program name with args.
5854 set dummy uncompface; ac_word=$2
5855 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5857 if test "${ac_cv_prog_uncompface+set}" = set; then
5858   echo $ECHO_N "(cached) $ECHO_C" >&6
5859 else
5860   if test -n "$uncompface"; then
5861   ac_cv_prog_uncompface="$uncompface" # Let the user override the test.
5862 else
5863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5864 for as_dir in $PATH
5865 do
5866   IFS=$as_save_IFS
5867   test -z "$as_dir" && as_dir=.
5868   for ac_exec_ext in '' $ac_executable_extensions; do
5869   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5870     ac_cv_prog_uncompface=""yes""
5871     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5872     break 2
5873   fi
5874 done
5875 done
5876 IFS=$as_save_IFS
5877
5878   test -z "$ac_cv_prog_uncompface" && ac_cv_prog_uncompface=""no""
5879 fi
5880 fi
5881 uncompface=$ac_cv_prog_uncompface
5882 if test -n "$uncompface"; then
5883   { echo "$as_me:$LINENO: result: $uncompface" >&5
5884 echo "${ECHO_T}$uncompface" >&6; }
5885 else
5886   { echo "$as_me:$LINENO: result: no" >&5
5887 echo "${ECHO_T}no" >&6; }
5888 fi
5889
5890
5891  test "$uncompface" = "no" && { echo "$as_me:$LINENO: WARNING: uncompface is not installed." >&5
5892 echo "$as_me: WARNING: uncompface is not installed." >&2;}
5893
5894 fi
5895
5896
5897  { echo "$as_me:$LINENO: checking default keymap" >&5
5898 echo $ECHO_N "checking default keymap... $ECHO_C" >&6; }
5899  # Check whether --enable-keymap was given.
5900 if test "${enable_keymap+set}" = set; then
5901   enableval=$enable_keymap;
5902 else
5903   enable_keymap="w3m"
5904 fi
5905
5906  { echo "$as_me:$LINENO: result: $enable_keymap" >&5
5907 echo "${ECHO_T}$enable_keymap" >&6; }
5908  case x"$enable_keymap" in
5909  xw3m)
5910   KEYMAP_FILE="keybind";;
5911  xlynx)
5912   KEYMAP_FILE="keybind_lynx";;
5913  *)
5914   { { echo "$as_me:$LINENO: error: keymap should be either w3m or lynx." >&5
5915 echo "$as_me: error: keymap should be either w3m or lynx." >&2;}
5916    { (exit 1); exit 1; }; };;
5917  esac
5918
5919  HELP_FILE=w3mhelp-${enable_keymap}_$w3m_lang.html
5920  cat >>confdefs.h <<_ACEOF
5921 #define HELP_FILE "$HELP_FILE"
5922 _ACEOF
5923
5924
5925  cat >>confdefs.h <<_ACEOF
5926 #define KEYBIND $enable_keymap
5927 _ACEOF
5928
5929
5930 { echo "$as_me:$LINENO: checking if popup menu is enabled" >&5
5931 echo $ECHO_N "checking if popup menu is enabled... $ECHO_C" >&6; }
5932 # Check whether --enable-menu was given.
5933 if test "${enable_menu+set}" = set; then
5934   enableval=$enable_menu;
5935 else
5936   enable_menu="yes"
5937 fi
5938
5939  test x"$enable_menu" = xyes && cat >>confdefs.h <<\_ACEOF
5940 #define USE_MENU 1
5941 _ACEOF
5942
5943  { echo "$as_me:$LINENO: result: $enable_menu" >&5
5944 echo "${ECHO_T}$enable_menu" >&6; }
5945
5946 { echo "$as_me:$LINENO: checking if mouse operation enabled" >&5
5947 echo $ECHO_N "checking if mouse operation enabled... $ECHO_C" >&6; }
5948 # Check whether --enable-mouse was given.
5949 if test "${enable_mouse+set}" = set; then
5950   enableval=$enable_mouse;
5951 else
5952   enable_mouse="yes"
5953 fi
5954
5955 test x"$enable_mouse" = xyes && cat >>confdefs.h <<\_ACEOF
5956 #define USE_MOUSE 1
5957 _ACEOF
5958
5959 { echo "$as_me:$LINENO: result: $enable_mouse" >&5
5960 echo "${ECHO_T}$enable_mouse" >&6; }
5961
5962 { echo "$as_me:$LINENO: checking if URL history is enabled" >&5
5963 echo $ECHO_N "checking if URL history is enabled... $ECHO_C" >&6; }
5964 # Check whether --enable-history was given.
5965 if test "${enable_history+set}" = set; then
5966   enableval=$enable_history;
5967 else
5968   enable_history="yes"
5969 fi
5970
5971  test x"$enable_history" = xyes && cat >>confdefs.h <<\_ACEOF
5972 #define USE_HISTORY 1
5973 _ACEOF
5974
5975  { echo "$as_me:$LINENO: result: $enable_history" >&5
5976 echo "${ECHO_T}$enable_history" >&6; }
5977
5978  { echo "$as_me:$LINENO: checking if alarm is enabled" >&5
5979 echo $ECHO_N "checking if alarm is enabled... $ECHO_C" >&6; }
5980  # Check whether --enable-alarm was given.
5981 if test "${enable_alarm+set}" = set; then
5982   enableval=$enable_alarm;
5983 else
5984   enable_alarm="yes"
5985 fi
5986
5987  { echo "$as_me:$LINENO: result: $enable_alarm" >&5
5988 echo "${ECHO_T}$enable_alarm" >&6; }
5989  if test x"$enable_alarm" = xyes; then
5990    cat >conftest.$ac_ext <<_ACEOF
5991 /* confdefs.h.  */
5992 _ACEOF
5993 cat confdefs.h >>conftest.$ac_ext
5994 cat >>conftest.$ac_ext <<_ACEOF
5995 /* end confdefs.h.  */
5996 #include <unistd.h>
5997 #include <signal.h>
5998 int
5999 main ()
6000 {
6001 int sa = SIGALRM;
6002      void (*a) = alarm;
6003   ;
6004   return 0;
6005 }
6006 _ACEOF
6007 rm -f conftest.$ac_objext
6008 if { (ac_try="$ac_compile"
6009 case "(($ac_try" in
6010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6011   *) ac_try_echo=$ac_try;;
6012 esac
6013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6014   (eval "$ac_compile") 2>conftest.er1
6015   ac_status=$?
6016   grep -v '^ *+' conftest.er1 >conftest.err
6017   rm -f conftest.er1
6018   cat conftest.err >&5
6019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6020   (exit $ac_status); } && {
6021          test -z "$ac_c_werror_flag" ||
6022          test ! -s conftest.err
6023        } && test -s conftest.$ac_objext; then
6024   cat >>confdefs.h <<\_ACEOF
6025 #define USE_ALARM 1
6026 _ACEOF
6027
6028 else
6029   echo "$as_me: failed program was:" >&5
6030 sed 's/^/| /' conftest.$ac_ext >&5
6031
6032
6033 fi
6034
6035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6036  fi
6037
6038
6039 { echo "$as_me:$LINENO: checking if cookie is enabled" >&5
6040 echo $ECHO_N "checking if cookie is enabled... $ECHO_C" >&6; }
6041 # Check whether --enable-cookie was given.
6042 if test "${enable_cookie+set}" = set; then
6043   enableval=$enable_cookie;
6044 else
6045   enable_cookie="yes"
6046 fi
6047
6048 test x"$enable_cookie" = xyes && cat >>confdefs.h <<\_ACEOF
6049 #define USE_COOKIE 1
6050 _ACEOF
6051
6052 { echo "$as_me:$LINENO: result: $enable_cookie" >&5
6053 echo "${ECHO_T}$enable_cookie" >&6; }
6054
6055  { echo "$as_me:$LINENO: checking if nntp is enabled" >&5
6056 echo $ECHO_N "checking if nntp is enabled... $ECHO_C" >&6; }
6057  # Check whether --enable-nntp was given.
6058 if test "${enable_nntp+set}" = set; then
6059   enableval=$enable_nntp;
6060 else
6061   enable_nntp="yes"
6062 fi
6063
6064  test x"$enable_nntp" = xyes && cat >>confdefs.h <<\_ACEOF
6065 #define USE_NNTP 1
6066 _ACEOF
6067
6068  { echo "$as_me:$LINENO: result: $enable_nntp" >&5
6069 echo "${ECHO_T}$enable_nntp" >&6; }
6070
6071  { echo "$as_me:$LINENO: checking if gopher is enabled" >&5
6072 echo $ECHO_N "checking if gopher is enabled... $ECHO_C" >&6; }
6073  # Check whether --enable-gopher was given.
6074 if test "${enable_gopher+set}" = set; then
6075   enableval=$enable_gopher;
6076 else
6077   enable_gopher="no"
6078 fi
6079
6080  test x"$enable_gopher" = xyes &&  cat >>confdefs.h <<\_ACEOF
6081 #define USE_GOPHER 1
6082 _ACEOF
6083
6084  { echo "$as_me:$LINENO: result: $enable_gopher" >&5
6085 echo "${ECHO_T}$enable_gopher" >&6; }
6086
6087
6088 { echo "$as_me:$LINENO: checking if dictionary lookup is enabled" >&5
6089 echo $ECHO_N "checking if dictionary lookup is enabled... $ECHO_C" >&6; }
6090 # Check whether --enable-dict was given.
6091 if test "${enable_dict+set}" = set; then
6092   enableval=$enable_dict;
6093 else
6094   enable_dict="yes"
6095 fi
6096
6097  test x"$enable_dict" = xyes && cat >>confdefs.h <<\_ACEOF
6098 #define USE_DICT 1
6099 _ACEOF
6100
6101  { echo "$as_me:$LINENO: result: $enable_dict" >&5
6102 echo "${ECHO_T}$enable_dict" >&6; }
6103
6104  { echo "$as_me:$LINENO: checking if help cgi is enabled" >&5
6105 echo $ECHO_N "checking if help cgi is enabled... $ECHO_C" >&6; }
6106  # Check whether --enable-help_cgi was given.
6107 if test "${enable_help_cgi+set}" = set; then
6108   enableval=$enable_help_cgi;
6109 else
6110   enable_help_cgi="yes"
6111 fi
6112
6113  test x"$enable_help_cgi" = xyes && cat >>confdefs.h <<\_ACEOF
6114 #define USE_HELP_CGI 1
6115 _ACEOF
6116
6117  { echo "$as_me:$LINENO: result: $enable_help_cgi" >&5
6118 echo "${ECHO_T}$enable_help_cgi" >&6; }
6119
6120  { echo "$as_me:$LINENO: checking if external URI loader is enabled" >&5
6121 echo $ECHO_N "checking if external URI loader is enabled... $ECHO_C" >&6; }
6122  # Check whether --enable-external_uri_loader was given.
6123 if test "${enable_external_uri_loader+set}" = set; then
6124   enableval=$enable_external_uri_loader;
6125 else
6126   enable_external_uri_loader="yes"
6127 fi
6128
6129  test x"$enable_external_uri_loader" = xyes && cat >>confdefs.h <<\_ACEOF
6130 #define USE_EXTERNAL_URI_LOADER 1
6131 _ACEOF
6132
6133  { echo "$as_me:$LINENO: result: $enable_external_uri_loader" >&5
6134 echo "${ECHO_T}$enable_external_uri_loader" >&6; }
6135
6136  { echo "$as_me:$LINENO: checking if w3mmail is used" >&5
6137 echo $ECHO_N "checking if w3mmail is used... $ECHO_C" >&6; }
6138  # Check whether --enable-w3mmailer was given.
6139 if test "${enable_w3mmailer+set}" = set; then
6140   enableval=$enable_w3mmailer;
6141 else
6142   enable_w3mmailer="$enable_external_uri_loader"
6143 fi
6144
6145  test x"$enable_external_uri_loader" = xno && enable_w3mmailer=no
6146  test x"$enable_w3mmailer" = xyes && cat >>confdefs.h <<\_ACEOF
6147 #define USE_W3MMAILER 1
6148 _ACEOF
6149
6150  { echo "$as_me:$LINENO: result: $enable_w3mmailer" >&5
6151 echo "${ECHO_T}$enable_w3mmailer" >&6; }
6152
6153
6154  migemo_command="migemo -t egrep /usr/local/share/migemo/migemo-dict"
6155  { echo "$as_me:$LINENO: checking if migemo is supported with" >&5
6156 echo $ECHO_N "checking if migemo is supported with... $ECHO_C" >&6; }
6157
6158 # Check whether --with-migemo was given.
6159 if test "${with_migemo+set}" = set; then
6160   withval=$with_migemo; test x"$with_migemo" = xyes || migemo_command="$with_migemo"
6161 fi
6162
6163  if test "${with_migemo+set}" = set -a "$with_migemo" != "no"; then
6164    cat >>confdefs.h <<\_ACEOF
6165 #define USE_MIGEMO 1
6166 _ACEOF
6167
6168  fi
6169  { echo "$as_me:$LINENO: result: $migemo_command" >&5
6170 echo "${ECHO_T}$migemo_command" >&6; }
6171  cat >>confdefs.h <<_ACEOF
6172 #define DEF_MIGEMO_COMMAND "$migemo_command"
6173 _ACEOF
6174
6175
6176 w3m_editor="/usr/bin/vi"
6177 { echo "$as_me:$LINENO: checking which editor is used by default" >&5
6178 echo $ECHO_N "checking which editor is used by default... $ECHO_C" >&6; }
6179
6180 # Check whether --with-editor was given.
6181 if test "${with_editor+set}" = set; then
6182   withval=$with_editor; w3m_editor="$with_editor"
6183 fi
6184
6185 { echo "$as_me:$LINENO: result: $w3m_editor" >&5
6186 echo "${ECHO_T}$w3m_editor" >&6; }
6187 cat >>confdefs.h <<_ACEOF
6188 #define DEF_EDITOR "$w3m_editor"
6189 _ACEOF
6190
6191
6192 w3m_mailer="/usr/bin/mail"
6193 { echo "$as_me:$LINENO: checking which mailer is used by default" >&5
6194 echo $ECHO_N "checking which mailer is used by default... $ECHO_C" >&6; }
6195
6196 # Check whether --with-mailer was given.
6197 if test "${with_mailer+set}" = set; then
6198   withval=$with_mailer; w3m_mailer="$with_mailer"
6199 fi
6200
6201 { echo "$as_me:$LINENO: result: $w3m_mailer" >&5
6202 echo "${ECHO_T}$w3m_mailer" >&6; }
6203 cat >>confdefs.h <<_ACEOF
6204 #define DEF_MAILER "$w3m_mailer"
6205 _ACEOF
6206
6207
6208 w3m_browser="/usr/bin/mozilla"
6209 { echo "$as_me:$LINENO: checking which external browser is used by default" >&5
6210 echo $ECHO_N "checking which external browser is used by default... $ECHO_C" >&6; }
6211
6212 # Check whether --with-browser was given.
6213 if test "${with_browser+set}" = set; then
6214   withval=$with_browser; w3m_browser="$with_browser"
6215 fi
6216
6217 { echo "$as_me:$LINENO: result: $w3m_browser" >&5
6218 echo "${ECHO_T}$w3m_browser" >&6; }
6219 cat >>confdefs.h <<_ACEOF
6220 #define DEF_EXT_BROWSER "$w3m_browser"
6221 _ACEOF
6222
6223
6224 for lib in bsd BSD 44bsd socket nsl dld dl
6225 do
6226  lib=$lib
6227  { echo "$as_me:$LINENO: checking for -l$lib" >&5
6228 echo $ECHO_N "checking for -l$lib... $ECHO_C" >&6; }
6229  extlib="not found"
6230  for dir in /lib /usr/lib /usr/local/lib /usr/ucblib /usr/ccslib /usr/ccs/lib
6231  do
6232    if test -f $dir/lib$lib.a -o -f $dir/lib$lib.so ; then
6233     LIBS="$LIBS -l$lib"
6234     extlib="found at $dir"
6235     break
6236    fi
6237  done
6238  { echo "$as_me:$LINENO: result: $extlib" >&5
6239 echo "${ECHO_T}$extlib" >&6; }
6240 done
6241
6242 { echo "$as_me:$LINENO: checking if IPv6 support is enabled" >&5
6243 echo $ECHO_N "checking if IPv6 support is enabled... $ECHO_C" >&6; }
6244 # Check whether --enable-ipv6 was given.
6245 if test "${enable_ipv6+set}" = set; then
6246   enableval=$enable_ipv6;
6247 else
6248   enable_ipv6="yes"
6249 fi
6250
6251 { echo "$as_me:$LINENO: result: $enable_ipv6" >&5
6252 echo "${ECHO_T}$enable_ipv6" >&6; }
6253
6254 if test x"$enable_ipv6" = xyes; then
6255  { echo "$as_me:$LINENO: checking if IPv6 API available" >&5
6256 echo $ECHO_N "checking if IPv6 API available... $ECHO_C" >&6; }
6257
6258  { echo "$as_me:$LINENO: checking for getaddrinfo" >&5
6259 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; }
6260 if test "${ac_cv_func_getaddrinfo+set}" = set; then
6261   echo $ECHO_N "(cached) $ECHO_C" >&6
6262 else
6263   cat >conftest.$ac_ext <<_ACEOF
6264 /* confdefs.h.  */
6265 _ACEOF
6266 cat confdefs.h >>conftest.$ac_ext
6267 cat >>conftest.$ac_ext <<_ACEOF
6268 /* end confdefs.h.  */
6269 /* Define getaddrinfo to an innocuous variant, in case <limits.h> declares getaddrinfo.
6270    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6271 #define getaddrinfo innocuous_getaddrinfo
6272
6273 /* System header to define __stub macros and hopefully few prototypes,
6274     which can conflict with char getaddrinfo (); below.
6275     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6276     <limits.h> exists even on freestanding compilers.  */
6277
6278 #ifdef __STDC__
6279 # include <limits.h>
6280 #else
6281 # include <assert.h>
6282 #endif
6283
6284 #undef getaddrinfo
6285
6286 /* Override any GCC internal prototype to avoid an error.
6287    Use char because int might match the return type of a GCC
6288    builtin and then its argument prototype would still apply.  */
6289 #ifdef __cplusplus
6290 extern "C"
6291 #endif
6292 char getaddrinfo ();
6293 /* The GNU C library defines this for functions which it implements
6294     to always fail with ENOSYS.  Some functions are actually named
6295     something starting with __ and the normal name is an alias.  */
6296 #if defined __stub_getaddrinfo || defined __stub___getaddrinfo
6297 choke me
6298 #endif
6299
6300 int
6301 main ()
6302 {
6303 return getaddrinfo ();
6304   ;
6305   return 0;
6306 }
6307 _ACEOF
6308 rm -f conftest.$ac_objext conftest$ac_exeext
6309 if { (ac_try="$ac_link"
6310 case "(($ac_try" in
6311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6312   *) ac_try_echo=$ac_try;;
6313 esac
6314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6315   (eval "$ac_link") 2>conftest.er1
6316   ac_status=$?
6317   grep -v '^ *+' conftest.er1 >conftest.err
6318   rm -f conftest.er1
6319   cat conftest.err >&5
6320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6321   (exit $ac_status); } && {
6322          test -z "$ac_c_werror_flag" ||
6323          test ! -s conftest.err
6324        } && test -s conftest$ac_exeext &&
6325        $as_test_x conftest$ac_exeext; then
6326   ac_cv_func_getaddrinfo=yes
6327 else
6328   echo "$as_me: failed program was:" >&5
6329 sed 's/^/| /' conftest.$ac_ext >&5
6330
6331         ac_cv_func_getaddrinfo=no
6332 fi
6333
6334 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6335       conftest$ac_exeext conftest.$ac_ext
6336 fi
6337 { echo "$as_me:$LINENO: result: $ac_cv_func_getaddrinfo" >&5
6338 echo "${ECHO_T}$ac_cv_func_getaddrinfo" >&6; }
6339 if test $ac_cv_func_getaddrinfo = yes; then
6340   enable_ipv6="yes"
6341 else
6342   enable_ipv6="no"
6343 fi
6344
6345  if test x"$enable_ipv6" = xno; then
6346     { echo "$as_me:$LINENO: checking for libinet6" >&5
6347 echo $ECHO_N "checking for libinet6... $ECHO_C" >&6; }
6348     for dir in /usr/local/v6/lib /usr/local/lib /usr/lib
6349     do
6350         if test -f $dir/libinet6.a; then
6351           if test $dir != "/usr/lib"; then
6352                 W3M_LIBS="$W3M_LIBS -L$dir"
6353           fi
6354           { echo "$as_me:$LINENO: checking for getaddrinfo in -linet6" >&5
6355 echo $ECHO_N "checking for getaddrinfo in -linet6... $ECHO_C" >&6; }
6356 if test "${ac_cv_lib_inet6_getaddrinfo+set}" = set; then
6357   echo $ECHO_N "(cached) $ECHO_C" >&6
6358 else
6359   ac_check_lib_save_LIBS=$LIBS
6360 LIBS="-linet6  $LIBS"
6361 cat >conftest.$ac_ext <<_ACEOF
6362 /* confdefs.h.  */
6363 _ACEOF
6364 cat confdefs.h >>conftest.$ac_ext
6365 cat >>conftest.$ac_ext <<_ACEOF
6366 /* end confdefs.h.  */
6367
6368 /* Override any GCC internal prototype to avoid an error.
6369    Use char because int might match the return type of a GCC
6370    builtin and then its argument prototype would still apply.  */
6371 #ifdef __cplusplus
6372 extern "C"
6373 #endif
6374 char getaddrinfo ();
6375 int
6376 main ()
6377 {
6378 return getaddrinfo ();
6379   ;
6380   return 0;
6381 }
6382 _ACEOF
6383 rm -f conftest.$ac_objext conftest$ac_exeext
6384 if { (ac_try="$ac_link"
6385 case "(($ac_try" in
6386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6387   *) ac_try_echo=$ac_try;;
6388 esac
6389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6390   (eval "$ac_link") 2>conftest.er1
6391   ac_status=$?
6392   grep -v '^ *+' conftest.er1 >conftest.err
6393   rm -f conftest.er1
6394   cat conftest.err >&5
6395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6396   (exit $ac_status); } && {
6397          test -z "$ac_c_werror_flag" ||
6398          test ! -s conftest.err
6399        } && test -s conftest$ac_exeext &&
6400        $as_test_x conftest$ac_exeext; then
6401   ac_cv_lib_inet6_getaddrinfo=yes
6402 else
6403   echo "$as_me: failed program was:" >&5
6404 sed 's/^/| /' conftest.$ac_ext >&5
6405
6406         ac_cv_lib_inet6_getaddrinfo=no
6407 fi
6408
6409 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6410       conftest$ac_exeext conftest.$ac_ext
6411 LIBS=$ac_check_lib_save_LIBS
6412 fi
6413 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet6_getaddrinfo" >&5
6414 echo "${ECHO_T}$ac_cv_lib_inet6_getaddrinfo" >&6; }
6415 if test $ac_cv_lib_inet6_getaddrinfo = yes; then
6416   enable_ipv6="yes"
6417                  use_libinet6="found"; W3M_LIBS="$W3M_LIBS -linet6"; break
6418 else
6419   use_libinet6="not found"
6420 fi
6421
6422         fi
6423     done
6424     { echo "$as_me:$LINENO: result: $use_libinet6" >&5
6425 echo "${ECHO_T}$use_libinet6" >&6; }
6426  fi
6427  if test x"$enable_ipv6" = xyes; then
6428
6429     { echo "$as_me:$LINENO: checking if struct sockaddr_storage has an ss_family member" >&5
6430 echo $ECHO_N "checking if struct sockaddr_storage has an ss_family member... $ECHO_C" >&6; }
6431     cat >conftest.$ac_ext <<_ACEOF
6432 /* confdefs.h.  */
6433 _ACEOF
6434 cat confdefs.h >>conftest.$ac_ext
6435 cat >>conftest.$ac_ext <<_ACEOF
6436 /* end confdefs.h.  */
6437
6438 #include <sys/types.h>
6439 #include <sys/socket.h>
6440
6441 int
6442 main ()
6443 {
6444
6445         struct sockaddr_storage ss;
6446         int i = ss.ss_family;
6447
6448   ;
6449   return 0;
6450 }
6451 _ACEOF
6452 rm -f conftest.$ac_objext
6453 if { (ac_try="$ac_compile"
6454 case "(($ac_try" in
6455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6456   *) ac_try_echo=$ac_try;;
6457 esac
6458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6459   (eval "$ac_compile") 2>conftest.er1
6460   ac_status=$?
6461   grep -v '^ *+' conftest.er1 >conftest.err
6462   rm -f conftest.er1
6463   cat conftest.err >&5
6464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6465   (exit $ac_status); } && {
6466          test -z "$ac_c_werror_flag" ||
6467          test ! -s conftest.err
6468        } && test -s conftest.$ac_objext; then
6469   { echo "$as_me:$LINENO: result: yes" >&5
6470 echo "${ECHO_T}yes" >&6; }
6471 else
6472   echo "$as_me: failed program was:" >&5
6473 sed 's/^/| /' conftest.$ac_ext >&5
6474
6475         cat >conftest.$ac_ext <<_ACEOF
6476 /* confdefs.h.  */
6477 _ACEOF
6478 cat confdefs.h >>conftest.$ac_ext
6479 cat >>conftest.$ac_ext <<_ACEOF
6480 /* end confdefs.h.  */
6481
6482 #include <sys/types.h>
6483 #include <sys/socket.h>
6484
6485 int
6486 main ()
6487 {
6488
6489         struct sockaddr_storage ss;
6490         int i = ss.__ss_family;
6491
6492   ;
6493   return 0;
6494 }
6495 _ACEOF
6496 rm -f conftest.$ac_objext
6497 if { (ac_try="$ac_compile"
6498 case "(($ac_try" in
6499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6500   *) ac_try_echo=$ac_try;;
6501 esac
6502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6503   (eval "$ac_compile") 2>conftest.er1
6504   ac_status=$?
6505   grep -v '^ *+' conftest.er1 >conftest.err
6506   rm -f conftest.er1
6507   cat conftest.err >&5
6508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6509   (exit $ac_status); } && {
6510          test -z "$ac_c_werror_flag" ||
6511          test ! -s conftest.err
6512        } && test -s conftest.$ac_objext; then
6513   { echo "$as_me:$LINENO: result: no" >&5
6514 echo "${ECHO_T}no" >&6; }
6515          cat >>confdefs.h <<\_ACEOF
6516 #define HAVE_OLD_SS_FAMILY 1
6517 _ACEOF
6518
6519 else
6520   echo "$as_me: failed program was:" >&5
6521 sed 's/^/| /' conftest.$ac_ext >&5
6522
6523         { echo "$as_me:$LINENO: result: no" >&5
6524 echo "${ECHO_T}no" >&6; }
6525          { echo "$as_me:$LINENO: WARNING: IPv6 support is disabled" >&5
6526 echo "$as_me: WARNING: IPv6 support is disabled" >&2;}
6527          enable_ipv6="no"
6528 fi
6529
6530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6531
6532 fi
6533
6534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6535  fi
6536  if test x"$enable_ipv6" = xyes; then
6537     cat >>confdefs.h <<\_ACEOF
6538 #define INET6 1
6539 _ACEOF
6540
6541  fi
6542 fi
6543
6544
6545 { echo "$as_me:$LINENO: checking if SSL is suported" >&5
6546 echo $ECHO_N "checking if SSL is suported... $ECHO_C" >&6; }
6547
6548 # Check whether --with-ssl was given.
6549 if test "${with_ssl+set}" = set; then
6550   withval=$with_ssl;
6551 else
6552   with_ssl="yes"
6553 fi
6554
6555 { echo "$as_me:$LINENO: result: $with_ssl" >&5
6556 echo "${ECHO_T}$with_ssl" >&6; }
6557 if test x"$with_ssl" != xno; then
6558
6559   succeeded=no
6560
6561   if test -z "$PKG_CONFIG"; then
6562     # Extract the first word of "pkg-config", so it can be a program name with args.
6563 set dummy pkg-config; ac_word=$2
6564 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6566 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6567   echo $ECHO_N "(cached) $ECHO_C" >&6
6568 else
6569   case $PKG_CONFIG in
6570   [\\/]* | ?:[\\/]*)
6571   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6572   ;;
6573   *)
6574   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6575 for as_dir in $PATH
6576 do
6577   IFS=$as_save_IFS
6578   test -z "$as_dir" && as_dir=.
6579   for ac_exec_ext in '' $ac_executable_extensions; do
6580   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6581     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6582     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6583     break 2
6584   fi
6585 done
6586 done
6587 IFS=$as_save_IFS
6588
6589   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6590   ;;
6591 esac
6592 fi
6593 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6594 if test -n "$PKG_CONFIG"; then
6595   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6596 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6597 else
6598   { echo "$as_me:$LINENO: result: no" >&5
6599 echo "${ECHO_T}no" >&6; }
6600 fi
6601
6602
6603   fi
6604
6605   if test "$PKG_CONFIG" = "no" ; then
6606      echo "*** The pkg-config script could not be found. Make sure it is"
6607      echo "*** in your path, or set the PKG_CONFIG environment variable"
6608      echo "*** to the full path to pkg-config."
6609      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
6610   else
6611      PKG_CONFIG_MIN_VERSION=0.9.0
6612      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6613         { echo "$as_me:$LINENO: checking for openssl" >&5
6614 echo $ECHO_N "checking for openssl... $ECHO_C" >&6; }
6615
6616         if $PKG_CONFIG --exists "openssl" ; then
6617             { echo "$as_me:$LINENO: result: yes" >&5
6618 echo "${ECHO_T}yes" >&6; }
6619             succeeded=yes
6620
6621             { echo "$as_me:$LINENO: checking SSL_CFLAGS" >&5
6622 echo $ECHO_N "checking SSL_CFLAGS... $ECHO_C" >&6; }
6623             SSL_CFLAGS=`$PKG_CONFIG --cflags "openssl"`
6624             { echo "$as_me:$LINENO: result: $SSL_CFLAGS" >&5
6625 echo "${ECHO_T}$SSL_CFLAGS" >&6; }
6626
6627             { echo "$as_me:$LINENO: checking SSL_LIBS" >&5
6628 echo $ECHO_N "checking SSL_LIBS... $ECHO_C" >&6; }
6629             SSL_LIBS=`$PKG_CONFIG --libs "openssl"`
6630             { echo "$as_me:$LINENO: result: $SSL_LIBS" >&5
6631 echo "${ECHO_T}$SSL_LIBS" >&6; }
6632         else
6633             SSL_CFLAGS=""
6634             SSL_LIBS=""
6635             ## If we have a custom action on failure, don't print errors, but
6636             ## do set a variable so people can do so.
6637             SSL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "openssl"`
6638
6639         fi
6640
6641
6642
6643      else
6644         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6645         echo "*** See http://www.freedesktop.org/software/pkgconfig"
6646      fi
6647   fi
6648
6649   if test $succeeded = yes; then
6650      :
6651   else
6652
6653     { echo "$as_me:$LINENO: checking for SSL library/header" >&5
6654 echo $ECHO_N "checking for SSL library/header... $ECHO_C" >&6; }
6655     test x"$with_ssl" = xyes && with_ssl="/usr/openssl /usr/ssl /usr /usr/local/openssl /usr/local/ssl /usr/local"
6656     { echo "$as_me:$LINENO: result: $with_ssl" >&5
6657 echo "${ECHO_T}$with_ssl" >&6; }
6658     for dir in $with_ssl
6659     do
6660        if test -f "$dir/include/openssl/ssl.h"; then
6661           SSL_CFLAGS="$SSL_CFLAGS -I$dir/include/openssl"
6662           if test "$dir" != "/usr"; then
6663              SSL_CFLAGS="$SSL_CFLAGS -I$dir/include"
6664           fi
6665        elif test "$dir" != "/usr" -a -f "$dir/include/ssl.h"; then
6666           SSL_CFLAGS="$SSL_CFLAGS -I$dir/include"
6667        fi
6668        if test "$dir" != "/usr" -a -f "$dir/lib/libssl.a"; then
6669           SSL_LIBS="$SSL_LIBS -L$dir/lib"
6670        fi
6671     done
6672
6673   fi
6674
6675   { echo "$as_me:$LINENO: checking for SSL_new in -lssl" >&5
6676 echo $ECHO_N "checking for SSL_new in -lssl... $ECHO_C" >&6; }
6677 if test "${ac_cv_lib_ssl_SSL_new+set}" = set; then
6678   echo $ECHO_N "(cached) $ECHO_C" >&6
6679 else
6680   ac_check_lib_save_LIBS=$LIBS
6681 LIBS="-lssl $SSL_LIBS -lcrypto $LIBS"
6682 cat >conftest.$ac_ext <<_ACEOF
6683 /* confdefs.h.  */
6684 _ACEOF
6685 cat confdefs.h >>conftest.$ac_ext
6686 cat >>conftest.$ac_ext <<_ACEOF
6687 /* end confdefs.h.  */
6688
6689 /* Override any GCC internal prototype to avoid an error.
6690    Use char because int might match the return type of a GCC
6691    builtin and then its argument prototype would still apply.  */
6692 #ifdef __cplusplus
6693 extern "C"
6694 #endif
6695 char SSL_new ();
6696 int
6697 main ()
6698 {
6699 return SSL_new ();
6700   ;
6701   return 0;
6702 }
6703 _ACEOF
6704 rm -f conftest.$ac_objext conftest$ac_exeext
6705 if { (ac_try="$ac_link"
6706 case "(($ac_try" in
6707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6708   *) ac_try_echo=$ac_try;;
6709 esac
6710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6711   (eval "$ac_link") 2>conftest.er1
6712   ac_status=$?
6713   grep -v '^ *+' conftest.er1 >conftest.err
6714   rm -f conftest.er1
6715   cat conftest.err >&5
6716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6717   (exit $ac_status); } && {
6718          test -z "$ac_c_werror_flag" ||
6719          test ! -s conftest.err
6720        } && test -s conftest$ac_exeext &&
6721        $as_test_x conftest$ac_exeext; then
6722   ac_cv_lib_ssl_SSL_new=yes
6723 else
6724   echo "$as_me: failed program was:" >&5
6725 sed 's/^/| /' conftest.$ac_ext >&5
6726
6727         ac_cv_lib_ssl_SSL_new=no
6728 fi
6729
6730 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6731       conftest$ac_exeext conftest.$ac_ext
6732 LIBS=$ac_check_lib_save_LIBS
6733 fi
6734 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_new" >&5
6735 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_new" >&6; }
6736 if test $ac_cv_lib_ssl_SSL_new = yes; then
6737   w3m_ssl="found"; CFLAGS="$CFLAGS $SSL_CFLAGS" W3M_LIBS="$W3M_LIBS $SSL_LIBS -lssl -lcrypto"
6738 else
6739   w3m_ssl="not found"
6740 fi
6741
6742
6743   if test x"$w3m_ssl" = xfound; then
6744     cat >>confdefs.h <<\_ACEOF
6745 #define USE_SSL 1
6746 _ACEOF
6747
6748     { echo "$as_me:$LINENO: checking if SSL certificate verify is enabled" >&5
6749 echo $ECHO_N "checking if SSL certificate verify is enabled... $ECHO_C" >&6; }
6750     # Check whether --enable-sslverify was given.
6751 if test "${enable_sslverify+set}" = set; then
6752   enableval=$enable_sslverify;
6753 else
6754   enable_sslverify="yes"
6755 fi
6756
6757     test x"$enable_sslverify" = xyes && cat >>confdefs.h <<\_ACEOF
6758 #define USE_SSL_VERIFY 1
6759 _ACEOF
6760
6761     { echo "$as_me:$LINENO: result: $enable_sslverify" >&5
6762 echo "${ECHO_T}$enable_sslverify" >&6; }
6763   fi
6764 fi
6765
6766 { echo "$as_me:$LINENO: checking if digest auth is enabled" >&5
6767 echo $ECHO_N "checking if digest auth is enabled... $ECHO_C" >&6; }
6768 # Check whether --enable-digest_auth was given.
6769 if test "${enable_digest_auth+set}" = set; then
6770   enableval=$enable_digest_auth;
6771 else
6772   enable_digest_auth="yes"
6773 fi
6774
6775 if test x"$enable_digest_auth" = xyes -a x"$w3m_ssl" = xfound; then
6776   cat >>confdefs.h <<\_ACEOF
6777 #define USE_DIGEST_AUTH 1
6778 _ACEOF
6779
6780 else
6781   enable_digest_auth="no"
6782 fi
6783 { echo "$as_me:$LINENO: result: $enable_digest_auth" >&5
6784 echo "${ECHO_T}$enable_digest_auth" >&6; }
6785
6786
6787 { echo "$as_me:$LINENO: checking for sqrt" >&5
6788 echo $ECHO_N "checking for sqrt... $ECHO_C" >&6; }
6789 if test "${ac_cv_func_sqrt+set}" = set; then
6790   echo $ECHO_N "(cached) $ECHO_C" >&6
6791 else
6792   cat >conftest.$ac_ext <<_ACEOF
6793 /* confdefs.h.  */
6794 _ACEOF
6795 cat confdefs.h >>conftest.$ac_ext
6796 cat >>conftest.$ac_ext <<_ACEOF
6797 /* end confdefs.h.  */
6798 /* Define sqrt to an innocuous variant, in case <limits.h> declares sqrt.
6799    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6800 #define sqrt innocuous_sqrt
6801
6802 /* System header to define __stub macros and hopefully few prototypes,
6803     which can conflict with char sqrt (); below.
6804     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6805     <limits.h> exists even on freestanding compilers.  */
6806
6807 #ifdef __STDC__
6808 # include <limits.h>
6809 #else
6810 # include <assert.h>
6811 #endif
6812
6813 #undef sqrt
6814
6815 /* Override any GCC internal prototype to avoid an error.
6816    Use char because int might match the return type of a GCC
6817    builtin and then its argument prototype would still apply.  */
6818 #ifdef __cplusplus
6819 extern "C"
6820 #endif
6821 char sqrt ();
6822 /* The GNU C library defines this for functions which it implements
6823     to always fail with ENOSYS.  Some functions are actually named
6824     something starting with __ and the normal name is an alias.  */
6825 #if defined __stub_sqrt || defined __stub___sqrt
6826 choke me
6827 #endif
6828
6829 int
6830 main ()
6831 {
6832 return sqrt ();
6833   ;
6834   return 0;
6835 }
6836 _ACEOF
6837 rm -f conftest.$ac_objext conftest$ac_exeext
6838 if { (ac_try="$ac_link"
6839 case "(($ac_try" in
6840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6841   *) ac_try_echo=$ac_try;;
6842 esac
6843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6844   (eval "$ac_link") 2>conftest.er1
6845   ac_status=$?
6846   grep -v '^ *+' conftest.er1 >conftest.err
6847   rm -f conftest.er1
6848   cat conftest.err >&5
6849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6850   (exit $ac_status); } && {
6851          test -z "$ac_c_werror_flag" ||
6852          test ! -s conftest.err
6853        } && test -s conftest$ac_exeext &&
6854        $as_test_x conftest$ac_exeext; then
6855   ac_cv_func_sqrt=yes
6856 else
6857   echo "$as_me: failed program was:" >&5
6858 sed 's/^/| /' conftest.$ac_ext >&5
6859
6860         ac_cv_func_sqrt=no
6861 fi
6862
6863 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6864       conftest$ac_exeext conftest.$ac_ext
6865 fi
6866 { echo "$as_me:$LINENO: result: $ac_cv_func_sqrt" >&5
6867 echo "${ECHO_T}$ac_cv_func_sqrt" >&6; }
6868 if test $ac_cv_func_sqrt = yes; then
6869   :
6870 else
6871
6872 { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
6873 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; }
6874 if test "${ac_cv_lib_m_sqrt+set}" = set; then
6875   echo $ECHO_N "(cached) $ECHO_C" >&6
6876 else
6877   ac_check_lib_save_LIBS=$LIBS
6878 LIBS="-lm  $LIBS"
6879 cat >conftest.$ac_ext <<_ACEOF
6880 /* confdefs.h.  */
6881 _ACEOF
6882 cat confdefs.h >>conftest.$ac_ext
6883 cat >>conftest.$ac_ext <<_ACEOF
6884 /* end confdefs.h.  */
6885
6886 /* Override any GCC internal prototype to avoid an error.
6887    Use char because int might match the return type of a GCC
6888    builtin and then its argument prototype would still apply.  */
6889 #ifdef __cplusplus
6890 extern "C"
6891 #endif
6892 char sqrt ();
6893 int
6894 main ()
6895 {
6896 return sqrt ();
6897   ;
6898   return 0;
6899 }
6900 _ACEOF
6901 rm -f conftest.$ac_objext conftest$ac_exeext
6902 if { (ac_try="$ac_link"
6903 case "(($ac_try" in
6904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6905   *) ac_try_echo=$ac_try;;
6906 esac
6907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6908   (eval "$ac_link") 2>conftest.er1
6909   ac_status=$?
6910   grep -v '^ *+' conftest.er1 >conftest.err
6911   rm -f conftest.er1
6912   cat conftest.err >&5
6913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6914   (exit $ac_status); } && {
6915          test -z "$ac_c_werror_flag" ||
6916          test ! -s conftest.err
6917        } && test -s conftest$ac_exeext &&
6918        $as_test_x conftest$ac_exeext; then
6919   ac_cv_lib_m_sqrt=yes
6920 else
6921   echo "$as_me: failed program was:" >&5
6922 sed 's/^/| /' conftest.$ac_ext >&5
6923
6924         ac_cv_lib_m_sqrt=no
6925 fi
6926
6927 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6928       conftest$ac_exeext conftest.$ac_ext
6929 LIBS=$ac_check_lib_save_LIBS
6930 fi
6931 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
6932 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
6933 if test $ac_cv_lib_m_sqrt = yes; then
6934   cat >>confdefs.h <<_ACEOF
6935 #define HAVE_LIBM 1
6936 _ACEOF
6937
6938   LIBS="-lm $LIBS"
6939
6940 fi
6941
6942 fi
6943
6944 if test x"$enable_mouse" = xyes; then
6945
6946  { echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
6947 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6; }
6948 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
6949   echo $ECHO_N "(cached) $ECHO_C" >&6
6950 else
6951   ac_check_lib_save_LIBS=$LIBS
6952 LIBS="-lgpm  $LIBS"
6953 cat >conftest.$ac_ext <<_ACEOF
6954 /* confdefs.h.  */
6955 _ACEOF
6956 cat confdefs.h >>conftest.$ac_ext
6957 cat >>conftest.$ac_ext <<_ACEOF
6958 /* end confdefs.h.  */
6959
6960 /* Override any GCC internal prototype to avoid an error.
6961    Use char because int might match the return type of a GCC
6962    builtin and then its argument prototype would still apply.  */
6963 #ifdef __cplusplus
6964 extern "C"
6965 #endif
6966 char Gpm_Open ();
6967 int
6968 main ()
6969 {
6970 return Gpm_Open ();
6971   ;
6972   return 0;
6973 }
6974 _ACEOF
6975 rm -f conftest.$ac_objext conftest$ac_exeext
6976 if { (ac_try="$ac_link"
6977 case "(($ac_try" in
6978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6979   *) ac_try_echo=$ac_try;;
6980 esac
6981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6982   (eval "$ac_link") 2>conftest.er1
6983   ac_status=$?
6984   grep -v '^ *+' conftest.er1 >conftest.err
6985   rm -f conftest.er1
6986   cat conftest.err >&5
6987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6988   (exit $ac_status); } && {
6989          test -z "$ac_c_werror_flag" ||
6990          test ! -s conftest.err
6991        } && test -s conftest$ac_exeext &&
6992        $as_test_x conftest$ac_exeext; then
6993   ac_cv_lib_gpm_Gpm_Open=yes
6994 else
6995   echo "$as_me: failed program was:" >&5
6996 sed 's/^/| /' conftest.$ac_ext >&5
6997
6998         ac_cv_lib_gpm_Gpm_Open=no
6999 fi
7000
7001 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7002       conftest$ac_exeext conftest.$ac_ext
7003 LIBS=$ac_check_lib_save_LIBS
7004 fi
7005 { echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
7006 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6; }
7007 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
7008   cat >>confdefs.h <<\_ACEOF
7009 #define USE_GPM 1
7010 _ACEOF
7011
7012                 W3M_LIBS="$W3M_LIBS -lgpm"
7013 fi
7014
7015
7016
7017 cat >conftest.$ac_ext <<_ACEOF
7018 /* confdefs.h.  */
7019 _ACEOF
7020 cat confdefs.h >>conftest.$ac_ext
7021 cat >>conftest.$ac_ext <<_ACEOF
7022 /* end confdefs.h.  */
7023 #include <sys/consio.h>
7024    MOUSE_GETINFO
7025 _ACEOF
7026 if { (ac_try="$ac_cpp conftest.$ac_ext"
7027 case "(($ac_try" in
7028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7029   *) ac_try_echo=$ac_try;;
7030 esac
7031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7032   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7033   ac_status=$?
7034   grep -v '^ *+' conftest.er1 >conftest.err
7035   rm -f conftest.er1
7036   cat conftest.err >&5
7037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7038   (exit $ac_status); } >/dev/null && {
7039          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7040          test ! -s conftest.err
7041        }; then
7042   cat >>confdefs.h <<\_ACEOF
7043 #define USE_SYSMOUSE 1
7044 _ACEOF
7045
7046 else
7047   echo "$as_me: failed program was:" >&5
7048 sed 's/^/| /' conftest.$ac_ext >&5
7049
7050   cat >conftest.$ac_ext <<_ACEOF
7051 /* confdefs.h.  */
7052 _ACEOF
7053 cat confdefs.h >>conftest.$ac_ext
7054 cat >>conftest.$ac_ext <<_ACEOF
7055 /* end confdefs.h.  */
7056 #include <machine/console.h>
7057       MOUSE_GETINFO
7058 _ACEOF
7059 if { (ac_try="$ac_cpp conftest.$ac_ext"
7060 case "(($ac_try" in
7061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7062   *) ac_try_echo=$ac_try;;
7063 esac
7064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7065   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7066   ac_status=$?
7067   grep -v '^ *+' conftest.er1 >conftest.err
7068   rm -f conftest.er1
7069   cat conftest.err >&5
7070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7071   (exit $ac_status); } >/dev/null && {
7072          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7073          test ! -s conftest.err
7074        }; then
7075   cat >>confdefs.h <<\_ACEOF
7076 #define USE_SYSMOUSE 1
7077 _ACEOF
7078
7079 else
7080   echo "$as_me: failed program was:" >&5
7081 sed 's/^/| /' conftest.$ac_ext >&5
7082
7083
7084 fi
7085
7086 rm -f conftest.err conftest.$ac_ext
7087 fi
7088
7089 rm -f conftest.err conftest.$ac_ext
7090 fi
7091
7092 { echo "$as_me:$LINENO: checking terminal library" >&5
7093 echo $ECHO_N "checking terminal library... $ECHO_C" >&6; }
7094
7095 # Check whether --with-termlib was given.
7096 if test "${with_termlib+set}" = set; then
7097   withval=$with_termlib;
7098 else
7099   with_termlib="yes"
7100 fi
7101
7102  { echo "$as_me:$LINENO: result: $with_termlib" >&5
7103 echo "${ECHO_T}$with_termlib" >&6; }
7104  test x"$with_termlib" = xyes && with_termlib="terminfo mytinfo termlib termcap ncurses curses"
7105  for lib in $with_termlib; do
7106    as_ac_Lib=`echo "ac_cv_lib_$lib''_tgetent" | $as_tr_sh`
7107 { echo "$as_me:$LINENO: checking for tgetent in -l$lib" >&5
7108 echo $ECHO_N "checking for tgetent in -l$lib... $ECHO_C" >&6; }
7109 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
7110   echo $ECHO_N "(cached) $ECHO_C" >&6
7111 else
7112   ac_check_lib_save_LIBS=$LIBS
7113 LIBS="-l$lib  $LIBS"
7114 cat >conftest.$ac_ext <<_ACEOF
7115 /* confdefs.h.  */
7116 _ACEOF
7117 cat confdefs.h >>conftest.$ac_ext
7118 cat >>conftest.$ac_ext <<_ACEOF
7119 /* end confdefs.h.  */
7120
7121 /* Override any GCC internal prototype to avoid an error.
7122    Use char because int might match the return type of a GCC
7123    builtin and then its argument prototype would still apply.  */
7124 #ifdef __cplusplus
7125 extern "C"
7126 #endif
7127 char tgetent ();
7128 int
7129 main ()
7130 {
7131 return tgetent ();
7132   ;
7133   return 0;
7134 }
7135 _ACEOF
7136 rm -f conftest.$ac_objext conftest$ac_exeext
7137 if { (ac_try="$ac_link"
7138 case "(($ac_try" in
7139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7140   *) ac_try_echo=$ac_try;;
7141 esac
7142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7143   (eval "$ac_link") 2>conftest.er1
7144   ac_status=$?
7145   grep -v '^ *+' conftest.er1 >conftest.err
7146   rm -f conftest.er1
7147   cat conftest.err >&5
7148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7149   (exit $ac_status); } && {
7150          test -z "$ac_c_werror_flag" ||
7151          test ! -s conftest.err
7152        } && test -s conftest$ac_exeext &&
7153        $as_test_x conftest$ac_exeext; then
7154   eval "$as_ac_Lib=yes"
7155 else
7156   echo "$as_me: failed program was:" >&5
7157 sed 's/^/| /' conftest.$ac_ext >&5
7158
7159         eval "$as_ac_Lib=no"
7160 fi
7161
7162 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7163       conftest$ac_exeext conftest.$ac_ext
7164 LIBS=$ac_check_lib_save_LIBS
7165 fi
7166 ac_res=`eval echo '${'$as_ac_Lib'}'`
7167                { echo "$as_me:$LINENO: result: $ac_res" >&5
7168 echo "${ECHO_T}$ac_res" >&6; }
7169 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
7170   W3M_LIBS="$W3M_LIBS -l$lib"; break
7171 fi
7172
7173  done
7174
7175 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
7176 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
7177 if test "${ac_cv_path_GREP+set}" = set; then
7178   echo $ECHO_N "(cached) $ECHO_C" >&6
7179 else
7180   # Extract the first word of "grep ggrep" to use in msg output
7181 if test -z "$GREP"; then
7182 set dummy grep ggrep; ac_prog_name=$2
7183 if test "${ac_cv_path_GREP+set}" = set; then
7184   echo $ECHO_N "(cached) $ECHO_C" >&6
7185 else
7186   ac_path_GREP_found=false
7187 # Loop through the user's path and test for each of PROGNAME-LIST
7188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7189 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7190 do
7191   IFS=$as_save_IFS
7192   test -z "$as_dir" && as_dir=.
7193   for ac_prog in grep ggrep; do
7194   for ac_exec_ext in '' $ac_executable_extensions; do
7195     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7196     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
7197     # Check for GNU ac_path_GREP and select it if it is found.
7198   # Check for GNU $ac_path_GREP
7199 case `"$ac_path_GREP" --version 2>&1` in
7200 *GNU*)
7201   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7202 *)
7203   ac_count=0
7204   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7205   while :
7206   do
7207     cat "conftest.in" "conftest.in" >"conftest.tmp"
7208     mv "conftest.tmp" "conftest.in"
7209     cp "conftest.in" "conftest.nl"
7210     echo 'GREP' >> "conftest.nl"
7211     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7212     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7213     ac_count=`expr $ac_count + 1`
7214     if test $ac_count -gt ${ac_path_GREP_max-0}; then
7215       # Best one so far, save it but keep looking for a better one
7216       ac_cv_path_GREP="$ac_path_GREP"
7217       ac_path_GREP_max=$ac_count
7218     fi
7219     # 10*(2^10) chars as input seems more than enough
7220     test $ac_count -gt 10 && break
7221   done
7222   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7223 esac
7224
7225
7226     $ac_path_GREP_found && break 3
7227   done
7228 done
7229
7230 done
7231 IFS=$as_save_IFS
7232
7233
7234 fi
7235
7236 GREP="$ac_cv_path_GREP"
7237 if test -z "$GREP"; then
7238   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7239 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7240    { (exit 1); exit 1; }; }
7241 fi
7242
7243 else
7244   ac_cv_path_GREP=$GREP
7245 fi
7246
7247
7248 fi
7249 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
7250 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
7251  GREP="$ac_cv_path_GREP"
7252
7253
7254 { echo "$as_me:$LINENO: checking for egrep" >&5
7255 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
7256 if test "${ac_cv_path_EGREP+set}" = set; then
7257   echo $ECHO_N "(cached) $ECHO_C" >&6
7258 else
7259   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7260    then ac_cv_path_EGREP="$GREP -E"
7261    else
7262      # Extract the first word of "egrep" to use in msg output
7263 if test -z "$EGREP"; then
7264 set dummy egrep; ac_prog_name=$2
7265 if test "${ac_cv_path_EGREP+set}" = set; then
7266   echo $ECHO_N "(cached) $ECHO_C" >&6
7267 else
7268   ac_path_EGREP_found=false
7269 # Loop through the user's path and test for each of PROGNAME-LIST
7270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7271 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7272 do
7273   IFS=$as_save_IFS
7274   test -z "$as_dir" && as_dir=.
7275   for ac_prog in egrep; do
7276   for ac_exec_ext in '' $ac_executable_extensions; do
7277     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7278     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
7279     # Check for GNU ac_path_EGREP and select it if it is found.
7280   # Check for GNU $ac_path_EGREP
7281 case `"$ac_path_EGREP" --version 2>&1` in
7282 *GNU*)
7283   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7284 *)
7285   ac_count=0
7286   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7287   while :
7288   do
7289     cat "conftest.in" "conftest.in" >"conftest.tmp"
7290     mv "conftest.tmp" "conftest.in"
7291     cp "conftest.in" "conftest.nl"
7292     echo 'EGREP' >> "conftest.nl"
7293     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7294     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7295     ac_count=`expr $ac_count + 1`
7296     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7297       # Best one so far, save it but keep looking for a better one
7298       ac_cv_path_EGREP="$ac_path_EGREP"
7299       ac_path_EGREP_max=$ac_count
7300     fi
7301     # 10*(2^10) chars as input seems more than enough
7302     test $ac_count -gt 10 && break
7303   done
7304   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7305 esac
7306
7307
7308     $ac_path_EGREP_found && break 3
7309   done
7310 done
7311
7312 done
7313 IFS=$as_save_IFS
7314
7315
7316 fi
7317
7318 EGREP="$ac_cv_path_EGREP"
7319 if test -z "$EGREP"; then
7320   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7321 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7322    { (exit 1); exit 1; }; }
7323 fi
7324
7325 else
7326   ac_cv_path_EGREP=$EGREP
7327 fi
7328
7329
7330    fi
7331 fi
7332 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
7333 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
7334  EGREP="$ac_cv_path_EGREP"
7335
7336
7337 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7338 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7339 if test "${ac_cv_header_stdc+set}" = set; then
7340   echo $ECHO_N "(cached) $ECHO_C" >&6
7341 else
7342   cat >conftest.$ac_ext <<_ACEOF
7343 /* confdefs.h.  */
7344 _ACEOF
7345 cat confdefs.h >>conftest.$ac_ext
7346 cat >>conftest.$ac_ext <<_ACEOF
7347 /* end confdefs.h.  */
7348 #include <stdlib.h>
7349 #include <stdarg.h>
7350 #include <string.h>
7351 #include <float.h>
7352
7353 int
7354 main ()
7355 {
7356
7357   ;
7358   return 0;
7359 }
7360 _ACEOF
7361 rm -f conftest.$ac_objext
7362 if { (ac_try="$ac_compile"
7363 case "(($ac_try" in
7364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7365   *) ac_try_echo=$ac_try;;
7366 esac
7367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7368   (eval "$ac_compile") 2>conftest.er1
7369   ac_status=$?
7370   grep -v '^ *+' conftest.er1 >conftest.err
7371   rm -f conftest.er1
7372   cat conftest.err >&5
7373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7374   (exit $ac_status); } && {
7375          test -z "$ac_c_werror_flag" ||
7376          test ! -s conftest.err
7377        } && test -s conftest.$ac_objext; then
7378   ac_cv_header_stdc=yes
7379 else
7380   echo "$as_me: failed program was:" >&5
7381 sed 's/^/| /' conftest.$ac_ext >&5
7382
7383         ac_cv_header_stdc=no
7384 fi
7385
7386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7387
7388 if test $ac_cv_header_stdc = yes; then
7389   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7390   cat >conftest.$ac_ext <<_ACEOF
7391 /* confdefs.h.  */
7392 _ACEOF
7393 cat confdefs.h >>conftest.$ac_ext
7394 cat >>conftest.$ac_ext <<_ACEOF
7395 /* end confdefs.h.  */
7396 #include <string.h>
7397
7398 _ACEOF
7399 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7400   $EGREP "memchr" >/dev/null 2>&1; then
7401   :
7402 else
7403   ac_cv_header_stdc=no
7404 fi
7405 rm -f conftest*
7406
7407 fi
7408
7409 if test $ac_cv_header_stdc = yes; then
7410   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7411   cat >conftest.$ac_ext <<_ACEOF
7412 /* confdefs.h.  */
7413 _ACEOF
7414 cat confdefs.h >>conftest.$ac_ext
7415 cat >>conftest.$ac_ext <<_ACEOF
7416 /* end confdefs.h.  */
7417 #include <stdlib.h>
7418
7419 _ACEOF
7420 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7421   $EGREP "free" >/dev/null 2>&1; then
7422   :
7423 else
7424   ac_cv_header_stdc=no
7425 fi
7426 rm -f conftest*
7427
7428 fi
7429
7430 if test $ac_cv_header_stdc = yes; then
7431   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7432   if test "$cross_compiling" = yes; then
7433   :
7434 else
7435   cat >conftest.$ac_ext <<_ACEOF
7436 /* confdefs.h.  */
7437 _ACEOF
7438 cat confdefs.h >>conftest.$ac_ext
7439 cat >>conftest.$ac_ext <<_ACEOF
7440 /* end confdefs.h.  */
7441 #include <ctype.h>
7442 #include <stdlib.h>
7443 #if ((' ' & 0x0FF) == 0x020)
7444 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7445 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7446 #else
7447 # define ISLOWER(c) \
7448                    (('a' <= (c) && (c) <= 'i') \
7449                      || ('j' <= (c) && (c) <= 'r') \
7450                      || ('s' <= (c) && (c) <= 'z'))
7451 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7452 #endif
7453
7454 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7455 int
7456 main ()
7457 {
7458   int i;
7459   for (i = 0; i < 256; i++)
7460     if (XOR (islower (i), ISLOWER (i))
7461         || toupper (i) != TOUPPER (i))
7462       return 2;
7463   return 0;
7464 }
7465 _ACEOF
7466 rm -f conftest$ac_exeext
7467 if { (ac_try="$ac_link"
7468 case "(($ac_try" in
7469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7470   *) ac_try_echo=$ac_try;;
7471 esac
7472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7473   (eval "$ac_link") 2>&5
7474   ac_status=$?
7475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7476   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7477   { (case "(($ac_try" in
7478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7479   *) ac_try_echo=$ac_try;;
7480 esac
7481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7482   (eval "$ac_try") 2>&5
7483   ac_status=$?
7484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7485   (exit $ac_status); }; }; then
7486   :
7487 else
7488   echo "$as_me: program exited with status $ac_status" >&5
7489 echo "$as_me: failed program was:" >&5
7490 sed 's/^/| /' conftest.$ac_ext >&5
7491
7492 ( exit $ac_status )
7493 ac_cv_header_stdc=no
7494 fi
7495 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7496 fi
7497
7498
7499 fi
7500 fi
7501 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7502 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7503 if test $ac_cv_header_stdc = yes; then
7504
7505 cat >>confdefs.h <<\_ACEOF
7506 #define STDC_HEADERS 1
7507 _ACEOF
7508
7509 fi
7510
7511 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7522                   inttypes.h stdint.h unistd.h
7523 do
7524 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7525 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7526 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7527 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7528   echo $ECHO_N "(cached) $ECHO_C" >&6
7529 else
7530   cat >conftest.$ac_ext <<_ACEOF
7531 /* confdefs.h.  */
7532 _ACEOF
7533 cat confdefs.h >>conftest.$ac_ext
7534 cat >>conftest.$ac_ext <<_ACEOF
7535 /* end confdefs.h.  */
7536 $ac_includes_default
7537
7538 #include <$ac_header>
7539 _ACEOF
7540 rm -f conftest.$ac_objext
7541 if { (ac_try="$ac_compile"
7542 case "(($ac_try" in
7543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7544   *) ac_try_echo=$ac_try;;
7545 esac
7546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7547   (eval "$ac_compile") 2>conftest.er1
7548   ac_status=$?
7549   grep -v '^ *+' conftest.er1 >conftest.err
7550   rm -f conftest.er1
7551   cat conftest.err >&5
7552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7553   (exit $ac_status); } && {
7554          test -z "$ac_c_werror_flag" ||
7555          test ! -s conftest.err
7556        } && test -s conftest.$ac_objext; then
7557   eval "$as_ac_Header=yes"
7558 else
7559   echo "$as_me: failed program was:" >&5
7560 sed 's/^/| /' conftest.$ac_ext >&5
7561
7562         eval "$as_ac_Header=no"
7563 fi
7564
7565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7566 fi
7567 ac_res=`eval echo '${'$as_ac_Header'}'`
7568                { echo "$as_me:$LINENO: result: $ac_res" >&5
7569 echo "${ECHO_T}$ac_res" >&6; }
7570 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7571   cat >>confdefs.h <<_ACEOF
7572 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7573 _ACEOF
7574
7575 fi
7576
7577 done
7578
7579
7580 { echo "$as_me:$LINENO: checking GC library exists" >&5
7581 echo $ECHO_N "checking GC library exists... $ECHO_C" >&6; }
7582
7583
7584 # Check whether --with-gc was given.
7585 if test "${with_gc+set}" = set; then
7586   withval=$with_gc; test x"$with_gc" = xno && { { echo "$as_me:$LINENO: error: You can not build w3m without gc" >&5
7587 echo "$as_me: error: You can not build w3m without gc" >&2;}
7588    { (exit 1); exit 1; }; }
7589 else
7590   with_gc="yes"
7591 fi
7592
7593  { echo "$as_me:$LINENO: result: $with_gc" >&5
7594 echo "${ECHO_T}$with_gc" >&6; }
7595  test x"$with_gc" = xyes && with_gc="/usr /usr/local ${HOME}"
7596  unset ac_cv_header_gc_h
7597  if test "${ac_cv_header_gc_h+set}" = set; then
7598   { echo "$as_me:$LINENO: checking for gc.h" >&5
7599 echo $ECHO_N "checking for gc.h... $ECHO_C" >&6; }
7600 if test "${ac_cv_header_gc_h+set}" = set; then
7601   echo $ECHO_N "(cached) $ECHO_C" >&6
7602 fi
7603 { echo "$as_me:$LINENO: result: $ac_cv_header_gc_h" >&5
7604 echo "${ECHO_T}$ac_cv_header_gc_h" >&6; }
7605 else
7606   # Is the header compilable?
7607 { echo "$as_me:$LINENO: checking gc.h usability" >&5
7608 echo $ECHO_N "checking gc.h usability... $ECHO_C" >&6; }
7609 cat >conftest.$ac_ext <<_ACEOF
7610 /* confdefs.h.  */
7611 _ACEOF
7612 cat confdefs.h >>conftest.$ac_ext
7613 cat >>conftest.$ac_ext <<_ACEOF
7614 /* end confdefs.h.  */
7615 $ac_includes_default
7616 #include <gc.h>
7617 _ACEOF
7618 rm -f conftest.$ac_objext
7619 if { (ac_try="$ac_compile"
7620 case "(($ac_try" in
7621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7622   *) ac_try_echo=$ac_try;;
7623 esac
7624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7625   (eval "$ac_compile") 2>conftest.er1
7626   ac_status=$?
7627   grep -v '^ *+' conftest.er1 >conftest.err
7628   rm -f conftest.er1
7629   cat conftest.err >&5
7630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7631   (exit $ac_status); } && {
7632          test -z "$ac_c_werror_flag" ||
7633          test ! -s conftest.err
7634        } && test -s conftest.$ac_objext; then
7635   ac_header_compiler=yes
7636 else
7637   echo "$as_me: failed program was:" >&5
7638 sed 's/^/| /' conftest.$ac_ext >&5
7639
7640         ac_header_compiler=no
7641 fi
7642
7643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7644 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7645 echo "${ECHO_T}$ac_header_compiler" >&6; }
7646
7647 # Is the header present?
7648 { echo "$as_me:$LINENO: checking gc.h presence" >&5
7649 echo $ECHO_N "checking gc.h presence... $ECHO_C" >&6; }
7650 cat >conftest.$ac_ext <<_ACEOF
7651 /* confdefs.h.  */
7652 _ACEOF
7653 cat confdefs.h >>conftest.$ac_ext
7654 cat >>conftest.$ac_ext <<_ACEOF
7655 /* end confdefs.h.  */
7656 #include <gc.h>
7657 _ACEOF
7658 if { (ac_try="$ac_cpp conftest.$ac_ext"
7659 case "(($ac_try" in
7660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7661   *) ac_try_echo=$ac_try;;
7662 esac
7663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7664   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7665   ac_status=$?
7666   grep -v '^ *+' conftest.er1 >conftest.err
7667   rm -f conftest.er1
7668   cat conftest.err >&5
7669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7670   (exit $ac_status); } >/dev/null && {
7671          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7672          test ! -s conftest.err
7673        }; then
7674   ac_header_preproc=yes
7675 else
7676   echo "$as_me: failed program was:" >&5
7677 sed 's/^/| /' conftest.$ac_ext >&5
7678
7679   ac_header_preproc=no
7680 fi
7681
7682 rm -f conftest.err conftest.$ac_ext
7683 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7684 echo "${ECHO_T}$ac_header_preproc" >&6; }
7685
7686 # So?  What about this header?
7687 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7688   yes:no: )
7689     { echo "$as_me:$LINENO: WARNING: gc.h: accepted by the compiler, rejected by the preprocessor!" >&5
7690 echo "$as_me: WARNING: gc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7691     { echo "$as_me:$LINENO: WARNING: gc.h: proceeding with the compiler's result" >&5
7692 echo "$as_me: WARNING: gc.h: proceeding with the compiler's result" >&2;}
7693     ac_header_preproc=yes
7694     ;;
7695   no:yes:* )
7696     { echo "$as_me:$LINENO: WARNING: gc.h: present but cannot be compiled" >&5
7697 echo "$as_me: WARNING: gc.h: present but cannot be compiled" >&2;}
7698     { echo "$as_me:$LINENO: WARNING: gc.h:     check for missing prerequisite headers?" >&5
7699 echo "$as_me: WARNING: gc.h:     check for missing prerequisite headers?" >&2;}
7700     { echo "$as_me:$LINENO: WARNING: gc.h: see the Autoconf documentation" >&5
7701 echo "$as_me: WARNING: gc.h: see the Autoconf documentation" >&2;}
7702     { echo "$as_me:$LINENO: WARNING: gc.h:     section \"Present But Cannot Be Compiled\"" >&5
7703 echo "$as_me: WARNING: gc.h:     section \"Present But Cannot Be Compiled\"" >&2;}
7704     { echo "$as_me:$LINENO: WARNING: gc.h: proceeding with the preprocessor's result" >&5
7705 echo "$as_me: WARNING: gc.h: proceeding with the preprocessor's result" >&2;}
7706     { echo "$as_me:$LINENO: WARNING: gc.h: in the future, the compiler will take precedence" >&5
7707 echo "$as_me: WARNING: gc.h: in the future, the compiler will take precedence" >&2;}
7708     ( cat <<\_ASBOX
7709 ## ----------------------------- ##
7710 ## Report this to satodai@w3m.jp ##
7711 ## ----------------------------- ##
7712 _ASBOX
7713      ) | sed "s/^/$as_me: WARNING:     /" >&2
7714     ;;
7715 esac
7716 { echo "$as_me:$LINENO: checking for gc.h" >&5
7717 echo $ECHO_N "checking for gc.h... $ECHO_C" >&6; }
7718 if test "${ac_cv_header_gc_h+set}" = set; then
7719   echo $ECHO_N "(cached) $ECHO_C" >&6
7720 else
7721   ac_cv_header_gc_h=$ac_header_preproc
7722 fi
7723 { echo "$as_me:$LINENO: result: $ac_cv_header_gc_h" >&5
7724 echo "${ECHO_T}$ac_cv_header_gc_h" >&6; }
7725
7726 fi
7727
7728
7729  if test x"$ac_cv_header_gc_h" = xno; then
7730    { echo "$as_me:$LINENO: checking GC header location" >&5
7731 echo $ECHO_N "checking GC header location... $ECHO_C" >&6; }
7732    { echo "$as_me:$LINENO: result: $with_gc" >&5
7733 echo "${ECHO_T}$with_gc" >&6; }
7734    gcincludedir=no
7735    for dir in $with_gc; do
7736      for inc in include include/gc; do
7737        cppflags="$CPPFLAGS"
7738        CPPFLAGS="$CPPFLAGS -I$dir/$inc"
7739        { echo "$as_me:$LINENO: checking $dir/$inc" >&5
7740 echo $ECHO_N "checking $dir/$inc... $ECHO_C" >&6; }
7741        unset ac_cv_header_gc_h
7742        if test "${ac_cv_header_gc_h+set}" = set; then
7743   { echo "$as_me:$LINENO: checking for gc.h" >&5
7744 echo $ECHO_N "checking for gc.h... $ECHO_C" >&6; }
7745 if test "${ac_cv_header_gc_h+set}" = set; then
7746   echo $ECHO_N "(cached) $ECHO_C" >&6
7747 fi
7748 { echo "$as_me:$LINENO: result: $ac_cv_header_gc_h" >&5
7749 echo "${ECHO_T}$ac_cv_header_gc_h" >&6; }
7750 else
7751   # Is the header compilable?
7752 { echo "$as_me:$LINENO: checking gc.h usability" >&5
7753 echo $ECHO_N "checking gc.h usability... $ECHO_C" >&6; }
7754 cat >conftest.$ac_ext <<_ACEOF
7755 /* confdefs.h.  */
7756 _ACEOF
7757 cat confdefs.h >>conftest.$ac_ext
7758 cat >>conftest.$ac_ext <<_ACEOF
7759 /* end confdefs.h.  */
7760 $ac_includes_default
7761 #include <gc.h>
7762 _ACEOF
7763 rm -f conftest.$ac_objext
7764 if { (ac_try="$ac_compile"
7765 case "(($ac_try" in
7766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7767   *) ac_try_echo=$ac_try;;
7768 esac
7769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7770   (eval "$ac_compile") 2>conftest.er1
7771   ac_status=$?
7772   grep -v '^ *+' conftest.er1 >conftest.err
7773   rm -f conftest.er1
7774   cat conftest.err >&5
7775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7776   (exit $ac_status); } && {
7777          test -z "$ac_c_werror_flag" ||
7778          test ! -s conftest.err
7779        } && test -s conftest.$ac_objext; then
7780   ac_header_compiler=yes
7781 else
7782   echo "$as_me: failed program was:" >&5
7783 sed 's/^/| /' conftest.$ac_ext >&5
7784
7785         ac_header_compiler=no
7786 fi
7787
7788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7789 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7790 echo "${ECHO_T}$ac_header_compiler" >&6; }
7791
7792 # Is the header present?
7793 { echo "$as_me:$LINENO: checking gc.h presence" >&5
7794 echo $ECHO_N "checking gc.h presence... $ECHO_C" >&6; }
7795 cat >conftest.$ac_ext <<_ACEOF
7796 /* confdefs.h.  */
7797 _ACEOF
7798 cat confdefs.h >>conftest.$ac_ext
7799 cat >>conftest.$ac_ext <<_ACEOF
7800 /* end confdefs.h.  */
7801 #include <gc.h>
7802 _ACEOF
7803 if { (ac_try="$ac_cpp conftest.$ac_ext"
7804 case "(($ac_try" in
7805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7806   *) ac_try_echo=$ac_try;;
7807 esac
7808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7809   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7810   ac_status=$?
7811   grep -v '^ *+' conftest.er1 >conftest.err
7812   rm -f conftest.er1
7813   cat conftest.err >&5
7814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7815   (exit $ac_status); } >/dev/null && {
7816          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7817          test ! -s conftest.err
7818        }; then
7819   ac_header_preproc=yes
7820 else
7821   echo "$as_me: failed program was:" >&5
7822 sed 's/^/| /' conftest.$ac_ext >&5
7823
7824   ac_header_preproc=no
7825 fi
7826
7827 rm -f conftest.err conftest.$ac_ext
7828 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7829 echo "${ECHO_T}$ac_header_preproc" >&6; }
7830
7831 # So?  What about this header?
7832 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7833   yes:no: )
7834     { echo "$as_me:$LINENO: WARNING: gc.h: accepted by the compiler, rejected by the preprocessor!" >&5
7835 echo "$as_me: WARNING: gc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7836     { echo "$as_me:$LINENO: WARNING: gc.h: proceeding with the compiler's result" >&5
7837 echo "$as_me: WARNING: gc.h: proceeding with the compiler's result" >&2;}
7838     ac_header_preproc=yes
7839     ;;
7840   no:yes:* )
7841     { echo "$as_me:$LINENO: WARNING: gc.h: present but cannot be compiled" >&5
7842 echo "$as_me: WARNING: gc.h: present but cannot be compiled" >&2;}
7843     { echo "$as_me:$LINENO: WARNING: gc.h:     check for missing prerequisite headers?" >&5
7844 echo "$as_me: WARNING: gc.h:     check for missing prerequisite headers?" >&2;}
7845     { echo "$as_me:$LINENO: WARNING: gc.h: see the Autoconf documentation" >&5
7846 echo "$as_me: WARNING: gc.h: see the Autoconf documentation" >&2;}
7847     { echo "$as_me:$LINENO: WARNING: gc.h:     section \"Present But Cannot Be Compiled\"" >&5
7848 echo "$as_me: WARNING: gc.h:     section \"Present But Cannot Be Compiled\"" >&2;}
7849     { echo "$as_me:$LINENO: WARNING: gc.h: proceeding with the preprocessor's result" >&5
7850 echo "$as_me: WARNING: gc.h: proceeding with the preprocessor's result" >&2;}
7851     { echo "$as_me:$LINENO: WARNING: gc.h: in the future, the compiler will take precedence" >&5
7852 echo "$as_me: WARNING: gc.h: in the future, the compiler will take precedence" >&2;}
7853     ( cat <<\_ASBOX
7854 ## ----------------------------- ##
7855 ## Report this to satodai@w3m.jp ##
7856 ## ----------------------------- ##
7857 _ASBOX
7858      ) | sed "s/^/$as_me: WARNING:     /" >&2
7859     ;;
7860 esac
7861 { echo "$as_me:$LINENO: checking for gc.h" >&5
7862 echo $ECHO_N "checking for gc.h... $ECHO_C" >&6; }
7863 if test "${ac_cv_header_gc_h+set}" = set; then
7864   echo $ECHO_N "(cached) $ECHO_C" >&6
7865 else
7866   ac_cv_header_gc_h=$ac_header_preproc
7867 fi
7868 { echo "$as_me:$LINENO: result: $ac_cv_header_gc_h" >&5
7869 echo "${ECHO_T}$ac_cv_header_gc_h" >&6; }
7870
7871 fi
7872 if test $ac_cv_header_gc_h = yes; then
7873   gcincludedir="$dir/$inc"; CFLAGS="$CFLAGS -I$dir/$inc"; break
7874 fi
7875
7876
7877        CPPFLAGS="$cppflags"
7878      done
7879      if test x"$gcincludedir" != xno; then
7880        break;
7881      fi
7882    done
7883    if test x"$gcincludedir" = xno; then
7884      { { echo "$as_me:$LINENO: error: gc.h not found" >&5
7885 echo "$as_me: error: gc.h not found" >&2;}
7886    { (exit 1); exit 1; }; }
7887    fi
7888  fi
7889  unset ac_cv_lib_gc_GC_init
7890  { echo "$as_me:$LINENO: checking for GC_init in -lgc" >&5
7891 echo $ECHO_N "checking for GC_init in -lgc... $ECHO_C" >&6; }
7892 if test "${ac_cv_lib_gc_GC_init+set}" = set; then
7893   echo $ECHO_N "(cached) $ECHO_C" >&6
7894 else
7895   ac_check_lib_save_LIBS=$LIBS
7896 LIBS="-lgc  $LIBS"
7897 cat >conftest.$ac_ext <<_ACEOF
7898 /* confdefs.h.  */
7899 _ACEOF
7900 cat confdefs.h >>conftest.$ac_ext
7901 cat >>conftest.$ac_ext <<_ACEOF
7902 /* end confdefs.h.  */
7903
7904 /* Override any GCC internal prototype to avoid an error.
7905    Use char because int might match the return type of a GCC
7906    builtin and then its argument prototype would still apply.  */
7907 #ifdef __cplusplus
7908 extern "C"
7909 #endif
7910 char GC_init ();
7911 int
7912 main ()
7913 {
7914 return GC_init ();
7915   ;
7916   return 0;
7917 }
7918 _ACEOF
7919 rm -f conftest.$ac_objext conftest$ac_exeext
7920 if { (ac_try="$ac_link"
7921 case "(($ac_try" in
7922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7923   *) ac_try_echo=$ac_try;;
7924 esac
7925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7926   (eval "$ac_link") 2>conftest.er1
7927   ac_status=$?
7928   grep -v '^ *+' conftest.er1 >conftest.err
7929   rm -f conftest.er1
7930   cat conftest.err >&5
7931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7932   (exit $ac_status); } && {
7933          test -z "$ac_c_werror_flag" ||
7934          test ! -s conftest.err
7935        } && test -s conftest$ac_exeext &&
7936        $as_test_x conftest$ac_exeext; then
7937   ac_cv_lib_gc_GC_init=yes
7938 else
7939   echo "$as_me: failed program was:" >&5
7940 sed 's/^/| /' conftest.$ac_ext >&5
7941
7942         ac_cv_lib_gc_GC_init=no
7943 fi
7944
7945 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7946       conftest$ac_exeext conftest.$ac_ext
7947 LIBS=$ac_check_lib_save_LIBS
7948 fi
7949 { echo "$as_me:$LINENO: result: $ac_cv_lib_gc_GC_init" >&5
7950 echo "${ECHO_T}$ac_cv_lib_gc_GC_init" >&6; }
7951 if test $ac_cv_lib_gc_GC_init = yes; then
7952   LIBGC="-lgc"
7953 fi
7954
7955  if test x"$ac_cv_lib_gc_GC_init" = xno; then
7956     { echo "$as_me:$LINENO: checking GC library location" >&5
7957 echo $ECHO_N "checking GC library location... $ECHO_C" >&6; }
7958     { echo "$as_me:$LINENO: result: $with_gc" >&5
7959 echo "${ECHO_T}$with_gc" >&6; }
7960     gclibdir=no
7961     for dir in $with_gc; do
7962       ldflags="$LDFLAGS"
7963       LDFLAGS="$LDFLAGS -L$dir/lib"
7964       { echo "$as_me:$LINENO: checking $dir" >&5
7965 echo $ECHO_N "checking $dir... $ECHO_C" >&6; }
7966       unset ac_cv_lib_gc_GC_init
7967       { echo "$as_me:$LINENO: checking for GC_init in -lgc" >&5
7968 echo $ECHO_N "checking for GC_init in -lgc... $ECHO_C" >&6; }
7969 if test "${ac_cv_lib_gc_GC_init+set}" = set; then
7970   echo $ECHO_N "(cached) $ECHO_C" >&6
7971 else
7972   ac_check_lib_save_LIBS=$LIBS
7973 LIBS="-lgc  $LIBS"
7974 cat >conftest.$ac_ext <<_ACEOF
7975 /* confdefs.h.  */
7976 _ACEOF
7977 cat confdefs.h >>conftest.$ac_ext
7978 cat >>conftest.$ac_ext <<_ACEOF
7979 /* end confdefs.h.  */
7980
7981 /* Override any GCC internal prototype to avoid an error.
7982    Use char because int might match the return type of a GCC
7983    builtin and then its argument prototype would still apply.  */
7984 #ifdef __cplusplus
7985 extern "C"
7986 #endif
7987 char GC_init ();
7988 int
7989 main ()
7990 {
7991 return GC_init ();
7992   ;
7993   return 0;
7994 }
7995 _ACEOF
7996 rm -f conftest.$ac_objext conftest$ac_exeext
7997 if { (ac_try="$ac_link"
7998 case "(($ac_try" in
7999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8000   *) ac_try_echo=$ac_try;;
8001 esac
8002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8003   (eval "$ac_link") 2>conftest.er1
8004   ac_status=$?
8005   grep -v '^ *+' conftest.er1 >conftest.err
8006   rm -f conftest.er1
8007   cat conftest.err >&5
8008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8009   (exit $ac_status); } && {
8010          test -z "$ac_c_werror_flag" ||
8011          test ! -s conftest.err
8012        } && test -s conftest$ac_exeext &&
8013        $as_test_x conftest$ac_exeext; then
8014   ac_cv_lib_gc_GC_init=yes
8015 else
8016   echo "$as_me: failed program was:" >&5
8017 sed 's/^/| /' conftest.$ac_ext >&5
8018
8019         ac_cv_lib_gc_GC_init=no
8020 fi
8021
8022 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8023       conftest$ac_exeext conftest.$ac_ext
8024 LIBS=$ac_check_lib_save_LIBS
8025 fi
8026 { echo "$as_me:$LINENO: result: $ac_cv_lib_gc_GC_init" >&5
8027 echo "${ECHO_T}$ac_cv_lib_gc_GC_init" >&6; }
8028 if test $ac_cv_lib_gc_GC_init = yes; then
8029   gclibdir="$dir/lib"; LIBGC="-L$dir/lib -lgc"; break
8030 fi
8031
8032       LDFLAGS="$ldflags"
8033     done
8034     if test x"$gclibdir" = xno; then
8035       { { echo "$as_me:$LINENO: error: libgc not found" >&5
8036 echo "$as_me: error: libgc not found" >&2;}
8037    { (exit 1); exit 1; }; }
8038     fi
8039  fi
8040 { echo "$as_me:$LINENO: checking for zError in -lz" >&5
8041 echo $ECHO_N "checking for zError in -lz... $ECHO_C" >&6; }
8042 if test "${ac_cv_lib_z_zError+set}" = set; then
8043   echo $ECHO_N "(cached) $ECHO_C" >&6
8044 else
8045   ac_check_lib_save_LIBS=$LIBS
8046 LIBS="-lz  $LIBS"
8047 cat >conftest.$ac_ext <<_ACEOF
8048 /* confdefs.h.  */
8049 _ACEOF
8050 cat confdefs.h >>conftest.$ac_ext
8051 cat >>conftest.$ac_ext <<_ACEOF
8052 /* end confdefs.h.  */
8053
8054 /* Override any GCC internal prototype to avoid an error.
8055    Use char because int might match the return type of a GCC
8056    builtin and then its argument prototype would still apply.  */
8057 #ifdef __cplusplus
8058 extern "C"
8059 #endif
8060 char zError ();
8061 int
8062 main ()
8063 {
8064 return zError ();
8065   ;
8066   return 0;
8067 }
8068 _ACEOF
8069 rm -f conftest.$ac_objext conftest$ac_exeext
8070 if { (ac_try="$ac_link"
8071 case "(($ac_try" in
8072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8073   *) ac_try_echo=$ac_try;;
8074 esac
8075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8076   (eval "$ac_link") 2>conftest.er1
8077   ac_status=$?
8078   grep -v '^ *+' conftest.er1 >conftest.err
8079   rm -f conftest.er1
8080   cat conftest.err >&5
8081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8082   (exit $ac_status); } && {
8083          test -z "$ac_c_werror_flag" ||
8084          test ! -s conftest.err
8085        } && test -s conftest$ac_exeext &&
8086        $as_test_x conftest$ac_exeext; then
8087   ac_cv_lib_z_zError=yes
8088 else
8089   echo "$as_me: failed program was:" >&5
8090 sed 's/^/| /' conftest.$ac_ext >&5
8091
8092         ac_cv_lib_z_zError=no
8093 fi
8094
8095 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8096       conftest$ac_exeext conftest.$ac_ext
8097 LIBS=$ac_check_lib_save_LIBS
8098 fi
8099 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_zError" >&5
8100 echo "${ECHO_T}$ac_cv_lib_z_zError" >&6; }
8101 if test $ac_cv_lib_z_zError = yes; then
8102   AUXBIN_TARGETS="$AUXBIN_TARGETS inflate\$(EXT)"
8103 fi
8104
8105
8106 cat >>confdefs.h <<\_ACEOF
8107 #define AUXBIN_TARGETS "$AUXBIN_TARGETS"
8108 _ACEOF
8109
8110
8111
8112 case "$host_os" in
8113   *cygwin*|*os2-emx*|*mingw*)
8114     cat >>confdefs.h <<\_ACEOF
8115 #define USE_BINMODE_STREAM 1
8116 _ACEOF
8117
8118     ;;
8119 esac
8120
8121
8122
8123
8124
8125
8126 ac_header_dirent=no
8127 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8128   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8129 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8130 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8131 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8132   echo $ECHO_N "(cached) $ECHO_C" >&6
8133 else
8134   cat >conftest.$ac_ext <<_ACEOF
8135 /* confdefs.h.  */
8136 _ACEOF
8137 cat confdefs.h >>conftest.$ac_ext
8138 cat >>conftest.$ac_ext <<_ACEOF
8139 /* end confdefs.h.  */
8140 #include <sys/types.h>
8141 #include <$ac_hdr>
8142
8143 int
8144 main ()
8145 {
8146 if ((DIR *) 0)
8147 return 0;
8148   ;
8149   return 0;
8150 }
8151 _ACEOF
8152 rm -f conftest.$ac_objext
8153 if { (ac_try="$ac_compile"
8154 case "(($ac_try" in
8155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8156   *) ac_try_echo=$ac_try;;
8157 esac
8158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8159   (eval "$ac_compile") 2>conftest.er1
8160   ac_status=$?
8161   grep -v '^ *+' conftest.er1 >conftest.err
8162   rm -f conftest.er1
8163   cat conftest.err >&5
8164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8165   (exit $ac_status); } && {
8166          test -z "$ac_c_werror_flag" ||
8167          test ! -s conftest.err
8168        } && test -s conftest.$ac_objext; then
8169   eval "$as_ac_Header=yes"
8170 else
8171   echo "$as_me: failed program was:" >&5
8172 sed 's/^/| /' conftest.$ac_ext >&5
8173
8174         eval "$as_ac_Header=no"
8175 fi
8176
8177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8178 fi
8179 ac_res=`eval echo '${'$as_ac_Header'}'`
8180                { echo "$as_me:$LINENO: result: $ac_res" >&5
8181 echo "${ECHO_T}$ac_res" >&6; }
8182 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8183   cat >>confdefs.h <<_ACEOF
8184 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8185 _ACEOF
8186
8187 ac_header_dirent=$ac_hdr; break
8188 fi
8189
8190 done
8191 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8192 if test $ac_header_dirent = dirent.h; then
8193   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8194 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8195 if test "${ac_cv_search_opendir+set}" = set; then
8196   echo $ECHO_N "(cached) $ECHO_C" >&6
8197 else
8198   ac_func_search_save_LIBS=$LIBS
8199 cat >conftest.$ac_ext <<_ACEOF
8200 /* confdefs.h.  */
8201 _ACEOF
8202 cat confdefs.h >>conftest.$ac_ext
8203 cat >>conftest.$ac_ext <<_ACEOF
8204 /* end confdefs.h.  */
8205
8206 /* Override any GCC internal prototype to avoid an error.
8207    Use char because int might match the return type of a GCC
8208    builtin and then its argument prototype would still apply.  */
8209 #ifdef __cplusplus
8210 extern "C"
8211 #endif
8212 char opendir ();
8213 int
8214 main ()
8215 {
8216 return opendir ();
8217   ;
8218   return 0;
8219 }
8220 _ACEOF
8221 for ac_lib in '' dir; do
8222   if test -z "$ac_lib"; then
8223     ac_res="none required"
8224   else
8225     ac_res=-l$ac_lib
8226     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8227   fi
8228   rm -f conftest.$ac_objext conftest$ac_exeext
8229 if { (ac_try="$ac_link"
8230 case "(($ac_try" in
8231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8232   *) ac_try_echo=$ac_try;;
8233 esac
8234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8235   (eval "$ac_link") 2>conftest.er1
8236   ac_status=$?
8237   grep -v '^ *+' conftest.er1 >conftest.err
8238   rm -f conftest.er1
8239   cat conftest.err >&5
8240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8241   (exit $ac_status); } && {
8242          test -z "$ac_c_werror_flag" ||
8243          test ! -s conftest.err
8244        } && test -s conftest$ac_exeext &&
8245        $as_test_x conftest$ac_exeext; then
8246   ac_cv_search_opendir=$ac_res
8247 else
8248   echo "$as_me: failed program was:" >&5
8249 sed 's/^/| /' conftest.$ac_ext >&5
8250
8251
8252 fi
8253
8254 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8255       conftest$ac_exeext
8256   if test "${ac_cv_search_opendir+set}" = set; then
8257   break
8258 fi
8259 done
8260 if test "${ac_cv_search_opendir+set}" = set; then
8261   :
8262 else
8263   ac_cv_search_opendir=no
8264 fi
8265 rm conftest.$ac_ext
8266 LIBS=$ac_func_search_save_LIBS
8267 fi
8268 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8269 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8270 ac_res=$ac_cv_search_opendir
8271 if test "$ac_res" != no; then
8272   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8273
8274 fi
8275
8276 else
8277   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8278 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8279 if test "${ac_cv_search_opendir+set}" = set; then
8280   echo $ECHO_N "(cached) $ECHO_C" >&6
8281 else
8282   ac_func_search_save_LIBS=$LIBS
8283 cat >conftest.$ac_ext <<_ACEOF
8284 /* confdefs.h.  */
8285 _ACEOF
8286 cat confdefs.h >>conftest.$ac_ext
8287 cat >>conftest.$ac_ext <<_ACEOF
8288 /* end confdefs.h.  */
8289
8290 /* Override any GCC internal prototype to avoid an error.
8291    Use char because int might match the return type of a GCC
8292    builtin and then its argument prototype would still apply.  */
8293 #ifdef __cplusplus
8294 extern "C"
8295 #endif
8296 char opendir ();
8297 int
8298 main ()
8299 {
8300 return opendir ();
8301   ;
8302   return 0;
8303 }
8304 _ACEOF
8305 for ac_lib in '' x; do
8306   if test -z "$ac_lib"; then
8307     ac_res="none required"
8308   else
8309     ac_res=-l$ac_lib
8310     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8311   fi
8312   rm -f conftest.$ac_objext conftest$ac_exeext
8313 if { (ac_try="$ac_link"
8314 case "(($ac_try" in
8315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8316   *) ac_try_echo=$ac_try;;
8317 esac
8318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8319   (eval "$ac_link") 2>conftest.er1
8320   ac_status=$?
8321   grep -v '^ *+' conftest.er1 >conftest.err
8322   rm -f conftest.er1
8323   cat conftest.err >&5
8324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8325   (exit $ac_status); } && {
8326          test -z "$ac_c_werror_flag" ||
8327          test ! -s conftest.err
8328        } && test -s conftest$ac_exeext &&
8329        $as_test_x conftest$ac_exeext; then
8330   ac_cv_search_opendir=$ac_res
8331 else
8332   echo "$as_me: failed program was:" >&5
8333 sed 's/^/| /' conftest.$ac_ext >&5
8334
8335
8336 fi
8337
8338 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8339       conftest$ac_exeext
8340   if test "${ac_cv_search_opendir+set}" = set; then
8341   break
8342 fi
8343 done
8344 if test "${ac_cv_search_opendir+set}" = set; then
8345   :
8346 else
8347   ac_cv_search_opendir=no
8348 fi
8349 rm conftest.$ac_ext
8350 LIBS=$ac_func_search_save_LIBS
8351 fi
8352 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8353 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8354 ac_res=$ac_cv_search_opendir
8355 if test "$ac_res" != no; then
8356   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8357
8358 fi
8359
8360 fi
8361
8362 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8363 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8364 if test "${ac_cv_header_stdc+set}" = set; then
8365   echo $ECHO_N "(cached) $ECHO_C" >&6
8366 else
8367   cat >conftest.$ac_ext <<_ACEOF
8368 /* confdefs.h.  */
8369 _ACEOF
8370 cat confdefs.h >>conftest.$ac_ext
8371 cat >>conftest.$ac_ext <<_ACEOF
8372 /* end confdefs.h.  */
8373 #include <stdlib.h>
8374 #include <stdarg.h>
8375 #include <string.h>
8376 #include <float.h>
8377
8378 int
8379 main ()
8380 {
8381
8382   ;
8383   return 0;
8384 }
8385 _ACEOF
8386 rm -f conftest.$ac_objext
8387 if { (ac_try="$ac_compile"
8388 case "(($ac_try" in
8389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8390   *) ac_try_echo=$ac_try;;
8391 esac
8392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8393   (eval "$ac_compile") 2>conftest.er1
8394   ac_status=$?
8395   grep -v '^ *+' conftest.er1 >conftest.err
8396   rm -f conftest.er1
8397   cat conftest.err >&5
8398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8399   (exit $ac_status); } && {
8400          test -z "$ac_c_werror_flag" ||
8401          test ! -s conftest.err
8402        } && test -s conftest.$ac_objext; then
8403   ac_cv_header_stdc=yes
8404 else
8405   echo "$as_me: failed program was:" >&5
8406 sed 's/^/| /' conftest.$ac_ext >&5
8407
8408         ac_cv_header_stdc=no
8409 fi
8410
8411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8412
8413 if test $ac_cv_header_stdc = yes; then
8414   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8415   cat >conftest.$ac_ext <<_ACEOF
8416 /* confdefs.h.  */
8417 _ACEOF
8418 cat confdefs.h >>conftest.$ac_ext
8419 cat >>conftest.$ac_ext <<_ACEOF
8420 /* end confdefs.h.  */
8421 #include <string.h>
8422
8423 _ACEOF
8424 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8425   $EGREP "memchr" >/dev/null 2>&1; then
8426   :
8427 else
8428   ac_cv_header_stdc=no
8429 fi
8430 rm -f conftest*
8431
8432 fi
8433
8434 if test $ac_cv_header_stdc = yes; then
8435   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8436   cat >conftest.$ac_ext <<_ACEOF
8437 /* confdefs.h.  */
8438 _ACEOF
8439 cat confdefs.h >>conftest.$ac_ext
8440 cat >>conftest.$ac_ext <<_ACEOF
8441 /* end confdefs.h.  */
8442 #include <stdlib.h>
8443
8444 _ACEOF
8445 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8446   $EGREP "free" >/dev/null 2>&1; then
8447   :
8448 else
8449   ac_cv_header_stdc=no
8450 fi
8451 rm -f conftest*
8452
8453 fi
8454
8455 if test $ac_cv_header_stdc = yes; then
8456   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8457   if test "$cross_compiling" = yes; then
8458   :
8459 else
8460   cat >conftest.$ac_ext <<_ACEOF
8461 /* confdefs.h.  */
8462 _ACEOF
8463 cat confdefs.h >>conftest.$ac_ext
8464 cat >>conftest.$ac_ext <<_ACEOF
8465 /* end confdefs.h.  */
8466 #include <ctype.h>
8467 #include <stdlib.h>
8468 #if ((' ' & 0x0FF) == 0x020)
8469 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8470 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8471 #else
8472 # define ISLOWER(c) \
8473                    (('a' <= (c) && (c) <= 'i') \
8474                      || ('j' <= (c) && (c) <= 'r') \
8475                      || ('s' <= (c) && (c) <= 'z'))
8476 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8477 #endif
8478
8479 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8480 int
8481 main ()
8482 {
8483   int i;
8484   for (i = 0; i < 256; i++)
8485     if (XOR (islower (i), ISLOWER (i))
8486         || toupper (i) != TOUPPER (i))
8487       return 2;
8488   return 0;
8489 }
8490 _ACEOF
8491 rm -f conftest$ac_exeext
8492 if { (ac_try="$ac_link"
8493 case "(($ac_try" in
8494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8495   *) ac_try_echo=$ac_try;;
8496 esac
8497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8498   (eval "$ac_link") 2>&5
8499   ac_status=$?
8500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8501   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8502   { (case "(($ac_try" in
8503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8504   *) ac_try_echo=$ac_try;;
8505 esac
8506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8507   (eval "$ac_try") 2>&5
8508   ac_status=$?
8509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8510   (exit $ac_status); }; }; then
8511   :
8512 else
8513   echo "$as_me: program exited with status $ac_status" >&5
8514 echo "$as_me: failed program was:" >&5
8515 sed 's/^/| /' conftest.$ac_ext >&5
8516
8517 ( exit $ac_status )
8518 ac_cv_header_stdc=no
8519 fi
8520 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8521 fi
8522
8523
8524 fi
8525 fi
8526 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8527 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8528 if test $ac_cv_header_stdc = yes; then
8529
8530 cat >>confdefs.h <<\_ACEOF
8531 #define STDC_HEADERS 1
8532 _ACEOF
8533
8534 fi
8535
8536 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
8537 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
8538 if test "${ac_cv_header_sys_wait_h+set}" = set; then
8539   echo $ECHO_N "(cached) $ECHO_C" >&6
8540 else
8541   cat >conftest.$ac_ext <<_ACEOF
8542 /* confdefs.h.  */
8543 _ACEOF
8544 cat confdefs.h >>conftest.$ac_ext
8545 cat >>conftest.$ac_ext <<_ACEOF
8546 /* end confdefs.h.  */
8547 #include <sys/types.h>
8548 #include <sys/wait.h>
8549 #ifndef WEXITSTATUS
8550 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8551 #endif
8552 #ifndef WIFEXITED
8553 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8554 #endif
8555
8556 int
8557 main ()
8558 {
8559   int s;
8560   wait (&s);
8561   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8562   ;
8563   return 0;
8564 }
8565 _ACEOF
8566 rm -f conftest.$ac_objext
8567 if { (ac_try="$ac_compile"
8568 case "(($ac_try" in
8569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8570   *) ac_try_echo=$ac_try;;
8571 esac
8572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8573   (eval "$ac_compile") 2>conftest.er1
8574   ac_status=$?
8575   grep -v '^ *+' conftest.er1 >conftest.err
8576   rm -f conftest.er1
8577   cat conftest.err >&5
8578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8579   (exit $ac_status); } && {
8580          test -z "$ac_c_werror_flag" ||
8581          test ! -s conftest.err
8582        } && test -s conftest.$ac_objext; then
8583   ac_cv_header_sys_wait_h=yes
8584 else
8585   echo "$as_me: failed program was:" >&5
8586 sed 's/^/| /' conftest.$ac_ext >&5
8587
8588         ac_cv_header_sys_wait_h=no
8589 fi
8590
8591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8592 fi
8593 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8594 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
8595 if test $ac_cv_header_sys_wait_h = yes; then
8596
8597 cat >>confdefs.h <<\_ACEOF
8598 #define HAVE_SYS_WAIT_H 1
8599 _ACEOF
8600
8601 fi
8602
8603 if test "${ac_cv_header_termios_h+set}" = set; then
8604   { echo "$as_me:$LINENO: checking for termios.h" >&5
8605 echo $ECHO_N "checking for termios.h... $ECHO_C" >&6; }
8606 if test "${ac_cv_header_termios_h+set}" = set; then
8607   echo $ECHO_N "(cached) $ECHO_C" >&6
8608 fi
8609 { echo "$as_me:$LINENO: result: $ac_cv_header_termios_h" >&5
8610 echo "${ECHO_T}$ac_cv_header_termios_h" >&6; }
8611 else
8612   # Is the header compilable?
8613 { echo "$as_me:$LINENO: checking termios.h usability" >&5
8614 echo $ECHO_N "checking termios.h usability... $ECHO_C" >&6; }
8615 cat >conftest.$ac_ext <<_ACEOF
8616 /* confdefs.h.  */
8617 _ACEOF
8618 cat confdefs.h >>conftest.$ac_ext
8619 cat >>conftest.$ac_ext <<_ACEOF
8620 /* end confdefs.h.  */
8621 $ac_includes_default
8622 #include <termios.h>
8623 _ACEOF
8624 rm -f conftest.$ac_objext
8625 if { (ac_try="$ac_compile"
8626 case "(($ac_try" in
8627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8628   *) ac_try_echo=$ac_try;;
8629 esac
8630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8631   (eval "$ac_compile") 2>conftest.er1
8632   ac_status=$?
8633   grep -v '^ *+' conftest.er1 >conftest.err
8634   rm -f conftest.er1
8635   cat conftest.err >&5
8636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8637   (exit $ac_status); } && {
8638          test -z "$ac_c_werror_flag" ||
8639          test ! -s conftest.err
8640        } && test -s conftest.$ac_objext; then
8641   ac_header_compiler=yes
8642 else
8643   echo "$as_me: failed program was:" >&5
8644 sed 's/^/| /' conftest.$ac_ext >&5
8645
8646         ac_header_compiler=no
8647 fi
8648
8649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8650 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8651 echo "${ECHO_T}$ac_header_compiler" >&6; }
8652
8653 # Is the header present?
8654 { echo "$as_me:$LINENO: checking termios.h presence" >&5
8655 echo $ECHO_N "checking termios.h presence... $ECHO_C" >&6; }
8656 cat >conftest.$ac_ext <<_ACEOF
8657 /* confdefs.h.  */
8658 _ACEOF
8659 cat confdefs.h >>conftest.$ac_ext
8660 cat >>conftest.$ac_ext <<_ACEOF
8661 /* end confdefs.h.  */
8662 #include <termios.h>
8663 _ACEOF
8664 if { (ac_try="$ac_cpp conftest.$ac_ext"
8665 case "(($ac_try" in
8666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8667   *) ac_try_echo=$ac_try;;
8668 esac
8669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8670   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8671   ac_status=$?
8672   grep -v '^ *+' conftest.er1 >conftest.err
8673   rm -f conftest.er1
8674   cat conftest.err >&5
8675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8676   (exit $ac_status); } >/dev/null && {
8677          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8678          test ! -s conftest.err
8679        }; then
8680   ac_header_preproc=yes
8681 else
8682   echo "$as_me: failed program was:" >&5
8683 sed 's/^/| /' conftest.$ac_ext >&5
8684
8685   ac_header_preproc=no
8686 fi
8687
8688 rm -f conftest.err conftest.$ac_ext
8689 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8690 echo "${ECHO_T}$ac_header_preproc" >&6; }
8691
8692 # So?  What about this header?
8693 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8694   yes:no: )
8695     { echo "$as_me:$LINENO: WARNING: termios.h: accepted by the compiler, rejected by the preprocessor!" >&5
8696 echo "$as_me: WARNING: termios.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8697     { echo "$as_me:$LINENO: WARNING: termios.h: proceeding with the compiler's result" >&5
8698 echo "$as_me: WARNING: termios.h: proceeding with the compiler's result" >&2;}
8699     ac_header_preproc=yes
8700     ;;
8701   no:yes:* )
8702     { echo "$as_me:$LINENO: WARNING: termios.h: present but cannot be compiled" >&5
8703 echo "$as_me: WARNING: termios.h: present but cannot be compiled" >&2;}
8704     { echo "$as_me:$LINENO: WARNING: termios.h:     check for missing prerequisite headers?" >&5
8705 echo "$as_me: WARNING: termios.h:     check for missing prerequisite headers?" >&2;}
8706     { echo "$as_me:$LINENO: WARNING: termios.h: see the Autoconf documentation" >&5
8707 echo "$as_me: WARNING: termios.h: see the Autoconf documentation" >&2;}
8708     { echo "$as_me:$LINENO: WARNING: termios.h:     section \"Present But Cannot Be Compiled\"" >&5
8709 echo "$as_me: WARNING: termios.h:     section \"Present But Cannot Be Compiled\"" >&2;}
8710     { echo "$as_me:$LINENO: WARNING: termios.h: proceeding with the preprocessor's result" >&5
8711 echo "$as_me: WARNING: termios.h: proceeding with the preprocessor's result" >&2;}
8712     { echo "$as_me:$LINENO: WARNING: termios.h: in the future, the compiler will take precedence" >&5
8713 echo "$as_me: WARNING: termios.h: in the future, the compiler will take precedence" >&2;}
8714     ( cat <<\_ASBOX
8715 ## ----------------------------- ##
8716 ## Report this to satodai@w3m.jp ##
8717 ## ----------------------------- ##
8718 _ASBOX
8719      ) | sed "s/^/$as_me: WARNING:     /" >&2
8720     ;;
8721 esac
8722 { echo "$as_me:$LINENO: checking for termios.h" >&5
8723 echo $ECHO_N "checking for termios.h... $ECHO_C" >&6; }
8724 if test "${ac_cv_header_termios_h+set}" = set; then
8725   echo $ECHO_N "(cached) $ECHO_C" >&6
8726 else
8727   ac_cv_header_termios_h=$ac_header_preproc
8728 fi
8729 { echo "$as_me:$LINENO: result: $ac_cv_header_termios_h" >&5
8730 echo "${ECHO_T}$ac_cv_header_termios_h" >&6; }
8731
8732 fi
8733 if test $ac_cv_header_termios_h = yes; then
8734   cat >>confdefs.h <<\_ACEOF
8735 #define HAVE_TERMIOS_H 1
8736 _ACEOF
8737
8738 else
8739   if test "${ac_cv_header_termio_h+set}" = set; then
8740   { echo "$as_me:$LINENO: checking for termio.h" >&5
8741 echo $ECHO_N "checking for termio.h... $ECHO_C" >&6; }
8742 if test "${ac_cv_header_termio_h+set}" = set; then
8743   echo $ECHO_N "(cached) $ECHO_C" >&6
8744 fi
8745 { echo "$as_me:$LINENO: result: $ac_cv_header_termio_h" >&5
8746 echo "${ECHO_T}$ac_cv_header_termio_h" >&6; }
8747 else
8748   # Is the header compilable?
8749 { echo "$as_me:$LINENO: checking termio.h usability" >&5
8750 echo $ECHO_N "checking termio.h usability... $ECHO_C" >&6; }
8751 cat >conftest.$ac_ext <<_ACEOF
8752 /* confdefs.h.  */
8753 _ACEOF
8754 cat confdefs.h >>conftest.$ac_ext
8755 cat >>conftest.$ac_ext <<_ACEOF
8756 /* end confdefs.h.  */
8757 $ac_includes_default
8758 #include <termio.h>
8759 _ACEOF
8760 rm -f conftest.$ac_objext
8761 if { (ac_try="$ac_compile"
8762 case "(($ac_try" in
8763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8764   *) ac_try_echo=$ac_try;;
8765 esac
8766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8767   (eval "$ac_compile") 2>conftest.er1
8768   ac_status=$?
8769   grep -v '^ *+' conftest.er1 >conftest.err
8770   rm -f conftest.er1
8771   cat conftest.err >&5
8772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8773   (exit $ac_status); } && {
8774          test -z "$ac_c_werror_flag" ||
8775          test ! -s conftest.err
8776        } && test -s conftest.$ac_objext; then
8777   ac_header_compiler=yes
8778 else
8779   echo "$as_me: failed program was:" >&5
8780 sed 's/^/| /' conftest.$ac_ext >&5
8781
8782         ac_header_compiler=no
8783 fi
8784
8785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8786 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8787 echo "${ECHO_T}$ac_header_compiler" >&6; }
8788
8789 # Is the header present?
8790 { echo "$as_me:$LINENO: checking termio.h presence" >&5
8791 echo $ECHO_N "checking termio.h presence... $ECHO_C" >&6; }
8792 cat >conftest.$ac_ext <<_ACEOF
8793 /* confdefs.h.  */
8794 _ACEOF
8795 cat confdefs.h >>conftest.$ac_ext
8796 cat >>conftest.$ac_ext <<_ACEOF
8797 /* end confdefs.h.  */
8798 #include <termio.h>
8799 _ACEOF
8800 if { (ac_try="$ac_cpp conftest.$ac_ext"
8801 case "(($ac_try" in
8802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8803   *) ac_try_echo=$ac_try;;
8804 esac
8805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8806   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8807   ac_status=$?
8808   grep -v '^ *+' conftest.er1 >conftest.err
8809   rm -f conftest.er1
8810   cat conftest.err >&5
8811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8812   (exit $ac_status); } >/dev/null && {
8813          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8814          test ! -s conftest.err
8815        }; then
8816   ac_header_preproc=yes
8817 else
8818   echo "$as_me: failed program was:" >&5
8819 sed 's/^/| /' conftest.$ac_ext >&5
8820
8821   ac_header_preproc=no
8822 fi
8823
8824 rm -f conftest.err conftest.$ac_ext
8825 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8826 echo "${ECHO_T}$ac_header_preproc" >&6; }
8827
8828 # So?  What about this header?
8829 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8830   yes:no: )
8831     { echo "$as_me:$LINENO: WARNING: termio.h: accepted by the compiler, rejected by the preprocessor!" >&5
8832 echo "$as_me: WARNING: termio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8833     { echo "$as_me:$LINENO: WARNING: termio.h: proceeding with the compiler's result" >&5
8834 echo "$as_me: WARNING: termio.h: proceeding with the compiler's result" >&2;}
8835     ac_header_preproc=yes
8836     ;;
8837   no:yes:* )
8838     { echo "$as_me:$LINENO: WARNING: termio.h: present but cannot be compiled" >&5
8839 echo "$as_me: WARNING: termio.h: present but cannot be compiled" >&2;}
8840     { echo "$as_me:$LINENO: WARNING: termio.h:     check for missing prerequisite headers?" >&5
8841 echo "$as_me: WARNING: termio.h:     check for missing prerequisite headers?" >&2;}
8842     { echo "$as_me:$LINENO: WARNING: termio.h: see the Autoconf documentation" >&5
8843 echo "$as_me: WARNING: termio.h: see the Autoconf documentation" >&2;}
8844     { echo "$as_me:$LINENO: WARNING: termio.h:     section \"Present But Cannot Be Compiled\"" >&5
8845 echo "$as_me: WARNING: termio.h:     section \"Present But Cannot Be Compiled\"" >&2;}
8846     { echo "$as_me:$LINENO: WARNING: termio.h: proceeding with the preprocessor's result" >&5
8847 echo "$as_me: WARNING: termio.h: proceeding with the preprocessor's result" >&2;}
8848     { echo "$as_me:$LINENO: WARNING: termio.h: in the future, the compiler will take precedence" >&5
8849 echo "$as_me: WARNING: termio.h: in the future, the compiler will take precedence" >&2;}
8850     ( cat <<\_ASBOX
8851 ## ----------------------------- ##
8852 ## Report this to satodai@w3m.jp ##
8853 ## ----------------------------- ##
8854 _ASBOX
8855      ) | sed "s/^/$as_me: WARNING:     /" >&2
8856     ;;
8857 esac
8858 { echo "$as_me:$LINENO: checking for termio.h" >&5
8859 echo $ECHO_N "checking for termio.h... $ECHO_C" >&6; }
8860 if test "${ac_cv_header_termio_h+set}" = set; then
8861   echo $ECHO_N "(cached) $ECHO_C" >&6
8862 else
8863   ac_cv_header_termio_h=$ac_header_preproc
8864 fi
8865 { echo "$as_me:$LINENO: result: $ac_cv_header_termio_h" >&5
8866 echo "${ECHO_T}$ac_cv_header_termio_h" >&6; }
8867
8868 fi
8869 if test $ac_cv_header_termio_h = yes; then
8870   cat >>confdefs.h <<\_ACEOF
8871 #define HAVE_TERMIO_H 1
8872 _ACEOF
8873
8874 else
8875   if test "${ac_cv_header_sgtty_h+set}" = set; then
8876   { echo "$as_me:$LINENO: checking for sgtty.h" >&5
8877 echo $ECHO_N "checking for sgtty.h... $ECHO_C" >&6; }
8878 if test "${ac_cv_header_sgtty_h+set}" = set; then
8879   echo $ECHO_N "(cached) $ECHO_C" >&6
8880 fi
8881 { echo "$as_me:$LINENO: result: $ac_cv_header_sgtty_h" >&5
8882 echo "${ECHO_T}$ac_cv_header_sgtty_h" >&6; }
8883 else
8884   # Is the header compilable?
8885 { echo "$as_me:$LINENO: checking sgtty.h usability" >&5
8886 echo $ECHO_N "checking sgtty.h usability... $ECHO_C" >&6; }
8887 cat >conftest.$ac_ext <<_ACEOF
8888 /* confdefs.h.  */
8889 _ACEOF
8890 cat confdefs.h >>conftest.$ac_ext
8891 cat >>conftest.$ac_ext <<_ACEOF
8892 /* end confdefs.h.  */
8893 $ac_includes_default
8894 #include <sgtty.h>
8895 _ACEOF
8896 rm -f conftest.$ac_objext
8897 if { (ac_try="$ac_compile"
8898 case "(($ac_try" in
8899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8900   *) ac_try_echo=$ac_try;;
8901 esac
8902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8903   (eval "$ac_compile") 2>conftest.er1
8904   ac_status=$?
8905   grep -v '^ *+' conftest.er1 >conftest.err
8906   rm -f conftest.er1
8907   cat conftest.err >&5
8908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8909   (exit $ac_status); } && {
8910          test -z "$ac_c_werror_flag" ||
8911          test ! -s conftest.err
8912        } && test -s conftest.$ac_objext; then
8913   ac_header_compiler=yes
8914 else
8915   echo "$as_me: failed program was:" >&5
8916 sed 's/^/| /' conftest.$ac_ext >&5
8917
8918         ac_header_compiler=no
8919 fi
8920
8921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8922 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8923 echo "${ECHO_T}$ac_header_compiler" >&6; }
8924
8925 # Is the header present?
8926 { echo "$as_me:$LINENO: checking sgtty.h presence" >&5
8927 echo $ECHO_N "checking sgtty.h presence... $ECHO_C" >&6; }
8928 cat >conftest.$ac_ext <<_ACEOF
8929 /* confdefs.h.  */
8930 _ACEOF
8931 cat confdefs.h >>conftest.$ac_ext
8932 cat >>conftest.$ac_ext <<_ACEOF
8933 /* end confdefs.h.  */
8934 #include <sgtty.h>
8935 _ACEOF
8936 if { (ac_try="$ac_cpp conftest.$ac_ext"
8937 case "(($ac_try" in
8938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8939   *) ac_try_echo=$ac_try;;
8940 esac
8941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8942   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8943   ac_status=$?
8944   grep -v '^ *+' conftest.er1 >conftest.err
8945   rm -f conftest.er1
8946   cat conftest.err >&5
8947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8948   (exit $ac_status); } >/dev/null && {
8949          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8950          test ! -s conftest.err
8951        }; then
8952   ac_header_preproc=yes
8953 else
8954   echo "$as_me: failed program was:" >&5
8955 sed 's/^/| /' conftest.$ac_ext >&5
8956
8957   ac_header_preproc=no
8958 fi
8959
8960 rm -f conftest.err conftest.$ac_ext
8961 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8962 echo "${ECHO_T}$ac_header_preproc" >&6; }
8963
8964 # So?  What about this header?
8965 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8966   yes:no: )
8967     { echo "$as_me:$LINENO: WARNING: sgtty.h: accepted by the compiler, rejected by the preprocessor!" >&5
8968 echo "$as_me: WARNING: sgtty.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8969     { echo "$as_me:$LINENO: WARNING: sgtty.h: proceeding with the compiler's result" >&5
8970 echo "$as_me: WARNING: sgtty.h: proceeding with the compiler's result" >&2;}
8971     ac_header_preproc=yes
8972     ;;
8973   no:yes:* )
8974     { echo "$as_me:$LINENO: WARNING: sgtty.h: present but cannot be compiled" >&5
8975 echo "$as_me: WARNING: sgtty.h: present but cannot be compiled" >&2;}
8976     { echo "$as_me:$LINENO: WARNING: sgtty.h:     check for missing prerequisite headers?" >&5
8977 echo "$as_me: WARNING: sgtty.h:     check for missing prerequisite headers?" >&2;}
8978     { echo "$as_me:$LINENO: WARNING: sgtty.h: see the Autoconf documentation" >&5
8979 echo "$as_me: WARNING: sgtty.h: see the Autoconf documentation" >&2;}
8980     { echo "$as_me:$LINENO: WARNING: sgtty.h:     section \"Present But Cannot Be Compiled\"" >&5
8981 echo "$as_me: WARNING: sgtty.h:     section \"Present But Cannot Be Compiled\"" >&2;}
8982     { echo "$as_me:$LINENO: WARNING: sgtty.h: proceeding with the preprocessor's result" >&5
8983 echo "$as_me: WARNING: sgtty.h: proceeding with the preprocessor's result" >&2;}
8984     { echo "$as_me:$LINENO: WARNING: sgtty.h: in the future, the compiler will take precedence" >&5
8985 echo "$as_me: WARNING: sgtty.h: in the future, the compiler will take precedence" >&2;}
8986     ( cat <<\_ASBOX
8987 ## ----------------------------- ##
8988 ## Report this to satodai@w3m.jp ##
8989 ## ----------------------------- ##
8990 _ASBOX
8991      ) | sed "s/^/$as_me: WARNING:     /" >&2
8992     ;;
8993 esac
8994 { echo "$as_me:$LINENO: checking for sgtty.h" >&5
8995 echo $ECHO_N "checking for sgtty.h... $ECHO_C" >&6; }
8996 if test "${ac_cv_header_sgtty_h+set}" = set; then
8997   echo $ECHO_N "(cached) $ECHO_C" >&6
8998 else
8999   ac_cv_header_sgtty_h=$ac_header_preproc
9000 fi
9001 { echo "$as_me:$LINENO: result: $ac_cv_header_sgtty_h" >&5
9002 echo "${ECHO_T}$ac_cv_header_sgtty_h" >&6; }
9003
9004 fi
9005 if test $ac_cv_header_sgtty_h = yes; then
9006   cat >>confdefs.h <<\_ACEOF
9007 #define HAVE_SGTTY_H 1
9008 _ACEOF
9009
9010 fi
9011
9012
9013 fi
9014
9015
9016 fi
9017
9018
9019 if test "${ac_cv_header_float_h+set}" = set; then
9020   { echo "$as_me:$LINENO: checking for float.h" >&5
9021 echo $ECHO_N "checking for float.h... $ECHO_C" >&6; }
9022 if test "${ac_cv_header_float_h+set}" = set; then
9023   echo $ECHO_N "(cached) $ECHO_C" >&6
9024 fi
9025 { echo "$as_me:$LINENO: result: $ac_cv_header_float_h" >&5
9026 echo "${ECHO_T}$ac_cv_header_float_h" >&6; }
9027 else
9028   # Is the header compilable?
9029 { echo "$as_me:$LINENO: checking float.h usability" >&5
9030 echo $ECHO_N "checking float.h usability... $ECHO_C" >&6; }
9031 cat >conftest.$ac_ext <<_ACEOF
9032 /* confdefs.h.  */
9033 _ACEOF
9034 cat confdefs.h >>conftest.$ac_ext
9035 cat >>conftest.$ac_ext <<_ACEOF
9036 /* end confdefs.h.  */
9037 $ac_includes_default
9038 #include <float.h>
9039 _ACEOF
9040 rm -f conftest.$ac_objext
9041 if { (ac_try="$ac_compile"
9042 case "(($ac_try" in
9043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9044   *) ac_try_echo=$ac_try;;
9045 esac
9046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9047   (eval "$ac_compile") 2>conftest.er1
9048   ac_status=$?
9049   grep -v '^ *+' conftest.er1 >conftest.err
9050   rm -f conftest.er1
9051   cat conftest.err >&5
9052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9053   (exit $ac_status); } && {
9054          test -z "$ac_c_werror_flag" ||
9055          test ! -s conftest.err
9056        } && test -s conftest.$ac_objext; then
9057   ac_header_compiler=yes
9058 else
9059   echo "$as_me: failed program was:" >&5
9060 sed 's/^/| /' conftest.$ac_ext >&5
9061
9062         ac_header_compiler=no
9063 fi
9064
9065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9066 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9067 echo "${ECHO_T}$ac_header_compiler" >&6; }
9068
9069 # Is the header present?
9070 { echo "$as_me:$LINENO: checking float.h presence" >&5
9071 echo $ECHO_N "checking float.h presence... $ECHO_C" >&6; }
9072 cat >conftest.$ac_ext <<_ACEOF
9073 /* confdefs.h.  */
9074 _ACEOF
9075 cat confdefs.h >>conftest.$ac_ext
9076 cat >>conftest.$ac_ext <<_ACEOF
9077 /* end confdefs.h.  */
9078 #include <float.h>
9079 _ACEOF
9080 if { (ac_try="$ac_cpp conftest.$ac_ext"
9081 case "(($ac_try" in
9082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9083   *) ac_try_echo=$ac_try;;
9084 esac
9085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9086   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9087   ac_status=$?
9088   grep -v '^ *+' conftest.er1 >conftest.err
9089   rm -f conftest.er1
9090   cat conftest.err >&5
9091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9092   (exit $ac_status); } >/dev/null && {
9093          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9094          test ! -s conftest.err
9095        }; then
9096   ac_header_preproc=yes
9097 else
9098   echo "$as_me: failed program was:" >&5
9099 sed 's/^/| /' conftest.$ac_ext >&5
9100
9101   ac_header_preproc=no
9102 fi
9103
9104 rm -f conftest.err conftest.$ac_ext
9105 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9106 echo "${ECHO_T}$ac_header_preproc" >&6; }
9107
9108 # So?  What about this header?
9109 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9110   yes:no: )
9111     { echo "$as_me:$LINENO: WARNING: float.h: accepted by the compiler, rejected by the preprocessor!" >&5
9112 echo "$as_me: WARNING: float.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9113     { echo "$as_me:$LINENO: WARNING: float.h: proceeding with the compiler's result" >&5
9114 echo "$as_me: WARNING: float.h: proceeding with the compiler's result" >&2;}
9115     ac_header_preproc=yes
9116     ;;
9117   no:yes:* )
9118     { echo "$as_me:$LINENO: WARNING: float.h: present but cannot be compiled" >&5
9119 echo "$as_me: WARNING: float.h: present but cannot be compiled" >&2;}
9120     { echo "$as_me:$LINENO: WARNING: float.h:     check for missing prerequisite headers?" >&5
9121 echo "$as_me: WARNING: float.h:     check for missing prerequisite headers?" >&2;}
9122     { echo "$as_me:$LINENO: WARNING: float.h: see the Autoconf documentation" >&5
9123 echo "$as_me: WARNING: float.h: see the Autoconf documentation" >&2;}
9124     { echo "$as_me:$LINENO: WARNING: float.h:     section \"Present But Cannot Be Compiled\"" >&5
9125 echo "$as_me: WARNING: float.h:     section \"Present But Cannot Be Compiled\"" >&2;}
9126     { echo "$as_me:$LINENO: WARNING: float.h: proceeding with the preprocessor's result" >&5
9127 echo "$as_me: WARNING: float.h: proceeding with the preprocessor's result" >&2;}
9128     { echo "$as_me:$LINENO: WARNING: float.h: in the future, the compiler will take precedence" >&5
9129 echo "$as_me: WARNING: float.h: in the future, the compiler will take precedence" >&2;}
9130     ( cat <<\_ASBOX
9131 ## ----------------------------- ##
9132 ## Report this to satodai@w3m.jp ##
9133 ## ----------------------------- ##
9134 _ASBOX
9135      ) | sed "s/^/$as_me: WARNING:     /" >&2
9136     ;;
9137 esac
9138 { echo "$as_me:$LINENO: checking for float.h" >&5
9139 echo $ECHO_N "checking for float.h... $ECHO_C" >&6; }
9140 if test "${ac_cv_header_float_h+set}" = set; then
9141   echo $ECHO_N "(cached) $ECHO_C" >&6
9142 else
9143   ac_cv_header_float_h=$ac_header_preproc
9144 fi
9145 { echo "$as_me:$LINENO: result: $ac_cv_header_float_h" >&5
9146 echo "${ECHO_T}$ac_cv_header_float_h" >&6; }
9147
9148 fi
9149 if test $ac_cv_header_float_h = yes; then
9150   cat >>confdefs.h <<\_ACEOF
9151 #define HAVE_FLOAT_H 1
9152 _ACEOF
9153
9154 fi
9155
9156
9157 if test "${ac_cv_header_sys_select_h+set}" = set; then
9158   { echo "$as_me:$LINENO: checking for sys/select.h" >&5
9159 echo $ECHO_N "checking for sys/select.h... $ECHO_C" >&6; }
9160 if test "${ac_cv_header_sys_select_h+set}" = set; then
9161   echo $ECHO_N "(cached) $ECHO_C" >&6
9162 fi
9163 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_select_h" >&5
9164 echo "${ECHO_T}$ac_cv_header_sys_select_h" >&6; }
9165 else
9166   # Is the header compilable?
9167 { echo "$as_me:$LINENO: checking sys/select.h usability" >&5
9168 echo $ECHO_N "checking sys/select.h usability... $ECHO_C" >&6; }
9169 cat >conftest.$ac_ext <<_ACEOF
9170 /* confdefs.h.  */
9171 _ACEOF
9172 cat confdefs.h >>conftest.$ac_ext
9173 cat >>conftest.$ac_ext <<_ACEOF
9174 /* end confdefs.h.  */
9175 $ac_includes_default
9176 #include <sys/select.h>
9177 _ACEOF
9178 rm -f conftest.$ac_objext
9179 if { (ac_try="$ac_compile"
9180 case "(($ac_try" in
9181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9182   *) ac_try_echo=$ac_try;;
9183 esac
9184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9185   (eval "$ac_compile") 2>conftest.er1
9186   ac_status=$?
9187   grep -v '^ *+' conftest.er1 >conftest.err
9188   rm -f conftest.er1
9189   cat conftest.err >&5
9190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9191   (exit $ac_status); } && {
9192          test -z "$ac_c_werror_flag" ||
9193          test ! -s conftest.err
9194        } && test -s conftest.$ac_objext; then
9195   ac_header_compiler=yes
9196 else
9197   echo "$as_me: failed program was:" >&5
9198 sed 's/^/| /' conftest.$ac_ext >&5
9199
9200         ac_header_compiler=no
9201 fi
9202
9203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9204 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9205 echo "${ECHO_T}$ac_header_compiler" >&6; }
9206
9207 # Is the header present?
9208 { echo "$as_me:$LINENO: checking sys/select.h presence" >&5
9209 echo $ECHO_N "checking sys/select.h presence... $ECHO_C" >&6; }
9210 cat >conftest.$ac_ext <<_ACEOF
9211 /* confdefs.h.  */
9212 _ACEOF
9213 cat confdefs.h >>conftest.$ac_ext
9214 cat >>conftest.$ac_ext <<_ACEOF
9215 /* end confdefs.h.  */
9216 #include <sys/select.h>
9217 _ACEOF
9218 if { (ac_try="$ac_cpp conftest.$ac_ext"
9219 case "(($ac_try" in
9220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9221   *) ac_try_echo=$ac_try;;
9222 esac
9223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9224   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9225   ac_status=$?
9226   grep -v '^ *+' conftest.er1 >conftest.err
9227   rm -f conftest.er1
9228   cat conftest.err >&5
9229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9230   (exit $ac_status); } >/dev/null && {
9231          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9232          test ! -s conftest.err
9233        }; then
9234   ac_header_preproc=yes
9235 else
9236   echo "$as_me: failed program was:" >&5
9237 sed 's/^/| /' conftest.$ac_ext >&5
9238
9239   ac_header_preproc=no
9240 fi
9241
9242 rm -f conftest.err conftest.$ac_ext
9243 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9244 echo "${ECHO_T}$ac_header_preproc" >&6; }
9245
9246 # So?  What about this header?
9247 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9248   yes:no: )
9249     { echo "$as_me:$LINENO: WARNING: sys/select.h: accepted by the compiler, rejected by the preprocessor!" >&5
9250 echo "$as_me: WARNING: sys/select.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9251     { echo "$as_me:$LINENO: WARNING: sys/select.h: proceeding with the compiler's result" >&5
9252 echo "$as_me: WARNING: sys/select.h: proceeding with the compiler's result" >&2;}
9253     ac_header_preproc=yes
9254     ;;
9255   no:yes:* )
9256     { echo "$as_me:$LINENO: WARNING: sys/select.h: present but cannot be compiled" >&5
9257 echo "$as_me: WARNING: sys/select.h: present but cannot be compiled" >&2;}
9258     { echo "$as_me:$LINENO: WARNING: sys/select.h:     check for missing prerequisite headers?" >&5
9259 echo "$as_me: WARNING: sys/select.h:     check for missing prerequisite headers?" >&2;}
9260     { echo "$as_me:$LINENO: WARNING: sys/select.h: see the Autoconf documentation" >&5
9261 echo "$as_me: WARNING: sys/select.h: see the Autoconf documentation" >&2;}
9262     { echo "$as_me:$LINENO: WARNING: sys/select.h:     section \"Present But Cannot Be Compiled\"" >&5
9263 echo "$as_me: WARNING: sys/select.h:     section \"Present But Cannot Be Compiled\"" >&2;}
9264     { echo "$as_me:$LINENO: WARNING: sys/select.h: proceeding with the preprocessor's result" >&5
9265 echo "$as_me: WARNING: sys/select.h: proceeding with the preprocessor's result" >&2;}
9266     { echo "$as_me:$LINENO: WARNING: sys/select.h: in the future, the compiler will take precedence" >&5
9267 echo "$as_me: WARNING: sys/select.h: in the future, the compiler will take precedence" >&2;}
9268     ( cat <<\_ASBOX
9269 ## ----------------------------- ##
9270 ## Report this to satodai@w3m.jp ##
9271 ## ----------------------------- ##
9272 _ASBOX
9273      ) | sed "s/^/$as_me: WARNING:     /" >&2
9274     ;;
9275 esac
9276 { echo "$as_me:$LINENO: checking for sys/select.h" >&5
9277 echo $ECHO_N "checking for sys/select.h... $ECHO_C" >&6; }
9278 if test "${ac_cv_header_sys_select_h+set}" = set; then
9279   echo $ECHO_N "(cached) $ECHO_C" >&6
9280 else
9281   ac_cv_header_sys_select_h=$ac_header_preproc
9282 fi
9283 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_select_h" >&5
9284 echo "${ECHO_T}$ac_cv_header_sys_select_h" >&6; }
9285
9286 fi
9287 if test $ac_cv_header_sys_select_h = yes; then
9288   cat >>confdefs.h <<\_ACEOF
9289 #define HAVE_SYS_SELECT_H 1
9290 _ACEOF
9291
9292 fi
9293
9294
9295 if test "${ac_cv_header_locale_h+set}" = set; then
9296   { echo "$as_me:$LINENO: checking for locale.h" >&5
9297 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
9298 if test "${ac_cv_header_locale_h+set}" = set; then
9299   echo $ECHO_N "(cached) $ECHO_C" >&6
9300 fi
9301 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
9302 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
9303 else
9304   # Is the header compilable?
9305 { echo "$as_me:$LINENO: checking locale.h usability" >&5
9306 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6; }
9307 cat >conftest.$ac_ext <<_ACEOF
9308 /* confdefs.h.  */
9309 _ACEOF
9310 cat confdefs.h >>conftest.$ac_ext
9311 cat >>conftest.$ac_ext <<_ACEOF
9312 /* end confdefs.h.  */
9313 $ac_includes_default
9314 #include <locale.h>
9315 _ACEOF
9316 rm -f conftest.$ac_objext
9317 if { (ac_try="$ac_compile"
9318 case "(($ac_try" in
9319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9320   *) ac_try_echo=$ac_try;;
9321 esac
9322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9323   (eval "$ac_compile") 2>conftest.er1
9324   ac_status=$?
9325   grep -v '^ *+' conftest.er1 >conftest.err
9326   rm -f conftest.er1
9327   cat conftest.err >&5
9328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9329   (exit $ac_status); } && {
9330          test -z "$ac_c_werror_flag" ||
9331          test ! -s conftest.err
9332        } && test -s conftest.$ac_objext; then
9333   ac_header_compiler=yes
9334 else
9335   echo "$as_me: failed program was:" >&5
9336 sed 's/^/| /' conftest.$ac_ext >&5
9337
9338         ac_header_compiler=no
9339 fi
9340
9341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9342 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9343 echo "${ECHO_T}$ac_header_compiler" >&6; }
9344
9345 # Is the header present?
9346 { echo "$as_me:$LINENO: checking locale.h presence" >&5
9347 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6; }
9348 cat >conftest.$ac_ext <<_ACEOF
9349 /* confdefs.h.  */
9350 _ACEOF
9351 cat confdefs.h >>conftest.$ac_ext
9352 cat >>conftest.$ac_ext <<_ACEOF
9353 /* end confdefs.h.  */
9354 #include <locale.h>
9355 _ACEOF
9356 if { (ac_try="$ac_cpp conftest.$ac_ext"
9357 case "(($ac_try" in
9358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9359   *) ac_try_echo=$ac_try;;
9360 esac
9361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9362   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9363   ac_status=$?
9364   grep -v '^ *+' conftest.er1 >conftest.err
9365   rm -f conftest.er1
9366   cat conftest.err >&5
9367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9368   (exit $ac_status); } >/dev/null && {
9369          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9370          test ! -s conftest.err
9371        }; then
9372   ac_header_preproc=yes
9373 else
9374   echo "$as_me: failed program was:" >&5
9375 sed 's/^/| /' conftest.$ac_ext >&5
9376
9377   ac_header_preproc=no
9378 fi
9379
9380 rm -f conftest.err conftest.$ac_ext
9381 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9382 echo "${ECHO_T}$ac_header_preproc" >&6; }
9383
9384 # So?  What about this header?
9385 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9386   yes:no: )
9387     { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
9388 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9389     { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
9390 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
9391     ac_header_preproc=yes
9392     ;;
9393   no:yes:* )
9394     { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
9395 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
9396     { echo "$as_me:$LINENO: WARNING: locale.h:     check for missing prerequisite headers?" >&5
9397 echo "$as_me: WARNING: locale.h:     check for missing prerequisite headers?" >&2;}
9398     { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
9399 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
9400     { echo "$as_me:$LINENO: WARNING: locale.h:     section \"Present But Cannot Be Compiled\"" >&5
9401 echo "$as_me: WARNING: locale.h:     section \"Present But Cannot Be Compiled\"" >&2;}
9402     { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
9403 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
9404     { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
9405 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
9406     ( cat <<\_ASBOX
9407 ## ----------------------------- ##
9408 ## Report this to satodai@w3m.jp ##
9409 ## ----------------------------- ##
9410 _ASBOX
9411      ) | sed "s/^/$as_me: WARNING:     /" >&2
9412     ;;
9413 esac
9414 { echo "$as_me:$LINENO: checking for locale.h" >&5
9415 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
9416 if test "${ac_cv_header_locale_h+set}" = set; then
9417   echo $ECHO_N "(cached) $ECHO_C" >&6
9418 else
9419   ac_cv_header_locale_h=$ac_header_preproc
9420 fi
9421 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
9422 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
9423
9424 fi
9425 if test $ac_cv_header_locale_h = yes; then
9426   cat >>confdefs.h <<\_ACEOF
9427 #define HAVE_LOCALE_H 1
9428 _ACEOF
9429
9430 fi
9431
9432
9433 if test "${ac_cv_header_stdint_h+set}" = set; then
9434   { echo "$as_me:$LINENO: checking for stdint.h" >&5
9435 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
9436 if test "${ac_cv_header_stdint_h+set}" = set; then
9437   echo $ECHO_N "(cached) $ECHO_C" >&6
9438 fi
9439 { echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
9440 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6; }
9441 else
9442   # Is the header compilable?
9443 { echo "$as_me:$LINENO: checking stdint.h usability" >&5
9444 echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6; }
9445 cat >conftest.$ac_ext <<_ACEOF
9446 /* confdefs.h.  */
9447 _ACEOF
9448 cat confdefs.h >>conftest.$ac_ext
9449 cat >>conftest.$ac_ext <<_ACEOF
9450 /* end confdefs.h.  */
9451 $ac_includes_default
9452 #include <stdint.h>
9453 _ACEOF
9454 rm -f conftest.$ac_objext
9455 if { (ac_try="$ac_compile"
9456 case "(($ac_try" in
9457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9458   *) ac_try_echo=$ac_try;;
9459 esac
9460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9461   (eval "$ac_compile") 2>conftest.er1
9462   ac_status=$?
9463   grep -v '^ *+' conftest.er1 >conftest.err
9464   rm -f conftest.er1
9465   cat conftest.err >&5
9466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9467   (exit $ac_status); } && {
9468          test -z "$ac_c_werror_flag" ||
9469          test ! -s conftest.err
9470        } && test -s conftest.$ac_objext; then
9471   ac_header_compiler=yes
9472 else
9473   echo "$as_me: failed program was:" >&5
9474 sed 's/^/| /' conftest.$ac_ext >&5
9475
9476         ac_header_compiler=no
9477 fi
9478
9479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9480 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9481 echo "${ECHO_T}$ac_header_compiler" >&6; }
9482
9483 # Is the header present?
9484 { echo "$as_me:$LINENO: checking stdint.h presence" >&5
9485 echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6; }
9486 cat >conftest.$ac_ext <<_ACEOF
9487 /* confdefs.h.  */
9488 _ACEOF
9489 cat confdefs.h >>conftest.$ac_ext
9490 cat >>conftest.$ac_ext <<_ACEOF
9491 /* end confdefs.h.  */
9492 #include <stdint.h>
9493 _ACEOF
9494 if { (ac_try="$ac_cpp conftest.$ac_ext"
9495 case "(($ac_try" in
9496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9497   *) ac_try_echo=$ac_try;;
9498 esac
9499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9500   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9501   ac_status=$?
9502   grep -v '^ *+' conftest.er1 >conftest.err
9503   rm -f conftest.er1
9504   cat conftest.err >&5
9505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9506   (exit $ac_status); } >/dev/null && {
9507          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9508          test ! -s conftest.err
9509        }; then
9510   ac_header_preproc=yes
9511 else
9512   echo "$as_me: failed program was:" >&5
9513 sed 's/^/| /' conftest.$ac_ext >&5
9514
9515   ac_header_preproc=no
9516 fi
9517
9518 rm -f conftest.err conftest.$ac_ext
9519 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9520 echo "${ECHO_T}$ac_header_preproc" >&6; }
9521
9522 # So?  What about this header?
9523 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9524   yes:no: )
9525     { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5
9526 echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9527     { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5
9528 echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;}
9529     ac_header_preproc=yes
9530     ;;
9531   no:yes:* )
9532     { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5
9533 echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;}
9534     { echo "$as_me:$LINENO: WARNING: stdint.h:     check for missing prerequisite headers?" >&5
9535 echo "$as_me: WARNING: stdint.h:     check for missing prerequisite headers?" >&2;}
9536     { echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5
9537 echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;}
9538     { echo "$as_me:$LINENO: WARNING: stdint.h:     section \"Present But Cannot Be Compiled\"" >&5
9539 echo "$as_me: WARNING: stdint.h:     section \"Present But Cannot Be Compiled\"" >&2;}
9540     { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
9541 echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
9542     { echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5
9543 echo "$as_me: WARNING: stdint.h: in the future, the compiler will take precedence" >&2;}
9544     ( cat <<\_ASBOX
9545 ## ----------------------------- ##
9546 ## Report this to satodai@w3m.jp ##
9547 ## ----------------------------- ##
9548 _ASBOX
9549      ) | sed "s/^/$as_me: WARNING:     /" >&2
9550     ;;
9551 esac
9552 { echo "$as_me:$LINENO: checking for stdint.h" >&5
9553 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
9554 if test "${ac_cv_header_stdint_h+set}" = set; then
9555   echo $ECHO_N "(cached) $ECHO_C" >&6
9556 else
9557   ac_cv_header_stdint_h=$ac_header_preproc
9558 fi
9559 { echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
9560 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6; }
9561
9562 fi
9563 if test $ac_cv_header_stdint_h = yes; then
9564   cat >>confdefs.h <<\_ACEOF
9565 #define HAVE_STDINT_H 1
9566 _ACEOF
9567
9568 fi
9569
9570
9571 if test "${ac_cv_header_inttypes_h+set}" = set; then
9572   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
9573 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
9574 if test "${ac_cv_header_inttypes_h+set}" = set; then
9575   echo $ECHO_N "(cached) $ECHO_C" >&6
9576 fi
9577 { echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
9578 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6; }
9579 else
9580   # Is the header compilable?
9581 { echo "$as_me:$LINENO: checking inttypes.h usability" >&5
9582 echo $ECHO_N "checking inttypes.h usability... $ECHO_C" >&6; }
9583 cat >conftest.$ac_ext <<_ACEOF
9584 /* confdefs.h.  */
9585 _ACEOF
9586 cat confdefs.h >>conftest.$ac_ext
9587 cat >>conftest.$ac_ext <<_ACEOF
9588 /* end confdefs.h.  */
9589 $ac_includes_default
9590 #include <inttypes.h>
9591 _ACEOF
9592 rm -f conftest.$ac_objext
9593 if { (ac_try="$ac_compile"
9594 case "(($ac_try" in
9595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9596   *) ac_try_echo=$ac_try;;
9597 esac
9598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9599   (eval "$ac_compile") 2>conftest.er1
9600   ac_status=$?
9601   grep -v '^ *+' conftest.er1 >conftest.err
9602   rm -f conftest.er1
9603   cat conftest.err >&5
9604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9605   (exit $ac_status); } && {
9606          test -z "$ac_c_werror_flag" ||
9607          test ! -s conftest.err
9608        } && test -s conftest.$ac_objext; then
9609   ac_header_compiler=yes
9610 else
9611   echo "$as_me: failed program was:" >&5
9612 sed 's/^/| /' conftest.$ac_ext >&5
9613
9614         ac_header_compiler=no
9615 fi
9616
9617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9618 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9619 echo "${ECHO_T}$ac_header_compiler" >&6; }
9620
9621 # Is the header present?
9622 { echo "$as_me:$LINENO: checking inttypes.h presence" >&5
9623 echo $ECHO_N "checking inttypes.h presence... $ECHO_C" >&6; }
9624 cat >conftest.$ac_ext <<_ACEOF
9625 /* confdefs.h.  */
9626 _ACEOF
9627 cat confdefs.h >>conftest.$ac_ext
9628 cat >>conftest.$ac_ext <<_ACEOF
9629 /* end confdefs.h.  */
9630 #include <inttypes.h>
9631 _ACEOF
9632 if { (ac_try="$ac_cpp conftest.$ac_ext"
9633 case "(($ac_try" in
9634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9635   *) ac_try_echo=$ac_try;;
9636 esac
9637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9638   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9639   ac_status=$?
9640   grep -v '^ *+' conftest.er1 >conftest.err
9641   rm -f conftest.er1
9642   cat conftest.err >&5
9643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9644   (exit $ac_status); } >/dev/null && {
9645          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9646          test ! -s conftest.err
9647        }; then
9648   ac_header_preproc=yes
9649 else
9650   echo "$as_me: failed program was:" >&5
9651 sed 's/^/| /' conftest.$ac_ext >&5
9652
9653   ac_header_preproc=no
9654 fi
9655
9656 rm -f conftest.err conftest.$ac_ext
9657 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9658 echo "${ECHO_T}$ac_header_preproc" >&6; }
9659
9660 # So?  What about this header?
9661 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9662   yes:no: )
9663     { echo "$as_me:$LINENO: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&5
9664 echo "$as_me: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9665     { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the compiler's result" >&5
9666 echo "$as_me: WARNING: inttypes.h: proceeding with the compiler's result" >&2;}
9667     ac_header_preproc=yes
9668     ;;
9669   no:yes:* )
9670     { echo "$as_me:$LINENO: WARNING: inttypes.h: present but cannot be compiled" >&5
9671 echo "$as_me: WARNING: inttypes.h: present but cannot be compiled" >&2;}
9672     { echo "$as_me:$LINENO: WARNING: inttypes.h:     check for missing prerequisite headers?" >&5
9673 echo "$as_me: WARNING: inttypes.h:     check for missing prerequisite headers?" >&2;}
9674     { echo "$as_me:$LINENO: WARNING: inttypes.h: see the Autoconf documentation" >&5
9675 echo "$as_me: WARNING: inttypes.h: see the Autoconf documentation" >&2;}
9676     { echo "$as_me:$LINENO: WARNING: inttypes.h:     section \"Present But Cannot Be Compiled\"" >&5
9677 echo "$as_me: WARNING: inttypes.h:     section \"Present But Cannot Be Compiled\"" >&2;}
9678     { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
9679 echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;}
9680     { echo "$as_me:$LINENO: WARNING: inttypes.h: in the future, the compiler will take precedence" >&5
9681 echo "$as_me: WARNING: inttypes.h: in the future, the compiler will take precedence" >&2;}
9682     ( cat <<\_ASBOX
9683 ## ----------------------------- ##
9684 ## Report this to satodai@w3m.jp ##
9685 ## ----------------------------- ##
9686 _ASBOX
9687      ) | sed "s/^/$as_me: WARNING:     /" >&2
9688     ;;
9689 esac
9690 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
9691 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
9692 if test "${ac_cv_header_inttypes_h+set}" = set; then
9693   echo $ECHO_N "(cached) $ECHO_C" >&6
9694 else
9695   ac_cv_header_inttypes_h=$ac_header_preproc
9696 fi
9697 { echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
9698 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6; }
9699
9700 fi
9701 if test $ac_cv_header_inttypes_h = yes; then
9702   cat >>confdefs.h <<\_ACEOF
9703 #define HAVE_INTTYPES_H 1
9704 _ACEOF
9705
9706 fi
9707
9708
9709
9710 { echo "$as_me:$LINENO: checking for long long" >&5
9711 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
9712 if test "${ac_cv_type_long_long+set}" = set; then
9713   echo $ECHO_N "(cached) $ECHO_C" >&6
9714 else
9715   cat >conftest.$ac_ext <<_ACEOF
9716 /* confdefs.h.  */
9717 _ACEOF
9718 cat confdefs.h >>conftest.$ac_ext
9719 cat >>conftest.$ac_ext <<_ACEOF
9720 /* end confdefs.h.  */
9721 $ac_includes_default
9722 typedef long long ac__type_new_;
9723 int
9724 main ()
9725 {
9726 if ((ac__type_new_ *) 0)
9727   return 0;
9728 if (sizeof (ac__type_new_))
9729   return 0;
9730   ;
9731   return 0;
9732 }
9733 _ACEOF
9734 rm -f conftest.$ac_objext
9735 if { (ac_try="$ac_compile"
9736 case "(($ac_try" in
9737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9738   *) ac_try_echo=$ac_try;;
9739 esac
9740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9741   (eval "$ac_compile") 2>conftest.er1
9742   ac_status=$?
9743   grep -v '^ *+' conftest.er1 >conftest.err
9744   rm -f conftest.er1
9745   cat conftest.err >&5
9746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9747   (exit $ac_status); } && {
9748          test -z "$ac_c_werror_flag" ||
9749          test ! -s conftest.err
9750        } && test -s conftest.$ac_objext; then
9751   ac_cv_type_long_long=yes
9752 else
9753   echo "$as_me: failed program was:" >&5
9754 sed 's/^/| /' conftest.$ac_ext >&5
9755
9756         ac_cv_type_long_long=no
9757 fi
9758
9759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9760 fi
9761 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
9762 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
9763
9764 # The cast to long int works around a bug in the HP C Compiler
9765 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9766 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9767 # This bug is HP SR number 8606223364.
9768 { echo "$as_me:$LINENO: checking size of long long" >&5
9769 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
9770 if test "${ac_cv_sizeof_long_long+set}" = set; then
9771   echo $ECHO_N "(cached) $ECHO_C" >&6
9772 else
9773   if test "$cross_compiling" = yes; then
9774   # Depending upon the size, compute the lo and hi bounds.
9775 cat >conftest.$ac_ext <<_ACEOF
9776 /* confdefs.h.  */
9777 _ACEOF
9778 cat confdefs.h >>conftest.$ac_ext
9779 cat >>conftest.$ac_ext <<_ACEOF
9780 /* end confdefs.h.  */
9781 $ac_includes_default
9782    typedef long long ac__type_sizeof_;
9783 int
9784 main ()
9785 {
9786 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9787 test_array [0] = 0
9788
9789   ;
9790   return 0;
9791 }
9792 _ACEOF
9793 rm -f conftest.$ac_objext
9794 if { (ac_try="$ac_compile"
9795 case "(($ac_try" in
9796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9797   *) ac_try_echo=$ac_try;;
9798 esac
9799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9800   (eval "$ac_compile") 2>conftest.er1
9801   ac_status=$?
9802   grep -v '^ *+' conftest.er1 >conftest.err
9803   rm -f conftest.er1
9804   cat conftest.err >&5
9805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9806   (exit $ac_status); } && {
9807          test -z "$ac_c_werror_flag" ||
9808          test ! -s conftest.err
9809        } && test -s conftest.$ac_objext; then
9810   ac_lo=0 ac_mid=0
9811   while :; do
9812     cat >conftest.$ac_ext <<_ACEOF
9813 /* confdefs.h.  */
9814 _ACEOF
9815 cat confdefs.h >>conftest.$ac_ext
9816 cat >>conftest.$ac_ext <<_ACEOF
9817 /* end confdefs.h.  */
9818 $ac_includes_default
9819    typedef long long ac__type_sizeof_;
9820 int
9821 main ()
9822 {
9823 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9824 test_array [0] = 0
9825
9826   ;
9827   return 0;
9828 }
9829 _ACEOF
9830 rm -f conftest.$ac_objext
9831 if { (ac_try="$ac_compile"
9832 case "(($ac_try" in
9833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9834   *) ac_try_echo=$ac_try;;
9835 esac
9836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9837   (eval "$ac_compile") 2>conftest.er1
9838   ac_status=$?
9839   grep -v '^ *+' conftest.er1 >conftest.err
9840   rm -f conftest.er1
9841   cat conftest.err >&5
9842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9843   (exit $ac_status); } && {
9844          test -z "$ac_c_werror_flag" ||
9845          test ! -s conftest.err
9846        } && test -s conftest.$ac_objext; then
9847   ac_hi=$ac_mid; break
9848 else
9849   echo "$as_me: failed program was:" >&5
9850 sed 's/^/| /' conftest.$ac_ext >&5
9851
9852         ac_lo=`expr $ac_mid + 1`
9853                         if test $ac_lo -le $ac_mid; then
9854                           ac_lo= ac_hi=
9855                           break
9856                         fi
9857                         ac_mid=`expr 2 '*' $ac_mid + 1`
9858 fi
9859
9860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9861   done
9862 else
9863   echo "$as_me: failed program was:" >&5
9864 sed 's/^/| /' conftest.$ac_ext >&5
9865
9866         cat >conftest.$ac_ext <<_ACEOF
9867 /* confdefs.h.  */
9868 _ACEOF
9869 cat confdefs.h >>conftest.$ac_ext
9870 cat >>conftest.$ac_ext <<_ACEOF
9871 /* end confdefs.h.  */
9872 $ac_includes_default
9873    typedef long long ac__type_sizeof_;
9874 int
9875 main ()
9876 {
9877 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9878 test_array [0] = 0
9879
9880   ;
9881   return 0;
9882 }
9883 _ACEOF
9884 rm -f conftest.$ac_objext
9885 if { (ac_try="$ac_compile"
9886 case "(($ac_try" in
9887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9888   *) ac_try_echo=$ac_try;;
9889 esac
9890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9891   (eval "$ac_compile") 2>conftest.er1
9892   ac_status=$?
9893   grep -v '^ *+' conftest.er1 >conftest.err
9894   rm -f conftest.er1
9895   cat conftest.err >&5
9896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9897   (exit $ac_status); } && {
9898          test -z "$ac_c_werror_flag" ||
9899          test ! -s conftest.err
9900        } && test -s conftest.$ac_objext; then
9901   ac_hi=-1 ac_mid=-1
9902   while :; do
9903     cat >conftest.$ac_ext <<_ACEOF
9904 /* confdefs.h.  */
9905 _ACEOF
9906 cat confdefs.h >>conftest.$ac_ext
9907 cat >>conftest.$ac_ext <<_ACEOF
9908 /* end confdefs.h.  */
9909 $ac_includes_default
9910    typedef long long ac__type_sizeof_;
9911 int
9912 main ()
9913 {
9914 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9915 test_array [0] = 0
9916
9917   ;
9918   return 0;
9919 }
9920 _ACEOF
9921 rm -f conftest.$ac_objext
9922 if { (ac_try="$ac_compile"
9923 case "(($ac_try" in
9924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9925   *) ac_try_echo=$ac_try;;
9926 esac
9927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9928   (eval "$ac_compile") 2>conftest.er1
9929   ac_status=$?
9930   grep -v '^ *+' conftest.er1 >conftest.err
9931   rm -f conftest.er1
9932   cat conftest.err >&5
9933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9934   (exit $ac_status); } && {
9935          test -z "$ac_c_werror_flag" ||
9936          test ! -s conftest.err
9937        } && test -s conftest.$ac_objext; then
9938   ac_lo=$ac_mid; break
9939 else
9940   echo "$as_me: failed program was:" >&5
9941 sed 's/^/| /' conftest.$ac_ext >&5
9942
9943         ac_hi=`expr '(' $ac_mid ')' - 1`
9944                         if test $ac_mid -le $ac_hi; then
9945                           ac_lo= ac_hi=
9946                           break
9947                         fi
9948                         ac_mid=`expr 2 '*' $ac_mid`
9949 fi
9950
9951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9952   done
9953 else
9954   echo "$as_me: failed program was:" >&5
9955 sed 's/^/| /' conftest.$ac_ext >&5
9956
9957         ac_lo= ac_hi=
9958 fi
9959
9960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9961 fi
9962
9963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9964 # Binary search between lo and hi bounds.
9965 while test "x$ac_lo" != "x$ac_hi"; do
9966   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9967   cat >conftest.$ac_ext <<_ACEOF
9968 /* confdefs.h.  */
9969 _ACEOF
9970 cat confdefs.h >>conftest.$ac_ext
9971 cat >>conftest.$ac_ext <<_ACEOF
9972 /* end confdefs.h.  */
9973 $ac_includes_default
9974    typedef long long ac__type_sizeof_;
9975 int
9976 main ()
9977 {
9978 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9979 test_array [0] = 0
9980
9981   ;
9982   return 0;
9983 }
9984 _ACEOF
9985 rm -f conftest.$ac_objext
9986 if { (ac_try="$ac_compile"
9987 case "(($ac_try" in
9988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9989   *) ac_try_echo=$ac_try;;
9990 esac
9991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9992   (eval "$ac_compile") 2>conftest.er1
9993   ac_status=$?
9994   grep -v '^ *+' conftest.er1 >conftest.err
9995   rm -f conftest.er1
9996   cat conftest.err >&5
9997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9998   (exit $ac_status); } && {
9999          test -z "$ac_c_werror_flag" ||
10000          test ! -s conftest.err
10001        } && test -s conftest.$ac_objext; then
10002   ac_hi=$ac_mid
10003 else
10004   echo "$as_me: failed program was:" >&5
10005 sed 's/^/| /' conftest.$ac_ext >&5
10006
10007         ac_lo=`expr '(' $ac_mid ')' + 1`
10008 fi
10009
10010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10011 done
10012 case $ac_lo in
10013 ?*) ac_cv_sizeof_long_long=$ac_lo;;
10014 '') if test "$ac_cv_type_long_long" = yes; then
10015      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
10016 See \`config.log' for more details." >&5
10017 echo "$as_me: error: cannot compute sizeof (long long)
10018 See \`config.log' for more details." >&2;}
10019    { (exit 77); exit 77; }; }
10020    else
10021      ac_cv_sizeof_long_long=0
10022    fi ;;
10023 esac
10024 else
10025   cat >conftest.$ac_ext <<_ACEOF
10026 /* confdefs.h.  */
10027 _ACEOF
10028 cat confdefs.h >>conftest.$ac_ext
10029 cat >>conftest.$ac_ext <<_ACEOF
10030 /* end confdefs.h.  */
10031 $ac_includes_default
10032    typedef long long ac__type_sizeof_;
10033 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10034 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10035 #include <stdio.h>
10036 #include <stdlib.h>
10037 int
10038 main ()
10039 {
10040
10041   FILE *f = fopen ("conftest.val", "w");
10042   if (! f)
10043     return 1;
10044   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10045     {
10046       long int i = longval ();
10047       if (i != ((long int) (sizeof (ac__type_sizeof_))))
10048         return 1;
10049       fprintf (f, "%ld\n", i);
10050     }
10051   else
10052     {
10053       unsigned long int i = ulongval ();
10054       if (i != ((long int) (sizeof (ac__type_sizeof_))))
10055         return 1;
10056       fprintf (f, "%lu\n", i);
10057     }
10058   return ferror (f) || fclose (f) != 0;
10059
10060   ;
10061   return 0;
10062 }
10063 _ACEOF
10064 rm -f conftest$ac_exeext
10065 if { (ac_try="$ac_link"
10066 case "(($ac_try" in
10067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10068   *) ac_try_echo=$ac_try;;
10069 esac
10070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10071   (eval "$ac_link") 2>&5
10072   ac_status=$?
10073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10074   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10075   { (case "(($ac_try" in
10076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10077   *) ac_try_echo=$ac_try;;
10078 esac
10079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10080   (eval "$ac_try") 2>&5
10081   ac_status=$?
10082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10083   (exit $ac_status); }; }; then
10084   ac_cv_sizeof_long_long=`cat conftest.val`
10085 else
10086   echo "$as_me: program exited with status $ac_status" >&5
10087 echo "$as_me: failed program was:" >&5
10088 sed 's/^/| /' conftest.$ac_ext >&5
10089
10090 ( exit $ac_status )
10091 if test "$ac_cv_type_long_long" = yes; then
10092      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
10093 See \`config.log' for more details." >&5
10094 echo "$as_me: error: cannot compute sizeof (long long)
10095 See \`config.log' for more details." >&2;}
10096    { (exit 77); exit 77; }; }
10097    else
10098      ac_cv_sizeof_long_long=0
10099    fi
10100 fi
10101 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10102 fi
10103 rm -f conftest.val
10104 fi
10105 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
10106 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
10107
10108
10109
10110 cat >>confdefs.h <<_ACEOF
10111 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10112 _ACEOF
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141 for ac_func in strcasecmp strcasestr strchr memcpy strerror bcopy setpgrp chdir getcwd getwd readlink setenv putenv strtoll stroq atoll atoq symlink readlink lstat srand48 srandom getpassphrase waitpid setlocale
10142 do
10143 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10144 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10145 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10146 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10147   echo $ECHO_N "(cached) $ECHO_C" >&6
10148 else
10149   cat >conftest.$ac_ext <<_ACEOF
10150 /* confdefs.h.  */
10151 _ACEOF
10152 cat confdefs.h >>conftest.$ac_ext
10153 cat >>conftest.$ac_ext <<_ACEOF
10154 /* end confdefs.h.  */
10155 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10156    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10157 #define $ac_func innocuous_$ac_func
10158
10159 /* System header to define __stub macros and hopefully few prototypes,
10160     which can conflict with char $ac_func (); below.
10161     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10162     <limits.h> exists even on freestanding compilers.  */
10163
10164 #ifdef __STDC__
10165 # include <limits.h>
10166 #else
10167 # include <assert.h>
10168 #endif
10169
10170 #undef $ac_func
10171
10172 /* Override any GCC internal prototype to avoid an error.
10173    Use char because int might match the return type of a GCC
10174    builtin and then its argument prototype would still apply.  */
10175 #ifdef __cplusplus
10176 extern "C"
10177 #endif
10178 char $ac_func ();
10179 /* The GNU C library defines this for functions which it implements
10180     to always fail with ENOSYS.  Some functions are actually named
10181     something starting with __ and the normal name is an alias.  */
10182 #if defined __stub_$ac_func || defined __stub___$ac_func
10183 choke me
10184 #endif
10185
10186 int
10187 main ()
10188 {
10189 return $ac_func ();
10190   ;
10191   return 0;
10192 }
10193 _ACEOF
10194 rm -f conftest.$ac_objext conftest$ac_exeext
10195 if { (ac_try="$ac_link"
10196 case "(($ac_try" in
10197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10198   *) ac_try_echo=$ac_try;;
10199 esac
10200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10201   (eval "$ac_link") 2>conftest.er1
10202   ac_status=$?
10203   grep -v '^ *+' conftest.er1 >conftest.err
10204   rm -f conftest.er1
10205   cat conftest.err >&5
10206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10207   (exit $ac_status); } && {
10208          test -z "$ac_c_werror_flag" ||
10209          test ! -s conftest.err
10210        } && test -s conftest$ac_exeext &&
10211        $as_test_x conftest$ac_exeext; then
10212   eval "$as_ac_var=yes"
10213 else
10214   echo "$as_me: failed program was:" >&5
10215 sed 's/^/| /' conftest.$ac_ext >&5
10216
10217         eval "$as_ac_var=no"
10218 fi
10219
10220 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10221       conftest$ac_exeext conftest.$ac_ext
10222 fi
10223 ac_res=`eval echo '${'$as_ac_var'}'`
10224                { echo "$as_me:$LINENO: result: $ac_res" >&5
10225 echo "${ECHO_T}$ac_res" >&6; }
10226 if test `eval echo '${'$as_ac_var'}'` = yes; then
10227   cat >>confdefs.h <<_ACEOF
10228 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10229 _ACEOF
10230
10231 fi
10232 done
10233
10234
10235 for ac_func in strftime
10236 do
10237 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10238 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10239 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10240 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10241   echo $ECHO_N "(cached) $ECHO_C" >&6
10242 else
10243   cat >conftest.$ac_ext <<_ACEOF
10244 /* confdefs.h.  */
10245 _ACEOF
10246 cat confdefs.h >>conftest.$ac_ext
10247 cat >>conftest.$ac_ext <<_ACEOF
10248 /* end confdefs.h.  */
10249 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10250    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10251 #define $ac_func innocuous_$ac_func
10252
10253 /* System header to define __stub macros and hopefully few prototypes,
10254     which can conflict with char $ac_func (); below.
10255     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10256     <limits.h> exists even on freestanding compilers.  */
10257
10258 #ifdef __STDC__
10259 # include <limits.h>
10260 #else
10261 # include <assert.h>
10262 #endif
10263
10264 #undef $ac_func
10265
10266 /* Override any GCC internal prototype to avoid an error.
10267    Use char because int might match the return type of a GCC
10268    builtin and then its argument prototype would still apply.  */
10269 #ifdef __cplusplus
10270 extern "C"
10271 #endif
10272 char $ac_func ();
10273 /* The GNU C library defines this for functions which it implements
10274     to always fail with ENOSYS.  Some functions are actually named
10275     something starting with __ and the normal name is an alias.  */
10276 #if defined __stub_$ac_func || defined __stub___$ac_func
10277 choke me
10278 #endif
10279
10280 int
10281 main ()
10282 {
10283 return $ac_func ();
10284   ;
10285   return 0;
10286 }
10287 _ACEOF
10288 rm -f conftest.$ac_objext conftest$ac_exeext
10289 if { (ac_try="$ac_link"
10290 case "(($ac_try" in
10291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10292   *) ac_try_echo=$ac_try;;
10293 esac
10294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10295   (eval "$ac_link") 2>conftest.er1
10296   ac_status=$?
10297   grep -v '^ *+' conftest.er1 >conftest.err
10298   rm -f conftest.er1
10299   cat conftest.err >&5
10300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10301   (exit $ac_status); } && {
10302          test -z "$ac_c_werror_flag" ||
10303          test ! -s conftest.err
10304        } && test -s conftest$ac_exeext &&
10305        $as_test_x conftest$ac_exeext; then
10306   eval "$as_ac_var=yes"
10307 else
10308   echo "$as_me: failed program was:" >&5
10309 sed 's/^/| /' conftest.$ac_ext >&5
10310
10311         eval "$as_ac_var=no"
10312 fi
10313
10314 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10315       conftest$ac_exeext conftest.$ac_ext
10316 fi
10317 ac_res=`eval echo '${'$as_ac_var'}'`
10318                { echo "$as_me:$LINENO: result: $ac_res" >&5
10319 echo "${ECHO_T}$ac_res" >&6; }
10320 if test `eval echo '${'$as_ac_var'}'` = yes; then
10321   cat >>confdefs.h <<_ACEOF
10322 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10323 _ACEOF
10324
10325 else
10326   # strftime is in -lintl on SCO UNIX.
10327 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
10328 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
10329 if test "${ac_cv_lib_intl_strftime+set}" = set; then
10330   echo $ECHO_N "(cached) $ECHO_C" >&6
10331 else
10332   ac_check_lib_save_LIBS=$LIBS
10333 LIBS="-lintl  $LIBS"
10334 cat >conftest.$ac_ext <<_ACEOF
10335 /* confdefs.h.  */
10336 _ACEOF
10337 cat confdefs.h >>conftest.$ac_ext
10338 cat >>conftest.$ac_ext <<_ACEOF
10339 /* end confdefs.h.  */
10340
10341 /* Override any GCC internal prototype to avoid an error.
10342    Use char because int might match the return type of a GCC
10343    builtin and then its argument prototype would still apply.  */
10344 #ifdef __cplusplus
10345 extern "C"
10346 #endif
10347 char strftime ();
10348 int
10349 main ()
10350 {
10351 return strftime ();
10352   ;
10353   return 0;
10354 }
10355 _ACEOF
10356 rm -f conftest.$ac_objext conftest$ac_exeext
10357 if { (ac_try="$ac_link"
10358 case "(($ac_try" in
10359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10360   *) ac_try_echo=$ac_try;;
10361 esac
10362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10363   (eval "$ac_link") 2>conftest.er1
10364   ac_status=$?
10365   grep -v '^ *+' conftest.er1 >conftest.err
10366   rm -f conftest.er1
10367   cat conftest.err >&5
10368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10369   (exit $ac_status); } && {
10370          test -z "$ac_c_werror_flag" ||
10371          test ! -s conftest.err
10372        } && test -s conftest$ac_exeext &&
10373        $as_test_x conftest$ac_exeext; then
10374   ac_cv_lib_intl_strftime=yes
10375 else
10376   echo "$as_me: failed program was:" >&5
10377 sed 's/^/| /' conftest.$ac_ext >&5
10378
10379         ac_cv_lib_intl_strftime=no
10380 fi
10381
10382 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10383       conftest$ac_exeext conftest.$ac_ext
10384 LIBS=$ac_check_lib_save_LIBS
10385 fi
10386 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
10387 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
10388 if test $ac_cv_lib_intl_strftime = yes; then
10389   cat >>confdefs.h <<\_ACEOF
10390 #define HAVE_STRFTIME 1
10391 _ACEOF
10392
10393 LIBS="-lintl $LIBS"
10394 fi
10395
10396 fi
10397 done
10398
10399 { echo "$as_me:$LINENO: checking for wait3 that fills in rusage" >&5
10400 echo $ECHO_N "checking for wait3 that fills in rusage... $ECHO_C" >&6; }
10401 if test "${ac_cv_func_wait3_rusage+set}" = set; then
10402   echo $ECHO_N "(cached) $ECHO_C" >&6
10403 else
10404   if test "$cross_compiling" = yes; then
10405   ac_cv_func_wait3_rusage=no
10406 else
10407   cat >conftest.$ac_ext <<_ACEOF
10408 /* confdefs.h.  */
10409 _ACEOF
10410 cat confdefs.h >>conftest.$ac_ext
10411 cat >>conftest.$ac_ext <<_ACEOF
10412 /* end confdefs.h.  */
10413 $ac_includes_default
10414 #include <sys/time.h>
10415 #include <sys/resource.h>
10416 #include <sys/wait.h>
10417 /* HP-UX has wait3 but does not fill in rusage at all.  */
10418 int
10419 main ()
10420 {
10421   struct rusage r;
10422   int i;
10423   /* Use a field that we can force nonzero --
10424      voluntary context switches.
10425      For systems like NeXT and OSF/1 that don't set it,
10426      also use the system CPU time.  And page faults (I/O) for Linux.  */
10427   r.ru_nvcsw = 0;
10428   r.ru_stime.tv_sec = 0;
10429   r.ru_stime.tv_usec = 0;
10430   r.ru_majflt = r.ru_minflt = 0;
10431   switch (fork ())
10432     {
10433     case 0: /* Child.  */
10434       sleep(1); /* Give up the CPU.  */
10435       _exit(0);
10436       break;
10437     case -1: /* What can we do?  */
10438       _exit(0);
10439       break;
10440     default: /* Parent.  */
10441       wait3(&i, 0, &r);
10442       /* Avoid "text file busy" from rm on fast HP-UX machines.  */
10443       sleep(2);
10444       return (r.ru_nvcsw == 0 && r.ru_majflt == 0 && r.ru_minflt == 0
10445               && r.ru_stime.tv_sec == 0 && r.ru_stime.tv_usec == 0);
10446     }
10447 }
10448 _ACEOF
10449 rm -f conftest$ac_exeext
10450 if { (ac_try="$ac_link"
10451 case "(($ac_try" in
10452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10453   *) ac_try_echo=$ac_try;;
10454 esac
10455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10456   (eval "$ac_link") 2>&5
10457   ac_status=$?
10458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10459   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10460   { (case "(($ac_try" in
10461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10462   *) ac_try_echo=$ac_try;;
10463 esac
10464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10465   (eval "$ac_try") 2>&5
10466   ac_status=$?
10467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10468   (exit $ac_status); }; }; then
10469   ac_cv_func_wait3_rusage=yes
10470 else
10471   echo "$as_me: program exited with status $ac_status" >&5
10472 echo "$as_me: failed program was:" >&5
10473 sed 's/^/| /' conftest.$ac_ext >&5
10474
10475 ( exit $ac_status )
10476 ac_cv_func_wait3_rusage=no
10477 fi
10478 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10479 fi
10480
10481
10482 fi
10483 { echo "$as_me:$LINENO: result: $ac_cv_func_wait3_rusage" >&5
10484 echo "${ECHO_T}$ac_cv_func_wait3_rusage" >&6; }
10485 if test $ac_cv_func_wait3_rusage = yes; then
10486
10487 cat >>confdefs.h <<\_ACEOF
10488 #define HAVE_WAIT3 1
10489 _ACEOF
10490
10491 fi
10492
10493 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
10494 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
10495 if test "${ac_cv_func_setpgrp_void+set}" = set; then
10496   echo $ECHO_N "(cached) $ECHO_C" >&6
10497 else
10498   if test "$cross_compiling" = yes; then
10499   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
10500 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
10501    { (exit 1); exit 1; }; }
10502 else
10503   cat >conftest.$ac_ext <<_ACEOF
10504 /* confdefs.h.  */
10505 _ACEOF
10506 cat confdefs.h >>conftest.$ac_ext
10507 cat >>conftest.$ac_ext <<_ACEOF
10508 /* end confdefs.h.  */
10509 $ac_includes_default
10510 int
10511 main ()
10512 {
10513 /* If this system has a BSD-style setpgrp which takes arguments,
10514   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
10515   exit successfully. */
10516   return setpgrp (1,1) != -1;
10517   ;
10518   return 0;
10519 }
10520 _ACEOF
10521 rm -f conftest$ac_exeext
10522 if { (ac_try="$ac_link"
10523 case "(($ac_try" in
10524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10525   *) ac_try_echo=$ac_try;;
10526 esac
10527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10528   (eval "$ac_link") 2>&5
10529   ac_status=$?
10530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10531   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10532   { (case "(($ac_try" in
10533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10534   *) ac_try_echo=$ac_try;;
10535 esac
10536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10537   (eval "$ac_try") 2>&5
10538   ac_status=$?
10539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10540   (exit $ac_status); }; }; then
10541   ac_cv_func_setpgrp_void=no
10542 else
10543   echo "$as_me: program exited with status $ac_status" >&5
10544 echo "$as_me: failed program was:" >&5
10545 sed 's/^/| /' conftest.$ac_ext >&5
10546
10547 ( exit $ac_status )
10548 ac_cv_func_setpgrp_void=yes
10549 fi
10550 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10551 fi
10552
10553
10554 fi
10555 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
10556 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
10557 if test $ac_cv_func_setpgrp_void = yes; then
10558
10559 cat >>confdefs.h <<\_ACEOF
10560 #define SETPGRP_VOID 1
10561 _ACEOF
10562
10563 fi
10564
10565 case "$host_os" in
10566   *cygwin*)
10567     ;;
10568   *)
10569
10570   { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
10571 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
10572 if test "${am_cv_langinfo_codeset+set}" = set; then
10573   echo $ECHO_N "(cached) $ECHO_C" >&6
10574 else
10575   cat >conftest.$ac_ext <<_ACEOF
10576 /* confdefs.h.  */
10577 _ACEOF
10578 cat confdefs.h >>conftest.$ac_ext
10579 cat >>conftest.$ac_ext <<_ACEOF
10580 /* end confdefs.h.  */
10581 #include <langinfo.h>
10582 int
10583 main ()
10584 {
10585 char* cs = nl_langinfo(CODESET);
10586   ;
10587   return 0;
10588 }
10589 _ACEOF
10590 rm -f conftest.$ac_objext conftest$ac_exeext
10591 if { (ac_try="$ac_link"
10592 case "(($ac_try" in
10593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10594   *) ac_try_echo=$ac_try;;
10595 esac
10596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10597   (eval "$ac_link") 2>conftest.er1
10598   ac_status=$?
10599   grep -v '^ *+' conftest.er1 >conftest.err
10600   rm -f conftest.er1
10601   cat conftest.err >&5
10602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10603   (exit $ac_status); } && {
10604          test -z "$ac_c_werror_flag" ||
10605          test ! -s conftest.err
10606        } && test -s conftest$ac_exeext &&
10607        $as_test_x conftest$ac_exeext; then
10608   am_cv_langinfo_codeset=yes
10609 else
10610   echo "$as_me: failed program was:" >&5
10611 sed 's/^/| /' conftest.$ac_ext >&5
10612
10613         am_cv_langinfo_codeset=no
10614 fi
10615
10616 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10617       conftest$ac_exeext conftest.$ac_ext
10618
10619 fi
10620 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
10621 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
10622   if test $am_cv_langinfo_codeset = yes; then
10623
10624 cat >>confdefs.h <<\_ACEOF
10625 #define HAVE_LANGINFO_CODESET 1
10626 _ACEOF
10627
10628   fi
10629
10630     ;;
10631 esac
10632
10633 { echo "$as_me:$LINENO: checking for sys_errlist" >&5
10634 echo $ECHO_N "checking for sys_errlist... $ECHO_C" >&6; }
10635 cat >conftest.$ac_ext <<_ACEOF
10636 /* confdefs.h.  */
10637 _ACEOF
10638 cat confdefs.h >>conftest.$ac_ext
10639 cat >>conftest.$ac_ext <<_ACEOF
10640 /* end confdefs.h.  */
10641 extern char *sys_errlist[];
10642 int
10643 main ()
10644 {
10645 printf(sys_errlist[0]);
10646   ;
10647   return 0;
10648 }
10649 _ACEOF
10650 rm -f conftest.$ac_objext
10651 if { (ac_try="$ac_compile"
10652 case "(($ac_try" in
10653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10654   *) ac_try_echo=$ac_try;;
10655 esac
10656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10657   (eval "$ac_compile") 2>conftest.er1
10658   ac_status=$?
10659   grep -v '^ *+' conftest.er1 >conftest.err
10660   rm -f conftest.er1
10661   cat conftest.err >&5
10662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10663   (exit $ac_status); } && {
10664          test -z "$ac_c_werror_flag" ||
10665          test ! -s conftest.err
10666        } && test -s conftest.$ac_objext; then
10667   have_sys_errlist="yes"; cat >>confdefs.h <<\_ACEOF
10668 #define HAVE_SYS_ERRLIST 1
10669 _ACEOF
10670
10671 else
10672   echo "$as_me: failed program was:" >&5
10673 sed 's/^/| /' conftest.$ac_ext >&5
10674
10675         have_sys_errlist="no"
10676 fi
10677
10678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10679 { echo "$as_me:$LINENO: result: $have_sys_errlist" >&5
10680 echo "${ECHO_T}$have_sys_errlist" >&6; }
10681
10682 { echo "$as_me:$LINENO: checking for sigsetjmp" >&5
10683 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6; }
10684 cat >conftest.$ac_ext <<_ACEOF
10685 /* confdefs.h.  */
10686 _ACEOF
10687 cat confdefs.h >>conftest.$ac_ext
10688 cat >>conftest.$ac_ext <<_ACEOF
10689 /* end confdefs.h.  */
10690 #include <setjmp.h>
10691 int
10692 main ()
10693 {
10694  jmp_buf env;
10695    if (sigsetjmp(env, 1) != 0) { exit(0); } siglongjmp(env, 1);
10696   ;
10697   return 0;
10698 }
10699 _ACEOF
10700 rm -f conftest.$ac_objext
10701 if { (ac_try="$ac_compile"
10702 case "(($ac_try" in
10703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10704   *) ac_try_echo=$ac_try;;
10705 esac
10706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10707   (eval "$ac_compile") 2>conftest.er1
10708   ac_status=$?
10709   grep -v '^ *+' conftest.er1 >conftest.err
10710   rm -f conftest.er1
10711   cat conftest.err >&5
10712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10713   (exit $ac_status); } && {
10714          test -z "$ac_c_werror_flag" ||
10715          test ! -s conftest.err
10716        } && test -s conftest.$ac_objext; then
10717   have_sigsetjmp="yes"; cat >>confdefs.h <<\_ACEOF
10718 #define HAVE_SIGSETJMP 1
10719 _ACEOF
10720
10721 else
10722   echo "$as_me: failed program was:" >&5
10723 sed 's/^/| /' conftest.$ac_ext >&5
10724
10725         have_sigsetjmp="no"
10726 fi
10727
10728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10729 { echo "$as_me:$LINENO: result: $have_sigsetjmp" >&5
10730 echo "${ECHO_T}$have_sigsetjmp" >&6; }
10731 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
10732 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
10733 if test "${ac_cv_type_signal+set}" = set; then
10734   echo $ECHO_N "(cached) $ECHO_C" >&6
10735 else
10736   cat >conftest.$ac_ext <<_ACEOF
10737 /* confdefs.h.  */
10738 _ACEOF
10739 cat confdefs.h >>conftest.$ac_ext
10740 cat >>conftest.$ac_ext <<_ACEOF
10741 /* end confdefs.h.  */
10742 #include <sys/types.h>
10743 #include <signal.h>
10744
10745 int
10746 main ()
10747 {
10748 return *(signal (0, 0)) (0) == 1;
10749   ;
10750   return 0;
10751 }
10752 _ACEOF
10753 rm -f conftest.$ac_objext
10754 if { (ac_try="$ac_compile"
10755 case "(($ac_try" in
10756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10757   *) ac_try_echo=$ac_try;;
10758 esac
10759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10760   (eval "$ac_compile") 2>conftest.er1
10761   ac_status=$?
10762   grep -v '^ *+' conftest.er1 >conftest.err
10763   rm -f conftest.er1
10764   cat conftest.err >&5
10765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10766   (exit $ac_status); } && {
10767          test -z "$ac_c_werror_flag" ||
10768          test ! -s conftest.err
10769        } && test -s conftest.$ac_objext; then
10770   ac_cv_type_signal=int
10771 else
10772   echo "$as_me: failed program was:" >&5
10773 sed 's/^/| /' conftest.$ac_ext >&5
10774
10775         ac_cv_type_signal=void
10776 fi
10777
10778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10779 fi
10780 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
10781 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
10782
10783 cat >>confdefs.h <<_ACEOF
10784 #define RETSIGTYPE $ac_cv_type_signal
10785 _ACEOF
10786
10787
10788
10789
10790  if test x"$ac_cv_type_signal" = xvoid; then
10791   cat >>confdefs.h <<\_ACEOF
10792 #define SIGNAL_RETURN return
10793 _ACEOF
10794
10795  else
10796   cat >>confdefs.h <<\_ACEOF
10797 #define SIGNAL_RETURN return 0
10798 _ACEOF
10799
10800  fi
10801
10802
10803 HELP_DIR="$datadir/$PACKAGE"
10804 cat >>confdefs.h <<\_ACEOF
10805 #define HELP_DIR "$HELP_DIR"
10806 _ACEOF
10807
10808
10809 RC_DIR="~/.$PACKAGE"
10810 cat >>confdefs.h <<\_ACEOF
10811 #define RC_DIR "$RC_DIR"
10812 _ACEOF
10813
10814
10815 DOCDIRS="doc:en_English doc-jp:ja_Japanese"
10816 cat >>confdefs.h <<_ACEOF
10817 #define DOCDIRS "$DOCDIRS"
10818 _ACEOF
10819
10820
10821
10822  cvsver=`$AWK '\$1 ~ /Id:/ { print \$3}' $srcdir/ChangeLog`
10823  sed -e 's/define CURRENT_VERSION "\(.*\)+cvs/define CURRENT_VERSION "\1+cvs-'$cvsver'/' $srcdir/version.c.in > version.c
10824  CURRENT_VERSION=`sed -n 's/.*define CURRENT_VERSION *"w3m\/\(.*\)".*$/\1/p' version.c`
10825 ac_config_files="$ac_config_files Makefile posubst po/Makefile.in scripts/Makefile scripts/dirlist.cgi scripts/w3mhelp.cgi scripts/w3mmail.cgi scripts/xface2xpm scripts/multipart/Makefile scripts/multipart/multipart.cgi scripts/w3mman/Makefile scripts/w3mman/w3mman scripts/w3mman/w3mman.1 scripts/w3mman/w3mman2html.cgi libwc/Makefile w3mimg/Makefile w3mimg/fb/Makefile w3mimg/x11/Makefile w3mhelp-w3m_en.html w3mhelp-w3m_ja.html w3mhelp-lynx_en.html w3mhelp-lynx_ja.html"
10826
10827 cat >confcache <<\_ACEOF
10828 # This file is a shell script that caches the results of configure
10829 # tests run on this system so they can be shared between configure
10830 # scripts and configure runs, see configure's option --config-cache.
10831 # It is not useful on other systems.  If it contains results you don't
10832 # want to keep, you may remove or edit it.
10833 #
10834 # config.status only pays attention to the cache file if you give it
10835 # the --recheck option to rerun configure.
10836 #
10837 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10838 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10839 # following values.
10840
10841 _ACEOF
10842
10843 # The following way of writing the cache mishandles newlines in values,
10844 # but we know of no workaround that is simple, portable, and efficient.
10845 # So, we kill variables containing newlines.
10846 # Ultrix sh set writes to stderr and can't be redirected directly,
10847 # and sets the high bit in the cache file unless we assign to the vars.
10848 (
10849   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10850     eval ac_val=\$$ac_var
10851     case $ac_val in #(
10852     *${as_nl}*)
10853       case $ac_var in #(
10854       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
10855 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
10856       esac
10857       case $ac_var in #(
10858       _ | IFS | as_nl) ;; #(
10859       *) $as_unset $ac_var ;;
10860       esac ;;
10861     esac
10862   done
10863
10864   (set) 2>&1 |
10865     case $as_nl`(ac_space=' '; set) 2>&1` in #(
10866     *${as_nl}ac_space=\ *)
10867       # `set' does not quote correctly, so add quotes (double-quote
10868       # substitution turns \\\\ into \\, and sed turns \\ into \).
10869       sed -n \
10870         "s/'/'\\\\''/g;
10871           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10872       ;; #(
10873     *)
10874       # `set' quotes correctly as required by POSIX, so do not add quotes.
10875       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10876       ;;
10877     esac |
10878     sort
10879 ) |
10880   sed '
10881      /^ac_cv_env_/b end
10882      t clear
10883      :clear
10884      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10885      t end
10886      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10887      :end' >>confcache
10888 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10889   if test -w "$cache_file"; then
10890     test "x$cache_file" != "x/dev/null" &&
10891       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
10892 echo "$as_me: updating cache $cache_file" >&6;}
10893     cat confcache >$cache_file
10894   else
10895     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
10896 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10897   fi
10898 fi
10899 rm -f confcache
10900
10901 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10902 # Let make expand exec_prefix.
10903 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10904
10905 DEFS=-DHAVE_CONFIG_H
10906
10907 ac_libobjs=
10908 ac_ltlibobjs=
10909 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10910   # 1. Remove the extension, and $U if already installed.
10911   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10912   ac_i=`echo "$ac_i" | sed "$ac_script"`
10913   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
10914   #    will be set to the directory where LIBOBJS objects are built.
10915   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10916   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
10917 done
10918 LIBOBJS=$ac_libobjs
10919
10920 LTLIBOBJS=$ac_ltlibobjs
10921
10922
10923
10924 : ${CONFIG_STATUS=./config.status}
10925 ac_clean_files_save=$ac_clean_files
10926 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10927 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10928 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10929 cat >$CONFIG_STATUS <<_ACEOF
10930 #! $SHELL
10931 # Generated by $as_me.
10932 # Run this file to recreate the current configuration.
10933 # Compiler output produced by configure, useful for debugging
10934 # configure, is in config.log if it exists.
10935
10936 debug=false
10937 ac_cs_recheck=false
10938 ac_cs_silent=false
10939 SHELL=\${CONFIG_SHELL-$SHELL}
10940 _ACEOF
10941
10942 cat >>$CONFIG_STATUS <<\_ACEOF
10943 ## --------------------- ##
10944 ## M4sh Initialization.  ##
10945 ## --------------------- ##
10946
10947 # Be more Bourne compatible
10948 DUALCASE=1; export DUALCASE # for MKS sh
10949 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10950   emulate sh
10951   NULLCMD=:
10952   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10953   # is contrary to our usage.  Disable this feature.
10954   alias -g '${1+"$@"}'='"$@"'
10955   setopt NO_GLOB_SUBST
10956 else
10957   case `(set -o) 2>/dev/null` in
10958   *posix*) set -o posix ;;
10959 esac
10960
10961 fi
10962
10963
10964
10965
10966 # PATH needs CR
10967 # Avoid depending upon Character Ranges.
10968 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10969 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10970 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10971 as_cr_digits='0123456789'
10972 as_cr_alnum=$as_cr_Letters$as_cr_digits
10973
10974 # The user is always right.
10975 if test "${PATH_SEPARATOR+set}" != set; then
10976   echo "#! /bin/sh" >conf$$.sh
10977   echo  "exit 0"   >>conf$$.sh
10978   chmod +x conf$$.sh
10979   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10980     PATH_SEPARATOR=';'
10981   else
10982     PATH_SEPARATOR=:
10983   fi
10984   rm -f conf$$.sh
10985 fi
10986
10987 # Support unset when possible.
10988 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10989   as_unset=unset
10990 else
10991   as_unset=false
10992 fi
10993
10994
10995 # IFS
10996 # We need space, tab and new line, in precisely that order.  Quoting is
10997 # there to prevent editors from complaining about space-tab.
10998 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10999 # splitting by setting IFS to empty value.)
11000 as_nl='
11001 '
11002 IFS=" ""        $as_nl"
11003
11004 # Find who we are.  Look in the path if we contain no directory separator.
11005 case $0 in
11006   *[\\/]* ) as_myself=$0 ;;
11007   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11008 for as_dir in $PATH
11009 do
11010   IFS=$as_save_IFS
11011   test -z "$as_dir" && as_dir=.
11012   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11013 done
11014 IFS=$as_save_IFS
11015
11016      ;;
11017 esac
11018 # We did not find ourselves, most probably we were run as `sh COMMAND'
11019 # in which case we are not to be found in the path.
11020 if test "x$as_myself" = x; then
11021   as_myself=$0
11022 fi
11023 if test ! -f "$as_myself"; then
11024   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11025   { (exit 1); exit 1; }
11026 fi
11027
11028 # Work around bugs in pre-3.0 UWIN ksh.
11029 for as_var in ENV MAIL MAILPATH
11030 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11031 done
11032 PS1='$ '
11033 PS2='> '
11034 PS4='+ '
11035
11036 # NLS nuisances.
11037 for as_var in \
11038   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11039   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11040   LC_TELEPHONE LC_TIME
11041 do
11042   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11043     eval $as_var=C; export $as_var
11044   else
11045     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11046   fi
11047 done
11048
11049 # Required to use basename.
11050 if expr a : '\(a\)' >/dev/null 2>&1 &&
11051    test "X`expr 00001 : '.*\(...\)'`" = X001; then
11052   as_expr=expr
11053 else
11054   as_expr=false
11055 fi
11056
11057 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11058   as_basename=basename
11059 else
11060   as_basename=false
11061 fi
11062
11063
11064 # Name of the executable.
11065 as_me=`$as_basename -- "$0" ||
11066 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11067          X"$0" : 'X\(//\)$' \| \
11068          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11069 echo X/"$0" |
11070     sed '/^.*\/\([^/][^/]*\)\/*$/{
11071             s//\1/
11072             q
11073           }
11074           /^X\/\(\/\/\)$/{
11075             s//\1/
11076             q
11077           }
11078           /^X\/\(\/\).*/{
11079             s//\1/
11080             q
11081           }
11082           s/.*/./; q'`
11083
11084 # CDPATH.
11085 $as_unset CDPATH
11086
11087
11088
11089   as_lineno_1=$LINENO
11090   as_lineno_2=$LINENO
11091   test "x$as_lineno_1" != "x$as_lineno_2" &&
11092   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
11093
11094   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11095   # uniformly replaced by the line number.  The first 'sed' inserts a
11096   # line-number line after each line using $LINENO; the second 'sed'
11097   # does the real work.  The second script uses 'N' to pair each
11098   # line-number line with the line containing $LINENO, and appends
11099   # trailing '-' during substitution so that $LINENO is not a special
11100   # case at line end.
11101   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11102   # scripts with optimization help from Paolo Bonzini.  Blame Lee
11103   # E. McMahon (1931-1989) for sed's syntax.  :-)
11104   sed -n '
11105     p
11106     /[$]LINENO/=
11107   ' <$as_myself |
11108     sed '
11109       s/[$]LINENO.*/&-/
11110       t lineno
11111       b
11112       :lineno
11113       N
11114       :loop
11115       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
11116       t loop
11117       s/-\n.*//
11118     ' >$as_me.lineno &&
11119   chmod +x "$as_me.lineno" ||
11120     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
11121    { (exit 1); exit 1; }; }
11122
11123   # Don't try to exec as it changes $[0], causing all sort of problems
11124   # (the dirname of $[0] is not the place where we might find the
11125   # original and so on.  Autoconf is especially sensitive to this).
11126   . "./$as_me.lineno"
11127   # Exit status is that of the last command.
11128   exit
11129 }
11130
11131
11132 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11133   as_dirname=dirname
11134 else
11135   as_dirname=false
11136 fi
11137
11138 ECHO_C= ECHO_N= ECHO_T=
11139 case `echo -n x` in
11140 -n*)
11141   case `echo 'x\c'` in
11142   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
11143   *)   ECHO_C='\c';;
11144   esac;;
11145 *)
11146   ECHO_N='-n';;
11147 esac
11148
11149 if expr a : '\(a\)' >/dev/null 2>&1 &&
11150    test "X`expr 00001 : '.*\(...\)'`" = X001; then
11151   as_expr=expr
11152 else
11153   as_expr=false
11154 fi
11155
11156 rm -f conf$$ conf$$.exe conf$$.file
11157 if test -d conf$$.dir; then
11158   rm -f conf$$.dir/conf$$.file
11159 else
11160   rm -f conf$$.dir
11161   mkdir conf$$.dir
11162 fi
11163 echo >conf$$.file
11164 if ln -s conf$$.file conf$$ 2>/dev/null; then
11165   as_ln_s='ln -s'
11166   # ... but there are two gotchas:
11167   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11168   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11169   # In both cases, we have to default to `cp -p'.
11170   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11171     as_ln_s='cp -p'
11172 elif ln conf$$.file conf$$ 2>/dev/null; then
11173   as_ln_s=ln
11174 else
11175   as_ln_s='cp -p'
11176 fi
11177 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11178 rmdir conf$$.dir 2>/dev/null
11179
11180 if mkdir -p . 2>/dev/null; then
11181   as_mkdir_p=:
11182 else
11183   test -d ./-p && rmdir ./-p
11184   as_mkdir_p=false
11185 fi
11186
11187 if test -x / >/dev/null 2>&1; then
11188   as_test_x='test -x'
11189 else
11190   if ls -dL / >/dev/null 2>&1; then
11191     as_ls_L_option=L
11192   else
11193     as_ls_L_option=
11194   fi
11195   as_test_x='
11196     eval sh -c '\''
11197       if test -d "$1"; then
11198         test -d "$1/.";
11199       else
11200         case $1 in
11201         -*)set "./$1";;
11202         esac;
11203         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
11204         ???[sx]*):;;*)false;;esac;fi
11205     '\'' sh
11206   '
11207 fi
11208 as_executable_p=$as_test_x
11209
11210 # Sed expression to map a string onto a valid CPP name.
11211 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11212
11213 # Sed expression to map a string onto a valid variable name.
11214 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11215
11216
11217 exec 6>&1
11218
11219 # Save the log message, to keep $[0] and so on meaningful, and to
11220 # report actual input values of CONFIG_FILES etc. instead of their
11221 # values after options handling.
11222 ac_log="
11223 This file was extended by w3m $as_me 0.5.2, which was
11224 generated by GNU Autoconf 2.61.  Invocation command line was
11225
11226   CONFIG_FILES    = $CONFIG_FILES
11227   CONFIG_HEADERS  = $CONFIG_HEADERS
11228   CONFIG_LINKS    = $CONFIG_LINKS
11229   CONFIG_COMMANDS = $CONFIG_COMMANDS
11230   $ $0 $@
11231
11232 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11233 "
11234
11235 _ACEOF
11236
11237 cat >>$CONFIG_STATUS <<_ACEOF
11238 # Files that config.status was made for.
11239 config_files="$ac_config_files"
11240 config_headers="$ac_config_headers"
11241 config_commands="$ac_config_commands"
11242
11243 _ACEOF
11244
11245 cat >>$CONFIG_STATUS <<\_ACEOF
11246 ac_cs_usage="\
11247 \`$as_me' instantiates files from templates according to the
11248 current configuration.
11249
11250 Usage: $0 [OPTIONS] [FILE]...
11251
11252   -h, --help       print this help, then exit
11253   -V, --version    print version number and configuration settings, then exit
11254   -q, --quiet      do not print progress messages
11255   -d, --debug      don't remove temporary files
11256       --recheck    update $as_me by reconfiguring in the same conditions
11257   --file=FILE[:TEMPLATE]
11258                    instantiate the configuration file FILE
11259   --header=FILE[:TEMPLATE]
11260                    instantiate the configuration header FILE
11261
11262 Configuration files:
11263 $config_files
11264
11265 Configuration headers:
11266 $config_headers
11267
11268 Configuration commands:
11269 $config_commands
11270
11271 Report bugs to <bug-autoconf@gnu.org>."
11272
11273 _ACEOF
11274 cat >>$CONFIG_STATUS <<_ACEOF
11275 ac_cs_version="\\
11276 w3m config.status 0.5.2
11277 configured by $0, generated by GNU Autoconf 2.61,
11278   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
11279
11280 Copyright (C) 2006 Free Software Foundation, Inc.
11281 This config.status script is free software; the Free Software Foundation
11282 gives unlimited permission to copy, distribute and modify it."
11283
11284 ac_pwd='$ac_pwd'
11285 srcdir='$srcdir'
11286 INSTALL='$INSTALL'
11287 _ACEOF
11288
11289 cat >>$CONFIG_STATUS <<\_ACEOF
11290 # If no file are specified by the user, then we need to provide default
11291 # value.  By we need to know if files were specified by the user.
11292 ac_need_defaults=:
11293 while test $# != 0
11294 do
11295   case $1 in
11296   --*=*)
11297     ac_option=`expr "X$1" : 'X\([^=]*\)='`
11298     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11299     ac_shift=:
11300     ;;
11301   *)
11302     ac_option=$1
11303     ac_optarg=$2
11304     ac_shift=shift
11305     ;;
11306   esac
11307
11308   case $ac_option in
11309   # Handling of the options.
11310   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11311     ac_cs_recheck=: ;;
11312   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11313     echo "$ac_cs_version"; exit ;;
11314   --debug | --debu | --deb | --de | --d | -d )
11315     debug=: ;;
11316   --file | --fil | --fi | --f )
11317     $ac_shift
11318     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11319     ac_need_defaults=false;;
11320   --header | --heade | --head | --hea )
11321     $ac_shift
11322     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11323     ac_need_defaults=false;;
11324   --he | --h)
11325     # Conflict between --help and --header
11326     { echo "$as_me: error: ambiguous option: $1
11327 Try \`$0 --help' for more information." >&2
11328    { (exit 1); exit 1; }; };;
11329   --help | --hel | -h )
11330     echo "$ac_cs_usage"; exit ;;
11331   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11332   | -silent | --silent | --silen | --sile | --sil | --si | --s)
11333     ac_cs_silent=: ;;
11334
11335   # This is an error.
11336   -*) { echo "$as_me: error: unrecognized option: $1
11337 Try \`$0 --help' for more information." >&2
11338    { (exit 1); exit 1; }; } ;;
11339
11340   *) ac_config_targets="$ac_config_targets $1"
11341      ac_need_defaults=false ;;
11342
11343   esac
11344   shift
11345 done
11346
11347 ac_configure_extra_args=
11348
11349 if $ac_cs_silent; then
11350   exec 6>/dev/null
11351   ac_configure_extra_args="$ac_configure_extra_args --silent"
11352 fi
11353
11354 _ACEOF
11355 cat >>$CONFIG_STATUS <<_ACEOF
11356 if \$ac_cs_recheck; then
11357   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11358   CONFIG_SHELL=$SHELL
11359   export CONFIG_SHELL
11360   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11361 fi
11362
11363 _ACEOF
11364 cat >>$CONFIG_STATUS <<\_ACEOF
11365 exec 5>>config.log
11366 {
11367   echo
11368   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11369 ## Running $as_me. ##
11370 _ASBOX
11371   echo "$ac_log"
11372 } >&5
11373
11374 _ACEOF
11375 cat >>$CONFIG_STATUS <<_ACEOF
11376 #
11377 # INIT-COMMANDS
11378 #
11379 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
11380     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
11381     # from automake.
11382     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
11383     # Capture the value of LINGUAS because we need it to compute CATALOGS.
11384     LINGUAS="${LINGUAS-%UNSET%}"
11385
11386
11387 _ACEOF
11388
11389 cat >>$CONFIG_STATUS <<\_ACEOF
11390
11391 # Handling of arguments.
11392 for ac_config_target in $ac_config_targets
11393 do
11394   case $ac_config_target in
11395     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11396     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
11397     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11398     "posubst") CONFIG_FILES="$CONFIG_FILES posubst" ;;
11399     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
11400     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
11401     "scripts/dirlist.cgi") CONFIG_FILES="$CONFIG_FILES scripts/dirlist.cgi" ;;
11402     "scripts/w3mhelp.cgi") CONFIG_FILES="$CONFIG_FILES scripts/w3mhelp.cgi" ;;
11403     "scripts/w3mmail.cgi") CONFIG_FILES="$CONFIG_FILES scripts/w3mmail.cgi" ;;
11404     "scripts/xface2xpm") CONFIG_FILES="$CONFIG_FILES scripts/xface2xpm" ;;
11405     "scripts/multipart/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/multipart/Makefile" ;;
11406     "scripts/multipart/multipart.cgi") CONFIG_FILES="$CONFIG_FILES scripts/multipart/multipart.cgi" ;;
11407     "scripts/w3mman/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/w3mman/Makefile" ;;
11408     "scripts/w3mman/w3mman") CONFIG_FILES="$CONFIG_FILES scripts/w3mman/w3mman" ;;
11409     "scripts/w3mman/w3mman.1") CONFIG_FILES="$CONFIG_FILES scripts/w3mman/w3mman.1" ;;
11410     "scripts/w3mman/w3mman2html.cgi") CONFIG_FILES="$CONFIG_FILES scripts/w3mman/w3mman2html.cgi" ;;
11411     "libwc/Makefile") CONFIG_FILES="$CONFIG_FILES libwc/Makefile" ;;
11412     "w3mimg/Makefile") CONFIG_FILES="$CONFIG_FILES w3mimg/Makefile" ;;
11413     "w3mimg/fb/Makefile") CONFIG_FILES="$CONFIG_FILES w3mimg/fb/Makefile" ;;
11414     "w3mimg/x11/Makefile") CONFIG_FILES="$CONFIG_FILES w3mimg/x11/Makefile" ;;
11415     "w3mhelp-w3m_en.html") CONFIG_FILES="$CONFIG_FILES w3mhelp-w3m_en.html" ;;
11416     "w3mhelp-w3m_ja.html") CONFIG_FILES="$CONFIG_FILES w3mhelp-w3m_ja.html" ;;
11417     "w3mhelp-lynx_en.html") CONFIG_FILES="$CONFIG_FILES w3mhelp-lynx_en.html" ;;
11418     "w3mhelp-lynx_ja.html") CONFIG_FILES="$CONFIG_FILES w3mhelp-lynx_ja.html" ;;
11419
11420   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11421 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11422    { (exit 1); exit 1; }; };;
11423   esac
11424 done
11425
11426
11427 # If the user did not use the arguments to specify the items to instantiate,
11428 # then the envvar interface is used.  Set only those that are not.
11429 # We use the long form for the default assignment because of an extremely
11430 # bizarre bug on SunOS 4.1.3.
11431 if $ac_need_defaults; then
11432   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11433   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11434   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11435 fi
11436
11437 # Have a temporary directory for convenience.  Make it in the build tree
11438 # simply because there is no reason against having it here, and in addition,
11439 # creating and moving files from /tmp can sometimes cause problems.
11440 # Hook for its removal unless debugging.
11441 # Note that there is a small window in which the directory will not be cleaned:
11442 # after its creation but before its name has been assigned to `$tmp'.
11443 $debug ||
11444 {
11445   tmp=
11446   trap 'exit_status=$?
11447   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11448 ' 0
11449   trap '{ (exit 1); exit 1; }' 1 2 13 15
11450 }
11451 # Create a (secure) tmp directory for tmp files.
11452
11453 {
11454   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11455   test -n "$tmp" && test -d "$tmp"
11456 }  ||
11457 {
11458   tmp=./conf$$-$RANDOM
11459   (umask 077 && mkdir "$tmp")
11460 } ||
11461 {
11462    echo "$me: cannot create a temporary directory in ." >&2
11463    { (exit 1); exit 1; }
11464 }
11465
11466 #
11467 # Set up the sed scripts for CONFIG_FILES section.
11468 #
11469
11470 # No need to generate the scripts if there are no CONFIG_FILES.
11471 # This happens for instance when ./config.status config.h
11472 if test -n "$CONFIG_FILES"; then
11473
11474 _ACEOF
11475
11476
11477
11478 ac_delim='%!_!# '
11479 for ac_last_try in false false false false false :; do
11480   cat >conf$$subs.sed <<_ACEOF
11481 SHELL!$SHELL$ac_delim
11482 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
11483 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
11484 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
11485 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
11486 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
11487 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
11488 exec_prefix!$exec_prefix$ac_delim
11489 prefix!$prefix$ac_delim
11490 program_transform_name!$program_transform_name$ac_delim
11491 bindir!$bindir$ac_delim
11492 sbindir!$sbindir$ac_delim
11493 libexecdir!$libexecdir$ac_delim
11494 datarootdir!$datarootdir$ac_delim
11495 datadir!$datadir$ac_delim
11496 sysconfdir!$sysconfdir$ac_delim
11497 sharedstatedir!$sharedstatedir$ac_delim
11498 localstatedir!$localstatedir$ac_delim
11499 includedir!$includedir$ac_delim
11500 oldincludedir!$oldincludedir$ac_delim
11501 docdir!$docdir$ac_delim
11502 infodir!$infodir$ac_delim
11503 htmldir!$htmldir$ac_delim
11504 dvidir!$dvidir$ac_delim
11505 pdfdir!$pdfdir$ac_delim
11506 psdir!$psdir$ac_delim
11507 libdir!$libdir$ac_delim
11508 localedir!$localedir$ac_delim
11509 mandir!$mandir$ac_delim
11510 DEFS!$DEFS$ac_delim
11511 ECHO_C!$ECHO_C$ac_delim
11512 ECHO_N!$ECHO_N$ac_delim
11513 ECHO_T!$ECHO_T$ac_delim
11514 LIBS!$LIBS$ac_delim
11515 build_alias!$build_alias$ac_delim
11516 host_alias!$host_alias$ac_delim
11517 target_alias!$target_alias$ac_delim
11518 PACKAGE!$PACKAGE$ac_delim
11519 VERSION!$VERSION$ac_delim
11520 W3M!$W3M$ac_delim
11521 W3M_LANG!$W3M_LANG$ac_delim
11522 AWK!$AWK$ac_delim
11523 CC!$CC$ac_delim
11524 CFLAGS!$CFLAGS$ac_delim
11525 LDFLAGS!$LDFLAGS$ac_delim
11526 CPPFLAGS!$CPPFLAGS$ac_delim
11527 ac_ct_CC!$ac_ct_CC$ac_delim
11528 EXEEXT!$EXEEXT$ac_delim
11529 OBJEXT!$OBJEXT$ac_delim
11530 CPP!$CPP$ac_delim
11531 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
11532 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
11533 INSTALL_DATA!$INSTALL_DATA$ac_delim
11534 LN_S!$LN_S$ac_delim
11535 SET_MAKE!$SET_MAKE$ac_delim
11536 RANLIB!$RANLIB$ac_delim
11537 PERL!$PERL$ac_delim
11538 NKF!$NKF$ac_delim
11539 MAN!$MAN$ac_delim
11540 build!$build$ac_delim
11541 build_cpu!$build_cpu$ac_delim
11542 build_vendor!$build_vendor$ac_delim
11543 build_os!$build_os$ac_delim
11544 host!$host$ac_delim
11545 host_cpu!$host_cpu$ac_delim
11546 host_vendor!$host_vendor$ac_delim
11547 host_os!$host_os$ac_delim
11548 W3M_TARGET!$W3M_TARGET$ac_delim
11549 W3M_LIBS!$W3M_LIBS$ac_delim
11550 USE_M17N!$USE_M17N$ac_delim
11551 USE_UNICODE!$USE_UNICODE$ac_delim
11552 WCTARGET!$WCTARGET$ac_delim
11553 WCCFLAGS!$WCCFLAGS$ac_delim
11554 DISPLAY_CHARSET!$DISPLAY_CHARSET$ac_delim
11555 SYSTEM_CHARSET!$SYSTEM_CHARSET$ac_delim
11556 DOCUMENT_CHARSET!$DOCUMENT_CHARSET$ac_delim
11557 POSUBST!$POSUBST$ac_delim
11558 POLANG!$POLANG$ac_delim
11559 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
11560 USE_NLS!$USE_NLS$ac_delim
11561 MSGFMT!$MSGFMT$ac_delim
11562 GMSGFMT!$GMSGFMT$ac_delim
11563 XGETTEXT!$XGETTEXT$ac_delim
11564 MSGMERGE!$MSGMERGE$ac_delim
11565 LIBICONV!$LIBICONV$ac_delim
11566 LTLIBICONV!$LTLIBICONV$ac_delim
11567 INTLLIBS!$INTLLIBS$ac_delim
11568 LIBINTL!$LIBINTL$ac_delim
11569 LTLIBINTL!$LTLIBINTL$ac_delim
11570 POSUB!$POSUB$ac_delim
11571 INTLTARGET!$INTLTARGET$ac_delim
11572 NLSTARGET!$NLSTARGET$ac_delim
11573 USE_COLOR!$USE_COLOR$ac_delim
11574 USE_ANSI_COLOR!$USE_ANSI_COLOR$ac_delim
11575 USE_BG_COLOR!$USE_BG_COLOR$ac_delim
11576 USE_IMAGE!$USE_IMAGE$ac_delim
11577 USE_W3MIMG_X11!$USE_W3MIMG_X11$ac_delim
11578 _ACEOF
11579
11580   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
11581     break
11582   elif $ac_last_try; then
11583     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
11584 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
11585    { (exit 1); exit 1; }; }
11586   else
11587     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11588   fi
11589 done
11590
11591 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
11592 if test -n "$ac_eof"; then
11593   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
11594   ac_eof=`expr $ac_eof + 1`
11595 fi
11596
11597 cat >>$CONFIG_STATUS <<_ACEOF
11598 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
11599 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11600 _ACEOF
11601 sed '
11602 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
11603 s/^/s,@/; s/!/@,|#_!!_#|/
11604 :n
11605 t n
11606 s/'"$ac_delim"'$/,g/; t
11607 s/$/\\/; p
11608 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
11609 ' >>$CONFIG_STATUS <conf$$subs.sed
11610 rm -f conf$$subs.sed
11611 cat >>$CONFIG_STATUS <<_ACEOF
11612 CEOF$ac_eof
11613 _ACEOF
11614
11615
11616 ac_delim='%!_!# '
11617 for ac_last_try in false false false false false :; do
11618   cat >conf$$subs.sed <<_ACEOF
11619 USE_W3MIMG_FB!$USE_W3MIMG_FB$ac_delim
11620 W3MIMGDISPLAY_SETUID!$W3MIMGDISPLAY_SETUID$ac_delim
11621 INSTALL_W3MIMGDISPLAY!$INSTALL_W3MIMGDISPLAY$ac_delim
11622 USE_GDKPIXBUF!$USE_GDKPIXBUF$ac_delim
11623 USE_GTK2!$USE_GTK2$ac_delim
11624 USE_IMLIB!$USE_IMLIB$ac_delim
11625 USE_IMLIB2!$USE_IMLIB2$ac_delim
11626 IMGTARGETS!$IMGTARGETS$ac_delim
11627 IMGOBJS!$IMGOBJS$ac_delim
11628 IMGX11CFLAGS!$IMGX11CFLAGS$ac_delim
11629 IMGX11LDFLAGS!$IMGX11LDFLAGS$ac_delim
11630 IMGFBCFLAGS!$IMGFBCFLAGS$ac_delim
11631 IMGFBLDFLAGS!$IMGFBLDFLAGS$ac_delim
11632 USE_XFACE!$USE_XFACE$ac_delim
11633 uncompface!$uncompface$ac_delim
11634 KEYMAP_FILE!$KEYMAP_FILE$ac_delim
11635 HELP_FILE!$HELP_FILE$ac_delim
11636 KEYBIND!$KEYBIND$ac_delim
11637 USE_MENU!$USE_MENU$ac_delim
11638 USE_MOUSE!$USE_MOUSE$ac_delim
11639 USE_HISTORY!$USE_HISTORY$ac_delim
11640 USE_ALARM!$USE_ALARM$ac_delim
11641 USE_COOKIE!$USE_COOKIE$ac_delim
11642 USE_NNTP!$USE_NNTP$ac_delim
11643 USE_GOPHER!$USE_GOPHER$ac_delim
11644 USE_DICT!$USE_DICT$ac_delim
11645 USE_HELP_CGI!$USE_HELP_CGI$ac_delim
11646 USE_EXTERNAL_URI_LOADER!$USE_EXTERNAL_URI_LOADER$ac_delim
11647 USE_W3MMAILER!$USE_W3MMAILER$ac_delim
11648 USE_MIGEMO!$USE_MIGEMO$ac_delim
11649 DEF_MIGEMO_COMMAND!$DEF_MIGEMO_COMMAND$ac_delim
11650 DEF_EDITOR!$DEF_EDITOR$ac_delim
11651 DEF_MAILER!$DEF_MAILER$ac_delim
11652 DEF_EXT_BROWSER!$DEF_EXT_BROWSER$ac_delim
11653 INET6!$INET6$ac_delim
11654 HAVE_OLD_SS_FAMILY!$HAVE_OLD_SS_FAMILY$ac_delim
11655 USE_SSL!$USE_SSL$ac_delim
11656 USE_SSL_VERIFY!$USE_SSL_VERIFY$ac_delim
11657 PKG_CONFIG!$PKG_CONFIG$ac_delim
11658 SSL_CFLAGS!$SSL_CFLAGS$ac_delim
11659 SSL_LIBS!$SSL_LIBS$ac_delim
11660 USE_DIGEST_AUTH!$USE_DIGEST_AUTH$ac_delim
11661 USE_W3M!$USE_W3M$ac_delim
11662 USE_SYSMOUSE!$USE_SYSMOUSE$ac_delim
11663 AUXBIN_TARGETS!$AUXBIN_TARGETS$ac_delim
11664 LIBGC!$LIBGC$ac_delim
11665 GREP!$GREP$ac_delim
11666 EGREP!$EGREP$ac_delim
11667 USE_BINMODE_STREAM!$USE_BINMODE_STREAM$ac_delim
11668 HAVE_SYS_ERRLIST!$HAVE_SYS_ERRLIST$ac_delim
11669 HAVE_SIGSETJMP!$HAVE_SIGSETJMP$ac_delim
11670 RETSIGTYPE!$RETSIGTYPE$ac_delim
11671 SIGNAL_RETURN!$SIGNAL_RETURN$ac_delim
11672 HELP_DIR!$HELP_DIR$ac_delim
11673 RC_DIR!$RC_DIR$ac_delim
11674 DOCDIRS!$DOCDIRS$ac_delim
11675 CURRENT_VERSION!$CURRENT_VERSION$ac_delim
11676 LIBOBJS!$LIBOBJS$ac_delim
11677 LTLIBOBJS!$LTLIBOBJS$ac_delim
11678 _ACEOF
11679
11680   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 59; then
11681     break
11682   elif $ac_last_try; then
11683     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
11684 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
11685    { (exit 1); exit 1; }; }
11686   else
11687     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11688   fi
11689 done
11690
11691 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
11692 if test -n "$ac_eof"; then
11693   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
11694   ac_eof=`expr $ac_eof + 1`
11695 fi
11696
11697 cat >>$CONFIG_STATUS <<_ACEOF
11698 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
11699 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
11700 _ACEOF
11701 sed '
11702 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
11703 s/^/s,@/; s/!/@,|#_!!_#|/
11704 :n
11705 t n
11706 s/'"$ac_delim"'$/,g/; t
11707 s/$/\\/; p
11708 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
11709 ' >>$CONFIG_STATUS <conf$$subs.sed
11710 rm -f conf$$subs.sed
11711 cat >>$CONFIG_STATUS <<_ACEOF
11712 :end
11713 s/|#_!!_#|//g
11714 CEOF$ac_eof
11715 _ACEOF
11716
11717
11718 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11719 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11720 # trailing colons and then remove the whole line if VPATH becomes empty
11721 # (actually we leave an empty line to preserve line numbers).
11722 if test "x$srcdir" = x.; then
11723   ac_vpsub='/^[  ]*VPATH[        ]*=/{
11724 s/:*\$(srcdir):*/:/
11725 s/:*\${srcdir}:*/:/
11726 s/:*@srcdir@:*/:/
11727 s/^\([^=]*=[     ]*\):*/\1/
11728 s/:*$//
11729 s/^[^=]*=[       ]*$//
11730 }'
11731 fi
11732
11733 cat >>$CONFIG_STATUS <<\_ACEOF
11734 fi # test -n "$CONFIG_FILES"
11735
11736
11737 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
11738 do
11739   case $ac_tag in
11740   :[FHLC]) ac_mode=$ac_tag; continue;;
11741   esac
11742   case $ac_mode$ac_tag in
11743   :[FHL]*:*);;
11744   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
11745 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
11746    { (exit 1); exit 1; }; };;
11747   :[FH]-) ac_tag=-:-;;
11748   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11749   esac
11750   ac_save_IFS=$IFS
11751   IFS=:
11752   set x $ac_tag
11753   IFS=$ac_save_IFS
11754   shift
11755   ac_file=$1
11756   shift
11757
11758   case $ac_mode in
11759   :L) ac_source=$1;;
11760   :[FH])
11761     ac_file_inputs=
11762     for ac_f
11763     do
11764       case $ac_f in
11765       -) ac_f="$tmp/stdin";;
11766       *) # Look for the file first in the build tree, then in the source tree
11767          # (if the path is not absolute).  The absolute path cannot be DOS-style,
11768          # because $ac_f cannot contain `:'.
11769          test -f "$ac_f" ||
11770            case $ac_f in
11771            [\\/$]*) false;;
11772            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11773            esac ||
11774            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
11775 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
11776    { (exit 1); exit 1; }; };;
11777       esac
11778       ac_file_inputs="$ac_file_inputs $ac_f"
11779     done
11780
11781     # Let's still pretend it is `configure' which instantiates (i.e., don't
11782     # use $as_me), people would be surprised to read:
11783     #    /* config.h.  Generated by config.status.  */
11784     configure_input="Generated from "`IFS=:
11785           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
11786     if test x"$ac_file" != x-; then
11787       configure_input="$ac_file.  $configure_input"
11788       { echo "$as_me:$LINENO: creating $ac_file" >&5
11789 echo "$as_me: creating $ac_file" >&6;}
11790     fi
11791
11792     case $ac_tag in
11793     *:-:* | *:-) cat >"$tmp/stdin";;
11794     esac
11795     ;;
11796   esac
11797
11798   ac_dir=`$as_dirname -- "$ac_file" ||
11799 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11800          X"$ac_file" : 'X\(//\)[^/]' \| \
11801          X"$ac_file" : 'X\(//\)$' \| \
11802          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11803 echo X"$ac_file" |
11804     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11805             s//\1/
11806             q
11807           }
11808           /^X\(\/\/\)[^/].*/{
11809             s//\1/
11810             q
11811           }
11812           /^X\(\/\/\)$/{
11813             s//\1/
11814             q
11815           }
11816           /^X\(\/\).*/{
11817             s//\1/
11818             q
11819           }
11820           s/.*/./; q'`
11821   { as_dir="$ac_dir"
11822   case $as_dir in #(
11823   -*) as_dir=./$as_dir;;
11824   esac
11825   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
11826     as_dirs=
11827     while :; do
11828       case $as_dir in #(
11829       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
11830       *) as_qdir=$as_dir;;
11831       esac
11832       as_dirs="'$as_qdir' $as_dirs"
11833       as_dir=`$as_dirname -- "$as_dir" ||
11834 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11835          X"$as_dir" : 'X\(//\)[^/]' \| \
11836          X"$as_dir" : 'X\(//\)$' \| \
11837          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11838 echo X"$as_dir" |
11839     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11840             s//\1/
11841             q
11842           }
11843           /^X\(\/\/\)[^/].*/{
11844             s//\1/
11845             q
11846           }
11847           /^X\(\/\/\)$/{
11848             s//\1/
11849             q
11850           }
11851           /^X\(\/\).*/{
11852             s//\1/
11853             q
11854           }
11855           s/.*/./; q'`
11856       test -d "$as_dir" && break
11857     done
11858     test -z "$as_dirs" || eval "mkdir $as_dirs"
11859   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11860 echo "$as_me: error: cannot create directory $as_dir" >&2;}
11861    { (exit 1); exit 1; }; }; }
11862   ac_builddir=.
11863
11864 case "$ac_dir" in
11865 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11866 *)
11867   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11868   # A ".." for each directory in $ac_dir_suffix.
11869   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
11870   case $ac_top_builddir_sub in
11871   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11872   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11873   esac ;;
11874 esac
11875 ac_abs_top_builddir=$ac_pwd
11876 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11877 # for backward compatibility:
11878 ac_top_builddir=$ac_top_build_prefix
11879
11880 case $srcdir in
11881   .)  # We are building in place.
11882     ac_srcdir=.
11883     ac_top_srcdir=$ac_top_builddir_sub
11884     ac_abs_top_srcdir=$ac_pwd ;;
11885   [\\/]* | ?:[\\/]* )  # Absolute name.
11886     ac_srcdir=$srcdir$ac_dir_suffix;
11887     ac_top_srcdir=$srcdir
11888     ac_abs_top_srcdir=$srcdir ;;
11889   *) # Relative name.
11890     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11891     ac_top_srcdir=$ac_top_build_prefix$srcdir
11892     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11893 esac
11894 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11895
11896
11897   case $ac_mode in
11898   :F)
11899   #
11900   # CONFIG_FILE
11901   #
11902
11903   case $INSTALL in
11904   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11905   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11906   esac
11907 _ACEOF
11908
11909 cat >>$CONFIG_STATUS <<\_ACEOF
11910 # If the template does not know about datarootdir, expand it.
11911 # FIXME: This hack should be removed a few years after 2.60.
11912 ac_datarootdir_hack=; ac_datarootdir_seen=
11913
11914 case `sed -n '/datarootdir/ {
11915   p
11916   q
11917 }
11918 /@datadir@/p
11919 /@docdir@/p
11920 /@infodir@/p
11921 /@localedir@/p
11922 /@mandir@/p
11923 ' $ac_file_inputs` in
11924 *datarootdir*) ac_datarootdir_seen=yes;;
11925 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11926   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11927 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11928 _ACEOF
11929 cat >>$CONFIG_STATUS <<_ACEOF
11930   ac_datarootdir_hack='
11931   s&@datadir@&$datadir&g
11932   s&@docdir@&$docdir&g
11933   s&@infodir@&$infodir&g
11934   s&@localedir@&$localedir&g
11935   s&@mandir@&$mandir&g
11936     s&\\\${datarootdir}&$datarootdir&g' ;;
11937 esac
11938 _ACEOF
11939
11940 # Neutralize VPATH when `$srcdir' = `.'.
11941 # Shell code in configure.ac might set extrasub.
11942 # FIXME: do we really want to maintain this feature?
11943 cat >>$CONFIG_STATUS <<_ACEOF
11944   sed "$ac_vpsub
11945 $extrasub
11946 _ACEOF
11947 cat >>$CONFIG_STATUS <<\_ACEOF
11948 :t
11949 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11950 s&@configure_input@&$configure_input&;t t
11951 s&@top_builddir@&$ac_top_builddir_sub&;t t
11952 s&@srcdir@&$ac_srcdir&;t t
11953 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11954 s&@top_srcdir@&$ac_top_srcdir&;t t
11955 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11956 s&@builddir@&$ac_builddir&;t t
11957 s&@abs_builddir@&$ac_abs_builddir&;t t
11958 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11959 s&@INSTALL@&$ac_INSTALL&;t t
11960 $ac_datarootdir_hack
11961 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
11962
11963 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11964   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
11965   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
11966   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11967 which seems to be undefined.  Please make sure it is defined." >&5
11968 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11969 which seems to be undefined.  Please make sure it is defined." >&2;}
11970
11971   rm -f "$tmp/stdin"
11972   case $ac_file in
11973   -) cat "$tmp/out"; rm -f "$tmp/out";;
11974   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
11975   esac
11976  ;;
11977   :H)
11978   #
11979   # CONFIG_HEADER
11980   #
11981 _ACEOF
11982
11983 # Transform confdefs.h into a sed script `conftest.defines', that
11984 # substitutes the proper values into config.h.in to produce config.h.
11985 rm -f conftest.defines conftest.tail
11986 # First, append a space to every undef/define line, to ease matching.
11987 echo 's/$/ /' >conftest.defines
11988 # Then, protect against being on the right side of a sed subst, or in
11989 # an unquoted here document, in config.status.  If some macros were
11990 # called several times there might be several #defines for the same
11991 # symbol, which is useless.  But do not sort them, since the last
11992 # AC_DEFINE must be honored.
11993 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11994 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
11995 # NAME is the cpp macro being defined, VALUE is the value it is being given.
11996 # PARAMS is the parameter list in the macro definition--in most cases, it's
11997 # just an empty string.
11998 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
11999 ac_dB='\\)[      (].*,\\1define\\2'
12000 ac_dC=' '
12001 ac_dD=' ,'
12002
12003 uniq confdefs.h |
12004   sed -n '
12005         t rset
12006         :rset
12007         s/^[     ]*#[    ]*define[       ][      ]*//
12008         t ok
12009         d
12010         :ok
12011         s/[\\&,]/\\&/g
12012         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
12013         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
12014   ' >>conftest.defines
12015
12016 # Remove the space that was appended to ease matching.
12017 # Then replace #undef with comments.  This is necessary, for
12018 # example, in the case of _POSIX_SOURCE, which is predefined and required
12019 # on some systems where configure will not decide to define it.
12020 # (The regexp can be short, since the line contains either #define or #undef.)
12021 echo 's/ $//
12022 s,^[     #]*u.*,/* & */,' >>conftest.defines
12023
12024 # Break up conftest.defines:
12025 ac_max_sed_lines=50
12026
12027 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
12028 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
12029 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
12030 # et cetera.
12031 ac_in='$ac_file_inputs'
12032 ac_out='"$tmp/out1"'
12033 ac_nxt='"$tmp/out2"'
12034
12035 while :
12036 do
12037   # Write a here document:
12038     cat >>$CONFIG_STATUS <<_ACEOF
12039     # First, check the format of the line:
12040     cat >"\$tmp/defines.sed" <<\\CEOF
12041 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
12042 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
12043 b
12044 :def
12045 _ACEOF
12046   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
12047   echo 'CEOF
12048     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
12049   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
12050   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
12051   grep . conftest.tail >/dev/null || break
12052   rm -f conftest.defines
12053   mv conftest.tail conftest.defines
12054 done
12055 rm -f conftest.defines conftest.tail
12056
12057 echo "ac_result=$ac_in" >>$CONFIG_STATUS
12058 cat >>$CONFIG_STATUS <<\_ACEOF
12059   if test x"$ac_file" != x-; then
12060     echo "/* $configure_input  */" >"$tmp/config.h"
12061     cat "$ac_result" >>"$tmp/config.h"
12062     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
12063       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12064 echo "$as_me: $ac_file is unchanged" >&6;}
12065     else
12066       rm -f $ac_file
12067       mv "$tmp/config.h" $ac_file
12068     fi
12069   else
12070     echo "/* $configure_input  */"
12071     cat "$ac_result"
12072   fi
12073   rm -f "$tmp/out12"
12074  ;;
12075
12076   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
12077 echo "$as_me: executing $ac_file commands" >&6;}
12078  ;;
12079   esac
12080
12081
12082   case $ac_file$ac_mode in
12083     "default-1":C)
12084     for ac_file in $CONFIG_FILES; do
12085       # Support "outfile[:infile[:infile...]]"
12086       case "$ac_file" in
12087         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12088       esac
12089       # PO directories have a Makefile.in generated from Makefile.in.in.
12090       case "$ac_file" in */Makefile.in)
12091         # Adjust a relative srcdir.
12092         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
12093         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
12094         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
12095         # In autoconf-2.13 it is called $ac_given_srcdir.
12096         # In autoconf-2.50 it is called $srcdir.
12097         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
12098         case "$ac_given_srcdir" in
12099           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
12100           /*) top_srcdir="$ac_given_srcdir" ;;
12101           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
12102         esac
12103         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
12104           rm -f "$ac_dir/POTFILES"
12105           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
12106           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
12107           POMAKEFILEDEPS="POTFILES.in"
12108           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
12109           # on $ac_dir but don't depend on user-specified configuration
12110           # parameters.
12111           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
12112             # The LINGUAS file contains the set of available languages.
12113             if test -n "$OBSOLETE_ALL_LINGUAS"; then
12114               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
12115             fi
12116             ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
12117             # Hide the ALL_LINGUAS assigment from automake.
12118             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
12119             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
12120           else
12121             # The set of available languages was given in configure.in.
12122             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
12123           fi
12124           # Compute POFILES
12125           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
12126           # Compute UPDATEPOFILES
12127           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
12128           # Compute DUMMYPOFILES
12129           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
12130           # Compute GMOFILES
12131           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
12132           case "$ac_given_srcdir" in
12133             .) srcdirpre= ;;
12134             *) srcdirpre='$(srcdir)/' ;;
12135           esac
12136           POFILES=
12137           UPDATEPOFILES=
12138           DUMMYPOFILES=
12139           GMOFILES=
12140           for lang in $ALL_LINGUAS; do
12141             POFILES="$POFILES $srcdirpre$lang.po"
12142             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
12143             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
12144             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
12145           done
12146           # CATALOGS depends on both $ac_dir and the user's LINGUAS
12147           # environment variable.
12148           INST_LINGUAS=
12149           if test -n "$ALL_LINGUAS"; then
12150             for presentlang in $ALL_LINGUAS; do
12151               useit=no
12152               if test "%UNSET%" != "$LINGUAS"; then
12153                 desiredlanguages="$LINGUAS"
12154               else
12155                 desiredlanguages="$ALL_LINGUAS"
12156               fi
12157               for desiredlang in $desiredlanguages; do
12158                 # Use the presentlang catalog if desiredlang is
12159                 #   a. equal to presentlang, or
12160                 #   b. a variant of presentlang (because in this case,
12161                 #      presentlang can be used as a fallback for messages
12162                 #      which are not translated in the desiredlang catalog).
12163                 case "$desiredlang" in
12164                   "$presentlang"*) useit=yes;;
12165                 esac
12166               done
12167               if test $useit = yes; then
12168                 INST_LINGUAS="$INST_LINGUAS $presentlang"
12169               fi
12170             done
12171           fi
12172           CATALOGS=
12173           if test -n "$INST_LINGUAS"; then
12174             for lang in $INST_LINGUAS; do
12175               CATALOGS="$CATALOGS $lang.gmo"
12176             done
12177           fi
12178           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
12179           sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
12180           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
12181             if test -f "$f"; then
12182               case "$f" in
12183                 *.orig | *.bak | *~) ;;
12184                 *) cat "$f" >> "$ac_dir/Makefile" ;;
12185               esac
12186             fi
12187           done
12188         fi
12189         ;;
12190       esac
12191     done ;;
12192
12193   esac
12194 done # for ac_tag
12195
12196
12197 { (exit 0); exit 0; }
12198 _ACEOF
12199 chmod +x $CONFIG_STATUS
12200 ac_clean_files=$ac_clean_files_save
12201
12202
12203 # configure is writing to config.log, and then calls config.status.
12204 # config.status does its own redirection, appending to config.log.
12205 # Unfortunately, on DOS this fails, as config.log is still kept open
12206 # by configure, so config.status won't be able to write to it; its
12207 # output is simply discarded.  So we exec the FD to /dev/null,
12208 # effectively closing config.log, so it can be properly (re)opened and
12209 # appended to by config.status.  When coming back to configure, we
12210 # need to make the FD available again.
12211 if test "$no_create" != yes; then
12212   ac_cs_success=:
12213   ac_config_status_args=
12214   test "$silent" = yes &&
12215     ac_config_status_args="$ac_config_status_args --quiet"
12216   exec 5>/dev/null
12217   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12218   exec 5>>config.log
12219   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12220   # would make configure fail if this is the last instruction.
12221   $ac_cs_success || { (exit 1); exit 1; }
12222 fi
12223
12224
12225 chmod +x posubst