Merged from the latest developing branch.
[MacVim.git] / src / auto / configure
blob85d7da56413514dea1dc2c2d78f267b9f7867f1e
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 CPP_MM
722 STRIP
724 EGREP
725 GREP
727 OBJEXT
728 EXEEXT
729 ac_ct_CC
730 CPPFLAGS
731 LDFLAGS
732 CFLAGS
734 SET_MAKE
735 target_alias
736 host_alias
737 build_alias
738 LIBS
739 ECHO_T
740 ECHO_N
741 ECHO_C
742 DEFS
743 mandir
744 localedir
745 libdir
746 psdir
747 pdfdir
748 dvidir
749 htmldir
750 infodir
751 docdir
752 oldincludedir
753 includedir
754 localstatedir
755 sharedstatedir
756 sysconfdir
757 datadir
758 datarootdir
759 libexecdir
760 sbindir
761 bindir
762 program_transform_name
763 prefix
764 exec_prefix
765 PACKAGE_BUGREPORT
766 PACKAGE_STRING
767 PACKAGE_VERSION
768 PACKAGE_TARNAME
769 PACKAGE_NAME
770 PATH_SEPARATOR
771 SHELL'
772 ac_subst_files=''
773 ac_user_opts='
774 enable_option_checking
775 enable_darwin
776 with_mac_arch
777 with_local_dir
778 with_vim_name
779 with_ex_name
780 with_view_name
781 with_global_runtime
782 with_modified_by
783 enable_selinux
784 with_features
785 with_compiledby
786 enable_xsmp
787 enable_xsmp_interact
788 enable_mzschemeinterp
789 with_plthome
790 enable_perlinterp
791 enable_pythoninterp
792 with_python_config_dir
793 enable_tclinterp
794 with_tclsh
795 enable_rubyinterp
796 enable_cscope
797 enable_workshop
798 enable_netbeans
799 enable_sniff
800 enable_multibyte
801 enable_hangulinput
802 enable_xim
803 enable_fontset
804 with_x
805 enable_gui
806 enable_gtk_check
807 enable_gtk2_check
808 enable_gnome_check
809 enable_motif_check
810 enable_athena_check
811 enable_nextaw_check
812 enable_carbon_check
813 with_gtk_prefix
814 with_gtk_exec_prefix
815 enable_gtktest
816 with_gnome_includes
817 with_gnome_libs
818 with_gnome
819 with_motif_lib
820 with_tlib
821 enable_acl
822 enable_gpm
823 enable_sysmouse
824 enable_nls
826 ac_precious_vars='build_alias
827 host_alias
828 target_alias
830 CFLAGS
831 LDFLAGS
832 LIBS
833 CPPFLAGS
835 XMKMF'
838 # Initialize some variables set by options.
839 ac_init_help=
840 ac_init_version=false
841 ac_unrecognized_opts=
842 ac_unrecognized_sep=
843 # The variables have the same names as the options, with
844 # dashes changed to underlines.
845 cache_file=/dev/null
846 exec_prefix=NONE
847 no_create=
848 no_recursion=
849 prefix=NONE
850 program_prefix=NONE
851 program_suffix=NONE
852 program_transform_name=s,x,x,
853 silent=
854 site=
855 srcdir=
856 verbose=
857 x_includes=NONE
858 x_libraries=NONE
860 # Installation directory options.
861 # These are left unexpanded so users can "make install exec_prefix=/foo"
862 # and all the variables that are supposed to be based on exec_prefix
863 # by default will actually change.
864 # Use braces instead of parens because sh, perl, etc. also accept them.
865 # (The list follows the same order as the GNU Coding Standards.)
866 bindir='${exec_prefix}/bin'
867 sbindir='${exec_prefix}/sbin'
868 libexecdir='${exec_prefix}/libexec'
869 datarootdir='${prefix}/share'
870 datadir='${datarootdir}'
871 sysconfdir='${prefix}/etc'
872 sharedstatedir='${prefix}/com'
873 localstatedir='${prefix}/var'
874 includedir='${prefix}/include'
875 oldincludedir='/usr/include'
876 docdir='${datarootdir}/doc/${PACKAGE}'
877 infodir='${datarootdir}/info'
878 htmldir='${docdir}'
879 dvidir='${docdir}'
880 pdfdir='${docdir}'
881 psdir='${docdir}'
882 libdir='${exec_prefix}/lib'
883 localedir='${datarootdir}/locale'
884 mandir='${datarootdir}/man'
886 ac_prev=
887 ac_dashdash=
888 for ac_option
890 # If the previous option needs an argument, assign it.
891 if test -n "$ac_prev"; then
892 eval $ac_prev=\$ac_option
893 ac_prev=
894 continue
897 case $ac_option in
898 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
899 *) ac_optarg=yes ;;
900 esac
902 # Accept the important Cygnus configure options, so we can diagnose typos.
904 case $ac_dashdash$ac_option in
906 ac_dashdash=yes ;;
908 -bindir | --bindir | --bindi | --bind | --bin | --bi)
909 ac_prev=bindir ;;
910 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
911 bindir=$ac_optarg ;;
913 -build | --build | --buil | --bui | --bu)
914 ac_prev=build_alias ;;
915 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
916 build_alias=$ac_optarg ;;
918 -cache-file | --cache-file | --cache-fil | --cache-fi \
919 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
920 ac_prev=cache_file ;;
921 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
922 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
923 cache_file=$ac_optarg ;;
925 --config-cache | -C)
926 cache_file=config.cache ;;
928 -datadir | --datadir | --datadi | --datad)
929 ac_prev=datadir ;;
930 -datadir=* | --datadir=* | --datadi=* | --datad=*)
931 datadir=$ac_optarg ;;
933 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
934 | --dataroo | --dataro | --datar)
935 ac_prev=datarootdir ;;
936 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
937 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
938 datarootdir=$ac_optarg ;;
940 -disable-* | --disable-*)
941 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
942 # Reject names that are not valid shell variable names.
943 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
944 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
945 { (exit 1); exit 1; }; }
946 ac_useropt_orig=$ac_useropt
947 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
948 case $ac_user_opts in
950 "enable_$ac_useropt"
951 "*) ;;
952 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
953 ac_unrecognized_sep=', ';;
954 esac
955 eval enable_$ac_useropt=no ;;
957 -docdir | --docdir | --docdi | --doc | --do)
958 ac_prev=docdir ;;
959 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
960 docdir=$ac_optarg ;;
962 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
963 ac_prev=dvidir ;;
964 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
965 dvidir=$ac_optarg ;;
967 -enable-* | --enable-*)
968 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
969 # Reject names that are not valid shell variable names.
970 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
971 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
972 { (exit 1); exit 1; }; }
973 ac_useropt_orig=$ac_useropt
974 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
975 case $ac_user_opts in
977 "enable_$ac_useropt"
978 "*) ;;
979 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
980 ac_unrecognized_sep=', ';;
981 esac
982 eval enable_$ac_useropt=\$ac_optarg ;;
984 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
985 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
986 | --exec | --exe | --ex)
987 ac_prev=exec_prefix ;;
988 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
989 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
990 | --exec=* | --exe=* | --ex=*)
991 exec_prefix=$ac_optarg ;;
993 -gas | --gas | --ga | --g)
994 # Obsolete; use --with-gas.
995 with_gas=yes ;;
997 -help | --help | --hel | --he | -h)
998 ac_init_help=long ;;
999 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1000 ac_init_help=recursive ;;
1001 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1002 ac_init_help=short ;;
1004 -host | --host | --hos | --ho)
1005 ac_prev=host_alias ;;
1006 -host=* | --host=* | --hos=* | --ho=*)
1007 host_alias=$ac_optarg ;;
1009 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1010 ac_prev=htmldir ;;
1011 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1012 | --ht=*)
1013 htmldir=$ac_optarg ;;
1015 -includedir | --includedir | --includedi | --included | --include \
1016 | --includ | --inclu | --incl | --inc)
1017 ac_prev=includedir ;;
1018 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1019 | --includ=* | --inclu=* | --incl=* | --inc=*)
1020 includedir=$ac_optarg ;;
1022 -infodir | --infodir | --infodi | --infod | --info | --inf)
1023 ac_prev=infodir ;;
1024 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1025 infodir=$ac_optarg ;;
1027 -libdir | --libdir | --libdi | --libd)
1028 ac_prev=libdir ;;
1029 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1030 libdir=$ac_optarg ;;
1032 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1033 | --libexe | --libex | --libe)
1034 ac_prev=libexecdir ;;
1035 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1036 | --libexe=* | --libex=* | --libe=*)
1037 libexecdir=$ac_optarg ;;
1039 -localedir | --localedir | --localedi | --localed | --locale)
1040 ac_prev=localedir ;;
1041 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1042 localedir=$ac_optarg ;;
1044 -localstatedir | --localstatedir | --localstatedi | --localstated \
1045 | --localstate | --localstat | --localsta | --localst | --locals)
1046 ac_prev=localstatedir ;;
1047 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1048 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1049 localstatedir=$ac_optarg ;;
1051 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1052 ac_prev=mandir ;;
1053 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1054 mandir=$ac_optarg ;;
1056 -nfp | --nfp | --nf)
1057 # Obsolete; use --without-fp.
1058 with_fp=no ;;
1060 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1061 | --no-cr | --no-c | -n)
1062 no_create=yes ;;
1064 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1065 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1066 no_recursion=yes ;;
1068 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1069 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1070 | --oldin | --oldi | --old | --ol | --o)
1071 ac_prev=oldincludedir ;;
1072 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1073 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1074 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1075 oldincludedir=$ac_optarg ;;
1077 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1078 ac_prev=prefix ;;
1079 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1080 prefix=$ac_optarg ;;
1082 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1083 | --program-pre | --program-pr | --program-p)
1084 ac_prev=program_prefix ;;
1085 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1086 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1087 program_prefix=$ac_optarg ;;
1089 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1090 | --program-suf | --program-su | --program-s)
1091 ac_prev=program_suffix ;;
1092 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1093 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1094 program_suffix=$ac_optarg ;;
1096 -program-transform-name | --program-transform-name \
1097 | --program-transform-nam | --program-transform-na \
1098 | --program-transform-n | --program-transform- \
1099 | --program-transform | --program-transfor \
1100 | --program-transfo | --program-transf \
1101 | --program-trans | --program-tran \
1102 | --progr-tra | --program-tr | --program-t)
1103 ac_prev=program_transform_name ;;
1104 -program-transform-name=* | --program-transform-name=* \
1105 | --program-transform-nam=* | --program-transform-na=* \
1106 | --program-transform-n=* | --program-transform-=* \
1107 | --program-transform=* | --program-transfor=* \
1108 | --program-transfo=* | --program-transf=* \
1109 | --program-trans=* | --program-tran=* \
1110 | --progr-tra=* | --program-tr=* | --program-t=*)
1111 program_transform_name=$ac_optarg ;;
1113 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1114 ac_prev=pdfdir ;;
1115 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1116 pdfdir=$ac_optarg ;;
1118 -psdir | --psdir | --psdi | --psd | --ps)
1119 ac_prev=psdir ;;
1120 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1121 psdir=$ac_optarg ;;
1123 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1124 | -silent | --silent | --silen | --sile | --sil)
1125 silent=yes ;;
1127 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1128 ac_prev=sbindir ;;
1129 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1130 | --sbi=* | --sb=*)
1131 sbindir=$ac_optarg ;;
1133 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1134 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1135 | --sharedst | --shareds | --shared | --share | --shar \
1136 | --sha | --sh)
1137 ac_prev=sharedstatedir ;;
1138 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1139 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1140 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1141 | --sha=* | --sh=*)
1142 sharedstatedir=$ac_optarg ;;
1144 -site | --site | --sit)
1145 ac_prev=site ;;
1146 -site=* | --site=* | --sit=*)
1147 site=$ac_optarg ;;
1149 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1150 ac_prev=srcdir ;;
1151 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1152 srcdir=$ac_optarg ;;
1154 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1155 | --syscon | --sysco | --sysc | --sys | --sy)
1156 ac_prev=sysconfdir ;;
1157 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1158 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1159 sysconfdir=$ac_optarg ;;
1161 -target | --target | --targe | --targ | --tar | --ta | --t)
1162 ac_prev=target_alias ;;
1163 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1164 target_alias=$ac_optarg ;;
1166 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1167 verbose=yes ;;
1169 -version | --version | --versio | --versi | --vers | -V)
1170 ac_init_version=: ;;
1172 -with-* | --with-*)
1173 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1174 # Reject names that are not valid shell variable names.
1175 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1176 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1177 { (exit 1); exit 1; }; }
1178 ac_useropt_orig=$ac_useropt
1179 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1180 case $ac_user_opts in
1182 "with_$ac_useropt"
1183 "*) ;;
1184 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1185 ac_unrecognized_sep=', ';;
1186 esac
1187 eval with_$ac_useropt=\$ac_optarg ;;
1189 -without-* | --without-*)
1190 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1191 # Reject names that are not valid shell variable names.
1192 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1193 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1194 { (exit 1); exit 1; }; }
1195 ac_useropt_orig=$ac_useropt
1196 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1197 case $ac_user_opts in
1199 "with_$ac_useropt"
1200 "*) ;;
1201 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1202 ac_unrecognized_sep=', ';;
1203 esac
1204 eval with_$ac_useropt=no ;;
1206 --x)
1207 # Obsolete; use --with-x.
1208 with_x=yes ;;
1210 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1211 | --x-incl | --x-inc | --x-in | --x-i)
1212 ac_prev=x_includes ;;
1213 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1214 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1215 x_includes=$ac_optarg ;;
1217 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1218 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1219 ac_prev=x_libraries ;;
1220 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1221 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1222 x_libraries=$ac_optarg ;;
1224 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1225 Try \`$0 --help' for more information." >&2
1226 { (exit 1); exit 1; }; }
1229 *=*)
1230 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1231 # Reject names that are not valid shell variable names.
1232 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1233 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1234 { (exit 1); exit 1; }; }
1235 eval $ac_envvar=\$ac_optarg
1236 export $ac_envvar ;;
1239 # FIXME: should be removed in autoconf 3.0.
1240 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1241 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1242 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1243 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1246 esac
1247 done
1249 if test -n "$ac_prev"; then
1250 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1251 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1252 { (exit 1); exit 1; }; }
1255 if test -n "$ac_unrecognized_opts"; then
1256 case $enable_option_checking in
1257 no) ;;
1258 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1259 { (exit 1); exit 1; }; } ;;
1260 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1261 esac
1264 # Check all directory arguments for consistency.
1265 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1266 datadir sysconfdir sharedstatedir localstatedir includedir \
1267 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1268 libdir localedir mandir
1270 eval ac_val=\$$ac_var
1271 # Remove trailing slashes.
1272 case $ac_val in
1273 */ )
1274 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1275 eval $ac_var=\$ac_val;;
1276 esac
1277 # Be sure to have absolute directory names.
1278 case $ac_val in
1279 [\\/$]* | ?:[\\/]* ) continue;;
1280 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1281 esac
1282 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1283 { (exit 1); exit 1; }; }
1284 done
1286 # There might be people who depend on the old broken behavior: `$host'
1287 # used to hold the argument of --host etc.
1288 # FIXME: To remove some day.
1289 build=$build_alias
1290 host=$host_alias
1291 target=$target_alias
1293 # FIXME: To remove some day.
1294 if test "x$host_alias" != x; then
1295 if test "x$build_alias" = x; then
1296 cross_compiling=maybe
1297 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1298 If a cross compiler is detected then cross compile mode will be used." >&2
1299 elif test "x$build_alias" != "x$host_alias"; then
1300 cross_compiling=yes
1304 ac_tool_prefix=
1305 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1307 test "$silent" = yes && exec 6>/dev/null
1310 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1311 ac_ls_di=`ls -di .` &&
1312 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1313 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1314 { (exit 1); exit 1; }; }
1315 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1316 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1317 { (exit 1); exit 1; }; }
1320 # Find the source files, if location was not specified.
1321 if test -z "$srcdir"; then
1322 ac_srcdir_defaulted=yes
1323 # Try the directory containing this script, then the parent directory.
1324 ac_confdir=`$as_dirname -- "$as_myself" ||
1325 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1326 X"$as_myself" : 'X\(//\)[^/]' \| \
1327 X"$as_myself" : 'X\(//\)$' \| \
1328 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1329 $as_echo X"$as_myself" |
1330 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1331 s//\1/
1334 /^X\(\/\/\)[^/].*/{
1335 s//\1/
1338 /^X\(\/\/\)$/{
1339 s//\1/
1342 /^X\(\/\).*/{
1343 s//\1/
1346 s/.*/./; q'`
1347 srcdir=$ac_confdir
1348 if test ! -r "$srcdir/$ac_unique_file"; then
1349 srcdir=..
1351 else
1352 ac_srcdir_defaulted=no
1354 if test ! -r "$srcdir/$ac_unique_file"; then
1355 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1356 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1357 { (exit 1); exit 1; }; }
1359 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1360 ac_abs_confdir=`(
1361 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1362 { (exit 1); exit 1; }; }
1363 pwd)`
1364 # When building in place, set srcdir=.
1365 if test "$ac_abs_confdir" = "$ac_pwd"; then
1366 srcdir=.
1368 # Remove unnecessary trailing slashes from srcdir.
1369 # Double slashes in file names in object file debugging info
1370 # mess up M-x gdb in Emacs.
1371 case $srcdir in
1372 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1373 esac
1374 for ac_var in $ac_precious_vars; do
1375 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1376 eval ac_env_${ac_var}_value=\$${ac_var}
1377 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1378 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1379 done
1382 # Report the --help message.
1384 if test "$ac_init_help" = "long"; then
1385 # Omit some internal or obsolete options to make the list less imposing.
1386 # This message is too long to be a string in the A/UX 3.1 sh.
1387 cat <<_ACEOF
1388 \`configure' configures this package to adapt to many kinds of systems.
1390 Usage: $0 [OPTION]... [VAR=VALUE]...
1392 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1393 VAR=VALUE. See below for descriptions of some of the useful variables.
1395 Defaults for the options are specified in brackets.
1397 Configuration:
1398 -h, --help display this help and exit
1399 --help=short display options specific to this package
1400 --help=recursive display the short help of all the included packages
1401 -V, --version display version information and exit
1402 -q, --quiet, --silent do not print \`checking...' messages
1403 --cache-file=FILE cache test results in FILE [disabled]
1404 -C, --config-cache alias for \`--cache-file=config.cache'
1405 -n, --no-create do not create output files
1406 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1408 Installation directories:
1409 --prefix=PREFIX install architecture-independent files in PREFIX
1410 [$ac_default_prefix]
1411 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1412 [PREFIX]
1414 By default, \`make install' will install all the files in
1415 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1416 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1417 for instance \`--prefix=\$HOME'.
1419 For better control, use the options below.
1421 Fine tuning of the installation directories:
1422 --bindir=DIR user executables [EPREFIX/bin]
1423 --sbindir=DIR system admin executables [EPREFIX/sbin]
1424 --libexecdir=DIR program executables [EPREFIX/libexec]
1425 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1426 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1427 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1428 --libdir=DIR object code libraries [EPREFIX/lib]
1429 --includedir=DIR C header files [PREFIX/include]
1430 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1431 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1432 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1433 --infodir=DIR info documentation [DATAROOTDIR/info]
1434 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1435 --mandir=DIR man documentation [DATAROOTDIR/man]
1436 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1437 --htmldir=DIR html documentation [DOCDIR]
1438 --dvidir=DIR dvi documentation [DOCDIR]
1439 --pdfdir=DIR pdf documentation [DOCDIR]
1440 --psdir=DIR ps documentation [DOCDIR]
1441 _ACEOF
1443 cat <<\_ACEOF
1445 X features:
1446 --x-includes=DIR X include files are in DIR
1447 --x-libraries=DIR X library files are in DIR
1448 _ACEOF
1451 if test -n "$ac_init_help"; then
1453 cat <<\_ACEOF
1455 Optional Features:
1456 --disable-option-checking ignore unrecognized --enable/--with options
1457 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1458 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1459 --disable-darwin Disable Darwin (Mac OS X) support.
1460 --disable-selinux Don't check for SELinux support.
1461 --disable-xsmp Disable XSMP session management
1462 --disable-xsmp-interact Disable XSMP interaction
1463 --enable-mzschemeinterp Include MzScheme interpreter.
1464 --enable-perlinterp Include Perl interpreter.
1465 --enable-pythoninterp Include Python interpreter.
1466 --enable-tclinterp Include Tcl interpreter.
1467 --enable-rubyinterp Include Ruby interpreter.
1468 --enable-cscope Include cscope interface.
1469 --enable-workshop Include Sun Visual Workshop support.
1470 --disable-netbeans Disable NetBeans integration support.
1471 --enable-sniff Include Sniff interface.
1472 --enable-multibyte Include multibyte editing support.
1473 --enable-hangulinput Include Hangul input support.
1474 --enable-xim Include XIM input support.
1475 --enable-fontset Include X fontset output support.
1476 --enable-gui=OPTS X11 GUI default=auto OPTS=auto/no/gtk/gtk2/gnome/gnome2/motif/athena/neXtaw/photon/carbon
1477 --enable-gtk-check If auto-select GUI, check for GTK default=yes
1478 --enable-gtk2-check If GTK GUI, check for GTK+ 2 default=yes
1479 --enable-gnome-check If GTK GUI, check for GNOME default=no
1480 --enable-motif-check If auto-select GUI, check for Motif default=yes
1481 --enable-athena-check If auto-select GUI, check for Athena default=yes
1482 --enable-nextaw-check If auto-select GUI, check for neXtaw default=yes
1483 --enable-carbon-check If auto-select GUI, check for Carbon default=yes
1484 --disable-gtktest Do not try to compile and run a test GTK program
1485 --disable-acl Don't check for ACL support.
1486 --disable-gpm Don't use gpm (Linux mouse daemon).
1487 --disable-sysmouse Don't use sysmouse (mouse in *BSD console).
1488 --disable-nls Don't support NLS (gettext()).
1490 Optional Packages:
1491 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1492 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1493 --with-mac-arch=ARCH current, intel, ppc or both
1494 --with-local-dir=PATH search PATH instead of /usr/local for local libraries.
1495 --without-local-dir do not search /usr/local for local libraries.
1496 --with-vim-name=NAME what to call the Vim executable
1497 --with-ex-name=NAME what to call the Ex executable
1498 --with-view-name=NAME what to call the View executable
1499 --with-global-runtime=DIR global runtime directory in 'runtimepath'
1500 --with-modified-by=NAME name of who modified a release version
1501 --with-features=TYPE tiny, small, normal, big or huge (default: normal)
1502 --with-compiledby=NAME name to show in :version message
1503 --with-plthome=PLTHOME Use PLTHOME.
1504 --with-python-config-dir=PATH Python's config directory
1505 --with-tclsh=PATH which tclsh to use (default: tclsh8.0)
1506 --with-x use the X Window System
1507 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1508 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1509 --with-gnome-includes=DIR Specify location of GNOME headers
1510 --with-gnome-libs=DIR Specify location of GNOME libs
1511 --with-gnome Specify prefix for GNOME files
1512 --with-motif-lib=STRING Library for Motif
1513 --with-tlib=library terminal library to be used
1515 Some influential environment variables:
1516 CC C compiler command
1517 CFLAGS C compiler flags
1518 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1519 nonstandard directory <lib dir>
1520 LIBS libraries to pass to the linker, e.g. -l<library>
1521 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1522 you have headers in a nonstandard directory <include dir>
1523 CPP C preprocessor
1524 XMKMF Path to xmkmf, Makefile generator for X Window System
1526 Use these variables to override the choices made by `configure' or to help
1527 it to find libraries and programs with nonstandard names/locations.
1529 _ACEOF
1530 ac_status=$?
1533 if test "$ac_init_help" = "recursive"; then
1534 # If there are subdirs, report their specific --help.
1535 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1536 test -d "$ac_dir" ||
1537 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1538 continue
1539 ac_builddir=.
1541 case "$ac_dir" in
1542 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1544 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1545 # A ".." for each directory in $ac_dir_suffix.
1546 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1547 case $ac_top_builddir_sub in
1548 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1549 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1550 esac ;;
1551 esac
1552 ac_abs_top_builddir=$ac_pwd
1553 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1554 # for backward compatibility:
1555 ac_top_builddir=$ac_top_build_prefix
1557 case $srcdir in
1558 .) # We are building in place.
1559 ac_srcdir=.
1560 ac_top_srcdir=$ac_top_builddir_sub
1561 ac_abs_top_srcdir=$ac_pwd ;;
1562 [\\/]* | ?:[\\/]* ) # Absolute name.
1563 ac_srcdir=$srcdir$ac_dir_suffix;
1564 ac_top_srcdir=$srcdir
1565 ac_abs_top_srcdir=$srcdir ;;
1566 *) # Relative name.
1567 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1568 ac_top_srcdir=$ac_top_build_prefix$srcdir
1569 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1570 esac
1571 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1573 cd "$ac_dir" || { ac_status=$?; continue; }
1574 # Check for guested configure.
1575 if test -f "$ac_srcdir/configure.gnu"; then
1576 echo &&
1577 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1578 elif test -f "$ac_srcdir/configure"; then
1579 echo &&
1580 $SHELL "$ac_srcdir/configure" --help=recursive
1581 else
1582 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1583 fi || ac_status=$?
1584 cd "$ac_pwd" || { ac_status=$?; break; }
1585 done
1588 test -n "$ac_init_help" && exit $ac_status
1589 if $ac_init_version; then
1590 cat <<\_ACEOF
1591 configure
1592 generated by GNU Autoconf 2.63
1594 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1595 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1596 This configure script is free software; the Free Software Foundation
1597 gives unlimited permission to copy, distribute and modify it.
1598 _ACEOF
1599 exit
1601 cat >auto/config.log <<_ACEOF
1602 This file contains any messages produced by compilers while
1603 running configure, to aid debugging if configure makes a mistake.
1605 It was created by $as_me, which was
1606 generated by GNU Autoconf 2.63. Invocation command line was
1608 $ $0 $@
1610 _ACEOF
1611 exec 5>>auto/config.log
1613 cat <<_ASUNAME
1614 ## --------- ##
1615 ## Platform. ##
1616 ## --------- ##
1618 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1619 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1620 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1621 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1622 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1624 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1625 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1627 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1628 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1629 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1630 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1631 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1632 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1633 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1635 _ASUNAME
1637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1638 for as_dir in $PATH
1640 IFS=$as_save_IFS
1641 test -z "$as_dir" && as_dir=.
1642 $as_echo "PATH: $as_dir"
1643 done
1644 IFS=$as_save_IFS
1646 } >&5
1648 cat >&5 <<_ACEOF
1651 ## ----------- ##
1652 ## Core tests. ##
1653 ## ----------- ##
1655 _ACEOF
1658 # Keep a trace of the command line.
1659 # Strip out --no-create and --no-recursion so they do not pile up.
1660 # Strip out --silent because we don't want to record it for future runs.
1661 # Also quote any args containing shell meta-characters.
1662 # Make two passes to allow for proper duplicate-argument suppression.
1663 ac_configure_args=
1664 ac_configure_args0=
1665 ac_configure_args1=
1666 ac_must_keep_next=false
1667 for ac_pass in 1 2
1669 for ac_arg
1671 case $ac_arg in
1672 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1673 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1674 | -silent | --silent | --silen | --sile | --sil)
1675 continue ;;
1676 *\'*)
1677 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1678 esac
1679 case $ac_pass in
1680 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1682 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1683 if test $ac_must_keep_next = true; then
1684 ac_must_keep_next=false # Got value, back to normal.
1685 else
1686 case $ac_arg in
1687 *=* | --config-cache | -C | -disable-* | --disable-* \
1688 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1689 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1690 | -with-* | --with-* | -without-* | --without-* | --x)
1691 case "$ac_configure_args0 " in
1692 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1693 esac
1695 -* ) ac_must_keep_next=true ;;
1696 esac
1698 ac_configure_args="$ac_configure_args '$ac_arg'"
1700 esac
1701 done
1702 done
1703 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1704 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1706 # When interrupted or exit'd, cleanup temporary files, and complete
1707 # config.log. We remove comments because anyway the quotes in there
1708 # would cause problems or look ugly.
1709 # WARNING: Use '\'' to represent an apostrophe within the trap.
1710 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1711 trap 'exit_status=$?
1712 # Save into config.log some information that might help in debugging.
1714 echo
1716 cat <<\_ASBOX
1717 ## ---------------- ##
1718 ## Cache variables. ##
1719 ## ---------------- ##
1720 _ASBOX
1721 echo
1722 # The following way of writing the cache mishandles newlines in values,
1724 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1725 eval ac_val=\$$ac_var
1726 case $ac_val in #(
1727 *${as_nl}*)
1728 case $ac_var in #(
1729 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1730 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1731 esac
1732 case $ac_var in #(
1733 _ | IFS | as_nl) ;; #(
1734 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1735 *) $as_unset $ac_var ;;
1736 esac ;;
1737 esac
1738 done
1739 (set) 2>&1 |
1740 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1741 *${as_nl}ac_space=\ *)
1742 sed -n \
1743 "s/'\''/'\''\\\\'\'''\''/g;
1744 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1745 ;; #(
1747 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1749 esac |
1750 sort
1752 echo
1754 cat <<\_ASBOX
1755 ## ----------------- ##
1756 ## Output variables. ##
1757 ## ----------------- ##
1758 _ASBOX
1759 echo
1760 for ac_var in $ac_subst_vars
1762 eval ac_val=\$$ac_var
1763 case $ac_val in
1764 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1765 esac
1766 $as_echo "$ac_var='\''$ac_val'\''"
1767 done | sort
1768 echo
1770 if test -n "$ac_subst_files"; then
1771 cat <<\_ASBOX
1772 ## ------------------- ##
1773 ## File substitutions. ##
1774 ## ------------------- ##
1775 _ASBOX
1776 echo
1777 for ac_var in $ac_subst_files
1779 eval ac_val=\$$ac_var
1780 case $ac_val in
1781 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1782 esac
1783 $as_echo "$ac_var='\''$ac_val'\''"
1784 done | sort
1785 echo
1788 if test -s confdefs.h; then
1789 cat <<\_ASBOX
1790 ## ----------- ##
1791 ## confdefs.h. ##
1792 ## ----------- ##
1793 _ASBOX
1794 echo
1795 cat confdefs.h
1796 echo
1798 test "$ac_signal" != 0 &&
1799 $as_echo "$as_me: caught signal $ac_signal"
1800 $as_echo "$as_me: exit $exit_status"
1801 } >&5
1802 rm -f core *.core core.conftest.* &&
1803 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1804 exit $exit_status
1806 for ac_signal in 1 2 13 15; do
1807 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1808 done
1809 ac_signal=0
1811 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1812 rm -f -r conftest* confdefs.h
1814 # Predefined preprocessor variables.
1816 cat >>confdefs.h <<_ACEOF
1817 #define PACKAGE_NAME "$PACKAGE_NAME"
1818 _ACEOF
1821 cat >>confdefs.h <<_ACEOF
1822 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1823 _ACEOF
1826 cat >>confdefs.h <<_ACEOF
1827 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1828 _ACEOF
1831 cat >>confdefs.h <<_ACEOF
1832 #define PACKAGE_STRING "$PACKAGE_STRING"
1833 _ACEOF
1836 cat >>confdefs.h <<_ACEOF
1837 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1838 _ACEOF
1841 # Let the site file select an alternate cache file if it wants to.
1842 # Prefer an explicitly selected file to automatically selected ones.
1843 ac_site_file1=NONE
1844 ac_site_file2=NONE
1845 if test -n "$CONFIG_SITE"; then
1846 ac_site_file1=$CONFIG_SITE
1847 elif test "x$prefix" != xNONE; then
1848 ac_site_file1=$prefix/share/config.site
1849 ac_site_file2=$prefix/etc/config.site
1850 else
1851 ac_site_file1=$ac_default_prefix/share/config.site
1852 ac_site_file2=$ac_default_prefix/etc/config.site
1854 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1856 test "x$ac_site_file" = xNONE && continue
1857 if test -r "$ac_site_file"; then
1858 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1859 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1860 sed 's/^/| /' "$ac_site_file" >&5
1861 . "$ac_site_file"
1863 done
1865 if test -r "$cache_file"; then
1866 # Some versions of bash will fail to source /dev/null (special
1867 # files actually), so we avoid doing that.
1868 if test -f "$cache_file"; then
1869 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1870 $as_echo "$as_me: loading cache $cache_file" >&6;}
1871 case $cache_file in
1872 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1873 *) . "./$cache_file";;
1874 esac
1876 else
1877 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1878 $as_echo "$as_me: creating cache $cache_file" >&6;}
1879 >$cache_file
1882 # Check that the precious variables saved in the cache have kept the same
1883 # value.
1884 ac_cache_corrupted=false
1885 for ac_var in $ac_precious_vars; do
1886 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1887 eval ac_new_set=\$ac_env_${ac_var}_set
1888 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1889 eval ac_new_val=\$ac_env_${ac_var}_value
1890 case $ac_old_set,$ac_new_set in
1891 set,)
1892 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1893 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1894 ac_cache_corrupted=: ;;
1895 ,set)
1896 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1897 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1898 ac_cache_corrupted=: ;;
1899 ,);;
1901 if test "x$ac_old_val" != "x$ac_new_val"; then
1902 # differences in whitespace do not lead to failure.
1903 ac_old_val_w=`echo x $ac_old_val`
1904 ac_new_val_w=`echo x $ac_new_val`
1905 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1906 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1907 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1908 ac_cache_corrupted=:
1909 else
1910 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1911 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1912 eval $ac_var=\$ac_old_val
1914 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1915 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1916 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1917 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1918 fi;;
1919 esac
1920 # Pass precious variables to config.status.
1921 if test "$ac_new_set" = set; then
1922 case $ac_new_val in
1923 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1924 *) ac_arg=$ac_var=$ac_new_val ;;
1925 esac
1926 case " $ac_configure_args " in
1927 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1928 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1929 esac
1931 done
1932 if $ac_cache_corrupted; then
1933 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1934 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1935 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1936 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1937 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1938 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1939 { (exit 1); exit 1; }; }
1958 ac_ext=c
1959 ac_cpp='$CPP $CPPFLAGS'
1960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1965 ac_config_headers="$ac_config_headers auto/config.h:config.h.in"
1968 cat >>confdefs.h <<\_ACEOF
1969 #define UNIX 1
1970 _ACEOF
1972 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1973 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
1974 set x ${MAKE-make}
1975 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
1976 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
1977 $as_echo_n "(cached) " >&6
1978 else
1979 cat >conftest.make <<\_ACEOF
1980 SHELL = /bin/sh
1981 all:
1982 @echo '@@@%%%=$(MAKE)=@@@%%%'
1983 _ACEOF
1984 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1985 case `${MAKE-make} -f conftest.make 2>/dev/null` in
1986 *@@@%%%=?*=@@@%%%*)
1987 eval ac_cv_prog_make_${ac_make}_set=yes;;
1989 eval ac_cv_prog_make_${ac_make}_set=no;;
1990 esac
1991 rm -f conftest.make
1993 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
1994 { $as_echo "$as_me:$LINENO: result: yes" >&5
1995 $as_echo "yes" >&6; }
1996 SET_MAKE=
1997 else
1998 { $as_echo "$as_me:$LINENO: result: no" >&5
1999 $as_echo "no" >&6; }
2000 SET_MAKE="MAKE=${MAKE-make}"
2004 ac_ext=c
2005 ac_cpp='$CPP $CPPFLAGS'
2006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2009 if test -n "$ac_tool_prefix"; then
2010 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2011 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2012 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2013 $as_echo_n "checking for $ac_word... " >&6; }
2014 if test "${ac_cv_prog_CC+set}" = set; then
2015 $as_echo_n "(cached) " >&6
2016 else
2017 if test -n "$CC"; then
2018 ac_cv_prog_CC="$CC" # Let the user override the test.
2019 else
2020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2021 for as_dir in $PATH
2023 IFS=$as_save_IFS
2024 test -z "$as_dir" && as_dir=.
2025 for ac_exec_ext in '' $ac_executable_extensions; do
2026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2027 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2028 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2029 break 2
2031 done
2032 done
2033 IFS=$as_save_IFS
2037 CC=$ac_cv_prog_CC
2038 if test -n "$CC"; then
2039 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2040 $as_echo "$CC" >&6; }
2041 else
2042 { $as_echo "$as_me:$LINENO: result: no" >&5
2043 $as_echo "no" >&6; }
2048 if test -z "$ac_cv_prog_CC"; then
2049 ac_ct_CC=$CC
2050 # Extract the first word of "gcc", so it can be a program name with args.
2051 set dummy gcc; ac_word=$2
2052 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2053 $as_echo_n "checking for $ac_word... " >&6; }
2054 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2055 $as_echo_n "(cached) " >&6
2056 else
2057 if test -n "$ac_ct_CC"; then
2058 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2059 else
2060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2061 for as_dir in $PATH
2063 IFS=$as_save_IFS
2064 test -z "$as_dir" && as_dir=.
2065 for ac_exec_ext in '' $ac_executable_extensions; do
2066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2067 ac_cv_prog_ac_ct_CC="gcc"
2068 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2069 break 2
2071 done
2072 done
2073 IFS=$as_save_IFS
2077 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2078 if test -n "$ac_ct_CC"; then
2079 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2080 $as_echo "$ac_ct_CC" >&6; }
2081 else
2082 { $as_echo "$as_me:$LINENO: result: no" >&5
2083 $as_echo "no" >&6; }
2086 if test "x$ac_ct_CC" = x; then
2087 CC=""
2088 else
2089 case $cross_compiling:$ac_tool_warned in
2090 yes:)
2091 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2092 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2093 ac_tool_warned=yes ;;
2094 esac
2095 CC=$ac_ct_CC
2097 else
2098 CC="$ac_cv_prog_CC"
2101 if test -z "$CC"; then
2102 if test -n "$ac_tool_prefix"; then
2103 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2104 set dummy ${ac_tool_prefix}cc; ac_word=$2
2105 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2106 $as_echo_n "checking for $ac_word... " >&6; }
2107 if test "${ac_cv_prog_CC+set}" = set; then
2108 $as_echo_n "(cached) " >&6
2109 else
2110 if test -n "$CC"; then
2111 ac_cv_prog_CC="$CC" # Let the user override the test.
2112 else
2113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2114 for as_dir in $PATH
2116 IFS=$as_save_IFS
2117 test -z "$as_dir" && as_dir=.
2118 for ac_exec_ext in '' $ac_executable_extensions; do
2119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2120 ac_cv_prog_CC="${ac_tool_prefix}cc"
2121 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2122 break 2
2124 done
2125 done
2126 IFS=$as_save_IFS
2130 CC=$ac_cv_prog_CC
2131 if test -n "$CC"; then
2132 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2133 $as_echo "$CC" >&6; }
2134 else
2135 { $as_echo "$as_me:$LINENO: result: no" >&5
2136 $as_echo "no" >&6; }
2142 if test -z "$CC"; then
2143 # Extract the first word of "cc", so it can be a program name with args.
2144 set dummy cc; ac_word=$2
2145 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2146 $as_echo_n "checking for $ac_word... " >&6; }
2147 if test "${ac_cv_prog_CC+set}" = set; then
2148 $as_echo_n "(cached) " >&6
2149 else
2150 if test -n "$CC"; then
2151 ac_cv_prog_CC="$CC" # Let the user override the test.
2152 else
2153 ac_prog_rejected=no
2154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2155 for as_dir in $PATH
2157 IFS=$as_save_IFS
2158 test -z "$as_dir" && as_dir=.
2159 for ac_exec_ext in '' $ac_executable_extensions; do
2160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2161 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2162 ac_prog_rejected=yes
2163 continue
2165 ac_cv_prog_CC="cc"
2166 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2167 break 2
2169 done
2170 done
2171 IFS=$as_save_IFS
2173 if test $ac_prog_rejected = yes; then
2174 # We found a bogon in the path, so make sure we never use it.
2175 set dummy $ac_cv_prog_CC
2176 shift
2177 if test $# != 0; then
2178 # We chose a different compiler from the bogus one.
2179 # However, it has the same basename, so the bogon will be chosen
2180 # first if we set CC to just the basename; use the full file name.
2181 shift
2182 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2187 CC=$ac_cv_prog_CC
2188 if test -n "$CC"; then
2189 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2190 $as_echo "$CC" >&6; }
2191 else
2192 { $as_echo "$as_me:$LINENO: result: no" >&5
2193 $as_echo "no" >&6; }
2198 if test -z "$CC"; then
2199 if test -n "$ac_tool_prefix"; then
2200 for ac_prog in cl.exe
2202 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2203 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2204 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2205 $as_echo_n "checking for $ac_word... " >&6; }
2206 if test "${ac_cv_prog_CC+set}" = set; then
2207 $as_echo_n "(cached) " >&6
2208 else
2209 if test -n "$CC"; then
2210 ac_cv_prog_CC="$CC" # Let the user override the test.
2211 else
2212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2213 for as_dir in $PATH
2215 IFS=$as_save_IFS
2216 test -z "$as_dir" && as_dir=.
2217 for ac_exec_ext in '' $ac_executable_extensions; do
2218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2219 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2220 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2221 break 2
2223 done
2224 done
2225 IFS=$as_save_IFS
2229 CC=$ac_cv_prog_CC
2230 if test -n "$CC"; then
2231 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2232 $as_echo "$CC" >&6; }
2233 else
2234 { $as_echo "$as_me:$LINENO: result: no" >&5
2235 $as_echo "no" >&6; }
2239 test -n "$CC" && break
2240 done
2242 if test -z "$CC"; then
2243 ac_ct_CC=$CC
2244 for ac_prog in cl.exe
2246 # Extract the first word of "$ac_prog", so it can be a program name with args.
2247 set dummy $ac_prog; ac_word=$2
2248 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2249 $as_echo_n "checking for $ac_word... " >&6; }
2250 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2251 $as_echo_n "(cached) " >&6
2252 else
2253 if test -n "$ac_ct_CC"; then
2254 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2255 else
2256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2257 for as_dir in $PATH
2259 IFS=$as_save_IFS
2260 test -z "$as_dir" && as_dir=.
2261 for ac_exec_ext in '' $ac_executable_extensions; do
2262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2263 ac_cv_prog_ac_ct_CC="$ac_prog"
2264 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2265 break 2
2267 done
2268 done
2269 IFS=$as_save_IFS
2273 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2274 if test -n "$ac_ct_CC"; then
2275 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2276 $as_echo "$ac_ct_CC" >&6; }
2277 else
2278 { $as_echo "$as_me:$LINENO: result: no" >&5
2279 $as_echo "no" >&6; }
2283 test -n "$ac_ct_CC" && break
2284 done
2286 if test "x$ac_ct_CC" = x; then
2287 CC=""
2288 else
2289 case $cross_compiling:$ac_tool_warned in
2290 yes:)
2291 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2292 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2293 ac_tool_warned=yes ;;
2294 esac
2295 CC=$ac_ct_CC
2302 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2303 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2304 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2305 See \`config.log' for more details." >&5
2306 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2307 See \`config.log' for more details." >&2;}
2308 { (exit 1); exit 1; }; }; }
2310 # Provide some information about the compiler.
2311 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2312 set X $ac_compile
2313 ac_compiler=$2
2314 { (ac_try="$ac_compiler --version >&5"
2315 case "(($ac_try" in
2316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2317 *) ac_try_echo=$ac_try;;
2318 esac
2319 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2320 $as_echo "$ac_try_echo") >&5
2321 (eval "$ac_compiler --version >&5") 2>&5
2322 ac_status=$?
2323 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2324 (exit $ac_status); }
2325 { (ac_try="$ac_compiler -v >&5"
2326 case "(($ac_try" in
2327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2328 *) ac_try_echo=$ac_try;;
2329 esac
2330 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2331 $as_echo "$ac_try_echo") >&5
2332 (eval "$ac_compiler -v >&5") 2>&5
2333 ac_status=$?
2334 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2335 (exit $ac_status); }
2336 { (ac_try="$ac_compiler -V >&5"
2337 case "(($ac_try" in
2338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2339 *) ac_try_echo=$ac_try;;
2340 esac
2341 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2342 $as_echo "$ac_try_echo") >&5
2343 (eval "$ac_compiler -V >&5") 2>&5
2344 ac_status=$?
2345 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2346 (exit $ac_status); }
2348 cat >conftest.$ac_ext <<_ACEOF
2349 /* confdefs.h. */
2350 _ACEOF
2351 cat confdefs.h >>conftest.$ac_ext
2352 cat >>conftest.$ac_ext <<_ACEOF
2353 /* end confdefs.h. */
2356 main ()
2360 return 0;
2362 _ACEOF
2363 ac_clean_files_save=$ac_clean_files
2364 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2365 # Try to create an executable without -o first, disregard a.out.
2366 # It will help us diagnose broken compilers, and finding out an intuition
2367 # of exeext.
2368 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2369 $as_echo_n "checking for C compiler default output file name... " >&6; }
2370 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2372 # The possible output files:
2373 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2375 ac_rmfiles=
2376 for ac_file in $ac_files
2378 case $ac_file in
2379 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2380 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2381 esac
2382 done
2383 rm -f $ac_rmfiles
2385 if { (ac_try="$ac_link_default"
2386 case "(($ac_try" in
2387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2388 *) ac_try_echo=$ac_try;;
2389 esac
2390 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2391 $as_echo "$ac_try_echo") >&5
2392 (eval "$ac_link_default") 2>&5
2393 ac_status=$?
2394 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395 (exit $ac_status); }; then
2396 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2397 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2398 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2399 # so that the user can short-circuit this test for compilers unknown to
2400 # Autoconf.
2401 for ac_file in $ac_files ''
2403 test -f "$ac_file" || continue
2404 case $ac_file in
2405 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2407 [ab].out )
2408 # We found the default executable, but exeext='' is most
2409 # certainly right.
2410 break;;
2411 *.* )
2412 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2413 then :; else
2414 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2416 # We set ac_cv_exeext here because the later test for it is not
2417 # safe: cross compilers may not add the suffix if given an `-o'
2418 # argument, so we may need to know it at that point already.
2419 # Even if this section looks crufty: it has the advantage of
2420 # actually working.
2421 break;;
2423 break;;
2424 esac
2425 done
2426 test "$ac_cv_exeext" = no && ac_cv_exeext=
2428 else
2429 ac_file=''
2432 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2433 $as_echo "$ac_file" >&6; }
2434 if test -z "$ac_file"; then
2435 $as_echo "$as_me: failed program was:" >&5
2436 sed 's/^/| /' conftest.$ac_ext >&5
2438 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2439 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2440 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2441 See \`config.log' for more details." >&5
2442 $as_echo "$as_me: error: C compiler cannot create executables
2443 See \`config.log' for more details." >&2;}
2444 { (exit 77); exit 77; }; }; }
2447 ac_exeext=$ac_cv_exeext
2449 # Check that the compiler produces executables we can run. If not, either
2450 # the compiler is broken, or we cross compile.
2451 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2452 $as_echo_n "checking whether the C compiler works... " >&6; }
2453 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2454 # If not cross compiling, check that we can run a simple program.
2455 if test "$cross_compiling" != yes; then
2456 if { ac_try='./$ac_file'
2457 { (case "(($ac_try" in
2458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2459 *) ac_try_echo=$ac_try;;
2460 esac
2461 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2462 $as_echo "$ac_try_echo") >&5
2463 (eval "$ac_try") 2>&5
2464 ac_status=$?
2465 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466 (exit $ac_status); }; }; then
2467 cross_compiling=no
2468 else
2469 if test "$cross_compiling" = maybe; then
2470 cross_compiling=yes
2471 else
2472 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2473 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2474 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2475 If you meant to cross compile, use \`--host'.
2476 See \`config.log' for more details." >&5
2477 $as_echo "$as_me: error: cannot run C compiled programs.
2478 If you meant to cross compile, use \`--host'.
2479 See \`config.log' for more details." >&2;}
2480 { (exit 1); exit 1; }; }; }
2484 { $as_echo "$as_me:$LINENO: result: yes" >&5
2485 $as_echo "yes" >&6; }
2487 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2488 ac_clean_files=$ac_clean_files_save
2489 # Check that the compiler produces executables we can run. If not, either
2490 # the compiler is broken, or we cross compile.
2491 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2492 $as_echo_n "checking whether we are cross compiling... " >&6; }
2493 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2494 $as_echo "$cross_compiling" >&6; }
2496 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2497 $as_echo_n "checking for suffix of executables... " >&6; }
2498 if { (ac_try="$ac_link"
2499 case "(($ac_try" in
2500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2501 *) ac_try_echo=$ac_try;;
2502 esac
2503 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2504 $as_echo "$ac_try_echo") >&5
2505 (eval "$ac_link") 2>&5
2506 ac_status=$?
2507 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508 (exit $ac_status); }; then
2509 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2510 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2511 # work properly (i.e., refer to `conftest.exe'), while it won't with
2512 # `rm'.
2513 for ac_file in conftest.exe conftest conftest.*; do
2514 test -f "$ac_file" || continue
2515 case $ac_file in
2516 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2517 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2518 break;;
2519 * ) break;;
2520 esac
2521 done
2522 else
2523 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2524 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2525 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2526 See \`config.log' for more details." >&5
2527 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2528 See \`config.log' for more details." >&2;}
2529 { (exit 1); exit 1; }; }; }
2532 rm -f conftest$ac_cv_exeext
2533 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2534 $as_echo "$ac_cv_exeext" >&6; }
2536 rm -f conftest.$ac_ext
2537 EXEEXT=$ac_cv_exeext
2538 ac_exeext=$EXEEXT
2539 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2540 $as_echo_n "checking for suffix of object files... " >&6; }
2541 if test "${ac_cv_objext+set}" = set; then
2542 $as_echo_n "(cached) " >&6
2543 else
2544 cat >conftest.$ac_ext <<_ACEOF
2545 /* confdefs.h. */
2546 _ACEOF
2547 cat confdefs.h >>conftest.$ac_ext
2548 cat >>conftest.$ac_ext <<_ACEOF
2549 /* end confdefs.h. */
2552 main ()
2556 return 0;
2558 _ACEOF
2559 rm -f conftest.o conftest.obj
2560 if { (ac_try="$ac_compile"
2561 case "(($ac_try" in
2562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2563 *) ac_try_echo=$ac_try;;
2564 esac
2565 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2566 $as_echo "$ac_try_echo") >&5
2567 (eval "$ac_compile") 2>&5
2568 ac_status=$?
2569 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570 (exit $ac_status); }; then
2571 for ac_file in conftest.o conftest.obj conftest.*; do
2572 test -f "$ac_file" || continue;
2573 case $ac_file in
2574 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2575 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2576 break;;
2577 esac
2578 done
2579 else
2580 $as_echo "$as_me: failed program was:" >&5
2581 sed 's/^/| /' conftest.$ac_ext >&5
2583 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2584 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2585 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2586 See \`config.log' for more details." >&5
2587 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2588 See \`config.log' for more details." >&2;}
2589 { (exit 1); exit 1; }; }; }
2592 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2594 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2595 $as_echo "$ac_cv_objext" >&6; }
2596 OBJEXT=$ac_cv_objext
2597 ac_objext=$OBJEXT
2598 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2599 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2600 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2601 $as_echo_n "(cached) " >&6
2602 else
2603 cat >conftest.$ac_ext <<_ACEOF
2604 /* confdefs.h. */
2605 _ACEOF
2606 cat confdefs.h >>conftest.$ac_ext
2607 cat >>conftest.$ac_ext <<_ACEOF
2608 /* end confdefs.h. */
2611 main ()
2613 #ifndef __GNUC__
2614 choke me
2615 #endif
2618 return 0;
2620 _ACEOF
2621 rm -f conftest.$ac_objext
2622 if { (ac_try="$ac_compile"
2623 case "(($ac_try" in
2624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2625 *) ac_try_echo=$ac_try;;
2626 esac
2627 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2628 $as_echo "$ac_try_echo") >&5
2629 (eval "$ac_compile") 2>conftest.er1
2630 ac_status=$?
2631 grep -v '^ *+' conftest.er1 >conftest.err
2632 rm -f conftest.er1
2633 cat conftest.err >&5
2634 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2635 (exit $ac_status); } && {
2636 test -z "$ac_c_werror_flag" ||
2637 test ! -s conftest.err
2638 } && test -s conftest.$ac_objext; then
2639 ac_compiler_gnu=yes
2640 else
2641 $as_echo "$as_me: failed program was:" >&5
2642 sed 's/^/| /' conftest.$ac_ext >&5
2644 ac_compiler_gnu=no
2647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2648 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2651 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2652 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2653 if test $ac_compiler_gnu = yes; then
2654 GCC=yes
2655 else
2656 GCC=
2658 ac_test_CFLAGS=${CFLAGS+set}
2659 ac_save_CFLAGS=$CFLAGS
2660 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2661 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2662 if test "${ac_cv_prog_cc_g+set}" = set; then
2663 $as_echo_n "(cached) " >&6
2664 else
2665 ac_save_c_werror_flag=$ac_c_werror_flag
2666 ac_c_werror_flag=yes
2667 ac_cv_prog_cc_g=no
2668 CFLAGS="-g"
2669 cat >conftest.$ac_ext <<_ACEOF
2670 /* confdefs.h. */
2671 _ACEOF
2672 cat confdefs.h >>conftest.$ac_ext
2673 cat >>conftest.$ac_ext <<_ACEOF
2674 /* end confdefs.h. */
2677 main ()
2681 return 0;
2683 _ACEOF
2684 rm -f conftest.$ac_objext
2685 if { (ac_try="$ac_compile"
2686 case "(($ac_try" in
2687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2688 *) ac_try_echo=$ac_try;;
2689 esac
2690 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2691 $as_echo "$ac_try_echo") >&5
2692 (eval "$ac_compile") 2>conftest.er1
2693 ac_status=$?
2694 grep -v '^ *+' conftest.er1 >conftest.err
2695 rm -f conftest.er1
2696 cat conftest.err >&5
2697 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698 (exit $ac_status); } && {
2699 test -z "$ac_c_werror_flag" ||
2700 test ! -s conftest.err
2701 } && test -s conftest.$ac_objext; then
2702 ac_cv_prog_cc_g=yes
2703 else
2704 $as_echo "$as_me: failed program was:" >&5
2705 sed 's/^/| /' conftest.$ac_ext >&5
2707 CFLAGS=""
2708 cat >conftest.$ac_ext <<_ACEOF
2709 /* confdefs.h. */
2710 _ACEOF
2711 cat confdefs.h >>conftest.$ac_ext
2712 cat >>conftest.$ac_ext <<_ACEOF
2713 /* end confdefs.h. */
2716 main ()
2720 return 0;
2722 _ACEOF
2723 rm -f conftest.$ac_objext
2724 if { (ac_try="$ac_compile"
2725 case "(($ac_try" in
2726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2727 *) ac_try_echo=$ac_try;;
2728 esac
2729 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2730 $as_echo "$ac_try_echo") >&5
2731 (eval "$ac_compile") 2>conftest.er1
2732 ac_status=$?
2733 grep -v '^ *+' conftest.er1 >conftest.err
2734 rm -f conftest.er1
2735 cat conftest.err >&5
2736 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737 (exit $ac_status); } && {
2738 test -z "$ac_c_werror_flag" ||
2739 test ! -s conftest.err
2740 } && test -s conftest.$ac_objext; then
2742 else
2743 $as_echo "$as_me: failed program was:" >&5
2744 sed 's/^/| /' conftest.$ac_ext >&5
2746 ac_c_werror_flag=$ac_save_c_werror_flag
2747 CFLAGS="-g"
2748 cat >conftest.$ac_ext <<_ACEOF
2749 /* confdefs.h. */
2750 _ACEOF
2751 cat confdefs.h >>conftest.$ac_ext
2752 cat >>conftest.$ac_ext <<_ACEOF
2753 /* end confdefs.h. */
2756 main ()
2760 return 0;
2762 _ACEOF
2763 rm -f conftest.$ac_objext
2764 if { (ac_try="$ac_compile"
2765 case "(($ac_try" in
2766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2767 *) ac_try_echo=$ac_try;;
2768 esac
2769 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2770 $as_echo "$ac_try_echo") >&5
2771 (eval "$ac_compile") 2>conftest.er1
2772 ac_status=$?
2773 grep -v '^ *+' conftest.er1 >conftest.err
2774 rm -f conftest.er1
2775 cat conftest.err >&5
2776 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777 (exit $ac_status); } && {
2778 test -z "$ac_c_werror_flag" ||
2779 test ! -s conftest.err
2780 } && test -s conftest.$ac_objext; then
2781 ac_cv_prog_cc_g=yes
2782 else
2783 $as_echo "$as_me: failed program was:" >&5
2784 sed 's/^/| /' conftest.$ac_ext >&5
2789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2796 ac_c_werror_flag=$ac_save_c_werror_flag
2798 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2799 $as_echo "$ac_cv_prog_cc_g" >&6; }
2800 if test "$ac_test_CFLAGS" = set; then
2801 CFLAGS=$ac_save_CFLAGS
2802 elif test $ac_cv_prog_cc_g = yes; then
2803 if test "$GCC" = yes; then
2804 CFLAGS="-g -O2"
2805 else
2806 CFLAGS="-g"
2808 else
2809 if test "$GCC" = yes; then
2810 CFLAGS="-O2"
2811 else
2812 CFLAGS=
2815 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2816 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2817 if test "${ac_cv_prog_cc_c89+set}" = set; then
2818 $as_echo_n "(cached) " >&6
2819 else
2820 ac_cv_prog_cc_c89=no
2821 ac_save_CC=$CC
2822 cat >conftest.$ac_ext <<_ACEOF
2823 /* confdefs.h. */
2824 _ACEOF
2825 cat confdefs.h >>conftest.$ac_ext
2826 cat >>conftest.$ac_ext <<_ACEOF
2827 /* end confdefs.h. */
2828 #include <stdarg.h>
2829 #include <stdio.h>
2830 #include <sys/types.h>
2831 #include <sys/stat.h>
2832 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2833 struct buf { int x; };
2834 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2835 static char *e (p, i)
2836 char **p;
2837 int i;
2839 return p[i];
2841 static char *f (char * (*g) (char **, int), char **p, ...)
2843 char *s;
2844 va_list v;
2845 va_start (v,p);
2846 s = g (p, va_arg (v,int));
2847 va_end (v);
2848 return s;
2851 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2852 function prototypes and stuff, but not '\xHH' hex character constants.
2853 These don't provoke an error unfortunately, instead are silently treated
2854 as 'x'. The following induces an error, until -std is added to get
2855 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2856 array size at least. It's necessary to write '\x00'==0 to get something
2857 that's true only with -std. */
2858 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2860 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2861 inside strings and character constants. */
2862 #define FOO(x) 'x'
2863 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2865 int test (int i, double x);
2866 struct s1 {int (*f) (int a);};
2867 struct s2 {int (*f) (double a);};
2868 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2869 int argc;
2870 char **argv;
2872 main ()
2874 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2876 return 0;
2878 _ACEOF
2879 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2880 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2882 CC="$ac_save_CC $ac_arg"
2883 rm -f conftest.$ac_objext
2884 if { (ac_try="$ac_compile"
2885 case "(($ac_try" in
2886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2887 *) ac_try_echo=$ac_try;;
2888 esac
2889 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2890 $as_echo "$ac_try_echo") >&5
2891 (eval "$ac_compile") 2>conftest.er1
2892 ac_status=$?
2893 grep -v '^ *+' conftest.er1 >conftest.err
2894 rm -f conftest.er1
2895 cat conftest.err >&5
2896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2897 (exit $ac_status); } && {
2898 test -z "$ac_c_werror_flag" ||
2899 test ! -s conftest.err
2900 } && test -s conftest.$ac_objext; then
2901 ac_cv_prog_cc_c89=$ac_arg
2902 else
2903 $as_echo "$as_me: failed program was:" >&5
2904 sed 's/^/| /' conftest.$ac_ext >&5
2909 rm -f core conftest.err conftest.$ac_objext
2910 test "x$ac_cv_prog_cc_c89" != "xno" && break
2911 done
2912 rm -f conftest.$ac_ext
2913 CC=$ac_save_CC
2916 # AC_CACHE_VAL
2917 case "x$ac_cv_prog_cc_c89" in
2919 { $as_echo "$as_me:$LINENO: result: none needed" >&5
2920 $as_echo "none needed" >&6; } ;;
2921 xno)
2922 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
2923 $as_echo "unsupported" >&6; } ;;
2925 CC="$CC $ac_cv_prog_cc_c89"
2926 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2927 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2928 esac
2931 ac_ext=c
2932 ac_cpp='$CPP $CPPFLAGS'
2933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2936 ac_ext=c
2937 ac_cpp='$CPP $CPPFLAGS'
2938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2941 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2942 $as_echo_n "checking how to run the C preprocessor... " >&6; }
2943 # On Suns, sometimes $CPP names a directory.
2944 if test -n "$CPP" && test -d "$CPP"; then
2945 CPP=
2947 if test -z "$CPP"; then
2948 if test "${ac_cv_prog_CPP+set}" = set; then
2949 $as_echo_n "(cached) " >&6
2950 else
2951 # Double quotes because CPP needs to be expanded
2952 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2954 ac_preproc_ok=false
2955 for ac_c_preproc_warn_flag in '' yes
2957 # Use a header file that comes with gcc, so configuring glibc
2958 # with a fresh cross-compiler works.
2959 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2960 # <limits.h> exists even on freestanding compilers.
2961 # On the NeXT, cc -E runs the code through the compiler's parser,
2962 # not just through cpp. "Syntax error" is here to catch this case.
2963 cat >conftest.$ac_ext <<_ACEOF
2964 /* confdefs.h. */
2965 _ACEOF
2966 cat confdefs.h >>conftest.$ac_ext
2967 cat >>conftest.$ac_ext <<_ACEOF
2968 /* end confdefs.h. */
2969 #ifdef __STDC__
2970 # include <limits.h>
2971 #else
2972 # include <assert.h>
2973 #endif
2974 Syntax error
2975 _ACEOF
2976 if { (ac_try="$ac_cpp conftest.$ac_ext"
2977 case "(($ac_try" in
2978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2979 *) ac_try_echo=$ac_try;;
2980 esac
2981 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2982 $as_echo "$ac_try_echo") >&5
2983 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2984 ac_status=$?
2985 grep -v '^ *+' conftest.er1 >conftest.err
2986 rm -f conftest.er1
2987 cat conftest.err >&5
2988 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2989 (exit $ac_status); } >/dev/null && {
2990 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2991 test ! -s conftest.err
2992 }; then
2994 else
2995 $as_echo "$as_me: failed program was:" >&5
2996 sed 's/^/| /' conftest.$ac_ext >&5
2998 # Broken: fails on valid input.
2999 continue
3002 rm -f conftest.err conftest.$ac_ext
3004 # OK, works on sane cases. Now check whether nonexistent headers
3005 # can be detected and how.
3006 cat >conftest.$ac_ext <<_ACEOF
3007 /* confdefs.h. */
3008 _ACEOF
3009 cat confdefs.h >>conftest.$ac_ext
3010 cat >>conftest.$ac_ext <<_ACEOF
3011 /* end confdefs.h. */
3012 #include <ac_nonexistent.h>
3013 _ACEOF
3014 if { (ac_try="$ac_cpp conftest.$ac_ext"
3015 case "(($ac_try" in
3016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3017 *) ac_try_echo=$ac_try;;
3018 esac
3019 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3020 $as_echo "$ac_try_echo") >&5
3021 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3022 ac_status=$?
3023 grep -v '^ *+' conftest.er1 >conftest.err
3024 rm -f conftest.er1
3025 cat conftest.err >&5
3026 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027 (exit $ac_status); } >/dev/null && {
3028 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3029 test ! -s conftest.err
3030 }; then
3031 # Broken: success on invalid input.
3032 continue
3033 else
3034 $as_echo "$as_me: failed program was:" >&5
3035 sed 's/^/| /' conftest.$ac_ext >&5
3037 # Passes both tests.
3038 ac_preproc_ok=:
3039 break
3042 rm -f conftest.err conftest.$ac_ext
3044 done
3045 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3046 rm -f conftest.err conftest.$ac_ext
3047 if $ac_preproc_ok; then
3048 break
3051 done
3052 ac_cv_prog_CPP=$CPP
3055 CPP=$ac_cv_prog_CPP
3056 else
3057 ac_cv_prog_CPP=$CPP
3059 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3060 $as_echo "$CPP" >&6; }
3061 ac_preproc_ok=false
3062 for ac_c_preproc_warn_flag in '' yes
3064 # Use a header file that comes with gcc, so configuring glibc
3065 # with a fresh cross-compiler works.
3066 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3067 # <limits.h> exists even on freestanding compilers.
3068 # On the NeXT, cc -E runs the code through the compiler's parser,
3069 # not just through cpp. "Syntax error" is here to catch this case.
3070 cat >conftest.$ac_ext <<_ACEOF
3071 /* confdefs.h. */
3072 _ACEOF
3073 cat confdefs.h >>conftest.$ac_ext
3074 cat >>conftest.$ac_ext <<_ACEOF
3075 /* end confdefs.h. */
3076 #ifdef __STDC__
3077 # include <limits.h>
3078 #else
3079 # include <assert.h>
3080 #endif
3081 Syntax error
3082 _ACEOF
3083 if { (ac_try="$ac_cpp conftest.$ac_ext"
3084 case "(($ac_try" in
3085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3086 *) ac_try_echo=$ac_try;;
3087 esac
3088 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3089 $as_echo "$ac_try_echo") >&5
3090 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3091 ac_status=$?
3092 grep -v '^ *+' conftest.er1 >conftest.err
3093 rm -f conftest.er1
3094 cat conftest.err >&5
3095 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096 (exit $ac_status); } >/dev/null && {
3097 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3098 test ! -s conftest.err
3099 }; then
3101 else
3102 $as_echo "$as_me: failed program was:" >&5
3103 sed 's/^/| /' conftest.$ac_ext >&5
3105 # Broken: fails on valid input.
3106 continue
3109 rm -f conftest.err conftest.$ac_ext
3111 # OK, works on sane cases. Now check whether nonexistent headers
3112 # can be detected and how.
3113 cat >conftest.$ac_ext <<_ACEOF
3114 /* confdefs.h. */
3115 _ACEOF
3116 cat confdefs.h >>conftest.$ac_ext
3117 cat >>conftest.$ac_ext <<_ACEOF
3118 /* end confdefs.h. */
3119 #include <ac_nonexistent.h>
3120 _ACEOF
3121 if { (ac_try="$ac_cpp conftest.$ac_ext"
3122 case "(($ac_try" in
3123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3124 *) ac_try_echo=$ac_try;;
3125 esac
3126 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3127 $as_echo "$ac_try_echo") >&5
3128 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3129 ac_status=$?
3130 grep -v '^ *+' conftest.er1 >conftest.err
3131 rm -f conftest.er1
3132 cat conftest.err >&5
3133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134 (exit $ac_status); } >/dev/null && {
3135 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3136 test ! -s conftest.err
3137 }; then
3138 # Broken: success on invalid input.
3139 continue
3140 else
3141 $as_echo "$as_me: failed program was:" >&5
3142 sed 's/^/| /' conftest.$ac_ext >&5
3144 # Passes both tests.
3145 ac_preproc_ok=:
3146 break
3149 rm -f conftest.err conftest.$ac_ext
3151 done
3152 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3153 rm -f conftest.err conftest.$ac_ext
3154 if $ac_preproc_ok; then
3156 else
3157 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3158 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3159 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3160 See \`config.log' for more details." >&5
3161 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3162 See \`config.log' for more details." >&2;}
3163 { (exit 1); exit 1; }; }; }
3166 ac_ext=c
3167 ac_cpp='$CPP $CPPFLAGS'
3168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3173 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3174 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3175 if test "${ac_cv_path_GREP+set}" = set; then
3176 $as_echo_n "(cached) " >&6
3177 else
3178 if test -z "$GREP"; then
3179 ac_path_GREP_found=false
3180 # Loop through the user's path and test for each of PROGNAME-LIST
3181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3182 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3184 IFS=$as_save_IFS
3185 test -z "$as_dir" && as_dir=.
3186 for ac_prog in grep ggrep; do
3187 for ac_exec_ext in '' $ac_executable_extensions; do
3188 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3189 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3190 # Check for GNU ac_path_GREP and select it if it is found.
3191 # Check for GNU $ac_path_GREP
3192 case `"$ac_path_GREP" --version 2>&1` in
3193 *GNU*)
3194 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3196 ac_count=0
3197 $as_echo_n 0123456789 >"conftest.in"
3198 while :
3200 cat "conftest.in" "conftest.in" >"conftest.tmp"
3201 mv "conftest.tmp" "conftest.in"
3202 cp "conftest.in" "conftest.nl"
3203 $as_echo 'GREP' >> "conftest.nl"
3204 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3205 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3206 ac_count=`expr $ac_count + 1`
3207 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3208 # Best one so far, save it but keep looking for a better one
3209 ac_cv_path_GREP="$ac_path_GREP"
3210 ac_path_GREP_max=$ac_count
3212 # 10*(2^10) chars as input seems more than enough
3213 test $ac_count -gt 10 && break
3214 done
3215 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3216 esac
3218 $ac_path_GREP_found && break 3
3219 done
3220 done
3221 done
3222 IFS=$as_save_IFS
3223 if test -z "$ac_cv_path_GREP"; then
3224 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3225 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3226 { (exit 1); exit 1; }; }
3228 else
3229 ac_cv_path_GREP=$GREP
3233 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3234 $as_echo "$ac_cv_path_GREP" >&6; }
3235 GREP="$ac_cv_path_GREP"
3238 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3239 $as_echo_n "checking for egrep... " >&6; }
3240 if test "${ac_cv_path_EGREP+set}" = set; then
3241 $as_echo_n "(cached) " >&6
3242 else
3243 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3244 then ac_cv_path_EGREP="$GREP -E"
3245 else
3246 if test -z "$EGREP"; then
3247 ac_path_EGREP_found=false
3248 # Loop through the user's path and test for each of PROGNAME-LIST
3249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3250 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3252 IFS=$as_save_IFS
3253 test -z "$as_dir" && as_dir=.
3254 for ac_prog in egrep; do
3255 for ac_exec_ext in '' $ac_executable_extensions; do
3256 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3257 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3258 # Check for GNU ac_path_EGREP and select it if it is found.
3259 # Check for GNU $ac_path_EGREP
3260 case `"$ac_path_EGREP" --version 2>&1` in
3261 *GNU*)
3262 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3264 ac_count=0
3265 $as_echo_n 0123456789 >"conftest.in"
3266 while :
3268 cat "conftest.in" "conftest.in" >"conftest.tmp"
3269 mv "conftest.tmp" "conftest.in"
3270 cp "conftest.in" "conftest.nl"
3271 $as_echo 'EGREP' >> "conftest.nl"
3272 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3273 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3274 ac_count=`expr $ac_count + 1`
3275 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3276 # Best one so far, save it but keep looking for a better one
3277 ac_cv_path_EGREP="$ac_path_EGREP"
3278 ac_path_EGREP_max=$ac_count
3280 # 10*(2^10) chars as input seems more than enough
3281 test $ac_count -gt 10 && break
3282 done
3283 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3284 esac
3286 $ac_path_EGREP_found && break 3
3287 done
3288 done
3289 done
3290 IFS=$as_save_IFS
3291 if test -z "$ac_cv_path_EGREP"; then
3292 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3293 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3294 { (exit 1); exit 1; }; }
3296 else
3297 ac_cv_path_EGREP=$EGREP
3302 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3303 $as_echo "$ac_cv_path_EGREP" >&6; }
3304 EGREP="$ac_cv_path_EGREP"
3307 cat >conftest.$ac_ext <<_ACEOF
3308 /* confdefs.h. */
3309 _ACEOF
3310 cat confdefs.h >>conftest.$ac_ext
3311 cat >>conftest.$ac_ext <<_ACEOF
3312 /* end confdefs.h. */
3314 _ACEOF
3315 rm -f conftest*
3316 { $as_echo "$as_me:$LINENO: checking for library containing strerror" >&5
3317 $as_echo_n "checking for library containing strerror... " >&6; }
3318 if test "${ac_cv_search_strerror+set}" = set; then
3319 $as_echo_n "(cached) " >&6
3320 else
3321 ac_func_search_save_LIBS=$LIBS
3322 cat >conftest.$ac_ext <<_ACEOF
3323 /* confdefs.h. */
3324 _ACEOF
3325 cat confdefs.h >>conftest.$ac_ext
3326 cat >>conftest.$ac_ext <<_ACEOF
3327 /* end confdefs.h. */
3329 /* Override any GCC internal prototype to avoid an error.
3330 Use char because int might match the return type of a GCC
3331 builtin and then its argument prototype would still apply. */
3332 #ifdef __cplusplus
3333 extern "C"
3334 #endif
3335 char strerror ();
3337 main ()
3339 return strerror ();
3341 return 0;
3343 _ACEOF
3344 for ac_lib in '' cposix; do
3345 if test -z "$ac_lib"; then
3346 ac_res="none required"
3347 else
3348 ac_res=-l$ac_lib
3349 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3351 rm -f conftest.$ac_objext conftest$ac_exeext
3352 if { (ac_try="$ac_link"
3353 case "(($ac_try" in
3354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3355 *) ac_try_echo=$ac_try;;
3356 esac
3357 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3358 $as_echo "$ac_try_echo") >&5
3359 (eval "$ac_link") 2>conftest.er1
3360 ac_status=$?
3361 grep -v '^ *+' conftest.er1 >conftest.err
3362 rm -f conftest.er1
3363 cat conftest.err >&5
3364 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365 (exit $ac_status); } && {
3366 test -z "$ac_c_werror_flag" ||
3367 test ! -s conftest.err
3368 } && test -s conftest$ac_exeext && {
3369 test "$cross_compiling" = yes ||
3370 $as_test_x conftest$ac_exeext
3371 }; then
3372 ac_cv_search_strerror=$ac_res
3373 else
3374 $as_echo "$as_me: failed program was:" >&5
3375 sed 's/^/| /' conftest.$ac_ext >&5
3380 rm -rf conftest.dSYM
3381 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3382 conftest$ac_exeext
3383 if test "${ac_cv_search_strerror+set}" = set; then
3384 break
3386 done
3387 if test "${ac_cv_search_strerror+set}" = set; then
3389 else
3390 ac_cv_search_strerror=no
3392 rm conftest.$ac_ext
3393 LIBS=$ac_func_search_save_LIBS
3395 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3396 $as_echo "$ac_cv_search_strerror" >&6; }
3397 ac_res=$ac_cv_search_strerror
3398 if test "$ac_res" != no; then
3399 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3402 for ac_prog in gawk mawk nawk awk
3404 # Extract the first word of "$ac_prog", so it can be a program name with args.
3405 set dummy $ac_prog; ac_word=$2
3406 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3407 $as_echo_n "checking for $ac_word... " >&6; }
3408 if test "${ac_cv_prog_AWK+set}" = set; then
3409 $as_echo_n "(cached) " >&6
3410 else
3411 if test -n "$AWK"; then
3412 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3413 else
3414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3415 for as_dir in $PATH
3417 IFS=$as_save_IFS
3418 test -z "$as_dir" && as_dir=.
3419 for ac_exec_ext in '' $ac_executable_extensions; do
3420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3421 ac_cv_prog_AWK="$ac_prog"
3422 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3423 break 2
3425 done
3426 done
3427 IFS=$as_save_IFS
3431 AWK=$ac_cv_prog_AWK
3432 if test -n "$AWK"; then
3433 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
3434 $as_echo "$AWK" >&6; }
3435 else
3436 { $as_echo "$as_me:$LINENO: result: no" >&5
3437 $as_echo "no" >&6; }
3441 test -n "$AWK" && break
3442 done
3444 # Extract the first word of "strip", so it can be a program name with args.
3445 set dummy strip; ac_word=$2
3446 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3447 $as_echo_n "checking for $ac_word... " >&6; }
3448 if test "${ac_cv_prog_STRIP+set}" = set; then
3449 $as_echo_n "(cached) " >&6
3450 else
3451 if test -n "$STRIP"; then
3452 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3453 else
3454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3455 for as_dir in $PATH
3457 IFS=$as_save_IFS
3458 test -z "$as_dir" && as_dir=.
3459 for ac_exec_ext in '' $ac_executable_extensions; do
3460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3461 ac_cv_prog_STRIP="strip"
3462 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3463 break 2
3465 done
3466 done
3467 IFS=$as_save_IFS
3469 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
3472 STRIP=$ac_cv_prog_STRIP
3473 if test -n "$STRIP"; then
3474 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
3475 $as_echo "$STRIP" >&6; }
3476 else
3477 { $as_echo "$as_me:$LINENO: result: no" >&5
3478 $as_echo "no" >&6; }
3485 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3486 $as_echo_n "checking for ANSI C header files... " >&6; }
3487 if test "${ac_cv_header_stdc+set}" = set; then
3488 $as_echo_n "(cached) " >&6
3489 else
3490 cat >conftest.$ac_ext <<_ACEOF
3491 /* confdefs.h. */
3492 _ACEOF
3493 cat confdefs.h >>conftest.$ac_ext
3494 cat >>conftest.$ac_ext <<_ACEOF
3495 /* end confdefs.h. */
3496 #include <stdlib.h>
3497 #include <stdarg.h>
3498 #include <string.h>
3499 #include <float.h>
3502 main ()
3506 return 0;
3508 _ACEOF
3509 rm -f conftest.$ac_objext
3510 if { (ac_try="$ac_compile"
3511 case "(($ac_try" in
3512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3513 *) ac_try_echo=$ac_try;;
3514 esac
3515 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3516 $as_echo "$ac_try_echo") >&5
3517 (eval "$ac_compile") 2>conftest.er1
3518 ac_status=$?
3519 grep -v '^ *+' conftest.er1 >conftest.err
3520 rm -f conftest.er1
3521 cat conftest.err >&5
3522 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523 (exit $ac_status); } && {
3524 test -z "$ac_c_werror_flag" ||
3525 test ! -s conftest.err
3526 } && test -s conftest.$ac_objext; then
3527 ac_cv_header_stdc=yes
3528 else
3529 $as_echo "$as_me: failed program was:" >&5
3530 sed 's/^/| /' conftest.$ac_ext >&5
3532 ac_cv_header_stdc=no
3535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3537 if test $ac_cv_header_stdc = yes; then
3538 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3539 cat >conftest.$ac_ext <<_ACEOF
3540 /* confdefs.h. */
3541 _ACEOF
3542 cat confdefs.h >>conftest.$ac_ext
3543 cat >>conftest.$ac_ext <<_ACEOF
3544 /* end confdefs.h. */
3545 #include <string.h>
3547 _ACEOF
3548 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3549 $EGREP "memchr" >/dev/null 2>&1; then
3551 else
3552 ac_cv_header_stdc=no
3554 rm -f conftest*
3558 if test $ac_cv_header_stdc = yes; then
3559 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3560 cat >conftest.$ac_ext <<_ACEOF
3561 /* confdefs.h. */
3562 _ACEOF
3563 cat confdefs.h >>conftest.$ac_ext
3564 cat >>conftest.$ac_ext <<_ACEOF
3565 /* end confdefs.h. */
3566 #include <stdlib.h>
3568 _ACEOF
3569 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3570 $EGREP "free" >/dev/null 2>&1; then
3572 else
3573 ac_cv_header_stdc=no
3575 rm -f conftest*
3579 if test $ac_cv_header_stdc = yes; then
3580 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3581 if test "$cross_compiling" = yes; then
3583 else
3584 cat >conftest.$ac_ext <<_ACEOF
3585 /* confdefs.h. */
3586 _ACEOF
3587 cat confdefs.h >>conftest.$ac_ext
3588 cat >>conftest.$ac_ext <<_ACEOF
3589 /* end confdefs.h. */
3590 #include <ctype.h>
3591 #include <stdlib.h>
3592 #if ((' ' & 0x0FF) == 0x020)
3593 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3594 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3595 #else
3596 # define ISLOWER(c) \
3597 (('a' <= (c) && (c) <= 'i') \
3598 || ('j' <= (c) && (c) <= 'r') \
3599 || ('s' <= (c) && (c) <= 'z'))
3600 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3601 #endif
3603 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3605 main ()
3607 int i;
3608 for (i = 0; i < 256; i++)
3609 if (XOR (islower (i), ISLOWER (i))
3610 || toupper (i) != TOUPPER (i))
3611 return 2;
3612 return 0;
3614 _ACEOF
3615 rm -f conftest$ac_exeext
3616 if { (ac_try="$ac_link"
3617 case "(($ac_try" in
3618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3619 *) ac_try_echo=$ac_try;;
3620 esac
3621 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3622 $as_echo "$ac_try_echo") >&5
3623 (eval "$ac_link") 2>&5
3624 ac_status=$?
3625 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3626 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3627 { (case "(($ac_try" in
3628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3629 *) ac_try_echo=$ac_try;;
3630 esac
3631 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3632 $as_echo "$ac_try_echo") >&5
3633 (eval "$ac_try") 2>&5
3634 ac_status=$?
3635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3636 (exit $ac_status); }; }; then
3638 else
3639 $as_echo "$as_me: program exited with status $ac_status" >&5
3640 $as_echo "$as_me: failed program was:" >&5
3641 sed 's/^/| /' conftest.$ac_ext >&5
3643 ( exit $ac_status )
3644 ac_cv_header_stdc=no
3646 rm -rf conftest.dSYM
3647 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3653 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3654 $as_echo "$ac_cv_header_stdc" >&6; }
3655 if test $ac_cv_header_stdc = yes; then
3657 cat >>confdefs.h <<\_ACEOF
3658 #define STDC_HEADERS 1
3659 _ACEOF
3663 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
3664 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
3665 if test "${ac_cv_header_sys_wait_h+set}" = set; then
3666 $as_echo_n "(cached) " >&6
3667 else
3668 cat >conftest.$ac_ext <<_ACEOF
3669 /* confdefs.h. */
3670 _ACEOF
3671 cat confdefs.h >>conftest.$ac_ext
3672 cat >>conftest.$ac_ext <<_ACEOF
3673 /* end confdefs.h. */
3674 #include <sys/types.h>
3675 #include <sys/wait.h>
3676 #ifndef WEXITSTATUS
3677 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
3678 #endif
3679 #ifndef WIFEXITED
3680 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3681 #endif
3684 main ()
3686 int s;
3687 wait (&s);
3688 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3690 return 0;
3692 _ACEOF
3693 rm -f conftest.$ac_objext
3694 if { (ac_try="$ac_compile"
3695 case "(($ac_try" in
3696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3697 *) ac_try_echo=$ac_try;;
3698 esac
3699 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3700 $as_echo "$ac_try_echo") >&5
3701 (eval "$ac_compile") 2>conftest.er1
3702 ac_status=$?
3703 grep -v '^ *+' conftest.er1 >conftest.err
3704 rm -f conftest.er1
3705 cat conftest.err >&5
3706 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3707 (exit $ac_status); } && {
3708 test -z "$ac_c_werror_flag" ||
3709 test ! -s conftest.err
3710 } && test -s conftest.$ac_objext; then
3711 ac_cv_header_sys_wait_h=yes
3712 else
3713 $as_echo "$as_me: failed program was:" >&5
3714 sed 's/^/| /' conftest.$ac_ext >&5
3716 ac_cv_header_sys_wait_h=no
3719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3721 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
3722 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
3723 if test $ac_cv_header_sys_wait_h = yes; then
3725 cat >>confdefs.h <<\_ACEOF
3726 #define HAVE_SYS_WAIT_H 1
3727 _ACEOF
3732 if test -z "$CFLAGS"; then
3733 CFLAGS="-O"
3734 test "$GCC" = yes && CFLAGS="-O2 -fno-strength-reduce -Wall"
3736 if test "$GCC" = yes; then
3737 gccversion=`"$CC" -dumpversion`
3738 if test "x$gccversion" = "x"; then
3739 gccversion=`"$CC" --version | sed -e '2,$d' -e 's/darwin.//' -e 's/^[^0-9]*\([0-9]\.[0-9.]*\).*$/\1/g'`
3741 if test "$gccversion" = "3.0.1" -o "$gccversion" = "3.0.2" -o "$gccversion" = "4.0.1"; then
3742 echo 'GCC [34].0.[12] has a bug in the optimizer, disabling "-O#"'
3743 CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-O/'`
3744 else
3745 if test "$gccversion" = "3.1" -o "$gccversion" = "3.2" -o "$gccversion" = "3.2.1" && `echo "$CFLAGS" | grep -v fno-strength-reduce >/dev/null`; then
3746 echo 'GCC 3.1 and 3.2 have a bug in the optimizer, adding "-fno-strength-reduce"'
3747 CFLAGS="$CFLAGS -fno-strength-reduce"
3752 if test "$cross_compiling" = yes; then
3753 { $as_echo "$as_me:$LINENO: result: cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&5
3754 $as_echo "cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&6; }
3757 test "$GCC" = yes && CPP_MM=M;
3759 if test -f ./toolcheck; then
3760 { $as_echo "$as_me:$LINENO: checking for buggy tools..." >&5
3761 $as_echo "$as_me: checking for buggy tools..." >&6;}
3762 sh ./toolcheck 1>&6
3765 OS_EXTRA_SRC=""; OS_EXTRA_OBJ=""
3767 { $as_echo "$as_me:$LINENO: checking for BeOS" >&5
3768 $as_echo_n "checking for BeOS... " >&6; }
3769 case `uname` in
3770 BeOS) OS_EXTRA_SRC=os_beos.c; OS_EXTRA_OBJ=objects/os_beos.o
3771 BEOS=yes; { $as_echo "$as_me:$LINENO: result: yes" >&5
3772 $as_echo "yes" >&6; };;
3773 *) BEOS=no; { $as_echo "$as_me:$LINENO: result: no" >&5
3774 $as_echo "no" >&6; };;
3775 esac
3777 { $as_echo "$as_me:$LINENO: checking for QNX" >&5
3778 $as_echo_n "checking for QNX... " >&6; }
3779 case `uname` in
3780 QNX) OS_EXTRA_SRC=os_qnx.c; OS_EXTRA_OBJ=objects/os_qnx.o
3781 test -z "$with_x" && with_x=no
3782 QNX=yes; { $as_echo "$as_me:$LINENO: result: yes" >&5
3783 $as_echo "yes" >&6; };;
3784 *) QNX=no; { $as_echo "$as_me:$LINENO: result: no" >&5
3785 $as_echo "no" >&6; };;
3786 esac
3788 { $as_echo "$as_me:$LINENO: checking for Darwin (Mac OS X)" >&5
3789 $as_echo_n "checking for Darwin (Mac OS X)... " >&6; }
3790 if test "`(uname) 2>/dev/null`" = Darwin; then
3791 { $as_echo "$as_me:$LINENO: result: yes" >&5
3792 $as_echo "yes" >&6; }
3794 { $as_echo "$as_me:$LINENO: checking --disable-darwin argument" >&5
3795 $as_echo_n "checking --disable-darwin argument... " >&6; }
3796 # Check whether --enable-darwin was given.
3797 if test "${enable_darwin+set}" = set; then
3798 enableval=$enable_darwin;
3799 else
3800 enable_darwin="yes"
3803 if test "$enable_darwin" = "yes"; then
3804 { $as_echo "$as_me:$LINENO: result: no" >&5
3805 $as_echo "no" >&6; }
3806 { $as_echo "$as_me:$LINENO: checking if Darwin files are there" >&5
3807 $as_echo_n "checking if Darwin files are there... " >&6; }
3808 if test -f os_macosx.c; then
3809 { $as_echo "$as_me:$LINENO: result: yes" >&5
3810 $as_echo "yes" >&6; }
3811 else
3812 { $as_echo "$as_me:$LINENO: result: no, Darwin support disabled" >&5
3813 $as_echo "no, Darwin support disabled" >&6; }
3814 enable_darwin=no
3816 else
3817 { $as_echo "$as_me:$LINENO: result: yes, Darwin support excluded" >&5
3818 $as_echo "yes, Darwin support excluded" >&6; }
3821 { $as_echo "$as_me:$LINENO: checking --with-mac-arch argument" >&5
3822 $as_echo_n "checking --with-mac-arch argument... " >&6; }
3824 # Check whether --with-mac-arch was given.
3825 if test "${with_mac_arch+set}" = set; then
3826 withval=$with_mac_arch; MACARCH="$withval"; { $as_echo "$as_me:$LINENO: result: $MACARCH" >&5
3827 $as_echo "$MACARCH" >&6; }
3828 else
3829 MACARCH="current"; { $as_echo "$as_me:$LINENO: result: defaulting to $MACARCH" >&5
3830 $as_echo "defaulting to $MACARCH" >&6; }
3834 if test "x$MACARCH" = "xboth"; then
3835 { $as_echo "$as_me:$LINENO: checking for 10.4 universal SDK" >&5
3836 $as_echo_n "checking for 10.4 universal SDK... " >&6; }
3837 save_cppflags="$CPPFLAGS"
3838 save_cflags="$CFLAGS"
3839 save_ldflags="$LDFLAGS"
3840 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc"
3841 cat >conftest.$ac_ext <<_ACEOF
3842 /* confdefs.h. */
3843 _ACEOF
3844 cat confdefs.h >>conftest.$ac_ext
3845 cat >>conftest.$ac_ext <<_ACEOF
3846 /* end confdefs.h. */
3849 main ()
3853 return 0;
3855 _ACEOF
3856 rm -f conftest.$ac_objext conftest$ac_exeext
3857 if { (ac_try="$ac_link"
3858 case "(($ac_try" in
3859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3860 *) ac_try_echo=$ac_try;;
3861 esac
3862 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3863 $as_echo "$ac_try_echo") >&5
3864 (eval "$ac_link") 2>conftest.er1
3865 ac_status=$?
3866 grep -v '^ *+' conftest.er1 >conftest.err
3867 rm -f conftest.er1
3868 cat conftest.err >&5
3869 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3870 (exit $ac_status); } && {
3871 test -z "$ac_c_werror_flag" ||
3872 test ! -s conftest.err
3873 } && test -s conftest$ac_exeext && {
3874 test "$cross_compiling" = yes ||
3875 $as_test_x conftest$ac_exeext
3876 }; then
3877 { $as_echo "$as_me:$LINENO: result: found" >&5
3878 $as_echo "found" >&6; }
3879 else
3880 $as_echo "$as_me: failed program was:" >&5
3881 sed 's/^/| /' conftest.$ac_ext >&5
3883 { $as_echo "$as_me:$LINENO: result: not found" >&5
3884 $as_echo "not found" >&6; }
3885 CFLAGS="$save_cflags"
3886 { $as_echo "$as_me:$LINENO: checking if Intel architecture is supported" >&5
3887 $as_echo_n "checking if Intel architecture is supported... " >&6; }
3888 CPPFLAGS="$CPPFLAGS -arch i386"
3889 LDFLAGS="$save_ldflags -arch i386"
3890 cat >conftest.$ac_ext <<_ACEOF
3891 /* confdefs.h. */
3892 _ACEOF
3893 cat confdefs.h >>conftest.$ac_ext
3894 cat >>conftest.$ac_ext <<_ACEOF
3895 /* end confdefs.h. */
3898 main ()
3902 return 0;
3904 _ACEOF
3905 rm -f conftest.$ac_objext conftest$ac_exeext
3906 if { (ac_try="$ac_link"
3907 case "(($ac_try" in
3908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3909 *) ac_try_echo=$ac_try;;
3910 esac
3911 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3912 $as_echo "$ac_try_echo") >&5
3913 (eval "$ac_link") 2>conftest.er1
3914 ac_status=$?
3915 grep -v '^ *+' conftest.er1 >conftest.err
3916 rm -f conftest.er1
3917 cat conftest.err >&5
3918 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3919 (exit $ac_status); } && {
3920 test -z "$ac_c_werror_flag" ||
3921 test ! -s conftest.err
3922 } && test -s conftest$ac_exeext && {
3923 test "$cross_compiling" = yes ||
3924 $as_test_x conftest$ac_exeext
3925 }; then
3926 { $as_echo "$as_me:$LINENO: result: yes" >&5
3927 $as_echo "yes" >&6; }; MACARCH="intel"
3928 else
3929 $as_echo "$as_me: failed program was:" >&5
3930 sed 's/^/| /' conftest.$ac_ext >&5
3932 { $as_echo "$as_me:$LINENO: result: no" >&5
3933 $as_echo "no" >&6; }
3934 MACARCH="ppc"
3935 CPPFLAGS="$save_cppflags -arch ppc"
3936 LDFLAGS="$save_ldflags -arch ppc"
3939 rm -rf conftest.dSYM
3940 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3941 conftest$ac_exeext conftest.$ac_ext
3944 rm -rf conftest.dSYM
3945 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3946 conftest$ac_exeext conftest.$ac_ext
3947 elif test "x$MACARCH" = "xintel"; then
3948 CPPFLAGS="$CPPFLAGS -arch intel"
3949 LDFLAGS="$LDFLAGS -arch intel"
3950 elif test "x$MACARCH" = "xppc"; then
3951 CPPFLAGS="$CPPFLAGS -arch ppc"
3952 LDFLAGS="$LDFLAGS -arch ppc"
3955 if test "$enable_darwin" = "yes"; then
3956 MACOSX=yes
3957 OS_EXTRA_SRC="os_macosx.c os_mac_conv.c";
3958 OS_EXTRA_OBJ="objects/os_macosx.o objects/os_mac_conv.o"
3959 CPPFLAGS="$CPPFLAGS -DMACOS_X_UNIX -no-cpp-precomp"
3960 if test "x$MACARCH" = "xboth"; then
3961 CPPFLAGS="$CPPFLAGS -I/Developer/SDKs/MacOSX10.4u.sdk/Developer/Headers/FlatCarbon"
3962 else
3963 CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon"
3966 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3976 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3977 inttypes.h stdint.h unistd.h
3979 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3980 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
3981 $as_echo_n "checking for $ac_header... " >&6; }
3982 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3983 $as_echo_n "(cached) " >&6
3984 else
3985 cat >conftest.$ac_ext <<_ACEOF
3986 /* confdefs.h. */
3987 _ACEOF
3988 cat confdefs.h >>conftest.$ac_ext
3989 cat >>conftest.$ac_ext <<_ACEOF
3990 /* end confdefs.h. */
3991 $ac_includes_default
3993 #include <$ac_header>
3994 _ACEOF
3995 rm -f conftest.$ac_objext
3996 if { (ac_try="$ac_compile"
3997 case "(($ac_try" in
3998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3999 *) ac_try_echo=$ac_try;;
4000 esac
4001 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4002 $as_echo "$ac_try_echo") >&5
4003 (eval "$ac_compile") 2>conftest.er1
4004 ac_status=$?
4005 grep -v '^ *+' conftest.er1 >conftest.err
4006 rm -f conftest.er1
4007 cat conftest.err >&5
4008 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4009 (exit $ac_status); } && {
4010 test -z "$ac_c_werror_flag" ||
4011 test ! -s conftest.err
4012 } && test -s conftest.$ac_objext; then
4013 eval "$as_ac_Header=yes"
4014 else
4015 $as_echo "$as_me: failed program was:" >&5
4016 sed 's/^/| /' conftest.$ac_ext >&5
4018 eval "$as_ac_Header=no"
4021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4023 ac_res=`eval 'as_val=${'$as_ac_Header'}
4024 $as_echo "$as_val"'`
4025 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4026 $as_echo "$ac_res" >&6; }
4027 as_val=`eval 'as_val=${'$as_ac_Header'}
4028 $as_echo "$as_val"'`
4029 if test "x$as_val" = x""yes; then
4030 cat >>confdefs.h <<_ACEOF
4031 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4032 _ACEOF
4036 done
4039 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
4040 { $as_echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
4041 $as_echo_n "checking for Carbon/Carbon.h... " >&6; }
4042 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
4043 $as_echo_n "(cached) " >&6
4045 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
4046 $as_echo "$ac_cv_header_Carbon_Carbon_h" >&6; }
4047 else
4048 # Is the header compilable?
4049 { $as_echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
4050 $as_echo_n "checking Carbon/Carbon.h usability... " >&6; }
4051 cat >conftest.$ac_ext <<_ACEOF
4052 /* confdefs.h. */
4053 _ACEOF
4054 cat confdefs.h >>conftest.$ac_ext
4055 cat >>conftest.$ac_ext <<_ACEOF
4056 /* end confdefs.h. */
4057 $ac_includes_default
4058 #include <Carbon/Carbon.h>
4059 _ACEOF
4060 rm -f conftest.$ac_objext
4061 if { (ac_try="$ac_compile"
4062 case "(($ac_try" in
4063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4064 *) ac_try_echo=$ac_try;;
4065 esac
4066 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4067 $as_echo "$ac_try_echo") >&5
4068 (eval "$ac_compile") 2>conftest.er1
4069 ac_status=$?
4070 grep -v '^ *+' conftest.er1 >conftest.err
4071 rm -f conftest.er1
4072 cat conftest.err >&5
4073 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4074 (exit $ac_status); } && {
4075 test -z "$ac_c_werror_flag" ||
4076 test ! -s conftest.err
4077 } && test -s conftest.$ac_objext; then
4078 ac_header_compiler=yes
4079 else
4080 $as_echo "$as_me: failed program was:" >&5
4081 sed 's/^/| /' conftest.$ac_ext >&5
4083 ac_header_compiler=no
4086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4087 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4088 $as_echo "$ac_header_compiler" >&6; }
4090 # Is the header present?
4091 { $as_echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
4092 $as_echo_n "checking Carbon/Carbon.h presence... " >&6; }
4093 cat >conftest.$ac_ext <<_ACEOF
4094 /* confdefs.h. */
4095 _ACEOF
4096 cat confdefs.h >>conftest.$ac_ext
4097 cat >>conftest.$ac_ext <<_ACEOF
4098 /* end confdefs.h. */
4099 #include <Carbon/Carbon.h>
4100 _ACEOF
4101 if { (ac_try="$ac_cpp conftest.$ac_ext"
4102 case "(($ac_try" in
4103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4104 *) ac_try_echo=$ac_try;;
4105 esac
4106 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4107 $as_echo "$ac_try_echo") >&5
4108 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4109 ac_status=$?
4110 grep -v '^ *+' conftest.er1 >conftest.err
4111 rm -f conftest.er1
4112 cat conftest.err >&5
4113 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4114 (exit $ac_status); } >/dev/null && {
4115 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4116 test ! -s conftest.err
4117 }; then
4118 ac_header_preproc=yes
4119 else
4120 $as_echo "$as_me: failed program was:" >&5
4121 sed 's/^/| /' conftest.$ac_ext >&5
4123 ac_header_preproc=no
4126 rm -f conftest.err conftest.$ac_ext
4127 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4128 $as_echo "$ac_header_preproc" >&6; }
4130 # So? What about this header?
4131 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4132 yes:no: )
4133 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
4134 $as_echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4135 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
4136 $as_echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
4137 ac_header_preproc=yes
4139 no:yes:* )
4140 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
4141 $as_echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
4142 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
4143 $as_echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
4144 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
4145 $as_echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
4146 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
4147 $as_echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
4148 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
4149 $as_echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
4150 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
4151 $as_echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
4154 esac
4155 { $as_echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
4156 $as_echo_n "checking for Carbon/Carbon.h... " >&6; }
4157 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
4158 $as_echo_n "(cached) " >&6
4159 else
4160 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
4162 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
4163 $as_echo "$ac_cv_header_Carbon_Carbon_h" >&6; }
4166 if test "x$ac_cv_header_Carbon_Carbon_h" = x""yes; then
4167 CARBON=yes
4171 if test "x$CARBON" = "xyes"; then
4172 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
4173 with_x=no
4178 if test "$MACARCH" = "intel" -o "$MACARCH" = "both"; then
4179 CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-Oz/'`
4182 else
4183 { $as_echo "$as_me:$LINENO: result: no" >&5
4184 $as_echo "no" >&6; }
4190 if test "$cross_compiling" = no; then
4191 { $as_echo "$as_me:$LINENO: checking --with-local-dir argument" >&5
4192 $as_echo_n "checking --with-local-dir argument... " >&6; }
4193 have_local_include=''
4194 have_local_lib=''
4196 # Check whether --with-local-dir was given.
4197 if test "${with_local_dir+set}" = set; then
4198 withval=$with_local_dir;
4199 local_dir="$withval"
4200 case "$withval" in
4201 */*) ;;
4203 # avoid adding local dir to LDFLAGS and CPPFLAGS
4204 have_local_dir=yes
4205 have_local_lib=yes
4207 *) { { $as_echo "$as_me:$LINENO: error: must pass path argument to --with-local-dir" >&5
4208 $as_echo "$as_me: error: must pass path argument to --with-local-dir" >&2;}
4209 { (exit 1); exit 1; }; } ;;
4210 esac
4211 { $as_echo "$as_me:$LINENO: result: $local_dir" >&5
4212 $as_echo "$local_dir" >&6; }
4214 else
4216 local_dir=/usr/local
4217 { $as_echo "$as_me:$LINENO: result: Defaulting to $local_dir" >&5
4218 $as_echo "Defaulting to $local_dir" >&6; }
4222 if test "$GCC" = yes -a "$local_dir" != no; then
4223 echo 'void f(){}' > conftest.c
4224 have_local_include=`${CC-cc} -no-cpp-precomp -c -v conftest.c 2>&1 | grep "${local_dir}/include"`
4225 have_local_lib=`${CC-cc} -c -v conftest.c 2>&1 | grep "${local_dir}/lib"`
4226 rm -f conftest.c conftest.o
4228 if test -z "$have_local_lib" -a -d "${local_dir}/lib"; then
4229 tt=`echo "$LDFLAGS" | sed -e "s+-L${local_dir}/lib ++g" -e "s+-L${local_dir}/lib$++g"`
4230 if test "$tt" = "$LDFLAGS"; then
4231 LDFLAGS="$LDFLAGS -L${local_dir}/lib"
4234 if test -z "$have_local_include" -a -d "${local_dir}/include"; then
4235 tt=`echo "$CPPFLAGS" | sed -e "s+-I${local_dir}/include ++g" -e "s+-I${local_dir}/include$++g"`
4236 if test "$tt" = "$CPPFLAGS"; then
4237 CPPFLAGS="$CPPFLAGS -I${local_dir}/include"
4242 { $as_echo "$as_me:$LINENO: checking --with-vim-name argument" >&5
4243 $as_echo_n "checking --with-vim-name argument... " >&6; }
4245 # Check whether --with-vim-name was given.
4246 if test "${with_vim_name+set}" = set; then
4247 withval=$with_vim_name; VIMNAME="$withval"; { $as_echo "$as_me:$LINENO: result: $VIMNAME" >&5
4248 $as_echo "$VIMNAME" >&6; }
4249 else
4250 VIMNAME="vim"; { $as_echo "$as_me:$LINENO: result: Defaulting to $VIMNAME" >&5
4251 $as_echo "Defaulting to $VIMNAME" >&6; }
4255 { $as_echo "$as_me:$LINENO: checking --with-ex-name argument" >&5
4256 $as_echo_n "checking --with-ex-name argument... " >&6; }
4258 # Check whether --with-ex-name was given.
4259 if test "${with_ex_name+set}" = set; then
4260 withval=$with_ex_name; EXNAME="$withval"; { $as_echo "$as_me:$LINENO: result: $EXNAME" >&5
4261 $as_echo "$EXNAME" >&6; }
4262 else
4263 EXNAME="ex"; { $as_echo "$as_me:$LINENO: result: Defaulting to ex" >&5
4264 $as_echo "Defaulting to ex" >&6; }
4268 { $as_echo "$as_me:$LINENO: checking --with-view-name argument" >&5
4269 $as_echo_n "checking --with-view-name argument... " >&6; }
4271 # Check whether --with-view-name was given.
4272 if test "${with_view_name+set}" = set; then
4273 withval=$with_view_name; VIEWNAME="$withval"; { $as_echo "$as_me:$LINENO: result: $VIEWNAME" >&5
4274 $as_echo "$VIEWNAME" >&6; }
4275 else
4276 VIEWNAME="view"; { $as_echo "$as_me:$LINENO: result: Defaulting to view" >&5
4277 $as_echo "Defaulting to view" >&6; }
4282 { $as_echo "$as_me:$LINENO: checking --with-global-runtime argument" >&5
4283 $as_echo_n "checking --with-global-runtime argument... " >&6; }
4285 # Check whether --with-global-runtime was given.
4286 if test "${with_global_runtime+set}" = set; then
4287 withval=$with_global_runtime; { $as_echo "$as_me:$LINENO: result: $withval" >&5
4288 $as_echo "$withval" >&6; }; cat >>confdefs.h <<_ACEOF
4289 #define RUNTIME_GLOBAL "$withval"
4290 _ACEOF
4292 else
4293 { $as_echo "$as_me:$LINENO: result: no" >&5
4294 $as_echo "no" >&6; }
4298 { $as_echo "$as_me:$LINENO: checking --with-modified-by argument" >&5
4299 $as_echo_n "checking --with-modified-by argument... " >&6; }
4301 # Check whether --with-modified-by was given.
4302 if test "${with_modified_by+set}" = set; then
4303 withval=$with_modified_by; { $as_echo "$as_me:$LINENO: result: $withval" >&5
4304 $as_echo "$withval" >&6; }; cat >>confdefs.h <<_ACEOF
4305 #define MODIFIED_BY "$withval"
4306 _ACEOF
4308 else
4309 { $as_echo "$as_me:$LINENO: result: no" >&5
4310 $as_echo "no" >&6; }
4314 { $as_echo "$as_me:$LINENO: checking if character set is EBCDIC" >&5
4315 $as_echo_n "checking if character set is EBCDIC... " >&6; }
4316 cat >conftest.$ac_ext <<_ACEOF
4317 /* confdefs.h. */
4318 _ACEOF
4319 cat confdefs.h >>conftest.$ac_ext
4320 cat >>conftest.$ac_ext <<_ACEOF
4321 /* end confdefs.h. */
4324 main ()
4326 /* TryCompile function for CharSet.
4327 Treat any failure as ASCII for compatibility with existing art.
4328 Use compile-time rather than run-time tests for cross-compiler
4329 tolerance. */
4330 #if '0'!=240
4331 make an error "Character set is not EBCDIC"
4332 #endif
4334 return 0;
4336 _ACEOF
4337 rm -f conftest.$ac_objext
4338 if { (ac_try="$ac_compile"
4339 case "(($ac_try" in
4340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4341 *) ac_try_echo=$ac_try;;
4342 esac
4343 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4344 $as_echo "$ac_try_echo") >&5
4345 (eval "$ac_compile") 2>conftest.er1
4346 ac_status=$?
4347 grep -v '^ *+' conftest.er1 >conftest.err
4348 rm -f conftest.er1
4349 cat conftest.err >&5
4350 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4351 (exit $ac_status); } && {
4352 test -z "$ac_c_werror_flag" ||
4353 test ! -s conftest.err
4354 } && test -s conftest.$ac_objext; then
4355 # TryCompile action if true
4356 cf_cv_ebcdic=yes
4357 else
4358 $as_echo "$as_me: failed program was:" >&5
4359 sed 's/^/| /' conftest.$ac_ext >&5
4361 # TryCompile action if false
4362 cf_cv_ebcdic=no
4365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4366 # end of TryCompile ])
4367 # end of CacheVal CvEbcdic
4368 { $as_echo "$as_me:$LINENO: result: $cf_cv_ebcdic" >&5
4369 $as_echo "$cf_cv_ebcdic" >&6; }
4370 case "$cf_cv_ebcdic" in #(vi
4371 yes) cat >>confdefs.h <<\_ACEOF
4372 #define EBCDIC 1
4373 _ACEOF
4375 line_break='"\\n"'
4377 *) line_break='"\\012"';;
4378 esac
4381 if test "$cf_cv_ebcdic" = "yes"; then
4382 { $as_echo "$as_me:$LINENO: checking for OS/390 Unix" >&5
4383 $as_echo_n "checking for OS/390 Unix... " >&6; }
4384 case `uname` in
4385 OS/390) OS390Unix="yes";
4386 if test "$CC" = "cc"; then
4387 ccm="$_CC_CCMODE"
4388 ccn="CC"
4389 else
4390 if test "$CC" = "c89"; then
4391 ccm="$_CC_C89MODE"
4392 ccn="C89"
4393 else
4394 ccm=1
4397 if test "$ccm" != "1"; then
4398 echo ""
4399 echo "------------------------------------------"
4400 echo " On OS/390 Unix, the environment variable"
4401 echo " __CC_${ccn}MODE must be set to \"1\"!"
4402 echo " Do:"
4403 echo " export _CC_${ccn}MODE=1"
4404 echo " and then call configure again."
4405 echo "------------------------------------------"
4406 exit 1
4408 CFLAGS="$CFLAGS -D_ALL_SOURCE"; LDFLAGS="$LDFLAGS -Wl,EDIT=NO"
4409 { $as_echo "$as_me:$LINENO: result: yes" >&5
4410 $as_echo "yes" >&6; }
4412 *) OS390Unix="no";
4413 { $as_echo "$as_me:$LINENO: result: no" >&5
4414 $as_echo "no" >&6; }
4416 esac
4419 { $as_echo "$as_me:$LINENO: checking --disable-selinux argument" >&5
4420 $as_echo_n "checking --disable-selinux argument... " >&6; }
4421 # Check whether --enable-selinux was given.
4422 if test "${enable_selinux+set}" = set; then
4423 enableval=$enable_selinux;
4424 else
4425 enable_selinux="yes"
4428 if test "$enable_selinux" = "yes"; then
4429 { $as_echo "$as_me:$LINENO: result: no" >&5
4430 $as_echo "no" >&6; }
4431 { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
4432 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
4433 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
4434 $as_echo_n "(cached) " >&6
4435 else
4436 ac_check_lib_save_LIBS=$LIBS
4437 LIBS="-lselinux $LIBS"
4438 cat >conftest.$ac_ext <<_ACEOF
4439 /* confdefs.h. */
4440 _ACEOF
4441 cat confdefs.h >>conftest.$ac_ext
4442 cat >>conftest.$ac_ext <<_ACEOF
4443 /* end confdefs.h. */
4445 /* Override any GCC internal prototype to avoid an error.
4446 Use char because int might match the return type of a GCC
4447 builtin and then its argument prototype would still apply. */
4448 #ifdef __cplusplus
4449 extern "C"
4450 #endif
4451 char is_selinux_enabled ();
4453 main ()
4455 return is_selinux_enabled ();
4457 return 0;
4459 _ACEOF
4460 rm -f conftest.$ac_objext conftest$ac_exeext
4461 if { (ac_try="$ac_link"
4462 case "(($ac_try" in
4463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4464 *) ac_try_echo=$ac_try;;
4465 esac
4466 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4467 $as_echo "$ac_try_echo") >&5
4468 (eval "$ac_link") 2>conftest.er1
4469 ac_status=$?
4470 grep -v '^ *+' conftest.er1 >conftest.err
4471 rm -f conftest.er1
4472 cat conftest.err >&5
4473 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4474 (exit $ac_status); } && {
4475 test -z "$ac_c_werror_flag" ||
4476 test ! -s conftest.err
4477 } && test -s conftest$ac_exeext && {
4478 test "$cross_compiling" = yes ||
4479 $as_test_x conftest$ac_exeext
4480 }; then
4481 ac_cv_lib_selinux_is_selinux_enabled=yes
4482 else
4483 $as_echo "$as_me: failed program was:" >&5
4484 sed 's/^/| /' conftest.$ac_ext >&5
4486 ac_cv_lib_selinux_is_selinux_enabled=no
4489 rm -rf conftest.dSYM
4490 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4491 conftest$ac_exeext conftest.$ac_ext
4492 LIBS=$ac_check_lib_save_LIBS
4494 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
4495 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
4496 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then
4497 LIBS="$LIBS -lselinux"
4498 cat >>confdefs.h <<\_ACEOF
4499 #define HAVE_SELINUX 1
4500 _ACEOF
4504 else
4505 { $as_echo "$as_me:$LINENO: result: yes" >&5
4506 $as_echo "yes" >&6; }
4510 { $as_echo "$as_me:$LINENO: checking --with-features argument" >&5
4511 $as_echo_n "checking --with-features argument... " >&6; }
4513 # Check whether --with-features was given.
4514 if test "${with_features+set}" = set; then
4515 withval=$with_features; features="$withval"; { $as_echo "$as_me:$LINENO: result: $features" >&5
4516 $as_echo "$features" >&6; }
4517 else
4518 features="normal"; { $as_echo "$as_me:$LINENO: result: Defaulting to normal" >&5
4519 $as_echo "Defaulting to normal" >&6; }
4523 dovimdiff=""
4524 dogvimdiff=""
4525 case "$features" in
4526 tiny) cat >>confdefs.h <<\_ACEOF
4527 #define FEAT_TINY 1
4528 _ACEOF
4530 small) cat >>confdefs.h <<\_ACEOF
4531 #define FEAT_SMALL 1
4532 _ACEOF
4534 normal) cat >>confdefs.h <<\_ACEOF
4535 #define FEAT_NORMAL 1
4536 _ACEOF
4537 dovimdiff="installvimdiff";
4538 dogvimdiff="installgvimdiff" ;;
4539 big) cat >>confdefs.h <<\_ACEOF
4540 #define FEAT_BIG 1
4541 _ACEOF
4542 dovimdiff="installvimdiff";
4543 dogvimdiff="installgvimdiff" ;;
4544 huge) cat >>confdefs.h <<\_ACEOF
4545 #define FEAT_HUGE 1
4546 _ACEOF
4547 dovimdiff="installvimdiff";
4548 dogvimdiff="installgvimdiff" ;;
4549 *) { $as_echo "$as_me:$LINENO: result: Sorry, $features is not supported" >&5
4550 $as_echo "Sorry, $features is not supported" >&6; } ;;
4551 esac
4556 { $as_echo "$as_me:$LINENO: checking --with-compiledby argument" >&5
4557 $as_echo_n "checking --with-compiledby argument... " >&6; }
4559 # Check whether --with-compiledby was given.
4560 if test "${with_compiledby+set}" = set; then
4561 withval=$with_compiledby; compiledby="$withval"; { $as_echo "$as_me:$LINENO: result: $withval" >&5
4562 $as_echo "$withval" >&6; }
4563 else
4564 compiledby=""; { $as_echo "$as_me:$LINENO: result: no" >&5
4565 $as_echo "no" >&6; }
4570 { $as_echo "$as_me:$LINENO: checking --disable-xsmp argument" >&5
4571 $as_echo_n "checking --disable-xsmp argument... " >&6; }
4572 # Check whether --enable-xsmp was given.
4573 if test "${enable_xsmp+set}" = set; then
4574 enableval=$enable_xsmp;
4575 else
4576 enable_xsmp="yes"
4580 if test "$enable_xsmp" = "yes"; then
4581 { $as_echo "$as_me:$LINENO: result: no" >&5
4582 $as_echo "no" >&6; }
4583 { $as_echo "$as_me:$LINENO: checking --disable-xsmp-interact argument" >&5
4584 $as_echo_n "checking --disable-xsmp-interact argument... " >&6; }
4585 # Check whether --enable-xsmp-interact was given.
4586 if test "${enable_xsmp_interact+set}" = set; then
4587 enableval=$enable_xsmp_interact;
4588 else
4589 enable_xsmp_interact="yes"
4592 if test "$enable_xsmp_interact" = "yes"; then
4593 { $as_echo "$as_me:$LINENO: result: no" >&5
4594 $as_echo "no" >&6; }
4595 cat >>confdefs.h <<\_ACEOF
4596 #define USE_XSMP_INTERACT 1
4597 _ACEOF
4599 else
4600 { $as_echo "$as_me:$LINENO: result: yes" >&5
4601 $as_echo "yes" >&6; }
4603 else
4604 { $as_echo "$as_me:$LINENO: result: yes" >&5
4605 $as_echo "yes" >&6; }
4608 { $as_echo "$as_me:$LINENO: checking --enable-mzschemeinterp argument" >&5
4609 $as_echo_n "checking --enable-mzschemeinterp argument... " >&6; }
4610 # Check whether --enable-mzschemeinterp was given.
4611 if test "${enable_mzschemeinterp+set}" = set; then
4612 enableval=$enable_mzschemeinterp;
4613 else
4614 enable_mzschemeinterp="no"
4617 { $as_echo "$as_me:$LINENO: result: $enable_mzschemeinterp" >&5
4618 $as_echo "$enable_mzschemeinterp" >&6; }
4620 if test "$enable_mzschemeinterp" = "yes"; then
4623 { $as_echo "$as_me:$LINENO: checking --with-plthome argument" >&5
4624 $as_echo_n "checking --with-plthome argument... " >&6; }
4626 # Check whether --with-plthome was given.
4627 if test "${with_plthome+set}" = set; then
4628 withval=$with_plthome; with_plthome="$withval"; { $as_echo "$as_me:$LINENO: result: $with_plthome" >&5
4629 $as_echo "$with_plthome" >&6; }
4630 else
4631 with_plthome="";{ $as_echo "$as_me:$LINENO: result: \"no\"" >&5
4632 $as_echo "\"no\"" >&6; }
4636 if test "X$with_plthome" != "X"; then
4637 vi_cv_path_mzscheme_pfx="$with_plthome"
4638 else
4639 { $as_echo "$as_me:$LINENO: checking PLTHOME environment var" >&5
4640 $as_echo_n "checking PLTHOME environment var... " >&6; }
4641 if test "X$PLTHOME" != "X"; then
4642 { $as_echo "$as_me:$LINENO: result: \"$PLTHOME\"" >&5
4643 $as_echo "\"$PLTHOME\"" >&6; }
4644 vi_cv_path_mzscheme_pfx="$PLTHOME"
4645 else
4646 { $as_echo "$as_me:$LINENO: result: not set" >&5
4647 $as_echo "not set" >&6; }
4648 # Extract the first word of "mzscheme", so it can be a program name with args.
4649 set dummy mzscheme; ac_word=$2
4650 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4651 $as_echo_n "checking for $ac_word... " >&6; }
4652 if test "${ac_cv_path_vi_cv_path_mzscheme+set}" = set; then
4653 $as_echo_n "(cached) " >&6
4654 else
4655 case $vi_cv_path_mzscheme in
4656 [\\/]* | ?:[\\/]*)
4657 ac_cv_path_vi_cv_path_mzscheme="$vi_cv_path_mzscheme" # Let the user override the test with a path.
4660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4661 for as_dir in $PATH
4663 IFS=$as_save_IFS
4664 test -z "$as_dir" && as_dir=.
4665 for ac_exec_ext in '' $ac_executable_extensions; do
4666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4667 ac_cv_path_vi_cv_path_mzscheme="$as_dir/$ac_word$ac_exec_ext"
4668 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4669 break 2
4671 done
4672 done
4673 IFS=$as_save_IFS
4676 esac
4678 vi_cv_path_mzscheme=$ac_cv_path_vi_cv_path_mzscheme
4679 if test -n "$vi_cv_path_mzscheme"; then
4680 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme" >&5
4681 $as_echo "$vi_cv_path_mzscheme" >&6; }
4682 else
4683 { $as_echo "$as_me:$LINENO: result: no" >&5
4684 $as_echo "no" >&6; }
4689 if test "X$vi_cv_path_mzscheme" != "X"; then
4690 lsout=`ls -l $vi_cv_path_mzscheme`
4691 if echo "$lsout" | grep -e '->' >/dev/null 2>/dev/null; then
4692 vi_cv_path_mzscheme=`echo "$lsout" | sed 's/.*-> \(.*\)/\1/'`
4696 if test "X$vi_cv_path_mzscheme" != "X"; then
4697 { $as_echo "$as_me:$LINENO: checking MzScheme install prefix" >&5
4698 $as_echo_n "checking MzScheme install prefix... " >&6; }
4699 if test "${vi_cv_path_mzscheme_pfx+set}" = set; then
4700 $as_echo_n "(cached) " >&6
4701 else
4702 echo "(display (simplify-path \
4703 (build-path (call-with-values \
4704 (lambda () (split-path (find-system-path (quote exec-file)))) \
4705 (lambda (base name must-be-dir?) base)) (quote up))))" > mzdirs.scm
4706 vi_cv_path_mzscheme_pfx=`${vi_cv_path_mzscheme} -r mzdirs.scm | \
4707 sed -e 's+/$++'`
4709 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme_pfx" >&5
4710 $as_echo "$vi_cv_path_mzscheme_pfx" >&6; }
4711 rm -f mzdirs.scm
4716 SCHEME_INC=
4717 if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
4718 { $as_echo "$as_me:$LINENO: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include" >&5
4719 $as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include... " >&6; }
4720 if test -f $vi_cv_path_mzscheme_pfx/include/scheme.h; then
4721 SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include
4722 { $as_echo "$as_me:$LINENO: result: yes" >&5
4723 $as_echo "yes" >&6; }
4724 else
4725 { $as_echo "$as_me:$LINENO: result: no" >&5
4726 $as_echo "no" >&6; }
4727 { $as_echo "$as_me:$LINENO: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/plt" >&5
4728 $as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/plt... " >&6; }
4729 if test -f $vi_cv_path_mzscheme_pfx/include/plt/scheme.h; then
4730 { $as_echo "$as_me:$LINENO: result: yes" >&5
4731 $as_echo "yes" >&6; }
4732 SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include/plt
4733 else
4734 { $as_echo "$as_me:$LINENO: result: no" >&5
4735 $as_echo "no" >&6; }
4736 { $as_echo "$as_me:$LINENO: checking if scheme.h can be found in /usr/include/plt/" >&5
4737 $as_echo_n "checking if scheme.h can be found in /usr/include/plt/... " >&6; }
4738 if test -f /usr/include/plt/scheme.h; then
4739 { $as_echo "$as_me:$LINENO: result: yes" >&5
4740 $as_echo "yes" >&6; }
4741 SCHEME_INC=/usr/include/plt
4742 else
4743 { $as_echo "$as_me:$LINENO: result: no" >&5
4744 $as_echo "no" >&6; }
4745 vi_cv_path_mzscheme_pfx=
4751 if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
4752 if test "x$MACOSX" = "xyes"; then
4753 MZSCHEME_LIBS="-framework PLT_MzScheme"
4754 elif test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzscheme3m.a"; then
4755 MZSCHEME_LIBS="${vi_cv_path_mzscheme_pfx}/lib/libmzscheme3m.a"
4756 MZSCHEME_CFLAGS="-DMZ_PRECISE_GC"
4757 elif test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a"; then
4758 MZSCHEME_LIBS="${vi_cv_path_mzscheme_pfx}/lib/libmzscheme.a ${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a"
4759 else
4760 if test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzscheme3m.so"; then
4761 MZSCHEME_LIBS="-L${vi_cv_path_mzscheme_pfx}/lib -lmzscheme3m"
4762 MZSCHEME_CFLAGS="-DMZ_PRECISE_GC"
4763 else
4764 MZSCHEME_LIBS="-L${vi_cv_path_mzscheme_pfx}/lib -lmzscheme -lmzgc"
4766 if test "$GCC" = yes; then
4767 MZSCHEME_LIBS="${MZSCHEME_LIBS} -Wl,-rpath -Wl,${vi_cv_path_mzscheme_pfx}/lib"
4768 elif test "`(uname) 2>/dev/null`" = SunOS &&
4769 uname -r | grep '^5' >/dev/null; then
4770 MZSCHEME_LIBS="${MZSCHEME_LIBS} -R ${vi_cv_path_mzscheme_pfx}/lib"
4773 if test -d $vi_cv_path_mzscheme_pfx/lib/plt/collects; then
4774 SCHEME_COLLECTS=lib/plt/
4776 if test -f "${vi_cv_path_mzscheme_pfx}/${SCHEME_COLLECTS}collects/scheme/base.ss" ; then
4777 MZSCHEME_EXTRA="mzscheme_base.c"
4778 MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -DINCLUDE_MZSCHEME_BASE"
4779 MZSCHEME_MZC="${vi_cv_path_mzscheme_pfx}/bin/mzc"
4781 MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -I${SCHEME_INC} \
4782 -DMZSCHEME_COLLECTS='\"${vi_cv_path_mzscheme_pfx}/${SCHEME_COLLECTS}collects\"'"
4783 MZSCHEME_SRC="if_mzsch.c"
4784 MZSCHEME_OBJ="objects/if_mzsch.o"
4785 MZSCHEME_PRO="if_mzsch.pro"
4786 cat >>confdefs.h <<\_ACEOF
4787 #define FEAT_MZSCHEME 1
4788 _ACEOF
4801 { $as_echo "$as_me:$LINENO: checking --enable-perlinterp argument" >&5
4802 $as_echo_n "checking --enable-perlinterp argument... " >&6; }
4803 # Check whether --enable-perlinterp was given.
4804 if test "${enable_perlinterp+set}" = set; then
4805 enableval=$enable_perlinterp;
4806 else
4807 enable_perlinterp="no"
4810 { $as_echo "$as_me:$LINENO: result: $enable_perlinterp" >&5
4811 $as_echo "$enable_perlinterp" >&6; }
4812 if test "$enable_perlinterp" = "yes"; then
4814 # Extract the first word of "perl", so it can be a program name with args.
4815 set dummy perl; ac_word=$2
4816 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4817 $as_echo_n "checking for $ac_word... " >&6; }
4818 if test "${ac_cv_path_vi_cv_path_perl+set}" = set; then
4819 $as_echo_n "(cached) " >&6
4820 else
4821 case $vi_cv_path_perl in
4822 [\\/]* | ?:[\\/]*)
4823 ac_cv_path_vi_cv_path_perl="$vi_cv_path_perl" # Let the user override the test with a path.
4826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4827 for as_dir in $PATH
4829 IFS=$as_save_IFS
4830 test -z "$as_dir" && as_dir=.
4831 for ac_exec_ext in '' $ac_executable_extensions; do
4832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4833 ac_cv_path_vi_cv_path_perl="$as_dir/$ac_word$ac_exec_ext"
4834 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4835 break 2
4837 done
4838 done
4839 IFS=$as_save_IFS
4842 esac
4844 vi_cv_path_perl=$ac_cv_path_vi_cv_path_perl
4845 if test -n "$vi_cv_path_perl"; then
4846 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_perl" >&5
4847 $as_echo "$vi_cv_path_perl" >&6; }
4848 else
4849 { $as_echo "$as_me:$LINENO: result: no" >&5
4850 $as_echo "no" >&6; }
4854 if test "X$vi_cv_path_perl" != "X"; then
4855 { $as_echo "$as_me:$LINENO: checking Perl version" >&5
4856 $as_echo_n "checking Perl version... " >&6; }
4857 if $vi_cv_path_perl -e 'require 5.003_01' >/dev/null 2>/dev/null; then
4858 eval `$vi_cv_path_perl -V:usethreads`
4859 if test "X$usethreads" = "XUNKNOWN" -o "X$usethreads" = "Xundef"; then
4860 badthreads=no
4861 else
4862 if $vi_cv_path_perl -e 'require 5.6.0' >/dev/null 2>/dev/null; then
4863 eval `$vi_cv_path_perl -V:use5005threads`
4864 if test "X$use5005threads" = "XUNKNOWN" -o "X$use5005threads" = "Xundef"; then
4865 badthreads=no
4866 else
4867 badthreads=yes
4868 { $as_echo "$as_me:$LINENO: result: >>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&5
4869 $as_echo ">>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&6; }
4871 else
4872 badthreads=yes
4873 { $as_echo "$as_me:$LINENO: result: >>> Perl 5.5 with threads cannot be used <<<" >&5
4874 $as_echo ">>> Perl 5.5 with threads cannot be used <<<" >&6; }
4877 if test $badthreads = no; then
4878 { $as_echo "$as_me:$LINENO: result: OK" >&5
4879 $as_echo "OK" >&6; }
4880 eval `$vi_cv_path_perl -V:shrpenv`
4881 if test "X$shrpenv" = "XUNKNOWN"; then # pre 5.003_04
4882 shrpenv=""
4884 vi_cv_perllib=`$vi_cv_path_perl -MConfig -e 'print $Config{privlibexp}'`
4886 perlcppflags=`$vi_cv_path_perl -Mlib=$srcdir -MExtUtils::Embed \
4887 -e 'ccflags;perl_inc;print"\n"' | sed -e 's/-fno[^ ]*//'`
4888 perllibs=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed -e 'ldopts' | \
4889 sed -e '/Warning/d' -e '/Note (probably harmless)/d' \
4890 -e 's/-bE:perl.exp//' -e 's/-lc //'`
4891 perlldflags=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed \
4892 -e 'ccdlflags' | sed -e 's/-bE:perl.exp//'`
4894 { $as_echo "$as_me:$LINENO: checking if compile and link flags for Perl are sane" >&5
4895 $as_echo_n "checking if compile and link flags for Perl are sane... " >&6; }
4896 cflags_save=$CFLAGS
4897 libs_save=$LIBS
4898 ldflags_save=$LDFLAGS
4899 CFLAGS="$CFLAGS $perlcppflags"
4900 LIBS="$LIBS $perllibs"
4901 LDFLAGS="$perlldflags $LDFLAGS"
4902 cat >conftest.$ac_ext <<_ACEOF
4903 /* confdefs.h. */
4904 _ACEOF
4905 cat confdefs.h >>conftest.$ac_ext
4906 cat >>conftest.$ac_ext <<_ACEOF
4907 /* end confdefs.h. */
4910 main ()
4914 return 0;
4916 _ACEOF
4917 rm -f conftest.$ac_objext conftest$ac_exeext
4918 if { (ac_try="$ac_link"
4919 case "(($ac_try" in
4920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4921 *) ac_try_echo=$ac_try;;
4922 esac
4923 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4924 $as_echo "$ac_try_echo") >&5
4925 (eval "$ac_link") 2>conftest.er1
4926 ac_status=$?
4927 grep -v '^ *+' conftest.er1 >conftest.err
4928 rm -f conftest.er1
4929 cat conftest.err >&5
4930 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4931 (exit $ac_status); } && {
4932 test -z "$ac_c_werror_flag" ||
4933 test ! -s conftest.err
4934 } && test -s conftest$ac_exeext && {
4935 test "$cross_compiling" = yes ||
4936 $as_test_x conftest$ac_exeext
4937 }; then
4938 { $as_echo "$as_me:$LINENO: result: yes" >&5
4939 $as_echo "yes" >&6; }; perl_ok=yes
4940 else
4941 $as_echo "$as_me: failed program was:" >&5
4942 sed 's/^/| /' conftest.$ac_ext >&5
4944 { $as_echo "$as_me:$LINENO: result: no: PERL DISABLED" >&5
4945 $as_echo "no: PERL DISABLED" >&6; }; perl_ok=no
4948 rm -rf conftest.dSYM
4949 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4950 conftest$ac_exeext conftest.$ac_ext
4951 CFLAGS=$cflags_save
4952 LIBS=$libs_save
4953 LDFLAGS=$ldflags_save
4954 if test $perl_ok = yes; then
4955 if test "X$perlcppflags" != "X"; then
4956 PERL_CFLAGS=`echo "$perlcppflags" | sed -e 's/-pipe //' -e 's/-W[^ ]*//'`
4958 if test "X$perlldflags" != "X"; then
4959 LDFLAGS="$perlldflags $LDFLAGS"
4961 PERL_LIBS=$perllibs
4962 PERL_SRC="auto/if_perl.c if_perlsfio.c"
4963 PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o"
4964 PERL_PRO="if_perl.pro if_perlsfio.pro"
4965 cat >>confdefs.h <<\_ACEOF
4966 #define FEAT_PERL 1
4967 _ACEOF
4971 else
4972 { $as_echo "$as_me:$LINENO: result: >>> too old; need Perl version 5.003_01 or later <<<" >&5
4973 $as_echo ">>> too old; need Perl version 5.003_01 or later <<<" >&6; }
4977 if test "x$MACOSX" = "xyes"; then
4978 dir=/System/Library/Perl
4979 darwindir=$dir/darwin
4980 if test -d $darwindir; then
4981 PERL=/usr/bin/perl
4982 else
4983 dir=/System/Library/Perl/5.8.1
4984 darwindir=$dir/darwin-thread-multi-2level
4985 if test -d $darwindir; then
4986 PERL=/usr/bin/perl
4989 if test -n "$PERL"; then
4990 PERL_DIR="$dir"
4991 PERL_CFLAGS="-DFEAT_PERL -I$darwindir/CORE"
4992 PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o $darwindir/auto/DynaLoader/DynaLoader.a"
4993 PERL_LIBS="-L$darwindir/CORE -lperl"
5004 { $as_echo "$as_me:$LINENO: checking --enable-pythoninterp argument" >&5
5005 $as_echo_n "checking --enable-pythoninterp argument... " >&6; }
5006 # Check whether --enable-pythoninterp was given.
5007 if test "${enable_pythoninterp+set}" = set; then
5008 enableval=$enable_pythoninterp;
5009 else
5010 enable_pythoninterp="no"
5013 { $as_echo "$as_me:$LINENO: result: $enable_pythoninterp" >&5
5014 $as_echo "$enable_pythoninterp" >&6; }
5015 if test "$enable_pythoninterp" = "yes"; then
5016 # Extract the first word of "python", so it can be a program name with args.
5017 set dummy python; ac_word=$2
5018 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5019 $as_echo_n "checking for $ac_word... " >&6; }
5020 if test "${ac_cv_path_vi_cv_path_python+set}" = set; then
5021 $as_echo_n "(cached) " >&6
5022 else
5023 case $vi_cv_path_python in
5024 [\\/]* | ?:[\\/]*)
5025 ac_cv_path_vi_cv_path_python="$vi_cv_path_python" # Let the user override the test with a path.
5028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5029 for as_dir in $PATH
5031 IFS=$as_save_IFS
5032 test -z "$as_dir" && as_dir=.
5033 for ac_exec_ext in '' $ac_executable_extensions; do
5034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5035 ac_cv_path_vi_cv_path_python="$as_dir/$ac_word$ac_exec_ext"
5036 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5037 break 2
5039 done
5040 done
5041 IFS=$as_save_IFS
5044 esac
5046 vi_cv_path_python=$ac_cv_path_vi_cv_path_python
5047 if test -n "$vi_cv_path_python"; then
5048 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_python" >&5
5049 $as_echo "$vi_cv_path_python" >&6; }
5050 else
5051 { $as_echo "$as_me:$LINENO: result: no" >&5
5052 $as_echo "no" >&6; }
5056 if test "X$vi_cv_path_python" != "X"; then
5058 { $as_echo "$as_me:$LINENO: checking Python version" >&5
5059 $as_echo_n "checking Python version... " >&6; }
5060 if test "${vi_cv_var_python_version+set}" = set; then
5061 $as_echo_n "(cached) " >&6
5062 else
5063 vi_cv_var_python_version=`
5064 ${vi_cv_path_python} -c 'import sys; print sys.version[:3]'`
5067 { $as_echo "$as_me:$LINENO: result: $vi_cv_var_python_version" >&5
5068 $as_echo "$vi_cv_var_python_version" >&6; }
5070 { $as_echo "$as_me:$LINENO: checking Python is 1.4 or better" >&5
5071 $as_echo_n "checking Python is 1.4 or better... " >&6; }
5072 if ${vi_cv_path_python} -c \
5073 "import sys; sys.exit(${vi_cv_var_python_version} < 1.4)"
5074 then
5075 { $as_echo "$as_me:$LINENO: result: yep" >&5
5076 $as_echo "yep" >&6; }
5078 { $as_echo "$as_me:$LINENO: checking Python's install prefix" >&5
5079 $as_echo_n "checking Python's install prefix... " >&6; }
5080 if test "${vi_cv_path_python_pfx+set}" = set; then
5081 $as_echo_n "(cached) " >&6
5082 else
5083 vi_cv_path_python_pfx=`
5084 ${vi_cv_path_python} -c \
5085 "import sys; print sys.prefix"`
5087 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_python_pfx" >&5
5088 $as_echo "$vi_cv_path_python_pfx" >&6; }
5090 { $as_echo "$as_me:$LINENO: checking Python's execution prefix" >&5
5091 $as_echo_n "checking Python's execution prefix... " >&6; }
5092 if test "${vi_cv_path_python_epfx+set}" = set; then
5093 $as_echo_n "(cached) " >&6
5094 else
5095 vi_cv_path_python_epfx=`
5096 ${vi_cv_path_python} -c \
5097 "import sys; print sys.exec_prefix"`
5099 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_python_epfx" >&5
5100 $as_echo "$vi_cv_path_python_epfx" >&6; }
5103 if test "${vi_cv_path_pythonpath+set}" = set; then
5104 $as_echo_n "(cached) " >&6
5105 else
5106 vi_cv_path_pythonpath=`
5107 unset PYTHONPATH;
5108 ${vi_cv_path_python} -c \
5109 "import sys, string; print string.join(sys.path,':')"`
5115 # Check whether --with-python-config-dir was given.
5116 if test "${with_python_config_dir+set}" = set; then
5117 withval=$with_python_config_dir; vi_cv_path_python_conf="${withval}"
5121 { $as_echo "$as_me:$LINENO: checking Python's configuration directory" >&5
5122 $as_echo_n "checking Python's configuration directory... " >&6; }
5123 if test "${vi_cv_path_python_conf+set}" = set; then
5124 $as_echo_n "(cached) " >&6
5125 else
5127 vi_cv_path_python_conf=
5128 for path in "${vi_cv_path_python_pfx}" "${vi_cv_path_python_epfx}"; do
5129 for subdir in lib share; do
5130 d="${path}/${subdir}/python${vi_cv_var_python_version}/config"
5131 if test -d "$d" && test -f "$d/config.c"; then
5132 vi_cv_path_python_conf="$d"
5134 done
5135 done
5138 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_python_conf" >&5
5139 $as_echo "$vi_cv_path_python_conf" >&6; }
5141 PYTHON_CONFDIR="${vi_cv_path_python_conf}"
5143 if test "X$PYTHON_CONFDIR" = "X"; then
5144 { $as_echo "$as_me:$LINENO: result: can't find it!" >&5
5145 $as_echo "can't find it!" >&6; }
5146 else
5148 if test "${vi_cv_path_python_plibs+set}" = set; then
5149 $as_echo_n "(cached) " >&6
5150 else
5152 pwd=`pwd`
5153 tmp_mkf="$pwd/config-PyMake$$"
5154 cat -- "${PYTHON_CONFDIR}/Makefile" - <<'eof' >"${tmp_mkf}"
5156 @echo "python_MODLIBS='$(MODLIBS)'"
5157 @echo "python_LIBS='$(LIBS)'"
5158 @echo "python_SYSLIBS='$(SYSLIBS)'"
5159 @echo "python_LINKFORSHARED='$(LINKFORSHARED)'"
5161 eval "`cd ${PYTHON_CONFDIR} && make -f "${tmp_mkf}" __ | sed '/ directory /d'`"
5162 rm -f -- "${tmp_mkf}"
5163 if test "x$MACOSX" = "xyes" && ${vi_cv_path_python} -c \
5164 "import sys; sys.exit(${vi_cv_var_python_version} < 2.3)"; then
5165 vi_cv_path_python_plibs="-framework Python"
5166 else
5167 if test "${vi_cv_var_python_version}" = "1.4"; then
5168 vi_cv_path_python_plibs="${PYTHON_CONFDIR}/libModules.a ${PYTHON_CONFDIR}/libPython.a ${PYTHON_CONFDIR}/libObjects.a ${PYTHON_CONFDIR}/libParser.a"
5169 else
5170 vi_cv_path_python_plibs="-L${PYTHON_CONFDIR} -lpython${vi_cv_var_python_version}"
5172 vi_cv_path_python_plibs="${vi_cv_path_python_plibs} ${python_MODLIBS} ${python_LIBS} ${python_SYSLIBS} ${python_LINKFORSHARED}"
5173 vi_cv_path_python_plibs=`echo $vi_cv_path_python_plibs | sed s/-ltermcap//`
5179 PYTHON_LIBS="${vi_cv_path_python_plibs}"
5180 if test "${vi_cv_path_python_pfx}" = "${vi_cv_path_python_epfx}"; then
5181 PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version}"
5182 else
5183 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}"
5185 PYTHON_SRC="if_python.c"
5186 if test "x$MACOSX" = "xyes"; then
5187 PYTHON_OBJ="objects/if_python.o"
5188 else
5189 PYTHON_OBJ="objects/if_python.o objects/py_config.o"
5191 if test "${vi_cv_var_python_version}" = "1.4"; then
5192 PYTHON_OBJ="$PYTHON_OBJ objects/py_getpath.o"
5194 PYTHON_GETPATH_CFLAGS="-DPYTHONPATH='\"${vi_cv_path_pythonpath}\"' -DPREFIX='\"${vi_cv_path_python_pfx}\"' -DEXEC_PREFIX='\"${vi_cv_path_python_epfx}\"'"
5196 { $as_echo "$as_me:$LINENO: checking if -pthread should be used" >&5
5197 $as_echo_n "checking if -pthread should be used... " >&6; }
5198 threadsafe_flag=
5199 thread_lib=
5200 if test "`(uname) 2>/dev/null`" != Darwin; then
5201 test "$GCC" = yes && threadsafe_flag="-pthread"
5202 if test "`(uname) 2>/dev/null`" = FreeBSD; then
5203 threadsafe_flag="-D_THREAD_SAFE"
5204 thread_lib="-pthread"
5207 libs_save_old=$LIBS
5208 if test -n "$threadsafe_flag"; then
5209 cflags_save=$CFLAGS
5210 CFLAGS="$CFLAGS $threadsafe_flag"
5211 LIBS="$LIBS $thread_lib"
5212 cat >conftest.$ac_ext <<_ACEOF
5213 /* confdefs.h. */
5214 _ACEOF
5215 cat confdefs.h >>conftest.$ac_ext
5216 cat >>conftest.$ac_ext <<_ACEOF
5217 /* end confdefs.h. */
5220 main ()
5224 return 0;
5226 _ACEOF
5227 rm -f conftest.$ac_objext conftest$ac_exeext
5228 if { (ac_try="$ac_link"
5229 case "(($ac_try" in
5230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5231 *) ac_try_echo=$ac_try;;
5232 esac
5233 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5234 $as_echo "$ac_try_echo") >&5
5235 (eval "$ac_link") 2>conftest.er1
5236 ac_status=$?
5237 grep -v '^ *+' conftest.er1 >conftest.err
5238 rm -f conftest.er1
5239 cat conftest.err >&5
5240 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5241 (exit $ac_status); } && {
5242 test -z "$ac_c_werror_flag" ||
5243 test ! -s conftest.err
5244 } && test -s conftest$ac_exeext && {
5245 test "$cross_compiling" = yes ||
5246 $as_test_x conftest$ac_exeext
5247 }; then
5248 { $as_echo "$as_me:$LINENO: result: yes" >&5
5249 $as_echo "yes" >&6; }; PYTHON_CFLAGS="$PYTHON_CFLAGS $threadsafe_flag"
5250 else
5251 $as_echo "$as_me: failed program was:" >&5
5252 sed 's/^/| /' conftest.$ac_ext >&5
5254 { $as_echo "$as_me:$LINENO: result: no" >&5
5255 $as_echo "no" >&6; }; LIBS=$libs_save_old
5259 rm -rf conftest.dSYM
5260 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5261 conftest$ac_exeext conftest.$ac_ext
5262 CFLAGS=$cflags_save
5263 else
5264 { $as_echo "$as_me:$LINENO: result: no" >&5
5265 $as_echo "no" >&6; }
5268 { $as_echo "$as_me:$LINENO: checking if compile and link flags for Python are sane" >&5
5269 $as_echo_n "checking if compile and link flags for Python are sane... " >&6; }
5270 cflags_save=$CFLAGS
5271 libs_save=$LIBS
5272 CFLAGS="$CFLAGS $PYTHON_CFLAGS"
5273 LIBS="$LIBS $PYTHON_LIBS"
5274 cat >conftest.$ac_ext <<_ACEOF
5275 /* confdefs.h. */
5276 _ACEOF
5277 cat confdefs.h >>conftest.$ac_ext
5278 cat >>conftest.$ac_ext <<_ACEOF
5279 /* end confdefs.h. */
5282 main ()
5286 return 0;
5288 _ACEOF
5289 rm -f conftest.$ac_objext conftest$ac_exeext
5290 if { (ac_try="$ac_link"
5291 case "(($ac_try" in
5292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5293 *) ac_try_echo=$ac_try;;
5294 esac
5295 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5296 $as_echo "$ac_try_echo") >&5
5297 (eval "$ac_link") 2>conftest.er1
5298 ac_status=$?
5299 grep -v '^ *+' conftest.er1 >conftest.err
5300 rm -f conftest.er1
5301 cat conftest.err >&5
5302 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5303 (exit $ac_status); } && {
5304 test -z "$ac_c_werror_flag" ||
5305 test ! -s conftest.err
5306 } && test -s conftest$ac_exeext && {
5307 test "$cross_compiling" = yes ||
5308 $as_test_x conftest$ac_exeext
5309 }; then
5310 { $as_echo "$as_me:$LINENO: result: yes" >&5
5311 $as_echo "yes" >&6; }; python_ok=yes
5312 else
5313 $as_echo "$as_me: failed program was:" >&5
5314 sed 's/^/| /' conftest.$ac_ext >&5
5316 { $as_echo "$as_me:$LINENO: result: no: PYTHON DISABLED" >&5
5317 $as_echo "no: PYTHON DISABLED" >&6; }; python_ok=no
5320 rm -rf conftest.dSYM
5321 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5322 conftest$ac_exeext conftest.$ac_ext
5323 CFLAGS=$cflags_save
5324 LIBS=$libs_save
5325 if test $python_ok = yes; then
5326 cat >>confdefs.h <<\_ACEOF
5327 #define FEAT_PYTHON 1
5328 _ACEOF
5330 else
5331 LIBS=$libs_save_old
5332 PYTHON_SRC=
5333 PYTHON_OBJ=
5334 PYTHON_LIBS=
5335 PYTHON_CFLAGS=
5339 else
5340 { $as_echo "$as_me:$LINENO: result: too old" >&5
5341 $as_echo "too old" >&6; }
5352 { $as_echo "$as_me:$LINENO: checking --enable-tclinterp argument" >&5
5353 $as_echo_n "checking --enable-tclinterp argument... " >&6; }
5354 # Check whether --enable-tclinterp was given.
5355 if test "${enable_tclinterp+set}" = set; then
5356 enableval=$enable_tclinterp;
5357 else
5358 enable_tclinterp="no"
5361 { $as_echo "$as_me:$LINENO: result: $enable_tclinterp" >&5
5362 $as_echo "$enable_tclinterp" >&6; }
5364 if test "$enable_tclinterp" = "yes"; then
5366 { $as_echo "$as_me:$LINENO: checking --with-tclsh argument" >&5
5367 $as_echo_n "checking --with-tclsh argument... " >&6; }
5369 # Check whether --with-tclsh was given.
5370 if test "${with_tclsh+set}" = set; then
5371 withval=$with_tclsh; tclsh_name="$withval"; { $as_echo "$as_me:$LINENO: result: $tclsh_name" >&5
5372 $as_echo "$tclsh_name" >&6; }
5373 else
5374 tclsh_name="tclsh8.5"; { $as_echo "$as_me:$LINENO: result: no" >&5
5375 $as_echo "no" >&6; }
5378 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5379 set dummy $tclsh_name; ac_word=$2
5380 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5381 $as_echo_n "checking for $ac_word... " >&6; }
5382 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5383 $as_echo_n "(cached) " >&6
5384 else
5385 case $vi_cv_path_tcl in
5386 [\\/]* | ?:[\\/]*)
5387 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5391 for as_dir in $PATH
5393 IFS=$as_save_IFS
5394 test -z "$as_dir" && as_dir=.
5395 for ac_exec_ext in '' $ac_executable_extensions; do
5396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5397 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5398 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5399 break 2
5401 done
5402 done
5403 IFS=$as_save_IFS
5406 esac
5408 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5409 if test -n "$vi_cv_path_tcl"; then
5410 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5411 $as_echo "$vi_cv_path_tcl" >&6; }
5412 else
5413 { $as_echo "$as_me:$LINENO: result: no" >&5
5414 $as_echo "no" >&6; }
5420 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.5"; then
5421 tclsh_name="tclsh8.4"
5422 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5423 set dummy $tclsh_name; ac_word=$2
5424 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5425 $as_echo_n "checking for $ac_word... " >&6; }
5426 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5427 $as_echo_n "(cached) " >&6
5428 else
5429 case $vi_cv_path_tcl in
5430 [\\/]* | ?:[\\/]*)
5431 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5435 for as_dir in $PATH
5437 IFS=$as_save_IFS
5438 test -z "$as_dir" && as_dir=.
5439 for ac_exec_ext in '' $ac_executable_extensions; do
5440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5441 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5442 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5443 break 2
5445 done
5446 done
5447 IFS=$as_save_IFS
5450 esac
5452 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5453 if test -n "$vi_cv_path_tcl"; then
5454 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5455 $as_echo "$vi_cv_path_tcl" >&6; }
5456 else
5457 { $as_echo "$as_me:$LINENO: result: no" >&5
5458 $as_echo "no" >&6; }
5463 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.4"; then
5464 tclsh_name="tclsh8.2"
5465 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5466 set dummy $tclsh_name; ac_word=$2
5467 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5468 $as_echo_n "checking for $ac_word... " >&6; }
5469 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5470 $as_echo_n "(cached) " >&6
5471 else
5472 case $vi_cv_path_tcl in
5473 [\\/]* | ?:[\\/]*)
5474 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5478 for as_dir in $PATH
5480 IFS=$as_save_IFS
5481 test -z "$as_dir" && as_dir=.
5482 for ac_exec_ext in '' $ac_executable_extensions; do
5483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5484 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5485 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5486 break 2
5488 done
5489 done
5490 IFS=$as_save_IFS
5493 esac
5495 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5496 if test -n "$vi_cv_path_tcl"; then
5497 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5498 $as_echo "$vi_cv_path_tcl" >&6; }
5499 else
5500 { $as_echo "$as_me:$LINENO: result: no" >&5
5501 $as_echo "no" >&6; }
5506 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.2"; then
5507 tclsh_name="tclsh8.0"
5508 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5509 set dummy $tclsh_name; ac_word=$2
5510 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5511 $as_echo_n "checking for $ac_word... " >&6; }
5512 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5513 $as_echo_n "(cached) " >&6
5514 else
5515 case $vi_cv_path_tcl in
5516 [\\/]* | ?:[\\/]*)
5517 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5521 for as_dir in $PATH
5523 IFS=$as_save_IFS
5524 test -z "$as_dir" && as_dir=.
5525 for ac_exec_ext in '' $ac_executable_extensions; do
5526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5527 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5528 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5529 break 2
5531 done
5532 done
5533 IFS=$as_save_IFS
5536 esac
5538 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5539 if test -n "$vi_cv_path_tcl"; then
5540 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5541 $as_echo "$vi_cv_path_tcl" >&6; }
5542 else
5543 { $as_echo "$as_me:$LINENO: result: no" >&5
5544 $as_echo "no" >&6; }
5549 if test "X$vi_cv_path_tcl" = "X"; then
5550 tclsh_name="tclsh"
5551 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5552 set dummy $tclsh_name; ac_word=$2
5553 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5554 $as_echo_n "checking for $ac_word... " >&6; }
5555 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5556 $as_echo_n "(cached) " >&6
5557 else
5558 case $vi_cv_path_tcl in
5559 [\\/]* | ?:[\\/]*)
5560 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5564 for as_dir in $PATH
5566 IFS=$as_save_IFS
5567 test -z "$as_dir" && as_dir=.
5568 for ac_exec_ext in '' $ac_executable_extensions; do
5569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5570 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5571 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5572 break 2
5574 done
5575 done
5576 IFS=$as_save_IFS
5579 esac
5581 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5582 if test -n "$vi_cv_path_tcl"; then
5583 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5584 $as_echo "$vi_cv_path_tcl" >&6; }
5585 else
5586 { $as_echo "$as_me:$LINENO: result: no" >&5
5587 $as_echo "no" >&6; }
5592 if test "X$vi_cv_path_tcl" != "X"; then
5593 { $as_echo "$as_me:$LINENO: checking Tcl version" >&5
5594 $as_echo_n "checking Tcl version... " >&6; }
5595 if echo 'exit [expr [info tclversion] < 8.0]' | $vi_cv_path_tcl - ; then
5596 tclver=`echo 'puts [info tclversion]' | $vi_cv_path_tcl -`
5597 { $as_echo "$as_me:$LINENO: result: $tclver - OK" >&5
5598 $as_echo "$tclver - OK" >&6; };
5599 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 -`
5601 { $as_echo "$as_me:$LINENO: checking for location of Tcl include" >&5
5602 $as_echo_n "checking for location of Tcl include... " >&6; }
5603 if test "x$MACOSX" != "xyes"; then
5604 tclinc="$tclloc/include $tclloc/include/tcl $tclloc/include/tcl$tclver /usr/local/include /usr/local/include/tcl$tclver /usr/include /usr/include/tcl$tclver"
5605 else
5606 tclinc="/System/Library/Frameworks/Tcl.framework/Headers"
5608 TCL_INC=
5609 for try in $tclinc; do
5610 if test -f "$try/tcl.h"; then
5611 { $as_echo "$as_me:$LINENO: result: $try/tcl.h" >&5
5612 $as_echo "$try/tcl.h" >&6; }
5613 TCL_INC=$try
5614 break
5616 done
5617 if test -z "$TCL_INC"; then
5618 { $as_echo "$as_me:$LINENO: result: <not found>" >&5
5619 $as_echo "<not found>" >&6; }
5620 SKIP_TCL=YES
5622 if test -z "$SKIP_TCL"; then
5623 { $as_echo "$as_me:$LINENO: checking for location of tclConfig.sh script" >&5
5624 $as_echo_n "checking for location of tclConfig.sh script... " >&6; }
5625 if test "x$MACOSX" != "xyes"; then
5626 tclcnf=`echo $tclinc | sed s/include/lib/g`
5627 tclcnf="$tclcnf `echo $tclinc | sed s/include/lib64/g`"
5628 else
5629 tclcnf="/System/Library/Frameworks/Tcl.framework"
5631 for try in $tclcnf; do
5632 if test -f $try/tclConfig.sh; then
5633 { $as_echo "$as_me:$LINENO: result: $try/tclConfig.sh" >&5
5634 $as_echo "$try/tclConfig.sh" >&6; }
5635 . $try/tclConfig.sh
5636 TCL_LIBS=`eval echo "$TCL_LIB_SPEC $TCL_LIBS"`
5637 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'`
5638 break
5640 done
5641 if test -z "$TCL_LIBS"; then
5642 { $as_echo "$as_me:$LINENO: result: <not found>" >&5
5643 $as_echo "<not found>" >&6; }
5644 { $as_echo "$as_me:$LINENO: checking for Tcl library by myself" >&5
5645 $as_echo_n "checking for Tcl library by myself... " >&6; }
5646 tcllib=`echo $tclinc | sed s/include/lib/g`
5647 tcllib="$tcllib `echo $tclinc | sed s/include/lib64/g`"
5648 for ext in .so .a ; do
5649 for ver in "" $tclver ; do
5650 for try in $tcllib ; do
5651 trylib=tcl$ver$ext
5652 if test -f $try/lib$trylib ; then
5653 { $as_echo "$as_me:$LINENO: result: $try/lib$trylib" >&5
5654 $as_echo "$try/lib$trylib" >&6; }
5655 TCL_LIBS="-L$try -ltcl$ver -ldl -lm"
5656 if test "`(uname) 2>/dev/null`" = SunOS &&
5657 uname -r | grep '^5' >/dev/null; then
5658 TCL_LIBS="$TCL_LIBS -R $try"
5660 break 3
5662 done
5663 done
5664 done
5665 if test -z "$TCL_LIBS"; then
5666 { $as_echo "$as_me:$LINENO: result: <not found>" >&5
5667 $as_echo "<not found>" >&6; }
5668 SKIP_TCL=YES
5671 if test -z "$SKIP_TCL"; then
5672 cat >>confdefs.h <<\_ACEOF
5673 #define FEAT_TCL 1
5674 _ACEOF
5676 TCL_SRC=if_tcl.c
5677 TCL_OBJ=objects/if_tcl.o
5678 TCL_PRO=if_tcl.pro
5679 TCL_CFLAGS="-I$TCL_INC $TCL_DEFS"
5682 else
5683 { $as_echo "$as_me:$LINENO: result: too old; need Tcl version 8.0 or later" >&5
5684 $as_echo "too old; need Tcl version 8.0 or later" >&6; }
5694 { $as_echo "$as_me:$LINENO: checking --enable-rubyinterp argument" >&5
5695 $as_echo_n "checking --enable-rubyinterp argument... " >&6; }
5696 # Check whether --enable-rubyinterp was given.
5697 if test "${enable_rubyinterp+set}" = set; then
5698 enableval=$enable_rubyinterp;
5699 else
5700 enable_rubyinterp="no"
5703 { $as_echo "$as_me:$LINENO: result: $enable_rubyinterp" >&5
5704 $as_echo "$enable_rubyinterp" >&6; }
5705 if test "$enable_rubyinterp" = "yes"; then
5707 # Extract the first word of "ruby", so it can be a program name with args.
5708 set dummy ruby; ac_word=$2
5709 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5710 $as_echo_n "checking for $ac_word... " >&6; }
5711 if test "${ac_cv_path_vi_cv_path_ruby+set}" = set; then
5712 $as_echo_n "(cached) " >&6
5713 else
5714 case $vi_cv_path_ruby in
5715 [\\/]* | ?:[\\/]*)
5716 ac_cv_path_vi_cv_path_ruby="$vi_cv_path_ruby" # Let the user override the test with a path.
5719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5720 for as_dir in $PATH
5722 IFS=$as_save_IFS
5723 test -z "$as_dir" && as_dir=.
5724 for ac_exec_ext in '' $ac_executable_extensions; do
5725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5726 ac_cv_path_vi_cv_path_ruby="$as_dir/$ac_word$ac_exec_ext"
5727 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5728 break 2
5730 done
5731 done
5732 IFS=$as_save_IFS
5735 esac
5737 vi_cv_path_ruby=$ac_cv_path_vi_cv_path_ruby
5738 if test -n "$vi_cv_path_ruby"; then
5739 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_ruby" >&5
5740 $as_echo "$vi_cv_path_ruby" >&6; }
5741 else
5742 { $as_echo "$as_me:$LINENO: result: no" >&5
5743 $as_echo "no" >&6; }
5747 if test "X$vi_cv_path_ruby" != "X"; then
5748 { $as_echo "$as_me:$LINENO: checking Ruby version" >&5
5749 $as_echo_n "checking Ruby version... " >&6; }
5750 if $vi_cv_path_ruby -e '(VERSION rescue RUBY_VERSION) >= "1.6.0" or exit 1' >/dev/null 2>/dev/null; then
5751 { $as_echo "$as_me:$LINENO: result: OK" >&5
5752 $as_echo "OK" >&6; }
5753 { $as_echo "$as_me:$LINENO: checking Ruby header files" >&5
5754 $as_echo_n "checking Ruby header files... " >&6; }
5755 rubyhdrdir=`$vi_cv_path_ruby -r mkmf -e 'print Config::CONFIG["archdir"] || $hdrdir' 2>/dev/null`
5756 if test "X$rubyhdrdir" != "X"; then
5757 { $as_echo "$as_me:$LINENO: result: $rubyhdrdir" >&5
5758 $as_echo "$rubyhdrdir" >&6; }
5759 RUBY_CFLAGS="-I$rubyhdrdir"
5760 rubylibs=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LIBS"]'`
5761 if test "X$rubylibs" != "X"; then
5762 RUBY_LIBS="$rubylibs"
5764 librubyarg=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["LIBRUBYARG"])'`
5765 if test -f "$rubyhdrdir/$librubyarg"; then
5766 librubyarg="$rubyhdrdir/$librubyarg"
5767 else
5768 rubylibdir=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["libdir"])'`
5769 if test -f "$rubylibdir/$librubyarg"; then
5770 librubyarg="$rubylibdir/$librubyarg"
5771 elif test "$librubyarg" = "libruby.a"; then
5772 librubyarg="-lruby"
5773 else
5774 librubyarg=`$vi_cv_path_ruby -r rbconfig -e "print '$librubyarg'.gsub(/-L\./, %'-L#{Config.expand(Config::CONFIG[\"libdir\"])}')"`
5778 if test "X$librubyarg" != "X"; then
5779 RUBY_LIBS="$librubyarg $RUBY_LIBS"
5781 rubyldflags=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LDFLAGS"]'`
5782 if test "X$rubyldflags" != "X"; then
5783 rubyldflags=`echo "$rubyldflags" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//'`
5784 if test "X$rubyldflags" != "X"; then
5785 LDFLAGS="$rubyldflags $LDFLAGS"
5788 RUBY_SRC="if_ruby.c"
5789 RUBY_OBJ="objects/if_ruby.o"
5790 RUBY_PRO="if_ruby.pro"
5791 cat >>confdefs.h <<\_ACEOF
5792 #define FEAT_RUBY 1
5793 _ACEOF
5795 else
5796 { $as_echo "$as_me:$LINENO: result: not found" >&5
5797 $as_echo "not found" >&6; }
5799 else
5800 { $as_echo "$as_me:$LINENO: result: too old; need Ruby version 1.6.0 or later" >&5
5801 $as_echo "too old; need Ruby version 1.6.0 or later" >&6; }
5811 { $as_echo "$as_me:$LINENO: checking --enable-cscope argument" >&5
5812 $as_echo_n "checking --enable-cscope argument... " >&6; }
5813 # Check whether --enable-cscope was given.
5814 if test "${enable_cscope+set}" = set; then
5815 enableval=$enable_cscope;
5816 else
5817 enable_cscope="no"
5820 { $as_echo "$as_me:$LINENO: result: $enable_cscope" >&5
5821 $as_echo "$enable_cscope" >&6; }
5822 if test "$enable_cscope" = "yes"; then
5823 cat >>confdefs.h <<\_ACEOF
5824 #define FEAT_CSCOPE 1
5825 _ACEOF
5829 { $as_echo "$as_me:$LINENO: checking --enable-workshop argument" >&5
5830 $as_echo_n "checking --enable-workshop argument... " >&6; }
5831 # Check whether --enable-workshop was given.
5832 if test "${enable_workshop+set}" = set; then
5833 enableval=$enable_workshop;
5834 else
5835 enable_workshop="no"
5838 { $as_echo "$as_me:$LINENO: result: $enable_workshop" >&5
5839 $as_echo "$enable_workshop" >&6; }
5840 if test "$enable_workshop" = "yes"; then
5841 cat >>confdefs.h <<\_ACEOF
5842 #define FEAT_SUN_WORKSHOP 1
5843 _ACEOF
5845 WORKSHOP_SRC="workshop.c integration.c"
5847 WORKSHOP_OBJ="objects/workshop.o objects/integration.o"
5849 if test "${enable_gui-xxx}" = xxx; then
5850 enable_gui=motif
5854 { $as_echo "$as_me:$LINENO: checking --disable-netbeans argument" >&5
5855 $as_echo_n "checking --disable-netbeans argument... " >&6; }
5856 # Check whether --enable-netbeans was given.
5857 if test "${enable_netbeans+set}" = set; then
5858 enableval=$enable_netbeans;
5859 else
5860 enable_netbeans="yes"
5863 if test "$enable_netbeans" = "yes"; then
5864 { $as_echo "$as_me:$LINENO: result: no" >&5
5865 $as_echo "no" >&6; }
5867 { $as_echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
5868 $as_echo_n "checking for socket in -lsocket... " >&6; }
5869 if test "${ac_cv_lib_socket_socket+set}" = set; then
5870 $as_echo_n "(cached) " >&6
5871 else
5872 ac_check_lib_save_LIBS=$LIBS
5873 LIBS="-lsocket $LIBS"
5874 cat >conftest.$ac_ext <<_ACEOF
5875 /* confdefs.h. */
5876 _ACEOF
5877 cat confdefs.h >>conftest.$ac_ext
5878 cat >>conftest.$ac_ext <<_ACEOF
5879 /* end confdefs.h. */
5881 /* Override any GCC internal prototype to avoid an error.
5882 Use char because int might match the return type of a GCC
5883 builtin and then its argument prototype would still apply. */
5884 #ifdef __cplusplus
5885 extern "C"
5886 #endif
5887 char socket ();
5889 main ()
5891 return socket ();
5893 return 0;
5895 _ACEOF
5896 rm -f conftest.$ac_objext conftest$ac_exeext
5897 if { (ac_try="$ac_link"
5898 case "(($ac_try" in
5899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5900 *) ac_try_echo=$ac_try;;
5901 esac
5902 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5903 $as_echo "$ac_try_echo") >&5
5904 (eval "$ac_link") 2>conftest.er1
5905 ac_status=$?
5906 grep -v '^ *+' conftest.er1 >conftest.err
5907 rm -f conftest.er1
5908 cat conftest.err >&5
5909 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5910 (exit $ac_status); } && {
5911 test -z "$ac_c_werror_flag" ||
5912 test ! -s conftest.err
5913 } && test -s conftest$ac_exeext && {
5914 test "$cross_compiling" = yes ||
5915 $as_test_x conftest$ac_exeext
5916 }; then
5917 ac_cv_lib_socket_socket=yes
5918 else
5919 $as_echo "$as_me: failed program was:" >&5
5920 sed 's/^/| /' conftest.$ac_ext >&5
5922 ac_cv_lib_socket_socket=no
5925 rm -rf conftest.dSYM
5926 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5927 conftest$ac_exeext conftest.$ac_ext
5928 LIBS=$ac_check_lib_save_LIBS
5930 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
5931 $as_echo "$ac_cv_lib_socket_socket" >&6; }
5932 if test "x$ac_cv_lib_socket_socket" = x""yes; then
5933 cat >>confdefs.h <<_ACEOF
5934 #define HAVE_LIBSOCKET 1
5935 _ACEOF
5937 LIBS="-lsocket $LIBS"
5942 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5943 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
5944 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5945 $as_echo_n "(cached) " >&6
5946 else
5947 ac_check_lib_save_LIBS=$LIBS
5948 LIBS="-lnsl $LIBS"
5949 cat >conftest.$ac_ext <<_ACEOF
5950 /* confdefs.h. */
5951 _ACEOF
5952 cat confdefs.h >>conftest.$ac_ext
5953 cat >>conftest.$ac_ext <<_ACEOF
5954 /* end confdefs.h. */
5956 /* Override any GCC internal prototype to avoid an error.
5957 Use char because int might match the return type of a GCC
5958 builtin and then its argument prototype would still apply. */
5959 #ifdef __cplusplus
5960 extern "C"
5961 #endif
5962 char gethostbyname ();
5964 main ()
5966 return gethostbyname ();
5968 return 0;
5970 _ACEOF
5971 rm -f conftest.$ac_objext conftest$ac_exeext
5972 if { (ac_try="$ac_link"
5973 case "(($ac_try" in
5974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5975 *) ac_try_echo=$ac_try;;
5976 esac
5977 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5978 $as_echo "$ac_try_echo") >&5
5979 (eval "$ac_link") 2>conftest.er1
5980 ac_status=$?
5981 grep -v '^ *+' conftest.er1 >conftest.err
5982 rm -f conftest.er1
5983 cat conftest.err >&5
5984 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5985 (exit $ac_status); } && {
5986 test -z "$ac_c_werror_flag" ||
5987 test ! -s conftest.err
5988 } && test -s conftest$ac_exeext && {
5989 test "$cross_compiling" = yes ||
5990 $as_test_x conftest$ac_exeext
5991 }; then
5992 ac_cv_lib_nsl_gethostbyname=yes
5993 else
5994 $as_echo "$as_me: failed program was:" >&5
5995 sed 's/^/| /' conftest.$ac_ext >&5
5997 ac_cv_lib_nsl_gethostbyname=no
6000 rm -rf conftest.dSYM
6001 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6002 conftest$ac_exeext conftest.$ac_ext
6003 LIBS=$ac_check_lib_save_LIBS
6005 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6006 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
6007 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then
6008 cat >>confdefs.h <<_ACEOF
6009 #define HAVE_LIBNSL 1
6010 _ACEOF
6012 LIBS="-lnsl $LIBS"
6016 { $as_echo "$as_me:$LINENO: checking whether compiling netbeans integration is possible" >&5
6017 $as_echo_n "checking whether compiling netbeans integration is possible... " >&6; }
6018 cat >conftest.$ac_ext <<_ACEOF
6019 /* confdefs.h. */
6020 _ACEOF
6021 cat confdefs.h >>conftest.$ac_ext
6022 cat >>conftest.$ac_ext <<_ACEOF
6023 /* end confdefs.h. */
6025 #include <stdio.h>
6026 #include <stdlib.h>
6027 #include <stdarg.h>
6028 #include <fcntl.h>
6029 #include <netdb.h>
6030 #include <netinet/in.h>
6031 #include <errno.h>
6032 #include <sys/types.h>
6033 #include <sys/socket.h>
6034 /* Check bitfields */
6035 struct nbbuf {
6036 unsigned int initDone:1;
6037 ushort signmaplen;
6041 main ()
6044 /* Check creating a socket. */
6045 struct sockaddr_in server;
6046 (void)socket(AF_INET, SOCK_STREAM, 0);
6047 (void)htons(100);
6048 (void)gethostbyname("microsoft.com");
6049 if (errno == ECONNREFUSED)
6050 (void)connect(1, (struct sockaddr *)&server, sizeof(server));
6053 return 0;
6055 _ACEOF
6056 rm -f conftest.$ac_objext conftest$ac_exeext
6057 if { (ac_try="$ac_link"
6058 case "(($ac_try" in
6059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6060 *) ac_try_echo=$ac_try;;
6061 esac
6062 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6063 $as_echo "$ac_try_echo") >&5
6064 (eval "$ac_link") 2>conftest.er1
6065 ac_status=$?
6066 grep -v '^ *+' conftest.er1 >conftest.err
6067 rm -f conftest.er1
6068 cat conftest.err >&5
6069 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6070 (exit $ac_status); } && {
6071 test -z "$ac_c_werror_flag" ||
6072 test ! -s conftest.err
6073 } && test -s conftest$ac_exeext && {
6074 test "$cross_compiling" = yes ||
6075 $as_test_x conftest$ac_exeext
6076 }; then
6077 { $as_echo "$as_me:$LINENO: result: yes" >&5
6078 $as_echo "yes" >&6; }
6079 else
6080 $as_echo "$as_me: failed program was:" >&5
6081 sed 's/^/| /' conftest.$ac_ext >&5
6083 { $as_echo "$as_me:$LINENO: result: no" >&5
6084 $as_echo "no" >&6; }; enable_netbeans="no"
6087 rm -rf conftest.dSYM
6088 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6089 conftest$ac_exeext conftest.$ac_ext
6090 else
6091 { $as_echo "$as_me:$LINENO: result: yes" >&5
6092 $as_echo "yes" >&6; }
6094 if test "$enable_netbeans" = "yes"; then
6095 cat >>confdefs.h <<\_ACEOF
6096 #define FEAT_NETBEANS_INTG 1
6097 _ACEOF
6099 NETBEANS_SRC="netbeans.c"
6101 NETBEANS_OBJ="objects/netbeans.o"
6105 { $as_echo "$as_me:$LINENO: checking --enable-sniff argument" >&5
6106 $as_echo_n "checking --enable-sniff argument... " >&6; }
6107 # Check whether --enable-sniff was given.
6108 if test "${enable_sniff+set}" = set; then
6109 enableval=$enable_sniff;
6110 else
6111 enable_sniff="no"
6114 { $as_echo "$as_me:$LINENO: result: $enable_sniff" >&5
6115 $as_echo "$enable_sniff" >&6; }
6116 if test "$enable_sniff" = "yes"; then
6117 cat >>confdefs.h <<\_ACEOF
6118 #define FEAT_SNIFF 1
6119 _ACEOF
6121 SNIFF_SRC="if_sniff.c"
6123 SNIFF_OBJ="objects/if_sniff.o"
6127 { $as_echo "$as_me:$LINENO: checking --enable-multibyte argument" >&5
6128 $as_echo_n "checking --enable-multibyte argument... " >&6; }
6129 # Check whether --enable-multibyte was given.
6130 if test "${enable_multibyte+set}" = set; then
6131 enableval=$enable_multibyte;
6132 else
6133 enable_multibyte="no"
6136 { $as_echo "$as_me:$LINENO: result: $enable_multibyte" >&5
6137 $as_echo "$enable_multibyte" >&6; }
6138 if test "$enable_multibyte" = "yes"; then
6139 cat >>confdefs.h <<\_ACEOF
6140 #define FEAT_MBYTE 1
6141 _ACEOF
6145 { $as_echo "$as_me:$LINENO: checking --enable-hangulinput argument" >&5
6146 $as_echo_n "checking --enable-hangulinput argument... " >&6; }
6147 # Check whether --enable-hangulinput was given.
6148 if test "${enable_hangulinput+set}" = set; then
6149 enableval=$enable_hangulinput;
6150 else
6151 enable_hangulinput="no"
6154 { $as_echo "$as_me:$LINENO: result: $enable_hangulinput" >&5
6155 $as_echo "$enable_hangulinput" >&6; }
6157 { $as_echo "$as_me:$LINENO: checking --enable-xim argument" >&5
6158 $as_echo_n "checking --enable-xim argument... " >&6; }
6159 # Check whether --enable-xim was given.
6160 if test "${enable_xim+set}" = set; then
6161 enableval=$enable_xim; { $as_echo "$as_me:$LINENO: result: $enable_xim" >&5
6162 $as_echo "$enable_xim" >&6; }
6163 else
6164 enable_xim="auto"; { $as_echo "$as_me:$LINENO: result: defaulting to auto" >&5
6165 $as_echo "defaulting to auto" >&6; }
6169 { $as_echo "$as_me:$LINENO: checking --enable-fontset argument" >&5
6170 $as_echo_n "checking --enable-fontset argument... " >&6; }
6171 # Check whether --enable-fontset was given.
6172 if test "${enable_fontset+set}" = set; then
6173 enableval=$enable_fontset;
6174 else
6175 enable_fontset="no"
6178 { $as_echo "$as_me:$LINENO: result: $enable_fontset" >&5
6179 $as_echo "$enable_fontset" >&6; }
6181 test -z "$with_x" && with_x=yes
6182 test "${enable_gui-yes}" != no -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && with_x=yes
6183 if test "$with_x" = no; then
6184 { $as_echo "$as_me:$LINENO: result: defaulting to: don't HAVE_X11" >&5
6185 $as_echo "defaulting to: don't HAVE_X11" >&6; }
6186 else
6188 # Extract the first word of "xmkmf", so it can be a program name with args.
6189 set dummy xmkmf; ac_word=$2
6190 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6191 $as_echo_n "checking for $ac_word... " >&6; }
6192 if test "${ac_cv_path_xmkmfpath+set}" = set; then
6193 $as_echo_n "(cached) " >&6
6194 else
6195 case $xmkmfpath in
6196 [\\/]* | ?:[\\/]*)
6197 ac_cv_path_xmkmfpath="$xmkmfpath" # Let the user override the test with a path.
6200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6201 for as_dir in $PATH
6203 IFS=$as_save_IFS
6204 test -z "$as_dir" && as_dir=.
6205 for ac_exec_ext in '' $ac_executable_extensions; do
6206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6207 ac_cv_path_xmkmfpath="$as_dir/$ac_word$ac_exec_ext"
6208 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6209 break 2
6211 done
6212 done
6213 IFS=$as_save_IFS
6216 esac
6218 xmkmfpath=$ac_cv_path_xmkmfpath
6219 if test -n "$xmkmfpath"; then
6220 { $as_echo "$as_me:$LINENO: result: $xmkmfpath" >&5
6221 $as_echo "$xmkmfpath" >&6; }
6222 else
6223 { $as_echo "$as_me:$LINENO: result: no" >&5
6224 $as_echo "no" >&6; }
6229 { $as_echo "$as_me:$LINENO: checking for X" >&5
6230 $as_echo_n "checking for X... " >&6; }
6233 # Check whether --with-x was given.
6234 if test "${with_x+set}" = set; then
6235 withval=$with_x;
6238 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6239 if test "x$with_x" = xno; then
6240 # The user explicitly disabled X.
6241 have_x=disabled
6242 else
6243 case $x_includes,$x_libraries in #(
6244 *\'*) { { $as_echo "$as_me:$LINENO: error: cannot use X directory names containing '" >&5
6245 $as_echo "$as_me: error: cannot use X directory names containing '" >&2;}
6246 { (exit 1); exit 1; }; };; #(
6247 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
6248 $as_echo_n "(cached) " >&6
6249 else
6250 # One or both of the vars are not set, and there is no cached value.
6251 ac_x_includes=no ac_x_libraries=no
6252 rm -f -r conftest.dir
6253 if mkdir conftest.dir; then
6254 cd conftest.dir
6255 cat >Imakefile <<'_ACEOF'
6256 incroot:
6257 @echo incroot='${INCROOT}'
6258 usrlibdir:
6259 @echo usrlibdir='${USRLIBDIR}'
6260 libdir:
6261 @echo libdir='${LIBDIR}'
6262 _ACEOF
6263 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
6264 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6265 for ac_var in incroot usrlibdir libdir; do
6266 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
6267 done
6268 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6269 for ac_extension in a so sl dylib la dll; do
6270 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
6271 test -f "$ac_im_libdir/libX11.$ac_extension"; then
6272 ac_im_usrlibdir=$ac_im_libdir; break
6274 done
6275 # Screen out bogus values from the imake configuration. They are
6276 # bogus both because they are the default anyway, and because
6277 # using them would break gcc on systems where it needs fixed includes.
6278 case $ac_im_incroot in
6279 /usr/include) ac_x_includes= ;;
6280 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6281 esac
6282 case $ac_im_usrlibdir in
6283 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
6284 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6285 esac
6287 cd ..
6288 rm -f -r conftest.dir
6291 # Standard set of common directories for X headers.
6292 # Check X11 before X11Rn because it is often a symlink to the current release.
6293 ac_x_header_dirs='
6294 /usr/X11/include
6295 /usr/X11R6/include
6296 /usr/X11R5/include
6297 /usr/X11R4/include
6299 /usr/include/X11
6300 /usr/include/X11R6
6301 /usr/include/X11R5
6302 /usr/include/X11R4
6304 /usr/local/X11/include
6305 /usr/local/X11R6/include
6306 /usr/local/X11R5/include
6307 /usr/local/X11R4/include
6309 /usr/local/include/X11
6310 /usr/local/include/X11R6
6311 /usr/local/include/X11R5
6312 /usr/local/include/X11R4
6314 /usr/X386/include
6315 /usr/x386/include
6316 /usr/XFree86/include/X11
6318 /usr/include
6319 /usr/local/include
6320 /usr/unsupported/include
6321 /usr/athena/include
6322 /usr/local/x11r5/include
6323 /usr/lpp/Xamples/include
6325 /usr/openwin/include
6326 /usr/openwin/share/include'
6328 if test "$ac_x_includes" = no; then
6329 # Guess where to find include files, by looking for Xlib.h.
6330 # First, try using that file with no special directory specified.
6331 cat >conftest.$ac_ext <<_ACEOF
6332 /* confdefs.h. */
6333 _ACEOF
6334 cat confdefs.h >>conftest.$ac_ext
6335 cat >>conftest.$ac_ext <<_ACEOF
6336 /* end confdefs.h. */
6337 #include <X11/Xlib.h>
6338 _ACEOF
6339 if { (ac_try="$ac_cpp conftest.$ac_ext"
6340 case "(($ac_try" in
6341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6342 *) ac_try_echo=$ac_try;;
6343 esac
6344 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6345 $as_echo "$ac_try_echo") >&5
6346 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6347 ac_status=$?
6348 grep -v '^ *+' conftest.er1 >conftest.err
6349 rm -f conftest.er1
6350 cat conftest.err >&5
6351 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6352 (exit $ac_status); } >/dev/null && {
6353 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6354 test ! -s conftest.err
6355 }; then
6356 # We can compile using X headers with no special include directory.
6357 ac_x_includes=
6358 else
6359 $as_echo "$as_me: failed program was:" >&5
6360 sed 's/^/| /' conftest.$ac_ext >&5
6362 for ac_dir in $ac_x_header_dirs; do
6363 if test -r "$ac_dir/X11/Xlib.h"; then
6364 ac_x_includes=$ac_dir
6365 break
6367 done
6370 rm -f conftest.err conftest.$ac_ext
6371 fi # $ac_x_includes = no
6373 if test "$ac_x_libraries" = no; then
6374 # Check for the libraries.
6375 # See if we find them without any special options.
6376 # Don't add to $LIBS permanently.
6377 ac_save_LIBS=$LIBS
6378 LIBS="-lX11 $LIBS"
6379 cat >conftest.$ac_ext <<_ACEOF
6380 /* confdefs.h. */
6381 _ACEOF
6382 cat confdefs.h >>conftest.$ac_ext
6383 cat >>conftest.$ac_ext <<_ACEOF
6384 /* end confdefs.h. */
6385 #include <X11/Xlib.h>
6387 main ()
6389 XrmInitialize ()
6391 return 0;
6393 _ACEOF
6394 rm -f conftest.$ac_objext conftest$ac_exeext
6395 if { (ac_try="$ac_link"
6396 case "(($ac_try" in
6397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6398 *) ac_try_echo=$ac_try;;
6399 esac
6400 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6401 $as_echo "$ac_try_echo") >&5
6402 (eval "$ac_link") 2>conftest.er1
6403 ac_status=$?
6404 grep -v '^ *+' conftest.er1 >conftest.err
6405 rm -f conftest.er1
6406 cat conftest.err >&5
6407 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6408 (exit $ac_status); } && {
6409 test -z "$ac_c_werror_flag" ||
6410 test ! -s conftest.err
6411 } && test -s conftest$ac_exeext && {
6412 test "$cross_compiling" = yes ||
6413 $as_test_x conftest$ac_exeext
6414 }; then
6415 LIBS=$ac_save_LIBS
6416 # We can link X programs with no special library path.
6417 ac_x_libraries=
6418 else
6419 $as_echo "$as_me: failed program was:" >&5
6420 sed 's/^/| /' conftest.$ac_ext >&5
6422 LIBS=$ac_save_LIBS
6423 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6425 # Don't even attempt the hair of trying to link an X program!
6426 for ac_extension in a so sl dylib la dll; do
6427 if test -r "$ac_dir/libX11.$ac_extension"; then
6428 ac_x_libraries=$ac_dir
6429 break 2
6431 done
6432 done
6435 rm -rf conftest.dSYM
6436 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6437 conftest$ac_exeext conftest.$ac_ext
6438 fi # $ac_x_libraries = no
6440 case $ac_x_includes,$ac_x_libraries in #(
6441 no,* | *,no | *\'*)
6442 # Didn't find X, or a directory has "'" in its name.
6443 ac_cv_have_x="have_x=no";; #(
6445 # Record where we found X for the cache.
6446 ac_cv_have_x="have_x=yes\
6447 ac_x_includes='$ac_x_includes'\
6448 ac_x_libraries='$ac_x_libraries'"
6449 esac
6451 ;; #(
6452 *) have_x=yes;;
6453 esac
6454 eval "$ac_cv_have_x"
6455 fi # $with_x != no
6457 if test "$have_x" != yes; then
6458 { $as_echo "$as_me:$LINENO: result: $have_x" >&5
6459 $as_echo "$have_x" >&6; }
6460 no_x=yes
6461 else
6462 # If each of the values was on the command line, it overrides each guess.
6463 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6464 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6465 # Update the cache value to reflect the command line values.
6466 ac_cv_have_x="have_x=yes\
6467 ac_x_includes='$x_includes'\
6468 ac_x_libraries='$x_libraries'"
6469 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6470 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
6473 if test "$no_x" = yes; then
6474 # Not all programs may use this symbol, but it does not hurt to define it.
6476 cat >>confdefs.h <<\_ACEOF
6477 #define X_DISPLAY_MISSING 1
6478 _ACEOF
6480 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6481 else
6482 if test -n "$x_includes"; then
6483 X_CFLAGS="$X_CFLAGS -I$x_includes"
6486 # It would also be nice to do this for all -L options, not just this one.
6487 if test -n "$x_libraries"; then
6488 X_LIBS="$X_LIBS -L$x_libraries"
6489 # For Solaris; some versions of Sun CC require a space after -R and
6490 # others require no space. Words are not sufficient . . . .
6491 { $as_echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
6492 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
6493 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
6494 ac_xsave_c_werror_flag=$ac_c_werror_flag
6495 ac_c_werror_flag=yes
6496 cat >conftest.$ac_ext <<_ACEOF
6497 /* confdefs.h. */
6498 _ACEOF
6499 cat confdefs.h >>conftest.$ac_ext
6500 cat >>conftest.$ac_ext <<_ACEOF
6501 /* end confdefs.h. */
6504 main ()
6508 return 0;
6510 _ACEOF
6511 rm -f conftest.$ac_objext conftest$ac_exeext
6512 if { (ac_try="$ac_link"
6513 case "(($ac_try" in
6514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6515 *) ac_try_echo=$ac_try;;
6516 esac
6517 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6518 $as_echo "$ac_try_echo") >&5
6519 (eval "$ac_link") 2>conftest.er1
6520 ac_status=$?
6521 grep -v '^ *+' conftest.er1 >conftest.err
6522 rm -f conftest.er1
6523 cat conftest.err >&5
6524 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6525 (exit $ac_status); } && {
6526 test -z "$ac_c_werror_flag" ||
6527 test ! -s conftest.err
6528 } && test -s conftest$ac_exeext && {
6529 test "$cross_compiling" = yes ||
6530 $as_test_x conftest$ac_exeext
6531 }; then
6532 { $as_echo "$as_me:$LINENO: result: no" >&5
6533 $as_echo "no" >&6; }
6534 X_LIBS="$X_LIBS -R$x_libraries"
6535 else
6536 $as_echo "$as_me: failed program was:" >&5
6537 sed 's/^/| /' conftest.$ac_ext >&5
6539 LIBS="$ac_xsave_LIBS -R $x_libraries"
6540 cat >conftest.$ac_ext <<_ACEOF
6541 /* confdefs.h. */
6542 _ACEOF
6543 cat confdefs.h >>conftest.$ac_ext
6544 cat >>conftest.$ac_ext <<_ACEOF
6545 /* end confdefs.h. */
6548 main ()
6552 return 0;
6554 _ACEOF
6555 rm -f conftest.$ac_objext conftest$ac_exeext
6556 if { (ac_try="$ac_link"
6557 case "(($ac_try" in
6558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6559 *) ac_try_echo=$ac_try;;
6560 esac
6561 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6562 $as_echo "$ac_try_echo") >&5
6563 (eval "$ac_link") 2>conftest.er1
6564 ac_status=$?
6565 grep -v '^ *+' conftest.er1 >conftest.err
6566 rm -f conftest.er1
6567 cat conftest.err >&5
6568 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6569 (exit $ac_status); } && {
6570 test -z "$ac_c_werror_flag" ||
6571 test ! -s conftest.err
6572 } && test -s conftest$ac_exeext && {
6573 test "$cross_compiling" = yes ||
6574 $as_test_x conftest$ac_exeext
6575 }; then
6576 { $as_echo "$as_me:$LINENO: result: yes" >&5
6577 $as_echo "yes" >&6; }
6578 X_LIBS="$X_LIBS -R $x_libraries"
6579 else
6580 $as_echo "$as_me: failed program was:" >&5
6581 sed 's/^/| /' conftest.$ac_ext >&5
6583 { $as_echo "$as_me:$LINENO: result: neither works" >&5
6584 $as_echo "neither works" >&6; }
6587 rm -rf conftest.dSYM
6588 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6589 conftest$ac_exeext conftest.$ac_ext
6592 rm -rf conftest.dSYM
6593 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6594 conftest$ac_exeext conftest.$ac_ext
6595 ac_c_werror_flag=$ac_xsave_c_werror_flag
6596 LIBS=$ac_xsave_LIBS
6599 # Check for system-dependent libraries X programs must link with.
6600 # Do this before checking for the system-independent R6 libraries
6601 # (-lICE), since we may need -lsocket or whatever for X linking.
6603 if test "$ISC" = yes; then
6604 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
6605 else
6606 # Martyn Johnson says this is needed for Ultrix, if the X
6607 # libraries were built with DECnet support. And Karl Berry says
6608 # the Alpha needs dnet_stub (dnet does not exist).
6609 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
6610 cat >conftest.$ac_ext <<_ACEOF
6611 /* confdefs.h. */
6612 _ACEOF
6613 cat confdefs.h >>conftest.$ac_ext
6614 cat >>conftest.$ac_ext <<_ACEOF
6615 /* end confdefs.h. */
6617 /* Override any GCC internal prototype to avoid an error.
6618 Use char because int might match the return type of a GCC
6619 builtin and then its argument prototype would still apply. */
6620 #ifdef __cplusplus
6621 extern "C"
6622 #endif
6623 char XOpenDisplay ();
6625 main ()
6627 return XOpenDisplay ();
6629 return 0;
6631 _ACEOF
6632 rm -f conftest.$ac_objext conftest$ac_exeext
6633 if { (ac_try="$ac_link"
6634 case "(($ac_try" in
6635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6636 *) ac_try_echo=$ac_try;;
6637 esac
6638 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6639 $as_echo "$ac_try_echo") >&5
6640 (eval "$ac_link") 2>conftest.er1
6641 ac_status=$?
6642 grep -v '^ *+' conftest.er1 >conftest.err
6643 rm -f conftest.er1
6644 cat conftest.err >&5
6645 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6646 (exit $ac_status); } && {
6647 test -z "$ac_c_werror_flag" ||
6648 test ! -s conftest.err
6649 } && test -s conftest$ac_exeext && {
6650 test "$cross_compiling" = yes ||
6651 $as_test_x conftest$ac_exeext
6652 }; then
6654 else
6655 $as_echo "$as_me: failed program was:" >&5
6656 sed 's/^/| /' conftest.$ac_ext >&5
6658 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
6659 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
6660 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
6661 $as_echo_n "(cached) " >&6
6662 else
6663 ac_check_lib_save_LIBS=$LIBS
6664 LIBS="-ldnet $LIBS"
6665 cat >conftest.$ac_ext <<_ACEOF
6666 /* confdefs.h. */
6667 _ACEOF
6668 cat confdefs.h >>conftest.$ac_ext
6669 cat >>conftest.$ac_ext <<_ACEOF
6670 /* end confdefs.h. */
6672 /* Override any GCC internal prototype to avoid an error.
6673 Use char because int might match the return type of a GCC
6674 builtin and then its argument prototype would still apply. */
6675 #ifdef __cplusplus
6676 extern "C"
6677 #endif
6678 char dnet_ntoa ();
6680 main ()
6682 return dnet_ntoa ();
6684 return 0;
6686 _ACEOF
6687 rm -f conftest.$ac_objext conftest$ac_exeext
6688 if { (ac_try="$ac_link"
6689 case "(($ac_try" in
6690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6691 *) ac_try_echo=$ac_try;;
6692 esac
6693 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6694 $as_echo "$ac_try_echo") >&5
6695 (eval "$ac_link") 2>conftest.er1
6696 ac_status=$?
6697 grep -v '^ *+' conftest.er1 >conftest.err
6698 rm -f conftest.er1
6699 cat conftest.err >&5
6700 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6701 (exit $ac_status); } && {
6702 test -z "$ac_c_werror_flag" ||
6703 test ! -s conftest.err
6704 } && test -s conftest$ac_exeext && {
6705 test "$cross_compiling" = yes ||
6706 $as_test_x conftest$ac_exeext
6707 }; then
6708 ac_cv_lib_dnet_dnet_ntoa=yes
6709 else
6710 $as_echo "$as_me: failed program was:" >&5
6711 sed 's/^/| /' conftest.$ac_ext >&5
6713 ac_cv_lib_dnet_dnet_ntoa=no
6716 rm -rf conftest.dSYM
6717 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6718 conftest$ac_exeext conftest.$ac_ext
6719 LIBS=$ac_check_lib_save_LIBS
6721 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6722 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
6723 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then
6724 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
6727 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
6728 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
6729 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
6730 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
6731 $as_echo_n "(cached) " >&6
6732 else
6733 ac_check_lib_save_LIBS=$LIBS
6734 LIBS="-ldnet_stub $LIBS"
6735 cat >conftest.$ac_ext <<_ACEOF
6736 /* confdefs.h. */
6737 _ACEOF
6738 cat confdefs.h >>conftest.$ac_ext
6739 cat >>conftest.$ac_ext <<_ACEOF
6740 /* end confdefs.h. */
6742 /* Override any GCC internal prototype to avoid an error.
6743 Use char because int might match the return type of a GCC
6744 builtin and then its argument prototype would still apply. */
6745 #ifdef __cplusplus
6746 extern "C"
6747 #endif
6748 char dnet_ntoa ();
6750 main ()
6752 return dnet_ntoa ();
6754 return 0;
6756 _ACEOF
6757 rm -f conftest.$ac_objext conftest$ac_exeext
6758 if { (ac_try="$ac_link"
6759 case "(($ac_try" in
6760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6761 *) ac_try_echo=$ac_try;;
6762 esac
6763 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6764 $as_echo "$ac_try_echo") >&5
6765 (eval "$ac_link") 2>conftest.er1
6766 ac_status=$?
6767 grep -v '^ *+' conftest.er1 >conftest.err
6768 rm -f conftest.er1
6769 cat conftest.err >&5
6770 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6771 (exit $ac_status); } && {
6772 test -z "$ac_c_werror_flag" ||
6773 test ! -s conftest.err
6774 } && test -s conftest$ac_exeext && {
6775 test "$cross_compiling" = yes ||
6776 $as_test_x conftest$ac_exeext
6777 }; then
6778 ac_cv_lib_dnet_stub_dnet_ntoa=yes
6779 else
6780 $as_echo "$as_me: failed program was:" >&5
6781 sed 's/^/| /' conftest.$ac_ext >&5
6783 ac_cv_lib_dnet_stub_dnet_ntoa=no
6786 rm -rf conftest.dSYM
6787 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6788 conftest$ac_exeext conftest.$ac_ext
6789 LIBS=$ac_check_lib_save_LIBS
6791 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
6792 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
6793 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then
6794 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
6800 rm -rf conftest.dSYM
6801 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6802 conftest$ac_exeext conftest.$ac_ext
6803 LIBS="$ac_xsave_LIBS"
6805 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
6806 # to get the SysV transport functions.
6807 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
6808 # needs -lnsl.
6809 # The nsl library prevents programs from opening the X display
6810 # on Irix 5.2, according to T.E. Dickey.
6811 # The functions gethostbyname, getservbyname, and inet_addr are
6812 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
6813 { $as_echo "$as_me:$LINENO: checking for gethostbyname" >&5
6814 $as_echo_n "checking for gethostbyname... " >&6; }
6815 if test "${ac_cv_func_gethostbyname+set}" = set; then
6816 $as_echo_n "(cached) " >&6
6817 else
6818 cat >conftest.$ac_ext <<_ACEOF
6819 /* confdefs.h. */
6820 _ACEOF
6821 cat confdefs.h >>conftest.$ac_ext
6822 cat >>conftest.$ac_ext <<_ACEOF
6823 /* end confdefs.h. */
6824 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
6825 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6826 #define gethostbyname innocuous_gethostbyname
6828 /* System header to define __stub macros and hopefully few prototypes,
6829 which can conflict with char gethostbyname (); below.
6830 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6831 <limits.h> exists even on freestanding compilers. */
6833 #ifdef __STDC__
6834 # include <limits.h>
6835 #else
6836 # include <assert.h>
6837 #endif
6839 #undef gethostbyname
6841 /* Override any GCC internal prototype to avoid an error.
6842 Use char because int might match the return type of a GCC
6843 builtin and then its argument prototype would still apply. */
6844 #ifdef __cplusplus
6845 extern "C"
6846 #endif
6847 char gethostbyname ();
6848 /* The GNU C library defines this for functions which it implements
6849 to always fail with ENOSYS. Some functions are actually named
6850 something starting with __ and the normal name is an alias. */
6851 #if defined __stub_gethostbyname || defined __stub___gethostbyname
6852 choke me
6853 #endif
6856 main ()
6858 return gethostbyname ();
6860 return 0;
6862 _ACEOF
6863 rm -f conftest.$ac_objext conftest$ac_exeext
6864 if { (ac_try="$ac_link"
6865 case "(($ac_try" in
6866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6867 *) ac_try_echo=$ac_try;;
6868 esac
6869 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6870 $as_echo "$ac_try_echo") >&5
6871 (eval "$ac_link") 2>conftest.er1
6872 ac_status=$?
6873 grep -v '^ *+' conftest.er1 >conftest.err
6874 rm -f conftest.er1
6875 cat conftest.err >&5
6876 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6877 (exit $ac_status); } && {
6878 test -z "$ac_c_werror_flag" ||
6879 test ! -s conftest.err
6880 } && test -s conftest$ac_exeext && {
6881 test "$cross_compiling" = yes ||
6882 $as_test_x conftest$ac_exeext
6883 }; then
6884 ac_cv_func_gethostbyname=yes
6885 else
6886 $as_echo "$as_me: failed program was:" >&5
6887 sed 's/^/| /' conftest.$ac_ext >&5
6889 ac_cv_func_gethostbyname=no
6892 rm -rf conftest.dSYM
6893 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6894 conftest$ac_exeext conftest.$ac_ext
6896 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
6897 $as_echo "$ac_cv_func_gethostbyname" >&6; }
6899 if test $ac_cv_func_gethostbyname = no; then
6900 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6901 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
6902 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6903 $as_echo_n "(cached) " >&6
6904 else
6905 ac_check_lib_save_LIBS=$LIBS
6906 LIBS="-lnsl $LIBS"
6907 cat >conftest.$ac_ext <<_ACEOF
6908 /* confdefs.h. */
6909 _ACEOF
6910 cat confdefs.h >>conftest.$ac_ext
6911 cat >>conftest.$ac_ext <<_ACEOF
6912 /* end confdefs.h. */
6914 /* Override any GCC internal prototype to avoid an error.
6915 Use char because int might match the return type of a GCC
6916 builtin and then its argument prototype would still apply. */
6917 #ifdef __cplusplus
6918 extern "C"
6919 #endif
6920 char gethostbyname ();
6922 main ()
6924 return gethostbyname ();
6926 return 0;
6928 _ACEOF
6929 rm -f conftest.$ac_objext conftest$ac_exeext
6930 if { (ac_try="$ac_link"
6931 case "(($ac_try" in
6932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6933 *) ac_try_echo=$ac_try;;
6934 esac
6935 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6936 $as_echo "$ac_try_echo") >&5
6937 (eval "$ac_link") 2>conftest.er1
6938 ac_status=$?
6939 grep -v '^ *+' conftest.er1 >conftest.err
6940 rm -f conftest.er1
6941 cat conftest.err >&5
6942 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6943 (exit $ac_status); } && {
6944 test -z "$ac_c_werror_flag" ||
6945 test ! -s conftest.err
6946 } && test -s conftest$ac_exeext && {
6947 test "$cross_compiling" = yes ||
6948 $as_test_x conftest$ac_exeext
6949 }; then
6950 ac_cv_lib_nsl_gethostbyname=yes
6951 else
6952 $as_echo "$as_me: failed program was:" >&5
6953 sed 's/^/| /' conftest.$ac_ext >&5
6955 ac_cv_lib_nsl_gethostbyname=no
6958 rm -rf conftest.dSYM
6959 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6960 conftest$ac_exeext conftest.$ac_ext
6961 LIBS=$ac_check_lib_save_LIBS
6963 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6964 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
6965 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then
6966 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
6969 if test $ac_cv_lib_nsl_gethostbyname = no; then
6970 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
6971 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
6972 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
6973 $as_echo_n "(cached) " >&6
6974 else
6975 ac_check_lib_save_LIBS=$LIBS
6976 LIBS="-lbsd $LIBS"
6977 cat >conftest.$ac_ext <<_ACEOF
6978 /* confdefs.h. */
6979 _ACEOF
6980 cat confdefs.h >>conftest.$ac_ext
6981 cat >>conftest.$ac_ext <<_ACEOF
6982 /* end confdefs.h. */
6984 /* Override any GCC internal prototype to avoid an error.
6985 Use char because int might match the return type of a GCC
6986 builtin and then its argument prototype would still apply. */
6987 #ifdef __cplusplus
6988 extern "C"
6989 #endif
6990 char gethostbyname ();
6992 main ()
6994 return gethostbyname ();
6996 return 0;
6998 _ACEOF
6999 rm -f conftest.$ac_objext conftest$ac_exeext
7000 if { (ac_try="$ac_link"
7001 case "(($ac_try" in
7002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7003 *) ac_try_echo=$ac_try;;
7004 esac
7005 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7006 $as_echo "$ac_try_echo") >&5
7007 (eval "$ac_link") 2>conftest.er1
7008 ac_status=$?
7009 grep -v '^ *+' conftest.er1 >conftest.err
7010 rm -f conftest.er1
7011 cat conftest.err >&5
7012 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7013 (exit $ac_status); } && {
7014 test -z "$ac_c_werror_flag" ||
7015 test ! -s conftest.err
7016 } && test -s conftest$ac_exeext && {
7017 test "$cross_compiling" = yes ||
7018 $as_test_x conftest$ac_exeext
7019 }; then
7020 ac_cv_lib_bsd_gethostbyname=yes
7021 else
7022 $as_echo "$as_me: failed program was:" >&5
7023 sed 's/^/| /' conftest.$ac_ext >&5
7025 ac_cv_lib_bsd_gethostbyname=no
7028 rm -rf conftest.dSYM
7029 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7030 conftest$ac_exeext conftest.$ac_ext
7031 LIBS=$ac_check_lib_save_LIBS
7033 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
7034 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
7035 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then
7036 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7042 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7043 # socket/setsockopt and other routines are undefined under SCO ODT
7044 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7045 # on later versions), says Simon Leinen: it contains gethostby*
7046 # variants that don't use the name server (or something). -lsocket
7047 # must be given before -lnsl if both are needed. We assume that
7048 # if connect needs -lnsl, so does gethostbyname.
7049 { $as_echo "$as_me:$LINENO: checking for connect" >&5
7050 $as_echo_n "checking for connect... " >&6; }
7051 if test "${ac_cv_func_connect+set}" = set; then
7052 $as_echo_n "(cached) " >&6
7053 else
7054 cat >conftest.$ac_ext <<_ACEOF
7055 /* confdefs.h. */
7056 _ACEOF
7057 cat confdefs.h >>conftest.$ac_ext
7058 cat >>conftest.$ac_ext <<_ACEOF
7059 /* end confdefs.h. */
7060 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
7061 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7062 #define connect innocuous_connect
7064 /* System header to define __stub macros and hopefully few prototypes,
7065 which can conflict with char connect (); below.
7066 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7067 <limits.h> exists even on freestanding compilers. */
7069 #ifdef __STDC__
7070 # include <limits.h>
7071 #else
7072 # include <assert.h>
7073 #endif
7075 #undef connect
7077 /* Override any GCC internal prototype to avoid an error.
7078 Use char because int might match the return type of a GCC
7079 builtin and then its argument prototype would still apply. */
7080 #ifdef __cplusplus
7081 extern "C"
7082 #endif
7083 char connect ();
7084 /* The GNU C library defines this for functions which it implements
7085 to always fail with ENOSYS. Some functions are actually named
7086 something starting with __ and the normal name is an alias. */
7087 #if defined __stub_connect || defined __stub___connect
7088 choke me
7089 #endif
7092 main ()
7094 return connect ();
7096 return 0;
7098 _ACEOF
7099 rm -f conftest.$ac_objext conftest$ac_exeext
7100 if { (ac_try="$ac_link"
7101 case "(($ac_try" in
7102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7103 *) ac_try_echo=$ac_try;;
7104 esac
7105 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7106 $as_echo "$ac_try_echo") >&5
7107 (eval "$ac_link") 2>conftest.er1
7108 ac_status=$?
7109 grep -v '^ *+' conftest.er1 >conftest.err
7110 rm -f conftest.er1
7111 cat conftest.err >&5
7112 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7113 (exit $ac_status); } && {
7114 test -z "$ac_c_werror_flag" ||
7115 test ! -s conftest.err
7116 } && test -s conftest$ac_exeext && {
7117 test "$cross_compiling" = yes ||
7118 $as_test_x conftest$ac_exeext
7119 }; then
7120 ac_cv_func_connect=yes
7121 else
7122 $as_echo "$as_me: failed program was:" >&5
7123 sed 's/^/| /' conftest.$ac_ext >&5
7125 ac_cv_func_connect=no
7128 rm -rf conftest.dSYM
7129 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7130 conftest$ac_exeext conftest.$ac_ext
7132 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
7133 $as_echo "$ac_cv_func_connect" >&6; }
7135 if test $ac_cv_func_connect = no; then
7136 { $as_echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
7137 $as_echo_n "checking for connect in -lsocket... " >&6; }
7138 if test "${ac_cv_lib_socket_connect+set}" = set; then
7139 $as_echo_n "(cached) " >&6
7140 else
7141 ac_check_lib_save_LIBS=$LIBS
7142 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7143 cat >conftest.$ac_ext <<_ACEOF
7144 /* confdefs.h. */
7145 _ACEOF
7146 cat confdefs.h >>conftest.$ac_ext
7147 cat >>conftest.$ac_ext <<_ACEOF
7148 /* end confdefs.h. */
7150 /* Override any GCC internal prototype to avoid an error.
7151 Use char because int might match the return type of a GCC
7152 builtin and then its argument prototype would still apply. */
7153 #ifdef __cplusplus
7154 extern "C"
7155 #endif
7156 char connect ();
7158 main ()
7160 return connect ();
7162 return 0;
7164 _ACEOF
7165 rm -f conftest.$ac_objext conftest$ac_exeext
7166 if { (ac_try="$ac_link"
7167 case "(($ac_try" in
7168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7169 *) ac_try_echo=$ac_try;;
7170 esac
7171 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7172 $as_echo "$ac_try_echo") >&5
7173 (eval "$ac_link") 2>conftest.er1
7174 ac_status=$?
7175 grep -v '^ *+' conftest.er1 >conftest.err
7176 rm -f conftest.er1
7177 cat conftest.err >&5
7178 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7179 (exit $ac_status); } && {
7180 test -z "$ac_c_werror_flag" ||
7181 test ! -s conftest.err
7182 } && test -s conftest$ac_exeext && {
7183 test "$cross_compiling" = yes ||
7184 $as_test_x conftest$ac_exeext
7185 }; then
7186 ac_cv_lib_socket_connect=yes
7187 else
7188 $as_echo "$as_me: failed program was:" >&5
7189 sed 's/^/| /' conftest.$ac_ext >&5
7191 ac_cv_lib_socket_connect=no
7194 rm -rf conftest.dSYM
7195 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7196 conftest$ac_exeext conftest.$ac_ext
7197 LIBS=$ac_check_lib_save_LIBS
7199 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
7200 $as_echo "$ac_cv_lib_socket_connect" >&6; }
7201 if test "x$ac_cv_lib_socket_connect" = x""yes; then
7202 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7207 # Guillermo Gomez says -lposix is necessary on A/UX.
7208 { $as_echo "$as_me:$LINENO: checking for remove" >&5
7209 $as_echo_n "checking for remove... " >&6; }
7210 if test "${ac_cv_func_remove+set}" = set; then
7211 $as_echo_n "(cached) " >&6
7212 else
7213 cat >conftest.$ac_ext <<_ACEOF
7214 /* confdefs.h. */
7215 _ACEOF
7216 cat confdefs.h >>conftest.$ac_ext
7217 cat >>conftest.$ac_ext <<_ACEOF
7218 /* end confdefs.h. */
7219 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
7220 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7221 #define remove innocuous_remove
7223 /* System header to define __stub macros and hopefully few prototypes,
7224 which can conflict with char remove (); below.
7225 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7226 <limits.h> exists even on freestanding compilers. */
7228 #ifdef __STDC__
7229 # include <limits.h>
7230 #else
7231 # include <assert.h>
7232 #endif
7234 #undef remove
7236 /* Override any GCC internal prototype to avoid an error.
7237 Use char because int might match the return type of a GCC
7238 builtin and then its argument prototype would still apply. */
7239 #ifdef __cplusplus
7240 extern "C"
7241 #endif
7242 char remove ();
7243 /* The GNU C library defines this for functions which it implements
7244 to always fail with ENOSYS. Some functions are actually named
7245 something starting with __ and the normal name is an alias. */
7246 #if defined __stub_remove || defined __stub___remove
7247 choke me
7248 #endif
7251 main ()
7253 return remove ();
7255 return 0;
7257 _ACEOF
7258 rm -f conftest.$ac_objext conftest$ac_exeext
7259 if { (ac_try="$ac_link"
7260 case "(($ac_try" in
7261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7262 *) ac_try_echo=$ac_try;;
7263 esac
7264 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7265 $as_echo "$ac_try_echo") >&5
7266 (eval "$ac_link") 2>conftest.er1
7267 ac_status=$?
7268 grep -v '^ *+' conftest.er1 >conftest.err
7269 rm -f conftest.er1
7270 cat conftest.err >&5
7271 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7272 (exit $ac_status); } && {
7273 test -z "$ac_c_werror_flag" ||
7274 test ! -s conftest.err
7275 } && test -s conftest$ac_exeext && {
7276 test "$cross_compiling" = yes ||
7277 $as_test_x conftest$ac_exeext
7278 }; then
7279 ac_cv_func_remove=yes
7280 else
7281 $as_echo "$as_me: failed program was:" >&5
7282 sed 's/^/| /' conftest.$ac_ext >&5
7284 ac_cv_func_remove=no
7287 rm -rf conftest.dSYM
7288 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7289 conftest$ac_exeext conftest.$ac_ext
7291 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
7292 $as_echo "$ac_cv_func_remove" >&6; }
7294 if test $ac_cv_func_remove = no; then
7295 { $as_echo "$as_me:$LINENO: checking for remove in -lposix" >&5
7296 $as_echo_n "checking for remove in -lposix... " >&6; }
7297 if test "${ac_cv_lib_posix_remove+set}" = set; then
7298 $as_echo_n "(cached) " >&6
7299 else
7300 ac_check_lib_save_LIBS=$LIBS
7301 LIBS="-lposix $LIBS"
7302 cat >conftest.$ac_ext <<_ACEOF
7303 /* confdefs.h. */
7304 _ACEOF
7305 cat confdefs.h >>conftest.$ac_ext
7306 cat >>conftest.$ac_ext <<_ACEOF
7307 /* end confdefs.h. */
7309 /* Override any GCC internal prototype to avoid an error.
7310 Use char because int might match the return type of a GCC
7311 builtin and then its argument prototype would still apply. */
7312 #ifdef __cplusplus
7313 extern "C"
7314 #endif
7315 char remove ();
7317 main ()
7319 return remove ();
7321 return 0;
7323 _ACEOF
7324 rm -f conftest.$ac_objext conftest$ac_exeext
7325 if { (ac_try="$ac_link"
7326 case "(($ac_try" in
7327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7328 *) ac_try_echo=$ac_try;;
7329 esac
7330 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7331 $as_echo "$ac_try_echo") >&5
7332 (eval "$ac_link") 2>conftest.er1
7333 ac_status=$?
7334 grep -v '^ *+' conftest.er1 >conftest.err
7335 rm -f conftest.er1
7336 cat conftest.err >&5
7337 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7338 (exit $ac_status); } && {
7339 test -z "$ac_c_werror_flag" ||
7340 test ! -s conftest.err
7341 } && test -s conftest$ac_exeext && {
7342 test "$cross_compiling" = yes ||
7343 $as_test_x conftest$ac_exeext
7344 }; then
7345 ac_cv_lib_posix_remove=yes
7346 else
7347 $as_echo "$as_me: failed program was:" >&5
7348 sed 's/^/| /' conftest.$ac_ext >&5
7350 ac_cv_lib_posix_remove=no
7353 rm -rf conftest.dSYM
7354 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7355 conftest$ac_exeext conftest.$ac_ext
7356 LIBS=$ac_check_lib_save_LIBS
7358 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
7359 $as_echo "$ac_cv_lib_posix_remove" >&6; }
7360 if test "x$ac_cv_lib_posix_remove" = x""yes; then
7361 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7366 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7367 { $as_echo "$as_me:$LINENO: checking for shmat" >&5
7368 $as_echo_n "checking for shmat... " >&6; }
7369 if test "${ac_cv_func_shmat+set}" = set; then
7370 $as_echo_n "(cached) " >&6
7371 else
7372 cat >conftest.$ac_ext <<_ACEOF
7373 /* confdefs.h. */
7374 _ACEOF
7375 cat confdefs.h >>conftest.$ac_ext
7376 cat >>conftest.$ac_ext <<_ACEOF
7377 /* end confdefs.h. */
7378 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
7379 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7380 #define shmat innocuous_shmat
7382 /* System header to define __stub macros and hopefully few prototypes,
7383 which can conflict with char shmat (); below.
7384 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7385 <limits.h> exists even on freestanding compilers. */
7387 #ifdef __STDC__
7388 # include <limits.h>
7389 #else
7390 # include <assert.h>
7391 #endif
7393 #undef shmat
7395 /* Override any GCC internal prototype to avoid an error.
7396 Use char because int might match the return type of a GCC
7397 builtin and then its argument prototype would still apply. */
7398 #ifdef __cplusplus
7399 extern "C"
7400 #endif
7401 char shmat ();
7402 /* The GNU C library defines this for functions which it implements
7403 to always fail with ENOSYS. Some functions are actually named
7404 something starting with __ and the normal name is an alias. */
7405 #if defined __stub_shmat || defined __stub___shmat
7406 choke me
7407 #endif
7410 main ()
7412 return shmat ();
7414 return 0;
7416 _ACEOF
7417 rm -f conftest.$ac_objext conftest$ac_exeext
7418 if { (ac_try="$ac_link"
7419 case "(($ac_try" in
7420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7421 *) ac_try_echo=$ac_try;;
7422 esac
7423 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7424 $as_echo "$ac_try_echo") >&5
7425 (eval "$ac_link") 2>conftest.er1
7426 ac_status=$?
7427 grep -v '^ *+' conftest.er1 >conftest.err
7428 rm -f conftest.er1
7429 cat conftest.err >&5
7430 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7431 (exit $ac_status); } && {
7432 test -z "$ac_c_werror_flag" ||
7433 test ! -s conftest.err
7434 } && test -s conftest$ac_exeext && {
7435 test "$cross_compiling" = yes ||
7436 $as_test_x conftest$ac_exeext
7437 }; then
7438 ac_cv_func_shmat=yes
7439 else
7440 $as_echo "$as_me: failed program was:" >&5
7441 sed 's/^/| /' conftest.$ac_ext >&5
7443 ac_cv_func_shmat=no
7446 rm -rf conftest.dSYM
7447 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7448 conftest$ac_exeext conftest.$ac_ext
7450 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
7451 $as_echo "$ac_cv_func_shmat" >&6; }
7453 if test $ac_cv_func_shmat = no; then
7454 { $as_echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
7455 $as_echo_n "checking for shmat in -lipc... " >&6; }
7456 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
7457 $as_echo_n "(cached) " >&6
7458 else
7459 ac_check_lib_save_LIBS=$LIBS
7460 LIBS="-lipc $LIBS"
7461 cat >conftest.$ac_ext <<_ACEOF
7462 /* confdefs.h. */
7463 _ACEOF
7464 cat confdefs.h >>conftest.$ac_ext
7465 cat >>conftest.$ac_ext <<_ACEOF
7466 /* end confdefs.h. */
7468 /* Override any GCC internal prototype to avoid an error.
7469 Use char because int might match the return type of a GCC
7470 builtin and then its argument prototype would still apply. */
7471 #ifdef __cplusplus
7472 extern "C"
7473 #endif
7474 char shmat ();
7476 main ()
7478 return shmat ();
7480 return 0;
7482 _ACEOF
7483 rm -f conftest.$ac_objext conftest$ac_exeext
7484 if { (ac_try="$ac_link"
7485 case "(($ac_try" in
7486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7487 *) ac_try_echo=$ac_try;;
7488 esac
7489 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7490 $as_echo "$ac_try_echo") >&5
7491 (eval "$ac_link") 2>conftest.er1
7492 ac_status=$?
7493 grep -v '^ *+' conftest.er1 >conftest.err
7494 rm -f conftest.er1
7495 cat conftest.err >&5
7496 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7497 (exit $ac_status); } && {
7498 test -z "$ac_c_werror_flag" ||
7499 test ! -s conftest.err
7500 } && test -s conftest$ac_exeext && {
7501 test "$cross_compiling" = yes ||
7502 $as_test_x conftest$ac_exeext
7503 }; then
7504 ac_cv_lib_ipc_shmat=yes
7505 else
7506 $as_echo "$as_me: failed program was:" >&5
7507 sed 's/^/| /' conftest.$ac_ext >&5
7509 ac_cv_lib_ipc_shmat=no
7512 rm -rf conftest.dSYM
7513 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7514 conftest$ac_exeext conftest.$ac_ext
7515 LIBS=$ac_check_lib_save_LIBS
7517 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
7518 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
7519 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then
7520 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7526 # Check for libraries that X11R6 Xt/Xaw programs need.
7527 ac_save_LDFLAGS=$LDFLAGS
7528 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7529 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7530 # check for ICE first), but we must link in the order -lSM -lICE or
7531 # we get undefined symbols. So assume we have SM if we have ICE.
7532 # These have to be linked with before -lX11, unlike the other
7533 # libraries we check for below, so use a different variable.
7534 # John Interrante, Karl Berry
7535 { $as_echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
7536 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
7537 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
7538 $as_echo_n "(cached) " >&6
7539 else
7540 ac_check_lib_save_LIBS=$LIBS
7541 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7542 cat >conftest.$ac_ext <<_ACEOF
7543 /* confdefs.h. */
7544 _ACEOF
7545 cat confdefs.h >>conftest.$ac_ext
7546 cat >>conftest.$ac_ext <<_ACEOF
7547 /* end confdefs.h. */
7549 /* Override any GCC internal prototype to avoid an error.
7550 Use char because int might match the return type of a GCC
7551 builtin and then its argument prototype would still apply. */
7552 #ifdef __cplusplus
7553 extern "C"
7554 #endif
7555 char IceConnectionNumber ();
7557 main ()
7559 return IceConnectionNumber ();
7561 return 0;
7563 _ACEOF
7564 rm -f conftest.$ac_objext conftest$ac_exeext
7565 if { (ac_try="$ac_link"
7566 case "(($ac_try" in
7567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7568 *) ac_try_echo=$ac_try;;
7569 esac
7570 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7571 $as_echo "$ac_try_echo") >&5
7572 (eval "$ac_link") 2>conftest.er1
7573 ac_status=$?
7574 grep -v '^ *+' conftest.er1 >conftest.err
7575 rm -f conftest.er1
7576 cat conftest.err >&5
7577 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7578 (exit $ac_status); } && {
7579 test -z "$ac_c_werror_flag" ||
7580 test ! -s conftest.err
7581 } && test -s conftest$ac_exeext && {
7582 test "$cross_compiling" = yes ||
7583 $as_test_x conftest$ac_exeext
7584 }; then
7585 ac_cv_lib_ICE_IceConnectionNumber=yes
7586 else
7587 $as_echo "$as_me: failed program was:" >&5
7588 sed 's/^/| /' conftest.$ac_ext >&5
7590 ac_cv_lib_ICE_IceConnectionNumber=no
7593 rm -rf conftest.dSYM
7594 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7595 conftest$ac_exeext conftest.$ac_ext
7596 LIBS=$ac_check_lib_save_LIBS
7598 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7599 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
7600 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then
7601 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7604 LDFLAGS=$ac_save_LDFLAGS
7609 if test "$OS390Unix" = "yes"; then
7610 CFLAGS="$CFLAGS -W c,dll"
7611 LDFLAGS="$LDFLAGS -W l,dll"
7612 X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE -lXmu"
7616 if test -d "$x_includes" && test ! -d "$x_libraries"; then
7617 x_libraries=`echo "$x_includes" | sed s/include/lib/`
7618 { $as_echo "$as_me:$LINENO: result: Corrected X libraries to $x_libraries" >&5
7619 $as_echo "Corrected X libraries to $x_libraries" >&6; }
7620 X_LIBS="$X_LIBS -L$x_libraries"
7621 if test "`(uname) 2>/dev/null`" = SunOS &&
7622 uname -r | grep '^5' >/dev/null; then
7623 X_LIBS="$X_LIBS -R $x_libraries"
7627 if test -d "$x_libraries" && test ! -d "$x_includes"; then
7628 x_includes=`echo "$x_libraries" | sed s/lib/include/`
7629 { $as_echo "$as_me:$LINENO: result: Corrected X includes to $x_includes" >&5
7630 $as_echo "Corrected X includes to $x_includes" >&6; }
7631 X_CFLAGS="$X_CFLAGS -I$x_includes"
7634 X_CFLAGS="`echo $X_CFLAGS\ | sed 's%-I/usr/include %%'`"
7635 X_LIBS="`echo $X_LIBS\ | sed 's%-L/usr/lib %%'`"
7636 X_LIBS="`echo $X_LIBS\ | sed -e 's%-R/usr/lib %%' -e 's%-R /usr/lib %%'`"
7639 { $as_echo "$as_me:$LINENO: checking if X11 header files can be found" >&5
7640 $as_echo_n "checking if X11 header files can be found... " >&6; }
7641 cflags_save=$CFLAGS
7642 CFLAGS="$CFLAGS $X_CFLAGS"
7643 cat >conftest.$ac_ext <<_ACEOF
7644 /* confdefs.h. */
7645 _ACEOF
7646 cat confdefs.h >>conftest.$ac_ext
7647 cat >>conftest.$ac_ext <<_ACEOF
7648 /* end confdefs.h. */
7649 #include <X11/Xlib.h>
7650 #include <X11/Intrinsic.h>
7652 main ()
7656 return 0;
7658 _ACEOF
7659 rm -f conftest.$ac_objext
7660 if { (ac_try="$ac_compile"
7661 case "(($ac_try" in
7662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7663 *) ac_try_echo=$ac_try;;
7664 esac
7665 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7666 $as_echo "$ac_try_echo") >&5
7667 (eval "$ac_compile") 2>conftest.er1
7668 ac_status=$?
7669 grep -v '^ *+' conftest.er1 >conftest.err
7670 rm -f conftest.er1
7671 cat conftest.err >&5
7672 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7673 (exit $ac_status); } && {
7674 test -z "$ac_c_werror_flag" ||
7675 test ! -s conftest.err
7676 } && test -s conftest.$ac_objext; then
7677 { $as_echo "$as_me:$LINENO: result: yes" >&5
7678 $as_echo "yes" >&6; }
7679 else
7680 $as_echo "$as_me: failed program was:" >&5
7681 sed 's/^/| /' conftest.$ac_ext >&5
7683 { $as_echo "$as_me:$LINENO: result: no" >&5
7684 $as_echo "no" >&6; }; no_x=yes
7687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7688 CFLAGS=$cflags_save
7690 if test "${no_x-no}" = yes; then
7691 with_x=no
7692 else
7693 cat >>confdefs.h <<\_ACEOF
7694 #define HAVE_X11 1
7695 _ACEOF
7697 X_LIB="-lXt -lX11";
7700 ac_save_LDFLAGS="$LDFLAGS"
7701 LDFLAGS="-L$x_libraries $LDFLAGS"
7703 { $as_echo "$as_me:$LINENO: checking for _XdmcpAuthDoIt in -lXdmcp" >&5
7704 $as_echo_n "checking for _XdmcpAuthDoIt in -lXdmcp... " >&6; }
7705 if test "${ac_cv_lib_Xdmcp__XdmcpAuthDoIt+set}" = set; then
7706 $as_echo_n "(cached) " >&6
7707 else
7708 ac_check_lib_save_LIBS=$LIBS
7709 LIBS="-lXdmcp -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS -lXdmcp $LIBS"
7710 cat >conftest.$ac_ext <<_ACEOF
7711 /* confdefs.h. */
7712 _ACEOF
7713 cat confdefs.h >>conftest.$ac_ext
7714 cat >>conftest.$ac_ext <<_ACEOF
7715 /* end confdefs.h. */
7717 /* Override any GCC internal prototype to avoid an error.
7718 Use char because int might match the return type of a GCC
7719 builtin and then its argument prototype would still apply. */
7720 #ifdef __cplusplus
7721 extern "C"
7722 #endif
7723 char _XdmcpAuthDoIt ();
7725 main ()
7727 return _XdmcpAuthDoIt ();
7729 return 0;
7731 _ACEOF
7732 rm -f conftest.$ac_objext conftest$ac_exeext
7733 if { (ac_try="$ac_link"
7734 case "(($ac_try" in
7735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7736 *) ac_try_echo=$ac_try;;
7737 esac
7738 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7739 $as_echo "$ac_try_echo") >&5
7740 (eval "$ac_link") 2>conftest.er1
7741 ac_status=$?
7742 grep -v '^ *+' conftest.er1 >conftest.err
7743 rm -f conftest.er1
7744 cat conftest.err >&5
7745 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7746 (exit $ac_status); } && {
7747 test -z "$ac_c_werror_flag" ||
7748 test ! -s conftest.err
7749 } && test -s conftest$ac_exeext && {
7750 test "$cross_compiling" = yes ||
7751 $as_test_x conftest$ac_exeext
7752 }; then
7753 ac_cv_lib_Xdmcp__XdmcpAuthDoIt=yes
7754 else
7755 $as_echo "$as_me: failed program was:" >&5
7756 sed 's/^/| /' conftest.$ac_ext >&5
7758 ac_cv_lib_Xdmcp__XdmcpAuthDoIt=no
7761 rm -rf conftest.dSYM
7762 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7763 conftest$ac_exeext conftest.$ac_ext
7764 LIBS=$ac_check_lib_save_LIBS
7766 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&5
7767 $as_echo "$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&6; }
7768 if test "x$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" = x""yes; then
7769 X_EXTRA_LIBS="$X_EXTRA_LIBS -lXdmcp"
7773 { $as_echo "$as_me:$LINENO: checking for IceOpenConnection in -lICE" >&5
7774 $as_echo_n "checking for IceOpenConnection in -lICE... " >&6; }
7775 if test "${ac_cv_lib_ICE_IceOpenConnection+set}" = set; then
7776 $as_echo_n "(cached) " >&6
7777 else
7778 ac_check_lib_save_LIBS=$LIBS
7779 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7780 cat >conftest.$ac_ext <<_ACEOF
7781 /* confdefs.h. */
7782 _ACEOF
7783 cat confdefs.h >>conftest.$ac_ext
7784 cat >>conftest.$ac_ext <<_ACEOF
7785 /* end confdefs.h. */
7787 /* Override any GCC internal prototype to avoid an error.
7788 Use char because int might match the return type of a GCC
7789 builtin and then its argument prototype would still apply. */
7790 #ifdef __cplusplus
7791 extern "C"
7792 #endif
7793 char IceOpenConnection ();
7795 main ()
7797 return IceOpenConnection ();
7799 return 0;
7801 _ACEOF
7802 rm -f conftest.$ac_objext conftest$ac_exeext
7803 if { (ac_try="$ac_link"
7804 case "(($ac_try" in
7805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7806 *) ac_try_echo=$ac_try;;
7807 esac
7808 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7809 $as_echo "$ac_try_echo") >&5
7810 (eval "$ac_link") 2>conftest.er1
7811 ac_status=$?
7812 grep -v '^ *+' conftest.er1 >conftest.err
7813 rm -f conftest.er1
7814 cat conftest.err >&5
7815 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7816 (exit $ac_status); } && {
7817 test -z "$ac_c_werror_flag" ||
7818 test ! -s conftest.err
7819 } && test -s conftest$ac_exeext && {
7820 test "$cross_compiling" = yes ||
7821 $as_test_x conftest$ac_exeext
7822 }; then
7823 ac_cv_lib_ICE_IceOpenConnection=yes
7824 else
7825 $as_echo "$as_me: failed program was:" >&5
7826 sed 's/^/| /' conftest.$ac_ext >&5
7828 ac_cv_lib_ICE_IceOpenConnection=no
7831 rm -rf conftest.dSYM
7832 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7833 conftest$ac_exeext conftest.$ac_ext
7834 LIBS=$ac_check_lib_save_LIBS
7836 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceOpenConnection" >&5
7837 $as_echo "$ac_cv_lib_ICE_IceOpenConnection" >&6; }
7838 if test "x$ac_cv_lib_ICE_IceOpenConnection" = x""yes; then
7839 X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE"
7843 LDFLAGS="$X_LIBS $ac_save_LDFLAGS"
7844 { $as_echo "$as_me:$LINENO: checking for XpmCreatePixmapFromData in -lXpm" >&5
7845 $as_echo_n "checking for XpmCreatePixmapFromData in -lXpm... " >&6; }
7846 if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then
7847 $as_echo_n "(cached) " >&6
7848 else
7849 ac_check_lib_save_LIBS=$LIBS
7850 LIBS="-lXpm -lXt $X_PRE_LIBS -lXpm -lX11 $X_EXTRA_LIBS $LIBS"
7851 cat >conftest.$ac_ext <<_ACEOF
7852 /* confdefs.h. */
7853 _ACEOF
7854 cat confdefs.h >>conftest.$ac_ext
7855 cat >>conftest.$ac_ext <<_ACEOF
7856 /* end confdefs.h. */
7858 /* Override any GCC internal prototype to avoid an error.
7859 Use char because int might match the return type of a GCC
7860 builtin and then its argument prototype would still apply. */
7861 #ifdef __cplusplus
7862 extern "C"
7863 #endif
7864 char XpmCreatePixmapFromData ();
7866 main ()
7868 return XpmCreatePixmapFromData ();
7870 return 0;
7872 _ACEOF
7873 rm -f conftest.$ac_objext conftest$ac_exeext
7874 if { (ac_try="$ac_link"
7875 case "(($ac_try" in
7876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7877 *) ac_try_echo=$ac_try;;
7878 esac
7879 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7880 $as_echo "$ac_try_echo") >&5
7881 (eval "$ac_link") 2>conftest.er1
7882 ac_status=$?
7883 grep -v '^ *+' conftest.er1 >conftest.err
7884 rm -f conftest.er1
7885 cat conftest.err >&5
7886 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7887 (exit $ac_status); } && {
7888 test -z "$ac_c_werror_flag" ||
7889 test ! -s conftest.err
7890 } && test -s conftest$ac_exeext && {
7891 test "$cross_compiling" = yes ||
7892 $as_test_x conftest$ac_exeext
7893 }; then
7894 ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
7895 else
7896 $as_echo "$as_me: failed program was:" >&5
7897 sed 's/^/| /' conftest.$ac_ext >&5
7899 ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
7902 rm -rf conftest.dSYM
7903 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7904 conftest$ac_exeext conftest.$ac_ext
7905 LIBS=$ac_check_lib_save_LIBS
7907 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
7908 $as_echo "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6; }
7909 if test "x$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = x""yes; then
7910 X_PRE_LIBS="$X_PRE_LIBS -lXpm"
7914 { $as_echo "$as_me:$LINENO: checking if X11 header files implicitly declare return values" >&5
7915 $as_echo_n "checking if X11 header files implicitly declare return values... " >&6; }
7916 cflags_save=$CFLAGS
7917 CFLAGS="$CFLAGS $X_CFLAGS -Werror"
7918 cat >conftest.$ac_ext <<_ACEOF
7919 /* confdefs.h. */
7920 _ACEOF
7921 cat confdefs.h >>conftest.$ac_ext
7922 cat >>conftest.$ac_ext <<_ACEOF
7923 /* end confdefs.h. */
7924 #include <X11/Xlib.h>
7926 main ()
7930 return 0;
7932 _ACEOF
7933 rm -f conftest.$ac_objext
7934 if { (ac_try="$ac_compile"
7935 case "(($ac_try" in
7936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7937 *) ac_try_echo=$ac_try;;
7938 esac
7939 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7940 $as_echo "$ac_try_echo") >&5
7941 (eval "$ac_compile") 2>conftest.er1
7942 ac_status=$?
7943 grep -v '^ *+' conftest.er1 >conftest.err
7944 rm -f conftest.er1
7945 cat conftest.err >&5
7946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7947 (exit $ac_status); } && {
7948 test -z "$ac_c_werror_flag" ||
7949 test ! -s conftest.err
7950 } && test -s conftest.$ac_objext; then
7951 { $as_echo "$as_me:$LINENO: result: no" >&5
7952 $as_echo "no" >&6; }
7953 else
7954 $as_echo "$as_me: failed program was:" >&5
7955 sed 's/^/| /' conftest.$ac_ext >&5
7957 CFLAGS="$CFLAGS -Wno-implicit-int"
7958 cat >conftest.$ac_ext <<_ACEOF
7959 /* confdefs.h. */
7960 _ACEOF
7961 cat confdefs.h >>conftest.$ac_ext
7962 cat >>conftest.$ac_ext <<_ACEOF
7963 /* end confdefs.h. */
7964 #include <X11/Xlib.h>
7966 main ()
7970 return 0;
7972 _ACEOF
7973 rm -f conftest.$ac_objext
7974 if { (ac_try="$ac_compile"
7975 case "(($ac_try" in
7976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7977 *) ac_try_echo=$ac_try;;
7978 esac
7979 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7980 $as_echo "$ac_try_echo") >&5
7981 (eval "$ac_compile") 2>conftest.er1
7982 ac_status=$?
7983 grep -v '^ *+' conftest.er1 >conftest.err
7984 rm -f conftest.er1
7985 cat conftest.err >&5
7986 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7987 (exit $ac_status); } && {
7988 test -z "$ac_c_werror_flag" ||
7989 test ! -s conftest.err
7990 } && test -s conftest.$ac_objext; then
7991 { $as_echo "$as_me:$LINENO: result: yes" >&5
7992 $as_echo "yes" >&6; }; cflags_save="$cflags_save -Wno-implicit-int"
7993 else
7994 $as_echo "$as_me: failed program was:" >&5
7995 sed 's/^/| /' conftest.$ac_ext >&5
7997 { $as_echo "$as_me:$LINENO: result: test failed" >&5
7998 $as_echo "test failed" >&6; }
8002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8007 CFLAGS=$cflags_save
8009 LDFLAGS="$ac_save_LDFLAGS"
8011 { $as_echo "$as_me:$LINENO: checking size of wchar_t is 2 bytes" >&5
8012 $as_echo_n "checking size of wchar_t is 2 bytes... " >&6; }
8013 if test "${ac_cv_small_wchar_t+set}" = set; then
8014 $as_echo_n "(cached) " >&6
8015 else
8016 if test "$cross_compiling" = yes; then
8017 { { $as_echo "$as_me:$LINENO: error: failed to compile test program" >&5
8018 $as_echo "$as_me: error: failed to compile test program" >&2;}
8019 { (exit 1); exit 1; }; }
8020 else
8021 cat >conftest.$ac_ext <<_ACEOF
8022 /* confdefs.h. */
8023 _ACEOF
8024 cat confdefs.h >>conftest.$ac_ext
8025 cat >>conftest.$ac_ext <<_ACEOF
8026 /* end confdefs.h. */
8028 #include <X11/Xlib.h>
8029 #if STDC_HEADERS
8030 # include <stdlib.h>
8031 # include <stddef.h>
8032 #endif
8033 main()
8035 if (sizeof(wchar_t) <= 2)
8036 exit(1);
8037 exit(0);
8039 _ACEOF
8040 rm -f conftest$ac_exeext
8041 if { (ac_try="$ac_link"
8042 case "(($ac_try" in
8043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8044 *) ac_try_echo=$ac_try;;
8045 esac
8046 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8047 $as_echo "$ac_try_echo") >&5
8048 (eval "$ac_link") 2>&5
8049 ac_status=$?
8050 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8051 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8052 { (case "(($ac_try" in
8053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8054 *) ac_try_echo=$ac_try;;
8055 esac
8056 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8057 $as_echo "$ac_try_echo") >&5
8058 (eval "$ac_try") 2>&5
8059 ac_status=$?
8060 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8061 (exit $ac_status); }; }; then
8062 ac_cv_small_wchar_t="no"
8063 else
8064 $as_echo "$as_me: program exited with status $ac_status" >&5
8065 $as_echo "$as_me: failed program was:" >&5
8066 sed 's/^/| /' conftest.$ac_ext >&5
8068 ( exit $ac_status )
8069 ac_cv_small_wchar_t="yes"
8071 rm -rf conftest.dSYM
8072 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8078 { $as_echo "$as_me:$LINENO: result: $ac_cv_small_wchar_t" >&5
8079 $as_echo "$ac_cv_small_wchar_t" >&6; }
8080 if test "x$ac_cv_small_wchar_t" = "xyes" ; then
8081 cat >>confdefs.h <<\_ACEOF
8082 #define SMALL_WCHAR_T 1
8083 _ACEOF
8090 test "x$with_x" = xno -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && enable_gui=no
8092 { $as_echo "$as_me:$LINENO: checking --enable-gui argument" >&5
8093 $as_echo_n "checking --enable-gui argument... " >&6; }
8094 # Check whether --enable-gui was given.
8095 if test "${enable_gui+set}" = set; then
8096 enableval=$enable_gui;
8097 else
8098 enable_gui="auto"
8102 enable_gui_canon=`echo "_$enable_gui" | \
8103 sed 's/[ _+-]//g;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
8105 SKIP_GTK=YES
8106 SKIP_GTK2=YES
8107 SKIP_GNOME=YES
8108 SKIP_MOTIF=YES
8109 SKIP_ATHENA=YES
8110 SKIP_NEXTAW=YES
8111 SKIP_PHOTON=YES
8112 SKIP_CARBON=YES
8113 GUITYPE=NONE
8115 if test "x$QNX" = "xyes" -a "x$with_x" = "xno" ; then
8116 SKIP_PHOTON=
8117 case "$enable_gui_canon" in
8118 no) { $as_echo "$as_me:$LINENO: result: no GUI support" >&5
8119 $as_echo "no GUI support" >&6; }
8120 SKIP_PHOTON=YES ;;
8121 yes|"") { $as_echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5
8122 $as_echo "yes - automatic GUI support" >&6; } ;;
8123 auto) { $as_echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5
8124 $as_echo "auto - automatic GUI support" >&6; } ;;
8125 photon) { $as_echo "$as_me:$LINENO: result: Photon GUI support" >&5
8126 $as_echo "Photon GUI support" >&6; } ;;
8127 *) { $as_echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
8128 $as_echo "Sorry, $enable_gui GUI is not supported" >&6; }
8129 SKIP_PHOTON=YES ;;
8130 esac
8132 elif test "x$MACOSX" = "xyes" -a "x$with_x" = "xno" ; then
8133 SKIP_CARBON=
8134 case "$enable_gui_canon" in
8135 no) { $as_echo "$as_me:$LINENO: result: no GUI support" >&5
8136 $as_echo "no GUI support" >&6; }
8137 SKIP_CARBON=YES ;;
8138 yes|"") { $as_echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5
8139 $as_echo "yes - automatic GUI support" >&6; } ;;
8140 auto) { $as_echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5
8141 $as_echo "auto - automatic GUI support" >&6; } ;;
8142 carbon) { $as_echo "$as_me:$LINENO: result: Carbon GUI support" >&5
8143 $as_echo "Carbon GUI support" >&6; } ;;
8144 *) { $as_echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
8145 $as_echo "Sorry, $enable_gui GUI is not supported" >&6; }
8146 SKIP_CARBON=YES ;;
8147 esac
8149 else
8151 case "$enable_gui_canon" in
8152 no|none) { $as_echo "$as_me:$LINENO: result: no GUI support" >&5
8153 $as_echo "no GUI support" >&6; } ;;
8154 yes|""|auto) { $as_echo "$as_me:$LINENO: result: yes/auto - automatic GUI support" >&5
8155 $as_echo "yes/auto - automatic GUI support" >&6; }
8156 SKIP_GTK=
8157 SKIP_GTK2=
8158 SKIP_GNOME=
8159 SKIP_MOTIF=
8160 SKIP_ATHENA=
8161 SKIP_NEXTAW=
8162 SKIP_CARBON=;;
8163 gtk) { $as_echo "$as_me:$LINENO: result: GTK+ 1.x GUI support" >&5
8164 $as_echo "GTK+ 1.x GUI support" >&6; }
8165 SKIP_GTK=;;
8166 gtk2) { $as_echo "$as_me:$LINENO: result: GTK+ 2.x GUI support" >&5
8167 $as_echo "GTK+ 2.x GUI support" >&6; }
8168 SKIP_GTK=
8169 SKIP_GTK2=;;
8170 gnome) { $as_echo "$as_me:$LINENO: result: GNOME 1.x GUI support" >&5
8171 $as_echo "GNOME 1.x GUI support" >&6; }
8172 SKIP_GNOME=
8173 SKIP_GTK=;;
8174 gnome2) { $as_echo "$as_me:$LINENO: result: GNOME 2.x GUI support" >&5
8175 $as_echo "GNOME 2.x GUI support" >&6; }
8176 SKIP_GNOME=
8177 SKIP_GTK=
8178 SKIP_GTK2=;;
8179 motif) { $as_echo "$as_me:$LINENO: result: Motif GUI support" >&5
8180 $as_echo "Motif GUI support" >&6; }
8181 SKIP_MOTIF=;;
8182 athena) { $as_echo "$as_me:$LINENO: result: Athena GUI support" >&5
8183 $as_echo "Athena GUI support" >&6; }
8184 SKIP_ATHENA=;;
8185 nextaw) { $as_echo "$as_me:$LINENO: result: neXtaw GUI support" >&5
8186 $as_echo "neXtaw GUI support" >&6; }
8187 SKIP_NEXTAW=;;
8188 *) { $as_echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
8189 $as_echo "Sorry, $enable_gui GUI is not supported" >&6; } ;;
8190 esac
8194 if test "x$SKIP_GTK" != "xYES" -a "$enable_gui_canon" != "gtk" -a "$enable_gui_canon" != "gtk2"; then
8195 { $as_echo "$as_me:$LINENO: checking whether or not to look for GTK" >&5
8196 $as_echo_n "checking whether or not to look for GTK... " >&6; }
8197 # Check whether --enable-gtk-check was given.
8198 if test "${enable_gtk_check+set}" = set; then
8199 enableval=$enable_gtk_check;
8200 else
8201 enable_gtk_check="yes"
8204 { $as_echo "$as_me:$LINENO: result: $enable_gtk_check" >&5
8205 $as_echo "$enable_gtk_check" >&6; }
8206 if test "x$enable_gtk_check" = "xno"; then
8207 SKIP_GTK=YES
8208 SKIP_GNOME=YES
8212 if test "x$SKIP_GTK2" != "xYES" -a "$enable_gui_canon" != "gtk2" \
8213 -a "$enable_gui_canon" != "gnome2"; then
8214 { $as_echo "$as_me:$LINENO: checking whether or not to look for GTK+ 2" >&5
8215 $as_echo_n "checking whether or not to look for GTK+ 2... " >&6; }
8216 # Check whether --enable-gtk2-check was given.
8217 if test "${enable_gtk2_check+set}" = set; then
8218 enableval=$enable_gtk2_check;
8219 else
8220 enable_gtk2_check="yes"
8223 { $as_echo "$as_me:$LINENO: result: $enable_gtk2_check" >&5
8224 $as_echo "$enable_gtk2_check" >&6; }
8225 if test "x$enable_gtk2_check" = "xno"; then
8226 SKIP_GTK2=YES
8230 if test "x$SKIP_GNOME" != "xYES" -a "$enable_gui_canon" != "gnome" \
8231 -a "$enable_gui_canon" != "gnome2"; then
8232 { $as_echo "$as_me:$LINENO: checking whether or not to look for GNOME" >&5
8233 $as_echo_n "checking whether or not to look for GNOME... " >&6; }
8234 # Check whether --enable-gnome-check was given.
8235 if test "${enable_gnome_check+set}" = set; then
8236 enableval=$enable_gnome_check;
8237 else
8238 enable_gnome_check="no"
8241 { $as_echo "$as_me:$LINENO: result: $enable_gnome_check" >&5
8242 $as_echo "$enable_gnome_check" >&6; }
8243 if test "x$enable_gnome_check" = "xno"; then
8244 SKIP_GNOME=YES
8248 if test "x$SKIP_MOTIF" != "xYES" -a "$enable_gui_canon" != "motif"; then
8249 { $as_echo "$as_me:$LINENO: checking whether or not to look for Motif" >&5
8250 $as_echo_n "checking whether or not to look for Motif... " >&6; }
8251 # Check whether --enable-motif-check was given.
8252 if test "${enable_motif_check+set}" = set; then
8253 enableval=$enable_motif_check;
8254 else
8255 enable_motif_check="yes"
8258 { $as_echo "$as_me:$LINENO: result: $enable_motif_check" >&5
8259 $as_echo "$enable_motif_check" >&6; }
8260 if test "x$enable_motif_check" = "xno"; then
8261 SKIP_MOTIF=YES
8265 if test "x$SKIP_ATHENA" != "xYES" -a "$enable_gui_canon" != "athena"; then
8266 { $as_echo "$as_me:$LINENO: checking whether or not to look for Athena" >&5
8267 $as_echo_n "checking whether or not to look for Athena... " >&6; }
8268 # Check whether --enable-athena-check was given.
8269 if test "${enable_athena_check+set}" = set; then
8270 enableval=$enable_athena_check;
8271 else
8272 enable_athena_check="yes"
8275 { $as_echo "$as_me:$LINENO: result: $enable_athena_check" >&5
8276 $as_echo "$enable_athena_check" >&6; }
8277 if test "x$enable_athena_check" = "xno"; then
8278 SKIP_ATHENA=YES
8282 if test "x$SKIP_NEXTAW" != "xYES" -a "$enable_gui_canon" != "nextaw"; then
8283 { $as_echo "$as_me:$LINENO: checking whether or not to look for neXtaw" >&5
8284 $as_echo_n "checking whether or not to look for neXtaw... " >&6; }
8285 # Check whether --enable-nextaw-check was given.
8286 if test "${enable_nextaw_check+set}" = set; then
8287 enableval=$enable_nextaw_check;
8288 else
8289 enable_nextaw_check="yes"
8292 { $as_echo "$as_me:$LINENO: result: $enable_nextaw_check" >&5
8293 $as_echo "$enable_nextaw_check" >&6; };
8294 if test "x$enable_nextaw_check" = "xno"; then
8295 SKIP_NEXTAW=YES
8299 if test "x$SKIP_CARBON" != "xYES" -a "$enable_gui_canon" != "carbon"; then
8300 { $as_echo "$as_me:$LINENO: checking whether or not to look for Carbon" >&5
8301 $as_echo_n "checking whether or not to look for Carbon... " >&6; }
8302 # Check whether --enable-carbon-check was given.
8303 if test "${enable_carbon_check+set}" = set; then
8304 enableval=$enable_carbon_check;
8305 else
8306 enable_carbon_check="yes"
8309 { $as_echo "$as_me:$LINENO: result: $enable_carbon_check" >&5
8310 $as_echo "$enable_carbon_check" >&6; };
8311 if test "x$enable_carbon_check" = "xno"; then
8312 SKIP_CARBON=YES
8317 if test "x$MACOSX" = "xyes" -a -z "$SKIP_CARBON" -a "x$CARBON" = "xyes"; then
8318 { $as_echo "$as_me:$LINENO: checking for Carbon GUI" >&5
8319 $as_echo_n "checking for Carbon GUI... " >&6; }
8320 { $as_echo "$as_me:$LINENO: result: yes" >&5
8321 $as_echo "yes" >&6; };
8322 GUITYPE=CARBONGUI
8323 if test "$VIMNAME" = "vim"; then
8324 VIMNAME=Vim
8327 if test x$prefix = xNONE; then
8328 prefix=/Applications
8331 datadir='${prefix}/Vim.app/Contents/Resources'
8333 SKIP_GTK=YES;
8334 SKIP_GTK2=YES;
8335 SKIP_GNOME=YES;
8336 SKIP_MOTIF=YES;
8337 SKIP_ATHENA=YES;
8338 SKIP_NEXTAW=YES;
8339 SKIP_PHOTON=YES;
8340 SKIP_CARBON=YES
8351 if test -z "$SKIP_GTK"; then
8353 { $as_echo "$as_me:$LINENO: checking --with-gtk-prefix argument" >&5
8354 $as_echo_n "checking --with-gtk-prefix argument... " >&6; }
8356 # Check whether --with-gtk-prefix was given.
8357 if test "${with_gtk_prefix+set}" = set; then
8358 withval=$with_gtk_prefix; gtk_config_prefix="$withval"; { $as_echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5
8359 $as_echo "$gtk_config_prefix" >&6; }
8360 else
8361 gtk_config_prefix=""; { $as_echo "$as_me:$LINENO: result: no" >&5
8362 $as_echo "no" >&6; }
8366 { $as_echo "$as_me:$LINENO: checking --with-gtk-exec-prefix argument" >&5
8367 $as_echo_n "checking --with-gtk-exec-prefix argument... " >&6; }
8369 # Check whether --with-gtk-exec-prefix was given.
8370 if test "${with_gtk_exec_prefix+set}" = set; then
8371 withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"; { $as_echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5
8372 $as_echo "$gtk_config_prefix" >&6; }
8373 else
8374 gtk_config_exec_prefix=""; { $as_echo "$as_me:$LINENO: result: no" >&5
8375 $as_echo "no" >&6; }
8379 { $as_echo "$as_me:$LINENO: checking --disable-gtktest argument" >&5
8380 $as_echo_n "checking --disable-gtktest argument... " >&6; }
8381 # Check whether --enable-gtktest was given.
8382 if test "${enable_gtktest+set}" = set; then
8383 enableval=$enable_gtktest;
8384 else
8385 enable_gtktest=yes
8388 if test "x$enable_gtktest" = "xyes" ; then
8389 { $as_echo "$as_me:$LINENO: result: gtk test enabled" >&5
8390 $as_echo "gtk test enabled" >&6; }
8391 else
8392 { $as_echo "$as_me:$LINENO: result: gtk test disabled" >&5
8393 $as_echo "gtk test disabled" >&6; }
8396 if test "x$gtk_config_prefix" != "x" ; then
8397 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
8398 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
8400 if test "x$gtk_config_exec_prefix" != "x" ; then
8401 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
8402 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
8404 if test "X$GTK_CONFIG" = "X"; then
8405 # Extract the first word of "gtk-config", so it can be a program name with args.
8406 set dummy gtk-config; ac_word=$2
8407 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8408 $as_echo_n "checking for $ac_word... " >&6; }
8409 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
8410 $as_echo_n "(cached) " >&6
8411 else
8412 case $GTK_CONFIG in
8413 [\\/]* | ?:[\\/]*)
8414 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
8417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8418 for as_dir in $PATH
8420 IFS=$as_save_IFS
8421 test -z "$as_dir" && as_dir=.
8422 for ac_exec_ext in '' $ac_executable_extensions; do
8423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8424 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8425 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8426 break 2
8428 done
8429 done
8430 IFS=$as_save_IFS
8432 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
8434 esac
8436 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
8437 if test -n "$GTK_CONFIG"; then
8438 { $as_echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
8439 $as_echo "$GTK_CONFIG" >&6; }
8440 else
8441 { $as_echo "$as_me:$LINENO: result: no" >&5
8442 $as_echo "no" >&6; }
8446 if test "X$GTK_CONFIG" = "Xno"; then
8447 # Extract the first word of "gtk12-config", so it can be a program name with args.
8448 set dummy gtk12-config; ac_word=$2
8449 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8450 $as_echo_n "checking for $ac_word... " >&6; }
8451 if test "${ac_cv_path_GTK12_CONFIG+set}" = set; then
8452 $as_echo_n "(cached) " >&6
8453 else
8454 case $GTK12_CONFIG in
8455 [\\/]* | ?:[\\/]*)
8456 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
8459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8460 for as_dir in $PATH
8462 IFS=$as_save_IFS
8463 test -z "$as_dir" && as_dir=.
8464 for ac_exec_ext in '' $ac_executable_extensions; do
8465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8466 ac_cv_path_GTK12_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8467 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8468 break 2
8470 done
8471 done
8472 IFS=$as_save_IFS
8474 test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
8476 esac
8478 GTK12_CONFIG=$ac_cv_path_GTK12_CONFIG
8479 if test -n "$GTK12_CONFIG"; then
8480 { $as_echo "$as_me:$LINENO: result: $GTK12_CONFIG" >&5
8481 $as_echo "$GTK12_CONFIG" >&6; }
8482 else
8483 { $as_echo "$as_me:$LINENO: result: no" >&5
8484 $as_echo "no" >&6; }
8488 GTK_CONFIG="$GTK12_CONFIG"
8490 else
8491 { $as_echo "$as_me:$LINENO: result: Using GTK configuration program $GTK_CONFIG" >&5
8492 $as_echo "Using GTK configuration program $GTK_CONFIG" >&6; }
8494 if test "X$PKG_CONFIG" = "X"; then
8495 # Extract the first word of "pkg-config", so it can be a program name with args.
8496 set dummy pkg-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_PKG_CONFIG+set}" = set; then
8500 $as_echo_n "(cached) " >&6
8501 else
8502 case $PKG_CONFIG in
8503 [\\/]* | ?:[\\/]*)
8504 ac_cv_path_PKG_CONFIG="$PKG_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_PKG_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_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8524 esac
8526 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8527 if test -n "$PKG_CONFIG"; then
8528 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8529 $as_echo "$PKG_CONFIG" >&6; }
8530 else
8531 { $as_echo "$as_me:$LINENO: result: no" >&5
8532 $as_echo "no" >&6; }
8538 if test "x$GTK_CONFIG:$PKG_CONFIG" != "xno:no"; then
8539 if test "X$SKIP_GTK2" != "XYES"; then
8541 if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
8543 min_gtk_version=2.2.0
8544 { $as_echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
8545 $as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; }
8546 no_gtk=""
8547 if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
8548 && $PKG_CONFIG --exists gtk+-2.0; then
8550 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
8551 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0`
8552 GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
8553 gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8554 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8555 gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8556 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8557 gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8558 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8560 elif test "X$GTK_CONFIG" != "Xno"; then
8562 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
8563 GTK_LIBDIR=
8564 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
8565 gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \
8566 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8567 gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
8568 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8569 gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
8570 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8572 else
8573 no_gtk=yes
8576 if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
8578 ac_save_CFLAGS="$CFLAGS"
8579 ac_save_LIBS="$LIBS"
8580 CFLAGS="$CFLAGS $GTK_CFLAGS"
8581 LIBS="$LIBS $GTK_LIBS"
8583 rm -f conf.gtktest
8584 if test "$cross_compiling" = yes; then
8585 echo $ac_n "cross compiling; assumed OK... $ac_c"
8586 else
8587 cat >conftest.$ac_ext <<_ACEOF
8588 /* confdefs.h. */
8589 _ACEOF
8590 cat confdefs.h >>conftest.$ac_ext
8591 cat >>conftest.$ac_ext <<_ACEOF
8592 /* end confdefs.h. */
8594 #include <gtk/gtk.h>
8595 #include <stdio.h>
8596 #if STDC_HEADERS
8597 # include <stdlib.h>
8598 # include <stddef.h>
8599 #endif
8602 main ()
8604 int major, minor, micro;
8605 char *tmp_version;
8607 system ("touch conf.gtktest");
8609 /* HP/UX 9 (%@#!) writes to sscanf strings */
8610 tmp_version = g_strdup("$min_gtk_version");
8611 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
8612 printf("%s, bad version string\n", "$min_gtk_version");
8613 exit(1);
8616 if ((gtk_major_version > major) ||
8617 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
8618 ((gtk_major_version == major) && (gtk_minor_version == minor) &&
8619 (gtk_micro_version >= micro)))
8621 return 0;
8623 return 1;
8626 _ACEOF
8627 rm -f conftest$ac_exeext
8628 if { (ac_try="$ac_link"
8629 case "(($ac_try" in
8630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8631 *) ac_try_echo=$ac_try;;
8632 esac
8633 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8634 $as_echo "$ac_try_echo") >&5
8635 (eval "$ac_link") 2>&5
8636 ac_status=$?
8637 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8638 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8639 { (case "(($ac_try" in
8640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8641 *) ac_try_echo=$ac_try;;
8642 esac
8643 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8644 $as_echo "$ac_try_echo") >&5
8645 (eval "$ac_try") 2>&5
8646 ac_status=$?
8647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8648 (exit $ac_status); }; }; then
8650 else
8651 $as_echo "$as_me: program exited with status $ac_status" >&5
8652 $as_echo "$as_me: failed program was:" >&5
8653 sed 's/^/| /' conftest.$ac_ext >&5
8655 ( exit $ac_status )
8656 no_gtk=yes
8658 rm -rf conftest.dSYM
8659 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8663 CFLAGS="$ac_save_CFLAGS"
8664 LIBS="$ac_save_LIBS"
8667 if test "x$no_gtk" = x ; then
8668 if test "x$enable_gtktest" = "xyes"; then
8669 { $as_echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8670 $as_echo "yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
8671 else
8672 { $as_echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8673 $as_echo "found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
8675 GUI_LIB_LOC="$GTK_LIBDIR"
8676 GTK_LIBNAME="$GTK_LIBS"
8677 GUI_INC_LOC="$GTK_CFLAGS"
8678 else
8680 { $as_echo "$as_me:$LINENO: result: no" >&5
8681 $as_echo "no" >&6; }
8682 GTK_CFLAGS=""
8683 GTK_LIBS=""
8688 else
8689 GTK_CFLAGS=""
8690 GTK_LIBS=""
8695 rm -f conf.gtktest
8697 if test "x$GTK_CFLAGS" != "x"; then
8698 SKIP_ATHENA=YES
8699 SKIP_NEXTAW=YES
8700 SKIP_MOTIF=YES
8701 GUITYPE=GTK
8706 if test "x$GUITYPE" != "xGTK"; then
8707 SKIP_GTK2=YES
8709 if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
8711 min_gtk_version=1.1.16
8712 { $as_echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
8713 $as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; }
8714 no_gtk=""
8715 if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
8716 && $PKG_CONFIG --exists gtk+-2.0; then
8718 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
8719 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0`
8720 GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
8721 gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8722 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8723 gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8724 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8725 gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8726 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8728 elif test "X$GTK_CONFIG" != "Xno"; then
8730 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
8731 GTK_LIBDIR=
8732 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
8733 gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \
8734 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8735 gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
8736 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8737 gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
8738 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8740 else
8741 no_gtk=yes
8744 if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
8746 ac_save_CFLAGS="$CFLAGS"
8747 ac_save_LIBS="$LIBS"
8748 CFLAGS="$CFLAGS $GTK_CFLAGS"
8749 LIBS="$LIBS $GTK_LIBS"
8751 rm -f conf.gtktest
8752 if test "$cross_compiling" = yes; then
8753 echo $ac_n "cross compiling; assumed OK... $ac_c"
8754 else
8755 cat >conftest.$ac_ext <<_ACEOF
8756 /* confdefs.h. */
8757 _ACEOF
8758 cat confdefs.h >>conftest.$ac_ext
8759 cat >>conftest.$ac_ext <<_ACEOF
8760 /* end confdefs.h. */
8762 #include <gtk/gtk.h>
8763 #include <stdio.h>
8764 #if STDC_HEADERS
8765 # include <stdlib.h>
8766 # include <stddef.h>
8767 #endif
8770 main ()
8772 int major, minor, micro;
8773 char *tmp_version;
8775 system ("touch conf.gtktest");
8777 /* HP/UX 9 (%@#!) writes to sscanf strings */
8778 tmp_version = g_strdup("$min_gtk_version");
8779 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
8780 printf("%s, bad version string\n", "$min_gtk_version");
8781 exit(1);
8784 if ((gtk_major_version > major) ||
8785 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
8786 ((gtk_major_version == major) && (gtk_minor_version == minor) &&
8787 (gtk_micro_version >= micro)))
8789 return 0;
8791 return 1;
8794 _ACEOF
8795 rm -f conftest$ac_exeext
8796 if { (ac_try="$ac_link"
8797 case "(($ac_try" in
8798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8799 *) ac_try_echo=$ac_try;;
8800 esac
8801 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8802 $as_echo "$ac_try_echo") >&5
8803 (eval "$ac_link") 2>&5
8804 ac_status=$?
8805 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8806 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8807 { (case "(($ac_try" in
8808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8809 *) ac_try_echo=$ac_try;;
8810 esac
8811 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8812 $as_echo "$ac_try_echo") >&5
8813 (eval "$ac_try") 2>&5
8814 ac_status=$?
8815 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8816 (exit $ac_status); }; }; then
8818 else
8819 $as_echo "$as_me: program exited with status $ac_status" >&5
8820 $as_echo "$as_me: failed program was:" >&5
8821 sed 's/^/| /' conftest.$ac_ext >&5
8823 ( exit $ac_status )
8824 no_gtk=yes
8826 rm -rf conftest.dSYM
8827 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8831 CFLAGS="$ac_save_CFLAGS"
8832 LIBS="$ac_save_LIBS"
8835 if test "x$no_gtk" = x ; then
8836 if test "x$enable_gtktest" = "xyes"; then
8837 { $as_echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8838 $as_echo "yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
8839 else
8840 { $as_echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8841 $as_echo "found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
8843 GTK_LIBNAME="$GTK_LIBS"
8844 GUI_INC_LOC="$GTK_CFLAGS"
8845 else
8847 { $as_echo "$as_me:$LINENO: result: no" >&5
8848 $as_echo "no" >&6; }
8849 GTK_CFLAGS=""
8850 GTK_LIBS=""
8855 else
8856 GTK_CFLAGS=""
8857 GTK_LIBS=""
8862 rm -f conf.gtktest
8864 if test "x$GTK_CFLAGS" != "x"; then
8865 SKIP_ATHENA=YES
8866 SKIP_NEXTAW=YES
8867 SKIP_MOTIF=YES
8868 GUITYPE=GTK
8873 if test "x$GUITYPE" = "xGTK"; then
8874 if test "$gtk_major_version" = 1 -a "0$gtk_minor_version" -lt 2 \
8875 -o "$gtk_major_version" = 1 -a "$gtk_minor_version" = 2 -a "0$gtk_micro_version" -lt 3; then
8876 { $as_echo "$as_me:$LINENO: result: this GTK version is old; version 1.2.3 or later is recommended" >&5
8877 $as_echo "this GTK version is old; version 1.2.3 or later is recommended" >&6; }
8878 else
8880 if test "0$gtk_major_version" -ge 2; then
8881 cat >>confdefs.h <<\_ACEOF
8882 #define HAVE_GTK2 1
8883 _ACEOF
8885 if test "$gtk_minor_version" = 1 -a "0$gtk_micro_version" -ge 1 \
8886 || test "0$gtk_minor_version" -ge 2 \
8887 || test "0$gtk_major_version" -gt 2; then
8888 cat >>confdefs.h <<\_ACEOF
8889 #define HAVE_GTK_MULTIHEAD 1
8890 _ACEOF
8894 if test -z "$SKIP_GNOME"; then
8902 # Check whether --with-gnome-includes was given.
8903 if test "${with_gnome_includes+set}" = set; then
8904 withval=$with_gnome_includes; CFLAGS="$CFLAGS -I$withval"
8910 # Check whether --with-gnome-libs was given.
8911 if test "${with_gnome_libs+set}" = set; then
8912 withval=$with_gnome_libs; LDFLAGS="$LDFLAGS -L$withval" gnome_prefix=$withval
8918 # Check whether --with-gnome was given.
8919 if test "${with_gnome+set}" = set; then
8920 withval=$with_gnome; if test x$withval = xyes; then
8921 want_gnome=yes
8922 have_gnome=yes
8923 else
8924 if test "x$withval" = xno; then
8925 want_gnome=no
8926 else
8927 want_gnome=yes
8928 LDFLAGS="$LDFLAGS -L$withval/lib"
8929 CFLAGS="$CFLAGS -I$withval/include"
8930 gnome_prefix=$withval/lib
8933 else
8934 want_gnome=yes
8938 if test "x$want_gnome" = xyes -a "0$gtk_major_version" -ge 2; then
8940 { $as_echo "$as_me:$LINENO: checking for libgnomeui-2.0" >&5
8941 $as_echo_n "checking for libgnomeui-2.0... " >&6; }
8942 if $PKG_CONFIG --exists libgnomeui-2.0; then
8943 { $as_echo "$as_me:$LINENO: result: yes" >&5
8944 $as_echo "yes" >&6; }
8945 GNOME_LIBS=`$PKG_CONFIG --libs-only-l libgnomeui-2.0`
8946 GNOME_LIBDIR=`$PKG_CONFIG --libs-only-L libgnomeui-2.0`
8947 GNOME_INCLUDEDIR=`$PKG_CONFIG --cflags libgnomeui-2.0`
8949 { $as_echo "$as_me:$LINENO: checking for FreeBSD" >&5
8950 $as_echo_n "checking for FreeBSD... " >&6; }
8951 if test "`(uname) 2>/dev/null`" = FreeBSD; then
8952 { $as_echo "$as_me:$LINENO: result: yes" >&5
8953 $as_echo "yes" >&6; }
8954 GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR -D_THREAD_SAFE"
8955 GNOME_LIBS="$GNOME_LIBS -pthread"
8956 else
8957 { $as_echo "$as_me:$LINENO: result: no" >&5
8958 $as_echo "no" >&6; }
8960 have_gnome=yes
8961 else
8962 { $as_echo "$as_me:$LINENO: result: not found" >&5
8963 $as_echo "not found" >&6; }
8964 if test "x" = xfail; then
8965 { { $as_echo "$as_me:$LINENO: error: Could not find libgnomeui-2.0 via pkg-config" >&5
8966 $as_echo "$as_me: error: Could not find libgnomeui-2.0 via pkg-config" >&2;}
8967 { (exit 1); exit 1; }; }
8971 elif test "x$want_gnome" = xyes; then
8973 # Extract the first word of "gnome-config", so it can be a program name with args.
8974 set dummy gnome-config; ac_word=$2
8975 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8976 $as_echo_n "checking for $ac_word... " >&6; }
8977 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
8978 $as_echo_n "(cached) " >&6
8979 else
8980 case $GNOME_CONFIG in
8981 [\\/]* | ?:[\\/]*)
8982 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
8985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8986 for as_dir in $PATH
8988 IFS=$as_save_IFS
8989 test -z "$as_dir" && as_dir=.
8990 for ac_exec_ext in '' $ac_executable_extensions; do
8991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8992 ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8993 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8994 break 2
8996 done
8997 done
8998 IFS=$as_save_IFS
9000 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
9002 esac
9004 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
9005 if test -n "$GNOME_CONFIG"; then
9006 { $as_echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
9007 $as_echo "$GNOME_CONFIG" >&6; }
9008 else
9009 { $as_echo "$as_me:$LINENO: result: no" >&5
9010 $as_echo "no" >&6; }
9014 if test "$GNOME_CONFIG" = "no"; then
9015 no_gnome_config="yes"
9016 else
9017 { $as_echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
9018 $as_echo_n "checking if $GNOME_CONFIG works... " >&6; }
9019 if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
9020 { $as_echo "$as_me:$LINENO: result: yes" >&5
9021 $as_echo "yes" >&6; }
9022 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome gnomeui`"
9023 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
9024 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
9025 have_gnome=yes
9026 else
9027 { $as_echo "$as_me:$LINENO: result: no" >&5
9028 $as_echo "no" >&6; }
9029 no_gnome_config="yes"
9033 if test x$exec_prefix = xNONE; then
9034 if test x$prefix = xNONE; then
9035 gnome_prefix=$ac_default_prefix/lib
9036 else
9037 gnome_prefix=$prefix/lib
9039 else
9040 gnome_prefix=`eval echo \`echo $libdir\``
9043 if test "$no_gnome_config" = "yes"; then
9044 { $as_echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
9045 $as_echo_n "checking for gnomeConf.sh file in $gnome_prefix... " >&6; }
9046 if test -f $gnome_prefix/gnomeConf.sh; then
9047 { $as_echo "$as_me:$LINENO: result: found" >&5
9048 $as_echo "found" >&6; }
9049 echo "loading gnome configuration from" \
9050 "$gnome_prefix/gnomeConf.sh"
9051 . $gnome_prefix/gnomeConf.sh
9052 have_gnome=yes
9053 else
9054 { $as_echo "$as_me:$LINENO: result: not found" >&5
9055 $as_echo "not found" >&6; }
9056 if test x = xfail; then
9057 { { $as_echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
9058 $as_echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
9059 { (exit 1); exit 1; }; }
9066 if test x$have_gnome = xyes ; then
9067 cat >>confdefs.h <<\_ACEOF
9068 #define FEAT_GUI_GNOME 1
9069 _ACEOF
9071 GUI_INC_LOC="$GUI_INC_LOC $GNOME_INCLUDEDIR"
9072 GTK_LIBNAME="$GTK_LIBNAME $GNOME_LIBDIR $GNOME_LIBS"
9082 if test -z "$SKIP_MOTIF"; then
9083 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"
9084 GUI_INC_LOC="`echo $GUI_INC_LOC|sed 's%-I%%g'`"
9086 { $as_echo "$as_me:$LINENO: checking for location of Motif GUI includes" >&5
9087 $as_echo_n "checking for location of Motif GUI includes... " >&6; }
9088 gui_includes="`echo $x_includes|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/include/g` $GUI_INC_LOC"
9089 GUI_INC_LOC=
9090 for try in $gui_includes; do
9091 if test -f "$try/Xm/Xm.h"; then
9092 GUI_INC_LOC=$try
9094 done
9095 if test -n "$GUI_INC_LOC"; then
9096 if test "$GUI_INC_LOC" = /usr/include; then
9097 GUI_INC_LOC=
9098 { $as_echo "$as_me:$LINENO: result: in default path" >&5
9099 $as_echo "in default path" >&6; }
9100 else
9101 { $as_echo "$as_me:$LINENO: result: $GUI_INC_LOC" >&5
9102 $as_echo "$GUI_INC_LOC" >&6; }
9104 else
9105 { $as_echo "$as_me:$LINENO: result: <not found>" >&5
9106 $as_echo "<not found>" >&6; }
9107 SKIP_MOTIF=YES
9112 if test -z "$SKIP_MOTIF"; then
9113 { $as_echo "$as_me:$LINENO: checking --with-motif-lib argument" >&5
9114 $as_echo_n "checking --with-motif-lib argument... " >&6; }
9116 # Check whether --with-motif-lib was given.
9117 if test "${with_motif_lib+set}" = set; then
9118 withval=$with_motif_lib; MOTIF_LIBNAME="${withval}"
9122 if test -n "$MOTIF_LIBNAME"; then
9123 { $as_echo "$as_me:$LINENO: result: $MOTIF_LIBNAME" >&5
9124 $as_echo "$MOTIF_LIBNAME" >&6; }
9125 GUI_LIB_LOC=
9126 else
9127 { $as_echo "$as_me:$LINENO: result: no" >&5
9128 $as_echo "no" >&6; }
9130 GUI_LIB_LOC="`echo $GUI_LIB_LOC|sed 's%-L%%g'`"
9132 { $as_echo "$as_me:$LINENO: checking for location of Motif GUI libs" >&5
9133 $as_echo_n "checking for location of Motif GUI libs... " >&6; }
9134 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"
9135 GUI_LIB_LOC=
9136 for try in $gui_libs; do
9137 for libtry in "$try"/libXm.a "$try"/libXm.so* "$try"/libXm.sl "$try"/libXm.dylib; do
9138 if test -f "$libtry"; then
9139 GUI_LIB_LOC=$try
9141 done
9142 done
9143 if test -n "$GUI_LIB_LOC"; then
9144 if test "$GUI_LIB_LOC" = /usr/lib; then
9145 GUI_LIB_LOC=
9146 { $as_echo "$as_me:$LINENO: result: in default path" >&5
9147 $as_echo "in default path" >&6; }
9148 else
9149 if test -n "$GUI_LIB_LOC"; then
9150 { $as_echo "$as_me:$LINENO: result: $GUI_LIB_LOC" >&5
9151 $as_echo "$GUI_LIB_LOC" >&6; }
9152 if test "`(uname) 2>/dev/null`" = SunOS &&
9153 uname -r | grep '^5' >/dev/null; then
9154 GUI_LIB_LOC="$GUI_LIB_LOC -R $GUI_LIB_LOC"
9158 MOTIF_LIBNAME=-lXm
9159 else
9160 { $as_echo "$as_me:$LINENO: result: <not found>" >&5
9161 $as_echo "<not found>" >&6; }
9162 SKIP_MOTIF=YES
9167 if test -z "$SKIP_MOTIF"; then
9168 SKIP_ATHENA=YES
9169 SKIP_NEXTAW=YES
9170 GUITYPE=MOTIF
9175 GUI_X_LIBS=
9177 if test -z "$SKIP_ATHENA"; then
9178 { $as_echo "$as_me:$LINENO: checking if Athena header files can be found" >&5
9179 $as_echo_n "checking if Athena header files can be found... " >&6; }
9180 cflags_save=$CFLAGS
9181 CFLAGS="$CFLAGS $X_CFLAGS"
9182 cat >conftest.$ac_ext <<_ACEOF
9183 /* confdefs.h. */
9184 _ACEOF
9185 cat confdefs.h >>conftest.$ac_ext
9186 cat >>conftest.$ac_ext <<_ACEOF
9187 /* end confdefs.h. */
9189 #include <X11/Intrinsic.h>
9190 #include <X11/Xaw/Paned.h>
9192 main ()
9196 return 0;
9198 _ACEOF
9199 rm -f conftest.$ac_objext
9200 if { (ac_try="$ac_compile"
9201 case "(($ac_try" in
9202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9203 *) ac_try_echo=$ac_try;;
9204 esac
9205 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9206 $as_echo "$ac_try_echo") >&5
9207 (eval "$ac_compile") 2>conftest.er1
9208 ac_status=$?
9209 grep -v '^ *+' conftest.er1 >conftest.err
9210 rm -f conftest.er1
9211 cat conftest.err >&5
9212 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9213 (exit $ac_status); } && {
9214 test -z "$ac_c_werror_flag" ||
9215 test ! -s conftest.err
9216 } && test -s conftest.$ac_objext; then
9217 { $as_echo "$as_me:$LINENO: result: yes" >&5
9218 $as_echo "yes" >&6; }
9219 else
9220 $as_echo "$as_me: failed program was:" >&5
9221 sed 's/^/| /' conftest.$ac_ext >&5
9223 { $as_echo "$as_me:$LINENO: result: no" >&5
9224 $as_echo "no" >&6; }; SKIP_ATHENA=YES
9227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9228 CFLAGS=$cflags_save
9231 if test -z "$SKIP_ATHENA"; then
9232 GUITYPE=ATHENA
9235 if test -z "$SKIP_NEXTAW"; then
9236 { $as_echo "$as_me:$LINENO: checking if neXtaw header files can be found" >&5
9237 $as_echo_n "checking if neXtaw header files can be found... " >&6; }
9238 cflags_save=$CFLAGS
9239 CFLAGS="$CFLAGS $X_CFLAGS"
9240 cat >conftest.$ac_ext <<_ACEOF
9241 /* confdefs.h. */
9242 _ACEOF
9243 cat confdefs.h >>conftest.$ac_ext
9244 cat >>conftest.$ac_ext <<_ACEOF
9245 /* end confdefs.h. */
9247 #include <X11/Intrinsic.h>
9248 #include <X11/neXtaw/Paned.h>
9250 main ()
9254 return 0;
9256 _ACEOF
9257 rm -f conftest.$ac_objext
9258 if { (ac_try="$ac_compile"
9259 case "(($ac_try" in
9260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9261 *) ac_try_echo=$ac_try;;
9262 esac
9263 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9264 $as_echo "$ac_try_echo") >&5
9265 (eval "$ac_compile") 2>conftest.er1
9266 ac_status=$?
9267 grep -v '^ *+' conftest.er1 >conftest.err
9268 rm -f conftest.er1
9269 cat conftest.err >&5
9270 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9271 (exit $ac_status); } && {
9272 test -z "$ac_c_werror_flag" ||
9273 test ! -s conftest.err
9274 } && test -s conftest.$ac_objext; then
9275 { $as_echo "$as_me:$LINENO: result: yes" >&5
9276 $as_echo "yes" >&6; }
9277 else
9278 $as_echo "$as_me: failed program was:" >&5
9279 sed 's/^/| /' conftest.$ac_ext >&5
9281 { $as_echo "$as_me:$LINENO: result: no" >&5
9282 $as_echo "no" >&6; }; SKIP_NEXTAW=YES
9285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9286 CFLAGS=$cflags_save
9289 if test -z "$SKIP_NEXTAW"; then
9290 GUITYPE=NEXTAW
9293 if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
9294 if test -n "$GUI_INC_LOC"; then
9295 GUI_INC_LOC=-I"`echo $GUI_INC_LOC|sed 's%-I%%'`"
9297 if test -n "$GUI_LIB_LOC"; then
9298 GUI_LIB_LOC=-L"`echo $GUI_LIB_LOC|sed 's%-L%%'`"
9301 ldflags_save=$LDFLAGS
9302 LDFLAGS="$X_LIBS $LDFLAGS"
9303 { $as_echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
9304 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
9305 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
9306 $as_echo_n "(cached) " >&6
9307 else
9308 ac_check_lib_save_LIBS=$LIBS
9309 LIBS="-lXext -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9310 cat >conftest.$ac_ext <<_ACEOF
9311 /* confdefs.h. */
9312 _ACEOF
9313 cat confdefs.h >>conftest.$ac_ext
9314 cat >>conftest.$ac_ext <<_ACEOF
9315 /* end confdefs.h. */
9317 /* Override any GCC internal prototype to avoid an error.
9318 Use char because int might match the return type of a GCC
9319 builtin and then its argument prototype would still apply. */
9320 #ifdef __cplusplus
9321 extern "C"
9322 #endif
9323 char XShapeQueryExtension ();
9325 main ()
9327 return XShapeQueryExtension ();
9329 return 0;
9331 _ACEOF
9332 rm -f conftest.$ac_objext conftest$ac_exeext
9333 if { (ac_try="$ac_link"
9334 case "(($ac_try" in
9335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9336 *) ac_try_echo=$ac_try;;
9337 esac
9338 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9339 $as_echo "$ac_try_echo") >&5
9340 (eval "$ac_link") 2>conftest.er1
9341 ac_status=$?
9342 grep -v '^ *+' conftest.er1 >conftest.err
9343 rm -f conftest.er1
9344 cat conftest.err >&5
9345 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9346 (exit $ac_status); } && {
9347 test -z "$ac_c_werror_flag" ||
9348 test ! -s conftest.err
9349 } && test -s conftest$ac_exeext && {
9350 test "$cross_compiling" = yes ||
9351 $as_test_x conftest$ac_exeext
9352 }; then
9353 ac_cv_lib_Xext_XShapeQueryExtension=yes
9354 else
9355 $as_echo "$as_me: failed program was:" >&5
9356 sed 's/^/| /' conftest.$ac_ext >&5
9358 ac_cv_lib_Xext_XShapeQueryExtension=no
9361 rm -rf conftest.dSYM
9362 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9363 conftest$ac_exeext conftest.$ac_ext
9364 LIBS=$ac_check_lib_save_LIBS
9366 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
9367 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
9368 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then
9369 GUI_X_LIBS="-lXext"
9372 { $as_echo "$as_me:$LINENO: checking for wslen in -lw" >&5
9373 $as_echo_n "checking for wslen in -lw... " >&6; }
9374 if test "${ac_cv_lib_w_wslen+set}" = set; then
9375 $as_echo_n "(cached) " >&6
9376 else
9377 ac_check_lib_save_LIBS=$LIBS
9378 LIBS="-lw $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9379 cat >conftest.$ac_ext <<_ACEOF
9380 /* confdefs.h. */
9381 _ACEOF
9382 cat confdefs.h >>conftest.$ac_ext
9383 cat >>conftest.$ac_ext <<_ACEOF
9384 /* end confdefs.h. */
9386 /* Override any GCC internal prototype to avoid an error.
9387 Use char because int might match the return type of a GCC
9388 builtin and then its argument prototype would still apply. */
9389 #ifdef __cplusplus
9390 extern "C"
9391 #endif
9392 char wslen ();
9394 main ()
9396 return wslen ();
9398 return 0;
9400 _ACEOF
9401 rm -f conftest.$ac_objext conftest$ac_exeext
9402 if { (ac_try="$ac_link"
9403 case "(($ac_try" in
9404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9405 *) ac_try_echo=$ac_try;;
9406 esac
9407 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9408 $as_echo "$ac_try_echo") >&5
9409 (eval "$ac_link") 2>conftest.er1
9410 ac_status=$?
9411 grep -v '^ *+' conftest.er1 >conftest.err
9412 rm -f conftest.er1
9413 cat conftest.err >&5
9414 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9415 (exit $ac_status); } && {
9416 test -z "$ac_c_werror_flag" ||
9417 test ! -s conftest.err
9418 } && test -s conftest$ac_exeext && {
9419 test "$cross_compiling" = yes ||
9420 $as_test_x conftest$ac_exeext
9421 }; then
9422 ac_cv_lib_w_wslen=yes
9423 else
9424 $as_echo "$as_me: failed program was:" >&5
9425 sed 's/^/| /' conftest.$ac_ext >&5
9427 ac_cv_lib_w_wslen=no
9430 rm -rf conftest.dSYM
9431 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9432 conftest$ac_exeext conftest.$ac_ext
9433 LIBS=$ac_check_lib_save_LIBS
9435 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_w_wslen" >&5
9436 $as_echo "$ac_cv_lib_w_wslen" >&6; }
9437 if test "x$ac_cv_lib_w_wslen" = x""yes; then
9438 X_EXTRA_LIBS="$X_EXTRA_LIBS -lw"
9441 { $as_echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5
9442 $as_echo_n "checking for dlsym in -ldl... " >&6; }
9443 if test "${ac_cv_lib_dl_dlsym+set}" = set; then
9444 $as_echo_n "(cached) " >&6
9445 else
9446 ac_check_lib_save_LIBS=$LIBS
9447 LIBS="-ldl $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9448 cat >conftest.$ac_ext <<_ACEOF
9449 /* confdefs.h. */
9450 _ACEOF
9451 cat confdefs.h >>conftest.$ac_ext
9452 cat >>conftest.$ac_ext <<_ACEOF
9453 /* end confdefs.h. */
9455 /* Override any GCC internal prototype to avoid an error.
9456 Use char because int might match the return type of a GCC
9457 builtin and then its argument prototype would still apply. */
9458 #ifdef __cplusplus
9459 extern "C"
9460 #endif
9461 char dlsym ();
9463 main ()
9465 return dlsym ();
9467 return 0;
9469 _ACEOF
9470 rm -f conftest.$ac_objext conftest$ac_exeext
9471 if { (ac_try="$ac_link"
9472 case "(($ac_try" in
9473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9474 *) ac_try_echo=$ac_try;;
9475 esac
9476 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9477 $as_echo "$ac_try_echo") >&5
9478 (eval "$ac_link") 2>conftest.er1
9479 ac_status=$?
9480 grep -v '^ *+' conftest.er1 >conftest.err
9481 rm -f conftest.er1
9482 cat conftest.err >&5
9483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9484 (exit $ac_status); } && {
9485 test -z "$ac_c_werror_flag" ||
9486 test ! -s conftest.err
9487 } && test -s conftest$ac_exeext && {
9488 test "$cross_compiling" = yes ||
9489 $as_test_x conftest$ac_exeext
9490 }; then
9491 ac_cv_lib_dl_dlsym=yes
9492 else
9493 $as_echo "$as_me: failed program was:" >&5
9494 sed 's/^/| /' conftest.$ac_ext >&5
9496 ac_cv_lib_dl_dlsym=no
9499 rm -rf conftest.dSYM
9500 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9501 conftest$ac_exeext conftest.$ac_ext
9502 LIBS=$ac_check_lib_save_LIBS
9504 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5
9505 $as_echo "$ac_cv_lib_dl_dlsym" >&6; }
9506 if test "x$ac_cv_lib_dl_dlsym" = x""yes; then
9507 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldl"
9510 { $as_echo "$as_me:$LINENO: checking for XmuCreateStippledPixmap in -lXmu" >&5
9511 $as_echo_n "checking for XmuCreateStippledPixmap in -lXmu... " >&6; }
9512 if test "${ac_cv_lib_Xmu_XmuCreateStippledPixmap+set}" = set; then
9513 $as_echo_n "(cached) " >&6
9514 else
9515 ac_check_lib_save_LIBS=$LIBS
9516 LIBS="-lXmu $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9517 cat >conftest.$ac_ext <<_ACEOF
9518 /* confdefs.h. */
9519 _ACEOF
9520 cat confdefs.h >>conftest.$ac_ext
9521 cat >>conftest.$ac_ext <<_ACEOF
9522 /* end confdefs.h. */
9524 /* Override any GCC internal prototype to avoid an error.
9525 Use char because int might match the return type of a GCC
9526 builtin and then its argument prototype would still apply. */
9527 #ifdef __cplusplus
9528 extern "C"
9529 #endif
9530 char XmuCreateStippledPixmap ();
9532 main ()
9534 return XmuCreateStippledPixmap ();
9536 return 0;
9538 _ACEOF
9539 rm -f conftest.$ac_objext conftest$ac_exeext
9540 if { (ac_try="$ac_link"
9541 case "(($ac_try" in
9542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9543 *) ac_try_echo=$ac_try;;
9544 esac
9545 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9546 $as_echo "$ac_try_echo") >&5
9547 (eval "$ac_link") 2>conftest.er1
9548 ac_status=$?
9549 grep -v '^ *+' conftest.er1 >conftest.err
9550 rm -f conftest.er1
9551 cat conftest.err >&5
9552 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9553 (exit $ac_status); } && {
9554 test -z "$ac_c_werror_flag" ||
9555 test ! -s conftest.err
9556 } && test -s conftest$ac_exeext && {
9557 test "$cross_compiling" = yes ||
9558 $as_test_x conftest$ac_exeext
9559 }; then
9560 ac_cv_lib_Xmu_XmuCreateStippledPixmap=yes
9561 else
9562 $as_echo "$as_me: failed program was:" >&5
9563 sed 's/^/| /' conftest.$ac_ext >&5
9565 ac_cv_lib_Xmu_XmuCreateStippledPixmap=no
9568 rm -rf conftest.dSYM
9569 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9570 conftest$ac_exeext conftest.$ac_ext
9571 LIBS=$ac_check_lib_save_LIBS
9573 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&5
9574 $as_echo "$ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&6; }
9575 if test "x$ac_cv_lib_Xmu_XmuCreateStippledPixmap" = x""yes; then
9576 GUI_X_LIBS="-lXmu $GUI_X_LIBS"
9579 if test -z "$SKIP_MOTIF"; then
9580 { $as_echo "$as_me:$LINENO: checking for XpEndJob in -lXp" >&5
9581 $as_echo_n "checking for XpEndJob in -lXp... " >&6; }
9582 if test "${ac_cv_lib_Xp_XpEndJob+set}" = set; then
9583 $as_echo_n "(cached) " >&6
9584 else
9585 ac_check_lib_save_LIBS=$LIBS
9586 LIBS="-lXp $GUI_X_LIBS -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9587 cat >conftest.$ac_ext <<_ACEOF
9588 /* confdefs.h. */
9589 _ACEOF
9590 cat confdefs.h >>conftest.$ac_ext
9591 cat >>conftest.$ac_ext <<_ACEOF
9592 /* end confdefs.h. */
9594 /* Override any GCC internal prototype to avoid an error.
9595 Use char because int might match the return type of a GCC
9596 builtin and then its argument prototype would still apply. */
9597 #ifdef __cplusplus
9598 extern "C"
9599 #endif
9600 char XpEndJob ();
9602 main ()
9604 return XpEndJob ();
9606 return 0;
9608 _ACEOF
9609 rm -f conftest.$ac_objext conftest$ac_exeext
9610 if { (ac_try="$ac_link"
9611 case "(($ac_try" in
9612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9613 *) ac_try_echo=$ac_try;;
9614 esac
9615 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9616 $as_echo "$ac_try_echo") >&5
9617 (eval "$ac_link") 2>conftest.er1
9618 ac_status=$?
9619 grep -v '^ *+' conftest.er1 >conftest.err
9620 rm -f conftest.er1
9621 cat conftest.err >&5
9622 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9623 (exit $ac_status); } && {
9624 test -z "$ac_c_werror_flag" ||
9625 test ! -s conftest.err
9626 } && test -s conftest$ac_exeext && {
9627 test "$cross_compiling" = yes ||
9628 $as_test_x conftest$ac_exeext
9629 }; then
9630 ac_cv_lib_Xp_XpEndJob=yes
9631 else
9632 $as_echo "$as_me: failed program was:" >&5
9633 sed 's/^/| /' conftest.$ac_ext >&5
9635 ac_cv_lib_Xp_XpEndJob=no
9638 rm -rf conftest.dSYM
9639 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9640 conftest$ac_exeext conftest.$ac_ext
9641 LIBS=$ac_check_lib_save_LIBS
9643 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpEndJob" >&5
9644 $as_echo "$ac_cv_lib_Xp_XpEndJob" >&6; }
9645 if test "x$ac_cv_lib_Xp_XpEndJob" = x""yes; then
9646 GUI_X_LIBS="-lXp $GUI_X_LIBS"
9650 LDFLAGS=$ldflags_save
9652 { $as_echo "$as_me:$LINENO: checking for extra X11 defines" >&5
9653 $as_echo_n "checking for extra X11 defines... " >&6; }
9654 NARROW_PROTO=
9655 rm -fr conftestdir
9656 if mkdir conftestdir; then
9657 cd conftestdir
9658 cat > Imakefile <<'EOF'
9659 acfindx:
9660 @echo 'NARROW_PROTO="${PROTO_DEFINES}"'
9662 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
9663 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9665 cd ..
9666 rm -fr conftestdir
9668 if test -z "$NARROW_PROTO"; then
9669 { $as_echo "$as_me:$LINENO: result: no" >&5
9670 $as_echo "no" >&6; }
9671 else
9672 { $as_echo "$as_me:$LINENO: result: $NARROW_PROTO" >&5
9673 $as_echo "$NARROW_PROTO" >&6; }
9678 if test "$enable_xsmp" = "yes"; then
9679 cppflags_save=$CPPFLAGS
9680 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9682 for ac_header in X11/SM/SMlib.h
9684 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9685 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9686 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9687 $as_echo_n "checking for $ac_header... " >&6; }
9688 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9689 $as_echo_n "(cached) " >&6
9691 ac_res=`eval 'as_val=${'$as_ac_Header'}
9692 $as_echo "$as_val"'`
9693 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9694 $as_echo "$ac_res" >&6; }
9695 else
9696 # Is the header compilable?
9697 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9698 $as_echo_n "checking $ac_header usability... " >&6; }
9699 cat >conftest.$ac_ext <<_ACEOF
9700 /* confdefs.h. */
9701 _ACEOF
9702 cat confdefs.h >>conftest.$ac_ext
9703 cat >>conftest.$ac_ext <<_ACEOF
9704 /* end confdefs.h. */
9705 $ac_includes_default
9706 #include <$ac_header>
9707 _ACEOF
9708 rm -f conftest.$ac_objext
9709 if { (ac_try="$ac_compile"
9710 case "(($ac_try" in
9711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9712 *) ac_try_echo=$ac_try;;
9713 esac
9714 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9715 $as_echo "$ac_try_echo") >&5
9716 (eval "$ac_compile") 2>conftest.er1
9717 ac_status=$?
9718 grep -v '^ *+' conftest.er1 >conftest.err
9719 rm -f conftest.er1
9720 cat conftest.err >&5
9721 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9722 (exit $ac_status); } && {
9723 test -z "$ac_c_werror_flag" ||
9724 test ! -s conftest.err
9725 } && test -s conftest.$ac_objext; then
9726 ac_header_compiler=yes
9727 else
9728 $as_echo "$as_me: failed program was:" >&5
9729 sed 's/^/| /' conftest.$ac_ext >&5
9731 ac_header_compiler=no
9734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9735 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9736 $as_echo "$ac_header_compiler" >&6; }
9738 # Is the header present?
9739 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9740 $as_echo_n "checking $ac_header presence... " >&6; }
9741 cat >conftest.$ac_ext <<_ACEOF
9742 /* confdefs.h. */
9743 _ACEOF
9744 cat confdefs.h >>conftest.$ac_ext
9745 cat >>conftest.$ac_ext <<_ACEOF
9746 /* end confdefs.h. */
9747 #include <$ac_header>
9748 _ACEOF
9749 if { (ac_try="$ac_cpp conftest.$ac_ext"
9750 case "(($ac_try" in
9751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9752 *) ac_try_echo=$ac_try;;
9753 esac
9754 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9755 $as_echo "$ac_try_echo") >&5
9756 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9757 ac_status=$?
9758 grep -v '^ *+' conftest.er1 >conftest.err
9759 rm -f conftest.er1
9760 cat conftest.err >&5
9761 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762 (exit $ac_status); } >/dev/null && {
9763 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9764 test ! -s conftest.err
9765 }; then
9766 ac_header_preproc=yes
9767 else
9768 $as_echo "$as_me: failed program was:" >&5
9769 sed 's/^/| /' conftest.$ac_ext >&5
9771 ac_header_preproc=no
9774 rm -f conftest.err conftest.$ac_ext
9775 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9776 $as_echo "$ac_header_preproc" >&6; }
9778 # So? What about this header?
9779 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9780 yes:no: )
9781 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9782 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9783 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9784 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9785 ac_header_preproc=yes
9787 no:yes:* )
9788 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9789 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9790 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9791 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9792 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9793 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9794 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9795 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9796 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9797 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9798 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9799 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9802 esac
9803 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9804 $as_echo_n "checking for $ac_header... " >&6; }
9805 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9806 $as_echo_n "(cached) " >&6
9807 else
9808 eval "$as_ac_Header=\$ac_header_preproc"
9810 ac_res=`eval 'as_val=${'$as_ac_Header'}
9811 $as_echo "$as_val"'`
9812 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9813 $as_echo "$ac_res" >&6; }
9816 as_val=`eval 'as_val=${'$as_ac_Header'}
9817 $as_echo "$as_val"'`
9818 if test "x$as_val" = x""yes; then
9819 cat >>confdefs.h <<_ACEOF
9820 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9821 _ACEOF
9825 done
9827 CPPFLAGS=$cppflags_save
9831 if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF" -o -z "$SKIP_GTK"; then
9832 cppflags_save=$CPPFLAGS
9833 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9836 for ac_header in X11/xpm.h X11/Sunkeysym.h
9838 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9839 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9840 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9841 $as_echo_n "checking for $ac_header... " >&6; }
9842 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9843 $as_echo_n "(cached) " >&6
9845 ac_res=`eval 'as_val=${'$as_ac_Header'}
9846 $as_echo "$as_val"'`
9847 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9848 $as_echo "$ac_res" >&6; }
9849 else
9850 # Is the header compilable?
9851 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9852 $as_echo_n "checking $ac_header usability... " >&6; }
9853 cat >conftest.$ac_ext <<_ACEOF
9854 /* confdefs.h. */
9855 _ACEOF
9856 cat confdefs.h >>conftest.$ac_ext
9857 cat >>conftest.$ac_ext <<_ACEOF
9858 /* end confdefs.h. */
9859 $ac_includes_default
9860 #include <$ac_header>
9861 _ACEOF
9862 rm -f conftest.$ac_objext
9863 if { (ac_try="$ac_compile"
9864 case "(($ac_try" in
9865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9866 *) ac_try_echo=$ac_try;;
9867 esac
9868 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9869 $as_echo "$ac_try_echo") >&5
9870 (eval "$ac_compile") 2>conftest.er1
9871 ac_status=$?
9872 grep -v '^ *+' conftest.er1 >conftest.err
9873 rm -f conftest.er1
9874 cat conftest.err >&5
9875 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9876 (exit $ac_status); } && {
9877 test -z "$ac_c_werror_flag" ||
9878 test ! -s conftest.err
9879 } && test -s conftest.$ac_objext; then
9880 ac_header_compiler=yes
9881 else
9882 $as_echo "$as_me: failed program was:" >&5
9883 sed 's/^/| /' conftest.$ac_ext >&5
9885 ac_header_compiler=no
9888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9889 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9890 $as_echo "$ac_header_compiler" >&6; }
9892 # Is the header present?
9893 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9894 $as_echo_n "checking $ac_header presence... " >&6; }
9895 cat >conftest.$ac_ext <<_ACEOF
9896 /* confdefs.h. */
9897 _ACEOF
9898 cat confdefs.h >>conftest.$ac_ext
9899 cat >>conftest.$ac_ext <<_ACEOF
9900 /* end confdefs.h. */
9901 #include <$ac_header>
9902 _ACEOF
9903 if { (ac_try="$ac_cpp conftest.$ac_ext"
9904 case "(($ac_try" in
9905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9906 *) ac_try_echo=$ac_try;;
9907 esac
9908 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9909 $as_echo "$ac_try_echo") >&5
9910 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9911 ac_status=$?
9912 grep -v '^ *+' conftest.er1 >conftest.err
9913 rm -f conftest.er1
9914 cat conftest.err >&5
9915 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9916 (exit $ac_status); } >/dev/null && {
9917 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9918 test ! -s conftest.err
9919 }; then
9920 ac_header_preproc=yes
9921 else
9922 $as_echo "$as_me: failed program was:" >&5
9923 sed 's/^/| /' conftest.$ac_ext >&5
9925 ac_header_preproc=no
9928 rm -f conftest.err conftest.$ac_ext
9929 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9930 $as_echo "$ac_header_preproc" >&6; }
9932 # So? What about this header?
9933 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9934 yes:no: )
9935 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9936 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9937 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9938 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9939 ac_header_preproc=yes
9941 no:yes:* )
9942 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9943 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9944 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9945 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9946 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9947 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9948 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9949 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9950 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9951 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9952 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9953 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9956 esac
9957 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9958 $as_echo_n "checking for $ac_header... " >&6; }
9959 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9960 $as_echo_n "(cached) " >&6
9961 else
9962 eval "$as_ac_Header=\$ac_header_preproc"
9964 ac_res=`eval 'as_val=${'$as_ac_Header'}
9965 $as_echo "$as_val"'`
9966 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9967 $as_echo "$ac_res" >&6; }
9970 as_val=`eval 'as_val=${'$as_ac_Header'}
9971 $as_echo "$as_val"'`
9972 if test "x$as_val" = x""yes; then
9973 cat >>confdefs.h <<_ACEOF
9974 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9975 _ACEOF
9979 done
9982 if test ! "$enable_xim" = "no"; then
9983 { $as_echo "$as_me:$LINENO: checking for XIMText in X11/Xlib.h" >&5
9984 $as_echo_n "checking for XIMText in X11/Xlib.h... " >&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 <X11/Xlib.h>
9992 _ACEOF
9993 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9994 $EGREP "XIMText" >/dev/null 2>&1; then
9995 { $as_echo "$as_me:$LINENO: result: yes" >&5
9996 $as_echo "yes" >&6; }
9997 else
9998 { $as_echo "$as_me:$LINENO: result: no; xim has been disabled" >&5
9999 $as_echo "no; xim has been disabled" >&6; }; enable_xim = "no"
10001 rm -f conftest*
10004 CPPFLAGS=$cppflags_save
10006 if test "$enable_xim" = "auto" -a "$enable_hangulinput" != "yes" \
10007 -a "x$GUITYPE" != "xNONE" ; then
10008 { $as_echo "$as_me:$LINENO: result: X GUI selected; xim has been enabled" >&5
10009 $as_echo "X GUI selected; xim has been enabled" >&6; }
10010 enable_xim="yes"
10014 if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
10015 cppflags_save=$CPPFLAGS
10016 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10017 { $as_echo "$as_me:$LINENO: checking for X11/Xmu/Editres.h" >&5
10018 $as_echo_n "checking for X11/Xmu/Editres.h... " >&6; }
10019 cat >conftest.$ac_ext <<_ACEOF
10020 /* confdefs.h. */
10021 _ACEOF
10022 cat confdefs.h >>conftest.$ac_ext
10023 cat >>conftest.$ac_ext <<_ACEOF
10024 /* end confdefs.h. */
10026 #include <X11/Intrinsic.h>
10027 #include <X11/Xmu/Editres.h>
10029 main ()
10031 int i; i = 0;
10033 return 0;
10035 _ACEOF
10036 rm -f conftest.$ac_objext
10037 if { (ac_try="$ac_compile"
10038 case "(($ac_try" in
10039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10040 *) ac_try_echo=$ac_try;;
10041 esac
10042 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10043 $as_echo "$ac_try_echo") >&5
10044 (eval "$ac_compile") 2>conftest.er1
10045 ac_status=$?
10046 grep -v '^ *+' conftest.er1 >conftest.err
10047 rm -f conftest.er1
10048 cat conftest.err >&5
10049 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10050 (exit $ac_status); } && {
10051 test -z "$ac_c_werror_flag" ||
10052 test ! -s conftest.err
10053 } && test -s conftest.$ac_objext; then
10054 { $as_echo "$as_me:$LINENO: result: yes" >&5
10055 $as_echo "yes" >&6; }
10056 cat >>confdefs.h <<\_ACEOF
10057 #define HAVE_X11_XMU_EDITRES_H 1
10058 _ACEOF
10060 else
10061 $as_echo "$as_me: failed program was:" >&5
10062 sed 's/^/| /' conftest.$ac_ext >&5
10064 { $as_echo "$as_me:$LINENO: result: no" >&5
10065 $as_echo "no" >&6; }
10068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10069 CPPFLAGS=$cppflags_save
10072 if test -z "$SKIP_MOTIF"; then
10073 cppflags_save=$CPPFLAGS
10074 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10082 for ac_header in Xm/Xm.h Xm/XpmP.h Xm/JoinSideT.h Xm/TraitP.h Xm/Manager.h \
10083 Xm/UnhighlightT.h Xm/Notebook.h
10085 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10086 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10087 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10088 $as_echo_n "checking for $ac_header... " >&6; }
10089 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10090 $as_echo_n "(cached) " >&6
10092 ac_res=`eval 'as_val=${'$as_ac_Header'}
10093 $as_echo "$as_val"'`
10094 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10095 $as_echo "$ac_res" >&6; }
10096 else
10097 # Is the header compilable?
10098 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10099 $as_echo_n "checking $ac_header usability... " >&6; }
10100 cat >conftest.$ac_ext <<_ACEOF
10101 /* confdefs.h. */
10102 _ACEOF
10103 cat confdefs.h >>conftest.$ac_ext
10104 cat >>conftest.$ac_ext <<_ACEOF
10105 /* end confdefs.h. */
10106 $ac_includes_default
10107 #include <$ac_header>
10108 _ACEOF
10109 rm -f conftest.$ac_objext
10110 if { (ac_try="$ac_compile"
10111 case "(($ac_try" in
10112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10113 *) ac_try_echo=$ac_try;;
10114 esac
10115 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10116 $as_echo "$ac_try_echo") >&5
10117 (eval "$ac_compile") 2>conftest.er1
10118 ac_status=$?
10119 grep -v '^ *+' conftest.er1 >conftest.err
10120 rm -f conftest.er1
10121 cat conftest.err >&5
10122 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10123 (exit $ac_status); } && {
10124 test -z "$ac_c_werror_flag" ||
10125 test ! -s conftest.err
10126 } && test -s conftest.$ac_objext; then
10127 ac_header_compiler=yes
10128 else
10129 $as_echo "$as_me: failed program was:" >&5
10130 sed 's/^/| /' conftest.$ac_ext >&5
10132 ac_header_compiler=no
10135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10136 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10137 $as_echo "$ac_header_compiler" >&6; }
10139 # Is the header present?
10140 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10141 $as_echo_n "checking $ac_header presence... " >&6; }
10142 cat >conftest.$ac_ext <<_ACEOF
10143 /* confdefs.h. */
10144 _ACEOF
10145 cat confdefs.h >>conftest.$ac_ext
10146 cat >>conftest.$ac_ext <<_ACEOF
10147 /* end confdefs.h. */
10148 #include <$ac_header>
10149 _ACEOF
10150 if { (ac_try="$ac_cpp conftest.$ac_ext"
10151 case "(($ac_try" in
10152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10153 *) ac_try_echo=$ac_try;;
10154 esac
10155 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10156 $as_echo "$ac_try_echo") >&5
10157 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10158 ac_status=$?
10159 grep -v '^ *+' conftest.er1 >conftest.err
10160 rm -f conftest.er1
10161 cat conftest.err >&5
10162 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10163 (exit $ac_status); } >/dev/null && {
10164 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10165 test ! -s conftest.err
10166 }; then
10167 ac_header_preproc=yes
10168 else
10169 $as_echo "$as_me: failed program was:" >&5
10170 sed 's/^/| /' conftest.$ac_ext >&5
10172 ac_header_preproc=no
10175 rm -f conftest.err conftest.$ac_ext
10176 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10177 $as_echo "$ac_header_preproc" >&6; }
10179 # So? What about this header?
10180 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10181 yes:no: )
10182 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10183 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10184 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10185 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10186 ac_header_preproc=yes
10188 no:yes:* )
10189 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10190 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10191 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10192 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10193 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10194 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10195 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10196 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10197 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10198 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10199 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10200 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10203 esac
10204 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10205 $as_echo_n "checking for $ac_header... " >&6; }
10206 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10207 $as_echo_n "(cached) " >&6
10208 else
10209 eval "$as_ac_Header=\$ac_header_preproc"
10211 ac_res=`eval 'as_val=${'$as_ac_Header'}
10212 $as_echo "$as_val"'`
10213 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10214 $as_echo "$ac_res" >&6; }
10217 as_val=`eval 'as_val=${'$as_ac_Header'}
10218 $as_echo "$as_val"'`
10219 if test "x$as_val" = x""yes; then
10220 cat >>confdefs.h <<_ACEOF
10221 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10222 _ACEOF
10226 done
10229 if test $ac_cv_header_Xm_XpmP_h = yes; then
10230 { $as_echo "$as_me:$LINENO: checking for XpmAttributes_21 in Xm/XpmP.h" >&5
10231 $as_echo_n "checking for XpmAttributes_21 in Xm/XpmP.h... " >&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 <Xm/XpmP.h>
10240 main ()
10242 XpmAttributes_21 attr;
10244 return 0;
10246 _ACEOF
10247 rm -f conftest.$ac_objext
10248 if { (ac_try="$ac_compile"
10249 case "(($ac_try" in
10250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10251 *) ac_try_echo=$ac_try;;
10252 esac
10253 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10254 $as_echo "$ac_try_echo") >&5
10255 (eval "$ac_compile") 2>conftest.er1
10256 ac_status=$?
10257 grep -v '^ *+' conftest.er1 >conftest.err
10258 rm -f conftest.er1
10259 cat conftest.err >&5
10260 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10261 (exit $ac_status); } && {
10262 test -z "$ac_c_werror_flag" ||
10263 test ! -s conftest.err
10264 } && test -s conftest.$ac_objext; then
10265 { $as_echo "$as_me:$LINENO: result: yes" >&5
10266 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
10267 #define XPMATTRIBUTES_TYPE XpmAttributes_21
10268 _ACEOF
10270 else
10271 $as_echo "$as_me: failed program was:" >&5
10272 sed 's/^/| /' conftest.$ac_ext >&5
10274 { $as_echo "$as_me:$LINENO: result: no" >&5
10275 $as_echo "no" >&6; }; cat >>confdefs.h <<\_ACEOF
10276 #define XPMATTRIBUTES_TYPE XpmAttributes
10277 _ACEOF
10282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10283 else
10284 cat >>confdefs.h <<\_ACEOF
10285 #define XPMATTRIBUTES_TYPE XpmAttributes
10286 _ACEOF
10289 CPPFLAGS=$cppflags_save
10292 if test "x$GUITYPE" = "xNONE" -a "$enable_xim" = "yes"; then
10293 { $as_echo "$as_me:$LINENO: result: no GUI selected; xim has been disabled" >&5
10294 $as_echo "no GUI selected; xim has been disabled" >&6; }
10295 enable_xim="no"
10297 if test "x$GUITYPE" = "xNONE" -a "$enable_fontset" = "yes"; then
10298 { $as_echo "$as_me:$LINENO: result: no GUI selected; fontset has been disabled" >&5
10299 $as_echo "no GUI selected; fontset has been disabled" >&6; }
10300 enable_fontset="no"
10302 if test "x$GUITYPE:$enable_fontset" = "xGTK:yes" -a "0$gtk_major_version" -ge 2; then
10303 { $as_echo "$as_me:$LINENO: result: GTK+ 2 GUI selected; fontset has been disabled" >&5
10304 $as_echo "GTK+ 2 GUI selected; fontset has been disabled" >&6; }
10305 enable_fontset="no"
10308 if test -z "$SKIP_PHOTON"; then
10309 GUITYPE=PHOTONGUI
10317 if test "$enable_workshop" = "yes" -a -n "$SKIP_MOTIF"; then
10318 { { $as_echo "$as_me:$LINENO: error: cannot use workshop without Motif" >&5
10319 $as_echo "$as_me: error: cannot use workshop without Motif" >&2;}
10320 { (exit 1); exit 1; }; }
10323 if test "$enable_xim" = "yes"; then
10324 cat >>confdefs.h <<\_ACEOF
10325 #define FEAT_XIM 1
10326 _ACEOF
10329 if test "$enable_fontset" = "yes"; then
10330 cat >>confdefs.h <<\_ACEOF
10331 #define FEAT_XFONTSET 1
10332 _ACEOF
10339 if test "$enable_hangulinput" = "yes"; then
10340 if test "x$GUITYPE" = "xNONE"; then
10341 { $as_echo "$as_me:$LINENO: result: no GUI selected; hangul input has been disabled" >&5
10342 $as_echo "no GUI selected; hangul input has been disabled" >&6; }
10343 enable_hangulinput=no
10344 else
10345 cat >>confdefs.h <<\_ACEOF
10346 #define FEAT_HANGULIN 1
10347 _ACEOF
10349 HANGULIN_SRC=hangulin.c
10351 HANGULIN_OBJ=objects/hangulin.o
10357 { $as_echo "$as_me:$LINENO: checking whether toupper is broken" >&5
10358 $as_echo_n "checking whether toupper is broken... " >&6; }
10359 if test "${vim_cv_toupper_broken+set}" = set; then
10360 $as_echo_n "(cached) " >&6
10361 else
10363 if test "$cross_compiling" = yes; then
10365 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_toupper_broken'" >&5
10366 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_toupper_broken'" >&2;}
10367 { (exit 1); exit 1; }; }
10369 else
10370 cat >conftest.$ac_ext <<_ACEOF
10372 #include "confdefs.h"
10373 #include <ctype.h>
10374 #if STDC_HEADERS
10375 # include <stdlib.h>
10376 # include <stddef.h>
10377 #endif
10378 main() { exit(toupper('A') == 'A' && tolower('z') == 'z'); }
10380 _ACEOF
10381 rm -f conftest$ac_exeext
10382 if { (ac_try="$ac_link"
10383 case "(($ac_try" in
10384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10385 *) ac_try_echo=$ac_try;;
10386 esac
10387 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10388 $as_echo "$ac_try_echo") >&5
10389 (eval "$ac_link") 2>&5
10390 ac_status=$?
10391 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10392 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10393 { (case "(($ac_try" in
10394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10395 *) ac_try_echo=$ac_try;;
10396 esac
10397 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10398 $as_echo "$ac_try_echo") >&5
10399 (eval "$ac_try") 2>&5
10400 ac_status=$?
10401 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10402 (exit $ac_status); }; }; then
10404 vim_cv_toupper_broken=yes
10406 else
10407 $as_echo "$as_me: program exited with status $ac_status" >&5
10408 $as_echo "$as_me: failed program was:" >&5
10409 sed 's/^/| /' conftest.$ac_ext >&5
10411 ( exit $ac_status )
10413 vim_cv_toupper_broken=no
10416 rm -rf conftest.dSYM
10417 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10422 { $as_echo "$as_me:$LINENO: result: $vim_cv_toupper_broken" >&5
10423 $as_echo "$vim_cv_toupper_broken" >&6; }
10425 if test "x$vim_cv_toupper_broken" = "xyes" ; then
10426 cat >>confdefs.h <<\_ACEOF
10427 #define BROKEN_TOUPPER 1
10428 _ACEOF
10432 { $as_echo "$as_me:$LINENO: checking whether __DATE__ and __TIME__ work" >&5
10433 $as_echo_n "checking whether __DATE__ and __TIME__ work... " >&6; }
10434 cat >conftest.$ac_ext <<_ACEOF
10435 /* confdefs.h. */
10436 _ACEOF
10437 cat confdefs.h >>conftest.$ac_ext
10438 cat >>conftest.$ac_ext <<_ACEOF
10439 /* end confdefs.h. */
10440 #include <stdio.h>
10442 main ()
10444 printf("(" __DATE__ " " __TIME__ ")");
10446 return 0;
10448 _ACEOF
10449 rm -f conftest.$ac_objext
10450 if { (ac_try="$ac_compile"
10451 case "(($ac_try" in
10452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10453 *) ac_try_echo=$ac_try;;
10454 esac
10455 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10456 $as_echo "$ac_try_echo") >&5
10457 (eval "$ac_compile") 2>conftest.er1
10458 ac_status=$?
10459 grep -v '^ *+' conftest.er1 >conftest.err
10460 rm -f conftest.er1
10461 cat conftest.err >&5
10462 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10463 (exit $ac_status); } && {
10464 test -z "$ac_c_werror_flag" ||
10465 test ! -s conftest.err
10466 } && test -s conftest.$ac_objext; then
10467 { $as_echo "$as_me:$LINENO: result: yes" >&5
10468 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
10469 #define HAVE_DATE_TIME 1
10470 _ACEOF
10472 else
10473 $as_echo "$as_me: failed program was:" >&5
10474 sed 's/^/| /' conftest.$ac_ext >&5
10476 { $as_echo "$as_me:$LINENO: result: no" >&5
10477 $as_echo "no" >&6; }
10480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10482 { $as_echo "$as_me:$LINENO: checking whether __attribute__((unused)) is allowed" >&5
10483 $as_echo_n "checking whether __attribute__((unused)) is allowed... " >&6; }
10484 cat >conftest.$ac_ext <<_ACEOF
10485 /* confdefs.h. */
10486 _ACEOF
10487 cat confdefs.h >>conftest.$ac_ext
10488 cat >>conftest.$ac_ext <<_ACEOF
10489 /* end confdefs.h. */
10490 #include <stdio.h>
10492 main ()
10494 int x __attribute__((unused));
10496 return 0;
10498 _ACEOF
10499 rm -f conftest.$ac_objext
10500 if { (ac_try="$ac_compile"
10501 case "(($ac_try" in
10502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10503 *) ac_try_echo=$ac_try;;
10504 esac
10505 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10506 $as_echo "$ac_try_echo") >&5
10507 (eval "$ac_compile") 2>conftest.er1
10508 ac_status=$?
10509 grep -v '^ *+' conftest.er1 >conftest.err
10510 rm -f conftest.er1
10511 cat conftest.err >&5
10512 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10513 (exit $ac_status); } && {
10514 test -z "$ac_c_werror_flag" ||
10515 test ! -s conftest.err
10516 } && test -s conftest.$ac_objext; then
10517 { $as_echo "$as_me:$LINENO: result: yes" >&5
10518 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
10519 #define HAVE_ATTRIBUTE_UNUSED 1
10520 _ACEOF
10522 else
10523 $as_echo "$as_me: failed program was:" >&5
10524 sed 's/^/| /' conftest.$ac_ext >&5
10526 { $as_echo "$as_me:$LINENO: result: no" >&5
10527 $as_echo "no" >&6; }
10530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10532 if test "${ac_cv_header_elf_h+set}" = set; then
10533 { $as_echo "$as_me:$LINENO: checking for elf.h" >&5
10534 $as_echo_n "checking for elf.h... " >&6; }
10535 if test "${ac_cv_header_elf_h+set}" = set; then
10536 $as_echo_n "(cached) " >&6
10538 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5
10539 $as_echo "$ac_cv_header_elf_h" >&6; }
10540 else
10541 # Is the header compilable?
10542 { $as_echo "$as_me:$LINENO: checking elf.h usability" >&5
10543 $as_echo_n "checking elf.h usability... " >&6; }
10544 cat >conftest.$ac_ext <<_ACEOF
10545 /* confdefs.h. */
10546 _ACEOF
10547 cat confdefs.h >>conftest.$ac_ext
10548 cat >>conftest.$ac_ext <<_ACEOF
10549 /* end confdefs.h. */
10550 $ac_includes_default
10551 #include <elf.h>
10552 _ACEOF
10553 rm -f conftest.$ac_objext
10554 if { (ac_try="$ac_compile"
10555 case "(($ac_try" in
10556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10557 *) ac_try_echo=$ac_try;;
10558 esac
10559 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10560 $as_echo "$ac_try_echo") >&5
10561 (eval "$ac_compile") 2>conftest.er1
10562 ac_status=$?
10563 grep -v '^ *+' conftest.er1 >conftest.err
10564 rm -f conftest.er1
10565 cat conftest.err >&5
10566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10567 (exit $ac_status); } && {
10568 test -z "$ac_c_werror_flag" ||
10569 test ! -s conftest.err
10570 } && test -s conftest.$ac_objext; then
10571 ac_header_compiler=yes
10572 else
10573 $as_echo "$as_me: failed program was:" >&5
10574 sed 's/^/| /' conftest.$ac_ext >&5
10576 ac_header_compiler=no
10579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10580 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10581 $as_echo "$ac_header_compiler" >&6; }
10583 # Is the header present?
10584 { $as_echo "$as_me:$LINENO: checking elf.h presence" >&5
10585 $as_echo_n "checking elf.h presence... " >&6; }
10586 cat >conftest.$ac_ext <<_ACEOF
10587 /* confdefs.h. */
10588 _ACEOF
10589 cat confdefs.h >>conftest.$ac_ext
10590 cat >>conftest.$ac_ext <<_ACEOF
10591 /* end confdefs.h. */
10592 #include <elf.h>
10593 _ACEOF
10594 if { (ac_try="$ac_cpp conftest.$ac_ext"
10595 case "(($ac_try" in
10596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10597 *) ac_try_echo=$ac_try;;
10598 esac
10599 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10600 $as_echo "$ac_try_echo") >&5
10601 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10602 ac_status=$?
10603 grep -v '^ *+' conftest.er1 >conftest.err
10604 rm -f conftest.er1
10605 cat conftest.err >&5
10606 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10607 (exit $ac_status); } >/dev/null && {
10608 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10609 test ! -s conftest.err
10610 }; then
10611 ac_header_preproc=yes
10612 else
10613 $as_echo "$as_me: failed program was:" >&5
10614 sed 's/^/| /' conftest.$ac_ext >&5
10616 ac_header_preproc=no
10619 rm -f conftest.err conftest.$ac_ext
10620 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10621 $as_echo "$ac_header_preproc" >&6; }
10623 # So? What about this header?
10624 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10625 yes:no: )
10626 { $as_echo "$as_me:$LINENO: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&5
10627 $as_echo "$as_me: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10628 { $as_echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the compiler's result" >&5
10629 $as_echo "$as_me: WARNING: elf.h: proceeding with the compiler's result" >&2;}
10630 ac_header_preproc=yes
10632 no:yes:* )
10633 { $as_echo "$as_me:$LINENO: WARNING: elf.h: present but cannot be compiled" >&5
10634 $as_echo "$as_me: WARNING: elf.h: present but cannot be compiled" >&2;}
10635 { $as_echo "$as_me:$LINENO: WARNING: elf.h: check for missing prerequisite headers?" >&5
10636 $as_echo "$as_me: WARNING: elf.h: check for missing prerequisite headers?" >&2;}
10637 { $as_echo "$as_me:$LINENO: WARNING: elf.h: see the Autoconf documentation" >&5
10638 $as_echo "$as_me: WARNING: elf.h: see the Autoconf documentation" >&2;}
10639 { $as_echo "$as_me:$LINENO: WARNING: elf.h: section \"Present But Cannot Be Compiled\"" >&5
10640 $as_echo "$as_me: WARNING: elf.h: section \"Present But Cannot Be Compiled\"" >&2;}
10641 { $as_echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the preprocessor's result" >&5
10642 $as_echo "$as_me: WARNING: elf.h: proceeding with the preprocessor's result" >&2;}
10643 { $as_echo "$as_me:$LINENO: WARNING: elf.h: in the future, the compiler will take precedence" >&5
10644 $as_echo "$as_me: WARNING: elf.h: in the future, the compiler will take precedence" >&2;}
10647 esac
10648 { $as_echo "$as_me:$LINENO: checking for elf.h" >&5
10649 $as_echo_n "checking for elf.h... " >&6; }
10650 if test "${ac_cv_header_elf_h+set}" = set; then
10651 $as_echo_n "(cached) " >&6
10652 else
10653 ac_cv_header_elf_h=$ac_header_preproc
10655 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5
10656 $as_echo "$ac_cv_header_elf_h" >&6; }
10659 if test "x$ac_cv_header_elf_h" = x""yes; then
10660 HAS_ELF=1
10664 if test "$HAS_ELF" = 1; then
10666 { $as_echo "$as_me:$LINENO: checking for main in -lelf" >&5
10667 $as_echo_n "checking for main in -lelf... " >&6; }
10668 if test "${ac_cv_lib_elf_main+set}" = set; then
10669 $as_echo_n "(cached) " >&6
10670 else
10671 ac_check_lib_save_LIBS=$LIBS
10672 LIBS="-lelf $LIBS"
10673 cat >conftest.$ac_ext <<_ACEOF
10674 /* confdefs.h. */
10675 _ACEOF
10676 cat confdefs.h >>conftest.$ac_ext
10677 cat >>conftest.$ac_ext <<_ACEOF
10678 /* end confdefs.h. */
10682 main ()
10684 return main ();
10686 return 0;
10688 _ACEOF
10689 rm -f conftest.$ac_objext conftest$ac_exeext
10690 if { (ac_try="$ac_link"
10691 case "(($ac_try" in
10692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10693 *) ac_try_echo=$ac_try;;
10694 esac
10695 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10696 $as_echo "$ac_try_echo") >&5
10697 (eval "$ac_link") 2>conftest.er1
10698 ac_status=$?
10699 grep -v '^ *+' conftest.er1 >conftest.err
10700 rm -f conftest.er1
10701 cat conftest.err >&5
10702 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10703 (exit $ac_status); } && {
10704 test -z "$ac_c_werror_flag" ||
10705 test ! -s conftest.err
10706 } && test -s conftest$ac_exeext && {
10707 test "$cross_compiling" = yes ||
10708 $as_test_x conftest$ac_exeext
10709 }; then
10710 ac_cv_lib_elf_main=yes
10711 else
10712 $as_echo "$as_me: failed program was:" >&5
10713 sed 's/^/| /' conftest.$ac_ext >&5
10715 ac_cv_lib_elf_main=no
10718 rm -rf conftest.dSYM
10719 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10720 conftest$ac_exeext conftest.$ac_ext
10721 LIBS=$ac_check_lib_save_LIBS
10723 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_elf_main" >&5
10724 $as_echo "$ac_cv_lib_elf_main" >&6; }
10725 if test "x$ac_cv_lib_elf_main" = x""yes; then
10726 cat >>confdefs.h <<_ACEOF
10727 #define HAVE_LIBELF 1
10728 _ACEOF
10730 LIBS="-lelf $LIBS"
10741 ac_header_dirent=no
10742 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10743 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10744 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10745 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
10746 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10747 $as_echo_n "(cached) " >&6
10748 else
10749 cat >conftest.$ac_ext <<_ACEOF
10750 /* confdefs.h. */
10751 _ACEOF
10752 cat confdefs.h >>conftest.$ac_ext
10753 cat >>conftest.$ac_ext <<_ACEOF
10754 /* end confdefs.h. */
10755 #include <sys/types.h>
10756 #include <$ac_hdr>
10759 main ()
10761 if ((DIR *) 0)
10762 return 0;
10764 return 0;
10766 _ACEOF
10767 rm -f conftest.$ac_objext
10768 if { (ac_try="$ac_compile"
10769 case "(($ac_try" in
10770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10771 *) ac_try_echo=$ac_try;;
10772 esac
10773 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10774 $as_echo "$ac_try_echo") >&5
10775 (eval "$ac_compile") 2>conftest.er1
10776 ac_status=$?
10777 grep -v '^ *+' conftest.er1 >conftest.err
10778 rm -f conftest.er1
10779 cat conftest.err >&5
10780 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10781 (exit $ac_status); } && {
10782 test -z "$ac_c_werror_flag" ||
10783 test ! -s conftest.err
10784 } && test -s conftest.$ac_objext; then
10785 eval "$as_ac_Header=yes"
10786 else
10787 $as_echo "$as_me: failed program was:" >&5
10788 sed 's/^/| /' conftest.$ac_ext >&5
10790 eval "$as_ac_Header=no"
10793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10795 ac_res=`eval 'as_val=${'$as_ac_Header'}
10796 $as_echo "$as_val"'`
10797 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10798 $as_echo "$ac_res" >&6; }
10799 as_val=`eval 'as_val=${'$as_ac_Header'}
10800 $as_echo "$as_val"'`
10801 if test "x$as_val" = x""yes; then
10802 cat >>confdefs.h <<_ACEOF
10803 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10804 _ACEOF
10806 ac_header_dirent=$ac_hdr; break
10809 done
10810 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10811 if test $ac_header_dirent = dirent.h; then
10812 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
10813 $as_echo_n "checking for library containing opendir... " >&6; }
10814 if test "${ac_cv_search_opendir+set}" = set; then
10815 $as_echo_n "(cached) " >&6
10816 else
10817 ac_func_search_save_LIBS=$LIBS
10818 cat >conftest.$ac_ext <<_ACEOF
10819 /* confdefs.h. */
10820 _ACEOF
10821 cat confdefs.h >>conftest.$ac_ext
10822 cat >>conftest.$ac_ext <<_ACEOF
10823 /* end confdefs.h. */
10825 /* Override any GCC internal prototype to avoid an error.
10826 Use char because int might match the return type of a GCC
10827 builtin and then its argument prototype would still apply. */
10828 #ifdef __cplusplus
10829 extern "C"
10830 #endif
10831 char opendir ();
10833 main ()
10835 return opendir ();
10837 return 0;
10839 _ACEOF
10840 for ac_lib in '' dir; do
10841 if test -z "$ac_lib"; then
10842 ac_res="none required"
10843 else
10844 ac_res=-l$ac_lib
10845 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10847 rm -f conftest.$ac_objext conftest$ac_exeext
10848 if { (ac_try="$ac_link"
10849 case "(($ac_try" in
10850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10851 *) ac_try_echo=$ac_try;;
10852 esac
10853 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10854 $as_echo "$ac_try_echo") >&5
10855 (eval "$ac_link") 2>conftest.er1
10856 ac_status=$?
10857 grep -v '^ *+' conftest.er1 >conftest.err
10858 rm -f conftest.er1
10859 cat conftest.err >&5
10860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10861 (exit $ac_status); } && {
10862 test -z "$ac_c_werror_flag" ||
10863 test ! -s conftest.err
10864 } && test -s conftest$ac_exeext && {
10865 test "$cross_compiling" = yes ||
10866 $as_test_x conftest$ac_exeext
10867 }; then
10868 ac_cv_search_opendir=$ac_res
10869 else
10870 $as_echo "$as_me: failed program was:" >&5
10871 sed 's/^/| /' conftest.$ac_ext >&5
10876 rm -rf conftest.dSYM
10877 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10878 conftest$ac_exeext
10879 if test "${ac_cv_search_opendir+set}" = set; then
10880 break
10882 done
10883 if test "${ac_cv_search_opendir+set}" = set; then
10885 else
10886 ac_cv_search_opendir=no
10888 rm conftest.$ac_ext
10889 LIBS=$ac_func_search_save_LIBS
10891 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10892 $as_echo "$ac_cv_search_opendir" >&6; }
10893 ac_res=$ac_cv_search_opendir
10894 if test "$ac_res" != no; then
10895 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10899 else
10900 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
10901 $as_echo_n "checking for library containing opendir... " >&6; }
10902 if test "${ac_cv_search_opendir+set}" = set; then
10903 $as_echo_n "(cached) " >&6
10904 else
10905 ac_func_search_save_LIBS=$LIBS
10906 cat >conftest.$ac_ext <<_ACEOF
10907 /* confdefs.h. */
10908 _ACEOF
10909 cat confdefs.h >>conftest.$ac_ext
10910 cat >>conftest.$ac_ext <<_ACEOF
10911 /* end confdefs.h. */
10913 /* Override any GCC internal prototype to avoid an error.
10914 Use char because int might match the return type of a GCC
10915 builtin and then its argument prototype would still apply. */
10916 #ifdef __cplusplus
10917 extern "C"
10918 #endif
10919 char opendir ();
10921 main ()
10923 return opendir ();
10925 return 0;
10927 _ACEOF
10928 for ac_lib in '' x; do
10929 if test -z "$ac_lib"; then
10930 ac_res="none required"
10931 else
10932 ac_res=-l$ac_lib
10933 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10935 rm -f conftest.$ac_objext conftest$ac_exeext
10936 if { (ac_try="$ac_link"
10937 case "(($ac_try" in
10938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10939 *) ac_try_echo=$ac_try;;
10940 esac
10941 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10942 $as_echo "$ac_try_echo") >&5
10943 (eval "$ac_link") 2>conftest.er1
10944 ac_status=$?
10945 grep -v '^ *+' conftest.er1 >conftest.err
10946 rm -f conftest.er1
10947 cat conftest.err >&5
10948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10949 (exit $ac_status); } && {
10950 test -z "$ac_c_werror_flag" ||
10951 test ! -s conftest.err
10952 } && test -s conftest$ac_exeext && {
10953 test "$cross_compiling" = yes ||
10954 $as_test_x conftest$ac_exeext
10955 }; then
10956 ac_cv_search_opendir=$ac_res
10957 else
10958 $as_echo "$as_me: failed program was:" >&5
10959 sed 's/^/| /' conftest.$ac_ext >&5
10964 rm -rf conftest.dSYM
10965 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10966 conftest$ac_exeext
10967 if test "${ac_cv_search_opendir+set}" = set; then
10968 break
10970 done
10971 if test "${ac_cv_search_opendir+set}" = set; then
10973 else
10974 ac_cv_search_opendir=no
10976 rm conftest.$ac_ext
10977 LIBS=$ac_func_search_save_LIBS
10979 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10980 $as_echo "$ac_cv_search_opendir" >&6; }
10981 ac_res=$ac_cv_search_opendir
10982 if test "$ac_res" != no; then
10983 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10990 if test $ac_cv_header_sys_wait_h = no; then
10991 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that defines union wait" >&5
10992 $as_echo_n "checking for sys/wait.h that defines union wait... " >&6; }
10993 cat >conftest.$ac_ext <<_ACEOF
10994 /* confdefs.h. */
10995 _ACEOF
10996 cat confdefs.h >>conftest.$ac_ext
10997 cat >>conftest.$ac_ext <<_ACEOF
10998 /* end confdefs.h. */
10999 #include <sys/wait.h>
11001 main ()
11003 union wait xx, yy; xx = yy
11005 return 0;
11007 _ACEOF
11008 rm -f conftest.$ac_objext
11009 if { (ac_try="$ac_compile"
11010 case "(($ac_try" in
11011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11012 *) ac_try_echo=$ac_try;;
11013 esac
11014 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11015 $as_echo "$ac_try_echo") >&5
11016 (eval "$ac_compile") 2>conftest.er1
11017 ac_status=$?
11018 grep -v '^ *+' conftest.er1 >conftest.err
11019 rm -f conftest.er1
11020 cat conftest.err >&5
11021 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11022 (exit $ac_status); } && {
11023 test -z "$ac_c_werror_flag" ||
11024 test ! -s conftest.err
11025 } && test -s conftest.$ac_objext; then
11026 { $as_echo "$as_me:$LINENO: result: yes" >&5
11027 $as_echo "yes" >&6; }
11028 cat >>confdefs.h <<\_ACEOF
11029 #define HAVE_SYS_WAIT_H 1
11030 _ACEOF
11032 cat >>confdefs.h <<\_ACEOF
11033 #define HAVE_UNION_WAIT 1
11034 _ACEOF
11036 else
11037 $as_echo "$as_me: failed program was:" >&5
11038 sed 's/^/| /' conftest.$ac_ext >&5
11040 { $as_echo "$as_me:$LINENO: result: no" >&5
11041 $as_echo "no" >&6; }
11044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11087 for ac_header in stdarg.h stdlib.h string.h sys/select.h sys/utsname.h \
11088 termcap.h fcntl.h sgtty.h sys/ioctl.h sys/time.h sys/types.h termio.h \
11089 iconv.h langinfo.h math.h unistd.h stropts.h errno.h \
11090 sys/resource.h sys/systeminfo.h locale.h \
11091 sys/stream.h termios.h libc.h sys/statfs.h \
11092 poll.h sys/poll.h pwd.h utime.h sys/param.h libintl.h \
11093 libgen.h util/debug.h util/msg18n.h frame.h \
11094 sys/acl.h sys/access.h sys/sysinfo.h wchar.h wctype.h
11096 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11097 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11098 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11099 $as_echo_n "checking for $ac_header... " >&6; }
11100 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11101 $as_echo_n "(cached) " >&6
11103 ac_res=`eval 'as_val=${'$as_ac_Header'}
11104 $as_echo "$as_val"'`
11105 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11106 $as_echo "$ac_res" >&6; }
11107 else
11108 # Is the header compilable?
11109 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11110 $as_echo_n "checking $ac_header usability... " >&6; }
11111 cat >conftest.$ac_ext <<_ACEOF
11112 /* confdefs.h. */
11113 _ACEOF
11114 cat confdefs.h >>conftest.$ac_ext
11115 cat >>conftest.$ac_ext <<_ACEOF
11116 /* end confdefs.h. */
11117 $ac_includes_default
11118 #include <$ac_header>
11119 _ACEOF
11120 rm -f conftest.$ac_objext
11121 if { (ac_try="$ac_compile"
11122 case "(($ac_try" in
11123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11124 *) ac_try_echo=$ac_try;;
11125 esac
11126 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11127 $as_echo "$ac_try_echo") >&5
11128 (eval "$ac_compile") 2>conftest.er1
11129 ac_status=$?
11130 grep -v '^ *+' conftest.er1 >conftest.err
11131 rm -f conftest.er1
11132 cat conftest.err >&5
11133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11134 (exit $ac_status); } && {
11135 test -z "$ac_c_werror_flag" ||
11136 test ! -s conftest.err
11137 } && test -s conftest.$ac_objext; then
11138 ac_header_compiler=yes
11139 else
11140 $as_echo "$as_me: failed program was:" >&5
11141 sed 's/^/| /' conftest.$ac_ext >&5
11143 ac_header_compiler=no
11146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11147 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11148 $as_echo "$ac_header_compiler" >&6; }
11150 # Is the header present?
11151 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11152 $as_echo_n "checking $ac_header presence... " >&6; }
11153 cat >conftest.$ac_ext <<_ACEOF
11154 /* confdefs.h. */
11155 _ACEOF
11156 cat confdefs.h >>conftest.$ac_ext
11157 cat >>conftest.$ac_ext <<_ACEOF
11158 /* end confdefs.h. */
11159 #include <$ac_header>
11160 _ACEOF
11161 if { (ac_try="$ac_cpp conftest.$ac_ext"
11162 case "(($ac_try" in
11163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11164 *) ac_try_echo=$ac_try;;
11165 esac
11166 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11167 $as_echo "$ac_try_echo") >&5
11168 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11169 ac_status=$?
11170 grep -v '^ *+' conftest.er1 >conftest.err
11171 rm -f conftest.er1
11172 cat conftest.err >&5
11173 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11174 (exit $ac_status); } >/dev/null && {
11175 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11176 test ! -s conftest.err
11177 }; then
11178 ac_header_preproc=yes
11179 else
11180 $as_echo "$as_me: failed program was:" >&5
11181 sed 's/^/| /' conftest.$ac_ext >&5
11183 ac_header_preproc=no
11186 rm -f conftest.err conftest.$ac_ext
11187 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11188 $as_echo "$ac_header_preproc" >&6; }
11190 # So? What about this header?
11191 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11192 yes:no: )
11193 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11194 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11195 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11196 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11197 ac_header_preproc=yes
11199 no:yes:* )
11200 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11201 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11202 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11203 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11204 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11205 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11206 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11207 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11208 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11209 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11210 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11211 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11214 esac
11215 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11216 $as_echo_n "checking for $ac_header... " >&6; }
11217 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11218 $as_echo_n "(cached) " >&6
11219 else
11220 eval "$as_ac_Header=\$ac_header_preproc"
11222 ac_res=`eval 'as_val=${'$as_ac_Header'}
11223 $as_echo "$as_val"'`
11224 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11225 $as_echo "$ac_res" >&6; }
11228 as_val=`eval 'as_val=${'$as_ac_Header'}
11229 $as_echo "$as_val"'`
11230 if test "x$as_val" = x""yes; then
11231 cat >>confdefs.h <<_ACEOF
11232 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11233 _ACEOF
11237 done
11241 for ac_header in sys/ptem.h
11243 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11244 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11245 $as_echo_n "checking for $ac_header... " >&6; }
11246 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11247 $as_echo_n "(cached) " >&6
11248 else
11249 cat >conftest.$ac_ext <<_ACEOF
11250 /* confdefs.h. */
11251 _ACEOF
11252 cat confdefs.h >>conftest.$ac_ext
11253 cat >>conftest.$ac_ext <<_ACEOF
11254 /* end confdefs.h. */
11255 #if defined HAVE_SYS_STREAM_H
11256 # include <sys/stream.h>
11257 #endif
11259 #include <$ac_header>
11260 _ACEOF
11261 rm -f conftest.$ac_objext
11262 if { (ac_try="$ac_compile"
11263 case "(($ac_try" in
11264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11265 *) ac_try_echo=$ac_try;;
11266 esac
11267 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11268 $as_echo "$ac_try_echo") >&5
11269 (eval "$ac_compile") 2>conftest.er1
11270 ac_status=$?
11271 grep -v '^ *+' conftest.er1 >conftest.err
11272 rm -f conftest.er1
11273 cat conftest.err >&5
11274 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11275 (exit $ac_status); } && {
11276 test -z "$ac_c_werror_flag" ||
11277 test ! -s conftest.err
11278 } && test -s conftest.$ac_objext; then
11279 eval "$as_ac_Header=yes"
11280 else
11281 $as_echo "$as_me: failed program was:" >&5
11282 sed 's/^/| /' conftest.$ac_ext >&5
11284 eval "$as_ac_Header=no"
11287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11289 ac_res=`eval 'as_val=${'$as_ac_Header'}
11290 $as_echo "$as_val"'`
11291 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11292 $as_echo "$ac_res" >&6; }
11293 as_val=`eval 'as_val=${'$as_ac_Header'}
11294 $as_echo "$as_val"'`
11295 if test "x$as_val" = x""yes; then
11296 cat >>confdefs.h <<_ACEOF
11297 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11298 _ACEOF
11302 done
11306 for ac_header in sys/sysctl.h
11308 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11309 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11310 $as_echo_n "checking for $ac_header... " >&6; }
11311 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11312 $as_echo_n "(cached) " >&6
11313 else
11314 cat >conftest.$ac_ext <<_ACEOF
11315 /* confdefs.h. */
11316 _ACEOF
11317 cat confdefs.h >>conftest.$ac_ext
11318 cat >>conftest.$ac_ext <<_ACEOF
11319 /* end confdefs.h. */
11320 #if defined HAVE_SYS_PARAM_H
11321 # include <sys/param.h>
11322 #endif
11324 #include <$ac_header>
11325 _ACEOF
11326 rm -f conftest.$ac_objext
11327 if { (ac_try="$ac_compile"
11328 case "(($ac_try" in
11329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11330 *) ac_try_echo=$ac_try;;
11331 esac
11332 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11333 $as_echo "$ac_try_echo") >&5
11334 (eval "$ac_compile") 2>conftest.er1
11335 ac_status=$?
11336 grep -v '^ *+' conftest.er1 >conftest.err
11337 rm -f conftest.er1
11338 cat conftest.err >&5
11339 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11340 (exit $ac_status); } && {
11341 test -z "$ac_c_werror_flag" ||
11342 test ! -s conftest.err
11343 } && test -s conftest.$ac_objext; then
11344 eval "$as_ac_Header=yes"
11345 else
11346 $as_echo "$as_me: failed program was:" >&5
11347 sed 's/^/| /' conftest.$ac_ext >&5
11349 eval "$as_ac_Header=no"
11352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11354 ac_res=`eval 'as_val=${'$as_ac_Header'}
11355 $as_echo "$as_val"'`
11356 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11357 $as_echo "$ac_res" >&6; }
11358 as_val=`eval 'as_val=${'$as_ac_Header'}
11359 $as_echo "$as_val"'`
11360 if test "x$as_val" = x""yes; then
11361 cat >>confdefs.h <<_ACEOF
11362 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11363 _ACEOF
11367 done
11371 { $as_echo "$as_me:$LINENO: checking for pthread_np.h" >&5
11372 $as_echo_n "checking for pthread_np.h... " >&6; }
11373 cat >conftest.$ac_ext <<_ACEOF
11374 /* confdefs.h. */
11375 _ACEOF
11376 cat confdefs.h >>conftest.$ac_ext
11377 cat >>conftest.$ac_ext <<_ACEOF
11378 /* end confdefs.h. */
11380 #include <pthread.h>
11381 #include <pthread_np.h>
11383 main ()
11385 int i; i = 0;
11387 return 0;
11389 _ACEOF
11390 rm -f conftest.$ac_objext
11391 if { (ac_try="$ac_compile"
11392 case "(($ac_try" in
11393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11394 *) ac_try_echo=$ac_try;;
11395 esac
11396 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11397 $as_echo "$ac_try_echo") >&5
11398 (eval "$ac_compile") 2>conftest.er1
11399 ac_status=$?
11400 grep -v '^ *+' conftest.er1 >conftest.err
11401 rm -f conftest.er1
11402 cat conftest.err >&5
11403 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11404 (exit $ac_status); } && {
11405 test -z "$ac_c_werror_flag" ||
11406 test ! -s conftest.err
11407 } && test -s conftest.$ac_objext; then
11408 { $as_echo "$as_me:$LINENO: result: yes" >&5
11409 $as_echo "yes" >&6; }
11410 cat >>confdefs.h <<\_ACEOF
11411 #define HAVE_PTHREAD_NP_H 1
11412 _ACEOF
11414 else
11415 $as_echo "$as_me: failed program was:" >&5
11416 sed 's/^/| /' conftest.$ac_ext >&5
11418 { $as_echo "$as_me:$LINENO: result: no" >&5
11419 $as_echo "no" >&6; }
11422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11425 for ac_header in strings.h
11427 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11428 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11429 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11430 $as_echo_n "checking for $ac_header... " >&6; }
11431 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11432 $as_echo_n "(cached) " >&6
11434 ac_res=`eval 'as_val=${'$as_ac_Header'}
11435 $as_echo "$as_val"'`
11436 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11437 $as_echo "$ac_res" >&6; }
11438 else
11439 # Is the header compilable?
11440 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11441 $as_echo_n "checking $ac_header usability... " >&6; }
11442 cat >conftest.$ac_ext <<_ACEOF
11443 /* confdefs.h. */
11444 _ACEOF
11445 cat confdefs.h >>conftest.$ac_ext
11446 cat >>conftest.$ac_ext <<_ACEOF
11447 /* end confdefs.h. */
11448 $ac_includes_default
11449 #include <$ac_header>
11450 _ACEOF
11451 rm -f conftest.$ac_objext
11452 if { (ac_try="$ac_compile"
11453 case "(($ac_try" in
11454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11455 *) ac_try_echo=$ac_try;;
11456 esac
11457 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11458 $as_echo "$ac_try_echo") >&5
11459 (eval "$ac_compile") 2>conftest.er1
11460 ac_status=$?
11461 grep -v '^ *+' conftest.er1 >conftest.err
11462 rm -f conftest.er1
11463 cat conftest.err >&5
11464 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11465 (exit $ac_status); } && {
11466 test -z "$ac_c_werror_flag" ||
11467 test ! -s conftest.err
11468 } && test -s conftest.$ac_objext; then
11469 ac_header_compiler=yes
11470 else
11471 $as_echo "$as_me: failed program was:" >&5
11472 sed 's/^/| /' conftest.$ac_ext >&5
11474 ac_header_compiler=no
11477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11478 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11479 $as_echo "$ac_header_compiler" >&6; }
11481 # Is the header present?
11482 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11483 $as_echo_n "checking $ac_header presence... " >&6; }
11484 cat >conftest.$ac_ext <<_ACEOF
11485 /* confdefs.h. */
11486 _ACEOF
11487 cat confdefs.h >>conftest.$ac_ext
11488 cat >>conftest.$ac_ext <<_ACEOF
11489 /* end confdefs.h. */
11490 #include <$ac_header>
11491 _ACEOF
11492 if { (ac_try="$ac_cpp conftest.$ac_ext"
11493 case "(($ac_try" in
11494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11495 *) ac_try_echo=$ac_try;;
11496 esac
11497 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11498 $as_echo "$ac_try_echo") >&5
11499 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11500 ac_status=$?
11501 grep -v '^ *+' conftest.er1 >conftest.err
11502 rm -f conftest.er1
11503 cat conftest.err >&5
11504 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11505 (exit $ac_status); } >/dev/null && {
11506 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11507 test ! -s conftest.err
11508 }; then
11509 ac_header_preproc=yes
11510 else
11511 $as_echo "$as_me: failed program was:" >&5
11512 sed 's/^/| /' conftest.$ac_ext >&5
11514 ac_header_preproc=no
11517 rm -f conftest.err conftest.$ac_ext
11518 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11519 $as_echo "$ac_header_preproc" >&6; }
11521 # So? What about this header?
11522 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11523 yes:no: )
11524 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11525 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11526 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11527 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11528 ac_header_preproc=yes
11530 no:yes:* )
11531 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11532 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11533 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11534 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11535 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11536 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11537 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11538 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11539 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11540 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11541 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11542 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11545 esac
11546 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11547 $as_echo_n "checking for $ac_header... " >&6; }
11548 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11549 $as_echo_n "(cached) " >&6
11550 else
11551 eval "$as_ac_Header=\$ac_header_preproc"
11553 ac_res=`eval 'as_val=${'$as_ac_Header'}
11554 $as_echo "$as_val"'`
11555 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11556 $as_echo "$ac_res" >&6; }
11559 as_val=`eval 'as_val=${'$as_ac_Header'}
11560 $as_echo "$as_val"'`
11561 if test "x$as_val" = x""yes; then
11562 cat >>confdefs.h <<_ACEOF
11563 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11564 _ACEOF
11568 done
11570 if test "x$MACOSX" = "xyes"; then
11571 cat >>confdefs.h <<\_ACEOF
11572 #define NO_STRINGS_WITH_STRING_H 1
11573 _ACEOF
11575 else
11577 { $as_echo "$as_me:$LINENO: checking if strings.h can be included after string.h" >&5
11578 $as_echo_n "checking if strings.h can be included after string.h... " >&6; }
11579 cppflags_save=$CPPFLAGS
11580 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11581 cat >conftest.$ac_ext <<_ACEOF
11582 /* confdefs.h. */
11583 _ACEOF
11584 cat confdefs.h >>conftest.$ac_ext
11585 cat >>conftest.$ac_ext <<_ACEOF
11586 /* end confdefs.h. */
11588 #if defined(_AIX) && !defined(_AIX51) && !defined(_NO_PROTO)
11589 # define _NO_PROTO /* like in os_unix.h, causes conflict for AIX (Winn) */
11590 /* but don't do it on AIX 5.1 (Uribarri) */
11591 #endif
11592 #ifdef HAVE_XM_XM_H
11593 # include <Xm/Xm.h> /* This breaks it for HP-UX 11 (Squassabia) */
11594 #endif
11595 #ifdef HAVE_STRING_H
11596 # include <string.h>
11597 #endif
11598 #if defined(HAVE_STRINGS_H)
11599 # include <strings.h>
11600 #endif
11603 main ()
11605 int i; i = 0;
11607 return 0;
11609 _ACEOF
11610 rm -f conftest.$ac_objext
11611 if { (ac_try="$ac_compile"
11612 case "(($ac_try" in
11613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11614 *) ac_try_echo=$ac_try;;
11615 esac
11616 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11617 $as_echo "$ac_try_echo") >&5
11618 (eval "$ac_compile") 2>conftest.er1
11619 ac_status=$?
11620 grep -v '^ *+' conftest.er1 >conftest.err
11621 rm -f conftest.er1
11622 cat conftest.err >&5
11623 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11624 (exit $ac_status); } && {
11625 test -z "$ac_c_werror_flag" ||
11626 test ! -s conftest.err
11627 } && test -s conftest.$ac_objext; then
11628 { $as_echo "$as_me:$LINENO: result: yes" >&5
11629 $as_echo "yes" >&6; }
11630 else
11631 $as_echo "$as_me: failed program was:" >&5
11632 sed 's/^/| /' conftest.$ac_ext >&5
11634 cat >>confdefs.h <<\_ACEOF
11635 #define NO_STRINGS_WITH_STRING_H 1
11636 _ACEOF
11638 { $as_echo "$as_me:$LINENO: result: no" >&5
11639 $as_echo "no" >&6; }
11642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11643 CPPFLAGS=$cppflags_save
11646 if test $ac_cv_c_compiler_gnu = yes; then
11647 { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
11648 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
11649 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
11650 $as_echo_n "(cached) " >&6
11651 else
11652 ac_pattern="Autoconf.*'x'"
11653 cat >conftest.$ac_ext <<_ACEOF
11654 /* confdefs.h. */
11655 _ACEOF
11656 cat confdefs.h >>conftest.$ac_ext
11657 cat >>conftest.$ac_ext <<_ACEOF
11658 /* end confdefs.h. */
11659 #include <sgtty.h>
11660 Autoconf TIOCGETP
11661 _ACEOF
11662 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11663 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11664 ac_cv_prog_gcc_traditional=yes
11665 else
11666 ac_cv_prog_gcc_traditional=no
11668 rm -f conftest*
11671 if test $ac_cv_prog_gcc_traditional = no; then
11672 cat >conftest.$ac_ext <<_ACEOF
11673 /* confdefs.h. */
11674 _ACEOF
11675 cat confdefs.h >>conftest.$ac_ext
11676 cat >>conftest.$ac_ext <<_ACEOF
11677 /* end confdefs.h. */
11678 #include <termio.h>
11679 Autoconf TCGETA
11680 _ACEOF
11681 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11682 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11683 ac_cv_prog_gcc_traditional=yes
11685 rm -f conftest*
11689 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
11690 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
11691 if test $ac_cv_prog_gcc_traditional = yes; then
11692 CC="$CC -traditional"
11696 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11697 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11698 if test "${ac_cv_c_const+set}" = set; then
11699 $as_echo_n "(cached) " >&6
11700 else
11701 cat >conftest.$ac_ext <<_ACEOF
11702 /* confdefs.h. */
11703 _ACEOF
11704 cat confdefs.h >>conftest.$ac_ext
11705 cat >>conftest.$ac_ext <<_ACEOF
11706 /* end confdefs.h. */
11709 main ()
11711 /* FIXME: Include the comments suggested by Paul. */
11712 #ifndef __cplusplus
11713 /* Ultrix mips cc rejects this. */
11714 typedef int charset[2];
11715 const charset cs;
11716 /* SunOS 4.1.1 cc rejects this. */
11717 char const *const *pcpcc;
11718 char **ppc;
11719 /* NEC SVR4.0.2 mips cc rejects this. */
11720 struct point {int x, y;};
11721 static struct point const zero = {0,0};
11722 /* AIX XL C 1.02.0.0 rejects this.
11723 It does not let you subtract one const X* pointer from another in
11724 an arm of an if-expression whose if-part is not a constant
11725 expression */
11726 const char *g = "string";
11727 pcpcc = &g + (g ? g-g : 0);
11728 /* HPUX 7.0 cc rejects these. */
11729 ++pcpcc;
11730 ppc = (char**) pcpcc;
11731 pcpcc = (char const *const *) ppc;
11732 { /* SCO 3.2v4 cc rejects this. */
11733 char *t;
11734 char const *s = 0 ? (char *) 0 : (char const *) 0;
11736 *t++ = 0;
11737 if (s) return 0;
11739 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11740 int x[] = {25, 17};
11741 const int *foo = &x[0];
11742 ++foo;
11744 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11745 typedef const int *iptr;
11746 iptr p = 0;
11747 ++p;
11749 { /* AIX XL C 1.02.0.0 rejects this saying
11750 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11751 struct s { int j; const int *ap[3]; };
11752 struct s *b; b->j = 5;
11754 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11755 const int foo = 10;
11756 if (!foo) return 0;
11758 return !cs[0] && !zero.x;
11759 #endif
11762 return 0;
11764 _ACEOF
11765 rm -f conftest.$ac_objext
11766 if { (ac_try="$ac_compile"
11767 case "(($ac_try" in
11768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11769 *) ac_try_echo=$ac_try;;
11770 esac
11771 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11772 $as_echo "$ac_try_echo") >&5
11773 (eval "$ac_compile") 2>conftest.er1
11774 ac_status=$?
11775 grep -v '^ *+' conftest.er1 >conftest.err
11776 rm -f conftest.er1
11777 cat conftest.err >&5
11778 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11779 (exit $ac_status); } && {
11780 test -z "$ac_c_werror_flag" ||
11781 test ! -s conftest.err
11782 } && test -s conftest.$ac_objext; then
11783 ac_cv_c_const=yes
11784 else
11785 $as_echo "$as_me: failed program was:" >&5
11786 sed 's/^/| /' conftest.$ac_ext >&5
11788 ac_cv_c_const=no
11791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11793 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11794 $as_echo "$ac_cv_c_const" >&6; }
11795 if test $ac_cv_c_const = no; then
11797 cat >>confdefs.h <<\_ACEOF
11798 #define const /**/
11799 _ACEOF
11803 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
11804 $as_echo_n "checking for working volatile... " >&6; }
11805 if test "${ac_cv_c_volatile+set}" = set; then
11806 $as_echo_n "(cached) " >&6
11807 else
11808 cat >conftest.$ac_ext <<_ACEOF
11809 /* confdefs.h. */
11810 _ACEOF
11811 cat confdefs.h >>conftest.$ac_ext
11812 cat >>conftest.$ac_ext <<_ACEOF
11813 /* end confdefs.h. */
11816 main ()
11819 volatile int x;
11820 int * volatile y = (int *) 0;
11821 return !x && !y;
11823 return 0;
11825 _ACEOF
11826 rm -f conftest.$ac_objext
11827 if { (ac_try="$ac_compile"
11828 case "(($ac_try" in
11829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11830 *) ac_try_echo=$ac_try;;
11831 esac
11832 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11833 $as_echo "$ac_try_echo") >&5
11834 (eval "$ac_compile") 2>conftest.er1
11835 ac_status=$?
11836 grep -v '^ *+' conftest.er1 >conftest.err
11837 rm -f conftest.er1
11838 cat conftest.err >&5
11839 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11840 (exit $ac_status); } && {
11841 test -z "$ac_c_werror_flag" ||
11842 test ! -s conftest.err
11843 } && test -s conftest.$ac_objext; then
11844 ac_cv_c_volatile=yes
11845 else
11846 $as_echo "$as_me: failed program was:" >&5
11847 sed 's/^/| /' conftest.$ac_ext >&5
11849 ac_cv_c_volatile=no
11852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11854 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
11855 $as_echo "$ac_cv_c_volatile" >&6; }
11856 if test $ac_cv_c_volatile = no; then
11858 cat >>confdefs.h <<\_ACEOF
11859 #define volatile /**/
11860 _ACEOF
11864 { $as_echo "$as_me:$LINENO: checking for mode_t" >&5
11865 $as_echo_n "checking for mode_t... " >&6; }
11866 if test "${ac_cv_type_mode_t+set}" = set; then
11867 $as_echo_n "(cached) " >&6
11868 else
11869 ac_cv_type_mode_t=no
11870 cat >conftest.$ac_ext <<_ACEOF
11871 /* confdefs.h. */
11872 _ACEOF
11873 cat confdefs.h >>conftest.$ac_ext
11874 cat >>conftest.$ac_ext <<_ACEOF
11875 /* end confdefs.h. */
11876 $ac_includes_default
11878 main ()
11880 if (sizeof (mode_t))
11881 return 0;
11883 return 0;
11885 _ACEOF
11886 rm -f conftest.$ac_objext
11887 if { (ac_try="$ac_compile"
11888 case "(($ac_try" in
11889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11890 *) ac_try_echo=$ac_try;;
11891 esac
11892 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11893 $as_echo "$ac_try_echo") >&5
11894 (eval "$ac_compile") 2>conftest.er1
11895 ac_status=$?
11896 grep -v '^ *+' conftest.er1 >conftest.err
11897 rm -f conftest.er1
11898 cat conftest.err >&5
11899 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11900 (exit $ac_status); } && {
11901 test -z "$ac_c_werror_flag" ||
11902 test ! -s conftest.err
11903 } && test -s conftest.$ac_objext; then
11904 cat >conftest.$ac_ext <<_ACEOF
11905 /* confdefs.h. */
11906 _ACEOF
11907 cat confdefs.h >>conftest.$ac_ext
11908 cat >>conftest.$ac_ext <<_ACEOF
11909 /* end confdefs.h. */
11910 $ac_includes_default
11912 main ()
11914 if (sizeof ((mode_t)))
11915 return 0;
11917 return 0;
11919 _ACEOF
11920 rm -f conftest.$ac_objext
11921 if { (ac_try="$ac_compile"
11922 case "(($ac_try" in
11923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11924 *) ac_try_echo=$ac_try;;
11925 esac
11926 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11927 $as_echo "$ac_try_echo") >&5
11928 (eval "$ac_compile") 2>conftest.er1
11929 ac_status=$?
11930 grep -v '^ *+' conftest.er1 >conftest.err
11931 rm -f conftest.er1
11932 cat conftest.err >&5
11933 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11934 (exit $ac_status); } && {
11935 test -z "$ac_c_werror_flag" ||
11936 test ! -s conftest.err
11937 } && test -s conftest.$ac_objext; then
11939 else
11940 $as_echo "$as_me: failed program was:" >&5
11941 sed 's/^/| /' conftest.$ac_ext >&5
11943 ac_cv_type_mode_t=yes
11946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11947 else
11948 $as_echo "$as_me: failed program was:" >&5
11949 sed 's/^/| /' conftest.$ac_ext >&5
11954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11956 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
11957 $as_echo "$ac_cv_type_mode_t" >&6; }
11958 if test "x$ac_cv_type_mode_t" = x""yes; then
11960 else
11962 cat >>confdefs.h <<_ACEOF
11963 #define mode_t int
11964 _ACEOF
11968 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
11969 $as_echo_n "checking for off_t... " >&6; }
11970 if test "${ac_cv_type_off_t+set}" = set; then
11971 $as_echo_n "(cached) " >&6
11972 else
11973 ac_cv_type_off_t=no
11974 cat >conftest.$ac_ext <<_ACEOF
11975 /* confdefs.h. */
11976 _ACEOF
11977 cat confdefs.h >>conftest.$ac_ext
11978 cat >>conftest.$ac_ext <<_ACEOF
11979 /* end confdefs.h. */
11980 $ac_includes_default
11982 main ()
11984 if (sizeof (off_t))
11985 return 0;
11987 return 0;
11989 _ACEOF
11990 rm -f conftest.$ac_objext
11991 if { (ac_try="$ac_compile"
11992 case "(($ac_try" in
11993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11994 *) ac_try_echo=$ac_try;;
11995 esac
11996 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11997 $as_echo "$ac_try_echo") >&5
11998 (eval "$ac_compile") 2>conftest.er1
11999 ac_status=$?
12000 grep -v '^ *+' conftest.er1 >conftest.err
12001 rm -f conftest.er1
12002 cat conftest.err >&5
12003 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12004 (exit $ac_status); } && {
12005 test -z "$ac_c_werror_flag" ||
12006 test ! -s conftest.err
12007 } && test -s conftest.$ac_objext; then
12008 cat >conftest.$ac_ext <<_ACEOF
12009 /* confdefs.h. */
12010 _ACEOF
12011 cat confdefs.h >>conftest.$ac_ext
12012 cat >>conftest.$ac_ext <<_ACEOF
12013 /* end confdefs.h. */
12014 $ac_includes_default
12016 main ()
12018 if (sizeof ((off_t)))
12019 return 0;
12021 return 0;
12023 _ACEOF
12024 rm -f conftest.$ac_objext
12025 if { (ac_try="$ac_compile"
12026 case "(($ac_try" in
12027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12028 *) ac_try_echo=$ac_try;;
12029 esac
12030 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12031 $as_echo "$ac_try_echo") >&5
12032 (eval "$ac_compile") 2>conftest.er1
12033 ac_status=$?
12034 grep -v '^ *+' conftest.er1 >conftest.err
12035 rm -f conftest.er1
12036 cat conftest.err >&5
12037 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12038 (exit $ac_status); } && {
12039 test -z "$ac_c_werror_flag" ||
12040 test ! -s conftest.err
12041 } && test -s conftest.$ac_objext; then
12043 else
12044 $as_echo "$as_me: failed program was:" >&5
12045 sed 's/^/| /' conftest.$ac_ext >&5
12047 ac_cv_type_off_t=yes
12050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12051 else
12052 $as_echo "$as_me: failed program was:" >&5
12053 sed 's/^/| /' conftest.$ac_ext >&5
12058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12060 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
12061 $as_echo "$ac_cv_type_off_t" >&6; }
12062 if test "x$ac_cv_type_off_t" = x""yes; then
12064 else
12066 cat >>confdefs.h <<_ACEOF
12067 #define off_t long int
12068 _ACEOF
12072 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
12073 $as_echo_n "checking for pid_t... " >&6; }
12074 if test "${ac_cv_type_pid_t+set}" = set; then
12075 $as_echo_n "(cached) " >&6
12076 else
12077 ac_cv_type_pid_t=no
12078 cat >conftest.$ac_ext <<_ACEOF
12079 /* confdefs.h. */
12080 _ACEOF
12081 cat confdefs.h >>conftest.$ac_ext
12082 cat >>conftest.$ac_ext <<_ACEOF
12083 /* end confdefs.h. */
12084 $ac_includes_default
12086 main ()
12088 if (sizeof (pid_t))
12089 return 0;
12091 return 0;
12093 _ACEOF
12094 rm -f conftest.$ac_objext
12095 if { (ac_try="$ac_compile"
12096 case "(($ac_try" in
12097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12098 *) ac_try_echo=$ac_try;;
12099 esac
12100 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12101 $as_echo "$ac_try_echo") >&5
12102 (eval "$ac_compile") 2>conftest.er1
12103 ac_status=$?
12104 grep -v '^ *+' conftest.er1 >conftest.err
12105 rm -f conftest.er1
12106 cat conftest.err >&5
12107 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12108 (exit $ac_status); } && {
12109 test -z "$ac_c_werror_flag" ||
12110 test ! -s conftest.err
12111 } && test -s conftest.$ac_objext; then
12112 cat >conftest.$ac_ext <<_ACEOF
12113 /* confdefs.h. */
12114 _ACEOF
12115 cat confdefs.h >>conftest.$ac_ext
12116 cat >>conftest.$ac_ext <<_ACEOF
12117 /* end confdefs.h. */
12118 $ac_includes_default
12120 main ()
12122 if (sizeof ((pid_t)))
12123 return 0;
12125 return 0;
12127 _ACEOF
12128 rm -f conftest.$ac_objext
12129 if { (ac_try="$ac_compile"
12130 case "(($ac_try" in
12131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12132 *) ac_try_echo=$ac_try;;
12133 esac
12134 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12135 $as_echo "$ac_try_echo") >&5
12136 (eval "$ac_compile") 2>conftest.er1
12137 ac_status=$?
12138 grep -v '^ *+' conftest.er1 >conftest.err
12139 rm -f conftest.er1
12140 cat conftest.err >&5
12141 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12142 (exit $ac_status); } && {
12143 test -z "$ac_c_werror_flag" ||
12144 test ! -s conftest.err
12145 } && test -s conftest.$ac_objext; then
12147 else
12148 $as_echo "$as_me: failed program was:" >&5
12149 sed 's/^/| /' conftest.$ac_ext >&5
12151 ac_cv_type_pid_t=yes
12154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12155 else
12156 $as_echo "$as_me: failed program was:" >&5
12157 sed 's/^/| /' conftest.$ac_ext >&5
12162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12164 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
12165 $as_echo "$ac_cv_type_pid_t" >&6; }
12166 if test "x$ac_cv_type_pid_t" = x""yes; then
12168 else
12170 cat >>confdefs.h <<_ACEOF
12171 #define pid_t int
12172 _ACEOF
12176 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
12177 $as_echo_n "checking for size_t... " >&6; }
12178 if test "${ac_cv_type_size_t+set}" = set; then
12179 $as_echo_n "(cached) " >&6
12180 else
12181 ac_cv_type_size_t=no
12182 cat >conftest.$ac_ext <<_ACEOF
12183 /* confdefs.h. */
12184 _ACEOF
12185 cat confdefs.h >>conftest.$ac_ext
12186 cat >>conftest.$ac_ext <<_ACEOF
12187 /* end confdefs.h. */
12188 $ac_includes_default
12190 main ()
12192 if (sizeof (size_t))
12193 return 0;
12195 return 0;
12197 _ACEOF
12198 rm -f conftest.$ac_objext
12199 if { (ac_try="$ac_compile"
12200 case "(($ac_try" in
12201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12202 *) ac_try_echo=$ac_try;;
12203 esac
12204 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12205 $as_echo "$ac_try_echo") >&5
12206 (eval "$ac_compile") 2>conftest.er1
12207 ac_status=$?
12208 grep -v '^ *+' conftest.er1 >conftest.err
12209 rm -f conftest.er1
12210 cat conftest.err >&5
12211 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12212 (exit $ac_status); } && {
12213 test -z "$ac_c_werror_flag" ||
12214 test ! -s conftest.err
12215 } && test -s conftest.$ac_objext; then
12216 cat >conftest.$ac_ext <<_ACEOF
12217 /* confdefs.h. */
12218 _ACEOF
12219 cat confdefs.h >>conftest.$ac_ext
12220 cat >>conftest.$ac_ext <<_ACEOF
12221 /* end confdefs.h. */
12222 $ac_includes_default
12224 main ()
12226 if (sizeof ((size_t)))
12227 return 0;
12229 return 0;
12231 _ACEOF
12232 rm -f conftest.$ac_objext
12233 if { (ac_try="$ac_compile"
12234 case "(($ac_try" in
12235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12236 *) ac_try_echo=$ac_try;;
12237 esac
12238 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12239 $as_echo "$ac_try_echo") >&5
12240 (eval "$ac_compile") 2>conftest.er1
12241 ac_status=$?
12242 grep -v '^ *+' conftest.er1 >conftest.err
12243 rm -f conftest.er1
12244 cat conftest.err >&5
12245 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12246 (exit $ac_status); } && {
12247 test -z "$ac_c_werror_flag" ||
12248 test ! -s conftest.err
12249 } && test -s conftest.$ac_objext; then
12251 else
12252 $as_echo "$as_me: failed program was:" >&5
12253 sed 's/^/| /' conftest.$ac_ext >&5
12255 ac_cv_type_size_t=yes
12258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12259 else
12260 $as_echo "$as_me: failed program was:" >&5
12261 sed 's/^/| /' conftest.$ac_ext >&5
12266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12268 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
12269 $as_echo "$ac_cv_type_size_t" >&6; }
12270 if test "x$ac_cv_type_size_t" = x""yes; then
12272 else
12274 cat >>confdefs.h <<_ACEOF
12275 #define size_t unsigned int
12276 _ACEOF
12280 { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
12281 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
12282 if test "${ac_cv_type_uid_t+set}" = set; then
12283 $as_echo_n "(cached) " >&6
12284 else
12285 cat >conftest.$ac_ext <<_ACEOF
12286 /* confdefs.h. */
12287 _ACEOF
12288 cat confdefs.h >>conftest.$ac_ext
12289 cat >>conftest.$ac_ext <<_ACEOF
12290 /* end confdefs.h. */
12291 #include <sys/types.h>
12293 _ACEOF
12294 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12295 $EGREP "uid_t" >/dev/null 2>&1; then
12296 ac_cv_type_uid_t=yes
12297 else
12298 ac_cv_type_uid_t=no
12300 rm -f conftest*
12303 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
12304 $as_echo "$ac_cv_type_uid_t" >&6; }
12305 if test $ac_cv_type_uid_t = no; then
12307 cat >>confdefs.h <<\_ACEOF
12308 #define uid_t int
12309 _ACEOF
12312 cat >>confdefs.h <<\_ACEOF
12313 #define gid_t int
12314 _ACEOF
12318 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
12319 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
12320 if test "${ac_cv_header_time+set}" = set; then
12321 $as_echo_n "(cached) " >&6
12322 else
12323 cat >conftest.$ac_ext <<_ACEOF
12324 /* confdefs.h. */
12325 _ACEOF
12326 cat confdefs.h >>conftest.$ac_ext
12327 cat >>conftest.$ac_ext <<_ACEOF
12328 /* end confdefs.h. */
12329 #include <sys/types.h>
12330 #include <sys/time.h>
12331 #include <time.h>
12334 main ()
12336 if ((struct tm *) 0)
12337 return 0;
12339 return 0;
12341 _ACEOF
12342 rm -f conftest.$ac_objext
12343 if { (ac_try="$ac_compile"
12344 case "(($ac_try" in
12345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12346 *) ac_try_echo=$ac_try;;
12347 esac
12348 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12349 $as_echo "$ac_try_echo") >&5
12350 (eval "$ac_compile") 2>conftest.er1
12351 ac_status=$?
12352 grep -v '^ *+' conftest.er1 >conftest.err
12353 rm -f conftest.er1
12354 cat conftest.err >&5
12355 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12356 (exit $ac_status); } && {
12357 test -z "$ac_c_werror_flag" ||
12358 test ! -s conftest.err
12359 } && test -s conftest.$ac_objext; then
12360 ac_cv_header_time=yes
12361 else
12362 $as_echo "$as_me: failed program was:" >&5
12363 sed 's/^/| /' conftest.$ac_ext >&5
12365 ac_cv_header_time=no
12368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12370 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
12371 $as_echo "$ac_cv_header_time" >&6; }
12372 if test $ac_cv_header_time = yes; then
12374 cat >>confdefs.h <<\_ACEOF
12375 #define TIME_WITH_SYS_TIME 1
12376 _ACEOF
12380 { $as_echo "$as_me:$LINENO: checking for ino_t" >&5
12381 $as_echo_n "checking for ino_t... " >&6; }
12382 if test "${ac_cv_type_ino_t+set}" = set; then
12383 $as_echo_n "(cached) " >&6
12384 else
12385 ac_cv_type_ino_t=no
12386 cat >conftest.$ac_ext <<_ACEOF
12387 /* confdefs.h. */
12388 _ACEOF
12389 cat confdefs.h >>conftest.$ac_ext
12390 cat >>conftest.$ac_ext <<_ACEOF
12391 /* end confdefs.h. */
12392 $ac_includes_default
12394 main ()
12396 if (sizeof (ino_t))
12397 return 0;
12399 return 0;
12401 _ACEOF
12402 rm -f conftest.$ac_objext
12403 if { (ac_try="$ac_compile"
12404 case "(($ac_try" in
12405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12406 *) ac_try_echo=$ac_try;;
12407 esac
12408 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12409 $as_echo "$ac_try_echo") >&5
12410 (eval "$ac_compile") 2>conftest.er1
12411 ac_status=$?
12412 grep -v '^ *+' conftest.er1 >conftest.err
12413 rm -f conftest.er1
12414 cat conftest.err >&5
12415 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12416 (exit $ac_status); } && {
12417 test -z "$ac_c_werror_flag" ||
12418 test ! -s conftest.err
12419 } && test -s conftest.$ac_objext; then
12420 cat >conftest.$ac_ext <<_ACEOF
12421 /* confdefs.h. */
12422 _ACEOF
12423 cat confdefs.h >>conftest.$ac_ext
12424 cat >>conftest.$ac_ext <<_ACEOF
12425 /* end confdefs.h. */
12426 $ac_includes_default
12428 main ()
12430 if (sizeof ((ino_t)))
12431 return 0;
12433 return 0;
12435 _ACEOF
12436 rm -f conftest.$ac_objext
12437 if { (ac_try="$ac_compile"
12438 case "(($ac_try" in
12439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12440 *) ac_try_echo=$ac_try;;
12441 esac
12442 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12443 $as_echo "$ac_try_echo") >&5
12444 (eval "$ac_compile") 2>conftest.er1
12445 ac_status=$?
12446 grep -v '^ *+' conftest.er1 >conftest.err
12447 rm -f conftest.er1
12448 cat conftest.err >&5
12449 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12450 (exit $ac_status); } && {
12451 test -z "$ac_c_werror_flag" ||
12452 test ! -s conftest.err
12453 } && test -s conftest.$ac_objext; then
12455 else
12456 $as_echo "$as_me: failed program was:" >&5
12457 sed 's/^/| /' conftest.$ac_ext >&5
12459 ac_cv_type_ino_t=yes
12462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12463 else
12464 $as_echo "$as_me: failed program was:" >&5
12465 sed 's/^/| /' conftest.$ac_ext >&5
12470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12472 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
12473 $as_echo "$ac_cv_type_ino_t" >&6; }
12474 if test "x$ac_cv_type_ino_t" = x""yes; then
12476 else
12478 cat >>confdefs.h <<_ACEOF
12479 #define ino_t long
12480 _ACEOF
12484 { $as_echo "$as_me:$LINENO: checking for dev_t" >&5
12485 $as_echo_n "checking for dev_t... " >&6; }
12486 if test "${ac_cv_type_dev_t+set}" = set; then
12487 $as_echo_n "(cached) " >&6
12488 else
12489 ac_cv_type_dev_t=no
12490 cat >conftest.$ac_ext <<_ACEOF
12491 /* confdefs.h. */
12492 _ACEOF
12493 cat confdefs.h >>conftest.$ac_ext
12494 cat >>conftest.$ac_ext <<_ACEOF
12495 /* end confdefs.h. */
12496 $ac_includes_default
12498 main ()
12500 if (sizeof (dev_t))
12501 return 0;
12503 return 0;
12505 _ACEOF
12506 rm -f conftest.$ac_objext
12507 if { (ac_try="$ac_compile"
12508 case "(($ac_try" in
12509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12510 *) ac_try_echo=$ac_try;;
12511 esac
12512 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12513 $as_echo "$ac_try_echo") >&5
12514 (eval "$ac_compile") 2>conftest.er1
12515 ac_status=$?
12516 grep -v '^ *+' conftest.er1 >conftest.err
12517 rm -f conftest.er1
12518 cat conftest.err >&5
12519 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12520 (exit $ac_status); } && {
12521 test -z "$ac_c_werror_flag" ||
12522 test ! -s conftest.err
12523 } && test -s conftest.$ac_objext; then
12524 cat >conftest.$ac_ext <<_ACEOF
12525 /* confdefs.h. */
12526 _ACEOF
12527 cat confdefs.h >>conftest.$ac_ext
12528 cat >>conftest.$ac_ext <<_ACEOF
12529 /* end confdefs.h. */
12530 $ac_includes_default
12532 main ()
12534 if (sizeof ((dev_t)))
12535 return 0;
12537 return 0;
12539 _ACEOF
12540 rm -f conftest.$ac_objext
12541 if { (ac_try="$ac_compile"
12542 case "(($ac_try" in
12543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12544 *) ac_try_echo=$ac_try;;
12545 esac
12546 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12547 $as_echo "$ac_try_echo") >&5
12548 (eval "$ac_compile") 2>conftest.er1
12549 ac_status=$?
12550 grep -v '^ *+' conftest.er1 >conftest.err
12551 rm -f conftest.er1
12552 cat conftest.err >&5
12553 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12554 (exit $ac_status); } && {
12555 test -z "$ac_c_werror_flag" ||
12556 test ! -s conftest.err
12557 } && test -s conftest.$ac_objext; then
12559 else
12560 $as_echo "$as_me: failed program was:" >&5
12561 sed 's/^/| /' conftest.$ac_ext >&5
12563 ac_cv_type_dev_t=yes
12566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12567 else
12568 $as_echo "$as_me: failed program was:" >&5
12569 sed 's/^/| /' conftest.$ac_ext >&5
12574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12576 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
12577 $as_echo "$ac_cv_type_dev_t" >&6; }
12578 if test "x$ac_cv_type_dev_t" = x""yes; then
12580 else
12582 cat >>confdefs.h <<_ACEOF
12583 #define dev_t unsigned
12584 _ACEOF
12589 { $as_echo "$as_me:$LINENO: checking for rlim_t" >&5
12590 $as_echo_n "checking for rlim_t... " >&6; }
12591 if eval "test \"`echo '$''{'ac_cv_type_rlim_t'+set}'`\" = set"; then
12592 { $as_echo "$as_me:$LINENO: result: (cached) $ac_cv_type_rlim_t" >&5
12593 $as_echo "(cached) $ac_cv_type_rlim_t" >&6; }
12594 else
12595 cat >conftest.$ac_ext <<_ACEOF
12596 /* confdefs.h. */
12597 _ACEOF
12598 cat confdefs.h >>conftest.$ac_ext
12599 cat >>conftest.$ac_ext <<_ACEOF
12600 /* end confdefs.h. */
12602 #include <sys/types.h>
12603 #if STDC_HEADERS
12604 # include <stdlib.h>
12605 # include <stddef.h>
12606 #endif
12607 #ifdef HAVE_SYS_RESOURCE_H
12608 # include <sys/resource.h>
12609 #endif
12611 _ACEOF
12612 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12613 $EGREP "(^|[^a-zA-Z_0-9])rlim_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
12614 ac_cv_type_rlim_t=yes
12615 else
12616 ac_cv_type_rlim_t=no
12618 rm -f conftest*
12620 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_rlim_t" >&5
12621 $as_echo "$ac_cv_type_rlim_t" >&6; }
12623 if test $ac_cv_type_rlim_t = no; then
12624 cat >> confdefs.h <<\EOF
12625 #define rlim_t unsigned long
12629 { $as_echo "$as_me:$LINENO: checking for stack_t" >&5
12630 $as_echo_n "checking for stack_t... " >&6; }
12631 if eval "test \"`echo '$''{'ac_cv_type_stack_t'+set}'`\" = set"; then
12632 { $as_echo "$as_me:$LINENO: result: (cached) $ac_cv_type_stack_t" >&5
12633 $as_echo "(cached) $ac_cv_type_stack_t" >&6; }
12634 else
12635 cat >conftest.$ac_ext <<_ACEOF
12636 /* confdefs.h. */
12637 _ACEOF
12638 cat confdefs.h >>conftest.$ac_ext
12639 cat >>conftest.$ac_ext <<_ACEOF
12640 /* end confdefs.h. */
12642 #include <sys/types.h>
12643 #if STDC_HEADERS
12644 # include <stdlib.h>
12645 # include <stddef.h>
12646 #endif
12647 #include <signal.h>
12649 _ACEOF
12650 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12651 $EGREP "stack_t" >/dev/null 2>&1; then
12652 ac_cv_type_stack_t=yes
12653 else
12654 ac_cv_type_stack_t=no
12656 rm -f conftest*
12658 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_stack_t" >&5
12659 $as_echo "$ac_cv_type_stack_t" >&6; }
12661 if test $ac_cv_type_stack_t = no; then
12662 cat >> confdefs.h <<\EOF
12663 #define stack_t struct sigaltstack
12667 { $as_echo "$as_me:$LINENO: checking whether stack_t has an ss_base field" >&5
12668 $as_echo_n "checking whether stack_t has an ss_base field... " >&6; }
12669 cat >conftest.$ac_ext <<_ACEOF
12670 /* confdefs.h. */
12671 _ACEOF
12672 cat confdefs.h >>conftest.$ac_ext
12673 cat >>conftest.$ac_ext <<_ACEOF
12674 /* end confdefs.h. */
12676 #include <sys/types.h>
12677 #if STDC_HEADERS
12678 # include <stdlib.h>
12679 # include <stddef.h>
12680 #endif
12681 #include <signal.h>
12682 #include "confdefs.h"
12685 main ()
12687 stack_t sigstk; sigstk.ss_base = 0;
12689 return 0;
12691 _ACEOF
12692 rm -f conftest.$ac_objext
12693 if { (ac_try="$ac_compile"
12694 case "(($ac_try" in
12695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12696 *) ac_try_echo=$ac_try;;
12697 esac
12698 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12699 $as_echo "$ac_try_echo") >&5
12700 (eval "$ac_compile") 2>conftest.er1
12701 ac_status=$?
12702 grep -v '^ *+' conftest.er1 >conftest.err
12703 rm -f conftest.er1
12704 cat conftest.err >&5
12705 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12706 (exit $ac_status); } && {
12707 test -z "$ac_c_werror_flag" ||
12708 test ! -s conftest.err
12709 } && test -s conftest.$ac_objext; then
12710 { $as_echo "$as_me:$LINENO: result: yes" >&5
12711 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
12712 #define HAVE_SS_BASE 1
12713 _ACEOF
12715 else
12716 $as_echo "$as_me: failed program was:" >&5
12717 sed 's/^/| /' conftest.$ac_ext >&5
12719 { $as_echo "$as_me:$LINENO: result: no" >&5
12720 $as_echo "no" >&6; }
12723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12725 olibs="$LIBS"
12726 { $as_echo "$as_me:$LINENO: checking --with-tlib argument" >&5
12727 $as_echo_n "checking --with-tlib argument... " >&6; }
12729 # Check whether --with-tlib was given.
12730 if test "${with_tlib+set}" = set; then
12731 withval=$with_tlib;
12734 if test -n "$with_tlib"; then
12735 { $as_echo "$as_me:$LINENO: result: $with_tlib" >&5
12736 $as_echo "$with_tlib" >&6; }
12737 LIBS="$LIBS -l$with_tlib"
12738 { $as_echo "$as_me:$LINENO: checking for linking with $with_tlib library" >&5
12739 $as_echo_n "checking for linking with $with_tlib library... " >&6; }
12740 cat >conftest.$ac_ext <<_ACEOF
12741 /* confdefs.h. */
12742 _ACEOF
12743 cat confdefs.h >>conftest.$ac_ext
12744 cat >>conftest.$ac_ext <<_ACEOF
12745 /* end confdefs.h. */
12748 main ()
12752 return 0;
12754 _ACEOF
12755 rm -f conftest.$ac_objext conftest$ac_exeext
12756 if { (ac_try="$ac_link"
12757 case "(($ac_try" in
12758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12759 *) ac_try_echo=$ac_try;;
12760 esac
12761 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12762 $as_echo "$ac_try_echo") >&5
12763 (eval "$ac_link") 2>conftest.er1
12764 ac_status=$?
12765 grep -v '^ *+' conftest.er1 >conftest.err
12766 rm -f conftest.er1
12767 cat conftest.err >&5
12768 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12769 (exit $ac_status); } && {
12770 test -z "$ac_c_werror_flag" ||
12771 test ! -s conftest.err
12772 } && test -s conftest$ac_exeext && {
12773 test "$cross_compiling" = yes ||
12774 $as_test_x conftest$ac_exeext
12775 }; then
12776 { $as_echo "$as_me:$LINENO: result: OK" >&5
12777 $as_echo "OK" >&6; }
12778 else
12779 $as_echo "$as_me: failed program was:" >&5
12780 sed 's/^/| /' conftest.$ac_ext >&5
12782 { { $as_echo "$as_me:$LINENO: error: FAILED" >&5
12783 $as_echo "$as_me: error: FAILED" >&2;}
12784 { (exit 1); exit 1; }; }
12787 rm -rf conftest.dSYM
12788 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12789 conftest$ac_exeext conftest.$ac_ext
12790 olibs="$LIBS"
12791 else
12792 { $as_echo "$as_me:$LINENO: result: empty: automatic terminal library selection" >&5
12793 $as_echo "empty: automatic terminal library selection" >&6; }
12794 case "`uname -s 2>/dev/null`" in
12795 OSF1|SCO_SV) tlibs="ncurses curses termlib termcap";;
12796 *) tlibs="ncurses termlib termcap curses";;
12797 esac
12798 for libname in $tlibs; do
12800 as_ac_Lib=`$as_echo "ac_cv_lib_${libname}''_tgetent" | $as_tr_sh`
12801 { $as_echo "$as_me:$LINENO: checking for tgetent in -l${libname}" >&5
12802 $as_echo_n "checking for tgetent in -l${libname}... " >&6; }
12803 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
12804 $as_echo_n "(cached) " >&6
12805 else
12806 ac_check_lib_save_LIBS=$LIBS
12807 LIBS="-l${libname} $LIBS"
12808 cat >conftest.$ac_ext <<_ACEOF
12809 /* confdefs.h. */
12810 _ACEOF
12811 cat confdefs.h >>conftest.$ac_ext
12812 cat >>conftest.$ac_ext <<_ACEOF
12813 /* end confdefs.h. */
12815 /* Override any GCC internal prototype to avoid an error.
12816 Use char because int might match the return type of a GCC
12817 builtin and then its argument prototype would still apply. */
12818 #ifdef __cplusplus
12819 extern "C"
12820 #endif
12821 char tgetent ();
12823 main ()
12825 return tgetent ();
12827 return 0;
12829 _ACEOF
12830 rm -f conftest.$ac_objext conftest$ac_exeext
12831 if { (ac_try="$ac_link"
12832 case "(($ac_try" in
12833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12834 *) ac_try_echo=$ac_try;;
12835 esac
12836 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12837 $as_echo "$ac_try_echo") >&5
12838 (eval "$ac_link") 2>conftest.er1
12839 ac_status=$?
12840 grep -v '^ *+' conftest.er1 >conftest.err
12841 rm -f conftest.er1
12842 cat conftest.err >&5
12843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12844 (exit $ac_status); } && {
12845 test -z "$ac_c_werror_flag" ||
12846 test ! -s conftest.err
12847 } && test -s conftest$ac_exeext && {
12848 test "$cross_compiling" = yes ||
12849 $as_test_x conftest$ac_exeext
12850 }; then
12851 eval "$as_ac_Lib=yes"
12852 else
12853 $as_echo "$as_me: failed program was:" >&5
12854 sed 's/^/| /' conftest.$ac_ext >&5
12856 eval "$as_ac_Lib=no"
12859 rm -rf conftest.dSYM
12860 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12861 conftest$ac_exeext conftest.$ac_ext
12862 LIBS=$ac_check_lib_save_LIBS
12864 ac_res=`eval 'as_val=${'$as_ac_Lib'}
12865 $as_echo "$as_val"'`
12866 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12867 $as_echo "$ac_res" >&6; }
12868 as_val=`eval 'as_val=${'$as_ac_Lib'}
12869 $as_echo "$as_val"'`
12870 if test "x$as_val" = x""yes; then
12871 cat >>confdefs.h <<_ACEOF
12872 #define `$as_echo "HAVE_LIB${libname}" | $as_tr_cpp` 1
12873 _ACEOF
12875 LIBS="-l${libname} $LIBS"
12879 if test "x$olibs" != "x$LIBS"; then
12880 if test "$cross_compiling" = yes; then
12881 res="FAIL"
12882 else
12883 cat >conftest.$ac_ext <<_ACEOF
12884 /* confdefs.h. */
12885 _ACEOF
12886 cat confdefs.h >>conftest.$ac_ext
12887 cat >>conftest.$ac_ext <<_ACEOF
12888 /* end confdefs.h. */
12890 #ifdef HAVE_TERMCAP_H
12891 # include <termcap.h>
12892 #endif
12893 #if STDC_HEADERS
12894 # include <stdlib.h>
12895 # include <stddef.h>
12896 #endif
12897 main() {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(0); }
12898 _ACEOF
12899 rm -f conftest$ac_exeext
12900 if { (ac_try="$ac_link"
12901 case "(($ac_try" in
12902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12903 *) ac_try_echo=$ac_try;;
12904 esac
12905 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12906 $as_echo "$ac_try_echo") >&5
12907 (eval "$ac_link") 2>&5
12908 ac_status=$?
12909 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12910 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12911 { (case "(($ac_try" in
12912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12913 *) ac_try_echo=$ac_try;;
12914 esac
12915 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12916 $as_echo "$ac_try_echo") >&5
12917 (eval "$ac_try") 2>&5
12918 ac_status=$?
12919 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12920 (exit $ac_status); }; }; then
12921 res="OK"
12922 else
12923 $as_echo "$as_me: program exited with status $ac_status" >&5
12924 $as_echo "$as_me: failed program was:" >&5
12925 sed 's/^/| /' conftest.$ac_ext >&5
12927 ( exit $ac_status )
12928 res="FAIL"
12930 rm -rf conftest.dSYM
12931 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12935 if test "$res" = "OK"; then
12936 break
12938 { $as_echo "$as_me:$LINENO: result: $libname library is not usable" >&5
12939 $as_echo "$libname library is not usable" >&6; }
12940 LIBS="$olibs"
12942 done
12943 if test "x$olibs" = "x$LIBS"; then
12944 { $as_echo "$as_me:$LINENO: result: no terminal library found" >&5
12945 $as_echo "no terminal library found" >&6; }
12949 if test "x$olibs" = "x$LIBS"; then
12950 { $as_echo "$as_me:$LINENO: checking for tgetent()" >&5
12951 $as_echo_n "checking for tgetent()... " >&6; }
12952 cat >conftest.$ac_ext <<_ACEOF
12953 /* confdefs.h. */
12954 _ACEOF
12955 cat confdefs.h >>conftest.$ac_ext
12956 cat >>conftest.$ac_ext <<_ACEOF
12957 /* end confdefs.h. */
12960 main ()
12962 char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist");
12964 return 0;
12966 _ACEOF
12967 rm -f conftest.$ac_objext conftest$ac_exeext
12968 if { (ac_try="$ac_link"
12969 case "(($ac_try" in
12970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12971 *) ac_try_echo=$ac_try;;
12972 esac
12973 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12974 $as_echo "$ac_try_echo") >&5
12975 (eval "$ac_link") 2>conftest.er1
12976 ac_status=$?
12977 grep -v '^ *+' conftest.er1 >conftest.err
12978 rm -f conftest.er1
12979 cat conftest.err >&5
12980 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12981 (exit $ac_status); } && {
12982 test -z "$ac_c_werror_flag" ||
12983 test ! -s conftest.err
12984 } && test -s conftest$ac_exeext && {
12985 test "$cross_compiling" = yes ||
12986 $as_test_x conftest$ac_exeext
12987 }; then
12988 { $as_echo "$as_me:$LINENO: result: yes" >&5
12989 $as_echo "yes" >&6; }
12990 else
12991 $as_echo "$as_me: failed program was:" >&5
12992 sed 's/^/| /' conftest.$ac_ext >&5
12994 { { $as_echo "$as_me:$LINENO: error: NOT FOUND!
12995 You need to install a terminal library; for example ncurses.
12996 Or specify the name of the library with --with-tlib." >&5
12997 $as_echo "$as_me: error: NOT FOUND!
12998 You need to install a terminal library; for example ncurses.
12999 Or specify the name of the library with --with-tlib." >&2;}
13000 { (exit 1); exit 1; }; }
13003 rm -rf conftest.dSYM
13004 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13005 conftest$ac_exeext conftest.$ac_ext
13008 { $as_echo "$as_me:$LINENO: checking whether we talk terminfo" >&5
13009 $as_echo_n "checking whether we talk terminfo... " >&6; }
13010 if test "${vim_cv_terminfo+set}" = set; then
13011 $as_echo_n "(cached) " >&6
13012 else
13014 if test "$cross_compiling" = yes; then
13016 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_terminfo'" >&5
13017 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_terminfo'" >&2;}
13018 { (exit 1); exit 1; }; }
13020 else
13021 cat >conftest.$ac_ext <<_ACEOF
13023 #include "confdefs.h"
13024 #ifdef HAVE_TERMCAP_H
13025 # include <termcap.h>
13026 #endif
13027 #ifdef HAVE_STRING_H
13028 # include <string.h>
13029 #endif
13030 #if STDC_HEADERS
13031 # include <stdlib.h>
13032 # include <stddef.h>
13033 #endif
13034 main()
13035 {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(!strcmp(s==0 ? "" : s, "1")); }
13037 _ACEOF
13038 rm -f conftest$ac_exeext
13039 if { (ac_try="$ac_link"
13040 case "(($ac_try" in
13041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13042 *) ac_try_echo=$ac_try;;
13043 esac
13044 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13045 $as_echo "$ac_try_echo") >&5
13046 (eval "$ac_link") 2>&5
13047 ac_status=$?
13048 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13049 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13050 { (case "(($ac_try" in
13051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13052 *) ac_try_echo=$ac_try;;
13053 esac
13054 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13055 $as_echo "$ac_try_echo") >&5
13056 (eval "$ac_try") 2>&5
13057 ac_status=$?
13058 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13059 (exit $ac_status); }; }; then
13061 vim_cv_terminfo=no
13063 else
13064 $as_echo "$as_me: program exited with status $ac_status" >&5
13065 $as_echo "$as_me: failed program was:" >&5
13066 sed 's/^/| /' conftest.$ac_ext >&5
13068 ( exit $ac_status )
13070 vim_cv_terminfo=yes
13073 rm -rf conftest.dSYM
13074 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13080 { $as_echo "$as_me:$LINENO: result: $vim_cv_terminfo" >&5
13081 $as_echo "$vim_cv_terminfo" >&6; }
13083 if test "x$vim_cv_terminfo" = "xyes" ; then
13084 cat >>confdefs.h <<\_ACEOF
13085 #define TERMINFO 1
13086 _ACEOF
13090 if test "x$olibs" != "x$LIBS"; then
13091 { $as_echo "$as_me:$LINENO: checking what tgetent() returns for an unknown terminal" >&5
13092 $as_echo_n "checking what tgetent() returns for an unknown terminal... " >&6; }
13093 if test "${vim_cv_tgent+set}" = set; then
13094 $as_echo_n "(cached) " >&6
13095 else
13097 if test "$cross_compiling" = yes; then
13099 { { $as_echo "$as_me:$LINENO: error: failed to compile test program." >&5
13100 $as_echo "$as_me: error: failed to compile test program." >&2;}
13101 { (exit 1); exit 1; }; }
13103 else
13104 cat >conftest.$ac_ext <<_ACEOF
13106 #include "confdefs.h"
13107 #ifdef HAVE_TERMCAP_H
13108 # include <termcap.h>
13109 #endif
13110 #if STDC_HEADERS
13111 # include <stdlib.h>
13112 # include <stddef.h>
13113 #endif
13114 main()
13115 {char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); exit(res != 0); }
13117 _ACEOF
13118 rm -f conftest$ac_exeext
13119 if { (ac_try="$ac_link"
13120 case "(($ac_try" in
13121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13122 *) ac_try_echo=$ac_try;;
13123 esac
13124 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13125 $as_echo "$ac_try_echo") >&5
13126 (eval "$ac_link") 2>&5
13127 ac_status=$?
13128 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13129 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
13137 ac_status=$?
13138 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13139 (exit $ac_status); }; }; then
13141 vim_cv_tgent=zero
13143 else
13144 $as_echo "$as_me: program exited with status $ac_status" >&5
13145 $as_echo "$as_me: failed program was:" >&5
13146 sed 's/^/| /' conftest.$ac_ext >&5
13148 ( exit $ac_status )
13150 vim_cv_tgent=non-zero
13153 rm -rf conftest.dSYM
13154 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13160 { $as_echo "$as_me:$LINENO: result: $vim_cv_tgent" >&5
13161 $as_echo "$vim_cv_tgent" >&6; }
13163 if test "x$vim_cv_tgent" = "xzero" ; then
13164 cat >>confdefs.h <<\_ACEOF
13165 #define TGETENT_ZERO_ERR 0
13166 _ACEOF
13171 { $as_echo "$as_me:$LINENO: checking whether termcap.h contains ospeed" >&5
13172 $as_echo_n "checking whether termcap.h contains ospeed... " >&6; }
13173 cat >conftest.$ac_ext <<_ACEOF
13174 /* confdefs.h. */
13175 _ACEOF
13176 cat confdefs.h >>conftest.$ac_ext
13177 cat >>conftest.$ac_ext <<_ACEOF
13178 /* end confdefs.h. */
13180 #ifdef HAVE_TERMCAP_H
13181 # include <termcap.h>
13182 #endif
13185 main ()
13187 ospeed = 20000
13189 return 0;
13191 _ACEOF
13192 rm -f conftest.$ac_objext conftest$ac_exeext
13193 if { (ac_try="$ac_link"
13194 case "(($ac_try" in
13195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13196 *) ac_try_echo=$ac_try;;
13197 esac
13198 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13199 $as_echo "$ac_try_echo") >&5
13200 (eval "$ac_link") 2>conftest.er1
13201 ac_status=$?
13202 grep -v '^ *+' conftest.er1 >conftest.err
13203 rm -f conftest.er1
13204 cat conftest.err >&5
13205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13206 (exit $ac_status); } && {
13207 test -z "$ac_c_werror_flag" ||
13208 test ! -s conftest.err
13209 } && test -s conftest$ac_exeext && {
13210 test "$cross_compiling" = yes ||
13211 $as_test_x conftest$ac_exeext
13212 }; then
13213 { $as_echo "$as_me:$LINENO: result: yes" >&5
13214 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13215 #define HAVE_OSPEED 1
13216 _ACEOF
13218 else
13219 $as_echo "$as_me: failed program was:" >&5
13220 sed 's/^/| /' conftest.$ac_ext >&5
13222 { $as_echo "$as_me:$LINENO: result: no" >&5
13223 $as_echo "no" >&6; }
13224 { $as_echo "$as_me:$LINENO: checking whether ospeed can be extern" >&5
13225 $as_echo_n "checking whether ospeed can be extern... " >&6; }
13226 cat >conftest.$ac_ext <<_ACEOF
13227 /* confdefs.h. */
13228 _ACEOF
13229 cat confdefs.h >>conftest.$ac_ext
13230 cat >>conftest.$ac_ext <<_ACEOF
13231 /* end confdefs.h. */
13233 #ifdef HAVE_TERMCAP_H
13234 # include <termcap.h>
13235 #endif
13236 extern short ospeed;
13239 main ()
13241 ospeed = 20000
13243 return 0;
13245 _ACEOF
13246 rm -f conftest.$ac_objext conftest$ac_exeext
13247 if { (ac_try="$ac_link"
13248 case "(($ac_try" in
13249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13250 *) ac_try_echo=$ac_try;;
13251 esac
13252 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13253 $as_echo "$ac_try_echo") >&5
13254 (eval "$ac_link") 2>conftest.er1
13255 ac_status=$?
13256 grep -v '^ *+' conftest.er1 >conftest.err
13257 rm -f conftest.er1
13258 cat conftest.err >&5
13259 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13260 (exit $ac_status); } && {
13261 test -z "$ac_c_werror_flag" ||
13262 test ! -s conftest.err
13263 } && test -s conftest$ac_exeext && {
13264 test "$cross_compiling" = yes ||
13265 $as_test_x conftest$ac_exeext
13266 }; then
13267 { $as_echo "$as_me:$LINENO: result: yes" >&5
13268 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13269 #define OSPEED_EXTERN 1
13270 _ACEOF
13272 else
13273 $as_echo "$as_me: failed program was:" >&5
13274 sed 's/^/| /' conftest.$ac_ext >&5
13276 { $as_echo "$as_me:$LINENO: result: no" >&5
13277 $as_echo "no" >&6; }
13280 rm -rf conftest.dSYM
13281 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13282 conftest$ac_exeext conftest.$ac_ext
13286 rm -rf conftest.dSYM
13287 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13288 conftest$ac_exeext conftest.$ac_ext
13290 { $as_echo "$as_me:$LINENO: checking whether termcap.h contains UP, BC and PC" >&5
13291 $as_echo_n "checking whether termcap.h contains UP, BC and PC... " >&6; }
13292 cat >conftest.$ac_ext <<_ACEOF
13293 /* confdefs.h. */
13294 _ACEOF
13295 cat confdefs.h >>conftest.$ac_ext
13296 cat >>conftest.$ac_ext <<_ACEOF
13297 /* end confdefs.h. */
13299 #ifdef HAVE_TERMCAP_H
13300 # include <termcap.h>
13301 #endif
13304 main ()
13306 if (UP == 0 && BC == 0) PC = 1
13308 return 0;
13310 _ACEOF
13311 rm -f conftest.$ac_objext conftest$ac_exeext
13312 if { (ac_try="$ac_link"
13313 case "(($ac_try" in
13314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13315 *) ac_try_echo=$ac_try;;
13316 esac
13317 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13318 $as_echo "$ac_try_echo") >&5
13319 (eval "$ac_link") 2>conftest.er1
13320 ac_status=$?
13321 grep -v '^ *+' conftest.er1 >conftest.err
13322 rm -f conftest.er1
13323 cat conftest.err >&5
13324 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13325 (exit $ac_status); } && {
13326 test -z "$ac_c_werror_flag" ||
13327 test ! -s conftest.err
13328 } && test -s conftest$ac_exeext && {
13329 test "$cross_compiling" = yes ||
13330 $as_test_x conftest$ac_exeext
13331 }; then
13332 { $as_echo "$as_me:$LINENO: result: yes" >&5
13333 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13334 #define HAVE_UP_BC_PC 1
13335 _ACEOF
13337 else
13338 $as_echo "$as_me: failed program was:" >&5
13339 sed 's/^/| /' conftest.$ac_ext >&5
13341 { $as_echo "$as_me:$LINENO: result: no" >&5
13342 $as_echo "no" >&6; }
13343 { $as_echo "$as_me:$LINENO: checking whether UP, BC and PC can be extern" >&5
13344 $as_echo_n "checking whether UP, BC and PC can be extern... " >&6; }
13345 cat >conftest.$ac_ext <<_ACEOF
13346 /* confdefs.h. */
13347 _ACEOF
13348 cat confdefs.h >>conftest.$ac_ext
13349 cat >>conftest.$ac_ext <<_ACEOF
13350 /* end confdefs.h. */
13352 #ifdef HAVE_TERMCAP_H
13353 # include <termcap.h>
13354 #endif
13355 extern char *UP, *BC, PC;
13358 main ()
13360 if (UP == 0 && BC == 0) PC = 1
13362 return 0;
13364 _ACEOF
13365 rm -f conftest.$ac_objext conftest$ac_exeext
13366 if { (ac_try="$ac_link"
13367 case "(($ac_try" in
13368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13369 *) ac_try_echo=$ac_try;;
13370 esac
13371 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13372 $as_echo "$ac_try_echo") >&5
13373 (eval "$ac_link") 2>conftest.er1
13374 ac_status=$?
13375 grep -v '^ *+' conftest.er1 >conftest.err
13376 rm -f conftest.er1
13377 cat conftest.err >&5
13378 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13379 (exit $ac_status); } && {
13380 test -z "$ac_c_werror_flag" ||
13381 test ! -s conftest.err
13382 } && test -s conftest$ac_exeext && {
13383 test "$cross_compiling" = yes ||
13384 $as_test_x conftest$ac_exeext
13385 }; then
13386 { $as_echo "$as_me:$LINENO: result: yes" >&5
13387 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13388 #define UP_BC_PC_EXTERN 1
13389 _ACEOF
13391 else
13392 $as_echo "$as_me: failed program was:" >&5
13393 sed 's/^/| /' conftest.$ac_ext >&5
13395 { $as_echo "$as_me:$LINENO: result: no" >&5
13396 $as_echo "no" >&6; }
13399 rm -rf conftest.dSYM
13400 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13401 conftest$ac_exeext conftest.$ac_ext
13405 rm -rf conftest.dSYM
13406 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13407 conftest$ac_exeext conftest.$ac_ext
13409 { $as_echo "$as_me:$LINENO: checking whether tputs() uses outfuntype" >&5
13410 $as_echo_n "checking whether tputs() uses outfuntype... " >&6; }
13411 cat >conftest.$ac_ext <<_ACEOF
13412 /* confdefs.h. */
13413 _ACEOF
13414 cat confdefs.h >>conftest.$ac_ext
13415 cat >>conftest.$ac_ext <<_ACEOF
13416 /* end confdefs.h. */
13418 #ifdef HAVE_TERMCAP_H
13419 # include <termcap.h>
13420 #endif
13423 main ()
13425 extern int xx(); tputs("test", 1, (outfuntype)xx)
13427 return 0;
13429 _ACEOF
13430 rm -f conftest.$ac_objext
13431 if { (ac_try="$ac_compile"
13432 case "(($ac_try" in
13433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13434 *) ac_try_echo=$ac_try;;
13435 esac
13436 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13437 $as_echo "$ac_try_echo") >&5
13438 (eval "$ac_compile") 2>conftest.er1
13439 ac_status=$?
13440 grep -v '^ *+' conftest.er1 >conftest.err
13441 rm -f conftest.er1
13442 cat conftest.err >&5
13443 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13444 (exit $ac_status); } && {
13445 test -z "$ac_c_werror_flag" ||
13446 test ! -s conftest.err
13447 } && test -s conftest.$ac_objext; then
13448 { $as_echo "$as_me:$LINENO: result: yes" >&5
13449 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13450 #define HAVE_OUTFUNTYPE 1
13451 _ACEOF
13453 else
13454 $as_echo "$as_me: failed program was:" >&5
13455 sed 's/^/| /' conftest.$ac_ext >&5
13457 { $as_echo "$as_me:$LINENO: result: no" >&5
13458 $as_echo "no" >&6; }
13461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13463 { $as_echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
13464 $as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; }
13465 cat >conftest.$ac_ext <<_ACEOF
13466 /* confdefs.h. */
13467 _ACEOF
13468 cat confdefs.h >>conftest.$ac_ext
13469 cat >>conftest.$ac_ext <<_ACEOF
13470 /* end confdefs.h. */
13472 #include <sys/types.h>
13473 #include <sys/time.h>
13474 #include <sys/select.h>
13476 main ()
13480 return 0;
13482 _ACEOF
13483 rm -f conftest.$ac_objext
13484 if { (ac_try="$ac_compile"
13485 case "(($ac_try" in
13486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13487 *) ac_try_echo=$ac_try;;
13488 esac
13489 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13490 $as_echo "$ac_try_echo") >&5
13491 (eval "$ac_compile") 2>conftest.er1
13492 ac_status=$?
13493 grep -v '^ *+' conftest.er1 >conftest.err
13494 rm -f conftest.er1
13495 cat conftest.err >&5
13496 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13497 (exit $ac_status); } && {
13498 test -z "$ac_c_werror_flag" ||
13499 test ! -s conftest.err
13500 } && test -s conftest.$ac_objext; then
13501 { $as_echo "$as_me:$LINENO: result: yes" >&5
13502 $as_echo "yes" >&6; }
13503 cat >>confdefs.h <<\_ACEOF
13504 #define SYS_SELECT_WITH_SYS_TIME 1
13505 _ACEOF
13507 else
13508 $as_echo "$as_me: failed program was:" >&5
13509 sed 's/^/| /' conftest.$ac_ext >&5
13511 { $as_echo "$as_me:$LINENO: result: no" >&5
13512 $as_echo "no" >&6; }
13515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13518 { $as_echo "$as_me:$LINENO: checking for /dev/ptc" >&5
13519 $as_echo_n "checking for /dev/ptc... " >&6; }
13520 if test -r /dev/ptc; then
13521 cat >>confdefs.h <<\_ACEOF
13522 #define HAVE_DEV_PTC 1
13523 _ACEOF
13525 { $as_echo "$as_me:$LINENO: result: yes" >&5
13526 $as_echo "yes" >&6; }
13527 else
13528 { $as_echo "$as_me:$LINENO: result: no" >&5
13529 $as_echo "no" >&6; }
13532 { $as_echo "$as_me:$LINENO: checking for SVR4 ptys" >&5
13533 $as_echo_n "checking for SVR4 ptys... " >&6; }
13534 if test -c /dev/ptmx ; then
13535 cat >conftest.$ac_ext <<_ACEOF
13536 /* confdefs.h. */
13537 _ACEOF
13538 cat confdefs.h >>conftest.$ac_ext
13539 cat >>conftest.$ac_ext <<_ACEOF
13540 /* end confdefs.h. */
13543 main ()
13545 ptsname(0);grantpt(0);unlockpt(0);
13547 return 0;
13549 _ACEOF
13550 rm -f conftest.$ac_objext conftest$ac_exeext
13551 if { (ac_try="$ac_link"
13552 case "(($ac_try" in
13553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13554 *) ac_try_echo=$ac_try;;
13555 esac
13556 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13557 $as_echo "$ac_try_echo") >&5
13558 (eval "$ac_link") 2>conftest.er1
13559 ac_status=$?
13560 grep -v '^ *+' conftest.er1 >conftest.err
13561 rm -f conftest.er1
13562 cat conftest.err >&5
13563 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13564 (exit $ac_status); } && {
13565 test -z "$ac_c_werror_flag" ||
13566 test ! -s conftest.err
13567 } && test -s conftest$ac_exeext && {
13568 test "$cross_compiling" = yes ||
13569 $as_test_x conftest$ac_exeext
13570 }; then
13571 { $as_echo "$as_me:$LINENO: result: yes" >&5
13572 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13573 #define HAVE_SVR4_PTYS 1
13574 _ACEOF
13576 else
13577 $as_echo "$as_me: failed program was:" >&5
13578 sed 's/^/| /' conftest.$ac_ext >&5
13580 { $as_echo "$as_me:$LINENO: result: no" >&5
13581 $as_echo "no" >&6; }
13584 rm -rf conftest.dSYM
13585 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13586 conftest$ac_exeext conftest.$ac_ext
13587 else
13588 { $as_echo "$as_me:$LINENO: result: no" >&5
13589 $as_echo "no" >&6; }
13592 { $as_echo "$as_me:$LINENO: checking for ptyranges" >&5
13593 $as_echo_n "checking for ptyranges... " >&6; }
13594 if test -d /dev/ptym ; then
13595 pdir='/dev/ptym'
13596 else
13597 pdir='/dev'
13599 cat >conftest.$ac_ext <<_ACEOF
13600 /* confdefs.h. */
13601 _ACEOF
13602 cat confdefs.h >>conftest.$ac_ext
13603 cat >>conftest.$ac_ext <<_ACEOF
13604 /* end confdefs.h. */
13605 #ifdef M_UNIX
13606 yes;
13607 #endif
13609 _ACEOF
13610 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13611 $EGREP "yes" >/dev/null 2>&1; then
13612 ptys=`echo /dev/ptyp??`
13613 else
13614 ptys=`echo $pdir/pty??`
13616 rm -f conftest*
13618 if test "$ptys" != "$pdir/pty??" ; then
13619 p0=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'`
13620 p1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'`
13621 cat >>confdefs.h <<_ACEOF
13622 #define PTYRANGE0 "$p0"
13623 _ACEOF
13625 cat >>confdefs.h <<_ACEOF
13626 #define PTYRANGE1 "$p1"
13627 _ACEOF
13629 { $as_echo "$as_me:$LINENO: result: $p0 / $p1" >&5
13630 $as_echo "$p0 / $p1" >&6; }
13631 else
13632 { $as_echo "$as_me:$LINENO: result: don't know" >&5
13633 $as_echo "don't know" >&6; }
13636 rm -f conftest_grp
13637 { $as_echo "$as_me:$LINENO: checking default tty permissions/group" >&5
13638 $as_echo_n "checking default tty permissions/group... " >&6; }
13639 if test "${vim_cv_tty_group+set}" = set; then
13640 $as_echo_n "(cached) " >&6
13641 else
13643 if test "$cross_compiling" = yes; then
13645 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_tty_group' and 'vim_cv_tty_mode'" >&5
13646 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_tty_group' and 'vim_cv_tty_mode'" >&2;}
13647 { (exit 1); exit 1; }; }
13649 else
13650 cat >conftest.$ac_ext <<_ACEOF
13652 #include "confdefs.h"
13653 #include <sys/types.h>
13654 #if STDC_HEADERS
13655 # include <stdlib.h>
13656 # include <stddef.h>
13657 #endif
13658 #ifdef HAVE_UNISTD_H
13659 #include <unistd.h>
13660 #endif
13661 #include <sys/stat.h>
13662 #include <stdio.h>
13663 main()
13665 struct stat sb;
13666 char *x,*ttyname();
13667 int om, m;
13668 FILE *fp;
13670 if (!(x = ttyname(0))) exit(1);
13671 if (stat(x, &sb)) exit(1);
13672 om = sb.st_mode;
13673 if (om & 002) exit(0);
13674 m = system("mesg y");
13675 if (m == -1 || m == 127) exit(1);
13676 if (stat(x, &sb)) exit(1);
13677 m = sb.st_mode;
13678 if (chmod(x, om)) exit(1);
13679 if (m & 002) exit(0);
13680 if (sb.st_gid == getgid()) exit(1);
13681 if (!(fp=fopen("conftest_grp", "w")))
13682 exit(1);
13683 fprintf(fp, "%d\n", sb.st_gid);
13684 fclose(fp);
13685 exit(0);
13688 _ACEOF
13689 rm -f conftest$ac_exeext
13690 if { (ac_try="$ac_link"
13691 case "(($ac_try" in
13692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13693 *) ac_try_echo=$ac_try;;
13694 esac
13695 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13696 $as_echo "$ac_try_echo") >&5
13697 (eval "$ac_link") 2>&5
13698 ac_status=$?
13699 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13700 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13701 { (case "(($ac_try" in
13702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13703 *) ac_try_echo=$ac_try;;
13704 esac
13705 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13706 $as_echo "$ac_try_echo") >&5
13707 (eval "$ac_try") 2>&5
13708 ac_status=$?
13709 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13710 (exit $ac_status); }; }; then
13712 if test -f conftest_grp; then
13713 vim_cv_tty_group=`cat conftest_grp`
13714 if test "x$vim_cv_tty_mode" = "x" ; then
13715 vim_cv_tty_mode=0620
13717 { $as_echo "$as_me:$LINENO: result: pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&5
13718 $as_echo "pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&6; }
13719 else
13720 vim_cv_tty_group=world
13721 { $as_echo "$as_me:$LINENO: result: ptys are world accessable" >&5
13722 $as_echo "ptys are world accessable" >&6; }
13725 else
13726 $as_echo "$as_me: program exited with status $ac_status" >&5
13727 $as_echo "$as_me: failed program was:" >&5
13728 sed 's/^/| /' conftest.$ac_ext >&5
13730 ( exit $ac_status )
13732 vim_cv_tty_group=world
13733 { $as_echo "$as_me:$LINENO: result: can't determine - assume ptys are world accessable" >&5
13734 $as_echo "can't determine - assume ptys are world accessable" >&6; }
13737 rm -rf conftest.dSYM
13738 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13744 { $as_echo "$as_me:$LINENO: result: $vim_cv_tty_group" >&5
13745 $as_echo "$vim_cv_tty_group" >&6; }
13746 rm -f conftest_grp
13748 if test "x$vim_cv_tty_group" != "xworld" ; then
13749 cat >>confdefs.h <<_ACEOF
13750 #define PTYGROUP $vim_cv_tty_group
13751 _ACEOF
13753 if test "x$vim_cv_tty_mode" = "x" ; then
13754 { { $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
13755 $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;}
13756 { (exit 1); exit 1; }; }
13757 else
13758 cat >>confdefs.h <<\_ACEOF
13759 #define PTYMODE 0620
13760 _ACEOF
13766 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13767 $as_echo_n "checking return type of signal handlers... " >&6; }
13768 if test "${ac_cv_type_signal+set}" = set; then
13769 $as_echo_n "(cached) " >&6
13770 else
13771 cat >conftest.$ac_ext <<_ACEOF
13772 /* confdefs.h. */
13773 _ACEOF
13774 cat confdefs.h >>conftest.$ac_ext
13775 cat >>conftest.$ac_ext <<_ACEOF
13776 /* end confdefs.h. */
13777 #include <sys/types.h>
13778 #include <signal.h>
13781 main ()
13783 return *(signal (0, 0)) (0) == 1;
13785 return 0;
13787 _ACEOF
13788 rm -f conftest.$ac_objext
13789 if { (ac_try="$ac_compile"
13790 case "(($ac_try" in
13791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13792 *) ac_try_echo=$ac_try;;
13793 esac
13794 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13795 $as_echo "$ac_try_echo") >&5
13796 (eval "$ac_compile") 2>conftest.er1
13797 ac_status=$?
13798 grep -v '^ *+' conftest.er1 >conftest.err
13799 rm -f conftest.er1
13800 cat conftest.err >&5
13801 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13802 (exit $ac_status); } && {
13803 test -z "$ac_c_werror_flag" ||
13804 test ! -s conftest.err
13805 } && test -s conftest.$ac_objext; then
13806 ac_cv_type_signal=int
13807 else
13808 $as_echo "$as_me: failed program was:" >&5
13809 sed 's/^/| /' conftest.$ac_ext >&5
13811 ac_cv_type_signal=void
13814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13816 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
13817 $as_echo "$ac_cv_type_signal" >&6; }
13819 cat >>confdefs.h <<_ACEOF
13820 #define RETSIGTYPE $ac_cv_type_signal
13821 _ACEOF
13825 if test $ac_cv_type_signal = void; then
13826 cat >>confdefs.h <<\_ACEOF
13827 #define SIGRETURN return
13828 _ACEOF
13830 else
13831 cat >>confdefs.h <<\_ACEOF
13832 #define SIGRETURN return 0
13833 _ACEOF
13837 { $as_echo "$as_me:$LINENO: checking for struct sigcontext" >&5
13838 $as_echo_n "checking for struct sigcontext... " >&6; }
13839 cat >conftest.$ac_ext <<_ACEOF
13840 /* confdefs.h. */
13841 _ACEOF
13842 cat confdefs.h >>conftest.$ac_ext
13843 cat >>conftest.$ac_ext <<_ACEOF
13844 /* end confdefs.h. */
13846 #include <signal.h>
13847 test_sig()
13849 struct sigcontext *scont;
13850 scont = (struct sigcontext *)0;
13851 return 1;
13854 main ()
13858 return 0;
13860 _ACEOF
13861 rm -f conftest.$ac_objext
13862 if { (ac_try="$ac_compile"
13863 case "(($ac_try" in
13864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13865 *) ac_try_echo=$ac_try;;
13866 esac
13867 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13868 $as_echo "$ac_try_echo") >&5
13869 (eval "$ac_compile") 2>conftest.er1
13870 ac_status=$?
13871 grep -v '^ *+' conftest.er1 >conftest.err
13872 rm -f conftest.er1
13873 cat conftest.err >&5
13874 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13875 (exit $ac_status); } && {
13876 test -z "$ac_c_werror_flag" ||
13877 test ! -s conftest.err
13878 } && test -s conftest.$ac_objext; then
13879 { $as_echo "$as_me:$LINENO: result: yes" >&5
13880 $as_echo "yes" >&6; }
13881 cat >>confdefs.h <<\_ACEOF
13882 #define HAVE_SIGCONTEXT 1
13883 _ACEOF
13885 else
13886 $as_echo "$as_me: failed program was:" >&5
13887 sed 's/^/| /' conftest.$ac_ext >&5
13889 { $as_echo "$as_me:$LINENO: result: no" >&5
13890 $as_echo "no" >&6; }
13893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13895 { $as_echo "$as_me:$LINENO: checking getcwd implementation is broken" >&5
13896 $as_echo_n "checking getcwd implementation is broken... " >&6; }
13897 if test "${vim_cv_getcwd_broken+set}" = set; then
13898 $as_echo_n "(cached) " >&6
13899 else
13901 if test "$cross_compiling" = yes; then
13903 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_getcwd_broken'" >&5
13904 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_getcwd_broken'" >&2;}
13905 { (exit 1); exit 1; }; }
13907 else
13908 cat >conftest.$ac_ext <<_ACEOF
13910 #include "confdefs.h"
13911 #ifdef HAVE_UNISTD_H
13912 #include <unistd.h>
13913 #endif
13914 char *dagger[] = { "IFS=pwd", 0 };
13915 main()
13917 char buffer[500];
13918 extern char **environ;
13919 environ = dagger;
13920 return getcwd(buffer, 500) ? 0 : 1;
13923 _ACEOF
13924 rm -f conftest$ac_exeext
13925 if { (ac_try="$ac_link"
13926 case "(($ac_try" in
13927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13928 *) ac_try_echo=$ac_try;;
13929 esac
13930 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13931 $as_echo "$ac_try_echo") >&5
13932 (eval "$ac_link") 2>&5
13933 ac_status=$?
13934 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13935 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13936 { (case "(($ac_try" in
13937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13938 *) ac_try_echo=$ac_try;;
13939 esac
13940 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13941 $as_echo "$ac_try_echo") >&5
13942 (eval "$ac_try") 2>&5
13943 ac_status=$?
13944 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13945 (exit $ac_status); }; }; then
13947 vim_cv_getcwd_broken=no
13949 else
13950 $as_echo "$as_me: program exited with status $ac_status" >&5
13951 $as_echo "$as_me: failed program was:" >&5
13952 sed 's/^/| /' conftest.$ac_ext >&5
13954 ( exit $ac_status )
13956 vim_cv_getcwd_broken=yes
13959 rm -rf conftest.dSYM
13960 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13966 { $as_echo "$as_me:$LINENO: result: $vim_cv_getcwd_broken" >&5
13967 $as_echo "$vim_cv_getcwd_broken" >&6; }
13969 if test "x$vim_cv_getcwd_broken" = "xyes" ; then
13970 cat >>confdefs.h <<\_ACEOF
13971 #define BAD_GETCWD 1
13972 _ACEOF
14022 for ac_func in bcmp fchdir fchown fseeko fsync ftello getcwd getpseudotty \
14023 getpwnam getpwuid getrlimit gettimeofday getwd lstat memcmp \
14024 memset nanosleep opendir putenv qsort readlink select setenv \
14025 setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \
14026 sigvec strcasecmp strerror strftime stricmp strncasecmp \
14027 strnicmp strpbrk strtol tgetent towlower towupper iswupper \
14028 usleep utime utimes
14030 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14031 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14032 $as_echo_n "checking for $ac_func... " >&6; }
14033 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14034 $as_echo_n "(cached) " >&6
14035 else
14036 cat >conftest.$ac_ext <<_ACEOF
14037 /* confdefs.h. */
14038 _ACEOF
14039 cat confdefs.h >>conftest.$ac_ext
14040 cat >>conftest.$ac_ext <<_ACEOF
14041 /* end confdefs.h. */
14042 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14043 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14044 #define $ac_func innocuous_$ac_func
14046 /* System header to define __stub macros and hopefully few prototypes,
14047 which can conflict with char $ac_func (); below.
14048 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14049 <limits.h> exists even on freestanding compilers. */
14051 #ifdef __STDC__
14052 # include <limits.h>
14053 #else
14054 # include <assert.h>
14055 #endif
14057 #undef $ac_func
14059 /* Override any GCC internal prototype to avoid an error.
14060 Use char because int might match the return type of a GCC
14061 builtin and then its argument prototype would still apply. */
14062 #ifdef __cplusplus
14063 extern "C"
14064 #endif
14065 char $ac_func ();
14066 /* The GNU C library defines this for functions which it implements
14067 to always fail with ENOSYS. Some functions are actually named
14068 something starting with __ and the normal name is an alias. */
14069 #if defined __stub_$ac_func || defined __stub___$ac_func
14070 choke me
14071 #endif
14074 main ()
14076 return $ac_func ();
14078 return 0;
14080 _ACEOF
14081 rm -f conftest.$ac_objext conftest$ac_exeext
14082 if { (ac_try="$ac_link"
14083 case "(($ac_try" in
14084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14085 *) ac_try_echo=$ac_try;;
14086 esac
14087 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14088 $as_echo "$ac_try_echo") >&5
14089 (eval "$ac_link") 2>conftest.er1
14090 ac_status=$?
14091 grep -v '^ *+' conftest.er1 >conftest.err
14092 rm -f conftest.er1
14093 cat conftest.err >&5
14094 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14095 (exit $ac_status); } && {
14096 test -z "$ac_c_werror_flag" ||
14097 test ! -s conftest.err
14098 } && test -s conftest$ac_exeext && {
14099 test "$cross_compiling" = yes ||
14100 $as_test_x conftest$ac_exeext
14101 }; then
14102 eval "$as_ac_var=yes"
14103 else
14104 $as_echo "$as_me: failed program was:" >&5
14105 sed 's/^/| /' conftest.$ac_ext >&5
14107 eval "$as_ac_var=no"
14110 rm -rf conftest.dSYM
14111 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14112 conftest$ac_exeext conftest.$ac_ext
14114 ac_res=`eval 'as_val=${'$as_ac_var'}
14115 $as_echo "$as_val"'`
14116 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14117 $as_echo "$ac_res" >&6; }
14118 as_val=`eval 'as_val=${'$as_ac_var'}
14119 $as_echo "$as_val"'`
14120 if test "x$as_val" = x""yes; then
14121 cat >>confdefs.h <<_ACEOF
14122 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14123 _ACEOF
14126 done
14129 { $as_echo "$as_me:$LINENO: checking for st_blksize" >&5
14130 $as_echo_n "checking for st_blksize... " >&6; }
14131 cat >conftest.$ac_ext <<_ACEOF
14132 /* confdefs.h. */
14133 _ACEOF
14134 cat confdefs.h >>conftest.$ac_ext
14135 cat >>conftest.$ac_ext <<_ACEOF
14136 /* end confdefs.h. */
14137 #include <sys/types.h>
14138 #include <sys/stat.h>
14140 main ()
14142 struct stat st;
14143 int n;
14145 stat("/", &st);
14146 n = (int)st.st_blksize;
14148 return 0;
14150 _ACEOF
14151 rm -f conftest.$ac_objext
14152 if { (ac_try="$ac_compile"
14153 case "(($ac_try" in
14154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14155 *) ac_try_echo=$ac_try;;
14156 esac
14157 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14158 $as_echo "$ac_try_echo") >&5
14159 (eval "$ac_compile") 2>conftest.er1
14160 ac_status=$?
14161 grep -v '^ *+' conftest.er1 >conftest.err
14162 rm -f conftest.er1
14163 cat conftest.err >&5
14164 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14165 (exit $ac_status); } && {
14166 test -z "$ac_c_werror_flag" ||
14167 test ! -s conftest.err
14168 } && test -s conftest.$ac_objext; then
14169 { $as_echo "$as_me:$LINENO: result: yes" >&5
14170 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14171 #define HAVE_ST_BLKSIZE 1
14172 _ACEOF
14174 else
14175 $as_echo "$as_me: failed program was:" >&5
14176 sed 's/^/| /' conftest.$ac_ext >&5
14178 { $as_echo "$as_me:$LINENO: result: no" >&5
14179 $as_echo "no" >&6; }
14182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14184 { $as_echo "$as_me:$LINENO: checking whether stat() ignores a trailing slash" >&5
14185 $as_echo_n "checking whether stat() ignores a trailing slash... " >&6; }
14186 if test "${vim_cv_stat_ignores_slash+set}" = set; then
14187 $as_echo_n "(cached) " >&6
14188 else
14190 if test "$cross_compiling" = yes; then
14192 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_stat_ignores_slash'" >&5
14193 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_stat_ignores_slash'" >&2;}
14194 { (exit 1); exit 1; }; }
14196 else
14197 cat >conftest.$ac_ext <<_ACEOF
14199 #include "confdefs.h"
14200 #if STDC_HEADERS
14201 # include <stdlib.h>
14202 # include <stddef.h>
14203 #endif
14204 #include <sys/types.h>
14205 #include <sys/stat.h>
14206 main() {struct stat st; exit(stat("configure/", &st) != 0); }
14208 _ACEOF
14209 rm -f conftest$ac_exeext
14210 if { (ac_try="$ac_link"
14211 case "(($ac_try" in
14212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14213 *) ac_try_echo=$ac_try;;
14214 esac
14215 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14216 $as_echo "$ac_try_echo") >&5
14217 (eval "$ac_link") 2>&5
14218 ac_status=$?
14219 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14220 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14221 { (case "(($ac_try" in
14222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14223 *) ac_try_echo=$ac_try;;
14224 esac
14225 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14226 $as_echo "$ac_try_echo") >&5
14227 (eval "$ac_try") 2>&5
14228 ac_status=$?
14229 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14230 (exit $ac_status); }; }; then
14232 vim_cv_stat_ignores_slash=yes
14234 else
14235 $as_echo "$as_me: program exited with status $ac_status" >&5
14236 $as_echo "$as_me: failed program was:" >&5
14237 sed 's/^/| /' conftest.$ac_ext >&5
14239 ( exit $ac_status )
14241 vim_cv_stat_ignores_slash=no
14244 rm -rf conftest.dSYM
14245 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14251 { $as_echo "$as_me:$LINENO: result: $vim_cv_stat_ignores_slash" >&5
14252 $as_echo "$vim_cv_stat_ignores_slash" >&6; }
14254 if test "x$vim_cv_stat_ignores_slash" = "xyes" ; then
14255 cat >>confdefs.h <<\_ACEOF
14256 #define STAT_IGNORES_SLASH 1
14257 _ACEOF
14261 { $as_echo "$as_me:$LINENO: checking for iconv_open()" >&5
14262 $as_echo_n "checking for iconv_open()... " >&6; }
14263 save_LIBS="$LIBS"
14264 LIBS="$LIBS -liconv"
14265 cat >conftest.$ac_ext <<_ACEOF
14266 /* confdefs.h. */
14267 _ACEOF
14268 cat confdefs.h >>conftest.$ac_ext
14269 cat >>conftest.$ac_ext <<_ACEOF
14270 /* end confdefs.h. */
14272 #ifdef HAVE_ICONV_H
14273 # include <iconv.h>
14274 #endif
14277 main ()
14279 iconv_open("fr", "to");
14281 return 0;
14283 _ACEOF
14284 rm -f conftest.$ac_objext conftest$ac_exeext
14285 if { (ac_try="$ac_link"
14286 case "(($ac_try" in
14287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14288 *) ac_try_echo=$ac_try;;
14289 esac
14290 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14291 $as_echo "$ac_try_echo") >&5
14292 (eval "$ac_link") 2>conftest.er1
14293 ac_status=$?
14294 grep -v '^ *+' conftest.er1 >conftest.err
14295 rm -f conftest.er1
14296 cat conftest.err >&5
14297 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14298 (exit $ac_status); } && {
14299 test -z "$ac_c_werror_flag" ||
14300 test ! -s conftest.err
14301 } && test -s conftest$ac_exeext && {
14302 test "$cross_compiling" = yes ||
14303 $as_test_x conftest$ac_exeext
14304 }; then
14305 { $as_echo "$as_me:$LINENO: result: yes; with -liconv" >&5
14306 $as_echo "yes; with -liconv" >&6; }; cat >>confdefs.h <<\_ACEOF
14307 #define HAVE_ICONV 1
14308 _ACEOF
14310 else
14311 $as_echo "$as_me: failed program was:" >&5
14312 sed 's/^/| /' conftest.$ac_ext >&5
14314 LIBS="$save_LIBS"
14315 cat >conftest.$ac_ext <<_ACEOF
14316 /* confdefs.h. */
14317 _ACEOF
14318 cat confdefs.h >>conftest.$ac_ext
14319 cat >>conftest.$ac_ext <<_ACEOF
14320 /* end confdefs.h. */
14322 #ifdef HAVE_ICONV_H
14323 # include <iconv.h>
14324 #endif
14327 main ()
14329 iconv_open("fr", "to");
14331 return 0;
14333 _ACEOF
14334 rm -f conftest.$ac_objext conftest$ac_exeext
14335 if { (ac_try="$ac_link"
14336 case "(($ac_try" in
14337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14338 *) ac_try_echo=$ac_try;;
14339 esac
14340 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14341 $as_echo "$ac_try_echo") >&5
14342 (eval "$ac_link") 2>conftest.er1
14343 ac_status=$?
14344 grep -v '^ *+' conftest.er1 >conftest.err
14345 rm -f conftest.er1
14346 cat conftest.err >&5
14347 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14348 (exit $ac_status); } && {
14349 test -z "$ac_c_werror_flag" ||
14350 test ! -s conftest.err
14351 } && test -s conftest$ac_exeext && {
14352 test "$cross_compiling" = yes ||
14353 $as_test_x conftest$ac_exeext
14354 }; then
14355 { $as_echo "$as_me:$LINENO: result: yes" >&5
14356 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14357 #define HAVE_ICONV 1
14358 _ACEOF
14360 else
14361 $as_echo "$as_me: failed program was:" >&5
14362 sed 's/^/| /' conftest.$ac_ext >&5
14364 { $as_echo "$as_me:$LINENO: result: no" >&5
14365 $as_echo "no" >&6; }
14368 rm -rf conftest.dSYM
14369 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14370 conftest$ac_exeext conftest.$ac_ext
14373 rm -rf conftest.dSYM
14374 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14375 conftest$ac_exeext conftest.$ac_ext
14378 { $as_echo "$as_me:$LINENO: checking for nl_langinfo(CODESET)" >&5
14379 $as_echo_n "checking for nl_langinfo(CODESET)... " >&6; }
14380 cat >conftest.$ac_ext <<_ACEOF
14381 /* confdefs.h. */
14382 _ACEOF
14383 cat confdefs.h >>conftest.$ac_ext
14384 cat >>conftest.$ac_ext <<_ACEOF
14385 /* end confdefs.h. */
14387 #ifdef HAVE_LANGINFO_H
14388 # include <langinfo.h>
14389 #endif
14392 main ()
14394 char *cs = nl_langinfo(CODESET);
14396 return 0;
14398 _ACEOF
14399 rm -f conftest.$ac_objext conftest$ac_exeext
14400 if { (ac_try="$ac_link"
14401 case "(($ac_try" in
14402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14403 *) ac_try_echo=$ac_try;;
14404 esac
14405 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14406 $as_echo "$ac_try_echo") >&5
14407 (eval "$ac_link") 2>conftest.er1
14408 ac_status=$?
14409 grep -v '^ *+' conftest.er1 >conftest.err
14410 rm -f conftest.er1
14411 cat conftest.err >&5
14412 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14413 (exit $ac_status); } && {
14414 test -z "$ac_c_werror_flag" ||
14415 test ! -s conftest.err
14416 } && test -s conftest$ac_exeext && {
14417 test "$cross_compiling" = yes ||
14418 $as_test_x conftest$ac_exeext
14419 }; then
14420 { $as_echo "$as_me:$LINENO: result: yes" >&5
14421 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14422 #define HAVE_NL_LANGINFO_CODESET 1
14423 _ACEOF
14425 else
14426 $as_echo "$as_me: failed program was:" >&5
14427 sed 's/^/| /' conftest.$ac_ext >&5
14429 { $as_echo "$as_me:$LINENO: result: no" >&5
14430 $as_echo "no" >&6; }
14433 rm -rf conftest.dSYM
14434 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14435 conftest$ac_exeext conftest.$ac_ext
14438 { $as_echo "$as_me:$LINENO: checking for strtod in -lm" >&5
14439 $as_echo_n "checking for strtod in -lm... " >&6; }
14440 if test "${ac_cv_lib_m_strtod+set}" = set; then
14441 $as_echo_n "(cached) " >&6
14442 else
14443 ac_check_lib_save_LIBS=$LIBS
14444 LIBS="-lm $LIBS"
14445 cat >conftest.$ac_ext <<_ACEOF
14446 /* confdefs.h. */
14447 _ACEOF
14448 cat confdefs.h >>conftest.$ac_ext
14449 cat >>conftest.$ac_ext <<_ACEOF
14450 /* end confdefs.h. */
14452 /* Override any GCC internal prototype to avoid an error.
14453 Use char because int might match the return type of a GCC
14454 builtin and then its argument prototype would still apply. */
14455 #ifdef __cplusplus
14456 extern "C"
14457 #endif
14458 char strtod ();
14460 main ()
14462 return strtod ();
14464 return 0;
14466 _ACEOF
14467 rm -f conftest.$ac_objext conftest$ac_exeext
14468 if { (ac_try="$ac_link"
14469 case "(($ac_try" in
14470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14471 *) ac_try_echo=$ac_try;;
14472 esac
14473 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14474 $as_echo "$ac_try_echo") >&5
14475 (eval "$ac_link") 2>conftest.er1
14476 ac_status=$?
14477 grep -v '^ *+' conftest.er1 >conftest.err
14478 rm -f conftest.er1
14479 cat conftest.err >&5
14480 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14481 (exit $ac_status); } && {
14482 test -z "$ac_c_werror_flag" ||
14483 test ! -s conftest.err
14484 } && test -s conftest$ac_exeext && {
14485 test "$cross_compiling" = yes ||
14486 $as_test_x conftest$ac_exeext
14487 }; then
14488 ac_cv_lib_m_strtod=yes
14489 else
14490 $as_echo "$as_me: failed program was:" >&5
14491 sed 's/^/| /' conftest.$ac_ext >&5
14493 ac_cv_lib_m_strtod=no
14496 rm -rf conftest.dSYM
14497 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14498 conftest$ac_exeext conftest.$ac_ext
14499 LIBS=$ac_check_lib_save_LIBS
14501 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_strtod" >&5
14502 $as_echo "$ac_cv_lib_m_strtod" >&6; }
14503 if test "x$ac_cv_lib_m_strtod" = x""yes; then
14504 cat >>confdefs.h <<_ACEOF
14505 #define HAVE_LIBM 1
14506 _ACEOF
14508 LIBS="-lm $LIBS"
14512 { $as_echo "$as_me:$LINENO: checking for strtod() and other floating point functions" >&5
14513 $as_echo_n "checking for strtod() and other floating point functions... " >&6; }
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. */
14521 #ifdef HAVE_MATH_H
14522 # include <math.h>
14523 #endif
14524 #if STDC_HEADERS
14525 # include <stdlib.h>
14526 # include <stddef.h>
14527 #endif
14530 main ()
14532 char *s; double d;
14533 d = strtod("1.1", &s);
14534 d = fabs(1.11);
14535 d = ceil(1.11);
14536 d = floor(1.11);
14537 d = log10(1.11);
14538 d = pow(1.11, 2.22);
14539 d = sqrt(1.11);
14540 d = sin(1.11);
14541 d = cos(1.11);
14542 d = atan(1.11);
14545 return 0;
14547 _ACEOF
14548 rm -f conftest.$ac_objext conftest$ac_exeext
14549 if { (ac_try="$ac_link"
14550 case "(($ac_try" in
14551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14552 *) ac_try_echo=$ac_try;;
14553 esac
14554 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14555 $as_echo "$ac_try_echo") >&5
14556 (eval "$ac_link") 2>conftest.er1
14557 ac_status=$?
14558 grep -v '^ *+' conftest.er1 >conftest.err
14559 rm -f conftest.er1
14560 cat conftest.err >&5
14561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14562 (exit $ac_status); } && {
14563 test -z "$ac_c_werror_flag" ||
14564 test ! -s conftest.err
14565 } && test -s conftest$ac_exeext && {
14566 test "$cross_compiling" = yes ||
14567 $as_test_x conftest$ac_exeext
14568 }; then
14569 { $as_echo "$as_me:$LINENO: result: yes" >&5
14570 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14571 #define HAVE_FLOAT_FUNCS 1
14572 _ACEOF
14574 else
14575 $as_echo "$as_me: failed program was:" >&5
14576 sed 's/^/| /' conftest.$ac_ext >&5
14578 { $as_echo "$as_me:$LINENO: result: no" >&5
14579 $as_echo "no" >&6; }
14582 rm -rf conftest.dSYM
14583 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14584 conftest$ac_exeext conftest.$ac_ext
14586 { $as_echo "$as_me:$LINENO: checking --disable-acl argument" >&5
14587 $as_echo_n "checking --disable-acl argument... " >&6; }
14588 # Check whether --enable-acl was given.
14589 if test "${enable_acl+set}" = set; then
14590 enableval=$enable_acl;
14591 else
14592 enable_acl="yes"
14595 if test "$enable_acl" = "yes"; then
14596 { $as_echo "$as_me:$LINENO: result: no" >&5
14597 $as_echo "no" >&6; }
14598 { $as_echo "$as_me:$LINENO: checking for acl_get_file in -lposix1e" >&5
14599 $as_echo_n "checking for acl_get_file in -lposix1e... " >&6; }
14600 if test "${ac_cv_lib_posix1e_acl_get_file+set}" = set; then
14601 $as_echo_n "(cached) " >&6
14602 else
14603 ac_check_lib_save_LIBS=$LIBS
14604 LIBS="-lposix1e $LIBS"
14605 cat >conftest.$ac_ext <<_ACEOF
14606 /* confdefs.h. */
14607 _ACEOF
14608 cat confdefs.h >>conftest.$ac_ext
14609 cat >>conftest.$ac_ext <<_ACEOF
14610 /* end confdefs.h. */
14612 /* Override any GCC internal prototype to avoid an error.
14613 Use char because int might match the return type of a GCC
14614 builtin and then its argument prototype would still apply. */
14615 #ifdef __cplusplus
14616 extern "C"
14617 #endif
14618 char acl_get_file ();
14620 main ()
14622 return acl_get_file ();
14624 return 0;
14626 _ACEOF
14627 rm -f conftest.$ac_objext conftest$ac_exeext
14628 if { (ac_try="$ac_link"
14629 case "(($ac_try" in
14630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14631 *) ac_try_echo=$ac_try;;
14632 esac
14633 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14634 $as_echo "$ac_try_echo") >&5
14635 (eval "$ac_link") 2>conftest.er1
14636 ac_status=$?
14637 grep -v '^ *+' conftest.er1 >conftest.err
14638 rm -f conftest.er1
14639 cat conftest.err >&5
14640 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14641 (exit $ac_status); } && {
14642 test -z "$ac_c_werror_flag" ||
14643 test ! -s conftest.err
14644 } && test -s conftest$ac_exeext && {
14645 test "$cross_compiling" = yes ||
14646 $as_test_x conftest$ac_exeext
14647 }; then
14648 ac_cv_lib_posix1e_acl_get_file=yes
14649 else
14650 $as_echo "$as_me: failed program was:" >&5
14651 sed 's/^/| /' conftest.$ac_ext >&5
14653 ac_cv_lib_posix1e_acl_get_file=no
14656 rm -rf conftest.dSYM
14657 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14658 conftest$ac_exeext conftest.$ac_ext
14659 LIBS=$ac_check_lib_save_LIBS
14661 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix1e_acl_get_file" >&5
14662 $as_echo "$ac_cv_lib_posix1e_acl_get_file" >&6; }
14663 if test "x$ac_cv_lib_posix1e_acl_get_file" = x""yes; then
14664 LIBS="$LIBS -lposix1e"
14665 else
14666 { $as_echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
14667 $as_echo_n "checking for acl_get_file in -lacl... " >&6; }
14668 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
14669 $as_echo_n "(cached) " >&6
14670 else
14671 ac_check_lib_save_LIBS=$LIBS
14672 LIBS="-lacl $LIBS"
14673 cat >conftest.$ac_ext <<_ACEOF
14674 /* confdefs.h. */
14675 _ACEOF
14676 cat confdefs.h >>conftest.$ac_ext
14677 cat >>conftest.$ac_ext <<_ACEOF
14678 /* end confdefs.h. */
14680 /* Override any GCC internal prototype to avoid an error.
14681 Use char because int might match the return type of a GCC
14682 builtin and then its argument prototype would still apply. */
14683 #ifdef __cplusplus
14684 extern "C"
14685 #endif
14686 char acl_get_file ();
14688 main ()
14690 return acl_get_file ();
14692 return 0;
14694 _ACEOF
14695 rm -f conftest.$ac_objext conftest$ac_exeext
14696 if { (ac_try="$ac_link"
14697 case "(($ac_try" in
14698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14699 *) ac_try_echo=$ac_try;;
14700 esac
14701 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14702 $as_echo "$ac_try_echo") >&5
14703 (eval "$ac_link") 2>conftest.er1
14704 ac_status=$?
14705 grep -v '^ *+' conftest.er1 >conftest.err
14706 rm -f conftest.er1
14707 cat conftest.err >&5
14708 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14709 (exit $ac_status); } && {
14710 test -z "$ac_c_werror_flag" ||
14711 test ! -s conftest.err
14712 } && test -s conftest$ac_exeext && {
14713 test "$cross_compiling" = yes ||
14714 $as_test_x conftest$ac_exeext
14715 }; then
14716 ac_cv_lib_acl_acl_get_file=yes
14717 else
14718 $as_echo "$as_me: failed program was:" >&5
14719 sed 's/^/| /' conftest.$ac_ext >&5
14721 ac_cv_lib_acl_acl_get_file=no
14724 rm -rf conftest.dSYM
14725 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14726 conftest$ac_exeext conftest.$ac_ext
14727 LIBS=$ac_check_lib_save_LIBS
14729 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
14730 $as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
14731 if test "x$ac_cv_lib_acl_acl_get_file" = x""yes; then
14732 LIBS="$LIBS -lacl"
14733 { $as_echo "$as_me:$LINENO: checking for fgetxattr in -lattr" >&5
14734 $as_echo_n "checking for fgetxattr in -lattr... " >&6; }
14735 if test "${ac_cv_lib_attr_fgetxattr+set}" = set; then
14736 $as_echo_n "(cached) " >&6
14737 else
14738 ac_check_lib_save_LIBS=$LIBS
14739 LIBS="-lattr $LIBS"
14740 cat >conftest.$ac_ext <<_ACEOF
14741 /* confdefs.h. */
14742 _ACEOF
14743 cat confdefs.h >>conftest.$ac_ext
14744 cat >>conftest.$ac_ext <<_ACEOF
14745 /* end confdefs.h. */
14747 /* Override any GCC internal prototype to avoid an error.
14748 Use char because int might match the return type of a GCC
14749 builtin and then its argument prototype would still apply. */
14750 #ifdef __cplusplus
14751 extern "C"
14752 #endif
14753 char fgetxattr ();
14755 main ()
14757 return fgetxattr ();
14759 return 0;
14761 _ACEOF
14762 rm -f conftest.$ac_objext conftest$ac_exeext
14763 if { (ac_try="$ac_link"
14764 case "(($ac_try" in
14765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14766 *) ac_try_echo=$ac_try;;
14767 esac
14768 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14769 $as_echo "$ac_try_echo") >&5
14770 (eval "$ac_link") 2>conftest.er1
14771 ac_status=$?
14772 grep -v '^ *+' conftest.er1 >conftest.err
14773 rm -f conftest.er1
14774 cat conftest.err >&5
14775 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14776 (exit $ac_status); } && {
14777 test -z "$ac_c_werror_flag" ||
14778 test ! -s conftest.err
14779 } && test -s conftest$ac_exeext && {
14780 test "$cross_compiling" = yes ||
14781 $as_test_x conftest$ac_exeext
14782 }; then
14783 ac_cv_lib_attr_fgetxattr=yes
14784 else
14785 $as_echo "$as_me: failed program was:" >&5
14786 sed 's/^/| /' conftest.$ac_ext >&5
14788 ac_cv_lib_attr_fgetxattr=no
14791 rm -rf conftest.dSYM
14792 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14793 conftest$ac_exeext conftest.$ac_ext
14794 LIBS=$ac_check_lib_save_LIBS
14796 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_attr_fgetxattr" >&5
14797 $as_echo "$ac_cv_lib_attr_fgetxattr" >&6; }
14798 if test "x$ac_cv_lib_attr_fgetxattr" = x""yes; then
14799 LIBS="$LIBS -lattr"
14807 { $as_echo "$as_me:$LINENO: checking for POSIX ACL support" >&5
14808 $as_echo_n "checking for POSIX ACL support... " >&6; }
14809 cat >conftest.$ac_ext <<_ACEOF
14810 /* confdefs.h. */
14811 _ACEOF
14812 cat confdefs.h >>conftest.$ac_ext
14813 cat >>conftest.$ac_ext <<_ACEOF
14814 /* end confdefs.h. */
14816 #include <sys/types.h>
14817 #ifdef HAVE_SYS_ACL_H
14818 # include <sys/acl.h>
14819 #endif
14820 acl_t acl;
14822 main ()
14824 acl = acl_get_file("foo", ACL_TYPE_ACCESS);
14825 acl_set_file("foo", ACL_TYPE_ACCESS, acl);
14826 acl_free(acl);
14828 return 0;
14830 _ACEOF
14831 rm -f conftest.$ac_objext conftest$ac_exeext
14832 if { (ac_try="$ac_link"
14833 case "(($ac_try" in
14834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14835 *) ac_try_echo=$ac_try;;
14836 esac
14837 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14838 $as_echo "$ac_try_echo") >&5
14839 (eval "$ac_link") 2>conftest.er1
14840 ac_status=$?
14841 grep -v '^ *+' conftest.er1 >conftest.err
14842 rm -f conftest.er1
14843 cat conftest.err >&5
14844 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14845 (exit $ac_status); } && {
14846 test -z "$ac_c_werror_flag" ||
14847 test ! -s conftest.err
14848 } && test -s conftest$ac_exeext && {
14849 test "$cross_compiling" = yes ||
14850 $as_test_x conftest$ac_exeext
14851 }; then
14852 { $as_echo "$as_me:$LINENO: result: yes" >&5
14853 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14854 #define HAVE_POSIX_ACL 1
14855 _ACEOF
14857 else
14858 $as_echo "$as_me: failed program was:" >&5
14859 sed 's/^/| /' conftest.$ac_ext >&5
14861 { $as_echo "$as_me:$LINENO: result: no" >&5
14862 $as_echo "no" >&6; }
14865 rm -rf conftest.dSYM
14866 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14867 conftest$ac_exeext conftest.$ac_ext
14869 { $as_echo "$as_me:$LINENO: checking for Solaris ACL support" >&5
14870 $as_echo_n "checking for Solaris ACL support... " >&6; }
14871 cat >conftest.$ac_ext <<_ACEOF
14872 /* confdefs.h. */
14873 _ACEOF
14874 cat confdefs.h >>conftest.$ac_ext
14875 cat >>conftest.$ac_ext <<_ACEOF
14876 /* end confdefs.h. */
14878 #ifdef HAVE_SYS_ACL_H
14879 # include <sys/acl.h>
14880 #endif
14882 main ()
14884 acl("foo", GETACLCNT, 0, NULL);
14887 return 0;
14889 _ACEOF
14890 rm -f conftest.$ac_objext conftest$ac_exeext
14891 if { (ac_try="$ac_link"
14892 case "(($ac_try" in
14893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14894 *) ac_try_echo=$ac_try;;
14895 esac
14896 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14897 $as_echo "$ac_try_echo") >&5
14898 (eval "$ac_link") 2>conftest.er1
14899 ac_status=$?
14900 grep -v '^ *+' conftest.er1 >conftest.err
14901 rm -f conftest.er1
14902 cat conftest.err >&5
14903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14904 (exit $ac_status); } && {
14905 test -z "$ac_c_werror_flag" ||
14906 test ! -s conftest.err
14907 } && test -s conftest$ac_exeext && {
14908 test "$cross_compiling" = yes ||
14909 $as_test_x conftest$ac_exeext
14910 }; then
14911 { $as_echo "$as_me:$LINENO: result: yes" >&5
14912 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14913 #define HAVE_SOLARIS_ACL 1
14914 _ACEOF
14916 else
14917 $as_echo "$as_me: failed program was:" >&5
14918 sed 's/^/| /' conftest.$ac_ext >&5
14920 { $as_echo "$as_me:$LINENO: result: no" >&5
14921 $as_echo "no" >&6; }
14924 rm -rf conftest.dSYM
14925 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14926 conftest$ac_exeext conftest.$ac_ext
14928 { $as_echo "$as_me:$LINENO: checking for AIX ACL support" >&5
14929 $as_echo_n "checking for AIX ACL support... " >&6; }
14930 cat >conftest.$ac_ext <<_ACEOF
14931 /* confdefs.h. */
14932 _ACEOF
14933 cat confdefs.h >>conftest.$ac_ext
14934 cat >>conftest.$ac_ext <<_ACEOF
14935 /* end confdefs.h. */
14937 #if STDC_HEADERS
14938 # include <stdlib.h>
14939 # include <stddef.h>
14940 #endif
14941 #ifdef HAVE_SYS_ACL_H
14942 # include <sys/acl.h>
14943 #endif
14944 #ifdef HAVE_SYS_ACCESS_H
14945 # include <sys/access.h>
14946 #endif
14947 #define _ALL_SOURCE
14949 #include <sys/stat.h>
14951 int aclsize;
14952 struct acl *aclent;
14954 main ()
14956 aclsize = sizeof(struct acl);
14957 aclent = (void *)malloc(aclsize);
14958 statacl("foo", STX_NORMAL, aclent, aclsize);
14961 return 0;
14963 _ACEOF
14964 rm -f conftest.$ac_objext conftest$ac_exeext
14965 if { (ac_try="$ac_link"
14966 case "(($ac_try" in
14967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14968 *) ac_try_echo=$ac_try;;
14969 esac
14970 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14971 $as_echo "$ac_try_echo") >&5
14972 (eval "$ac_link") 2>conftest.er1
14973 ac_status=$?
14974 grep -v '^ *+' conftest.er1 >conftest.err
14975 rm -f conftest.er1
14976 cat conftest.err >&5
14977 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14978 (exit $ac_status); } && {
14979 test -z "$ac_c_werror_flag" ||
14980 test ! -s conftest.err
14981 } && test -s conftest$ac_exeext && {
14982 test "$cross_compiling" = yes ||
14983 $as_test_x conftest$ac_exeext
14984 }; then
14985 { $as_echo "$as_me:$LINENO: result: yes" >&5
14986 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14987 #define HAVE_AIX_ACL 1
14988 _ACEOF
14990 else
14991 $as_echo "$as_me: failed program was:" >&5
14992 sed 's/^/| /' conftest.$ac_ext >&5
14994 { $as_echo "$as_me:$LINENO: result: no" >&5
14995 $as_echo "no" >&6; }
14998 rm -rf conftest.dSYM
14999 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15000 conftest$ac_exeext conftest.$ac_ext
15001 else
15002 { $as_echo "$as_me:$LINENO: result: yes" >&5
15003 $as_echo "yes" >&6; }
15006 { $as_echo "$as_me:$LINENO: checking --disable-gpm argument" >&5
15007 $as_echo_n "checking --disable-gpm argument... " >&6; }
15008 # Check whether --enable-gpm was given.
15009 if test "${enable_gpm+set}" = set; then
15010 enableval=$enable_gpm;
15011 else
15012 enable_gpm="yes"
15016 if test "$enable_gpm" = "yes"; then
15017 { $as_echo "$as_me:$LINENO: result: no" >&5
15018 $as_echo "no" >&6; }
15019 { $as_echo "$as_me:$LINENO: checking for gpm" >&5
15020 $as_echo_n "checking for gpm... " >&6; }
15021 if test "${vi_cv_have_gpm+set}" = set; then
15022 $as_echo_n "(cached) " >&6
15023 else
15024 olibs="$LIBS" ; LIBS="-lgpm"
15025 cat >conftest.$ac_ext <<_ACEOF
15026 /* confdefs.h. */
15027 _ACEOF
15028 cat confdefs.h >>conftest.$ac_ext
15029 cat >>conftest.$ac_ext <<_ACEOF
15030 /* end confdefs.h. */
15031 #include <gpm.h>
15032 #include <linux/keyboard.h>
15034 main ()
15036 Gpm_GetLibVersion(NULL);
15038 return 0;
15040 _ACEOF
15041 rm -f conftest.$ac_objext conftest$ac_exeext
15042 if { (ac_try="$ac_link"
15043 case "(($ac_try" in
15044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15045 *) ac_try_echo=$ac_try;;
15046 esac
15047 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15048 $as_echo "$ac_try_echo") >&5
15049 (eval "$ac_link") 2>conftest.er1
15050 ac_status=$?
15051 grep -v '^ *+' conftest.er1 >conftest.err
15052 rm -f conftest.er1
15053 cat conftest.err >&5
15054 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15055 (exit $ac_status); } && {
15056 test -z "$ac_c_werror_flag" ||
15057 test ! -s conftest.err
15058 } && test -s conftest$ac_exeext && {
15059 test "$cross_compiling" = yes ||
15060 $as_test_x conftest$ac_exeext
15061 }; then
15062 vi_cv_have_gpm=yes
15063 else
15064 $as_echo "$as_me: failed program was:" >&5
15065 sed 's/^/| /' conftest.$ac_ext >&5
15067 vi_cv_have_gpm=no
15070 rm -rf conftest.dSYM
15071 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15072 conftest$ac_exeext conftest.$ac_ext
15073 LIBS="$olibs"
15076 { $as_echo "$as_me:$LINENO: result: $vi_cv_have_gpm" >&5
15077 $as_echo "$vi_cv_have_gpm" >&6; }
15078 if test $vi_cv_have_gpm = yes; then
15079 LIBS="$LIBS -lgpm"
15080 cat >>confdefs.h <<\_ACEOF
15081 #define HAVE_GPM 1
15082 _ACEOF
15085 else
15086 { $as_echo "$as_me:$LINENO: result: yes" >&5
15087 $as_echo "yes" >&6; }
15090 { $as_echo "$as_me:$LINENO: checking --disable-sysmouse argument" >&5
15091 $as_echo_n "checking --disable-sysmouse argument... " >&6; }
15092 # Check whether --enable-sysmouse was given.
15093 if test "${enable_sysmouse+set}" = set; then
15094 enableval=$enable_sysmouse;
15095 else
15096 enable_sysmouse="yes"
15100 if test "$enable_sysmouse" = "yes"; then
15101 { $as_echo "$as_me:$LINENO: result: no" >&5
15102 $as_echo "no" >&6; }
15103 { $as_echo "$as_me:$LINENO: checking for sysmouse" >&5
15104 $as_echo_n "checking for sysmouse... " >&6; }
15105 if test "${vi_cv_have_sysmouse+set}" = set; then
15106 $as_echo_n "(cached) " >&6
15107 else
15108 cat >conftest.$ac_ext <<_ACEOF
15109 /* confdefs.h. */
15110 _ACEOF
15111 cat confdefs.h >>conftest.$ac_ext
15112 cat >>conftest.$ac_ext <<_ACEOF
15113 /* end confdefs.h. */
15114 #include <sys/consio.h>
15115 #include <signal.h>
15116 #include <sys/fbio.h>
15118 main ()
15120 struct mouse_info mouse;
15121 mouse.operation = MOUSE_MODE;
15122 mouse.operation = MOUSE_SHOW;
15123 mouse.u.mode.mode = 0;
15124 mouse.u.mode.signal = SIGUSR2;
15126 return 0;
15128 _ACEOF
15129 rm -f conftest.$ac_objext conftest$ac_exeext
15130 if { (ac_try="$ac_link"
15131 case "(($ac_try" in
15132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15133 *) ac_try_echo=$ac_try;;
15134 esac
15135 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15136 $as_echo "$ac_try_echo") >&5
15137 (eval "$ac_link") 2>conftest.er1
15138 ac_status=$?
15139 grep -v '^ *+' conftest.er1 >conftest.err
15140 rm -f conftest.er1
15141 cat conftest.err >&5
15142 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15143 (exit $ac_status); } && {
15144 test -z "$ac_c_werror_flag" ||
15145 test ! -s conftest.err
15146 } && test -s conftest$ac_exeext && {
15147 test "$cross_compiling" = yes ||
15148 $as_test_x conftest$ac_exeext
15149 }; then
15150 vi_cv_have_sysmouse=yes
15151 else
15152 $as_echo "$as_me: failed program was:" >&5
15153 sed 's/^/| /' conftest.$ac_ext >&5
15155 vi_cv_have_sysmouse=no
15158 rm -rf conftest.dSYM
15159 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15160 conftest$ac_exeext conftest.$ac_ext
15163 { $as_echo "$as_me:$LINENO: result: $vi_cv_have_sysmouse" >&5
15164 $as_echo "$vi_cv_have_sysmouse" >&6; }
15165 if test $vi_cv_have_sysmouse = yes; then
15166 cat >>confdefs.h <<\_ACEOF
15167 #define HAVE_SYSMOUSE 1
15168 _ACEOF
15171 else
15172 { $as_echo "$as_me:$LINENO: result: yes" >&5
15173 $as_echo "yes" >&6; }
15176 { $as_echo "$as_me:$LINENO: checking for rename" >&5
15177 $as_echo_n "checking for rename... " >&6; }
15178 cat >conftest.$ac_ext <<_ACEOF
15179 /* confdefs.h. */
15180 _ACEOF
15181 cat confdefs.h >>conftest.$ac_ext
15182 cat >>conftest.$ac_ext <<_ACEOF
15183 /* end confdefs.h. */
15184 #include <stdio.h>
15186 main ()
15188 rename("this", "that")
15190 return 0;
15192 _ACEOF
15193 rm -f conftest.$ac_objext conftest$ac_exeext
15194 if { (ac_try="$ac_link"
15195 case "(($ac_try" in
15196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15197 *) ac_try_echo=$ac_try;;
15198 esac
15199 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15200 $as_echo "$ac_try_echo") >&5
15201 (eval "$ac_link") 2>conftest.er1
15202 ac_status=$?
15203 grep -v '^ *+' conftest.er1 >conftest.err
15204 rm -f conftest.er1
15205 cat conftest.err >&5
15206 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15207 (exit $ac_status); } && {
15208 test -z "$ac_c_werror_flag" ||
15209 test ! -s conftest.err
15210 } && test -s conftest$ac_exeext && {
15211 test "$cross_compiling" = yes ||
15212 $as_test_x conftest$ac_exeext
15213 }; then
15214 { $as_echo "$as_me:$LINENO: result: yes" >&5
15215 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15216 #define HAVE_RENAME 1
15217 _ACEOF
15219 else
15220 $as_echo "$as_me: failed program was:" >&5
15221 sed 's/^/| /' conftest.$ac_ext >&5
15223 { $as_echo "$as_me:$LINENO: result: no" >&5
15224 $as_echo "no" >&6; }
15227 rm -rf conftest.dSYM
15228 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15229 conftest$ac_exeext conftest.$ac_ext
15231 { $as_echo "$as_me:$LINENO: checking for sysctl" >&5
15232 $as_echo_n "checking for sysctl... " >&6; }
15233 cat >conftest.$ac_ext <<_ACEOF
15234 /* confdefs.h. */
15235 _ACEOF
15236 cat confdefs.h >>conftest.$ac_ext
15237 cat >>conftest.$ac_ext <<_ACEOF
15238 /* end confdefs.h. */
15239 #include <sys/types.h>
15240 #include <sys/sysctl.h>
15242 main ()
15244 int mib[2], r;
15245 size_t len;
15247 mib[0] = CTL_HW;
15248 mib[1] = HW_USERMEM;
15249 len = sizeof(r);
15250 (void)sysctl(mib, 2, &r, &len, (void *)0, (size_t)0);
15253 return 0;
15255 _ACEOF
15256 rm -f conftest.$ac_objext
15257 if { (ac_try="$ac_compile"
15258 case "(($ac_try" in
15259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15260 *) ac_try_echo=$ac_try;;
15261 esac
15262 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15263 $as_echo "$ac_try_echo") >&5
15264 (eval "$ac_compile") 2>conftest.er1
15265 ac_status=$?
15266 grep -v '^ *+' conftest.er1 >conftest.err
15267 rm -f conftest.er1
15268 cat conftest.err >&5
15269 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15270 (exit $ac_status); } && {
15271 test -z "$ac_c_werror_flag" ||
15272 test ! -s conftest.err
15273 } && test -s conftest.$ac_objext; then
15274 { $as_echo "$as_me:$LINENO: result: yes" >&5
15275 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15276 #define HAVE_SYSCTL 1
15277 _ACEOF
15279 else
15280 $as_echo "$as_me: failed program was:" >&5
15281 sed 's/^/| /' conftest.$ac_ext >&5
15283 { $as_echo "$as_me:$LINENO: result: not usable" >&5
15284 $as_echo "not usable" >&6; }
15287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15289 { $as_echo "$as_me:$LINENO: checking for sysinfo" >&5
15290 $as_echo_n "checking for sysinfo... " >&6; }
15291 cat >conftest.$ac_ext <<_ACEOF
15292 /* confdefs.h. */
15293 _ACEOF
15294 cat confdefs.h >>conftest.$ac_ext
15295 cat >>conftest.$ac_ext <<_ACEOF
15296 /* end confdefs.h. */
15297 #include <sys/types.h>
15298 #include <sys/sysinfo.h>
15300 main ()
15302 struct sysinfo sinfo;
15303 int t;
15305 (void)sysinfo(&sinfo);
15306 t = sinfo.totalram;
15309 return 0;
15311 _ACEOF
15312 rm -f conftest.$ac_objext
15313 if { (ac_try="$ac_compile"
15314 case "(($ac_try" in
15315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15316 *) ac_try_echo=$ac_try;;
15317 esac
15318 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15319 $as_echo "$ac_try_echo") >&5
15320 (eval "$ac_compile") 2>conftest.er1
15321 ac_status=$?
15322 grep -v '^ *+' conftest.er1 >conftest.err
15323 rm -f conftest.er1
15324 cat conftest.err >&5
15325 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15326 (exit $ac_status); } && {
15327 test -z "$ac_c_werror_flag" ||
15328 test ! -s conftest.err
15329 } && test -s conftest.$ac_objext; then
15330 { $as_echo "$as_me:$LINENO: result: yes" >&5
15331 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15332 #define HAVE_SYSINFO 1
15333 _ACEOF
15335 else
15336 $as_echo "$as_me: failed program was:" >&5
15337 sed 's/^/| /' conftest.$ac_ext >&5
15339 { $as_echo "$as_me:$LINENO: result: not usable" >&5
15340 $as_echo "not usable" >&6; }
15343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15345 { $as_echo "$as_me:$LINENO: checking for sysinfo.mem_unit" >&5
15346 $as_echo_n "checking for sysinfo.mem_unit... " >&6; }
15347 cat >conftest.$ac_ext <<_ACEOF
15348 /* confdefs.h. */
15349 _ACEOF
15350 cat confdefs.h >>conftest.$ac_ext
15351 cat >>conftest.$ac_ext <<_ACEOF
15352 /* end confdefs.h. */
15353 #include <sys/types.h>
15354 #include <sys/sysinfo.h>
15356 main ()
15358 struct sysinfo sinfo;
15359 sinfo.mem_unit = 1;
15362 return 0;
15364 _ACEOF
15365 rm -f conftest.$ac_objext
15366 if { (ac_try="$ac_compile"
15367 case "(($ac_try" in
15368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15369 *) ac_try_echo=$ac_try;;
15370 esac
15371 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15372 $as_echo "$ac_try_echo") >&5
15373 (eval "$ac_compile") 2>conftest.er1
15374 ac_status=$?
15375 grep -v '^ *+' conftest.er1 >conftest.err
15376 rm -f conftest.er1
15377 cat conftest.err >&5
15378 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15379 (exit $ac_status); } && {
15380 test -z "$ac_c_werror_flag" ||
15381 test ! -s conftest.err
15382 } && test -s conftest.$ac_objext; then
15383 { $as_echo "$as_me:$LINENO: result: yes" >&5
15384 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15385 #define HAVE_SYSINFO_MEM_UNIT 1
15386 _ACEOF
15388 else
15389 $as_echo "$as_me: failed program was:" >&5
15390 sed 's/^/| /' conftest.$ac_ext >&5
15392 { $as_echo "$as_me:$LINENO: result: no" >&5
15393 $as_echo "no" >&6; }
15396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15398 { $as_echo "$as_me:$LINENO: checking for sysconf" >&5
15399 $as_echo_n "checking for sysconf... " >&6; }
15400 cat >conftest.$ac_ext <<_ACEOF
15401 /* confdefs.h. */
15402 _ACEOF
15403 cat confdefs.h >>conftest.$ac_ext
15404 cat >>conftest.$ac_ext <<_ACEOF
15405 /* end confdefs.h. */
15406 #include <unistd.h>
15408 main ()
15410 (void)sysconf(_SC_PAGESIZE);
15411 (void)sysconf(_SC_PHYS_PAGES);
15414 return 0;
15416 _ACEOF
15417 rm -f conftest.$ac_objext
15418 if { (ac_try="$ac_compile"
15419 case "(($ac_try" in
15420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15421 *) ac_try_echo=$ac_try;;
15422 esac
15423 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15424 $as_echo "$ac_try_echo") >&5
15425 (eval "$ac_compile") 2>conftest.er1
15426 ac_status=$?
15427 grep -v '^ *+' conftest.er1 >conftest.err
15428 rm -f conftest.er1
15429 cat conftest.err >&5
15430 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15431 (exit $ac_status); } && {
15432 test -z "$ac_c_werror_flag" ||
15433 test ! -s conftest.err
15434 } && test -s conftest.$ac_objext; then
15435 { $as_echo "$as_me:$LINENO: result: yes" >&5
15436 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15437 #define HAVE_SYSCONF 1
15438 _ACEOF
15440 else
15441 $as_echo "$as_me: failed program was:" >&5
15442 sed 's/^/| /' conftest.$ac_ext >&5
15444 { $as_echo "$as_me:$LINENO: result: not usable" >&5
15445 $as_echo "not usable" >&6; }
15448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15451 { $as_echo "$as_me:$LINENO: checking size of int" >&5
15452 $as_echo_n "checking size of int... " >&6; }
15453 if test "${ac_cv_sizeof_int+set}" = set; then
15454 $as_echo_n "(cached) " >&6
15455 else
15456 if test "$cross_compiling" = yes; then
15457 { { $as_echo "$as_me:$LINENO: error: failed to compile test program" >&5
15458 $as_echo "$as_me: error: failed to compile test program" >&2;}
15459 { (exit 1); exit 1; }; }
15460 else
15461 cat >conftest.$ac_ext <<_ACEOF
15462 /* confdefs.h. */
15463 _ACEOF
15464 cat confdefs.h >>conftest.$ac_ext
15465 cat >>conftest.$ac_ext <<_ACEOF
15466 /* end confdefs.h. */
15468 #include <stdio.h>
15469 #if STDC_HEADERS
15470 # include <stdlib.h>
15471 # include <stddef.h>
15472 #endif
15473 main()
15475 FILE *f=fopen("conftestval", "w");
15476 if (!f) exit(1);
15477 fprintf(f, "%d\n", (int)sizeof(int));
15478 exit(0);
15480 _ACEOF
15481 rm -f conftest$ac_exeext
15482 if { (ac_try="$ac_link"
15483 case "(($ac_try" in
15484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15485 *) ac_try_echo=$ac_try;;
15486 esac
15487 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15488 $as_echo "$ac_try_echo") >&5
15489 (eval "$ac_link") 2>&5
15490 ac_status=$?
15491 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15492 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15493 { (case "(($ac_try" in
15494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15495 *) ac_try_echo=$ac_try;;
15496 esac
15497 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15498 $as_echo "$ac_try_echo") >&5
15499 (eval "$ac_try") 2>&5
15500 ac_status=$?
15501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15502 (exit $ac_status); }; }; then
15503 ac_cv_sizeof_int=`cat conftestval`
15504 else
15505 $as_echo "$as_me: program exited with status $ac_status" >&5
15506 $as_echo "$as_me: failed program was:" >&5
15507 sed 's/^/| /' conftest.$ac_ext >&5
15509 ( exit $ac_status )
15510 ac_cv_sizeof_int=0
15512 rm -rf conftest.dSYM
15513 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15519 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15520 $as_echo "$ac_cv_sizeof_int" >&6; }
15521 cat >>confdefs.h <<_ACEOF
15522 #define SIZEOF_INT $ac_cv_sizeof_int
15523 _ACEOF
15527 bcopy_test_prog='
15528 #include "confdefs.h"
15529 #ifdef HAVE_STRING_H
15530 # include <string.h>
15531 #endif
15532 #if STDC_HEADERS
15533 # include <stdlib.h>
15534 # include <stddef.h>
15535 #endif
15536 main() {
15537 char buf[10];
15538 strcpy(buf, "abcdefghi");
15539 mch_memmove(buf, buf + 2, 3);
15540 if (strncmp(buf, "ababcf", 6))
15541 exit(1);
15542 strcpy(buf, "abcdefghi");
15543 mch_memmove(buf + 2, buf, 3);
15544 if (strncmp(buf, "cdedef", 6))
15545 exit(1);
15546 exit(0); /* libc version works properly. */
15549 { $as_echo "$as_me:$LINENO: checking whether memmove handles overlaps" >&5
15550 $as_echo_n "checking whether memmove handles overlaps... " >&6; }
15551 if test "${vim_cv_memmove_handles_overlap+set}" = set; then
15552 $as_echo_n "(cached) " >&6
15553 else
15555 if test "$cross_compiling" = yes; then
15557 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_memmove_handles_overlap'" >&5
15558 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_memmove_handles_overlap'" >&2;}
15559 { (exit 1); exit 1; }; }
15561 else
15562 cat >conftest.$ac_ext <<_ACEOF
15563 #define mch_memmove(s,d,l) memmove(d,s,l) $bcopy_test_prog
15564 _ACEOF
15565 rm -f conftest$ac_exeext
15566 if { (ac_try="$ac_link"
15567 case "(($ac_try" in
15568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15569 *) ac_try_echo=$ac_try;;
15570 esac
15571 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15572 $as_echo "$ac_try_echo") >&5
15573 (eval "$ac_link") 2>&5
15574 ac_status=$?
15575 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15576 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15577 { (case "(($ac_try" in
15578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15579 *) ac_try_echo=$ac_try;;
15580 esac
15581 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15582 $as_echo "$ac_try_echo") >&5
15583 (eval "$ac_try") 2>&5
15584 ac_status=$?
15585 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15586 (exit $ac_status); }; }; then
15588 vim_cv_memmove_handles_overlap=yes
15590 else
15591 $as_echo "$as_me: program exited with status $ac_status" >&5
15592 $as_echo "$as_me: failed program was:" >&5
15593 sed 's/^/| /' conftest.$ac_ext >&5
15595 ( exit $ac_status )
15597 vim_cv_memmove_handles_overlap=no
15600 rm -rf conftest.dSYM
15601 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15607 { $as_echo "$as_me:$LINENO: result: $vim_cv_memmove_handles_overlap" >&5
15608 $as_echo "$vim_cv_memmove_handles_overlap" >&6; }
15610 if test "x$vim_cv_memmove_handles_overlap" = "xyes" ; then
15611 cat >>confdefs.h <<\_ACEOF
15612 #define USEMEMMOVE 1
15613 _ACEOF
15615 else
15616 { $as_echo "$as_me:$LINENO: checking whether bcopy handles overlaps" >&5
15617 $as_echo_n "checking whether bcopy handles overlaps... " >&6; }
15618 if test "${vim_cv_bcopy_handles_overlap+set}" = set; then
15619 $as_echo_n "(cached) " >&6
15620 else
15622 if test "$cross_compiling" = yes; then
15624 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_bcopy_handles_overlap'" >&5
15625 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_bcopy_handles_overlap'" >&2;}
15626 { (exit 1); exit 1; }; }
15628 else
15629 cat >conftest.$ac_ext <<_ACEOF
15630 #define mch_bcopy(s,d,l) bcopy(d,s,l) $bcopy_test_prog
15631 _ACEOF
15632 rm -f conftest$ac_exeext
15633 if { (ac_try="$ac_link"
15634 case "(($ac_try" in
15635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15636 *) ac_try_echo=$ac_try;;
15637 esac
15638 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15639 $as_echo "$ac_try_echo") >&5
15640 (eval "$ac_link") 2>&5
15641 ac_status=$?
15642 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15643 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15644 { (case "(($ac_try" in
15645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15646 *) ac_try_echo=$ac_try;;
15647 esac
15648 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15649 $as_echo "$ac_try_echo") >&5
15650 (eval "$ac_try") 2>&5
15651 ac_status=$?
15652 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15653 (exit $ac_status); }; }; then
15655 vim_cv_bcopy_handles_overlap=yes
15657 else
15658 $as_echo "$as_me: program exited with status $ac_status" >&5
15659 $as_echo "$as_me: failed program was:" >&5
15660 sed 's/^/| /' conftest.$ac_ext >&5
15662 ( exit $ac_status )
15664 vim_cv_bcopy_handles_overlap=no
15667 rm -rf conftest.dSYM
15668 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15674 { $as_echo "$as_me:$LINENO: result: $vim_cv_bcopy_handles_overlap" >&5
15675 $as_echo "$vim_cv_bcopy_handles_overlap" >&6; }
15677 if test "x$vim_cv_bcopy_handles_overlap" = "xyes" ; then
15678 cat >>confdefs.h <<\_ACEOF
15679 #define USEBCOPY 1
15680 _ACEOF
15682 else
15683 { $as_echo "$as_me:$LINENO: checking whether memcpy handles overlaps" >&5
15684 $as_echo_n "checking whether memcpy handles overlaps... " >&6; }
15685 if test "${vim_cv_memcpy_handles_overlap+set}" = set; then
15686 $as_echo_n "(cached) " >&6
15687 else
15689 if test "$cross_compiling" = yes; then
15691 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_memcpy_handles_overlap'" >&5
15692 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_memcpy_handles_overlap'" >&2;}
15693 { (exit 1); exit 1; }; }
15695 else
15696 cat >conftest.$ac_ext <<_ACEOF
15697 #define mch_memcpy(s,d,l) memcpy(d,s,l) $bcopy_test_prog
15698 _ACEOF
15699 rm -f conftest$ac_exeext
15700 if { (ac_try="$ac_link"
15701 case "(($ac_try" in
15702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15703 *) ac_try_echo=$ac_try;;
15704 esac
15705 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15706 $as_echo "$ac_try_echo") >&5
15707 (eval "$ac_link") 2>&5
15708 ac_status=$?
15709 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15710 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15711 { (case "(($ac_try" in
15712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15713 *) ac_try_echo=$ac_try;;
15714 esac
15715 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15716 $as_echo "$ac_try_echo") >&5
15717 (eval "$ac_try") 2>&5
15718 ac_status=$?
15719 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15720 (exit $ac_status); }; }; then
15722 vim_cv_memcpy_handles_overlap=yes
15724 else
15725 $as_echo "$as_me: program exited with status $ac_status" >&5
15726 $as_echo "$as_me: failed program was:" >&5
15727 sed 's/^/| /' conftest.$ac_ext >&5
15729 ( exit $ac_status )
15731 vim_cv_memcpy_handles_overlap=no
15734 rm -rf conftest.dSYM
15735 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15741 { $as_echo "$as_me:$LINENO: result: $vim_cv_memcpy_handles_overlap" >&5
15742 $as_echo "$vim_cv_memcpy_handles_overlap" >&6; }
15744 if test "x$vim_cv_memcpy_handles_overlap" = "xyes" ; then
15745 cat >>confdefs.h <<\_ACEOF
15746 #define USEMEMCPY 1
15747 _ACEOF
15755 if test "$enable_multibyte" = "yes"; then
15756 cflags_save=$CFLAGS
15757 ldflags_save=$LDFLAGS
15758 if test "x$x_includes" != "xNONE" ; then
15759 CFLAGS="$CFLAGS -I$x_includes"
15760 LDFLAGS="$X_LIBS $LDFLAGS -lX11"
15761 { $as_echo "$as_me:$LINENO: checking whether X_LOCALE needed" >&5
15762 $as_echo_n "checking whether X_LOCALE needed... " >&6; }
15763 cat >conftest.$ac_ext <<_ACEOF
15764 /* confdefs.h. */
15765 _ACEOF
15766 cat confdefs.h >>conftest.$ac_ext
15767 cat >>conftest.$ac_ext <<_ACEOF
15768 /* end confdefs.h. */
15769 #include <X11/Xlocale.h>
15771 main ()
15775 return 0;
15777 _ACEOF
15778 rm -f conftest.$ac_objext
15779 if { (ac_try="$ac_compile"
15780 case "(($ac_try" in
15781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15782 *) ac_try_echo=$ac_try;;
15783 esac
15784 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15785 $as_echo "$ac_try_echo") >&5
15786 (eval "$ac_compile") 2>conftest.er1
15787 ac_status=$?
15788 grep -v '^ *+' conftest.er1 >conftest.err
15789 rm -f conftest.er1
15790 cat conftest.err >&5
15791 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15792 (exit $ac_status); } && {
15793 test -z "$ac_c_werror_flag" ||
15794 test ! -s conftest.err
15795 } && test -s conftest.$ac_objext; then
15796 cat >conftest.$ac_ext <<_ACEOF
15797 /* confdefs.h. */
15798 _ACEOF
15799 cat confdefs.h >>conftest.$ac_ext
15800 cat >>conftest.$ac_ext <<_ACEOF
15801 /* end confdefs.h. */
15803 /* Override any GCC internal prototype to avoid an error.
15804 Use char because int might match the return type of a GCC
15805 builtin and then its argument prototype would still apply. */
15806 #ifdef __cplusplus
15807 extern "C"
15808 #endif
15809 char _Xsetlocale ();
15811 main ()
15813 return _Xsetlocale ();
15815 return 0;
15817 _ACEOF
15818 rm -f conftest.$ac_objext conftest$ac_exeext
15819 if { (ac_try="$ac_link"
15820 case "(($ac_try" in
15821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15822 *) ac_try_echo=$ac_try;;
15823 esac
15824 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15825 $as_echo "$ac_try_echo") >&5
15826 (eval "$ac_link") 2>conftest.er1
15827 ac_status=$?
15828 grep -v '^ *+' conftest.er1 >conftest.err
15829 rm -f conftest.er1
15830 cat conftest.err >&5
15831 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15832 (exit $ac_status); } && {
15833 test -z "$ac_c_werror_flag" ||
15834 test ! -s conftest.err
15835 } && test -s conftest$ac_exeext && {
15836 test "$cross_compiling" = yes ||
15837 $as_test_x conftest$ac_exeext
15838 }; then
15839 { $as_echo "$as_me:$LINENO: result: yes" >&5
15840 $as_echo "yes" >&6; }
15841 cat >>confdefs.h <<\_ACEOF
15842 #define X_LOCALE 1
15843 _ACEOF
15845 else
15846 $as_echo "$as_me: failed program was:" >&5
15847 sed 's/^/| /' conftest.$ac_ext >&5
15849 { $as_echo "$as_me:$LINENO: result: no" >&5
15850 $as_echo "no" >&6; }
15853 rm -rf conftest.dSYM
15854 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15855 conftest$ac_exeext conftest.$ac_ext
15856 else
15857 $as_echo "$as_me: failed program was:" >&5
15858 sed 's/^/| /' conftest.$ac_ext >&5
15860 { $as_echo "$as_me:$LINENO: result: no" >&5
15861 $as_echo "no" >&6; }
15864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15866 CFLAGS=$cflags_save
15867 LDFLAGS=$ldflags_save
15870 { $as_echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
15871 $as_echo_n "checking for _xpg4_setrunelocale in -lxpg4... " >&6; }
15872 if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
15873 $as_echo_n "(cached) " >&6
15874 else
15875 ac_check_lib_save_LIBS=$LIBS
15876 LIBS="-lxpg4 $LIBS"
15877 cat >conftest.$ac_ext <<_ACEOF
15878 /* confdefs.h. */
15879 _ACEOF
15880 cat confdefs.h >>conftest.$ac_ext
15881 cat >>conftest.$ac_ext <<_ACEOF
15882 /* end confdefs.h. */
15884 /* Override any GCC internal prototype to avoid an error.
15885 Use char because int might match the return type of a GCC
15886 builtin and then its argument prototype would still apply. */
15887 #ifdef __cplusplus
15888 extern "C"
15889 #endif
15890 char _xpg4_setrunelocale ();
15892 main ()
15894 return _xpg4_setrunelocale ();
15896 return 0;
15898 _ACEOF
15899 rm -f conftest.$ac_objext conftest$ac_exeext
15900 if { (ac_try="$ac_link"
15901 case "(($ac_try" in
15902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15903 *) ac_try_echo=$ac_try;;
15904 esac
15905 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15906 $as_echo "$ac_try_echo") >&5
15907 (eval "$ac_link") 2>conftest.er1
15908 ac_status=$?
15909 grep -v '^ *+' conftest.er1 >conftest.err
15910 rm -f conftest.er1
15911 cat conftest.err >&5
15912 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15913 (exit $ac_status); } && {
15914 test -z "$ac_c_werror_flag" ||
15915 test ! -s conftest.err
15916 } && test -s conftest$ac_exeext && {
15917 test "$cross_compiling" = yes ||
15918 $as_test_x conftest$ac_exeext
15919 }; then
15920 ac_cv_lib_xpg4__xpg4_setrunelocale=yes
15921 else
15922 $as_echo "$as_me: failed program was:" >&5
15923 sed 's/^/| /' conftest.$ac_ext >&5
15925 ac_cv_lib_xpg4__xpg4_setrunelocale=no
15928 rm -rf conftest.dSYM
15929 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15930 conftest$ac_exeext conftest.$ac_ext
15931 LIBS=$ac_check_lib_save_LIBS
15933 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
15934 $as_echo "$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6; }
15935 if test "x$ac_cv_lib_xpg4__xpg4_setrunelocale" = x""yes; then
15936 LIBS="$LIBS -lxpg4"
15940 { $as_echo "$as_me:$LINENO: checking how to create tags" >&5
15941 $as_echo_n "checking how to create tags... " >&6; }
15942 test -f tags && mv tags tags.save
15943 if (eval ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then
15944 TAGPRG="ctags -I INIT+ --fields=+S"
15945 else
15946 TAGPRG="ctags"
15947 (eval etags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags"
15948 (eval etags -c /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags -c"
15949 (eval ctags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags"
15950 (eval ctags -t /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -t"
15951 (eval ctags -ts /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -ts"
15952 (eval ctags -tvs /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -tvs"
15953 (eval ctags -i+m /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -i+m"
15955 test -f tags.save && mv tags.save tags
15956 { $as_echo "$as_me:$LINENO: result: $TAGPRG" >&5
15957 $as_echo "$TAGPRG" >&6; }
15959 { $as_echo "$as_me:$LINENO: checking how to run man with a section nr" >&5
15960 $as_echo_n "checking how to run man with a section nr... " >&6; }
15961 MANDEF="man"
15962 (eval MANPAGER=cat PAGER=cat man -s 2 read) < /dev/null > /dev/null 2>&5 && MANDEF="man -s"
15963 { $as_echo "$as_me:$LINENO: result: $MANDEF" >&5
15964 $as_echo "$MANDEF" >&6; }
15965 if test "$MANDEF" = "man -s"; then
15966 cat >>confdefs.h <<\_ACEOF
15967 #define USEMAN_S 1
15968 _ACEOF
15972 { $as_echo "$as_me:$LINENO: checking --disable-nls argument" >&5
15973 $as_echo_n "checking --disable-nls argument... " >&6; }
15974 # Check whether --enable-nls was given.
15975 if test "${enable_nls+set}" = set; then
15976 enableval=$enable_nls;
15977 else
15978 enable_nls="yes"
15982 if test "$enable_nls" = "yes"; then
15983 { $as_echo "$as_me:$LINENO: result: no" >&5
15984 $as_echo "no" >&6; }
15986 INSTALL_LANGS=install-languages
15988 INSTALL_TOOL_LANGS=install-tool-languages
15991 # Extract the first word of "msgfmt", so it can be a program name with args.
15992 set dummy msgfmt; ac_word=$2
15993 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
15994 $as_echo_n "checking for $ac_word... " >&6; }
15995 if test "${ac_cv_prog_MSGFMT+set}" = set; then
15996 $as_echo_n "(cached) " >&6
15997 else
15998 if test -n "$MSGFMT"; then
15999 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
16000 else
16001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16002 for as_dir in $PATH
16004 IFS=$as_save_IFS
16005 test -z "$as_dir" && as_dir=.
16006 for ac_exec_ext in '' $ac_executable_extensions; do
16007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16008 ac_cv_prog_MSGFMT="msgfmt"
16009 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16010 break 2
16012 done
16013 done
16014 IFS=$as_save_IFS
16018 MSGFMT=$ac_cv_prog_MSGFMT
16019 if test -n "$MSGFMT"; then
16020 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
16021 $as_echo "$MSGFMT" >&6; }
16022 else
16023 { $as_echo "$as_me:$LINENO: result: no" >&5
16024 $as_echo "no" >&6; }
16028 { $as_echo "$as_me:$LINENO: checking for NLS" >&5
16029 $as_echo_n "checking for NLS... " >&6; }
16030 if test -f po/Makefile; then
16031 have_gettext="no"
16032 if test -n "$MSGFMT"; then
16033 cat >conftest.$ac_ext <<_ACEOF
16034 /* confdefs.h. */
16035 _ACEOF
16036 cat confdefs.h >>conftest.$ac_ext
16037 cat >>conftest.$ac_ext <<_ACEOF
16038 /* end confdefs.h. */
16039 #include <libintl.h>
16041 main ()
16043 gettext("Test");
16045 return 0;
16047 _ACEOF
16048 rm -f conftest.$ac_objext conftest$ac_exeext
16049 if { (ac_try="$ac_link"
16050 case "(($ac_try" in
16051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16052 *) ac_try_echo=$ac_try;;
16053 esac
16054 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16055 $as_echo "$ac_try_echo") >&5
16056 (eval "$ac_link") 2>conftest.er1
16057 ac_status=$?
16058 grep -v '^ *+' conftest.er1 >conftest.err
16059 rm -f conftest.er1
16060 cat conftest.err >&5
16061 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16062 (exit $ac_status); } && {
16063 test -z "$ac_c_werror_flag" ||
16064 test ! -s conftest.err
16065 } && test -s conftest$ac_exeext && {
16066 test "$cross_compiling" = yes ||
16067 $as_test_x conftest$ac_exeext
16068 }; then
16069 { $as_echo "$as_me:$LINENO: result: gettext() works" >&5
16070 $as_echo "gettext() works" >&6; }; have_gettext="yes"
16071 else
16072 $as_echo "$as_me: failed program was:" >&5
16073 sed 's/^/| /' conftest.$ac_ext >&5
16075 olibs=$LIBS
16076 LIBS="$LIBS -lintl"
16077 cat >conftest.$ac_ext <<_ACEOF
16078 /* confdefs.h. */
16079 _ACEOF
16080 cat confdefs.h >>conftest.$ac_ext
16081 cat >>conftest.$ac_ext <<_ACEOF
16082 /* end confdefs.h. */
16083 #include <libintl.h>
16085 main ()
16087 gettext("Test");
16089 return 0;
16091 _ACEOF
16092 rm -f conftest.$ac_objext conftest$ac_exeext
16093 if { (ac_try="$ac_link"
16094 case "(($ac_try" in
16095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16096 *) ac_try_echo=$ac_try;;
16097 esac
16098 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16099 $as_echo "$ac_try_echo") >&5
16100 (eval "$ac_link") 2>conftest.er1
16101 ac_status=$?
16102 grep -v '^ *+' conftest.er1 >conftest.err
16103 rm -f conftest.er1
16104 cat conftest.err >&5
16105 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16106 (exit $ac_status); } && {
16107 test -z "$ac_c_werror_flag" ||
16108 test ! -s conftest.err
16109 } && test -s conftest$ac_exeext && {
16110 test "$cross_compiling" = yes ||
16111 $as_test_x conftest$ac_exeext
16112 }; then
16113 { $as_echo "$as_me:$LINENO: result: gettext() works with -lintl" >&5
16114 $as_echo "gettext() works with -lintl" >&6; }; have_gettext="yes"
16115 else
16116 $as_echo "$as_me: failed program was:" >&5
16117 sed 's/^/| /' conftest.$ac_ext >&5
16119 { $as_echo "$as_me:$LINENO: result: gettext() doesn't work" >&5
16120 $as_echo "gettext() doesn't work" >&6; };
16121 LIBS=$olibs
16124 rm -rf conftest.dSYM
16125 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16126 conftest$ac_exeext conftest.$ac_ext
16129 rm -rf conftest.dSYM
16130 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16131 conftest$ac_exeext conftest.$ac_ext
16132 else
16133 { $as_echo "$as_me:$LINENO: result: msgfmt not found - disabled" >&5
16134 $as_echo "msgfmt not found - disabled" >&6; };
16136 if test $have_gettext = "yes"; then
16137 cat >>confdefs.h <<\_ACEOF
16138 #define HAVE_GETTEXT 1
16139 _ACEOF
16141 MAKEMO=yes
16144 for ac_func in bind_textdomain_codeset
16146 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16147 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16148 $as_echo_n "checking for $ac_func... " >&6; }
16149 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16150 $as_echo_n "(cached) " >&6
16151 else
16152 cat >conftest.$ac_ext <<_ACEOF
16153 /* confdefs.h. */
16154 _ACEOF
16155 cat confdefs.h >>conftest.$ac_ext
16156 cat >>conftest.$ac_ext <<_ACEOF
16157 /* end confdefs.h. */
16158 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16159 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16160 #define $ac_func innocuous_$ac_func
16162 /* System header to define __stub macros and hopefully few prototypes,
16163 which can conflict with char $ac_func (); below.
16164 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16165 <limits.h> exists even on freestanding compilers. */
16167 #ifdef __STDC__
16168 # include <limits.h>
16169 #else
16170 # include <assert.h>
16171 #endif
16173 #undef $ac_func
16175 /* Override any GCC internal prototype to avoid an error.
16176 Use char because int might match the return type of a GCC
16177 builtin and then its argument prototype would still apply. */
16178 #ifdef __cplusplus
16179 extern "C"
16180 #endif
16181 char $ac_func ();
16182 /* The GNU C library defines this for functions which it implements
16183 to always fail with ENOSYS. Some functions are actually named
16184 something starting with __ and the normal name is an alias. */
16185 #if defined __stub_$ac_func || defined __stub___$ac_func
16186 choke me
16187 #endif
16190 main ()
16192 return $ac_func ();
16194 return 0;
16196 _ACEOF
16197 rm -f conftest.$ac_objext conftest$ac_exeext
16198 if { (ac_try="$ac_link"
16199 case "(($ac_try" in
16200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16201 *) ac_try_echo=$ac_try;;
16202 esac
16203 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16204 $as_echo "$ac_try_echo") >&5
16205 (eval "$ac_link") 2>conftest.er1
16206 ac_status=$?
16207 grep -v '^ *+' conftest.er1 >conftest.err
16208 rm -f conftest.er1
16209 cat conftest.err >&5
16210 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16211 (exit $ac_status); } && {
16212 test -z "$ac_c_werror_flag" ||
16213 test ! -s conftest.err
16214 } && test -s conftest$ac_exeext && {
16215 test "$cross_compiling" = yes ||
16216 $as_test_x conftest$ac_exeext
16217 }; then
16218 eval "$as_ac_var=yes"
16219 else
16220 $as_echo "$as_me: failed program was:" >&5
16221 sed 's/^/| /' conftest.$ac_ext >&5
16223 eval "$as_ac_var=no"
16226 rm -rf conftest.dSYM
16227 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16228 conftest$ac_exeext conftest.$ac_ext
16230 ac_res=`eval 'as_val=${'$as_ac_var'}
16231 $as_echo "$as_val"'`
16232 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16233 $as_echo "$ac_res" >&6; }
16234 as_val=`eval 'as_val=${'$as_ac_var'}
16235 $as_echo "$as_val"'`
16236 if test "x$as_val" = x""yes; then
16237 cat >>confdefs.h <<_ACEOF
16238 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16239 _ACEOF
16242 done
16244 { $as_echo "$as_me:$LINENO: checking for _nl_msg_cat_cntr" >&5
16245 $as_echo_n "checking for _nl_msg_cat_cntr... " >&6; }
16246 cat >conftest.$ac_ext <<_ACEOF
16247 /* confdefs.h. */
16248 _ACEOF
16249 cat confdefs.h >>conftest.$ac_ext
16250 cat >>conftest.$ac_ext <<_ACEOF
16251 /* end confdefs.h. */
16252 #include <libintl.h>
16253 extern int _nl_msg_cat_cntr;
16255 main ()
16257 ++_nl_msg_cat_cntr;
16259 return 0;
16261 _ACEOF
16262 rm -f conftest.$ac_objext 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>conftest.er1
16271 ac_status=$?
16272 grep -v '^ *+' conftest.er1 >conftest.err
16273 rm -f conftest.er1
16274 cat conftest.err >&5
16275 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16276 (exit $ac_status); } && {
16277 test -z "$ac_c_werror_flag" ||
16278 test ! -s conftest.err
16279 } && test -s conftest$ac_exeext && {
16280 test "$cross_compiling" = yes ||
16281 $as_test_x conftest$ac_exeext
16282 }; then
16283 { $as_echo "$as_me:$LINENO: result: yes" >&5
16284 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
16285 #define HAVE_NL_MSG_CAT_CNTR 1
16286 _ACEOF
16288 else
16289 $as_echo "$as_me: failed program was:" >&5
16290 sed 's/^/| /' conftest.$ac_ext >&5
16292 { $as_echo "$as_me:$LINENO: result: no" >&5
16293 $as_echo "no" >&6; }
16296 rm -rf conftest.dSYM
16297 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16298 conftest$ac_exeext conftest.$ac_ext
16300 else
16301 { $as_echo "$as_me:$LINENO: result: no \"po/Makefile\" - disabled" >&5
16302 $as_echo "no \"po/Makefile\" - disabled" >&6; };
16304 else
16305 { $as_echo "$as_me:$LINENO: result: yes" >&5
16306 $as_echo "yes" >&6; }
16309 if test "${ac_cv_header_dlfcn_h+set}" = set; then
16310 { $as_echo "$as_me:$LINENO: checking for dlfcn.h" >&5
16311 $as_echo_n "checking for dlfcn.h... " >&6; }
16312 if test "${ac_cv_header_dlfcn_h+set}" = set; then
16313 $as_echo_n "(cached) " >&6
16315 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
16316 $as_echo "$ac_cv_header_dlfcn_h" >&6; }
16317 else
16318 # Is the header compilable?
16319 { $as_echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
16320 $as_echo_n "checking dlfcn.h usability... " >&6; }
16321 cat >conftest.$ac_ext <<_ACEOF
16322 /* confdefs.h. */
16323 _ACEOF
16324 cat confdefs.h >>conftest.$ac_ext
16325 cat >>conftest.$ac_ext <<_ACEOF
16326 /* end confdefs.h. */
16327 $ac_includes_default
16328 #include <dlfcn.h>
16329 _ACEOF
16330 rm -f conftest.$ac_objext
16331 if { (ac_try="$ac_compile"
16332 case "(($ac_try" in
16333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16334 *) ac_try_echo=$ac_try;;
16335 esac
16336 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16337 $as_echo "$ac_try_echo") >&5
16338 (eval "$ac_compile") 2>conftest.er1
16339 ac_status=$?
16340 grep -v '^ *+' conftest.er1 >conftest.err
16341 rm -f conftest.er1
16342 cat conftest.err >&5
16343 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16344 (exit $ac_status); } && {
16345 test -z "$ac_c_werror_flag" ||
16346 test ! -s conftest.err
16347 } && test -s conftest.$ac_objext; then
16348 ac_header_compiler=yes
16349 else
16350 $as_echo "$as_me: failed program was:" >&5
16351 sed 's/^/| /' conftest.$ac_ext >&5
16353 ac_header_compiler=no
16356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16357 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16358 $as_echo "$ac_header_compiler" >&6; }
16360 # Is the header present?
16361 { $as_echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
16362 $as_echo_n "checking dlfcn.h presence... " >&6; }
16363 cat >conftest.$ac_ext <<_ACEOF
16364 /* confdefs.h. */
16365 _ACEOF
16366 cat confdefs.h >>conftest.$ac_ext
16367 cat >>conftest.$ac_ext <<_ACEOF
16368 /* end confdefs.h. */
16369 #include <dlfcn.h>
16370 _ACEOF
16371 if { (ac_try="$ac_cpp conftest.$ac_ext"
16372 case "(($ac_try" in
16373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16374 *) ac_try_echo=$ac_try;;
16375 esac
16376 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16377 $as_echo "$ac_try_echo") >&5
16378 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16379 ac_status=$?
16380 grep -v '^ *+' conftest.er1 >conftest.err
16381 rm -f conftest.er1
16382 cat conftest.err >&5
16383 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16384 (exit $ac_status); } >/dev/null && {
16385 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16386 test ! -s conftest.err
16387 }; then
16388 ac_header_preproc=yes
16389 else
16390 $as_echo "$as_me: failed program was:" >&5
16391 sed 's/^/| /' conftest.$ac_ext >&5
16393 ac_header_preproc=no
16396 rm -f conftest.err conftest.$ac_ext
16397 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16398 $as_echo "$ac_header_preproc" >&6; }
16400 # So? What about this header?
16401 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16402 yes:no: )
16403 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
16404 $as_echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16405 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5
16406 $as_echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;}
16407 ac_header_preproc=yes
16409 no:yes:* )
16410 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
16411 $as_echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
16412 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5
16413 $as_echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;}
16414 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5
16415 $as_echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;}
16416 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5
16417 $as_echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;}
16418 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
16419 $as_echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
16420 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5
16421 $as_echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;}
16424 esac
16425 { $as_echo "$as_me:$LINENO: checking for dlfcn.h" >&5
16426 $as_echo_n "checking for dlfcn.h... " >&6; }
16427 if test "${ac_cv_header_dlfcn_h+set}" = set; then
16428 $as_echo_n "(cached) " >&6
16429 else
16430 ac_cv_header_dlfcn_h=$ac_header_preproc
16432 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
16433 $as_echo "$ac_cv_header_dlfcn_h" >&6; }
16436 if test "x$ac_cv_header_dlfcn_h" = x""yes; then
16437 DLL=dlfcn.h
16438 else
16439 if test "${ac_cv_header_dl_h+set}" = set; then
16440 { $as_echo "$as_me:$LINENO: checking for dl.h" >&5
16441 $as_echo_n "checking for dl.h... " >&6; }
16442 if test "${ac_cv_header_dl_h+set}" = set; then
16443 $as_echo_n "(cached) " >&6
16445 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5
16446 $as_echo "$ac_cv_header_dl_h" >&6; }
16447 else
16448 # Is the header compilable?
16449 { $as_echo "$as_me:$LINENO: checking dl.h usability" >&5
16450 $as_echo_n "checking dl.h usability... " >&6; }
16451 cat >conftest.$ac_ext <<_ACEOF
16452 /* confdefs.h. */
16453 _ACEOF
16454 cat confdefs.h >>conftest.$ac_ext
16455 cat >>conftest.$ac_ext <<_ACEOF
16456 /* end confdefs.h. */
16457 $ac_includes_default
16458 #include <dl.h>
16459 _ACEOF
16460 rm -f conftest.$ac_objext
16461 if { (ac_try="$ac_compile"
16462 case "(($ac_try" in
16463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16464 *) ac_try_echo=$ac_try;;
16465 esac
16466 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16467 $as_echo "$ac_try_echo") >&5
16468 (eval "$ac_compile") 2>conftest.er1
16469 ac_status=$?
16470 grep -v '^ *+' conftest.er1 >conftest.err
16471 rm -f conftest.er1
16472 cat conftest.err >&5
16473 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16474 (exit $ac_status); } && {
16475 test -z "$ac_c_werror_flag" ||
16476 test ! -s conftest.err
16477 } && test -s conftest.$ac_objext; then
16478 ac_header_compiler=yes
16479 else
16480 $as_echo "$as_me: failed program was:" >&5
16481 sed 's/^/| /' conftest.$ac_ext >&5
16483 ac_header_compiler=no
16486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16487 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16488 $as_echo "$ac_header_compiler" >&6; }
16490 # Is the header present?
16491 { $as_echo "$as_me:$LINENO: checking dl.h presence" >&5
16492 $as_echo_n "checking dl.h presence... " >&6; }
16493 cat >conftest.$ac_ext <<_ACEOF
16494 /* confdefs.h. */
16495 _ACEOF
16496 cat confdefs.h >>conftest.$ac_ext
16497 cat >>conftest.$ac_ext <<_ACEOF
16498 /* end confdefs.h. */
16499 #include <dl.h>
16500 _ACEOF
16501 if { (ac_try="$ac_cpp conftest.$ac_ext"
16502 case "(($ac_try" in
16503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16504 *) ac_try_echo=$ac_try;;
16505 esac
16506 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16507 $as_echo "$ac_try_echo") >&5
16508 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16509 ac_status=$?
16510 grep -v '^ *+' conftest.er1 >conftest.err
16511 rm -f conftest.er1
16512 cat conftest.err >&5
16513 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16514 (exit $ac_status); } >/dev/null && {
16515 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16516 test ! -s conftest.err
16517 }; then
16518 ac_header_preproc=yes
16519 else
16520 $as_echo "$as_me: failed program was:" >&5
16521 sed 's/^/| /' conftest.$ac_ext >&5
16523 ac_header_preproc=no
16526 rm -f conftest.err conftest.$ac_ext
16527 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16528 $as_echo "$ac_header_preproc" >&6; }
16530 # So? What about this header?
16531 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16532 yes:no: )
16533 { $as_echo "$as_me:$LINENO: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&5
16534 $as_echo "$as_me: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16535 { $as_echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the compiler's result" >&5
16536 $as_echo "$as_me: WARNING: dl.h: proceeding with the compiler's result" >&2;}
16537 ac_header_preproc=yes
16539 no:yes:* )
16540 { $as_echo "$as_me:$LINENO: WARNING: dl.h: present but cannot be compiled" >&5
16541 $as_echo "$as_me: WARNING: dl.h: present but cannot be compiled" >&2;}
16542 { $as_echo "$as_me:$LINENO: WARNING: dl.h: check for missing prerequisite headers?" >&5
16543 $as_echo "$as_me: WARNING: dl.h: check for missing prerequisite headers?" >&2;}
16544 { $as_echo "$as_me:$LINENO: WARNING: dl.h: see the Autoconf documentation" >&5
16545 $as_echo "$as_me: WARNING: dl.h: see the Autoconf documentation" >&2;}
16546 { $as_echo "$as_me:$LINENO: WARNING: dl.h: section \"Present But Cannot Be Compiled\"" >&5
16547 $as_echo "$as_me: WARNING: dl.h: section \"Present But Cannot Be Compiled\"" >&2;}
16548 { $as_echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the preprocessor's result" >&5
16549 $as_echo "$as_me: WARNING: dl.h: proceeding with the preprocessor's result" >&2;}
16550 { $as_echo "$as_me:$LINENO: WARNING: dl.h: in the future, the compiler will take precedence" >&5
16551 $as_echo "$as_me: WARNING: dl.h: in the future, the compiler will take precedence" >&2;}
16554 esac
16555 { $as_echo "$as_me:$LINENO: checking for dl.h" >&5
16556 $as_echo_n "checking for dl.h... " >&6; }
16557 if test "${ac_cv_header_dl_h+set}" = set; then
16558 $as_echo_n "(cached) " >&6
16559 else
16560 ac_cv_header_dl_h=$ac_header_preproc
16562 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5
16563 $as_echo "$ac_cv_header_dl_h" >&6; }
16566 if test "x$ac_cv_header_dl_h" = x""yes; then
16567 DLL=dl.h
16574 if test x${DLL} = xdlfcn.h; then
16576 cat >>confdefs.h <<\_ACEOF
16577 #define HAVE_DLFCN_H 1
16578 _ACEOF
16580 { $as_echo "$as_me:$LINENO: checking for dlopen()" >&5
16581 $as_echo_n "checking for dlopen()... " >&6; }
16582 cat >conftest.$ac_ext <<_ACEOF
16583 /* confdefs.h. */
16584 _ACEOF
16585 cat confdefs.h >>conftest.$ac_ext
16586 cat >>conftest.$ac_ext <<_ACEOF
16587 /* end confdefs.h. */
16590 main ()
16593 extern void* dlopen();
16594 dlopen();
16597 return 0;
16599 _ACEOF
16600 rm -f conftest.$ac_objext conftest$ac_exeext
16601 if { (ac_try="$ac_link"
16602 case "(($ac_try" in
16603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16604 *) ac_try_echo=$ac_try;;
16605 esac
16606 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16607 $as_echo "$ac_try_echo") >&5
16608 (eval "$ac_link") 2>conftest.er1
16609 ac_status=$?
16610 grep -v '^ *+' conftest.er1 >conftest.err
16611 rm -f conftest.er1
16612 cat conftest.err >&5
16613 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16614 (exit $ac_status); } && {
16615 test -z "$ac_c_werror_flag" ||
16616 test ! -s conftest.err
16617 } && test -s conftest$ac_exeext && {
16618 test "$cross_compiling" = yes ||
16619 $as_test_x conftest$ac_exeext
16620 }; then
16621 { $as_echo "$as_me:$LINENO: result: yes" >&5
16622 $as_echo "yes" >&6; };
16624 cat >>confdefs.h <<\_ACEOF
16625 #define HAVE_DLOPEN 1
16626 _ACEOF
16628 else
16629 $as_echo "$as_me: failed program was:" >&5
16630 sed 's/^/| /' conftest.$ac_ext >&5
16632 { $as_echo "$as_me:$LINENO: result: no" >&5
16633 $as_echo "no" >&6; };
16634 { $as_echo "$as_me:$LINENO: checking for dlopen() in -ldl" >&5
16635 $as_echo_n "checking for dlopen() in -ldl... " >&6; }
16636 olibs=$LIBS
16637 LIBS="$LIBS -ldl"
16638 cat >conftest.$ac_ext <<_ACEOF
16639 /* confdefs.h. */
16640 _ACEOF
16641 cat confdefs.h >>conftest.$ac_ext
16642 cat >>conftest.$ac_ext <<_ACEOF
16643 /* end confdefs.h. */
16646 main ()
16649 extern void* dlopen();
16650 dlopen();
16653 return 0;
16655 _ACEOF
16656 rm -f conftest.$ac_objext conftest$ac_exeext
16657 if { (ac_try="$ac_link"
16658 case "(($ac_try" in
16659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16660 *) ac_try_echo=$ac_try;;
16661 esac
16662 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16663 $as_echo "$ac_try_echo") >&5
16664 (eval "$ac_link") 2>conftest.er1
16665 ac_status=$?
16666 grep -v '^ *+' conftest.er1 >conftest.err
16667 rm -f conftest.er1
16668 cat conftest.err >&5
16669 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16670 (exit $ac_status); } && {
16671 test -z "$ac_c_werror_flag" ||
16672 test ! -s conftest.err
16673 } && test -s conftest$ac_exeext && {
16674 test "$cross_compiling" = yes ||
16675 $as_test_x conftest$ac_exeext
16676 }; then
16677 { $as_echo "$as_me:$LINENO: result: yes" >&5
16678 $as_echo "yes" >&6; };
16680 cat >>confdefs.h <<\_ACEOF
16681 #define HAVE_DLOPEN 1
16682 _ACEOF
16684 else
16685 $as_echo "$as_me: failed program was:" >&5
16686 sed 's/^/| /' conftest.$ac_ext >&5
16688 { $as_echo "$as_me:$LINENO: result: no" >&5
16689 $as_echo "no" >&6; };
16690 LIBS=$olibs
16693 rm -rf conftest.dSYM
16694 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16695 conftest$ac_exeext conftest.$ac_ext
16698 rm -rf conftest.dSYM
16699 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16700 conftest$ac_exeext conftest.$ac_ext
16701 { $as_echo "$as_me:$LINENO: checking for dlsym()" >&5
16702 $as_echo_n "checking for dlsym()... " >&6; }
16703 cat >conftest.$ac_ext <<_ACEOF
16704 /* confdefs.h. */
16705 _ACEOF
16706 cat confdefs.h >>conftest.$ac_ext
16707 cat >>conftest.$ac_ext <<_ACEOF
16708 /* end confdefs.h. */
16711 main ()
16714 extern void* dlsym();
16715 dlsym();
16718 return 0;
16720 _ACEOF
16721 rm -f conftest.$ac_objext conftest$ac_exeext
16722 if { (ac_try="$ac_link"
16723 case "(($ac_try" in
16724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16725 *) ac_try_echo=$ac_try;;
16726 esac
16727 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16728 $as_echo "$ac_try_echo") >&5
16729 (eval "$ac_link") 2>conftest.er1
16730 ac_status=$?
16731 grep -v '^ *+' conftest.er1 >conftest.err
16732 rm -f conftest.er1
16733 cat conftest.err >&5
16734 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16735 (exit $ac_status); } && {
16736 test -z "$ac_c_werror_flag" ||
16737 test ! -s conftest.err
16738 } && test -s conftest$ac_exeext && {
16739 test "$cross_compiling" = yes ||
16740 $as_test_x conftest$ac_exeext
16741 }; then
16742 { $as_echo "$as_me:$LINENO: result: yes" >&5
16743 $as_echo "yes" >&6; };
16745 cat >>confdefs.h <<\_ACEOF
16746 #define HAVE_DLSYM 1
16747 _ACEOF
16749 else
16750 $as_echo "$as_me: failed program was:" >&5
16751 sed 's/^/| /' conftest.$ac_ext >&5
16753 { $as_echo "$as_me:$LINENO: result: no" >&5
16754 $as_echo "no" >&6; };
16755 { $as_echo "$as_me:$LINENO: checking for dlsym() in -ldl" >&5
16756 $as_echo_n "checking for dlsym() in -ldl... " >&6; }
16757 olibs=$LIBS
16758 LIBS="$LIBS -ldl"
16759 cat >conftest.$ac_ext <<_ACEOF
16760 /* confdefs.h. */
16761 _ACEOF
16762 cat confdefs.h >>conftest.$ac_ext
16763 cat >>conftest.$ac_ext <<_ACEOF
16764 /* end confdefs.h. */
16767 main ()
16770 extern void* dlsym();
16771 dlsym();
16774 return 0;
16776 _ACEOF
16777 rm -f conftest.$ac_objext conftest$ac_exeext
16778 if { (ac_try="$ac_link"
16779 case "(($ac_try" in
16780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16781 *) ac_try_echo=$ac_try;;
16782 esac
16783 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16784 $as_echo "$ac_try_echo") >&5
16785 (eval "$ac_link") 2>conftest.er1
16786 ac_status=$?
16787 grep -v '^ *+' conftest.er1 >conftest.err
16788 rm -f conftest.er1
16789 cat conftest.err >&5
16790 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16791 (exit $ac_status); } && {
16792 test -z "$ac_c_werror_flag" ||
16793 test ! -s conftest.err
16794 } && test -s conftest$ac_exeext && {
16795 test "$cross_compiling" = yes ||
16796 $as_test_x conftest$ac_exeext
16797 }; then
16798 { $as_echo "$as_me:$LINENO: result: yes" >&5
16799 $as_echo "yes" >&6; };
16801 cat >>confdefs.h <<\_ACEOF
16802 #define HAVE_DLSYM 1
16803 _ACEOF
16805 else
16806 $as_echo "$as_me: failed program was:" >&5
16807 sed 's/^/| /' conftest.$ac_ext >&5
16809 { $as_echo "$as_me:$LINENO: result: no" >&5
16810 $as_echo "no" >&6; };
16811 LIBS=$olibs
16814 rm -rf conftest.dSYM
16815 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16816 conftest$ac_exeext conftest.$ac_ext
16819 rm -rf conftest.dSYM
16820 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16821 conftest$ac_exeext conftest.$ac_ext
16822 elif test x${DLL} = xdl.h; then
16824 cat >>confdefs.h <<\_ACEOF
16825 #define HAVE_DL_H 1
16826 _ACEOF
16828 { $as_echo "$as_me:$LINENO: checking for shl_load()" >&5
16829 $as_echo_n "checking for shl_load()... " >&6; }
16830 cat >conftest.$ac_ext <<_ACEOF
16831 /* confdefs.h. */
16832 _ACEOF
16833 cat confdefs.h >>conftest.$ac_ext
16834 cat >>conftest.$ac_ext <<_ACEOF
16835 /* end confdefs.h. */
16838 main ()
16841 extern void* shl_load();
16842 shl_load();
16845 return 0;
16847 _ACEOF
16848 rm -f conftest.$ac_objext conftest$ac_exeext
16849 if { (ac_try="$ac_link"
16850 case "(($ac_try" in
16851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16852 *) ac_try_echo=$ac_try;;
16853 esac
16854 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16855 $as_echo "$ac_try_echo") >&5
16856 (eval "$ac_link") 2>conftest.er1
16857 ac_status=$?
16858 grep -v '^ *+' conftest.er1 >conftest.err
16859 rm -f conftest.er1
16860 cat conftest.err >&5
16861 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16862 (exit $ac_status); } && {
16863 test -z "$ac_c_werror_flag" ||
16864 test ! -s conftest.err
16865 } && test -s conftest$ac_exeext && {
16866 test "$cross_compiling" = yes ||
16867 $as_test_x conftest$ac_exeext
16868 }; then
16869 { $as_echo "$as_me:$LINENO: result: yes" >&5
16870 $as_echo "yes" >&6; };
16872 cat >>confdefs.h <<\_ACEOF
16873 #define HAVE_SHL_LOAD 1
16874 _ACEOF
16876 else
16877 $as_echo "$as_me: failed program was:" >&5
16878 sed 's/^/| /' conftest.$ac_ext >&5
16880 { $as_echo "$as_me:$LINENO: result: no" >&5
16881 $as_echo "no" >&6; };
16882 { $as_echo "$as_me:$LINENO: checking for shl_load() in -ldld" >&5
16883 $as_echo_n "checking for shl_load() in -ldld... " >&6; }
16884 olibs=$LIBS
16885 LIBS="$LIBS -ldld"
16886 cat >conftest.$ac_ext <<_ACEOF
16887 /* confdefs.h. */
16888 _ACEOF
16889 cat confdefs.h >>conftest.$ac_ext
16890 cat >>conftest.$ac_ext <<_ACEOF
16891 /* end confdefs.h. */
16894 main ()
16897 extern void* shl_load();
16898 shl_load();
16901 return 0;
16903 _ACEOF
16904 rm -f conftest.$ac_objext conftest$ac_exeext
16905 if { (ac_try="$ac_link"
16906 case "(($ac_try" in
16907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16908 *) ac_try_echo=$ac_try;;
16909 esac
16910 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16911 $as_echo "$ac_try_echo") >&5
16912 (eval "$ac_link") 2>conftest.er1
16913 ac_status=$?
16914 grep -v '^ *+' conftest.er1 >conftest.err
16915 rm -f conftest.er1
16916 cat conftest.err >&5
16917 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16918 (exit $ac_status); } && {
16919 test -z "$ac_c_werror_flag" ||
16920 test ! -s conftest.err
16921 } && test -s conftest$ac_exeext && {
16922 test "$cross_compiling" = yes ||
16923 $as_test_x conftest$ac_exeext
16924 }; then
16925 { $as_echo "$as_me:$LINENO: result: yes" >&5
16926 $as_echo "yes" >&6; };
16928 cat >>confdefs.h <<\_ACEOF
16929 #define HAVE_SHL_LOAD 1
16930 _ACEOF
16932 else
16933 $as_echo "$as_me: failed program was:" >&5
16934 sed 's/^/| /' conftest.$ac_ext >&5
16936 { $as_echo "$as_me:$LINENO: result: no" >&5
16937 $as_echo "no" >&6; };
16938 LIBS=$olibs
16941 rm -rf conftest.dSYM
16942 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16943 conftest$ac_exeext conftest.$ac_ext
16946 rm -rf conftest.dSYM
16947 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16948 conftest$ac_exeext conftest.$ac_ext
16951 for ac_header in setjmp.h
16953 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16954 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16955 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16956 $as_echo_n "checking for $ac_header... " >&6; }
16957 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16958 $as_echo_n "(cached) " >&6
16960 ac_res=`eval 'as_val=${'$as_ac_Header'}
16961 $as_echo "$as_val"'`
16962 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16963 $as_echo "$ac_res" >&6; }
16964 else
16965 # Is the header compilable?
16966 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16967 $as_echo_n "checking $ac_header usability... " >&6; }
16968 cat >conftest.$ac_ext <<_ACEOF
16969 /* confdefs.h. */
16970 _ACEOF
16971 cat confdefs.h >>conftest.$ac_ext
16972 cat >>conftest.$ac_ext <<_ACEOF
16973 /* end confdefs.h. */
16974 $ac_includes_default
16975 #include <$ac_header>
16976 _ACEOF
16977 rm -f conftest.$ac_objext
16978 if { (ac_try="$ac_compile"
16979 case "(($ac_try" in
16980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16981 *) ac_try_echo=$ac_try;;
16982 esac
16983 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16984 $as_echo "$ac_try_echo") >&5
16985 (eval "$ac_compile") 2>conftest.er1
16986 ac_status=$?
16987 grep -v '^ *+' conftest.er1 >conftest.err
16988 rm -f conftest.er1
16989 cat conftest.err >&5
16990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16991 (exit $ac_status); } && {
16992 test -z "$ac_c_werror_flag" ||
16993 test ! -s conftest.err
16994 } && test -s conftest.$ac_objext; then
16995 ac_header_compiler=yes
16996 else
16997 $as_echo "$as_me: failed program was:" >&5
16998 sed 's/^/| /' conftest.$ac_ext >&5
17000 ac_header_compiler=no
17003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17004 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17005 $as_echo "$ac_header_compiler" >&6; }
17007 # Is the header present?
17008 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17009 $as_echo_n "checking $ac_header presence... " >&6; }
17010 cat >conftest.$ac_ext <<_ACEOF
17011 /* confdefs.h. */
17012 _ACEOF
17013 cat confdefs.h >>conftest.$ac_ext
17014 cat >>conftest.$ac_ext <<_ACEOF
17015 /* end confdefs.h. */
17016 #include <$ac_header>
17017 _ACEOF
17018 if { (ac_try="$ac_cpp conftest.$ac_ext"
17019 case "(($ac_try" in
17020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17021 *) ac_try_echo=$ac_try;;
17022 esac
17023 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17024 $as_echo "$ac_try_echo") >&5
17025 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17026 ac_status=$?
17027 grep -v '^ *+' conftest.er1 >conftest.err
17028 rm -f conftest.er1
17029 cat conftest.err >&5
17030 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17031 (exit $ac_status); } >/dev/null && {
17032 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17033 test ! -s conftest.err
17034 }; then
17035 ac_header_preproc=yes
17036 else
17037 $as_echo "$as_me: failed program was:" >&5
17038 sed 's/^/| /' conftest.$ac_ext >&5
17040 ac_header_preproc=no
17043 rm -f conftest.err conftest.$ac_ext
17044 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17045 $as_echo "$ac_header_preproc" >&6; }
17047 # So? What about this header?
17048 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17049 yes:no: )
17050 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17051 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17052 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17053 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17054 ac_header_preproc=yes
17056 no:yes:* )
17057 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17058 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17059 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17060 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17061 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17062 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17063 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17064 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17065 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17066 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17067 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17068 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17071 esac
17072 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17073 $as_echo_n "checking for $ac_header... " >&6; }
17074 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17075 $as_echo_n "(cached) " >&6
17076 else
17077 eval "$as_ac_Header=\$ac_header_preproc"
17079 ac_res=`eval 'as_val=${'$as_ac_Header'}
17080 $as_echo "$as_val"'`
17081 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17082 $as_echo "$ac_res" >&6; }
17085 as_val=`eval 'as_val=${'$as_ac_Header'}
17086 $as_echo "$as_val"'`
17087 if test "x$as_val" = x""yes; then
17088 cat >>confdefs.h <<_ACEOF
17089 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17090 _ACEOF
17094 done
17097 if test "x$MACOSX" = "xyes" -a -n "$PERL"; then
17098 if echo $LIBS | grep -e '-ldl' >/dev/null; then
17099 LIBS=`echo $LIBS | sed s/-ldl//`
17100 PERL_LIBS="$PERL_LIBS -ldl"
17104 if test "x$MACOSX" = "xyes" && test "x$CARBON" = "xyes" \
17105 && test "x$GUITYPE" != "xCARBONGUI"; then
17106 { $as_echo "$as_me:$LINENO: checking whether we need -framework Carbon" >&5
17107 $as_echo_n "checking whether we need -framework Carbon... " >&6; }
17108 if test "x$enable_multibyte" = "xyes" || test "x$features" = "xbig" \
17109 || test "x$features" = "xhuge"; then
17110 LIBS="$LIBS -framework Carbon"
17111 { $as_echo "$as_me:$LINENO: result: yes" >&5
17112 $as_echo "yes" >&6; }
17113 else
17114 { $as_echo "$as_me:$LINENO: result: no" >&5
17115 $as_echo "no" >&6; }
17118 if test "x$MACARCH" = "xboth"; then
17119 LDFLAGS="$LDFLAGS -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc"
17122 DEPEND_CFLAGS_FILTER=
17123 if test "$GCC" = yes; then
17124 { $as_echo "$as_me:$LINENO: checking for GCC 3 or later" >&5
17125 $as_echo_n "checking for GCC 3 or later... " >&6; }
17126 gccmajor=`echo "$gccversion" | sed -e 's/^\([1-9]\)\..*$/\1/g'`
17127 if test "$gccmajor" -gt "2"; then
17128 DEPEND_CFLAGS_FILTER="| sed 's+-I */+-isystem /+g'"
17129 { $as_echo "$as_me:$LINENO: result: yes" >&5
17130 $as_echo "yes" >&6; }
17131 else
17132 { $as_echo "$as_me:$LINENO: result: no" >&5
17133 $as_echo "no" >&6; }
17135 { $as_echo "$as_me:$LINENO: checking whether we need -D_FORTIFY_SOURCE=1" >&5
17136 $as_echo_n "checking whether we need -D_FORTIFY_SOURCE=1... " >&6; }
17137 if test "$gccmajor" -gt "3"; then
17138 CFLAGS=`echo "$CFLAGS -D_FORTIFY_SOURCE=1" | sed -e 's/-Wp,-D_FORTIFY_SOURCE=2//g' -e 's/-D_FORTIFY_SOURCE=2//g'`
17139 { $as_echo "$as_me:$LINENO: result: yes" >&5
17140 $as_echo "yes" >&6; }
17141 else
17142 { $as_echo "$as_me:$LINENO: result: no" >&5
17143 $as_echo "no" >&6; }
17148 ac_config_files="$ac_config_files auto/config.mk:config.mk.in"
17150 cat >confcache <<\_ACEOF
17151 # This file is a shell script that caches the results of configure
17152 # tests run on this system so they can be shared between configure
17153 # scripts and configure runs, see configure's option --config-cache.
17154 # It is not useful on other systems. If it contains results you don't
17155 # want to keep, you may remove or edit it.
17157 # config.status only pays attention to the cache file if you give it
17158 # the --recheck option to rerun configure.
17160 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17161 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17162 # following values.
17164 _ACEOF
17166 # The following way of writing the cache mishandles newlines in values,
17167 # but we know of no workaround that is simple, portable, and efficient.
17168 # So, we kill variables containing newlines.
17169 # Ultrix sh set writes to stderr and can't be redirected directly,
17170 # and sets the high bit in the cache file unless we assign to the vars.
17172 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17173 eval ac_val=\$$ac_var
17174 case $ac_val in #(
17175 *${as_nl}*)
17176 case $ac_var in #(
17177 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
17178 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17179 esac
17180 case $ac_var in #(
17181 _ | IFS | as_nl) ;; #(
17182 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17183 *) $as_unset $ac_var ;;
17184 esac ;;
17185 esac
17186 done
17188 (set) 2>&1 |
17189 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17190 *${as_nl}ac_space=\ *)
17191 # `set' does not quote correctly, so add quotes (double-quote
17192 # substitution turns \\\\ into \\, and sed turns \\ into \).
17193 sed -n \
17194 "s/'/'\\\\''/g;
17195 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17196 ;; #(
17198 # `set' quotes correctly as required by POSIX, so do not add quotes.
17199 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17201 esac |
17202 sort
17204 sed '
17205 /^ac_cv_env_/b end
17206 t clear
17207 :clear
17208 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17209 t end
17210 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17211 :end' >>confcache
17212 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17213 if test -w "$cache_file"; then
17214 test "x$cache_file" != "x/dev/null" &&
17215 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
17216 $as_echo "$as_me: updating cache $cache_file" >&6;}
17217 cat confcache >$cache_file
17218 else
17219 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
17220 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17223 rm -f confcache
17225 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17226 # Let make expand exec_prefix.
17227 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17229 DEFS=-DHAVE_CONFIG_H
17231 ac_libobjs=
17232 ac_ltlibobjs=
17233 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17234 # 1. Remove the extension, and $U if already installed.
17235 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17236 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17237 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17238 # will be set to the directory where LIBOBJS objects are built.
17239 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17240 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
17241 done
17242 LIBOBJS=$ac_libobjs
17244 LTLIBOBJS=$ac_ltlibobjs
17248 : ${CONFIG_STATUS=./config.status}
17249 ac_write_fail=0
17250 ac_clean_files_save=$ac_clean_files
17251 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17252 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17253 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17254 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17255 #! $SHELL
17256 # Generated by $as_me.
17257 # Run this file to recreate the current configuration.
17258 # Compiler output produced by configure, useful for debugging
17259 # configure, is in config.log if it exists.
17261 debug=false
17262 ac_cs_recheck=false
17263 ac_cs_silent=false
17264 SHELL=\${CONFIG_SHELL-$SHELL}
17265 _ACEOF
17267 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17268 ## --------------------- ##
17269 ## M4sh Initialization. ##
17270 ## --------------------- ##
17272 # Be more Bourne compatible
17273 DUALCASE=1; export DUALCASE # for MKS sh
17274 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17275 emulate sh
17276 NULLCMD=:
17277 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17278 # is contrary to our usage. Disable this feature.
17279 alias -g '${1+"$@"}'='"$@"'
17280 setopt NO_GLOB_SUBST
17281 else
17282 case `(set -o) 2>/dev/null` in
17283 *posix*) set -o posix ;;
17284 esac
17291 # PATH needs CR
17292 # Avoid depending upon Character Ranges.
17293 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17294 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17295 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17296 as_cr_digits='0123456789'
17297 as_cr_alnum=$as_cr_Letters$as_cr_digits
17299 as_nl='
17301 export as_nl
17302 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17303 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17304 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17305 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17306 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17307 as_echo='printf %s\n'
17308 as_echo_n='printf %s'
17309 else
17310 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17311 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17312 as_echo_n='/usr/ucb/echo -n'
17313 else
17314 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17315 as_echo_n_body='eval
17316 arg=$1;
17317 case $arg in
17318 *"$as_nl"*)
17319 expr "X$arg" : "X\\(.*\\)$as_nl";
17320 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17321 esac;
17322 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17324 export as_echo_n_body
17325 as_echo_n='sh -c $as_echo_n_body as_echo'
17327 export as_echo_body
17328 as_echo='sh -c $as_echo_body as_echo'
17331 # The user is always right.
17332 if test "${PATH_SEPARATOR+set}" != set; then
17333 PATH_SEPARATOR=:
17334 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17335 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17336 PATH_SEPARATOR=';'
17340 # Support unset when possible.
17341 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
17342 as_unset=unset
17343 else
17344 as_unset=false
17348 # IFS
17349 # We need space, tab and new line, in precisely that order. Quoting is
17350 # there to prevent editors from complaining about space-tab.
17351 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17352 # splitting by setting IFS to empty value.)
17353 IFS=" "" $as_nl"
17355 # Find who we are. Look in the path if we contain no directory separator.
17356 case $0 in
17357 *[\\/]* ) as_myself=$0 ;;
17358 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17359 for as_dir in $PATH
17361 IFS=$as_save_IFS
17362 test -z "$as_dir" && as_dir=.
17363 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17364 done
17365 IFS=$as_save_IFS
17368 esac
17369 # We did not find ourselves, most probably we were run as `sh COMMAND'
17370 # in which case we are not to be found in the path.
17371 if test "x$as_myself" = x; then
17372 as_myself=$0
17374 if test ! -f "$as_myself"; then
17375 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17376 { (exit 1); exit 1; }
17379 # Work around bugs in pre-3.0 UWIN ksh.
17380 for as_var in ENV MAIL MAILPATH
17381 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
17382 done
17383 PS1='$ '
17384 PS2='> '
17385 PS4='+ '
17387 # NLS nuisances.
17388 LC_ALL=C
17389 export LC_ALL
17390 LANGUAGE=C
17391 export LANGUAGE
17393 # Required to use basename.
17394 if expr a : '\(a\)' >/dev/null 2>&1 &&
17395 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17396 as_expr=expr
17397 else
17398 as_expr=false
17401 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17402 as_basename=basename
17403 else
17404 as_basename=false
17408 # Name of the executable.
17409 as_me=`$as_basename -- "$0" ||
17410 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17411 X"$0" : 'X\(//\)$' \| \
17412 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17413 $as_echo X/"$0" |
17414 sed '/^.*\/\([^/][^/]*\)\/*$/{
17415 s//\1/
17418 /^X\/\(\/\/\)$/{
17419 s//\1/
17422 /^X\/\(\/\).*/{
17423 s//\1/
17426 s/.*/./; q'`
17428 # CDPATH.
17429 $as_unset CDPATH
17433 as_lineno_1=$LINENO
17434 as_lineno_2=$LINENO
17435 test "x$as_lineno_1" != "x$as_lineno_2" &&
17436 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
17438 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17439 # uniformly replaced by the line number. The first 'sed' inserts a
17440 # line-number line after each line using $LINENO; the second 'sed'
17441 # does the real work. The second script uses 'N' to pair each
17442 # line-number line with the line containing $LINENO, and appends
17443 # trailing '-' during substitution so that $LINENO is not a special
17444 # case at line end.
17445 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17446 # scripts with optimization help from Paolo Bonzini. Blame Lee
17447 # E. McMahon (1931-1989) for sed's syntax. :-)
17448 sed -n '
17450 /[$]LINENO/=
17451 ' <$as_myself |
17452 sed '
17453 s/[$]LINENO.*/&-/
17454 t lineno
17456 :lineno
17458 :loop
17459 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
17460 t loop
17461 s/-\n.*//
17462 ' >$as_me.lineno &&
17463 chmod +x "$as_me.lineno" ||
17464 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
17465 { (exit 1); exit 1; }; }
17467 # Don't try to exec as it changes $[0], causing all sort of problems
17468 # (the dirname of $[0] is not the place where we might find the
17469 # original and so on. Autoconf is especially sensitive to this).
17470 . "./$as_me.lineno"
17471 # Exit status is that of the last command.
17472 exit
17476 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17477 as_dirname=dirname
17478 else
17479 as_dirname=false
17482 ECHO_C= ECHO_N= ECHO_T=
17483 case `echo -n x` in
17484 -n*)
17485 case `echo 'x\c'` in
17486 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17487 *) ECHO_C='\c';;
17488 esac;;
17490 ECHO_N='-n';;
17491 esac
17492 if expr a : '\(a\)' >/dev/null 2>&1 &&
17493 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17494 as_expr=expr
17495 else
17496 as_expr=false
17499 rm -f conf$$ conf$$.exe conf$$.file
17500 if test -d conf$$.dir; then
17501 rm -f conf$$.dir/conf$$.file
17502 else
17503 rm -f conf$$.dir
17504 mkdir conf$$.dir 2>/dev/null
17506 if (echo >conf$$.file) 2>/dev/null; then
17507 if ln -s conf$$.file conf$$ 2>/dev/null; then
17508 as_ln_s='ln -s'
17509 # ... but there are two gotchas:
17510 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17511 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17512 # In both cases, we have to default to `cp -p'.
17513 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17514 as_ln_s='cp -p'
17515 elif ln conf$$.file conf$$ 2>/dev/null; then
17516 as_ln_s=ln
17517 else
17518 as_ln_s='cp -p'
17520 else
17521 as_ln_s='cp -p'
17523 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17524 rmdir conf$$.dir 2>/dev/null
17526 if mkdir -p . 2>/dev/null; then
17527 as_mkdir_p=:
17528 else
17529 test -d ./-p && rmdir ./-p
17530 as_mkdir_p=false
17533 if test -x / >/dev/null 2>&1; then
17534 as_test_x='test -x'
17535 else
17536 if ls -dL / >/dev/null 2>&1; then
17537 as_ls_L_option=L
17538 else
17539 as_ls_L_option=
17541 as_test_x='
17542 eval sh -c '\''
17543 if test -d "$1"; then
17544 test -d "$1/.";
17545 else
17546 case $1 in
17547 -*)set "./$1";;
17548 esac;
17549 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
17550 ???[sx]*):;;*)false;;esac;fi
17551 '\'' sh
17554 as_executable_p=$as_test_x
17556 # Sed expression to map a string onto a valid CPP name.
17557 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17559 # Sed expression to map a string onto a valid variable name.
17560 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17563 exec 6>&1
17565 # Save the log message, to keep $[0] and so on meaningful, and to
17566 # report actual input values of CONFIG_FILES etc. instead of their
17567 # values after options handling.
17568 ac_log="
17569 This file was extended by $as_me, which was
17570 generated by GNU Autoconf 2.63. Invocation command line was
17572 CONFIG_FILES = $CONFIG_FILES
17573 CONFIG_HEADERS = $CONFIG_HEADERS
17574 CONFIG_LINKS = $CONFIG_LINKS
17575 CONFIG_COMMANDS = $CONFIG_COMMANDS
17576 $ $0 $@
17578 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17581 _ACEOF
17583 case $ac_config_files in *"
17584 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17585 esac
17587 case $ac_config_headers in *"
17588 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17589 esac
17592 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17593 # Files that config.status was made for.
17594 config_files="$ac_config_files"
17595 config_headers="$ac_config_headers"
17597 _ACEOF
17599 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17600 ac_cs_usage="\
17601 \`$as_me' instantiates files from templates according to the
17602 current configuration.
17604 Usage: $0 [OPTION]... [FILE]...
17606 -h, --help print this help, then exit
17607 -V, --version print version number and configuration settings, then exit
17608 -q, --quiet, --silent
17609 do not print progress messages
17610 -d, --debug don't remove temporary files
17611 --recheck update $as_me by reconfiguring in the same conditions
17612 --file=FILE[:TEMPLATE]
17613 instantiate the configuration file FILE
17614 --header=FILE[:TEMPLATE]
17615 instantiate the configuration header FILE
17617 Configuration files:
17618 $config_files
17620 Configuration headers:
17621 $config_headers
17623 Report bugs to <bug-autoconf@gnu.org>."
17625 _ACEOF
17626 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17627 ac_cs_version="\\
17628 config.status
17629 configured by $0, generated by GNU Autoconf 2.63,
17630 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
17632 Copyright (C) 2008 Free Software Foundation, Inc.
17633 This config.status script is free software; the Free Software Foundation
17634 gives unlimited permission to copy, distribute and modify it."
17636 ac_pwd='$ac_pwd'
17637 srcdir='$srcdir'
17638 AWK='$AWK'
17639 test -n "\$AWK" || AWK=awk
17640 _ACEOF
17642 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17643 # The default lists apply if the user does not specify any file.
17644 ac_need_defaults=:
17645 while test $# != 0
17647 case $1 in
17648 --*=*)
17649 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17650 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17651 ac_shift=:
17654 ac_option=$1
17655 ac_optarg=$2
17656 ac_shift=shift
17658 esac
17660 case $ac_option in
17661 # Handling of the options.
17662 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17663 ac_cs_recheck=: ;;
17664 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17665 $as_echo "$ac_cs_version"; exit ;;
17666 --debug | --debu | --deb | --de | --d | -d )
17667 debug=: ;;
17668 --file | --fil | --fi | --f )
17669 $ac_shift
17670 case $ac_optarg in
17671 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17672 esac
17673 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
17674 ac_need_defaults=false;;
17675 --header | --heade | --head | --hea )
17676 $ac_shift
17677 case $ac_optarg in
17678 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17679 esac
17680 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
17681 ac_need_defaults=false;;
17682 --he | --h)
17683 # Conflict between --help and --header
17684 { $as_echo "$as_me: error: ambiguous option: $1
17685 Try \`$0 --help' for more information." >&2
17686 { (exit 1); exit 1; }; };;
17687 --help | --hel | -h )
17688 $as_echo "$ac_cs_usage"; exit ;;
17689 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17690 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17691 ac_cs_silent=: ;;
17693 # This is an error.
17694 -*) { $as_echo "$as_me: error: unrecognized option: $1
17695 Try \`$0 --help' for more information." >&2
17696 { (exit 1); exit 1; }; } ;;
17698 *) ac_config_targets="$ac_config_targets $1"
17699 ac_need_defaults=false ;;
17701 esac
17702 shift
17703 done
17705 ac_configure_extra_args=
17707 if $ac_cs_silent; then
17708 exec 6>/dev/null
17709 ac_configure_extra_args="$ac_configure_extra_args --silent"
17712 _ACEOF
17713 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17714 if \$ac_cs_recheck; then
17715 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17716 shift
17717 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17718 CONFIG_SHELL='$SHELL'
17719 export CONFIG_SHELL
17720 exec "\$@"
17723 _ACEOF
17724 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17725 exec 5>>auto/config.log
17727 echo
17728 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17729 ## Running $as_me. ##
17730 _ASBOX
17731 $as_echo "$ac_log"
17732 } >&5
17734 _ACEOF
17735 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17736 _ACEOF
17738 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17740 # Handling of arguments.
17741 for ac_config_target in $ac_config_targets
17743 case $ac_config_target in
17744 "auto/config.h") CONFIG_HEADERS="$CONFIG_HEADERS auto/config.h:config.h.in" ;;
17745 "auto/config.mk") CONFIG_FILES="$CONFIG_FILES auto/config.mk:config.mk.in" ;;
17747 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17748 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17749 { (exit 1); exit 1; }; };;
17750 esac
17751 done
17754 # If the user did not use the arguments to specify the items to instantiate,
17755 # then the envvar interface is used. Set only those that are not.
17756 # We use the long form for the default assignment because of an extremely
17757 # bizarre bug on SunOS 4.1.3.
17758 if $ac_need_defaults; then
17759 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17760 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17763 # Have a temporary directory for convenience. Make it in the build tree
17764 # simply because there is no reason against having it here, and in addition,
17765 # creating and moving files from /tmp can sometimes cause problems.
17766 # Hook for its removal unless debugging.
17767 # Note that there is a small window in which the directory will not be cleaned:
17768 # after its creation but before its name has been assigned to `$tmp'.
17769 $debug ||
17771 tmp=
17772 trap 'exit_status=$?
17773 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17775 trap '{ (exit 1); exit 1; }' 1 2 13 15
17777 # Create a (secure) tmp directory for tmp files.
17780 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17781 test -n "$tmp" && test -d "$tmp"
17782 } ||
17784 tmp=./conf$$-$RANDOM
17785 (umask 077 && mkdir "$tmp")
17786 } ||
17788 $as_echo "$as_me: cannot create a temporary directory in ." >&2
17789 { (exit 1); exit 1; }
17792 # Set up the scripts for CONFIG_FILES section.
17793 # No need to generate them if there are no CONFIG_FILES.
17794 # This happens for instance with `./config.status config.h'.
17795 if test -n "$CONFIG_FILES"; then
17798 ac_cr=' '
17799 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17800 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17801 ac_cs_awk_cr='\\r'
17802 else
17803 ac_cs_awk_cr=$ac_cr
17806 echo 'BEGIN {' >"$tmp/subs1.awk" &&
17807 _ACEOF
17811 echo "cat >conf$$subs.awk <<_ACEOF" &&
17812 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17813 echo "_ACEOF"
17814 } >conf$$subs.sh ||
17815 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17816 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17817 { (exit 1); exit 1; }; }
17818 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
17819 ac_delim='%!_!# '
17820 for ac_last_try in false false false false false :; do
17821 . ./conf$$subs.sh ||
17822 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17823 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17824 { (exit 1); exit 1; }; }
17826 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17827 if test $ac_delim_n = $ac_delim_num; then
17828 break
17829 elif $ac_last_try; then
17830 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17831 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17832 { (exit 1); exit 1; }; }
17833 else
17834 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17836 done
17837 rm -f conf$$subs.sh
17839 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17840 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
17841 _ACEOF
17842 sed -n '
17844 s/^/S["/; s/!.*/"]=/
17847 s/^[^!]*!//
17848 :repl
17849 t repl
17850 s/'"$ac_delim"'$//
17851 t delim
17854 s/\(.\{148\}\).*/\1/
17855 t more1
17856 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17859 b repl
17860 :more1
17861 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17864 s/.\{148\}//
17865 t nl
17866 :delim
17868 s/\(.\{148\}\).*/\1/
17869 t more2
17870 s/["\\]/\\&/g; s/^/"/; s/$/"/
17873 :more2
17874 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17877 s/.\{148\}//
17878 t delim
17879 ' <conf$$subs.awk | sed '
17880 /^[^""]/{
17882 s/\n//
17884 ' >>$CONFIG_STATUS || ac_write_fail=1
17885 rm -f conf$$subs.awk
17886 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17887 _ACAWK
17888 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
17889 for (key in S) S_is_set[key] = 1
17890 FS = "\a"
17894 line = $ 0
17895 nfields = split(line, field, "@")
17896 substed = 0
17897 len = length(field[1])
17898 for (i = 2; i < nfields; i++) {
17899 key = field[i]
17900 keylen = length(key)
17901 if (S_is_set[key]) {
17902 value = S[key]
17903 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17904 len += length(value) + length(field[++i])
17905 substed = 1
17906 } else
17907 len += 1 + keylen
17910 print line
17913 _ACAWK
17914 _ACEOF
17915 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17916 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17917 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17918 else
17920 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17921 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
17922 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
17923 { (exit 1); exit 1; }; }
17924 _ACEOF
17926 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17927 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17928 # trailing colons and then remove the whole line if VPATH becomes empty
17929 # (actually we leave an empty line to preserve line numbers).
17930 if test "x$srcdir" = x.; then
17931 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17932 s/:*\$(srcdir):*/:/
17933 s/:*\${srcdir}:*/:/
17934 s/:*@srcdir@:*/:/
17935 s/^\([^=]*=[ ]*\):*/\1/
17936 s/:*$//
17937 s/^[^=]*=[ ]*$//
17941 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17942 fi # test -n "$CONFIG_FILES"
17944 # Set up the scripts for CONFIG_HEADERS section.
17945 # No need to generate them if there are no CONFIG_HEADERS.
17946 # This happens for instance with `./config.status Makefile'.
17947 if test -n "$CONFIG_HEADERS"; then
17948 cat >"$tmp/defines.awk" <<\_ACAWK ||
17949 BEGIN {
17950 _ACEOF
17952 # Transform confdefs.h into an awk script `defines.awk', embedded as
17953 # here-document in config.status, that substitutes the proper values into
17954 # config.h.in to produce config.h.
17956 # Create a delimiter string that does not exist in confdefs.h, to ease
17957 # handling of long lines.
17958 ac_delim='%!_!# '
17959 for ac_last_try in false false :; do
17960 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
17961 if test -z "$ac_t"; then
17962 break
17963 elif $ac_last_try; then
17964 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
17965 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
17966 { (exit 1); exit 1; }; }
17967 else
17968 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17970 done
17972 # For the awk script, D is an array of macro values keyed by name,
17973 # likewise P contains macro parameters if any. Preserve backslash
17974 # newline sequences.
17976 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17977 sed -n '
17978 s/.\{148\}/&'"$ac_delim"'/g
17979 t rset
17980 :rset
17981 s/^[ ]*#[ ]*define[ ][ ]*/ /
17982 t def
17984 :def
17985 s/\\$//
17986 t bsnl
17987 s/["\\]/\\&/g
17988 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17989 D["\1"]=" \3"/p
17990 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17992 :bsnl
17993 s/["\\]/\\&/g
17994 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17995 D["\1"]=" \3\\\\\\n"\\/p
17996 t cont
17997 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17998 t cont
18000 :cont
18002 s/.\{148\}/&'"$ac_delim"'/g
18003 t clear
18004 :clear
18005 s/\\$//
18006 t bsnlc
18007 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18009 :bsnlc
18010 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18011 b cont
18012 ' <confdefs.h | sed '
18013 s/'"$ac_delim"'/"\\\
18014 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18016 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18017 for (key in D) D_is_set[key] = 1
18018 FS = "\a"
18020 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18021 line = \$ 0
18022 split(line, arg, " ")
18023 if (arg[1] == "#") {
18024 defundef = arg[2]
18025 mac1 = arg[3]
18026 } else {
18027 defundef = substr(arg[1], 2)
18028 mac1 = arg[2]
18030 split(mac1, mac2, "(") #)
18031 macro = mac2[1]
18032 prefix = substr(line, 1, index(line, defundef) - 1)
18033 if (D_is_set[macro]) {
18034 # Preserve the white space surrounding the "#".
18035 print prefix "define", macro P[macro] D[macro]
18036 next
18037 } else {
18038 # Replace #undef with comments. This is necessary, for example,
18039 # in the case of _POSIX_SOURCE, which is predefined and required
18040 # on some systems where configure will not decide to define it.
18041 if (defundef == "undef") {
18042 print "/*", prefix defundef, macro, "*/"
18043 next
18047 { print }
18048 _ACAWK
18049 _ACEOF
18050 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18051 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
18052 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
18053 { (exit 1); exit 1; }; }
18054 fi # test -n "$CONFIG_HEADERS"
18057 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
18058 shift
18059 for ac_tag
18061 case $ac_tag in
18062 :[FHLC]) ac_mode=$ac_tag; continue;;
18063 esac
18064 case $ac_mode$ac_tag in
18065 :[FHL]*:*);;
18066 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
18067 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
18068 { (exit 1); exit 1; }; };;
18069 :[FH]-) ac_tag=-:-;;
18070 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18071 esac
18072 ac_save_IFS=$IFS
18073 IFS=:
18074 set x $ac_tag
18075 IFS=$ac_save_IFS
18076 shift
18077 ac_file=$1
18078 shift
18080 case $ac_mode in
18081 :L) ac_source=$1;;
18082 :[FH])
18083 ac_file_inputs=
18084 for ac_f
18086 case $ac_f in
18087 -) ac_f="$tmp/stdin";;
18088 *) # Look for the file first in the build tree, then in the source tree
18089 # (if the path is not absolute). The absolute path cannot be DOS-style,
18090 # because $ac_f cannot contain `:'.
18091 test -f "$ac_f" ||
18092 case $ac_f in
18093 [\\/$]*) false;;
18094 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18095 esac ||
18096 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
18097 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
18098 { (exit 1); exit 1; }; };;
18099 esac
18100 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18101 ac_file_inputs="$ac_file_inputs '$ac_f'"
18102 done
18104 # Let's still pretend it is `configure' which instantiates (i.e., don't
18105 # use $as_me), people would be surprised to read:
18106 # /* config.h. Generated by config.status. */
18107 configure_input='Generated from '`
18108 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18109 `' by configure.'
18110 if test x"$ac_file" != x-; then
18111 configure_input="$ac_file. $configure_input"
18112 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
18113 $as_echo "$as_me: creating $ac_file" >&6;}
18115 # Neutralize special characters interpreted by sed in replacement strings.
18116 case $configure_input in #(
18117 *\&* | *\|* | *\\* )
18118 ac_sed_conf_input=`$as_echo "$configure_input" |
18119 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18120 *) ac_sed_conf_input=$configure_input;;
18121 esac
18123 case $ac_tag in
18124 *:-:* | *:-) cat >"$tmp/stdin" \
18125 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18126 $as_echo "$as_me: error: could not create $ac_file" >&2;}
18127 { (exit 1); exit 1; }; } ;;
18128 esac
18130 esac
18132 ac_dir=`$as_dirname -- "$ac_file" ||
18133 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18134 X"$ac_file" : 'X\(//\)[^/]' \| \
18135 X"$ac_file" : 'X\(//\)$' \| \
18136 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18137 $as_echo X"$ac_file" |
18138 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18139 s//\1/
18142 /^X\(\/\/\)[^/].*/{
18143 s//\1/
18146 /^X\(\/\/\)$/{
18147 s//\1/
18150 /^X\(\/\).*/{
18151 s//\1/
18154 s/.*/./; q'`
18155 { as_dir="$ac_dir"
18156 case $as_dir in #(
18157 -*) as_dir=./$as_dir;;
18158 esac
18159 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
18160 as_dirs=
18161 while :; do
18162 case $as_dir in #(
18163 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18164 *) as_qdir=$as_dir;;
18165 esac
18166 as_dirs="'$as_qdir' $as_dirs"
18167 as_dir=`$as_dirname -- "$as_dir" ||
18168 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18169 X"$as_dir" : 'X\(//\)[^/]' \| \
18170 X"$as_dir" : 'X\(//\)$' \| \
18171 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18172 $as_echo X"$as_dir" |
18173 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18174 s//\1/
18177 /^X\(\/\/\)[^/].*/{
18178 s//\1/
18181 /^X\(\/\/\)$/{
18182 s//\1/
18185 /^X\(\/\).*/{
18186 s//\1/
18189 s/.*/./; q'`
18190 test -d "$as_dir" && break
18191 done
18192 test -z "$as_dirs" || eval "mkdir $as_dirs"
18193 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
18194 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
18195 { (exit 1); exit 1; }; }; }
18196 ac_builddir=.
18198 case "$ac_dir" in
18199 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18201 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18202 # A ".." for each directory in $ac_dir_suffix.
18203 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18204 case $ac_top_builddir_sub in
18205 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18206 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18207 esac ;;
18208 esac
18209 ac_abs_top_builddir=$ac_pwd
18210 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18211 # for backward compatibility:
18212 ac_top_builddir=$ac_top_build_prefix
18214 case $srcdir in
18215 .) # We are building in place.
18216 ac_srcdir=.
18217 ac_top_srcdir=$ac_top_builddir_sub
18218 ac_abs_top_srcdir=$ac_pwd ;;
18219 [\\/]* | ?:[\\/]* ) # Absolute name.
18220 ac_srcdir=$srcdir$ac_dir_suffix;
18221 ac_top_srcdir=$srcdir
18222 ac_abs_top_srcdir=$srcdir ;;
18223 *) # Relative name.
18224 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18225 ac_top_srcdir=$ac_top_build_prefix$srcdir
18226 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18227 esac
18228 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18231 case $ac_mode in
18234 # CONFIG_FILE
18237 _ACEOF
18239 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18240 # If the template does not know about datarootdir, expand it.
18241 # FIXME: This hack should be removed a few years after 2.60.
18242 ac_datarootdir_hack=; ac_datarootdir_seen=
18244 ac_sed_dataroot='
18245 /datarootdir/ {
18249 /@datadir@/p
18250 /@docdir@/p
18251 /@infodir@/p
18252 /@localedir@/p
18253 /@mandir@/p
18255 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18256 *datarootdir*) ac_datarootdir_seen=yes;;
18257 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18258 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18259 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18260 _ACEOF
18261 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18262 ac_datarootdir_hack='
18263 s&@datadir@&$datadir&g
18264 s&@docdir@&$docdir&g
18265 s&@infodir@&$infodir&g
18266 s&@localedir@&$localedir&g
18267 s&@mandir@&$mandir&g
18268 s&\\\${datarootdir}&$datarootdir&g' ;;
18269 esac
18270 _ACEOF
18272 # Neutralize VPATH when `$srcdir' = `.'.
18273 # Shell code in configure.ac might set extrasub.
18274 # FIXME: do we really want to maintain this feature?
18275 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18276 ac_sed_extra="$ac_vpsub
18277 $extrasub
18278 _ACEOF
18279 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18281 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18282 s|@configure_input@|$ac_sed_conf_input|;t t
18283 s&@top_builddir@&$ac_top_builddir_sub&;t t
18284 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18285 s&@srcdir@&$ac_srcdir&;t t
18286 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18287 s&@top_srcdir@&$ac_top_srcdir&;t t
18288 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18289 s&@builddir@&$ac_builddir&;t t
18290 s&@abs_builddir@&$ac_abs_builddir&;t t
18291 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18292 $ac_datarootdir_hack
18294 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
18295 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18296 $as_echo "$as_me: error: could not create $ac_file" >&2;}
18297 { (exit 1); exit 1; }; }
18299 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18300 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
18301 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
18302 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18303 which seems to be undefined. Please make sure it is defined." >&5
18304 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18305 which seems to be undefined. Please make sure it is defined." >&2;}
18307 rm -f "$tmp/stdin"
18308 case $ac_file in
18309 -) cat "$tmp/out" && rm -f "$tmp/out";;
18310 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18311 esac \
18312 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18313 $as_echo "$as_me: error: could not create $ac_file" >&2;}
18314 { (exit 1); exit 1; }; }
18318 # CONFIG_HEADER
18320 if test x"$ac_file" != x-; then
18322 $as_echo "/* $configure_input */" \
18323 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18324 } >"$tmp/config.h" \
18325 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18326 $as_echo "$as_me: error: could not create $ac_file" >&2;}
18327 { (exit 1); exit 1; }; }
18328 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18329 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18330 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18331 else
18332 rm -f "$ac_file"
18333 mv "$tmp/config.h" "$ac_file" \
18334 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18335 $as_echo "$as_me: error: could not create $ac_file" >&2;}
18336 { (exit 1); exit 1; }; }
18338 else
18339 $as_echo "/* $configure_input */" \
18340 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18341 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
18342 $as_echo "$as_me: error: could not create -" >&2;}
18343 { (exit 1); exit 1; }; }
18348 esac
18350 done # for ac_tag
18353 { (exit 0); exit 0; }
18354 _ACEOF
18355 chmod +x $CONFIG_STATUS
18356 ac_clean_files=$ac_clean_files_save
18358 test $ac_write_fail = 0 ||
18359 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
18360 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
18361 { (exit 1); exit 1; }; }
18364 # configure is writing to config.log, and then calls config.status.
18365 # config.status does its own redirection, appending to config.log.
18366 # Unfortunately, on DOS this fails, as config.log is still kept open
18367 # by configure, so config.status won't be able to write to it; its
18368 # output is simply discarded. So we exec the FD to /dev/null,
18369 # effectively closing config.log, so it can be properly (re)opened and
18370 # appended to by config.status. When coming back to configure, we
18371 # need to make the FD available again.
18372 if test "$no_create" != yes; then
18373 ac_cs_success=:
18374 ac_config_status_args=
18375 test "$silent" = yes &&
18376 ac_config_status_args="$ac_config_status_args --quiet"
18377 exec 5>/dev/null
18378 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18379 exec 5>>auto/config.log
18380 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18381 # would make configure fail if this is the last instruction.
18382 $ac_cs_success || { (exit 1); exit 1; }
18384 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18385 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18386 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}