Merge branch 'vim-with-runtime' into feat/tagfunc
[vim_extended.git] / src / auto / configure
blobd3921e261a77c4ac66b262414689ad95b549a83d
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 as_nl='
42 export as_nl
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83 as_unset=unset
84 else
85 as_unset=false
89 # IFS
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
94 IFS=" "" $as_nl"
96 # Find who we are. Look in the path if we contain no directory separator.
97 case $0 in
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 for as_dir in $PATH
102 IFS=$as_save_IFS
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 done
106 IFS=$as_save_IFS
109 esac
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
113 as_myself=$0
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
137 as_expr=expr
138 else
139 as_expr=false
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143 as_basename=basename
144 else
145 as_basename=false
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154 $as_echo X/"$0" |
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 s//\1/
159 /^X\/\(\/\/\)$/{
160 s//\1/
163 /^X\/\(\/\).*/{
164 s//\1/
167 s/.*/./; q'`
169 # CDPATH.
170 $as_unset CDPATH
173 if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
175 as_have_required=yes
176 else
177 as_have_required=no
180 if test $as_have_required = yes && (eval ":
181 (as_func_return () {
182 (exit \$1)
184 as_func_success () {
185 as_func_return 0
187 as_func_failure () {
188 as_func_return 1
190 as_func_ret_success () {
191 return 0
193 as_func_ret_failure () {
194 return 1
197 exitcode=0
198 if as_func_success; then
200 else
201 exitcode=1
202 echo as_func_success failed.
205 if as_func_failure; then
206 exitcode=1
207 echo as_func_failure succeeded.
210 if as_func_ret_success; then
212 else
213 exitcode=1
214 echo as_func_ret_success failed.
217 if as_func_ret_failure; then
218 exitcode=1
219 echo as_func_ret_failure succeeded.
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
224 else
225 exitcode=1
226 echo positional parameters were not saved.
229 test \$exitcode = 0) || { (exit 1); exit 1; }
232 as_lineno_1=\$LINENO
233 as_lineno_2=\$LINENO
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
238 else
239 as_candidate_shells=
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
243 IFS=$as_save_IFS
244 test -z "$as_dir" && as_dir=.
245 case $as_dir in
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249 done;;
250 esac
251 done
252 IFS=$as_save_IFS
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 emulate sh
261 NULLCMD=:
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266 else
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
269 esac
275 _ASEOF
276 }; then
277 CONFIG_SHELL=$as_shell
278 as_have_required=yes
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281 emulate sh
282 NULLCMD=:
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
286 setopt NO_GLOB_SUBST
287 else
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
290 esac
296 (as_func_return () {
297 (exit $1)
299 as_func_success () {
300 as_func_return 0
302 as_func_failure () {
303 as_func_return 1
305 as_func_ret_success () {
306 return 0
308 as_func_ret_failure () {
309 return 1
312 exitcode=0
313 if as_func_success; then
315 else
316 exitcode=1
317 echo as_func_success failed.
320 if as_func_failure; then
321 exitcode=1
322 echo as_func_failure succeeded.
325 if as_func_ret_success; then
327 else
328 exitcode=1
329 echo as_func_ret_success failed.
332 if as_func_ret_failure; then
333 exitcode=1
334 echo as_func_ret_failure succeeded.
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
339 else
340 exitcode=1
341 echo positional parameters were not saved.
344 test $exitcode = 0) || { (exit 1); exit 1; }
347 as_lineno_1=$LINENO
348 as_lineno_2=$LINENO
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
352 _ASEOF
353 }; then
354 break
359 done
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364 done
365 export CONFIG_SHELL
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
385 (eval "as_func_return () {
386 (exit \$1)
388 as_func_success () {
389 as_func_return 0
391 as_func_failure () {
392 as_func_return 1
394 as_func_ret_success () {
395 return 0
397 as_func_ret_failure () {
398 return 1
401 exitcode=0
402 if as_func_success; then
404 else
405 exitcode=1
406 echo as_func_success failed.
409 if as_func_failure; then
410 exitcode=1
411 echo as_func_failure succeeded.
414 if as_func_ret_success; then
416 else
417 exitcode=1
418 echo as_func_ret_success failed.
421 if as_func_ret_failure; then
422 exitcode=1
423 echo as_func_ret_failure succeeded.
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
428 else
429 exitcode=1
430 echo positional parameters were not saved.
433 test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
443 as_lineno_1=$LINENO
444 as_lineno_2=$LINENO
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
454 # case at line end.
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
458 sed -n '
460 /[$]LINENO/=
461 ' <$as_myself |
462 sed '
463 s/[$]LINENO.*/&-/
464 t lineno
466 :lineno
468 :loop
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470 t loop
471 s/-\n.*//
472 ' >$as_me.lineno &&
473 chmod +x "$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
480 . "./$as_me.lineno"
481 # Exit status is that of the last command.
482 exit
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487 as_dirname=dirname
488 else
489 as_dirname=false
492 ECHO_C= ECHO_N= ECHO_T=
493 case `echo -n x` in
494 -n*)
495 case `echo 'x\c'` in
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
497 *) ECHO_C='\c';;
498 esac;;
500 ECHO_N='-n';;
501 esac
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
504 as_expr=expr
505 else
506 as_expr=false
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
512 else
513 rm -f conf$$.dir
514 mkdir conf$$.dir 2>/dev/null
516 if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
518 as_ln_s='ln -s'
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524 as_ln_s='cp -p'
525 elif ln conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s=ln
527 else
528 as_ln_s='cp -p'
530 else
531 as_ln_s='cp -p'
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
536 if mkdir -p . 2>/dev/null; then
537 as_mkdir_p=:
538 else
539 test -d ./-p && rmdir ./-p
540 as_mkdir_p=false
543 if test -x / >/dev/null 2>&1; then
544 as_test_x='test -x'
545 else
546 if ls -dL / >/dev/null 2>&1; then
547 as_ls_L_option=L
548 else
549 as_ls_L_option=
551 as_test_x='
552 eval sh -c '\''
553 if test -d "$1"; then
554 test -d "$1/.";
555 else
556 case $1 in
557 -*)set "./$1";;
558 esac;
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
561 '\'' sh
564 as_executable_p=$as_test_x
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
574 exec 7<&0 </dev/null 6>&1
576 # Name of the host.
577 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578 # so uname gets run too.
579 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
582 # Initializations.
584 ac_default_prefix=/usr/local
585 ac_clean_files=
586 ac_config_libobj_dir=.
587 LIBOBJS=
588 cross_compiling=no
589 subdirs=
590 MFLAGS=
591 MAKEFLAGS=
592 SHELL=${CONFIG_SHELL-/bin/sh}
594 # Identity of this package.
595 PACKAGE_NAME=
596 PACKAGE_TARNAME=
597 PACKAGE_VERSION=
598 PACKAGE_STRING=
599 PACKAGE_BUGREPORT=
601 ac_unique_file="vim.h"
602 # Factoring default headers for most tests.
603 ac_includes_default="\
604 #include <stdio.h>
605 #ifdef HAVE_SYS_TYPES_H
606 # include <sys/types.h>
607 #endif
608 #ifdef HAVE_SYS_STAT_H
609 # include <sys/stat.h>
610 #endif
611 #ifdef STDC_HEADERS
612 # include <stdlib.h>
613 # include <stddef.h>
614 #else
615 # ifdef HAVE_STDLIB_H
616 # include <stdlib.h>
617 # endif
618 #endif
619 #ifdef HAVE_STRING_H
620 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
621 # include <memory.h>
622 # endif
623 # include <string.h>
624 #endif
625 #ifdef HAVE_STRINGS_H
626 # include <strings.h>
627 #endif
628 #ifdef HAVE_INTTYPES_H
629 # include <inttypes.h>
630 #endif
631 #ifdef HAVE_STDINT_H
632 # include <stdint.h>
633 #endif
634 #ifdef HAVE_UNISTD_H
635 # include <unistd.h>
636 #endif"
638 ac_subst_vars='LTLIBOBJS
639 LIBOBJS
640 DEPEND_CFLAGS_FILTER
641 MAKEMO
642 MSGFMT
643 INSTALL_TOOL_LANGS
644 INSTALL_LANGS
645 TAGPRG
646 HANGULIN_OBJ
647 HANGULIN_SRC
648 GUI_X_LIBS
649 GUITYPE
650 GUI_LIB_LOC
651 GUI_INC_LOC
652 NARROW_PROTO
653 MOTIF_LIBNAME
654 GNOME_CONFIG
655 GNOME_INCLUDEDIR
656 GNOME_LIBDIR
657 GNOME_LIBS
658 GTK_LIBNAME
659 GTK_LIBS
660 GTK_CFLAGS
661 PKG_CONFIG
662 GTK12_CONFIG
663 GTK_CONFIG
664 X_LIB
665 X_EXTRA_LIBS
666 X_LIBS
667 X_PRE_LIBS
668 X_CFLAGS
669 XMKMF
670 xmkmfpath
671 SNIFF_OBJ
672 SNIFF_SRC
673 NETBEANS_OBJ
674 NETBEANS_SRC
675 WORKSHOP_OBJ
676 WORKSHOP_SRC
677 RUBY_LIBS
678 RUBY_CFLAGS
679 RUBY_PRO
680 RUBY_OBJ
681 RUBY_SRC
682 vi_cv_path_ruby
683 TCL_LIBS
684 TCL_CFLAGS
685 TCL_PRO
686 TCL_OBJ
687 TCL_SRC
688 vi_cv_path_tcl
689 PYTHON_OBJ
690 PYTHON_SRC
691 PYTHON_CFLAGS
692 PYTHON_GETPATH_CFLAGS
693 PYTHON_LIBS
694 PYTHON_CONFDIR
695 vi_cv_path_python
696 PERL_LIBS
697 PERL_CFLAGS
698 PERL_PRO
699 PERL_OBJ
700 PERL_SRC
701 shrpenv
702 vi_cv_perllib
703 vi_cv_path_perl
704 MZSCHEME_MZC
705 MZSCHEME_EXTRA
706 MZSCHEME_CFLAGS
707 MZSCHEME_LIBS
708 MZSCHEME_PRO
709 MZSCHEME_OBJ
710 MZSCHEME_SRC
711 vi_cv_path_mzscheme
712 compiledby
713 dogvimdiff
714 dovimdiff
715 line_break
716 VIEWNAME
717 EXNAME
718 VIMNAME
719 OS_EXTRA_OBJ
720 OS_EXTRA_SRC
721 XCODE_SELECT
722 CPP_MM
723 STRIP
725 EGREP
726 GREP
728 OBJEXT
729 EXEEXT
730 ac_ct_CC
731 CPPFLAGS
732 LDFLAGS
733 CFLAGS
735 SET_MAKE
736 target_alias
737 host_alias
738 build_alias
739 LIBS
740 ECHO_T
741 ECHO_N
742 ECHO_C
743 DEFS
744 mandir
745 localedir
746 libdir
747 psdir
748 pdfdir
749 dvidir
750 htmldir
751 infodir
752 docdir
753 oldincludedir
754 includedir
755 localstatedir
756 sharedstatedir
757 sysconfdir
758 datadir
759 datarootdir
760 libexecdir
761 sbindir
762 bindir
763 program_transform_name
764 prefix
765 exec_prefix
766 PACKAGE_BUGREPORT
767 PACKAGE_STRING
768 PACKAGE_VERSION
769 PACKAGE_TARNAME
770 PACKAGE_NAME
771 PATH_SEPARATOR
772 SHELL'
773 ac_subst_files=''
774 ac_user_opts='
775 enable_option_checking
776 enable_darwin
777 with_mac_arch
778 with_developer_dir
779 with_local_dir
780 with_vim_name
781 with_ex_name
782 with_view_name
783 with_global_runtime
784 with_modified_by
785 enable_selinux
786 with_features
787 with_compiledby
788 enable_xsmp
789 enable_xsmp_interact
790 enable_mzschemeinterp
791 with_plthome
792 enable_perlinterp
793 enable_pythoninterp
794 with_python_config_dir
795 enable_tclinterp
796 with_tclsh
797 enable_rubyinterp
798 with_ruby_command
799 enable_cscope
800 enable_workshop
801 enable_netbeans
802 enable_sniff
803 enable_multibyte
804 enable_hangulinput
805 enable_xim
806 enable_fontset
807 with_x
808 enable_gui
809 enable_gtk_check
810 enable_gtk2_check
811 enable_gnome_check
812 enable_motif_check
813 enable_athena_check
814 enable_nextaw_check
815 enable_carbon_check
816 with_gtk_prefix
817 with_gtk_exec_prefix
818 enable_gtktest
819 with_gnome_includes
820 with_gnome_libs
821 with_gnome
822 with_motif_lib
823 with_tlib
824 enable_largefile
825 enable_acl
826 enable_gpm
827 enable_sysmouse
828 enable_nls
830 ac_precious_vars='build_alias
831 host_alias
832 target_alias
834 CFLAGS
835 LDFLAGS
836 LIBS
837 CPPFLAGS
839 XMKMF'
842 # Initialize some variables set by options.
843 ac_init_help=
844 ac_init_version=false
845 ac_unrecognized_opts=
846 ac_unrecognized_sep=
847 # The variables have the same names as the options, with
848 # dashes changed to underlines.
849 cache_file=/dev/null
850 exec_prefix=NONE
851 no_create=
852 no_recursion=
853 prefix=NONE
854 program_prefix=NONE
855 program_suffix=NONE
856 program_transform_name=s,x,x,
857 silent=
858 site=
859 srcdir=
860 verbose=
861 x_includes=NONE
862 x_libraries=NONE
864 # Installation directory options.
865 # These are left unexpanded so users can "make install exec_prefix=/foo"
866 # and all the variables that are supposed to be based on exec_prefix
867 # by default will actually change.
868 # Use braces instead of parens because sh, perl, etc. also accept them.
869 # (The list follows the same order as the GNU Coding Standards.)
870 bindir='${exec_prefix}/bin'
871 sbindir='${exec_prefix}/sbin'
872 libexecdir='${exec_prefix}/libexec'
873 datarootdir='${prefix}/share'
874 datadir='${datarootdir}'
875 sysconfdir='${prefix}/etc'
876 sharedstatedir='${prefix}/com'
877 localstatedir='${prefix}/var'
878 includedir='${prefix}/include'
879 oldincludedir='/usr/include'
880 docdir='${datarootdir}/doc/${PACKAGE}'
881 infodir='${datarootdir}/info'
882 htmldir='${docdir}'
883 dvidir='${docdir}'
884 pdfdir='${docdir}'
885 psdir='${docdir}'
886 libdir='${exec_prefix}/lib'
887 localedir='${datarootdir}/locale'
888 mandir='${datarootdir}/man'
890 ac_prev=
891 ac_dashdash=
892 for ac_option
894 # If the previous option needs an argument, assign it.
895 if test -n "$ac_prev"; then
896 eval $ac_prev=\$ac_option
897 ac_prev=
898 continue
901 case $ac_option in
902 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
903 *) ac_optarg=yes ;;
904 esac
906 # Accept the important Cygnus configure options, so we can diagnose typos.
908 case $ac_dashdash$ac_option in
910 ac_dashdash=yes ;;
912 -bindir | --bindir | --bindi | --bind | --bin | --bi)
913 ac_prev=bindir ;;
914 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
915 bindir=$ac_optarg ;;
917 -build | --build | --buil | --bui | --bu)
918 ac_prev=build_alias ;;
919 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
920 build_alias=$ac_optarg ;;
922 -cache-file | --cache-file | --cache-fil | --cache-fi \
923 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
924 ac_prev=cache_file ;;
925 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
926 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
927 cache_file=$ac_optarg ;;
929 --config-cache | -C)
930 cache_file=config.cache ;;
932 -datadir | --datadir | --datadi | --datad)
933 ac_prev=datadir ;;
934 -datadir=* | --datadir=* | --datadi=* | --datad=*)
935 datadir=$ac_optarg ;;
937 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
938 | --dataroo | --dataro | --datar)
939 ac_prev=datarootdir ;;
940 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
941 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
942 datarootdir=$ac_optarg ;;
944 -disable-* | --disable-*)
945 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
946 # Reject names that are not valid shell variable names.
947 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
948 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
949 { (exit 1); exit 1; }; }
950 ac_useropt_orig=$ac_useropt
951 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
952 case $ac_user_opts in
954 "enable_$ac_useropt"
955 "*) ;;
956 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
957 ac_unrecognized_sep=', ';;
958 esac
959 eval enable_$ac_useropt=no ;;
961 -docdir | --docdir | --docdi | --doc | --do)
962 ac_prev=docdir ;;
963 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
964 docdir=$ac_optarg ;;
966 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
967 ac_prev=dvidir ;;
968 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
969 dvidir=$ac_optarg ;;
971 -enable-* | --enable-*)
972 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
973 # Reject names that are not valid shell variable names.
974 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
975 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
976 { (exit 1); exit 1; }; }
977 ac_useropt_orig=$ac_useropt
978 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
979 case $ac_user_opts in
981 "enable_$ac_useropt"
982 "*) ;;
983 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
984 ac_unrecognized_sep=', ';;
985 esac
986 eval enable_$ac_useropt=\$ac_optarg ;;
988 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
989 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
990 | --exec | --exe | --ex)
991 ac_prev=exec_prefix ;;
992 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
993 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
994 | --exec=* | --exe=* | --ex=*)
995 exec_prefix=$ac_optarg ;;
997 -gas | --gas | --ga | --g)
998 # Obsolete; use --with-gas.
999 with_gas=yes ;;
1001 -help | --help | --hel | --he | -h)
1002 ac_init_help=long ;;
1003 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1004 ac_init_help=recursive ;;
1005 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1006 ac_init_help=short ;;
1008 -host | --host | --hos | --ho)
1009 ac_prev=host_alias ;;
1010 -host=* | --host=* | --hos=* | --ho=*)
1011 host_alias=$ac_optarg ;;
1013 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1014 ac_prev=htmldir ;;
1015 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1016 | --ht=*)
1017 htmldir=$ac_optarg ;;
1019 -includedir | --includedir | --includedi | --included | --include \
1020 | --includ | --inclu | --incl | --inc)
1021 ac_prev=includedir ;;
1022 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1023 | --includ=* | --inclu=* | --incl=* | --inc=*)
1024 includedir=$ac_optarg ;;
1026 -infodir | --infodir | --infodi | --infod | --info | --inf)
1027 ac_prev=infodir ;;
1028 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1029 infodir=$ac_optarg ;;
1031 -libdir | --libdir | --libdi | --libd)
1032 ac_prev=libdir ;;
1033 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1034 libdir=$ac_optarg ;;
1036 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1037 | --libexe | --libex | --libe)
1038 ac_prev=libexecdir ;;
1039 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1040 | --libexe=* | --libex=* | --libe=*)
1041 libexecdir=$ac_optarg ;;
1043 -localedir | --localedir | --localedi | --localed | --locale)
1044 ac_prev=localedir ;;
1045 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1046 localedir=$ac_optarg ;;
1048 -localstatedir | --localstatedir | --localstatedi | --localstated \
1049 | --localstate | --localstat | --localsta | --localst | --locals)
1050 ac_prev=localstatedir ;;
1051 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1052 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1053 localstatedir=$ac_optarg ;;
1055 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1056 ac_prev=mandir ;;
1057 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1058 mandir=$ac_optarg ;;
1060 -nfp | --nfp | --nf)
1061 # Obsolete; use --without-fp.
1062 with_fp=no ;;
1064 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1065 | --no-cr | --no-c | -n)
1066 no_create=yes ;;
1068 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1069 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1070 no_recursion=yes ;;
1072 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1073 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1074 | --oldin | --oldi | --old | --ol | --o)
1075 ac_prev=oldincludedir ;;
1076 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1077 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1078 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1079 oldincludedir=$ac_optarg ;;
1081 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1082 ac_prev=prefix ;;
1083 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1084 prefix=$ac_optarg ;;
1086 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1087 | --program-pre | --program-pr | --program-p)
1088 ac_prev=program_prefix ;;
1089 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1090 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1091 program_prefix=$ac_optarg ;;
1093 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1094 | --program-suf | --program-su | --program-s)
1095 ac_prev=program_suffix ;;
1096 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1097 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1098 program_suffix=$ac_optarg ;;
1100 -program-transform-name | --program-transform-name \
1101 | --program-transform-nam | --program-transform-na \
1102 | --program-transform-n | --program-transform- \
1103 | --program-transform | --program-transfor \
1104 | --program-transfo | --program-transf \
1105 | --program-trans | --program-tran \
1106 | --progr-tra | --program-tr | --program-t)
1107 ac_prev=program_transform_name ;;
1108 -program-transform-name=* | --program-transform-name=* \
1109 | --program-transform-nam=* | --program-transform-na=* \
1110 | --program-transform-n=* | --program-transform-=* \
1111 | --program-transform=* | --program-transfor=* \
1112 | --program-transfo=* | --program-transf=* \
1113 | --program-trans=* | --program-tran=* \
1114 | --progr-tra=* | --program-tr=* | --program-t=*)
1115 program_transform_name=$ac_optarg ;;
1117 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1118 ac_prev=pdfdir ;;
1119 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1120 pdfdir=$ac_optarg ;;
1122 -psdir | --psdir | --psdi | --psd | --ps)
1123 ac_prev=psdir ;;
1124 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1125 psdir=$ac_optarg ;;
1127 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1128 | -silent | --silent | --silen | --sile | --sil)
1129 silent=yes ;;
1131 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1132 ac_prev=sbindir ;;
1133 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1134 | --sbi=* | --sb=*)
1135 sbindir=$ac_optarg ;;
1137 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1138 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1139 | --sharedst | --shareds | --shared | --share | --shar \
1140 | --sha | --sh)
1141 ac_prev=sharedstatedir ;;
1142 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1143 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1144 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1145 | --sha=* | --sh=*)
1146 sharedstatedir=$ac_optarg ;;
1148 -site | --site | --sit)
1149 ac_prev=site ;;
1150 -site=* | --site=* | --sit=*)
1151 site=$ac_optarg ;;
1153 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1154 ac_prev=srcdir ;;
1155 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1156 srcdir=$ac_optarg ;;
1158 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1159 | --syscon | --sysco | --sysc | --sys | --sy)
1160 ac_prev=sysconfdir ;;
1161 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1162 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1163 sysconfdir=$ac_optarg ;;
1165 -target | --target | --targe | --targ | --tar | --ta | --t)
1166 ac_prev=target_alias ;;
1167 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1168 target_alias=$ac_optarg ;;
1170 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1171 verbose=yes ;;
1173 -version | --version | --versio | --versi | --vers | -V)
1174 ac_init_version=: ;;
1176 -with-* | --with-*)
1177 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1178 # Reject names that are not valid shell variable names.
1179 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1180 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1181 { (exit 1); exit 1; }; }
1182 ac_useropt_orig=$ac_useropt
1183 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1184 case $ac_user_opts in
1186 "with_$ac_useropt"
1187 "*) ;;
1188 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1189 ac_unrecognized_sep=', ';;
1190 esac
1191 eval with_$ac_useropt=\$ac_optarg ;;
1193 -without-* | --without-*)
1194 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1195 # Reject names that are not valid shell variable names.
1196 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1197 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1198 { (exit 1); exit 1; }; }
1199 ac_useropt_orig=$ac_useropt
1200 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1201 case $ac_user_opts in
1203 "with_$ac_useropt"
1204 "*) ;;
1205 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1206 ac_unrecognized_sep=', ';;
1207 esac
1208 eval with_$ac_useropt=no ;;
1210 --x)
1211 # Obsolete; use --with-x.
1212 with_x=yes ;;
1214 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1215 | --x-incl | --x-inc | --x-in | --x-i)
1216 ac_prev=x_includes ;;
1217 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1218 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1219 x_includes=$ac_optarg ;;
1221 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1222 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1223 ac_prev=x_libraries ;;
1224 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1225 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1226 x_libraries=$ac_optarg ;;
1228 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1229 Try \`$0 --help' for more information." >&2
1230 { (exit 1); exit 1; }; }
1233 *=*)
1234 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1235 # Reject names that are not valid shell variable names.
1236 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1237 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1238 { (exit 1); exit 1; }; }
1239 eval $ac_envvar=\$ac_optarg
1240 export $ac_envvar ;;
1243 # FIXME: should be removed in autoconf 3.0.
1244 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1245 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1246 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1247 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1250 esac
1251 done
1253 if test -n "$ac_prev"; then
1254 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1255 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1256 { (exit 1); exit 1; }; }
1259 if test -n "$ac_unrecognized_opts"; then
1260 case $enable_option_checking in
1261 no) ;;
1262 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1263 { (exit 1); exit 1; }; } ;;
1264 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1265 esac
1268 # Check all directory arguments for consistency.
1269 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1270 datadir sysconfdir sharedstatedir localstatedir includedir \
1271 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1272 libdir localedir mandir
1274 eval ac_val=\$$ac_var
1275 # Remove trailing slashes.
1276 case $ac_val in
1277 */ )
1278 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1279 eval $ac_var=\$ac_val;;
1280 esac
1281 # Be sure to have absolute directory names.
1282 case $ac_val in
1283 [\\/$]* | ?:[\\/]* ) continue;;
1284 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1285 esac
1286 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1287 { (exit 1); exit 1; }; }
1288 done
1290 # There might be people who depend on the old broken behavior: `$host'
1291 # used to hold the argument of --host etc.
1292 # FIXME: To remove some day.
1293 build=$build_alias
1294 host=$host_alias
1295 target=$target_alias
1297 # FIXME: To remove some day.
1298 if test "x$host_alias" != x; then
1299 if test "x$build_alias" = x; then
1300 cross_compiling=maybe
1301 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1302 If a cross compiler is detected then cross compile mode will be used." >&2
1303 elif test "x$build_alias" != "x$host_alias"; then
1304 cross_compiling=yes
1308 ac_tool_prefix=
1309 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1311 test "$silent" = yes && exec 6>/dev/null
1314 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1315 ac_ls_di=`ls -di .` &&
1316 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1317 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1318 { (exit 1); exit 1; }; }
1319 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1320 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1321 { (exit 1); exit 1; }; }
1324 # Find the source files, if location was not specified.
1325 if test -z "$srcdir"; then
1326 ac_srcdir_defaulted=yes
1327 # Try the directory containing this script, then the parent directory.
1328 ac_confdir=`$as_dirname -- "$as_myself" ||
1329 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1330 X"$as_myself" : 'X\(//\)[^/]' \| \
1331 X"$as_myself" : 'X\(//\)$' \| \
1332 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1333 $as_echo X"$as_myself" |
1334 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1335 s//\1/
1338 /^X\(\/\/\)[^/].*/{
1339 s//\1/
1342 /^X\(\/\/\)$/{
1343 s//\1/
1346 /^X\(\/\).*/{
1347 s//\1/
1350 s/.*/./; q'`
1351 srcdir=$ac_confdir
1352 if test ! -r "$srcdir/$ac_unique_file"; then
1353 srcdir=..
1355 else
1356 ac_srcdir_defaulted=no
1358 if test ! -r "$srcdir/$ac_unique_file"; then
1359 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1360 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1361 { (exit 1); exit 1; }; }
1363 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1364 ac_abs_confdir=`(
1365 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1366 { (exit 1); exit 1; }; }
1367 pwd)`
1368 # When building in place, set srcdir=.
1369 if test "$ac_abs_confdir" = "$ac_pwd"; then
1370 srcdir=.
1372 # Remove unnecessary trailing slashes from srcdir.
1373 # Double slashes in file names in object file debugging info
1374 # mess up M-x gdb in Emacs.
1375 case $srcdir in
1376 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1377 esac
1378 for ac_var in $ac_precious_vars; do
1379 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1380 eval ac_env_${ac_var}_value=\$${ac_var}
1381 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1382 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1383 done
1386 # Report the --help message.
1388 if test "$ac_init_help" = "long"; then
1389 # Omit some internal or obsolete options to make the list less imposing.
1390 # This message is too long to be a string in the A/UX 3.1 sh.
1391 cat <<_ACEOF
1392 \`configure' configures this package to adapt to many kinds of systems.
1394 Usage: $0 [OPTION]... [VAR=VALUE]...
1396 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1397 VAR=VALUE. See below for descriptions of some of the useful variables.
1399 Defaults for the options are specified in brackets.
1401 Configuration:
1402 -h, --help display this help and exit
1403 --help=short display options specific to this package
1404 --help=recursive display the short help of all the included packages
1405 -V, --version display version information and exit
1406 -q, --quiet, --silent do not print \`checking...' messages
1407 --cache-file=FILE cache test results in FILE [disabled]
1408 -C, --config-cache alias for \`--cache-file=config.cache'
1409 -n, --no-create do not create output files
1410 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1412 Installation directories:
1413 --prefix=PREFIX install architecture-independent files in PREFIX
1414 [$ac_default_prefix]
1415 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1416 [PREFIX]
1418 By default, \`make install' will install all the files in
1419 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1420 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1421 for instance \`--prefix=\$HOME'.
1423 For better control, use the options below.
1425 Fine tuning of the installation directories:
1426 --bindir=DIR user executables [EPREFIX/bin]
1427 --sbindir=DIR system admin executables [EPREFIX/sbin]
1428 --libexecdir=DIR program executables [EPREFIX/libexec]
1429 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1430 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1431 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1432 --libdir=DIR object code libraries [EPREFIX/lib]
1433 --includedir=DIR C header files [PREFIX/include]
1434 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1435 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1436 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1437 --infodir=DIR info documentation [DATAROOTDIR/info]
1438 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1439 --mandir=DIR man documentation [DATAROOTDIR/man]
1440 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1441 --htmldir=DIR html documentation [DOCDIR]
1442 --dvidir=DIR dvi documentation [DOCDIR]
1443 --pdfdir=DIR pdf documentation [DOCDIR]
1444 --psdir=DIR ps documentation [DOCDIR]
1445 _ACEOF
1447 cat <<\_ACEOF
1449 X features:
1450 --x-includes=DIR X include files are in DIR
1451 --x-libraries=DIR X library files are in DIR
1452 _ACEOF
1455 if test -n "$ac_init_help"; then
1457 cat <<\_ACEOF
1459 Optional Features:
1460 --disable-option-checking ignore unrecognized --enable/--with options
1461 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1462 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1463 --disable-darwin Disable Darwin (Mac OS X) support.
1464 --disable-selinux Don't check for SELinux support.
1465 --disable-xsmp Disable XSMP session management
1466 --disable-xsmp-interact Disable XSMP interaction
1467 --enable-mzschemeinterp Include MzScheme interpreter.
1468 --enable-perlinterp Include Perl interpreter.
1469 --enable-pythoninterp Include Python interpreter.
1470 --enable-tclinterp Include Tcl interpreter.
1471 --enable-rubyinterp Include Ruby interpreter.
1472 --enable-cscope Include cscope interface.
1473 --enable-workshop Include Sun Visual Workshop support.
1474 --disable-netbeans Disable NetBeans integration support.
1475 --enable-sniff Include Sniff interface.
1476 --enable-multibyte Include multibyte editing support.
1477 --enable-hangulinput Include Hangul input support.
1478 --enable-xim Include XIM input support.
1479 --enable-fontset Include X fontset output support.
1480 --enable-gui=OPTS X11 GUI default=auto OPTS=auto/no/gtk/gtk2/gnome/gnome2/motif/athena/neXtaw/photon/carbon
1481 --enable-gtk-check If auto-select GUI, check for GTK default=yes
1482 --enable-gtk2-check If GTK GUI, check for GTK+ 2 default=yes
1483 --enable-gnome-check If GTK GUI, check for GNOME default=no
1484 --enable-motif-check If auto-select GUI, check for Motif default=yes
1485 --enable-athena-check If auto-select GUI, check for Athena default=yes
1486 --enable-nextaw-check If auto-select GUI, check for neXtaw default=yes
1487 --enable-carbon-check If auto-select GUI, check for Carbon default=yes
1488 --disable-gtktest Do not try to compile and run a test GTK program
1489 --disable-largefile omit support for large files
1490 --disable-acl Don't check for ACL support.
1491 --disable-gpm Don't use gpm (Linux mouse daemon).
1492 --disable-sysmouse Don't use sysmouse (mouse in *BSD console).
1493 --disable-nls Don't support NLS (gettext()).
1495 Optional Packages:
1496 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1497 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1498 --with-mac-arch=ARCH current, intel, ppc or both
1499 --with-developer-dir=PATH use PATH as location for Xcode developer tools
1500 --with-local-dir=PATH search PATH instead of /usr/local for local libraries.
1501 --without-local-dir do not search /usr/local for local libraries.
1502 --with-vim-name=NAME what to call the Vim executable
1503 --with-ex-name=NAME what to call the Ex executable
1504 --with-view-name=NAME what to call the View executable
1505 --with-global-runtime=DIR global runtime directory in 'runtimepath'
1506 --with-modified-by=NAME name of who modified a release version
1507 --with-features=TYPE tiny, small, normal, big or huge (default: normal)
1508 --with-compiledby=NAME name to show in :version message
1509 --with-plthome=PLTHOME Use PLTHOME.
1510 --with-python-config-dir=PATH Python's config directory
1511 --with-tclsh=PATH which tclsh to use (default: tclsh8.0)
1512 --with-ruby-command=RUBY name of the Ruby command (default: ruby)
1513 --with-x use the X Window System
1514 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1515 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1516 --with-gnome-includes=DIR Specify location of GNOME headers
1517 --with-gnome-libs=DIR Specify location of GNOME libs
1518 --with-gnome Specify prefix for GNOME files
1519 --with-motif-lib=STRING Library for Motif
1520 --with-tlib=library terminal library to be used
1522 Some influential environment variables:
1523 CC C compiler command
1524 CFLAGS C compiler flags
1525 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1526 nonstandard directory <lib dir>
1527 LIBS libraries to pass to the linker, e.g. -l<library>
1528 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1529 you have headers in a nonstandard directory <include dir>
1530 CPP C preprocessor
1531 XMKMF Path to xmkmf, Makefile generator for X Window System
1533 Use these variables to override the choices made by `configure' or to help
1534 it to find libraries and programs with nonstandard names/locations.
1536 _ACEOF
1537 ac_status=$?
1540 if test "$ac_init_help" = "recursive"; then
1541 # If there are subdirs, report their specific --help.
1542 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1543 test -d "$ac_dir" ||
1544 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1545 continue
1546 ac_builddir=.
1548 case "$ac_dir" in
1549 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1551 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1552 # A ".." for each directory in $ac_dir_suffix.
1553 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1554 case $ac_top_builddir_sub in
1555 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1556 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1557 esac ;;
1558 esac
1559 ac_abs_top_builddir=$ac_pwd
1560 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1561 # for backward compatibility:
1562 ac_top_builddir=$ac_top_build_prefix
1564 case $srcdir in
1565 .) # We are building in place.
1566 ac_srcdir=.
1567 ac_top_srcdir=$ac_top_builddir_sub
1568 ac_abs_top_srcdir=$ac_pwd ;;
1569 [\\/]* | ?:[\\/]* ) # Absolute name.
1570 ac_srcdir=$srcdir$ac_dir_suffix;
1571 ac_top_srcdir=$srcdir
1572 ac_abs_top_srcdir=$srcdir ;;
1573 *) # Relative name.
1574 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1575 ac_top_srcdir=$ac_top_build_prefix$srcdir
1576 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1577 esac
1578 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1580 cd "$ac_dir" || { ac_status=$?; continue; }
1581 # Check for guested configure.
1582 if test -f "$ac_srcdir/configure.gnu"; then
1583 echo &&
1584 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1585 elif test -f "$ac_srcdir/configure"; then
1586 echo &&
1587 $SHELL "$ac_srcdir/configure" --help=recursive
1588 else
1589 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1590 fi || ac_status=$?
1591 cd "$ac_pwd" || { ac_status=$?; break; }
1592 done
1595 test -n "$ac_init_help" && exit $ac_status
1596 if $ac_init_version; then
1597 cat <<\_ACEOF
1598 configure
1599 generated by GNU Autoconf 2.63
1601 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1602 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1603 This configure script is free software; the Free Software Foundation
1604 gives unlimited permission to copy, distribute and modify it.
1605 _ACEOF
1606 exit
1608 cat >auto/config.log <<_ACEOF
1609 This file contains any messages produced by compilers while
1610 running configure, to aid debugging if configure makes a mistake.
1612 It was created by $as_me, which was
1613 generated by GNU Autoconf 2.63. Invocation command line was
1615 $ $0 $@
1617 _ACEOF
1618 exec 5>>auto/config.log
1620 cat <<_ASUNAME
1621 ## --------- ##
1622 ## Platform. ##
1623 ## --------- ##
1625 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1626 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1627 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1628 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1629 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1631 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1632 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1634 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1635 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1636 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1637 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1638 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1639 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1640 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1642 _ASUNAME
1644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1645 for as_dir in $PATH
1647 IFS=$as_save_IFS
1648 test -z "$as_dir" && as_dir=.
1649 $as_echo "PATH: $as_dir"
1650 done
1651 IFS=$as_save_IFS
1653 } >&5
1655 cat >&5 <<_ACEOF
1658 ## ----------- ##
1659 ## Core tests. ##
1660 ## ----------- ##
1662 _ACEOF
1665 # Keep a trace of the command line.
1666 # Strip out --no-create and --no-recursion so they do not pile up.
1667 # Strip out --silent because we don't want to record it for future runs.
1668 # Also quote any args containing shell meta-characters.
1669 # Make two passes to allow for proper duplicate-argument suppression.
1670 ac_configure_args=
1671 ac_configure_args0=
1672 ac_configure_args1=
1673 ac_must_keep_next=false
1674 for ac_pass in 1 2
1676 for ac_arg
1678 case $ac_arg in
1679 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1680 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1681 | -silent | --silent | --silen | --sile | --sil)
1682 continue ;;
1683 *\'*)
1684 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1685 esac
1686 case $ac_pass in
1687 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1689 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1690 if test $ac_must_keep_next = true; then
1691 ac_must_keep_next=false # Got value, back to normal.
1692 else
1693 case $ac_arg in
1694 *=* | --config-cache | -C | -disable-* | --disable-* \
1695 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1696 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1697 | -with-* | --with-* | -without-* | --without-* | --x)
1698 case "$ac_configure_args0 " in
1699 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1700 esac
1702 -* ) ac_must_keep_next=true ;;
1703 esac
1705 ac_configure_args="$ac_configure_args '$ac_arg'"
1707 esac
1708 done
1709 done
1710 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1711 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1713 # When interrupted or exit'd, cleanup temporary files, and complete
1714 # config.log. We remove comments because anyway the quotes in there
1715 # would cause problems or look ugly.
1716 # WARNING: Use '\'' to represent an apostrophe within the trap.
1717 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1718 trap 'exit_status=$?
1719 # Save into config.log some information that might help in debugging.
1721 echo
1723 cat <<\_ASBOX
1724 ## ---------------- ##
1725 ## Cache variables. ##
1726 ## ---------------- ##
1727 _ASBOX
1728 echo
1729 # The following way of writing the cache mishandles newlines in values,
1731 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1732 eval ac_val=\$$ac_var
1733 case $ac_val in #(
1734 *${as_nl}*)
1735 case $ac_var in #(
1736 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1737 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1738 esac
1739 case $ac_var in #(
1740 _ | IFS | as_nl) ;; #(
1741 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1742 *) $as_unset $ac_var ;;
1743 esac ;;
1744 esac
1745 done
1746 (set) 2>&1 |
1747 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1748 *${as_nl}ac_space=\ *)
1749 sed -n \
1750 "s/'\''/'\''\\\\'\'''\''/g;
1751 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1752 ;; #(
1754 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1756 esac |
1757 sort
1759 echo
1761 cat <<\_ASBOX
1762 ## ----------------- ##
1763 ## Output variables. ##
1764 ## ----------------- ##
1765 _ASBOX
1766 echo
1767 for ac_var in $ac_subst_vars
1769 eval ac_val=\$$ac_var
1770 case $ac_val in
1771 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1772 esac
1773 $as_echo "$ac_var='\''$ac_val'\''"
1774 done | sort
1775 echo
1777 if test -n "$ac_subst_files"; then
1778 cat <<\_ASBOX
1779 ## ------------------- ##
1780 ## File substitutions. ##
1781 ## ------------------- ##
1782 _ASBOX
1783 echo
1784 for ac_var in $ac_subst_files
1786 eval ac_val=\$$ac_var
1787 case $ac_val in
1788 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1789 esac
1790 $as_echo "$ac_var='\''$ac_val'\''"
1791 done | sort
1792 echo
1795 if test -s confdefs.h; then
1796 cat <<\_ASBOX
1797 ## ----------- ##
1798 ## confdefs.h. ##
1799 ## ----------- ##
1800 _ASBOX
1801 echo
1802 cat confdefs.h
1803 echo
1805 test "$ac_signal" != 0 &&
1806 $as_echo "$as_me: caught signal $ac_signal"
1807 $as_echo "$as_me: exit $exit_status"
1808 } >&5
1809 rm -f core *.core core.conftest.* &&
1810 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1811 exit $exit_status
1813 for ac_signal in 1 2 13 15; do
1814 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1815 done
1816 ac_signal=0
1818 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1819 rm -f -r conftest* confdefs.h
1821 # Predefined preprocessor variables.
1823 cat >>confdefs.h <<_ACEOF
1824 #define PACKAGE_NAME "$PACKAGE_NAME"
1825 _ACEOF
1828 cat >>confdefs.h <<_ACEOF
1829 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1830 _ACEOF
1833 cat >>confdefs.h <<_ACEOF
1834 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1835 _ACEOF
1838 cat >>confdefs.h <<_ACEOF
1839 #define PACKAGE_STRING "$PACKAGE_STRING"
1840 _ACEOF
1843 cat >>confdefs.h <<_ACEOF
1844 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1845 _ACEOF
1848 # Let the site file select an alternate cache file if it wants to.
1849 # Prefer an explicitly selected file to automatically selected ones.
1850 ac_site_file1=NONE
1851 ac_site_file2=NONE
1852 if test -n "$CONFIG_SITE"; then
1853 ac_site_file1=$CONFIG_SITE
1854 elif test "x$prefix" != xNONE; then
1855 ac_site_file1=$prefix/share/config.site
1856 ac_site_file2=$prefix/etc/config.site
1857 else
1858 ac_site_file1=$ac_default_prefix/share/config.site
1859 ac_site_file2=$ac_default_prefix/etc/config.site
1861 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1863 test "x$ac_site_file" = xNONE && continue
1864 if test -r "$ac_site_file"; then
1865 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1866 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1867 sed 's/^/| /' "$ac_site_file" >&5
1868 . "$ac_site_file"
1870 done
1872 if test -r "$cache_file"; then
1873 # Some versions of bash will fail to source /dev/null (special
1874 # files actually), so we avoid doing that.
1875 if test -f "$cache_file"; then
1876 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1877 $as_echo "$as_me: loading cache $cache_file" >&6;}
1878 case $cache_file in
1879 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1880 *) . "./$cache_file";;
1881 esac
1883 else
1884 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1885 $as_echo "$as_me: creating cache $cache_file" >&6;}
1886 >$cache_file
1889 # Check that the precious variables saved in the cache have kept the same
1890 # value.
1891 ac_cache_corrupted=false
1892 for ac_var in $ac_precious_vars; do
1893 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1894 eval ac_new_set=\$ac_env_${ac_var}_set
1895 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1896 eval ac_new_val=\$ac_env_${ac_var}_value
1897 case $ac_old_set,$ac_new_set in
1898 set,)
1899 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1900 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1901 ac_cache_corrupted=: ;;
1902 ,set)
1903 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1904 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1905 ac_cache_corrupted=: ;;
1906 ,);;
1908 if test "x$ac_old_val" != "x$ac_new_val"; then
1909 # differences in whitespace do not lead to failure.
1910 ac_old_val_w=`echo x $ac_old_val`
1911 ac_new_val_w=`echo x $ac_new_val`
1912 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1913 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1914 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1915 ac_cache_corrupted=:
1916 else
1917 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1918 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1919 eval $ac_var=\$ac_old_val
1921 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1922 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1923 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1924 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1925 fi;;
1926 esac
1927 # Pass precious variables to config.status.
1928 if test "$ac_new_set" = set; then
1929 case $ac_new_val in
1930 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1931 *) ac_arg=$ac_var=$ac_new_val ;;
1932 esac
1933 case " $ac_configure_args " in
1934 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1935 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1936 esac
1938 done
1939 if $ac_cache_corrupted; then
1940 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1941 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1942 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1943 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1944 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1945 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1946 { (exit 1); exit 1; }; }
1965 ac_ext=c
1966 ac_cpp='$CPP $CPPFLAGS'
1967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1972 ac_config_headers="$ac_config_headers auto/config.h:config.h.in"
1975 cat >>confdefs.h <<\_ACEOF
1976 #define UNIX 1
1977 _ACEOF
1979 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1980 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
1981 set x ${MAKE-make}
1982 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
1983 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
1984 $as_echo_n "(cached) " >&6
1985 else
1986 cat >conftest.make <<\_ACEOF
1987 SHELL = /bin/sh
1988 all:
1989 @echo '@@@%%%=$(MAKE)=@@@%%%'
1990 _ACEOF
1991 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1992 case `${MAKE-make} -f conftest.make 2>/dev/null` in
1993 *@@@%%%=?*=@@@%%%*)
1994 eval ac_cv_prog_make_${ac_make}_set=yes;;
1996 eval ac_cv_prog_make_${ac_make}_set=no;;
1997 esac
1998 rm -f conftest.make
2000 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2001 { $as_echo "$as_me:$LINENO: result: yes" >&5
2002 $as_echo "yes" >&6; }
2003 SET_MAKE=
2004 else
2005 { $as_echo "$as_me:$LINENO: result: no" >&5
2006 $as_echo "no" >&6; }
2007 SET_MAKE="MAKE=${MAKE-make}"
2011 ac_ext=c
2012 ac_cpp='$CPP $CPPFLAGS'
2013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2016 if test -n "$ac_tool_prefix"; then
2017 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2018 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2019 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2020 $as_echo_n "checking for $ac_word... " >&6; }
2021 if test "${ac_cv_prog_CC+set}" = set; then
2022 $as_echo_n "(cached) " >&6
2023 else
2024 if test -n "$CC"; then
2025 ac_cv_prog_CC="$CC" # Let the user override the test.
2026 else
2027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2028 for as_dir in $PATH
2030 IFS=$as_save_IFS
2031 test -z "$as_dir" && as_dir=.
2032 for ac_exec_ext in '' $ac_executable_extensions; do
2033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2034 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2035 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2036 break 2
2038 done
2039 done
2040 IFS=$as_save_IFS
2044 CC=$ac_cv_prog_CC
2045 if test -n "$CC"; then
2046 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2047 $as_echo "$CC" >&6; }
2048 else
2049 { $as_echo "$as_me:$LINENO: result: no" >&5
2050 $as_echo "no" >&6; }
2055 if test -z "$ac_cv_prog_CC"; then
2056 ac_ct_CC=$CC
2057 # Extract the first word of "gcc", so it can be a program name with args.
2058 set dummy gcc; ac_word=$2
2059 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2060 $as_echo_n "checking for $ac_word... " >&6; }
2061 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2062 $as_echo_n "(cached) " >&6
2063 else
2064 if test -n "$ac_ct_CC"; then
2065 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2066 else
2067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2068 for as_dir in $PATH
2070 IFS=$as_save_IFS
2071 test -z "$as_dir" && as_dir=.
2072 for ac_exec_ext in '' $ac_executable_extensions; do
2073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2074 ac_cv_prog_ac_ct_CC="gcc"
2075 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2076 break 2
2078 done
2079 done
2080 IFS=$as_save_IFS
2084 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2085 if test -n "$ac_ct_CC"; then
2086 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2087 $as_echo "$ac_ct_CC" >&6; }
2088 else
2089 { $as_echo "$as_me:$LINENO: result: no" >&5
2090 $as_echo "no" >&6; }
2093 if test "x$ac_ct_CC" = x; then
2094 CC=""
2095 else
2096 case $cross_compiling:$ac_tool_warned in
2097 yes:)
2098 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2099 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2100 ac_tool_warned=yes ;;
2101 esac
2102 CC=$ac_ct_CC
2104 else
2105 CC="$ac_cv_prog_CC"
2108 if test -z "$CC"; then
2109 if test -n "$ac_tool_prefix"; then
2110 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2111 set dummy ${ac_tool_prefix}cc; ac_word=$2
2112 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2113 $as_echo_n "checking for $ac_word... " >&6; }
2114 if test "${ac_cv_prog_CC+set}" = set; then
2115 $as_echo_n "(cached) " >&6
2116 else
2117 if test -n "$CC"; then
2118 ac_cv_prog_CC="$CC" # Let the user override the test.
2119 else
2120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2121 for as_dir in $PATH
2123 IFS=$as_save_IFS
2124 test -z "$as_dir" && as_dir=.
2125 for ac_exec_ext in '' $ac_executable_extensions; do
2126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2127 ac_cv_prog_CC="${ac_tool_prefix}cc"
2128 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2129 break 2
2131 done
2132 done
2133 IFS=$as_save_IFS
2137 CC=$ac_cv_prog_CC
2138 if test -n "$CC"; then
2139 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2140 $as_echo "$CC" >&6; }
2141 else
2142 { $as_echo "$as_me:$LINENO: result: no" >&5
2143 $as_echo "no" >&6; }
2149 if test -z "$CC"; then
2150 # Extract the first word of "cc", so it can be a program name with args.
2151 set dummy cc; ac_word=$2
2152 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2153 $as_echo_n "checking for $ac_word... " >&6; }
2154 if test "${ac_cv_prog_CC+set}" = set; then
2155 $as_echo_n "(cached) " >&6
2156 else
2157 if test -n "$CC"; then
2158 ac_cv_prog_CC="$CC" # Let the user override the test.
2159 else
2160 ac_prog_rejected=no
2161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2162 for as_dir in $PATH
2164 IFS=$as_save_IFS
2165 test -z "$as_dir" && as_dir=.
2166 for ac_exec_ext in '' $ac_executable_extensions; do
2167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2168 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2169 ac_prog_rejected=yes
2170 continue
2172 ac_cv_prog_CC="cc"
2173 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2174 break 2
2176 done
2177 done
2178 IFS=$as_save_IFS
2180 if test $ac_prog_rejected = yes; then
2181 # We found a bogon in the path, so make sure we never use it.
2182 set dummy $ac_cv_prog_CC
2183 shift
2184 if test $# != 0; then
2185 # We chose a different compiler from the bogus one.
2186 # However, it has the same basename, so the bogon will be chosen
2187 # first if we set CC to just the basename; use the full file name.
2188 shift
2189 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2194 CC=$ac_cv_prog_CC
2195 if test -n "$CC"; then
2196 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2197 $as_echo "$CC" >&6; }
2198 else
2199 { $as_echo "$as_me:$LINENO: result: no" >&5
2200 $as_echo "no" >&6; }
2205 if test -z "$CC"; then
2206 if test -n "$ac_tool_prefix"; then
2207 for ac_prog in cl.exe
2209 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2210 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2211 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2212 $as_echo_n "checking for $ac_word... " >&6; }
2213 if test "${ac_cv_prog_CC+set}" = set; then
2214 $as_echo_n "(cached) " >&6
2215 else
2216 if test -n "$CC"; then
2217 ac_cv_prog_CC="$CC" # Let the user override the test.
2218 else
2219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2220 for as_dir in $PATH
2222 IFS=$as_save_IFS
2223 test -z "$as_dir" && as_dir=.
2224 for ac_exec_ext in '' $ac_executable_extensions; do
2225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2226 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2227 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2228 break 2
2230 done
2231 done
2232 IFS=$as_save_IFS
2236 CC=$ac_cv_prog_CC
2237 if test -n "$CC"; then
2238 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2239 $as_echo "$CC" >&6; }
2240 else
2241 { $as_echo "$as_me:$LINENO: result: no" >&5
2242 $as_echo "no" >&6; }
2246 test -n "$CC" && break
2247 done
2249 if test -z "$CC"; then
2250 ac_ct_CC=$CC
2251 for ac_prog in cl.exe
2253 # Extract the first word of "$ac_prog", so it can be a program name with args.
2254 set dummy $ac_prog; ac_word=$2
2255 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2256 $as_echo_n "checking for $ac_word... " >&6; }
2257 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2258 $as_echo_n "(cached) " >&6
2259 else
2260 if test -n "$ac_ct_CC"; then
2261 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2262 else
2263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2264 for as_dir in $PATH
2266 IFS=$as_save_IFS
2267 test -z "$as_dir" && as_dir=.
2268 for ac_exec_ext in '' $ac_executable_extensions; do
2269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2270 ac_cv_prog_ac_ct_CC="$ac_prog"
2271 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2272 break 2
2274 done
2275 done
2276 IFS=$as_save_IFS
2280 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2281 if test -n "$ac_ct_CC"; then
2282 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2283 $as_echo "$ac_ct_CC" >&6; }
2284 else
2285 { $as_echo "$as_me:$LINENO: result: no" >&5
2286 $as_echo "no" >&6; }
2290 test -n "$ac_ct_CC" && break
2291 done
2293 if test "x$ac_ct_CC" = x; then
2294 CC=""
2295 else
2296 case $cross_compiling:$ac_tool_warned in
2297 yes:)
2298 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2299 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2300 ac_tool_warned=yes ;;
2301 esac
2302 CC=$ac_ct_CC
2309 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2310 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2311 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2312 See \`config.log' for more details." >&5
2313 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2314 See \`config.log' for more details." >&2;}
2315 { (exit 1); exit 1; }; }; }
2317 # Provide some information about the compiler.
2318 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2319 set X $ac_compile
2320 ac_compiler=$2
2321 { (ac_try="$ac_compiler --version >&5"
2322 case "(($ac_try" in
2323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2324 *) ac_try_echo=$ac_try;;
2325 esac
2326 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2327 $as_echo "$ac_try_echo") >&5
2328 (eval "$ac_compiler --version >&5") 2>&5
2329 ac_status=$?
2330 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2331 (exit $ac_status); }
2332 { (ac_try="$ac_compiler -v >&5"
2333 case "(($ac_try" in
2334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2335 *) ac_try_echo=$ac_try;;
2336 esac
2337 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2338 $as_echo "$ac_try_echo") >&5
2339 (eval "$ac_compiler -v >&5") 2>&5
2340 ac_status=$?
2341 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2342 (exit $ac_status); }
2343 { (ac_try="$ac_compiler -V >&5"
2344 case "(($ac_try" in
2345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2346 *) ac_try_echo=$ac_try;;
2347 esac
2348 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2349 $as_echo "$ac_try_echo") >&5
2350 (eval "$ac_compiler -V >&5") 2>&5
2351 ac_status=$?
2352 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2353 (exit $ac_status); }
2355 cat >conftest.$ac_ext <<_ACEOF
2356 /* confdefs.h. */
2357 _ACEOF
2358 cat confdefs.h >>conftest.$ac_ext
2359 cat >>conftest.$ac_ext <<_ACEOF
2360 /* end confdefs.h. */
2363 main ()
2367 return 0;
2369 _ACEOF
2370 ac_clean_files_save=$ac_clean_files
2371 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2372 # Try to create an executable without -o first, disregard a.out.
2373 # It will help us diagnose broken compilers, and finding out an intuition
2374 # of exeext.
2375 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2376 $as_echo_n "checking for C compiler default output file name... " >&6; }
2377 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2379 # The possible output files:
2380 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2382 ac_rmfiles=
2383 for ac_file in $ac_files
2385 case $ac_file in
2386 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2387 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2388 esac
2389 done
2390 rm -f $ac_rmfiles
2392 if { (ac_try="$ac_link_default"
2393 case "(($ac_try" in
2394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2395 *) ac_try_echo=$ac_try;;
2396 esac
2397 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2398 $as_echo "$ac_try_echo") >&5
2399 (eval "$ac_link_default") 2>&5
2400 ac_status=$?
2401 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402 (exit $ac_status); }; then
2403 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2404 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2405 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2406 # so that the user can short-circuit this test for compilers unknown to
2407 # Autoconf.
2408 for ac_file in $ac_files ''
2410 test -f "$ac_file" || continue
2411 case $ac_file in
2412 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2414 [ab].out )
2415 # We found the default executable, but exeext='' is most
2416 # certainly right.
2417 break;;
2418 *.* )
2419 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2420 then :; else
2421 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2423 # We set ac_cv_exeext here because the later test for it is not
2424 # safe: cross compilers may not add the suffix if given an `-o'
2425 # argument, so we may need to know it at that point already.
2426 # Even if this section looks crufty: it has the advantage of
2427 # actually working.
2428 break;;
2430 break;;
2431 esac
2432 done
2433 test "$ac_cv_exeext" = no && ac_cv_exeext=
2435 else
2436 ac_file=''
2439 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2440 $as_echo "$ac_file" >&6; }
2441 if test -z "$ac_file"; then
2442 $as_echo "$as_me: failed program was:" >&5
2443 sed 's/^/| /' conftest.$ac_ext >&5
2445 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2446 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2447 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2448 See \`config.log' for more details." >&5
2449 $as_echo "$as_me: error: C compiler cannot create executables
2450 See \`config.log' for more details." >&2;}
2451 { (exit 77); exit 77; }; }; }
2454 ac_exeext=$ac_cv_exeext
2456 # Check that the compiler produces executables we can run. If not, either
2457 # the compiler is broken, or we cross compile.
2458 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2459 $as_echo_n "checking whether the C compiler works... " >&6; }
2460 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2461 # If not cross compiling, check that we can run a simple program.
2462 if test "$cross_compiling" != yes; then
2463 if { ac_try='./$ac_file'
2464 { (case "(($ac_try" in
2465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2466 *) ac_try_echo=$ac_try;;
2467 esac
2468 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2469 $as_echo "$ac_try_echo") >&5
2470 (eval "$ac_try") 2>&5
2471 ac_status=$?
2472 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473 (exit $ac_status); }; }; then
2474 cross_compiling=no
2475 else
2476 if test "$cross_compiling" = maybe; then
2477 cross_compiling=yes
2478 else
2479 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2480 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2481 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2482 If you meant to cross compile, use \`--host'.
2483 See \`config.log' for more details." >&5
2484 $as_echo "$as_me: error: cannot run C compiled programs.
2485 If you meant to cross compile, use \`--host'.
2486 See \`config.log' for more details." >&2;}
2487 { (exit 1); exit 1; }; }; }
2491 { $as_echo "$as_me:$LINENO: result: yes" >&5
2492 $as_echo "yes" >&6; }
2494 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2495 ac_clean_files=$ac_clean_files_save
2496 # Check that the compiler produces executables we can run. If not, either
2497 # the compiler is broken, or we cross compile.
2498 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2499 $as_echo_n "checking whether we are cross compiling... " >&6; }
2500 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2501 $as_echo "$cross_compiling" >&6; }
2503 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2504 $as_echo_n "checking for suffix of executables... " >&6; }
2505 if { (ac_try="$ac_link"
2506 case "(($ac_try" in
2507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2508 *) ac_try_echo=$ac_try;;
2509 esac
2510 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2511 $as_echo "$ac_try_echo") >&5
2512 (eval "$ac_link") 2>&5
2513 ac_status=$?
2514 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515 (exit $ac_status); }; then
2516 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2517 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2518 # work properly (i.e., refer to `conftest.exe'), while it won't with
2519 # `rm'.
2520 for ac_file in conftest.exe conftest conftest.*; do
2521 test -f "$ac_file" || continue
2522 case $ac_file in
2523 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2524 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2525 break;;
2526 * ) break;;
2527 esac
2528 done
2529 else
2530 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2531 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2532 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2533 See \`config.log' for more details." >&5
2534 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2535 See \`config.log' for more details." >&2;}
2536 { (exit 1); exit 1; }; }; }
2539 rm -f conftest$ac_cv_exeext
2540 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2541 $as_echo "$ac_cv_exeext" >&6; }
2543 rm -f conftest.$ac_ext
2544 EXEEXT=$ac_cv_exeext
2545 ac_exeext=$EXEEXT
2546 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2547 $as_echo_n "checking for suffix of object files... " >&6; }
2548 if test "${ac_cv_objext+set}" = set; then
2549 $as_echo_n "(cached) " >&6
2550 else
2551 cat >conftest.$ac_ext <<_ACEOF
2552 /* confdefs.h. */
2553 _ACEOF
2554 cat confdefs.h >>conftest.$ac_ext
2555 cat >>conftest.$ac_ext <<_ACEOF
2556 /* end confdefs.h. */
2559 main ()
2563 return 0;
2565 _ACEOF
2566 rm -f conftest.o conftest.obj
2567 if { (ac_try="$ac_compile"
2568 case "(($ac_try" in
2569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2570 *) ac_try_echo=$ac_try;;
2571 esac
2572 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2573 $as_echo "$ac_try_echo") >&5
2574 (eval "$ac_compile") 2>&5
2575 ac_status=$?
2576 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2577 (exit $ac_status); }; then
2578 for ac_file in conftest.o conftest.obj conftest.*; do
2579 test -f "$ac_file" || continue;
2580 case $ac_file in
2581 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2582 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2583 break;;
2584 esac
2585 done
2586 else
2587 $as_echo "$as_me: failed program was:" >&5
2588 sed 's/^/| /' conftest.$ac_ext >&5
2590 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2591 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2592 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2593 See \`config.log' for more details." >&5
2594 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2595 See \`config.log' for more details." >&2;}
2596 { (exit 1); exit 1; }; }; }
2599 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2601 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2602 $as_echo "$ac_cv_objext" >&6; }
2603 OBJEXT=$ac_cv_objext
2604 ac_objext=$OBJEXT
2605 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2606 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2607 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2608 $as_echo_n "(cached) " >&6
2609 else
2610 cat >conftest.$ac_ext <<_ACEOF
2611 /* confdefs.h. */
2612 _ACEOF
2613 cat confdefs.h >>conftest.$ac_ext
2614 cat >>conftest.$ac_ext <<_ACEOF
2615 /* end confdefs.h. */
2618 main ()
2620 #ifndef __GNUC__
2621 choke me
2622 #endif
2625 return 0;
2627 _ACEOF
2628 rm -f conftest.$ac_objext
2629 if { (ac_try="$ac_compile"
2630 case "(($ac_try" in
2631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2632 *) ac_try_echo=$ac_try;;
2633 esac
2634 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2635 $as_echo "$ac_try_echo") >&5
2636 (eval "$ac_compile") 2>conftest.er1
2637 ac_status=$?
2638 grep -v '^ *+' conftest.er1 >conftest.err
2639 rm -f conftest.er1
2640 cat conftest.err >&5
2641 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642 (exit $ac_status); } && {
2643 test -z "$ac_c_werror_flag" ||
2644 test ! -s conftest.err
2645 } && test -s conftest.$ac_objext; then
2646 ac_compiler_gnu=yes
2647 else
2648 $as_echo "$as_me: failed program was:" >&5
2649 sed 's/^/| /' conftest.$ac_ext >&5
2651 ac_compiler_gnu=no
2654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2655 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2658 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2659 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2660 if test $ac_compiler_gnu = yes; then
2661 GCC=yes
2662 else
2663 GCC=
2665 ac_test_CFLAGS=${CFLAGS+set}
2666 ac_save_CFLAGS=$CFLAGS
2667 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2668 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2669 if test "${ac_cv_prog_cc_g+set}" = set; then
2670 $as_echo_n "(cached) " >&6
2671 else
2672 ac_save_c_werror_flag=$ac_c_werror_flag
2673 ac_c_werror_flag=yes
2674 ac_cv_prog_cc_g=no
2675 CFLAGS="-g"
2676 cat >conftest.$ac_ext <<_ACEOF
2677 /* confdefs.h. */
2678 _ACEOF
2679 cat confdefs.h >>conftest.$ac_ext
2680 cat >>conftest.$ac_ext <<_ACEOF
2681 /* end confdefs.h. */
2684 main ()
2688 return 0;
2690 _ACEOF
2691 rm -f conftest.$ac_objext
2692 if { (ac_try="$ac_compile"
2693 case "(($ac_try" in
2694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2695 *) ac_try_echo=$ac_try;;
2696 esac
2697 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2698 $as_echo "$ac_try_echo") >&5
2699 (eval "$ac_compile") 2>conftest.er1
2700 ac_status=$?
2701 grep -v '^ *+' conftest.er1 >conftest.err
2702 rm -f conftest.er1
2703 cat conftest.err >&5
2704 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2705 (exit $ac_status); } && {
2706 test -z "$ac_c_werror_flag" ||
2707 test ! -s conftest.err
2708 } && test -s conftest.$ac_objext; then
2709 ac_cv_prog_cc_g=yes
2710 else
2711 $as_echo "$as_me: failed program was:" >&5
2712 sed 's/^/| /' conftest.$ac_ext >&5
2714 CFLAGS=""
2715 cat >conftest.$ac_ext <<_ACEOF
2716 /* confdefs.h. */
2717 _ACEOF
2718 cat confdefs.h >>conftest.$ac_ext
2719 cat >>conftest.$ac_ext <<_ACEOF
2720 /* end confdefs.h. */
2723 main ()
2727 return 0;
2729 _ACEOF
2730 rm -f conftest.$ac_objext
2731 if { (ac_try="$ac_compile"
2732 case "(($ac_try" in
2733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2734 *) ac_try_echo=$ac_try;;
2735 esac
2736 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2737 $as_echo "$ac_try_echo") >&5
2738 (eval "$ac_compile") 2>conftest.er1
2739 ac_status=$?
2740 grep -v '^ *+' conftest.er1 >conftest.err
2741 rm -f conftest.er1
2742 cat conftest.err >&5
2743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744 (exit $ac_status); } && {
2745 test -z "$ac_c_werror_flag" ||
2746 test ! -s conftest.err
2747 } && test -s conftest.$ac_objext; then
2749 else
2750 $as_echo "$as_me: failed program was:" >&5
2751 sed 's/^/| /' conftest.$ac_ext >&5
2753 ac_c_werror_flag=$ac_save_c_werror_flag
2754 CFLAGS="-g"
2755 cat >conftest.$ac_ext <<_ACEOF
2756 /* confdefs.h. */
2757 _ACEOF
2758 cat confdefs.h >>conftest.$ac_ext
2759 cat >>conftest.$ac_ext <<_ACEOF
2760 /* end confdefs.h. */
2763 main ()
2767 return 0;
2769 _ACEOF
2770 rm -f conftest.$ac_objext
2771 if { (ac_try="$ac_compile"
2772 case "(($ac_try" in
2773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2774 *) ac_try_echo=$ac_try;;
2775 esac
2776 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2777 $as_echo "$ac_try_echo") >&5
2778 (eval "$ac_compile") 2>conftest.er1
2779 ac_status=$?
2780 grep -v '^ *+' conftest.er1 >conftest.err
2781 rm -f conftest.er1
2782 cat conftest.err >&5
2783 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784 (exit $ac_status); } && {
2785 test -z "$ac_c_werror_flag" ||
2786 test ! -s conftest.err
2787 } && test -s conftest.$ac_objext; then
2788 ac_cv_prog_cc_g=yes
2789 else
2790 $as_echo "$as_me: failed program was:" >&5
2791 sed 's/^/| /' conftest.$ac_ext >&5
2796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2803 ac_c_werror_flag=$ac_save_c_werror_flag
2805 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2806 $as_echo "$ac_cv_prog_cc_g" >&6; }
2807 if test "$ac_test_CFLAGS" = set; then
2808 CFLAGS=$ac_save_CFLAGS
2809 elif test $ac_cv_prog_cc_g = yes; then
2810 if test "$GCC" = yes; then
2811 CFLAGS="-g -O2"
2812 else
2813 CFLAGS="-g"
2815 else
2816 if test "$GCC" = yes; then
2817 CFLAGS="-O2"
2818 else
2819 CFLAGS=
2822 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2823 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2824 if test "${ac_cv_prog_cc_c89+set}" = set; then
2825 $as_echo_n "(cached) " >&6
2826 else
2827 ac_cv_prog_cc_c89=no
2828 ac_save_CC=$CC
2829 cat >conftest.$ac_ext <<_ACEOF
2830 /* confdefs.h. */
2831 _ACEOF
2832 cat confdefs.h >>conftest.$ac_ext
2833 cat >>conftest.$ac_ext <<_ACEOF
2834 /* end confdefs.h. */
2835 #include <stdarg.h>
2836 #include <stdio.h>
2837 #include <sys/types.h>
2838 #include <sys/stat.h>
2839 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2840 struct buf { int x; };
2841 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2842 static char *e (p, i)
2843 char **p;
2844 int i;
2846 return p[i];
2848 static char *f (char * (*g) (char **, int), char **p, ...)
2850 char *s;
2851 va_list v;
2852 va_start (v,p);
2853 s = g (p, va_arg (v,int));
2854 va_end (v);
2855 return s;
2858 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2859 function prototypes and stuff, but not '\xHH' hex character constants.
2860 These don't provoke an error unfortunately, instead are silently treated
2861 as 'x'. The following induces an error, until -std is added to get
2862 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2863 array size at least. It's necessary to write '\x00'==0 to get something
2864 that's true only with -std. */
2865 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2867 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2868 inside strings and character constants. */
2869 #define FOO(x) 'x'
2870 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2872 int test (int i, double x);
2873 struct s1 {int (*f) (int a);};
2874 struct s2 {int (*f) (double a);};
2875 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2876 int argc;
2877 char **argv;
2879 main ()
2881 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2883 return 0;
2885 _ACEOF
2886 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2887 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2889 CC="$ac_save_CC $ac_arg"
2890 rm -f conftest.$ac_objext
2891 if { (ac_try="$ac_compile"
2892 case "(($ac_try" in
2893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2894 *) ac_try_echo=$ac_try;;
2895 esac
2896 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2897 $as_echo "$ac_try_echo") >&5
2898 (eval "$ac_compile") 2>conftest.er1
2899 ac_status=$?
2900 grep -v '^ *+' conftest.er1 >conftest.err
2901 rm -f conftest.er1
2902 cat conftest.err >&5
2903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2904 (exit $ac_status); } && {
2905 test -z "$ac_c_werror_flag" ||
2906 test ! -s conftest.err
2907 } && test -s conftest.$ac_objext; then
2908 ac_cv_prog_cc_c89=$ac_arg
2909 else
2910 $as_echo "$as_me: failed program was:" >&5
2911 sed 's/^/| /' conftest.$ac_ext >&5
2916 rm -f core conftest.err conftest.$ac_objext
2917 test "x$ac_cv_prog_cc_c89" != "xno" && break
2918 done
2919 rm -f conftest.$ac_ext
2920 CC=$ac_save_CC
2923 # AC_CACHE_VAL
2924 case "x$ac_cv_prog_cc_c89" in
2926 { $as_echo "$as_me:$LINENO: result: none needed" >&5
2927 $as_echo "none needed" >&6; } ;;
2928 xno)
2929 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
2930 $as_echo "unsupported" >&6; } ;;
2932 CC="$CC $ac_cv_prog_cc_c89"
2933 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2934 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2935 esac
2938 ac_ext=c
2939 ac_cpp='$CPP $CPPFLAGS'
2940 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2941 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2942 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2943 ac_ext=c
2944 ac_cpp='$CPP $CPPFLAGS'
2945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2948 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2949 $as_echo_n "checking how to run the C preprocessor... " >&6; }
2950 # On Suns, sometimes $CPP names a directory.
2951 if test -n "$CPP" && test -d "$CPP"; then
2952 CPP=
2954 if test -z "$CPP"; then
2955 if test "${ac_cv_prog_CPP+set}" = set; then
2956 $as_echo_n "(cached) " >&6
2957 else
2958 # Double quotes because CPP needs to be expanded
2959 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2961 ac_preproc_ok=false
2962 for ac_c_preproc_warn_flag in '' yes
2964 # Use a header file that comes with gcc, so configuring glibc
2965 # with a fresh cross-compiler works.
2966 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2967 # <limits.h> exists even on freestanding compilers.
2968 # On the NeXT, cc -E runs the code through the compiler's parser,
2969 # not just through cpp. "Syntax error" is here to catch this case.
2970 cat >conftest.$ac_ext <<_ACEOF
2971 /* confdefs.h. */
2972 _ACEOF
2973 cat confdefs.h >>conftest.$ac_ext
2974 cat >>conftest.$ac_ext <<_ACEOF
2975 /* end confdefs.h. */
2976 #ifdef __STDC__
2977 # include <limits.h>
2978 #else
2979 # include <assert.h>
2980 #endif
2981 Syntax error
2982 _ACEOF
2983 if { (ac_try="$ac_cpp conftest.$ac_ext"
2984 case "(($ac_try" in
2985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2986 *) ac_try_echo=$ac_try;;
2987 esac
2988 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2989 $as_echo "$ac_try_echo") >&5
2990 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2991 ac_status=$?
2992 grep -v '^ *+' conftest.er1 >conftest.err
2993 rm -f conftest.er1
2994 cat conftest.err >&5
2995 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2996 (exit $ac_status); } >/dev/null && {
2997 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2998 test ! -s conftest.err
2999 }; then
3001 else
3002 $as_echo "$as_me: failed program was:" >&5
3003 sed 's/^/| /' conftest.$ac_ext >&5
3005 # Broken: fails on valid input.
3006 continue
3009 rm -f conftest.err conftest.$ac_ext
3011 # OK, works on sane cases. Now check whether nonexistent headers
3012 # can be detected and how.
3013 cat >conftest.$ac_ext <<_ACEOF
3014 /* confdefs.h. */
3015 _ACEOF
3016 cat confdefs.h >>conftest.$ac_ext
3017 cat >>conftest.$ac_ext <<_ACEOF
3018 /* end confdefs.h. */
3019 #include <ac_nonexistent.h>
3020 _ACEOF
3021 if { (ac_try="$ac_cpp conftest.$ac_ext"
3022 case "(($ac_try" in
3023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3024 *) ac_try_echo=$ac_try;;
3025 esac
3026 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3027 $as_echo "$ac_try_echo") >&5
3028 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3029 ac_status=$?
3030 grep -v '^ *+' conftest.er1 >conftest.err
3031 rm -f conftest.er1
3032 cat conftest.err >&5
3033 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034 (exit $ac_status); } >/dev/null && {
3035 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3036 test ! -s conftest.err
3037 }; then
3038 # Broken: success on invalid input.
3039 continue
3040 else
3041 $as_echo "$as_me: failed program was:" >&5
3042 sed 's/^/| /' conftest.$ac_ext >&5
3044 # Passes both tests.
3045 ac_preproc_ok=:
3046 break
3049 rm -f conftest.err conftest.$ac_ext
3051 done
3052 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3053 rm -f conftest.err conftest.$ac_ext
3054 if $ac_preproc_ok; then
3055 break
3058 done
3059 ac_cv_prog_CPP=$CPP
3062 CPP=$ac_cv_prog_CPP
3063 else
3064 ac_cv_prog_CPP=$CPP
3066 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3067 $as_echo "$CPP" >&6; }
3068 ac_preproc_ok=false
3069 for ac_c_preproc_warn_flag in '' yes
3071 # Use a header file that comes with gcc, so configuring glibc
3072 # with a fresh cross-compiler works.
3073 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3074 # <limits.h> exists even on freestanding compilers.
3075 # On the NeXT, cc -E runs the code through the compiler's parser,
3076 # not just through cpp. "Syntax error" is here to catch this case.
3077 cat >conftest.$ac_ext <<_ACEOF
3078 /* confdefs.h. */
3079 _ACEOF
3080 cat confdefs.h >>conftest.$ac_ext
3081 cat >>conftest.$ac_ext <<_ACEOF
3082 /* end confdefs.h. */
3083 #ifdef __STDC__
3084 # include <limits.h>
3085 #else
3086 # include <assert.h>
3087 #endif
3088 Syntax error
3089 _ACEOF
3090 if { (ac_try="$ac_cpp conftest.$ac_ext"
3091 case "(($ac_try" in
3092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3093 *) ac_try_echo=$ac_try;;
3094 esac
3095 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3096 $as_echo "$ac_try_echo") >&5
3097 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3098 ac_status=$?
3099 grep -v '^ *+' conftest.er1 >conftest.err
3100 rm -f conftest.er1
3101 cat conftest.err >&5
3102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103 (exit $ac_status); } >/dev/null && {
3104 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3105 test ! -s conftest.err
3106 }; then
3108 else
3109 $as_echo "$as_me: failed program was:" >&5
3110 sed 's/^/| /' conftest.$ac_ext >&5
3112 # Broken: fails on valid input.
3113 continue
3116 rm -f conftest.err conftest.$ac_ext
3118 # OK, works on sane cases. Now check whether nonexistent headers
3119 # can be detected and how.
3120 cat >conftest.$ac_ext <<_ACEOF
3121 /* confdefs.h. */
3122 _ACEOF
3123 cat confdefs.h >>conftest.$ac_ext
3124 cat >>conftest.$ac_ext <<_ACEOF
3125 /* end confdefs.h. */
3126 #include <ac_nonexistent.h>
3127 _ACEOF
3128 if { (ac_try="$ac_cpp conftest.$ac_ext"
3129 case "(($ac_try" in
3130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3131 *) ac_try_echo=$ac_try;;
3132 esac
3133 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3134 $as_echo "$ac_try_echo") >&5
3135 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3136 ac_status=$?
3137 grep -v '^ *+' conftest.er1 >conftest.err
3138 rm -f conftest.er1
3139 cat conftest.err >&5
3140 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141 (exit $ac_status); } >/dev/null && {
3142 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3143 test ! -s conftest.err
3144 }; then
3145 # Broken: success on invalid input.
3146 continue
3147 else
3148 $as_echo "$as_me: failed program was:" >&5
3149 sed 's/^/| /' conftest.$ac_ext >&5
3151 # Passes both tests.
3152 ac_preproc_ok=:
3153 break
3156 rm -f conftest.err conftest.$ac_ext
3158 done
3159 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3160 rm -f conftest.err conftest.$ac_ext
3161 if $ac_preproc_ok; then
3163 else
3164 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3165 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3166 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3167 See \`config.log' for more details." >&5
3168 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3169 See \`config.log' for more details." >&2;}
3170 { (exit 1); exit 1; }; }; }
3173 ac_ext=c
3174 ac_cpp='$CPP $CPPFLAGS'
3175 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3176 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3177 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3180 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3181 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3182 if test "${ac_cv_path_GREP+set}" = set; then
3183 $as_echo_n "(cached) " >&6
3184 else
3185 if test -z "$GREP"; then
3186 ac_path_GREP_found=false
3187 # Loop through the user's path and test for each of PROGNAME-LIST
3188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3189 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3191 IFS=$as_save_IFS
3192 test -z "$as_dir" && as_dir=.
3193 for ac_prog in grep ggrep; do
3194 for ac_exec_ext in '' $ac_executable_extensions; do
3195 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3196 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3197 # Check for GNU ac_path_GREP and select it if it is found.
3198 # Check for GNU $ac_path_GREP
3199 case `"$ac_path_GREP" --version 2>&1` in
3200 *GNU*)
3201 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3203 ac_count=0
3204 $as_echo_n 0123456789 >"conftest.in"
3205 while :
3207 cat "conftest.in" "conftest.in" >"conftest.tmp"
3208 mv "conftest.tmp" "conftest.in"
3209 cp "conftest.in" "conftest.nl"
3210 $as_echo 'GREP' >> "conftest.nl"
3211 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3212 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3213 ac_count=`expr $ac_count + 1`
3214 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3215 # Best one so far, save it but keep looking for a better one
3216 ac_cv_path_GREP="$ac_path_GREP"
3217 ac_path_GREP_max=$ac_count
3219 # 10*(2^10) chars as input seems more than enough
3220 test $ac_count -gt 10 && break
3221 done
3222 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3223 esac
3225 $ac_path_GREP_found && break 3
3226 done
3227 done
3228 done
3229 IFS=$as_save_IFS
3230 if test -z "$ac_cv_path_GREP"; then
3231 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3232 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3233 { (exit 1); exit 1; }; }
3235 else
3236 ac_cv_path_GREP=$GREP
3240 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3241 $as_echo "$ac_cv_path_GREP" >&6; }
3242 GREP="$ac_cv_path_GREP"
3245 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3246 $as_echo_n "checking for egrep... " >&6; }
3247 if test "${ac_cv_path_EGREP+set}" = set; then
3248 $as_echo_n "(cached) " >&6
3249 else
3250 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3251 then ac_cv_path_EGREP="$GREP -E"
3252 else
3253 if test -z "$EGREP"; then
3254 ac_path_EGREP_found=false
3255 # Loop through the user's path and test for each of PROGNAME-LIST
3256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3257 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3259 IFS=$as_save_IFS
3260 test -z "$as_dir" && as_dir=.
3261 for ac_prog in egrep; do
3262 for ac_exec_ext in '' $ac_executable_extensions; do
3263 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3264 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3265 # Check for GNU ac_path_EGREP and select it if it is found.
3266 # Check for GNU $ac_path_EGREP
3267 case `"$ac_path_EGREP" --version 2>&1` in
3268 *GNU*)
3269 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3271 ac_count=0
3272 $as_echo_n 0123456789 >"conftest.in"
3273 while :
3275 cat "conftest.in" "conftest.in" >"conftest.tmp"
3276 mv "conftest.tmp" "conftest.in"
3277 cp "conftest.in" "conftest.nl"
3278 $as_echo 'EGREP' >> "conftest.nl"
3279 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3280 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3281 ac_count=`expr $ac_count + 1`
3282 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3283 # Best one so far, save it but keep looking for a better one
3284 ac_cv_path_EGREP="$ac_path_EGREP"
3285 ac_path_EGREP_max=$ac_count
3287 # 10*(2^10) chars as input seems more than enough
3288 test $ac_count -gt 10 && break
3289 done
3290 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3291 esac
3293 $ac_path_EGREP_found && break 3
3294 done
3295 done
3296 done
3297 IFS=$as_save_IFS
3298 if test -z "$ac_cv_path_EGREP"; then
3299 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3300 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3301 { (exit 1); exit 1; }; }
3303 else
3304 ac_cv_path_EGREP=$EGREP
3309 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3310 $as_echo "$ac_cv_path_EGREP" >&6; }
3311 EGREP="$ac_cv_path_EGREP"
3314 cat >conftest.$ac_ext <<_ACEOF
3315 /* confdefs.h. */
3316 _ACEOF
3317 cat confdefs.h >>conftest.$ac_ext
3318 cat >>conftest.$ac_ext <<_ACEOF
3319 /* end confdefs.h. */
3321 _ACEOF
3322 rm -f conftest*
3323 { $as_echo "$as_me:$LINENO: checking for library containing strerror" >&5
3324 $as_echo_n "checking for library containing strerror... " >&6; }
3325 if test "${ac_cv_search_strerror+set}" = set; then
3326 $as_echo_n "(cached) " >&6
3327 else
3328 ac_func_search_save_LIBS=$LIBS
3329 cat >conftest.$ac_ext <<_ACEOF
3330 /* confdefs.h. */
3331 _ACEOF
3332 cat confdefs.h >>conftest.$ac_ext
3333 cat >>conftest.$ac_ext <<_ACEOF
3334 /* end confdefs.h. */
3336 /* Override any GCC internal prototype to avoid an error.
3337 Use char because int might match the return type of a GCC
3338 builtin and then its argument prototype would still apply. */
3339 #ifdef __cplusplus
3340 extern "C"
3341 #endif
3342 char strerror ();
3344 main ()
3346 return strerror ();
3348 return 0;
3350 _ACEOF
3351 for ac_lib in '' cposix; do
3352 if test -z "$ac_lib"; then
3353 ac_res="none required"
3354 else
3355 ac_res=-l$ac_lib
3356 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3358 rm -f conftest.$ac_objext conftest$ac_exeext
3359 if { (ac_try="$ac_link"
3360 case "(($ac_try" in
3361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3362 *) ac_try_echo=$ac_try;;
3363 esac
3364 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3365 $as_echo "$ac_try_echo") >&5
3366 (eval "$ac_link") 2>conftest.er1
3367 ac_status=$?
3368 grep -v '^ *+' conftest.er1 >conftest.err
3369 rm -f conftest.er1
3370 cat conftest.err >&5
3371 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3372 (exit $ac_status); } && {
3373 test -z "$ac_c_werror_flag" ||
3374 test ! -s conftest.err
3375 } && test -s conftest$ac_exeext && {
3376 test "$cross_compiling" = yes ||
3377 $as_test_x conftest$ac_exeext
3378 }; then
3379 ac_cv_search_strerror=$ac_res
3380 else
3381 $as_echo "$as_me: failed program was:" >&5
3382 sed 's/^/| /' conftest.$ac_ext >&5
3387 rm -rf conftest.dSYM
3388 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3389 conftest$ac_exeext
3390 if test "${ac_cv_search_strerror+set}" = set; then
3391 break
3393 done
3394 if test "${ac_cv_search_strerror+set}" = set; then
3396 else
3397 ac_cv_search_strerror=no
3399 rm conftest.$ac_ext
3400 LIBS=$ac_func_search_save_LIBS
3402 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3403 $as_echo "$ac_cv_search_strerror" >&6; }
3404 ac_res=$ac_cv_search_strerror
3405 if test "$ac_res" != no; then
3406 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3409 for ac_prog in gawk mawk nawk awk
3411 # Extract the first word of "$ac_prog", so it can be a program name with args.
3412 set dummy $ac_prog; ac_word=$2
3413 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3414 $as_echo_n "checking for $ac_word... " >&6; }
3415 if test "${ac_cv_prog_AWK+set}" = set; then
3416 $as_echo_n "(cached) " >&6
3417 else
3418 if test -n "$AWK"; then
3419 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3420 else
3421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3422 for as_dir in $PATH
3424 IFS=$as_save_IFS
3425 test -z "$as_dir" && as_dir=.
3426 for ac_exec_ext in '' $ac_executable_extensions; do
3427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3428 ac_cv_prog_AWK="$ac_prog"
3429 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3430 break 2
3432 done
3433 done
3434 IFS=$as_save_IFS
3438 AWK=$ac_cv_prog_AWK
3439 if test -n "$AWK"; then
3440 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
3441 $as_echo "$AWK" >&6; }
3442 else
3443 { $as_echo "$as_me:$LINENO: result: no" >&5
3444 $as_echo "no" >&6; }
3448 test -n "$AWK" && break
3449 done
3451 # Extract the first word of "strip", so it can be a program name with args.
3452 set dummy strip; ac_word=$2
3453 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3454 $as_echo_n "checking for $ac_word... " >&6; }
3455 if test "${ac_cv_prog_STRIP+set}" = set; then
3456 $as_echo_n "(cached) " >&6
3457 else
3458 if test -n "$STRIP"; then
3459 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3460 else
3461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3462 for as_dir in $PATH
3464 IFS=$as_save_IFS
3465 test -z "$as_dir" && as_dir=.
3466 for ac_exec_ext in '' $ac_executable_extensions; do
3467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3468 ac_cv_prog_STRIP="strip"
3469 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3470 break 2
3472 done
3473 done
3474 IFS=$as_save_IFS
3476 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
3479 STRIP=$ac_cv_prog_STRIP
3480 if test -n "$STRIP"; then
3481 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
3482 $as_echo "$STRIP" >&6; }
3483 else
3484 { $as_echo "$as_me:$LINENO: result: no" >&5
3485 $as_echo "no" >&6; }
3492 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3493 $as_echo_n "checking for ANSI C header files... " >&6; }
3494 if test "${ac_cv_header_stdc+set}" = set; then
3495 $as_echo_n "(cached) " >&6
3496 else
3497 cat >conftest.$ac_ext <<_ACEOF
3498 /* confdefs.h. */
3499 _ACEOF
3500 cat confdefs.h >>conftest.$ac_ext
3501 cat >>conftest.$ac_ext <<_ACEOF
3502 /* end confdefs.h. */
3503 #include <stdlib.h>
3504 #include <stdarg.h>
3505 #include <string.h>
3506 #include <float.h>
3509 main ()
3513 return 0;
3515 _ACEOF
3516 rm -f conftest.$ac_objext
3517 if { (ac_try="$ac_compile"
3518 case "(($ac_try" in
3519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3520 *) ac_try_echo=$ac_try;;
3521 esac
3522 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3523 $as_echo "$ac_try_echo") >&5
3524 (eval "$ac_compile") 2>conftest.er1
3525 ac_status=$?
3526 grep -v '^ *+' conftest.er1 >conftest.err
3527 rm -f conftest.er1
3528 cat conftest.err >&5
3529 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3530 (exit $ac_status); } && {
3531 test -z "$ac_c_werror_flag" ||
3532 test ! -s conftest.err
3533 } && test -s conftest.$ac_objext; then
3534 ac_cv_header_stdc=yes
3535 else
3536 $as_echo "$as_me: failed program was:" >&5
3537 sed 's/^/| /' conftest.$ac_ext >&5
3539 ac_cv_header_stdc=no
3542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3544 if test $ac_cv_header_stdc = yes; then
3545 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3546 cat >conftest.$ac_ext <<_ACEOF
3547 /* confdefs.h. */
3548 _ACEOF
3549 cat confdefs.h >>conftest.$ac_ext
3550 cat >>conftest.$ac_ext <<_ACEOF
3551 /* end confdefs.h. */
3552 #include <string.h>
3554 _ACEOF
3555 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3556 $EGREP "memchr" >/dev/null 2>&1; then
3558 else
3559 ac_cv_header_stdc=no
3561 rm -f conftest*
3565 if test $ac_cv_header_stdc = yes; then
3566 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3567 cat >conftest.$ac_ext <<_ACEOF
3568 /* confdefs.h. */
3569 _ACEOF
3570 cat confdefs.h >>conftest.$ac_ext
3571 cat >>conftest.$ac_ext <<_ACEOF
3572 /* end confdefs.h. */
3573 #include <stdlib.h>
3575 _ACEOF
3576 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3577 $EGREP "free" >/dev/null 2>&1; then
3579 else
3580 ac_cv_header_stdc=no
3582 rm -f conftest*
3586 if test $ac_cv_header_stdc = yes; then
3587 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3588 if test "$cross_compiling" = yes; then
3590 else
3591 cat >conftest.$ac_ext <<_ACEOF
3592 /* confdefs.h. */
3593 _ACEOF
3594 cat confdefs.h >>conftest.$ac_ext
3595 cat >>conftest.$ac_ext <<_ACEOF
3596 /* end confdefs.h. */
3597 #include <ctype.h>
3598 #include <stdlib.h>
3599 #if ((' ' & 0x0FF) == 0x020)
3600 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3601 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3602 #else
3603 # define ISLOWER(c) \
3604 (('a' <= (c) && (c) <= 'i') \
3605 || ('j' <= (c) && (c) <= 'r') \
3606 || ('s' <= (c) && (c) <= 'z'))
3607 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3608 #endif
3610 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3612 main ()
3614 int i;
3615 for (i = 0; i < 256; i++)
3616 if (XOR (islower (i), ISLOWER (i))
3617 || toupper (i) != TOUPPER (i))
3618 return 2;
3619 return 0;
3621 _ACEOF
3622 rm -f conftest$ac_exeext
3623 if { (ac_try="$ac_link"
3624 case "(($ac_try" in
3625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3626 *) ac_try_echo=$ac_try;;
3627 esac
3628 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3629 $as_echo "$ac_try_echo") >&5
3630 (eval "$ac_link") 2>&5
3631 ac_status=$?
3632 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3633 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3634 { (case "(($ac_try" in
3635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3636 *) ac_try_echo=$ac_try;;
3637 esac
3638 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3639 $as_echo "$ac_try_echo") >&5
3640 (eval "$ac_try") 2>&5
3641 ac_status=$?
3642 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3643 (exit $ac_status); }; }; then
3645 else
3646 $as_echo "$as_me: program exited with status $ac_status" >&5
3647 $as_echo "$as_me: failed program was:" >&5
3648 sed 's/^/| /' conftest.$ac_ext >&5
3650 ( exit $ac_status )
3651 ac_cv_header_stdc=no
3653 rm -rf conftest.dSYM
3654 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3660 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3661 $as_echo "$ac_cv_header_stdc" >&6; }
3662 if test $ac_cv_header_stdc = yes; then
3664 cat >>confdefs.h <<\_ACEOF
3665 #define STDC_HEADERS 1
3666 _ACEOF
3670 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
3671 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
3672 if test "${ac_cv_header_sys_wait_h+set}" = set; then
3673 $as_echo_n "(cached) " >&6
3674 else
3675 cat >conftest.$ac_ext <<_ACEOF
3676 /* confdefs.h. */
3677 _ACEOF
3678 cat confdefs.h >>conftest.$ac_ext
3679 cat >>conftest.$ac_ext <<_ACEOF
3680 /* end confdefs.h. */
3681 #include <sys/types.h>
3682 #include <sys/wait.h>
3683 #ifndef WEXITSTATUS
3684 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
3685 #endif
3686 #ifndef WIFEXITED
3687 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3688 #endif
3691 main ()
3693 int s;
3694 wait (&s);
3695 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3697 return 0;
3699 _ACEOF
3700 rm -f conftest.$ac_objext
3701 if { (ac_try="$ac_compile"
3702 case "(($ac_try" in
3703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3704 *) ac_try_echo=$ac_try;;
3705 esac
3706 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3707 $as_echo "$ac_try_echo") >&5
3708 (eval "$ac_compile") 2>conftest.er1
3709 ac_status=$?
3710 grep -v '^ *+' conftest.er1 >conftest.err
3711 rm -f conftest.er1
3712 cat conftest.err >&5
3713 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3714 (exit $ac_status); } && {
3715 test -z "$ac_c_werror_flag" ||
3716 test ! -s conftest.err
3717 } && test -s conftest.$ac_objext; then
3718 ac_cv_header_sys_wait_h=yes
3719 else
3720 $as_echo "$as_me: failed program was:" >&5
3721 sed 's/^/| /' conftest.$ac_ext >&5
3723 ac_cv_header_sys_wait_h=no
3726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3728 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
3729 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
3730 if test $ac_cv_header_sys_wait_h = yes; then
3732 cat >>confdefs.h <<\_ACEOF
3733 #define HAVE_SYS_WAIT_H 1
3734 _ACEOF
3739 if test -z "$CFLAGS"; then
3740 CFLAGS="-O"
3741 test "$GCC" = yes && CFLAGS="-O2 -fno-strength-reduce -Wall"
3743 if test "$GCC" = yes; then
3744 gccversion=`"$CC" -dumpversion`
3745 if test "x$gccversion" = "x"; then
3746 gccversion=`"$CC" --version | sed -e '2,$d' -e 's/darwin.//' -e 's/^[^0-9]*\([0-9]\.[0-9.]*\).*$/\1/g'`
3748 if test "$gccversion" = "3.0.1" -o "$gccversion" = "3.0.2" -o "$gccversion" = "4.0.1"; then
3749 echo 'GCC [34].0.[12] has a bug in the optimizer, disabling "-O#"'
3750 CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-O/'`
3751 else
3752 if test "$gccversion" = "3.1" -o "$gccversion" = "3.2" -o "$gccversion" = "3.2.1" && `echo "$CFLAGS" | grep -v fno-strength-reduce >/dev/null`; then
3753 echo 'GCC 3.1 and 3.2 have a bug in the optimizer, adding "-fno-strength-reduce"'
3754 CFLAGS="$CFLAGS -fno-strength-reduce"
3759 if test "$cross_compiling" = yes; then
3760 { $as_echo "$as_me:$LINENO: result: cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&5
3761 $as_echo "cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&6; }
3764 test "$GCC" = yes && CPP_MM=M;
3766 if test -f ./toolcheck; then
3767 { $as_echo "$as_me:$LINENO: checking for buggy tools..." >&5
3768 $as_echo "$as_me: checking for buggy tools..." >&6;}
3769 sh ./toolcheck 1>&6
3772 OS_EXTRA_SRC=""; OS_EXTRA_OBJ=""
3774 { $as_echo "$as_me:$LINENO: checking for BeOS" >&5
3775 $as_echo_n "checking for BeOS... " >&6; }
3776 case `uname` in
3777 BeOS) OS_EXTRA_SRC=os_beos.c; OS_EXTRA_OBJ=objects/os_beos.o
3778 BEOS=yes; { $as_echo "$as_me:$LINENO: result: yes" >&5
3779 $as_echo "yes" >&6; };;
3780 *) BEOS=no; { $as_echo "$as_me:$LINENO: result: no" >&5
3781 $as_echo "no" >&6; };;
3782 esac
3784 { $as_echo "$as_me:$LINENO: checking for QNX" >&5
3785 $as_echo_n "checking for QNX... " >&6; }
3786 case `uname` in
3787 QNX) OS_EXTRA_SRC=os_qnx.c; OS_EXTRA_OBJ=objects/os_qnx.o
3788 test -z "$with_x" && with_x=no
3789 QNX=yes; { $as_echo "$as_me:$LINENO: result: yes" >&5
3790 $as_echo "yes" >&6; };;
3791 *) QNX=no; { $as_echo "$as_me:$LINENO: result: no" >&5
3792 $as_echo "no" >&6; };;
3793 esac
3795 { $as_echo "$as_me:$LINENO: checking for Darwin (Mac OS X)" >&5
3796 $as_echo_n "checking for Darwin (Mac OS X)... " >&6; }
3797 if test "`(uname) 2>/dev/null`" = Darwin; then
3798 { $as_echo "$as_me:$LINENO: result: yes" >&5
3799 $as_echo "yes" >&6; }
3801 { $as_echo "$as_me:$LINENO: checking --disable-darwin argument" >&5
3802 $as_echo_n "checking --disable-darwin argument... " >&6; }
3803 # Check whether --enable-darwin was given.
3804 if test "${enable_darwin+set}" = set; then
3805 enableval=$enable_darwin;
3806 else
3807 enable_darwin="yes"
3810 if test "$enable_darwin" = "yes"; then
3811 { $as_echo "$as_me:$LINENO: result: no" >&5
3812 $as_echo "no" >&6; }
3813 { $as_echo "$as_me:$LINENO: checking if Darwin files are there" >&5
3814 $as_echo_n "checking if Darwin files are there... " >&6; }
3815 if test -f os_macosx.c; then
3816 { $as_echo "$as_me:$LINENO: result: yes" >&5
3817 $as_echo "yes" >&6; }
3818 else
3819 { $as_echo "$as_me:$LINENO: result: no, Darwin support disabled" >&5
3820 $as_echo "no, Darwin support disabled" >&6; }
3821 enable_darwin=no
3823 else
3824 { $as_echo "$as_me:$LINENO: result: yes, Darwin support excluded" >&5
3825 $as_echo "yes, Darwin support excluded" >&6; }
3828 { $as_echo "$as_me:$LINENO: checking --with-mac-arch argument" >&5
3829 $as_echo_n "checking --with-mac-arch argument... " >&6; }
3831 # Check whether --with-mac-arch was given.
3832 if test "${with_mac_arch+set}" = set; then
3833 withval=$with_mac_arch; MACARCH="$withval"; { $as_echo "$as_me:$LINENO: result: $MACARCH" >&5
3834 $as_echo "$MACARCH" >&6; }
3835 else
3836 MACARCH="current"; { $as_echo "$as_me:$LINENO: result: defaulting to $MACARCH" >&5
3837 $as_echo "defaulting to $MACARCH" >&6; }
3841 { $as_echo "$as_me:$LINENO: checking --with-developer-dir argument" >&5
3842 $as_echo_n "checking --with-developer-dir argument... " >&6; }
3844 # Check whether --with-developer-dir was given.
3845 if test "${with_developer_dir+set}" = set; then
3846 withval=$with_developer_dir; DEVELOPER_DIR="$withval"; { $as_echo "$as_me:$LINENO: result: $DEVELOPER_DIR" >&5
3847 $as_echo "$DEVELOPER_DIR" >&6; }
3848 else
3849 DEVELOPER_DIR=""; { $as_echo "$as_me:$LINENO: result: not present" >&5
3850 $as_echo "not present" >&6; }
3854 if test "x$DEVELOPER_DIR" = "x"; then
3855 # Extract the first word of "xcode-select", so it can be a program name with args.
3856 set dummy xcode-select; ac_word=$2
3857 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3858 $as_echo_n "checking for $ac_word... " >&6; }
3859 if test "${ac_cv_path_XCODE_SELECT+set}" = set; then
3860 $as_echo_n "(cached) " >&6
3861 else
3862 case $XCODE_SELECT in
3863 [\\/]* | ?:[\\/]*)
3864 ac_cv_path_XCODE_SELECT="$XCODE_SELECT" # Let the user override the test with a path.
3867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3868 for as_dir in $PATH
3870 IFS=$as_save_IFS
3871 test -z "$as_dir" && as_dir=.
3872 for ac_exec_ext in '' $ac_executable_extensions; do
3873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3874 ac_cv_path_XCODE_SELECT="$as_dir/$ac_word$ac_exec_ext"
3875 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3876 break 2
3878 done
3879 done
3880 IFS=$as_save_IFS
3883 esac
3885 XCODE_SELECT=$ac_cv_path_XCODE_SELECT
3886 if test -n "$XCODE_SELECT"; then
3887 { $as_echo "$as_me:$LINENO: result: $XCODE_SELECT" >&5
3888 $as_echo "$XCODE_SELECT" >&6; }
3889 else
3890 { $as_echo "$as_me:$LINENO: result: no" >&5
3891 $as_echo "no" >&6; }
3895 if test "x$XCODE_SELECT" != "x"; then
3896 { $as_echo "$as_me:$LINENO: checking for developer dir using xcode-select" >&5
3897 $as_echo_n "checking for developer dir using xcode-select... " >&6; }
3898 DEVELOPER_DIR=`$XCODE_SELECT -print-path`
3899 { $as_echo "$as_me:$LINENO: result: $DEVELOPER_DIR" >&5
3900 $as_echo "$DEVELOPER_DIR" >&6; }
3901 else
3902 DEVELOPER_DIR=/Developer
3906 if test "x$MACARCH" = "xboth"; then
3907 { $as_echo "$as_me:$LINENO: checking for 10.4 universal SDK" >&5
3908 $as_echo_n "checking for 10.4 universal SDK... " >&6; }
3909 save_cppflags="$CPPFLAGS"
3910 save_cflags="$CFLAGS"
3911 save_ldflags="$LDFLAGS"
3912 CFLAGS="$CFLAGS -isysroot $DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc"
3913 cat >conftest.$ac_ext <<_ACEOF
3914 /* confdefs.h. */
3915 _ACEOF
3916 cat confdefs.h >>conftest.$ac_ext
3917 cat >>conftest.$ac_ext <<_ACEOF
3918 /* end confdefs.h. */
3921 main ()
3925 return 0;
3927 _ACEOF
3928 rm -f conftest.$ac_objext conftest$ac_exeext
3929 if { (ac_try="$ac_link"
3930 case "(($ac_try" in
3931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3932 *) ac_try_echo=$ac_try;;
3933 esac
3934 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3935 $as_echo "$ac_try_echo") >&5
3936 (eval "$ac_link") 2>conftest.er1
3937 ac_status=$?
3938 grep -v '^ *+' conftest.er1 >conftest.err
3939 rm -f conftest.er1
3940 cat conftest.err >&5
3941 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3942 (exit $ac_status); } && {
3943 test -z "$ac_c_werror_flag" ||
3944 test ! -s conftest.err
3945 } && test -s conftest$ac_exeext && {
3946 test "$cross_compiling" = yes ||
3947 $as_test_x conftest$ac_exeext
3948 }; then
3949 { $as_echo "$as_me:$LINENO: result: found" >&5
3950 $as_echo "found" >&6; }
3951 else
3952 $as_echo "$as_me: failed program was:" >&5
3953 sed 's/^/| /' conftest.$ac_ext >&5
3955 { $as_echo "$as_me:$LINENO: result: not found" >&5
3956 $as_echo "not found" >&6; }
3957 CFLAGS="$save_cflags"
3958 { $as_echo "$as_me:$LINENO: checking if Intel architecture is supported" >&5
3959 $as_echo_n "checking if Intel architecture is supported... " >&6; }
3960 CPPFLAGS="$CPPFLAGS -arch i386"
3961 LDFLAGS="$save_ldflags -arch i386"
3962 cat >conftest.$ac_ext <<_ACEOF
3963 /* confdefs.h. */
3964 _ACEOF
3965 cat confdefs.h >>conftest.$ac_ext
3966 cat >>conftest.$ac_ext <<_ACEOF
3967 /* end confdefs.h. */
3970 main ()
3974 return 0;
3976 _ACEOF
3977 rm -f conftest.$ac_objext conftest$ac_exeext
3978 if { (ac_try="$ac_link"
3979 case "(($ac_try" in
3980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3981 *) ac_try_echo=$ac_try;;
3982 esac
3983 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3984 $as_echo "$ac_try_echo") >&5
3985 (eval "$ac_link") 2>conftest.er1
3986 ac_status=$?
3987 grep -v '^ *+' conftest.er1 >conftest.err
3988 rm -f conftest.er1
3989 cat conftest.err >&5
3990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3991 (exit $ac_status); } && {
3992 test -z "$ac_c_werror_flag" ||
3993 test ! -s conftest.err
3994 } && test -s conftest$ac_exeext && {
3995 test "$cross_compiling" = yes ||
3996 $as_test_x conftest$ac_exeext
3997 }; then
3998 { $as_echo "$as_me:$LINENO: result: yes" >&5
3999 $as_echo "yes" >&6; }; MACARCH="intel"
4000 else
4001 $as_echo "$as_me: failed program was:" >&5
4002 sed 's/^/| /' conftest.$ac_ext >&5
4004 { $as_echo "$as_me:$LINENO: result: no" >&5
4005 $as_echo "no" >&6; }
4006 MACARCH="ppc"
4007 CPPFLAGS="$save_cppflags -arch ppc"
4008 LDFLAGS="$save_ldflags -arch ppc"
4011 rm -rf conftest.dSYM
4012 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4013 conftest$ac_exeext conftest.$ac_ext
4016 rm -rf conftest.dSYM
4017 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4018 conftest$ac_exeext conftest.$ac_ext
4019 elif test "x$MACARCH" = "xintel"; then
4020 CPPFLAGS="$CPPFLAGS -arch intel"
4021 LDFLAGS="$LDFLAGS -arch intel"
4022 elif test "x$MACARCH" = "xppc"; then
4023 CPPFLAGS="$CPPFLAGS -arch ppc"
4024 LDFLAGS="$LDFLAGS -arch ppc"
4027 if test "$enable_darwin" = "yes"; then
4028 MACOSX=yes
4029 OS_EXTRA_SRC="os_macosx.c os_mac_conv.c";
4030 OS_EXTRA_OBJ="objects/os_macosx.o objects/os_mac_conv.o"
4031 CPPFLAGS="$CPPFLAGS -DMACOS_X_UNIX -no-cpp-precomp"
4032 if test "x$MACARCH" = "xboth"; then
4033 CPPFLAGS="$CPPFLAGS -I$DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk/Developer/Headers/FlatCarbon"
4034 else
4035 CPPFLAGS="$CPPFLAGS -I$DEVELOPER_DIR/Headers/FlatCarbon"
4038 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4048 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4049 inttypes.h stdint.h unistd.h
4051 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4052 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4053 $as_echo_n "checking for $ac_header... " >&6; }
4054 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4055 $as_echo_n "(cached) " >&6
4056 else
4057 cat >conftest.$ac_ext <<_ACEOF
4058 /* confdefs.h. */
4059 _ACEOF
4060 cat confdefs.h >>conftest.$ac_ext
4061 cat >>conftest.$ac_ext <<_ACEOF
4062 /* end confdefs.h. */
4063 $ac_includes_default
4065 #include <$ac_header>
4066 _ACEOF
4067 rm -f conftest.$ac_objext
4068 if { (ac_try="$ac_compile"
4069 case "(($ac_try" in
4070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4071 *) ac_try_echo=$ac_try;;
4072 esac
4073 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4074 $as_echo "$ac_try_echo") >&5
4075 (eval "$ac_compile") 2>conftest.er1
4076 ac_status=$?
4077 grep -v '^ *+' conftest.er1 >conftest.err
4078 rm -f conftest.er1
4079 cat conftest.err >&5
4080 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4081 (exit $ac_status); } && {
4082 test -z "$ac_c_werror_flag" ||
4083 test ! -s conftest.err
4084 } && test -s conftest.$ac_objext; then
4085 eval "$as_ac_Header=yes"
4086 else
4087 $as_echo "$as_me: failed program was:" >&5
4088 sed 's/^/| /' conftest.$ac_ext >&5
4090 eval "$as_ac_Header=no"
4093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4095 ac_res=`eval 'as_val=${'$as_ac_Header'}
4096 $as_echo "$as_val"'`
4097 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4098 $as_echo "$ac_res" >&6; }
4099 as_val=`eval 'as_val=${'$as_ac_Header'}
4100 $as_echo "$as_val"'`
4101 if test "x$as_val" = x""yes; then
4102 cat >>confdefs.h <<_ACEOF
4103 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4104 _ACEOF
4108 done
4111 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
4112 { $as_echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
4113 $as_echo_n "checking for Carbon/Carbon.h... " >&6; }
4114 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
4115 $as_echo_n "(cached) " >&6
4117 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
4118 $as_echo "$ac_cv_header_Carbon_Carbon_h" >&6; }
4119 else
4120 # Is the header compilable?
4121 { $as_echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
4122 $as_echo_n "checking Carbon/Carbon.h usability... " >&6; }
4123 cat >conftest.$ac_ext <<_ACEOF
4124 /* confdefs.h. */
4125 _ACEOF
4126 cat confdefs.h >>conftest.$ac_ext
4127 cat >>conftest.$ac_ext <<_ACEOF
4128 /* end confdefs.h. */
4129 $ac_includes_default
4130 #include <Carbon/Carbon.h>
4131 _ACEOF
4132 rm -f conftest.$ac_objext
4133 if { (ac_try="$ac_compile"
4134 case "(($ac_try" in
4135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4136 *) ac_try_echo=$ac_try;;
4137 esac
4138 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4139 $as_echo "$ac_try_echo") >&5
4140 (eval "$ac_compile") 2>conftest.er1
4141 ac_status=$?
4142 grep -v '^ *+' conftest.er1 >conftest.err
4143 rm -f conftest.er1
4144 cat conftest.err >&5
4145 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4146 (exit $ac_status); } && {
4147 test -z "$ac_c_werror_flag" ||
4148 test ! -s conftest.err
4149 } && test -s conftest.$ac_objext; then
4150 ac_header_compiler=yes
4151 else
4152 $as_echo "$as_me: failed program was:" >&5
4153 sed 's/^/| /' conftest.$ac_ext >&5
4155 ac_header_compiler=no
4158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4159 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4160 $as_echo "$ac_header_compiler" >&6; }
4162 # Is the header present?
4163 { $as_echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
4164 $as_echo_n "checking Carbon/Carbon.h presence... " >&6; }
4165 cat >conftest.$ac_ext <<_ACEOF
4166 /* confdefs.h. */
4167 _ACEOF
4168 cat confdefs.h >>conftest.$ac_ext
4169 cat >>conftest.$ac_ext <<_ACEOF
4170 /* end confdefs.h. */
4171 #include <Carbon/Carbon.h>
4172 _ACEOF
4173 if { (ac_try="$ac_cpp conftest.$ac_ext"
4174 case "(($ac_try" in
4175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4176 *) ac_try_echo=$ac_try;;
4177 esac
4178 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4179 $as_echo "$ac_try_echo") >&5
4180 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4181 ac_status=$?
4182 grep -v '^ *+' conftest.er1 >conftest.err
4183 rm -f conftest.er1
4184 cat conftest.err >&5
4185 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4186 (exit $ac_status); } >/dev/null && {
4187 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4188 test ! -s conftest.err
4189 }; then
4190 ac_header_preproc=yes
4191 else
4192 $as_echo "$as_me: failed program was:" >&5
4193 sed 's/^/| /' conftest.$ac_ext >&5
4195 ac_header_preproc=no
4198 rm -f conftest.err conftest.$ac_ext
4199 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4200 $as_echo "$ac_header_preproc" >&6; }
4202 # So? What about this header?
4203 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4204 yes:no: )
4205 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
4206 $as_echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4207 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
4208 $as_echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
4209 ac_header_preproc=yes
4211 no:yes:* )
4212 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
4213 $as_echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
4214 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
4215 $as_echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
4216 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
4217 $as_echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
4218 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
4219 $as_echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
4220 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
4221 $as_echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
4222 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
4223 $as_echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
4226 esac
4227 { $as_echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
4228 $as_echo_n "checking for Carbon/Carbon.h... " >&6; }
4229 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
4230 $as_echo_n "(cached) " >&6
4231 else
4232 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
4234 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
4235 $as_echo "$ac_cv_header_Carbon_Carbon_h" >&6; }
4238 if test "x$ac_cv_header_Carbon_Carbon_h" = x""yes; then
4239 CARBON=yes
4243 if test "x$CARBON" = "xyes"; then
4244 if test -z "$with_x" -a "X$enable_gui" != Xmotif -a "X$enable_gui" != Xathena -a "X$enable_gui" != Xgtk -a "X$enable_gui" != Xgtk2; then
4245 with_x=no
4250 if test "$MACARCH" = "intel" -o "$MACARCH" = "both"; then
4251 CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-Oz/'`
4254 else
4255 { $as_echo "$as_me:$LINENO: result: no" >&5
4256 $as_echo "no" >&6; }
4262 if test "$cross_compiling" = no; then
4263 { $as_echo "$as_me:$LINENO: checking --with-local-dir argument" >&5
4264 $as_echo_n "checking --with-local-dir argument... " >&6; }
4265 have_local_include=''
4266 have_local_lib=''
4268 # Check whether --with-local-dir was given.
4269 if test "${with_local_dir+set}" = set; then
4270 withval=$with_local_dir;
4271 local_dir="$withval"
4272 case "$withval" in
4273 */*) ;;
4275 # avoid adding local dir to LDFLAGS and CPPFLAGS
4276 have_local_dir=yes
4277 have_local_lib=yes
4279 *) { { $as_echo "$as_me:$LINENO: error: must pass path argument to --with-local-dir" >&5
4280 $as_echo "$as_me: error: must pass path argument to --with-local-dir" >&2;}
4281 { (exit 1); exit 1; }; } ;;
4282 esac
4283 { $as_echo "$as_me:$LINENO: result: $local_dir" >&5
4284 $as_echo "$local_dir" >&6; }
4286 else
4288 local_dir=/usr/local
4289 { $as_echo "$as_me:$LINENO: result: Defaulting to $local_dir" >&5
4290 $as_echo "Defaulting to $local_dir" >&6; }
4294 if test "$GCC" = yes -a "$local_dir" != no; then
4295 echo 'void f(){}' > conftest.c
4296 have_local_include=`${CC-cc} -no-cpp-precomp -c -v conftest.c 2>&1 | grep "${local_dir}/include"`
4297 have_local_lib=`${CC-cc} -c -v conftest.c 2>&1 | grep "${local_dir}/lib"`
4298 rm -f conftest.c conftest.o
4300 if test -z "$have_local_lib" -a -d "${local_dir}/lib"; then
4301 tt=`echo "$LDFLAGS" | sed -e "s+-L${local_dir}/lib ++g" -e "s+-L${local_dir}/lib$++g"`
4302 if test "$tt" = "$LDFLAGS"; then
4303 LDFLAGS="$LDFLAGS -L${local_dir}/lib"
4306 if test -z "$have_local_include" -a -d "${local_dir}/include"; then
4307 tt=`echo "$CPPFLAGS" | sed -e "s+-I${local_dir}/include ++g" -e "s+-I${local_dir}/include$++g"`
4308 if test "$tt" = "$CPPFLAGS"; then
4309 CPPFLAGS="$CPPFLAGS -I${local_dir}/include"
4314 { $as_echo "$as_me:$LINENO: checking --with-vim-name argument" >&5
4315 $as_echo_n "checking --with-vim-name argument... " >&6; }
4317 # Check whether --with-vim-name was given.
4318 if test "${with_vim_name+set}" = set; then
4319 withval=$with_vim_name; VIMNAME="$withval"; { $as_echo "$as_me:$LINENO: result: $VIMNAME" >&5
4320 $as_echo "$VIMNAME" >&6; }
4321 else
4322 VIMNAME="vim"; { $as_echo "$as_me:$LINENO: result: Defaulting to $VIMNAME" >&5
4323 $as_echo "Defaulting to $VIMNAME" >&6; }
4327 { $as_echo "$as_me:$LINENO: checking --with-ex-name argument" >&5
4328 $as_echo_n "checking --with-ex-name argument... " >&6; }
4330 # Check whether --with-ex-name was given.
4331 if test "${with_ex_name+set}" = set; then
4332 withval=$with_ex_name; EXNAME="$withval"; { $as_echo "$as_me:$LINENO: result: $EXNAME" >&5
4333 $as_echo "$EXNAME" >&6; }
4334 else
4335 EXNAME="ex"; { $as_echo "$as_me:$LINENO: result: Defaulting to ex" >&5
4336 $as_echo "Defaulting to ex" >&6; }
4340 { $as_echo "$as_me:$LINENO: checking --with-view-name argument" >&5
4341 $as_echo_n "checking --with-view-name argument... " >&6; }
4343 # Check whether --with-view-name was given.
4344 if test "${with_view_name+set}" = set; then
4345 withval=$with_view_name; VIEWNAME="$withval"; { $as_echo "$as_me:$LINENO: result: $VIEWNAME" >&5
4346 $as_echo "$VIEWNAME" >&6; }
4347 else
4348 VIEWNAME="view"; { $as_echo "$as_me:$LINENO: result: Defaulting to view" >&5
4349 $as_echo "Defaulting to view" >&6; }
4354 { $as_echo "$as_me:$LINENO: checking --with-global-runtime argument" >&5
4355 $as_echo_n "checking --with-global-runtime argument... " >&6; }
4357 # Check whether --with-global-runtime was given.
4358 if test "${with_global_runtime+set}" = set; then
4359 withval=$with_global_runtime; { $as_echo "$as_me:$LINENO: result: $withval" >&5
4360 $as_echo "$withval" >&6; }; cat >>confdefs.h <<_ACEOF
4361 #define RUNTIME_GLOBAL "$withval"
4362 _ACEOF
4364 else
4365 { $as_echo "$as_me:$LINENO: result: no" >&5
4366 $as_echo "no" >&6; }
4370 { $as_echo "$as_me:$LINENO: checking --with-modified-by argument" >&5
4371 $as_echo_n "checking --with-modified-by argument... " >&6; }
4373 # Check whether --with-modified-by was given.
4374 if test "${with_modified_by+set}" = set; then
4375 withval=$with_modified_by; { $as_echo "$as_me:$LINENO: result: $withval" >&5
4376 $as_echo "$withval" >&6; }; cat >>confdefs.h <<_ACEOF
4377 #define MODIFIED_BY "$withval"
4378 _ACEOF
4380 else
4381 { $as_echo "$as_me:$LINENO: result: no" >&5
4382 $as_echo "no" >&6; }
4386 { $as_echo "$as_me:$LINENO: checking if character set is EBCDIC" >&5
4387 $as_echo_n "checking if character set is EBCDIC... " >&6; }
4388 cat >conftest.$ac_ext <<_ACEOF
4389 /* confdefs.h. */
4390 _ACEOF
4391 cat confdefs.h >>conftest.$ac_ext
4392 cat >>conftest.$ac_ext <<_ACEOF
4393 /* end confdefs.h. */
4396 main ()
4398 /* TryCompile function for CharSet.
4399 Treat any failure as ASCII for compatibility with existing art.
4400 Use compile-time rather than run-time tests for cross-compiler
4401 tolerance. */
4402 #if '0'!=240
4403 make an error "Character set is not EBCDIC"
4404 #endif
4406 return 0;
4408 _ACEOF
4409 rm -f conftest.$ac_objext
4410 if { (ac_try="$ac_compile"
4411 case "(($ac_try" in
4412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4413 *) ac_try_echo=$ac_try;;
4414 esac
4415 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4416 $as_echo "$ac_try_echo") >&5
4417 (eval "$ac_compile") 2>conftest.er1
4418 ac_status=$?
4419 grep -v '^ *+' conftest.er1 >conftest.err
4420 rm -f conftest.er1
4421 cat conftest.err >&5
4422 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4423 (exit $ac_status); } && {
4424 test -z "$ac_c_werror_flag" ||
4425 test ! -s conftest.err
4426 } && test -s conftest.$ac_objext; then
4427 # TryCompile action if true
4428 cf_cv_ebcdic=yes
4429 else
4430 $as_echo "$as_me: failed program was:" >&5
4431 sed 's/^/| /' conftest.$ac_ext >&5
4433 # TryCompile action if false
4434 cf_cv_ebcdic=no
4437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4438 # end of TryCompile ])
4439 # end of CacheVal CvEbcdic
4440 { $as_echo "$as_me:$LINENO: result: $cf_cv_ebcdic" >&5
4441 $as_echo "$cf_cv_ebcdic" >&6; }
4442 case "$cf_cv_ebcdic" in #(vi
4443 yes) cat >>confdefs.h <<\_ACEOF
4444 #define EBCDIC 1
4445 _ACEOF
4447 line_break='"\\n"'
4449 *) line_break='"\\012"';;
4450 esac
4453 if test "$cf_cv_ebcdic" = "yes"; then
4454 { $as_echo "$as_me:$LINENO: checking for OS/390 Unix" >&5
4455 $as_echo_n "checking for OS/390 Unix... " >&6; }
4456 case `uname` in
4457 OS/390) OS390Unix="yes";
4458 if test "$CC" = "cc"; then
4459 ccm="$_CC_CCMODE"
4460 ccn="CC"
4461 else
4462 if test "$CC" = "c89"; then
4463 ccm="$_CC_C89MODE"
4464 ccn="C89"
4465 else
4466 ccm=1
4469 if test "$ccm" != "1"; then
4470 echo ""
4471 echo "------------------------------------------"
4472 echo " On OS/390 Unix, the environment variable"
4473 echo " __CC_${ccn}MODE must be set to \"1\"!"
4474 echo " Do:"
4475 echo " export _CC_${ccn}MODE=1"
4476 echo " and then call configure again."
4477 echo "------------------------------------------"
4478 exit 1
4480 CFLAGS="$CFLAGS -D_ALL_SOURCE"; LDFLAGS="$LDFLAGS -Wl,EDIT=NO"
4481 { $as_echo "$as_me:$LINENO: result: yes" >&5
4482 $as_echo "yes" >&6; }
4484 *) OS390Unix="no";
4485 { $as_echo "$as_me:$LINENO: result: no" >&5
4486 $as_echo "no" >&6; }
4488 esac
4491 { $as_echo "$as_me:$LINENO: checking --disable-selinux argument" >&5
4492 $as_echo_n "checking --disable-selinux argument... " >&6; }
4493 # Check whether --enable-selinux was given.
4494 if test "${enable_selinux+set}" = set; then
4495 enableval=$enable_selinux;
4496 else
4497 enable_selinux="yes"
4500 if test "$enable_selinux" = "yes"; then
4501 { $as_echo "$as_me:$LINENO: result: no" >&5
4502 $as_echo "no" >&6; }
4503 { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
4504 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
4505 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
4506 $as_echo_n "(cached) " >&6
4507 else
4508 ac_check_lib_save_LIBS=$LIBS
4509 LIBS="-lselinux $LIBS"
4510 cat >conftest.$ac_ext <<_ACEOF
4511 /* confdefs.h. */
4512 _ACEOF
4513 cat confdefs.h >>conftest.$ac_ext
4514 cat >>conftest.$ac_ext <<_ACEOF
4515 /* end confdefs.h. */
4517 /* Override any GCC internal prototype to avoid an error.
4518 Use char because int might match the return type of a GCC
4519 builtin and then its argument prototype would still apply. */
4520 #ifdef __cplusplus
4521 extern "C"
4522 #endif
4523 char is_selinux_enabled ();
4525 main ()
4527 return is_selinux_enabled ();
4529 return 0;
4531 _ACEOF
4532 rm -f conftest.$ac_objext conftest$ac_exeext
4533 if { (ac_try="$ac_link"
4534 case "(($ac_try" in
4535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4536 *) ac_try_echo=$ac_try;;
4537 esac
4538 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4539 $as_echo "$ac_try_echo") >&5
4540 (eval "$ac_link") 2>conftest.er1
4541 ac_status=$?
4542 grep -v '^ *+' conftest.er1 >conftest.err
4543 rm -f conftest.er1
4544 cat conftest.err >&5
4545 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546 (exit $ac_status); } && {
4547 test -z "$ac_c_werror_flag" ||
4548 test ! -s conftest.err
4549 } && test -s conftest$ac_exeext && {
4550 test "$cross_compiling" = yes ||
4551 $as_test_x conftest$ac_exeext
4552 }; then
4553 ac_cv_lib_selinux_is_selinux_enabled=yes
4554 else
4555 $as_echo "$as_me: failed program was:" >&5
4556 sed 's/^/| /' conftest.$ac_ext >&5
4558 ac_cv_lib_selinux_is_selinux_enabled=no
4561 rm -rf conftest.dSYM
4562 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4563 conftest$ac_exeext conftest.$ac_ext
4564 LIBS=$ac_check_lib_save_LIBS
4566 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
4567 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
4568 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then
4569 LIBS="$LIBS -lselinux"
4570 cat >>confdefs.h <<\_ACEOF
4571 #define HAVE_SELINUX 1
4572 _ACEOF
4576 else
4577 { $as_echo "$as_me:$LINENO: result: yes" >&5
4578 $as_echo "yes" >&6; }
4582 { $as_echo "$as_me:$LINENO: checking --with-features argument" >&5
4583 $as_echo_n "checking --with-features argument... " >&6; }
4585 # Check whether --with-features was given.
4586 if test "${with_features+set}" = set; then
4587 withval=$with_features; features="$withval"; { $as_echo "$as_me:$LINENO: result: $features" >&5
4588 $as_echo "$features" >&6; }
4589 else
4590 features="normal"; { $as_echo "$as_me:$LINENO: result: Defaulting to normal" >&5
4591 $as_echo "Defaulting to normal" >&6; }
4595 dovimdiff=""
4596 dogvimdiff=""
4597 case "$features" in
4598 tiny) cat >>confdefs.h <<\_ACEOF
4599 #define FEAT_TINY 1
4600 _ACEOF
4602 small) cat >>confdefs.h <<\_ACEOF
4603 #define FEAT_SMALL 1
4604 _ACEOF
4606 normal) cat >>confdefs.h <<\_ACEOF
4607 #define FEAT_NORMAL 1
4608 _ACEOF
4609 dovimdiff="installvimdiff";
4610 dogvimdiff="installgvimdiff" ;;
4611 big) cat >>confdefs.h <<\_ACEOF
4612 #define FEAT_BIG 1
4613 _ACEOF
4614 dovimdiff="installvimdiff";
4615 dogvimdiff="installgvimdiff" ;;
4616 huge) cat >>confdefs.h <<\_ACEOF
4617 #define FEAT_HUGE 1
4618 _ACEOF
4619 dovimdiff="installvimdiff";
4620 dogvimdiff="installgvimdiff" ;;
4621 *) { $as_echo "$as_me:$LINENO: result: Sorry, $features is not supported" >&5
4622 $as_echo "Sorry, $features is not supported" >&6; } ;;
4623 esac
4628 { $as_echo "$as_me:$LINENO: checking --with-compiledby argument" >&5
4629 $as_echo_n "checking --with-compiledby argument... " >&6; }
4631 # Check whether --with-compiledby was given.
4632 if test "${with_compiledby+set}" = set; then
4633 withval=$with_compiledby; compiledby="$withval"; { $as_echo "$as_me:$LINENO: result: $withval" >&5
4634 $as_echo "$withval" >&6; }
4635 else
4636 compiledby=""; { $as_echo "$as_me:$LINENO: result: no" >&5
4637 $as_echo "no" >&6; }
4642 { $as_echo "$as_me:$LINENO: checking --disable-xsmp argument" >&5
4643 $as_echo_n "checking --disable-xsmp argument... " >&6; }
4644 # Check whether --enable-xsmp was given.
4645 if test "${enable_xsmp+set}" = set; then
4646 enableval=$enable_xsmp;
4647 else
4648 enable_xsmp="yes"
4652 if test "$enable_xsmp" = "yes"; then
4653 { $as_echo "$as_me:$LINENO: result: no" >&5
4654 $as_echo "no" >&6; }
4655 { $as_echo "$as_me:$LINENO: checking --disable-xsmp-interact argument" >&5
4656 $as_echo_n "checking --disable-xsmp-interact argument... " >&6; }
4657 # Check whether --enable-xsmp-interact was given.
4658 if test "${enable_xsmp_interact+set}" = set; then
4659 enableval=$enable_xsmp_interact;
4660 else
4661 enable_xsmp_interact="yes"
4664 if test "$enable_xsmp_interact" = "yes"; then
4665 { $as_echo "$as_me:$LINENO: result: no" >&5
4666 $as_echo "no" >&6; }
4667 cat >>confdefs.h <<\_ACEOF
4668 #define USE_XSMP_INTERACT 1
4669 _ACEOF
4671 else
4672 { $as_echo "$as_me:$LINENO: result: yes" >&5
4673 $as_echo "yes" >&6; }
4675 else
4676 { $as_echo "$as_me:$LINENO: result: yes" >&5
4677 $as_echo "yes" >&6; }
4680 { $as_echo "$as_me:$LINENO: checking --enable-mzschemeinterp argument" >&5
4681 $as_echo_n "checking --enable-mzschemeinterp argument... " >&6; }
4682 # Check whether --enable-mzschemeinterp was given.
4683 if test "${enable_mzschemeinterp+set}" = set; then
4684 enableval=$enable_mzschemeinterp;
4685 else
4686 enable_mzschemeinterp="no"
4689 { $as_echo "$as_me:$LINENO: result: $enable_mzschemeinterp" >&5
4690 $as_echo "$enable_mzschemeinterp" >&6; }
4692 if test "$enable_mzschemeinterp" = "yes"; then
4695 { $as_echo "$as_me:$LINENO: checking --with-plthome argument" >&5
4696 $as_echo_n "checking --with-plthome argument... " >&6; }
4698 # Check whether --with-plthome was given.
4699 if test "${with_plthome+set}" = set; then
4700 withval=$with_plthome; with_plthome="$withval"; { $as_echo "$as_me:$LINENO: result: $with_plthome" >&5
4701 $as_echo "$with_plthome" >&6; }
4702 else
4703 with_plthome="";{ $as_echo "$as_me:$LINENO: result: \"no\"" >&5
4704 $as_echo "\"no\"" >&6; }
4708 if test "X$with_plthome" != "X"; then
4709 vi_cv_path_mzscheme_pfx="$with_plthome"
4710 else
4711 { $as_echo "$as_me:$LINENO: checking PLTHOME environment var" >&5
4712 $as_echo_n "checking PLTHOME environment var... " >&6; }
4713 if test "X$PLTHOME" != "X"; then
4714 { $as_echo "$as_me:$LINENO: result: \"$PLTHOME\"" >&5
4715 $as_echo "\"$PLTHOME\"" >&6; }
4716 vi_cv_path_mzscheme_pfx="$PLTHOME"
4717 else
4718 { $as_echo "$as_me:$LINENO: result: not set" >&5
4719 $as_echo "not set" >&6; }
4720 # Extract the first word of "mzscheme", so it can be a program name with args.
4721 set dummy mzscheme; ac_word=$2
4722 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4723 $as_echo_n "checking for $ac_word... " >&6; }
4724 if test "${ac_cv_path_vi_cv_path_mzscheme+set}" = set; then
4725 $as_echo_n "(cached) " >&6
4726 else
4727 case $vi_cv_path_mzscheme in
4728 [\\/]* | ?:[\\/]*)
4729 ac_cv_path_vi_cv_path_mzscheme="$vi_cv_path_mzscheme" # Let the user override the test with a path.
4732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4733 for as_dir in $PATH
4735 IFS=$as_save_IFS
4736 test -z "$as_dir" && as_dir=.
4737 for ac_exec_ext in '' $ac_executable_extensions; do
4738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4739 ac_cv_path_vi_cv_path_mzscheme="$as_dir/$ac_word$ac_exec_ext"
4740 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4741 break 2
4743 done
4744 done
4745 IFS=$as_save_IFS
4748 esac
4750 vi_cv_path_mzscheme=$ac_cv_path_vi_cv_path_mzscheme
4751 if test -n "$vi_cv_path_mzscheme"; then
4752 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme" >&5
4753 $as_echo "$vi_cv_path_mzscheme" >&6; }
4754 else
4755 { $as_echo "$as_me:$LINENO: result: no" >&5
4756 $as_echo "no" >&6; }
4761 if test "X$vi_cv_path_mzscheme" != "X"; then
4762 lsout=`ls -l $vi_cv_path_mzscheme`
4763 if echo "$lsout" | grep -e '->' >/dev/null 2>/dev/null; then
4764 vi_cv_path_mzscheme=`echo "$lsout" | sed 's/.*-> \(.*\)/\1/'`
4768 if test "X$vi_cv_path_mzscheme" != "X"; then
4769 { $as_echo "$as_me:$LINENO: checking MzScheme install prefix" >&5
4770 $as_echo_n "checking MzScheme install prefix... " >&6; }
4771 if test "${vi_cv_path_mzscheme_pfx+set}" = set; then
4772 $as_echo_n "(cached) " >&6
4773 else
4774 echo "(display (simplify-path \
4775 (build-path (call-with-values \
4776 (lambda () (split-path (find-system-path (quote exec-file)))) \
4777 (lambda (base name must-be-dir?) base)) (quote up))))" > mzdirs.scm
4778 vi_cv_path_mzscheme_pfx=`${vi_cv_path_mzscheme} -r mzdirs.scm | \
4779 sed -e 's+/$++'`
4781 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme_pfx" >&5
4782 $as_echo "$vi_cv_path_mzscheme_pfx" >&6; }
4783 rm -f mzdirs.scm
4788 SCHEME_INC=
4789 if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
4790 { $as_echo "$as_me:$LINENO: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include" >&5
4791 $as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include... " >&6; }
4792 if test -f $vi_cv_path_mzscheme_pfx/include/scheme.h; then
4793 SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include
4794 { $as_echo "$as_me:$LINENO: result: yes" >&5
4795 $as_echo "yes" >&6; }
4796 else
4797 { $as_echo "$as_me:$LINENO: result: no" >&5
4798 $as_echo "no" >&6; }
4799 { $as_echo "$as_me:$LINENO: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/plt" >&5
4800 $as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/plt... " >&6; }
4801 if test -f $vi_cv_path_mzscheme_pfx/include/plt/scheme.h; then
4802 { $as_echo "$as_me:$LINENO: result: yes" >&5
4803 $as_echo "yes" >&6; }
4804 SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include/plt
4805 else
4806 { $as_echo "$as_me:$LINENO: result: no" >&5
4807 $as_echo "no" >&6; }
4808 { $as_echo "$as_me:$LINENO: checking if scheme.h can be found in /usr/include/plt/" >&5
4809 $as_echo_n "checking if scheme.h can be found in /usr/include/plt/... " >&6; }
4810 if test -f /usr/include/plt/scheme.h; then
4811 { $as_echo "$as_me:$LINENO: result: yes" >&5
4812 $as_echo "yes" >&6; }
4813 SCHEME_INC=/usr/include/plt
4814 else
4815 { $as_echo "$as_me:$LINENO: result: no" >&5
4816 $as_echo "no" >&6; }
4817 vi_cv_path_mzscheme_pfx=
4823 if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
4824 if test "x$MACOSX" = "xyes"; then
4825 MZSCHEME_LIBS="-framework PLT_MzScheme"
4826 elif test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzscheme3m.a"; then
4827 MZSCHEME_LIBS="${vi_cv_path_mzscheme_pfx}/lib/libmzscheme3m.a"
4828 MZSCHEME_CFLAGS="-DMZ_PRECISE_GC"
4829 elif test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a"; then
4830 MZSCHEME_LIBS="${vi_cv_path_mzscheme_pfx}/lib/libmzscheme.a ${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a"
4831 else
4832 if test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzscheme3m.so"; then
4833 MZSCHEME_LIBS="-L${vi_cv_path_mzscheme_pfx}/lib -lmzscheme3m"
4834 MZSCHEME_CFLAGS="-DMZ_PRECISE_GC"
4835 else
4836 MZSCHEME_LIBS="-L${vi_cv_path_mzscheme_pfx}/lib -lmzscheme -lmzgc"
4838 if test "$GCC" = yes; then
4839 MZSCHEME_LIBS="${MZSCHEME_LIBS} -Wl,-rpath -Wl,${vi_cv_path_mzscheme_pfx}/lib"
4840 elif test "`(uname) 2>/dev/null`" = SunOS &&
4841 uname -r | grep '^5' >/dev/null; then
4842 MZSCHEME_LIBS="${MZSCHEME_LIBS} -R ${vi_cv_path_mzscheme_pfx}/lib"
4845 if test -d $vi_cv_path_mzscheme_pfx/lib/plt/collects; then
4846 SCHEME_COLLECTS=lib/plt/
4848 if test -f "${vi_cv_path_mzscheme_pfx}/${SCHEME_COLLECTS}collects/scheme/base.ss" ; then
4849 MZSCHEME_EXTRA="mzscheme_base.c"
4850 MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -DINCLUDE_MZSCHEME_BASE"
4851 MZSCHEME_MZC="${vi_cv_path_mzscheme_pfx}/bin/mzc"
4853 MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -I${SCHEME_INC} \
4854 -DMZSCHEME_COLLECTS='\"${vi_cv_path_mzscheme_pfx}/${SCHEME_COLLECTS}collects\"'"
4855 MZSCHEME_SRC="if_mzsch.c"
4856 MZSCHEME_OBJ="objects/if_mzsch.o"
4857 MZSCHEME_PRO="if_mzsch.pro"
4858 cat >>confdefs.h <<\_ACEOF
4859 #define FEAT_MZSCHEME 1
4860 _ACEOF
4873 { $as_echo "$as_me:$LINENO: checking --enable-perlinterp argument" >&5
4874 $as_echo_n "checking --enable-perlinterp argument... " >&6; }
4875 # Check whether --enable-perlinterp was given.
4876 if test "${enable_perlinterp+set}" = set; then
4877 enableval=$enable_perlinterp;
4878 else
4879 enable_perlinterp="no"
4882 { $as_echo "$as_me:$LINENO: result: $enable_perlinterp" >&5
4883 $as_echo "$enable_perlinterp" >&6; }
4884 if test "$enable_perlinterp" = "yes"; then
4886 # Extract the first word of "perl", so it can be a program name with args.
4887 set dummy perl; ac_word=$2
4888 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4889 $as_echo_n "checking for $ac_word... " >&6; }
4890 if test "${ac_cv_path_vi_cv_path_perl+set}" = set; then
4891 $as_echo_n "(cached) " >&6
4892 else
4893 case $vi_cv_path_perl in
4894 [\\/]* | ?:[\\/]*)
4895 ac_cv_path_vi_cv_path_perl="$vi_cv_path_perl" # Let the user override the test with a path.
4898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4899 for as_dir in $PATH
4901 IFS=$as_save_IFS
4902 test -z "$as_dir" && as_dir=.
4903 for ac_exec_ext in '' $ac_executable_extensions; do
4904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4905 ac_cv_path_vi_cv_path_perl="$as_dir/$ac_word$ac_exec_ext"
4906 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4907 break 2
4909 done
4910 done
4911 IFS=$as_save_IFS
4914 esac
4916 vi_cv_path_perl=$ac_cv_path_vi_cv_path_perl
4917 if test -n "$vi_cv_path_perl"; then
4918 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_perl" >&5
4919 $as_echo "$vi_cv_path_perl" >&6; }
4920 else
4921 { $as_echo "$as_me:$LINENO: result: no" >&5
4922 $as_echo "no" >&6; }
4926 if test "X$vi_cv_path_perl" != "X"; then
4927 { $as_echo "$as_me:$LINENO: checking Perl version" >&5
4928 $as_echo_n "checking Perl version... " >&6; }
4929 if $vi_cv_path_perl -e 'require 5.003_01' >/dev/null 2>/dev/null; then
4930 eval `$vi_cv_path_perl -V:usethreads`
4931 if test "X$usethreads" = "XUNKNOWN" -o "X$usethreads" = "Xundef"; then
4932 badthreads=no
4933 else
4934 if $vi_cv_path_perl -e 'require 5.6.0' >/dev/null 2>/dev/null; then
4935 eval `$vi_cv_path_perl -V:use5005threads`
4936 if test "X$use5005threads" = "XUNKNOWN" -o "X$use5005threads" = "Xundef"; then
4937 badthreads=no
4938 else
4939 badthreads=yes
4940 { $as_echo "$as_me:$LINENO: result: >>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&5
4941 $as_echo ">>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&6; }
4943 else
4944 badthreads=yes
4945 { $as_echo "$as_me:$LINENO: result: >>> Perl 5.5 with threads cannot be used <<<" >&5
4946 $as_echo ">>> Perl 5.5 with threads cannot be used <<<" >&6; }
4949 if test $badthreads = no; then
4950 { $as_echo "$as_me:$LINENO: result: OK" >&5
4951 $as_echo "OK" >&6; }
4952 eval `$vi_cv_path_perl -V:shrpenv`
4953 if test "X$shrpenv" = "XUNKNOWN"; then # pre 5.003_04
4954 shrpenv=""
4956 vi_cv_perllib=`$vi_cv_path_perl -MConfig -e 'print $Config{privlibexp}'`
4958 perlcppflags=`$vi_cv_path_perl -Mlib=$srcdir -MExtUtils::Embed \
4959 -e 'ccflags;perl_inc;print"\n"' | sed -e 's/-fno[^ ]*//'`
4960 perllibs=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed -e 'ldopts' | \
4961 sed -e '/Warning/d' -e '/Note (probably harmless)/d' \
4962 -e 's/-bE:perl.exp//' -e 's/-lc //'`
4963 perlldflags=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed \
4964 -e 'ccdlflags' | sed -e 's/-bE:perl.exp//'`
4966 { $as_echo "$as_me:$LINENO: checking if compile and link flags for Perl are sane" >&5
4967 $as_echo_n "checking if compile and link flags for Perl are sane... " >&6; }
4968 cflags_save=$CFLAGS
4969 libs_save=$LIBS
4970 ldflags_save=$LDFLAGS
4971 CFLAGS="$CFLAGS $perlcppflags"
4972 LIBS="$LIBS $perllibs"
4973 LDFLAGS="$perlldflags $LDFLAGS"
4974 cat >conftest.$ac_ext <<_ACEOF
4975 /* confdefs.h. */
4976 _ACEOF
4977 cat confdefs.h >>conftest.$ac_ext
4978 cat >>conftest.$ac_ext <<_ACEOF
4979 /* end confdefs.h. */
4982 main ()
4986 return 0;
4988 _ACEOF
4989 rm -f conftest.$ac_objext conftest$ac_exeext
4990 if { (ac_try="$ac_link"
4991 case "(($ac_try" in
4992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4993 *) ac_try_echo=$ac_try;;
4994 esac
4995 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4996 $as_echo "$ac_try_echo") >&5
4997 (eval "$ac_link") 2>conftest.er1
4998 ac_status=$?
4999 grep -v '^ *+' conftest.er1 >conftest.err
5000 rm -f conftest.er1
5001 cat conftest.err >&5
5002 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5003 (exit $ac_status); } && {
5004 test -z "$ac_c_werror_flag" ||
5005 test ! -s conftest.err
5006 } && test -s conftest$ac_exeext && {
5007 test "$cross_compiling" = yes ||
5008 $as_test_x conftest$ac_exeext
5009 }; then
5010 { $as_echo "$as_me:$LINENO: result: yes" >&5
5011 $as_echo "yes" >&6; }; perl_ok=yes
5012 else
5013 $as_echo "$as_me: failed program was:" >&5
5014 sed 's/^/| /' conftest.$ac_ext >&5
5016 { $as_echo "$as_me:$LINENO: result: no: PERL DISABLED" >&5
5017 $as_echo "no: PERL DISABLED" >&6; }; perl_ok=no
5020 rm -rf conftest.dSYM
5021 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5022 conftest$ac_exeext conftest.$ac_ext
5023 CFLAGS=$cflags_save
5024 LIBS=$libs_save
5025 LDFLAGS=$ldflags_save
5026 if test $perl_ok = yes; then
5027 if test "X$perlcppflags" != "X"; then
5028 PERL_CFLAGS=`echo "$perlcppflags" | sed -e 's/-pipe //' -e 's/-W[^ ]*//'`
5030 if test "X$perlldflags" != "X"; then
5031 LDFLAGS="$perlldflags $LDFLAGS"
5033 PERL_LIBS=$perllibs
5034 PERL_SRC="auto/if_perl.c if_perlsfio.c"
5035 PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o"
5036 PERL_PRO="if_perl.pro if_perlsfio.pro"
5037 cat >>confdefs.h <<\_ACEOF
5038 #define FEAT_PERL 1
5039 _ACEOF
5043 else
5044 { $as_echo "$as_me:$LINENO: result: >>> too old; need Perl version 5.003_01 or later <<<" >&5
5045 $as_echo ">>> too old; need Perl version 5.003_01 or later <<<" >&6; }
5049 if test "x$MACOSX" = "xyes"; then
5050 dir=/System/Library/Perl
5051 darwindir=$dir/darwin
5052 if test -d $darwindir; then
5053 PERL=/usr/bin/perl
5054 else
5055 dir=/System/Library/Perl/5.8.1
5056 darwindir=$dir/darwin-thread-multi-2level
5057 if test -d $darwindir; then
5058 PERL=/usr/bin/perl
5061 if test -n "$PERL"; then
5062 PERL_DIR="$dir"
5063 PERL_CFLAGS="-DFEAT_PERL -I$darwindir/CORE"
5064 PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o $darwindir/auto/DynaLoader/DynaLoader.a"
5065 PERL_LIBS="-L$darwindir/CORE -lperl"
5076 { $as_echo "$as_me:$LINENO: checking --enable-pythoninterp argument" >&5
5077 $as_echo_n "checking --enable-pythoninterp argument... " >&6; }
5078 # Check whether --enable-pythoninterp was given.
5079 if test "${enable_pythoninterp+set}" = set; then
5080 enableval=$enable_pythoninterp;
5081 else
5082 enable_pythoninterp="no"
5085 { $as_echo "$as_me:$LINENO: result: $enable_pythoninterp" >&5
5086 $as_echo "$enable_pythoninterp" >&6; }
5087 if test "$enable_pythoninterp" = "yes"; then
5088 # Extract the first word of "python", so it can be a program name with args.
5089 set dummy python; ac_word=$2
5090 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5091 $as_echo_n "checking for $ac_word... " >&6; }
5092 if test "${ac_cv_path_vi_cv_path_python+set}" = set; then
5093 $as_echo_n "(cached) " >&6
5094 else
5095 case $vi_cv_path_python in
5096 [\\/]* | ?:[\\/]*)
5097 ac_cv_path_vi_cv_path_python="$vi_cv_path_python" # Let the user override the test with a path.
5100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5101 for as_dir in $PATH
5103 IFS=$as_save_IFS
5104 test -z "$as_dir" && as_dir=.
5105 for ac_exec_ext in '' $ac_executable_extensions; do
5106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5107 ac_cv_path_vi_cv_path_python="$as_dir/$ac_word$ac_exec_ext"
5108 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5109 break 2
5111 done
5112 done
5113 IFS=$as_save_IFS
5116 esac
5118 vi_cv_path_python=$ac_cv_path_vi_cv_path_python
5119 if test -n "$vi_cv_path_python"; then
5120 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_python" >&5
5121 $as_echo "$vi_cv_path_python" >&6; }
5122 else
5123 { $as_echo "$as_me:$LINENO: result: no" >&5
5124 $as_echo "no" >&6; }
5128 if test "X$vi_cv_path_python" != "X"; then
5130 { $as_echo "$as_me:$LINENO: checking Python version" >&5
5131 $as_echo_n "checking Python version... " >&6; }
5132 if test "${vi_cv_var_python_version+set}" = set; then
5133 $as_echo_n "(cached) " >&6
5134 else
5135 vi_cv_var_python_version=`
5136 ${vi_cv_path_python} -c 'import sys; print sys.version[:3]'`
5139 { $as_echo "$as_me:$LINENO: result: $vi_cv_var_python_version" >&5
5140 $as_echo "$vi_cv_var_python_version" >&6; }
5142 { $as_echo "$as_me:$LINENO: checking Python is 1.4 or better" >&5
5143 $as_echo_n "checking Python is 1.4 or better... " >&6; }
5144 if ${vi_cv_path_python} -c \
5145 "import sys; sys.exit(${vi_cv_var_python_version} < 1.4)"
5146 then
5147 { $as_echo "$as_me:$LINENO: result: yep" >&5
5148 $as_echo "yep" >&6; }
5150 { $as_echo "$as_me:$LINENO: checking Python's install prefix" >&5
5151 $as_echo_n "checking Python's install prefix... " >&6; }
5152 if test "${vi_cv_path_python_pfx+set}" = set; then
5153 $as_echo_n "(cached) " >&6
5154 else
5155 vi_cv_path_python_pfx=`
5156 ${vi_cv_path_python} -c \
5157 "import sys; print sys.prefix"`
5159 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_python_pfx" >&5
5160 $as_echo "$vi_cv_path_python_pfx" >&6; }
5162 { $as_echo "$as_me:$LINENO: checking Python's execution prefix" >&5
5163 $as_echo_n "checking Python's execution prefix... " >&6; }
5164 if test "${vi_cv_path_python_epfx+set}" = set; then
5165 $as_echo_n "(cached) " >&6
5166 else
5167 vi_cv_path_python_epfx=`
5168 ${vi_cv_path_python} -c \
5169 "import sys; print sys.exec_prefix"`
5171 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_python_epfx" >&5
5172 $as_echo "$vi_cv_path_python_epfx" >&6; }
5175 if test "${vi_cv_path_pythonpath+set}" = set; then
5176 $as_echo_n "(cached) " >&6
5177 else
5178 vi_cv_path_pythonpath=`
5179 unset PYTHONPATH;
5180 ${vi_cv_path_python} -c \
5181 "import sys, string; print string.join(sys.path,':')"`
5187 # Check whether --with-python-config-dir was given.
5188 if test "${with_python_config_dir+set}" = set; then
5189 withval=$with_python_config_dir; vi_cv_path_python_conf="${withval}"
5193 { $as_echo "$as_me:$LINENO: checking Python's configuration directory" >&5
5194 $as_echo_n "checking Python's configuration directory... " >&6; }
5195 if test "${vi_cv_path_python_conf+set}" = set; then
5196 $as_echo_n "(cached) " >&6
5197 else
5199 vi_cv_path_python_conf=
5200 for path in "${vi_cv_path_python_pfx}" "${vi_cv_path_python_epfx}"; do
5201 for subdir in lib64 lib share; do
5202 d="${path}/${subdir}/python${vi_cv_var_python_version}/config"
5203 if test -d "$d" && test -f "$d/config.c"; then
5204 vi_cv_path_python_conf="$d"
5206 done
5207 done
5210 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_python_conf" >&5
5211 $as_echo "$vi_cv_path_python_conf" >&6; }
5213 PYTHON_CONFDIR="${vi_cv_path_python_conf}"
5215 if test "X$PYTHON_CONFDIR" = "X"; then
5216 { $as_echo "$as_me:$LINENO: result: can't find it!" >&5
5217 $as_echo "can't find it!" >&6; }
5218 else
5220 if test "${vi_cv_path_python_plibs+set}" = set; then
5221 $as_echo_n "(cached) " >&6
5222 else
5224 pwd=`pwd`
5225 tmp_mkf="$pwd/config-PyMake$$"
5226 cat -- "${PYTHON_CONFDIR}/Makefile" - <<'eof' >"${tmp_mkf}"
5228 @echo "python_MODLIBS='$(MODLIBS)'"
5229 @echo "python_LIBS='$(LIBS)'"
5230 @echo "python_SYSLIBS='$(SYSLIBS)'"
5231 @echo "python_LINKFORSHARED='$(LINKFORSHARED)'"
5233 eval "`cd ${PYTHON_CONFDIR} && make -f "${tmp_mkf}" __ | sed '/ directory /d'`"
5234 rm -f -- "${tmp_mkf}"
5235 if test "x$MACOSX" = "xyes" && ${vi_cv_path_python} -c \
5236 "import sys; sys.exit(${vi_cv_var_python_version} < 2.3)"; then
5237 vi_cv_path_python_plibs="-framework Python"
5238 else
5239 if test "${vi_cv_var_python_version}" = "1.4"; then
5240 vi_cv_path_python_plibs="${PYTHON_CONFDIR}/libModules.a ${PYTHON_CONFDIR}/libPython.a ${PYTHON_CONFDIR}/libObjects.a ${PYTHON_CONFDIR}/libParser.a"
5241 else
5242 vi_cv_path_python_plibs="-L${PYTHON_CONFDIR} -lpython${vi_cv_var_python_version}"
5244 vi_cv_path_python_plibs="${vi_cv_path_python_plibs} ${python_MODLIBS} ${python_LIBS} ${python_SYSLIBS} ${python_LINKFORSHARED}"
5245 vi_cv_path_python_plibs=`echo $vi_cv_path_python_plibs | sed s/-ltermcap//`
5251 PYTHON_LIBS="${vi_cv_path_python_plibs}"
5252 if test "${vi_cv_path_python_pfx}" = "${vi_cv_path_python_epfx}"; then
5253 PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version}"
5254 else
5255 PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version} -I${vi_cv_path_python_epfx}/include/python${vi_cv_var_python_version}"
5257 PYTHON_SRC="if_python.c"
5258 if test "x$MACOSX" = "xyes"; then
5259 PYTHON_OBJ="objects/if_python.o"
5260 else
5261 PYTHON_OBJ="objects/if_python.o objects/py_config.o"
5263 if test "${vi_cv_var_python_version}" = "1.4"; then
5264 PYTHON_OBJ="$PYTHON_OBJ objects/py_getpath.o"
5266 PYTHON_GETPATH_CFLAGS="-DPYTHONPATH='\"${vi_cv_path_pythonpath}\"' -DPREFIX='\"${vi_cv_path_python_pfx}\"' -DEXEC_PREFIX='\"${vi_cv_path_python_epfx}\"'"
5268 { $as_echo "$as_me:$LINENO: checking if -pthread should be used" >&5
5269 $as_echo_n "checking if -pthread should be used... " >&6; }
5270 threadsafe_flag=
5271 thread_lib=
5272 if test "`(uname) 2>/dev/null`" != Darwin; then
5273 test "$GCC" = yes && threadsafe_flag="-pthread"
5274 if test "`(uname) 2>/dev/null`" = FreeBSD; then
5275 threadsafe_flag="-D_THREAD_SAFE"
5276 thread_lib="-pthread"
5279 libs_save_old=$LIBS
5280 if test -n "$threadsafe_flag"; then
5281 cflags_save=$CFLAGS
5282 CFLAGS="$CFLAGS $threadsafe_flag"
5283 LIBS="$LIBS $thread_lib"
5284 cat >conftest.$ac_ext <<_ACEOF
5285 /* confdefs.h. */
5286 _ACEOF
5287 cat confdefs.h >>conftest.$ac_ext
5288 cat >>conftest.$ac_ext <<_ACEOF
5289 /* end confdefs.h. */
5292 main ()
5296 return 0;
5298 _ACEOF
5299 rm -f conftest.$ac_objext conftest$ac_exeext
5300 if { (ac_try="$ac_link"
5301 case "(($ac_try" in
5302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5303 *) ac_try_echo=$ac_try;;
5304 esac
5305 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5306 $as_echo "$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 $as_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 test "$cross_compiling" = yes ||
5318 $as_test_x conftest$ac_exeext
5319 }; then
5320 { $as_echo "$as_me:$LINENO: result: yes" >&5
5321 $as_echo "yes" >&6; }; PYTHON_CFLAGS="$PYTHON_CFLAGS $threadsafe_flag"
5322 else
5323 $as_echo "$as_me: failed program was:" >&5
5324 sed 's/^/| /' conftest.$ac_ext >&5
5326 { $as_echo "$as_me:$LINENO: result: no" >&5
5327 $as_echo "no" >&6; }; LIBS=$libs_save_old
5331 rm -rf conftest.dSYM
5332 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5333 conftest$ac_exeext conftest.$ac_ext
5334 CFLAGS=$cflags_save
5335 else
5336 { $as_echo "$as_me:$LINENO: result: no" >&5
5337 $as_echo "no" >&6; }
5340 { $as_echo "$as_me:$LINENO: checking if compile and link flags for Python are sane" >&5
5341 $as_echo_n "checking if compile and link flags for Python are sane... " >&6; }
5342 cflags_save=$CFLAGS
5343 libs_save=$LIBS
5344 CFLAGS="$CFLAGS $PYTHON_CFLAGS"
5345 LIBS="$LIBS $PYTHON_LIBS"
5346 cat >conftest.$ac_ext <<_ACEOF
5347 /* confdefs.h. */
5348 _ACEOF
5349 cat confdefs.h >>conftest.$ac_ext
5350 cat >>conftest.$ac_ext <<_ACEOF
5351 /* end confdefs.h. */
5354 main ()
5358 return 0;
5360 _ACEOF
5361 rm -f conftest.$ac_objext conftest$ac_exeext
5362 if { (ac_try="$ac_link"
5363 case "(($ac_try" in
5364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5365 *) ac_try_echo=$ac_try;;
5366 esac
5367 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5368 $as_echo "$ac_try_echo") >&5
5369 (eval "$ac_link") 2>conftest.er1
5370 ac_status=$?
5371 grep -v '^ *+' conftest.er1 >conftest.err
5372 rm -f conftest.er1
5373 cat conftest.err >&5
5374 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5375 (exit $ac_status); } && {
5376 test -z "$ac_c_werror_flag" ||
5377 test ! -s conftest.err
5378 } && test -s conftest$ac_exeext && {
5379 test "$cross_compiling" = yes ||
5380 $as_test_x conftest$ac_exeext
5381 }; then
5382 { $as_echo "$as_me:$LINENO: result: yes" >&5
5383 $as_echo "yes" >&6; }; python_ok=yes
5384 else
5385 $as_echo "$as_me: failed program was:" >&5
5386 sed 's/^/| /' conftest.$ac_ext >&5
5388 { $as_echo "$as_me:$LINENO: result: no: PYTHON DISABLED" >&5
5389 $as_echo "no: PYTHON DISABLED" >&6; }; python_ok=no
5392 rm -rf conftest.dSYM
5393 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5394 conftest$ac_exeext conftest.$ac_ext
5395 CFLAGS=$cflags_save
5396 LIBS=$libs_save
5397 if test $python_ok = yes; then
5398 cat >>confdefs.h <<\_ACEOF
5399 #define FEAT_PYTHON 1
5400 _ACEOF
5402 else
5403 LIBS=$libs_save_old
5404 PYTHON_SRC=
5405 PYTHON_OBJ=
5406 PYTHON_LIBS=
5407 PYTHON_CFLAGS=
5411 else
5412 { $as_echo "$as_me:$LINENO: result: too old" >&5
5413 $as_echo "too old" >&6; }
5424 { $as_echo "$as_me:$LINENO: checking --enable-tclinterp argument" >&5
5425 $as_echo_n "checking --enable-tclinterp argument... " >&6; }
5426 # Check whether --enable-tclinterp was given.
5427 if test "${enable_tclinterp+set}" = set; then
5428 enableval=$enable_tclinterp;
5429 else
5430 enable_tclinterp="no"
5433 { $as_echo "$as_me:$LINENO: result: $enable_tclinterp" >&5
5434 $as_echo "$enable_tclinterp" >&6; }
5436 if test "$enable_tclinterp" = "yes"; then
5438 { $as_echo "$as_me:$LINENO: checking --with-tclsh argument" >&5
5439 $as_echo_n "checking --with-tclsh argument... " >&6; }
5441 # Check whether --with-tclsh was given.
5442 if test "${with_tclsh+set}" = set; then
5443 withval=$with_tclsh; tclsh_name="$withval"; { $as_echo "$as_me:$LINENO: result: $tclsh_name" >&5
5444 $as_echo "$tclsh_name" >&6; }
5445 else
5446 tclsh_name="tclsh8.5"; { $as_echo "$as_me:$LINENO: result: no" >&5
5447 $as_echo "no" >&6; }
5450 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5451 set dummy $tclsh_name; ac_word=$2
5452 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5453 $as_echo_n "checking for $ac_word... " >&6; }
5454 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5455 $as_echo_n "(cached) " >&6
5456 else
5457 case $vi_cv_path_tcl in
5458 [\\/]* | ?:[\\/]*)
5459 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5463 for as_dir in $PATH
5465 IFS=$as_save_IFS
5466 test -z "$as_dir" && as_dir=.
5467 for ac_exec_ext in '' $ac_executable_extensions; do
5468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5469 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5470 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5471 break 2
5473 done
5474 done
5475 IFS=$as_save_IFS
5478 esac
5480 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5481 if test -n "$vi_cv_path_tcl"; then
5482 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5483 $as_echo "$vi_cv_path_tcl" >&6; }
5484 else
5485 { $as_echo "$as_me:$LINENO: result: no" >&5
5486 $as_echo "no" >&6; }
5492 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.5"; then
5493 tclsh_name="tclsh8.4"
5494 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5495 set dummy $tclsh_name; ac_word=$2
5496 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5497 $as_echo_n "checking for $ac_word... " >&6; }
5498 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5499 $as_echo_n "(cached) " >&6
5500 else
5501 case $vi_cv_path_tcl in
5502 [\\/]* | ?:[\\/]*)
5503 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5507 for as_dir in $PATH
5509 IFS=$as_save_IFS
5510 test -z "$as_dir" && as_dir=.
5511 for ac_exec_ext in '' $ac_executable_extensions; do
5512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5513 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5514 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5515 break 2
5517 done
5518 done
5519 IFS=$as_save_IFS
5522 esac
5524 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5525 if test -n "$vi_cv_path_tcl"; then
5526 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5527 $as_echo "$vi_cv_path_tcl" >&6; }
5528 else
5529 { $as_echo "$as_me:$LINENO: result: no" >&5
5530 $as_echo "no" >&6; }
5535 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.4"; then
5536 tclsh_name="tclsh8.2"
5537 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5538 set dummy $tclsh_name; ac_word=$2
5539 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5540 $as_echo_n "checking for $ac_word... " >&6; }
5541 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5542 $as_echo_n "(cached) " >&6
5543 else
5544 case $vi_cv_path_tcl in
5545 [\\/]* | ?:[\\/]*)
5546 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5550 for as_dir in $PATH
5552 IFS=$as_save_IFS
5553 test -z "$as_dir" && as_dir=.
5554 for ac_exec_ext in '' $ac_executable_extensions; do
5555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5556 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5557 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5558 break 2
5560 done
5561 done
5562 IFS=$as_save_IFS
5565 esac
5567 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5568 if test -n "$vi_cv_path_tcl"; then
5569 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5570 $as_echo "$vi_cv_path_tcl" >&6; }
5571 else
5572 { $as_echo "$as_me:$LINENO: result: no" >&5
5573 $as_echo "no" >&6; }
5578 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.2"; then
5579 tclsh_name="tclsh8.0"
5580 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5581 set dummy $tclsh_name; ac_word=$2
5582 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5583 $as_echo_n "checking for $ac_word... " >&6; }
5584 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5585 $as_echo_n "(cached) " >&6
5586 else
5587 case $vi_cv_path_tcl in
5588 [\\/]* | ?:[\\/]*)
5589 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5593 for as_dir in $PATH
5595 IFS=$as_save_IFS
5596 test -z "$as_dir" && as_dir=.
5597 for ac_exec_ext in '' $ac_executable_extensions; do
5598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5599 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5600 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5601 break 2
5603 done
5604 done
5605 IFS=$as_save_IFS
5608 esac
5610 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5611 if test -n "$vi_cv_path_tcl"; then
5612 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5613 $as_echo "$vi_cv_path_tcl" >&6; }
5614 else
5615 { $as_echo "$as_me:$LINENO: result: no" >&5
5616 $as_echo "no" >&6; }
5621 if test "X$vi_cv_path_tcl" = "X"; then
5622 tclsh_name="tclsh"
5623 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5624 set dummy $tclsh_name; ac_word=$2
5625 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5626 $as_echo_n "checking for $ac_word... " >&6; }
5627 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5628 $as_echo_n "(cached) " >&6
5629 else
5630 case $vi_cv_path_tcl in
5631 [\\/]* | ?:[\\/]*)
5632 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5636 for as_dir in $PATH
5638 IFS=$as_save_IFS
5639 test -z "$as_dir" && as_dir=.
5640 for ac_exec_ext in '' $ac_executable_extensions; do
5641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5642 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5643 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5644 break 2
5646 done
5647 done
5648 IFS=$as_save_IFS
5651 esac
5653 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5654 if test -n "$vi_cv_path_tcl"; then
5655 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5656 $as_echo "$vi_cv_path_tcl" >&6; }
5657 else
5658 { $as_echo "$as_me:$LINENO: result: no" >&5
5659 $as_echo "no" >&6; }
5664 if test "X$vi_cv_path_tcl" != "X"; then
5665 { $as_echo "$as_me:$LINENO: checking Tcl version" >&5
5666 $as_echo_n "checking Tcl version... " >&6; }
5667 if echo 'exit [expr [info tclversion] < 8.0]' | $vi_cv_path_tcl - ; then
5668 tclver=`echo 'puts [info tclversion]' | $vi_cv_path_tcl -`
5669 { $as_echo "$as_me:$LINENO: result: $tclver - OK" >&5
5670 $as_echo "$tclver - OK" >&6; };
5671 tclloc=`echo 'set l [info library];set i [string last lib $l];incr i -2;puts [string range $l 0 $i]' | $vi_cv_path_tcl -`
5673 { $as_echo "$as_me:$LINENO: checking for location of Tcl include" >&5
5674 $as_echo_n "checking for location of Tcl include... " >&6; }
5675 if test "x$MACOSX" != "xyes"; then
5676 tclinc="$tclloc/include $tclloc/include/tcl $tclloc/include/tcl$tclver /usr/local/include /usr/local/include/tcl$tclver /usr/include /usr/include/tcl$tclver"
5677 else
5678 tclinc="/System/Library/Frameworks/Tcl.framework/Headers"
5680 TCL_INC=
5681 for try in $tclinc; do
5682 if test -f "$try/tcl.h"; then
5683 { $as_echo "$as_me:$LINENO: result: $try/tcl.h" >&5
5684 $as_echo "$try/tcl.h" >&6; }
5685 TCL_INC=$try
5686 break
5688 done
5689 if test -z "$TCL_INC"; then
5690 { $as_echo "$as_me:$LINENO: result: <not found>" >&5
5691 $as_echo "<not found>" >&6; }
5692 SKIP_TCL=YES
5694 if test -z "$SKIP_TCL"; then
5695 { $as_echo "$as_me:$LINENO: checking for location of tclConfig.sh script" >&5
5696 $as_echo_n "checking for location of tclConfig.sh script... " >&6; }
5697 if test "x$MACOSX" != "xyes"; then
5698 tclcnf=`echo $tclinc | sed s/include/lib/g`
5699 tclcnf="$tclcnf `echo $tclinc | sed s/include/lib64/g`"
5700 else
5701 tclcnf="/System/Library/Frameworks/Tcl.framework"
5703 for try in $tclcnf; do
5704 if test -f $try/tclConfig.sh; then
5705 { $as_echo "$as_me:$LINENO: result: $try/tclConfig.sh" >&5
5706 $as_echo "$try/tclConfig.sh" >&6; }
5707 . $try/tclConfig.sh
5708 TCL_LIBS=`eval echo "$TCL_LIB_SPEC $TCL_LIBS"`
5709 TCL_DEFS=`echo $TCL_DEFS | sed -e 's/\\\\ /\\\\X/g' | tr ' ' '\012' | sed -e '/^[^-]/d' -e '/^-[^D]/d' -e '/-D[^_]/d' -e 's/-D_/ -D_/' | tr '\012' ' ' | sed -e 's/\\\\X/\\\\ /g'`
5710 break
5712 done
5713 if test -z "$TCL_LIBS"; then
5714 { $as_echo "$as_me:$LINENO: result: <not found>" >&5
5715 $as_echo "<not found>" >&6; }
5716 { $as_echo "$as_me:$LINENO: checking for Tcl library by myself" >&5
5717 $as_echo_n "checking for Tcl library by myself... " >&6; }
5718 tcllib=`echo $tclinc | sed s/include/lib/g`
5719 tcllib="$tcllib `echo $tclinc | sed s/include/lib64/g`"
5720 for ext in .so .a ; do
5721 for ver in "" $tclver ; do
5722 for try in $tcllib ; do
5723 trylib=tcl$ver$ext
5724 if test -f $try/lib$trylib ; then
5725 { $as_echo "$as_me:$LINENO: result: $try/lib$trylib" >&5
5726 $as_echo "$try/lib$trylib" >&6; }
5727 TCL_LIBS="-L$try -ltcl$ver -ldl -lm"
5728 if test "`(uname) 2>/dev/null`" = SunOS &&
5729 uname -r | grep '^5' >/dev/null; then
5730 TCL_LIBS="$TCL_LIBS -R $try"
5732 break 3
5734 done
5735 done
5736 done
5737 if test -z "$TCL_LIBS"; then
5738 { $as_echo "$as_me:$LINENO: result: <not found>" >&5
5739 $as_echo "<not found>" >&6; }
5740 SKIP_TCL=YES
5743 if test -z "$SKIP_TCL"; then
5744 cat >>confdefs.h <<\_ACEOF
5745 #define FEAT_TCL 1
5746 _ACEOF
5748 TCL_SRC=if_tcl.c
5749 TCL_OBJ=objects/if_tcl.o
5750 TCL_PRO=if_tcl.pro
5751 TCL_CFLAGS="-I$TCL_INC $TCL_DEFS"
5754 else
5755 { $as_echo "$as_me:$LINENO: result: too old; need Tcl version 8.0 or later" >&5
5756 $as_echo "too old; need Tcl version 8.0 or later" >&6; }
5766 { $as_echo "$as_me:$LINENO: checking --enable-rubyinterp argument" >&5
5767 $as_echo_n "checking --enable-rubyinterp argument... " >&6; }
5768 # Check whether --enable-rubyinterp was given.
5769 if test "${enable_rubyinterp+set}" = set; then
5770 enableval=$enable_rubyinterp;
5771 else
5772 enable_rubyinterp="no"
5775 { $as_echo "$as_me:$LINENO: result: $enable_rubyinterp" >&5
5776 $as_echo "$enable_rubyinterp" >&6; }
5777 if test "$enable_rubyinterp" = "yes"; then
5778 { $as_echo "$as_me:$LINENO: checking --with-ruby-command argument" >&5
5779 $as_echo_n "checking --with-ruby-command argument... " >&6; }
5781 # Check whether --with-ruby-command was given.
5782 if test "${with_ruby_command+set}" = set; then
5783 withval=$with_ruby_command; RUBY_CMD="$withval"; { $as_echo "$as_me:$LINENO: result: $RUBY_CMD" >&5
5784 $as_echo "$RUBY_CMD" >&6; }
5785 else
5786 RUBY_CMD="ruby"; { $as_echo "$as_me:$LINENO: result: defaulting to $RUBY_CMD" >&5
5787 $as_echo "defaulting to $RUBY_CMD" >&6; }
5791 # Extract the first word of "$RUBY_CMD", so it can be a program name with args.
5792 set dummy $RUBY_CMD; ac_word=$2
5793 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5794 $as_echo_n "checking for $ac_word... " >&6; }
5795 if test "${ac_cv_path_vi_cv_path_ruby+set}" = set; then
5796 $as_echo_n "(cached) " >&6
5797 else
5798 case $vi_cv_path_ruby in
5799 [\\/]* | ?:[\\/]*)
5800 ac_cv_path_vi_cv_path_ruby="$vi_cv_path_ruby" # Let the user override the test with a path.
5803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5804 for as_dir in $PATH
5806 IFS=$as_save_IFS
5807 test -z "$as_dir" && as_dir=.
5808 for ac_exec_ext in '' $ac_executable_extensions; do
5809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5810 ac_cv_path_vi_cv_path_ruby="$as_dir/$ac_word$ac_exec_ext"
5811 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5812 break 2
5814 done
5815 done
5816 IFS=$as_save_IFS
5819 esac
5821 vi_cv_path_ruby=$ac_cv_path_vi_cv_path_ruby
5822 if test -n "$vi_cv_path_ruby"; then
5823 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_ruby" >&5
5824 $as_echo "$vi_cv_path_ruby" >&6; }
5825 else
5826 { $as_echo "$as_me:$LINENO: result: no" >&5
5827 $as_echo "no" >&6; }
5831 if test "X$vi_cv_path_ruby" != "X"; then
5832 { $as_echo "$as_me:$LINENO: checking Ruby version" >&5
5833 $as_echo_n "checking Ruby version... " >&6; }
5834 if $vi_cv_path_ruby -e '(VERSION rescue RUBY_VERSION) >= "1.6.0" or exit 1' >/dev/null 2>/dev/null; then
5835 { $as_echo "$as_me:$LINENO: result: OK" >&5
5836 $as_echo "OK" >&6; }
5837 { $as_echo "$as_me:$LINENO: checking Ruby header files" >&5
5838 $as_echo_n "checking Ruby header files... " >&6; }
5839 rubyhdrdir=`$vi_cv_path_ruby -r mkmf -e 'print Config::CONFIG["rubyhdrdir"] || Config::CONFIG["archdir"] || $hdrdir' 2>/dev/null`
5840 if test "X$rubyhdrdir" != "X"; then
5841 { $as_echo "$as_me:$LINENO: result: $rubyhdrdir" >&5
5842 $as_echo "$rubyhdrdir" >&6; }
5843 RUBY_CFLAGS="-I$rubyhdrdir"
5844 rubyarch=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["arch"]'`
5845 if test -d "$rubyhdrdir/$rubyarch"; then
5846 RUBY_CFLAGS="$RUBY_CFLAGS -I$rubyhdrdir/$rubyarch"
5848 rubyversion=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["ruby_version"].gsub(/\./, "")[0,2]'`
5849 RUBY_CFLAGS="$RUBY_CFLAGS -DRUBY_VERSION=$rubyversion"
5850 rubylibs=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LIBS"]'`
5851 if test "X$rubylibs" != "X"; then
5852 RUBY_LIBS="$rubylibs"
5854 librubyarg=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["LIBRUBYARG"])'`
5855 if test -f "$rubyhdrdir/$librubyarg"; then
5856 librubyarg="$rubyhdrdir/$librubyarg"
5857 else
5858 rubylibdir=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["libdir"])'`
5859 if test -f "$rubylibdir/$librubyarg"; then
5860 librubyarg="$rubylibdir/$librubyarg"
5861 elif test "$librubyarg" = "libruby.a"; then
5862 librubyarg="-lruby"
5863 else
5864 librubyarg=`$vi_cv_path_ruby -r rbconfig -e "print '$librubyarg'.gsub(/-L\./, %'-L#{Config.expand(Config::CONFIG[\"libdir\"])}')"`
5868 if test "X$librubyarg" != "X"; then
5869 RUBY_LIBS="$librubyarg $RUBY_LIBS"
5871 rubyldflags=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LDFLAGS"]'`
5872 if test "X$rubyldflags" != "X"; then
5873 rubyldflags=`echo "$rubyldflags" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//'`
5874 if test "X$rubyldflags" != "X"; then
5875 LDFLAGS="$rubyldflags $LDFLAGS"
5878 RUBY_SRC="if_ruby.c"
5879 RUBY_OBJ="objects/if_ruby.o"
5880 RUBY_PRO="if_ruby.pro"
5881 cat >>confdefs.h <<\_ACEOF
5882 #define FEAT_RUBY 1
5883 _ACEOF
5885 else
5886 { $as_echo "$as_me:$LINENO: result: not found; disabling Ruby" >&5
5887 $as_echo "not found; disabling Ruby" >&6; }
5889 else
5890 { $as_echo "$as_me:$LINENO: result: too old; need Ruby version 1.6.0 or later" >&5
5891 $as_echo "too old; need Ruby version 1.6.0 or later" >&6; }
5901 { $as_echo "$as_me:$LINENO: checking --enable-cscope argument" >&5
5902 $as_echo_n "checking --enable-cscope argument... " >&6; }
5903 # Check whether --enable-cscope was given.
5904 if test "${enable_cscope+set}" = set; then
5905 enableval=$enable_cscope;
5906 else
5907 enable_cscope="no"
5910 { $as_echo "$as_me:$LINENO: result: $enable_cscope" >&5
5911 $as_echo "$enable_cscope" >&6; }
5912 if test "$enable_cscope" = "yes"; then
5913 cat >>confdefs.h <<\_ACEOF
5914 #define FEAT_CSCOPE 1
5915 _ACEOF
5919 { $as_echo "$as_me:$LINENO: checking --enable-workshop argument" >&5
5920 $as_echo_n "checking --enable-workshop argument... " >&6; }
5921 # Check whether --enable-workshop was given.
5922 if test "${enable_workshop+set}" = set; then
5923 enableval=$enable_workshop;
5924 else
5925 enable_workshop="no"
5928 { $as_echo "$as_me:$LINENO: result: $enable_workshop" >&5
5929 $as_echo "$enable_workshop" >&6; }
5930 if test "$enable_workshop" = "yes"; then
5931 cat >>confdefs.h <<\_ACEOF
5932 #define FEAT_SUN_WORKSHOP 1
5933 _ACEOF
5935 WORKSHOP_SRC="workshop.c integration.c"
5937 WORKSHOP_OBJ="objects/workshop.o objects/integration.o"
5939 if test "${enable_gui-xxx}" = xxx; then
5940 enable_gui=motif
5944 { $as_echo "$as_me:$LINENO: checking --disable-netbeans argument" >&5
5945 $as_echo_n "checking --disable-netbeans argument... " >&6; }
5946 # Check whether --enable-netbeans was given.
5947 if test "${enable_netbeans+set}" = set; then
5948 enableval=$enable_netbeans;
5949 else
5950 enable_netbeans="yes"
5953 if test "$enable_netbeans" = "yes"; then
5954 { $as_echo "$as_me:$LINENO: result: no" >&5
5955 $as_echo "no" >&6; }
5957 { $as_echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
5958 $as_echo_n "checking for socket in -lsocket... " >&6; }
5959 if test "${ac_cv_lib_socket_socket+set}" = set; then
5960 $as_echo_n "(cached) " >&6
5961 else
5962 ac_check_lib_save_LIBS=$LIBS
5963 LIBS="-lsocket $LIBS"
5964 cat >conftest.$ac_ext <<_ACEOF
5965 /* confdefs.h. */
5966 _ACEOF
5967 cat confdefs.h >>conftest.$ac_ext
5968 cat >>conftest.$ac_ext <<_ACEOF
5969 /* end confdefs.h. */
5971 /* Override any GCC internal prototype to avoid an error.
5972 Use char because int might match the return type of a GCC
5973 builtin and then its argument prototype would still apply. */
5974 #ifdef __cplusplus
5975 extern "C"
5976 #endif
5977 char socket ();
5979 main ()
5981 return socket ();
5983 return 0;
5985 _ACEOF
5986 rm -f conftest.$ac_objext conftest$ac_exeext
5987 if { (ac_try="$ac_link"
5988 case "(($ac_try" in
5989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5990 *) ac_try_echo=$ac_try;;
5991 esac
5992 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5993 $as_echo "$ac_try_echo") >&5
5994 (eval "$ac_link") 2>conftest.er1
5995 ac_status=$?
5996 grep -v '^ *+' conftest.er1 >conftest.err
5997 rm -f conftest.er1
5998 cat conftest.err >&5
5999 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6000 (exit $ac_status); } && {
6001 test -z "$ac_c_werror_flag" ||
6002 test ! -s conftest.err
6003 } && test -s conftest$ac_exeext && {
6004 test "$cross_compiling" = yes ||
6005 $as_test_x conftest$ac_exeext
6006 }; then
6007 ac_cv_lib_socket_socket=yes
6008 else
6009 $as_echo "$as_me: failed program was:" >&5
6010 sed 's/^/| /' conftest.$ac_ext >&5
6012 ac_cv_lib_socket_socket=no
6015 rm -rf conftest.dSYM
6016 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6017 conftest$ac_exeext conftest.$ac_ext
6018 LIBS=$ac_check_lib_save_LIBS
6020 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
6021 $as_echo "$ac_cv_lib_socket_socket" >&6; }
6022 if test "x$ac_cv_lib_socket_socket" = x""yes; then
6023 cat >>confdefs.h <<_ACEOF
6024 #define HAVE_LIBSOCKET 1
6025 _ACEOF
6027 LIBS="-lsocket $LIBS"
6032 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6033 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
6034 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6035 $as_echo_n "(cached) " >&6
6036 else
6037 ac_check_lib_save_LIBS=$LIBS
6038 LIBS="-lnsl $LIBS"
6039 cat >conftest.$ac_ext <<_ACEOF
6040 /* confdefs.h. */
6041 _ACEOF
6042 cat confdefs.h >>conftest.$ac_ext
6043 cat >>conftest.$ac_ext <<_ACEOF
6044 /* end confdefs.h. */
6046 /* Override any GCC internal prototype to avoid an error.
6047 Use char because int might match the return type of a GCC
6048 builtin and then its argument prototype would still apply. */
6049 #ifdef __cplusplus
6050 extern "C"
6051 #endif
6052 char gethostbyname ();
6054 main ()
6056 return gethostbyname ();
6058 return 0;
6060 _ACEOF
6061 rm -f conftest.$ac_objext conftest$ac_exeext
6062 if { (ac_try="$ac_link"
6063 case "(($ac_try" in
6064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6065 *) ac_try_echo=$ac_try;;
6066 esac
6067 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6068 $as_echo "$ac_try_echo") >&5
6069 (eval "$ac_link") 2>conftest.er1
6070 ac_status=$?
6071 grep -v '^ *+' conftest.er1 >conftest.err
6072 rm -f conftest.er1
6073 cat conftest.err >&5
6074 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6075 (exit $ac_status); } && {
6076 test -z "$ac_c_werror_flag" ||
6077 test ! -s conftest.err
6078 } && test -s conftest$ac_exeext && {
6079 test "$cross_compiling" = yes ||
6080 $as_test_x conftest$ac_exeext
6081 }; then
6082 ac_cv_lib_nsl_gethostbyname=yes
6083 else
6084 $as_echo "$as_me: failed program was:" >&5
6085 sed 's/^/| /' conftest.$ac_ext >&5
6087 ac_cv_lib_nsl_gethostbyname=no
6090 rm -rf conftest.dSYM
6091 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6092 conftest$ac_exeext conftest.$ac_ext
6093 LIBS=$ac_check_lib_save_LIBS
6095 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6096 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
6097 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then
6098 cat >>confdefs.h <<_ACEOF
6099 #define HAVE_LIBNSL 1
6100 _ACEOF
6102 LIBS="-lnsl $LIBS"
6106 { $as_echo "$as_me:$LINENO: checking whether compiling netbeans integration is possible" >&5
6107 $as_echo_n "checking whether compiling netbeans integration is possible... " >&6; }
6108 cat >conftest.$ac_ext <<_ACEOF
6109 /* confdefs.h. */
6110 _ACEOF
6111 cat confdefs.h >>conftest.$ac_ext
6112 cat >>conftest.$ac_ext <<_ACEOF
6113 /* end confdefs.h. */
6115 #include <stdio.h>
6116 #include <stdlib.h>
6117 #include <stdarg.h>
6118 #include <fcntl.h>
6119 #include <netdb.h>
6120 #include <netinet/in.h>
6121 #include <errno.h>
6122 #include <sys/types.h>
6123 #include <sys/socket.h>
6124 /* Check bitfields */
6125 struct nbbuf {
6126 unsigned int initDone:1;
6127 ushort signmaplen;
6131 main ()
6134 /* Check creating a socket. */
6135 struct sockaddr_in server;
6136 (void)socket(AF_INET, SOCK_STREAM, 0);
6137 (void)htons(100);
6138 (void)gethostbyname("microsoft.com");
6139 if (errno == ECONNREFUSED)
6140 (void)connect(1, (struct sockaddr *)&server, sizeof(server));
6143 return 0;
6145 _ACEOF
6146 rm -f conftest.$ac_objext conftest$ac_exeext
6147 if { (ac_try="$ac_link"
6148 case "(($ac_try" in
6149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6150 *) ac_try_echo=$ac_try;;
6151 esac
6152 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6153 $as_echo "$ac_try_echo") >&5
6154 (eval "$ac_link") 2>conftest.er1
6155 ac_status=$?
6156 grep -v '^ *+' conftest.er1 >conftest.err
6157 rm -f conftest.er1
6158 cat conftest.err >&5
6159 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6160 (exit $ac_status); } && {
6161 test -z "$ac_c_werror_flag" ||
6162 test ! -s conftest.err
6163 } && test -s conftest$ac_exeext && {
6164 test "$cross_compiling" = yes ||
6165 $as_test_x conftest$ac_exeext
6166 }; then
6167 { $as_echo "$as_me:$LINENO: result: yes" >&5
6168 $as_echo "yes" >&6; }
6169 else
6170 $as_echo "$as_me: failed program was:" >&5
6171 sed 's/^/| /' conftest.$ac_ext >&5
6173 { $as_echo "$as_me:$LINENO: result: no" >&5
6174 $as_echo "no" >&6; }; enable_netbeans="no"
6177 rm -rf conftest.dSYM
6178 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6179 conftest$ac_exeext conftest.$ac_ext
6180 else
6181 { $as_echo "$as_me:$LINENO: result: yes" >&5
6182 $as_echo "yes" >&6; }
6184 if test "$enable_netbeans" = "yes"; then
6185 cat >>confdefs.h <<\_ACEOF
6186 #define FEAT_NETBEANS_INTG 1
6187 _ACEOF
6189 NETBEANS_SRC="netbeans.c"
6191 NETBEANS_OBJ="objects/netbeans.o"
6195 { $as_echo "$as_me:$LINENO: checking --enable-sniff argument" >&5
6196 $as_echo_n "checking --enable-sniff argument... " >&6; }
6197 # Check whether --enable-sniff was given.
6198 if test "${enable_sniff+set}" = set; then
6199 enableval=$enable_sniff;
6200 else
6201 enable_sniff="no"
6204 { $as_echo "$as_me:$LINENO: result: $enable_sniff" >&5
6205 $as_echo "$enable_sniff" >&6; }
6206 if test "$enable_sniff" = "yes"; then
6207 cat >>confdefs.h <<\_ACEOF
6208 #define FEAT_SNIFF 1
6209 _ACEOF
6211 SNIFF_SRC="if_sniff.c"
6213 SNIFF_OBJ="objects/if_sniff.o"
6217 { $as_echo "$as_me:$LINENO: checking --enable-multibyte argument" >&5
6218 $as_echo_n "checking --enable-multibyte argument... " >&6; }
6219 # Check whether --enable-multibyte was given.
6220 if test "${enable_multibyte+set}" = set; then
6221 enableval=$enable_multibyte;
6222 else
6223 enable_multibyte="no"
6226 { $as_echo "$as_me:$LINENO: result: $enable_multibyte" >&5
6227 $as_echo "$enable_multibyte" >&6; }
6228 if test "$enable_multibyte" = "yes"; then
6229 cat >>confdefs.h <<\_ACEOF
6230 #define FEAT_MBYTE 1
6231 _ACEOF
6235 { $as_echo "$as_me:$LINENO: checking --enable-hangulinput argument" >&5
6236 $as_echo_n "checking --enable-hangulinput argument... " >&6; }
6237 # Check whether --enable-hangulinput was given.
6238 if test "${enable_hangulinput+set}" = set; then
6239 enableval=$enable_hangulinput;
6240 else
6241 enable_hangulinput="no"
6244 { $as_echo "$as_me:$LINENO: result: $enable_hangulinput" >&5
6245 $as_echo "$enable_hangulinput" >&6; }
6247 { $as_echo "$as_me:$LINENO: checking --enable-xim argument" >&5
6248 $as_echo_n "checking --enable-xim argument... " >&6; }
6249 # Check whether --enable-xim was given.
6250 if test "${enable_xim+set}" = set; then
6251 enableval=$enable_xim; { $as_echo "$as_me:$LINENO: result: $enable_xim" >&5
6252 $as_echo "$enable_xim" >&6; }
6253 else
6254 enable_xim="auto"; { $as_echo "$as_me:$LINENO: result: defaulting to auto" >&5
6255 $as_echo "defaulting to auto" >&6; }
6259 { $as_echo "$as_me:$LINENO: checking --enable-fontset argument" >&5
6260 $as_echo_n "checking --enable-fontset argument... " >&6; }
6261 # Check whether --enable-fontset was given.
6262 if test "${enable_fontset+set}" = set; then
6263 enableval=$enable_fontset;
6264 else
6265 enable_fontset="no"
6268 { $as_echo "$as_me:$LINENO: result: $enable_fontset" >&5
6269 $as_echo "$enable_fontset" >&6; }
6271 test -z "$with_x" && with_x=yes
6272 test "${enable_gui-yes}" != no -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && with_x=yes
6273 if test "$with_x" = no; then
6274 { $as_echo "$as_me:$LINENO: result: defaulting to: don't HAVE_X11" >&5
6275 $as_echo "defaulting to: don't HAVE_X11" >&6; }
6276 else
6278 # Extract the first word of "xmkmf", so it can be a program name with args.
6279 set dummy xmkmf; ac_word=$2
6280 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6281 $as_echo_n "checking for $ac_word... " >&6; }
6282 if test "${ac_cv_path_xmkmfpath+set}" = set; then
6283 $as_echo_n "(cached) " >&6
6284 else
6285 case $xmkmfpath in
6286 [\\/]* | ?:[\\/]*)
6287 ac_cv_path_xmkmfpath="$xmkmfpath" # Let the user override the test with a path.
6290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6291 for as_dir in $PATH
6293 IFS=$as_save_IFS
6294 test -z "$as_dir" && as_dir=.
6295 for ac_exec_ext in '' $ac_executable_extensions; do
6296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6297 ac_cv_path_xmkmfpath="$as_dir/$ac_word$ac_exec_ext"
6298 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6299 break 2
6301 done
6302 done
6303 IFS=$as_save_IFS
6306 esac
6308 xmkmfpath=$ac_cv_path_xmkmfpath
6309 if test -n "$xmkmfpath"; then
6310 { $as_echo "$as_me:$LINENO: result: $xmkmfpath" >&5
6311 $as_echo "$xmkmfpath" >&6; }
6312 else
6313 { $as_echo "$as_me:$LINENO: result: no" >&5
6314 $as_echo "no" >&6; }
6319 { $as_echo "$as_me:$LINENO: checking for X" >&5
6320 $as_echo_n "checking for X... " >&6; }
6323 # Check whether --with-x was given.
6324 if test "${with_x+set}" = set; then
6325 withval=$with_x;
6328 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6329 if test "x$with_x" = xno; then
6330 # The user explicitly disabled X.
6331 have_x=disabled
6332 else
6333 case $x_includes,$x_libraries in #(
6334 *\'*) { { $as_echo "$as_me:$LINENO: error: cannot use X directory names containing '" >&5
6335 $as_echo "$as_me: error: cannot use X directory names containing '" >&2;}
6336 { (exit 1); exit 1; }; };; #(
6337 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
6338 $as_echo_n "(cached) " >&6
6339 else
6340 # One or both of the vars are not set, and there is no cached value.
6341 ac_x_includes=no ac_x_libraries=no
6342 rm -f -r conftest.dir
6343 if mkdir conftest.dir; then
6344 cd conftest.dir
6345 cat >Imakefile <<'_ACEOF'
6346 incroot:
6347 @echo incroot='${INCROOT}'
6348 usrlibdir:
6349 @echo usrlibdir='${USRLIBDIR}'
6350 libdir:
6351 @echo libdir='${LIBDIR}'
6352 _ACEOF
6353 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
6354 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6355 for ac_var in incroot usrlibdir libdir; do
6356 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
6357 done
6358 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6359 for ac_extension in a so sl dylib la dll; do
6360 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
6361 test -f "$ac_im_libdir/libX11.$ac_extension"; then
6362 ac_im_usrlibdir=$ac_im_libdir; break
6364 done
6365 # Screen out bogus values from the imake configuration. They are
6366 # bogus both because they are the default anyway, and because
6367 # using them would break gcc on systems where it needs fixed includes.
6368 case $ac_im_incroot in
6369 /usr/include) ac_x_includes= ;;
6370 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6371 esac
6372 case $ac_im_usrlibdir in
6373 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
6374 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6375 esac
6377 cd ..
6378 rm -f -r conftest.dir
6381 # Standard set of common directories for X headers.
6382 # Check X11 before X11Rn because it is often a symlink to the current release.
6383 ac_x_header_dirs='
6384 /usr/X11/include
6385 /usr/X11R6/include
6386 /usr/X11R5/include
6387 /usr/X11R4/include
6389 /usr/include/X11
6390 /usr/include/X11R6
6391 /usr/include/X11R5
6392 /usr/include/X11R4
6394 /usr/local/X11/include
6395 /usr/local/X11R6/include
6396 /usr/local/X11R5/include
6397 /usr/local/X11R4/include
6399 /usr/local/include/X11
6400 /usr/local/include/X11R6
6401 /usr/local/include/X11R5
6402 /usr/local/include/X11R4
6404 /usr/X386/include
6405 /usr/x386/include
6406 /usr/XFree86/include/X11
6408 /usr/include
6409 /usr/local/include
6410 /usr/unsupported/include
6411 /usr/athena/include
6412 /usr/local/x11r5/include
6413 /usr/lpp/Xamples/include
6415 /usr/openwin/include
6416 /usr/openwin/share/include'
6418 if test "$ac_x_includes" = no; then
6419 # Guess where to find include files, by looking for Xlib.h.
6420 # First, try using that file with no special directory specified.
6421 cat >conftest.$ac_ext <<_ACEOF
6422 /* confdefs.h. */
6423 _ACEOF
6424 cat confdefs.h >>conftest.$ac_ext
6425 cat >>conftest.$ac_ext <<_ACEOF
6426 /* end confdefs.h. */
6427 #include <X11/Xlib.h>
6428 _ACEOF
6429 if { (ac_try="$ac_cpp conftest.$ac_ext"
6430 case "(($ac_try" in
6431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6432 *) ac_try_echo=$ac_try;;
6433 esac
6434 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6435 $as_echo "$ac_try_echo") >&5
6436 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6437 ac_status=$?
6438 grep -v '^ *+' conftest.er1 >conftest.err
6439 rm -f conftest.er1
6440 cat conftest.err >&5
6441 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6442 (exit $ac_status); } >/dev/null && {
6443 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6444 test ! -s conftest.err
6445 }; then
6446 # We can compile using X headers with no special include directory.
6447 ac_x_includes=
6448 else
6449 $as_echo "$as_me: failed program was:" >&5
6450 sed 's/^/| /' conftest.$ac_ext >&5
6452 for ac_dir in $ac_x_header_dirs; do
6453 if test -r "$ac_dir/X11/Xlib.h"; then
6454 ac_x_includes=$ac_dir
6455 break
6457 done
6460 rm -f conftest.err conftest.$ac_ext
6461 fi # $ac_x_includes = no
6463 if test "$ac_x_libraries" = no; then
6464 # Check for the libraries.
6465 # See if we find them without any special options.
6466 # Don't add to $LIBS permanently.
6467 ac_save_LIBS=$LIBS
6468 LIBS="-lX11 $LIBS"
6469 cat >conftest.$ac_ext <<_ACEOF
6470 /* confdefs.h. */
6471 _ACEOF
6472 cat confdefs.h >>conftest.$ac_ext
6473 cat >>conftest.$ac_ext <<_ACEOF
6474 /* end confdefs.h. */
6475 #include <X11/Xlib.h>
6477 main ()
6479 XrmInitialize ()
6481 return 0;
6483 _ACEOF
6484 rm -f conftest.$ac_objext conftest$ac_exeext
6485 if { (ac_try="$ac_link"
6486 case "(($ac_try" in
6487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6488 *) ac_try_echo=$ac_try;;
6489 esac
6490 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6491 $as_echo "$ac_try_echo") >&5
6492 (eval "$ac_link") 2>conftest.er1
6493 ac_status=$?
6494 grep -v '^ *+' conftest.er1 >conftest.err
6495 rm -f conftest.er1
6496 cat conftest.err >&5
6497 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6498 (exit $ac_status); } && {
6499 test -z "$ac_c_werror_flag" ||
6500 test ! -s conftest.err
6501 } && test -s conftest$ac_exeext && {
6502 test "$cross_compiling" = yes ||
6503 $as_test_x conftest$ac_exeext
6504 }; then
6505 LIBS=$ac_save_LIBS
6506 # We can link X programs with no special library path.
6507 ac_x_libraries=
6508 else
6509 $as_echo "$as_me: failed program was:" >&5
6510 sed 's/^/| /' conftest.$ac_ext >&5
6512 LIBS=$ac_save_LIBS
6513 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6515 # Don't even attempt the hair of trying to link an X program!
6516 for ac_extension in a so sl dylib la dll; do
6517 if test -r "$ac_dir/libX11.$ac_extension"; then
6518 ac_x_libraries=$ac_dir
6519 break 2
6521 done
6522 done
6525 rm -rf conftest.dSYM
6526 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6527 conftest$ac_exeext conftest.$ac_ext
6528 fi # $ac_x_libraries = no
6530 case $ac_x_includes,$ac_x_libraries in #(
6531 no,* | *,no | *\'*)
6532 # Didn't find X, or a directory has "'" in its name.
6533 ac_cv_have_x="have_x=no";; #(
6535 # Record where we found X for the cache.
6536 ac_cv_have_x="have_x=yes\
6537 ac_x_includes='$ac_x_includes'\
6538 ac_x_libraries='$ac_x_libraries'"
6539 esac
6541 ;; #(
6542 *) have_x=yes;;
6543 esac
6544 eval "$ac_cv_have_x"
6545 fi # $with_x != no
6547 if test "$have_x" != yes; then
6548 { $as_echo "$as_me:$LINENO: result: $have_x" >&5
6549 $as_echo "$have_x" >&6; }
6550 no_x=yes
6551 else
6552 # If each of the values was on the command line, it overrides each guess.
6553 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6554 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6555 # Update the cache value to reflect the command line values.
6556 ac_cv_have_x="have_x=yes\
6557 ac_x_includes='$x_includes'\
6558 ac_x_libraries='$x_libraries'"
6559 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6560 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
6563 if test "$no_x" = yes; then
6564 # Not all programs may use this symbol, but it does not hurt to define it.
6566 cat >>confdefs.h <<\_ACEOF
6567 #define X_DISPLAY_MISSING 1
6568 _ACEOF
6570 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6571 else
6572 if test -n "$x_includes"; then
6573 X_CFLAGS="$X_CFLAGS -I$x_includes"
6576 # It would also be nice to do this for all -L options, not just this one.
6577 if test -n "$x_libraries"; then
6578 X_LIBS="$X_LIBS -L$x_libraries"
6579 # For Solaris; some versions of Sun CC require a space after -R and
6580 # others require no space. Words are not sufficient . . . .
6581 { $as_echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
6582 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
6583 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
6584 ac_xsave_c_werror_flag=$ac_c_werror_flag
6585 ac_c_werror_flag=yes
6586 cat >conftest.$ac_ext <<_ACEOF
6587 /* confdefs.h. */
6588 _ACEOF
6589 cat confdefs.h >>conftest.$ac_ext
6590 cat >>conftest.$ac_ext <<_ACEOF
6591 /* end confdefs.h. */
6594 main ()
6598 return 0;
6600 _ACEOF
6601 rm -f conftest.$ac_objext conftest$ac_exeext
6602 if { (ac_try="$ac_link"
6603 case "(($ac_try" in
6604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6605 *) ac_try_echo=$ac_try;;
6606 esac
6607 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6608 $as_echo "$ac_try_echo") >&5
6609 (eval "$ac_link") 2>conftest.er1
6610 ac_status=$?
6611 grep -v '^ *+' conftest.er1 >conftest.err
6612 rm -f conftest.er1
6613 cat conftest.err >&5
6614 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6615 (exit $ac_status); } && {
6616 test -z "$ac_c_werror_flag" ||
6617 test ! -s conftest.err
6618 } && test -s conftest$ac_exeext && {
6619 test "$cross_compiling" = yes ||
6620 $as_test_x conftest$ac_exeext
6621 }; then
6622 { $as_echo "$as_me:$LINENO: result: no" >&5
6623 $as_echo "no" >&6; }
6624 X_LIBS="$X_LIBS -R$x_libraries"
6625 else
6626 $as_echo "$as_me: failed program was:" >&5
6627 sed 's/^/| /' conftest.$ac_ext >&5
6629 LIBS="$ac_xsave_LIBS -R $x_libraries"
6630 cat >conftest.$ac_ext <<_ACEOF
6631 /* confdefs.h. */
6632 _ACEOF
6633 cat confdefs.h >>conftest.$ac_ext
6634 cat >>conftest.$ac_ext <<_ACEOF
6635 /* end confdefs.h. */
6638 main ()
6642 return 0;
6644 _ACEOF
6645 rm -f conftest.$ac_objext conftest$ac_exeext
6646 if { (ac_try="$ac_link"
6647 case "(($ac_try" in
6648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6649 *) ac_try_echo=$ac_try;;
6650 esac
6651 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6652 $as_echo "$ac_try_echo") >&5
6653 (eval "$ac_link") 2>conftest.er1
6654 ac_status=$?
6655 grep -v '^ *+' conftest.er1 >conftest.err
6656 rm -f conftest.er1
6657 cat conftest.err >&5
6658 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6659 (exit $ac_status); } && {
6660 test -z "$ac_c_werror_flag" ||
6661 test ! -s conftest.err
6662 } && test -s conftest$ac_exeext && {
6663 test "$cross_compiling" = yes ||
6664 $as_test_x conftest$ac_exeext
6665 }; then
6666 { $as_echo "$as_me:$LINENO: result: yes" >&5
6667 $as_echo "yes" >&6; }
6668 X_LIBS="$X_LIBS -R $x_libraries"
6669 else
6670 $as_echo "$as_me: failed program was:" >&5
6671 sed 's/^/| /' conftest.$ac_ext >&5
6673 { $as_echo "$as_me:$LINENO: result: neither works" >&5
6674 $as_echo "neither works" >&6; }
6677 rm -rf conftest.dSYM
6678 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6679 conftest$ac_exeext conftest.$ac_ext
6682 rm -rf conftest.dSYM
6683 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6684 conftest$ac_exeext conftest.$ac_ext
6685 ac_c_werror_flag=$ac_xsave_c_werror_flag
6686 LIBS=$ac_xsave_LIBS
6689 # Check for system-dependent libraries X programs must link with.
6690 # Do this before checking for the system-independent R6 libraries
6691 # (-lICE), since we may need -lsocket or whatever for X linking.
6693 if test "$ISC" = yes; then
6694 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
6695 else
6696 # Martyn Johnson says this is needed for Ultrix, if the X
6697 # libraries were built with DECnet support. And Karl Berry says
6698 # the Alpha needs dnet_stub (dnet does not exist).
6699 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
6700 cat >conftest.$ac_ext <<_ACEOF
6701 /* confdefs.h. */
6702 _ACEOF
6703 cat confdefs.h >>conftest.$ac_ext
6704 cat >>conftest.$ac_ext <<_ACEOF
6705 /* end confdefs.h. */
6707 /* Override any GCC internal prototype to avoid an error.
6708 Use char because int might match the return type of a GCC
6709 builtin and then its argument prototype would still apply. */
6710 #ifdef __cplusplus
6711 extern "C"
6712 #endif
6713 char XOpenDisplay ();
6715 main ()
6717 return XOpenDisplay ();
6719 return 0;
6721 _ACEOF
6722 rm -f conftest.$ac_objext conftest$ac_exeext
6723 if { (ac_try="$ac_link"
6724 case "(($ac_try" in
6725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6726 *) ac_try_echo=$ac_try;;
6727 esac
6728 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6729 $as_echo "$ac_try_echo") >&5
6730 (eval "$ac_link") 2>conftest.er1
6731 ac_status=$?
6732 grep -v '^ *+' conftest.er1 >conftest.err
6733 rm -f conftest.er1
6734 cat conftest.err >&5
6735 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6736 (exit $ac_status); } && {
6737 test -z "$ac_c_werror_flag" ||
6738 test ! -s conftest.err
6739 } && test -s conftest$ac_exeext && {
6740 test "$cross_compiling" = yes ||
6741 $as_test_x conftest$ac_exeext
6742 }; then
6744 else
6745 $as_echo "$as_me: failed program was:" >&5
6746 sed 's/^/| /' conftest.$ac_ext >&5
6748 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
6749 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
6750 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
6751 $as_echo_n "(cached) " >&6
6752 else
6753 ac_check_lib_save_LIBS=$LIBS
6754 LIBS="-ldnet $LIBS"
6755 cat >conftest.$ac_ext <<_ACEOF
6756 /* confdefs.h. */
6757 _ACEOF
6758 cat confdefs.h >>conftest.$ac_ext
6759 cat >>conftest.$ac_ext <<_ACEOF
6760 /* end confdefs.h. */
6762 /* Override any GCC internal prototype to avoid an error.
6763 Use char because int might match the return type of a GCC
6764 builtin and then its argument prototype would still apply. */
6765 #ifdef __cplusplus
6766 extern "C"
6767 #endif
6768 char dnet_ntoa ();
6770 main ()
6772 return dnet_ntoa ();
6774 return 0;
6776 _ACEOF
6777 rm -f conftest.$ac_objext conftest$ac_exeext
6778 if { (ac_try="$ac_link"
6779 case "(($ac_try" in
6780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6781 *) ac_try_echo=$ac_try;;
6782 esac
6783 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6784 $as_echo "$ac_try_echo") >&5
6785 (eval "$ac_link") 2>conftest.er1
6786 ac_status=$?
6787 grep -v '^ *+' conftest.er1 >conftest.err
6788 rm -f conftest.er1
6789 cat conftest.err >&5
6790 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6791 (exit $ac_status); } && {
6792 test -z "$ac_c_werror_flag" ||
6793 test ! -s conftest.err
6794 } && test -s conftest$ac_exeext && {
6795 test "$cross_compiling" = yes ||
6796 $as_test_x conftest$ac_exeext
6797 }; then
6798 ac_cv_lib_dnet_dnet_ntoa=yes
6799 else
6800 $as_echo "$as_me: failed program was:" >&5
6801 sed 's/^/| /' conftest.$ac_ext >&5
6803 ac_cv_lib_dnet_dnet_ntoa=no
6806 rm -rf conftest.dSYM
6807 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6808 conftest$ac_exeext conftest.$ac_ext
6809 LIBS=$ac_check_lib_save_LIBS
6811 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6812 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
6813 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then
6814 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
6817 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
6818 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
6819 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
6820 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
6821 $as_echo_n "(cached) " >&6
6822 else
6823 ac_check_lib_save_LIBS=$LIBS
6824 LIBS="-ldnet_stub $LIBS"
6825 cat >conftest.$ac_ext <<_ACEOF
6826 /* confdefs.h. */
6827 _ACEOF
6828 cat confdefs.h >>conftest.$ac_ext
6829 cat >>conftest.$ac_ext <<_ACEOF
6830 /* end confdefs.h. */
6832 /* Override any GCC internal prototype to avoid an error.
6833 Use char because int might match the return type of a GCC
6834 builtin and then its argument prototype would still apply. */
6835 #ifdef __cplusplus
6836 extern "C"
6837 #endif
6838 char dnet_ntoa ();
6840 main ()
6842 return dnet_ntoa ();
6844 return 0;
6846 _ACEOF
6847 rm -f conftest.$ac_objext conftest$ac_exeext
6848 if { (ac_try="$ac_link"
6849 case "(($ac_try" in
6850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6851 *) ac_try_echo=$ac_try;;
6852 esac
6853 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6854 $as_echo "$ac_try_echo") >&5
6855 (eval "$ac_link") 2>conftest.er1
6856 ac_status=$?
6857 grep -v '^ *+' conftest.er1 >conftest.err
6858 rm -f conftest.er1
6859 cat conftest.err >&5
6860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6861 (exit $ac_status); } && {
6862 test -z "$ac_c_werror_flag" ||
6863 test ! -s conftest.err
6864 } && test -s conftest$ac_exeext && {
6865 test "$cross_compiling" = yes ||
6866 $as_test_x conftest$ac_exeext
6867 }; then
6868 ac_cv_lib_dnet_stub_dnet_ntoa=yes
6869 else
6870 $as_echo "$as_me: failed program was:" >&5
6871 sed 's/^/| /' conftest.$ac_ext >&5
6873 ac_cv_lib_dnet_stub_dnet_ntoa=no
6876 rm -rf conftest.dSYM
6877 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6878 conftest$ac_exeext conftest.$ac_ext
6879 LIBS=$ac_check_lib_save_LIBS
6881 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
6882 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
6883 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then
6884 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
6890 rm -rf conftest.dSYM
6891 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6892 conftest$ac_exeext conftest.$ac_ext
6893 LIBS="$ac_xsave_LIBS"
6895 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
6896 # to get the SysV transport functions.
6897 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
6898 # needs -lnsl.
6899 # The nsl library prevents programs from opening the X display
6900 # on Irix 5.2, according to T.E. Dickey.
6901 # The functions gethostbyname, getservbyname, and inet_addr are
6902 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
6903 { $as_echo "$as_me:$LINENO: checking for gethostbyname" >&5
6904 $as_echo_n "checking for gethostbyname... " >&6; }
6905 if test "${ac_cv_func_gethostbyname+set}" = set; then
6906 $as_echo_n "(cached) " >&6
6907 else
6908 cat >conftest.$ac_ext <<_ACEOF
6909 /* confdefs.h. */
6910 _ACEOF
6911 cat confdefs.h >>conftest.$ac_ext
6912 cat >>conftest.$ac_ext <<_ACEOF
6913 /* end confdefs.h. */
6914 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
6915 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6916 #define gethostbyname innocuous_gethostbyname
6918 /* System header to define __stub macros and hopefully few prototypes,
6919 which can conflict with char gethostbyname (); below.
6920 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6921 <limits.h> exists even on freestanding compilers. */
6923 #ifdef __STDC__
6924 # include <limits.h>
6925 #else
6926 # include <assert.h>
6927 #endif
6929 #undef gethostbyname
6931 /* Override any GCC internal prototype to avoid an error.
6932 Use char because int might match the return type of a GCC
6933 builtin and then its argument prototype would still apply. */
6934 #ifdef __cplusplus
6935 extern "C"
6936 #endif
6937 char gethostbyname ();
6938 /* The GNU C library defines this for functions which it implements
6939 to always fail with ENOSYS. Some functions are actually named
6940 something starting with __ and the normal name is an alias. */
6941 #if defined __stub_gethostbyname || defined __stub___gethostbyname
6942 choke me
6943 #endif
6946 main ()
6948 return gethostbyname ();
6950 return 0;
6952 _ACEOF
6953 rm -f conftest.$ac_objext conftest$ac_exeext
6954 if { (ac_try="$ac_link"
6955 case "(($ac_try" in
6956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6957 *) ac_try_echo=$ac_try;;
6958 esac
6959 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6960 $as_echo "$ac_try_echo") >&5
6961 (eval "$ac_link") 2>conftest.er1
6962 ac_status=$?
6963 grep -v '^ *+' conftest.er1 >conftest.err
6964 rm -f conftest.er1
6965 cat conftest.err >&5
6966 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6967 (exit $ac_status); } && {
6968 test -z "$ac_c_werror_flag" ||
6969 test ! -s conftest.err
6970 } && test -s conftest$ac_exeext && {
6971 test "$cross_compiling" = yes ||
6972 $as_test_x conftest$ac_exeext
6973 }; then
6974 ac_cv_func_gethostbyname=yes
6975 else
6976 $as_echo "$as_me: failed program was:" >&5
6977 sed 's/^/| /' conftest.$ac_ext >&5
6979 ac_cv_func_gethostbyname=no
6982 rm -rf conftest.dSYM
6983 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6984 conftest$ac_exeext conftest.$ac_ext
6986 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
6987 $as_echo "$ac_cv_func_gethostbyname" >&6; }
6989 if test $ac_cv_func_gethostbyname = no; then
6990 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6991 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
6992 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6993 $as_echo_n "(cached) " >&6
6994 else
6995 ac_check_lib_save_LIBS=$LIBS
6996 LIBS="-lnsl $LIBS"
6997 cat >conftest.$ac_ext <<_ACEOF
6998 /* confdefs.h. */
6999 _ACEOF
7000 cat confdefs.h >>conftest.$ac_ext
7001 cat >>conftest.$ac_ext <<_ACEOF
7002 /* end confdefs.h. */
7004 /* Override any GCC internal prototype to avoid an error.
7005 Use char because int might match the return type of a GCC
7006 builtin and then its argument prototype would still apply. */
7007 #ifdef __cplusplus
7008 extern "C"
7009 #endif
7010 char gethostbyname ();
7012 main ()
7014 return gethostbyname ();
7016 return 0;
7018 _ACEOF
7019 rm -f conftest.$ac_objext conftest$ac_exeext
7020 if { (ac_try="$ac_link"
7021 case "(($ac_try" in
7022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7023 *) ac_try_echo=$ac_try;;
7024 esac
7025 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7026 $as_echo "$ac_try_echo") >&5
7027 (eval "$ac_link") 2>conftest.er1
7028 ac_status=$?
7029 grep -v '^ *+' conftest.er1 >conftest.err
7030 rm -f conftest.er1
7031 cat conftest.err >&5
7032 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7033 (exit $ac_status); } && {
7034 test -z "$ac_c_werror_flag" ||
7035 test ! -s conftest.err
7036 } && test -s conftest$ac_exeext && {
7037 test "$cross_compiling" = yes ||
7038 $as_test_x conftest$ac_exeext
7039 }; then
7040 ac_cv_lib_nsl_gethostbyname=yes
7041 else
7042 $as_echo "$as_me: failed program was:" >&5
7043 sed 's/^/| /' conftest.$ac_ext >&5
7045 ac_cv_lib_nsl_gethostbyname=no
7048 rm -rf conftest.dSYM
7049 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7050 conftest$ac_exeext conftest.$ac_ext
7051 LIBS=$ac_check_lib_save_LIBS
7053 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
7054 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
7055 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then
7056 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7059 if test $ac_cv_lib_nsl_gethostbyname = no; then
7060 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
7061 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
7062 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
7063 $as_echo_n "(cached) " >&6
7064 else
7065 ac_check_lib_save_LIBS=$LIBS
7066 LIBS="-lbsd $LIBS"
7067 cat >conftest.$ac_ext <<_ACEOF
7068 /* confdefs.h. */
7069 _ACEOF
7070 cat confdefs.h >>conftest.$ac_ext
7071 cat >>conftest.$ac_ext <<_ACEOF
7072 /* end confdefs.h. */
7074 /* Override any GCC internal prototype to avoid an error.
7075 Use char because int might match the return type of a GCC
7076 builtin and then its argument prototype would still apply. */
7077 #ifdef __cplusplus
7078 extern "C"
7079 #endif
7080 char gethostbyname ();
7082 main ()
7084 return gethostbyname ();
7086 return 0;
7088 _ACEOF
7089 rm -f conftest.$ac_objext conftest$ac_exeext
7090 if { (ac_try="$ac_link"
7091 case "(($ac_try" in
7092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7093 *) ac_try_echo=$ac_try;;
7094 esac
7095 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7096 $as_echo "$ac_try_echo") >&5
7097 (eval "$ac_link") 2>conftest.er1
7098 ac_status=$?
7099 grep -v '^ *+' conftest.er1 >conftest.err
7100 rm -f conftest.er1
7101 cat conftest.err >&5
7102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7103 (exit $ac_status); } && {
7104 test -z "$ac_c_werror_flag" ||
7105 test ! -s conftest.err
7106 } && test -s conftest$ac_exeext && {
7107 test "$cross_compiling" = yes ||
7108 $as_test_x conftest$ac_exeext
7109 }; then
7110 ac_cv_lib_bsd_gethostbyname=yes
7111 else
7112 $as_echo "$as_me: failed program was:" >&5
7113 sed 's/^/| /' conftest.$ac_ext >&5
7115 ac_cv_lib_bsd_gethostbyname=no
7118 rm -rf conftest.dSYM
7119 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7120 conftest$ac_exeext conftest.$ac_ext
7121 LIBS=$ac_check_lib_save_LIBS
7123 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
7124 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
7125 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then
7126 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7132 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7133 # socket/setsockopt and other routines are undefined under SCO ODT
7134 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7135 # on later versions), says Simon Leinen: it contains gethostby*
7136 # variants that don't use the name server (or something). -lsocket
7137 # must be given before -lnsl if both are needed. We assume that
7138 # if connect needs -lnsl, so does gethostbyname.
7139 { $as_echo "$as_me:$LINENO: checking for connect" >&5
7140 $as_echo_n "checking for connect... " >&6; }
7141 if test "${ac_cv_func_connect+set}" = set; then
7142 $as_echo_n "(cached) " >&6
7143 else
7144 cat >conftest.$ac_ext <<_ACEOF
7145 /* confdefs.h. */
7146 _ACEOF
7147 cat confdefs.h >>conftest.$ac_ext
7148 cat >>conftest.$ac_ext <<_ACEOF
7149 /* end confdefs.h. */
7150 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
7151 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7152 #define connect innocuous_connect
7154 /* System header to define __stub macros and hopefully few prototypes,
7155 which can conflict with char connect (); below.
7156 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7157 <limits.h> exists even on freestanding compilers. */
7159 #ifdef __STDC__
7160 # include <limits.h>
7161 #else
7162 # include <assert.h>
7163 #endif
7165 #undef connect
7167 /* Override any GCC internal prototype to avoid an error.
7168 Use char because int might match the return type of a GCC
7169 builtin and then its argument prototype would still apply. */
7170 #ifdef __cplusplus
7171 extern "C"
7172 #endif
7173 char connect ();
7174 /* The GNU C library defines this for functions which it implements
7175 to always fail with ENOSYS. Some functions are actually named
7176 something starting with __ and the normal name is an alias. */
7177 #if defined __stub_connect || defined __stub___connect
7178 choke me
7179 #endif
7182 main ()
7184 return connect ();
7186 return 0;
7188 _ACEOF
7189 rm -f conftest.$ac_objext conftest$ac_exeext
7190 if { (ac_try="$ac_link"
7191 case "(($ac_try" in
7192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7193 *) ac_try_echo=$ac_try;;
7194 esac
7195 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7196 $as_echo "$ac_try_echo") >&5
7197 (eval "$ac_link") 2>conftest.er1
7198 ac_status=$?
7199 grep -v '^ *+' conftest.er1 >conftest.err
7200 rm -f conftest.er1
7201 cat conftest.err >&5
7202 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7203 (exit $ac_status); } && {
7204 test -z "$ac_c_werror_flag" ||
7205 test ! -s conftest.err
7206 } && test -s conftest$ac_exeext && {
7207 test "$cross_compiling" = yes ||
7208 $as_test_x conftest$ac_exeext
7209 }; then
7210 ac_cv_func_connect=yes
7211 else
7212 $as_echo "$as_me: failed program was:" >&5
7213 sed 's/^/| /' conftest.$ac_ext >&5
7215 ac_cv_func_connect=no
7218 rm -rf conftest.dSYM
7219 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7220 conftest$ac_exeext conftest.$ac_ext
7222 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
7223 $as_echo "$ac_cv_func_connect" >&6; }
7225 if test $ac_cv_func_connect = no; then
7226 { $as_echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
7227 $as_echo_n "checking for connect in -lsocket... " >&6; }
7228 if test "${ac_cv_lib_socket_connect+set}" = set; then
7229 $as_echo_n "(cached) " >&6
7230 else
7231 ac_check_lib_save_LIBS=$LIBS
7232 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7233 cat >conftest.$ac_ext <<_ACEOF
7234 /* confdefs.h. */
7235 _ACEOF
7236 cat confdefs.h >>conftest.$ac_ext
7237 cat >>conftest.$ac_ext <<_ACEOF
7238 /* end confdefs.h. */
7240 /* Override any GCC internal prototype to avoid an error.
7241 Use char because int might match the return type of a GCC
7242 builtin and then its argument prototype would still apply. */
7243 #ifdef __cplusplus
7244 extern "C"
7245 #endif
7246 char connect ();
7248 main ()
7250 return connect ();
7252 return 0;
7254 _ACEOF
7255 rm -f conftest.$ac_objext conftest$ac_exeext
7256 if { (ac_try="$ac_link"
7257 case "(($ac_try" in
7258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7259 *) ac_try_echo=$ac_try;;
7260 esac
7261 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7262 $as_echo "$ac_try_echo") >&5
7263 (eval "$ac_link") 2>conftest.er1
7264 ac_status=$?
7265 grep -v '^ *+' conftest.er1 >conftest.err
7266 rm -f conftest.er1
7267 cat conftest.err >&5
7268 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7269 (exit $ac_status); } && {
7270 test -z "$ac_c_werror_flag" ||
7271 test ! -s conftest.err
7272 } && test -s conftest$ac_exeext && {
7273 test "$cross_compiling" = yes ||
7274 $as_test_x conftest$ac_exeext
7275 }; then
7276 ac_cv_lib_socket_connect=yes
7277 else
7278 $as_echo "$as_me: failed program was:" >&5
7279 sed 's/^/| /' conftest.$ac_ext >&5
7281 ac_cv_lib_socket_connect=no
7284 rm -rf conftest.dSYM
7285 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7286 conftest$ac_exeext conftest.$ac_ext
7287 LIBS=$ac_check_lib_save_LIBS
7289 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
7290 $as_echo "$ac_cv_lib_socket_connect" >&6; }
7291 if test "x$ac_cv_lib_socket_connect" = x""yes; then
7292 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7297 # Guillermo Gomez says -lposix is necessary on A/UX.
7298 { $as_echo "$as_me:$LINENO: checking for remove" >&5
7299 $as_echo_n "checking for remove... " >&6; }
7300 if test "${ac_cv_func_remove+set}" = set; then
7301 $as_echo_n "(cached) " >&6
7302 else
7303 cat >conftest.$ac_ext <<_ACEOF
7304 /* confdefs.h. */
7305 _ACEOF
7306 cat confdefs.h >>conftest.$ac_ext
7307 cat >>conftest.$ac_ext <<_ACEOF
7308 /* end confdefs.h. */
7309 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
7310 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7311 #define remove innocuous_remove
7313 /* System header to define __stub macros and hopefully few prototypes,
7314 which can conflict with char remove (); below.
7315 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7316 <limits.h> exists even on freestanding compilers. */
7318 #ifdef __STDC__
7319 # include <limits.h>
7320 #else
7321 # include <assert.h>
7322 #endif
7324 #undef remove
7326 /* Override any GCC internal prototype to avoid an error.
7327 Use char because int might match the return type of a GCC
7328 builtin and then its argument prototype would still apply. */
7329 #ifdef __cplusplus
7330 extern "C"
7331 #endif
7332 char remove ();
7333 /* The GNU C library defines this for functions which it implements
7334 to always fail with ENOSYS. Some functions are actually named
7335 something starting with __ and the normal name is an alias. */
7336 #if defined __stub_remove || defined __stub___remove
7337 choke me
7338 #endif
7341 main ()
7343 return remove ();
7345 return 0;
7347 _ACEOF
7348 rm -f conftest.$ac_objext conftest$ac_exeext
7349 if { (ac_try="$ac_link"
7350 case "(($ac_try" in
7351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7352 *) ac_try_echo=$ac_try;;
7353 esac
7354 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7355 $as_echo "$ac_try_echo") >&5
7356 (eval "$ac_link") 2>conftest.er1
7357 ac_status=$?
7358 grep -v '^ *+' conftest.er1 >conftest.err
7359 rm -f conftest.er1
7360 cat conftest.err >&5
7361 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7362 (exit $ac_status); } && {
7363 test -z "$ac_c_werror_flag" ||
7364 test ! -s conftest.err
7365 } && test -s conftest$ac_exeext && {
7366 test "$cross_compiling" = yes ||
7367 $as_test_x conftest$ac_exeext
7368 }; then
7369 ac_cv_func_remove=yes
7370 else
7371 $as_echo "$as_me: failed program was:" >&5
7372 sed 's/^/| /' conftest.$ac_ext >&5
7374 ac_cv_func_remove=no
7377 rm -rf conftest.dSYM
7378 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7379 conftest$ac_exeext conftest.$ac_ext
7381 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
7382 $as_echo "$ac_cv_func_remove" >&6; }
7384 if test $ac_cv_func_remove = no; then
7385 { $as_echo "$as_me:$LINENO: checking for remove in -lposix" >&5
7386 $as_echo_n "checking for remove in -lposix... " >&6; }
7387 if test "${ac_cv_lib_posix_remove+set}" = set; then
7388 $as_echo_n "(cached) " >&6
7389 else
7390 ac_check_lib_save_LIBS=$LIBS
7391 LIBS="-lposix $LIBS"
7392 cat >conftest.$ac_ext <<_ACEOF
7393 /* confdefs.h. */
7394 _ACEOF
7395 cat confdefs.h >>conftest.$ac_ext
7396 cat >>conftest.$ac_ext <<_ACEOF
7397 /* end confdefs.h. */
7399 /* Override any GCC internal prototype to avoid an error.
7400 Use char because int might match the return type of a GCC
7401 builtin and then its argument prototype would still apply. */
7402 #ifdef __cplusplus
7403 extern "C"
7404 #endif
7405 char remove ();
7407 main ()
7409 return remove ();
7411 return 0;
7413 _ACEOF
7414 rm -f conftest.$ac_objext conftest$ac_exeext
7415 if { (ac_try="$ac_link"
7416 case "(($ac_try" in
7417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7418 *) ac_try_echo=$ac_try;;
7419 esac
7420 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7421 $as_echo "$ac_try_echo") >&5
7422 (eval "$ac_link") 2>conftest.er1
7423 ac_status=$?
7424 grep -v '^ *+' conftest.er1 >conftest.err
7425 rm -f conftest.er1
7426 cat conftest.err >&5
7427 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7428 (exit $ac_status); } && {
7429 test -z "$ac_c_werror_flag" ||
7430 test ! -s conftest.err
7431 } && test -s conftest$ac_exeext && {
7432 test "$cross_compiling" = yes ||
7433 $as_test_x conftest$ac_exeext
7434 }; then
7435 ac_cv_lib_posix_remove=yes
7436 else
7437 $as_echo "$as_me: failed program was:" >&5
7438 sed 's/^/| /' conftest.$ac_ext >&5
7440 ac_cv_lib_posix_remove=no
7443 rm -rf conftest.dSYM
7444 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7445 conftest$ac_exeext conftest.$ac_ext
7446 LIBS=$ac_check_lib_save_LIBS
7448 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
7449 $as_echo "$ac_cv_lib_posix_remove" >&6; }
7450 if test "x$ac_cv_lib_posix_remove" = x""yes; then
7451 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7456 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7457 { $as_echo "$as_me:$LINENO: checking for shmat" >&5
7458 $as_echo_n "checking for shmat... " >&6; }
7459 if test "${ac_cv_func_shmat+set}" = set; then
7460 $as_echo_n "(cached) " >&6
7461 else
7462 cat >conftest.$ac_ext <<_ACEOF
7463 /* confdefs.h. */
7464 _ACEOF
7465 cat confdefs.h >>conftest.$ac_ext
7466 cat >>conftest.$ac_ext <<_ACEOF
7467 /* end confdefs.h. */
7468 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
7469 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7470 #define shmat innocuous_shmat
7472 /* System header to define __stub macros and hopefully few prototypes,
7473 which can conflict with char shmat (); below.
7474 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7475 <limits.h> exists even on freestanding compilers. */
7477 #ifdef __STDC__
7478 # include <limits.h>
7479 #else
7480 # include <assert.h>
7481 #endif
7483 #undef shmat
7485 /* Override any GCC internal prototype to avoid an error.
7486 Use char because int might match the return type of a GCC
7487 builtin and then its argument prototype would still apply. */
7488 #ifdef __cplusplus
7489 extern "C"
7490 #endif
7491 char shmat ();
7492 /* The GNU C library defines this for functions which it implements
7493 to always fail with ENOSYS. Some functions are actually named
7494 something starting with __ and the normal name is an alias. */
7495 #if defined __stub_shmat || defined __stub___shmat
7496 choke me
7497 #endif
7500 main ()
7502 return shmat ();
7504 return 0;
7506 _ACEOF
7507 rm -f conftest.$ac_objext conftest$ac_exeext
7508 if { (ac_try="$ac_link"
7509 case "(($ac_try" in
7510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7511 *) ac_try_echo=$ac_try;;
7512 esac
7513 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7514 $as_echo "$ac_try_echo") >&5
7515 (eval "$ac_link") 2>conftest.er1
7516 ac_status=$?
7517 grep -v '^ *+' conftest.er1 >conftest.err
7518 rm -f conftest.er1
7519 cat conftest.err >&5
7520 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7521 (exit $ac_status); } && {
7522 test -z "$ac_c_werror_flag" ||
7523 test ! -s conftest.err
7524 } && test -s conftest$ac_exeext && {
7525 test "$cross_compiling" = yes ||
7526 $as_test_x conftest$ac_exeext
7527 }; then
7528 ac_cv_func_shmat=yes
7529 else
7530 $as_echo "$as_me: failed program was:" >&5
7531 sed 's/^/| /' conftest.$ac_ext >&5
7533 ac_cv_func_shmat=no
7536 rm -rf conftest.dSYM
7537 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7538 conftest$ac_exeext conftest.$ac_ext
7540 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
7541 $as_echo "$ac_cv_func_shmat" >&6; }
7543 if test $ac_cv_func_shmat = no; then
7544 { $as_echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
7545 $as_echo_n "checking for shmat in -lipc... " >&6; }
7546 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
7547 $as_echo_n "(cached) " >&6
7548 else
7549 ac_check_lib_save_LIBS=$LIBS
7550 LIBS="-lipc $LIBS"
7551 cat >conftest.$ac_ext <<_ACEOF
7552 /* confdefs.h. */
7553 _ACEOF
7554 cat confdefs.h >>conftest.$ac_ext
7555 cat >>conftest.$ac_ext <<_ACEOF
7556 /* end confdefs.h. */
7558 /* Override any GCC internal prototype to avoid an error.
7559 Use char because int might match the return type of a GCC
7560 builtin and then its argument prototype would still apply. */
7561 #ifdef __cplusplus
7562 extern "C"
7563 #endif
7564 char shmat ();
7566 main ()
7568 return shmat ();
7570 return 0;
7572 _ACEOF
7573 rm -f conftest.$ac_objext conftest$ac_exeext
7574 if { (ac_try="$ac_link"
7575 case "(($ac_try" in
7576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7577 *) ac_try_echo=$ac_try;;
7578 esac
7579 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7580 $as_echo "$ac_try_echo") >&5
7581 (eval "$ac_link") 2>conftest.er1
7582 ac_status=$?
7583 grep -v '^ *+' conftest.er1 >conftest.err
7584 rm -f conftest.er1
7585 cat conftest.err >&5
7586 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7587 (exit $ac_status); } && {
7588 test -z "$ac_c_werror_flag" ||
7589 test ! -s conftest.err
7590 } && test -s conftest$ac_exeext && {
7591 test "$cross_compiling" = yes ||
7592 $as_test_x conftest$ac_exeext
7593 }; then
7594 ac_cv_lib_ipc_shmat=yes
7595 else
7596 $as_echo "$as_me: failed program was:" >&5
7597 sed 's/^/| /' conftest.$ac_ext >&5
7599 ac_cv_lib_ipc_shmat=no
7602 rm -rf conftest.dSYM
7603 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7604 conftest$ac_exeext conftest.$ac_ext
7605 LIBS=$ac_check_lib_save_LIBS
7607 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
7608 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
7609 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then
7610 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7616 # Check for libraries that X11R6 Xt/Xaw programs need.
7617 ac_save_LDFLAGS=$LDFLAGS
7618 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7619 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7620 # check for ICE first), but we must link in the order -lSM -lICE or
7621 # we get undefined symbols. So assume we have SM if we have ICE.
7622 # These have to be linked with before -lX11, unlike the other
7623 # libraries we check for below, so use a different variable.
7624 # John Interrante, Karl Berry
7625 { $as_echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
7626 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
7627 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
7628 $as_echo_n "(cached) " >&6
7629 else
7630 ac_check_lib_save_LIBS=$LIBS
7631 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7632 cat >conftest.$ac_ext <<_ACEOF
7633 /* confdefs.h. */
7634 _ACEOF
7635 cat confdefs.h >>conftest.$ac_ext
7636 cat >>conftest.$ac_ext <<_ACEOF
7637 /* end confdefs.h. */
7639 /* Override any GCC internal prototype to avoid an error.
7640 Use char because int might match the return type of a GCC
7641 builtin and then its argument prototype would still apply. */
7642 #ifdef __cplusplus
7643 extern "C"
7644 #endif
7645 char IceConnectionNumber ();
7647 main ()
7649 return IceConnectionNumber ();
7651 return 0;
7653 _ACEOF
7654 rm -f conftest.$ac_objext conftest$ac_exeext
7655 if { (ac_try="$ac_link"
7656 case "(($ac_try" in
7657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7658 *) ac_try_echo=$ac_try;;
7659 esac
7660 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7661 $as_echo "$ac_try_echo") >&5
7662 (eval "$ac_link") 2>conftest.er1
7663 ac_status=$?
7664 grep -v '^ *+' conftest.er1 >conftest.err
7665 rm -f conftest.er1
7666 cat conftest.err >&5
7667 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7668 (exit $ac_status); } && {
7669 test -z "$ac_c_werror_flag" ||
7670 test ! -s conftest.err
7671 } && test -s conftest$ac_exeext && {
7672 test "$cross_compiling" = yes ||
7673 $as_test_x conftest$ac_exeext
7674 }; then
7675 ac_cv_lib_ICE_IceConnectionNumber=yes
7676 else
7677 $as_echo "$as_me: failed program was:" >&5
7678 sed 's/^/| /' conftest.$ac_ext >&5
7680 ac_cv_lib_ICE_IceConnectionNumber=no
7683 rm -rf conftest.dSYM
7684 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7685 conftest$ac_exeext conftest.$ac_ext
7686 LIBS=$ac_check_lib_save_LIBS
7688 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7689 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
7690 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then
7691 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7694 LDFLAGS=$ac_save_LDFLAGS
7699 if test "$OS390Unix" = "yes"; then
7700 CFLAGS="$CFLAGS -W c,dll"
7701 LDFLAGS="$LDFLAGS -W l,dll"
7702 X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE -lXmu"
7706 if test -d "$x_includes" && test ! -d "$x_libraries"; then
7707 x_libraries=`echo "$x_includes" | sed s/include/lib/`
7708 { $as_echo "$as_me:$LINENO: result: Corrected X libraries to $x_libraries" >&5
7709 $as_echo "Corrected X libraries to $x_libraries" >&6; }
7710 X_LIBS="$X_LIBS -L$x_libraries"
7711 if test "`(uname) 2>/dev/null`" = SunOS &&
7712 uname -r | grep '^5' >/dev/null; then
7713 X_LIBS="$X_LIBS -R $x_libraries"
7717 if test -d "$x_libraries" && test ! -d "$x_includes"; then
7718 x_includes=`echo "$x_libraries" | sed s/lib/include/`
7719 { $as_echo "$as_me:$LINENO: result: Corrected X includes to $x_includes" >&5
7720 $as_echo "Corrected X includes to $x_includes" >&6; }
7721 X_CFLAGS="$X_CFLAGS -I$x_includes"
7724 X_CFLAGS="`echo $X_CFLAGS\ | sed 's%-I/usr/include %%'`"
7725 X_LIBS="`echo $X_LIBS\ | sed 's%-L/usr/lib %%'`"
7726 X_LIBS="`echo $X_LIBS\ | sed -e 's%-R/usr/lib %%' -e 's%-R /usr/lib %%'`"
7729 { $as_echo "$as_me:$LINENO: checking if X11 header files can be found" >&5
7730 $as_echo_n "checking if X11 header files can be found... " >&6; }
7731 cflags_save=$CFLAGS
7732 CFLAGS="$CFLAGS $X_CFLAGS"
7733 cat >conftest.$ac_ext <<_ACEOF
7734 /* confdefs.h. */
7735 _ACEOF
7736 cat confdefs.h >>conftest.$ac_ext
7737 cat >>conftest.$ac_ext <<_ACEOF
7738 /* end confdefs.h. */
7739 #include <X11/Xlib.h>
7740 #include <X11/Intrinsic.h>
7742 main ()
7746 return 0;
7748 _ACEOF
7749 rm -f conftest.$ac_objext
7750 if { (ac_try="$ac_compile"
7751 case "(($ac_try" in
7752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7753 *) ac_try_echo=$ac_try;;
7754 esac
7755 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7756 $as_echo "$ac_try_echo") >&5
7757 (eval "$ac_compile") 2>conftest.er1
7758 ac_status=$?
7759 grep -v '^ *+' conftest.er1 >conftest.err
7760 rm -f conftest.er1
7761 cat conftest.err >&5
7762 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7763 (exit $ac_status); } && {
7764 test -z "$ac_c_werror_flag" ||
7765 test ! -s conftest.err
7766 } && test -s conftest.$ac_objext; then
7767 { $as_echo "$as_me:$LINENO: result: yes" >&5
7768 $as_echo "yes" >&6; }
7769 else
7770 $as_echo "$as_me: failed program was:" >&5
7771 sed 's/^/| /' conftest.$ac_ext >&5
7773 { $as_echo "$as_me:$LINENO: result: no" >&5
7774 $as_echo "no" >&6; }; no_x=yes
7777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7778 CFLAGS=$cflags_save
7780 if test "${no_x-no}" = yes; then
7781 with_x=no
7782 else
7783 cat >>confdefs.h <<\_ACEOF
7784 #define HAVE_X11 1
7785 _ACEOF
7787 X_LIB="-lXt -lX11";
7790 ac_save_LDFLAGS="$LDFLAGS"
7791 LDFLAGS="-L$x_libraries $LDFLAGS"
7793 { $as_echo "$as_me:$LINENO: checking for _XdmcpAuthDoIt in -lXdmcp" >&5
7794 $as_echo_n "checking for _XdmcpAuthDoIt in -lXdmcp... " >&6; }
7795 if test "${ac_cv_lib_Xdmcp__XdmcpAuthDoIt+set}" = set; then
7796 $as_echo_n "(cached) " >&6
7797 else
7798 ac_check_lib_save_LIBS=$LIBS
7799 LIBS="-lXdmcp -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS -lXdmcp $LIBS"
7800 cat >conftest.$ac_ext <<_ACEOF
7801 /* confdefs.h. */
7802 _ACEOF
7803 cat confdefs.h >>conftest.$ac_ext
7804 cat >>conftest.$ac_ext <<_ACEOF
7805 /* end confdefs.h. */
7807 /* Override any GCC internal prototype to avoid an error.
7808 Use char because int might match the return type of a GCC
7809 builtin and then its argument prototype would still apply. */
7810 #ifdef __cplusplus
7811 extern "C"
7812 #endif
7813 char _XdmcpAuthDoIt ();
7815 main ()
7817 return _XdmcpAuthDoIt ();
7819 return 0;
7821 _ACEOF
7822 rm -f conftest.$ac_objext conftest$ac_exeext
7823 if { (ac_try="$ac_link"
7824 case "(($ac_try" in
7825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7826 *) ac_try_echo=$ac_try;;
7827 esac
7828 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7829 $as_echo "$ac_try_echo") >&5
7830 (eval "$ac_link") 2>conftest.er1
7831 ac_status=$?
7832 grep -v '^ *+' conftest.er1 >conftest.err
7833 rm -f conftest.er1
7834 cat conftest.err >&5
7835 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7836 (exit $ac_status); } && {
7837 test -z "$ac_c_werror_flag" ||
7838 test ! -s conftest.err
7839 } && test -s conftest$ac_exeext && {
7840 test "$cross_compiling" = yes ||
7841 $as_test_x conftest$ac_exeext
7842 }; then
7843 ac_cv_lib_Xdmcp__XdmcpAuthDoIt=yes
7844 else
7845 $as_echo "$as_me: failed program was:" >&5
7846 sed 's/^/| /' conftest.$ac_ext >&5
7848 ac_cv_lib_Xdmcp__XdmcpAuthDoIt=no
7851 rm -rf conftest.dSYM
7852 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7853 conftest$ac_exeext conftest.$ac_ext
7854 LIBS=$ac_check_lib_save_LIBS
7856 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&5
7857 $as_echo "$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&6; }
7858 if test "x$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" = x""yes; then
7859 X_EXTRA_LIBS="$X_EXTRA_LIBS -lXdmcp"
7863 { $as_echo "$as_me:$LINENO: checking for IceOpenConnection in -lICE" >&5
7864 $as_echo_n "checking for IceOpenConnection in -lICE... " >&6; }
7865 if test "${ac_cv_lib_ICE_IceOpenConnection+set}" = set; then
7866 $as_echo_n "(cached) " >&6
7867 else
7868 ac_check_lib_save_LIBS=$LIBS
7869 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7870 cat >conftest.$ac_ext <<_ACEOF
7871 /* confdefs.h. */
7872 _ACEOF
7873 cat confdefs.h >>conftest.$ac_ext
7874 cat >>conftest.$ac_ext <<_ACEOF
7875 /* end confdefs.h. */
7877 /* Override any GCC internal prototype to avoid an error.
7878 Use char because int might match the return type of a GCC
7879 builtin and then its argument prototype would still apply. */
7880 #ifdef __cplusplus
7881 extern "C"
7882 #endif
7883 char IceOpenConnection ();
7885 main ()
7887 return IceOpenConnection ();
7889 return 0;
7891 _ACEOF
7892 rm -f conftest.$ac_objext conftest$ac_exeext
7893 if { (ac_try="$ac_link"
7894 case "(($ac_try" in
7895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7896 *) ac_try_echo=$ac_try;;
7897 esac
7898 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7899 $as_echo "$ac_try_echo") >&5
7900 (eval "$ac_link") 2>conftest.er1
7901 ac_status=$?
7902 grep -v '^ *+' conftest.er1 >conftest.err
7903 rm -f conftest.er1
7904 cat conftest.err >&5
7905 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7906 (exit $ac_status); } && {
7907 test -z "$ac_c_werror_flag" ||
7908 test ! -s conftest.err
7909 } && test -s conftest$ac_exeext && {
7910 test "$cross_compiling" = yes ||
7911 $as_test_x conftest$ac_exeext
7912 }; then
7913 ac_cv_lib_ICE_IceOpenConnection=yes
7914 else
7915 $as_echo "$as_me: failed program was:" >&5
7916 sed 's/^/| /' conftest.$ac_ext >&5
7918 ac_cv_lib_ICE_IceOpenConnection=no
7921 rm -rf conftest.dSYM
7922 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7923 conftest$ac_exeext conftest.$ac_ext
7924 LIBS=$ac_check_lib_save_LIBS
7926 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceOpenConnection" >&5
7927 $as_echo "$ac_cv_lib_ICE_IceOpenConnection" >&6; }
7928 if test "x$ac_cv_lib_ICE_IceOpenConnection" = x""yes; then
7929 X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE"
7933 LDFLAGS="$X_LIBS $ac_save_LDFLAGS"
7934 { $as_echo "$as_me:$LINENO: checking for XpmCreatePixmapFromData in -lXpm" >&5
7935 $as_echo_n "checking for XpmCreatePixmapFromData in -lXpm... " >&6; }
7936 if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then
7937 $as_echo_n "(cached) " >&6
7938 else
7939 ac_check_lib_save_LIBS=$LIBS
7940 LIBS="-lXpm -lXt $X_PRE_LIBS -lXpm -lX11 $X_EXTRA_LIBS $LIBS"
7941 cat >conftest.$ac_ext <<_ACEOF
7942 /* confdefs.h. */
7943 _ACEOF
7944 cat confdefs.h >>conftest.$ac_ext
7945 cat >>conftest.$ac_ext <<_ACEOF
7946 /* end confdefs.h. */
7948 /* Override any GCC internal prototype to avoid an error.
7949 Use char because int might match the return type of a GCC
7950 builtin and then its argument prototype would still apply. */
7951 #ifdef __cplusplus
7952 extern "C"
7953 #endif
7954 char XpmCreatePixmapFromData ();
7956 main ()
7958 return XpmCreatePixmapFromData ();
7960 return 0;
7962 _ACEOF
7963 rm -f conftest.$ac_objext conftest$ac_exeext
7964 if { (ac_try="$ac_link"
7965 case "(($ac_try" in
7966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7967 *) ac_try_echo=$ac_try;;
7968 esac
7969 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7970 $as_echo "$ac_try_echo") >&5
7971 (eval "$ac_link") 2>conftest.er1
7972 ac_status=$?
7973 grep -v '^ *+' conftest.er1 >conftest.err
7974 rm -f conftest.er1
7975 cat conftest.err >&5
7976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7977 (exit $ac_status); } && {
7978 test -z "$ac_c_werror_flag" ||
7979 test ! -s conftest.err
7980 } && test -s conftest$ac_exeext && {
7981 test "$cross_compiling" = yes ||
7982 $as_test_x conftest$ac_exeext
7983 }; then
7984 ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
7985 else
7986 $as_echo "$as_me: failed program was:" >&5
7987 sed 's/^/| /' conftest.$ac_ext >&5
7989 ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
7992 rm -rf conftest.dSYM
7993 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7994 conftest$ac_exeext conftest.$ac_ext
7995 LIBS=$ac_check_lib_save_LIBS
7997 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
7998 $as_echo "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6; }
7999 if test "x$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = x""yes; then
8000 X_PRE_LIBS="$X_PRE_LIBS -lXpm"
8004 { $as_echo "$as_me:$LINENO: checking if X11 header files implicitly declare return values" >&5
8005 $as_echo_n "checking if X11 header files implicitly declare return values... " >&6; }
8006 cflags_save=$CFLAGS
8007 CFLAGS="$CFLAGS $X_CFLAGS -Werror"
8008 cat >conftest.$ac_ext <<_ACEOF
8009 /* confdefs.h. */
8010 _ACEOF
8011 cat confdefs.h >>conftest.$ac_ext
8012 cat >>conftest.$ac_ext <<_ACEOF
8013 /* end confdefs.h. */
8014 #include <X11/Xlib.h>
8016 main ()
8020 return 0;
8022 _ACEOF
8023 rm -f conftest.$ac_objext
8024 if { (ac_try="$ac_compile"
8025 case "(($ac_try" in
8026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8027 *) ac_try_echo=$ac_try;;
8028 esac
8029 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8030 $as_echo "$ac_try_echo") >&5
8031 (eval "$ac_compile") 2>conftest.er1
8032 ac_status=$?
8033 grep -v '^ *+' conftest.er1 >conftest.err
8034 rm -f conftest.er1
8035 cat conftest.err >&5
8036 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8037 (exit $ac_status); } && {
8038 test -z "$ac_c_werror_flag" ||
8039 test ! -s conftest.err
8040 } && test -s conftest.$ac_objext; then
8041 { $as_echo "$as_me:$LINENO: result: no" >&5
8042 $as_echo "no" >&6; }
8043 else
8044 $as_echo "$as_me: failed program was:" >&5
8045 sed 's/^/| /' conftest.$ac_ext >&5
8047 CFLAGS="$CFLAGS -Wno-implicit-int"
8048 cat >conftest.$ac_ext <<_ACEOF
8049 /* confdefs.h. */
8050 _ACEOF
8051 cat confdefs.h >>conftest.$ac_ext
8052 cat >>conftest.$ac_ext <<_ACEOF
8053 /* end confdefs.h. */
8054 #include <X11/Xlib.h>
8056 main ()
8060 return 0;
8062 _ACEOF
8063 rm -f conftest.$ac_objext
8064 if { (ac_try="$ac_compile"
8065 case "(($ac_try" in
8066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8067 *) ac_try_echo=$ac_try;;
8068 esac
8069 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8070 $as_echo "$ac_try_echo") >&5
8071 (eval "$ac_compile") 2>conftest.er1
8072 ac_status=$?
8073 grep -v '^ *+' conftest.er1 >conftest.err
8074 rm -f conftest.er1
8075 cat conftest.err >&5
8076 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8077 (exit $ac_status); } && {
8078 test -z "$ac_c_werror_flag" ||
8079 test ! -s conftest.err
8080 } && test -s conftest.$ac_objext; then
8081 { $as_echo "$as_me:$LINENO: result: yes" >&5
8082 $as_echo "yes" >&6; }; cflags_save="$cflags_save -Wno-implicit-int"
8083 else
8084 $as_echo "$as_me: failed program was:" >&5
8085 sed 's/^/| /' conftest.$ac_ext >&5
8087 { $as_echo "$as_me:$LINENO: result: test failed" >&5
8088 $as_echo "test failed" >&6; }
8092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8097 CFLAGS=$cflags_save
8099 LDFLAGS="$ac_save_LDFLAGS"
8101 { $as_echo "$as_me:$LINENO: checking size of wchar_t is 2 bytes" >&5
8102 $as_echo_n "checking size of wchar_t is 2 bytes... " >&6; }
8103 if test "${ac_cv_small_wchar_t+set}" = set; then
8104 $as_echo_n "(cached) " >&6
8105 else
8106 if test "$cross_compiling" = yes; then
8107 { { $as_echo "$as_me:$LINENO: error: failed to compile test program" >&5
8108 $as_echo "$as_me: error: failed to compile test program" >&2;}
8109 { (exit 1); exit 1; }; }
8110 else
8111 cat >conftest.$ac_ext <<_ACEOF
8112 /* confdefs.h. */
8113 _ACEOF
8114 cat confdefs.h >>conftest.$ac_ext
8115 cat >>conftest.$ac_ext <<_ACEOF
8116 /* end confdefs.h. */
8118 #include <X11/Xlib.h>
8119 #if STDC_HEADERS
8120 # include <stdlib.h>
8121 # include <stddef.h>
8122 #endif
8123 main()
8125 if (sizeof(wchar_t) <= 2)
8126 exit(1);
8127 exit(0);
8129 _ACEOF
8130 rm -f conftest$ac_exeext
8131 if { (ac_try="$ac_link"
8132 case "(($ac_try" in
8133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8134 *) ac_try_echo=$ac_try;;
8135 esac
8136 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8137 $as_echo "$ac_try_echo") >&5
8138 (eval "$ac_link") 2>&5
8139 ac_status=$?
8140 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8141 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8142 { (case "(($ac_try" in
8143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8144 *) ac_try_echo=$ac_try;;
8145 esac
8146 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8147 $as_echo "$ac_try_echo") >&5
8148 (eval "$ac_try") 2>&5
8149 ac_status=$?
8150 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8151 (exit $ac_status); }; }; then
8152 ac_cv_small_wchar_t="no"
8153 else
8154 $as_echo "$as_me: program exited with status $ac_status" >&5
8155 $as_echo "$as_me: failed program was:" >&5
8156 sed 's/^/| /' conftest.$ac_ext >&5
8158 ( exit $ac_status )
8159 ac_cv_small_wchar_t="yes"
8161 rm -rf conftest.dSYM
8162 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8168 { $as_echo "$as_me:$LINENO: result: $ac_cv_small_wchar_t" >&5
8169 $as_echo "$ac_cv_small_wchar_t" >&6; }
8170 if test "x$ac_cv_small_wchar_t" = "xyes" ; then
8171 cat >>confdefs.h <<\_ACEOF
8172 #define SMALL_WCHAR_T 1
8173 _ACEOF
8180 test "x$with_x" = xno -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && enable_gui=no
8182 { $as_echo "$as_me:$LINENO: checking --enable-gui argument" >&5
8183 $as_echo_n "checking --enable-gui argument... " >&6; }
8184 # Check whether --enable-gui was given.
8185 if test "${enable_gui+set}" = set; then
8186 enableval=$enable_gui;
8187 else
8188 enable_gui="auto"
8192 enable_gui_canon=`echo "_$enable_gui" | \
8193 sed 's/[ _+-]//g;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
8195 SKIP_GTK=YES
8196 SKIP_GTK2=YES
8197 SKIP_GNOME=YES
8198 SKIP_MOTIF=YES
8199 SKIP_ATHENA=YES
8200 SKIP_NEXTAW=YES
8201 SKIP_PHOTON=YES
8202 SKIP_CARBON=YES
8203 GUITYPE=NONE
8205 if test "x$QNX" = "xyes" -a "x$with_x" = "xno" ; then
8206 SKIP_PHOTON=
8207 case "$enable_gui_canon" in
8208 no) { $as_echo "$as_me:$LINENO: result: no GUI support" >&5
8209 $as_echo "no GUI support" >&6; }
8210 SKIP_PHOTON=YES ;;
8211 yes|"") { $as_echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5
8212 $as_echo "yes - automatic GUI support" >&6; } ;;
8213 auto) { $as_echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5
8214 $as_echo "auto - automatic GUI support" >&6; } ;;
8215 photon) { $as_echo "$as_me:$LINENO: result: Photon GUI support" >&5
8216 $as_echo "Photon GUI support" >&6; } ;;
8217 *) { $as_echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
8218 $as_echo "Sorry, $enable_gui GUI is not supported" >&6; }
8219 SKIP_PHOTON=YES ;;
8220 esac
8222 elif test "x$MACOSX" = "xyes" -a "x$with_x" = "xno" ; then
8223 SKIP_CARBON=
8224 case "$enable_gui_canon" in
8225 no) { $as_echo "$as_me:$LINENO: result: no GUI support" >&5
8226 $as_echo "no GUI support" >&6; }
8227 SKIP_CARBON=YES ;;
8228 yes|"") { $as_echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5
8229 $as_echo "yes - automatic GUI support" >&6; } ;;
8230 auto) { $as_echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5
8231 $as_echo "auto - automatic GUI support" >&6; } ;;
8232 carbon) { $as_echo "$as_me:$LINENO: result: Carbon GUI support" >&5
8233 $as_echo "Carbon GUI support" >&6; } ;;
8234 *) { $as_echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
8235 $as_echo "Sorry, $enable_gui GUI is not supported" >&6; }
8236 SKIP_CARBON=YES ;;
8237 esac
8239 else
8241 case "$enable_gui_canon" in
8242 no|none) { $as_echo "$as_me:$LINENO: result: no GUI support" >&5
8243 $as_echo "no GUI support" >&6; } ;;
8244 yes|""|auto) { $as_echo "$as_me:$LINENO: result: yes/auto - automatic GUI support" >&5
8245 $as_echo "yes/auto - automatic GUI support" >&6; }
8246 SKIP_GTK=
8247 SKIP_GTK2=
8248 SKIP_GNOME=
8249 SKIP_MOTIF=
8250 SKIP_ATHENA=
8251 SKIP_NEXTAW=
8252 SKIP_CARBON=;;
8253 gtk) { $as_echo "$as_me:$LINENO: result: GTK+ 1.x GUI support" >&5
8254 $as_echo "GTK+ 1.x GUI support" >&6; }
8255 SKIP_GTK=;;
8256 gtk2) { $as_echo "$as_me:$LINENO: result: GTK+ 2.x GUI support" >&5
8257 $as_echo "GTK+ 2.x GUI support" >&6; }
8258 SKIP_GTK=
8259 SKIP_GTK2=;;
8260 gnome) { $as_echo "$as_me:$LINENO: result: GNOME 1.x GUI support" >&5
8261 $as_echo "GNOME 1.x GUI support" >&6; }
8262 SKIP_GNOME=
8263 SKIP_GTK=;;
8264 gnome2) { $as_echo "$as_me:$LINENO: result: GNOME 2.x GUI support" >&5
8265 $as_echo "GNOME 2.x GUI support" >&6; }
8266 SKIP_GNOME=
8267 SKIP_GTK=
8268 SKIP_GTK2=;;
8269 motif) { $as_echo "$as_me:$LINENO: result: Motif GUI support" >&5
8270 $as_echo "Motif GUI support" >&6; }
8271 SKIP_MOTIF=;;
8272 athena) { $as_echo "$as_me:$LINENO: result: Athena GUI support" >&5
8273 $as_echo "Athena GUI support" >&6; }
8274 SKIP_ATHENA=;;
8275 nextaw) { $as_echo "$as_me:$LINENO: result: neXtaw GUI support" >&5
8276 $as_echo "neXtaw GUI support" >&6; }
8277 SKIP_NEXTAW=;;
8278 *) { $as_echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
8279 $as_echo "Sorry, $enable_gui GUI is not supported" >&6; } ;;
8280 esac
8284 if test "x$SKIP_GTK" != "xYES" -a "$enable_gui_canon" != "gtk" -a "$enable_gui_canon" != "gtk2"; then
8285 { $as_echo "$as_me:$LINENO: checking whether or not to look for GTK" >&5
8286 $as_echo_n "checking whether or not to look for GTK... " >&6; }
8287 # Check whether --enable-gtk-check was given.
8288 if test "${enable_gtk_check+set}" = set; then
8289 enableval=$enable_gtk_check;
8290 else
8291 enable_gtk_check="yes"
8294 { $as_echo "$as_me:$LINENO: result: $enable_gtk_check" >&5
8295 $as_echo "$enable_gtk_check" >&6; }
8296 if test "x$enable_gtk_check" = "xno"; then
8297 SKIP_GTK=YES
8298 SKIP_GNOME=YES
8302 if test "x$SKIP_GTK2" != "xYES" -a "$enable_gui_canon" != "gtk2" \
8303 -a "$enable_gui_canon" != "gnome2"; then
8304 { $as_echo "$as_me:$LINENO: checking whether or not to look for GTK+ 2" >&5
8305 $as_echo_n "checking whether or not to look for GTK+ 2... " >&6; }
8306 # Check whether --enable-gtk2-check was given.
8307 if test "${enable_gtk2_check+set}" = set; then
8308 enableval=$enable_gtk2_check;
8309 else
8310 enable_gtk2_check="yes"
8313 { $as_echo "$as_me:$LINENO: result: $enable_gtk2_check" >&5
8314 $as_echo "$enable_gtk2_check" >&6; }
8315 if test "x$enable_gtk2_check" = "xno"; then
8316 SKIP_GTK2=YES
8320 if test "x$SKIP_GNOME" != "xYES" -a "$enable_gui_canon" != "gnome" \
8321 -a "$enable_gui_canon" != "gnome2"; then
8322 { $as_echo "$as_me:$LINENO: checking whether or not to look for GNOME" >&5
8323 $as_echo_n "checking whether or not to look for GNOME... " >&6; }
8324 # Check whether --enable-gnome-check was given.
8325 if test "${enable_gnome_check+set}" = set; then
8326 enableval=$enable_gnome_check;
8327 else
8328 enable_gnome_check="no"
8331 { $as_echo "$as_me:$LINENO: result: $enable_gnome_check" >&5
8332 $as_echo "$enable_gnome_check" >&6; }
8333 if test "x$enable_gnome_check" = "xno"; then
8334 SKIP_GNOME=YES
8338 if test "x$SKIP_MOTIF" != "xYES" -a "$enable_gui_canon" != "motif"; then
8339 { $as_echo "$as_me:$LINENO: checking whether or not to look for Motif" >&5
8340 $as_echo_n "checking whether or not to look for Motif... " >&6; }
8341 # Check whether --enable-motif-check was given.
8342 if test "${enable_motif_check+set}" = set; then
8343 enableval=$enable_motif_check;
8344 else
8345 enable_motif_check="yes"
8348 { $as_echo "$as_me:$LINENO: result: $enable_motif_check" >&5
8349 $as_echo "$enable_motif_check" >&6; }
8350 if test "x$enable_motif_check" = "xno"; then
8351 SKIP_MOTIF=YES
8355 if test "x$SKIP_ATHENA" != "xYES" -a "$enable_gui_canon" != "athena"; then
8356 { $as_echo "$as_me:$LINENO: checking whether or not to look for Athena" >&5
8357 $as_echo_n "checking whether or not to look for Athena... " >&6; }
8358 # Check whether --enable-athena-check was given.
8359 if test "${enable_athena_check+set}" = set; then
8360 enableval=$enable_athena_check;
8361 else
8362 enable_athena_check="yes"
8365 { $as_echo "$as_me:$LINENO: result: $enable_athena_check" >&5
8366 $as_echo "$enable_athena_check" >&6; }
8367 if test "x$enable_athena_check" = "xno"; then
8368 SKIP_ATHENA=YES
8372 if test "x$SKIP_NEXTAW" != "xYES" -a "$enable_gui_canon" != "nextaw"; then
8373 { $as_echo "$as_me:$LINENO: checking whether or not to look for neXtaw" >&5
8374 $as_echo_n "checking whether or not to look for neXtaw... " >&6; }
8375 # Check whether --enable-nextaw-check was given.
8376 if test "${enable_nextaw_check+set}" = set; then
8377 enableval=$enable_nextaw_check;
8378 else
8379 enable_nextaw_check="yes"
8382 { $as_echo "$as_me:$LINENO: result: $enable_nextaw_check" >&5
8383 $as_echo "$enable_nextaw_check" >&6; };
8384 if test "x$enable_nextaw_check" = "xno"; then
8385 SKIP_NEXTAW=YES
8389 if test "x$SKIP_CARBON" != "xYES" -a "$enable_gui_canon" != "carbon"; then
8390 { $as_echo "$as_me:$LINENO: checking whether or not to look for Carbon" >&5
8391 $as_echo_n "checking whether or not to look for Carbon... " >&6; }
8392 # Check whether --enable-carbon-check was given.
8393 if test "${enable_carbon_check+set}" = set; then
8394 enableval=$enable_carbon_check;
8395 else
8396 enable_carbon_check="yes"
8399 { $as_echo "$as_me:$LINENO: result: $enable_carbon_check" >&5
8400 $as_echo "$enable_carbon_check" >&6; };
8401 if test "x$enable_carbon_check" = "xno"; then
8402 SKIP_CARBON=YES
8407 if test "x$MACOSX" = "xyes" -a -z "$SKIP_CARBON" -a "x$CARBON" = "xyes"; then
8408 { $as_echo "$as_me:$LINENO: checking for Carbon GUI" >&5
8409 $as_echo_n "checking for Carbon GUI... " >&6; }
8410 { $as_echo "$as_me:$LINENO: result: yes" >&5
8411 $as_echo "yes" >&6; };
8412 GUITYPE=CARBONGUI
8413 if test "$VIMNAME" = "vim"; then
8414 VIMNAME=Vim
8417 if test x$prefix = xNONE; then
8418 prefix=/Applications
8421 datadir='${prefix}/Vim.app/Contents/Resources'
8423 SKIP_GTK=YES;
8424 SKIP_GTK2=YES;
8425 SKIP_GNOME=YES;
8426 SKIP_MOTIF=YES;
8427 SKIP_ATHENA=YES;
8428 SKIP_NEXTAW=YES;
8429 SKIP_PHOTON=YES;
8430 SKIP_CARBON=YES
8441 if test -z "$SKIP_GTK"; then
8443 { $as_echo "$as_me:$LINENO: checking --with-gtk-prefix argument" >&5
8444 $as_echo_n "checking --with-gtk-prefix argument... " >&6; }
8446 # Check whether --with-gtk-prefix was given.
8447 if test "${with_gtk_prefix+set}" = set; then
8448 withval=$with_gtk_prefix; gtk_config_prefix="$withval"; { $as_echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5
8449 $as_echo "$gtk_config_prefix" >&6; }
8450 else
8451 gtk_config_prefix=""; { $as_echo "$as_me:$LINENO: result: no" >&5
8452 $as_echo "no" >&6; }
8456 { $as_echo "$as_me:$LINENO: checking --with-gtk-exec-prefix argument" >&5
8457 $as_echo_n "checking --with-gtk-exec-prefix argument... " >&6; }
8459 # Check whether --with-gtk-exec-prefix was given.
8460 if test "${with_gtk_exec_prefix+set}" = set; then
8461 withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"; { $as_echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5
8462 $as_echo "$gtk_config_prefix" >&6; }
8463 else
8464 gtk_config_exec_prefix=""; { $as_echo "$as_me:$LINENO: result: no" >&5
8465 $as_echo "no" >&6; }
8469 { $as_echo "$as_me:$LINENO: checking --disable-gtktest argument" >&5
8470 $as_echo_n "checking --disable-gtktest argument... " >&6; }
8471 # Check whether --enable-gtktest was given.
8472 if test "${enable_gtktest+set}" = set; then
8473 enableval=$enable_gtktest;
8474 else
8475 enable_gtktest=yes
8478 if test "x$enable_gtktest" = "xyes" ; then
8479 { $as_echo "$as_me:$LINENO: result: gtk test enabled" >&5
8480 $as_echo "gtk test enabled" >&6; }
8481 else
8482 { $as_echo "$as_me:$LINENO: result: gtk test disabled" >&5
8483 $as_echo "gtk test disabled" >&6; }
8486 if test "x$gtk_config_prefix" != "x" ; then
8487 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
8488 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
8490 if test "x$gtk_config_exec_prefix" != "x" ; then
8491 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
8492 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
8494 if test "X$GTK_CONFIG" = "X"; then
8495 # Extract the first word of "gtk-config", so it can be a program name with args.
8496 set dummy gtk-config; ac_word=$2
8497 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8498 $as_echo_n "checking for $ac_word... " >&6; }
8499 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
8500 $as_echo_n "(cached) " >&6
8501 else
8502 case $GTK_CONFIG in
8503 [\\/]* | ?:[\\/]*)
8504 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
8507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8508 for as_dir in $PATH
8510 IFS=$as_save_IFS
8511 test -z "$as_dir" && as_dir=.
8512 for ac_exec_ext in '' $ac_executable_extensions; do
8513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8514 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8515 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8516 break 2
8518 done
8519 done
8520 IFS=$as_save_IFS
8522 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
8524 esac
8526 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
8527 if test -n "$GTK_CONFIG"; then
8528 { $as_echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
8529 $as_echo "$GTK_CONFIG" >&6; }
8530 else
8531 { $as_echo "$as_me:$LINENO: result: no" >&5
8532 $as_echo "no" >&6; }
8536 if test "X$GTK_CONFIG" = "Xno"; then
8537 # Extract the first word of "gtk12-config", so it can be a program name with args.
8538 set dummy gtk12-config; ac_word=$2
8539 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8540 $as_echo_n "checking for $ac_word... " >&6; }
8541 if test "${ac_cv_path_GTK12_CONFIG+set}" = set; then
8542 $as_echo_n "(cached) " >&6
8543 else
8544 case $GTK12_CONFIG in
8545 [\\/]* | ?:[\\/]*)
8546 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
8549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8550 for as_dir in $PATH
8552 IFS=$as_save_IFS
8553 test -z "$as_dir" && as_dir=.
8554 for ac_exec_ext in '' $ac_executable_extensions; do
8555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8556 ac_cv_path_GTK12_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8557 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8558 break 2
8560 done
8561 done
8562 IFS=$as_save_IFS
8564 test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
8566 esac
8568 GTK12_CONFIG=$ac_cv_path_GTK12_CONFIG
8569 if test -n "$GTK12_CONFIG"; then
8570 { $as_echo "$as_me:$LINENO: result: $GTK12_CONFIG" >&5
8571 $as_echo "$GTK12_CONFIG" >&6; }
8572 else
8573 { $as_echo "$as_me:$LINENO: result: no" >&5
8574 $as_echo "no" >&6; }
8578 GTK_CONFIG="$GTK12_CONFIG"
8580 else
8581 { $as_echo "$as_me:$LINENO: result: Using GTK configuration program $GTK_CONFIG" >&5
8582 $as_echo "Using GTK configuration program $GTK_CONFIG" >&6; }
8584 if test "X$PKG_CONFIG" = "X"; then
8585 # Extract the first word of "pkg-config", so it can be a program name with args.
8586 set dummy pkg-config; ac_word=$2
8587 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8588 $as_echo_n "checking for $ac_word... " >&6; }
8589 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8590 $as_echo_n "(cached) " >&6
8591 else
8592 case $PKG_CONFIG in
8593 [\\/]* | ?:[\\/]*)
8594 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8598 for as_dir in $PATH
8600 IFS=$as_save_IFS
8601 test -z "$as_dir" && as_dir=.
8602 for ac_exec_ext in '' $ac_executable_extensions; do
8603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8604 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8605 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8606 break 2
8608 done
8609 done
8610 IFS=$as_save_IFS
8612 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8614 esac
8616 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8617 if test -n "$PKG_CONFIG"; then
8618 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8619 $as_echo "$PKG_CONFIG" >&6; }
8620 else
8621 { $as_echo "$as_me:$LINENO: result: no" >&5
8622 $as_echo "no" >&6; }
8628 if test "x$GTK_CONFIG:$PKG_CONFIG" != "xno:no"; then
8629 if test "X$SKIP_GTK2" != "XYES"; then
8631 if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
8633 min_gtk_version=2.2.0
8634 { $as_echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
8635 $as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; }
8636 no_gtk=""
8637 if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
8638 && $PKG_CONFIG --exists gtk+-2.0; then
8640 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
8641 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0`
8642 GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
8643 gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8644 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8645 gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8646 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8647 gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8648 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8650 elif test "X$GTK_CONFIG" != "Xno"; then
8652 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
8653 GTK_LIBDIR=
8654 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
8655 gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \
8656 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8657 gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
8658 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8659 gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
8660 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8662 else
8663 no_gtk=yes
8666 if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
8668 ac_save_CFLAGS="$CFLAGS"
8669 ac_save_LIBS="$LIBS"
8670 CFLAGS="$CFLAGS $GTK_CFLAGS"
8671 LIBS="$LIBS $GTK_LIBS"
8673 rm -f conf.gtktest
8674 if test "$cross_compiling" = yes; then
8675 echo $ac_n "cross compiling; assumed OK... $ac_c"
8676 else
8677 cat >conftest.$ac_ext <<_ACEOF
8678 /* confdefs.h. */
8679 _ACEOF
8680 cat confdefs.h >>conftest.$ac_ext
8681 cat >>conftest.$ac_ext <<_ACEOF
8682 /* end confdefs.h. */
8684 #include <gtk/gtk.h>
8685 #include <stdio.h>
8686 #if STDC_HEADERS
8687 # include <stdlib.h>
8688 # include <stddef.h>
8689 #endif
8692 main ()
8694 int major, minor, micro;
8695 char *tmp_version;
8697 system ("touch conf.gtktest");
8699 /* HP/UX 9 (%@#!) writes to sscanf strings */
8700 tmp_version = g_strdup("$min_gtk_version");
8701 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
8702 printf("%s, bad version string\n", "$min_gtk_version");
8703 exit(1);
8706 if ((gtk_major_version > major) ||
8707 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
8708 ((gtk_major_version == major) && (gtk_minor_version == minor) &&
8709 (gtk_micro_version >= micro)))
8711 return 0;
8713 return 1;
8716 _ACEOF
8717 rm -f conftest$ac_exeext
8718 if { (ac_try="$ac_link"
8719 case "(($ac_try" in
8720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8721 *) ac_try_echo=$ac_try;;
8722 esac
8723 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8724 $as_echo "$ac_try_echo") >&5
8725 (eval "$ac_link") 2>&5
8726 ac_status=$?
8727 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8728 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8729 { (case "(($ac_try" in
8730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8731 *) ac_try_echo=$ac_try;;
8732 esac
8733 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8734 $as_echo "$ac_try_echo") >&5
8735 (eval "$ac_try") 2>&5
8736 ac_status=$?
8737 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8738 (exit $ac_status); }; }; then
8740 else
8741 $as_echo "$as_me: program exited with status $ac_status" >&5
8742 $as_echo "$as_me: failed program was:" >&5
8743 sed 's/^/| /' conftest.$ac_ext >&5
8745 ( exit $ac_status )
8746 no_gtk=yes
8748 rm -rf conftest.dSYM
8749 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8753 CFLAGS="$ac_save_CFLAGS"
8754 LIBS="$ac_save_LIBS"
8757 if test "x$no_gtk" = x ; then
8758 if test "x$enable_gtktest" = "xyes"; then
8759 { $as_echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8760 $as_echo "yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
8761 else
8762 { $as_echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8763 $as_echo "found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
8765 GUI_LIB_LOC="$GTK_LIBDIR"
8766 GTK_LIBNAME="$GTK_LIBS"
8767 GUI_INC_LOC="$GTK_CFLAGS"
8768 else
8770 { $as_echo "$as_me:$LINENO: result: no" >&5
8771 $as_echo "no" >&6; }
8772 GTK_CFLAGS=""
8773 GTK_LIBS=""
8778 else
8779 GTK_CFLAGS=""
8780 GTK_LIBS=""
8785 rm -f conf.gtktest
8787 if test "x$GTK_CFLAGS" != "x"; then
8788 SKIP_ATHENA=YES
8789 SKIP_NEXTAW=YES
8790 SKIP_MOTIF=YES
8791 GUITYPE=GTK
8796 if test "x$GUITYPE" != "xGTK"; then
8797 SKIP_GTK2=YES
8799 if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
8801 min_gtk_version=1.1.16
8802 { $as_echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
8803 $as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; }
8804 no_gtk=""
8805 if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
8806 && $PKG_CONFIG --exists gtk+-2.0; then
8808 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
8809 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0`
8810 GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
8811 gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8812 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8813 gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8814 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8815 gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8816 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8818 elif test "X$GTK_CONFIG" != "Xno"; then
8820 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
8821 GTK_LIBDIR=
8822 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
8823 gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \
8824 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8825 gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
8826 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8827 gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
8828 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8830 else
8831 no_gtk=yes
8834 if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
8836 ac_save_CFLAGS="$CFLAGS"
8837 ac_save_LIBS="$LIBS"
8838 CFLAGS="$CFLAGS $GTK_CFLAGS"
8839 LIBS="$LIBS $GTK_LIBS"
8841 rm -f conf.gtktest
8842 if test "$cross_compiling" = yes; then
8843 echo $ac_n "cross compiling; assumed OK... $ac_c"
8844 else
8845 cat >conftest.$ac_ext <<_ACEOF
8846 /* confdefs.h. */
8847 _ACEOF
8848 cat confdefs.h >>conftest.$ac_ext
8849 cat >>conftest.$ac_ext <<_ACEOF
8850 /* end confdefs.h. */
8852 #include <gtk/gtk.h>
8853 #include <stdio.h>
8854 #if STDC_HEADERS
8855 # include <stdlib.h>
8856 # include <stddef.h>
8857 #endif
8860 main ()
8862 int major, minor, micro;
8863 char *tmp_version;
8865 system ("touch conf.gtktest");
8867 /* HP/UX 9 (%@#!) writes to sscanf strings */
8868 tmp_version = g_strdup("$min_gtk_version");
8869 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
8870 printf("%s, bad version string\n", "$min_gtk_version");
8871 exit(1);
8874 if ((gtk_major_version > major) ||
8875 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
8876 ((gtk_major_version == major) && (gtk_minor_version == minor) &&
8877 (gtk_micro_version >= micro)))
8879 return 0;
8881 return 1;
8884 _ACEOF
8885 rm -f conftest$ac_exeext
8886 if { (ac_try="$ac_link"
8887 case "(($ac_try" in
8888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8889 *) ac_try_echo=$ac_try;;
8890 esac
8891 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8892 $as_echo "$ac_try_echo") >&5
8893 (eval "$ac_link") 2>&5
8894 ac_status=$?
8895 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8896 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8897 { (case "(($ac_try" in
8898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8899 *) ac_try_echo=$ac_try;;
8900 esac
8901 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8902 $as_echo "$ac_try_echo") >&5
8903 (eval "$ac_try") 2>&5
8904 ac_status=$?
8905 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8906 (exit $ac_status); }; }; then
8908 else
8909 $as_echo "$as_me: program exited with status $ac_status" >&5
8910 $as_echo "$as_me: failed program was:" >&5
8911 sed 's/^/| /' conftest.$ac_ext >&5
8913 ( exit $ac_status )
8914 no_gtk=yes
8916 rm -rf conftest.dSYM
8917 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8921 CFLAGS="$ac_save_CFLAGS"
8922 LIBS="$ac_save_LIBS"
8925 if test "x$no_gtk" = x ; then
8926 if test "x$enable_gtktest" = "xyes"; then
8927 { $as_echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8928 $as_echo "yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
8929 else
8930 { $as_echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8931 $as_echo "found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
8933 GTK_LIBNAME="$GTK_LIBS"
8934 GUI_INC_LOC="$GTK_CFLAGS"
8935 else
8937 { $as_echo "$as_me:$LINENO: result: no" >&5
8938 $as_echo "no" >&6; }
8939 GTK_CFLAGS=""
8940 GTK_LIBS=""
8945 else
8946 GTK_CFLAGS=""
8947 GTK_LIBS=""
8952 rm -f conf.gtktest
8954 if test "x$GTK_CFLAGS" != "x"; then
8955 SKIP_ATHENA=YES
8956 SKIP_NEXTAW=YES
8957 SKIP_MOTIF=YES
8958 GUITYPE=GTK
8963 if test "x$GUITYPE" = "xGTK"; then
8964 if test "$gtk_major_version" = 1 -a "0$gtk_minor_version" -lt 2 \
8965 -o "$gtk_major_version" = 1 -a "$gtk_minor_version" = 2 -a "0$gtk_micro_version" -lt 3; then
8966 { $as_echo "$as_me:$LINENO: result: this GTK version is old; version 1.2.3 or later is recommended" >&5
8967 $as_echo "this GTK version is old; version 1.2.3 or later is recommended" >&6; }
8968 else
8970 if test "0$gtk_major_version" -ge 2; then
8971 cat >>confdefs.h <<\_ACEOF
8972 #define HAVE_GTK2 1
8973 _ACEOF
8975 if test "$gtk_minor_version" = 1 -a "0$gtk_micro_version" -ge 1 \
8976 || test "0$gtk_minor_version" -ge 2 \
8977 || test "0$gtk_major_version" -gt 2; then
8978 cat >>confdefs.h <<\_ACEOF
8979 #define HAVE_GTK_MULTIHEAD 1
8980 _ACEOF
8984 if test -z "$SKIP_GNOME"; then
8992 # Check whether --with-gnome-includes was given.
8993 if test "${with_gnome_includes+set}" = set; then
8994 withval=$with_gnome_includes; CFLAGS="$CFLAGS -I$withval"
9000 # Check whether --with-gnome-libs was given.
9001 if test "${with_gnome_libs+set}" = set; then
9002 withval=$with_gnome_libs; LDFLAGS="$LDFLAGS -L$withval" gnome_prefix=$withval
9008 # Check whether --with-gnome was given.
9009 if test "${with_gnome+set}" = set; then
9010 withval=$with_gnome; if test x$withval = xyes; then
9011 want_gnome=yes
9012 have_gnome=yes
9013 else
9014 if test "x$withval" = xno; then
9015 want_gnome=no
9016 else
9017 want_gnome=yes
9018 LDFLAGS="$LDFLAGS -L$withval/lib"
9019 CFLAGS="$CFLAGS -I$withval/include"
9020 gnome_prefix=$withval/lib
9023 else
9024 want_gnome=yes
9028 if test "x$want_gnome" = xyes -a "0$gtk_major_version" -ge 2; then
9030 { $as_echo "$as_me:$LINENO: checking for libgnomeui-2.0" >&5
9031 $as_echo_n "checking for libgnomeui-2.0... " >&6; }
9032 if $PKG_CONFIG --exists libgnomeui-2.0; then
9033 { $as_echo "$as_me:$LINENO: result: yes" >&5
9034 $as_echo "yes" >&6; }
9035 GNOME_LIBS=`$PKG_CONFIG --libs-only-l libgnomeui-2.0`
9036 GNOME_LIBDIR=`$PKG_CONFIG --libs-only-L libgnomeui-2.0`
9037 GNOME_INCLUDEDIR=`$PKG_CONFIG --cflags libgnomeui-2.0`
9039 { $as_echo "$as_me:$LINENO: checking for FreeBSD" >&5
9040 $as_echo_n "checking for FreeBSD... " >&6; }
9041 if test "`(uname) 2>/dev/null`" = FreeBSD; then
9042 { $as_echo "$as_me:$LINENO: result: yes" >&5
9043 $as_echo "yes" >&6; }
9044 GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR -D_THREAD_SAFE"
9045 GNOME_LIBS="$GNOME_LIBS -pthread"
9046 else
9047 { $as_echo "$as_me:$LINENO: result: no" >&5
9048 $as_echo "no" >&6; }
9050 have_gnome=yes
9051 else
9052 { $as_echo "$as_me:$LINENO: result: not found" >&5
9053 $as_echo "not found" >&6; }
9054 if test "x" = xfail; then
9055 { { $as_echo "$as_me:$LINENO: error: Could not find libgnomeui-2.0 via pkg-config" >&5
9056 $as_echo "$as_me: error: Could not find libgnomeui-2.0 via pkg-config" >&2;}
9057 { (exit 1); exit 1; }; }
9061 elif test "x$want_gnome" = xyes; then
9063 # Extract the first word of "gnome-config", so it can be a program name with args.
9064 set dummy gnome-config; ac_word=$2
9065 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9066 $as_echo_n "checking for $ac_word... " >&6; }
9067 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
9068 $as_echo_n "(cached) " >&6
9069 else
9070 case $GNOME_CONFIG in
9071 [\\/]* | ?:[\\/]*)
9072 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
9075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9076 for as_dir in $PATH
9078 IFS=$as_save_IFS
9079 test -z "$as_dir" && as_dir=.
9080 for ac_exec_ext in '' $ac_executable_extensions; do
9081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9082 ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9083 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9084 break 2
9086 done
9087 done
9088 IFS=$as_save_IFS
9090 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
9092 esac
9094 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
9095 if test -n "$GNOME_CONFIG"; then
9096 { $as_echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
9097 $as_echo "$GNOME_CONFIG" >&6; }
9098 else
9099 { $as_echo "$as_me:$LINENO: result: no" >&5
9100 $as_echo "no" >&6; }
9104 if test "$GNOME_CONFIG" = "no"; then
9105 no_gnome_config="yes"
9106 else
9107 { $as_echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
9108 $as_echo_n "checking if $GNOME_CONFIG works... " >&6; }
9109 if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
9110 { $as_echo "$as_me:$LINENO: result: yes" >&5
9111 $as_echo "yes" >&6; }
9112 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome gnomeui`"
9113 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
9114 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
9115 have_gnome=yes
9116 else
9117 { $as_echo "$as_me:$LINENO: result: no" >&5
9118 $as_echo "no" >&6; }
9119 no_gnome_config="yes"
9123 if test x$exec_prefix = xNONE; then
9124 if test x$prefix = xNONE; then
9125 gnome_prefix=$ac_default_prefix/lib
9126 else
9127 gnome_prefix=$prefix/lib
9129 else
9130 gnome_prefix=`eval echo \`echo $libdir\``
9133 if test "$no_gnome_config" = "yes"; then
9134 { $as_echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
9135 $as_echo_n "checking for gnomeConf.sh file in $gnome_prefix... " >&6; }
9136 if test -f $gnome_prefix/gnomeConf.sh; then
9137 { $as_echo "$as_me:$LINENO: result: found" >&5
9138 $as_echo "found" >&6; }
9139 echo "loading gnome configuration from" \
9140 "$gnome_prefix/gnomeConf.sh"
9141 . $gnome_prefix/gnomeConf.sh
9142 have_gnome=yes
9143 else
9144 { $as_echo "$as_me:$LINENO: result: not found" >&5
9145 $as_echo "not found" >&6; }
9146 if test x = xfail; then
9147 { { $as_echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
9148 $as_echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
9149 { (exit 1); exit 1; }; }
9156 if test x$have_gnome = xyes ; then
9157 cat >>confdefs.h <<\_ACEOF
9158 #define FEAT_GUI_GNOME 1
9159 _ACEOF
9161 GUI_INC_LOC="$GUI_INC_LOC $GNOME_INCLUDEDIR"
9162 GTK_LIBNAME="$GTK_LIBNAME $GNOME_LIBDIR $GNOME_LIBS"
9172 if test -z "$SKIP_MOTIF"; then
9173 gui_XXX="/usr/XXX/Motif* /usr/Motif*/XXX /usr/XXX /usr/shlib /usr/X11*/XXX /usr/XXX/X11* /usr/dt/XXX /local/Motif*/XXX /local/XXX/Motif* /usr/local/Motif*/XXX /usr/local/XXX/Motif* /usr/local/XXX /usr/local/X11*/XXX /usr/local/LessTif/Motif*/XXX $MOTIFHOME/XXX"
9174 GUI_INC_LOC="`echo $GUI_INC_LOC|sed 's%-I%%g'`"
9176 { $as_echo "$as_me:$LINENO: checking for location of Motif GUI includes" >&5
9177 $as_echo_n "checking for location of Motif GUI includes... " >&6; }
9178 gui_includes="`echo $x_includes|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/include/g` $GUI_INC_LOC"
9179 GUI_INC_LOC=
9180 for try in $gui_includes; do
9181 if test -f "$try/Xm/Xm.h"; then
9182 GUI_INC_LOC=$try
9184 done
9185 if test -n "$GUI_INC_LOC"; then
9186 if test "$GUI_INC_LOC" = /usr/include; then
9187 GUI_INC_LOC=
9188 { $as_echo "$as_me:$LINENO: result: in default path" >&5
9189 $as_echo "in default path" >&6; }
9190 else
9191 { $as_echo "$as_me:$LINENO: result: $GUI_INC_LOC" >&5
9192 $as_echo "$GUI_INC_LOC" >&6; }
9194 else
9195 { $as_echo "$as_me:$LINENO: result: <not found>" >&5
9196 $as_echo "<not found>" >&6; }
9197 SKIP_MOTIF=YES
9202 if test -z "$SKIP_MOTIF"; then
9203 { $as_echo "$as_me:$LINENO: checking --with-motif-lib argument" >&5
9204 $as_echo_n "checking --with-motif-lib argument... " >&6; }
9206 # Check whether --with-motif-lib was given.
9207 if test "${with_motif_lib+set}" = set; then
9208 withval=$with_motif_lib; MOTIF_LIBNAME="${withval}"
9212 if test -n "$MOTIF_LIBNAME"; then
9213 { $as_echo "$as_me:$LINENO: result: $MOTIF_LIBNAME" >&5
9214 $as_echo "$MOTIF_LIBNAME" >&6; }
9215 GUI_LIB_LOC=
9216 else
9217 { $as_echo "$as_me:$LINENO: result: no" >&5
9218 $as_echo "no" >&6; }
9220 GUI_LIB_LOC="`echo $GUI_LIB_LOC|sed 's%-L%%g'`"
9222 { $as_echo "$as_me:$LINENO: checking for location of Motif GUI libs" >&5
9223 $as_echo_n "checking for location of Motif GUI libs... " >&6; }
9224 gui_libs="`echo $x_libraries|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/lib/g` `echo "$GUI_INC_LOC" | sed s/include/lib/` $GUI_LIB_LOC"
9225 GUI_LIB_LOC=
9226 for try in $gui_libs; do
9227 for libtry in "$try"/libXm.a "$try"/libXm.so* "$try"/libXm.sl "$try"/libXm.dylib; do
9228 if test -f "$libtry"; then
9229 GUI_LIB_LOC=$try
9231 done
9232 done
9233 if test -n "$GUI_LIB_LOC"; then
9234 if test "$GUI_LIB_LOC" = /usr/lib; then
9235 GUI_LIB_LOC=
9236 { $as_echo "$as_me:$LINENO: result: in default path" >&5
9237 $as_echo "in default path" >&6; }
9238 else
9239 if test -n "$GUI_LIB_LOC"; then
9240 { $as_echo "$as_me:$LINENO: result: $GUI_LIB_LOC" >&5
9241 $as_echo "$GUI_LIB_LOC" >&6; }
9242 if test "`(uname) 2>/dev/null`" = SunOS &&
9243 uname -r | grep '^5' >/dev/null; then
9244 GUI_LIB_LOC="$GUI_LIB_LOC -R $GUI_LIB_LOC"
9248 MOTIF_LIBNAME=-lXm
9249 else
9250 { $as_echo "$as_me:$LINENO: result: <not found>" >&5
9251 $as_echo "<not found>" >&6; }
9252 SKIP_MOTIF=YES
9257 if test -z "$SKIP_MOTIF"; then
9258 SKIP_ATHENA=YES
9259 SKIP_NEXTAW=YES
9260 GUITYPE=MOTIF
9265 GUI_X_LIBS=
9267 if test -z "$SKIP_ATHENA"; then
9268 { $as_echo "$as_me:$LINENO: checking if Athena header files can be found" >&5
9269 $as_echo_n "checking if Athena header files can be found... " >&6; }
9270 cflags_save=$CFLAGS
9271 CFLAGS="$CFLAGS $X_CFLAGS"
9272 cat >conftest.$ac_ext <<_ACEOF
9273 /* confdefs.h. */
9274 _ACEOF
9275 cat confdefs.h >>conftest.$ac_ext
9276 cat >>conftest.$ac_ext <<_ACEOF
9277 /* end confdefs.h. */
9279 #include <X11/Intrinsic.h>
9280 #include <X11/Xaw/Paned.h>
9282 main ()
9286 return 0;
9288 _ACEOF
9289 rm -f conftest.$ac_objext
9290 if { (ac_try="$ac_compile"
9291 case "(($ac_try" in
9292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9293 *) ac_try_echo=$ac_try;;
9294 esac
9295 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9296 $as_echo "$ac_try_echo") >&5
9297 (eval "$ac_compile") 2>conftest.er1
9298 ac_status=$?
9299 grep -v '^ *+' conftest.er1 >conftest.err
9300 rm -f conftest.er1
9301 cat conftest.err >&5
9302 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9303 (exit $ac_status); } && {
9304 test -z "$ac_c_werror_flag" ||
9305 test ! -s conftest.err
9306 } && test -s conftest.$ac_objext; then
9307 { $as_echo "$as_me:$LINENO: result: yes" >&5
9308 $as_echo "yes" >&6; }
9309 else
9310 $as_echo "$as_me: failed program was:" >&5
9311 sed 's/^/| /' conftest.$ac_ext >&5
9313 { $as_echo "$as_me:$LINENO: result: no" >&5
9314 $as_echo "no" >&6; }; SKIP_ATHENA=YES
9317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9318 CFLAGS=$cflags_save
9321 if test -z "$SKIP_ATHENA"; then
9322 GUITYPE=ATHENA
9325 if test -z "$SKIP_NEXTAW"; then
9326 { $as_echo "$as_me:$LINENO: checking if neXtaw header files can be found" >&5
9327 $as_echo_n "checking if neXtaw header files can be found... " >&6; }
9328 cflags_save=$CFLAGS
9329 CFLAGS="$CFLAGS $X_CFLAGS"
9330 cat >conftest.$ac_ext <<_ACEOF
9331 /* confdefs.h. */
9332 _ACEOF
9333 cat confdefs.h >>conftest.$ac_ext
9334 cat >>conftest.$ac_ext <<_ACEOF
9335 /* end confdefs.h. */
9337 #include <X11/Intrinsic.h>
9338 #include <X11/neXtaw/Paned.h>
9340 main ()
9344 return 0;
9346 _ACEOF
9347 rm -f conftest.$ac_objext
9348 if { (ac_try="$ac_compile"
9349 case "(($ac_try" in
9350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9351 *) ac_try_echo=$ac_try;;
9352 esac
9353 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9354 $as_echo "$ac_try_echo") >&5
9355 (eval "$ac_compile") 2>conftest.er1
9356 ac_status=$?
9357 grep -v '^ *+' conftest.er1 >conftest.err
9358 rm -f conftest.er1
9359 cat conftest.err >&5
9360 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9361 (exit $ac_status); } && {
9362 test -z "$ac_c_werror_flag" ||
9363 test ! -s conftest.err
9364 } && test -s conftest.$ac_objext; then
9365 { $as_echo "$as_me:$LINENO: result: yes" >&5
9366 $as_echo "yes" >&6; }
9367 else
9368 $as_echo "$as_me: failed program was:" >&5
9369 sed 's/^/| /' conftest.$ac_ext >&5
9371 { $as_echo "$as_me:$LINENO: result: no" >&5
9372 $as_echo "no" >&6; }; SKIP_NEXTAW=YES
9375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9376 CFLAGS=$cflags_save
9379 if test -z "$SKIP_NEXTAW"; then
9380 GUITYPE=NEXTAW
9383 if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
9384 if test -n "$GUI_INC_LOC"; then
9385 GUI_INC_LOC=-I"`echo $GUI_INC_LOC|sed 's%-I%%'`"
9387 if test -n "$GUI_LIB_LOC"; then
9388 GUI_LIB_LOC=-L"`echo $GUI_LIB_LOC|sed 's%-L%%'`"
9391 ldflags_save=$LDFLAGS
9392 LDFLAGS="$X_LIBS $LDFLAGS"
9393 { $as_echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
9394 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
9395 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
9396 $as_echo_n "(cached) " >&6
9397 else
9398 ac_check_lib_save_LIBS=$LIBS
9399 LIBS="-lXext -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9400 cat >conftest.$ac_ext <<_ACEOF
9401 /* confdefs.h. */
9402 _ACEOF
9403 cat confdefs.h >>conftest.$ac_ext
9404 cat >>conftest.$ac_ext <<_ACEOF
9405 /* end confdefs.h. */
9407 /* Override any GCC internal prototype to avoid an error.
9408 Use char because int might match the return type of a GCC
9409 builtin and then its argument prototype would still apply. */
9410 #ifdef __cplusplus
9411 extern "C"
9412 #endif
9413 char XShapeQueryExtension ();
9415 main ()
9417 return XShapeQueryExtension ();
9419 return 0;
9421 _ACEOF
9422 rm -f conftest.$ac_objext conftest$ac_exeext
9423 if { (ac_try="$ac_link"
9424 case "(($ac_try" in
9425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9426 *) ac_try_echo=$ac_try;;
9427 esac
9428 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9429 $as_echo "$ac_try_echo") >&5
9430 (eval "$ac_link") 2>conftest.er1
9431 ac_status=$?
9432 grep -v '^ *+' conftest.er1 >conftest.err
9433 rm -f conftest.er1
9434 cat conftest.err >&5
9435 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9436 (exit $ac_status); } && {
9437 test -z "$ac_c_werror_flag" ||
9438 test ! -s conftest.err
9439 } && test -s conftest$ac_exeext && {
9440 test "$cross_compiling" = yes ||
9441 $as_test_x conftest$ac_exeext
9442 }; then
9443 ac_cv_lib_Xext_XShapeQueryExtension=yes
9444 else
9445 $as_echo "$as_me: failed program was:" >&5
9446 sed 's/^/| /' conftest.$ac_ext >&5
9448 ac_cv_lib_Xext_XShapeQueryExtension=no
9451 rm -rf conftest.dSYM
9452 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9453 conftest$ac_exeext conftest.$ac_ext
9454 LIBS=$ac_check_lib_save_LIBS
9456 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
9457 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
9458 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then
9459 GUI_X_LIBS="-lXext"
9462 { $as_echo "$as_me:$LINENO: checking for wslen in -lw" >&5
9463 $as_echo_n "checking for wslen in -lw... " >&6; }
9464 if test "${ac_cv_lib_w_wslen+set}" = set; then
9465 $as_echo_n "(cached) " >&6
9466 else
9467 ac_check_lib_save_LIBS=$LIBS
9468 LIBS="-lw $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9469 cat >conftest.$ac_ext <<_ACEOF
9470 /* confdefs.h. */
9471 _ACEOF
9472 cat confdefs.h >>conftest.$ac_ext
9473 cat >>conftest.$ac_ext <<_ACEOF
9474 /* end confdefs.h. */
9476 /* Override any GCC internal prototype to avoid an error.
9477 Use char because int might match the return type of a GCC
9478 builtin and then its argument prototype would still apply. */
9479 #ifdef __cplusplus
9480 extern "C"
9481 #endif
9482 char wslen ();
9484 main ()
9486 return wslen ();
9488 return 0;
9490 _ACEOF
9491 rm -f conftest.$ac_objext conftest$ac_exeext
9492 if { (ac_try="$ac_link"
9493 case "(($ac_try" in
9494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9495 *) ac_try_echo=$ac_try;;
9496 esac
9497 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9498 $as_echo "$ac_try_echo") >&5
9499 (eval "$ac_link") 2>conftest.er1
9500 ac_status=$?
9501 grep -v '^ *+' conftest.er1 >conftest.err
9502 rm -f conftest.er1
9503 cat conftest.err >&5
9504 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9505 (exit $ac_status); } && {
9506 test -z "$ac_c_werror_flag" ||
9507 test ! -s conftest.err
9508 } && test -s conftest$ac_exeext && {
9509 test "$cross_compiling" = yes ||
9510 $as_test_x conftest$ac_exeext
9511 }; then
9512 ac_cv_lib_w_wslen=yes
9513 else
9514 $as_echo "$as_me: failed program was:" >&5
9515 sed 's/^/| /' conftest.$ac_ext >&5
9517 ac_cv_lib_w_wslen=no
9520 rm -rf conftest.dSYM
9521 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9522 conftest$ac_exeext conftest.$ac_ext
9523 LIBS=$ac_check_lib_save_LIBS
9525 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_w_wslen" >&5
9526 $as_echo "$ac_cv_lib_w_wslen" >&6; }
9527 if test "x$ac_cv_lib_w_wslen" = x""yes; then
9528 X_EXTRA_LIBS="$X_EXTRA_LIBS -lw"
9531 { $as_echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5
9532 $as_echo_n "checking for dlsym in -ldl... " >&6; }
9533 if test "${ac_cv_lib_dl_dlsym+set}" = set; then
9534 $as_echo_n "(cached) " >&6
9535 else
9536 ac_check_lib_save_LIBS=$LIBS
9537 LIBS="-ldl $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9538 cat >conftest.$ac_ext <<_ACEOF
9539 /* confdefs.h. */
9540 _ACEOF
9541 cat confdefs.h >>conftest.$ac_ext
9542 cat >>conftest.$ac_ext <<_ACEOF
9543 /* end confdefs.h. */
9545 /* Override any GCC internal prototype to avoid an error.
9546 Use char because int might match the return type of a GCC
9547 builtin and then its argument prototype would still apply. */
9548 #ifdef __cplusplus
9549 extern "C"
9550 #endif
9551 char dlsym ();
9553 main ()
9555 return dlsym ();
9557 return 0;
9559 _ACEOF
9560 rm -f conftest.$ac_objext conftest$ac_exeext
9561 if { (ac_try="$ac_link"
9562 case "(($ac_try" in
9563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9564 *) ac_try_echo=$ac_try;;
9565 esac
9566 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9567 $as_echo "$ac_try_echo") >&5
9568 (eval "$ac_link") 2>conftest.er1
9569 ac_status=$?
9570 grep -v '^ *+' conftest.er1 >conftest.err
9571 rm -f conftest.er1
9572 cat conftest.err >&5
9573 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9574 (exit $ac_status); } && {
9575 test -z "$ac_c_werror_flag" ||
9576 test ! -s conftest.err
9577 } && test -s conftest$ac_exeext && {
9578 test "$cross_compiling" = yes ||
9579 $as_test_x conftest$ac_exeext
9580 }; then
9581 ac_cv_lib_dl_dlsym=yes
9582 else
9583 $as_echo "$as_me: failed program was:" >&5
9584 sed 's/^/| /' conftest.$ac_ext >&5
9586 ac_cv_lib_dl_dlsym=no
9589 rm -rf conftest.dSYM
9590 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9591 conftest$ac_exeext conftest.$ac_ext
9592 LIBS=$ac_check_lib_save_LIBS
9594 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5
9595 $as_echo "$ac_cv_lib_dl_dlsym" >&6; }
9596 if test "x$ac_cv_lib_dl_dlsym" = x""yes; then
9597 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldl"
9600 { $as_echo "$as_me:$LINENO: checking for XmuCreateStippledPixmap in -lXmu" >&5
9601 $as_echo_n "checking for XmuCreateStippledPixmap in -lXmu... " >&6; }
9602 if test "${ac_cv_lib_Xmu_XmuCreateStippledPixmap+set}" = set; then
9603 $as_echo_n "(cached) " >&6
9604 else
9605 ac_check_lib_save_LIBS=$LIBS
9606 LIBS="-lXmu $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9607 cat >conftest.$ac_ext <<_ACEOF
9608 /* confdefs.h. */
9609 _ACEOF
9610 cat confdefs.h >>conftest.$ac_ext
9611 cat >>conftest.$ac_ext <<_ACEOF
9612 /* end confdefs.h. */
9614 /* Override any GCC internal prototype to avoid an error.
9615 Use char because int might match the return type of a GCC
9616 builtin and then its argument prototype would still apply. */
9617 #ifdef __cplusplus
9618 extern "C"
9619 #endif
9620 char XmuCreateStippledPixmap ();
9622 main ()
9624 return XmuCreateStippledPixmap ();
9626 return 0;
9628 _ACEOF
9629 rm -f conftest.$ac_objext conftest$ac_exeext
9630 if { (ac_try="$ac_link"
9631 case "(($ac_try" in
9632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9633 *) ac_try_echo=$ac_try;;
9634 esac
9635 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9636 $as_echo "$ac_try_echo") >&5
9637 (eval "$ac_link") 2>conftest.er1
9638 ac_status=$?
9639 grep -v '^ *+' conftest.er1 >conftest.err
9640 rm -f conftest.er1
9641 cat conftest.err >&5
9642 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9643 (exit $ac_status); } && {
9644 test -z "$ac_c_werror_flag" ||
9645 test ! -s conftest.err
9646 } && test -s conftest$ac_exeext && {
9647 test "$cross_compiling" = yes ||
9648 $as_test_x conftest$ac_exeext
9649 }; then
9650 ac_cv_lib_Xmu_XmuCreateStippledPixmap=yes
9651 else
9652 $as_echo "$as_me: failed program was:" >&5
9653 sed 's/^/| /' conftest.$ac_ext >&5
9655 ac_cv_lib_Xmu_XmuCreateStippledPixmap=no
9658 rm -rf conftest.dSYM
9659 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9660 conftest$ac_exeext conftest.$ac_ext
9661 LIBS=$ac_check_lib_save_LIBS
9663 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&5
9664 $as_echo "$ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&6; }
9665 if test "x$ac_cv_lib_Xmu_XmuCreateStippledPixmap" = x""yes; then
9666 GUI_X_LIBS="-lXmu $GUI_X_LIBS"
9669 if test -z "$SKIP_MOTIF"; then
9670 { $as_echo "$as_me:$LINENO: checking for XpEndJob in -lXp" >&5
9671 $as_echo_n "checking for XpEndJob in -lXp... " >&6; }
9672 if test "${ac_cv_lib_Xp_XpEndJob+set}" = set; then
9673 $as_echo_n "(cached) " >&6
9674 else
9675 ac_check_lib_save_LIBS=$LIBS
9676 LIBS="-lXp $GUI_X_LIBS -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9677 cat >conftest.$ac_ext <<_ACEOF
9678 /* confdefs.h. */
9679 _ACEOF
9680 cat confdefs.h >>conftest.$ac_ext
9681 cat >>conftest.$ac_ext <<_ACEOF
9682 /* end confdefs.h. */
9684 /* Override any GCC internal prototype to avoid an error.
9685 Use char because int might match the return type of a GCC
9686 builtin and then its argument prototype would still apply. */
9687 #ifdef __cplusplus
9688 extern "C"
9689 #endif
9690 char XpEndJob ();
9692 main ()
9694 return XpEndJob ();
9696 return 0;
9698 _ACEOF
9699 rm -f conftest.$ac_objext conftest$ac_exeext
9700 if { (ac_try="$ac_link"
9701 case "(($ac_try" in
9702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9703 *) ac_try_echo=$ac_try;;
9704 esac
9705 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9706 $as_echo "$ac_try_echo") >&5
9707 (eval "$ac_link") 2>conftest.er1
9708 ac_status=$?
9709 grep -v '^ *+' conftest.er1 >conftest.err
9710 rm -f conftest.er1
9711 cat conftest.err >&5
9712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9713 (exit $ac_status); } && {
9714 test -z "$ac_c_werror_flag" ||
9715 test ! -s conftest.err
9716 } && test -s conftest$ac_exeext && {
9717 test "$cross_compiling" = yes ||
9718 $as_test_x conftest$ac_exeext
9719 }; then
9720 ac_cv_lib_Xp_XpEndJob=yes
9721 else
9722 $as_echo "$as_me: failed program was:" >&5
9723 sed 's/^/| /' conftest.$ac_ext >&5
9725 ac_cv_lib_Xp_XpEndJob=no
9728 rm -rf conftest.dSYM
9729 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9730 conftest$ac_exeext conftest.$ac_ext
9731 LIBS=$ac_check_lib_save_LIBS
9733 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpEndJob" >&5
9734 $as_echo "$ac_cv_lib_Xp_XpEndJob" >&6; }
9735 if test "x$ac_cv_lib_Xp_XpEndJob" = x""yes; then
9736 GUI_X_LIBS="-lXp $GUI_X_LIBS"
9740 LDFLAGS=$ldflags_save
9742 { $as_echo "$as_me:$LINENO: checking for extra X11 defines" >&5
9743 $as_echo_n "checking for extra X11 defines... " >&6; }
9744 NARROW_PROTO=
9745 rm -fr conftestdir
9746 if mkdir conftestdir; then
9747 cd conftestdir
9748 cat > Imakefile <<'EOF'
9749 acfindx:
9750 @echo 'NARROW_PROTO="${PROTO_DEFINES}"'
9752 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
9753 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9755 cd ..
9756 rm -fr conftestdir
9758 if test -z "$NARROW_PROTO"; then
9759 { $as_echo "$as_me:$LINENO: result: no" >&5
9760 $as_echo "no" >&6; }
9761 else
9762 { $as_echo "$as_me:$LINENO: result: $NARROW_PROTO" >&5
9763 $as_echo "$NARROW_PROTO" >&6; }
9768 if test "$enable_xsmp" = "yes"; then
9769 cppflags_save=$CPPFLAGS
9770 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9772 for ac_header in X11/SM/SMlib.h
9774 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9775 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9776 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9777 $as_echo_n "checking for $ac_header... " >&6; }
9778 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9779 $as_echo_n "(cached) " >&6
9781 ac_res=`eval 'as_val=${'$as_ac_Header'}
9782 $as_echo "$as_val"'`
9783 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9784 $as_echo "$ac_res" >&6; }
9785 else
9786 # Is the header compilable?
9787 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9788 $as_echo_n "checking $ac_header usability... " >&6; }
9789 cat >conftest.$ac_ext <<_ACEOF
9790 /* confdefs.h. */
9791 _ACEOF
9792 cat confdefs.h >>conftest.$ac_ext
9793 cat >>conftest.$ac_ext <<_ACEOF
9794 /* end confdefs.h. */
9795 $ac_includes_default
9796 #include <$ac_header>
9797 _ACEOF
9798 rm -f conftest.$ac_objext
9799 if { (ac_try="$ac_compile"
9800 case "(($ac_try" in
9801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9802 *) ac_try_echo=$ac_try;;
9803 esac
9804 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9805 $as_echo "$ac_try_echo") >&5
9806 (eval "$ac_compile") 2>conftest.er1
9807 ac_status=$?
9808 grep -v '^ *+' conftest.er1 >conftest.err
9809 rm -f conftest.er1
9810 cat conftest.err >&5
9811 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9812 (exit $ac_status); } && {
9813 test -z "$ac_c_werror_flag" ||
9814 test ! -s conftest.err
9815 } && test -s conftest.$ac_objext; then
9816 ac_header_compiler=yes
9817 else
9818 $as_echo "$as_me: failed program was:" >&5
9819 sed 's/^/| /' conftest.$ac_ext >&5
9821 ac_header_compiler=no
9824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9825 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9826 $as_echo "$ac_header_compiler" >&6; }
9828 # Is the header present?
9829 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9830 $as_echo_n "checking $ac_header presence... " >&6; }
9831 cat >conftest.$ac_ext <<_ACEOF
9832 /* confdefs.h. */
9833 _ACEOF
9834 cat confdefs.h >>conftest.$ac_ext
9835 cat >>conftest.$ac_ext <<_ACEOF
9836 /* end confdefs.h. */
9837 #include <$ac_header>
9838 _ACEOF
9839 if { (ac_try="$ac_cpp conftest.$ac_ext"
9840 case "(($ac_try" in
9841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9842 *) ac_try_echo=$ac_try;;
9843 esac
9844 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9845 $as_echo "$ac_try_echo") >&5
9846 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9847 ac_status=$?
9848 grep -v '^ *+' conftest.er1 >conftest.err
9849 rm -f conftest.er1
9850 cat conftest.err >&5
9851 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9852 (exit $ac_status); } >/dev/null && {
9853 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9854 test ! -s conftest.err
9855 }; then
9856 ac_header_preproc=yes
9857 else
9858 $as_echo "$as_me: failed program was:" >&5
9859 sed 's/^/| /' conftest.$ac_ext >&5
9861 ac_header_preproc=no
9864 rm -f conftest.err conftest.$ac_ext
9865 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9866 $as_echo "$ac_header_preproc" >&6; }
9868 # So? What about this header?
9869 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9870 yes:no: )
9871 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9872 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9873 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9874 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9875 ac_header_preproc=yes
9877 no:yes:* )
9878 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9879 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9880 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9881 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9882 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9883 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9884 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9885 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9886 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9887 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9888 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9889 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9892 esac
9893 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9894 $as_echo_n "checking for $ac_header... " >&6; }
9895 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9896 $as_echo_n "(cached) " >&6
9897 else
9898 eval "$as_ac_Header=\$ac_header_preproc"
9900 ac_res=`eval 'as_val=${'$as_ac_Header'}
9901 $as_echo "$as_val"'`
9902 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9903 $as_echo "$ac_res" >&6; }
9906 as_val=`eval 'as_val=${'$as_ac_Header'}
9907 $as_echo "$as_val"'`
9908 if test "x$as_val" = x""yes; then
9909 cat >>confdefs.h <<_ACEOF
9910 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9911 _ACEOF
9915 done
9917 CPPFLAGS=$cppflags_save
9921 if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF" -o -z "$SKIP_GTK"; then
9922 cppflags_save=$CPPFLAGS
9923 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9926 for ac_header in X11/xpm.h X11/Sunkeysym.h
9928 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9929 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9930 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9931 $as_echo_n "checking for $ac_header... " >&6; }
9932 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9933 $as_echo_n "(cached) " >&6
9935 ac_res=`eval 'as_val=${'$as_ac_Header'}
9936 $as_echo "$as_val"'`
9937 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9938 $as_echo "$ac_res" >&6; }
9939 else
9940 # Is the header compilable?
9941 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9942 $as_echo_n "checking $ac_header usability... " >&6; }
9943 cat >conftest.$ac_ext <<_ACEOF
9944 /* confdefs.h. */
9945 _ACEOF
9946 cat confdefs.h >>conftest.$ac_ext
9947 cat >>conftest.$ac_ext <<_ACEOF
9948 /* end confdefs.h. */
9949 $ac_includes_default
9950 #include <$ac_header>
9951 _ACEOF
9952 rm -f conftest.$ac_objext
9953 if { (ac_try="$ac_compile"
9954 case "(($ac_try" in
9955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9956 *) ac_try_echo=$ac_try;;
9957 esac
9958 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9959 $as_echo "$ac_try_echo") >&5
9960 (eval "$ac_compile") 2>conftest.er1
9961 ac_status=$?
9962 grep -v '^ *+' conftest.er1 >conftest.err
9963 rm -f conftest.er1
9964 cat conftest.err >&5
9965 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9966 (exit $ac_status); } && {
9967 test -z "$ac_c_werror_flag" ||
9968 test ! -s conftest.err
9969 } && test -s conftest.$ac_objext; then
9970 ac_header_compiler=yes
9971 else
9972 $as_echo "$as_me: failed program was:" >&5
9973 sed 's/^/| /' conftest.$ac_ext >&5
9975 ac_header_compiler=no
9978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9979 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9980 $as_echo "$ac_header_compiler" >&6; }
9982 # Is the header present?
9983 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9984 $as_echo_n "checking $ac_header presence... " >&6; }
9985 cat >conftest.$ac_ext <<_ACEOF
9986 /* confdefs.h. */
9987 _ACEOF
9988 cat confdefs.h >>conftest.$ac_ext
9989 cat >>conftest.$ac_ext <<_ACEOF
9990 /* end confdefs.h. */
9991 #include <$ac_header>
9992 _ACEOF
9993 if { (ac_try="$ac_cpp conftest.$ac_ext"
9994 case "(($ac_try" in
9995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9996 *) ac_try_echo=$ac_try;;
9997 esac
9998 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9999 $as_echo "$ac_try_echo") >&5
10000 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10001 ac_status=$?
10002 grep -v '^ *+' conftest.er1 >conftest.err
10003 rm -f conftest.er1
10004 cat conftest.err >&5
10005 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10006 (exit $ac_status); } >/dev/null && {
10007 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10008 test ! -s conftest.err
10009 }; then
10010 ac_header_preproc=yes
10011 else
10012 $as_echo "$as_me: failed program was:" >&5
10013 sed 's/^/| /' conftest.$ac_ext >&5
10015 ac_header_preproc=no
10018 rm -f conftest.err conftest.$ac_ext
10019 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10020 $as_echo "$ac_header_preproc" >&6; }
10022 # So? What about this header?
10023 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10024 yes:no: )
10025 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10026 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10027 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10028 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10029 ac_header_preproc=yes
10031 no:yes:* )
10032 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10033 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10034 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10035 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10036 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10037 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10038 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10039 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10040 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10041 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10042 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10043 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10046 esac
10047 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10048 $as_echo_n "checking for $ac_header... " >&6; }
10049 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10050 $as_echo_n "(cached) " >&6
10051 else
10052 eval "$as_ac_Header=\$ac_header_preproc"
10054 ac_res=`eval 'as_val=${'$as_ac_Header'}
10055 $as_echo "$as_val"'`
10056 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10057 $as_echo "$ac_res" >&6; }
10060 as_val=`eval 'as_val=${'$as_ac_Header'}
10061 $as_echo "$as_val"'`
10062 if test "x$as_val" = x""yes; then
10063 cat >>confdefs.h <<_ACEOF
10064 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10065 _ACEOF
10069 done
10072 if test ! "$enable_xim" = "no"; then
10073 { $as_echo "$as_me:$LINENO: checking for XIMText in X11/Xlib.h" >&5
10074 $as_echo_n "checking for XIMText in X11/Xlib.h... " >&6; }
10075 cat >conftest.$ac_ext <<_ACEOF
10076 /* confdefs.h. */
10077 _ACEOF
10078 cat confdefs.h >>conftest.$ac_ext
10079 cat >>conftest.$ac_ext <<_ACEOF
10080 /* end confdefs.h. */
10081 #include <X11/Xlib.h>
10082 _ACEOF
10083 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10084 $EGREP "XIMText" >/dev/null 2>&1; then
10085 { $as_echo "$as_me:$LINENO: result: yes" >&5
10086 $as_echo "yes" >&6; }
10087 else
10088 { $as_echo "$as_me:$LINENO: result: no; xim has been disabled" >&5
10089 $as_echo "no; xim has been disabled" >&6; }; enable_xim = "no"
10091 rm -f conftest*
10094 CPPFLAGS=$cppflags_save
10096 if test "$enable_xim" = "auto" -a "$enable_hangulinput" != "yes" \
10097 -a "x$GUITYPE" != "xNONE" ; then
10098 { $as_echo "$as_me:$LINENO: result: X GUI selected; xim has been enabled" >&5
10099 $as_echo "X GUI selected; xim has been enabled" >&6; }
10100 enable_xim="yes"
10104 if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
10105 cppflags_save=$CPPFLAGS
10106 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10107 { $as_echo "$as_me:$LINENO: checking for X11/Xmu/Editres.h" >&5
10108 $as_echo_n "checking for X11/Xmu/Editres.h... " >&6; }
10109 cat >conftest.$ac_ext <<_ACEOF
10110 /* confdefs.h. */
10111 _ACEOF
10112 cat confdefs.h >>conftest.$ac_ext
10113 cat >>conftest.$ac_ext <<_ACEOF
10114 /* end confdefs.h. */
10116 #include <X11/Intrinsic.h>
10117 #include <X11/Xmu/Editres.h>
10119 main ()
10121 int i; i = 0;
10123 return 0;
10125 _ACEOF
10126 rm -f conftest.$ac_objext
10127 if { (ac_try="$ac_compile"
10128 case "(($ac_try" in
10129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10130 *) ac_try_echo=$ac_try;;
10131 esac
10132 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10133 $as_echo "$ac_try_echo") >&5
10134 (eval "$ac_compile") 2>conftest.er1
10135 ac_status=$?
10136 grep -v '^ *+' conftest.er1 >conftest.err
10137 rm -f conftest.er1
10138 cat conftest.err >&5
10139 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10140 (exit $ac_status); } && {
10141 test -z "$ac_c_werror_flag" ||
10142 test ! -s conftest.err
10143 } && test -s conftest.$ac_objext; then
10144 { $as_echo "$as_me:$LINENO: result: yes" >&5
10145 $as_echo "yes" >&6; }
10146 cat >>confdefs.h <<\_ACEOF
10147 #define HAVE_X11_XMU_EDITRES_H 1
10148 _ACEOF
10150 else
10151 $as_echo "$as_me: failed program was:" >&5
10152 sed 's/^/| /' conftest.$ac_ext >&5
10154 { $as_echo "$as_me:$LINENO: result: no" >&5
10155 $as_echo "no" >&6; }
10158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10159 CPPFLAGS=$cppflags_save
10162 if test -z "$SKIP_MOTIF"; then
10163 cppflags_save=$CPPFLAGS
10164 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10172 for ac_header in Xm/Xm.h Xm/XpmP.h Xm/JoinSideT.h Xm/TraitP.h Xm/Manager.h \
10173 Xm/UnhighlightT.h Xm/Notebook.h
10175 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10176 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10177 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10178 $as_echo_n "checking for $ac_header... " >&6; }
10179 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10180 $as_echo_n "(cached) " >&6
10182 ac_res=`eval 'as_val=${'$as_ac_Header'}
10183 $as_echo "$as_val"'`
10184 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10185 $as_echo "$ac_res" >&6; }
10186 else
10187 # Is the header compilable?
10188 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10189 $as_echo_n "checking $ac_header usability... " >&6; }
10190 cat >conftest.$ac_ext <<_ACEOF
10191 /* confdefs.h. */
10192 _ACEOF
10193 cat confdefs.h >>conftest.$ac_ext
10194 cat >>conftest.$ac_ext <<_ACEOF
10195 /* end confdefs.h. */
10196 $ac_includes_default
10197 #include <$ac_header>
10198 _ACEOF
10199 rm -f conftest.$ac_objext
10200 if { (ac_try="$ac_compile"
10201 case "(($ac_try" in
10202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10203 *) ac_try_echo=$ac_try;;
10204 esac
10205 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10206 $as_echo "$ac_try_echo") >&5
10207 (eval "$ac_compile") 2>conftest.er1
10208 ac_status=$?
10209 grep -v '^ *+' conftest.er1 >conftest.err
10210 rm -f conftest.er1
10211 cat conftest.err >&5
10212 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10213 (exit $ac_status); } && {
10214 test -z "$ac_c_werror_flag" ||
10215 test ! -s conftest.err
10216 } && test -s conftest.$ac_objext; then
10217 ac_header_compiler=yes
10218 else
10219 $as_echo "$as_me: failed program was:" >&5
10220 sed 's/^/| /' conftest.$ac_ext >&5
10222 ac_header_compiler=no
10225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10226 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10227 $as_echo "$ac_header_compiler" >&6; }
10229 # Is the header present?
10230 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10231 $as_echo_n "checking $ac_header presence... " >&6; }
10232 cat >conftest.$ac_ext <<_ACEOF
10233 /* confdefs.h. */
10234 _ACEOF
10235 cat confdefs.h >>conftest.$ac_ext
10236 cat >>conftest.$ac_ext <<_ACEOF
10237 /* end confdefs.h. */
10238 #include <$ac_header>
10239 _ACEOF
10240 if { (ac_try="$ac_cpp conftest.$ac_ext"
10241 case "(($ac_try" in
10242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10243 *) ac_try_echo=$ac_try;;
10244 esac
10245 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10246 $as_echo "$ac_try_echo") >&5
10247 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10248 ac_status=$?
10249 grep -v '^ *+' conftest.er1 >conftest.err
10250 rm -f conftest.er1
10251 cat conftest.err >&5
10252 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253 (exit $ac_status); } >/dev/null && {
10254 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10255 test ! -s conftest.err
10256 }; then
10257 ac_header_preproc=yes
10258 else
10259 $as_echo "$as_me: failed program was:" >&5
10260 sed 's/^/| /' conftest.$ac_ext >&5
10262 ac_header_preproc=no
10265 rm -f conftest.err conftest.$ac_ext
10266 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10267 $as_echo "$ac_header_preproc" >&6; }
10269 # So? What about this header?
10270 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10271 yes:no: )
10272 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10273 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10274 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10275 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10276 ac_header_preproc=yes
10278 no:yes:* )
10279 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10280 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10281 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10282 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10283 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10284 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10285 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10286 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10287 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10288 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10289 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10290 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10293 esac
10294 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10295 $as_echo_n "checking for $ac_header... " >&6; }
10296 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10297 $as_echo_n "(cached) " >&6
10298 else
10299 eval "$as_ac_Header=\$ac_header_preproc"
10301 ac_res=`eval 'as_val=${'$as_ac_Header'}
10302 $as_echo "$as_val"'`
10303 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10304 $as_echo "$ac_res" >&6; }
10307 as_val=`eval 'as_val=${'$as_ac_Header'}
10308 $as_echo "$as_val"'`
10309 if test "x$as_val" = x""yes; then
10310 cat >>confdefs.h <<_ACEOF
10311 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10312 _ACEOF
10316 done
10319 if test $ac_cv_header_Xm_XpmP_h = yes; then
10320 { $as_echo "$as_me:$LINENO: checking for XpmAttributes_21 in Xm/XpmP.h" >&5
10321 $as_echo_n "checking for XpmAttributes_21 in Xm/XpmP.h... " >&6; }
10322 cat >conftest.$ac_ext <<_ACEOF
10323 /* confdefs.h. */
10324 _ACEOF
10325 cat confdefs.h >>conftest.$ac_ext
10326 cat >>conftest.$ac_ext <<_ACEOF
10327 /* end confdefs.h. */
10328 #include <Xm/XpmP.h>
10330 main ()
10332 XpmAttributes_21 attr;
10334 return 0;
10336 _ACEOF
10337 rm -f conftest.$ac_objext
10338 if { (ac_try="$ac_compile"
10339 case "(($ac_try" in
10340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10341 *) ac_try_echo=$ac_try;;
10342 esac
10343 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10344 $as_echo "$ac_try_echo") >&5
10345 (eval "$ac_compile") 2>conftest.er1
10346 ac_status=$?
10347 grep -v '^ *+' conftest.er1 >conftest.err
10348 rm -f conftest.er1
10349 cat conftest.err >&5
10350 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10351 (exit $ac_status); } && {
10352 test -z "$ac_c_werror_flag" ||
10353 test ! -s conftest.err
10354 } && test -s conftest.$ac_objext; then
10355 { $as_echo "$as_me:$LINENO: result: yes" >&5
10356 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
10357 #define XPMATTRIBUTES_TYPE XpmAttributes_21
10358 _ACEOF
10360 else
10361 $as_echo "$as_me: failed program was:" >&5
10362 sed 's/^/| /' conftest.$ac_ext >&5
10364 { $as_echo "$as_me:$LINENO: result: no" >&5
10365 $as_echo "no" >&6; }; cat >>confdefs.h <<\_ACEOF
10366 #define XPMATTRIBUTES_TYPE XpmAttributes
10367 _ACEOF
10372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10373 else
10374 cat >>confdefs.h <<\_ACEOF
10375 #define XPMATTRIBUTES_TYPE XpmAttributes
10376 _ACEOF
10379 CPPFLAGS=$cppflags_save
10382 if test "x$GUITYPE" = "xNONE" -a "$enable_xim" = "yes"; then
10383 { $as_echo "$as_me:$LINENO: result: no GUI selected; xim has been disabled" >&5
10384 $as_echo "no GUI selected; xim has been disabled" >&6; }
10385 enable_xim="no"
10387 if test "x$GUITYPE" = "xNONE" -a "$enable_fontset" = "yes"; then
10388 { $as_echo "$as_me:$LINENO: result: no GUI selected; fontset has been disabled" >&5
10389 $as_echo "no GUI selected; fontset has been disabled" >&6; }
10390 enable_fontset="no"
10392 if test "x$GUITYPE:$enable_fontset" = "xGTK:yes" -a "0$gtk_major_version" -ge 2; then
10393 { $as_echo "$as_me:$LINENO: result: GTK+ 2 GUI selected; fontset has been disabled" >&5
10394 $as_echo "GTK+ 2 GUI selected; fontset has been disabled" >&6; }
10395 enable_fontset="no"
10398 if test -z "$SKIP_PHOTON"; then
10399 GUITYPE=PHOTONGUI
10407 if test "$enable_workshop" = "yes" -a -n "$SKIP_MOTIF"; then
10408 { { $as_echo "$as_me:$LINENO: error: cannot use workshop without Motif" >&5
10409 $as_echo "$as_me: error: cannot use workshop without Motif" >&2;}
10410 { (exit 1); exit 1; }; }
10413 if test "$enable_xim" = "yes"; then
10414 cat >>confdefs.h <<\_ACEOF
10415 #define FEAT_XIM 1
10416 _ACEOF
10419 if test "$enable_fontset" = "yes"; then
10420 cat >>confdefs.h <<\_ACEOF
10421 #define FEAT_XFONTSET 1
10422 _ACEOF
10429 if test "$enable_hangulinput" = "yes"; then
10430 if test "x$GUITYPE" = "xNONE"; then
10431 { $as_echo "$as_me:$LINENO: result: no GUI selected; hangul input has been disabled" >&5
10432 $as_echo "no GUI selected; hangul input has been disabled" >&6; }
10433 enable_hangulinput=no
10434 else
10435 cat >>confdefs.h <<\_ACEOF
10436 #define FEAT_HANGULIN 1
10437 _ACEOF
10439 HANGULIN_SRC=hangulin.c
10441 HANGULIN_OBJ=objects/hangulin.o
10447 { $as_echo "$as_me:$LINENO: checking whether toupper is broken" >&5
10448 $as_echo_n "checking whether toupper is broken... " >&6; }
10449 if test "${vim_cv_toupper_broken+set}" = set; then
10450 $as_echo_n "(cached) " >&6
10451 else
10453 if test "$cross_compiling" = yes; then
10455 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_toupper_broken'" >&5
10456 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_toupper_broken'" >&2;}
10457 { (exit 1); exit 1; }; }
10459 else
10460 cat >conftest.$ac_ext <<_ACEOF
10462 #include "confdefs.h"
10463 #include <ctype.h>
10464 #if STDC_HEADERS
10465 # include <stdlib.h>
10466 # include <stddef.h>
10467 #endif
10468 main() { exit(toupper('A') == 'A' && tolower('z') == 'z'); }
10470 _ACEOF
10471 rm -f conftest$ac_exeext
10472 if { (ac_try="$ac_link"
10473 case "(($ac_try" in
10474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10475 *) ac_try_echo=$ac_try;;
10476 esac
10477 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10478 $as_echo "$ac_try_echo") >&5
10479 (eval "$ac_link") 2>&5
10480 ac_status=$?
10481 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10482 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10483 { (case "(($ac_try" in
10484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10485 *) ac_try_echo=$ac_try;;
10486 esac
10487 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10488 $as_echo "$ac_try_echo") >&5
10489 (eval "$ac_try") 2>&5
10490 ac_status=$?
10491 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10492 (exit $ac_status); }; }; then
10494 vim_cv_toupper_broken=yes
10496 else
10497 $as_echo "$as_me: program exited with status $ac_status" >&5
10498 $as_echo "$as_me: failed program was:" >&5
10499 sed 's/^/| /' conftest.$ac_ext >&5
10501 ( exit $ac_status )
10503 vim_cv_toupper_broken=no
10506 rm -rf conftest.dSYM
10507 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10512 { $as_echo "$as_me:$LINENO: result: $vim_cv_toupper_broken" >&5
10513 $as_echo "$vim_cv_toupper_broken" >&6; }
10515 if test "x$vim_cv_toupper_broken" = "xyes" ; then
10516 cat >>confdefs.h <<\_ACEOF
10517 #define BROKEN_TOUPPER 1
10518 _ACEOF
10522 { $as_echo "$as_me:$LINENO: checking whether __DATE__ and __TIME__ work" >&5
10523 $as_echo_n "checking whether __DATE__ and __TIME__ work... " >&6; }
10524 cat >conftest.$ac_ext <<_ACEOF
10525 /* confdefs.h. */
10526 _ACEOF
10527 cat confdefs.h >>conftest.$ac_ext
10528 cat >>conftest.$ac_ext <<_ACEOF
10529 /* end confdefs.h. */
10530 #include <stdio.h>
10532 main ()
10534 printf("(" __DATE__ " " __TIME__ ")");
10536 return 0;
10538 _ACEOF
10539 rm -f conftest.$ac_objext
10540 if { (ac_try="$ac_compile"
10541 case "(($ac_try" in
10542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10543 *) ac_try_echo=$ac_try;;
10544 esac
10545 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10546 $as_echo "$ac_try_echo") >&5
10547 (eval "$ac_compile") 2>conftest.er1
10548 ac_status=$?
10549 grep -v '^ *+' conftest.er1 >conftest.err
10550 rm -f conftest.er1
10551 cat conftest.err >&5
10552 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10553 (exit $ac_status); } && {
10554 test -z "$ac_c_werror_flag" ||
10555 test ! -s conftest.err
10556 } && test -s conftest.$ac_objext; then
10557 { $as_echo "$as_me:$LINENO: result: yes" >&5
10558 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
10559 #define HAVE_DATE_TIME 1
10560 _ACEOF
10562 else
10563 $as_echo "$as_me: failed program was:" >&5
10564 sed 's/^/| /' conftest.$ac_ext >&5
10566 { $as_echo "$as_me:$LINENO: result: no" >&5
10567 $as_echo "no" >&6; }
10570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10572 { $as_echo "$as_me:$LINENO: checking whether __attribute__((unused)) is allowed" >&5
10573 $as_echo_n "checking whether __attribute__((unused)) is allowed... " >&6; }
10574 cat >conftest.$ac_ext <<_ACEOF
10575 /* confdefs.h. */
10576 _ACEOF
10577 cat confdefs.h >>conftest.$ac_ext
10578 cat >>conftest.$ac_ext <<_ACEOF
10579 /* end confdefs.h. */
10580 #include <stdio.h>
10582 main ()
10584 int x __attribute__((unused));
10586 return 0;
10588 _ACEOF
10589 rm -f conftest.$ac_objext
10590 if { (ac_try="$ac_compile"
10591 case "(($ac_try" in
10592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10593 *) ac_try_echo=$ac_try;;
10594 esac
10595 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10596 $as_echo "$ac_try_echo") >&5
10597 (eval "$ac_compile") 2>conftest.er1
10598 ac_status=$?
10599 grep -v '^ *+' conftest.er1 >conftest.err
10600 rm -f conftest.er1
10601 cat conftest.err >&5
10602 $as_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_objext; then
10607 { $as_echo "$as_me:$LINENO: result: yes" >&5
10608 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
10609 #define HAVE_ATTRIBUTE_UNUSED 1
10610 _ACEOF
10612 else
10613 $as_echo "$as_me: failed program was:" >&5
10614 sed 's/^/| /' conftest.$ac_ext >&5
10616 { $as_echo "$as_me:$LINENO: result: no" >&5
10617 $as_echo "no" >&6; }
10620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10622 if test "${ac_cv_header_elf_h+set}" = set; then
10623 { $as_echo "$as_me:$LINENO: checking for elf.h" >&5
10624 $as_echo_n "checking for elf.h... " >&6; }
10625 if test "${ac_cv_header_elf_h+set}" = set; then
10626 $as_echo_n "(cached) " >&6
10628 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5
10629 $as_echo "$ac_cv_header_elf_h" >&6; }
10630 else
10631 # Is the header compilable?
10632 { $as_echo "$as_me:$LINENO: checking elf.h usability" >&5
10633 $as_echo_n "checking elf.h usability... " >&6; }
10634 cat >conftest.$ac_ext <<_ACEOF
10635 /* confdefs.h. */
10636 _ACEOF
10637 cat confdefs.h >>conftest.$ac_ext
10638 cat >>conftest.$ac_ext <<_ACEOF
10639 /* end confdefs.h. */
10640 $ac_includes_default
10641 #include <elf.h>
10642 _ACEOF
10643 rm -f conftest.$ac_objext
10644 if { (ac_try="$ac_compile"
10645 case "(($ac_try" in
10646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10647 *) ac_try_echo=$ac_try;;
10648 esac
10649 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10650 $as_echo "$ac_try_echo") >&5
10651 (eval "$ac_compile") 2>conftest.er1
10652 ac_status=$?
10653 grep -v '^ *+' conftest.er1 >conftest.err
10654 rm -f conftest.er1
10655 cat conftest.err >&5
10656 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10657 (exit $ac_status); } && {
10658 test -z "$ac_c_werror_flag" ||
10659 test ! -s conftest.err
10660 } && test -s conftest.$ac_objext; then
10661 ac_header_compiler=yes
10662 else
10663 $as_echo "$as_me: failed program was:" >&5
10664 sed 's/^/| /' conftest.$ac_ext >&5
10666 ac_header_compiler=no
10669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10670 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10671 $as_echo "$ac_header_compiler" >&6; }
10673 # Is the header present?
10674 { $as_echo "$as_me:$LINENO: checking elf.h presence" >&5
10675 $as_echo_n "checking elf.h presence... " >&6; }
10676 cat >conftest.$ac_ext <<_ACEOF
10677 /* confdefs.h. */
10678 _ACEOF
10679 cat confdefs.h >>conftest.$ac_ext
10680 cat >>conftest.$ac_ext <<_ACEOF
10681 /* end confdefs.h. */
10682 #include <elf.h>
10683 _ACEOF
10684 if { (ac_try="$ac_cpp conftest.$ac_ext"
10685 case "(($ac_try" in
10686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10687 *) ac_try_echo=$ac_try;;
10688 esac
10689 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10690 $as_echo "$ac_try_echo") >&5
10691 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10692 ac_status=$?
10693 grep -v '^ *+' conftest.er1 >conftest.err
10694 rm -f conftest.er1
10695 cat conftest.err >&5
10696 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10697 (exit $ac_status); } >/dev/null && {
10698 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10699 test ! -s conftest.err
10700 }; then
10701 ac_header_preproc=yes
10702 else
10703 $as_echo "$as_me: failed program was:" >&5
10704 sed 's/^/| /' conftest.$ac_ext >&5
10706 ac_header_preproc=no
10709 rm -f conftest.err conftest.$ac_ext
10710 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10711 $as_echo "$ac_header_preproc" >&6; }
10713 # So? What about this header?
10714 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10715 yes:no: )
10716 { $as_echo "$as_me:$LINENO: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&5
10717 $as_echo "$as_me: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10718 { $as_echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the compiler's result" >&5
10719 $as_echo "$as_me: WARNING: elf.h: proceeding with the compiler's result" >&2;}
10720 ac_header_preproc=yes
10722 no:yes:* )
10723 { $as_echo "$as_me:$LINENO: WARNING: elf.h: present but cannot be compiled" >&5
10724 $as_echo "$as_me: WARNING: elf.h: present but cannot be compiled" >&2;}
10725 { $as_echo "$as_me:$LINENO: WARNING: elf.h: check for missing prerequisite headers?" >&5
10726 $as_echo "$as_me: WARNING: elf.h: check for missing prerequisite headers?" >&2;}
10727 { $as_echo "$as_me:$LINENO: WARNING: elf.h: see the Autoconf documentation" >&5
10728 $as_echo "$as_me: WARNING: elf.h: see the Autoconf documentation" >&2;}
10729 { $as_echo "$as_me:$LINENO: WARNING: elf.h: section \"Present But Cannot Be Compiled\"" >&5
10730 $as_echo "$as_me: WARNING: elf.h: section \"Present But Cannot Be Compiled\"" >&2;}
10731 { $as_echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the preprocessor's result" >&5
10732 $as_echo "$as_me: WARNING: elf.h: proceeding with the preprocessor's result" >&2;}
10733 { $as_echo "$as_me:$LINENO: WARNING: elf.h: in the future, the compiler will take precedence" >&5
10734 $as_echo "$as_me: WARNING: elf.h: in the future, the compiler will take precedence" >&2;}
10737 esac
10738 { $as_echo "$as_me:$LINENO: checking for elf.h" >&5
10739 $as_echo_n "checking for elf.h... " >&6; }
10740 if test "${ac_cv_header_elf_h+set}" = set; then
10741 $as_echo_n "(cached) " >&6
10742 else
10743 ac_cv_header_elf_h=$ac_header_preproc
10745 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5
10746 $as_echo "$ac_cv_header_elf_h" >&6; }
10749 if test "x$ac_cv_header_elf_h" = x""yes; then
10750 HAS_ELF=1
10754 if test "$HAS_ELF" = 1; then
10756 { $as_echo "$as_me:$LINENO: checking for main in -lelf" >&5
10757 $as_echo_n "checking for main in -lelf... " >&6; }
10758 if test "${ac_cv_lib_elf_main+set}" = set; then
10759 $as_echo_n "(cached) " >&6
10760 else
10761 ac_check_lib_save_LIBS=$LIBS
10762 LIBS="-lelf $LIBS"
10763 cat >conftest.$ac_ext <<_ACEOF
10764 /* confdefs.h. */
10765 _ACEOF
10766 cat confdefs.h >>conftest.$ac_ext
10767 cat >>conftest.$ac_ext <<_ACEOF
10768 /* end confdefs.h. */
10772 main ()
10774 return main ();
10776 return 0;
10778 _ACEOF
10779 rm -f conftest.$ac_objext conftest$ac_exeext
10780 if { (ac_try="$ac_link"
10781 case "(($ac_try" in
10782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10783 *) ac_try_echo=$ac_try;;
10784 esac
10785 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10786 $as_echo "$ac_try_echo") >&5
10787 (eval "$ac_link") 2>conftest.er1
10788 ac_status=$?
10789 grep -v '^ *+' conftest.er1 >conftest.err
10790 rm -f conftest.er1
10791 cat conftest.err >&5
10792 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10793 (exit $ac_status); } && {
10794 test -z "$ac_c_werror_flag" ||
10795 test ! -s conftest.err
10796 } && test -s conftest$ac_exeext && {
10797 test "$cross_compiling" = yes ||
10798 $as_test_x conftest$ac_exeext
10799 }; then
10800 ac_cv_lib_elf_main=yes
10801 else
10802 $as_echo "$as_me: failed program was:" >&5
10803 sed 's/^/| /' conftest.$ac_ext >&5
10805 ac_cv_lib_elf_main=no
10808 rm -rf conftest.dSYM
10809 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10810 conftest$ac_exeext conftest.$ac_ext
10811 LIBS=$ac_check_lib_save_LIBS
10813 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_elf_main" >&5
10814 $as_echo "$ac_cv_lib_elf_main" >&6; }
10815 if test "x$ac_cv_lib_elf_main" = x""yes; then
10816 cat >>confdefs.h <<_ACEOF
10817 #define HAVE_LIBELF 1
10818 _ACEOF
10820 LIBS="-lelf $LIBS"
10831 ac_header_dirent=no
10832 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10833 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10834 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10835 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
10836 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10837 $as_echo_n "(cached) " >&6
10838 else
10839 cat >conftest.$ac_ext <<_ACEOF
10840 /* confdefs.h. */
10841 _ACEOF
10842 cat confdefs.h >>conftest.$ac_ext
10843 cat >>conftest.$ac_ext <<_ACEOF
10844 /* end confdefs.h. */
10845 #include <sys/types.h>
10846 #include <$ac_hdr>
10849 main ()
10851 if ((DIR *) 0)
10852 return 0;
10854 return 0;
10856 _ACEOF
10857 rm -f conftest.$ac_objext
10858 if { (ac_try="$ac_compile"
10859 case "(($ac_try" in
10860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10861 *) ac_try_echo=$ac_try;;
10862 esac
10863 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10864 $as_echo "$ac_try_echo") >&5
10865 (eval "$ac_compile") 2>conftest.er1
10866 ac_status=$?
10867 grep -v '^ *+' conftest.er1 >conftest.err
10868 rm -f conftest.er1
10869 cat conftest.err >&5
10870 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10871 (exit $ac_status); } && {
10872 test -z "$ac_c_werror_flag" ||
10873 test ! -s conftest.err
10874 } && test -s conftest.$ac_objext; then
10875 eval "$as_ac_Header=yes"
10876 else
10877 $as_echo "$as_me: failed program was:" >&5
10878 sed 's/^/| /' conftest.$ac_ext >&5
10880 eval "$as_ac_Header=no"
10883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10885 ac_res=`eval 'as_val=${'$as_ac_Header'}
10886 $as_echo "$as_val"'`
10887 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10888 $as_echo "$ac_res" >&6; }
10889 as_val=`eval 'as_val=${'$as_ac_Header'}
10890 $as_echo "$as_val"'`
10891 if test "x$as_val" = x""yes; then
10892 cat >>confdefs.h <<_ACEOF
10893 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10894 _ACEOF
10896 ac_header_dirent=$ac_hdr; break
10899 done
10900 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10901 if test $ac_header_dirent = dirent.h; then
10902 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
10903 $as_echo_n "checking for library containing opendir... " >&6; }
10904 if test "${ac_cv_search_opendir+set}" = set; then
10905 $as_echo_n "(cached) " >&6
10906 else
10907 ac_func_search_save_LIBS=$LIBS
10908 cat >conftest.$ac_ext <<_ACEOF
10909 /* confdefs.h. */
10910 _ACEOF
10911 cat confdefs.h >>conftest.$ac_ext
10912 cat >>conftest.$ac_ext <<_ACEOF
10913 /* end confdefs.h. */
10915 /* Override any GCC internal prototype to avoid an error.
10916 Use char because int might match the return type of a GCC
10917 builtin and then its argument prototype would still apply. */
10918 #ifdef __cplusplus
10919 extern "C"
10920 #endif
10921 char opendir ();
10923 main ()
10925 return opendir ();
10927 return 0;
10929 _ACEOF
10930 for ac_lib in '' dir; do
10931 if test -z "$ac_lib"; then
10932 ac_res="none required"
10933 else
10934 ac_res=-l$ac_lib
10935 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10937 rm -f conftest.$ac_objext conftest$ac_exeext
10938 if { (ac_try="$ac_link"
10939 case "(($ac_try" in
10940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10941 *) ac_try_echo=$ac_try;;
10942 esac
10943 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10944 $as_echo "$ac_try_echo") >&5
10945 (eval "$ac_link") 2>conftest.er1
10946 ac_status=$?
10947 grep -v '^ *+' conftest.er1 >conftest.err
10948 rm -f conftest.er1
10949 cat conftest.err >&5
10950 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10951 (exit $ac_status); } && {
10952 test -z "$ac_c_werror_flag" ||
10953 test ! -s conftest.err
10954 } && test -s conftest$ac_exeext && {
10955 test "$cross_compiling" = yes ||
10956 $as_test_x conftest$ac_exeext
10957 }; then
10958 ac_cv_search_opendir=$ac_res
10959 else
10960 $as_echo "$as_me: failed program was:" >&5
10961 sed 's/^/| /' conftest.$ac_ext >&5
10966 rm -rf conftest.dSYM
10967 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10968 conftest$ac_exeext
10969 if test "${ac_cv_search_opendir+set}" = set; then
10970 break
10972 done
10973 if test "${ac_cv_search_opendir+set}" = set; then
10975 else
10976 ac_cv_search_opendir=no
10978 rm conftest.$ac_ext
10979 LIBS=$ac_func_search_save_LIBS
10981 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10982 $as_echo "$ac_cv_search_opendir" >&6; }
10983 ac_res=$ac_cv_search_opendir
10984 if test "$ac_res" != no; then
10985 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10989 else
10990 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
10991 $as_echo_n "checking for library containing opendir... " >&6; }
10992 if test "${ac_cv_search_opendir+set}" = set; then
10993 $as_echo_n "(cached) " >&6
10994 else
10995 ac_func_search_save_LIBS=$LIBS
10996 cat >conftest.$ac_ext <<_ACEOF
10997 /* confdefs.h. */
10998 _ACEOF
10999 cat confdefs.h >>conftest.$ac_ext
11000 cat >>conftest.$ac_ext <<_ACEOF
11001 /* end confdefs.h. */
11003 /* Override any GCC internal prototype to avoid an error.
11004 Use char because int might match the return type of a GCC
11005 builtin and then its argument prototype would still apply. */
11006 #ifdef __cplusplus
11007 extern "C"
11008 #endif
11009 char opendir ();
11011 main ()
11013 return opendir ();
11015 return 0;
11017 _ACEOF
11018 for ac_lib in '' x; do
11019 if test -z "$ac_lib"; then
11020 ac_res="none required"
11021 else
11022 ac_res=-l$ac_lib
11023 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11025 rm -f conftest.$ac_objext conftest$ac_exeext
11026 if { (ac_try="$ac_link"
11027 case "(($ac_try" in
11028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11029 *) ac_try_echo=$ac_try;;
11030 esac
11031 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11032 $as_echo "$ac_try_echo") >&5
11033 (eval "$ac_link") 2>conftest.er1
11034 ac_status=$?
11035 grep -v '^ *+' conftest.er1 >conftest.err
11036 rm -f conftest.er1
11037 cat conftest.err >&5
11038 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11039 (exit $ac_status); } && {
11040 test -z "$ac_c_werror_flag" ||
11041 test ! -s conftest.err
11042 } && test -s conftest$ac_exeext && {
11043 test "$cross_compiling" = yes ||
11044 $as_test_x conftest$ac_exeext
11045 }; then
11046 ac_cv_search_opendir=$ac_res
11047 else
11048 $as_echo "$as_me: failed program was:" >&5
11049 sed 's/^/| /' conftest.$ac_ext >&5
11054 rm -rf conftest.dSYM
11055 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11056 conftest$ac_exeext
11057 if test "${ac_cv_search_opendir+set}" = set; then
11058 break
11060 done
11061 if test "${ac_cv_search_opendir+set}" = set; then
11063 else
11064 ac_cv_search_opendir=no
11066 rm conftest.$ac_ext
11067 LIBS=$ac_func_search_save_LIBS
11069 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11070 $as_echo "$ac_cv_search_opendir" >&6; }
11071 ac_res=$ac_cv_search_opendir
11072 if test "$ac_res" != no; then
11073 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11080 if test $ac_cv_header_sys_wait_h = no; then
11081 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that defines union wait" >&5
11082 $as_echo_n "checking for sys/wait.h that defines union wait... " >&6; }
11083 cat >conftest.$ac_ext <<_ACEOF
11084 /* confdefs.h. */
11085 _ACEOF
11086 cat confdefs.h >>conftest.$ac_ext
11087 cat >>conftest.$ac_ext <<_ACEOF
11088 /* end confdefs.h. */
11089 #include <sys/wait.h>
11091 main ()
11093 union wait xx, yy; xx = yy
11095 return 0;
11097 _ACEOF
11098 rm -f conftest.$ac_objext
11099 if { (ac_try="$ac_compile"
11100 case "(($ac_try" in
11101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11102 *) ac_try_echo=$ac_try;;
11103 esac
11104 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11105 $as_echo "$ac_try_echo") >&5
11106 (eval "$ac_compile") 2>conftest.er1
11107 ac_status=$?
11108 grep -v '^ *+' conftest.er1 >conftest.err
11109 rm -f conftest.er1
11110 cat conftest.err >&5
11111 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11112 (exit $ac_status); } && {
11113 test -z "$ac_c_werror_flag" ||
11114 test ! -s conftest.err
11115 } && test -s conftest.$ac_objext; then
11116 { $as_echo "$as_me:$LINENO: result: yes" >&5
11117 $as_echo "yes" >&6; }
11118 cat >>confdefs.h <<\_ACEOF
11119 #define HAVE_SYS_WAIT_H 1
11120 _ACEOF
11122 cat >>confdefs.h <<\_ACEOF
11123 #define HAVE_UNION_WAIT 1
11124 _ACEOF
11126 else
11127 $as_echo "$as_me: failed program was:" >&5
11128 sed 's/^/| /' conftest.$ac_ext >&5
11130 { $as_echo "$as_me:$LINENO: result: no" >&5
11131 $as_echo "no" >&6; }
11134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11177 for ac_header in stdarg.h stdlib.h string.h sys/select.h sys/utsname.h \
11178 termcap.h fcntl.h sgtty.h sys/ioctl.h sys/time.h sys/types.h termio.h \
11179 iconv.h langinfo.h math.h unistd.h stropts.h errno.h \
11180 sys/resource.h sys/systeminfo.h locale.h \
11181 sys/stream.h termios.h libc.h sys/statfs.h \
11182 poll.h sys/poll.h pwd.h utime.h sys/param.h libintl.h \
11183 libgen.h util/debug.h util/msg18n.h frame.h \
11184 sys/acl.h sys/access.h sys/sysinfo.h wchar.h wctype.h
11186 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11187 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11188 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11189 $as_echo_n "checking for $ac_header... " >&6; }
11190 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11191 $as_echo_n "(cached) " >&6
11193 ac_res=`eval 'as_val=${'$as_ac_Header'}
11194 $as_echo "$as_val"'`
11195 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11196 $as_echo "$ac_res" >&6; }
11197 else
11198 # Is the header compilable?
11199 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11200 $as_echo_n "checking $ac_header usability... " >&6; }
11201 cat >conftest.$ac_ext <<_ACEOF
11202 /* confdefs.h. */
11203 _ACEOF
11204 cat confdefs.h >>conftest.$ac_ext
11205 cat >>conftest.$ac_ext <<_ACEOF
11206 /* end confdefs.h. */
11207 $ac_includes_default
11208 #include <$ac_header>
11209 _ACEOF
11210 rm -f conftest.$ac_objext
11211 if { (ac_try="$ac_compile"
11212 case "(($ac_try" in
11213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11214 *) ac_try_echo=$ac_try;;
11215 esac
11216 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11217 $as_echo "$ac_try_echo") >&5
11218 (eval "$ac_compile") 2>conftest.er1
11219 ac_status=$?
11220 grep -v '^ *+' conftest.er1 >conftest.err
11221 rm -f conftest.er1
11222 cat conftest.err >&5
11223 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11224 (exit $ac_status); } && {
11225 test -z "$ac_c_werror_flag" ||
11226 test ! -s conftest.err
11227 } && test -s conftest.$ac_objext; then
11228 ac_header_compiler=yes
11229 else
11230 $as_echo "$as_me: failed program was:" >&5
11231 sed 's/^/| /' conftest.$ac_ext >&5
11233 ac_header_compiler=no
11236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11237 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11238 $as_echo "$ac_header_compiler" >&6; }
11240 # Is the header present?
11241 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11242 $as_echo_n "checking $ac_header presence... " >&6; }
11243 cat >conftest.$ac_ext <<_ACEOF
11244 /* confdefs.h. */
11245 _ACEOF
11246 cat confdefs.h >>conftest.$ac_ext
11247 cat >>conftest.$ac_ext <<_ACEOF
11248 /* end confdefs.h. */
11249 #include <$ac_header>
11250 _ACEOF
11251 if { (ac_try="$ac_cpp conftest.$ac_ext"
11252 case "(($ac_try" in
11253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11254 *) ac_try_echo=$ac_try;;
11255 esac
11256 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11257 $as_echo "$ac_try_echo") >&5
11258 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11259 ac_status=$?
11260 grep -v '^ *+' conftest.er1 >conftest.err
11261 rm -f conftest.er1
11262 cat conftest.err >&5
11263 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11264 (exit $ac_status); } >/dev/null && {
11265 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11266 test ! -s conftest.err
11267 }; then
11268 ac_header_preproc=yes
11269 else
11270 $as_echo "$as_me: failed program was:" >&5
11271 sed 's/^/| /' conftest.$ac_ext >&5
11273 ac_header_preproc=no
11276 rm -f conftest.err conftest.$ac_ext
11277 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11278 $as_echo "$ac_header_preproc" >&6; }
11280 # So? What about this header?
11281 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11282 yes:no: )
11283 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11284 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11285 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11286 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11287 ac_header_preproc=yes
11289 no:yes:* )
11290 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11291 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11292 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11293 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11294 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11295 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11296 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11297 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11298 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11299 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11300 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11301 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11304 esac
11305 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11306 $as_echo_n "checking for $ac_header... " >&6; }
11307 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11308 $as_echo_n "(cached) " >&6
11309 else
11310 eval "$as_ac_Header=\$ac_header_preproc"
11312 ac_res=`eval 'as_val=${'$as_ac_Header'}
11313 $as_echo "$as_val"'`
11314 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11315 $as_echo "$ac_res" >&6; }
11318 as_val=`eval 'as_val=${'$as_ac_Header'}
11319 $as_echo "$as_val"'`
11320 if test "x$as_val" = x""yes; then
11321 cat >>confdefs.h <<_ACEOF
11322 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11323 _ACEOF
11327 done
11331 for ac_header in sys/ptem.h
11333 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11334 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11335 $as_echo_n "checking for $ac_header... " >&6; }
11336 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11337 $as_echo_n "(cached) " >&6
11338 else
11339 cat >conftest.$ac_ext <<_ACEOF
11340 /* confdefs.h. */
11341 _ACEOF
11342 cat confdefs.h >>conftest.$ac_ext
11343 cat >>conftest.$ac_ext <<_ACEOF
11344 /* end confdefs.h. */
11345 #if defined HAVE_SYS_STREAM_H
11346 # include <sys/stream.h>
11347 #endif
11349 #include <$ac_header>
11350 _ACEOF
11351 rm -f conftest.$ac_objext
11352 if { (ac_try="$ac_compile"
11353 case "(($ac_try" in
11354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11355 *) ac_try_echo=$ac_try;;
11356 esac
11357 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11358 $as_echo "$ac_try_echo") >&5
11359 (eval "$ac_compile") 2>conftest.er1
11360 ac_status=$?
11361 grep -v '^ *+' conftest.er1 >conftest.err
11362 rm -f conftest.er1
11363 cat conftest.err >&5
11364 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11365 (exit $ac_status); } && {
11366 test -z "$ac_c_werror_flag" ||
11367 test ! -s conftest.err
11368 } && test -s conftest.$ac_objext; then
11369 eval "$as_ac_Header=yes"
11370 else
11371 $as_echo "$as_me: failed program was:" >&5
11372 sed 's/^/| /' conftest.$ac_ext >&5
11374 eval "$as_ac_Header=no"
11377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11379 ac_res=`eval 'as_val=${'$as_ac_Header'}
11380 $as_echo "$as_val"'`
11381 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11382 $as_echo "$ac_res" >&6; }
11383 as_val=`eval 'as_val=${'$as_ac_Header'}
11384 $as_echo "$as_val"'`
11385 if test "x$as_val" = x""yes; then
11386 cat >>confdefs.h <<_ACEOF
11387 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11388 _ACEOF
11392 done
11396 for ac_header in sys/sysctl.h
11398 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11399 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11400 $as_echo_n "checking for $ac_header... " >&6; }
11401 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11402 $as_echo_n "(cached) " >&6
11403 else
11404 cat >conftest.$ac_ext <<_ACEOF
11405 /* confdefs.h. */
11406 _ACEOF
11407 cat confdefs.h >>conftest.$ac_ext
11408 cat >>conftest.$ac_ext <<_ACEOF
11409 /* end confdefs.h. */
11410 #if defined HAVE_SYS_PARAM_H
11411 # include <sys/param.h>
11412 #endif
11414 #include <$ac_header>
11415 _ACEOF
11416 rm -f conftest.$ac_objext
11417 if { (ac_try="$ac_compile"
11418 case "(($ac_try" in
11419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11420 *) ac_try_echo=$ac_try;;
11421 esac
11422 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11423 $as_echo "$ac_try_echo") >&5
11424 (eval "$ac_compile") 2>conftest.er1
11425 ac_status=$?
11426 grep -v '^ *+' conftest.er1 >conftest.err
11427 rm -f conftest.er1
11428 cat conftest.err >&5
11429 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11430 (exit $ac_status); } && {
11431 test -z "$ac_c_werror_flag" ||
11432 test ! -s conftest.err
11433 } && test -s conftest.$ac_objext; then
11434 eval "$as_ac_Header=yes"
11435 else
11436 $as_echo "$as_me: failed program was:" >&5
11437 sed 's/^/| /' conftest.$ac_ext >&5
11439 eval "$as_ac_Header=no"
11442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11444 ac_res=`eval 'as_val=${'$as_ac_Header'}
11445 $as_echo "$as_val"'`
11446 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11447 $as_echo "$ac_res" >&6; }
11448 as_val=`eval 'as_val=${'$as_ac_Header'}
11449 $as_echo "$as_val"'`
11450 if test "x$as_val" = x""yes; then
11451 cat >>confdefs.h <<_ACEOF
11452 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11453 _ACEOF
11457 done
11461 { $as_echo "$as_me:$LINENO: checking for pthread_np.h" >&5
11462 $as_echo_n "checking for pthread_np.h... " >&6; }
11463 cat >conftest.$ac_ext <<_ACEOF
11464 /* confdefs.h. */
11465 _ACEOF
11466 cat confdefs.h >>conftest.$ac_ext
11467 cat >>conftest.$ac_ext <<_ACEOF
11468 /* end confdefs.h. */
11470 #include <pthread.h>
11471 #include <pthread_np.h>
11473 main ()
11475 int i; i = 0;
11477 return 0;
11479 _ACEOF
11480 rm -f conftest.$ac_objext
11481 if { (ac_try="$ac_compile"
11482 case "(($ac_try" in
11483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11484 *) ac_try_echo=$ac_try;;
11485 esac
11486 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11487 $as_echo "$ac_try_echo") >&5
11488 (eval "$ac_compile") 2>conftest.er1
11489 ac_status=$?
11490 grep -v '^ *+' conftest.er1 >conftest.err
11491 rm -f conftest.er1
11492 cat conftest.err >&5
11493 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11494 (exit $ac_status); } && {
11495 test -z "$ac_c_werror_flag" ||
11496 test ! -s conftest.err
11497 } && test -s conftest.$ac_objext; then
11498 { $as_echo "$as_me:$LINENO: result: yes" >&5
11499 $as_echo "yes" >&6; }
11500 cat >>confdefs.h <<\_ACEOF
11501 #define HAVE_PTHREAD_NP_H 1
11502 _ACEOF
11504 else
11505 $as_echo "$as_me: failed program was:" >&5
11506 sed 's/^/| /' conftest.$ac_ext >&5
11508 { $as_echo "$as_me:$LINENO: result: no" >&5
11509 $as_echo "no" >&6; }
11512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11515 for ac_header in strings.h
11517 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11518 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11519 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11520 $as_echo_n "checking for $ac_header... " >&6; }
11521 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11522 $as_echo_n "(cached) " >&6
11524 ac_res=`eval 'as_val=${'$as_ac_Header'}
11525 $as_echo "$as_val"'`
11526 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11527 $as_echo "$ac_res" >&6; }
11528 else
11529 # Is the header compilable?
11530 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11531 $as_echo_n "checking $ac_header usability... " >&6; }
11532 cat >conftest.$ac_ext <<_ACEOF
11533 /* confdefs.h. */
11534 _ACEOF
11535 cat confdefs.h >>conftest.$ac_ext
11536 cat >>conftest.$ac_ext <<_ACEOF
11537 /* end confdefs.h. */
11538 $ac_includes_default
11539 #include <$ac_header>
11540 _ACEOF
11541 rm -f conftest.$ac_objext
11542 if { (ac_try="$ac_compile"
11543 case "(($ac_try" in
11544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11545 *) ac_try_echo=$ac_try;;
11546 esac
11547 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11548 $as_echo "$ac_try_echo") >&5
11549 (eval "$ac_compile") 2>conftest.er1
11550 ac_status=$?
11551 grep -v '^ *+' conftest.er1 >conftest.err
11552 rm -f conftest.er1
11553 cat conftest.err >&5
11554 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11555 (exit $ac_status); } && {
11556 test -z "$ac_c_werror_flag" ||
11557 test ! -s conftest.err
11558 } && test -s conftest.$ac_objext; then
11559 ac_header_compiler=yes
11560 else
11561 $as_echo "$as_me: failed program was:" >&5
11562 sed 's/^/| /' conftest.$ac_ext >&5
11564 ac_header_compiler=no
11567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11568 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11569 $as_echo "$ac_header_compiler" >&6; }
11571 # Is the header present?
11572 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11573 $as_echo_n "checking $ac_header presence... " >&6; }
11574 cat >conftest.$ac_ext <<_ACEOF
11575 /* confdefs.h. */
11576 _ACEOF
11577 cat confdefs.h >>conftest.$ac_ext
11578 cat >>conftest.$ac_ext <<_ACEOF
11579 /* end confdefs.h. */
11580 #include <$ac_header>
11581 _ACEOF
11582 if { (ac_try="$ac_cpp conftest.$ac_ext"
11583 case "(($ac_try" in
11584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11585 *) ac_try_echo=$ac_try;;
11586 esac
11587 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11588 $as_echo "$ac_try_echo") >&5
11589 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11590 ac_status=$?
11591 grep -v '^ *+' conftest.er1 >conftest.err
11592 rm -f conftest.er1
11593 cat conftest.err >&5
11594 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11595 (exit $ac_status); } >/dev/null && {
11596 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11597 test ! -s conftest.err
11598 }; then
11599 ac_header_preproc=yes
11600 else
11601 $as_echo "$as_me: failed program was:" >&5
11602 sed 's/^/| /' conftest.$ac_ext >&5
11604 ac_header_preproc=no
11607 rm -f conftest.err conftest.$ac_ext
11608 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11609 $as_echo "$ac_header_preproc" >&6; }
11611 # So? What about this header?
11612 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11613 yes:no: )
11614 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11615 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11616 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11617 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11618 ac_header_preproc=yes
11620 no:yes:* )
11621 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11622 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11623 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11624 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11625 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11626 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11627 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11628 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11629 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11630 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11631 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11632 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11635 esac
11636 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11637 $as_echo_n "checking for $ac_header... " >&6; }
11638 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11639 $as_echo_n "(cached) " >&6
11640 else
11641 eval "$as_ac_Header=\$ac_header_preproc"
11643 ac_res=`eval 'as_val=${'$as_ac_Header'}
11644 $as_echo "$as_val"'`
11645 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11646 $as_echo "$ac_res" >&6; }
11649 as_val=`eval 'as_val=${'$as_ac_Header'}
11650 $as_echo "$as_val"'`
11651 if test "x$as_val" = x""yes; then
11652 cat >>confdefs.h <<_ACEOF
11653 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11654 _ACEOF
11658 done
11660 if test "x$MACOSX" = "xyes"; then
11661 cat >>confdefs.h <<\_ACEOF
11662 #define NO_STRINGS_WITH_STRING_H 1
11663 _ACEOF
11665 else
11667 { $as_echo "$as_me:$LINENO: checking if strings.h can be included after string.h" >&5
11668 $as_echo_n "checking if strings.h can be included after string.h... " >&6; }
11669 cppflags_save=$CPPFLAGS
11670 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11671 cat >conftest.$ac_ext <<_ACEOF
11672 /* confdefs.h. */
11673 _ACEOF
11674 cat confdefs.h >>conftest.$ac_ext
11675 cat >>conftest.$ac_ext <<_ACEOF
11676 /* end confdefs.h. */
11678 #if defined(_AIX) && !defined(_AIX51) && !defined(_NO_PROTO)
11679 # define _NO_PROTO /* like in os_unix.h, causes conflict for AIX (Winn) */
11680 /* but don't do it on AIX 5.1 (Uribarri) */
11681 #endif
11682 #ifdef HAVE_XM_XM_H
11683 # include <Xm/Xm.h> /* This breaks it for HP-UX 11 (Squassabia) */
11684 #endif
11685 #ifdef HAVE_STRING_H
11686 # include <string.h>
11687 #endif
11688 #if defined(HAVE_STRINGS_H)
11689 # include <strings.h>
11690 #endif
11693 main ()
11695 int i; i = 0;
11697 return 0;
11699 _ACEOF
11700 rm -f conftest.$ac_objext
11701 if { (ac_try="$ac_compile"
11702 case "(($ac_try" in
11703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11704 *) ac_try_echo=$ac_try;;
11705 esac
11706 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11707 $as_echo "$ac_try_echo") >&5
11708 (eval "$ac_compile") 2>conftest.er1
11709 ac_status=$?
11710 grep -v '^ *+' conftest.er1 >conftest.err
11711 rm -f conftest.er1
11712 cat conftest.err >&5
11713 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11714 (exit $ac_status); } && {
11715 test -z "$ac_c_werror_flag" ||
11716 test ! -s conftest.err
11717 } && test -s conftest.$ac_objext; then
11718 { $as_echo "$as_me:$LINENO: result: yes" >&5
11719 $as_echo "yes" >&6; }
11720 else
11721 $as_echo "$as_me: failed program was:" >&5
11722 sed 's/^/| /' conftest.$ac_ext >&5
11724 cat >>confdefs.h <<\_ACEOF
11725 #define NO_STRINGS_WITH_STRING_H 1
11726 _ACEOF
11728 { $as_echo "$as_me:$LINENO: result: no" >&5
11729 $as_echo "no" >&6; }
11732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11733 CPPFLAGS=$cppflags_save
11736 if test $ac_cv_c_compiler_gnu = yes; then
11737 { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
11738 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
11739 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
11740 $as_echo_n "(cached) " >&6
11741 else
11742 ac_pattern="Autoconf.*'x'"
11743 cat >conftest.$ac_ext <<_ACEOF
11744 /* confdefs.h. */
11745 _ACEOF
11746 cat confdefs.h >>conftest.$ac_ext
11747 cat >>conftest.$ac_ext <<_ACEOF
11748 /* end confdefs.h. */
11749 #include <sgtty.h>
11750 Autoconf TIOCGETP
11751 _ACEOF
11752 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11753 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11754 ac_cv_prog_gcc_traditional=yes
11755 else
11756 ac_cv_prog_gcc_traditional=no
11758 rm -f conftest*
11761 if test $ac_cv_prog_gcc_traditional = no; then
11762 cat >conftest.$ac_ext <<_ACEOF
11763 /* confdefs.h. */
11764 _ACEOF
11765 cat confdefs.h >>conftest.$ac_ext
11766 cat >>conftest.$ac_ext <<_ACEOF
11767 /* end confdefs.h. */
11768 #include <termio.h>
11769 Autoconf TCGETA
11770 _ACEOF
11771 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11772 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11773 ac_cv_prog_gcc_traditional=yes
11775 rm -f conftest*
11779 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
11780 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
11781 if test $ac_cv_prog_gcc_traditional = yes; then
11782 CC="$CC -traditional"
11786 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11787 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11788 if test "${ac_cv_c_const+set}" = set; then
11789 $as_echo_n "(cached) " >&6
11790 else
11791 cat >conftest.$ac_ext <<_ACEOF
11792 /* confdefs.h. */
11793 _ACEOF
11794 cat confdefs.h >>conftest.$ac_ext
11795 cat >>conftest.$ac_ext <<_ACEOF
11796 /* end confdefs.h. */
11799 main ()
11801 /* FIXME: Include the comments suggested by Paul. */
11802 #ifndef __cplusplus
11803 /* Ultrix mips cc rejects this. */
11804 typedef int charset[2];
11805 const charset cs;
11806 /* SunOS 4.1.1 cc rejects this. */
11807 char const *const *pcpcc;
11808 char **ppc;
11809 /* NEC SVR4.0.2 mips cc rejects this. */
11810 struct point {int x, y;};
11811 static struct point const zero = {0,0};
11812 /* AIX XL C 1.02.0.0 rejects this.
11813 It does not let you subtract one const X* pointer from another in
11814 an arm of an if-expression whose if-part is not a constant
11815 expression */
11816 const char *g = "string";
11817 pcpcc = &g + (g ? g-g : 0);
11818 /* HPUX 7.0 cc rejects these. */
11819 ++pcpcc;
11820 ppc = (char**) pcpcc;
11821 pcpcc = (char const *const *) ppc;
11822 { /* SCO 3.2v4 cc rejects this. */
11823 char *t;
11824 char const *s = 0 ? (char *) 0 : (char const *) 0;
11826 *t++ = 0;
11827 if (s) return 0;
11829 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11830 int x[] = {25, 17};
11831 const int *foo = &x[0];
11832 ++foo;
11834 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11835 typedef const int *iptr;
11836 iptr p = 0;
11837 ++p;
11839 { /* AIX XL C 1.02.0.0 rejects this saying
11840 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11841 struct s { int j; const int *ap[3]; };
11842 struct s *b; b->j = 5;
11844 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11845 const int foo = 10;
11846 if (!foo) return 0;
11848 return !cs[0] && !zero.x;
11849 #endif
11852 return 0;
11854 _ACEOF
11855 rm -f conftest.$ac_objext
11856 if { (ac_try="$ac_compile"
11857 case "(($ac_try" in
11858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11859 *) ac_try_echo=$ac_try;;
11860 esac
11861 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11862 $as_echo "$ac_try_echo") >&5
11863 (eval "$ac_compile") 2>conftest.er1
11864 ac_status=$?
11865 grep -v '^ *+' conftest.er1 >conftest.err
11866 rm -f conftest.er1
11867 cat conftest.err >&5
11868 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11869 (exit $ac_status); } && {
11870 test -z "$ac_c_werror_flag" ||
11871 test ! -s conftest.err
11872 } && test -s conftest.$ac_objext; then
11873 ac_cv_c_const=yes
11874 else
11875 $as_echo "$as_me: failed program was:" >&5
11876 sed 's/^/| /' conftest.$ac_ext >&5
11878 ac_cv_c_const=no
11881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11883 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11884 $as_echo "$ac_cv_c_const" >&6; }
11885 if test $ac_cv_c_const = no; then
11887 cat >>confdefs.h <<\_ACEOF
11888 #define const /**/
11889 _ACEOF
11893 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
11894 $as_echo_n "checking for working volatile... " >&6; }
11895 if test "${ac_cv_c_volatile+set}" = set; then
11896 $as_echo_n "(cached) " >&6
11897 else
11898 cat >conftest.$ac_ext <<_ACEOF
11899 /* confdefs.h. */
11900 _ACEOF
11901 cat confdefs.h >>conftest.$ac_ext
11902 cat >>conftest.$ac_ext <<_ACEOF
11903 /* end confdefs.h. */
11906 main ()
11909 volatile int x;
11910 int * volatile y = (int *) 0;
11911 return !x && !y;
11913 return 0;
11915 _ACEOF
11916 rm -f conftest.$ac_objext
11917 if { (ac_try="$ac_compile"
11918 case "(($ac_try" in
11919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11920 *) ac_try_echo=$ac_try;;
11921 esac
11922 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11923 $as_echo "$ac_try_echo") >&5
11924 (eval "$ac_compile") 2>conftest.er1
11925 ac_status=$?
11926 grep -v '^ *+' conftest.er1 >conftest.err
11927 rm -f conftest.er1
11928 cat conftest.err >&5
11929 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11930 (exit $ac_status); } && {
11931 test -z "$ac_c_werror_flag" ||
11932 test ! -s conftest.err
11933 } && test -s conftest.$ac_objext; then
11934 ac_cv_c_volatile=yes
11935 else
11936 $as_echo "$as_me: failed program was:" >&5
11937 sed 's/^/| /' conftest.$ac_ext >&5
11939 ac_cv_c_volatile=no
11942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11944 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
11945 $as_echo "$ac_cv_c_volatile" >&6; }
11946 if test $ac_cv_c_volatile = no; then
11948 cat >>confdefs.h <<\_ACEOF
11949 #define volatile /**/
11950 _ACEOF
11954 { $as_echo "$as_me:$LINENO: checking for mode_t" >&5
11955 $as_echo_n "checking for mode_t... " >&6; }
11956 if test "${ac_cv_type_mode_t+set}" = set; then
11957 $as_echo_n "(cached) " >&6
11958 else
11959 ac_cv_type_mode_t=no
11960 cat >conftest.$ac_ext <<_ACEOF
11961 /* confdefs.h. */
11962 _ACEOF
11963 cat confdefs.h >>conftest.$ac_ext
11964 cat >>conftest.$ac_ext <<_ACEOF
11965 /* end confdefs.h. */
11966 $ac_includes_default
11968 main ()
11970 if (sizeof (mode_t))
11971 return 0;
11973 return 0;
11975 _ACEOF
11976 rm -f conftest.$ac_objext
11977 if { (ac_try="$ac_compile"
11978 case "(($ac_try" in
11979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11980 *) ac_try_echo=$ac_try;;
11981 esac
11982 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11983 $as_echo "$ac_try_echo") >&5
11984 (eval "$ac_compile") 2>conftest.er1
11985 ac_status=$?
11986 grep -v '^ *+' conftest.er1 >conftest.err
11987 rm -f conftest.er1
11988 cat conftest.err >&5
11989 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11990 (exit $ac_status); } && {
11991 test -z "$ac_c_werror_flag" ||
11992 test ! -s conftest.err
11993 } && test -s conftest.$ac_objext; then
11994 cat >conftest.$ac_ext <<_ACEOF
11995 /* confdefs.h. */
11996 _ACEOF
11997 cat confdefs.h >>conftest.$ac_ext
11998 cat >>conftest.$ac_ext <<_ACEOF
11999 /* end confdefs.h. */
12000 $ac_includes_default
12002 main ()
12004 if (sizeof ((mode_t)))
12005 return 0;
12007 return 0;
12009 _ACEOF
12010 rm -f conftest.$ac_objext
12011 if { (ac_try="$ac_compile"
12012 case "(($ac_try" in
12013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12014 *) ac_try_echo=$ac_try;;
12015 esac
12016 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12017 $as_echo "$ac_try_echo") >&5
12018 (eval "$ac_compile") 2>conftest.er1
12019 ac_status=$?
12020 grep -v '^ *+' conftest.er1 >conftest.err
12021 rm -f conftest.er1
12022 cat conftest.err >&5
12023 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12024 (exit $ac_status); } && {
12025 test -z "$ac_c_werror_flag" ||
12026 test ! -s conftest.err
12027 } && test -s conftest.$ac_objext; then
12029 else
12030 $as_echo "$as_me: failed program was:" >&5
12031 sed 's/^/| /' conftest.$ac_ext >&5
12033 ac_cv_type_mode_t=yes
12036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12037 else
12038 $as_echo "$as_me: failed program was:" >&5
12039 sed 's/^/| /' conftest.$ac_ext >&5
12044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12046 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
12047 $as_echo "$ac_cv_type_mode_t" >&6; }
12048 if test "x$ac_cv_type_mode_t" = x""yes; then
12050 else
12052 cat >>confdefs.h <<_ACEOF
12053 #define mode_t int
12054 _ACEOF
12058 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
12059 $as_echo_n "checking for off_t... " >&6; }
12060 if test "${ac_cv_type_off_t+set}" = set; then
12061 $as_echo_n "(cached) " >&6
12062 else
12063 ac_cv_type_off_t=no
12064 cat >conftest.$ac_ext <<_ACEOF
12065 /* confdefs.h. */
12066 _ACEOF
12067 cat confdefs.h >>conftest.$ac_ext
12068 cat >>conftest.$ac_ext <<_ACEOF
12069 /* end confdefs.h. */
12070 $ac_includes_default
12072 main ()
12074 if (sizeof (off_t))
12075 return 0;
12077 return 0;
12079 _ACEOF
12080 rm -f conftest.$ac_objext
12081 if { (ac_try="$ac_compile"
12082 case "(($ac_try" in
12083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12084 *) ac_try_echo=$ac_try;;
12085 esac
12086 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12087 $as_echo "$ac_try_echo") >&5
12088 (eval "$ac_compile") 2>conftest.er1
12089 ac_status=$?
12090 grep -v '^ *+' conftest.er1 >conftest.err
12091 rm -f conftest.er1
12092 cat conftest.err >&5
12093 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12094 (exit $ac_status); } && {
12095 test -z "$ac_c_werror_flag" ||
12096 test ! -s conftest.err
12097 } && test -s conftest.$ac_objext; then
12098 cat >conftest.$ac_ext <<_ACEOF
12099 /* confdefs.h. */
12100 _ACEOF
12101 cat confdefs.h >>conftest.$ac_ext
12102 cat >>conftest.$ac_ext <<_ACEOF
12103 /* end confdefs.h. */
12104 $ac_includes_default
12106 main ()
12108 if (sizeof ((off_t)))
12109 return 0;
12111 return 0;
12113 _ACEOF
12114 rm -f conftest.$ac_objext
12115 if { (ac_try="$ac_compile"
12116 case "(($ac_try" in
12117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12118 *) ac_try_echo=$ac_try;;
12119 esac
12120 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12121 $as_echo "$ac_try_echo") >&5
12122 (eval "$ac_compile") 2>conftest.er1
12123 ac_status=$?
12124 grep -v '^ *+' conftest.er1 >conftest.err
12125 rm -f conftest.er1
12126 cat conftest.err >&5
12127 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12128 (exit $ac_status); } && {
12129 test -z "$ac_c_werror_flag" ||
12130 test ! -s conftest.err
12131 } && test -s conftest.$ac_objext; then
12133 else
12134 $as_echo "$as_me: failed program was:" >&5
12135 sed 's/^/| /' conftest.$ac_ext >&5
12137 ac_cv_type_off_t=yes
12140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12141 else
12142 $as_echo "$as_me: failed program was:" >&5
12143 sed 's/^/| /' conftest.$ac_ext >&5
12148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12150 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
12151 $as_echo "$ac_cv_type_off_t" >&6; }
12152 if test "x$ac_cv_type_off_t" = x""yes; then
12154 else
12156 cat >>confdefs.h <<_ACEOF
12157 #define off_t long int
12158 _ACEOF
12162 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
12163 $as_echo_n "checking for pid_t... " >&6; }
12164 if test "${ac_cv_type_pid_t+set}" = set; then
12165 $as_echo_n "(cached) " >&6
12166 else
12167 ac_cv_type_pid_t=no
12168 cat >conftest.$ac_ext <<_ACEOF
12169 /* confdefs.h. */
12170 _ACEOF
12171 cat confdefs.h >>conftest.$ac_ext
12172 cat >>conftest.$ac_ext <<_ACEOF
12173 /* end confdefs.h. */
12174 $ac_includes_default
12176 main ()
12178 if (sizeof (pid_t))
12179 return 0;
12181 return 0;
12183 _ACEOF
12184 rm -f conftest.$ac_objext
12185 if { (ac_try="$ac_compile"
12186 case "(($ac_try" in
12187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12188 *) ac_try_echo=$ac_try;;
12189 esac
12190 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12191 $as_echo "$ac_try_echo") >&5
12192 (eval "$ac_compile") 2>conftest.er1
12193 ac_status=$?
12194 grep -v '^ *+' conftest.er1 >conftest.err
12195 rm -f conftest.er1
12196 cat conftest.err >&5
12197 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12198 (exit $ac_status); } && {
12199 test -z "$ac_c_werror_flag" ||
12200 test ! -s conftest.err
12201 } && test -s conftest.$ac_objext; then
12202 cat >conftest.$ac_ext <<_ACEOF
12203 /* confdefs.h. */
12204 _ACEOF
12205 cat confdefs.h >>conftest.$ac_ext
12206 cat >>conftest.$ac_ext <<_ACEOF
12207 /* end confdefs.h. */
12208 $ac_includes_default
12210 main ()
12212 if (sizeof ((pid_t)))
12213 return 0;
12215 return 0;
12217 _ACEOF
12218 rm -f conftest.$ac_objext
12219 if { (ac_try="$ac_compile"
12220 case "(($ac_try" in
12221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12222 *) ac_try_echo=$ac_try;;
12223 esac
12224 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12225 $as_echo "$ac_try_echo") >&5
12226 (eval "$ac_compile") 2>conftest.er1
12227 ac_status=$?
12228 grep -v '^ *+' conftest.er1 >conftest.err
12229 rm -f conftest.er1
12230 cat conftest.err >&5
12231 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12232 (exit $ac_status); } && {
12233 test -z "$ac_c_werror_flag" ||
12234 test ! -s conftest.err
12235 } && test -s conftest.$ac_objext; then
12237 else
12238 $as_echo "$as_me: failed program was:" >&5
12239 sed 's/^/| /' conftest.$ac_ext >&5
12241 ac_cv_type_pid_t=yes
12244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12245 else
12246 $as_echo "$as_me: failed program was:" >&5
12247 sed 's/^/| /' conftest.$ac_ext >&5
12252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12254 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
12255 $as_echo "$ac_cv_type_pid_t" >&6; }
12256 if test "x$ac_cv_type_pid_t" = x""yes; then
12258 else
12260 cat >>confdefs.h <<_ACEOF
12261 #define pid_t int
12262 _ACEOF
12266 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
12267 $as_echo_n "checking for size_t... " >&6; }
12268 if test "${ac_cv_type_size_t+set}" = set; then
12269 $as_echo_n "(cached) " >&6
12270 else
12271 ac_cv_type_size_t=no
12272 cat >conftest.$ac_ext <<_ACEOF
12273 /* confdefs.h. */
12274 _ACEOF
12275 cat confdefs.h >>conftest.$ac_ext
12276 cat >>conftest.$ac_ext <<_ACEOF
12277 /* end confdefs.h. */
12278 $ac_includes_default
12280 main ()
12282 if (sizeof (size_t))
12283 return 0;
12285 return 0;
12287 _ACEOF
12288 rm -f conftest.$ac_objext
12289 if { (ac_try="$ac_compile"
12290 case "(($ac_try" in
12291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12292 *) ac_try_echo=$ac_try;;
12293 esac
12294 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12295 $as_echo "$ac_try_echo") >&5
12296 (eval "$ac_compile") 2>conftest.er1
12297 ac_status=$?
12298 grep -v '^ *+' conftest.er1 >conftest.err
12299 rm -f conftest.er1
12300 cat conftest.err >&5
12301 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12302 (exit $ac_status); } && {
12303 test -z "$ac_c_werror_flag" ||
12304 test ! -s conftest.err
12305 } && test -s conftest.$ac_objext; then
12306 cat >conftest.$ac_ext <<_ACEOF
12307 /* confdefs.h. */
12308 _ACEOF
12309 cat confdefs.h >>conftest.$ac_ext
12310 cat >>conftest.$ac_ext <<_ACEOF
12311 /* end confdefs.h. */
12312 $ac_includes_default
12314 main ()
12316 if (sizeof ((size_t)))
12317 return 0;
12319 return 0;
12321 _ACEOF
12322 rm -f conftest.$ac_objext
12323 if { (ac_try="$ac_compile"
12324 case "(($ac_try" in
12325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12326 *) ac_try_echo=$ac_try;;
12327 esac
12328 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12329 $as_echo "$ac_try_echo") >&5
12330 (eval "$ac_compile") 2>conftest.er1
12331 ac_status=$?
12332 grep -v '^ *+' conftest.er1 >conftest.err
12333 rm -f conftest.er1
12334 cat conftest.err >&5
12335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12336 (exit $ac_status); } && {
12337 test -z "$ac_c_werror_flag" ||
12338 test ! -s conftest.err
12339 } && test -s conftest.$ac_objext; then
12341 else
12342 $as_echo "$as_me: failed program was:" >&5
12343 sed 's/^/| /' conftest.$ac_ext >&5
12345 ac_cv_type_size_t=yes
12348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12349 else
12350 $as_echo "$as_me: failed program was:" >&5
12351 sed 's/^/| /' conftest.$ac_ext >&5
12356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12358 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
12359 $as_echo "$ac_cv_type_size_t" >&6; }
12360 if test "x$ac_cv_type_size_t" = x""yes; then
12362 else
12364 cat >>confdefs.h <<_ACEOF
12365 #define size_t unsigned int
12366 _ACEOF
12370 { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
12371 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
12372 if test "${ac_cv_type_uid_t+set}" = set; then
12373 $as_echo_n "(cached) " >&6
12374 else
12375 cat >conftest.$ac_ext <<_ACEOF
12376 /* confdefs.h. */
12377 _ACEOF
12378 cat confdefs.h >>conftest.$ac_ext
12379 cat >>conftest.$ac_ext <<_ACEOF
12380 /* end confdefs.h. */
12381 #include <sys/types.h>
12383 _ACEOF
12384 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12385 $EGREP "uid_t" >/dev/null 2>&1; then
12386 ac_cv_type_uid_t=yes
12387 else
12388 ac_cv_type_uid_t=no
12390 rm -f conftest*
12393 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
12394 $as_echo "$ac_cv_type_uid_t" >&6; }
12395 if test $ac_cv_type_uid_t = no; then
12397 cat >>confdefs.h <<\_ACEOF
12398 #define uid_t int
12399 _ACEOF
12402 cat >>confdefs.h <<\_ACEOF
12403 #define gid_t int
12404 _ACEOF
12408 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
12409 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
12410 if test "${ac_cv_header_time+set}" = set; then
12411 $as_echo_n "(cached) " >&6
12412 else
12413 cat >conftest.$ac_ext <<_ACEOF
12414 /* confdefs.h. */
12415 _ACEOF
12416 cat confdefs.h >>conftest.$ac_ext
12417 cat >>conftest.$ac_ext <<_ACEOF
12418 /* end confdefs.h. */
12419 #include <sys/types.h>
12420 #include <sys/time.h>
12421 #include <time.h>
12424 main ()
12426 if ((struct tm *) 0)
12427 return 0;
12429 return 0;
12431 _ACEOF
12432 rm -f conftest.$ac_objext
12433 if { (ac_try="$ac_compile"
12434 case "(($ac_try" in
12435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12436 *) ac_try_echo=$ac_try;;
12437 esac
12438 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12439 $as_echo "$ac_try_echo") >&5
12440 (eval "$ac_compile") 2>conftest.er1
12441 ac_status=$?
12442 grep -v '^ *+' conftest.er1 >conftest.err
12443 rm -f conftest.er1
12444 cat conftest.err >&5
12445 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12446 (exit $ac_status); } && {
12447 test -z "$ac_c_werror_flag" ||
12448 test ! -s conftest.err
12449 } && test -s conftest.$ac_objext; then
12450 ac_cv_header_time=yes
12451 else
12452 $as_echo "$as_me: failed program was:" >&5
12453 sed 's/^/| /' conftest.$ac_ext >&5
12455 ac_cv_header_time=no
12458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12460 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
12461 $as_echo "$ac_cv_header_time" >&6; }
12462 if test $ac_cv_header_time = yes; then
12464 cat >>confdefs.h <<\_ACEOF
12465 #define TIME_WITH_SYS_TIME 1
12466 _ACEOF
12470 { $as_echo "$as_me:$LINENO: checking for ino_t" >&5
12471 $as_echo_n "checking for ino_t... " >&6; }
12472 if test "${ac_cv_type_ino_t+set}" = set; then
12473 $as_echo_n "(cached) " >&6
12474 else
12475 ac_cv_type_ino_t=no
12476 cat >conftest.$ac_ext <<_ACEOF
12477 /* confdefs.h. */
12478 _ACEOF
12479 cat confdefs.h >>conftest.$ac_ext
12480 cat >>conftest.$ac_ext <<_ACEOF
12481 /* end confdefs.h. */
12482 $ac_includes_default
12484 main ()
12486 if (sizeof (ino_t))
12487 return 0;
12489 return 0;
12491 _ACEOF
12492 rm -f conftest.$ac_objext
12493 if { (ac_try="$ac_compile"
12494 case "(($ac_try" in
12495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12496 *) ac_try_echo=$ac_try;;
12497 esac
12498 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12499 $as_echo "$ac_try_echo") >&5
12500 (eval "$ac_compile") 2>conftest.er1
12501 ac_status=$?
12502 grep -v '^ *+' conftest.er1 >conftest.err
12503 rm -f conftest.er1
12504 cat conftest.err >&5
12505 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12506 (exit $ac_status); } && {
12507 test -z "$ac_c_werror_flag" ||
12508 test ! -s conftest.err
12509 } && test -s conftest.$ac_objext; then
12510 cat >conftest.$ac_ext <<_ACEOF
12511 /* confdefs.h. */
12512 _ACEOF
12513 cat confdefs.h >>conftest.$ac_ext
12514 cat >>conftest.$ac_ext <<_ACEOF
12515 /* end confdefs.h. */
12516 $ac_includes_default
12518 main ()
12520 if (sizeof ((ino_t)))
12521 return 0;
12523 return 0;
12525 _ACEOF
12526 rm -f conftest.$ac_objext
12527 if { (ac_try="$ac_compile"
12528 case "(($ac_try" in
12529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12530 *) ac_try_echo=$ac_try;;
12531 esac
12532 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12533 $as_echo "$ac_try_echo") >&5
12534 (eval "$ac_compile") 2>conftest.er1
12535 ac_status=$?
12536 grep -v '^ *+' conftest.er1 >conftest.err
12537 rm -f conftest.er1
12538 cat conftest.err >&5
12539 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12540 (exit $ac_status); } && {
12541 test -z "$ac_c_werror_flag" ||
12542 test ! -s conftest.err
12543 } && test -s conftest.$ac_objext; then
12545 else
12546 $as_echo "$as_me: failed program was:" >&5
12547 sed 's/^/| /' conftest.$ac_ext >&5
12549 ac_cv_type_ino_t=yes
12552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12553 else
12554 $as_echo "$as_me: failed program was:" >&5
12555 sed 's/^/| /' conftest.$ac_ext >&5
12560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12562 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
12563 $as_echo "$ac_cv_type_ino_t" >&6; }
12564 if test "x$ac_cv_type_ino_t" = x""yes; then
12566 else
12568 cat >>confdefs.h <<_ACEOF
12569 #define ino_t long
12570 _ACEOF
12574 { $as_echo "$as_me:$LINENO: checking for dev_t" >&5
12575 $as_echo_n "checking for dev_t... " >&6; }
12576 if test "${ac_cv_type_dev_t+set}" = set; then
12577 $as_echo_n "(cached) " >&6
12578 else
12579 ac_cv_type_dev_t=no
12580 cat >conftest.$ac_ext <<_ACEOF
12581 /* confdefs.h. */
12582 _ACEOF
12583 cat confdefs.h >>conftest.$ac_ext
12584 cat >>conftest.$ac_ext <<_ACEOF
12585 /* end confdefs.h. */
12586 $ac_includes_default
12588 main ()
12590 if (sizeof (dev_t))
12591 return 0;
12593 return 0;
12595 _ACEOF
12596 rm -f conftest.$ac_objext
12597 if { (ac_try="$ac_compile"
12598 case "(($ac_try" in
12599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12600 *) ac_try_echo=$ac_try;;
12601 esac
12602 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12603 $as_echo "$ac_try_echo") >&5
12604 (eval "$ac_compile") 2>conftest.er1
12605 ac_status=$?
12606 grep -v '^ *+' conftest.er1 >conftest.err
12607 rm -f conftest.er1
12608 cat conftest.err >&5
12609 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12610 (exit $ac_status); } && {
12611 test -z "$ac_c_werror_flag" ||
12612 test ! -s conftest.err
12613 } && test -s conftest.$ac_objext; then
12614 cat >conftest.$ac_ext <<_ACEOF
12615 /* confdefs.h. */
12616 _ACEOF
12617 cat confdefs.h >>conftest.$ac_ext
12618 cat >>conftest.$ac_ext <<_ACEOF
12619 /* end confdefs.h. */
12620 $ac_includes_default
12622 main ()
12624 if (sizeof ((dev_t)))
12625 return 0;
12627 return 0;
12629 _ACEOF
12630 rm -f conftest.$ac_objext
12631 if { (ac_try="$ac_compile"
12632 case "(($ac_try" in
12633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12634 *) ac_try_echo=$ac_try;;
12635 esac
12636 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12637 $as_echo "$ac_try_echo") >&5
12638 (eval "$ac_compile") 2>conftest.er1
12639 ac_status=$?
12640 grep -v '^ *+' conftest.er1 >conftest.err
12641 rm -f conftest.er1
12642 cat conftest.err >&5
12643 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12644 (exit $ac_status); } && {
12645 test -z "$ac_c_werror_flag" ||
12646 test ! -s conftest.err
12647 } && test -s conftest.$ac_objext; then
12649 else
12650 $as_echo "$as_me: failed program was:" >&5
12651 sed 's/^/| /' conftest.$ac_ext >&5
12653 ac_cv_type_dev_t=yes
12656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12657 else
12658 $as_echo "$as_me: failed program was:" >&5
12659 sed 's/^/| /' conftest.$ac_ext >&5
12664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12666 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
12667 $as_echo "$ac_cv_type_dev_t" >&6; }
12668 if test "x$ac_cv_type_dev_t" = x""yes; then
12670 else
12672 cat >>confdefs.h <<_ACEOF
12673 #define dev_t unsigned
12674 _ACEOF
12679 { $as_echo "$as_me:$LINENO: checking for rlim_t" >&5
12680 $as_echo_n "checking for rlim_t... " >&6; }
12681 if eval "test \"`echo '$''{'ac_cv_type_rlim_t'+set}'`\" = set"; then
12682 { $as_echo "$as_me:$LINENO: result: (cached) $ac_cv_type_rlim_t" >&5
12683 $as_echo "(cached) $ac_cv_type_rlim_t" >&6; }
12684 else
12685 cat >conftest.$ac_ext <<_ACEOF
12686 /* confdefs.h. */
12687 _ACEOF
12688 cat confdefs.h >>conftest.$ac_ext
12689 cat >>conftest.$ac_ext <<_ACEOF
12690 /* end confdefs.h. */
12692 #include <sys/types.h>
12693 #if STDC_HEADERS
12694 # include <stdlib.h>
12695 # include <stddef.h>
12696 #endif
12697 #ifdef HAVE_SYS_RESOURCE_H
12698 # include <sys/resource.h>
12699 #endif
12701 _ACEOF
12702 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12703 $EGREP "(^|[^a-zA-Z_0-9])rlim_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
12704 ac_cv_type_rlim_t=yes
12705 else
12706 ac_cv_type_rlim_t=no
12708 rm -f conftest*
12710 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_rlim_t" >&5
12711 $as_echo "$ac_cv_type_rlim_t" >&6; }
12713 if test $ac_cv_type_rlim_t = no; then
12714 cat >> confdefs.h <<\EOF
12715 #define rlim_t unsigned long
12719 { $as_echo "$as_me:$LINENO: checking for stack_t" >&5
12720 $as_echo_n "checking for stack_t... " >&6; }
12721 if eval "test \"`echo '$''{'ac_cv_type_stack_t'+set}'`\" = set"; then
12722 { $as_echo "$as_me:$LINENO: result: (cached) $ac_cv_type_stack_t" >&5
12723 $as_echo "(cached) $ac_cv_type_stack_t" >&6; }
12724 else
12725 cat >conftest.$ac_ext <<_ACEOF
12726 /* confdefs.h. */
12727 _ACEOF
12728 cat confdefs.h >>conftest.$ac_ext
12729 cat >>conftest.$ac_ext <<_ACEOF
12730 /* end confdefs.h. */
12732 #include <sys/types.h>
12733 #if STDC_HEADERS
12734 # include <stdlib.h>
12735 # include <stddef.h>
12736 #endif
12737 #include <signal.h>
12739 _ACEOF
12740 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12741 $EGREP "stack_t" >/dev/null 2>&1; then
12742 ac_cv_type_stack_t=yes
12743 else
12744 ac_cv_type_stack_t=no
12746 rm -f conftest*
12748 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_stack_t" >&5
12749 $as_echo "$ac_cv_type_stack_t" >&6; }
12751 if test $ac_cv_type_stack_t = no; then
12752 cat >> confdefs.h <<\EOF
12753 #define stack_t struct sigaltstack
12757 { $as_echo "$as_me:$LINENO: checking whether stack_t has an ss_base field" >&5
12758 $as_echo_n "checking whether stack_t has an ss_base field... " >&6; }
12759 cat >conftest.$ac_ext <<_ACEOF
12760 /* confdefs.h. */
12761 _ACEOF
12762 cat confdefs.h >>conftest.$ac_ext
12763 cat >>conftest.$ac_ext <<_ACEOF
12764 /* end confdefs.h. */
12766 #include <sys/types.h>
12767 #if STDC_HEADERS
12768 # include <stdlib.h>
12769 # include <stddef.h>
12770 #endif
12771 #include <signal.h>
12772 #include "confdefs.h"
12775 main ()
12777 stack_t sigstk; sigstk.ss_base = 0;
12779 return 0;
12781 _ACEOF
12782 rm -f conftest.$ac_objext
12783 if { (ac_try="$ac_compile"
12784 case "(($ac_try" in
12785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12786 *) ac_try_echo=$ac_try;;
12787 esac
12788 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12789 $as_echo "$ac_try_echo") >&5
12790 (eval "$ac_compile") 2>conftest.er1
12791 ac_status=$?
12792 grep -v '^ *+' conftest.er1 >conftest.err
12793 rm -f conftest.er1
12794 cat conftest.err >&5
12795 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12796 (exit $ac_status); } && {
12797 test -z "$ac_c_werror_flag" ||
12798 test ! -s conftest.err
12799 } && test -s conftest.$ac_objext; then
12800 { $as_echo "$as_me:$LINENO: result: yes" >&5
12801 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
12802 #define HAVE_SS_BASE 1
12803 _ACEOF
12805 else
12806 $as_echo "$as_me: failed program was:" >&5
12807 sed 's/^/| /' conftest.$ac_ext >&5
12809 { $as_echo "$as_me:$LINENO: result: no" >&5
12810 $as_echo "no" >&6; }
12813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12815 olibs="$LIBS"
12816 { $as_echo "$as_me:$LINENO: checking --with-tlib argument" >&5
12817 $as_echo_n "checking --with-tlib argument... " >&6; }
12819 # Check whether --with-tlib was given.
12820 if test "${with_tlib+set}" = set; then
12821 withval=$with_tlib;
12824 if test -n "$with_tlib"; then
12825 { $as_echo "$as_me:$LINENO: result: $with_tlib" >&5
12826 $as_echo "$with_tlib" >&6; }
12827 LIBS="$LIBS -l$with_tlib"
12828 { $as_echo "$as_me:$LINENO: checking for linking with $with_tlib library" >&5
12829 $as_echo_n "checking for linking with $with_tlib library... " >&6; }
12830 cat >conftest.$ac_ext <<_ACEOF
12831 /* confdefs.h. */
12832 _ACEOF
12833 cat confdefs.h >>conftest.$ac_ext
12834 cat >>conftest.$ac_ext <<_ACEOF
12835 /* end confdefs.h. */
12838 main ()
12842 return 0;
12844 _ACEOF
12845 rm -f conftest.$ac_objext conftest$ac_exeext
12846 if { (ac_try="$ac_link"
12847 case "(($ac_try" in
12848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12849 *) ac_try_echo=$ac_try;;
12850 esac
12851 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12852 $as_echo "$ac_try_echo") >&5
12853 (eval "$ac_link") 2>conftest.er1
12854 ac_status=$?
12855 grep -v '^ *+' conftest.er1 >conftest.err
12856 rm -f conftest.er1
12857 cat conftest.err >&5
12858 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12859 (exit $ac_status); } && {
12860 test -z "$ac_c_werror_flag" ||
12861 test ! -s conftest.err
12862 } && test -s conftest$ac_exeext && {
12863 test "$cross_compiling" = yes ||
12864 $as_test_x conftest$ac_exeext
12865 }; then
12866 { $as_echo "$as_me:$LINENO: result: OK" >&5
12867 $as_echo "OK" >&6; }
12868 else
12869 $as_echo "$as_me: failed program was:" >&5
12870 sed 's/^/| /' conftest.$ac_ext >&5
12872 { { $as_echo "$as_me:$LINENO: error: FAILED" >&5
12873 $as_echo "$as_me: error: FAILED" >&2;}
12874 { (exit 1); exit 1; }; }
12877 rm -rf conftest.dSYM
12878 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12879 conftest$ac_exeext conftest.$ac_ext
12880 olibs="$LIBS"
12881 else
12882 { $as_echo "$as_me:$LINENO: result: empty: automatic terminal library selection" >&5
12883 $as_echo "empty: automatic terminal library selection" >&6; }
12884 case "`uname -s 2>/dev/null`" in
12885 OSF1|SCO_SV) tlibs="ncurses curses termlib termcap";;
12886 *) tlibs="ncurses termlib termcap curses";;
12887 esac
12888 for libname in $tlibs; do
12890 as_ac_Lib=`$as_echo "ac_cv_lib_${libname}''_tgetent" | $as_tr_sh`
12891 { $as_echo "$as_me:$LINENO: checking for tgetent in -l${libname}" >&5
12892 $as_echo_n "checking for tgetent in -l${libname}... " >&6; }
12893 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
12894 $as_echo_n "(cached) " >&6
12895 else
12896 ac_check_lib_save_LIBS=$LIBS
12897 LIBS="-l${libname} $LIBS"
12898 cat >conftest.$ac_ext <<_ACEOF
12899 /* confdefs.h. */
12900 _ACEOF
12901 cat confdefs.h >>conftest.$ac_ext
12902 cat >>conftest.$ac_ext <<_ACEOF
12903 /* end confdefs.h. */
12905 /* Override any GCC internal prototype to avoid an error.
12906 Use char because int might match the return type of a GCC
12907 builtin and then its argument prototype would still apply. */
12908 #ifdef __cplusplus
12909 extern "C"
12910 #endif
12911 char tgetent ();
12913 main ()
12915 return tgetent ();
12917 return 0;
12919 _ACEOF
12920 rm -f conftest.$ac_objext conftest$ac_exeext
12921 if { (ac_try="$ac_link"
12922 case "(($ac_try" in
12923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12924 *) ac_try_echo=$ac_try;;
12925 esac
12926 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12927 $as_echo "$ac_try_echo") >&5
12928 (eval "$ac_link") 2>conftest.er1
12929 ac_status=$?
12930 grep -v '^ *+' conftest.er1 >conftest.err
12931 rm -f conftest.er1
12932 cat conftest.err >&5
12933 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12934 (exit $ac_status); } && {
12935 test -z "$ac_c_werror_flag" ||
12936 test ! -s conftest.err
12937 } && test -s conftest$ac_exeext && {
12938 test "$cross_compiling" = yes ||
12939 $as_test_x conftest$ac_exeext
12940 }; then
12941 eval "$as_ac_Lib=yes"
12942 else
12943 $as_echo "$as_me: failed program was:" >&5
12944 sed 's/^/| /' conftest.$ac_ext >&5
12946 eval "$as_ac_Lib=no"
12949 rm -rf conftest.dSYM
12950 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12951 conftest$ac_exeext conftest.$ac_ext
12952 LIBS=$ac_check_lib_save_LIBS
12954 ac_res=`eval 'as_val=${'$as_ac_Lib'}
12955 $as_echo "$as_val"'`
12956 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12957 $as_echo "$ac_res" >&6; }
12958 as_val=`eval 'as_val=${'$as_ac_Lib'}
12959 $as_echo "$as_val"'`
12960 if test "x$as_val" = x""yes; then
12961 cat >>confdefs.h <<_ACEOF
12962 #define `$as_echo "HAVE_LIB${libname}" | $as_tr_cpp` 1
12963 _ACEOF
12965 LIBS="-l${libname} $LIBS"
12969 if test "x$olibs" != "x$LIBS"; then
12970 if test "$cross_compiling" = yes; then
12971 res="FAIL"
12972 else
12973 cat >conftest.$ac_ext <<_ACEOF
12974 /* confdefs.h. */
12975 _ACEOF
12976 cat confdefs.h >>conftest.$ac_ext
12977 cat >>conftest.$ac_ext <<_ACEOF
12978 /* end confdefs.h. */
12980 #ifdef HAVE_TERMCAP_H
12981 # include <termcap.h>
12982 #endif
12983 #if STDC_HEADERS
12984 # include <stdlib.h>
12985 # include <stddef.h>
12986 #endif
12987 main() {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(0); }
12988 _ACEOF
12989 rm -f conftest$ac_exeext
12990 if { (ac_try="$ac_link"
12991 case "(($ac_try" in
12992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12993 *) ac_try_echo=$ac_try;;
12994 esac
12995 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12996 $as_echo "$ac_try_echo") >&5
12997 (eval "$ac_link") 2>&5
12998 ac_status=$?
12999 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13000 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13001 { (case "(($ac_try" in
13002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13003 *) ac_try_echo=$ac_try;;
13004 esac
13005 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13006 $as_echo "$ac_try_echo") >&5
13007 (eval "$ac_try") 2>&5
13008 ac_status=$?
13009 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13010 (exit $ac_status); }; }; then
13011 res="OK"
13012 else
13013 $as_echo "$as_me: program exited with status $ac_status" >&5
13014 $as_echo "$as_me: failed program was:" >&5
13015 sed 's/^/| /' conftest.$ac_ext >&5
13017 ( exit $ac_status )
13018 res="FAIL"
13020 rm -rf conftest.dSYM
13021 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13025 if test "$res" = "OK"; then
13026 break
13028 { $as_echo "$as_me:$LINENO: result: $libname library is not usable" >&5
13029 $as_echo "$libname library is not usable" >&6; }
13030 LIBS="$olibs"
13032 done
13033 if test "x$olibs" = "x$LIBS"; then
13034 { $as_echo "$as_me:$LINENO: result: no terminal library found" >&5
13035 $as_echo "no terminal library found" >&6; }
13039 if test "x$olibs" = "x$LIBS"; then
13040 { $as_echo "$as_me:$LINENO: checking for tgetent()" >&5
13041 $as_echo_n "checking for tgetent()... " >&6; }
13042 cat >conftest.$ac_ext <<_ACEOF
13043 /* confdefs.h. */
13044 _ACEOF
13045 cat confdefs.h >>conftest.$ac_ext
13046 cat >>conftest.$ac_ext <<_ACEOF
13047 /* end confdefs.h. */
13050 main ()
13052 char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist");
13054 return 0;
13056 _ACEOF
13057 rm -f conftest.$ac_objext conftest$ac_exeext
13058 if { (ac_try="$ac_link"
13059 case "(($ac_try" in
13060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13061 *) ac_try_echo=$ac_try;;
13062 esac
13063 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13064 $as_echo "$ac_try_echo") >&5
13065 (eval "$ac_link") 2>conftest.er1
13066 ac_status=$?
13067 grep -v '^ *+' conftest.er1 >conftest.err
13068 rm -f conftest.er1
13069 cat conftest.err >&5
13070 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13071 (exit $ac_status); } && {
13072 test -z "$ac_c_werror_flag" ||
13073 test ! -s conftest.err
13074 } && test -s conftest$ac_exeext && {
13075 test "$cross_compiling" = yes ||
13076 $as_test_x conftest$ac_exeext
13077 }; then
13078 { $as_echo "$as_me:$LINENO: result: yes" >&5
13079 $as_echo "yes" >&6; }
13080 else
13081 $as_echo "$as_me: failed program was:" >&5
13082 sed 's/^/| /' conftest.$ac_ext >&5
13084 { { $as_echo "$as_me:$LINENO: error: NOT FOUND!
13085 You need to install a terminal library; for example ncurses.
13086 Or specify the name of the library with --with-tlib." >&5
13087 $as_echo "$as_me: error: NOT FOUND!
13088 You need to install a terminal library; for example ncurses.
13089 Or specify the name of the library with --with-tlib." >&2;}
13090 { (exit 1); exit 1; }; }
13093 rm -rf conftest.dSYM
13094 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13095 conftest$ac_exeext conftest.$ac_ext
13098 { $as_echo "$as_me:$LINENO: checking whether we talk terminfo" >&5
13099 $as_echo_n "checking whether we talk terminfo... " >&6; }
13100 if test "${vim_cv_terminfo+set}" = set; then
13101 $as_echo_n "(cached) " >&6
13102 else
13104 if test "$cross_compiling" = yes; then
13106 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_terminfo'" >&5
13107 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_terminfo'" >&2;}
13108 { (exit 1); exit 1; }; }
13110 else
13111 cat >conftest.$ac_ext <<_ACEOF
13113 #include "confdefs.h"
13114 #ifdef HAVE_TERMCAP_H
13115 # include <termcap.h>
13116 #endif
13117 #ifdef HAVE_STRING_H
13118 # include <string.h>
13119 #endif
13120 #if STDC_HEADERS
13121 # include <stdlib.h>
13122 # include <stddef.h>
13123 #endif
13124 main()
13125 {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(!strcmp(s==0 ? "" : s, "1")); }
13127 _ACEOF
13128 rm -f conftest$ac_exeext
13129 if { (ac_try="$ac_link"
13130 case "(($ac_try" in
13131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13132 *) ac_try_echo=$ac_try;;
13133 esac
13134 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13135 $as_echo "$ac_try_echo") >&5
13136 (eval "$ac_link") 2>&5
13137 ac_status=$?
13138 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13139 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13140 { (case "(($ac_try" in
13141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13142 *) ac_try_echo=$ac_try;;
13143 esac
13144 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13145 $as_echo "$ac_try_echo") >&5
13146 (eval "$ac_try") 2>&5
13147 ac_status=$?
13148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13149 (exit $ac_status); }; }; then
13151 vim_cv_terminfo=no
13153 else
13154 $as_echo "$as_me: program exited with status $ac_status" >&5
13155 $as_echo "$as_me: failed program was:" >&5
13156 sed 's/^/| /' conftest.$ac_ext >&5
13158 ( exit $ac_status )
13160 vim_cv_terminfo=yes
13163 rm -rf conftest.dSYM
13164 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13170 { $as_echo "$as_me:$LINENO: result: $vim_cv_terminfo" >&5
13171 $as_echo "$vim_cv_terminfo" >&6; }
13173 if test "x$vim_cv_terminfo" = "xyes" ; then
13174 cat >>confdefs.h <<\_ACEOF
13175 #define TERMINFO 1
13176 _ACEOF
13180 if test "x$olibs" != "x$LIBS"; then
13181 { $as_echo "$as_me:$LINENO: checking what tgetent() returns for an unknown terminal" >&5
13182 $as_echo_n "checking what tgetent() returns for an unknown terminal... " >&6; }
13183 if test "${vim_cv_tgent+set}" = set; then
13184 $as_echo_n "(cached) " >&6
13185 else
13187 if test "$cross_compiling" = yes; then
13189 { { $as_echo "$as_me:$LINENO: error: failed to compile test program." >&5
13190 $as_echo "$as_me: error: failed to compile test program." >&2;}
13191 { (exit 1); exit 1; }; }
13193 else
13194 cat >conftest.$ac_ext <<_ACEOF
13196 #include "confdefs.h"
13197 #ifdef HAVE_TERMCAP_H
13198 # include <termcap.h>
13199 #endif
13200 #if STDC_HEADERS
13201 # include <stdlib.h>
13202 # include <stddef.h>
13203 #endif
13204 main()
13205 {char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); exit(res != 0); }
13207 _ACEOF
13208 rm -f conftest$ac_exeext
13209 if { (ac_try="$ac_link"
13210 case "(($ac_try" in
13211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13212 *) ac_try_echo=$ac_try;;
13213 esac
13214 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13215 $as_echo "$ac_try_echo") >&5
13216 (eval "$ac_link") 2>&5
13217 ac_status=$?
13218 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13219 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13220 { (case "(($ac_try" in
13221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13222 *) ac_try_echo=$ac_try;;
13223 esac
13224 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13225 $as_echo "$ac_try_echo") >&5
13226 (eval "$ac_try") 2>&5
13227 ac_status=$?
13228 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13229 (exit $ac_status); }; }; then
13231 vim_cv_tgent=zero
13233 else
13234 $as_echo "$as_me: program exited with status $ac_status" >&5
13235 $as_echo "$as_me: failed program was:" >&5
13236 sed 's/^/| /' conftest.$ac_ext >&5
13238 ( exit $ac_status )
13240 vim_cv_tgent=non-zero
13243 rm -rf conftest.dSYM
13244 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13250 { $as_echo "$as_me:$LINENO: result: $vim_cv_tgent" >&5
13251 $as_echo "$vim_cv_tgent" >&6; }
13253 if test "x$vim_cv_tgent" = "xzero" ; then
13254 cat >>confdefs.h <<\_ACEOF
13255 #define TGETENT_ZERO_ERR 0
13256 _ACEOF
13261 { $as_echo "$as_me:$LINENO: checking whether termcap.h contains ospeed" >&5
13262 $as_echo_n "checking whether termcap.h contains ospeed... " >&6; }
13263 cat >conftest.$ac_ext <<_ACEOF
13264 /* confdefs.h. */
13265 _ACEOF
13266 cat confdefs.h >>conftest.$ac_ext
13267 cat >>conftest.$ac_ext <<_ACEOF
13268 /* end confdefs.h. */
13270 #ifdef HAVE_TERMCAP_H
13271 # include <termcap.h>
13272 #endif
13275 main ()
13277 ospeed = 20000
13279 return 0;
13281 _ACEOF
13282 rm -f conftest.$ac_objext conftest$ac_exeext
13283 if { (ac_try="$ac_link"
13284 case "(($ac_try" in
13285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13286 *) ac_try_echo=$ac_try;;
13287 esac
13288 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13289 $as_echo "$ac_try_echo") >&5
13290 (eval "$ac_link") 2>conftest.er1
13291 ac_status=$?
13292 grep -v '^ *+' conftest.er1 >conftest.err
13293 rm -f conftest.er1
13294 cat conftest.err >&5
13295 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13296 (exit $ac_status); } && {
13297 test -z "$ac_c_werror_flag" ||
13298 test ! -s conftest.err
13299 } && test -s conftest$ac_exeext && {
13300 test "$cross_compiling" = yes ||
13301 $as_test_x conftest$ac_exeext
13302 }; then
13303 { $as_echo "$as_me:$LINENO: result: yes" >&5
13304 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13305 #define HAVE_OSPEED 1
13306 _ACEOF
13308 else
13309 $as_echo "$as_me: failed program was:" >&5
13310 sed 's/^/| /' conftest.$ac_ext >&5
13312 { $as_echo "$as_me:$LINENO: result: no" >&5
13313 $as_echo "no" >&6; }
13314 { $as_echo "$as_me:$LINENO: checking whether ospeed can be extern" >&5
13315 $as_echo_n "checking whether ospeed can be extern... " >&6; }
13316 cat >conftest.$ac_ext <<_ACEOF
13317 /* confdefs.h. */
13318 _ACEOF
13319 cat confdefs.h >>conftest.$ac_ext
13320 cat >>conftest.$ac_ext <<_ACEOF
13321 /* end confdefs.h. */
13323 #ifdef HAVE_TERMCAP_H
13324 # include <termcap.h>
13325 #endif
13326 extern short ospeed;
13329 main ()
13331 ospeed = 20000
13333 return 0;
13335 _ACEOF
13336 rm -f conftest.$ac_objext conftest$ac_exeext
13337 if { (ac_try="$ac_link"
13338 case "(($ac_try" in
13339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13340 *) ac_try_echo=$ac_try;;
13341 esac
13342 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13343 $as_echo "$ac_try_echo") >&5
13344 (eval "$ac_link") 2>conftest.er1
13345 ac_status=$?
13346 grep -v '^ *+' conftest.er1 >conftest.err
13347 rm -f conftest.er1
13348 cat conftest.err >&5
13349 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13350 (exit $ac_status); } && {
13351 test -z "$ac_c_werror_flag" ||
13352 test ! -s conftest.err
13353 } && test -s conftest$ac_exeext && {
13354 test "$cross_compiling" = yes ||
13355 $as_test_x conftest$ac_exeext
13356 }; then
13357 { $as_echo "$as_me:$LINENO: result: yes" >&5
13358 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13359 #define OSPEED_EXTERN 1
13360 _ACEOF
13362 else
13363 $as_echo "$as_me: failed program was:" >&5
13364 sed 's/^/| /' conftest.$ac_ext >&5
13366 { $as_echo "$as_me:$LINENO: result: no" >&5
13367 $as_echo "no" >&6; }
13370 rm -rf conftest.dSYM
13371 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13372 conftest$ac_exeext conftest.$ac_ext
13376 rm -rf conftest.dSYM
13377 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13378 conftest$ac_exeext conftest.$ac_ext
13380 { $as_echo "$as_me:$LINENO: checking whether termcap.h contains UP, BC and PC" >&5
13381 $as_echo_n "checking whether termcap.h contains UP, BC and PC... " >&6; }
13382 cat >conftest.$ac_ext <<_ACEOF
13383 /* confdefs.h. */
13384 _ACEOF
13385 cat confdefs.h >>conftest.$ac_ext
13386 cat >>conftest.$ac_ext <<_ACEOF
13387 /* end confdefs.h. */
13389 #ifdef HAVE_TERMCAP_H
13390 # include <termcap.h>
13391 #endif
13394 main ()
13396 if (UP == 0 && BC == 0) PC = 1
13398 return 0;
13400 _ACEOF
13401 rm -f conftest.$ac_objext conftest$ac_exeext
13402 if { (ac_try="$ac_link"
13403 case "(($ac_try" in
13404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13405 *) ac_try_echo=$ac_try;;
13406 esac
13407 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13408 $as_echo "$ac_try_echo") >&5
13409 (eval "$ac_link") 2>conftest.er1
13410 ac_status=$?
13411 grep -v '^ *+' conftest.er1 >conftest.err
13412 rm -f conftest.er1
13413 cat conftest.err >&5
13414 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13415 (exit $ac_status); } && {
13416 test -z "$ac_c_werror_flag" ||
13417 test ! -s conftest.err
13418 } && test -s conftest$ac_exeext && {
13419 test "$cross_compiling" = yes ||
13420 $as_test_x conftest$ac_exeext
13421 }; then
13422 { $as_echo "$as_me:$LINENO: result: yes" >&5
13423 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13424 #define HAVE_UP_BC_PC 1
13425 _ACEOF
13427 else
13428 $as_echo "$as_me: failed program was:" >&5
13429 sed 's/^/| /' conftest.$ac_ext >&5
13431 { $as_echo "$as_me:$LINENO: result: no" >&5
13432 $as_echo "no" >&6; }
13433 { $as_echo "$as_me:$LINENO: checking whether UP, BC and PC can be extern" >&5
13434 $as_echo_n "checking whether UP, BC and PC can be extern... " >&6; }
13435 cat >conftest.$ac_ext <<_ACEOF
13436 /* confdefs.h. */
13437 _ACEOF
13438 cat confdefs.h >>conftest.$ac_ext
13439 cat >>conftest.$ac_ext <<_ACEOF
13440 /* end confdefs.h. */
13442 #ifdef HAVE_TERMCAP_H
13443 # include <termcap.h>
13444 #endif
13445 extern char *UP, *BC, PC;
13448 main ()
13450 if (UP == 0 && BC == 0) PC = 1
13452 return 0;
13454 _ACEOF
13455 rm -f conftest.$ac_objext conftest$ac_exeext
13456 if { (ac_try="$ac_link"
13457 case "(($ac_try" in
13458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13459 *) ac_try_echo=$ac_try;;
13460 esac
13461 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13462 $as_echo "$ac_try_echo") >&5
13463 (eval "$ac_link") 2>conftest.er1
13464 ac_status=$?
13465 grep -v '^ *+' conftest.er1 >conftest.err
13466 rm -f conftest.er1
13467 cat conftest.err >&5
13468 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13469 (exit $ac_status); } && {
13470 test -z "$ac_c_werror_flag" ||
13471 test ! -s conftest.err
13472 } && test -s conftest$ac_exeext && {
13473 test "$cross_compiling" = yes ||
13474 $as_test_x conftest$ac_exeext
13475 }; then
13476 { $as_echo "$as_me:$LINENO: result: yes" >&5
13477 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13478 #define UP_BC_PC_EXTERN 1
13479 _ACEOF
13481 else
13482 $as_echo "$as_me: failed program was:" >&5
13483 sed 's/^/| /' conftest.$ac_ext >&5
13485 { $as_echo "$as_me:$LINENO: result: no" >&5
13486 $as_echo "no" >&6; }
13489 rm -rf conftest.dSYM
13490 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13491 conftest$ac_exeext conftest.$ac_ext
13495 rm -rf conftest.dSYM
13496 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13497 conftest$ac_exeext conftest.$ac_ext
13499 { $as_echo "$as_me:$LINENO: checking whether tputs() uses outfuntype" >&5
13500 $as_echo_n "checking whether tputs() uses outfuntype... " >&6; }
13501 cat >conftest.$ac_ext <<_ACEOF
13502 /* confdefs.h. */
13503 _ACEOF
13504 cat confdefs.h >>conftest.$ac_ext
13505 cat >>conftest.$ac_ext <<_ACEOF
13506 /* end confdefs.h. */
13508 #ifdef HAVE_TERMCAP_H
13509 # include <termcap.h>
13510 #endif
13513 main ()
13515 extern int xx(); tputs("test", 1, (outfuntype)xx)
13517 return 0;
13519 _ACEOF
13520 rm -f conftest.$ac_objext
13521 if { (ac_try="$ac_compile"
13522 case "(($ac_try" in
13523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13524 *) ac_try_echo=$ac_try;;
13525 esac
13526 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13527 $as_echo "$ac_try_echo") >&5
13528 (eval "$ac_compile") 2>conftest.er1
13529 ac_status=$?
13530 grep -v '^ *+' conftest.er1 >conftest.err
13531 rm -f conftest.er1
13532 cat conftest.err >&5
13533 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13534 (exit $ac_status); } && {
13535 test -z "$ac_c_werror_flag" ||
13536 test ! -s conftest.err
13537 } && test -s conftest.$ac_objext; then
13538 { $as_echo "$as_me:$LINENO: result: yes" >&5
13539 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13540 #define HAVE_OUTFUNTYPE 1
13541 _ACEOF
13543 else
13544 $as_echo "$as_me: failed program was:" >&5
13545 sed 's/^/| /' conftest.$ac_ext >&5
13547 { $as_echo "$as_me:$LINENO: result: no" >&5
13548 $as_echo "no" >&6; }
13551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13553 { $as_echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
13554 $as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; }
13555 cat >conftest.$ac_ext <<_ACEOF
13556 /* confdefs.h. */
13557 _ACEOF
13558 cat confdefs.h >>conftest.$ac_ext
13559 cat >>conftest.$ac_ext <<_ACEOF
13560 /* end confdefs.h. */
13562 #include <sys/types.h>
13563 #include <sys/time.h>
13564 #include <sys/select.h>
13566 main ()
13570 return 0;
13572 _ACEOF
13573 rm -f conftest.$ac_objext
13574 if { (ac_try="$ac_compile"
13575 case "(($ac_try" in
13576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13577 *) ac_try_echo=$ac_try;;
13578 esac
13579 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13580 $as_echo "$ac_try_echo") >&5
13581 (eval "$ac_compile") 2>conftest.er1
13582 ac_status=$?
13583 grep -v '^ *+' conftest.er1 >conftest.err
13584 rm -f conftest.er1
13585 cat conftest.err >&5
13586 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13587 (exit $ac_status); } && {
13588 test -z "$ac_c_werror_flag" ||
13589 test ! -s conftest.err
13590 } && test -s conftest.$ac_objext; then
13591 { $as_echo "$as_me:$LINENO: result: yes" >&5
13592 $as_echo "yes" >&6; }
13593 cat >>confdefs.h <<\_ACEOF
13594 #define SYS_SELECT_WITH_SYS_TIME 1
13595 _ACEOF
13597 else
13598 $as_echo "$as_me: failed program was:" >&5
13599 sed 's/^/| /' conftest.$ac_ext >&5
13601 { $as_echo "$as_me:$LINENO: result: no" >&5
13602 $as_echo "no" >&6; }
13605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13608 { $as_echo "$as_me:$LINENO: checking for /dev/ptc" >&5
13609 $as_echo_n "checking for /dev/ptc... " >&6; }
13610 if test -r /dev/ptc; then
13611 cat >>confdefs.h <<\_ACEOF
13612 #define HAVE_DEV_PTC 1
13613 _ACEOF
13615 { $as_echo "$as_me:$LINENO: result: yes" >&5
13616 $as_echo "yes" >&6; }
13617 else
13618 { $as_echo "$as_me:$LINENO: result: no" >&5
13619 $as_echo "no" >&6; }
13622 { $as_echo "$as_me:$LINENO: checking for SVR4 ptys" >&5
13623 $as_echo_n "checking for SVR4 ptys... " >&6; }
13624 if test -c /dev/ptmx ; then
13625 cat >conftest.$ac_ext <<_ACEOF
13626 /* confdefs.h. */
13627 _ACEOF
13628 cat confdefs.h >>conftest.$ac_ext
13629 cat >>conftest.$ac_ext <<_ACEOF
13630 /* end confdefs.h. */
13633 main ()
13635 ptsname(0);grantpt(0);unlockpt(0);
13637 return 0;
13639 _ACEOF
13640 rm -f conftest.$ac_objext conftest$ac_exeext
13641 if { (ac_try="$ac_link"
13642 case "(($ac_try" in
13643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13644 *) ac_try_echo=$ac_try;;
13645 esac
13646 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13647 $as_echo "$ac_try_echo") >&5
13648 (eval "$ac_link") 2>conftest.er1
13649 ac_status=$?
13650 grep -v '^ *+' conftest.er1 >conftest.err
13651 rm -f conftest.er1
13652 cat conftest.err >&5
13653 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13654 (exit $ac_status); } && {
13655 test -z "$ac_c_werror_flag" ||
13656 test ! -s conftest.err
13657 } && test -s conftest$ac_exeext && {
13658 test "$cross_compiling" = yes ||
13659 $as_test_x conftest$ac_exeext
13660 }; then
13661 { $as_echo "$as_me:$LINENO: result: yes" >&5
13662 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13663 #define HAVE_SVR4_PTYS 1
13664 _ACEOF
13666 else
13667 $as_echo "$as_me: failed program was:" >&5
13668 sed 's/^/| /' conftest.$ac_ext >&5
13670 { $as_echo "$as_me:$LINENO: result: no" >&5
13671 $as_echo "no" >&6; }
13674 rm -rf conftest.dSYM
13675 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13676 conftest$ac_exeext conftest.$ac_ext
13677 else
13678 { $as_echo "$as_me:$LINENO: result: no" >&5
13679 $as_echo "no" >&6; }
13682 { $as_echo "$as_me:$LINENO: checking for ptyranges" >&5
13683 $as_echo_n "checking for ptyranges... " >&6; }
13684 if test -d /dev/ptym ; then
13685 pdir='/dev/ptym'
13686 else
13687 pdir='/dev'
13689 cat >conftest.$ac_ext <<_ACEOF
13690 /* confdefs.h. */
13691 _ACEOF
13692 cat confdefs.h >>conftest.$ac_ext
13693 cat >>conftest.$ac_ext <<_ACEOF
13694 /* end confdefs.h. */
13695 #ifdef M_UNIX
13696 yes;
13697 #endif
13699 _ACEOF
13700 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13701 $EGREP "yes" >/dev/null 2>&1; then
13702 ptys=`echo /dev/ptyp??`
13703 else
13704 ptys=`echo $pdir/pty??`
13706 rm -f conftest*
13708 if test "$ptys" != "$pdir/pty??" ; then
13709 p0=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'`
13710 p1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'`
13711 cat >>confdefs.h <<_ACEOF
13712 #define PTYRANGE0 "$p0"
13713 _ACEOF
13715 cat >>confdefs.h <<_ACEOF
13716 #define PTYRANGE1 "$p1"
13717 _ACEOF
13719 { $as_echo "$as_me:$LINENO: result: $p0 / $p1" >&5
13720 $as_echo "$p0 / $p1" >&6; }
13721 else
13722 { $as_echo "$as_me:$LINENO: result: don't know" >&5
13723 $as_echo "don't know" >&6; }
13726 rm -f conftest_grp
13727 { $as_echo "$as_me:$LINENO: checking default tty permissions/group" >&5
13728 $as_echo_n "checking default tty permissions/group... " >&6; }
13729 if test "${vim_cv_tty_group+set}" = set; then
13730 $as_echo_n "(cached) " >&6
13731 else
13733 if test "$cross_compiling" = yes; then
13735 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_tty_group' and 'vim_cv_tty_mode'" >&5
13736 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_tty_group' and 'vim_cv_tty_mode'" >&2;}
13737 { (exit 1); exit 1; }; }
13739 else
13740 cat >conftest.$ac_ext <<_ACEOF
13742 #include "confdefs.h"
13743 #include <sys/types.h>
13744 #if STDC_HEADERS
13745 # include <stdlib.h>
13746 # include <stddef.h>
13747 #endif
13748 #ifdef HAVE_UNISTD_H
13749 #include <unistd.h>
13750 #endif
13751 #include <sys/stat.h>
13752 #include <stdio.h>
13753 main()
13755 struct stat sb;
13756 char *x,*ttyname();
13757 int om, m;
13758 FILE *fp;
13760 if (!(x = ttyname(0))) exit(1);
13761 if (stat(x, &sb)) exit(1);
13762 om = sb.st_mode;
13763 if (om & 002) exit(0);
13764 m = system("mesg y");
13765 if (m == -1 || m == 127) exit(1);
13766 if (stat(x, &sb)) exit(1);
13767 m = sb.st_mode;
13768 if (chmod(x, om)) exit(1);
13769 if (m & 002) exit(0);
13770 if (sb.st_gid == getgid()) exit(1);
13771 if (!(fp=fopen("conftest_grp", "w")))
13772 exit(1);
13773 fprintf(fp, "%d\n", sb.st_gid);
13774 fclose(fp);
13775 exit(0);
13778 _ACEOF
13779 rm -f conftest$ac_exeext
13780 if { (ac_try="$ac_link"
13781 case "(($ac_try" in
13782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13783 *) ac_try_echo=$ac_try;;
13784 esac
13785 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13786 $as_echo "$ac_try_echo") >&5
13787 (eval "$ac_link") 2>&5
13788 ac_status=$?
13789 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13790 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13791 { (case "(($ac_try" in
13792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13793 *) ac_try_echo=$ac_try;;
13794 esac
13795 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13796 $as_echo "$ac_try_echo") >&5
13797 (eval "$ac_try") 2>&5
13798 ac_status=$?
13799 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13800 (exit $ac_status); }; }; then
13802 if test -f conftest_grp; then
13803 vim_cv_tty_group=`cat conftest_grp`
13804 if test "x$vim_cv_tty_mode" = "x" ; then
13805 vim_cv_tty_mode=0620
13807 { $as_echo "$as_me:$LINENO: result: pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&5
13808 $as_echo "pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&6; }
13809 else
13810 vim_cv_tty_group=world
13811 { $as_echo "$as_me:$LINENO: result: ptys are world accessible" >&5
13812 $as_echo "ptys are world accessible" >&6; }
13815 else
13816 $as_echo "$as_me: program exited with status $ac_status" >&5
13817 $as_echo "$as_me: failed program was:" >&5
13818 sed 's/^/| /' conftest.$ac_ext >&5
13820 ( exit $ac_status )
13822 vim_cv_tty_group=world
13823 { $as_echo "$as_me:$LINENO: result: can't determine - assume ptys are world accessible" >&5
13824 $as_echo "can't determine - assume ptys are world accessible" >&6; }
13827 rm -rf conftest.dSYM
13828 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13834 { $as_echo "$as_me:$LINENO: result: $vim_cv_tty_group" >&5
13835 $as_echo "$vim_cv_tty_group" >&6; }
13836 rm -f conftest_grp
13838 if test "x$vim_cv_tty_group" != "xworld" ; then
13839 cat >>confdefs.h <<_ACEOF
13840 #define PTYGROUP $vim_cv_tty_group
13841 _ACEOF
13843 if test "x$vim_cv_tty_mode" = "x" ; then
13844 { { $as_echo "$as_me:$LINENO: error: It seems you're cross compiling and have 'vim_cv_tty_group' set, please also set the environment variable 'vim_cv_tty_mode' to the correct mode (propably 0620)" >&5
13845 $as_echo "$as_me: error: It seems you're cross compiling and have 'vim_cv_tty_group' set, please also set the environment variable 'vim_cv_tty_mode' to the correct mode (propably 0620)" >&2;}
13846 { (exit 1); exit 1; }; }
13847 else
13848 cat >>confdefs.h <<\_ACEOF
13849 #define PTYMODE 0620
13850 _ACEOF
13856 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13857 $as_echo_n "checking return type of signal handlers... " >&6; }
13858 if test "${ac_cv_type_signal+set}" = set; then
13859 $as_echo_n "(cached) " >&6
13860 else
13861 cat >conftest.$ac_ext <<_ACEOF
13862 /* confdefs.h. */
13863 _ACEOF
13864 cat confdefs.h >>conftest.$ac_ext
13865 cat >>conftest.$ac_ext <<_ACEOF
13866 /* end confdefs.h. */
13867 #include <sys/types.h>
13868 #include <signal.h>
13871 main ()
13873 return *(signal (0, 0)) (0) == 1;
13875 return 0;
13877 _ACEOF
13878 rm -f conftest.$ac_objext
13879 if { (ac_try="$ac_compile"
13880 case "(($ac_try" in
13881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13882 *) ac_try_echo=$ac_try;;
13883 esac
13884 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13885 $as_echo "$ac_try_echo") >&5
13886 (eval "$ac_compile") 2>conftest.er1
13887 ac_status=$?
13888 grep -v '^ *+' conftest.er1 >conftest.err
13889 rm -f conftest.er1
13890 cat conftest.err >&5
13891 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13892 (exit $ac_status); } && {
13893 test -z "$ac_c_werror_flag" ||
13894 test ! -s conftest.err
13895 } && test -s conftest.$ac_objext; then
13896 ac_cv_type_signal=int
13897 else
13898 $as_echo "$as_me: failed program was:" >&5
13899 sed 's/^/| /' conftest.$ac_ext >&5
13901 ac_cv_type_signal=void
13904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13906 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
13907 $as_echo "$ac_cv_type_signal" >&6; }
13909 cat >>confdefs.h <<_ACEOF
13910 #define RETSIGTYPE $ac_cv_type_signal
13911 _ACEOF
13915 if test $ac_cv_type_signal = void; then
13916 cat >>confdefs.h <<\_ACEOF
13917 #define SIGRETURN return
13918 _ACEOF
13920 else
13921 cat >>confdefs.h <<\_ACEOF
13922 #define SIGRETURN return 0
13923 _ACEOF
13927 { $as_echo "$as_me:$LINENO: checking for struct sigcontext" >&5
13928 $as_echo_n "checking for struct sigcontext... " >&6; }
13929 cat >conftest.$ac_ext <<_ACEOF
13930 /* confdefs.h. */
13931 _ACEOF
13932 cat confdefs.h >>conftest.$ac_ext
13933 cat >>conftest.$ac_ext <<_ACEOF
13934 /* end confdefs.h. */
13936 #include <signal.h>
13937 test_sig()
13939 struct sigcontext *scont;
13940 scont = (struct sigcontext *)0;
13941 return 1;
13944 main ()
13948 return 0;
13950 _ACEOF
13951 rm -f conftest.$ac_objext
13952 if { (ac_try="$ac_compile"
13953 case "(($ac_try" in
13954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13955 *) ac_try_echo=$ac_try;;
13956 esac
13957 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13958 $as_echo "$ac_try_echo") >&5
13959 (eval "$ac_compile") 2>conftest.er1
13960 ac_status=$?
13961 grep -v '^ *+' conftest.er1 >conftest.err
13962 rm -f conftest.er1
13963 cat conftest.err >&5
13964 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13965 (exit $ac_status); } && {
13966 test -z "$ac_c_werror_flag" ||
13967 test ! -s conftest.err
13968 } && test -s conftest.$ac_objext; then
13969 { $as_echo "$as_me:$LINENO: result: yes" >&5
13970 $as_echo "yes" >&6; }
13971 cat >>confdefs.h <<\_ACEOF
13972 #define HAVE_SIGCONTEXT 1
13973 _ACEOF
13975 else
13976 $as_echo "$as_me: failed program was:" >&5
13977 sed 's/^/| /' conftest.$ac_ext >&5
13979 { $as_echo "$as_me:$LINENO: result: no" >&5
13980 $as_echo "no" >&6; }
13983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13985 { $as_echo "$as_me:$LINENO: checking getcwd implementation is broken" >&5
13986 $as_echo_n "checking getcwd implementation is broken... " >&6; }
13987 if test "${vim_cv_getcwd_broken+set}" = set; then
13988 $as_echo_n "(cached) " >&6
13989 else
13991 if test "$cross_compiling" = yes; then
13993 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_getcwd_broken'" >&5
13994 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_getcwd_broken'" >&2;}
13995 { (exit 1); exit 1; }; }
13997 else
13998 cat >conftest.$ac_ext <<_ACEOF
14000 #include "confdefs.h"
14001 #ifdef HAVE_UNISTD_H
14002 #include <unistd.h>
14003 #endif
14004 char *dagger[] = { "IFS=pwd", 0 };
14005 main()
14007 char buffer[500];
14008 extern char **environ;
14009 environ = dagger;
14010 return getcwd(buffer, 500) ? 0 : 1;
14013 _ACEOF
14014 rm -f conftest$ac_exeext
14015 if { (ac_try="$ac_link"
14016 case "(($ac_try" in
14017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14018 *) ac_try_echo=$ac_try;;
14019 esac
14020 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14021 $as_echo "$ac_try_echo") >&5
14022 (eval "$ac_link") 2>&5
14023 ac_status=$?
14024 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14025 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14026 { (case "(($ac_try" in
14027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14028 *) ac_try_echo=$ac_try;;
14029 esac
14030 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14031 $as_echo "$ac_try_echo") >&5
14032 (eval "$ac_try") 2>&5
14033 ac_status=$?
14034 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14035 (exit $ac_status); }; }; then
14037 vim_cv_getcwd_broken=no
14039 else
14040 $as_echo "$as_me: program exited with status $ac_status" >&5
14041 $as_echo "$as_me: failed program was:" >&5
14042 sed 's/^/| /' conftest.$ac_ext >&5
14044 ( exit $ac_status )
14046 vim_cv_getcwd_broken=yes
14049 rm -rf conftest.dSYM
14050 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14056 { $as_echo "$as_me:$LINENO: result: $vim_cv_getcwd_broken" >&5
14057 $as_echo "$vim_cv_getcwd_broken" >&6; }
14059 if test "x$vim_cv_getcwd_broken" = "xyes" ; then
14060 cat >>confdefs.h <<\_ACEOF
14061 #define BAD_GETCWD 1
14062 _ACEOF
14111 for ac_func in bcmp fchdir fchown fsync getcwd getpseudotty \
14112 getpwnam getpwuid getrlimit gettimeofday getwd lstat memcmp \
14113 memset mkdtemp nanosleep opendir putenv qsort readlink select setenv \
14114 setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \
14115 sigvec strcasecmp strerror strftime stricmp strncasecmp \
14116 strnicmp strpbrk strtol tgetent towlower towupper iswupper \
14117 usleep utime utimes
14119 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14120 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14121 $as_echo_n "checking for $ac_func... " >&6; }
14122 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14123 $as_echo_n "(cached) " >&6
14124 else
14125 cat >conftest.$ac_ext <<_ACEOF
14126 /* confdefs.h. */
14127 _ACEOF
14128 cat confdefs.h >>conftest.$ac_ext
14129 cat >>conftest.$ac_ext <<_ACEOF
14130 /* end confdefs.h. */
14131 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14132 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14133 #define $ac_func innocuous_$ac_func
14135 /* System header to define __stub macros and hopefully few prototypes,
14136 which can conflict with char $ac_func (); below.
14137 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14138 <limits.h> exists even on freestanding compilers. */
14140 #ifdef __STDC__
14141 # include <limits.h>
14142 #else
14143 # include <assert.h>
14144 #endif
14146 #undef $ac_func
14148 /* Override any GCC internal prototype to avoid an error.
14149 Use char because int might match the return type of a GCC
14150 builtin and then its argument prototype would still apply. */
14151 #ifdef __cplusplus
14152 extern "C"
14153 #endif
14154 char $ac_func ();
14155 /* The GNU C library defines this for functions which it implements
14156 to always fail with ENOSYS. Some functions are actually named
14157 something starting with __ and the normal name is an alias. */
14158 #if defined __stub_$ac_func || defined __stub___$ac_func
14159 choke me
14160 #endif
14163 main ()
14165 return $ac_func ();
14167 return 0;
14169 _ACEOF
14170 rm -f conftest.$ac_objext conftest$ac_exeext
14171 if { (ac_try="$ac_link"
14172 case "(($ac_try" in
14173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14174 *) ac_try_echo=$ac_try;;
14175 esac
14176 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14177 $as_echo "$ac_try_echo") >&5
14178 (eval "$ac_link") 2>conftest.er1
14179 ac_status=$?
14180 grep -v '^ *+' conftest.er1 >conftest.err
14181 rm -f conftest.er1
14182 cat conftest.err >&5
14183 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14184 (exit $ac_status); } && {
14185 test -z "$ac_c_werror_flag" ||
14186 test ! -s conftest.err
14187 } && test -s conftest$ac_exeext && {
14188 test "$cross_compiling" = yes ||
14189 $as_test_x conftest$ac_exeext
14190 }; then
14191 eval "$as_ac_var=yes"
14192 else
14193 $as_echo "$as_me: failed program was:" >&5
14194 sed 's/^/| /' conftest.$ac_ext >&5
14196 eval "$as_ac_var=no"
14199 rm -rf conftest.dSYM
14200 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14201 conftest$ac_exeext conftest.$ac_ext
14203 ac_res=`eval 'as_val=${'$as_ac_var'}
14204 $as_echo "$as_val"'`
14205 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14206 $as_echo "$ac_res" >&6; }
14207 as_val=`eval 'as_val=${'$as_ac_var'}
14208 $as_echo "$as_val"'`
14209 if test "x$as_val" = x""yes; then
14210 cat >>confdefs.h <<_ACEOF
14211 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14212 _ACEOF
14215 done
14217 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
14218 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
14219 if test "${ac_cv_sys_largefile_source+set}" = set; then
14220 $as_echo_n "(cached) " >&6
14221 else
14222 while :; do
14223 cat >conftest.$ac_ext <<_ACEOF
14224 /* confdefs.h. */
14225 _ACEOF
14226 cat confdefs.h >>conftest.$ac_ext
14227 cat >>conftest.$ac_ext <<_ACEOF
14228 /* end confdefs.h. */
14229 #include <sys/types.h> /* for off_t */
14230 #include <stdio.h>
14232 main ()
14234 int (*fp) (FILE *, off_t, int) = fseeko;
14235 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14237 return 0;
14239 _ACEOF
14240 rm -f conftest.$ac_objext conftest$ac_exeext
14241 if { (ac_try="$ac_link"
14242 case "(($ac_try" in
14243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14244 *) ac_try_echo=$ac_try;;
14245 esac
14246 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14247 $as_echo "$ac_try_echo") >&5
14248 (eval "$ac_link") 2>conftest.er1
14249 ac_status=$?
14250 grep -v '^ *+' conftest.er1 >conftest.err
14251 rm -f conftest.er1
14252 cat conftest.err >&5
14253 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14254 (exit $ac_status); } && {
14255 test -z "$ac_c_werror_flag" ||
14256 test ! -s conftest.err
14257 } && test -s conftest$ac_exeext && {
14258 test "$cross_compiling" = yes ||
14259 $as_test_x conftest$ac_exeext
14260 }; then
14261 ac_cv_sys_largefile_source=no; break
14262 else
14263 $as_echo "$as_me: failed program was:" >&5
14264 sed 's/^/| /' conftest.$ac_ext >&5
14269 rm -rf conftest.dSYM
14270 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14271 conftest$ac_exeext conftest.$ac_ext
14272 cat >conftest.$ac_ext <<_ACEOF
14273 /* confdefs.h. */
14274 _ACEOF
14275 cat confdefs.h >>conftest.$ac_ext
14276 cat >>conftest.$ac_ext <<_ACEOF
14277 /* end confdefs.h. */
14278 #define _LARGEFILE_SOURCE 1
14279 #include <sys/types.h> /* for off_t */
14280 #include <stdio.h>
14282 main ()
14284 int (*fp) (FILE *, off_t, int) = fseeko;
14285 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14287 return 0;
14289 _ACEOF
14290 rm -f conftest.$ac_objext conftest$ac_exeext
14291 if { (ac_try="$ac_link"
14292 case "(($ac_try" in
14293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14294 *) ac_try_echo=$ac_try;;
14295 esac
14296 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14297 $as_echo "$ac_try_echo") >&5
14298 (eval "$ac_link") 2>conftest.er1
14299 ac_status=$?
14300 grep -v '^ *+' conftest.er1 >conftest.err
14301 rm -f conftest.er1
14302 cat conftest.err >&5
14303 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14304 (exit $ac_status); } && {
14305 test -z "$ac_c_werror_flag" ||
14306 test ! -s conftest.err
14307 } && test -s conftest$ac_exeext && {
14308 test "$cross_compiling" = yes ||
14309 $as_test_x conftest$ac_exeext
14310 }; then
14311 ac_cv_sys_largefile_source=1; break
14312 else
14313 $as_echo "$as_me: failed program was:" >&5
14314 sed 's/^/| /' conftest.$ac_ext >&5
14319 rm -rf conftest.dSYM
14320 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14321 conftest$ac_exeext conftest.$ac_ext
14322 ac_cv_sys_largefile_source=unknown
14323 break
14324 done
14326 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
14327 $as_echo "$ac_cv_sys_largefile_source" >&6; }
14328 case $ac_cv_sys_largefile_source in #(
14329 no | unknown) ;;
14331 cat >>confdefs.h <<_ACEOF
14332 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
14333 _ACEOF
14335 esac
14336 rm -rf conftest*
14338 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
14339 # in glibc 2.1.3, but that breaks too many other things.
14340 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
14341 if test $ac_cv_sys_largefile_source != unknown; then
14343 cat >>confdefs.h <<\_ACEOF
14344 #define HAVE_FSEEKO 1
14345 _ACEOF
14350 # Check whether --enable-largefile was given.
14351 if test "${enable_largefile+set}" = set; then
14352 enableval=$enable_largefile;
14355 if test "$enable_largefile" != no; then
14357 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
14358 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
14359 if test "${ac_cv_sys_largefile_CC+set}" = set; then
14360 $as_echo_n "(cached) " >&6
14361 else
14362 ac_cv_sys_largefile_CC=no
14363 if test "$GCC" != yes; then
14364 ac_save_CC=$CC
14365 while :; do
14366 # IRIX 6.2 and later do not support large files by default,
14367 # so use the C compiler's -n32 option if that helps.
14368 cat >conftest.$ac_ext <<_ACEOF
14369 /* confdefs.h. */
14370 _ACEOF
14371 cat confdefs.h >>conftest.$ac_ext
14372 cat >>conftest.$ac_ext <<_ACEOF
14373 /* end confdefs.h. */
14374 #include <sys/types.h>
14375 /* Check that off_t can represent 2**63 - 1 correctly.
14376 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14377 since some C++ compilers masquerading as C compilers
14378 incorrectly reject 9223372036854775807. */
14379 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14380 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14381 && LARGE_OFF_T % 2147483647 == 1)
14382 ? 1 : -1];
14384 main ()
14388 return 0;
14390 _ACEOF
14391 rm -f conftest.$ac_objext
14392 if { (ac_try="$ac_compile"
14393 case "(($ac_try" in
14394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14395 *) ac_try_echo=$ac_try;;
14396 esac
14397 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14398 $as_echo "$ac_try_echo") >&5
14399 (eval "$ac_compile") 2>conftest.er1
14400 ac_status=$?
14401 grep -v '^ *+' conftest.er1 >conftest.err
14402 rm -f conftest.er1
14403 cat conftest.err >&5
14404 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14405 (exit $ac_status); } && {
14406 test -z "$ac_c_werror_flag" ||
14407 test ! -s conftest.err
14408 } && test -s conftest.$ac_objext; then
14409 break
14410 else
14411 $as_echo "$as_me: failed program was:" >&5
14412 sed 's/^/| /' conftest.$ac_ext >&5
14417 rm -f core conftest.err conftest.$ac_objext
14418 CC="$CC -n32"
14419 rm -f conftest.$ac_objext
14420 if { (ac_try="$ac_compile"
14421 case "(($ac_try" in
14422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14423 *) ac_try_echo=$ac_try;;
14424 esac
14425 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14426 $as_echo "$ac_try_echo") >&5
14427 (eval "$ac_compile") 2>conftest.er1
14428 ac_status=$?
14429 grep -v '^ *+' conftest.er1 >conftest.err
14430 rm -f conftest.er1
14431 cat conftest.err >&5
14432 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14433 (exit $ac_status); } && {
14434 test -z "$ac_c_werror_flag" ||
14435 test ! -s conftest.err
14436 } && test -s conftest.$ac_objext; then
14437 ac_cv_sys_largefile_CC=' -n32'; break
14438 else
14439 $as_echo "$as_me: failed program was:" >&5
14440 sed 's/^/| /' conftest.$ac_ext >&5
14445 rm -f core conftest.err conftest.$ac_objext
14446 break
14447 done
14448 CC=$ac_save_CC
14449 rm -f conftest.$ac_ext
14452 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
14453 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
14454 if test "$ac_cv_sys_largefile_CC" != no; then
14455 CC=$CC$ac_cv_sys_largefile_CC
14458 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
14459 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
14460 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
14461 $as_echo_n "(cached) " >&6
14462 else
14463 while :; do
14464 cat >conftest.$ac_ext <<_ACEOF
14465 /* confdefs.h. */
14466 _ACEOF
14467 cat confdefs.h >>conftest.$ac_ext
14468 cat >>conftest.$ac_ext <<_ACEOF
14469 /* end confdefs.h. */
14470 #include <sys/types.h>
14471 /* Check that off_t can represent 2**63 - 1 correctly.
14472 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14473 since some C++ compilers masquerading as C compilers
14474 incorrectly reject 9223372036854775807. */
14475 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14476 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14477 && LARGE_OFF_T % 2147483647 == 1)
14478 ? 1 : -1];
14480 main ()
14484 return 0;
14486 _ACEOF
14487 rm -f conftest.$ac_objext
14488 if { (ac_try="$ac_compile"
14489 case "(($ac_try" in
14490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14491 *) ac_try_echo=$ac_try;;
14492 esac
14493 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14494 $as_echo "$ac_try_echo") >&5
14495 (eval "$ac_compile") 2>conftest.er1
14496 ac_status=$?
14497 grep -v '^ *+' conftest.er1 >conftest.err
14498 rm -f conftest.er1
14499 cat conftest.err >&5
14500 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14501 (exit $ac_status); } && {
14502 test -z "$ac_c_werror_flag" ||
14503 test ! -s conftest.err
14504 } && test -s conftest.$ac_objext; then
14505 ac_cv_sys_file_offset_bits=no; break
14506 else
14507 $as_echo "$as_me: failed program was:" >&5
14508 sed 's/^/| /' conftest.$ac_ext >&5
14513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14514 cat >conftest.$ac_ext <<_ACEOF
14515 /* confdefs.h. */
14516 _ACEOF
14517 cat confdefs.h >>conftest.$ac_ext
14518 cat >>conftest.$ac_ext <<_ACEOF
14519 /* end confdefs.h. */
14520 #define _FILE_OFFSET_BITS 64
14521 #include <sys/types.h>
14522 /* Check that off_t can represent 2**63 - 1 correctly.
14523 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14524 since some C++ compilers masquerading as C compilers
14525 incorrectly reject 9223372036854775807. */
14526 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14527 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14528 && LARGE_OFF_T % 2147483647 == 1)
14529 ? 1 : -1];
14531 main ()
14535 return 0;
14537 _ACEOF
14538 rm -f conftest.$ac_objext
14539 if { (ac_try="$ac_compile"
14540 case "(($ac_try" in
14541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14542 *) ac_try_echo=$ac_try;;
14543 esac
14544 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14545 $as_echo "$ac_try_echo") >&5
14546 (eval "$ac_compile") 2>conftest.er1
14547 ac_status=$?
14548 grep -v '^ *+' conftest.er1 >conftest.err
14549 rm -f conftest.er1
14550 cat conftest.err >&5
14551 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14552 (exit $ac_status); } && {
14553 test -z "$ac_c_werror_flag" ||
14554 test ! -s conftest.err
14555 } && test -s conftest.$ac_objext; then
14556 ac_cv_sys_file_offset_bits=64; break
14557 else
14558 $as_echo "$as_me: failed program was:" >&5
14559 sed 's/^/| /' conftest.$ac_ext >&5
14564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14565 ac_cv_sys_file_offset_bits=unknown
14566 break
14567 done
14569 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
14570 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
14571 case $ac_cv_sys_file_offset_bits in #(
14572 no | unknown) ;;
14574 cat >>confdefs.h <<_ACEOF
14575 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
14576 _ACEOF
14578 esac
14579 rm -rf conftest*
14580 if test $ac_cv_sys_file_offset_bits = unknown; then
14581 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
14582 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
14583 if test "${ac_cv_sys_large_files+set}" = set; then
14584 $as_echo_n "(cached) " >&6
14585 else
14586 while :; do
14587 cat >conftest.$ac_ext <<_ACEOF
14588 /* confdefs.h. */
14589 _ACEOF
14590 cat confdefs.h >>conftest.$ac_ext
14591 cat >>conftest.$ac_ext <<_ACEOF
14592 /* end confdefs.h. */
14593 #include <sys/types.h>
14594 /* Check that off_t can represent 2**63 - 1 correctly.
14595 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14596 since some C++ compilers masquerading as C compilers
14597 incorrectly reject 9223372036854775807. */
14598 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14599 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14600 && LARGE_OFF_T % 2147483647 == 1)
14601 ? 1 : -1];
14603 main ()
14607 return 0;
14609 _ACEOF
14610 rm -f conftest.$ac_objext
14611 if { (ac_try="$ac_compile"
14612 case "(($ac_try" in
14613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14614 *) ac_try_echo=$ac_try;;
14615 esac
14616 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14617 $as_echo "$ac_try_echo") >&5
14618 (eval "$ac_compile") 2>conftest.er1
14619 ac_status=$?
14620 grep -v '^ *+' conftest.er1 >conftest.err
14621 rm -f conftest.er1
14622 cat conftest.err >&5
14623 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14624 (exit $ac_status); } && {
14625 test -z "$ac_c_werror_flag" ||
14626 test ! -s conftest.err
14627 } && test -s conftest.$ac_objext; then
14628 ac_cv_sys_large_files=no; break
14629 else
14630 $as_echo "$as_me: failed program was:" >&5
14631 sed 's/^/| /' conftest.$ac_ext >&5
14636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14637 cat >conftest.$ac_ext <<_ACEOF
14638 /* confdefs.h. */
14639 _ACEOF
14640 cat confdefs.h >>conftest.$ac_ext
14641 cat >>conftest.$ac_ext <<_ACEOF
14642 /* end confdefs.h. */
14643 #define _LARGE_FILES 1
14644 #include <sys/types.h>
14645 /* Check that off_t can represent 2**63 - 1 correctly.
14646 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14647 since some C++ compilers masquerading as C compilers
14648 incorrectly reject 9223372036854775807. */
14649 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14650 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14651 && LARGE_OFF_T % 2147483647 == 1)
14652 ? 1 : -1];
14654 main ()
14658 return 0;
14660 _ACEOF
14661 rm -f conftest.$ac_objext
14662 if { (ac_try="$ac_compile"
14663 case "(($ac_try" in
14664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14665 *) ac_try_echo=$ac_try;;
14666 esac
14667 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14668 $as_echo "$ac_try_echo") >&5
14669 (eval "$ac_compile") 2>conftest.er1
14670 ac_status=$?
14671 grep -v '^ *+' conftest.er1 >conftest.err
14672 rm -f conftest.er1
14673 cat conftest.err >&5
14674 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14675 (exit $ac_status); } && {
14676 test -z "$ac_c_werror_flag" ||
14677 test ! -s conftest.err
14678 } && test -s conftest.$ac_objext; then
14679 ac_cv_sys_large_files=1; break
14680 else
14681 $as_echo "$as_me: failed program was:" >&5
14682 sed 's/^/| /' conftest.$ac_ext >&5
14687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14688 ac_cv_sys_large_files=unknown
14689 break
14690 done
14692 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
14693 $as_echo "$ac_cv_sys_large_files" >&6; }
14694 case $ac_cv_sys_large_files in #(
14695 no | unknown) ;;
14697 cat >>confdefs.h <<_ACEOF
14698 #define _LARGE_FILES $ac_cv_sys_large_files
14699 _ACEOF
14701 esac
14702 rm -rf conftest*
14707 { $as_echo "$as_me:$LINENO: checking for st_blksize" >&5
14708 $as_echo_n "checking for st_blksize... " >&6; }
14709 cat >conftest.$ac_ext <<_ACEOF
14710 /* confdefs.h. */
14711 _ACEOF
14712 cat confdefs.h >>conftest.$ac_ext
14713 cat >>conftest.$ac_ext <<_ACEOF
14714 /* end confdefs.h. */
14715 #include <sys/types.h>
14716 #include <sys/stat.h>
14718 main ()
14720 struct stat st;
14721 int n;
14723 stat("/", &st);
14724 n = (int)st.st_blksize;
14726 return 0;
14728 _ACEOF
14729 rm -f conftest.$ac_objext
14730 if { (ac_try="$ac_compile"
14731 case "(($ac_try" in
14732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14733 *) ac_try_echo=$ac_try;;
14734 esac
14735 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14736 $as_echo "$ac_try_echo") >&5
14737 (eval "$ac_compile") 2>conftest.er1
14738 ac_status=$?
14739 grep -v '^ *+' conftest.er1 >conftest.err
14740 rm -f conftest.er1
14741 cat conftest.err >&5
14742 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14743 (exit $ac_status); } && {
14744 test -z "$ac_c_werror_flag" ||
14745 test ! -s conftest.err
14746 } && test -s conftest.$ac_objext; then
14747 { $as_echo "$as_me:$LINENO: result: yes" >&5
14748 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14749 #define HAVE_ST_BLKSIZE 1
14750 _ACEOF
14752 else
14753 $as_echo "$as_me: failed program was:" >&5
14754 sed 's/^/| /' conftest.$ac_ext >&5
14756 { $as_echo "$as_me:$LINENO: result: no" >&5
14757 $as_echo "no" >&6; }
14760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14762 { $as_echo "$as_me:$LINENO: checking whether stat() ignores a trailing slash" >&5
14763 $as_echo_n "checking whether stat() ignores a trailing slash... " >&6; }
14764 if test "${vim_cv_stat_ignores_slash+set}" = set; then
14765 $as_echo_n "(cached) " >&6
14766 else
14768 if test "$cross_compiling" = yes; then
14770 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_stat_ignores_slash'" >&5
14771 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_stat_ignores_slash'" >&2;}
14772 { (exit 1); exit 1; }; }
14774 else
14775 cat >conftest.$ac_ext <<_ACEOF
14777 #include "confdefs.h"
14778 #if STDC_HEADERS
14779 # include <stdlib.h>
14780 # include <stddef.h>
14781 #endif
14782 #include <sys/types.h>
14783 #include <sys/stat.h>
14784 main() {struct stat st; exit(stat("configure/", &st) != 0); }
14786 _ACEOF
14787 rm -f conftest$ac_exeext
14788 if { (ac_try="$ac_link"
14789 case "(($ac_try" in
14790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14791 *) ac_try_echo=$ac_try;;
14792 esac
14793 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14794 $as_echo "$ac_try_echo") >&5
14795 (eval "$ac_link") 2>&5
14796 ac_status=$?
14797 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14798 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14799 { (case "(($ac_try" in
14800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14801 *) ac_try_echo=$ac_try;;
14802 esac
14803 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14804 $as_echo "$ac_try_echo") >&5
14805 (eval "$ac_try") 2>&5
14806 ac_status=$?
14807 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14808 (exit $ac_status); }; }; then
14810 vim_cv_stat_ignores_slash=yes
14812 else
14813 $as_echo "$as_me: program exited with status $ac_status" >&5
14814 $as_echo "$as_me: failed program was:" >&5
14815 sed 's/^/| /' conftest.$ac_ext >&5
14817 ( exit $ac_status )
14819 vim_cv_stat_ignores_slash=no
14822 rm -rf conftest.dSYM
14823 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14829 { $as_echo "$as_me:$LINENO: result: $vim_cv_stat_ignores_slash" >&5
14830 $as_echo "$vim_cv_stat_ignores_slash" >&6; }
14832 if test "x$vim_cv_stat_ignores_slash" = "xyes" ; then
14833 cat >>confdefs.h <<\_ACEOF
14834 #define STAT_IGNORES_SLASH 1
14835 _ACEOF
14839 { $as_echo "$as_me:$LINENO: checking for iconv_open()" >&5
14840 $as_echo_n "checking for iconv_open()... " >&6; }
14841 save_LIBS="$LIBS"
14842 LIBS="$LIBS -liconv"
14843 cat >conftest.$ac_ext <<_ACEOF
14844 /* confdefs.h. */
14845 _ACEOF
14846 cat confdefs.h >>conftest.$ac_ext
14847 cat >>conftest.$ac_ext <<_ACEOF
14848 /* end confdefs.h. */
14850 #ifdef HAVE_ICONV_H
14851 # include <iconv.h>
14852 #endif
14855 main ()
14857 iconv_open("fr", "to");
14859 return 0;
14861 _ACEOF
14862 rm -f conftest.$ac_objext conftest$ac_exeext
14863 if { (ac_try="$ac_link"
14864 case "(($ac_try" in
14865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14866 *) ac_try_echo=$ac_try;;
14867 esac
14868 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14869 $as_echo "$ac_try_echo") >&5
14870 (eval "$ac_link") 2>conftest.er1
14871 ac_status=$?
14872 grep -v '^ *+' conftest.er1 >conftest.err
14873 rm -f conftest.er1
14874 cat conftest.err >&5
14875 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14876 (exit $ac_status); } && {
14877 test -z "$ac_c_werror_flag" ||
14878 test ! -s conftest.err
14879 } && test -s conftest$ac_exeext && {
14880 test "$cross_compiling" = yes ||
14881 $as_test_x conftest$ac_exeext
14882 }; then
14883 { $as_echo "$as_me:$LINENO: result: yes; with -liconv" >&5
14884 $as_echo "yes; with -liconv" >&6; }; cat >>confdefs.h <<\_ACEOF
14885 #define HAVE_ICONV 1
14886 _ACEOF
14888 else
14889 $as_echo "$as_me: failed program was:" >&5
14890 sed 's/^/| /' conftest.$ac_ext >&5
14892 LIBS="$save_LIBS"
14893 cat >conftest.$ac_ext <<_ACEOF
14894 /* confdefs.h. */
14895 _ACEOF
14896 cat confdefs.h >>conftest.$ac_ext
14897 cat >>conftest.$ac_ext <<_ACEOF
14898 /* end confdefs.h. */
14900 #ifdef HAVE_ICONV_H
14901 # include <iconv.h>
14902 #endif
14905 main ()
14907 iconv_open("fr", "to");
14909 return 0;
14911 _ACEOF
14912 rm -f conftest.$ac_objext conftest$ac_exeext
14913 if { (ac_try="$ac_link"
14914 case "(($ac_try" in
14915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14916 *) ac_try_echo=$ac_try;;
14917 esac
14918 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14919 $as_echo "$ac_try_echo") >&5
14920 (eval "$ac_link") 2>conftest.er1
14921 ac_status=$?
14922 grep -v '^ *+' conftest.er1 >conftest.err
14923 rm -f conftest.er1
14924 cat conftest.err >&5
14925 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14926 (exit $ac_status); } && {
14927 test -z "$ac_c_werror_flag" ||
14928 test ! -s conftest.err
14929 } && test -s conftest$ac_exeext && {
14930 test "$cross_compiling" = yes ||
14931 $as_test_x conftest$ac_exeext
14932 }; then
14933 { $as_echo "$as_me:$LINENO: result: yes" >&5
14934 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14935 #define HAVE_ICONV 1
14936 _ACEOF
14938 else
14939 $as_echo "$as_me: failed program was:" >&5
14940 sed 's/^/| /' conftest.$ac_ext >&5
14942 { $as_echo "$as_me:$LINENO: result: no" >&5
14943 $as_echo "no" >&6; }
14946 rm -rf conftest.dSYM
14947 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14948 conftest$ac_exeext conftest.$ac_ext
14951 rm -rf conftest.dSYM
14952 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14953 conftest$ac_exeext conftest.$ac_ext
14956 { $as_echo "$as_me:$LINENO: checking for nl_langinfo(CODESET)" >&5
14957 $as_echo_n "checking for nl_langinfo(CODESET)... " >&6; }
14958 cat >conftest.$ac_ext <<_ACEOF
14959 /* confdefs.h. */
14960 _ACEOF
14961 cat confdefs.h >>conftest.$ac_ext
14962 cat >>conftest.$ac_ext <<_ACEOF
14963 /* end confdefs.h. */
14965 #ifdef HAVE_LANGINFO_H
14966 # include <langinfo.h>
14967 #endif
14970 main ()
14972 char *cs = nl_langinfo(CODESET);
14974 return 0;
14976 _ACEOF
14977 rm -f conftest.$ac_objext conftest$ac_exeext
14978 if { (ac_try="$ac_link"
14979 case "(($ac_try" in
14980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14981 *) ac_try_echo=$ac_try;;
14982 esac
14983 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14984 $as_echo "$ac_try_echo") >&5
14985 (eval "$ac_link") 2>conftest.er1
14986 ac_status=$?
14987 grep -v '^ *+' conftest.er1 >conftest.err
14988 rm -f conftest.er1
14989 cat conftest.err >&5
14990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14991 (exit $ac_status); } && {
14992 test -z "$ac_c_werror_flag" ||
14993 test ! -s conftest.err
14994 } && test -s conftest$ac_exeext && {
14995 test "$cross_compiling" = yes ||
14996 $as_test_x conftest$ac_exeext
14997 }; then
14998 { $as_echo "$as_me:$LINENO: result: yes" >&5
14999 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15000 #define HAVE_NL_LANGINFO_CODESET 1
15001 _ACEOF
15003 else
15004 $as_echo "$as_me: failed program was:" >&5
15005 sed 's/^/| /' conftest.$ac_ext >&5
15007 { $as_echo "$as_me:$LINENO: result: no" >&5
15008 $as_echo "no" >&6; }
15011 rm -rf conftest.dSYM
15012 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15013 conftest$ac_exeext conftest.$ac_ext
15016 { $as_echo "$as_me:$LINENO: checking for strtod in -lm" >&5
15017 $as_echo_n "checking for strtod in -lm... " >&6; }
15018 if test "${ac_cv_lib_m_strtod+set}" = set; then
15019 $as_echo_n "(cached) " >&6
15020 else
15021 ac_check_lib_save_LIBS=$LIBS
15022 LIBS="-lm $LIBS"
15023 cat >conftest.$ac_ext <<_ACEOF
15024 /* confdefs.h. */
15025 _ACEOF
15026 cat confdefs.h >>conftest.$ac_ext
15027 cat >>conftest.$ac_ext <<_ACEOF
15028 /* end confdefs.h. */
15030 /* Override any GCC internal prototype to avoid an error.
15031 Use char because int might match the return type of a GCC
15032 builtin and then its argument prototype would still apply. */
15033 #ifdef __cplusplus
15034 extern "C"
15035 #endif
15036 char strtod ();
15038 main ()
15040 return strtod ();
15042 return 0;
15044 _ACEOF
15045 rm -f conftest.$ac_objext conftest$ac_exeext
15046 if { (ac_try="$ac_link"
15047 case "(($ac_try" in
15048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15049 *) ac_try_echo=$ac_try;;
15050 esac
15051 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15052 $as_echo "$ac_try_echo") >&5
15053 (eval "$ac_link") 2>conftest.er1
15054 ac_status=$?
15055 grep -v '^ *+' conftest.er1 >conftest.err
15056 rm -f conftest.er1
15057 cat conftest.err >&5
15058 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15059 (exit $ac_status); } && {
15060 test -z "$ac_c_werror_flag" ||
15061 test ! -s conftest.err
15062 } && test -s conftest$ac_exeext && {
15063 test "$cross_compiling" = yes ||
15064 $as_test_x conftest$ac_exeext
15065 }; then
15066 ac_cv_lib_m_strtod=yes
15067 else
15068 $as_echo "$as_me: failed program was:" >&5
15069 sed 's/^/| /' conftest.$ac_ext >&5
15071 ac_cv_lib_m_strtod=no
15074 rm -rf conftest.dSYM
15075 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15076 conftest$ac_exeext conftest.$ac_ext
15077 LIBS=$ac_check_lib_save_LIBS
15079 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_strtod" >&5
15080 $as_echo "$ac_cv_lib_m_strtod" >&6; }
15081 if test "x$ac_cv_lib_m_strtod" = x""yes; then
15082 cat >>confdefs.h <<_ACEOF
15083 #define HAVE_LIBM 1
15084 _ACEOF
15086 LIBS="-lm $LIBS"
15090 { $as_echo "$as_me:$LINENO: checking for strtod() and other floating point functions" >&5
15091 $as_echo_n "checking for strtod() and other floating point functions... " >&6; }
15092 cat >conftest.$ac_ext <<_ACEOF
15093 /* confdefs.h. */
15094 _ACEOF
15095 cat confdefs.h >>conftest.$ac_ext
15096 cat >>conftest.$ac_ext <<_ACEOF
15097 /* end confdefs.h. */
15099 #ifdef HAVE_MATH_H
15100 # include <math.h>
15101 #endif
15102 #if STDC_HEADERS
15103 # include <stdlib.h>
15104 # include <stddef.h>
15105 #endif
15108 main ()
15110 char *s; double d;
15111 d = strtod("1.1", &s);
15112 d = fabs(1.11);
15113 d = ceil(1.11);
15114 d = floor(1.11);
15115 d = log10(1.11);
15116 d = pow(1.11, 2.22);
15117 d = sqrt(1.11);
15118 d = sin(1.11);
15119 d = cos(1.11);
15120 d = atan(1.11);
15123 return 0;
15125 _ACEOF
15126 rm -f conftest.$ac_objext conftest$ac_exeext
15127 if { (ac_try="$ac_link"
15128 case "(($ac_try" in
15129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15130 *) ac_try_echo=$ac_try;;
15131 esac
15132 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15133 $as_echo "$ac_try_echo") >&5
15134 (eval "$ac_link") 2>conftest.er1
15135 ac_status=$?
15136 grep -v '^ *+' conftest.er1 >conftest.err
15137 rm -f conftest.er1
15138 cat conftest.err >&5
15139 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15140 (exit $ac_status); } && {
15141 test -z "$ac_c_werror_flag" ||
15142 test ! -s conftest.err
15143 } && test -s conftest$ac_exeext && {
15144 test "$cross_compiling" = yes ||
15145 $as_test_x conftest$ac_exeext
15146 }; then
15147 { $as_echo "$as_me:$LINENO: result: yes" >&5
15148 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15149 #define HAVE_FLOAT_FUNCS 1
15150 _ACEOF
15152 else
15153 $as_echo "$as_me: failed program was:" >&5
15154 sed 's/^/| /' conftest.$ac_ext >&5
15156 { $as_echo "$as_me:$LINENO: result: no" >&5
15157 $as_echo "no" >&6; }
15160 rm -rf conftest.dSYM
15161 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15162 conftest$ac_exeext conftest.$ac_ext
15164 { $as_echo "$as_me:$LINENO: checking --disable-acl argument" >&5
15165 $as_echo_n "checking --disable-acl argument... " >&6; }
15166 # Check whether --enable-acl was given.
15167 if test "${enable_acl+set}" = set; then
15168 enableval=$enable_acl;
15169 else
15170 enable_acl="yes"
15173 if test "$enable_acl" = "yes"; then
15174 { $as_echo "$as_me:$LINENO: result: no" >&5
15175 $as_echo "no" >&6; }
15176 { $as_echo "$as_me:$LINENO: checking for acl_get_file in -lposix1e" >&5
15177 $as_echo_n "checking for acl_get_file in -lposix1e... " >&6; }
15178 if test "${ac_cv_lib_posix1e_acl_get_file+set}" = set; then
15179 $as_echo_n "(cached) " >&6
15180 else
15181 ac_check_lib_save_LIBS=$LIBS
15182 LIBS="-lposix1e $LIBS"
15183 cat >conftest.$ac_ext <<_ACEOF
15184 /* confdefs.h. */
15185 _ACEOF
15186 cat confdefs.h >>conftest.$ac_ext
15187 cat >>conftest.$ac_ext <<_ACEOF
15188 /* end confdefs.h. */
15190 /* Override any GCC internal prototype to avoid an error.
15191 Use char because int might match the return type of a GCC
15192 builtin and then its argument prototype would still apply. */
15193 #ifdef __cplusplus
15194 extern "C"
15195 #endif
15196 char acl_get_file ();
15198 main ()
15200 return acl_get_file ();
15202 return 0;
15204 _ACEOF
15205 rm -f conftest.$ac_objext conftest$ac_exeext
15206 if { (ac_try="$ac_link"
15207 case "(($ac_try" in
15208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15209 *) ac_try_echo=$ac_try;;
15210 esac
15211 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15212 $as_echo "$ac_try_echo") >&5
15213 (eval "$ac_link") 2>conftest.er1
15214 ac_status=$?
15215 grep -v '^ *+' conftest.er1 >conftest.err
15216 rm -f conftest.er1
15217 cat conftest.err >&5
15218 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15219 (exit $ac_status); } && {
15220 test -z "$ac_c_werror_flag" ||
15221 test ! -s conftest.err
15222 } && test -s conftest$ac_exeext && {
15223 test "$cross_compiling" = yes ||
15224 $as_test_x conftest$ac_exeext
15225 }; then
15226 ac_cv_lib_posix1e_acl_get_file=yes
15227 else
15228 $as_echo "$as_me: failed program was:" >&5
15229 sed 's/^/| /' conftest.$ac_ext >&5
15231 ac_cv_lib_posix1e_acl_get_file=no
15234 rm -rf conftest.dSYM
15235 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15236 conftest$ac_exeext conftest.$ac_ext
15237 LIBS=$ac_check_lib_save_LIBS
15239 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix1e_acl_get_file" >&5
15240 $as_echo "$ac_cv_lib_posix1e_acl_get_file" >&6; }
15241 if test "x$ac_cv_lib_posix1e_acl_get_file" = x""yes; then
15242 LIBS="$LIBS -lposix1e"
15243 else
15244 { $as_echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
15245 $as_echo_n "checking for acl_get_file in -lacl... " >&6; }
15246 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
15247 $as_echo_n "(cached) " >&6
15248 else
15249 ac_check_lib_save_LIBS=$LIBS
15250 LIBS="-lacl $LIBS"
15251 cat >conftest.$ac_ext <<_ACEOF
15252 /* confdefs.h. */
15253 _ACEOF
15254 cat confdefs.h >>conftest.$ac_ext
15255 cat >>conftest.$ac_ext <<_ACEOF
15256 /* end confdefs.h. */
15258 /* Override any GCC internal prototype to avoid an error.
15259 Use char because int might match the return type of a GCC
15260 builtin and then its argument prototype would still apply. */
15261 #ifdef __cplusplus
15262 extern "C"
15263 #endif
15264 char acl_get_file ();
15266 main ()
15268 return acl_get_file ();
15270 return 0;
15272 _ACEOF
15273 rm -f conftest.$ac_objext conftest$ac_exeext
15274 if { (ac_try="$ac_link"
15275 case "(($ac_try" in
15276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15277 *) ac_try_echo=$ac_try;;
15278 esac
15279 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15280 $as_echo "$ac_try_echo") >&5
15281 (eval "$ac_link") 2>conftest.er1
15282 ac_status=$?
15283 grep -v '^ *+' conftest.er1 >conftest.err
15284 rm -f conftest.er1
15285 cat conftest.err >&5
15286 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15287 (exit $ac_status); } && {
15288 test -z "$ac_c_werror_flag" ||
15289 test ! -s conftest.err
15290 } && test -s conftest$ac_exeext && {
15291 test "$cross_compiling" = yes ||
15292 $as_test_x conftest$ac_exeext
15293 }; then
15294 ac_cv_lib_acl_acl_get_file=yes
15295 else
15296 $as_echo "$as_me: failed program was:" >&5
15297 sed 's/^/| /' conftest.$ac_ext >&5
15299 ac_cv_lib_acl_acl_get_file=no
15302 rm -rf conftest.dSYM
15303 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15304 conftest$ac_exeext conftest.$ac_ext
15305 LIBS=$ac_check_lib_save_LIBS
15307 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
15308 $as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
15309 if test "x$ac_cv_lib_acl_acl_get_file" = x""yes; then
15310 LIBS="$LIBS -lacl"
15311 { $as_echo "$as_me:$LINENO: checking for fgetxattr in -lattr" >&5
15312 $as_echo_n "checking for fgetxattr in -lattr... " >&6; }
15313 if test "${ac_cv_lib_attr_fgetxattr+set}" = set; then
15314 $as_echo_n "(cached) " >&6
15315 else
15316 ac_check_lib_save_LIBS=$LIBS
15317 LIBS="-lattr $LIBS"
15318 cat >conftest.$ac_ext <<_ACEOF
15319 /* confdefs.h. */
15320 _ACEOF
15321 cat confdefs.h >>conftest.$ac_ext
15322 cat >>conftest.$ac_ext <<_ACEOF
15323 /* end confdefs.h. */
15325 /* Override any GCC internal prototype to avoid an error.
15326 Use char because int might match the return type of a GCC
15327 builtin and then its argument prototype would still apply. */
15328 #ifdef __cplusplus
15329 extern "C"
15330 #endif
15331 char fgetxattr ();
15333 main ()
15335 return fgetxattr ();
15337 return 0;
15339 _ACEOF
15340 rm -f conftest.$ac_objext conftest$ac_exeext
15341 if { (ac_try="$ac_link"
15342 case "(($ac_try" in
15343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15344 *) ac_try_echo=$ac_try;;
15345 esac
15346 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15347 $as_echo "$ac_try_echo") >&5
15348 (eval "$ac_link") 2>conftest.er1
15349 ac_status=$?
15350 grep -v '^ *+' conftest.er1 >conftest.err
15351 rm -f conftest.er1
15352 cat conftest.err >&5
15353 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15354 (exit $ac_status); } && {
15355 test -z "$ac_c_werror_flag" ||
15356 test ! -s conftest.err
15357 } && test -s conftest$ac_exeext && {
15358 test "$cross_compiling" = yes ||
15359 $as_test_x conftest$ac_exeext
15360 }; then
15361 ac_cv_lib_attr_fgetxattr=yes
15362 else
15363 $as_echo "$as_me: failed program was:" >&5
15364 sed 's/^/| /' conftest.$ac_ext >&5
15366 ac_cv_lib_attr_fgetxattr=no
15369 rm -rf conftest.dSYM
15370 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15371 conftest$ac_exeext conftest.$ac_ext
15372 LIBS=$ac_check_lib_save_LIBS
15374 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_attr_fgetxattr" >&5
15375 $as_echo "$ac_cv_lib_attr_fgetxattr" >&6; }
15376 if test "x$ac_cv_lib_attr_fgetxattr" = x""yes; then
15377 LIBS="$LIBS -lattr"
15385 { $as_echo "$as_me:$LINENO: checking for POSIX ACL support" >&5
15386 $as_echo_n "checking for POSIX ACL support... " >&6; }
15387 cat >conftest.$ac_ext <<_ACEOF
15388 /* confdefs.h. */
15389 _ACEOF
15390 cat confdefs.h >>conftest.$ac_ext
15391 cat >>conftest.$ac_ext <<_ACEOF
15392 /* end confdefs.h. */
15394 #include <sys/types.h>
15395 #ifdef HAVE_SYS_ACL_H
15396 # include <sys/acl.h>
15397 #endif
15398 acl_t acl;
15400 main ()
15402 acl = acl_get_file("foo", ACL_TYPE_ACCESS);
15403 acl_set_file("foo", ACL_TYPE_ACCESS, acl);
15404 acl_free(acl);
15406 return 0;
15408 _ACEOF
15409 rm -f conftest.$ac_objext conftest$ac_exeext
15410 if { (ac_try="$ac_link"
15411 case "(($ac_try" in
15412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15413 *) ac_try_echo=$ac_try;;
15414 esac
15415 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15416 $as_echo "$ac_try_echo") >&5
15417 (eval "$ac_link") 2>conftest.er1
15418 ac_status=$?
15419 grep -v '^ *+' conftest.er1 >conftest.err
15420 rm -f conftest.er1
15421 cat conftest.err >&5
15422 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15423 (exit $ac_status); } && {
15424 test -z "$ac_c_werror_flag" ||
15425 test ! -s conftest.err
15426 } && test -s conftest$ac_exeext && {
15427 test "$cross_compiling" = yes ||
15428 $as_test_x conftest$ac_exeext
15429 }; then
15430 { $as_echo "$as_me:$LINENO: result: yes" >&5
15431 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15432 #define HAVE_POSIX_ACL 1
15433 _ACEOF
15435 else
15436 $as_echo "$as_me: failed program was:" >&5
15437 sed 's/^/| /' conftest.$ac_ext >&5
15439 { $as_echo "$as_me:$LINENO: result: no" >&5
15440 $as_echo "no" >&6; }
15443 rm -rf conftest.dSYM
15444 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15445 conftest$ac_exeext conftest.$ac_ext
15447 { $as_echo "$as_me:$LINENO: checking for Solaris ACL support" >&5
15448 $as_echo_n "checking for Solaris ACL support... " >&6; }
15449 cat >conftest.$ac_ext <<_ACEOF
15450 /* confdefs.h. */
15451 _ACEOF
15452 cat confdefs.h >>conftest.$ac_ext
15453 cat >>conftest.$ac_ext <<_ACEOF
15454 /* end confdefs.h. */
15456 #ifdef HAVE_SYS_ACL_H
15457 # include <sys/acl.h>
15458 #endif
15460 main ()
15462 acl("foo", GETACLCNT, 0, NULL);
15465 return 0;
15467 _ACEOF
15468 rm -f conftest.$ac_objext conftest$ac_exeext
15469 if { (ac_try="$ac_link"
15470 case "(($ac_try" in
15471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15472 *) ac_try_echo=$ac_try;;
15473 esac
15474 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15475 $as_echo "$ac_try_echo") >&5
15476 (eval "$ac_link") 2>conftest.er1
15477 ac_status=$?
15478 grep -v '^ *+' conftest.er1 >conftest.err
15479 rm -f conftest.er1
15480 cat conftest.err >&5
15481 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15482 (exit $ac_status); } && {
15483 test -z "$ac_c_werror_flag" ||
15484 test ! -s conftest.err
15485 } && test -s conftest$ac_exeext && {
15486 test "$cross_compiling" = yes ||
15487 $as_test_x conftest$ac_exeext
15488 }; then
15489 { $as_echo "$as_me:$LINENO: result: yes" >&5
15490 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15491 #define HAVE_SOLARIS_ACL 1
15492 _ACEOF
15494 else
15495 $as_echo "$as_me: failed program was:" >&5
15496 sed 's/^/| /' conftest.$ac_ext >&5
15498 { $as_echo "$as_me:$LINENO: result: no" >&5
15499 $as_echo "no" >&6; }
15502 rm -rf conftest.dSYM
15503 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15504 conftest$ac_exeext conftest.$ac_ext
15506 { $as_echo "$as_me:$LINENO: checking for AIX ACL support" >&5
15507 $as_echo_n "checking for AIX ACL support... " >&6; }
15508 cat >conftest.$ac_ext <<_ACEOF
15509 /* confdefs.h. */
15510 _ACEOF
15511 cat confdefs.h >>conftest.$ac_ext
15512 cat >>conftest.$ac_ext <<_ACEOF
15513 /* end confdefs.h. */
15515 #if STDC_HEADERS
15516 # include <stdlib.h>
15517 # include <stddef.h>
15518 #endif
15519 #ifdef HAVE_SYS_ACL_H
15520 # include <sys/acl.h>
15521 #endif
15522 #ifdef HAVE_SYS_ACCESS_H
15523 # include <sys/access.h>
15524 #endif
15525 #define _ALL_SOURCE
15527 #include <sys/stat.h>
15529 int aclsize;
15530 struct acl *aclent;
15532 main ()
15534 aclsize = sizeof(struct acl);
15535 aclent = (void *)malloc(aclsize);
15536 statacl("foo", STX_NORMAL, aclent, aclsize);
15539 return 0;
15541 _ACEOF
15542 rm -f conftest.$ac_objext conftest$ac_exeext
15543 if { (ac_try="$ac_link"
15544 case "(($ac_try" in
15545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15546 *) ac_try_echo=$ac_try;;
15547 esac
15548 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15549 $as_echo "$ac_try_echo") >&5
15550 (eval "$ac_link") 2>conftest.er1
15551 ac_status=$?
15552 grep -v '^ *+' conftest.er1 >conftest.err
15553 rm -f conftest.er1
15554 cat conftest.err >&5
15555 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15556 (exit $ac_status); } && {
15557 test -z "$ac_c_werror_flag" ||
15558 test ! -s conftest.err
15559 } && test -s conftest$ac_exeext && {
15560 test "$cross_compiling" = yes ||
15561 $as_test_x conftest$ac_exeext
15562 }; then
15563 { $as_echo "$as_me:$LINENO: result: yes" >&5
15564 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15565 #define HAVE_AIX_ACL 1
15566 _ACEOF
15568 else
15569 $as_echo "$as_me: failed program was:" >&5
15570 sed 's/^/| /' conftest.$ac_ext >&5
15572 { $as_echo "$as_me:$LINENO: result: no" >&5
15573 $as_echo "no" >&6; }
15576 rm -rf conftest.dSYM
15577 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15578 conftest$ac_exeext conftest.$ac_ext
15579 else
15580 { $as_echo "$as_me:$LINENO: result: yes" >&5
15581 $as_echo "yes" >&6; }
15584 { $as_echo "$as_me:$LINENO: checking --disable-gpm argument" >&5
15585 $as_echo_n "checking --disable-gpm argument... " >&6; }
15586 # Check whether --enable-gpm was given.
15587 if test "${enable_gpm+set}" = set; then
15588 enableval=$enable_gpm;
15589 else
15590 enable_gpm="yes"
15594 if test "$enable_gpm" = "yes"; then
15595 { $as_echo "$as_me:$LINENO: result: no" >&5
15596 $as_echo "no" >&6; }
15597 { $as_echo "$as_me:$LINENO: checking for gpm" >&5
15598 $as_echo_n "checking for gpm... " >&6; }
15599 if test "${vi_cv_have_gpm+set}" = set; then
15600 $as_echo_n "(cached) " >&6
15601 else
15602 olibs="$LIBS" ; LIBS="-lgpm"
15603 cat >conftest.$ac_ext <<_ACEOF
15604 /* confdefs.h. */
15605 _ACEOF
15606 cat confdefs.h >>conftest.$ac_ext
15607 cat >>conftest.$ac_ext <<_ACEOF
15608 /* end confdefs.h. */
15609 #include <gpm.h>
15610 #include <linux/keyboard.h>
15612 main ()
15614 Gpm_GetLibVersion(NULL);
15616 return 0;
15618 _ACEOF
15619 rm -f conftest.$ac_objext conftest$ac_exeext
15620 if { (ac_try="$ac_link"
15621 case "(($ac_try" in
15622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15623 *) ac_try_echo=$ac_try;;
15624 esac
15625 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15626 $as_echo "$ac_try_echo") >&5
15627 (eval "$ac_link") 2>conftest.er1
15628 ac_status=$?
15629 grep -v '^ *+' conftest.er1 >conftest.err
15630 rm -f conftest.er1
15631 cat conftest.err >&5
15632 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15633 (exit $ac_status); } && {
15634 test -z "$ac_c_werror_flag" ||
15635 test ! -s conftest.err
15636 } && test -s conftest$ac_exeext && {
15637 test "$cross_compiling" = yes ||
15638 $as_test_x conftest$ac_exeext
15639 }; then
15640 vi_cv_have_gpm=yes
15641 else
15642 $as_echo "$as_me: failed program was:" >&5
15643 sed 's/^/| /' conftest.$ac_ext >&5
15645 vi_cv_have_gpm=no
15648 rm -rf conftest.dSYM
15649 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15650 conftest$ac_exeext conftest.$ac_ext
15651 LIBS="$olibs"
15654 { $as_echo "$as_me:$LINENO: result: $vi_cv_have_gpm" >&5
15655 $as_echo "$vi_cv_have_gpm" >&6; }
15656 if test $vi_cv_have_gpm = yes; then
15657 LIBS="$LIBS -lgpm"
15658 cat >>confdefs.h <<\_ACEOF
15659 #define HAVE_GPM 1
15660 _ACEOF
15663 else
15664 { $as_echo "$as_me:$LINENO: result: yes" >&5
15665 $as_echo "yes" >&6; }
15668 { $as_echo "$as_me:$LINENO: checking --disable-sysmouse argument" >&5
15669 $as_echo_n "checking --disable-sysmouse argument... " >&6; }
15670 # Check whether --enable-sysmouse was given.
15671 if test "${enable_sysmouse+set}" = set; then
15672 enableval=$enable_sysmouse;
15673 else
15674 enable_sysmouse="yes"
15678 if test "$enable_sysmouse" = "yes"; then
15679 { $as_echo "$as_me:$LINENO: result: no" >&5
15680 $as_echo "no" >&6; }
15681 { $as_echo "$as_me:$LINENO: checking for sysmouse" >&5
15682 $as_echo_n "checking for sysmouse... " >&6; }
15683 if test "${vi_cv_have_sysmouse+set}" = set; then
15684 $as_echo_n "(cached) " >&6
15685 else
15686 cat >conftest.$ac_ext <<_ACEOF
15687 /* confdefs.h. */
15688 _ACEOF
15689 cat confdefs.h >>conftest.$ac_ext
15690 cat >>conftest.$ac_ext <<_ACEOF
15691 /* end confdefs.h. */
15692 #include <sys/consio.h>
15693 #include <signal.h>
15694 #include <sys/fbio.h>
15696 main ()
15698 struct mouse_info mouse;
15699 mouse.operation = MOUSE_MODE;
15700 mouse.operation = MOUSE_SHOW;
15701 mouse.u.mode.mode = 0;
15702 mouse.u.mode.signal = SIGUSR2;
15704 return 0;
15706 _ACEOF
15707 rm -f conftest.$ac_objext conftest$ac_exeext
15708 if { (ac_try="$ac_link"
15709 case "(($ac_try" in
15710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15711 *) ac_try_echo=$ac_try;;
15712 esac
15713 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15714 $as_echo "$ac_try_echo") >&5
15715 (eval "$ac_link") 2>conftest.er1
15716 ac_status=$?
15717 grep -v '^ *+' conftest.er1 >conftest.err
15718 rm -f conftest.er1
15719 cat conftest.err >&5
15720 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15721 (exit $ac_status); } && {
15722 test -z "$ac_c_werror_flag" ||
15723 test ! -s conftest.err
15724 } && test -s conftest$ac_exeext && {
15725 test "$cross_compiling" = yes ||
15726 $as_test_x conftest$ac_exeext
15727 }; then
15728 vi_cv_have_sysmouse=yes
15729 else
15730 $as_echo "$as_me: failed program was:" >&5
15731 sed 's/^/| /' conftest.$ac_ext >&5
15733 vi_cv_have_sysmouse=no
15736 rm -rf conftest.dSYM
15737 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15738 conftest$ac_exeext conftest.$ac_ext
15741 { $as_echo "$as_me:$LINENO: result: $vi_cv_have_sysmouse" >&5
15742 $as_echo "$vi_cv_have_sysmouse" >&6; }
15743 if test $vi_cv_have_sysmouse = yes; then
15744 cat >>confdefs.h <<\_ACEOF
15745 #define HAVE_SYSMOUSE 1
15746 _ACEOF
15749 else
15750 { $as_echo "$as_me:$LINENO: result: yes" >&5
15751 $as_echo "yes" >&6; }
15754 { $as_echo "$as_me:$LINENO: checking for FD_CLOEXEC" >&5
15755 $as_echo_n "checking for FD_CLOEXEC... " >&6; }
15756 cat >conftest.$ac_ext <<_ACEOF
15757 /* confdefs.h. */
15758 _ACEOF
15759 cat confdefs.h >>conftest.$ac_ext
15760 cat >>conftest.$ac_ext <<_ACEOF
15761 /* end confdefs.h. */
15762 #if HAVE_FCNTL_H
15763 # include <fcntl.h>
15764 #endif
15766 main ()
15768 int flag = FD_CLOEXEC;
15770 return 0;
15772 _ACEOF
15773 rm -f conftest.$ac_objext
15774 if { (ac_try="$ac_compile"
15775 case "(($ac_try" in
15776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15777 *) ac_try_echo=$ac_try;;
15778 esac
15779 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15780 $as_echo "$ac_try_echo") >&5
15781 (eval "$ac_compile") 2>conftest.er1
15782 ac_status=$?
15783 grep -v '^ *+' conftest.er1 >conftest.err
15784 rm -f conftest.er1
15785 cat conftest.err >&5
15786 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15787 (exit $ac_status); } && {
15788 test -z "$ac_c_werror_flag" ||
15789 test ! -s conftest.err
15790 } && test -s conftest.$ac_objext; then
15791 { $as_echo "$as_me:$LINENO: result: yes" >&5
15792 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15793 #define HAVE_FD_CLOEXEC 1
15794 _ACEOF
15796 else
15797 $as_echo "$as_me: failed program was:" >&5
15798 sed 's/^/| /' conftest.$ac_ext >&5
15800 { $as_echo "$as_me:$LINENO: result: not usable" >&5
15801 $as_echo "not usable" >&6; }
15804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15806 { $as_echo "$as_me:$LINENO: checking for rename" >&5
15807 $as_echo_n "checking for rename... " >&6; }
15808 cat >conftest.$ac_ext <<_ACEOF
15809 /* confdefs.h. */
15810 _ACEOF
15811 cat confdefs.h >>conftest.$ac_ext
15812 cat >>conftest.$ac_ext <<_ACEOF
15813 /* end confdefs.h. */
15814 #include <stdio.h>
15816 main ()
15818 rename("this", "that")
15820 return 0;
15822 _ACEOF
15823 rm -f conftest.$ac_objext conftest$ac_exeext
15824 if { (ac_try="$ac_link"
15825 case "(($ac_try" in
15826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15827 *) ac_try_echo=$ac_try;;
15828 esac
15829 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15830 $as_echo "$ac_try_echo") >&5
15831 (eval "$ac_link") 2>conftest.er1
15832 ac_status=$?
15833 grep -v '^ *+' conftest.er1 >conftest.err
15834 rm -f conftest.er1
15835 cat conftest.err >&5
15836 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15837 (exit $ac_status); } && {
15838 test -z "$ac_c_werror_flag" ||
15839 test ! -s conftest.err
15840 } && test -s conftest$ac_exeext && {
15841 test "$cross_compiling" = yes ||
15842 $as_test_x conftest$ac_exeext
15843 }; then
15844 { $as_echo "$as_me:$LINENO: result: yes" >&5
15845 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15846 #define HAVE_RENAME 1
15847 _ACEOF
15849 else
15850 $as_echo "$as_me: failed program was:" >&5
15851 sed 's/^/| /' conftest.$ac_ext >&5
15853 { $as_echo "$as_me:$LINENO: result: no" >&5
15854 $as_echo "no" >&6; }
15857 rm -rf conftest.dSYM
15858 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15859 conftest$ac_exeext conftest.$ac_ext
15861 { $as_echo "$as_me:$LINENO: checking for sysctl" >&5
15862 $as_echo_n "checking for sysctl... " >&6; }
15863 cat >conftest.$ac_ext <<_ACEOF
15864 /* confdefs.h. */
15865 _ACEOF
15866 cat confdefs.h >>conftest.$ac_ext
15867 cat >>conftest.$ac_ext <<_ACEOF
15868 /* end confdefs.h. */
15869 #include <sys/types.h>
15870 #include <sys/sysctl.h>
15872 main ()
15874 int mib[2], r;
15875 size_t len;
15877 mib[0] = CTL_HW;
15878 mib[1] = HW_USERMEM;
15879 len = sizeof(r);
15880 (void)sysctl(mib, 2, &r, &len, (void *)0, (size_t)0);
15883 return 0;
15885 _ACEOF
15886 rm -f conftest.$ac_objext
15887 if { (ac_try="$ac_compile"
15888 case "(($ac_try" in
15889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15890 *) ac_try_echo=$ac_try;;
15891 esac
15892 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15893 $as_echo "$ac_try_echo") >&5
15894 (eval "$ac_compile") 2>conftest.er1
15895 ac_status=$?
15896 grep -v '^ *+' conftest.er1 >conftest.err
15897 rm -f conftest.er1
15898 cat conftest.err >&5
15899 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15900 (exit $ac_status); } && {
15901 test -z "$ac_c_werror_flag" ||
15902 test ! -s conftest.err
15903 } && test -s conftest.$ac_objext; then
15904 { $as_echo "$as_me:$LINENO: result: yes" >&5
15905 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15906 #define HAVE_SYSCTL 1
15907 _ACEOF
15909 else
15910 $as_echo "$as_me: failed program was:" >&5
15911 sed 's/^/| /' conftest.$ac_ext >&5
15913 { $as_echo "$as_me:$LINENO: result: not usable" >&5
15914 $as_echo "not usable" >&6; }
15917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15919 { $as_echo "$as_me:$LINENO: checking for sysinfo" >&5
15920 $as_echo_n "checking for sysinfo... " >&6; }
15921 cat >conftest.$ac_ext <<_ACEOF
15922 /* confdefs.h. */
15923 _ACEOF
15924 cat confdefs.h >>conftest.$ac_ext
15925 cat >>conftest.$ac_ext <<_ACEOF
15926 /* end confdefs.h. */
15927 #include <sys/types.h>
15928 #include <sys/sysinfo.h>
15930 main ()
15932 struct sysinfo sinfo;
15933 int t;
15935 (void)sysinfo(&sinfo);
15936 t = sinfo.totalram;
15939 return 0;
15941 _ACEOF
15942 rm -f conftest.$ac_objext
15943 if { (ac_try="$ac_compile"
15944 case "(($ac_try" in
15945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15946 *) ac_try_echo=$ac_try;;
15947 esac
15948 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15949 $as_echo "$ac_try_echo") >&5
15950 (eval "$ac_compile") 2>conftest.er1
15951 ac_status=$?
15952 grep -v '^ *+' conftest.er1 >conftest.err
15953 rm -f conftest.er1
15954 cat conftest.err >&5
15955 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15956 (exit $ac_status); } && {
15957 test -z "$ac_c_werror_flag" ||
15958 test ! -s conftest.err
15959 } && test -s conftest.$ac_objext; then
15960 { $as_echo "$as_me:$LINENO: result: yes" >&5
15961 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15962 #define HAVE_SYSINFO 1
15963 _ACEOF
15965 else
15966 $as_echo "$as_me: failed program was:" >&5
15967 sed 's/^/| /' conftest.$ac_ext >&5
15969 { $as_echo "$as_me:$LINENO: result: not usable" >&5
15970 $as_echo "not usable" >&6; }
15973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15975 { $as_echo "$as_me:$LINENO: checking for sysinfo.mem_unit" >&5
15976 $as_echo_n "checking for sysinfo.mem_unit... " >&6; }
15977 cat >conftest.$ac_ext <<_ACEOF
15978 /* confdefs.h. */
15979 _ACEOF
15980 cat confdefs.h >>conftest.$ac_ext
15981 cat >>conftest.$ac_ext <<_ACEOF
15982 /* end confdefs.h. */
15983 #include <sys/types.h>
15984 #include <sys/sysinfo.h>
15986 main ()
15988 struct sysinfo sinfo;
15989 sinfo.mem_unit = 1;
15992 return 0;
15994 _ACEOF
15995 rm -f conftest.$ac_objext
15996 if { (ac_try="$ac_compile"
15997 case "(($ac_try" in
15998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15999 *) ac_try_echo=$ac_try;;
16000 esac
16001 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16002 $as_echo "$ac_try_echo") >&5
16003 (eval "$ac_compile") 2>conftest.er1
16004 ac_status=$?
16005 grep -v '^ *+' conftest.er1 >conftest.err
16006 rm -f conftest.er1
16007 cat conftest.err >&5
16008 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16009 (exit $ac_status); } && {
16010 test -z "$ac_c_werror_flag" ||
16011 test ! -s conftest.err
16012 } && test -s conftest.$ac_objext; then
16013 { $as_echo "$as_me:$LINENO: result: yes" >&5
16014 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
16015 #define HAVE_SYSINFO_MEM_UNIT 1
16016 _ACEOF
16018 else
16019 $as_echo "$as_me: failed program was:" >&5
16020 sed 's/^/| /' conftest.$ac_ext >&5
16022 { $as_echo "$as_me:$LINENO: result: no" >&5
16023 $as_echo "no" >&6; }
16026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16028 { $as_echo "$as_me:$LINENO: checking for sysconf" >&5
16029 $as_echo_n "checking for sysconf... " >&6; }
16030 cat >conftest.$ac_ext <<_ACEOF
16031 /* confdefs.h. */
16032 _ACEOF
16033 cat confdefs.h >>conftest.$ac_ext
16034 cat >>conftest.$ac_ext <<_ACEOF
16035 /* end confdefs.h. */
16036 #include <unistd.h>
16038 main ()
16040 (void)sysconf(_SC_PAGESIZE);
16041 (void)sysconf(_SC_PHYS_PAGES);
16044 return 0;
16046 _ACEOF
16047 rm -f conftest.$ac_objext
16048 if { (ac_try="$ac_compile"
16049 case "(($ac_try" in
16050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16051 *) ac_try_echo=$ac_try;;
16052 esac
16053 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16054 $as_echo "$ac_try_echo") >&5
16055 (eval "$ac_compile") 2>conftest.er1
16056 ac_status=$?
16057 grep -v '^ *+' conftest.er1 >conftest.err
16058 rm -f conftest.er1
16059 cat conftest.err >&5
16060 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16061 (exit $ac_status); } && {
16062 test -z "$ac_c_werror_flag" ||
16063 test ! -s conftest.err
16064 } && test -s conftest.$ac_objext; then
16065 { $as_echo "$as_me:$LINENO: result: yes" >&5
16066 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
16067 #define HAVE_SYSCONF 1
16068 _ACEOF
16070 else
16071 $as_echo "$as_me: failed program was:" >&5
16072 sed 's/^/| /' conftest.$ac_ext >&5
16074 { $as_echo "$as_me:$LINENO: result: not usable" >&5
16075 $as_echo "not usable" >&6; }
16078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16081 { $as_echo "$as_me:$LINENO: checking size of int" >&5
16082 $as_echo_n "checking size of int... " >&6; }
16083 if test "${ac_cv_sizeof_int+set}" = set; then
16084 $as_echo_n "(cached) " >&6
16085 else
16086 if test "$cross_compiling" = yes; then
16087 { { $as_echo "$as_me:$LINENO: error: failed to compile test program" >&5
16088 $as_echo "$as_me: error: failed to compile test program" >&2;}
16089 { (exit 1); exit 1; }; }
16090 else
16091 cat >conftest.$ac_ext <<_ACEOF
16092 /* confdefs.h. */
16093 _ACEOF
16094 cat confdefs.h >>conftest.$ac_ext
16095 cat >>conftest.$ac_ext <<_ACEOF
16096 /* end confdefs.h. */
16098 #include <stdio.h>
16099 #if STDC_HEADERS
16100 # include <stdlib.h>
16101 # include <stddef.h>
16102 #endif
16103 main()
16105 FILE *f=fopen("conftestval", "w");
16106 if (!f) exit(1);
16107 fprintf(f, "%d\n", (int)sizeof(int));
16108 exit(0);
16110 _ACEOF
16111 rm -f conftest$ac_exeext
16112 if { (ac_try="$ac_link"
16113 case "(($ac_try" in
16114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16115 *) ac_try_echo=$ac_try;;
16116 esac
16117 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16118 $as_echo "$ac_try_echo") >&5
16119 (eval "$ac_link") 2>&5
16120 ac_status=$?
16121 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16122 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16123 { (case "(($ac_try" in
16124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16125 *) ac_try_echo=$ac_try;;
16126 esac
16127 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16128 $as_echo "$ac_try_echo") >&5
16129 (eval "$ac_try") 2>&5
16130 ac_status=$?
16131 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16132 (exit $ac_status); }; }; then
16133 ac_cv_sizeof_int=`cat conftestval`
16134 else
16135 $as_echo "$as_me: program exited with status $ac_status" >&5
16136 $as_echo "$as_me: failed program was:" >&5
16137 sed 's/^/| /' conftest.$ac_ext >&5
16139 ( exit $ac_status )
16140 ac_cv_sizeof_int=0
16142 rm -rf conftest.dSYM
16143 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16149 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
16150 $as_echo "$ac_cv_sizeof_int" >&6; }
16151 cat >>confdefs.h <<_ACEOF
16152 #define SIZEOF_INT $ac_cv_sizeof_int
16153 _ACEOF
16157 bcopy_test_prog='
16158 #include "confdefs.h"
16159 #ifdef HAVE_STRING_H
16160 # include <string.h>
16161 #endif
16162 #if STDC_HEADERS
16163 # include <stdlib.h>
16164 # include <stddef.h>
16165 #endif
16166 main() {
16167 char buf[10];
16168 strcpy(buf, "abcdefghi");
16169 mch_memmove(buf, buf + 2, 3);
16170 if (strncmp(buf, "ababcf", 6))
16171 exit(1);
16172 strcpy(buf, "abcdefghi");
16173 mch_memmove(buf + 2, buf, 3);
16174 if (strncmp(buf, "cdedef", 6))
16175 exit(1);
16176 exit(0); /* libc version works properly. */
16179 { $as_echo "$as_me:$LINENO: checking whether memmove handles overlaps" >&5
16180 $as_echo_n "checking whether memmove handles overlaps... " >&6; }
16181 if test "${vim_cv_memmove_handles_overlap+set}" = set; then
16182 $as_echo_n "(cached) " >&6
16183 else
16185 if test "$cross_compiling" = yes; then
16187 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_memmove_handles_overlap'" >&5
16188 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_memmove_handles_overlap'" >&2;}
16189 { (exit 1); exit 1; }; }
16191 else
16192 cat >conftest.$ac_ext <<_ACEOF
16193 #define mch_memmove(s,d,l) memmove(d,s,l) $bcopy_test_prog
16194 _ACEOF
16195 rm -f conftest$ac_exeext
16196 if { (ac_try="$ac_link"
16197 case "(($ac_try" in
16198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16199 *) ac_try_echo=$ac_try;;
16200 esac
16201 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16202 $as_echo "$ac_try_echo") >&5
16203 (eval "$ac_link") 2>&5
16204 ac_status=$?
16205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16206 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16207 { (case "(($ac_try" in
16208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16209 *) ac_try_echo=$ac_try;;
16210 esac
16211 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16212 $as_echo "$ac_try_echo") >&5
16213 (eval "$ac_try") 2>&5
16214 ac_status=$?
16215 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16216 (exit $ac_status); }; }; then
16218 vim_cv_memmove_handles_overlap=yes
16220 else
16221 $as_echo "$as_me: program exited with status $ac_status" >&5
16222 $as_echo "$as_me: failed program was:" >&5
16223 sed 's/^/| /' conftest.$ac_ext >&5
16225 ( exit $ac_status )
16227 vim_cv_memmove_handles_overlap=no
16230 rm -rf conftest.dSYM
16231 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16237 { $as_echo "$as_me:$LINENO: result: $vim_cv_memmove_handles_overlap" >&5
16238 $as_echo "$vim_cv_memmove_handles_overlap" >&6; }
16240 if test "x$vim_cv_memmove_handles_overlap" = "xyes" ; then
16241 cat >>confdefs.h <<\_ACEOF
16242 #define USEMEMMOVE 1
16243 _ACEOF
16245 else
16246 { $as_echo "$as_me:$LINENO: checking whether bcopy handles overlaps" >&5
16247 $as_echo_n "checking whether bcopy handles overlaps... " >&6; }
16248 if test "${vim_cv_bcopy_handles_overlap+set}" = set; then
16249 $as_echo_n "(cached) " >&6
16250 else
16252 if test "$cross_compiling" = yes; then
16254 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_bcopy_handles_overlap'" >&5
16255 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_bcopy_handles_overlap'" >&2;}
16256 { (exit 1); exit 1; }; }
16258 else
16259 cat >conftest.$ac_ext <<_ACEOF
16260 #define mch_bcopy(s,d,l) bcopy(d,s,l) $bcopy_test_prog
16261 _ACEOF
16262 rm -f conftest$ac_exeext
16263 if { (ac_try="$ac_link"
16264 case "(($ac_try" in
16265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16266 *) ac_try_echo=$ac_try;;
16267 esac
16268 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16269 $as_echo "$ac_try_echo") >&5
16270 (eval "$ac_link") 2>&5
16271 ac_status=$?
16272 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16273 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16274 { (case "(($ac_try" in
16275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16276 *) ac_try_echo=$ac_try;;
16277 esac
16278 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16279 $as_echo "$ac_try_echo") >&5
16280 (eval "$ac_try") 2>&5
16281 ac_status=$?
16282 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16283 (exit $ac_status); }; }; then
16285 vim_cv_bcopy_handles_overlap=yes
16287 else
16288 $as_echo "$as_me: program exited with status $ac_status" >&5
16289 $as_echo "$as_me: failed program was:" >&5
16290 sed 's/^/| /' conftest.$ac_ext >&5
16292 ( exit $ac_status )
16294 vim_cv_bcopy_handles_overlap=no
16297 rm -rf conftest.dSYM
16298 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16304 { $as_echo "$as_me:$LINENO: result: $vim_cv_bcopy_handles_overlap" >&5
16305 $as_echo "$vim_cv_bcopy_handles_overlap" >&6; }
16307 if test "x$vim_cv_bcopy_handles_overlap" = "xyes" ; then
16308 cat >>confdefs.h <<\_ACEOF
16309 #define USEBCOPY 1
16310 _ACEOF
16312 else
16313 { $as_echo "$as_me:$LINENO: checking whether memcpy handles overlaps" >&5
16314 $as_echo_n "checking whether memcpy handles overlaps... " >&6; }
16315 if test "${vim_cv_memcpy_handles_overlap+set}" = set; then
16316 $as_echo_n "(cached) " >&6
16317 else
16319 if test "$cross_compiling" = yes; then
16321 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_memcpy_handles_overlap'" >&5
16322 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_memcpy_handles_overlap'" >&2;}
16323 { (exit 1); exit 1; }; }
16325 else
16326 cat >conftest.$ac_ext <<_ACEOF
16327 #define mch_memcpy(s,d,l) memcpy(d,s,l) $bcopy_test_prog
16328 _ACEOF
16329 rm -f conftest$ac_exeext
16330 if { (ac_try="$ac_link"
16331 case "(($ac_try" in
16332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16333 *) ac_try_echo=$ac_try;;
16334 esac
16335 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16336 $as_echo "$ac_try_echo") >&5
16337 (eval "$ac_link") 2>&5
16338 ac_status=$?
16339 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16340 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16341 { (case "(($ac_try" in
16342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16343 *) ac_try_echo=$ac_try;;
16344 esac
16345 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16346 $as_echo "$ac_try_echo") >&5
16347 (eval "$ac_try") 2>&5
16348 ac_status=$?
16349 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16350 (exit $ac_status); }; }; then
16352 vim_cv_memcpy_handles_overlap=yes
16354 else
16355 $as_echo "$as_me: program exited with status $ac_status" >&5
16356 $as_echo "$as_me: failed program was:" >&5
16357 sed 's/^/| /' conftest.$ac_ext >&5
16359 ( exit $ac_status )
16361 vim_cv_memcpy_handles_overlap=no
16364 rm -rf conftest.dSYM
16365 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16371 { $as_echo "$as_me:$LINENO: result: $vim_cv_memcpy_handles_overlap" >&5
16372 $as_echo "$vim_cv_memcpy_handles_overlap" >&6; }
16374 if test "x$vim_cv_memcpy_handles_overlap" = "xyes" ; then
16375 cat >>confdefs.h <<\_ACEOF
16376 #define USEMEMCPY 1
16377 _ACEOF
16385 if test "$enable_multibyte" = "yes"; then
16386 cflags_save=$CFLAGS
16387 ldflags_save=$LDFLAGS
16388 if test "x$x_includes" != "xNONE" ; then
16389 CFLAGS="$CFLAGS -I$x_includes"
16390 LDFLAGS="$X_LIBS $LDFLAGS -lX11"
16391 { $as_echo "$as_me:$LINENO: checking whether X_LOCALE needed" >&5
16392 $as_echo_n "checking whether X_LOCALE needed... " >&6; }
16393 cat >conftest.$ac_ext <<_ACEOF
16394 /* confdefs.h. */
16395 _ACEOF
16396 cat confdefs.h >>conftest.$ac_ext
16397 cat >>conftest.$ac_ext <<_ACEOF
16398 /* end confdefs.h. */
16399 #include <X11/Xlocale.h>
16401 main ()
16405 return 0;
16407 _ACEOF
16408 rm -f conftest.$ac_objext
16409 if { (ac_try="$ac_compile"
16410 case "(($ac_try" in
16411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16412 *) ac_try_echo=$ac_try;;
16413 esac
16414 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16415 $as_echo "$ac_try_echo") >&5
16416 (eval "$ac_compile") 2>conftest.er1
16417 ac_status=$?
16418 grep -v '^ *+' conftest.er1 >conftest.err
16419 rm -f conftest.er1
16420 cat conftest.err >&5
16421 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16422 (exit $ac_status); } && {
16423 test -z "$ac_c_werror_flag" ||
16424 test ! -s conftest.err
16425 } && test -s conftest.$ac_objext; then
16426 cat >conftest.$ac_ext <<_ACEOF
16427 /* confdefs.h. */
16428 _ACEOF
16429 cat confdefs.h >>conftest.$ac_ext
16430 cat >>conftest.$ac_ext <<_ACEOF
16431 /* end confdefs.h. */
16433 /* Override any GCC internal prototype to avoid an error.
16434 Use char because int might match the return type of a GCC
16435 builtin and then its argument prototype would still apply. */
16436 #ifdef __cplusplus
16437 extern "C"
16438 #endif
16439 char _Xsetlocale ();
16441 main ()
16443 return _Xsetlocale ();
16445 return 0;
16447 _ACEOF
16448 rm -f conftest.$ac_objext conftest$ac_exeext
16449 if { (ac_try="$ac_link"
16450 case "(($ac_try" in
16451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16452 *) ac_try_echo=$ac_try;;
16453 esac
16454 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16455 $as_echo "$ac_try_echo") >&5
16456 (eval "$ac_link") 2>conftest.er1
16457 ac_status=$?
16458 grep -v '^ *+' conftest.er1 >conftest.err
16459 rm -f conftest.er1
16460 cat conftest.err >&5
16461 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16462 (exit $ac_status); } && {
16463 test -z "$ac_c_werror_flag" ||
16464 test ! -s conftest.err
16465 } && test -s conftest$ac_exeext && {
16466 test "$cross_compiling" = yes ||
16467 $as_test_x conftest$ac_exeext
16468 }; then
16469 { $as_echo "$as_me:$LINENO: result: yes" >&5
16470 $as_echo "yes" >&6; }
16471 cat >>confdefs.h <<\_ACEOF
16472 #define X_LOCALE 1
16473 _ACEOF
16475 else
16476 $as_echo "$as_me: failed program was:" >&5
16477 sed 's/^/| /' conftest.$ac_ext >&5
16479 { $as_echo "$as_me:$LINENO: result: no" >&5
16480 $as_echo "no" >&6; }
16483 rm -rf conftest.dSYM
16484 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16485 conftest$ac_exeext conftest.$ac_ext
16486 else
16487 $as_echo "$as_me: failed program was:" >&5
16488 sed 's/^/| /' conftest.$ac_ext >&5
16490 { $as_echo "$as_me:$LINENO: result: no" >&5
16491 $as_echo "no" >&6; }
16494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16496 CFLAGS=$cflags_save
16497 LDFLAGS=$ldflags_save
16500 { $as_echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
16501 $as_echo_n "checking for _xpg4_setrunelocale in -lxpg4... " >&6; }
16502 if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
16503 $as_echo_n "(cached) " >&6
16504 else
16505 ac_check_lib_save_LIBS=$LIBS
16506 LIBS="-lxpg4 $LIBS"
16507 cat >conftest.$ac_ext <<_ACEOF
16508 /* confdefs.h. */
16509 _ACEOF
16510 cat confdefs.h >>conftest.$ac_ext
16511 cat >>conftest.$ac_ext <<_ACEOF
16512 /* end confdefs.h. */
16514 /* Override any GCC internal prototype to avoid an error.
16515 Use char because int might match the return type of a GCC
16516 builtin and then its argument prototype would still apply. */
16517 #ifdef __cplusplus
16518 extern "C"
16519 #endif
16520 char _xpg4_setrunelocale ();
16522 main ()
16524 return _xpg4_setrunelocale ();
16526 return 0;
16528 _ACEOF
16529 rm -f conftest.$ac_objext conftest$ac_exeext
16530 if { (ac_try="$ac_link"
16531 case "(($ac_try" in
16532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16533 *) ac_try_echo=$ac_try;;
16534 esac
16535 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16536 $as_echo "$ac_try_echo") >&5
16537 (eval "$ac_link") 2>conftest.er1
16538 ac_status=$?
16539 grep -v '^ *+' conftest.er1 >conftest.err
16540 rm -f conftest.er1
16541 cat conftest.err >&5
16542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16543 (exit $ac_status); } && {
16544 test -z "$ac_c_werror_flag" ||
16545 test ! -s conftest.err
16546 } && test -s conftest$ac_exeext && {
16547 test "$cross_compiling" = yes ||
16548 $as_test_x conftest$ac_exeext
16549 }; then
16550 ac_cv_lib_xpg4__xpg4_setrunelocale=yes
16551 else
16552 $as_echo "$as_me: failed program was:" >&5
16553 sed 's/^/| /' conftest.$ac_ext >&5
16555 ac_cv_lib_xpg4__xpg4_setrunelocale=no
16558 rm -rf conftest.dSYM
16559 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16560 conftest$ac_exeext conftest.$ac_ext
16561 LIBS=$ac_check_lib_save_LIBS
16563 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
16564 $as_echo "$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6; }
16565 if test "x$ac_cv_lib_xpg4__xpg4_setrunelocale" = x""yes; then
16566 LIBS="$LIBS -lxpg4"
16570 { $as_echo "$as_me:$LINENO: checking how to create tags" >&5
16571 $as_echo_n "checking how to create tags... " >&6; }
16572 test -f tags && mv tags tags.save
16573 if (eval ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then
16574 TAGPRG="ctags -I INIT+ --fields=+S"
16575 else
16576 TAGPRG="ctags"
16577 (eval etags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags"
16578 (eval etags -c /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags -c"
16579 (eval ctags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags"
16580 (eval ctags -t /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -t"
16581 (eval ctags -ts /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -ts"
16582 (eval ctags -tvs /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -tvs"
16583 (eval ctags -i+m /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -i+m"
16585 test -f tags.save && mv tags.save tags
16586 { $as_echo "$as_me:$LINENO: result: $TAGPRG" >&5
16587 $as_echo "$TAGPRG" >&6; }
16589 { $as_echo "$as_me:$LINENO: checking how to run man with a section nr" >&5
16590 $as_echo_n "checking how to run man with a section nr... " >&6; }
16591 MANDEF="man"
16592 (eval MANPAGER=cat PAGER=cat man -s 2 read) < /dev/null > /dev/null 2>&5 && MANDEF="man -s"
16593 { $as_echo "$as_me:$LINENO: result: $MANDEF" >&5
16594 $as_echo "$MANDEF" >&6; }
16595 if test "$MANDEF" = "man -s"; then
16596 cat >>confdefs.h <<\_ACEOF
16597 #define USEMAN_S 1
16598 _ACEOF
16602 { $as_echo "$as_me:$LINENO: checking --disable-nls argument" >&5
16603 $as_echo_n "checking --disable-nls argument... " >&6; }
16604 # Check whether --enable-nls was given.
16605 if test "${enable_nls+set}" = set; then
16606 enableval=$enable_nls;
16607 else
16608 enable_nls="yes"
16612 if test "$enable_nls" = "yes"; then
16613 { $as_echo "$as_me:$LINENO: result: no" >&5
16614 $as_echo "no" >&6; }
16616 INSTALL_LANGS=install-languages
16618 INSTALL_TOOL_LANGS=install-tool-languages
16621 # Extract the first word of "msgfmt", so it can be a program name with args.
16622 set dummy msgfmt; ac_word=$2
16623 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16624 $as_echo_n "checking for $ac_word... " >&6; }
16625 if test "${ac_cv_prog_MSGFMT+set}" = set; then
16626 $as_echo_n "(cached) " >&6
16627 else
16628 if test -n "$MSGFMT"; then
16629 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
16630 else
16631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16632 for as_dir in $PATH
16634 IFS=$as_save_IFS
16635 test -z "$as_dir" && as_dir=.
16636 for ac_exec_ext in '' $ac_executable_extensions; do
16637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16638 ac_cv_prog_MSGFMT="msgfmt"
16639 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16640 break 2
16642 done
16643 done
16644 IFS=$as_save_IFS
16648 MSGFMT=$ac_cv_prog_MSGFMT
16649 if test -n "$MSGFMT"; then
16650 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
16651 $as_echo "$MSGFMT" >&6; }
16652 else
16653 { $as_echo "$as_me:$LINENO: result: no" >&5
16654 $as_echo "no" >&6; }
16658 { $as_echo "$as_me:$LINENO: checking for NLS" >&5
16659 $as_echo_n "checking for NLS... " >&6; }
16660 if test -f po/Makefile; then
16661 have_gettext="no"
16662 if test -n "$MSGFMT"; then
16663 cat >conftest.$ac_ext <<_ACEOF
16664 /* confdefs.h. */
16665 _ACEOF
16666 cat confdefs.h >>conftest.$ac_ext
16667 cat >>conftest.$ac_ext <<_ACEOF
16668 /* end confdefs.h. */
16669 #include <libintl.h>
16671 main ()
16673 gettext("Test");
16675 return 0;
16677 _ACEOF
16678 rm -f conftest.$ac_objext conftest$ac_exeext
16679 if { (ac_try="$ac_link"
16680 case "(($ac_try" in
16681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16682 *) ac_try_echo=$ac_try;;
16683 esac
16684 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16685 $as_echo "$ac_try_echo") >&5
16686 (eval "$ac_link") 2>conftest.er1
16687 ac_status=$?
16688 grep -v '^ *+' conftest.er1 >conftest.err
16689 rm -f conftest.er1
16690 cat conftest.err >&5
16691 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16692 (exit $ac_status); } && {
16693 test -z "$ac_c_werror_flag" ||
16694 test ! -s conftest.err
16695 } && test -s conftest$ac_exeext && {
16696 test "$cross_compiling" = yes ||
16697 $as_test_x conftest$ac_exeext
16698 }; then
16699 { $as_echo "$as_me:$LINENO: result: gettext() works" >&5
16700 $as_echo "gettext() works" >&6; }; have_gettext="yes"
16701 else
16702 $as_echo "$as_me: failed program was:" >&5
16703 sed 's/^/| /' conftest.$ac_ext >&5
16705 olibs=$LIBS
16706 LIBS="$LIBS -lintl"
16707 cat >conftest.$ac_ext <<_ACEOF
16708 /* confdefs.h. */
16709 _ACEOF
16710 cat confdefs.h >>conftest.$ac_ext
16711 cat >>conftest.$ac_ext <<_ACEOF
16712 /* end confdefs.h. */
16713 #include <libintl.h>
16715 main ()
16717 gettext("Test");
16719 return 0;
16721 _ACEOF
16722 rm -f conftest.$ac_objext conftest$ac_exeext
16723 if { (ac_try="$ac_link"
16724 case "(($ac_try" in
16725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16726 *) ac_try_echo=$ac_try;;
16727 esac
16728 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16729 $as_echo "$ac_try_echo") >&5
16730 (eval "$ac_link") 2>conftest.er1
16731 ac_status=$?
16732 grep -v '^ *+' conftest.er1 >conftest.err
16733 rm -f conftest.er1
16734 cat conftest.err >&5
16735 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16736 (exit $ac_status); } && {
16737 test -z "$ac_c_werror_flag" ||
16738 test ! -s conftest.err
16739 } && test -s conftest$ac_exeext && {
16740 test "$cross_compiling" = yes ||
16741 $as_test_x conftest$ac_exeext
16742 }; then
16743 { $as_echo "$as_me:$LINENO: result: gettext() works with -lintl" >&5
16744 $as_echo "gettext() works with -lintl" >&6; }; have_gettext="yes"
16745 else
16746 $as_echo "$as_me: failed program was:" >&5
16747 sed 's/^/| /' conftest.$ac_ext >&5
16749 { $as_echo "$as_me:$LINENO: result: gettext() doesn't work" >&5
16750 $as_echo "gettext() doesn't work" >&6; };
16751 LIBS=$olibs
16754 rm -rf conftest.dSYM
16755 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16756 conftest$ac_exeext conftest.$ac_ext
16759 rm -rf conftest.dSYM
16760 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16761 conftest$ac_exeext conftest.$ac_ext
16762 else
16763 { $as_echo "$as_me:$LINENO: result: msgfmt not found - disabled" >&5
16764 $as_echo "msgfmt not found - disabled" >&6; };
16766 if test $have_gettext = "yes"; then
16767 cat >>confdefs.h <<\_ACEOF
16768 #define HAVE_GETTEXT 1
16769 _ACEOF
16771 MAKEMO=yes
16774 for ac_func in bind_textdomain_codeset
16776 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16777 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16778 $as_echo_n "checking for $ac_func... " >&6; }
16779 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16780 $as_echo_n "(cached) " >&6
16781 else
16782 cat >conftest.$ac_ext <<_ACEOF
16783 /* confdefs.h. */
16784 _ACEOF
16785 cat confdefs.h >>conftest.$ac_ext
16786 cat >>conftest.$ac_ext <<_ACEOF
16787 /* end confdefs.h. */
16788 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16789 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16790 #define $ac_func innocuous_$ac_func
16792 /* System header to define __stub macros and hopefully few prototypes,
16793 which can conflict with char $ac_func (); below.
16794 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16795 <limits.h> exists even on freestanding compilers. */
16797 #ifdef __STDC__
16798 # include <limits.h>
16799 #else
16800 # include <assert.h>
16801 #endif
16803 #undef $ac_func
16805 /* Override any GCC internal prototype to avoid an error.
16806 Use char because int might match the return type of a GCC
16807 builtin and then its argument prototype would still apply. */
16808 #ifdef __cplusplus
16809 extern "C"
16810 #endif
16811 char $ac_func ();
16812 /* The GNU C library defines this for functions which it implements
16813 to always fail with ENOSYS. Some functions are actually named
16814 something starting with __ and the normal name is an alias. */
16815 #if defined __stub_$ac_func || defined __stub___$ac_func
16816 choke me
16817 #endif
16820 main ()
16822 return $ac_func ();
16824 return 0;
16826 _ACEOF
16827 rm -f conftest.$ac_objext conftest$ac_exeext
16828 if { (ac_try="$ac_link"
16829 case "(($ac_try" in
16830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16831 *) ac_try_echo=$ac_try;;
16832 esac
16833 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16834 $as_echo "$ac_try_echo") >&5
16835 (eval "$ac_link") 2>conftest.er1
16836 ac_status=$?
16837 grep -v '^ *+' conftest.er1 >conftest.err
16838 rm -f conftest.er1
16839 cat conftest.err >&5
16840 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16841 (exit $ac_status); } && {
16842 test -z "$ac_c_werror_flag" ||
16843 test ! -s conftest.err
16844 } && test -s conftest$ac_exeext && {
16845 test "$cross_compiling" = yes ||
16846 $as_test_x conftest$ac_exeext
16847 }; then
16848 eval "$as_ac_var=yes"
16849 else
16850 $as_echo "$as_me: failed program was:" >&5
16851 sed 's/^/| /' conftest.$ac_ext >&5
16853 eval "$as_ac_var=no"
16856 rm -rf conftest.dSYM
16857 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16858 conftest$ac_exeext conftest.$ac_ext
16860 ac_res=`eval 'as_val=${'$as_ac_var'}
16861 $as_echo "$as_val"'`
16862 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16863 $as_echo "$ac_res" >&6; }
16864 as_val=`eval 'as_val=${'$as_ac_var'}
16865 $as_echo "$as_val"'`
16866 if test "x$as_val" = x""yes; then
16867 cat >>confdefs.h <<_ACEOF
16868 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16869 _ACEOF
16872 done
16874 { $as_echo "$as_me:$LINENO: checking for _nl_msg_cat_cntr" >&5
16875 $as_echo_n "checking for _nl_msg_cat_cntr... " >&6; }
16876 cat >conftest.$ac_ext <<_ACEOF
16877 /* confdefs.h. */
16878 _ACEOF
16879 cat confdefs.h >>conftest.$ac_ext
16880 cat >>conftest.$ac_ext <<_ACEOF
16881 /* end confdefs.h. */
16882 #include <libintl.h>
16883 extern int _nl_msg_cat_cntr;
16885 main ()
16887 ++_nl_msg_cat_cntr;
16889 return 0;
16891 _ACEOF
16892 rm -f conftest.$ac_objext conftest$ac_exeext
16893 if { (ac_try="$ac_link"
16894 case "(($ac_try" in
16895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16896 *) ac_try_echo=$ac_try;;
16897 esac
16898 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16899 $as_echo "$ac_try_echo") >&5
16900 (eval "$ac_link") 2>conftest.er1
16901 ac_status=$?
16902 grep -v '^ *+' conftest.er1 >conftest.err
16903 rm -f conftest.er1
16904 cat conftest.err >&5
16905 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16906 (exit $ac_status); } && {
16907 test -z "$ac_c_werror_flag" ||
16908 test ! -s conftest.err
16909 } && test -s conftest$ac_exeext && {
16910 test "$cross_compiling" = yes ||
16911 $as_test_x conftest$ac_exeext
16912 }; then
16913 { $as_echo "$as_me:$LINENO: result: yes" >&5
16914 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
16915 #define HAVE_NL_MSG_CAT_CNTR 1
16916 _ACEOF
16918 else
16919 $as_echo "$as_me: failed program was:" >&5
16920 sed 's/^/| /' conftest.$ac_ext >&5
16922 { $as_echo "$as_me:$LINENO: result: no" >&5
16923 $as_echo "no" >&6; }
16926 rm -rf conftest.dSYM
16927 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16928 conftest$ac_exeext conftest.$ac_ext
16930 else
16931 { $as_echo "$as_me:$LINENO: result: no \"po/Makefile\" - disabled" >&5
16932 $as_echo "no \"po/Makefile\" - disabled" >&6; };
16934 else
16935 { $as_echo "$as_me:$LINENO: result: yes" >&5
16936 $as_echo "yes" >&6; }
16939 if test "${ac_cv_header_dlfcn_h+set}" = set; then
16940 { $as_echo "$as_me:$LINENO: checking for dlfcn.h" >&5
16941 $as_echo_n "checking for dlfcn.h... " >&6; }
16942 if test "${ac_cv_header_dlfcn_h+set}" = set; then
16943 $as_echo_n "(cached) " >&6
16945 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
16946 $as_echo "$ac_cv_header_dlfcn_h" >&6; }
16947 else
16948 # Is the header compilable?
16949 { $as_echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
16950 $as_echo_n "checking dlfcn.h usability... " >&6; }
16951 cat >conftest.$ac_ext <<_ACEOF
16952 /* confdefs.h. */
16953 _ACEOF
16954 cat confdefs.h >>conftest.$ac_ext
16955 cat >>conftest.$ac_ext <<_ACEOF
16956 /* end confdefs.h. */
16957 $ac_includes_default
16958 #include <dlfcn.h>
16959 _ACEOF
16960 rm -f conftest.$ac_objext
16961 if { (ac_try="$ac_compile"
16962 case "(($ac_try" in
16963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16964 *) ac_try_echo=$ac_try;;
16965 esac
16966 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16967 $as_echo "$ac_try_echo") >&5
16968 (eval "$ac_compile") 2>conftest.er1
16969 ac_status=$?
16970 grep -v '^ *+' conftest.er1 >conftest.err
16971 rm -f conftest.er1
16972 cat conftest.err >&5
16973 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16974 (exit $ac_status); } && {
16975 test -z "$ac_c_werror_flag" ||
16976 test ! -s conftest.err
16977 } && test -s conftest.$ac_objext; then
16978 ac_header_compiler=yes
16979 else
16980 $as_echo "$as_me: failed program was:" >&5
16981 sed 's/^/| /' conftest.$ac_ext >&5
16983 ac_header_compiler=no
16986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16987 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16988 $as_echo "$ac_header_compiler" >&6; }
16990 # Is the header present?
16991 { $as_echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
16992 $as_echo_n "checking dlfcn.h presence... " >&6; }
16993 cat >conftest.$ac_ext <<_ACEOF
16994 /* confdefs.h. */
16995 _ACEOF
16996 cat confdefs.h >>conftest.$ac_ext
16997 cat >>conftest.$ac_ext <<_ACEOF
16998 /* end confdefs.h. */
16999 #include <dlfcn.h>
17000 _ACEOF
17001 if { (ac_try="$ac_cpp conftest.$ac_ext"
17002 case "(($ac_try" in
17003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17004 *) ac_try_echo=$ac_try;;
17005 esac
17006 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17007 $as_echo "$ac_try_echo") >&5
17008 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17009 ac_status=$?
17010 grep -v '^ *+' conftest.er1 >conftest.err
17011 rm -f conftest.er1
17012 cat conftest.err >&5
17013 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17014 (exit $ac_status); } >/dev/null && {
17015 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17016 test ! -s conftest.err
17017 }; then
17018 ac_header_preproc=yes
17019 else
17020 $as_echo "$as_me: failed program was:" >&5
17021 sed 's/^/| /' conftest.$ac_ext >&5
17023 ac_header_preproc=no
17026 rm -f conftest.err conftest.$ac_ext
17027 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17028 $as_echo "$ac_header_preproc" >&6; }
17030 # So? What about this header?
17031 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17032 yes:no: )
17033 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
17034 $as_echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17035 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5
17036 $as_echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;}
17037 ac_header_preproc=yes
17039 no:yes:* )
17040 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
17041 $as_echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
17042 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5
17043 $as_echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;}
17044 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5
17045 $as_echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;}
17046 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5
17047 $as_echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;}
17048 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
17049 $as_echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
17050 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5
17051 $as_echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;}
17054 esac
17055 { $as_echo "$as_me:$LINENO: checking for dlfcn.h" >&5
17056 $as_echo_n "checking for dlfcn.h... " >&6; }
17057 if test "${ac_cv_header_dlfcn_h+set}" = set; then
17058 $as_echo_n "(cached) " >&6
17059 else
17060 ac_cv_header_dlfcn_h=$ac_header_preproc
17062 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
17063 $as_echo "$ac_cv_header_dlfcn_h" >&6; }
17066 if test "x$ac_cv_header_dlfcn_h" = x""yes; then
17067 DLL=dlfcn.h
17068 else
17069 if test "${ac_cv_header_dl_h+set}" = set; then
17070 { $as_echo "$as_me:$LINENO: checking for dl.h" >&5
17071 $as_echo_n "checking for dl.h... " >&6; }
17072 if test "${ac_cv_header_dl_h+set}" = set; then
17073 $as_echo_n "(cached) " >&6
17075 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5
17076 $as_echo "$ac_cv_header_dl_h" >&6; }
17077 else
17078 # Is the header compilable?
17079 { $as_echo "$as_me:$LINENO: checking dl.h usability" >&5
17080 $as_echo_n "checking dl.h usability... " >&6; }
17081 cat >conftest.$ac_ext <<_ACEOF
17082 /* confdefs.h. */
17083 _ACEOF
17084 cat confdefs.h >>conftest.$ac_ext
17085 cat >>conftest.$ac_ext <<_ACEOF
17086 /* end confdefs.h. */
17087 $ac_includes_default
17088 #include <dl.h>
17089 _ACEOF
17090 rm -f conftest.$ac_objext
17091 if { (ac_try="$ac_compile"
17092 case "(($ac_try" in
17093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17094 *) ac_try_echo=$ac_try;;
17095 esac
17096 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17097 $as_echo "$ac_try_echo") >&5
17098 (eval "$ac_compile") 2>conftest.er1
17099 ac_status=$?
17100 grep -v '^ *+' conftest.er1 >conftest.err
17101 rm -f conftest.er1
17102 cat conftest.err >&5
17103 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17104 (exit $ac_status); } && {
17105 test -z "$ac_c_werror_flag" ||
17106 test ! -s conftest.err
17107 } && test -s conftest.$ac_objext; then
17108 ac_header_compiler=yes
17109 else
17110 $as_echo "$as_me: failed program was:" >&5
17111 sed 's/^/| /' conftest.$ac_ext >&5
17113 ac_header_compiler=no
17116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17117 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17118 $as_echo "$ac_header_compiler" >&6; }
17120 # Is the header present?
17121 { $as_echo "$as_me:$LINENO: checking dl.h presence" >&5
17122 $as_echo_n "checking dl.h presence... " >&6; }
17123 cat >conftest.$ac_ext <<_ACEOF
17124 /* confdefs.h. */
17125 _ACEOF
17126 cat confdefs.h >>conftest.$ac_ext
17127 cat >>conftest.$ac_ext <<_ACEOF
17128 /* end confdefs.h. */
17129 #include <dl.h>
17130 _ACEOF
17131 if { (ac_try="$ac_cpp conftest.$ac_ext"
17132 case "(($ac_try" in
17133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17134 *) ac_try_echo=$ac_try;;
17135 esac
17136 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17137 $as_echo "$ac_try_echo") >&5
17138 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17139 ac_status=$?
17140 grep -v '^ *+' conftest.er1 >conftest.err
17141 rm -f conftest.er1
17142 cat conftest.err >&5
17143 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17144 (exit $ac_status); } >/dev/null && {
17145 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17146 test ! -s conftest.err
17147 }; then
17148 ac_header_preproc=yes
17149 else
17150 $as_echo "$as_me: failed program was:" >&5
17151 sed 's/^/| /' conftest.$ac_ext >&5
17153 ac_header_preproc=no
17156 rm -f conftest.err conftest.$ac_ext
17157 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17158 $as_echo "$ac_header_preproc" >&6; }
17160 # So? What about this header?
17161 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17162 yes:no: )
17163 { $as_echo "$as_me:$LINENO: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&5
17164 $as_echo "$as_me: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17165 { $as_echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the compiler's result" >&5
17166 $as_echo "$as_me: WARNING: dl.h: proceeding with the compiler's result" >&2;}
17167 ac_header_preproc=yes
17169 no:yes:* )
17170 { $as_echo "$as_me:$LINENO: WARNING: dl.h: present but cannot be compiled" >&5
17171 $as_echo "$as_me: WARNING: dl.h: present but cannot be compiled" >&2;}
17172 { $as_echo "$as_me:$LINENO: WARNING: dl.h: check for missing prerequisite headers?" >&5
17173 $as_echo "$as_me: WARNING: dl.h: check for missing prerequisite headers?" >&2;}
17174 { $as_echo "$as_me:$LINENO: WARNING: dl.h: see the Autoconf documentation" >&5
17175 $as_echo "$as_me: WARNING: dl.h: see the Autoconf documentation" >&2;}
17176 { $as_echo "$as_me:$LINENO: WARNING: dl.h: section \"Present But Cannot Be Compiled\"" >&5
17177 $as_echo "$as_me: WARNING: dl.h: section \"Present But Cannot Be Compiled\"" >&2;}
17178 { $as_echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the preprocessor's result" >&5
17179 $as_echo "$as_me: WARNING: dl.h: proceeding with the preprocessor's result" >&2;}
17180 { $as_echo "$as_me:$LINENO: WARNING: dl.h: in the future, the compiler will take precedence" >&5
17181 $as_echo "$as_me: WARNING: dl.h: in the future, the compiler will take precedence" >&2;}
17184 esac
17185 { $as_echo "$as_me:$LINENO: checking for dl.h" >&5
17186 $as_echo_n "checking for dl.h... " >&6; }
17187 if test "${ac_cv_header_dl_h+set}" = set; then
17188 $as_echo_n "(cached) " >&6
17189 else
17190 ac_cv_header_dl_h=$ac_header_preproc
17192 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5
17193 $as_echo "$ac_cv_header_dl_h" >&6; }
17196 if test "x$ac_cv_header_dl_h" = x""yes; then
17197 DLL=dl.h
17204 if test x${DLL} = xdlfcn.h; then
17206 cat >>confdefs.h <<\_ACEOF
17207 #define HAVE_DLFCN_H 1
17208 _ACEOF
17210 { $as_echo "$as_me:$LINENO: checking for dlopen()" >&5
17211 $as_echo_n "checking for dlopen()... " >&6; }
17212 cat >conftest.$ac_ext <<_ACEOF
17213 /* confdefs.h. */
17214 _ACEOF
17215 cat confdefs.h >>conftest.$ac_ext
17216 cat >>conftest.$ac_ext <<_ACEOF
17217 /* end confdefs.h. */
17220 main ()
17223 extern void* dlopen();
17224 dlopen();
17227 return 0;
17229 _ACEOF
17230 rm -f conftest.$ac_objext conftest$ac_exeext
17231 if { (ac_try="$ac_link"
17232 case "(($ac_try" in
17233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17234 *) ac_try_echo=$ac_try;;
17235 esac
17236 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17237 $as_echo "$ac_try_echo") >&5
17238 (eval "$ac_link") 2>conftest.er1
17239 ac_status=$?
17240 grep -v '^ *+' conftest.er1 >conftest.err
17241 rm -f conftest.er1
17242 cat conftest.err >&5
17243 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17244 (exit $ac_status); } && {
17245 test -z "$ac_c_werror_flag" ||
17246 test ! -s conftest.err
17247 } && test -s conftest$ac_exeext && {
17248 test "$cross_compiling" = yes ||
17249 $as_test_x conftest$ac_exeext
17250 }; then
17251 { $as_echo "$as_me:$LINENO: result: yes" >&5
17252 $as_echo "yes" >&6; };
17254 cat >>confdefs.h <<\_ACEOF
17255 #define HAVE_DLOPEN 1
17256 _ACEOF
17258 else
17259 $as_echo "$as_me: failed program was:" >&5
17260 sed 's/^/| /' conftest.$ac_ext >&5
17262 { $as_echo "$as_me:$LINENO: result: no" >&5
17263 $as_echo "no" >&6; };
17264 { $as_echo "$as_me:$LINENO: checking for dlopen() in -ldl" >&5
17265 $as_echo_n "checking for dlopen() in -ldl... " >&6; }
17266 olibs=$LIBS
17267 LIBS="$LIBS -ldl"
17268 cat >conftest.$ac_ext <<_ACEOF
17269 /* confdefs.h. */
17270 _ACEOF
17271 cat confdefs.h >>conftest.$ac_ext
17272 cat >>conftest.$ac_ext <<_ACEOF
17273 /* end confdefs.h. */
17276 main ()
17279 extern void* dlopen();
17280 dlopen();
17283 return 0;
17285 _ACEOF
17286 rm -f conftest.$ac_objext conftest$ac_exeext
17287 if { (ac_try="$ac_link"
17288 case "(($ac_try" in
17289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17290 *) ac_try_echo=$ac_try;;
17291 esac
17292 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17293 $as_echo "$ac_try_echo") >&5
17294 (eval "$ac_link") 2>conftest.er1
17295 ac_status=$?
17296 grep -v '^ *+' conftest.er1 >conftest.err
17297 rm -f conftest.er1
17298 cat conftest.err >&5
17299 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17300 (exit $ac_status); } && {
17301 test -z "$ac_c_werror_flag" ||
17302 test ! -s conftest.err
17303 } && test -s conftest$ac_exeext && {
17304 test "$cross_compiling" = yes ||
17305 $as_test_x conftest$ac_exeext
17306 }; then
17307 { $as_echo "$as_me:$LINENO: result: yes" >&5
17308 $as_echo "yes" >&6; };
17310 cat >>confdefs.h <<\_ACEOF
17311 #define HAVE_DLOPEN 1
17312 _ACEOF
17314 else
17315 $as_echo "$as_me: failed program was:" >&5
17316 sed 's/^/| /' conftest.$ac_ext >&5
17318 { $as_echo "$as_me:$LINENO: result: no" >&5
17319 $as_echo "no" >&6; };
17320 LIBS=$olibs
17323 rm -rf conftest.dSYM
17324 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17325 conftest$ac_exeext conftest.$ac_ext
17328 rm -rf conftest.dSYM
17329 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17330 conftest$ac_exeext conftest.$ac_ext
17331 { $as_echo "$as_me:$LINENO: checking for dlsym()" >&5
17332 $as_echo_n "checking for dlsym()... " >&6; }
17333 cat >conftest.$ac_ext <<_ACEOF
17334 /* confdefs.h. */
17335 _ACEOF
17336 cat confdefs.h >>conftest.$ac_ext
17337 cat >>conftest.$ac_ext <<_ACEOF
17338 /* end confdefs.h. */
17341 main ()
17344 extern void* dlsym();
17345 dlsym();
17348 return 0;
17350 _ACEOF
17351 rm -f conftest.$ac_objext conftest$ac_exeext
17352 if { (ac_try="$ac_link"
17353 case "(($ac_try" in
17354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17355 *) ac_try_echo=$ac_try;;
17356 esac
17357 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17358 $as_echo "$ac_try_echo") >&5
17359 (eval "$ac_link") 2>conftest.er1
17360 ac_status=$?
17361 grep -v '^ *+' conftest.er1 >conftest.err
17362 rm -f conftest.er1
17363 cat conftest.err >&5
17364 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17365 (exit $ac_status); } && {
17366 test -z "$ac_c_werror_flag" ||
17367 test ! -s conftest.err
17368 } && test -s conftest$ac_exeext && {
17369 test "$cross_compiling" = yes ||
17370 $as_test_x conftest$ac_exeext
17371 }; then
17372 { $as_echo "$as_me:$LINENO: result: yes" >&5
17373 $as_echo "yes" >&6; };
17375 cat >>confdefs.h <<\_ACEOF
17376 #define HAVE_DLSYM 1
17377 _ACEOF
17379 else
17380 $as_echo "$as_me: failed program was:" >&5
17381 sed 's/^/| /' conftest.$ac_ext >&5
17383 { $as_echo "$as_me:$LINENO: result: no" >&5
17384 $as_echo "no" >&6; };
17385 { $as_echo "$as_me:$LINENO: checking for dlsym() in -ldl" >&5
17386 $as_echo_n "checking for dlsym() in -ldl... " >&6; }
17387 olibs=$LIBS
17388 LIBS="$LIBS -ldl"
17389 cat >conftest.$ac_ext <<_ACEOF
17390 /* confdefs.h. */
17391 _ACEOF
17392 cat confdefs.h >>conftest.$ac_ext
17393 cat >>conftest.$ac_ext <<_ACEOF
17394 /* end confdefs.h. */
17397 main ()
17400 extern void* dlsym();
17401 dlsym();
17404 return 0;
17406 _ACEOF
17407 rm -f conftest.$ac_objext conftest$ac_exeext
17408 if { (ac_try="$ac_link"
17409 case "(($ac_try" in
17410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17411 *) ac_try_echo=$ac_try;;
17412 esac
17413 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17414 $as_echo "$ac_try_echo") >&5
17415 (eval "$ac_link") 2>conftest.er1
17416 ac_status=$?
17417 grep -v '^ *+' conftest.er1 >conftest.err
17418 rm -f conftest.er1
17419 cat conftest.err >&5
17420 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17421 (exit $ac_status); } && {
17422 test -z "$ac_c_werror_flag" ||
17423 test ! -s conftest.err
17424 } && test -s conftest$ac_exeext && {
17425 test "$cross_compiling" = yes ||
17426 $as_test_x conftest$ac_exeext
17427 }; then
17428 { $as_echo "$as_me:$LINENO: result: yes" >&5
17429 $as_echo "yes" >&6; };
17431 cat >>confdefs.h <<\_ACEOF
17432 #define HAVE_DLSYM 1
17433 _ACEOF
17435 else
17436 $as_echo "$as_me: failed program was:" >&5
17437 sed 's/^/| /' conftest.$ac_ext >&5
17439 { $as_echo "$as_me:$LINENO: result: no" >&5
17440 $as_echo "no" >&6; };
17441 LIBS=$olibs
17444 rm -rf conftest.dSYM
17445 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17446 conftest$ac_exeext conftest.$ac_ext
17449 rm -rf conftest.dSYM
17450 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17451 conftest$ac_exeext conftest.$ac_ext
17452 elif test x${DLL} = xdl.h; then
17454 cat >>confdefs.h <<\_ACEOF
17455 #define HAVE_DL_H 1
17456 _ACEOF
17458 { $as_echo "$as_me:$LINENO: checking for shl_load()" >&5
17459 $as_echo_n "checking for shl_load()... " >&6; }
17460 cat >conftest.$ac_ext <<_ACEOF
17461 /* confdefs.h. */
17462 _ACEOF
17463 cat confdefs.h >>conftest.$ac_ext
17464 cat >>conftest.$ac_ext <<_ACEOF
17465 /* end confdefs.h. */
17468 main ()
17471 extern void* shl_load();
17472 shl_load();
17475 return 0;
17477 _ACEOF
17478 rm -f conftest.$ac_objext conftest$ac_exeext
17479 if { (ac_try="$ac_link"
17480 case "(($ac_try" in
17481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17482 *) ac_try_echo=$ac_try;;
17483 esac
17484 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17485 $as_echo "$ac_try_echo") >&5
17486 (eval "$ac_link") 2>conftest.er1
17487 ac_status=$?
17488 grep -v '^ *+' conftest.er1 >conftest.err
17489 rm -f conftest.er1
17490 cat conftest.err >&5
17491 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17492 (exit $ac_status); } && {
17493 test -z "$ac_c_werror_flag" ||
17494 test ! -s conftest.err
17495 } && test -s conftest$ac_exeext && {
17496 test "$cross_compiling" = yes ||
17497 $as_test_x conftest$ac_exeext
17498 }; then
17499 { $as_echo "$as_me:$LINENO: result: yes" >&5
17500 $as_echo "yes" >&6; };
17502 cat >>confdefs.h <<\_ACEOF
17503 #define HAVE_SHL_LOAD 1
17504 _ACEOF
17506 else
17507 $as_echo "$as_me: failed program was:" >&5
17508 sed 's/^/| /' conftest.$ac_ext >&5
17510 { $as_echo "$as_me:$LINENO: result: no" >&5
17511 $as_echo "no" >&6; };
17512 { $as_echo "$as_me:$LINENO: checking for shl_load() in -ldld" >&5
17513 $as_echo_n "checking for shl_load() in -ldld... " >&6; }
17514 olibs=$LIBS
17515 LIBS="$LIBS -ldld"
17516 cat >conftest.$ac_ext <<_ACEOF
17517 /* confdefs.h. */
17518 _ACEOF
17519 cat confdefs.h >>conftest.$ac_ext
17520 cat >>conftest.$ac_ext <<_ACEOF
17521 /* end confdefs.h. */
17524 main ()
17527 extern void* shl_load();
17528 shl_load();
17531 return 0;
17533 _ACEOF
17534 rm -f conftest.$ac_objext conftest$ac_exeext
17535 if { (ac_try="$ac_link"
17536 case "(($ac_try" in
17537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17538 *) ac_try_echo=$ac_try;;
17539 esac
17540 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17541 $as_echo "$ac_try_echo") >&5
17542 (eval "$ac_link") 2>conftest.er1
17543 ac_status=$?
17544 grep -v '^ *+' conftest.er1 >conftest.err
17545 rm -f conftest.er1
17546 cat conftest.err >&5
17547 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17548 (exit $ac_status); } && {
17549 test -z "$ac_c_werror_flag" ||
17550 test ! -s conftest.err
17551 } && test -s conftest$ac_exeext && {
17552 test "$cross_compiling" = yes ||
17553 $as_test_x conftest$ac_exeext
17554 }; then
17555 { $as_echo "$as_me:$LINENO: result: yes" >&5
17556 $as_echo "yes" >&6; };
17558 cat >>confdefs.h <<\_ACEOF
17559 #define HAVE_SHL_LOAD 1
17560 _ACEOF
17562 else
17563 $as_echo "$as_me: failed program was:" >&5
17564 sed 's/^/| /' conftest.$ac_ext >&5
17566 { $as_echo "$as_me:$LINENO: result: no" >&5
17567 $as_echo "no" >&6; };
17568 LIBS=$olibs
17571 rm -rf conftest.dSYM
17572 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17573 conftest$ac_exeext conftest.$ac_ext
17576 rm -rf conftest.dSYM
17577 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17578 conftest$ac_exeext conftest.$ac_ext
17581 for ac_header in setjmp.h
17583 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17584 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17585 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17586 $as_echo_n "checking for $ac_header... " >&6; }
17587 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17588 $as_echo_n "(cached) " >&6
17590 ac_res=`eval 'as_val=${'$as_ac_Header'}
17591 $as_echo "$as_val"'`
17592 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17593 $as_echo "$ac_res" >&6; }
17594 else
17595 # Is the header compilable?
17596 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17597 $as_echo_n "checking $ac_header usability... " >&6; }
17598 cat >conftest.$ac_ext <<_ACEOF
17599 /* confdefs.h. */
17600 _ACEOF
17601 cat confdefs.h >>conftest.$ac_ext
17602 cat >>conftest.$ac_ext <<_ACEOF
17603 /* end confdefs.h. */
17604 $ac_includes_default
17605 #include <$ac_header>
17606 _ACEOF
17607 rm -f conftest.$ac_objext
17608 if { (ac_try="$ac_compile"
17609 case "(($ac_try" in
17610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17611 *) ac_try_echo=$ac_try;;
17612 esac
17613 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17614 $as_echo "$ac_try_echo") >&5
17615 (eval "$ac_compile") 2>conftest.er1
17616 ac_status=$?
17617 grep -v '^ *+' conftest.er1 >conftest.err
17618 rm -f conftest.er1
17619 cat conftest.err >&5
17620 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17621 (exit $ac_status); } && {
17622 test -z "$ac_c_werror_flag" ||
17623 test ! -s conftest.err
17624 } && test -s conftest.$ac_objext; then
17625 ac_header_compiler=yes
17626 else
17627 $as_echo "$as_me: failed program was:" >&5
17628 sed 's/^/| /' conftest.$ac_ext >&5
17630 ac_header_compiler=no
17633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17634 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17635 $as_echo "$ac_header_compiler" >&6; }
17637 # Is the header present?
17638 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17639 $as_echo_n "checking $ac_header presence... " >&6; }
17640 cat >conftest.$ac_ext <<_ACEOF
17641 /* confdefs.h. */
17642 _ACEOF
17643 cat confdefs.h >>conftest.$ac_ext
17644 cat >>conftest.$ac_ext <<_ACEOF
17645 /* end confdefs.h. */
17646 #include <$ac_header>
17647 _ACEOF
17648 if { (ac_try="$ac_cpp conftest.$ac_ext"
17649 case "(($ac_try" in
17650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17651 *) ac_try_echo=$ac_try;;
17652 esac
17653 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17654 $as_echo "$ac_try_echo") >&5
17655 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17656 ac_status=$?
17657 grep -v '^ *+' conftest.er1 >conftest.err
17658 rm -f conftest.er1
17659 cat conftest.err >&5
17660 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17661 (exit $ac_status); } >/dev/null && {
17662 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17663 test ! -s conftest.err
17664 }; then
17665 ac_header_preproc=yes
17666 else
17667 $as_echo "$as_me: failed program was:" >&5
17668 sed 's/^/| /' conftest.$ac_ext >&5
17670 ac_header_preproc=no
17673 rm -f conftest.err conftest.$ac_ext
17674 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17675 $as_echo "$ac_header_preproc" >&6; }
17677 # So? What about this header?
17678 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17679 yes:no: )
17680 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17681 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17682 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17683 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17684 ac_header_preproc=yes
17686 no:yes:* )
17687 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17688 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17689 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17690 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17691 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17692 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17693 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17694 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17695 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17696 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17697 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17698 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17701 esac
17702 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17703 $as_echo_n "checking for $ac_header... " >&6; }
17704 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17705 $as_echo_n "(cached) " >&6
17706 else
17707 eval "$as_ac_Header=\$ac_header_preproc"
17709 ac_res=`eval 'as_val=${'$as_ac_Header'}
17710 $as_echo "$as_val"'`
17711 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17712 $as_echo "$ac_res" >&6; }
17715 as_val=`eval 'as_val=${'$as_ac_Header'}
17716 $as_echo "$as_val"'`
17717 if test "x$as_val" = x""yes; then
17718 cat >>confdefs.h <<_ACEOF
17719 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17720 _ACEOF
17724 done
17727 if test "x$MACOSX" = "xyes" -a -n "$PERL"; then
17728 if echo $LIBS | grep -e '-ldl' >/dev/null; then
17729 LIBS=`echo $LIBS | sed s/-ldl//`
17730 PERL_LIBS="$PERL_LIBS -ldl"
17734 if test "x$MACOSX" = "xyes" && test "x$CARBON" = "xyes" \
17735 && test "x$GUITYPE" != "xCARBONGUI"; then
17736 { $as_echo "$as_me:$LINENO: checking whether we need -framework Carbon" >&5
17737 $as_echo_n "checking whether we need -framework Carbon... " >&6; }
17738 if test "x$enable_multibyte" = "xyes" || test "x$features" = "xbig" \
17739 || test "x$features" = "xhuge"; then
17740 LIBS="$LIBS -framework Carbon"
17741 { $as_echo "$as_me:$LINENO: result: yes" >&5
17742 $as_echo "yes" >&6; }
17743 else
17744 { $as_echo "$as_me:$LINENO: result: no" >&5
17745 $as_echo "no" >&6; }
17748 if test "x$MACARCH" = "xboth"; then
17749 LDFLAGS="$LDFLAGS -isysroot $DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc"
17752 DEPEND_CFLAGS_FILTER=
17753 if test "$GCC" = yes; then
17754 { $as_echo "$as_me:$LINENO: checking for GCC 3 or later" >&5
17755 $as_echo_n "checking for GCC 3 or later... " >&6; }
17756 gccmajor=`echo "$gccversion" | sed -e 's/^\([1-9]\)\..*$/\1/g'`
17757 if test "$gccmajor" -gt "2"; then
17758 DEPEND_CFLAGS_FILTER="| sed 's+-I */+-isystem /+g'"
17759 { $as_echo "$as_me:$LINENO: result: yes" >&5
17760 $as_echo "yes" >&6; }
17761 else
17762 { $as_echo "$as_me:$LINENO: result: no" >&5
17763 $as_echo "no" >&6; }
17765 { $as_echo "$as_me:$LINENO: checking whether we need -D_FORTIFY_SOURCE=1" >&5
17766 $as_echo_n "checking whether we need -D_FORTIFY_SOURCE=1... " >&6; }
17767 if test "$gccmajor" -gt "3"; then
17768 CFLAGS=`echo "$CFLAGS" | sed -e 's/-Wp,-D_FORTIFY_SOURCE=.//g' -e 's/-D_FORTIFY_SOURCE=.//g' -e 's/$/ -D_FORTIFY_SOURCE=1/'`
17769 { $as_echo "$as_me:$LINENO: result: yes" >&5
17770 $as_echo "yes" >&6; }
17771 else
17772 { $as_echo "$as_me:$LINENO: result: no" >&5
17773 $as_echo "no" >&6; }
17778 ac_config_files="$ac_config_files auto/config.mk:config.mk.in"
17780 cat >confcache <<\_ACEOF
17781 # This file is a shell script that caches the results of configure
17782 # tests run on this system so they can be shared between configure
17783 # scripts and configure runs, see configure's option --config-cache.
17784 # It is not useful on other systems. If it contains results you don't
17785 # want to keep, you may remove or edit it.
17787 # config.status only pays attention to the cache file if you give it
17788 # the --recheck option to rerun configure.
17790 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17791 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17792 # following values.
17794 _ACEOF
17796 # The following way of writing the cache mishandles newlines in values,
17797 # but we know of no workaround that is simple, portable, and efficient.
17798 # So, we kill variables containing newlines.
17799 # Ultrix sh set writes to stderr and can't be redirected directly,
17800 # and sets the high bit in the cache file unless we assign to the vars.
17802 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17803 eval ac_val=\$$ac_var
17804 case $ac_val in #(
17805 *${as_nl}*)
17806 case $ac_var in #(
17807 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
17808 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17809 esac
17810 case $ac_var in #(
17811 _ | IFS | as_nl) ;; #(
17812 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17813 *) $as_unset $ac_var ;;
17814 esac ;;
17815 esac
17816 done
17818 (set) 2>&1 |
17819 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17820 *${as_nl}ac_space=\ *)
17821 # `set' does not quote correctly, so add quotes (double-quote
17822 # substitution turns \\\\ into \\, and sed turns \\ into \).
17823 sed -n \
17824 "s/'/'\\\\''/g;
17825 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17826 ;; #(
17828 # `set' quotes correctly as required by POSIX, so do not add quotes.
17829 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17831 esac |
17832 sort
17834 sed '
17835 /^ac_cv_env_/b end
17836 t clear
17837 :clear
17838 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17839 t end
17840 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17841 :end' >>confcache
17842 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17843 if test -w "$cache_file"; then
17844 test "x$cache_file" != "x/dev/null" &&
17845 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
17846 $as_echo "$as_me: updating cache $cache_file" >&6;}
17847 cat confcache >$cache_file
17848 else
17849 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
17850 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17853 rm -f confcache
17855 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17856 # Let make expand exec_prefix.
17857 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17859 DEFS=-DHAVE_CONFIG_H
17861 ac_libobjs=
17862 ac_ltlibobjs=
17863 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17864 # 1. Remove the extension, and $U if already installed.
17865 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17866 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17867 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17868 # will be set to the directory where LIBOBJS objects are built.
17869 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17870 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
17871 done
17872 LIBOBJS=$ac_libobjs
17874 LTLIBOBJS=$ac_ltlibobjs
17878 : ${CONFIG_STATUS=./config.status}
17879 ac_write_fail=0
17880 ac_clean_files_save=$ac_clean_files
17881 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17882 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17883 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17884 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17885 #! $SHELL
17886 # Generated by $as_me.
17887 # Run this file to recreate the current configuration.
17888 # Compiler output produced by configure, useful for debugging
17889 # configure, is in config.log if it exists.
17891 debug=false
17892 ac_cs_recheck=false
17893 ac_cs_silent=false
17894 SHELL=\${CONFIG_SHELL-$SHELL}
17895 _ACEOF
17897 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17898 ## --------------------- ##
17899 ## M4sh Initialization. ##
17900 ## --------------------- ##
17902 # Be more Bourne compatible
17903 DUALCASE=1; export DUALCASE # for MKS sh
17904 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17905 emulate sh
17906 NULLCMD=:
17907 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17908 # is contrary to our usage. Disable this feature.
17909 alias -g '${1+"$@"}'='"$@"'
17910 setopt NO_GLOB_SUBST
17911 else
17912 case `(set -o) 2>/dev/null` in
17913 *posix*) set -o posix ;;
17914 esac
17921 # PATH needs CR
17922 # Avoid depending upon Character Ranges.
17923 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17924 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17925 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17926 as_cr_digits='0123456789'
17927 as_cr_alnum=$as_cr_Letters$as_cr_digits
17929 as_nl='
17931 export as_nl
17932 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17933 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17934 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17935 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17936 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17937 as_echo='printf %s\n'
17938 as_echo_n='printf %s'
17939 else
17940 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17941 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17942 as_echo_n='/usr/ucb/echo -n'
17943 else
17944 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17945 as_echo_n_body='eval
17946 arg=$1;
17947 case $arg in
17948 *"$as_nl"*)
17949 expr "X$arg" : "X\\(.*\\)$as_nl";
17950 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17951 esac;
17952 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17954 export as_echo_n_body
17955 as_echo_n='sh -c $as_echo_n_body as_echo'
17957 export as_echo_body
17958 as_echo='sh -c $as_echo_body as_echo'
17961 # The user is always right.
17962 if test "${PATH_SEPARATOR+set}" != set; then
17963 PATH_SEPARATOR=:
17964 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17965 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17966 PATH_SEPARATOR=';'
17970 # Support unset when possible.
17971 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
17972 as_unset=unset
17973 else
17974 as_unset=false
17978 # IFS
17979 # We need space, tab and new line, in precisely that order. Quoting is
17980 # there to prevent editors from complaining about space-tab.
17981 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17982 # splitting by setting IFS to empty value.)
17983 IFS=" "" $as_nl"
17985 # Find who we are. Look in the path if we contain no directory separator.
17986 case $0 in
17987 *[\\/]* ) as_myself=$0 ;;
17988 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17989 for as_dir in $PATH
17991 IFS=$as_save_IFS
17992 test -z "$as_dir" && as_dir=.
17993 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17994 done
17995 IFS=$as_save_IFS
17998 esac
17999 # We did not find ourselves, most probably we were run as `sh COMMAND'
18000 # in which case we are not to be found in the path.
18001 if test "x$as_myself" = x; then
18002 as_myself=$0
18004 if test ! -f "$as_myself"; then
18005 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18006 { (exit 1); exit 1; }
18009 # Work around bugs in pre-3.0 UWIN ksh.
18010 for as_var in ENV MAIL MAILPATH
18011 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18012 done
18013 PS1='$ '
18014 PS2='> '
18015 PS4='+ '
18017 # NLS nuisances.
18018 LC_ALL=C
18019 export LC_ALL
18020 LANGUAGE=C
18021 export LANGUAGE
18023 # Required to use basename.
18024 if expr a : '\(a\)' >/dev/null 2>&1 &&
18025 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18026 as_expr=expr
18027 else
18028 as_expr=false
18031 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18032 as_basename=basename
18033 else
18034 as_basename=false
18038 # Name of the executable.
18039 as_me=`$as_basename -- "$0" ||
18040 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18041 X"$0" : 'X\(//\)$' \| \
18042 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18043 $as_echo X/"$0" |
18044 sed '/^.*\/\([^/][^/]*\)\/*$/{
18045 s//\1/
18048 /^X\/\(\/\/\)$/{
18049 s//\1/
18052 /^X\/\(\/\).*/{
18053 s//\1/
18056 s/.*/./; q'`
18058 # CDPATH.
18059 $as_unset CDPATH
18063 as_lineno_1=$LINENO
18064 as_lineno_2=$LINENO
18065 test "x$as_lineno_1" != "x$as_lineno_2" &&
18066 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
18068 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18069 # uniformly replaced by the line number. The first 'sed' inserts a
18070 # line-number line after each line using $LINENO; the second 'sed'
18071 # does the real work. The second script uses 'N' to pair each
18072 # line-number line with the line containing $LINENO, and appends
18073 # trailing '-' during substitution so that $LINENO is not a special
18074 # case at line end.
18075 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18076 # scripts with optimization help from Paolo Bonzini. Blame Lee
18077 # E. McMahon (1931-1989) for sed's syntax. :-)
18078 sed -n '
18080 /[$]LINENO/=
18081 ' <$as_myself |
18082 sed '
18083 s/[$]LINENO.*/&-/
18084 t lineno
18086 :lineno
18088 :loop
18089 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
18090 t loop
18091 s/-\n.*//
18092 ' >$as_me.lineno &&
18093 chmod +x "$as_me.lineno" ||
18094 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
18095 { (exit 1); exit 1; }; }
18097 # Don't try to exec as it changes $[0], causing all sort of problems
18098 # (the dirname of $[0] is not the place where we might find the
18099 # original and so on. Autoconf is especially sensitive to this).
18100 . "./$as_me.lineno"
18101 # Exit status is that of the last command.
18102 exit
18106 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18107 as_dirname=dirname
18108 else
18109 as_dirname=false
18112 ECHO_C= ECHO_N= ECHO_T=
18113 case `echo -n x` in
18114 -n*)
18115 case `echo 'x\c'` in
18116 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18117 *) ECHO_C='\c';;
18118 esac;;
18120 ECHO_N='-n';;
18121 esac
18122 if expr a : '\(a\)' >/dev/null 2>&1 &&
18123 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18124 as_expr=expr
18125 else
18126 as_expr=false
18129 rm -f conf$$ conf$$.exe conf$$.file
18130 if test -d conf$$.dir; then
18131 rm -f conf$$.dir/conf$$.file
18132 else
18133 rm -f conf$$.dir
18134 mkdir conf$$.dir 2>/dev/null
18136 if (echo >conf$$.file) 2>/dev/null; then
18137 if ln -s conf$$.file conf$$ 2>/dev/null; then
18138 as_ln_s='ln -s'
18139 # ... but there are two gotchas:
18140 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18141 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18142 # In both cases, we have to default to `cp -p'.
18143 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18144 as_ln_s='cp -p'
18145 elif ln conf$$.file conf$$ 2>/dev/null; then
18146 as_ln_s=ln
18147 else
18148 as_ln_s='cp -p'
18150 else
18151 as_ln_s='cp -p'
18153 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18154 rmdir conf$$.dir 2>/dev/null
18156 if mkdir -p . 2>/dev/null; then
18157 as_mkdir_p=:
18158 else
18159 test -d ./-p && rmdir ./-p
18160 as_mkdir_p=false
18163 if test -x / >/dev/null 2>&1; then
18164 as_test_x='test -x'
18165 else
18166 if ls -dL / >/dev/null 2>&1; then
18167 as_ls_L_option=L
18168 else
18169 as_ls_L_option=
18171 as_test_x='
18172 eval sh -c '\''
18173 if test -d "$1"; then
18174 test -d "$1/.";
18175 else
18176 case $1 in
18177 -*)set "./$1";;
18178 esac;
18179 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
18180 ???[sx]*):;;*)false;;esac;fi
18181 '\'' sh
18184 as_executable_p=$as_test_x
18186 # Sed expression to map a string onto a valid CPP name.
18187 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18189 # Sed expression to map a string onto a valid variable name.
18190 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18193 exec 6>&1
18195 # Save the log message, to keep $[0] and so on meaningful, and to
18196 # report actual input values of CONFIG_FILES etc. instead of their
18197 # values after options handling.
18198 ac_log="
18199 This file was extended by $as_me, which was
18200 generated by GNU Autoconf 2.63. Invocation command line was
18202 CONFIG_FILES = $CONFIG_FILES
18203 CONFIG_HEADERS = $CONFIG_HEADERS
18204 CONFIG_LINKS = $CONFIG_LINKS
18205 CONFIG_COMMANDS = $CONFIG_COMMANDS
18206 $ $0 $@
18208 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18211 _ACEOF
18213 case $ac_config_files in *"
18214 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18215 esac
18217 case $ac_config_headers in *"
18218 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18219 esac
18222 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18223 # Files that config.status was made for.
18224 config_files="$ac_config_files"
18225 config_headers="$ac_config_headers"
18227 _ACEOF
18229 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18230 ac_cs_usage="\
18231 \`$as_me' instantiates files from templates according to the
18232 current configuration.
18234 Usage: $0 [OPTION]... [FILE]...
18236 -h, --help print this help, then exit
18237 -V, --version print version number and configuration settings, then exit
18238 -q, --quiet, --silent
18239 do not print progress messages
18240 -d, --debug don't remove temporary files
18241 --recheck update $as_me by reconfiguring in the same conditions
18242 --file=FILE[:TEMPLATE]
18243 instantiate the configuration file FILE
18244 --header=FILE[:TEMPLATE]
18245 instantiate the configuration header FILE
18247 Configuration files:
18248 $config_files
18250 Configuration headers:
18251 $config_headers
18253 Report bugs to <bug-autoconf@gnu.org>."
18255 _ACEOF
18256 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18257 ac_cs_version="\\
18258 config.status
18259 configured by $0, generated by GNU Autoconf 2.63,
18260 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
18262 Copyright (C) 2008 Free Software Foundation, Inc.
18263 This config.status script is free software; the Free Software Foundation
18264 gives unlimited permission to copy, distribute and modify it."
18266 ac_pwd='$ac_pwd'
18267 srcdir='$srcdir'
18268 AWK='$AWK'
18269 test -n "\$AWK" || AWK=awk
18270 _ACEOF
18272 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18273 # The default lists apply if the user does not specify any file.
18274 ac_need_defaults=:
18275 while test $# != 0
18277 case $1 in
18278 --*=*)
18279 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18280 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18281 ac_shift=:
18284 ac_option=$1
18285 ac_optarg=$2
18286 ac_shift=shift
18288 esac
18290 case $ac_option in
18291 # Handling of the options.
18292 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18293 ac_cs_recheck=: ;;
18294 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18295 $as_echo "$ac_cs_version"; exit ;;
18296 --debug | --debu | --deb | --de | --d | -d )
18297 debug=: ;;
18298 --file | --fil | --fi | --f )
18299 $ac_shift
18300 case $ac_optarg in
18301 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18302 esac
18303 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
18304 ac_need_defaults=false;;
18305 --header | --heade | --head | --hea )
18306 $ac_shift
18307 case $ac_optarg in
18308 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18309 esac
18310 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
18311 ac_need_defaults=false;;
18312 --he | --h)
18313 # Conflict between --help and --header
18314 { $as_echo "$as_me: error: ambiguous option: $1
18315 Try \`$0 --help' for more information." >&2
18316 { (exit 1); exit 1; }; };;
18317 --help | --hel | -h )
18318 $as_echo "$ac_cs_usage"; exit ;;
18319 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18320 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18321 ac_cs_silent=: ;;
18323 # This is an error.
18324 -*) { $as_echo "$as_me: error: unrecognized option: $1
18325 Try \`$0 --help' for more information." >&2
18326 { (exit 1); exit 1; }; } ;;
18328 *) ac_config_targets="$ac_config_targets $1"
18329 ac_need_defaults=false ;;
18331 esac
18332 shift
18333 done
18335 ac_configure_extra_args=
18337 if $ac_cs_silent; then
18338 exec 6>/dev/null
18339 ac_configure_extra_args="$ac_configure_extra_args --silent"
18342 _ACEOF
18343 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18344 if \$ac_cs_recheck; then
18345 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18346 shift
18347 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18348 CONFIG_SHELL='$SHELL'
18349 export CONFIG_SHELL
18350 exec "\$@"
18353 _ACEOF
18354 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18355 exec 5>>auto/config.log
18357 echo
18358 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18359 ## Running $as_me. ##
18360 _ASBOX
18361 $as_echo "$ac_log"
18362 } >&5
18364 _ACEOF
18365 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18366 _ACEOF
18368 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18370 # Handling of arguments.
18371 for ac_config_target in $ac_config_targets
18373 case $ac_config_target in
18374 "auto/config.h") CONFIG_HEADERS="$CONFIG_HEADERS auto/config.h:config.h.in" ;;
18375 "auto/config.mk") CONFIG_FILES="$CONFIG_FILES auto/config.mk:config.mk.in" ;;
18377 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18378 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18379 { (exit 1); exit 1; }; };;
18380 esac
18381 done
18384 # If the user did not use the arguments to specify the items to instantiate,
18385 # then the envvar interface is used. Set only those that are not.
18386 # We use the long form for the default assignment because of an extremely
18387 # bizarre bug on SunOS 4.1.3.
18388 if $ac_need_defaults; then
18389 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18390 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18393 # Have a temporary directory for convenience. Make it in the build tree
18394 # simply because there is no reason against having it here, and in addition,
18395 # creating and moving files from /tmp can sometimes cause problems.
18396 # Hook for its removal unless debugging.
18397 # Note that there is a small window in which the directory will not be cleaned:
18398 # after its creation but before its name has been assigned to `$tmp'.
18399 $debug ||
18401 tmp=
18402 trap 'exit_status=$?
18403 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18405 trap '{ (exit 1); exit 1; }' 1 2 13 15
18407 # Create a (secure) tmp directory for tmp files.
18410 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18411 test -n "$tmp" && test -d "$tmp"
18412 } ||
18414 tmp=./conf$$-$RANDOM
18415 (umask 077 && mkdir "$tmp")
18416 } ||
18418 $as_echo "$as_me: cannot create a temporary directory in ." >&2
18419 { (exit 1); exit 1; }
18422 # Set up the scripts for CONFIG_FILES section.
18423 # No need to generate them if there are no CONFIG_FILES.
18424 # This happens for instance with `./config.status config.h'.
18425 if test -n "$CONFIG_FILES"; then
18428 ac_cr=' '
18429 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18430 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18431 ac_cs_awk_cr='\\r'
18432 else
18433 ac_cs_awk_cr=$ac_cr
18436 echo 'BEGIN {' >"$tmp/subs1.awk" &&
18437 _ACEOF
18441 echo "cat >conf$$subs.awk <<_ACEOF" &&
18442 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18443 echo "_ACEOF"
18444 } >conf$$subs.sh ||
18445 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18446 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18447 { (exit 1); exit 1; }; }
18448 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
18449 ac_delim='%!_!# '
18450 for ac_last_try in false false false false false :; do
18451 . ./conf$$subs.sh ||
18452 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18453 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18454 { (exit 1); exit 1; }; }
18456 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18457 if test $ac_delim_n = $ac_delim_num; then
18458 break
18459 elif $ac_last_try; then
18460 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18461 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18462 { (exit 1); exit 1; }; }
18463 else
18464 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18466 done
18467 rm -f conf$$subs.sh
18469 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18470 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
18471 _ACEOF
18472 sed -n '
18474 s/^/S["/; s/!.*/"]=/
18477 s/^[^!]*!//
18478 :repl
18479 t repl
18480 s/'"$ac_delim"'$//
18481 t delim
18484 s/\(.\{148\}\).*/\1/
18485 t more1
18486 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18489 b repl
18490 :more1
18491 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18494 s/.\{148\}//
18495 t nl
18496 :delim
18498 s/\(.\{148\}\).*/\1/
18499 t more2
18500 s/["\\]/\\&/g; s/^/"/; s/$/"/
18503 :more2
18504 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18507 s/.\{148\}//
18508 t delim
18509 ' <conf$$subs.awk | sed '
18510 /^[^""]/{
18512 s/\n//
18514 ' >>$CONFIG_STATUS || ac_write_fail=1
18515 rm -f conf$$subs.awk
18516 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18517 _ACAWK
18518 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
18519 for (key in S) S_is_set[key] = 1
18520 FS = "\a"
18524 line = $ 0
18525 nfields = split(line, field, "@")
18526 substed = 0
18527 len = length(field[1])
18528 for (i = 2; i < nfields; i++) {
18529 key = field[i]
18530 keylen = length(key)
18531 if (S_is_set[key]) {
18532 value = S[key]
18533 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18534 len += length(value) + length(field[++i])
18535 substed = 1
18536 } else
18537 len += 1 + keylen
18540 print line
18543 _ACAWK
18544 _ACEOF
18545 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18546 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18547 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18548 else
18550 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
18551 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
18552 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
18553 { (exit 1); exit 1; }; }
18554 _ACEOF
18556 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18557 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18558 # trailing colons and then remove the whole line if VPATH becomes empty
18559 # (actually we leave an empty line to preserve line numbers).
18560 if test "x$srcdir" = x.; then
18561 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18562 s/:*\$(srcdir):*/:/
18563 s/:*\${srcdir}:*/:/
18564 s/:*@srcdir@:*/:/
18565 s/^\([^=]*=[ ]*\):*/\1/
18566 s/:*$//
18567 s/^[^=]*=[ ]*$//
18571 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18572 fi # test -n "$CONFIG_FILES"
18574 # Set up the scripts for CONFIG_HEADERS section.
18575 # No need to generate them if there are no CONFIG_HEADERS.
18576 # This happens for instance with `./config.status Makefile'.
18577 if test -n "$CONFIG_HEADERS"; then
18578 cat >"$tmp/defines.awk" <<\_ACAWK ||
18579 BEGIN {
18580 _ACEOF
18582 # Transform confdefs.h into an awk script `defines.awk', embedded as
18583 # here-document in config.status, that substitutes the proper values into
18584 # config.h.in to produce config.h.
18586 # Create a delimiter string that does not exist in confdefs.h, to ease
18587 # handling of long lines.
18588 ac_delim='%!_!# '
18589 for ac_last_try in false false :; do
18590 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
18591 if test -z "$ac_t"; then
18592 break
18593 elif $ac_last_try; then
18594 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
18595 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
18596 { (exit 1); exit 1; }; }
18597 else
18598 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18600 done
18602 # For the awk script, D is an array of macro values keyed by name,
18603 # likewise P contains macro parameters if any. Preserve backslash
18604 # newline sequences.
18606 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18607 sed -n '
18608 s/.\{148\}/&'"$ac_delim"'/g
18609 t rset
18610 :rset
18611 s/^[ ]*#[ ]*define[ ][ ]*/ /
18612 t def
18614 :def
18615 s/\\$//
18616 t bsnl
18617 s/["\\]/\\&/g
18618 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18619 D["\1"]=" \3"/p
18620 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18622 :bsnl
18623 s/["\\]/\\&/g
18624 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18625 D["\1"]=" \3\\\\\\n"\\/p
18626 t cont
18627 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18628 t cont
18630 :cont
18632 s/.\{148\}/&'"$ac_delim"'/g
18633 t clear
18634 :clear
18635 s/\\$//
18636 t bsnlc
18637 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18639 :bsnlc
18640 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18641 b cont
18642 ' <confdefs.h | sed '
18643 s/'"$ac_delim"'/"\\\
18644 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18646 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18647 for (key in D) D_is_set[key] = 1
18648 FS = "\a"
18650 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18651 line = \$ 0
18652 split(line, arg, " ")
18653 if (arg[1] == "#") {
18654 defundef = arg[2]
18655 mac1 = arg[3]
18656 } else {
18657 defundef = substr(arg[1], 2)
18658 mac1 = arg[2]
18660 split(mac1, mac2, "(") #)
18661 macro = mac2[1]
18662 prefix = substr(line, 1, index(line, defundef) - 1)
18663 if (D_is_set[macro]) {
18664 # Preserve the white space surrounding the "#".
18665 print prefix "define", macro P[macro] D[macro]
18666 next
18667 } else {
18668 # Replace #undef with comments. This is necessary, for example,
18669 # in the case of _POSIX_SOURCE, which is predefined and required
18670 # on some systems where configure will not decide to define it.
18671 if (defundef == "undef") {
18672 print "/*", prefix defundef, macro, "*/"
18673 next
18677 { print }
18678 _ACAWK
18679 _ACEOF
18680 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18681 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
18682 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
18683 { (exit 1); exit 1; }; }
18684 fi # test -n "$CONFIG_HEADERS"
18687 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
18688 shift
18689 for ac_tag
18691 case $ac_tag in
18692 :[FHLC]) ac_mode=$ac_tag; continue;;
18693 esac
18694 case $ac_mode$ac_tag in
18695 :[FHL]*:*);;
18696 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
18697 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
18698 { (exit 1); exit 1; }; };;
18699 :[FH]-) ac_tag=-:-;;
18700 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18701 esac
18702 ac_save_IFS=$IFS
18703 IFS=:
18704 set x $ac_tag
18705 IFS=$ac_save_IFS
18706 shift
18707 ac_file=$1
18708 shift
18710 case $ac_mode in
18711 :L) ac_source=$1;;
18712 :[FH])
18713 ac_file_inputs=
18714 for ac_f
18716 case $ac_f in
18717 -) ac_f="$tmp/stdin";;
18718 *) # Look for the file first in the build tree, then in the source tree
18719 # (if the path is not absolute). The absolute path cannot be DOS-style,
18720 # because $ac_f cannot contain `:'.
18721 test -f "$ac_f" ||
18722 case $ac_f in
18723 [\\/$]*) false;;
18724 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18725 esac ||
18726 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
18727 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
18728 { (exit 1); exit 1; }; };;
18729 esac
18730 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18731 ac_file_inputs="$ac_file_inputs '$ac_f'"
18732 done
18734 # Let's still pretend it is `configure' which instantiates (i.e., don't
18735 # use $as_me), people would be surprised to read:
18736 # /* config.h. Generated by config.status. */
18737 configure_input='Generated from '`
18738 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18739 `' by configure.'
18740 if test x"$ac_file" != x-; then
18741 configure_input="$ac_file. $configure_input"
18742 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
18743 $as_echo "$as_me: creating $ac_file" >&6;}
18745 # Neutralize special characters interpreted by sed in replacement strings.
18746 case $configure_input in #(
18747 *\&* | *\|* | *\\* )
18748 ac_sed_conf_input=`$as_echo "$configure_input" |
18749 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18750 *) ac_sed_conf_input=$configure_input;;
18751 esac
18753 case $ac_tag in
18754 *:-:* | *:-) cat >"$tmp/stdin" \
18755 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18756 $as_echo "$as_me: error: could not create $ac_file" >&2;}
18757 { (exit 1); exit 1; }; } ;;
18758 esac
18760 esac
18762 ac_dir=`$as_dirname -- "$ac_file" ||
18763 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18764 X"$ac_file" : 'X\(//\)[^/]' \| \
18765 X"$ac_file" : 'X\(//\)$' \| \
18766 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18767 $as_echo X"$ac_file" |
18768 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18769 s//\1/
18772 /^X\(\/\/\)[^/].*/{
18773 s//\1/
18776 /^X\(\/\/\)$/{
18777 s//\1/
18780 /^X\(\/\).*/{
18781 s//\1/
18784 s/.*/./; q'`
18785 { as_dir="$ac_dir"
18786 case $as_dir in #(
18787 -*) as_dir=./$as_dir;;
18788 esac
18789 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
18790 as_dirs=
18791 while :; do
18792 case $as_dir in #(
18793 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18794 *) as_qdir=$as_dir;;
18795 esac
18796 as_dirs="'$as_qdir' $as_dirs"
18797 as_dir=`$as_dirname -- "$as_dir" ||
18798 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18799 X"$as_dir" : 'X\(//\)[^/]' \| \
18800 X"$as_dir" : 'X\(//\)$' \| \
18801 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18802 $as_echo X"$as_dir" |
18803 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18804 s//\1/
18807 /^X\(\/\/\)[^/].*/{
18808 s//\1/
18811 /^X\(\/\/\)$/{
18812 s//\1/
18815 /^X\(\/\).*/{
18816 s//\1/
18819 s/.*/./; q'`
18820 test -d "$as_dir" && break
18821 done
18822 test -z "$as_dirs" || eval "mkdir $as_dirs"
18823 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
18824 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
18825 { (exit 1); exit 1; }; }; }
18826 ac_builddir=.
18828 case "$ac_dir" in
18829 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18831 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18832 # A ".." for each directory in $ac_dir_suffix.
18833 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18834 case $ac_top_builddir_sub in
18835 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18836 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18837 esac ;;
18838 esac
18839 ac_abs_top_builddir=$ac_pwd
18840 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18841 # for backward compatibility:
18842 ac_top_builddir=$ac_top_build_prefix
18844 case $srcdir in
18845 .) # We are building in place.
18846 ac_srcdir=.
18847 ac_top_srcdir=$ac_top_builddir_sub
18848 ac_abs_top_srcdir=$ac_pwd ;;
18849 [\\/]* | ?:[\\/]* ) # Absolute name.
18850 ac_srcdir=$srcdir$ac_dir_suffix;
18851 ac_top_srcdir=$srcdir
18852 ac_abs_top_srcdir=$srcdir ;;
18853 *) # Relative name.
18854 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18855 ac_top_srcdir=$ac_top_build_prefix$srcdir
18856 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18857 esac
18858 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18861 case $ac_mode in
18864 # CONFIG_FILE
18867 _ACEOF
18869 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18870 # If the template does not know about datarootdir, expand it.
18871 # FIXME: This hack should be removed a few years after 2.60.
18872 ac_datarootdir_hack=; ac_datarootdir_seen=
18874 ac_sed_dataroot='
18875 /datarootdir/ {
18879 /@datadir@/p
18880 /@docdir@/p
18881 /@infodir@/p
18882 /@localedir@/p
18883 /@mandir@/p
18885 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18886 *datarootdir*) ac_datarootdir_seen=yes;;
18887 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18888 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18889 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18890 _ACEOF
18891 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18892 ac_datarootdir_hack='
18893 s&@datadir@&$datadir&g
18894 s&@docdir@&$docdir&g
18895 s&@infodir@&$infodir&g
18896 s&@localedir@&$localedir&g
18897 s&@mandir@&$mandir&g
18898 s&\\\${datarootdir}&$datarootdir&g' ;;
18899 esac
18900 _ACEOF
18902 # Neutralize VPATH when `$srcdir' = `.'.
18903 # Shell code in configure.ac might set extrasub.
18904 # FIXME: do we really want to maintain this feature?
18905 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18906 ac_sed_extra="$ac_vpsub
18907 $extrasub
18908 _ACEOF
18909 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18911 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18912 s|@configure_input@|$ac_sed_conf_input|;t t
18913 s&@top_builddir@&$ac_top_builddir_sub&;t t
18914 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18915 s&@srcdir@&$ac_srcdir&;t t
18916 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18917 s&@top_srcdir@&$ac_top_srcdir&;t t
18918 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18919 s&@builddir@&$ac_builddir&;t t
18920 s&@abs_builddir@&$ac_abs_builddir&;t t
18921 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18922 $ac_datarootdir_hack
18924 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
18925 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18926 $as_echo "$as_me: error: could not create $ac_file" >&2;}
18927 { (exit 1); exit 1; }; }
18929 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18930 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
18931 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
18932 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18933 which seems to be undefined. Please make sure it is defined." >&5
18934 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18935 which seems to be undefined. Please make sure it is defined." >&2;}
18937 rm -f "$tmp/stdin"
18938 case $ac_file in
18939 -) cat "$tmp/out" && rm -f "$tmp/out";;
18940 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18941 esac \
18942 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18943 $as_echo "$as_me: error: could not create $ac_file" >&2;}
18944 { (exit 1); exit 1; }; }
18948 # CONFIG_HEADER
18950 if test x"$ac_file" != x-; then
18952 $as_echo "/* $configure_input */" \
18953 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18954 } >"$tmp/config.h" \
18955 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18956 $as_echo "$as_me: error: could not create $ac_file" >&2;}
18957 { (exit 1); exit 1; }; }
18958 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18959 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18960 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18961 else
18962 rm -f "$ac_file"
18963 mv "$tmp/config.h" "$ac_file" \
18964 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18965 $as_echo "$as_me: error: could not create $ac_file" >&2;}
18966 { (exit 1); exit 1; }; }
18968 else
18969 $as_echo "/* $configure_input */" \
18970 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18971 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
18972 $as_echo "$as_me: error: could not create -" >&2;}
18973 { (exit 1); exit 1; }; }
18978 esac
18980 done # for ac_tag
18983 { (exit 0); exit 0; }
18984 _ACEOF
18985 chmod +x $CONFIG_STATUS
18986 ac_clean_files=$ac_clean_files_save
18988 test $ac_write_fail = 0 ||
18989 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
18990 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
18991 { (exit 1); exit 1; }; }
18994 # configure is writing to config.log, and then calls config.status.
18995 # config.status does its own redirection, appending to config.log.
18996 # Unfortunately, on DOS this fails, as config.log is still kept open
18997 # by configure, so config.status won't be able to write to it; its
18998 # output is simply discarded. So we exec the FD to /dev/null,
18999 # effectively closing config.log, so it can be properly (re)opened and
19000 # appended to by config.status. When coming back to configure, we
19001 # need to make the FD available again.
19002 if test "$no_create" != yes; then
19003 ac_cs_success=:
19004 ac_config_status_args=
19005 test "$silent" = yes &&
19006 ac_config_status_args="$ac_config_status_args --quiet"
19007 exec 5>/dev/null
19008 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19009 exec 5>>auto/config.log
19010 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19011 # would make configure fail if this is the last instruction.
19012 $ac_cs_success || { (exit 1); exit 1; }
19014 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19015 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19016 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}