Merge branch 'vim' into feat/emb-common-lisp
[vim_extended.git] / src / auto / configure
blob13467f748d43ec006fb27a7abf8f6c5564bf8ee6
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.62.
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='SHELL
639 PATH_SEPARATOR
640 PACKAGE_NAME
641 PACKAGE_TARNAME
642 PACKAGE_VERSION
643 PACKAGE_STRING
644 PACKAGE_BUGREPORT
645 exec_prefix
646 prefix
647 program_transform_name
648 bindir
649 sbindir
650 libexecdir
651 datarootdir
652 datadir
653 sysconfdir
654 sharedstatedir
655 localstatedir
656 includedir
657 oldincludedir
658 docdir
659 infodir
660 htmldir
661 dvidir
662 pdfdir
663 psdir
664 libdir
665 localedir
666 mandir
667 DEFS
668 ECHO_C
669 ECHO_N
670 ECHO_T
671 LIBS
672 build_alias
673 host_alias
674 target_alias
675 SET_MAKE
677 CFLAGS
678 LDFLAGS
679 CPPFLAGS
680 ac_ct_CC
681 EXEEXT
682 OBJEXT
684 GREP
685 EGREP
687 STRIP
688 CPP_MM
689 OS_EXTRA_SRC
690 OS_EXTRA_OBJ
691 VIMNAME
692 EXNAME
693 VIEWNAME
694 line_break
695 dovimdiff
696 dogvimdiff
697 compiledby
698 vi_cv_path_mzscheme
699 MZSCHEME_SRC
700 MZSCHEME_OBJ
701 MZSCHEME_PRO
702 MZSCHEME_LIBS
703 MZSCHEME_CFLAGS
704 vi_cv_path_perl
705 vi_cv_perllib
706 shrpenv
707 PERL_SRC
708 PERL_OBJ
709 PERL_PRO
710 PERL_CFLAGS
711 PERL_LIBS
712 vi_cv_path_ecl_config
713 ECL_LIBS
714 ECL_CFLAGS
715 ECL_SRC
716 ECL_OBJ
717 vi_cv_path_python
718 PYTHON_CONFDIR
719 PYTHON_LIBS
720 PYTHON_GETPATH_CFLAGS
721 PYTHON_CFLAGS
722 PYTHON_SRC
723 PYTHON_OBJ
724 vi_cv_path_tcl
725 TCL_SRC
726 TCL_OBJ
727 TCL_PRO
728 TCL_CFLAGS
729 TCL_LIBS
730 vi_cv_path_ruby
731 RUBY_SRC
732 RUBY_OBJ
733 RUBY_PRO
734 RUBY_CFLAGS
735 RUBY_LIBS
736 WORKSHOP_SRC
737 WORKSHOP_OBJ
738 NETBEANS_SRC
739 NETBEANS_OBJ
740 SNIFF_SRC
741 SNIFF_OBJ
742 xmkmfpath
743 XMKMF
744 X_CFLAGS
745 X_PRE_LIBS
746 X_LIBS
747 X_EXTRA_LIBS
748 X_LIB
749 GTK_CONFIG
750 GTK12_CONFIG
751 PKG_CONFIG
752 GTK_CFLAGS
753 GTK_LIBS
754 GTK_LIBNAME
755 GNOME_LIBS
756 GNOME_LIBDIR
757 GNOME_INCLUDEDIR
758 GNOME_CONFIG
759 MOTIF_LIBNAME
760 NARROW_PROTO
761 GUI_INC_LOC
762 GUI_LIB_LOC
763 GUITYPE
764 GUI_X_LIBS
765 HANGULIN_SRC
766 HANGULIN_OBJ
767 TAGPRG
768 INSTALL_LANGS
769 INSTALL_TOOL_LANGS
770 MSGFMT
771 MAKEMO
772 DEPEND_CFLAGS_FILTER
773 LIBOBJS
774 LTLIBOBJS'
775 ac_subst_files=''
776 ac_user_opts='
777 enable_option_checking
778 enable_darwin
779 with_mac_arch
780 with_local_dir
781 with_vim_name
782 with_ex_name
783 with_view_name
784 with_global_runtime
785 with_modified_by
786 enable_selinux
787 with_features
788 with_compiledby
789 enable_xsmp
790 enable_xsmp_interact
791 enable_mzschemeinterp
792 with_plthome
793 enable_perlinterp
794 enable_eclinterp
795 enable_pythoninterp
796 with_python_config_dir
797 enable_tclinterp
798 with_tclsh
799 enable_rubyinterp
800 enable_cscope
801 enable_workshop
802 enable_netbeans
803 enable_sniff
804 enable_multibyte
805 enable_hangulinput
806 enable_xim
807 enable_fontset
808 with_x
809 enable_gui
810 enable_gtk_check
811 enable_gtk2_check
812 enable_gnome_check
813 enable_motif_check
814 enable_athena_check
815 enable_nextaw_check
816 enable_carbon_check
817 with_gtk_prefix
818 with_gtk_exec_prefix
819 enable_gtktest
820 with_gnome_includes
821 with_gnome_libs
822 with_gnome
823 with_motif_lib
824 with_tlib
825 enable_acl
826 enable_gpm
827 enable_sysmouse
828 enable_nls
830 ac_precious_vars='build_alias
831 host_alias
832 target_alias
834 CFLAGS
835 LDFLAGS
836 LIBS
837 CPPFLAGS
839 XMKMF'
842 # Initialize some variables set by options.
843 ac_init_help=
844 ac_init_version=false
845 ac_unrecognized_opts=
846 ac_unrecognized_sep=
847 # The variables have the same names as the options, with
848 # dashes changed to underlines.
849 cache_file=/dev/null
850 exec_prefix=NONE
851 no_create=
852 no_recursion=
853 prefix=NONE
854 program_prefix=NONE
855 program_suffix=NONE
856 program_transform_name=s,x,x,
857 silent=
858 site=
859 srcdir=
860 verbose=
861 x_includes=NONE
862 x_libraries=NONE
864 # Installation directory options.
865 # These are left unexpanded so users can "make install exec_prefix=/foo"
866 # and all the variables that are supposed to be based on exec_prefix
867 # by default will actually change.
868 # Use braces instead of parens because sh, perl, etc. also accept them.
869 # (The list follows the same order as the GNU Coding Standards.)
870 bindir='${exec_prefix}/bin'
871 sbindir='${exec_prefix}/sbin'
872 libexecdir='${exec_prefix}/libexec'
873 datarootdir='${prefix}/share'
874 datadir='${datarootdir}'
875 sysconfdir='${prefix}/etc'
876 sharedstatedir='${prefix}/com'
877 localstatedir='${prefix}/var'
878 includedir='${prefix}/include'
879 oldincludedir='/usr/include'
880 docdir='${datarootdir}/doc/${PACKAGE}'
881 infodir='${datarootdir}/info'
882 htmldir='${docdir}'
883 dvidir='${docdir}'
884 pdfdir='${docdir}'
885 psdir='${docdir}'
886 libdir='${exec_prefix}/lib'
887 localedir='${datarootdir}/locale'
888 mandir='${datarootdir}/man'
890 ac_prev=
891 ac_dashdash=
892 for ac_option
894 # If the previous option needs an argument, assign it.
895 if test -n "$ac_prev"; then
896 eval $ac_prev=\$ac_option
897 ac_prev=
898 continue
901 case $ac_option in
902 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
903 *) ac_optarg=yes ;;
904 esac
906 # Accept the important Cygnus configure options, so we can diagnose typos.
908 case $ac_dashdash$ac_option in
910 ac_dashdash=yes ;;
912 -bindir | --bindir | --bindi | --bind | --bin | --bi)
913 ac_prev=bindir ;;
914 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
915 bindir=$ac_optarg ;;
917 -build | --build | --buil | --bui | --bu)
918 ac_prev=build_alias ;;
919 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
920 build_alias=$ac_optarg ;;
922 -cache-file | --cache-file | --cache-fil | --cache-fi \
923 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
924 ac_prev=cache_file ;;
925 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
926 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
927 cache_file=$ac_optarg ;;
929 --config-cache | -C)
930 cache_file=config.cache ;;
932 -datadir | --datadir | --datadi | --datad)
933 ac_prev=datadir ;;
934 -datadir=* | --datadir=* | --datadi=* | --datad=*)
935 datadir=$ac_optarg ;;
937 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
938 | --dataroo | --dataro | --datar)
939 ac_prev=datarootdir ;;
940 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
941 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
942 datarootdir=$ac_optarg ;;
944 -disable-* | --disable-*)
945 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
946 # Reject names that are not valid shell variable names.
947 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
948 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
949 { (exit 1); exit 1; }; }
950 ac_useropt_orig=$ac_useropt
951 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
952 case $ac_user_opts in
954 "enable_$ac_useropt"
955 "*) ;;
956 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
957 ac_unrecognized_sep=', ';;
958 esac
959 eval enable_$ac_useropt=no ;;
961 -docdir | --docdir | --docdi | --doc | --do)
962 ac_prev=docdir ;;
963 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
964 docdir=$ac_optarg ;;
966 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
967 ac_prev=dvidir ;;
968 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
969 dvidir=$ac_optarg ;;
971 -enable-* | --enable-*)
972 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
973 # Reject names that are not valid shell variable names.
974 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
975 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
976 { (exit 1); exit 1; }; }
977 ac_useropt_orig=$ac_useropt
978 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
979 case $ac_user_opts in
981 "enable_$ac_useropt"
982 "*) ;;
983 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
984 ac_unrecognized_sep=', ';;
985 esac
986 eval enable_$ac_useropt=\$ac_optarg ;;
988 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
989 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
990 | --exec | --exe | --ex)
991 ac_prev=exec_prefix ;;
992 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
993 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
994 | --exec=* | --exe=* | --ex=*)
995 exec_prefix=$ac_optarg ;;
997 -gas | --gas | --ga | --g)
998 # Obsolete; use --with-gas.
999 with_gas=yes ;;
1001 -help | --help | --hel | --he | -h)
1002 ac_init_help=long ;;
1003 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1004 ac_init_help=recursive ;;
1005 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1006 ac_init_help=short ;;
1008 -host | --host | --hos | --ho)
1009 ac_prev=host_alias ;;
1010 -host=* | --host=* | --hos=* | --ho=*)
1011 host_alias=$ac_optarg ;;
1013 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1014 ac_prev=htmldir ;;
1015 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1016 | --ht=*)
1017 htmldir=$ac_optarg ;;
1019 -includedir | --includedir | --includedi | --included | --include \
1020 | --includ | --inclu | --incl | --inc)
1021 ac_prev=includedir ;;
1022 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1023 | --includ=* | --inclu=* | --incl=* | --inc=*)
1024 includedir=$ac_optarg ;;
1026 -infodir | --infodir | --infodi | --infod | --info | --inf)
1027 ac_prev=infodir ;;
1028 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1029 infodir=$ac_optarg ;;
1031 -libdir | --libdir | --libdi | --libd)
1032 ac_prev=libdir ;;
1033 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1034 libdir=$ac_optarg ;;
1036 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1037 | --libexe | --libex | --libe)
1038 ac_prev=libexecdir ;;
1039 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1040 | --libexe=* | --libex=* | --libe=*)
1041 libexecdir=$ac_optarg ;;
1043 -localedir | --localedir | --localedi | --localed | --locale)
1044 ac_prev=localedir ;;
1045 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1046 localedir=$ac_optarg ;;
1048 -localstatedir | --localstatedir | --localstatedi | --localstated \
1049 | --localstate | --localstat | --localsta | --localst | --locals)
1050 ac_prev=localstatedir ;;
1051 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1052 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1053 localstatedir=$ac_optarg ;;
1055 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1056 ac_prev=mandir ;;
1057 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1058 mandir=$ac_optarg ;;
1060 -nfp | --nfp | --nf)
1061 # Obsolete; use --without-fp.
1062 with_fp=no ;;
1064 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1065 | --no-cr | --no-c | -n)
1066 no_create=yes ;;
1068 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1069 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1070 no_recursion=yes ;;
1072 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1073 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1074 | --oldin | --oldi | --old | --ol | --o)
1075 ac_prev=oldincludedir ;;
1076 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1077 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1078 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1079 oldincludedir=$ac_optarg ;;
1081 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1082 ac_prev=prefix ;;
1083 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1084 prefix=$ac_optarg ;;
1086 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1087 | --program-pre | --program-pr | --program-p)
1088 ac_prev=program_prefix ;;
1089 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1090 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1091 program_prefix=$ac_optarg ;;
1093 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1094 | --program-suf | --program-su | --program-s)
1095 ac_prev=program_suffix ;;
1096 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1097 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1098 program_suffix=$ac_optarg ;;
1100 -program-transform-name | --program-transform-name \
1101 | --program-transform-nam | --program-transform-na \
1102 | --program-transform-n | --program-transform- \
1103 | --program-transform | --program-transfor \
1104 | --program-transfo | --program-transf \
1105 | --program-trans | --program-tran \
1106 | --progr-tra | --program-tr | --program-t)
1107 ac_prev=program_transform_name ;;
1108 -program-transform-name=* | --program-transform-name=* \
1109 | --program-transform-nam=* | --program-transform-na=* \
1110 | --program-transform-n=* | --program-transform-=* \
1111 | --program-transform=* | --program-transfor=* \
1112 | --program-transfo=* | --program-transf=* \
1113 | --program-trans=* | --program-tran=* \
1114 | --progr-tra=* | --program-tr=* | --program-t=*)
1115 program_transform_name=$ac_optarg ;;
1117 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1118 ac_prev=pdfdir ;;
1119 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1120 pdfdir=$ac_optarg ;;
1122 -psdir | --psdir | --psdi | --psd | --ps)
1123 ac_prev=psdir ;;
1124 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1125 psdir=$ac_optarg ;;
1127 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1128 | -silent | --silent | --silen | --sile | --sil)
1129 silent=yes ;;
1131 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1132 ac_prev=sbindir ;;
1133 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1134 | --sbi=* | --sb=*)
1135 sbindir=$ac_optarg ;;
1137 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1138 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1139 | --sharedst | --shareds | --shared | --share | --shar \
1140 | --sha | --sh)
1141 ac_prev=sharedstatedir ;;
1142 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1143 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1144 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1145 | --sha=* | --sh=*)
1146 sharedstatedir=$ac_optarg ;;
1148 -site | --site | --sit)
1149 ac_prev=site ;;
1150 -site=* | --site=* | --sit=*)
1151 site=$ac_optarg ;;
1153 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1154 ac_prev=srcdir ;;
1155 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1156 srcdir=$ac_optarg ;;
1158 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1159 | --syscon | --sysco | --sysc | --sys | --sy)
1160 ac_prev=sysconfdir ;;
1161 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1162 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1163 sysconfdir=$ac_optarg ;;
1165 -target | --target | --targe | --targ | --tar | --ta | --t)
1166 ac_prev=target_alias ;;
1167 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1168 target_alias=$ac_optarg ;;
1170 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1171 verbose=yes ;;
1173 -version | --version | --versio | --versi | --vers | -V)
1174 ac_init_version=: ;;
1176 -with-* | --with-*)
1177 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1178 # Reject names that are not valid shell variable names.
1179 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1180 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1181 { (exit 1); exit 1; }; }
1182 ac_useropt_orig=$ac_useropt
1183 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1184 case $ac_user_opts in
1186 "with_$ac_useropt"
1187 "*) ;;
1188 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1189 ac_unrecognized_sep=', ';;
1190 esac
1191 eval with_$ac_useropt=\$ac_optarg ;;
1193 -without-* | --without-*)
1194 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1195 # Reject names that are not valid shell variable names.
1196 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1197 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1198 { (exit 1); exit 1; }; }
1199 ac_useropt_orig=$ac_useropt
1200 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1201 case $ac_user_opts in
1203 "with_$ac_useropt"
1204 "*) ;;
1205 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1206 ac_unrecognized_sep=', ';;
1207 esac
1208 eval with_$ac_useropt=no ;;
1210 --x)
1211 # Obsolete; use --with-x.
1212 with_x=yes ;;
1214 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1215 | --x-incl | --x-inc | --x-in | --x-i)
1216 ac_prev=x_includes ;;
1217 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1218 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1219 x_includes=$ac_optarg ;;
1221 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1222 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1223 ac_prev=x_libraries ;;
1224 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1225 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1226 x_libraries=$ac_optarg ;;
1228 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1229 Try \`$0 --help' for more information." >&2
1230 { (exit 1); exit 1; }; }
1233 *=*)
1234 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1235 # Reject names that are not valid shell variable names.
1236 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1237 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1238 { (exit 1); exit 1; }; }
1239 eval $ac_envvar=\$ac_optarg
1240 export $ac_envvar ;;
1243 # FIXME: should be removed in autoconf 3.0.
1244 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1245 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1246 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1247 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1250 esac
1251 done
1253 if test -n "$ac_prev"; then
1254 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1255 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1256 { (exit 1); exit 1; }; }
1259 if test -n "$ac_unrecognized_opts"; then
1260 case $enable_option_checking in
1261 no) ;;
1262 fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1263 { (exit 1); exit 1; }; } ;;
1264 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1265 esac
1268 # Check all directory arguments for consistency.
1269 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1270 datadir sysconfdir sharedstatedir localstatedir includedir \
1271 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1272 libdir localedir mandir
1274 eval ac_val=\$$ac_var
1275 # Remove trailing slashes.
1276 case $ac_val in
1277 */ )
1278 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1279 eval $ac_var=\$ac_val;;
1280 esac
1281 # Be sure to have absolute directory names.
1282 case $ac_val in
1283 [\\/$]* | ?:[\\/]* ) continue;;
1284 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1285 esac
1286 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1287 { (exit 1); exit 1; }; }
1288 done
1290 # There might be people who depend on the old broken behavior: `$host'
1291 # used to hold the argument of --host etc.
1292 # FIXME: To remove some day.
1293 build=$build_alias
1294 host=$host_alias
1295 target=$target_alias
1297 # FIXME: To remove some day.
1298 if test "x$host_alias" != x; then
1299 if test "x$build_alias" = x; then
1300 cross_compiling=maybe
1301 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1302 If a cross compiler is detected then cross compile mode will be used." >&2
1303 elif test "x$build_alias" != "x$host_alias"; then
1304 cross_compiling=yes
1308 ac_tool_prefix=
1309 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1311 test "$silent" = yes && exec 6>/dev/null
1314 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1315 ac_ls_di=`ls -di .` &&
1316 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1317 { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1318 { (exit 1); exit 1; }; }
1319 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1320 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1321 { (exit 1); exit 1; }; }
1324 # Find the source files, if location was not specified.
1325 if test -z "$srcdir"; then
1326 ac_srcdir_defaulted=yes
1327 # Try the directory containing this script, then the parent directory.
1328 ac_confdir=`$as_dirname -- "$as_myself" ||
1329 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1330 X"$as_myself" : 'X\(//\)[^/]' \| \
1331 X"$as_myself" : 'X\(//\)$' \| \
1332 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1333 $as_echo X"$as_myself" |
1334 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1335 s//\1/
1338 /^X\(\/\/\)[^/].*/{
1339 s//\1/
1342 /^X\(\/\/\)$/{
1343 s//\1/
1346 /^X\(\/\).*/{
1347 s//\1/
1350 s/.*/./; q'`
1351 srcdir=$ac_confdir
1352 if test ! -r "$srcdir/$ac_unique_file"; then
1353 srcdir=..
1355 else
1356 ac_srcdir_defaulted=no
1358 if test ! -r "$srcdir/$ac_unique_file"; then
1359 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1360 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1361 { (exit 1); exit 1; }; }
1363 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1364 ac_abs_confdir=`(
1365 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1366 { (exit 1); exit 1; }; }
1367 pwd)`
1368 # When building in place, set srcdir=.
1369 if test "$ac_abs_confdir" = "$ac_pwd"; then
1370 srcdir=.
1372 # Remove unnecessary trailing slashes from srcdir.
1373 # Double slashes in file names in object file debugging info
1374 # mess up M-x gdb in Emacs.
1375 case $srcdir in
1376 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1377 esac
1378 for ac_var in $ac_precious_vars; do
1379 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1380 eval ac_env_${ac_var}_value=\$${ac_var}
1381 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1382 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1383 done
1386 # Report the --help message.
1388 if test "$ac_init_help" = "long"; then
1389 # Omit some internal or obsolete options to make the list less imposing.
1390 # This message is too long to be a string in the A/UX 3.1 sh.
1391 cat <<_ACEOF
1392 \`configure' configures this package to adapt to many kinds of systems.
1394 Usage: $0 [OPTION]... [VAR=VALUE]...
1396 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1397 VAR=VALUE. See below for descriptions of some of the useful variables.
1399 Defaults for the options are specified in brackets.
1401 Configuration:
1402 -h, --help display this help and exit
1403 --help=short display options specific to this package
1404 --help=recursive display the short help of all the included packages
1405 -V, --version display version information and exit
1406 -q, --quiet, --silent do not print \`checking...' messages
1407 --cache-file=FILE cache test results in FILE [disabled]
1408 -C, --config-cache alias for \`--cache-file=config.cache'
1409 -n, --no-create do not create output files
1410 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1412 Installation directories:
1413 --prefix=PREFIX install architecture-independent files in PREFIX
1414 [$ac_default_prefix]
1415 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1416 [PREFIX]
1418 By default, \`make install' will install all the files in
1419 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1420 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1421 for instance \`--prefix=\$HOME'.
1423 For better control, use the options below.
1425 Fine tuning of the installation directories:
1426 --bindir=DIR user executables [EPREFIX/bin]
1427 --sbindir=DIR system admin executables [EPREFIX/sbin]
1428 --libexecdir=DIR program executables [EPREFIX/libexec]
1429 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1430 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1431 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1432 --libdir=DIR object code libraries [EPREFIX/lib]
1433 --includedir=DIR C header files [PREFIX/include]
1434 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1435 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1436 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1437 --infodir=DIR info documentation [DATAROOTDIR/info]
1438 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1439 --mandir=DIR man documentation [DATAROOTDIR/man]
1440 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1441 --htmldir=DIR html documentation [DOCDIR]
1442 --dvidir=DIR dvi documentation [DOCDIR]
1443 --pdfdir=DIR pdf documentation [DOCDIR]
1444 --psdir=DIR ps documentation [DOCDIR]
1445 _ACEOF
1447 cat <<\_ACEOF
1449 X features:
1450 --x-includes=DIR X include files are in DIR
1451 --x-libraries=DIR X library files are in DIR
1452 _ACEOF
1455 if test -n "$ac_init_help"; then
1457 cat <<\_ACEOF
1459 Optional Features:
1460 --disable-option-checking ignore unrecognized --enable/--with options
1461 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1462 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1463 --disable-darwin Disable Darwin (Mac OS X) support.
1464 --disable-selinux Don't check for SELinux support.
1465 --disable-xsmp Disable XSMP session management
1466 --disable-xsmp-interact Disable XSMP interaction
1467 --enable-mzschemeinterp Include MzScheme interpreter.
1468 --enable-perlinterp Include Perl interpreter.
1469 --enable-eclinterp Include ECL compiler.
1470 --enable-pythoninterp Include Python interpreter.
1471 --enable-tclinterp Include Tcl interpreter.
1472 --enable-rubyinterp Include Ruby interpreter.
1473 --enable-cscope Include cscope interface.
1474 --enable-workshop Include Sun Visual Workshop support.
1475 --disable-netbeans Disable NetBeans integration support.
1476 --enable-sniff Include Sniff interface.
1477 --enable-multibyte Include multibyte editing support.
1478 --enable-hangulinput Include Hangul input support.
1479 --enable-xim Include XIM input support.
1480 --enable-fontset Include X fontset output support.
1481 --enable-gui=OPTS X11 GUI default=auto OPTS=auto/no/gtk/gtk2/gnome/gnome2/motif/athena/neXtaw/photon/carbon
1482 --enable-gtk-check If auto-select GUI, check for GTK default=yes
1483 --enable-gtk2-check If GTK GUI, check for GTK+ 2 default=yes
1484 --enable-gnome-check If GTK GUI, check for GNOME default=no
1485 --enable-motif-check If auto-select GUI, check for Motif default=yes
1486 --enable-athena-check If auto-select GUI, check for Athena default=yes
1487 --enable-nextaw-check If auto-select GUI, check for neXtaw default=yes
1488 --enable-carbon-check If auto-select GUI, check for Carbon default=yes
1489 --disable-gtktest Do not try to compile and run a test GTK program
1490 --disable-acl Don't check for ACL support.
1491 --disable-gpm Don't use gpm (Linux mouse daemon).
1492 --disable-sysmouse Don't use sysmouse (mouse in *BSD console).
1493 --disable-nls Don't support NLS (gettext()).
1495 Optional Packages:
1496 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1497 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1498 --with-mac-arch=ARCH current, intel, ppc or both
1499 --with-local-dir=PATH search PATH instead of /usr/local for local libraries.
1500 --without-local-dir do not search /usr/local for local libraries.
1501 --with-vim-name=NAME what to call the Vim executable
1502 --with-ex-name=NAME what to call the Ex executable
1503 --with-view-name=NAME what to call the View executable
1504 --with-global-runtime=DIR global runtime directory in 'runtimepath'
1505 --with-modified-by=NAME name of who modified a release version
1506 --with-features=TYPE tiny, small, normal, big or huge (default: normal)
1507 --with-compiledby=NAME name to show in :version message
1508 --with-plthome=PLTHOME Use PLTHOME.
1509 --with-python-config-dir=PATH Python's config directory
1510 --with-tclsh=PATH which tclsh to use (default: tclsh8.0)
1511 --with-x use the X Window System
1512 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1513 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1514 --with-gnome-includes=DIR Specify location of GNOME headers
1515 --with-gnome-libs=DIR Specify location of GNOME libs
1516 --with-gnome Specify prefix for GNOME files
1517 --with-motif-lib=STRING Library for Motif
1518 --with-tlib=library terminal library to be used
1520 Some influential environment variables:
1521 CC C compiler command
1522 CFLAGS C compiler flags
1523 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1524 nonstandard directory <lib dir>
1525 LIBS libraries to pass to the linker, e.g. -l<library>
1526 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1527 you have headers in a nonstandard directory <include dir>
1528 CPP C preprocessor
1529 XMKMF Path to xmkmf, Makefile generator for X Window System
1531 Use these variables to override the choices made by `configure' or to help
1532 it to find libraries and programs with nonstandard names/locations.
1534 _ACEOF
1535 ac_status=$?
1538 if test "$ac_init_help" = "recursive"; then
1539 # If there are subdirs, report their specific --help.
1540 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1541 test -d "$ac_dir" ||
1542 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1543 continue
1544 ac_builddir=.
1546 case "$ac_dir" in
1547 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1549 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1550 # A ".." for each directory in $ac_dir_suffix.
1551 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1552 case $ac_top_builddir_sub in
1553 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1554 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1555 esac ;;
1556 esac
1557 ac_abs_top_builddir=$ac_pwd
1558 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1559 # for backward compatibility:
1560 ac_top_builddir=$ac_top_build_prefix
1562 case $srcdir in
1563 .) # We are building in place.
1564 ac_srcdir=.
1565 ac_top_srcdir=$ac_top_builddir_sub
1566 ac_abs_top_srcdir=$ac_pwd ;;
1567 [\\/]* | ?:[\\/]* ) # Absolute name.
1568 ac_srcdir=$srcdir$ac_dir_suffix;
1569 ac_top_srcdir=$srcdir
1570 ac_abs_top_srcdir=$srcdir ;;
1571 *) # Relative name.
1572 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1573 ac_top_srcdir=$ac_top_build_prefix$srcdir
1574 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1575 esac
1576 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1578 cd "$ac_dir" || { ac_status=$?; continue; }
1579 # Check for guested configure.
1580 if test -f "$ac_srcdir/configure.gnu"; then
1581 echo &&
1582 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1583 elif test -f "$ac_srcdir/configure"; then
1584 echo &&
1585 $SHELL "$ac_srcdir/configure" --help=recursive
1586 else
1587 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1588 fi || ac_status=$?
1589 cd "$ac_pwd" || { ac_status=$?; break; }
1590 done
1593 test -n "$ac_init_help" && exit $ac_status
1594 if $ac_init_version; then
1595 cat <<\_ACEOF
1596 configure
1597 generated by GNU Autoconf 2.62
1599 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1600 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1601 This configure script is free software; the Free Software Foundation
1602 gives unlimited permission to copy, distribute and modify it.
1603 _ACEOF
1604 exit
1606 cat >auto/config.log <<_ACEOF
1607 This file contains any messages produced by compilers while
1608 running configure, to aid debugging if configure makes a mistake.
1610 It was created by $as_me, which was
1611 generated by GNU Autoconf 2.62. Invocation command line was
1613 $ $0 $@
1615 _ACEOF
1616 exec 5>>auto/config.log
1618 cat <<_ASUNAME
1619 ## --------- ##
1620 ## Platform. ##
1621 ## --------- ##
1623 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1624 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1625 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1626 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1627 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1629 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1630 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1632 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1633 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1634 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1635 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1636 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1637 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1638 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1640 _ASUNAME
1642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1643 for as_dir in $PATH
1645 IFS=$as_save_IFS
1646 test -z "$as_dir" && as_dir=.
1647 $as_echo "PATH: $as_dir"
1648 done
1649 IFS=$as_save_IFS
1651 } >&5
1653 cat >&5 <<_ACEOF
1656 ## ----------- ##
1657 ## Core tests. ##
1658 ## ----------- ##
1660 _ACEOF
1663 # Keep a trace of the command line.
1664 # Strip out --no-create and --no-recursion so they do not pile up.
1665 # Strip out --silent because we don't want to record it for future runs.
1666 # Also quote any args containing shell meta-characters.
1667 # Make two passes to allow for proper duplicate-argument suppression.
1668 ac_configure_args=
1669 ac_configure_args0=
1670 ac_configure_args1=
1671 ac_must_keep_next=false
1672 for ac_pass in 1 2
1674 for ac_arg
1676 case $ac_arg in
1677 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1678 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1679 | -silent | --silent | --silen | --sile | --sil)
1680 continue ;;
1681 *\'*)
1682 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1683 esac
1684 case $ac_pass in
1685 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1687 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1688 if test $ac_must_keep_next = true; then
1689 ac_must_keep_next=false # Got value, back to normal.
1690 else
1691 case $ac_arg in
1692 *=* | --config-cache | -C | -disable-* | --disable-* \
1693 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1694 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1695 | -with-* | --with-* | -without-* | --without-* | --x)
1696 case "$ac_configure_args0 " in
1697 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1698 esac
1700 -* ) ac_must_keep_next=true ;;
1701 esac
1703 ac_configure_args="$ac_configure_args '$ac_arg'"
1705 esac
1706 done
1707 done
1708 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1709 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1711 # When interrupted or exit'd, cleanup temporary files, and complete
1712 # config.log. We remove comments because anyway the quotes in there
1713 # would cause problems or look ugly.
1714 # WARNING: Use '\'' to represent an apostrophe within the trap.
1715 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1716 trap 'exit_status=$?
1717 # Save into config.log some information that might help in debugging.
1719 echo
1721 cat <<\_ASBOX
1722 ## ---------------- ##
1723 ## Cache variables. ##
1724 ## ---------------- ##
1725 _ASBOX
1726 echo
1727 # The following way of writing the cache mishandles newlines in values,
1729 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1730 eval ac_val=\$$ac_var
1731 case $ac_val in #(
1732 *${as_nl}*)
1733 case $ac_var in #(
1734 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1735 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1736 esac
1737 case $ac_var in #(
1738 _ | IFS | as_nl) ;; #(
1739 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1740 *) $as_unset $ac_var ;;
1741 esac ;;
1742 esac
1743 done
1744 (set) 2>&1 |
1745 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1746 *${as_nl}ac_space=\ *)
1747 sed -n \
1748 "s/'\''/'\''\\\\'\'''\''/g;
1749 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1750 ;; #(
1752 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1754 esac |
1755 sort
1757 echo
1759 cat <<\_ASBOX
1760 ## ----------------- ##
1761 ## Output variables. ##
1762 ## ----------------- ##
1763 _ASBOX
1764 echo
1765 for ac_var in $ac_subst_vars
1767 eval ac_val=\$$ac_var
1768 case $ac_val in
1769 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1770 esac
1771 $as_echo "$ac_var='\''$ac_val'\''"
1772 done | sort
1773 echo
1775 if test -n "$ac_subst_files"; then
1776 cat <<\_ASBOX
1777 ## ------------------- ##
1778 ## File substitutions. ##
1779 ## ------------------- ##
1780 _ASBOX
1781 echo
1782 for ac_var in $ac_subst_files
1784 eval ac_val=\$$ac_var
1785 case $ac_val in
1786 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1787 esac
1788 $as_echo "$ac_var='\''$ac_val'\''"
1789 done | sort
1790 echo
1793 if test -s confdefs.h; then
1794 cat <<\_ASBOX
1795 ## ----------- ##
1796 ## confdefs.h. ##
1797 ## ----------- ##
1798 _ASBOX
1799 echo
1800 cat confdefs.h
1801 echo
1803 test "$ac_signal" != 0 &&
1804 $as_echo "$as_me: caught signal $ac_signal"
1805 $as_echo "$as_me: exit $exit_status"
1806 } >&5
1807 rm -f core *.core core.conftest.* &&
1808 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1809 exit $exit_status
1811 for ac_signal in 1 2 13 15; do
1812 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1813 done
1814 ac_signal=0
1816 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1817 rm -f -r conftest* confdefs.h
1819 # Predefined preprocessor variables.
1821 cat >>confdefs.h <<_ACEOF
1822 #define PACKAGE_NAME "$PACKAGE_NAME"
1823 _ACEOF
1826 cat >>confdefs.h <<_ACEOF
1827 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1828 _ACEOF
1831 cat >>confdefs.h <<_ACEOF
1832 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1833 _ACEOF
1836 cat >>confdefs.h <<_ACEOF
1837 #define PACKAGE_STRING "$PACKAGE_STRING"
1838 _ACEOF
1841 cat >>confdefs.h <<_ACEOF
1842 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1843 _ACEOF
1846 # Let the site file select an alternate cache file if it wants to.
1847 # Prefer an explicitly selected file to automatically selected ones.
1848 ac_site_file1=NONE
1849 ac_site_file2=NONE
1850 if test -n "$CONFIG_SITE"; then
1851 ac_site_file1=$CONFIG_SITE
1852 elif test "x$prefix" != xNONE; then
1853 ac_site_file1=$prefix/share/config.site
1854 ac_site_file2=$prefix/etc/config.site
1855 else
1856 ac_site_file1=$ac_default_prefix/share/config.site
1857 ac_site_file2=$ac_default_prefix/etc/config.site
1859 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1861 test "x$ac_site_file" = xNONE && continue
1862 if test -r "$ac_site_file"; then
1863 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1864 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1865 sed 's/^/| /' "$ac_site_file" >&5
1866 . "$ac_site_file"
1868 done
1870 if test -r "$cache_file"; then
1871 # Some versions of bash will fail to source /dev/null (special
1872 # files actually), so we avoid doing that.
1873 if test -f "$cache_file"; then
1874 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1875 $as_echo "$as_me: loading cache $cache_file" >&6;}
1876 case $cache_file in
1877 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1878 *) . "./$cache_file";;
1879 esac
1881 else
1882 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1883 $as_echo "$as_me: creating cache $cache_file" >&6;}
1884 >$cache_file
1887 # Check that the precious variables saved in the cache have kept the same
1888 # value.
1889 ac_cache_corrupted=false
1890 for ac_var in $ac_precious_vars; do
1891 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1892 eval ac_new_set=\$ac_env_${ac_var}_set
1893 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1894 eval ac_new_val=\$ac_env_${ac_var}_value
1895 case $ac_old_set,$ac_new_set in
1896 set,)
1897 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1898 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1899 ac_cache_corrupted=: ;;
1900 ,set)
1901 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1902 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1903 ac_cache_corrupted=: ;;
1904 ,);;
1906 if test "x$ac_old_val" != "x$ac_new_val"; then
1907 # differences in whitespace do not lead to failure.
1908 ac_old_val_w=`echo x $ac_old_val`
1909 ac_new_val_w=`echo x $ac_new_val`
1910 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1911 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1912 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1913 ac_cache_corrupted=:
1914 else
1915 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1916 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1917 eval $ac_var=\$ac_old_val
1919 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1920 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1921 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1922 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1923 fi;;
1924 esac
1925 # Pass precious variables to config.status.
1926 if test "$ac_new_set" = set; then
1927 case $ac_new_val in
1928 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1929 *) ac_arg=$ac_var=$ac_new_val ;;
1930 esac
1931 case " $ac_configure_args " in
1932 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1933 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1934 esac
1936 done
1937 if $ac_cache_corrupted; then
1938 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1939 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1940 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1941 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1942 { (exit 1); exit 1; }; }
1961 ac_ext=c
1962 ac_cpp='$CPP $CPPFLAGS'
1963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1968 ac_config_headers="$ac_config_headers auto/config.h:config.h.in"
1971 cat >>confdefs.h <<\_ACEOF
1972 #define UNIX 1
1973 _ACEOF
1975 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1976 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
1977 set x ${MAKE-make}
1978 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
1979 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
1980 $as_echo_n "(cached) " >&6
1981 else
1982 cat >conftest.make <<\_ACEOF
1983 SHELL = /bin/sh
1984 all:
1985 @echo '@@@%%%=$(MAKE)=@@@%%%'
1986 _ACEOF
1987 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1988 case `${MAKE-make} -f conftest.make 2>/dev/null` in
1989 *@@@%%%=?*=@@@%%%*)
1990 eval ac_cv_prog_make_${ac_make}_set=yes;;
1992 eval ac_cv_prog_make_${ac_make}_set=no;;
1993 esac
1994 rm -f conftest.make
1996 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
1997 { $as_echo "$as_me:$LINENO: result: yes" >&5
1998 $as_echo "yes" >&6; }
1999 SET_MAKE=
2000 else
2001 { $as_echo "$as_me:$LINENO: result: no" >&5
2002 $as_echo "no" >&6; }
2003 SET_MAKE="MAKE=${MAKE-make}"
2007 ac_ext=c
2008 ac_cpp='$CPP $CPPFLAGS'
2009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2012 if test -n "$ac_tool_prefix"; then
2013 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2014 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2015 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2016 $as_echo_n "checking for $ac_word... " >&6; }
2017 if test "${ac_cv_prog_CC+set}" = set; then
2018 $as_echo_n "(cached) " >&6
2019 else
2020 if test -n "$CC"; then
2021 ac_cv_prog_CC="$CC" # Let the user override the test.
2022 else
2023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2024 for as_dir in $PATH
2026 IFS=$as_save_IFS
2027 test -z "$as_dir" && as_dir=.
2028 for ac_exec_ext in '' $ac_executable_extensions; do
2029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2030 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2031 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2032 break 2
2034 done
2035 done
2036 IFS=$as_save_IFS
2040 CC=$ac_cv_prog_CC
2041 if test -n "$CC"; then
2042 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2043 $as_echo "$CC" >&6; }
2044 else
2045 { $as_echo "$as_me:$LINENO: result: no" >&5
2046 $as_echo "no" >&6; }
2051 if test -z "$ac_cv_prog_CC"; then
2052 ac_ct_CC=$CC
2053 # Extract the first word of "gcc", so it can be a program name with args.
2054 set dummy gcc; ac_word=$2
2055 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2056 $as_echo_n "checking for $ac_word... " >&6; }
2057 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2058 $as_echo_n "(cached) " >&6
2059 else
2060 if test -n "$ac_ct_CC"; then
2061 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2062 else
2063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2064 for as_dir in $PATH
2066 IFS=$as_save_IFS
2067 test -z "$as_dir" && as_dir=.
2068 for ac_exec_ext in '' $ac_executable_extensions; do
2069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2070 ac_cv_prog_ac_ct_CC="gcc"
2071 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2072 break 2
2074 done
2075 done
2076 IFS=$as_save_IFS
2080 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2081 if test -n "$ac_ct_CC"; then
2082 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2083 $as_echo "$ac_ct_CC" >&6; }
2084 else
2085 { $as_echo "$as_me:$LINENO: result: no" >&5
2086 $as_echo "no" >&6; }
2089 if test "x$ac_ct_CC" = x; then
2090 CC=""
2091 else
2092 case $cross_compiling:$ac_tool_warned in
2093 yes:)
2094 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2095 whose name does not start with the host triplet. If you think this
2096 configuration is useful to you, please write to autoconf@gnu.org." >&5
2097 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2098 whose name does not start with the host triplet. If you think this
2099 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2100 ac_tool_warned=yes ;;
2101 esac
2102 CC=$ac_ct_CC
2104 else
2105 CC="$ac_cv_prog_CC"
2108 if test -z "$CC"; then
2109 if test -n "$ac_tool_prefix"; then
2110 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2111 set dummy ${ac_tool_prefix}cc; ac_word=$2
2112 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2113 $as_echo_n "checking for $ac_word... " >&6; }
2114 if test "${ac_cv_prog_CC+set}" = set; then
2115 $as_echo_n "(cached) " >&6
2116 else
2117 if test -n "$CC"; then
2118 ac_cv_prog_CC="$CC" # Let the user override the test.
2119 else
2120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2121 for as_dir in $PATH
2123 IFS=$as_save_IFS
2124 test -z "$as_dir" && as_dir=.
2125 for ac_exec_ext in '' $ac_executable_extensions; do
2126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2127 ac_cv_prog_CC="${ac_tool_prefix}cc"
2128 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2129 break 2
2131 done
2132 done
2133 IFS=$as_save_IFS
2137 CC=$ac_cv_prog_CC
2138 if test -n "$CC"; then
2139 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2140 $as_echo "$CC" >&6; }
2141 else
2142 { $as_echo "$as_me:$LINENO: result: no" >&5
2143 $as_echo "no" >&6; }
2149 if test -z "$CC"; then
2150 # Extract the first word of "cc", so it can be a program name with args.
2151 set dummy cc; ac_word=$2
2152 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2153 $as_echo_n "checking for $ac_word... " >&6; }
2154 if test "${ac_cv_prog_CC+set}" = set; then
2155 $as_echo_n "(cached) " >&6
2156 else
2157 if test -n "$CC"; then
2158 ac_cv_prog_CC="$CC" # Let the user override the test.
2159 else
2160 ac_prog_rejected=no
2161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2162 for as_dir in $PATH
2164 IFS=$as_save_IFS
2165 test -z "$as_dir" && as_dir=.
2166 for ac_exec_ext in '' $ac_executable_extensions; do
2167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2168 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2169 ac_prog_rejected=yes
2170 continue
2172 ac_cv_prog_CC="cc"
2173 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2174 break 2
2176 done
2177 done
2178 IFS=$as_save_IFS
2180 if test $ac_prog_rejected = yes; then
2181 # We found a bogon in the path, so make sure we never use it.
2182 set dummy $ac_cv_prog_CC
2183 shift
2184 if test $# != 0; then
2185 # We chose a different compiler from the bogus one.
2186 # However, it has the same basename, so the bogon will be chosen
2187 # first if we set CC to just the basename; use the full file name.
2188 shift
2189 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2194 CC=$ac_cv_prog_CC
2195 if test -n "$CC"; then
2196 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2197 $as_echo "$CC" >&6; }
2198 else
2199 { $as_echo "$as_me:$LINENO: result: no" >&5
2200 $as_echo "no" >&6; }
2205 if test -z "$CC"; then
2206 if test -n "$ac_tool_prefix"; then
2207 for ac_prog in cl.exe
2209 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2210 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2211 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2212 $as_echo_n "checking for $ac_word... " >&6; }
2213 if test "${ac_cv_prog_CC+set}" = set; then
2214 $as_echo_n "(cached) " >&6
2215 else
2216 if test -n "$CC"; then
2217 ac_cv_prog_CC="$CC" # Let the user override the test.
2218 else
2219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2220 for as_dir in $PATH
2222 IFS=$as_save_IFS
2223 test -z "$as_dir" && as_dir=.
2224 for ac_exec_ext in '' $ac_executable_extensions; do
2225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2226 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2227 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2228 break 2
2230 done
2231 done
2232 IFS=$as_save_IFS
2236 CC=$ac_cv_prog_CC
2237 if test -n "$CC"; then
2238 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2239 $as_echo "$CC" >&6; }
2240 else
2241 { $as_echo "$as_me:$LINENO: result: no" >&5
2242 $as_echo "no" >&6; }
2246 test -n "$CC" && break
2247 done
2249 if test -z "$CC"; then
2250 ac_ct_CC=$CC
2251 for ac_prog in cl.exe
2253 # Extract the first word of "$ac_prog", so it can be a program name with args.
2254 set dummy $ac_prog; ac_word=$2
2255 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2256 $as_echo_n "checking for $ac_word... " >&6; }
2257 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2258 $as_echo_n "(cached) " >&6
2259 else
2260 if test -n "$ac_ct_CC"; then
2261 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2262 else
2263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2264 for as_dir in $PATH
2266 IFS=$as_save_IFS
2267 test -z "$as_dir" && as_dir=.
2268 for ac_exec_ext in '' $ac_executable_extensions; do
2269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2270 ac_cv_prog_ac_ct_CC="$ac_prog"
2271 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2272 break 2
2274 done
2275 done
2276 IFS=$as_save_IFS
2280 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2281 if test -n "$ac_ct_CC"; then
2282 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2283 $as_echo "$ac_ct_CC" >&6; }
2284 else
2285 { $as_echo "$as_me:$LINENO: result: no" >&5
2286 $as_echo "no" >&6; }
2290 test -n "$ac_ct_CC" && break
2291 done
2293 if test "x$ac_ct_CC" = x; then
2294 CC=""
2295 else
2296 case $cross_compiling:$ac_tool_warned in
2297 yes:)
2298 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2299 whose name does not start with the host triplet. If you think this
2300 configuration is useful to you, please write to autoconf@gnu.org." >&5
2301 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2302 whose name does not start with the host triplet. If you think this
2303 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2304 ac_tool_warned=yes ;;
2305 esac
2306 CC=$ac_ct_CC
2313 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2314 See \`config.log' for more details." >&5
2315 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2316 See \`config.log' for more details." >&2;}
2317 { (exit 1); exit 1; }; }
2319 # Provide some information about the compiler.
2320 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2321 set X $ac_compile
2322 ac_compiler=$2
2323 { (ac_try="$ac_compiler --version >&5"
2324 case "(($ac_try" in
2325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2326 *) ac_try_echo=$ac_try;;
2327 esac
2328 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2329 $as_echo "$ac_try_echo") >&5
2330 (eval "$ac_compiler --version >&5") 2>&5
2331 ac_status=$?
2332 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2333 (exit $ac_status); }
2334 { (ac_try="$ac_compiler -v >&5"
2335 case "(($ac_try" in
2336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2337 *) ac_try_echo=$ac_try;;
2338 esac
2339 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2340 $as_echo "$ac_try_echo") >&5
2341 (eval "$ac_compiler -v >&5") 2>&5
2342 ac_status=$?
2343 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2344 (exit $ac_status); }
2345 { (ac_try="$ac_compiler -V >&5"
2346 case "(($ac_try" in
2347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2348 *) ac_try_echo=$ac_try;;
2349 esac
2350 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2351 $as_echo "$ac_try_echo") >&5
2352 (eval "$ac_compiler -V >&5") 2>&5
2353 ac_status=$?
2354 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2355 (exit $ac_status); }
2357 cat >conftest.$ac_ext <<_ACEOF
2358 /* confdefs.h. */
2359 _ACEOF
2360 cat confdefs.h >>conftest.$ac_ext
2361 cat >>conftest.$ac_ext <<_ACEOF
2362 /* end confdefs.h. */
2365 main ()
2369 return 0;
2371 _ACEOF
2372 ac_clean_files_save=$ac_clean_files
2373 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2374 # Try to create an executable without -o first, disregard a.out.
2375 # It will help us diagnose broken compilers, and finding out an intuition
2376 # of exeext.
2377 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2378 $as_echo_n "checking for C compiler default output file name... " >&6; }
2379 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2381 # The possible output files:
2382 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2384 ac_rmfiles=
2385 for ac_file in $ac_files
2387 case $ac_file in
2388 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2389 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2390 esac
2391 done
2392 rm -f $ac_rmfiles
2394 if { (ac_try="$ac_link_default"
2395 case "(($ac_try" in
2396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2397 *) ac_try_echo=$ac_try;;
2398 esac
2399 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2400 $as_echo "$ac_try_echo") >&5
2401 (eval "$ac_link_default") 2>&5
2402 ac_status=$?
2403 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404 (exit $ac_status); }; then
2405 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2406 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2407 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2408 # so that the user can short-circuit this test for compilers unknown to
2409 # Autoconf.
2410 for ac_file in $ac_files ''
2412 test -f "$ac_file" || continue
2413 case $ac_file in
2414 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2416 [ab].out )
2417 # We found the default executable, but exeext='' is most
2418 # certainly right.
2419 break;;
2420 *.* )
2421 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2422 then :; else
2423 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2425 # We set ac_cv_exeext here because the later test for it is not
2426 # safe: cross compilers may not add the suffix if given an `-o'
2427 # argument, so we may need to know it at that point already.
2428 # Even if this section looks crufty: it has the advantage of
2429 # actually working.
2430 break;;
2432 break;;
2433 esac
2434 done
2435 test "$ac_cv_exeext" = no && ac_cv_exeext=
2437 else
2438 ac_file=''
2441 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2442 $as_echo "$ac_file" >&6; }
2443 if test -z "$ac_file"; then
2444 $as_echo "$as_me: failed program was:" >&5
2445 sed 's/^/| /' conftest.$ac_ext >&5
2447 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2448 See \`config.log' for more details." >&5
2449 $as_echo "$as_me: error: C compiler cannot create executables
2450 See \`config.log' for more details." >&2;}
2451 { (exit 77); exit 77; }; }
2454 ac_exeext=$ac_cv_exeext
2456 # Check that the compiler produces executables we can run. If not, either
2457 # the compiler is broken, or we cross compile.
2458 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2459 $as_echo_n "checking whether the C compiler works... " >&6; }
2460 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2461 # If not cross compiling, check that we can run a simple program.
2462 if test "$cross_compiling" != yes; then
2463 if { ac_try='./$ac_file'
2464 { (case "(($ac_try" in
2465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2466 *) ac_try_echo=$ac_try;;
2467 esac
2468 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2469 $as_echo "$ac_try_echo") >&5
2470 (eval "$ac_try") 2>&5
2471 ac_status=$?
2472 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473 (exit $ac_status); }; }; then
2474 cross_compiling=no
2475 else
2476 if test "$cross_compiling" = maybe; then
2477 cross_compiling=yes
2478 else
2479 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2480 If you meant to cross compile, use \`--host'.
2481 See \`config.log' for more details." >&5
2482 $as_echo "$as_me: error: cannot run C compiled programs.
2483 If you meant to cross compile, use \`--host'.
2484 See \`config.log' for more details." >&2;}
2485 { (exit 1); exit 1; }; }
2489 { $as_echo "$as_me:$LINENO: result: yes" >&5
2490 $as_echo "yes" >&6; }
2492 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2493 ac_clean_files=$ac_clean_files_save
2494 # Check that the compiler produces executables we can run. If not, either
2495 # the compiler is broken, or we cross compile.
2496 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2497 $as_echo_n "checking whether we are cross compiling... " >&6; }
2498 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2499 $as_echo "$cross_compiling" >&6; }
2501 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2502 $as_echo_n "checking for suffix of executables... " >&6; }
2503 if { (ac_try="$ac_link"
2504 case "(($ac_try" in
2505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2506 *) ac_try_echo=$ac_try;;
2507 esac
2508 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2509 $as_echo "$ac_try_echo") >&5
2510 (eval "$ac_link") 2>&5
2511 ac_status=$?
2512 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2513 (exit $ac_status); }; then
2514 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2515 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2516 # work properly (i.e., refer to `conftest.exe'), while it won't with
2517 # `rm'.
2518 for ac_file in conftest.exe conftest conftest.*; do
2519 test -f "$ac_file" || continue
2520 case $ac_file in
2521 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2522 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2523 break;;
2524 * ) break;;
2525 esac
2526 done
2527 else
2528 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2529 See \`config.log' for more details." >&5
2530 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2531 See \`config.log' for more details." >&2;}
2532 { (exit 1); exit 1; }; }
2535 rm -f conftest$ac_cv_exeext
2536 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2537 $as_echo "$ac_cv_exeext" >&6; }
2539 rm -f conftest.$ac_ext
2540 EXEEXT=$ac_cv_exeext
2541 ac_exeext=$EXEEXT
2542 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2543 $as_echo_n "checking for suffix of object files... " >&6; }
2544 if test "${ac_cv_objext+set}" = set; then
2545 $as_echo_n "(cached) " >&6
2546 else
2547 cat >conftest.$ac_ext <<_ACEOF
2548 /* confdefs.h. */
2549 _ACEOF
2550 cat confdefs.h >>conftest.$ac_ext
2551 cat >>conftest.$ac_ext <<_ACEOF
2552 /* end confdefs.h. */
2555 main ()
2559 return 0;
2561 _ACEOF
2562 rm -f conftest.o conftest.obj
2563 if { (ac_try="$ac_compile"
2564 case "(($ac_try" in
2565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2566 *) ac_try_echo=$ac_try;;
2567 esac
2568 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2569 $as_echo "$ac_try_echo") >&5
2570 (eval "$ac_compile") 2>&5
2571 ac_status=$?
2572 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573 (exit $ac_status); }; then
2574 for ac_file in conftest.o conftest.obj conftest.*; do
2575 test -f "$ac_file" || continue;
2576 case $ac_file in
2577 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2578 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2579 break;;
2580 esac
2581 done
2582 else
2583 $as_echo "$as_me: failed program was:" >&5
2584 sed 's/^/| /' conftest.$ac_ext >&5
2586 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2587 See \`config.log' for more details." >&5
2588 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2589 See \`config.log' for more details." >&2;}
2590 { (exit 1); exit 1; }; }
2593 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2595 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2596 $as_echo "$ac_cv_objext" >&6; }
2597 OBJEXT=$ac_cv_objext
2598 ac_objext=$OBJEXT
2599 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2600 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2601 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2602 $as_echo_n "(cached) " >&6
2603 else
2604 cat >conftest.$ac_ext <<_ACEOF
2605 /* confdefs.h. */
2606 _ACEOF
2607 cat confdefs.h >>conftest.$ac_ext
2608 cat >>conftest.$ac_ext <<_ACEOF
2609 /* end confdefs.h. */
2612 main ()
2614 #ifndef __GNUC__
2615 choke me
2616 #endif
2619 return 0;
2621 _ACEOF
2622 rm -f conftest.$ac_objext
2623 if { (ac_try="$ac_compile"
2624 case "(($ac_try" in
2625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2626 *) ac_try_echo=$ac_try;;
2627 esac
2628 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2629 $as_echo "$ac_try_echo") >&5
2630 (eval "$ac_compile") 2>conftest.er1
2631 ac_status=$?
2632 grep -v '^ *+' conftest.er1 >conftest.err
2633 rm -f conftest.er1
2634 cat conftest.err >&5
2635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636 (exit $ac_status); } && {
2637 test -z "$ac_c_werror_flag" ||
2638 test ! -s conftest.err
2639 } && test -s conftest.$ac_objext; then
2640 ac_compiler_gnu=yes
2641 else
2642 $as_echo "$as_me: failed program was:" >&5
2643 sed 's/^/| /' conftest.$ac_ext >&5
2645 ac_compiler_gnu=no
2648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2649 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2652 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2653 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2654 if test $ac_compiler_gnu = yes; then
2655 GCC=yes
2656 else
2657 GCC=
2659 ac_test_CFLAGS=${CFLAGS+set}
2660 ac_save_CFLAGS=$CFLAGS
2661 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2662 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2663 if test "${ac_cv_prog_cc_g+set}" = set; then
2664 $as_echo_n "(cached) " >&6
2665 else
2666 ac_save_c_werror_flag=$ac_c_werror_flag
2667 ac_c_werror_flag=yes
2668 ac_cv_prog_cc_g=no
2669 CFLAGS="-g"
2670 cat >conftest.$ac_ext <<_ACEOF
2671 /* confdefs.h. */
2672 _ACEOF
2673 cat confdefs.h >>conftest.$ac_ext
2674 cat >>conftest.$ac_ext <<_ACEOF
2675 /* end confdefs.h. */
2678 main ()
2682 return 0;
2684 _ACEOF
2685 rm -f conftest.$ac_objext
2686 if { (ac_try="$ac_compile"
2687 case "(($ac_try" in
2688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2689 *) ac_try_echo=$ac_try;;
2690 esac
2691 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2692 $as_echo "$ac_try_echo") >&5
2693 (eval "$ac_compile") 2>conftest.er1
2694 ac_status=$?
2695 grep -v '^ *+' conftest.er1 >conftest.err
2696 rm -f conftest.er1
2697 cat conftest.err >&5
2698 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699 (exit $ac_status); } && {
2700 test -z "$ac_c_werror_flag" ||
2701 test ! -s conftest.err
2702 } && test -s conftest.$ac_objext; then
2703 ac_cv_prog_cc_g=yes
2704 else
2705 $as_echo "$as_me: failed program was:" >&5
2706 sed 's/^/| /' conftest.$ac_ext >&5
2708 CFLAGS=""
2709 cat >conftest.$ac_ext <<_ACEOF
2710 /* confdefs.h. */
2711 _ACEOF
2712 cat confdefs.h >>conftest.$ac_ext
2713 cat >>conftest.$ac_ext <<_ACEOF
2714 /* end confdefs.h. */
2717 main ()
2721 return 0;
2723 _ACEOF
2724 rm -f conftest.$ac_objext
2725 if { (ac_try="$ac_compile"
2726 case "(($ac_try" in
2727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2728 *) ac_try_echo=$ac_try;;
2729 esac
2730 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2731 $as_echo "$ac_try_echo") >&5
2732 (eval "$ac_compile") 2>conftest.er1
2733 ac_status=$?
2734 grep -v '^ *+' conftest.er1 >conftest.err
2735 rm -f conftest.er1
2736 cat conftest.err >&5
2737 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738 (exit $ac_status); } && {
2739 test -z "$ac_c_werror_flag" ||
2740 test ! -s conftest.err
2741 } && test -s conftest.$ac_objext; then
2743 else
2744 $as_echo "$as_me: failed program was:" >&5
2745 sed 's/^/| /' conftest.$ac_ext >&5
2747 ac_c_werror_flag=$ac_save_c_werror_flag
2748 CFLAGS="-g"
2749 cat >conftest.$ac_ext <<_ACEOF
2750 /* confdefs.h. */
2751 _ACEOF
2752 cat confdefs.h >>conftest.$ac_ext
2753 cat >>conftest.$ac_ext <<_ACEOF
2754 /* end confdefs.h. */
2757 main ()
2761 return 0;
2763 _ACEOF
2764 rm -f conftest.$ac_objext
2765 if { (ac_try="$ac_compile"
2766 case "(($ac_try" in
2767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2768 *) ac_try_echo=$ac_try;;
2769 esac
2770 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2771 $as_echo "$ac_try_echo") >&5
2772 (eval "$ac_compile") 2>conftest.er1
2773 ac_status=$?
2774 grep -v '^ *+' conftest.er1 >conftest.err
2775 rm -f conftest.er1
2776 cat conftest.err >&5
2777 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2778 (exit $ac_status); } && {
2779 test -z "$ac_c_werror_flag" ||
2780 test ! -s conftest.err
2781 } && test -s conftest.$ac_objext; then
2782 ac_cv_prog_cc_g=yes
2783 else
2784 $as_echo "$as_me: failed program was:" >&5
2785 sed 's/^/| /' conftest.$ac_ext >&5
2790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2797 ac_c_werror_flag=$ac_save_c_werror_flag
2799 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2800 $as_echo "$ac_cv_prog_cc_g" >&6; }
2801 if test "$ac_test_CFLAGS" = set; then
2802 CFLAGS=$ac_save_CFLAGS
2803 elif test $ac_cv_prog_cc_g = yes; then
2804 if test "$GCC" = yes; then
2805 CFLAGS="-g -O2"
2806 else
2807 CFLAGS="-g"
2809 else
2810 if test "$GCC" = yes; then
2811 CFLAGS="-O2"
2812 else
2813 CFLAGS=
2816 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2817 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2818 if test "${ac_cv_prog_cc_c89+set}" = set; then
2819 $as_echo_n "(cached) " >&6
2820 else
2821 ac_cv_prog_cc_c89=no
2822 ac_save_CC=$CC
2823 cat >conftest.$ac_ext <<_ACEOF
2824 /* confdefs.h. */
2825 _ACEOF
2826 cat confdefs.h >>conftest.$ac_ext
2827 cat >>conftest.$ac_ext <<_ACEOF
2828 /* end confdefs.h. */
2829 #include <stdarg.h>
2830 #include <stdio.h>
2831 #include <sys/types.h>
2832 #include <sys/stat.h>
2833 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2834 struct buf { int x; };
2835 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2836 static char *e (p, i)
2837 char **p;
2838 int i;
2840 return p[i];
2842 static char *f (char * (*g) (char **, int), char **p, ...)
2844 char *s;
2845 va_list v;
2846 va_start (v,p);
2847 s = g (p, va_arg (v,int));
2848 va_end (v);
2849 return s;
2852 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2853 function prototypes and stuff, but not '\xHH' hex character constants.
2854 These don't provoke an error unfortunately, instead are silently treated
2855 as 'x'. The following induces an error, until -std is added to get
2856 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2857 array size at least. It's necessary to write '\x00'==0 to get something
2858 that's true only with -std. */
2859 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2861 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2862 inside strings and character constants. */
2863 #define FOO(x) 'x'
2864 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2866 int test (int i, double x);
2867 struct s1 {int (*f) (int a);};
2868 struct s2 {int (*f) (double a);};
2869 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2870 int argc;
2871 char **argv;
2873 main ()
2875 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2877 return 0;
2879 _ACEOF
2880 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2881 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2883 CC="$ac_save_CC $ac_arg"
2884 rm -f conftest.$ac_objext
2885 if { (ac_try="$ac_compile"
2886 case "(($ac_try" in
2887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2888 *) ac_try_echo=$ac_try;;
2889 esac
2890 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2891 $as_echo "$ac_try_echo") >&5
2892 (eval "$ac_compile") 2>conftest.er1
2893 ac_status=$?
2894 grep -v '^ *+' conftest.er1 >conftest.err
2895 rm -f conftest.er1
2896 cat conftest.err >&5
2897 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898 (exit $ac_status); } && {
2899 test -z "$ac_c_werror_flag" ||
2900 test ! -s conftest.err
2901 } && test -s conftest.$ac_objext; then
2902 ac_cv_prog_cc_c89=$ac_arg
2903 else
2904 $as_echo "$as_me: failed program was:" >&5
2905 sed 's/^/| /' conftest.$ac_ext >&5
2910 rm -f core conftest.err conftest.$ac_objext
2911 test "x$ac_cv_prog_cc_c89" != "xno" && break
2912 done
2913 rm -f conftest.$ac_ext
2914 CC=$ac_save_CC
2917 # AC_CACHE_VAL
2918 case "x$ac_cv_prog_cc_c89" in
2920 { $as_echo "$as_me:$LINENO: result: none needed" >&5
2921 $as_echo "none needed" >&6; } ;;
2922 xno)
2923 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
2924 $as_echo "unsupported" >&6; } ;;
2926 CC="$CC $ac_cv_prog_cc_c89"
2927 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2928 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2929 esac
2932 ac_ext=c
2933 ac_cpp='$CPP $CPPFLAGS'
2934 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2935 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2936 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2937 ac_ext=c
2938 ac_cpp='$CPP $CPPFLAGS'
2939 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2940 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2941 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2942 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2943 $as_echo_n "checking how to run the C preprocessor... " >&6; }
2944 # On Suns, sometimes $CPP names a directory.
2945 if test -n "$CPP" && test -d "$CPP"; then
2946 CPP=
2948 if test -z "$CPP"; then
2949 if test "${ac_cv_prog_CPP+set}" = set; then
2950 $as_echo_n "(cached) " >&6
2951 else
2952 # Double quotes because CPP needs to be expanded
2953 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2955 ac_preproc_ok=false
2956 for ac_c_preproc_warn_flag in '' yes
2958 # Use a header file that comes with gcc, so configuring glibc
2959 # with a fresh cross-compiler works.
2960 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2961 # <limits.h> exists even on freestanding compilers.
2962 # On the NeXT, cc -E runs the code through the compiler's parser,
2963 # not just through cpp. "Syntax error" is here to catch this case.
2964 cat >conftest.$ac_ext <<_ACEOF
2965 /* confdefs.h. */
2966 _ACEOF
2967 cat confdefs.h >>conftest.$ac_ext
2968 cat >>conftest.$ac_ext <<_ACEOF
2969 /* end confdefs.h. */
2970 #ifdef __STDC__
2971 # include <limits.h>
2972 #else
2973 # include <assert.h>
2974 #endif
2975 Syntax error
2976 _ACEOF
2977 if { (ac_try="$ac_cpp conftest.$ac_ext"
2978 case "(($ac_try" in
2979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2980 *) ac_try_echo=$ac_try;;
2981 esac
2982 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2983 $as_echo "$ac_try_echo") >&5
2984 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2985 ac_status=$?
2986 grep -v '^ *+' conftest.er1 >conftest.err
2987 rm -f conftest.er1
2988 cat conftest.err >&5
2989 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2990 (exit $ac_status); } >/dev/null && {
2991 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2992 test ! -s conftest.err
2993 }; then
2995 else
2996 $as_echo "$as_me: failed program was:" >&5
2997 sed 's/^/| /' conftest.$ac_ext >&5
2999 # Broken: fails on valid input.
3000 continue
3003 rm -f conftest.err conftest.$ac_ext
3005 # OK, works on sane cases. Now check whether nonexistent headers
3006 # can be detected and how.
3007 cat >conftest.$ac_ext <<_ACEOF
3008 /* confdefs.h. */
3009 _ACEOF
3010 cat confdefs.h >>conftest.$ac_ext
3011 cat >>conftest.$ac_ext <<_ACEOF
3012 /* end confdefs.h. */
3013 #include <ac_nonexistent.h>
3014 _ACEOF
3015 if { (ac_try="$ac_cpp conftest.$ac_ext"
3016 case "(($ac_try" in
3017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3018 *) ac_try_echo=$ac_try;;
3019 esac
3020 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3021 $as_echo "$ac_try_echo") >&5
3022 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3023 ac_status=$?
3024 grep -v '^ *+' conftest.er1 >conftest.err
3025 rm -f conftest.er1
3026 cat conftest.err >&5
3027 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3028 (exit $ac_status); } >/dev/null && {
3029 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3030 test ! -s conftest.err
3031 }; then
3032 # Broken: success on invalid input.
3033 continue
3034 else
3035 $as_echo "$as_me: failed program was:" >&5
3036 sed 's/^/| /' conftest.$ac_ext >&5
3038 # Passes both tests.
3039 ac_preproc_ok=:
3040 break
3043 rm -f conftest.err conftest.$ac_ext
3045 done
3046 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3047 rm -f conftest.err conftest.$ac_ext
3048 if $ac_preproc_ok; then
3049 break
3052 done
3053 ac_cv_prog_CPP=$CPP
3056 CPP=$ac_cv_prog_CPP
3057 else
3058 ac_cv_prog_CPP=$CPP
3060 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3061 $as_echo "$CPP" >&6; }
3062 ac_preproc_ok=false
3063 for ac_c_preproc_warn_flag in '' yes
3065 # Use a header file that comes with gcc, so configuring glibc
3066 # with a fresh cross-compiler works.
3067 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3068 # <limits.h> exists even on freestanding compilers.
3069 # On the NeXT, cc -E runs the code through the compiler's parser,
3070 # not just through cpp. "Syntax error" is here to catch this case.
3071 cat >conftest.$ac_ext <<_ACEOF
3072 /* confdefs.h. */
3073 _ACEOF
3074 cat confdefs.h >>conftest.$ac_ext
3075 cat >>conftest.$ac_ext <<_ACEOF
3076 /* end confdefs.h. */
3077 #ifdef __STDC__
3078 # include <limits.h>
3079 #else
3080 # include <assert.h>
3081 #endif
3082 Syntax error
3083 _ACEOF
3084 if { (ac_try="$ac_cpp conftest.$ac_ext"
3085 case "(($ac_try" in
3086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3087 *) ac_try_echo=$ac_try;;
3088 esac
3089 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3090 $as_echo "$ac_try_echo") >&5
3091 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3092 ac_status=$?
3093 grep -v '^ *+' conftest.er1 >conftest.err
3094 rm -f conftest.er1
3095 cat conftest.err >&5
3096 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097 (exit $ac_status); } >/dev/null && {
3098 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3099 test ! -s conftest.err
3100 }; then
3102 else
3103 $as_echo "$as_me: failed program was:" >&5
3104 sed 's/^/| /' conftest.$ac_ext >&5
3106 # Broken: fails on valid input.
3107 continue
3110 rm -f conftest.err conftest.$ac_ext
3112 # OK, works on sane cases. Now check whether nonexistent headers
3113 # can be detected and how.
3114 cat >conftest.$ac_ext <<_ACEOF
3115 /* confdefs.h. */
3116 _ACEOF
3117 cat confdefs.h >>conftest.$ac_ext
3118 cat >>conftest.$ac_ext <<_ACEOF
3119 /* end confdefs.h. */
3120 #include <ac_nonexistent.h>
3121 _ACEOF
3122 if { (ac_try="$ac_cpp conftest.$ac_ext"
3123 case "(($ac_try" in
3124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3125 *) ac_try_echo=$ac_try;;
3126 esac
3127 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3128 $as_echo "$ac_try_echo") >&5
3129 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3130 ac_status=$?
3131 grep -v '^ *+' conftest.er1 >conftest.err
3132 rm -f conftest.er1
3133 cat conftest.err >&5
3134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3135 (exit $ac_status); } >/dev/null && {
3136 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3137 test ! -s conftest.err
3138 }; then
3139 # Broken: success on invalid input.
3140 continue
3141 else
3142 $as_echo "$as_me: failed program was:" >&5
3143 sed 's/^/| /' conftest.$ac_ext >&5
3145 # Passes both tests.
3146 ac_preproc_ok=:
3147 break
3150 rm -f conftest.err conftest.$ac_ext
3152 done
3153 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3154 rm -f conftest.err conftest.$ac_ext
3155 if $ac_preproc_ok; then
3157 else
3158 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3159 See \`config.log' for more details." >&5
3160 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3161 See \`config.log' for more details." >&2;}
3162 { (exit 1); exit 1; }; }
3165 ac_ext=c
3166 ac_cpp='$CPP $CPPFLAGS'
3167 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3168 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3169 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3172 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3173 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3174 if test "${ac_cv_path_GREP+set}" = set; then
3175 $as_echo_n "(cached) " >&6
3176 else
3177 if test -z "$GREP"; then
3178 ac_path_GREP_found=false
3179 # Loop through the user's path and test for each of PROGNAME-LIST
3180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3181 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3183 IFS=$as_save_IFS
3184 test -z "$as_dir" && as_dir=.
3185 for ac_prog in grep ggrep; do
3186 for ac_exec_ext in '' $ac_executable_extensions; do
3187 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3188 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3189 # Check for GNU ac_path_GREP and select it if it is found.
3190 # Check for GNU $ac_path_GREP
3191 case `"$ac_path_GREP" --version 2>&1` in
3192 *GNU*)
3193 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3195 ac_count=0
3196 $as_echo_n 0123456789 >"conftest.in"
3197 while :
3199 cat "conftest.in" "conftest.in" >"conftest.tmp"
3200 mv "conftest.tmp" "conftest.in"
3201 cp "conftest.in" "conftest.nl"
3202 $as_echo 'GREP' >> "conftest.nl"
3203 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3204 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3205 ac_count=`expr $ac_count + 1`
3206 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3207 # Best one so far, save it but keep looking for a better one
3208 ac_cv_path_GREP="$ac_path_GREP"
3209 ac_path_GREP_max=$ac_count
3211 # 10*(2^10) chars as input seems more than enough
3212 test $ac_count -gt 10 && break
3213 done
3214 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3215 esac
3217 $ac_path_GREP_found && break 3
3218 done
3219 done
3220 done
3221 IFS=$as_save_IFS
3222 if test -z "$ac_cv_path_GREP"; then
3223 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3224 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3225 { (exit 1); exit 1; }; }
3227 else
3228 ac_cv_path_GREP=$GREP
3232 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3233 $as_echo "$ac_cv_path_GREP" >&6; }
3234 GREP="$ac_cv_path_GREP"
3237 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3238 $as_echo_n "checking for egrep... " >&6; }
3239 if test "${ac_cv_path_EGREP+set}" = set; then
3240 $as_echo_n "(cached) " >&6
3241 else
3242 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3243 then ac_cv_path_EGREP="$GREP -E"
3244 else
3245 if test -z "$EGREP"; then
3246 ac_path_EGREP_found=false
3247 # Loop through the user's path and test for each of PROGNAME-LIST
3248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3249 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3251 IFS=$as_save_IFS
3252 test -z "$as_dir" && as_dir=.
3253 for ac_prog in egrep; do
3254 for ac_exec_ext in '' $ac_executable_extensions; do
3255 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3256 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3257 # Check for GNU ac_path_EGREP and select it if it is found.
3258 # Check for GNU $ac_path_EGREP
3259 case `"$ac_path_EGREP" --version 2>&1` in
3260 *GNU*)
3261 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3263 ac_count=0
3264 $as_echo_n 0123456789 >"conftest.in"
3265 while :
3267 cat "conftest.in" "conftest.in" >"conftest.tmp"
3268 mv "conftest.tmp" "conftest.in"
3269 cp "conftest.in" "conftest.nl"
3270 $as_echo 'EGREP' >> "conftest.nl"
3271 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3272 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3273 ac_count=`expr $ac_count + 1`
3274 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3275 # Best one so far, save it but keep looking for a better one
3276 ac_cv_path_EGREP="$ac_path_EGREP"
3277 ac_path_EGREP_max=$ac_count
3279 # 10*(2^10) chars as input seems more than enough
3280 test $ac_count -gt 10 && break
3281 done
3282 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3283 esac
3285 $ac_path_EGREP_found && break 3
3286 done
3287 done
3288 done
3289 IFS=$as_save_IFS
3290 if test -z "$ac_cv_path_EGREP"; then
3291 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3292 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3293 { (exit 1); exit 1; }; }
3295 else
3296 ac_cv_path_EGREP=$EGREP
3301 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3302 $as_echo "$ac_cv_path_EGREP" >&6; }
3303 EGREP="$ac_cv_path_EGREP"
3306 cat >conftest.$ac_ext <<_ACEOF
3307 /* confdefs.h. */
3308 _ACEOF
3309 cat confdefs.h >>conftest.$ac_ext
3310 cat >>conftest.$ac_ext <<_ACEOF
3311 /* end confdefs.h. */
3313 _ACEOF
3314 rm -f conftest*
3315 { $as_echo "$as_me:$LINENO: checking for library containing strerror" >&5
3316 $as_echo_n "checking for library containing strerror... " >&6; }
3317 if test "${ac_cv_search_strerror+set}" = set; then
3318 $as_echo_n "(cached) " >&6
3319 else
3320 ac_func_search_save_LIBS=$LIBS
3321 cat >conftest.$ac_ext <<_ACEOF
3322 /* confdefs.h. */
3323 _ACEOF
3324 cat confdefs.h >>conftest.$ac_ext
3325 cat >>conftest.$ac_ext <<_ACEOF
3326 /* end confdefs.h. */
3328 /* Override any GCC internal prototype to avoid an error.
3329 Use char because int might match the return type of a GCC
3330 builtin and then its argument prototype would still apply. */
3331 #ifdef __cplusplus
3332 extern "C"
3333 #endif
3334 char strerror ();
3336 main ()
3338 return strerror ();
3340 return 0;
3342 _ACEOF
3343 for ac_lib in '' cposix; do
3344 if test -z "$ac_lib"; then
3345 ac_res="none required"
3346 else
3347 ac_res=-l$ac_lib
3348 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3350 rm -f conftest.$ac_objext conftest$ac_exeext
3351 if { (ac_try="$ac_link"
3352 case "(($ac_try" in
3353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3354 *) ac_try_echo=$ac_try;;
3355 esac
3356 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3357 $as_echo "$ac_try_echo") >&5
3358 (eval "$ac_link") 2>conftest.er1
3359 ac_status=$?
3360 grep -v '^ *+' conftest.er1 >conftest.err
3361 rm -f conftest.er1
3362 cat conftest.err >&5
3363 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3364 (exit $ac_status); } && {
3365 test -z "$ac_c_werror_flag" ||
3366 test ! -s conftest.err
3367 } && test -s conftest$ac_exeext && {
3368 test "$cross_compiling" = yes ||
3369 $as_test_x conftest$ac_exeext
3370 }; then
3371 ac_cv_search_strerror=$ac_res
3372 else
3373 $as_echo "$as_me: failed program was:" >&5
3374 sed 's/^/| /' conftest.$ac_ext >&5
3379 rm -rf conftest.dSYM
3380 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3381 conftest$ac_exeext
3382 if test "${ac_cv_search_strerror+set}" = set; then
3383 break
3385 done
3386 if test "${ac_cv_search_strerror+set}" = set; then
3388 else
3389 ac_cv_search_strerror=no
3391 rm conftest.$ac_ext
3392 LIBS=$ac_func_search_save_LIBS
3394 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3395 $as_echo "$ac_cv_search_strerror" >&6; }
3396 ac_res=$ac_cv_search_strerror
3397 if test "$ac_res" != no; then
3398 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3401 for ac_prog in gawk mawk nawk awk
3403 # Extract the first word of "$ac_prog", so it can be a program name with args.
3404 set dummy $ac_prog; ac_word=$2
3405 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3406 $as_echo_n "checking for $ac_word... " >&6; }
3407 if test "${ac_cv_prog_AWK+set}" = set; then
3408 $as_echo_n "(cached) " >&6
3409 else
3410 if test -n "$AWK"; then
3411 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3412 else
3413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3414 for as_dir in $PATH
3416 IFS=$as_save_IFS
3417 test -z "$as_dir" && as_dir=.
3418 for ac_exec_ext in '' $ac_executable_extensions; do
3419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3420 ac_cv_prog_AWK="$ac_prog"
3421 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3422 break 2
3424 done
3425 done
3426 IFS=$as_save_IFS
3430 AWK=$ac_cv_prog_AWK
3431 if test -n "$AWK"; then
3432 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
3433 $as_echo "$AWK" >&6; }
3434 else
3435 { $as_echo "$as_me:$LINENO: result: no" >&5
3436 $as_echo "no" >&6; }
3440 test -n "$AWK" && break
3441 done
3443 # Extract the first word of "strip", so it can be a program name with args.
3444 set dummy strip; ac_word=$2
3445 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3446 $as_echo_n "checking for $ac_word... " >&6; }
3447 if test "${ac_cv_prog_STRIP+set}" = set; then
3448 $as_echo_n "(cached) " >&6
3449 else
3450 if test -n "$STRIP"; then
3451 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3452 else
3453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3454 for as_dir in $PATH
3456 IFS=$as_save_IFS
3457 test -z "$as_dir" && as_dir=.
3458 for ac_exec_ext in '' $ac_executable_extensions; do
3459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3460 ac_cv_prog_STRIP="strip"
3461 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3462 break 2
3464 done
3465 done
3466 IFS=$as_save_IFS
3468 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
3471 STRIP=$ac_cv_prog_STRIP
3472 if test -n "$STRIP"; then
3473 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
3474 $as_echo "$STRIP" >&6; }
3475 else
3476 { $as_echo "$as_me:$LINENO: result: no" >&5
3477 $as_echo "no" >&6; }
3484 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3485 $as_echo_n "checking for ANSI C header files... " >&6; }
3486 if test "${ac_cv_header_stdc+set}" = set; then
3487 $as_echo_n "(cached) " >&6
3488 else
3489 cat >conftest.$ac_ext <<_ACEOF
3490 /* confdefs.h. */
3491 _ACEOF
3492 cat confdefs.h >>conftest.$ac_ext
3493 cat >>conftest.$ac_ext <<_ACEOF
3494 /* end confdefs.h. */
3495 #include <stdlib.h>
3496 #include <stdarg.h>
3497 #include <string.h>
3498 #include <float.h>
3501 main ()
3505 return 0;
3507 _ACEOF
3508 rm -f conftest.$ac_objext
3509 if { (ac_try="$ac_compile"
3510 case "(($ac_try" in
3511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3512 *) ac_try_echo=$ac_try;;
3513 esac
3514 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3515 $as_echo "$ac_try_echo") >&5
3516 (eval "$ac_compile") 2>conftest.er1
3517 ac_status=$?
3518 grep -v '^ *+' conftest.er1 >conftest.err
3519 rm -f conftest.er1
3520 cat conftest.err >&5
3521 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3522 (exit $ac_status); } && {
3523 test -z "$ac_c_werror_flag" ||
3524 test ! -s conftest.err
3525 } && test -s conftest.$ac_objext; then
3526 ac_cv_header_stdc=yes
3527 else
3528 $as_echo "$as_me: failed program was:" >&5
3529 sed 's/^/| /' conftest.$ac_ext >&5
3531 ac_cv_header_stdc=no
3534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3536 if test $ac_cv_header_stdc = yes; then
3537 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3538 cat >conftest.$ac_ext <<_ACEOF
3539 /* confdefs.h. */
3540 _ACEOF
3541 cat confdefs.h >>conftest.$ac_ext
3542 cat >>conftest.$ac_ext <<_ACEOF
3543 /* end confdefs.h. */
3544 #include <string.h>
3546 _ACEOF
3547 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3548 $EGREP "memchr" >/dev/null 2>&1; then
3550 else
3551 ac_cv_header_stdc=no
3553 rm -f conftest*
3557 if test $ac_cv_header_stdc = yes; then
3558 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3559 cat >conftest.$ac_ext <<_ACEOF
3560 /* confdefs.h. */
3561 _ACEOF
3562 cat confdefs.h >>conftest.$ac_ext
3563 cat >>conftest.$ac_ext <<_ACEOF
3564 /* end confdefs.h. */
3565 #include <stdlib.h>
3567 _ACEOF
3568 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3569 $EGREP "free" >/dev/null 2>&1; then
3571 else
3572 ac_cv_header_stdc=no
3574 rm -f conftest*
3578 if test $ac_cv_header_stdc = yes; then
3579 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3580 if test "$cross_compiling" = yes; then
3582 else
3583 cat >conftest.$ac_ext <<_ACEOF
3584 /* confdefs.h. */
3585 _ACEOF
3586 cat confdefs.h >>conftest.$ac_ext
3587 cat >>conftest.$ac_ext <<_ACEOF
3588 /* end confdefs.h. */
3589 #include <ctype.h>
3590 #include <stdlib.h>
3591 #if ((' ' & 0x0FF) == 0x020)
3592 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3593 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3594 #else
3595 # define ISLOWER(c) \
3596 (('a' <= (c) && (c) <= 'i') \
3597 || ('j' <= (c) && (c) <= 'r') \
3598 || ('s' <= (c) && (c) <= 'z'))
3599 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3600 #endif
3602 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3604 main ()
3606 int i;
3607 for (i = 0; i < 256; i++)
3608 if (XOR (islower (i), ISLOWER (i))
3609 || toupper (i) != TOUPPER (i))
3610 return 2;
3611 return 0;
3613 _ACEOF
3614 rm -f conftest$ac_exeext
3615 if { (ac_try="$ac_link"
3616 case "(($ac_try" in
3617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3618 *) ac_try_echo=$ac_try;;
3619 esac
3620 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3621 $as_echo "$ac_try_echo") >&5
3622 (eval "$ac_link") 2>&5
3623 ac_status=$?
3624 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3625 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3626 { (case "(($ac_try" in
3627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3628 *) ac_try_echo=$ac_try;;
3629 esac
3630 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3631 $as_echo "$ac_try_echo") >&5
3632 (eval "$ac_try") 2>&5
3633 ac_status=$?
3634 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3635 (exit $ac_status); }; }; then
3637 else
3638 $as_echo "$as_me: program exited with status $ac_status" >&5
3639 $as_echo "$as_me: failed program was:" >&5
3640 sed 's/^/| /' conftest.$ac_ext >&5
3642 ( exit $ac_status )
3643 ac_cv_header_stdc=no
3645 rm -rf conftest.dSYM
3646 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3652 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3653 $as_echo "$ac_cv_header_stdc" >&6; }
3654 if test $ac_cv_header_stdc = yes; then
3656 cat >>confdefs.h <<\_ACEOF
3657 #define STDC_HEADERS 1
3658 _ACEOF
3662 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
3663 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
3664 if test "${ac_cv_header_sys_wait_h+set}" = set; then
3665 $as_echo_n "(cached) " >&6
3666 else
3667 cat >conftest.$ac_ext <<_ACEOF
3668 /* confdefs.h. */
3669 _ACEOF
3670 cat confdefs.h >>conftest.$ac_ext
3671 cat >>conftest.$ac_ext <<_ACEOF
3672 /* end confdefs.h. */
3673 #include <sys/types.h>
3674 #include <sys/wait.h>
3675 #ifndef WEXITSTATUS
3676 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
3677 #endif
3678 #ifndef WIFEXITED
3679 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3680 #endif
3683 main ()
3685 int s;
3686 wait (&s);
3687 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3689 return 0;
3691 _ACEOF
3692 rm -f conftest.$ac_objext
3693 if { (ac_try="$ac_compile"
3694 case "(($ac_try" in
3695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3696 *) ac_try_echo=$ac_try;;
3697 esac
3698 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3699 $as_echo "$ac_try_echo") >&5
3700 (eval "$ac_compile") 2>conftest.er1
3701 ac_status=$?
3702 grep -v '^ *+' conftest.er1 >conftest.err
3703 rm -f conftest.er1
3704 cat conftest.err >&5
3705 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3706 (exit $ac_status); } && {
3707 test -z "$ac_c_werror_flag" ||
3708 test ! -s conftest.err
3709 } && test -s conftest.$ac_objext; then
3710 ac_cv_header_sys_wait_h=yes
3711 else
3712 $as_echo "$as_me: failed program was:" >&5
3713 sed 's/^/| /' conftest.$ac_ext >&5
3715 ac_cv_header_sys_wait_h=no
3718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3720 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
3721 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
3722 if test $ac_cv_header_sys_wait_h = yes; then
3724 cat >>confdefs.h <<\_ACEOF
3725 #define HAVE_SYS_WAIT_H 1
3726 _ACEOF
3731 if test -z "$CFLAGS"; then
3732 CFLAGS="-O"
3733 test "$GCC" = yes && CFLAGS="-O2 -fno-strength-reduce -Wall"
3735 if test "$GCC" = yes; then
3736 gccversion=`"$CC" -dumpversion`
3737 if test "x$gccversion" = "x"; then
3738 gccversion=`"$CC" --version | sed -e '2,$d' -e 's/darwin.//' -e 's/^[^0-9]*\([0-9]\.[0-9.]*\).*$/\1/g'`
3740 if test "$gccversion" = "3.0.1" -o "$gccversion" = "3.0.2" -o "$gccversion" = "4.0.1"; then
3741 echo 'GCC [34].0.[12] has a bug in the optimizer, disabling "-O#"'
3742 CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-O/'`
3743 else
3744 if test "$gccversion" = "3.1" -o "$gccversion" = "3.2" -o "$gccversion" = "3.2.1" && `echo "$CFLAGS" | grep -v fno-strength-reduce >/dev/null`; then
3745 echo 'GCC 3.1 and 3.2 have a bug in the optimizer, adding "-fno-strength-reduce"'
3746 CFLAGS="$CFLAGS -fno-strength-reduce"
3751 if test "$cross_compiling" = yes; then
3752 { $as_echo "$as_me:$LINENO: result: cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&5
3753 $as_echo "cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&6; }
3756 test "$GCC" = yes && CPP_MM=M;
3758 if test -f ./toolcheck; then
3759 { $as_echo "$as_me:$LINENO: checking for buggy tools..." >&5
3760 $as_echo "$as_me: checking for buggy tools..." >&6;}
3761 sh ./toolcheck 1>&6
3764 OS_EXTRA_SRC=""; OS_EXTRA_OBJ=""
3766 { $as_echo "$as_me:$LINENO: checking for BeOS" >&5
3767 $as_echo_n "checking for BeOS... " >&6; }
3768 case `uname` in
3769 BeOS) OS_EXTRA_SRC=os_beos.c; OS_EXTRA_OBJ=objects/os_beos.o
3770 BEOS=yes; { $as_echo "$as_me:$LINENO: result: yes" >&5
3771 $as_echo "yes" >&6; };;
3772 *) BEOS=no; { $as_echo "$as_me:$LINENO: result: no" >&5
3773 $as_echo "no" >&6; };;
3774 esac
3776 { $as_echo "$as_me:$LINENO: checking for QNX" >&5
3777 $as_echo_n "checking for QNX... " >&6; }
3778 case `uname` in
3779 QNX) OS_EXTRA_SRC=os_qnx.c; OS_EXTRA_OBJ=objects/os_qnx.o
3780 test -z "$with_x" && with_x=no
3781 QNX=yes; { $as_echo "$as_me:$LINENO: result: yes" >&5
3782 $as_echo "yes" >&6; };;
3783 *) QNX=no; { $as_echo "$as_me:$LINENO: result: no" >&5
3784 $as_echo "no" >&6; };;
3785 esac
3787 { $as_echo "$as_me:$LINENO: checking for Darwin (Mac OS X)" >&5
3788 $as_echo_n "checking for Darwin (Mac OS X)... " >&6; }
3789 if test "`(uname) 2>/dev/null`" = Darwin; then
3790 { $as_echo "$as_me:$LINENO: result: yes" >&5
3791 $as_echo "yes" >&6; }
3793 { $as_echo "$as_me:$LINENO: checking --disable-darwin argument" >&5
3794 $as_echo_n "checking --disable-darwin argument... " >&6; }
3795 # Check whether --enable-darwin was given.
3796 if test "${enable_darwin+set}" = set; then
3797 enableval=$enable_darwin;
3798 else
3799 enable_darwin="yes"
3802 if test "$enable_darwin" = "yes"; then
3803 { $as_echo "$as_me:$LINENO: result: no" >&5
3804 $as_echo "no" >&6; }
3805 { $as_echo "$as_me:$LINENO: checking if Darwin files are there" >&5
3806 $as_echo_n "checking if Darwin files are there... " >&6; }
3807 if test -f os_macosx.c; then
3808 { $as_echo "$as_me:$LINENO: result: yes" >&5
3809 $as_echo "yes" >&6; }
3810 else
3811 { $as_echo "$as_me:$LINENO: result: no, Darwin support disabled" >&5
3812 $as_echo "no, Darwin support disabled" >&6; }
3813 enable_darwin=no
3815 else
3816 { $as_echo "$as_me:$LINENO: result: yes, Darwin support excluded" >&5
3817 $as_echo "yes, Darwin support excluded" >&6; }
3820 { $as_echo "$as_me:$LINENO: checking --with-mac-arch argument" >&5
3821 $as_echo_n "checking --with-mac-arch argument... " >&6; }
3823 # Check whether --with-mac-arch was given.
3824 if test "${with_mac_arch+set}" = set; then
3825 withval=$with_mac_arch; MACARCH="$withval"; { $as_echo "$as_me:$LINENO: result: $MACARCH" >&5
3826 $as_echo "$MACARCH" >&6; }
3827 else
3828 MACARCH="current"; { $as_echo "$as_me:$LINENO: result: defaulting to $MACARCH" >&5
3829 $as_echo "defaulting to $MACARCH" >&6; }
3833 if test "x$MACARCH" = "xboth"; then
3834 { $as_echo "$as_me:$LINENO: checking for 10.4 universal SDK" >&5
3835 $as_echo_n "checking for 10.4 universal SDK... " >&6; }
3836 save_cppflags="$CPPFLAGS"
3837 save_cflags="$CFLAGS"
3838 save_ldflags="$LDFLAGS"
3839 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc"
3840 cat >conftest.$ac_ext <<_ACEOF
3841 /* confdefs.h. */
3842 _ACEOF
3843 cat confdefs.h >>conftest.$ac_ext
3844 cat >>conftest.$ac_ext <<_ACEOF
3845 /* end confdefs.h. */
3848 main ()
3852 return 0;
3854 _ACEOF
3855 rm -f conftest.$ac_objext conftest$ac_exeext
3856 if { (ac_try="$ac_link"
3857 case "(($ac_try" in
3858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3859 *) ac_try_echo=$ac_try;;
3860 esac
3861 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3862 $as_echo "$ac_try_echo") >&5
3863 (eval "$ac_link") 2>conftest.er1
3864 ac_status=$?
3865 grep -v '^ *+' conftest.er1 >conftest.err
3866 rm -f conftest.er1
3867 cat conftest.err >&5
3868 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3869 (exit $ac_status); } && {
3870 test -z "$ac_c_werror_flag" ||
3871 test ! -s conftest.err
3872 } && test -s conftest$ac_exeext && {
3873 test "$cross_compiling" = yes ||
3874 $as_test_x conftest$ac_exeext
3875 }; then
3876 { $as_echo "$as_me:$LINENO: result: found" >&5
3877 $as_echo "found" >&6; }
3878 else
3879 $as_echo "$as_me: failed program was:" >&5
3880 sed 's/^/| /' conftest.$ac_ext >&5
3882 { $as_echo "$as_me:$LINENO: result: not found" >&5
3883 $as_echo "not found" >&6; }
3884 CFLAGS="$save_cflags"
3885 { $as_echo "$as_me:$LINENO: checking if Intel architecture is supported" >&5
3886 $as_echo_n "checking if Intel architecture is supported... " >&6; }
3887 CPPFLAGS="$CPPFLAGS -arch i386"
3888 LDFLAGS="$save_ldflags -arch i386"
3889 cat >conftest.$ac_ext <<_ACEOF
3890 /* confdefs.h. */
3891 _ACEOF
3892 cat confdefs.h >>conftest.$ac_ext
3893 cat >>conftest.$ac_ext <<_ACEOF
3894 /* end confdefs.h. */
3897 main ()
3901 return 0;
3903 _ACEOF
3904 rm -f conftest.$ac_objext conftest$ac_exeext
3905 if { (ac_try="$ac_link"
3906 case "(($ac_try" in
3907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3908 *) ac_try_echo=$ac_try;;
3909 esac
3910 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3911 $as_echo "$ac_try_echo") >&5
3912 (eval "$ac_link") 2>conftest.er1
3913 ac_status=$?
3914 grep -v '^ *+' conftest.er1 >conftest.err
3915 rm -f conftest.er1
3916 cat conftest.err >&5
3917 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3918 (exit $ac_status); } && {
3919 test -z "$ac_c_werror_flag" ||
3920 test ! -s conftest.err
3921 } && test -s conftest$ac_exeext && {
3922 test "$cross_compiling" = yes ||
3923 $as_test_x conftest$ac_exeext
3924 }; then
3925 { $as_echo "$as_me:$LINENO: result: yes" >&5
3926 $as_echo "yes" >&6; }; MACARCH="intel"
3927 else
3928 $as_echo "$as_me: failed program was:" >&5
3929 sed 's/^/| /' conftest.$ac_ext >&5
3931 { $as_echo "$as_me:$LINENO: result: no" >&5
3932 $as_echo "no" >&6; }
3933 MACARCH="ppc"
3934 CPPFLAGS="$save_cppflags -arch ppc"
3935 LDFLAGS="$save_ldflags -arch ppc"
3938 rm -rf conftest.dSYM
3939 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3940 conftest$ac_exeext conftest.$ac_ext
3943 rm -rf conftest.dSYM
3944 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3945 conftest$ac_exeext conftest.$ac_ext
3946 elif test "x$MACARCH" = "xintel"; then
3947 CPPFLAGS="$CPPFLAGS -arch intel"
3948 LDFLAGS="$LDFLAGS -arch intel"
3949 elif test "x$MACARCH" = "xppc"; then
3950 CPPFLAGS="$CPPFLAGS -arch ppc"
3951 LDFLAGS="$LDFLAGS -arch ppc"
3954 if test "$enable_darwin" = "yes"; then
3955 MACOSX=yes
3956 OS_EXTRA_SRC="os_macosx.c os_mac_conv.c";
3957 OS_EXTRA_OBJ="objects/os_macosx.o objects/os_mac_conv.o"
3958 CPPFLAGS="$CPPFLAGS -DMACOS_X_UNIX -no-cpp-precomp"
3959 if test "x$MACARCH" = "xboth"; then
3960 CPPFLAGS="$CPPFLAGS -I/Developer/SDKs/MacOSX10.4u.sdk/Developer/Headers/FlatCarbon"
3961 else
3962 CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon"
3965 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3975 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3976 inttypes.h stdint.h unistd.h
3978 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3979 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
3980 $as_echo_n "checking for $ac_header... " >&6; }
3981 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3982 $as_echo_n "(cached) " >&6
3983 else
3984 cat >conftest.$ac_ext <<_ACEOF
3985 /* confdefs.h. */
3986 _ACEOF
3987 cat confdefs.h >>conftest.$ac_ext
3988 cat >>conftest.$ac_ext <<_ACEOF
3989 /* end confdefs.h. */
3990 $ac_includes_default
3992 #include <$ac_header>
3993 _ACEOF
3994 rm -f conftest.$ac_objext
3995 if { (ac_try="$ac_compile"
3996 case "(($ac_try" in
3997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3998 *) ac_try_echo=$ac_try;;
3999 esac
4000 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4001 $as_echo "$ac_try_echo") >&5
4002 (eval "$ac_compile") 2>conftest.er1
4003 ac_status=$?
4004 grep -v '^ *+' conftest.er1 >conftest.err
4005 rm -f conftest.er1
4006 cat conftest.err >&5
4007 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008 (exit $ac_status); } && {
4009 test -z "$ac_c_werror_flag" ||
4010 test ! -s conftest.err
4011 } && test -s conftest.$ac_objext; then
4012 eval "$as_ac_Header=yes"
4013 else
4014 $as_echo "$as_me: failed program was:" >&5
4015 sed 's/^/| /' conftest.$ac_ext >&5
4017 eval "$as_ac_Header=no"
4020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4022 ac_res=`eval 'as_val=${'$as_ac_Header'}
4023 $as_echo "$as_val"'`
4024 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4025 $as_echo "$ac_res" >&6; }
4026 if test `eval 'as_val=${'$as_ac_Header'}
4027 $as_echo "$as_val"'` = yes; then
4028 cat >>confdefs.h <<_ACEOF
4029 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4030 _ACEOF
4034 done
4037 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
4038 { $as_echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
4039 $as_echo_n "checking for Carbon/Carbon.h... " >&6; }
4040 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
4041 $as_echo_n "(cached) " >&6
4043 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
4044 $as_echo "$ac_cv_header_Carbon_Carbon_h" >&6; }
4045 else
4046 # Is the header compilable?
4047 { $as_echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
4048 $as_echo_n "checking Carbon/Carbon.h usability... " >&6; }
4049 cat >conftest.$ac_ext <<_ACEOF
4050 /* confdefs.h. */
4051 _ACEOF
4052 cat confdefs.h >>conftest.$ac_ext
4053 cat >>conftest.$ac_ext <<_ACEOF
4054 /* end confdefs.h. */
4055 $ac_includes_default
4056 #include <Carbon/Carbon.h>
4057 _ACEOF
4058 rm -f conftest.$ac_objext
4059 if { (ac_try="$ac_compile"
4060 case "(($ac_try" in
4061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4062 *) ac_try_echo=$ac_try;;
4063 esac
4064 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4065 $as_echo "$ac_try_echo") >&5
4066 (eval "$ac_compile") 2>conftest.er1
4067 ac_status=$?
4068 grep -v '^ *+' conftest.er1 >conftest.err
4069 rm -f conftest.er1
4070 cat conftest.err >&5
4071 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4072 (exit $ac_status); } && {
4073 test -z "$ac_c_werror_flag" ||
4074 test ! -s conftest.err
4075 } && test -s conftest.$ac_objext; then
4076 ac_header_compiler=yes
4077 else
4078 $as_echo "$as_me: failed program was:" >&5
4079 sed 's/^/| /' conftest.$ac_ext >&5
4081 ac_header_compiler=no
4084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4085 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4086 $as_echo "$ac_header_compiler" >&6; }
4088 # Is the header present?
4089 { $as_echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
4090 $as_echo_n "checking Carbon/Carbon.h presence... " >&6; }
4091 cat >conftest.$ac_ext <<_ACEOF
4092 /* confdefs.h. */
4093 _ACEOF
4094 cat confdefs.h >>conftest.$ac_ext
4095 cat >>conftest.$ac_ext <<_ACEOF
4096 /* end confdefs.h. */
4097 #include <Carbon/Carbon.h>
4098 _ACEOF
4099 if { (ac_try="$ac_cpp conftest.$ac_ext"
4100 case "(($ac_try" in
4101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4102 *) ac_try_echo=$ac_try;;
4103 esac
4104 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4105 $as_echo "$ac_try_echo") >&5
4106 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4107 ac_status=$?
4108 grep -v '^ *+' conftest.er1 >conftest.err
4109 rm -f conftest.er1
4110 cat conftest.err >&5
4111 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4112 (exit $ac_status); } >/dev/null && {
4113 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4114 test ! -s conftest.err
4115 }; then
4116 ac_header_preproc=yes
4117 else
4118 $as_echo "$as_me: failed program was:" >&5
4119 sed 's/^/| /' conftest.$ac_ext >&5
4121 ac_header_preproc=no
4124 rm -f conftest.err conftest.$ac_ext
4125 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4126 $as_echo "$ac_header_preproc" >&6; }
4128 # So? What about this header?
4129 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4130 yes:no: )
4131 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
4132 $as_echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4133 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
4134 $as_echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
4135 ac_header_preproc=yes
4137 no:yes:* )
4138 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
4139 $as_echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
4140 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
4141 $as_echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
4142 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
4143 $as_echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
4144 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
4145 $as_echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
4146 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
4147 $as_echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
4148 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
4149 $as_echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
4152 esac
4153 { $as_echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
4154 $as_echo_n "checking for Carbon/Carbon.h... " >&6; }
4155 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
4156 $as_echo_n "(cached) " >&6
4157 else
4158 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
4160 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
4161 $as_echo "$ac_cv_header_Carbon_Carbon_h" >&6; }
4164 if test $ac_cv_header_Carbon_Carbon_h = yes; then
4165 CARBON=yes
4169 if test "x$CARBON" = "xyes"; then
4170 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
4171 with_x=no
4176 if test "$MACARCH" = "intel" -o "$MACARCH" = "both"; then
4177 CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-Oz/'`
4180 else
4181 { $as_echo "$as_me:$LINENO: result: no" >&5
4182 $as_echo "no" >&6; }
4188 if test "$cross_compiling" = no; then
4189 { $as_echo "$as_me:$LINENO: checking --with-local-dir argument" >&5
4190 $as_echo_n "checking --with-local-dir argument... " >&6; }
4191 have_local_include=''
4192 have_local_lib=''
4194 # Check whether --with-local-dir was given.
4195 if test "${with_local_dir+set}" = set; then
4196 withval=$with_local_dir;
4197 local_dir="$withval"
4198 case "$withval" in
4199 */*) ;;
4201 # avoid adding local dir to LDFLAGS and CPPFLAGS
4202 have_local_dir=yes
4203 have_local_lib=yes
4205 *) { { $as_echo "$as_me:$LINENO: error: must pass path argument to --with-local-dir" >&5
4206 $as_echo "$as_me: error: must pass path argument to --with-local-dir" >&2;}
4207 { (exit 1); exit 1; }; } ;;
4208 esac
4209 { $as_echo "$as_me:$LINENO: result: $local_dir" >&5
4210 $as_echo "$local_dir" >&6; }
4212 else
4214 local_dir=/usr/local
4215 { $as_echo "$as_me:$LINENO: result: Defaulting to $local_dir" >&5
4216 $as_echo "Defaulting to $local_dir" >&6; }
4220 if test "$GCC" = yes -a "$local_dir" != no; then
4221 echo 'void f(){}' > conftest.c
4222 have_local_include=`${CC-cc} -no-cpp-precomp -c -v conftest.c 2>&1 | grep "${local_dir}/include"`
4223 have_local_lib=`${CC-cc} -c -v conftest.c 2>&1 | grep "${local_dir}/lib"`
4224 rm -f conftest.c conftest.o
4226 if test -z "$have_local_lib" -a -d "${local_dir}/lib"; then
4227 tt=`echo "$LDFLAGS" | sed -e "s+-L${local_dir}/lib ++g" -e "s+-L${local_dir}/lib$++g"`
4228 if test "$tt" = "$LDFLAGS"; then
4229 LDFLAGS="$LDFLAGS -L${local_dir}/lib"
4232 if test -z "$have_local_include" -a -d "${local_dir}/include"; then
4233 tt=`echo "$CPPFLAGS" | sed -e "s+-I${local_dir}/include ++g" -e "s+-I${local_dir}/include$++g"`
4234 if test "$tt" = "$CPPFLAGS"; then
4235 CPPFLAGS="$CPPFLAGS -I${local_dir}/include"
4240 { $as_echo "$as_me:$LINENO: checking --with-vim-name argument" >&5
4241 $as_echo_n "checking --with-vim-name argument... " >&6; }
4243 # Check whether --with-vim-name was given.
4244 if test "${with_vim_name+set}" = set; then
4245 withval=$with_vim_name; VIMNAME="$withval"; { $as_echo "$as_me:$LINENO: result: $VIMNAME" >&5
4246 $as_echo "$VIMNAME" >&6; }
4247 else
4248 VIMNAME="vim"; { $as_echo "$as_me:$LINENO: result: Defaulting to $VIMNAME" >&5
4249 $as_echo "Defaulting to $VIMNAME" >&6; }
4253 { $as_echo "$as_me:$LINENO: checking --with-ex-name argument" >&5
4254 $as_echo_n "checking --with-ex-name argument... " >&6; }
4256 # Check whether --with-ex-name was given.
4257 if test "${with_ex_name+set}" = set; then
4258 withval=$with_ex_name; EXNAME="$withval"; { $as_echo "$as_me:$LINENO: result: $EXNAME" >&5
4259 $as_echo "$EXNAME" >&6; }
4260 else
4261 EXNAME="ex"; { $as_echo "$as_me:$LINENO: result: Defaulting to ex" >&5
4262 $as_echo "Defaulting to ex" >&6; }
4266 { $as_echo "$as_me:$LINENO: checking --with-view-name argument" >&5
4267 $as_echo_n "checking --with-view-name argument... " >&6; }
4269 # Check whether --with-view-name was given.
4270 if test "${with_view_name+set}" = set; then
4271 withval=$with_view_name; VIEWNAME="$withval"; { $as_echo "$as_me:$LINENO: result: $VIEWNAME" >&5
4272 $as_echo "$VIEWNAME" >&6; }
4273 else
4274 VIEWNAME="view"; { $as_echo "$as_me:$LINENO: result: Defaulting to view" >&5
4275 $as_echo "Defaulting to view" >&6; }
4280 { $as_echo "$as_me:$LINENO: checking --with-global-runtime argument" >&5
4281 $as_echo_n "checking --with-global-runtime argument... " >&6; }
4283 # Check whether --with-global-runtime was given.
4284 if test "${with_global_runtime+set}" = set; then
4285 withval=$with_global_runtime; { $as_echo "$as_me:$LINENO: result: $withval" >&5
4286 $as_echo "$withval" >&6; }; cat >>confdefs.h <<_ACEOF
4287 #define RUNTIME_GLOBAL "$withval"
4288 _ACEOF
4290 else
4291 { $as_echo "$as_me:$LINENO: result: no" >&5
4292 $as_echo "no" >&6; }
4296 { $as_echo "$as_me:$LINENO: checking --with-modified-by argument" >&5
4297 $as_echo_n "checking --with-modified-by argument... " >&6; }
4299 # Check whether --with-modified-by was given.
4300 if test "${with_modified_by+set}" = set; then
4301 withval=$with_modified_by; { $as_echo "$as_me:$LINENO: result: $withval" >&5
4302 $as_echo "$withval" >&6; }; cat >>confdefs.h <<_ACEOF
4303 #define MODIFIED_BY "$withval"
4304 _ACEOF
4306 else
4307 { $as_echo "$as_me:$LINENO: result: no" >&5
4308 $as_echo "no" >&6; }
4312 { $as_echo "$as_me:$LINENO: checking if character set is EBCDIC" >&5
4313 $as_echo_n "checking if character set is EBCDIC... " >&6; }
4314 cat >conftest.$ac_ext <<_ACEOF
4315 /* confdefs.h. */
4316 _ACEOF
4317 cat confdefs.h >>conftest.$ac_ext
4318 cat >>conftest.$ac_ext <<_ACEOF
4319 /* end confdefs.h. */
4322 main ()
4324 /* TryCompile function for CharSet.
4325 Treat any failure as ASCII for compatibility with existing art.
4326 Use compile-time rather than run-time tests for cross-compiler
4327 tolerance. */
4328 #if '0'!=240
4329 make an error "Character set is not EBCDIC"
4330 #endif
4332 return 0;
4334 _ACEOF
4335 rm -f conftest.$ac_objext
4336 if { (ac_try="$ac_compile"
4337 case "(($ac_try" in
4338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4339 *) ac_try_echo=$ac_try;;
4340 esac
4341 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4342 $as_echo "$ac_try_echo") >&5
4343 (eval "$ac_compile") 2>conftest.er1
4344 ac_status=$?
4345 grep -v '^ *+' conftest.er1 >conftest.err
4346 rm -f conftest.er1
4347 cat conftest.err >&5
4348 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4349 (exit $ac_status); } && {
4350 test -z "$ac_c_werror_flag" ||
4351 test ! -s conftest.err
4352 } && test -s conftest.$ac_objext; then
4353 # TryCompile action if true
4354 cf_cv_ebcdic=yes
4355 else
4356 $as_echo "$as_me: failed program was:" >&5
4357 sed 's/^/| /' conftest.$ac_ext >&5
4359 # TryCompile action if false
4360 cf_cv_ebcdic=no
4363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4364 # end of TryCompile ])
4365 # end of CacheVal CvEbcdic
4366 { $as_echo "$as_me:$LINENO: result: $cf_cv_ebcdic" >&5
4367 $as_echo "$cf_cv_ebcdic" >&6; }
4368 case "$cf_cv_ebcdic" in #(vi
4369 yes) cat >>confdefs.h <<\_ACEOF
4370 #define EBCDIC 1
4371 _ACEOF
4373 line_break='"\\n"'
4375 *) line_break='"\\012"';;
4376 esac
4379 if test "$cf_cv_ebcdic" = "yes"; then
4380 { $as_echo "$as_me:$LINENO: checking for OS/390 Unix" >&5
4381 $as_echo_n "checking for OS/390 Unix... " >&6; }
4382 case `uname` in
4383 OS/390) OS390Unix="yes";
4384 if test "$CC" = "cc"; then
4385 ccm="$_CC_CCMODE"
4386 ccn="CC"
4387 else
4388 if test "$CC" = "c89"; then
4389 ccm="$_CC_C89MODE"
4390 ccn="C89"
4391 else
4392 ccm=1
4395 if test "$ccm" != "1"; then
4396 echo ""
4397 echo "------------------------------------------"
4398 echo " On OS/390 Unix, the environment variable"
4399 echo " __CC_${ccn}MODE must be set to \"1\"!"
4400 echo " Do:"
4401 echo " export _CC_${ccn}MODE=1"
4402 echo " and then call configure again."
4403 echo "------------------------------------------"
4404 exit 1
4406 CFLAGS="$CFLAGS -D_ALL_SOURCE"; LDFLAGS="$LDFLAGS -Wl,EDIT=NO"
4407 { $as_echo "$as_me:$LINENO: result: yes" >&5
4408 $as_echo "yes" >&6; }
4410 *) OS390Unix="no";
4411 { $as_echo "$as_me:$LINENO: result: no" >&5
4412 $as_echo "no" >&6; }
4414 esac
4417 { $as_echo "$as_me:$LINENO: checking --disable-selinux argument" >&5
4418 $as_echo_n "checking --disable-selinux argument... " >&6; }
4419 # Check whether --enable-selinux was given.
4420 if test "${enable_selinux+set}" = set; then
4421 enableval=$enable_selinux;
4422 else
4423 enable_selinux="yes"
4426 if test "$enable_selinux" = "yes"; then
4427 { $as_echo "$as_me:$LINENO: result: no" >&5
4428 $as_echo "no" >&6; }
4429 { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
4430 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
4431 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
4432 $as_echo_n "(cached) " >&6
4433 else
4434 ac_check_lib_save_LIBS=$LIBS
4435 LIBS="-lselinux $LIBS"
4436 cat >conftest.$ac_ext <<_ACEOF
4437 /* confdefs.h. */
4438 _ACEOF
4439 cat confdefs.h >>conftest.$ac_ext
4440 cat >>conftest.$ac_ext <<_ACEOF
4441 /* end confdefs.h. */
4443 /* Override any GCC internal prototype to avoid an error.
4444 Use char because int might match the return type of a GCC
4445 builtin and then its argument prototype would still apply. */
4446 #ifdef __cplusplus
4447 extern "C"
4448 #endif
4449 char is_selinux_enabled ();
4451 main ()
4453 return is_selinux_enabled ();
4455 return 0;
4457 _ACEOF
4458 rm -f conftest.$ac_objext conftest$ac_exeext
4459 if { (ac_try="$ac_link"
4460 case "(($ac_try" in
4461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4462 *) ac_try_echo=$ac_try;;
4463 esac
4464 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4465 $as_echo "$ac_try_echo") >&5
4466 (eval "$ac_link") 2>conftest.er1
4467 ac_status=$?
4468 grep -v '^ *+' conftest.er1 >conftest.err
4469 rm -f conftest.er1
4470 cat conftest.err >&5
4471 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4472 (exit $ac_status); } && {
4473 test -z "$ac_c_werror_flag" ||
4474 test ! -s conftest.err
4475 } && test -s conftest$ac_exeext && {
4476 test "$cross_compiling" = yes ||
4477 $as_test_x conftest$ac_exeext
4478 }; then
4479 ac_cv_lib_selinux_is_selinux_enabled=yes
4480 else
4481 $as_echo "$as_me: failed program was:" >&5
4482 sed 's/^/| /' conftest.$ac_ext >&5
4484 ac_cv_lib_selinux_is_selinux_enabled=no
4487 rm -rf conftest.dSYM
4488 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4489 conftest$ac_exeext conftest.$ac_ext
4490 LIBS=$ac_check_lib_save_LIBS
4492 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
4493 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
4494 if test $ac_cv_lib_selinux_is_selinux_enabled = yes; then
4495 LIBS="$LIBS -lselinux"
4496 cat >>confdefs.h <<\_ACEOF
4497 #define HAVE_SELINUX 1
4498 _ACEOF
4502 else
4503 { $as_echo "$as_me:$LINENO: result: yes" >&5
4504 $as_echo "yes" >&6; }
4508 { $as_echo "$as_me:$LINENO: checking --with-features argument" >&5
4509 $as_echo_n "checking --with-features argument... " >&6; }
4511 # Check whether --with-features was given.
4512 if test "${with_features+set}" = set; then
4513 withval=$with_features; features="$withval"; { $as_echo "$as_me:$LINENO: result: $features" >&5
4514 $as_echo "$features" >&6; }
4515 else
4516 features="normal"; { $as_echo "$as_me:$LINENO: result: Defaulting to normal" >&5
4517 $as_echo "Defaulting to normal" >&6; }
4521 dovimdiff=""
4522 dogvimdiff=""
4523 case "$features" in
4524 tiny) cat >>confdefs.h <<\_ACEOF
4525 #define FEAT_TINY 1
4526 _ACEOF
4528 small) cat >>confdefs.h <<\_ACEOF
4529 #define FEAT_SMALL 1
4530 _ACEOF
4532 normal) cat >>confdefs.h <<\_ACEOF
4533 #define FEAT_NORMAL 1
4534 _ACEOF
4535 dovimdiff="installvimdiff";
4536 dogvimdiff="installgvimdiff" ;;
4537 big) cat >>confdefs.h <<\_ACEOF
4538 #define FEAT_BIG 1
4539 _ACEOF
4540 dovimdiff="installvimdiff";
4541 dogvimdiff="installgvimdiff" ;;
4542 huge) cat >>confdefs.h <<\_ACEOF
4543 #define FEAT_HUGE 1
4544 _ACEOF
4545 dovimdiff="installvimdiff";
4546 dogvimdiff="installgvimdiff" ;;
4547 *) { $as_echo "$as_me:$LINENO: result: Sorry, $features is not supported" >&5
4548 $as_echo "Sorry, $features is not supported" >&6; } ;;
4549 esac
4554 { $as_echo "$as_me:$LINENO: checking --with-compiledby argument" >&5
4555 $as_echo_n "checking --with-compiledby argument... " >&6; }
4557 # Check whether --with-compiledby was given.
4558 if test "${with_compiledby+set}" = set; then
4559 withval=$with_compiledby; compiledby="$withval"; { $as_echo "$as_me:$LINENO: result: $withval" >&5
4560 $as_echo "$withval" >&6; }
4561 else
4562 compiledby=""; { $as_echo "$as_me:$LINENO: result: no" >&5
4563 $as_echo "no" >&6; }
4568 { $as_echo "$as_me:$LINENO: checking --disable-xsmp argument" >&5
4569 $as_echo_n "checking --disable-xsmp argument... " >&6; }
4570 # Check whether --enable-xsmp was given.
4571 if test "${enable_xsmp+set}" = set; then
4572 enableval=$enable_xsmp;
4573 else
4574 enable_xsmp="yes"
4578 if test "$enable_xsmp" = "yes"; then
4579 { $as_echo "$as_me:$LINENO: result: no" >&5
4580 $as_echo "no" >&6; }
4581 { $as_echo "$as_me:$LINENO: checking --disable-xsmp-interact argument" >&5
4582 $as_echo_n "checking --disable-xsmp-interact argument... " >&6; }
4583 # Check whether --enable-xsmp-interact was given.
4584 if test "${enable_xsmp_interact+set}" = set; then
4585 enableval=$enable_xsmp_interact;
4586 else
4587 enable_xsmp_interact="yes"
4590 if test "$enable_xsmp_interact" = "yes"; then
4591 { $as_echo "$as_me:$LINENO: result: no" >&5
4592 $as_echo "no" >&6; }
4593 cat >>confdefs.h <<\_ACEOF
4594 #define USE_XSMP_INTERACT 1
4595 _ACEOF
4597 else
4598 { $as_echo "$as_me:$LINENO: result: yes" >&5
4599 $as_echo "yes" >&6; }
4601 else
4602 { $as_echo "$as_me:$LINENO: result: yes" >&5
4603 $as_echo "yes" >&6; }
4606 { $as_echo "$as_me:$LINENO: checking --enable-mzschemeinterp argument" >&5
4607 $as_echo_n "checking --enable-mzschemeinterp argument... " >&6; }
4608 # Check whether --enable-mzschemeinterp was given.
4609 if test "${enable_mzschemeinterp+set}" = set; then
4610 enableval=$enable_mzschemeinterp;
4611 else
4612 enable_mzschemeinterp="no"
4615 { $as_echo "$as_me:$LINENO: result: $enable_mzschemeinterp" >&5
4616 $as_echo "$enable_mzschemeinterp" >&6; }
4618 if test "$enable_mzschemeinterp" = "yes"; then
4621 { $as_echo "$as_me:$LINENO: checking --with-plthome argument" >&5
4622 $as_echo_n "checking --with-plthome argument... " >&6; }
4624 # Check whether --with-plthome was given.
4625 if test "${with_plthome+set}" = set; then
4626 withval=$with_plthome; with_plthome="$withval"; { $as_echo "$as_me:$LINENO: result: $with_plthome" >&5
4627 $as_echo "$with_plthome" >&6; }
4628 else
4629 with_plthome="";{ $as_echo "$as_me:$LINENO: result: \"no\"" >&5
4630 $as_echo "\"no\"" >&6; }
4634 if test "X$with_plthome" != "X"; then
4635 vi_cv_path_mzscheme_pfx="$with_plthome"
4636 else
4637 { $as_echo "$as_me:$LINENO: checking PLTHOME environment var" >&5
4638 $as_echo_n "checking PLTHOME environment var... " >&6; }
4639 if test "X$PLTHOME" != "X"; then
4640 { $as_echo "$as_me:$LINENO: result: \"$PLTHOME\"" >&5
4641 $as_echo "\"$PLTHOME\"" >&6; }
4642 vi_cv_path_mzscheme_pfx="$PLTHOME"
4643 else
4644 { $as_echo "$as_me:$LINENO: result: \"not set\"" >&5
4645 $as_echo "\"not set\"" >&6; }
4646 # Extract the first word of "mzscheme", so it can be a program name with args.
4647 set dummy mzscheme; ac_word=$2
4648 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4649 $as_echo_n "checking for $ac_word... " >&6; }
4650 if test "${ac_cv_path_vi_cv_path_mzscheme+set}" = set; then
4651 $as_echo_n "(cached) " >&6
4652 else
4653 case $vi_cv_path_mzscheme in
4654 [\\/]* | ?:[\\/]*)
4655 ac_cv_path_vi_cv_path_mzscheme="$vi_cv_path_mzscheme" # Let the user override the test with a path.
4658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4659 for as_dir in $PATH
4661 IFS=$as_save_IFS
4662 test -z "$as_dir" && as_dir=.
4663 for ac_exec_ext in '' $ac_executable_extensions; do
4664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4665 ac_cv_path_vi_cv_path_mzscheme="$as_dir/$ac_word$ac_exec_ext"
4666 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4667 break 2
4669 done
4670 done
4671 IFS=$as_save_IFS
4674 esac
4676 vi_cv_path_mzscheme=$ac_cv_path_vi_cv_path_mzscheme
4677 if test -n "$vi_cv_path_mzscheme"; then
4678 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme" >&5
4679 $as_echo "$vi_cv_path_mzscheme" >&6; }
4680 else
4681 { $as_echo "$as_me:$LINENO: result: no" >&5
4682 $as_echo "no" >&6; }
4687 if test "X$vi_cv_path_mzscheme" != "X"; then
4688 lsout=`ls -l $vi_cv_path_mzscheme`
4689 if echo "$lsout" | grep -e '->' >/dev/null 2>/dev/null; then
4690 vi_cv_path_mzscheme=`echo "$lsout" | sed 's/.*-> \(.*\)/\1/'`
4694 if test "X$vi_cv_path_mzscheme" != "X"; then
4695 { $as_echo "$as_me:$LINENO: checking MzScheme install prefix" >&5
4696 $as_echo_n "checking MzScheme install prefix... " >&6; }
4697 if test "${vi_cv_path_mzscheme_pfx+set}" = set; then
4698 $as_echo_n "(cached) " >&6
4699 else
4700 vi_cv_path_mzscheme_pfx=`
4701 ${vi_cv_path_mzscheme} -evm \
4702 "(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))))"`
4707 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme_pfx" >&5
4708 $as_echo "$vi_cv_path_mzscheme_pfx" >&6; }
4709 vi_cv_path_mzscheme_pfx=`echo "$vi_cv_path_mzscheme_pfx" | sed 's+/$++'`
4714 SCHEME_INC=
4715 if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
4716 { $as_echo "$as_me:$LINENO: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include" >&5
4717 $as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include... " >&6; }
4718 if test -f $vi_cv_path_mzscheme_pfx/include/scheme.h; then
4719 { $as_echo "$as_me:$LINENO: result: \"yes\"" >&5
4720 $as_echo "\"yes\"" >&6; }
4721 else
4722 { $as_echo "$as_me:$LINENO: result: \"no\"" >&5
4723 $as_echo "\"no\"" >&6; }
4724 { $as_echo "$as_me:$LINENO: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/plt/include" >&5
4725 $as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/plt/include... " >&6; }
4726 if test -f $vi_cv_path_mzscheme_pfx/include/plt/scheme.h; then
4727 { $as_echo "$as_me:$LINENO: result: \"yes\"" >&5
4728 $as_echo "\"yes\"" >&6; }
4729 SCHEME_INC=/plt
4730 else
4731 { $as_echo "$as_me:$LINENO: result: \"no\"" >&5
4732 $as_echo "\"no\"" >&6; }
4733 vi_cv_path_mzscheme_pfx=
4738 if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
4739 if test "x$MACOSX" = "xyes"; then
4740 MZSCHEME_LIBS="-framework PLT_MzScheme"
4741 elif test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a"; then
4742 MZSCHEME_LIBS="${vi_cv_path_mzscheme_pfx}/lib/libmzscheme.a ${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a"
4743 else
4744 MZSCHEME_LIBS="-L${vi_cv_path_mzscheme_pfx}/lib -lmzscheme -lmzgc"
4745 if test "$GCC" = yes; then
4746 MZSCHEME_LIBS="$MZSCHEME_LIBS -Wl,-rpath -Wl,${vi_cv_path_mzscheme_pfx}/lib"
4747 elif test "`(uname) 2>/dev/null`" = SunOS &&
4748 uname -r | grep '^5' >/dev/null; then
4749 MZSCHEME_LIBS="$MZSCHEME_LIBS -R ${vi_cv_path_mzscheme_pfx}/lib"
4752 if test -d $vi_cv_path_mzscheme_pfx/lib/plt/collects; then
4753 SCHEME_COLLECTS=lib/plt/
4755 MZSCHEME_CFLAGS="-I${vi_cv_path_mzscheme_pfx}/include${SCHEME_INC} \
4756 -DMZSCHEME_COLLECTS='\"${vi_cv_path_mzscheme_pfx}/${SCHEME_COLLECTS}collects\"'"
4757 MZSCHEME_SRC="if_mzsch.c"
4758 MZSCHEME_OBJ="objects/if_mzsch.o"
4759 MZSCHEME_PRO="if_mzsch.pro"
4760 cat >>confdefs.h <<\_ACEOF
4761 #define FEAT_MZSCHEME 1
4762 _ACEOF
4773 { $as_echo "$as_me:$LINENO: checking --enable-perlinterp argument" >&5
4774 $as_echo_n "checking --enable-perlinterp argument... " >&6; }
4775 # Check whether --enable-perlinterp was given.
4776 if test "${enable_perlinterp+set}" = set; then
4777 enableval=$enable_perlinterp;
4778 else
4779 enable_perlinterp="no"
4782 { $as_echo "$as_me:$LINENO: result: $enable_perlinterp" >&5
4783 $as_echo "$enable_perlinterp" >&6; }
4784 if test "$enable_perlinterp" = "yes"; then
4786 # Extract the first word of "perl", so it can be a program name with args.
4787 set dummy perl; ac_word=$2
4788 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4789 $as_echo_n "checking for $ac_word... " >&6; }
4790 if test "${ac_cv_path_vi_cv_path_perl+set}" = set; then
4791 $as_echo_n "(cached) " >&6
4792 else
4793 case $vi_cv_path_perl in
4794 [\\/]* | ?:[\\/]*)
4795 ac_cv_path_vi_cv_path_perl="$vi_cv_path_perl" # Let the user override the test with a path.
4798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4799 for as_dir in $PATH
4801 IFS=$as_save_IFS
4802 test -z "$as_dir" && as_dir=.
4803 for ac_exec_ext in '' $ac_executable_extensions; do
4804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4805 ac_cv_path_vi_cv_path_perl="$as_dir/$ac_word$ac_exec_ext"
4806 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4807 break 2
4809 done
4810 done
4811 IFS=$as_save_IFS
4814 esac
4816 vi_cv_path_perl=$ac_cv_path_vi_cv_path_perl
4817 if test -n "$vi_cv_path_perl"; then
4818 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_perl" >&5
4819 $as_echo "$vi_cv_path_perl" >&6; }
4820 else
4821 { $as_echo "$as_me:$LINENO: result: no" >&5
4822 $as_echo "no" >&6; }
4826 if test "X$vi_cv_path_perl" != "X"; then
4827 { $as_echo "$as_me:$LINENO: checking Perl version" >&5
4828 $as_echo_n "checking Perl version... " >&6; }
4829 if $vi_cv_path_perl -e 'require 5.003_01' >/dev/null 2>/dev/null; then
4830 eval `$vi_cv_path_perl -V:usethreads`
4831 if test "X$usethreads" = "XUNKNOWN" -o "X$usethreads" = "Xundef"; then
4832 badthreads=no
4833 else
4834 if $vi_cv_path_perl -e 'require 5.6.0' >/dev/null 2>/dev/null; then
4835 eval `$vi_cv_path_perl -V:use5005threads`
4836 if test "X$use5005threads" = "XUNKNOWN" -o "X$use5005threads" = "Xundef"; then
4837 badthreads=no
4838 else
4839 badthreads=yes
4840 { $as_echo "$as_me:$LINENO: result: >>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&5
4841 $as_echo ">>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&6; }
4843 else
4844 badthreads=yes
4845 { $as_echo "$as_me:$LINENO: result: >>> Perl 5.5 with threads cannot be used <<<" >&5
4846 $as_echo ">>> Perl 5.5 with threads cannot be used <<<" >&6; }
4849 if test $badthreads = no; then
4850 { $as_echo "$as_me:$LINENO: result: OK" >&5
4851 $as_echo "OK" >&6; }
4852 eval `$vi_cv_path_perl -V:shrpenv`
4853 if test "X$shrpenv" = "XUNKNOWN"; then # pre 5.003_04
4854 shrpenv=""
4856 vi_cv_perllib=`$vi_cv_path_perl -MConfig -e 'print $Config{privlibexp}'`
4858 perlcppflags=`$vi_cv_path_perl -Mlib=$srcdir -MExtUtils::Embed \
4859 -e 'ccflags;perl_inc;print"\n"' | sed -e 's/-fno[^ ]*//'`
4860 perllibs=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed -e 'ldopts' | \
4861 sed -e '/Warning/d' -e '/Note (probably harmless)/d' \
4862 -e 's/-bE:perl.exp//' -e 's/-lc //'`
4863 perlldflags=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed \
4864 -e 'ccdlflags' | sed -e 's/-bE:perl.exp//'`
4866 { $as_echo "$as_me:$LINENO: checking if compile and link flags for Perl are sane" >&5
4867 $as_echo_n "checking if compile and link flags for Perl are sane... " >&6; }
4868 cflags_save=$CFLAGS
4869 libs_save=$LIBS
4870 ldflags_save=$LDFLAGS
4871 CFLAGS="$CFLAGS $perlcppflags"
4872 LIBS="$LIBS $perllibs"
4873 LDFLAGS="$perlldflags $LDFLAGS"
4874 cat >conftest.$ac_ext <<_ACEOF
4875 /* confdefs.h. */
4876 _ACEOF
4877 cat confdefs.h >>conftest.$ac_ext
4878 cat >>conftest.$ac_ext <<_ACEOF
4879 /* end confdefs.h. */
4882 main ()
4886 return 0;
4888 _ACEOF
4889 rm -f conftest.$ac_objext conftest$ac_exeext
4890 if { (ac_try="$ac_link"
4891 case "(($ac_try" in
4892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4893 *) ac_try_echo=$ac_try;;
4894 esac
4895 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4896 $as_echo "$ac_try_echo") >&5
4897 (eval "$ac_link") 2>conftest.er1
4898 ac_status=$?
4899 grep -v '^ *+' conftest.er1 >conftest.err
4900 rm -f conftest.er1
4901 cat conftest.err >&5
4902 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903 (exit $ac_status); } && {
4904 test -z "$ac_c_werror_flag" ||
4905 test ! -s conftest.err
4906 } && test -s conftest$ac_exeext && {
4907 test "$cross_compiling" = yes ||
4908 $as_test_x conftest$ac_exeext
4909 }; then
4910 { $as_echo "$as_me:$LINENO: result: yes" >&5
4911 $as_echo "yes" >&6; }; perl_ok=yes
4912 else
4913 $as_echo "$as_me: failed program was:" >&5
4914 sed 's/^/| /' conftest.$ac_ext >&5
4916 { $as_echo "$as_me:$LINENO: result: no: PERL DISABLED" >&5
4917 $as_echo "no: PERL DISABLED" >&6; }; perl_ok=no
4920 rm -rf conftest.dSYM
4921 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4922 conftest$ac_exeext conftest.$ac_ext
4923 CFLAGS=$cflags_save
4924 LIBS=$libs_save
4925 LDFLAGS=$ldflags_save
4926 if test $perl_ok = yes; then
4927 if test "X$perlcppflags" != "X"; then
4928 PERL_CFLAGS=`echo "$perlcppflags" | sed -e 's/-pipe //' -e 's/-W[^ ]*//'`
4930 if test "X$perlldflags" != "X"; then
4931 LDFLAGS="$perlldflags $LDFLAGS"
4933 PERL_LIBS=$perllibs
4934 PERL_SRC="auto/if_perl.c if_perlsfio.c"
4935 PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o"
4936 PERL_PRO="if_perl.pro if_perlsfio.pro"
4937 cat >>confdefs.h <<\_ACEOF
4938 #define FEAT_PERL 1
4939 _ACEOF
4943 else
4944 { $as_echo "$as_me:$LINENO: result: >>> too old; need Perl version 5.003_01 or later <<<" >&5
4945 $as_echo ">>> too old; need Perl version 5.003_01 or later <<<" >&6; }
4949 if test "x$MACOSX" = "xyes"; then
4950 dir=/System/Library/Perl
4951 darwindir=$dir/darwin
4952 if test -d $darwindir; then
4953 PERL=/usr/bin/perl
4954 else
4955 dir=/System/Library/Perl/5.8.1
4956 darwindir=$dir/darwin-thread-multi-2level
4957 if test -d $darwindir; then
4958 PERL=/usr/bin/perl
4961 if test -n "$PERL"; then
4962 PERL_DIR="$dir"
4963 PERL_CFLAGS="-DFEAT_PERL -I$darwindir/CORE"
4964 PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o $darwindir/auto/DynaLoader/DynaLoader.a"
4965 PERL_LIBS="-L$darwindir/CORE -lperl"
4975 { $as_echo "$as_me:$LINENO: checking --enable-eclinterp argument" >&5
4976 $as_echo_n "checking --enable-eclinterp argument..." >&6; }
4977 # Check whether --enable-eclinterp was given.
4978 if test "${enable_eclinterp+set}" = set; then
4979 enableval=$enable_eclinterp;
4980 else
4981 enable_eclinterp="no"
4984 { $as_echo "$as_me:$LINENO: result: $enable_eclinterp" >&5
4985 $as_echo "${ECHO_T}$enable_eclinterp" >&6; }
4986 if test "$enable_eclinterp" = "yes"; then
4987 # Extract the first word of "ecl-config", so it can be a program name with args.
4988 set dummy ecl-config; ac_word=$2
4989 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4990 $as_echo_n "checking for $ac_word..." >&6; }
4991 if test "${ac_cv_path_vi_cv_path_ecl_config+set}" = set; then
4992 $as_echo_n "(cached)" >&6
4993 else
4994 case $vi_cv_path_ecl_config in
4995 [\\/]* | ?:[\\/]*)
4996 ac_cv_path_vi_cv_path_ecl_config="$vi_cv_path_ecl_config" # Let the user override the test with a path.
4999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5000 for as_dir in $PATH
5002 IFS=$as_save_IFS
5003 test -z "$as_dir" && as_dir=.
5004 for ac_exec_ext in '' $ac_executable_extensions; do
5005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5006 ac_cv_path_vi_cv_path_ecl_config="$as_dir/$ac_word$ac_exec_ext"
5007 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5008 break 2
5010 done
5011 done
5012 IFS=$as_save_IFS
5015 esac
5017 vi_cv_path_ecl_config=$ac_cv_path_vi_cv_path_ecl_config
5018 if test -n "$vi_cv_path_ecl_config"; then
5019 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_ecl_config" >&5
5020 $as_echo "${ECHO_T}$vi_cv_path_ecl_config" >&6; }
5021 else
5022 { $as_echo "$as_me:$LINENO: result: no" >&5
5023 $as_echo "${ECHO_T}no" >&6; }
5027 if test "X$vi_cv_path_ecl_config" != "X"; then
5029 if test "${vi_cv_path_ecl_plibs+set}" = set; then
5030 $as_echo_n "(cached)" >&6
5031 else
5033 vi_cv_path_ecl_plibs=`ecl-config --libs`
5038 ECL_LIBS="${vi_cv_path_ecl_plibs}"
5039 if test "${vi_cv_path_ecl_cflags+set}" = set; then
5040 $as_echo_n "(cached)" >&6
5041 else
5043 vi_cv_path_ecl_cflags=`ecl-config --cflags`
5047 ECL_CFLAGS="${vi_cv_path_ecl_cflags}"
5049 ECL_SRC="if_ecl.c"
5050 ECL_OBJ="objects/if_ecl.o"
5052 { echo "$as_me:$LINENO: checking if compile and link flags for ECL are sane" >&5
5053 $as_echo_n "checking if compile and link flags for ECL are sane..." >&6; }
5054 cflags_save=$CFLAGS
5055 libs_save=$LIBS
5056 CFLAGS="$CFLAGS $ECL_CFLAGS"
5057 LIBS="$LIBS $ECL_LIBS"
5058 cat >conftest.$ac_ext <<_ACEOF
5059 /* confdefs.h. */
5060 _ACEOF
5061 cat confdefs.h >>conftest.$ac_ext
5062 cat >>conftest.$ac_ext <<_ACEOF
5063 /* end confdefs.h. */
5066 main ()
5070 return 0;
5072 _ACEOF
5073 rm -f conftest.$ac_objext conftest$ac_exeext
5074 if { (eval $as_echo "$as_me:$LINENO: \"$ac_link\"") >&5
5075 (eval $ac_link) 2>conftest.er1
5076 ac_status=$?
5077 grep -v '^ *+' conftest.er1 >conftest.err
5078 rm -f conftest.er1
5079 cat conftest.err >&5
5080 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5081 (exit $ac_status); } &&
5082 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5083 { (eval $as_echo "$as_me:$LINENO: \"$ac_try\"") >&5
5084 (eval $ac_try) 2>&5
5085 ac_status=$?
5086 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5087 (exit $ac_status); }; } &&
5088 { ac_try='test -s conftest$ac_exeext'
5089 { (eval $as_echo "$as_me:$LINENO: \"$ac_try\"") >&5
5090 (eval $ac_try) 2>&5
5091 ac_status=$?
5092 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5093 (exit $ac_status); }; }; then
5094 { $as_echo "$as_me:$LINENO: result: yes" >&5
5095 $as_echo "${ECHO_T}yes" >&6; }; ecl_ok=yes
5096 else
5097 $as_echo "$as_me: failed program was:" >&5
5098 sed 's/^/| /' conftest.$ac_ext >&5
5100 { $as_echo "$as_me:$LINENO: result: no: ECL DISABLED" >&5
5101 $as_echo "${ECHO_T}no: ECL DISABLED" >&6; }; ecl_ok=no
5104 rm -f conftest.err conftest.$ac_objext \
5105 conftest$ac_exeext conftest.$ac_ext
5106 CFLAGS=$cflags_save
5107 LIBS=$libs_save
5108 if test $ecl_ok = yes; then
5109 cat >>confdefs.h <<\_ACEOF
5110 #define FEAT_ECL 1
5111 _ACEOF
5113 else
5114 ECL_SRC=
5115 ECL_OBJ=
5116 ECL_LIBS=
5117 ECL_CFLAGS=
5121 { $as_echo "$as_me:$LINENO: checking --enable-pythoninterp argument" >&5
5122 $as_echo_n "checking --enable-pythoninterp argument... " >&6; }
5123 # Check whether --enable-pythoninterp was given.
5124 if test "${enable_pythoninterp+set}" = set; then
5125 enableval=$enable_pythoninterp;
5126 else
5127 enable_pythoninterp="no"
5130 { $as_echo "$as_me:$LINENO: result: $enable_pythoninterp" >&5
5131 $as_echo "$enable_pythoninterp" >&6; }
5132 if test "$enable_pythoninterp" = "yes"; then
5133 # Extract the first word of "python", so it can be a program name with args.
5134 set dummy python; ac_word=$2
5135 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5136 $as_echo_n "checking for $ac_word... " >&6; }
5137 if test "${ac_cv_path_vi_cv_path_python+set}" = set; then
5138 $as_echo_n "(cached) " >&6
5139 else
5140 case $vi_cv_path_python in
5141 [\\/]* | ?:[\\/]*)
5142 ac_cv_path_vi_cv_path_python="$vi_cv_path_python" # Let the user override the test with a path.
5145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5146 for as_dir in $PATH
5148 IFS=$as_save_IFS
5149 test -z "$as_dir" && as_dir=.
5150 for ac_exec_ext in '' $ac_executable_extensions; do
5151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5152 ac_cv_path_vi_cv_path_python="$as_dir/$ac_word$ac_exec_ext"
5153 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5154 break 2
5156 done
5157 done
5158 IFS=$as_save_IFS
5161 esac
5163 vi_cv_path_python=$ac_cv_path_vi_cv_path_python
5164 if test -n "$vi_cv_path_python"; then
5165 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_python" >&5
5166 $as_echo "$vi_cv_path_python" >&6; }
5167 else
5168 { $as_echo "$as_me:$LINENO: result: no" >&5
5169 $as_echo "no" >&6; }
5173 if test "X$vi_cv_path_python" != "X"; then
5175 { $as_echo "$as_me:$LINENO: checking Python version" >&5
5176 $as_echo_n "checking Python version... " >&6; }
5177 if test "${vi_cv_var_python_version+set}" = set; then
5178 $as_echo_n "(cached) " >&6
5179 else
5180 vi_cv_var_python_version=`
5181 ${vi_cv_path_python} -c 'import sys; print sys.version[:3]'`
5184 { $as_echo "$as_me:$LINENO: result: $vi_cv_var_python_version" >&5
5185 $as_echo "$vi_cv_var_python_version" >&6; }
5187 { $as_echo "$as_me:$LINENO: checking Python is 1.4 or better" >&5
5188 $as_echo_n "checking Python is 1.4 or better... " >&6; }
5189 if ${vi_cv_path_python} -c \
5190 "import sys; sys.exit(${vi_cv_var_python_version} < 1.4)"
5191 then
5192 { $as_echo "$as_me:$LINENO: result: yep" >&5
5193 $as_echo "yep" >&6; }
5195 { $as_echo "$as_me:$LINENO: checking Python's install prefix" >&5
5196 $as_echo_n "checking Python's install prefix... " >&6; }
5197 if test "${vi_cv_path_python_pfx+set}" = set; then
5198 $as_echo_n "(cached) " >&6
5199 else
5200 vi_cv_path_python_pfx=`
5201 ${vi_cv_path_python} -c \
5202 "import sys; print sys.prefix"`
5204 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_python_pfx" >&5
5205 $as_echo "$vi_cv_path_python_pfx" >&6; }
5207 { $as_echo "$as_me:$LINENO: checking Python's execution prefix" >&5
5208 $as_echo_n "checking Python's execution prefix... " >&6; }
5209 if test "${vi_cv_path_python_epfx+set}" = set; then
5210 $as_echo_n "(cached) " >&6
5211 else
5212 vi_cv_path_python_epfx=`
5213 ${vi_cv_path_python} -c \
5214 "import sys; print sys.exec_prefix"`
5216 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_python_epfx" >&5
5217 $as_echo "$vi_cv_path_python_epfx" >&6; }
5220 if test "${vi_cv_path_pythonpath+set}" = set; then
5221 $as_echo_n "(cached) " >&6
5222 else
5223 vi_cv_path_pythonpath=`
5224 unset PYTHONPATH;
5225 ${vi_cv_path_python} -c \
5226 "import sys, string; print string.join(sys.path,':')"`
5232 # Check whether --with-python-config-dir was given.
5233 if test "${with_python_config_dir+set}" = set; then
5234 withval=$with_python_config_dir; vi_cv_path_python_conf="${withval}"
5238 { $as_echo "$as_me:$LINENO: checking Python's configuration directory" >&5
5239 $as_echo_n "checking Python's configuration directory... " >&6; }
5240 if test "${vi_cv_path_python_conf+set}" = set; then
5241 $as_echo_n "(cached) " >&6
5242 else
5244 vi_cv_path_python_conf=
5245 for path in "${vi_cv_path_python_pfx}" "${vi_cv_path_python_epfx}"; do
5246 for subdir in lib share; do
5247 d="${path}/${subdir}/python${vi_cv_var_python_version}/config"
5248 if test -d "$d" && test -f "$d/config.c"; then
5249 vi_cv_path_python_conf="$d"
5251 done
5252 done
5255 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_python_conf" >&5
5256 $as_echo "$vi_cv_path_python_conf" >&6; }
5258 PYTHON_CONFDIR="${vi_cv_path_python_conf}"
5260 if test "X$PYTHON_CONFDIR" = "X"; then
5261 { $as_echo "$as_me:$LINENO: result: can't find it!" >&5
5262 $as_echo "can't find it!" >&6; }
5263 else
5265 if test "${vi_cv_path_python_plibs+set}" = set; then
5266 $as_echo_n "(cached) " >&6
5267 else
5269 pwd=`pwd`
5270 tmp_mkf="$pwd/config-PyMake$$"
5271 cat -- "${PYTHON_CONFDIR}/Makefile" - <<'eof' >"${tmp_mkf}"
5273 @echo "python_MODLIBS='$(MODLIBS)'"
5274 @echo "python_LIBS='$(LIBS)'"
5275 @echo "python_SYSLIBS='$(SYSLIBS)'"
5276 @echo "python_LINKFORSHARED='$(LINKFORSHARED)'"
5278 eval "`cd ${PYTHON_CONFDIR} && make -f "${tmp_mkf}" __ | sed '/ directory /d'`"
5279 rm -f -- "${tmp_mkf}"
5280 if test "x$MACOSX" = "xyes" && ${vi_cv_path_python} -c \
5281 "import sys; sys.exit(${vi_cv_var_python_version} < 2.3)"; then
5282 vi_cv_path_python_plibs="-framework Python"
5283 else
5284 if test "${vi_cv_var_python_version}" = "1.4"; then
5285 vi_cv_path_python_plibs="${PYTHON_CONFDIR}/libModules.a ${PYTHON_CONFDIR}/libPython.a ${PYTHON_CONFDIR}/libObjects.a ${PYTHON_CONFDIR}/libParser.a"
5286 else
5287 vi_cv_path_python_plibs="-L${PYTHON_CONFDIR} -lpython${vi_cv_var_python_version}"
5289 vi_cv_path_python_plibs="${vi_cv_path_python_plibs} ${python_MODLIBS} ${python_LIBS} ${python_SYSLIBS} ${python_LINKFORSHARED}"
5290 vi_cv_path_python_plibs=`echo $vi_cv_path_python_plibs | sed s/-ltermcap//`
5296 PYTHON_LIBS="${vi_cv_path_python_plibs}"
5297 if test "${vi_cv_path_python_pfx}" = "${vi_cv_path_python_epfx}"; then
5298 PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version}"
5299 else
5300 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}"
5302 PYTHON_SRC="if_python.c"
5303 if test "x$MACOSX" = "xyes"; then
5304 PYTHON_OBJ="objects/if_python.o"
5305 else
5306 PYTHON_OBJ="objects/if_python.o objects/py_config.o"
5308 if test "${vi_cv_var_python_version}" = "1.4"; then
5309 PYTHON_OBJ="$PYTHON_OBJ objects/py_getpath.o"
5311 PYTHON_GETPATH_CFLAGS="-DPYTHONPATH='\"${vi_cv_path_pythonpath}\"' -DPREFIX='\"${vi_cv_path_python_pfx}\"' -DEXEC_PREFIX='\"${vi_cv_path_python_epfx}\"'"
5313 { $as_echo "$as_me:$LINENO: checking if -pthread should be used" >&5
5314 $as_echo_n "checking if -pthread should be used... " >&6; }
5315 threadsafe_flag=
5316 thread_lib=
5317 if test "`(uname) 2>/dev/null`" != Darwin; then
5318 test "$GCC" = yes && threadsafe_flag="-pthread"
5319 if test "`(uname) 2>/dev/null`" = FreeBSD; then
5320 threadsafe_flag="-D_THREAD_SAFE"
5321 thread_lib="-pthread"
5324 libs_save_old=$LIBS
5325 if test -n "$threadsafe_flag"; then
5326 cflags_save=$CFLAGS
5327 CFLAGS="$CFLAGS $threadsafe_flag"
5328 LIBS="$LIBS $thread_lib"
5329 cat >conftest.$ac_ext <<_ACEOF
5330 /* confdefs.h. */
5331 _ACEOF
5332 cat confdefs.h >>conftest.$ac_ext
5333 cat >>conftest.$ac_ext <<_ACEOF
5334 /* end confdefs.h. */
5337 main ()
5341 return 0;
5343 _ACEOF
5344 rm -f conftest.$ac_objext conftest$ac_exeext
5345 if { (ac_try="$ac_link"
5346 case "(($ac_try" in
5347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5348 *) ac_try_echo=$ac_try;;
5349 esac
5350 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5351 $as_echo "$ac_try_echo") >&5
5352 (eval "$ac_link") 2>conftest.er1
5353 ac_status=$?
5354 grep -v '^ *+' conftest.er1 >conftest.err
5355 rm -f conftest.er1
5356 cat conftest.err >&5
5357 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5358 (exit $ac_status); } && {
5359 test -z "$ac_c_werror_flag" ||
5360 test ! -s conftest.err
5361 } && test -s conftest$ac_exeext && {
5362 test "$cross_compiling" = yes ||
5363 $as_test_x conftest$ac_exeext
5364 }; then
5365 { $as_echo "$as_me:$LINENO: result: yes" >&5
5366 $as_echo "yes" >&6; }; PYTHON_CFLAGS="$PYTHON_CFLAGS $threadsafe_flag"
5367 else
5368 $as_echo "$as_me: failed program was:" >&5
5369 sed 's/^/| /' conftest.$ac_ext >&5
5371 { $as_echo "$as_me:$LINENO: result: no" >&5
5372 $as_echo "no" >&6; }; LIBS=$libs_save_old
5376 rm -rf conftest.dSYM
5377 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5378 conftest$ac_exeext conftest.$ac_ext
5379 CFLAGS=$cflags_save
5380 else
5381 { $as_echo "$as_me:$LINENO: result: no" >&5
5382 $as_echo "no" >&6; }
5385 { $as_echo "$as_me:$LINENO: checking if compile and link flags for Python are sane" >&5
5386 $as_echo_n "checking if compile and link flags for Python are sane... " >&6; }
5387 cflags_save=$CFLAGS
5388 libs_save=$LIBS
5389 CFLAGS="$CFLAGS $PYTHON_CFLAGS"
5390 LIBS="$LIBS $PYTHON_LIBS"
5391 cat >conftest.$ac_ext <<_ACEOF
5392 /* confdefs.h. */
5393 _ACEOF
5394 cat confdefs.h >>conftest.$ac_ext
5395 cat >>conftest.$ac_ext <<_ACEOF
5396 /* end confdefs.h. */
5399 main ()
5403 return 0;
5405 _ACEOF
5406 rm -f conftest.$ac_objext conftest$ac_exeext
5407 if { (ac_try="$ac_link"
5408 case "(($ac_try" in
5409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5410 *) ac_try_echo=$ac_try;;
5411 esac
5412 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5413 $as_echo "$ac_try_echo") >&5
5414 (eval "$ac_link") 2>conftest.er1
5415 ac_status=$?
5416 grep -v '^ *+' conftest.er1 >conftest.err
5417 rm -f conftest.er1
5418 cat conftest.err >&5
5419 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5420 (exit $ac_status); } && {
5421 test -z "$ac_c_werror_flag" ||
5422 test ! -s conftest.err
5423 } && test -s conftest$ac_exeext && {
5424 test "$cross_compiling" = yes ||
5425 $as_test_x conftest$ac_exeext
5426 }; then
5427 { $as_echo "$as_me:$LINENO: result: yes" >&5
5428 $as_echo "yes" >&6; }; python_ok=yes
5429 else
5430 $as_echo "$as_me: failed program was:" >&5
5431 sed 's/^/| /' conftest.$ac_ext >&5
5433 { $as_echo "$as_me:$LINENO: result: no: PYTHON DISABLED" >&5
5434 $as_echo "no: PYTHON DISABLED" >&6; }; python_ok=no
5437 rm -rf conftest.dSYM
5438 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5439 conftest$ac_exeext conftest.$ac_ext
5440 CFLAGS=$cflags_save
5441 LIBS=$libs_save
5442 if test $python_ok = yes; then
5443 cat >>confdefs.h <<\_ACEOF
5444 #define FEAT_PYTHON 1
5445 _ACEOF
5447 else
5448 LIBS=$libs_save_old
5449 PYTHON_SRC=
5450 PYTHON_OBJ=
5451 PYTHON_LIBS=
5452 PYTHON_CFLAGS=
5456 else
5457 { $as_echo "$as_me:$LINENO: result: too old" >&5
5458 $as_echo "too old" >&6; }
5469 { $as_echo "$as_me:$LINENO: checking --enable-tclinterp argument" >&5
5470 $as_echo_n "checking --enable-tclinterp argument... " >&6; }
5471 # Check whether --enable-tclinterp was given.
5472 if test "${enable_tclinterp+set}" = set; then
5473 enableval=$enable_tclinterp;
5474 else
5475 enable_tclinterp="no"
5478 { $as_echo "$as_me:$LINENO: result: $enable_tclinterp" >&5
5479 $as_echo "$enable_tclinterp" >&6; }
5481 if test "$enable_tclinterp" = "yes"; then
5483 { $as_echo "$as_me:$LINENO: checking --with-tclsh argument" >&5
5484 $as_echo_n "checking --with-tclsh argument... " >&6; }
5486 # Check whether --with-tclsh was given.
5487 if test "${with_tclsh+set}" = set; then
5488 withval=$with_tclsh; tclsh_name="$withval"; { $as_echo "$as_me:$LINENO: result: $tclsh_name" >&5
5489 $as_echo "$tclsh_name" >&6; }
5490 else
5491 tclsh_name="tclsh8.5"; { $as_echo "$as_me:$LINENO: result: no" >&5
5492 $as_echo "no" >&6; }
5495 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5496 set dummy $tclsh_name; ac_word=$2
5497 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5498 $as_echo_n "checking for $ac_word... " >&6; }
5499 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5500 $as_echo_n "(cached) " >&6
5501 else
5502 case $vi_cv_path_tcl in
5503 [\\/]* | ?:[\\/]*)
5504 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5508 for as_dir in $PATH
5510 IFS=$as_save_IFS
5511 test -z "$as_dir" && as_dir=.
5512 for ac_exec_ext in '' $ac_executable_extensions; do
5513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5514 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5515 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5516 break 2
5518 done
5519 done
5520 IFS=$as_save_IFS
5523 esac
5525 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5526 if test -n "$vi_cv_path_tcl"; then
5527 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5528 $as_echo "$vi_cv_path_tcl" >&6; }
5529 else
5530 { $as_echo "$as_me:$LINENO: result: no" >&5
5531 $as_echo "no" >&6; }
5537 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.5"; then
5538 tclsh_name="tclsh8.4"
5539 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5540 set dummy $tclsh_name; ac_word=$2
5541 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5542 $as_echo_n "checking for $ac_word... " >&6; }
5543 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5544 $as_echo_n "(cached) " >&6
5545 else
5546 case $vi_cv_path_tcl in
5547 [\\/]* | ?:[\\/]*)
5548 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5552 for as_dir in $PATH
5554 IFS=$as_save_IFS
5555 test -z "$as_dir" && as_dir=.
5556 for ac_exec_ext in '' $ac_executable_extensions; do
5557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5558 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5559 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5560 break 2
5562 done
5563 done
5564 IFS=$as_save_IFS
5567 esac
5569 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5570 if test -n "$vi_cv_path_tcl"; then
5571 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5572 $as_echo "$vi_cv_path_tcl" >&6; }
5573 else
5574 { $as_echo "$as_me:$LINENO: result: no" >&5
5575 $as_echo "no" >&6; }
5580 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.4"; then
5581 tclsh_name="tclsh8.2"
5582 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5583 set dummy $tclsh_name; ac_word=$2
5584 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5585 $as_echo_n "checking for $ac_word... " >&6; }
5586 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5587 $as_echo_n "(cached) " >&6
5588 else
5589 case $vi_cv_path_tcl in
5590 [\\/]* | ?:[\\/]*)
5591 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5595 for as_dir in $PATH
5597 IFS=$as_save_IFS
5598 test -z "$as_dir" && as_dir=.
5599 for ac_exec_ext in '' $ac_executable_extensions; do
5600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5601 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5602 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5603 break 2
5605 done
5606 done
5607 IFS=$as_save_IFS
5610 esac
5612 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5613 if test -n "$vi_cv_path_tcl"; then
5614 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5615 $as_echo "$vi_cv_path_tcl" >&6; }
5616 else
5617 { $as_echo "$as_me:$LINENO: result: no" >&5
5618 $as_echo "no" >&6; }
5623 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.2"; then
5624 tclsh_name="tclsh8.0"
5625 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5626 set dummy $tclsh_name; ac_word=$2
5627 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5628 $as_echo_n "checking for $ac_word... " >&6; }
5629 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5630 $as_echo_n "(cached) " >&6
5631 else
5632 case $vi_cv_path_tcl in
5633 [\\/]* | ?:[\\/]*)
5634 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5638 for as_dir in $PATH
5640 IFS=$as_save_IFS
5641 test -z "$as_dir" && as_dir=.
5642 for ac_exec_ext in '' $ac_executable_extensions; do
5643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5644 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5645 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5646 break 2
5648 done
5649 done
5650 IFS=$as_save_IFS
5653 esac
5655 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5656 if test -n "$vi_cv_path_tcl"; then
5657 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5658 $as_echo "$vi_cv_path_tcl" >&6; }
5659 else
5660 { $as_echo "$as_me:$LINENO: result: no" >&5
5661 $as_echo "no" >&6; }
5666 if test "X$vi_cv_path_tcl" = "X"; then
5667 tclsh_name="tclsh"
5668 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5669 set dummy $tclsh_name; ac_word=$2
5670 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5671 $as_echo_n "checking for $ac_word... " >&6; }
5672 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5673 $as_echo_n "(cached) " >&6
5674 else
5675 case $vi_cv_path_tcl in
5676 [\\/]* | ?:[\\/]*)
5677 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5681 for as_dir in $PATH
5683 IFS=$as_save_IFS
5684 test -z "$as_dir" && as_dir=.
5685 for ac_exec_ext in '' $ac_executable_extensions; do
5686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5687 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5688 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5689 break 2
5691 done
5692 done
5693 IFS=$as_save_IFS
5696 esac
5698 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5699 if test -n "$vi_cv_path_tcl"; then
5700 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5701 $as_echo "$vi_cv_path_tcl" >&6; }
5702 else
5703 { $as_echo "$as_me:$LINENO: result: no" >&5
5704 $as_echo "no" >&6; }
5709 if test "X$vi_cv_path_tcl" != "X"; then
5710 { $as_echo "$as_me:$LINENO: checking Tcl version" >&5
5711 $as_echo_n "checking Tcl version... " >&6; }
5712 if echo 'exit [expr [info tclversion] < 8.0]' | $vi_cv_path_tcl - ; then
5713 tclver=`echo 'puts [info tclversion]' | $vi_cv_path_tcl -`
5714 { $as_echo "$as_me:$LINENO: result: $tclver - OK" >&5
5715 $as_echo "$tclver - OK" >&6; };
5716 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 -`
5718 { $as_echo "$as_me:$LINENO: checking for location of Tcl include" >&5
5719 $as_echo_n "checking for location of Tcl include... " >&6; }
5720 if test "x$MACOSX" != "xyes"; then
5721 tclinc="$tclloc/include $tclloc/include/tcl $tclloc/include/tcl$tclver /usr/local/include /usr/local/include/tcl$tclver /usr/include /usr/include/tcl$tclver"
5722 else
5723 tclinc="/System/Library/Frameworks/Tcl.framework/Headers"
5725 TCL_INC=
5726 for try in $tclinc; do
5727 if test -f "$try/tcl.h"; then
5728 { $as_echo "$as_me:$LINENO: result: $try/tcl.h" >&5
5729 $as_echo "$try/tcl.h" >&6; }
5730 TCL_INC=$try
5731 break
5733 done
5734 if test -z "$TCL_INC"; then
5735 { $as_echo "$as_me:$LINENO: result: <not found>" >&5
5736 $as_echo "<not found>" >&6; }
5737 SKIP_TCL=YES
5739 if test -z "$SKIP_TCL"; then
5740 { $as_echo "$as_me:$LINENO: checking for location of tclConfig.sh script" >&5
5741 $as_echo_n "checking for location of tclConfig.sh script... " >&6; }
5742 if test "x$MACOSX" != "xyes"; then
5743 tclcnf=`echo $tclinc | sed s/include/lib/g`
5744 tclcnf="$tclcnf `echo $tclinc | sed s/include/lib64/g`"
5745 else
5746 tclcnf="/System/Library/Frameworks/Tcl.framework"
5748 for try in $tclcnf; do
5749 if test -f $try/tclConfig.sh; then
5750 { $as_echo "$as_me:$LINENO: result: $try/tclConfig.sh" >&5
5751 $as_echo "$try/tclConfig.sh" >&6; }
5752 . $try/tclConfig.sh
5753 TCL_LIBS=`eval echo "$TCL_LIB_SPEC $TCL_LIBS"`
5754 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'`
5755 break
5757 done
5758 if test -z "$TCL_LIBS"; then
5759 { $as_echo "$as_me:$LINENO: result: <not found>" >&5
5760 $as_echo "<not found>" >&6; }
5761 { $as_echo "$as_me:$LINENO: checking for Tcl library by myself" >&5
5762 $as_echo_n "checking for Tcl library by myself... " >&6; }
5763 tcllib=`echo $tclinc | sed s/include/lib/g`
5764 tcllib="$tcllib `echo $tclinc | sed s/include/lib64/g`"
5765 for ext in .so .a ; do
5766 for ver in "" $tclver ; do
5767 for try in $tcllib ; do
5768 trylib=tcl$ver$ext
5769 if test -f $try/lib$trylib ; then
5770 { $as_echo "$as_me:$LINENO: result: $try/lib$trylib" >&5
5771 $as_echo "$try/lib$trylib" >&6; }
5772 TCL_LIBS="-L$try -ltcl$ver -ldl -lm"
5773 if test "`(uname) 2>/dev/null`" = SunOS &&
5774 uname -r | grep '^5' >/dev/null; then
5775 TCL_LIBS="$TCL_LIBS -R $try"
5777 break 3
5779 done
5780 done
5781 done
5782 if test -z "$TCL_LIBS"; then
5783 { $as_echo "$as_me:$LINENO: result: <not found>" >&5
5784 $as_echo "<not found>" >&6; }
5785 SKIP_TCL=YES
5788 if test -z "$SKIP_TCL"; then
5789 cat >>confdefs.h <<\_ACEOF
5790 #define FEAT_TCL 1
5791 _ACEOF
5793 TCL_SRC=if_tcl.c
5794 TCL_OBJ=objects/if_tcl.o
5795 TCL_PRO=if_tcl.pro
5796 TCL_CFLAGS="-I$TCL_INC $TCL_DEFS"
5799 else
5800 { $as_echo "$as_me:$LINENO: result: too old; need Tcl version 8.0 or later" >&5
5801 $as_echo "too old; need Tcl version 8.0 or later" >&6; }
5811 { $as_echo "$as_me:$LINENO: checking --enable-rubyinterp argument" >&5
5812 $as_echo_n "checking --enable-rubyinterp argument... " >&6; }
5813 # Check whether --enable-rubyinterp was given.
5814 if test "${enable_rubyinterp+set}" = set; then
5815 enableval=$enable_rubyinterp;
5816 else
5817 enable_rubyinterp="no"
5820 { $as_echo "$as_me:$LINENO: result: $enable_rubyinterp" >&5
5821 $as_echo "$enable_rubyinterp" >&6; }
5822 if test "$enable_rubyinterp" = "yes"; then
5824 # Extract the first word of "ruby", so it can be a program name with args.
5825 set dummy ruby; ac_word=$2
5826 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5827 $as_echo_n "checking for $ac_word... " >&6; }
5828 if test "${ac_cv_path_vi_cv_path_ruby+set}" = set; then
5829 $as_echo_n "(cached) " >&6
5830 else
5831 case $vi_cv_path_ruby in
5832 [\\/]* | ?:[\\/]*)
5833 ac_cv_path_vi_cv_path_ruby="$vi_cv_path_ruby" # Let the user override the test with a path.
5836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5837 for as_dir in $PATH
5839 IFS=$as_save_IFS
5840 test -z "$as_dir" && as_dir=.
5841 for ac_exec_ext in '' $ac_executable_extensions; do
5842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5843 ac_cv_path_vi_cv_path_ruby="$as_dir/$ac_word$ac_exec_ext"
5844 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5845 break 2
5847 done
5848 done
5849 IFS=$as_save_IFS
5852 esac
5854 vi_cv_path_ruby=$ac_cv_path_vi_cv_path_ruby
5855 if test -n "$vi_cv_path_ruby"; then
5856 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_ruby" >&5
5857 $as_echo "$vi_cv_path_ruby" >&6; }
5858 else
5859 { $as_echo "$as_me:$LINENO: result: no" >&5
5860 $as_echo "no" >&6; }
5864 if test "X$vi_cv_path_ruby" != "X"; then
5865 { $as_echo "$as_me:$LINENO: checking Ruby version" >&5
5866 $as_echo_n "checking Ruby version... " >&6; }
5867 if $vi_cv_path_ruby -e '(VERSION rescue RUBY_VERSION) >= "1.6.0" or exit 1' >/dev/null 2>/dev/null; then
5868 { $as_echo "$as_me:$LINENO: result: OK" >&5
5869 $as_echo "OK" >&6; }
5870 { $as_echo "$as_me:$LINENO: checking Ruby header files" >&5
5871 $as_echo_n "checking Ruby header files... " >&6; }
5872 rubyhdrdir=`$vi_cv_path_ruby -r mkmf -e 'print Config::CONFIG["archdir"] || $hdrdir' 2>/dev/null`
5873 if test "X$rubyhdrdir" != "X"; then
5874 { $as_echo "$as_me:$LINENO: result: $rubyhdrdir" >&5
5875 $as_echo "$rubyhdrdir" >&6; }
5876 RUBY_CFLAGS="-I$rubyhdrdir"
5877 rubylibs=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LIBS"]'`
5878 if test "X$rubylibs" != "X"; then
5879 RUBY_LIBS="$rubylibs"
5881 librubyarg=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["LIBRUBYARG"])'`
5882 if test -f "$rubyhdrdir/$librubyarg"; then
5883 librubyarg="$rubyhdrdir/$librubyarg"
5884 else
5885 rubylibdir=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["libdir"])'`
5886 if test -f "$rubylibdir/$librubyarg"; then
5887 librubyarg="$rubylibdir/$librubyarg"
5888 elif test "$librubyarg" = "libruby.a"; then
5889 librubyarg="-lruby"
5890 else
5891 librubyarg=`$vi_cv_path_ruby -r rbconfig -e "print '$librubyarg'.gsub(/-L\./, %'-L#{Config.expand(Config::CONFIG[\"libdir\"])}')"`
5895 if test "X$librubyarg" != "X"; then
5896 RUBY_LIBS="$librubyarg $RUBY_LIBS"
5898 rubyldflags=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LDFLAGS"]'`
5899 if test "X$rubyldflags" != "X"; then
5900 LDFLAGS="$rubyldflags $LDFLAGS"
5902 RUBY_SRC="if_ruby.c"
5903 RUBY_OBJ="objects/if_ruby.o"
5904 RUBY_PRO="if_ruby.pro"
5905 cat >>confdefs.h <<\_ACEOF
5906 #define FEAT_RUBY 1
5907 _ACEOF
5909 else
5910 { $as_echo "$as_me:$LINENO: result: not found" >&5
5911 $as_echo "not found" >&6; }
5913 else
5914 { $as_echo "$as_me:$LINENO: result: too old; need Ruby version 1.6.0 or later" >&5
5915 $as_echo "too old; need Ruby version 1.6.0 or later" >&6; }
5925 { $as_echo "$as_me:$LINENO: checking --enable-cscope argument" >&5
5926 $as_echo_n "checking --enable-cscope argument... " >&6; }
5927 # Check whether --enable-cscope was given.
5928 if test "${enable_cscope+set}" = set; then
5929 enableval=$enable_cscope;
5930 else
5931 enable_cscope="no"
5934 { $as_echo "$as_me:$LINENO: result: $enable_cscope" >&5
5935 $as_echo "$enable_cscope" >&6; }
5936 if test "$enable_cscope" = "yes"; then
5937 cat >>confdefs.h <<\_ACEOF
5938 #define FEAT_CSCOPE 1
5939 _ACEOF
5943 { $as_echo "$as_me:$LINENO: checking --enable-workshop argument" >&5
5944 $as_echo_n "checking --enable-workshop argument... " >&6; }
5945 # Check whether --enable-workshop was given.
5946 if test "${enable_workshop+set}" = set; then
5947 enableval=$enable_workshop;
5948 else
5949 enable_workshop="no"
5952 { $as_echo "$as_me:$LINENO: result: $enable_workshop" >&5
5953 $as_echo "$enable_workshop" >&6; }
5954 if test "$enable_workshop" = "yes"; then
5955 cat >>confdefs.h <<\_ACEOF
5956 #define FEAT_SUN_WORKSHOP 1
5957 _ACEOF
5959 WORKSHOP_SRC="workshop.c integration.c"
5961 WORKSHOP_OBJ="objects/workshop.o objects/integration.o"
5963 if test "${enable_gui-xxx}" = xxx; then
5964 enable_gui=motif
5968 { $as_echo "$as_me:$LINENO: checking --disable-netbeans argument" >&5
5969 $as_echo_n "checking --disable-netbeans argument... " >&6; }
5970 # Check whether --enable-netbeans was given.
5971 if test "${enable_netbeans+set}" = set; then
5972 enableval=$enable_netbeans;
5973 else
5974 enable_netbeans="yes"
5977 if test "$enable_netbeans" = "yes"; then
5978 { $as_echo "$as_me:$LINENO: result: no" >&5
5979 $as_echo "no" >&6; }
5981 { $as_echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
5982 $as_echo_n "checking for socket in -lsocket... " >&6; }
5983 if test "${ac_cv_lib_socket_socket+set}" = set; then
5984 $as_echo_n "(cached) " >&6
5985 else
5986 ac_check_lib_save_LIBS=$LIBS
5987 LIBS="-lsocket $LIBS"
5988 cat >conftest.$ac_ext <<_ACEOF
5989 /* confdefs.h. */
5990 _ACEOF
5991 cat confdefs.h >>conftest.$ac_ext
5992 cat >>conftest.$ac_ext <<_ACEOF
5993 /* end confdefs.h. */
5995 /* Override any GCC internal prototype to avoid an error.
5996 Use char because int might match the return type of a GCC
5997 builtin and then its argument prototype would still apply. */
5998 #ifdef __cplusplus
5999 extern "C"
6000 #endif
6001 char socket ();
6003 main ()
6005 return socket ();
6007 return 0;
6009 _ACEOF
6010 rm -f conftest.$ac_objext conftest$ac_exeext
6011 if { (ac_try="$ac_link"
6012 case "(($ac_try" in
6013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6014 *) ac_try_echo=$ac_try;;
6015 esac
6016 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6017 $as_echo "$ac_try_echo") >&5
6018 (eval "$ac_link") 2>conftest.er1
6019 ac_status=$?
6020 grep -v '^ *+' conftest.er1 >conftest.err
6021 rm -f conftest.er1
6022 cat conftest.err >&5
6023 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6024 (exit $ac_status); } && {
6025 test -z "$ac_c_werror_flag" ||
6026 test ! -s conftest.err
6027 } && test -s conftest$ac_exeext && {
6028 test "$cross_compiling" = yes ||
6029 $as_test_x conftest$ac_exeext
6030 }; then
6031 ac_cv_lib_socket_socket=yes
6032 else
6033 $as_echo "$as_me: failed program was:" >&5
6034 sed 's/^/| /' conftest.$ac_ext >&5
6036 ac_cv_lib_socket_socket=no
6039 rm -rf conftest.dSYM
6040 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6041 conftest$ac_exeext conftest.$ac_ext
6042 LIBS=$ac_check_lib_save_LIBS
6044 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
6045 $as_echo "$ac_cv_lib_socket_socket" >&6; }
6046 if test $ac_cv_lib_socket_socket = yes; then
6047 cat >>confdefs.h <<_ACEOF
6048 #define HAVE_LIBSOCKET 1
6049 _ACEOF
6051 LIBS="-lsocket $LIBS"
6056 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6057 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
6058 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6059 $as_echo_n "(cached) " >&6
6060 else
6061 ac_check_lib_save_LIBS=$LIBS
6062 LIBS="-lnsl $LIBS"
6063 cat >conftest.$ac_ext <<_ACEOF
6064 /* confdefs.h. */
6065 _ACEOF
6066 cat confdefs.h >>conftest.$ac_ext
6067 cat >>conftest.$ac_ext <<_ACEOF
6068 /* end confdefs.h. */
6070 /* Override any GCC internal prototype to avoid an error.
6071 Use char because int might match the return type of a GCC
6072 builtin and then its argument prototype would still apply. */
6073 #ifdef __cplusplus
6074 extern "C"
6075 #endif
6076 char gethostbyname ();
6078 main ()
6080 return gethostbyname ();
6082 return 0;
6084 _ACEOF
6085 rm -f conftest.$ac_objext conftest$ac_exeext
6086 if { (ac_try="$ac_link"
6087 case "(($ac_try" in
6088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6089 *) ac_try_echo=$ac_try;;
6090 esac
6091 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6092 $as_echo "$ac_try_echo") >&5
6093 (eval "$ac_link") 2>conftest.er1
6094 ac_status=$?
6095 grep -v '^ *+' conftest.er1 >conftest.err
6096 rm -f conftest.er1
6097 cat conftest.err >&5
6098 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6099 (exit $ac_status); } && {
6100 test -z "$ac_c_werror_flag" ||
6101 test ! -s conftest.err
6102 } && test -s conftest$ac_exeext && {
6103 test "$cross_compiling" = yes ||
6104 $as_test_x conftest$ac_exeext
6105 }; then
6106 ac_cv_lib_nsl_gethostbyname=yes
6107 else
6108 $as_echo "$as_me: failed program was:" >&5
6109 sed 's/^/| /' conftest.$ac_ext >&5
6111 ac_cv_lib_nsl_gethostbyname=no
6114 rm -rf conftest.dSYM
6115 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6116 conftest$ac_exeext conftest.$ac_ext
6117 LIBS=$ac_check_lib_save_LIBS
6119 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6120 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
6121 if test $ac_cv_lib_nsl_gethostbyname = yes; then
6122 cat >>confdefs.h <<_ACEOF
6123 #define HAVE_LIBNSL 1
6124 _ACEOF
6126 LIBS="-lnsl $LIBS"
6130 { $as_echo "$as_me:$LINENO: checking whether compiling netbeans integration is possible" >&5
6131 $as_echo_n "checking whether compiling netbeans integration is possible... " >&6; }
6132 cat >conftest.$ac_ext <<_ACEOF
6133 /* confdefs.h. */
6134 _ACEOF
6135 cat confdefs.h >>conftest.$ac_ext
6136 cat >>conftest.$ac_ext <<_ACEOF
6137 /* end confdefs.h. */
6139 #include <stdio.h>
6140 #include <stdlib.h>
6141 #include <stdarg.h>
6142 #include <fcntl.h>
6143 #include <netdb.h>
6144 #include <netinet/in.h>
6145 #include <errno.h>
6146 #include <sys/types.h>
6147 #include <sys/socket.h>
6148 /* Check bitfields */
6149 struct nbbuf {
6150 unsigned int initDone:1;
6151 ushort signmaplen;
6155 main ()
6158 /* Check creating a socket. */
6159 struct sockaddr_in server;
6160 (void)socket(AF_INET, SOCK_STREAM, 0);
6161 (void)htons(100);
6162 (void)gethostbyname("microsoft.com");
6163 if (errno == ECONNREFUSED)
6164 (void)connect(1, (struct sockaddr *)&server, sizeof(server));
6167 return 0;
6169 _ACEOF
6170 rm -f conftest.$ac_objext conftest$ac_exeext
6171 if { (ac_try="$ac_link"
6172 case "(($ac_try" in
6173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6174 *) ac_try_echo=$ac_try;;
6175 esac
6176 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6177 $as_echo "$ac_try_echo") >&5
6178 (eval "$ac_link") 2>conftest.er1
6179 ac_status=$?
6180 grep -v '^ *+' conftest.er1 >conftest.err
6181 rm -f conftest.er1
6182 cat conftest.err >&5
6183 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6184 (exit $ac_status); } && {
6185 test -z "$ac_c_werror_flag" ||
6186 test ! -s conftest.err
6187 } && test -s conftest$ac_exeext && {
6188 test "$cross_compiling" = yes ||
6189 $as_test_x conftest$ac_exeext
6190 }; then
6191 { $as_echo "$as_me:$LINENO: result: yes" >&5
6192 $as_echo "yes" >&6; }
6193 else
6194 $as_echo "$as_me: failed program was:" >&5
6195 sed 's/^/| /' conftest.$ac_ext >&5
6197 { $as_echo "$as_me:$LINENO: result: no" >&5
6198 $as_echo "no" >&6; }; enable_netbeans="no"
6201 rm -rf conftest.dSYM
6202 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6203 conftest$ac_exeext conftest.$ac_ext
6204 else
6205 { $as_echo "$as_me:$LINENO: result: yes" >&5
6206 $as_echo "yes" >&6; }
6208 if test "$enable_netbeans" = "yes"; then
6209 cat >>confdefs.h <<\_ACEOF
6210 #define FEAT_NETBEANS_INTG 1
6211 _ACEOF
6213 NETBEANS_SRC="netbeans.c"
6215 NETBEANS_OBJ="objects/netbeans.o"
6219 { $as_echo "$as_me:$LINENO: checking --enable-sniff argument" >&5
6220 $as_echo_n "checking --enable-sniff argument... " >&6; }
6221 # Check whether --enable-sniff was given.
6222 if test "${enable_sniff+set}" = set; then
6223 enableval=$enable_sniff;
6224 else
6225 enable_sniff="no"
6228 { $as_echo "$as_me:$LINENO: result: $enable_sniff" >&5
6229 $as_echo "$enable_sniff" >&6; }
6230 if test "$enable_sniff" = "yes"; then
6231 cat >>confdefs.h <<\_ACEOF
6232 #define FEAT_SNIFF 1
6233 _ACEOF
6235 SNIFF_SRC="if_sniff.c"
6237 SNIFF_OBJ="objects/if_sniff.o"
6241 { $as_echo "$as_me:$LINENO: checking --enable-multibyte argument" >&5
6242 $as_echo_n "checking --enable-multibyte argument... " >&6; }
6243 # Check whether --enable-multibyte was given.
6244 if test "${enable_multibyte+set}" = set; then
6245 enableval=$enable_multibyte;
6246 else
6247 enable_multibyte="no"
6250 { $as_echo "$as_me:$LINENO: result: $enable_multibyte" >&5
6251 $as_echo "$enable_multibyte" >&6; }
6252 if test "$enable_multibyte" = "yes"; then
6253 cat >>confdefs.h <<\_ACEOF
6254 #define FEAT_MBYTE 1
6255 _ACEOF
6259 { $as_echo "$as_me:$LINENO: checking --enable-hangulinput argument" >&5
6260 $as_echo_n "checking --enable-hangulinput argument... " >&6; }
6261 # Check whether --enable-hangulinput was given.
6262 if test "${enable_hangulinput+set}" = set; then
6263 enableval=$enable_hangulinput;
6264 else
6265 enable_hangulinput="no"
6268 { $as_echo "$as_me:$LINENO: result: $enable_hangulinput" >&5
6269 $as_echo "$enable_hangulinput" >&6; }
6271 { $as_echo "$as_me:$LINENO: checking --enable-xim argument" >&5
6272 $as_echo_n "checking --enable-xim argument... " >&6; }
6273 # Check whether --enable-xim was given.
6274 if test "${enable_xim+set}" = set; then
6275 enableval=$enable_xim; { $as_echo "$as_me:$LINENO: result: $enable_xim" >&5
6276 $as_echo "$enable_xim" >&6; }
6277 else
6278 enable_xim="auto"; { $as_echo "$as_me:$LINENO: result: defaulting to auto" >&5
6279 $as_echo "defaulting to auto" >&6; }
6283 { $as_echo "$as_me:$LINENO: checking --enable-fontset argument" >&5
6284 $as_echo_n "checking --enable-fontset argument... " >&6; }
6285 # Check whether --enable-fontset was given.
6286 if test "${enable_fontset+set}" = set; then
6287 enableval=$enable_fontset;
6288 else
6289 enable_fontset="no"
6292 { $as_echo "$as_me:$LINENO: result: $enable_fontset" >&5
6293 $as_echo "$enable_fontset" >&6; }
6295 test -z "$with_x" && with_x=yes
6296 test "${enable_gui-yes}" != no -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && with_x=yes
6297 if test "$with_x" = no; then
6298 { $as_echo "$as_me:$LINENO: result: defaulting to: don't HAVE_X11" >&5
6299 $as_echo "defaulting to: don't HAVE_X11" >&6; }
6300 else
6302 # Extract the first word of "xmkmf", so it can be a program name with args.
6303 set dummy xmkmf; ac_word=$2
6304 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6305 $as_echo_n "checking for $ac_word... " >&6; }
6306 if test "${ac_cv_path_xmkmfpath+set}" = set; then
6307 $as_echo_n "(cached) " >&6
6308 else
6309 case $xmkmfpath in
6310 [\\/]* | ?:[\\/]*)
6311 ac_cv_path_xmkmfpath="$xmkmfpath" # Let the user override the test with a path.
6314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6315 for as_dir in $PATH
6317 IFS=$as_save_IFS
6318 test -z "$as_dir" && as_dir=.
6319 for ac_exec_ext in '' $ac_executable_extensions; do
6320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6321 ac_cv_path_xmkmfpath="$as_dir/$ac_word$ac_exec_ext"
6322 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6323 break 2
6325 done
6326 done
6327 IFS=$as_save_IFS
6330 esac
6332 xmkmfpath=$ac_cv_path_xmkmfpath
6333 if test -n "$xmkmfpath"; then
6334 { $as_echo "$as_me:$LINENO: result: $xmkmfpath" >&5
6335 $as_echo "$xmkmfpath" >&6; }
6336 else
6337 { $as_echo "$as_me:$LINENO: result: no" >&5
6338 $as_echo "no" >&6; }
6343 { $as_echo "$as_me:$LINENO: checking for X" >&5
6344 $as_echo_n "checking for X... " >&6; }
6347 # Check whether --with-x was given.
6348 if test "${with_x+set}" = set; then
6349 withval=$with_x;
6352 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6353 if test "x$with_x" = xno; then
6354 # The user explicitly disabled X.
6355 have_x=disabled
6356 else
6357 case $x_includes,$x_libraries in #(
6358 *\'*) { { $as_echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
6359 $as_echo "$as_me: error: Cannot use X directory names containing '" >&2;}
6360 { (exit 1); exit 1; }; };; #(
6361 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
6362 $as_echo_n "(cached) " >&6
6363 else
6364 # One or both of the vars are not set, and there is no cached value.
6365 ac_x_includes=no ac_x_libraries=no
6366 rm -f -r conftest.dir
6367 if mkdir conftest.dir; then
6368 cd conftest.dir
6369 cat >Imakefile <<'_ACEOF'
6370 incroot:
6371 @echo incroot='${INCROOT}'
6372 usrlibdir:
6373 @echo usrlibdir='${USRLIBDIR}'
6374 libdir:
6375 @echo libdir='${LIBDIR}'
6376 _ACEOF
6377 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
6378 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6379 for ac_var in incroot usrlibdir libdir; do
6380 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
6381 done
6382 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6383 for ac_extension in a so sl dylib la dll; do
6384 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
6385 test -f "$ac_im_libdir/libX11.$ac_extension"; then
6386 ac_im_usrlibdir=$ac_im_libdir; break
6388 done
6389 # Screen out bogus values from the imake configuration. They are
6390 # bogus both because they are the default anyway, and because
6391 # using them would break gcc on systems where it needs fixed includes.
6392 case $ac_im_incroot in
6393 /usr/include) ac_x_includes= ;;
6394 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6395 esac
6396 case $ac_im_usrlibdir in
6397 /usr/lib | /lib) ;;
6398 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6399 esac
6401 cd ..
6402 rm -f -r conftest.dir
6405 # Standard set of common directories for X headers.
6406 # Check X11 before X11Rn because it is often a symlink to the current release.
6407 ac_x_header_dirs='
6408 /usr/X11/include
6409 /usr/X11R6/include
6410 /usr/X11R5/include
6411 /usr/X11R4/include
6413 /usr/include/X11
6414 /usr/include/X11R6
6415 /usr/include/X11R5
6416 /usr/include/X11R4
6418 /usr/local/X11/include
6419 /usr/local/X11R6/include
6420 /usr/local/X11R5/include
6421 /usr/local/X11R4/include
6423 /usr/local/include/X11
6424 /usr/local/include/X11R6
6425 /usr/local/include/X11R5
6426 /usr/local/include/X11R4
6428 /usr/X386/include
6429 /usr/x386/include
6430 /usr/XFree86/include/X11
6432 /usr/include
6433 /usr/local/include
6434 /usr/unsupported/include
6435 /usr/athena/include
6436 /usr/local/x11r5/include
6437 /usr/lpp/Xamples/include
6439 /usr/openwin/include
6440 /usr/openwin/share/include'
6442 if test "$ac_x_includes" = no; then
6443 # Guess where to find include files, by looking for Xlib.h.
6444 # First, try using that file with no special directory specified.
6445 cat >conftest.$ac_ext <<_ACEOF
6446 /* confdefs.h. */
6447 _ACEOF
6448 cat confdefs.h >>conftest.$ac_ext
6449 cat >>conftest.$ac_ext <<_ACEOF
6450 /* end confdefs.h. */
6451 #include <X11/Xlib.h>
6452 _ACEOF
6453 if { (ac_try="$ac_cpp conftest.$ac_ext"
6454 case "(($ac_try" in
6455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6456 *) ac_try_echo=$ac_try;;
6457 esac
6458 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6459 $as_echo "$ac_try_echo") >&5
6460 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6461 ac_status=$?
6462 grep -v '^ *+' conftest.er1 >conftest.err
6463 rm -f conftest.er1
6464 cat conftest.err >&5
6465 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6466 (exit $ac_status); } >/dev/null && {
6467 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6468 test ! -s conftest.err
6469 }; then
6470 # We can compile using X headers with no special include directory.
6471 ac_x_includes=
6472 else
6473 $as_echo "$as_me: failed program was:" >&5
6474 sed 's/^/| /' conftest.$ac_ext >&5
6476 for ac_dir in $ac_x_header_dirs; do
6477 if test -r "$ac_dir/X11/Xlib.h"; then
6478 ac_x_includes=$ac_dir
6479 break
6481 done
6484 rm -f conftest.err conftest.$ac_ext
6485 fi # $ac_x_includes = no
6487 if test "$ac_x_libraries" = no; then
6488 # Check for the libraries.
6489 # See if we find them without any special options.
6490 # Don't add to $LIBS permanently.
6491 ac_save_LIBS=$LIBS
6492 LIBS="-lX11 $LIBS"
6493 cat >conftest.$ac_ext <<_ACEOF
6494 /* confdefs.h. */
6495 _ACEOF
6496 cat confdefs.h >>conftest.$ac_ext
6497 cat >>conftest.$ac_ext <<_ACEOF
6498 /* end confdefs.h. */
6499 #include <X11/Xlib.h>
6501 main ()
6503 XrmInitialize ()
6505 return 0;
6507 _ACEOF
6508 rm -f conftest.$ac_objext conftest$ac_exeext
6509 if { (ac_try="$ac_link"
6510 case "(($ac_try" in
6511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6512 *) ac_try_echo=$ac_try;;
6513 esac
6514 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6515 $as_echo "$ac_try_echo") >&5
6516 (eval "$ac_link") 2>conftest.er1
6517 ac_status=$?
6518 grep -v '^ *+' conftest.er1 >conftest.err
6519 rm -f conftest.er1
6520 cat conftest.err >&5
6521 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6522 (exit $ac_status); } && {
6523 test -z "$ac_c_werror_flag" ||
6524 test ! -s conftest.err
6525 } && test -s conftest$ac_exeext && {
6526 test "$cross_compiling" = yes ||
6527 $as_test_x conftest$ac_exeext
6528 }; then
6529 LIBS=$ac_save_LIBS
6530 # We can link X programs with no special library path.
6531 ac_x_libraries=
6532 else
6533 $as_echo "$as_me: failed program was:" >&5
6534 sed 's/^/| /' conftest.$ac_ext >&5
6536 LIBS=$ac_save_LIBS
6537 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6539 # Don't even attempt the hair of trying to link an X program!
6540 for ac_extension in a so sl dylib la dll; do
6541 if test -r "$ac_dir/libX11.$ac_extension"; then
6542 ac_x_libraries=$ac_dir
6543 break 2
6545 done
6546 done
6549 rm -rf conftest.dSYM
6550 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6551 conftest$ac_exeext conftest.$ac_ext
6552 fi # $ac_x_libraries = no
6554 case $ac_x_includes,$ac_x_libraries in #(
6555 no,* | *,no | *\'*)
6556 # Didn't find X, or a directory has "'" in its name.
6557 ac_cv_have_x="have_x=no";; #(
6559 # Record where we found X for the cache.
6560 ac_cv_have_x="have_x=yes\
6561 ac_x_includes='$ac_x_includes'\
6562 ac_x_libraries='$ac_x_libraries'"
6563 esac
6565 ;; #(
6566 *) have_x=yes;;
6567 esac
6568 eval "$ac_cv_have_x"
6569 fi # $with_x != no
6571 if test "$have_x" != yes; then
6572 { $as_echo "$as_me:$LINENO: result: $have_x" >&5
6573 $as_echo "$have_x" >&6; }
6574 no_x=yes
6575 else
6576 # If each of the values was on the command line, it overrides each guess.
6577 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6578 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6579 # Update the cache value to reflect the command line values.
6580 ac_cv_have_x="have_x=yes\
6581 ac_x_includes='$x_includes'\
6582 ac_x_libraries='$x_libraries'"
6583 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6584 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
6587 if test "$no_x" = yes; then
6588 # Not all programs may use this symbol, but it does not hurt to define it.
6590 cat >>confdefs.h <<\_ACEOF
6591 #define X_DISPLAY_MISSING 1
6592 _ACEOF
6594 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6595 else
6596 if test -n "$x_includes"; then
6597 X_CFLAGS="$X_CFLAGS -I$x_includes"
6600 # It would also be nice to do this for all -L options, not just this one.
6601 if test -n "$x_libraries"; then
6602 X_LIBS="$X_LIBS -L$x_libraries"
6603 # For Solaris; some versions of Sun CC require a space after -R and
6604 # others require no space. Words are not sufficient . . . .
6605 { $as_echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
6606 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
6607 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
6608 ac_xsave_c_werror_flag=$ac_c_werror_flag
6609 ac_c_werror_flag=yes
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. */
6618 main ()
6622 return 0;
6624 _ACEOF
6625 rm -f conftest.$ac_objext conftest$ac_exeext
6626 if { (ac_try="$ac_link"
6627 case "(($ac_try" in
6628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6629 *) ac_try_echo=$ac_try;;
6630 esac
6631 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6632 $as_echo "$ac_try_echo") >&5
6633 (eval "$ac_link") 2>conftest.er1
6634 ac_status=$?
6635 grep -v '^ *+' conftest.er1 >conftest.err
6636 rm -f conftest.er1
6637 cat conftest.err >&5
6638 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6639 (exit $ac_status); } && {
6640 test -z "$ac_c_werror_flag" ||
6641 test ! -s conftest.err
6642 } && test -s conftest$ac_exeext && {
6643 test "$cross_compiling" = yes ||
6644 $as_test_x conftest$ac_exeext
6645 }; then
6646 { $as_echo "$as_me:$LINENO: result: no" >&5
6647 $as_echo "no" >&6; }
6648 X_LIBS="$X_LIBS -R$x_libraries"
6649 else
6650 $as_echo "$as_me: failed program was:" >&5
6651 sed 's/^/| /' conftest.$ac_ext >&5
6653 LIBS="$ac_xsave_LIBS -R $x_libraries"
6654 cat >conftest.$ac_ext <<_ACEOF
6655 /* confdefs.h. */
6656 _ACEOF
6657 cat confdefs.h >>conftest.$ac_ext
6658 cat >>conftest.$ac_ext <<_ACEOF
6659 /* end confdefs.h. */
6662 main ()
6666 return 0;
6668 _ACEOF
6669 rm -f conftest.$ac_objext conftest$ac_exeext
6670 if { (ac_try="$ac_link"
6671 case "(($ac_try" in
6672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6673 *) ac_try_echo=$ac_try;;
6674 esac
6675 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6676 $as_echo "$ac_try_echo") >&5
6677 (eval "$ac_link") 2>conftest.er1
6678 ac_status=$?
6679 grep -v '^ *+' conftest.er1 >conftest.err
6680 rm -f conftest.er1
6681 cat conftest.err >&5
6682 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6683 (exit $ac_status); } && {
6684 test -z "$ac_c_werror_flag" ||
6685 test ! -s conftest.err
6686 } && test -s conftest$ac_exeext && {
6687 test "$cross_compiling" = yes ||
6688 $as_test_x conftest$ac_exeext
6689 }; then
6690 { $as_echo "$as_me:$LINENO: result: yes" >&5
6691 $as_echo "yes" >&6; }
6692 X_LIBS="$X_LIBS -R $x_libraries"
6693 else
6694 $as_echo "$as_me: failed program was:" >&5
6695 sed 's/^/| /' conftest.$ac_ext >&5
6697 { $as_echo "$as_me:$LINENO: result: neither works" >&5
6698 $as_echo "neither works" >&6; }
6701 rm -rf conftest.dSYM
6702 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6703 conftest$ac_exeext conftest.$ac_ext
6706 rm -rf conftest.dSYM
6707 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6708 conftest$ac_exeext conftest.$ac_ext
6709 ac_c_werror_flag=$ac_xsave_c_werror_flag
6710 LIBS=$ac_xsave_LIBS
6713 # Check for system-dependent libraries X programs must link with.
6714 # Do this before checking for the system-independent R6 libraries
6715 # (-lICE), since we may need -lsocket or whatever for X linking.
6717 if test "$ISC" = yes; then
6718 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
6719 else
6720 # Martyn Johnson says this is needed for Ultrix, if the X
6721 # libraries were built with DECnet support. And Karl Berry says
6722 # the Alpha needs dnet_stub (dnet does not exist).
6723 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
6724 cat >conftest.$ac_ext <<_ACEOF
6725 /* confdefs.h. */
6726 _ACEOF
6727 cat confdefs.h >>conftest.$ac_ext
6728 cat >>conftest.$ac_ext <<_ACEOF
6729 /* end confdefs.h. */
6731 /* Override any GCC internal prototype to avoid an error.
6732 Use char because int might match the return type of a GCC
6733 builtin and then its argument prototype would still apply. */
6734 #ifdef __cplusplus
6735 extern "C"
6736 #endif
6737 char XOpenDisplay ();
6739 main ()
6741 return XOpenDisplay ();
6743 return 0;
6745 _ACEOF
6746 rm -f conftest.$ac_objext conftest$ac_exeext
6747 if { (ac_try="$ac_link"
6748 case "(($ac_try" in
6749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6750 *) ac_try_echo=$ac_try;;
6751 esac
6752 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6753 $as_echo "$ac_try_echo") >&5
6754 (eval "$ac_link") 2>conftest.er1
6755 ac_status=$?
6756 grep -v '^ *+' conftest.er1 >conftest.err
6757 rm -f conftest.er1
6758 cat conftest.err >&5
6759 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6760 (exit $ac_status); } && {
6761 test -z "$ac_c_werror_flag" ||
6762 test ! -s conftest.err
6763 } && test -s conftest$ac_exeext && {
6764 test "$cross_compiling" = yes ||
6765 $as_test_x conftest$ac_exeext
6766 }; then
6768 else
6769 $as_echo "$as_me: failed program was:" >&5
6770 sed 's/^/| /' conftest.$ac_ext >&5
6772 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
6773 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
6774 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
6775 $as_echo_n "(cached) " >&6
6776 else
6777 ac_check_lib_save_LIBS=$LIBS
6778 LIBS="-ldnet $LIBS"
6779 cat >conftest.$ac_ext <<_ACEOF
6780 /* confdefs.h. */
6781 _ACEOF
6782 cat confdefs.h >>conftest.$ac_ext
6783 cat >>conftest.$ac_ext <<_ACEOF
6784 /* end confdefs.h. */
6786 /* Override any GCC internal prototype to avoid an error.
6787 Use char because int might match the return type of a GCC
6788 builtin and then its argument prototype would still apply. */
6789 #ifdef __cplusplus
6790 extern "C"
6791 #endif
6792 char dnet_ntoa ();
6794 main ()
6796 return dnet_ntoa ();
6798 return 0;
6800 _ACEOF
6801 rm -f conftest.$ac_objext conftest$ac_exeext
6802 if { (ac_try="$ac_link"
6803 case "(($ac_try" in
6804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6805 *) ac_try_echo=$ac_try;;
6806 esac
6807 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6808 $as_echo "$ac_try_echo") >&5
6809 (eval "$ac_link") 2>conftest.er1
6810 ac_status=$?
6811 grep -v '^ *+' conftest.er1 >conftest.err
6812 rm -f conftest.er1
6813 cat conftest.err >&5
6814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6815 (exit $ac_status); } && {
6816 test -z "$ac_c_werror_flag" ||
6817 test ! -s conftest.err
6818 } && test -s conftest$ac_exeext && {
6819 test "$cross_compiling" = yes ||
6820 $as_test_x conftest$ac_exeext
6821 }; then
6822 ac_cv_lib_dnet_dnet_ntoa=yes
6823 else
6824 $as_echo "$as_me: failed program was:" >&5
6825 sed 's/^/| /' conftest.$ac_ext >&5
6827 ac_cv_lib_dnet_dnet_ntoa=no
6830 rm -rf conftest.dSYM
6831 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6832 conftest$ac_exeext conftest.$ac_ext
6833 LIBS=$ac_check_lib_save_LIBS
6835 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6836 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
6837 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
6838 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
6841 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
6842 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
6843 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
6844 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
6845 $as_echo_n "(cached) " >&6
6846 else
6847 ac_check_lib_save_LIBS=$LIBS
6848 LIBS="-ldnet_stub $LIBS"
6849 cat >conftest.$ac_ext <<_ACEOF
6850 /* confdefs.h. */
6851 _ACEOF
6852 cat confdefs.h >>conftest.$ac_ext
6853 cat >>conftest.$ac_ext <<_ACEOF
6854 /* end confdefs.h. */
6856 /* Override any GCC internal prototype to avoid an error.
6857 Use char because int might match the return type of a GCC
6858 builtin and then its argument prototype would still apply. */
6859 #ifdef __cplusplus
6860 extern "C"
6861 #endif
6862 char dnet_ntoa ();
6864 main ()
6866 return dnet_ntoa ();
6868 return 0;
6870 _ACEOF
6871 rm -f conftest.$ac_objext conftest$ac_exeext
6872 if { (ac_try="$ac_link"
6873 case "(($ac_try" in
6874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6875 *) ac_try_echo=$ac_try;;
6876 esac
6877 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6878 $as_echo "$ac_try_echo") >&5
6879 (eval "$ac_link") 2>conftest.er1
6880 ac_status=$?
6881 grep -v '^ *+' conftest.er1 >conftest.err
6882 rm -f conftest.er1
6883 cat conftest.err >&5
6884 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6885 (exit $ac_status); } && {
6886 test -z "$ac_c_werror_flag" ||
6887 test ! -s conftest.err
6888 } && test -s conftest$ac_exeext && {
6889 test "$cross_compiling" = yes ||
6890 $as_test_x conftest$ac_exeext
6891 }; then
6892 ac_cv_lib_dnet_stub_dnet_ntoa=yes
6893 else
6894 $as_echo "$as_me: failed program was:" >&5
6895 sed 's/^/| /' conftest.$ac_ext >&5
6897 ac_cv_lib_dnet_stub_dnet_ntoa=no
6900 rm -rf conftest.dSYM
6901 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6902 conftest$ac_exeext conftest.$ac_ext
6903 LIBS=$ac_check_lib_save_LIBS
6905 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
6906 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
6907 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
6908 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
6914 rm -rf conftest.dSYM
6915 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6916 conftest$ac_exeext conftest.$ac_ext
6917 LIBS="$ac_xsave_LIBS"
6919 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
6920 # to get the SysV transport functions.
6921 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
6922 # needs -lnsl.
6923 # The nsl library prevents programs from opening the X display
6924 # on Irix 5.2, according to T.E. Dickey.
6925 # The functions gethostbyname, getservbyname, and inet_addr are
6926 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
6927 { $as_echo "$as_me:$LINENO: checking for gethostbyname" >&5
6928 $as_echo_n "checking for gethostbyname... " >&6; }
6929 if test "${ac_cv_func_gethostbyname+set}" = set; then
6930 $as_echo_n "(cached) " >&6
6931 else
6932 cat >conftest.$ac_ext <<_ACEOF
6933 /* confdefs.h. */
6934 _ACEOF
6935 cat confdefs.h >>conftest.$ac_ext
6936 cat >>conftest.$ac_ext <<_ACEOF
6937 /* end confdefs.h. */
6938 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
6939 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6940 #define gethostbyname innocuous_gethostbyname
6942 /* System header to define __stub macros and hopefully few prototypes,
6943 which can conflict with char gethostbyname (); below.
6944 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6945 <limits.h> exists even on freestanding compilers. */
6947 #ifdef __STDC__
6948 # include <limits.h>
6949 #else
6950 # include <assert.h>
6951 #endif
6953 #undef gethostbyname
6955 /* Override any GCC internal prototype to avoid an error.
6956 Use char because int might match the return type of a GCC
6957 builtin and then its argument prototype would still apply. */
6958 #ifdef __cplusplus
6959 extern "C"
6960 #endif
6961 char gethostbyname ();
6962 /* The GNU C library defines this for functions which it implements
6963 to always fail with ENOSYS. Some functions are actually named
6964 something starting with __ and the normal name is an alias. */
6965 #if defined __stub_gethostbyname || defined __stub___gethostbyname
6966 choke me
6967 #endif
6970 main ()
6972 return gethostbyname ();
6974 return 0;
6976 _ACEOF
6977 rm -f conftest.$ac_objext conftest$ac_exeext
6978 if { (ac_try="$ac_link"
6979 case "(($ac_try" in
6980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6981 *) ac_try_echo=$ac_try;;
6982 esac
6983 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6984 $as_echo "$ac_try_echo") >&5
6985 (eval "$ac_link") 2>conftest.er1
6986 ac_status=$?
6987 grep -v '^ *+' conftest.er1 >conftest.err
6988 rm -f conftest.er1
6989 cat conftest.err >&5
6990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6991 (exit $ac_status); } && {
6992 test -z "$ac_c_werror_flag" ||
6993 test ! -s conftest.err
6994 } && test -s conftest$ac_exeext && {
6995 test "$cross_compiling" = yes ||
6996 $as_test_x conftest$ac_exeext
6997 }; then
6998 ac_cv_func_gethostbyname=yes
6999 else
7000 $as_echo "$as_me: failed program was:" >&5
7001 sed 's/^/| /' conftest.$ac_ext >&5
7003 ac_cv_func_gethostbyname=no
7006 rm -rf conftest.dSYM
7007 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7008 conftest$ac_exeext conftest.$ac_ext
7010 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
7011 $as_echo "$ac_cv_func_gethostbyname" >&6; }
7013 if test $ac_cv_func_gethostbyname = no; then
7014 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
7015 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
7016 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
7017 $as_echo_n "(cached) " >&6
7018 else
7019 ac_check_lib_save_LIBS=$LIBS
7020 LIBS="-lnsl $LIBS"
7021 cat >conftest.$ac_ext <<_ACEOF
7022 /* confdefs.h. */
7023 _ACEOF
7024 cat confdefs.h >>conftest.$ac_ext
7025 cat >>conftest.$ac_ext <<_ACEOF
7026 /* end confdefs.h. */
7028 /* Override any GCC internal prototype to avoid an error.
7029 Use char because int might match the return type of a GCC
7030 builtin and then its argument prototype would still apply. */
7031 #ifdef __cplusplus
7032 extern "C"
7033 #endif
7034 char gethostbyname ();
7036 main ()
7038 return gethostbyname ();
7040 return 0;
7042 _ACEOF
7043 rm -f conftest.$ac_objext conftest$ac_exeext
7044 if { (ac_try="$ac_link"
7045 case "(($ac_try" in
7046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7047 *) ac_try_echo=$ac_try;;
7048 esac
7049 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7050 $as_echo "$ac_try_echo") >&5
7051 (eval "$ac_link") 2>conftest.er1
7052 ac_status=$?
7053 grep -v '^ *+' conftest.er1 >conftest.err
7054 rm -f conftest.er1
7055 cat conftest.err >&5
7056 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7057 (exit $ac_status); } && {
7058 test -z "$ac_c_werror_flag" ||
7059 test ! -s conftest.err
7060 } && test -s conftest$ac_exeext && {
7061 test "$cross_compiling" = yes ||
7062 $as_test_x conftest$ac_exeext
7063 }; then
7064 ac_cv_lib_nsl_gethostbyname=yes
7065 else
7066 $as_echo "$as_me: failed program was:" >&5
7067 sed 's/^/| /' conftest.$ac_ext >&5
7069 ac_cv_lib_nsl_gethostbyname=no
7072 rm -rf conftest.dSYM
7073 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7074 conftest$ac_exeext conftest.$ac_ext
7075 LIBS=$ac_check_lib_save_LIBS
7077 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
7078 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
7079 if test $ac_cv_lib_nsl_gethostbyname = yes; then
7080 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7083 if test $ac_cv_lib_nsl_gethostbyname = no; then
7084 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
7085 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
7086 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
7087 $as_echo_n "(cached) " >&6
7088 else
7089 ac_check_lib_save_LIBS=$LIBS
7090 LIBS="-lbsd $LIBS"
7091 cat >conftest.$ac_ext <<_ACEOF
7092 /* confdefs.h. */
7093 _ACEOF
7094 cat confdefs.h >>conftest.$ac_ext
7095 cat >>conftest.$ac_ext <<_ACEOF
7096 /* end confdefs.h. */
7098 /* Override any GCC internal prototype to avoid an error.
7099 Use char because int might match the return type of a GCC
7100 builtin and then its argument prototype would still apply. */
7101 #ifdef __cplusplus
7102 extern "C"
7103 #endif
7104 char gethostbyname ();
7106 main ()
7108 return gethostbyname ();
7110 return 0;
7112 _ACEOF
7113 rm -f conftest.$ac_objext conftest$ac_exeext
7114 if { (ac_try="$ac_link"
7115 case "(($ac_try" in
7116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7117 *) ac_try_echo=$ac_try;;
7118 esac
7119 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7120 $as_echo "$ac_try_echo") >&5
7121 (eval "$ac_link") 2>conftest.er1
7122 ac_status=$?
7123 grep -v '^ *+' conftest.er1 >conftest.err
7124 rm -f conftest.er1
7125 cat conftest.err >&5
7126 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7127 (exit $ac_status); } && {
7128 test -z "$ac_c_werror_flag" ||
7129 test ! -s conftest.err
7130 } && test -s conftest$ac_exeext && {
7131 test "$cross_compiling" = yes ||
7132 $as_test_x conftest$ac_exeext
7133 }; then
7134 ac_cv_lib_bsd_gethostbyname=yes
7135 else
7136 $as_echo "$as_me: failed program was:" >&5
7137 sed 's/^/| /' conftest.$ac_ext >&5
7139 ac_cv_lib_bsd_gethostbyname=no
7142 rm -rf conftest.dSYM
7143 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7144 conftest$ac_exeext conftest.$ac_ext
7145 LIBS=$ac_check_lib_save_LIBS
7147 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
7148 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
7149 if test $ac_cv_lib_bsd_gethostbyname = yes; then
7150 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7156 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7157 # socket/setsockopt and other routines are undefined under SCO ODT
7158 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7159 # on later versions), says Simon Leinen: it contains gethostby*
7160 # variants that don't use the name server (or something). -lsocket
7161 # must be given before -lnsl if both are needed. We assume that
7162 # if connect needs -lnsl, so does gethostbyname.
7163 { $as_echo "$as_me:$LINENO: checking for connect" >&5
7164 $as_echo_n "checking for connect... " >&6; }
7165 if test "${ac_cv_func_connect+set}" = set; then
7166 $as_echo_n "(cached) " >&6
7167 else
7168 cat >conftest.$ac_ext <<_ACEOF
7169 /* confdefs.h. */
7170 _ACEOF
7171 cat confdefs.h >>conftest.$ac_ext
7172 cat >>conftest.$ac_ext <<_ACEOF
7173 /* end confdefs.h. */
7174 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
7175 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7176 #define connect innocuous_connect
7178 /* System header to define __stub macros and hopefully few prototypes,
7179 which can conflict with char connect (); below.
7180 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7181 <limits.h> exists even on freestanding compilers. */
7183 #ifdef __STDC__
7184 # include <limits.h>
7185 #else
7186 # include <assert.h>
7187 #endif
7189 #undef connect
7191 /* Override any GCC internal prototype to avoid an error.
7192 Use char because int might match the return type of a GCC
7193 builtin and then its argument prototype would still apply. */
7194 #ifdef __cplusplus
7195 extern "C"
7196 #endif
7197 char connect ();
7198 /* The GNU C library defines this for functions which it implements
7199 to always fail with ENOSYS. Some functions are actually named
7200 something starting with __ and the normal name is an alias. */
7201 #if defined __stub_connect || defined __stub___connect
7202 choke me
7203 #endif
7206 main ()
7208 return connect ();
7210 return 0;
7212 _ACEOF
7213 rm -f conftest.$ac_objext conftest$ac_exeext
7214 if { (ac_try="$ac_link"
7215 case "(($ac_try" in
7216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7217 *) ac_try_echo=$ac_try;;
7218 esac
7219 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7220 $as_echo "$ac_try_echo") >&5
7221 (eval "$ac_link") 2>conftest.er1
7222 ac_status=$?
7223 grep -v '^ *+' conftest.er1 >conftest.err
7224 rm -f conftest.er1
7225 cat conftest.err >&5
7226 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7227 (exit $ac_status); } && {
7228 test -z "$ac_c_werror_flag" ||
7229 test ! -s conftest.err
7230 } && test -s conftest$ac_exeext && {
7231 test "$cross_compiling" = yes ||
7232 $as_test_x conftest$ac_exeext
7233 }; then
7234 ac_cv_func_connect=yes
7235 else
7236 $as_echo "$as_me: failed program was:" >&5
7237 sed 's/^/| /' conftest.$ac_ext >&5
7239 ac_cv_func_connect=no
7242 rm -rf conftest.dSYM
7243 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7244 conftest$ac_exeext conftest.$ac_ext
7246 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
7247 $as_echo "$ac_cv_func_connect" >&6; }
7249 if test $ac_cv_func_connect = no; then
7250 { $as_echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
7251 $as_echo_n "checking for connect in -lsocket... " >&6; }
7252 if test "${ac_cv_lib_socket_connect+set}" = set; then
7253 $as_echo_n "(cached) " >&6
7254 else
7255 ac_check_lib_save_LIBS=$LIBS
7256 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7257 cat >conftest.$ac_ext <<_ACEOF
7258 /* confdefs.h. */
7259 _ACEOF
7260 cat confdefs.h >>conftest.$ac_ext
7261 cat >>conftest.$ac_ext <<_ACEOF
7262 /* end confdefs.h. */
7264 /* Override any GCC internal prototype to avoid an error.
7265 Use char because int might match the return type of a GCC
7266 builtin and then its argument prototype would still apply. */
7267 #ifdef __cplusplus
7268 extern "C"
7269 #endif
7270 char connect ();
7272 main ()
7274 return connect ();
7276 return 0;
7278 _ACEOF
7279 rm -f conftest.$ac_objext conftest$ac_exeext
7280 if { (ac_try="$ac_link"
7281 case "(($ac_try" in
7282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7283 *) ac_try_echo=$ac_try;;
7284 esac
7285 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7286 $as_echo "$ac_try_echo") >&5
7287 (eval "$ac_link") 2>conftest.er1
7288 ac_status=$?
7289 grep -v '^ *+' conftest.er1 >conftest.err
7290 rm -f conftest.er1
7291 cat conftest.err >&5
7292 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7293 (exit $ac_status); } && {
7294 test -z "$ac_c_werror_flag" ||
7295 test ! -s conftest.err
7296 } && test -s conftest$ac_exeext && {
7297 test "$cross_compiling" = yes ||
7298 $as_test_x conftest$ac_exeext
7299 }; then
7300 ac_cv_lib_socket_connect=yes
7301 else
7302 $as_echo "$as_me: failed program was:" >&5
7303 sed 's/^/| /' conftest.$ac_ext >&5
7305 ac_cv_lib_socket_connect=no
7308 rm -rf conftest.dSYM
7309 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7310 conftest$ac_exeext conftest.$ac_ext
7311 LIBS=$ac_check_lib_save_LIBS
7313 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
7314 $as_echo "$ac_cv_lib_socket_connect" >&6; }
7315 if test $ac_cv_lib_socket_connect = yes; then
7316 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7321 # Guillermo Gomez says -lposix is necessary on A/UX.
7322 { $as_echo "$as_me:$LINENO: checking for remove" >&5
7323 $as_echo_n "checking for remove... " >&6; }
7324 if test "${ac_cv_func_remove+set}" = set; then
7325 $as_echo_n "(cached) " >&6
7326 else
7327 cat >conftest.$ac_ext <<_ACEOF
7328 /* confdefs.h. */
7329 _ACEOF
7330 cat confdefs.h >>conftest.$ac_ext
7331 cat >>conftest.$ac_ext <<_ACEOF
7332 /* end confdefs.h. */
7333 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
7334 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7335 #define remove innocuous_remove
7337 /* System header to define __stub macros and hopefully few prototypes,
7338 which can conflict with char remove (); below.
7339 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7340 <limits.h> exists even on freestanding compilers. */
7342 #ifdef __STDC__
7343 # include <limits.h>
7344 #else
7345 # include <assert.h>
7346 #endif
7348 #undef remove
7350 /* Override any GCC internal prototype to avoid an error.
7351 Use char because int might match the return type of a GCC
7352 builtin and then its argument prototype would still apply. */
7353 #ifdef __cplusplus
7354 extern "C"
7355 #endif
7356 char remove ();
7357 /* The GNU C library defines this for functions which it implements
7358 to always fail with ENOSYS. Some functions are actually named
7359 something starting with __ and the normal name is an alias. */
7360 #if defined __stub_remove || defined __stub___remove
7361 choke me
7362 #endif
7365 main ()
7367 return remove ();
7369 return 0;
7371 _ACEOF
7372 rm -f conftest.$ac_objext conftest$ac_exeext
7373 if { (ac_try="$ac_link"
7374 case "(($ac_try" in
7375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7376 *) ac_try_echo=$ac_try;;
7377 esac
7378 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7379 $as_echo "$ac_try_echo") >&5
7380 (eval "$ac_link") 2>conftest.er1
7381 ac_status=$?
7382 grep -v '^ *+' conftest.er1 >conftest.err
7383 rm -f conftest.er1
7384 cat conftest.err >&5
7385 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7386 (exit $ac_status); } && {
7387 test -z "$ac_c_werror_flag" ||
7388 test ! -s conftest.err
7389 } && test -s conftest$ac_exeext && {
7390 test "$cross_compiling" = yes ||
7391 $as_test_x conftest$ac_exeext
7392 }; then
7393 ac_cv_func_remove=yes
7394 else
7395 $as_echo "$as_me: failed program was:" >&5
7396 sed 's/^/| /' conftest.$ac_ext >&5
7398 ac_cv_func_remove=no
7401 rm -rf conftest.dSYM
7402 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7403 conftest$ac_exeext conftest.$ac_ext
7405 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
7406 $as_echo "$ac_cv_func_remove" >&6; }
7408 if test $ac_cv_func_remove = no; then
7409 { $as_echo "$as_me:$LINENO: checking for remove in -lposix" >&5
7410 $as_echo_n "checking for remove in -lposix... " >&6; }
7411 if test "${ac_cv_lib_posix_remove+set}" = set; then
7412 $as_echo_n "(cached) " >&6
7413 else
7414 ac_check_lib_save_LIBS=$LIBS
7415 LIBS="-lposix $LIBS"
7416 cat >conftest.$ac_ext <<_ACEOF
7417 /* confdefs.h. */
7418 _ACEOF
7419 cat confdefs.h >>conftest.$ac_ext
7420 cat >>conftest.$ac_ext <<_ACEOF
7421 /* end confdefs.h. */
7423 /* Override any GCC internal prototype to avoid an error.
7424 Use char because int might match the return type of a GCC
7425 builtin and then its argument prototype would still apply. */
7426 #ifdef __cplusplus
7427 extern "C"
7428 #endif
7429 char remove ();
7431 main ()
7433 return remove ();
7435 return 0;
7437 _ACEOF
7438 rm -f conftest.$ac_objext conftest$ac_exeext
7439 if { (ac_try="$ac_link"
7440 case "(($ac_try" in
7441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7442 *) ac_try_echo=$ac_try;;
7443 esac
7444 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7445 $as_echo "$ac_try_echo") >&5
7446 (eval "$ac_link") 2>conftest.er1
7447 ac_status=$?
7448 grep -v '^ *+' conftest.er1 >conftest.err
7449 rm -f conftest.er1
7450 cat conftest.err >&5
7451 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7452 (exit $ac_status); } && {
7453 test -z "$ac_c_werror_flag" ||
7454 test ! -s conftest.err
7455 } && test -s conftest$ac_exeext && {
7456 test "$cross_compiling" = yes ||
7457 $as_test_x conftest$ac_exeext
7458 }; then
7459 ac_cv_lib_posix_remove=yes
7460 else
7461 $as_echo "$as_me: failed program was:" >&5
7462 sed 's/^/| /' conftest.$ac_ext >&5
7464 ac_cv_lib_posix_remove=no
7467 rm -rf conftest.dSYM
7468 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7469 conftest$ac_exeext conftest.$ac_ext
7470 LIBS=$ac_check_lib_save_LIBS
7472 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
7473 $as_echo "$ac_cv_lib_posix_remove" >&6; }
7474 if test $ac_cv_lib_posix_remove = yes; then
7475 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7480 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7481 { $as_echo "$as_me:$LINENO: checking for shmat" >&5
7482 $as_echo_n "checking for shmat... " >&6; }
7483 if test "${ac_cv_func_shmat+set}" = set; then
7484 $as_echo_n "(cached) " >&6
7485 else
7486 cat >conftest.$ac_ext <<_ACEOF
7487 /* confdefs.h. */
7488 _ACEOF
7489 cat confdefs.h >>conftest.$ac_ext
7490 cat >>conftest.$ac_ext <<_ACEOF
7491 /* end confdefs.h. */
7492 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
7493 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7494 #define shmat innocuous_shmat
7496 /* System header to define __stub macros and hopefully few prototypes,
7497 which can conflict with char shmat (); below.
7498 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7499 <limits.h> exists even on freestanding compilers. */
7501 #ifdef __STDC__
7502 # include <limits.h>
7503 #else
7504 # include <assert.h>
7505 #endif
7507 #undef shmat
7509 /* Override any GCC internal prototype to avoid an error.
7510 Use char because int might match the return type of a GCC
7511 builtin and then its argument prototype would still apply. */
7512 #ifdef __cplusplus
7513 extern "C"
7514 #endif
7515 char shmat ();
7516 /* The GNU C library defines this for functions which it implements
7517 to always fail with ENOSYS. Some functions are actually named
7518 something starting with __ and the normal name is an alias. */
7519 #if defined __stub_shmat || defined __stub___shmat
7520 choke me
7521 #endif
7524 main ()
7526 return shmat ();
7528 return 0;
7530 _ACEOF
7531 rm -f conftest.$ac_objext conftest$ac_exeext
7532 if { (ac_try="$ac_link"
7533 case "(($ac_try" in
7534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7535 *) ac_try_echo=$ac_try;;
7536 esac
7537 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7538 $as_echo "$ac_try_echo") >&5
7539 (eval "$ac_link") 2>conftest.er1
7540 ac_status=$?
7541 grep -v '^ *+' conftest.er1 >conftest.err
7542 rm -f conftest.er1
7543 cat conftest.err >&5
7544 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7545 (exit $ac_status); } && {
7546 test -z "$ac_c_werror_flag" ||
7547 test ! -s conftest.err
7548 } && test -s conftest$ac_exeext && {
7549 test "$cross_compiling" = yes ||
7550 $as_test_x conftest$ac_exeext
7551 }; then
7552 ac_cv_func_shmat=yes
7553 else
7554 $as_echo "$as_me: failed program was:" >&5
7555 sed 's/^/| /' conftest.$ac_ext >&5
7557 ac_cv_func_shmat=no
7560 rm -rf conftest.dSYM
7561 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7562 conftest$ac_exeext conftest.$ac_ext
7564 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
7565 $as_echo "$ac_cv_func_shmat" >&6; }
7567 if test $ac_cv_func_shmat = no; then
7568 { $as_echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
7569 $as_echo_n "checking for shmat in -lipc... " >&6; }
7570 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
7571 $as_echo_n "(cached) " >&6
7572 else
7573 ac_check_lib_save_LIBS=$LIBS
7574 LIBS="-lipc $LIBS"
7575 cat >conftest.$ac_ext <<_ACEOF
7576 /* confdefs.h. */
7577 _ACEOF
7578 cat confdefs.h >>conftest.$ac_ext
7579 cat >>conftest.$ac_ext <<_ACEOF
7580 /* end confdefs.h. */
7582 /* Override any GCC internal prototype to avoid an error.
7583 Use char because int might match the return type of a GCC
7584 builtin and then its argument prototype would still apply. */
7585 #ifdef __cplusplus
7586 extern "C"
7587 #endif
7588 char shmat ();
7590 main ()
7592 return shmat ();
7594 return 0;
7596 _ACEOF
7597 rm -f conftest.$ac_objext conftest$ac_exeext
7598 if { (ac_try="$ac_link"
7599 case "(($ac_try" in
7600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7601 *) ac_try_echo=$ac_try;;
7602 esac
7603 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7604 $as_echo "$ac_try_echo") >&5
7605 (eval "$ac_link") 2>conftest.er1
7606 ac_status=$?
7607 grep -v '^ *+' conftest.er1 >conftest.err
7608 rm -f conftest.er1
7609 cat conftest.err >&5
7610 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7611 (exit $ac_status); } && {
7612 test -z "$ac_c_werror_flag" ||
7613 test ! -s conftest.err
7614 } && test -s conftest$ac_exeext && {
7615 test "$cross_compiling" = yes ||
7616 $as_test_x conftest$ac_exeext
7617 }; then
7618 ac_cv_lib_ipc_shmat=yes
7619 else
7620 $as_echo "$as_me: failed program was:" >&5
7621 sed 's/^/| /' conftest.$ac_ext >&5
7623 ac_cv_lib_ipc_shmat=no
7626 rm -rf conftest.dSYM
7627 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7628 conftest$ac_exeext conftest.$ac_ext
7629 LIBS=$ac_check_lib_save_LIBS
7631 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
7632 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
7633 if test $ac_cv_lib_ipc_shmat = yes; then
7634 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7640 # Check for libraries that X11R6 Xt/Xaw programs need.
7641 ac_save_LDFLAGS=$LDFLAGS
7642 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7643 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7644 # check for ICE first), but we must link in the order -lSM -lICE or
7645 # we get undefined symbols. So assume we have SM if we have ICE.
7646 # These have to be linked with before -lX11, unlike the other
7647 # libraries we check for below, so use a different variable.
7648 # John Interrante, Karl Berry
7649 { $as_echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
7650 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
7651 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
7652 $as_echo_n "(cached) " >&6
7653 else
7654 ac_check_lib_save_LIBS=$LIBS
7655 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7656 cat >conftest.$ac_ext <<_ACEOF
7657 /* confdefs.h. */
7658 _ACEOF
7659 cat confdefs.h >>conftest.$ac_ext
7660 cat >>conftest.$ac_ext <<_ACEOF
7661 /* end confdefs.h. */
7663 /* Override any GCC internal prototype to avoid an error.
7664 Use char because int might match the return type of a GCC
7665 builtin and then its argument prototype would still apply. */
7666 #ifdef __cplusplus
7667 extern "C"
7668 #endif
7669 char IceConnectionNumber ();
7671 main ()
7673 return IceConnectionNumber ();
7675 return 0;
7677 _ACEOF
7678 rm -f conftest.$ac_objext conftest$ac_exeext
7679 if { (ac_try="$ac_link"
7680 case "(($ac_try" in
7681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7682 *) ac_try_echo=$ac_try;;
7683 esac
7684 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7685 $as_echo "$ac_try_echo") >&5
7686 (eval "$ac_link") 2>conftest.er1
7687 ac_status=$?
7688 grep -v '^ *+' conftest.er1 >conftest.err
7689 rm -f conftest.er1
7690 cat conftest.err >&5
7691 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7692 (exit $ac_status); } && {
7693 test -z "$ac_c_werror_flag" ||
7694 test ! -s conftest.err
7695 } && test -s conftest$ac_exeext && {
7696 test "$cross_compiling" = yes ||
7697 $as_test_x conftest$ac_exeext
7698 }; then
7699 ac_cv_lib_ICE_IceConnectionNumber=yes
7700 else
7701 $as_echo "$as_me: failed program was:" >&5
7702 sed 's/^/| /' conftest.$ac_ext >&5
7704 ac_cv_lib_ICE_IceConnectionNumber=no
7707 rm -rf conftest.dSYM
7708 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7709 conftest$ac_exeext conftest.$ac_ext
7710 LIBS=$ac_check_lib_save_LIBS
7712 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7713 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
7714 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
7715 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7718 LDFLAGS=$ac_save_LDFLAGS
7723 if test "$OS390Unix" = "yes"; then
7724 CFLAGS="$CFLAGS -W c,dll"
7725 LDFLAGS="$LDFLAGS -W l,dll"
7726 X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE -lXmu"
7730 if test -d "$x_includes" && test ! -d "$x_libraries"; then
7731 x_libraries=`echo "$x_includes" | sed s/include/lib/`
7732 { $as_echo "$as_me:$LINENO: result: Corrected X libraries to $x_libraries" >&5
7733 $as_echo "Corrected X libraries to $x_libraries" >&6; }
7734 X_LIBS="$X_LIBS -L$x_libraries"
7735 if test "`(uname) 2>/dev/null`" = SunOS &&
7736 uname -r | grep '^5' >/dev/null; then
7737 X_LIBS="$X_LIBS -R $x_libraries"
7741 if test -d "$x_libraries" && test ! -d "$x_includes"; then
7742 x_includes=`echo "$x_libraries" | sed s/lib/include/`
7743 { $as_echo "$as_me:$LINENO: result: Corrected X includes to $x_includes" >&5
7744 $as_echo "Corrected X includes to $x_includes" >&6; }
7745 X_CFLAGS="$X_CFLAGS -I$x_includes"
7748 X_CFLAGS="`echo $X_CFLAGS\ | sed 's%-I/usr/include %%'`"
7749 X_LIBS="`echo $X_LIBS\ | sed 's%-L/usr/lib %%'`"
7750 X_LIBS="`echo $X_LIBS\ | sed -e 's%-R/usr/lib %%' -e 's%-R /usr/lib %%'`"
7753 { $as_echo "$as_me:$LINENO: checking if X11 header files can be found" >&5
7754 $as_echo_n "checking if X11 header files can be found... " >&6; }
7755 cflags_save=$CFLAGS
7756 CFLAGS="$CFLAGS $X_CFLAGS"
7757 cat >conftest.$ac_ext <<_ACEOF
7758 /* confdefs.h. */
7759 _ACEOF
7760 cat confdefs.h >>conftest.$ac_ext
7761 cat >>conftest.$ac_ext <<_ACEOF
7762 /* end confdefs.h. */
7763 #include <X11/Xlib.h>
7764 #include <X11/Intrinsic.h>
7766 main ()
7770 return 0;
7772 _ACEOF
7773 rm -f conftest.$ac_objext
7774 if { (ac_try="$ac_compile"
7775 case "(($ac_try" in
7776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7777 *) ac_try_echo=$ac_try;;
7778 esac
7779 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7780 $as_echo "$ac_try_echo") >&5
7781 (eval "$ac_compile") 2>conftest.er1
7782 ac_status=$?
7783 grep -v '^ *+' conftest.er1 >conftest.err
7784 rm -f conftest.er1
7785 cat conftest.err >&5
7786 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7787 (exit $ac_status); } && {
7788 test -z "$ac_c_werror_flag" ||
7789 test ! -s conftest.err
7790 } && test -s conftest.$ac_objext; then
7791 { $as_echo "$as_me:$LINENO: result: yes" >&5
7792 $as_echo "yes" >&6; }
7793 else
7794 $as_echo "$as_me: failed program was:" >&5
7795 sed 's/^/| /' conftest.$ac_ext >&5
7797 { $as_echo "$as_me:$LINENO: result: no" >&5
7798 $as_echo "no" >&6; }; no_x=yes
7801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7802 CFLAGS=$cflags_save
7804 if test "${no_x-no}" = yes; then
7805 with_x=no
7806 else
7807 cat >>confdefs.h <<\_ACEOF
7808 #define HAVE_X11 1
7809 _ACEOF
7811 X_LIB="-lXt -lX11";
7814 ac_save_LDFLAGS="$LDFLAGS"
7815 LDFLAGS="-L$x_libraries $LDFLAGS"
7817 { $as_echo "$as_me:$LINENO: checking for _XdmcpAuthDoIt in -lXdmcp" >&5
7818 $as_echo_n "checking for _XdmcpAuthDoIt in -lXdmcp... " >&6; }
7819 if test "${ac_cv_lib_Xdmcp__XdmcpAuthDoIt+set}" = set; then
7820 $as_echo_n "(cached) " >&6
7821 else
7822 ac_check_lib_save_LIBS=$LIBS
7823 LIBS="-lXdmcp -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS -lXdmcp $LIBS"
7824 cat >conftest.$ac_ext <<_ACEOF
7825 /* confdefs.h. */
7826 _ACEOF
7827 cat confdefs.h >>conftest.$ac_ext
7828 cat >>conftest.$ac_ext <<_ACEOF
7829 /* end confdefs.h. */
7831 /* Override any GCC internal prototype to avoid an error.
7832 Use char because int might match the return type of a GCC
7833 builtin and then its argument prototype would still apply. */
7834 #ifdef __cplusplus
7835 extern "C"
7836 #endif
7837 char _XdmcpAuthDoIt ();
7839 main ()
7841 return _XdmcpAuthDoIt ();
7843 return 0;
7845 _ACEOF
7846 rm -f conftest.$ac_objext conftest$ac_exeext
7847 if { (ac_try="$ac_link"
7848 case "(($ac_try" in
7849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7850 *) ac_try_echo=$ac_try;;
7851 esac
7852 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7853 $as_echo "$ac_try_echo") >&5
7854 (eval "$ac_link") 2>conftest.er1
7855 ac_status=$?
7856 grep -v '^ *+' conftest.er1 >conftest.err
7857 rm -f conftest.er1
7858 cat conftest.err >&5
7859 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7860 (exit $ac_status); } && {
7861 test -z "$ac_c_werror_flag" ||
7862 test ! -s conftest.err
7863 } && test -s conftest$ac_exeext && {
7864 test "$cross_compiling" = yes ||
7865 $as_test_x conftest$ac_exeext
7866 }; then
7867 ac_cv_lib_Xdmcp__XdmcpAuthDoIt=yes
7868 else
7869 $as_echo "$as_me: failed program was:" >&5
7870 sed 's/^/| /' conftest.$ac_ext >&5
7872 ac_cv_lib_Xdmcp__XdmcpAuthDoIt=no
7875 rm -rf conftest.dSYM
7876 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7877 conftest$ac_exeext conftest.$ac_ext
7878 LIBS=$ac_check_lib_save_LIBS
7880 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&5
7881 $as_echo "$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&6; }
7882 if test $ac_cv_lib_Xdmcp__XdmcpAuthDoIt = yes; then
7883 X_EXTRA_LIBS="$X_EXTRA_LIBS -lXdmcp"
7887 { $as_echo "$as_me:$LINENO: checking for IceOpenConnection in -lICE" >&5
7888 $as_echo_n "checking for IceOpenConnection in -lICE... " >&6; }
7889 if test "${ac_cv_lib_ICE_IceOpenConnection+set}" = set; then
7890 $as_echo_n "(cached) " >&6
7891 else
7892 ac_check_lib_save_LIBS=$LIBS
7893 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7894 cat >conftest.$ac_ext <<_ACEOF
7895 /* confdefs.h. */
7896 _ACEOF
7897 cat confdefs.h >>conftest.$ac_ext
7898 cat >>conftest.$ac_ext <<_ACEOF
7899 /* end confdefs.h. */
7901 /* Override any GCC internal prototype to avoid an error.
7902 Use char because int might match the return type of a GCC
7903 builtin and then its argument prototype would still apply. */
7904 #ifdef __cplusplus
7905 extern "C"
7906 #endif
7907 char IceOpenConnection ();
7909 main ()
7911 return IceOpenConnection ();
7913 return 0;
7915 _ACEOF
7916 rm -f conftest.$ac_objext conftest$ac_exeext
7917 if { (ac_try="$ac_link"
7918 case "(($ac_try" in
7919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7920 *) ac_try_echo=$ac_try;;
7921 esac
7922 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7923 $as_echo "$ac_try_echo") >&5
7924 (eval "$ac_link") 2>conftest.er1
7925 ac_status=$?
7926 grep -v '^ *+' conftest.er1 >conftest.err
7927 rm -f conftest.er1
7928 cat conftest.err >&5
7929 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7930 (exit $ac_status); } && {
7931 test -z "$ac_c_werror_flag" ||
7932 test ! -s conftest.err
7933 } && test -s conftest$ac_exeext && {
7934 test "$cross_compiling" = yes ||
7935 $as_test_x conftest$ac_exeext
7936 }; then
7937 ac_cv_lib_ICE_IceOpenConnection=yes
7938 else
7939 $as_echo "$as_me: failed program was:" >&5
7940 sed 's/^/| /' conftest.$ac_ext >&5
7942 ac_cv_lib_ICE_IceOpenConnection=no
7945 rm -rf conftest.dSYM
7946 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7947 conftest$ac_exeext conftest.$ac_ext
7948 LIBS=$ac_check_lib_save_LIBS
7950 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceOpenConnection" >&5
7951 $as_echo "$ac_cv_lib_ICE_IceOpenConnection" >&6; }
7952 if test $ac_cv_lib_ICE_IceOpenConnection = yes; then
7953 X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE"
7957 LDFLAGS="$X_LIBS $ac_save_LDFLAGS"
7958 { $as_echo "$as_me:$LINENO: checking for XpmCreatePixmapFromData in -lXpm" >&5
7959 $as_echo_n "checking for XpmCreatePixmapFromData in -lXpm... " >&6; }
7960 if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then
7961 $as_echo_n "(cached) " >&6
7962 else
7963 ac_check_lib_save_LIBS=$LIBS
7964 LIBS="-lXpm -lXt $X_PRE_LIBS -lXpm -lX11 $X_EXTRA_LIBS $LIBS"
7965 cat >conftest.$ac_ext <<_ACEOF
7966 /* confdefs.h. */
7967 _ACEOF
7968 cat confdefs.h >>conftest.$ac_ext
7969 cat >>conftest.$ac_ext <<_ACEOF
7970 /* end confdefs.h. */
7972 /* Override any GCC internal prototype to avoid an error.
7973 Use char because int might match the return type of a GCC
7974 builtin and then its argument prototype would still apply. */
7975 #ifdef __cplusplus
7976 extern "C"
7977 #endif
7978 char XpmCreatePixmapFromData ();
7980 main ()
7982 return XpmCreatePixmapFromData ();
7984 return 0;
7986 _ACEOF
7987 rm -f conftest.$ac_objext conftest$ac_exeext
7988 if { (ac_try="$ac_link"
7989 case "(($ac_try" in
7990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7991 *) ac_try_echo=$ac_try;;
7992 esac
7993 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7994 $as_echo "$ac_try_echo") >&5
7995 (eval "$ac_link") 2>conftest.er1
7996 ac_status=$?
7997 grep -v '^ *+' conftest.er1 >conftest.err
7998 rm -f conftest.er1
7999 cat conftest.err >&5
8000 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8001 (exit $ac_status); } && {
8002 test -z "$ac_c_werror_flag" ||
8003 test ! -s conftest.err
8004 } && test -s conftest$ac_exeext && {
8005 test "$cross_compiling" = yes ||
8006 $as_test_x conftest$ac_exeext
8007 }; then
8008 ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
8009 else
8010 $as_echo "$as_me: failed program was:" >&5
8011 sed 's/^/| /' conftest.$ac_ext >&5
8013 ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
8016 rm -rf conftest.dSYM
8017 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8018 conftest$ac_exeext conftest.$ac_ext
8019 LIBS=$ac_check_lib_save_LIBS
8021 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
8022 $as_echo "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6; }
8023 if test $ac_cv_lib_Xpm_XpmCreatePixmapFromData = yes; then
8024 X_PRE_LIBS="$X_PRE_LIBS -lXpm"
8028 { $as_echo "$as_me:$LINENO: checking if X11 header files implicitly declare return values" >&5
8029 $as_echo_n "checking if X11 header files implicitly declare return values... " >&6; }
8030 cflags_save=$CFLAGS
8031 CFLAGS="$CFLAGS $X_CFLAGS -Werror"
8032 cat >conftest.$ac_ext <<_ACEOF
8033 /* confdefs.h. */
8034 _ACEOF
8035 cat confdefs.h >>conftest.$ac_ext
8036 cat >>conftest.$ac_ext <<_ACEOF
8037 /* end confdefs.h. */
8038 #include <X11/Xlib.h>
8040 main ()
8044 return 0;
8046 _ACEOF
8047 rm -f conftest.$ac_objext
8048 if { (ac_try="$ac_compile"
8049 case "(($ac_try" in
8050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8051 *) ac_try_echo=$ac_try;;
8052 esac
8053 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8054 $as_echo "$ac_try_echo") >&5
8055 (eval "$ac_compile") 2>conftest.er1
8056 ac_status=$?
8057 grep -v '^ *+' conftest.er1 >conftest.err
8058 rm -f conftest.er1
8059 cat conftest.err >&5
8060 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8061 (exit $ac_status); } && {
8062 test -z "$ac_c_werror_flag" ||
8063 test ! -s conftest.err
8064 } && test -s conftest.$ac_objext; then
8065 { $as_echo "$as_me:$LINENO: result: no" >&5
8066 $as_echo "no" >&6; }
8067 else
8068 $as_echo "$as_me: failed program was:" >&5
8069 sed 's/^/| /' conftest.$ac_ext >&5
8071 CFLAGS="$CFLAGS -Wno-implicit-int"
8072 cat >conftest.$ac_ext <<_ACEOF
8073 /* confdefs.h. */
8074 _ACEOF
8075 cat confdefs.h >>conftest.$ac_ext
8076 cat >>conftest.$ac_ext <<_ACEOF
8077 /* end confdefs.h. */
8078 #include <X11/Xlib.h>
8080 main ()
8084 return 0;
8086 _ACEOF
8087 rm -f conftest.$ac_objext
8088 if { (ac_try="$ac_compile"
8089 case "(($ac_try" in
8090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8091 *) ac_try_echo=$ac_try;;
8092 esac
8093 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8094 $as_echo "$ac_try_echo") >&5
8095 (eval "$ac_compile") 2>conftest.er1
8096 ac_status=$?
8097 grep -v '^ *+' conftest.er1 >conftest.err
8098 rm -f conftest.er1
8099 cat conftest.err >&5
8100 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8101 (exit $ac_status); } && {
8102 test -z "$ac_c_werror_flag" ||
8103 test ! -s conftest.err
8104 } && test -s conftest.$ac_objext; then
8105 { $as_echo "$as_me:$LINENO: result: yes" >&5
8106 $as_echo "yes" >&6; }; cflags_save="$cflags_save -Wno-implicit-int"
8107 else
8108 $as_echo "$as_me: failed program was:" >&5
8109 sed 's/^/| /' conftest.$ac_ext >&5
8111 { $as_echo "$as_me:$LINENO: result: test failed" >&5
8112 $as_echo "test failed" >&6; }
8116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8121 CFLAGS=$cflags_save
8123 LDFLAGS="$ac_save_LDFLAGS"
8128 test "x$with_x" = xno -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && enable_gui=no
8130 { $as_echo "$as_me:$LINENO: checking --enable-gui argument" >&5
8131 $as_echo_n "checking --enable-gui argument... " >&6; }
8132 # Check whether --enable-gui was given.
8133 if test "${enable_gui+set}" = set; then
8134 enableval=$enable_gui;
8135 else
8136 enable_gui="auto"
8140 enable_gui_canon=`echo "_$enable_gui" | \
8141 sed 's/[ _+-]//g;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
8143 SKIP_GTK=YES
8144 SKIP_GTK2=YES
8145 SKIP_GNOME=YES
8146 SKIP_MOTIF=YES
8147 SKIP_ATHENA=YES
8148 SKIP_NEXTAW=YES
8149 SKIP_PHOTON=YES
8150 SKIP_CARBON=YES
8151 GUITYPE=NONE
8153 if test "x$QNX" = "xyes" -a "x$with_x" = "xno" ; then
8154 SKIP_PHOTON=
8155 case "$enable_gui_canon" in
8156 no) { $as_echo "$as_me:$LINENO: result: no GUI support" >&5
8157 $as_echo "no GUI support" >&6; }
8158 SKIP_PHOTON=YES ;;
8159 yes|"") { $as_echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5
8160 $as_echo "yes - automatic GUI support" >&6; } ;;
8161 auto) { $as_echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5
8162 $as_echo "auto - automatic GUI support" >&6; } ;;
8163 photon) { $as_echo "$as_me:$LINENO: result: Photon GUI support" >&5
8164 $as_echo "Photon GUI support" >&6; } ;;
8165 *) { $as_echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
8166 $as_echo "Sorry, $enable_gui GUI is not supported" >&6; }
8167 SKIP_PHOTON=YES ;;
8168 esac
8170 elif test "x$MACOSX" = "xyes" -a "x$with_x" = "xno" ; then
8171 SKIP_CARBON=
8172 case "$enable_gui_canon" in
8173 no) { $as_echo "$as_me:$LINENO: result: no GUI support" >&5
8174 $as_echo "no GUI support" >&6; }
8175 SKIP_CARBON=YES ;;
8176 yes|"") { $as_echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5
8177 $as_echo "yes - automatic GUI support" >&6; } ;;
8178 auto) { $as_echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5
8179 $as_echo "auto - automatic GUI support" >&6; } ;;
8180 carbon) { $as_echo "$as_me:$LINENO: result: Carbon GUI support" >&5
8181 $as_echo "Carbon GUI support" >&6; } ;;
8182 *) { $as_echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
8183 $as_echo "Sorry, $enable_gui GUI is not supported" >&6; }
8184 SKIP_CARBON=YES ;;
8185 esac
8187 else
8189 case "$enable_gui_canon" in
8190 no|none) { $as_echo "$as_me:$LINENO: result: no GUI support" >&5
8191 $as_echo "no GUI support" >&6; } ;;
8192 yes|""|auto) { $as_echo "$as_me:$LINENO: result: yes/auto - automatic GUI support" >&5
8193 $as_echo "yes/auto - automatic GUI support" >&6; }
8194 SKIP_GTK=
8195 SKIP_GTK2=
8196 SKIP_GNOME=
8197 SKIP_MOTIF=
8198 SKIP_ATHENA=
8199 SKIP_NEXTAW=
8200 SKIP_CARBON=;;
8201 gtk) { $as_echo "$as_me:$LINENO: result: GTK+ 1.x GUI support" >&5
8202 $as_echo "GTK+ 1.x GUI support" >&6; }
8203 SKIP_GTK=;;
8204 gtk2) { $as_echo "$as_me:$LINENO: result: GTK+ 2.x GUI support" >&5
8205 $as_echo "GTK+ 2.x GUI support" >&6; }
8206 SKIP_GTK=
8207 SKIP_GTK2=;;
8208 gnome) { $as_echo "$as_me:$LINENO: result: GNOME 1.x GUI support" >&5
8209 $as_echo "GNOME 1.x GUI support" >&6; }
8210 SKIP_GNOME=
8211 SKIP_GTK=;;
8212 gnome2) { $as_echo "$as_me:$LINENO: result: GNOME 2.x GUI support" >&5
8213 $as_echo "GNOME 2.x GUI support" >&6; }
8214 SKIP_GNOME=
8215 SKIP_GTK=
8216 SKIP_GTK2=;;
8217 motif) { $as_echo "$as_me:$LINENO: result: Motif GUI support" >&5
8218 $as_echo "Motif GUI support" >&6; }
8219 SKIP_MOTIF=;;
8220 athena) { $as_echo "$as_me:$LINENO: result: Athena GUI support" >&5
8221 $as_echo "Athena GUI support" >&6; }
8222 SKIP_ATHENA=;;
8223 nextaw) { $as_echo "$as_me:$LINENO: result: neXtaw GUI support" >&5
8224 $as_echo "neXtaw GUI support" >&6; }
8225 SKIP_NEXTAW=;;
8226 *) { $as_echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
8227 $as_echo "Sorry, $enable_gui GUI is not supported" >&6; } ;;
8228 esac
8232 if test "x$SKIP_GTK" != "xYES" -a "$enable_gui_canon" != "gtk" -a "$enable_gui_canon" != "gtk2"; then
8233 { $as_echo "$as_me:$LINENO: checking whether or not to look for GTK" >&5
8234 $as_echo_n "checking whether or not to look for GTK... " >&6; }
8235 # Check whether --enable-gtk-check was given.
8236 if test "${enable_gtk_check+set}" = set; then
8237 enableval=$enable_gtk_check;
8238 else
8239 enable_gtk_check="yes"
8242 { $as_echo "$as_me:$LINENO: result: $enable_gtk_check" >&5
8243 $as_echo "$enable_gtk_check" >&6; }
8244 if test "x$enable_gtk_check" = "xno"; then
8245 SKIP_GTK=YES
8246 SKIP_GNOME=YES
8250 if test "x$SKIP_GTK2" != "xYES" -a "$enable_gui_canon" != "gtk2" \
8251 -a "$enable_gui_canon" != "gnome2"; then
8252 { $as_echo "$as_me:$LINENO: checking whether or not to look for GTK+ 2" >&5
8253 $as_echo_n "checking whether or not to look for GTK+ 2... " >&6; }
8254 # Check whether --enable-gtk2-check was given.
8255 if test "${enable_gtk2_check+set}" = set; then
8256 enableval=$enable_gtk2_check;
8257 else
8258 enable_gtk2_check="yes"
8261 { $as_echo "$as_me:$LINENO: result: $enable_gtk2_check" >&5
8262 $as_echo "$enable_gtk2_check" >&6; }
8263 if test "x$enable_gtk2_check" = "xno"; then
8264 SKIP_GTK2=YES
8268 if test "x$SKIP_GNOME" != "xYES" -a "$enable_gui_canon" != "gnome" \
8269 -a "$enable_gui_canon" != "gnome2"; then
8270 { $as_echo "$as_me:$LINENO: checking whether or not to look for GNOME" >&5
8271 $as_echo_n "checking whether or not to look for GNOME... " >&6; }
8272 # Check whether --enable-gnome-check was given.
8273 if test "${enable_gnome_check+set}" = set; then
8274 enableval=$enable_gnome_check;
8275 else
8276 enable_gnome_check="no"
8279 { $as_echo "$as_me:$LINENO: result: $enable_gnome_check" >&5
8280 $as_echo "$enable_gnome_check" >&6; }
8281 if test "x$enable_gnome_check" = "xno"; then
8282 SKIP_GNOME=YES
8286 if test "x$SKIP_MOTIF" != "xYES" -a "$enable_gui_canon" != "motif"; then
8287 { $as_echo "$as_me:$LINENO: checking whether or not to look for Motif" >&5
8288 $as_echo_n "checking whether or not to look for Motif... " >&6; }
8289 # Check whether --enable-motif-check was given.
8290 if test "${enable_motif_check+set}" = set; then
8291 enableval=$enable_motif_check;
8292 else
8293 enable_motif_check="yes"
8296 { $as_echo "$as_me:$LINENO: result: $enable_motif_check" >&5
8297 $as_echo "$enable_motif_check" >&6; }
8298 if test "x$enable_motif_check" = "xno"; then
8299 SKIP_MOTIF=YES
8303 if test "x$SKIP_ATHENA" != "xYES" -a "$enable_gui_canon" != "athena"; then
8304 { $as_echo "$as_me:$LINENO: checking whether or not to look for Athena" >&5
8305 $as_echo_n "checking whether or not to look for Athena... " >&6; }
8306 # Check whether --enable-athena-check was given.
8307 if test "${enable_athena_check+set}" = set; then
8308 enableval=$enable_athena_check;
8309 else
8310 enable_athena_check="yes"
8313 { $as_echo "$as_me:$LINENO: result: $enable_athena_check" >&5
8314 $as_echo "$enable_athena_check" >&6; }
8315 if test "x$enable_athena_check" = "xno"; then
8316 SKIP_ATHENA=YES
8320 if test "x$SKIP_NEXTAW" != "xYES" -a "$enable_gui_canon" != "nextaw"; then
8321 { $as_echo "$as_me:$LINENO: checking whether or not to look for neXtaw" >&5
8322 $as_echo_n "checking whether or not to look for neXtaw... " >&6; }
8323 # Check whether --enable-nextaw-check was given.
8324 if test "${enable_nextaw_check+set}" = set; then
8325 enableval=$enable_nextaw_check;
8326 else
8327 enable_nextaw_check="yes"
8330 { $as_echo "$as_me:$LINENO: result: $enable_nextaw_check" >&5
8331 $as_echo "$enable_nextaw_check" >&6; };
8332 if test "x$enable_nextaw_check" = "xno"; then
8333 SKIP_NEXTAW=YES
8337 if test "x$SKIP_CARBON" != "xYES" -a "$enable_gui_canon" != "carbon"; then
8338 { $as_echo "$as_me:$LINENO: checking whether or not to look for Carbon" >&5
8339 $as_echo_n "checking whether or not to look for Carbon... " >&6; }
8340 # Check whether --enable-carbon-check was given.
8341 if test "${enable_carbon_check+set}" = set; then
8342 enableval=$enable_carbon_check;
8343 else
8344 enable_carbon_check="yes"
8347 { $as_echo "$as_me:$LINENO: result: $enable_carbon_check" >&5
8348 $as_echo "$enable_carbon_check" >&6; };
8349 if test "x$enable_carbon_check" = "xno"; then
8350 SKIP_CARBON=YES
8355 if test "x$MACOSX" = "xyes" -a -z "$SKIP_CARBON" -a "x$CARBON" = "xyes"; then
8356 { $as_echo "$as_me:$LINENO: checking for Carbon GUI" >&5
8357 $as_echo_n "checking for Carbon GUI... " >&6; }
8358 { $as_echo "$as_me:$LINENO: result: yes" >&5
8359 $as_echo "yes" >&6; };
8360 GUITYPE=CARBONGUI
8361 if test "$VIMNAME" = "vim"; then
8362 VIMNAME=Vim
8365 if test x$prefix = xNONE; then
8366 prefix=/Applications
8369 datadir='${prefix}/Vim.app/Contents/Resources'
8371 SKIP_GTK=YES;
8372 SKIP_GTK2=YES;
8373 SKIP_GNOME=YES;
8374 SKIP_MOTIF=YES;
8375 SKIP_ATHENA=YES;
8376 SKIP_NEXTAW=YES;
8377 SKIP_PHOTON=YES;
8378 SKIP_CARBON=YES
8389 if test -z "$SKIP_GTK"; then
8391 { $as_echo "$as_me:$LINENO: checking --with-gtk-prefix argument" >&5
8392 $as_echo_n "checking --with-gtk-prefix argument... " >&6; }
8394 # Check whether --with-gtk-prefix was given.
8395 if test "${with_gtk_prefix+set}" = set; then
8396 withval=$with_gtk_prefix; gtk_config_prefix="$withval"; { $as_echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5
8397 $as_echo "$gtk_config_prefix" >&6; }
8398 else
8399 gtk_config_prefix=""; { $as_echo "$as_me:$LINENO: result: no" >&5
8400 $as_echo "no" >&6; }
8404 { $as_echo "$as_me:$LINENO: checking --with-gtk-exec-prefix argument" >&5
8405 $as_echo_n "checking --with-gtk-exec-prefix argument... " >&6; }
8407 # Check whether --with-gtk-exec-prefix was given.
8408 if test "${with_gtk_exec_prefix+set}" = set; then
8409 withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"; { $as_echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5
8410 $as_echo "$gtk_config_prefix" >&6; }
8411 else
8412 gtk_config_exec_prefix=""; { $as_echo "$as_me:$LINENO: result: no" >&5
8413 $as_echo "no" >&6; }
8417 { $as_echo "$as_me:$LINENO: checking --disable-gtktest argument" >&5
8418 $as_echo_n "checking --disable-gtktest argument... " >&6; }
8419 # Check whether --enable-gtktest was given.
8420 if test "${enable_gtktest+set}" = set; then
8421 enableval=$enable_gtktest;
8422 else
8423 enable_gtktest=yes
8426 if test "x$enable_gtktest" = "xyes" ; then
8427 { $as_echo "$as_me:$LINENO: result: gtk test enabled" >&5
8428 $as_echo "gtk test enabled" >&6; }
8429 else
8430 { $as_echo "$as_me:$LINENO: result: gtk test disabled" >&5
8431 $as_echo "gtk test disabled" >&6; }
8434 if test "x$gtk_config_prefix" != "x" ; then
8435 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
8436 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
8438 if test "x$gtk_config_exec_prefix" != "x" ; then
8439 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
8440 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
8442 if test "X$GTK_CONFIG" = "X"; then
8443 # Extract the first word of "gtk-config", so it can be a program name with args.
8444 set dummy gtk-config; ac_word=$2
8445 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8446 $as_echo_n "checking for $ac_word... " >&6; }
8447 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
8448 $as_echo_n "(cached) " >&6
8449 else
8450 case $GTK_CONFIG in
8451 [\\/]* | ?:[\\/]*)
8452 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
8455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8456 for as_dir in $PATH
8458 IFS=$as_save_IFS
8459 test -z "$as_dir" && as_dir=.
8460 for ac_exec_ext in '' $ac_executable_extensions; do
8461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8462 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8463 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8464 break 2
8466 done
8467 done
8468 IFS=$as_save_IFS
8470 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
8472 esac
8474 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
8475 if test -n "$GTK_CONFIG"; then
8476 { $as_echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
8477 $as_echo "$GTK_CONFIG" >&6; }
8478 else
8479 { $as_echo "$as_me:$LINENO: result: no" >&5
8480 $as_echo "no" >&6; }
8484 if test "X$GTK_CONFIG" = "Xno"; then
8485 # Extract the first word of "gtk12-config", so it can be a program name with args.
8486 set dummy gtk12-config; ac_word=$2
8487 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8488 $as_echo_n "checking for $ac_word... " >&6; }
8489 if test "${ac_cv_path_GTK12_CONFIG+set}" = set; then
8490 $as_echo_n "(cached) " >&6
8491 else
8492 case $GTK12_CONFIG in
8493 [\\/]* | ?:[\\/]*)
8494 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
8497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8498 for as_dir in $PATH
8500 IFS=$as_save_IFS
8501 test -z "$as_dir" && as_dir=.
8502 for ac_exec_ext in '' $ac_executable_extensions; do
8503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8504 ac_cv_path_GTK12_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8505 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8506 break 2
8508 done
8509 done
8510 IFS=$as_save_IFS
8512 test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
8514 esac
8516 GTK12_CONFIG=$ac_cv_path_GTK12_CONFIG
8517 if test -n "$GTK12_CONFIG"; then
8518 { $as_echo "$as_me:$LINENO: result: $GTK12_CONFIG" >&5
8519 $as_echo "$GTK12_CONFIG" >&6; }
8520 else
8521 { $as_echo "$as_me:$LINENO: result: no" >&5
8522 $as_echo "no" >&6; }
8526 GTK_CONFIG="$GTK12_CONFIG"
8528 else
8529 { $as_echo "$as_me:$LINENO: result: Using GTK configuration program $GTK_CONFIG" >&5
8530 $as_echo "Using GTK configuration program $GTK_CONFIG" >&6; }
8532 if test "X$PKG_CONFIG" = "X"; then
8533 # Extract the first word of "pkg-config", so it can be a program name with args.
8534 set dummy pkg-config; ac_word=$2
8535 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8536 $as_echo_n "checking for $ac_word... " >&6; }
8537 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8538 $as_echo_n "(cached) " >&6
8539 else
8540 case $PKG_CONFIG in
8541 [\\/]* | ?:[\\/]*)
8542 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8546 for as_dir in $PATH
8548 IFS=$as_save_IFS
8549 test -z "$as_dir" && as_dir=.
8550 for ac_exec_ext in '' $ac_executable_extensions; do
8551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8552 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8553 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8554 break 2
8556 done
8557 done
8558 IFS=$as_save_IFS
8560 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8562 esac
8564 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8565 if test -n "$PKG_CONFIG"; then
8566 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8567 $as_echo "$PKG_CONFIG" >&6; }
8568 else
8569 { $as_echo "$as_me:$LINENO: result: no" >&5
8570 $as_echo "no" >&6; }
8576 if test "x$GTK_CONFIG:$PKG_CONFIG" != "xno:no"; then
8577 if test "X$SKIP_GTK2" != "XYES"; then
8579 if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
8581 min_gtk_version=2.2.0
8582 { $as_echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
8583 $as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; }
8584 no_gtk=""
8585 if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
8586 && $PKG_CONFIG --exists gtk+-2.0; then
8588 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
8589 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0`
8590 GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
8591 gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8592 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8593 gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8594 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8595 gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8596 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8598 elif test "X$GTK_CONFIG" != "Xno"; then
8600 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
8601 GTK_LIBDIR=
8602 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
8603 gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \
8604 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8605 gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
8606 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8607 gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
8608 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8610 else
8611 no_gtk=yes
8614 if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
8616 ac_save_CFLAGS="$CFLAGS"
8617 ac_save_LIBS="$LIBS"
8618 CFLAGS="$CFLAGS $GTK_CFLAGS"
8619 LIBS="$LIBS $GTK_LIBS"
8621 rm -f conf.gtktest
8622 if test "$cross_compiling" = yes; then
8623 echo $ac_n "cross compiling; assumed OK... $ac_c"
8624 else
8625 cat >conftest.$ac_ext <<_ACEOF
8626 /* confdefs.h. */
8627 _ACEOF
8628 cat confdefs.h >>conftest.$ac_ext
8629 cat >>conftest.$ac_ext <<_ACEOF
8630 /* end confdefs.h. */
8632 #include <gtk/gtk.h>
8633 #include <stdio.h>
8634 #if STDC_HEADERS
8635 # include <stdlib.h>
8636 # include <stddef.h>
8637 #endif
8640 main ()
8642 int major, minor, micro;
8643 char *tmp_version;
8645 system ("touch conf.gtktest");
8647 /* HP/UX 9 (%@#!) writes to sscanf strings */
8648 tmp_version = g_strdup("$min_gtk_version");
8649 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
8650 printf("%s, bad version string\n", "$min_gtk_version");
8651 exit(1);
8654 if ((gtk_major_version > major) ||
8655 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
8656 ((gtk_major_version == major) && (gtk_minor_version == minor) &&
8657 (gtk_micro_version >= micro)))
8659 return 0;
8661 return 1;
8664 _ACEOF
8665 rm -f conftest$ac_exeext
8666 if { (ac_try="$ac_link"
8667 case "(($ac_try" in
8668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8669 *) ac_try_echo=$ac_try;;
8670 esac
8671 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8672 $as_echo "$ac_try_echo") >&5
8673 (eval "$ac_link") 2>&5
8674 ac_status=$?
8675 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8676 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8677 { (case "(($ac_try" in
8678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8679 *) ac_try_echo=$ac_try;;
8680 esac
8681 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8682 $as_echo "$ac_try_echo") >&5
8683 (eval "$ac_try") 2>&5
8684 ac_status=$?
8685 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8686 (exit $ac_status); }; }; then
8688 else
8689 $as_echo "$as_me: program exited with status $ac_status" >&5
8690 $as_echo "$as_me: failed program was:" >&5
8691 sed 's/^/| /' conftest.$ac_ext >&5
8693 ( exit $ac_status )
8694 no_gtk=yes
8696 rm -rf conftest.dSYM
8697 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8701 CFLAGS="$ac_save_CFLAGS"
8702 LIBS="$ac_save_LIBS"
8705 if test "x$no_gtk" = x ; then
8706 if test "x$enable_gtktest" = "xyes"; then
8707 { $as_echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8708 $as_echo "yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
8709 else
8710 { $as_echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8711 $as_echo "found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
8713 GUI_LIB_LOC="$GTK_LIBDIR"
8714 GTK_LIBNAME="$GTK_LIBS"
8715 GUI_INC_LOC="$GTK_CFLAGS"
8716 else
8718 { $as_echo "$as_me:$LINENO: result: no" >&5
8719 $as_echo "no" >&6; }
8720 GTK_CFLAGS=""
8721 GTK_LIBS=""
8726 else
8727 GTK_CFLAGS=""
8728 GTK_LIBS=""
8733 rm -f conf.gtktest
8735 if test "x$GTK_CFLAGS" != "x"; then
8736 SKIP_ATHENA=YES
8737 SKIP_NEXTAW=YES
8738 SKIP_MOTIF=YES
8739 GUITYPE=GTK
8744 if test "x$GUITYPE" != "xGTK"; then
8745 SKIP_GTK2=YES
8747 if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
8749 min_gtk_version=1.1.16
8750 { $as_echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
8751 $as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; }
8752 no_gtk=""
8753 if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
8754 && $PKG_CONFIG --exists gtk+-2.0; then
8756 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
8757 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0`
8758 GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
8759 gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8760 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8761 gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8762 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8763 gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8764 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8766 elif test "X$GTK_CONFIG" != "Xno"; then
8768 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
8769 GTK_LIBDIR=
8770 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
8771 gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \
8772 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8773 gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
8774 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8775 gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
8776 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8778 else
8779 no_gtk=yes
8782 if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
8784 ac_save_CFLAGS="$CFLAGS"
8785 ac_save_LIBS="$LIBS"
8786 CFLAGS="$CFLAGS $GTK_CFLAGS"
8787 LIBS="$LIBS $GTK_LIBS"
8789 rm -f conf.gtktest
8790 if test "$cross_compiling" = yes; then
8791 echo $ac_n "cross compiling; assumed OK... $ac_c"
8792 else
8793 cat >conftest.$ac_ext <<_ACEOF
8794 /* confdefs.h. */
8795 _ACEOF
8796 cat confdefs.h >>conftest.$ac_ext
8797 cat >>conftest.$ac_ext <<_ACEOF
8798 /* end confdefs.h. */
8800 #include <gtk/gtk.h>
8801 #include <stdio.h>
8802 #if STDC_HEADERS
8803 # include <stdlib.h>
8804 # include <stddef.h>
8805 #endif
8808 main ()
8810 int major, minor, micro;
8811 char *tmp_version;
8813 system ("touch conf.gtktest");
8815 /* HP/UX 9 (%@#!) writes to sscanf strings */
8816 tmp_version = g_strdup("$min_gtk_version");
8817 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
8818 printf("%s, bad version string\n", "$min_gtk_version");
8819 exit(1);
8822 if ((gtk_major_version > major) ||
8823 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
8824 ((gtk_major_version == major) && (gtk_minor_version == minor) &&
8825 (gtk_micro_version >= micro)))
8827 return 0;
8829 return 1;
8832 _ACEOF
8833 rm -f conftest$ac_exeext
8834 if { (ac_try="$ac_link"
8835 case "(($ac_try" in
8836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8837 *) ac_try_echo=$ac_try;;
8838 esac
8839 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8840 $as_echo "$ac_try_echo") >&5
8841 (eval "$ac_link") 2>&5
8842 ac_status=$?
8843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8844 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8845 { (case "(($ac_try" in
8846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8847 *) ac_try_echo=$ac_try;;
8848 esac
8849 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8850 $as_echo "$ac_try_echo") >&5
8851 (eval "$ac_try") 2>&5
8852 ac_status=$?
8853 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8854 (exit $ac_status); }; }; then
8856 else
8857 $as_echo "$as_me: program exited with status $ac_status" >&5
8858 $as_echo "$as_me: failed program was:" >&5
8859 sed 's/^/| /' conftest.$ac_ext >&5
8861 ( exit $ac_status )
8862 no_gtk=yes
8864 rm -rf conftest.dSYM
8865 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8869 CFLAGS="$ac_save_CFLAGS"
8870 LIBS="$ac_save_LIBS"
8873 if test "x$no_gtk" = x ; then
8874 if test "x$enable_gtktest" = "xyes"; then
8875 { $as_echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8876 $as_echo "yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
8877 else
8878 { $as_echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8879 $as_echo "found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
8881 GTK_LIBNAME="$GTK_LIBS"
8882 GUI_INC_LOC="$GTK_CFLAGS"
8883 else
8885 { $as_echo "$as_me:$LINENO: result: no" >&5
8886 $as_echo "no" >&6; }
8887 GTK_CFLAGS=""
8888 GTK_LIBS=""
8893 else
8894 GTK_CFLAGS=""
8895 GTK_LIBS=""
8900 rm -f conf.gtktest
8902 if test "x$GTK_CFLAGS" != "x"; then
8903 SKIP_ATHENA=YES
8904 SKIP_NEXTAW=YES
8905 SKIP_MOTIF=YES
8906 GUITYPE=GTK
8911 if test "x$GUITYPE" = "xGTK"; then
8912 if test "$gtk_major_version" = 1 -a "0$gtk_minor_version" -lt 2 \
8913 -o "$gtk_major_version" = 1 -a "$gtk_minor_version" = 2 -a "0$gtk_micro_version" -lt 3; then
8914 { $as_echo "$as_me:$LINENO: result: this GTK version is old; version 1.2.3 or later is recommended" >&5
8915 $as_echo "this GTK version is old; version 1.2.3 or later is recommended" >&6; }
8916 else
8918 if test "0$gtk_major_version" -ge 2; then
8919 cat >>confdefs.h <<\_ACEOF
8920 #define HAVE_GTK2 1
8921 _ACEOF
8923 if test "$gtk_minor_version" = 1 -a "0$gtk_micro_version" -ge 1 \
8924 || test "0$gtk_minor_version" -ge 2 \
8925 || test "0$gtk_major_version" -gt 2; then
8926 cat >>confdefs.h <<\_ACEOF
8927 #define HAVE_GTK_MULTIHEAD 1
8928 _ACEOF
8932 if test -z "$SKIP_GNOME"; then
8940 # Check whether --with-gnome-includes was given.
8941 if test "${with_gnome_includes+set}" = set; then
8942 withval=$with_gnome_includes; CFLAGS="$CFLAGS -I$withval"
8948 # Check whether --with-gnome-libs was given.
8949 if test "${with_gnome_libs+set}" = set; then
8950 withval=$with_gnome_libs; LDFLAGS="$LDFLAGS -L$withval" gnome_prefix=$withval
8956 # Check whether --with-gnome was given.
8957 if test "${with_gnome+set}" = set; then
8958 withval=$with_gnome; if test x$withval = xyes; then
8959 want_gnome=yes
8960 have_gnome=yes
8961 else
8962 if test "x$withval" = xno; then
8963 want_gnome=no
8964 else
8965 want_gnome=yes
8966 LDFLAGS="$LDFLAGS -L$withval/lib"
8967 CFLAGS="$CFLAGS -I$withval/include"
8968 gnome_prefix=$withval/lib
8971 else
8972 want_gnome=yes
8976 if test "x$want_gnome" = xyes -a "0$gtk_major_version" -ge 2; then
8978 { $as_echo "$as_me:$LINENO: checking for libgnomeui-2.0" >&5
8979 $as_echo_n "checking for libgnomeui-2.0... " >&6; }
8980 if $PKG_CONFIG --exists libgnomeui-2.0; then
8981 { $as_echo "$as_me:$LINENO: result: yes" >&5
8982 $as_echo "yes" >&6; }
8983 GNOME_LIBS=`$PKG_CONFIG --libs-only-l libgnomeui-2.0`
8984 GNOME_LIBDIR=`$PKG_CONFIG --libs-only-L libgnomeui-2.0`
8985 GNOME_INCLUDEDIR=`$PKG_CONFIG --cflags libgnomeui-2.0`
8987 { $as_echo "$as_me:$LINENO: checking for FreeBSD" >&5
8988 $as_echo_n "checking for FreeBSD... " >&6; }
8989 if test "`(uname) 2>/dev/null`" = FreeBSD; then
8990 { $as_echo "$as_me:$LINENO: result: yes" >&5
8991 $as_echo "yes" >&6; }
8992 GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR -D_THREAD_SAFE"
8993 GNOME_LIBS="$GNOME_LIBS -pthread"
8994 else
8995 { $as_echo "$as_me:$LINENO: result: no" >&5
8996 $as_echo "no" >&6; }
8998 have_gnome=yes
8999 else
9000 { $as_echo "$as_me:$LINENO: result: not found" >&5
9001 $as_echo "not found" >&6; }
9002 if test "x" = xfail; then
9003 { { $as_echo "$as_me:$LINENO: error: Could not find libgnomeui-2.0 via pkg-config" >&5
9004 $as_echo "$as_me: error: Could not find libgnomeui-2.0 via pkg-config" >&2;}
9005 { (exit 1); exit 1; }; }
9009 elif test "x$want_gnome" = xyes; then
9011 # Extract the first word of "gnome-config", so it can be a program name with args.
9012 set dummy gnome-config; ac_word=$2
9013 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9014 $as_echo_n "checking for $ac_word... " >&6; }
9015 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
9016 $as_echo_n "(cached) " >&6
9017 else
9018 case $GNOME_CONFIG in
9019 [\\/]* | ?:[\\/]*)
9020 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
9023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9024 for as_dir in $PATH
9026 IFS=$as_save_IFS
9027 test -z "$as_dir" && as_dir=.
9028 for ac_exec_ext in '' $ac_executable_extensions; do
9029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9030 ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9031 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9032 break 2
9034 done
9035 done
9036 IFS=$as_save_IFS
9038 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
9040 esac
9042 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
9043 if test -n "$GNOME_CONFIG"; then
9044 { $as_echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
9045 $as_echo "$GNOME_CONFIG" >&6; }
9046 else
9047 { $as_echo "$as_me:$LINENO: result: no" >&5
9048 $as_echo "no" >&6; }
9052 if test "$GNOME_CONFIG" = "no"; then
9053 no_gnome_config="yes"
9054 else
9055 { $as_echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
9056 $as_echo_n "checking if $GNOME_CONFIG works... " >&6; }
9057 if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
9058 { $as_echo "$as_me:$LINENO: result: yes" >&5
9059 $as_echo "yes" >&6; }
9060 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome gnomeui`"
9061 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
9062 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
9063 have_gnome=yes
9064 else
9065 { $as_echo "$as_me:$LINENO: result: no" >&5
9066 $as_echo "no" >&6; }
9067 no_gnome_config="yes"
9071 if test x$exec_prefix = xNONE; then
9072 if test x$prefix = xNONE; then
9073 gnome_prefix=$ac_default_prefix/lib
9074 else
9075 gnome_prefix=$prefix/lib
9077 else
9078 gnome_prefix=`eval echo \`echo $libdir\``
9081 if test "$no_gnome_config" = "yes"; then
9082 { $as_echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
9083 $as_echo_n "checking for gnomeConf.sh file in $gnome_prefix... " >&6; }
9084 if test -f $gnome_prefix/gnomeConf.sh; then
9085 { $as_echo "$as_me:$LINENO: result: found" >&5
9086 $as_echo "found" >&6; }
9087 echo "loading gnome configuration from" \
9088 "$gnome_prefix/gnomeConf.sh"
9089 . $gnome_prefix/gnomeConf.sh
9090 have_gnome=yes
9091 else
9092 { $as_echo "$as_me:$LINENO: result: not found" >&5
9093 $as_echo "not found" >&6; }
9094 if test x = xfail; then
9095 { { $as_echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
9096 $as_echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
9097 { (exit 1); exit 1; }; }
9104 if test x$have_gnome = xyes ; then
9105 cat >>confdefs.h <<\_ACEOF
9106 #define FEAT_GUI_GNOME 1
9107 _ACEOF
9109 GUI_INC_LOC="$GUI_INC_LOC $GNOME_INCLUDEDIR"
9110 GTK_LIBNAME="$GTK_LIBNAME $GNOME_LIBDIR $GNOME_LIBS"
9120 if test -z "$SKIP_MOTIF"; then
9121 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"
9122 GUI_INC_LOC="`echo $GUI_INC_LOC|sed 's%-I%%g'`"
9124 { $as_echo "$as_me:$LINENO: checking for location of Motif GUI includes" >&5
9125 $as_echo_n "checking for location of Motif GUI includes... " >&6; }
9126 gui_includes="`echo $x_includes|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/include/g` $GUI_INC_LOC"
9127 GUI_INC_LOC=
9128 for try in $gui_includes; do
9129 if test -f "$try/Xm/Xm.h"; then
9130 GUI_INC_LOC=$try
9132 done
9133 if test -n "$GUI_INC_LOC"; then
9134 if test "$GUI_INC_LOC" = /usr/include; then
9135 GUI_INC_LOC=
9136 { $as_echo "$as_me:$LINENO: result: in default path" >&5
9137 $as_echo "in default path" >&6; }
9138 else
9139 { $as_echo "$as_me:$LINENO: result: $GUI_INC_LOC" >&5
9140 $as_echo "$GUI_INC_LOC" >&6; }
9142 else
9143 { $as_echo "$as_me:$LINENO: result: <not found>" >&5
9144 $as_echo "<not found>" >&6; }
9145 SKIP_MOTIF=YES
9150 if test -z "$SKIP_MOTIF"; then
9151 { $as_echo "$as_me:$LINENO: checking --with-motif-lib argument" >&5
9152 $as_echo_n "checking --with-motif-lib argument... " >&6; }
9154 # Check whether --with-motif-lib was given.
9155 if test "${with_motif_lib+set}" = set; then
9156 withval=$with_motif_lib; MOTIF_LIBNAME="${withval}"
9160 if test -n "$MOTIF_LIBNAME"; then
9161 { $as_echo "$as_me:$LINENO: result: $MOTIF_LIBNAME" >&5
9162 $as_echo "$MOTIF_LIBNAME" >&6; }
9163 GUI_LIB_LOC=
9164 else
9165 { $as_echo "$as_me:$LINENO: result: no" >&5
9166 $as_echo "no" >&6; }
9168 GUI_LIB_LOC="`echo $GUI_LIB_LOC|sed 's%-L%%g'`"
9170 { $as_echo "$as_me:$LINENO: checking for location of Motif GUI libs" >&5
9171 $as_echo_n "checking for location of Motif GUI libs... " >&6; }
9172 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"
9173 GUI_LIB_LOC=
9174 for try in $gui_libs; do
9175 for libtry in "$try"/libXm.a "$try"/libXm.so* "$try"/libXm.sl "$try"/libXm.dylib; do
9176 if test -f "$libtry"; then
9177 GUI_LIB_LOC=$try
9179 done
9180 done
9181 if test -n "$GUI_LIB_LOC"; then
9182 if test "$GUI_LIB_LOC" = /usr/lib; then
9183 GUI_LIB_LOC=
9184 { $as_echo "$as_me:$LINENO: result: in default path" >&5
9185 $as_echo "in default path" >&6; }
9186 else
9187 if test -n "$GUI_LIB_LOC"; then
9188 { $as_echo "$as_me:$LINENO: result: $GUI_LIB_LOC" >&5
9189 $as_echo "$GUI_LIB_LOC" >&6; }
9190 if test "`(uname) 2>/dev/null`" = SunOS &&
9191 uname -r | grep '^5' >/dev/null; then
9192 GUI_LIB_LOC="$GUI_LIB_LOC -R $GUI_LIB_LOC"
9196 MOTIF_LIBNAME=-lXm
9197 else
9198 { $as_echo "$as_me:$LINENO: result: <not found>" >&5
9199 $as_echo "<not found>" >&6; }
9200 SKIP_MOTIF=YES
9205 if test -z "$SKIP_MOTIF"; then
9206 SKIP_ATHENA=YES
9207 SKIP_NEXTAW=YES
9208 GUITYPE=MOTIF
9213 GUI_X_LIBS=
9215 if test -z "$SKIP_ATHENA"; then
9216 { $as_echo "$as_me:$LINENO: checking if Athena header files can be found" >&5
9217 $as_echo_n "checking if Athena header files can be found... " >&6; }
9218 cflags_save=$CFLAGS
9219 CFLAGS="$CFLAGS $X_CFLAGS"
9220 cat >conftest.$ac_ext <<_ACEOF
9221 /* confdefs.h. */
9222 _ACEOF
9223 cat confdefs.h >>conftest.$ac_ext
9224 cat >>conftest.$ac_ext <<_ACEOF
9225 /* end confdefs.h. */
9227 #include <X11/Intrinsic.h>
9228 #include <X11/Xaw/Paned.h>
9230 main ()
9234 return 0;
9236 _ACEOF
9237 rm -f conftest.$ac_objext
9238 if { (ac_try="$ac_compile"
9239 case "(($ac_try" in
9240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9241 *) ac_try_echo=$ac_try;;
9242 esac
9243 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9244 $as_echo "$ac_try_echo") >&5
9245 (eval "$ac_compile") 2>conftest.er1
9246 ac_status=$?
9247 grep -v '^ *+' conftest.er1 >conftest.err
9248 rm -f conftest.er1
9249 cat conftest.err >&5
9250 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9251 (exit $ac_status); } && {
9252 test -z "$ac_c_werror_flag" ||
9253 test ! -s conftest.err
9254 } && test -s conftest.$ac_objext; then
9255 { $as_echo "$as_me:$LINENO: result: yes" >&5
9256 $as_echo "yes" >&6; }
9257 else
9258 $as_echo "$as_me: failed program was:" >&5
9259 sed 's/^/| /' conftest.$ac_ext >&5
9261 { $as_echo "$as_me:$LINENO: result: no" >&5
9262 $as_echo "no" >&6; }; SKIP_ATHENA=YES
9265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9266 CFLAGS=$cflags_save
9269 if test -z "$SKIP_ATHENA"; then
9270 GUITYPE=ATHENA
9273 if test -z "$SKIP_NEXTAW"; then
9274 { $as_echo "$as_me:$LINENO: checking if neXtaw header files can be found" >&5
9275 $as_echo_n "checking if neXtaw header files can be found... " >&6; }
9276 cflags_save=$CFLAGS
9277 CFLAGS="$CFLAGS $X_CFLAGS"
9278 cat >conftest.$ac_ext <<_ACEOF
9279 /* confdefs.h. */
9280 _ACEOF
9281 cat confdefs.h >>conftest.$ac_ext
9282 cat >>conftest.$ac_ext <<_ACEOF
9283 /* end confdefs.h. */
9285 #include <X11/Intrinsic.h>
9286 #include <X11/neXtaw/Paned.h>
9288 main ()
9292 return 0;
9294 _ACEOF
9295 rm -f conftest.$ac_objext
9296 if { (ac_try="$ac_compile"
9297 case "(($ac_try" in
9298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9299 *) ac_try_echo=$ac_try;;
9300 esac
9301 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9302 $as_echo "$ac_try_echo") >&5
9303 (eval "$ac_compile") 2>conftest.er1
9304 ac_status=$?
9305 grep -v '^ *+' conftest.er1 >conftest.err
9306 rm -f conftest.er1
9307 cat conftest.err >&5
9308 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9309 (exit $ac_status); } && {
9310 test -z "$ac_c_werror_flag" ||
9311 test ! -s conftest.err
9312 } && test -s conftest.$ac_objext; then
9313 { $as_echo "$as_me:$LINENO: result: yes" >&5
9314 $as_echo "yes" >&6; }
9315 else
9316 $as_echo "$as_me: failed program was:" >&5
9317 sed 's/^/| /' conftest.$ac_ext >&5
9319 { $as_echo "$as_me:$LINENO: result: no" >&5
9320 $as_echo "no" >&6; }; SKIP_NEXTAW=YES
9323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9324 CFLAGS=$cflags_save
9327 if test -z "$SKIP_NEXTAW"; then
9328 GUITYPE=NEXTAW
9331 if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
9332 if test -n "$GUI_INC_LOC"; then
9333 GUI_INC_LOC=-I"`echo $GUI_INC_LOC|sed 's%-I%%'`"
9335 if test -n "$GUI_LIB_LOC"; then
9336 GUI_LIB_LOC=-L"`echo $GUI_LIB_LOC|sed 's%-L%%'`"
9339 ldflags_save=$LDFLAGS
9340 LDFLAGS="$X_LIBS $LDFLAGS"
9341 { $as_echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
9342 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
9343 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
9344 $as_echo_n "(cached) " >&6
9345 else
9346 ac_check_lib_save_LIBS=$LIBS
9347 LIBS="-lXext -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9348 cat >conftest.$ac_ext <<_ACEOF
9349 /* confdefs.h. */
9350 _ACEOF
9351 cat confdefs.h >>conftest.$ac_ext
9352 cat >>conftest.$ac_ext <<_ACEOF
9353 /* end confdefs.h. */
9355 /* Override any GCC internal prototype to avoid an error.
9356 Use char because int might match the return type of a GCC
9357 builtin and then its argument prototype would still apply. */
9358 #ifdef __cplusplus
9359 extern "C"
9360 #endif
9361 char XShapeQueryExtension ();
9363 main ()
9365 return XShapeQueryExtension ();
9367 return 0;
9369 _ACEOF
9370 rm -f conftest.$ac_objext conftest$ac_exeext
9371 if { (ac_try="$ac_link"
9372 case "(($ac_try" in
9373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9374 *) ac_try_echo=$ac_try;;
9375 esac
9376 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9377 $as_echo "$ac_try_echo") >&5
9378 (eval "$ac_link") 2>conftest.er1
9379 ac_status=$?
9380 grep -v '^ *+' conftest.er1 >conftest.err
9381 rm -f conftest.er1
9382 cat conftest.err >&5
9383 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9384 (exit $ac_status); } && {
9385 test -z "$ac_c_werror_flag" ||
9386 test ! -s conftest.err
9387 } && test -s conftest$ac_exeext && {
9388 test "$cross_compiling" = yes ||
9389 $as_test_x conftest$ac_exeext
9390 }; then
9391 ac_cv_lib_Xext_XShapeQueryExtension=yes
9392 else
9393 $as_echo "$as_me: failed program was:" >&5
9394 sed 's/^/| /' conftest.$ac_ext >&5
9396 ac_cv_lib_Xext_XShapeQueryExtension=no
9399 rm -rf conftest.dSYM
9400 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9401 conftest$ac_exeext conftest.$ac_ext
9402 LIBS=$ac_check_lib_save_LIBS
9404 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
9405 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
9406 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
9407 GUI_X_LIBS="-lXext"
9410 { $as_echo "$as_me:$LINENO: checking for wslen in -lw" >&5
9411 $as_echo_n "checking for wslen in -lw... " >&6; }
9412 if test "${ac_cv_lib_w_wslen+set}" = set; then
9413 $as_echo_n "(cached) " >&6
9414 else
9415 ac_check_lib_save_LIBS=$LIBS
9416 LIBS="-lw $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9417 cat >conftest.$ac_ext <<_ACEOF
9418 /* confdefs.h. */
9419 _ACEOF
9420 cat confdefs.h >>conftest.$ac_ext
9421 cat >>conftest.$ac_ext <<_ACEOF
9422 /* end confdefs.h. */
9424 /* Override any GCC internal prototype to avoid an error.
9425 Use char because int might match the return type of a GCC
9426 builtin and then its argument prototype would still apply. */
9427 #ifdef __cplusplus
9428 extern "C"
9429 #endif
9430 char wslen ();
9432 main ()
9434 return wslen ();
9436 return 0;
9438 _ACEOF
9439 rm -f conftest.$ac_objext conftest$ac_exeext
9440 if { (ac_try="$ac_link"
9441 case "(($ac_try" in
9442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9443 *) ac_try_echo=$ac_try;;
9444 esac
9445 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9446 $as_echo "$ac_try_echo") >&5
9447 (eval "$ac_link") 2>conftest.er1
9448 ac_status=$?
9449 grep -v '^ *+' conftest.er1 >conftest.err
9450 rm -f conftest.er1
9451 cat conftest.err >&5
9452 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9453 (exit $ac_status); } && {
9454 test -z "$ac_c_werror_flag" ||
9455 test ! -s conftest.err
9456 } && test -s conftest$ac_exeext && {
9457 test "$cross_compiling" = yes ||
9458 $as_test_x conftest$ac_exeext
9459 }; then
9460 ac_cv_lib_w_wslen=yes
9461 else
9462 $as_echo "$as_me: failed program was:" >&5
9463 sed 's/^/| /' conftest.$ac_ext >&5
9465 ac_cv_lib_w_wslen=no
9468 rm -rf conftest.dSYM
9469 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9470 conftest$ac_exeext conftest.$ac_ext
9471 LIBS=$ac_check_lib_save_LIBS
9473 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_w_wslen" >&5
9474 $as_echo "$ac_cv_lib_w_wslen" >&6; }
9475 if test $ac_cv_lib_w_wslen = yes; then
9476 X_EXTRA_LIBS="$X_EXTRA_LIBS -lw"
9479 { $as_echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5
9480 $as_echo_n "checking for dlsym in -ldl... " >&6; }
9481 if test "${ac_cv_lib_dl_dlsym+set}" = set; then
9482 $as_echo_n "(cached) " >&6
9483 else
9484 ac_check_lib_save_LIBS=$LIBS
9485 LIBS="-ldl $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9486 cat >conftest.$ac_ext <<_ACEOF
9487 /* confdefs.h. */
9488 _ACEOF
9489 cat confdefs.h >>conftest.$ac_ext
9490 cat >>conftest.$ac_ext <<_ACEOF
9491 /* end confdefs.h. */
9493 /* Override any GCC internal prototype to avoid an error.
9494 Use char because int might match the return type of a GCC
9495 builtin and then its argument prototype would still apply. */
9496 #ifdef __cplusplus
9497 extern "C"
9498 #endif
9499 char dlsym ();
9501 main ()
9503 return dlsym ();
9505 return 0;
9507 _ACEOF
9508 rm -f conftest.$ac_objext conftest$ac_exeext
9509 if { (ac_try="$ac_link"
9510 case "(($ac_try" in
9511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9512 *) ac_try_echo=$ac_try;;
9513 esac
9514 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9515 $as_echo "$ac_try_echo") >&5
9516 (eval "$ac_link") 2>conftest.er1
9517 ac_status=$?
9518 grep -v '^ *+' conftest.er1 >conftest.err
9519 rm -f conftest.er1
9520 cat conftest.err >&5
9521 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9522 (exit $ac_status); } && {
9523 test -z "$ac_c_werror_flag" ||
9524 test ! -s conftest.err
9525 } && test -s conftest$ac_exeext && {
9526 test "$cross_compiling" = yes ||
9527 $as_test_x conftest$ac_exeext
9528 }; then
9529 ac_cv_lib_dl_dlsym=yes
9530 else
9531 $as_echo "$as_me: failed program was:" >&5
9532 sed 's/^/| /' conftest.$ac_ext >&5
9534 ac_cv_lib_dl_dlsym=no
9537 rm -rf conftest.dSYM
9538 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9539 conftest$ac_exeext conftest.$ac_ext
9540 LIBS=$ac_check_lib_save_LIBS
9542 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5
9543 $as_echo "$ac_cv_lib_dl_dlsym" >&6; }
9544 if test $ac_cv_lib_dl_dlsym = yes; then
9545 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldl"
9548 { $as_echo "$as_me:$LINENO: checking for XmuCreateStippledPixmap in -lXmu" >&5
9549 $as_echo_n "checking for XmuCreateStippledPixmap in -lXmu... " >&6; }
9550 if test "${ac_cv_lib_Xmu_XmuCreateStippledPixmap+set}" = set; then
9551 $as_echo_n "(cached) " >&6
9552 else
9553 ac_check_lib_save_LIBS=$LIBS
9554 LIBS="-lXmu $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9555 cat >conftest.$ac_ext <<_ACEOF
9556 /* confdefs.h. */
9557 _ACEOF
9558 cat confdefs.h >>conftest.$ac_ext
9559 cat >>conftest.$ac_ext <<_ACEOF
9560 /* end confdefs.h. */
9562 /* Override any GCC internal prototype to avoid an error.
9563 Use char because int might match the return type of a GCC
9564 builtin and then its argument prototype would still apply. */
9565 #ifdef __cplusplus
9566 extern "C"
9567 #endif
9568 char XmuCreateStippledPixmap ();
9570 main ()
9572 return XmuCreateStippledPixmap ();
9574 return 0;
9576 _ACEOF
9577 rm -f conftest.$ac_objext conftest$ac_exeext
9578 if { (ac_try="$ac_link"
9579 case "(($ac_try" in
9580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9581 *) ac_try_echo=$ac_try;;
9582 esac
9583 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9584 $as_echo "$ac_try_echo") >&5
9585 (eval "$ac_link") 2>conftest.er1
9586 ac_status=$?
9587 grep -v '^ *+' conftest.er1 >conftest.err
9588 rm -f conftest.er1
9589 cat conftest.err >&5
9590 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9591 (exit $ac_status); } && {
9592 test -z "$ac_c_werror_flag" ||
9593 test ! -s conftest.err
9594 } && test -s conftest$ac_exeext && {
9595 test "$cross_compiling" = yes ||
9596 $as_test_x conftest$ac_exeext
9597 }; then
9598 ac_cv_lib_Xmu_XmuCreateStippledPixmap=yes
9599 else
9600 $as_echo "$as_me: failed program was:" >&5
9601 sed 's/^/| /' conftest.$ac_ext >&5
9603 ac_cv_lib_Xmu_XmuCreateStippledPixmap=no
9606 rm -rf conftest.dSYM
9607 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9608 conftest$ac_exeext conftest.$ac_ext
9609 LIBS=$ac_check_lib_save_LIBS
9611 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&5
9612 $as_echo "$ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&6; }
9613 if test $ac_cv_lib_Xmu_XmuCreateStippledPixmap = yes; then
9614 GUI_X_LIBS="-lXmu $GUI_X_LIBS"
9617 if test -z "$SKIP_MOTIF"; then
9618 { $as_echo "$as_me:$LINENO: checking for XpEndJob in -lXp" >&5
9619 $as_echo_n "checking for XpEndJob in -lXp... " >&6; }
9620 if test "${ac_cv_lib_Xp_XpEndJob+set}" = set; then
9621 $as_echo_n "(cached) " >&6
9622 else
9623 ac_check_lib_save_LIBS=$LIBS
9624 LIBS="-lXp $GUI_X_LIBS -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9625 cat >conftest.$ac_ext <<_ACEOF
9626 /* confdefs.h. */
9627 _ACEOF
9628 cat confdefs.h >>conftest.$ac_ext
9629 cat >>conftest.$ac_ext <<_ACEOF
9630 /* end confdefs.h. */
9632 /* Override any GCC internal prototype to avoid an error.
9633 Use char because int might match the return type of a GCC
9634 builtin and then its argument prototype would still apply. */
9635 #ifdef __cplusplus
9636 extern "C"
9637 #endif
9638 char XpEndJob ();
9640 main ()
9642 return XpEndJob ();
9644 return 0;
9646 _ACEOF
9647 rm -f conftest.$ac_objext conftest$ac_exeext
9648 if { (ac_try="$ac_link"
9649 case "(($ac_try" in
9650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9651 *) ac_try_echo=$ac_try;;
9652 esac
9653 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9654 $as_echo "$ac_try_echo") >&5
9655 (eval "$ac_link") 2>conftest.er1
9656 ac_status=$?
9657 grep -v '^ *+' conftest.er1 >conftest.err
9658 rm -f conftest.er1
9659 cat conftest.err >&5
9660 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9661 (exit $ac_status); } && {
9662 test -z "$ac_c_werror_flag" ||
9663 test ! -s conftest.err
9664 } && test -s conftest$ac_exeext && {
9665 test "$cross_compiling" = yes ||
9666 $as_test_x conftest$ac_exeext
9667 }; then
9668 ac_cv_lib_Xp_XpEndJob=yes
9669 else
9670 $as_echo "$as_me: failed program was:" >&5
9671 sed 's/^/| /' conftest.$ac_ext >&5
9673 ac_cv_lib_Xp_XpEndJob=no
9676 rm -rf conftest.dSYM
9677 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9678 conftest$ac_exeext conftest.$ac_ext
9679 LIBS=$ac_check_lib_save_LIBS
9681 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpEndJob" >&5
9682 $as_echo "$ac_cv_lib_Xp_XpEndJob" >&6; }
9683 if test $ac_cv_lib_Xp_XpEndJob = yes; then
9684 GUI_X_LIBS="-lXp $GUI_X_LIBS"
9688 LDFLAGS=$ldflags_save
9690 { $as_echo "$as_me:$LINENO: checking for extra X11 defines" >&5
9691 $as_echo_n "checking for extra X11 defines... " >&6; }
9692 NARROW_PROTO=
9693 rm -fr conftestdir
9694 if mkdir conftestdir; then
9695 cd conftestdir
9696 cat > Imakefile <<'EOF'
9697 acfindx:
9698 @echo 'NARROW_PROTO="${PROTO_DEFINES}"'
9700 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
9701 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9703 cd ..
9704 rm -fr conftestdir
9706 if test -z "$NARROW_PROTO"; then
9707 { $as_echo "$as_me:$LINENO: result: no" >&5
9708 $as_echo "no" >&6; }
9709 else
9710 { $as_echo "$as_me:$LINENO: result: $NARROW_PROTO" >&5
9711 $as_echo "$NARROW_PROTO" >&6; }
9716 if test "$enable_xsmp" = "yes"; then
9717 cppflags_save=$CPPFLAGS
9718 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9720 for ac_header in X11/SM/SMlib.h
9722 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9723 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9724 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9725 $as_echo_n "checking for $ac_header... " >&6; }
9726 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9727 $as_echo_n "(cached) " >&6
9729 ac_res=`eval 'as_val=${'$as_ac_Header'}
9730 $as_echo "$as_val"'`
9731 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9732 $as_echo "$ac_res" >&6; }
9733 else
9734 # Is the header compilable?
9735 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9736 $as_echo_n "checking $ac_header usability... " >&6; }
9737 cat >conftest.$ac_ext <<_ACEOF
9738 /* confdefs.h. */
9739 _ACEOF
9740 cat confdefs.h >>conftest.$ac_ext
9741 cat >>conftest.$ac_ext <<_ACEOF
9742 /* end confdefs.h. */
9743 $ac_includes_default
9744 #include <$ac_header>
9745 _ACEOF
9746 rm -f conftest.$ac_objext
9747 if { (ac_try="$ac_compile"
9748 case "(($ac_try" in
9749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9750 *) ac_try_echo=$ac_try;;
9751 esac
9752 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9753 $as_echo "$ac_try_echo") >&5
9754 (eval "$ac_compile") 2>conftest.er1
9755 ac_status=$?
9756 grep -v '^ *+' conftest.er1 >conftest.err
9757 rm -f conftest.er1
9758 cat conftest.err >&5
9759 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9760 (exit $ac_status); } && {
9761 test -z "$ac_c_werror_flag" ||
9762 test ! -s conftest.err
9763 } && test -s conftest.$ac_objext; then
9764 ac_header_compiler=yes
9765 else
9766 $as_echo "$as_me: failed program was:" >&5
9767 sed 's/^/| /' conftest.$ac_ext >&5
9769 ac_header_compiler=no
9772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9773 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9774 $as_echo "$ac_header_compiler" >&6; }
9776 # Is the header present?
9777 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9778 $as_echo_n "checking $ac_header presence... " >&6; }
9779 cat >conftest.$ac_ext <<_ACEOF
9780 /* confdefs.h. */
9781 _ACEOF
9782 cat confdefs.h >>conftest.$ac_ext
9783 cat >>conftest.$ac_ext <<_ACEOF
9784 /* end confdefs.h. */
9785 #include <$ac_header>
9786 _ACEOF
9787 if { (ac_try="$ac_cpp conftest.$ac_ext"
9788 case "(($ac_try" in
9789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9790 *) ac_try_echo=$ac_try;;
9791 esac
9792 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9793 $as_echo "$ac_try_echo") >&5
9794 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9795 ac_status=$?
9796 grep -v '^ *+' conftest.er1 >conftest.err
9797 rm -f conftest.er1
9798 cat conftest.err >&5
9799 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9800 (exit $ac_status); } >/dev/null && {
9801 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9802 test ! -s conftest.err
9803 }; then
9804 ac_header_preproc=yes
9805 else
9806 $as_echo "$as_me: failed program was:" >&5
9807 sed 's/^/| /' conftest.$ac_ext >&5
9809 ac_header_preproc=no
9812 rm -f conftest.err conftest.$ac_ext
9813 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9814 $as_echo "$ac_header_preproc" >&6; }
9816 # So? What about this header?
9817 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9818 yes:no: )
9819 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9820 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9821 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9822 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9823 ac_header_preproc=yes
9825 no:yes:* )
9826 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9827 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9828 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9829 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9830 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9831 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9832 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9833 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9834 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9835 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9836 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9837 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9840 esac
9841 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9842 $as_echo_n "checking for $ac_header... " >&6; }
9843 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9844 $as_echo_n "(cached) " >&6
9845 else
9846 eval "$as_ac_Header=\$ac_header_preproc"
9848 ac_res=`eval 'as_val=${'$as_ac_Header'}
9849 $as_echo "$as_val"'`
9850 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9851 $as_echo "$ac_res" >&6; }
9854 if test `eval 'as_val=${'$as_ac_Header'}
9855 $as_echo "$as_val"'` = yes; then
9856 cat >>confdefs.h <<_ACEOF
9857 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9858 _ACEOF
9862 done
9864 CPPFLAGS=$cppflags_save
9868 if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF" -o -z "$SKIP_GTK"; then
9869 cppflags_save=$CPPFLAGS
9870 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9873 for ac_header in X11/xpm.h X11/Sunkeysym.h
9875 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9876 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9877 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9878 $as_echo_n "checking for $ac_header... " >&6; }
9879 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9880 $as_echo_n "(cached) " >&6
9882 ac_res=`eval 'as_val=${'$as_ac_Header'}
9883 $as_echo "$as_val"'`
9884 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9885 $as_echo "$ac_res" >&6; }
9886 else
9887 # Is the header compilable?
9888 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9889 $as_echo_n "checking $ac_header usability... " >&6; }
9890 cat >conftest.$ac_ext <<_ACEOF
9891 /* confdefs.h. */
9892 _ACEOF
9893 cat confdefs.h >>conftest.$ac_ext
9894 cat >>conftest.$ac_ext <<_ACEOF
9895 /* end confdefs.h. */
9896 $ac_includes_default
9897 #include <$ac_header>
9898 _ACEOF
9899 rm -f conftest.$ac_objext
9900 if { (ac_try="$ac_compile"
9901 case "(($ac_try" in
9902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9903 *) ac_try_echo=$ac_try;;
9904 esac
9905 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9906 $as_echo "$ac_try_echo") >&5
9907 (eval "$ac_compile") 2>conftest.er1
9908 ac_status=$?
9909 grep -v '^ *+' conftest.er1 >conftest.err
9910 rm -f conftest.er1
9911 cat conftest.err >&5
9912 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9913 (exit $ac_status); } && {
9914 test -z "$ac_c_werror_flag" ||
9915 test ! -s conftest.err
9916 } && test -s conftest.$ac_objext; then
9917 ac_header_compiler=yes
9918 else
9919 $as_echo "$as_me: failed program was:" >&5
9920 sed 's/^/| /' conftest.$ac_ext >&5
9922 ac_header_compiler=no
9925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9926 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9927 $as_echo "$ac_header_compiler" >&6; }
9929 # Is the header present?
9930 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9931 $as_echo_n "checking $ac_header presence... " >&6; }
9932 cat >conftest.$ac_ext <<_ACEOF
9933 /* confdefs.h. */
9934 _ACEOF
9935 cat confdefs.h >>conftest.$ac_ext
9936 cat >>conftest.$ac_ext <<_ACEOF
9937 /* end confdefs.h. */
9938 #include <$ac_header>
9939 _ACEOF
9940 if { (ac_try="$ac_cpp conftest.$ac_ext"
9941 case "(($ac_try" in
9942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9943 *) ac_try_echo=$ac_try;;
9944 esac
9945 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9946 $as_echo "$ac_try_echo") >&5
9947 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9948 ac_status=$?
9949 grep -v '^ *+' conftest.er1 >conftest.err
9950 rm -f conftest.er1
9951 cat conftest.err >&5
9952 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9953 (exit $ac_status); } >/dev/null && {
9954 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9955 test ! -s conftest.err
9956 }; then
9957 ac_header_preproc=yes
9958 else
9959 $as_echo "$as_me: failed program was:" >&5
9960 sed 's/^/| /' conftest.$ac_ext >&5
9962 ac_header_preproc=no
9965 rm -f conftest.err conftest.$ac_ext
9966 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9967 $as_echo "$ac_header_preproc" >&6; }
9969 # So? What about this header?
9970 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9971 yes:no: )
9972 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9973 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9974 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9975 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9976 ac_header_preproc=yes
9978 no:yes:* )
9979 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9980 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9981 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9982 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9983 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9984 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9985 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9986 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9987 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9988 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9989 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9990 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9993 esac
9994 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9995 $as_echo_n "checking for $ac_header... " >&6; }
9996 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9997 $as_echo_n "(cached) " >&6
9998 else
9999 eval "$as_ac_Header=\$ac_header_preproc"
10001 ac_res=`eval 'as_val=${'$as_ac_Header'}
10002 $as_echo "$as_val"'`
10003 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10004 $as_echo "$ac_res" >&6; }
10007 if test `eval 'as_val=${'$as_ac_Header'}
10008 $as_echo "$as_val"'` = yes; then
10009 cat >>confdefs.h <<_ACEOF
10010 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10011 _ACEOF
10015 done
10018 if test ! "$enable_xim" = "no"; then
10019 { $as_echo "$as_me:$LINENO: checking for XIMText in X11/Xlib.h" >&5
10020 $as_echo_n "checking for XIMText in X11/Xlib.h... " >&6; }
10021 cat >conftest.$ac_ext <<_ACEOF
10022 /* confdefs.h. */
10023 _ACEOF
10024 cat confdefs.h >>conftest.$ac_ext
10025 cat >>conftest.$ac_ext <<_ACEOF
10026 /* end confdefs.h. */
10027 #include <X11/Xlib.h>
10028 _ACEOF
10029 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10030 $EGREP "XIMText" >/dev/null 2>&1; then
10031 { $as_echo "$as_me:$LINENO: result: yes" >&5
10032 $as_echo "yes" >&6; }
10033 else
10034 { $as_echo "$as_me:$LINENO: result: no; xim has been disabled" >&5
10035 $as_echo "no; xim has been disabled" >&6; }; enable_xim = "no"
10037 rm -f conftest*
10040 CPPFLAGS=$cppflags_save
10042 if test "$enable_xim" = "auto" -a "$enable_hangulinput" != "yes" \
10043 -a "x$GUITYPE" != "xNONE" ; then
10044 { $as_echo "$as_me:$LINENO: result: X GUI selected; xim has been enabled" >&5
10045 $as_echo "X GUI selected; xim has been enabled" >&6; }
10046 enable_xim="yes"
10050 if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
10051 cppflags_save=$CPPFLAGS
10052 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10053 { $as_echo "$as_me:$LINENO: checking for X11/Xmu/Editres.h" >&5
10054 $as_echo_n "checking for X11/Xmu/Editres.h... " >&6; }
10055 cat >conftest.$ac_ext <<_ACEOF
10056 /* confdefs.h. */
10057 _ACEOF
10058 cat confdefs.h >>conftest.$ac_ext
10059 cat >>conftest.$ac_ext <<_ACEOF
10060 /* end confdefs.h. */
10062 #include <X11/Intrinsic.h>
10063 #include <X11/Xmu/Editres.h>
10065 main ()
10067 int i; i = 0;
10069 return 0;
10071 _ACEOF
10072 rm -f conftest.$ac_objext
10073 if { (ac_try="$ac_compile"
10074 case "(($ac_try" in
10075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10076 *) ac_try_echo=$ac_try;;
10077 esac
10078 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10079 $as_echo "$ac_try_echo") >&5
10080 (eval "$ac_compile") 2>conftest.er1
10081 ac_status=$?
10082 grep -v '^ *+' conftest.er1 >conftest.err
10083 rm -f conftest.er1
10084 cat conftest.err >&5
10085 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10086 (exit $ac_status); } && {
10087 test -z "$ac_c_werror_flag" ||
10088 test ! -s conftest.err
10089 } && test -s conftest.$ac_objext; then
10090 { $as_echo "$as_me:$LINENO: result: yes" >&5
10091 $as_echo "yes" >&6; }
10092 cat >>confdefs.h <<\_ACEOF
10093 #define HAVE_X11_XMU_EDITRES_H 1
10094 _ACEOF
10096 else
10097 $as_echo "$as_me: failed program was:" >&5
10098 sed 's/^/| /' conftest.$ac_ext >&5
10100 { $as_echo "$as_me:$LINENO: result: no" >&5
10101 $as_echo "no" >&6; }
10104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10105 CPPFLAGS=$cppflags_save
10108 if test -z "$SKIP_MOTIF"; then
10109 cppflags_save=$CPPFLAGS
10110 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10118 for ac_header in Xm/Xm.h Xm/XpmP.h Xm/JoinSideT.h Xm/TraitP.h Xm/Manager.h \
10119 Xm/UnhighlightT.h Xm/Notebook.h
10121 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10122 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10123 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10124 $as_echo_n "checking for $ac_header... " >&6; }
10125 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10126 $as_echo_n "(cached) " >&6
10128 ac_res=`eval 'as_val=${'$as_ac_Header'}
10129 $as_echo "$as_val"'`
10130 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10131 $as_echo "$ac_res" >&6; }
10132 else
10133 # Is the header compilable?
10134 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10135 $as_echo_n "checking $ac_header usability... " >&6; }
10136 cat >conftest.$ac_ext <<_ACEOF
10137 /* confdefs.h. */
10138 _ACEOF
10139 cat confdefs.h >>conftest.$ac_ext
10140 cat >>conftest.$ac_ext <<_ACEOF
10141 /* end confdefs.h. */
10142 $ac_includes_default
10143 #include <$ac_header>
10144 _ACEOF
10145 rm -f conftest.$ac_objext
10146 if { (ac_try="$ac_compile"
10147 case "(($ac_try" in
10148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10149 *) ac_try_echo=$ac_try;;
10150 esac
10151 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10152 $as_echo "$ac_try_echo") >&5
10153 (eval "$ac_compile") 2>conftest.er1
10154 ac_status=$?
10155 grep -v '^ *+' conftest.er1 >conftest.err
10156 rm -f conftest.er1
10157 cat conftest.err >&5
10158 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10159 (exit $ac_status); } && {
10160 test -z "$ac_c_werror_flag" ||
10161 test ! -s conftest.err
10162 } && test -s conftest.$ac_objext; then
10163 ac_header_compiler=yes
10164 else
10165 $as_echo "$as_me: failed program was:" >&5
10166 sed 's/^/| /' conftest.$ac_ext >&5
10168 ac_header_compiler=no
10171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10172 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10173 $as_echo "$ac_header_compiler" >&6; }
10175 # Is the header present?
10176 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10177 $as_echo_n "checking $ac_header presence... " >&6; }
10178 cat >conftest.$ac_ext <<_ACEOF
10179 /* confdefs.h. */
10180 _ACEOF
10181 cat confdefs.h >>conftest.$ac_ext
10182 cat >>conftest.$ac_ext <<_ACEOF
10183 /* end confdefs.h. */
10184 #include <$ac_header>
10185 _ACEOF
10186 if { (ac_try="$ac_cpp conftest.$ac_ext"
10187 case "(($ac_try" in
10188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10189 *) ac_try_echo=$ac_try;;
10190 esac
10191 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10192 $as_echo "$ac_try_echo") >&5
10193 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10194 ac_status=$?
10195 grep -v '^ *+' conftest.er1 >conftest.err
10196 rm -f conftest.er1
10197 cat conftest.err >&5
10198 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10199 (exit $ac_status); } >/dev/null && {
10200 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10201 test ! -s conftest.err
10202 }; then
10203 ac_header_preproc=yes
10204 else
10205 $as_echo "$as_me: failed program was:" >&5
10206 sed 's/^/| /' conftest.$ac_ext >&5
10208 ac_header_preproc=no
10211 rm -f conftest.err conftest.$ac_ext
10212 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10213 $as_echo "$ac_header_preproc" >&6; }
10215 # So? What about this header?
10216 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10217 yes:no: )
10218 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10219 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10220 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10221 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10222 ac_header_preproc=yes
10224 no:yes:* )
10225 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10226 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10227 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10228 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10229 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10230 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10231 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10232 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10233 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10234 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10235 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10236 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10239 esac
10240 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10241 $as_echo_n "checking for $ac_header... " >&6; }
10242 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10243 $as_echo_n "(cached) " >&6
10244 else
10245 eval "$as_ac_Header=\$ac_header_preproc"
10247 ac_res=`eval 'as_val=${'$as_ac_Header'}
10248 $as_echo "$as_val"'`
10249 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10250 $as_echo "$ac_res" >&6; }
10253 if test `eval 'as_val=${'$as_ac_Header'}
10254 $as_echo "$as_val"'` = yes; then
10255 cat >>confdefs.h <<_ACEOF
10256 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10257 _ACEOF
10261 done
10264 if test $ac_cv_header_Xm_XpmP_h = yes; then
10265 { $as_echo "$as_me:$LINENO: checking for XpmAttributes_21 in Xm/XpmP.h" >&5
10266 $as_echo_n "checking for XpmAttributes_21 in Xm/XpmP.h... " >&6; }
10267 cat >conftest.$ac_ext <<_ACEOF
10268 /* confdefs.h. */
10269 _ACEOF
10270 cat confdefs.h >>conftest.$ac_ext
10271 cat >>conftest.$ac_ext <<_ACEOF
10272 /* end confdefs.h. */
10273 #include <Xm/XpmP.h>
10275 main ()
10277 XpmAttributes_21 attr;
10279 return 0;
10281 _ACEOF
10282 rm -f conftest.$ac_objext
10283 if { (ac_try="$ac_compile"
10284 case "(($ac_try" in
10285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10286 *) ac_try_echo=$ac_try;;
10287 esac
10288 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10289 $as_echo "$ac_try_echo") >&5
10290 (eval "$ac_compile") 2>conftest.er1
10291 ac_status=$?
10292 grep -v '^ *+' conftest.er1 >conftest.err
10293 rm -f conftest.er1
10294 cat conftest.err >&5
10295 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10296 (exit $ac_status); } && {
10297 test -z "$ac_c_werror_flag" ||
10298 test ! -s conftest.err
10299 } && test -s conftest.$ac_objext; then
10300 { $as_echo "$as_me:$LINENO: result: yes" >&5
10301 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
10302 #define XPMATTRIBUTES_TYPE XpmAttributes_21
10303 _ACEOF
10305 else
10306 $as_echo "$as_me: failed program was:" >&5
10307 sed 's/^/| /' conftest.$ac_ext >&5
10309 { $as_echo "$as_me:$LINENO: result: no" >&5
10310 $as_echo "no" >&6; }; cat >>confdefs.h <<\_ACEOF
10311 #define XPMATTRIBUTES_TYPE XpmAttributes
10312 _ACEOF
10317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10318 else
10319 cat >>confdefs.h <<\_ACEOF
10320 #define XPMATTRIBUTES_TYPE XpmAttributes
10321 _ACEOF
10324 CPPFLAGS=$cppflags_save
10327 if test "x$GUITYPE" = "xNONE" -a "$enable_xim" = "yes"; then
10328 { $as_echo "$as_me:$LINENO: result: no GUI selected; xim has been disabled" >&5
10329 $as_echo "no GUI selected; xim has been disabled" >&6; }
10330 enable_xim="no"
10332 if test "x$GUITYPE" = "xNONE" -a "$enable_fontset" = "yes"; then
10333 { $as_echo "$as_me:$LINENO: result: no GUI selected; fontset has been disabled" >&5
10334 $as_echo "no GUI selected; fontset has been disabled" >&6; }
10335 enable_fontset="no"
10337 if test "x$GUITYPE:$enable_fontset" = "xGTK:yes" -a "0$gtk_major_version" -ge 2; then
10338 { $as_echo "$as_me:$LINENO: result: GTK+ 2 GUI selected; fontset has been disabled" >&5
10339 $as_echo "GTK+ 2 GUI selected; fontset has been disabled" >&6; }
10340 enable_fontset="no"
10343 if test -z "$SKIP_PHOTON"; then
10344 GUITYPE=PHOTONGUI
10352 if test "$enable_workshop" = "yes" -a -n "$SKIP_MOTIF"; then
10353 { { $as_echo "$as_me:$LINENO: error: cannot use workshop without Motif" >&5
10354 $as_echo "$as_me: error: cannot use workshop without Motif" >&2;}
10355 { (exit 1); exit 1; }; }
10358 if test "$enable_xim" = "yes"; then
10359 cat >>confdefs.h <<\_ACEOF
10360 #define FEAT_XIM 1
10361 _ACEOF
10364 if test "$enable_fontset" = "yes"; then
10365 cat >>confdefs.h <<\_ACEOF
10366 #define FEAT_XFONTSET 1
10367 _ACEOF
10374 if test "$enable_hangulinput" = "yes"; then
10375 if test "x$GUITYPE" = "xNONE"; then
10376 { $as_echo "$as_me:$LINENO: result: no GUI selected; hangul input has been disabled" >&5
10377 $as_echo "no GUI selected; hangul input has been disabled" >&6; }
10378 enable_hangulinput=no
10379 else
10380 cat >>confdefs.h <<\_ACEOF
10381 #define FEAT_HANGULIN 1
10382 _ACEOF
10384 HANGULIN_SRC=hangulin.c
10386 HANGULIN_OBJ=objects/hangulin.o
10392 { $as_echo "$as_me:$LINENO: checking whether toupper is broken" >&5
10393 $as_echo_n "checking whether toupper is broken... " >&6; }
10394 if test "${vim_cv_toupper_broken+set}" = set; then
10395 $as_echo_n "(cached) " >&6
10396 else
10398 if test "$cross_compiling" = yes; then
10400 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_toupper_broken'" >&5
10401 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_toupper_broken'" >&2;}
10402 { (exit 1); exit 1; }; }
10404 else
10405 cat >conftest.$ac_ext <<_ACEOF
10407 #include "confdefs.h"
10408 #include <ctype.h>
10409 #if STDC_HEADERS
10410 # include <stdlib.h>
10411 # include <stddef.h>
10412 #endif
10413 main() { exit(toupper('A') == 'A' && tolower('z') == 'z'); }
10415 _ACEOF
10416 rm -f conftest$ac_exeext
10417 if { (ac_try="$ac_link"
10418 case "(($ac_try" in
10419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10420 *) ac_try_echo=$ac_try;;
10421 esac
10422 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10423 $as_echo "$ac_try_echo") >&5
10424 (eval "$ac_link") 2>&5
10425 ac_status=$?
10426 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10427 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10428 { (case "(($ac_try" in
10429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10430 *) ac_try_echo=$ac_try;;
10431 esac
10432 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10433 $as_echo "$ac_try_echo") >&5
10434 (eval "$ac_try") 2>&5
10435 ac_status=$?
10436 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10437 (exit $ac_status); }; }; then
10439 vim_cv_toupper_broken=yes
10441 else
10442 $as_echo "$as_me: program exited with status $ac_status" >&5
10443 $as_echo "$as_me: failed program was:" >&5
10444 sed 's/^/| /' conftest.$ac_ext >&5
10446 ( exit $ac_status )
10448 vim_cv_toupper_broken=no
10451 rm -rf conftest.dSYM
10452 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10457 { $as_echo "$as_me:$LINENO: result: $vim_cv_toupper_broken" >&5
10458 $as_echo "$vim_cv_toupper_broken" >&6; }
10460 if test "x$vim_cv_toupper_broken" = "xyes" ; then
10461 cat >>confdefs.h <<\_ACEOF
10462 #define BROKEN_TOUPPER 1
10463 _ACEOF
10467 { $as_echo "$as_me:$LINENO: checking whether __DATE__ and __TIME__ work" >&5
10468 $as_echo_n "checking whether __DATE__ and __TIME__ work... " >&6; }
10469 cat >conftest.$ac_ext <<_ACEOF
10470 /* confdefs.h. */
10471 _ACEOF
10472 cat confdefs.h >>conftest.$ac_ext
10473 cat >>conftest.$ac_ext <<_ACEOF
10474 /* end confdefs.h. */
10475 #include <stdio.h>
10477 main ()
10479 printf("(" __DATE__ " " __TIME__ ")");
10481 return 0;
10483 _ACEOF
10484 rm -f conftest.$ac_objext
10485 if { (ac_try="$ac_compile"
10486 case "(($ac_try" in
10487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10488 *) ac_try_echo=$ac_try;;
10489 esac
10490 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10491 $as_echo "$ac_try_echo") >&5
10492 (eval "$ac_compile") 2>conftest.er1
10493 ac_status=$?
10494 grep -v '^ *+' conftest.er1 >conftest.err
10495 rm -f conftest.er1
10496 cat conftest.err >&5
10497 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10498 (exit $ac_status); } && {
10499 test -z "$ac_c_werror_flag" ||
10500 test ! -s conftest.err
10501 } && test -s conftest.$ac_objext; then
10502 { $as_echo "$as_me:$LINENO: result: yes" >&5
10503 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
10504 #define HAVE_DATE_TIME 1
10505 _ACEOF
10507 else
10508 $as_echo "$as_me: failed program was:" >&5
10509 sed 's/^/| /' conftest.$ac_ext >&5
10511 { $as_echo "$as_me:$LINENO: result: no" >&5
10512 $as_echo "no" >&6; }
10515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10517 if test "${ac_cv_header_elf_h+set}" = set; then
10518 { $as_echo "$as_me:$LINENO: checking for elf.h" >&5
10519 $as_echo_n "checking for elf.h... " >&6; }
10520 if test "${ac_cv_header_elf_h+set}" = set; then
10521 $as_echo_n "(cached) " >&6
10523 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5
10524 $as_echo "$ac_cv_header_elf_h" >&6; }
10525 else
10526 # Is the header compilable?
10527 { $as_echo "$as_me:$LINENO: checking elf.h usability" >&5
10528 $as_echo_n "checking elf.h usability... " >&6; }
10529 cat >conftest.$ac_ext <<_ACEOF
10530 /* confdefs.h. */
10531 _ACEOF
10532 cat confdefs.h >>conftest.$ac_ext
10533 cat >>conftest.$ac_ext <<_ACEOF
10534 /* end confdefs.h. */
10535 $ac_includes_default
10536 #include <elf.h>
10537 _ACEOF
10538 rm -f conftest.$ac_objext
10539 if { (ac_try="$ac_compile"
10540 case "(($ac_try" in
10541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10542 *) ac_try_echo=$ac_try;;
10543 esac
10544 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10545 $as_echo "$ac_try_echo") >&5
10546 (eval "$ac_compile") 2>conftest.er1
10547 ac_status=$?
10548 grep -v '^ *+' conftest.er1 >conftest.err
10549 rm -f conftest.er1
10550 cat conftest.err >&5
10551 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10552 (exit $ac_status); } && {
10553 test -z "$ac_c_werror_flag" ||
10554 test ! -s conftest.err
10555 } && test -s conftest.$ac_objext; then
10556 ac_header_compiler=yes
10557 else
10558 $as_echo "$as_me: failed program was:" >&5
10559 sed 's/^/| /' conftest.$ac_ext >&5
10561 ac_header_compiler=no
10564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10565 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10566 $as_echo "$ac_header_compiler" >&6; }
10568 # Is the header present?
10569 { $as_echo "$as_me:$LINENO: checking elf.h presence" >&5
10570 $as_echo_n "checking elf.h presence... " >&6; }
10571 cat >conftest.$ac_ext <<_ACEOF
10572 /* confdefs.h. */
10573 _ACEOF
10574 cat confdefs.h >>conftest.$ac_ext
10575 cat >>conftest.$ac_ext <<_ACEOF
10576 /* end confdefs.h. */
10577 #include <elf.h>
10578 _ACEOF
10579 if { (ac_try="$ac_cpp conftest.$ac_ext"
10580 case "(($ac_try" in
10581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10582 *) ac_try_echo=$ac_try;;
10583 esac
10584 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10585 $as_echo "$ac_try_echo") >&5
10586 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10587 ac_status=$?
10588 grep -v '^ *+' conftest.er1 >conftest.err
10589 rm -f conftest.er1
10590 cat conftest.err >&5
10591 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10592 (exit $ac_status); } >/dev/null && {
10593 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10594 test ! -s conftest.err
10595 }; then
10596 ac_header_preproc=yes
10597 else
10598 $as_echo "$as_me: failed program was:" >&5
10599 sed 's/^/| /' conftest.$ac_ext >&5
10601 ac_header_preproc=no
10604 rm -f conftest.err conftest.$ac_ext
10605 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10606 $as_echo "$ac_header_preproc" >&6; }
10608 # So? What about this header?
10609 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10610 yes:no: )
10611 { $as_echo "$as_me:$LINENO: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&5
10612 $as_echo "$as_me: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10613 { $as_echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the compiler's result" >&5
10614 $as_echo "$as_me: WARNING: elf.h: proceeding with the compiler's result" >&2;}
10615 ac_header_preproc=yes
10617 no:yes:* )
10618 { $as_echo "$as_me:$LINENO: WARNING: elf.h: present but cannot be compiled" >&5
10619 $as_echo "$as_me: WARNING: elf.h: present but cannot be compiled" >&2;}
10620 { $as_echo "$as_me:$LINENO: WARNING: elf.h: check for missing prerequisite headers?" >&5
10621 $as_echo "$as_me: WARNING: elf.h: check for missing prerequisite headers?" >&2;}
10622 { $as_echo "$as_me:$LINENO: WARNING: elf.h: see the Autoconf documentation" >&5
10623 $as_echo "$as_me: WARNING: elf.h: see the Autoconf documentation" >&2;}
10624 { $as_echo "$as_me:$LINENO: WARNING: elf.h: section \"Present But Cannot Be Compiled\"" >&5
10625 $as_echo "$as_me: WARNING: elf.h: section \"Present But Cannot Be Compiled\"" >&2;}
10626 { $as_echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the preprocessor's result" >&5
10627 $as_echo "$as_me: WARNING: elf.h: proceeding with the preprocessor's result" >&2;}
10628 { $as_echo "$as_me:$LINENO: WARNING: elf.h: in the future, the compiler will take precedence" >&5
10629 $as_echo "$as_me: WARNING: elf.h: in the future, the compiler will take precedence" >&2;}
10632 esac
10633 { $as_echo "$as_me:$LINENO: checking for elf.h" >&5
10634 $as_echo_n "checking for elf.h... " >&6; }
10635 if test "${ac_cv_header_elf_h+set}" = set; then
10636 $as_echo_n "(cached) " >&6
10637 else
10638 ac_cv_header_elf_h=$ac_header_preproc
10640 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5
10641 $as_echo "$ac_cv_header_elf_h" >&6; }
10644 if test $ac_cv_header_elf_h = yes; then
10645 HAS_ELF=1
10649 if test "$HAS_ELF" = 1; then
10651 { $as_echo "$as_me:$LINENO: checking for main in -lelf" >&5
10652 $as_echo_n "checking for main in -lelf... " >&6; }
10653 if test "${ac_cv_lib_elf_main+set}" = set; then
10654 $as_echo_n "(cached) " >&6
10655 else
10656 ac_check_lib_save_LIBS=$LIBS
10657 LIBS="-lelf $LIBS"
10658 cat >conftest.$ac_ext <<_ACEOF
10659 /* confdefs.h. */
10660 _ACEOF
10661 cat confdefs.h >>conftest.$ac_ext
10662 cat >>conftest.$ac_ext <<_ACEOF
10663 /* end confdefs.h. */
10667 main ()
10669 return main ();
10671 return 0;
10673 _ACEOF
10674 rm -f conftest.$ac_objext conftest$ac_exeext
10675 if { (ac_try="$ac_link"
10676 case "(($ac_try" in
10677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10678 *) ac_try_echo=$ac_try;;
10679 esac
10680 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10681 $as_echo "$ac_try_echo") >&5
10682 (eval "$ac_link") 2>conftest.er1
10683 ac_status=$?
10684 grep -v '^ *+' conftest.er1 >conftest.err
10685 rm -f conftest.er1
10686 cat conftest.err >&5
10687 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10688 (exit $ac_status); } && {
10689 test -z "$ac_c_werror_flag" ||
10690 test ! -s conftest.err
10691 } && test -s conftest$ac_exeext && {
10692 test "$cross_compiling" = yes ||
10693 $as_test_x conftest$ac_exeext
10694 }; then
10695 ac_cv_lib_elf_main=yes
10696 else
10697 $as_echo "$as_me: failed program was:" >&5
10698 sed 's/^/| /' conftest.$ac_ext >&5
10700 ac_cv_lib_elf_main=no
10703 rm -rf conftest.dSYM
10704 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10705 conftest$ac_exeext conftest.$ac_ext
10706 LIBS=$ac_check_lib_save_LIBS
10708 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_elf_main" >&5
10709 $as_echo "$ac_cv_lib_elf_main" >&6; }
10710 if test $ac_cv_lib_elf_main = yes; then
10711 cat >>confdefs.h <<_ACEOF
10712 #define HAVE_LIBELF 1
10713 _ACEOF
10715 LIBS="-lelf $LIBS"
10726 ac_header_dirent=no
10727 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10728 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10729 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10730 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
10731 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10732 $as_echo_n "(cached) " >&6
10733 else
10734 cat >conftest.$ac_ext <<_ACEOF
10735 /* confdefs.h. */
10736 _ACEOF
10737 cat confdefs.h >>conftest.$ac_ext
10738 cat >>conftest.$ac_ext <<_ACEOF
10739 /* end confdefs.h. */
10740 #include <sys/types.h>
10741 #include <$ac_hdr>
10744 main ()
10746 if ((DIR *) 0)
10747 return 0;
10749 return 0;
10751 _ACEOF
10752 rm -f conftest.$ac_objext
10753 if { (ac_try="$ac_compile"
10754 case "(($ac_try" in
10755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10756 *) ac_try_echo=$ac_try;;
10757 esac
10758 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10759 $as_echo "$ac_try_echo") >&5
10760 (eval "$ac_compile") 2>conftest.er1
10761 ac_status=$?
10762 grep -v '^ *+' conftest.er1 >conftest.err
10763 rm -f conftest.er1
10764 cat conftest.err >&5
10765 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10766 (exit $ac_status); } && {
10767 test -z "$ac_c_werror_flag" ||
10768 test ! -s conftest.err
10769 } && test -s conftest.$ac_objext; then
10770 eval "$as_ac_Header=yes"
10771 else
10772 $as_echo "$as_me: failed program was:" >&5
10773 sed 's/^/| /' conftest.$ac_ext >&5
10775 eval "$as_ac_Header=no"
10778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10780 ac_res=`eval 'as_val=${'$as_ac_Header'}
10781 $as_echo "$as_val"'`
10782 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10783 $as_echo "$ac_res" >&6; }
10784 if test `eval 'as_val=${'$as_ac_Header'}
10785 $as_echo "$as_val"'` = yes; then
10786 cat >>confdefs.h <<_ACEOF
10787 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10788 _ACEOF
10790 ac_header_dirent=$ac_hdr; break
10793 done
10794 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10795 if test $ac_header_dirent = dirent.h; then
10796 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
10797 $as_echo_n "checking for library containing opendir... " >&6; }
10798 if test "${ac_cv_search_opendir+set}" = set; then
10799 $as_echo_n "(cached) " >&6
10800 else
10801 ac_func_search_save_LIBS=$LIBS
10802 cat >conftest.$ac_ext <<_ACEOF
10803 /* confdefs.h. */
10804 _ACEOF
10805 cat confdefs.h >>conftest.$ac_ext
10806 cat >>conftest.$ac_ext <<_ACEOF
10807 /* end confdefs.h. */
10809 /* Override any GCC internal prototype to avoid an error.
10810 Use char because int might match the return type of a GCC
10811 builtin and then its argument prototype would still apply. */
10812 #ifdef __cplusplus
10813 extern "C"
10814 #endif
10815 char opendir ();
10817 main ()
10819 return opendir ();
10821 return 0;
10823 _ACEOF
10824 for ac_lib in '' dir; do
10825 if test -z "$ac_lib"; then
10826 ac_res="none required"
10827 else
10828 ac_res=-l$ac_lib
10829 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10831 rm -f conftest.$ac_objext conftest$ac_exeext
10832 if { (ac_try="$ac_link"
10833 case "(($ac_try" in
10834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10835 *) ac_try_echo=$ac_try;;
10836 esac
10837 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10838 $as_echo "$ac_try_echo") >&5
10839 (eval "$ac_link") 2>conftest.er1
10840 ac_status=$?
10841 grep -v '^ *+' conftest.er1 >conftest.err
10842 rm -f conftest.er1
10843 cat conftest.err >&5
10844 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10845 (exit $ac_status); } && {
10846 test -z "$ac_c_werror_flag" ||
10847 test ! -s conftest.err
10848 } && test -s conftest$ac_exeext && {
10849 test "$cross_compiling" = yes ||
10850 $as_test_x conftest$ac_exeext
10851 }; then
10852 ac_cv_search_opendir=$ac_res
10853 else
10854 $as_echo "$as_me: failed program was:" >&5
10855 sed 's/^/| /' conftest.$ac_ext >&5
10860 rm -rf conftest.dSYM
10861 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10862 conftest$ac_exeext
10863 if test "${ac_cv_search_opendir+set}" = set; then
10864 break
10866 done
10867 if test "${ac_cv_search_opendir+set}" = set; then
10869 else
10870 ac_cv_search_opendir=no
10872 rm conftest.$ac_ext
10873 LIBS=$ac_func_search_save_LIBS
10875 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10876 $as_echo "$ac_cv_search_opendir" >&6; }
10877 ac_res=$ac_cv_search_opendir
10878 if test "$ac_res" != no; then
10879 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10883 else
10884 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
10885 $as_echo_n "checking for library containing opendir... " >&6; }
10886 if test "${ac_cv_search_opendir+set}" = set; then
10887 $as_echo_n "(cached) " >&6
10888 else
10889 ac_func_search_save_LIBS=$LIBS
10890 cat >conftest.$ac_ext <<_ACEOF
10891 /* confdefs.h. */
10892 _ACEOF
10893 cat confdefs.h >>conftest.$ac_ext
10894 cat >>conftest.$ac_ext <<_ACEOF
10895 /* end confdefs.h. */
10897 /* Override any GCC internal prototype to avoid an error.
10898 Use char because int might match the return type of a GCC
10899 builtin and then its argument prototype would still apply. */
10900 #ifdef __cplusplus
10901 extern "C"
10902 #endif
10903 char opendir ();
10905 main ()
10907 return opendir ();
10909 return 0;
10911 _ACEOF
10912 for ac_lib in '' x; do
10913 if test -z "$ac_lib"; then
10914 ac_res="none required"
10915 else
10916 ac_res=-l$ac_lib
10917 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10919 rm -f conftest.$ac_objext conftest$ac_exeext
10920 if { (ac_try="$ac_link"
10921 case "(($ac_try" in
10922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10923 *) ac_try_echo=$ac_try;;
10924 esac
10925 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10926 $as_echo "$ac_try_echo") >&5
10927 (eval "$ac_link") 2>conftest.er1
10928 ac_status=$?
10929 grep -v '^ *+' conftest.er1 >conftest.err
10930 rm -f conftest.er1
10931 cat conftest.err >&5
10932 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10933 (exit $ac_status); } && {
10934 test -z "$ac_c_werror_flag" ||
10935 test ! -s conftest.err
10936 } && test -s conftest$ac_exeext && {
10937 test "$cross_compiling" = yes ||
10938 $as_test_x conftest$ac_exeext
10939 }; then
10940 ac_cv_search_opendir=$ac_res
10941 else
10942 $as_echo "$as_me: failed program was:" >&5
10943 sed 's/^/| /' conftest.$ac_ext >&5
10948 rm -rf conftest.dSYM
10949 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10950 conftest$ac_exeext
10951 if test "${ac_cv_search_opendir+set}" = set; then
10952 break
10954 done
10955 if test "${ac_cv_search_opendir+set}" = set; then
10957 else
10958 ac_cv_search_opendir=no
10960 rm conftest.$ac_ext
10961 LIBS=$ac_func_search_save_LIBS
10963 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10964 $as_echo "$ac_cv_search_opendir" >&6; }
10965 ac_res=$ac_cv_search_opendir
10966 if test "$ac_res" != no; then
10967 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10974 if test $ac_cv_header_sys_wait_h = no; then
10975 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that defines union wait" >&5
10976 $as_echo_n "checking for sys/wait.h that defines union wait... " >&6; }
10977 cat >conftest.$ac_ext <<_ACEOF
10978 /* confdefs.h. */
10979 _ACEOF
10980 cat confdefs.h >>conftest.$ac_ext
10981 cat >>conftest.$ac_ext <<_ACEOF
10982 /* end confdefs.h. */
10983 #include <sys/wait.h>
10985 main ()
10987 union wait xx, yy; xx = yy
10989 return 0;
10991 _ACEOF
10992 rm -f conftest.$ac_objext
10993 if { (ac_try="$ac_compile"
10994 case "(($ac_try" in
10995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10996 *) ac_try_echo=$ac_try;;
10997 esac
10998 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10999 $as_echo "$ac_try_echo") >&5
11000 (eval "$ac_compile") 2>conftest.er1
11001 ac_status=$?
11002 grep -v '^ *+' conftest.er1 >conftest.err
11003 rm -f conftest.er1
11004 cat conftest.err >&5
11005 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11006 (exit $ac_status); } && {
11007 test -z "$ac_c_werror_flag" ||
11008 test ! -s conftest.err
11009 } && test -s conftest.$ac_objext; then
11010 { $as_echo "$as_me:$LINENO: result: yes" >&5
11011 $as_echo "yes" >&6; }
11012 cat >>confdefs.h <<\_ACEOF
11013 #define HAVE_SYS_WAIT_H 1
11014 _ACEOF
11016 cat >>confdefs.h <<\_ACEOF
11017 #define HAVE_UNION_WAIT 1
11018 _ACEOF
11020 else
11021 $as_echo "$as_me: failed program was:" >&5
11022 sed 's/^/| /' conftest.$ac_ext >&5
11024 { $as_echo "$as_me:$LINENO: result: no" >&5
11025 $as_echo "no" >&6; }
11028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11072 for ac_header in stdarg.h stdlib.h string.h sys/select.h sys/utsname.h \
11073 termcap.h fcntl.h sgtty.h sys/ioctl.h sys/time.h sys/types.h termio.h \
11074 iconv.h langinfo.h math.h unistd.h stropts.h errno.h \
11075 sys/resource.h sys/systeminfo.h locale.h \
11076 sys/stream.h termios.h libc.h sys/statfs.h \
11077 poll.h sys/poll.h pwd.h utime.h sys/param.h libintl.h \
11078 libgen.h util/debug.h util/msg18n.h frame.h \
11079 sys/acl.h sys/access.h sys/sysctl.h sys/sysinfo.h wchar.h wctype.h
11081 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11082 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11083 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11084 $as_echo_n "checking for $ac_header... " >&6; }
11085 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11086 $as_echo_n "(cached) " >&6
11088 ac_res=`eval 'as_val=${'$as_ac_Header'}
11089 $as_echo "$as_val"'`
11090 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11091 $as_echo "$ac_res" >&6; }
11092 else
11093 # Is the header compilable?
11094 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11095 $as_echo_n "checking $ac_header usability... " >&6; }
11096 cat >conftest.$ac_ext <<_ACEOF
11097 /* confdefs.h. */
11098 _ACEOF
11099 cat confdefs.h >>conftest.$ac_ext
11100 cat >>conftest.$ac_ext <<_ACEOF
11101 /* end confdefs.h. */
11102 $ac_includes_default
11103 #include <$ac_header>
11104 _ACEOF
11105 rm -f conftest.$ac_objext
11106 if { (ac_try="$ac_compile"
11107 case "(($ac_try" in
11108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11109 *) ac_try_echo=$ac_try;;
11110 esac
11111 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11112 $as_echo "$ac_try_echo") >&5
11113 (eval "$ac_compile") 2>conftest.er1
11114 ac_status=$?
11115 grep -v '^ *+' conftest.er1 >conftest.err
11116 rm -f conftest.er1
11117 cat conftest.err >&5
11118 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11119 (exit $ac_status); } && {
11120 test -z "$ac_c_werror_flag" ||
11121 test ! -s conftest.err
11122 } && test -s conftest.$ac_objext; then
11123 ac_header_compiler=yes
11124 else
11125 $as_echo "$as_me: failed program was:" >&5
11126 sed 's/^/| /' conftest.$ac_ext >&5
11128 ac_header_compiler=no
11131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11132 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11133 $as_echo "$ac_header_compiler" >&6; }
11135 # Is the header present?
11136 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11137 $as_echo_n "checking $ac_header presence... " >&6; }
11138 cat >conftest.$ac_ext <<_ACEOF
11139 /* confdefs.h. */
11140 _ACEOF
11141 cat confdefs.h >>conftest.$ac_ext
11142 cat >>conftest.$ac_ext <<_ACEOF
11143 /* end confdefs.h. */
11144 #include <$ac_header>
11145 _ACEOF
11146 if { (ac_try="$ac_cpp conftest.$ac_ext"
11147 case "(($ac_try" in
11148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11149 *) ac_try_echo=$ac_try;;
11150 esac
11151 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11152 $as_echo "$ac_try_echo") >&5
11153 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11154 ac_status=$?
11155 grep -v '^ *+' conftest.er1 >conftest.err
11156 rm -f conftest.er1
11157 cat conftest.err >&5
11158 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11159 (exit $ac_status); } >/dev/null && {
11160 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11161 test ! -s conftest.err
11162 }; then
11163 ac_header_preproc=yes
11164 else
11165 $as_echo "$as_me: failed program was:" >&5
11166 sed 's/^/| /' conftest.$ac_ext >&5
11168 ac_header_preproc=no
11171 rm -f conftest.err conftest.$ac_ext
11172 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11173 $as_echo "$ac_header_preproc" >&6; }
11175 # So? What about this header?
11176 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11177 yes:no: )
11178 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11179 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11180 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11181 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11182 ac_header_preproc=yes
11184 no:yes:* )
11185 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11186 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11187 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11188 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11189 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11190 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11191 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11192 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11193 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11194 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11195 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11196 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11199 esac
11200 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11201 $as_echo_n "checking for $ac_header... " >&6; }
11202 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11203 $as_echo_n "(cached) " >&6
11204 else
11205 eval "$as_ac_Header=\$ac_header_preproc"
11207 ac_res=`eval 'as_val=${'$as_ac_Header'}
11208 $as_echo "$as_val"'`
11209 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11210 $as_echo "$ac_res" >&6; }
11213 if test `eval 'as_val=${'$as_ac_Header'}
11214 $as_echo "$as_val"'` = yes; then
11215 cat >>confdefs.h <<_ACEOF
11216 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11217 _ACEOF
11221 done
11225 for ac_header in sys/ptem.h
11227 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11228 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11229 $as_echo_n "checking for $ac_header... " >&6; }
11230 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11231 $as_echo_n "(cached) " >&6
11232 else
11233 cat >conftest.$ac_ext <<_ACEOF
11234 /* confdefs.h. */
11235 _ACEOF
11236 cat confdefs.h >>conftest.$ac_ext
11237 cat >>conftest.$ac_ext <<_ACEOF
11238 /* end confdefs.h. */
11239 #if defined HAVE_SYS_STREAM_H
11240 # include <sys/stream.h>
11241 #endif
11243 #include <$ac_header>
11244 _ACEOF
11245 rm -f conftest.$ac_objext
11246 if { (ac_try="$ac_compile"
11247 case "(($ac_try" in
11248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11249 *) ac_try_echo=$ac_try;;
11250 esac
11251 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11252 $as_echo "$ac_try_echo") >&5
11253 (eval "$ac_compile") 2>conftest.er1
11254 ac_status=$?
11255 grep -v '^ *+' conftest.er1 >conftest.err
11256 rm -f conftest.er1
11257 cat conftest.err >&5
11258 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11259 (exit $ac_status); } && {
11260 test -z "$ac_c_werror_flag" ||
11261 test ! -s conftest.err
11262 } && test -s conftest.$ac_objext; then
11263 eval "$as_ac_Header=yes"
11264 else
11265 $as_echo "$as_me: failed program was:" >&5
11266 sed 's/^/| /' conftest.$ac_ext >&5
11268 eval "$as_ac_Header=no"
11271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11273 ac_res=`eval 'as_val=${'$as_ac_Header'}
11274 $as_echo "$as_val"'`
11275 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11276 $as_echo "$ac_res" >&6; }
11277 if test `eval 'as_val=${'$as_ac_Header'}
11278 $as_echo "$as_val"'` = yes; then
11279 cat >>confdefs.h <<_ACEOF
11280 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11281 _ACEOF
11285 done
11289 { $as_echo "$as_me:$LINENO: checking for pthread_np.h" >&5
11290 $as_echo_n "checking for pthread_np.h... " >&6; }
11291 cat >conftest.$ac_ext <<_ACEOF
11292 /* confdefs.h. */
11293 _ACEOF
11294 cat confdefs.h >>conftest.$ac_ext
11295 cat >>conftest.$ac_ext <<_ACEOF
11296 /* end confdefs.h. */
11298 #include <pthread.h>
11299 #include <pthread_np.h>
11301 main ()
11303 int i; i = 0;
11305 return 0;
11307 _ACEOF
11308 rm -f conftest.$ac_objext
11309 if { (ac_try="$ac_compile"
11310 case "(($ac_try" in
11311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11312 *) ac_try_echo=$ac_try;;
11313 esac
11314 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11315 $as_echo "$ac_try_echo") >&5
11316 (eval "$ac_compile") 2>conftest.er1
11317 ac_status=$?
11318 grep -v '^ *+' conftest.er1 >conftest.err
11319 rm -f conftest.er1
11320 cat conftest.err >&5
11321 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11322 (exit $ac_status); } && {
11323 test -z "$ac_c_werror_flag" ||
11324 test ! -s conftest.err
11325 } && test -s conftest.$ac_objext; then
11326 { $as_echo "$as_me:$LINENO: result: yes" >&5
11327 $as_echo "yes" >&6; }
11328 cat >>confdefs.h <<\_ACEOF
11329 #define HAVE_PTHREAD_NP_H 1
11330 _ACEOF
11332 else
11333 $as_echo "$as_me: failed program was:" >&5
11334 sed 's/^/| /' conftest.$ac_ext >&5
11336 { $as_echo "$as_me:$LINENO: result: no" >&5
11337 $as_echo "no" >&6; }
11340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11343 for ac_header in strings.h
11345 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11346 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11347 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11348 $as_echo_n "checking for $ac_header... " >&6; }
11349 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11350 $as_echo_n "(cached) " >&6
11352 ac_res=`eval 'as_val=${'$as_ac_Header'}
11353 $as_echo "$as_val"'`
11354 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11355 $as_echo "$ac_res" >&6; }
11356 else
11357 # Is the header compilable?
11358 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11359 $as_echo_n "checking $ac_header usability... " >&6; }
11360 cat >conftest.$ac_ext <<_ACEOF
11361 /* confdefs.h. */
11362 _ACEOF
11363 cat confdefs.h >>conftest.$ac_ext
11364 cat >>conftest.$ac_ext <<_ACEOF
11365 /* end confdefs.h. */
11366 $ac_includes_default
11367 #include <$ac_header>
11368 _ACEOF
11369 rm -f conftest.$ac_objext
11370 if { (ac_try="$ac_compile"
11371 case "(($ac_try" in
11372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11373 *) ac_try_echo=$ac_try;;
11374 esac
11375 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11376 $as_echo "$ac_try_echo") >&5
11377 (eval "$ac_compile") 2>conftest.er1
11378 ac_status=$?
11379 grep -v '^ *+' conftest.er1 >conftest.err
11380 rm -f conftest.er1
11381 cat conftest.err >&5
11382 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11383 (exit $ac_status); } && {
11384 test -z "$ac_c_werror_flag" ||
11385 test ! -s conftest.err
11386 } && test -s conftest.$ac_objext; then
11387 ac_header_compiler=yes
11388 else
11389 $as_echo "$as_me: failed program was:" >&5
11390 sed 's/^/| /' conftest.$ac_ext >&5
11392 ac_header_compiler=no
11395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11396 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11397 $as_echo "$ac_header_compiler" >&6; }
11399 # Is the header present?
11400 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11401 $as_echo_n "checking $ac_header presence... " >&6; }
11402 cat >conftest.$ac_ext <<_ACEOF
11403 /* confdefs.h. */
11404 _ACEOF
11405 cat confdefs.h >>conftest.$ac_ext
11406 cat >>conftest.$ac_ext <<_ACEOF
11407 /* end confdefs.h. */
11408 #include <$ac_header>
11409 _ACEOF
11410 if { (ac_try="$ac_cpp conftest.$ac_ext"
11411 case "(($ac_try" in
11412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11413 *) ac_try_echo=$ac_try;;
11414 esac
11415 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11416 $as_echo "$ac_try_echo") >&5
11417 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11418 ac_status=$?
11419 grep -v '^ *+' conftest.er1 >conftest.err
11420 rm -f conftest.er1
11421 cat conftest.err >&5
11422 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11423 (exit $ac_status); } >/dev/null && {
11424 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11425 test ! -s conftest.err
11426 }; then
11427 ac_header_preproc=yes
11428 else
11429 $as_echo "$as_me: failed program was:" >&5
11430 sed 's/^/| /' conftest.$ac_ext >&5
11432 ac_header_preproc=no
11435 rm -f conftest.err conftest.$ac_ext
11436 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11437 $as_echo "$ac_header_preproc" >&6; }
11439 # So? What about this header?
11440 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11441 yes:no: )
11442 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11443 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11444 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11445 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11446 ac_header_preproc=yes
11448 no:yes:* )
11449 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11450 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11451 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11452 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11453 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11454 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11455 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11456 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11457 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11458 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11459 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11460 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11463 esac
11464 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11465 $as_echo_n "checking for $ac_header... " >&6; }
11466 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11467 $as_echo_n "(cached) " >&6
11468 else
11469 eval "$as_ac_Header=\$ac_header_preproc"
11471 ac_res=`eval 'as_val=${'$as_ac_Header'}
11472 $as_echo "$as_val"'`
11473 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11474 $as_echo "$ac_res" >&6; }
11477 if test `eval 'as_val=${'$as_ac_Header'}
11478 $as_echo "$as_val"'` = yes; then
11479 cat >>confdefs.h <<_ACEOF
11480 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11481 _ACEOF
11485 done
11487 if test "x$MACOSX" = "xyes"; then
11488 cat >>confdefs.h <<\_ACEOF
11489 #define NO_STRINGS_WITH_STRING_H 1
11490 _ACEOF
11492 else
11494 { $as_echo "$as_me:$LINENO: checking if strings.h can be included after string.h" >&5
11495 $as_echo_n "checking if strings.h can be included after string.h... " >&6; }
11496 cppflags_save=$CPPFLAGS
11497 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11498 cat >conftest.$ac_ext <<_ACEOF
11499 /* confdefs.h. */
11500 _ACEOF
11501 cat confdefs.h >>conftest.$ac_ext
11502 cat >>conftest.$ac_ext <<_ACEOF
11503 /* end confdefs.h. */
11505 #if defined(_AIX) && !defined(_AIX51) && !defined(_NO_PROTO)
11506 # define _NO_PROTO /* like in os_unix.h, causes conflict for AIX (Winn) */
11507 /* but don't do it on AIX 5.1 (Uribarri) */
11508 #endif
11509 #ifdef HAVE_XM_XM_H
11510 # include <Xm/Xm.h> /* This breaks it for HP-UX 11 (Squassabia) */
11511 #endif
11512 #ifdef HAVE_STRING_H
11513 # include <string.h>
11514 #endif
11515 #if defined(HAVE_STRINGS_H)
11516 # include <strings.h>
11517 #endif
11520 main ()
11522 int i; i = 0;
11524 return 0;
11526 _ACEOF
11527 rm -f conftest.$ac_objext
11528 if { (ac_try="$ac_compile"
11529 case "(($ac_try" in
11530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11531 *) ac_try_echo=$ac_try;;
11532 esac
11533 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11534 $as_echo "$ac_try_echo") >&5
11535 (eval "$ac_compile") 2>conftest.er1
11536 ac_status=$?
11537 grep -v '^ *+' conftest.er1 >conftest.err
11538 rm -f conftest.er1
11539 cat conftest.err >&5
11540 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11541 (exit $ac_status); } && {
11542 test -z "$ac_c_werror_flag" ||
11543 test ! -s conftest.err
11544 } && test -s conftest.$ac_objext; then
11545 { $as_echo "$as_me:$LINENO: result: yes" >&5
11546 $as_echo "yes" >&6; }
11547 else
11548 $as_echo "$as_me: failed program was:" >&5
11549 sed 's/^/| /' conftest.$ac_ext >&5
11551 cat >>confdefs.h <<\_ACEOF
11552 #define NO_STRINGS_WITH_STRING_H 1
11553 _ACEOF
11555 { $as_echo "$as_me:$LINENO: result: no" >&5
11556 $as_echo "no" >&6; }
11559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11560 CPPFLAGS=$cppflags_save
11563 if test $ac_cv_c_compiler_gnu = yes; then
11564 { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
11565 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
11566 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
11567 $as_echo_n "(cached) " >&6
11568 else
11569 ac_pattern="Autoconf.*'x'"
11570 cat >conftest.$ac_ext <<_ACEOF
11571 /* confdefs.h. */
11572 _ACEOF
11573 cat confdefs.h >>conftest.$ac_ext
11574 cat >>conftest.$ac_ext <<_ACEOF
11575 /* end confdefs.h. */
11576 #include <sgtty.h>
11577 Autoconf TIOCGETP
11578 _ACEOF
11579 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11580 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11581 ac_cv_prog_gcc_traditional=yes
11582 else
11583 ac_cv_prog_gcc_traditional=no
11585 rm -f conftest*
11588 if test $ac_cv_prog_gcc_traditional = no; then
11589 cat >conftest.$ac_ext <<_ACEOF
11590 /* confdefs.h. */
11591 _ACEOF
11592 cat confdefs.h >>conftest.$ac_ext
11593 cat >>conftest.$ac_ext <<_ACEOF
11594 /* end confdefs.h. */
11595 #include <termio.h>
11596 Autoconf TCGETA
11597 _ACEOF
11598 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11599 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11600 ac_cv_prog_gcc_traditional=yes
11602 rm -f conftest*
11606 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
11607 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
11608 if test $ac_cv_prog_gcc_traditional = yes; then
11609 CC="$CC -traditional"
11613 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11614 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11615 if test "${ac_cv_c_const+set}" = set; then
11616 $as_echo_n "(cached) " >&6
11617 else
11618 cat >conftest.$ac_ext <<_ACEOF
11619 /* confdefs.h. */
11620 _ACEOF
11621 cat confdefs.h >>conftest.$ac_ext
11622 cat >>conftest.$ac_ext <<_ACEOF
11623 /* end confdefs.h. */
11626 main ()
11628 /* FIXME: Include the comments suggested by Paul. */
11629 #ifndef __cplusplus
11630 /* Ultrix mips cc rejects this. */
11631 typedef int charset[2];
11632 const charset cs;
11633 /* SunOS 4.1.1 cc rejects this. */
11634 char const *const *pcpcc;
11635 char **ppc;
11636 /* NEC SVR4.0.2 mips cc rejects this. */
11637 struct point {int x, y;};
11638 static struct point const zero = {0,0};
11639 /* AIX XL C 1.02.0.0 rejects this.
11640 It does not let you subtract one const X* pointer from another in
11641 an arm of an if-expression whose if-part is not a constant
11642 expression */
11643 const char *g = "string";
11644 pcpcc = &g + (g ? g-g : 0);
11645 /* HPUX 7.0 cc rejects these. */
11646 ++pcpcc;
11647 ppc = (char**) pcpcc;
11648 pcpcc = (char const *const *) ppc;
11649 { /* SCO 3.2v4 cc rejects this. */
11650 char *t;
11651 char const *s = 0 ? (char *) 0 : (char const *) 0;
11653 *t++ = 0;
11654 if (s) return 0;
11656 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11657 int x[] = {25, 17};
11658 const int *foo = &x[0];
11659 ++foo;
11661 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11662 typedef const int *iptr;
11663 iptr p = 0;
11664 ++p;
11666 { /* AIX XL C 1.02.0.0 rejects this saying
11667 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11668 struct s { int j; const int *ap[3]; };
11669 struct s *b; b->j = 5;
11671 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11672 const int foo = 10;
11673 if (!foo) return 0;
11675 return !cs[0] && !zero.x;
11676 #endif
11679 return 0;
11681 _ACEOF
11682 rm -f conftest.$ac_objext
11683 if { (ac_try="$ac_compile"
11684 case "(($ac_try" in
11685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11686 *) ac_try_echo=$ac_try;;
11687 esac
11688 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11689 $as_echo "$ac_try_echo") >&5
11690 (eval "$ac_compile") 2>conftest.er1
11691 ac_status=$?
11692 grep -v '^ *+' conftest.er1 >conftest.err
11693 rm -f conftest.er1
11694 cat conftest.err >&5
11695 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11696 (exit $ac_status); } && {
11697 test -z "$ac_c_werror_flag" ||
11698 test ! -s conftest.err
11699 } && test -s conftest.$ac_objext; then
11700 ac_cv_c_const=yes
11701 else
11702 $as_echo "$as_me: failed program was:" >&5
11703 sed 's/^/| /' conftest.$ac_ext >&5
11705 ac_cv_c_const=no
11708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11710 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11711 $as_echo "$ac_cv_c_const" >&6; }
11712 if test $ac_cv_c_const = no; then
11714 cat >>confdefs.h <<\_ACEOF
11715 #define const /**/
11716 _ACEOF
11720 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
11721 $as_echo_n "checking for working volatile... " >&6; }
11722 if test "${ac_cv_c_volatile+set}" = set; then
11723 $as_echo_n "(cached) " >&6
11724 else
11725 cat >conftest.$ac_ext <<_ACEOF
11726 /* confdefs.h. */
11727 _ACEOF
11728 cat confdefs.h >>conftest.$ac_ext
11729 cat >>conftest.$ac_ext <<_ACEOF
11730 /* end confdefs.h. */
11733 main ()
11736 volatile int x;
11737 int * volatile y = (int *) 0;
11738 return !x && !y;
11740 return 0;
11742 _ACEOF
11743 rm -f conftest.$ac_objext
11744 if { (ac_try="$ac_compile"
11745 case "(($ac_try" in
11746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11747 *) ac_try_echo=$ac_try;;
11748 esac
11749 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11750 $as_echo "$ac_try_echo") >&5
11751 (eval "$ac_compile") 2>conftest.er1
11752 ac_status=$?
11753 grep -v '^ *+' conftest.er1 >conftest.err
11754 rm -f conftest.er1
11755 cat conftest.err >&5
11756 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11757 (exit $ac_status); } && {
11758 test -z "$ac_c_werror_flag" ||
11759 test ! -s conftest.err
11760 } && test -s conftest.$ac_objext; then
11761 ac_cv_c_volatile=yes
11762 else
11763 $as_echo "$as_me: failed program was:" >&5
11764 sed 's/^/| /' conftest.$ac_ext >&5
11766 ac_cv_c_volatile=no
11769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11771 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
11772 $as_echo "$ac_cv_c_volatile" >&6; }
11773 if test $ac_cv_c_volatile = no; then
11775 cat >>confdefs.h <<\_ACEOF
11776 #define volatile /**/
11777 _ACEOF
11781 { $as_echo "$as_me:$LINENO: checking for mode_t" >&5
11782 $as_echo_n "checking for mode_t... " >&6; }
11783 if test "${ac_cv_type_mode_t+set}" = set; then
11784 $as_echo_n "(cached) " >&6
11785 else
11786 ac_cv_type_mode_t=no
11787 cat >conftest.$ac_ext <<_ACEOF
11788 /* confdefs.h. */
11789 _ACEOF
11790 cat confdefs.h >>conftest.$ac_ext
11791 cat >>conftest.$ac_ext <<_ACEOF
11792 /* end confdefs.h. */
11793 $ac_includes_default
11795 main ()
11797 if (sizeof (mode_t))
11798 return 0;
11800 return 0;
11802 _ACEOF
11803 rm -f conftest.$ac_objext
11804 if { (ac_try="$ac_compile"
11805 case "(($ac_try" in
11806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11807 *) ac_try_echo=$ac_try;;
11808 esac
11809 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11810 $as_echo "$ac_try_echo") >&5
11811 (eval "$ac_compile") 2>conftest.er1
11812 ac_status=$?
11813 grep -v '^ *+' conftest.er1 >conftest.err
11814 rm -f conftest.er1
11815 cat conftest.err >&5
11816 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11817 (exit $ac_status); } && {
11818 test -z "$ac_c_werror_flag" ||
11819 test ! -s conftest.err
11820 } && test -s conftest.$ac_objext; then
11821 cat >conftest.$ac_ext <<_ACEOF
11822 /* confdefs.h. */
11823 _ACEOF
11824 cat confdefs.h >>conftest.$ac_ext
11825 cat >>conftest.$ac_ext <<_ACEOF
11826 /* end confdefs.h. */
11827 $ac_includes_default
11829 main ()
11831 if (sizeof ((mode_t)))
11832 return 0;
11834 return 0;
11836 _ACEOF
11837 rm -f conftest.$ac_objext
11838 if { (ac_try="$ac_compile"
11839 case "(($ac_try" in
11840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11841 *) ac_try_echo=$ac_try;;
11842 esac
11843 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11844 $as_echo "$ac_try_echo") >&5
11845 (eval "$ac_compile") 2>conftest.er1
11846 ac_status=$?
11847 grep -v '^ *+' conftest.er1 >conftest.err
11848 rm -f conftest.er1
11849 cat conftest.err >&5
11850 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11851 (exit $ac_status); } && {
11852 test -z "$ac_c_werror_flag" ||
11853 test ! -s conftest.err
11854 } && test -s conftest.$ac_objext; then
11856 else
11857 $as_echo "$as_me: failed program was:" >&5
11858 sed 's/^/| /' conftest.$ac_ext >&5
11860 ac_cv_type_mode_t=yes
11863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11864 else
11865 $as_echo "$as_me: failed program was:" >&5
11866 sed 's/^/| /' conftest.$ac_ext >&5
11871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11873 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
11874 $as_echo "$ac_cv_type_mode_t" >&6; }
11875 if test $ac_cv_type_mode_t = yes; then
11877 else
11879 cat >>confdefs.h <<_ACEOF
11880 #define mode_t int
11881 _ACEOF
11885 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
11886 $as_echo_n "checking for off_t... " >&6; }
11887 if test "${ac_cv_type_off_t+set}" = set; then
11888 $as_echo_n "(cached) " >&6
11889 else
11890 ac_cv_type_off_t=no
11891 cat >conftest.$ac_ext <<_ACEOF
11892 /* confdefs.h. */
11893 _ACEOF
11894 cat confdefs.h >>conftest.$ac_ext
11895 cat >>conftest.$ac_ext <<_ACEOF
11896 /* end confdefs.h. */
11897 $ac_includes_default
11899 main ()
11901 if (sizeof (off_t))
11902 return 0;
11904 return 0;
11906 _ACEOF
11907 rm -f conftest.$ac_objext
11908 if { (ac_try="$ac_compile"
11909 case "(($ac_try" in
11910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11911 *) ac_try_echo=$ac_try;;
11912 esac
11913 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11914 $as_echo "$ac_try_echo") >&5
11915 (eval "$ac_compile") 2>conftest.er1
11916 ac_status=$?
11917 grep -v '^ *+' conftest.er1 >conftest.err
11918 rm -f conftest.er1
11919 cat conftest.err >&5
11920 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11921 (exit $ac_status); } && {
11922 test -z "$ac_c_werror_flag" ||
11923 test ! -s conftest.err
11924 } && test -s conftest.$ac_objext; then
11925 cat >conftest.$ac_ext <<_ACEOF
11926 /* confdefs.h. */
11927 _ACEOF
11928 cat confdefs.h >>conftest.$ac_ext
11929 cat >>conftest.$ac_ext <<_ACEOF
11930 /* end confdefs.h. */
11931 $ac_includes_default
11933 main ()
11935 if (sizeof ((off_t)))
11936 return 0;
11938 return 0;
11940 _ACEOF
11941 rm -f conftest.$ac_objext
11942 if { (ac_try="$ac_compile"
11943 case "(($ac_try" in
11944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11945 *) ac_try_echo=$ac_try;;
11946 esac
11947 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11948 $as_echo "$ac_try_echo") >&5
11949 (eval "$ac_compile") 2>conftest.er1
11950 ac_status=$?
11951 grep -v '^ *+' conftest.er1 >conftest.err
11952 rm -f conftest.er1
11953 cat conftest.err >&5
11954 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11955 (exit $ac_status); } && {
11956 test -z "$ac_c_werror_flag" ||
11957 test ! -s conftest.err
11958 } && test -s conftest.$ac_objext; then
11960 else
11961 $as_echo "$as_me: failed program was:" >&5
11962 sed 's/^/| /' conftest.$ac_ext >&5
11964 ac_cv_type_off_t=yes
11967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11968 else
11969 $as_echo "$as_me: failed program was:" >&5
11970 sed 's/^/| /' conftest.$ac_ext >&5
11975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11977 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11978 $as_echo "$ac_cv_type_off_t" >&6; }
11979 if test $ac_cv_type_off_t = yes; then
11981 else
11983 cat >>confdefs.h <<_ACEOF
11984 #define off_t long int
11985 _ACEOF
11989 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
11990 $as_echo_n "checking for pid_t... " >&6; }
11991 if test "${ac_cv_type_pid_t+set}" = set; then
11992 $as_echo_n "(cached) " >&6
11993 else
11994 ac_cv_type_pid_t=no
11995 cat >conftest.$ac_ext <<_ACEOF
11996 /* confdefs.h. */
11997 _ACEOF
11998 cat confdefs.h >>conftest.$ac_ext
11999 cat >>conftest.$ac_ext <<_ACEOF
12000 /* end confdefs.h. */
12001 $ac_includes_default
12003 main ()
12005 if (sizeof (pid_t))
12006 return 0;
12008 return 0;
12010 _ACEOF
12011 rm -f conftest.$ac_objext
12012 if { (ac_try="$ac_compile"
12013 case "(($ac_try" in
12014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12015 *) ac_try_echo=$ac_try;;
12016 esac
12017 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12018 $as_echo "$ac_try_echo") >&5
12019 (eval "$ac_compile") 2>conftest.er1
12020 ac_status=$?
12021 grep -v '^ *+' conftest.er1 >conftest.err
12022 rm -f conftest.er1
12023 cat conftest.err >&5
12024 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12025 (exit $ac_status); } && {
12026 test -z "$ac_c_werror_flag" ||
12027 test ! -s conftest.err
12028 } && test -s conftest.$ac_objext; then
12029 cat >conftest.$ac_ext <<_ACEOF
12030 /* confdefs.h. */
12031 _ACEOF
12032 cat confdefs.h >>conftest.$ac_ext
12033 cat >>conftest.$ac_ext <<_ACEOF
12034 /* end confdefs.h. */
12035 $ac_includes_default
12037 main ()
12039 if (sizeof ((pid_t)))
12040 return 0;
12042 return 0;
12044 _ACEOF
12045 rm -f conftest.$ac_objext
12046 if { (ac_try="$ac_compile"
12047 case "(($ac_try" in
12048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12049 *) ac_try_echo=$ac_try;;
12050 esac
12051 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12052 $as_echo "$ac_try_echo") >&5
12053 (eval "$ac_compile") 2>conftest.er1
12054 ac_status=$?
12055 grep -v '^ *+' conftest.er1 >conftest.err
12056 rm -f conftest.er1
12057 cat conftest.err >&5
12058 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12059 (exit $ac_status); } && {
12060 test -z "$ac_c_werror_flag" ||
12061 test ! -s conftest.err
12062 } && test -s conftest.$ac_objext; then
12064 else
12065 $as_echo "$as_me: failed program was:" >&5
12066 sed 's/^/| /' conftest.$ac_ext >&5
12068 ac_cv_type_pid_t=yes
12071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12072 else
12073 $as_echo "$as_me: failed program was:" >&5
12074 sed 's/^/| /' conftest.$ac_ext >&5
12079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12081 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
12082 $as_echo "$ac_cv_type_pid_t" >&6; }
12083 if test $ac_cv_type_pid_t = yes; then
12085 else
12087 cat >>confdefs.h <<_ACEOF
12088 #define pid_t int
12089 _ACEOF
12093 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
12094 $as_echo_n "checking for size_t... " >&6; }
12095 if test "${ac_cv_type_size_t+set}" = set; then
12096 $as_echo_n "(cached) " >&6
12097 else
12098 ac_cv_type_size_t=no
12099 cat >conftest.$ac_ext <<_ACEOF
12100 /* confdefs.h. */
12101 _ACEOF
12102 cat confdefs.h >>conftest.$ac_ext
12103 cat >>conftest.$ac_ext <<_ACEOF
12104 /* end confdefs.h. */
12105 $ac_includes_default
12107 main ()
12109 if (sizeof (size_t))
12110 return 0;
12112 return 0;
12114 _ACEOF
12115 rm -f conftest.$ac_objext
12116 if { (ac_try="$ac_compile"
12117 case "(($ac_try" in
12118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12119 *) ac_try_echo=$ac_try;;
12120 esac
12121 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12122 $as_echo "$ac_try_echo") >&5
12123 (eval "$ac_compile") 2>conftest.er1
12124 ac_status=$?
12125 grep -v '^ *+' conftest.er1 >conftest.err
12126 rm -f conftest.er1
12127 cat conftest.err >&5
12128 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12129 (exit $ac_status); } && {
12130 test -z "$ac_c_werror_flag" ||
12131 test ! -s conftest.err
12132 } && test -s conftest.$ac_objext; then
12133 cat >conftest.$ac_ext <<_ACEOF
12134 /* confdefs.h. */
12135 _ACEOF
12136 cat confdefs.h >>conftest.$ac_ext
12137 cat >>conftest.$ac_ext <<_ACEOF
12138 /* end confdefs.h. */
12139 $ac_includes_default
12141 main ()
12143 if (sizeof ((size_t)))
12144 return 0;
12146 return 0;
12148 _ACEOF
12149 rm -f conftest.$ac_objext
12150 if { (ac_try="$ac_compile"
12151 case "(($ac_try" in
12152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12153 *) ac_try_echo=$ac_try;;
12154 esac
12155 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12156 $as_echo "$ac_try_echo") >&5
12157 (eval "$ac_compile") 2>conftest.er1
12158 ac_status=$?
12159 grep -v '^ *+' conftest.er1 >conftest.err
12160 rm -f conftest.er1
12161 cat conftest.err >&5
12162 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12163 (exit $ac_status); } && {
12164 test -z "$ac_c_werror_flag" ||
12165 test ! -s conftest.err
12166 } && test -s conftest.$ac_objext; then
12168 else
12169 $as_echo "$as_me: failed program was:" >&5
12170 sed 's/^/| /' conftest.$ac_ext >&5
12172 ac_cv_type_size_t=yes
12175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12176 else
12177 $as_echo "$as_me: failed program was:" >&5
12178 sed 's/^/| /' conftest.$ac_ext >&5
12183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12185 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
12186 $as_echo "$ac_cv_type_size_t" >&6; }
12187 if test $ac_cv_type_size_t = yes; then
12189 else
12191 cat >>confdefs.h <<_ACEOF
12192 #define size_t unsigned int
12193 _ACEOF
12197 { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
12198 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
12199 if test "${ac_cv_type_uid_t+set}" = set; then
12200 $as_echo_n "(cached) " >&6
12201 else
12202 cat >conftest.$ac_ext <<_ACEOF
12203 /* confdefs.h. */
12204 _ACEOF
12205 cat confdefs.h >>conftest.$ac_ext
12206 cat >>conftest.$ac_ext <<_ACEOF
12207 /* end confdefs.h. */
12208 #include <sys/types.h>
12210 _ACEOF
12211 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12212 $EGREP "uid_t" >/dev/null 2>&1; then
12213 ac_cv_type_uid_t=yes
12214 else
12215 ac_cv_type_uid_t=no
12217 rm -f conftest*
12220 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
12221 $as_echo "$ac_cv_type_uid_t" >&6; }
12222 if test $ac_cv_type_uid_t = no; then
12224 cat >>confdefs.h <<\_ACEOF
12225 #define uid_t int
12226 _ACEOF
12229 cat >>confdefs.h <<\_ACEOF
12230 #define gid_t int
12231 _ACEOF
12235 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
12236 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
12237 if test "${ac_cv_header_time+set}" = set; then
12238 $as_echo_n "(cached) " >&6
12239 else
12240 cat >conftest.$ac_ext <<_ACEOF
12241 /* confdefs.h. */
12242 _ACEOF
12243 cat confdefs.h >>conftest.$ac_ext
12244 cat >>conftest.$ac_ext <<_ACEOF
12245 /* end confdefs.h. */
12246 #include <sys/types.h>
12247 #include <sys/time.h>
12248 #include <time.h>
12251 main ()
12253 if ((struct tm *) 0)
12254 return 0;
12256 return 0;
12258 _ACEOF
12259 rm -f conftest.$ac_objext
12260 if { (ac_try="$ac_compile"
12261 case "(($ac_try" in
12262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12263 *) ac_try_echo=$ac_try;;
12264 esac
12265 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12266 $as_echo "$ac_try_echo") >&5
12267 (eval "$ac_compile") 2>conftest.er1
12268 ac_status=$?
12269 grep -v '^ *+' conftest.er1 >conftest.err
12270 rm -f conftest.er1
12271 cat conftest.err >&5
12272 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12273 (exit $ac_status); } && {
12274 test -z "$ac_c_werror_flag" ||
12275 test ! -s conftest.err
12276 } && test -s conftest.$ac_objext; then
12277 ac_cv_header_time=yes
12278 else
12279 $as_echo "$as_me: failed program was:" >&5
12280 sed 's/^/| /' conftest.$ac_ext >&5
12282 ac_cv_header_time=no
12285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12287 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
12288 $as_echo "$ac_cv_header_time" >&6; }
12289 if test $ac_cv_header_time = yes; then
12291 cat >>confdefs.h <<\_ACEOF
12292 #define TIME_WITH_SYS_TIME 1
12293 _ACEOF
12297 { $as_echo "$as_me:$LINENO: checking for ino_t" >&5
12298 $as_echo_n "checking for ino_t... " >&6; }
12299 if test "${ac_cv_type_ino_t+set}" = set; then
12300 $as_echo_n "(cached) " >&6
12301 else
12302 ac_cv_type_ino_t=no
12303 cat >conftest.$ac_ext <<_ACEOF
12304 /* confdefs.h. */
12305 _ACEOF
12306 cat confdefs.h >>conftest.$ac_ext
12307 cat >>conftest.$ac_ext <<_ACEOF
12308 /* end confdefs.h. */
12309 $ac_includes_default
12311 main ()
12313 if (sizeof (ino_t))
12314 return 0;
12316 return 0;
12318 _ACEOF
12319 rm -f conftest.$ac_objext
12320 if { (ac_try="$ac_compile"
12321 case "(($ac_try" in
12322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12323 *) ac_try_echo=$ac_try;;
12324 esac
12325 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12326 $as_echo "$ac_try_echo") >&5
12327 (eval "$ac_compile") 2>conftest.er1
12328 ac_status=$?
12329 grep -v '^ *+' conftest.er1 >conftest.err
12330 rm -f conftest.er1
12331 cat conftest.err >&5
12332 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12333 (exit $ac_status); } && {
12334 test -z "$ac_c_werror_flag" ||
12335 test ! -s conftest.err
12336 } && test -s conftest.$ac_objext; then
12337 cat >conftest.$ac_ext <<_ACEOF
12338 /* confdefs.h. */
12339 _ACEOF
12340 cat confdefs.h >>conftest.$ac_ext
12341 cat >>conftest.$ac_ext <<_ACEOF
12342 /* end confdefs.h. */
12343 $ac_includes_default
12345 main ()
12347 if (sizeof ((ino_t)))
12348 return 0;
12350 return 0;
12352 _ACEOF
12353 rm -f conftest.$ac_objext
12354 if { (ac_try="$ac_compile"
12355 case "(($ac_try" in
12356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12357 *) ac_try_echo=$ac_try;;
12358 esac
12359 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12360 $as_echo "$ac_try_echo") >&5
12361 (eval "$ac_compile") 2>conftest.er1
12362 ac_status=$?
12363 grep -v '^ *+' conftest.er1 >conftest.err
12364 rm -f conftest.er1
12365 cat conftest.err >&5
12366 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12367 (exit $ac_status); } && {
12368 test -z "$ac_c_werror_flag" ||
12369 test ! -s conftest.err
12370 } && test -s conftest.$ac_objext; then
12372 else
12373 $as_echo "$as_me: failed program was:" >&5
12374 sed 's/^/| /' conftest.$ac_ext >&5
12376 ac_cv_type_ino_t=yes
12379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12380 else
12381 $as_echo "$as_me: failed program was:" >&5
12382 sed 's/^/| /' conftest.$ac_ext >&5
12387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12389 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
12390 $as_echo "$ac_cv_type_ino_t" >&6; }
12391 if test $ac_cv_type_ino_t = yes; then
12393 else
12395 cat >>confdefs.h <<_ACEOF
12396 #define ino_t long
12397 _ACEOF
12401 { $as_echo "$as_me:$LINENO: checking for dev_t" >&5
12402 $as_echo_n "checking for dev_t... " >&6; }
12403 if test "${ac_cv_type_dev_t+set}" = set; then
12404 $as_echo_n "(cached) " >&6
12405 else
12406 ac_cv_type_dev_t=no
12407 cat >conftest.$ac_ext <<_ACEOF
12408 /* confdefs.h. */
12409 _ACEOF
12410 cat confdefs.h >>conftest.$ac_ext
12411 cat >>conftest.$ac_ext <<_ACEOF
12412 /* end confdefs.h. */
12413 $ac_includes_default
12415 main ()
12417 if (sizeof (dev_t))
12418 return 0;
12420 return 0;
12422 _ACEOF
12423 rm -f conftest.$ac_objext
12424 if { (ac_try="$ac_compile"
12425 case "(($ac_try" in
12426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12427 *) ac_try_echo=$ac_try;;
12428 esac
12429 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12430 $as_echo "$ac_try_echo") >&5
12431 (eval "$ac_compile") 2>conftest.er1
12432 ac_status=$?
12433 grep -v '^ *+' conftest.er1 >conftest.err
12434 rm -f conftest.er1
12435 cat conftest.err >&5
12436 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12437 (exit $ac_status); } && {
12438 test -z "$ac_c_werror_flag" ||
12439 test ! -s conftest.err
12440 } && test -s conftest.$ac_objext; then
12441 cat >conftest.$ac_ext <<_ACEOF
12442 /* confdefs.h. */
12443 _ACEOF
12444 cat confdefs.h >>conftest.$ac_ext
12445 cat >>conftest.$ac_ext <<_ACEOF
12446 /* end confdefs.h. */
12447 $ac_includes_default
12449 main ()
12451 if (sizeof ((dev_t)))
12452 return 0;
12454 return 0;
12456 _ACEOF
12457 rm -f conftest.$ac_objext
12458 if { (ac_try="$ac_compile"
12459 case "(($ac_try" in
12460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12461 *) ac_try_echo=$ac_try;;
12462 esac
12463 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12464 $as_echo "$ac_try_echo") >&5
12465 (eval "$ac_compile") 2>conftest.er1
12466 ac_status=$?
12467 grep -v '^ *+' conftest.er1 >conftest.err
12468 rm -f conftest.er1
12469 cat conftest.err >&5
12470 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12471 (exit $ac_status); } && {
12472 test -z "$ac_c_werror_flag" ||
12473 test ! -s conftest.err
12474 } && test -s conftest.$ac_objext; then
12476 else
12477 $as_echo "$as_me: failed program was:" >&5
12478 sed 's/^/| /' conftest.$ac_ext >&5
12480 ac_cv_type_dev_t=yes
12483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12484 else
12485 $as_echo "$as_me: failed program was:" >&5
12486 sed 's/^/| /' conftest.$ac_ext >&5
12491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12493 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
12494 $as_echo "$ac_cv_type_dev_t" >&6; }
12495 if test $ac_cv_type_dev_t = yes; then
12497 else
12499 cat >>confdefs.h <<_ACEOF
12500 #define dev_t unsigned
12501 _ACEOF
12506 { $as_echo "$as_me:$LINENO: checking for rlim_t" >&5
12507 $as_echo_n "checking for rlim_t... " >&6; }
12508 if eval "test \"`echo '$''{'ac_cv_type_rlim_t'+set}'`\" = set"; then
12509 { $as_echo "$as_me:$LINENO: result: (cached) $ac_cv_type_rlim_t" >&5
12510 $as_echo "(cached) $ac_cv_type_rlim_t" >&6; }
12511 else
12512 cat >conftest.$ac_ext <<_ACEOF
12513 /* confdefs.h. */
12514 _ACEOF
12515 cat confdefs.h >>conftest.$ac_ext
12516 cat >>conftest.$ac_ext <<_ACEOF
12517 /* end confdefs.h. */
12519 #include <sys/types.h>
12520 #if STDC_HEADERS
12521 # include <stdlib.h>
12522 # include <stddef.h>
12523 #endif
12524 #ifdef HAVE_SYS_RESOURCE_H
12525 # include <sys/resource.h>
12526 #endif
12528 _ACEOF
12529 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12530 $EGREP "(^|[^a-zA-Z_0-9])rlim_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
12531 ac_cv_type_rlim_t=yes
12532 else
12533 ac_cv_type_rlim_t=no
12535 rm -f conftest*
12537 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_rlim_t" >&5
12538 $as_echo "$ac_cv_type_rlim_t" >&6; }
12540 if test $ac_cv_type_rlim_t = no; then
12541 cat >> confdefs.h <<\EOF
12542 #define rlim_t unsigned long
12546 { $as_echo "$as_me:$LINENO: checking for stack_t" >&5
12547 $as_echo_n "checking for stack_t... " >&6; }
12548 if eval "test \"`echo '$''{'ac_cv_type_stack_t'+set}'`\" = set"; then
12549 { $as_echo "$as_me:$LINENO: result: (cached) $ac_cv_type_stack_t" >&5
12550 $as_echo "(cached) $ac_cv_type_stack_t" >&6; }
12551 else
12552 cat >conftest.$ac_ext <<_ACEOF
12553 /* confdefs.h. */
12554 _ACEOF
12555 cat confdefs.h >>conftest.$ac_ext
12556 cat >>conftest.$ac_ext <<_ACEOF
12557 /* end confdefs.h. */
12559 #include <sys/types.h>
12560 #if STDC_HEADERS
12561 # include <stdlib.h>
12562 # include <stddef.h>
12563 #endif
12564 #include <signal.h>
12566 _ACEOF
12567 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12568 $EGREP "stack_t" >/dev/null 2>&1; then
12569 ac_cv_type_stack_t=yes
12570 else
12571 ac_cv_type_stack_t=no
12573 rm -f conftest*
12575 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_stack_t" >&5
12576 $as_echo "$ac_cv_type_stack_t" >&6; }
12578 if test $ac_cv_type_stack_t = no; then
12579 cat >> confdefs.h <<\EOF
12580 #define stack_t struct sigaltstack
12584 { $as_echo "$as_me:$LINENO: checking whether stack_t has an ss_base field" >&5
12585 $as_echo_n "checking whether stack_t has an ss_base field... " >&6; }
12586 cat >conftest.$ac_ext <<_ACEOF
12587 /* confdefs.h. */
12588 _ACEOF
12589 cat confdefs.h >>conftest.$ac_ext
12590 cat >>conftest.$ac_ext <<_ACEOF
12591 /* end confdefs.h. */
12593 #include <sys/types.h>
12594 #if STDC_HEADERS
12595 # include <stdlib.h>
12596 # include <stddef.h>
12597 #endif
12598 #include <signal.h>
12599 #include "confdefs.h"
12602 main ()
12604 stack_t sigstk; sigstk.ss_base = 0;
12606 return 0;
12608 _ACEOF
12609 rm -f conftest.$ac_objext
12610 if { (ac_try="$ac_compile"
12611 case "(($ac_try" in
12612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12613 *) ac_try_echo=$ac_try;;
12614 esac
12615 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12616 $as_echo "$ac_try_echo") >&5
12617 (eval "$ac_compile") 2>conftest.er1
12618 ac_status=$?
12619 grep -v '^ *+' conftest.er1 >conftest.err
12620 rm -f conftest.er1
12621 cat conftest.err >&5
12622 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12623 (exit $ac_status); } && {
12624 test -z "$ac_c_werror_flag" ||
12625 test ! -s conftest.err
12626 } && test -s conftest.$ac_objext; then
12627 { $as_echo "$as_me:$LINENO: result: yes" >&5
12628 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
12629 #define HAVE_SS_BASE 1
12630 _ACEOF
12632 else
12633 $as_echo "$as_me: failed program was:" >&5
12634 sed 's/^/| /' conftest.$ac_ext >&5
12636 { $as_echo "$as_me:$LINENO: result: no" >&5
12637 $as_echo "no" >&6; }
12640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12642 olibs="$LIBS"
12643 { $as_echo "$as_me:$LINENO: checking --with-tlib argument" >&5
12644 $as_echo_n "checking --with-tlib argument... " >&6; }
12646 # Check whether --with-tlib was given.
12647 if test "${with_tlib+set}" = set; then
12648 withval=$with_tlib;
12651 if test -n "$with_tlib"; then
12652 { $as_echo "$as_me:$LINENO: result: $with_tlib" >&5
12653 $as_echo "$with_tlib" >&6; }
12654 LIBS="$LIBS -l$with_tlib"
12655 { $as_echo "$as_me:$LINENO: checking for linking with $with_tlib library" >&5
12656 $as_echo_n "checking for linking with $with_tlib library... " >&6; }
12657 cat >conftest.$ac_ext <<_ACEOF
12658 /* confdefs.h. */
12659 _ACEOF
12660 cat confdefs.h >>conftest.$ac_ext
12661 cat >>conftest.$ac_ext <<_ACEOF
12662 /* end confdefs.h. */
12665 main ()
12669 return 0;
12671 _ACEOF
12672 rm -f conftest.$ac_objext conftest$ac_exeext
12673 if { (ac_try="$ac_link"
12674 case "(($ac_try" in
12675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12676 *) ac_try_echo=$ac_try;;
12677 esac
12678 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12679 $as_echo "$ac_try_echo") >&5
12680 (eval "$ac_link") 2>conftest.er1
12681 ac_status=$?
12682 grep -v '^ *+' conftest.er1 >conftest.err
12683 rm -f conftest.er1
12684 cat conftest.err >&5
12685 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12686 (exit $ac_status); } && {
12687 test -z "$ac_c_werror_flag" ||
12688 test ! -s conftest.err
12689 } && test -s conftest$ac_exeext && {
12690 test "$cross_compiling" = yes ||
12691 $as_test_x conftest$ac_exeext
12692 }; then
12693 { $as_echo "$as_me:$LINENO: result: OK" >&5
12694 $as_echo "OK" >&6; }
12695 else
12696 $as_echo "$as_me: failed program was:" >&5
12697 sed 's/^/| /' conftest.$ac_ext >&5
12699 { { $as_echo "$as_me:$LINENO: error: FAILED" >&5
12700 $as_echo "$as_me: error: FAILED" >&2;}
12701 { (exit 1); exit 1; }; }
12704 rm -rf conftest.dSYM
12705 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12706 conftest$ac_exeext conftest.$ac_ext
12707 olibs="$LIBS"
12708 else
12709 { $as_echo "$as_me:$LINENO: result: empty: automatic terminal library selection" >&5
12710 $as_echo "empty: automatic terminal library selection" >&6; }
12711 case "`uname -s 2>/dev/null`" in
12712 OSF1|SCO_SV) tlibs="ncurses curses termlib termcap";;
12713 *) tlibs="ncurses termlib termcap curses";;
12714 esac
12715 for libname in $tlibs; do
12717 as_ac_Lib=`$as_echo "ac_cv_lib_${libname}''_tgetent" | $as_tr_sh`
12718 { $as_echo "$as_me:$LINENO: checking for tgetent in -l${libname}" >&5
12719 $as_echo_n "checking for tgetent in -l${libname}... " >&6; }
12720 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
12721 $as_echo_n "(cached) " >&6
12722 else
12723 ac_check_lib_save_LIBS=$LIBS
12724 LIBS="-l${libname} $LIBS"
12725 cat >conftest.$ac_ext <<_ACEOF
12726 /* confdefs.h. */
12727 _ACEOF
12728 cat confdefs.h >>conftest.$ac_ext
12729 cat >>conftest.$ac_ext <<_ACEOF
12730 /* end confdefs.h. */
12732 /* Override any GCC internal prototype to avoid an error.
12733 Use char because int might match the return type of a GCC
12734 builtin and then its argument prototype would still apply. */
12735 #ifdef __cplusplus
12736 extern "C"
12737 #endif
12738 char tgetent ();
12740 main ()
12742 return tgetent ();
12744 return 0;
12746 _ACEOF
12747 rm -f conftest.$ac_objext conftest$ac_exeext
12748 if { (ac_try="$ac_link"
12749 case "(($ac_try" in
12750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12751 *) ac_try_echo=$ac_try;;
12752 esac
12753 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12754 $as_echo "$ac_try_echo") >&5
12755 (eval "$ac_link") 2>conftest.er1
12756 ac_status=$?
12757 grep -v '^ *+' conftest.er1 >conftest.err
12758 rm -f conftest.er1
12759 cat conftest.err >&5
12760 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12761 (exit $ac_status); } && {
12762 test -z "$ac_c_werror_flag" ||
12763 test ! -s conftest.err
12764 } && test -s conftest$ac_exeext && {
12765 test "$cross_compiling" = yes ||
12766 $as_test_x conftest$ac_exeext
12767 }; then
12768 eval "$as_ac_Lib=yes"
12769 else
12770 $as_echo "$as_me: failed program was:" >&5
12771 sed 's/^/| /' conftest.$ac_ext >&5
12773 eval "$as_ac_Lib=no"
12776 rm -rf conftest.dSYM
12777 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12778 conftest$ac_exeext conftest.$ac_ext
12779 LIBS=$ac_check_lib_save_LIBS
12781 ac_res=`eval 'as_val=${'$as_ac_Lib'}
12782 $as_echo "$as_val"'`
12783 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12784 $as_echo "$ac_res" >&6; }
12785 if test `eval 'as_val=${'$as_ac_Lib'}
12786 $as_echo "$as_val"'` = yes; then
12787 cat >>confdefs.h <<_ACEOF
12788 #define `$as_echo "HAVE_LIB${libname}" | $as_tr_cpp` 1
12789 _ACEOF
12791 LIBS="-l${libname} $LIBS"
12795 if test "x$olibs" != "x$LIBS"; then
12796 if test "$cross_compiling" = yes; then
12797 res="FAIL"
12798 else
12799 cat >conftest.$ac_ext <<_ACEOF
12800 /* confdefs.h. */
12801 _ACEOF
12802 cat confdefs.h >>conftest.$ac_ext
12803 cat >>conftest.$ac_ext <<_ACEOF
12804 /* end confdefs.h. */
12806 #ifdef HAVE_TERMCAP_H
12807 # include <termcap.h>
12808 #endif
12809 #if STDC_HEADERS
12810 # include <stdlib.h>
12811 # include <stddef.h>
12812 #endif
12813 main() {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(0); }
12814 _ACEOF
12815 rm -f conftest$ac_exeext
12816 if { (ac_try="$ac_link"
12817 case "(($ac_try" in
12818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12819 *) ac_try_echo=$ac_try;;
12820 esac
12821 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12822 $as_echo "$ac_try_echo") >&5
12823 (eval "$ac_link") 2>&5
12824 ac_status=$?
12825 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12826 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12827 { (case "(($ac_try" in
12828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12829 *) ac_try_echo=$ac_try;;
12830 esac
12831 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12832 $as_echo "$ac_try_echo") >&5
12833 (eval "$ac_try") 2>&5
12834 ac_status=$?
12835 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12836 (exit $ac_status); }; }; then
12837 res="OK"
12838 else
12839 $as_echo "$as_me: program exited with status $ac_status" >&5
12840 $as_echo "$as_me: failed program was:" >&5
12841 sed 's/^/| /' conftest.$ac_ext >&5
12843 ( exit $ac_status )
12844 res="FAIL"
12846 rm -rf conftest.dSYM
12847 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12851 if test "$res" = "OK"; then
12852 break
12854 { $as_echo "$as_me:$LINENO: result: $libname library is not usable" >&5
12855 $as_echo "$libname library is not usable" >&6; }
12856 LIBS="$olibs"
12858 done
12859 if test "x$olibs" = "x$LIBS"; then
12860 { $as_echo "$as_me:$LINENO: result: no terminal library found" >&5
12861 $as_echo "no terminal library found" >&6; }
12865 if test "x$olibs" = "x$LIBS"; then
12866 { $as_echo "$as_me:$LINENO: checking for tgetent()" >&5
12867 $as_echo_n "checking for tgetent()... " >&6; }
12868 cat >conftest.$ac_ext <<_ACEOF
12869 /* confdefs.h. */
12870 _ACEOF
12871 cat confdefs.h >>conftest.$ac_ext
12872 cat >>conftest.$ac_ext <<_ACEOF
12873 /* end confdefs.h. */
12876 main ()
12878 char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist");
12880 return 0;
12882 _ACEOF
12883 rm -f conftest.$ac_objext conftest$ac_exeext
12884 if { (ac_try="$ac_link"
12885 case "(($ac_try" in
12886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12887 *) ac_try_echo=$ac_try;;
12888 esac
12889 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12890 $as_echo "$ac_try_echo") >&5
12891 (eval "$ac_link") 2>conftest.er1
12892 ac_status=$?
12893 grep -v '^ *+' conftest.er1 >conftest.err
12894 rm -f conftest.er1
12895 cat conftest.err >&5
12896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12897 (exit $ac_status); } && {
12898 test -z "$ac_c_werror_flag" ||
12899 test ! -s conftest.err
12900 } && test -s conftest$ac_exeext && {
12901 test "$cross_compiling" = yes ||
12902 $as_test_x conftest$ac_exeext
12903 }; then
12904 { $as_echo "$as_me:$LINENO: result: yes" >&5
12905 $as_echo "yes" >&6; }
12906 else
12907 $as_echo "$as_me: failed program was:" >&5
12908 sed 's/^/| /' conftest.$ac_ext >&5
12910 { { $as_echo "$as_me:$LINENO: error: NOT FOUND!
12911 You need to install a terminal library; for example ncurses.
12912 Or specify the name of the library with --with-tlib." >&5
12913 $as_echo "$as_me: error: NOT FOUND!
12914 You need to install a terminal library; for example ncurses.
12915 Or specify the name of the library with --with-tlib." >&2;}
12916 { (exit 1); exit 1; }; }
12919 rm -rf conftest.dSYM
12920 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12921 conftest$ac_exeext conftest.$ac_ext
12924 { $as_echo "$as_me:$LINENO: checking whether we talk terminfo" >&5
12925 $as_echo_n "checking whether we talk terminfo... " >&6; }
12926 if test "${vim_cv_terminfo+set}" = set; then
12927 $as_echo_n "(cached) " >&6
12928 else
12930 if test "$cross_compiling" = yes; then
12932 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_terminfo'" >&5
12933 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_terminfo'" >&2;}
12934 { (exit 1); exit 1; }; }
12936 else
12937 cat >conftest.$ac_ext <<_ACEOF
12939 #include "confdefs.h"
12940 #ifdef HAVE_TERMCAP_H
12941 # include <termcap.h>
12942 #endif
12943 #ifdef HAVE_STRING_H
12944 # include <string.h>
12945 #endif
12946 #if STDC_HEADERS
12947 # include <stdlib.h>
12948 # include <stddef.h>
12949 #endif
12950 main()
12951 {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(!strcmp(s==0 ? "" : s, "1")); }
12953 _ACEOF
12954 rm -f conftest$ac_exeext
12955 if { (ac_try="$ac_link"
12956 case "(($ac_try" in
12957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12958 *) ac_try_echo=$ac_try;;
12959 esac
12960 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12961 $as_echo "$ac_try_echo") >&5
12962 (eval "$ac_link") 2>&5
12963 ac_status=$?
12964 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12965 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12966 { (case "(($ac_try" in
12967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12968 *) ac_try_echo=$ac_try;;
12969 esac
12970 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12971 $as_echo "$ac_try_echo") >&5
12972 (eval "$ac_try") 2>&5
12973 ac_status=$?
12974 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12975 (exit $ac_status); }; }; then
12977 vim_cv_terminfo=no
12979 else
12980 $as_echo "$as_me: program exited with status $ac_status" >&5
12981 $as_echo "$as_me: failed program was:" >&5
12982 sed 's/^/| /' conftest.$ac_ext >&5
12984 ( exit $ac_status )
12986 vim_cv_terminfo=yes
12989 rm -rf conftest.dSYM
12990 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12996 { $as_echo "$as_me:$LINENO: result: $vim_cv_terminfo" >&5
12997 $as_echo "$vim_cv_terminfo" >&6; }
12999 if test "x$vim_cv_terminfo" = "xyes" ; then
13000 cat >>confdefs.h <<\_ACEOF
13001 #define TERMINFO 1
13002 _ACEOF
13006 if test "x$olibs" != "x$LIBS"; then
13007 { $as_echo "$as_me:$LINENO: checking what tgetent() returns for an unknown terminal" >&5
13008 $as_echo_n "checking what tgetent() returns for an unknown terminal... " >&6; }
13009 if test "${vim_cv_tgent+set}" = set; then
13010 $as_echo_n "(cached) " >&6
13011 else
13013 if test "$cross_compiling" = yes; then
13015 { { $as_echo "$as_me:$LINENO: error: failed to compile test program." >&5
13016 $as_echo "$as_me: error: failed to compile test program." >&2;}
13017 { (exit 1); exit 1; }; }
13019 else
13020 cat >conftest.$ac_ext <<_ACEOF
13022 #include "confdefs.h"
13023 #ifdef HAVE_TERMCAP_H
13024 # include <termcap.h>
13025 #endif
13026 #if STDC_HEADERS
13027 # include <stdlib.h>
13028 # include <stddef.h>
13029 #endif
13030 main()
13031 {char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); exit(res != 0); }
13033 _ACEOF
13034 rm -f conftest$ac_exeext
13035 if { (ac_try="$ac_link"
13036 case "(($ac_try" in
13037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13038 *) ac_try_echo=$ac_try;;
13039 esac
13040 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13041 $as_echo "$ac_try_echo") >&5
13042 (eval "$ac_link") 2>&5
13043 ac_status=$?
13044 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13045 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13046 { (case "(($ac_try" in
13047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13048 *) ac_try_echo=$ac_try;;
13049 esac
13050 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13051 $as_echo "$ac_try_echo") >&5
13052 (eval "$ac_try") 2>&5
13053 ac_status=$?
13054 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13055 (exit $ac_status); }; }; then
13057 vim_cv_tgent=zero
13059 else
13060 $as_echo "$as_me: program exited with status $ac_status" >&5
13061 $as_echo "$as_me: failed program was:" >&5
13062 sed 's/^/| /' conftest.$ac_ext >&5
13064 ( exit $ac_status )
13066 vim_cv_tgent=non-zero
13069 rm -rf conftest.dSYM
13070 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13076 { $as_echo "$as_me:$LINENO: result: $vim_cv_tgent" >&5
13077 $as_echo "$vim_cv_tgent" >&6; }
13079 if test "x$vim_cv_tgent" = "xzero" ; then
13080 cat >>confdefs.h <<\_ACEOF
13081 #define TGETENT_ZERO_ERR 0
13082 _ACEOF
13087 { $as_echo "$as_me:$LINENO: checking whether termcap.h contains ospeed" >&5
13088 $as_echo_n "checking whether termcap.h contains ospeed... " >&6; }
13089 cat >conftest.$ac_ext <<_ACEOF
13090 /* confdefs.h. */
13091 _ACEOF
13092 cat confdefs.h >>conftest.$ac_ext
13093 cat >>conftest.$ac_ext <<_ACEOF
13094 /* end confdefs.h. */
13096 #ifdef HAVE_TERMCAP_H
13097 # include <termcap.h>
13098 #endif
13101 main ()
13103 ospeed = 20000
13105 return 0;
13107 _ACEOF
13108 rm -f conftest.$ac_objext conftest$ac_exeext
13109 if { (ac_try="$ac_link"
13110 case "(($ac_try" in
13111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13112 *) ac_try_echo=$ac_try;;
13113 esac
13114 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13115 $as_echo "$ac_try_echo") >&5
13116 (eval "$ac_link") 2>conftest.er1
13117 ac_status=$?
13118 grep -v '^ *+' conftest.er1 >conftest.err
13119 rm -f conftest.er1
13120 cat conftest.err >&5
13121 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13122 (exit $ac_status); } && {
13123 test -z "$ac_c_werror_flag" ||
13124 test ! -s conftest.err
13125 } && test -s conftest$ac_exeext && {
13126 test "$cross_compiling" = yes ||
13127 $as_test_x conftest$ac_exeext
13128 }; then
13129 { $as_echo "$as_me:$LINENO: result: yes" >&5
13130 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13131 #define HAVE_OSPEED 1
13132 _ACEOF
13134 else
13135 $as_echo "$as_me: failed program was:" >&5
13136 sed 's/^/| /' conftest.$ac_ext >&5
13138 { $as_echo "$as_me:$LINENO: result: no" >&5
13139 $as_echo "no" >&6; }
13140 { $as_echo "$as_me:$LINENO: checking whether ospeed can be extern" >&5
13141 $as_echo_n "checking whether ospeed can be extern... " >&6; }
13142 cat >conftest.$ac_ext <<_ACEOF
13143 /* confdefs.h. */
13144 _ACEOF
13145 cat confdefs.h >>conftest.$ac_ext
13146 cat >>conftest.$ac_ext <<_ACEOF
13147 /* end confdefs.h. */
13149 #ifdef HAVE_TERMCAP_H
13150 # include <termcap.h>
13151 #endif
13152 extern short ospeed;
13155 main ()
13157 ospeed = 20000
13159 return 0;
13161 _ACEOF
13162 rm -f conftest.$ac_objext conftest$ac_exeext
13163 if { (ac_try="$ac_link"
13164 case "(($ac_try" in
13165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13166 *) ac_try_echo=$ac_try;;
13167 esac
13168 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13169 $as_echo "$ac_try_echo") >&5
13170 (eval "$ac_link") 2>conftest.er1
13171 ac_status=$?
13172 grep -v '^ *+' conftest.er1 >conftest.err
13173 rm -f conftest.er1
13174 cat conftest.err >&5
13175 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13176 (exit $ac_status); } && {
13177 test -z "$ac_c_werror_flag" ||
13178 test ! -s conftest.err
13179 } && test -s conftest$ac_exeext && {
13180 test "$cross_compiling" = yes ||
13181 $as_test_x conftest$ac_exeext
13182 }; then
13183 { $as_echo "$as_me:$LINENO: result: yes" >&5
13184 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13185 #define OSPEED_EXTERN 1
13186 _ACEOF
13188 else
13189 $as_echo "$as_me: failed program was:" >&5
13190 sed 's/^/| /' conftest.$ac_ext >&5
13192 { $as_echo "$as_me:$LINENO: result: no" >&5
13193 $as_echo "no" >&6; }
13196 rm -rf conftest.dSYM
13197 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13198 conftest$ac_exeext conftest.$ac_ext
13202 rm -rf conftest.dSYM
13203 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13204 conftest$ac_exeext conftest.$ac_ext
13206 { $as_echo "$as_me:$LINENO: checking whether termcap.h contains UP, BC and PC" >&5
13207 $as_echo_n "checking whether termcap.h contains UP, BC and PC... " >&6; }
13208 cat >conftest.$ac_ext <<_ACEOF
13209 /* confdefs.h. */
13210 _ACEOF
13211 cat confdefs.h >>conftest.$ac_ext
13212 cat >>conftest.$ac_ext <<_ACEOF
13213 /* end confdefs.h. */
13215 #ifdef HAVE_TERMCAP_H
13216 # include <termcap.h>
13217 #endif
13220 main ()
13222 if (UP == 0 && BC == 0) PC = 1
13224 return 0;
13226 _ACEOF
13227 rm -f conftest.$ac_objext conftest$ac_exeext
13228 if { (ac_try="$ac_link"
13229 case "(($ac_try" in
13230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13231 *) ac_try_echo=$ac_try;;
13232 esac
13233 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13234 $as_echo "$ac_try_echo") >&5
13235 (eval "$ac_link") 2>conftest.er1
13236 ac_status=$?
13237 grep -v '^ *+' conftest.er1 >conftest.err
13238 rm -f conftest.er1
13239 cat conftest.err >&5
13240 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13241 (exit $ac_status); } && {
13242 test -z "$ac_c_werror_flag" ||
13243 test ! -s conftest.err
13244 } && test -s conftest$ac_exeext && {
13245 test "$cross_compiling" = yes ||
13246 $as_test_x conftest$ac_exeext
13247 }; then
13248 { $as_echo "$as_me:$LINENO: result: yes" >&5
13249 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13250 #define HAVE_UP_BC_PC 1
13251 _ACEOF
13253 else
13254 $as_echo "$as_me: failed program was:" >&5
13255 sed 's/^/| /' conftest.$ac_ext >&5
13257 { $as_echo "$as_me:$LINENO: result: no" >&5
13258 $as_echo "no" >&6; }
13259 { $as_echo "$as_me:$LINENO: checking whether UP, BC and PC can be extern" >&5
13260 $as_echo_n "checking whether UP, BC and PC can be extern... " >&6; }
13261 cat >conftest.$ac_ext <<_ACEOF
13262 /* confdefs.h. */
13263 _ACEOF
13264 cat confdefs.h >>conftest.$ac_ext
13265 cat >>conftest.$ac_ext <<_ACEOF
13266 /* end confdefs.h. */
13268 #ifdef HAVE_TERMCAP_H
13269 # include <termcap.h>
13270 #endif
13271 extern char *UP, *BC, PC;
13274 main ()
13276 if (UP == 0 && BC == 0) PC = 1
13278 return 0;
13280 _ACEOF
13281 rm -f conftest.$ac_objext conftest$ac_exeext
13282 if { (ac_try="$ac_link"
13283 case "(($ac_try" in
13284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13285 *) ac_try_echo=$ac_try;;
13286 esac
13287 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13288 $as_echo "$ac_try_echo") >&5
13289 (eval "$ac_link") 2>conftest.er1
13290 ac_status=$?
13291 grep -v '^ *+' conftest.er1 >conftest.err
13292 rm -f conftest.er1
13293 cat conftest.err >&5
13294 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13295 (exit $ac_status); } && {
13296 test -z "$ac_c_werror_flag" ||
13297 test ! -s conftest.err
13298 } && test -s conftest$ac_exeext && {
13299 test "$cross_compiling" = yes ||
13300 $as_test_x conftest$ac_exeext
13301 }; then
13302 { $as_echo "$as_me:$LINENO: result: yes" >&5
13303 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13304 #define UP_BC_PC_EXTERN 1
13305 _ACEOF
13307 else
13308 $as_echo "$as_me: failed program was:" >&5
13309 sed 's/^/| /' conftest.$ac_ext >&5
13311 { $as_echo "$as_me:$LINENO: result: no" >&5
13312 $as_echo "no" >&6; }
13315 rm -rf conftest.dSYM
13316 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13317 conftest$ac_exeext conftest.$ac_ext
13321 rm -rf conftest.dSYM
13322 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13323 conftest$ac_exeext conftest.$ac_ext
13325 { $as_echo "$as_me:$LINENO: checking whether tputs() uses outfuntype" >&5
13326 $as_echo_n "checking whether tputs() uses outfuntype... " >&6; }
13327 cat >conftest.$ac_ext <<_ACEOF
13328 /* confdefs.h. */
13329 _ACEOF
13330 cat confdefs.h >>conftest.$ac_ext
13331 cat >>conftest.$ac_ext <<_ACEOF
13332 /* end confdefs.h. */
13334 #ifdef HAVE_TERMCAP_H
13335 # include <termcap.h>
13336 #endif
13339 main ()
13341 extern int xx(); tputs("test", 1, (outfuntype)xx)
13343 return 0;
13345 _ACEOF
13346 rm -f conftest.$ac_objext
13347 if { (ac_try="$ac_compile"
13348 case "(($ac_try" in
13349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13350 *) ac_try_echo=$ac_try;;
13351 esac
13352 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13353 $as_echo "$ac_try_echo") >&5
13354 (eval "$ac_compile") 2>conftest.er1
13355 ac_status=$?
13356 grep -v '^ *+' conftest.er1 >conftest.err
13357 rm -f conftest.er1
13358 cat conftest.err >&5
13359 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13360 (exit $ac_status); } && {
13361 test -z "$ac_c_werror_flag" ||
13362 test ! -s conftest.err
13363 } && test -s conftest.$ac_objext; then
13364 { $as_echo "$as_me:$LINENO: result: yes" >&5
13365 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13366 #define HAVE_OUTFUNTYPE 1
13367 _ACEOF
13369 else
13370 $as_echo "$as_me: failed program was:" >&5
13371 sed 's/^/| /' conftest.$ac_ext >&5
13373 { $as_echo "$as_me:$LINENO: result: no" >&5
13374 $as_echo "no" >&6; }
13377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13379 { $as_echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
13380 $as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; }
13381 cat >conftest.$ac_ext <<_ACEOF
13382 /* confdefs.h. */
13383 _ACEOF
13384 cat confdefs.h >>conftest.$ac_ext
13385 cat >>conftest.$ac_ext <<_ACEOF
13386 /* end confdefs.h. */
13388 #include <sys/types.h>
13389 #include <sys/time.h>
13390 #include <sys/select.h>
13392 main ()
13396 return 0;
13398 _ACEOF
13399 rm -f conftest.$ac_objext
13400 if { (ac_try="$ac_compile"
13401 case "(($ac_try" in
13402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13403 *) ac_try_echo=$ac_try;;
13404 esac
13405 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13406 $as_echo "$ac_try_echo") >&5
13407 (eval "$ac_compile") 2>conftest.er1
13408 ac_status=$?
13409 grep -v '^ *+' conftest.er1 >conftest.err
13410 rm -f conftest.er1
13411 cat conftest.err >&5
13412 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13413 (exit $ac_status); } && {
13414 test -z "$ac_c_werror_flag" ||
13415 test ! -s conftest.err
13416 } && test -s conftest.$ac_objext; then
13417 { $as_echo "$as_me:$LINENO: result: yes" >&5
13418 $as_echo "yes" >&6; }
13419 cat >>confdefs.h <<\_ACEOF
13420 #define SYS_SELECT_WITH_SYS_TIME 1
13421 _ACEOF
13423 else
13424 $as_echo "$as_me: failed program was:" >&5
13425 sed 's/^/| /' conftest.$ac_ext >&5
13427 { $as_echo "$as_me:$LINENO: result: no" >&5
13428 $as_echo "no" >&6; }
13431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13434 { $as_echo "$as_me:$LINENO: checking for /dev/ptc" >&5
13435 $as_echo_n "checking for /dev/ptc... " >&6; }
13436 if test -r /dev/ptc; then
13437 cat >>confdefs.h <<\_ACEOF
13438 #define HAVE_DEV_PTC 1
13439 _ACEOF
13441 { $as_echo "$as_me:$LINENO: result: yes" >&5
13442 $as_echo "yes" >&6; }
13443 else
13444 { $as_echo "$as_me:$LINENO: result: no" >&5
13445 $as_echo "no" >&6; }
13448 { $as_echo "$as_me:$LINENO: checking for SVR4 ptys" >&5
13449 $as_echo_n "checking for SVR4 ptys... " >&6; }
13450 if test -c /dev/ptmx ; then
13451 cat >conftest.$ac_ext <<_ACEOF
13452 /* confdefs.h. */
13453 _ACEOF
13454 cat confdefs.h >>conftest.$ac_ext
13455 cat >>conftest.$ac_ext <<_ACEOF
13456 /* end confdefs.h. */
13459 main ()
13461 ptsname(0);grantpt(0);unlockpt(0);
13463 return 0;
13465 _ACEOF
13466 rm -f conftest.$ac_objext conftest$ac_exeext
13467 if { (ac_try="$ac_link"
13468 case "(($ac_try" in
13469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13470 *) ac_try_echo=$ac_try;;
13471 esac
13472 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13473 $as_echo "$ac_try_echo") >&5
13474 (eval "$ac_link") 2>conftest.er1
13475 ac_status=$?
13476 grep -v '^ *+' conftest.er1 >conftest.err
13477 rm -f conftest.er1
13478 cat conftest.err >&5
13479 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13480 (exit $ac_status); } && {
13481 test -z "$ac_c_werror_flag" ||
13482 test ! -s conftest.err
13483 } && test -s conftest$ac_exeext && {
13484 test "$cross_compiling" = yes ||
13485 $as_test_x conftest$ac_exeext
13486 }; then
13487 { $as_echo "$as_me:$LINENO: result: yes" >&5
13488 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13489 #define HAVE_SVR4_PTYS 1
13490 _ACEOF
13492 else
13493 $as_echo "$as_me: failed program was:" >&5
13494 sed 's/^/| /' conftest.$ac_ext >&5
13496 { $as_echo "$as_me:$LINENO: result: no" >&5
13497 $as_echo "no" >&6; }
13500 rm -rf conftest.dSYM
13501 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13502 conftest$ac_exeext conftest.$ac_ext
13503 else
13504 { $as_echo "$as_me:$LINENO: result: no" >&5
13505 $as_echo "no" >&6; }
13508 { $as_echo "$as_me:$LINENO: checking for ptyranges" >&5
13509 $as_echo_n "checking for ptyranges... " >&6; }
13510 if test -d /dev/ptym ; then
13511 pdir='/dev/ptym'
13512 else
13513 pdir='/dev'
13515 cat >conftest.$ac_ext <<_ACEOF
13516 /* confdefs.h. */
13517 _ACEOF
13518 cat confdefs.h >>conftest.$ac_ext
13519 cat >>conftest.$ac_ext <<_ACEOF
13520 /* end confdefs.h. */
13521 #ifdef M_UNIX
13522 yes;
13523 #endif
13525 _ACEOF
13526 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13527 $EGREP "yes" >/dev/null 2>&1; then
13528 ptys=`echo /dev/ptyp??`
13529 else
13530 ptys=`echo $pdir/pty??`
13532 rm -f conftest*
13534 if test "$ptys" != "$pdir/pty??" ; then
13535 p0=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'`
13536 p1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'`
13537 cat >>confdefs.h <<_ACEOF
13538 #define PTYRANGE0 "$p0"
13539 _ACEOF
13541 cat >>confdefs.h <<_ACEOF
13542 #define PTYRANGE1 "$p1"
13543 _ACEOF
13545 { $as_echo "$as_me:$LINENO: result: $p0 / $p1" >&5
13546 $as_echo "$p0 / $p1" >&6; }
13547 else
13548 { $as_echo "$as_me:$LINENO: result: don't know" >&5
13549 $as_echo "don't know" >&6; }
13552 rm -f conftest_grp
13553 { $as_echo "$as_me:$LINENO: checking default tty permissions/group" >&5
13554 $as_echo_n "checking default tty permissions/group... " >&6; }
13555 if test "${vim_cv_tty_group+set}" = set; then
13556 $as_echo_n "(cached) " >&6
13557 else
13559 if test "$cross_compiling" = yes; then
13561 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_tty_group' and 'vim_cv_tty_mode'" >&5
13562 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_tty_group' and 'vim_cv_tty_mode'" >&2;}
13563 { (exit 1); exit 1; }; }
13565 else
13566 cat >conftest.$ac_ext <<_ACEOF
13568 #include "confdefs.h"
13569 #include <sys/types.h>
13570 #if STDC_HEADERS
13571 # include <stdlib.h>
13572 # include <stddef.h>
13573 #endif
13574 #ifdef HAVE_UNISTD_H
13575 #include <unistd.h>
13576 #endif
13577 #include <sys/stat.h>
13578 #include <stdio.h>
13579 main()
13581 struct stat sb;
13582 char *x,*ttyname();
13583 int om, m;
13584 FILE *fp;
13586 if (!(x = ttyname(0))) exit(1);
13587 if (stat(x, &sb)) exit(1);
13588 om = sb.st_mode;
13589 if (om & 002) exit(0);
13590 m = system("mesg y");
13591 if (m == -1 || m == 127) exit(1);
13592 if (stat(x, &sb)) exit(1);
13593 m = sb.st_mode;
13594 if (chmod(x, om)) exit(1);
13595 if (m & 002) exit(0);
13596 if (sb.st_gid == getgid()) exit(1);
13597 if (!(fp=fopen("conftest_grp", "w")))
13598 exit(1);
13599 fprintf(fp, "%d\n", sb.st_gid);
13600 fclose(fp);
13601 exit(0);
13604 _ACEOF
13605 rm -f conftest$ac_exeext
13606 if { (ac_try="$ac_link"
13607 case "(($ac_try" in
13608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13609 *) ac_try_echo=$ac_try;;
13610 esac
13611 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13612 $as_echo "$ac_try_echo") >&5
13613 (eval "$ac_link") 2>&5
13614 ac_status=$?
13615 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13616 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13617 { (case "(($ac_try" in
13618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13619 *) ac_try_echo=$ac_try;;
13620 esac
13621 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13622 $as_echo "$ac_try_echo") >&5
13623 (eval "$ac_try") 2>&5
13624 ac_status=$?
13625 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13626 (exit $ac_status); }; }; then
13628 if test -f conftest_grp; then
13629 vim_cv_tty_group=`cat conftest_grp`
13630 if test "x$vim_cv_tty_mode" = "x" ; then
13631 vim_cv_tty_mode=0620
13633 { $as_echo "$as_me:$LINENO: result: pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&5
13634 $as_echo "pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&6; }
13635 else
13636 vim_cv_tty_group=world
13637 { $as_echo "$as_me:$LINENO: result: ptys are world accessable" >&5
13638 $as_echo "ptys are world accessable" >&6; }
13641 else
13642 $as_echo "$as_me: program exited with status $ac_status" >&5
13643 $as_echo "$as_me: failed program was:" >&5
13644 sed 's/^/| /' conftest.$ac_ext >&5
13646 ( exit $ac_status )
13648 vim_cv_tty_group=world
13649 { $as_echo "$as_me:$LINENO: result: can't determine - assume ptys are world accessable" >&5
13650 $as_echo "can't determine - assume ptys are world accessable" >&6; }
13653 rm -rf conftest.dSYM
13654 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13660 { $as_echo "$as_me:$LINENO: result: $vim_cv_tty_group" >&5
13661 $as_echo "$vim_cv_tty_group" >&6; }
13662 rm -f conftest_grp
13664 if test "x$vim_cv_tty_group" != "xworld" ; then
13665 cat >>confdefs.h <<_ACEOF
13666 #define PTYGROUP $vim_cv_tty_group
13667 _ACEOF
13669 if test "x$vim_cv_tty_mode" = "x" ; then
13670 { { $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
13671 $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;}
13672 { (exit 1); exit 1; }; }
13673 else
13674 cat >>confdefs.h <<\_ACEOF
13675 #define PTYMODE 0620
13676 _ACEOF
13682 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13683 $as_echo_n "checking return type of signal handlers... " >&6; }
13684 if test "${ac_cv_type_signal+set}" = set; then
13685 $as_echo_n "(cached) " >&6
13686 else
13687 cat >conftest.$ac_ext <<_ACEOF
13688 /* confdefs.h. */
13689 _ACEOF
13690 cat confdefs.h >>conftest.$ac_ext
13691 cat >>conftest.$ac_ext <<_ACEOF
13692 /* end confdefs.h. */
13693 #include <sys/types.h>
13694 #include <signal.h>
13697 main ()
13699 return *(signal (0, 0)) (0) == 1;
13701 return 0;
13703 _ACEOF
13704 rm -f conftest.$ac_objext
13705 if { (ac_try="$ac_compile"
13706 case "(($ac_try" in
13707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13708 *) ac_try_echo=$ac_try;;
13709 esac
13710 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13711 $as_echo "$ac_try_echo") >&5
13712 (eval "$ac_compile") 2>conftest.er1
13713 ac_status=$?
13714 grep -v '^ *+' conftest.er1 >conftest.err
13715 rm -f conftest.er1
13716 cat conftest.err >&5
13717 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13718 (exit $ac_status); } && {
13719 test -z "$ac_c_werror_flag" ||
13720 test ! -s conftest.err
13721 } && test -s conftest.$ac_objext; then
13722 ac_cv_type_signal=int
13723 else
13724 $as_echo "$as_me: failed program was:" >&5
13725 sed 's/^/| /' conftest.$ac_ext >&5
13727 ac_cv_type_signal=void
13730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13732 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
13733 $as_echo "$ac_cv_type_signal" >&6; }
13735 cat >>confdefs.h <<_ACEOF
13736 #define RETSIGTYPE $ac_cv_type_signal
13737 _ACEOF
13741 if test $ac_cv_type_signal = void; then
13742 cat >>confdefs.h <<\_ACEOF
13743 #define SIGRETURN return
13744 _ACEOF
13746 else
13747 cat >>confdefs.h <<\_ACEOF
13748 #define SIGRETURN return 0
13749 _ACEOF
13753 { $as_echo "$as_me:$LINENO: checking for struct sigcontext" >&5
13754 $as_echo_n "checking for struct sigcontext... " >&6; }
13755 cat >conftest.$ac_ext <<_ACEOF
13756 /* confdefs.h. */
13757 _ACEOF
13758 cat confdefs.h >>conftest.$ac_ext
13759 cat >>conftest.$ac_ext <<_ACEOF
13760 /* end confdefs.h. */
13762 #include <signal.h>
13763 test_sig()
13765 struct sigcontext *scont;
13766 scont = (struct sigcontext *)0;
13767 return 1;
13770 main ()
13774 return 0;
13776 _ACEOF
13777 rm -f conftest.$ac_objext
13778 if { (ac_try="$ac_compile"
13779 case "(($ac_try" in
13780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13781 *) ac_try_echo=$ac_try;;
13782 esac
13783 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13784 $as_echo "$ac_try_echo") >&5
13785 (eval "$ac_compile") 2>conftest.er1
13786 ac_status=$?
13787 grep -v '^ *+' conftest.er1 >conftest.err
13788 rm -f conftest.er1
13789 cat conftest.err >&5
13790 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13791 (exit $ac_status); } && {
13792 test -z "$ac_c_werror_flag" ||
13793 test ! -s conftest.err
13794 } && test -s conftest.$ac_objext; then
13795 { $as_echo "$as_me:$LINENO: result: yes" >&5
13796 $as_echo "yes" >&6; }
13797 cat >>confdefs.h <<\_ACEOF
13798 #define HAVE_SIGCONTEXT 1
13799 _ACEOF
13801 else
13802 $as_echo "$as_me: failed program was:" >&5
13803 sed 's/^/| /' conftest.$ac_ext >&5
13805 { $as_echo "$as_me:$LINENO: result: no" >&5
13806 $as_echo "no" >&6; }
13809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13811 { $as_echo "$as_me:$LINENO: checking getcwd implementation is broken" >&5
13812 $as_echo_n "checking getcwd implementation is broken... " >&6; }
13813 if test "${vim_cv_getcwd_broken+set}" = set; then
13814 $as_echo_n "(cached) " >&6
13815 else
13817 if test "$cross_compiling" = yes; then
13819 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_getcwd_broken'" >&5
13820 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_getcwd_broken'" >&2;}
13821 { (exit 1); exit 1; }; }
13823 else
13824 cat >conftest.$ac_ext <<_ACEOF
13826 #include "confdefs.h"
13827 #ifdef HAVE_UNISTD_H
13828 #include <unistd.h>
13829 #endif
13830 char *dagger[] = { "IFS=pwd", 0 };
13831 main()
13833 char buffer[500];
13834 extern char **environ;
13835 environ = dagger;
13836 return getcwd(buffer, 500) ? 0 : 1;
13839 _ACEOF
13840 rm -f conftest$ac_exeext
13841 if { (ac_try="$ac_link"
13842 case "(($ac_try" in
13843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13844 *) ac_try_echo=$ac_try;;
13845 esac
13846 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13847 $as_echo "$ac_try_echo") >&5
13848 (eval "$ac_link") 2>&5
13849 ac_status=$?
13850 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13851 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13852 { (case "(($ac_try" in
13853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13854 *) ac_try_echo=$ac_try;;
13855 esac
13856 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13857 $as_echo "$ac_try_echo") >&5
13858 (eval "$ac_try") 2>&5
13859 ac_status=$?
13860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13861 (exit $ac_status); }; }; then
13863 vim_cv_getcwd_broken=no
13865 else
13866 $as_echo "$as_me: program exited with status $ac_status" >&5
13867 $as_echo "$as_me: failed program was:" >&5
13868 sed 's/^/| /' conftest.$ac_ext >&5
13870 ( exit $ac_status )
13872 vim_cv_getcwd_broken=yes
13875 rm -rf conftest.dSYM
13876 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13882 { $as_echo "$as_me:$LINENO: result: $vim_cv_getcwd_broken" >&5
13883 $as_echo "$vim_cv_getcwd_broken" >&6; }
13885 if test "x$vim_cv_getcwd_broken" = "xyes" ; then
13886 cat >>confdefs.h <<\_ACEOF
13887 #define BAD_GETCWD 1
13888 _ACEOF
13938 for ac_func in bcmp fchdir fchown fseeko fsync ftello getcwd getpseudotty \
13939 getpwnam getpwuid getrlimit gettimeofday getwd lstat memcmp \
13940 memset nanosleep opendir putenv qsort readlink select setenv \
13941 setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \
13942 sigvec strcasecmp strerror strftime stricmp strncasecmp \
13943 strnicmp strpbrk strtol tgetent towlower towupper iswupper \
13944 usleep utime utimes
13946 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13947 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13948 $as_echo_n "checking for $ac_func... " >&6; }
13949 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13950 $as_echo_n "(cached) " >&6
13951 else
13952 cat >conftest.$ac_ext <<_ACEOF
13953 /* confdefs.h. */
13954 _ACEOF
13955 cat confdefs.h >>conftest.$ac_ext
13956 cat >>conftest.$ac_ext <<_ACEOF
13957 /* end confdefs.h. */
13958 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13959 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13960 #define $ac_func innocuous_$ac_func
13962 /* System header to define __stub macros and hopefully few prototypes,
13963 which can conflict with char $ac_func (); below.
13964 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13965 <limits.h> exists even on freestanding compilers. */
13967 #ifdef __STDC__
13968 # include <limits.h>
13969 #else
13970 # include <assert.h>
13971 #endif
13973 #undef $ac_func
13975 /* Override any GCC internal prototype to avoid an error.
13976 Use char because int might match the return type of a GCC
13977 builtin and then its argument prototype would still apply. */
13978 #ifdef __cplusplus
13979 extern "C"
13980 #endif
13981 char $ac_func ();
13982 /* The GNU C library defines this for functions which it implements
13983 to always fail with ENOSYS. Some functions are actually named
13984 something starting with __ and the normal name is an alias. */
13985 #if defined __stub_$ac_func || defined __stub___$ac_func
13986 choke me
13987 #endif
13990 main ()
13992 return $ac_func ();
13994 return 0;
13996 _ACEOF
13997 rm -f conftest.$ac_objext conftest$ac_exeext
13998 if { (ac_try="$ac_link"
13999 case "(($ac_try" in
14000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14001 *) ac_try_echo=$ac_try;;
14002 esac
14003 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14004 $as_echo "$ac_try_echo") >&5
14005 (eval "$ac_link") 2>conftest.er1
14006 ac_status=$?
14007 grep -v '^ *+' conftest.er1 >conftest.err
14008 rm -f conftest.er1
14009 cat conftest.err >&5
14010 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14011 (exit $ac_status); } && {
14012 test -z "$ac_c_werror_flag" ||
14013 test ! -s conftest.err
14014 } && test -s conftest$ac_exeext && {
14015 test "$cross_compiling" = yes ||
14016 $as_test_x conftest$ac_exeext
14017 }; then
14018 eval "$as_ac_var=yes"
14019 else
14020 $as_echo "$as_me: failed program was:" >&5
14021 sed 's/^/| /' conftest.$ac_ext >&5
14023 eval "$as_ac_var=no"
14026 rm -rf conftest.dSYM
14027 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14028 conftest$ac_exeext conftest.$ac_ext
14030 ac_res=`eval 'as_val=${'$as_ac_var'}
14031 $as_echo "$as_val"'`
14032 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14033 $as_echo "$ac_res" >&6; }
14034 if test `eval 'as_val=${'$as_ac_var'}
14035 $as_echo "$as_val"'` = yes; then
14036 cat >>confdefs.h <<_ACEOF
14037 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14038 _ACEOF
14041 done
14044 { $as_echo "$as_me:$LINENO: checking for st_blksize" >&5
14045 $as_echo_n "checking for st_blksize... " >&6; }
14046 cat >conftest.$ac_ext <<_ACEOF
14047 /* confdefs.h. */
14048 _ACEOF
14049 cat confdefs.h >>conftest.$ac_ext
14050 cat >>conftest.$ac_ext <<_ACEOF
14051 /* end confdefs.h. */
14052 #include <sys/types.h>
14053 #include <sys/stat.h>
14055 main ()
14057 struct stat st;
14058 int n;
14060 stat("/", &st);
14061 n = (int)st.st_blksize;
14063 return 0;
14065 _ACEOF
14066 rm -f conftest.$ac_objext
14067 if { (ac_try="$ac_compile"
14068 case "(($ac_try" in
14069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14070 *) ac_try_echo=$ac_try;;
14071 esac
14072 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14073 $as_echo "$ac_try_echo") >&5
14074 (eval "$ac_compile") 2>conftest.er1
14075 ac_status=$?
14076 grep -v '^ *+' conftest.er1 >conftest.err
14077 rm -f conftest.er1
14078 cat conftest.err >&5
14079 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14080 (exit $ac_status); } && {
14081 test -z "$ac_c_werror_flag" ||
14082 test ! -s conftest.err
14083 } && test -s conftest.$ac_objext; then
14084 { $as_echo "$as_me:$LINENO: result: yes" >&5
14085 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14086 #define HAVE_ST_BLKSIZE 1
14087 _ACEOF
14089 else
14090 $as_echo "$as_me: failed program was:" >&5
14091 sed 's/^/| /' conftest.$ac_ext >&5
14093 { $as_echo "$as_me:$LINENO: result: no" >&5
14094 $as_echo "no" >&6; }
14097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14099 { $as_echo "$as_me:$LINENO: checking whether stat() ignores a trailing slash" >&5
14100 $as_echo_n "checking whether stat() ignores a trailing slash... " >&6; }
14101 if test "${vim_cv_stat_ignores_slash+set}" = set; then
14102 $as_echo_n "(cached) " >&6
14103 else
14105 if test "$cross_compiling" = yes; then
14107 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_stat_ignores_slash'" >&5
14108 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_stat_ignores_slash'" >&2;}
14109 { (exit 1); exit 1; }; }
14111 else
14112 cat >conftest.$ac_ext <<_ACEOF
14114 #include "confdefs.h"
14115 #if STDC_HEADERS
14116 # include <stdlib.h>
14117 # include <stddef.h>
14118 #endif
14119 #include <sys/types.h>
14120 #include <sys/stat.h>
14121 main() {struct stat st; exit(stat("configure/", &st) != 0); }
14123 _ACEOF
14124 rm -f conftest$ac_exeext
14125 if { (ac_try="$ac_link"
14126 case "(($ac_try" in
14127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14128 *) ac_try_echo=$ac_try;;
14129 esac
14130 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14131 $as_echo "$ac_try_echo") >&5
14132 (eval "$ac_link") 2>&5
14133 ac_status=$?
14134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14135 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14136 { (case "(($ac_try" in
14137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14138 *) ac_try_echo=$ac_try;;
14139 esac
14140 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14141 $as_echo "$ac_try_echo") >&5
14142 (eval "$ac_try") 2>&5
14143 ac_status=$?
14144 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14145 (exit $ac_status); }; }; then
14147 vim_cv_stat_ignores_slash=yes
14149 else
14150 $as_echo "$as_me: program exited with status $ac_status" >&5
14151 $as_echo "$as_me: failed program was:" >&5
14152 sed 's/^/| /' conftest.$ac_ext >&5
14154 ( exit $ac_status )
14156 vim_cv_stat_ignores_slash=no
14159 rm -rf conftest.dSYM
14160 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14166 { $as_echo "$as_me:$LINENO: result: $vim_cv_stat_ignores_slash" >&5
14167 $as_echo "$vim_cv_stat_ignores_slash" >&6; }
14169 if test "x$vim_cv_stat_ignores_slash" = "xyes" ; then
14170 cat >>confdefs.h <<\_ACEOF
14171 #define STAT_IGNORES_SLASH 1
14172 _ACEOF
14176 { $as_echo "$as_me:$LINENO: checking for iconv_open()" >&5
14177 $as_echo_n "checking for iconv_open()... " >&6; }
14178 save_LIBS="$LIBS"
14179 LIBS="$LIBS -liconv"
14180 cat >conftest.$ac_ext <<_ACEOF
14181 /* confdefs.h. */
14182 _ACEOF
14183 cat confdefs.h >>conftest.$ac_ext
14184 cat >>conftest.$ac_ext <<_ACEOF
14185 /* end confdefs.h. */
14187 #ifdef HAVE_ICONV_H
14188 # include <iconv.h>
14189 #endif
14192 main ()
14194 iconv_open("fr", "to");
14196 return 0;
14198 _ACEOF
14199 rm -f conftest.$ac_objext conftest$ac_exeext
14200 if { (ac_try="$ac_link"
14201 case "(($ac_try" in
14202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14203 *) ac_try_echo=$ac_try;;
14204 esac
14205 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14206 $as_echo "$ac_try_echo") >&5
14207 (eval "$ac_link") 2>conftest.er1
14208 ac_status=$?
14209 grep -v '^ *+' conftest.er1 >conftest.err
14210 rm -f conftest.er1
14211 cat conftest.err >&5
14212 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14213 (exit $ac_status); } && {
14214 test -z "$ac_c_werror_flag" ||
14215 test ! -s conftest.err
14216 } && test -s conftest$ac_exeext && {
14217 test "$cross_compiling" = yes ||
14218 $as_test_x conftest$ac_exeext
14219 }; then
14220 { $as_echo "$as_me:$LINENO: result: yes; with -liconv" >&5
14221 $as_echo "yes; with -liconv" >&6; }; cat >>confdefs.h <<\_ACEOF
14222 #define HAVE_ICONV 1
14223 _ACEOF
14225 else
14226 $as_echo "$as_me: failed program was:" >&5
14227 sed 's/^/| /' conftest.$ac_ext >&5
14229 LIBS="$save_LIBS"
14230 cat >conftest.$ac_ext <<_ACEOF
14231 /* confdefs.h. */
14232 _ACEOF
14233 cat confdefs.h >>conftest.$ac_ext
14234 cat >>conftest.$ac_ext <<_ACEOF
14235 /* end confdefs.h. */
14237 #ifdef HAVE_ICONV_H
14238 # include <iconv.h>
14239 #endif
14242 main ()
14244 iconv_open("fr", "to");
14246 return 0;
14248 _ACEOF
14249 rm -f conftest.$ac_objext conftest$ac_exeext
14250 if { (ac_try="$ac_link"
14251 case "(($ac_try" in
14252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14253 *) ac_try_echo=$ac_try;;
14254 esac
14255 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14256 $as_echo "$ac_try_echo") >&5
14257 (eval "$ac_link") 2>conftest.er1
14258 ac_status=$?
14259 grep -v '^ *+' conftest.er1 >conftest.err
14260 rm -f conftest.er1
14261 cat conftest.err >&5
14262 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14263 (exit $ac_status); } && {
14264 test -z "$ac_c_werror_flag" ||
14265 test ! -s conftest.err
14266 } && test -s conftest$ac_exeext && {
14267 test "$cross_compiling" = yes ||
14268 $as_test_x conftest$ac_exeext
14269 }; then
14270 { $as_echo "$as_me:$LINENO: result: yes" >&5
14271 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14272 #define HAVE_ICONV 1
14273 _ACEOF
14275 else
14276 $as_echo "$as_me: failed program was:" >&5
14277 sed 's/^/| /' conftest.$ac_ext >&5
14279 { $as_echo "$as_me:$LINENO: result: no" >&5
14280 $as_echo "no" >&6; }
14283 rm -rf conftest.dSYM
14284 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14285 conftest$ac_exeext conftest.$ac_ext
14288 rm -rf conftest.dSYM
14289 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14290 conftest$ac_exeext conftest.$ac_ext
14293 { $as_echo "$as_me:$LINENO: checking for nl_langinfo(CODESET)" >&5
14294 $as_echo_n "checking for nl_langinfo(CODESET)... " >&6; }
14295 cat >conftest.$ac_ext <<_ACEOF
14296 /* confdefs.h. */
14297 _ACEOF
14298 cat confdefs.h >>conftest.$ac_ext
14299 cat >>conftest.$ac_ext <<_ACEOF
14300 /* end confdefs.h. */
14302 #ifdef HAVE_LANGINFO_H
14303 # include <langinfo.h>
14304 #endif
14307 main ()
14309 char *cs = nl_langinfo(CODESET);
14311 return 0;
14313 _ACEOF
14314 rm -f conftest.$ac_objext conftest$ac_exeext
14315 if { (ac_try="$ac_link"
14316 case "(($ac_try" in
14317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14318 *) ac_try_echo=$ac_try;;
14319 esac
14320 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14321 $as_echo "$ac_try_echo") >&5
14322 (eval "$ac_link") 2>conftest.er1
14323 ac_status=$?
14324 grep -v '^ *+' conftest.er1 >conftest.err
14325 rm -f conftest.er1
14326 cat conftest.err >&5
14327 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14328 (exit $ac_status); } && {
14329 test -z "$ac_c_werror_flag" ||
14330 test ! -s conftest.err
14331 } && test -s conftest$ac_exeext && {
14332 test "$cross_compiling" = yes ||
14333 $as_test_x conftest$ac_exeext
14334 }; then
14335 { $as_echo "$as_me:$LINENO: result: yes" >&5
14336 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14337 #define HAVE_NL_LANGINFO_CODESET 1
14338 _ACEOF
14340 else
14341 $as_echo "$as_me: failed program was:" >&5
14342 sed 's/^/| /' conftest.$ac_ext >&5
14344 { $as_echo "$as_me:$LINENO: result: no" >&5
14345 $as_echo "no" >&6; }
14348 rm -rf conftest.dSYM
14349 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14350 conftest$ac_exeext conftest.$ac_ext
14353 { $as_echo "$as_me:$LINENO: checking for strtod in -lm" >&5
14354 $as_echo_n "checking for strtod in -lm... " >&6; }
14355 if test "${ac_cv_lib_m_strtod+set}" = set; then
14356 $as_echo_n "(cached) " >&6
14357 else
14358 ac_check_lib_save_LIBS=$LIBS
14359 LIBS="-lm $LIBS"
14360 cat >conftest.$ac_ext <<_ACEOF
14361 /* confdefs.h. */
14362 _ACEOF
14363 cat confdefs.h >>conftest.$ac_ext
14364 cat >>conftest.$ac_ext <<_ACEOF
14365 /* end confdefs.h. */
14367 /* Override any GCC internal prototype to avoid an error.
14368 Use char because int might match the return type of a GCC
14369 builtin and then its argument prototype would still apply. */
14370 #ifdef __cplusplus
14371 extern "C"
14372 #endif
14373 char strtod ();
14375 main ()
14377 return strtod ();
14379 return 0;
14381 _ACEOF
14382 rm -f conftest.$ac_objext conftest$ac_exeext
14383 if { (ac_try="$ac_link"
14384 case "(($ac_try" in
14385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14386 *) ac_try_echo=$ac_try;;
14387 esac
14388 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14389 $as_echo "$ac_try_echo") >&5
14390 (eval "$ac_link") 2>conftest.er1
14391 ac_status=$?
14392 grep -v '^ *+' conftest.er1 >conftest.err
14393 rm -f conftest.er1
14394 cat conftest.err >&5
14395 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14396 (exit $ac_status); } && {
14397 test -z "$ac_c_werror_flag" ||
14398 test ! -s conftest.err
14399 } && test -s conftest$ac_exeext && {
14400 test "$cross_compiling" = yes ||
14401 $as_test_x conftest$ac_exeext
14402 }; then
14403 ac_cv_lib_m_strtod=yes
14404 else
14405 $as_echo "$as_me: failed program was:" >&5
14406 sed 's/^/| /' conftest.$ac_ext >&5
14408 ac_cv_lib_m_strtod=no
14411 rm -rf conftest.dSYM
14412 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14413 conftest$ac_exeext conftest.$ac_ext
14414 LIBS=$ac_check_lib_save_LIBS
14416 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_strtod" >&5
14417 $as_echo "$ac_cv_lib_m_strtod" >&6; }
14418 if test $ac_cv_lib_m_strtod = yes; then
14419 cat >>confdefs.h <<_ACEOF
14420 #define HAVE_LIBM 1
14421 _ACEOF
14423 LIBS="-lm $LIBS"
14427 { $as_echo "$as_me:$LINENO: checking for strtod() and other floating point functions" >&5
14428 $as_echo_n "checking for strtod() and other floating point functions... " >&6; }
14429 cat >conftest.$ac_ext <<_ACEOF
14430 /* confdefs.h. */
14431 _ACEOF
14432 cat confdefs.h >>conftest.$ac_ext
14433 cat >>conftest.$ac_ext <<_ACEOF
14434 /* end confdefs.h. */
14436 #ifdef HAVE_MATH_H
14437 # include <math.h>
14438 #endif
14439 #if STDC_HEADERS
14440 # include <stdlib.h>
14441 # include <stddef.h>
14442 #endif
14445 main ()
14447 char *s; double d;
14448 d = strtod("1.1", &s);
14449 d = fabs(1.11);
14450 d = ceil(1.11);
14451 d = floor(1.11);
14452 d = log10(1.11);
14453 d = pow(1.11, 2.22);
14454 d = sqrt(1.11);
14455 d = sin(1.11);
14456 d = cos(1.11);
14457 d = atan(1.11);
14460 return 0;
14462 _ACEOF
14463 rm -f conftest.$ac_objext conftest$ac_exeext
14464 if { (ac_try="$ac_link"
14465 case "(($ac_try" in
14466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14467 *) ac_try_echo=$ac_try;;
14468 esac
14469 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14470 $as_echo "$ac_try_echo") >&5
14471 (eval "$ac_link") 2>conftest.er1
14472 ac_status=$?
14473 grep -v '^ *+' conftest.er1 >conftest.err
14474 rm -f conftest.er1
14475 cat conftest.err >&5
14476 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14477 (exit $ac_status); } && {
14478 test -z "$ac_c_werror_flag" ||
14479 test ! -s conftest.err
14480 } && test -s conftest$ac_exeext && {
14481 test "$cross_compiling" = yes ||
14482 $as_test_x conftest$ac_exeext
14483 }; then
14484 { $as_echo "$as_me:$LINENO: result: yes" >&5
14485 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14486 #define HAVE_FLOAT_FUNCS 1
14487 _ACEOF
14489 else
14490 $as_echo "$as_me: failed program was:" >&5
14491 sed 's/^/| /' conftest.$ac_ext >&5
14493 { $as_echo "$as_me:$LINENO: result: no" >&5
14494 $as_echo "no" >&6; }
14497 rm -rf conftest.dSYM
14498 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14499 conftest$ac_exeext conftest.$ac_ext
14501 { $as_echo "$as_me:$LINENO: checking --disable-acl argument" >&5
14502 $as_echo_n "checking --disable-acl argument... " >&6; }
14503 # Check whether --enable-acl was given.
14504 if test "${enable_acl+set}" = set; then
14505 enableval=$enable_acl;
14506 else
14507 enable_acl="yes"
14510 if test "$enable_acl" = "yes"; then
14511 { $as_echo "$as_me:$LINENO: result: no" >&5
14512 $as_echo "no" >&6; }
14513 { $as_echo "$as_me:$LINENO: checking for acl_get_file in -lposix1e" >&5
14514 $as_echo_n "checking for acl_get_file in -lposix1e... " >&6; }
14515 if test "${ac_cv_lib_posix1e_acl_get_file+set}" = set; then
14516 $as_echo_n "(cached) " >&6
14517 else
14518 ac_check_lib_save_LIBS=$LIBS
14519 LIBS="-lposix1e $LIBS"
14520 cat >conftest.$ac_ext <<_ACEOF
14521 /* confdefs.h. */
14522 _ACEOF
14523 cat confdefs.h >>conftest.$ac_ext
14524 cat >>conftest.$ac_ext <<_ACEOF
14525 /* end confdefs.h. */
14527 /* Override any GCC internal prototype to avoid an error.
14528 Use char because int might match the return type of a GCC
14529 builtin and then its argument prototype would still apply. */
14530 #ifdef __cplusplus
14531 extern "C"
14532 #endif
14533 char acl_get_file ();
14535 main ()
14537 return acl_get_file ();
14539 return 0;
14541 _ACEOF
14542 rm -f conftest.$ac_objext conftest$ac_exeext
14543 if { (ac_try="$ac_link"
14544 case "(($ac_try" in
14545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14546 *) ac_try_echo=$ac_try;;
14547 esac
14548 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14549 $as_echo "$ac_try_echo") >&5
14550 (eval "$ac_link") 2>conftest.er1
14551 ac_status=$?
14552 grep -v '^ *+' conftest.er1 >conftest.err
14553 rm -f conftest.er1
14554 cat conftest.err >&5
14555 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14556 (exit $ac_status); } && {
14557 test -z "$ac_c_werror_flag" ||
14558 test ! -s conftest.err
14559 } && test -s conftest$ac_exeext && {
14560 test "$cross_compiling" = yes ||
14561 $as_test_x conftest$ac_exeext
14562 }; then
14563 ac_cv_lib_posix1e_acl_get_file=yes
14564 else
14565 $as_echo "$as_me: failed program was:" >&5
14566 sed 's/^/| /' conftest.$ac_ext >&5
14568 ac_cv_lib_posix1e_acl_get_file=no
14571 rm -rf conftest.dSYM
14572 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14573 conftest$ac_exeext conftest.$ac_ext
14574 LIBS=$ac_check_lib_save_LIBS
14576 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix1e_acl_get_file" >&5
14577 $as_echo "$ac_cv_lib_posix1e_acl_get_file" >&6; }
14578 if test $ac_cv_lib_posix1e_acl_get_file = yes; then
14579 LIBS="$LIBS -lposix1e"
14580 else
14581 { $as_echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
14582 $as_echo_n "checking for acl_get_file in -lacl... " >&6; }
14583 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
14584 $as_echo_n "(cached) " >&6
14585 else
14586 ac_check_lib_save_LIBS=$LIBS
14587 LIBS="-lacl $LIBS"
14588 cat >conftest.$ac_ext <<_ACEOF
14589 /* confdefs.h. */
14590 _ACEOF
14591 cat confdefs.h >>conftest.$ac_ext
14592 cat >>conftest.$ac_ext <<_ACEOF
14593 /* end confdefs.h. */
14595 /* Override any GCC internal prototype to avoid an error.
14596 Use char because int might match the return type of a GCC
14597 builtin and then its argument prototype would still apply. */
14598 #ifdef __cplusplus
14599 extern "C"
14600 #endif
14601 char acl_get_file ();
14603 main ()
14605 return acl_get_file ();
14607 return 0;
14609 _ACEOF
14610 rm -f conftest.$ac_objext conftest$ac_exeext
14611 if { (ac_try="$ac_link"
14612 case "(($ac_try" in
14613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14614 *) ac_try_echo=$ac_try;;
14615 esac
14616 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14617 $as_echo "$ac_try_echo") >&5
14618 (eval "$ac_link") 2>conftest.er1
14619 ac_status=$?
14620 grep -v '^ *+' conftest.er1 >conftest.err
14621 rm -f conftest.er1
14622 cat conftest.err >&5
14623 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14624 (exit $ac_status); } && {
14625 test -z "$ac_c_werror_flag" ||
14626 test ! -s conftest.err
14627 } && test -s conftest$ac_exeext && {
14628 test "$cross_compiling" = yes ||
14629 $as_test_x conftest$ac_exeext
14630 }; then
14631 ac_cv_lib_acl_acl_get_file=yes
14632 else
14633 $as_echo "$as_me: failed program was:" >&5
14634 sed 's/^/| /' conftest.$ac_ext >&5
14636 ac_cv_lib_acl_acl_get_file=no
14639 rm -rf conftest.dSYM
14640 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14641 conftest$ac_exeext conftest.$ac_ext
14642 LIBS=$ac_check_lib_save_LIBS
14644 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
14645 $as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
14646 if test $ac_cv_lib_acl_acl_get_file = yes; then
14647 LIBS="$LIBS -lacl"
14648 { $as_echo "$as_me:$LINENO: checking for fgetxattr in -lattr" >&5
14649 $as_echo_n "checking for fgetxattr in -lattr... " >&6; }
14650 if test "${ac_cv_lib_attr_fgetxattr+set}" = set; then
14651 $as_echo_n "(cached) " >&6
14652 else
14653 ac_check_lib_save_LIBS=$LIBS
14654 LIBS="-lattr $LIBS"
14655 cat >conftest.$ac_ext <<_ACEOF
14656 /* confdefs.h. */
14657 _ACEOF
14658 cat confdefs.h >>conftest.$ac_ext
14659 cat >>conftest.$ac_ext <<_ACEOF
14660 /* end confdefs.h. */
14662 /* Override any GCC internal prototype to avoid an error.
14663 Use char because int might match the return type of a GCC
14664 builtin and then its argument prototype would still apply. */
14665 #ifdef __cplusplus
14666 extern "C"
14667 #endif
14668 char fgetxattr ();
14670 main ()
14672 return fgetxattr ();
14674 return 0;
14676 _ACEOF
14677 rm -f conftest.$ac_objext conftest$ac_exeext
14678 if { (ac_try="$ac_link"
14679 case "(($ac_try" in
14680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14681 *) ac_try_echo=$ac_try;;
14682 esac
14683 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14684 $as_echo "$ac_try_echo") >&5
14685 (eval "$ac_link") 2>conftest.er1
14686 ac_status=$?
14687 grep -v '^ *+' conftest.er1 >conftest.err
14688 rm -f conftest.er1
14689 cat conftest.err >&5
14690 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14691 (exit $ac_status); } && {
14692 test -z "$ac_c_werror_flag" ||
14693 test ! -s conftest.err
14694 } && test -s conftest$ac_exeext && {
14695 test "$cross_compiling" = yes ||
14696 $as_test_x conftest$ac_exeext
14697 }; then
14698 ac_cv_lib_attr_fgetxattr=yes
14699 else
14700 $as_echo "$as_me: failed program was:" >&5
14701 sed 's/^/| /' conftest.$ac_ext >&5
14703 ac_cv_lib_attr_fgetxattr=no
14706 rm -rf conftest.dSYM
14707 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14708 conftest$ac_exeext conftest.$ac_ext
14709 LIBS=$ac_check_lib_save_LIBS
14711 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_attr_fgetxattr" >&5
14712 $as_echo "$ac_cv_lib_attr_fgetxattr" >&6; }
14713 if test $ac_cv_lib_attr_fgetxattr = yes; then
14714 LIBS="$LIBS -lattr"
14722 { $as_echo "$as_me:$LINENO: checking for POSIX ACL support" >&5
14723 $as_echo_n "checking for POSIX ACL support... " >&6; }
14724 cat >conftest.$ac_ext <<_ACEOF
14725 /* confdefs.h. */
14726 _ACEOF
14727 cat confdefs.h >>conftest.$ac_ext
14728 cat >>conftest.$ac_ext <<_ACEOF
14729 /* end confdefs.h. */
14731 #include <sys/types.h>
14732 #ifdef HAVE_SYS_ACL_H
14733 # include <sys/acl.h>
14734 #endif
14735 acl_t acl;
14737 main ()
14739 acl = acl_get_file("foo", ACL_TYPE_ACCESS);
14740 acl_set_file("foo", ACL_TYPE_ACCESS, acl);
14741 acl_free(acl);
14743 return 0;
14745 _ACEOF
14746 rm -f conftest.$ac_objext conftest$ac_exeext
14747 if { (ac_try="$ac_link"
14748 case "(($ac_try" in
14749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14750 *) ac_try_echo=$ac_try;;
14751 esac
14752 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14753 $as_echo "$ac_try_echo") >&5
14754 (eval "$ac_link") 2>conftest.er1
14755 ac_status=$?
14756 grep -v '^ *+' conftest.er1 >conftest.err
14757 rm -f conftest.er1
14758 cat conftest.err >&5
14759 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14760 (exit $ac_status); } && {
14761 test -z "$ac_c_werror_flag" ||
14762 test ! -s conftest.err
14763 } && test -s conftest$ac_exeext && {
14764 test "$cross_compiling" = yes ||
14765 $as_test_x conftest$ac_exeext
14766 }; then
14767 { $as_echo "$as_me:$LINENO: result: yes" >&5
14768 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14769 #define HAVE_POSIX_ACL 1
14770 _ACEOF
14772 else
14773 $as_echo "$as_me: failed program was:" >&5
14774 sed 's/^/| /' conftest.$ac_ext >&5
14776 { $as_echo "$as_me:$LINENO: result: no" >&5
14777 $as_echo "no" >&6; }
14780 rm -rf conftest.dSYM
14781 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14782 conftest$ac_exeext conftest.$ac_ext
14784 { $as_echo "$as_me:$LINENO: checking for Solaris ACL support" >&5
14785 $as_echo_n "checking for Solaris ACL support... " >&6; }
14786 cat >conftest.$ac_ext <<_ACEOF
14787 /* confdefs.h. */
14788 _ACEOF
14789 cat confdefs.h >>conftest.$ac_ext
14790 cat >>conftest.$ac_ext <<_ACEOF
14791 /* end confdefs.h. */
14793 #ifdef HAVE_SYS_ACL_H
14794 # include <sys/acl.h>
14795 #endif
14797 main ()
14799 acl("foo", GETACLCNT, 0, NULL);
14802 return 0;
14804 _ACEOF
14805 rm -f conftest.$ac_objext conftest$ac_exeext
14806 if { (ac_try="$ac_link"
14807 case "(($ac_try" in
14808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14809 *) ac_try_echo=$ac_try;;
14810 esac
14811 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14812 $as_echo "$ac_try_echo") >&5
14813 (eval "$ac_link") 2>conftest.er1
14814 ac_status=$?
14815 grep -v '^ *+' conftest.er1 >conftest.err
14816 rm -f conftest.er1
14817 cat conftest.err >&5
14818 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14819 (exit $ac_status); } && {
14820 test -z "$ac_c_werror_flag" ||
14821 test ! -s conftest.err
14822 } && test -s conftest$ac_exeext && {
14823 test "$cross_compiling" = yes ||
14824 $as_test_x conftest$ac_exeext
14825 }; then
14826 { $as_echo "$as_me:$LINENO: result: yes" >&5
14827 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14828 #define HAVE_SOLARIS_ACL 1
14829 _ACEOF
14831 else
14832 $as_echo "$as_me: failed program was:" >&5
14833 sed 's/^/| /' conftest.$ac_ext >&5
14835 { $as_echo "$as_me:$LINENO: result: no" >&5
14836 $as_echo "no" >&6; }
14839 rm -rf conftest.dSYM
14840 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14841 conftest$ac_exeext conftest.$ac_ext
14843 { $as_echo "$as_me:$LINENO: checking for AIX ACL support" >&5
14844 $as_echo_n "checking for AIX ACL support... " >&6; }
14845 cat >conftest.$ac_ext <<_ACEOF
14846 /* confdefs.h. */
14847 _ACEOF
14848 cat confdefs.h >>conftest.$ac_ext
14849 cat >>conftest.$ac_ext <<_ACEOF
14850 /* end confdefs.h. */
14852 #if STDC_HEADERS
14853 # include <stdlib.h>
14854 # include <stddef.h>
14855 #endif
14856 #ifdef HAVE_SYS_ACL_H
14857 # include <sys/acl.h>
14858 #endif
14859 #ifdef HAVE_SYS_ACCESS_H
14860 # include <sys/access.h>
14861 #endif
14862 #define _ALL_SOURCE
14864 #include <sys/stat.h>
14866 int aclsize;
14867 struct acl *aclent;
14869 main ()
14871 aclsize = sizeof(struct acl);
14872 aclent = (void *)malloc(aclsize);
14873 statacl("foo", STX_NORMAL, aclent, aclsize);
14876 return 0;
14878 _ACEOF
14879 rm -f conftest.$ac_objext conftest$ac_exeext
14880 if { (ac_try="$ac_link"
14881 case "(($ac_try" in
14882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14883 *) ac_try_echo=$ac_try;;
14884 esac
14885 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14886 $as_echo "$ac_try_echo") >&5
14887 (eval "$ac_link") 2>conftest.er1
14888 ac_status=$?
14889 grep -v '^ *+' conftest.er1 >conftest.err
14890 rm -f conftest.er1
14891 cat conftest.err >&5
14892 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14893 (exit $ac_status); } && {
14894 test -z "$ac_c_werror_flag" ||
14895 test ! -s conftest.err
14896 } && test -s conftest$ac_exeext && {
14897 test "$cross_compiling" = yes ||
14898 $as_test_x conftest$ac_exeext
14899 }; then
14900 { $as_echo "$as_me:$LINENO: result: yes" >&5
14901 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14902 #define HAVE_AIX_ACL 1
14903 _ACEOF
14905 else
14906 $as_echo "$as_me: failed program was:" >&5
14907 sed 's/^/| /' conftest.$ac_ext >&5
14909 { $as_echo "$as_me:$LINENO: result: no" >&5
14910 $as_echo "no" >&6; }
14913 rm -rf conftest.dSYM
14914 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14915 conftest$ac_exeext conftest.$ac_ext
14916 else
14917 { $as_echo "$as_me:$LINENO: result: yes" >&5
14918 $as_echo "yes" >&6; }
14921 { $as_echo "$as_me:$LINENO: checking --disable-gpm argument" >&5
14922 $as_echo_n "checking --disable-gpm argument... " >&6; }
14923 # Check whether --enable-gpm was given.
14924 if test "${enable_gpm+set}" = set; then
14925 enableval=$enable_gpm;
14926 else
14927 enable_gpm="yes"
14931 if test "$enable_gpm" = "yes"; then
14932 { $as_echo "$as_me:$LINENO: result: no" >&5
14933 $as_echo "no" >&6; }
14934 { $as_echo "$as_me:$LINENO: checking for gpm" >&5
14935 $as_echo_n "checking for gpm... " >&6; }
14936 if test "${vi_cv_have_gpm+set}" = set; then
14937 $as_echo_n "(cached) " >&6
14938 else
14939 olibs="$LIBS" ; LIBS="-lgpm"
14940 cat >conftest.$ac_ext <<_ACEOF
14941 /* confdefs.h. */
14942 _ACEOF
14943 cat confdefs.h >>conftest.$ac_ext
14944 cat >>conftest.$ac_ext <<_ACEOF
14945 /* end confdefs.h. */
14946 #include <gpm.h>
14947 #include <linux/keyboard.h>
14949 main ()
14951 Gpm_GetLibVersion(NULL);
14953 return 0;
14955 _ACEOF
14956 rm -f conftest.$ac_objext conftest$ac_exeext
14957 if { (ac_try="$ac_link"
14958 case "(($ac_try" in
14959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14960 *) ac_try_echo=$ac_try;;
14961 esac
14962 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14963 $as_echo "$ac_try_echo") >&5
14964 (eval "$ac_link") 2>conftest.er1
14965 ac_status=$?
14966 grep -v '^ *+' conftest.er1 >conftest.err
14967 rm -f conftest.er1
14968 cat conftest.err >&5
14969 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14970 (exit $ac_status); } && {
14971 test -z "$ac_c_werror_flag" ||
14972 test ! -s conftest.err
14973 } && test -s conftest$ac_exeext && {
14974 test "$cross_compiling" = yes ||
14975 $as_test_x conftest$ac_exeext
14976 }; then
14977 vi_cv_have_gpm=yes
14978 else
14979 $as_echo "$as_me: failed program was:" >&5
14980 sed 's/^/| /' conftest.$ac_ext >&5
14982 vi_cv_have_gpm=no
14985 rm -rf conftest.dSYM
14986 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14987 conftest$ac_exeext conftest.$ac_ext
14988 LIBS="$olibs"
14991 { $as_echo "$as_me:$LINENO: result: $vi_cv_have_gpm" >&5
14992 $as_echo "$vi_cv_have_gpm" >&6; }
14993 if test $vi_cv_have_gpm = yes; then
14994 LIBS="$LIBS -lgpm"
14995 cat >>confdefs.h <<\_ACEOF
14996 #define HAVE_GPM 1
14997 _ACEOF
15000 else
15001 { $as_echo "$as_me:$LINENO: result: yes" >&5
15002 $as_echo "yes" >&6; }
15005 { $as_echo "$as_me:$LINENO: checking --disable-sysmouse argument" >&5
15006 $as_echo_n "checking --disable-sysmouse argument... " >&6; }
15007 # Check whether --enable-sysmouse was given.
15008 if test "${enable_sysmouse+set}" = set; then
15009 enableval=$enable_sysmouse;
15010 else
15011 enable_sysmouse="yes"
15015 if test "$enable_sysmouse" = "yes"; then
15016 { $as_echo "$as_me:$LINENO: result: no" >&5
15017 $as_echo "no" >&6; }
15018 { $as_echo "$as_me:$LINENO: checking for sysmouse" >&5
15019 $as_echo_n "checking for sysmouse... " >&6; }
15020 if test "${vi_cv_have_sysmouse+set}" = set; then
15021 $as_echo_n "(cached) " >&6
15022 else
15023 cat >conftest.$ac_ext <<_ACEOF
15024 /* confdefs.h. */
15025 _ACEOF
15026 cat confdefs.h >>conftest.$ac_ext
15027 cat >>conftest.$ac_ext <<_ACEOF
15028 /* end confdefs.h. */
15029 #include <sys/consio.h>
15030 #include <signal.h>
15031 #include <sys/fbio.h>
15033 main ()
15035 struct mouse_info mouse;
15036 mouse.operation = MOUSE_MODE;
15037 mouse.operation = MOUSE_SHOW;
15038 mouse.u.mode.mode = 0;
15039 mouse.u.mode.signal = SIGUSR2;
15041 return 0;
15043 _ACEOF
15044 rm -f conftest.$ac_objext conftest$ac_exeext
15045 if { (ac_try="$ac_link"
15046 case "(($ac_try" in
15047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15048 *) ac_try_echo=$ac_try;;
15049 esac
15050 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15051 $as_echo "$ac_try_echo") >&5
15052 (eval "$ac_link") 2>conftest.er1
15053 ac_status=$?
15054 grep -v '^ *+' conftest.er1 >conftest.err
15055 rm -f conftest.er1
15056 cat conftest.err >&5
15057 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15058 (exit $ac_status); } && {
15059 test -z "$ac_c_werror_flag" ||
15060 test ! -s conftest.err
15061 } && test -s conftest$ac_exeext && {
15062 test "$cross_compiling" = yes ||
15063 $as_test_x conftest$ac_exeext
15064 }; then
15065 vi_cv_have_sysmouse=yes
15066 else
15067 $as_echo "$as_me: failed program was:" >&5
15068 sed 's/^/| /' conftest.$ac_ext >&5
15070 vi_cv_have_sysmouse=no
15073 rm -rf conftest.dSYM
15074 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15075 conftest$ac_exeext conftest.$ac_ext
15078 { $as_echo "$as_me:$LINENO: result: $vi_cv_have_sysmouse" >&5
15079 $as_echo "$vi_cv_have_sysmouse" >&6; }
15080 if test $vi_cv_have_sysmouse = yes; then
15081 cat >>confdefs.h <<\_ACEOF
15082 #define HAVE_SYSMOUSE 1
15083 _ACEOF
15086 else
15087 { $as_echo "$as_me:$LINENO: result: yes" >&5
15088 $as_echo "yes" >&6; }
15091 { $as_echo "$as_me:$LINENO: checking for rename" >&5
15092 $as_echo_n "checking for rename... " >&6; }
15093 cat >conftest.$ac_ext <<_ACEOF
15094 /* confdefs.h. */
15095 _ACEOF
15096 cat confdefs.h >>conftest.$ac_ext
15097 cat >>conftest.$ac_ext <<_ACEOF
15098 /* end confdefs.h. */
15099 #include <stdio.h>
15101 main ()
15103 rename("this", "that")
15105 return 0;
15107 _ACEOF
15108 rm -f conftest.$ac_objext conftest$ac_exeext
15109 if { (ac_try="$ac_link"
15110 case "(($ac_try" in
15111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15112 *) ac_try_echo=$ac_try;;
15113 esac
15114 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15115 $as_echo "$ac_try_echo") >&5
15116 (eval "$ac_link") 2>conftest.er1
15117 ac_status=$?
15118 grep -v '^ *+' conftest.er1 >conftest.err
15119 rm -f conftest.er1
15120 cat conftest.err >&5
15121 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15122 (exit $ac_status); } && {
15123 test -z "$ac_c_werror_flag" ||
15124 test ! -s conftest.err
15125 } && test -s conftest$ac_exeext && {
15126 test "$cross_compiling" = yes ||
15127 $as_test_x conftest$ac_exeext
15128 }; then
15129 { $as_echo "$as_me:$LINENO: result: yes" >&5
15130 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15131 #define HAVE_RENAME 1
15132 _ACEOF
15134 else
15135 $as_echo "$as_me: failed program was:" >&5
15136 sed 's/^/| /' conftest.$ac_ext >&5
15138 { $as_echo "$as_me:$LINENO: result: no" >&5
15139 $as_echo "no" >&6; }
15142 rm -rf conftest.dSYM
15143 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15144 conftest$ac_exeext conftest.$ac_ext
15146 { $as_echo "$as_me:$LINENO: checking for sysctl" >&5
15147 $as_echo_n "checking for sysctl... " >&6; }
15148 cat >conftest.$ac_ext <<_ACEOF
15149 /* confdefs.h. */
15150 _ACEOF
15151 cat confdefs.h >>conftest.$ac_ext
15152 cat >>conftest.$ac_ext <<_ACEOF
15153 /* end confdefs.h. */
15154 #include <sys/types.h>
15155 #include <sys/sysctl.h>
15157 main ()
15159 int mib[2], r;
15160 size_t len;
15162 mib[0] = CTL_HW;
15163 mib[1] = HW_USERMEM;
15164 len = sizeof(r);
15165 (void)sysctl(mib, 2, &r, &len, (void *)0, (size_t)0);
15168 return 0;
15170 _ACEOF
15171 rm -f conftest.$ac_objext
15172 if { (ac_try="$ac_compile"
15173 case "(($ac_try" in
15174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15175 *) ac_try_echo=$ac_try;;
15176 esac
15177 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15178 $as_echo "$ac_try_echo") >&5
15179 (eval "$ac_compile") 2>conftest.er1
15180 ac_status=$?
15181 grep -v '^ *+' conftest.er1 >conftest.err
15182 rm -f conftest.er1
15183 cat conftest.err >&5
15184 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15185 (exit $ac_status); } && {
15186 test -z "$ac_c_werror_flag" ||
15187 test ! -s conftest.err
15188 } && test -s conftest.$ac_objext; then
15189 { $as_echo "$as_me:$LINENO: result: yes" >&5
15190 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15191 #define HAVE_SYSCTL 1
15192 _ACEOF
15194 else
15195 $as_echo "$as_me: failed program was:" >&5
15196 sed 's/^/| /' conftest.$ac_ext >&5
15198 { $as_echo "$as_me:$LINENO: result: not usable" >&5
15199 $as_echo "not usable" >&6; }
15202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15204 { $as_echo "$as_me:$LINENO: checking for sysinfo" >&5
15205 $as_echo_n "checking for sysinfo... " >&6; }
15206 cat >conftest.$ac_ext <<_ACEOF
15207 /* confdefs.h. */
15208 _ACEOF
15209 cat confdefs.h >>conftest.$ac_ext
15210 cat >>conftest.$ac_ext <<_ACEOF
15211 /* end confdefs.h. */
15212 #include <sys/types.h>
15213 #include <sys/sysinfo.h>
15215 main ()
15217 struct sysinfo sinfo;
15218 int t;
15220 (void)sysinfo(&sinfo);
15221 t = sinfo.totalram;
15224 return 0;
15226 _ACEOF
15227 rm -f conftest.$ac_objext
15228 if { (ac_try="$ac_compile"
15229 case "(($ac_try" in
15230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15231 *) ac_try_echo=$ac_try;;
15232 esac
15233 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15234 $as_echo "$ac_try_echo") >&5
15235 (eval "$ac_compile") 2>conftest.er1
15236 ac_status=$?
15237 grep -v '^ *+' conftest.er1 >conftest.err
15238 rm -f conftest.er1
15239 cat conftest.err >&5
15240 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15241 (exit $ac_status); } && {
15242 test -z "$ac_c_werror_flag" ||
15243 test ! -s conftest.err
15244 } && test -s conftest.$ac_objext; then
15245 { $as_echo "$as_me:$LINENO: result: yes" >&5
15246 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15247 #define HAVE_SYSINFO 1
15248 _ACEOF
15250 else
15251 $as_echo "$as_me: failed program was:" >&5
15252 sed 's/^/| /' conftest.$ac_ext >&5
15254 { $as_echo "$as_me:$LINENO: result: not usable" >&5
15255 $as_echo "not usable" >&6; }
15258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15260 { $as_echo "$as_me:$LINENO: checking for sysinfo.mem_unit" >&5
15261 $as_echo_n "checking for sysinfo.mem_unit... " >&6; }
15262 cat >conftest.$ac_ext <<_ACEOF
15263 /* confdefs.h. */
15264 _ACEOF
15265 cat confdefs.h >>conftest.$ac_ext
15266 cat >>conftest.$ac_ext <<_ACEOF
15267 /* end confdefs.h. */
15268 #include <sys/types.h>
15269 #include <sys/sysinfo.h>
15271 main ()
15273 struct sysinfo sinfo;
15274 sinfo.mem_unit = 1;
15277 return 0;
15279 _ACEOF
15280 rm -f conftest.$ac_objext
15281 if { (ac_try="$ac_compile"
15282 case "(($ac_try" in
15283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15284 *) ac_try_echo=$ac_try;;
15285 esac
15286 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15287 $as_echo "$ac_try_echo") >&5
15288 (eval "$ac_compile") 2>conftest.er1
15289 ac_status=$?
15290 grep -v '^ *+' conftest.er1 >conftest.err
15291 rm -f conftest.er1
15292 cat conftest.err >&5
15293 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15294 (exit $ac_status); } && {
15295 test -z "$ac_c_werror_flag" ||
15296 test ! -s conftest.err
15297 } && test -s conftest.$ac_objext; then
15298 { $as_echo "$as_me:$LINENO: result: yes" >&5
15299 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15300 #define HAVE_SYSINFO_MEM_UNIT 1
15301 _ACEOF
15303 else
15304 $as_echo "$as_me: failed program was:" >&5
15305 sed 's/^/| /' conftest.$ac_ext >&5
15307 { $as_echo "$as_me:$LINENO: result: no" >&5
15308 $as_echo "no" >&6; }
15311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15313 { $as_echo "$as_me:$LINENO: checking for sysconf" >&5
15314 $as_echo_n "checking for sysconf... " >&6; }
15315 cat >conftest.$ac_ext <<_ACEOF
15316 /* confdefs.h. */
15317 _ACEOF
15318 cat confdefs.h >>conftest.$ac_ext
15319 cat >>conftest.$ac_ext <<_ACEOF
15320 /* end confdefs.h. */
15321 #include <unistd.h>
15323 main ()
15325 (void)sysconf(_SC_PAGESIZE);
15326 (void)sysconf(_SC_PHYS_PAGES);
15329 return 0;
15331 _ACEOF
15332 rm -f conftest.$ac_objext
15333 if { (ac_try="$ac_compile"
15334 case "(($ac_try" in
15335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15336 *) ac_try_echo=$ac_try;;
15337 esac
15338 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15339 $as_echo "$ac_try_echo") >&5
15340 (eval "$ac_compile") 2>conftest.er1
15341 ac_status=$?
15342 grep -v '^ *+' conftest.er1 >conftest.err
15343 rm -f conftest.er1
15344 cat conftest.err >&5
15345 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15346 (exit $ac_status); } && {
15347 test -z "$ac_c_werror_flag" ||
15348 test ! -s conftest.err
15349 } && test -s conftest.$ac_objext; then
15350 { $as_echo "$as_me:$LINENO: result: yes" >&5
15351 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15352 #define HAVE_SYSCONF 1
15353 _ACEOF
15355 else
15356 $as_echo "$as_me: failed program was:" >&5
15357 sed 's/^/| /' conftest.$ac_ext >&5
15359 { $as_echo "$as_me:$LINENO: result: not usable" >&5
15360 $as_echo "not usable" >&6; }
15363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15366 { $as_echo "$as_me:$LINENO: checking size of int" >&5
15367 $as_echo_n "checking size of int... " >&6; }
15368 if test "${ac_cv_sizeof_int+set}" = set; then
15369 $as_echo_n "(cached) " >&6
15370 else
15371 if test "$cross_compiling" = yes; then
15372 { { $as_echo "$as_me:$LINENO: error: failed to compile test program" >&5
15373 $as_echo "$as_me: error: failed to compile test program" >&2;}
15374 { (exit 1); exit 1; }; }
15375 else
15376 cat >conftest.$ac_ext <<_ACEOF
15377 /* confdefs.h. */
15378 _ACEOF
15379 cat confdefs.h >>conftest.$ac_ext
15380 cat >>conftest.$ac_ext <<_ACEOF
15381 /* end confdefs.h. */
15383 #include <stdio.h>
15384 #if STDC_HEADERS
15385 # include <stdlib.h>
15386 # include <stddef.h>
15387 #endif
15388 main()
15390 FILE *f=fopen("conftestval", "w");
15391 if (!f) exit(1);
15392 fprintf(f, "%d\n", (int)sizeof(int));
15393 exit(0);
15395 _ACEOF
15396 rm -f conftest$ac_exeext
15397 if { (ac_try="$ac_link"
15398 case "(($ac_try" in
15399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15400 *) ac_try_echo=$ac_try;;
15401 esac
15402 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15403 $as_echo "$ac_try_echo") >&5
15404 (eval "$ac_link") 2>&5
15405 ac_status=$?
15406 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15407 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15408 { (case "(($ac_try" in
15409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15410 *) ac_try_echo=$ac_try;;
15411 esac
15412 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15413 $as_echo "$ac_try_echo") >&5
15414 (eval "$ac_try") 2>&5
15415 ac_status=$?
15416 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15417 (exit $ac_status); }; }; then
15418 ac_cv_sizeof_int=`cat conftestval`
15419 else
15420 $as_echo "$as_me: program exited with status $ac_status" >&5
15421 $as_echo "$as_me: failed program was:" >&5
15422 sed 's/^/| /' conftest.$ac_ext >&5
15424 ( exit $ac_status )
15425 ac_cv_sizeof_int=0
15427 rm -rf conftest.dSYM
15428 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15434 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15435 $as_echo "$ac_cv_sizeof_int" >&6; }
15436 cat >>confdefs.h <<_ACEOF
15437 #define SIZEOF_INT $ac_cv_sizeof_int
15438 _ACEOF
15443 bcopy_test_prog='
15444 #include "confdefs.h"
15445 #ifdef HAVE_STRING_H
15446 # include <string.h>
15447 #endif
15448 #if STDC_HEADERS
15449 # include <stdlib.h>
15450 # include <stddef.h>
15451 #endif
15452 main() {
15453 char buf[10];
15454 strcpy(buf, "abcdefghi");
15455 mch_memmove(buf, buf + 2, 3);
15456 if (strncmp(buf, "ababcf", 6))
15457 exit(1);
15458 strcpy(buf, "abcdefghi");
15459 mch_memmove(buf + 2, buf, 3);
15460 if (strncmp(buf, "cdedef", 6))
15461 exit(1);
15462 exit(0); /* libc version works properly. */
15465 { $as_echo "$as_me:$LINENO: checking whether memmove handles overlaps" >&5
15466 $as_echo_n "checking whether memmove handles overlaps... " >&6; }
15467 if test "${vim_cv_memmove_handles_overlap+set}" = set; then
15468 $as_echo_n "(cached) " >&6
15469 else
15471 if test "$cross_compiling" = yes; then
15473 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_memmove_handles_overlap'" >&5
15474 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_memmove_handles_overlap'" >&2;}
15475 { (exit 1); exit 1; }; }
15477 else
15478 cat >conftest.$ac_ext <<_ACEOF
15479 #define mch_memmove(s,d,l) memmove(d,s,l) $bcopy_test_prog
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
15504 vim_cv_memmove_handles_overlap=yes
15506 else
15507 $as_echo "$as_me: program exited with status $ac_status" >&5
15508 $as_echo "$as_me: failed program was:" >&5
15509 sed 's/^/| /' conftest.$ac_ext >&5
15511 ( exit $ac_status )
15513 vim_cv_memmove_handles_overlap=no
15516 rm -rf conftest.dSYM
15517 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15523 { $as_echo "$as_me:$LINENO: result: $vim_cv_memmove_handles_overlap" >&5
15524 $as_echo "$vim_cv_memmove_handles_overlap" >&6; }
15526 if test "x$vim_cv_memmove_handles_overlap" = "xyes" ; then
15527 cat >>confdefs.h <<\_ACEOF
15528 #define USEMEMMOVE 1
15529 _ACEOF
15531 else
15532 { $as_echo "$as_me:$LINENO: checking whether bcopy handles overlaps" >&5
15533 $as_echo_n "checking whether bcopy handles overlaps... " >&6; }
15534 if test "${vim_cv_bcopy_handles_overlap+set}" = set; then
15535 $as_echo_n "(cached) " >&6
15536 else
15538 if test "$cross_compiling" = yes; then
15540 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_bcopy_handles_overlap'" >&5
15541 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_bcopy_handles_overlap'" >&2;}
15542 { (exit 1); exit 1; }; }
15544 else
15545 cat >conftest.$ac_ext <<_ACEOF
15546 #define mch_bcopy(s,d,l) bcopy(d,s,l) $bcopy_test_prog
15547 _ACEOF
15548 rm -f conftest$ac_exeext
15549 if { (ac_try="$ac_link"
15550 case "(($ac_try" in
15551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15552 *) ac_try_echo=$ac_try;;
15553 esac
15554 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15555 $as_echo "$ac_try_echo") >&5
15556 (eval "$ac_link") 2>&5
15557 ac_status=$?
15558 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15559 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15560 { (case "(($ac_try" in
15561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15562 *) ac_try_echo=$ac_try;;
15563 esac
15564 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15565 $as_echo "$ac_try_echo") >&5
15566 (eval "$ac_try") 2>&5
15567 ac_status=$?
15568 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15569 (exit $ac_status); }; }; then
15571 vim_cv_bcopy_handles_overlap=yes
15573 else
15574 $as_echo "$as_me: program exited with status $ac_status" >&5
15575 $as_echo "$as_me: failed program was:" >&5
15576 sed 's/^/| /' conftest.$ac_ext >&5
15578 ( exit $ac_status )
15580 vim_cv_bcopy_handles_overlap=no
15583 rm -rf conftest.dSYM
15584 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15590 { $as_echo "$as_me:$LINENO: result: $vim_cv_bcopy_handles_overlap" >&5
15591 $as_echo "$vim_cv_bcopy_handles_overlap" >&6; }
15593 if test "x$vim_cv_bcopy_handles_overlap" = "xyes" ; then
15594 cat >>confdefs.h <<\_ACEOF
15595 #define USEBCOPY 1
15596 _ACEOF
15598 else
15599 { $as_echo "$as_me:$LINENO: checking whether memcpy handles overlaps" >&5
15600 $as_echo_n "checking whether memcpy handles overlaps... " >&6; }
15601 if test "${vim_cv_memcpy_handles_overlap+set}" = set; then
15602 $as_echo_n "(cached) " >&6
15603 else
15605 if test "$cross_compiling" = yes; then
15607 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_memcpy_handles_overlap'" >&5
15608 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_memcpy_handles_overlap'" >&2;}
15609 { (exit 1); exit 1; }; }
15611 else
15612 cat >conftest.$ac_ext <<_ACEOF
15613 #define mch_memcpy(s,d,l) memcpy(d,s,l) $bcopy_test_prog
15614 _ACEOF
15615 rm -f conftest$ac_exeext
15616 if { (ac_try="$ac_link"
15617 case "(($ac_try" in
15618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15619 *) ac_try_echo=$ac_try;;
15620 esac
15621 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15622 $as_echo "$ac_try_echo") >&5
15623 (eval "$ac_link") 2>&5
15624 ac_status=$?
15625 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15626 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15627 { (case "(($ac_try" in
15628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15629 *) ac_try_echo=$ac_try;;
15630 esac
15631 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15632 $as_echo "$ac_try_echo") >&5
15633 (eval "$ac_try") 2>&5
15634 ac_status=$?
15635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15636 (exit $ac_status); }; }; then
15638 vim_cv_memcpy_handles_overlap=yes
15640 else
15641 $as_echo "$as_me: program exited with status $ac_status" >&5
15642 $as_echo "$as_me: failed program was:" >&5
15643 sed 's/^/| /' conftest.$ac_ext >&5
15645 ( exit $ac_status )
15647 vim_cv_memcpy_handles_overlap=no
15650 rm -rf conftest.dSYM
15651 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15657 { $as_echo "$as_me:$LINENO: result: $vim_cv_memcpy_handles_overlap" >&5
15658 $as_echo "$vim_cv_memcpy_handles_overlap" >&6; }
15660 if test "x$vim_cv_memcpy_handles_overlap" = "xyes" ; then
15661 cat >>confdefs.h <<\_ACEOF
15662 #define USEMEMCPY 1
15663 _ACEOF
15671 if test "$enable_multibyte" = "yes"; then
15672 cflags_save=$CFLAGS
15673 ldflags_save=$LDFLAGS
15674 if test -n "$x_includes" ; then
15675 CFLAGS="$CFLAGS -I$x_includes"
15676 LDFLAGS="$X_LIBS $LDFLAGS -lX11"
15677 { $as_echo "$as_me:$LINENO: checking whether X_LOCALE needed" >&5
15678 $as_echo_n "checking whether X_LOCALE needed... " >&6; }
15679 cat >conftest.$ac_ext <<_ACEOF
15680 /* confdefs.h. */
15681 _ACEOF
15682 cat confdefs.h >>conftest.$ac_ext
15683 cat >>conftest.$ac_ext <<_ACEOF
15684 /* end confdefs.h. */
15685 #include <X11/Xlocale.h>
15687 main ()
15691 return 0;
15693 _ACEOF
15694 rm -f conftest.$ac_objext
15695 if { (ac_try="$ac_compile"
15696 case "(($ac_try" in
15697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15698 *) ac_try_echo=$ac_try;;
15699 esac
15700 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15701 $as_echo "$ac_try_echo") >&5
15702 (eval "$ac_compile") 2>conftest.er1
15703 ac_status=$?
15704 grep -v '^ *+' conftest.er1 >conftest.err
15705 rm -f conftest.er1
15706 cat conftest.err >&5
15707 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15708 (exit $ac_status); } && {
15709 test -z "$ac_c_werror_flag" ||
15710 test ! -s conftest.err
15711 } && test -s conftest.$ac_objext; then
15712 cat >conftest.$ac_ext <<_ACEOF
15713 /* confdefs.h. */
15714 _ACEOF
15715 cat confdefs.h >>conftest.$ac_ext
15716 cat >>conftest.$ac_ext <<_ACEOF
15717 /* end confdefs.h. */
15719 /* Override any GCC internal prototype to avoid an error.
15720 Use char because int might match the return type of a GCC
15721 builtin and then its argument prototype would still apply. */
15722 #ifdef __cplusplus
15723 extern "C"
15724 #endif
15725 char _Xsetlocale ();
15727 main ()
15729 return _Xsetlocale ();
15731 return 0;
15733 _ACEOF
15734 rm -f conftest.$ac_objext conftest$ac_exeext
15735 if { (ac_try="$ac_link"
15736 case "(($ac_try" in
15737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15738 *) ac_try_echo=$ac_try;;
15739 esac
15740 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15741 $as_echo "$ac_try_echo") >&5
15742 (eval "$ac_link") 2>conftest.er1
15743 ac_status=$?
15744 grep -v '^ *+' conftest.er1 >conftest.err
15745 rm -f conftest.er1
15746 cat conftest.err >&5
15747 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15748 (exit $ac_status); } && {
15749 test -z "$ac_c_werror_flag" ||
15750 test ! -s conftest.err
15751 } && test -s conftest$ac_exeext && {
15752 test "$cross_compiling" = yes ||
15753 $as_test_x conftest$ac_exeext
15754 }; then
15755 { $as_echo "$as_me:$LINENO: result: yes" >&5
15756 $as_echo "yes" >&6; }
15757 cat >>confdefs.h <<\_ACEOF
15758 #define X_LOCALE 1
15759 _ACEOF
15761 else
15762 $as_echo "$as_me: failed program was:" >&5
15763 sed 's/^/| /' conftest.$ac_ext >&5
15765 { $as_echo "$as_me:$LINENO: result: no" >&5
15766 $as_echo "no" >&6; }
15769 rm -rf conftest.dSYM
15770 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15771 conftest$ac_exeext conftest.$ac_ext
15772 else
15773 $as_echo "$as_me: failed program was:" >&5
15774 sed 's/^/| /' conftest.$ac_ext >&5
15776 { $as_echo "$as_me:$LINENO: result: no" >&5
15777 $as_echo "no" >&6; }
15780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15782 CFLAGS=$cflags_save
15783 LDFLAGS=$ldflags_save
15786 { $as_echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
15787 $as_echo_n "checking for _xpg4_setrunelocale in -lxpg4... " >&6; }
15788 if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
15789 $as_echo_n "(cached) " >&6
15790 else
15791 ac_check_lib_save_LIBS=$LIBS
15792 LIBS="-lxpg4 $LIBS"
15793 cat >conftest.$ac_ext <<_ACEOF
15794 /* confdefs.h. */
15795 _ACEOF
15796 cat confdefs.h >>conftest.$ac_ext
15797 cat >>conftest.$ac_ext <<_ACEOF
15798 /* end confdefs.h. */
15800 /* Override any GCC internal prototype to avoid an error.
15801 Use char because int might match the return type of a GCC
15802 builtin and then its argument prototype would still apply. */
15803 #ifdef __cplusplus
15804 extern "C"
15805 #endif
15806 char _xpg4_setrunelocale ();
15808 main ()
15810 return _xpg4_setrunelocale ();
15812 return 0;
15814 _ACEOF
15815 rm -f conftest.$ac_objext conftest$ac_exeext
15816 if { (ac_try="$ac_link"
15817 case "(($ac_try" in
15818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15819 *) ac_try_echo=$ac_try;;
15820 esac
15821 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15822 $as_echo "$ac_try_echo") >&5
15823 (eval "$ac_link") 2>conftest.er1
15824 ac_status=$?
15825 grep -v '^ *+' conftest.er1 >conftest.err
15826 rm -f conftest.er1
15827 cat conftest.err >&5
15828 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15829 (exit $ac_status); } && {
15830 test -z "$ac_c_werror_flag" ||
15831 test ! -s conftest.err
15832 } && test -s conftest$ac_exeext && {
15833 test "$cross_compiling" = yes ||
15834 $as_test_x conftest$ac_exeext
15835 }; then
15836 ac_cv_lib_xpg4__xpg4_setrunelocale=yes
15837 else
15838 $as_echo "$as_me: failed program was:" >&5
15839 sed 's/^/| /' conftest.$ac_ext >&5
15841 ac_cv_lib_xpg4__xpg4_setrunelocale=no
15844 rm -rf conftest.dSYM
15845 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15846 conftest$ac_exeext conftest.$ac_ext
15847 LIBS=$ac_check_lib_save_LIBS
15849 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
15850 $as_echo "$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6; }
15851 if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
15852 LIBS="$LIBS -lxpg4"
15856 { $as_echo "$as_me:$LINENO: checking how to create tags" >&5
15857 $as_echo_n "checking how to create tags... " >&6; }
15858 test -f tags && mv tags tags.save
15859 if (eval ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then
15860 TAGPRG="ctags -I INIT+ --fields=+S"
15861 else
15862 (eval etags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags"
15863 (eval etags -c /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags -c"
15864 (eval ctags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags"
15865 (eval ctags -t /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -t"
15866 (eval ctags -ts /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -ts"
15867 (eval ctags -tvs /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -tvs"
15868 (eval ctags -i+m /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -i+m"
15870 test -f tags.save && mv tags.save tags
15871 { $as_echo "$as_me:$LINENO: result: $TAGPRG" >&5
15872 $as_echo "$TAGPRG" >&6; }
15874 { $as_echo "$as_me:$LINENO: checking how to run man with a section nr" >&5
15875 $as_echo_n "checking how to run man with a section nr... " >&6; }
15876 MANDEF="man"
15877 (eval MANPAGER=cat PAGER=cat man -s 2 read) < /dev/null > /dev/null 2>&5 && MANDEF="man -s"
15878 { $as_echo "$as_me:$LINENO: result: $MANDEF" >&5
15879 $as_echo "$MANDEF" >&6; }
15880 if test "$MANDEF" = "man -s"; then
15881 cat >>confdefs.h <<\_ACEOF
15882 #define USEMAN_S 1
15883 _ACEOF
15887 { $as_echo "$as_me:$LINENO: checking --disable-nls argument" >&5
15888 $as_echo_n "checking --disable-nls argument... " >&6; }
15889 # Check whether --enable-nls was given.
15890 if test "${enable_nls+set}" = set; then
15891 enableval=$enable_nls;
15892 else
15893 enable_nls="yes"
15897 if test "$enable_nls" = "yes"; then
15898 { $as_echo "$as_me:$LINENO: result: no" >&5
15899 $as_echo "no" >&6; }
15901 INSTALL_LANGS=install-languages
15903 INSTALL_TOOL_LANGS=install-tool-languages
15906 # Extract the first word of "msgfmt", so it can be a program name with args.
15907 set dummy msgfmt; ac_word=$2
15908 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
15909 $as_echo_n "checking for $ac_word... " >&6; }
15910 if test "${ac_cv_prog_MSGFMT+set}" = set; then
15911 $as_echo_n "(cached) " >&6
15912 else
15913 if test -n "$MSGFMT"; then
15914 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
15915 else
15916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15917 for as_dir in $PATH
15919 IFS=$as_save_IFS
15920 test -z "$as_dir" && as_dir=.
15921 for ac_exec_ext in '' $ac_executable_extensions; do
15922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15923 ac_cv_prog_MSGFMT="msgfmt"
15924 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15925 break 2
15927 done
15928 done
15929 IFS=$as_save_IFS
15933 MSGFMT=$ac_cv_prog_MSGFMT
15934 if test -n "$MSGFMT"; then
15935 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
15936 $as_echo "$MSGFMT" >&6; }
15937 else
15938 { $as_echo "$as_me:$LINENO: result: no" >&5
15939 $as_echo "no" >&6; }
15943 { $as_echo "$as_me:$LINENO: checking for NLS" >&5
15944 $as_echo_n "checking for NLS... " >&6; }
15945 if test -f po/Makefile; then
15946 have_gettext="no"
15947 if test -n "$MSGFMT"; then
15948 cat >conftest.$ac_ext <<_ACEOF
15949 /* confdefs.h. */
15950 _ACEOF
15951 cat confdefs.h >>conftest.$ac_ext
15952 cat >>conftest.$ac_ext <<_ACEOF
15953 /* end confdefs.h. */
15954 #include <libintl.h>
15956 main ()
15958 gettext("Test");
15960 return 0;
15962 _ACEOF
15963 rm -f conftest.$ac_objext conftest$ac_exeext
15964 if { (ac_try="$ac_link"
15965 case "(($ac_try" in
15966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15967 *) ac_try_echo=$ac_try;;
15968 esac
15969 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15970 $as_echo "$ac_try_echo") >&5
15971 (eval "$ac_link") 2>conftest.er1
15972 ac_status=$?
15973 grep -v '^ *+' conftest.er1 >conftest.err
15974 rm -f conftest.er1
15975 cat conftest.err >&5
15976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15977 (exit $ac_status); } && {
15978 test -z "$ac_c_werror_flag" ||
15979 test ! -s conftest.err
15980 } && test -s conftest$ac_exeext && {
15981 test "$cross_compiling" = yes ||
15982 $as_test_x conftest$ac_exeext
15983 }; then
15984 { $as_echo "$as_me:$LINENO: result: gettext() works" >&5
15985 $as_echo "gettext() works" >&6; }; have_gettext="yes"
15986 else
15987 $as_echo "$as_me: failed program was:" >&5
15988 sed 's/^/| /' conftest.$ac_ext >&5
15990 olibs=$LIBS
15991 LIBS="$LIBS -lintl"
15992 cat >conftest.$ac_ext <<_ACEOF
15993 /* confdefs.h. */
15994 _ACEOF
15995 cat confdefs.h >>conftest.$ac_ext
15996 cat >>conftest.$ac_ext <<_ACEOF
15997 /* end confdefs.h. */
15998 #include <libintl.h>
16000 main ()
16002 gettext("Test");
16004 return 0;
16006 _ACEOF
16007 rm -f conftest.$ac_objext conftest$ac_exeext
16008 if { (ac_try="$ac_link"
16009 case "(($ac_try" in
16010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16011 *) ac_try_echo=$ac_try;;
16012 esac
16013 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16014 $as_echo "$ac_try_echo") >&5
16015 (eval "$ac_link") 2>conftest.er1
16016 ac_status=$?
16017 grep -v '^ *+' conftest.er1 >conftest.err
16018 rm -f conftest.er1
16019 cat conftest.err >&5
16020 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16021 (exit $ac_status); } && {
16022 test -z "$ac_c_werror_flag" ||
16023 test ! -s conftest.err
16024 } && test -s conftest$ac_exeext && {
16025 test "$cross_compiling" = yes ||
16026 $as_test_x conftest$ac_exeext
16027 }; then
16028 { $as_echo "$as_me:$LINENO: result: gettext() works with -lintl" >&5
16029 $as_echo "gettext() works with -lintl" >&6; }; have_gettext="yes"
16030 else
16031 $as_echo "$as_me: failed program was:" >&5
16032 sed 's/^/| /' conftest.$ac_ext >&5
16034 { $as_echo "$as_me:$LINENO: result: gettext() doesn't work" >&5
16035 $as_echo "gettext() doesn't work" >&6; };
16036 LIBS=$olibs
16039 rm -rf conftest.dSYM
16040 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16041 conftest$ac_exeext conftest.$ac_ext
16044 rm -rf conftest.dSYM
16045 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16046 conftest$ac_exeext conftest.$ac_ext
16047 else
16048 { $as_echo "$as_me:$LINENO: result: msgfmt not found - disabled" >&5
16049 $as_echo "msgfmt not found - disabled" >&6; };
16051 if test $have_gettext = "yes"; then
16052 cat >>confdefs.h <<\_ACEOF
16053 #define HAVE_GETTEXT 1
16054 _ACEOF
16056 MAKEMO=yes
16059 for ac_func in bind_textdomain_codeset
16061 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16062 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16063 $as_echo_n "checking for $ac_func... " >&6; }
16064 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16065 $as_echo_n "(cached) " >&6
16066 else
16067 cat >conftest.$ac_ext <<_ACEOF
16068 /* confdefs.h. */
16069 _ACEOF
16070 cat confdefs.h >>conftest.$ac_ext
16071 cat >>conftest.$ac_ext <<_ACEOF
16072 /* end confdefs.h. */
16073 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16074 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16075 #define $ac_func innocuous_$ac_func
16077 /* System header to define __stub macros and hopefully few prototypes,
16078 which can conflict with char $ac_func (); below.
16079 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16080 <limits.h> exists even on freestanding compilers. */
16082 #ifdef __STDC__
16083 # include <limits.h>
16084 #else
16085 # include <assert.h>
16086 #endif
16088 #undef $ac_func
16090 /* Override any GCC internal prototype to avoid an error.
16091 Use char because int might match the return type of a GCC
16092 builtin and then its argument prototype would still apply. */
16093 #ifdef __cplusplus
16094 extern "C"
16095 #endif
16096 char $ac_func ();
16097 /* The GNU C library defines this for functions which it implements
16098 to always fail with ENOSYS. Some functions are actually named
16099 something starting with __ and the normal name is an alias. */
16100 #if defined __stub_$ac_func || defined __stub___$ac_func
16101 choke me
16102 #endif
16105 main ()
16107 return $ac_func ();
16109 return 0;
16111 _ACEOF
16112 rm -f conftest.$ac_objext conftest$ac_exeext
16113 if { (ac_try="$ac_link"
16114 case "(($ac_try" in
16115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16116 *) ac_try_echo=$ac_try;;
16117 esac
16118 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16119 $as_echo "$ac_try_echo") >&5
16120 (eval "$ac_link") 2>conftest.er1
16121 ac_status=$?
16122 grep -v '^ *+' conftest.er1 >conftest.err
16123 rm -f conftest.er1
16124 cat conftest.err >&5
16125 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16126 (exit $ac_status); } && {
16127 test -z "$ac_c_werror_flag" ||
16128 test ! -s conftest.err
16129 } && test -s conftest$ac_exeext && {
16130 test "$cross_compiling" = yes ||
16131 $as_test_x conftest$ac_exeext
16132 }; then
16133 eval "$as_ac_var=yes"
16134 else
16135 $as_echo "$as_me: failed program was:" >&5
16136 sed 's/^/| /' conftest.$ac_ext >&5
16138 eval "$as_ac_var=no"
16141 rm -rf conftest.dSYM
16142 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16143 conftest$ac_exeext conftest.$ac_ext
16145 ac_res=`eval 'as_val=${'$as_ac_var'}
16146 $as_echo "$as_val"'`
16147 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16148 $as_echo "$ac_res" >&6; }
16149 if test `eval 'as_val=${'$as_ac_var'}
16150 $as_echo "$as_val"'` = yes; then
16151 cat >>confdefs.h <<_ACEOF
16152 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16153 _ACEOF
16156 done
16158 { $as_echo "$as_me:$LINENO: checking for _nl_msg_cat_cntr" >&5
16159 $as_echo_n "checking for _nl_msg_cat_cntr... " >&6; }
16160 cat >conftest.$ac_ext <<_ACEOF
16161 /* confdefs.h. */
16162 _ACEOF
16163 cat confdefs.h >>conftest.$ac_ext
16164 cat >>conftest.$ac_ext <<_ACEOF
16165 /* end confdefs.h. */
16166 #include <libintl.h>
16167 extern int _nl_msg_cat_cntr;
16169 main ()
16171 ++_nl_msg_cat_cntr;
16173 return 0;
16175 _ACEOF
16176 rm -f conftest.$ac_objext conftest$ac_exeext
16177 if { (ac_try="$ac_link"
16178 case "(($ac_try" in
16179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16180 *) ac_try_echo=$ac_try;;
16181 esac
16182 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16183 $as_echo "$ac_try_echo") >&5
16184 (eval "$ac_link") 2>conftest.er1
16185 ac_status=$?
16186 grep -v '^ *+' conftest.er1 >conftest.err
16187 rm -f conftest.er1
16188 cat conftest.err >&5
16189 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16190 (exit $ac_status); } && {
16191 test -z "$ac_c_werror_flag" ||
16192 test ! -s conftest.err
16193 } && test -s conftest$ac_exeext && {
16194 test "$cross_compiling" = yes ||
16195 $as_test_x conftest$ac_exeext
16196 }; then
16197 { $as_echo "$as_me:$LINENO: result: yes" >&5
16198 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
16199 #define HAVE_NL_MSG_CAT_CNTR 1
16200 _ACEOF
16202 else
16203 $as_echo "$as_me: failed program was:" >&5
16204 sed 's/^/| /' conftest.$ac_ext >&5
16206 { $as_echo "$as_me:$LINENO: result: no" >&5
16207 $as_echo "no" >&6; }
16210 rm -rf conftest.dSYM
16211 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16212 conftest$ac_exeext conftest.$ac_ext
16214 else
16215 { $as_echo "$as_me:$LINENO: result: no \"po/Makefile\" - disabled" >&5
16216 $as_echo "no \"po/Makefile\" - disabled" >&6; };
16218 else
16219 { $as_echo "$as_me:$LINENO: result: yes" >&5
16220 $as_echo "yes" >&6; }
16223 if test "${ac_cv_header_dlfcn_h+set}" = set; then
16224 { $as_echo "$as_me:$LINENO: checking for dlfcn.h" >&5
16225 $as_echo_n "checking for dlfcn.h... " >&6; }
16226 if test "${ac_cv_header_dlfcn_h+set}" = set; then
16227 $as_echo_n "(cached) " >&6
16229 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
16230 $as_echo "$ac_cv_header_dlfcn_h" >&6; }
16231 else
16232 # Is the header compilable?
16233 { $as_echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
16234 $as_echo_n "checking dlfcn.h usability... " >&6; }
16235 cat >conftest.$ac_ext <<_ACEOF
16236 /* confdefs.h. */
16237 _ACEOF
16238 cat confdefs.h >>conftest.$ac_ext
16239 cat >>conftest.$ac_ext <<_ACEOF
16240 /* end confdefs.h. */
16241 $ac_includes_default
16242 #include <dlfcn.h>
16243 _ACEOF
16244 rm -f conftest.$ac_objext
16245 if { (ac_try="$ac_compile"
16246 case "(($ac_try" in
16247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16248 *) ac_try_echo=$ac_try;;
16249 esac
16250 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16251 $as_echo "$ac_try_echo") >&5
16252 (eval "$ac_compile") 2>conftest.er1
16253 ac_status=$?
16254 grep -v '^ *+' conftest.er1 >conftest.err
16255 rm -f conftest.er1
16256 cat conftest.err >&5
16257 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16258 (exit $ac_status); } && {
16259 test -z "$ac_c_werror_flag" ||
16260 test ! -s conftest.err
16261 } && test -s conftest.$ac_objext; then
16262 ac_header_compiler=yes
16263 else
16264 $as_echo "$as_me: failed program was:" >&5
16265 sed 's/^/| /' conftest.$ac_ext >&5
16267 ac_header_compiler=no
16270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16271 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16272 $as_echo "$ac_header_compiler" >&6; }
16274 # Is the header present?
16275 { $as_echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
16276 $as_echo_n "checking dlfcn.h presence... " >&6; }
16277 cat >conftest.$ac_ext <<_ACEOF
16278 /* confdefs.h. */
16279 _ACEOF
16280 cat confdefs.h >>conftest.$ac_ext
16281 cat >>conftest.$ac_ext <<_ACEOF
16282 /* end confdefs.h. */
16283 #include <dlfcn.h>
16284 _ACEOF
16285 if { (ac_try="$ac_cpp conftest.$ac_ext"
16286 case "(($ac_try" in
16287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16288 *) ac_try_echo=$ac_try;;
16289 esac
16290 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16291 $as_echo "$ac_try_echo") >&5
16292 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16293 ac_status=$?
16294 grep -v '^ *+' conftest.er1 >conftest.err
16295 rm -f conftest.er1
16296 cat conftest.err >&5
16297 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16298 (exit $ac_status); } >/dev/null && {
16299 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16300 test ! -s conftest.err
16301 }; then
16302 ac_header_preproc=yes
16303 else
16304 $as_echo "$as_me: failed program was:" >&5
16305 sed 's/^/| /' conftest.$ac_ext >&5
16307 ac_header_preproc=no
16310 rm -f conftest.err conftest.$ac_ext
16311 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16312 $as_echo "$ac_header_preproc" >&6; }
16314 # So? What about this header?
16315 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16316 yes:no: )
16317 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
16318 $as_echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16319 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5
16320 $as_echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;}
16321 ac_header_preproc=yes
16323 no:yes:* )
16324 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
16325 $as_echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
16326 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5
16327 $as_echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;}
16328 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5
16329 $as_echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;}
16330 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5
16331 $as_echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;}
16332 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
16333 $as_echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
16334 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5
16335 $as_echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;}
16338 esac
16339 { $as_echo "$as_me:$LINENO: checking for dlfcn.h" >&5
16340 $as_echo_n "checking for dlfcn.h... " >&6; }
16341 if test "${ac_cv_header_dlfcn_h+set}" = set; then
16342 $as_echo_n "(cached) " >&6
16343 else
16344 ac_cv_header_dlfcn_h=$ac_header_preproc
16346 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
16347 $as_echo "$ac_cv_header_dlfcn_h" >&6; }
16350 if test $ac_cv_header_dlfcn_h = yes; then
16351 DLL=dlfcn.h
16352 else
16353 if test "${ac_cv_header_dl_h+set}" = set; then
16354 { $as_echo "$as_me:$LINENO: checking for dl.h" >&5
16355 $as_echo_n "checking for dl.h... " >&6; }
16356 if test "${ac_cv_header_dl_h+set}" = set; then
16357 $as_echo_n "(cached) " >&6
16359 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5
16360 $as_echo "$ac_cv_header_dl_h" >&6; }
16361 else
16362 # Is the header compilable?
16363 { $as_echo "$as_me:$LINENO: checking dl.h usability" >&5
16364 $as_echo_n "checking dl.h usability... " >&6; }
16365 cat >conftest.$ac_ext <<_ACEOF
16366 /* confdefs.h. */
16367 _ACEOF
16368 cat confdefs.h >>conftest.$ac_ext
16369 cat >>conftest.$ac_ext <<_ACEOF
16370 /* end confdefs.h. */
16371 $ac_includes_default
16372 #include <dl.h>
16373 _ACEOF
16374 rm -f conftest.$ac_objext
16375 if { (ac_try="$ac_compile"
16376 case "(($ac_try" in
16377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16378 *) ac_try_echo=$ac_try;;
16379 esac
16380 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16381 $as_echo "$ac_try_echo") >&5
16382 (eval "$ac_compile") 2>conftest.er1
16383 ac_status=$?
16384 grep -v '^ *+' conftest.er1 >conftest.err
16385 rm -f conftest.er1
16386 cat conftest.err >&5
16387 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16388 (exit $ac_status); } && {
16389 test -z "$ac_c_werror_flag" ||
16390 test ! -s conftest.err
16391 } && test -s conftest.$ac_objext; then
16392 ac_header_compiler=yes
16393 else
16394 $as_echo "$as_me: failed program was:" >&5
16395 sed 's/^/| /' conftest.$ac_ext >&5
16397 ac_header_compiler=no
16400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16401 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16402 $as_echo "$ac_header_compiler" >&6; }
16404 # Is the header present?
16405 { $as_echo "$as_me:$LINENO: checking dl.h presence" >&5
16406 $as_echo_n "checking dl.h presence... " >&6; }
16407 cat >conftest.$ac_ext <<_ACEOF
16408 /* confdefs.h. */
16409 _ACEOF
16410 cat confdefs.h >>conftest.$ac_ext
16411 cat >>conftest.$ac_ext <<_ACEOF
16412 /* end confdefs.h. */
16413 #include <dl.h>
16414 _ACEOF
16415 if { (ac_try="$ac_cpp conftest.$ac_ext"
16416 case "(($ac_try" in
16417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16418 *) ac_try_echo=$ac_try;;
16419 esac
16420 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16421 $as_echo "$ac_try_echo") >&5
16422 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16423 ac_status=$?
16424 grep -v '^ *+' conftest.er1 >conftest.err
16425 rm -f conftest.er1
16426 cat conftest.err >&5
16427 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16428 (exit $ac_status); } >/dev/null && {
16429 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16430 test ! -s conftest.err
16431 }; then
16432 ac_header_preproc=yes
16433 else
16434 $as_echo "$as_me: failed program was:" >&5
16435 sed 's/^/| /' conftest.$ac_ext >&5
16437 ac_header_preproc=no
16440 rm -f conftest.err conftest.$ac_ext
16441 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16442 $as_echo "$ac_header_preproc" >&6; }
16444 # So? What about this header?
16445 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16446 yes:no: )
16447 { $as_echo "$as_me:$LINENO: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&5
16448 $as_echo "$as_me: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16449 { $as_echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the compiler's result" >&5
16450 $as_echo "$as_me: WARNING: dl.h: proceeding with the compiler's result" >&2;}
16451 ac_header_preproc=yes
16453 no:yes:* )
16454 { $as_echo "$as_me:$LINENO: WARNING: dl.h: present but cannot be compiled" >&5
16455 $as_echo "$as_me: WARNING: dl.h: present but cannot be compiled" >&2;}
16456 { $as_echo "$as_me:$LINENO: WARNING: dl.h: check for missing prerequisite headers?" >&5
16457 $as_echo "$as_me: WARNING: dl.h: check for missing prerequisite headers?" >&2;}
16458 { $as_echo "$as_me:$LINENO: WARNING: dl.h: see the Autoconf documentation" >&5
16459 $as_echo "$as_me: WARNING: dl.h: see the Autoconf documentation" >&2;}
16460 { $as_echo "$as_me:$LINENO: WARNING: dl.h: section \"Present But Cannot Be Compiled\"" >&5
16461 $as_echo "$as_me: WARNING: dl.h: section \"Present But Cannot Be Compiled\"" >&2;}
16462 { $as_echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the preprocessor's result" >&5
16463 $as_echo "$as_me: WARNING: dl.h: proceeding with the preprocessor's result" >&2;}
16464 { $as_echo "$as_me:$LINENO: WARNING: dl.h: in the future, the compiler will take precedence" >&5
16465 $as_echo "$as_me: WARNING: dl.h: in the future, the compiler will take precedence" >&2;}
16468 esac
16469 { $as_echo "$as_me:$LINENO: checking for dl.h" >&5
16470 $as_echo_n "checking for dl.h... " >&6; }
16471 if test "${ac_cv_header_dl_h+set}" = set; then
16472 $as_echo_n "(cached) " >&6
16473 else
16474 ac_cv_header_dl_h=$ac_header_preproc
16476 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5
16477 $as_echo "$ac_cv_header_dl_h" >&6; }
16480 if test $ac_cv_header_dl_h = yes; then
16481 DLL=dl.h
16488 if test x${DLL} = xdlfcn.h; then
16490 cat >>confdefs.h <<\_ACEOF
16491 #define HAVE_DLFCN_H 1
16492 _ACEOF
16494 { $as_echo "$as_me:$LINENO: checking for dlopen()" >&5
16495 $as_echo_n "checking for dlopen()... " >&6; }
16496 cat >conftest.$ac_ext <<_ACEOF
16497 /* confdefs.h. */
16498 _ACEOF
16499 cat confdefs.h >>conftest.$ac_ext
16500 cat >>conftest.$ac_ext <<_ACEOF
16501 /* end confdefs.h. */
16504 main ()
16507 extern void* dlopen();
16508 dlopen();
16511 return 0;
16513 _ACEOF
16514 rm -f conftest.$ac_objext conftest$ac_exeext
16515 if { (ac_try="$ac_link"
16516 case "(($ac_try" in
16517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16518 *) ac_try_echo=$ac_try;;
16519 esac
16520 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16521 $as_echo "$ac_try_echo") >&5
16522 (eval "$ac_link") 2>conftest.er1
16523 ac_status=$?
16524 grep -v '^ *+' conftest.er1 >conftest.err
16525 rm -f conftest.er1
16526 cat conftest.err >&5
16527 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16528 (exit $ac_status); } && {
16529 test -z "$ac_c_werror_flag" ||
16530 test ! -s conftest.err
16531 } && test -s conftest$ac_exeext && {
16532 test "$cross_compiling" = yes ||
16533 $as_test_x conftest$ac_exeext
16534 }; then
16535 { $as_echo "$as_me:$LINENO: result: yes" >&5
16536 $as_echo "yes" >&6; };
16538 cat >>confdefs.h <<\_ACEOF
16539 #define HAVE_DLOPEN 1
16540 _ACEOF
16542 else
16543 $as_echo "$as_me: failed program was:" >&5
16544 sed 's/^/| /' conftest.$ac_ext >&5
16546 { $as_echo "$as_me:$LINENO: result: no" >&5
16547 $as_echo "no" >&6; };
16548 { $as_echo "$as_me:$LINENO: checking for dlopen() in -ldl" >&5
16549 $as_echo_n "checking for dlopen() in -ldl... " >&6; }
16550 olibs=$LIBS
16551 LIBS="$LIBS -ldl"
16552 cat >conftest.$ac_ext <<_ACEOF
16553 /* confdefs.h. */
16554 _ACEOF
16555 cat confdefs.h >>conftest.$ac_ext
16556 cat >>conftest.$ac_ext <<_ACEOF
16557 /* end confdefs.h. */
16560 main ()
16563 extern void* dlopen();
16564 dlopen();
16567 return 0;
16569 _ACEOF
16570 rm -f conftest.$ac_objext conftest$ac_exeext
16571 if { (ac_try="$ac_link"
16572 case "(($ac_try" in
16573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16574 *) ac_try_echo=$ac_try;;
16575 esac
16576 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16577 $as_echo "$ac_try_echo") >&5
16578 (eval "$ac_link") 2>conftest.er1
16579 ac_status=$?
16580 grep -v '^ *+' conftest.er1 >conftest.err
16581 rm -f conftest.er1
16582 cat conftest.err >&5
16583 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16584 (exit $ac_status); } && {
16585 test -z "$ac_c_werror_flag" ||
16586 test ! -s conftest.err
16587 } && test -s conftest$ac_exeext && {
16588 test "$cross_compiling" = yes ||
16589 $as_test_x conftest$ac_exeext
16590 }; then
16591 { $as_echo "$as_me:$LINENO: result: yes" >&5
16592 $as_echo "yes" >&6; };
16594 cat >>confdefs.h <<\_ACEOF
16595 #define HAVE_DLOPEN 1
16596 _ACEOF
16598 else
16599 $as_echo "$as_me: failed program was:" >&5
16600 sed 's/^/| /' conftest.$ac_ext >&5
16602 { $as_echo "$as_me:$LINENO: result: no" >&5
16603 $as_echo "no" >&6; };
16604 LIBS=$olibs
16607 rm -rf conftest.dSYM
16608 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16609 conftest$ac_exeext conftest.$ac_ext
16612 rm -rf conftest.dSYM
16613 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16614 conftest$ac_exeext conftest.$ac_ext
16615 { $as_echo "$as_me:$LINENO: checking for dlsym()" >&5
16616 $as_echo_n "checking for dlsym()... " >&6; }
16617 cat >conftest.$ac_ext <<_ACEOF
16618 /* confdefs.h. */
16619 _ACEOF
16620 cat confdefs.h >>conftest.$ac_ext
16621 cat >>conftest.$ac_ext <<_ACEOF
16622 /* end confdefs.h. */
16625 main ()
16628 extern void* dlsym();
16629 dlsym();
16632 return 0;
16634 _ACEOF
16635 rm -f conftest.$ac_objext conftest$ac_exeext
16636 if { (ac_try="$ac_link"
16637 case "(($ac_try" in
16638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16639 *) ac_try_echo=$ac_try;;
16640 esac
16641 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16642 $as_echo "$ac_try_echo") >&5
16643 (eval "$ac_link") 2>conftest.er1
16644 ac_status=$?
16645 grep -v '^ *+' conftest.er1 >conftest.err
16646 rm -f conftest.er1
16647 cat conftest.err >&5
16648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16649 (exit $ac_status); } && {
16650 test -z "$ac_c_werror_flag" ||
16651 test ! -s conftest.err
16652 } && test -s conftest$ac_exeext && {
16653 test "$cross_compiling" = yes ||
16654 $as_test_x conftest$ac_exeext
16655 }; then
16656 { $as_echo "$as_me:$LINENO: result: yes" >&5
16657 $as_echo "yes" >&6; };
16659 cat >>confdefs.h <<\_ACEOF
16660 #define HAVE_DLSYM 1
16661 _ACEOF
16663 else
16664 $as_echo "$as_me: failed program was:" >&5
16665 sed 's/^/| /' conftest.$ac_ext >&5
16667 { $as_echo "$as_me:$LINENO: result: no" >&5
16668 $as_echo "no" >&6; };
16669 { $as_echo "$as_me:$LINENO: checking for dlsym() in -ldl" >&5
16670 $as_echo_n "checking for dlsym() in -ldl... " >&6; }
16671 olibs=$LIBS
16672 LIBS="$LIBS -ldl"
16673 cat >conftest.$ac_ext <<_ACEOF
16674 /* confdefs.h. */
16675 _ACEOF
16676 cat confdefs.h >>conftest.$ac_ext
16677 cat >>conftest.$ac_ext <<_ACEOF
16678 /* end confdefs.h. */
16681 main ()
16684 extern void* dlsym();
16685 dlsym();
16688 return 0;
16690 _ACEOF
16691 rm -f conftest.$ac_objext conftest$ac_exeext
16692 if { (ac_try="$ac_link"
16693 case "(($ac_try" in
16694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16695 *) ac_try_echo=$ac_try;;
16696 esac
16697 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16698 $as_echo "$ac_try_echo") >&5
16699 (eval "$ac_link") 2>conftest.er1
16700 ac_status=$?
16701 grep -v '^ *+' conftest.er1 >conftest.err
16702 rm -f conftest.er1
16703 cat conftest.err >&5
16704 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16705 (exit $ac_status); } && {
16706 test -z "$ac_c_werror_flag" ||
16707 test ! -s conftest.err
16708 } && test -s conftest$ac_exeext && {
16709 test "$cross_compiling" = yes ||
16710 $as_test_x conftest$ac_exeext
16711 }; then
16712 { $as_echo "$as_me:$LINENO: result: yes" >&5
16713 $as_echo "yes" >&6; };
16715 cat >>confdefs.h <<\_ACEOF
16716 #define HAVE_DLSYM 1
16717 _ACEOF
16719 else
16720 $as_echo "$as_me: failed program was:" >&5
16721 sed 's/^/| /' conftest.$ac_ext >&5
16723 { $as_echo "$as_me:$LINENO: result: no" >&5
16724 $as_echo "no" >&6; };
16725 LIBS=$olibs
16728 rm -rf conftest.dSYM
16729 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16730 conftest$ac_exeext conftest.$ac_ext
16733 rm -rf conftest.dSYM
16734 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16735 conftest$ac_exeext conftest.$ac_ext
16736 elif test x${DLL} = xdl.h; then
16738 cat >>confdefs.h <<\_ACEOF
16739 #define HAVE_DL_H 1
16740 _ACEOF
16742 { $as_echo "$as_me:$LINENO: checking for shl_load()" >&5
16743 $as_echo_n "checking for shl_load()... " >&6; }
16744 cat >conftest.$ac_ext <<_ACEOF
16745 /* confdefs.h. */
16746 _ACEOF
16747 cat confdefs.h >>conftest.$ac_ext
16748 cat >>conftest.$ac_ext <<_ACEOF
16749 /* end confdefs.h. */
16752 main ()
16755 extern void* shl_load();
16756 shl_load();
16759 return 0;
16761 _ACEOF
16762 rm -f conftest.$ac_objext conftest$ac_exeext
16763 if { (ac_try="$ac_link"
16764 case "(($ac_try" in
16765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16766 *) ac_try_echo=$ac_try;;
16767 esac
16768 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16769 $as_echo "$ac_try_echo") >&5
16770 (eval "$ac_link") 2>conftest.er1
16771 ac_status=$?
16772 grep -v '^ *+' conftest.er1 >conftest.err
16773 rm -f conftest.er1
16774 cat conftest.err >&5
16775 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16776 (exit $ac_status); } && {
16777 test -z "$ac_c_werror_flag" ||
16778 test ! -s conftest.err
16779 } && test -s conftest$ac_exeext && {
16780 test "$cross_compiling" = yes ||
16781 $as_test_x conftest$ac_exeext
16782 }; then
16783 { $as_echo "$as_me:$LINENO: result: yes" >&5
16784 $as_echo "yes" >&6; };
16786 cat >>confdefs.h <<\_ACEOF
16787 #define HAVE_SHL_LOAD 1
16788 _ACEOF
16790 else
16791 $as_echo "$as_me: failed program was:" >&5
16792 sed 's/^/| /' conftest.$ac_ext >&5
16794 { $as_echo "$as_me:$LINENO: result: no" >&5
16795 $as_echo "no" >&6; };
16796 { $as_echo "$as_me:$LINENO: checking for shl_load() in -ldld" >&5
16797 $as_echo_n "checking for shl_load() in -ldld... " >&6; }
16798 olibs=$LIBS
16799 LIBS="$LIBS -ldld"
16800 cat >conftest.$ac_ext <<_ACEOF
16801 /* confdefs.h. */
16802 _ACEOF
16803 cat confdefs.h >>conftest.$ac_ext
16804 cat >>conftest.$ac_ext <<_ACEOF
16805 /* end confdefs.h. */
16808 main ()
16811 extern void* shl_load();
16812 shl_load();
16815 return 0;
16817 _ACEOF
16818 rm -f conftest.$ac_objext conftest$ac_exeext
16819 if { (ac_try="$ac_link"
16820 case "(($ac_try" in
16821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16822 *) ac_try_echo=$ac_try;;
16823 esac
16824 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16825 $as_echo "$ac_try_echo") >&5
16826 (eval "$ac_link") 2>conftest.er1
16827 ac_status=$?
16828 grep -v '^ *+' conftest.er1 >conftest.err
16829 rm -f conftest.er1
16830 cat conftest.err >&5
16831 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16832 (exit $ac_status); } && {
16833 test -z "$ac_c_werror_flag" ||
16834 test ! -s conftest.err
16835 } && test -s conftest$ac_exeext && {
16836 test "$cross_compiling" = yes ||
16837 $as_test_x conftest$ac_exeext
16838 }; then
16839 { $as_echo "$as_me:$LINENO: result: yes" >&5
16840 $as_echo "yes" >&6; };
16842 cat >>confdefs.h <<\_ACEOF
16843 #define HAVE_SHL_LOAD 1
16844 _ACEOF
16846 else
16847 $as_echo "$as_me: failed program was:" >&5
16848 sed 's/^/| /' conftest.$ac_ext >&5
16850 { $as_echo "$as_me:$LINENO: result: no" >&5
16851 $as_echo "no" >&6; };
16852 LIBS=$olibs
16855 rm -rf conftest.dSYM
16856 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16857 conftest$ac_exeext conftest.$ac_ext
16860 rm -rf conftest.dSYM
16861 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16862 conftest$ac_exeext conftest.$ac_ext
16865 for ac_header in setjmp.h
16867 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16868 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16869 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16870 $as_echo_n "checking for $ac_header... " >&6; }
16871 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16872 $as_echo_n "(cached) " >&6
16874 ac_res=`eval 'as_val=${'$as_ac_Header'}
16875 $as_echo "$as_val"'`
16876 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16877 $as_echo "$ac_res" >&6; }
16878 else
16879 # Is the header compilable?
16880 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16881 $as_echo_n "checking $ac_header usability... " >&6; }
16882 cat >conftest.$ac_ext <<_ACEOF
16883 /* confdefs.h. */
16884 _ACEOF
16885 cat confdefs.h >>conftest.$ac_ext
16886 cat >>conftest.$ac_ext <<_ACEOF
16887 /* end confdefs.h. */
16888 $ac_includes_default
16889 #include <$ac_header>
16890 _ACEOF
16891 rm -f conftest.$ac_objext
16892 if { (ac_try="$ac_compile"
16893 case "(($ac_try" in
16894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16895 *) ac_try_echo=$ac_try;;
16896 esac
16897 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16898 $as_echo "$ac_try_echo") >&5
16899 (eval "$ac_compile") 2>conftest.er1
16900 ac_status=$?
16901 grep -v '^ *+' conftest.er1 >conftest.err
16902 rm -f conftest.er1
16903 cat conftest.err >&5
16904 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16905 (exit $ac_status); } && {
16906 test -z "$ac_c_werror_flag" ||
16907 test ! -s conftest.err
16908 } && test -s conftest.$ac_objext; then
16909 ac_header_compiler=yes
16910 else
16911 $as_echo "$as_me: failed program was:" >&5
16912 sed 's/^/| /' conftest.$ac_ext >&5
16914 ac_header_compiler=no
16917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16918 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16919 $as_echo "$ac_header_compiler" >&6; }
16921 # Is the header present?
16922 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16923 $as_echo_n "checking $ac_header presence... " >&6; }
16924 cat >conftest.$ac_ext <<_ACEOF
16925 /* confdefs.h. */
16926 _ACEOF
16927 cat confdefs.h >>conftest.$ac_ext
16928 cat >>conftest.$ac_ext <<_ACEOF
16929 /* end confdefs.h. */
16930 #include <$ac_header>
16931 _ACEOF
16932 if { (ac_try="$ac_cpp conftest.$ac_ext"
16933 case "(($ac_try" in
16934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16935 *) ac_try_echo=$ac_try;;
16936 esac
16937 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16938 $as_echo "$ac_try_echo") >&5
16939 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16940 ac_status=$?
16941 grep -v '^ *+' conftest.er1 >conftest.err
16942 rm -f conftest.er1
16943 cat conftest.err >&5
16944 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16945 (exit $ac_status); } >/dev/null && {
16946 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16947 test ! -s conftest.err
16948 }; then
16949 ac_header_preproc=yes
16950 else
16951 $as_echo "$as_me: failed program was:" >&5
16952 sed 's/^/| /' conftest.$ac_ext >&5
16954 ac_header_preproc=no
16957 rm -f conftest.err conftest.$ac_ext
16958 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16959 $as_echo "$ac_header_preproc" >&6; }
16961 # So? What about this header?
16962 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16963 yes:no: )
16964 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16965 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16966 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16967 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16968 ac_header_preproc=yes
16970 no:yes:* )
16971 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16972 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16973 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16974 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16975 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16976 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16977 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16978 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16979 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16980 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16981 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16982 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16985 esac
16986 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16987 $as_echo_n "checking for $ac_header... " >&6; }
16988 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16989 $as_echo_n "(cached) " >&6
16990 else
16991 eval "$as_ac_Header=\$ac_header_preproc"
16993 ac_res=`eval 'as_val=${'$as_ac_Header'}
16994 $as_echo "$as_val"'`
16995 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16996 $as_echo "$ac_res" >&6; }
16999 if test `eval 'as_val=${'$as_ac_Header'}
17000 $as_echo "$as_val"'` = yes; then
17001 cat >>confdefs.h <<_ACEOF
17002 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17003 _ACEOF
17007 done
17010 if test "x$MACOSX" = "xyes" -a -n "$PERL"; then
17011 if echo $LIBS | grep -e '-ldl' >/dev/null; then
17012 LIBS=`echo $LIBS | sed s/-ldl//`
17013 PERL_LIBS="$PERL_LIBS -ldl"
17017 if test "x$MACOSX" = "xyes" && test "x$CARBON" = "xyes" \
17018 && test "x$GUITYPE" != "xCARBONGUI"; then
17019 { $as_echo "$as_me:$LINENO: checking whether we need -framework Carbon" >&5
17020 $as_echo_n "checking whether we need -framework Carbon... " >&6; }
17021 if test "x$enable_multibyte" = "xyes" || test "x$features" = "xbig" \
17022 || test "x$features" = "xhuge"; then
17023 LIBS="$LIBS -framework Carbon"
17024 { $as_echo "$as_me:$LINENO: result: yes" >&5
17025 $as_echo "yes" >&6; }
17026 else
17027 { $as_echo "$as_me:$LINENO: result: no" >&5
17028 $as_echo "no" >&6; }
17031 if test "x$MACARCH" = "xboth"; then
17032 LDFLAGS="$LDFLAGS -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc"
17035 DEPEND_CFLAGS_FILTER=
17036 if test "$GCC" = yes; then
17037 { $as_echo "$as_me:$LINENO: checking for GCC 3 or later" >&5
17038 $as_echo_n "checking for GCC 3 or later... " >&6; }
17039 gccmajor=`echo "$gccversion" | sed -e 's/^\([1-9]\)\..*$/\1/g'`
17040 if test "$gccmajor" -gt "2"; then
17041 DEPEND_CFLAGS_FILTER="| sed 's+-I */+-isystem /+g'"
17042 { $as_echo "$as_me:$LINENO: result: yes" >&5
17043 $as_echo "yes" >&6; }
17044 else
17045 { $as_echo "$as_me:$LINENO: result: no" >&5
17046 $as_echo "no" >&6; }
17048 { $as_echo "$as_me:$LINENO: checking whether we need -D_FORTIFY_SOURCE=1" >&5
17049 $as_echo_n "checking whether we need -D_FORTIFY_SOURCE=1... " >&6; }
17050 if test "$gccmajor" -gt "3"; then
17051 CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=1"
17052 { $as_echo "$as_me:$LINENO: result: yes" >&5
17053 $as_echo "yes" >&6; }
17054 else
17055 { $as_echo "$as_me:$LINENO: result: no" >&5
17056 $as_echo "no" >&6; }
17061 ac_config_files="$ac_config_files auto/config.mk:config.mk.in"
17063 cat >confcache <<\_ACEOF
17064 # This file is a shell script that caches the results of configure
17065 # tests run on this system so they can be shared between configure
17066 # scripts and configure runs, see configure's option --config-cache.
17067 # It is not useful on other systems. If it contains results you don't
17068 # want to keep, you may remove or edit it.
17070 # config.status only pays attention to the cache file if you give it
17071 # the --recheck option to rerun configure.
17073 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17074 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17075 # following values.
17077 _ACEOF
17079 # The following way of writing the cache mishandles newlines in values,
17080 # but we know of no workaround that is simple, portable, and efficient.
17081 # So, we kill variables containing newlines.
17082 # Ultrix sh set writes to stderr and can't be redirected directly,
17083 # and sets the high bit in the cache file unless we assign to the vars.
17085 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17086 eval ac_val=\$$ac_var
17087 case $ac_val in #(
17088 *${as_nl}*)
17089 case $ac_var in #(
17090 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
17091 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
17092 esac
17093 case $ac_var in #(
17094 _ | IFS | as_nl) ;; #(
17095 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17096 *) $as_unset $ac_var ;;
17097 esac ;;
17098 esac
17099 done
17101 (set) 2>&1 |
17102 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17103 *${as_nl}ac_space=\ *)
17104 # `set' does not quote correctly, so add quotes (double-quote
17105 # substitution turns \\\\ into \\, and sed turns \\ into \).
17106 sed -n \
17107 "s/'/'\\\\''/g;
17108 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17109 ;; #(
17111 # `set' quotes correctly as required by POSIX, so do not add quotes.
17112 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17114 esac |
17115 sort
17117 sed '
17118 /^ac_cv_env_/b end
17119 t clear
17120 :clear
17121 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17122 t end
17123 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17124 :end' >>confcache
17125 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17126 if test -w "$cache_file"; then
17127 test "x$cache_file" != "x/dev/null" &&
17128 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
17129 $as_echo "$as_me: updating cache $cache_file" >&6;}
17130 cat confcache >$cache_file
17131 else
17132 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
17133 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17136 rm -f confcache
17138 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17139 # Let make expand exec_prefix.
17140 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17142 DEFS=-DHAVE_CONFIG_H
17144 ac_libobjs=
17145 ac_ltlibobjs=
17146 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17147 # 1. Remove the extension, and $U if already installed.
17148 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17149 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17150 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17151 # will be set to the directory where LIBOBJS objects are built.
17152 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17153 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
17154 done
17155 LIBOBJS=$ac_libobjs
17157 LTLIBOBJS=$ac_ltlibobjs
17161 : ${CONFIG_STATUS=./config.status}
17162 ac_write_fail=0
17163 ac_clean_files_save=$ac_clean_files
17164 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17165 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17166 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17167 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17168 #! $SHELL
17169 # Generated by $as_me.
17170 # Run this file to recreate the current configuration.
17171 # Compiler output produced by configure, useful for debugging
17172 # configure, is in config.log if it exists.
17174 debug=false
17175 ac_cs_recheck=false
17176 ac_cs_silent=false
17177 SHELL=\${CONFIG_SHELL-$SHELL}
17178 _ACEOF
17180 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17181 ## --------------------- ##
17182 ## M4sh Initialization. ##
17183 ## --------------------- ##
17185 # Be more Bourne compatible
17186 DUALCASE=1; export DUALCASE # for MKS sh
17187 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17188 emulate sh
17189 NULLCMD=:
17190 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17191 # is contrary to our usage. Disable this feature.
17192 alias -g '${1+"$@"}'='"$@"'
17193 setopt NO_GLOB_SUBST
17194 else
17195 case `(set -o) 2>/dev/null` in
17196 *posix*) set -o posix ;;
17197 esac
17204 # PATH needs CR
17205 # Avoid depending upon Character Ranges.
17206 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17207 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17208 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17209 as_cr_digits='0123456789'
17210 as_cr_alnum=$as_cr_Letters$as_cr_digits
17212 as_nl='
17214 export as_nl
17215 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17216 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17217 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17218 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17219 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17220 as_echo='printf %s\n'
17221 as_echo_n='printf %s'
17222 else
17223 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17224 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17225 as_echo_n='/usr/ucb/echo -n'
17226 else
17227 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17228 as_echo_n_body='eval
17229 arg=$1;
17230 case $arg in
17231 *"$as_nl"*)
17232 expr "X$arg" : "X\\(.*\\)$as_nl";
17233 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17234 esac;
17235 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17237 export as_echo_n_body
17238 as_echo_n='sh -c $as_echo_n_body as_echo'
17240 export as_echo_body
17241 as_echo='sh -c $as_echo_body as_echo'
17244 # The user is always right.
17245 if test "${PATH_SEPARATOR+set}" != set; then
17246 PATH_SEPARATOR=:
17247 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17248 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17249 PATH_SEPARATOR=';'
17253 # Support unset when possible.
17254 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
17255 as_unset=unset
17256 else
17257 as_unset=false
17261 # IFS
17262 # We need space, tab and new line, in precisely that order. Quoting is
17263 # there to prevent editors from complaining about space-tab.
17264 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17265 # splitting by setting IFS to empty value.)
17266 IFS=" "" $as_nl"
17268 # Find who we are. Look in the path if we contain no directory separator.
17269 case $0 in
17270 *[\\/]* ) as_myself=$0 ;;
17271 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17272 for as_dir in $PATH
17274 IFS=$as_save_IFS
17275 test -z "$as_dir" && as_dir=.
17276 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17277 done
17278 IFS=$as_save_IFS
17281 esac
17282 # We did not find ourselves, most probably we were run as `sh COMMAND'
17283 # in which case we are not to be found in the path.
17284 if test "x$as_myself" = x; then
17285 as_myself=$0
17287 if test ! -f "$as_myself"; then
17288 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17289 { (exit 1); exit 1; }
17292 # Work around bugs in pre-3.0 UWIN ksh.
17293 for as_var in ENV MAIL MAILPATH
17294 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
17295 done
17296 PS1='$ '
17297 PS2='> '
17298 PS4='+ '
17300 # NLS nuisances.
17301 LC_ALL=C
17302 export LC_ALL
17303 LANGUAGE=C
17304 export LANGUAGE
17306 # Required to use basename.
17307 if expr a : '\(a\)' >/dev/null 2>&1 &&
17308 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17309 as_expr=expr
17310 else
17311 as_expr=false
17314 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17315 as_basename=basename
17316 else
17317 as_basename=false
17321 # Name of the executable.
17322 as_me=`$as_basename -- "$0" ||
17323 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17324 X"$0" : 'X\(//\)$' \| \
17325 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17326 $as_echo X/"$0" |
17327 sed '/^.*\/\([^/][^/]*\)\/*$/{
17328 s//\1/
17331 /^X\/\(\/\/\)$/{
17332 s//\1/
17335 /^X\/\(\/\).*/{
17336 s//\1/
17339 s/.*/./; q'`
17341 # CDPATH.
17342 $as_unset CDPATH
17346 as_lineno_1=$LINENO
17347 as_lineno_2=$LINENO
17348 test "x$as_lineno_1" != "x$as_lineno_2" &&
17349 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
17351 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17352 # uniformly replaced by the line number. The first 'sed' inserts a
17353 # line-number line after each line using $LINENO; the second 'sed'
17354 # does the real work. The second script uses 'N' to pair each
17355 # line-number line with the line containing $LINENO, and appends
17356 # trailing '-' during substitution so that $LINENO is not a special
17357 # case at line end.
17358 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17359 # scripts with optimization help from Paolo Bonzini. Blame Lee
17360 # E. McMahon (1931-1989) for sed's syntax. :-)
17361 sed -n '
17363 /[$]LINENO/=
17364 ' <$as_myself |
17365 sed '
17366 s/[$]LINENO.*/&-/
17367 t lineno
17369 :lineno
17371 :loop
17372 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
17373 t loop
17374 s/-\n.*//
17375 ' >$as_me.lineno &&
17376 chmod +x "$as_me.lineno" ||
17377 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
17378 { (exit 1); exit 1; }; }
17380 # Don't try to exec as it changes $[0], causing all sort of problems
17381 # (the dirname of $[0] is not the place where we might find the
17382 # original and so on. Autoconf is especially sensitive to this).
17383 . "./$as_me.lineno"
17384 # Exit status is that of the last command.
17385 exit
17389 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17390 as_dirname=dirname
17391 else
17392 as_dirname=false
17395 ECHO_C= ECHO_N= ECHO_T=
17396 case `echo -n x` in
17397 -n*)
17398 case `echo 'x\c'` in
17399 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17400 *) ECHO_C='\c';;
17401 esac;;
17403 ECHO_N='-n';;
17404 esac
17405 if expr a : '\(a\)' >/dev/null 2>&1 &&
17406 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17407 as_expr=expr
17408 else
17409 as_expr=false
17412 rm -f conf$$ conf$$.exe conf$$.file
17413 if test -d conf$$.dir; then
17414 rm -f conf$$.dir/conf$$.file
17415 else
17416 rm -f conf$$.dir
17417 mkdir conf$$.dir 2>/dev/null
17419 if (echo >conf$$.file) 2>/dev/null; then
17420 if ln -s conf$$.file conf$$ 2>/dev/null; then
17421 as_ln_s='ln -s'
17422 # ... but there are two gotchas:
17423 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17424 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17425 # In both cases, we have to default to `cp -p'.
17426 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17427 as_ln_s='cp -p'
17428 elif ln conf$$.file conf$$ 2>/dev/null; then
17429 as_ln_s=ln
17430 else
17431 as_ln_s='cp -p'
17433 else
17434 as_ln_s='cp -p'
17436 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17437 rmdir conf$$.dir 2>/dev/null
17439 if mkdir -p . 2>/dev/null; then
17440 as_mkdir_p=:
17441 else
17442 test -d ./-p && rmdir ./-p
17443 as_mkdir_p=false
17446 if test -x / >/dev/null 2>&1; then
17447 as_test_x='test -x'
17448 else
17449 if ls -dL / >/dev/null 2>&1; then
17450 as_ls_L_option=L
17451 else
17452 as_ls_L_option=
17454 as_test_x='
17455 eval sh -c '\''
17456 if test -d "$1"; then
17457 test -d "$1/.";
17458 else
17459 case $1 in
17460 -*)set "./$1";;
17461 esac;
17462 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
17463 ???[sx]*):;;*)false;;esac;fi
17464 '\'' sh
17467 as_executable_p=$as_test_x
17469 # Sed expression to map a string onto a valid CPP name.
17470 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17472 # Sed expression to map a string onto a valid variable name.
17473 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17476 exec 6>&1
17478 # Save the log message, to keep $[0] and so on meaningful, and to
17479 # report actual input values of CONFIG_FILES etc. instead of their
17480 # values after options handling.
17481 ac_log="
17482 This file was extended by $as_me, which was
17483 generated by GNU Autoconf 2.62. Invocation command line was
17485 CONFIG_FILES = $CONFIG_FILES
17486 CONFIG_HEADERS = $CONFIG_HEADERS
17487 CONFIG_LINKS = $CONFIG_LINKS
17488 CONFIG_COMMANDS = $CONFIG_COMMANDS
17489 $ $0 $@
17491 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17494 _ACEOF
17496 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17497 # Files that config.status was made for.
17498 config_files="$ac_config_files"
17499 config_headers="$ac_config_headers"
17501 _ACEOF
17503 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17504 ac_cs_usage="\
17505 \`$as_me' instantiates files from templates according to the
17506 current configuration.
17508 Usage: $0 [OPTIONS] [FILE]...
17510 -h, --help print this help, then exit
17511 -V, --version print version number and configuration settings, then exit
17512 -q, --quiet do not print progress messages
17513 -d, --debug don't remove temporary files
17514 --recheck update $as_me by reconfiguring in the same conditions
17515 --file=FILE[:TEMPLATE]
17516 instantiate the configuration file FILE
17517 --header=FILE[:TEMPLATE]
17518 instantiate the configuration header FILE
17520 Configuration files:
17521 $config_files
17523 Configuration headers:
17524 $config_headers
17526 Report bugs to <bug-autoconf@gnu.org>."
17528 _ACEOF
17529 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17530 ac_cs_version="\\
17531 config.status
17532 configured by $0, generated by GNU Autoconf 2.62,
17533 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
17535 Copyright (C) 2008 Free Software Foundation, Inc.
17536 This config.status script is free software; the Free Software Foundation
17537 gives unlimited permission to copy, distribute and modify it."
17539 ac_pwd='$ac_pwd'
17540 srcdir='$srcdir'
17541 AWK='$AWK'
17542 test -n "\$AWK" || AWK=awk
17543 _ACEOF
17545 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17546 # The default lists apply if the user does not specify any file.
17547 ac_need_defaults=:
17548 while test $# != 0
17550 case $1 in
17551 --*=*)
17552 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17553 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17554 ac_shift=:
17557 ac_option=$1
17558 ac_optarg=$2
17559 ac_shift=shift
17561 esac
17563 case $ac_option in
17564 # Handling of the options.
17565 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17566 ac_cs_recheck=: ;;
17567 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17568 $as_echo "$ac_cs_version"; exit ;;
17569 --debug | --debu | --deb | --de | --d | -d )
17570 debug=: ;;
17571 --file | --fil | --fi | --f )
17572 $ac_shift
17573 case $ac_optarg in
17574 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17575 esac
17576 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
17577 ac_need_defaults=false;;
17578 --header | --heade | --head | --hea )
17579 $ac_shift
17580 case $ac_optarg in
17581 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17582 esac
17583 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
17584 ac_need_defaults=false;;
17585 --he | --h)
17586 # Conflict between --help and --header
17587 { $as_echo "$as_me: error: ambiguous option: $1
17588 Try \`$0 --help' for more information." >&2
17589 { (exit 1); exit 1; }; };;
17590 --help | --hel | -h )
17591 $as_echo "$ac_cs_usage"; exit ;;
17592 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17593 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17594 ac_cs_silent=: ;;
17596 # This is an error.
17597 -*) { $as_echo "$as_me: error: unrecognized option: $1
17598 Try \`$0 --help' for more information." >&2
17599 { (exit 1); exit 1; }; } ;;
17601 *) ac_config_targets="$ac_config_targets $1"
17602 ac_need_defaults=false ;;
17604 esac
17605 shift
17606 done
17608 ac_configure_extra_args=
17610 if $ac_cs_silent; then
17611 exec 6>/dev/null
17612 ac_configure_extra_args="$ac_configure_extra_args --silent"
17615 _ACEOF
17616 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17617 if \$ac_cs_recheck; then
17618 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17619 shift
17620 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17621 CONFIG_SHELL='$SHELL'
17622 export CONFIG_SHELL
17623 exec "\$@"
17626 _ACEOF
17627 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17628 exec 5>>auto/config.log
17630 echo
17631 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17632 ## Running $as_me. ##
17633 _ASBOX
17634 $as_echo "$ac_log"
17635 } >&5
17637 _ACEOF
17638 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17639 _ACEOF
17641 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17643 # Handling of arguments.
17644 for ac_config_target in $ac_config_targets
17646 case $ac_config_target in
17647 "auto/config.h") CONFIG_HEADERS="$CONFIG_HEADERS auto/config.h:config.h.in" ;;
17648 "auto/config.mk") CONFIG_FILES="$CONFIG_FILES auto/config.mk:config.mk.in" ;;
17650 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17651 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17652 { (exit 1); exit 1; }; };;
17653 esac
17654 done
17657 # If the user did not use the arguments to specify the items to instantiate,
17658 # then the envvar interface is used. Set only those that are not.
17659 # We use the long form for the default assignment because of an extremely
17660 # bizarre bug on SunOS 4.1.3.
17661 if $ac_need_defaults; then
17662 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17663 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17666 # Have a temporary directory for convenience. Make it in the build tree
17667 # simply because there is no reason against having it here, and in addition,
17668 # creating and moving files from /tmp can sometimes cause problems.
17669 # Hook for its removal unless debugging.
17670 # Note that there is a small window in which the directory will not be cleaned:
17671 # after its creation but before its name has been assigned to `$tmp'.
17672 $debug ||
17674 tmp=
17675 trap 'exit_status=$?
17676 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17678 trap '{ (exit 1); exit 1; }' 1 2 13 15
17680 # Create a (secure) tmp directory for tmp files.
17683 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17684 test -n "$tmp" && test -d "$tmp"
17685 } ||
17687 tmp=./conf$$-$RANDOM
17688 (umask 077 && mkdir "$tmp")
17689 } ||
17691 $as_echo "$as_me: cannot create a temporary directory in ." >&2
17692 { (exit 1); exit 1; }
17695 # Set up the scripts for CONFIG_FILES section.
17696 # No need to generate them if there are no CONFIG_FILES.
17697 # This happens for instance with `./config.status config.h'.
17698 if test -n "$CONFIG_FILES"; then
17701 ac_cr=' '
17702 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17703 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17704 ac_cs_awk_cr='\\r'
17705 else
17706 ac_cs_awk_cr=$ac_cr
17709 echo 'BEGIN {' >"$tmp/subs1.awk" &&
17710 _ACEOF
17714 echo "cat >conf$$subs.awk <<_ACEOF" &&
17715 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17716 echo "_ACEOF"
17717 } >conf$$subs.sh ||
17718 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17719 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17720 { (exit 1); exit 1; }; }
17721 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
17722 ac_delim='%!_!# '
17723 for ac_last_try in false false false false false :; do
17724 . ./conf$$subs.sh ||
17725 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17726 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17727 { (exit 1); exit 1; }; }
17729 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
17730 break
17731 elif $ac_last_try; then
17732 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17733 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17734 { (exit 1); exit 1; }; }
17735 else
17736 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17738 done
17739 rm -f conf$$subs.sh
17741 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17742 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
17743 _ACEOF
17744 sed -n '
17746 s/^/S["/; s/!.*/"]=/
17749 s/^[^!]*!//
17750 :repl
17751 t repl
17752 s/'"$ac_delim"'$//
17753 t delim
17756 s/\(.\{148\}\).*/\1/
17757 t more1
17758 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17761 b repl
17762 :more1
17763 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17766 s/.\{148\}//
17767 t nl
17768 :delim
17770 s/\(.\{148\}\).*/\1/
17771 t more2
17772 s/["\\]/\\&/g; s/^/"/; s/$/"/
17775 :more2
17776 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17779 s/.\{148\}//
17780 t delim
17781 ' <conf$$subs.awk | sed '
17782 /^[^""]/{
17784 s/\n//
17786 ' >>$CONFIG_STATUS || ac_write_fail=1
17787 rm -f conf$$subs.awk
17788 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17789 _ACAWK
17790 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
17791 for (key in S) S_is_set[key] = 1
17792 FS = "\a"
17796 line = $ 0
17797 nfields = split(line, field, "@")
17798 substed = 0
17799 len = length(field[1])
17800 for (i = 2; i < nfields; i++) {
17801 key = field[i]
17802 keylen = length(key)
17803 if (S_is_set[key]) {
17804 value = S[key]
17805 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17806 len += length(value) + length(field[++i])
17807 substed = 1
17808 } else
17809 len += 1 + keylen
17812 print line
17815 _ACAWK
17816 _ACEOF
17817 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17818 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17819 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17820 else
17822 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17823 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
17824 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
17825 { (exit 1); exit 1; }; }
17826 _ACEOF
17828 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17829 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17830 # trailing colons and then remove the whole line if VPATH becomes empty
17831 # (actually we leave an empty line to preserve line numbers).
17832 if test "x$srcdir" = x.; then
17833 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17834 s/:*\$(srcdir):*/:/
17835 s/:*\${srcdir}:*/:/
17836 s/:*@srcdir@:*/:/
17837 s/^\([^=]*=[ ]*\):*/\1/
17838 s/:*$//
17839 s/^[^=]*=[ ]*$//
17843 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17844 fi # test -n "$CONFIG_FILES"
17846 # Set up the scripts for CONFIG_HEADERS section.
17847 # No need to generate them if there are no CONFIG_HEADERS.
17848 # This happens for instance with `./config.status Makefile'.
17849 if test -n "$CONFIG_HEADERS"; then
17850 cat >"$tmp/defines.awk" <<\_ACAWK ||
17851 BEGIN {
17852 _ACEOF
17854 # Transform confdefs.h into an awk script `defines.awk', embedded as
17855 # here-document in config.status, that substitutes the proper values into
17856 # config.h.in to produce config.h.
17858 # Create a delimiter string that does not exist in confdefs.h, to ease
17859 # handling of long lines.
17860 ac_delim='%!_!# '
17861 for ac_last_try in false false :; do
17862 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
17863 if test -z "$ac_t"; then
17864 break
17865 elif $ac_last_try; then
17866 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
17867 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
17868 { (exit 1); exit 1; }; }
17869 else
17870 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17872 done
17874 # For the awk script, D is an array of macro values keyed by name,
17875 # likewise P contains macro parameters if any. Preserve backslash
17876 # newline sequences.
17878 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17879 sed -n '
17880 s/.\{148\}/&'"$ac_delim"'/g
17881 t rset
17882 :rset
17883 s/^[ ]*#[ ]*define[ ][ ]*/ /
17884 t def
17886 :def
17887 s/\\$//
17888 t bsnl
17889 s/["\\]/\\&/g
17890 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17891 D["\1"]=" \3"/p
17892 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17894 :bsnl
17895 s/["\\]/\\&/g
17896 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17897 D["\1"]=" \3\\\\\\n"\\/p
17898 t cont
17899 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17900 t cont
17902 :cont
17904 s/.\{148\}/&'"$ac_delim"'/g
17905 t clear
17906 :clear
17907 s/\\$//
17908 t bsnlc
17909 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17911 :bsnlc
17912 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17913 b cont
17914 ' <confdefs.h | sed '
17915 s/'"$ac_delim"'/"\\\
17916 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17918 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17919 for (key in D) D_is_set[key] = 1
17920 FS = "\a"
17922 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17923 line = \$ 0
17924 split(line, arg, " ")
17925 if (arg[1] == "#") {
17926 defundef = arg[2]
17927 mac1 = arg[3]
17928 } else {
17929 defundef = substr(arg[1], 2)
17930 mac1 = arg[2]
17932 split(mac1, mac2, "(") #)
17933 macro = mac2[1]
17934 if (D_is_set[macro]) {
17935 # Preserve the white space surrounding the "#".
17936 prefix = substr(line, 1, index(line, defundef) - 1)
17937 print prefix "define", macro P[macro] D[macro]
17938 next
17939 } else {
17940 # Replace #undef with comments. This is necessary, for example,
17941 # in the case of _POSIX_SOURCE, which is predefined and required
17942 # on some systems where configure will not decide to define it.
17943 if (defundef == "undef") {
17944 print "/*", line, "*/"
17945 next
17949 { print }
17950 _ACAWK
17951 _ACEOF
17952 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17953 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
17954 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
17955 { (exit 1); exit 1; }; }
17956 fi # test -n "$CONFIG_HEADERS"
17959 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
17960 shift
17961 for ac_tag
17963 case $ac_tag in
17964 :[FHLC]) ac_mode=$ac_tag; continue;;
17965 esac
17966 case $ac_mode$ac_tag in
17967 :[FHL]*:*);;
17968 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
17969 $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
17970 { (exit 1); exit 1; }; };;
17971 :[FH]-) ac_tag=-:-;;
17972 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17973 esac
17974 ac_save_IFS=$IFS
17975 IFS=:
17976 set x $ac_tag
17977 IFS=$ac_save_IFS
17978 shift
17979 ac_file=$1
17980 shift
17982 case $ac_mode in
17983 :L) ac_source=$1;;
17984 :[FH])
17985 ac_file_inputs=
17986 for ac_f
17988 case $ac_f in
17989 -) ac_f="$tmp/stdin";;
17990 *) # Look for the file first in the build tree, then in the source tree
17991 # (if the path is not absolute). The absolute path cannot be DOS-style,
17992 # because $ac_f cannot contain `:'.
17993 test -f "$ac_f" ||
17994 case $ac_f in
17995 [\\/$]*) false;;
17996 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17997 esac ||
17998 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
17999 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
18000 { (exit 1); exit 1; }; };;
18001 esac
18002 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18003 ac_file_inputs="$ac_file_inputs '$ac_f'"
18004 done
18006 # Let's still pretend it is `configure' which instantiates (i.e., don't
18007 # use $as_me), people would be surprised to read:
18008 # /* config.h. Generated by config.status. */
18009 configure_input='Generated from '`
18010 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18011 `' by configure.'
18012 if test x"$ac_file" != x-; then
18013 configure_input="$ac_file. $configure_input"
18014 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
18015 $as_echo "$as_me: creating $ac_file" >&6;}
18017 # Neutralize special characters interpreted by sed in replacement strings.
18018 case $configure_input in #(
18019 *\&* | *\|* | *\\* )
18020 ac_sed_conf_input=`$as_echo "$configure_input" |
18021 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18022 *) ac_sed_conf_input=$configure_input;;
18023 esac
18025 case $ac_tag in
18026 *:-:* | *:-) cat >"$tmp/stdin" \
18027 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18028 $as_echo "$as_me: error: could not create $ac_file" >&2;}
18029 { (exit 1); exit 1; }; } ;;
18030 esac
18032 esac
18034 ac_dir=`$as_dirname -- "$ac_file" ||
18035 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18036 X"$ac_file" : 'X\(//\)[^/]' \| \
18037 X"$ac_file" : 'X\(//\)$' \| \
18038 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18039 $as_echo X"$ac_file" |
18040 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18041 s//\1/
18044 /^X\(\/\/\)[^/].*/{
18045 s//\1/
18048 /^X\(\/\/\)$/{
18049 s//\1/
18052 /^X\(\/\).*/{
18053 s//\1/
18056 s/.*/./; q'`
18057 { as_dir="$ac_dir"
18058 case $as_dir in #(
18059 -*) as_dir=./$as_dir;;
18060 esac
18061 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
18062 as_dirs=
18063 while :; do
18064 case $as_dir in #(
18065 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18066 *) as_qdir=$as_dir;;
18067 esac
18068 as_dirs="'$as_qdir' $as_dirs"
18069 as_dir=`$as_dirname -- "$as_dir" ||
18070 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18071 X"$as_dir" : 'X\(//\)[^/]' \| \
18072 X"$as_dir" : 'X\(//\)$' \| \
18073 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18074 $as_echo X"$as_dir" |
18075 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18076 s//\1/
18079 /^X\(\/\/\)[^/].*/{
18080 s//\1/
18083 /^X\(\/\/\)$/{
18084 s//\1/
18087 /^X\(\/\).*/{
18088 s//\1/
18091 s/.*/./; q'`
18092 test -d "$as_dir" && break
18093 done
18094 test -z "$as_dirs" || eval "mkdir $as_dirs"
18095 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
18096 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
18097 { (exit 1); exit 1; }; }; }
18098 ac_builddir=.
18100 case "$ac_dir" in
18101 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18103 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18104 # A ".." for each directory in $ac_dir_suffix.
18105 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18106 case $ac_top_builddir_sub in
18107 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18108 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18109 esac ;;
18110 esac
18111 ac_abs_top_builddir=$ac_pwd
18112 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18113 # for backward compatibility:
18114 ac_top_builddir=$ac_top_build_prefix
18116 case $srcdir in
18117 .) # We are building in place.
18118 ac_srcdir=.
18119 ac_top_srcdir=$ac_top_builddir_sub
18120 ac_abs_top_srcdir=$ac_pwd ;;
18121 [\\/]* | ?:[\\/]* ) # Absolute name.
18122 ac_srcdir=$srcdir$ac_dir_suffix;
18123 ac_top_srcdir=$srcdir
18124 ac_abs_top_srcdir=$srcdir ;;
18125 *) # Relative name.
18126 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18127 ac_top_srcdir=$ac_top_build_prefix$srcdir
18128 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18129 esac
18130 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18133 case $ac_mode in
18136 # CONFIG_FILE
18139 _ACEOF
18141 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18142 # If the template does not know about datarootdir, expand it.
18143 # FIXME: This hack should be removed a few years after 2.60.
18144 ac_datarootdir_hack=; ac_datarootdir_seen=
18146 ac_sed_dataroot='
18147 /datarootdir/ {
18151 /@datadir@/p
18152 /@docdir@/p
18153 /@infodir@/p
18154 /@localedir@/p
18155 /@mandir@/p
18157 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18158 *datarootdir*) ac_datarootdir_seen=yes;;
18159 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18160 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18161 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18162 _ACEOF
18163 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18164 ac_datarootdir_hack='
18165 s&@datadir@&$datadir&g
18166 s&@docdir@&$docdir&g
18167 s&@infodir@&$infodir&g
18168 s&@localedir@&$localedir&g
18169 s&@mandir@&$mandir&g
18170 s&\\\${datarootdir}&$datarootdir&g' ;;
18171 esac
18172 _ACEOF
18174 # Neutralize VPATH when `$srcdir' = `.'.
18175 # Shell code in configure.ac might set extrasub.
18176 # FIXME: do we really want to maintain this feature?
18177 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18178 ac_sed_extra="$ac_vpsub
18179 $extrasub
18180 _ACEOF
18181 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18183 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18184 s|@configure_input@|$ac_sed_conf_input|;t t
18185 s&@top_builddir@&$ac_top_builddir_sub&;t t
18186 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18187 s&@srcdir@&$ac_srcdir&;t t
18188 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18189 s&@top_srcdir@&$ac_top_srcdir&;t t
18190 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18191 s&@builddir@&$ac_builddir&;t t
18192 s&@abs_builddir@&$ac_abs_builddir&;t t
18193 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18194 $ac_datarootdir_hack
18196 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
18197 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18198 $as_echo "$as_me: error: could not create $ac_file" >&2;}
18199 { (exit 1); exit 1; }; }
18201 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18202 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
18203 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
18204 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18205 which seems to be undefined. Please make sure it is defined." >&5
18206 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18207 which seems to be undefined. Please make sure it is defined." >&2;}
18209 rm -f "$tmp/stdin"
18210 case $ac_file in
18211 -) cat "$tmp/out" && rm -f "$tmp/out";;
18212 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18213 esac \
18214 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18215 $as_echo "$as_me: error: could not create $ac_file" >&2;}
18216 { (exit 1); exit 1; }; }
18220 # CONFIG_HEADER
18222 if test x"$ac_file" != x-; then
18224 $as_echo "/* $configure_input */" \
18225 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18226 } >"$tmp/config.h" \
18227 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18228 $as_echo "$as_me: error: could not create $ac_file" >&2;}
18229 { (exit 1); exit 1; }; }
18230 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18231 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18232 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18233 else
18234 rm -f "$ac_file"
18235 mv "$tmp/config.h" "$ac_file" \
18236 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18237 $as_echo "$as_me: error: could not create $ac_file" >&2;}
18238 { (exit 1); exit 1; }; }
18240 else
18241 $as_echo "/* $configure_input */" \
18242 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18243 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
18244 $as_echo "$as_me: error: could not create -" >&2;}
18245 { (exit 1); exit 1; }; }
18250 esac
18252 done # for ac_tag
18255 { (exit 0); exit 0; }
18256 _ACEOF
18257 chmod +x $CONFIG_STATUS
18258 ac_clean_files=$ac_clean_files_save
18260 test $ac_write_fail = 0 ||
18261 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
18262 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
18263 { (exit 1); exit 1; }; }
18266 # configure is writing to config.log, and then calls config.status.
18267 # config.status does its own redirection, appending to config.log.
18268 # Unfortunately, on DOS this fails, as config.log is still kept open
18269 # by configure, so config.status won't be able to write to it; its
18270 # output is simply discarded. So we exec the FD to /dev/null,
18271 # effectively closing config.log, so it can be properly (re)opened and
18272 # appended to by config.status. When coming back to configure, we
18273 # need to make the FD available again.
18274 if test "$no_create" != yes; then
18275 ac_cs_success=:
18276 ac_config_status_args=
18277 test "$silent" = yes &&
18278 ac_config_status_args="$ac_config_status_args --quiet"
18279 exec 5>/dev/null
18280 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18281 exec 5>>auto/config.log
18282 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18283 # would make configure fail if this is the last instruction.
18284 $ac_cs_success || { (exit 1); exit 1; }
18286 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18287 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
18288 $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}