Merged from the latest developing branch.
[MacVim.git] / src / auto / configure
blobc2f1d027b3ba74d995818eb7be9e2e489804f18a
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 as_nl='
42 export as_nl
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83 as_unset=unset
84 else
85 as_unset=false
89 # IFS
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
94 IFS=" "" $as_nl"
96 # Find who we are. Look in the path if we contain no directory separator.
97 case $0 in
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 for as_dir in $PATH
102 IFS=$as_save_IFS
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 done
106 IFS=$as_save_IFS
109 esac
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
113 as_myself=$0
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
137 as_expr=expr
138 else
139 as_expr=false
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143 as_basename=basename
144 else
145 as_basename=false
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154 $as_echo X/"$0" |
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 s//\1/
159 /^X\/\(\/\/\)$/{
160 s//\1/
163 /^X\/\(\/\).*/{
164 s//\1/
167 s/.*/./; q'`
169 # CDPATH.
170 $as_unset CDPATH
173 if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
175 as_have_required=yes
176 else
177 as_have_required=no
180 if test $as_have_required = yes && (eval ":
181 (as_func_return () {
182 (exit \$1)
184 as_func_success () {
185 as_func_return 0
187 as_func_failure () {
188 as_func_return 1
190 as_func_ret_success () {
191 return 0
193 as_func_ret_failure () {
194 return 1
197 exitcode=0
198 if as_func_success; then
200 else
201 exitcode=1
202 echo as_func_success failed.
205 if as_func_failure; then
206 exitcode=1
207 echo as_func_failure succeeded.
210 if as_func_ret_success; then
212 else
213 exitcode=1
214 echo as_func_ret_success failed.
217 if as_func_ret_failure; then
218 exitcode=1
219 echo as_func_ret_failure succeeded.
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
224 else
225 exitcode=1
226 echo positional parameters were not saved.
229 test \$exitcode = 0) || { (exit 1); exit 1; }
232 as_lineno_1=\$LINENO
233 as_lineno_2=\$LINENO
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
238 else
239 as_candidate_shells=
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
243 IFS=$as_save_IFS
244 test -z "$as_dir" && as_dir=.
245 case $as_dir in
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249 done;;
250 esac
251 done
252 IFS=$as_save_IFS
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 emulate sh
261 NULLCMD=:
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266 else
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
269 esac
275 _ASEOF
276 }; then
277 CONFIG_SHELL=$as_shell
278 as_have_required=yes
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281 emulate sh
282 NULLCMD=:
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
286 setopt NO_GLOB_SUBST
287 else
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
290 esac
296 (as_func_return () {
297 (exit $1)
299 as_func_success () {
300 as_func_return 0
302 as_func_failure () {
303 as_func_return 1
305 as_func_ret_success () {
306 return 0
308 as_func_ret_failure () {
309 return 1
312 exitcode=0
313 if as_func_success; then
315 else
316 exitcode=1
317 echo as_func_success failed.
320 if as_func_failure; then
321 exitcode=1
322 echo as_func_failure succeeded.
325 if as_func_ret_success; then
327 else
328 exitcode=1
329 echo as_func_ret_success failed.
332 if as_func_ret_failure; then
333 exitcode=1
334 echo as_func_ret_failure succeeded.
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
339 else
340 exitcode=1
341 echo positional parameters were not saved.
344 test $exitcode = 0) || { (exit 1); exit 1; }
347 as_lineno_1=$LINENO
348 as_lineno_2=$LINENO
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
352 _ASEOF
353 }; then
354 break
359 done
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364 done
365 export CONFIG_SHELL
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
385 (eval "as_func_return () {
386 (exit \$1)
388 as_func_success () {
389 as_func_return 0
391 as_func_failure () {
392 as_func_return 1
394 as_func_ret_success () {
395 return 0
397 as_func_ret_failure () {
398 return 1
401 exitcode=0
402 if as_func_success; then
404 else
405 exitcode=1
406 echo as_func_success failed.
409 if as_func_failure; then
410 exitcode=1
411 echo as_func_failure succeeded.
414 if as_func_ret_success; then
416 else
417 exitcode=1
418 echo as_func_ret_success failed.
421 if as_func_ret_failure; then
422 exitcode=1
423 echo as_func_ret_failure succeeded.
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
428 else
429 exitcode=1
430 echo positional parameters were not saved.
433 test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
443 as_lineno_1=$LINENO
444 as_lineno_2=$LINENO
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
454 # case at line end.
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
458 sed -n '
460 /[$]LINENO/=
461 ' <$as_myself |
462 sed '
463 s/[$]LINENO.*/&-/
464 t lineno
466 :lineno
468 :loop
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470 t loop
471 s/-\n.*//
472 ' >$as_me.lineno &&
473 chmod +x "$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
480 . "./$as_me.lineno"
481 # Exit status is that of the last command.
482 exit
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487 as_dirname=dirname
488 else
489 as_dirname=false
492 ECHO_C= ECHO_N= ECHO_T=
493 case `echo -n x` in
494 -n*)
495 case `echo 'x\c'` in
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
497 *) ECHO_C='\c';;
498 esac;;
500 ECHO_N='-n';;
501 esac
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
504 as_expr=expr
505 else
506 as_expr=false
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
512 else
513 rm -f conf$$.dir
514 mkdir conf$$.dir 2>/dev/null
516 if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
518 as_ln_s='ln -s'
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524 as_ln_s='cp -p'
525 elif ln conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s=ln
527 else
528 as_ln_s='cp -p'
530 else
531 as_ln_s='cp -p'
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
536 if mkdir -p . 2>/dev/null; then
537 as_mkdir_p=:
538 else
539 test -d ./-p && rmdir ./-p
540 as_mkdir_p=false
543 if test -x / >/dev/null 2>&1; then
544 as_test_x='test -x'
545 else
546 if ls -dL / >/dev/null 2>&1; then
547 as_ls_L_option=L
548 else
549 as_ls_L_option=
551 as_test_x='
552 eval sh -c '\''
553 if test -d "$1"; then
554 test -d "$1/.";
555 else
556 case $1 in
557 -*)set "./$1";;
558 esac;
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
561 '\'' sh
564 as_executable_p=$as_test_x
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
574 exec 7<&0 </dev/null 6>&1
576 # Name of the host.
577 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578 # so uname gets run too.
579 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
582 # Initializations.
584 ac_default_prefix=/usr/local
585 ac_clean_files=
586 ac_config_libobj_dir=.
587 LIBOBJS=
588 cross_compiling=no
589 subdirs=
590 MFLAGS=
591 MAKEFLAGS=
592 SHELL=${CONFIG_SHELL-/bin/sh}
594 # Identity of this package.
595 PACKAGE_NAME=
596 PACKAGE_TARNAME=
597 PACKAGE_VERSION=
598 PACKAGE_STRING=
599 PACKAGE_BUGREPORT=
601 ac_unique_file="vim.h"
602 # Factoring default headers for most tests.
603 ac_includes_default="\
604 #include <stdio.h>
605 #ifdef HAVE_SYS_TYPES_H
606 # include <sys/types.h>
607 #endif
608 #ifdef HAVE_SYS_STAT_H
609 # include <sys/stat.h>
610 #endif
611 #ifdef STDC_HEADERS
612 # include <stdlib.h>
613 # include <stddef.h>
614 #else
615 # ifdef HAVE_STDLIB_H
616 # include <stdlib.h>
617 # endif
618 #endif
619 #ifdef HAVE_STRING_H
620 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
621 # include <memory.h>
622 # endif
623 # include <string.h>
624 #endif
625 #ifdef HAVE_STRINGS_H
626 # include <strings.h>
627 #endif
628 #ifdef HAVE_INTTYPES_H
629 # include <inttypes.h>
630 #endif
631 #ifdef HAVE_STDINT_H
632 # include <stdint.h>
633 #endif
634 #ifdef HAVE_UNISTD_H
635 # include <unistd.h>
636 #endif"
638 ac_subst_vars='LTLIBOBJS
639 LIBOBJS
640 DEPEND_CFLAGS_FILTER
641 MAKEMO
642 MSGFMT
643 INSTALL_TOOL_LANGS
644 INSTALL_LANGS
645 TAGPRG
646 HANGULIN_OBJ
647 HANGULIN_SRC
648 GUI_X_LIBS
649 GUITYPE
650 GUI_LIB_LOC
651 GUI_INC_LOC
652 NARROW_PROTO
653 MOTIF_LIBNAME
654 GNOME_CONFIG
655 GNOME_INCLUDEDIR
656 GNOME_LIBDIR
657 GNOME_LIBS
658 GTK_LIBNAME
659 GTK_LIBS
660 GTK_CFLAGS
661 PKG_CONFIG
662 GTK12_CONFIG
663 GTK_CONFIG
664 X_LIB
665 X_EXTRA_LIBS
666 X_LIBS
667 X_PRE_LIBS
668 X_CFLAGS
669 XMKMF
670 xmkmfpath
671 SNIFF_OBJ
672 SNIFF_SRC
673 NETBEANS_OBJ
674 NETBEANS_SRC
675 WORKSHOP_OBJ
676 WORKSHOP_SRC
677 RUBY_LIBS
678 RUBY_CFLAGS
679 RUBY_PRO
680 RUBY_OBJ
681 RUBY_SRC
682 vi_cv_path_ruby
683 TCL_LIBS
684 TCL_CFLAGS
685 TCL_PRO
686 TCL_OBJ
687 TCL_SRC
688 vi_cv_path_tcl
689 PYTHON_OBJ
690 PYTHON_SRC
691 PYTHON_CFLAGS
692 PYTHON_GETPATH_CFLAGS
693 PYTHON_LIBS
694 PYTHON_CONFDIR
695 vi_cv_path_python
696 PERL_LIBS
697 PERL_CFLAGS
698 PERL_PRO
699 PERL_OBJ
700 PERL_SRC
701 shrpenv
702 vi_cv_perllib
703 vi_cv_path_perl
704 MZSCHEME_MZC
705 MZSCHEME_EXTRA
706 MZSCHEME_CFLAGS
707 MZSCHEME_LIBS
708 MZSCHEME_PRO
709 MZSCHEME_OBJ
710 MZSCHEME_SRC
711 vi_cv_path_mzscheme
712 compiledby
713 dogvimdiff
714 dovimdiff
715 line_break
716 VIEWNAME
717 EXNAME
718 VIMNAME
719 OS_EXTRA_OBJ
720 OS_EXTRA_SRC
721 CPP_MM
722 STRIP
724 EGREP
725 GREP
727 OBJEXT
728 EXEEXT
729 ac_ct_CC
730 CPPFLAGS
731 LDFLAGS
732 CFLAGS
734 SET_MAKE
735 target_alias
736 host_alias
737 build_alias
738 LIBS
739 ECHO_T
740 ECHO_N
741 ECHO_C
742 DEFS
743 mandir
744 localedir
745 libdir
746 psdir
747 pdfdir
748 dvidir
749 htmldir
750 infodir
751 docdir
752 oldincludedir
753 includedir
754 localstatedir
755 sharedstatedir
756 sysconfdir
757 datadir
758 datarootdir
759 libexecdir
760 sbindir
761 bindir
762 program_transform_name
763 prefix
764 exec_prefix
765 PACKAGE_BUGREPORT
766 PACKAGE_STRING
767 PACKAGE_VERSION
768 PACKAGE_TARNAME
769 PACKAGE_NAME
770 PATH_SEPARATOR
771 SHELL'
772 ac_subst_files=''
773 ac_user_opts='
774 enable_option_checking
775 enable_darwin
776 with_mac_arch
777 with_local_dir
778 with_vim_name
779 with_ex_name
780 with_view_name
781 with_global_runtime
782 with_modified_by
783 enable_selinux
784 with_features
785 with_compiledby
786 enable_xsmp
787 enable_xsmp_interact
788 enable_mzschemeinterp
789 with_plthome
790 enable_perlinterp
791 enable_pythoninterp
792 with_python_config_dir
793 enable_tclinterp
794 with_tclsh
795 enable_rubyinterp
796 with_ruby_command
797 enable_cscope
798 enable_workshop
799 enable_netbeans
800 enable_sniff
801 enable_multibyte
802 enable_hangulinput
803 enable_xim
804 enable_fontset
805 with_x
806 enable_gui
807 enable_gtk_check
808 enable_gtk2_check
809 enable_gnome_check
810 enable_motif_check
811 enable_athena_check
812 enable_nextaw_check
813 enable_carbon_check
814 with_gtk_prefix
815 with_gtk_exec_prefix
816 enable_gtktest
817 with_gnome_includes
818 with_gnome_libs
819 with_gnome
820 with_motif_lib
821 with_tlib
822 enable_acl
823 enable_gpm
824 enable_sysmouse
825 enable_nls
827 ac_precious_vars='build_alias
828 host_alias
829 target_alias
831 CFLAGS
832 LDFLAGS
833 LIBS
834 CPPFLAGS
836 XMKMF'
839 # Initialize some variables set by options.
840 ac_init_help=
841 ac_init_version=false
842 ac_unrecognized_opts=
843 ac_unrecognized_sep=
844 # The variables have the same names as the options, with
845 # dashes changed to underlines.
846 cache_file=/dev/null
847 exec_prefix=NONE
848 no_create=
849 no_recursion=
850 prefix=NONE
851 program_prefix=NONE
852 program_suffix=NONE
853 program_transform_name=s,x,x,
854 silent=
855 site=
856 srcdir=
857 verbose=
858 x_includes=NONE
859 x_libraries=NONE
861 # Installation directory options.
862 # These are left unexpanded so users can "make install exec_prefix=/foo"
863 # and all the variables that are supposed to be based on exec_prefix
864 # by default will actually change.
865 # Use braces instead of parens because sh, perl, etc. also accept them.
866 # (The list follows the same order as the GNU Coding Standards.)
867 bindir='${exec_prefix}/bin'
868 sbindir='${exec_prefix}/sbin'
869 libexecdir='${exec_prefix}/libexec'
870 datarootdir='${prefix}/share'
871 datadir='${datarootdir}'
872 sysconfdir='${prefix}/etc'
873 sharedstatedir='${prefix}/com'
874 localstatedir='${prefix}/var'
875 includedir='${prefix}/include'
876 oldincludedir='/usr/include'
877 docdir='${datarootdir}/doc/${PACKAGE}'
878 infodir='${datarootdir}/info'
879 htmldir='${docdir}'
880 dvidir='${docdir}'
881 pdfdir='${docdir}'
882 psdir='${docdir}'
883 libdir='${exec_prefix}/lib'
884 localedir='${datarootdir}/locale'
885 mandir='${datarootdir}/man'
887 ac_prev=
888 ac_dashdash=
889 for ac_option
891 # If the previous option needs an argument, assign it.
892 if test -n "$ac_prev"; then
893 eval $ac_prev=\$ac_option
894 ac_prev=
895 continue
898 case $ac_option in
899 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
900 *) ac_optarg=yes ;;
901 esac
903 # Accept the important Cygnus configure options, so we can diagnose typos.
905 case $ac_dashdash$ac_option in
907 ac_dashdash=yes ;;
909 -bindir | --bindir | --bindi | --bind | --bin | --bi)
910 ac_prev=bindir ;;
911 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
912 bindir=$ac_optarg ;;
914 -build | --build | --buil | --bui | --bu)
915 ac_prev=build_alias ;;
916 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
917 build_alias=$ac_optarg ;;
919 -cache-file | --cache-file | --cache-fil | --cache-fi \
920 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
921 ac_prev=cache_file ;;
922 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
923 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
924 cache_file=$ac_optarg ;;
926 --config-cache | -C)
927 cache_file=config.cache ;;
929 -datadir | --datadir | --datadi | --datad)
930 ac_prev=datadir ;;
931 -datadir=* | --datadir=* | --datadi=* | --datad=*)
932 datadir=$ac_optarg ;;
934 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
935 | --dataroo | --dataro | --datar)
936 ac_prev=datarootdir ;;
937 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
938 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
939 datarootdir=$ac_optarg ;;
941 -disable-* | --disable-*)
942 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
943 # Reject names that are not valid shell variable names.
944 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
945 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
946 { (exit 1); exit 1; }; }
947 ac_useropt_orig=$ac_useropt
948 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
949 case $ac_user_opts in
951 "enable_$ac_useropt"
952 "*) ;;
953 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
954 ac_unrecognized_sep=', ';;
955 esac
956 eval enable_$ac_useropt=no ;;
958 -docdir | --docdir | --docdi | --doc | --do)
959 ac_prev=docdir ;;
960 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
961 docdir=$ac_optarg ;;
963 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
964 ac_prev=dvidir ;;
965 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
966 dvidir=$ac_optarg ;;
968 -enable-* | --enable-*)
969 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
970 # Reject names that are not valid shell variable names.
971 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
972 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
973 { (exit 1); exit 1; }; }
974 ac_useropt_orig=$ac_useropt
975 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
976 case $ac_user_opts in
978 "enable_$ac_useropt"
979 "*) ;;
980 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
981 ac_unrecognized_sep=', ';;
982 esac
983 eval enable_$ac_useropt=\$ac_optarg ;;
985 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
986 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
987 | --exec | --exe | --ex)
988 ac_prev=exec_prefix ;;
989 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
990 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
991 | --exec=* | --exe=* | --ex=*)
992 exec_prefix=$ac_optarg ;;
994 -gas | --gas | --ga | --g)
995 # Obsolete; use --with-gas.
996 with_gas=yes ;;
998 -help | --help | --hel | --he | -h)
999 ac_init_help=long ;;
1000 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1001 ac_init_help=recursive ;;
1002 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1003 ac_init_help=short ;;
1005 -host | --host | --hos | --ho)
1006 ac_prev=host_alias ;;
1007 -host=* | --host=* | --hos=* | --ho=*)
1008 host_alias=$ac_optarg ;;
1010 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1011 ac_prev=htmldir ;;
1012 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1013 | --ht=*)
1014 htmldir=$ac_optarg ;;
1016 -includedir | --includedir | --includedi | --included | --include \
1017 | --includ | --inclu | --incl | --inc)
1018 ac_prev=includedir ;;
1019 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1020 | --includ=* | --inclu=* | --incl=* | --inc=*)
1021 includedir=$ac_optarg ;;
1023 -infodir | --infodir | --infodi | --infod | --info | --inf)
1024 ac_prev=infodir ;;
1025 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1026 infodir=$ac_optarg ;;
1028 -libdir | --libdir | --libdi | --libd)
1029 ac_prev=libdir ;;
1030 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1031 libdir=$ac_optarg ;;
1033 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1034 | --libexe | --libex | --libe)
1035 ac_prev=libexecdir ;;
1036 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1037 | --libexe=* | --libex=* | --libe=*)
1038 libexecdir=$ac_optarg ;;
1040 -localedir | --localedir | --localedi | --localed | --locale)
1041 ac_prev=localedir ;;
1042 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1043 localedir=$ac_optarg ;;
1045 -localstatedir | --localstatedir | --localstatedi | --localstated \
1046 | --localstate | --localstat | --localsta | --localst | --locals)
1047 ac_prev=localstatedir ;;
1048 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1049 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1050 localstatedir=$ac_optarg ;;
1052 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1053 ac_prev=mandir ;;
1054 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1055 mandir=$ac_optarg ;;
1057 -nfp | --nfp | --nf)
1058 # Obsolete; use --without-fp.
1059 with_fp=no ;;
1061 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1062 | --no-cr | --no-c | -n)
1063 no_create=yes ;;
1065 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1066 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1067 no_recursion=yes ;;
1069 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1070 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1071 | --oldin | --oldi | --old | --ol | --o)
1072 ac_prev=oldincludedir ;;
1073 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1074 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1075 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1076 oldincludedir=$ac_optarg ;;
1078 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1079 ac_prev=prefix ;;
1080 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1081 prefix=$ac_optarg ;;
1083 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1084 | --program-pre | --program-pr | --program-p)
1085 ac_prev=program_prefix ;;
1086 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1087 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1088 program_prefix=$ac_optarg ;;
1090 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1091 | --program-suf | --program-su | --program-s)
1092 ac_prev=program_suffix ;;
1093 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1094 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1095 program_suffix=$ac_optarg ;;
1097 -program-transform-name | --program-transform-name \
1098 | --program-transform-nam | --program-transform-na \
1099 | --program-transform-n | --program-transform- \
1100 | --program-transform | --program-transfor \
1101 | --program-transfo | --program-transf \
1102 | --program-trans | --program-tran \
1103 | --progr-tra | --program-tr | --program-t)
1104 ac_prev=program_transform_name ;;
1105 -program-transform-name=* | --program-transform-name=* \
1106 | --program-transform-nam=* | --program-transform-na=* \
1107 | --program-transform-n=* | --program-transform-=* \
1108 | --program-transform=* | --program-transfor=* \
1109 | --program-transfo=* | --program-transf=* \
1110 | --program-trans=* | --program-tran=* \
1111 | --progr-tra=* | --program-tr=* | --program-t=*)
1112 program_transform_name=$ac_optarg ;;
1114 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1115 ac_prev=pdfdir ;;
1116 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1117 pdfdir=$ac_optarg ;;
1119 -psdir | --psdir | --psdi | --psd | --ps)
1120 ac_prev=psdir ;;
1121 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1122 psdir=$ac_optarg ;;
1124 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1125 | -silent | --silent | --silen | --sile | --sil)
1126 silent=yes ;;
1128 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1129 ac_prev=sbindir ;;
1130 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1131 | --sbi=* | --sb=*)
1132 sbindir=$ac_optarg ;;
1134 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1135 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1136 | --sharedst | --shareds | --shared | --share | --shar \
1137 | --sha | --sh)
1138 ac_prev=sharedstatedir ;;
1139 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1140 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1141 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1142 | --sha=* | --sh=*)
1143 sharedstatedir=$ac_optarg ;;
1145 -site | --site | --sit)
1146 ac_prev=site ;;
1147 -site=* | --site=* | --sit=*)
1148 site=$ac_optarg ;;
1150 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1151 ac_prev=srcdir ;;
1152 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1153 srcdir=$ac_optarg ;;
1155 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1156 | --syscon | --sysco | --sysc | --sys | --sy)
1157 ac_prev=sysconfdir ;;
1158 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1159 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1160 sysconfdir=$ac_optarg ;;
1162 -target | --target | --targe | --targ | --tar | --ta | --t)
1163 ac_prev=target_alias ;;
1164 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1165 target_alias=$ac_optarg ;;
1167 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1168 verbose=yes ;;
1170 -version | --version | --versio | --versi | --vers | -V)
1171 ac_init_version=: ;;
1173 -with-* | --with-*)
1174 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1175 # Reject names that are not valid shell variable names.
1176 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1177 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1178 { (exit 1); exit 1; }; }
1179 ac_useropt_orig=$ac_useropt
1180 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1181 case $ac_user_opts in
1183 "with_$ac_useropt"
1184 "*) ;;
1185 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1186 ac_unrecognized_sep=', ';;
1187 esac
1188 eval with_$ac_useropt=\$ac_optarg ;;
1190 -without-* | --without-*)
1191 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1192 # Reject names that are not valid shell variable names.
1193 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1194 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1195 { (exit 1); exit 1; }; }
1196 ac_useropt_orig=$ac_useropt
1197 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1198 case $ac_user_opts in
1200 "with_$ac_useropt"
1201 "*) ;;
1202 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1203 ac_unrecognized_sep=', ';;
1204 esac
1205 eval with_$ac_useropt=no ;;
1207 --x)
1208 # Obsolete; use --with-x.
1209 with_x=yes ;;
1211 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1212 | --x-incl | --x-inc | --x-in | --x-i)
1213 ac_prev=x_includes ;;
1214 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1215 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1216 x_includes=$ac_optarg ;;
1218 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1219 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1220 ac_prev=x_libraries ;;
1221 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1222 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1223 x_libraries=$ac_optarg ;;
1225 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1226 Try \`$0 --help' for more information." >&2
1227 { (exit 1); exit 1; }; }
1230 *=*)
1231 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1232 # Reject names that are not valid shell variable names.
1233 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1234 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1235 { (exit 1); exit 1; }; }
1236 eval $ac_envvar=\$ac_optarg
1237 export $ac_envvar ;;
1240 # FIXME: should be removed in autoconf 3.0.
1241 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1242 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1243 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1244 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1247 esac
1248 done
1250 if test -n "$ac_prev"; then
1251 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1252 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1253 { (exit 1); exit 1; }; }
1256 if test -n "$ac_unrecognized_opts"; then
1257 case $enable_option_checking in
1258 no) ;;
1259 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1260 { (exit 1); exit 1; }; } ;;
1261 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1262 esac
1265 # Check all directory arguments for consistency.
1266 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1267 datadir sysconfdir sharedstatedir localstatedir includedir \
1268 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1269 libdir localedir mandir
1271 eval ac_val=\$$ac_var
1272 # Remove trailing slashes.
1273 case $ac_val in
1274 */ )
1275 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1276 eval $ac_var=\$ac_val;;
1277 esac
1278 # Be sure to have absolute directory names.
1279 case $ac_val in
1280 [\\/$]* | ?:[\\/]* ) continue;;
1281 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1282 esac
1283 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1284 { (exit 1); exit 1; }; }
1285 done
1287 # There might be people who depend on the old broken behavior: `$host'
1288 # used to hold the argument of --host etc.
1289 # FIXME: To remove some day.
1290 build=$build_alias
1291 host=$host_alias
1292 target=$target_alias
1294 # FIXME: To remove some day.
1295 if test "x$host_alias" != x; then
1296 if test "x$build_alias" = x; then
1297 cross_compiling=maybe
1298 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1299 If a cross compiler is detected then cross compile mode will be used." >&2
1300 elif test "x$build_alias" != "x$host_alias"; then
1301 cross_compiling=yes
1305 ac_tool_prefix=
1306 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1308 test "$silent" = yes && exec 6>/dev/null
1311 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1312 ac_ls_di=`ls -di .` &&
1313 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1314 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1315 { (exit 1); exit 1; }; }
1316 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1317 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1318 { (exit 1); exit 1; }; }
1321 # Find the source files, if location was not specified.
1322 if test -z "$srcdir"; then
1323 ac_srcdir_defaulted=yes
1324 # Try the directory containing this script, then the parent directory.
1325 ac_confdir=`$as_dirname -- "$as_myself" ||
1326 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1327 X"$as_myself" : 'X\(//\)[^/]' \| \
1328 X"$as_myself" : 'X\(//\)$' \| \
1329 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1330 $as_echo X"$as_myself" |
1331 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1332 s//\1/
1335 /^X\(\/\/\)[^/].*/{
1336 s//\1/
1339 /^X\(\/\/\)$/{
1340 s//\1/
1343 /^X\(\/\).*/{
1344 s//\1/
1347 s/.*/./; q'`
1348 srcdir=$ac_confdir
1349 if test ! -r "$srcdir/$ac_unique_file"; then
1350 srcdir=..
1352 else
1353 ac_srcdir_defaulted=no
1355 if test ! -r "$srcdir/$ac_unique_file"; then
1356 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1357 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1358 { (exit 1); exit 1; }; }
1360 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1361 ac_abs_confdir=`(
1362 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1363 { (exit 1); exit 1; }; }
1364 pwd)`
1365 # When building in place, set srcdir=.
1366 if test "$ac_abs_confdir" = "$ac_pwd"; then
1367 srcdir=.
1369 # Remove unnecessary trailing slashes from srcdir.
1370 # Double slashes in file names in object file debugging info
1371 # mess up M-x gdb in Emacs.
1372 case $srcdir in
1373 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1374 esac
1375 for ac_var in $ac_precious_vars; do
1376 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1377 eval ac_env_${ac_var}_value=\$${ac_var}
1378 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1379 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1380 done
1383 # Report the --help message.
1385 if test "$ac_init_help" = "long"; then
1386 # Omit some internal or obsolete options to make the list less imposing.
1387 # This message is too long to be a string in the A/UX 3.1 sh.
1388 cat <<_ACEOF
1389 \`configure' configures this package to adapt to many kinds of systems.
1391 Usage: $0 [OPTION]... [VAR=VALUE]...
1393 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1394 VAR=VALUE. See below for descriptions of some of the useful variables.
1396 Defaults for the options are specified in brackets.
1398 Configuration:
1399 -h, --help display this help and exit
1400 --help=short display options specific to this package
1401 --help=recursive display the short help of all the included packages
1402 -V, --version display version information and exit
1403 -q, --quiet, --silent do not print \`checking...' messages
1404 --cache-file=FILE cache test results in FILE [disabled]
1405 -C, --config-cache alias for \`--cache-file=config.cache'
1406 -n, --no-create do not create output files
1407 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1409 Installation directories:
1410 --prefix=PREFIX install architecture-independent files in PREFIX
1411 [$ac_default_prefix]
1412 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1413 [PREFIX]
1415 By default, \`make install' will install all the files in
1416 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1417 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1418 for instance \`--prefix=\$HOME'.
1420 For better control, use the options below.
1422 Fine tuning of the installation directories:
1423 --bindir=DIR user executables [EPREFIX/bin]
1424 --sbindir=DIR system admin executables [EPREFIX/sbin]
1425 --libexecdir=DIR program executables [EPREFIX/libexec]
1426 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1427 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1428 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1429 --libdir=DIR object code libraries [EPREFIX/lib]
1430 --includedir=DIR C header files [PREFIX/include]
1431 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1432 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1433 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1434 --infodir=DIR info documentation [DATAROOTDIR/info]
1435 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1436 --mandir=DIR man documentation [DATAROOTDIR/man]
1437 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1438 --htmldir=DIR html documentation [DOCDIR]
1439 --dvidir=DIR dvi documentation [DOCDIR]
1440 --pdfdir=DIR pdf documentation [DOCDIR]
1441 --psdir=DIR ps documentation [DOCDIR]
1442 _ACEOF
1444 cat <<\_ACEOF
1446 X features:
1447 --x-includes=DIR X include files are in DIR
1448 --x-libraries=DIR X library files are in DIR
1449 _ACEOF
1452 if test -n "$ac_init_help"; then
1454 cat <<\_ACEOF
1456 Optional Features:
1457 --disable-option-checking ignore unrecognized --enable/--with options
1458 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1459 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1460 --disable-darwin Disable Darwin (Mac OS X) support.
1461 --disable-selinux Don't check for SELinux support.
1462 --disable-xsmp Disable XSMP session management
1463 --disable-xsmp-interact Disable XSMP interaction
1464 --enable-mzschemeinterp Include MzScheme interpreter.
1465 --enable-perlinterp Include Perl interpreter.
1466 --enable-pythoninterp Include Python interpreter.
1467 --enable-tclinterp Include Tcl interpreter.
1468 --enable-rubyinterp Include Ruby interpreter.
1469 --enable-cscope Include cscope interface.
1470 --enable-workshop Include Sun Visual Workshop support.
1471 --disable-netbeans Disable NetBeans integration support.
1472 --enable-sniff Include Sniff interface.
1473 --enable-multibyte Include multibyte editing support.
1474 --enable-hangulinput Include Hangul input support.
1475 --enable-xim Include XIM input support.
1476 --enable-fontset Include X fontset output support.
1477 --enable-gui=OPTS X11 GUI default=auto OPTS=auto/no/gtk/gtk2/gnome/gnome2/motif/athena/neXtaw/photon/carbon
1478 --enable-gtk-check If auto-select GUI, check for GTK default=yes
1479 --enable-gtk2-check If GTK GUI, check for GTK+ 2 default=yes
1480 --enable-gnome-check If GTK GUI, check for GNOME default=no
1481 --enable-motif-check If auto-select GUI, check for Motif default=yes
1482 --enable-athena-check If auto-select GUI, check for Athena default=yes
1483 --enable-nextaw-check If auto-select GUI, check for neXtaw default=yes
1484 --enable-carbon-check If auto-select GUI, check for Carbon default=yes
1485 --disable-gtktest Do not try to compile and run a test GTK program
1486 --disable-acl Don't check for ACL support.
1487 --disable-gpm Don't use gpm (Linux mouse daemon).
1488 --disable-sysmouse Don't use sysmouse (mouse in *BSD console).
1489 --disable-nls Don't support NLS (gettext()).
1491 Optional Packages:
1492 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1493 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1494 --with-mac-arch=ARCH current, intel, ppc or both
1495 --with-local-dir=PATH search PATH instead of /usr/local for local libraries.
1496 --without-local-dir do not search /usr/local for local libraries.
1497 --with-vim-name=NAME what to call the Vim executable
1498 --with-ex-name=NAME what to call the Ex executable
1499 --with-view-name=NAME what to call the View executable
1500 --with-global-runtime=DIR global runtime directory in 'runtimepath'
1501 --with-modified-by=NAME name of who modified a release version
1502 --with-features=TYPE tiny, small, normal, big or huge (default: normal)
1503 --with-compiledby=NAME name to show in :version message
1504 --with-plthome=PLTHOME Use PLTHOME.
1505 --with-python-config-dir=PATH Python's config directory
1506 --with-tclsh=PATH which tclsh to use (default: tclsh8.0)
1507 --with-ruby-command=RUBY name of the Ruby command (default: ruby)
1508 --with-x use the X Window System
1509 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1510 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1511 --with-gnome-includes=DIR Specify location of GNOME headers
1512 --with-gnome-libs=DIR Specify location of GNOME libs
1513 --with-gnome Specify prefix for GNOME files
1514 --with-motif-lib=STRING Library for Motif
1515 --with-tlib=library terminal library to be used
1517 Some influential environment variables:
1518 CC C compiler command
1519 CFLAGS C compiler flags
1520 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1521 nonstandard directory <lib dir>
1522 LIBS libraries to pass to the linker, e.g. -l<library>
1523 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1524 you have headers in a nonstandard directory <include dir>
1525 CPP C preprocessor
1526 XMKMF Path to xmkmf, Makefile generator for X Window System
1528 Use these variables to override the choices made by `configure' or to help
1529 it to find libraries and programs with nonstandard names/locations.
1531 _ACEOF
1532 ac_status=$?
1535 if test "$ac_init_help" = "recursive"; then
1536 # If there are subdirs, report their specific --help.
1537 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1538 test -d "$ac_dir" ||
1539 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1540 continue
1541 ac_builddir=.
1543 case "$ac_dir" in
1544 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1546 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1547 # A ".." for each directory in $ac_dir_suffix.
1548 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1549 case $ac_top_builddir_sub in
1550 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1551 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1552 esac ;;
1553 esac
1554 ac_abs_top_builddir=$ac_pwd
1555 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1556 # for backward compatibility:
1557 ac_top_builddir=$ac_top_build_prefix
1559 case $srcdir in
1560 .) # We are building in place.
1561 ac_srcdir=.
1562 ac_top_srcdir=$ac_top_builddir_sub
1563 ac_abs_top_srcdir=$ac_pwd ;;
1564 [\\/]* | ?:[\\/]* ) # Absolute name.
1565 ac_srcdir=$srcdir$ac_dir_suffix;
1566 ac_top_srcdir=$srcdir
1567 ac_abs_top_srcdir=$srcdir ;;
1568 *) # Relative name.
1569 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1570 ac_top_srcdir=$ac_top_build_prefix$srcdir
1571 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1572 esac
1573 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1575 cd "$ac_dir" || { ac_status=$?; continue; }
1576 # Check for guested configure.
1577 if test -f "$ac_srcdir/configure.gnu"; then
1578 echo &&
1579 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1580 elif test -f "$ac_srcdir/configure"; then
1581 echo &&
1582 $SHELL "$ac_srcdir/configure" --help=recursive
1583 else
1584 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1585 fi || ac_status=$?
1586 cd "$ac_pwd" || { ac_status=$?; break; }
1587 done
1590 test -n "$ac_init_help" && exit $ac_status
1591 if $ac_init_version; then
1592 cat <<\_ACEOF
1593 configure
1594 generated by GNU Autoconf 2.63
1596 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1597 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1598 This configure script is free software; the Free Software Foundation
1599 gives unlimited permission to copy, distribute and modify it.
1600 _ACEOF
1601 exit
1603 cat >auto/config.log <<_ACEOF
1604 This file contains any messages produced by compilers while
1605 running configure, to aid debugging if configure makes a mistake.
1607 It was created by $as_me, which was
1608 generated by GNU Autoconf 2.63. Invocation command line was
1610 $ $0 $@
1612 _ACEOF
1613 exec 5>>auto/config.log
1615 cat <<_ASUNAME
1616 ## --------- ##
1617 ## Platform. ##
1618 ## --------- ##
1620 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1621 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1622 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1623 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1624 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1626 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1627 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1629 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1630 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1631 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1632 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1633 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1634 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1635 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1637 _ASUNAME
1639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1640 for as_dir in $PATH
1642 IFS=$as_save_IFS
1643 test -z "$as_dir" && as_dir=.
1644 $as_echo "PATH: $as_dir"
1645 done
1646 IFS=$as_save_IFS
1648 } >&5
1650 cat >&5 <<_ACEOF
1653 ## ----------- ##
1654 ## Core tests. ##
1655 ## ----------- ##
1657 _ACEOF
1660 # Keep a trace of the command line.
1661 # Strip out --no-create and --no-recursion so they do not pile up.
1662 # Strip out --silent because we don't want to record it for future runs.
1663 # Also quote any args containing shell meta-characters.
1664 # Make two passes to allow for proper duplicate-argument suppression.
1665 ac_configure_args=
1666 ac_configure_args0=
1667 ac_configure_args1=
1668 ac_must_keep_next=false
1669 for ac_pass in 1 2
1671 for ac_arg
1673 case $ac_arg in
1674 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1675 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1676 | -silent | --silent | --silen | --sile | --sil)
1677 continue ;;
1678 *\'*)
1679 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1680 esac
1681 case $ac_pass in
1682 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1684 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1685 if test $ac_must_keep_next = true; then
1686 ac_must_keep_next=false # Got value, back to normal.
1687 else
1688 case $ac_arg in
1689 *=* | --config-cache | -C | -disable-* | --disable-* \
1690 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1691 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1692 | -with-* | --with-* | -without-* | --without-* | --x)
1693 case "$ac_configure_args0 " in
1694 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1695 esac
1697 -* ) ac_must_keep_next=true ;;
1698 esac
1700 ac_configure_args="$ac_configure_args '$ac_arg'"
1702 esac
1703 done
1704 done
1705 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1706 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1708 # When interrupted or exit'd, cleanup temporary files, and complete
1709 # config.log. We remove comments because anyway the quotes in there
1710 # would cause problems or look ugly.
1711 # WARNING: Use '\'' to represent an apostrophe within the trap.
1712 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1713 trap 'exit_status=$?
1714 # Save into config.log some information that might help in debugging.
1716 echo
1718 cat <<\_ASBOX
1719 ## ---------------- ##
1720 ## Cache variables. ##
1721 ## ---------------- ##
1722 _ASBOX
1723 echo
1724 # The following way of writing the cache mishandles newlines in values,
1726 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1727 eval ac_val=\$$ac_var
1728 case $ac_val in #(
1729 *${as_nl}*)
1730 case $ac_var in #(
1731 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1732 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1733 esac
1734 case $ac_var in #(
1735 _ | IFS | as_nl) ;; #(
1736 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1737 *) $as_unset $ac_var ;;
1738 esac ;;
1739 esac
1740 done
1741 (set) 2>&1 |
1742 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1743 *${as_nl}ac_space=\ *)
1744 sed -n \
1745 "s/'\''/'\''\\\\'\'''\''/g;
1746 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1747 ;; #(
1749 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1751 esac |
1752 sort
1754 echo
1756 cat <<\_ASBOX
1757 ## ----------------- ##
1758 ## Output variables. ##
1759 ## ----------------- ##
1760 _ASBOX
1761 echo
1762 for ac_var in $ac_subst_vars
1764 eval ac_val=\$$ac_var
1765 case $ac_val in
1766 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1767 esac
1768 $as_echo "$ac_var='\''$ac_val'\''"
1769 done | sort
1770 echo
1772 if test -n "$ac_subst_files"; then
1773 cat <<\_ASBOX
1774 ## ------------------- ##
1775 ## File substitutions. ##
1776 ## ------------------- ##
1777 _ASBOX
1778 echo
1779 for ac_var in $ac_subst_files
1781 eval ac_val=\$$ac_var
1782 case $ac_val in
1783 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1784 esac
1785 $as_echo "$ac_var='\''$ac_val'\''"
1786 done | sort
1787 echo
1790 if test -s confdefs.h; then
1791 cat <<\_ASBOX
1792 ## ----------- ##
1793 ## confdefs.h. ##
1794 ## ----------- ##
1795 _ASBOX
1796 echo
1797 cat confdefs.h
1798 echo
1800 test "$ac_signal" != 0 &&
1801 $as_echo "$as_me: caught signal $ac_signal"
1802 $as_echo "$as_me: exit $exit_status"
1803 } >&5
1804 rm -f core *.core core.conftest.* &&
1805 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1806 exit $exit_status
1808 for ac_signal in 1 2 13 15; do
1809 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1810 done
1811 ac_signal=0
1813 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1814 rm -f -r conftest* confdefs.h
1816 # Predefined preprocessor variables.
1818 cat >>confdefs.h <<_ACEOF
1819 #define PACKAGE_NAME "$PACKAGE_NAME"
1820 _ACEOF
1823 cat >>confdefs.h <<_ACEOF
1824 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1825 _ACEOF
1828 cat >>confdefs.h <<_ACEOF
1829 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1830 _ACEOF
1833 cat >>confdefs.h <<_ACEOF
1834 #define PACKAGE_STRING "$PACKAGE_STRING"
1835 _ACEOF
1838 cat >>confdefs.h <<_ACEOF
1839 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1840 _ACEOF
1843 # Let the site file select an alternate cache file if it wants to.
1844 # Prefer an explicitly selected file to automatically selected ones.
1845 ac_site_file1=NONE
1846 ac_site_file2=NONE
1847 if test -n "$CONFIG_SITE"; then
1848 ac_site_file1=$CONFIG_SITE
1849 elif test "x$prefix" != xNONE; then
1850 ac_site_file1=$prefix/share/config.site
1851 ac_site_file2=$prefix/etc/config.site
1852 else
1853 ac_site_file1=$ac_default_prefix/share/config.site
1854 ac_site_file2=$ac_default_prefix/etc/config.site
1856 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1858 test "x$ac_site_file" = xNONE && continue
1859 if test -r "$ac_site_file"; then
1860 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1861 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1862 sed 's/^/| /' "$ac_site_file" >&5
1863 . "$ac_site_file"
1865 done
1867 if test -r "$cache_file"; then
1868 # Some versions of bash will fail to source /dev/null (special
1869 # files actually), so we avoid doing that.
1870 if test -f "$cache_file"; then
1871 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1872 $as_echo "$as_me: loading cache $cache_file" >&6;}
1873 case $cache_file in
1874 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1875 *) . "./$cache_file";;
1876 esac
1878 else
1879 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1880 $as_echo "$as_me: creating cache $cache_file" >&6;}
1881 >$cache_file
1884 # Check that the precious variables saved in the cache have kept the same
1885 # value.
1886 ac_cache_corrupted=false
1887 for ac_var in $ac_precious_vars; do
1888 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1889 eval ac_new_set=\$ac_env_${ac_var}_set
1890 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1891 eval ac_new_val=\$ac_env_${ac_var}_value
1892 case $ac_old_set,$ac_new_set in
1893 set,)
1894 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1895 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1896 ac_cache_corrupted=: ;;
1897 ,set)
1898 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1899 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1900 ac_cache_corrupted=: ;;
1901 ,);;
1903 if test "x$ac_old_val" != "x$ac_new_val"; then
1904 # differences in whitespace do not lead to failure.
1905 ac_old_val_w=`echo x $ac_old_val`
1906 ac_new_val_w=`echo x $ac_new_val`
1907 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1908 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1909 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1910 ac_cache_corrupted=:
1911 else
1912 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1913 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1914 eval $ac_var=\$ac_old_val
1916 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1917 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1918 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1919 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1920 fi;;
1921 esac
1922 # Pass precious variables to config.status.
1923 if test "$ac_new_set" = set; then
1924 case $ac_new_val in
1925 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1926 *) ac_arg=$ac_var=$ac_new_val ;;
1927 esac
1928 case " $ac_configure_args " in
1929 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1930 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1931 esac
1933 done
1934 if $ac_cache_corrupted; then
1935 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1936 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1937 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1938 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1939 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1940 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1941 { (exit 1); exit 1; }; }
1960 ac_ext=c
1961 ac_cpp='$CPP $CPPFLAGS'
1962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1967 ac_config_headers="$ac_config_headers auto/config.h:config.h.in"
1970 cat >>confdefs.h <<\_ACEOF
1971 #define UNIX 1
1972 _ACEOF
1974 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1975 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
1976 set x ${MAKE-make}
1977 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
1978 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
1979 $as_echo_n "(cached) " >&6
1980 else
1981 cat >conftest.make <<\_ACEOF
1982 SHELL = /bin/sh
1983 all:
1984 @echo '@@@%%%=$(MAKE)=@@@%%%'
1985 _ACEOF
1986 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1987 case `${MAKE-make} -f conftest.make 2>/dev/null` in
1988 *@@@%%%=?*=@@@%%%*)
1989 eval ac_cv_prog_make_${ac_make}_set=yes;;
1991 eval ac_cv_prog_make_${ac_make}_set=no;;
1992 esac
1993 rm -f conftest.make
1995 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
1996 { $as_echo "$as_me:$LINENO: result: yes" >&5
1997 $as_echo "yes" >&6; }
1998 SET_MAKE=
1999 else
2000 { $as_echo "$as_me:$LINENO: result: no" >&5
2001 $as_echo "no" >&6; }
2002 SET_MAKE="MAKE=${MAKE-make}"
2006 ac_ext=c
2007 ac_cpp='$CPP $CPPFLAGS'
2008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2011 if test -n "$ac_tool_prefix"; then
2012 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2013 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2014 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2015 $as_echo_n "checking for $ac_word... " >&6; }
2016 if test "${ac_cv_prog_CC+set}" = set; then
2017 $as_echo_n "(cached) " >&6
2018 else
2019 if test -n "$CC"; then
2020 ac_cv_prog_CC="$CC" # Let the user override the test.
2021 else
2022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2023 for as_dir in $PATH
2025 IFS=$as_save_IFS
2026 test -z "$as_dir" && as_dir=.
2027 for ac_exec_ext in '' $ac_executable_extensions; do
2028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2029 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2030 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2031 break 2
2033 done
2034 done
2035 IFS=$as_save_IFS
2039 CC=$ac_cv_prog_CC
2040 if test -n "$CC"; then
2041 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2042 $as_echo "$CC" >&6; }
2043 else
2044 { $as_echo "$as_me:$LINENO: result: no" >&5
2045 $as_echo "no" >&6; }
2050 if test -z "$ac_cv_prog_CC"; then
2051 ac_ct_CC=$CC
2052 # Extract the first word of "gcc", so it can be a program name with args.
2053 set dummy gcc; ac_word=$2
2054 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2055 $as_echo_n "checking for $ac_word... " >&6; }
2056 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2057 $as_echo_n "(cached) " >&6
2058 else
2059 if test -n "$ac_ct_CC"; then
2060 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2061 else
2062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2063 for as_dir in $PATH
2065 IFS=$as_save_IFS
2066 test -z "$as_dir" && as_dir=.
2067 for ac_exec_ext in '' $ac_executable_extensions; do
2068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2069 ac_cv_prog_ac_ct_CC="gcc"
2070 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2071 break 2
2073 done
2074 done
2075 IFS=$as_save_IFS
2079 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2080 if test -n "$ac_ct_CC"; then
2081 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2082 $as_echo "$ac_ct_CC" >&6; }
2083 else
2084 { $as_echo "$as_me:$LINENO: result: no" >&5
2085 $as_echo "no" >&6; }
2088 if test "x$ac_ct_CC" = x; then
2089 CC=""
2090 else
2091 case $cross_compiling:$ac_tool_warned in
2092 yes:)
2093 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2094 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2095 ac_tool_warned=yes ;;
2096 esac
2097 CC=$ac_ct_CC
2099 else
2100 CC="$ac_cv_prog_CC"
2103 if test -z "$CC"; then
2104 if test -n "$ac_tool_prefix"; then
2105 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2106 set dummy ${ac_tool_prefix}cc; ac_word=$2
2107 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2108 $as_echo_n "checking for $ac_word... " >&6; }
2109 if test "${ac_cv_prog_CC+set}" = set; then
2110 $as_echo_n "(cached) " >&6
2111 else
2112 if test -n "$CC"; then
2113 ac_cv_prog_CC="$CC" # Let the user override the test.
2114 else
2115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2116 for as_dir in $PATH
2118 IFS=$as_save_IFS
2119 test -z "$as_dir" && as_dir=.
2120 for ac_exec_ext in '' $ac_executable_extensions; do
2121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2122 ac_cv_prog_CC="${ac_tool_prefix}cc"
2123 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2124 break 2
2126 done
2127 done
2128 IFS=$as_save_IFS
2132 CC=$ac_cv_prog_CC
2133 if test -n "$CC"; then
2134 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2135 $as_echo "$CC" >&6; }
2136 else
2137 { $as_echo "$as_me:$LINENO: result: no" >&5
2138 $as_echo "no" >&6; }
2144 if test -z "$CC"; then
2145 # Extract the first word of "cc", so it can be a program name with args.
2146 set dummy cc; ac_word=$2
2147 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2148 $as_echo_n "checking for $ac_word... " >&6; }
2149 if test "${ac_cv_prog_CC+set}" = set; then
2150 $as_echo_n "(cached) " >&6
2151 else
2152 if test -n "$CC"; then
2153 ac_cv_prog_CC="$CC" # Let the user override the test.
2154 else
2155 ac_prog_rejected=no
2156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2157 for as_dir in $PATH
2159 IFS=$as_save_IFS
2160 test -z "$as_dir" && as_dir=.
2161 for ac_exec_ext in '' $ac_executable_extensions; do
2162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2163 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2164 ac_prog_rejected=yes
2165 continue
2167 ac_cv_prog_CC="cc"
2168 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2169 break 2
2171 done
2172 done
2173 IFS=$as_save_IFS
2175 if test $ac_prog_rejected = yes; then
2176 # We found a bogon in the path, so make sure we never use it.
2177 set dummy $ac_cv_prog_CC
2178 shift
2179 if test $# != 0; then
2180 # We chose a different compiler from the bogus one.
2181 # However, it has the same basename, so the bogon will be chosen
2182 # first if we set CC to just the basename; use the full file name.
2183 shift
2184 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2189 CC=$ac_cv_prog_CC
2190 if test -n "$CC"; then
2191 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2192 $as_echo "$CC" >&6; }
2193 else
2194 { $as_echo "$as_me:$LINENO: result: no" >&5
2195 $as_echo "no" >&6; }
2200 if test -z "$CC"; then
2201 if test -n "$ac_tool_prefix"; then
2202 for ac_prog in cl.exe
2204 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2205 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2206 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2207 $as_echo_n "checking for $ac_word... " >&6; }
2208 if test "${ac_cv_prog_CC+set}" = set; then
2209 $as_echo_n "(cached) " >&6
2210 else
2211 if test -n "$CC"; then
2212 ac_cv_prog_CC="$CC" # Let the user override the test.
2213 else
2214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2215 for as_dir in $PATH
2217 IFS=$as_save_IFS
2218 test -z "$as_dir" && as_dir=.
2219 for ac_exec_ext in '' $ac_executable_extensions; do
2220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2221 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2222 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2223 break 2
2225 done
2226 done
2227 IFS=$as_save_IFS
2231 CC=$ac_cv_prog_CC
2232 if test -n "$CC"; then
2233 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2234 $as_echo "$CC" >&6; }
2235 else
2236 { $as_echo "$as_me:$LINENO: result: no" >&5
2237 $as_echo "no" >&6; }
2241 test -n "$CC" && break
2242 done
2244 if test -z "$CC"; then
2245 ac_ct_CC=$CC
2246 for ac_prog in cl.exe
2248 # Extract the first word of "$ac_prog", so it can be a program name with args.
2249 set dummy $ac_prog; ac_word=$2
2250 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2251 $as_echo_n "checking for $ac_word... " >&6; }
2252 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2253 $as_echo_n "(cached) " >&6
2254 else
2255 if test -n "$ac_ct_CC"; then
2256 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2257 else
2258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2259 for as_dir in $PATH
2261 IFS=$as_save_IFS
2262 test -z "$as_dir" && as_dir=.
2263 for ac_exec_ext in '' $ac_executable_extensions; do
2264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2265 ac_cv_prog_ac_ct_CC="$ac_prog"
2266 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2267 break 2
2269 done
2270 done
2271 IFS=$as_save_IFS
2275 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2276 if test -n "$ac_ct_CC"; then
2277 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2278 $as_echo "$ac_ct_CC" >&6; }
2279 else
2280 { $as_echo "$as_me:$LINENO: result: no" >&5
2281 $as_echo "no" >&6; }
2285 test -n "$ac_ct_CC" && break
2286 done
2288 if test "x$ac_ct_CC" = x; then
2289 CC=""
2290 else
2291 case $cross_compiling:$ac_tool_warned in
2292 yes:)
2293 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2294 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2295 ac_tool_warned=yes ;;
2296 esac
2297 CC=$ac_ct_CC
2304 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2305 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2306 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2307 See \`config.log' for more details." >&5
2308 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2309 See \`config.log' for more details." >&2;}
2310 { (exit 1); exit 1; }; }; }
2312 # Provide some information about the compiler.
2313 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2314 set X $ac_compile
2315 ac_compiler=$2
2316 { (ac_try="$ac_compiler --version >&5"
2317 case "(($ac_try" in
2318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2319 *) ac_try_echo=$ac_try;;
2320 esac
2321 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2322 $as_echo "$ac_try_echo") >&5
2323 (eval "$ac_compiler --version >&5") 2>&5
2324 ac_status=$?
2325 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326 (exit $ac_status); }
2327 { (ac_try="$ac_compiler -v >&5"
2328 case "(($ac_try" in
2329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2330 *) ac_try_echo=$ac_try;;
2331 esac
2332 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2333 $as_echo "$ac_try_echo") >&5
2334 (eval "$ac_compiler -v >&5") 2>&5
2335 ac_status=$?
2336 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2337 (exit $ac_status); }
2338 { (ac_try="$ac_compiler -V >&5"
2339 case "(($ac_try" in
2340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2341 *) ac_try_echo=$ac_try;;
2342 esac
2343 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2344 $as_echo "$ac_try_echo") >&5
2345 (eval "$ac_compiler -V >&5") 2>&5
2346 ac_status=$?
2347 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2348 (exit $ac_status); }
2350 cat >conftest.$ac_ext <<_ACEOF
2351 /* confdefs.h. */
2352 _ACEOF
2353 cat confdefs.h >>conftest.$ac_ext
2354 cat >>conftest.$ac_ext <<_ACEOF
2355 /* end confdefs.h. */
2358 main ()
2362 return 0;
2364 _ACEOF
2365 ac_clean_files_save=$ac_clean_files
2366 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2367 # Try to create an executable without -o first, disregard a.out.
2368 # It will help us diagnose broken compilers, and finding out an intuition
2369 # of exeext.
2370 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2371 $as_echo_n "checking for C compiler default output file name... " >&6; }
2372 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2374 # The possible output files:
2375 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2377 ac_rmfiles=
2378 for ac_file in $ac_files
2380 case $ac_file in
2381 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2382 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2383 esac
2384 done
2385 rm -f $ac_rmfiles
2387 if { (ac_try="$ac_link_default"
2388 case "(($ac_try" in
2389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2390 *) ac_try_echo=$ac_try;;
2391 esac
2392 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2393 $as_echo "$ac_try_echo") >&5
2394 (eval "$ac_link_default") 2>&5
2395 ac_status=$?
2396 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397 (exit $ac_status); }; then
2398 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2399 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2400 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2401 # so that the user can short-circuit this test for compilers unknown to
2402 # Autoconf.
2403 for ac_file in $ac_files ''
2405 test -f "$ac_file" || continue
2406 case $ac_file in
2407 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2409 [ab].out )
2410 # We found the default executable, but exeext='' is most
2411 # certainly right.
2412 break;;
2413 *.* )
2414 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2415 then :; else
2416 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2418 # We set ac_cv_exeext here because the later test for it is not
2419 # safe: cross compilers may not add the suffix if given an `-o'
2420 # argument, so we may need to know it at that point already.
2421 # Even if this section looks crufty: it has the advantage of
2422 # actually working.
2423 break;;
2425 break;;
2426 esac
2427 done
2428 test "$ac_cv_exeext" = no && ac_cv_exeext=
2430 else
2431 ac_file=''
2434 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2435 $as_echo "$ac_file" >&6; }
2436 if test -z "$ac_file"; then
2437 $as_echo "$as_me: failed program was:" >&5
2438 sed 's/^/| /' conftest.$ac_ext >&5
2440 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2441 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2442 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2443 See \`config.log' for more details." >&5
2444 $as_echo "$as_me: error: C compiler cannot create executables
2445 See \`config.log' for more details." >&2;}
2446 { (exit 77); exit 77; }; }; }
2449 ac_exeext=$ac_cv_exeext
2451 # Check that the compiler produces executables we can run. If not, either
2452 # the compiler is broken, or we cross compile.
2453 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2454 $as_echo_n "checking whether the C compiler works... " >&6; }
2455 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2456 # If not cross compiling, check that we can run a simple program.
2457 if test "$cross_compiling" != yes; then
2458 if { ac_try='./$ac_file'
2459 { (case "(($ac_try" in
2460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2461 *) ac_try_echo=$ac_try;;
2462 esac
2463 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2464 $as_echo "$ac_try_echo") >&5
2465 (eval "$ac_try") 2>&5
2466 ac_status=$?
2467 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2468 (exit $ac_status); }; }; then
2469 cross_compiling=no
2470 else
2471 if test "$cross_compiling" = maybe; then
2472 cross_compiling=yes
2473 else
2474 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2475 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2476 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2477 If you meant to cross compile, use \`--host'.
2478 See \`config.log' for more details." >&5
2479 $as_echo "$as_me: error: cannot run C compiled programs.
2480 If you meant to cross compile, use \`--host'.
2481 See \`config.log' for more details." >&2;}
2482 { (exit 1); exit 1; }; }; }
2486 { $as_echo "$as_me:$LINENO: result: yes" >&5
2487 $as_echo "yes" >&6; }
2489 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2490 ac_clean_files=$ac_clean_files_save
2491 # Check that the compiler produces executables we can run. If not, either
2492 # the compiler is broken, or we cross compile.
2493 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2494 $as_echo_n "checking whether we are cross compiling... " >&6; }
2495 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2496 $as_echo "$cross_compiling" >&6; }
2498 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2499 $as_echo_n "checking for suffix of executables... " >&6; }
2500 if { (ac_try="$ac_link"
2501 case "(($ac_try" in
2502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2503 *) ac_try_echo=$ac_try;;
2504 esac
2505 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2506 $as_echo "$ac_try_echo") >&5
2507 (eval "$ac_link") 2>&5
2508 ac_status=$?
2509 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2510 (exit $ac_status); }; then
2511 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2512 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2513 # work properly (i.e., refer to `conftest.exe'), while it won't with
2514 # `rm'.
2515 for ac_file in conftest.exe conftest conftest.*; do
2516 test -f "$ac_file" || continue
2517 case $ac_file in
2518 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2519 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2520 break;;
2521 * ) break;;
2522 esac
2523 done
2524 else
2525 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2526 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2527 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2528 See \`config.log' for more details." >&5
2529 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2530 See \`config.log' for more details." >&2;}
2531 { (exit 1); exit 1; }; }; }
2534 rm -f conftest$ac_cv_exeext
2535 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2536 $as_echo "$ac_cv_exeext" >&6; }
2538 rm -f conftest.$ac_ext
2539 EXEEXT=$ac_cv_exeext
2540 ac_exeext=$EXEEXT
2541 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2542 $as_echo_n "checking for suffix of object files... " >&6; }
2543 if test "${ac_cv_objext+set}" = set; then
2544 $as_echo_n "(cached) " >&6
2545 else
2546 cat >conftest.$ac_ext <<_ACEOF
2547 /* confdefs.h. */
2548 _ACEOF
2549 cat confdefs.h >>conftest.$ac_ext
2550 cat >>conftest.$ac_ext <<_ACEOF
2551 /* end confdefs.h. */
2554 main ()
2558 return 0;
2560 _ACEOF
2561 rm -f conftest.o conftest.obj
2562 if { (ac_try="$ac_compile"
2563 case "(($ac_try" in
2564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2565 *) ac_try_echo=$ac_try;;
2566 esac
2567 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2568 $as_echo "$ac_try_echo") >&5
2569 (eval "$ac_compile") 2>&5
2570 ac_status=$?
2571 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572 (exit $ac_status); }; then
2573 for ac_file in conftest.o conftest.obj conftest.*; do
2574 test -f "$ac_file" || continue;
2575 case $ac_file in
2576 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2577 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2578 break;;
2579 esac
2580 done
2581 else
2582 $as_echo "$as_me: failed program was:" >&5
2583 sed 's/^/| /' conftest.$ac_ext >&5
2585 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2586 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2587 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2588 See \`config.log' for more details." >&5
2589 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2590 See \`config.log' for more details." >&2;}
2591 { (exit 1); exit 1; }; }; }
2594 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2596 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2597 $as_echo "$ac_cv_objext" >&6; }
2598 OBJEXT=$ac_cv_objext
2599 ac_objext=$OBJEXT
2600 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2601 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2602 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2603 $as_echo_n "(cached) " >&6
2604 else
2605 cat >conftest.$ac_ext <<_ACEOF
2606 /* confdefs.h. */
2607 _ACEOF
2608 cat confdefs.h >>conftest.$ac_ext
2609 cat >>conftest.$ac_ext <<_ACEOF
2610 /* end confdefs.h. */
2613 main ()
2615 #ifndef __GNUC__
2616 choke me
2617 #endif
2620 return 0;
2622 _ACEOF
2623 rm -f conftest.$ac_objext
2624 if { (ac_try="$ac_compile"
2625 case "(($ac_try" in
2626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2627 *) ac_try_echo=$ac_try;;
2628 esac
2629 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2630 $as_echo "$ac_try_echo") >&5
2631 (eval "$ac_compile") 2>conftest.er1
2632 ac_status=$?
2633 grep -v '^ *+' conftest.er1 >conftest.err
2634 rm -f conftest.er1
2635 cat conftest.err >&5
2636 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637 (exit $ac_status); } && {
2638 test -z "$ac_c_werror_flag" ||
2639 test ! -s conftest.err
2640 } && test -s conftest.$ac_objext; then
2641 ac_compiler_gnu=yes
2642 else
2643 $as_echo "$as_me: failed program was:" >&5
2644 sed 's/^/| /' conftest.$ac_ext >&5
2646 ac_compiler_gnu=no
2649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2650 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2653 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2654 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2655 if test $ac_compiler_gnu = yes; then
2656 GCC=yes
2657 else
2658 GCC=
2660 ac_test_CFLAGS=${CFLAGS+set}
2661 ac_save_CFLAGS=$CFLAGS
2662 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2663 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2664 if test "${ac_cv_prog_cc_g+set}" = set; then
2665 $as_echo_n "(cached) " >&6
2666 else
2667 ac_save_c_werror_flag=$ac_c_werror_flag
2668 ac_c_werror_flag=yes
2669 ac_cv_prog_cc_g=no
2670 CFLAGS="-g"
2671 cat >conftest.$ac_ext <<_ACEOF
2672 /* confdefs.h. */
2673 _ACEOF
2674 cat confdefs.h >>conftest.$ac_ext
2675 cat >>conftest.$ac_ext <<_ACEOF
2676 /* end confdefs.h. */
2679 main ()
2683 return 0;
2685 _ACEOF
2686 rm -f conftest.$ac_objext
2687 if { (ac_try="$ac_compile"
2688 case "(($ac_try" in
2689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2690 *) ac_try_echo=$ac_try;;
2691 esac
2692 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2693 $as_echo "$ac_try_echo") >&5
2694 (eval "$ac_compile") 2>conftest.er1
2695 ac_status=$?
2696 grep -v '^ *+' conftest.er1 >conftest.err
2697 rm -f conftest.er1
2698 cat conftest.err >&5
2699 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2700 (exit $ac_status); } && {
2701 test -z "$ac_c_werror_flag" ||
2702 test ! -s conftest.err
2703 } && test -s conftest.$ac_objext; then
2704 ac_cv_prog_cc_g=yes
2705 else
2706 $as_echo "$as_me: failed program was:" >&5
2707 sed 's/^/| /' conftest.$ac_ext >&5
2709 CFLAGS=""
2710 cat >conftest.$ac_ext <<_ACEOF
2711 /* confdefs.h. */
2712 _ACEOF
2713 cat confdefs.h >>conftest.$ac_ext
2714 cat >>conftest.$ac_ext <<_ACEOF
2715 /* end confdefs.h. */
2718 main ()
2722 return 0;
2724 _ACEOF
2725 rm -f conftest.$ac_objext
2726 if { (ac_try="$ac_compile"
2727 case "(($ac_try" in
2728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2729 *) ac_try_echo=$ac_try;;
2730 esac
2731 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2732 $as_echo "$ac_try_echo") >&5
2733 (eval "$ac_compile") 2>conftest.er1
2734 ac_status=$?
2735 grep -v '^ *+' conftest.er1 >conftest.err
2736 rm -f conftest.er1
2737 cat conftest.err >&5
2738 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2739 (exit $ac_status); } && {
2740 test -z "$ac_c_werror_flag" ||
2741 test ! -s conftest.err
2742 } && test -s conftest.$ac_objext; then
2744 else
2745 $as_echo "$as_me: failed program was:" >&5
2746 sed 's/^/| /' conftest.$ac_ext >&5
2748 ac_c_werror_flag=$ac_save_c_werror_flag
2749 CFLAGS="-g"
2750 cat >conftest.$ac_ext <<_ACEOF
2751 /* confdefs.h. */
2752 _ACEOF
2753 cat confdefs.h >>conftest.$ac_ext
2754 cat >>conftest.$ac_ext <<_ACEOF
2755 /* end confdefs.h. */
2758 main ()
2762 return 0;
2764 _ACEOF
2765 rm -f conftest.$ac_objext
2766 if { (ac_try="$ac_compile"
2767 case "(($ac_try" in
2768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2769 *) ac_try_echo=$ac_try;;
2770 esac
2771 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2772 $as_echo "$ac_try_echo") >&5
2773 (eval "$ac_compile") 2>conftest.er1
2774 ac_status=$?
2775 grep -v '^ *+' conftest.er1 >conftest.err
2776 rm -f conftest.er1
2777 cat conftest.err >&5
2778 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2779 (exit $ac_status); } && {
2780 test -z "$ac_c_werror_flag" ||
2781 test ! -s conftest.err
2782 } && test -s conftest.$ac_objext; then
2783 ac_cv_prog_cc_g=yes
2784 else
2785 $as_echo "$as_me: failed program was:" >&5
2786 sed 's/^/| /' conftest.$ac_ext >&5
2791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2798 ac_c_werror_flag=$ac_save_c_werror_flag
2800 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2801 $as_echo "$ac_cv_prog_cc_g" >&6; }
2802 if test "$ac_test_CFLAGS" = set; then
2803 CFLAGS=$ac_save_CFLAGS
2804 elif test $ac_cv_prog_cc_g = yes; then
2805 if test "$GCC" = yes; then
2806 CFLAGS="-g -O2"
2807 else
2808 CFLAGS="-g"
2810 else
2811 if test "$GCC" = yes; then
2812 CFLAGS="-O2"
2813 else
2814 CFLAGS=
2817 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2818 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2819 if test "${ac_cv_prog_cc_c89+set}" = set; then
2820 $as_echo_n "(cached) " >&6
2821 else
2822 ac_cv_prog_cc_c89=no
2823 ac_save_CC=$CC
2824 cat >conftest.$ac_ext <<_ACEOF
2825 /* confdefs.h. */
2826 _ACEOF
2827 cat confdefs.h >>conftest.$ac_ext
2828 cat >>conftest.$ac_ext <<_ACEOF
2829 /* end confdefs.h. */
2830 #include <stdarg.h>
2831 #include <stdio.h>
2832 #include <sys/types.h>
2833 #include <sys/stat.h>
2834 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2835 struct buf { int x; };
2836 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2837 static char *e (p, i)
2838 char **p;
2839 int i;
2841 return p[i];
2843 static char *f (char * (*g) (char **, int), char **p, ...)
2845 char *s;
2846 va_list v;
2847 va_start (v,p);
2848 s = g (p, va_arg (v,int));
2849 va_end (v);
2850 return s;
2853 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2854 function prototypes and stuff, but not '\xHH' hex character constants.
2855 These don't provoke an error unfortunately, instead are silently treated
2856 as 'x'. The following induces an error, until -std is added to get
2857 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2858 array size at least. It's necessary to write '\x00'==0 to get something
2859 that's true only with -std. */
2860 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2862 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2863 inside strings and character constants. */
2864 #define FOO(x) 'x'
2865 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2867 int test (int i, double x);
2868 struct s1 {int (*f) (int a);};
2869 struct s2 {int (*f) (double a);};
2870 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2871 int argc;
2872 char **argv;
2874 main ()
2876 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2878 return 0;
2880 _ACEOF
2881 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2882 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2884 CC="$ac_save_CC $ac_arg"
2885 rm -f conftest.$ac_objext
2886 if { (ac_try="$ac_compile"
2887 case "(($ac_try" in
2888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2889 *) ac_try_echo=$ac_try;;
2890 esac
2891 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2892 $as_echo "$ac_try_echo") >&5
2893 (eval "$ac_compile") 2>conftest.er1
2894 ac_status=$?
2895 grep -v '^ *+' conftest.er1 >conftest.err
2896 rm -f conftest.er1
2897 cat conftest.err >&5
2898 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899 (exit $ac_status); } && {
2900 test -z "$ac_c_werror_flag" ||
2901 test ! -s conftest.err
2902 } && test -s conftest.$ac_objext; then
2903 ac_cv_prog_cc_c89=$ac_arg
2904 else
2905 $as_echo "$as_me: failed program was:" >&5
2906 sed 's/^/| /' conftest.$ac_ext >&5
2911 rm -f core conftest.err conftest.$ac_objext
2912 test "x$ac_cv_prog_cc_c89" != "xno" && break
2913 done
2914 rm -f conftest.$ac_ext
2915 CC=$ac_save_CC
2918 # AC_CACHE_VAL
2919 case "x$ac_cv_prog_cc_c89" in
2921 { $as_echo "$as_me:$LINENO: result: none needed" >&5
2922 $as_echo "none needed" >&6; } ;;
2923 xno)
2924 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
2925 $as_echo "unsupported" >&6; } ;;
2927 CC="$CC $ac_cv_prog_cc_c89"
2928 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2929 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2930 esac
2933 ac_ext=c
2934 ac_cpp='$CPP $CPPFLAGS'
2935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2938 ac_ext=c
2939 ac_cpp='$CPP $CPPFLAGS'
2940 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2941 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2942 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2943 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2944 $as_echo_n "checking how to run the C preprocessor... " >&6; }
2945 # On Suns, sometimes $CPP names a directory.
2946 if test -n "$CPP" && test -d "$CPP"; then
2947 CPP=
2949 if test -z "$CPP"; then
2950 if test "${ac_cv_prog_CPP+set}" = set; then
2951 $as_echo_n "(cached) " >&6
2952 else
2953 # Double quotes because CPP needs to be expanded
2954 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2956 ac_preproc_ok=false
2957 for ac_c_preproc_warn_flag in '' yes
2959 # Use a header file that comes with gcc, so configuring glibc
2960 # with a fresh cross-compiler works.
2961 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2962 # <limits.h> exists even on freestanding compilers.
2963 # On the NeXT, cc -E runs the code through the compiler's parser,
2964 # not just through cpp. "Syntax error" is here to catch this case.
2965 cat >conftest.$ac_ext <<_ACEOF
2966 /* confdefs.h. */
2967 _ACEOF
2968 cat confdefs.h >>conftest.$ac_ext
2969 cat >>conftest.$ac_ext <<_ACEOF
2970 /* end confdefs.h. */
2971 #ifdef __STDC__
2972 # include <limits.h>
2973 #else
2974 # include <assert.h>
2975 #endif
2976 Syntax error
2977 _ACEOF
2978 if { (ac_try="$ac_cpp conftest.$ac_ext"
2979 case "(($ac_try" in
2980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2981 *) ac_try_echo=$ac_try;;
2982 esac
2983 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2984 $as_echo "$ac_try_echo") >&5
2985 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2986 ac_status=$?
2987 grep -v '^ *+' conftest.er1 >conftest.err
2988 rm -f conftest.er1
2989 cat conftest.err >&5
2990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2991 (exit $ac_status); } >/dev/null && {
2992 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2993 test ! -s conftest.err
2994 }; then
2996 else
2997 $as_echo "$as_me: failed program was:" >&5
2998 sed 's/^/| /' conftest.$ac_ext >&5
3000 # Broken: fails on valid input.
3001 continue
3004 rm -f conftest.err conftest.$ac_ext
3006 # OK, works on sane cases. Now check whether nonexistent headers
3007 # can be detected and how.
3008 cat >conftest.$ac_ext <<_ACEOF
3009 /* confdefs.h. */
3010 _ACEOF
3011 cat confdefs.h >>conftest.$ac_ext
3012 cat >>conftest.$ac_ext <<_ACEOF
3013 /* end confdefs.h. */
3014 #include <ac_nonexistent.h>
3015 _ACEOF
3016 if { (ac_try="$ac_cpp conftest.$ac_ext"
3017 case "(($ac_try" in
3018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3019 *) ac_try_echo=$ac_try;;
3020 esac
3021 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3022 $as_echo "$ac_try_echo") >&5
3023 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3024 ac_status=$?
3025 grep -v '^ *+' conftest.er1 >conftest.err
3026 rm -f conftest.er1
3027 cat conftest.err >&5
3028 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029 (exit $ac_status); } >/dev/null && {
3030 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3031 test ! -s conftest.err
3032 }; then
3033 # Broken: success on invalid input.
3034 continue
3035 else
3036 $as_echo "$as_me: failed program was:" >&5
3037 sed 's/^/| /' conftest.$ac_ext >&5
3039 # Passes both tests.
3040 ac_preproc_ok=:
3041 break
3044 rm -f conftest.err conftest.$ac_ext
3046 done
3047 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3048 rm -f conftest.err conftest.$ac_ext
3049 if $ac_preproc_ok; then
3050 break
3053 done
3054 ac_cv_prog_CPP=$CPP
3057 CPP=$ac_cv_prog_CPP
3058 else
3059 ac_cv_prog_CPP=$CPP
3061 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3062 $as_echo "$CPP" >&6; }
3063 ac_preproc_ok=false
3064 for ac_c_preproc_warn_flag in '' yes
3066 # Use a header file that comes with gcc, so configuring glibc
3067 # with a fresh cross-compiler works.
3068 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3069 # <limits.h> exists even on freestanding compilers.
3070 # On the NeXT, cc -E runs the code through the compiler's parser,
3071 # not just through cpp. "Syntax error" is here to catch this case.
3072 cat >conftest.$ac_ext <<_ACEOF
3073 /* confdefs.h. */
3074 _ACEOF
3075 cat confdefs.h >>conftest.$ac_ext
3076 cat >>conftest.$ac_ext <<_ACEOF
3077 /* end confdefs.h. */
3078 #ifdef __STDC__
3079 # include <limits.h>
3080 #else
3081 # include <assert.h>
3082 #endif
3083 Syntax error
3084 _ACEOF
3085 if { (ac_try="$ac_cpp conftest.$ac_ext"
3086 case "(($ac_try" in
3087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3088 *) ac_try_echo=$ac_try;;
3089 esac
3090 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3091 $as_echo "$ac_try_echo") >&5
3092 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3093 ac_status=$?
3094 grep -v '^ *+' conftest.er1 >conftest.err
3095 rm -f conftest.er1
3096 cat conftest.err >&5
3097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098 (exit $ac_status); } >/dev/null && {
3099 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3100 test ! -s conftest.err
3101 }; then
3103 else
3104 $as_echo "$as_me: failed program was:" >&5
3105 sed 's/^/| /' conftest.$ac_ext >&5
3107 # Broken: fails on valid input.
3108 continue
3111 rm -f conftest.err conftest.$ac_ext
3113 # OK, works on sane cases. Now check whether nonexistent headers
3114 # can be detected and how.
3115 cat >conftest.$ac_ext <<_ACEOF
3116 /* confdefs.h. */
3117 _ACEOF
3118 cat confdefs.h >>conftest.$ac_ext
3119 cat >>conftest.$ac_ext <<_ACEOF
3120 /* end confdefs.h. */
3121 #include <ac_nonexistent.h>
3122 _ACEOF
3123 if { (ac_try="$ac_cpp conftest.$ac_ext"
3124 case "(($ac_try" in
3125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3126 *) ac_try_echo=$ac_try;;
3127 esac
3128 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3129 $as_echo "$ac_try_echo") >&5
3130 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3131 ac_status=$?
3132 grep -v '^ *+' conftest.er1 >conftest.err
3133 rm -f conftest.er1
3134 cat conftest.err >&5
3135 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136 (exit $ac_status); } >/dev/null && {
3137 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3138 test ! -s conftest.err
3139 }; then
3140 # Broken: success on invalid input.
3141 continue
3142 else
3143 $as_echo "$as_me: failed program was:" >&5
3144 sed 's/^/| /' conftest.$ac_ext >&5
3146 # Passes both tests.
3147 ac_preproc_ok=:
3148 break
3151 rm -f conftest.err conftest.$ac_ext
3153 done
3154 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3155 rm -f conftest.err conftest.$ac_ext
3156 if $ac_preproc_ok; then
3158 else
3159 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3160 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3161 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3162 See \`config.log' for more details." >&5
3163 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3164 See \`config.log' for more details." >&2;}
3165 { (exit 1); exit 1; }; }; }
3168 ac_ext=c
3169 ac_cpp='$CPP $CPPFLAGS'
3170 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3171 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3172 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3175 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3176 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3177 if test "${ac_cv_path_GREP+set}" = set; then
3178 $as_echo_n "(cached) " >&6
3179 else
3180 if test -z "$GREP"; then
3181 ac_path_GREP_found=false
3182 # Loop through the user's path and test for each of PROGNAME-LIST
3183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3184 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3186 IFS=$as_save_IFS
3187 test -z "$as_dir" && as_dir=.
3188 for ac_prog in grep ggrep; do
3189 for ac_exec_ext in '' $ac_executable_extensions; do
3190 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3191 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3192 # Check for GNU ac_path_GREP and select it if it is found.
3193 # Check for GNU $ac_path_GREP
3194 case `"$ac_path_GREP" --version 2>&1` in
3195 *GNU*)
3196 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3198 ac_count=0
3199 $as_echo_n 0123456789 >"conftest.in"
3200 while :
3202 cat "conftest.in" "conftest.in" >"conftest.tmp"
3203 mv "conftest.tmp" "conftest.in"
3204 cp "conftest.in" "conftest.nl"
3205 $as_echo 'GREP' >> "conftest.nl"
3206 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3207 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3208 ac_count=`expr $ac_count + 1`
3209 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3210 # Best one so far, save it but keep looking for a better one
3211 ac_cv_path_GREP="$ac_path_GREP"
3212 ac_path_GREP_max=$ac_count
3214 # 10*(2^10) chars as input seems more than enough
3215 test $ac_count -gt 10 && break
3216 done
3217 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3218 esac
3220 $ac_path_GREP_found && break 3
3221 done
3222 done
3223 done
3224 IFS=$as_save_IFS
3225 if test -z "$ac_cv_path_GREP"; then
3226 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3227 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3228 { (exit 1); exit 1; }; }
3230 else
3231 ac_cv_path_GREP=$GREP
3235 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3236 $as_echo "$ac_cv_path_GREP" >&6; }
3237 GREP="$ac_cv_path_GREP"
3240 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3241 $as_echo_n "checking for egrep... " >&6; }
3242 if test "${ac_cv_path_EGREP+set}" = set; then
3243 $as_echo_n "(cached) " >&6
3244 else
3245 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3246 then ac_cv_path_EGREP="$GREP -E"
3247 else
3248 if test -z "$EGREP"; then
3249 ac_path_EGREP_found=false
3250 # Loop through the user's path and test for each of PROGNAME-LIST
3251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3252 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3254 IFS=$as_save_IFS
3255 test -z "$as_dir" && as_dir=.
3256 for ac_prog in egrep; do
3257 for ac_exec_ext in '' $ac_executable_extensions; do
3258 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3259 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3260 # Check for GNU ac_path_EGREP and select it if it is found.
3261 # Check for GNU $ac_path_EGREP
3262 case `"$ac_path_EGREP" --version 2>&1` in
3263 *GNU*)
3264 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3266 ac_count=0
3267 $as_echo_n 0123456789 >"conftest.in"
3268 while :
3270 cat "conftest.in" "conftest.in" >"conftest.tmp"
3271 mv "conftest.tmp" "conftest.in"
3272 cp "conftest.in" "conftest.nl"
3273 $as_echo 'EGREP' >> "conftest.nl"
3274 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3275 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3276 ac_count=`expr $ac_count + 1`
3277 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3278 # Best one so far, save it but keep looking for a better one
3279 ac_cv_path_EGREP="$ac_path_EGREP"
3280 ac_path_EGREP_max=$ac_count
3282 # 10*(2^10) chars as input seems more than enough
3283 test $ac_count -gt 10 && break
3284 done
3285 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3286 esac
3288 $ac_path_EGREP_found && break 3
3289 done
3290 done
3291 done
3292 IFS=$as_save_IFS
3293 if test -z "$ac_cv_path_EGREP"; then
3294 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3295 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3296 { (exit 1); exit 1; }; }
3298 else
3299 ac_cv_path_EGREP=$EGREP
3304 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3305 $as_echo "$ac_cv_path_EGREP" >&6; }
3306 EGREP="$ac_cv_path_EGREP"
3309 cat >conftest.$ac_ext <<_ACEOF
3310 /* confdefs.h. */
3311 _ACEOF
3312 cat confdefs.h >>conftest.$ac_ext
3313 cat >>conftest.$ac_ext <<_ACEOF
3314 /* end confdefs.h. */
3316 _ACEOF
3317 rm -f conftest*
3318 { $as_echo "$as_me:$LINENO: checking for library containing strerror" >&5
3319 $as_echo_n "checking for library containing strerror... " >&6; }
3320 if test "${ac_cv_search_strerror+set}" = set; then
3321 $as_echo_n "(cached) " >&6
3322 else
3323 ac_func_search_save_LIBS=$LIBS
3324 cat >conftest.$ac_ext <<_ACEOF
3325 /* confdefs.h. */
3326 _ACEOF
3327 cat confdefs.h >>conftest.$ac_ext
3328 cat >>conftest.$ac_ext <<_ACEOF
3329 /* end confdefs.h. */
3331 /* Override any GCC internal prototype to avoid an error.
3332 Use char because int might match the return type of a GCC
3333 builtin and then its argument prototype would still apply. */
3334 #ifdef __cplusplus
3335 extern "C"
3336 #endif
3337 char strerror ();
3339 main ()
3341 return strerror ();
3343 return 0;
3345 _ACEOF
3346 for ac_lib in '' cposix; do
3347 if test -z "$ac_lib"; then
3348 ac_res="none required"
3349 else
3350 ac_res=-l$ac_lib
3351 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3353 rm -f conftest.$ac_objext conftest$ac_exeext
3354 if { (ac_try="$ac_link"
3355 case "(($ac_try" in
3356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3357 *) ac_try_echo=$ac_try;;
3358 esac
3359 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3360 $as_echo "$ac_try_echo") >&5
3361 (eval "$ac_link") 2>conftest.er1
3362 ac_status=$?
3363 grep -v '^ *+' conftest.er1 >conftest.err
3364 rm -f conftest.er1
3365 cat conftest.err >&5
3366 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3367 (exit $ac_status); } && {
3368 test -z "$ac_c_werror_flag" ||
3369 test ! -s conftest.err
3370 } && test -s conftest$ac_exeext && {
3371 test "$cross_compiling" = yes ||
3372 $as_test_x conftest$ac_exeext
3373 }; then
3374 ac_cv_search_strerror=$ac_res
3375 else
3376 $as_echo "$as_me: failed program was:" >&5
3377 sed 's/^/| /' conftest.$ac_ext >&5
3382 rm -rf conftest.dSYM
3383 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3384 conftest$ac_exeext
3385 if test "${ac_cv_search_strerror+set}" = set; then
3386 break
3388 done
3389 if test "${ac_cv_search_strerror+set}" = set; then
3391 else
3392 ac_cv_search_strerror=no
3394 rm conftest.$ac_ext
3395 LIBS=$ac_func_search_save_LIBS
3397 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3398 $as_echo "$ac_cv_search_strerror" >&6; }
3399 ac_res=$ac_cv_search_strerror
3400 if test "$ac_res" != no; then
3401 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3404 for ac_prog in gawk mawk nawk awk
3406 # Extract the first word of "$ac_prog", so it can be a program name with args.
3407 set dummy $ac_prog; ac_word=$2
3408 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3409 $as_echo_n "checking for $ac_word... " >&6; }
3410 if test "${ac_cv_prog_AWK+set}" = set; then
3411 $as_echo_n "(cached) " >&6
3412 else
3413 if test -n "$AWK"; then
3414 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3415 else
3416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3417 for as_dir in $PATH
3419 IFS=$as_save_IFS
3420 test -z "$as_dir" && as_dir=.
3421 for ac_exec_ext in '' $ac_executable_extensions; do
3422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3423 ac_cv_prog_AWK="$ac_prog"
3424 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3425 break 2
3427 done
3428 done
3429 IFS=$as_save_IFS
3433 AWK=$ac_cv_prog_AWK
3434 if test -n "$AWK"; then
3435 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
3436 $as_echo "$AWK" >&6; }
3437 else
3438 { $as_echo "$as_me:$LINENO: result: no" >&5
3439 $as_echo "no" >&6; }
3443 test -n "$AWK" && break
3444 done
3446 # Extract the first word of "strip", so it can be a program name with args.
3447 set dummy strip; ac_word=$2
3448 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3449 $as_echo_n "checking for $ac_word... " >&6; }
3450 if test "${ac_cv_prog_STRIP+set}" = set; then
3451 $as_echo_n "(cached) " >&6
3452 else
3453 if test -n "$STRIP"; then
3454 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3455 else
3456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3457 for as_dir in $PATH
3459 IFS=$as_save_IFS
3460 test -z "$as_dir" && as_dir=.
3461 for ac_exec_ext in '' $ac_executable_extensions; do
3462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3463 ac_cv_prog_STRIP="strip"
3464 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3465 break 2
3467 done
3468 done
3469 IFS=$as_save_IFS
3471 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
3474 STRIP=$ac_cv_prog_STRIP
3475 if test -n "$STRIP"; then
3476 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
3477 $as_echo "$STRIP" >&6; }
3478 else
3479 { $as_echo "$as_me:$LINENO: result: no" >&5
3480 $as_echo "no" >&6; }
3487 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3488 $as_echo_n "checking for ANSI C header files... " >&6; }
3489 if test "${ac_cv_header_stdc+set}" = set; then
3490 $as_echo_n "(cached) " >&6
3491 else
3492 cat >conftest.$ac_ext <<_ACEOF
3493 /* confdefs.h. */
3494 _ACEOF
3495 cat confdefs.h >>conftest.$ac_ext
3496 cat >>conftest.$ac_ext <<_ACEOF
3497 /* end confdefs.h. */
3498 #include <stdlib.h>
3499 #include <stdarg.h>
3500 #include <string.h>
3501 #include <float.h>
3504 main ()
3508 return 0;
3510 _ACEOF
3511 rm -f conftest.$ac_objext
3512 if { (ac_try="$ac_compile"
3513 case "(($ac_try" in
3514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3515 *) ac_try_echo=$ac_try;;
3516 esac
3517 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3518 $as_echo "$ac_try_echo") >&5
3519 (eval "$ac_compile") 2>conftest.er1
3520 ac_status=$?
3521 grep -v '^ *+' conftest.er1 >conftest.err
3522 rm -f conftest.er1
3523 cat conftest.err >&5
3524 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3525 (exit $ac_status); } && {
3526 test -z "$ac_c_werror_flag" ||
3527 test ! -s conftest.err
3528 } && test -s conftest.$ac_objext; then
3529 ac_cv_header_stdc=yes
3530 else
3531 $as_echo "$as_me: failed program was:" >&5
3532 sed 's/^/| /' conftest.$ac_ext >&5
3534 ac_cv_header_stdc=no
3537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3539 if test $ac_cv_header_stdc = yes; then
3540 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3541 cat >conftest.$ac_ext <<_ACEOF
3542 /* confdefs.h. */
3543 _ACEOF
3544 cat confdefs.h >>conftest.$ac_ext
3545 cat >>conftest.$ac_ext <<_ACEOF
3546 /* end confdefs.h. */
3547 #include <string.h>
3549 _ACEOF
3550 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3551 $EGREP "memchr" >/dev/null 2>&1; then
3553 else
3554 ac_cv_header_stdc=no
3556 rm -f conftest*
3560 if test $ac_cv_header_stdc = yes; then
3561 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3562 cat >conftest.$ac_ext <<_ACEOF
3563 /* confdefs.h. */
3564 _ACEOF
3565 cat confdefs.h >>conftest.$ac_ext
3566 cat >>conftest.$ac_ext <<_ACEOF
3567 /* end confdefs.h. */
3568 #include <stdlib.h>
3570 _ACEOF
3571 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3572 $EGREP "free" >/dev/null 2>&1; then
3574 else
3575 ac_cv_header_stdc=no
3577 rm -f conftest*
3581 if test $ac_cv_header_stdc = yes; then
3582 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3583 if test "$cross_compiling" = yes; then
3585 else
3586 cat >conftest.$ac_ext <<_ACEOF
3587 /* confdefs.h. */
3588 _ACEOF
3589 cat confdefs.h >>conftest.$ac_ext
3590 cat >>conftest.$ac_ext <<_ACEOF
3591 /* end confdefs.h. */
3592 #include <ctype.h>
3593 #include <stdlib.h>
3594 #if ((' ' & 0x0FF) == 0x020)
3595 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3596 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3597 #else
3598 # define ISLOWER(c) \
3599 (('a' <= (c) && (c) <= 'i') \
3600 || ('j' <= (c) && (c) <= 'r') \
3601 || ('s' <= (c) && (c) <= 'z'))
3602 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3603 #endif
3605 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3607 main ()
3609 int i;
3610 for (i = 0; i < 256; i++)
3611 if (XOR (islower (i), ISLOWER (i))
3612 || toupper (i) != TOUPPER (i))
3613 return 2;
3614 return 0;
3616 _ACEOF
3617 rm -f conftest$ac_exeext
3618 if { (ac_try="$ac_link"
3619 case "(($ac_try" in
3620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3621 *) ac_try_echo=$ac_try;;
3622 esac
3623 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3624 $as_echo "$ac_try_echo") >&5
3625 (eval "$ac_link") 2>&5
3626 ac_status=$?
3627 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3628 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3629 { (case "(($ac_try" in
3630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3631 *) ac_try_echo=$ac_try;;
3632 esac
3633 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3634 $as_echo "$ac_try_echo") >&5
3635 (eval "$ac_try") 2>&5
3636 ac_status=$?
3637 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3638 (exit $ac_status); }; }; then
3640 else
3641 $as_echo "$as_me: program exited with status $ac_status" >&5
3642 $as_echo "$as_me: failed program was:" >&5
3643 sed 's/^/| /' conftest.$ac_ext >&5
3645 ( exit $ac_status )
3646 ac_cv_header_stdc=no
3648 rm -rf conftest.dSYM
3649 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3655 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3656 $as_echo "$ac_cv_header_stdc" >&6; }
3657 if test $ac_cv_header_stdc = yes; then
3659 cat >>confdefs.h <<\_ACEOF
3660 #define STDC_HEADERS 1
3661 _ACEOF
3665 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
3666 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
3667 if test "${ac_cv_header_sys_wait_h+set}" = set; then
3668 $as_echo_n "(cached) " >&6
3669 else
3670 cat >conftest.$ac_ext <<_ACEOF
3671 /* confdefs.h. */
3672 _ACEOF
3673 cat confdefs.h >>conftest.$ac_ext
3674 cat >>conftest.$ac_ext <<_ACEOF
3675 /* end confdefs.h. */
3676 #include <sys/types.h>
3677 #include <sys/wait.h>
3678 #ifndef WEXITSTATUS
3679 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
3680 #endif
3681 #ifndef WIFEXITED
3682 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3683 #endif
3686 main ()
3688 int s;
3689 wait (&s);
3690 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3692 return 0;
3694 _ACEOF
3695 rm -f conftest.$ac_objext
3696 if { (ac_try="$ac_compile"
3697 case "(($ac_try" in
3698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3699 *) ac_try_echo=$ac_try;;
3700 esac
3701 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3702 $as_echo "$ac_try_echo") >&5
3703 (eval "$ac_compile") 2>conftest.er1
3704 ac_status=$?
3705 grep -v '^ *+' conftest.er1 >conftest.err
3706 rm -f conftest.er1
3707 cat conftest.err >&5
3708 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3709 (exit $ac_status); } && {
3710 test -z "$ac_c_werror_flag" ||
3711 test ! -s conftest.err
3712 } && test -s conftest.$ac_objext; then
3713 ac_cv_header_sys_wait_h=yes
3714 else
3715 $as_echo "$as_me: failed program was:" >&5
3716 sed 's/^/| /' conftest.$ac_ext >&5
3718 ac_cv_header_sys_wait_h=no
3721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3723 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
3724 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
3725 if test $ac_cv_header_sys_wait_h = yes; then
3727 cat >>confdefs.h <<\_ACEOF
3728 #define HAVE_SYS_WAIT_H 1
3729 _ACEOF
3734 if test -z "$CFLAGS"; then
3735 CFLAGS="-O"
3736 test "$GCC" = yes && CFLAGS="-O2 -fno-strength-reduce -Wall"
3738 if test "$GCC" = yes; then
3739 gccversion=`"$CC" -dumpversion`
3740 if test "x$gccversion" = "x"; then
3741 gccversion=`"$CC" --version | sed -e '2,$d' -e 's/darwin.//' -e 's/^[^0-9]*\([0-9]\.[0-9.]*\).*$/\1/g'`
3743 if test "$gccversion" = "3.0.1" -o "$gccversion" = "3.0.2" -o "$gccversion" = "4.0.1"; then
3744 echo 'GCC [34].0.[12] has a bug in the optimizer, disabling "-O#"'
3745 CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-O/'`
3746 else
3747 if test "$gccversion" = "3.1" -o "$gccversion" = "3.2" -o "$gccversion" = "3.2.1" && `echo "$CFLAGS" | grep -v fno-strength-reduce >/dev/null`; then
3748 echo 'GCC 3.1 and 3.2 have a bug in the optimizer, adding "-fno-strength-reduce"'
3749 CFLAGS="$CFLAGS -fno-strength-reduce"
3754 if test "$cross_compiling" = yes; then
3755 { $as_echo "$as_me:$LINENO: result: cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&5
3756 $as_echo "cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&6; }
3759 test "$GCC" = yes && CPP_MM=M;
3761 if test -f ./toolcheck; then
3762 { $as_echo "$as_me:$LINENO: checking for buggy tools..." >&5
3763 $as_echo "$as_me: checking for buggy tools..." >&6;}
3764 sh ./toolcheck 1>&6
3767 OS_EXTRA_SRC=""; OS_EXTRA_OBJ=""
3769 { $as_echo "$as_me:$LINENO: checking for BeOS" >&5
3770 $as_echo_n "checking for BeOS... " >&6; }
3771 case `uname` in
3772 BeOS) OS_EXTRA_SRC=os_beos.c; OS_EXTRA_OBJ=objects/os_beos.o
3773 BEOS=yes; { $as_echo "$as_me:$LINENO: result: yes" >&5
3774 $as_echo "yes" >&6; };;
3775 *) BEOS=no; { $as_echo "$as_me:$LINENO: result: no" >&5
3776 $as_echo "no" >&6; };;
3777 esac
3779 { $as_echo "$as_me:$LINENO: checking for QNX" >&5
3780 $as_echo_n "checking for QNX... " >&6; }
3781 case `uname` in
3782 QNX) OS_EXTRA_SRC=os_qnx.c; OS_EXTRA_OBJ=objects/os_qnx.o
3783 test -z "$with_x" && with_x=no
3784 QNX=yes; { $as_echo "$as_me:$LINENO: result: yes" >&5
3785 $as_echo "yes" >&6; };;
3786 *) QNX=no; { $as_echo "$as_me:$LINENO: result: no" >&5
3787 $as_echo "no" >&6; };;
3788 esac
3790 { $as_echo "$as_me:$LINENO: checking for Darwin (Mac OS X)" >&5
3791 $as_echo_n "checking for Darwin (Mac OS X)... " >&6; }
3792 if test "`(uname) 2>/dev/null`" = Darwin; then
3793 { $as_echo "$as_me:$LINENO: result: yes" >&5
3794 $as_echo "yes" >&6; }
3796 { $as_echo "$as_me:$LINENO: checking --disable-darwin argument" >&5
3797 $as_echo_n "checking --disable-darwin argument... " >&6; }
3798 # Check whether --enable-darwin was given.
3799 if test "${enable_darwin+set}" = set; then
3800 enableval=$enable_darwin;
3801 else
3802 enable_darwin="yes"
3805 if test "$enable_darwin" = "yes"; then
3806 { $as_echo "$as_me:$LINENO: result: no" >&5
3807 $as_echo "no" >&6; }
3808 { $as_echo "$as_me:$LINENO: checking if Darwin files are there" >&5
3809 $as_echo_n "checking if Darwin files are there... " >&6; }
3810 if test -f os_macosx.c; then
3811 { $as_echo "$as_me:$LINENO: result: yes" >&5
3812 $as_echo "yes" >&6; }
3813 else
3814 { $as_echo "$as_me:$LINENO: result: no, Darwin support disabled" >&5
3815 $as_echo "no, Darwin support disabled" >&6; }
3816 enable_darwin=no
3818 else
3819 { $as_echo "$as_me:$LINENO: result: yes, Darwin support excluded" >&5
3820 $as_echo "yes, Darwin support excluded" >&6; }
3823 { $as_echo "$as_me:$LINENO: checking --with-mac-arch argument" >&5
3824 $as_echo_n "checking --with-mac-arch argument... " >&6; }
3826 # Check whether --with-mac-arch was given.
3827 if test "${with_mac_arch+set}" = set; then
3828 withval=$with_mac_arch; MACARCH="$withval"; { $as_echo "$as_me:$LINENO: result: $MACARCH" >&5
3829 $as_echo "$MACARCH" >&6; }
3830 else
3831 MACARCH="current"; { $as_echo "$as_me:$LINENO: result: defaulting to $MACARCH" >&5
3832 $as_echo "defaulting to $MACARCH" >&6; }
3836 if test "x$MACARCH" = "xboth"; then
3837 { $as_echo "$as_me:$LINENO: checking for 10.4 universal SDK" >&5
3838 $as_echo_n "checking for 10.4 universal SDK... " >&6; }
3839 save_cppflags="$CPPFLAGS"
3840 save_cflags="$CFLAGS"
3841 save_ldflags="$LDFLAGS"
3842 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc"
3843 cat >conftest.$ac_ext <<_ACEOF
3844 /* confdefs.h. */
3845 _ACEOF
3846 cat confdefs.h >>conftest.$ac_ext
3847 cat >>conftest.$ac_ext <<_ACEOF
3848 /* end confdefs.h. */
3851 main ()
3855 return 0;
3857 _ACEOF
3858 rm -f conftest.$ac_objext conftest$ac_exeext
3859 if { (ac_try="$ac_link"
3860 case "(($ac_try" in
3861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3862 *) ac_try_echo=$ac_try;;
3863 esac
3864 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3865 $as_echo "$ac_try_echo") >&5
3866 (eval "$ac_link") 2>conftest.er1
3867 ac_status=$?
3868 grep -v '^ *+' conftest.er1 >conftest.err
3869 rm -f conftest.er1
3870 cat conftest.err >&5
3871 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3872 (exit $ac_status); } && {
3873 test -z "$ac_c_werror_flag" ||
3874 test ! -s conftest.err
3875 } && test -s conftest$ac_exeext && {
3876 test "$cross_compiling" = yes ||
3877 $as_test_x conftest$ac_exeext
3878 }; then
3879 { $as_echo "$as_me:$LINENO: result: found" >&5
3880 $as_echo "found" >&6; }
3881 else
3882 $as_echo "$as_me: failed program was:" >&5
3883 sed 's/^/| /' conftest.$ac_ext >&5
3885 { $as_echo "$as_me:$LINENO: result: not found" >&5
3886 $as_echo "not found" >&6; }
3887 CFLAGS="$save_cflags"
3888 { $as_echo "$as_me:$LINENO: checking if Intel architecture is supported" >&5
3889 $as_echo_n "checking if Intel architecture is supported... " >&6; }
3890 CPPFLAGS="$CPPFLAGS -arch i386"
3891 LDFLAGS="$save_ldflags -arch i386"
3892 cat >conftest.$ac_ext <<_ACEOF
3893 /* confdefs.h. */
3894 _ACEOF
3895 cat confdefs.h >>conftest.$ac_ext
3896 cat >>conftest.$ac_ext <<_ACEOF
3897 /* end confdefs.h. */
3900 main ()
3904 return 0;
3906 _ACEOF
3907 rm -f conftest.$ac_objext conftest$ac_exeext
3908 if { (ac_try="$ac_link"
3909 case "(($ac_try" in
3910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3911 *) ac_try_echo=$ac_try;;
3912 esac
3913 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3914 $as_echo "$ac_try_echo") >&5
3915 (eval "$ac_link") 2>conftest.er1
3916 ac_status=$?
3917 grep -v '^ *+' conftest.er1 >conftest.err
3918 rm -f conftest.er1
3919 cat conftest.err >&5
3920 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3921 (exit $ac_status); } && {
3922 test -z "$ac_c_werror_flag" ||
3923 test ! -s conftest.err
3924 } && test -s conftest$ac_exeext && {
3925 test "$cross_compiling" = yes ||
3926 $as_test_x conftest$ac_exeext
3927 }; then
3928 { $as_echo "$as_me:$LINENO: result: yes" >&5
3929 $as_echo "yes" >&6; }; MACARCH="intel"
3930 else
3931 $as_echo "$as_me: failed program was:" >&5
3932 sed 's/^/| /' conftest.$ac_ext >&5
3934 { $as_echo "$as_me:$LINENO: result: no" >&5
3935 $as_echo "no" >&6; }
3936 MACARCH="ppc"
3937 CPPFLAGS="$save_cppflags -arch ppc"
3938 LDFLAGS="$save_ldflags -arch ppc"
3941 rm -rf conftest.dSYM
3942 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3943 conftest$ac_exeext conftest.$ac_ext
3946 rm -rf conftest.dSYM
3947 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3948 conftest$ac_exeext conftest.$ac_ext
3949 elif test "x$MACARCH" = "xintel"; then
3950 CPPFLAGS="$CPPFLAGS -arch intel"
3951 LDFLAGS="$LDFLAGS -arch intel"
3952 elif test "x$MACARCH" = "xppc"; then
3953 CPPFLAGS="$CPPFLAGS -arch ppc"
3954 LDFLAGS="$LDFLAGS -arch ppc"
3957 if test "$enable_darwin" = "yes"; then
3958 MACOSX=yes
3959 OS_EXTRA_SRC="os_macosx.c os_mac_conv.c";
3960 OS_EXTRA_OBJ="objects/os_macosx.o objects/os_mac_conv.o"
3961 CPPFLAGS="$CPPFLAGS -DMACOS_X_UNIX -no-cpp-precomp"
3962 if test "x$MACARCH" = "xboth"; then
3963 CPPFLAGS="$CPPFLAGS -I/Developer/SDKs/MacOSX10.4u.sdk/Developer/Headers/FlatCarbon"
3964 else
3965 CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon"
3968 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3978 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3979 inttypes.h stdint.h unistd.h
3981 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3982 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
3983 $as_echo_n "checking for $ac_header... " >&6; }
3984 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3985 $as_echo_n "(cached) " >&6
3986 else
3987 cat >conftest.$ac_ext <<_ACEOF
3988 /* confdefs.h. */
3989 _ACEOF
3990 cat confdefs.h >>conftest.$ac_ext
3991 cat >>conftest.$ac_ext <<_ACEOF
3992 /* end confdefs.h. */
3993 $ac_includes_default
3995 #include <$ac_header>
3996 _ACEOF
3997 rm -f conftest.$ac_objext
3998 if { (ac_try="$ac_compile"
3999 case "(($ac_try" in
4000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4001 *) ac_try_echo=$ac_try;;
4002 esac
4003 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4004 $as_echo "$ac_try_echo") >&5
4005 (eval "$ac_compile") 2>conftest.er1
4006 ac_status=$?
4007 grep -v '^ *+' conftest.er1 >conftest.err
4008 rm -f conftest.er1
4009 cat conftest.err >&5
4010 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4011 (exit $ac_status); } && {
4012 test -z "$ac_c_werror_flag" ||
4013 test ! -s conftest.err
4014 } && test -s conftest.$ac_objext; then
4015 eval "$as_ac_Header=yes"
4016 else
4017 $as_echo "$as_me: failed program was:" >&5
4018 sed 's/^/| /' conftest.$ac_ext >&5
4020 eval "$as_ac_Header=no"
4023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4025 ac_res=`eval 'as_val=${'$as_ac_Header'}
4026 $as_echo "$as_val"'`
4027 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4028 $as_echo "$ac_res" >&6; }
4029 as_val=`eval 'as_val=${'$as_ac_Header'}
4030 $as_echo "$as_val"'`
4031 if test "x$as_val" = x""yes; then
4032 cat >>confdefs.h <<_ACEOF
4033 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4034 _ACEOF
4038 done
4041 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
4042 { $as_echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
4043 $as_echo_n "checking for Carbon/Carbon.h... " >&6; }
4044 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
4045 $as_echo_n "(cached) " >&6
4047 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
4048 $as_echo "$ac_cv_header_Carbon_Carbon_h" >&6; }
4049 else
4050 # Is the header compilable?
4051 { $as_echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
4052 $as_echo_n "checking Carbon/Carbon.h usability... " >&6; }
4053 cat >conftest.$ac_ext <<_ACEOF
4054 /* confdefs.h. */
4055 _ACEOF
4056 cat confdefs.h >>conftest.$ac_ext
4057 cat >>conftest.$ac_ext <<_ACEOF
4058 /* end confdefs.h. */
4059 $ac_includes_default
4060 #include <Carbon/Carbon.h>
4061 _ACEOF
4062 rm -f conftest.$ac_objext
4063 if { (ac_try="$ac_compile"
4064 case "(($ac_try" in
4065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4066 *) ac_try_echo=$ac_try;;
4067 esac
4068 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4069 $as_echo "$ac_try_echo") >&5
4070 (eval "$ac_compile") 2>conftest.er1
4071 ac_status=$?
4072 grep -v '^ *+' conftest.er1 >conftest.err
4073 rm -f conftest.er1
4074 cat conftest.err >&5
4075 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076 (exit $ac_status); } && {
4077 test -z "$ac_c_werror_flag" ||
4078 test ! -s conftest.err
4079 } && test -s conftest.$ac_objext; then
4080 ac_header_compiler=yes
4081 else
4082 $as_echo "$as_me: failed program was:" >&5
4083 sed 's/^/| /' conftest.$ac_ext >&5
4085 ac_header_compiler=no
4088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4089 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4090 $as_echo "$ac_header_compiler" >&6; }
4092 # Is the header present?
4093 { $as_echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
4094 $as_echo_n "checking Carbon/Carbon.h presence... " >&6; }
4095 cat >conftest.$ac_ext <<_ACEOF
4096 /* confdefs.h. */
4097 _ACEOF
4098 cat confdefs.h >>conftest.$ac_ext
4099 cat >>conftest.$ac_ext <<_ACEOF
4100 /* end confdefs.h. */
4101 #include <Carbon/Carbon.h>
4102 _ACEOF
4103 if { (ac_try="$ac_cpp conftest.$ac_ext"
4104 case "(($ac_try" in
4105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4106 *) ac_try_echo=$ac_try;;
4107 esac
4108 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4109 $as_echo "$ac_try_echo") >&5
4110 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4111 ac_status=$?
4112 grep -v '^ *+' conftest.er1 >conftest.err
4113 rm -f conftest.er1
4114 cat conftest.err >&5
4115 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4116 (exit $ac_status); } >/dev/null && {
4117 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4118 test ! -s conftest.err
4119 }; then
4120 ac_header_preproc=yes
4121 else
4122 $as_echo "$as_me: failed program was:" >&5
4123 sed 's/^/| /' conftest.$ac_ext >&5
4125 ac_header_preproc=no
4128 rm -f conftest.err conftest.$ac_ext
4129 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4130 $as_echo "$ac_header_preproc" >&6; }
4132 # So? What about this header?
4133 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4134 yes:no: )
4135 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
4136 $as_echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4137 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
4138 $as_echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
4139 ac_header_preproc=yes
4141 no:yes:* )
4142 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
4143 $as_echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
4144 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
4145 $as_echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
4146 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
4147 $as_echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
4148 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
4149 $as_echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
4150 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
4151 $as_echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
4152 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
4153 $as_echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
4156 esac
4157 { $as_echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
4158 $as_echo_n "checking for Carbon/Carbon.h... " >&6; }
4159 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
4160 $as_echo_n "(cached) " >&6
4161 else
4162 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
4164 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
4165 $as_echo "$ac_cv_header_Carbon_Carbon_h" >&6; }
4168 if test "x$ac_cv_header_Carbon_Carbon_h" = x""yes; then
4169 CARBON=yes
4173 if test "x$CARBON" = "xyes"; then
4174 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
4175 with_x=no
4180 if test "$MACARCH" = "intel" -o "$MACARCH" = "both"; then
4181 CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-Oz/'`
4184 else
4185 { $as_echo "$as_me:$LINENO: result: no" >&5
4186 $as_echo "no" >&6; }
4192 if test "$cross_compiling" = no; then
4193 { $as_echo "$as_me:$LINENO: checking --with-local-dir argument" >&5
4194 $as_echo_n "checking --with-local-dir argument... " >&6; }
4195 have_local_include=''
4196 have_local_lib=''
4198 # Check whether --with-local-dir was given.
4199 if test "${with_local_dir+set}" = set; then
4200 withval=$with_local_dir;
4201 local_dir="$withval"
4202 case "$withval" in
4203 */*) ;;
4205 # avoid adding local dir to LDFLAGS and CPPFLAGS
4206 have_local_dir=yes
4207 have_local_lib=yes
4209 *) { { $as_echo "$as_me:$LINENO: error: must pass path argument to --with-local-dir" >&5
4210 $as_echo "$as_me: error: must pass path argument to --with-local-dir" >&2;}
4211 { (exit 1); exit 1; }; } ;;
4212 esac
4213 { $as_echo "$as_me:$LINENO: result: $local_dir" >&5
4214 $as_echo "$local_dir" >&6; }
4216 else
4218 local_dir=/usr/local
4219 { $as_echo "$as_me:$LINENO: result: Defaulting to $local_dir" >&5
4220 $as_echo "Defaulting to $local_dir" >&6; }
4224 if test "$GCC" = yes -a "$local_dir" != no; then
4225 echo 'void f(){}' > conftest.c
4226 have_local_include=`${CC-cc} -no-cpp-precomp -c -v conftest.c 2>&1 | grep "${local_dir}/include"`
4227 have_local_lib=`${CC-cc} -c -v conftest.c 2>&1 | grep "${local_dir}/lib"`
4228 rm -f conftest.c conftest.o
4230 if test -z "$have_local_lib" -a -d "${local_dir}/lib"; then
4231 tt=`echo "$LDFLAGS" | sed -e "s+-L${local_dir}/lib ++g" -e "s+-L${local_dir}/lib$++g"`
4232 if test "$tt" = "$LDFLAGS"; then
4233 LDFLAGS="$LDFLAGS -L${local_dir}/lib"
4236 if test -z "$have_local_include" -a -d "${local_dir}/include"; then
4237 tt=`echo "$CPPFLAGS" | sed -e "s+-I${local_dir}/include ++g" -e "s+-I${local_dir}/include$++g"`
4238 if test "$tt" = "$CPPFLAGS"; then
4239 CPPFLAGS="$CPPFLAGS -I${local_dir}/include"
4244 { $as_echo "$as_me:$LINENO: checking --with-vim-name argument" >&5
4245 $as_echo_n "checking --with-vim-name argument... " >&6; }
4247 # Check whether --with-vim-name was given.
4248 if test "${with_vim_name+set}" = set; then
4249 withval=$with_vim_name; VIMNAME="$withval"; { $as_echo "$as_me:$LINENO: result: $VIMNAME" >&5
4250 $as_echo "$VIMNAME" >&6; }
4251 else
4252 VIMNAME="vim"; { $as_echo "$as_me:$LINENO: result: Defaulting to $VIMNAME" >&5
4253 $as_echo "Defaulting to $VIMNAME" >&6; }
4257 { $as_echo "$as_me:$LINENO: checking --with-ex-name argument" >&5
4258 $as_echo_n "checking --with-ex-name argument... " >&6; }
4260 # Check whether --with-ex-name was given.
4261 if test "${with_ex_name+set}" = set; then
4262 withval=$with_ex_name; EXNAME="$withval"; { $as_echo "$as_me:$LINENO: result: $EXNAME" >&5
4263 $as_echo "$EXNAME" >&6; }
4264 else
4265 EXNAME="ex"; { $as_echo "$as_me:$LINENO: result: Defaulting to ex" >&5
4266 $as_echo "Defaulting to ex" >&6; }
4270 { $as_echo "$as_me:$LINENO: checking --with-view-name argument" >&5
4271 $as_echo_n "checking --with-view-name argument... " >&6; }
4273 # Check whether --with-view-name was given.
4274 if test "${with_view_name+set}" = set; then
4275 withval=$with_view_name; VIEWNAME="$withval"; { $as_echo "$as_me:$LINENO: result: $VIEWNAME" >&5
4276 $as_echo "$VIEWNAME" >&6; }
4277 else
4278 VIEWNAME="view"; { $as_echo "$as_me:$LINENO: result: Defaulting to view" >&5
4279 $as_echo "Defaulting to view" >&6; }
4284 { $as_echo "$as_me:$LINENO: checking --with-global-runtime argument" >&5
4285 $as_echo_n "checking --with-global-runtime argument... " >&6; }
4287 # Check whether --with-global-runtime was given.
4288 if test "${with_global_runtime+set}" = set; then
4289 withval=$with_global_runtime; { $as_echo "$as_me:$LINENO: result: $withval" >&5
4290 $as_echo "$withval" >&6; }; cat >>confdefs.h <<_ACEOF
4291 #define RUNTIME_GLOBAL "$withval"
4292 _ACEOF
4294 else
4295 { $as_echo "$as_me:$LINENO: result: no" >&5
4296 $as_echo "no" >&6; }
4300 { $as_echo "$as_me:$LINENO: checking --with-modified-by argument" >&5
4301 $as_echo_n "checking --with-modified-by argument... " >&6; }
4303 # Check whether --with-modified-by was given.
4304 if test "${with_modified_by+set}" = set; then
4305 withval=$with_modified_by; { $as_echo "$as_me:$LINENO: result: $withval" >&5
4306 $as_echo "$withval" >&6; }; cat >>confdefs.h <<_ACEOF
4307 #define MODIFIED_BY "$withval"
4308 _ACEOF
4310 else
4311 { $as_echo "$as_me:$LINENO: result: no" >&5
4312 $as_echo "no" >&6; }
4316 { $as_echo "$as_me:$LINENO: checking if character set is EBCDIC" >&5
4317 $as_echo_n "checking if character set is EBCDIC... " >&6; }
4318 cat >conftest.$ac_ext <<_ACEOF
4319 /* confdefs.h. */
4320 _ACEOF
4321 cat confdefs.h >>conftest.$ac_ext
4322 cat >>conftest.$ac_ext <<_ACEOF
4323 /* end confdefs.h. */
4326 main ()
4328 /* TryCompile function for CharSet.
4329 Treat any failure as ASCII for compatibility with existing art.
4330 Use compile-time rather than run-time tests for cross-compiler
4331 tolerance. */
4332 #if '0'!=240
4333 make an error "Character set is not EBCDIC"
4334 #endif
4336 return 0;
4338 _ACEOF
4339 rm -f conftest.$ac_objext
4340 if { (ac_try="$ac_compile"
4341 case "(($ac_try" in
4342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4343 *) ac_try_echo=$ac_try;;
4344 esac
4345 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4346 $as_echo "$ac_try_echo") >&5
4347 (eval "$ac_compile") 2>conftest.er1
4348 ac_status=$?
4349 grep -v '^ *+' conftest.er1 >conftest.err
4350 rm -f conftest.er1
4351 cat conftest.err >&5
4352 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4353 (exit $ac_status); } && {
4354 test -z "$ac_c_werror_flag" ||
4355 test ! -s conftest.err
4356 } && test -s conftest.$ac_objext; then
4357 # TryCompile action if true
4358 cf_cv_ebcdic=yes
4359 else
4360 $as_echo "$as_me: failed program was:" >&5
4361 sed 's/^/| /' conftest.$ac_ext >&5
4363 # TryCompile action if false
4364 cf_cv_ebcdic=no
4367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4368 # end of TryCompile ])
4369 # end of CacheVal CvEbcdic
4370 { $as_echo "$as_me:$LINENO: result: $cf_cv_ebcdic" >&5
4371 $as_echo "$cf_cv_ebcdic" >&6; }
4372 case "$cf_cv_ebcdic" in #(vi
4373 yes) cat >>confdefs.h <<\_ACEOF
4374 #define EBCDIC 1
4375 _ACEOF
4377 line_break='"\\n"'
4379 *) line_break='"\\012"';;
4380 esac
4383 if test "$cf_cv_ebcdic" = "yes"; then
4384 { $as_echo "$as_me:$LINENO: checking for OS/390 Unix" >&5
4385 $as_echo_n "checking for OS/390 Unix... " >&6; }
4386 case `uname` in
4387 OS/390) OS390Unix="yes";
4388 if test "$CC" = "cc"; then
4389 ccm="$_CC_CCMODE"
4390 ccn="CC"
4391 else
4392 if test "$CC" = "c89"; then
4393 ccm="$_CC_C89MODE"
4394 ccn="C89"
4395 else
4396 ccm=1
4399 if test "$ccm" != "1"; then
4400 echo ""
4401 echo "------------------------------------------"
4402 echo " On OS/390 Unix, the environment variable"
4403 echo " __CC_${ccn}MODE must be set to \"1\"!"
4404 echo " Do:"
4405 echo " export _CC_${ccn}MODE=1"
4406 echo " and then call configure again."
4407 echo "------------------------------------------"
4408 exit 1
4410 CFLAGS="$CFLAGS -D_ALL_SOURCE"; LDFLAGS="$LDFLAGS -Wl,EDIT=NO"
4411 { $as_echo "$as_me:$LINENO: result: yes" >&5
4412 $as_echo "yes" >&6; }
4414 *) OS390Unix="no";
4415 { $as_echo "$as_me:$LINENO: result: no" >&5
4416 $as_echo "no" >&6; }
4418 esac
4421 { $as_echo "$as_me:$LINENO: checking --disable-selinux argument" >&5
4422 $as_echo_n "checking --disable-selinux argument... " >&6; }
4423 # Check whether --enable-selinux was given.
4424 if test "${enable_selinux+set}" = set; then
4425 enableval=$enable_selinux;
4426 else
4427 enable_selinux="yes"
4430 if test "$enable_selinux" = "yes"; then
4431 { $as_echo "$as_me:$LINENO: result: no" >&5
4432 $as_echo "no" >&6; }
4433 { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
4434 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
4435 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
4436 $as_echo_n "(cached) " >&6
4437 else
4438 ac_check_lib_save_LIBS=$LIBS
4439 LIBS="-lselinux $LIBS"
4440 cat >conftest.$ac_ext <<_ACEOF
4441 /* confdefs.h. */
4442 _ACEOF
4443 cat confdefs.h >>conftest.$ac_ext
4444 cat >>conftest.$ac_ext <<_ACEOF
4445 /* end confdefs.h. */
4447 /* Override any GCC internal prototype to avoid an error.
4448 Use char because int might match the return type of a GCC
4449 builtin and then its argument prototype would still apply. */
4450 #ifdef __cplusplus
4451 extern "C"
4452 #endif
4453 char is_selinux_enabled ();
4455 main ()
4457 return is_selinux_enabled ();
4459 return 0;
4461 _ACEOF
4462 rm -f conftest.$ac_objext conftest$ac_exeext
4463 if { (ac_try="$ac_link"
4464 case "(($ac_try" in
4465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4466 *) ac_try_echo=$ac_try;;
4467 esac
4468 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4469 $as_echo "$ac_try_echo") >&5
4470 (eval "$ac_link") 2>conftest.er1
4471 ac_status=$?
4472 grep -v '^ *+' conftest.er1 >conftest.err
4473 rm -f conftest.er1
4474 cat conftest.err >&5
4475 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4476 (exit $ac_status); } && {
4477 test -z "$ac_c_werror_flag" ||
4478 test ! -s conftest.err
4479 } && test -s conftest$ac_exeext && {
4480 test "$cross_compiling" = yes ||
4481 $as_test_x conftest$ac_exeext
4482 }; then
4483 ac_cv_lib_selinux_is_selinux_enabled=yes
4484 else
4485 $as_echo "$as_me: failed program was:" >&5
4486 sed 's/^/| /' conftest.$ac_ext >&5
4488 ac_cv_lib_selinux_is_selinux_enabled=no
4491 rm -rf conftest.dSYM
4492 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4493 conftest$ac_exeext conftest.$ac_ext
4494 LIBS=$ac_check_lib_save_LIBS
4496 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
4497 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
4498 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then
4499 LIBS="$LIBS -lselinux"
4500 cat >>confdefs.h <<\_ACEOF
4501 #define HAVE_SELINUX 1
4502 _ACEOF
4506 else
4507 { $as_echo "$as_me:$LINENO: result: yes" >&5
4508 $as_echo "yes" >&6; }
4512 { $as_echo "$as_me:$LINENO: checking --with-features argument" >&5
4513 $as_echo_n "checking --with-features argument... " >&6; }
4515 # Check whether --with-features was given.
4516 if test "${with_features+set}" = set; then
4517 withval=$with_features; features="$withval"; { $as_echo "$as_me:$LINENO: result: $features" >&5
4518 $as_echo "$features" >&6; }
4519 else
4520 features="normal"; { $as_echo "$as_me:$LINENO: result: Defaulting to normal" >&5
4521 $as_echo "Defaulting to normal" >&6; }
4525 dovimdiff=""
4526 dogvimdiff=""
4527 case "$features" in
4528 tiny) cat >>confdefs.h <<\_ACEOF
4529 #define FEAT_TINY 1
4530 _ACEOF
4532 small) cat >>confdefs.h <<\_ACEOF
4533 #define FEAT_SMALL 1
4534 _ACEOF
4536 normal) cat >>confdefs.h <<\_ACEOF
4537 #define FEAT_NORMAL 1
4538 _ACEOF
4539 dovimdiff="installvimdiff";
4540 dogvimdiff="installgvimdiff" ;;
4541 big) cat >>confdefs.h <<\_ACEOF
4542 #define FEAT_BIG 1
4543 _ACEOF
4544 dovimdiff="installvimdiff";
4545 dogvimdiff="installgvimdiff" ;;
4546 huge) cat >>confdefs.h <<\_ACEOF
4547 #define FEAT_HUGE 1
4548 _ACEOF
4549 dovimdiff="installvimdiff";
4550 dogvimdiff="installgvimdiff" ;;
4551 *) { $as_echo "$as_me:$LINENO: result: Sorry, $features is not supported" >&5
4552 $as_echo "Sorry, $features is not supported" >&6; } ;;
4553 esac
4558 { $as_echo "$as_me:$LINENO: checking --with-compiledby argument" >&5
4559 $as_echo_n "checking --with-compiledby argument... " >&6; }
4561 # Check whether --with-compiledby was given.
4562 if test "${with_compiledby+set}" = set; then
4563 withval=$with_compiledby; compiledby="$withval"; { $as_echo "$as_me:$LINENO: result: $withval" >&5
4564 $as_echo "$withval" >&6; }
4565 else
4566 compiledby=""; { $as_echo "$as_me:$LINENO: result: no" >&5
4567 $as_echo "no" >&6; }
4572 { $as_echo "$as_me:$LINENO: checking --disable-xsmp argument" >&5
4573 $as_echo_n "checking --disable-xsmp argument... " >&6; }
4574 # Check whether --enable-xsmp was given.
4575 if test "${enable_xsmp+set}" = set; then
4576 enableval=$enable_xsmp;
4577 else
4578 enable_xsmp="yes"
4582 if test "$enable_xsmp" = "yes"; then
4583 { $as_echo "$as_me:$LINENO: result: no" >&5
4584 $as_echo "no" >&6; }
4585 { $as_echo "$as_me:$LINENO: checking --disable-xsmp-interact argument" >&5
4586 $as_echo_n "checking --disable-xsmp-interact argument... " >&6; }
4587 # Check whether --enable-xsmp-interact was given.
4588 if test "${enable_xsmp_interact+set}" = set; then
4589 enableval=$enable_xsmp_interact;
4590 else
4591 enable_xsmp_interact="yes"
4594 if test "$enable_xsmp_interact" = "yes"; then
4595 { $as_echo "$as_me:$LINENO: result: no" >&5
4596 $as_echo "no" >&6; }
4597 cat >>confdefs.h <<\_ACEOF
4598 #define USE_XSMP_INTERACT 1
4599 _ACEOF
4601 else
4602 { $as_echo "$as_me:$LINENO: result: yes" >&5
4603 $as_echo "yes" >&6; }
4605 else
4606 { $as_echo "$as_me:$LINENO: result: yes" >&5
4607 $as_echo "yes" >&6; }
4610 { $as_echo "$as_me:$LINENO: checking --enable-mzschemeinterp argument" >&5
4611 $as_echo_n "checking --enable-mzschemeinterp argument... " >&6; }
4612 # Check whether --enable-mzschemeinterp was given.
4613 if test "${enable_mzschemeinterp+set}" = set; then
4614 enableval=$enable_mzschemeinterp;
4615 else
4616 enable_mzschemeinterp="no"
4619 { $as_echo "$as_me:$LINENO: result: $enable_mzschemeinterp" >&5
4620 $as_echo "$enable_mzschemeinterp" >&6; }
4622 if test "$enable_mzschemeinterp" = "yes"; then
4625 { $as_echo "$as_me:$LINENO: checking --with-plthome argument" >&5
4626 $as_echo_n "checking --with-plthome argument... " >&6; }
4628 # Check whether --with-plthome was given.
4629 if test "${with_plthome+set}" = set; then
4630 withval=$with_plthome; with_plthome="$withval"; { $as_echo "$as_me:$LINENO: result: $with_plthome" >&5
4631 $as_echo "$with_plthome" >&6; }
4632 else
4633 with_plthome="";{ $as_echo "$as_me:$LINENO: result: \"no\"" >&5
4634 $as_echo "\"no\"" >&6; }
4638 if test "X$with_plthome" != "X"; then
4639 vi_cv_path_mzscheme_pfx="$with_plthome"
4640 else
4641 { $as_echo "$as_me:$LINENO: checking PLTHOME environment var" >&5
4642 $as_echo_n "checking PLTHOME environment var... " >&6; }
4643 if test "X$PLTHOME" != "X"; then
4644 { $as_echo "$as_me:$LINENO: result: \"$PLTHOME\"" >&5
4645 $as_echo "\"$PLTHOME\"" >&6; }
4646 vi_cv_path_mzscheme_pfx="$PLTHOME"
4647 else
4648 { $as_echo "$as_me:$LINENO: result: not set" >&5
4649 $as_echo "not set" >&6; }
4650 # Extract the first word of "mzscheme", so it can be a program name with args.
4651 set dummy mzscheme; ac_word=$2
4652 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4653 $as_echo_n "checking for $ac_word... " >&6; }
4654 if test "${ac_cv_path_vi_cv_path_mzscheme+set}" = set; then
4655 $as_echo_n "(cached) " >&6
4656 else
4657 case $vi_cv_path_mzscheme in
4658 [\\/]* | ?:[\\/]*)
4659 ac_cv_path_vi_cv_path_mzscheme="$vi_cv_path_mzscheme" # Let the user override the test with a path.
4662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4663 for as_dir in $PATH
4665 IFS=$as_save_IFS
4666 test -z "$as_dir" && as_dir=.
4667 for ac_exec_ext in '' $ac_executable_extensions; do
4668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4669 ac_cv_path_vi_cv_path_mzscheme="$as_dir/$ac_word$ac_exec_ext"
4670 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4671 break 2
4673 done
4674 done
4675 IFS=$as_save_IFS
4678 esac
4680 vi_cv_path_mzscheme=$ac_cv_path_vi_cv_path_mzscheme
4681 if test -n "$vi_cv_path_mzscheme"; then
4682 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme" >&5
4683 $as_echo "$vi_cv_path_mzscheme" >&6; }
4684 else
4685 { $as_echo "$as_me:$LINENO: result: no" >&5
4686 $as_echo "no" >&6; }
4691 if test "X$vi_cv_path_mzscheme" != "X"; then
4692 lsout=`ls -l $vi_cv_path_mzscheme`
4693 if echo "$lsout" | grep -e '->' >/dev/null 2>/dev/null; then
4694 vi_cv_path_mzscheme=`echo "$lsout" | sed 's/.*-> \(.*\)/\1/'`
4698 if test "X$vi_cv_path_mzscheme" != "X"; then
4699 { $as_echo "$as_me:$LINENO: checking MzScheme install prefix" >&5
4700 $as_echo_n "checking MzScheme install prefix... " >&6; }
4701 if test "${vi_cv_path_mzscheme_pfx+set}" = set; then
4702 $as_echo_n "(cached) " >&6
4703 else
4704 echo "(display (simplify-path \
4705 (build-path (call-with-values \
4706 (lambda () (split-path (find-system-path (quote exec-file)))) \
4707 (lambda (base name must-be-dir?) base)) (quote up))))" > mzdirs.scm
4708 vi_cv_path_mzscheme_pfx=`${vi_cv_path_mzscheme} -r mzdirs.scm | \
4709 sed -e 's+/$++'`
4711 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme_pfx" >&5
4712 $as_echo "$vi_cv_path_mzscheme_pfx" >&6; }
4713 rm -f mzdirs.scm
4718 SCHEME_INC=
4719 if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
4720 { $as_echo "$as_me:$LINENO: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include" >&5
4721 $as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include... " >&6; }
4722 if test -f $vi_cv_path_mzscheme_pfx/include/scheme.h; then
4723 SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include
4724 { $as_echo "$as_me:$LINENO: result: yes" >&5
4725 $as_echo "yes" >&6; }
4726 else
4727 { $as_echo "$as_me:$LINENO: result: no" >&5
4728 $as_echo "no" >&6; }
4729 { $as_echo "$as_me:$LINENO: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/plt" >&5
4730 $as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/plt... " >&6; }
4731 if test -f $vi_cv_path_mzscheme_pfx/include/plt/scheme.h; then
4732 { $as_echo "$as_me:$LINENO: result: yes" >&5
4733 $as_echo "yes" >&6; }
4734 SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include/plt
4735 else
4736 { $as_echo "$as_me:$LINENO: result: no" >&5
4737 $as_echo "no" >&6; }
4738 { $as_echo "$as_me:$LINENO: checking if scheme.h can be found in /usr/include/plt/" >&5
4739 $as_echo_n "checking if scheme.h can be found in /usr/include/plt/... " >&6; }
4740 if test -f /usr/include/plt/scheme.h; then
4741 { $as_echo "$as_me:$LINENO: result: yes" >&5
4742 $as_echo "yes" >&6; }
4743 SCHEME_INC=/usr/include/plt
4744 else
4745 { $as_echo "$as_me:$LINENO: result: no" >&5
4746 $as_echo "no" >&6; }
4747 vi_cv_path_mzscheme_pfx=
4753 if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
4754 if test "x$MACOSX" = "xyes"; then
4755 MZSCHEME_LIBS="-framework PLT_MzScheme"
4756 elif test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzscheme3m.a"; then
4757 MZSCHEME_LIBS="${vi_cv_path_mzscheme_pfx}/lib/libmzscheme3m.a"
4758 MZSCHEME_CFLAGS="-DMZ_PRECISE_GC"
4759 elif test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a"; then
4760 MZSCHEME_LIBS="${vi_cv_path_mzscheme_pfx}/lib/libmzscheme.a ${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a"
4761 else
4762 if test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzscheme3m.so"; then
4763 MZSCHEME_LIBS="-L${vi_cv_path_mzscheme_pfx}/lib -lmzscheme3m"
4764 MZSCHEME_CFLAGS="-DMZ_PRECISE_GC"
4765 else
4766 MZSCHEME_LIBS="-L${vi_cv_path_mzscheme_pfx}/lib -lmzscheme -lmzgc"
4768 if test "$GCC" = yes; then
4769 MZSCHEME_LIBS="${MZSCHEME_LIBS} -Wl,-rpath -Wl,${vi_cv_path_mzscheme_pfx}/lib"
4770 elif test "`(uname) 2>/dev/null`" = SunOS &&
4771 uname -r | grep '^5' >/dev/null; then
4772 MZSCHEME_LIBS="${MZSCHEME_LIBS} -R ${vi_cv_path_mzscheme_pfx}/lib"
4775 if test -d $vi_cv_path_mzscheme_pfx/lib/plt/collects; then
4776 SCHEME_COLLECTS=lib/plt/
4778 if test -f "${vi_cv_path_mzscheme_pfx}/${SCHEME_COLLECTS}collects/scheme/base.ss" ; then
4779 MZSCHEME_EXTRA="mzscheme_base.c"
4780 MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -DINCLUDE_MZSCHEME_BASE"
4781 MZSCHEME_MZC="${vi_cv_path_mzscheme_pfx}/bin/mzc"
4783 MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -I${SCHEME_INC} \
4784 -DMZSCHEME_COLLECTS='\"${vi_cv_path_mzscheme_pfx}/${SCHEME_COLLECTS}collects\"'"
4785 MZSCHEME_SRC="if_mzsch.c"
4786 MZSCHEME_OBJ="objects/if_mzsch.o"
4787 MZSCHEME_PRO="if_mzsch.pro"
4788 cat >>confdefs.h <<\_ACEOF
4789 #define FEAT_MZSCHEME 1
4790 _ACEOF
4803 { $as_echo "$as_me:$LINENO: checking --enable-perlinterp argument" >&5
4804 $as_echo_n "checking --enable-perlinterp argument... " >&6; }
4805 # Check whether --enable-perlinterp was given.
4806 if test "${enable_perlinterp+set}" = set; then
4807 enableval=$enable_perlinterp;
4808 else
4809 enable_perlinterp="no"
4812 { $as_echo "$as_me:$LINENO: result: $enable_perlinterp" >&5
4813 $as_echo "$enable_perlinterp" >&6; }
4814 if test "$enable_perlinterp" = "yes"; then
4816 # Extract the first word of "perl", so it can be a program name with args.
4817 set dummy perl; ac_word=$2
4818 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4819 $as_echo_n "checking for $ac_word... " >&6; }
4820 if test "${ac_cv_path_vi_cv_path_perl+set}" = set; then
4821 $as_echo_n "(cached) " >&6
4822 else
4823 case $vi_cv_path_perl in
4824 [\\/]* | ?:[\\/]*)
4825 ac_cv_path_vi_cv_path_perl="$vi_cv_path_perl" # Let the user override the test with a path.
4828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4829 for as_dir in $PATH
4831 IFS=$as_save_IFS
4832 test -z "$as_dir" && as_dir=.
4833 for ac_exec_ext in '' $ac_executable_extensions; do
4834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4835 ac_cv_path_vi_cv_path_perl="$as_dir/$ac_word$ac_exec_ext"
4836 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4837 break 2
4839 done
4840 done
4841 IFS=$as_save_IFS
4844 esac
4846 vi_cv_path_perl=$ac_cv_path_vi_cv_path_perl
4847 if test -n "$vi_cv_path_perl"; then
4848 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_perl" >&5
4849 $as_echo "$vi_cv_path_perl" >&6; }
4850 else
4851 { $as_echo "$as_me:$LINENO: result: no" >&5
4852 $as_echo "no" >&6; }
4856 if test "X$vi_cv_path_perl" != "X"; then
4857 { $as_echo "$as_me:$LINENO: checking Perl version" >&5
4858 $as_echo_n "checking Perl version... " >&6; }
4859 if $vi_cv_path_perl -e 'require 5.003_01' >/dev/null 2>/dev/null; then
4860 eval `$vi_cv_path_perl -V:usethreads`
4861 if test "X$usethreads" = "XUNKNOWN" -o "X$usethreads" = "Xundef"; then
4862 badthreads=no
4863 else
4864 if $vi_cv_path_perl -e 'require 5.6.0' >/dev/null 2>/dev/null; then
4865 eval `$vi_cv_path_perl -V:use5005threads`
4866 if test "X$use5005threads" = "XUNKNOWN" -o "X$use5005threads" = "Xundef"; then
4867 badthreads=no
4868 else
4869 badthreads=yes
4870 { $as_echo "$as_me:$LINENO: result: >>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&5
4871 $as_echo ">>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&6; }
4873 else
4874 badthreads=yes
4875 { $as_echo "$as_me:$LINENO: result: >>> Perl 5.5 with threads cannot be used <<<" >&5
4876 $as_echo ">>> Perl 5.5 with threads cannot be used <<<" >&6; }
4879 if test $badthreads = no; then
4880 { $as_echo "$as_me:$LINENO: result: OK" >&5
4881 $as_echo "OK" >&6; }
4882 eval `$vi_cv_path_perl -V:shrpenv`
4883 if test "X$shrpenv" = "XUNKNOWN"; then # pre 5.003_04
4884 shrpenv=""
4886 vi_cv_perllib=`$vi_cv_path_perl -MConfig -e 'print $Config{privlibexp}'`
4888 perlcppflags=`$vi_cv_path_perl -Mlib=$srcdir -MExtUtils::Embed \
4889 -e 'ccflags;perl_inc;print"\n"' | sed -e 's/-fno[^ ]*//'`
4890 perllibs=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed -e 'ldopts' | \
4891 sed -e '/Warning/d' -e '/Note (probably harmless)/d' \
4892 -e 's/-bE:perl.exp//' -e 's/-lc //'`
4893 perlldflags=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed \
4894 -e 'ccdlflags' | sed -e 's/-bE:perl.exp//'`
4896 { $as_echo "$as_me:$LINENO: checking if compile and link flags for Perl are sane" >&5
4897 $as_echo_n "checking if compile and link flags for Perl are sane... " >&6; }
4898 cflags_save=$CFLAGS
4899 libs_save=$LIBS
4900 ldflags_save=$LDFLAGS
4901 CFLAGS="$CFLAGS $perlcppflags"
4902 LIBS="$LIBS $perllibs"
4903 LDFLAGS="$perlldflags $LDFLAGS"
4904 cat >conftest.$ac_ext <<_ACEOF
4905 /* confdefs.h. */
4906 _ACEOF
4907 cat confdefs.h >>conftest.$ac_ext
4908 cat >>conftest.$ac_ext <<_ACEOF
4909 /* end confdefs.h. */
4912 main ()
4916 return 0;
4918 _ACEOF
4919 rm -f conftest.$ac_objext conftest$ac_exeext
4920 if { (ac_try="$ac_link"
4921 case "(($ac_try" in
4922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4923 *) ac_try_echo=$ac_try;;
4924 esac
4925 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4926 $as_echo "$ac_try_echo") >&5
4927 (eval "$ac_link") 2>conftest.er1
4928 ac_status=$?
4929 grep -v '^ *+' conftest.er1 >conftest.err
4930 rm -f conftest.er1
4931 cat conftest.err >&5
4932 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4933 (exit $ac_status); } && {
4934 test -z "$ac_c_werror_flag" ||
4935 test ! -s conftest.err
4936 } && test -s conftest$ac_exeext && {
4937 test "$cross_compiling" = yes ||
4938 $as_test_x conftest$ac_exeext
4939 }; then
4940 { $as_echo "$as_me:$LINENO: result: yes" >&5
4941 $as_echo "yes" >&6; }; perl_ok=yes
4942 else
4943 $as_echo "$as_me: failed program was:" >&5
4944 sed 's/^/| /' conftest.$ac_ext >&5
4946 { $as_echo "$as_me:$LINENO: result: no: PERL DISABLED" >&5
4947 $as_echo "no: PERL DISABLED" >&6; }; perl_ok=no
4950 rm -rf conftest.dSYM
4951 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4952 conftest$ac_exeext conftest.$ac_ext
4953 CFLAGS=$cflags_save
4954 LIBS=$libs_save
4955 LDFLAGS=$ldflags_save
4956 if test $perl_ok = yes; then
4957 if test "X$perlcppflags" != "X"; then
4958 PERL_CFLAGS=`echo "$perlcppflags" | sed -e 's/-pipe //' -e 's/-W[^ ]*//'`
4960 if test "X$perlldflags" != "X"; then
4961 LDFLAGS="$perlldflags $LDFLAGS"
4963 PERL_LIBS=$perllibs
4964 PERL_SRC="auto/if_perl.c if_perlsfio.c"
4965 PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o"
4966 PERL_PRO="if_perl.pro if_perlsfio.pro"
4967 cat >>confdefs.h <<\_ACEOF
4968 #define FEAT_PERL 1
4969 _ACEOF
4973 else
4974 { $as_echo "$as_me:$LINENO: result: >>> too old; need Perl version 5.003_01 or later <<<" >&5
4975 $as_echo ">>> too old; need Perl version 5.003_01 or later <<<" >&6; }
4979 if test "x$MACOSX" = "xyes"; then
4980 dir=/System/Library/Perl
4981 darwindir=$dir/darwin
4982 if test -d $darwindir; then
4983 PERL=/usr/bin/perl
4984 else
4985 dir=/System/Library/Perl/5.8.1
4986 darwindir=$dir/darwin-thread-multi-2level
4987 if test -d $darwindir; then
4988 PERL=/usr/bin/perl
4991 if test -n "$PERL"; then
4992 PERL_DIR="$dir"
4993 PERL_CFLAGS="-DFEAT_PERL -I$darwindir/CORE"
4994 PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o $darwindir/auto/DynaLoader/DynaLoader.a"
4995 PERL_LIBS="-L$darwindir/CORE -lperl"
5006 { $as_echo "$as_me:$LINENO: checking --enable-pythoninterp argument" >&5
5007 $as_echo_n "checking --enable-pythoninterp argument... " >&6; }
5008 # Check whether --enable-pythoninterp was given.
5009 if test "${enable_pythoninterp+set}" = set; then
5010 enableval=$enable_pythoninterp;
5011 else
5012 enable_pythoninterp="no"
5015 { $as_echo "$as_me:$LINENO: result: $enable_pythoninterp" >&5
5016 $as_echo "$enable_pythoninterp" >&6; }
5017 if test "$enable_pythoninterp" = "yes"; then
5018 # Extract the first word of "python", so it can be a program name with args.
5019 set dummy python; ac_word=$2
5020 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5021 $as_echo_n "checking for $ac_word... " >&6; }
5022 if test "${ac_cv_path_vi_cv_path_python+set}" = set; then
5023 $as_echo_n "(cached) " >&6
5024 else
5025 case $vi_cv_path_python in
5026 [\\/]* | ?:[\\/]*)
5027 ac_cv_path_vi_cv_path_python="$vi_cv_path_python" # Let the user override the test with a path.
5030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5031 for as_dir in $PATH
5033 IFS=$as_save_IFS
5034 test -z "$as_dir" && as_dir=.
5035 for ac_exec_ext in '' $ac_executable_extensions; do
5036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5037 ac_cv_path_vi_cv_path_python="$as_dir/$ac_word$ac_exec_ext"
5038 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5039 break 2
5041 done
5042 done
5043 IFS=$as_save_IFS
5046 esac
5048 vi_cv_path_python=$ac_cv_path_vi_cv_path_python
5049 if test -n "$vi_cv_path_python"; then
5050 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_python" >&5
5051 $as_echo "$vi_cv_path_python" >&6; }
5052 else
5053 { $as_echo "$as_me:$LINENO: result: no" >&5
5054 $as_echo "no" >&6; }
5058 if test "X$vi_cv_path_python" != "X"; then
5060 { $as_echo "$as_me:$LINENO: checking Python version" >&5
5061 $as_echo_n "checking Python version... " >&6; }
5062 if test "${vi_cv_var_python_version+set}" = set; then
5063 $as_echo_n "(cached) " >&6
5064 else
5065 vi_cv_var_python_version=`
5066 ${vi_cv_path_python} -c 'import sys; print sys.version[:3]'`
5069 { $as_echo "$as_me:$LINENO: result: $vi_cv_var_python_version" >&5
5070 $as_echo "$vi_cv_var_python_version" >&6; }
5072 { $as_echo "$as_me:$LINENO: checking Python is 1.4 or better" >&5
5073 $as_echo_n "checking Python is 1.4 or better... " >&6; }
5074 if ${vi_cv_path_python} -c \
5075 "import sys; sys.exit(${vi_cv_var_python_version} < 1.4)"
5076 then
5077 { $as_echo "$as_me:$LINENO: result: yep" >&5
5078 $as_echo "yep" >&6; }
5080 { $as_echo "$as_me:$LINENO: checking Python's install prefix" >&5
5081 $as_echo_n "checking Python's install prefix... " >&6; }
5082 if test "${vi_cv_path_python_pfx+set}" = set; then
5083 $as_echo_n "(cached) " >&6
5084 else
5085 vi_cv_path_python_pfx=`
5086 ${vi_cv_path_python} -c \
5087 "import sys; print sys.prefix"`
5089 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_python_pfx" >&5
5090 $as_echo "$vi_cv_path_python_pfx" >&6; }
5092 { $as_echo "$as_me:$LINENO: checking Python's execution prefix" >&5
5093 $as_echo_n "checking Python's execution prefix... " >&6; }
5094 if test "${vi_cv_path_python_epfx+set}" = set; then
5095 $as_echo_n "(cached) " >&6
5096 else
5097 vi_cv_path_python_epfx=`
5098 ${vi_cv_path_python} -c \
5099 "import sys; print sys.exec_prefix"`
5101 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_python_epfx" >&5
5102 $as_echo "$vi_cv_path_python_epfx" >&6; }
5105 if test "${vi_cv_path_pythonpath+set}" = set; then
5106 $as_echo_n "(cached) " >&6
5107 else
5108 vi_cv_path_pythonpath=`
5109 unset PYTHONPATH;
5110 ${vi_cv_path_python} -c \
5111 "import sys, string; print string.join(sys.path,':')"`
5117 # Check whether --with-python-config-dir was given.
5118 if test "${with_python_config_dir+set}" = set; then
5119 withval=$with_python_config_dir; vi_cv_path_python_conf="${withval}"
5123 { $as_echo "$as_me:$LINENO: checking Python's configuration directory" >&5
5124 $as_echo_n "checking Python's configuration directory... " >&6; }
5125 if test "${vi_cv_path_python_conf+set}" = set; then
5126 $as_echo_n "(cached) " >&6
5127 else
5129 vi_cv_path_python_conf=
5130 for path in "${vi_cv_path_python_pfx}" "${vi_cv_path_python_epfx}"; do
5131 for subdir in lib64 lib share; do
5132 d="${path}/${subdir}/python${vi_cv_var_python_version}/config"
5133 if test -d "$d" && test -f "$d/config.c"; then
5134 vi_cv_path_python_conf="$d"
5136 done
5137 done
5140 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_python_conf" >&5
5141 $as_echo "$vi_cv_path_python_conf" >&6; }
5143 PYTHON_CONFDIR="${vi_cv_path_python_conf}"
5145 if test "X$PYTHON_CONFDIR" = "X"; then
5146 { $as_echo "$as_me:$LINENO: result: can't find it!" >&5
5147 $as_echo "can't find it!" >&6; }
5148 else
5150 if test "${vi_cv_path_python_plibs+set}" = set; then
5151 $as_echo_n "(cached) " >&6
5152 else
5154 pwd=`pwd`
5155 tmp_mkf="$pwd/config-PyMake$$"
5156 cat -- "${PYTHON_CONFDIR}/Makefile" - <<'eof' >"${tmp_mkf}"
5158 @echo "python_MODLIBS='$(MODLIBS)'"
5159 @echo "python_LIBS='$(LIBS)'"
5160 @echo "python_SYSLIBS='$(SYSLIBS)'"
5161 @echo "python_LINKFORSHARED='$(LINKFORSHARED)'"
5163 eval "`cd ${PYTHON_CONFDIR} && make -f "${tmp_mkf}" __ | sed '/ directory /d'`"
5164 rm -f -- "${tmp_mkf}"
5165 if test "x$MACOSX" = "xyes" && ${vi_cv_path_python} -c \
5166 "import sys; sys.exit(${vi_cv_var_python_version} < 2.3)"; then
5167 vi_cv_path_python_plibs="-framework Python"
5168 else
5169 if test "${vi_cv_var_python_version}" = "1.4"; then
5170 vi_cv_path_python_plibs="${PYTHON_CONFDIR}/libModules.a ${PYTHON_CONFDIR}/libPython.a ${PYTHON_CONFDIR}/libObjects.a ${PYTHON_CONFDIR}/libParser.a"
5171 else
5172 vi_cv_path_python_plibs="-L${PYTHON_CONFDIR} -lpython${vi_cv_var_python_version}"
5174 vi_cv_path_python_plibs="${vi_cv_path_python_plibs} ${python_MODLIBS} ${python_LIBS} ${python_SYSLIBS} ${python_LINKFORSHARED}"
5175 vi_cv_path_python_plibs=`echo $vi_cv_path_python_plibs | sed s/-ltermcap//`
5181 PYTHON_LIBS="${vi_cv_path_python_plibs}"
5182 if test "${vi_cv_path_python_pfx}" = "${vi_cv_path_python_epfx}"; then
5183 PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version}"
5184 else
5185 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}"
5187 PYTHON_SRC="if_python.c"
5188 if test "x$MACOSX" = "xyes"; then
5189 PYTHON_OBJ="objects/if_python.o"
5190 else
5191 PYTHON_OBJ="objects/if_python.o objects/py_config.o"
5193 if test "${vi_cv_var_python_version}" = "1.4"; then
5194 PYTHON_OBJ="$PYTHON_OBJ objects/py_getpath.o"
5196 PYTHON_GETPATH_CFLAGS="-DPYTHONPATH='\"${vi_cv_path_pythonpath}\"' -DPREFIX='\"${vi_cv_path_python_pfx}\"' -DEXEC_PREFIX='\"${vi_cv_path_python_epfx}\"'"
5198 { $as_echo "$as_me:$LINENO: checking if -pthread should be used" >&5
5199 $as_echo_n "checking if -pthread should be used... " >&6; }
5200 threadsafe_flag=
5201 thread_lib=
5202 if test "`(uname) 2>/dev/null`" != Darwin; then
5203 test "$GCC" = yes && threadsafe_flag="-pthread"
5204 if test "`(uname) 2>/dev/null`" = FreeBSD; then
5205 threadsafe_flag="-D_THREAD_SAFE"
5206 thread_lib="-pthread"
5209 libs_save_old=$LIBS
5210 if test -n "$threadsafe_flag"; then
5211 cflags_save=$CFLAGS
5212 CFLAGS="$CFLAGS $threadsafe_flag"
5213 LIBS="$LIBS $thread_lib"
5214 cat >conftest.$ac_ext <<_ACEOF
5215 /* confdefs.h. */
5216 _ACEOF
5217 cat confdefs.h >>conftest.$ac_ext
5218 cat >>conftest.$ac_ext <<_ACEOF
5219 /* end confdefs.h. */
5222 main ()
5226 return 0;
5228 _ACEOF
5229 rm -f conftest.$ac_objext conftest$ac_exeext
5230 if { (ac_try="$ac_link"
5231 case "(($ac_try" in
5232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5233 *) ac_try_echo=$ac_try;;
5234 esac
5235 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5236 $as_echo "$ac_try_echo") >&5
5237 (eval "$ac_link") 2>conftest.er1
5238 ac_status=$?
5239 grep -v '^ *+' conftest.er1 >conftest.err
5240 rm -f conftest.er1
5241 cat conftest.err >&5
5242 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5243 (exit $ac_status); } && {
5244 test -z "$ac_c_werror_flag" ||
5245 test ! -s conftest.err
5246 } && test -s conftest$ac_exeext && {
5247 test "$cross_compiling" = yes ||
5248 $as_test_x conftest$ac_exeext
5249 }; then
5250 { $as_echo "$as_me:$LINENO: result: yes" >&5
5251 $as_echo "yes" >&6; }; PYTHON_CFLAGS="$PYTHON_CFLAGS $threadsafe_flag"
5252 else
5253 $as_echo "$as_me: failed program was:" >&5
5254 sed 's/^/| /' conftest.$ac_ext >&5
5256 { $as_echo "$as_me:$LINENO: result: no" >&5
5257 $as_echo "no" >&6; }; LIBS=$libs_save_old
5261 rm -rf conftest.dSYM
5262 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5263 conftest$ac_exeext conftest.$ac_ext
5264 CFLAGS=$cflags_save
5265 else
5266 { $as_echo "$as_me:$LINENO: result: no" >&5
5267 $as_echo "no" >&6; }
5270 { $as_echo "$as_me:$LINENO: checking if compile and link flags for Python are sane" >&5
5271 $as_echo_n "checking if compile and link flags for Python are sane... " >&6; }
5272 cflags_save=$CFLAGS
5273 libs_save=$LIBS
5274 CFLAGS="$CFLAGS $PYTHON_CFLAGS"
5275 LIBS="$LIBS $PYTHON_LIBS"
5276 cat >conftest.$ac_ext <<_ACEOF
5277 /* confdefs.h. */
5278 _ACEOF
5279 cat confdefs.h >>conftest.$ac_ext
5280 cat >>conftest.$ac_ext <<_ACEOF
5281 /* end confdefs.h. */
5284 main ()
5288 return 0;
5290 _ACEOF
5291 rm -f conftest.$ac_objext conftest$ac_exeext
5292 if { (ac_try="$ac_link"
5293 case "(($ac_try" in
5294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5295 *) ac_try_echo=$ac_try;;
5296 esac
5297 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5298 $as_echo "$ac_try_echo") >&5
5299 (eval "$ac_link") 2>conftest.er1
5300 ac_status=$?
5301 grep -v '^ *+' conftest.er1 >conftest.err
5302 rm -f conftest.er1
5303 cat conftest.err >&5
5304 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5305 (exit $ac_status); } && {
5306 test -z "$ac_c_werror_flag" ||
5307 test ! -s conftest.err
5308 } && test -s conftest$ac_exeext && {
5309 test "$cross_compiling" = yes ||
5310 $as_test_x conftest$ac_exeext
5311 }; then
5312 { $as_echo "$as_me:$LINENO: result: yes" >&5
5313 $as_echo "yes" >&6; }; python_ok=yes
5314 else
5315 $as_echo "$as_me: failed program was:" >&5
5316 sed 's/^/| /' conftest.$ac_ext >&5
5318 { $as_echo "$as_me:$LINENO: result: no: PYTHON DISABLED" >&5
5319 $as_echo "no: PYTHON DISABLED" >&6; }; python_ok=no
5322 rm -rf conftest.dSYM
5323 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5324 conftest$ac_exeext conftest.$ac_ext
5325 CFLAGS=$cflags_save
5326 LIBS=$libs_save
5327 if test $python_ok = yes; then
5328 cat >>confdefs.h <<\_ACEOF
5329 #define FEAT_PYTHON 1
5330 _ACEOF
5332 else
5333 LIBS=$libs_save_old
5334 PYTHON_SRC=
5335 PYTHON_OBJ=
5336 PYTHON_LIBS=
5337 PYTHON_CFLAGS=
5341 else
5342 { $as_echo "$as_me:$LINENO: result: too old" >&5
5343 $as_echo "too old" >&6; }
5354 { $as_echo "$as_me:$LINENO: checking --enable-tclinterp argument" >&5
5355 $as_echo_n "checking --enable-tclinterp argument... " >&6; }
5356 # Check whether --enable-tclinterp was given.
5357 if test "${enable_tclinterp+set}" = set; then
5358 enableval=$enable_tclinterp;
5359 else
5360 enable_tclinterp="no"
5363 { $as_echo "$as_me:$LINENO: result: $enable_tclinterp" >&5
5364 $as_echo "$enable_tclinterp" >&6; }
5366 if test "$enable_tclinterp" = "yes"; then
5368 { $as_echo "$as_me:$LINENO: checking --with-tclsh argument" >&5
5369 $as_echo_n "checking --with-tclsh argument... " >&6; }
5371 # Check whether --with-tclsh was given.
5372 if test "${with_tclsh+set}" = set; then
5373 withval=$with_tclsh; tclsh_name="$withval"; { $as_echo "$as_me:$LINENO: result: $tclsh_name" >&5
5374 $as_echo "$tclsh_name" >&6; }
5375 else
5376 tclsh_name="tclsh8.5"; { $as_echo "$as_me:$LINENO: result: no" >&5
5377 $as_echo "no" >&6; }
5380 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5381 set dummy $tclsh_name; ac_word=$2
5382 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5383 $as_echo_n "checking for $ac_word... " >&6; }
5384 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5385 $as_echo_n "(cached) " >&6
5386 else
5387 case $vi_cv_path_tcl in
5388 [\\/]* | ?:[\\/]*)
5389 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5393 for as_dir in $PATH
5395 IFS=$as_save_IFS
5396 test -z "$as_dir" && as_dir=.
5397 for ac_exec_ext in '' $ac_executable_extensions; do
5398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5399 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5400 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5401 break 2
5403 done
5404 done
5405 IFS=$as_save_IFS
5408 esac
5410 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5411 if test -n "$vi_cv_path_tcl"; then
5412 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5413 $as_echo "$vi_cv_path_tcl" >&6; }
5414 else
5415 { $as_echo "$as_me:$LINENO: result: no" >&5
5416 $as_echo "no" >&6; }
5422 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.5"; then
5423 tclsh_name="tclsh8.4"
5424 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5425 set dummy $tclsh_name; ac_word=$2
5426 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5427 $as_echo_n "checking for $ac_word... " >&6; }
5428 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5429 $as_echo_n "(cached) " >&6
5430 else
5431 case $vi_cv_path_tcl in
5432 [\\/]* | ?:[\\/]*)
5433 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5437 for as_dir in $PATH
5439 IFS=$as_save_IFS
5440 test -z "$as_dir" && as_dir=.
5441 for ac_exec_ext in '' $ac_executable_extensions; do
5442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5443 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5444 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5445 break 2
5447 done
5448 done
5449 IFS=$as_save_IFS
5452 esac
5454 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5455 if test -n "$vi_cv_path_tcl"; then
5456 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5457 $as_echo "$vi_cv_path_tcl" >&6; }
5458 else
5459 { $as_echo "$as_me:$LINENO: result: no" >&5
5460 $as_echo "no" >&6; }
5465 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.4"; then
5466 tclsh_name="tclsh8.2"
5467 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5468 set dummy $tclsh_name; ac_word=$2
5469 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5470 $as_echo_n "checking for $ac_word... " >&6; }
5471 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5472 $as_echo_n "(cached) " >&6
5473 else
5474 case $vi_cv_path_tcl in
5475 [\\/]* | ?:[\\/]*)
5476 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5480 for as_dir in $PATH
5482 IFS=$as_save_IFS
5483 test -z "$as_dir" && as_dir=.
5484 for ac_exec_ext in '' $ac_executable_extensions; do
5485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5486 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5487 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5488 break 2
5490 done
5491 done
5492 IFS=$as_save_IFS
5495 esac
5497 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5498 if test -n "$vi_cv_path_tcl"; then
5499 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5500 $as_echo "$vi_cv_path_tcl" >&6; }
5501 else
5502 { $as_echo "$as_me:$LINENO: result: no" >&5
5503 $as_echo "no" >&6; }
5508 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.2"; then
5509 tclsh_name="tclsh8.0"
5510 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5511 set dummy $tclsh_name; ac_word=$2
5512 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5513 $as_echo_n "checking for $ac_word... " >&6; }
5514 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5515 $as_echo_n "(cached) " >&6
5516 else
5517 case $vi_cv_path_tcl in
5518 [\\/]* | ?:[\\/]*)
5519 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5523 for as_dir in $PATH
5525 IFS=$as_save_IFS
5526 test -z "$as_dir" && as_dir=.
5527 for ac_exec_ext in '' $ac_executable_extensions; do
5528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5529 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5530 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5531 break 2
5533 done
5534 done
5535 IFS=$as_save_IFS
5538 esac
5540 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5541 if test -n "$vi_cv_path_tcl"; then
5542 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5543 $as_echo "$vi_cv_path_tcl" >&6; }
5544 else
5545 { $as_echo "$as_me:$LINENO: result: no" >&5
5546 $as_echo "no" >&6; }
5551 if test "X$vi_cv_path_tcl" = "X"; then
5552 tclsh_name="tclsh"
5553 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5554 set dummy $tclsh_name; ac_word=$2
5555 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5556 $as_echo_n "checking for $ac_word... " >&6; }
5557 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5558 $as_echo_n "(cached) " >&6
5559 else
5560 case $vi_cv_path_tcl in
5561 [\\/]* | ?:[\\/]*)
5562 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5566 for as_dir in $PATH
5568 IFS=$as_save_IFS
5569 test -z "$as_dir" && as_dir=.
5570 for ac_exec_ext in '' $ac_executable_extensions; do
5571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5572 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5573 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5574 break 2
5576 done
5577 done
5578 IFS=$as_save_IFS
5581 esac
5583 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5584 if test -n "$vi_cv_path_tcl"; then
5585 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5586 $as_echo "$vi_cv_path_tcl" >&6; }
5587 else
5588 { $as_echo "$as_me:$LINENO: result: no" >&5
5589 $as_echo "no" >&6; }
5594 if test "X$vi_cv_path_tcl" != "X"; then
5595 { $as_echo "$as_me:$LINENO: checking Tcl version" >&5
5596 $as_echo_n "checking Tcl version... " >&6; }
5597 if echo 'exit [expr [info tclversion] < 8.0]' | $vi_cv_path_tcl - ; then
5598 tclver=`echo 'puts [info tclversion]' | $vi_cv_path_tcl -`
5599 { $as_echo "$as_me:$LINENO: result: $tclver - OK" >&5
5600 $as_echo "$tclver - OK" >&6; };
5601 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 -`
5603 { $as_echo "$as_me:$LINENO: checking for location of Tcl include" >&5
5604 $as_echo_n "checking for location of Tcl include... " >&6; }
5605 if test "x$MACOSX" != "xyes"; then
5606 tclinc="$tclloc/include $tclloc/include/tcl $tclloc/include/tcl$tclver /usr/local/include /usr/local/include/tcl$tclver /usr/include /usr/include/tcl$tclver"
5607 else
5608 tclinc="/System/Library/Frameworks/Tcl.framework/Headers"
5610 TCL_INC=
5611 for try in $tclinc; do
5612 if test -f "$try/tcl.h"; then
5613 { $as_echo "$as_me:$LINENO: result: $try/tcl.h" >&5
5614 $as_echo "$try/tcl.h" >&6; }
5615 TCL_INC=$try
5616 break
5618 done
5619 if test -z "$TCL_INC"; then
5620 { $as_echo "$as_me:$LINENO: result: <not found>" >&5
5621 $as_echo "<not found>" >&6; }
5622 SKIP_TCL=YES
5624 if test -z "$SKIP_TCL"; then
5625 { $as_echo "$as_me:$LINENO: checking for location of tclConfig.sh script" >&5
5626 $as_echo_n "checking for location of tclConfig.sh script... " >&6; }
5627 if test "x$MACOSX" != "xyes"; then
5628 tclcnf=`echo $tclinc | sed s/include/lib/g`
5629 tclcnf="$tclcnf `echo $tclinc | sed s/include/lib64/g`"
5630 else
5631 tclcnf="/System/Library/Frameworks/Tcl.framework"
5633 for try in $tclcnf; do
5634 if test -f $try/tclConfig.sh; then
5635 { $as_echo "$as_me:$LINENO: result: $try/tclConfig.sh" >&5
5636 $as_echo "$try/tclConfig.sh" >&6; }
5637 . $try/tclConfig.sh
5638 TCL_LIBS=`eval echo "$TCL_LIB_SPEC $TCL_LIBS"`
5639 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'`
5640 break
5642 done
5643 if test -z "$TCL_LIBS"; then
5644 { $as_echo "$as_me:$LINENO: result: <not found>" >&5
5645 $as_echo "<not found>" >&6; }
5646 { $as_echo "$as_me:$LINENO: checking for Tcl library by myself" >&5
5647 $as_echo_n "checking for Tcl library by myself... " >&6; }
5648 tcllib=`echo $tclinc | sed s/include/lib/g`
5649 tcllib="$tcllib `echo $tclinc | sed s/include/lib64/g`"
5650 for ext in .so .a ; do
5651 for ver in "" $tclver ; do
5652 for try in $tcllib ; do
5653 trylib=tcl$ver$ext
5654 if test -f $try/lib$trylib ; then
5655 { $as_echo "$as_me:$LINENO: result: $try/lib$trylib" >&5
5656 $as_echo "$try/lib$trylib" >&6; }
5657 TCL_LIBS="-L$try -ltcl$ver -ldl -lm"
5658 if test "`(uname) 2>/dev/null`" = SunOS &&
5659 uname -r | grep '^5' >/dev/null; then
5660 TCL_LIBS="$TCL_LIBS -R $try"
5662 break 3
5664 done
5665 done
5666 done
5667 if test -z "$TCL_LIBS"; then
5668 { $as_echo "$as_me:$LINENO: result: <not found>" >&5
5669 $as_echo "<not found>" >&6; }
5670 SKIP_TCL=YES
5673 if test -z "$SKIP_TCL"; then
5674 cat >>confdefs.h <<\_ACEOF
5675 #define FEAT_TCL 1
5676 _ACEOF
5678 TCL_SRC=if_tcl.c
5679 TCL_OBJ=objects/if_tcl.o
5680 TCL_PRO=if_tcl.pro
5681 TCL_CFLAGS="-I$TCL_INC $TCL_DEFS"
5684 else
5685 { $as_echo "$as_me:$LINENO: result: too old; need Tcl version 8.0 or later" >&5
5686 $as_echo "too old; need Tcl version 8.0 or later" >&6; }
5696 { $as_echo "$as_me:$LINENO: checking --enable-rubyinterp argument" >&5
5697 $as_echo_n "checking --enable-rubyinterp argument... " >&6; }
5698 # Check whether --enable-rubyinterp was given.
5699 if test "${enable_rubyinterp+set}" = set; then
5700 enableval=$enable_rubyinterp;
5701 else
5702 enable_rubyinterp="no"
5705 { $as_echo "$as_me:$LINENO: result: $enable_rubyinterp" >&5
5706 $as_echo "$enable_rubyinterp" >&6; }
5707 if test "$enable_rubyinterp" = "yes"; then
5708 { $as_echo "$as_me:$LINENO: checking --with-ruby-command argument" >&5
5709 $as_echo_n "checking --with-ruby-command argument... " >&6; }
5711 # Check whether --with-ruby-command was given.
5712 if test "${with_ruby_command+set}" = set; then
5713 withval=$with_ruby_command; RUBY_CMD="$withval"; { $as_echo "$as_me:$LINENO: result: $RUBY_CMD" >&5
5714 $as_echo "$RUBY_CMD" >&6; }
5715 else
5716 RUBY_CMD="ruby"; { $as_echo "$as_me:$LINENO: result: defaulting to $RUBY_CMD" >&5
5717 $as_echo "defaulting to $RUBY_CMD" >&6; }
5721 # Extract the first word of "$RUBY_CMD", so it can be a program name with args.
5722 set dummy $RUBY_CMD; ac_word=$2
5723 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5724 $as_echo_n "checking for $ac_word... " >&6; }
5725 if test "${ac_cv_path_vi_cv_path_ruby+set}" = set; then
5726 $as_echo_n "(cached) " >&6
5727 else
5728 case $vi_cv_path_ruby in
5729 [\\/]* | ?:[\\/]*)
5730 ac_cv_path_vi_cv_path_ruby="$vi_cv_path_ruby" # Let the user override the test with a path.
5733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5734 for as_dir in $PATH
5736 IFS=$as_save_IFS
5737 test -z "$as_dir" && as_dir=.
5738 for ac_exec_ext in '' $ac_executable_extensions; do
5739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5740 ac_cv_path_vi_cv_path_ruby="$as_dir/$ac_word$ac_exec_ext"
5741 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5742 break 2
5744 done
5745 done
5746 IFS=$as_save_IFS
5749 esac
5751 vi_cv_path_ruby=$ac_cv_path_vi_cv_path_ruby
5752 if test -n "$vi_cv_path_ruby"; then
5753 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_ruby" >&5
5754 $as_echo "$vi_cv_path_ruby" >&6; }
5755 else
5756 { $as_echo "$as_me:$LINENO: result: no" >&5
5757 $as_echo "no" >&6; }
5761 if test "X$vi_cv_path_ruby" != "X"; then
5762 { $as_echo "$as_me:$LINENO: checking Ruby version" >&5
5763 $as_echo_n "checking Ruby version... " >&6; }
5764 if $vi_cv_path_ruby -e '(VERSION rescue RUBY_VERSION) >= "1.6.0" or exit 1' >/dev/null 2>/dev/null; then
5765 { $as_echo "$as_me:$LINENO: result: OK" >&5
5766 $as_echo "OK" >&6; }
5767 { $as_echo "$as_me:$LINENO: checking Ruby header files" >&5
5768 $as_echo_n "checking Ruby header files... " >&6; }
5769 rubyhdrdir=`$vi_cv_path_ruby -r mkmf -e 'print Config::CONFIG["rubyhdrdir"] || Config::CONFIG["archdir"] || $hdrdir' 2>/dev/null`
5770 if test "X$rubyhdrdir" != "X"; then
5771 { $as_echo "$as_me:$LINENO: result: $rubyhdrdir" >&5
5772 $as_echo "$rubyhdrdir" >&6; }
5773 RUBY_CFLAGS="-I$rubyhdrdir"
5774 rubyarch=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["arch"]'`
5775 if test -d "$rubyhdrdir/$rubyarch"; then
5776 RUBY_CFLAGS="$RUBY_CFLAGS -I$rubyhdrdir/$rubyarch"
5778 rubyversion=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["ruby_version"].gsub(/\./, "")[0,2]'`
5779 RUBY_CFLAGS="$RUBY_CFLAGS -DRUBY_VERSION=$rubyversion"
5780 rubylibs=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LIBS"]'`
5781 if test "X$rubylibs" != "X"; then
5782 RUBY_LIBS="$rubylibs"
5784 librubyarg=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["LIBRUBYARG"])'`
5785 if test -f "$rubyhdrdir/$librubyarg"; then
5786 librubyarg="$rubyhdrdir/$librubyarg"
5787 else
5788 rubylibdir=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["libdir"])'`
5789 if test -f "$rubylibdir/$librubyarg"; then
5790 librubyarg="$rubylibdir/$librubyarg"
5791 elif test "$librubyarg" = "libruby.a"; then
5792 librubyarg="-lruby"
5793 else
5794 librubyarg=`$vi_cv_path_ruby -r rbconfig -e "print '$librubyarg'.gsub(/-L\./, %'-L#{Config.expand(Config::CONFIG[\"libdir\"])}')"`
5798 if test "X$librubyarg" != "X"; then
5799 RUBY_LIBS="$librubyarg $RUBY_LIBS"
5801 rubyldflags=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LDFLAGS"]'`
5802 if test "X$rubyldflags" != "X"; then
5803 rubyldflags=`echo "$rubyldflags" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//'`
5804 if test "X$rubyldflags" != "X"; then
5805 LDFLAGS="$rubyldflags $LDFLAGS"
5808 RUBY_SRC="if_ruby.c"
5809 RUBY_OBJ="objects/if_ruby.o"
5810 RUBY_PRO="if_ruby.pro"
5811 cat >>confdefs.h <<\_ACEOF
5812 #define FEAT_RUBY 1
5813 _ACEOF
5815 else
5816 { $as_echo "$as_me:$LINENO: result: not found; disabling Ruby" >&5
5817 $as_echo "not found; disabling Ruby" >&6; }
5819 else
5820 { $as_echo "$as_me:$LINENO: result: too old; need Ruby version 1.6.0 or later" >&5
5821 $as_echo "too old; need Ruby version 1.6.0 or later" >&6; }
5831 { $as_echo "$as_me:$LINENO: checking --enable-cscope argument" >&5
5832 $as_echo_n "checking --enable-cscope argument... " >&6; }
5833 # Check whether --enable-cscope was given.
5834 if test "${enable_cscope+set}" = set; then
5835 enableval=$enable_cscope;
5836 else
5837 enable_cscope="no"
5840 { $as_echo "$as_me:$LINENO: result: $enable_cscope" >&5
5841 $as_echo "$enable_cscope" >&6; }
5842 if test "$enable_cscope" = "yes"; then
5843 cat >>confdefs.h <<\_ACEOF
5844 #define FEAT_CSCOPE 1
5845 _ACEOF
5849 { $as_echo "$as_me:$LINENO: checking --enable-workshop argument" >&5
5850 $as_echo_n "checking --enable-workshop argument... " >&6; }
5851 # Check whether --enable-workshop was given.
5852 if test "${enable_workshop+set}" = set; then
5853 enableval=$enable_workshop;
5854 else
5855 enable_workshop="no"
5858 { $as_echo "$as_me:$LINENO: result: $enable_workshop" >&5
5859 $as_echo "$enable_workshop" >&6; }
5860 if test "$enable_workshop" = "yes"; then
5861 cat >>confdefs.h <<\_ACEOF
5862 #define FEAT_SUN_WORKSHOP 1
5863 _ACEOF
5865 WORKSHOP_SRC="workshop.c integration.c"
5867 WORKSHOP_OBJ="objects/workshop.o objects/integration.o"
5869 if test "${enable_gui-xxx}" = xxx; then
5870 enable_gui=motif
5874 { $as_echo "$as_me:$LINENO: checking --disable-netbeans argument" >&5
5875 $as_echo_n "checking --disable-netbeans argument... " >&6; }
5876 # Check whether --enable-netbeans was given.
5877 if test "${enable_netbeans+set}" = set; then
5878 enableval=$enable_netbeans;
5879 else
5880 enable_netbeans="yes"
5883 if test "$enable_netbeans" = "yes"; then
5884 { $as_echo "$as_me:$LINENO: result: no" >&5
5885 $as_echo "no" >&6; }
5887 { $as_echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
5888 $as_echo_n "checking for socket in -lsocket... " >&6; }
5889 if test "${ac_cv_lib_socket_socket+set}" = set; then
5890 $as_echo_n "(cached) " >&6
5891 else
5892 ac_check_lib_save_LIBS=$LIBS
5893 LIBS="-lsocket $LIBS"
5894 cat >conftest.$ac_ext <<_ACEOF
5895 /* confdefs.h. */
5896 _ACEOF
5897 cat confdefs.h >>conftest.$ac_ext
5898 cat >>conftest.$ac_ext <<_ACEOF
5899 /* end confdefs.h. */
5901 /* Override any GCC internal prototype to avoid an error.
5902 Use char because int might match the return type of a GCC
5903 builtin and then its argument prototype would still apply. */
5904 #ifdef __cplusplus
5905 extern "C"
5906 #endif
5907 char socket ();
5909 main ()
5911 return socket ();
5913 return 0;
5915 _ACEOF
5916 rm -f conftest.$ac_objext conftest$ac_exeext
5917 if { (ac_try="$ac_link"
5918 case "(($ac_try" in
5919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5920 *) ac_try_echo=$ac_try;;
5921 esac
5922 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5923 $as_echo "$ac_try_echo") >&5
5924 (eval "$ac_link") 2>conftest.er1
5925 ac_status=$?
5926 grep -v '^ *+' conftest.er1 >conftest.err
5927 rm -f conftest.er1
5928 cat conftest.err >&5
5929 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5930 (exit $ac_status); } && {
5931 test -z "$ac_c_werror_flag" ||
5932 test ! -s conftest.err
5933 } && test -s conftest$ac_exeext && {
5934 test "$cross_compiling" = yes ||
5935 $as_test_x conftest$ac_exeext
5936 }; then
5937 ac_cv_lib_socket_socket=yes
5938 else
5939 $as_echo "$as_me: failed program was:" >&5
5940 sed 's/^/| /' conftest.$ac_ext >&5
5942 ac_cv_lib_socket_socket=no
5945 rm -rf conftest.dSYM
5946 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5947 conftest$ac_exeext conftest.$ac_ext
5948 LIBS=$ac_check_lib_save_LIBS
5950 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
5951 $as_echo "$ac_cv_lib_socket_socket" >&6; }
5952 if test "x$ac_cv_lib_socket_socket" = x""yes; then
5953 cat >>confdefs.h <<_ACEOF
5954 #define HAVE_LIBSOCKET 1
5955 _ACEOF
5957 LIBS="-lsocket $LIBS"
5962 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5963 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
5964 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5965 $as_echo_n "(cached) " >&6
5966 else
5967 ac_check_lib_save_LIBS=$LIBS
5968 LIBS="-lnsl $LIBS"
5969 cat >conftest.$ac_ext <<_ACEOF
5970 /* confdefs.h. */
5971 _ACEOF
5972 cat confdefs.h >>conftest.$ac_ext
5973 cat >>conftest.$ac_ext <<_ACEOF
5974 /* end confdefs.h. */
5976 /* Override any GCC internal prototype to avoid an error.
5977 Use char because int might match the return type of a GCC
5978 builtin and then its argument prototype would still apply. */
5979 #ifdef __cplusplus
5980 extern "C"
5981 #endif
5982 char gethostbyname ();
5984 main ()
5986 return gethostbyname ();
5988 return 0;
5990 _ACEOF
5991 rm -f conftest.$ac_objext conftest$ac_exeext
5992 if { (ac_try="$ac_link"
5993 case "(($ac_try" in
5994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5995 *) ac_try_echo=$ac_try;;
5996 esac
5997 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5998 $as_echo "$ac_try_echo") >&5
5999 (eval "$ac_link") 2>conftest.er1
6000 ac_status=$?
6001 grep -v '^ *+' conftest.er1 >conftest.err
6002 rm -f conftest.er1
6003 cat conftest.err >&5
6004 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005 (exit $ac_status); } && {
6006 test -z "$ac_c_werror_flag" ||
6007 test ! -s conftest.err
6008 } && test -s conftest$ac_exeext && {
6009 test "$cross_compiling" = yes ||
6010 $as_test_x conftest$ac_exeext
6011 }; then
6012 ac_cv_lib_nsl_gethostbyname=yes
6013 else
6014 $as_echo "$as_me: failed program was:" >&5
6015 sed 's/^/| /' conftest.$ac_ext >&5
6017 ac_cv_lib_nsl_gethostbyname=no
6020 rm -rf conftest.dSYM
6021 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6022 conftest$ac_exeext conftest.$ac_ext
6023 LIBS=$ac_check_lib_save_LIBS
6025 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6026 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
6027 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then
6028 cat >>confdefs.h <<_ACEOF
6029 #define HAVE_LIBNSL 1
6030 _ACEOF
6032 LIBS="-lnsl $LIBS"
6036 { $as_echo "$as_me:$LINENO: checking whether compiling netbeans integration is possible" >&5
6037 $as_echo_n "checking whether compiling netbeans integration is possible... " >&6; }
6038 cat >conftest.$ac_ext <<_ACEOF
6039 /* confdefs.h. */
6040 _ACEOF
6041 cat confdefs.h >>conftest.$ac_ext
6042 cat >>conftest.$ac_ext <<_ACEOF
6043 /* end confdefs.h. */
6045 #include <stdio.h>
6046 #include <stdlib.h>
6047 #include <stdarg.h>
6048 #include <fcntl.h>
6049 #include <netdb.h>
6050 #include <netinet/in.h>
6051 #include <errno.h>
6052 #include <sys/types.h>
6053 #include <sys/socket.h>
6054 /* Check bitfields */
6055 struct nbbuf {
6056 unsigned int initDone:1;
6057 ushort signmaplen;
6061 main ()
6064 /* Check creating a socket. */
6065 struct sockaddr_in server;
6066 (void)socket(AF_INET, SOCK_STREAM, 0);
6067 (void)htons(100);
6068 (void)gethostbyname("microsoft.com");
6069 if (errno == ECONNREFUSED)
6070 (void)connect(1, (struct sockaddr *)&server, sizeof(server));
6073 return 0;
6075 _ACEOF
6076 rm -f conftest.$ac_objext conftest$ac_exeext
6077 if { (ac_try="$ac_link"
6078 case "(($ac_try" in
6079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6080 *) ac_try_echo=$ac_try;;
6081 esac
6082 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6083 $as_echo "$ac_try_echo") >&5
6084 (eval "$ac_link") 2>conftest.er1
6085 ac_status=$?
6086 grep -v '^ *+' conftest.er1 >conftest.err
6087 rm -f conftest.er1
6088 cat conftest.err >&5
6089 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6090 (exit $ac_status); } && {
6091 test -z "$ac_c_werror_flag" ||
6092 test ! -s conftest.err
6093 } && test -s conftest$ac_exeext && {
6094 test "$cross_compiling" = yes ||
6095 $as_test_x conftest$ac_exeext
6096 }; then
6097 { $as_echo "$as_me:$LINENO: result: yes" >&5
6098 $as_echo "yes" >&6; }
6099 else
6100 $as_echo "$as_me: failed program was:" >&5
6101 sed 's/^/| /' conftest.$ac_ext >&5
6103 { $as_echo "$as_me:$LINENO: result: no" >&5
6104 $as_echo "no" >&6; }; enable_netbeans="no"
6107 rm -rf conftest.dSYM
6108 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6109 conftest$ac_exeext conftest.$ac_ext
6110 else
6111 { $as_echo "$as_me:$LINENO: result: yes" >&5
6112 $as_echo "yes" >&6; }
6114 if test "$enable_netbeans" = "yes"; then
6115 cat >>confdefs.h <<\_ACEOF
6116 #define FEAT_NETBEANS_INTG 1
6117 _ACEOF
6119 NETBEANS_SRC="netbeans.c"
6121 NETBEANS_OBJ="objects/netbeans.o"
6125 { $as_echo "$as_me:$LINENO: checking --enable-sniff argument" >&5
6126 $as_echo_n "checking --enable-sniff argument... " >&6; }
6127 # Check whether --enable-sniff was given.
6128 if test "${enable_sniff+set}" = set; then
6129 enableval=$enable_sniff;
6130 else
6131 enable_sniff="no"
6134 { $as_echo "$as_me:$LINENO: result: $enable_sniff" >&5
6135 $as_echo "$enable_sniff" >&6; }
6136 if test "$enable_sniff" = "yes"; then
6137 cat >>confdefs.h <<\_ACEOF
6138 #define FEAT_SNIFF 1
6139 _ACEOF
6141 SNIFF_SRC="if_sniff.c"
6143 SNIFF_OBJ="objects/if_sniff.o"
6147 { $as_echo "$as_me:$LINENO: checking --enable-multibyte argument" >&5
6148 $as_echo_n "checking --enable-multibyte argument... " >&6; }
6149 # Check whether --enable-multibyte was given.
6150 if test "${enable_multibyte+set}" = set; then
6151 enableval=$enable_multibyte;
6152 else
6153 enable_multibyte="no"
6156 { $as_echo "$as_me:$LINENO: result: $enable_multibyte" >&5
6157 $as_echo "$enable_multibyte" >&6; }
6158 if test "$enable_multibyte" = "yes"; then
6159 cat >>confdefs.h <<\_ACEOF
6160 #define FEAT_MBYTE 1
6161 _ACEOF
6165 { $as_echo "$as_me:$LINENO: checking --enable-hangulinput argument" >&5
6166 $as_echo_n "checking --enable-hangulinput argument... " >&6; }
6167 # Check whether --enable-hangulinput was given.
6168 if test "${enable_hangulinput+set}" = set; then
6169 enableval=$enable_hangulinput;
6170 else
6171 enable_hangulinput="no"
6174 { $as_echo "$as_me:$LINENO: result: $enable_hangulinput" >&5
6175 $as_echo "$enable_hangulinput" >&6; }
6177 { $as_echo "$as_me:$LINENO: checking --enable-xim argument" >&5
6178 $as_echo_n "checking --enable-xim argument... " >&6; }
6179 # Check whether --enable-xim was given.
6180 if test "${enable_xim+set}" = set; then
6181 enableval=$enable_xim; { $as_echo "$as_me:$LINENO: result: $enable_xim" >&5
6182 $as_echo "$enable_xim" >&6; }
6183 else
6184 enable_xim="auto"; { $as_echo "$as_me:$LINENO: result: defaulting to auto" >&5
6185 $as_echo "defaulting to auto" >&6; }
6189 { $as_echo "$as_me:$LINENO: checking --enable-fontset argument" >&5
6190 $as_echo_n "checking --enable-fontset argument... " >&6; }
6191 # Check whether --enable-fontset was given.
6192 if test "${enable_fontset+set}" = set; then
6193 enableval=$enable_fontset;
6194 else
6195 enable_fontset="no"
6198 { $as_echo "$as_me:$LINENO: result: $enable_fontset" >&5
6199 $as_echo "$enable_fontset" >&6; }
6201 test -z "$with_x" && with_x=yes
6202 test "${enable_gui-yes}" != no -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && with_x=yes
6203 if test "$with_x" = no; then
6204 { $as_echo "$as_me:$LINENO: result: defaulting to: don't HAVE_X11" >&5
6205 $as_echo "defaulting to: don't HAVE_X11" >&6; }
6206 else
6208 # Extract the first word of "xmkmf", so it can be a program name with args.
6209 set dummy xmkmf; ac_word=$2
6210 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6211 $as_echo_n "checking for $ac_word... " >&6; }
6212 if test "${ac_cv_path_xmkmfpath+set}" = set; then
6213 $as_echo_n "(cached) " >&6
6214 else
6215 case $xmkmfpath in
6216 [\\/]* | ?:[\\/]*)
6217 ac_cv_path_xmkmfpath="$xmkmfpath" # Let the user override the test with a path.
6220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6221 for as_dir in $PATH
6223 IFS=$as_save_IFS
6224 test -z "$as_dir" && as_dir=.
6225 for ac_exec_ext in '' $ac_executable_extensions; do
6226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6227 ac_cv_path_xmkmfpath="$as_dir/$ac_word$ac_exec_ext"
6228 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6229 break 2
6231 done
6232 done
6233 IFS=$as_save_IFS
6236 esac
6238 xmkmfpath=$ac_cv_path_xmkmfpath
6239 if test -n "$xmkmfpath"; then
6240 { $as_echo "$as_me:$LINENO: result: $xmkmfpath" >&5
6241 $as_echo "$xmkmfpath" >&6; }
6242 else
6243 { $as_echo "$as_me:$LINENO: result: no" >&5
6244 $as_echo "no" >&6; }
6249 { $as_echo "$as_me:$LINENO: checking for X" >&5
6250 $as_echo_n "checking for X... " >&6; }
6253 # Check whether --with-x was given.
6254 if test "${with_x+set}" = set; then
6255 withval=$with_x;
6258 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6259 if test "x$with_x" = xno; then
6260 # The user explicitly disabled X.
6261 have_x=disabled
6262 else
6263 case $x_includes,$x_libraries in #(
6264 *\'*) { { $as_echo "$as_me:$LINENO: error: cannot use X directory names containing '" >&5
6265 $as_echo "$as_me: error: cannot use X directory names containing '" >&2;}
6266 { (exit 1); exit 1; }; };; #(
6267 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
6268 $as_echo_n "(cached) " >&6
6269 else
6270 # One or both of the vars are not set, and there is no cached value.
6271 ac_x_includes=no ac_x_libraries=no
6272 rm -f -r conftest.dir
6273 if mkdir conftest.dir; then
6274 cd conftest.dir
6275 cat >Imakefile <<'_ACEOF'
6276 incroot:
6277 @echo incroot='${INCROOT}'
6278 usrlibdir:
6279 @echo usrlibdir='${USRLIBDIR}'
6280 libdir:
6281 @echo libdir='${LIBDIR}'
6282 _ACEOF
6283 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
6284 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6285 for ac_var in incroot usrlibdir libdir; do
6286 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
6287 done
6288 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6289 for ac_extension in a so sl dylib la dll; do
6290 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
6291 test -f "$ac_im_libdir/libX11.$ac_extension"; then
6292 ac_im_usrlibdir=$ac_im_libdir; break
6294 done
6295 # Screen out bogus values from the imake configuration. They are
6296 # bogus both because they are the default anyway, and because
6297 # using them would break gcc on systems where it needs fixed includes.
6298 case $ac_im_incroot in
6299 /usr/include) ac_x_includes= ;;
6300 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6301 esac
6302 case $ac_im_usrlibdir in
6303 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
6304 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6305 esac
6307 cd ..
6308 rm -f -r conftest.dir
6311 # Standard set of common directories for X headers.
6312 # Check X11 before X11Rn because it is often a symlink to the current release.
6313 ac_x_header_dirs='
6314 /usr/X11/include
6315 /usr/X11R6/include
6316 /usr/X11R5/include
6317 /usr/X11R4/include
6319 /usr/include/X11
6320 /usr/include/X11R6
6321 /usr/include/X11R5
6322 /usr/include/X11R4
6324 /usr/local/X11/include
6325 /usr/local/X11R6/include
6326 /usr/local/X11R5/include
6327 /usr/local/X11R4/include
6329 /usr/local/include/X11
6330 /usr/local/include/X11R6
6331 /usr/local/include/X11R5
6332 /usr/local/include/X11R4
6334 /usr/X386/include
6335 /usr/x386/include
6336 /usr/XFree86/include/X11
6338 /usr/include
6339 /usr/local/include
6340 /usr/unsupported/include
6341 /usr/athena/include
6342 /usr/local/x11r5/include
6343 /usr/lpp/Xamples/include
6345 /usr/openwin/include
6346 /usr/openwin/share/include'
6348 if test "$ac_x_includes" = no; then
6349 # Guess where to find include files, by looking for Xlib.h.
6350 # First, try using that file with no special directory specified.
6351 cat >conftest.$ac_ext <<_ACEOF
6352 /* confdefs.h. */
6353 _ACEOF
6354 cat confdefs.h >>conftest.$ac_ext
6355 cat >>conftest.$ac_ext <<_ACEOF
6356 /* end confdefs.h. */
6357 #include <X11/Xlib.h>
6358 _ACEOF
6359 if { (ac_try="$ac_cpp conftest.$ac_ext"
6360 case "(($ac_try" in
6361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6362 *) ac_try_echo=$ac_try;;
6363 esac
6364 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6365 $as_echo "$ac_try_echo") >&5
6366 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6367 ac_status=$?
6368 grep -v '^ *+' conftest.er1 >conftest.err
6369 rm -f conftest.er1
6370 cat conftest.err >&5
6371 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6372 (exit $ac_status); } >/dev/null && {
6373 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6374 test ! -s conftest.err
6375 }; then
6376 # We can compile using X headers with no special include directory.
6377 ac_x_includes=
6378 else
6379 $as_echo "$as_me: failed program was:" >&5
6380 sed 's/^/| /' conftest.$ac_ext >&5
6382 for ac_dir in $ac_x_header_dirs; do
6383 if test -r "$ac_dir/X11/Xlib.h"; then
6384 ac_x_includes=$ac_dir
6385 break
6387 done
6390 rm -f conftest.err conftest.$ac_ext
6391 fi # $ac_x_includes = no
6393 if test "$ac_x_libraries" = no; then
6394 # Check for the libraries.
6395 # See if we find them without any special options.
6396 # Don't add to $LIBS permanently.
6397 ac_save_LIBS=$LIBS
6398 LIBS="-lX11 $LIBS"
6399 cat >conftest.$ac_ext <<_ACEOF
6400 /* confdefs.h. */
6401 _ACEOF
6402 cat confdefs.h >>conftest.$ac_ext
6403 cat >>conftest.$ac_ext <<_ACEOF
6404 /* end confdefs.h. */
6405 #include <X11/Xlib.h>
6407 main ()
6409 XrmInitialize ()
6411 return 0;
6413 _ACEOF
6414 rm -f conftest.$ac_objext conftest$ac_exeext
6415 if { (ac_try="$ac_link"
6416 case "(($ac_try" in
6417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6418 *) ac_try_echo=$ac_try;;
6419 esac
6420 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6421 $as_echo "$ac_try_echo") >&5
6422 (eval "$ac_link") 2>conftest.er1
6423 ac_status=$?
6424 grep -v '^ *+' conftest.er1 >conftest.err
6425 rm -f conftest.er1
6426 cat conftest.err >&5
6427 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6428 (exit $ac_status); } && {
6429 test -z "$ac_c_werror_flag" ||
6430 test ! -s conftest.err
6431 } && test -s conftest$ac_exeext && {
6432 test "$cross_compiling" = yes ||
6433 $as_test_x conftest$ac_exeext
6434 }; then
6435 LIBS=$ac_save_LIBS
6436 # We can link X programs with no special library path.
6437 ac_x_libraries=
6438 else
6439 $as_echo "$as_me: failed program was:" >&5
6440 sed 's/^/| /' conftest.$ac_ext >&5
6442 LIBS=$ac_save_LIBS
6443 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6445 # Don't even attempt the hair of trying to link an X program!
6446 for ac_extension in a so sl dylib la dll; do
6447 if test -r "$ac_dir/libX11.$ac_extension"; then
6448 ac_x_libraries=$ac_dir
6449 break 2
6451 done
6452 done
6455 rm -rf conftest.dSYM
6456 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6457 conftest$ac_exeext conftest.$ac_ext
6458 fi # $ac_x_libraries = no
6460 case $ac_x_includes,$ac_x_libraries in #(
6461 no,* | *,no | *\'*)
6462 # Didn't find X, or a directory has "'" in its name.
6463 ac_cv_have_x="have_x=no";; #(
6465 # Record where we found X for the cache.
6466 ac_cv_have_x="have_x=yes\
6467 ac_x_includes='$ac_x_includes'\
6468 ac_x_libraries='$ac_x_libraries'"
6469 esac
6471 ;; #(
6472 *) have_x=yes;;
6473 esac
6474 eval "$ac_cv_have_x"
6475 fi # $with_x != no
6477 if test "$have_x" != yes; then
6478 { $as_echo "$as_me:$LINENO: result: $have_x" >&5
6479 $as_echo "$have_x" >&6; }
6480 no_x=yes
6481 else
6482 # If each of the values was on the command line, it overrides each guess.
6483 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6484 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6485 # Update the cache value to reflect the command line values.
6486 ac_cv_have_x="have_x=yes\
6487 ac_x_includes='$x_includes'\
6488 ac_x_libraries='$x_libraries'"
6489 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6490 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
6493 if test "$no_x" = yes; then
6494 # Not all programs may use this symbol, but it does not hurt to define it.
6496 cat >>confdefs.h <<\_ACEOF
6497 #define X_DISPLAY_MISSING 1
6498 _ACEOF
6500 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6501 else
6502 if test -n "$x_includes"; then
6503 X_CFLAGS="$X_CFLAGS -I$x_includes"
6506 # It would also be nice to do this for all -L options, not just this one.
6507 if test -n "$x_libraries"; then
6508 X_LIBS="$X_LIBS -L$x_libraries"
6509 # For Solaris; some versions of Sun CC require a space after -R and
6510 # others require no space. Words are not sufficient . . . .
6511 { $as_echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
6512 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
6513 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
6514 ac_xsave_c_werror_flag=$ac_c_werror_flag
6515 ac_c_werror_flag=yes
6516 cat >conftest.$ac_ext <<_ACEOF
6517 /* confdefs.h. */
6518 _ACEOF
6519 cat confdefs.h >>conftest.$ac_ext
6520 cat >>conftest.$ac_ext <<_ACEOF
6521 /* end confdefs.h. */
6524 main ()
6528 return 0;
6530 _ACEOF
6531 rm -f conftest.$ac_objext conftest$ac_exeext
6532 if { (ac_try="$ac_link"
6533 case "(($ac_try" in
6534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6535 *) ac_try_echo=$ac_try;;
6536 esac
6537 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6538 $as_echo "$ac_try_echo") >&5
6539 (eval "$ac_link") 2>conftest.er1
6540 ac_status=$?
6541 grep -v '^ *+' conftest.er1 >conftest.err
6542 rm -f conftest.er1
6543 cat conftest.err >&5
6544 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6545 (exit $ac_status); } && {
6546 test -z "$ac_c_werror_flag" ||
6547 test ! -s conftest.err
6548 } && test -s conftest$ac_exeext && {
6549 test "$cross_compiling" = yes ||
6550 $as_test_x conftest$ac_exeext
6551 }; then
6552 { $as_echo "$as_me:$LINENO: result: no" >&5
6553 $as_echo "no" >&6; }
6554 X_LIBS="$X_LIBS -R$x_libraries"
6555 else
6556 $as_echo "$as_me: failed program was:" >&5
6557 sed 's/^/| /' conftest.$ac_ext >&5
6559 LIBS="$ac_xsave_LIBS -R $x_libraries"
6560 cat >conftest.$ac_ext <<_ACEOF
6561 /* confdefs.h. */
6562 _ACEOF
6563 cat confdefs.h >>conftest.$ac_ext
6564 cat >>conftest.$ac_ext <<_ACEOF
6565 /* end confdefs.h. */
6568 main ()
6572 return 0;
6574 _ACEOF
6575 rm -f conftest.$ac_objext conftest$ac_exeext
6576 if { (ac_try="$ac_link"
6577 case "(($ac_try" in
6578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6579 *) ac_try_echo=$ac_try;;
6580 esac
6581 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6582 $as_echo "$ac_try_echo") >&5
6583 (eval "$ac_link") 2>conftest.er1
6584 ac_status=$?
6585 grep -v '^ *+' conftest.er1 >conftest.err
6586 rm -f conftest.er1
6587 cat conftest.err >&5
6588 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6589 (exit $ac_status); } && {
6590 test -z "$ac_c_werror_flag" ||
6591 test ! -s conftest.err
6592 } && test -s conftest$ac_exeext && {
6593 test "$cross_compiling" = yes ||
6594 $as_test_x conftest$ac_exeext
6595 }; then
6596 { $as_echo "$as_me:$LINENO: result: yes" >&5
6597 $as_echo "yes" >&6; }
6598 X_LIBS="$X_LIBS -R $x_libraries"
6599 else
6600 $as_echo "$as_me: failed program was:" >&5
6601 sed 's/^/| /' conftest.$ac_ext >&5
6603 { $as_echo "$as_me:$LINENO: result: neither works" >&5
6604 $as_echo "neither works" >&6; }
6607 rm -rf conftest.dSYM
6608 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6609 conftest$ac_exeext conftest.$ac_ext
6612 rm -rf conftest.dSYM
6613 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6614 conftest$ac_exeext conftest.$ac_ext
6615 ac_c_werror_flag=$ac_xsave_c_werror_flag
6616 LIBS=$ac_xsave_LIBS
6619 # Check for system-dependent libraries X programs must link with.
6620 # Do this before checking for the system-independent R6 libraries
6621 # (-lICE), since we may need -lsocket or whatever for X linking.
6623 if test "$ISC" = yes; then
6624 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
6625 else
6626 # Martyn Johnson says this is needed for Ultrix, if the X
6627 # libraries were built with DECnet support. And Karl Berry says
6628 # the Alpha needs dnet_stub (dnet does not exist).
6629 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
6630 cat >conftest.$ac_ext <<_ACEOF
6631 /* confdefs.h. */
6632 _ACEOF
6633 cat confdefs.h >>conftest.$ac_ext
6634 cat >>conftest.$ac_ext <<_ACEOF
6635 /* end confdefs.h. */
6637 /* Override any GCC internal prototype to avoid an error.
6638 Use char because int might match the return type of a GCC
6639 builtin and then its argument prototype would still apply. */
6640 #ifdef __cplusplus
6641 extern "C"
6642 #endif
6643 char XOpenDisplay ();
6645 main ()
6647 return XOpenDisplay ();
6649 return 0;
6651 _ACEOF
6652 rm -f conftest.$ac_objext conftest$ac_exeext
6653 if { (ac_try="$ac_link"
6654 case "(($ac_try" in
6655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6656 *) ac_try_echo=$ac_try;;
6657 esac
6658 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6659 $as_echo "$ac_try_echo") >&5
6660 (eval "$ac_link") 2>conftest.er1
6661 ac_status=$?
6662 grep -v '^ *+' conftest.er1 >conftest.err
6663 rm -f conftest.er1
6664 cat conftest.err >&5
6665 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6666 (exit $ac_status); } && {
6667 test -z "$ac_c_werror_flag" ||
6668 test ! -s conftest.err
6669 } && test -s conftest$ac_exeext && {
6670 test "$cross_compiling" = yes ||
6671 $as_test_x conftest$ac_exeext
6672 }; then
6674 else
6675 $as_echo "$as_me: failed program was:" >&5
6676 sed 's/^/| /' conftest.$ac_ext >&5
6678 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
6679 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
6680 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
6681 $as_echo_n "(cached) " >&6
6682 else
6683 ac_check_lib_save_LIBS=$LIBS
6684 LIBS="-ldnet $LIBS"
6685 cat >conftest.$ac_ext <<_ACEOF
6686 /* confdefs.h. */
6687 _ACEOF
6688 cat confdefs.h >>conftest.$ac_ext
6689 cat >>conftest.$ac_ext <<_ACEOF
6690 /* end confdefs.h. */
6692 /* Override any GCC internal prototype to avoid an error.
6693 Use char because int might match the return type of a GCC
6694 builtin and then its argument prototype would still apply. */
6695 #ifdef __cplusplus
6696 extern "C"
6697 #endif
6698 char dnet_ntoa ();
6700 main ()
6702 return dnet_ntoa ();
6704 return 0;
6706 _ACEOF
6707 rm -f conftest.$ac_objext conftest$ac_exeext
6708 if { (ac_try="$ac_link"
6709 case "(($ac_try" in
6710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6711 *) ac_try_echo=$ac_try;;
6712 esac
6713 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6714 $as_echo "$ac_try_echo") >&5
6715 (eval "$ac_link") 2>conftest.er1
6716 ac_status=$?
6717 grep -v '^ *+' conftest.er1 >conftest.err
6718 rm -f conftest.er1
6719 cat conftest.err >&5
6720 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6721 (exit $ac_status); } && {
6722 test -z "$ac_c_werror_flag" ||
6723 test ! -s conftest.err
6724 } && test -s conftest$ac_exeext && {
6725 test "$cross_compiling" = yes ||
6726 $as_test_x conftest$ac_exeext
6727 }; then
6728 ac_cv_lib_dnet_dnet_ntoa=yes
6729 else
6730 $as_echo "$as_me: failed program was:" >&5
6731 sed 's/^/| /' conftest.$ac_ext >&5
6733 ac_cv_lib_dnet_dnet_ntoa=no
6736 rm -rf conftest.dSYM
6737 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6738 conftest$ac_exeext conftest.$ac_ext
6739 LIBS=$ac_check_lib_save_LIBS
6741 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6742 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
6743 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then
6744 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
6747 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
6748 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
6749 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
6750 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
6751 $as_echo_n "(cached) " >&6
6752 else
6753 ac_check_lib_save_LIBS=$LIBS
6754 LIBS="-ldnet_stub $LIBS"
6755 cat >conftest.$ac_ext <<_ACEOF
6756 /* confdefs.h. */
6757 _ACEOF
6758 cat confdefs.h >>conftest.$ac_ext
6759 cat >>conftest.$ac_ext <<_ACEOF
6760 /* end confdefs.h. */
6762 /* Override any GCC internal prototype to avoid an error.
6763 Use char because int might match the return type of a GCC
6764 builtin and then its argument prototype would still apply. */
6765 #ifdef __cplusplus
6766 extern "C"
6767 #endif
6768 char dnet_ntoa ();
6770 main ()
6772 return dnet_ntoa ();
6774 return 0;
6776 _ACEOF
6777 rm -f conftest.$ac_objext conftest$ac_exeext
6778 if { (ac_try="$ac_link"
6779 case "(($ac_try" in
6780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6781 *) ac_try_echo=$ac_try;;
6782 esac
6783 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6784 $as_echo "$ac_try_echo") >&5
6785 (eval "$ac_link") 2>conftest.er1
6786 ac_status=$?
6787 grep -v '^ *+' conftest.er1 >conftest.err
6788 rm -f conftest.er1
6789 cat conftest.err >&5
6790 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6791 (exit $ac_status); } && {
6792 test -z "$ac_c_werror_flag" ||
6793 test ! -s conftest.err
6794 } && test -s conftest$ac_exeext && {
6795 test "$cross_compiling" = yes ||
6796 $as_test_x conftest$ac_exeext
6797 }; then
6798 ac_cv_lib_dnet_stub_dnet_ntoa=yes
6799 else
6800 $as_echo "$as_me: failed program was:" >&5
6801 sed 's/^/| /' conftest.$ac_ext >&5
6803 ac_cv_lib_dnet_stub_dnet_ntoa=no
6806 rm -rf conftest.dSYM
6807 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6808 conftest$ac_exeext conftest.$ac_ext
6809 LIBS=$ac_check_lib_save_LIBS
6811 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
6812 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
6813 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then
6814 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
6820 rm -rf conftest.dSYM
6821 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6822 conftest$ac_exeext conftest.$ac_ext
6823 LIBS="$ac_xsave_LIBS"
6825 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
6826 # to get the SysV transport functions.
6827 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
6828 # needs -lnsl.
6829 # The nsl library prevents programs from opening the X display
6830 # on Irix 5.2, according to T.E. Dickey.
6831 # The functions gethostbyname, getservbyname, and inet_addr are
6832 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
6833 { $as_echo "$as_me:$LINENO: checking for gethostbyname" >&5
6834 $as_echo_n "checking for gethostbyname... " >&6; }
6835 if test "${ac_cv_func_gethostbyname+set}" = set; then
6836 $as_echo_n "(cached) " >&6
6837 else
6838 cat >conftest.$ac_ext <<_ACEOF
6839 /* confdefs.h. */
6840 _ACEOF
6841 cat confdefs.h >>conftest.$ac_ext
6842 cat >>conftest.$ac_ext <<_ACEOF
6843 /* end confdefs.h. */
6844 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
6845 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6846 #define gethostbyname innocuous_gethostbyname
6848 /* System header to define __stub macros and hopefully few prototypes,
6849 which can conflict with char gethostbyname (); below.
6850 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6851 <limits.h> exists even on freestanding compilers. */
6853 #ifdef __STDC__
6854 # include <limits.h>
6855 #else
6856 # include <assert.h>
6857 #endif
6859 #undef gethostbyname
6861 /* Override any GCC internal prototype to avoid an error.
6862 Use char because int might match the return type of a GCC
6863 builtin and then its argument prototype would still apply. */
6864 #ifdef __cplusplus
6865 extern "C"
6866 #endif
6867 char gethostbyname ();
6868 /* The GNU C library defines this for functions which it implements
6869 to always fail with ENOSYS. Some functions are actually named
6870 something starting with __ and the normal name is an alias. */
6871 #if defined __stub_gethostbyname || defined __stub___gethostbyname
6872 choke me
6873 #endif
6876 main ()
6878 return gethostbyname ();
6880 return 0;
6882 _ACEOF
6883 rm -f conftest.$ac_objext conftest$ac_exeext
6884 if { (ac_try="$ac_link"
6885 case "(($ac_try" in
6886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6887 *) ac_try_echo=$ac_try;;
6888 esac
6889 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6890 $as_echo "$ac_try_echo") >&5
6891 (eval "$ac_link") 2>conftest.er1
6892 ac_status=$?
6893 grep -v '^ *+' conftest.er1 >conftest.err
6894 rm -f conftest.er1
6895 cat conftest.err >&5
6896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6897 (exit $ac_status); } && {
6898 test -z "$ac_c_werror_flag" ||
6899 test ! -s conftest.err
6900 } && test -s conftest$ac_exeext && {
6901 test "$cross_compiling" = yes ||
6902 $as_test_x conftest$ac_exeext
6903 }; then
6904 ac_cv_func_gethostbyname=yes
6905 else
6906 $as_echo "$as_me: failed program was:" >&5
6907 sed 's/^/| /' conftest.$ac_ext >&5
6909 ac_cv_func_gethostbyname=no
6912 rm -rf conftest.dSYM
6913 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6914 conftest$ac_exeext conftest.$ac_ext
6916 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
6917 $as_echo "$ac_cv_func_gethostbyname" >&6; }
6919 if test $ac_cv_func_gethostbyname = no; then
6920 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6921 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
6922 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6923 $as_echo_n "(cached) " >&6
6924 else
6925 ac_check_lib_save_LIBS=$LIBS
6926 LIBS="-lnsl $LIBS"
6927 cat >conftest.$ac_ext <<_ACEOF
6928 /* confdefs.h. */
6929 _ACEOF
6930 cat confdefs.h >>conftest.$ac_ext
6931 cat >>conftest.$ac_ext <<_ACEOF
6932 /* end confdefs.h. */
6934 /* Override any GCC internal prototype to avoid an error.
6935 Use char because int might match the return type of a GCC
6936 builtin and then its argument prototype would still apply. */
6937 #ifdef __cplusplus
6938 extern "C"
6939 #endif
6940 char gethostbyname ();
6942 main ()
6944 return gethostbyname ();
6946 return 0;
6948 _ACEOF
6949 rm -f conftest.$ac_objext conftest$ac_exeext
6950 if { (ac_try="$ac_link"
6951 case "(($ac_try" in
6952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6953 *) ac_try_echo=$ac_try;;
6954 esac
6955 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6956 $as_echo "$ac_try_echo") >&5
6957 (eval "$ac_link") 2>conftest.er1
6958 ac_status=$?
6959 grep -v '^ *+' conftest.er1 >conftest.err
6960 rm -f conftest.er1
6961 cat conftest.err >&5
6962 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6963 (exit $ac_status); } && {
6964 test -z "$ac_c_werror_flag" ||
6965 test ! -s conftest.err
6966 } && test -s conftest$ac_exeext && {
6967 test "$cross_compiling" = yes ||
6968 $as_test_x conftest$ac_exeext
6969 }; then
6970 ac_cv_lib_nsl_gethostbyname=yes
6971 else
6972 $as_echo "$as_me: failed program was:" >&5
6973 sed 's/^/| /' conftest.$ac_ext >&5
6975 ac_cv_lib_nsl_gethostbyname=no
6978 rm -rf conftest.dSYM
6979 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6980 conftest$ac_exeext conftest.$ac_ext
6981 LIBS=$ac_check_lib_save_LIBS
6983 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6984 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
6985 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then
6986 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
6989 if test $ac_cv_lib_nsl_gethostbyname = no; then
6990 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
6991 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
6992 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
6993 $as_echo_n "(cached) " >&6
6994 else
6995 ac_check_lib_save_LIBS=$LIBS
6996 LIBS="-lbsd $LIBS"
6997 cat >conftest.$ac_ext <<_ACEOF
6998 /* confdefs.h. */
6999 _ACEOF
7000 cat confdefs.h >>conftest.$ac_ext
7001 cat >>conftest.$ac_ext <<_ACEOF
7002 /* end confdefs.h. */
7004 /* Override any GCC internal prototype to avoid an error.
7005 Use char because int might match the return type of a GCC
7006 builtin and then its argument prototype would still apply. */
7007 #ifdef __cplusplus
7008 extern "C"
7009 #endif
7010 char gethostbyname ();
7012 main ()
7014 return gethostbyname ();
7016 return 0;
7018 _ACEOF
7019 rm -f conftest.$ac_objext conftest$ac_exeext
7020 if { (ac_try="$ac_link"
7021 case "(($ac_try" in
7022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7023 *) ac_try_echo=$ac_try;;
7024 esac
7025 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7026 $as_echo "$ac_try_echo") >&5
7027 (eval "$ac_link") 2>conftest.er1
7028 ac_status=$?
7029 grep -v '^ *+' conftest.er1 >conftest.err
7030 rm -f conftest.er1
7031 cat conftest.err >&5
7032 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7033 (exit $ac_status); } && {
7034 test -z "$ac_c_werror_flag" ||
7035 test ! -s conftest.err
7036 } && test -s conftest$ac_exeext && {
7037 test "$cross_compiling" = yes ||
7038 $as_test_x conftest$ac_exeext
7039 }; then
7040 ac_cv_lib_bsd_gethostbyname=yes
7041 else
7042 $as_echo "$as_me: failed program was:" >&5
7043 sed 's/^/| /' conftest.$ac_ext >&5
7045 ac_cv_lib_bsd_gethostbyname=no
7048 rm -rf conftest.dSYM
7049 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7050 conftest$ac_exeext conftest.$ac_ext
7051 LIBS=$ac_check_lib_save_LIBS
7053 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
7054 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
7055 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then
7056 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7062 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7063 # socket/setsockopt and other routines are undefined under SCO ODT
7064 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7065 # on later versions), says Simon Leinen: it contains gethostby*
7066 # variants that don't use the name server (or something). -lsocket
7067 # must be given before -lnsl if both are needed. We assume that
7068 # if connect needs -lnsl, so does gethostbyname.
7069 { $as_echo "$as_me:$LINENO: checking for connect" >&5
7070 $as_echo_n "checking for connect... " >&6; }
7071 if test "${ac_cv_func_connect+set}" = set; then
7072 $as_echo_n "(cached) " >&6
7073 else
7074 cat >conftest.$ac_ext <<_ACEOF
7075 /* confdefs.h. */
7076 _ACEOF
7077 cat confdefs.h >>conftest.$ac_ext
7078 cat >>conftest.$ac_ext <<_ACEOF
7079 /* end confdefs.h. */
7080 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
7081 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7082 #define connect innocuous_connect
7084 /* System header to define __stub macros and hopefully few prototypes,
7085 which can conflict with char connect (); below.
7086 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7087 <limits.h> exists even on freestanding compilers. */
7089 #ifdef __STDC__
7090 # include <limits.h>
7091 #else
7092 # include <assert.h>
7093 #endif
7095 #undef connect
7097 /* Override any GCC internal prototype to avoid an error.
7098 Use char because int might match the return type of a GCC
7099 builtin and then its argument prototype would still apply. */
7100 #ifdef __cplusplus
7101 extern "C"
7102 #endif
7103 char connect ();
7104 /* The GNU C library defines this for functions which it implements
7105 to always fail with ENOSYS. Some functions are actually named
7106 something starting with __ and the normal name is an alias. */
7107 #if defined __stub_connect || defined __stub___connect
7108 choke me
7109 #endif
7112 main ()
7114 return connect ();
7116 return 0;
7118 _ACEOF
7119 rm -f conftest.$ac_objext conftest$ac_exeext
7120 if { (ac_try="$ac_link"
7121 case "(($ac_try" in
7122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7123 *) ac_try_echo=$ac_try;;
7124 esac
7125 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7126 $as_echo "$ac_try_echo") >&5
7127 (eval "$ac_link") 2>conftest.er1
7128 ac_status=$?
7129 grep -v '^ *+' conftest.er1 >conftest.err
7130 rm -f conftest.er1
7131 cat conftest.err >&5
7132 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7133 (exit $ac_status); } && {
7134 test -z "$ac_c_werror_flag" ||
7135 test ! -s conftest.err
7136 } && test -s conftest$ac_exeext && {
7137 test "$cross_compiling" = yes ||
7138 $as_test_x conftest$ac_exeext
7139 }; then
7140 ac_cv_func_connect=yes
7141 else
7142 $as_echo "$as_me: failed program was:" >&5
7143 sed 's/^/| /' conftest.$ac_ext >&5
7145 ac_cv_func_connect=no
7148 rm -rf conftest.dSYM
7149 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7150 conftest$ac_exeext conftest.$ac_ext
7152 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
7153 $as_echo "$ac_cv_func_connect" >&6; }
7155 if test $ac_cv_func_connect = no; then
7156 { $as_echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
7157 $as_echo_n "checking for connect in -lsocket... " >&6; }
7158 if test "${ac_cv_lib_socket_connect+set}" = set; then
7159 $as_echo_n "(cached) " >&6
7160 else
7161 ac_check_lib_save_LIBS=$LIBS
7162 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7163 cat >conftest.$ac_ext <<_ACEOF
7164 /* confdefs.h. */
7165 _ACEOF
7166 cat confdefs.h >>conftest.$ac_ext
7167 cat >>conftest.$ac_ext <<_ACEOF
7168 /* end confdefs.h. */
7170 /* Override any GCC internal prototype to avoid an error.
7171 Use char because int might match the return type of a GCC
7172 builtin and then its argument prototype would still apply. */
7173 #ifdef __cplusplus
7174 extern "C"
7175 #endif
7176 char connect ();
7178 main ()
7180 return connect ();
7182 return 0;
7184 _ACEOF
7185 rm -f conftest.$ac_objext conftest$ac_exeext
7186 if { (ac_try="$ac_link"
7187 case "(($ac_try" in
7188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7189 *) ac_try_echo=$ac_try;;
7190 esac
7191 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7192 $as_echo "$ac_try_echo") >&5
7193 (eval "$ac_link") 2>conftest.er1
7194 ac_status=$?
7195 grep -v '^ *+' conftest.er1 >conftest.err
7196 rm -f conftest.er1
7197 cat conftest.err >&5
7198 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7199 (exit $ac_status); } && {
7200 test -z "$ac_c_werror_flag" ||
7201 test ! -s conftest.err
7202 } && test -s conftest$ac_exeext && {
7203 test "$cross_compiling" = yes ||
7204 $as_test_x conftest$ac_exeext
7205 }; then
7206 ac_cv_lib_socket_connect=yes
7207 else
7208 $as_echo "$as_me: failed program was:" >&5
7209 sed 's/^/| /' conftest.$ac_ext >&5
7211 ac_cv_lib_socket_connect=no
7214 rm -rf conftest.dSYM
7215 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7216 conftest$ac_exeext conftest.$ac_ext
7217 LIBS=$ac_check_lib_save_LIBS
7219 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
7220 $as_echo "$ac_cv_lib_socket_connect" >&6; }
7221 if test "x$ac_cv_lib_socket_connect" = x""yes; then
7222 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7227 # Guillermo Gomez says -lposix is necessary on A/UX.
7228 { $as_echo "$as_me:$LINENO: checking for remove" >&5
7229 $as_echo_n "checking for remove... " >&6; }
7230 if test "${ac_cv_func_remove+set}" = set; then
7231 $as_echo_n "(cached) " >&6
7232 else
7233 cat >conftest.$ac_ext <<_ACEOF
7234 /* confdefs.h. */
7235 _ACEOF
7236 cat confdefs.h >>conftest.$ac_ext
7237 cat >>conftest.$ac_ext <<_ACEOF
7238 /* end confdefs.h. */
7239 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
7240 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7241 #define remove innocuous_remove
7243 /* System header to define __stub macros and hopefully few prototypes,
7244 which can conflict with char remove (); below.
7245 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7246 <limits.h> exists even on freestanding compilers. */
7248 #ifdef __STDC__
7249 # include <limits.h>
7250 #else
7251 # include <assert.h>
7252 #endif
7254 #undef remove
7256 /* Override any GCC internal prototype to avoid an error.
7257 Use char because int might match the return type of a GCC
7258 builtin and then its argument prototype would still apply. */
7259 #ifdef __cplusplus
7260 extern "C"
7261 #endif
7262 char remove ();
7263 /* The GNU C library defines this for functions which it implements
7264 to always fail with ENOSYS. Some functions are actually named
7265 something starting with __ and the normal name is an alias. */
7266 #if defined __stub_remove || defined __stub___remove
7267 choke me
7268 #endif
7271 main ()
7273 return remove ();
7275 return 0;
7277 _ACEOF
7278 rm -f conftest.$ac_objext conftest$ac_exeext
7279 if { (ac_try="$ac_link"
7280 case "(($ac_try" in
7281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7282 *) ac_try_echo=$ac_try;;
7283 esac
7284 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7285 $as_echo "$ac_try_echo") >&5
7286 (eval "$ac_link") 2>conftest.er1
7287 ac_status=$?
7288 grep -v '^ *+' conftest.er1 >conftest.err
7289 rm -f conftest.er1
7290 cat conftest.err >&5
7291 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7292 (exit $ac_status); } && {
7293 test -z "$ac_c_werror_flag" ||
7294 test ! -s conftest.err
7295 } && test -s conftest$ac_exeext && {
7296 test "$cross_compiling" = yes ||
7297 $as_test_x conftest$ac_exeext
7298 }; then
7299 ac_cv_func_remove=yes
7300 else
7301 $as_echo "$as_me: failed program was:" >&5
7302 sed 's/^/| /' conftest.$ac_ext >&5
7304 ac_cv_func_remove=no
7307 rm -rf conftest.dSYM
7308 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7309 conftest$ac_exeext conftest.$ac_ext
7311 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
7312 $as_echo "$ac_cv_func_remove" >&6; }
7314 if test $ac_cv_func_remove = no; then
7315 { $as_echo "$as_me:$LINENO: checking for remove in -lposix" >&5
7316 $as_echo_n "checking for remove in -lposix... " >&6; }
7317 if test "${ac_cv_lib_posix_remove+set}" = set; then
7318 $as_echo_n "(cached) " >&6
7319 else
7320 ac_check_lib_save_LIBS=$LIBS
7321 LIBS="-lposix $LIBS"
7322 cat >conftest.$ac_ext <<_ACEOF
7323 /* confdefs.h. */
7324 _ACEOF
7325 cat confdefs.h >>conftest.$ac_ext
7326 cat >>conftest.$ac_ext <<_ACEOF
7327 /* end confdefs.h. */
7329 /* Override any GCC internal prototype to avoid an error.
7330 Use char because int might match the return type of a GCC
7331 builtin and then its argument prototype would still apply. */
7332 #ifdef __cplusplus
7333 extern "C"
7334 #endif
7335 char remove ();
7337 main ()
7339 return remove ();
7341 return 0;
7343 _ACEOF
7344 rm -f conftest.$ac_objext conftest$ac_exeext
7345 if { (ac_try="$ac_link"
7346 case "(($ac_try" in
7347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7348 *) ac_try_echo=$ac_try;;
7349 esac
7350 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7351 $as_echo "$ac_try_echo") >&5
7352 (eval "$ac_link") 2>conftest.er1
7353 ac_status=$?
7354 grep -v '^ *+' conftest.er1 >conftest.err
7355 rm -f conftest.er1
7356 cat conftest.err >&5
7357 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7358 (exit $ac_status); } && {
7359 test -z "$ac_c_werror_flag" ||
7360 test ! -s conftest.err
7361 } && test -s conftest$ac_exeext && {
7362 test "$cross_compiling" = yes ||
7363 $as_test_x conftest$ac_exeext
7364 }; then
7365 ac_cv_lib_posix_remove=yes
7366 else
7367 $as_echo "$as_me: failed program was:" >&5
7368 sed 's/^/| /' conftest.$ac_ext >&5
7370 ac_cv_lib_posix_remove=no
7373 rm -rf conftest.dSYM
7374 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7375 conftest$ac_exeext conftest.$ac_ext
7376 LIBS=$ac_check_lib_save_LIBS
7378 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
7379 $as_echo "$ac_cv_lib_posix_remove" >&6; }
7380 if test "x$ac_cv_lib_posix_remove" = x""yes; then
7381 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7386 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7387 { $as_echo "$as_me:$LINENO: checking for shmat" >&5
7388 $as_echo_n "checking for shmat... " >&6; }
7389 if test "${ac_cv_func_shmat+set}" = set; then
7390 $as_echo_n "(cached) " >&6
7391 else
7392 cat >conftest.$ac_ext <<_ACEOF
7393 /* confdefs.h. */
7394 _ACEOF
7395 cat confdefs.h >>conftest.$ac_ext
7396 cat >>conftest.$ac_ext <<_ACEOF
7397 /* end confdefs.h. */
7398 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
7399 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7400 #define shmat innocuous_shmat
7402 /* System header to define __stub macros and hopefully few prototypes,
7403 which can conflict with char shmat (); below.
7404 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7405 <limits.h> exists even on freestanding compilers. */
7407 #ifdef __STDC__
7408 # include <limits.h>
7409 #else
7410 # include <assert.h>
7411 #endif
7413 #undef shmat
7415 /* Override any GCC internal prototype to avoid an error.
7416 Use char because int might match the return type of a GCC
7417 builtin and then its argument prototype would still apply. */
7418 #ifdef __cplusplus
7419 extern "C"
7420 #endif
7421 char shmat ();
7422 /* The GNU C library defines this for functions which it implements
7423 to always fail with ENOSYS. Some functions are actually named
7424 something starting with __ and the normal name is an alias. */
7425 #if defined __stub_shmat || defined __stub___shmat
7426 choke me
7427 #endif
7430 main ()
7432 return shmat ();
7434 return 0;
7436 _ACEOF
7437 rm -f conftest.$ac_objext conftest$ac_exeext
7438 if { (ac_try="$ac_link"
7439 case "(($ac_try" in
7440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7441 *) ac_try_echo=$ac_try;;
7442 esac
7443 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7444 $as_echo "$ac_try_echo") >&5
7445 (eval "$ac_link") 2>conftest.er1
7446 ac_status=$?
7447 grep -v '^ *+' conftest.er1 >conftest.err
7448 rm -f conftest.er1
7449 cat conftest.err >&5
7450 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7451 (exit $ac_status); } && {
7452 test -z "$ac_c_werror_flag" ||
7453 test ! -s conftest.err
7454 } && test -s conftest$ac_exeext && {
7455 test "$cross_compiling" = yes ||
7456 $as_test_x conftest$ac_exeext
7457 }; then
7458 ac_cv_func_shmat=yes
7459 else
7460 $as_echo "$as_me: failed program was:" >&5
7461 sed 's/^/| /' conftest.$ac_ext >&5
7463 ac_cv_func_shmat=no
7466 rm -rf conftest.dSYM
7467 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7468 conftest$ac_exeext conftest.$ac_ext
7470 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
7471 $as_echo "$ac_cv_func_shmat" >&6; }
7473 if test $ac_cv_func_shmat = no; then
7474 { $as_echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
7475 $as_echo_n "checking for shmat in -lipc... " >&6; }
7476 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
7477 $as_echo_n "(cached) " >&6
7478 else
7479 ac_check_lib_save_LIBS=$LIBS
7480 LIBS="-lipc $LIBS"
7481 cat >conftest.$ac_ext <<_ACEOF
7482 /* confdefs.h. */
7483 _ACEOF
7484 cat confdefs.h >>conftest.$ac_ext
7485 cat >>conftest.$ac_ext <<_ACEOF
7486 /* end confdefs.h. */
7488 /* Override any GCC internal prototype to avoid an error.
7489 Use char because int might match the return type of a GCC
7490 builtin and then its argument prototype would still apply. */
7491 #ifdef __cplusplus
7492 extern "C"
7493 #endif
7494 char shmat ();
7496 main ()
7498 return shmat ();
7500 return 0;
7502 _ACEOF
7503 rm -f conftest.$ac_objext conftest$ac_exeext
7504 if { (ac_try="$ac_link"
7505 case "(($ac_try" in
7506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7507 *) ac_try_echo=$ac_try;;
7508 esac
7509 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7510 $as_echo "$ac_try_echo") >&5
7511 (eval "$ac_link") 2>conftest.er1
7512 ac_status=$?
7513 grep -v '^ *+' conftest.er1 >conftest.err
7514 rm -f conftest.er1
7515 cat conftest.err >&5
7516 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7517 (exit $ac_status); } && {
7518 test -z "$ac_c_werror_flag" ||
7519 test ! -s conftest.err
7520 } && test -s conftest$ac_exeext && {
7521 test "$cross_compiling" = yes ||
7522 $as_test_x conftest$ac_exeext
7523 }; then
7524 ac_cv_lib_ipc_shmat=yes
7525 else
7526 $as_echo "$as_me: failed program was:" >&5
7527 sed 's/^/| /' conftest.$ac_ext >&5
7529 ac_cv_lib_ipc_shmat=no
7532 rm -rf conftest.dSYM
7533 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7534 conftest$ac_exeext conftest.$ac_ext
7535 LIBS=$ac_check_lib_save_LIBS
7537 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
7538 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
7539 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then
7540 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7546 # Check for libraries that X11R6 Xt/Xaw programs need.
7547 ac_save_LDFLAGS=$LDFLAGS
7548 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7549 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7550 # check for ICE first), but we must link in the order -lSM -lICE or
7551 # we get undefined symbols. So assume we have SM if we have ICE.
7552 # These have to be linked with before -lX11, unlike the other
7553 # libraries we check for below, so use a different variable.
7554 # John Interrante, Karl Berry
7555 { $as_echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
7556 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
7557 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
7558 $as_echo_n "(cached) " >&6
7559 else
7560 ac_check_lib_save_LIBS=$LIBS
7561 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7562 cat >conftest.$ac_ext <<_ACEOF
7563 /* confdefs.h. */
7564 _ACEOF
7565 cat confdefs.h >>conftest.$ac_ext
7566 cat >>conftest.$ac_ext <<_ACEOF
7567 /* end confdefs.h. */
7569 /* Override any GCC internal prototype to avoid an error.
7570 Use char because int might match the return type of a GCC
7571 builtin and then its argument prototype would still apply. */
7572 #ifdef __cplusplus
7573 extern "C"
7574 #endif
7575 char IceConnectionNumber ();
7577 main ()
7579 return IceConnectionNumber ();
7581 return 0;
7583 _ACEOF
7584 rm -f conftest.$ac_objext conftest$ac_exeext
7585 if { (ac_try="$ac_link"
7586 case "(($ac_try" in
7587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7588 *) ac_try_echo=$ac_try;;
7589 esac
7590 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7591 $as_echo "$ac_try_echo") >&5
7592 (eval "$ac_link") 2>conftest.er1
7593 ac_status=$?
7594 grep -v '^ *+' conftest.er1 >conftest.err
7595 rm -f conftest.er1
7596 cat conftest.err >&5
7597 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7598 (exit $ac_status); } && {
7599 test -z "$ac_c_werror_flag" ||
7600 test ! -s conftest.err
7601 } && test -s conftest$ac_exeext && {
7602 test "$cross_compiling" = yes ||
7603 $as_test_x conftest$ac_exeext
7604 }; then
7605 ac_cv_lib_ICE_IceConnectionNumber=yes
7606 else
7607 $as_echo "$as_me: failed program was:" >&5
7608 sed 's/^/| /' conftest.$ac_ext >&5
7610 ac_cv_lib_ICE_IceConnectionNumber=no
7613 rm -rf conftest.dSYM
7614 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7615 conftest$ac_exeext conftest.$ac_ext
7616 LIBS=$ac_check_lib_save_LIBS
7618 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7619 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
7620 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then
7621 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7624 LDFLAGS=$ac_save_LDFLAGS
7629 if test "$OS390Unix" = "yes"; then
7630 CFLAGS="$CFLAGS -W c,dll"
7631 LDFLAGS="$LDFLAGS -W l,dll"
7632 X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE -lXmu"
7636 if test -d "$x_includes" && test ! -d "$x_libraries"; then
7637 x_libraries=`echo "$x_includes" | sed s/include/lib/`
7638 { $as_echo "$as_me:$LINENO: result: Corrected X libraries to $x_libraries" >&5
7639 $as_echo "Corrected X libraries to $x_libraries" >&6; }
7640 X_LIBS="$X_LIBS -L$x_libraries"
7641 if test "`(uname) 2>/dev/null`" = SunOS &&
7642 uname -r | grep '^5' >/dev/null; then
7643 X_LIBS="$X_LIBS -R $x_libraries"
7647 if test -d "$x_libraries" && test ! -d "$x_includes"; then
7648 x_includes=`echo "$x_libraries" | sed s/lib/include/`
7649 { $as_echo "$as_me:$LINENO: result: Corrected X includes to $x_includes" >&5
7650 $as_echo "Corrected X includes to $x_includes" >&6; }
7651 X_CFLAGS="$X_CFLAGS -I$x_includes"
7654 X_CFLAGS="`echo $X_CFLAGS\ | sed 's%-I/usr/include %%'`"
7655 X_LIBS="`echo $X_LIBS\ | sed 's%-L/usr/lib %%'`"
7656 X_LIBS="`echo $X_LIBS\ | sed -e 's%-R/usr/lib %%' -e 's%-R /usr/lib %%'`"
7659 { $as_echo "$as_me:$LINENO: checking if X11 header files can be found" >&5
7660 $as_echo_n "checking if X11 header files can be found... " >&6; }
7661 cflags_save=$CFLAGS
7662 CFLAGS="$CFLAGS $X_CFLAGS"
7663 cat >conftest.$ac_ext <<_ACEOF
7664 /* confdefs.h. */
7665 _ACEOF
7666 cat confdefs.h >>conftest.$ac_ext
7667 cat >>conftest.$ac_ext <<_ACEOF
7668 /* end confdefs.h. */
7669 #include <X11/Xlib.h>
7670 #include <X11/Intrinsic.h>
7672 main ()
7676 return 0;
7678 _ACEOF
7679 rm -f conftest.$ac_objext
7680 if { (ac_try="$ac_compile"
7681 case "(($ac_try" in
7682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7683 *) ac_try_echo=$ac_try;;
7684 esac
7685 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7686 $as_echo "$ac_try_echo") >&5
7687 (eval "$ac_compile") 2>conftest.er1
7688 ac_status=$?
7689 grep -v '^ *+' conftest.er1 >conftest.err
7690 rm -f conftest.er1
7691 cat conftest.err >&5
7692 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7693 (exit $ac_status); } && {
7694 test -z "$ac_c_werror_flag" ||
7695 test ! -s conftest.err
7696 } && test -s conftest.$ac_objext; then
7697 { $as_echo "$as_me:$LINENO: result: yes" >&5
7698 $as_echo "yes" >&6; }
7699 else
7700 $as_echo "$as_me: failed program was:" >&5
7701 sed 's/^/| /' conftest.$ac_ext >&5
7703 { $as_echo "$as_me:$LINENO: result: no" >&5
7704 $as_echo "no" >&6; }; no_x=yes
7707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7708 CFLAGS=$cflags_save
7710 if test "${no_x-no}" = yes; then
7711 with_x=no
7712 else
7713 cat >>confdefs.h <<\_ACEOF
7714 #define HAVE_X11 1
7715 _ACEOF
7717 X_LIB="-lXt -lX11";
7720 ac_save_LDFLAGS="$LDFLAGS"
7721 LDFLAGS="-L$x_libraries $LDFLAGS"
7723 { $as_echo "$as_me:$LINENO: checking for _XdmcpAuthDoIt in -lXdmcp" >&5
7724 $as_echo_n "checking for _XdmcpAuthDoIt in -lXdmcp... " >&6; }
7725 if test "${ac_cv_lib_Xdmcp__XdmcpAuthDoIt+set}" = set; then
7726 $as_echo_n "(cached) " >&6
7727 else
7728 ac_check_lib_save_LIBS=$LIBS
7729 LIBS="-lXdmcp -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS -lXdmcp $LIBS"
7730 cat >conftest.$ac_ext <<_ACEOF
7731 /* confdefs.h. */
7732 _ACEOF
7733 cat confdefs.h >>conftest.$ac_ext
7734 cat >>conftest.$ac_ext <<_ACEOF
7735 /* end confdefs.h. */
7737 /* Override any GCC internal prototype to avoid an error.
7738 Use char because int might match the return type of a GCC
7739 builtin and then its argument prototype would still apply. */
7740 #ifdef __cplusplus
7741 extern "C"
7742 #endif
7743 char _XdmcpAuthDoIt ();
7745 main ()
7747 return _XdmcpAuthDoIt ();
7749 return 0;
7751 _ACEOF
7752 rm -f conftest.$ac_objext conftest$ac_exeext
7753 if { (ac_try="$ac_link"
7754 case "(($ac_try" in
7755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7756 *) ac_try_echo=$ac_try;;
7757 esac
7758 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7759 $as_echo "$ac_try_echo") >&5
7760 (eval "$ac_link") 2>conftest.er1
7761 ac_status=$?
7762 grep -v '^ *+' conftest.er1 >conftest.err
7763 rm -f conftest.er1
7764 cat conftest.err >&5
7765 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7766 (exit $ac_status); } && {
7767 test -z "$ac_c_werror_flag" ||
7768 test ! -s conftest.err
7769 } && test -s conftest$ac_exeext && {
7770 test "$cross_compiling" = yes ||
7771 $as_test_x conftest$ac_exeext
7772 }; then
7773 ac_cv_lib_Xdmcp__XdmcpAuthDoIt=yes
7774 else
7775 $as_echo "$as_me: failed program was:" >&5
7776 sed 's/^/| /' conftest.$ac_ext >&5
7778 ac_cv_lib_Xdmcp__XdmcpAuthDoIt=no
7781 rm -rf conftest.dSYM
7782 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7783 conftest$ac_exeext conftest.$ac_ext
7784 LIBS=$ac_check_lib_save_LIBS
7786 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&5
7787 $as_echo "$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&6; }
7788 if test "x$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" = x""yes; then
7789 X_EXTRA_LIBS="$X_EXTRA_LIBS -lXdmcp"
7793 { $as_echo "$as_me:$LINENO: checking for IceOpenConnection in -lICE" >&5
7794 $as_echo_n "checking for IceOpenConnection in -lICE... " >&6; }
7795 if test "${ac_cv_lib_ICE_IceOpenConnection+set}" = set; then
7796 $as_echo_n "(cached) " >&6
7797 else
7798 ac_check_lib_save_LIBS=$LIBS
7799 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7800 cat >conftest.$ac_ext <<_ACEOF
7801 /* confdefs.h. */
7802 _ACEOF
7803 cat confdefs.h >>conftest.$ac_ext
7804 cat >>conftest.$ac_ext <<_ACEOF
7805 /* end confdefs.h. */
7807 /* Override any GCC internal prototype to avoid an error.
7808 Use char because int might match the return type of a GCC
7809 builtin and then its argument prototype would still apply. */
7810 #ifdef __cplusplus
7811 extern "C"
7812 #endif
7813 char IceOpenConnection ();
7815 main ()
7817 return IceOpenConnection ();
7819 return 0;
7821 _ACEOF
7822 rm -f conftest.$ac_objext conftest$ac_exeext
7823 if { (ac_try="$ac_link"
7824 case "(($ac_try" in
7825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7826 *) ac_try_echo=$ac_try;;
7827 esac
7828 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7829 $as_echo "$ac_try_echo") >&5
7830 (eval "$ac_link") 2>conftest.er1
7831 ac_status=$?
7832 grep -v '^ *+' conftest.er1 >conftest.err
7833 rm -f conftest.er1
7834 cat conftest.err >&5
7835 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7836 (exit $ac_status); } && {
7837 test -z "$ac_c_werror_flag" ||
7838 test ! -s conftest.err
7839 } && test -s conftest$ac_exeext && {
7840 test "$cross_compiling" = yes ||
7841 $as_test_x conftest$ac_exeext
7842 }; then
7843 ac_cv_lib_ICE_IceOpenConnection=yes
7844 else
7845 $as_echo "$as_me: failed program was:" >&5
7846 sed 's/^/| /' conftest.$ac_ext >&5
7848 ac_cv_lib_ICE_IceOpenConnection=no
7851 rm -rf conftest.dSYM
7852 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7853 conftest$ac_exeext conftest.$ac_ext
7854 LIBS=$ac_check_lib_save_LIBS
7856 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceOpenConnection" >&5
7857 $as_echo "$ac_cv_lib_ICE_IceOpenConnection" >&6; }
7858 if test "x$ac_cv_lib_ICE_IceOpenConnection" = x""yes; then
7859 X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE"
7863 LDFLAGS="$X_LIBS $ac_save_LDFLAGS"
7864 { $as_echo "$as_me:$LINENO: checking for XpmCreatePixmapFromData in -lXpm" >&5
7865 $as_echo_n "checking for XpmCreatePixmapFromData in -lXpm... " >&6; }
7866 if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then
7867 $as_echo_n "(cached) " >&6
7868 else
7869 ac_check_lib_save_LIBS=$LIBS
7870 LIBS="-lXpm -lXt $X_PRE_LIBS -lXpm -lX11 $X_EXTRA_LIBS $LIBS"
7871 cat >conftest.$ac_ext <<_ACEOF
7872 /* confdefs.h. */
7873 _ACEOF
7874 cat confdefs.h >>conftest.$ac_ext
7875 cat >>conftest.$ac_ext <<_ACEOF
7876 /* end confdefs.h. */
7878 /* Override any GCC internal prototype to avoid an error.
7879 Use char because int might match the return type of a GCC
7880 builtin and then its argument prototype would still apply. */
7881 #ifdef __cplusplus
7882 extern "C"
7883 #endif
7884 char XpmCreatePixmapFromData ();
7886 main ()
7888 return XpmCreatePixmapFromData ();
7890 return 0;
7892 _ACEOF
7893 rm -f conftest.$ac_objext conftest$ac_exeext
7894 if { (ac_try="$ac_link"
7895 case "(($ac_try" in
7896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7897 *) ac_try_echo=$ac_try;;
7898 esac
7899 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7900 $as_echo "$ac_try_echo") >&5
7901 (eval "$ac_link") 2>conftest.er1
7902 ac_status=$?
7903 grep -v '^ *+' conftest.er1 >conftest.err
7904 rm -f conftest.er1
7905 cat conftest.err >&5
7906 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7907 (exit $ac_status); } && {
7908 test -z "$ac_c_werror_flag" ||
7909 test ! -s conftest.err
7910 } && test -s conftest$ac_exeext && {
7911 test "$cross_compiling" = yes ||
7912 $as_test_x conftest$ac_exeext
7913 }; then
7914 ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
7915 else
7916 $as_echo "$as_me: failed program was:" >&5
7917 sed 's/^/| /' conftest.$ac_ext >&5
7919 ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
7922 rm -rf conftest.dSYM
7923 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7924 conftest$ac_exeext conftest.$ac_ext
7925 LIBS=$ac_check_lib_save_LIBS
7927 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
7928 $as_echo "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6; }
7929 if test "x$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = x""yes; then
7930 X_PRE_LIBS="$X_PRE_LIBS -lXpm"
7934 { $as_echo "$as_me:$LINENO: checking if X11 header files implicitly declare return values" >&5
7935 $as_echo_n "checking if X11 header files implicitly declare return values... " >&6; }
7936 cflags_save=$CFLAGS
7937 CFLAGS="$CFLAGS $X_CFLAGS -Werror"
7938 cat >conftest.$ac_ext <<_ACEOF
7939 /* confdefs.h. */
7940 _ACEOF
7941 cat confdefs.h >>conftest.$ac_ext
7942 cat >>conftest.$ac_ext <<_ACEOF
7943 /* end confdefs.h. */
7944 #include <X11/Xlib.h>
7946 main ()
7950 return 0;
7952 _ACEOF
7953 rm -f conftest.$ac_objext
7954 if { (ac_try="$ac_compile"
7955 case "(($ac_try" in
7956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7957 *) ac_try_echo=$ac_try;;
7958 esac
7959 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7960 $as_echo "$ac_try_echo") >&5
7961 (eval "$ac_compile") 2>conftest.er1
7962 ac_status=$?
7963 grep -v '^ *+' conftest.er1 >conftest.err
7964 rm -f conftest.er1
7965 cat conftest.err >&5
7966 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7967 (exit $ac_status); } && {
7968 test -z "$ac_c_werror_flag" ||
7969 test ! -s conftest.err
7970 } && test -s conftest.$ac_objext; then
7971 { $as_echo "$as_me:$LINENO: result: no" >&5
7972 $as_echo "no" >&6; }
7973 else
7974 $as_echo "$as_me: failed program was:" >&5
7975 sed 's/^/| /' conftest.$ac_ext >&5
7977 CFLAGS="$CFLAGS -Wno-implicit-int"
7978 cat >conftest.$ac_ext <<_ACEOF
7979 /* confdefs.h. */
7980 _ACEOF
7981 cat confdefs.h >>conftest.$ac_ext
7982 cat >>conftest.$ac_ext <<_ACEOF
7983 /* end confdefs.h. */
7984 #include <X11/Xlib.h>
7986 main ()
7990 return 0;
7992 _ACEOF
7993 rm -f conftest.$ac_objext
7994 if { (ac_try="$ac_compile"
7995 case "(($ac_try" in
7996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7997 *) ac_try_echo=$ac_try;;
7998 esac
7999 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8000 $as_echo "$ac_try_echo") >&5
8001 (eval "$ac_compile") 2>conftest.er1
8002 ac_status=$?
8003 grep -v '^ *+' conftest.er1 >conftest.err
8004 rm -f conftest.er1
8005 cat conftest.err >&5
8006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8007 (exit $ac_status); } && {
8008 test -z "$ac_c_werror_flag" ||
8009 test ! -s conftest.err
8010 } && test -s conftest.$ac_objext; then
8011 { $as_echo "$as_me:$LINENO: result: yes" >&5
8012 $as_echo "yes" >&6; }; cflags_save="$cflags_save -Wno-implicit-int"
8013 else
8014 $as_echo "$as_me: failed program was:" >&5
8015 sed 's/^/| /' conftest.$ac_ext >&5
8017 { $as_echo "$as_me:$LINENO: result: test failed" >&5
8018 $as_echo "test failed" >&6; }
8022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8027 CFLAGS=$cflags_save
8029 LDFLAGS="$ac_save_LDFLAGS"
8031 { $as_echo "$as_me:$LINENO: checking size of wchar_t is 2 bytes" >&5
8032 $as_echo_n "checking size of wchar_t is 2 bytes... " >&6; }
8033 if test "${ac_cv_small_wchar_t+set}" = set; then
8034 $as_echo_n "(cached) " >&6
8035 else
8036 if test "$cross_compiling" = yes; then
8037 { { $as_echo "$as_me:$LINENO: error: failed to compile test program" >&5
8038 $as_echo "$as_me: error: failed to compile test program" >&2;}
8039 { (exit 1); exit 1; }; }
8040 else
8041 cat >conftest.$ac_ext <<_ACEOF
8042 /* confdefs.h. */
8043 _ACEOF
8044 cat confdefs.h >>conftest.$ac_ext
8045 cat >>conftest.$ac_ext <<_ACEOF
8046 /* end confdefs.h. */
8048 #include <X11/Xlib.h>
8049 #if STDC_HEADERS
8050 # include <stdlib.h>
8051 # include <stddef.h>
8052 #endif
8053 main()
8055 if (sizeof(wchar_t) <= 2)
8056 exit(1);
8057 exit(0);
8059 _ACEOF
8060 rm -f conftest$ac_exeext
8061 if { (ac_try="$ac_link"
8062 case "(($ac_try" in
8063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8064 *) ac_try_echo=$ac_try;;
8065 esac
8066 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8067 $as_echo "$ac_try_echo") >&5
8068 (eval "$ac_link") 2>&5
8069 ac_status=$?
8070 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8071 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8072 { (case "(($ac_try" in
8073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8074 *) ac_try_echo=$ac_try;;
8075 esac
8076 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8077 $as_echo "$ac_try_echo") >&5
8078 (eval "$ac_try") 2>&5
8079 ac_status=$?
8080 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8081 (exit $ac_status); }; }; then
8082 ac_cv_small_wchar_t="no"
8083 else
8084 $as_echo "$as_me: program exited with status $ac_status" >&5
8085 $as_echo "$as_me: failed program was:" >&5
8086 sed 's/^/| /' conftest.$ac_ext >&5
8088 ( exit $ac_status )
8089 ac_cv_small_wchar_t="yes"
8091 rm -rf conftest.dSYM
8092 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8098 { $as_echo "$as_me:$LINENO: result: $ac_cv_small_wchar_t" >&5
8099 $as_echo "$ac_cv_small_wchar_t" >&6; }
8100 if test "x$ac_cv_small_wchar_t" = "xyes" ; then
8101 cat >>confdefs.h <<\_ACEOF
8102 #define SMALL_WCHAR_T 1
8103 _ACEOF
8110 test "x$with_x" = xno -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && enable_gui=no
8112 { $as_echo "$as_me:$LINENO: checking --enable-gui argument" >&5
8113 $as_echo_n "checking --enable-gui argument... " >&6; }
8114 # Check whether --enable-gui was given.
8115 if test "${enable_gui+set}" = set; then
8116 enableval=$enable_gui;
8117 else
8118 enable_gui="auto"
8122 enable_gui_canon=`echo "_$enable_gui" | \
8123 sed 's/[ _+-]//g;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
8125 SKIP_GTK=YES
8126 SKIP_GTK2=YES
8127 SKIP_GNOME=YES
8128 SKIP_MOTIF=YES
8129 SKIP_ATHENA=YES
8130 SKIP_NEXTAW=YES
8131 SKIP_PHOTON=YES
8132 SKIP_CARBON=YES
8133 GUITYPE=NONE
8135 if test "x$QNX" = "xyes" -a "x$with_x" = "xno" ; then
8136 SKIP_PHOTON=
8137 case "$enable_gui_canon" in
8138 no) { $as_echo "$as_me:$LINENO: result: no GUI support" >&5
8139 $as_echo "no GUI support" >&6; }
8140 SKIP_PHOTON=YES ;;
8141 yes|"") { $as_echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5
8142 $as_echo "yes - automatic GUI support" >&6; } ;;
8143 auto) { $as_echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5
8144 $as_echo "auto - automatic GUI support" >&6; } ;;
8145 photon) { $as_echo "$as_me:$LINENO: result: Photon GUI support" >&5
8146 $as_echo "Photon GUI support" >&6; } ;;
8147 *) { $as_echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
8148 $as_echo "Sorry, $enable_gui GUI is not supported" >&6; }
8149 SKIP_PHOTON=YES ;;
8150 esac
8152 elif test "x$MACOSX" = "xyes" -a "x$with_x" = "xno" ; then
8153 SKIP_CARBON=
8154 case "$enable_gui_canon" in
8155 no) { $as_echo "$as_me:$LINENO: result: no GUI support" >&5
8156 $as_echo "no GUI support" >&6; }
8157 SKIP_CARBON=YES ;;
8158 yes|"") { $as_echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5
8159 $as_echo "yes - automatic GUI support" >&6; } ;;
8160 auto) { $as_echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5
8161 $as_echo "auto - automatic GUI support" >&6; } ;;
8162 carbon) { $as_echo "$as_me:$LINENO: result: Carbon GUI support" >&5
8163 $as_echo "Carbon GUI support" >&6; } ;;
8164 *) { $as_echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
8165 $as_echo "Sorry, $enable_gui GUI is not supported" >&6; }
8166 SKIP_CARBON=YES ;;
8167 esac
8169 else
8171 case "$enable_gui_canon" in
8172 no|none) { $as_echo "$as_me:$LINENO: result: no GUI support" >&5
8173 $as_echo "no GUI support" >&6; } ;;
8174 yes|""|auto) { $as_echo "$as_me:$LINENO: result: yes/auto - automatic GUI support" >&5
8175 $as_echo "yes/auto - automatic GUI support" >&6; }
8176 SKIP_GTK=
8177 SKIP_GTK2=
8178 SKIP_GNOME=
8179 SKIP_MOTIF=
8180 SKIP_ATHENA=
8181 SKIP_NEXTAW=
8182 SKIP_CARBON=;;
8183 gtk) { $as_echo "$as_me:$LINENO: result: GTK+ 1.x GUI support" >&5
8184 $as_echo "GTK+ 1.x GUI support" >&6; }
8185 SKIP_GTK=;;
8186 gtk2) { $as_echo "$as_me:$LINENO: result: GTK+ 2.x GUI support" >&5
8187 $as_echo "GTK+ 2.x GUI support" >&6; }
8188 SKIP_GTK=
8189 SKIP_GTK2=;;
8190 gnome) { $as_echo "$as_me:$LINENO: result: GNOME 1.x GUI support" >&5
8191 $as_echo "GNOME 1.x GUI support" >&6; }
8192 SKIP_GNOME=
8193 SKIP_GTK=;;
8194 gnome2) { $as_echo "$as_me:$LINENO: result: GNOME 2.x GUI support" >&5
8195 $as_echo "GNOME 2.x GUI support" >&6; }
8196 SKIP_GNOME=
8197 SKIP_GTK=
8198 SKIP_GTK2=;;
8199 motif) { $as_echo "$as_me:$LINENO: result: Motif GUI support" >&5
8200 $as_echo "Motif GUI support" >&6; }
8201 SKIP_MOTIF=;;
8202 athena) { $as_echo "$as_me:$LINENO: result: Athena GUI support" >&5
8203 $as_echo "Athena GUI support" >&6; }
8204 SKIP_ATHENA=;;
8205 nextaw) { $as_echo "$as_me:$LINENO: result: neXtaw GUI support" >&5
8206 $as_echo "neXtaw GUI support" >&6; }
8207 SKIP_NEXTAW=;;
8208 *) { $as_echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
8209 $as_echo "Sorry, $enable_gui GUI is not supported" >&6; } ;;
8210 esac
8214 if test "x$SKIP_GTK" != "xYES" -a "$enable_gui_canon" != "gtk" -a "$enable_gui_canon" != "gtk2"; then
8215 { $as_echo "$as_me:$LINENO: checking whether or not to look for GTK" >&5
8216 $as_echo_n "checking whether or not to look for GTK... " >&6; }
8217 # Check whether --enable-gtk-check was given.
8218 if test "${enable_gtk_check+set}" = set; then
8219 enableval=$enable_gtk_check;
8220 else
8221 enable_gtk_check="yes"
8224 { $as_echo "$as_me:$LINENO: result: $enable_gtk_check" >&5
8225 $as_echo "$enable_gtk_check" >&6; }
8226 if test "x$enable_gtk_check" = "xno"; then
8227 SKIP_GTK=YES
8228 SKIP_GNOME=YES
8232 if test "x$SKIP_GTK2" != "xYES" -a "$enable_gui_canon" != "gtk2" \
8233 -a "$enable_gui_canon" != "gnome2"; then
8234 { $as_echo "$as_me:$LINENO: checking whether or not to look for GTK+ 2" >&5
8235 $as_echo_n "checking whether or not to look for GTK+ 2... " >&6; }
8236 # Check whether --enable-gtk2-check was given.
8237 if test "${enable_gtk2_check+set}" = set; then
8238 enableval=$enable_gtk2_check;
8239 else
8240 enable_gtk2_check="yes"
8243 { $as_echo "$as_me:$LINENO: result: $enable_gtk2_check" >&5
8244 $as_echo "$enable_gtk2_check" >&6; }
8245 if test "x$enable_gtk2_check" = "xno"; then
8246 SKIP_GTK2=YES
8250 if test "x$SKIP_GNOME" != "xYES" -a "$enable_gui_canon" != "gnome" \
8251 -a "$enable_gui_canon" != "gnome2"; then
8252 { $as_echo "$as_me:$LINENO: checking whether or not to look for GNOME" >&5
8253 $as_echo_n "checking whether or not to look for GNOME... " >&6; }
8254 # Check whether --enable-gnome-check was given.
8255 if test "${enable_gnome_check+set}" = set; then
8256 enableval=$enable_gnome_check;
8257 else
8258 enable_gnome_check="no"
8261 { $as_echo "$as_me:$LINENO: result: $enable_gnome_check" >&5
8262 $as_echo "$enable_gnome_check" >&6; }
8263 if test "x$enable_gnome_check" = "xno"; then
8264 SKIP_GNOME=YES
8268 if test "x$SKIP_MOTIF" != "xYES" -a "$enable_gui_canon" != "motif"; then
8269 { $as_echo "$as_me:$LINENO: checking whether or not to look for Motif" >&5
8270 $as_echo_n "checking whether or not to look for Motif... " >&6; }
8271 # Check whether --enable-motif-check was given.
8272 if test "${enable_motif_check+set}" = set; then
8273 enableval=$enable_motif_check;
8274 else
8275 enable_motif_check="yes"
8278 { $as_echo "$as_me:$LINENO: result: $enable_motif_check" >&5
8279 $as_echo "$enable_motif_check" >&6; }
8280 if test "x$enable_motif_check" = "xno"; then
8281 SKIP_MOTIF=YES
8285 if test "x$SKIP_ATHENA" != "xYES" -a "$enable_gui_canon" != "athena"; then
8286 { $as_echo "$as_me:$LINENO: checking whether or not to look for Athena" >&5
8287 $as_echo_n "checking whether or not to look for Athena... " >&6; }
8288 # Check whether --enable-athena-check was given.
8289 if test "${enable_athena_check+set}" = set; then
8290 enableval=$enable_athena_check;
8291 else
8292 enable_athena_check="yes"
8295 { $as_echo "$as_me:$LINENO: result: $enable_athena_check" >&5
8296 $as_echo "$enable_athena_check" >&6; }
8297 if test "x$enable_athena_check" = "xno"; then
8298 SKIP_ATHENA=YES
8302 if test "x$SKIP_NEXTAW" != "xYES" -a "$enable_gui_canon" != "nextaw"; then
8303 { $as_echo "$as_me:$LINENO: checking whether or not to look for neXtaw" >&5
8304 $as_echo_n "checking whether or not to look for neXtaw... " >&6; }
8305 # Check whether --enable-nextaw-check was given.
8306 if test "${enable_nextaw_check+set}" = set; then
8307 enableval=$enable_nextaw_check;
8308 else
8309 enable_nextaw_check="yes"
8312 { $as_echo "$as_me:$LINENO: result: $enable_nextaw_check" >&5
8313 $as_echo "$enable_nextaw_check" >&6; };
8314 if test "x$enable_nextaw_check" = "xno"; then
8315 SKIP_NEXTAW=YES
8319 if test "x$SKIP_CARBON" != "xYES" -a "$enable_gui_canon" != "carbon"; then
8320 { $as_echo "$as_me:$LINENO: checking whether or not to look for Carbon" >&5
8321 $as_echo_n "checking whether or not to look for Carbon... " >&6; }
8322 # Check whether --enable-carbon-check was given.
8323 if test "${enable_carbon_check+set}" = set; then
8324 enableval=$enable_carbon_check;
8325 else
8326 enable_carbon_check="yes"
8329 { $as_echo "$as_me:$LINENO: result: $enable_carbon_check" >&5
8330 $as_echo "$enable_carbon_check" >&6; };
8331 if test "x$enable_carbon_check" = "xno"; then
8332 SKIP_CARBON=YES
8337 if test "x$MACOSX" = "xyes" -a -z "$SKIP_CARBON" -a "x$CARBON" = "xyes"; then
8338 { $as_echo "$as_me:$LINENO: checking for Carbon GUI" >&5
8339 $as_echo_n "checking for Carbon GUI... " >&6; }
8340 { $as_echo "$as_me:$LINENO: result: yes" >&5
8341 $as_echo "yes" >&6; };
8342 GUITYPE=CARBONGUI
8343 if test "$VIMNAME" = "vim"; then
8344 VIMNAME=Vim
8347 if test x$prefix = xNONE; then
8348 prefix=/Applications
8351 datadir='${prefix}/Vim.app/Contents/Resources'
8353 SKIP_GTK=YES;
8354 SKIP_GTK2=YES;
8355 SKIP_GNOME=YES;
8356 SKIP_MOTIF=YES;
8357 SKIP_ATHENA=YES;
8358 SKIP_NEXTAW=YES;
8359 SKIP_PHOTON=YES;
8360 SKIP_CARBON=YES
8371 if test -z "$SKIP_GTK"; then
8373 { $as_echo "$as_me:$LINENO: checking --with-gtk-prefix argument" >&5
8374 $as_echo_n "checking --with-gtk-prefix argument... " >&6; }
8376 # Check whether --with-gtk-prefix was given.
8377 if test "${with_gtk_prefix+set}" = set; then
8378 withval=$with_gtk_prefix; gtk_config_prefix="$withval"; { $as_echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5
8379 $as_echo "$gtk_config_prefix" >&6; }
8380 else
8381 gtk_config_prefix=""; { $as_echo "$as_me:$LINENO: result: no" >&5
8382 $as_echo "no" >&6; }
8386 { $as_echo "$as_me:$LINENO: checking --with-gtk-exec-prefix argument" >&5
8387 $as_echo_n "checking --with-gtk-exec-prefix argument... " >&6; }
8389 # Check whether --with-gtk-exec-prefix was given.
8390 if test "${with_gtk_exec_prefix+set}" = set; then
8391 withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"; { $as_echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5
8392 $as_echo "$gtk_config_prefix" >&6; }
8393 else
8394 gtk_config_exec_prefix=""; { $as_echo "$as_me:$LINENO: result: no" >&5
8395 $as_echo "no" >&6; }
8399 { $as_echo "$as_me:$LINENO: checking --disable-gtktest argument" >&5
8400 $as_echo_n "checking --disable-gtktest argument... " >&6; }
8401 # Check whether --enable-gtktest was given.
8402 if test "${enable_gtktest+set}" = set; then
8403 enableval=$enable_gtktest;
8404 else
8405 enable_gtktest=yes
8408 if test "x$enable_gtktest" = "xyes" ; then
8409 { $as_echo "$as_me:$LINENO: result: gtk test enabled" >&5
8410 $as_echo "gtk test enabled" >&6; }
8411 else
8412 { $as_echo "$as_me:$LINENO: result: gtk test disabled" >&5
8413 $as_echo "gtk test disabled" >&6; }
8416 if test "x$gtk_config_prefix" != "x" ; then
8417 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
8418 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
8420 if test "x$gtk_config_exec_prefix" != "x" ; then
8421 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
8422 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
8424 if test "X$GTK_CONFIG" = "X"; then
8425 # Extract the first word of "gtk-config", so it can be a program name with args.
8426 set dummy gtk-config; ac_word=$2
8427 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8428 $as_echo_n "checking for $ac_word... " >&6; }
8429 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
8430 $as_echo_n "(cached) " >&6
8431 else
8432 case $GTK_CONFIG in
8433 [\\/]* | ?:[\\/]*)
8434 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
8437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8438 for as_dir in $PATH
8440 IFS=$as_save_IFS
8441 test -z "$as_dir" && as_dir=.
8442 for ac_exec_ext in '' $ac_executable_extensions; do
8443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8444 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8445 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8446 break 2
8448 done
8449 done
8450 IFS=$as_save_IFS
8452 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
8454 esac
8456 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
8457 if test -n "$GTK_CONFIG"; then
8458 { $as_echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
8459 $as_echo "$GTK_CONFIG" >&6; }
8460 else
8461 { $as_echo "$as_me:$LINENO: result: no" >&5
8462 $as_echo "no" >&6; }
8466 if test "X$GTK_CONFIG" = "Xno"; then
8467 # Extract the first word of "gtk12-config", so it can be a program name with args.
8468 set dummy gtk12-config; ac_word=$2
8469 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8470 $as_echo_n "checking for $ac_word... " >&6; }
8471 if test "${ac_cv_path_GTK12_CONFIG+set}" = set; then
8472 $as_echo_n "(cached) " >&6
8473 else
8474 case $GTK12_CONFIG in
8475 [\\/]* | ?:[\\/]*)
8476 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
8479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8480 for as_dir in $PATH
8482 IFS=$as_save_IFS
8483 test -z "$as_dir" && as_dir=.
8484 for ac_exec_ext in '' $ac_executable_extensions; do
8485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8486 ac_cv_path_GTK12_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8487 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8488 break 2
8490 done
8491 done
8492 IFS=$as_save_IFS
8494 test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
8496 esac
8498 GTK12_CONFIG=$ac_cv_path_GTK12_CONFIG
8499 if test -n "$GTK12_CONFIG"; then
8500 { $as_echo "$as_me:$LINENO: result: $GTK12_CONFIG" >&5
8501 $as_echo "$GTK12_CONFIG" >&6; }
8502 else
8503 { $as_echo "$as_me:$LINENO: result: no" >&5
8504 $as_echo "no" >&6; }
8508 GTK_CONFIG="$GTK12_CONFIG"
8510 else
8511 { $as_echo "$as_me:$LINENO: result: Using GTK configuration program $GTK_CONFIG" >&5
8512 $as_echo "Using GTK configuration program $GTK_CONFIG" >&6; }
8514 if test "X$PKG_CONFIG" = "X"; then
8515 # Extract the first word of "pkg-config", so it can be a program name with args.
8516 set dummy pkg-config; ac_word=$2
8517 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8518 $as_echo_n "checking for $ac_word... " >&6; }
8519 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8520 $as_echo_n "(cached) " >&6
8521 else
8522 case $PKG_CONFIG in
8523 [\\/]* | ?:[\\/]*)
8524 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8528 for as_dir in $PATH
8530 IFS=$as_save_IFS
8531 test -z "$as_dir" && as_dir=.
8532 for ac_exec_ext in '' $ac_executable_extensions; do
8533 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8534 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8535 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8536 break 2
8538 done
8539 done
8540 IFS=$as_save_IFS
8542 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8544 esac
8546 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8547 if test -n "$PKG_CONFIG"; then
8548 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8549 $as_echo "$PKG_CONFIG" >&6; }
8550 else
8551 { $as_echo "$as_me:$LINENO: result: no" >&5
8552 $as_echo "no" >&6; }
8558 if test "x$GTK_CONFIG:$PKG_CONFIG" != "xno:no"; then
8559 if test "X$SKIP_GTK2" != "XYES"; then
8561 if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
8563 min_gtk_version=2.2.0
8564 { $as_echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
8565 $as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; }
8566 no_gtk=""
8567 if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
8568 && $PKG_CONFIG --exists gtk+-2.0; then
8570 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
8571 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0`
8572 GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
8573 gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8574 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8575 gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8576 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8577 gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8578 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8580 elif test "X$GTK_CONFIG" != "Xno"; then
8582 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
8583 GTK_LIBDIR=
8584 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
8585 gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \
8586 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8587 gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
8588 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8589 gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
8590 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8592 else
8593 no_gtk=yes
8596 if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
8598 ac_save_CFLAGS="$CFLAGS"
8599 ac_save_LIBS="$LIBS"
8600 CFLAGS="$CFLAGS $GTK_CFLAGS"
8601 LIBS="$LIBS $GTK_LIBS"
8603 rm -f conf.gtktest
8604 if test "$cross_compiling" = yes; then
8605 echo $ac_n "cross compiling; assumed OK... $ac_c"
8606 else
8607 cat >conftest.$ac_ext <<_ACEOF
8608 /* confdefs.h. */
8609 _ACEOF
8610 cat confdefs.h >>conftest.$ac_ext
8611 cat >>conftest.$ac_ext <<_ACEOF
8612 /* end confdefs.h. */
8614 #include <gtk/gtk.h>
8615 #include <stdio.h>
8616 #if STDC_HEADERS
8617 # include <stdlib.h>
8618 # include <stddef.h>
8619 #endif
8622 main ()
8624 int major, minor, micro;
8625 char *tmp_version;
8627 system ("touch conf.gtktest");
8629 /* HP/UX 9 (%@#!) writes to sscanf strings */
8630 tmp_version = g_strdup("$min_gtk_version");
8631 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
8632 printf("%s, bad version string\n", "$min_gtk_version");
8633 exit(1);
8636 if ((gtk_major_version > major) ||
8637 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
8638 ((gtk_major_version == major) && (gtk_minor_version == minor) &&
8639 (gtk_micro_version >= micro)))
8641 return 0;
8643 return 1;
8646 _ACEOF
8647 rm -f conftest$ac_exeext
8648 if { (ac_try="$ac_link"
8649 case "(($ac_try" in
8650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8651 *) ac_try_echo=$ac_try;;
8652 esac
8653 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8654 $as_echo "$ac_try_echo") >&5
8655 (eval "$ac_link") 2>&5
8656 ac_status=$?
8657 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8658 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8659 { (case "(($ac_try" in
8660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8661 *) ac_try_echo=$ac_try;;
8662 esac
8663 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8664 $as_echo "$ac_try_echo") >&5
8665 (eval "$ac_try") 2>&5
8666 ac_status=$?
8667 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8668 (exit $ac_status); }; }; then
8670 else
8671 $as_echo "$as_me: program exited with status $ac_status" >&5
8672 $as_echo "$as_me: failed program was:" >&5
8673 sed 's/^/| /' conftest.$ac_ext >&5
8675 ( exit $ac_status )
8676 no_gtk=yes
8678 rm -rf conftest.dSYM
8679 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8683 CFLAGS="$ac_save_CFLAGS"
8684 LIBS="$ac_save_LIBS"
8687 if test "x$no_gtk" = x ; then
8688 if test "x$enable_gtktest" = "xyes"; then
8689 { $as_echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8690 $as_echo "yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
8691 else
8692 { $as_echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8693 $as_echo "found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
8695 GUI_LIB_LOC="$GTK_LIBDIR"
8696 GTK_LIBNAME="$GTK_LIBS"
8697 GUI_INC_LOC="$GTK_CFLAGS"
8698 else
8700 { $as_echo "$as_me:$LINENO: result: no" >&5
8701 $as_echo "no" >&6; }
8702 GTK_CFLAGS=""
8703 GTK_LIBS=""
8708 else
8709 GTK_CFLAGS=""
8710 GTK_LIBS=""
8715 rm -f conf.gtktest
8717 if test "x$GTK_CFLAGS" != "x"; then
8718 SKIP_ATHENA=YES
8719 SKIP_NEXTAW=YES
8720 SKIP_MOTIF=YES
8721 GUITYPE=GTK
8726 if test "x$GUITYPE" != "xGTK"; then
8727 SKIP_GTK2=YES
8729 if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
8731 min_gtk_version=1.1.16
8732 { $as_echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
8733 $as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; }
8734 no_gtk=""
8735 if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
8736 && $PKG_CONFIG --exists gtk+-2.0; then
8738 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
8739 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0`
8740 GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
8741 gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8742 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8743 gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8744 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8745 gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8746 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8748 elif test "X$GTK_CONFIG" != "Xno"; then
8750 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
8751 GTK_LIBDIR=
8752 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
8753 gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \
8754 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8755 gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
8756 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8757 gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
8758 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8760 else
8761 no_gtk=yes
8764 if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
8766 ac_save_CFLAGS="$CFLAGS"
8767 ac_save_LIBS="$LIBS"
8768 CFLAGS="$CFLAGS $GTK_CFLAGS"
8769 LIBS="$LIBS $GTK_LIBS"
8771 rm -f conf.gtktest
8772 if test "$cross_compiling" = yes; then
8773 echo $ac_n "cross compiling; assumed OK... $ac_c"
8774 else
8775 cat >conftest.$ac_ext <<_ACEOF
8776 /* confdefs.h. */
8777 _ACEOF
8778 cat confdefs.h >>conftest.$ac_ext
8779 cat >>conftest.$ac_ext <<_ACEOF
8780 /* end confdefs.h. */
8782 #include <gtk/gtk.h>
8783 #include <stdio.h>
8784 #if STDC_HEADERS
8785 # include <stdlib.h>
8786 # include <stddef.h>
8787 #endif
8790 main ()
8792 int major, minor, micro;
8793 char *tmp_version;
8795 system ("touch conf.gtktest");
8797 /* HP/UX 9 (%@#!) writes to sscanf strings */
8798 tmp_version = g_strdup("$min_gtk_version");
8799 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
8800 printf("%s, bad version string\n", "$min_gtk_version");
8801 exit(1);
8804 if ((gtk_major_version > major) ||
8805 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
8806 ((gtk_major_version == major) && (gtk_minor_version == minor) &&
8807 (gtk_micro_version >= micro)))
8809 return 0;
8811 return 1;
8814 _ACEOF
8815 rm -f conftest$ac_exeext
8816 if { (ac_try="$ac_link"
8817 case "(($ac_try" in
8818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8819 *) ac_try_echo=$ac_try;;
8820 esac
8821 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8822 $as_echo "$ac_try_echo") >&5
8823 (eval "$ac_link") 2>&5
8824 ac_status=$?
8825 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8826 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8827 { (case "(($ac_try" in
8828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8829 *) ac_try_echo=$ac_try;;
8830 esac
8831 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8832 $as_echo "$ac_try_echo") >&5
8833 (eval "$ac_try") 2>&5
8834 ac_status=$?
8835 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8836 (exit $ac_status); }; }; then
8838 else
8839 $as_echo "$as_me: program exited with status $ac_status" >&5
8840 $as_echo "$as_me: failed program was:" >&5
8841 sed 's/^/| /' conftest.$ac_ext >&5
8843 ( exit $ac_status )
8844 no_gtk=yes
8846 rm -rf conftest.dSYM
8847 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8851 CFLAGS="$ac_save_CFLAGS"
8852 LIBS="$ac_save_LIBS"
8855 if test "x$no_gtk" = x ; then
8856 if test "x$enable_gtktest" = "xyes"; then
8857 { $as_echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8858 $as_echo "yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
8859 else
8860 { $as_echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8861 $as_echo "found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
8863 GTK_LIBNAME="$GTK_LIBS"
8864 GUI_INC_LOC="$GTK_CFLAGS"
8865 else
8867 { $as_echo "$as_me:$LINENO: result: no" >&5
8868 $as_echo "no" >&6; }
8869 GTK_CFLAGS=""
8870 GTK_LIBS=""
8875 else
8876 GTK_CFLAGS=""
8877 GTK_LIBS=""
8882 rm -f conf.gtktest
8884 if test "x$GTK_CFLAGS" != "x"; then
8885 SKIP_ATHENA=YES
8886 SKIP_NEXTAW=YES
8887 SKIP_MOTIF=YES
8888 GUITYPE=GTK
8893 if test "x$GUITYPE" = "xGTK"; then
8894 if test "$gtk_major_version" = 1 -a "0$gtk_minor_version" -lt 2 \
8895 -o "$gtk_major_version" = 1 -a "$gtk_minor_version" = 2 -a "0$gtk_micro_version" -lt 3; then
8896 { $as_echo "$as_me:$LINENO: result: this GTK version is old; version 1.2.3 or later is recommended" >&5
8897 $as_echo "this GTK version is old; version 1.2.3 or later is recommended" >&6; }
8898 else
8900 if test "0$gtk_major_version" -ge 2; then
8901 cat >>confdefs.h <<\_ACEOF
8902 #define HAVE_GTK2 1
8903 _ACEOF
8905 if test "$gtk_minor_version" = 1 -a "0$gtk_micro_version" -ge 1 \
8906 || test "0$gtk_minor_version" -ge 2 \
8907 || test "0$gtk_major_version" -gt 2; then
8908 cat >>confdefs.h <<\_ACEOF
8909 #define HAVE_GTK_MULTIHEAD 1
8910 _ACEOF
8914 if test -z "$SKIP_GNOME"; then
8922 # Check whether --with-gnome-includes was given.
8923 if test "${with_gnome_includes+set}" = set; then
8924 withval=$with_gnome_includes; CFLAGS="$CFLAGS -I$withval"
8930 # Check whether --with-gnome-libs was given.
8931 if test "${with_gnome_libs+set}" = set; then
8932 withval=$with_gnome_libs; LDFLAGS="$LDFLAGS -L$withval" gnome_prefix=$withval
8938 # Check whether --with-gnome was given.
8939 if test "${with_gnome+set}" = set; then
8940 withval=$with_gnome; if test x$withval = xyes; then
8941 want_gnome=yes
8942 have_gnome=yes
8943 else
8944 if test "x$withval" = xno; then
8945 want_gnome=no
8946 else
8947 want_gnome=yes
8948 LDFLAGS="$LDFLAGS -L$withval/lib"
8949 CFLAGS="$CFLAGS -I$withval/include"
8950 gnome_prefix=$withval/lib
8953 else
8954 want_gnome=yes
8958 if test "x$want_gnome" = xyes -a "0$gtk_major_version" -ge 2; then
8960 { $as_echo "$as_me:$LINENO: checking for libgnomeui-2.0" >&5
8961 $as_echo_n "checking for libgnomeui-2.0... " >&6; }
8962 if $PKG_CONFIG --exists libgnomeui-2.0; then
8963 { $as_echo "$as_me:$LINENO: result: yes" >&5
8964 $as_echo "yes" >&6; }
8965 GNOME_LIBS=`$PKG_CONFIG --libs-only-l libgnomeui-2.0`
8966 GNOME_LIBDIR=`$PKG_CONFIG --libs-only-L libgnomeui-2.0`
8967 GNOME_INCLUDEDIR=`$PKG_CONFIG --cflags libgnomeui-2.0`
8969 { $as_echo "$as_me:$LINENO: checking for FreeBSD" >&5
8970 $as_echo_n "checking for FreeBSD... " >&6; }
8971 if test "`(uname) 2>/dev/null`" = FreeBSD; then
8972 { $as_echo "$as_me:$LINENO: result: yes" >&5
8973 $as_echo "yes" >&6; }
8974 GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR -D_THREAD_SAFE"
8975 GNOME_LIBS="$GNOME_LIBS -pthread"
8976 else
8977 { $as_echo "$as_me:$LINENO: result: no" >&5
8978 $as_echo "no" >&6; }
8980 have_gnome=yes
8981 else
8982 { $as_echo "$as_me:$LINENO: result: not found" >&5
8983 $as_echo "not found" >&6; }
8984 if test "x" = xfail; then
8985 { { $as_echo "$as_me:$LINENO: error: Could not find libgnomeui-2.0 via pkg-config" >&5
8986 $as_echo "$as_me: error: Could not find libgnomeui-2.0 via pkg-config" >&2;}
8987 { (exit 1); exit 1; }; }
8991 elif test "x$want_gnome" = xyes; then
8993 # Extract the first word of "gnome-config", so it can be a program name with args.
8994 set dummy gnome-config; ac_word=$2
8995 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8996 $as_echo_n "checking for $ac_word... " >&6; }
8997 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
8998 $as_echo_n "(cached) " >&6
8999 else
9000 case $GNOME_CONFIG in
9001 [\\/]* | ?:[\\/]*)
9002 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
9005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9006 for as_dir in $PATH
9008 IFS=$as_save_IFS
9009 test -z "$as_dir" && as_dir=.
9010 for ac_exec_ext in '' $ac_executable_extensions; do
9011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9012 ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9013 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9014 break 2
9016 done
9017 done
9018 IFS=$as_save_IFS
9020 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
9022 esac
9024 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
9025 if test -n "$GNOME_CONFIG"; then
9026 { $as_echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
9027 $as_echo "$GNOME_CONFIG" >&6; }
9028 else
9029 { $as_echo "$as_me:$LINENO: result: no" >&5
9030 $as_echo "no" >&6; }
9034 if test "$GNOME_CONFIG" = "no"; then
9035 no_gnome_config="yes"
9036 else
9037 { $as_echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
9038 $as_echo_n "checking if $GNOME_CONFIG works... " >&6; }
9039 if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
9040 { $as_echo "$as_me:$LINENO: result: yes" >&5
9041 $as_echo "yes" >&6; }
9042 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome gnomeui`"
9043 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
9044 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
9045 have_gnome=yes
9046 else
9047 { $as_echo "$as_me:$LINENO: result: no" >&5
9048 $as_echo "no" >&6; }
9049 no_gnome_config="yes"
9053 if test x$exec_prefix = xNONE; then
9054 if test x$prefix = xNONE; then
9055 gnome_prefix=$ac_default_prefix/lib
9056 else
9057 gnome_prefix=$prefix/lib
9059 else
9060 gnome_prefix=`eval echo \`echo $libdir\``
9063 if test "$no_gnome_config" = "yes"; then
9064 { $as_echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
9065 $as_echo_n "checking for gnomeConf.sh file in $gnome_prefix... " >&6; }
9066 if test -f $gnome_prefix/gnomeConf.sh; then
9067 { $as_echo "$as_me:$LINENO: result: found" >&5
9068 $as_echo "found" >&6; }
9069 echo "loading gnome configuration from" \
9070 "$gnome_prefix/gnomeConf.sh"
9071 . $gnome_prefix/gnomeConf.sh
9072 have_gnome=yes
9073 else
9074 { $as_echo "$as_me:$LINENO: result: not found" >&5
9075 $as_echo "not found" >&6; }
9076 if test x = xfail; then
9077 { { $as_echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
9078 $as_echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
9079 { (exit 1); exit 1; }; }
9086 if test x$have_gnome = xyes ; then
9087 cat >>confdefs.h <<\_ACEOF
9088 #define FEAT_GUI_GNOME 1
9089 _ACEOF
9091 GUI_INC_LOC="$GUI_INC_LOC $GNOME_INCLUDEDIR"
9092 GTK_LIBNAME="$GTK_LIBNAME $GNOME_LIBDIR $GNOME_LIBS"
9102 if test -z "$SKIP_MOTIF"; then
9103 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"
9104 GUI_INC_LOC="`echo $GUI_INC_LOC|sed 's%-I%%g'`"
9106 { $as_echo "$as_me:$LINENO: checking for location of Motif GUI includes" >&5
9107 $as_echo_n "checking for location of Motif GUI includes... " >&6; }
9108 gui_includes="`echo $x_includes|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/include/g` $GUI_INC_LOC"
9109 GUI_INC_LOC=
9110 for try in $gui_includes; do
9111 if test -f "$try/Xm/Xm.h"; then
9112 GUI_INC_LOC=$try
9114 done
9115 if test -n "$GUI_INC_LOC"; then
9116 if test "$GUI_INC_LOC" = /usr/include; then
9117 GUI_INC_LOC=
9118 { $as_echo "$as_me:$LINENO: result: in default path" >&5
9119 $as_echo "in default path" >&6; }
9120 else
9121 { $as_echo "$as_me:$LINENO: result: $GUI_INC_LOC" >&5
9122 $as_echo "$GUI_INC_LOC" >&6; }
9124 else
9125 { $as_echo "$as_me:$LINENO: result: <not found>" >&5
9126 $as_echo "<not found>" >&6; }
9127 SKIP_MOTIF=YES
9132 if test -z "$SKIP_MOTIF"; then
9133 { $as_echo "$as_me:$LINENO: checking --with-motif-lib argument" >&5
9134 $as_echo_n "checking --with-motif-lib argument... " >&6; }
9136 # Check whether --with-motif-lib was given.
9137 if test "${with_motif_lib+set}" = set; then
9138 withval=$with_motif_lib; MOTIF_LIBNAME="${withval}"
9142 if test -n "$MOTIF_LIBNAME"; then
9143 { $as_echo "$as_me:$LINENO: result: $MOTIF_LIBNAME" >&5
9144 $as_echo "$MOTIF_LIBNAME" >&6; }
9145 GUI_LIB_LOC=
9146 else
9147 { $as_echo "$as_me:$LINENO: result: no" >&5
9148 $as_echo "no" >&6; }
9150 GUI_LIB_LOC="`echo $GUI_LIB_LOC|sed 's%-L%%g'`"
9152 { $as_echo "$as_me:$LINENO: checking for location of Motif GUI libs" >&5
9153 $as_echo_n "checking for location of Motif GUI libs... " >&6; }
9154 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"
9155 GUI_LIB_LOC=
9156 for try in $gui_libs; do
9157 for libtry in "$try"/libXm.a "$try"/libXm.so* "$try"/libXm.sl "$try"/libXm.dylib; do
9158 if test -f "$libtry"; then
9159 GUI_LIB_LOC=$try
9161 done
9162 done
9163 if test -n "$GUI_LIB_LOC"; then
9164 if test "$GUI_LIB_LOC" = /usr/lib; then
9165 GUI_LIB_LOC=
9166 { $as_echo "$as_me:$LINENO: result: in default path" >&5
9167 $as_echo "in default path" >&6; }
9168 else
9169 if test -n "$GUI_LIB_LOC"; then
9170 { $as_echo "$as_me:$LINENO: result: $GUI_LIB_LOC" >&5
9171 $as_echo "$GUI_LIB_LOC" >&6; }
9172 if test "`(uname) 2>/dev/null`" = SunOS &&
9173 uname -r | grep '^5' >/dev/null; then
9174 GUI_LIB_LOC="$GUI_LIB_LOC -R $GUI_LIB_LOC"
9178 MOTIF_LIBNAME=-lXm
9179 else
9180 { $as_echo "$as_me:$LINENO: result: <not found>" >&5
9181 $as_echo "<not found>" >&6; }
9182 SKIP_MOTIF=YES
9187 if test -z "$SKIP_MOTIF"; then
9188 SKIP_ATHENA=YES
9189 SKIP_NEXTAW=YES
9190 GUITYPE=MOTIF
9195 GUI_X_LIBS=
9197 if test -z "$SKIP_ATHENA"; then
9198 { $as_echo "$as_me:$LINENO: checking if Athena header files can be found" >&5
9199 $as_echo_n "checking if Athena header files can be found... " >&6; }
9200 cflags_save=$CFLAGS
9201 CFLAGS="$CFLAGS $X_CFLAGS"
9202 cat >conftest.$ac_ext <<_ACEOF
9203 /* confdefs.h. */
9204 _ACEOF
9205 cat confdefs.h >>conftest.$ac_ext
9206 cat >>conftest.$ac_ext <<_ACEOF
9207 /* end confdefs.h. */
9209 #include <X11/Intrinsic.h>
9210 #include <X11/Xaw/Paned.h>
9212 main ()
9216 return 0;
9218 _ACEOF
9219 rm -f conftest.$ac_objext
9220 if { (ac_try="$ac_compile"
9221 case "(($ac_try" in
9222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9223 *) ac_try_echo=$ac_try;;
9224 esac
9225 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9226 $as_echo "$ac_try_echo") >&5
9227 (eval "$ac_compile") 2>conftest.er1
9228 ac_status=$?
9229 grep -v '^ *+' conftest.er1 >conftest.err
9230 rm -f conftest.er1
9231 cat conftest.err >&5
9232 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9233 (exit $ac_status); } && {
9234 test -z "$ac_c_werror_flag" ||
9235 test ! -s conftest.err
9236 } && test -s conftest.$ac_objext; then
9237 { $as_echo "$as_me:$LINENO: result: yes" >&5
9238 $as_echo "yes" >&6; }
9239 else
9240 $as_echo "$as_me: failed program was:" >&5
9241 sed 's/^/| /' conftest.$ac_ext >&5
9243 { $as_echo "$as_me:$LINENO: result: no" >&5
9244 $as_echo "no" >&6; }; SKIP_ATHENA=YES
9247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9248 CFLAGS=$cflags_save
9251 if test -z "$SKIP_ATHENA"; then
9252 GUITYPE=ATHENA
9255 if test -z "$SKIP_NEXTAW"; then
9256 { $as_echo "$as_me:$LINENO: checking if neXtaw header files can be found" >&5
9257 $as_echo_n "checking if neXtaw header files can be found... " >&6; }
9258 cflags_save=$CFLAGS
9259 CFLAGS="$CFLAGS $X_CFLAGS"
9260 cat >conftest.$ac_ext <<_ACEOF
9261 /* confdefs.h. */
9262 _ACEOF
9263 cat confdefs.h >>conftest.$ac_ext
9264 cat >>conftest.$ac_ext <<_ACEOF
9265 /* end confdefs.h. */
9267 #include <X11/Intrinsic.h>
9268 #include <X11/neXtaw/Paned.h>
9270 main ()
9274 return 0;
9276 _ACEOF
9277 rm -f conftest.$ac_objext
9278 if { (ac_try="$ac_compile"
9279 case "(($ac_try" in
9280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9281 *) ac_try_echo=$ac_try;;
9282 esac
9283 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9284 $as_echo "$ac_try_echo") >&5
9285 (eval "$ac_compile") 2>conftest.er1
9286 ac_status=$?
9287 grep -v '^ *+' conftest.er1 >conftest.err
9288 rm -f conftest.er1
9289 cat conftest.err >&5
9290 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9291 (exit $ac_status); } && {
9292 test -z "$ac_c_werror_flag" ||
9293 test ! -s conftest.err
9294 } && test -s conftest.$ac_objext; then
9295 { $as_echo "$as_me:$LINENO: result: yes" >&5
9296 $as_echo "yes" >&6; }
9297 else
9298 $as_echo "$as_me: failed program was:" >&5
9299 sed 's/^/| /' conftest.$ac_ext >&5
9301 { $as_echo "$as_me:$LINENO: result: no" >&5
9302 $as_echo "no" >&6; }; SKIP_NEXTAW=YES
9305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9306 CFLAGS=$cflags_save
9309 if test -z "$SKIP_NEXTAW"; then
9310 GUITYPE=NEXTAW
9313 if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
9314 if test -n "$GUI_INC_LOC"; then
9315 GUI_INC_LOC=-I"`echo $GUI_INC_LOC|sed 's%-I%%'`"
9317 if test -n "$GUI_LIB_LOC"; then
9318 GUI_LIB_LOC=-L"`echo $GUI_LIB_LOC|sed 's%-L%%'`"
9321 ldflags_save=$LDFLAGS
9322 LDFLAGS="$X_LIBS $LDFLAGS"
9323 { $as_echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
9324 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
9325 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
9326 $as_echo_n "(cached) " >&6
9327 else
9328 ac_check_lib_save_LIBS=$LIBS
9329 LIBS="-lXext -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9330 cat >conftest.$ac_ext <<_ACEOF
9331 /* confdefs.h. */
9332 _ACEOF
9333 cat confdefs.h >>conftest.$ac_ext
9334 cat >>conftest.$ac_ext <<_ACEOF
9335 /* end confdefs.h. */
9337 /* Override any GCC internal prototype to avoid an error.
9338 Use char because int might match the return type of a GCC
9339 builtin and then its argument prototype would still apply. */
9340 #ifdef __cplusplus
9341 extern "C"
9342 #endif
9343 char XShapeQueryExtension ();
9345 main ()
9347 return XShapeQueryExtension ();
9349 return 0;
9351 _ACEOF
9352 rm -f conftest.$ac_objext conftest$ac_exeext
9353 if { (ac_try="$ac_link"
9354 case "(($ac_try" in
9355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9356 *) ac_try_echo=$ac_try;;
9357 esac
9358 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9359 $as_echo "$ac_try_echo") >&5
9360 (eval "$ac_link") 2>conftest.er1
9361 ac_status=$?
9362 grep -v '^ *+' conftest.er1 >conftest.err
9363 rm -f conftest.er1
9364 cat conftest.err >&5
9365 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9366 (exit $ac_status); } && {
9367 test -z "$ac_c_werror_flag" ||
9368 test ! -s conftest.err
9369 } && test -s conftest$ac_exeext && {
9370 test "$cross_compiling" = yes ||
9371 $as_test_x conftest$ac_exeext
9372 }; then
9373 ac_cv_lib_Xext_XShapeQueryExtension=yes
9374 else
9375 $as_echo "$as_me: failed program was:" >&5
9376 sed 's/^/| /' conftest.$ac_ext >&5
9378 ac_cv_lib_Xext_XShapeQueryExtension=no
9381 rm -rf conftest.dSYM
9382 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9383 conftest$ac_exeext conftest.$ac_ext
9384 LIBS=$ac_check_lib_save_LIBS
9386 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
9387 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
9388 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then
9389 GUI_X_LIBS="-lXext"
9392 { $as_echo "$as_me:$LINENO: checking for wslen in -lw" >&5
9393 $as_echo_n "checking for wslen in -lw... " >&6; }
9394 if test "${ac_cv_lib_w_wslen+set}" = set; then
9395 $as_echo_n "(cached) " >&6
9396 else
9397 ac_check_lib_save_LIBS=$LIBS
9398 LIBS="-lw $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9399 cat >conftest.$ac_ext <<_ACEOF
9400 /* confdefs.h. */
9401 _ACEOF
9402 cat confdefs.h >>conftest.$ac_ext
9403 cat >>conftest.$ac_ext <<_ACEOF
9404 /* end confdefs.h. */
9406 /* Override any GCC internal prototype to avoid an error.
9407 Use char because int might match the return type of a GCC
9408 builtin and then its argument prototype would still apply. */
9409 #ifdef __cplusplus
9410 extern "C"
9411 #endif
9412 char wslen ();
9414 main ()
9416 return wslen ();
9418 return 0;
9420 _ACEOF
9421 rm -f conftest.$ac_objext conftest$ac_exeext
9422 if { (ac_try="$ac_link"
9423 case "(($ac_try" in
9424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9425 *) ac_try_echo=$ac_try;;
9426 esac
9427 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9428 $as_echo "$ac_try_echo") >&5
9429 (eval "$ac_link") 2>conftest.er1
9430 ac_status=$?
9431 grep -v '^ *+' conftest.er1 >conftest.err
9432 rm -f conftest.er1
9433 cat conftest.err >&5
9434 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9435 (exit $ac_status); } && {
9436 test -z "$ac_c_werror_flag" ||
9437 test ! -s conftest.err
9438 } && test -s conftest$ac_exeext && {
9439 test "$cross_compiling" = yes ||
9440 $as_test_x conftest$ac_exeext
9441 }; then
9442 ac_cv_lib_w_wslen=yes
9443 else
9444 $as_echo "$as_me: failed program was:" >&5
9445 sed 's/^/| /' conftest.$ac_ext >&5
9447 ac_cv_lib_w_wslen=no
9450 rm -rf conftest.dSYM
9451 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9452 conftest$ac_exeext conftest.$ac_ext
9453 LIBS=$ac_check_lib_save_LIBS
9455 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_w_wslen" >&5
9456 $as_echo "$ac_cv_lib_w_wslen" >&6; }
9457 if test "x$ac_cv_lib_w_wslen" = x""yes; then
9458 X_EXTRA_LIBS="$X_EXTRA_LIBS -lw"
9461 { $as_echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5
9462 $as_echo_n "checking for dlsym in -ldl... " >&6; }
9463 if test "${ac_cv_lib_dl_dlsym+set}" = set; then
9464 $as_echo_n "(cached) " >&6
9465 else
9466 ac_check_lib_save_LIBS=$LIBS
9467 LIBS="-ldl $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9468 cat >conftest.$ac_ext <<_ACEOF
9469 /* confdefs.h. */
9470 _ACEOF
9471 cat confdefs.h >>conftest.$ac_ext
9472 cat >>conftest.$ac_ext <<_ACEOF
9473 /* end confdefs.h. */
9475 /* Override any GCC internal prototype to avoid an error.
9476 Use char because int might match the return type of a GCC
9477 builtin and then its argument prototype would still apply. */
9478 #ifdef __cplusplus
9479 extern "C"
9480 #endif
9481 char dlsym ();
9483 main ()
9485 return dlsym ();
9487 return 0;
9489 _ACEOF
9490 rm -f conftest.$ac_objext conftest$ac_exeext
9491 if { (ac_try="$ac_link"
9492 case "(($ac_try" in
9493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9494 *) ac_try_echo=$ac_try;;
9495 esac
9496 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9497 $as_echo "$ac_try_echo") >&5
9498 (eval "$ac_link") 2>conftest.er1
9499 ac_status=$?
9500 grep -v '^ *+' conftest.er1 >conftest.err
9501 rm -f conftest.er1
9502 cat conftest.err >&5
9503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9504 (exit $ac_status); } && {
9505 test -z "$ac_c_werror_flag" ||
9506 test ! -s conftest.err
9507 } && test -s conftest$ac_exeext && {
9508 test "$cross_compiling" = yes ||
9509 $as_test_x conftest$ac_exeext
9510 }; then
9511 ac_cv_lib_dl_dlsym=yes
9512 else
9513 $as_echo "$as_me: failed program was:" >&5
9514 sed 's/^/| /' conftest.$ac_ext >&5
9516 ac_cv_lib_dl_dlsym=no
9519 rm -rf conftest.dSYM
9520 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9521 conftest$ac_exeext conftest.$ac_ext
9522 LIBS=$ac_check_lib_save_LIBS
9524 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5
9525 $as_echo "$ac_cv_lib_dl_dlsym" >&6; }
9526 if test "x$ac_cv_lib_dl_dlsym" = x""yes; then
9527 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldl"
9530 { $as_echo "$as_me:$LINENO: checking for XmuCreateStippledPixmap in -lXmu" >&5
9531 $as_echo_n "checking for XmuCreateStippledPixmap in -lXmu... " >&6; }
9532 if test "${ac_cv_lib_Xmu_XmuCreateStippledPixmap+set}" = set; then
9533 $as_echo_n "(cached) " >&6
9534 else
9535 ac_check_lib_save_LIBS=$LIBS
9536 LIBS="-lXmu $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9537 cat >conftest.$ac_ext <<_ACEOF
9538 /* confdefs.h. */
9539 _ACEOF
9540 cat confdefs.h >>conftest.$ac_ext
9541 cat >>conftest.$ac_ext <<_ACEOF
9542 /* end confdefs.h. */
9544 /* Override any GCC internal prototype to avoid an error.
9545 Use char because int might match the return type of a GCC
9546 builtin and then its argument prototype would still apply. */
9547 #ifdef __cplusplus
9548 extern "C"
9549 #endif
9550 char XmuCreateStippledPixmap ();
9552 main ()
9554 return XmuCreateStippledPixmap ();
9556 return 0;
9558 _ACEOF
9559 rm -f conftest.$ac_objext conftest$ac_exeext
9560 if { (ac_try="$ac_link"
9561 case "(($ac_try" in
9562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9563 *) ac_try_echo=$ac_try;;
9564 esac
9565 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9566 $as_echo "$ac_try_echo") >&5
9567 (eval "$ac_link") 2>conftest.er1
9568 ac_status=$?
9569 grep -v '^ *+' conftest.er1 >conftest.err
9570 rm -f conftest.er1
9571 cat conftest.err >&5
9572 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9573 (exit $ac_status); } && {
9574 test -z "$ac_c_werror_flag" ||
9575 test ! -s conftest.err
9576 } && test -s conftest$ac_exeext && {
9577 test "$cross_compiling" = yes ||
9578 $as_test_x conftest$ac_exeext
9579 }; then
9580 ac_cv_lib_Xmu_XmuCreateStippledPixmap=yes
9581 else
9582 $as_echo "$as_me: failed program was:" >&5
9583 sed 's/^/| /' conftest.$ac_ext >&5
9585 ac_cv_lib_Xmu_XmuCreateStippledPixmap=no
9588 rm -rf conftest.dSYM
9589 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9590 conftest$ac_exeext conftest.$ac_ext
9591 LIBS=$ac_check_lib_save_LIBS
9593 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&5
9594 $as_echo "$ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&6; }
9595 if test "x$ac_cv_lib_Xmu_XmuCreateStippledPixmap" = x""yes; then
9596 GUI_X_LIBS="-lXmu $GUI_X_LIBS"
9599 if test -z "$SKIP_MOTIF"; then
9600 { $as_echo "$as_me:$LINENO: checking for XpEndJob in -lXp" >&5
9601 $as_echo_n "checking for XpEndJob in -lXp... " >&6; }
9602 if test "${ac_cv_lib_Xp_XpEndJob+set}" = set; then
9603 $as_echo_n "(cached) " >&6
9604 else
9605 ac_check_lib_save_LIBS=$LIBS
9606 LIBS="-lXp $GUI_X_LIBS -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9607 cat >conftest.$ac_ext <<_ACEOF
9608 /* confdefs.h. */
9609 _ACEOF
9610 cat confdefs.h >>conftest.$ac_ext
9611 cat >>conftest.$ac_ext <<_ACEOF
9612 /* end confdefs.h. */
9614 /* Override any GCC internal prototype to avoid an error.
9615 Use char because int might match the return type of a GCC
9616 builtin and then its argument prototype would still apply. */
9617 #ifdef __cplusplus
9618 extern "C"
9619 #endif
9620 char XpEndJob ();
9622 main ()
9624 return XpEndJob ();
9626 return 0;
9628 _ACEOF
9629 rm -f conftest.$ac_objext conftest$ac_exeext
9630 if { (ac_try="$ac_link"
9631 case "(($ac_try" in
9632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9633 *) ac_try_echo=$ac_try;;
9634 esac
9635 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9636 $as_echo "$ac_try_echo") >&5
9637 (eval "$ac_link") 2>conftest.er1
9638 ac_status=$?
9639 grep -v '^ *+' conftest.er1 >conftest.err
9640 rm -f conftest.er1
9641 cat conftest.err >&5
9642 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9643 (exit $ac_status); } && {
9644 test -z "$ac_c_werror_flag" ||
9645 test ! -s conftest.err
9646 } && test -s conftest$ac_exeext && {
9647 test "$cross_compiling" = yes ||
9648 $as_test_x conftest$ac_exeext
9649 }; then
9650 ac_cv_lib_Xp_XpEndJob=yes
9651 else
9652 $as_echo "$as_me: failed program was:" >&5
9653 sed 's/^/| /' conftest.$ac_ext >&5
9655 ac_cv_lib_Xp_XpEndJob=no
9658 rm -rf conftest.dSYM
9659 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9660 conftest$ac_exeext conftest.$ac_ext
9661 LIBS=$ac_check_lib_save_LIBS
9663 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpEndJob" >&5
9664 $as_echo "$ac_cv_lib_Xp_XpEndJob" >&6; }
9665 if test "x$ac_cv_lib_Xp_XpEndJob" = x""yes; then
9666 GUI_X_LIBS="-lXp $GUI_X_LIBS"
9670 LDFLAGS=$ldflags_save
9672 { $as_echo "$as_me:$LINENO: checking for extra X11 defines" >&5
9673 $as_echo_n "checking for extra X11 defines... " >&6; }
9674 NARROW_PROTO=
9675 rm -fr conftestdir
9676 if mkdir conftestdir; then
9677 cd conftestdir
9678 cat > Imakefile <<'EOF'
9679 acfindx:
9680 @echo 'NARROW_PROTO="${PROTO_DEFINES}"'
9682 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
9683 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9685 cd ..
9686 rm -fr conftestdir
9688 if test -z "$NARROW_PROTO"; then
9689 { $as_echo "$as_me:$LINENO: result: no" >&5
9690 $as_echo "no" >&6; }
9691 else
9692 { $as_echo "$as_me:$LINENO: result: $NARROW_PROTO" >&5
9693 $as_echo "$NARROW_PROTO" >&6; }
9698 if test "$enable_xsmp" = "yes"; then
9699 cppflags_save=$CPPFLAGS
9700 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9702 for ac_header in X11/SM/SMlib.h
9704 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9705 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9706 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9707 $as_echo_n "checking for $ac_header... " >&6; }
9708 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9709 $as_echo_n "(cached) " >&6
9711 ac_res=`eval 'as_val=${'$as_ac_Header'}
9712 $as_echo "$as_val"'`
9713 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9714 $as_echo "$ac_res" >&6; }
9715 else
9716 # Is the header compilable?
9717 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9718 $as_echo_n "checking $ac_header usability... " >&6; }
9719 cat >conftest.$ac_ext <<_ACEOF
9720 /* confdefs.h. */
9721 _ACEOF
9722 cat confdefs.h >>conftest.$ac_ext
9723 cat >>conftest.$ac_ext <<_ACEOF
9724 /* end confdefs.h. */
9725 $ac_includes_default
9726 #include <$ac_header>
9727 _ACEOF
9728 rm -f conftest.$ac_objext
9729 if { (ac_try="$ac_compile"
9730 case "(($ac_try" in
9731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9732 *) ac_try_echo=$ac_try;;
9733 esac
9734 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9735 $as_echo "$ac_try_echo") >&5
9736 (eval "$ac_compile") 2>conftest.er1
9737 ac_status=$?
9738 grep -v '^ *+' conftest.er1 >conftest.err
9739 rm -f conftest.er1
9740 cat conftest.err >&5
9741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9742 (exit $ac_status); } && {
9743 test -z "$ac_c_werror_flag" ||
9744 test ! -s conftest.err
9745 } && test -s conftest.$ac_objext; then
9746 ac_header_compiler=yes
9747 else
9748 $as_echo "$as_me: failed program was:" >&5
9749 sed 's/^/| /' conftest.$ac_ext >&5
9751 ac_header_compiler=no
9754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9755 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9756 $as_echo "$ac_header_compiler" >&6; }
9758 # Is the header present?
9759 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9760 $as_echo_n "checking $ac_header presence... " >&6; }
9761 cat >conftest.$ac_ext <<_ACEOF
9762 /* confdefs.h. */
9763 _ACEOF
9764 cat confdefs.h >>conftest.$ac_ext
9765 cat >>conftest.$ac_ext <<_ACEOF
9766 /* end confdefs.h. */
9767 #include <$ac_header>
9768 _ACEOF
9769 if { (ac_try="$ac_cpp conftest.$ac_ext"
9770 case "(($ac_try" in
9771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9772 *) ac_try_echo=$ac_try;;
9773 esac
9774 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9775 $as_echo "$ac_try_echo") >&5
9776 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9777 ac_status=$?
9778 grep -v '^ *+' conftest.er1 >conftest.err
9779 rm -f conftest.er1
9780 cat conftest.err >&5
9781 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9782 (exit $ac_status); } >/dev/null && {
9783 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9784 test ! -s conftest.err
9785 }; then
9786 ac_header_preproc=yes
9787 else
9788 $as_echo "$as_me: failed program was:" >&5
9789 sed 's/^/| /' conftest.$ac_ext >&5
9791 ac_header_preproc=no
9794 rm -f conftest.err conftest.$ac_ext
9795 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9796 $as_echo "$ac_header_preproc" >&6; }
9798 # So? What about this header?
9799 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9800 yes:no: )
9801 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9802 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9803 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9804 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9805 ac_header_preproc=yes
9807 no:yes:* )
9808 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9809 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9810 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9811 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9812 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9813 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9814 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9815 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9816 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9817 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9818 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9819 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9822 esac
9823 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9824 $as_echo_n "checking for $ac_header... " >&6; }
9825 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9826 $as_echo_n "(cached) " >&6
9827 else
9828 eval "$as_ac_Header=\$ac_header_preproc"
9830 ac_res=`eval 'as_val=${'$as_ac_Header'}
9831 $as_echo "$as_val"'`
9832 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9833 $as_echo "$ac_res" >&6; }
9836 as_val=`eval 'as_val=${'$as_ac_Header'}
9837 $as_echo "$as_val"'`
9838 if test "x$as_val" = x""yes; then
9839 cat >>confdefs.h <<_ACEOF
9840 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9841 _ACEOF
9845 done
9847 CPPFLAGS=$cppflags_save
9851 if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF" -o -z "$SKIP_GTK"; then
9852 cppflags_save=$CPPFLAGS
9853 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9856 for ac_header in X11/xpm.h X11/Sunkeysym.h
9858 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9859 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9860 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9861 $as_echo_n "checking for $ac_header... " >&6; }
9862 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9863 $as_echo_n "(cached) " >&6
9865 ac_res=`eval 'as_val=${'$as_ac_Header'}
9866 $as_echo "$as_val"'`
9867 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9868 $as_echo "$ac_res" >&6; }
9869 else
9870 # Is the header compilable?
9871 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9872 $as_echo_n "checking $ac_header usability... " >&6; }
9873 cat >conftest.$ac_ext <<_ACEOF
9874 /* confdefs.h. */
9875 _ACEOF
9876 cat confdefs.h >>conftest.$ac_ext
9877 cat >>conftest.$ac_ext <<_ACEOF
9878 /* end confdefs.h. */
9879 $ac_includes_default
9880 #include <$ac_header>
9881 _ACEOF
9882 rm -f conftest.$ac_objext
9883 if { (ac_try="$ac_compile"
9884 case "(($ac_try" in
9885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9886 *) ac_try_echo=$ac_try;;
9887 esac
9888 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9889 $as_echo "$ac_try_echo") >&5
9890 (eval "$ac_compile") 2>conftest.er1
9891 ac_status=$?
9892 grep -v '^ *+' conftest.er1 >conftest.err
9893 rm -f conftest.er1
9894 cat conftest.err >&5
9895 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9896 (exit $ac_status); } && {
9897 test -z "$ac_c_werror_flag" ||
9898 test ! -s conftest.err
9899 } && test -s conftest.$ac_objext; then
9900 ac_header_compiler=yes
9901 else
9902 $as_echo "$as_me: failed program was:" >&5
9903 sed 's/^/| /' conftest.$ac_ext >&5
9905 ac_header_compiler=no
9908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9909 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9910 $as_echo "$ac_header_compiler" >&6; }
9912 # Is the header present?
9913 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9914 $as_echo_n "checking $ac_header presence... " >&6; }
9915 cat >conftest.$ac_ext <<_ACEOF
9916 /* confdefs.h. */
9917 _ACEOF
9918 cat confdefs.h >>conftest.$ac_ext
9919 cat >>conftest.$ac_ext <<_ACEOF
9920 /* end confdefs.h. */
9921 #include <$ac_header>
9922 _ACEOF
9923 if { (ac_try="$ac_cpp conftest.$ac_ext"
9924 case "(($ac_try" in
9925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9926 *) ac_try_echo=$ac_try;;
9927 esac
9928 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9929 $as_echo "$ac_try_echo") >&5
9930 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9931 ac_status=$?
9932 grep -v '^ *+' conftest.er1 >conftest.err
9933 rm -f conftest.er1
9934 cat conftest.err >&5
9935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9936 (exit $ac_status); } >/dev/null && {
9937 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9938 test ! -s conftest.err
9939 }; then
9940 ac_header_preproc=yes
9941 else
9942 $as_echo "$as_me: failed program was:" >&5
9943 sed 's/^/| /' conftest.$ac_ext >&5
9945 ac_header_preproc=no
9948 rm -f conftest.err conftest.$ac_ext
9949 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9950 $as_echo "$ac_header_preproc" >&6; }
9952 # So? What about this header?
9953 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9954 yes:no: )
9955 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9956 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9957 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9958 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9959 ac_header_preproc=yes
9961 no:yes:* )
9962 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9963 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9964 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9965 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9966 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9967 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9968 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9969 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9970 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9971 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9972 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9973 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9976 esac
9977 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9978 $as_echo_n "checking for $ac_header... " >&6; }
9979 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9980 $as_echo_n "(cached) " >&6
9981 else
9982 eval "$as_ac_Header=\$ac_header_preproc"
9984 ac_res=`eval 'as_val=${'$as_ac_Header'}
9985 $as_echo "$as_val"'`
9986 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9987 $as_echo "$ac_res" >&6; }
9990 as_val=`eval 'as_val=${'$as_ac_Header'}
9991 $as_echo "$as_val"'`
9992 if test "x$as_val" = x""yes; then
9993 cat >>confdefs.h <<_ACEOF
9994 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9995 _ACEOF
9999 done
10002 if test ! "$enable_xim" = "no"; then
10003 { $as_echo "$as_me:$LINENO: checking for XIMText in X11/Xlib.h" >&5
10004 $as_echo_n "checking for XIMText in X11/Xlib.h... " >&6; }
10005 cat >conftest.$ac_ext <<_ACEOF
10006 /* confdefs.h. */
10007 _ACEOF
10008 cat confdefs.h >>conftest.$ac_ext
10009 cat >>conftest.$ac_ext <<_ACEOF
10010 /* end confdefs.h. */
10011 #include <X11/Xlib.h>
10012 _ACEOF
10013 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10014 $EGREP "XIMText" >/dev/null 2>&1; then
10015 { $as_echo "$as_me:$LINENO: result: yes" >&5
10016 $as_echo "yes" >&6; }
10017 else
10018 { $as_echo "$as_me:$LINENO: result: no; xim has been disabled" >&5
10019 $as_echo "no; xim has been disabled" >&6; }; enable_xim = "no"
10021 rm -f conftest*
10024 CPPFLAGS=$cppflags_save
10026 if test "$enable_xim" = "auto" -a "$enable_hangulinput" != "yes" \
10027 -a "x$GUITYPE" != "xNONE" ; then
10028 { $as_echo "$as_me:$LINENO: result: X GUI selected; xim has been enabled" >&5
10029 $as_echo "X GUI selected; xim has been enabled" >&6; }
10030 enable_xim="yes"
10034 if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
10035 cppflags_save=$CPPFLAGS
10036 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10037 { $as_echo "$as_me:$LINENO: checking for X11/Xmu/Editres.h" >&5
10038 $as_echo_n "checking for X11/Xmu/Editres.h... " >&6; }
10039 cat >conftest.$ac_ext <<_ACEOF
10040 /* confdefs.h. */
10041 _ACEOF
10042 cat confdefs.h >>conftest.$ac_ext
10043 cat >>conftest.$ac_ext <<_ACEOF
10044 /* end confdefs.h. */
10046 #include <X11/Intrinsic.h>
10047 #include <X11/Xmu/Editres.h>
10049 main ()
10051 int i; i = 0;
10053 return 0;
10055 _ACEOF
10056 rm -f conftest.$ac_objext
10057 if { (ac_try="$ac_compile"
10058 case "(($ac_try" in
10059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10060 *) ac_try_echo=$ac_try;;
10061 esac
10062 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10063 $as_echo "$ac_try_echo") >&5
10064 (eval "$ac_compile") 2>conftest.er1
10065 ac_status=$?
10066 grep -v '^ *+' conftest.er1 >conftest.err
10067 rm -f conftest.er1
10068 cat conftest.err >&5
10069 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10070 (exit $ac_status); } && {
10071 test -z "$ac_c_werror_flag" ||
10072 test ! -s conftest.err
10073 } && test -s conftest.$ac_objext; then
10074 { $as_echo "$as_me:$LINENO: result: yes" >&5
10075 $as_echo "yes" >&6; }
10076 cat >>confdefs.h <<\_ACEOF
10077 #define HAVE_X11_XMU_EDITRES_H 1
10078 _ACEOF
10080 else
10081 $as_echo "$as_me: failed program was:" >&5
10082 sed 's/^/| /' conftest.$ac_ext >&5
10084 { $as_echo "$as_me:$LINENO: result: no" >&5
10085 $as_echo "no" >&6; }
10088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10089 CPPFLAGS=$cppflags_save
10092 if test -z "$SKIP_MOTIF"; then
10093 cppflags_save=$CPPFLAGS
10094 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10102 for ac_header in Xm/Xm.h Xm/XpmP.h Xm/JoinSideT.h Xm/TraitP.h Xm/Manager.h \
10103 Xm/UnhighlightT.h Xm/Notebook.h
10105 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10106 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10107 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10108 $as_echo_n "checking for $ac_header... " >&6; }
10109 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10110 $as_echo_n "(cached) " >&6
10112 ac_res=`eval 'as_val=${'$as_ac_Header'}
10113 $as_echo "$as_val"'`
10114 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10115 $as_echo "$ac_res" >&6; }
10116 else
10117 # Is the header compilable?
10118 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10119 $as_echo_n "checking $ac_header usability... " >&6; }
10120 cat >conftest.$ac_ext <<_ACEOF
10121 /* confdefs.h. */
10122 _ACEOF
10123 cat confdefs.h >>conftest.$ac_ext
10124 cat >>conftest.$ac_ext <<_ACEOF
10125 /* end confdefs.h. */
10126 $ac_includes_default
10127 #include <$ac_header>
10128 _ACEOF
10129 rm -f conftest.$ac_objext
10130 if { (ac_try="$ac_compile"
10131 case "(($ac_try" in
10132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10133 *) ac_try_echo=$ac_try;;
10134 esac
10135 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10136 $as_echo "$ac_try_echo") >&5
10137 (eval "$ac_compile") 2>conftest.er1
10138 ac_status=$?
10139 grep -v '^ *+' conftest.er1 >conftest.err
10140 rm -f conftest.er1
10141 cat conftest.err >&5
10142 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10143 (exit $ac_status); } && {
10144 test -z "$ac_c_werror_flag" ||
10145 test ! -s conftest.err
10146 } && test -s conftest.$ac_objext; then
10147 ac_header_compiler=yes
10148 else
10149 $as_echo "$as_me: failed program was:" >&5
10150 sed 's/^/| /' conftest.$ac_ext >&5
10152 ac_header_compiler=no
10155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10156 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10157 $as_echo "$ac_header_compiler" >&6; }
10159 # Is the header present?
10160 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10161 $as_echo_n "checking $ac_header presence... " >&6; }
10162 cat >conftest.$ac_ext <<_ACEOF
10163 /* confdefs.h. */
10164 _ACEOF
10165 cat confdefs.h >>conftest.$ac_ext
10166 cat >>conftest.$ac_ext <<_ACEOF
10167 /* end confdefs.h. */
10168 #include <$ac_header>
10169 _ACEOF
10170 if { (ac_try="$ac_cpp conftest.$ac_ext"
10171 case "(($ac_try" in
10172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10173 *) ac_try_echo=$ac_try;;
10174 esac
10175 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10176 $as_echo "$ac_try_echo") >&5
10177 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10178 ac_status=$?
10179 grep -v '^ *+' conftest.er1 >conftest.err
10180 rm -f conftest.er1
10181 cat conftest.err >&5
10182 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10183 (exit $ac_status); } >/dev/null && {
10184 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10185 test ! -s conftest.err
10186 }; then
10187 ac_header_preproc=yes
10188 else
10189 $as_echo "$as_me: failed program was:" >&5
10190 sed 's/^/| /' conftest.$ac_ext >&5
10192 ac_header_preproc=no
10195 rm -f conftest.err conftest.$ac_ext
10196 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10197 $as_echo "$ac_header_preproc" >&6; }
10199 # So? What about this header?
10200 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10201 yes:no: )
10202 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10203 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10204 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10205 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10206 ac_header_preproc=yes
10208 no:yes:* )
10209 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10210 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10211 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10212 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10213 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10214 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10215 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10216 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10217 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10218 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10219 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10220 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10223 esac
10224 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10225 $as_echo_n "checking for $ac_header... " >&6; }
10226 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10227 $as_echo_n "(cached) " >&6
10228 else
10229 eval "$as_ac_Header=\$ac_header_preproc"
10231 ac_res=`eval 'as_val=${'$as_ac_Header'}
10232 $as_echo "$as_val"'`
10233 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10234 $as_echo "$ac_res" >&6; }
10237 as_val=`eval 'as_val=${'$as_ac_Header'}
10238 $as_echo "$as_val"'`
10239 if test "x$as_val" = x""yes; then
10240 cat >>confdefs.h <<_ACEOF
10241 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10242 _ACEOF
10246 done
10249 if test $ac_cv_header_Xm_XpmP_h = yes; then
10250 { $as_echo "$as_me:$LINENO: checking for XpmAttributes_21 in Xm/XpmP.h" >&5
10251 $as_echo_n "checking for XpmAttributes_21 in Xm/XpmP.h... " >&6; }
10252 cat >conftest.$ac_ext <<_ACEOF
10253 /* confdefs.h. */
10254 _ACEOF
10255 cat confdefs.h >>conftest.$ac_ext
10256 cat >>conftest.$ac_ext <<_ACEOF
10257 /* end confdefs.h. */
10258 #include <Xm/XpmP.h>
10260 main ()
10262 XpmAttributes_21 attr;
10264 return 0;
10266 _ACEOF
10267 rm -f conftest.$ac_objext
10268 if { (ac_try="$ac_compile"
10269 case "(($ac_try" in
10270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10271 *) ac_try_echo=$ac_try;;
10272 esac
10273 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10274 $as_echo "$ac_try_echo") >&5
10275 (eval "$ac_compile") 2>conftest.er1
10276 ac_status=$?
10277 grep -v '^ *+' conftest.er1 >conftest.err
10278 rm -f conftest.er1
10279 cat conftest.err >&5
10280 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10281 (exit $ac_status); } && {
10282 test -z "$ac_c_werror_flag" ||
10283 test ! -s conftest.err
10284 } && test -s conftest.$ac_objext; then
10285 { $as_echo "$as_me:$LINENO: result: yes" >&5
10286 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
10287 #define XPMATTRIBUTES_TYPE XpmAttributes_21
10288 _ACEOF
10290 else
10291 $as_echo "$as_me: failed program was:" >&5
10292 sed 's/^/| /' conftest.$ac_ext >&5
10294 { $as_echo "$as_me:$LINENO: result: no" >&5
10295 $as_echo "no" >&6; }; cat >>confdefs.h <<\_ACEOF
10296 #define XPMATTRIBUTES_TYPE XpmAttributes
10297 _ACEOF
10302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10303 else
10304 cat >>confdefs.h <<\_ACEOF
10305 #define XPMATTRIBUTES_TYPE XpmAttributes
10306 _ACEOF
10309 CPPFLAGS=$cppflags_save
10312 if test "x$GUITYPE" = "xNONE" -a "$enable_xim" = "yes"; then
10313 { $as_echo "$as_me:$LINENO: result: no GUI selected; xim has been disabled" >&5
10314 $as_echo "no GUI selected; xim has been disabled" >&6; }
10315 enable_xim="no"
10317 if test "x$GUITYPE" = "xNONE" -a "$enable_fontset" = "yes"; then
10318 { $as_echo "$as_me:$LINENO: result: no GUI selected; fontset has been disabled" >&5
10319 $as_echo "no GUI selected; fontset has been disabled" >&6; }
10320 enable_fontset="no"
10322 if test "x$GUITYPE:$enable_fontset" = "xGTK:yes" -a "0$gtk_major_version" -ge 2; then
10323 { $as_echo "$as_me:$LINENO: result: GTK+ 2 GUI selected; fontset has been disabled" >&5
10324 $as_echo "GTK+ 2 GUI selected; fontset has been disabled" >&6; }
10325 enable_fontset="no"
10328 if test -z "$SKIP_PHOTON"; then
10329 GUITYPE=PHOTONGUI
10337 if test "$enable_workshop" = "yes" -a -n "$SKIP_MOTIF"; then
10338 { { $as_echo "$as_me:$LINENO: error: cannot use workshop without Motif" >&5
10339 $as_echo "$as_me: error: cannot use workshop without Motif" >&2;}
10340 { (exit 1); exit 1; }; }
10343 if test "$enable_xim" = "yes"; then
10344 cat >>confdefs.h <<\_ACEOF
10345 #define FEAT_XIM 1
10346 _ACEOF
10349 if test "$enable_fontset" = "yes"; then
10350 cat >>confdefs.h <<\_ACEOF
10351 #define FEAT_XFONTSET 1
10352 _ACEOF
10359 if test "$enable_hangulinput" = "yes"; then
10360 if test "x$GUITYPE" = "xNONE"; then
10361 { $as_echo "$as_me:$LINENO: result: no GUI selected; hangul input has been disabled" >&5
10362 $as_echo "no GUI selected; hangul input has been disabled" >&6; }
10363 enable_hangulinput=no
10364 else
10365 cat >>confdefs.h <<\_ACEOF
10366 #define FEAT_HANGULIN 1
10367 _ACEOF
10369 HANGULIN_SRC=hangulin.c
10371 HANGULIN_OBJ=objects/hangulin.o
10377 { $as_echo "$as_me:$LINENO: checking whether toupper is broken" >&5
10378 $as_echo_n "checking whether toupper is broken... " >&6; }
10379 if test "${vim_cv_toupper_broken+set}" = set; then
10380 $as_echo_n "(cached) " >&6
10381 else
10383 if test "$cross_compiling" = yes; then
10385 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_toupper_broken'" >&5
10386 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_toupper_broken'" >&2;}
10387 { (exit 1); exit 1; }; }
10389 else
10390 cat >conftest.$ac_ext <<_ACEOF
10392 #include "confdefs.h"
10393 #include <ctype.h>
10394 #if STDC_HEADERS
10395 # include <stdlib.h>
10396 # include <stddef.h>
10397 #endif
10398 main() { exit(toupper('A') == 'A' && tolower('z') == 'z'); }
10400 _ACEOF
10401 rm -f conftest$ac_exeext
10402 if { (ac_try="$ac_link"
10403 case "(($ac_try" in
10404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10405 *) ac_try_echo=$ac_try;;
10406 esac
10407 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10408 $as_echo "$ac_try_echo") >&5
10409 (eval "$ac_link") 2>&5
10410 ac_status=$?
10411 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10412 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10413 { (case "(($ac_try" in
10414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10415 *) ac_try_echo=$ac_try;;
10416 esac
10417 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10418 $as_echo "$ac_try_echo") >&5
10419 (eval "$ac_try") 2>&5
10420 ac_status=$?
10421 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10422 (exit $ac_status); }; }; then
10424 vim_cv_toupper_broken=yes
10426 else
10427 $as_echo "$as_me: program exited with status $ac_status" >&5
10428 $as_echo "$as_me: failed program was:" >&5
10429 sed 's/^/| /' conftest.$ac_ext >&5
10431 ( exit $ac_status )
10433 vim_cv_toupper_broken=no
10436 rm -rf conftest.dSYM
10437 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10442 { $as_echo "$as_me:$LINENO: result: $vim_cv_toupper_broken" >&5
10443 $as_echo "$vim_cv_toupper_broken" >&6; }
10445 if test "x$vim_cv_toupper_broken" = "xyes" ; then
10446 cat >>confdefs.h <<\_ACEOF
10447 #define BROKEN_TOUPPER 1
10448 _ACEOF
10452 { $as_echo "$as_me:$LINENO: checking whether __DATE__ and __TIME__ work" >&5
10453 $as_echo_n "checking whether __DATE__ and __TIME__ work... " >&6; }
10454 cat >conftest.$ac_ext <<_ACEOF
10455 /* confdefs.h. */
10456 _ACEOF
10457 cat confdefs.h >>conftest.$ac_ext
10458 cat >>conftest.$ac_ext <<_ACEOF
10459 /* end confdefs.h. */
10460 #include <stdio.h>
10462 main ()
10464 printf("(" __DATE__ " " __TIME__ ")");
10466 return 0;
10468 _ACEOF
10469 rm -f conftest.$ac_objext
10470 if { (ac_try="$ac_compile"
10471 case "(($ac_try" in
10472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10473 *) ac_try_echo=$ac_try;;
10474 esac
10475 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10476 $as_echo "$ac_try_echo") >&5
10477 (eval "$ac_compile") 2>conftest.er1
10478 ac_status=$?
10479 grep -v '^ *+' conftest.er1 >conftest.err
10480 rm -f conftest.er1
10481 cat conftest.err >&5
10482 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10483 (exit $ac_status); } && {
10484 test -z "$ac_c_werror_flag" ||
10485 test ! -s conftest.err
10486 } && test -s conftest.$ac_objext; then
10487 { $as_echo "$as_me:$LINENO: result: yes" >&5
10488 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
10489 #define HAVE_DATE_TIME 1
10490 _ACEOF
10492 else
10493 $as_echo "$as_me: failed program was:" >&5
10494 sed 's/^/| /' conftest.$ac_ext >&5
10496 { $as_echo "$as_me:$LINENO: result: no" >&5
10497 $as_echo "no" >&6; }
10500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10502 { $as_echo "$as_me:$LINENO: checking whether __attribute__((unused)) is allowed" >&5
10503 $as_echo_n "checking whether __attribute__((unused)) is allowed... " >&6; }
10504 cat >conftest.$ac_ext <<_ACEOF
10505 /* confdefs.h. */
10506 _ACEOF
10507 cat confdefs.h >>conftest.$ac_ext
10508 cat >>conftest.$ac_ext <<_ACEOF
10509 /* end confdefs.h. */
10510 #include <stdio.h>
10512 main ()
10514 int x __attribute__((unused));
10516 return 0;
10518 _ACEOF
10519 rm -f conftest.$ac_objext
10520 if { (ac_try="$ac_compile"
10521 case "(($ac_try" in
10522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10523 *) ac_try_echo=$ac_try;;
10524 esac
10525 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10526 $as_echo "$ac_try_echo") >&5
10527 (eval "$ac_compile") 2>conftest.er1
10528 ac_status=$?
10529 grep -v '^ *+' conftest.er1 >conftest.err
10530 rm -f conftest.er1
10531 cat conftest.err >&5
10532 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10533 (exit $ac_status); } && {
10534 test -z "$ac_c_werror_flag" ||
10535 test ! -s conftest.err
10536 } && test -s conftest.$ac_objext; then
10537 { $as_echo "$as_me:$LINENO: result: yes" >&5
10538 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
10539 #define HAVE_ATTRIBUTE_UNUSED 1
10540 _ACEOF
10542 else
10543 $as_echo "$as_me: failed program was:" >&5
10544 sed 's/^/| /' conftest.$ac_ext >&5
10546 { $as_echo "$as_me:$LINENO: result: no" >&5
10547 $as_echo "no" >&6; }
10550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10552 if test "${ac_cv_header_elf_h+set}" = set; then
10553 { $as_echo "$as_me:$LINENO: checking for elf.h" >&5
10554 $as_echo_n "checking for elf.h... " >&6; }
10555 if test "${ac_cv_header_elf_h+set}" = set; then
10556 $as_echo_n "(cached) " >&6
10558 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5
10559 $as_echo "$ac_cv_header_elf_h" >&6; }
10560 else
10561 # Is the header compilable?
10562 { $as_echo "$as_me:$LINENO: checking elf.h usability" >&5
10563 $as_echo_n "checking elf.h usability... " >&6; }
10564 cat >conftest.$ac_ext <<_ACEOF
10565 /* confdefs.h. */
10566 _ACEOF
10567 cat confdefs.h >>conftest.$ac_ext
10568 cat >>conftest.$ac_ext <<_ACEOF
10569 /* end confdefs.h. */
10570 $ac_includes_default
10571 #include <elf.h>
10572 _ACEOF
10573 rm -f conftest.$ac_objext
10574 if { (ac_try="$ac_compile"
10575 case "(($ac_try" in
10576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10577 *) ac_try_echo=$ac_try;;
10578 esac
10579 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10580 $as_echo "$ac_try_echo") >&5
10581 (eval "$ac_compile") 2>conftest.er1
10582 ac_status=$?
10583 grep -v '^ *+' conftest.er1 >conftest.err
10584 rm -f conftest.er1
10585 cat conftest.err >&5
10586 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10587 (exit $ac_status); } && {
10588 test -z "$ac_c_werror_flag" ||
10589 test ! -s conftest.err
10590 } && test -s conftest.$ac_objext; then
10591 ac_header_compiler=yes
10592 else
10593 $as_echo "$as_me: failed program was:" >&5
10594 sed 's/^/| /' conftest.$ac_ext >&5
10596 ac_header_compiler=no
10599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10600 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10601 $as_echo "$ac_header_compiler" >&6; }
10603 # Is the header present?
10604 { $as_echo "$as_me:$LINENO: checking elf.h presence" >&5
10605 $as_echo_n "checking elf.h presence... " >&6; }
10606 cat >conftest.$ac_ext <<_ACEOF
10607 /* confdefs.h. */
10608 _ACEOF
10609 cat confdefs.h >>conftest.$ac_ext
10610 cat >>conftest.$ac_ext <<_ACEOF
10611 /* end confdefs.h. */
10612 #include <elf.h>
10613 _ACEOF
10614 if { (ac_try="$ac_cpp conftest.$ac_ext"
10615 case "(($ac_try" in
10616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10617 *) ac_try_echo=$ac_try;;
10618 esac
10619 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10620 $as_echo "$ac_try_echo") >&5
10621 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10622 ac_status=$?
10623 grep -v '^ *+' conftest.er1 >conftest.err
10624 rm -f conftest.er1
10625 cat conftest.err >&5
10626 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10627 (exit $ac_status); } >/dev/null && {
10628 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10629 test ! -s conftest.err
10630 }; then
10631 ac_header_preproc=yes
10632 else
10633 $as_echo "$as_me: failed program was:" >&5
10634 sed 's/^/| /' conftest.$ac_ext >&5
10636 ac_header_preproc=no
10639 rm -f conftest.err conftest.$ac_ext
10640 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10641 $as_echo "$ac_header_preproc" >&6; }
10643 # So? What about this header?
10644 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10645 yes:no: )
10646 { $as_echo "$as_me:$LINENO: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&5
10647 $as_echo "$as_me: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10648 { $as_echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the compiler's result" >&5
10649 $as_echo "$as_me: WARNING: elf.h: proceeding with the compiler's result" >&2;}
10650 ac_header_preproc=yes
10652 no:yes:* )
10653 { $as_echo "$as_me:$LINENO: WARNING: elf.h: present but cannot be compiled" >&5
10654 $as_echo "$as_me: WARNING: elf.h: present but cannot be compiled" >&2;}
10655 { $as_echo "$as_me:$LINENO: WARNING: elf.h: check for missing prerequisite headers?" >&5
10656 $as_echo "$as_me: WARNING: elf.h: check for missing prerequisite headers?" >&2;}
10657 { $as_echo "$as_me:$LINENO: WARNING: elf.h: see the Autoconf documentation" >&5
10658 $as_echo "$as_me: WARNING: elf.h: see the Autoconf documentation" >&2;}
10659 { $as_echo "$as_me:$LINENO: WARNING: elf.h: section \"Present But Cannot Be Compiled\"" >&5
10660 $as_echo "$as_me: WARNING: elf.h: section \"Present But Cannot Be Compiled\"" >&2;}
10661 { $as_echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the preprocessor's result" >&5
10662 $as_echo "$as_me: WARNING: elf.h: proceeding with the preprocessor's result" >&2;}
10663 { $as_echo "$as_me:$LINENO: WARNING: elf.h: in the future, the compiler will take precedence" >&5
10664 $as_echo "$as_me: WARNING: elf.h: in the future, the compiler will take precedence" >&2;}
10667 esac
10668 { $as_echo "$as_me:$LINENO: checking for elf.h" >&5
10669 $as_echo_n "checking for elf.h... " >&6; }
10670 if test "${ac_cv_header_elf_h+set}" = set; then
10671 $as_echo_n "(cached) " >&6
10672 else
10673 ac_cv_header_elf_h=$ac_header_preproc
10675 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5
10676 $as_echo "$ac_cv_header_elf_h" >&6; }
10679 if test "x$ac_cv_header_elf_h" = x""yes; then
10680 HAS_ELF=1
10684 if test "$HAS_ELF" = 1; then
10686 { $as_echo "$as_me:$LINENO: checking for main in -lelf" >&5
10687 $as_echo_n "checking for main in -lelf... " >&6; }
10688 if test "${ac_cv_lib_elf_main+set}" = set; then
10689 $as_echo_n "(cached) " >&6
10690 else
10691 ac_check_lib_save_LIBS=$LIBS
10692 LIBS="-lelf $LIBS"
10693 cat >conftest.$ac_ext <<_ACEOF
10694 /* confdefs.h. */
10695 _ACEOF
10696 cat confdefs.h >>conftest.$ac_ext
10697 cat >>conftest.$ac_ext <<_ACEOF
10698 /* end confdefs.h. */
10702 main ()
10704 return main ();
10706 return 0;
10708 _ACEOF
10709 rm -f conftest.$ac_objext conftest$ac_exeext
10710 if { (ac_try="$ac_link"
10711 case "(($ac_try" in
10712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10713 *) ac_try_echo=$ac_try;;
10714 esac
10715 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10716 $as_echo "$ac_try_echo") >&5
10717 (eval "$ac_link") 2>conftest.er1
10718 ac_status=$?
10719 grep -v '^ *+' conftest.er1 >conftest.err
10720 rm -f conftest.er1
10721 cat conftest.err >&5
10722 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10723 (exit $ac_status); } && {
10724 test -z "$ac_c_werror_flag" ||
10725 test ! -s conftest.err
10726 } && test -s conftest$ac_exeext && {
10727 test "$cross_compiling" = yes ||
10728 $as_test_x conftest$ac_exeext
10729 }; then
10730 ac_cv_lib_elf_main=yes
10731 else
10732 $as_echo "$as_me: failed program was:" >&5
10733 sed 's/^/| /' conftest.$ac_ext >&5
10735 ac_cv_lib_elf_main=no
10738 rm -rf conftest.dSYM
10739 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10740 conftest$ac_exeext conftest.$ac_ext
10741 LIBS=$ac_check_lib_save_LIBS
10743 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_elf_main" >&5
10744 $as_echo "$ac_cv_lib_elf_main" >&6; }
10745 if test "x$ac_cv_lib_elf_main" = x""yes; then
10746 cat >>confdefs.h <<_ACEOF
10747 #define HAVE_LIBELF 1
10748 _ACEOF
10750 LIBS="-lelf $LIBS"
10761 ac_header_dirent=no
10762 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10763 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10764 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10765 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
10766 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10767 $as_echo_n "(cached) " >&6
10768 else
10769 cat >conftest.$ac_ext <<_ACEOF
10770 /* confdefs.h. */
10771 _ACEOF
10772 cat confdefs.h >>conftest.$ac_ext
10773 cat >>conftest.$ac_ext <<_ACEOF
10774 /* end confdefs.h. */
10775 #include <sys/types.h>
10776 #include <$ac_hdr>
10779 main ()
10781 if ((DIR *) 0)
10782 return 0;
10784 return 0;
10786 _ACEOF
10787 rm -f conftest.$ac_objext
10788 if { (ac_try="$ac_compile"
10789 case "(($ac_try" in
10790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10791 *) ac_try_echo=$ac_try;;
10792 esac
10793 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10794 $as_echo "$ac_try_echo") >&5
10795 (eval "$ac_compile") 2>conftest.er1
10796 ac_status=$?
10797 grep -v '^ *+' conftest.er1 >conftest.err
10798 rm -f conftest.er1
10799 cat conftest.err >&5
10800 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10801 (exit $ac_status); } && {
10802 test -z "$ac_c_werror_flag" ||
10803 test ! -s conftest.err
10804 } && test -s conftest.$ac_objext; then
10805 eval "$as_ac_Header=yes"
10806 else
10807 $as_echo "$as_me: failed program was:" >&5
10808 sed 's/^/| /' conftest.$ac_ext >&5
10810 eval "$as_ac_Header=no"
10813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10815 ac_res=`eval 'as_val=${'$as_ac_Header'}
10816 $as_echo "$as_val"'`
10817 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10818 $as_echo "$ac_res" >&6; }
10819 as_val=`eval 'as_val=${'$as_ac_Header'}
10820 $as_echo "$as_val"'`
10821 if test "x$as_val" = x""yes; then
10822 cat >>confdefs.h <<_ACEOF
10823 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10824 _ACEOF
10826 ac_header_dirent=$ac_hdr; break
10829 done
10830 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10831 if test $ac_header_dirent = dirent.h; then
10832 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
10833 $as_echo_n "checking for library containing opendir... " >&6; }
10834 if test "${ac_cv_search_opendir+set}" = set; then
10835 $as_echo_n "(cached) " >&6
10836 else
10837 ac_func_search_save_LIBS=$LIBS
10838 cat >conftest.$ac_ext <<_ACEOF
10839 /* confdefs.h. */
10840 _ACEOF
10841 cat confdefs.h >>conftest.$ac_ext
10842 cat >>conftest.$ac_ext <<_ACEOF
10843 /* end confdefs.h. */
10845 /* Override any GCC internal prototype to avoid an error.
10846 Use char because int might match the return type of a GCC
10847 builtin and then its argument prototype would still apply. */
10848 #ifdef __cplusplus
10849 extern "C"
10850 #endif
10851 char opendir ();
10853 main ()
10855 return opendir ();
10857 return 0;
10859 _ACEOF
10860 for ac_lib in '' dir; do
10861 if test -z "$ac_lib"; then
10862 ac_res="none required"
10863 else
10864 ac_res=-l$ac_lib
10865 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10867 rm -f conftest.$ac_objext conftest$ac_exeext
10868 if { (ac_try="$ac_link"
10869 case "(($ac_try" in
10870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10871 *) ac_try_echo=$ac_try;;
10872 esac
10873 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10874 $as_echo "$ac_try_echo") >&5
10875 (eval "$ac_link") 2>conftest.er1
10876 ac_status=$?
10877 grep -v '^ *+' conftest.er1 >conftest.err
10878 rm -f conftest.er1
10879 cat conftest.err >&5
10880 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10881 (exit $ac_status); } && {
10882 test -z "$ac_c_werror_flag" ||
10883 test ! -s conftest.err
10884 } && test -s conftest$ac_exeext && {
10885 test "$cross_compiling" = yes ||
10886 $as_test_x conftest$ac_exeext
10887 }; then
10888 ac_cv_search_opendir=$ac_res
10889 else
10890 $as_echo "$as_me: failed program was:" >&5
10891 sed 's/^/| /' conftest.$ac_ext >&5
10896 rm -rf conftest.dSYM
10897 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10898 conftest$ac_exeext
10899 if test "${ac_cv_search_opendir+set}" = set; then
10900 break
10902 done
10903 if test "${ac_cv_search_opendir+set}" = set; then
10905 else
10906 ac_cv_search_opendir=no
10908 rm conftest.$ac_ext
10909 LIBS=$ac_func_search_save_LIBS
10911 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10912 $as_echo "$ac_cv_search_opendir" >&6; }
10913 ac_res=$ac_cv_search_opendir
10914 if test "$ac_res" != no; then
10915 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10919 else
10920 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
10921 $as_echo_n "checking for library containing opendir... " >&6; }
10922 if test "${ac_cv_search_opendir+set}" = set; then
10923 $as_echo_n "(cached) " >&6
10924 else
10925 ac_func_search_save_LIBS=$LIBS
10926 cat >conftest.$ac_ext <<_ACEOF
10927 /* confdefs.h. */
10928 _ACEOF
10929 cat confdefs.h >>conftest.$ac_ext
10930 cat >>conftest.$ac_ext <<_ACEOF
10931 /* end confdefs.h. */
10933 /* Override any GCC internal prototype to avoid an error.
10934 Use char because int might match the return type of a GCC
10935 builtin and then its argument prototype would still apply. */
10936 #ifdef __cplusplus
10937 extern "C"
10938 #endif
10939 char opendir ();
10941 main ()
10943 return opendir ();
10945 return 0;
10947 _ACEOF
10948 for ac_lib in '' x; do
10949 if test -z "$ac_lib"; then
10950 ac_res="none required"
10951 else
10952 ac_res=-l$ac_lib
10953 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10955 rm -f conftest.$ac_objext conftest$ac_exeext
10956 if { (ac_try="$ac_link"
10957 case "(($ac_try" in
10958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10959 *) ac_try_echo=$ac_try;;
10960 esac
10961 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10962 $as_echo "$ac_try_echo") >&5
10963 (eval "$ac_link") 2>conftest.er1
10964 ac_status=$?
10965 grep -v '^ *+' conftest.er1 >conftest.err
10966 rm -f conftest.er1
10967 cat conftest.err >&5
10968 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10969 (exit $ac_status); } && {
10970 test -z "$ac_c_werror_flag" ||
10971 test ! -s conftest.err
10972 } && test -s conftest$ac_exeext && {
10973 test "$cross_compiling" = yes ||
10974 $as_test_x conftest$ac_exeext
10975 }; then
10976 ac_cv_search_opendir=$ac_res
10977 else
10978 $as_echo "$as_me: failed program was:" >&5
10979 sed 's/^/| /' conftest.$ac_ext >&5
10984 rm -rf conftest.dSYM
10985 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10986 conftest$ac_exeext
10987 if test "${ac_cv_search_opendir+set}" = set; then
10988 break
10990 done
10991 if test "${ac_cv_search_opendir+set}" = set; then
10993 else
10994 ac_cv_search_opendir=no
10996 rm conftest.$ac_ext
10997 LIBS=$ac_func_search_save_LIBS
10999 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11000 $as_echo "$ac_cv_search_opendir" >&6; }
11001 ac_res=$ac_cv_search_opendir
11002 if test "$ac_res" != no; then
11003 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11010 if test $ac_cv_header_sys_wait_h = no; then
11011 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that defines union wait" >&5
11012 $as_echo_n "checking for sys/wait.h that defines union wait... " >&6; }
11013 cat >conftest.$ac_ext <<_ACEOF
11014 /* confdefs.h. */
11015 _ACEOF
11016 cat confdefs.h >>conftest.$ac_ext
11017 cat >>conftest.$ac_ext <<_ACEOF
11018 /* end confdefs.h. */
11019 #include <sys/wait.h>
11021 main ()
11023 union wait xx, yy; xx = yy
11025 return 0;
11027 _ACEOF
11028 rm -f conftest.$ac_objext
11029 if { (ac_try="$ac_compile"
11030 case "(($ac_try" in
11031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11032 *) ac_try_echo=$ac_try;;
11033 esac
11034 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11035 $as_echo "$ac_try_echo") >&5
11036 (eval "$ac_compile") 2>conftest.er1
11037 ac_status=$?
11038 grep -v '^ *+' conftest.er1 >conftest.err
11039 rm -f conftest.er1
11040 cat conftest.err >&5
11041 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11042 (exit $ac_status); } && {
11043 test -z "$ac_c_werror_flag" ||
11044 test ! -s conftest.err
11045 } && test -s conftest.$ac_objext; then
11046 { $as_echo "$as_me:$LINENO: result: yes" >&5
11047 $as_echo "yes" >&6; }
11048 cat >>confdefs.h <<\_ACEOF
11049 #define HAVE_SYS_WAIT_H 1
11050 _ACEOF
11052 cat >>confdefs.h <<\_ACEOF
11053 #define HAVE_UNION_WAIT 1
11054 _ACEOF
11056 else
11057 $as_echo "$as_me: failed program was:" >&5
11058 sed 's/^/| /' conftest.$ac_ext >&5
11060 { $as_echo "$as_me:$LINENO: result: no" >&5
11061 $as_echo "no" >&6; }
11064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11107 for ac_header in stdarg.h stdlib.h string.h sys/select.h sys/utsname.h \
11108 termcap.h fcntl.h sgtty.h sys/ioctl.h sys/time.h sys/types.h termio.h \
11109 iconv.h langinfo.h math.h unistd.h stropts.h errno.h \
11110 sys/resource.h sys/systeminfo.h locale.h \
11111 sys/stream.h termios.h libc.h sys/statfs.h \
11112 poll.h sys/poll.h pwd.h utime.h sys/param.h libintl.h \
11113 libgen.h util/debug.h util/msg18n.h frame.h \
11114 sys/acl.h sys/access.h sys/sysinfo.h wchar.h wctype.h
11116 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11117 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11118 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11119 $as_echo_n "checking for $ac_header... " >&6; }
11120 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11121 $as_echo_n "(cached) " >&6
11123 ac_res=`eval 'as_val=${'$as_ac_Header'}
11124 $as_echo "$as_val"'`
11125 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11126 $as_echo "$ac_res" >&6; }
11127 else
11128 # Is the header compilable?
11129 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11130 $as_echo_n "checking $ac_header usability... " >&6; }
11131 cat >conftest.$ac_ext <<_ACEOF
11132 /* confdefs.h. */
11133 _ACEOF
11134 cat confdefs.h >>conftest.$ac_ext
11135 cat >>conftest.$ac_ext <<_ACEOF
11136 /* end confdefs.h. */
11137 $ac_includes_default
11138 #include <$ac_header>
11139 _ACEOF
11140 rm -f conftest.$ac_objext
11141 if { (ac_try="$ac_compile"
11142 case "(($ac_try" in
11143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11144 *) ac_try_echo=$ac_try;;
11145 esac
11146 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11147 $as_echo "$ac_try_echo") >&5
11148 (eval "$ac_compile") 2>conftest.er1
11149 ac_status=$?
11150 grep -v '^ *+' conftest.er1 >conftest.err
11151 rm -f conftest.er1
11152 cat conftest.err >&5
11153 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11154 (exit $ac_status); } && {
11155 test -z "$ac_c_werror_flag" ||
11156 test ! -s conftest.err
11157 } && test -s conftest.$ac_objext; then
11158 ac_header_compiler=yes
11159 else
11160 $as_echo "$as_me: failed program was:" >&5
11161 sed 's/^/| /' conftest.$ac_ext >&5
11163 ac_header_compiler=no
11166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11167 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11168 $as_echo "$ac_header_compiler" >&6; }
11170 # Is the header present?
11171 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11172 $as_echo_n "checking $ac_header presence... " >&6; }
11173 cat >conftest.$ac_ext <<_ACEOF
11174 /* confdefs.h. */
11175 _ACEOF
11176 cat confdefs.h >>conftest.$ac_ext
11177 cat >>conftest.$ac_ext <<_ACEOF
11178 /* end confdefs.h. */
11179 #include <$ac_header>
11180 _ACEOF
11181 if { (ac_try="$ac_cpp conftest.$ac_ext"
11182 case "(($ac_try" in
11183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11184 *) ac_try_echo=$ac_try;;
11185 esac
11186 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11187 $as_echo "$ac_try_echo") >&5
11188 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11189 ac_status=$?
11190 grep -v '^ *+' conftest.er1 >conftest.err
11191 rm -f conftest.er1
11192 cat conftest.err >&5
11193 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11194 (exit $ac_status); } >/dev/null && {
11195 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11196 test ! -s conftest.err
11197 }; then
11198 ac_header_preproc=yes
11199 else
11200 $as_echo "$as_me: failed program was:" >&5
11201 sed 's/^/| /' conftest.$ac_ext >&5
11203 ac_header_preproc=no
11206 rm -f conftest.err conftest.$ac_ext
11207 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11208 $as_echo "$ac_header_preproc" >&6; }
11210 # So? What about this header?
11211 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11212 yes:no: )
11213 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11214 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11215 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11216 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11217 ac_header_preproc=yes
11219 no:yes:* )
11220 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11221 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11222 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11223 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11224 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11225 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11226 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11227 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11228 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11229 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11230 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11231 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11234 esac
11235 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11236 $as_echo_n "checking for $ac_header... " >&6; }
11237 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11238 $as_echo_n "(cached) " >&6
11239 else
11240 eval "$as_ac_Header=\$ac_header_preproc"
11242 ac_res=`eval 'as_val=${'$as_ac_Header'}
11243 $as_echo "$as_val"'`
11244 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11245 $as_echo "$ac_res" >&6; }
11248 as_val=`eval 'as_val=${'$as_ac_Header'}
11249 $as_echo "$as_val"'`
11250 if test "x$as_val" = x""yes; then
11251 cat >>confdefs.h <<_ACEOF
11252 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11253 _ACEOF
11257 done
11261 for ac_header in sys/ptem.h
11263 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11264 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11265 $as_echo_n "checking for $ac_header... " >&6; }
11266 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11267 $as_echo_n "(cached) " >&6
11268 else
11269 cat >conftest.$ac_ext <<_ACEOF
11270 /* confdefs.h. */
11271 _ACEOF
11272 cat confdefs.h >>conftest.$ac_ext
11273 cat >>conftest.$ac_ext <<_ACEOF
11274 /* end confdefs.h. */
11275 #if defined HAVE_SYS_STREAM_H
11276 # include <sys/stream.h>
11277 #endif
11279 #include <$ac_header>
11280 _ACEOF
11281 rm -f conftest.$ac_objext
11282 if { (ac_try="$ac_compile"
11283 case "(($ac_try" in
11284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11285 *) ac_try_echo=$ac_try;;
11286 esac
11287 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11288 $as_echo "$ac_try_echo") >&5
11289 (eval "$ac_compile") 2>conftest.er1
11290 ac_status=$?
11291 grep -v '^ *+' conftest.er1 >conftest.err
11292 rm -f conftest.er1
11293 cat conftest.err >&5
11294 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11295 (exit $ac_status); } && {
11296 test -z "$ac_c_werror_flag" ||
11297 test ! -s conftest.err
11298 } && test -s conftest.$ac_objext; then
11299 eval "$as_ac_Header=yes"
11300 else
11301 $as_echo "$as_me: failed program was:" >&5
11302 sed 's/^/| /' conftest.$ac_ext >&5
11304 eval "$as_ac_Header=no"
11307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11309 ac_res=`eval 'as_val=${'$as_ac_Header'}
11310 $as_echo "$as_val"'`
11311 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11312 $as_echo "$ac_res" >&6; }
11313 as_val=`eval 'as_val=${'$as_ac_Header'}
11314 $as_echo "$as_val"'`
11315 if test "x$as_val" = x""yes; then
11316 cat >>confdefs.h <<_ACEOF
11317 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11318 _ACEOF
11322 done
11326 for ac_header in sys/sysctl.h
11328 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11329 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11330 $as_echo_n "checking for $ac_header... " >&6; }
11331 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11332 $as_echo_n "(cached) " >&6
11333 else
11334 cat >conftest.$ac_ext <<_ACEOF
11335 /* confdefs.h. */
11336 _ACEOF
11337 cat confdefs.h >>conftest.$ac_ext
11338 cat >>conftest.$ac_ext <<_ACEOF
11339 /* end confdefs.h. */
11340 #if defined HAVE_SYS_PARAM_H
11341 # include <sys/param.h>
11342 #endif
11344 #include <$ac_header>
11345 _ACEOF
11346 rm -f conftest.$ac_objext
11347 if { (ac_try="$ac_compile"
11348 case "(($ac_try" in
11349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11350 *) ac_try_echo=$ac_try;;
11351 esac
11352 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11353 $as_echo "$ac_try_echo") >&5
11354 (eval "$ac_compile") 2>conftest.er1
11355 ac_status=$?
11356 grep -v '^ *+' conftest.er1 >conftest.err
11357 rm -f conftest.er1
11358 cat conftest.err >&5
11359 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11360 (exit $ac_status); } && {
11361 test -z "$ac_c_werror_flag" ||
11362 test ! -s conftest.err
11363 } && test -s conftest.$ac_objext; then
11364 eval "$as_ac_Header=yes"
11365 else
11366 $as_echo "$as_me: failed program was:" >&5
11367 sed 's/^/| /' conftest.$ac_ext >&5
11369 eval "$as_ac_Header=no"
11372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11374 ac_res=`eval 'as_val=${'$as_ac_Header'}
11375 $as_echo "$as_val"'`
11376 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11377 $as_echo "$ac_res" >&6; }
11378 as_val=`eval 'as_val=${'$as_ac_Header'}
11379 $as_echo "$as_val"'`
11380 if test "x$as_val" = x""yes; then
11381 cat >>confdefs.h <<_ACEOF
11382 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11383 _ACEOF
11387 done
11391 { $as_echo "$as_me:$LINENO: checking for pthread_np.h" >&5
11392 $as_echo_n "checking for pthread_np.h... " >&6; }
11393 cat >conftest.$ac_ext <<_ACEOF
11394 /* confdefs.h. */
11395 _ACEOF
11396 cat confdefs.h >>conftest.$ac_ext
11397 cat >>conftest.$ac_ext <<_ACEOF
11398 /* end confdefs.h. */
11400 #include <pthread.h>
11401 #include <pthread_np.h>
11403 main ()
11405 int i; i = 0;
11407 return 0;
11409 _ACEOF
11410 rm -f conftest.$ac_objext
11411 if { (ac_try="$ac_compile"
11412 case "(($ac_try" in
11413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11414 *) ac_try_echo=$ac_try;;
11415 esac
11416 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11417 $as_echo "$ac_try_echo") >&5
11418 (eval "$ac_compile") 2>conftest.er1
11419 ac_status=$?
11420 grep -v '^ *+' conftest.er1 >conftest.err
11421 rm -f conftest.er1
11422 cat conftest.err >&5
11423 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11424 (exit $ac_status); } && {
11425 test -z "$ac_c_werror_flag" ||
11426 test ! -s conftest.err
11427 } && test -s conftest.$ac_objext; then
11428 { $as_echo "$as_me:$LINENO: result: yes" >&5
11429 $as_echo "yes" >&6; }
11430 cat >>confdefs.h <<\_ACEOF
11431 #define HAVE_PTHREAD_NP_H 1
11432 _ACEOF
11434 else
11435 $as_echo "$as_me: failed program was:" >&5
11436 sed 's/^/| /' conftest.$ac_ext >&5
11438 { $as_echo "$as_me:$LINENO: result: no" >&5
11439 $as_echo "no" >&6; }
11442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11445 for ac_header in strings.h
11447 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11448 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11449 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11450 $as_echo_n "checking for $ac_header... " >&6; }
11451 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11452 $as_echo_n "(cached) " >&6
11454 ac_res=`eval 'as_val=${'$as_ac_Header'}
11455 $as_echo "$as_val"'`
11456 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11457 $as_echo "$ac_res" >&6; }
11458 else
11459 # Is the header compilable?
11460 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11461 $as_echo_n "checking $ac_header usability... " >&6; }
11462 cat >conftest.$ac_ext <<_ACEOF
11463 /* confdefs.h. */
11464 _ACEOF
11465 cat confdefs.h >>conftest.$ac_ext
11466 cat >>conftest.$ac_ext <<_ACEOF
11467 /* end confdefs.h. */
11468 $ac_includes_default
11469 #include <$ac_header>
11470 _ACEOF
11471 rm -f conftest.$ac_objext
11472 if { (ac_try="$ac_compile"
11473 case "(($ac_try" in
11474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11475 *) ac_try_echo=$ac_try;;
11476 esac
11477 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11478 $as_echo "$ac_try_echo") >&5
11479 (eval "$ac_compile") 2>conftest.er1
11480 ac_status=$?
11481 grep -v '^ *+' conftest.er1 >conftest.err
11482 rm -f conftest.er1
11483 cat conftest.err >&5
11484 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11485 (exit $ac_status); } && {
11486 test -z "$ac_c_werror_flag" ||
11487 test ! -s conftest.err
11488 } && test -s conftest.$ac_objext; then
11489 ac_header_compiler=yes
11490 else
11491 $as_echo "$as_me: failed program was:" >&5
11492 sed 's/^/| /' conftest.$ac_ext >&5
11494 ac_header_compiler=no
11497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11498 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11499 $as_echo "$ac_header_compiler" >&6; }
11501 # Is the header present?
11502 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11503 $as_echo_n "checking $ac_header presence... " >&6; }
11504 cat >conftest.$ac_ext <<_ACEOF
11505 /* confdefs.h. */
11506 _ACEOF
11507 cat confdefs.h >>conftest.$ac_ext
11508 cat >>conftest.$ac_ext <<_ACEOF
11509 /* end confdefs.h. */
11510 #include <$ac_header>
11511 _ACEOF
11512 if { (ac_try="$ac_cpp conftest.$ac_ext"
11513 case "(($ac_try" in
11514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11515 *) ac_try_echo=$ac_try;;
11516 esac
11517 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11518 $as_echo "$ac_try_echo") >&5
11519 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11520 ac_status=$?
11521 grep -v '^ *+' conftest.er1 >conftest.err
11522 rm -f conftest.er1
11523 cat conftest.err >&5
11524 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11525 (exit $ac_status); } >/dev/null && {
11526 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11527 test ! -s conftest.err
11528 }; then
11529 ac_header_preproc=yes
11530 else
11531 $as_echo "$as_me: failed program was:" >&5
11532 sed 's/^/| /' conftest.$ac_ext >&5
11534 ac_header_preproc=no
11537 rm -f conftest.err conftest.$ac_ext
11538 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11539 $as_echo "$ac_header_preproc" >&6; }
11541 # So? What about this header?
11542 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11543 yes:no: )
11544 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11545 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11546 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11547 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11548 ac_header_preproc=yes
11550 no:yes:* )
11551 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11552 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11553 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11554 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11555 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11556 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11557 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11558 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11559 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11560 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11561 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11562 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11565 esac
11566 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11567 $as_echo_n "checking for $ac_header... " >&6; }
11568 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11569 $as_echo_n "(cached) " >&6
11570 else
11571 eval "$as_ac_Header=\$ac_header_preproc"
11573 ac_res=`eval 'as_val=${'$as_ac_Header'}
11574 $as_echo "$as_val"'`
11575 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11576 $as_echo "$ac_res" >&6; }
11579 as_val=`eval 'as_val=${'$as_ac_Header'}
11580 $as_echo "$as_val"'`
11581 if test "x$as_val" = x""yes; then
11582 cat >>confdefs.h <<_ACEOF
11583 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11584 _ACEOF
11588 done
11590 if test "x$MACOSX" = "xyes"; then
11591 cat >>confdefs.h <<\_ACEOF
11592 #define NO_STRINGS_WITH_STRING_H 1
11593 _ACEOF
11595 else
11597 { $as_echo "$as_me:$LINENO: checking if strings.h can be included after string.h" >&5
11598 $as_echo_n "checking if strings.h can be included after string.h... " >&6; }
11599 cppflags_save=$CPPFLAGS
11600 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11601 cat >conftest.$ac_ext <<_ACEOF
11602 /* confdefs.h. */
11603 _ACEOF
11604 cat confdefs.h >>conftest.$ac_ext
11605 cat >>conftest.$ac_ext <<_ACEOF
11606 /* end confdefs.h. */
11608 #if defined(_AIX) && !defined(_AIX51) && !defined(_NO_PROTO)
11609 # define _NO_PROTO /* like in os_unix.h, causes conflict for AIX (Winn) */
11610 /* but don't do it on AIX 5.1 (Uribarri) */
11611 #endif
11612 #ifdef HAVE_XM_XM_H
11613 # include <Xm/Xm.h> /* This breaks it for HP-UX 11 (Squassabia) */
11614 #endif
11615 #ifdef HAVE_STRING_H
11616 # include <string.h>
11617 #endif
11618 #if defined(HAVE_STRINGS_H)
11619 # include <strings.h>
11620 #endif
11623 main ()
11625 int i; i = 0;
11627 return 0;
11629 _ACEOF
11630 rm -f conftest.$ac_objext
11631 if { (ac_try="$ac_compile"
11632 case "(($ac_try" in
11633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11634 *) ac_try_echo=$ac_try;;
11635 esac
11636 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11637 $as_echo "$ac_try_echo") >&5
11638 (eval "$ac_compile") 2>conftest.er1
11639 ac_status=$?
11640 grep -v '^ *+' conftest.er1 >conftest.err
11641 rm -f conftest.er1
11642 cat conftest.err >&5
11643 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11644 (exit $ac_status); } && {
11645 test -z "$ac_c_werror_flag" ||
11646 test ! -s conftest.err
11647 } && test -s conftest.$ac_objext; then
11648 { $as_echo "$as_me:$LINENO: result: yes" >&5
11649 $as_echo "yes" >&6; }
11650 else
11651 $as_echo "$as_me: failed program was:" >&5
11652 sed 's/^/| /' conftest.$ac_ext >&5
11654 cat >>confdefs.h <<\_ACEOF
11655 #define NO_STRINGS_WITH_STRING_H 1
11656 _ACEOF
11658 { $as_echo "$as_me:$LINENO: result: no" >&5
11659 $as_echo "no" >&6; }
11662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11663 CPPFLAGS=$cppflags_save
11666 if test $ac_cv_c_compiler_gnu = yes; then
11667 { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
11668 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
11669 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
11670 $as_echo_n "(cached) " >&6
11671 else
11672 ac_pattern="Autoconf.*'x'"
11673 cat >conftest.$ac_ext <<_ACEOF
11674 /* confdefs.h. */
11675 _ACEOF
11676 cat confdefs.h >>conftest.$ac_ext
11677 cat >>conftest.$ac_ext <<_ACEOF
11678 /* end confdefs.h. */
11679 #include <sgtty.h>
11680 Autoconf TIOCGETP
11681 _ACEOF
11682 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11683 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11684 ac_cv_prog_gcc_traditional=yes
11685 else
11686 ac_cv_prog_gcc_traditional=no
11688 rm -f conftest*
11691 if test $ac_cv_prog_gcc_traditional = no; then
11692 cat >conftest.$ac_ext <<_ACEOF
11693 /* confdefs.h. */
11694 _ACEOF
11695 cat confdefs.h >>conftest.$ac_ext
11696 cat >>conftest.$ac_ext <<_ACEOF
11697 /* end confdefs.h. */
11698 #include <termio.h>
11699 Autoconf TCGETA
11700 _ACEOF
11701 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11702 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11703 ac_cv_prog_gcc_traditional=yes
11705 rm -f conftest*
11709 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
11710 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
11711 if test $ac_cv_prog_gcc_traditional = yes; then
11712 CC="$CC -traditional"
11716 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11717 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11718 if test "${ac_cv_c_const+set}" = set; then
11719 $as_echo_n "(cached) " >&6
11720 else
11721 cat >conftest.$ac_ext <<_ACEOF
11722 /* confdefs.h. */
11723 _ACEOF
11724 cat confdefs.h >>conftest.$ac_ext
11725 cat >>conftest.$ac_ext <<_ACEOF
11726 /* end confdefs.h. */
11729 main ()
11731 /* FIXME: Include the comments suggested by Paul. */
11732 #ifndef __cplusplus
11733 /* Ultrix mips cc rejects this. */
11734 typedef int charset[2];
11735 const charset cs;
11736 /* SunOS 4.1.1 cc rejects this. */
11737 char const *const *pcpcc;
11738 char **ppc;
11739 /* NEC SVR4.0.2 mips cc rejects this. */
11740 struct point {int x, y;};
11741 static struct point const zero = {0,0};
11742 /* AIX XL C 1.02.0.0 rejects this.
11743 It does not let you subtract one const X* pointer from another in
11744 an arm of an if-expression whose if-part is not a constant
11745 expression */
11746 const char *g = "string";
11747 pcpcc = &g + (g ? g-g : 0);
11748 /* HPUX 7.0 cc rejects these. */
11749 ++pcpcc;
11750 ppc = (char**) pcpcc;
11751 pcpcc = (char const *const *) ppc;
11752 { /* SCO 3.2v4 cc rejects this. */
11753 char *t;
11754 char const *s = 0 ? (char *) 0 : (char const *) 0;
11756 *t++ = 0;
11757 if (s) return 0;
11759 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11760 int x[] = {25, 17};
11761 const int *foo = &x[0];
11762 ++foo;
11764 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11765 typedef const int *iptr;
11766 iptr p = 0;
11767 ++p;
11769 { /* AIX XL C 1.02.0.0 rejects this saying
11770 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11771 struct s { int j; const int *ap[3]; };
11772 struct s *b; b->j = 5;
11774 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11775 const int foo = 10;
11776 if (!foo) return 0;
11778 return !cs[0] && !zero.x;
11779 #endif
11782 return 0;
11784 _ACEOF
11785 rm -f conftest.$ac_objext
11786 if { (ac_try="$ac_compile"
11787 case "(($ac_try" in
11788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11789 *) ac_try_echo=$ac_try;;
11790 esac
11791 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11792 $as_echo "$ac_try_echo") >&5
11793 (eval "$ac_compile") 2>conftest.er1
11794 ac_status=$?
11795 grep -v '^ *+' conftest.er1 >conftest.err
11796 rm -f conftest.er1
11797 cat conftest.err >&5
11798 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11799 (exit $ac_status); } && {
11800 test -z "$ac_c_werror_flag" ||
11801 test ! -s conftest.err
11802 } && test -s conftest.$ac_objext; then
11803 ac_cv_c_const=yes
11804 else
11805 $as_echo "$as_me: failed program was:" >&5
11806 sed 's/^/| /' conftest.$ac_ext >&5
11808 ac_cv_c_const=no
11811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11813 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11814 $as_echo "$ac_cv_c_const" >&6; }
11815 if test $ac_cv_c_const = no; then
11817 cat >>confdefs.h <<\_ACEOF
11818 #define const /**/
11819 _ACEOF
11823 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
11824 $as_echo_n "checking for working volatile... " >&6; }
11825 if test "${ac_cv_c_volatile+set}" = set; then
11826 $as_echo_n "(cached) " >&6
11827 else
11828 cat >conftest.$ac_ext <<_ACEOF
11829 /* confdefs.h. */
11830 _ACEOF
11831 cat confdefs.h >>conftest.$ac_ext
11832 cat >>conftest.$ac_ext <<_ACEOF
11833 /* end confdefs.h. */
11836 main ()
11839 volatile int x;
11840 int * volatile y = (int *) 0;
11841 return !x && !y;
11843 return 0;
11845 _ACEOF
11846 rm -f conftest.$ac_objext
11847 if { (ac_try="$ac_compile"
11848 case "(($ac_try" in
11849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11850 *) ac_try_echo=$ac_try;;
11851 esac
11852 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11853 $as_echo "$ac_try_echo") >&5
11854 (eval "$ac_compile") 2>conftest.er1
11855 ac_status=$?
11856 grep -v '^ *+' conftest.er1 >conftest.err
11857 rm -f conftest.er1
11858 cat conftest.err >&5
11859 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11860 (exit $ac_status); } && {
11861 test -z "$ac_c_werror_flag" ||
11862 test ! -s conftest.err
11863 } && test -s conftest.$ac_objext; then
11864 ac_cv_c_volatile=yes
11865 else
11866 $as_echo "$as_me: failed program was:" >&5
11867 sed 's/^/| /' conftest.$ac_ext >&5
11869 ac_cv_c_volatile=no
11872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11874 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
11875 $as_echo "$ac_cv_c_volatile" >&6; }
11876 if test $ac_cv_c_volatile = no; then
11878 cat >>confdefs.h <<\_ACEOF
11879 #define volatile /**/
11880 _ACEOF
11884 { $as_echo "$as_me:$LINENO: checking for mode_t" >&5
11885 $as_echo_n "checking for mode_t... " >&6; }
11886 if test "${ac_cv_type_mode_t+set}" = set; then
11887 $as_echo_n "(cached) " >&6
11888 else
11889 ac_cv_type_mode_t=no
11890 cat >conftest.$ac_ext <<_ACEOF
11891 /* confdefs.h. */
11892 _ACEOF
11893 cat confdefs.h >>conftest.$ac_ext
11894 cat >>conftest.$ac_ext <<_ACEOF
11895 /* end confdefs.h. */
11896 $ac_includes_default
11898 main ()
11900 if (sizeof (mode_t))
11901 return 0;
11903 return 0;
11905 _ACEOF
11906 rm -f conftest.$ac_objext
11907 if { (ac_try="$ac_compile"
11908 case "(($ac_try" in
11909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11910 *) ac_try_echo=$ac_try;;
11911 esac
11912 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11913 $as_echo "$ac_try_echo") >&5
11914 (eval "$ac_compile") 2>conftest.er1
11915 ac_status=$?
11916 grep -v '^ *+' conftest.er1 >conftest.err
11917 rm -f conftest.er1
11918 cat conftest.err >&5
11919 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11920 (exit $ac_status); } && {
11921 test -z "$ac_c_werror_flag" ||
11922 test ! -s conftest.err
11923 } && test -s conftest.$ac_objext; then
11924 cat >conftest.$ac_ext <<_ACEOF
11925 /* confdefs.h. */
11926 _ACEOF
11927 cat confdefs.h >>conftest.$ac_ext
11928 cat >>conftest.$ac_ext <<_ACEOF
11929 /* end confdefs.h. */
11930 $ac_includes_default
11932 main ()
11934 if (sizeof ((mode_t)))
11935 return 0;
11937 return 0;
11939 _ACEOF
11940 rm -f conftest.$ac_objext
11941 if { (ac_try="$ac_compile"
11942 case "(($ac_try" in
11943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11944 *) ac_try_echo=$ac_try;;
11945 esac
11946 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11947 $as_echo "$ac_try_echo") >&5
11948 (eval "$ac_compile") 2>conftest.er1
11949 ac_status=$?
11950 grep -v '^ *+' conftest.er1 >conftest.err
11951 rm -f conftest.er1
11952 cat conftest.err >&5
11953 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11954 (exit $ac_status); } && {
11955 test -z "$ac_c_werror_flag" ||
11956 test ! -s conftest.err
11957 } && test -s conftest.$ac_objext; then
11959 else
11960 $as_echo "$as_me: failed program was:" >&5
11961 sed 's/^/| /' conftest.$ac_ext >&5
11963 ac_cv_type_mode_t=yes
11966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11967 else
11968 $as_echo "$as_me: failed program was:" >&5
11969 sed 's/^/| /' conftest.$ac_ext >&5
11974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11976 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
11977 $as_echo "$ac_cv_type_mode_t" >&6; }
11978 if test "x$ac_cv_type_mode_t" = x""yes; then
11980 else
11982 cat >>confdefs.h <<_ACEOF
11983 #define mode_t int
11984 _ACEOF
11988 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
11989 $as_echo_n "checking for off_t... " >&6; }
11990 if test "${ac_cv_type_off_t+set}" = set; then
11991 $as_echo_n "(cached) " >&6
11992 else
11993 ac_cv_type_off_t=no
11994 cat >conftest.$ac_ext <<_ACEOF
11995 /* confdefs.h. */
11996 _ACEOF
11997 cat confdefs.h >>conftest.$ac_ext
11998 cat >>conftest.$ac_ext <<_ACEOF
11999 /* end confdefs.h. */
12000 $ac_includes_default
12002 main ()
12004 if (sizeof (off_t))
12005 return 0;
12007 return 0;
12009 _ACEOF
12010 rm -f conftest.$ac_objext
12011 if { (ac_try="$ac_compile"
12012 case "(($ac_try" in
12013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12014 *) ac_try_echo=$ac_try;;
12015 esac
12016 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12017 $as_echo "$ac_try_echo") >&5
12018 (eval "$ac_compile") 2>conftest.er1
12019 ac_status=$?
12020 grep -v '^ *+' conftest.er1 >conftest.err
12021 rm -f conftest.er1
12022 cat conftest.err >&5
12023 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12024 (exit $ac_status); } && {
12025 test -z "$ac_c_werror_flag" ||
12026 test ! -s conftest.err
12027 } && test -s conftest.$ac_objext; then
12028 cat >conftest.$ac_ext <<_ACEOF
12029 /* confdefs.h. */
12030 _ACEOF
12031 cat confdefs.h >>conftest.$ac_ext
12032 cat >>conftest.$ac_ext <<_ACEOF
12033 /* end confdefs.h. */
12034 $ac_includes_default
12036 main ()
12038 if (sizeof ((off_t)))
12039 return 0;
12041 return 0;
12043 _ACEOF
12044 rm -f conftest.$ac_objext
12045 if { (ac_try="$ac_compile"
12046 case "(($ac_try" in
12047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12048 *) ac_try_echo=$ac_try;;
12049 esac
12050 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12051 $as_echo "$ac_try_echo") >&5
12052 (eval "$ac_compile") 2>conftest.er1
12053 ac_status=$?
12054 grep -v '^ *+' conftest.er1 >conftest.err
12055 rm -f conftest.er1
12056 cat conftest.err >&5
12057 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12058 (exit $ac_status); } && {
12059 test -z "$ac_c_werror_flag" ||
12060 test ! -s conftest.err
12061 } && test -s conftest.$ac_objext; then
12063 else
12064 $as_echo "$as_me: failed program was:" >&5
12065 sed 's/^/| /' conftest.$ac_ext >&5
12067 ac_cv_type_off_t=yes
12070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12071 else
12072 $as_echo "$as_me: failed program was:" >&5
12073 sed 's/^/| /' conftest.$ac_ext >&5
12078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12080 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
12081 $as_echo "$ac_cv_type_off_t" >&6; }
12082 if test "x$ac_cv_type_off_t" = x""yes; then
12084 else
12086 cat >>confdefs.h <<_ACEOF
12087 #define off_t long int
12088 _ACEOF
12092 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
12093 $as_echo_n "checking for pid_t... " >&6; }
12094 if test "${ac_cv_type_pid_t+set}" = set; then
12095 $as_echo_n "(cached) " >&6
12096 else
12097 ac_cv_type_pid_t=no
12098 cat >conftest.$ac_ext <<_ACEOF
12099 /* confdefs.h. */
12100 _ACEOF
12101 cat confdefs.h >>conftest.$ac_ext
12102 cat >>conftest.$ac_ext <<_ACEOF
12103 /* end confdefs.h. */
12104 $ac_includes_default
12106 main ()
12108 if (sizeof (pid_t))
12109 return 0;
12111 return 0;
12113 _ACEOF
12114 rm -f conftest.$ac_objext
12115 if { (ac_try="$ac_compile"
12116 case "(($ac_try" in
12117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12118 *) ac_try_echo=$ac_try;;
12119 esac
12120 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12121 $as_echo "$ac_try_echo") >&5
12122 (eval "$ac_compile") 2>conftest.er1
12123 ac_status=$?
12124 grep -v '^ *+' conftest.er1 >conftest.err
12125 rm -f conftest.er1
12126 cat conftest.err >&5
12127 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12128 (exit $ac_status); } && {
12129 test -z "$ac_c_werror_flag" ||
12130 test ! -s conftest.err
12131 } && test -s conftest.$ac_objext; then
12132 cat >conftest.$ac_ext <<_ACEOF
12133 /* confdefs.h. */
12134 _ACEOF
12135 cat confdefs.h >>conftest.$ac_ext
12136 cat >>conftest.$ac_ext <<_ACEOF
12137 /* end confdefs.h. */
12138 $ac_includes_default
12140 main ()
12142 if (sizeof ((pid_t)))
12143 return 0;
12145 return 0;
12147 _ACEOF
12148 rm -f conftest.$ac_objext
12149 if { (ac_try="$ac_compile"
12150 case "(($ac_try" in
12151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12152 *) ac_try_echo=$ac_try;;
12153 esac
12154 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12155 $as_echo "$ac_try_echo") >&5
12156 (eval "$ac_compile") 2>conftest.er1
12157 ac_status=$?
12158 grep -v '^ *+' conftest.er1 >conftest.err
12159 rm -f conftest.er1
12160 cat conftest.err >&5
12161 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12162 (exit $ac_status); } && {
12163 test -z "$ac_c_werror_flag" ||
12164 test ! -s conftest.err
12165 } && test -s conftest.$ac_objext; then
12167 else
12168 $as_echo "$as_me: failed program was:" >&5
12169 sed 's/^/| /' conftest.$ac_ext >&5
12171 ac_cv_type_pid_t=yes
12174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12175 else
12176 $as_echo "$as_me: failed program was:" >&5
12177 sed 's/^/| /' conftest.$ac_ext >&5
12182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12184 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
12185 $as_echo "$ac_cv_type_pid_t" >&6; }
12186 if test "x$ac_cv_type_pid_t" = x""yes; then
12188 else
12190 cat >>confdefs.h <<_ACEOF
12191 #define pid_t int
12192 _ACEOF
12196 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
12197 $as_echo_n "checking for size_t... " >&6; }
12198 if test "${ac_cv_type_size_t+set}" = set; then
12199 $as_echo_n "(cached) " >&6
12200 else
12201 ac_cv_type_size_t=no
12202 cat >conftest.$ac_ext <<_ACEOF
12203 /* confdefs.h. */
12204 _ACEOF
12205 cat confdefs.h >>conftest.$ac_ext
12206 cat >>conftest.$ac_ext <<_ACEOF
12207 /* end confdefs.h. */
12208 $ac_includes_default
12210 main ()
12212 if (sizeof (size_t))
12213 return 0;
12215 return 0;
12217 _ACEOF
12218 rm -f conftest.$ac_objext
12219 if { (ac_try="$ac_compile"
12220 case "(($ac_try" in
12221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12222 *) ac_try_echo=$ac_try;;
12223 esac
12224 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12225 $as_echo "$ac_try_echo") >&5
12226 (eval "$ac_compile") 2>conftest.er1
12227 ac_status=$?
12228 grep -v '^ *+' conftest.er1 >conftest.err
12229 rm -f conftest.er1
12230 cat conftest.err >&5
12231 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12232 (exit $ac_status); } && {
12233 test -z "$ac_c_werror_flag" ||
12234 test ! -s conftest.err
12235 } && test -s conftest.$ac_objext; then
12236 cat >conftest.$ac_ext <<_ACEOF
12237 /* confdefs.h. */
12238 _ACEOF
12239 cat confdefs.h >>conftest.$ac_ext
12240 cat >>conftest.$ac_ext <<_ACEOF
12241 /* end confdefs.h. */
12242 $ac_includes_default
12244 main ()
12246 if (sizeof ((size_t)))
12247 return 0;
12249 return 0;
12251 _ACEOF
12252 rm -f conftest.$ac_objext
12253 if { (ac_try="$ac_compile"
12254 case "(($ac_try" in
12255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12256 *) ac_try_echo=$ac_try;;
12257 esac
12258 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12259 $as_echo "$ac_try_echo") >&5
12260 (eval "$ac_compile") 2>conftest.er1
12261 ac_status=$?
12262 grep -v '^ *+' conftest.er1 >conftest.err
12263 rm -f conftest.er1
12264 cat conftest.err >&5
12265 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12266 (exit $ac_status); } && {
12267 test -z "$ac_c_werror_flag" ||
12268 test ! -s conftest.err
12269 } && test -s conftest.$ac_objext; then
12271 else
12272 $as_echo "$as_me: failed program was:" >&5
12273 sed 's/^/| /' conftest.$ac_ext >&5
12275 ac_cv_type_size_t=yes
12278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12279 else
12280 $as_echo "$as_me: failed program was:" >&5
12281 sed 's/^/| /' conftest.$ac_ext >&5
12286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12288 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
12289 $as_echo "$ac_cv_type_size_t" >&6; }
12290 if test "x$ac_cv_type_size_t" = x""yes; then
12292 else
12294 cat >>confdefs.h <<_ACEOF
12295 #define size_t unsigned int
12296 _ACEOF
12300 { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
12301 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
12302 if test "${ac_cv_type_uid_t+set}" = set; then
12303 $as_echo_n "(cached) " >&6
12304 else
12305 cat >conftest.$ac_ext <<_ACEOF
12306 /* confdefs.h. */
12307 _ACEOF
12308 cat confdefs.h >>conftest.$ac_ext
12309 cat >>conftest.$ac_ext <<_ACEOF
12310 /* end confdefs.h. */
12311 #include <sys/types.h>
12313 _ACEOF
12314 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12315 $EGREP "uid_t" >/dev/null 2>&1; then
12316 ac_cv_type_uid_t=yes
12317 else
12318 ac_cv_type_uid_t=no
12320 rm -f conftest*
12323 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
12324 $as_echo "$ac_cv_type_uid_t" >&6; }
12325 if test $ac_cv_type_uid_t = no; then
12327 cat >>confdefs.h <<\_ACEOF
12328 #define uid_t int
12329 _ACEOF
12332 cat >>confdefs.h <<\_ACEOF
12333 #define gid_t int
12334 _ACEOF
12338 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
12339 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
12340 if test "${ac_cv_header_time+set}" = set; then
12341 $as_echo_n "(cached) " >&6
12342 else
12343 cat >conftest.$ac_ext <<_ACEOF
12344 /* confdefs.h. */
12345 _ACEOF
12346 cat confdefs.h >>conftest.$ac_ext
12347 cat >>conftest.$ac_ext <<_ACEOF
12348 /* end confdefs.h. */
12349 #include <sys/types.h>
12350 #include <sys/time.h>
12351 #include <time.h>
12354 main ()
12356 if ((struct tm *) 0)
12357 return 0;
12359 return 0;
12361 _ACEOF
12362 rm -f conftest.$ac_objext
12363 if { (ac_try="$ac_compile"
12364 case "(($ac_try" in
12365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12366 *) ac_try_echo=$ac_try;;
12367 esac
12368 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12369 $as_echo "$ac_try_echo") >&5
12370 (eval "$ac_compile") 2>conftest.er1
12371 ac_status=$?
12372 grep -v '^ *+' conftest.er1 >conftest.err
12373 rm -f conftest.er1
12374 cat conftest.err >&5
12375 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12376 (exit $ac_status); } && {
12377 test -z "$ac_c_werror_flag" ||
12378 test ! -s conftest.err
12379 } && test -s conftest.$ac_objext; then
12380 ac_cv_header_time=yes
12381 else
12382 $as_echo "$as_me: failed program was:" >&5
12383 sed 's/^/| /' conftest.$ac_ext >&5
12385 ac_cv_header_time=no
12388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12390 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
12391 $as_echo "$ac_cv_header_time" >&6; }
12392 if test $ac_cv_header_time = yes; then
12394 cat >>confdefs.h <<\_ACEOF
12395 #define TIME_WITH_SYS_TIME 1
12396 _ACEOF
12400 { $as_echo "$as_me:$LINENO: checking for ino_t" >&5
12401 $as_echo_n "checking for ino_t... " >&6; }
12402 if test "${ac_cv_type_ino_t+set}" = set; then
12403 $as_echo_n "(cached) " >&6
12404 else
12405 ac_cv_type_ino_t=no
12406 cat >conftest.$ac_ext <<_ACEOF
12407 /* confdefs.h. */
12408 _ACEOF
12409 cat confdefs.h >>conftest.$ac_ext
12410 cat >>conftest.$ac_ext <<_ACEOF
12411 /* end confdefs.h. */
12412 $ac_includes_default
12414 main ()
12416 if (sizeof (ino_t))
12417 return 0;
12419 return 0;
12421 _ACEOF
12422 rm -f conftest.$ac_objext
12423 if { (ac_try="$ac_compile"
12424 case "(($ac_try" in
12425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12426 *) ac_try_echo=$ac_try;;
12427 esac
12428 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12429 $as_echo "$ac_try_echo") >&5
12430 (eval "$ac_compile") 2>conftest.er1
12431 ac_status=$?
12432 grep -v '^ *+' conftest.er1 >conftest.err
12433 rm -f conftest.er1
12434 cat conftest.err >&5
12435 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12436 (exit $ac_status); } && {
12437 test -z "$ac_c_werror_flag" ||
12438 test ! -s conftest.err
12439 } && test -s conftest.$ac_objext; then
12440 cat >conftest.$ac_ext <<_ACEOF
12441 /* confdefs.h. */
12442 _ACEOF
12443 cat confdefs.h >>conftest.$ac_ext
12444 cat >>conftest.$ac_ext <<_ACEOF
12445 /* end confdefs.h. */
12446 $ac_includes_default
12448 main ()
12450 if (sizeof ((ino_t)))
12451 return 0;
12453 return 0;
12455 _ACEOF
12456 rm -f conftest.$ac_objext
12457 if { (ac_try="$ac_compile"
12458 case "(($ac_try" in
12459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12460 *) ac_try_echo=$ac_try;;
12461 esac
12462 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12463 $as_echo "$ac_try_echo") >&5
12464 (eval "$ac_compile") 2>conftest.er1
12465 ac_status=$?
12466 grep -v '^ *+' conftest.er1 >conftest.err
12467 rm -f conftest.er1
12468 cat conftest.err >&5
12469 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12470 (exit $ac_status); } && {
12471 test -z "$ac_c_werror_flag" ||
12472 test ! -s conftest.err
12473 } && test -s conftest.$ac_objext; then
12475 else
12476 $as_echo "$as_me: failed program was:" >&5
12477 sed 's/^/| /' conftest.$ac_ext >&5
12479 ac_cv_type_ino_t=yes
12482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12483 else
12484 $as_echo "$as_me: failed program was:" >&5
12485 sed 's/^/| /' conftest.$ac_ext >&5
12490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12492 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
12493 $as_echo "$ac_cv_type_ino_t" >&6; }
12494 if test "x$ac_cv_type_ino_t" = x""yes; then
12496 else
12498 cat >>confdefs.h <<_ACEOF
12499 #define ino_t long
12500 _ACEOF
12504 { $as_echo "$as_me:$LINENO: checking for dev_t" >&5
12505 $as_echo_n "checking for dev_t... " >&6; }
12506 if test "${ac_cv_type_dev_t+set}" = set; then
12507 $as_echo_n "(cached) " >&6
12508 else
12509 ac_cv_type_dev_t=no
12510 cat >conftest.$ac_ext <<_ACEOF
12511 /* confdefs.h. */
12512 _ACEOF
12513 cat confdefs.h >>conftest.$ac_ext
12514 cat >>conftest.$ac_ext <<_ACEOF
12515 /* end confdefs.h. */
12516 $ac_includes_default
12518 main ()
12520 if (sizeof (dev_t))
12521 return 0;
12523 return 0;
12525 _ACEOF
12526 rm -f conftest.$ac_objext
12527 if { (ac_try="$ac_compile"
12528 case "(($ac_try" in
12529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12530 *) ac_try_echo=$ac_try;;
12531 esac
12532 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12533 $as_echo "$ac_try_echo") >&5
12534 (eval "$ac_compile") 2>conftest.er1
12535 ac_status=$?
12536 grep -v '^ *+' conftest.er1 >conftest.err
12537 rm -f conftest.er1
12538 cat conftest.err >&5
12539 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12540 (exit $ac_status); } && {
12541 test -z "$ac_c_werror_flag" ||
12542 test ! -s conftest.err
12543 } && test -s conftest.$ac_objext; then
12544 cat >conftest.$ac_ext <<_ACEOF
12545 /* confdefs.h. */
12546 _ACEOF
12547 cat confdefs.h >>conftest.$ac_ext
12548 cat >>conftest.$ac_ext <<_ACEOF
12549 /* end confdefs.h. */
12550 $ac_includes_default
12552 main ()
12554 if (sizeof ((dev_t)))
12555 return 0;
12557 return 0;
12559 _ACEOF
12560 rm -f conftest.$ac_objext
12561 if { (ac_try="$ac_compile"
12562 case "(($ac_try" in
12563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12564 *) ac_try_echo=$ac_try;;
12565 esac
12566 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12567 $as_echo "$ac_try_echo") >&5
12568 (eval "$ac_compile") 2>conftest.er1
12569 ac_status=$?
12570 grep -v '^ *+' conftest.er1 >conftest.err
12571 rm -f conftest.er1
12572 cat conftest.err >&5
12573 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12574 (exit $ac_status); } && {
12575 test -z "$ac_c_werror_flag" ||
12576 test ! -s conftest.err
12577 } && test -s conftest.$ac_objext; then
12579 else
12580 $as_echo "$as_me: failed program was:" >&5
12581 sed 's/^/| /' conftest.$ac_ext >&5
12583 ac_cv_type_dev_t=yes
12586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12587 else
12588 $as_echo "$as_me: failed program was:" >&5
12589 sed 's/^/| /' conftest.$ac_ext >&5
12594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12596 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
12597 $as_echo "$ac_cv_type_dev_t" >&6; }
12598 if test "x$ac_cv_type_dev_t" = x""yes; then
12600 else
12602 cat >>confdefs.h <<_ACEOF
12603 #define dev_t unsigned
12604 _ACEOF
12609 { $as_echo "$as_me:$LINENO: checking for rlim_t" >&5
12610 $as_echo_n "checking for rlim_t... " >&6; }
12611 if eval "test \"`echo '$''{'ac_cv_type_rlim_t'+set}'`\" = set"; then
12612 { $as_echo "$as_me:$LINENO: result: (cached) $ac_cv_type_rlim_t" >&5
12613 $as_echo "(cached) $ac_cv_type_rlim_t" >&6; }
12614 else
12615 cat >conftest.$ac_ext <<_ACEOF
12616 /* confdefs.h. */
12617 _ACEOF
12618 cat confdefs.h >>conftest.$ac_ext
12619 cat >>conftest.$ac_ext <<_ACEOF
12620 /* end confdefs.h. */
12622 #include <sys/types.h>
12623 #if STDC_HEADERS
12624 # include <stdlib.h>
12625 # include <stddef.h>
12626 #endif
12627 #ifdef HAVE_SYS_RESOURCE_H
12628 # include <sys/resource.h>
12629 #endif
12631 _ACEOF
12632 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12633 $EGREP "(^|[^a-zA-Z_0-9])rlim_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
12634 ac_cv_type_rlim_t=yes
12635 else
12636 ac_cv_type_rlim_t=no
12638 rm -f conftest*
12640 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_rlim_t" >&5
12641 $as_echo "$ac_cv_type_rlim_t" >&6; }
12643 if test $ac_cv_type_rlim_t = no; then
12644 cat >> confdefs.h <<\EOF
12645 #define rlim_t unsigned long
12649 { $as_echo "$as_me:$LINENO: checking for stack_t" >&5
12650 $as_echo_n "checking for stack_t... " >&6; }
12651 if eval "test \"`echo '$''{'ac_cv_type_stack_t'+set}'`\" = set"; then
12652 { $as_echo "$as_me:$LINENO: result: (cached) $ac_cv_type_stack_t" >&5
12653 $as_echo "(cached) $ac_cv_type_stack_t" >&6; }
12654 else
12655 cat >conftest.$ac_ext <<_ACEOF
12656 /* confdefs.h. */
12657 _ACEOF
12658 cat confdefs.h >>conftest.$ac_ext
12659 cat >>conftest.$ac_ext <<_ACEOF
12660 /* end confdefs.h. */
12662 #include <sys/types.h>
12663 #if STDC_HEADERS
12664 # include <stdlib.h>
12665 # include <stddef.h>
12666 #endif
12667 #include <signal.h>
12669 _ACEOF
12670 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12671 $EGREP "stack_t" >/dev/null 2>&1; then
12672 ac_cv_type_stack_t=yes
12673 else
12674 ac_cv_type_stack_t=no
12676 rm -f conftest*
12678 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_stack_t" >&5
12679 $as_echo "$ac_cv_type_stack_t" >&6; }
12681 if test $ac_cv_type_stack_t = no; then
12682 cat >> confdefs.h <<\EOF
12683 #define stack_t struct sigaltstack
12687 { $as_echo "$as_me:$LINENO: checking whether stack_t has an ss_base field" >&5
12688 $as_echo_n "checking whether stack_t has an ss_base field... " >&6; }
12689 cat >conftest.$ac_ext <<_ACEOF
12690 /* confdefs.h. */
12691 _ACEOF
12692 cat confdefs.h >>conftest.$ac_ext
12693 cat >>conftest.$ac_ext <<_ACEOF
12694 /* end confdefs.h. */
12696 #include <sys/types.h>
12697 #if STDC_HEADERS
12698 # include <stdlib.h>
12699 # include <stddef.h>
12700 #endif
12701 #include <signal.h>
12702 #include "confdefs.h"
12705 main ()
12707 stack_t sigstk; sigstk.ss_base = 0;
12709 return 0;
12711 _ACEOF
12712 rm -f conftest.$ac_objext
12713 if { (ac_try="$ac_compile"
12714 case "(($ac_try" in
12715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12716 *) ac_try_echo=$ac_try;;
12717 esac
12718 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12719 $as_echo "$ac_try_echo") >&5
12720 (eval "$ac_compile") 2>conftest.er1
12721 ac_status=$?
12722 grep -v '^ *+' conftest.er1 >conftest.err
12723 rm -f conftest.er1
12724 cat conftest.err >&5
12725 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12726 (exit $ac_status); } && {
12727 test -z "$ac_c_werror_flag" ||
12728 test ! -s conftest.err
12729 } && test -s conftest.$ac_objext; then
12730 { $as_echo "$as_me:$LINENO: result: yes" >&5
12731 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
12732 #define HAVE_SS_BASE 1
12733 _ACEOF
12735 else
12736 $as_echo "$as_me: failed program was:" >&5
12737 sed 's/^/| /' conftest.$ac_ext >&5
12739 { $as_echo "$as_me:$LINENO: result: no" >&5
12740 $as_echo "no" >&6; }
12743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12745 olibs="$LIBS"
12746 { $as_echo "$as_me:$LINENO: checking --with-tlib argument" >&5
12747 $as_echo_n "checking --with-tlib argument... " >&6; }
12749 # Check whether --with-tlib was given.
12750 if test "${with_tlib+set}" = set; then
12751 withval=$with_tlib;
12754 if test -n "$with_tlib"; then
12755 { $as_echo "$as_me:$LINENO: result: $with_tlib" >&5
12756 $as_echo "$with_tlib" >&6; }
12757 LIBS="$LIBS -l$with_tlib"
12758 { $as_echo "$as_me:$LINENO: checking for linking with $with_tlib library" >&5
12759 $as_echo_n "checking for linking with $with_tlib library... " >&6; }
12760 cat >conftest.$ac_ext <<_ACEOF
12761 /* confdefs.h. */
12762 _ACEOF
12763 cat confdefs.h >>conftest.$ac_ext
12764 cat >>conftest.$ac_ext <<_ACEOF
12765 /* end confdefs.h. */
12768 main ()
12772 return 0;
12774 _ACEOF
12775 rm -f conftest.$ac_objext conftest$ac_exeext
12776 if { (ac_try="$ac_link"
12777 case "(($ac_try" in
12778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12779 *) ac_try_echo=$ac_try;;
12780 esac
12781 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12782 $as_echo "$ac_try_echo") >&5
12783 (eval "$ac_link") 2>conftest.er1
12784 ac_status=$?
12785 grep -v '^ *+' conftest.er1 >conftest.err
12786 rm -f conftest.er1
12787 cat conftest.err >&5
12788 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12789 (exit $ac_status); } && {
12790 test -z "$ac_c_werror_flag" ||
12791 test ! -s conftest.err
12792 } && test -s conftest$ac_exeext && {
12793 test "$cross_compiling" = yes ||
12794 $as_test_x conftest$ac_exeext
12795 }; then
12796 { $as_echo "$as_me:$LINENO: result: OK" >&5
12797 $as_echo "OK" >&6; }
12798 else
12799 $as_echo "$as_me: failed program was:" >&5
12800 sed 's/^/| /' conftest.$ac_ext >&5
12802 { { $as_echo "$as_me:$LINENO: error: FAILED" >&5
12803 $as_echo "$as_me: error: FAILED" >&2;}
12804 { (exit 1); exit 1; }; }
12807 rm -rf conftest.dSYM
12808 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12809 conftest$ac_exeext conftest.$ac_ext
12810 olibs="$LIBS"
12811 else
12812 { $as_echo "$as_me:$LINENO: result: empty: automatic terminal library selection" >&5
12813 $as_echo "empty: automatic terminal library selection" >&6; }
12814 case "`uname -s 2>/dev/null`" in
12815 OSF1|SCO_SV) tlibs="ncurses curses termlib termcap";;
12816 *) tlibs="ncurses termlib termcap curses";;
12817 esac
12818 for libname in $tlibs; do
12820 as_ac_Lib=`$as_echo "ac_cv_lib_${libname}''_tgetent" | $as_tr_sh`
12821 { $as_echo "$as_me:$LINENO: checking for tgetent in -l${libname}" >&5
12822 $as_echo_n "checking for tgetent in -l${libname}... " >&6; }
12823 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
12824 $as_echo_n "(cached) " >&6
12825 else
12826 ac_check_lib_save_LIBS=$LIBS
12827 LIBS="-l${libname} $LIBS"
12828 cat >conftest.$ac_ext <<_ACEOF
12829 /* confdefs.h. */
12830 _ACEOF
12831 cat confdefs.h >>conftest.$ac_ext
12832 cat >>conftest.$ac_ext <<_ACEOF
12833 /* end confdefs.h. */
12835 /* Override any GCC internal prototype to avoid an error.
12836 Use char because int might match the return type of a GCC
12837 builtin and then its argument prototype would still apply. */
12838 #ifdef __cplusplus
12839 extern "C"
12840 #endif
12841 char tgetent ();
12843 main ()
12845 return tgetent ();
12847 return 0;
12849 _ACEOF
12850 rm -f conftest.$ac_objext conftest$ac_exeext
12851 if { (ac_try="$ac_link"
12852 case "(($ac_try" in
12853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12854 *) ac_try_echo=$ac_try;;
12855 esac
12856 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12857 $as_echo "$ac_try_echo") >&5
12858 (eval "$ac_link") 2>conftest.er1
12859 ac_status=$?
12860 grep -v '^ *+' conftest.er1 >conftest.err
12861 rm -f conftest.er1
12862 cat conftest.err >&5
12863 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12864 (exit $ac_status); } && {
12865 test -z "$ac_c_werror_flag" ||
12866 test ! -s conftest.err
12867 } && test -s conftest$ac_exeext && {
12868 test "$cross_compiling" = yes ||
12869 $as_test_x conftest$ac_exeext
12870 }; then
12871 eval "$as_ac_Lib=yes"
12872 else
12873 $as_echo "$as_me: failed program was:" >&5
12874 sed 's/^/| /' conftest.$ac_ext >&5
12876 eval "$as_ac_Lib=no"
12879 rm -rf conftest.dSYM
12880 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12881 conftest$ac_exeext conftest.$ac_ext
12882 LIBS=$ac_check_lib_save_LIBS
12884 ac_res=`eval 'as_val=${'$as_ac_Lib'}
12885 $as_echo "$as_val"'`
12886 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12887 $as_echo "$ac_res" >&6; }
12888 as_val=`eval 'as_val=${'$as_ac_Lib'}
12889 $as_echo "$as_val"'`
12890 if test "x$as_val" = x""yes; then
12891 cat >>confdefs.h <<_ACEOF
12892 #define `$as_echo "HAVE_LIB${libname}" | $as_tr_cpp` 1
12893 _ACEOF
12895 LIBS="-l${libname} $LIBS"
12899 if test "x$olibs" != "x$LIBS"; then
12900 if test "$cross_compiling" = yes; then
12901 res="FAIL"
12902 else
12903 cat >conftest.$ac_ext <<_ACEOF
12904 /* confdefs.h. */
12905 _ACEOF
12906 cat confdefs.h >>conftest.$ac_ext
12907 cat >>conftest.$ac_ext <<_ACEOF
12908 /* end confdefs.h. */
12910 #ifdef HAVE_TERMCAP_H
12911 # include <termcap.h>
12912 #endif
12913 #if STDC_HEADERS
12914 # include <stdlib.h>
12915 # include <stddef.h>
12916 #endif
12917 main() {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(0); }
12918 _ACEOF
12919 rm -f conftest$ac_exeext
12920 if { (ac_try="$ac_link"
12921 case "(($ac_try" in
12922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12923 *) ac_try_echo=$ac_try;;
12924 esac
12925 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12926 $as_echo "$ac_try_echo") >&5
12927 (eval "$ac_link") 2>&5
12928 ac_status=$?
12929 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12930 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12931 { (case "(($ac_try" in
12932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12933 *) ac_try_echo=$ac_try;;
12934 esac
12935 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12936 $as_echo "$ac_try_echo") >&5
12937 (eval "$ac_try") 2>&5
12938 ac_status=$?
12939 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12940 (exit $ac_status); }; }; then
12941 res="OK"
12942 else
12943 $as_echo "$as_me: program exited with status $ac_status" >&5
12944 $as_echo "$as_me: failed program was:" >&5
12945 sed 's/^/| /' conftest.$ac_ext >&5
12947 ( exit $ac_status )
12948 res="FAIL"
12950 rm -rf conftest.dSYM
12951 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12955 if test "$res" = "OK"; then
12956 break
12958 { $as_echo "$as_me:$LINENO: result: $libname library is not usable" >&5
12959 $as_echo "$libname library is not usable" >&6; }
12960 LIBS="$olibs"
12962 done
12963 if test "x$olibs" = "x$LIBS"; then
12964 { $as_echo "$as_me:$LINENO: result: no terminal library found" >&5
12965 $as_echo "no terminal library found" >&6; }
12969 if test "x$olibs" = "x$LIBS"; then
12970 { $as_echo "$as_me:$LINENO: checking for tgetent()" >&5
12971 $as_echo_n "checking for tgetent()... " >&6; }
12972 cat >conftest.$ac_ext <<_ACEOF
12973 /* confdefs.h. */
12974 _ACEOF
12975 cat confdefs.h >>conftest.$ac_ext
12976 cat >>conftest.$ac_ext <<_ACEOF
12977 /* end confdefs.h. */
12980 main ()
12982 char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist");
12984 return 0;
12986 _ACEOF
12987 rm -f conftest.$ac_objext conftest$ac_exeext
12988 if { (ac_try="$ac_link"
12989 case "(($ac_try" in
12990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12991 *) ac_try_echo=$ac_try;;
12992 esac
12993 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12994 $as_echo "$ac_try_echo") >&5
12995 (eval "$ac_link") 2>conftest.er1
12996 ac_status=$?
12997 grep -v '^ *+' conftest.er1 >conftest.err
12998 rm -f conftest.er1
12999 cat conftest.err >&5
13000 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13001 (exit $ac_status); } && {
13002 test -z "$ac_c_werror_flag" ||
13003 test ! -s conftest.err
13004 } && test -s conftest$ac_exeext && {
13005 test "$cross_compiling" = yes ||
13006 $as_test_x conftest$ac_exeext
13007 }; then
13008 { $as_echo "$as_me:$LINENO: result: yes" >&5
13009 $as_echo "yes" >&6; }
13010 else
13011 $as_echo "$as_me: failed program was:" >&5
13012 sed 's/^/| /' conftest.$ac_ext >&5
13014 { { $as_echo "$as_me:$LINENO: error: NOT FOUND!
13015 You need to install a terminal library; for example ncurses.
13016 Or specify the name of the library with --with-tlib." >&5
13017 $as_echo "$as_me: error: NOT FOUND!
13018 You need to install a terminal library; for example ncurses.
13019 Or specify the name of the library with --with-tlib." >&2;}
13020 { (exit 1); exit 1; }; }
13023 rm -rf conftest.dSYM
13024 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13025 conftest$ac_exeext conftest.$ac_ext
13028 { $as_echo "$as_me:$LINENO: checking whether we talk terminfo" >&5
13029 $as_echo_n "checking whether we talk terminfo... " >&6; }
13030 if test "${vim_cv_terminfo+set}" = set; then
13031 $as_echo_n "(cached) " >&6
13032 else
13034 if test "$cross_compiling" = yes; then
13036 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_terminfo'" >&5
13037 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_terminfo'" >&2;}
13038 { (exit 1); exit 1; }; }
13040 else
13041 cat >conftest.$ac_ext <<_ACEOF
13043 #include "confdefs.h"
13044 #ifdef HAVE_TERMCAP_H
13045 # include <termcap.h>
13046 #endif
13047 #ifdef HAVE_STRING_H
13048 # include <string.h>
13049 #endif
13050 #if STDC_HEADERS
13051 # include <stdlib.h>
13052 # include <stddef.h>
13053 #endif
13054 main()
13055 {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(!strcmp(s==0 ? "" : s, "1")); }
13057 _ACEOF
13058 rm -f conftest$ac_exeext
13059 if { (ac_try="$ac_link"
13060 case "(($ac_try" in
13061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13062 *) ac_try_echo=$ac_try;;
13063 esac
13064 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13065 $as_echo "$ac_try_echo") >&5
13066 (eval "$ac_link") 2>&5
13067 ac_status=$?
13068 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13069 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13070 { (case "(($ac_try" in
13071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13072 *) ac_try_echo=$ac_try;;
13073 esac
13074 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13075 $as_echo "$ac_try_echo") >&5
13076 (eval "$ac_try") 2>&5
13077 ac_status=$?
13078 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13079 (exit $ac_status); }; }; then
13081 vim_cv_terminfo=no
13083 else
13084 $as_echo "$as_me: program exited with status $ac_status" >&5
13085 $as_echo "$as_me: failed program was:" >&5
13086 sed 's/^/| /' conftest.$ac_ext >&5
13088 ( exit $ac_status )
13090 vim_cv_terminfo=yes
13093 rm -rf conftest.dSYM
13094 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13100 { $as_echo "$as_me:$LINENO: result: $vim_cv_terminfo" >&5
13101 $as_echo "$vim_cv_terminfo" >&6; }
13103 if test "x$vim_cv_terminfo" = "xyes" ; then
13104 cat >>confdefs.h <<\_ACEOF
13105 #define TERMINFO 1
13106 _ACEOF
13110 if test "x$olibs" != "x$LIBS"; then
13111 { $as_echo "$as_me:$LINENO: checking what tgetent() returns for an unknown terminal" >&5
13112 $as_echo_n "checking what tgetent() returns for an unknown terminal... " >&6; }
13113 if test "${vim_cv_tgent+set}" = set; then
13114 $as_echo_n "(cached) " >&6
13115 else
13117 if test "$cross_compiling" = yes; then
13119 { { $as_echo "$as_me:$LINENO: error: failed to compile test program." >&5
13120 $as_echo "$as_me: error: failed to compile test program." >&2;}
13121 { (exit 1); exit 1; }; }
13123 else
13124 cat >conftest.$ac_ext <<_ACEOF
13126 #include "confdefs.h"
13127 #ifdef HAVE_TERMCAP_H
13128 # include <termcap.h>
13129 #endif
13130 #if STDC_HEADERS
13131 # include <stdlib.h>
13132 # include <stddef.h>
13133 #endif
13134 main()
13135 {char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); exit(res != 0); }
13137 _ACEOF
13138 rm -f conftest$ac_exeext
13139 if { (ac_try="$ac_link"
13140 case "(($ac_try" in
13141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13142 *) ac_try_echo=$ac_try;;
13143 esac
13144 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13145 $as_echo "$ac_try_echo") >&5
13146 (eval "$ac_link") 2>&5
13147 ac_status=$?
13148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13149 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13150 { (case "(($ac_try" in
13151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13152 *) ac_try_echo=$ac_try;;
13153 esac
13154 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13155 $as_echo "$ac_try_echo") >&5
13156 (eval "$ac_try") 2>&5
13157 ac_status=$?
13158 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13159 (exit $ac_status); }; }; then
13161 vim_cv_tgent=zero
13163 else
13164 $as_echo "$as_me: program exited with status $ac_status" >&5
13165 $as_echo "$as_me: failed program was:" >&5
13166 sed 's/^/| /' conftest.$ac_ext >&5
13168 ( exit $ac_status )
13170 vim_cv_tgent=non-zero
13173 rm -rf conftest.dSYM
13174 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13180 { $as_echo "$as_me:$LINENO: result: $vim_cv_tgent" >&5
13181 $as_echo "$vim_cv_tgent" >&6; }
13183 if test "x$vim_cv_tgent" = "xzero" ; then
13184 cat >>confdefs.h <<\_ACEOF
13185 #define TGETENT_ZERO_ERR 0
13186 _ACEOF
13191 { $as_echo "$as_me:$LINENO: checking whether termcap.h contains ospeed" >&5
13192 $as_echo_n "checking whether termcap.h contains ospeed... " >&6; }
13193 cat >conftest.$ac_ext <<_ACEOF
13194 /* confdefs.h. */
13195 _ACEOF
13196 cat confdefs.h >>conftest.$ac_ext
13197 cat >>conftest.$ac_ext <<_ACEOF
13198 /* end confdefs.h. */
13200 #ifdef HAVE_TERMCAP_H
13201 # include <termcap.h>
13202 #endif
13205 main ()
13207 ospeed = 20000
13209 return 0;
13211 _ACEOF
13212 rm -f conftest.$ac_objext conftest$ac_exeext
13213 if { (ac_try="$ac_link"
13214 case "(($ac_try" in
13215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13216 *) ac_try_echo=$ac_try;;
13217 esac
13218 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13219 $as_echo "$ac_try_echo") >&5
13220 (eval "$ac_link") 2>conftest.er1
13221 ac_status=$?
13222 grep -v '^ *+' conftest.er1 >conftest.err
13223 rm -f conftest.er1
13224 cat conftest.err >&5
13225 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13226 (exit $ac_status); } && {
13227 test -z "$ac_c_werror_flag" ||
13228 test ! -s conftest.err
13229 } && test -s conftest$ac_exeext && {
13230 test "$cross_compiling" = yes ||
13231 $as_test_x conftest$ac_exeext
13232 }; then
13233 { $as_echo "$as_me:$LINENO: result: yes" >&5
13234 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13235 #define HAVE_OSPEED 1
13236 _ACEOF
13238 else
13239 $as_echo "$as_me: failed program was:" >&5
13240 sed 's/^/| /' conftest.$ac_ext >&5
13242 { $as_echo "$as_me:$LINENO: result: no" >&5
13243 $as_echo "no" >&6; }
13244 { $as_echo "$as_me:$LINENO: checking whether ospeed can be extern" >&5
13245 $as_echo_n "checking whether ospeed can be extern... " >&6; }
13246 cat >conftest.$ac_ext <<_ACEOF
13247 /* confdefs.h. */
13248 _ACEOF
13249 cat confdefs.h >>conftest.$ac_ext
13250 cat >>conftest.$ac_ext <<_ACEOF
13251 /* end confdefs.h. */
13253 #ifdef HAVE_TERMCAP_H
13254 # include <termcap.h>
13255 #endif
13256 extern short ospeed;
13259 main ()
13261 ospeed = 20000
13263 return 0;
13265 _ACEOF
13266 rm -f conftest.$ac_objext conftest$ac_exeext
13267 if { (ac_try="$ac_link"
13268 case "(($ac_try" in
13269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13270 *) ac_try_echo=$ac_try;;
13271 esac
13272 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13273 $as_echo "$ac_try_echo") >&5
13274 (eval "$ac_link") 2>conftest.er1
13275 ac_status=$?
13276 grep -v '^ *+' conftest.er1 >conftest.err
13277 rm -f conftest.er1
13278 cat conftest.err >&5
13279 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13280 (exit $ac_status); } && {
13281 test -z "$ac_c_werror_flag" ||
13282 test ! -s conftest.err
13283 } && test -s conftest$ac_exeext && {
13284 test "$cross_compiling" = yes ||
13285 $as_test_x conftest$ac_exeext
13286 }; then
13287 { $as_echo "$as_me:$LINENO: result: yes" >&5
13288 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13289 #define OSPEED_EXTERN 1
13290 _ACEOF
13292 else
13293 $as_echo "$as_me: failed program was:" >&5
13294 sed 's/^/| /' conftest.$ac_ext >&5
13296 { $as_echo "$as_me:$LINENO: result: no" >&5
13297 $as_echo "no" >&6; }
13300 rm -rf conftest.dSYM
13301 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13302 conftest$ac_exeext conftest.$ac_ext
13306 rm -rf conftest.dSYM
13307 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13308 conftest$ac_exeext conftest.$ac_ext
13310 { $as_echo "$as_me:$LINENO: checking whether termcap.h contains UP, BC and PC" >&5
13311 $as_echo_n "checking whether termcap.h contains UP, BC and PC... " >&6; }
13312 cat >conftest.$ac_ext <<_ACEOF
13313 /* confdefs.h. */
13314 _ACEOF
13315 cat confdefs.h >>conftest.$ac_ext
13316 cat >>conftest.$ac_ext <<_ACEOF
13317 /* end confdefs.h. */
13319 #ifdef HAVE_TERMCAP_H
13320 # include <termcap.h>
13321 #endif
13324 main ()
13326 if (UP == 0 && BC == 0) PC = 1
13328 return 0;
13330 _ACEOF
13331 rm -f conftest.$ac_objext conftest$ac_exeext
13332 if { (ac_try="$ac_link"
13333 case "(($ac_try" in
13334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13335 *) ac_try_echo=$ac_try;;
13336 esac
13337 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13338 $as_echo "$ac_try_echo") >&5
13339 (eval "$ac_link") 2>conftest.er1
13340 ac_status=$?
13341 grep -v '^ *+' conftest.er1 >conftest.err
13342 rm -f conftest.er1
13343 cat conftest.err >&5
13344 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13345 (exit $ac_status); } && {
13346 test -z "$ac_c_werror_flag" ||
13347 test ! -s conftest.err
13348 } && test -s conftest$ac_exeext && {
13349 test "$cross_compiling" = yes ||
13350 $as_test_x conftest$ac_exeext
13351 }; then
13352 { $as_echo "$as_me:$LINENO: result: yes" >&5
13353 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13354 #define HAVE_UP_BC_PC 1
13355 _ACEOF
13357 else
13358 $as_echo "$as_me: failed program was:" >&5
13359 sed 's/^/| /' conftest.$ac_ext >&5
13361 { $as_echo "$as_me:$LINENO: result: no" >&5
13362 $as_echo "no" >&6; }
13363 { $as_echo "$as_me:$LINENO: checking whether UP, BC and PC can be extern" >&5
13364 $as_echo_n "checking whether UP, BC and PC can be extern... " >&6; }
13365 cat >conftest.$ac_ext <<_ACEOF
13366 /* confdefs.h. */
13367 _ACEOF
13368 cat confdefs.h >>conftest.$ac_ext
13369 cat >>conftest.$ac_ext <<_ACEOF
13370 /* end confdefs.h. */
13372 #ifdef HAVE_TERMCAP_H
13373 # include <termcap.h>
13374 #endif
13375 extern char *UP, *BC, PC;
13378 main ()
13380 if (UP == 0 && BC == 0) PC = 1
13382 return 0;
13384 _ACEOF
13385 rm -f conftest.$ac_objext conftest$ac_exeext
13386 if { (ac_try="$ac_link"
13387 case "(($ac_try" in
13388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13389 *) ac_try_echo=$ac_try;;
13390 esac
13391 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13392 $as_echo "$ac_try_echo") >&5
13393 (eval "$ac_link") 2>conftest.er1
13394 ac_status=$?
13395 grep -v '^ *+' conftest.er1 >conftest.err
13396 rm -f conftest.er1
13397 cat conftest.err >&5
13398 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13399 (exit $ac_status); } && {
13400 test -z "$ac_c_werror_flag" ||
13401 test ! -s conftest.err
13402 } && test -s conftest$ac_exeext && {
13403 test "$cross_compiling" = yes ||
13404 $as_test_x conftest$ac_exeext
13405 }; then
13406 { $as_echo "$as_me:$LINENO: result: yes" >&5
13407 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13408 #define UP_BC_PC_EXTERN 1
13409 _ACEOF
13411 else
13412 $as_echo "$as_me: failed program was:" >&5
13413 sed 's/^/| /' conftest.$ac_ext >&5
13415 { $as_echo "$as_me:$LINENO: result: no" >&5
13416 $as_echo "no" >&6; }
13419 rm -rf conftest.dSYM
13420 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13421 conftest$ac_exeext conftest.$ac_ext
13425 rm -rf conftest.dSYM
13426 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13427 conftest$ac_exeext conftest.$ac_ext
13429 { $as_echo "$as_me:$LINENO: checking whether tputs() uses outfuntype" >&5
13430 $as_echo_n "checking whether tputs() uses outfuntype... " >&6; }
13431 cat >conftest.$ac_ext <<_ACEOF
13432 /* confdefs.h. */
13433 _ACEOF
13434 cat confdefs.h >>conftest.$ac_ext
13435 cat >>conftest.$ac_ext <<_ACEOF
13436 /* end confdefs.h. */
13438 #ifdef HAVE_TERMCAP_H
13439 # include <termcap.h>
13440 #endif
13443 main ()
13445 extern int xx(); tputs("test", 1, (outfuntype)xx)
13447 return 0;
13449 _ACEOF
13450 rm -f conftest.$ac_objext
13451 if { (ac_try="$ac_compile"
13452 case "(($ac_try" in
13453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13454 *) ac_try_echo=$ac_try;;
13455 esac
13456 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13457 $as_echo "$ac_try_echo") >&5
13458 (eval "$ac_compile") 2>conftest.er1
13459 ac_status=$?
13460 grep -v '^ *+' conftest.er1 >conftest.err
13461 rm -f conftest.er1
13462 cat conftest.err >&5
13463 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13464 (exit $ac_status); } && {
13465 test -z "$ac_c_werror_flag" ||
13466 test ! -s conftest.err
13467 } && test -s conftest.$ac_objext; then
13468 { $as_echo "$as_me:$LINENO: result: yes" >&5
13469 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13470 #define HAVE_OUTFUNTYPE 1
13471 _ACEOF
13473 else
13474 $as_echo "$as_me: failed program was:" >&5
13475 sed 's/^/| /' conftest.$ac_ext >&5
13477 { $as_echo "$as_me:$LINENO: result: no" >&5
13478 $as_echo "no" >&6; }
13481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13483 { $as_echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
13484 $as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; }
13485 cat >conftest.$ac_ext <<_ACEOF
13486 /* confdefs.h. */
13487 _ACEOF
13488 cat confdefs.h >>conftest.$ac_ext
13489 cat >>conftest.$ac_ext <<_ACEOF
13490 /* end confdefs.h. */
13492 #include <sys/types.h>
13493 #include <sys/time.h>
13494 #include <sys/select.h>
13496 main ()
13500 return 0;
13502 _ACEOF
13503 rm -f conftest.$ac_objext
13504 if { (ac_try="$ac_compile"
13505 case "(($ac_try" in
13506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13507 *) ac_try_echo=$ac_try;;
13508 esac
13509 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13510 $as_echo "$ac_try_echo") >&5
13511 (eval "$ac_compile") 2>conftest.er1
13512 ac_status=$?
13513 grep -v '^ *+' conftest.er1 >conftest.err
13514 rm -f conftest.er1
13515 cat conftest.err >&5
13516 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13517 (exit $ac_status); } && {
13518 test -z "$ac_c_werror_flag" ||
13519 test ! -s conftest.err
13520 } && test -s conftest.$ac_objext; then
13521 { $as_echo "$as_me:$LINENO: result: yes" >&5
13522 $as_echo "yes" >&6; }
13523 cat >>confdefs.h <<\_ACEOF
13524 #define SYS_SELECT_WITH_SYS_TIME 1
13525 _ACEOF
13527 else
13528 $as_echo "$as_me: failed program was:" >&5
13529 sed 's/^/| /' conftest.$ac_ext >&5
13531 { $as_echo "$as_me:$LINENO: result: no" >&5
13532 $as_echo "no" >&6; }
13535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13538 { $as_echo "$as_me:$LINENO: checking for /dev/ptc" >&5
13539 $as_echo_n "checking for /dev/ptc... " >&6; }
13540 if test -r /dev/ptc; then
13541 cat >>confdefs.h <<\_ACEOF
13542 #define HAVE_DEV_PTC 1
13543 _ACEOF
13545 { $as_echo "$as_me:$LINENO: result: yes" >&5
13546 $as_echo "yes" >&6; }
13547 else
13548 { $as_echo "$as_me:$LINENO: result: no" >&5
13549 $as_echo "no" >&6; }
13552 { $as_echo "$as_me:$LINENO: checking for SVR4 ptys" >&5
13553 $as_echo_n "checking for SVR4 ptys... " >&6; }
13554 if test -c /dev/ptmx ; then
13555 cat >conftest.$ac_ext <<_ACEOF
13556 /* confdefs.h. */
13557 _ACEOF
13558 cat confdefs.h >>conftest.$ac_ext
13559 cat >>conftest.$ac_ext <<_ACEOF
13560 /* end confdefs.h. */
13563 main ()
13565 ptsname(0);grantpt(0);unlockpt(0);
13567 return 0;
13569 _ACEOF
13570 rm -f conftest.$ac_objext conftest$ac_exeext
13571 if { (ac_try="$ac_link"
13572 case "(($ac_try" in
13573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13574 *) ac_try_echo=$ac_try;;
13575 esac
13576 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13577 $as_echo "$ac_try_echo") >&5
13578 (eval "$ac_link") 2>conftest.er1
13579 ac_status=$?
13580 grep -v '^ *+' conftest.er1 >conftest.err
13581 rm -f conftest.er1
13582 cat conftest.err >&5
13583 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13584 (exit $ac_status); } && {
13585 test -z "$ac_c_werror_flag" ||
13586 test ! -s conftest.err
13587 } && test -s conftest$ac_exeext && {
13588 test "$cross_compiling" = yes ||
13589 $as_test_x conftest$ac_exeext
13590 }; then
13591 { $as_echo "$as_me:$LINENO: result: yes" >&5
13592 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13593 #define HAVE_SVR4_PTYS 1
13594 _ACEOF
13596 else
13597 $as_echo "$as_me: failed program was:" >&5
13598 sed 's/^/| /' conftest.$ac_ext >&5
13600 { $as_echo "$as_me:$LINENO: result: no" >&5
13601 $as_echo "no" >&6; }
13604 rm -rf conftest.dSYM
13605 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13606 conftest$ac_exeext conftest.$ac_ext
13607 else
13608 { $as_echo "$as_me:$LINENO: result: no" >&5
13609 $as_echo "no" >&6; }
13612 { $as_echo "$as_me:$LINENO: checking for ptyranges" >&5
13613 $as_echo_n "checking for ptyranges... " >&6; }
13614 if test -d /dev/ptym ; then
13615 pdir='/dev/ptym'
13616 else
13617 pdir='/dev'
13619 cat >conftest.$ac_ext <<_ACEOF
13620 /* confdefs.h. */
13621 _ACEOF
13622 cat confdefs.h >>conftest.$ac_ext
13623 cat >>conftest.$ac_ext <<_ACEOF
13624 /* end confdefs.h. */
13625 #ifdef M_UNIX
13626 yes;
13627 #endif
13629 _ACEOF
13630 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13631 $EGREP "yes" >/dev/null 2>&1; then
13632 ptys=`echo /dev/ptyp??`
13633 else
13634 ptys=`echo $pdir/pty??`
13636 rm -f conftest*
13638 if test "$ptys" != "$pdir/pty??" ; then
13639 p0=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'`
13640 p1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'`
13641 cat >>confdefs.h <<_ACEOF
13642 #define PTYRANGE0 "$p0"
13643 _ACEOF
13645 cat >>confdefs.h <<_ACEOF
13646 #define PTYRANGE1 "$p1"
13647 _ACEOF
13649 { $as_echo "$as_me:$LINENO: result: $p0 / $p1" >&5
13650 $as_echo "$p0 / $p1" >&6; }
13651 else
13652 { $as_echo "$as_me:$LINENO: result: don't know" >&5
13653 $as_echo "don't know" >&6; }
13656 rm -f conftest_grp
13657 { $as_echo "$as_me:$LINENO: checking default tty permissions/group" >&5
13658 $as_echo_n "checking default tty permissions/group... " >&6; }
13659 if test "${vim_cv_tty_group+set}" = set; then
13660 $as_echo_n "(cached) " >&6
13661 else
13663 if test "$cross_compiling" = yes; then
13665 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_tty_group' and 'vim_cv_tty_mode'" >&5
13666 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_tty_group' and 'vim_cv_tty_mode'" >&2;}
13667 { (exit 1); exit 1; }; }
13669 else
13670 cat >conftest.$ac_ext <<_ACEOF
13672 #include "confdefs.h"
13673 #include <sys/types.h>
13674 #if STDC_HEADERS
13675 # include <stdlib.h>
13676 # include <stddef.h>
13677 #endif
13678 #ifdef HAVE_UNISTD_H
13679 #include <unistd.h>
13680 #endif
13681 #include <sys/stat.h>
13682 #include <stdio.h>
13683 main()
13685 struct stat sb;
13686 char *x,*ttyname();
13687 int om, m;
13688 FILE *fp;
13690 if (!(x = ttyname(0))) exit(1);
13691 if (stat(x, &sb)) exit(1);
13692 om = sb.st_mode;
13693 if (om & 002) exit(0);
13694 m = system("mesg y");
13695 if (m == -1 || m == 127) exit(1);
13696 if (stat(x, &sb)) exit(1);
13697 m = sb.st_mode;
13698 if (chmod(x, om)) exit(1);
13699 if (m & 002) exit(0);
13700 if (sb.st_gid == getgid()) exit(1);
13701 if (!(fp=fopen("conftest_grp", "w")))
13702 exit(1);
13703 fprintf(fp, "%d\n", sb.st_gid);
13704 fclose(fp);
13705 exit(0);
13708 _ACEOF
13709 rm -f conftest$ac_exeext
13710 if { (ac_try="$ac_link"
13711 case "(($ac_try" in
13712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13713 *) ac_try_echo=$ac_try;;
13714 esac
13715 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13716 $as_echo "$ac_try_echo") >&5
13717 (eval "$ac_link") 2>&5
13718 ac_status=$?
13719 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13720 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13721 { (case "(($ac_try" in
13722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13723 *) ac_try_echo=$ac_try;;
13724 esac
13725 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13726 $as_echo "$ac_try_echo") >&5
13727 (eval "$ac_try") 2>&5
13728 ac_status=$?
13729 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13730 (exit $ac_status); }; }; then
13732 if test -f conftest_grp; then
13733 vim_cv_tty_group=`cat conftest_grp`
13734 if test "x$vim_cv_tty_mode" = "x" ; then
13735 vim_cv_tty_mode=0620
13737 { $as_echo "$as_me:$LINENO: result: pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&5
13738 $as_echo "pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&6; }
13739 else
13740 vim_cv_tty_group=world
13741 { $as_echo "$as_me:$LINENO: result: ptys are world accessible" >&5
13742 $as_echo "ptys are world accessible" >&6; }
13745 else
13746 $as_echo "$as_me: program exited with status $ac_status" >&5
13747 $as_echo "$as_me: failed program was:" >&5
13748 sed 's/^/| /' conftest.$ac_ext >&5
13750 ( exit $ac_status )
13752 vim_cv_tty_group=world
13753 { $as_echo "$as_me:$LINENO: result: can't determine - assume ptys are world accessible" >&5
13754 $as_echo "can't determine - assume ptys are world accessible" >&6; }
13757 rm -rf conftest.dSYM
13758 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13764 { $as_echo "$as_me:$LINENO: result: $vim_cv_tty_group" >&5
13765 $as_echo "$vim_cv_tty_group" >&6; }
13766 rm -f conftest_grp
13768 if test "x$vim_cv_tty_group" != "xworld" ; then
13769 cat >>confdefs.h <<_ACEOF
13770 #define PTYGROUP $vim_cv_tty_group
13771 _ACEOF
13773 if test "x$vim_cv_tty_mode" = "x" ; then
13774 { { $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
13775 $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;}
13776 { (exit 1); exit 1; }; }
13777 else
13778 cat >>confdefs.h <<\_ACEOF
13779 #define PTYMODE 0620
13780 _ACEOF
13786 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13787 $as_echo_n "checking return type of signal handlers... " >&6; }
13788 if test "${ac_cv_type_signal+set}" = set; then
13789 $as_echo_n "(cached) " >&6
13790 else
13791 cat >conftest.$ac_ext <<_ACEOF
13792 /* confdefs.h. */
13793 _ACEOF
13794 cat confdefs.h >>conftest.$ac_ext
13795 cat >>conftest.$ac_ext <<_ACEOF
13796 /* end confdefs.h. */
13797 #include <sys/types.h>
13798 #include <signal.h>
13801 main ()
13803 return *(signal (0, 0)) (0) == 1;
13805 return 0;
13807 _ACEOF
13808 rm -f conftest.$ac_objext
13809 if { (ac_try="$ac_compile"
13810 case "(($ac_try" in
13811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13812 *) ac_try_echo=$ac_try;;
13813 esac
13814 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13815 $as_echo "$ac_try_echo") >&5
13816 (eval "$ac_compile") 2>conftest.er1
13817 ac_status=$?
13818 grep -v '^ *+' conftest.er1 >conftest.err
13819 rm -f conftest.er1
13820 cat conftest.err >&5
13821 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13822 (exit $ac_status); } && {
13823 test -z "$ac_c_werror_flag" ||
13824 test ! -s conftest.err
13825 } && test -s conftest.$ac_objext; then
13826 ac_cv_type_signal=int
13827 else
13828 $as_echo "$as_me: failed program was:" >&5
13829 sed 's/^/| /' conftest.$ac_ext >&5
13831 ac_cv_type_signal=void
13834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13836 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
13837 $as_echo "$ac_cv_type_signal" >&6; }
13839 cat >>confdefs.h <<_ACEOF
13840 #define RETSIGTYPE $ac_cv_type_signal
13841 _ACEOF
13845 if test $ac_cv_type_signal = void; then
13846 cat >>confdefs.h <<\_ACEOF
13847 #define SIGRETURN return
13848 _ACEOF
13850 else
13851 cat >>confdefs.h <<\_ACEOF
13852 #define SIGRETURN return 0
13853 _ACEOF
13857 { $as_echo "$as_me:$LINENO: checking for struct sigcontext" >&5
13858 $as_echo_n "checking for struct sigcontext... " >&6; }
13859 cat >conftest.$ac_ext <<_ACEOF
13860 /* confdefs.h. */
13861 _ACEOF
13862 cat confdefs.h >>conftest.$ac_ext
13863 cat >>conftest.$ac_ext <<_ACEOF
13864 /* end confdefs.h. */
13866 #include <signal.h>
13867 test_sig()
13869 struct sigcontext *scont;
13870 scont = (struct sigcontext *)0;
13871 return 1;
13874 main ()
13878 return 0;
13880 _ACEOF
13881 rm -f conftest.$ac_objext
13882 if { (ac_try="$ac_compile"
13883 case "(($ac_try" in
13884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13885 *) ac_try_echo=$ac_try;;
13886 esac
13887 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13888 $as_echo "$ac_try_echo") >&5
13889 (eval "$ac_compile") 2>conftest.er1
13890 ac_status=$?
13891 grep -v '^ *+' conftest.er1 >conftest.err
13892 rm -f conftest.er1
13893 cat conftest.err >&5
13894 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13895 (exit $ac_status); } && {
13896 test -z "$ac_c_werror_flag" ||
13897 test ! -s conftest.err
13898 } && test -s conftest.$ac_objext; then
13899 { $as_echo "$as_me:$LINENO: result: yes" >&5
13900 $as_echo "yes" >&6; }
13901 cat >>confdefs.h <<\_ACEOF
13902 #define HAVE_SIGCONTEXT 1
13903 _ACEOF
13905 else
13906 $as_echo "$as_me: failed program was:" >&5
13907 sed 's/^/| /' conftest.$ac_ext >&5
13909 { $as_echo "$as_me:$LINENO: result: no" >&5
13910 $as_echo "no" >&6; }
13913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13915 { $as_echo "$as_me:$LINENO: checking getcwd implementation is broken" >&5
13916 $as_echo_n "checking getcwd implementation is broken... " >&6; }
13917 if test "${vim_cv_getcwd_broken+set}" = set; then
13918 $as_echo_n "(cached) " >&6
13919 else
13921 if test "$cross_compiling" = yes; then
13923 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_getcwd_broken'" >&5
13924 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_getcwd_broken'" >&2;}
13925 { (exit 1); exit 1; }; }
13927 else
13928 cat >conftest.$ac_ext <<_ACEOF
13930 #include "confdefs.h"
13931 #ifdef HAVE_UNISTD_H
13932 #include <unistd.h>
13933 #endif
13934 char *dagger[] = { "IFS=pwd", 0 };
13935 main()
13937 char buffer[500];
13938 extern char **environ;
13939 environ = dagger;
13940 return getcwd(buffer, 500) ? 0 : 1;
13943 _ACEOF
13944 rm -f conftest$ac_exeext
13945 if { (ac_try="$ac_link"
13946 case "(($ac_try" in
13947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13948 *) ac_try_echo=$ac_try;;
13949 esac
13950 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13951 $as_echo "$ac_try_echo") >&5
13952 (eval "$ac_link") 2>&5
13953 ac_status=$?
13954 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13955 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13956 { (case "(($ac_try" in
13957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13958 *) ac_try_echo=$ac_try;;
13959 esac
13960 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13961 $as_echo "$ac_try_echo") >&5
13962 (eval "$ac_try") 2>&5
13963 ac_status=$?
13964 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13965 (exit $ac_status); }; }; then
13967 vim_cv_getcwd_broken=no
13969 else
13970 $as_echo "$as_me: program exited with status $ac_status" >&5
13971 $as_echo "$as_me: failed program was:" >&5
13972 sed 's/^/| /' conftest.$ac_ext >&5
13974 ( exit $ac_status )
13976 vim_cv_getcwd_broken=yes
13979 rm -rf conftest.dSYM
13980 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13986 { $as_echo "$as_me:$LINENO: result: $vim_cv_getcwd_broken" >&5
13987 $as_echo "$vim_cv_getcwd_broken" >&6; }
13989 if test "x$vim_cv_getcwd_broken" = "xyes" ; then
13990 cat >>confdefs.h <<\_ACEOF
13991 #define BAD_GETCWD 1
13992 _ACEOF
14043 for ac_func in bcmp fchdir fchown fseeko fsync ftello getcwd getpseudotty \
14044 getpwnam getpwuid getrlimit gettimeofday getwd lstat memcmp \
14045 memset mkdtemp nanosleep opendir putenv qsort readlink select setenv \
14046 setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \
14047 sigvec strcasecmp strerror strftime stricmp strncasecmp \
14048 strnicmp strpbrk strtol tgetent towlower towupper iswupper \
14049 usleep utime utimes
14051 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14052 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14053 $as_echo_n "checking for $ac_func... " >&6; }
14054 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14055 $as_echo_n "(cached) " >&6
14056 else
14057 cat >conftest.$ac_ext <<_ACEOF
14058 /* confdefs.h. */
14059 _ACEOF
14060 cat confdefs.h >>conftest.$ac_ext
14061 cat >>conftest.$ac_ext <<_ACEOF
14062 /* end confdefs.h. */
14063 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14064 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14065 #define $ac_func innocuous_$ac_func
14067 /* System header to define __stub macros and hopefully few prototypes,
14068 which can conflict with char $ac_func (); below.
14069 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14070 <limits.h> exists even on freestanding compilers. */
14072 #ifdef __STDC__
14073 # include <limits.h>
14074 #else
14075 # include <assert.h>
14076 #endif
14078 #undef $ac_func
14080 /* Override any GCC internal prototype to avoid an error.
14081 Use char because int might match the return type of a GCC
14082 builtin and then its argument prototype would still apply. */
14083 #ifdef __cplusplus
14084 extern "C"
14085 #endif
14086 char $ac_func ();
14087 /* The GNU C library defines this for functions which it implements
14088 to always fail with ENOSYS. Some functions are actually named
14089 something starting with __ and the normal name is an alias. */
14090 #if defined __stub_$ac_func || defined __stub___$ac_func
14091 choke me
14092 #endif
14095 main ()
14097 return $ac_func ();
14099 return 0;
14101 _ACEOF
14102 rm -f conftest.$ac_objext conftest$ac_exeext
14103 if { (ac_try="$ac_link"
14104 case "(($ac_try" in
14105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14106 *) ac_try_echo=$ac_try;;
14107 esac
14108 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14109 $as_echo "$ac_try_echo") >&5
14110 (eval "$ac_link") 2>conftest.er1
14111 ac_status=$?
14112 grep -v '^ *+' conftest.er1 >conftest.err
14113 rm -f conftest.er1
14114 cat conftest.err >&5
14115 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14116 (exit $ac_status); } && {
14117 test -z "$ac_c_werror_flag" ||
14118 test ! -s conftest.err
14119 } && test -s conftest$ac_exeext && {
14120 test "$cross_compiling" = yes ||
14121 $as_test_x conftest$ac_exeext
14122 }; then
14123 eval "$as_ac_var=yes"
14124 else
14125 $as_echo "$as_me: failed program was:" >&5
14126 sed 's/^/| /' conftest.$ac_ext >&5
14128 eval "$as_ac_var=no"
14131 rm -rf conftest.dSYM
14132 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14133 conftest$ac_exeext conftest.$ac_ext
14135 ac_res=`eval 'as_val=${'$as_ac_var'}
14136 $as_echo "$as_val"'`
14137 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14138 $as_echo "$ac_res" >&6; }
14139 as_val=`eval 'as_val=${'$as_ac_var'}
14140 $as_echo "$as_val"'`
14141 if test "x$as_val" = x""yes; then
14142 cat >>confdefs.h <<_ACEOF
14143 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14144 _ACEOF
14147 done
14150 { $as_echo "$as_me:$LINENO: checking for st_blksize" >&5
14151 $as_echo_n "checking for st_blksize... " >&6; }
14152 cat >conftest.$ac_ext <<_ACEOF
14153 /* confdefs.h. */
14154 _ACEOF
14155 cat confdefs.h >>conftest.$ac_ext
14156 cat >>conftest.$ac_ext <<_ACEOF
14157 /* end confdefs.h. */
14158 #include <sys/types.h>
14159 #include <sys/stat.h>
14161 main ()
14163 struct stat st;
14164 int n;
14166 stat("/", &st);
14167 n = (int)st.st_blksize;
14169 return 0;
14171 _ACEOF
14172 rm -f conftest.$ac_objext
14173 if { (ac_try="$ac_compile"
14174 case "(($ac_try" in
14175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14176 *) ac_try_echo=$ac_try;;
14177 esac
14178 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14179 $as_echo "$ac_try_echo") >&5
14180 (eval "$ac_compile") 2>conftest.er1
14181 ac_status=$?
14182 grep -v '^ *+' conftest.er1 >conftest.err
14183 rm -f conftest.er1
14184 cat conftest.err >&5
14185 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14186 (exit $ac_status); } && {
14187 test -z "$ac_c_werror_flag" ||
14188 test ! -s conftest.err
14189 } && test -s conftest.$ac_objext; then
14190 { $as_echo "$as_me:$LINENO: result: yes" >&5
14191 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14192 #define HAVE_ST_BLKSIZE 1
14193 _ACEOF
14195 else
14196 $as_echo "$as_me: failed program was:" >&5
14197 sed 's/^/| /' conftest.$ac_ext >&5
14199 { $as_echo "$as_me:$LINENO: result: no" >&5
14200 $as_echo "no" >&6; }
14203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14205 { $as_echo "$as_me:$LINENO: checking whether stat() ignores a trailing slash" >&5
14206 $as_echo_n "checking whether stat() ignores a trailing slash... " >&6; }
14207 if test "${vim_cv_stat_ignores_slash+set}" = set; then
14208 $as_echo_n "(cached) " >&6
14209 else
14211 if test "$cross_compiling" = yes; then
14213 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_stat_ignores_slash'" >&5
14214 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_stat_ignores_slash'" >&2;}
14215 { (exit 1); exit 1; }; }
14217 else
14218 cat >conftest.$ac_ext <<_ACEOF
14220 #include "confdefs.h"
14221 #if STDC_HEADERS
14222 # include <stdlib.h>
14223 # include <stddef.h>
14224 #endif
14225 #include <sys/types.h>
14226 #include <sys/stat.h>
14227 main() {struct stat st; exit(stat("configure/", &st) != 0); }
14229 _ACEOF
14230 rm -f conftest$ac_exeext
14231 if { (ac_try="$ac_link"
14232 case "(($ac_try" in
14233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14234 *) ac_try_echo=$ac_try;;
14235 esac
14236 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14237 $as_echo "$ac_try_echo") >&5
14238 (eval "$ac_link") 2>&5
14239 ac_status=$?
14240 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14241 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14242 { (case "(($ac_try" in
14243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14244 *) ac_try_echo=$ac_try;;
14245 esac
14246 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14247 $as_echo "$ac_try_echo") >&5
14248 (eval "$ac_try") 2>&5
14249 ac_status=$?
14250 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14251 (exit $ac_status); }; }; then
14253 vim_cv_stat_ignores_slash=yes
14255 else
14256 $as_echo "$as_me: program exited with status $ac_status" >&5
14257 $as_echo "$as_me: failed program was:" >&5
14258 sed 's/^/| /' conftest.$ac_ext >&5
14260 ( exit $ac_status )
14262 vim_cv_stat_ignores_slash=no
14265 rm -rf conftest.dSYM
14266 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14272 { $as_echo "$as_me:$LINENO: result: $vim_cv_stat_ignores_slash" >&5
14273 $as_echo "$vim_cv_stat_ignores_slash" >&6; }
14275 if test "x$vim_cv_stat_ignores_slash" = "xyes" ; then
14276 cat >>confdefs.h <<\_ACEOF
14277 #define STAT_IGNORES_SLASH 1
14278 _ACEOF
14282 { $as_echo "$as_me:$LINENO: checking for iconv_open()" >&5
14283 $as_echo_n "checking for iconv_open()... " >&6; }
14284 save_LIBS="$LIBS"
14285 LIBS="$LIBS -liconv"
14286 cat >conftest.$ac_ext <<_ACEOF
14287 /* confdefs.h. */
14288 _ACEOF
14289 cat confdefs.h >>conftest.$ac_ext
14290 cat >>conftest.$ac_ext <<_ACEOF
14291 /* end confdefs.h. */
14293 #ifdef HAVE_ICONV_H
14294 # include <iconv.h>
14295 #endif
14298 main ()
14300 iconv_open("fr", "to");
14302 return 0;
14304 _ACEOF
14305 rm -f conftest.$ac_objext conftest$ac_exeext
14306 if { (ac_try="$ac_link"
14307 case "(($ac_try" in
14308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14309 *) ac_try_echo=$ac_try;;
14310 esac
14311 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14312 $as_echo "$ac_try_echo") >&5
14313 (eval "$ac_link") 2>conftest.er1
14314 ac_status=$?
14315 grep -v '^ *+' conftest.er1 >conftest.err
14316 rm -f conftest.er1
14317 cat conftest.err >&5
14318 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14319 (exit $ac_status); } && {
14320 test -z "$ac_c_werror_flag" ||
14321 test ! -s conftest.err
14322 } && test -s conftest$ac_exeext && {
14323 test "$cross_compiling" = yes ||
14324 $as_test_x conftest$ac_exeext
14325 }; then
14326 { $as_echo "$as_me:$LINENO: result: yes; with -liconv" >&5
14327 $as_echo "yes; with -liconv" >&6; }; cat >>confdefs.h <<\_ACEOF
14328 #define HAVE_ICONV 1
14329 _ACEOF
14331 else
14332 $as_echo "$as_me: failed program was:" >&5
14333 sed 's/^/| /' conftest.$ac_ext >&5
14335 LIBS="$save_LIBS"
14336 cat >conftest.$ac_ext <<_ACEOF
14337 /* confdefs.h. */
14338 _ACEOF
14339 cat confdefs.h >>conftest.$ac_ext
14340 cat >>conftest.$ac_ext <<_ACEOF
14341 /* end confdefs.h. */
14343 #ifdef HAVE_ICONV_H
14344 # include <iconv.h>
14345 #endif
14348 main ()
14350 iconv_open("fr", "to");
14352 return 0;
14354 _ACEOF
14355 rm -f conftest.$ac_objext conftest$ac_exeext
14356 if { (ac_try="$ac_link"
14357 case "(($ac_try" in
14358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14359 *) ac_try_echo=$ac_try;;
14360 esac
14361 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14362 $as_echo "$ac_try_echo") >&5
14363 (eval "$ac_link") 2>conftest.er1
14364 ac_status=$?
14365 grep -v '^ *+' conftest.er1 >conftest.err
14366 rm -f conftest.er1
14367 cat conftest.err >&5
14368 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14369 (exit $ac_status); } && {
14370 test -z "$ac_c_werror_flag" ||
14371 test ! -s conftest.err
14372 } && test -s conftest$ac_exeext && {
14373 test "$cross_compiling" = yes ||
14374 $as_test_x conftest$ac_exeext
14375 }; then
14376 { $as_echo "$as_me:$LINENO: result: yes" >&5
14377 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14378 #define HAVE_ICONV 1
14379 _ACEOF
14381 else
14382 $as_echo "$as_me: failed program was:" >&5
14383 sed 's/^/| /' conftest.$ac_ext >&5
14385 { $as_echo "$as_me:$LINENO: result: no" >&5
14386 $as_echo "no" >&6; }
14389 rm -rf conftest.dSYM
14390 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14391 conftest$ac_exeext conftest.$ac_ext
14394 rm -rf conftest.dSYM
14395 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14396 conftest$ac_exeext conftest.$ac_ext
14399 { $as_echo "$as_me:$LINENO: checking for nl_langinfo(CODESET)" >&5
14400 $as_echo_n "checking for nl_langinfo(CODESET)... " >&6; }
14401 cat >conftest.$ac_ext <<_ACEOF
14402 /* confdefs.h. */
14403 _ACEOF
14404 cat confdefs.h >>conftest.$ac_ext
14405 cat >>conftest.$ac_ext <<_ACEOF
14406 /* end confdefs.h. */
14408 #ifdef HAVE_LANGINFO_H
14409 # include <langinfo.h>
14410 #endif
14413 main ()
14415 char *cs = nl_langinfo(CODESET);
14417 return 0;
14419 _ACEOF
14420 rm -f conftest.$ac_objext conftest$ac_exeext
14421 if { (ac_try="$ac_link"
14422 case "(($ac_try" in
14423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14424 *) ac_try_echo=$ac_try;;
14425 esac
14426 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14427 $as_echo "$ac_try_echo") >&5
14428 (eval "$ac_link") 2>conftest.er1
14429 ac_status=$?
14430 grep -v '^ *+' conftest.er1 >conftest.err
14431 rm -f conftest.er1
14432 cat conftest.err >&5
14433 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14434 (exit $ac_status); } && {
14435 test -z "$ac_c_werror_flag" ||
14436 test ! -s conftest.err
14437 } && test -s conftest$ac_exeext && {
14438 test "$cross_compiling" = yes ||
14439 $as_test_x conftest$ac_exeext
14440 }; then
14441 { $as_echo "$as_me:$LINENO: result: yes" >&5
14442 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14443 #define HAVE_NL_LANGINFO_CODESET 1
14444 _ACEOF
14446 else
14447 $as_echo "$as_me: failed program was:" >&5
14448 sed 's/^/| /' conftest.$ac_ext >&5
14450 { $as_echo "$as_me:$LINENO: result: no" >&5
14451 $as_echo "no" >&6; }
14454 rm -rf conftest.dSYM
14455 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14456 conftest$ac_exeext conftest.$ac_ext
14459 { $as_echo "$as_me:$LINENO: checking for strtod in -lm" >&5
14460 $as_echo_n "checking for strtod in -lm... " >&6; }
14461 if test "${ac_cv_lib_m_strtod+set}" = set; then
14462 $as_echo_n "(cached) " >&6
14463 else
14464 ac_check_lib_save_LIBS=$LIBS
14465 LIBS="-lm $LIBS"
14466 cat >conftest.$ac_ext <<_ACEOF
14467 /* confdefs.h. */
14468 _ACEOF
14469 cat confdefs.h >>conftest.$ac_ext
14470 cat >>conftest.$ac_ext <<_ACEOF
14471 /* end confdefs.h. */
14473 /* Override any GCC internal prototype to avoid an error.
14474 Use char because int might match the return type of a GCC
14475 builtin and then its argument prototype would still apply. */
14476 #ifdef __cplusplus
14477 extern "C"
14478 #endif
14479 char strtod ();
14481 main ()
14483 return strtod ();
14485 return 0;
14487 _ACEOF
14488 rm -f conftest.$ac_objext conftest$ac_exeext
14489 if { (ac_try="$ac_link"
14490 case "(($ac_try" in
14491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14492 *) ac_try_echo=$ac_try;;
14493 esac
14494 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14495 $as_echo "$ac_try_echo") >&5
14496 (eval "$ac_link") 2>conftest.er1
14497 ac_status=$?
14498 grep -v '^ *+' conftest.er1 >conftest.err
14499 rm -f conftest.er1
14500 cat conftest.err >&5
14501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14502 (exit $ac_status); } && {
14503 test -z "$ac_c_werror_flag" ||
14504 test ! -s conftest.err
14505 } && test -s conftest$ac_exeext && {
14506 test "$cross_compiling" = yes ||
14507 $as_test_x conftest$ac_exeext
14508 }; then
14509 ac_cv_lib_m_strtod=yes
14510 else
14511 $as_echo "$as_me: failed program was:" >&5
14512 sed 's/^/| /' conftest.$ac_ext >&5
14514 ac_cv_lib_m_strtod=no
14517 rm -rf conftest.dSYM
14518 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14519 conftest$ac_exeext conftest.$ac_ext
14520 LIBS=$ac_check_lib_save_LIBS
14522 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_strtod" >&5
14523 $as_echo "$ac_cv_lib_m_strtod" >&6; }
14524 if test "x$ac_cv_lib_m_strtod" = x""yes; then
14525 cat >>confdefs.h <<_ACEOF
14526 #define HAVE_LIBM 1
14527 _ACEOF
14529 LIBS="-lm $LIBS"
14533 { $as_echo "$as_me:$LINENO: checking for strtod() and other floating point functions" >&5
14534 $as_echo_n "checking for strtod() and other floating point functions... " >&6; }
14535 cat >conftest.$ac_ext <<_ACEOF
14536 /* confdefs.h. */
14537 _ACEOF
14538 cat confdefs.h >>conftest.$ac_ext
14539 cat >>conftest.$ac_ext <<_ACEOF
14540 /* end confdefs.h. */
14542 #ifdef HAVE_MATH_H
14543 # include <math.h>
14544 #endif
14545 #if STDC_HEADERS
14546 # include <stdlib.h>
14547 # include <stddef.h>
14548 #endif
14551 main ()
14553 char *s; double d;
14554 d = strtod("1.1", &s);
14555 d = fabs(1.11);
14556 d = ceil(1.11);
14557 d = floor(1.11);
14558 d = log10(1.11);
14559 d = pow(1.11, 2.22);
14560 d = sqrt(1.11);
14561 d = sin(1.11);
14562 d = cos(1.11);
14563 d = atan(1.11);
14566 return 0;
14568 _ACEOF
14569 rm -f conftest.$ac_objext conftest$ac_exeext
14570 if { (ac_try="$ac_link"
14571 case "(($ac_try" in
14572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14573 *) ac_try_echo=$ac_try;;
14574 esac
14575 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14576 $as_echo "$ac_try_echo") >&5
14577 (eval "$ac_link") 2>conftest.er1
14578 ac_status=$?
14579 grep -v '^ *+' conftest.er1 >conftest.err
14580 rm -f conftest.er1
14581 cat conftest.err >&5
14582 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14583 (exit $ac_status); } && {
14584 test -z "$ac_c_werror_flag" ||
14585 test ! -s conftest.err
14586 } && test -s conftest$ac_exeext && {
14587 test "$cross_compiling" = yes ||
14588 $as_test_x conftest$ac_exeext
14589 }; then
14590 { $as_echo "$as_me:$LINENO: result: yes" >&5
14591 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14592 #define HAVE_FLOAT_FUNCS 1
14593 _ACEOF
14595 else
14596 $as_echo "$as_me: failed program was:" >&5
14597 sed 's/^/| /' conftest.$ac_ext >&5
14599 { $as_echo "$as_me:$LINENO: result: no" >&5
14600 $as_echo "no" >&6; }
14603 rm -rf conftest.dSYM
14604 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14605 conftest$ac_exeext conftest.$ac_ext
14607 { $as_echo "$as_me:$LINENO: checking --disable-acl argument" >&5
14608 $as_echo_n "checking --disable-acl argument... " >&6; }
14609 # Check whether --enable-acl was given.
14610 if test "${enable_acl+set}" = set; then
14611 enableval=$enable_acl;
14612 else
14613 enable_acl="yes"
14616 if test "$enable_acl" = "yes"; then
14617 { $as_echo "$as_me:$LINENO: result: no" >&5
14618 $as_echo "no" >&6; }
14619 { $as_echo "$as_me:$LINENO: checking for acl_get_file in -lposix1e" >&5
14620 $as_echo_n "checking for acl_get_file in -lposix1e... " >&6; }
14621 if test "${ac_cv_lib_posix1e_acl_get_file+set}" = set; then
14622 $as_echo_n "(cached) " >&6
14623 else
14624 ac_check_lib_save_LIBS=$LIBS
14625 LIBS="-lposix1e $LIBS"
14626 cat >conftest.$ac_ext <<_ACEOF
14627 /* confdefs.h. */
14628 _ACEOF
14629 cat confdefs.h >>conftest.$ac_ext
14630 cat >>conftest.$ac_ext <<_ACEOF
14631 /* end confdefs.h. */
14633 /* Override any GCC internal prototype to avoid an error.
14634 Use char because int might match the return type of a GCC
14635 builtin and then its argument prototype would still apply. */
14636 #ifdef __cplusplus
14637 extern "C"
14638 #endif
14639 char acl_get_file ();
14641 main ()
14643 return acl_get_file ();
14645 return 0;
14647 _ACEOF
14648 rm -f conftest.$ac_objext conftest$ac_exeext
14649 if { (ac_try="$ac_link"
14650 case "(($ac_try" in
14651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14652 *) ac_try_echo=$ac_try;;
14653 esac
14654 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14655 $as_echo "$ac_try_echo") >&5
14656 (eval "$ac_link") 2>conftest.er1
14657 ac_status=$?
14658 grep -v '^ *+' conftest.er1 >conftest.err
14659 rm -f conftest.er1
14660 cat conftest.err >&5
14661 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14662 (exit $ac_status); } && {
14663 test -z "$ac_c_werror_flag" ||
14664 test ! -s conftest.err
14665 } && test -s conftest$ac_exeext && {
14666 test "$cross_compiling" = yes ||
14667 $as_test_x conftest$ac_exeext
14668 }; then
14669 ac_cv_lib_posix1e_acl_get_file=yes
14670 else
14671 $as_echo "$as_me: failed program was:" >&5
14672 sed 's/^/| /' conftest.$ac_ext >&5
14674 ac_cv_lib_posix1e_acl_get_file=no
14677 rm -rf conftest.dSYM
14678 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14679 conftest$ac_exeext conftest.$ac_ext
14680 LIBS=$ac_check_lib_save_LIBS
14682 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix1e_acl_get_file" >&5
14683 $as_echo "$ac_cv_lib_posix1e_acl_get_file" >&6; }
14684 if test "x$ac_cv_lib_posix1e_acl_get_file" = x""yes; then
14685 LIBS="$LIBS -lposix1e"
14686 else
14687 { $as_echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
14688 $as_echo_n "checking for acl_get_file in -lacl... " >&6; }
14689 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
14690 $as_echo_n "(cached) " >&6
14691 else
14692 ac_check_lib_save_LIBS=$LIBS
14693 LIBS="-lacl $LIBS"
14694 cat >conftest.$ac_ext <<_ACEOF
14695 /* confdefs.h. */
14696 _ACEOF
14697 cat confdefs.h >>conftest.$ac_ext
14698 cat >>conftest.$ac_ext <<_ACEOF
14699 /* end confdefs.h. */
14701 /* Override any GCC internal prototype to avoid an error.
14702 Use char because int might match the return type of a GCC
14703 builtin and then its argument prototype would still apply. */
14704 #ifdef __cplusplus
14705 extern "C"
14706 #endif
14707 char acl_get_file ();
14709 main ()
14711 return acl_get_file ();
14713 return 0;
14715 _ACEOF
14716 rm -f conftest.$ac_objext conftest$ac_exeext
14717 if { (ac_try="$ac_link"
14718 case "(($ac_try" in
14719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14720 *) ac_try_echo=$ac_try;;
14721 esac
14722 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14723 $as_echo "$ac_try_echo") >&5
14724 (eval "$ac_link") 2>conftest.er1
14725 ac_status=$?
14726 grep -v '^ *+' conftest.er1 >conftest.err
14727 rm -f conftest.er1
14728 cat conftest.err >&5
14729 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14730 (exit $ac_status); } && {
14731 test -z "$ac_c_werror_flag" ||
14732 test ! -s conftest.err
14733 } && test -s conftest$ac_exeext && {
14734 test "$cross_compiling" = yes ||
14735 $as_test_x conftest$ac_exeext
14736 }; then
14737 ac_cv_lib_acl_acl_get_file=yes
14738 else
14739 $as_echo "$as_me: failed program was:" >&5
14740 sed 's/^/| /' conftest.$ac_ext >&5
14742 ac_cv_lib_acl_acl_get_file=no
14745 rm -rf conftest.dSYM
14746 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14747 conftest$ac_exeext conftest.$ac_ext
14748 LIBS=$ac_check_lib_save_LIBS
14750 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
14751 $as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
14752 if test "x$ac_cv_lib_acl_acl_get_file" = x""yes; then
14753 LIBS="$LIBS -lacl"
14754 { $as_echo "$as_me:$LINENO: checking for fgetxattr in -lattr" >&5
14755 $as_echo_n "checking for fgetxattr in -lattr... " >&6; }
14756 if test "${ac_cv_lib_attr_fgetxattr+set}" = set; then
14757 $as_echo_n "(cached) " >&6
14758 else
14759 ac_check_lib_save_LIBS=$LIBS
14760 LIBS="-lattr $LIBS"
14761 cat >conftest.$ac_ext <<_ACEOF
14762 /* confdefs.h. */
14763 _ACEOF
14764 cat confdefs.h >>conftest.$ac_ext
14765 cat >>conftest.$ac_ext <<_ACEOF
14766 /* end confdefs.h. */
14768 /* Override any GCC internal prototype to avoid an error.
14769 Use char because int might match the return type of a GCC
14770 builtin and then its argument prototype would still apply. */
14771 #ifdef __cplusplus
14772 extern "C"
14773 #endif
14774 char fgetxattr ();
14776 main ()
14778 return fgetxattr ();
14780 return 0;
14782 _ACEOF
14783 rm -f conftest.$ac_objext conftest$ac_exeext
14784 if { (ac_try="$ac_link"
14785 case "(($ac_try" in
14786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14787 *) ac_try_echo=$ac_try;;
14788 esac
14789 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14790 $as_echo "$ac_try_echo") >&5
14791 (eval "$ac_link") 2>conftest.er1
14792 ac_status=$?
14793 grep -v '^ *+' conftest.er1 >conftest.err
14794 rm -f conftest.er1
14795 cat conftest.err >&5
14796 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14797 (exit $ac_status); } && {
14798 test -z "$ac_c_werror_flag" ||
14799 test ! -s conftest.err
14800 } && test -s conftest$ac_exeext && {
14801 test "$cross_compiling" = yes ||
14802 $as_test_x conftest$ac_exeext
14803 }; then
14804 ac_cv_lib_attr_fgetxattr=yes
14805 else
14806 $as_echo "$as_me: failed program was:" >&5
14807 sed 's/^/| /' conftest.$ac_ext >&5
14809 ac_cv_lib_attr_fgetxattr=no
14812 rm -rf conftest.dSYM
14813 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14814 conftest$ac_exeext conftest.$ac_ext
14815 LIBS=$ac_check_lib_save_LIBS
14817 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_attr_fgetxattr" >&5
14818 $as_echo "$ac_cv_lib_attr_fgetxattr" >&6; }
14819 if test "x$ac_cv_lib_attr_fgetxattr" = x""yes; then
14820 LIBS="$LIBS -lattr"
14828 { $as_echo "$as_me:$LINENO: checking for POSIX ACL support" >&5
14829 $as_echo_n "checking for POSIX ACL support... " >&6; }
14830 cat >conftest.$ac_ext <<_ACEOF
14831 /* confdefs.h. */
14832 _ACEOF
14833 cat confdefs.h >>conftest.$ac_ext
14834 cat >>conftest.$ac_ext <<_ACEOF
14835 /* end confdefs.h. */
14837 #include <sys/types.h>
14838 #ifdef HAVE_SYS_ACL_H
14839 # include <sys/acl.h>
14840 #endif
14841 acl_t acl;
14843 main ()
14845 acl = acl_get_file("foo", ACL_TYPE_ACCESS);
14846 acl_set_file("foo", ACL_TYPE_ACCESS, acl);
14847 acl_free(acl);
14849 return 0;
14851 _ACEOF
14852 rm -f conftest.$ac_objext conftest$ac_exeext
14853 if { (ac_try="$ac_link"
14854 case "(($ac_try" in
14855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14856 *) ac_try_echo=$ac_try;;
14857 esac
14858 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14859 $as_echo "$ac_try_echo") >&5
14860 (eval "$ac_link") 2>conftest.er1
14861 ac_status=$?
14862 grep -v '^ *+' conftest.er1 >conftest.err
14863 rm -f conftest.er1
14864 cat conftest.err >&5
14865 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14866 (exit $ac_status); } && {
14867 test -z "$ac_c_werror_flag" ||
14868 test ! -s conftest.err
14869 } && test -s conftest$ac_exeext && {
14870 test "$cross_compiling" = yes ||
14871 $as_test_x conftest$ac_exeext
14872 }; then
14873 { $as_echo "$as_me:$LINENO: result: yes" >&5
14874 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14875 #define HAVE_POSIX_ACL 1
14876 _ACEOF
14878 else
14879 $as_echo "$as_me: failed program was:" >&5
14880 sed 's/^/| /' conftest.$ac_ext >&5
14882 { $as_echo "$as_me:$LINENO: result: no" >&5
14883 $as_echo "no" >&6; }
14886 rm -rf conftest.dSYM
14887 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14888 conftest$ac_exeext conftest.$ac_ext
14890 { $as_echo "$as_me:$LINENO: checking for Solaris ACL support" >&5
14891 $as_echo_n "checking for Solaris ACL support... " >&6; }
14892 cat >conftest.$ac_ext <<_ACEOF
14893 /* confdefs.h. */
14894 _ACEOF
14895 cat confdefs.h >>conftest.$ac_ext
14896 cat >>conftest.$ac_ext <<_ACEOF
14897 /* end confdefs.h. */
14899 #ifdef HAVE_SYS_ACL_H
14900 # include <sys/acl.h>
14901 #endif
14903 main ()
14905 acl("foo", GETACLCNT, 0, NULL);
14908 return 0;
14910 _ACEOF
14911 rm -f conftest.$ac_objext conftest$ac_exeext
14912 if { (ac_try="$ac_link"
14913 case "(($ac_try" in
14914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14915 *) ac_try_echo=$ac_try;;
14916 esac
14917 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14918 $as_echo "$ac_try_echo") >&5
14919 (eval "$ac_link") 2>conftest.er1
14920 ac_status=$?
14921 grep -v '^ *+' conftest.er1 >conftest.err
14922 rm -f conftest.er1
14923 cat conftest.err >&5
14924 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14925 (exit $ac_status); } && {
14926 test -z "$ac_c_werror_flag" ||
14927 test ! -s conftest.err
14928 } && test -s conftest$ac_exeext && {
14929 test "$cross_compiling" = yes ||
14930 $as_test_x conftest$ac_exeext
14931 }; then
14932 { $as_echo "$as_me:$LINENO: result: yes" >&5
14933 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14934 #define HAVE_SOLARIS_ACL 1
14935 _ACEOF
14937 else
14938 $as_echo "$as_me: failed program was:" >&5
14939 sed 's/^/| /' conftest.$ac_ext >&5
14941 { $as_echo "$as_me:$LINENO: result: no" >&5
14942 $as_echo "no" >&6; }
14945 rm -rf conftest.dSYM
14946 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14947 conftest$ac_exeext conftest.$ac_ext
14949 { $as_echo "$as_me:$LINENO: checking for AIX ACL support" >&5
14950 $as_echo_n "checking for AIX ACL support... " >&6; }
14951 cat >conftest.$ac_ext <<_ACEOF
14952 /* confdefs.h. */
14953 _ACEOF
14954 cat confdefs.h >>conftest.$ac_ext
14955 cat >>conftest.$ac_ext <<_ACEOF
14956 /* end confdefs.h. */
14958 #if STDC_HEADERS
14959 # include <stdlib.h>
14960 # include <stddef.h>
14961 #endif
14962 #ifdef HAVE_SYS_ACL_H
14963 # include <sys/acl.h>
14964 #endif
14965 #ifdef HAVE_SYS_ACCESS_H
14966 # include <sys/access.h>
14967 #endif
14968 #define _ALL_SOURCE
14970 #include <sys/stat.h>
14972 int aclsize;
14973 struct acl *aclent;
14975 main ()
14977 aclsize = sizeof(struct acl);
14978 aclent = (void *)malloc(aclsize);
14979 statacl("foo", STX_NORMAL, aclent, aclsize);
14982 return 0;
14984 _ACEOF
14985 rm -f conftest.$ac_objext conftest$ac_exeext
14986 if { (ac_try="$ac_link"
14987 case "(($ac_try" in
14988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14989 *) ac_try_echo=$ac_try;;
14990 esac
14991 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14992 $as_echo "$ac_try_echo") >&5
14993 (eval "$ac_link") 2>conftest.er1
14994 ac_status=$?
14995 grep -v '^ *+' conftest.er1 >conftest.err
14996 rm -f conftest.er1
14997 cat conftest.err >&5
14998 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14999 (exit $ac_status); } && {
15000 test -z "$ac_c_werror_flag" ||
15001 test ! -s conftest.err
15002 } && test -s conftest$ac_exeext && {
15003 test "$cross_compiling" = yes ||
15004 $as_test_x conftest$ac_exeext
15005 }; then
15006 { $as_echo "$as_me:$LINENO: result: yes" >&5
15007 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15008 #define HAVE_AIX_ACL 1
15009 _ACEOF
15011 else
15012 $as_echo "$as_me: failed program was:" >&5
15013 sed 's/^/| /' conftest.$ac_ext >&5
15015 { $as_echo "$as_me:$LINENO: result: no" >&5
15016 $as_echo "no" >&6; }
15019 rm -rf conftest.dSYM
15020 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15021 conftest$ac_exeext conftest.$ac_ext
15022 else
15023 { $as_echo "$as_me:$LINENO: result: yes" >&5
15024 $as_echo "yes" >&6; }
15027 { $as_echo "$as_me:$LINENO: checking --disable-gpm argument" >&5
15028 $as_echo_n "checking --disable-gpm argument... " >&6; }
15029 # Check whether --enable-gpm was given.
15030 if test "${enable_gpm+set}" = set; then
15031 enableval=$enable_gpm;
15032 else
15033 enable_gpm="yes"
15037 if test "$enable_gpm" = "yes"; then
15038 { $as_echo "$as_me:$LINENO: result: no" >&5
15039 $as_echo "no" >&6; }
15040 { $as_echo "$as_me:$LINENO: checking for gpm" >&5
15041 $as_echo_n "checking for gpm... " >&6; }
15042 if test "${vi_cv_have_gpm+set}" = set; then
15043 $as_echo_n "(cached) " >&6
15044 else
15045 olibs="$LIBS" ; LIBS="-lgpm"
15046 cat >conftest.$ac_ext <<_ACEOF
15047 /* confdefs.h. */
15048 _ACEOF
15049 cat confdefs.h >>conftest.$ac_ext
15050 cat >>conftest.$ac_ext <<_ACEOF
15051 /* end confdefs.h. */
15052 #include <gpm.h>
15053 #include <linux/keyboard.h>
15055 main ()
15057 Gpm_GetLibVersion(NULL);
15059 return 0;
15061 _ACEOF
15062 rm -f conftest.$ac_objext conftest$ac_exeext
15063 if { (ac_try="$ac_link"
15064 case "(($ac_try" in
15065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15066 *) ac_try_echo=$ac_try;;
15067 esac
15068 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15069 $as_echo "$ac_try_echo") >&5
15070 (eval "$ac_link") 2>conftest.er1
15071 ac_status=$?
15072 grep -v '^ *+' conftest.er1 >conftest.err
15073 rm -f conftest.er1
15074 cat conftest.err >&5
15075 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15076 (exit $ac_status); } && {
15077 test -z "$ac_c_werror_flag" ||
15078 test ! -s conftest.err
15079 } && test -s conftest$ac_exeext && {
15080 test "$cross_compiling" = yes ||
15081 $as_test_x conftest$ac_exeext
15082 }; then
15083 vi_cv_have_gpm=yes
15084 else
15085 $as_echo "$as_me: failed program was:" >&5
15086 sed 's/^/| /' conftest.$ac_ext >&5
15088 vi_cv_have_gpm=no
15091 rm -rf conftest.dSYM
15092 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15093 conftest$ac_exeext conftest.$ac_ext
15094 LIBS="$olibs"
15097 { $as_echo "$as_me:$LINENO: result: $vi_cv_have_gpm" >&5
15098 $as_echo "$vi_cv_have_gpm" >&6; }
15099 if test $vi_cv_have_gpm = yes; then
15100 LIBS="$LIBS -lgpm"
15101 cat >>confdefs.h <<\_ACEOF
15102 #define HAVE_GPM 1
15103 _ACEOF
15106 else
15107 { $as_echo "$as_me:$LINENO: result: yes" >&5
15108 $as_echo "yes" >&6; }
15111 { $as_echo "$as_me:$LINENO: checking --disable-sysmouse argument" >&5
15112 $as_echo_n "checking --disable-sysmouse argument... " >&6; }
15113 # Check whether --enable-sysmouse was given.
15114 if test "${enable_sysmouse+set}" = set; then
15115 enableval=$enable_sysmouse;
15116 else
15117 enable_sysmouse="yes"
15121 if test "$enable_sysmouse" = "yes"; then
15122 { $as_echo "$as_me:$LINENO: result: no" >&5
15123 $as_echo "no" >&6; }
15124 { $as_echo "$as_me:$LINENO: checking for sysmouse" >&5
15125 $as_echo_n "checking for sysmouse... " >&6; }
15126 if test "${vi_cv_have_sysmouse+set}" = set; then
15127 $as_echo_n "(cached) " >&6
15128 else
15129 cat >conftest.$ac_ext <<_ACEOF
15130 /* confdefs.h. */
15131 _ACEOF
15132 cat confdefs.h >>conftest.$ac_ext
15133 cat >>conftest.$ac_ext <<_ACEOF
15134 /* end confdefs.h. */
15135 #include <sys/consio.h>
15136 #include <signal.h>
15137 #include <sys/fbio.h>
15139 main ()
15141 struct mouse_info mouse;
15142 mouse.operation = MOUSE_MODE;
15143 mouse.operation = MOUSE_SHOW;
15144 mouse.u.mode.mode = 0;
15145 mouse.u.mode.signal = SIGUSR2;
15147 return 0;
15149 _ACEOF
15150 rm -f conftest.$ac_objext conftest$ac_exeext
15151 if { (ac_try="$ac_link"
15152 case "(($ac_try" in
15153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15154 *) ac_try_echo=$ac_try;;
15155 esac
15156 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15157 $as_echo "$ac_try_echo") >&5
15158 (eval "$ac_link") 2>conftest.er1
15159 ac_status=$?
15160 grep -v '^ *+' conftest.er1 >conftest.err
15161 rm -f conftest.er1
15162 cat conftest.err >&5
15163 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15164 (exit $ac_status); } && {
15165 test -z "$ac_c_werror_flag" ||
15166 test ! -s conftest.err
15167 } && test -s conftest$ac_exeext && {
15168 test "$cross_compiling" = yes ||
15169 $as_test_x conftest$ac_exeext
15170 }; then
15171 vi_cv_have_sysmouse=yes
15172 else
15173 $as_echo "$as_me: failed program was:" >&5
15174 sed 's/^/| /' conftest.$ac_ext >&5
15176 vi_cv_have_sysmouse=no
15179 rm -rf conftest.dSYM
15180 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15181 conftest$ac_exeext conftest.$ac_ext
15184 { $as_echo "$as_me:$LINENO: result: $vi_cv_have_sysmouse" >&5
15185 $as_echo "$vi_cv_have_sysmouse" >&6; }
15186 if test $vi_cv_have_sysmouse = yes; then
15187 cat >>confdefs.h <<\_ACEOF
15188 #define HAVE_SYSMOUSE 1
15189 _ACEOF
15192 else
15193 { $as_echo "$as_me:$LINENO: result: yes" >&5
15194 $as_echo "yes" >&6; }
15197 { $as_echo "$as_me:$LINENO: checking for FD_CLOEXEC" >&5
15198 $as_echo_n "checking for FD_CLOEXEC... " >&6; }
15199 cat >conftest.$ac_ext <<_ACEOF
15200 /* confdefs.h. */
15201 _ACEOF
15202 cat confdefs.h >>conftest.$ac_ext
15203 cat >>conftest.$ac_ext <<_ACEOF
15204 /* end confdefs.h. */
15205 #if HAVE_FCNTL_H
15206 # include <fcntl.h>
15207 #endif
15209 main ()
15211 int flag = FD_CLOEXEC;
15213 return 0;
15215 _ACEOF
15216 rm -f conftest.$ac_objext
15217 if { (ac_try="$ac_compile"
15218 case "(($ac_try" in
15219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15220 *) ac_try_echo=$ac_try;;
15221 esac
15222 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15223 $as_echo "$ac_try_echo") >&5
15224 (eval "$ac_compile") 2>conftest.er1
15225 ac_status=$?
15226 grep -v '^ *+' conftest.er1 >conftest.err
15227 rm -f conftest.er1
15228 cat conftest.err >&5
15229 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15230 (exit $ac_status); } && {
15231 test -z "$ac_c_werror_flag" ||
15232 test ! -s conftest.err
15233 } && test -s conftest.$ac_objext; then
15234 { $as_echo "$as_me:$LINENO: result: yes" >&5
15235 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15236 #define HAVE_FD_CLOEXEC 1
15237 _ACEOF
15239 else
15240 $as_echo "$as_me: failed program was:" >&5
15241 sed 's/^/| /' conftest.$ac_ext >&5
15243 { $as_echo "$as_me:$LINENO: result: not usable" >&5
15244 $as_echo "not usable" >&6; }
15247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15249 { $as_echo "$as_me:$LINENO: checking for rename" >&5
15250 $as_echo_n "checking for rename... " >&6; }
15251 cat >conftest.$ac_ext <<_ACEOF
15252 /* confdefs.h. */
15253 _ACEOF
15254 cat confdefs.h >>conftest.$ac_ext
15255 cat >>conftest.$ac_ext <<_ACEOF
15256 /* end confdefs.h. */
15257 #include <stdio.h>
15259 main ()
15261 rename("this", "that")
15263 return 0;
15265 _ACEOF
15266 rm -f conftest.$ac_objext conftest$ac_exeext
15267 if { (ac_try="$ac_link"
15268 case "(($ac_try" in
15269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15270 *) ac_try_echo=$ac_try;;
15271 esac
15272 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15273 $as_echo "$ac_try_echo") >&5
15274 (eval "$ac_link") 2>conftest.er1
15275 ac_status=$?
15276 grep -v '^ *+' conftest.er1 >conftest.err
15277 rm -f conftest.er1
15278 cat conftest.err >&5
15279 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15280 (exit $ac_status); } && {
15281 test -z "$ac_c_werror_flag" ||
15282 test ! -s conftest.err
15283 } && test -s conftest$ac_exeext && {
15284 test "$cross_compiling" = yes ||
15285 $as_test_x conftest$ac_exeext
15286 }; then
15287 { $as_echo "$as_me:$LINENO: result: yes" >&5
15288 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15289 #define HAVE_RENAME 1
15290 _ACEOF
15292 else
15293 $as_echo "$as_me: failed program was:" >&5
15294 sed 's/^/| /' conftest.$ac_ext >&5
15296 { $as_echo "$as_me:$LINENO: result: no" >&5
15297 $as_echo "no" >&6; }
15300 rm -rf conftest.dSYM
15301 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15302 conftest$ac_exeext conftest.$ac_ext
15304 { $as_echo "$as_me:$LINENO: checking for sysctl" >&5
15305 $as_echo_n "checking for sysctl... " >&6; }
15306 cat >conftest.$ac_ext <<_ACEOF
15307 /* confdefs.h. */
15308 _ACEOF
15309 cat confdefs.h >>conftest.$ac_ext
15310 cat >>conftest.$ac_ext <<_ACEOF
15311 /* end confdefs.h. */
15312 #include <sys/types.h>
15313 #include <sys/sysctl.h>
15315 main ()
15317 int mib[2], r;
15318 size_t len;
15320 mib[0] = CTL_HW;
15321 mib[1] = HW_USERMEM;
15322 len = sizeof(r);
15323 (void)sysctl(mib, 2, &r, &len, (void *)0, (size_t)0);
15326 return 0;
15328 _ACEOF
15329 rm -f conftest.$ac_objext
15330 if { (ac_try="$ac_compile"
15331 case "(($ac_try" in
15332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15333 *) ac_try_echo=$ac_try;;
15334 esac
15335 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15336 $as_echo "$ac_try_echo") >&5
15337 (eval "$ac_compile") 2>conftest.er1
15338 ac_status=$?
15339 grep -v '^ *+' conftest.er1 >conftest.err
15340 rm -f conftest.er1
15341 cat conftest.err >&5
15342 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15343 (exit $ac_status); } && {
15344 test -z "$ac_c_werror_flag" ||
15345 test ! -s conftest.err
15346 } && test -s conftest.$ac_objext; then
15347 { $as_echo "$as_me:$LINENO: result: yes" >&5
15348 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15349 #define HAVE_SYSCTL 1
15350 _ACEOF
15352 else
15353 $as_echo "$as_me: failed program was:" >&5
15354 sed 's/^/| /' conftest.$ac_ext >&5
15356 { $as_echo "$as_me:$LINENO: result: not usable" >&5
15357 $as_echo "not usable" >&6; }
15360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15362 { $as_echo "$as_me:$LINENO: checking for sysinfo" >&5
15363 $as_echo_n "checking for sysinfo... " >&6; }
15364 cat >conftest.$ac_ext <<_ACEOF
15365 /* confdefs.h. */
15366 _ACEOF
15367 cat confdefs.h >>conftest.$ac_ext
15368 cat >>conftest.$ac_ext <<_ACEOF
15369 /* end confdefs.h. */
15370 #include <sys/types.h>
15371 #include <sys/sysinfo.h>
15373 main ()
15375 struct sysinfo sinfo;
15376 int t;
15378 (void)sysinfo(&sinfo);
15379 t = sinfo.totalram;
15382 return 0;
15384 _ACEOF
15385 rm -f conftest.$ac_objext
15386 if { (ac_try="$ac_compile"
15387 case "(($ac_try" in
15388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15389 *) ac_try_echo=$ac_try;;
15390 esac
15391 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15392 $as_echo "$ac_try_echo") >&5
15393 (eval "$ac_compile") 2>conftest.er1
15394 ac_status=$?
15395 grep -v '^ *+' conftest.er1 >conftest.err
15396 rm -f conftest.er1
15397 cat conftest.err >&5
15398 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15399 (exit $ac_status); } && {
15400 test -z "$ac_c_werror_flag" ||
15401 test ! -s conftest.err
15402 } && test -s conftest.$ac_objext; then
15403 { $as_echo "$as_me:$LINENO: result: yes" >&5
15404 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15405 #define HAVE_SYSINFO 1
15406 _ACEOF
15408 else
15409 $as_echo "$as_me: failed program was:" >&5
15410 sed 's/^/| /' conftest.$ac_ext >&5
15412 { $as_echo "$as_me:$LINENO: result: not usable" >&5
15413 $as_echo "not usable" >&6; }
15416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15418 { $as_echo "$as_me:$LINENO: checking for sysinfo.mem_unit" >&5
15419 $as_echo_n "checking for sysinfo.mem_unit... " >&6; }
15420 cat >conftest.$ac_ext <<_ACEOF
15421 /* confdefs.h. */
15422 _ACEOF
15423 cat confdefs.h >>conftest.$ac_ext
15424 cat >>conftest.$ac_ext <<_ACEOF
15425 /* end confdefs.h. */
15426 #include <sys/types.h>
15427 #include <sys/sysinfo.h>
15429 main ()
15431 struct sysinfo sinfo;
15432 sinfo.mem_unit = 1;
15435 return 0;
15437 _ACEOF
15438 rm -f conftest.$ac_objext
15439 if { (ac_try="$ac_compile"
15440 case "(($ac_try" in
15441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15442 *) ac_try_echo=$ac_try;;
15443 esac
15444 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15445 $as_echo "$ac_try_echo") >&5
15446 (eval "$ac_compile") 2>conftest.er1
15447 ac_status=$?
15448 grep -v '^ *+' conftest.er1 >conftest.err
15449 rm -f conftest.er1
15450 cat conftest.err >&5
15451 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15452 (exit $ac_status); } && {
15453 test -z "$ac_c_werror_flag" ||
15454 test ! -s conftest.err
15455 } && test -s conftest.$ac_objext; then
15456 { $as_echo "$as_me:$LINENO: result: yes" >&5
15457 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15458 #define HAVE_SYSINFO_MEM_UNIT 1
15459 _ACEOF
15461 else
15462 $as_echo "$as_me: failed program was:" >&5
15463 sed 's/^/| /' conftest.$ac_ext >&5
15465 { $as_echo "$as_me:$LINENO: result: no" >&5
15466 $as_echo "no" >&6; }
15469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15471 { $as_echo "$as_me:$LINENO: checking for sysconf" >&5
15472 $as_echo_n "checking for sysconf... " >&6; }
15473 cat >conftest.$ac_ext <<_ACEOF
15474 /* confdefs.h. */
15475 _ACEOF
15476 cat confdefs.h >>conftest.$ac_ext
15477 cat >>conftest.$ac_ext <<_ACEOF
15478 /* end confdefs.h. */
15479 #include <unistd.h>
15481 main ()
15483 (void)sysconf(_SC_PAGESIZE);
15484 (void)sysconf(_SC_PHYS_PAGES);
15487 return 0;
15489 _ACEOF
15490 rm -f conftest.$ac_objext
15491 if { (ac_try="$ac_compile"
15492 case "(($ac_try" in
15493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15494 *) ac_try_echo=$ac_try;;
15495 esac
15496 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15497 $as_echo "$ac_try_echo") >&5
15498 (eval "$ac_compile") 2>conftest.er1
15499 ac_status=$?
15500 grep -v '^ *+' conftest.er1 >conftest.err
15501 rm -f conftest.er1
15502 cat conftest.err >&5
15503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15504 (exit $ac_status); } && {
15505 test -z "$ac_c_werror_flag" ||
15506 test ! -s conftest.err
15507 } && test -s conftest.$ac_objext; then
15508 { $as_echo "$as_me:$LINENO: result: yes" >&5
15509 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15510 #define HAVE_SYSCONF 1
15511 _ACEOF
15513 else
15514 $as_echo "$as_me: failed program was:" >&5
15515 sed 's/^/| /' conftest.$ac_ext >&5
15517 { $as_echo "$as_me:$LINENO: result: not usable" >&5
15518 $as_echo "not usable" >&6; }
15521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15524 { $as_echo "$as_me:$LINENO: checking size of int" >&5
15525 $as_echo_n "checking size of int... " >&6; }
15526 if test "${ac_cv_sizeof_int+set}" = set; then
15527 $as_echo_n "(cached) " >&6
15528 else
15529 if test "$cross_compiling" = yes; then
15530 { { $as_echo "$as_me:$LINENO: error: failed to compile test program" >&5
15531 $as_echo "$as_me: error: failed to compile test program" >&2;}
15532 { (exit 1); exit 1; }; }
15533 else
15534 cat >conftest.$ac_ext <<_ACEOF
15535 /* confdefs.h. */
15536 _ACEOF
15537 cat confdefs.h >>conftest.$ac_ext
15538 cat >>conftest.$ac_ext <<_ACEOF
15539 /* end confdefs.h. */
15541 #include <stdio.h>
15542 #if STDC_HEADERS
15543 # include <stdlib.h>
15544 # include <stddef.h>
15545 #endif
15546 main()
15548 FILE *f=fopen("conftestval", "w");
15549 if (!f) exit(1);
15550 fprintf(f, "%d\n", (int)sizeof(int));
15551 exit(0);
15553 _ACEOF
15554 rm -f conftest$ac_exeext
15555 if { (ac_try="$ac_link"
15556 case "(($ac_try" in
15557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15558 *) ac_try_echo=$ac_try;;
15559 esac
15560 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15561 $as_echo "$ac_try_echo") >&5
15562 (eval "$ac_link") 2>&5
15563 ac_status=$?
15564 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15565 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15566 { (case "(($ac_try" in
15567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15568 *) ac_try_echo=$ac_try;;
15569 esac
15570 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15571 $as_echo "$ac_try_echo") >&5
15572 (eval "$ac_try") 2>&5
15573 ac_status=$?
15574 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15575 (exit $ac_status); }; }; then
15576 ac_cv_sizeof_int=`cat conftestval`
15577 else
15578 $as_echo "$as_me: program exited with status $ac_status" >&5
15579 $as_echo "$as_me: failed program was:" >&5
15580 sed 's/^/| /' conftest.$ac_ext >&5
15582 ( exit $ac_status )
15583 ac_cv_sizeof_int=0
15585 rm -rf conftest.dSYM
15586 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15592 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15593 $as_echo "$ac_cv_sizeof_int" >&6; }
15594 cat >>confdefs.h <<_ACEOF
15595 #define SIZEOF_INT $ac_cv_sizeof_int
15596 _ACEOF
15600 bcopy_test_prog='
15601 #include "confdefs.h"
15602 #ifdef HAVE_STRING_H
15603 # include <string.h>
15604 #endif
15605 #if STDC_HEADERS
15606 # include <stdlib.h>
15607 # include <stddef.h>
15608 #endif
15609 main() {
15610 char buf[10];
15611 strcpy(buf, "abcdefghi");
15612 mch_memmove(buf, buf + 2, 3);
15613 if (strncmp(buf, "ababcf", 6))
15614 exit(1);
15615 strcpy(buf, "abcdefghi");
15616 mch_memmove(buf + 2, buf, 3);
15617 if (strncmp(buf, "cdedef", 6))
15618 exit(1);
15619 exit(0); /* libc version works properly. */
15622 { $as_echo "$as_me:$LINENO: checking whether memmove handles overlaps" >&5
15623 $as_echo_n "checking whether memmove handles overlaps... " >&6; }
15624 if test "${vim_cv_memmove_handles_overlap+set}" = set; then
15625 $as_echo_n "(cached) " >&6
15626 else
15628 if test "$cross_compiling" = yes; then
15630 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_memmove_handles_overlap'" >&5
15631 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_memmove_handles_overlap'" >&2;}
15632 { (exit 1); exit 1; }; }
15634 else
15635 cat >conftest.$ac_ext <<_ACEOF
15636 #define mch_memmove(s,d,l) memmove(d,s,l) $bcopy_test_prog
15637 _ACEOF
15638 rm -f conftest$ac_exeext
15639 if { (ac_try="$ac_link"
15640 case "(($ac_try" in
15641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15642 *) ac_try_echo=$ac_try;;
15643 esac
15644 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15645 $as_echo "$ac_try_echo") >&5
15646 (eval "$ac_link") 2>&5
15647 ac_status=$?
15648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15649 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15650 { (case "(($ac_try" in
15651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15652 *) ac_try_echo=$ac_try;;
15653 esac
15654 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15655 $as_echo "$ac_try_echo") >&5
15656 (eval "$ac_try") 2>&5
15657 ac_status=$?
15658 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15659 (exit $ac_status); }; }; then
15661 vim_cv_memmove_handles_overlap=yes
15663 else
15664 $as_echo "$as_me: program exited with status $ac_status" >&5
15665 $as_echo "$as_me: failed program was:" >&5
15666 sed 's/^/| /' conftest.$ac_ext >&5
15668 ( exit $ac_status )
15670 vim_cv_memmove_handles_overlap=no
15673 rm -rf conftest.dSYM
15674 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15680 { $as_echo "$as_me:$LINENO: result: $vim_cv_memmove_handles_overlap" >&5
15681 $as_echo "$vim_cv_memmove_handles_overlap" >&6; }
15683 if test "x$vim_cv_memmove_handles_overlap" = "xyes" ; then
15684 cat >>confdefs.h <<\_ACEOF
15685 #define USEMEMMOVE 1
15686 _ACEOF
15688 else
15689 { $as_echo "$as_me:$LINENO: checking whether bcopy handles overlaps" >&5
15690 $as_echo_n "checking whether bcopy handles overlaps... " >&6; }
15691 if test "${vim_cv_bcopy_handles_overlap+set}" = set; then
15692 $as_echo_n "(cached) " >&6
15693 else
15695 if test "$cross_compiling" = yes; then
15697 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_bcopy_handles_overlap'" >&5
15698 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_bcopy_handles_overlap'" >&2;}
15699 { (exit 1); exit 1; }; }
15701 else
15702 cat >conftest.$ac_ext <<_ACEOF
15703 #define mch_bcopy(s,d,l) bcopy(d,s,l) $bcopy_test_prog
15704 _ACEOF
15705 rm -f conftest$ac_exeext
15706 if { (ac_try="$ac_link"
15707 case "(($ac_try" in
15708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15709 *) ac_try_echo=$ac_try;;
15710 esac
15711 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15712 $as_echo "$ac_try_echo") >&5
15713 (eval "$ac_link") 2>&5
15714 ac_status=$?
15715 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15716 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15717 { (case "(($ac_try" in
15718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15719 *) ac_try_echo=$ac_try;;
15720 esac
15721 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15722 $as_echo "$ac_try_echo") >&5
15723 (eval "$ac_try") 2>&5
15724 ac_status=$?
15725 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15726 (exit $ac_status); }; }; then
15728 vim_cv_bcopy_handles_overlap=yes
15730 else
15731 $as_echo "$as_me: program exited with status $ac_status" >&5
15732 $as_echo "$as_me: failed program was:" >&5
15733 sed 's/^/| /' conftest.$ac_ext >&5
15735 ( exit $ac_status )
15737 vim_cv_bcopy_handles_overlap=no
15740 rm -rf conftest.dSYM
15741 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15747 { $as_echo "$as_me:$LINENO: result: $vim_cv_bcopy_handles_overlap" >&5
15748 $as_echo "$vim_cv_bcopy_handles_overlap" >&6; }
15750 if test "x$vim_cv_bcopy_handles_overlap" = "xyes" ; then
15751 cat >>confdefs.h <<\_ACEOF
15752 #define USEBCOPY 1
15753 _ACEOF
15755 else
15756 { $as_echo "$as_me:$LINENO: checking whether memcpy handles overlaps" >&5
15757 $as_echo_n "checking whether memcpy handles overlaps... " >&6; }
15758 if test "${vim_cv_memcpy_handles_overlap+set}" = set; then
15759 $as_echo_n "(cached) " >&6
15760 else
15762 if test "$cross_compiling" = yes; then
15764 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_memcpy_handles_overlap'" >&5
15765 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_memcpy_handles_overlap'" >&2;}
15766 { (exit 1); exit 1; }; }
15768 else
15769 cat >conftest.$ac_ext <<_ACEOF
15770 #define mch_memcpy(s,d,l) memcpy(d,s,l) $bcopy_test_prog
15771 _ACEOF
15772 rm -f conftest$ac_exeext
15773 if { (ac_try="$ac_link"
15774 case "(($ac_try" in
15775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15776 *) ac_try_echo=$ac_try;;
15777 esac
15778 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15779 $as_echo "$ac_try_echo") >&5
15780 (eval "$ac_link") 2>&5
15781 ac_status=$?
15782 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15783 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15784 { (case "(($ac_try" in
15785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15786 *) ac_try_echo=$ac_try;;
15787 esac
15788 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15789 $as_echo "$ac_try_echo") >&5
15790 (eval "$ac_try") 2>&5
15791 ac_status=$?
15792 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15793 (exit $ac_status); }; }; then
15795 vim_cv_memcpy_handles_overlap=yes
15797 else
15798 $as_echo "$as_me: program exited with status $ac_status" >&5
15799 $as_echo "$as_me: failed program was:" >&5
15800 sed 's/^/| /' conftest.$ac_ext >&5
15802 ( exit $ac_status )
15804 vim_cv_memcpy_handles_overlap=no
15807 rm -rf conftest.dSYM
15808 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15814 { $as_echo "$as_me:$LINENO: result: $vim_cv_memcpy_handles_overlap" >&5
15815 $as_echo "$vim_cv_memcpy_handles_overlap" >&6; }
15817 if test "x$vim_cv_memcpy_handles_overlap" = "xyes" ; then
15818 cat >>confdefs.h <<\_ACEOF
15819 #define USEMEMCPY 1
15820 _ACEOF
15828 if test "$enable_multibyte" = "yes"; then
15829 cflags_save=$CFLAGS
15830 ldflags_save=$LDFLAGS
15831 if test "x$x_includes" != "xNONE" ; then
15832 CFLAGS="$CFLAGS -I$x_includes"
15833 LDFLAGS="$X_LIBS $LDFLAGS -lX11"
15834 { $as_echo "$as_me:$LINENO: checking whether X_LOCALE needed" >&5
15835 $as_echo_n "checking whether X_LOCALE needed... " >&6; }
15836 cat >conftest.$ac_ext <<_ACEOF
15837 /* confdefs.h. */
15838 _ACEOF
15839 cat confdefs.h >>conftest.$ac_ext
15840 cat >>conftest.$ac_ext <<_ACEOF
15841 /* end confdefs.h. */
15842 #include <X11/Xlocale.h>
15844 main ()
15848 return 0;
15850 _ACEOF
15851 rm -f conftest.$ac_objext
15852 if { (ac_try="$ac_compile"
15853 case "(($ac_try" in
15854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15855 *) ac_try_echo=$ac_try;;
15856 esac
15857 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15858 $as_echo "$ac_try_echo") >&5
15859 (eval "$ac_compile") 2>conftest.er1
15860 ac_status=$?
15861 grep -v '^ *+' conftest.er1 >conftest.err
15862 rm -f conftest.er1
15863 cat conftest.err >&5
15864 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15865 (exit $ac_status); } && {
15866 test -z "$ac_c_werror_flag" ||
15867 test ! -s conftest.err
15868 } && test -s conftest.$ac_objext; then
15869 cat >conftest.$ac_ext <<_ACEOF
15870 /* confdefs.h. */
15871 _ACEOF
15872 cat confdefs.h >>conftest.$ac_ext
15873 cat >>conftest.$ac_ext <<_ACEOF
15874 /* end confdefs.h. */
15876 /* Override any GCC internal prototype to avoid an error.
15877 Use char because int might match the return type of a GCC
15878 builtin and then its argument prototype would still apply. */
15879 #ifdef __cplusplus
15880 extern "C"
15881 #endif
15882 char _Xsetlocale ();
15884 main ()
15886 return _Xsetlocale ();
15888 return 0;
15890 _ACEOF
15891 rm -f conftest.$ac_objext conftest$ac_exeext
15892 if { (ac_try="$ac_link"
15893 case "(($ac_try" in
15894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15895 *) ac_try_echo=$ac_try;;
15896 esac
15897 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15898 $as_echo "$ac_try_echo") >&5
15899 (eval "$ac_link") 2>conftest.er1
15900 ac_status=$?
15901 grep -v '^ *+' conftest.er1 >conftest.err
15902 rm -f conftest.er1
15903 cat conftest.err >&5
15904 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15905 (exit $ac_status); } && {
15906 test -z "$ac_c_werror_flag" ||
15907 test ! -s conftest.err
15908 } && test -s conftest$ac_exeext && {
15909 test "$cross_compiling" = yes ||
15910 $as_test_x conftest$ac_exeext
15911 }; then
15912 { $as_echo "$as_me:$LINENO: result: yes" >&5
15913 $as_echo "yes" >&6; }
15914 cat >>confdefs.h <<\_ACEOF
15915 #define X_LOCALE 1
15916 _ACEOF
15918 else
15919 $as_echo "$as_me: failed program was:" >&5
15920 sed 's/^/| /' conftest.$ac_ext >&5
15922 { $as_echo "$as_me:$LINENO: result: no" >&5
15923 $as_echo "no" >&6; }
15926 rm -rf conftest.dSYM
15927 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15928 conftest$ac_exeext conftest.$ac_ext
15929 else
15930 $as_echo "$as_me: failed program was:" >&5
15931 sed 's/^/| /' conftest.$ac_ext >&5
15933 { $as_echo "$as_me:$LINENO: result: no" >&5
15934 $as_echo "no" >&6; }
15937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15939 CFLAGS=$cflags_save
15940 LDFLAGS=$ldflags_save
15943 { $as_echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
15944 $as_echo_n "checking for _xpg4_setrunelocale in -lxpg4... " >&6; }
15945 if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
15946 $as_echo_n "(cached) " >&6
15947 else
15948 ac_check_lib_save_LIBS=$LIBS
15949 LIBS="-lxpg4 $LIBS"
15950 cat >conftest.$ac_ext <<_ACEOF
15951 /* confdefs.h. */
15952 _ACEOF
15953 cat confdefs.h >>conftest.$ac_ext
15954 cat >>conftest.$ac_ext <<_ACEOF
15955 /* end confdefs.h. */
15957 /* Override any GCC internal prototype to avoid an error.
15958 Use char because int might match the return type of a GCC
15959 builtin and then its argument prototype would still apply. */
15960 #ifdef __cplusplus
15961 extern "C"
15962 #endif
15963 char _xpg4_setrunelocale ();
15965 main ()
15967 return _xpg4_setrunelocale ();
15969 return 0;
15971 _ACEOF
15972 rm -f conftest.$ac_objext conftest$ac_exeext
15973 if { (ac_try="$ac_link"
15974 case "(($ac_try" in
15975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15976 *) ac_try_echo=$ac_try;;
15977 esac
15978 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15979 $as_echo "$ac_try_echo") >&5
15980 (eval "$ac_link") 2>conftest.er1
15981 ac_status=$?
15982 grep -v '^ *+' conftest.er1 >conftest.err
15983 rm -f conftest.er1
15984 cat conftest.err >&5
15985 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15986 (exit $ac_status); } && {
15987 test -z "$ac_c_werror_flag" ||
15988 test ! -s conftest.err
15989 } && test -s conftest$ac_exeext && {
15990 test "$cross_compiling" = yes ||
15991 $as_test_x conftest$ac_exeext
15992 }; then
15993 ac_cv_lib_xpg4__xpg4_setrunelocale=yes
15994 else
15995 $as_echo "$as_me: failed program was:" >&5
15996 sed 's/^/| /' conftest.$ac_ext >&5
15998 ac_cv_lib_xpg4__xpg4_setrunelocale=no
16001 rm -rf conftest.dSYM
16002 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16003 conftest$ac_exeext conftest.$ac_ext
16004 LIBS=$ac_check_lib_save_LIBS
16006 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
16007 $as_echo "$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6; }
16008 if test "x$ac_cv_lib_xpg4__xpg4_setrunelocale" = x""yes; then
16009 LIBS="$LIBS -lxpg4"
16013 { $as_echo "$as_me:$LINENO: checking how to create tags" >&5
16014 $as_echo_n "checking how to create tags... " >&6; }
16015 test -f tags && mv tags tags.save
16016 if (eval ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then
16017 TAGPRG="ctags -I INIT+ --fields=+S"
16018 else
16019 TAGPRG="ctags"
16020 (eval etags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags"
16021 (eval etags -c /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags -c"
16022 (eval ctags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags"
16023 (eval ctags -t /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -t"
16024 (eval ctags -ts /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -ts"
16025 (eval ctags -tvs /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -tvs"
16026 (eval ctags -i+m /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -i+m"
16028 test -f tags.save && mv tags.save tags
16029 { $as_echo "$as_me:$LINENO: result: $TAGPRG" >&5
16030 $as_echo "$TAGPRG" >&6; }
16032 { $as_echo "$as_me:$LINENO: checking how to run man with a section nr" >&5
16033 $as_echo_n "checking how to run man with a section nr... " >&6; }
16034 MANDEF="man"
16035 (eval MANPAGER=cat PAGER=cat man -s 2 read) < /dev/null > /dev/null 2>&5 && MANDEF="man -s"
16036 { $as_echo "$as_me:$LINENO: result: $MANDEF" >&5
16037 $as_echo "$MANDEF" >&6; }
16038 if test "$MANDEF" = "man -s"; then
16039 cat >>confdefs.h <<\_ACEOF
16040 #define USEMAN_S 1
16041 _ACEOF
16045 { $as_echo "$as_me:$LINENO: checking --disable-nls argument" >&5
16046 $as_echo_n "checking --disable-nls argument... " >&6; }
16047 # Check whether --enable-nls was given.
16048 if test "${enable_nls+set}" = set; then
16049 enableval=$enable_nls;
16050 else
16051 enable_nls="yes"
16055 if test "$enable_nls" = "yes"; then
16056 { $as_echo "$as_me:$LINENO: result: no" >&5
16057 $as_echo "no" >&6; }
16059 INSTALL_LANGS=install-languages
16061 INSTALL_TOOL_LANGS=install-tool-languages
16064 # Extract the first word of "msgfmt", so it can be a program name with args.
16065 set dummy msgfmt; ac_word=$2
16066 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16067 $as_echo_n "checking for $ac_word... " >&6; }
16068 if test "${ac_cv_prog_MSGFMT+set}" = set; then
16069 $as_echo_n "(cached) " >&6
16070 else
16071 if test -n "$MSGFMT"; then
16072 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
16073 else
16074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16075 for as_dir in $PATH
16077 IFS=$as_save_IFS
16078 test -z "$as_dir" && as_dir=.
16079 for ac_exec_ext in '' $ac_executable_extensions; do
16080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16081 ac_cv_prog_MSGFMT="msgfmt"
16082 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16083 break 2
16085 done
16086 done
16087 IFS=$as_save_IFS
16091 MSGFMT=$ac_cv_prog_MSGFMT
16092 if test -n "$MSGFMT"; then
16093 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
16094 $as_echo "$MSGFMT" >&6; }
16095 else
16096 { $as_echo "$as_me:$LINENO: result: no" >&5
16097 $as_echo "no" >&6; }
16101 { $as_echo "$as_me:$LINENO: checking for NLS" >&5
16102 $as_echo_n "checking for NLS... " >&6; }
16103 if test -f po/Makefile; then
16104 have_gettext="no"
16105 if test -n "$MSGFMT"; then
16106 cat >conftest.$ac_ext <<_ACEOF
16107 /* confdefs.h. */
16108 _ACEOF
16109 cat confdefs.h >>conftest.$ac_ext
16110 cat >>conftest.$ac_ext <<_ACEOF
16111 /* end confdefs.h. */
16112 #include <libintl.h>
16114 main ()
16116 gettext("Test");
16118 return 0;
16120 _ACEOF
16121 rm -f conftest.$ac_objext conftest$ac_exeext
16122 if { (ac_try="$ac_link"
16123 case "(($ac_try" in
16124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16125 *) ac_try_echo=$ac_try;;
16126 esac
16127 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16128 $as_echo "$ac_try_echo") >&5
16129 (eval "$ac_link") 2>conftest.er1
16130 ac_status=$?
16131 grep -v '^ *+' conftest.er1 >conftest.err
16132 rm -f conftest.er1
16133 cat conftest.err >&5
16134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16135 (exit $ac_status); } && {
16136 test -z "$ac_c_werror_flag" ||
16137 test ! -s conftest.err
16138 } && test -s conftest$ac_exeext && {
16139 test "$cross_compiling" = yes ||
16140 $as_test_x conftest$ac_exeext
16141 }; then
16142 { $as_echo "$as_me:$LINENO: result: gettext() works" >&5
16143 $as_echo "gettext() works" >&6; }; have_gettext="yes"
16144 else
16145 $as_echo "$as_me: failed program was:" >&5
16146 sed 's/^/| /' conftest.$ac_ext >&5
16148 olibs=$LIBS
16149 LIBS="$LIBS -lintl"
16150 cat >conftest.$ac_ext <<_ACEOF
16151 /* confdefs.h. */
16152 _ACEOF
16153 cat confdefs.h >>conftest.$ac_ext
16154 cat >>conftest.$ac_ext <<_ACEOF
16155 /* end confdefs.h. */
16156 #include <libintl.h>
16158 main ()
16160 gettext("Test");
16162 return 0;
16164 _ACEOF
16165 rm -f conftest.$ac_objext conftest$ac_exeext
16166 if { (ac_try="$ac_link"
16167 case "(($ac_try" in
16168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16169 *) ac_try_echo=$ac_try;;
16170 esac
16171 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16172 $as_echo "$ac_try_echo") >&5
16173 (eval "$ac_link") 2>conftest.er1
16174 ac_status=$?
16175 grep -v '^ *+' conftest.er1 >conftest.err
16176 rm -f conftest.er1
16177 cat conftest.err >&5
16178 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16179 (exit $ac_status); } && {
16180 test -z "$ac_c_werror_flag" ||
16181 test ! -s conftest.err
16182 } && test -s conftest$ac_exeext && {
16183 test "$cross_compiling" = yes ||
16184 $as_test_x conftest$ac_exeext
16185 }; then
16186 { $as_echo "$as_me:$LINENO: result: gettext() works with -lintl" >&5
16187 $as_echo "gettext() works with -lintl" >&6; }; have_gettext="yes"
16188 else
16189 $as_echo "$as_me: failed program was:" >&5
16190 sed 's/^/| /' conftest.$ac_ext >&5
16192 { $as_echo "$as_me:$LINENO: result: gettext() doesn't work" >&5
16193 $as_echo "gettext() doesn't work" >&6; };
16194 LIBS=$olibs
16197 rm -rf conftest.dSYM
16198 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16199 conftest$ac_exeext conftest.$ac_ext
16202 rm -rf conftest.dSYM
16203 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16204 conftest$ac_exeext conftest.$ac_ext
16205 else
16206 { $as_echo "$as_me:$LINENO: result: msgfmt not found - disabled" >&5
16207 $as_echo "msgfmt not found - disabled" >&6; };
16209 if test $have_gettext = "yes"; then
16210 cat >>confdefs.h <<\_ACEOF
16211 #define HAVE_GETTEXT 1
16212 _ACEOF
16214 MAKEMO=yes
16217 for ac_func in bind_textdomain_codeset
16219 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16220 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16221 $as_echo_n "checking for $ac_func... " >&6; }
16222 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16223 $as_echo_n "(cached) " >&6
16224 else
16225 cat >conftest.$ac_ext <<_ACEOF
16226 /* confdefs.h. */
16227 _ACEOF
16228 cat confdefs.h >>conftest.$ac_ext
16229 cat >>conftest.$ac_ext <<_ACEOF
16230 /* end confdefs.h. */
16231 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16232 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16233 #define $ac_func innocuous_$ac_func
16235 /* System header to define __stub macros and hopefully few prototypes,
16236 which can conflict with char $ac_func (); below.
16237 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16238 <limits.h> exists even on freestanding compilers. */
16240 #ifdef __STDC__
16241 # include <limits.h>
16242 #else
16243 # include <assert.h>
16244 #endif
16246 #undef $ac_func
16248 /* Override any GCC internal prototype to avoid an error.
16249 Use char because int might match the return type of a GCC
16250 builtin and then its argument prototype would still apply. */
16251 #ifdef __cplusplus
16252 extern "C"
16253 #endif
16254 char $ac_func ();
16255 /* The GNU C library defines this for functions which it implements
16256 to always fail with ENOSYS. Some functions are actually named
16257 something starting with __ and the normal name is an alias. */
16258 #if defined __stub_$ac_func || defined __stub___$ac_func
16259 choke me
16260 #endif
16263 main ()
16265 return $ac_func ();
16267 return 0;
16269 _ACEOF
16270 rm -f conftest.$ac_objext conftest$ac_exeext
16271 if { (ac_try="$ac_link"
16272 case "(($ac_try" in
16273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16274 *) ac_try_echo=$ac_try;;
16275 esac
16276 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16277 $as_echo "$ac_try_echo") >&5
16278 (eval "$ac_link") 2>conftest.er1
16279 ac_status=$?
16280 grep -v '^ *+' conftest.er1 >conftest.err
16281 rm -f conftest.er1
16282 cat conftest.err >&5
16283 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16284 (exit $ac_status); } && {
16285 test -z "$ac_c_werror_flag" ||
16286 test ! -s conftest.err
16287 } && test -s conftest$ac_exeext && {
16288 test "$cross_compiling" = yes ||
16289 $as_test_x conftest$ac_exeext
16290 }; then
16291 eval "$as_ac_var=yes"
16292 else
16293 $as_echo "$as_me: failed program was:" >&5
16294 sed 's/^/| /' conftest.$ac_ext >&5
16296 eval "$as_ac_var=no"
16299 rm -rf conftest.dSYM
16300 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16301 conftest$ac_exeext conftest.$ac_ext
16303 ac_res=`eval 'as_val=${'$as_ac_var'}
16304 $as_echo "$as_val"'`
16305 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16306 $as_echo "$ac_res" >&6; }
16307 as_val=`eval 'as_val=${'$as_ac_var'}
16308 $as_echo "$as_val"'`
16309 if test "x$as_val" = x""yes; then
16310 cat >>confdefs.h <<_ACEOF
16311 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16312 _ACEOF
16315 done
16317 { $as_echo "$as_me:$LINENO: checking for _nl_msg_cat_cntr" >&5
16318 $as_echo_n "checking for _nl_msg_cat_cntr... " >&6; }
16319 cat >conftest.$ac_ext <<_ACEOF
16320 /* confdefs.h. */
16321 _ACEOF
16322 cat confdefs.h >>conftest.$ac_ext
16323 cat >>conftest.$ac_ext <<_ACEOF
16324 /* end confdefs.h. */
16325 #include <libintl.h>
16326 extern int _nl_msg_cat_cntr;
16328 main ()
16330 ++_nl_msg_cat_cntr;
16332 return 0;
16334 _ACEOF
16335 rm -f conftest.$ac_objext conftest$ac_exeext
16336 if { (ac_try="$ac_link"
16337 case "(($ac_try" in
16338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16339 *) ac_try_echo=$ac_try;;
16340 esac
16341 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16342 $as_echo "$ac_try_echo") >&5
16343 (eval "$ac_link") 2>conftest.er1
16344 ac_status=$?
16345 grep -v '^ *+' conftest.er1 >conftest.err
16346 rm -f conftest.er1
16347 cat conftest.err >&5
16348 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16349 (exit $ac_status); } && {
16350 test -z "$ac_c_werror_flag" ||
16351 test ! -s conftest.err
16352 } && test -s conftest$ac_exeext && {
16353 test "$cross_compiling" = yes ||
16354 $as_test_x conftest$ac_exeext
16355 }; then
16356 { $as_echo "$as_me:$LINENO: result: yes" >&5
16357 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
16358 #define HAVE_NL_MSG_CAT_CNTR 1
16359 _ACEOF
16361 else
16362 $as_echo "$as_me: failed program was:" >&5
16363 sed 's/^/| /' conftest.$ac_ext >&5
16365 { $as_echo "$as_me:$LINENO: result: no" >&5
16366 $as_echo "no" >&6; }
16369 rm -rf conftest.dSYM
16370 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16371 conftest$ac_exeext conftest.$ac_ext
16373 else
16374 { $as_echo "$as_me:$LINENO: result: no \"po/Makefile\" - disabled" >&5
16375 $as_echo "no \"po/Makefile\" - disabled" >&6; };
16377 else
16378 { $as_echo "$as_me:$LINENO: result: yes" >&5
16379 $as_echo "yes" >&6; }
16382 if test "${ac_cv_header_dlfcn_h+set}" = set; then
16383 { $as_echo "$as_me:$LINENO: checking for dlfcn.h" >&5
16384 $as_echo_n "checking for dlfcn.h... " >&6; }
16385 if test "${ac_cv_header_dlfcn_h+set}" = set; then
16386 $as_echo_n "(cached) " >&6
16388 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
16389 $as_echo "$ac_cv_header_dlfcn_h" >&6; }
16390 else
16391 # Is the header compilable?
16392 { $as_echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
16393 $as_echo_n "checking dlfcn.h usability... " >&6; }
16394 cat >conftest.$ac_ext <<_ACEOF
16395 /* confdefs.h. */
16396 _ACEOF
16397 cat confdefs.h >>conftest.$ac_ext
16398 cat >>conftest.$ac_ext <<_ACEOF
16399 /* end confdefs.h. */
16400 $ac_includes_default
16401 #include <dlfcn.h>
16402 _ACEOF
16403 rm -f conftest.$ac_objext
16404 if { (ac_try="$ac_compile"
16405 case "(($ac_try" in
16406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16407 *) ac_try_echo=$ac_try;;
16408 esac
16409 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16410 $as_echo "$ac_try_echo") >&5
16411 (eval "$ac_compile") 2>conftest.er1
16412 ac_status=$?
16413 grep -v '^ *+' conftest.er1 >conftest.err
16414 rm -f conftest.er1
16415 cat conftest.err >&5
16416 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16417 (exit $ac_status); } && {
16418 test -z "$ac_c_werror_flag" ||
16419 test ! -s conftest.err
16420 } && test -s conftest.$ac_objext; then
16421 ac_header_compiler=yes
16422 else
16423 $as_echo "$as_me: failed program was:" >&5
16424 sed 's/^/| /' conftest.$ac_ext >&5
16426 ac_header_compiler=no
16429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16430 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16431 $as_echo "$ac_header_compiler" >&6; }
16433 # Is the header present?
16434 { $as_echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
16435 $as_echo_n "checking dlfcn.h presence... " >&6; }
16436 cat >conftest.$ac_ext <<_ACEOF
16437 /* confdefs.h. */
16438 _ACEOF
16439 cat confdefs.h >>conftest.$ac_ext
16440 cat >>conftest.$ac_ext <<_ACEOF
16441 /* end confdefs.h. */
16442 #include <dlfcn.h>
16443 _ACEOF
16444 if { (ac_try="$ac_cpp conftest.$ac_ext"
16445 case "(($ac_try" in
16446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16447 *) ac_try_echo=$ac_try;;
16448 esac
16449 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16450 $as_echo "$ac_try_echo") >&5
16451 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16452 ac_status=$?
16453 grep -v '^ *+' conftest.er1 >conftest.err
16454 rm -f conftest.er1
16455 cat conftest.err >&5
16456 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16457 (exit $ac_status); } >/dev/null && {
16458 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16459 test ! -s conftest.err
16460 }; then
16461 ac_header_preproc=yes
16462 else
16463 $as_echo "$as_me: failed program was:" >&5
16464 sed 's/^/| /' conftest.$ac_ext >&5
16466 ac_header_preproc=no
16469 rm -f conftest.err conftest.$ac_ext
16470 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16471 $as_echo "$ac_header_preproc" >&6; }
16473 # So? What about this header?
16474 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16475 yes:no: )
16476 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
16477 $as_echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16478 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5
16479 $as_echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;}
16480 ac_header_preproc=yes
16482 no:yes:* )
16483 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
16484 $as_echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
16485 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5
16486 $as_echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;}
16487 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5
16488 $as_echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;}
16489 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5
16490 $as_echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;}
16491 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
16492 $as_echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
16493 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5
16494 $as_echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;}
16497 esac
16498 { $as_echo "$as_me:$LINENO: checking for dlfcn.h" >&5
16499 $as_echo_n "checking for dlfcn.h... " >&6; }
16500 if test "${ac_cv_header_dlfcn_h+set}" = set; then
16501 $as_echo_n "(cached) " >&6
16502 else
16503 ac_cv_header_dlfcn_h=$ac_header_preproc
16505 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
16506 $as_echo "$ac_cv_header_dlfcn_h" >&6; }
16509 if test "x$ac_cv_header_dlfcn_h" = x""yes; then
16510 DLL=dlfcn.h
16511 else
16512 if test "${ac_cv_header_dl_h+set}" = set; then
16513 { $as_echo "$as_me:$LINENO: checking for dl.h" >&5
16514 $as_echo_n "checking for dl.h... " >&6; }
16515 if test "${ac_cv_header_dl_h+set}" = set; then
16516 $as_echo_n "(cached) " >&6
16518 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5
16519 $as_echo "$ac_cv_header_dl_h" >&6; }
16520 else
16521 # Is the header compilable?
16522 { $as_echo "$as_me:$LINENO: checking dl.h usability" >&5
16523 $as_echo_n "checking dl.h usability... " >&6; }
16524 cat >conftest.$ac_ext <<_ACEOF
16525 /* confdefs.h. */
16526 _ACEOF
16527 cat confdefs.h >>conftest.$ac_ext
16528 cat >>conftest.$ac_ext <<_ACEOF
16529 /* end confdefs.h. */
16530 $ac_includes_default
16531 #include <dl.h>
16532 _ACEOF
16533 rm -f conftest.$ac_objext
16534 if { (ac_try="$ac_compile"
16535 case "(($ac_try" in
16536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16537 *) ac_try_echo=$ac_try;;
16538 esac
16539 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16540 $as_echo "$ac_try_echo") >&5
16541 (eval "$ac_compile") 2>conftest.er1
16542 ac_status=$?
16543 grep -v '^ *+' conftest.er1 >conftest.err
16544 rm -f conftest.er1
16545 cat conftest.err >&5
16546 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16547 (exit $ac_status); } && {
16548 test -z "$ac_c_werror_flag" ||
16549 test ! -s conftest.err
16550 } && test -s conftest.$ac_objext; then
16551 ac_header_compiler=yes
16552 else
16553 $as_echo "$as_me: failed program was:" >&5
16554 sed 's/^/| /' conftest.$ac_ext >&5
16556 ac_header_compiler=no
16559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16560 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16561 $as_echo "$ac_header_compiler" >&6; }
16563 # Is the header present?
16564 { $as_echo "$as_me:$LINENO: checking dl.h presence" >&5
16565 $as_echo_n "checking dl.h presence... " >&6; }
16566 cat >conftest.$ac_ext <<_ACEOF
16567 /* confdefs.h. */
16568 _ACEOF
16569 cat confdefs.h >>conftest.$ac_ext
16570 cat >>conftest.$ac_ext <<_ACEOF
16571 /* end confdefs.h. */
16572 #include <dl.h>
16573 _ACEOF
16574 if { (ac_try="$ac_cpp conftest.$ac_ext"
16575 case "(($ac_try" in
16576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16577 *) ac_try_echo=$ac_try;;
16578 esac
16579 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16580 $as_echo "$ac_try_echo") >&5
16581 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16582 ac_status=$?
16583 grep -v '^ *+' conftest.er1 >conftest.err
16584 rm -f conftest.er1
16585 cat conftest.err >&5
16586 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16587 (exit $ac_status); } >/dev/null && {
16588 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16589 test ! -s conftest.err
16590 }; then
16591 ac_header_preproc=yes
16592 else
16593 $as_echo "$as_me: failed program was:" >&5
16594 sed 's/^/| /' conftest.$ac_ext >&5
16596 ac_header_preproc=no
16599 rm -f conftest.err conftest.$ac_ext
16600 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16601 $as_echo "$ac_header_preproc" >&6; }
16603 # So? What about this header?
16604 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16605 yes:no: )
16606 { $as_echo "$as_me:$LINENO: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&5
16607 $as_echo "$as_me: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16608 { $as_echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the compiler's result" >&5
16609 $as_echo "$as_me: WARNING: dl.h: proceeding with the compiler's result" >&2;}
16610 ac_header_preproc=yes
16612 no:yes:* )
16613 { $as_echo "$as_me:$LINENO: WARNING: dl.h: present but cannot be compiled" >&5
16614 $as_echo "$as_me: WARNING: dl.h: present but cannot be compiled" >&2;}
16615 { $as_echo "$as_me:$LINENO: WARNING: dl.h: check for missing prerequisite headers?" >&5
16616 $as_echo "$as_me: WARNING: dl.h: check for missing prerequisite headers?" >&2;}
16617 { $as_echo "$as_me:$LINENO: WARNING: dl.h: see the Autoconf documentation" >&5
16618 $as_echo "$as_me: WARNING: dl.h: see the Autoconf documentation" >&2;}
16619 { $as_echo "$as_me:$LINENO: WARNING: dl.h: section \"Present But Cannot Be Compiled\"" >&5
16620 $as_echo "$as_me: WARNING: dl.h: section \"Present But Cannot Be Compiled\"" >&2;}
16621 { $as_echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the preprocessor's result" >&5
16622 $as_echo "$as_me: WARNING: dl.h: proceeding with the preprocessor's result" >&2;}
16623 { $as_echo "$as_me:$LINENO: WARNING: dl.h: in the future, the compiler will take precedence" >&5
16624 $as_echo "$as_me: WARNING: dl.h: in the future, the compiler will take precedence" >&2;}
16627 esac
16628 { $as_echo "$as_me:$LINENO: checking for dl.h" >&5
16629 $as_echo_n "checking for dl.h... " >&6; }
16630 if test "${ac_cv_header_dl_h+set}" = set; then
16631 $as_echo_n "(cached) " >&6
16632 else
16633 ac_cv_header_dl_h=$ac_header_preproc
16635 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5
16636 $as_echo "$ac_cv_header_dl_h" >&6; }
16639 if test "x$ac_cv_header_dl_h" = x""yes; then
16640 DLL=dl.h
16647 if test x${DLL} = xdlfcn.h; then
16649 cat >>confdefs.h <<\_ACEOF
16650 #define HAVE_DLFCN_H 1
16651 _ACEOF
16653 { $as_echo "$as_me:$LINENO: checking for dlopen()" >&5
16654 $as_echo_n "checking for dlopen()... " >&6; }
16655 cat >conftest.$ac_ext <<_ACEOF
16656 /* confdefs.h. */
16657 _ACEOF
16658 cat confdefs.h >>conftest.$ac_ext
16659 cat >>conftest.$ac_ext <<_ACEOF
16660 /* end confdefs.h. */
16663 main ()
16666 extern void* dlopen();
16667 dlopen();
16670 return 0;
16672 _ACEOF
16673 rm -f conftest.$ac_objext conftest$ac_exeext
16674 if { (ac_try="$ac_link"
16675 case "(($ac_try" in
16676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16677 *) ac_try_echo=$ac_try;;
16678 esac
16679 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16680 $as_echo "$ac_try_echo") >&5
16681 (eval "$ac_link") 2>conftest.er1
16682 ac_status=$?
16683 grep -v '^ *+' conftest.er1 >conftest.err
16684 rm -f conftest.er1
16685 cat conftest.err >&5
16686 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16687 (exit $ac_status); } && {
16688 test -z "$ac_c_werror_flag" ||
16689 test ! -s conftest.err
16690 } && test -s conftest$ac_exeext && {
16691 test "$cross_compiling" = yes ||
16692 $as_test_x conftest$ac_exeext
16693 }; then
16694 { $as_echo "$as_me:$LINENO: result: yes" >&5
16695 $as_echo "yes" >&6; };
16697 cat >>confdefs.h <<\_ACEOF
16698 #define HAVE_DLOPEN 1
16699 _ACEOF
16701 else
16702 $as_echo "$as_me: failed program was:" >&5
16703 sed 's/^/| /' conftest.$ac_ext >&5
16705 { $as_echo "$as_me:$LINENO: result: no" >&5
16706 $as_echo "no" >&6; };
16707 { $as_echo "$as_me:$LINENO: checking for dlopen() in -ldl" >&5
16708 $as_echo_n "checking for dlopen() in -ldl... " >&6; }
16709 olibs=$LIBS
16710 LIBS="$LIBS -ldl"
16711 cat >conftest.$ac_ext <<_ACEOF
16712 /* confdefs.h. */
16713 _ACEOF
16714 cat confdefs.h >>conftest.$ac_ext
16715 cat >>conftest.$ac_ext <<_ACEOF
16716 /* end confdefs.h. */
16719 main ()
16722 extern void* dlopen();
16723 dlopen();
16726 return 0;
16728 _ACEOF
16729 rm -f conftest.$ac_objext conftest$ac_exeext
16730 if { (ac_try="$ac_link"
16731 case "(($ac_try" in
16732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16733 *) ac_try_echo=$ac_try;;
16734 esac
16735 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16736 $as_echo "$ac_try_echo") >&5
16737 (eval "$ac_link") 2>conftest.er1
16738 ac_status=$?
16739 grep -v '^ *+' conftest.er1 >conftest.err
16740 rm -f conftest.er1
16741 cat conftest.err >&5
16742 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16743 (exit $ac_status); } && {
16744 test -z "$ac_c_werror_flag" ||
16745 test ! -s conftest.err
16746 } && test -s conftest$ac_exeext && {
16747 test "$cross_compiling" = yes ||
16748 $as_test_x conftest$ac_exeext
16749 }; then
16750 { $as_echo "$as_me:$LINENO: result: yes" >&5
16751 $as_echo "yes" >&6; };
16753 cat >>confdefs.h <<\_ACEOF
16754 #define HAVE_DLOPEN 1
16755 _ACEOF
16757 else
16758 $as_echo "$as_me: failed program was:" >&5
16759 sed 's/^/| /' conftest.$ac_ext >&5
16761 { $as_echo "$as_me:$LINENO: result: no" >&5
16762 $as_echo "no" >&6; };
16763 LIBS=$olibs
16766 rm -rf conftest.dSYM
16767 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16768 conftest$ac_exeext conftest.$ac_ext
16771 rm -rf conftest.dSYM
16772 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16773 conftest$ac_exeext conftest.$ac_ext
16774 { $as_echo "$as_me:$LINENO: checking for dlsym()" >&5
16775 $as_echo_n "checking for dlsym()... " >&6; }
16776 cat >conftest.$ac_ext <<_ACEOF
16777 /* confdefs.h. */
16778 _ACEOF
16779 cat confdefs.h >>conftest.$ac_ext
16780 cat >>conftest.$ac_ext <<_ACEOF
16781 /* end confdefs.h. */
16784 main ()
16787 extern void* dlsym();
16788 dlsym();
16791 return 0;
16793 _ACEOF
16794 rm -f conftest.$ac_objext conftest$ac_exeext
16795 if { (ac_try="$ac_link"
16796 case "(($ac_try" in
16797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16798 *) ac_try_echo=$ac_try;;
16799 esac
16800 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16801 $as_echo "$ac_try_echo") >&5
16802 (eval "$ac_link") 2>conftest.er1
16803 ac_status=$?
16804 grep -v '^ *+' conftest.er1 >conftest.err
16805 rm -f conftest.er1
16806 cat conftest.err >&5
16807 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16808 (exit $ac_status); } && {
16809 test -z "$ac_c_werror_flag" ||
16810 test ! -s conftest.err
16811 } && test -s conftest$ac_exeext && {
16812 test "$cross_compiling" = yes ||
16813 $as_test_x conftest$ac_exeext
16814 }; then
16815 { $as_echo "$as_me:$LINENO: result: yes" >&5
16816 $as_echo "yes" >&6; };
16818 cat >>confdefs.h <<\_ACEOF
16819 #define HAVE_DLSYM 1
16820 _ACEOF
16822 else
16823 $as_echo "$as_me: failed program was:" >&5
16824 sed 's/^/| /' conftest.$ac_ext >&5
16826 { $as_echo "$as_me:$LINENO: result: no" >&5
16827 $as_echo "no" >&6; };
16828 { $as_echo "$as_me:$LINENO: checking for dlsym() in -ldl" >&5
16829 $as_echo_n "checking for dlsym() in -ldl... " >&6; }
16830 olibs=$LIBS
16831 LIBS="$LIBS -ldl"
16832 cat >conftest.$ac_ext <<_ACEOF
16833 /* confdefs.h. */
16834 _ACEOF
16835 cat confdefs.h >>conftest.$ac_ext
16836 cat >>conftest.$ac_ext <<_ACEOF
16837 /* end confdefs.h. */
16840 main ()
16843 extern void* dlsym();
16844 dlsym();
16847 return 0;
16849 _ACEOF
16850 rm -f conftest.$ac_objext conftest$ac_exeext
16851 if { (ac_try="$ac_link"
16852 case "(($ac_try" in
16853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16854 *) ac_try_echo=$ac_try;;
16855 esac
16856 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16857 $as_echo "$ac_try_echo") >&5
16858 (eval "$ac_link") 2>conftest.er1
16859 ac_status=$?
16860 grep -v '^ *+' conftest.er1 >conftest.err
16861 rm -f conftest.er1
16862 cat conftest.err >&5
16863 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16864 (exit $ac_status); } && {
16865 test -z "$ac_c_werror_flag" ||
16866 test ! -s conftest.err
16867 } && test -s conftest$ac_exeext && {
16868 test "$cross_compiling" = yes ||
16869 $as_test_x conftest$ac_exeext
16870 }; then
16871 { $as_echo "$as_me:$LINENO: result: yes" >&5
16872 $as_echo "yes" >&6; };
16874 cat >>confdefs.h <<\_ACEOF
16875 #define HAVE_DLSYM 1
16876 _ACEOF
16878 else
16879 $as_echo "$as_me: failed program was:" >&5
16880 sed 's/^/| /' conftest.$ac_ext >&5
16882 { $as_echo "$as_me:$LINENO: result: no" >&5
16883 $as_echo "no" >&6; };
16884 LIBS=$olibs
16887 rm -rf conftest.dSYM
16888 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16889 conftest$ac_exeext conftest.$ac_ext
16892 rm -rf conftest.dSYM
16893 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16894 conftest$ac_exeext conftest.$ac_ext
16895 elif test x${DLL} = xdl.h; then
16897 cat >>confdefs.h <<\_ACEOF
16898 #define HAVE_DL_H 1
16899 _ACEOF
16901 { $as_echo "$as_me:$LINENO: checking for shl_load()" >&5
16902 $as_echo_n "checking for shl_load()... " >&6; }
16903 cat >conftest.$ac_ext <<_ACEOF
16904 /* confdefs.h. */
16905 _ACEOF
16906 cat confdefs.h >>conftest.$ac_ext
16907 cat >>conftest.$ac_ext <<_ACEOF
16908 /* end confdefs.h. */
16911 main ()
16914 extern void* shl_load();
16915 shl_load();
16918 return 0;
16920 _ACEOF
16921 rm -f conftest.$ac_objext conftest$ac_exeext
16922 if { (ac_try="$ac_link"
16923 case "(($ac_try" in
16924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16925 *) ac_try_echo=$ac_try;;
16926 esac
16927 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16928 $as_echo "$ac_try_echo") >&5
16929 (eval "$ac_link") 2>conftest.er1
16930 ac_status=$?
16931 grep -v '^ *+' conftest.er1 >conftest.err
16932 rm -f conftest.er1
16933 cat conftest.err >&5
16934 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16935 (exit $ac_status); } && {
16936 test -z "$ac_c_werror_flag" ||
16937 test ! -s conftest.err
16938 } && test -s conftest$ac_exeext && {
16939 test "$cross_compiling" = yes ||
16940 $as_test_x conftest$ac_exeext
16941 }; then
16942 { $as_echo "$as_me:$LINENO: result: yes" >&5
16943 $as_echo "yes" >&6; };
16945 cat >>confdefs.h <<\_ACEOF
16946 #define HAVE_SHL_LOAD 1
16947 _ACEOF
16949 else
16950 $as_echo "$as_me: failed program was:" >&5
16951 sed 's/^/| /' conftest.$ac_ext >&5
16953 { $as_echo "$as_me:$LINENO: result: no" >&5
16954 $as_echo "no" >&6; };
16955 { $as_echo "$as_me:$LINENO: checking for shl_load() in -ldld" >&5
16956 $as_echo_n "checking for shl_load() in -ldld... " >&6; }
16957 olibs=$LIBS
16958 LIBS="$LIBS -ldld"
16959 cat >conftest.$ac_ext <<_ACEOF
16960 /* confdefs.h. */
16961 _ACEOF
16962 cat confdefs.h >>conftest.$ac_ext
16963 cat >>conftest.$ac_ext <<_ACEOF
16964 /* end confdefs.h. */
16967 main ()
16970 extern void* shl_load();
16971 shl_load();
16974 return 0;
16976 _ACEOF
16977 rm -f conftest.$ac_objext conftest$ac_exeext
16978 if { (ac_try="$ac_link"
16979 case "(($ac_try" in
16980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16981 *) ac_try_echo=$ac_try;;
16982 esac
16983 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16984 $as_echo "$ac_try_echo") >&5
16985 (eval "$ac_link") 2>conftest.er1
16986 ac_status=$?
16987 grep -v '^ *+' conftest.er1 >conftest.err
16988 rm -f conftest.er1
16989 cat conftest.err >&5
16990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16991 (exit $ac_status); } && {
16992 test -z "$ac_c_werror_flag" ||
16993 test ! -s conftest.err
16994 } && test -s conftest$ac_exeext && {
16995 test "$cross_compiling" = yes ||
16996 $as_test_x conftest$ac_exeext
16997 }; then
16998 { $as_echo "$as_me:$LINENO: result: yes" >&5
16999 $as_echo "yes" >&6; };
17001 cat >>confdefs.h <<\_ACEOF
17002 #define HAVE_SHL_LOAD 1
17003 _ACEOF
17005 else
17006 $as_echo "$as_me: failed program was:" >&5
17007 sed 's/^/| /' conftest.$ac_ext >&5
17009 { $as_echo "$as_me:$LINENO: result: no" >&5
17010 $as_echo "no" >&6; };
17011 LIBS=$olibs
17014 rm -rf conftest.dSYM
17015 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17016 conftest$ac_exeext conftest.$ac_ext
17019 rm -rf conftest.dSYM
17020 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17021 conftest$ac_exeext conftest.$ac_ext
17024 for ac_header in setjmp.h
17026 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17027 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17028 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17029 $as_echo_n "checking for $ac_header... " >&6; }
17030 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17031 $as_echo_n "(cached) " >&6
17033 ac_res=`eval 'as_val=${'$as_ac_Header'}
17034 $as_echo "$as_val"'`
17035 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17036 $as_echo "$ac_res" >&6; }
17037 else
17038 # Is the header compilable?
17039 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17040 $as_echo_n "checking $ac_header usability... " >&6; }
17041 cat >conftest.$ac_ext <<_ACEOF
17042 /* confdefs.h. */
17043 _ACEOF
17044 cat confdefs.h >>conftest.$ac_ext
17045 cat >>conftest.$ac_ext <<_ACEOF
17046 /* end confdefs.h. */
17047 $ac_includes_default
17048 #include <$ac_header>
17049 _ACEOF
17050 rm -f conftest.$ac_objext
17051 if { (ac_try="$ac_compile"
17052 case "(($ac_try" in
17053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17054 *) ac_try_echo=$ac_try;;
17055 esac
17056 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17057 $as_echo "$ac_try_echo") >&5
17058 (eval "$ac_compile") 2>conftest.er1
17059 ac_status=$?
17060 grep -v '^ *+' conftest.er1 >conftest.err
17061 rm -f conftest.er1
17062 cat conftest.err >&5
17063 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17064 (exit $ac_status); } && {
17065 test -z "$ac_c_werror_flag" ||
17066 test ! -s conftest.err
17067 } && test -s conftest.$ac_objext; then
17068 ac_header_compiler=yes
17069 else
17070 $as_echo "$as_me: failed program was:" >&5
17071 sed 's/^/| /' conftest.$ac_ext >&5
17073 ac_header_compiler=no
17076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17077 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17078 $as_echo "$ac_header_compiler" >&6; }
17080 # Is the header present?
17081 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17082 $as_echo_n "checking $ac_header presence... " >&6; }
17083 cat >conftest.$ac_ext <<_ACEOF
17084 /* confdefs.h. */
17085 _ACEOF
17086 cat confdefs.h >>conftest.$ac_ext
17087 cat >>conftest.$ac_ext <<_ACEOF
17088 /* end confdefs.h. */
17089 #include <$ac_header>
17090 _ACEOF
17091 if { (ac_try="$ac_cpp conftest.$ac_ext"
17092 case "(($ac_try" in
17093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17094 *) ac_try_echo=$ac_try;;
17095 esac
17096 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17097 $as_echo "$ac_try_echo") >&5
17098 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17099 ac_status=$?
17100 grep -v '^ *+' conftest.er1 >conftest.err
17101 rm -f conftest.er1
17102 cat conftest.err >&5
17103 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17104 (exit $ac_status); } >/dev/null && {
17105 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17106 test ! -s conftest.err
17107 }; then
17108 ac_header_preproc=yes
17109 else
17110 $as_echo "$as_me: failed program was:" >&5
17111 sed 's/^/| /' conftest.$ac_ext >&5
17113 ac_header_preproc=no
17116 rm -f conftest.err conftest.$ac_ext
17117 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17118 $as_echo "$ac_header_preproc" >&6; }
17120 # So? What about this header?
17121 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17122 yes:no: )
17123 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17124 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17125 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17126 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17127 ac_header_preproc=yes
17129 no:yes:* )
17130 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17131 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17132 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17133 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17134 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17135 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17136 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17137 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17138 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17139 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17140 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17141 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17144 esac
17145 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17146 $as_echo_n "checking for $ac_header... " >&6; }
17147 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17148 $as_echo_n "(cached) " >&6
17149 else
17150 eval "$as_ac_Header=\$ac_header_preproc"
17152 ac_res=`eval 'as_val=${'$as_ac_Header'}
17153 $as_echo "$as_val"'`
17154 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17155 $as_echo "$ac_res" >&6; }
17158 as_val=`eval 'as_val=${'$as_ac_Header'}
17159 $as_echo "$as_val"'`
17160 if test "x$as_val" = x""yes; then
17161 cat >>confdefs.h <<_ACEOF
17162 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17163 _ACEOF
17167 done
17170 if test "x$MACOSX" = "xyes" -a -n "$PERL"; then
17171 if echo $LIBS | grep -e '-ldl' >/dev/null; then
17172 LIBS=`echo $LIBS | sed s/-ldl//`
17173 PERL_LIBS="$PERL_LIBS -ldl"
17177 if test "x$MACOSX" = "xyes" && test "x$CARBON" = "xyes" \
17178 && test "x$GUITYPE" != "xCARBONGUI"; then
17179 { $as_echo "$as_me:$LINENO: checking whether we need -framework Carbon" >&5
17180 $as_echo_n "checking whether we need -framework Carbon... " >&6; }
17181 if test "x$enable_multibyte" = "xyes" || test "x$features" = "xbig" \
17182 || test "x$features" = "xhuge"; then
17183 LIBS="$LIBS -framework Carbon"
17184 { $as_echo "$as_me:$LINENO: result: yes" >&5
17185 $as_echo "yes" >&6; }
17186 else
17187 { $as_echo "$as_me:$LINENO: result: no" >&5
17188 $as_echo "no" >&6; }
17191 if test "x$MACARCH" = "xboth"; then
17192 LDFLAGS="$LDFLAGS -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc"
17195 DEPEND_CFLAGS_FILTER=
17196 if test "$GCC" = yes; then
17197 { $as_echo "$as_me:$LINENO: checking for GCC 3 or later" >&5
17198 $as_echo_n "checking for GCC 3 or later... " >&6; }
17199 gccmajor=`echo "$gccversion" | sed -e 's/^\([1-9]\)\..*$/\1/g'`
17200 if test "$gccmajor" -gt "2"; then
17201 DEPEND_CFLAGS_FILTER="| sed 's+-I */+-isystem /+g'"
17202 { $as_echo "$as_me:$LINENO: result: yes" >&5
17203 $as_echo "yes" >&6; }
17204 else
17205 { $as_echo "$as_me:$LINENO: result: no" >&5
17206 $as_echo "no" >&6; }
17208 { $as_echo "$as_me:$LINENO: checking whether we need -D_FORTIFY_SOURCE=1" >&5
17209 $as_echo_n "checking whether we need -D_FORTIFY_SOURCE=1... " >&6; }
17210 if test "$gccmajor" -gt "3"; then
17211 CFLAGS=`echo "$CFLAGS" | sed -e 's/-Wp,-D_FORTIFY_SOURCE=.//g' -e 's/-D_FORTIFY_SOURCE=.//g' -e 's/$/ -D_FORTIFY_SOURCE=1/'`
17212 { $as_echo "$as_me:$LINENO: result: yes" >&5
17213 $as_echo "yes" >&6; }
17214 else
17215 { $as_echo "$as_me:$LINENO: result: no" >&5
17216 $as_echo "no" >&6; }
17221 ac_config_files="$ac_config_files auto/config.mk:config.mk.in"
17223 cat >confcache <<\_ACEOF
17224 # This file is a shell script that caches the results of configure
17225 # tests run on this system so they can be shared between configure
17226 # scripts and configure runs, see configure's option --config-cache.
17227 # It is not useful on other systems. If it contains results you don't
17228 # want to keep, you may remove or edit it.
17230 # config.status only pays attention to the cache file if you give it
17231 # the --recheck option to rerun configure.
17233 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17234 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17235 # following values.
17237 _ACEOF
17239 # The following way of writing the cache mishandles newlines in values,
17240 # but we know of no workaround that is simple, portable, and efficient.
17241 # So, we kill variables containing newlines.
17242 # Ultrix sh set writes to stderr and can't be redirected directly,
17243 # and sets the high bit in the cache file unless we assign to the vars.
17245 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17246 eval ac_val=\$$ac_var
17247 case $ac_val in #(
17248 *${as_nl}*)
17249 case $ac_var in #(
17250 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
17251 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17252 esac
17253 case $ac_var in #(
17254 _ | IFS | as_nl) ;; #(
17255 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17256 *) $as_unset $ac_var ;;
17257 esac ;;
17258 esac
17259 done
17261 (set) 2>&1 |
17262 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17263 *${as_nl}ac_space=\ *)
17264 # `set' does not quote correctly, so add quotes (double-quote
17265 # substitution turns \\\\ into \\, and sed turns \\ into \).
17266 sed -n \
17267 "s/'/'\\\\''/g;
17268 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17269 ;; #(
17271 # `set' quotes correctly as required by POSIX, so do not add quotes.
17272 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17274 esac |
17275 sort
17277 sed '
17278 /^ac_cv_env_/b end
17279 t clear
17280 :clear
17281 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17282 t end
17283 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17284 :end' >>confcache
17285 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17286 if test -w "$cache_file"; then
17287 test "x$cache_file" != "x/dev/null" &&
17288 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
17289 $as_echo "$as_me: updating cache $cache_file" >&6;}
17290 cat confcache >$cache_file
17291 else
17292 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
17293 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17296 rm -f confcache
17298 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17299 # Let make expand exec_prefix.
17300 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17302 DEFS=-DHAVE_CONFIG_H
17304 ac_libobjs=
17305 ac_ltlibobjs=
17306 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17307 # 1. Remove the extension, and $U if already installed.
17308 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17309 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17310 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17311 # will be set to the directory where LIBOBJS objects are built.
17312 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17313 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
17314 done
17315 LIBOBJS=$ac_libobjs
17317 LTLIBOBJS=$ac_ltlibobjs
17321 : ${CONFIG_STATUS=./config.status}
17322 ac_write_fail=0
17323 ac_clean_files_save=$ac_clean_files
17324 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17325 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17326 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17327 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17328 #! $SHELL
17329 # Generated by $as_me.
17330 # Run this file to recreate the current configuration.
17331 # Compiler output produced by configure, useful for debugging
17332 # configure, is in config.log if it exists.
17334 debug=false
17335 ac_cs_recheck=false
17336 ac_cs_silent=false
17337 SHELL=\${CONFIG_SHELL-$SHELL}
17338 _ACEOF
17340 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17341 ## --------------------- ##
17342 ## M4sh Initialization. ##
17343 ## --------------------- ##
17345 # Be more Bourne compatible
17346 DUALCASE=1; export DUALCASE # for MKS sh
17347 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17348 emulate sh
17349 NULLCMD=:
17350 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17351 # is contrary to our usage. Disable this feature.
17352 alias -g '${1+"$@"}'='"$@"'
17353 setopt NO_GLOB_SUBST
17354 else
17355 case `(set -o) 2>/dev/null` in
17356 *posix*) set -o posix ;;
17357 esac
17364 # PATH needs CR
17365 # Avoid depending upon Character Ranges.
17366 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17367 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17368 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17369 as_cr_digits='0123456789'
17370 as_cr_alnum=$as_cr_Letters$as_cr_digits
17372 as_nl='
17374 export as_nl
17375 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17376 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17377 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17378 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17379 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17380 as_echo='printf %s\n'
17381 as_echo_n='printf %s'
17382 else
17383 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17384 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17385 as_echo_n='/usr/ucb/echo -n'
17386 else
17387 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17388 as_echo_n_body='eval
17389 arg=$1;
17390 case $arg in
17391 *"$as_nl"*)
17392 expr "X$arg" : "X\\(.*\\)$as_nl";
17393 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17394 esac;
17395 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17397 export as_echo_n_body
17398 as_echo_n='sh -c $as_echo_n_body as_echo'
17400 export as_echo_body
17401 as_echo='sh -c $as_echo_body as_echo'
17404 # The user is always right.
17405 if test "${PATH_SEPARATOR+set}" != set; then
17406 PATH_SEPARATOR=:
17407 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17408 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17409 PATH_SEPARATOR=';'
17413 # Support unset when possible.
17414 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
17415 as_unset=unset
17416 else
17417 as_unset=false
17421 # IFS
17422 # We need space, tab and new line, in precisely that order. Quoting is
17423 # there to prevent editors from complaining about space-tab.
17424 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17425 # splitting by setting IFS to empty value.)
17426 IFS=" "" $as_nl"
17428 # Find who we are. Look in the path if we contain no directory separator.
17429 case $0 in
17430 *[\\/]* ) as_myself=$0 ;;
17431 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17432 for as_dir in $PATH
17434 IFS=$as_save_IFS
17435 test -z "$as_dir" && as_dir=.
17436 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17437 done
17438 IFS=$as_save_IFS
17441 esac
17442 # We did not find ourselves, most probably we were run as `sh COMMAND'
17443 # in which case we are not to be found in the path.
17444 if test "x$as_myself" = x; then
17445 as_myself=$0
17447 if test ! -f "$as_myself"; then
17448 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17449 { (exit 1); exit 1; }
17452 # Work around bugs in pre-3.0 UWIN ksh.
17453 for as_var in ENV MAIL MAILPATH
17454 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
17455 done
17456 PS1='$ '
17457 PS2='> '
17458 PS4='+ '
17460 # NLS nuisances.
17461 LC_ALL=C
17462 export LC_ALL
17463 LANGUAGE=C
17464 export LANGUAGE
17466 # Required to use basename.
17467 if expr a : '\(a\)' >/dev/null 2>&1 &&
17468 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17469 as_expr=expr
17470 else
17471 as_expr=false
17474 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17475 as_basename=basename
17476 else
17477 as_basename=false
17481 # Name of the executable.
17482 as_me=`$as_basename -- "$0" ||
17483 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17484 X"$0" : 'X\(//\)$' \| \
17485 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17486 $as_echo X/"$0" |
17487 sed '/^.*\/\([^/][^/]*\)\/*$/{
17488 s//\1/
17491 /^X\/\(\/\/\)$/{
17492 s//\1/
17495 /^X\/\(\/\).*/{
17496 s//\1/
17499 s/.*/./; q'`
17501 # CDPATH.
17502 $as_unset CDPATH
17506 as_lineno_1=$LINENO
17507 as_lineno_2=$LINENO
17508 test "x$as_lineno_1" != "x$as_lineno_2" &&
17509 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
17511 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17512 # uniformly replaced by the line number. The first 'sed' inserts a
17513 # line-number line after each line using $LINENO; the second 'sed'
17514 # does the real work. The second script uses 'N' to pair each
17515 # line-number line with the line containing $LINENO, and appends
17516 # trailing '-' during substitution so that $LINENO is not a special
17517 # case at line end.
17518 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17519 # scripts with optimization help from Paolo Bonzini. Blame Lee
17520 # E. McMahon (1931-1989) for sed's syntax. :-)
17521 sed -n '
17523 /[$]LINENO/=
17524 ' <$as_myself |
17525 sed '
17526 s/[$]LINENO.*/&-/
17527 t lineno
17529 :lineno
17531 :loop
17532 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
17533 t loop
17534 s/-\n.*//
17535 ' >$as_me.lineno &&
17536 chmod +x "$as_me.lineno" ||
17537 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
17538 { (exit 1); exit 1; }; }
17540 # Don't try to exec as it changes $[0], causing all sort of problems
17541 # (the dirname of $[0] is not the place where we might find the
17542 # original and so on. Autoconf is especially sensitive to this).
17543 . "./$as_me.lineno"
17544 # Exit status is that of the last command.
17545 exit
17549 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17550 as_dirname=dirname
17551 else
17552 as_dirname=false
17555 ECHO_C= ECHO_N= ECHO_T=
17556 case `echo -n x` in
17557 -n*)
17558 case `echo 'x\c'` in
17559 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17560 *) ECHO_C='\c';;
17561 esac;;
17563 ECHO_N='-n';;
17564 esac
17565 if expr a : '\(a\)' >/dev/null 2>&1 &&
17566 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17567 as_expr=expr
17568 else
17569 as_expr=false
17572 rm -f conf$$ conf$$.exe conf$$.file
17573 if test -d conf$$.dir; then
17574 rm -f conf$$.dir/conf$$.file
17575 else
17576 rm -f conf$$.dir
17577 mkdir conf$$.dir 2>/dev/null
17579 if (echo >conf$$.file) 2>/dev/null; then
17580 if ln -s conf$$.file conf$$ 2>/dev/null; then
17581 as_ln_s='ln -s'
17582 # ... but there are two gotchas:
17583 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17584 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17585 # In both cases, we have to default to `cp -p'.
17586 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17587 as_ln_s='cp -p'
17588 elif ln conf$$.file conf$$ 2>/dev/null; then
17589 as_ln_s=ln
17590 else
17591 as_ln_s='cp -p'
17593 else
17594 as_ln_s='cp -p'
17596 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17597 rmdir conf$$.dir 2>/dev/null
17599 if mkdir -p . 2>/dev/null; then
17600 as_mkdir_p=:
17601 else
17602 test -d ./-p && rmdir ./-p
17603 as_mkdir_p=false
17606 if test -x / >/dev/null 2>&1; then
17607 as_test_x='test -x'
17608 else
17609 if ls -dL / >/dev/null 2>&1; then
17610 as_ls_L_option=L
17611 else
17612 as_ls_L_option=
17614 as_test_x='
17615 eval sh -c '\''
17616 if test -d "$1"; then
17617 test -d "$1/.";
17618 else
17619 case $1 in
17620 -*)set "./$1";;
17621 esac;
17622 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
17623 ???[sx]*):;;*)false;;esac;fi
17624 '\'' sh
17627 as_executable_p=$as_test_x
17629 # Sed expression to map a string onto a valid CPP name.
17630 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17632 # Sed expression to map a string onto a valid variable name.
17633 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17636 exec 6>&1
17638 # Save the log message, to keep $[0] and so on meaningful, and to
17639 # report actual input values of CONFIG_FILES etc. instead of their
17640 # values after options handling.
17641 ac_log="
17642 This file was extended by $as_me, which was
17643 generated by GNU Autoconf 2.63. Invocation command line was
17645 CONFIG_FILES = $CONFIG_FILES
17646 CONFIG_HEADERS = $CONFIG_HEADERS
17647 CONFIG_LINKS = $CONFIG_LINKS
17648 CONFIG_COMMANDS = $CONFIG_COMMANDS
17649 $ $0 $@
17651 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17654 _ACEOF
17656 case $ac_config_files in *"
17657 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17658 esac
17660 case $ac_config_headers in *"
17661 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17662 esac
17665 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17666 # Files that config.status was made for.
17667 config_files="$ac_config_files"
17668 config_headers="$ac_config_headers"
17670 _ACEOF
17672 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17673 ac_cs_usage="\
17674 \`$as_me' instantiates files from templates according to the
17675 current configuration.
17677 Usage: $0 [OPTION]... [FILE]...
17679 -h, --help print this help, then exit
17680 -V, --version print version number and configuration settings, then exit
17681 -q, --quiet, --silent
17682 do not print progress messages
17683 -d, --debug don't remove temporary files
17684 --recheck update $as_me by reconfiguring in the same conditions
17685 --file=FILE[:TEMPLATE]
17686 instantiate the configuration file FILE
17687 --header=FILE[:TEMPLATE]
17688 instantiate the configuration header FILE
17690 Configuration files:
17691 $config_files
17693 Configuration headers:
17694 $config_headers
17696 Report bugs to <bug-autoconf@gnu.org>."
17698 _ACEOF
17699 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17700 ac_cs_version="\\
17701 config.status
17702 configured by $0, generated by GNU Autoconf 2.63,
17703 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
17705 Copyright (C) 2008 Free Software Foundation, Inc.
17706 This config.status script is free software; the Free Software Foundation
17707 gives unlimited permission to copy, distribute and modify it."
17709 ac_pwd='$ac_pwd'
17710 srcdir='$srcdir'
17711 AWK='$AWK'
17712 test -n "\$AWK" || AWK=awk
17713 _ACEOF
17715 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17716 # The default lists apply if the user does not specify any file.
17717 ac_need_defaults=:
17718 while test $# != 0
17720 case $1 in
17721 --*=*)
17722 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17723 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17724 ac_shift=:
17727 ac_option=$1
17728 ac_optarg=$2
17729 ac_shift=shift
17731 esac
17733 case $ac_option in
17734 # Handling of the options.
17735 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17736 ac_cs_recheck=: ;;
17737 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17738 $as_echo "$ac_cs_version"; exit ;;
17739 --debug | --debu | --deb | --de | --d | -d )
17740 debug=: ;;
17741 --file | --fil | --fi | --f )
17742 $ac_shift
17743 case $ac_optarg in
17744 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17745 esac
17746 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
17747 ac_need_defaults=false;;
17748 --header | --heade | --head | --hea )
17749 $ac_shift
17750 case $ac_optarg in
17751 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17752 esac
17753 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
17754 ac_need_defaults=false;;
17755 --he | --h)
17756 # Conflict between --help and --header
17757 { $as_echo "$as_me: error: ambiguous option: $1
17758 Try \`$0 --help' for more information." >&2
17759 { (exit 1); exit 1; }; };;
17760 --help | --hel | -h )
17761 $as_echo "$ac_cs_usage"; exit ;;
17762 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17763 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17764 ac_cs_silent=: ;;
17766 # This is an error.
17767 -*) { $as_echo "$as_me: error: unrecognized option: $1
17768 Try \`$0 --help' for more information." >&2
17769 { (exit 1); exit 1; }; } ;;
17771 *) ac_config_targets="$ac_config_targets $1"
17772 ac_need_defaults=false ;;
17774 esac
17775 shift
17776 done
17778 ac_configure_extra_args=
17780 if $ac_cs_silent; then
17781 exec 6>/dev/null
17782 ac_configure_extra_args="$ac_configure_extra_args --silent"
17785 _ACEOF
17786 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17787 if \$ac_cs_recheck; then
17788 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17789 shift
17790 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17791 CONFIG_SHELL='$SHELL'
17792 export CONFIG_SHELL
17793 exec "\$@"
17796 _ACEOF
17797 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17798 exec 5>>auto/config.log
17800 echo
17801 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17802 ## Running $as_me. ##
17803 _ASBOX
17804 $as_echo "$ac_log"
17805 } >&5
17807 _ACEOF
17808 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17809 _ACEOF
17811 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17813 # Handling of arguments.
17814 for ac_config_target in $ac_config_targets
17816 case $ac_config_target in
17817 "auto/config.h") CONFIG_HEADERS="$CONFIG_HEADERS auto/config.h:config.h.in" ;;
17818 "auto/config.mk") CONFIG_FILES="$CONFIG_FILES auto/config.mk:config.mk.in" ;;
17820 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17821 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17822 { (exit 1); exit 1; }; };;
17823 esac
17824 done
17827 # If the user did not use the arguments to specify the items to instantiate,
17828 # then the envvar interface is used. Set only those that are not.
17829 # We use the long form for the default assignment because of an extremely
17830 # bizarre bug on SunOS 4.1.3.
17831 if $ac_need_defaults; then
17832 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17833 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17836 # Have a temporary directory for convenience. Make it in the build tree
17837 # simply because there is no reason against having it here, and in addition,
17838 # creating and moving files from /tmp can sometimes cause problems.
17839 # Hook for its removal unless debugging.
17840 # Note that there is a small window in which the directory will not be cleaned:
17841 # after its creation but before its name has been assigned to `$tmp'.
17842 $debug ||
17844 tmp=
17845 trap 'exit_status=$?
17846 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17848 trap '{ (exit 1); exit 1; }' 1 2 13 15
17850 # Create a (secure) tmp directory for tmp files.
17853 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17854 test -n "$tmp" && test -d "$tmp"
17855 } ||
17857 tmp=./conf$$-$RANDOM
17858 (umask 077 && mkdir "$tmp")
17859 } ||
17861 $as_echo "$as_me: cannot create a temporary directory in ." >&2
17862 { (exit 1); exit 1; }
17865 # Set up the scripts for CONFIG_FILES section.
17866 # No need to generate them if there are no CONFIG_FILES.
17867 # This happens for instance with `./config.status config.h'.
17868 if test -n "$CONFIG_FILES"; then
17871 ac_cr=' '
17872 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17873 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17874 ac_cs_awk_cr='\\r'
17875 else
17876 ac_cs_awk_cr=$ac_cr
17879 echo 'BEGIN {' >"$tmp/subs1.awk" &&
17880 _ACEOF
17884 echo "cat >conf$$subs.awk <<_ACEOF" &&
17885 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17886 echo "_ACEOF"
17887 } >conf$$subs.sh ||
17888 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17889 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17890 { (exit 1); exit 1; }; }
17891 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
17892 ac_delim='%!_!# '
17893 for ac_last_try in false false false false false :; do
17894 . ./conf$$subs.sh ||
17895 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17896 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17897 { (exit 1); exit 1; }; }
17899 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17900 if test $ac_delim_n = $ac_delim_num; then
17901 break
17902 elif $ac_last_try; then
17903 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17904 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17905 { (exit 1); exit 1; }; }
17906 else
17907 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17909 done
17910 rm -f conf$$subs.sh
17912 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17913 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
17914 _ACEOF
17915 sed -n '
17917 s/^/S["/; s/!.*/"]=/
17920 s/^[^!]*!//
17921 :repl
17922 t repl
17923 s/'"$ac_delim"'$//
17924 t delim
17927 s/\(.\{148\}\).*/\1/
17928 t more1
17929 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17932 b repl
17933 :more1
17934 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17937 s/.\{148\}//
17938 t nl
17939 :delim
17941 s/\(.\{148\}\).*/\1/
17942 t more2
17943 s/["\\]/\\&/g; s/^/"/; s/$/"/
17946 :more2
17947 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17950 s/.\{148\}//
17951 t delim
17952 ' <conf$$subs.awk | sed '
17953 /^[^""]/{
17955 s/\n//
17957 ' >>$CONFIG_STATUS || ac_write_fail=1
17958 rm -f conf$$subs.awk
17959 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17960 _ACAWK
17961 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
17962 for (key in S) S_is_set[key] = 1
17963 FS = "\a"
17967 line = $ 0
17968 nfields = split(line, field, "@")
17969 substed = 0
17970 len = length(field[1])
17971 for (i = 2; i < nfields; i++) {
17972 key = field[i]
17973 keylen = length(key)
17974 if (S_is_set[key]) {
17975 value = S[key]
17976 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17977 len += length(value) + length(field[++i])
17978 substed = 1
17979 } else
17980 len += 1 + keylen
17983 print line
17986 _ACAWK
17987 _ACEOF
17988 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17989 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17990 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17991 else
17993 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17994 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
17995 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
17996 { (exit 1); exit 1; }; }
17997 _ACEOF
17999 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18000 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18001 # trailing colons and then remove the whole line if VPATH becomes empty
18002 # (actually we leave an empty line to preserve line numbers).
18003 if test "x$srcdir" = x.; then
18004 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18005 s/:*\$(srcdir):*/:/
18006 s/:*\${srcdir}:*/:/
18007 s/:*@srcdir@:*/:/
18008 s/^\([^=]*=[ ]*\):*/\1/
18009 s/:*$//
18010 s/^[^=]*=[ ]*$//
18014 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18015 fi # test -n "$CONFIG_FILES"
18017 # Set up the scripts for CONFIG_HEADERS section.
18018 # No need to generate them if there are no CONFIG_HEADERS.
18019 # This happens for instance with `./config.status Makefile'.
18020 if test -n "$CONFIG_HEADERS"; then
18021 cat >"$tmp/defines.awk" <<\_ACAWK ||
18022 BEGIN {
18023 _ACEOF
18025 # Transform confdefs.h into an awk script `defines.awk', embedded as
18026 # here-document in config.status, that substitutes the proper values into
18027 # config.h.in to produce config.h.
18029 # Create a delimiter string that does not exist in confdefs.h, to ease
18030 # handling of long lines.
18031 ac_delim='%!_!# '
18032 for ac_last_try in false false :; do
18033 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
18034 if test -z "$ac_t"; then
18035 break
18036 elif $ac_last_try; then
18037 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
18038 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
18039 { (exit 1); exit 1; }; }
18040 else
18041 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18043 done
18045 # For the awk script, D is an array of macro values keyed by name,
18046 # likewise P contains macro parameters if any. Preserve backslash
18047 # newline sequences.
18049 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18050 sed -n '
18051 s/.\{148\}/&'"$ac_delim"'/g
18052 t rset
18053 :rset
18054 s/^[ ]*#[ ]*define[ ][ ]*/ /
18055 t def
18057 :def
18058 s/\\$//
18059 t bsnl
18060 s/["\\]/\\&/g
18061 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18062 D["\1"]=" \3"/p
18063 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18065 :bsnl
18066 s/["\\]/\\&/g
18067 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18068 D["\1"]=" \3\\\\\\n"\\/p
18069 t cont
18070 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18071 t cont
18073 :cont
18075 s/.\{148\}/&'"$ac_delim"'/g
18076 t clear
18077 :clear
18078 s/\\$//
18079 t bsnlc
18080 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18082 :bsnlc
18083 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18084 b cont
18085 ' <confdefs.h | sed '
18086 s/'"$ac_delim"'/"\\\
18087 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18089 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18090 for (key in D) D_is_set[key] = 1
18091 FS = "\a"
18093 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18094 line = \$ 0
18095 split(line, arg, " ")
18096 if (arg[1] == "#") {
18097 defundef = arg[2]
18098 mac1 = arg[3]
18099 } else {
18100 defundef = substr(arg[1], 2)
18101 mac1 = arg[2]
18103 split(mac1, mac2, "(") #)
18104 macro = mac2[1]
18105 prefix = substr(line, 1, index(line, defundef) - 1)
18106 if (D_is_set[macro]) {
18107 # Preserve the white space surrounding the "#".
18108 print prefix "define", macro P[macro] D[macro]
18109 next
18110 } else {
18111 # Replace #undef with comments. This is necessary, for example,
18112 # in the case of _POSIX_SOURCE, which is predefined and required
18113 # on some systems where configure will not decide to define it.
18114 if (defundef == "undef") {
18115 print "/*", prefix defundef, macro, "*/"
18116 next
18120 { print }
18121 _ACAWK
18122 _ACEOF
18123 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18124 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
18125 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
18126 { (exit 1); exit 1; }; }
18127 fi # test -n "$CONFIG_HEADERS"
18130 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
18131 shift
18132 for ac_tag
18134 case $ac_tag in
18135 :[FHLC]) ac_mode=$ac_tag; continue;;
18136 esac
18137 case $ac_mode$ac_tag in
18138 :[FHL]*:*);;
18139 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
18140 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
18141 { (exit 1); exit 1; }; };;
18142 :[FH]-) ac_tag=-:-;;
18143 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18144 esac
18145 ac_save_IFS=$IFS
18146 IFS=:
18147 set x $ac_tag
18148 IFS=$ac_save_IFS
18149 shift
18150 ac_file=$1
18151 shift
18153 case $ac_mode in
18154 :L) ac_source=$1;;
18155 :[FH])
18156 ac_file_inputs=
18157 for ac_f
18159 case $ac_f in
18160 -) ac_f="$tmp/stdin";;
18161 *) # Look for the file first in the build tree, then in the source tree
18162 # (if the path is not absolute). The absolute path cannot be DOS-style,
18163 # because $ac_f cannot contain `:'.
18164 test -f "$ac_f" ||
18165 case $ac_f in
18166 [\\/$]*) false;;
18167 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18168 esac ||
18169 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
18170 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
18171 { (exit 1); exit 1; }; };;
18172 esac
18173 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18174 ac_file_inputs="$ac_file_inputs '$ac_f'"
18175 done
18177 # Let's still pretend it is `configure' which instantiates (i.e., don't
18178 # use $as_me), people would be surprised to read:
18179 # /* config.h. Generated by config.status. */
18180 configure_input='Generated from '`
18181 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18182 `' by configure.'
18183 if test x"$ac_file" != x-; then
18184 configure_input="$ac_file. $configure_input"
18185 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
18186 $as_echo "$as_me: creating $ac_file" >&6;}
18188 # Neutralize special characters interpreted by sed in replacement strings.
18189 case $configure_input in #(
18190 *\&* | *\|* | *\\* )
18191 ac_sed_conf_input=`$as_echo "$configure_input" |
18192 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18193 *) ac_sed_conf_input=$configure_input;;
18194 esac
18196 case $ac_tag in
18197 *:-:* | *:-) cat >"$tmp/stdin" \
18198 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18199 $as_echo "$as_me: error: could not create $ac_file" >&2;}
18200 { (exit 1); exit 1; }; } ;;
18201 esac
18203 esac
18205 ac_dir=`$as_dirname -- "$ac_file" ||
18206 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18207 X"$ac_file" : 'X\(//\)[^/]' \| \
18208 X"$ac_file" : 'X\(//\)$' \| \
18209 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18210 $as_echo X"$ac_file" |
18211 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18212 s//\1/
18215 /^X\(\/\/\)[^/].*/{
18216 s//\1/
18219 /^X\(\/\/\)$/{
18220 s//\1/
18223 /^X\(\/\).*/{
18224 s//\1/
18227 s/.*/./; q'`
18228 { as_dir="$ac_dir"
18229 case $as_dir in #(
18230 -*) as_dir=./$as_dir;;
18231 esac
18232 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
18233 as_dirs=
18234 while :; do
18235 case $as_dir in #(
18236 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18237 *) as_qdir=$as_dir;;
18238 esac
18239 as_dirs="'$as_qdir' $as_dirs"
18240 as_dir=`$as_dirname -- "$as_dir" ||
18241 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18242 X"$as_dir" : 'X\(//\)[^/]' \| \
18243 X"$as_dir" : 'X\(//\)$' \| \
18244 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18245 $as_echo X"$as_dir" |
18246 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18247 s//\1/
18250 /^X\(\/\/\)[^/].*/{
18251 s//\1/
18254 /^X\(\/\/\)$/{
18255 s//\1/
18258 /^X\(\/\).*/{
18259 s//\1/
18262 s/.*/./; q'`
18263 test -d "$as_dir" && break
18264 done
18265 test -z "$as_dirs" || eval "mkdir $as_dirs"
18266 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
18267 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
18268 { (exit 1); exit 1; }; }; }
18269 ac_builddir=.
18271 case "$ac_dir" in
18272 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18274 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18275 # A ".." for each directory in $ac_dir_suffix.
18276 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18277 case $ac_top_builddir_sub in
18278 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18279 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18280 esac ;;
18281 esac
18282 ac_abs_top_builddir=$ac_pwd
18283 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18284 # for backward compatibility:
18285 ac_top_builddir=$ac_top_build_prefix
18287 case $srcdir in
18288 .) # We are building in place.
18289 ac_srcdir=.
18290 ac_top_srcdir=$ac_top_builddir_sub
18291 ac_abs_top_srcdir=$ac_pwd ;;
18292 [\\/]* | ?:[\\/]* ) # Absolute name.
18293 ac_srcdir=$srcdir$ac_dir_suffix;
18294 ac_top_srcdir=$srcdir
18295 ac_abs_top_srcdir=$srcdir ;;
18296 *) # Relative name.
18297 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18298 ac_top_srcdir=$ac_top_build_prefix$srcdir
18299 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18300 esac
18301 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18304 case $ac_mode in
18307 # CONFIG_FILE
18310 _ACEOF
18312 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18313 # If the template does not know about datarootdir, expand it.
18314 # FIXME: This hack should be removed a few years after 2.60.
18315 ac_datarootdir_hack=; ac_datarootdir_seen=
18317 ac_sed_dataroot='
18318 /datarootdir/ {
18322 /@datadir@/p
18323 /@docdir@/p
18324 /@infodir@/p
18325 /@localedir@/p
18326 /@mandir@/p
18328 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18329 *datarootdir*) ac_datarootdir_seen=yes;;
18330 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18331 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18332 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18333 _ACEOF
18334 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18335 ac_datarootdir_hack='
18336 s&@datadir@&$datadir&g
18337 s&@docdir@&$docdir&g
18338 s&@infodir@&$infodir&g
18339 s&@localedir@&$localedir&g
18340 s&@mandir@&$mandir&g
18341 s&\\\${datarootdir}&$datarootdir&g' ;;
18342 esac
18343 _ACEOF
18345 # Neutralize VPATH when `$srcdir' = `.'.
18346 # Shell code in configure.ac might set extrasub.
18347 # FIXME: do we really want to maintain this feature?
18348 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18349 ac_sed_extra="$ac_vpsub
18350 $extrasub
18351 _ACEOF
18352 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18354 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18355 s|@configure_input@|$ac_sed_conf_input|;t t
18356 s&@top_builddir@&$ac_top_builddir_sub&;t t
18357 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18358 s&@srcdir@&$ac_srcdir&;t t
18359 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18360 s&@top_srcdir@&$ac_top_srcdir&;t t
18361 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18362 s&@builddir@&$ac_builddir&;t t
18363 s&@abs_builddir@&$ac_abs_builddir&;t t
18364 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18365 $ac_datarootdir_hack
18367 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
18368 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18369 $as_echo "$as_me: error: could not create $ac_file" >&2;}
18370 { (exit 1); exit 1; }; }
18372 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18373 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
18374 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
18375 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18376 which seems to be undefined. Please make sure it is defined." >&5
18377 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18378 which seems to be undefined. Please make sure it is defined." >&2;}
18380 rm -f "$tmp/stdin"
18381 case $ac_file in
18382 -) cat "$tmp/out" && rm -f "$tmp/out";;
18383 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18384 esac \
18385 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18386 $as_echo "$as_me: error: could not create $ac_file" >&2;}
18387 { (exit 1); exit 1; }; }
18391 # CONFIG_HEADER
18393 if test x"$ac_file" != x-; then
18395 $as_echo "/* $configure_input */" \
18396 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18397 } >"$tmp/config.h" \
18398 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18399 $as_echo "$as_me: error: could not create $ac_file" >&2;}
18400 { (exit 1); exit 1; }; }
18401 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18402 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18403 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18404 else
18405 rm -f "$ac_file"
18406 mv "$tmp/config.h" "$ac_file" \
18407 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18408 $as_echo "$as_me: error: could not create $ac_file" >&2;}
18409 { (exit 1); exit 1; }; }
18411 else
18412 $as_echo "/* $configure_input */" \
18413 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18414 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
18415 $as_echo "$as_me: error: could not create -" >&2;}
18416 { (exit 1); exit 1; }; }
18421 esac
18423 done # for ac_tag
18426 { (exit 0); exit 0; }
18427 _ACEOF
18428 chmod +x $CONFIG_STATUS
18429 ac_clean_files=$ac_clean_files_save
18431 test $ac_write_fail = 0 ||
18432 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
18433 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
18434 { (exit 1); exit 1; }; }
18437 # configure is writing to config.log, and then calls config.status.
18438 # config.status does its own redirection, appending to config.log.
18439 # Unfortunately, on DOS this fails, as config.log is still kept open
18440 # by configure, so config.status won't be able to write to it; its
18441 # output is simply discarded. So we exec the FD to /dev/null,
18442 # effectively closing config.log, so it can be properly (re)opened and
18443 # appended to by config.status. When coming back to configure, we
18444 # need to make the FD available again.
18445 if test "$no_create" != yes; then
18446 ac_cs_success=:
18447 ac_config_status_args=
18448 test "$silent" = yes &&
18449 ac_config_status_args="$ac_config_status_args --quiet"
18450 exec 5>/dev/null
18451 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18452 exec 5>>auto/config.log
18453 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18454 # would make configure fail if this is the last instruction.
18455 $ac_cs_success || { (exit 1); exit 1; }
18457 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18458 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18459 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}