Merged from the latest developing branch.
[MacVim.git] / src / auto / configure
blob1843a9e38222f37f1b65550d8fa2d57457cfe295
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.62.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 as_nl='
42 export as_nl
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83 as_unset=unset
84 else
85 as_unset=false
89 # IFS
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
94 IFS=" "" $as_nl"
96 # Find who we are. Look in the path if we contain no directory separator.
97 case $0 in
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 for as_dir in $PATH
102 IFS=$as_save_IFS
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 done
106 IFS=$as_save_IFS
109 esac
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
113 as_myself=$0
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
137 as_expr=expr
138 else
139 as_expr=false
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143 as_basename=basename
144 else
145 as_basename=false
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154 $as_echo X/"$0" |
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 s//\1/
159 /^X\/\(\/\/\)$/{
160 s//\1/
163 /^X\/\(\/\).*/{
164 s//\1/
167 s/.*/./; q'`
169 # CDPATH.
170 $as_unset CDPATH
173 if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
175 as_have_required=yes
176 else
177 as_have_required=no
180 if test $as_have_required = yes && (eval ":
181 (as_func_return () {
182 (exit \$1)
184 as_func_success () {
185 as_func_return 0
187 as_func_failure () {
188 as_func_return 1
190 as_func_ret_success () {
191 return 0
193 as_func_ret_failure () {
194 return 1
197 exitcode=0
198 if as_func_success; then
200 else
201 exitcode=1
202 echo as_func_success failed.
205 if as_func_failure; then
206 exitcode=1
207 echo as_func_failure succeeded.
210 if as_func_ret_success; then
212 else
213 exitcode=1
214 echo as_func_ret_success failed.
217 if as_func_ret_failure; then
218 exitcode=1
219 echo as_func_ret_failure succeeded.
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
224 else
225 exitcode=1
226 echo positional parameters were not saved.
229 test \$exitcode = 0) || { (exit 1); exit 1; }
232 as_lineno_1=\$LINENO
233 as_lineno_2=\$LINENO
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
238 else
239 as_candidate_shells=
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
243 IFS=$as_save_IFS
244 test -z "$as_dir" && as_dir=.
245 case $as_dir in
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249 done;;
250 esac
251 done
252 IFS=$as_save_IFS
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 emulate sh
261 NULLCMD=:
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266 else
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
269 esac
275 _ASEOF
276 }; then
277 CONFIG_SHELL=$as_shell
278 as_have_required=yes
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281 emulate sh
282 NULLCMD=:
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
286 setopt NO_GLOB_SUBST
287 else
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
290 esac
296 (as_func_return () {
297 (exit $1)
299 as_func_success () {
300 as_func_return 0
302 as_func_failure () {
303 as_func_return 1
305 as_func_ret_success () {
306 return 0
308 as_func_ret_failure () {
309 return 1
312 exitcode=0
313 if as_func_success; then
315 else
316 exitcode=1
317 echo as_func_success failed.
320 if as_func_failure; then
321 exitcode=1
322 echo as_func_failure succeeded.
325 if as_func_ret_success; then
327 else
328 exitcode=1
329 echo as_func_ret_success failed.
332 if as_func_ret_failure; then
333 exitcode=1
334 echo as_func_ret_failure succeeded.
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
339 else
340 exitcode=1
341 echo positional parameters were not saved.
344 test $exitcode = 0) || { (exit 1); exit 1; }
347 as_lineno_1=$LINENO
348 as_lineno_2=$LINENO
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
352 _ASEOF
353 }; then
354 break
359 done
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364 done
365 export CONFIG_SHELL
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
385 (eval "as_func_return () {
386 (exit \$1)
388 as_func_success () {
389 as_func_return 0
391 as_func_failure () {
392 as_func_return 1
394 as_func_ret_success () {
395 return 0
397 as_func_ret_failure () {
398 return 1
401 exitcode=0
402 if as_func_success; then
404 else
405 exitcode=1
406 echo as_func_success failed.
409 if as_func_failure; then
410 exitcode=1
411 echo as_func_failure succeeded.
414 if as_func_ret_success; then
416 else
417 exitcode=1
418 echo as_func_ret_success failed.
421 if as_func_ret_failure; then
422 exitcode=1
423 echo as_func_ret_failure succeeded.
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
428 else
429 exitcode=1
430 echo positional parameters were not saved.
433 test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
443 as_lineno_1=$LINENO
444 as_lineno_2=$LINENO
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
454 # case at line end.
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
458 sed -n '
460 /[$]LINENO/=
461 ' <$as_myself |
462 sed '
463 s/[$]LINENO.*/&-/
464 t lineno
466 :lineno
468 :loop
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470 t loop
471 s/-\n.*//
472 ' >$as_me.lineno &&
473 chmod +x "$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
480 . "./$as_me.lineno"
481 # Exit status is that of the last command.
482 exit
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487 as_dirname=dirname
488 else
489 as_dirname=false
492 ECHO_C= ECHO_N= ECHO_T=
493 case `echo -n x` in
494 -n*)
495 case `echo 'x\c'` in
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
497 *) ECHO_C='\c';;
498 esac;;
500 ECHO_N='-n';;
501 esac
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
504 as_expr=expr
505 else
506 as_expr=false
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
512 else
513 rm -f conf$$.dir
514 mkdir conf$$.dir 2>/dev/null
516 if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
518 as_ln_s='ln -s'
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524 as_ln_s='cp -p'
525 elif ln conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s=ln
527 else
528 as_ln_s='cp -p'
530 else
531 as_ln_s='cp -p'
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
536 if mkdir -p . 2>/dev/null; then
537 as_mkdir_p=:
538 else
539 test -d ./-p && rmdir ./-p
540 as_mkdir_p=false
543 if test -x / >/dev/null 2>&1; then
544 as_test_x='test -x'
545 else
546 if ls -dL / >/dev/null 2>&1; then
547 as_ls_L_option=L
548 else
549 as_ls_L_option=
551 as_test_x='
552 eval sh -c '\''
553 if test -d "$1"; then
554 test -d "$1/.";
555 else
556 case $1 in
557 -*)set "./$1";;
558 esac;
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
561 '\'' sh
564 as_executable_p=$as_test_x
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
574 exec 7<&0 </dev/null 6>&1
576 # Name of the host.
577 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578 # so uname gets run too.
579 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
582 # Initializations.
584 ac_default_prefix=/usr/local
585 ac_clean_files=
586 ac_config_libobj_dir=.
587 LIBOBJS=
588 cross_compiling=no
589 subdirs=
590 MFLAGS=
591 MAKEFLAGS=
592 SHELL=${CONFIG_SHELL-/bin/sh}
594 # Identity of this package.
595 PACKAGE_NAME=
596 PACKAGE_TARNAME=
597 PACKAGE_VERSION=
598 PACKAGE_STRING=
599 PACKAGE_BUGREPORT=
601 ac_unique_file="vim.h"
602 # Factoring default headers for most tests.
603 ac_includes_default="\
604 #include <stdio.h>
605 #ifdef HAVE_SYS_TYPES_H
606 # include <sys/types.h>
607 #endif
608 #ifdef HAVE_SYS_STAT_H
609 # include <sys/stat.h>
610 #endif
611 #ifdef STDC_HEADERS
612 # include <stdlib.h>
613 # include <stddef.h>
614 #else
615 # ifdef HAVE_STDLIB_H
616 # include <stdlib.h>
617 # endif
618 #endif
619 #ifdef HAVE_STRING_H
620 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
621 # include <memory.h>
622 # endif
623 # include <string.h>
624 #endif
625 #ifdef HAVE_STRINGS_H
626 # include <strings.h>
627 #endif
628 #ifdef HAVE_INTTYPES_H
629 # include <inttypes.h>
630 #endif
631 #ifdef HAVE_STDINT_H
632 # include <stdint.h>
633 #endif
634 #ifdef HAVE_UNISTD_H
635 # include <unistd.h>
636 #endif"
638 ac_subst_vars='SHELL
639 PATH_SEPARATOR
640 PACKAGE_NAME
641 PACKAGE_TARNAME
642 PACKAGE_VERSION
643 PACKAGE_STRING
644 PACKAGE_BUGREPORT
645 exec_prefix
646 prefix
647 program_transform_name
648 bindir
649 sbindir
650 libexecdir
651 datarootdir
652 datadir
653 sysconfdir
654 sharedstatedir
655 localstatedir
656 includedir
657 oldincludedir
658 docdir
659 infodir
660 htmldir
661 dvidir
662 pdfdir
663 psdir
664 libdir
665 localedir
666 mandir
667 DEFS
668 ECHO_C
669 ECHO_N
670 ECHO_T
671 LIBS
672 build_alias
673 host_alias
674 target_alias
675 SET_MAKE
677 CFLAGS
678 LDFLAGS
679 CPPFLAGS
680 ac_ct_CC
681 EXEEXT
682 OBJEXT
684 GREP
685 EGREP
687 STRIP
688 CPP_MM
689 OS_EXTRA_SRC
690 OS_EXTRA_OBJ
691 VIMNAME
692 EXNAME
693 VIEWNAME
694 line_break
695 dovimdiff
696 dogvimdiff
697 compiledby
698 vi_cv_path_mzscheme
699 MZSCHEME_SRC
700 MZSCHEME_OBJ
701 MZSCHEME_PRO
702 MZSCHEME_LIBS
703 MZSCHEME_CFLAGS
704 vi_cv_path_perl
705 vi_cv_perllib
706 shrpenv
707 PERL_SRC
708 PERL_OBJ
709 PERL_PRO
710 PERL_CFLAGS
711 PERL_LIBS
712 vi_cv_path_python
713 PYTHON_CONFDIR
714 PYTHON_LIBS
715 PYTHON_GETPATH_CFLAGS
716 PYTHON_CFLAGS
717 PYTHON_SRC
718 PYTHON_OBJ
719 vi_cv_path_tcl
720 TCL_SRC
721 TCL_OBJ
722 TCL_PRO
723 TCL_CFLAGS
724 TCL_LIBS
725 vi_cv_path_ruby
726 RUBY_SRC
727 RUBY_OBJ
728 RUBY_PRO
729 RUBY_CFLAGS
730 RUBY_LIBS
731 WORKSHOP_SRC
732 WORKSHOP_OBJ
733 NETBEANS_SRC
734 NETBEANS_OBJ
735 SNIFF_SRC
736 SNIFF_OBJ
737 xmkmfpath
738 XMKMF
739 X_CFLAGS
740 X_PRE_LIBS
741 X_LIBS
742 X_EXTRA_LIBS
743 X_LIB
744 GTK_CONFIG
745 GTK12_CONFIG
746 PKG_CONFIG
747 GTK_CFLAGS
748 GTK_LIBS
749 GTK_LIBNAME
750 GNOME_LIBS
751 GNOME_LIBDIR
752 GNOME_INCLUDEDIR
753 GNOME_CONFIG
754 MOTIF_LIBNAME
755 NARROW_PROTO
756 GUI_INC_LOC
757 GUI_LIB_LOC
758 GUITYPE
759 GUI_X_LIBS
760 HANGULIN_SRC
761 HANGULIN_OBJ
762 TAGPRG
763 INSTALL_LANGS
764 INSTALL_TOOL_LANGS
765 MSGFMT
766 MAKEMO
767 DEPEND_CFLAGS_FILTER
768 LIBOBJS
769 LTLIBOBJS'
770 ac_subst_files=''
771 ac_user_opts='
772 enable_option_checking
773 enable_darwin
774 with_mac_arch
775 with_local_dir
776 with_vim_name
777 with_ex_name
778 with_view_name
779 with_global_runtime
780 with_modified_by
781 enable_selinux
782 with_features
783 with_compiledby
784 enable_xsmp
785 enable_xsmp_interact
786 enable_mzschemeinterp
787 with_plthome
788 enable_perlinterp
789 enable_pythoninterp
790 with_python_config_dir
791 enable_tclinterp
792 with_tclsh
793 enable_rubyinterp
794 enable_cscope
795 enable_workshop
796 enable_netbeans
797 enable_sniff
798 enable_multibyte
799 enable_hangulinput
800 enable_xim
801 enable_fontset
802 with_x
803 enable_gui
804 enable_gtk_check
805 enable_gtk2_check
806 enable_gnome_check
807 enable_motif_check
808 enable_athena_check
809 enable_nextaw_check
810 enable_carbon_check
811 with_gtk_prefix
812 with_gtk_exec_prefix
813 enable_gtktest
814 with_gnome_includes
815 with_gnome_libs
816 with_gnome
817 with_motif_lib
818 with_tlib
819 enable_acl
820 enable_gpm
821 enable_sysmouse
822 enable_nls
824 ac_precious_vars='build_alias
825 host_alias
826 target_alias
828 CFLAGS
829 LDFLAGS
830 LIBS
831 CPPFLAGS
833 XMKMF'
836 # Initialize some variables set by options.
837 ac_init_help=
838 ac_init_version=false
839 ac_unrecognized_opts=
840 ac_unrecognized_sep=
841 # The variables have the same names as the options, with
842 # dashes changed to underlines.
843 cache_file=/dev/null
844 exec_prefix=NONE
845 no_create=
846 no_recursion=
847 prefix=NONE
848 program_prefix=NONE
849 program_suffix=NONE
850 program_transform_name=s,x,x,
851 silent=
852 site=
853 srcdir=
854 verbose=
855 x_includes=NONE
856 x_libraries=NONE
858 # Installation directory options.
859 # These are left unexpanded so users can "make install exec_prefix=/foo"
860 # and all the variables that are supposed to be based on exec_prefix
861 # by default will actually change.
862 # Use braces instead of parens because sh, perl, etc. also accept them.
863 # (The list follows the same order as the GNU Coding Standards.)
864 bindir='${exec_prefix}/bin'
865 sbindir='${exec_prefix}/sbin'
866 libexecdir='${exec_prefix}/libexec'
867 datarootdir='${prefix}/share'
868 datadir='${datarootdir}'
869 sysconfdir='${prefix}/etc'
870 sharedstatedir='${prefix}/com'
871 localstatedir='${prefix}/var'
872 includedir='${prefix}/include'
873 oldincludedir='/usr/include'
874 docdir='${datarootdir}/doc/${PACKAGE}'
875 infodir='${datarootdir}/info'
876 htmldir='${docdir}'
877 dvidir='${docdir}'
878 pdfdir='${docdir}'
879 psdir='${docdir}'
880 libdir='${exec_prefix}/lib'
881 localedir='${datarootdir}/locale'
882 mandir='${datarootdir}/man'
884 ac_prev=
885 ac_dashdash=
886 for ac_option
888 # If the previous option needs an argument, assign it.
889 if test -n "$ac_prev"; then
890 eval $ac_prev=\$ac_option
891 ac_prev=
892 continue
895 case $ac_option in
896 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
897 *) ac_optarg=yes ;;
898 esac
900 # Accept the important Cygnus configure options, so we can diagnose typos.
902 case $ac_dashdash$ac_option in
904 ac_dashdash=yes ;;
906 -bindir | --bindir | --bindi | --bind | --bin | --bi)
907 ac_prev=bindir ;;
908 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
909 bindir=$ac_optarg ;;
911 -build | --build | --buil | --bui | --bu)
912 ac_prev=build_alias ;;
913 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
914 build_alias=$ac_optarg ;;
916 -cache-file | --cache-file | --cache-fil | --cache-fi \
917 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
918 ac_prev=cache_file ;;
919 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
920 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
921 cache_file=$ac_optarg ;;
923 --config-cache | -C)
924 cache_file=config.cache ;;
926 -datadir | --datadir | --datadi | --datad)
927 ac_prev=datadir ;;
928 -datadir=* | --datadir=* | --datadi=* | --datad=*)
929 datadir=$ac_optarg ;;
931 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
932 | --dataroo | --dataro | --datar)
933 ac_prev=datarootdir ;;
934 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
935 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
936 datarootdir=$ac_optarg ;;
938 -disable-* | --disable-*)
939 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
940 # Reject names that are not valid shell variable names.
941 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
942 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
943 { (exit 1); exit 1; }; }
944 ac_useropt_orig=$ac_useropt
945 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
946 case $ac_user_opts in
948 "enable_$ac_useropt"
949 "*) ;;
950 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
951 ac_unrecognized_sep=', ';;
952 esac
953 eval enable_$ac_useropt=no ;;
955 -docdir | --docdir | --docdi | --doc | --do)
956 ac_prev=docdir ;;
957 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
958 docdir=$ac_optarg ;;
960 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
961 ac_prev=dvidir ;;
962 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
963 dvidir=$ac_optarg ;;
965 -enable-* | --enable-*)
966 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
967 # Reject names that are not valid shell variable names.
968 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
969 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
970 { (exit 1); exit 1; }; }
971 ac_useropt_orig=$ac_useropt
972 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
973 case $ac_user_opts in
975 "enable_$ac_useropt"
976 "*) ;;
977 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
978 ac_unrecognized_sep=', ';;
979 esac
980 eval enable_$ac_useropt=\$ac_optarg ;;
982 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
983 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
984 | --exec | --exe | --ex)
985 ac_prev=exec_prefix ;;
986 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
987 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
988 | --exec=* | --exe=* | --ex=*)
989 exec_prefix=$ac_optarg ;;
991 -gas | --gas | --ga | --g)
992 # Obsolete; use --with-gas.
993 with_gas=yes ;;
995 -help | --help | --hel | --he | -h)
996 ac_init_help=long ;;
997 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
998 ac_init_help=recursive ;;
999 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1000 ac_init_help=short ;;
1002 -host | --host | --hos | --ho)
1003 ac_prev=host_alias ;;
1004 -host=* | --host=* | --hos=* | --ho=*)
1005 host_alias=$ac_optarg ;;
1007 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1008 ac_prev=htmldir ;;
1009 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1010 | --ht=*)
1011 htmldir=$ac_optarg ;;
1013 -includedir | --includedir | --includedi | --included | --include \
1014 | --includ | --inclu | --incl | --inc)
1015 ac_prev=includedir ;;
1016 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1017 | --includ=* | --inclu=* | --incl=* | --inc=*)
1018 includedir=$ac_optarg ;;
1020 -infodir | --infodir | --infodi | --infod | --info | --inf)
1021 ac_prev=infodir ;;
1022 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1023 infodir=$ac_optarg ;;
1025 -libdir | --libdir | --libdi | --libd)
1026 ac_prev=libdir ;;
1027 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1028 libdir=$ac_optarg ;;
1030 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1031 | --libexe | --libex | --libe)
1032 ac_prev=libexecdir ;;
1033 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1034 | --libexe=* | --libex=* | --libe=*)
1035 libexecdir=$ac_optarg ;;
1037 -localedir | --localedir | --localedi | --localed | --locale)
1038 ac_prev=localedir ;;
1039 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1040 localedir=$ac_optarg ;;
1042 -localstatedir | --localstatedir | --localstatedi | --localstated \
1043 | --localstate | --localstat | --localsta | --localst | --locals)
1044 ac_prev=localstatedir ;;
1045 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1046 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1047 localstatedir=$ac_optarg ;;
1049 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1050 ac_prev=mandir ;;
1051 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1052 mandir=$ac_optarg ;;
1054 -nfp | --nfp | --nf)
1055 # Obsolete; use --without-fp.
1056 with_fp=no ;;
1058 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1059 | --no-cr | --no-c | -n)
1060 no_create=yes ;;
1062 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1063 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1064 no_recursion=yes ;;
1066 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1067 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1068 | --oldin | --oldi | --old | --ol | --o)
1069 ac_prev=oldincludedir ;;
1070 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1071 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1072 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1073 oldincludedir=$ac_optarg ;;
1075 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1076 ac_prev=prefix ;;
1077 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1078 prefix=$ac_optarg ;;
1080 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1081 | --program-pre | --program-pr | --program-p)
1082 ac_prev=program_prefix ;;
1083 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1084 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1085 program_prefix=$ac_optarg ;;
1087 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1088 | --program-suf | --program-su | --program-s)
1089 ac_prev=program_suffix ;;
1090 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1091 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1092 program_suffix=$ac_optarg ;;
1094 -program-transform-name | --program-transform-name \
1095 | --program-transform-nam | --program-transform-na \
1096 | --program-transform-n | --program-transform- \
1097 | --program-transform | --program-transfor \
1098 | --program-transfo | --program-transf \
1099 | --program-trans | --program-tran \
1100 | --progr-tra | --program-tr | --program-t)
1101 ac_prev=program_transform_name ;;
1102 -program-transform-name=* | --program-transform-name=* \
1103 | --program-transform-nam=* | --program-transform-na=* \
1104 | --program-transform-n=* | --program-transform-=* \
1105 | --program-transform=* | --program-transfor=* \
1106 | --program-transfo=* | --program-transf=* \
1107 | --program-trans=* | --program-tran=* \
1108 | --progr-tra=* | --program-tr=* | --program-t=*)
1109 program_transform_name=$ac_optarg ;;
1111 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1112 ac_prev=pdfdir ;;
1113 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1114 pdfdir=$ac_optarg ;;
1116 -psdir | --psdir | --psdi | --psd | --ps)
1117 ac_prev=psdir ;;
1118 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1119 psdir=$ac_optarg ;;
1121 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1122 | -silent | --silent | --silen | --sile | --sil)
1123 silent=yes ;;
1125 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1126 ac_prev=sbindir ;;
1127 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1128 | --sbi=* | --sb=*)
1129 sbindir=$ac_optarg ;;
1131 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1132 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1133 | --sharedst | --shareds | --shared | --share | --shar \
1134 | --sha | --sh)
1135 ac_prev=sharedstatedir ;;
1136 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1137 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1138 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1139 | --sha=* | --sh=*)
1140 sharedstatedir=$ac_optarg ;;
1142 -site | --site | --sit)
1143 ac_prev=site ;;
1144 -site=* | --site=* | --sit=*)
1145 site=$ac_optarg ;;
1147 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1148 ac_prev=srcdir ;;
1149 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1150 srcdir=$ac_optarg ;;
1152 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1153 | --syscon | --sysco | --sysc | --sys | --sy)
1154 ac_prev=sysconfdir ;;
1155 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1156 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1157 sysconfdir=$ac_optarg ;;
1159 -target | --target | --targe | --targ | --tar | --ta | --t)
1160 ac_prev=target_alias ;;
1161 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1162 target_alias=$ac_optarg ;;
1164 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1165 verbose=yes ;;
1167 -version | --version | --versio | --versi | --vers | -V)
1168 ac_init_version=: ;;
1170 -with-* | --with-*)
1171 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1172 # Reject names that are not valid shell variable names.
1173 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1174 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1175 { (exit 1); exit 1; }; }
1176 ac_useropt_orig=$ac_useropt
1177 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1178 case $ac_user_opts in
1180 "with_$ac_useropt"
1181 "*) ;;
1182 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1183 ac_unrecognized_sep=', ';;
1184 esac
1185 eval with_$ac_useropt=\$ac_optarg ;;
1187 -without-* | --without-*)
1188 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1189 # Reject names that are not valid shell variable names.
1190 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1191 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1192 { (exit 1); exit 1; }; }
1193 ac_useropt_orig=$ac_useropt
1194 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1195 case $ac_user_opts in
1197 "with_$ac_useropt"
1198 "*) ;;
1199 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1200 ac_unrecognized_sep=', ';;
1201 esac
1202 eval with_$ac_useropt=no ;;
1204 --x)
1205 # Obsolete; use --with-x.
1206 with_x=yes ;;
1208 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1209 | --x-incl | --x-inc | --x-in | --x-i)
1210 ac_prev=x_includes ;;
1211 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1212 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1213 x_includes=$ac_optarg ;;
1215 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1216 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1217 ac_prev=x_libraries ;;
1218 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1219 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1220 x_libraries=$ac_optarg ;;
1222 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1223 Try \`$0 --help' for more information." >&2
1224 { (exit 1); exit 1; }; }
1227 *=*)
1228 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1229 # Reject names that are not valid shell variable names.
1230 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1231 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1232 { (exit 1); exit 1; }; }
1233 eval $ac_envvar=\$ac_optarg
1234 export $ac_envvar ;;
1237 # FIXME: should be removed in autoconf 3.0.
1238 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1239 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1240 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1241 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1244 esac
1245 done
1247 if test -n "$ac_prev"; then
1248 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1249 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1250 { (exit 1); exit 1; }; }
1253 if test -n "$ac_unrecognized_opts"; then
1254 case $enable_option_checking in
1255 no) ;;
1256 fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1257 { (exit 1); exit 1; }; } ;;
1258 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1259 esac
1262 # Check all directory arguments for consistency.
1263 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1264 datadir sysconfdir sharedstatedir localstatedir includedir \
1265 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1266 libdir localedir mandir
1268 eval ac_val=\$$ac_var
1269 # Remove trailing slashes.
1270 case $ac_val in
1271 */ )
1272 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1273 eval $ac_var=\$ac_val;;
1274 esac
1275 # Be sure to have absolute directory names.
1276 case $ac_val in
1277 [\\/$]* | ?:[\\/]* ) continue;;
1278 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1279 esac
1280 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1281 { (exit 1); exit 1; }; }
1282 done
1284 # There might be people who depend on the old broken behavior: `$host'
1285 # used to hold the argument of --host etc.
1286 # FIXME: To remove some day.
1287 build=$build_alias
1288 host=$host_alias
1289 target=$target_alias
1291 # FIXME: To remove some day.
1292 if test "x$host_alias" != x; then
1293 if test "x$build_alias" = x; then
1294 cross_compiling=maybe
1295 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1296 If a cross compiler is detected then cross compile mode will be used." >&2
1297 elif test "x$build_alias" != "x$host_alias"; then
1298 cross_compiling=yes
1302 ac_tool_prefix=
1303 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1305 test "$silent" = yes && exec 6>/dev/null
1308 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1309 ac_ls_di=`ls -di .` &&
1310 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1311 { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1312 { (exit 1); exit 1; }; }
1313 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1314 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1315 { (exit 1); exit 1; }; }
1318 # Find the source files, if location was not specified.
1319 if test -z "$srcdir"; then
1320 ac_srcdir_defaulted=yes
1321 # Try the directory containing this script, then the parent directory.
1322 ac_confdir=`$as_dirname -- "$as_myself" ||
1323 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1324 X"$as_myself" : 'X\(//\)[^/]' \| \
1325 X"$as_myself" : 'X\(//\)$' \| \
1326 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1327 $as_echo X"$as_myself" |
1328 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1329 s//\1/
1332 /^X\(\/\/\)[^/].*/{
1333 s//\1/
1336 /^X\(\/\/\)$/{
1337 s//\1/
1340 /^X\(\/\).*/{
1341 s//\1/
1344 s/.*/./; q'`
1345 srcdir=$ac_confdir
1346 if test ! -r "$srcdir/$ac_unique_file"; then
1347 srcdir=..
1349 else
1350 ac_srcdir_defaulted=no
1352 if test ! -r "$srcdir/$ac_unique_file"; then
1353 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1354 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1355 { (exit 1); exit 1; }; }
1357 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1358 ac_abs_confdir=`(
1359 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1360 { (exit 1); exit 1; }; }
1361 pwd)`
1362 # When building in place, set srcdir=.
1363 if test "$ac_abs_confdir" = "$ac_pwd"; then
1364 srcdir=.
1366 # Remove unnecessary trailing slashes from srcdir.
1367 # Double slashes in file names in object file debugging info
1368 # mess up M-x gdb in Emacs.
1369 case $srcdir in
1370 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1371 esac
1372 for ac_var in $ac_precious_vars; do
1373 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1374 eval ac_env_${ac_var}_value=\$${ac_var}
1375 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1376 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1377 done
1380 # Report the --help message.
1382 if test "$ac_init_help" = "long"; then
1383 # Omit some internal or obsolete options to make the list less imposing.
1384 # This message is too long to be a string in the A/UX 3.1 sh.
1385 cat <<_ACEOF
1386 \`configure' configures this package to adapt to many kinds of systems.
1388 Usage: $0 [OPTION]... [VAR=VALUE]...
1390 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1391 VAR=VALUE. See below for descriptions of some of the useful variables.
1393 Defaults for the options are specified in brackets.
1395 Configuration:
1396 -h, --help display this help and exit
1397 --help=short display options specific to this package
1398 --help=recursive display the short help of all the included packages
1399 -V, --version display version information and exit
1400 -q, --quiet, --silent do not print \`checking...' messages
1401 --cache-file=FILE cache test results in FILE [disabled]
1402 -C, --config-cache alias for \`--cache-file=config.cache'
1403 -n, --no-create do not create output files
1404 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1406 Installation directories:
1407 --prefix=PREFIX install architecture-independent files in PREFIX
1408 [$ac_default_prefix]
1409 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1410 [PREFIX]
1412 By default, \`make install' will install all the files in
1413 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1414 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1415 for instance \`--prefix=\$HOME'.
1417 For better control, use the options below.
1419 Fine tuning of the installation directories:
1420 --bindir=DIR user executables [EPREFIX/bin]
1421 --sbindir=DIR system admin executables [EPREFIX/sbin]
1422 --libexecdir=DIR program executables [EPREFIX/libexec]
1423 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1424 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1425 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1426 --libdir=DIR object code libraries [EPREFIX/lib]
1427 --includedir=DIR C header files [PREFIX/include]
1428 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1429 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1430 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1431 --infodir=DIR info documentation [DATAROOTDIR/info]
1432 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1433 --mandir=DIR man documentation [DATAROOTDIR/man]
1434 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1435 --htmldir=DIR html documentation [DOCDIR]
1436 --dvidir=DIR dvi documentation [DOCDIR]
1437 --pdfdir=DIR pdf documentation [DOCDIR]
1438 --psdir=DIR ps documentation [DOCDIR]
1439 _ACEOF
1441 cat <<\_ACEOF
1443 X features:
1444 --x-includes=DIR X include files are in DIR
1445 --x-libraries=DIR X library files are in DIR
1446 _ACEOF
1449 if test -n "$ac_init_help"; then
1451 cat <<\_ACEOF
1453 Optional Features:
1454 --disable-option-checking ignore unrecognized --enable/--with options
1455 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1456 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1457 --disable-darwin Disable Darwin (Mac OS X) support.
1458 --disable-selinux Don't check for SELinux support.
1459 --disable-xsmp Disable XSMP session management
1460 --disable-xsmp-interact Disable XSMP interaction
1461 --enable-mzschemeinterp Include MzScheme interpreter.
1462 --enable-perlinterp Include Perl interpreter.
1463 --enable-pythoninterp Include Python interpreter.
1464 --enable-tclinterp Include Tcl interpreter.
1465 --enable-rubyinterp Include Ruby interpreter.
1466 --enable-cscope Include cscope interface.
1467 --enable-workshop Include Sun Visual Workshop support.
1468 --disable-netbeans Disable NetBeans integration support.
1469 --enable-sniff Include Sniff interface.
1470 --enable-multibyte Include multibyte editing support.
1471 --enable-hangulinput Include Hangul input support.
1472 --enable-xim Include XIM input support.
1473 --enable-fontset Include X fontset output support.
1474 --enable-gui=OPTS X11 GUI default=auto OPTS=auto/no/gtk/gtk2/gnome/gnome2/motif/athena/neXtaw/photon/carbon
1475 --enable-gtk-check If auto-select GUI, check for GTK default=yes
1476 --enable-gtk2-check If GTK GUI, check for GTK+ 2 default=yes
1477 --enable-gnome-check If GTK GUI, check for GNOME default=no
1478 --enable-motif-check If auto-select GUI, check for Motif default=yes
1479 --enable-athena-check If auto-select GUI, check for Athena default=yes
1480 --enable-nextaw-check If auto-select GUI, check for neXtaw default=yes
1481 --enable-carbon-check If auto-select GUI, check for Carbon default=yes
1482 --disable-gtktest Do not try to compile and run a test GTK program
1483 --disable-acl Don't check for ACL support.
1484 --disable-gpm Don't use gpm (Linux mouse daemon).
1485 --disable-sysmouse Don't use sysmouse (mouse in *BSD console).
1486 --disable-nls Don't support NLS (gettext()).
1488 Optional Packages:
1489 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1490 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1491 --with-mac-arch=ARCH current, intel, ppc or both
1492 --with-local-dir=PATH search PATH instead of /usr/local for local libraries.
1493 --without-local-dir do not search /usr/local for local libraries.
1494 --with-vim-name=NAME what to call the Vim executable
1495 --with-ex-name=NAME what to call the Ex executable
1496 --with-view-name=NAME what to call the View executable
1497 --with-global-runtime=DIR global runtime directory in 'runtimepath'
1498 --with-modified-by=NAME name of who modified a release version
1499 --with-features=TYPE tiny, small, normal, big or huge (default: normal)
1500 --with-compiledby=NAME name to show in :version message
1501 --with-plthome=PLTHOME Use PLTHOME.
1502 --with-python-config-dir=PATH Python's config directory
1503 --with-tclsh=PATH which tclsh to use (default: tclsh8.0)
1504 --with-x use the X Window System
1505 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1506 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1507 --with-gnome-includes=DIR Specify location of GNOME headers
1508 --with-gnome-libs=DIR Specify location of GNOME libs
1509 --with-gnome Specify prefix for GNOME files
1510 --with-motif-lib=STRING Library for Motif
1511 --with-tlib=library terminal library to be used
1513 Some influential environment variables:
1514 CC C compiler command
1515 CFLAGS C compiler flags
1516 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1517 nonstandard directory <lib dir>
1518 LIBS libraries to pass to the linker, e.g. -l<library>
1519 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1520 you have headers in a nonstandard directory <include dir>
1521 CPP C preprocessor
1522 XMKMF Path to xmkmf, Makefile generator for X Window System
1524 Use these variables to override the choices made by `configure' or to help
1525 it to find libraries and programs with nonstandard names/locations.
1527 _ACEOF
1528 ac_status=$?
1531 if test "$ac_init_help" = "recursive"; then
1532 # If there are subdirs, report their specific --help.
1533 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1534 test -d "$ac_dir" ||
1535 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1536 continue
1537 ac_builddir=.
1539 case "$ac_dir" in
1540 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1542 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1543 # A ".." for each directory in $ac_dir_suffix.
1544 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1545 case $ac_top_builddir_sub in
1546 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1547 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1548 esac ;;
1549 esac
1550 ac_abs_top_builddir=$ac_pwd
1551 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1552 # for backward compatibility:
1553 ac_top_builddir=$ac_top_build_prefix
1555 case $srcdir in
1556 .) # We are building in place.
1557 ac_srcdir=.
1558 ac_top_srcdir=$ac_top_builddir_sub
1559 ac_abs_top_srcdir=$ac_pwd ;;
1560 [\\/]* | ?:[\\/]* ) # Absolute name.
1561 ac_srcdir=$srcdir$ac_dir_suffix;
1562 ac_top_srcdir=$srcdir
1563 ac_abs_top_srcdir=$srcdir ;;
1564 *) # Relative name.
1565 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1566 ac_top_srcdir=$ac_top_build_prefix$srcdir
1567 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1568 esac
1569 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1571 cd "$ac_dir" || { ac_status=$?; continue; }
1572 # Check for guested configure.
1573 if test -f "$ac_srcdir/configure.gnu"; then
1574 echo &&
1575 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1576 elif test -f "$ac_srcdir/configure"; then
1577 echo &&
1578 $SHELL "$ac_srcdir/configure" --help=recursive
1579 else
1580 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1581 fi || ac_status=$?
1582 cd "$ac_pwd" || { ac_status=$?; break; }
1583 done
1586 test -n "$ac_init_help" && exit $ac_status
1587 if $ac_init_version; then
1588 cat <<\_ACEOF
1589 configure
1590 generated by GNU Autoconf 2.62
1592 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1593 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1594 This configure script is free software; the Free Software Foundation
1595 gives unlimited permission to copy, distribute and modify it.
1596 _ACEOF
1597 exit
1599 cat >auto/config.log <<_ACEOF
1600 This file contains any messages produced by compilers while
1601 running configure, to aid debugging if configure makes a mistake.
1603 It was created by $as_me, which was
1604 generated by GNU Autoconf 2.62. Invocation command line was
1606 $ $0 $@
1608 _ACEOF
1609 exec 5>>auto/config.log
1611 cat <<_ASUNAME
1612 ## --------- ##
1613 ## Platform. ##
1614 ## --------- ##
1616 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1617 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1618 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1619 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1620 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1622 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1623 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1625 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1626 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1627 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1628 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1629 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1630 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1631 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1633 _ASUNAME
1635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1636 for as_dir in $PATH
1638 IFS=$as_save_IFS
1639 test -z "$as_dir" && as_dir=.
1640 $as_echo "PATH: $as_dir"
1641 done
1642 IFS=$as_save_IFS
1644 } >&5
1646 cat >&5 <<_ACEOF
1649 ## ----------- ##
1650 ## Core tests. ##
1651 ## ----------- ##
1653 _ACEOF
1656 # Keep a trace of the command line.
1657 # Strip out --no-create and --no-recursion so they do not pile up.
1658 # Strip out --silent because we don't want to record it for future runs.
1659 # Also quote any args containing shell meta-characters.
1660 # Make two passes to allow for proper duplicate-argument suppression.
1661 ac_configure_args=
1662 ac_configure_args0=
1663 ac_configure_args1=
1664 ac_must_keep_next=false
1665 for ac_pass in 1 2
1667 for ac_arg
1669 case $ac_arg in
1670 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1671 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1672 | -silent | --silent | --silen | --sile | --sil)
1673 continue ;;
1674 *\'*)
1675 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1676 esac
1677 case $ac_pass in
1678 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1680 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1681 if test $ac_must_keep_next = true; then
1682 ac_must_keep_next=false # Got value, back to normal.
1683 else
1684 case $ac_arg in
1685 *=* | --config-cache | -C | -disable-* | --disable-* \
1686 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1687 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1688 | -with-* | --with-* | -without-* | --without-* | --x)
1689 case "$ac_configure_args0 " in
1690 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1691 esac
1693 -* ) ac_must_keep_next=true ;;
1694 esac
1696 ac_configure_args="$ac_configure_args '$ac_arg'"
1698 esac
1699 done
1700 done
1701 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1702 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1704 # When interrupted or exit'd, cleanup temporary files, and complete
1705 # config.log. We remove comments because anyway the quotes in there
1706 # would cause problems or look ugly.
1707 # WARNING: Use '\'' to represent an apostrophe within the trap.
1708 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1709 trap 'exit_status=$?
1710 # Save into config.log some information that might help in debugging.
1712 echo
1714 cat <<\_ASBOX
1715 ## ---------------- ##
1716 ## Cache variables. ##
1717 ## ---------------- ##
1718 _ASBOX
1719 echo
1720 # The following way of writing the cache mishandles newlines in values,
1722 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1723 eval ac_val=\$$ac_var
1724 case $ac_val in #(
1725 *${as_nl}*)
1726 case $ac_var in #(
1727 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1728 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1729 esac
1730 case $ac_var in #(
1731 _ | IFS | as_nl) ;; #(
1732 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1733 *) $as_unset $ac_var ;;
1734 esac ;;
1735 esac
1736 done
1737 (set) 2>&1 |
1738 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1739 *${as_nl}ac_space=\ *)
1740 sed -n \
1741 "s/'\''/'\''\\\\'\'''\''/g;
1742 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1743 ;; #(
1745 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1747 esac |
1748 sort
1750 echo
1752 cat <<\_ASBOX
1753 ## ----------------- ##
1754 ## Output variables. ##
1755 ## ----------------- ##
1756 _ASBOX
1757 echo
1758 for ac_var in $ac_subst_vars
1760 eval ac_val=\$$ac_var
1761 case $ac_val in
1762 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1763 esac
1764 $as_echo "$ac_var='\''$ac_val'\''"
1765 done | sort
1766 echo
1768 if test -n "$ac_subst_files"; then
1769 cat <<\_ASBOX
1770 ## ------------------- ##
1771 ## File substitutions. ##
1772 ## ------------------- ##
1773 _ASBOX
1774 echo
1775 for ac_var in $ac_subst_files
1777 eval ac_val=\$$ac_var
1778 case $ac_val in
1779 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1780 esac
1781 $as_echo "$ac_var='\''$ac_val'\''"
1782 done | sort
1783 echo
1786 if test -s confdefs.h; then
1787 cat <<\_ASBOX
1788 ## ----------- ##
1789 ## confdefs.h. ##
1790 ## ----------- ##
1791 _ASBOX
1792 echo
1793 cat confdefs.h
1794 echo
1796 test "$ac_signal" != 0 &&
1797 $as_echo "$as_me: caught signal $ac_signal"
1798 $as_echo "$as_me: exit $exit_status"
1799 } >&5
1800 rm -f core *.core core.conftest.* &&
1801 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1802 exit $exit_status
1804 for ac_signal in 1 2 13 15; do
1805 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1806 done
1807 ac_signal=0
1809 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1810 rm -f -r conftest* confdefs.h
1812 # Predefined preprocessor variables.
1814 cat >>confdefs.h <<_ACEOF
1815 #define PACKAGE_NAME "$PACKAGE_NAME"
1816 _ACEOF
1819 cat >>confdefs.h <<_ACEOF
1820 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1821 _ACEOF
1824 cat >>confdefs.h <<_ACEOF
1825 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1826 _ACEOF
1829 cat >>confdefs.h <<_ACEOF
1830 #define PACKAGE_STRING "$PACKAGE_STRING"
1831 _ACEOF
1834 cat >>confdefs.h <<_ACEOF
1835 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1836 _ACEOF
1839 # Let the site file select an alternate cache file if it wants to.
1840 # Prefer an explicitly selected file to automatically selected ones.
1841 ac_site_file1=NONE
1842 ac_site_file2=NONE
1843 if test -n "$CONFIG_SITE"; then
1844 ac_site_file1=$CONFIG_SITE
1845 elif test "x$prefix" != xNONE; then
1846 ac_site_file1=$prefix/share/config.site
1847 ac_site_file2=$prefix/etc/config.site
1848 else
1849 ac_site_file1=$ac_default_prefix/share/config.site
1850 ac_site_file2=$ac_default_prefix/etc/config.site
1852 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1854 test "x$ac_site_file" = xNONE && continue
1855 if test -r "$ac_site_file"; then
1856 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1857 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1858 sed 's/^/| /' "$ac_site_file" >&5
1859 . "$ac_site_file"
1861 done
1863 if test -r "$cache_file"; then
1864 # Some versions of bash will fail to source /dev/null (special
1865 # files actually), so we avoid doing that.
1866 if test -f "$cache_file"; then
1867 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1868 $as_echo "$as_me: loading cache $cache_file" >&6;}
1869 case $cache_file in
1870 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1871 *) . "./$cache_file";;
1872 esac
1874 else
1875 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1876 $as_echo "$as_me: creating cache $cache_file" >&6;}
1877 >$cache_file
1880 # Check that the precious variables saved in the cache have kept the same
1881 # value.
1882 ac_cache_corrupted=false
1883 for ac_var in $ac_precious_vars; do
1884 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1885 eval ac_new_set=\$ac_env_${ac_var}_set
1886 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1887 eval ac_new_val=\$ac_env_${ac_var}_value
1888 case $ac_old_set,$ac_new_set in
1889 set,)
1890 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1891 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1892 ac_cache_corrupted=: ;;
1893 ,set)
1894 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1895 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1896 ac_cache_corrupted=: ;;
1897 ,);;
1899 if test "x$ac_old_val" != "x$ac_new_val"; then
1900 # differences in whitespace do not lead to failure.
1901 ac_old_val_w=`echo x $ac_old_val`
1902 ac_new_val_w=`echo x $ac_new_val`
1903 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1904 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1905 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1906 ac_cache_corrupted=:
1907 else
1908 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1909 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1910 eval $ac_var=\$ac_old_val
1912 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1913 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1914 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1915 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1916 fi;;
1917 esac
1918 # Pass precious variables to config.status.
1919 if test "$ac_new_set" = set; then
1920 case $ac_new_val in
1921 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1922 *) ac_arg=$ac_var=$ac_new_val ;;
1923 esac
1924 case " $ac_configure_args " in
1925 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1926 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1927 esac
1929 done
1930 if $ac_cache_corrupted; then
1931 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1932 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1933 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1934 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1935 { (exit 1); exit 1; }; }
1954 ac_ext=c
1955 ac_cpp='$CPP $CPPFLAGS'
1956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1961 ac_config_headers="$ac_config_headers auto/config.h:config.h.in"
1964 cat >>confdefs.h <<\_ACEOF
1965 #define UNIX 1
1966 _ACEOF
1968 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1969 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
1970 set x ${MAKE-make}
1971 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
1972 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
1973 $as_echo_n "(cached) " >&6
1974 else
1975 cat >conftest.make <<\_ACEOF
1976 SHELL = /bin/sh
1977 all:
1978 @echo '@@@%%%=$(MAKE)=@@@%%%'
1979 _ACEOF
1980 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1981 case `${MAKE-make} -f conftest.make 2>/dev/null` in
1982 *@@@%%%=?*=@@@%%%*)
1983 eval ac_cv_prog_make_${ac_make}_set=yes;;
1985 eval ac_cv_prog_make_${ac_make}_set=no;;
1986 esac
1987 rm -f conftest.make
1989 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
1990 { $as_echo "$as_me:$LINENO: result: yes" >&5
1991 $as_echo "yes" >&6; }
1992 SET_MAKE=
1993 else
1994 { $as_echo "$as_me:$LINENO: result: no" >&5
1995 $as_echo "no" >&6; }
1996 SET_MAKE="MAKE=${MAKE-make}"
2000 ac_ext=c
2001 ac_cpp='$CPP $CPPFLAGS'
2002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2005 if test -n "$ac_tool_prefix"; then
2006 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2007 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2008 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2009 $as_echo_n "checking for $ac_word... " >&6; }
2010 if test "${ac_cv_prog_CC+set}" = set; then
2011 $as_echo_n "(cached) " >&6
2012 else
2013 if test -n "$CC"; then
2014 ac_cv_prog_CC="$CC" # Let the user override the test.
2015 else
2016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2017 for as_dir in $PATH
2019 IFS=$as_save_IFS
2020 test -z "$as_dir" && as_dir=.
2021 for ac_exec_ext in '' $ac_executable_extensions; do
2022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2023 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2024 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2025 break 2
2027 done
2028 done
2029 IFS=$as_save_IFS
2033 CC=$ac_cv_prog_CC
2034 if test -n "$CC"; then
2035 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2036 $as_echo "$CC" >&6; }
2037 else
2038 { $as_echo "$as_me:$LINENO: result: no" >&5
2039 $as_echo "no" >&6; }
2044 if test -z "$ac_cv_prog_CC"; then
2045 ac_ct_CC=$CC
2046 # Extract the first word of "gcc", so it can be a program name with args.
2047 set dummy gcc; ac_word=$2
2048 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2049 $as_echo_n "checking for $ac_word... " >&6; }
2050 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2051 $as_echo_n "(cached) " >&6
2052 else
2053 if test -n "$ac_ct_CC"; then
2054 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2055 else
2056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2057 for as_dir in $PATH
2059 IFS=$as_save_IFS
2060 test -z "$as_dir" && as_dir=.
2061 for ac_exec_ext in '' $ac_executable_extensions; do
2062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2063 ac_cv_prog_ac_ct_CC="gcc"
2064 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2065 break 2
2067 done
2068 done
2069 IFS=$as_save_IFS
2073 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2074 if test -n "$ac_ct_CC"; then
2075 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2076 $as_echo "$ac_ct_CC" >&6; }
2077 else
2078 { $as_echo "$as_me:$LINENO: result: no" >&5
2079 $as_echo "no" >&6; }
2082 if test "x$ac_ct_CC" = x; then
2083 CC=""
2084 else
2085 case $cross_compiling:$ac_tool_warned in
2086 yes:)
2087 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2088 whose name does not start with the host triplet. If you think this
2089 configuration is useful to you, please write to autoconf@gnu.org." >&5
2090 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2091 whose name does not start with the host triplet. If you think this
2092 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2093 ac_tool_warned=yes ;;
2094 esac
2095 CC=$ac_ct_CC
2097 else
2098 CC="$ac_cv_prog_CC"
2101 if test -z "$CC"; then
2102 if test -n "$ac_tool_prefix"; then
2103 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2104 set dummy ${ac_tool_prefix}cc; ac_word=$2
2105 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2106 $as_echo_n "checking for $ac_word... " >&6; }
2107 if test "${ac_cv_prog_CC+set}" = set; then
2108 $as_echo_n "(cached) " >&6
2109 else
2110 if test -n "$CC"; then
2111 ac_cv_prog_CC="$CC" # Let the user override the test.
2112 else
2113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2114 for as_dir in $PATH
2116 IFS=$as_save_IFS
2117 test -z "$as_dir" && as_dir=.
2118 for ac_exec_ext in '' $ac_executable_extensions; do
2119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2120 ac_cv_prog_CC="${ac_tool_prefix}cc"
2121 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2122 break 2
2124 done
2125 done
2126 IFS=$as_save_IFS
2130 CC=$ac_cv_prog_CC
2131 if test -n "$CC"; then
2132 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2133 $as_echo "$CC" >&6; }
2134 else
2135 { $as_echo "$as_me:$LINENO: result: no" >&5
2136 $as_echo "no" >&6; }
2142 if test -z "$CC"; then
2143 # Extract the first word of "cc", so it can be a program name with args.
2144 set dummy cc; ac_word=$2
2145 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2146 $as_echo_n "checking for $ac_word... " >&6; }
2147 if test "${ac_cv_prog_CC+set}" = set; then
2148 $as_echo_n "(cached) " >&6
2149 else
2150 if test -n "$CC"; then
2151 ac_cv_prog_CC="$CC" # Let the user override the test.
2152 else
2153 ac_prog_rejected=no
2154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2155 for as_dir in $PATH
2157 IFS=$as_save_IFS
2158 test -z "$as_dir" && as_dir=.
2159 for ac_exec_ext in '' $ac_executable_extensions; do
2160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2161 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2162 ac_prog_rejected=yes
2163 continue
2165 ac_cv_prog_CC="cc"
2166 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2167 break 2
2169 done
2170 done
2171 IFS=$as_save_IFS
2173 if test $ac_prog_rejected = yes; then
2174 # We found a bogon in the path, so make sure we never use it.
2175 set dummy $ac_cv_prog_CC
2176 shift
2177 if test $# != 0; then
2178 # We chose a different compiler from the bogus one.
2179 # However, it has the same basename, so the bogon will be chosen
2180 # first if we set CC to just the basename; use the full file name.
2181 shift
2182 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2187 CC=$ac_cv_prog_CC
2188 if test -n "$CC"; then
2189 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2190 $as_echo "$CC" >&6; }
2191 else
2192 { $as_echo "$as_me:$LINENO: result: no" >&5
2193 $as_echo "no" >&6; }
2198 if test -z "$CC"; then
2199 if test -n "$ac_tool_prefix"; then
2200 for ac_prog in cl.exe
2202 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2203 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2204 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2205 $as_echo_n "checking for $ac_word... " >&6; }
2206 if test "${ac_cv_prog_CC+set}" = set; then
2207 $as_echo_n "(cached) " >&6
2208 else
2209 if test -n "$CC"; then
2210 ac_cv_prog_CC="$CC" # Let the user override the test.
2211 else
2212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2213 for as_dir in $PATH
2215 IFS=$as_save_IFS
2216 test -z "$as_dir" && as_dir=.
2217 for ac_exec_ext in '' $ac_executable_extensions; do
2218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2219 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2220 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2221 break 2
2223 done
2224 done
2225 IFS=$as_save_IFS
2229 CC=$ac_cv_prog_CC
2230 if test -n "$CC"; then
2231 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2232 $as_echo "$CC" >&6; }
2233 else
2234 { $as_echo "$as_me:$LINENO: result: no" >&5
2235 $as_echo "no" >&6; }
2239 test -n "$CC" && break
2240 done
2242 if test -z "$CC"; then
2243 ac_ct_CC=$CC
2244 for ac_prog in cl.exe
2246 # Extract the first word of "$ac_prog", so it can be a program name with args.
2247 set dummy $ac_prog; ac_word=$2
2248 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2249 $as_echo_n "checking for $ac_word... " >&6; }
2250 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2251 $as_echo_n "(cached) " >&6
2252 else
2253 if test -n "$ac_ct_CC"; then
2254 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2255 else
2256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2257 for as_dir in $PATH
2259 IFS=$as_save_IFS
2260 test -z "$as_dir" && as_dir=.
2261 for ac_exec_ext in '' $ac_executable_extensions; do
2262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2263 ac_cv_prog_ac_ct_CC="$ac_prog"
2264 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2265 break 2
2267 done
2268 done
2269 IFS=$as_save_IFS
2273 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2274 if test -n "$ac_ct_CC"; then
2275 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2276 $as_echo "$ac_ct_CC" >&6; }
2277 else
2278 { $as_echo "$as_me:$LINENO: result: no" >&5
2279 $as_echo "no" >&6; }
2283 test -n "$ac_ct_CC" && break
2284 done
2286 if test "x$ac_ct_CC" = x; then
2287 CC=""
2288 else
2289 case $cross_compiling:$ac_tool_warned in
2290 yes:)
2291 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2292 whose name does not start with the host triplet. If you think this
2293 configuration is useful to you, please write to autoconf@gnu.org." >&5
2294 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2295 whose name does not start with the host triplet. If you think this
2296 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2297 ac_tool_warned=yes ;;
2298 esac
2299 CC=$ac_ct_CC
2306 test -z "$CC" && { { $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: C compiler cannot create executables
2441 See \`config.log' for more details." >&5
2442 $as_echo "$as_me: error: C compiler cannot create executables
2443 See \`config.log' for more details." >&2;}
2444 { (exit 77); exit 77; }; }
2447 ac_exeext=$ac_cv_exeext
2449 # Check that the compiler produces executables we can run. If not, either
2450 # the compiler is broken, or we cross compile.
2451 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2452 $as_echo_n "checking whether the C compiler works... " >&6; }
2453 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2454 # If not cross compiling, check that we can run a simple program.
2455 if test "$cross_compiling" != yes; then
2456 if { ac_try='./$ac_file'
2457 { (case "(($ac_try" in
2458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2459 *) ac_try_echo=$ac_try;;
2460 esac
2461 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2462 $as_echo "$ac_try_echo") >&5
2463 (eval "$ac_try") 2>&5
2464 ac_status=$?
2465 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466 (exit $ac_status); }; }; then
2467 cross_compiling=no
2468 else
2469 if test "$cross_compiling" = maybe; then
2470 cross_compiling=yes
2471 else
2472 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2473 If you meant to cross compile, use \`--host'.
2474 See \`config.log' for more details." >&5
2475 $as_echo "$as_me: error: cannot run C compiled programs.
2476 If you meant to cross compile, use \`--host'.
2477 See \`config.log' for more details." >&2;}
2478 { (exit 1); exit 1; }; }
2482 { $as_echo "$as_me:$LINENO: result: yes" >&5
2483 $as_echo "yes" >&6; }
2485 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2486 ac_clean_files=$ac_clean_files_save
2487 # Check that the compiler produces executables we can run. If not, either
2488 # the compiler is broken, or we cross compile.
2489 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2490 $as_echo_n "checking whether we are cross compiling... " >&6; }
2491 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2492 $as_echo "$cross_compiling" >&6; }
2494 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2495 $as_echo_n "checking for suffix of executables... " >&6; }
2496 if { (ac_try="$ac_link"
2497 case "(($ac_try" in
2498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2499 *) ac_try_echo=$ac_try;;
2500 esac
2501 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2502 $as_echo "$ac_try_echo") >&5
2503 (eval "$ac_link") 2>&5
2504 ac_status=$?
2505 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506 (exit $ac_status); }; then
2507 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2508 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2509 # work properly (i.e., refer to `conftest.exe'), while it won't with
2510 # `rm'.
2511 for ac_file in conftest.exe conftest conftest.*; do
2512 test -f "$ac_file" || continue
2513 case $ac_file in
2514 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2515 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2516 break;;
2517 * ) break;;
2518 esac
2519 done
2520 else
2521 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2522 See \`config.log' for more details." >&5
2523 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2524 See \`config.log' for more details." >&2;}
2525 { (exit 1); exit 1; }; }
2528 rm -f conftest$ac_cv_exeext
2529 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2530 $as_echo "$ac_cv_exeext" >&6; }
2532 rm -f conftest.$ac_ext
2533 EXEEXT=$ac_cv_exeext
2534 ac_exeext=$EXEEXT
2535 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2536 $as_echo_n "checking for suffix of object files... " >&6; }
2537 if test "${ac_cv_objext+set}" = set; then
2538 $as_echo_n "(cached) " >&6
2539 else
2540 cat >conftest.$ac_ext <<_ACEOF
2541 /* confdefs.h. */
2542 _ACEOF
2543 cat confdefs.h >>conftest.$ac_ext
2544 cat >>conftest.$ac_ext <<_ACEOF
2545 /* end confdefs.h. */
2548 main ()
2552 return 0;
2554 _ACEOF
2555 rm -f conftest.o conftest.obj
2556 if { (ac_try="$ac_compile"
2557 case "(($ac_try" in
2558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2559 *) ac_try_echo=$ac_try;;
2560 esac
2561 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2562 $as_echo "$ac_try_echo") >&5
2563 (eval "$ac_compile") 2>&5
2564 ac_status=$?
2565 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2566 (exit $ac_status); }; then
2567 for ac_file in conftest.o conftest.obj conftest.*; do
2568 test -f "$ac_file" || continue;
2569 case $ac_file in
2570 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2571 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2572 break;;
2573 esac
2574 done
2575 else
2576 $as_echo "$as_me: failed program was:" >&5
2577 sed 's/^/| /' conftest.$ac_ext >&5
2579 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2580 See \`config.log' for more details." >&5
2581 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2582 See \`config.log' for more details." >&2;}
2583 { (exit 1); exit 1; }; }
2586 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2588 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2589 $as_echo "$ac_cv_objext" >&6; }
2590 OBJEXT=$ac_cv_objext
2591 ac_objext=$OBJEXT
2592 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2593 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2594 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2595 $as_echo_n "(cached) " >&6
2596 else
2597 cat >conftest.$ac_ext <<_ACEOF
2598 /* confdefs.h. */
2599 _ACEOF
2600 cat confdefs.h >>conftest.$ac_ext
2601 cat >>conftest.$ac_ext <<_ACEOF
2602 /* end confdefs.h. */
2605 main ()
2607 #ifndef __GNUC__
2608 choke me
2609 #endif
2612 return 0;
2614 _ACEOF
2615 rm -f conftest.$ac_objext
2616 if { (ac_try="$ac_compile"
2617 case "(($ac_try" in
2618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2619 *) ac_try_echo=$ac_try;;
2620 esac
2621 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2622 $as_echo "$ac_try_echo") >&5
2623 (eval "$ac_compile") 2>conftest.er1
2624 ac_status=$?
2625 grep -v '^ *+' conftest.er1 >conftest.err
2626 rm -f conftest.er1
2627 cat conftest.err >&5
2628 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629 (exit $ac_status); } && {
2630 test -z "$ac_c_werror_flag" ||
2631 test ! -s conftest.err
2632 } && test -s conftest.$ac_objext; then
2633 ac_compiler_gnu=yes
2634 else
2635 $as_echo "$as_me: failed program was:" >&5
2636 sed 's/^/| /' conftest.$ac_ext >&5
2638 ac_compiler_gnu=no
2641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2642 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2645 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2646 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2647 if test $ac_compiler_gnu = yes; then
2648 GCC=yes
2649 else
2650 GCC=
2652 ac_test_CFLAGS=${CFLAGS+set}
2653 ac_save_CFLAGS=$CFLAGS
2654 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2655 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2656 if test "${ac_cv_prog_cc_g+set}" = set; then
2657 $as_echo_n "(cached) " >&6
2658 else
2659 ac_save_c_werror_flag=$ac_c_werror_flag
2660 ac_c_werror_flag=yes
2661 ac_cv_prog_cc_g=no
2662 CFLAGS="-g"
2663 cat >conftest.$ac_ext <<_ACEOF
2664 /* confdefs.h. */
2665 _ACEOF
2666 cat confdefs.h >>conftest.$ac_ext
2667 cat >>conftest.$ac_ext <<_ACEOF
2668 /* end confdefs.h. */
2671 main ()
2675 return 0;
2677 _ACEOF
2678 rm -f conftest.$ac_objext
2679 if { (ac_try="$ac_compile"
2680 case "(($ac_try" in
2681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2682 *) ac_try_echo=$ac_try;;
2683 esac
2684 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2685 $as_echo "$ac_try_echo") >&5
2686 (eval "$ac_compile") 2>conftest.er1
2687 ac_status=$?
2688 grep -v '^ *+' conftest.er1 >conftest.err
2689 rm -f conftest.er1
2690 cat conftest.err >&5
2691 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2692 (exit $ac_status); } && {
2693 test -z "$ac_c_werror_flag" ||
2694 test ! -s conftest.err
2695 } && test -s conftest.$ac_objext; then
2696 ac_cv_prog_cc_g=yes
2697 else
2698 $as_echo "$as_me: failed program was:" >&5
2699 sed 's/^/| /' conftest.$ac_ext >&5
2701 CFLAGS=""
2702 cat >conftest.$ac_ext <<_ACEOF
2703 /* confdefs.h. */
2704 _ACEOF
2705 cat confdefs.h >>conftest.$ac_ext
2706 cat >>conftest.$ac_ext <<_ACEOF
2707 /* end confdefs.h. */
2710 main ()
2714 return 0;
2716 _ACEOF
2717 rm -f conftest.$ac_objext
2718 if { (ac_try="$ac_compile"
2719 case "(($ac_try" in
2720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2721 *) ac_try_echo=$ac_try;;
2722 esac
2723 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2724 $as_echo "$ac_try_echo") >&5
2725 (eval "$ac_compile") 2>conftest.er1
2726 ac_status=$?
2727 grep -v '^ *+' conftest.er1 >conftest.err
2728 rm -f conftest.er1
2729 cat conftest.err >&5
2730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731 (exit $ac_status); } && {
2732 test -z "$ac_c_werror_flag" ||
2733 test ! -s conftest.err
2734 } && test -s conftest.$ac_objext; then
2736 else
2737 $as_echo "$as_me: failed program was:" >&5
2738 sed 's/^/| /' conftest.$ac_ext >&5
2740 ac_c_werror_flag=$ac_save_c_werror_flag
2741 CFLAGS="-g"
2742 cat >conftest.$ac_ext <<_ACEOF
2743 /* confdefs.h. */
2744 _ACEOF
2745 cat confdefs.h >>conftest.$ac_ext
2746 cat >>conftest.$ac_ext <<_ACEOF
2747 /* end confdefs.h. */
2750 main ()
2754 return 0;
2756 _ACEOF
2757 rm -f conftest.$ac_objext
2758 if { (ac_try="$ac_compile"
2759 case "(($ac_try" in
2760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2761 *) ac_try_echo=$ac_try;;
2762 esac
2763 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2764 $as_echo "$ac_try_echo") >&5
2765 (eval "$ac_compile") 2>conftest.er1
2766 ac_status=$?
2767 grep -v '^ *+' conftest.er1 >conftest.err
2768 rm -f conftest.er1
2769 cat conftest.err >&5
2770 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771 (exit $ac_status); } && {
2772 test -z "$ac_c_werror_flag" ||
2773 test ! -s conftest.err
2774 } && test -s conftest.$ac_objext; then
2775 ac_cv_prog_cc_g=yes
2776 else
2777 $as_echo "$as_me: failed program was:" >&5
2778 sed 's/^/| /' conftest.$ac_ext >&5
2783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2790 ac_c_werror_flag=$ac_save_c_werror_flag
2792 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2793 $as_echo "$ac_cv_prog_cc_g" >&6; }
2794 if test "$ac_test_CFLAGS" = set; then
2795 CFLAGS=$ac_save_CFLAGS
2796 elif test $ac_cv_prog_cc_g = yes; then
2797 if test "$GCC" = yes; then
2798 CFLAGS="-g -O2"
2799 else
2800 CFLAGS="-g"
2802 else
2803 if test "$GCC" = yes; then
2804 CFLAGS="-O2"
2805 else
2806 CFLAGS=
2809 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2810 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2811 if test "${ac_cv_prog_cc_c89+set}" = set; then
2812 $as_echo_n "(cached) " >&6
2813 else
2814 ac_cv_prog_cc_c89=no
2815 ac_save_CC=$CC
2816 cat >conftest.$ac_ext <<_ACEOF
2817 /* confdefs.h. */
2818 _ACEOF
2819 cat confdefs.h >>conftest.$ac_ext
2820 cat >>conftest.$ac_ext <<_ACEOF
2821 /* end confdefs.h. */
2822 #include <stdarg.h>
2823 #include <stdio.h>
2824 #include <sys/types.h>
2825 #include <sys/stat.h>
2826 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2827 struct buf { int x; };
2828 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2829 static char *e (p, i)
2830 char **p;
2831 int i;
2833 return p[i];
2835 static char *f (char * (*g) (char **, int), char **p, ...)
2837 char *s;
2838 va_list v;
2839 va_start (v,p);
2840 s = g (p, va_arg (v,int));
2841 va_end (v);
2842 return s;
2845 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2846 function prototypes and stuff, but not '\xHH' hex character constants.
2847 These don't provoke an error unfortunately, instead are silently treated
2848 as 'x'. The following induces an error, until -std is added to get
2849 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2850 array size at least. It's necessary to write '\x00'==0 to get something
2851 that's true only with -std. */
2852 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2854 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2855 inside strings and character constants. */
2856 #define FOO(x) 'x'
2857 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2859 int test (int i, double x);
2860 struct s1 {int (*f) (int a);};
2861 struct s2 {int (*f) (double a);};
2862 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2863 int argc;
2864 char **argv;
2866 main ()
2868 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2870 return 0;
2872 _ACEOF
2873 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2874 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2876 CC="$ac_save_CC $ac_arg"
2877 rm -f conftest.$ac_objext
2878 if { (ac_try="$ac_compile"
2879 case "(($ac_try" in
2880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2881 *) ac_try_echo=$ac_try;;
2882 esac
2883 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2884 $as_echo "$ac_try_echo") >&5
2885 (eval "$ac_compile") 2>conftest.er1
2886 ac_status=$?
2887 grep -v '^ *+' conftest.er1 >conftest.err
2888 rm -f conftest.er1
2889 cat conftest.err >&5
2890 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891 (exit $ac_status); } && {
2892 test -z "$ac_c_werror_flag" ||
2893 test ! -s conftest.err
2894 } && test -s conftest.$ac_objext; then
2895 ac_cv_prog_cc_c89=$ac_arg
2896 else
2897 $as_echo "$as_me: failed program was:" >&5
2898 sed 's/^/| /' conftest.$ac_ext >&5
2903 rm -f core conftest.err conftest.$ac_objext
2904 test "x$ac_cv_prog_cc_c89" != "xno" && break
2905 done
2906 rm -f conftest.$ac_ext
2907 CC=$ac_save_CC
2910 # AC_CACHE_VAL
2911 case "x$ac_cv_prog_cc_c89" in
2913 { $as_echo "$as_me:$LINENO: result: none needed" >&5
2914 $as_echo "none needed" >&6; } ;;
2915 xno)
2916 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
2917 $as_echo "unsupported" >&6; } ;;
2919 CC="$CC $ac_cv_prog_cc_c89"
2920 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2921 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2922 esac
2925 ac_ext=c
2926 ac_cpp='$CPP $CPPFLAGS'
2927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2930 ac_ext=c
2931 ac_cpp='$CPP $CPPFLAGS'
2932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2935 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2936 $as_echo_n "checking how to run the C preprocessor... " >&6; }
2937 # On Suns, sometimes $CPP names a directory.
2938 if test -n "$CPP" && test -d "$CPP"; then
2939 CPP=
2941 if test -z "$CPP"; then
2942 if test "${ac_cv_prog_CPP+set}" = set; then
2943 $as_echo_n "(cached) " >&6
2944 else
2945 # Double quotes because CPP needs to be expanded
2946 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2948 ac_preproc_ok=false
2949 for ac_c_preproc_warn_flag in '' yes
2951 # Use a header file that comes with gcc, so configuring glibc
2952 # with a fresh cross-compiler works.
2953 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2954 # <limits.h> exists even on freestanding compilers.
2955 # On the NeXT, cc -E runs the code through the compiler's parser,
2956 # not just through cpp. "Syntax error" is here to catch this case.
2957 cat >conftest.$ac_ext <<_ACEOF
2958 /* confdefs.h. */
2959 _ACEOF
2960 cat confdefs.h >>conftest.$ac_ext
2961 cat >>conftest.$ac_ext <<_ACEOF
2962 /* end confdefs.h. */
2963 #ifdef __STDC__
2964 # include <limits.h>
2965 #else
2966 # include <assert.h>
2967 #endif
2968 Syntax error
2969 _ACEOF
2970 if { (ac_try="$ac_cpp conftest.$ac_ext"
2971 case "(($ac_try" in
2972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2973 *) ac_try_echo=$ac_try;;
2974 esac
2975 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2976 $as_echo "$ac_try_echo") >&5
2977 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2978 ac_status=$?
2979 grep -v '^ *+' conftest.er1 >conftest.err
2980 rm -f conftest.er1
2981 cat conftest.err >&5
2982 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983 (exit $ac_status); } >/dev/null && {
2984 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2985 test ! -s conftest.err
2986 }; then
2988 else
2989 $as_echo "$as_me: failed program was:" >&5
2990 sed 's/^/| /' conftest.$ac_ext >&5
2992 # Broken: fails on valid input.
2993 continue
2996 rm -f conftest.err conftest.$ac_ext
2998 # OK, works on sane cases. Now check whether nonexistent headers
2999 # can be detected and how.
3000 cat >conftest.$ac_ext <<_ACEOF
3001 /* confdefs.h. */
3002 _ACEOF
3003 cat confdefs.h >>conftest.$ac_ext
3004 cat >>conftest.$ac_ext <<_ACEOF
3005 /* end confdefs.h. */
3006 #include <ac_nonexistent.h>
3007 _ACEOF
3008 if { (ac_try="$ac_cpp conftest.$ac_ext"
3009 case "(($ac_try" in
3010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3011 *) ac_try_echo=$ac_try;;
3012 esac
3013 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3014 $as_echo "$ac_try_echo") >&5
3015 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3016 ac_status=$?
3017 grep -v '^ *+' conftest.er1 >conftest.err
3018 rm -f conftest.er1
3019 cat conftest.err >&5
3020 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3021 (exit $ac_status); } >/dev/null && {
3022 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3023 test ! -s conftest.err
3024 }; then
3025 # Broken: success on invalid input.
3026 continue
3027 else
3028 $as_echo "$as_me: failed program was:" >&5
3029 sed 's/^/| /' conftest.$ac_ext >&5
3031 # Passes both tests.
3032 ac_preproc_ok=:
3033 break
3036 rm -f conftest.err conftest.$ac_ext
3038 done
3039 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3040 rm -f conftest.err conftest.$ac_ext
3041 if $ac_preproc_ok; then
3042 break
3045 done
3046 ac_cv_prog_CPP=$CPP
3049 CPP=$ac_cv_prog_CPP
3050 else
3051 ac_cv_prog_CPP=$CPP
3053 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3054 $as_echo "$CPP" >&6; }
3055 ac_preproc_ok=false
3056 for ac_c_preproc_warn_flag in '' yes
3058 # Use a header file that comes with gcc, so configuring glibc
3059 # with a fresh cross-compiler works.
3060 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3061 # <limits.h> exists even on freestanding compilers.
3062 # On the NeXT, cc -E runs the code through the compiler's parser,
3063 # not just through cpp. "Syntax error" is here to catch this case.
3064 cat >conftest.$ac_ext <<_ACEOF
3065 /* confdefs.h. */
3066 _ACEOF
3067 cat confdefs.h >>conftest.$ac_ext
3068 cat >>conftest.$ac_ext <<_ACEOF
3069 /* end confdefs.h. */
3070 #ifdef __STDC__
3071 # include <limits.h>
3072 #else
3073 # include <assert.h>
3074 #endif
3075 Syntax error
3076 _ACEOF
3077 if { (ac_try="$ac_cpp conftest.$ac_ext"
3078 case "(($ac_try" in
3079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3080 *) ac_try_echo=$ac_try;;
3081 esac
3082 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3083 $as_echo "$ac_try_echo") >&5
3084 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3085 ac_status=$?
3086 grep -v '^ *+' conftest.er1 >conftest.err
3087 rm -f conftest.er1
3088 cat conftest.err >&5
3089 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090 (exit $ac_status); } >/dev/null && {
3091 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3092 test ! -s conftest.err
3093 }; then
3095 else
3096 $as_echo "$as_me: failed program was:" >&5
3097 sed 's/^/| /' conftest.$ac_ext >&5
3099 # Broken: fails on valid input.
3100 continue
3103 rm -f conftest.err conftest.$ac_ext
3105 # OK, works on sane cases. Now check whether nonexistent headers
3106 # can be detected and how.
3107 cat >conftest.$ac_ext <<_ACEOF
3108 /* confdefs.h. */
3109 _ACEOF
3110 cat confdefs.h >>conftest.$ac_ext
3111 cat >>conftest.$ac_ext <<_ACEOF
3112 /* end confdefs.h. */
3113 #include <ac_nonexistent.h>
3114 _ACEOF
3115 if { (ac_try="$ac_cpp conftest.$ac_ext"
3116 case "(($ac_try" in
3117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3118 *) ac_try_echo=$ac_try;;
3119 esac
3120 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3121 $as_echo "$ac_try_echo") >&5
3122 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3123 ac_status=$?
3124 grep -v '^ *+' conftest.er1 >conftest.err
3125 rm -f conftest.er1
3126 cat conftest.err >&5
3127 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3128 (exit $ac_status); } >/dev/null && {
3129 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3130 test ! -s conftest.err
3131 }; then
3132 # Broken: success on invalid input.
3133 continue
3134 else
3135 $as_echo "$as_me: failed program was:" >&5
3136 sed 's/^/| /' conftest.$ac_ext >&5
3138 # Passes both tests.
3139 ac_preproc_ok=:
3140 break
3143 rm -f conftest.err conftest.$ac_ext
3145 done
3146 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3147 rm -f conftest.err conftest.$ac_ext
3148 if $ac_preproc_ok; then
3150 else
3151 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3152 See \`config.log' for more details." >&5
3153 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3154 See \`config.log' for more details." >&2;}
3155 { (exit 1); exit 1; }; }
3158 ac_ext=c
3159 ac_cpp='$CPP $CPPFLAGS'
3160 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3161 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3162 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3165 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3166 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3167 if test "${ac_cv_path_GREP+set}" = set; then
3168 $as_echo_n "(cached) " >&6
3169 else
3170 if test -z "$GREP"; then
3171 ac_path_GREP_found=false
3172 # Loop through the user's path and test for each of PROGNAME-LIST
3173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3174 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3176 IFS=$as_save_IFS
3177 test -z "$as_dir" && as_dir=.
3178 for ac_prog in grep ggrep; do
3179 for ac_exec_ext in '' $ac_executable_extensions; do
3180 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3181 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3182 # Check for GNU ac_path_GREP and select it if it is found.
3183 # Check for GNU $ac_path_GREP
3184 case `"$ac_path_GREP" --version 2>&1` in
3185 *GNU*)
3186 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3188 ac_count=0
3189 $as_echo_n 0123456789 >"conftest.in"
3190 while :
3192 cat "conftest.in" "conftest.in" >"conftest.tmp"
3193 mv "conftest.tmp" "conftest.in"
3194 cp "conftest.in" "conftest.nl"
3195 $as_echo 'GREP' >> "conftest.nl"
3196 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3197 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3198 ac_count=`expr $ac_count + 1`
3199 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3200 # Best one so far, save it but keep looking for a better one
3201 ac_cv_path_GREP="$ac_path_GREP"
3202 ac_path_GREP_max=$ac_count
3204 # 10*(2^10) chars as input seems more than enough
3205 test $ac_count -gt 10 && break
3206 done
3207 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3208 esac
3210 $ac_path_GREP_found && break 3
3211 done
3212 done
3213 done
3214 IFS=$as_save_IFS
3215 if test -z "$ac_cv_path_GREP"; then
3216 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3217 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3218 { (exit 1); exit 1; }; }
3220 else
3221 ac_cv_path_GREP=$GREP
3225 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3226 $as_echo "$ac_cv_path_GREP" >&6; }
3227 GREP="$ac_cv_path_GREP"
3230 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3231 $as_echo_n "checking for egrep... " >&6; }
3232 if test "${ac_cv_path_EGREP+set}" = set; then
3233 $as_echo_n "(cached) " >&6
3234 else
3235 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3236 then ac_cv_path_EGREP="$GREP -E"
3237 else
3238 if test -z "$EGREP"; then
3239 ac_path_EGREP_found=false
3240 # Loop through the user's path and test for each of PROGNAME-LIST
3241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3242 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3244 IFS=$as_save_IFS
3245 test -z "$as_dir" && as_dir=.
3246 for ac_prog in egrep; do
3247 for ac_exec_ext in '' $ac_executable_extensions; do
3248 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3249 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3250 # Check for GNU ac_path_EGREP and select it if it is found.
3251 # Check for GNU $ac_path_EGREP
3252 case `"$ac_path_EGREP" --version 2>&1` in
3253 *GNU*)
3254 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3256 ac_count=0
3257 $as_echo_n 0123456789 >"conftest.in"
3258 while :
3260 cat "conftest.in" "conftest.in" >"conftest.tmp"
3261 mv "conftest.tmp" "conftest.in"
3262 cp "conftest.in" "conftest.nl"
3263 $as_echo 'EGREP' >> "conftest.nl"
3264 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3265 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3266 ac_count=`expr $ac_count + 1`
3267 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3268 # Best one so far, save it but keep looking for a better one
3269 ac_cv_path_EGREP="$ac_path_EGREP"
3270 ac_path_EGREP_max=$ac_count
3272 # 10*(2^10) chars as input seems more than enough
3273 test $ac_count -gt 10 && break
3274 done
3275 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3276 esac
3278 $ac_path_EGREP_found && break 3
3279 done
3280 done
3281 done
3282 IFS=$as_save_IFS
3283 if test -z "$ac_cv_path_EGREP"; then
3284 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3285 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3286 { (exit 1); exit 1; }; }
3288 else
3289 ac_cv_path_EGREP=$EGREP
3294 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3295 $as_echo "$ac_cv_path_EGREP" >&6; }
3296 EGREP="$ac_cv_path_EGREP"
3299 cat >conftest.$ac_ext <<_ACEOF
3300 /* confdefs.h. */
3301 _ACEOF
3302 cat confdefs.h >>conftest.$ac_ext
3303 cat >>conftest.$ac_ext <<_ACEOF
3304 /* end confdefs.h. */
3306 _ACEOF
3307 rm -f conftest*
3308 { $as_echo "$as_me:$LINENO: checking for library containing strerror" >&5
3309 $as_echo_n "checking for library containing strerror... " >&6; }
3310 if test "${ac_cv_search_strerror+set}" = set; then
3311 $as_echo_n "(cached) " >&6
3312 else
3313 ac_func_search_save_LIBS=$LIBS
3314 cat >conftest.$ac_ext <<_ACEOF
3315 /* confdefs.h. */
3316 _ACEOF
3317 cat confdefs.h >>conftest.$ac_ext
3318 cat >>conftest.$ac_ext <<_ACEOF
3319 /* end confdefs.h. */
3321 /* Override any GCC internal prototype to avoid an error.
3322 Use char because int might match the return type of a GCC
3323 builtin and then its argument prototype would still apply. */
3324 #ifdef __cplusplus
3325 extern "C"
3326 #endif
3327 char strerror ();
3329 main ()
3331 return strerror ();
3333 return 0;
3335 _ACEOF
3336 for ac_lib in '' cposix; do
3337 if test -z "$ac_lib"; then
3338 ac_res="none required"
3339 else
3340 ac_res=-l$ac_lib
3341 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3343 rm -f conftest.$ac_objext conftest$ac_exeext
3344 if { (ac_try="$ac_link"
3345 case "(($ac_try" in
3346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3347 *) ac_try_echo=$ac_try;;
3348 esac
3349 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3350 $as_echo "$ac_try_echo") >&5
3351 (eval "$ac_link") 2>conftest.er1
3352 ac_status=$?
3353 grep -v '^ *+' conftest.er1 >conftest.err
3354 rm -f conftest.er1
3355 cat conftest.err >&5
3356 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357 (exit $ac_status); } && {
3358 test -z "$ac_c_werror_flag" ||
3359 test ! -s conftest.err
3360 } && test -s conftest$ac_exeext && {
3361 test "$cross_compiling" = yes ||
3362 $as_test_x conftest$ac_exeext
3363 }; then
3364 ac_cv_search_strerror=$ac_res
3365 else
3366 $as_echo "$as_me: failed program was:" >&5
3367 sed 's/^/| /' conftest.$ac_ext >&5
3372 rm -rf conftest.dSYM
3373 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3374 conftest$ac_exeext
3375 if test "${ac_cv_search_strerror+set}" = set; then
3376 break
3378 done
3379 if test "${ac_cv_search_strerror+set}" = set; then
3381 else
3382 ac_cv_search_strerror=no
3384 rm conftest.$ac_ext
3385 LIBS=$ac_func_search_save_LIBS
3387 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3388 $as_echo "$ac_cv_search_strerror" >&6; }
3389 ac_res=$ac_cv_search_strerror
3390 if test "$ac_res" != no; then
3391 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3394 for ac_prog in gawk mawk nawk awk
3396 # Extract the first word of "$ac_prog", so it can be a program name with args.
3397 set dummy $ac_prog; ac_word=$2
3398 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3399 $as_echo_n "checking for $ac_word... " >&6; }
3400 if test "${ac_cv_prog_AWK+set}" = set; then
3401 $as_echo_n "(cached) " >&6
3402 else
3403 if test -n "$AWK"; then
3404 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3405 else
3406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3407 for as_dir in $PATH
3409 IFS=$as_save_IFS
3410 test -z "$as_dir" && as_dir=.
3411 for ac_exec_ext in '' $ac_executable_extensions; do
3412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3413 ac_cv_prog_AWK="$ac_prog"
3414 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3415 break 2
3417 done
3418 done
3419 IFS=$as_save_IFS
3423 AWK=$ac_cv_prog_AWK
3424 if test -n "$AWK"; then
3425 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
3426 $as_echo "$AWK" >&6; }
3427 else
3428 { $as_echo "$as_me:$LINENO: result: no" >&5
3429 $as_echo "no" >&6; }
3433 test -n "$AWK" && break
3434 done
3436 # Extract the first word of "strip", so it can be a program name with args.
3437 set dummy strip; ac_word=$2
3438 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3439 $as_echo_n "checking for $ac_word... " >&6; }
3440 if test "${ac_cv_prog_STRIP+set}" = set; then
3441 $as_echo_n "(cached) " >&6
3442 else
3443 if test -n "$STRIP"; then
3444 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3445 else
3446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3447 for as_dir in $PATH
3449 IFS=$as_save_IFS
3450 test -z "$as_dir" && as_dir=.
3451 for ac_exec_ext in '' $ac_executable_extensions; do
3452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3453 ac_cv_prog_STRIP="strip"
3454 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3455 break 2
3457 done
3458 done
3459 IFS=$as_save_IFS
3461 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
3464 STRIP=$ac_cv_prog_STRIP
3465 if test -n "$STRIP"; then
3466 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
3467 $as_echo "$STRIP" >&6; }
3468 else
3469 { $as_echo "$as_me:$LINENO: result: no" >&5
3470 $as_echo "no" >&6; }
3477 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3478 $as_echo_n "checking for ANSI C header files... " >&6; }
3479 if test "${ac_cv_header_stdc+set}" = set; then
3480 $as_echo_n "(cached) " >&6
3481 else
3482 cat >conftest.$ac_ext <<_ACEOF
3483 /* confdefs.h. */
3484 _ACEOF
3485 cat confdefs.h >>conftest.$ac_ext
3486 cat >>conftest.$ac_ext <<_ACEOF
3487 /* end confdefs.h. */
3488 #include <stdlib.h>
3489 #include <stdarg.h>
3490 #include <string.h>
3491 #include <float.h>
3494 main ()
3498 return 0;
3500 _ACEOF
3501 rm -f conftest.$ac_objext
3502 if { (ac_try="$ac_compile"
3503 case "(($ac_try" in
3504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3505 *) ac_try_echo=$ac_try;;
3506 esac
3507 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3508 $as_echo "$ac_try_echo") >&5
3509 (eval "$ac_compile") 2>conftest.er1
3510 ac_status=$?
3511 grep -v '^ *+' conftest.er1 >conftest.err
3512 rm -f conftest.er1
3513 cat conftest.err >&5
3514 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3515 (exit $ac_status); } && {
3516 test -z "$ac_c_werror_flag" ||
3517 test ! -s conftest.err
3518 } && test -s conftest.$ac_objext; then
3519 ac_cv_header_stdc=yes
3520 else
3521 $as_echo "$as_me: failed program was:" >&5
3522 sed 's/^/| /' conftest.$ac_ext >&5
3524 ac_cv_header_stdc=no
3527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3529 if test $ac_cv_header_stdc = yes; then
3530 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3531 cat >conftest.$ac_ext <<_ACEOF
3532 /* confdefs.h. */
3533 _ACEOF
3534 cat confdefs.h >>conftest.$ac_ext
3535 cat >>conftest.$ac_ext <<_ACEOF
3536 /* end confdefs.h. */
3537 #include <string.h>
3539 _ACEOF
3540 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3541 $EGREP "memchr" >/dev/null 2>&1; then
3543 else
3544 ac_cv_header_stdc=no
3546 rm -f conftest*
3550 if test $ac_cv_header_stdc = yes; then
3551 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3552 cat >conftest.$ac_ext <<_ACEOF
3553 /* confdefs.h. */
3554 _ACEOF
3555 cat confdefs.h >>conftest.$ac_ext
3556 cat >>conftest.$ac_ext <<_ACEOF
3557 /* end confdefs.h. */
3558 #include <stdlib.h>
3560 _ACEOF
3561 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3562 $EGREP "free" >/dev/null 2>&1; then
3564 else
3565 ac_cv_header_stdc=no
3567 rm -f conftest*
3571 if test $ac_cv_header_stdc = yes; then
3572 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3573 if test "$cross_compiling" = yes; then
3575 else
3576 cat >conftest.$ac_ext <<_ACEOF
3577 /* confdefs.h. */
3578 _ACEOF
3579 cat confdefs.h >>conftest.$ac_ext
3580 cat >>conftest.$ac_ext <<_ACEOF
3581 /* end confdefs.h. */
3582 #include <ctype.h>
3583 #include <stdlib.h>
3584 #if ((' ' & 0x0FF) == 0x020)
3585 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3586 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3587 #else
3588 # define ISLOWER(c) \
3589 (('a' <= (c) && (c) <= 'i') \
3590 || ('j' <= (c) && (c) <= 'r') \
3591 || ('s' <= (c) && (c) <= 'z'))
3592 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3593 #endif
3595 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3597 main ()
3599 int i;
3600 for (i = 0; i < 256; i++)
3601 if (XOR (islower (i), ISLOWER (i))
3602 || toupper (i) != TOUPPER (i))
3603 return 2;
3604 return 0;
3606 _ACEOF
3607 rm -f conftest$ac_exeext
3608 if { (ac_try="$ac_link"
3609 case "(($ac_try" in
3610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3611 *) ac_try_echo=$ac_try;;
3612 esac
3613 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3614 $as_echo "$ac_try_echo") >&5
3615 (eval "$ac_link") 2>&5
3616 ac_status=$?
3617 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3618 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
3626 ac_status=$?
3627 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3628 (exit $ac_status); }; }; then
3630 else
3631 $as_echo "$as_me: program exited with status $ac_status" >&5
3632 $as_echo "$as_me: failed program was:" >&5
3633 sed 's/^/| /' conftest.$ac_ext >&5
3635 ( exit $ac_status )
3636 ac_cv_header_stdc=no
3638 rm -rf conftest.dSYM
3639 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3645 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3646 $as_echo "$ac_cv_header_stdc" >&6; }
3647 if test $ac_cv_header_stdc = yes; then
3649 cat >>confdefs.h <<\_ACEOF
3650 #define STDC_HEADERS 1
3651 _ACEOF
3655 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
3656 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
3657 if test "${ac_cv_header_sys_wait_h+set}" = set; then
3658 $as_echo_n "(cached) " >&6
3659 else
3660 cat >conftest.$ac_ext <<_ACEOF
3661 /* confdefs.h. */
3662 _ACEOF
3663 cat confdefs.h >>conftest.$ac_ext
3664 cat >>conftest.$ac_ext <<_ACEOF
3665 /* end confdefs.h. */
3666 #include <sys/types.h>
3667 #include <sys/wait.h>
3668 #ifndef WEXITSTATUS
3669 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
3670 #endif
3671 #ifndef WIFEXITED
3672 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3673 #endif
3676 main ()
3678 int s;
3679 wait (&s);
3680 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3682 return 0;
3684 _ACEOF
3685 rm -f conftest.$ac_objext
3686 if { (ac_try="$ac_compile"
3687 case "(($ac_try" in
3688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3689 *) ac_try_echo=$ac_try;;
3690 esac
3691 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3692 $as_echo "$ac_try_echo") >&5
3693 (eval "$ac_compile") 2>conftest.er1
3694 ac_status=$?
3695 grep -v '^ *+' conftest.er1 >conftest.err
3696 rm -f conftest.er1
3697 cat conftest.err >&5
3698 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3699 (exit $ac_status); } && {
3700 test -z "$ac_c_werror_flag" ||
3701 test ! -s conftest.err
3702 } && test -s conftest.$ac_objext; then
3703 ac_cv_header_sys_wait_h=yes
3704 else
3705 $as_echo "$as_me: failed program was:" >&5
3706 sed 's/^/| /' conftest.$ac_ext >&5
3708 ac_cv_header_sys_wait_h=no
3711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3713 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
3714 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
3715 if test $ac_cv_header_sys_wait_h = yes; then
3717 cat >>confdefs.h <<\_ACEOF
3718 #define HAVE_SYS_WAIT_H 1
3719 _ACEOF
3724 if test -z "$CFLAGS"; then
3725 CFLAGS="-O"
3726 test "$GCC" = yes && CFLAGS="-O2 -fno-strength-reduce -Wall"
3728 if test "$GCC" = yes; then
3729 gccversion=`"$CC" -dumpversion`
3730 if test "x$gccversion" = "x"; then
3731 gccversion=`"$CC" --version | sed -e '2,$d' -e 's/darwin.//' -e 's/^[^0-9]*\([0-9]\.[0-9.]*\).*$/\1/g'`
3733 if test "$gccversion" = "3.0.1" -o "$gccversion" = "3.0.2" -o "$gccversion" = "4.0.1"; then
3734 echo 'GCC [34].0.[12] has a bug in the optimizer, disabling "-O#"'
3735 CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-O/'`
3736 else
3737 if test "$gccversion" = "3.1" -o "$gccversion" = "3.2" -o "$gccversion" = "3.2.1" && `echo "$CFLAGS" | grep -v fno-strength-reduce >/dev/null`; then
3738 echo 'GCC 3.1 and 3.2 have a bug in the optimizer, adding "-fno-strength-reduce"'
3739 CFLAGS="$CFLAGS -fno-strength-reduce"
3744 if test "$cross_compiling" = yes; then
3745 { $as_echo "$as_me:$LINENO: result: cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&5
3746 $as_echo "cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&6; }
3749 test "$GCC" = yes && CPP_MM=M;
3751 if test -f ./toolcheck; then
3752 { $as_echo "$as_me:$LINENO: checking for buggy tools..." >&5
3753 $as_echo "$as_me: checking for buggy tools..." >&6;}
3754 sh ./toolcheck 1>&6
3757 OS_EXTRA_SRC=""; OS_EXTRA_OBJ=""
3759 { $as_echo "$as_me:$LINENO: checking for BeOS" >&5
3760 $as_echo_n "checking for BeOS... " >&6; }
3761 case `uname` in
3762 BeOS) OS_EXTRA_SRC=os_beos.c; OS_EXTRA_OBJ=objects/os_beos.o
3763 BEOS=yes; { $as_echo "$as_me:$LINENO: result: yes" >&5
3764 $as_echo "yes" >&6; };;
3765 *) BEOS=no; { $as_echo "$as_me:$LINENO: result: no" >&5
3766 $as_echo "no" >&6; };;
3767 esac
3769 { $as_echo "$as_me:$LINENO: checking for QNX" >&5
3770 $as_echo_n "checking for QNX... " >&6; }
3771 case `uname` in
3772 QNX) OS_EXTRA_SRC=os_qnx.c; OS_EXTRA_OBJ=objects/os_qnx.o
3773 test -z "$with_x" && with_x=no
3774 QNX=yes; { $as_echo "$as_me:$LINENO: result: yes" >&5
3775 $as_echo "yes" >&6; };;
3776 *) QNX=no; { $as_echo "$as_me:$LINENO: result: no" >&5
3777 $as_echo "no" >&6; };;
3778 esac
3780 { $as_echo "$as_me:$LINENO: checking for Darwin (Mac OS X)" >&5
3781 $as_echo_n "checking for Darwin (Mac OS X)... " >&6; }
3782 if test "`(uname) 2>/dev/null`" = Darwin; then
3783 { $as_echo "$as_me:$LINENO: result: yes" >&5
3784 $as_echo "yes" >&6; }
3786 { $as_echo "$as_me:$LINENO: checking --disable-darwin argument" >&5
3787 $as_echo_n "checking --disable-darwin argument... " >&6; }
3788 # Check whether --enable-darwin was given.
3789 if test "${enable_darwin+set}" = set; then
3790 enableval=$enable_darwin;
3791 else
3792 enable_darwin="yes"
3795 if test "$enable_darwin" = "yes"; then
3796 { $as_echo "$as_me:$LINENO: result: no" >&5
3797 $as_echo "no" >&6; }
3798 { $as_echo "$as_me:$LINENO: checking if Darwin files are there" >&5
3799 $as_echo_n "checking if Darwin files are there... " >&6; }
3800 if test -f os_macosx.c; then
3801 { $as_echo "$as_me:$LINENO: result: yes" >&5
3802 $as_echo "yes" >&6; }
3803 else
3804 { $as_echo "$as_me:$LINENO: result: no, Darwin support disabled" >&5
3805 $as_echo "no, Darwin support disabled" >&6; }
3806 enable_darwin=no
3808 else
3809 { $as_echo "$as_me:$LINENO: result: yes, Darwin support excluded" >&5
3810 $as_echo "yes, Darwin support excluded" >&6; }
3813 { $as_echo "$as_me:$LINENO: checking --with-mac-arch argument" >&5
3814 $as_echo_n "checking --with-mac-arch argument... " >&6; }
3816 # Check whether --with-mac-arch was given.
3817 if test "${with_mac_arch+set}" = set; then
3818 withval=$with_mac_arch; MACARCH="$withval"; { $as_echo "$as_me:$LINENO: result: $MACARCH" >&5
3819 $as_echo "$MACARCH" >&6; }
3820 else
3821 MACARCH="current"; { $as_echo "$as_me:$LINENO: result: defaulting to $MACARCH" >&5
3822 $as_echo "defaulting to $MACARCH" >&6; }
3826 if test "x$MACARCH" = "xboth"; then
3827 { $as_echo "$as_me:$LINENO: checking for 10.4 universal SDK" >&5
3828 $as_echo_n "checking for 10.4 universal SDK... " >&6; }
3829 save_cppflags="$CPPFLAGS"
3830 save_cflags="$CFLAGS"
3831 save_ldflags="$LDFLAGS"
3832 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc"
3833 cat >conftest.$ac_ext <<_ACEOF
3834 /* confdefs.h. */
3835 _ACEOF
3836 cat confdefs.h >>conftest.$ac_ext
3837 cat >>conftest.$ac_ext <<_ACEOF
3838 /* end confdefs.h. */
3841 main ()
3845 return 0;
3847 _ACEOF
3848 rm -f conftest.$ac_objext conftest$ac_exeext
3849 if { (ac_try="$ac_link"
3850 case "(($ac_try" in
3851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3852 *) ac_try_echo=$ac_try;;
3853 esac
3854 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3855 $as_echo "$ac_try_echo") >&5
3856 (eval "$ac_link") 2>conftest.er1
3857 ac_status=$?
3858 grep -v '^ *+' conftest.er1 >conftest.err
3859 rm -f conftest.er1
3860 cat conftest.err >&5
3861 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3862 (exit $ac_status); } && {
3863 test -z "$ac_c_werror_flag" ||
3864 test ! -s conftest.err
3865 } && test -s conftest$ac_exeext && {
3866 test "$cross_compiling" = yes ||
3867 $as_test_x conftest$ac_exeext
3868 }; then
3869 { $as_echo "$as_me:$LINENO: result: found" >&5
3870 $as_echo "found" >&6; }
3871 else
3872 $as_echo "$as_me: failed program was:" >&5
3873 sed 's/^/| /' conftest.$ac_ext >&5
3875 { $as_echo "$as_me:$LINENO: result: not found" >&5
3876 $as_echo "not found" >&6; }
3877 CFLAGS="$save_cflags"
3878 { $as_echo "$as_me:$LINENO: checking if Intel architecture is supported" >&5
3879 $as_echo_n "checking if Intel architecture is supported... " >&6; }
3880 CPPFLAGS="$CPPFLAGS -arch i386"
3881 LDFLAGS="$save_ldflags -arch i386"
3882 cat >conftest.$ac_ext <<_ACEOF
3883 /* confdefs.h. */
3884 _ACEOF
3885 cat confdefs.h >>conftest.$ac_ext
3886 cat >>conftest.$ac_ext <<_ACEOF
3887 /* end confdefs.h. */
3890 main ()
3894 return 0;
3896 _ACEOF
3897 rm -f conftest.$ac_objext conftest$ac_exeext
3898 if { (ac_try="$ac_link"
3899 case "(($ac_try" in
3900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3901 *) ac_try_echo=$ac_try;;
3902 esac
3903 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3904 $as_echo "$ac_try_echo") >&5
3905 (eval "$ac_link") 2>conftest.er1
3906 ac_status=$?
3907 grep -v '^ *+' conftest.er1 >conftest.err
3908 rm -f conftest.er1
3909 cat conftest.err >&5
3910 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3911 (exit $ac_status); } && {
3912 test -z "$ac_c_werror_flag" ||
3913 test ! -s conftest.err
3914 } && test -s conftest$ac_exeext && {
3915 test "$cross_compiling" = yes ||
3916 $as_test_x conftest$ac_exeext
3917 }; then
3918 { $as_echo "$as_me:$LINENO: result: yes" >&5
3919 $as_echo "yes" >&6; }; MACARCH="intel"
3920 else
3921 $as_echo "$as_me: failed program was:" >&5
3922 sed 's/^/| /' conftest.$ac_ext >&5
3924 { $as_echo "$as_me:$LINENO: result: no" >&5
3925 $as_echo "no" >&6; }
3926 MACARCH="ppc"
3927 CPPFLAGS="$save_cppflags -arch ppc"
3928 LDFLAGS="$save_ldflags -arch ppc"
3931 rm -rf conftest.dSYM
3932 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3933 conftest$ac_exeext conftest.$ac_ext
3936 rm -rf conftest.dSYM
3937 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3938 conftest$ac_exeext conftest.$ac_ext
3939 elif test "x$MACARCH" = "xintel"; then
3940 CPPFLAGS="$CPPFLAGS -arch intel"
3941 LDFLAGS="$LDFLAGS -arch intel"
3942 elif test "x$MACARCH" = "xppc"; then
3943 CPPFLAGS="$CPPFLAGS -arch ppc"
3944 LDFLAGS="$LDFLAGS -arch ppc"
3947 if test "$enable_darwin" = "yes"; then
3948 MACOSX=yes
3949 OS_EXTRA_SCR="os_macosx.c os_mac_conv.c";
3950 OS_EXTRA_OBJ="objects/os_macosx.o objects/os_mac_conv.o"
3951 CPPFLAGS="$CPPFLAGS -DMACOS_X_UNIX -no-cpp-precomp"
3952 if test "x$MACARCH" = "xboth"; then
3953 CPPFLAGS="$CPPFLAGS -I/Developer/SDKs/MacOSX10.4u.sdk/Developer/Headers/FlatCarbon"
3954 else
3955 CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon"
3958 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3968 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3969 inttypes.h stdint.h unistd.h
3971 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3972 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
3973 $as_echo_n "checking for $ac_header... " >&6; }
3974 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3975 $as_echo_n "(cached) " >&6
3976 else
3977 cat >conftest.$ac_ext <<_ACEOF
3978 /* confdefs.h. */
3979 _ACEOF
3980 cat confdefs.h >>conftest.$ac_ext
3981 cat >>conftest.$ac_ext <<_ACEOF
3982 /* end confdefs.h. */
3983 $ac_includes_default
3985 #include <$ac_header>
3986 _ACEOF
3987 rm -f conftest.$ac_objext
3988 if { (ac_try="$ac_compile"
3989 case "(($ac_try" in
3990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3991 *) ac_try_echo=$ac_try;;
3992 esac
3993 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3994 $as_echo "$ac_try_echo") >&5
3995 (eval "$ac_compile") 2>conftest.er1
3996 ac_status=$?
3997 grep -v '^ *+' conftest.er1 >conftest.err
3998 rm -f conftest.er1
3999 cat conftest.err >&5
4000 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4001 (exit $ac_status); } && {
4002 test -z "$ac_c_werror_flag" ||
4003 test ! -s conftest.err
4004 } && test -s conftest.$ac_objext; then
4005 eval "$as_ac_Header=yes"
4006 else
4007 $as_echo "$as_me: failed program was:" >&5
4008 sed 's/^/| /' conftest.$ac_ext >&5
4010 eval "$as_ac_Header=no"
4013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4015 ac_res=`eval 'as_val=${'$as_ac_Header'}
4016 $as_echo "$as_val"'`
4017 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4018 $as_echo "$ac_res" >&6; }
4019 if test `eval 'as_val=${'$as_ac_Header'}
4020 $as_echo "$as_val"'` = yes; then
4021 cat >>confdefs.h <<_ACEOF
4022 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4023 _ACEOF
4027 done
4030 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
4031 { $as_echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
4032 $as_echo_n "checking for Carbon/Carbon.h... " >&6; }
4033 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
4034 $as_echo_n "(cached) " >&6
4036 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
4037 $as_echo "$ac_cv_header_Carbon_Carbon_h" >&6; }
4038 else
4039 # Is the header compilable?
4040 { $as_echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
4041 $as_echo_n "checking Carbon/Carbon.h usability... " >&6; }
4042 cat >conftest.$ac_ext <<_ACEOF
4043 /* confdefs.h. */
4044 _ACEOF
4045 cat confdefs.h >>conftest.$ac_ext
4046 cat >>conftest.$ac_ext <<_ACEOF
4047 /* end confdefs.h. */
4048 $ac_includes_default
4049 #include <Carbon/Carbon.h>
4050 _ACEOF
4051 rm -f conftest.$ac_objext
4052 if { (ac_try="$ac_compile"
4053 case "(($ac_try" in
4054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4055 *) ac_try_echo=$ac_try;;
4056 esac
4057 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4058 $as_echo "$ac_try_echo") >&5
4059 (eval "$ac_compile") 2>conftest.er1
4060 ac_status=$?
4061 grep -v '^ *+' conftest.er1 >conftest.err
4062 rm -f conftest.er1
4063 cat conftest.err >&5
4064 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4065 (exit $ac_status); } && {
4066 test -z "$ac_c_werror_flag" ||
4067 test ! -s conftest.err
4068 } && test -s conftest.$ac_objext; then
4069 ac_header_compiler=yes
4070 else
4071 $as_echo "$as_me: failed program was:" >&5
4072 sed 's/^/| /' conftest.$ac_ext >&5
4074 ac_header_compiler=no
4077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4078 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4079 $as_echo "$ac_header_compiler" >&6; }
4081 # Is the header present?
4082 { $as_echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
4083 $as_echo_n "checking Carbon/Carbon.h presence... " >&6; }
4084 cat >conftest.$ac_ext <<_ACEOF
4085 /* confdefs.h. */
4086 _ACEOF
4087 cat confdefs.h >>conftest.$ac_ext
4088 cat >>conftest.$ac_ext <<_ACEOF
4089 /* end confdefs.h. */
4090 #include <Carbon/Carbon.h>
4091 _ACEOF
4092 if { (ac_try="$ac_cpp conftest.$ac_ext"
4093 case "(($ac_try" in
4094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4095 *) ac_try_echo=$ac_try;;
4096 esac
4097 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4098 $as_echo "$ac_try_echo") >&5
4099 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4100 ac_status=$?
4101 grep -v '^ *+' conftest.er1 >conftest.err
4102 rm -f conftest.er1
4103 cat conftest.err >&5
4104 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4105 (exit $ac_status); } >/dev/null && {
4106 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4107 test ! -s conftest.err
4108 }; then
4109 ac_header_preproc=yes
4110 else
4111 $as_echo "$as_me: failed program was:" >&5
4112 sed 's/^/| /' conftest.$ac_ext >&5
4114 ac_header_preproc=no
4117 rm -f conftest.err conftest.$ac_ext
4118 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4119 $as_echo "$ac_header_preproc" >&6; }
4121 # So? What about this header?
4122 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4123 yes:no: )
4124 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
4125 $as_echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4126 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
4127 $as_echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
4128 ac_header_preproc=yes
4130 no:yes:* )
4131 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
4132 $as_echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
4133 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
4134 $as_echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
4135 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
4136 $as_echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
4137 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
4138 $as_echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
4139 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
4140 $as_echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
4141 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
4142 $as_echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
4145 esac
4146 { $as_echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
4147 $as_echo_n "checking for Carbon/Carbon.h... " >&6; }
4148 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
4149 $as_echo_n "(cached) " >&6
4150 else
4151 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
4153 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
4154 $as_echo "$ac_cv_header_Carbon_Carbon_h" >&6; }
4157 if test $ac_cv_header_Carbon_Carbon_h = yes; then
4158 CARBON=yes
4162 if test "x$CARBON" = "xyes"; then
4163 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
4164 with_x=no
4169 if test "$MACARCH" = "intel" -o "$MACARCH" = "both"; then
4170 CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-Oz/'`
4173 else
4174 { $as_echo "$as_me:$LINENO: result: no" >&5
4175 $as_echo "no" >&6; }
4181 if test "$cross_compiling" = no; then
4182 { $as_echo "$as_me:$LINENO: checking --with-local-dir argument" >&5
4183 $as_echo_n "checking --with-local-dir argument... " >&6; }
4184 have_local_include=''
4185 have_local_lib=''
4187 # Check whether --with-local-dir was given.
4188 if test "${with_local_dir+set}" = set; then
4189 withval=$with_local_dir;
4190 local_dir="$withval"
4191 case "$withval" in
4192 */*) ;;
4194 # avoid adding local dir to LDFLAGS and CPPFLAGS
4195 have_local_dir=yes
4196 have_local_lib=yes
4198 *) { { $as_echo "$as_me:$LINENO: error: must pass path argument to --with-local-dir" >&5
4199 $as_echo "$as_me: error: must pass path argument to --with-local-dir" >&2;}
4200 { (exit 1); exit 1; }; } ;;
4201 esac
4202 { $as_echo "$as_me:$LINENO: result: $local_dir" >&5
4203 $as_echo "$local_dir" >&6; }
4205 else
4207 local_dir=/usr/local
4208 { $as_echo "$as_me:$LINENO: result: Defaulting to $local_dir" >&5
4209 $as_echo "Defaulting to $local_dir" >&6; }
4213 if test "$GCC" = yes -a "$local_dir" != no; then
4214 echo 'void f(){}' > conftest.c
4215 have_local_include=`${CC-cc} -no-cpp-precomp -c -v conftest.c 2>&1 | grep "${local_dir}/include"`
4216 have_local_lib=`${CC-cc} -c -v conftest.c 2>&1 | grep "${local_dir}/lib"`
4217 rm -f conftest.c conftest.o
4219 if test -z "$have_local_lib" -a -d "${local_dir}/lib"; then
4220 tt=`echo "$LDFLAGS" | sed -e "s+-L${local_dir}/lib ++g" -e "s+-L${local_dir}/lib$++g"`
4221 if test "$tt" = "$LDFLAGS"; then
4222 LDFLAGS="$LDFLAGS -L${local_dir}/lib"
4225 if test -z "$have_local_include" -a -d "${local_dir}/include"; then
4226 tt=`echo "$CPPFLAGS" | sed -e "s+-I${local_dir}/include ++g" -e "s+-I${local_dir}/include$++g"`
4227 if test "$tt" = "$CPPFLAGS"; then
4228 CPPFLAGS="$CPPFLAGS -I${local_dir}/include"
4233 { $as_echo "$as_me:$LINENO: checking --with-vim-name argument" >&5
4234 $as_echo_n "checking --with-vim-name argument... " >&6; }
4236 # Check whether --with-vim-name was given.
4237 if test "${with_vim_name+set}" = set; then
4238 withval=$with_vim_name; VIMNAME="$withval"; { $as_echo "$as_me:$LINENO: result: $VIMNAME" >&5
4239 $as_echo "$VIMNAME" >&6; }
4240 else
4241 VIMNAME="vim"; { $as_echo "$as_me:$LINENO: result: Defaulting to $VIMNAME" >&5
4242 $as_echo "Defaulting to $VIMNAME" >&6; }
4246 { $as_echo "$as_me:$LINENO: checking --with-ex-name argument" >&5
4247 $as_echo_n "checking --with-ex-name argument... " >&6; }
4249 # Check whether --with-ex-name was given.
4250 if test "${with_ex_name+set}" = set; then
4251 withval=$with_ex_name; EXNAME="$withval"; { $as_echo "$as_me:$LINENO: result: $EXNAME" >&5
4252 $as_echo "$EXNAME" >&6; }
4253 else
4254 EXNAME="ex"; { $as_echo "$as_me:$LINENO: result: Defaulting to ex" >&5
4255 $as_echo "Defaulting to ex" >&6; }
4259 { $as_echo "$as_me:$LINENO: checking --with-view-name argument" >&5
4260 $as_echo_n "checking --with-view-name argument... " >&6; }
4262 # Check whether --with-view-name was given.
4263 if test "${with_view_name+set}" = set; then
4264 withval=$with_view_name; VIEWNAME="$withval"; { $as_echo "$as_me:$LINENO: result: $VIEWNAME" >&5
4265 $as_echo "$VIEWNAME" >&6; }
4266 else
4267 VIEWNAME="view"; { $as_echo "$as_me:$LINENO: result: Defaulting to view" >&5
4268 $as_echo "Defaulting to view" >&6; }
4273 { $as_echo "$as_me:$LINENO: checking --with-global-runtime argument" >&5
4274 $as_echo_n "checking --with-global-runtime argument... " >&6; }
4276 # Check whether --with-global-runtime was given.
4277 if test "${with_global_runtime+set}" = set; then
4278 withval=$with_global_runtime; { $as_echo "$as_me:$LINENO: result: $withval" >&5
4279 $as_echo "$withval" >&6; }; cat >>confdefs.h <<_ACEOF
4280 #define RUNTIME_GLOBAL "$withval"
4281 _ACEOF
4283 else
4284 { $as_echo "$as_me:$LINENO: result: no" >&5
4285 $as_echo "no" >&6; }
4289 { $as_echo "$as_me:$LINENO: checking --with-modified-by argument" >&5
4290 $as_echo_n "checking --with-modified-by argument... " >&6; }
4292 # Check whether --with-modified-by was given.
4293 if test "${with_modified_by+set}" = set; then
4294 withval=$with_modified_by; { $as_echo "$as_me:$LINENO: result: $withval" >&5
4295 $as_echo "$withval" >&6; }; cat >>confdefs.h <<_ACEOF
4296 #define MODIFIED_BY "$withval"
4297 _ACEOF
4299 else
4300 { $as_echo "$as_me:$LINENO: result: no" >&5
4301 $as_echo "no" >&6; }
4305 { $as_echo "$as_me:$LINENO: checking if character set is EBCDIC" >&5
4306 $as_echo_n "checking if character set is EBCDIC... " >&6; }
4307 cat >conftest.$ac_ext <<_ACEOF
4308 /* confdefs.h. */
4309 _ACEOF
4310 cat confdefs.h >>conftest.$ac_ext
4311 cat >>conftest.$ac_ext <<_ACEOF
4312 /* end confdefs.h. */
4315 main ()
4317 /* TryCompile function for CharSet.
4318 Treat any failure as ASCII for compatibility with existing art.
4319 Use compile-time rather than run-time tests for cross-compiler
4320 tolerance. */
4321 #if '0'!=240
4322 make an error "Character set is not EBCDIC"
4323 #endif
4325 return 0;
4327 _ACEOF
4328 rm -f conftest.$ac_objext
4329 if { (ac_try="$ac_compile"
4330 case "(($ac_try" in
4331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4332 *) ac_try_echo=$ac_try;;
4333 esac
4334 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4335 $as_echo "$ac_try_echo") >&5
4336 (eval "$ac_compile") 2>conftest.er1
4337 ac_status=$?
4338 grep -v '^ *+' conftest.er1 >conftest.err
4339 rm -f conftest.er1
4340 cat conftest.err >&5
4341 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4342 (exit $ac_status); } && {
4343 test -z "$ac_c_werror_flag" ||
4344 test ! -s conftest.err
4345 } && test -s conftest.$ac_objext; then
4346 # TryCompile action if true
4347 cf_cv_ebcdic=yes
4348 else
4349 $as_echo "$as_me: failed program was:" >&5
4350 sed 's/^/| /' conftest.$ac_ext >&5
4352 # TryCompile action if false
4353 cf_cv_ebcdic=no
4356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4357 # end of TryCompile ])
4358 # end of CacheVal CvEbcdic
4359 { $as_echo "$as_me:$LINENO: result: $cf_cv_ebcdic" >&5
4360 $as_echo "$cf_cv_ebcdic" >&6; }
4361 case "$cf_cv_ebcdic" in #(vi
4362 yes) cat >>confdefs.h <<\_ACEOF
4363 #define EBCDIC 1
4364 _ACEOF
4366 line_break='"\\n"'
4368 *) line_break='"\\012"';;
4369 esac
4372 if test "$cf_cv_ebcdic" = "yes"; then
4373 { $as_echo "$as_me:$LINENO: checking for OS/390 Unix" >&5
4374 $as_echo_n "checking for OS/390 Unix... " >&6; }
4375 case `uname` in
4376 OS/390) OS390Unix="yes";
4377 if test "$CC" = "cc"; then
4378 ccm="$_CC_CCMODE"
4379 ccn="CC"
4380 else
4381 if test "$CC" = "c89"; then
4382 ccm="$_CC_C89MODE"
4383 ccn="C89"
4384 else
4385 ccm=1
4388 if test "$ccm" != "1"; then
4389 echo ""
4390 echo "------------------------------------------"
4391 echo " On OS/390 Unix, the environment variable"
4392 echo " __CC_${ccn}MODE must be set to \"1\"!"
4393 echo " Do:"
4394 echo " export _CC_${ccn}MODE=1"
4395 echo " and then call configure again."
4396 echo "------------------------------------------"
4397 exit 1
4399 CFLAGS="$CFLAGS -D_ALL_SOURCE"; LDFLAGS="$LDFLAGS -Wl,EDIT=NO"
4400 { $as_echo "$as_me:$LINENO: result: yes" >&5
4401 $as_echo "yes" >&6; }
4403 *) OS390Unix="no";
4404 { $as_echo "$as_me:$LINENO: result: no" >&5
4405 $as_echo "no" >&6; }
4407 esac
4410 { $as_echo "$as_me:$LINENO: checking --disable-selinux argument" >&5
4411 $as_echo_n "checking --disable-selinux argument... " >&6; }
4412 # Check whether --enable-selinux was given.
4413 if test "${enable_selinux+set}" = set; then
4414 enableval=$enable_selinux;
4415 else
4416 enable_selinux="yes"
4419 if test "$enable_selinux" = "yes"; then
4420 { $as_echo "$as_me:$LINENO: result: no" >&5
4421 $as_echo "no" >&6; }
4422 { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
4423 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
4424 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
4425 $as_echo_n "(cached) " >&6
4426 else
4427 ac_check_lib_save_LIBS=$LIBS
4428 LIBS="-lselinux $LIBS"
4429 cat >conftest.$ac_ext <<_ACEOF
4430 /* confdefs.h. */
4431 _ACEOF
4432 cat confdefs.h >>conftest.$ac_ext
4433 cat >>conftest.$ac_ext <<_ACEOF
4434 /* end confdefs.h. */
4436 /* Override any GCC internal prototype to avoid an error.
4437 Use char because int might match the return type of a GCC
4438 builtin and then its argument prototype would still apply. */
4439 #ifdef __cplusplus
4440 extern "C"
4441 #endif
4442 char is_selinux_enabled ();
4444 main ()
4446 return is_selinux_enabled ();
4448 return 0;
4450 _ACEOF
4451 rm -f conftest.$ac_objext conftest$ac_exeext
4452 if { (ac_try="$ac_link"
4453 case "(($ac_try" in
4454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4455 *) ac_try_echo=$ac_try;;
4456 esac
4457 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4458 $as_echo "$ac_try_echo") >&5
4459 (eval "$ac_link") 2>conftest.er1
4460 ac_status=$?
4461 grep -v '^ *+' conftest.er1 >conftest.err
4462 rm -f conftest.er1
4463 cat conftest.err >&5
4464 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465 (exit $ac_status); } && {
4466 test -z "$ac_c_werror_flag" ||
4467 test ! -s conftest.err
4468 } && test -s conftest$ac_exeext && {
4469 test "$cross_compiling" = yes ||
4470 $as_test_x conftest$ac_exeext
4471 }; then
4472 ac_cv_lib_selinux_is_selinux_enabled=yes
4473 else
4474 $as_echo "$as_me: failed program was:" >&5
4475 sed 's/^/| /' conftest.$ac_ext >&5
4477 ac_cv_lib_selinux_is_selinux_enabled=no
4480 rm -rf conftest.dSYM
4481 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4482 conftest$ac_exeext conftest.$ac_ext
4483 LIBS=$ac_check_lib_save_LIBS
4485 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
4486 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
4487 if test $ac_cv_lib_selinux_is_selinux_enabled = yes; then
4488 LIBS="$LIBS -lselinux"
4489 cat >>confdefs.h <<\_ACEOF
4490 #define HAVE_SELINUX 1
4491 _ACEOF
4495 else
4496 { $as_echo "$as_me:$LINENO: result: yes" >&5
4497 $as_echo "yes" >&6; }
4501 { $as_echo "$as_me:$LINENO: checking --with-features argument" >&5
4502 $as_echo_n "checking --with-features argument... " >&6; }
4504 # Check whether --with-features was given.
4505 if test "${with_features+set}" = set; then
4506 withval=$with_features; features="$withval"; { $as_echo "$as_me:$LINENO: result: $features" >&5
4507 $as_echo "$features" >&6; }
4508 else
4509 features="normal"; { $as_echo "$as_me:$LINENO: result: Defaulting to normal" >&5
4510 $as_echo "Defaulting to normal" >&6; }
4514 dovimdiff=""
4515 dogvimdiff=""
4516 case "$features" in
4517 tiny) cat >>confdefs.h <<\_ACEOF
4518 #define FEAT_TINY 1
4519 _ACEOF
4521 small) cat >>confdefs.h <<\_ACEOF
4522 #define FEAT_SMALL 1
4523 _ACEOF
4525 normal) cat >>confdefs.h <<\_ACEOF
4526 #define FEAT_NORMAL 1
4527 _ACEOF
4528 dovimdiff="installvimdiff";
4529 dogvimdiff="installgvimdiff" ;;
4530 big) cat >>confdefs.h <<\_ACEOF
4531 #define FEAT_BIG 1
4532 _ACEOF
4533 dovimdiff="installvimdiff";
4534 dogvimdiff="installgvimdiff" ;;
4535 huge) cat >>confdefs.h <<\_ACEOF
4536 #define FEAT_HUGE 1
4537 _ACEOF
4538 dovimdiff="installvimdiff";
4539 dogvimdiff="installgvimdiff" ;;
4540 *) { $as_echo "$as_me:$LINENO: result: Sorry, $features is not supported" >&5
4541 $as_echo "Sorry, $features is not supported" >&6; } ;;
4542 esac
4547 { $as_echo "$as_me:$LINENO: checking --with-compiledby argument" >&5
4548 $as_echo_n "checking --with-compiledby argument... " >&6; }
4550 # Check whether --with-compiledby was given.
4551 if test "${with_compiledby+set}" = set; then
4552 withval=$with_compiledby; compiledby="$withval"; { $as_echo "$as_me:$LINENO: result: $withval" >&5
4553 $as_echo "$withval" >&6; }
4554 else
4555 compiledby=""; { $as_echo "$as_me:$LINENO: result: no" >&5
4556 $as_echo "no" >&6; }
4561 { $as_echo "$as_me:$LINENO: checking --disable-xsmp argument" >&5
4562 $as_echo_n "checking --disable-xsmp argument... " >&6; }
4563 # Check whether --enable-xsmp was given.
4564 if test "${enable_xsmp+set}" = set; then
4565 enableval=$enable_xsmp;
4566 else
4567 enable_xsmp="yes"
4571 if test "$enable_xsmp" = "yes"; then
4572 { $as_echo "$as_me:$LINENO: result: no" >&5
4573 $as_echo "no" >&6; }
4574 { $as_echo "$as_me:$LINENO: checking --disable-xsmp-interact argument" >&5
4575 $as_echo_n "checking --disable-xsmp-interact argument... " >&6; }
4576 # Check whether --enable-xsmp-interact was given.
4577 if test "${enable_xsmp_interact+set}" = set; then
4578 enableval=$enable_xsmp_interact;
4579 else
4580 enable_xsmp_interact="yes"
4583 if test "$enable_xsmp_interact" = "yes"; then
4584 { $as_echo "$as_me:$LINENO: result: no" >&5
4585 $as_echo "no" >&6; }
4586 cat >>confdefs.h <<\_ACEOF
4587 #define USE_XSMP_INTERACT 1
4588 _ACEOF
4590 else
4591 { $as_echo "$as_me:$LINENO: result: yes" >&5
4592 $as_echo "yes" >&6; }
4594 else
4595 { $as_echo "$as_me:$LINENO: result: yes" >&5
4596 $as_echo "yes" >&6; }
4599 { $as_echo "$as_me:$LINENO: checking --enable-mzschemeinterp argument" >&5
4600 $as_echo_n "checking --enable-mzschemeinterp argument... " >&6; }
4601 # Check whether --enable-mzschemeinterp was given.
4602 if test "${enable_mzschemeinterp+set}" = set; then
4603 enableval=$enable_mzschemeinterp;
4604 else
4605 enable_mzschemeinterp="no"
4608 { $as_echo "$as_me:$LINENO: result: $enable_mzschemeinterp" >&5
4609 $as_echo "$enable_mzschemeinterp" >&6; }
4611 if test "$enable_mzschemeinterp" = "yes"; then
4614 { $as_echo "$as_me:$LINENO: checking --with-plthome argument" >&5
4615 $as_echo_n "checking --with-plthome argument... " >&6; }
4617 # Check whether --with-plthome was given.
4618 if test "${with_plthome+set}" = set; then
4619 withval=$with_plthome; with_plthome="$withval"; { $as_echo "$as_me:$LINENO: result: $with_plthome" >&5
4620 $as_echo "$with_plthome" >&6; }
4621 else
4622 with_plthome="";{ $as_echo "$as_me:$LINENO: result: \"no\"" >&5
4623 $as_echo "\"no\"" >&6; }
4627 if test "X$with_plthome" != "X"; then
4628 vi_cv_path_mzscheme_pfx="$with_plthome"
4629 else
4630 { $as_echo "$as_me:$LINENO: checking PLTHOME environment var" >&5
4631 $as_echo_n "checking PLTHOME environment var... " >&6; }
4632 if test "X$PLTHOME" != "X"; then
4633 { $as_echo "$as_me:$LINENO: result: \"$PLTHOME\"" >&5
4634 $as_echo "\"$PLTHOME\"" >&6; }
4635 vi_cv_path_mzscheme_pfx="$PLTHOME"
4636 else
4637 { $as_echo "$as_me:$LINENO: result: \"not set\"" >&5
4638 $as_echo "\"not set\"" >&6; }
4639 # Extract the first word of "mzscheme", so it can be a program name with args.
4640 set dummy mzscheme; ac_word=$2
4641 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4642 $as_echo_n "checking for $ac_word... " >&6; }
4643 if test "${ac_cv_path_vi_cv_path_mzscheme+set}" = set; then
4644 $as_echo_n "(cached) " >&6
4645 else
4646 case $vi_cv_path_mzscheme in
4647 [\\/]* | ?:[\\/]*)
4648 ac_cv_path_vi_cv_path_mzscheme="$vi_cv_path_mzscheme" # Let the user override the test with a path.
4651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4652 for as_dir in $PATH
4654 IFS=$as_save_IFS
4655 test -z "$as_dir" && as_dir=.
4656 for ac_exec_ext in '' $ac_executable_extensions; do
4657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4658 ac_cv_path_vi_cv_path_mzscheme="$as_dir/$ac_word$ac_exec_ext"
4659 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4660 break 2
4662 done
4663 done
4664 IFS=$as_save_IFS
4667 esac
4669 vi_cv_path_mzscheme=$ac_cv_path_vi_cv_path_mzscheme
4670 if test -n "$vi_cv_path_mzscheme"; then
4671 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme" >&5
4672 $as_echo "$vi_cv_path_mzscheme" >&6; }
4673 else
4674 { $as_echo "$as_me:$LINENO: result: no" >&5
4675 $as_echo "no" >&6; }
4680 if test "X$vi_cv_path_mzscheme" != "X"; then
4681 lsout=`ls -l $vi_cv_path_mzscheme`
4682 if echo "$lsout" | grep -e '->' >/dev/null 2>/dev/null; then
4683 vi_cv_path_mzscheme=`echo "$lsout" | sed 's/.*-> \(.*\)/\1/'`
4687 if test "X$vi_cv_path_mzscheme" != "X"; then
4688 { $as_echo "$as_me:$LINENO: checking MzScheme install prefix" >&5
4689 $as_echo_n "checking MzScheme install prefix... " >&6; }
4690 if test "${vi_cv_path_mzscheme_pfx+set}" = set; then
4691 $as_echo_n "(cached) " >&6
4692 else
4693 vi_cv_path_mzscheme_pfx=`
4694 ${vi_cv_path_mzscheme} -evm \
4695 "(display (simplify-path \
4696 (build-path (call-with-values \
4697 (lambda () (split-path (find-system-path (quote exec-file)))) \
4698 (lambda (base name must-be-dir?) base)) (quote up))))"`
4700 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme_pfx" >&5
4701 $as_echo "$vi_cv_path_mzscheme_pfx" >&6; }
4702 vi_cv_path_mzscheme_pfx=`echo "$vi_cv_path_mzscheme_pfx" | sed 's+/$++'`
4707 SCHEME_INC=
4708 if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
4709 { $as_echo "$as_me:$LINENO: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include" >&5
4710 $as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include... " >&6; }
4711 if test -f $vi_cv_path_mzscheme_pfx/include/scheme.h; then
4712 { $as_echo "$as_me:$LINENO: result: \"yes\"" >&5
4713 $as_echo "\"yes\"" >&6; }
4714 else
4715 { $as_echo "$as_me:$LINENO: result: \"no\"" >&5
4716 $as_echo "\"no\"" >&6; }
4717 { $as_echo "$as_me:$LINENO: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/plt/include" >&5
4718 $as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/plt/include... " >&6; }
4719 if test -f $vi_cv_path_mzscheme_pfx/include/plt/scheme.h; then
4720 { $as_echo "$as_me:$LINENO: result: \"yes\"" >&5
4721 $as_echo "\"yes\"" >&6; }
4722 SCHEME_INC=/plt
4723 else
4724 { $as_echo "$as_me:$LINENO: result: \"no\"" >&5
4725 $as_echo "\"no\"" >&6; }
4726 vi_cv_path_mzscheme_pfx=
4731 if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
4732 if test "x$MACOSX" = "xyes"; then
4733 MZSCHEME_LIBS="-framework PLT_MzScheme"
4734 elif test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a"; then
4735 MZSCHEME_LIBS="${vi_cv_path_mzscheme_pfx}/lib/libmzscheme.a ${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a"
4736 else
4737 MZSCHEME_LIBS="-L${vi_cv_path_mzscheme_pfx}/lib -lmzscheme -lmzgc"
4738 if test "$GCC" = yes; then
4739 MZSCHEME_LIBS="$MZSCHEME_LIBS -Wl,-rpath -Wl,${vi_cv_path_mzscheme_pfx}/lib"
4740 elif test "`(uname) 2>/dev/null`" = SunOS &&
4741 uname -r | grep '^5' >/dev/null; then
4742 MZSCHEME_LIBS="$MZSCHEME_LIBS -R ${vi_cv_path_mzscheme_pfx}/lib"
4745 if test -d $vi_cv_path_mzscheme_pfx/lib/plt/collects; then
4746 SCHEME_COLLECTS=lib/plt/
4748 MZSCHEME_CFLAGS="-I${vi_cv_path_mzscheme_pfx}/include${SCHEME_INC} \
4749 -DMZSCHEME_COLLECTS='\"${vi_cv_path_mzscheme_pfx}/${SCHEME_COLLECTS}collects\"'"
4750 MZSCHEME_SRC="if_mzsch.c"
4751 MZSCHEME_OBJ="objects/if_mzsch.o"
4752 MZSCHEME_PRO="if_mzsch.pro"
4753 cat >>confdefs.h <<\_ACEOF
4754 #define FEAT_MZSCHEME 1
4755 _ACEOF
4766 { $as_echo "$as_me:$LINENO: checking --enable-perlinterp argument" >&5
4767 $as_echo_n "checking --enable-perlinterp argument... " >&6; }
4768 # Check whether --enable-perlinterp was given.
4769 if test "${enable_perlinterp+set}" = set; then
4770 enableval=$enable_perlinterp;
4771 else
4772 enable_perlinterp="no"
4775 { $as_echo "$as_me:$LINENO: result: $enable_perlinterp" >&5
4776 $as_echo "$enable_perlinterp" >&6; }
4777 if test "$enable_perlinterp" = "yes"; then
4779 # Extract the first word of "perl", so it can be a program name with args.
4780 set dummy perl; ac_word=$2
4781 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4782 $as_echo_n "checking for $ac_word... " >&6; }
4783 if test "${ac_cv_path_vi_cv_path_perl+set}" = set; then
4784 $as_echo_n "(cached) " >&6
4785 else
4786 case $vi_cv_path_perl in
4787 [\\/]* | ?:[\\/]*)
4788 ac_cv_path_vi_cv_path_perl="$vi_cv_path_perl" # Let the user override the test with a path.
4791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4792 for as_dir in $PATH
4794 IFS=$as_save_IFS
4795 test -z "$as_dir" && as_dir=.
4796 for ac_exec_ext in '' $ac_executable_extensions; do
4797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4798 ac_cv_path_vi_cv_path_perl="$as_dir/$ac_word$ac_exec_ext"
4799 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4800 break 2
4802 done
4803 done
4804 IFS=$as_save_IFS
4807 esac
4809 vi_cv_path_perl=$ac_cv_path_vi_cv_path_perl
4810 if test -n "$vi_cv_path_perl"; then
4811 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_perl" >&5
4812 $as_echo "$vi_cv_path_perl" >&6; }
4813 else
4814 { $as_echo "$as_me:$LINENO: result: no" >&5
4815 $as_echo "no" >&6; }
4819 if test "X$vi_cv_path_perl" != "X"; then
4820 { $as_echo "$as_me:$LINENO: checking Perl version" >&5
4821 $as_echo_n "checking Perl version... " >&6; }
4822 if $vi_cv_path_perl -e 'require 5.003_01' >/dev/null 2>/dev/null; then
4823 eval `$vi_cv_path_perl -V:usethreads`
4824 if test "X$usethreads" = "XUNKNOWN" -o "X$usethreads" = "Xundef"; then
4825 badthreads=no
4826 else
4827 if $vi_cv_path_perl -e 'require 5.6.0' >/dev/null 2>/dev/null; then
4828 eval `$vi_cv_path_perl -V:use5005threads`
4829 if test "X$use5005threads" = "XUNKNOWN" -o "X$use5005threads" = "Xundef"; then
4830 badthreads=no
4831 else
4832 badthreads=yes
4833 { $as_echo "$as_me:$LINENO: result: >>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&5
4834 $as_echo ">>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&6; }
4836 else
4837 badthreads=yes
4838 { $as_echo "$as_me:$LINENO: result: >>> Perl 5.5 with threads cannot be used <<<" >&5
4839 $as_echo ">>> Perl 5.5 with threads cannot be used <<<" >&6; }
4842 if test $badthreads = no; then
4843 { $as_echo "$as_me:$LINENO: result: OK" >&5
4844 $as_echo "OK" >&6; }
4845 eval `$vi_cv_path_perl -V:shrpenv`
4846 if test "X$shrpenv" = "XUNKNOWN"; then # pre 5.003_04
4847 shrpenv=""
4849 vi_cv_perllib=`$vi_cv_path_perl -MConfig -e 'print $Config{privlibexp}'`
4851 perlcppflags=`$vi_cv_path_perl -Mlib=$srcdir -MExtUtils::Embed \
4852 -e 'ccflags;perl_inc;print"\n"' | sed -e 's/-fno[^ ]*//'`
4853 perllibs=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed -e 'ldopts' | \
4854 sed -e '/Warning/d' -e '/Note (probably harmless)/d' \
4855 -e 's/-bE:perl.exp//' -e 's/-lc //'`
4856 perlldflags=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed \
4857 -e 'ccdlflags' | sed -e 's/-bE:perl.exp//'`
4859 { $as_echo "$as_me:$LINENO: checking if compile and link flags for Perl are sane" >&5
4860 $as_echo_n "checking if compile and link flags for Perl are sane... " >&6; }
4861 cflags_save=$CFLAGS
4862 libs_save=$LIBS
4863 ldflags_save=$LDFLAGS
4864 CFLAGS="$CFLAGS $perlcppflags"
4865 LIBS="$LIBS $perllibs"
4866 LDFLAGS="$perlldflags $LDFLAGS"
4867 cat >conftest.$ac_ext <<_ACEOF
4868 /* confdefs.h. */
4869 _ACEOF
4870 cat confdefs.h >>conftest.$ac_ext
4871 cat >>conftest.$ac_ext <<_ACEOF
4872 /* end confdefs.h. */
4875 main ()
4879 return 0;
4881 _ACEOF
4882 rm -f conftest.$ac_objext conftest$ac_exeext
4883 if { (ac_try="$ac_link"
4884 case "(($ac_try" in
4885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4886 *) ac_try_echo=$ac_try;;
4887 esac
4888 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4889 $as_echo "$ac_try_echo") >&5
4890 (eval "$ac_link") 2>conftest.er1
4891 ac_status=$?
4892 grep -v '^ *+' conftest.er1 >conftest.err
4893 rm -f conftest.er1
4894 cat conftest.err >&5
4895 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896 (exit $ac_status); } && {
4897 test -z "$ac_c_werror_flag" ||
4898 test ! -s conftest.err
4899 } && test -s conftest$ac_exeext && {
4900 test "$cross_compiling" = yes ||
4901 $as_test_x conftest$ac_exeext
4902 }; then
4903 { $as_echo "$as_me:$LINENO: result: yes" >&5
4904 $as_echo "yes" >&6; }; perl_ok=yes
4905 else
4906 $as_echo "$as_me: failed program was:" >&5
4907 sed 's/^/| /' conftest.$ac_ext >&5
4909 { $as_echo "$as_me:$LINENO: result: no: PERL DISABLED" >&5
4910 $as_echo "no: PERL DISABLED" >&6; }; perl_ok=no
4913 rm -rf conftest.dSYM
4914 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4915 conftest$ac_exeext conftest.$ac_ext
4916 CFLAGS=$cflags_save
4917 LIBS=$libs_save
4918 LDFLAGS=$ldflags_save
4919 if test $perl_ok = yes; then
4920 if test "X$perlcppflags" != "X"; then
4921 PERL_CFLAGS=`echo "$perlcppflags" | sed -e 's/-pipe //' -e 's/-W[^ ]*//'`
4923 if test "X$perlldflags" != "X"; then
4924 LDFLAGS="$perlldflags $LDFLAGS"
4926 PERL_LIBS=$perllibs
4927 PERL_SRC="auto/if_perl.c if_perlsfio.c"
4928 PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o"
4929 PERL_PRO="if_perl.pro if_perlsfio.pro"
4930 cat >>confdefs.h <<\_ACEOF
4931 #define FEAT_PERL 1
4932 _ACEOF
4936 else
4937 { $as_echo "$as_me:$LINENO: result: >>> too old; need Perl version 5.003_01 or later <<<" >&5
4938 $as_echo ">>> too old; need Perl version 5.003_01 or later <<<" >&6; }
4942 if test "x$MACOSX" = "xyes"; then
4943 dir=/System/Library/Perl
4944 darwindir=$dir/darwin
4945 if test -d $darwindir; then
4946 PERL=/usr/bin/perl
4947 else
4948 dir=/System/Library/Perl/5.8.1
4949 darwindir=$dir/darwin-thread-multi-2level
4950 if test -d $darwindir; then
4951 PERL=/usr/bin/perl
4954 if test -n "$PERL"; then
4955 PERL_DIR="$dir"
4956 PERL_CFLAGS="-DFEAT_PERL -I$darwindir/CORE"
4957 PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o $darwindir/auto/DynaLoader/DynaLoader.a"
4958 PERL_LIBS="-L$darwindir/CORE -lperl"
4969 { $as_echo "$as_me:$LINENO: checking --enable-pythoninterp argument" >&5
4970 $as_echo_n "checking --enable-pythoninterp argument... " >&6; }
4971 # Check whether --enable-pythoninterp was given.
4972 if test "${enable_pythoninterp+set}" = set; then
4973 enableval=$enable_pythoninterp;
4974 else
4975 enable_pythoninterp="no"
4978 { $as_echo "$as_me:$LINENO: result: $enable_pythoninterp" >&5
4979 $as_echo "$enable_pythoninterp" >&6; }
4980 if test "$enable_pythoninterp" = "yes"; then
4981 # Extract the first word of "python", so it can be a program name with args.
4982 set dummy python; ac_word=$2
4983 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4984 $as_echo_n "checking for $ac_word... " >&6; }
4985 if test "${ac_cv_path_vi_cv_path_python+set}" = set; then
4986 $as_echo_n "(cached) " >&6
4987 else
4988 case $vi_cv_path_python in
4989 [\\/]* | ?:[\\/]*)
4990 ac_cv_path_vi_cv_path_python="$vi_cv_path_python" # Let the user override the test with a path.
4993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4994 for as_dir in $PATH
4996 IFS=$as_save_IFS
4997 test -z "$as_dir" && as_dir=.
4998 for ac_exec_ext in '' $ac_executable_extensions; do
4999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5000 ac_cv_path_vi_cv_path_python="$as_dir/$ac_word$ac_exec_ext"
5001 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5002 break 2
5004 done
5005 done
5006 IFS=$as_save_IFS
5009 esac
5011 vi_cv_path_python=$ac_cv_path_vi_cv_path_python
5012 if test -n "$vi_cv_path_python"; then
5013 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_python" >&5
5014 $as_echo "$vi_cv_path_python" >&6; }
5015 else
5016 { $as_echo "$as_me:$LINENO: result: no" >&5
5017 $as_echo "no" >&6; }
5021 if test "X$vi_cv_path_python" != "X"; then
5023 { $as_echo "$as_me:$LINENO: checking Python version" >&5
5024 $as_echo_n "checking Python version... " >&6; }
5025 if test "${vi_cv_var_python_version+set}" = set; then
5026 $as_echo_n "(cached) " >&6
5027 else
5028 vi_cv_var_python_version=`
5029 ${vi_cv_path_python} -c 'import sys; print sys.version[:3]'`
5032 { $as_echo "$as_me:$LINENO: result: $vi_cv_var_python_version" >&5
5033 $as_echo "$vi_cv_var_python_version" >&6; }
5035 { $as_echo "$as_me:$LINENO: checking Python is 1.4 or better" >&5
5036 $as_echo_n "checking Python is 1.4 or better... " >&6; }
5037 if ${vi_cv_path_python} -c \
5038 "import sys; sys.exit(${vi_cv_var_python_version} < 1.4)"
5039 then
5040 { $as_echo "$as_me:$LINENO: result: yep" >&5
5041 $as_echo "yep" >&6; }
5043 { $as_echo "$as_me:$LINENO: checking Python's install prefix" >&5
5044 $as_echo_n "checking Python's install prefix... " >&6; }
5045 if test "${vi_cv_path_python_pfx+set}" = set; then
5046 $as_echo_n "(cached) " >&6
5047 else
5048 vi_cv_path_python_pfx=`
5049 ${vi_cv_path_python} -c \
5050 "import sys; print sys.prefix"`
5052 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_python_pfx" >&5
5053 $as_echo "$vi_cv_path_python_pfx" >&6; }
5055 { $as_echo "$as_me:$LINENO: checking Python's execution prefix" >&5
5056 $as_echo_n "checking Python's execution prefix... " >&6; }
5057 if test "${vi_cv_path_python_epfx+set}" = set; then
5058 $as_echo_n "(cached) " >&6
5059 else
5060 vi_cv_path_python_epfx=`
5061 ${vi_cv_path_python} -c \
5062 "import sys; print sys.exec_prefix"`
5064 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_python_epfx" >&5
5065 $as_echo "$vi_cv_path_python_epfx" >&6; }
5068 if test "${vi_cv_path_pythonpath+set}" = set; then
5069 $as_echo_n "(cached) " >&6
5070 else
5071 vi_cv_path_pythonpath=`
5072 unset PYTHONPATH;
5073 ${vi_cv_path_python} -c \
5074 "import sys, string; print string.join(sys.path,':')"`
5080 # Check whether --with-python-config-dir was given.
5081 if test "${with_python_config_dir+set}" = set; then
5082 withval=$with_python_config_dir; vi_cv_path_python_conf="${withval}"
5086 { $as_echo "$as_me:$LINENO: checking Python's configuration directory" >&5
5087 $as_echo_n "checking Python's configuration directory... " >&6; }
5088 if test "${vi_cv_path_python_conf+set}" = set; then
5089 $as_echo_n "(cached) " >&6
5090 else
5092 vi_cv_path_python_conf=
5093 for path in "${vi_cv_path_python_pfx}" "${vi_cv_path_python_epfx}"; do
5094 for subdir in lib share; do
5095 d="${path}/${subdir}/python${vi_cv_var_python_version}/config"
5096 if test -d "$d" && test -f "$d/config.c"; then
5097 vi_cv_path_python_conf="$d"
5099 done
5100 done
5103 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_python_conf" >&5
5104 $as_echo "$vi_cv_path_python_conf" >&6; }
5106 PYTHON_CONFDIR="${vi_cv_path_python_conf}"
5108 if test "X$PYTHON_CONFDIR" = "X"; then
5109 { $as_echo "$as_me:$LINENO: result: can't find it!" >&5
5110 $as_echo "can't find it!" >&6; }
5111 else
5113 if test "${vi_cv_path_python_plibs+set}" = set; then
5114 $as_echo_n "(cached) " >&6
5115 else
5117 tmp_mkf="/tmp/Makefile-conf$$"
5118 cat ${PYTHON_CONFDIR}/Makefile - <<'eof' >${tmp_mkf}
5120 @echo "python_MODLIBS='$(MODLIBS)'"
5121 @echo "python_LIBS='$(LIBS)'"
5122 @echo "python_SYSLIBS='$(SYSLIBS)'"
5123 @echo "python_LINKFORSHARED='$(LINKFORSHARED)'"
5125 eval "`cd ${PYTHON_CONFDIR} && make -f ${tmp_mkf} __ | sed '/ directory /d'`"
5126 rm -f ${tmp_mkf}
5127 if test "x$MACOSX" = "xyes" && ${vi_cv_path_python} -c \
5128 "import sys; sys.exit(${vi_cv_var_python_version} < 2.3)"; then
5129 vi_cv_path_python_plibs="-framework Python"
5130 else
5131 if test "${vi_cv_var_python_version}" = "1.4"; then
5132 vi_cv_path_python_plibs="${PYTHON_CONFDIR}/libModules.a ${PYTHON_CONFDIR}/libPython.a ${PYTHON_CONFDIR}/libObjects.a ${PYTHON_CONFDIR}/libParser.a"
5133 else
5134 vi_cv_path_python_plibs="-L${PYTHON_CONFDIR} -lpython${vi_cv_var_python_version}"
5136 vi_cv_path_python_plibs="${vi_cv_path_python_plibs} ${python_MODLIBS} ${python_LIBS} ${python_SYSLIBS} ${python_LINKFORSHARED}"
5137 vi_cv_path_python_plibs=`echo $vi_cv_path_python_plibs | sed s/-ltermcap//`
5143 PYTHON_LIBS="${vi_cv_path_python_plibs}"
5144 if test "${vi_cv_path_python_pfx}" = "${vi_cv_path_python_epfx}"; then
5145 PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version}"
5146 else
5147 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}"
5149 PYTHON_SRC="if_python.c"
5150 if test "x$MACOSX" = "xyes"; then
5151 PYTHON_OBJ="objects/if_python.o"
5152 else
5153 PYTHON_OBJ="objects/if_python.o objects/py_config.o"
5155 if test "${vi_cv_var_python_version}" = "1.4"; then
5156 PYTHON_OBJ="$PYTHON_OBJ objects/py_getpath.o"
5158 PYTHON_GETPATH_CFLAGS="-DPYTHONPATH='\"${vi_cv_path_pythonpath}\"' -DPREFIX='\"${vi_cv_path_python_pfx}\"' -DEXEC_PREFIX='\"${vi_cv_path_python_epfx}\"'"
5160 { $as_echo "$as_me:$LINENO: checking if -pthread should be used" >&5
5161 $as_echo_n "checking if -pthread should be used... " >&6; }
5162 threadsafe_flag=
5163 thread_lib=
5164 if test "`(uname) 2>/dev/null`" != Darwin; then
5165 test "$GCC" = yes && threadsafe_flag="-pthread"
5166 if test "`(uname) 2>/dev/null`" = FreeBSD; then
5167 threadsafe_flag="-D_THREAD_SAFE"
5168 thread_lib="-pthread"
5171 libs_save_old=$LIBS
5172 if test -n "$threadsafe_flag"; then
5173 cflags_save=$CFLAGS
5174 CFLAGS="$CFLAGS $threadsafe_flag"
5175 LIBS="$LIBS $thread_lib"
5176 cat >conftest.$ac_ext <<_ACEOF
5177 /* confdefs.h. */
5178 _ACEOF
5179 cat confdefs.h >>conftest.$ac_ext
5180 cat >>conftest.$ac_ext <<_ACEOF
5181 /* end confdefs.h. */
5184 main ()
5188 return 0;
5190 _ACEOF
5191 rm -f conftest.$ac_objext conftest$ac_exeext
5192 if { (ac_try="$ac_link"
5193 case "(($ac_try" in
5194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5195 *) ac_try_echo=$ac_try;;
5196 esac
5197 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5198 $as_echo "$ac_try_echo") >&5
5199 (eval "$ac_link") 2>conftest.er1
5200 ac_status=$?
5201 grep -v '^ *+' conftest.er1 >conftest.err
5202 rm -f conftest.er1
5203 cat conftest.err >&5
5204 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5205 (exit $ac_status); } && {
5206 test -z "$ac_c_werror_flag" ||
5207 test ! -s conftest.err
5208 } && test -s conftest$ac_exeext && {
5209 test "$cross_compiling" = yes ||
5210 $as_test_x conftest$ac_exeext
5211 }; then
5212 { $as_echo "$as_me:$LINENO: result: yes" >&5
5213 $as_echo "yes" >&6; }; PYTHON_CFLAGS="$PYTHON_CFLAGS $threadsafe_flag"
5214 else
5215 $as_echo "$as_me: failed program was:" >&5
5216 sed 's/^/| /' conftest.$ac_ext >&5
5218 { $as_echo "$as_me:$LINENO: result: no" >&5
5219 $as_echo "no" >&6; }; LIBS=$libs_save_old
5223 rm -rf conftest.dSYM
5224 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5225 conftest$ac_exeext conftest.$ac_ext
5226 CFLAGS=$cflags_save
5227 else
5228 { $as_echo "$as_me:$LINENO: result: no" >&5
5229 $as_echo "no" >&6; }
5232 { $as_echo "$as_me:$LINENO: checking if compile and link flags for Python are sane" >&5
5233 $as_echo_n "checking if compile and link flags for Python are sane... " >&6; }
5234 cflags_save=$CFLAGS
5235 libs_save=$LIBS
5236 CFLAGS="$CFLAGS $PYTHON_CFLAGS"
5237 LIBS="$LIBS $PYTHON_LIBS"
5238 cat >conftest.$ac_ext <<_ACEOF
5239 /* confdefs.h. */
5240 _ACEOF
5241 cat confdefs.h >>conftest.$ac_ext
5242 cat >>conftest.$ac_ext <<_ACEOF
5243 /* end confdefs.h. */
5246 main ()
5250 return 0;
5252 _ACEOF
5253 rm -f conftest.$ac_objext conftest$ac_exeext
5254 if { (ac_try="$ac_link"
5255 case "(($ac_try" in
5256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5257 *) ac_try_echo=$ac_try;;
5258 esac
5259 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5260 $as_echo "$ac_try_echo") >&5
5261 (eval "$ac_link") 2>conftest.er1
5262 ac_status=$?
5263 grep -v '^ *+' conftest.er1 >conftest.err
5264 rm -f conftest.er1
5265 cat conftest.err >&5
5266 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5267 (exit $ac_status); } && {
5268 test -z "$ac_c_werror_flag" ||
5269 test ! -s conftest.err
5270 } && test -s conftest$ac_exeext && {
5271 test "$cross_compiling" = yes ||
5272 $as_test_x conftest$ac_exeext
5273 }; then
5274 { $as_echo "$as_me:$LINENO: result: yes" >&5
5275 $as_echo "yes" >&6; }; python_ok=yes
5276 else
5277 $as_echo "$as_me: failed program was:" >&5
5278 sed 's/^/| /' conftest.$ac_ext >&5
5280 { $as_echo "$as_me:$LINENO: result: no: PYTHON DISABLED" >&5
5281 $as_echo "no: PYTHON DISABLED" >&6; }; python_ok=no
5284 rm -rf conftest.dSYM
5285 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5286 conftest$ac_exeext conftest.$ac_ext
5287 CFLAGS=$cflags_save
5288 LIBS=$libs_save
5289 if test $python_ok = yes; then
5290 cat >>confdefs.h <<\_ACEOF
5291 #define FEAT_PYTHON 1
5292 _ACEOF
5294 else
5295 LIBS=$libs_save_old
5296 PYTHON_SRC=
5297 PYTHON_OBJ=
5298 PYTHON_LIBS=
5299 PYTHON_CFLAGS=
5303 else
5304 { $as_echo "$as_me:$LINENO: result: too old" >&5
5305 $as_echo "too old" >&6; }
5316 { $as_echo "$as_me:$LINENO: checking --enable-tclinterp argument" >&5
5317 $as_echo_n "checking --enable-tclinterp argument... " >&6; }
5318 # Check whether --enable-tclinterp was given.
5319 if test "${enable_tclinterp+set}" = set; then
5320 enableval=$enable_tclinterp;
5321 else
5322 enable_tclinterp="no"
5325 { $as_echo "$as_me:$LINENO: result: $enable_tclinterp" >&5
5326 $as_echo "$enable_tclinterp" >&6; }
5328 if test "$enable_tclinterp" = "yes"; then
5330 { $as_echo "$as_me:$LINENO: checking --with-tclsh argument" >&5
5331 $as_echo_n "checking --with-tclsh argument... " >&6; }
5333 # Check whether --with-tclsh was given.
5334 if test "${with_tclsh+set}" = set; then
5335 withval=$with_tclsh; tclsh_name="$withval"; { $as_echo "$as_me:$LINENO: result: $tclsh_name" >&5
5336 $as_echo "$tclsh_name" >&6; }
5337 else
5338 tclsh_name="tclsh8.5"; { $as_echo "$as_me:$LINENO: result: no" >&5
5339 $as_echo "no" >&6; }
5342 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5343 set dummy $tclsh_name; ac_word=$2
5344 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5345 $as_echo_n "checking for $ac_word... " >&6; }
5346 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5347 $as_echo_n "(cached) " >&6
5348 else
5349 case $vi_cv_path_tcl in
5350 [\\/]* | ?:[\\/]*)
5351 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5355 for as_dir in $PATH
5357 IFS=$as_save_IFS
5358 test -z "$as_dir" && as_dir=.
5359 for ac_exec_ext in '' $ac_executable_extensions; do
5360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5361 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5362 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5363 break 2
5365 done
5366 done
5367 IFS=$as_save_IFS
5370 esac
5372 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5373 if test -n "$vi_cv_path_tcl"; then
5374 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5375 $as_echo "$vi_cv_path_tcl" >&6; }
5376 else
5377 { $as_echo "$as_me:$LINENO: result: no" >&5
5378 $as_echo "no" >&6; }
5384 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.5"; then
5385 tclsh_name="tclsh8.4"
5386 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5387 set dummy $tclsh_name; ac_word=$2
5388 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5389 $as_echo_n "checking for $ac_word... " >&6; }
5390 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5391 $as_echo_n "(cached) " >&6
5392 else
5393 case $vi_cv_path_tcl in
5394 [\\/]* | ?:[\\/]*)
5395 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5399 for as_dir in $PATH
5401 IFS=$as_save_IFS
5402 test -z "$as_dir" && as_dir=.
5403 for ac_exec_ext in '' $ac_executable_extensions; do
5404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5405 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5406 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5407 break 2
5409 done
5410 done
5411 IFS=$as_save_IFS
5414 esac
5416 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5417 if test -n "$vi_cv_path_tcl"; then
5418 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5419 $as_echo "$vi_cv_path_tcl" >&6; }
5420 else
5421 { $as_echo "$as_me:$LINENO: result: no" >&5
5422 $as_echo "no" >&6; }
5427 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.4"; then
5428 tclsh_name="tclsh8.2"
5429 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5430 set dummy $tclsh_name; ac_word=$2
5431 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5432 $as_echo_n "checking for $ac_word... " >&6; }
5433 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5434 $as_echo_n "(cached) " >&6
5435 else
5436 case $vi_cv_path_tcl in
5437 [\\/]* | ?:[\\/]*)
5438 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5442 for as_dir in $PATH
5444 IFS=$as_save_IFS
5445 test -z "$as_dir" && as_dir=.
5446 for ac_exec_ext in '' $ac_executable_extensions; do
5447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5448 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5449 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5450 break 2
5452 done
5453 done
5454 IFS=$as_save_IFS
5457 esac
5459 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5460 if test -n "$vi_cv_path_tcl"; then
5461 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5462 $as_echo "$vi_cv_path_tcl" >&6; }
5463 else
5464 { $as_echo "$as_me:$LINENO: result: no" >&5
5465 $as_echo "no" >&6; }
5470 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.2"; then
5471 tclsh_name="tclsh8.0"
5472 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5473 set dummy $tclsh_name; ac_word=$2
5474 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5475 $as_echo_n "checking for $ac_word... " >&6; }
5476 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5477 $as_echo_n "(cached) " >&6
5478 else
5479 case $vi_cv_path_tcl in
5480 [\\/]* | ?:[\\/]*)
5481 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5485 for as_dir in $PATH
5487 IFS=$as_save_IFS
5488 test -z "$as_dir" && as_dir=.
5489 for ac_exec_ext in '' $ac_executable_extensions; do
5490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5491 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5492 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5493 break 2
5495 done
5496 done
5497 IFS=$as_save_IFS
5500 esac
5502 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5503 if test -n "$vi_cv_path_tcl"; then
5504 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5505 $as_echo "$vi_cv_path_tcl" >&6; }
5506 else
5507 { $as_echo "$as_me:$LINENO: result: no" >&5
5508 $as_echo "no" >&6; }
5513 if test "X$vi_cv_path_tcl" = "X"; then
5514 tclsh_name="tclsh"
5515 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5516 set dummy $tclsh_name; ac_word=$2
5517 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5518 $as_echo_n "checking for $ac_word... " >&6; }
5519 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5520 $as_echo_n "(cached) " >&6
5521 else
5522 case $vi_cv_path_tcl in
5523 [\\/]* | ?:[\\/]*)
5524 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5528 for as_dir in $PATH
5530 IFS=$as_save_IFS
5531 test -z "$as_dir" && as_dir=.
5532 for ac_exec_ext in '' $ac_executable_extensions; do
5533 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5534 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5535 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5536 break 2
5538 done
5539 done
5540 IFS=$as_save_IFS
5543 esac
5545 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5546 if test -n "$vi_cv_path_tcl"; then
5547 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5548 $as_echo "$vi_cv_path_tcl" >&6; }
5549 else
5550 { $as_echo "$as_me:$LINENO: result: no" >&5
5551 $as_echo "no" >&6; }
5556 if test "X$vi_cv_path_tcl" != "X"; then
5557 { $as_echo "$as_me:$LINENO: checking Tcl version" >&5
5558 $as_echo_n "checking Tcl version... " >&6; }
5559 if echo 'exit [expr [info tclversion] < 8.0]' | $vi_cv_path_tcl - ; then
5560 tclver=`echo 'puts [info tclversion]' | $vi_cv_path_tcl -`
5561 { $as_echo "$as_me:$LINENO: result: $tclver - OK" >&5
5562 $as_echo "$tclver - OK" >&6; };
5563 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 -`
5565 { $as_echo "$as_me:$LINENO: checking for location of Tcl include" >&5
5566 $as_echo_n "checking for location of Tcl include... " >&6; }
5567 if test "x$MACOSX" != "xyes"; then
5568 tclinc="$tclloc/include $tclloc/include/tcl $tclloc/include/tcl$tclver /usr/local/include /usr/local/include/tcl$tclver /usr/include /usr/include/tcl$tclver"
5569 else
5570 tclinc="/System/Library/Frameworks/Tcl.framework/Headers"
5572 TCL_INC=
5573 for try in $tclinc; do
5574 if test -f "$try/tcl.h"; then
5575 { $as_echo "$as_me:$LINENO: result: $try/tcl.h" >&5
5576 $as_echo "$try/tcl.h" >&6; }
5577 TCL_INC=$try
5578 break
5580 done
5581 if test -z "$TCL_INC"; then
5582 { $as_echo "$as_me:$LINENO: result: <not found>" >&5
5583 $as_echo "<not found>" >&6; }
5584 SKIP_TCL=YES
5586 if test -z "$SKIP_TCL"; then
5587 { $as_echo "$as_me:$LINENO: checking for location of tclConfig.sh script" >&5
5588 $as_echo_n "checking for location of tclConfig.sh script... " >&6; }
5589 if test "x$MACOSX" != "xyes"; then
5590 tclcnf=`echo $tclinc | sed s/include/lib/g`
5591 tclcnf="$tclcnf `echo $tclinc | sed s/include/lib64/g`"
5592 else
5593 tclcnf="/System/Library/Frameworks/Tcl.framework"
5595 for try in $tclcnf; do
5596 if test -f $try/tclConfig.sh; then
5597 { $as_echo "$as_me:$LINENO: result: $try/tclConfig.sh" >&5
5598 $as_echo "$try/tclConfig.sh" >&6; }
5599 . $try/tclConfig.sh
5600 TCL_LIBS=`eval echo "$TCL_LIB_SPEC $TCL_LIBS"`
5601 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'`
5602 break
5604 done
5605 if test -z "$TCL_LIBS"; then
5606 { $as_echo "$as_me:$LINENO: result: <not found>" >&5
5607 $as_echo "<not found>" >&6; }
5608 { $as_echo "$as_me:$LINENO: checking for Tcl library by myself" >&5
5609 $as_echo_n "checking for Tcl library by myself... " >&6; }
5610 tcllib=`echo $tclinc | sed s/include/lib/g`
5611 tcllib="$tcllib `echo $tclinc | sed s/include/lib64/g`"
5612 for ext in .so .a ; do
5613 for ver in "" $tclver ; do
5614 for try in $tcllib ; do
5615 trylib=tcl$ver$ext
5616 if test -f $try/lib$trylib ; then
5617 { $as_echo "$as_me:$LINENO: result: $try/lib$trylib" >&5
5618 $as_echo "$try/lib$trylib" >&6; }
5619 TCL_LIBS="-L$try -ltcl$ver -ldl -lm"
5620 if test "`(uname) 2>/dev/null`" = SunOS &&
5621 uname -r | grep '^5' >/dev/null; then
5622 TCL_LIBS="$TCL_LIBS -R $try"
5624 break 3
5626 done
5627 done
5628 done
5629 if test -z "$TCL_LIBS"; then
5630 { $as_echo "$as_me:$LINENO: result: <not found>" >&5
5631 $as_echo "<not found>" >&6; }
5632 SKIP_TCL=YES
5635 if test -z "$SKIP_TCL"; then
5636 cat >>confdefs.h <<\_ACEOF
5637 #define FEAT_TCL 1
5638 _ACEOF
5640 TCL_SRC=if_tcl.c
5641 TCL_OBJ=objects/if_tcl.o
5642 TCL_PRO=if_tcl.pro
5643 TCL_CFLAGS="-I$TCL_INC $TCL_DEFS"
5646 else
5647 { $as_echo "$as_me:$LINENO: result: too old; need Tcl version 8.0 or later" >&5
5648 $as_echo "too old; need Tcl version 8.0 or later" >&6; }
5658 { $as_echo "$as_me:$LINENO: checking --enable-rubyinterp argument" >&5
5659 $as_echo_n "checking --enable-rubyinterp argument... " >&6; }
5660 # Check whether --enable-rubyinterp was given.
5661 if test "${enable_rubyinterp+set}" = set; then
5662 enableval=$enable_rubyinterp;
5663 else
5664 enable_rubyinterp="no"
5667 { $as_echo "$as_me:$LINENO: result: $enable_rubyinterp" >&5
5668 $as_echo "$enable_rubyinterp" >&6; }
5669 if test "$enable_rubyinterp" = "yes"; then
5671 # Extract the first word of "ruby", so it can be a program name with args.
5672 set dummy ruby; ac_word=$2
5673 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5674 $as_echo_n "checking for $ac_word... " >&6; }
5675 if test "${ac_cv_path_vi_cv_path_ruby+set}" = set; then
5676 $as_echo_n "(cached) " >&6
5677 else
5678 case $vi_cv_path_ruby in
5679 [\\/]* | ?:[\\/]*)
5680 ac_cv_path_vi_cv_path_ruby="$vi_cv_path_ruby" # Let the user override the test with a path.
5683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5684 for as_dir in $PATH
5686 IFS=$as_save_IFS
5687 test -z "$as_dir" && as_dir=.
5688 for ac_exec_ext in '' $ac_executable_extensions; do
5689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5690 ac_cv_path_vi_cv_path_ruby="$as_dir/$ac_word$ac_exec_ext"
5691 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5692 break 2
5694 done
5695 done
5696 IFS=$as_save_IFS
5699 esac
5701 vi_cv_path_ruby=$ac_cv_path_vi_cv_path_ruby
5702 if test -n "$vi_cv_path_ruby"; then
5703 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_ruby" >&5
5704 $as_echo "$vi_cv_path_ruby" >&6; }
5705 else
5706 { $as_echo "$as_me:$LINENO: result: no" >&5
5707 $as_echo "no" >&6; }
5711 if test "X$vi_cv_path_ruby" != "X"; then
5712 { $as_echo "$as_me:$LINENO: checking Ruby version" >&5
5713 $as_echo_n "checking Ruby version... " >&6; }
5714 if $vi_cv_path_ruby -e '(VERSION rescue RUBY_VERSION) >= "1.6.0" or exit 1' >/dev/null 2>/dev/null; then
5715 { $as_echo "$as_me:$LINENO: result: OK" >&5
5716 $as_echo "OK" >&6; }
5717 { $as_echo "$as_me:$LINENO: checking Ruby header files" >&5
5718 $as_echo_n "checking Ruby header files... " >&6; }
5719 rubyhdrdir=`$vi_cv_path_ruby -r mkmf -e 'print Config::CONFIG["archdir"] || $hdrdir' 2>/dev/null`
5720 if test "X$rubyhdrdir" != "X"; then
5721 { $as_echo "$as_me:$LINENO: result: $rubyhdrdir" >&5
5722 $as_echo "$rubyhdrdir" >&6; }
5723 RUBY_CFLAGS="-I$rubyhdrdir"
5724 rubylibs=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LIBS"]'`
5725 if test "X$rubylibs" != "X"; then
5726 RUBY_LIBS="$rubylibs"
5728 librubyarg=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["LIBRUBYARG"])'`
5729 if test -f "$rubyhdrdir/$librubyarg"; then
5730 librubyarg="$rubyhdrdir/$librubyarg"
5731 else
5732 rubylibdir=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["libdir"])'`
5733 if test -f "$rubylibdir/$librubyarg"; then
5734 librubyarg="$rubylibdir/$librubyarg"
5735 elif test "$librubyarg" = "libruby.a"; then
5736 librubyarg="-lruby"
5737 else
5738 librubyarg=`$vi_cv_path_ruby -r rbconfig -e "print '$librubyarg'.gsub(/-L\./, %'-L#{Config.expand(Config::CONFIG[\"libdir\"])}')"`
5742 if test "X$librubyarg" != "X"; then
5743 RUBY_LIBS="$librubyarg $RUBY_LIBS"
5745 rubyldflags=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LDFLAGS"]'`
5746 if test "X$rubyldflags" != "X"; then
5747 LDFLAGS="$rubyldflags $LDFLAGS"
5749 RUBY_SRC="if_ruby.c"
5750 RUBY_OBJ="objects/if_ruby.o"
5751 RUBY_PRO="if_ruby.pro"
5752 cat >>confdefs.h <<\_ACEOF
5753 #define FEAT_RUBY 1
5754 _ACEOF
5756 else
5757 { $as_echo "$as_me:$LINENO: result: not found" >&5
5758 $as_echo "not found" >&6; }
5760 else
5761 { $as_echo "$as_me:$LINENO: result: too old; need Ruby version 1.6.0 or later" >&5
5762 $as_echo "too old; need Ruby version 1.6.0 or later" >&6; }
5772 { $as_echo "$as_me:$LINENO: checking --enable-cscope argument" >&5
5773 $as_echo_n "checking --enable-cscope argument... " >&6; }
5774 # Check whether --enable-cscope was given.
5775 if test "${enable_cscope+set}" = set; then
5776 enableval=$enable_cscope;
5777 else
5778 enable_cscope="no"
5781 { $as_echo "$as_me:$LINENO: result: $enable_cscope" >&5
5782 $as_echo "$enable_cscope" >&6; }
5783 if test "$enable_cscope" = "yes"; then
5784 cat >>confdefs.h <<\_ACEOF
5785 #define FEAT_CSCOPE 1
5786 _ACEOF
5790 { $as_echo "$as_me:$LINENO: checking --enable-workshop argument" >&5
5791 $as_echo_n "checking --enable-workshop argument... " >&6; }
5792 # Check whether --enable-workshop was given.
5793 if test "${enable_workshop+set}" = set; then
5794 enableval=$enable_workshop;
5795 else
5796 enable_workshop="no"
5799 { $as_echo "$as_me:$LINENO: result: $enable_workshop" >&5
5800 $as_echo "$enable_workshop" >&6; }
5801 if test "$enable_workshop" = "yes"; then
5802 cat >>confdefs.h <<\_ACEOF
5803 #define FEAT_SUN_WORKSHOP 1
5804 _ACEOF
5806 WORKSHOP_SRC="workshop.c integration.c"
5808 WORKSHOP_OBJ="objects/workshop.o objects/integration.o"
5810 if test "${enable_gui-xxx}" = xxx; then
5811 enable_gui=motif
5815 { $as_echo "$as_me:$LINENO: checking --disable-netbeans argument" >&5
5816 $as_echo_n "checking --disable-netbeans argument... " >&6; }
5817 # Check whether --enable-netbeans was given.
5818 if test "${enable_netbeans+set}" = set; then
5819 enableval=$enable_netbeans;
5820 else
5821 enable_netbeans="yes"
5824 if test "$enable_netbeans" = "yes"; then
5825 { $as_echo "$as_me:$LINENO: result: no" >&5
5826 $as_echo "no" >&6; }
5828 { $as_echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
5829 $as_echo_n "checking for socket in -lsocket... " >&6; }
5830 if test "${ac_cv_lib_socket_socket+set}" = set; then
5831 $as_echo_n "(cached) " >&6
5832 else
5833 ac_check_lib_save_LIBS=$LIBS
5834 LIBS="-lsocket $LIBS"
5835 cat >conftest.$ac_ext <<_ACEOF
5836 /* confdefs.h. */
5837 _ACEOF
5838 cat confdefs.h >>conftest.$ac_ext
5839 cat >>conftest.$ac_ext <<_ACEOF
5840 /* end confdefs.h. */
5842 /* Override any GCC internal prototype to avoid an error.
5843 Use char because int might match the return type of a GCC
5844 builtin and then its argument prototype would still apply. */
5845 #ifdef __cplusplus
5846 extern "C"
5847 #endif
5848 char socket ();
5850 main ()
5852 return socket ();
5854 return 0;
5856 _ACEOF
5857 rm -f conftest.$ac_objext conftest$ac_exeext
5858 if { (ac_try="$ac_link"
5859 case "(($ac_try" in
5860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5861 *) ac_try_echo=$ac_try;;
5862 esac
5863 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5864 $as_echo "$ac_try_echo") >&5
5865 (eval "$ac_link") 2>conftest.er1
5866 ac_status=$?
5867 grep -v '^ *+' conftest.er1 >conftest.err
5868 rm -f conftest.er1
5869 cat conftest.err >&5
5870 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871 (exit $ac_status); } && {
5872 test -z "$ac_c_werror_flag" ||
5873 test ! -s conftest.err
5874 } && test -s conftest$ac_exeext && {
5875 test "$cross_compiling" = yes ||
5876 $as_test_x conftest$ac_exeext
5877 }; then
5878 ac_cv_lib_socket_socket=yes
5879 else
5880 $as_echo "$as_me: failed program was:" >&5
5881 sed 's/^/| /' conftest.$ac_ext >&5
5883 ac_cv_lib_socket_socket=no
5886 rm -rf conftest.dSYM
5887 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5888 conftest$ac_exeext conftest.$ac_ext
5889 LIBS=$ac_check_lib_save_LIBS
5891 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
5892 $as_echo "$ac_cv_lib_socket_socket" >&6; }
5893 if test $ac_cv_lib_socket_socket = yes; then
5894 cat >>confdefs.h <<_ACEOF
5895 #define HAVE_LIBSOCKET 1
5896 _ACEOF
5898 LIBS="-lsocket $LIBS"
5903 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5904 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
5905 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5906 $as_echo_n "(cached) " >&6
5907 else
5908 ac_check_lib_save_LIBS=$LIBS
5909 LIBS="-lnsl $LIBS"
5910 cat >conftest.$ac_ext <<_ACEOF
5911 /* confdefs.h. */
5912 _ACEOF
5913 cat confdefs.h >>conftest.$ac_ext
5914 cat >>conftest.$ac_ext <<_ACEOF
5915 /* end confdefs.h. */
5917 /* Override any GCC internal prototype to avoid an error.
5918 Use char because int might match the return type of a GCC
5919 builtin and then its argument prototype would still apply. */
5920 #ifdef __cplusplus
5921 extern "C"
5922 #endif
5923 char gethostbyname ();
5925 main ()
5927 return gethostbyname ();
5929 return 0;
5931 _ACEOF
5932 rm -f conftest.$ac_objext conftest$ac_exeext
5933 if { (ac_try="$ac_link"
5934 case "(($ac_try" in
5935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5936 *) ac_try_echo=$ac_try;;
5937 esac
5938 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5939 $as_echo "$ac_try_echo") >&5
5940 (eval "$ac_link") 2>conftest.er1
5941 ac_status=$?
5942 grep -v '^ *+' conftest.er1 >conftest.err
5943 rm -f conftest.er1
5944 cat conftest.err >&5
5945 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5946 (exit $ac_status); } && {
5947 test -z "$ac_c_werror_flag" ||
5948 test ! -s conftest.err
5949 } && test -s conftest$ac_exeext && {
5950 test "$cross_compiling" = yes ||
5951 $as_test_x conftest$ac_exeext
5952 }; then
5953 ac_cv_lib_nsl_gethostbyname=yes
5954 else
5955 $as_echo "$as_me: failed program was:" >&5
5956 sed 's/^/| /' conftest.$ac_ext >&5
5958 ac_cv_lib_nsl_gethostbyname=no
5961 rm -rf conftest.dSYM
5962 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5963 conftest$ac_exeext conftest.$ac_ext
5964 LIBS=$ac_check_lib_save_LIBS
5966 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5967 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
5968 if test $ac_cv_lib_nsl_gethostbyname = yes; then
5969 cat >>confdefs.h <<_ACEOF
5970 #define HAVE_LIBNSL 1
5971 _ACEOF
5973 LIBS="-lnsl $LIBS"
5977 { $as_echo "$as_me:$LINENO: checking whether compiling netbeans integration is possible" >&5
5978 $as_echo_n "checking whether compiling netbeans integration is possible... " >&6; }
5979 cat >conftest.$ac_ext <<_ACEOF
5980 /* confdefs.h. */
5981 _ACEOF
5982 cat confdefs.h >>conftest.$ac_ext
5983 cat >>conftest.$ac_ext <<_ACEOF
5984 /* end confdefs.h. */
5986 #include <stdio.h>
5987 #include <stdlib.h>
5988 #include <stdarg.h>
5989 #include <fcntl.h>
5990 #include <netdb.h>
5991 #include <netinet/in.h>
5992 #include <errno.h>
5993 #include <sys/types.h>
5994 #include <sys/socket.h>
5995 /* Check bitfields */
5996 struct nbbuf {
5997 unsigned int initDone:1;
5998 ushort signmaplen;
6002 main ()
6005 /* Check creating a socket. */
6006 struct sockaddr_in server;
6007 (void)socket(AF_INET, SOCK_STREAM, 0);
6008 (void)htons(100);
6009 (void)gethostbyname("microsoft.com");
6010 if (errno == ECONNREFUSED)
6011 (void)connect(1, (struct sockaddr *)&server, sizeof(server));
6014 return 0;
6016 _ACEOF
6017 rm -f conftest.$ac_objext conftest$ac_exeext
6018 if { (ac_try="$ac_link"
6019 case "(($ac_try" in
6020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6021 *) ac_try_echo=$ac_try;;
6022 esac
6023 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6024 $as_echo "$ac_try_echo") >&5
6025 (eval "$ac_link") 2>conftest.er1
6026 ac_status=$?
6027 grep -v '^ *+' conftest.er1 >conftest.err
6028 rm -f conftest.er1
6029 cat conftest.err >&5
6030 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6031 (exit $ac_status); } && {
6032 test -z "$ac_c_werror_flag" ||
6033 test ! -s conftest.err
6034 } && test -s conftest$ac_exeext && {
6035 test "$cross_compiling" = yes ||
6036 $as_test_x conftest$ac_exeext
6037 }; then
6038 { $as_echo "$as_me:$LINENO: result: yes" >&5
6039 $as_echo "yes" >&6; }
6040 else
6041 $as_echo "$as_me: failed program was:" >&5
6042 sed 's/^/| /' conftest.$ac_ext >&5
6044 { $as_echo "$as_me:$LINENO: result: no" >&5
6045 $as_echo "no" >&6; }; enable_netbeans="no"
6048 rm -rf conftest.dSYM
6049 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6050 conftest$ac_exeext conftest.$ac_ext
6051 else
6052 { $as_echo "$as_me:$LINENO: result: yes" >&5
6053 $as_echo "yes" >&6; }
6055 if test "$enable_netbeans" = "yes"; then
6056 cat >>confdefs.h <<\_ACEOF
6057 #define FEAT_NETBEANS_INTG 1
6058 _ACEOF
6060 NETBEANS_SRC="netbeans.c"
6062 NETBEANS_OBJ="objects/netbeans.o"
6066 { $as_echo "$as_me:$LINENO: checking --enable-sniff argument" >&5
6067 $as_echo_n "checking --enable-sniff argument... " >&6; }
6068 # Check whether --enable-sniff was given.
6069 if test "${enable_sniff+set}" = set; then
6070 enableval=$enable_sniff;
6071 else
6072 enable_sniff="no"
6075 { $as_echo "$as_me:$LINENO: result: $enable_sniff" >&5
6076 $as_echo "$enable_sniff" >&6; }
6077 if test "$enable_sniff" = "yes"; then
6078 cat >>confdefs.h <<\_ACEOF
6079 #define FEAT_SNIFF 1
6080 _ACEOF
6082 SNIFF_SRC="if_sniff.c"
6084 SNIFF_OBJ="objects/if_sniff.o"
6088 { $as_echo "$as_me:$LINENO: checking --enable-multibyte argument" >&5
6089 $as_echo_n "checking --enable-multibyte argument... " >&6; }
6090 # Check whether --enable-multibyte was given.
6091 if test "${enable_multibyte+set}" = set; then
6092 enableval=$enable_multibyte;
6093 else
6094 enable_multibyte="no"
6097 { $as_echo "$as_me:$LINENO: result: $enable_multibyte" >&5
6098 $as_echo "$enable_multibyte" >&6; }
6099 if test "$enable_multibyte" = "yes"; then
6100 cat >>confdefs.h <<\_ACEOF
6101 #define FEAT_MBYTE 1
6102 _ACEOF
6106 { $as_echo "$as_me:$LINENO: checking --enable-hangulinput argument" >&5
6107 $as_echo_n "checking --enable-hangulinput argument... " >&6; }
6108 # Check whether --enable-hangulinput was given.
6109 if test "${enable_hangulinput+set}" = set; then
6110 enableval=$enable_hangulinput;
6111 else
6112 enable_hangulinput="no"
6115 { $as_echo "$as_me:$LINENO: result: $enable_hangulinput" >&5
6116 $as_echo "$enable_hangulinput" >&6; }
6118 { $as_echo "$as_me:$LINENO: checking --enable-xim argument" >&5
6119 $as_echo_n "checking --enable-xim argument... " >&6; }
6120 # Check whether --enable-xim was given.
6121 if test "${enable_xim+set}" = set; then
6122 enableval=$enable_xim; { $as_echo "$as_me:$LINENO: result: $enable_xim" >&5
6123 $as_echo "$enable_xim" >&6; }
6124 else
6125 enable_xim="auto"; { $as_echo "$as_me:$LINENO: result: defaulting to auto" >&5
6126 $as_echo "defaulting to auto" >&6; }
6130 { $as_echo "$as_me:$LINENO: checking --enable-fontset argument" >&5
6131 $as_echo_n "checking --enable-fontset argument... " >&6; }
6132 # Check whether --enable-fontset was given.
6133 if test "${enable_fontset+set}" = set; then
6134 enableval=$enable_fontset;
6135 else
6136 enable_fontset="no"
6139 { $as_echo "$as_me:$LINENO: result: $enable_fontset" >&5
6140 $as_echo "$enable_fontset" >&6; }
6142 test -z "$with_x" && with_x=yes
6143 test "${enable_gui-yes}" != no -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && with_x=yes
6144 if test "$with_x" = no; then
6145 { $as_echo "$as_me:$LINENO: result: defaulting to: don't HAVE_X11" >&5
6146 $as_echo "defaulting to: don't HAVE_X11" >&6; }
6147 else
6149 # Extract the first word of "xmkmf", so it can be a program name with args.
6150 set dummy xmkmf; ac_word=$2
6151 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6152 $as_echo_n "checking for $ac_word... " >&6; }
6153 if test "${ac_cv_path_xmkmfpath+set}" = set; then
6154 $as_echo_n "(cached) " >&6
6155 else
6156 case $xmkmfpath in
6157 [\\/]* | ?:[\\/]*)
6158 ac_cv_path_xmkmfpath="$xmkmfpath" # Let the user override the test with a path.
6161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6162 for as_dir in $PATH
6164 IFS=$as_save_IFS
6165 test -z "$as_dir" && as_dir=.
6166 for ac_exec_ext in '' $ac_executable_extensions; do
6167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6168 ac_cv_path_xmkmfpath="$as_dir/$ac_word$ac_exec_ext"
6169 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6170 break 2
6172 done
6173 done
6174 IFS=$as_save_IFS
6177 esac
6179 xmkmfpath=$ac_cv_path_xmkmfpath
6180 if test -n "$xmkmfpath"; then
6181 { $as_echo "$as_me:$LINENO: result: $xmkmfpath" >&5
6182 $as_echo "$xmkmfpath" >&6; }
6183 else
6184 { $as_echo "$as_me:$LINENO: result: no" >&5
6185 $as_echo "no" >&6; }
6190 { $as_echo "$as_me:$LINENO: checking for X" >&5
6191 $as_echo_n "checking for X... " >&6; }
6194 # Check whether --with-x was given.
6195 if test "${with_x+set}" = set; then
6196 withval=$with_x;
6199 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6200 if test "x$with_x" = xno; then
6201 # The user explicitly disabled X.
6202 have_x=disabled
6203 else
6204 case $x_includes,$x_libraries in #(
6205 *\'*) { { $as_echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
6206 $as_echo "$as_me: error: Cannot use X directory names containing '" >&2;}
6207 { (exit 1); exit 1; }; };; #(
6208 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
6209 $as_echo_n "(cached) " >&6
6210 else
6211 # One or both of the vars are not set, and there is no cached value.
6212 ac_x_includes=no ac_x_libraries=no
6213 rm -f -r conftest.dir
6214 if mkdir conftest.dir; then
6215 cd conftest.dir
6216 cat >Imakefile <<'_ACEOF'
6217 incroot:
6218 @echo incroot='${INCROOT}'
6219 usrlibdir:
6220 @echo usrlibdir='${USRLIBDIR}'
6221 libdir:
6222 @echo libdir='${LIBDIR}'
6223 _ACEOF
6224 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
6225 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6226 for ac_var in incroot usrlibdir libdir; do
6227 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
6228 done
6229 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6230 for ac_extension in a so sl dylib la dll; do
6231 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
6232 test -f "$ac_im_libdir/libX11.$ac_extension"; then
6233 ac_im_usrlibdir=$ac_im_libdir; break
6235 done
6236 # Screen out bogus values from the imake configuration. They are
6237 # bogus both because they are the default anyway, and because
6238 # using them would break gcc on systems where it needs fixed includes.
6239 case $ac_im_incroot in
6240 /usr/include) ac_x_includes= ;;
6241 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6242 esac
6243 case $ac_im_usrlibdir in
6244 /usr/lib | /lib) ;;
6245 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6246 esac
6248 cd ..
6249 rm -f -r conftest.dir
6252 # Standard set of common directories for X headers.
6253 # Check X11 before X11Rn because it is often a symlink to the current release.
6254 ac_x_header_dirs='
6255 /usr/X11/include
6256 /usr/X11R6/include
6257 /usr/X11R5/include
6258 /usr/X11R4/include
6260 /usr/include/X11
6261 /usr/include/X11R6
6262 /usr/include/X11R5
6263 /usr/include/X11R4
6265 /usr/local/X11/include
6266 /usr/local/X11R6/include
6267 /usr/local/X11R5/include
6268 /usr/local/X11R4/include
6270 /usr/local/include/X11
6271 /usr/local/include/X11R6
6272 /usr/local/include/X11R5
6273 /usr/local/include/X11R4
6275 /usr/X386/include
6276 /usr/x386/include
6277 /usr/XFree86/include/X11
6279 /usr/include
6280 /usr/local/include
6281 /usr/unsupported/include
6282 /usr/athena/include
6283 /usr/local/x11r5/include
6284 /usr/lpp/Xamples/include
6286 /usr/openwin/include
6287 /usr/openwin/share/include'
6289 if test "$ac_x_includes" = no; then
6290 # Guess where to find include files, by looking for Xlib.h.
6291 # First, try using that file with no special directory specified.
6292 cat >conftest.$ac_ext <<_ACEOF
6293 /* confdefs.h. */
6294 _ACEOF
6295 cat confdefs.h >>conftest.$ac_ext
6296 cat >>conftest.$ac_ext <<_ACEOF
6297 /* end confdefs.h. */
6298 #include <X11/Xlib.h>
6299 _ACEOF
6300 if { (ac_try="$ac_cpp conftest.$ac_ext"
6301 case "(($ac_try" in
6302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6303 *) ac_try_echo=$ac_try;;
6304 esac
6305 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6306 $as_echo "$ac_try_echo") >&5
6307 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6308 ac_status=$?
6309 grep -v '^ *+' conftest.er1 >conftest.err
6310 rm -f conftest.er1
6311 cat conftest.err >&5
6312 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6313 (exit $ac_status); } >/dev/null && {
6314 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6315 test ! -s conftest.err
6316 }; then
6317 # We can compile using X headers with no special include directory.
6318 ac_x_includes=
6319 else
6320 $as_echo "$as_me: failed program was:" >&5
6321 sed 's/^/| /' conftest.$ac_ext >&5
6323 for ac_dir in $ac_x_header_dirs; do
6324 if test -r "$ac_dir/X11/Xlib.h"; then
6325 ac_x_includes=$ac_dir
6326 break
6328 done
6331 rm -f conftest.err conftest.$ac_ext
6332 fi # $ac_x_includes = no
6334 if test "$ac_x_libraries" = no; then
6335 # Check for the libraries.
6336 # See if we find them without any special options.
6337 # Don't add to $LIBS permanently.
6338 ac_save_LIBS=$LIBS
6339 LIBS="-lX11 $LIBS"
6340 cat >conftest.$ac_ext <<_ACEOF
6341 /* confdefs.h. */
6342 _ACEOF
6343 cat confdefs.h >>conftest.$ac_ext
6344 cat >>conftest.$ac_ext <<_ACEOF
6345 /* end confdefs.h. */
6346 #include <X11/Xlib.h>
6348 main ()
6350 XrmInitialize ()
6352 return 0;
6354 _ACEOF
6355 rm -f conftest.$ac_objext conftest$ac_exeext
6356 if { (ac_try="$ac_link"
6357 case "(($ac_try" in
6358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6359 *) ac_try_echo=$ac_try;;
6360 esac
6361 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6362 $as_echo "$ac_try_echo") >&5
6363 (eval "$ac_link") 2>conftest.er1
6364 ac_status=$?
6365 grep -v '^ *+' conftest.er1 >conftest.err
6366 rm -f conftest.er1
6367 cat conftest.err >&5
6368 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6369 (exit $ac_status); } && {
6370 test -z "$ac_c_werror_flag" ||
6371 test ! -s conftest.err
6372 } && test -s conftest$ac_exeext && {
6373 test "$cross_compiling" = yes ||
6374 $as_test_x conftest$ac_exeext
6375 }; then
6376 LIBS=$ac_save_LIBS
6377 # We can link X programs with no special library path.
6378 ac_x_libraries=
6379 else
6380 $as_echo "$as_me: failed program was:" >&5
6381 sed 's/^/| /' conftest.$ac_ext >&5
6383 LIBS=$ac_save_LIBS
6384 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6386 # Don't even attempt the hair of trying to link an X program!
6387 for ac_extension in a so sl dylib la dll; do
6388 if test -r "$ac_dir/libX11.$ac_extension"; then
6389 ac_x_libraries=$ac_dir
6390 break 2
6392 done
6393 done
6396 rm -rf conftest.dSYM
6397 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6398 conftest$ac_exeext conftest.$ac_ext
6399 fi # $ac_x_libraries = no
6401 case $ac_x_includes,$ac_x_libraries in #(
6402 no,* | *,no | *\'*)
6403 # Didn't find X, or a directory has "'" in its name.
6404 ac_cv_have_x="have_x=no";; #(
6406 # Record where we found X for the cache.
6407 ac_cv_have_x="have_x=yes\
6408 ac_x_includes='$ac_x_includes'\
6409 ac_x_libraries='$ac_x_libraries'"
6410 esac
6412 ;; #(
6413 *) have_x=yes;;
6414 esac
6415 eval "$ac_cv_have_x"
6416 fi # $with_x != no
6418 if test "$have_x" != yes; then
6419 { $as_echo "$as_me:$LINENO: result: $have_x" >&5
6420 $as_echo "$have_x" >&6; }
6421 no_x=yes
6422 else
6423 # If each of the values was on the command line, it overrides each guess.
6424 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6425 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6426 # Update the cache value to reflect the command line values.
6427 ac_cv_have_x="have_x=yes\
6428 ac_x_includes='$x_includes'\
6429 ac_x_libraries='$x_libraries'"
6430 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6431 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
6434 if test "$no_x" = yes; then
6435 # Not all programs may use this symbol, but it does not hurt to define it.
6437 cat >>confdefs.h <<\_ACEOF
6438 #define X_DISPLAY_MISSING 1
6439 _ACEOF
6441 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6442 else
6443 if test -n "$x_includes"; then
6444 X_CFLAGS="$X_CFLAGS -I$x_includes"
6447 # It would also be nice to do this for all -L options, not just this one.
6448 if test -n "$x_libraries"; then
6449 X_LIBS="$X_LIBS -L$x_libraries"
6450 # For Solaris; some versions of Sun CC require a space after -R and
6451 # others require no space. Words are not sufficient . . . .
6452 { $as_echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
6453 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
6454 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
6455 ac_xsave_c_werror_flag=$ac_c_werror_flag
6456 ac_c_werror_flag=yes
6457 cat >conftest.$ac_ext <<_ACEOF
6458 /* confdefs.h. */
6459 _ACEOF
6460 cat confdefs.h >>conftest.$ac_ext
6461 cat >>conftest.$ac_ext <<_ACEOF
6462 /* end confdefs.h. */
6465 main ()
6469 return 0;
6471 _ACEOF
6472 rm -f conftest.$ac_objext conftest$ac_exeext
6473 if { (ac_try="$ac_link"
6474 case "(($ac_try" in
6475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6476 *) ac_try_echo=$ac_try;;
6477 esac
6478 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6479 $as_echo "$ac_try_echo") >&5
6480 (eval "$ac_link") 2>conftest.er1
6481 ac_status=$?
6482 grep -v '^ *+' conftest.er1 >conftest.err
6483 rm -f conftest.er1
6484 cat conftest.err >&5
6485 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6486 (exit $ac_status); } && {
6487 test -z "$ac_c_werror_flag" ||
6488 test ! -s conftest.err
6489 } && test -s conftest$ac_exeext && {
6490 test "$cross_compiling" = yes ||
6491 $as_test_x conftest$ac_exeext
6492 }; then
6493 { $as_echo "$as_me:$LINENO: result: no" >&5
6494 $as_echo "no" >&6; }
6495 X_LIBS="$X_LIBS -R$x_libraries"
6496 else
6497 $as_echo "$as_me: failed program was:" >&5
6498 sed 's/^/| /' conftest.$ac_ext >&5
6500 LIBS="$ac_xsave_LIBS -R $x_libraries"
6501 cat >conftest.$ac_ext <<_ACEOF
6502 /* confdefs.h. */
6503 _ACEOF
6504 cat confdefs.h >>conftest.$ac_ext
6505 cat >>conftest.$ac_ext <<_ACEOF
6506 /* end confdefs.h. */
6509 main ()
6513 return 0;
6515 _ACEOF
6516 rm -f conftest.$ac_objext conftest$ac_exeext
6517 if { (ac_try="$ac_link"
6518 case "(($ac_try" in
6519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6520 *) ac_try_echo=$ac_try;;
6521 esac
6522 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6523 $as_echo "$ac_try_echo") >&5
6524 (eval "$ac_link") 2>conftest.er1
6525 ac_status=$?
6526 grep -v '^ *+' conftest.er1 >conftest.err
6527 rm -f conftest.er1
6528 cat conftest.err >&5
6529 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6530 (exit $ac_status); } && {
6531 test -z "$ac_c_werror_flag" ||
6532 test ! -s conftest.err
6533 } && test -s conftest$ac_exeext && {
6534 test "$cross_compiling" = yes ||
6535 $as_test_x conftest$ac_exeext
6536 }; then
6537 { $as_echo "$as_me:$LINENO: result: yes" >&5
6538 $as_echo "yes" >&6; }
6539 X_LIBS="$X_LIBS -R $x_libraries"
6540 else
6541 $as_echo "$as_me: failed program was:" >&5
6542 sed 's/^/| /' conftest.$ac_ext >&5
6544 { $as_echo "$as_me:$LINENO: result: neither works" >&5
6545 $as_echo "neither works" >&6; }
6548 rm -rf conftest.dSYM
6549 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6550 conftest$ac_exeext conftest.$ac_ext
6553 rm -rf conftest.dSYM
6554 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6555 conftest$ac_exeext conftest.$ac_ext
6556 ac_c_werror_flag=$ac_xsave_c_werror_flag
6557 LIBS=$ac_xsave_LIBS
6560 # Check for system-dependent libraries X programs must link with.
6561 # Do this before checking for the system-independent R6 libraries
6562 # (-lICE), since we may need -lsocket or whatever for X linking.
6564 if test "$ISC" = yes; then
6565 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
6566 else
6567 # Martyn Johnson says this is needed for Ultrix, if the X
6568 # libraries were built with DECnet support. And Karl Berry says
6569 # the Alpha needs dnet_stub (dnet does not exist).
6570 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
6571 cat >conftest.$ac_ext <<_ACEOF
6572 /* confdefs.h. */
6573 _ACEOF
6574 cat confdefs.h >>conftest.$ac_ext
6575 cat >>conftest.$ac_ext <<_ACEOF
6576 /* end confdefs.h. */
6578 /* Override any GCC internal prototype to avoid an error.
6579 Use char because int might match the return type of a GCC
6580 builtin and then its argument prototype would still apply. */
6581 #ifdef __cplusplus
6582 extern "C"
6583 #endif
6584 char XOpenDisplay ();
6586 main ()
6588 return XOpenDisplay ();
6590 return 0;
6592 _ACEOF
6593 rm -f conftest.$ac_objext conftest$ac_exeext
6594 if { (ac_try="$ac_link"
6595 case "(($ac_try" in
6596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6597 *) ac_try_echo=$ac_try;;
6598 esac
6599 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6600 $as_echo "$ac_try_echo") >&5
6601 (eval "$ac_link") 2>conftest.er1
6602 ac_status=$?
6603 grep -v '^ *+' conftest.er1 >conftest.err
6604 rm -f conftest.er1
6605 cat conftest.err >&5
6606 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6607 (exit $ac_status); } && {
6608 test -z "$ac_c_werror_flag" ||
6609 test ! -s conftest.err
6610 } && test -s conftest$ac_exeext && {
6611 test "$cross_compiling" = yes ||
6612 $as_test_x conftest$ac_exeext
6613 }; then
6615 else
6616 $as_echo "$as_me: failed program was:" >&5
6617 sed 's/^/| /' conftest.$ac_ext >&5
6619 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
6620 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
6621 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
6622 $as_echo_n "(cached) " >&6
6623 else
6624 ac_check_lib_save_LIBS=$LIBS
6625 LIBS="-ldnet $LIBS"
6626 cat >conftest.$ac_ext <<_ACEOF
6627 /* confdefs.h. */
6628 _ACEOF
6629 cat confdefs.h >>conftest.$ac_ext
6630 cat >>conftest.$ac_ext <<_ACEOF
6631 /* end confdefs.h. */
6633 /* Override any GCC internal prototype to avoid an error.
6634 Use char because int might match the return type of a GCC
6635 builtin and then its argument prototype would still apply. */
6636 #ifdef __cplusplus
6637 extern "C"
6638 #endif
6639 char dnet_ntoa ();
6641 main ()
6643 return dnet_ntoa ();
6645 return 0;
6647 _ACEOF
6648 rm -f conftest.$ac_objext conftest$ac_exeext
6649 if { (ac_try="$ac_link"
6650 case "(($ac_try" in
6651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6652 *) ac_try_echo=$ac_try;;
6653 esac
6654 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6655 $as_echo "$ac_try_echo") >&5
6656 (eval "$ac_link") 2>conftest.er1
6657 ac_status=$?
6658 grep -v '^ *+' conftest.er1 >conftest.err
6659 rm -f conftest.er1
6660 cat conftest.err >&5
6661 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6662 (exit $ac_status); } && {
6663 test -z "$ac_c_werror_flag" ||
6664 test ! -s conftest.err
6665 } && test -s conftest$ac_exeext && {
6666 test "$cross_compiling" = yes ||
6667 $as_test_x conftest$ac_exeext
6668 }; then
6669 ac_cv_lib_dnet_dnet_ntoa=yes
6670 else
6671 $as_echo "$as_me: failed program was:" >&5
6672 sed 's/^/| /' conftest.$ac_ext >&5
6674 ac_cv_lib_dnet_dnet_ntoa=no
6677 rm -rf conftest.dSYM
6678 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6679 conftest$ac_exeext conftest.$ac_ext
6680 LIBS=$ac_check_lib_save_LIBS
6682 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6683 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
6684 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
6685 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
6688 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
6689 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
6690 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
6691 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
6692 $as_echo_n "(cached) " >&6
6693 else
6694 ac_check_lib_save_LIBS=$LIBS
6695 LIBS="-ldnet_stub $LIBS"
6696 cat >conftest.$ac_ext <<_ACEOF
6697 /* confdefs.h. */
6698 _ACEOF
6699 cat confdefs.h >>conftest.$ac_ext
6700 cat >>conftest.$ac_ext <<_ACEOF
6701 /* end confdefs.h. */
6703 /* Override any GCC internal prototype to avoid an error.
6704 Use char because int might match the return type of a GCC
6705 builtin and then its argument prototype would still apply. */
6706 #ifdef __cplusplus
6707 extern "C"
6708 #endif
6709 char dnet_ntoa ();
6711 main ()
6713 return dnet_ntoa ();
6715 return 0;
6717 _ACEOF
6718 rm -f conftest.$ac_objext conftest$ac_exeext
6719 if { (ac_try="$ac_link"
6720 case "(($ac_try" in
6721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6722 *) ac_try_echo=$ac_try;;
6723 esac
6724 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6725 $as_echo "$ac_try_echo") >&5
6726 (eval "$ac_link") 2>conftest.er1
6727 ac_status=$?
6728 grep -v '^ *+' conftest.er1 >conftest.err
6729 rm -f conftest.er1
6730 cat conftest.err >&5
6731 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6732 (exit $ac_status); } && {
6733 test -z "$ac_c_werror_flag" ||
6734 test ! -s conftest.err
6735 } && test -s conftest$ac_exeext && {
6736 test "$cross_compiling" = yes ||
6737 $as_test_x conftest$ac_exeext
6738 }; then
6739 ac_cv_lib_dnet_stub_dnet_ntoa=yes
6740 else
6741 $as_echo "$as_me: failed program was:" >&5
6742 sed 's/^/| /' conftest.$ac_ext >&5
6744 ac_cv_lib_dnet_stub_dnet_ntoa=no
6747 rm -rf conftest.dSYM
6748 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6749 conftest$ac_exeext conftest.$ac_ext
6750 LIBS=$ac_check_lib_save_LIBS
6752 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
6753 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
6754 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
6755 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
6761 rm -rf conftest.dSYM
6762 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6763 conftest$ac_exeext conftest.$ac_ext
6764 LIBS="$ac_xsave_LIBS"
6766 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
6767 # to get the SysV transport functions.
6768 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
6769 # needs -lnsl.
6770 # The nsl library prevents programs from opening the X display
6771 # on Irix 5.2, according to T.E. Dickey.
6772 # The functions gethostbyname, getservbyname, and inet_addr are
6773 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
6774 { $as_echo "$as_me:$LINENO: checking for gethostbyname" >&5
6775 $as_echo_n "checking for gethostbyname... " >&6; }
6776 if test "${ac_cv_func_gethostbyname+set}" = set; then
6777 $as_echo_n "(cached) " >&6
6778 else
6779 cat >conftest.$ac_ext <<_ACEOF
6780 /* confdefs.h. */
6781 _ACEOF
6782 cat confdefs.h >>conftest.$ac_ext
6783 cat >>conftest.$ac_ext <<_ACEOF
6784 /* end confdefs.h. */
6785 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
6786 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6787 #define gethostbyname innocuous_gethostbyname
6789 /* System header to define __stub macros and hopefully few prototypes,
6790 which can conflict with char gethostbyname (); below.
6791 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6792 <limits.h> exists even on freestanding compilers. */
6794 #ifdef __STDC__
6795 # include <limits.h>
6796 #else
6797 # include <assert.h>
6798 #endif
6800 #undef gethostbyname
6802 /* Override any GCC internal prototype to avoid an error.
6803 Use char because int might match the return type of a GCC
6804 builtin and then its argument prototype would still apply. */
6805 #ifdef __cplusplus
6806 extern "C"
6807 #endif
6808 char gethostbyname ();
6809 /* The GNU C library defines this for functions which it implements
6810 to always fail with ENOSYS. Some functions are actually named
6811 something starting with __ and the normal name is an alias. */
6812 #if defined __stub_gethostbyname || defined __stub___gethostbyname
6813 choke me
6814 #endif
6817 main ()
6819 return gethostbyname ();
6821 return 0;
6823 _ACEOF
6824 rm -f conftest.$ac_objext conftest$ac_exeext
6825 if { (ac_try="$ac_link"
6826 case "(($ac_try" in
6827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6828 *) ac_try_echo=$ac_try;;
6829 esac
6830 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6831 $as_echo "$ac_try_echo") >&5
6832 (eval "$ac_link") 2>conftest.er1
6833 ac_status=$?
6834 grep -v '^ *+' conftest.er1 >conftest.err
6835 rm -f conftest.er1
6836 cat conftest.err >&5
6837 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6838 (exit $ac_status); } && {
6839 test -z "$ac_c_werror_flag" ||
6840 test ! -s conftest.err
6841 } && test -s conftest$ac_exeext && {
6842 test "$cross_compiling" = yes ||
6843 $as_test_x conftest$ac_exeext
6844 }; then
6845 ac_cv_func_gethostbyname=yes
6846 else
6847 $as_echo "$as_me: failed program was:" >&5
6848 sed 's/^/| /' conftest.$ac_ext >&5
6850 ac_cv_func_gethostbyname=no
6853 rm -rf conftest.dSYM
6854 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6855 conftest$ac_exeext conftest.$ac_ext
6857 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
6858 $as_echo "$ac_cv_func_gethostbyname" >&6; }
6860 if test $ac_cv_func_gethostbyname = no; then
6861 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6862 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
6863 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6864 $as_echo_n "(cached) " >&6
6865 else
6866 ac_check_lib_save_LIBS=$LIBS
6867 LIBS="-lnsl $LIBS"
6868 cat >conftest.$ac_ext <<_ACEOF
6869 /* confdefs.h. */
6870 _ACEOF
6871 cat confdefs.h >>conftest.$ac_ext
6872 cat >>conftest.$ac_ext <<_ACEOF
6873 /* end confdefs.h. */
6875 /* Override any GCC internal prototype to avoid an error.
6876 Use char because int might match the return type of a GCC
6877 builtin and then its argument prototype would still apply. */
6878 #ifdef __cplusplus
6879 extern "C"
6880 #endif
6881 char gethostbyname ();
6883 main ()
6885 return gethostbyname ();
6887 return 0;
6889 _ACEOF
6890 rm -f conftest.$ac_objext conftest$ac_exeext
6891 if { (ac_try="$ac_link"
6892 case "(($ac_try" in
6893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6894 *) ac_try_echo=$ac_try;;
6895 esac
6896 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6897 $as_echo "$ac_try_echo") >&5
6898 (eval "$ac_link") 2>conftest.er1
6899 ac_status=$?
6900 grep -v '^ *+' conftest.er1 >conftest.err
6901 rm -f conftest.er1
6902 cat conftest.err >&5
6903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6904 (exit $ac_status); } && {
6905 test -z "$ac_c_werror_flag" ||
6906 test ! -s conftest.err
6907 } && test -s conftest$ac_exeext && {
6908 test "$cross_compiling" = yes ||
6909 $as_test_x conftest$ac_exeext
6910 }; then
6911 ac_cv_lib_nsl_gethostbyname=yes
6912 else
6913 $as_echo "$as_me: failed program was:" >&5
6914 sed 's/^/| /' conftest.$ac_ext >&5
6916 ac_cv_lib_nsl_gethostbyname=no
6919 rm -rf conftest.dSYM
6920 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6921 conftest$ac_exeext conftest.$ac_ext
6922 LIBS=$ac_check_lib_save_LIBS
6924 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6925 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
6926 if test $ac_cv_lib_nsl_gethostbyname = yes; then
6927 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
6930 if test $ac_cv_lib_nsl_gethostbyname = no; then
6931 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
6932 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
6933 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
6934 $as_echo_n "(cached) " >&6
6935 else
6936 ac_check_lib_save_LIBS=$LIBS
6937 LIBS="-lbsd $LIBS"
6938 cat >conftest.$ac_ext <<_ACEOF
6939 /* confdefs.h. */
6940 _ACEOF
6941 cat confdefs.h >>conftest.$ac_ext
6942 cat >>conftest.$ac_ext <<_ACEOF
6943 /* end confdefs.h. */
6945 /* Override any GCC internal prototype to avoid an error.
6946 Use char because int might match the return type of a GCC
6947 builtin and then its argument prototype would still apply. */
6948 #ifdef __cplusplus
6949 extern "C"
6950 #endif
6951 char gethostbyname ();
6953 main ()
6955 return gethostbyname ();
6957 return 0;
6959 _ACEOF
6960 rm -f conftest.$ac_objext conftest$ac_exeext
6961 if { (ac_try="$ac_link"
6962 case "(($ac_try" in
6963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6964 *) ac_try_echo=$ac_try;;
6965 esac
6966 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6967 $as_echo "$ac_try_echo") >&5
6968 (eval "$ac_link") 2>conftest.er1
6969 ac_status=$?
6970 grep -v '^ *+' conftest.er1 >conftest.err
6971 rm -f conftest.er1
6972 cat conftest.err >&5
6973 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6974 (exit $ac_status); } && {
6975 test -z "$ac_c_werror_flag" ||
6976 test ! -s conftest.err
6977 } && test -s conftest$ac_exeext && {
6978 test "$cross_compiling" = yes ||
6979 $as_test_x conftest$ac_exeext
6980 }; then
6981 ac_cv_lib_bsd_gethostbyname=yes
6982 else
6983 $as_echo "$as_me: failed program was:" >&5
6984 sed 's/^/| /' conftest.$ac_ext >&5
6986 ac_cv_lib_bsd_gethostbyname=no
6989 rm -rf conftest.dSYM
6990 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6991 conftest$ac_exeext conftest.$ac_ext
6992 LIBS=$ac_check_lib_save_LIBS
6994 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
6995 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
6996 if test $ac_cv_lib_bsd_gethostbyname = yes; then
6997 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7003 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7004 # socket/setsockopt and other routines are undefined under SCO ODT
7005 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7006 # on later versions), says Simon Leinen: it contains gethostby*
7007 # variants that don't use the name server (or something). -lsocket
7008 # must be given before -lnsl if both are needed. We assume that
7009 # if connect needs -lnsl, so does gethostbyname.
7010 { $as_echo "$as_me:$LINENO: checking for connect" >&5
7011 $as_echo_n "checking for connect... " >&6; }
7012 if test "${ac_cv_func_connect+set}" = set; then
7013 $as_echo_n "(cached) " >&6
7014 else
7015 cat >conftest.$ac_ext <<_ACEOF
7016 /* confdefs.h. */
7017 _ACEOF
7018 cat confdefs.h >>conftest.$ac_ext
7019 cat >>conftest.$ac_ext <<_ACEOF
7020 /* end confdefs.h. */
7021 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
7022 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7023 #define connect innocuous_connect
7025 /* System header to define __stub macros and hopefully few prototypes,
7026 which can conflict with char connect (); below.
7027 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7028 <limits.h> exists even on freestanding compilers. */
7030 #ifdef __STDC__
7031 # include <limits.h>
7032 #else
7033 # include <assert.h>
7034 #endif
7036 #undef connect
7038 /* Override any GCC internal prototype to avoid an error.
7039 Use char because int might match the return type of a GCC
7040 builtin and then its argument prototype would still apply. */
7041 #ifdef __cplusplus
7042 extern "C"
7043 #endif
7044 char connect ();
7045 /* The GNU C library defines this for functions which it implements
7046 to always fail with ENOSYS. Some functions are actually named
7047 something starting with __ and the normal name is an alias. */
7048 #if defined __stub_connect || defined __stub___connect
7049 choke me
7050 #endif
7053 main ()
7055 return connect ();
7057 return 0;
7059 _ACEOF
7060 rm -f conftest.$ac_objext conftest$ac_exeext
7061 if { (ac_try="$ac_link"
7062 case "(($ac_try" in
7063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7064 *) ac_try_echo=$ac_try;;
7065 esac
7066 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7067 $as_echo "$ac_try_echo") >&5
7068 (eval "$ac_link") 2>conftest.er1
7069 ac_status=$?
7070 grep -v '^ *+' conftest.er1 >conftest.err
7071 rm -f conftest.er1
7072 cat conftest.err >&5
7073 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7074 (exit $ac_status); } && {
7075 test -z "$ac_c_werror_flag" ||
7076 test ! -s conftest.err
7077 } && test -s conftest$ac_exeext && {
7078 test "$cross_compiling" = yes ||
7079 $as_test_x conftest$ac_exeext
7080 }; then
7081 ac_cv_func_connect=yes
7082 else
7083 $as_echo "$as_me: failed program was:" >&5
7084 sed 's/^/| /' conftest.$ac_ext >&5
7086 ac_cv_func_connect=no
7089 rm -rf conftest.dSYM
7090 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7091 conftest$ac_exeext conftest.$ac_ext
7093 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
7094 $as_echo "$ac_cv_func_connect" >&6; }
7096 if test $ac_cv_func_connect = no; then
7097 { $as_echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
7098 $as_echo_n "checking for connect in -lsocket... " >&6; }
7099 if test "${ac_cv_lib_socket_connect+set}" = set; then
7100 $as_echo_n "(cached) " >&6
7101 else
7102 ac_check_lib_save_LIBS=$LIBS
7103 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7104 cat >conftest.$ac_ext <<_ACEOF
7105 /* confdefs.h. */
7106 _ACEOF
7107 cat confdefs.h >>conftest.$ac_ext
7108 cat >>conftest.$ac_ext <<_ACEOF
7109 /* end confdefs.h. */
7111 /* Override any GCC internal prototype to avoid an error.
7112 Use char because int might match the return type of a GCC
7113 builtin and then its argument prototype would still apply. */
7114 #ifdef __cplusplus
7115 extern "C"
7116 #endif
7117 char connect ();
7119 main ()
7121 return connect ();
7123 return 0;
7125 _ACEOF
7126 rm -f conftest.$ac_objext conftest$ac_exeext
7127 if { (ac_try="$ac_link"
7128 case "(($ac_try" in
7129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7130 *) ac_try_echo=$ac_try;;
7131 esac
7132 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7133 $as_echo "$ac_try_echo") >&5
7134 (eval "$ac_link") 2>conftest.er1
7135 ac_status=$?
7136 grep -v '^ *+' conftest.er1 >conftest.err
7137 rm -f conftest.er1
7138 cat conftest.err >&5
7139 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7140 (exit $ac_status); } && {
7141 test -z "$ac_c_werror_flag" ||
7142 test ! -s conftest.err
7143 } && test -s conftest$ac_exeext && {
7144 test "$cross_compiling" = yes ||
7145 $as_test_x conftest$ac_exeext
7146 }; then
7147 ac_cv_lib_socket_connect=yes
7148 else
7149 $as_echo "$as_me: failed program was:" >&5
7150 sed 's/^/| /' conftest.$ac_ext >&5
7152 ac_cv_lib_socket_connect=no
7155 rm -rf conftest.dSYM
7156 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7157 conftest$ac_exeext conftest.$ac_ext
7158 LIBS=$ac_check_lib_save_LIBS
7160 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
7161 $as_echo "$ac_cv_lib_socket_connect" >&6; }
7162 if test $ac_cv_lib_socket_connect = yes; then
7163 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7168 # Guillermo Gomez says -lposix is necessary on A/UX.
7169 { $as_echo "$as_me:$LINENO: checking for remove" >&5
7170 $as_echo_n "checking for remove... " >&6; }
7171 if test "${ac_cv_func_remove+set}" = set; then
7172 $as_echo_n "(cached) " >&6
7173 else
7174 cat >conftest.$ac_ext <<_ACEOF
7175 /* confdefs.h. */
7176 _ACEOF
7177 cat confdefs.h >>conftest.$ac_ext
7178 cat >>conftest.$ac_ext <<_ACEOF
7179 /* end confdefs.h. */
7180 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
7181 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7182 #define remove innocuous_remove
7184 /* System header to define __stub macros and hopefully few prototypes,
7185 which can conflict with char remove (); below.
7186 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7187 <limits.h> exists even on freestanding compilers. */
7189 #ifdef __STDC__
7190 # include <limits.h>
7191 #else
7192 # include <assert.h>
7193 #endif
7195 #undef remove
7197 /* Override any GCC internal prototype to avoid an error.
7198 Use char because int might match the return type of a GCC
7199 builtin and then its argument prototype would still apply. */
7200 #ifdef __cplusplus
7201 extern "C"
7202 #endif
7203 char remove ();
7204 /* The GNU C library defines this for functions which it implements
7205 to always fail with ENOSYS. Some functions are actually named
7206 something starting with __ and the normal name is an alias. */
7207 #if defined __stub_remove || defined __stub___remove
7208 choke me
7209 #endif
7212 main ()
7214 return remove ();
7216 return 0;
7218 _ACEOF
7219 rm -f conftest.$ac_objext conftest$ac_exeext
7220 if { (ac_try="$ac_link"
7221 case "(($ac_try" in
7222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7223 *) ac_try_echo=$ac_try;;
7224 esac
7225 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7226 $as_echo "$ac_try_echo") >&5
7227 (eval "$ac_link") 2>conftest.er1
7228 ac_status=$?
7229 grep -v '^ *+' conftest.er1 >conftest.err
7230 rm -f conftest.er1
7231 cat conftest.err >&5
7232 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7233 (exit $ac_status); } && {
7234 test -z "$ac_c_werror_flag" ||
7235 test ! -s conftest.err
7236 } && test -s conftest$ac_exeext && {
7237 test "$cross_compiling" = yes ||
7238 $as_test_x conftest$ac_exeext
7239 }; then
7240 ac_cv_func_remove=yes
7241 else
7242 $as_echo "$as_me: failed program was:" >&5
7243 sed 's/^/| /' conftest.$ac_ext >&5
7245 ac_cv_func_remove=no
7248 rm -rf conftest.dSYM
7249 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7250 conftest$ac_exeext conftest.$ac_ext
7252 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
7253 $as_echo "$ac_cv_func_remove" >&6; }
7255 if test $ac_cv_func_remove = no; then
7256 { $as_echo "$as_me:$LINENO: checking for remove in -lposix" >&5
7257 $as_echo_n "checking for remove in -lposix... " >&6; }
7258 if test "${ac_cv_lib_posix_remove+set}" = set; then
7259 $as_echo_n "(cached) " >&6
7260 else
7261 ac_check_lib_save_LIBS=$LIBS
7262 LIBS="-lposix $LIBS"
7263 cat >conftest.$ac_ext <<_ACEOF
7264 /* confdefs.h. */
7265 _ACEOF
7266 cat confdefs.h >>conftest.$ac_ext
7267 cat >>conftest.$ac_ext <<_ACEOF
7268 /* end confdefs.h. */
7270 /* Override any GCC internal prototype to avoid an error.
7271 Use char because int might match the return type of a GCC
7272 builtin and then its argument prototype would still apply. */
7273 #ifdef __cplusplus
7274 extern "C"
7275 #endif
7276 char remove ();
7278 main ()
7280 return remove ();
7282 return 0;
7284 _ACEOF
7285 rm -f conftest.$ac_objext conftest$ac_exeext
7286 if { (ac_try="$ac_link"
7287 case "(($ac_try" in
7288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7289 *) ac_try_echo=$ac_try;;
7290 esac
7291 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7292 $as_echo "$ac_try_echo") >&5
7293 (eval "$ac_link") 2>conftest.er1
7294 ac_status=$?
7295 grep -v '^ *+' conftest.er1 >conftest.err
7296 rm -f conftest.er1
7297 cat conftest.err >&5
7298 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7299 (exit $ac_status); } && {
7300 test -z "$ac_c_werror_flag" ||
7301 test ! -s conftest.err
7302 } && test -s conftest$ac_exeext && {
7303 test "$cross_compiling" = yes ||
7304 $as_test_x conftest$ac_exeext
7305 }; then
7306 ac_cv_lib_posix_remove=yes
7307 else
7308 $as_echo "$as_me: failed program was:" >&5
7309 sed 's/^/| /' conftest.$ac_ext >&5
7311 ac_cv_lib_posix_remove=no
7314 rm -rf conftest.dSYM
7315 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7316 conftest$ac_exeext conftest.$ac_ext
7317 LIBS=$ac_check_lib_save_LIBS
7319 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
7320 $as_echo "$ac_cv_lib_posix_remove" >&6; }
7321 if test $ac_cv_lib_posix_remove = yes; then
7322 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7327 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7328 { $as_echo "$as_me:$LINENO: checking for shmat" >&5
7329 $as_echo_n "checking for shmat... " >&6; }
7330 if test "${ac_cv_func_shmat+set}" = set; then
7331 $as_echo_n "(cached) " >&6
7332 else
7333 cat >conftest.$ac_ext <<_ACEOF
7334 /* confdefs.h. */
7335 _ACEOF
7336 cat confdefs.h >>conftest.$ac_ext
7337 cat >>conftest.$ac_ext <<_ACEOF
7338 /* end confdefs.h. */
7339 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
7340 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7341 #define shmat innocuous_shmat
7343 /* System header to define __stub macros and hopefully few prototypes,
7344 which can conflict with char shmat (); below.
7345 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7346 <limits.h> exists even on freestanding compilers. */
7348 #ifdef __STDC__
7349 # include <limits.h>
7350 #else
7351 # include <assert.h>
7352 #endif
7354 #undef shmat
7356 /* Override any GCC internal prototype to avoid an error.
7357 Use char because int might match the return type of a GCC
7358 builtin and then its argument prototype would still apply. */
7359 #ifdef __cplusplus
7360 extern "C"
7361 #endif
7362 char shmat ();
7363 /* The GNU C library defines this for functions which it implements
7364 to always fail with ENOSYS. Some functions are actually named
7365 something starting with __ and the normal name is an alias. */
7366 #if defined __stub_shmat || defined __stub___shmat
7367 choke me
7368 #endif
7371 main ()
7373 return shmat ();
7375 return 0;
7377 _ACEOF
7378 rm -f conftest.$ac_objext conftest$ac_exeext
7379 if { (ac_try="$ac_link"
7380 case "(($ac_try" in
7381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7382 *) ac_try_echo=$ac_try;;
7383 esac
7384 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7385 $as_echo "$ac_try_echo") >&5
7386 (eval "$ac_link") 2>conftest.er1
7387 ac_status=$?
7388 grep -v '^ *+' conftest.er1 >conftest.err
7389 rm -f conftest.er1
7390 cat conftest.err >&5
7391 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7392 (exit $ac_status); } && {
7393 test -z "$ac_c_werror_flag" ||
7394 test ! -s conftest.err
7395 } && test -s conftest$ac_exeext && {
7396 test "$cross_compiling" = yes ||
7397 $as_test_x conftest$ac_exeext
7398 }; then
7399 ac_cv_func_shmat=yes
7400 else
7401 $as_echo "$as_me: failed program was:" >&5
7402 sed 's/^/| /' conftest.$ac_ext >&5
7404 ac_cv_func_shmat=no
7407 rm -rf conftest.dSYM
7408 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7409 conftest$ac_exeext conftest.$ac_ext
7411 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
7412 $as_echo "$ac_cv_func_shmat" >&6; }
7414 if test $ac_cv_func_shmat = no; then
7415 { $as_echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
7416 $as_echo_n "checking for shmat in -lipc... " >&6; }
7417 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
7418 $as_echo_n "(cached) " >&6
7419 else
7420 ac_check_lib_save_LIBS=$LIBS
7421 LIBS="-lipc $LIBS"
7422 cat >conftest.$ac_ext <<_ACEOF
7423 /* confdefs.h. */
7424 _ACEOF
7425 cat confdefs.h >>conftest.$ac_ext
7426 cat >>conftest.$ac_ext <<_ACEOF
7427 /* end confdefs.h. */
7429 /* Override any GCC internal prototype to avoid an error.
7430 Use char because int might match the return type of a GCC
7431 builtin and then its argument prototype would still apply. */
7432 #ifdef __cplusplus
7433 extern "C"
7434 #endif
7435 char shmat ();
7437 main ()
7439 return shmat ();
7441 return 0;
7443 _ACEOF
7444 rm -f conftest.$ac_objext conftest$ac_exeext
7445 if { (ac_try="$ac_link"
7446 case "(($ac_try" in
7447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7448 *) ac_try_echo=$ac_try;;
7449 esac
7450 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7451 $as_echo "$ac_try_echo") >&5
7452 (eval "$ac_link") 2>conftest.er1
7453 ac_status=$?
7454 grep -v '^ *+' conftest.er1 >conftest.err
7455 rm -f conftest.er1
7456 cat conftest.err >&5
7457 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7458 (exit $ac_status); } && {
7459 test -z "$ac_c_werror_flag" ||
7460 test ! -s conftest.err
7461 } && test -s conftest$ac_exeext && {
7462 test "$cross_compiling" = yes ||
7463 $as_test_x conftest$ac_exeext
7464 }; then
7465 ac_cv_lib_ipc_shmat=yes
7466 else
7467 $as_echo "$as_me: failed program was:" >&5
7468 sed 's/^/| /' conftest.$ac_ext >&5
7470 ac_cv_lib_ipc_shmat=no
7473 rm -rf conftest.dSYM
7474 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7475 conftest$ac_exeext conftest.$ac_ext
7476 LIBS=$ac_check_lib_save_LIBS
7478 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
7479 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
7480 if test $ac_cv_lib_ipc_shmat = yes; then
7481 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7487 # Check for libraries that X11R6 Xt/Xaw programs need.
7488 ac_save_LDFLAGS=$LDFLAGS
7489 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7490 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7491 # check for ICE first), but we must link in the order -lSM -lICE or
7492 # we get undefined symbols. So assume we have SM if we have ICE.
7493 # These have to be linked with before -lX11, unlike the other
7494 # libraries we check for below, so use a different variable.
7495 # John Interrante, Karl Berry
7496 { $as_echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
7497 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
7498 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
7499 $as_echo_n "(cached) " >&6
7500 else
7501 ac_check_lib_save_LIBS=$LIBS
7502 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7503 cat >conftest.$ac_ext <<_ACEOF
7504 /* confdefs.h. */
7505 _ACEOF
7506 cat confdefs.h >>conftest.$ac_ext
7507 cat >>conftest.$ac_ext <<_ACEOF
7508 /* end confdefs.h. */
7510 /* Override any GCC internal prototype to avoid an error.
7511 Use char because int might match the return type of a GCC
7512 builtin and then its argument prototype would still apply. */
7513 #ifdef __cplusplus
7514 extern "C"
7515 #endif
7516 char IceConnectionNumber ();
7518 main ()
7520 return IceConnectionNumber ();
7522 return 0;
7524 _ACEOF
7525 rm -f conftest.$ac_objext conftest$ac_exeext
7526 if { (ac_try="$ac_link"
7527 case "(($ac_try" in
7528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7529 *) ac_try_echo=$ac_try;;
7530 esac
7531 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7532 $as_echo "$ac_try_echo") >&5
7533 (eval "$ac_link") 2>conftest.er1
7534 ac_status=$?
7535 grep -v '^ *+' conftest.er1 >conftest.err
7536 rm -f conftest.er1
7537 cat conftest.err >&5
7538 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7539 (exit $ac_status); } && {
7540 test -z "$ac_c_werror_flag" ||
7541 test ! -s conftest.err
7542 } && test -s conftest$ac_exeext && {
7543 test "$cross_compiling" = yes ||
7544 $as_test_x conftest$ac_exeext
7545 }; then
7546 ac_cv_lib_ICE_IceConnectionNumber=yes
7547 else
7548 $as_echo "$as_me: failed program was:" >&5
7549 sed 's/^/| /' conftest.$ac_ext >&5
7551 ac_cv_lib_ICE_IceConnectionNumber=no
7554 rm -rf conftest.dSYM
7555 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7556 conftest$ac_exeext conftest.$ac_ext
7557 LIBS=$ac_check_lib_save_LIBS
7559 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7560 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
7561 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
7562 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7565 LDFLAGS=$ac_save_LDFLAGS
7570 if test "$OS390Unix" = "yes"; then
7571 CFLAGS="$CFLAGS -W c,dll"
7572 LDFLAGS="$LDFLAGS -W l,dll"
7573 X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE -lXmu"
7577 if test -d "$x_includes" && test ! -d "$x_libraries"; then
7578 x_libraries=`echo "$x_includes" | sed s/include/lib/`
7579 { $as_echo "$as_me:$LINENO: result: Corrected X libraries to $x_libraries" >&5
7580 $as_echo "Corrected X libraries to $x_libraries" >&6; }
7581 X_LIBS="$X_LIBS -L$x_libraries"
7582 if test "`(uname) 2>/dev/null`" = SunOS &&
7583 uname -r | grep '^5' >/dev/null; then
7584 X_LIBS="$X_LIBS -R $x_libraries"
7588 if test -d "$x_libraries" && test ! -d "$x_includes"; then
7589 x_includes=`echo "$x_libraries" | sed s/lib/include/`
7590 { $as_echo "$as_me:$LINENO: result: Corrected X includes to $x_includes" >&5
7591 $as_echo "Corrected X includes to $x_includes" >&6; }
7592 X_CFLAGS="$X_CFLAGS -I$x_includes"
7595 X_CFLAGS="`echo $X_CFLAGS\ | sed 's%-I/usr/include %%'`"
7596 X_LIBS="`echo $X_LIBS\ | sed 's%-L/usr/lib %%'`"
7597 X_LIBS="`echo $X_LIBS\ | sed -e 's%-R/usr/lib %%' -e 's%-R /usr/lib %%'`"
7600 { $as_echo "$as_me:$LINENO: checking if X11 header files can be found" >&5
7601 $as_echo_n "checking if X11 header files can be found... " >&6; }
7602 cflags_save=$CFLAGS
7603 CFLAGS="$CFLAGS $X_CFLAGS"
7604 cat >conftest.$ac_ext <<_ACEOF
7605 /* confdefs.h. */
7606 _ACEOF
7607 cat confdefs.h >>conftest.$ac_ext
7608 cat >>conftest.$ac_ext <<_ACEOF
7609 /* end confdefs.h. */
7610 #include <X11/Xlib.h>
7611 #include <X11/Intrinsic.h>
7613 main ()
7617 return 0;
7619 _ACEOF
7620 rm -f conftest.$ac_objext
7621 if { (ac_try="$ac_compile"
7622 case "(($ac_try" in
7623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7624 *) ac_try_echo=$ac_try;;
7625 esac
7626 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7627 $as_echo "$ac_try_echo") >&5
7628 (eval "$ac_compile") 2>conftest.er1
7629 ac_status=$?
7630 grep -v '^ *+' conftest.er1 >conftest.err
7631 rm -f conftest.er1
7632 cat conftest.err >&5
7633 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7634 (exit $ac_status); } && {
7635 test -z "$ac_c_werror_flag" ||
7636 test ! -s conftest.err
7637 } && test -s conftest.$ac_objext; then
7638 { $as_echo "$as_me:$LINENO: result: yes" >&5
7639 $as_echo "yes" >&6; }
7640 else
7641 $as_echo "$as_me: failed program was:" >&5
7642 sed 's/^/| /' conftest.$ac_ext >&5
7644 { $as_echo "$as_me:$LINENO: result: no" >&5
7645 $as_echo "no" >&6; }; no_x=yes
7648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7649 CFLAGS=$cflags_save
7651 if test "${no_x-no}" = yes; then
7652 with_x=no
7653 else
7654 cat >>confdefs.h <<\_ACEOF
7655 #define HAVE_X11 1
7656 _ACEOF
7658 X_LIB="-lXt -lX11";
7661 ac_save_LDFLAGS="$LDFLAGS"
7662 LDFLAGS="-L$x_libraries $LDFLAGS"
7664 { $as_echo "$as_me:$LINENO: checking for _XdmcpAuthDoIt in -lXdmcp" >&5
7665 $as_echo_n "checking for _XdmcpAuthDoIt in -lXdmcp... " >&6; }
7666 if test "${ac_cv_lib_Xdmcp__XdmcpAuthDoIt+set}" = set; then
7667 $as_echo_n "(cached) " >&6
7668 else
7669 ac_check_lib_save_LIBS=$LIBS
7670 LIBS="-lXdmcp -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS -lXdmcp $LIBS"
7671 cat >conftest.$ac_ext <<_ACEOF
7672 /* confdefs.h. */
7673 _ACEOF
7674 cat confdefs.h >>conftest.$ac_ext
7675 cat >>conftest.$ac_ext <<_ACEOF
7676 /* end confdefs.h. */
7678 /* Override any GCC internal prototype to avoid an error.
7679 Use char because int might match the return type of a GCC
7680 builtin and then its argument prototype would still apply. */
7681 #ifdef __cplusplus
7682 extern "C"
7683 #endif
7684 char _XdmcpAuthDoIt ();
7686 main ()
7688 return _XdmcpAuthDoIt ();
7690 return 0;
7692 _ACEOF
7693 rm -f conftest.$ac_objext conftest$ac_exeext
7694 if { (ac_try="$ac_link"
7695 case "(($ac_try" in
7696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7697 *) ac_try_echo=$ac_try;;
7698 esac
7699 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7700 $as_echo "$ac_try_echo") >&5
7701 (eval "$ac_link") 2>conftest.er1
7702 ac_status=$?
7703 grep -v '^ *+' conftest.er1 >conftest.err
7704 rm -f conftest.er1
7705 cat conftest.err >&5
7706 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7707 (exit $ac_status); } && {
7708 test -z "$ac_c_werror_flag" ||
7709 test ! -s conftest.err
7710 } && test -s conftest$ac_exeext && {
7711 test "$cross_compiling" = yes ||
7712 $as_test_x conftest$ac_exeext
7713 }; then
7714 ac_cv_lib_Xdmcp__XdmcpAuthDoIt=yes
7715 else
7716 $as_echo "$as_me: failed program was:" >&5
7717 sed 's/^/| /' conftest.$ac_ext >&5
7719 ac_cv_lib_Xdmcp__XdmcpAuthDoIt=no
7722 rm -rf conftest.dSYM
7723 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7724 conftest$ac_exeext conftest.$ac_ext
7725 LIBS=$ac_check_lib_save_LIBS
7727 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&5
7728 $as_echo "$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&6; }
7729 if test $ac_cv_lib_Xdmcp__XdmcpAuthDoIt = yes; then
7730 X_EXTRA_LIBS="$X_EXTRA_LIBS -lXdmcp"
7734 { $as_echo "$as_me:$LINENO: checking for IceOpenConnection in -lICE" >&5
7735 $as_echo_n "checking for IceOpenConnection in -lICE... " >&6; }
7736 if test "${ac_cv_lib_ICE_IceOpenConnection+set}" = set; then
7737 $as_echo_n "(cached) " >&6
7738 else
7739 ac_check_lib_save_LIBS=$LIBS
7740 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7741 cat >conftest.$ac_ext <<_ACEOF
7742 /* confdefs.h. */
7743 _ACEOF
7744 cat confdefs.h >>conftest.$ac_ext
7745 cat >>conftest.$ac_ext <<_ACEOF
7746 /* end confdefs.h. */
7748 /* Override any GCC internal prototype to avoid an error.
7749 Use char because int might match the return type of a GCC
7750 builtin and then its argument prototype would still apply. */
7751 #ifdef __cplusplus
7752 extern "C"
7753 #endif
7754 char IceOpenConnection ();
7756 main ()
7758 return IceOpenConnection ();
7760 return 0;
7762 _ACEOF
7763 rm -f conftest.$ac_objext conftest$ac_exeext
7764 if { (ac_try="$ac_link"
7765 case "(($ac_try" in
7766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7767 *) ac_try_echo=$ac_try;;
7768 esac
7769 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7770 $as_echo "$ac_try_echo") >&5
7771 (eval "$ac_link") 2>conftest.er1
7772 ac_status=$?
7773 grep -v '^ *+' conftest.er1 >conftest.err
7774 rm -f conftest.er1
7775 cat conftest.err >&5
7776 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7777 (exit $ac_status); } && {
7778 test -z "$ac_c_werror_flag" ||
7779 test ! -s conftest.err
7780 } && test -s conftest$ac_exeext && {
7781 test "$cross_compiling" = yes ||
7782 $as_test_x conftest$ac_exeext
7783 }; then
7784 ac_cv_lib_ICE_IceOpenConnection=yes
7785 else
7786 $as_echo "$as_me: failed program was:" >&5
7787 sed 's/^/| /' conftest.$ac_ext >&5
7789 ac_cv_lib_ICE_IceOpenConnection=no
7792 rm -rf conftest.dSYM
7793 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7794 conftest$ac_exeext conftest.$ac_ext
7795 LIBS=$ac_check_lib_save_LIBS
7797 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceOpenConnection" >&5
7798 $as_echo "$ac_cv_lib_ICE_IceOpenConnection" >&6; }
7799 if test $ac_cv_lib_ICE_IceOpenConnection = yes; then
7800 X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE"
7804 LDFLAGS="$X_LIBS $ac_save_LDFLAGS"
7805 { $as_echo "$as_me:$LINENO: checking for XpmCreatePixmapFromData in -lXpm" >&5
7806 $as_echo_n "checking for XpmCreatePixmapFromData in -lXpm... " >&6; }
7807 if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then
7808 $as_echo_n "(cached) " >&6
7809 else
7810 ac_check_lib_save_LIBS=$LIBS
7811 LIBS="-lXpm -lXt $X_PRE_LIBS -lXpm -lX11 $X_EXTRA_LIBS $LIBS"
7812 cat >conftest.$ac_ext <<_ACEOF
7813 /* confdefs.h. */
7814 _ACEOF
7815 cat confdefs.h >>conftest.$ac_ext
7816 cat >>conftest.$ac_ext <<_ACEOF
7817 /* end confdefs.h. */
7819 /* Override any GCC internal prototype to avoid an error.
7820 Use char because int might match the return type of a GCC
7821 builtin and then its argument prototype would still apply. */
7822 #ifdef __cplusplus
7823 extern "C"
7824 #endif
7825 char XpmCreatePixmapFromData ();
7827 main ()
7829 return XpmCreatePixmapFromData ();
7831 return 0;
7833 _ACEOF
7834 rm -f conftest.$ac_objext conftest$ac_exeext
7835 if { (ac_try="$ac_link"
7836 case "(($ac_try" in
7837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7838 *) ac_try_echo=$ac_try;;
7839 esac
7840 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7841 $as_echo "$ac_try_echo") >&5
7842 (eval "$ac_link") 2>conftest.er1
7843 ac_status=$?
7844 grep -v '^ *+' conftest.er1 >conftest.err
7845 rm -f conftest.er1
7846 cat conftest.err >&5
7847 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7848 (exit $ac_status); } && {
7849 test -z "$ac_c_werror_flag" ||
7850 test ! -s conftest.err
7851 } && test -s conftest$ac_exeext && {
7852 test "$cross_compiling" = yes ||
7853 $as_test_x conftest$ac_exeext
7854 }; then
7855 ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
7856 else
7857 $as_echo "$as_me: failed program was:" >&5
7858 sed 's/^/| /' conftest.$ac_ext >&5
7860 ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
7863 rm -rf conftest.dSYM
7864 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7865 conftest$ac_exeext conftest.$ac_ext
7866 LIBS=$ac_check_lib_save_LIBS
7868 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
7869 $as_echo "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6; }
7870 if test $ac_cv_lib_Xpm_XpmCreatePixmapFromData = yes; then
7871 X_PRE_LIBS="$X_PRE_LIBS -lXpm"
7875 { $as_echo "$as_me:$LINENO: checking if X11 header files implicitly declare return values" >&5
7876 $as_echo_n "checking if X11 header files implicitly declare return values... " >&6; }
7877 cflags_save=$CFLAGS
7878 CFLAGS="$CFLAGS $X_CFLAGS -Werror"
7879 cat >conftest.$ac_ext <<_ACEOF
7880 /* confdefs.h. */
7881 _ACEOF
7882 cat confdefs.h >>conftest.$ac_ext
7883 cat >>conftest.$ac_ext <<_ACEOF
7884 /* end confdefs.h. */
7885 #include <X11/Xlib.h>
7887 main ()
7891 return 0;
7893 _ACEOF
7894 rm -f conftest.$ac_objext
7895 if { (ac_try="$ac_compile"
7896 case "(($ac_try" in
7897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7898 *) ac_try_echo=$ac_try;;
7899 esac
7900 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7901 $as_echo "$ac_try_echo") >&5
7902 (eval "$ac_compile") 2>conftest.er1
7903 ac_status=$?
7904 grep -v '^ *+' conftest.er1 >conftest.err
7905 rm -f conftest.er1
7906 cat conftest.err >&5
7907 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7908 (exit $ac_status); } && {
7909 test -z "$ac_c_werror_flag" ||
7910 test ! -s conftest.err
7911 } && test -s conftest.$ac_objext; then
7912 { $as_echo "$as_me:$LINENO: result: no" >&5
7913 $as_echo "no" >&6; }
7914 else
7915 $as_echo "$as_me: failed program was:" >&5
7916 sed 's/^/| /' conftest.$ac_ext >&5
7918 CFLAGS="$CFLAGS -Wno-implicit-int"
7919 cat >conftest.$ac_ext <<_ACEOF
7920 /* confdefs.h. */
7921 _ACEOF
7922 cat confdefs.h >>conftest.$ac_ext
7923 cat >>conftest.$ac_ext <<_ACEOF
7924 /* end confdefs.h. */
7925 #include <X11/Xlib.h>
7927 main ()
7931 return 0;
7933 _ACEOF
7934 rm -f conftest.$ac_objext
7935 if { (ac_try="$ac_compile"
7936 case "(($ac_try" in
7937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7938 *) ac_try_echo=$ac_try;;
7939 esac
7940 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7941 $as_echo "$ac_try_echo") >&5
7942 (eval "$ac_compile") 2>conftest.er1
7943 ac_status=$?
7944 grep -v '^ *+' conftest.er1 >conftest.err
7945 rm -f conftest.er1
7946 cat conftest.err >&5
7947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7948 (exit $ac_status); } && {
7949 test -z "$ac_c_werror_flag" ||
7950 test ! -s conftest.err
7951 } && test -s conftest.$ac_objext; then
7952 { $as_echo "$as_me:$LINENO: result: yes" >&5
7953 $as_echo "yes" >&6; }; cflags_save="$cflags_save -Wno-implicit-int"
7954 else
7955 $as_echo "$as_me: failed program was:" >&5
7956 sed 's/^/| /' conftest.$ac_ext >&5
7958 { $as_echo "$as_me:$LINENO: result: test failed" >&5
7959 $as_echo "test failed" >&6; }
7963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7968 CFLAGS=$cflags_save
7970 LDFLAGS="$ac_save_LDFLAGS"
7975 test "x$with_x" = xno -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && enable_gui=no
7977 { $as_echo "$as_me:$LINENO: checking --enable-gui argument" >&5
7978 $as_echo_n "checking --enable-gui argument... " >&6; }
7979 # Check whether --enable-gui was given.
7980 if test "${enable_gui+set}" = set; then
7981 enableval=$enable_gui;
7982 else
7983 enable_gui="auto"
7987 enable_gui_canon=`echo "_$enable_gui" | \
7988 sed 's/[ _+-]//g;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
7990 SKIP_GTK=YES
7991 SKIP_GTK2=YES
7992 SKIP_GNOME=YES
7993 SKIP_MOTIF=YES
7994 SKIP_ATHENA=YES
7995 SKIP_NEXTAW=YES
7996 SKIP_PHOTON=YES
7997 SKIP_CARBON=YES
7998 GUITYPE=NONE
8000 if test "x$QNX" = "xyes" -a "x$with_x" = "xno" ; then
8001 SKIP_PHOTON=
8002 case "$enable_gui_canon" in
8003 no) { $as_echo "$as_me:$LINENO: result: no GUI support" >&5
8004 $as_echo "no GUI support" >&6; }
8005 SKIP_PHOTON=YES ;;
8006 yes|"") { $as_echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5
8007 $as_echo "yes - automatic GUI support" >&6; } ;;
8008 auto) { $as_echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5
8009 $as_echo "auto - automatic GUI support" >&6; } ;;
8010 photon) { $as_echo "$as_me:$LINENO: result: Photon GUI support" >&5
8011 $as_echo "Photon GUI support" >&6; } ;;
8012 *) { $as_echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
8013 $as_echo "Sorry, $enable_gui GUI is not supported" >&6; }
8014 SKIP_PHOTON=YES ;;
8015 esac
8017 elif test "x$MACOSX" = "xyes" -a "x$with_x" = "xno" ; then
8018 SKIP_CARBON=
8019 case "$enable_gui_canon" in
8020 no) { $as_echo "$as_me:$LINENO: result: no GUI support" >&5
8021 $as_echo "no GUI support" >&6; }
8022 SKIP_CARBON=YES ;;
8023 yes|"") { $as_echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5
8024 $as_echo "yes - automatic GUI support" >&6; } ;;
8025 auto) { $as_echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5
8026 $as_echo "auto - automatic GUI support" >&6; } ;;
8027 carbon) { $as_echo "$as_me:$LINENO: result: Carbon GUI support" >&5
8028 $as_echo "Carbon GUI support" >&6; } ;;
8029 *) { $as_echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
8030 $as_echo "Sorry, $enable_gui GUI is not supported" >&6; }
8031 SKIP_CARBON=YES ;;
8032 esac
8034 else
8036 case "$enable_gui_canon" in
8037 no|none) { $as_echo "$as_me:$LINENO: result: no GUI support" >&5
8038 $as_echo "no GUI support" >&6; } ;;
8039 yes|""|auto) { $as_echo "$as_me:$LINENO: result: yes/auto - automatic GUI support" >&5
8040 $as_echo "yes/auto - automatic GUI support" >&6; }
8041 SKIP_GTK=
8042 SKIP_GTK2=
8043 SKIP_GNOME=
8044 SKIP_MOTIF=
8045 SKIP_ATHENA=
8046 SKIP_NEXTAW=
8047 SKIP_CARBON=;;
8048 gtk) { $as_echo "$as_me:$LINENO: result: GTK+ 1.x GUI support" >&5
8049 $as_echo "GTK+ 1.x GUI support" >&6; }
8050 SKIP_GTK=;;
8051 gtk2) { $as_echo "$as_me:$LINENO: result: GTK+ 2.x GUI support" >&5
8052 $as_echo "GTK+ 2.x GUI support" >&6; }
8053 SKIP_GTK=
8054 SKIP_GTK2=;;
8055 gnome) { $as_echo "$as_me:$LINENO: result: GNOME 1.x GUI support" >&5
8056 $as_echo "GNOME 1.x GUI support" >&6; }
8057 SKIP_GNOME=
8058 SKIP_GTK=;;
8059 gnome2) { $as_echo "$as_me:$LINENO: result: GNOME 2.x GUI support" >&5
8060 $as_echo "GNOME 2.x GUI support" >&6; }
8061 SKIP_GNOME=
8062 SKIP_GTK=
8063 SKIP_GTK2=;;
8064 motif) { $as_echo "$as_me:$LINENO: result: Motif GUI support" >&5
8065 $as_echo "Motif GUI support" >&6; }
8066 SKIP_MOTIF=;;
8067 athena) { $as_echo "$as_me:$LINENO: result: Athena GUI support" >&5
8068 $as_echo "Athena GUI support" >&6; }
8069 SKIP_ATHENA=;;
8070 nextaw) { $as_echo "$as_me:$LINENO: result: neXtaw GUI support" >&5
8071 $as_echo "neXtaw GUI support" >&6; }
8072 SKIP_NEXTAW=;;
8073 *) { $as_echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
8074 $as_echo "Sorry, $enable_gui GUI is not supported" >&6; } ;;
8075 esac
8079 if test "x$SKIP_GTK" != "xYES" -a "$enable_gui_canon" != "gtk" -a "$enable_gui_canon" != "gtk2"; then
8080 { $as_echo "$as_me:$LINENO: checking whether or not to look for GTK" >&5
8081 $as_echo_n "checking whether or not to look for GTK... " >&6; }
8082 # Check whether --enable-gtk-check was given.
8083 if test "${enable_gtk_check+set}" = set; then
8084 enableval=$enable_gtk_check;
8085 else
8086 enable_gtk_check="yes"
8089 { $as_echo "$as_me:$LINENO: result: $enable_gtk_check" >&5
8090 $as_echo "$enable_gtk_check" >&6; }
8091 if test "x$enable_gtk_check" = "xno"; then
8092 SKIP_GTK=YES
8093 SKIP_GNOME=YES
8097 if test "x$SKIP_GTK2" != "xYES" -a "$enable_gui_canon" != "gtk2" \
8098 -a "$enable_gui_canon" != "gnome2"; then
8099 { $as_echo "$as_me:$LINENO: checking whether or not to look for GTK+ 2" >&5
8100 $as_echo_n "checking whether or not to look for GTK+ 2... " >&6; }
8101 # Check whether --enable-gtk2-check was given.
8102 if test "${enable_gtk2_check+set}" = set; then
8103 enableval=$enable_gtk2_check;
8104 else
8105 enable_gtk2_check="yes"
8108 { $as_echo "$as_me:$LINENO: result: $enable_gtk2_check" >&5
8109 $as_echo "$enable_gtk2_check" >&6; }
8110 if test "x$enable_gtk2_check" = "xno"; then
8111 SKIP_GTK2=YES
8115 if test "x$SKIP_GNOME" != "xYES" -a "$enable_gui_canon" != "gnome" \
8116 -a "$enable_gui_canon" != "gnome2"; then
8117 { $as_echo "$as_me:$LINENO: checking whether or not to look for GNOME" >&5
8118 $as_echo_n "checking whether or not to look for GNOME... " >&6; }
8119 # Check whether --enable-gnome-check was given.
8120 if test "${enable_gnome_check+set}" = set; then
8121 enableval=$enable_gnome_check;
8122 else
8123 enable_gnome_check="no"
8126 { $as_echo "$as_me:$LINENO: result: $enable_gnome_check" >&5
8127 $as_echo "$enable_gnome_check" >&6; }
8128 if test "x$enable_gnome_check" = "xno"; then
8129 SKIP_GNOME=YES
8133 if test "x$SKIP_MOTIF" != "xYES" -a "$enable_gui_canon" != "motif"; then
8134 { $as_echo "$as_me:$LINENO: checking whether or not to look for Motif" >&5
8135 $as_echo_n "checking whether or not to look for Motif... " >&6; }
8136 # Check whether --enable-motif-check was given.
8137 if test "${enable_motif_check+set}" = set; then
8138 enableval=$enable_motif_check;
8139 else
8140 enable_motif_check="yes"
8143 { $as_echo "$as_me:$LINENO: result: $enable_motif_check" >&5
8144 $as_echo "$enable_motif_check" >&6; }
8145 if test "x$enable_motif_check" = "xno"; then
8146 SKIP_MOTIF=YES
8150 if test "x$SKIP_ATHENA" != "xYES" -a "$enable_gui_canon" != "athena"; then
8151 { $as_echo "$as_me:$LINENO: checking whether or not to look for Athena" >&5
8152 $as_echo_n "checking whether or not to look for Athena... " >&6; }
8153 # Check whether --enable-athena-check was given.
8154 if test "${enable_athena_check+set}" = set; then
8155 enableval=$enable_athena_check;
8156 else
8157 enable_athena_check="yes"
8160 { $as_echo "$as_me:$LINENO: result: $enable_athena_check" >&5
8161 $as_echo "$enable_athena_check" >&6; }
8162 if test "x$enable_athena_check" = "xno"; then
8163 SKIP_ATHENA=YES
8167 if test "x$SKIP_NEXTAW" != "xYES" -a "$enable_gui_canon" != "nextaw"; then
8168 { $as_echo "$as_me:$LINENO: checking whether or not to look for neXtaw" >&5
8169 $as_echo_n "checking whether or not to look for neXtaw... " >&6; }
8170 # Check whether --enable-nextaw-check was given.
8171 if test "${enable_nextaw_check+set}" = set; then
8172 enableval=$enable_nextaw_check;
8173 else
8174 enable_nextaw_check="yes"
8177 { $as_echo "$as_me:$LINENO: result: $enable_nextaw_check" >&5
8178 $as_echo "$enable_nextaw_check" >&6; };
8179 if test "x$enable_nextaw_check" = "xno"; then
8180 SKIP_NEXTAW=YES
8184 if test "x$SKIP_CARBON" != "xYES" -a "$enable_gui_canon" != "carbon"; then
8185 { $as_echo "$as_me:$LINENO: checking whether or not to look for Carbon" >&5
8186 $as_echo_n "checking whether or not to look for Carbon... " >&6; }
8187 # Check whether --enable-carbon-check was given.
8188 if test "${enable_carbon_check+set}" = set; then
8189 enableval=$enable_carbon_check;
8190 else
8191 enable_carbon_check="yes"
8194 { $as_echo "$as_me:$LINENO: result: $enable_carbon_check" >&5
8195 $as_echo "$enable_carbon_check" >&6; };
8196 if test "x$enable_carbon_check" = "xno"; then
8197 SKIP_CARBON=YES
8202 if test "x$MACOSX" = "xyes" -a -z "$SKIP_CARBON" -a "x$CARBON" = "xyes"; then
8203 { $as_echo "$as_me:$LINENO: checking for Carbon GUI" >&5
8204 $as_echo_n "checking for Carbon GUI... " >&6; }
8205 { $as_echo "$as_me:$LINENO: result: yes" >&5
8206 $as_echo "yes" >&6; };
8207 GUITYPE=CARBONGUI
8208 if test "$VIMNAME" = "vim"; then
8209 VIMNAME=Vim
8212 if test x$prefix = xNONE; then
8213 prefix=/Applications
8216 datadir='${prefix}/Vim.app/Contents/Resources'
8218 SKIP_GTK=YES;
8219 SKIP_GTK2=YES;
8220 SKIP_GNOME=YES;
8221 SKIP_MOTIF=YES;
8222 SKIP_ATHENA=YES;
8223 SKIP_NEXTAW=YES;
8224 SKIP_PHOTON=YES;
8225 SKIP_CARBON=YES
8236 if test -z "$SKIP_GTK"; then
8238 { $as_echo "$as_me:$LINENO: checking --with-gtk-prefix argument" >&5
8239 $as_echo_n "checking --with-gtk-prefix argument... " >&6; }
8241 # Check whether --with-gtk-prefix was given.
8242 if test "${with_gtk_prefix+set}" = set; then
8243 withval=$with_gtk_prefix; gtk_config_prefix="$withval"; { $as_echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5
8244 $as_echo "$gtk_config_prefix" >&6; }
8245 else
8246 gtk_config_prefix=""; { $as_echo "$as_me:$LINENO: result: no" >&5
8247 $as_echo "no" >&6; }
8251 { $as_echo "$as_me:$LINENO: checking --with-gtk-exec-prefix argument" >&5
8252 $as_echo_n "checking --with-gtk-exec-prefix argument... " >&6; }
8254 # Check whether --with-gtk-exec-prefix was given.
8255 if test "${with_gtk_exec_prefix+set}" = set; then
8256 withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"; { $as_echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5
8257 $as_echo "$gtk_config_prefix" >&6; }
8258 else
8259 gtk_config_exec_prefix=""; { $as_echo "$as_me:$LINENO: result: no" >&5
8260 $as_echo "no" >&6; }
8264 { $as_echo "$as_me:$LINENO: checking --disable-gtktest argument" >&5
8265 $as_echo_n "checking --disable-gtktest argument... " >&6; }
8266 # Check whether --enable-gtktest was given.
8267 if test "${enable_gtktest+set}" = set; then
8268 enableval=$enable_gtktest;
8269 else
8270 enable_gtktest=yes
8273 if test "x$enable_gtktest" = "xyes" ; then
8274 { $as_echo "$as_me:$LINENO: result: gtk test enabled" >&5
8275 $as_echo "gtk test enabled" >&6; }
8276 else
8277 { $as_echo "$as_me:$LINENO: result: gtk test disabled" >&5
8278 $as_echo "gtk test disabled" >&6; }
8281 if test "x$gtk_config_prefix" != "x" ; then
8282 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
8283 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
8285 if test "x$gtk_config_exec_prefix" != "x" ; then
8286 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
8287 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
8289 if test "X$GTK_CONFIG" = "X"; then
8290 # Extract the first word of "gtk-config", so it can be a program name with args.
8291 set dummy gtk-config; ac_word=$2
8292 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8293 $as_echo_n "checking for $ac_word... " >&6; }
8294 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
8295 $as_echo_n "(cached) " >&6
8296 else
8297 case $GTK_CONFIG in
8298 [\\/]* | ?:[\\/]*)
8299 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
8302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8303 for as_dir in $PATH
8305 IFS=$as_save_IFS
8306 test -z "$as_dir" && as_dir=.
8307 for ac_exec_ext in '' $ac_executable_extensions; do
8308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8309 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8310 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8311 break 2
8313 done
8314 done
8315 IFS=$as_save_IFS
8317 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
8319 esac
8321 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
8322 if test -n "$GTK_CONFIG"; then
8323 { $as_echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
8324 $as_echo "$GTK_CONFIG" >&6; }
8325 else
8326 { $as_echo "$as_me:$LINENO: result: no" >&5
8327 $as_echo "no" >&6; }
8331 if test "X$GTK_CONFIG" = "Xno"; then
8332 # Extract the first word of "gtk12-config", so it can be a program name with args.
8333 set dummy gtk12-config; ac_word=$2
8334 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8335 $as_echo_n "checking for $ac_word... " >&6; }
8336 if test "${ac_cv_path_GTK12_CONFIG+set}" = set; then
8337 $as_echo_n "(cached) " >&6
8338 else
8339 case $GTK12_CONFIG in
8340 [\\/]* | ?:[\\/]*)
8341 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
8344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8345 for as_dir in $PATH
8347 IFS=$as_save_IFS
8348 test -z "$as_dir" && as_dir=.
8349 for ac_exec_ext in '' $ac_executable_extensions; do
8350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8351 ac_cv_path_GTK12_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8352 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8353 break 2
8355 done
8356 done
8357 IFS=$as_save_IFS
8359 test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
8361 esac
8363 GTK12_CONFIG=$ac_cv_path_GTK12_CONFIG
8364 if test -n "$GTK12_CONFIG"; then
8365 { $as_echo "$as_me:$LINENO: result: $GTK12_CONFIG" >&5
8366 $as_echo "$GTK12_CONFIG" >&6; }
8367 else
8368 { $as_echo "$as_me:$LINENO: result: no" >&5
8369 $as_echo "no" >&6; }
8373 GTK_CONFIG="$GTK12_CONFIG"
8375 else
8376 { $as_echo "$as_me:$LINENO: result: Using GTK configuration program $GTK_CONFIG" >&5
8377 $as_echo "Using GTK configuration program $GTK_CONFIG" >&6; }
8379 if test "X$PKG_CONFIG" = "X"; then
8380 # Extract the first word of "pkg-config", so it can be a program name with args.
8381 set dummy pkg-config; ac_word=$2
8382 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8383 $as_echo_n "checking for $ac_word... " >&6; }
8384 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8385 $as_echo_n "(cached) " >&6
8386 else
8387 case $PKG_CONFIG in
8388 [\\/]* | ?:[\\/]*)
8389 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8393 for as_dir in $PATH
8395 IFS=$as_save_IFS
8396 test -z "$as_dir" && as_dir=.
8397 for ac_exec_ext in '' $ac_executable_extensions; do
8398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8399 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8400 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8401 break 2
8403 done
8404 done
8405 IFS=$as_save_IFS
8407 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8409 esac
8411 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8412 if test -n "$PKG_CONFIG"; then
8413 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8414 $as_echo "$PKG_CONFIG" >&6; }
8415 else
8416 { $as_echo "$as_me:$LINENO: result: no" >&5
8417 $as_echo "no" >&6; }
8423 if test "x$GTK_CONFIG:$PKG_CONFIG" != "xno:no"; then
8424 if test "X$SKIP_GTK2" != "XYES"; then
8426 if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
8428 min_gtk_version=2.2.0
8429 { $as_echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
8430 $as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; }
8431 no_gtk=""
8432 if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
8433 && $PKG_CONFIG --exists gtk+-2.0; then
8435 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
8436 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0`
8437 GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
8438 gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8439 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8440 gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8441 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8442 gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8443 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8445 elif test "X$GTK_CONFIG" != "Xno"; then
8447 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
8448 GTK_LIBDIR=
8449 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
8450 gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \
8451 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8452 gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
8453 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8454 gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
8455 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8457 else
8458 no_gtk=yes
8461 if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
8463 ac_save_CFLAGS="$CFLAGS"
8464 ac_save_LIBS="$LIBS"
8465 CFLAGS="$CFLAGS $GTK_CFLAGS"
8466 LIBS="$LIBS $GTK_LIBS"
8468 rm -f conf.gtktest
8469 if test "$cross_compiling" = yes; then
8470 echo $ac_n "cross compiling; assumed OK... $ac_c"
8471 else
8472 cat >conftest.$ac_ext <<_ACEOF
8473 /* confdefs.h. */
8474 _ACEOF
8475 cat confdefs.h >>conftest.$ac_ext
8476 cat >>conftest.$ac_ext <<_ACEOF
8477 /* end confdefs.h. */
8479 #include <gtk/gtk.h>
8480 #include <stdio.h>
8481 #if STDC_HEADERS
8482 # include <stdlib.h>
8483 # include <stddef.h>
8484 #endif
8487 main ()
8489 int major, minor, micro;
8490 char *tmp_version;
8492 system ("touch conf.gtktest");
8494 /* HP/UX 9 (%@#!) writes to sscanf strings */
8495 tmp_version = g_strdup("$min_gtk_version");
8496 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
8497 printf("%s, bad version string\n", "$min_gtk_version");
8498 exit(1);
8501 if ((gtk_major_version > major) ||
8502 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
8503 ((gtk_major_version == major) && (gtk_minor_version == minor) &&
8504 (gtk_micro_version >= micro)))
8506 return 0;
8508 return 1;
8511 _ACEOF
8512 rm -f conftest$ac_exeext
8513 if { (ac_try="$ac_link"
8514 case "(($ac_try" in
8515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8516 *) ac_try_echo=$ac_try;;
8517 esac
8518 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8519 $as_echo "$ac_try_echo") >&5
8520 (eval "$ac_link") 2>&5
8521 ac_status=$?
8522 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8523 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8524 { (case "(($ac_try" in
8525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8526 *) ac_try_echo=$ac_try;;
8527 esac
8528 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8529 $as_echo "$ac_try_echo") >&5
8530 (eval "$ac_try") 2>&5
8531 ac_status=$?
8532 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8533 (exit $ac_status); }; }; then
8535 else
8536 $as_echo "$as_me: program exited with status $ac_status" >&5
8537 $as_echo "$as_me: failed program was:" >&5
8538 sed 's/^/| /' conftest.$ac_ext >&5
8540 ( exit $ac_status )
8541 no_gtk=yes
8543 rm -rf conftest.dSYM
8544 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8548 CFLAGS="$ac_save_CFLAGS"
8549 LIBS="$ac_save_LIBS"
8552 if test "x$no_gtk" = x ; then
8553 if test "x$enable_gtktest" = "xyes"; then
8554 { $as_echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8555 $as_echo "yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
8556 else
8557 { $as_echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8558 $as_echo "found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
8560 GUI_LIB_LOC="$GTK_LIBDIR"
8561 GTK_LIBNAME="$GTK_LIBS"
8562 GUI_INC_LOC="$GTK_CFLAGS"
8563 else
8565 { $as_echo "$as_me:$LINENO: result: no" >&5
8566 $as_echo "no" >&6; }
8567 GTK_CFLAGS=""
8568 GTK_LIBS=""
8573 else
8574 GTK_CFLAGS=""
8575 GTK_LIBS=""
8580 rm -f conf.gtktest
8582 if test "x$GTK_CFLAGS" != "x"; then
8583 SKIP_ATHENA=YES
8584 SKIP_NEXTAW=YES
8585 SKIP_MOTIF=YES
8586 GUITYPE=GTK
8591 if test "x$GUITYPE" != "xGTK"; then
8592 SKIP_GTK2=YES
8594 if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
8596 min_gtk_version=1.1.16
8597 { $as_echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
8598 $as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; }
8599 no_gtk=""
8600 if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
8601 && $PKG_CONFIG --exists gtk+-2.0; then
8603 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
8604 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0`
8605 GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
8606 gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8607 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8608 gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8609 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8610 gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8611 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8613 elif test "X$GTK_CONFIG" != "Xno"; then
8615 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
8616 GTK_LIBDIR=
8617 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
8618 gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \
8619 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8620 gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
8621 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8622 gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
8623 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8625 else
8626 no_gtk=yes
8629 if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
8631 ac_save_CFLAGS="$CFLAGS"
8632 ac_save_LIBS="$LIBS"
8633 CFLAGS="$CFLAGS $GTK_CFLAGS"
8634 LIBS="$LIBS $GTK_LIBS"
8636 rm -f conf.gtktest
8637 if test "$cross_compiling" = yes; then
8638 echo $ac_n "cross compiling; assumed OK... $ac_c"
8639 else
8640 cat >conftest.$ac_ext <<_ACEOF
8641 /* confdefs.h. */
8642 _ACEOF
8643 cat confdefs.h >>conftest.$ac_ext
8644 cat >>conftest.$ac_ext <<_ACEOF
8645 /* end confdefs.h. */
8647 #include <gtk/gtk.h>
8648 #include <stdio.h>
8649 #if STDC_HEADERS
8650 # include <stdlib.h>
8651 # include <stddef.h>
8652 #endif
8655 main ()
8657 int major, minor, micro;
8658 char *tmp_version;
8660 system ("touch conf.gtktest");
8662 /* HP/UX 9 (%@#!) writes to sscanf strings */
8663 tmp_version = g_strdup("$min_gtk_version");
8664 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
8665 printf("%s, bad version string\n", "$min_gtk_version");
8666 exit(1);
8669 if ((gtk_major_version > major) ||
8670 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
8671 ((gtk_major_version == major) && (gtk_minor_version == minor) &&
8672 (gtk_micro_version >= micro)))
8674 return 0;
8676 return 1;
8679 _ACEOF
8680 rm -f conftest$ac_exeext
8681 if { (ac_try="$ac_link"
8682 case "(($ac_try" in
8683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8684 *) ac_try_echo=$ac_try;;
8685 esac
8686 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8687 $as_echo "$ac_try_echo") >&5
8688 (eval "$ac_link") 2>&5
8689 ac_status=$?
8690 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8691 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8692 { (case "(($ac_try" in
8693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8694 *) ac_try_echo=$ac_try;;
8695 esac
8696 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8697 $as_echo "$ac_try_echo") >&5
8698 (eval "$ac_try") 2>&5
8699 ac_status=$?
8700 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8701 (exit $ac_status); }; }; then
8703 else
8704 $as_echo "$as_me: program exited with status $ac_status" >&5
8705 $as_echo "$as_me: failed program was:" >&5
8706 sed 's/^/| /' conftest.$ac_ext >&5
8708 ( exit $ac_status )
8709 no_gtk=yes
8711 rm -rf conftest.dSYM
8712 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8716 CFLAGS="$ac_save_CFLAGS"
8717 LIBS="$ac_save_LIBS"
8720 if test "x$no_gtk" = x ; then
8721 if test "x$enable_gtktest" = "xyes"; then
8722 { $as_echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8723 $as_echo "yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
8724 else
8725 { $as_echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8726 $as_echo "found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
8728 GTK_LIBNAME="$GTK_LIBS"
8729 GUI_INC_LOC="$GTK_CFLAGS"
8730 else
8732 { $as_echo "$as_me:$LINENO: result: no" >&5
8733 $as_echo "no" >&6; }
8734 GTK_CFLAGS=""
8735 GTK_LIBS=""
8740 else
8741 GTK_CFLAGS=""
8742 GTK_LIBS=""
8747 rm -f conf.gtktest
8749 if test "x$GTK_CFLAGS" != "x"; then
8750 SKIP_ATHENA=YES
8751 SKIP_NEXTAW=YES
8752 SKIP_MOTIF=YES
8753 GUITYPE=GTK
8758 if test "x$GUITYPE" = "xGTK"; then
8759 if test "$gtk_major_version" = 1 -a "0$gtk_minor_version" -lt 2 \
8760 -o "$gtk_major_version" = 1 -a "$gtk_minor_version" = 2 -a "0$gtk_micro_version" -lt 3; then
8761 { $as_echo "$as_me:$LINENO: result: this GTK version is old; version 1.2.3 or later is recommended" >&5
8762 $as_echo "this GTK version is old; version 1.2.3 or later is recommended" >&6; }
8763 else
8765 if test "0$gtk_major_version" -ge 2; then
8766 cat >>confdefs.h <<\_ACEOF
8767 #define HAVE_GTK2 1
8768 _ACEOF
8770 if test "$gtk_minor_version" = 1 -a "0$gtk_micro_version" -ge 1 \
8771 || test "0$gtk_minor_version" -ge 2 \
8772 || test "0$gtk_major_version" -gt 2; then
8773 cat >>confdefs.h <<\_ACEOF
8774 #define HAVE_GTK_MULTIHEAD 1
8775 _ACEOF
8779 if test -z "$SKIP_GNOME"; then
8787 # Check whether --with-gnome-includes was given.
8788 if test "${with_gnome_includes+set}" = set; then
8789 withval=$with_gnome_includes; CFLAGS="$CFLAGS -I$withval"
8795 # Check whether --with-gnome-libs was given.
8796 if test "${with_gnome_libs+set}" = set; then
8797 withval=$with_gnome_libs; LDFLAGS="$LDFLAGS -L$withval" gnome_prefix=$withval
8803 # Check whether --with-gnome was given.
8804 if test "${with_gnome+set}" = set; then
8805 withval=$with_gnome; if test x$withval = xyes; then
8806 want_gnome=yes
8807 have_gnome=yes
8808 else
8809 if test "x$withval" = xno; then
8810 want_gnome=no
8811 else
8812 want_gnome=yes
8813 LDFLAGS="$LDFLAGS -L$withval/lib"
8814 CFLAGS="$CFLAGS -I$withval/include"
8815 gnome_prefix=$withval/lib
8818 else
8819 want_gnome=yes
8823 if test "x$want_gnome" = xyes -a "0$gtk_major_version" -ge 2; then
8825 { $as_echo "$as_me:$LINENO: checking for libgnomeui-2.0" >&5
8826 $as_echo_n "checking for libgnomeui-2.0... " >&6; }
8827 if $PKG_CONFIG --exists libgnomeui-2.0; then
8828 { $as_echo "$as_me:$LINENO: result: yes" >&5
8829 $as_echo "yes" >&6; }
8830 GNOME_LIBS=`$PKG_CONFIG --libs-only-l libgnomeui-2.0`
8831 GNOME_LIBDIR=`$PKG_CONFIG --libs-only-L libgnomeui-2.0`
8832 GNOME_INCLUDEDIR=`$PKG_CONFIG --cflags libgnomeui-2.0`
8834 { $as_echo "$as_me:$LINENO: checking for FreeBSD" >&5
8835 $as_echo_n "checking for FreeBSD... " >&6; }
8836 if test "`(uname) 2>/dev/null`" = FreeBSD; then
8837 { $as_echo "$as_me:$LINENO: result: yes" >&5
8838 $as_echo "yes" >&6; }
8839 GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR -D_THREAD_SAFE"
8840 GNOME_LIBS="$GNOME_LIBS -pthread"
8841 else
8842 { $as_echo "$as_me:$LINENO: result: no" >&5
8843 $as_echo "no" >&6; }
8845 have_gnome=yes
8846 else
8847 { $as_echo "$as_me:$LINENO: result: not found" >&5
8848 $as_echo "not found" >&6; }
8849 if test "x" = xfail; then
8850 { { $as_echo "$as_me:$LINENO: error: Could not find libgnomeui-2.0 via pkg-config" >&5
8851 $as_echo "$as_me: error: Could not find libgnomeui-2.0 via pkg-config" >&2;}
8852 { (exit 1); exit 1; }; }
8856 elif test "x$want_gnome" = xyes; then
8858 # Extract the first word of "gnome-config", so it can be a program name with args.
8859 set dummy gnome-config; ac_word=$2
8860 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8861 $as_echo_n "checking for $ac_word... " >&6; }
8862 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
8863 $as_echo_n "(cached) " >&6
8864 else
8865 case $GNOME_CONFIG in
8866 [\\/]* | ?:[\\/]*)
8867 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
8870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8871 for as_dir in $PATH
8873 IFS=$as_save_IFS
8874 test -z "$as_dir" && as_dir=.
8875 for ac_exec_ext in '' $ac_executable_extensions; do
8876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8877 ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8878 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8879 break 2
8881 done
8882 done
8883 IFS=$as_save_IFS
8885 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
8887 esac
8889 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
8890 if test -n "$GNOME_CONFIG"; then
8891 { $as_echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
8892 $as_echo "$GNOME_CONFIG" >&6; }
8893 else
8894 { $as_echo "$as_me:$LINENO: result: no" >&5
8895 $as_echo "no" >&6; }
8899 if test "$GNOME_CONFIG" = "no"; then
8900 no_gnome_config="yes"
8901 else
8902 { $as_echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
8903 $as_echo_n "checking if $GNOME_CONFIG works... " >&6; }
8904 if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
8905 { $as_echo "$as_me:$LINENO: result: yes" >&5
8906 $as_echo "yes" >&6; }
8907 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome gnomeui`"
8908 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
8909 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
8910 have_gnome=yes
8911 else
8912 { $as_echo "$as_me:$LINENO: result: no" >&5
8913 $as_echo "no" >&6; }
8914 no_gnome_config="yes"
8918 if test x$exec_prefix = xNONE; then
8919 if test x$prefix = xNONE; then
8920 gnome_prefix=$ac_default_prefix/lib
8921 else
8922 gnome_prefix=$prefix/lib
8924 else
8925 gnome_prefix=`eval echo \`echo $libdir\``
8928 if test "$no_gnome_config" = "yes"; then
8929 { $as_echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
8930 $as_echo_n "checking for gnomeConf.sh file in $gnome_prefix... " >&6; }
8931 if test -f $gnome_prefix/gnomeConf.sh; then
8932 { $as_echo "$as_me:$LINENO: result: found" >&5
8933 $as_echo "found" >&6; }
8934 echo "loading gnome configuration from" \
8935 "$gnome_prefix/gnomeConf.sh"
8936 . $gnome_prefix/gnomeConf.sh
8937 have_gnome=yes
8938 else
8939 { $as_echo "$as_me:$LINENO: result: not found" >&5
8940 $as_echo "not found" >&6; }
8941 if test x = xfail; then
8942 { { $as_echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
8943 $as_echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
8944 { (exit 1); exit 1; }; }
8951 if test x$have_gnome = xyes ; then
8952 cat >>confdefs.h <<\_ACEOF
8953 #define FEAT_GUI_GNOME 1
8954 _ACEOF
8956 GUI_INC_LOC="$GUI_INC_LOC $GNOME_INCLUDEDIR"
8957 GTK_LIBNAME="$GTK_LIBNAME $GNOME_LIBDIR $GNOME_LIBS"
8967 if test -z "$SKIP_MOTIF"; then
8968 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"
8969 GUI_INC_LOC="`echo $GUI_INC_LOC|sed 's%-I%%g'`"
8971 { $as_echo "$as_me:$LINENO: checking for location of Motif GUI includes" >&5
8972 $as_echo_n "checking for location of Motif GUI includes... " >&6; }
8973 gui_includes="`echo $x_includes|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/include/g` $GUI_INC_LOC"
8974 GUI_INC_LOC=
8975 for try in $gui_includes; do
8976 if test -f "$try/Xm/Xm.h"; then
8977 GUI_INC_LOC=$try
8979 done
8980 if test -n "$GUI_INC_LOC"; then
8981 if test "$GUI_INC_LOC" = /usr/include; then
8982 GUI_INC_LOC=
8983 { $as_echo "$as_me:$LINENO: result: in default path" >&5
8984 $as_echo "in default path" >&6; }
8985 else
8986 { $as_echo "$as_me:$LINENO: result: $GUI_INC_LOC" >&5
8987 $as_echo "$GUI_INC_LOC" >&6; }
8989 else
8990 { $as_echo "$as_me:$LINENO: result: <not found>" >&5
8991 $as_echo "<not found>" >&6; }
8992 SKIP_MOTIF=YES
8997 if test -z "$SKIP_MOTIF"; then
8998 { $as_echo "$as_me:$LINENO: checking --with-motif-lib argument" >&5
8999 $as_echo_n "checking --with-motif-lib argument... " >&6; }
9001 # Check whether --with-motif-lib was given.
9002 if test "${with_motif_lib+set}" = set; then
9003 withval=$with_motif_lib; MOTIF_LIBNAME="${withval}"
9007 if test -n "$MOTIF_LIBNAME"; then
9008 { $as_echo "$as_me:$LINENO: result: $MOTIF_LIBNAME" >&5
9009 $as_echo "$MOTIF_LIBNAME" >&6; }
9010 GUI_LIB_LOC=
9011 else
9012 { $as_echo "$as_me:$LINENO: result: no" >&5
9013 $as_echo "no" >&6; }
9015 GUI_LIB_LOC="`echo $GUI_LIB_LOC|sed 's%-L%%g'`"
9017 { $as_echo "$as_me:$LINENO: checking for location of Motif GUI libs" >&5
9018 $as_echo_n "checking for location of Motif GUI libs... " >&6; }
9019 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"
9020 GUI_LIB_LOC=
9021 for try in $gui_libs; do
9022 for libtry in "$try"/libXm.a "$try"/libXm.so* "$try"/libXm.sl "$try"/libXm.dylib; do
9023 if test -f "$libtry"; then
9024 GUI_LIB_LOC=$try
9026 done
9027 done
9028 if test -n "$GUI_LIB_LOC"; then
9029 if test "$GUI_LIB_LOC" = /usr/lib; then
9030 GUI_LIB_LOC=
9031 { $as_echo "$as_me:$LINENO: result: in default path" >&5
9032 $as_echo "in default path" >&6; }
9033 else
9034 if test -n "$GUI_LIB_LOC"; then
9035 { $as_echo "$as_me:$LINENO: result: $GUI_LIB_LOC" >&5
9036 $as_echo "$GUI_LIB_LOC" >&6; }
9037 if test "`(uname) 2>/dev/null`" = SunOS &&
9038 uname -r | grep '^5' >/dev/null; then
9039 GUI_LIB_LOC="$GUI_LIB_LOC -R $GUI_LIB_LOC"
9043 MOTIF_LIBNAME=-lXm
9044 else
9045 { $as_echo "$as_me:$LINENO: result: <not found>" >&5
9046 $as_echo "<not found>" >&6; }
9047 SKIP_MOTIF=YES
9052 if test -z "$SKIP_MOTIF"; then
9053 SKIP_ATHENA=YES
9054 SKIP_NEXTAW=YES
9055 GUITYPE=MOTIF
9060 GUI_X_LIBS=
9062 if test -z "$SKIP_ATHENA"; then
9063 { $as_echo "$as_me:$LINENO: checking if Athena header files can be found" >&5
9064 $as_echo_n "checking if Athena header files can be found... " >&6; }
9065 cflags_save=$CFLAGS
9066 CFLAGS="$CFLAGS $X_CFLAGS"
9067 cat >conftest.$ac_ext <<_ACEOF
9068 /* confdefs.h. */
9069 _ACEOF
9070 cat confdefs.h >>conftest.$ac_ext
9071 cat >>conftest.$ac_ext <<_ACEOF
9072 /* end confdefs.h. */
9074 #include <X11/Intrinsic.h>
9075 #include <X11/Xaw/Paned.h>
9077 main ()
9081 return 0;
9083 _ACEOF
9084 rm -f conftest.$ac_objext
9085 if { (ac_try="$ac_compile"
9086 case "(($ac_try" in
9087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9088 *) ac_try_echo=$ac_try;;
9089 esac
9090 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9091 $as_echo "$ac_try_echo") >&5
9092 (eval "$ac_compile") 2>conftest.er1
9093 ac_status=$?
9094 grep -v '^ *+' conftest.er1 >conftest.err
9095 rm -f conftest.er1
9096 cat conftest.err >&5
9097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9098 (exit $ac_status); } && {
9099 test -z "$ac_c_werror_flag" ||
9100 test ! -s conftest.err
9101 } && test -s conftest.$ac_objext; then
9102 { $as_echo "$as_me:$LINENO: result: yes" >&5
9103 $as_echo "yes" >&6; }
9104 else
9105 $as_echo "$as_me: failed program was:" >&5
9106 sed 's/^/| /' conftest.$ac_ext >&5
9108 { $as_echo "$as_me:$LINENO: result: no" >&5
9109 $as_echo "no" >&6; }; SKIP_ATHENA=YES
9112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9113 CFLAGS=$cflags_save
9116 if test -z "$SKIP_ATHENA"; then
9117 GUITYPE=ATHENA
9120 if test -z "$SKIP_NEXTAW"; then
9121 { $as_echo "$as_me:$LINENO: checking if neXtaw header files can be found" >&5
9122 $as_echo_n "checking if neXtaw header files can be found... " >&6; }
9123 cflags_save=$CFLAGS
9124 CFLAGS="$CFLAGS $X_CFLAGS"
9125 cat >conftest.$ac_ext <<_ACEOF
9126 /* confdefs.h. */
9127 _ACEOF
9128 cat confdefs.h >>conftest.$ac_ext
9129 cat >>conftest.$ac_ext <<_ACEOF
9130 /* end confdefs.h. */
9132 #include <X11/Intrinsic.h>
9133 #include <X11/neXtaw/Paned.h>
9135 main ()
9139 return 0;
9141 _ACEOF
9142 rm -f conftest.$ac_objext
9143 if { (ac_try="$ac_compile"
9144 case "(($ac_try" in
9145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9146 *) ac_try_echo=$ac_try;;
9147 esac
9148 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9149 $as_echo "$ac_try_echo") >&5
9150 (eval "$ac_compile") 2>conftest.er1
9151 ac_status=$?
9152 grep -v '^ *+' conftest.er1 >conftest.err
9153 rm -f conftest.er1
9154 cat conftest.err >&5
9155 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9156 (exit $ac_status); } && {
9157 test -z "$ac_c_werror_flag" ||
9158 test ! -s conftest.err
9159 } && test -s conftest.$ac_objext; then
9160 { $as_echo "$as_me:$LINENO: result: yes" >&5
9161 $as_echo "yes" >&6; }
9162 else
9163 $as_echo "$as_me: failed program was:" >&5
9164 sed 's/^/| /' conftest.$ac_ext >&5
9166 { $as_echo "$as_me:$LINENO: result: no" >&5
9167 $as_echo "no" >&6; }; SKIP_NEXTAW=YES
9170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9171 CFLAGS=$cflags_save
9174 if test -z "$SKIP_NEXTAW"; then
9175 GUITYPE=NEXTAW
9178 if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
9179 if test -n "$GUI_INC_LOC"; then
9180 GUI_INC_LOC=-I"`echo $GUI_INC_LOC|sed 's%-I%%'`"
9182 if test -n "$GUI_LIB_LOC"; then
9183 GUI_LIB_LOC=-L"`echo $GUI_LIB_LOC|sed 's%-L%%'`"
9186 ldflags_save=$LDFLAGS
9187 LDFLAGS="$X_LIBS $LDFLAGS"
9188 { $as_echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
9189 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
9190 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
9191 $as_echo_n "(cached) " >&6
9192 else
9193 ac_check_lib_save_LIBS=$LIBS
9194 LIBS="-lXext -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9195 cat >conftest.$ac_ext <<_ACEOF
9196 /* confdefs.h. */
9197 _ACEOF
9198 cat confdefs.h >>conftest.$ac_ext
9199 cat >>conftest.$ac_ext <<_ACEOF
9200 /* end confdefs.h. */
9202 /* Override any GCC internal prototype to avoid an error.
9203 Use char because int might match the return type of a GCC
9204 builtin and then its argument prototype would still apply. */
9205 #ifdef __cplusplus
9206 extern "C"
9207 #endif
9208 char XShapeQueryExtension ();
9210 main ()
9212 return XShapeQueryExtension ();
9214 return 0;
9216 _ACEOF
9217 rm -f conftest.$ac_objext conftest$ac_exeext
9218 if { (ac_try="$ac_link"
9219 case "(($ac_try" in
9220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9221 *) ac_try_echo=$ac_try;;
9222 esac
9223 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9224 $as_echo "$ac_try_echo") >&5
9225 (eval "$ac_link") 2>conftest.er1
9226 ac_status=$?
9227 grep -v '^ *+' conftest.er1 >conftest.err
9228 rm -f conftest.er1
9229 cat conftest.err >&5
9230 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9231 (exit $ac_status); } && {
9232 test -z "$ac_c_werror_flag" ||
9233 test ! -s conftest.err
9234 } && test -s conftest$ac_exeext && {
9235 test "$cross_compiling" = yes ||
9236 $as_test_x conftest$ac_exeext
9237 }; then
9238 ac_cv_lib_Xext_XShapeQueryExtension=yes
9239 else
9240 $as_echo "$as_me: failed program was:" >&5
9241 sed 's/^/| /' conftest.$ac_ext >&5
9243 ac_cv_lib_Xext_XShapeQueryExtension=no
9246 rm -rf conftest.dSYM
9247 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9248 conftest$ac_exeext conftest.$ac_ext
9249 LIBS=$ac_check_lib_save_LIBS
9251 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
9252 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
9253 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
9254 GUI_X_LIBS="-lXext"
9257 { $as_echo "$as_me:$LINENO: checking for wslen in -lw" >&5
9258 $as_echo_n "checking for wslen in -lw... " >&6; }
9259 if test "${ac_cv_lib_w_wslen+set}" = set; then
9260 $as_echo_n "(cached) " >&6
9261 else
9262 ac_check_lib_save_LIBS=$LIBS
9263 LIBS="-lw $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9264 cat >conftest.$ac_ext <<_ACEOF
9265 /* confdefs.h. */
9266 _ACEOF
9267 cat confdefs.h >>conftest.$ac_ext
9268 cat >>conftest.$ac_ext <<_ACEOF
9269 /* end confdefs.h. */
9271 /* Override any GCC internal prototype to avoid an error.
9272 Use char because int might match the return type of a GCC
9273 builtin and then its argument prototype would still apply. */
9274 #ifdef __cplusplus
9275 extern "C"
9276 #endif
9277 char wslen ();
9279 main ()
9281 return wslen ();
9283 return 0;
9285 _ACEOF
9286 rm -f conftest.$ac_objext conftest$ac_exeext
9287 if { (ac_try="$ac_link"
9288 case "(($ac_try" in
9289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9290 *) ac_try_echo=$ac_try;;
9291 esac
9292 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9293 $as_echo "$ac_try_echo") >&5
9294 (eval "$ac_link") 2>conftest.er1
9295 ac_status=$?
9296 grep -v '^ *+' conftest.er1 >conftest.err
9297 rm -f conftest.er1
9298 cat conftest.err >&5
9299 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9300 (exit $ac_status); } && {
9301 test -z "$ac_c_werror_flag" ||
9302 test ! -s conftest.err
9303 } && test -s conftest$ac_exeext && {
9304 test "$cross_compiling" = yes ||
9305 $as_test_x conftest$ac_exeext
9306 }; then
9307 ac_cv_lib_w_wslen=yes
9308 else
9309 $as_echo "$as_me: failed program was:" >&5
9310 sed 's/^/| /' conftest.$ac_ext >&5
9312 ac_cv_lib_w_wslen=no
9315 rm -rf conftest.dSYM
9316 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9317 conftest$ac_exeext conftest.$ac_ext
9318 LIBS=$ac_check_lib_save_LIBS
9320 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_w_wslen" >&5
9321 $as_echo "$ac_cv_lib_w_wslen" >&6; }
9322 if test $ac_cv_lib_w_wslen = yes; then
9323 X_EXTRA_LIBS="$X_EXTRA_LIBS -lw"
9326 { $as_echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5
9327 $as_echo_n "checking for dlsym in -ldl... " >&6; }
9328 if test "${ac_cv_lib_dl_dlsym+set}" = set; then
9329 $as_echo_n "(cached) " >&6
9330 else
9331 ac_check_lib_save_LIBS=$LIBS
9332 LIBS="-ldl $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9333 cat >conftest.$ac_ext <<_ACEOF
9334 /* confdefs.h. */
9335 _ACEOF
9336 cat confdefs.h >>conftest.$ac_ext
9337 cat >>conftest.$ac_ext <<_ACEOF
9338 /* end confdefs.h. */
9340 /* Override any GCC internal prototype to avoid an error.
9341 Use char because int might match the return type of a GCC
9342 builtin and then its argument prototype would still apply. */
9343 #ifdef __cplusplus
9344 extern "C"
9345 #endif
9346 char dlsym ();
9348 main ()
9350 return dlsym ();
9352 return 0;
9354 _ACEOF
9355 rm -f conftest.$ac_objext conftest$ac_exeext
9356 if { (ac_try="$ac_link"
9357 case "(($ac_try" in
9358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9359 *) ac_try_echo=$ac_try;;
9360 esac
9361 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9362 $as_echo "$ac_try_echo") >&5
9363 (eval "$ac_link") 2>conftest.er1
9364 ac_status=$?
9365 grep -v '^ *+' conftest.er1 >conftest.err
9366 rm -f conftest.er1
9367 cat conftest.err >&5
9368 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9369 (exit $ac_status); } && {
9370 test -z "$ac_c_werror_flag" ||
9371 test ! -s conftest.err
9372 } && test -s conftest$ac_exeext && {
9373 test "$cross_compiling" = yes ||
9374 $as_test_x conftest$ac_exeext
9375 }; then
9376 ac_cv_lib_dl_dlsym=yes
9377 else
9378 $as_echo "$as_me: failed program was:" >&5
9379 sed 's/^/| /' conftest.$ac_ext >&5
9381 ac_cv_lib_dl_dlsym=no
9384 rm -rf conftest.dSYM
9385 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9386 conftest$ac_exeext conftest.$ac_ext
9387 LIBS=$ac_check_lib_save_LIBS
9389 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5
9390 $as_echo "$ac_cv_lib_dl_dlsym" >&6; }
9391 if test $ac_cv_lib_dl_dlsym = yes; then
9392 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldl"
9395 { $as_echo "$as_me:$LINENO: checking for XmuCreateStippledPixmap in -lXmu" >&5
9396 $as_echo_n "checking for XmuCreateStippledPixmap in -lXmu... " >&6; }
9397 if test "${ac_cv_lib_Xmu_XmuCreateStippledPixmap+set}" = set; then
9398 $as_echo_n "(cached) " >&6
9399 else
9400 ac_check_lib_save_LIBS=$LIBS
9401 LIBS="-lXmu $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9402 cat >conftest.$ac_ext <<_ACEOF
9403 /* confdefs.h. */
9404 _ACEOF
9405 cat confdefs.h >>conftest.$ac_ext
9406 cat >>conftest.$ac_ext <<_ACEOF
9407 /* end confdefs.h. */
9409 /* Override any GCC internal prototype to avoid an error.
9410 Use char because int might match the return type of a GCC
9411 builtin and then its argument prototype would still apply. */
9412 #ifdef __cplusplus
9413 extern "C"
9414 #endif
9415 char XmuCreateStippledPixmap ();
9417 main ()
9419 return XmuCreateStippledPixmap ();
9421 return 0;
9423 _ACEOF
9424 rm -f conftest.$ac_objext conftest$ac_exeext
9425 if { (ac_try="$ac_link"
9426 case "(($ac_try" in
9427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9428 *) ac_try_echo=$ac_try;;
9429 esac
9430 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9431 $as_echo "$ac_try_echo") >&5
9432 (eval "$ac_link") 2>conftest.er1
9433 ac_status=$?
9434 grep -v '^ *+' conftest.er1 >conftest.err
9435 rm -f conftest.er1
9436 cat conftest.err >&5
9437 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9438 (exit $ac_status); } && {
9439 test -z "$ac_c_werror_flag" ||
9440 test ! -s conftest.err
9441 } && test -s conftest$ac_exeext && {
9442 test "$cross_compiling" = yes ||
9443 $as_test_x conftest$ac_exeext
9444 }; then
9445 ac_cv_lib_Xmu_XmuCreateStippledPixmap=yes
9446 else
9447 $as_echo "$as_me: failed program was:" >&5
9448 sed 's/^/| /' conftest.$ac_ext >&5
9450 ac_cv_lib_Xmu_XmuCreateStippledPixmap=no
9453 rm -rf conftest.dSYM
9454 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9455 conftest$ac_exeext conftest.$ac_ext
9456 LIBS=$ac_check_lib_save_LIBS
9458 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&5
9459 $as_echo "$ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&6; }
9460 if test $ac_cv_lib_Xmu_XmuCreateStippledPixmap = yes; then
9461 GUI_X_LIBS="-lXmu $GUI_X_LIBS"
9464 if test -z "$SKIP_MOTIF"; then
9465 { $as_echo "$as_me:$LINENO: checking for XpEndJob in -lXp" >&5
9466 $as_echo_n "checking for XpEndJob in -lXp... " >&6; }
9467 if test "${ac_cv_lib_Xp_XpEndJob+set}" = set; then
9468 $as_echo_n "(cached) " >&6
9469 else
9470 ac_check_lib_save_LIBS=$LIBS
9471 LIBS="-lXp $GUI_X_LIBS -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9472 cat >conftest.$ac_ext <<_ACEOF
9473 /* confdefs.h. */
9474 _ACEOF
9475 cat confdefs.h >>conftest.$ac_ext
9476 cat >>conftest.$ac_ext <<_ACEOF
9477 /* end confdefs.h. */
9479 /* Override any GCC internal prototype to avoid an error.
9480 Use char because int might match the return type of a GCC
9481 builtin and then its argument prototype would still apply. */
9482 #ifdef __cplusplus
9483 extern "C"
9484 #endif
9485 char XpEndJob ();
9487 main ()
9489 return XpEndJob ();
9491 return 0;
9493 _ACEOF
9494 rm -f conftest.$ac_objext conftest$ac_exeext
9495 if { (ac_try="$ac_link"
9496 case "(($ac_try" in
9497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9498 *) ac_try_echo=$ac_try;;
9499 esac
9500 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9501 $as_echo "$ac_try_echo") >&5
9502 (eval "$ac_link") 2>conftest.er1
9503 ac_status=$?
9504 grep -v '^ *+' conftest.er1 >conftest.err
9505 rm -f conftest.er1
9506 cat conftest.err >&5
9507 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9508 (exit $ac_status); } && {
9509 test -z "$ac_c_werror_flag" ||
9510 test ! -s conftest.err
9511 } && test -s conftest$ac_exeext && {
9512 test "$cross_compiling" = yes ||
9513 $as_test_x conftest$ac_exeext
9514 }; then
9515 ac_cv_lib_Xp_XpEndJob=yes
9516 else
9517 $as_echo "$as_me: failed program was:" >&5
9518 sed 's/^/| /' conftest.$ac_ext >&5
9520 ac_cv_lib_Xp_XpEndJob=no
9523 rm -rf conftest.dSYM
9524 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9525 conftest$ac_exeext conftest.$ac_ext
9526 LIBS=$ac_check_lib_save_LIBS
9528 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpEndJob" >&5
9529 $as_echo "$ac_cv_lib_Xp_XpEndJob" >&6; }
9530 if test $ac_cv_lib_Xp_XpEndJob = yes; then
9531 GUI_X_LIBS="-lXp $GUI_X_LIBS"
9535 LDFLAGS=$ldflags_save
9537 { $as_echo "$as_me:$LINENO: checking for extra X11 defines" >&5
9538 $as_echo_n "checking for extra X11 defines... " >&6; }
9539 NARROW_PROTO=
9540 rm -fr conftestdir
9541 if mkdir conftestdir; then
9542 cd conftestdir
9543 cat > Imakefile <<'EOF'
9544 acfindx:
9545 @echo 'NARROW_PROTO="${PROTO_DEFINES}"'
9547 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
9548 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9550 cd ..
9551 rm -fr conftestdir
9553 if test -z "$NARROW_PROTO"; then
9554 { $as_echo "$as_me:$LINENO: result: no" >&5
9555 $as_echo "no" >&6; }
9556 else
9557 { $as_echo "$as_me:$LINENO: result: $NARROW_PROTO" >&5
9558 $as_echo "$NARROW_PROTO" >&6; }
9563 if test "$enable_xsmp" = "yes"; then
9564 cppflags_save=$CPPFLAGS
9565 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9567 for ac_header in X11/SM/SMlib.h
9569 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9570 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9571 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9572 $as_echo_n "checking for $ac_header... " >&6; }
9573 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9574 $as_echo_n "(cached) " >&6
9576 ac_res=`eval 'as_val=${'$as_ac_Header'}
9577 $as_echo "$as_val"'`
9578 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9579 $as_echo "$ac_res" >&6; }
9580 else
9581 # Is the header compilable?
9582 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9583 $as_echo_n "checking $ac_header usability... " >&6; }
9584 cat >conftest.$ac_ext <<_ACEOF
9585 /* confdefs.h. */
9586 _ACEOF
9587 cat confdefs.h >>conftest.$ac_ext
9588 cat >>conftest.$ac_ext <<_ACEOF
9589 /* end confdefs.h. */
9590 $ac_includes_default
9591 #include <$ac_header>
9592 _ACEOF
9593 rm -f conftest.$ac_objext
9594 if { (ac_try="$ac_compile"
9595 case "(($ac_try" in
9596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9597 *) ac_try_echo=$ac_try;;
9598 esac
9599 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9600 $as_echo "$ac_try_echo") >&5
9601 (eval "$ac_compile") 2>conftest.er1
9602 ac_status=$?
9603 grep -v '^ *+' conftest.er1 >conftest.err
9604 rm -f conftest.er1
9605 cat conftest.err >&5
9606 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9607 (exit $ac_status); } && {
9608 test -z "$ac_c_werror_flag" ||
9609 test ! -s conftest.err
9610 } && test -s conftest.$ac_objext; then
9611 ac_header_compiler=yes
9612 else
9613 $as_echo "$as_me: failed program was:" >&5
9614 sed 's/^/| /' conftest.$ac_ext >&5
9616 ac_header_compiler=no
9619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9620 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9621 $as_echo "$ac_header_compiler" >&6; }
9623 # Is the header present?
9624 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9625 $as_echo_n "checking $ac_header presence... " >&6; }
9626 cat >conftest.$ac_ext <<_ACEOF
9627 /* confdefs.h. */
9628 _ACEOF
9629 cat confdefs.h >>conftest.$ac_ext
9630 cat >>conftest.$ac_ext <<_ACEOF
9631 /* end confdefs.h. */
9632 #include <$ac_header>
9633 _ACEOF
9634 if { (ac_try="$ac_cpp conftest.$ac_ext"
9635 case "(($ac_try" in
9636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9637 *) ac_try_echo=$ac_try;;
9638 esac
9639 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9640 $as_echo "$ac_try_echo") >&5
9641 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9642 ac_status=$?
9643 grep -v '^ *+' conftest.er1 >conftest.err
9644 rm -f conftest.er1
9645 cat conftest.err >&5
9646 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9647 (exit $ac_status); } >/dev/null && {
9648 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9649 test ! -s conftest.err
9650 }; then
9651 ac_header_preproc=yes
9652 else
9653 $as_echo "$as_me: failed program was:" >&5
9654 sed 's/^/| /' conftest.$ac_ext >&5
9656 ac_header_preproc=no
9659 rm -f conftest.err conftest.$ac_ext
9660 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9661 $as_echo "$ac_header_preproc" >&6; }
9663 # So? What about this header?
9664 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9665 yes:no: )
9666 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9667 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9668 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9669 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9670 ac_header_preproc=yes
9672 no:yes:* )
9673 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9674 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9675 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9676 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9677 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9678 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9679 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9680 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9681 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9682 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9683 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9684 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9687 esac
9688 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9689 $as_echo_n "checking for $ac_header... " >&6; }
9690 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9691 $as_echo_n "(cached) " >&6
9692 else
9693 eval "$as_ac_Header=\$ac_header_preproc"
9695 ac_res=`eval 'as_val=${'$as_ac_Header'}
9696 $as_echo "$as_val"'`
9697 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9698 $as_echo "$ac_res" >&6; }
9701 if test `eval 'as_val=${'$as_ac_Header'}
9702 $as_echo "$as_val"'` = yes; then
9703 cat >>confdefs.h <<_ACEOF
9704 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9705 _ACEOF
9709 done
9711 CPPFLAGS=$cppflags_save
9715 if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF" -o -z "$SKIP_GTK"; then
9716 cppflags_save=$CPPFLAGS
9717 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9720 for ac_header in X11/xpm.h X11/Sunkeysym.h
9722 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9723 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9724 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9725 $as_echo_n "checking for $ac_header... " >&6; }
9726 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9727 $as_echo_n "(cached) " >&6
9729 ac_res=`eval 'as_val=${'$as_ac_Header'}
9730 $as_echo "$as_val"'`
9731 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9732 $as_echo "$ac_res" >&6; }
9733 else
9734 # Is the header compilable?
9735 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9736 $as_echo_n "checking $ac_header usability... " >&6; }
9737 cat >conftest.$ac_ext <<_ACEOF
9738 /* confdefs.h. */
9739 _ACEOF
9740 cat confdefs.h >>conftest.$ac_ext
9741 cat >>conftest.$ac_ext <<_ACEOF
9742 /* end confdefs.h. */
9743 $ac_includes_default
9744 #include <$ac_header>
9745 _ACEOF
9746 rm -f conftest.$ac_objext
9747 if { (ac_try="$ac_compile"
9748 case "(($ac_try" in
9749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9750 *) ac_try_echo=$ac_try;;
9751 esac
9752 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9753 $as_echo "$ac_try_echo") >&5
9754 (eval "$ac_compile") 2>conftest.er1
9755 ac_status=$?
9756 grep -v '^ *+' conftest.er1 >conftest.err
9757 rm -f conftest.er1
9758 cat conftest.err >&5
9759 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9760 (exit $ac_status); } && {
9761 test -z "$ac_c_werror_flag" ||
9762 test ! -s conftest.err
9763 } && test -s conftest.$ac_objext; then
9764 ac_header_compiler=yes
9765 else
9766 $as_echo "$as_me: failed program was:" >&5
9767 sed 's/^/| /' conftest.$ac_ext >&5
9769 ac_header_compiler=no
9772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9773 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9774 $as_echo "$ac_header_compiler" >&6; }
9776 # Is the header present?
9777 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9778 $as_echo_n "checking $ac_header presence... " >&6; }
9779 cat >conftest.$ac_ext <<_ACEOF
9780 /* confdefs.h. */
9781 _ACEOF
9782 cat confdefs.h >>conftest.$ac_ext
9783 cat >>conftest.$ac_ext <<_ACEOF
9784 /* end confdefs.h. */
9785 #include <$ac_header>
9786 _ACEOF
9787 if { (ac_try="$ac_cpp conftest.$ac_ext"
9788 case "(($ac_try" in
9789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9790 *) ac_try_echo=$ac_try;;
9791 esac
9792 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9793 $as_echo "$ac_try_echo") >&5
9794 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9795 ac_status=$?
9796 grep -v '^ *+' conftest.er1 >conftest.err
9797 rm -f conftest.er1
9798 cat conftest.err >&5
9799 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9800 (exit $ac_status); } >/dev/null && {
9801 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9802 test ! -s conftest.err
9803 }; then
9804 ac_header_preproc=yes
9805 else
9806 $as_echo "$as_me: failed program was:" >&5
9807 sed 's/^/| /' conftest.$ac_ext >&5
9809 ac_header_preproc=no
9812 rm -f conftest.err conftest.$ac_ext
9813 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9814 $as_echo "$ac_header_preproc" >&6; }
9816 # So? What about this header?
9817 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9818 yes:no: )
9819 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9820 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9821 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9822 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9823 ac_header_preproc=yes
9825 no:yes:* )
9826 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9827 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9828 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9829 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9830 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9831 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9832 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9833 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9834 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9835 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9836 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9837 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9840 esac
9841 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9842 $as_echo_n "checking for $ac_header... " >&6; }
9843 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9844 $as_echo_n "(cached) " >&6
9845 else
9846 eval "$as_ac_Header=\$ac_header_preproc"
9848 ac_res=`eval 'as_val=${'$as_ac_Header'}
9849 $as_echo "$as_val"'`
9850 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9851 $as_echo "$ac_res" >&6; }
9854 if test `eval 'as_val=${'$as_ac_Header'}
9855 $as_echo "$as_val"'` = yes; then
9856 cat >>confdefs.h <<_ACEOF
9857 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9858 _ACEOF
9862 done
9865 if test ! "$enable_xim" = "no"; then
9866 { $as_echo "$as_me:$LINENO: checking for XIMText in X11/Xlib.h" >&5
9867 $as_echo_n "checking for XIMText in X11/Xlib.h... " >&6; }
9868 cat >conftest.$ac_ext <<_ACEOF
9869 /* confdefs.h. */
9870 _ACEOF
9871 cat confdefs.h >>conftest.$ac_ext
9872 cat >>conftest.$ac_ext <<_ACEOF
9873 /* end confdefs.h. */
9874 #include <X11/Xlib.h>
9875 _ACEOF
9876 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9877 $EGREP "XIMText" >/dev/null 2>&1; then
9878 { $as_echo "$as_me:$LINENO: result: yes" >&5
9879 $as_echo "yes" >&6; }
9880 else
9881 { $as_echo "$as_me:$LINENO: result: no; xim has been disabled" >&5
9882 $as_echo "no; xim has been disabled" >&6; }; enable_xim = "no"
9884 rm -f conftest*
9887 CPPFLAGS=$cppflags_save
9889 if test "$enable_xim" = "auto" -a "$enable_hangulinput" != "yes" \
9890 -a "x$GUITYPE" != "xNONE" ; then
9891 { $as_echo "$as_me:$LINENO: result: X GUI selected; xim has been enabled" >&5
9892 $as_echo "X GUI selected; xim has been enabled" >&6; }
9893 enable_xim="yes"
9897 if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
9898 cppflags_save=$CPPFLAGS
9899 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9900 { $as_echo "$as_me:$LINENO: checking for X11/Xmu/Editres.h" >&5
9901 $as_echo_n "checking for X11/Xmu/Editres.h... " >&6; }
9902 cat >conftest.$ac_ext <<_ACEOF
9903 /* confdefs.h. */
9904 _ACEOF
9905 cat confdefs.h >>conftest.$ac_ext
9906 cat >>conftest.$ac_ext <<_ACEOF
9907 /* end confdefs.h. */
9909 #include <X11/Intrinsic.h>
9910 #include <X11/Xmu/Editres.h>
9912 main ()
9914 int i; i = 0;
9916 return 0;
9918 _ACEOF
9919 rm -f conftest.$ac_objext
9920 if { (ac_try="$ac_compile"
9921 case "(($ac_try" in
9922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9923 *) ac_try_echo=$ac_try;;
9924 esac
9925 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9926 $as_echo "$ac_try_echo") >&5
9927 (eval "$ac_compile") 2>conftest.er1
9928 ac_status=$?
9929 grep -v '^ *+' conftest.er1 >conftest.err
9930 rm -f conftest.er1
9931 cat conftest.err >&5
9932 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9933 (exit $ac_status); } && {
9934 test -z "$ac_c_werror_flag" ||
9935 test ! -s conftest.err
9936 } && test -s conftest.$ac_objext; then
9937 { $as_echo "$as_me:$LINENO: result: yes" >&5
9938 $as_echo "yes" >&6; }
9939 cat >>confdefs.h <<\_ACEOF
9940 #define HAVE_X11_XMU_EDITRES_H 1
9941 _ACEOF
9943 else
9944 $as_echo "$as_me: failed program was:" >&5
9945 sed 's/^/| /' conftest.$ac_ext >&5
9947 { $as_echo "$as_me:$LINENO: result: no" >&5
9948 $as_echo "no" >&6; }
9951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9952 CPPFLAGS=$cppflags_save
9955 if test -z "$SKIP_MOTIF"; then
9956 cppflags_save=$CPPFLAGS
9957 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9965 for ac_header in Xm/Xm.h Xm/XpmP.h Xm/JoinSideT.h Xm/TraitP.h Xm/Manager.h \
9966 Xm/UnhighlightT.h Xm/Notebook.h
9968 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9969 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9970 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9971 $as_echo_n "checking for $ac_header... " >&6; }
9972 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9973 $as_echo_n "(cached) " >&6
9975 ac_res=`eval 'as_val=${'$as_ac_Header'}
9976 $as_echo "$as_val"'`
9977 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9978 $as_echo "$ac_res" >&6; }
9979 else
9980 # Is the header compilable?
9981 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9982 $as_echo_n "checking $ac_header usability... " >&6; }
9983 cat >conftest.$ac_ext <<_ACEOF
9984 /* confdefs.h. */
9985 _ACEOF
9986 cat confdefs.h >>conftest.$ac_ext
9987 cat >>conftest.$ac_ext <<_ACEOF
9988 /* end confdefs.h. */
9989 $ac_includes_default
9990 #include <$ac_header>
9991 _ACEOF
9992 rm -f conftest.$ac_objext
9993 if { (ac_try="$ac_compile"
9994 case "(($ac_try" in
9995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9996 *) ac_try_echo=$ac_try;;
9997 esac
9998 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9999 $as_echo "$ac_try_echo") >&5
10000 (eval "$ac_compile") 2>conftest.er1
10001 ac_status=$?
10002 grep -v '^ *+' conftest.er1 >conftest.err
10003 rm -f conftest.er1
10004 cat conftest.err >&5
10005 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10006 (exit $ac_status); } && {
10007 test -z "$ac_c_werror_flag" ||
10008 test ! -s conftest.err
10009 } && test -s conftest.$ac_objext; then
10010 ac_header_compiler=yes
10011 else
10012 $as_echo "$as_me: failed program was:" >&5
10013 sed 's/^/| /' conftest.$ac_ext >&5
10015 ac_header_compiler=no
10018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10019 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10020 $as_echo "$ac_header_compiler" >&6; }
10022 # Is the header present?
10023 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10024 $as_echo_n "checking $ac_header presence... " >&6; }
10025 cat >conftest.$ac_ext <<_ACEOF
10026 /* confdefs.h. */
10027 _ACEOF
10028 cat confdefs.h >>conftest.$ac_ext
10029 cat >>conftest.$ac_ext <<_ACEOF
10030 /* end confdefs.h. */
10031 #include <$ac_header>
10032 _ACEOF
10033 if { (ac_try="$ac_cpp conftest.$ac_ext"
10034 case "(($ac_try" in
10035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10036 *) ac_try_echo=$ac_try;;
10037 esac
10038 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10039 $as_echo "$ac_try_echo") >&5
10040 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10041 ac_status=$?
10042 grep -v '^ *+' conftest.er1 >conftest.err
10043 rm -f conftest.er1
10044 cat conftest.err >&5
10045 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10046 (exit $ac_status); } >/dev/null && {
10047 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10048 test ! -s conftest.err
10049 }; then
10050 ac_header_preproc=yes
10051 else
10052 $as_echo "$as_me: failed program was:" >&5
10053 sed 's/^/| /' conftest.$ac_ext >&5
10055 ac_header_preproc=no
10058 rm -f conftest.err conftest.$ac_ext
10059 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10060 $as_echo "$ac_header_preproc" >&6; }
10062 # So? What about this header?
10063 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10064 yes:no: )
10065 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10066 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10067 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10068 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10069 ac_header_preproc=yes
10071 no:yes:* )
10072 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10073 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10074 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10075 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10076 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10077 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10078 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10079 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10080 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10081 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10082 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10083 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10086 esac
10087 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10088 $as_echo_n "checking for $ac_header... " >&6; }
10089 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10090 $as_echo_n "(cached) " >&6
10091 else
10092 eval "$as_ac_Header=\$ac_header_preproc"
10094 ac_res=`eval 'as_val=${'$as_ac_Header'}
10095 $as_echo "$as_val"'`
10096 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10097 $as_echo "$ac_res" >&6; }
10100 if test `eval 'as_val=${'$as_ac_Header'}
10101 $as_echo "$as_val"'` = yes; then
10102 cat >>confdefs.h <<_ACEOF
10103 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10104 _ACEOF
10108 done
10111 if test $ac_cv_header_Xm_XpmP_h = yes; then
10112 { $as_echo "$as_me:$LINENO: checking for XpmAttributes_21 in Xm/XpmP.h" >&5
10113 $as_echo_n "checking for XpmAttributes_21 in Xm/XpmP.h... " >&6; }
10114 cat >conftest.$ac_ext <<_ACEOF
10115 /* confdefs.h. */
10116 _ACEOF
10117 cat confdefs.h >>conftest.$ac_ext
10118 cat >>conftest.$ac_ext <<_ACEOF
10119 /* end confdefs.h. */
10120 #include <Xm/XpmP.h>
10122 main ()
10124 XpmAttributes_21 attr;
10126 return 0;
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 { $as_echo "$as_me:$LINENO: result: yes" >&5
10148 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
10149 #define XPMATTRIBUTES_TYPE XpmAttributes_21
10150 _ACEOF
10152 else
10153 $as_echo "$as_me: failed program was:" >&5
10154 sed 's/^/| /' conftest.$ac_ext >&5
10156 { $as_echo "$as_me:$LINENO: result: no" >&5
10157 $as_echo "no" >&6; }; cat >>confdefs.h <<\_ACEOF
10158 #define XPMATTRIBUTES_TYPE XpmAttributes
10159 _ACEOF
10164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10165 else
10166 cat >>confdefs.h <<\_ACEOF
10167 #define XPMATTRIBUTES_TYPE XpmAttributes
10168 _ACEOF
10171 CPPFLAGS=$cppflags_save
10174 if test "x$GUITYPE" = "xNONE" -a "$enable_xim" = "yes"; then
10175 { $as_echo "$as_me:$LINENO: result: no GUI selected; xim has been disabled" >&5
10176 $as_echo "no GUI selected; xim has been disabled" >&6; }
10177 enable_xim="no"
10179 if test "x$GUITYPE" = "xNONE" -a "$enable_fontset" = "yes"; then
10180 { $as_echo "$as_me:$LINENO: result: no GUI selected; fontset has been disabled" >&5
10181 $as_echo "no GUI selected; fontset has been disabled" >&6; }
10182 enable_fontset="no"
10184 if test "x$GUITYPE:$enable_fontset" = "xGTK:yes" -a "0$gtk_major_version" -ge 2; then
10185 { $as_echo "$as_me:$LINENO: result: GTK+ 2 GUI selected; fontset has been disabled" >&5
10186 $as_echo "GTK+ 2 GUI selected; fontset has been disabled" >&6; }
10187 enable_fontset="no"
10190 if test -z "$SKIP_PHOTON"; then
10191 GUITYPE=PHOTONGUI
10199 if test "$enable_workshop" = "yes" -a -n "$SKIP_MOTIF"; then
10200 { { $as_echo "$as_me:$LINENO: error: cannot use workshop without Motif" >&5
10201 $as_echo "$as_me: error: cannot use workshop without Motif" >&2;}
10202 { (exit 1); exit 1; }; }
10205 if test "$enable_xim" = "yes"; then
10206 cat >>confdefs.h <<\_ACEOF
10207 #define FEAT_XIM 1
10208 _ACEOF
10211 if test "$enable_fontset" = "yes"; then
10212 cat >>confdefs.h <<\_ACEOF
10213 #define FEAT_XFONTSET 1
10214 _ACEOF
10221 if test "$enable_hangulinput" = "yes"; then
10222 if test "x$GUITYPE" = "xNONE"; then
10223 { $as_echo "$as_me:$LINENO: result: no GUI selected; hangul input has been disabled" >&5
10224 $as_echo "no GUI selected; hangul input has been disabled" >&6; }
10225 enable_hangulinput=no
10226 else
10227 cat >>confdefs.h <<\_ACEOF
10228 #define FEAT_HANGULIN 1
10229 _ACEOF
10231 HANGULIN_SRC=hangulin.c
10233 HANGULIN_OBJ=objects/hangulin.o
10239 { $as_echo "$as_me:$LINENO: checking whether toupper is broken" >&5
10240 $as_echo_n "checking whether toupper is broken... " >&6; }
10241 if test "${vim_cv_toupper_broken+set}" = set; then
10242 $as_echo_n "(cached) " >&6
10243 else
10245 if test "$cross_compiling" = yes; then
10247 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_toupper_broken'" >&5
10248 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_toupper_broken'" >&2;}
10249 { (exit 1); exit 1; }; }
10251 else
10252 cat >conftest.$ac_ext <<_ACEOF
10254 #include "confdefs.h"
10255 #include <ctype.h>
10256 #if STDC_HEADERS
10257 # include <stdlib.h>
10258 # include <stddef.h>
10259 #endif
10260 main() { exit(toupper('A') == 'A' && tolower('z') == 'z'); }
10262 _ACEOF
10263 rm -f conftest$ac_exeext
10264 if { (ac_try="$ac_link"
10265 case "(($ac_try" in
10266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10267 *) ac_try_echo=$ac_try;;
10268 esac
10269 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10270 $as_echo "$ac_try_echo") >&5
10271 (eval "$ac_link") 2>&5
10272 ac_status=$?
10273 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10274 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10275 { (case "(($ac_try" in
10276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10277 *) ac_try_echo=$ac_try;;
10278 esac
10279 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10280 $as_echo "$ac_try_echo") >&5
10281 (eval "$ac_try") 2>&5
10282 ac_status=$?
10283 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10284 (exit $ac_status); }; }; then
10286 vim_cv_toupper_broken=yes
10288 else
10289 $as_echo "$as_me: program exited with status $ac_status" >&5
10290 $as_echo "$as_me: failed program was:" >&5
10291 sed 's/^/| /' conftest.$ac_ext >&5
10293 ( exit $ac_status )
10295 vim_cv_toupper_broken=no
10298 rm -rf conftest.dSYM
10299 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10304 { $as_echo "$as_me:$LINENO: result: $vim_cv_toupper_broken" >&5
10305 $as_echo "$vim_cv_toupper_broken" >&6; }
10307 if test "x$vim_cv_toupper_broken" = "xyes" ; then
10308 cat >>confdefs.h <<\_ACEOF
10309 #define BROKEN_TOUPPER 1
10310 _ACEOF
10314 { $as_echo "$as_me:$LINENO: checking whether __DATE__ and __TIME__ work" >&5
10315 $as_echo_n "checking whether __DATE__ and __TIME__ work... " >&6; }
10316 cat >conftest.$ac_ext <<_ACEOF
10317 /* confdefs.h. */
10318 _ACEOF
10319 cat confdefs.h >>conftest.$ac_ext
10320 cat >>conftest.$ac_ext <<_ACEOF
10321 /* end confdefs.h. */
10322 #include <stdio.h>
10324 main ()
10326 printf("(" __DATE__ " " __TIME__ ")");
10328 return 0;
10330 _ACEOF
10331 rm -f conftest.$ac_objext
10332 if { (ac_try="$ac_compile"
10333 case "(($ac_try" in
10334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10335 *) ac_try_echo=$ac_try;;
10336 esac
10337 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10338 $as_echo "$ac_try_echo") >&5
10339 (eval "$ac_compile") 2>conftest.er1
10340 ac_status=$?
10341 grep -v '^ *+' conftest.er1 >conftest.err
10342 rm -f conftest.er1
10343 cat conftest.err >&5
10344 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10345 (exit $ac_status); } && {
10346 test -z "$ac_c_werror_flag" ||
10347 test ! -s conftest.err
10348 } && test -s conftest.$ac_objext; then
10349 { $as_echo "$as_me:$LINENO: result: yes" >&5
10350 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
10351 #define HAVE_DATE_TIME 1
10352 _ACEOF
10354 else
10355 $as_echo "$as_me: failed program was:" >&5
10356 sed 's/^/| /' conftest.$ac_ext >&5
10358 { $as_echo "$as_me:$LINENO: result: no" >&5
10359 $as_echo "no" >&6; }
10362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10364 if test "${ac_cv_header_elf_h+set}" = set; then
10365 { $as_echo "$as_me:$LINENO: checking for elf.h" >&5
10366 $as_echo_n "checking for elf.h... " >&6; }
10367 if test "${ac_cv_header_elf_h+set}" = set; then
10368 $as_echo_n "(cached) " >&6
10370 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5
10371 $as_echo "$ac_cv_header_elf_h" >&6; }
10372 else
10373 # Is the header compilable?
10374 { $as_echo "$as_me:$LINENO: checking elf.h usability" >&5
10375 $as_echo_n "checking elf.h usability... " >&6; }
10376 cat >conftest.$ac_ext <<_ACEOF
10377 /* confdefs.h. */
10378 _ACEOF
10379 cat confdefs.h >>conftest.$ac_ext
10380 cat >>conftest.$ac_ext <<_ACEOF
10381 /* end confdefs.h. */
10382 $ac_includes_default
10383 #include <elf.h>
10384 _ACEOF
10385 rm -f conftest.$ac_objext
10386 if { (ac_try="$ac_compile"
10387 case "(($ac_try" in
10388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10389 *) ac_try_echo=$ac_try;;
10390 esac
10391 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10392 $as_echo "$ac_try_echo") >&5
10393 (eval "$ac_compile") 2>conftest.er1
10394 ac_status=$?
10395 grep -v '^ *+' conftest.er1 >conftest.err
10396 rm -f conftest.er1
10397 cat conftest.err >&5
10398 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10399 (exit $ac_status); } && {
10400 test -z "$ac_c_werror_flag" ||
10401 test ! -s conftest.err
10402 } && test -s conftest.$ac_objext; then
10403 ac_header_compiler=yes
10404 else
10405 $as_echo "$as_me: failed program was:" >&5
10406 sed 's/^/| /' conftest.$ac_ext >&5
10408 ac_header_compiler=no
10411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10412 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10413 $as_echo "$ac_header_compiler" >&6; }
10415 # Is the header present?
10416 { $as_echo "$as_me:$LINENO: checking elf.h presence" >&5
10417 $as_echo_n "checking elf.h presence... " >&6; }
10418 cat >conftest.$ac_ext <<_ACEOF
10419 /* confdefs.h. */
10420 _ACEOF
10421 cat confdefs.h >>conftest.$ac_ext
10422 cat >>conftest.$ac_ext <<_ACEOF
10423 /* end confdefs.h. */
10424 #include <elf.h>
10425 _ACEOF
10426 if { (ac_try="$ac_cpp conftest.$ac_ext"
10427 case "(($ac_try" in
10428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10429 *) ac_try_echo=$ac_try;;
10430 esac
10431 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10432 $as_echo "$ac_try_echo") >&5
10433 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10434 ac_status=$?
10435 grep -v '^ *+' conftest.er1 >conftest.err
10436 rm -f conftest.er1
10437 cat conftest.err >&5
10438 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10439 (exit $ac_status); } >/dev/null && {
10440 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10441 test ! -s conftest.err
10442 }; then
10443 ac_header_preproc=yes
10444 else
10445 $as_echo "$as_me: failed program was:" >&5
10446 sed 's/^/| /' conftest.$ac_ext >&5
10448 ac_header_preproc=no
10451 rm -f conftest.err conftest.$ac_ext
10452 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10453 $as_echo "$ac_header_preproc" >&6; }
10455 # So? What about this header?
10456 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10457 yes:no: )
10458 { $as_echo "$as_me:$LINENO: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&5
10459 $as_echo "$as_me: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10460 { $as_echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the compiler's result" >&5
10461 $as_echo "$as_me: WARNING: elf.h: proceeding with the compiler's result" >&2;}
10462 ac_header_preproc=yes
10464 no:yes:* )
10465 { $as_echo "$as_me:$LINENO: WARNING: elf.h: present but cannot be compiled" >&5
10466 $as_echo "$as_me: WARNING: elf.h: present but cannot be compiled" >&2;}
10467 { $as_echo "$as_me:$LINENO: WARNING: elf.h: check for missing prerequisite headers?" >&5
10468 $as_echo "$as_me: WARNING: elf.h: check for missing prerequisite headers?" >&2;}
10469 { $as_echo "$as_me:$LINENO: WARNING: elf.h: see the Autoconf documentation" >&5
10470 $as_echo "$as_me: WARNING: elf.h: see the Autoconf documentation" >&2;}
10471 { $as_echo "$as_me:$LINENO: WARNING: elf.h: section \"Present But Cannot Be Compiled\"" >&5
10472 $as_echo "$as_me: WARNING: elf.h: section \"Present But Cannot Be Compiled\"" >&2;}
10473 { $as_echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the preprocessor's result" >&5
10474 $as_echo "$as_me: WARNING: elf.h: proceeding with the preprocessor's result" >&2;}
10475 { $as_echo "$as_me:$LINENO: WARNING: elf.h: in the future, the compiler will take precedence" >&5
10476 $as_echo "$as_me: WARNING: elf.h: in the future, the compiler will take precedence" >&2;}
10479 esac
10480 { $as_echo "$as_me:$LINENO: checking for elf.h" >&5
10481 $as_echo_n "checking for elf.h... " >&6; }
10482 if test "${ac_cv_header_elf_h+set}" = set; then
10483 $as_echo_n "(cached) " >&6
10484 else
10485 ac_cv_header_elf_h=$ac_header_preproc
10487 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5
10488 $as_echo "$ac_cv_header_elf_h" >&6; }
10491 if test $ac_cv_header_elf_h = yes; then
10492 HAS_ELF=1
10496 if test "$HAS_ELF" = 1; then
10498 { $as_echo "$as_me:$LINENO: checking for main in -lelf" >&5
10499 $as_echo_n "checking for main in -lelf... " >&6; }
10500 if test "${ac_cv_lib_elf_main+set}" = set; then
10501 $as_echo_n "(cached) " >&6
10502 else
10503 ac_check_lib_save_LIBS=$LIBS
10504 LIBS="-lelf $LIBS"
10505 cat >conftest.$ac_ext <<_ACEOF
10506 /* confdefs.h. */
10507 _ACEOF
10508 cat confdefs.h >>conftest.$ac_ext
10509 cat >>conftest.$ac_ext <<_ACEOF
10510 /* end confdefs.h. */
10514 main ()
10516 return main ();
10518 return 0;
10520 _ACEOF
10521 rm -f conftest.$ac_objext conftest$ac_exeext
10522 if { (ac_try="$ac_link"
10523 case "(($ac_try" in
10524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10525 *) ac_try_echo=$ac_try;;
10526 esac
10527 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10528 $as_echo "$ac_try_echo") >&5
10529 (eval "$ac_link") 2>conftest.er1
10530 ac_status=$?
10531 grep -v '^ *+' conftest.er1 >conftest.err
10532 rm -f conftest.er1
10533 cat conftest.err >&5
10534 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10535 (exit $ac_status); } && {
10536 test -z "$ac_c_werror_flag" ||
10537 test ! -s conftest.err
10538 } && test -s conftest$ac_exeext && {
10539 test "$cross_compiling" = yes ||
10540 $as_test_x conftest$ac_exeext
10541 }; then
10542 ac_cv_lib_elf_main=yes
10543 else
10544 $as_echo "$as_me: failed program was:" >&5
10545 sed 's/^/| /' conftest.$ac_ext >&5
10547 ac_cv_lib_elf_main=no
10550 rm -rf conftest.dSYM
10551 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10552 conftest$ac_exeext conftest.$ac_ext
10553 LIBS=$ac_check_lib_save_LIBS
10555 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_elf_main" >&5
10556 $as_echo "$ac_cv_lib_elf_main" >&6; }
10557 if test $ac_cv_lib_elf_main = yes; then
10558 cat >>confdefs.h <<_ACEOF
10559 #define HAVE_LIBELF 1
10560 _ACEOF
10562 LIBS="-lelf $LIBS"
10573 ac_header_dirent=no
10574 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10575 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10576 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10577 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
10578 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10579 $as_echo_n "(cached) " >&6
10580 else
10581 cat >conftest.$ac_ext <<_ACEOF
10582 /* confdefs.h. */
10583 _ACEOF
10584 cat confdefs.h >>conftest.$ac_ext
10585 cat >>conftest.$ac_ext <<_ACEOF
10586 /* end confdefs.h. */
10587 #include <sys/types.h>
10588 #include <$ac_hdr>
10591 main ()
10593 if ((DIR *) 0)
10594 return 0;
10596 return 0;
10598 _ACEOF
10599 rm -f conftest.$ac_objext
10600 if { (ac_try="$ac_compile"
10601 case "(($ac_try" in
10602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10603 *) ac_try_echo=$ac_try;;
10604 esac
10605 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10606 $as_echo "$ac_try_echo") >&5
10607 (eval "$ac_compile") 2>conftest.er1
10608 ac_status=$?
10609 grep -v '^ *+' conftest.er1 >conftest.err
10610 rm -f conftest.er1
10611 cat conftest.err >&5
10612 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10613 (exit $ac_status); } && {
10614 test -z "$ac_c_werror_flag" ||
10615 test ! -s conftest.err
10616 } && test -s conftest.$ac_objext; then
10617 eval "$as_ac_Header=yes"
10618 else
10619 $as_echo "$as_me: failed program was:" >&5
10620 sed 's/^/| /' conftest.$ac_ext >&5
10622 eval "$as_ac_Header=no"
10625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10627 ac_res=`eval 'as_val=${'$as_ac_Header'}
10628 $as_echo "$as_val"'`
10629 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10630 $as_echo "$ac_res" >&6; }
10631 if test `eval 'as_val=${'$as_ac_Header'}
10632 $as_echo "$as_val"'` = yes; then
10633 cat >>confdefs.h <<_ACEOF
10634 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10635 _ACEOF
10637 ac_header_dirent=$ac_hdr; break
10640 done
10641 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10642 if test $ac_header_dirent = dirent.h; then
10643 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
10644 $as_echo_n "checking for library containing opendir... " >&6; }
10645 if test "${ac_cv_search_opendir+set}" = set; then
10646 $as_echo_n "(cached) " >&6
10647 else
10648 ac_func_search_save_LIBS=$LIBS
10649 cat >conftest.$ac_ext <<_ACEOF
10650 /* confdefs.h. */
10651 _ACEOF
10652 cat confdefs.h >>conftest.$ac_ext
10653 cat >>conftest.$ac_ext <<_ACEOF
10654 /* end confdefs.h. */
10656 /* Override any GCC internal prototype to avoid an error.
10657 Use char because int might match the return type of a GCC
10658 builtin and then its argument prototype would still apply. */
10659 #ifdef __cplusplus
10660 extern "C"
10661 #endif
10662 char opendir ();
10664 main ()
10666 return opendir ();
10668 return 0;
10670 _ACEOF
10671 for ac_lib in '' dir; do
10672 if test -z "$ac_lib"; then
10673 ac_res="none required"
10674 else
10675 ac_res=-l$ac_lib
10676 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10678 rm -f conftest.$ac_objext conftest$ac_exeext
10679 if { (ac_try="$ac_link"
10680 case "(($ac_try" in
10681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10682 *) ac_try_echo=$ac_try;;
10683 esac
10684 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10685 $as_echo "$ac_try_echo") >&5
10686 (eval "$ac_link") 2>conftest.er1
10687 ac_status=$?
10688 grep -v '^ *+' conftest.er1 >conftest.err
10689 rm -f conftest.er1
10690 cat conftest.err >&5
10691 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10692 (exit $ac_status); } && {
10693 test -z "$ac_c_werror_flag" ||
10694 test ! -s conftest.err
10695 } && test -s conftest$ac_exeext && {
10696 test "$cross_compiling" = yes ||
10697 $as_test_x conftest$ac_exeext
10698 }; then
10699 ac_cv_search_opendir=$ac_res
10700 else
10701 $as_echo "$as_me: failed program was:" >&5
10702 sed 's/^/| /' conftest.$ac_ext >&5
10707 rm -rf conftest.dSYM
10708 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10709 conftest$ac_exeext
10710 if test "${ac_cv_search_opendir+set}" = set; then
10711 break
10713 done
10714 if test "${ac_cv_search_opendir+set}" = set; then
10716 else
10717 ac_cv_search_opendir=no
10719 rm conftest.$ac_ext
10720 LIBS=$ac_func_search_save_LIBS
10722 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10723 $as_echo "$ac_cv_search_opendir" >&6; }
10724 ac_res=$ac_cv_search_opendir
10725 if test "$ac_res" != no; then
10726 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10730 else
10731 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
10732 $as_echo_n "checking for library containing opendir... " >&6; }
10733 if test "${ac_cv_search_opendir+set}" = set; then
10734 $as_echo_n "(cached) " >&6
10735 else
10736 ac_func_search_save_LIBS=$LIBS
10737 cat >conftest.$ac_ext <<_ACEOF
10738 /* confdefs.h. */
10739 _ACEOF
10740 cat confdefs.h >>conftest.$ac_ext
10741 cat >>conftest.$ac_ext <<_ACEOF
10742 /* end confdefs.h. */
10744 /* Override any GCC internal prototype to avoid an error.
10745 Use char because int might match the return type of a GCC
10746 builtin and then its argument prototype would still apply. */
10747 #ifdef __cplusplus
10748 extern "C"
10749 #endif
10750 char opendir ();
10752 main ()
10754 return opendir ();
10756 return 0;
10758 _ACEOF
10759 for ac_lib in '' x; do
10760 if test -z "$ac_lib"; then
10761 ac_res="none required"
10762 else
10763 ac_res=-l$ac_lib
10764 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10766 rm -f conftest.$ac_objext conftest$ac_exeext
10767 if { (ac_try="$ac_link"
10768 case "(($ac_try" in
10769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10770 *) ac_try_echo=$ac_try;;
10771 esac
10772 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10773 $as_echo "$ac_try_echo") >&5
10774 (eval "$ac_link") 2>conftest.er1
10775 ac_status=$?
10776 grep -v '^ *+' conftest.er1 >conftest.err
10777 rm -f conftest.er1
10778 cat conftest.err >&5
10779 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10780 (exit $ac_status); } && {
10781 test -z "$ac_c_werror_flag" ||
10782 test ! -s conftest.err
10783 } && test -s conftest$ac_exeext && {
10784 test "$cross_compiling" = yes ||
10785 $as_test_x conftest$ac_exeext
10786 }; then
10787 ac_cv_search_opendir=$ac_res
10788 else
10789 $as_echo "$as_me: failed program was:" >&5
10790 sed 's/^/| /' conftest.$ac_ext >&5
10795 rm -rf conftest.dSYM
10796 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10797 conftest$ac_exeext
10798 if test "${ac_cv_search_opendir+set}" = set; then
10799 break
10801 done
10802 if test "${ac_cv_search_opendir+set}" = set; then
10804 else
10805 ac_cv_search_opendir=no
10807 rm conftest.$ac_ext
10808 LIBS=$ac_func_search_save_LIBS
10810 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10811 $as_echo "$ac_cv_search_opendir" >&6; }
10812 ac_res=$ac_cv_search_opendir
10813 if test "$ac_res" != no; then
10814 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10821 if test $ac_cv_header_sys_wait_h = no; then
10822 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that defines union wait" >&5
10823 $as_echo_n "checking for sys/wait.h that defines union wait... " >&6; }
10824 cat >conftest.$ac_ext <<_ACEOF
10825 /* confdefs.h. */
10826 _ACEOF
10827 cat confdefs.h >>conftest.$ac_ext
10828 cat >>conftest.$ac_ext <<_ACEOF
10829 /* end confdefs.h. */
10830 #include <sys/wait.h>
10832 main ()
10834 union wait xx, yy; xx = yy
10836 return 0;
10838 _ACEOF
10839 rm -f conftest.$ac_objext
10840 if { (ac_try="$ac_compile"
10841 case "(($ac_try" in
10842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10843 *) ac_try_echo=$ac_try;;
10844 esac
10845 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10846 $as_echo "$ac_try_echo") >&5
10847 (eval "$ac_compile") 2>conftest.er1
10848 ac_status=$?
10849 grep -v '^ *+' conftest.er1 >conftest.err
10850 rm -f conftest.er1
10851 cat conftest.err >&5
10852 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10853 (exit $ac_status); } && {
10854 test -z "$ac_c_werror_flag" ||
10855 test ! -s conftest.err
10856 } && test -s conftest.$ac_objext; then
10857 { $as_echo "$as_me:$LINENO: result: yes" >&5
10858 $as_echo "yes" >&6; }
10859 cat >>confdefs.h <<\_ACEOF
10860 #define HAVE_SYS_WAIT_H 1
10861 _ACEOF
10863 cat >>confdefs.h <<\_ACEOF
10864 #define HAVE_UNION_WAIT 1
10865 _ACEOF
10867 else
10868 $as_echo "$as_me: failed program was:" >&5
10869 sed 's/^/| /' conftest.$ac_ext >&5
10871 { $as_echo "$as_me:$LINENO: result: no" >&5
10872 $as_echo "no" >&6; }
10875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10919 for ac_header in stdarg.h stdlib.h string.h sys/select.h sys/utsname.h \
10920 termcap.h fcntl.h sgtty.h sys/ioctl.h sys/time.h sys/types.h termio.h \
10921 iconv.h langinfo.h math.h unistd.h stropts.h errno.h \
10922 sys/resource.h sys/systeminfo.h locale.h \
10923 sys/stream.h termios.h libc.h sys/statfs.h \
10924 poll.h sys/poll.h pwd.h utime.h sys/param.h libintl.h \
10925 libgen.h util/debug.h util/msg18n.h frame.h \
10926 sys/acl.h sys/access.h sys/sysctl.h sys/sysinfo.h wchar.h wctype.h
10928 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10929 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10930 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10931 $as_echo_n "checking for $ac_header... " >&6; }
10932 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10933 $as_echo_n "(cached) " >&6
10935 ac_res=`eval 'as_val=${'$as_ac_Header'}
10936 $as_echo "$as_val"'`
10937 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10938 $as_echo "$ac_res" >&6; }
10939 else
10940 # Is the header compilable?
10941 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10942 $as_echo_n "checking $ac_header usability... " >&6; }
10943 cat >conftest.$ac_ext <<_ACEOF
10944 /* confdefs.h. */
10945 _ACEOF
10946 cat confdefs.h >>conftest.$ac_ext
10947 cat >>conftest.$ac_ext <<_ACEOF
10948 /* end confdefs.h. */
10949 $ac_includes_default
10950 #include <$ac_header>
10951 _ACEOF
10952 rm -f conftest.$ac_objext
10953 if { (ac_try="$ac_compile"
10954 case "(($ac_try" in
10955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10956 *) ac_try_echo=$ac_try;;
10957 esac
10958 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10959 $as_echo "$ac_try_echo") >&5
10960 (eval "$ac_compile") 2>conftest.er1
10961 ac_status=$?
10962 grep -v '^ *+' conftest.er1 >conftest.err
10963 rm -f conftest.er1
10964 cat conftest.err >&5
10965 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10966 (exit $ac_status); } && {
10967 test -z "$ac_c_werror_flag" ||
10968 test ! -s conftest.err
10969 } && test -s conftest.$ac_objext; then
10970 ac_header_compiler=yes
10971 else
10972 $as_echo "$as_me: failed program was:" >&5
10973 sed 's/^/| /' conftest.$ac_ext >&5
10975 ac_header_compiler=no
10978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10979 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10980 $as_echo "$ac_header_compiler" >&6; }
10982 # Is the header present?
10983 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10984 $as_echo_n "checking $ac_header presence... " >&6; }
10985 cat >conftest.$ac_ext <<_ACEOF
10986 /* confdefs.h. */
10987 _ACEOF
10988 cat confdefs.h >>conftest.$ac_ext
10989 cat >>conftest.$ac_ext <<_ACEOF
10990 /* end confdefs.h. */
10991 #include <$ac_header>
10992 _ACEOF
10993 if { (ac_try="$ac_cpp conftest.$ac_ext"
10994 case "(($ac_try" in
10995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10996 *) ac_try_echo=$ac_try;;
10997 esac
10998 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10999 $as_echo "$ac_try_echo") >&5
11000 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11001 ac_status=$?
11002 grep -v '^ *+' conftest.er1 >conftest.err
11003 rm -f conftest.er1
11004 cat conftest.err >&5
11005 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11006 (exit $ac_status); } >/dev/null && {
11007 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11008 test ! -s conftest.err
11009 }; then
11010 ac_header_preproc=yes
11011 else
11012 $as_echo "$as_me: failed program was:" >&5
11013 sed 's/^/| /' conftest.$ac_ext >&5
11015 ac_header_preproc=no
11018 rm -f conftest.err conftest.$ac_ext
11019 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11020 $as_echo "$ac_header_preproc" >&6; }
11022 # So? What about this header?
11023 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11024 yes:no: )
11025 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11026 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11027 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11028 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11029 ac_header_preproc=yes
11031 no:yes:* )
11032 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11033 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11034 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11035 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11036 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11037 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11038 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11039 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11040 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11041 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11042 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11043 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11046 esac
11047 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11048 $as_echo_n "checking for $ac_header... " >&6; }
11049 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11050 $as_echo_n "(cached) " >&6
11051 else
11052 eval "$as_ac_Header=\$ac_header_preproc"
11054 ac_res=`eval 'as_val=${'$as_ac_Header'}
11055 $as_echo "$as_val"'`
11056 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11057 $as_echo "$ac_res" >&6; }
11060 if test `eval 'as_val=${'$as_ac_Header'}
11061 $as_echo "$as_val"'` = yes; then
11062 cat >>confdefs.h <<_ACEOF
11063 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11064 _ACEOF
11068 done
11072 for ac_header in sys/ptem.h
11074 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11075 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11076 $as_echo_n "checking for $ac_header... " >&6; }
11077 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11078 $as_echo_n "(cached) " >&6
11079 else
11080 cat >conftest.$ac_ext <<_ACEOF
11081 /* confdefs.h. */
11082 _ACEOF
11083 cat confdefs.h >>conftest.$ac_ext
11084 cat >>conftest.$ac_ext <<_ACEOF
11085 /* end confdefs.h. */
11086 #if defined HAVE_SYS_STREAM_H
11087 # include <sys/stream.h>
11088 #endif
11090 #include <$ac_header>
11091 _ACEOF
11092 rm -f conftest.$ac_objext
11093 if { (ac_try="$ac_compile"
11094 case "(($ac_try" in
11095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11096 *) ac_try_echo=$ac_try;;
11097 esac
11098 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11099 $as_echo "$ac_try_echo") >&5
11100 (eval "$ac_compile") 2>conftest.er1
11101 ac_status=$?
11102 grep -v '^ *+' conftest.er1 >conftest.err
11103 rm -f conftest.er1
11104 cat conftest.err >&5
11105 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11106 (exit $ac_status); } && {
11107 test -z "$ac_c_werror_flag" ||
11108 test ! -s conftest.err
11109 } && test -s conftest.$ac_objext; then
11110 eval "$as_ac_Header=yes"
11111 else
11112 $as_echo "$as_me: failed program was:" >&5
11113 sed 's/^/| /' conftest.$ac_ext >&5
11115 eval "$as_ac_Header=no"
11118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11120 ac_res=`eval 'as_val=${'$as_ac_Header'}
11121 $as_echo "$as_val"'`
11122 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11123 $as_echo "$ac_res" >&6; }
11124 if test `eval 'as_val=${'$as_ac_Header'}
11125 $as_echo "$as_val"'` = yes; then
11126 cat >>confdefs.h <<_ACEOF
11127 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11128 _ACEOF
11132 done
11136 { $as_echo "$as_me:$LINENO: checking for pthread_np.h" >&5
11137 $as_echo_n "checking for pthread_np.h... " >&6; }
11138 cat >conftest.$ac_ext <<_ACEOF
11139 /* confdefs.h. */
11140 _ACEOF
11141 cat confdefs.h >>conftest.$ac_ext
11142 cat >>conftest.$ac_ext <<_ACEOF
11143 /* end confdefs.h. */
11145 #include <pthread.h>
11146 #include <pthread_np.h>
11148 main ()
11150 int i; i = 0;
11152 return 0;
11154 _ACEOF
11155 rm -f conftest.$ac_objext
11156 if { (ac_try="$ac_compile"
11157 case "(($ac_try" in
11158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11159 *) ac_try_echo=$ac_try;;
11160 esac
11161 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11162 $as_echo "$ac_try_echo") >&5
11163 (eval "$ac_compile") 2>conftest.er1
11164 ac_status=$?
11165 grep -v '^ *+' conftest.er1 >conftest.err
11166 rm -f conftest.er1
11167 cat conftest.err >&5
11168 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11169 (exit $ac_status); } && {
11170 test -z "$ac_c_werror_flag" ||
11171 test ! -s conftest.err
11172 } && test -s conftest.$ac_objext; then
11173 { $as_echo "$as_me:$LINENO: result: yes" >&5
11174 $as_echo "yes" >&6; }
11175 cat >>confdefs.h <<\_ACEOF
11176 #define HAVE_PTHREAD_NP_H 1
11177 _ACEOF
11179 else
11180 $as_echo "$as_me: failed program was:" >&5
11181 sed 's/^/| /' conftest.$ac_ext >&5
11183 { $as_echo "$as_me:$LINENO: result: no" >&5
11184 $as_echo "no" >&6; }
11187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11190 for ac_header in strings.h
11192 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11193 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11194 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11195 $as_echo_n "checking for $ac_header... " >&6; }
11196 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11197 $as_echo_n "(cached) " >&6
11199 ac_res=`eval 'as_val=${'$as_ac_Header'}
11200 $as_echo "$as_val"'`
11201 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11202 $as_echo "$ac_res" >&6; }
11203 else
11204 # Is the header compilable?
11205 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11206 $as_echo_n "checking $ac_header usability... " >&6; }
11207 cat >conftest.$ac_ext <<_ACEOF
11208 /* confdefs.h. */
11209 _ACEOF
11210 cat confdefs.h >>conftest.$ac_ext
11211 cat >>conftest.$ac_ext <<_ACEOF
11212 /* end confdefs.h. */
11213 $ac_includes_default
11214 #include <$ac_header>
11215 _ACEOF
11216 rm -f conftest.$ac_objext
11217 if { (ac_try="$ac_compile"
11218 case "(($ac_try" in
11219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11220 *) ac_try_echo=$ac_try;;
11221 esac
11222 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11223 $as_echo "$ac_try_echo") >&5
11224 (eval "$ac_compile") 2>conftest.er1
11225 ac_status=$?
11226 grep -v '^ *+' conftest.er1 >conftest.err
11227 rm -f conftest.er1
11228 cat conftest.err >&5
11229 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11230 (exit $ac_status); } && {
11231 test -z "$ac_c_werror_flag" ||
11232 test ! -s conftest.err
11233 } && test -s conftest.$ac_objext; then
11234 ac_header_compiler=yes
11235 else
11236 $as_echo "$as_me: failed program was:" >&5
11237 sed 's/^/| /' conftest.$ac_ext >&5
11239 ac_header_compiler=no
11242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11243 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11244 $as_echo "$ac_header_compiler" >&6; }
11246 # Is the header present?
11247 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11248 $as_echo_n "checking $ac_header presence... " >&6; }
11249 cat >conftest.$ac_ext <<_ACEOF
11250 /* confdefs.h. */
11251 _ACEOF
11252 cat confdefs.h >>conftest.$ac_ext
11253 cat >>conftest.$ac_ext <<_ACEOF
11254 /* end confdefs.h. */
11255 #include <$ac_header>
11256 _ACEOF
11257 if { (ac_try="$ac_cpp conftest.$ac_ext"
11258 case "(($ac_try" in
11259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11260 *) ac_try_echo=$ac_try;;
11261 esac
11262 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11263 $as_echo "$ac_try_echo") >&5
11264 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11265 ac_status=$?
11266 grep -v '^ *+' conftest.er1 >conftest.err
11267 rm -f conftest.er1
11268 cat conftest.err >&5
11269 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11270 (exit $ac_status); } >/dev/null && {
11271 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11272 test ! -s conftest.err
11273 }; then
11274 ac_header_preproc=yes
11275 else
11276 $as_echo "$as_me: failed program was:" >&5
11277 sed 's/^/| /' conftest.$ac_ext >&5
11279 ac_header_preproc=no
11282 rm -f conftest.err conftest.$ac_ext
11283 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11284 $as_echo "$ac_header_preproc" >&6; }
11286 # So? What about this header?
11287 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11288 yes:no: )
11289 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11290 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11291 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11292 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11293 ac_header_preproc=yes
11295 no:yes:* )
11296 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11297 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11298 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11299 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11300 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11301 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11302 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11303 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11304 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11305 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11306 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11307 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11310 esac
11311 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11312 $as_echo_n "checking for $ac_header... " >&6; }
11313 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11314 $as_echo_n "(cached) " >&6
11315 else
11316 eval "$as_ac_Header=\$ac_header_preproc"
11318 ac_res=`eval 'as_val=${'$as_ac_Header'}
11319 $as_echo "$as_val"'`
11320 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11321 $as_echo "$ac_res" >&6; }
11324 if test `eval 'as_val=${'$as_ac_Header'}
11325 $as_echo "$as_val"'` = yes; then
11326 cat >>confdefs.h <<_ACEOF
11327 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11328 _ACEOF
11332 done
11334 if test "x$MACOSX" = "xyes"; then
11335 cat >>confdefs.h <<\_ACEOF
11336 #define NO_STRINGS_WITH_STRING_H 1
11337 _ACEOF
11339 else
11341 { $as_echo "$as_me:$LINENO: checking if strings.h can be included after string.h" >&5
11342 $as_echo_n "checking if strings.h can be included after string.h... " >&6; }
11343 cppflags_save=$CPPFLAGS
11344 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11345 cat >conftest.$ac_ext <<_ACEOF
11346 /* confdefs.h. */
11347 _ACEOF
11348 cat confdefs.h >>conftest.$ac_ext
11349 cat >>conftest.$ac_ext <<_ACEOF
11350 /* end confdefs.h. */
11352 #if defined(_AIX) && !defined(_AIX51) && !defined(_NO_PROTO)
11353 # define _NO_PROTO /* like in os_unix.h, causes conflict for AIX (Winn) */
11354 /* but don't do it on AIX 5.1 (Uribarri) */
11355 #endif
11356 #ifdef HAVE_XM_XM_H
11357 # include <Xm/Xm.h> /* This breaks it for HP-UX 11 (Squassabia) */
11358 #endif
11359 #ifdef HAVE_STRING_H
11360 # include <string.h>
11361 #endif
11362 #if defined(HAVE_STRINGS_H)
11363 # include <strings.h>
11364 #endif
11367 main ()
11369 int i; i = 0;
11371 return 0;
11373 _ACEOF
11374 rm -f conftest.$ac_objext
11375 if { (ac_try="$ac_compile"
11376 case "(($ac_try" in
11377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11378 *) ac_try_echo=$ac_try;;
11379 esac
11380 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11381 $as_echo "$ac_try_echo") >&5
11382 (eval "$ac_compile") 2>conftest.er1
11383 ac_status=$?
11384 grep -v '^ *+' conftest.er1 >conftest.err
11385 rm -f conftest.er1
11386 cat conftest.err >&5
11387 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11388 (exit $ac_status); } && {
11389 test -z "$ac_c_werror_flag" ||
11390 test ! -s conftest.err
11391 } && test -s conftest.$ac_objext; then
11392 { $as_echo "$as_me:$LINENO: result: yes" >&5
11393 $as_echo "yes" >&6; }
11394 else
11395 $as_echo "$as_me: failed program was:" >&5
11396 sed 's/^/| /' conftest.$ac_ext >&5
11398 cat >>confdefs.h <<\_ACEOF
11399 #define NO_STRINGS_WITH_STRING_H 1
11400 _ACEOF
11402 { $as_echo "$as_me:$LINENO: result: no" >&5
11403 $as_echo "no" >&6; }
11406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11407 CPPFLAGS=$cppflags_save
11410 if test $ac_cv_c_compiler_gnu = yes; then
11411 { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
11412 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
11413 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
11414 $as_echo_n "(cached) " >&6
11415 else
11416 ac_pattern="Autoconf.*'x'"
11417 cat >conftest.$ac_ext <<_ACEOF
11418 /* confdefs.h. */
11419 _ACEOF
11420 cat confdefs.h >>conftest.$ac_ext
11421 cat >>conftest.$ac_ext <<_ACEOF
11422 /* end confdefs.h. */
11423 #include <sgtty.h>
11424 Autoconf TIOCGETP
11425 _ACEOF
11426 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11427 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11428 ac_cv_prog_gcc_traditional=yes
11429 else
11430 ac_cv_prog_gcc_traditional=no
11432 rm -f conftest*
11435 if test $ac_cv_prog_gcc_traditional = no; then
11436 cat >conftest.$ac_ext <<_ACEOF
11437 /* confdefs.h. */
11438 _ACEOF
11439 cat confdefs.h >>conftest.$ac_ext
11440 cat >>conftest.$ac_ext <<_ACEOF
11441 /* end confdefs.h. */
11442 #include <termio.h>
11443 Autoconf TCGETA
11444 _ACEOF
11445 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11446 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11447 ac_cv_prog_gcc_traditional=yes
11449 rm -f conftest*
11453 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
11454 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
11455 if test $ac_cv_prog_gcc_traditional = yes; then
11456 CC="$CC -traditional"
11460 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11461 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11462 if test "${ac_cv_c_const+set}" = set; then
11463 $as_echo_n "(cached) " >&6
11464 else
11465 cat >conftest.$ac_ext <<_ACEOF
11466 /* confdefs.h. */
11467 _ACEOF
11468 cat confdefs.h >>conftest.$ac_ext
11469 cat >>conftest.$ac_ext <<_ACEOF
11470 /* end confdefs.h. */
11473 main ()
11475 /* FIXME: Include the comments suggested by Paul. */
11476 #ifndef __cplusplus
11477 /* Ultrix mips cc rejects this. */
11478 typedef int charset[2];
11479 const charset cs;
11480 /* SunOS 4.1.1 cc rejects this. */
11481 char const *const *pcpcc;
11482 char **ppc;
11483 /* NEC SVR4.0.2 mips cc rejects this. */
11484 struct point {int x, y;};
11485 static struct point const zero = {0,0};
11486 /* AIX XL C 1.02.0.0 rejects this.
11487 It does not let you subtract one const X* pointer from another in
11488 an arm of an if-expression whose if-part is not a constant
11489 expression */
11490 const char *g = "string";
11491 pcpcc = &g + (g ? g-g : 0);
11492 /* HPUX 7.0 cc rejects these. */
11493 ++pcpcc;
11494 ppc = (char**) pcpcc;
11495 pcpcc = (char const *const *) ppc;
11496 { /* SCO 3.2v4 cc rejects this. */
11497 char *t;
11498 char const *s = 0 ? (char *) 0 : (char const *) 0;
11500 *t++ = 0;
11501 if (s) return 0;
11503 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11504 int x[] = {25, 17};
11505 const int *foo = &x[0];
11506 ++foo;
11508 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11509 typedef const int *iptr;
11510 iptr p = 0;
11511 ++p;
11513 { /* AIX XL C 1.02.0.0 rejects this saying
11514 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11515 struct s { int j; const int *ap[3]; };
11516 struct s *b; b->j = 5;
11518 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11519 const int foo = 10;
11520 if (!foo) return 0;
11522 return !cs[0] && !zero.x;
11523 #endif
11526 return 0;
11528 _ACEOF
11529 rm -f conftest.$ac_objext
11530 if { (ac_try="$ac_compile"
11531 case "(($ac_try" in
11532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11533 *) ac_try_echo=$ac_try;;
11534 esac
11535 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11536 $as_echo "$ac_try_echo") >&5
11537 (eval "$ac_compile") 2>conftest.er1
11538 ac_status=$?
11539 grep -v '^ *+' conftest.er1 >conftest.err
11540 rm -f conftest.er1
11541 cat conftest.err >&5
11542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11543 (exit $ac_status); } && {
11544 test -z "$ac_c_werror_flag" ||
11545 test ! -s conftest.err
11546 } && test -s conftest.$ac_objext; then
11547 ac_cv_c_const=yes
11548 else
11549 $as_echo "$as_me: failed program was:" >&5
11550 sed 's/^/| /' conftest.$ac_ext >&5
11552 ac_cv_c_const=no
11555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11557 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11558 $as_echo "$ac_cv_c_const" >&6; }
11559 if test $ac_cv_c_const = no; then
11561 cat >>confdefs.h <<\_ACEOF
11562 #define const /**/
11563 _ACEOF
11567 { $as_echo "$as_me:$LINENO: checking for mode_t" >&5
11568 $as_echo_n "checking for mode_t... " >&6; }
11569 if test "${ac_cv_type_mode_t+set}" = set; then
11570 $as_echo_n "(cached) " >&6
11571 else
11572 ac_cv_type_mode_t=no
11573 cat >conftest.$ac_ext <<_ACEOF
11574 /* confdefs.h. */
11575 _ACEOF
11576 cat confdefs.h >>conftest.$ac_ext
11577 cat >>conftest.$ac_ext <<_ACEOF
11578 /* end confdefs.h. */
11579 $ac_includes_default
11581 main ()
11583 if (sizeof (mode_t))
11584 return 0;
11586 return 0;
11588 _ACEOF
11589 rm -f conftest.$ac_objext
11590 if { (ac_try="$ac_compile"
11591 case "(($ac_try" in
11592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11593 *) ac_try_echo=$ac_try;;
11594 esac
11595 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11596 $as_echo "$ac_try_echo") >&5
11597 (eval "$ac_compile") 2>conftest.er1
11598 ac_status=$?
11599 grep -v '^ *+' conftest.er1 >conftest.err
11600 rm -f conftest.er1
11601 cat conftest.err >&5
11602 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11603 (exit $ac_status); } && {
11604 test -z "$ac_c_werror_flag" ||
11605 test ! -s conftest.err
11606 } && test -s conftest.$ac_objext; then
11607 cat >conftest.$ac_ext <<_ACEOF
11608 /* confdefs.h. */
11609 _ACEOF
11610 cat confdefs.h >>conftest.$ac_ext
11611 cat >>conftest.$ac_ext <<_ACEOF
11612 /* end confdefs.h. */
11613 $ac_includes_default
11615 main ()
11617 if (sizeof ((mode_t)))
11618 return 0;
11620 return 0;
11622 _ACEOF
11623 rm -f conftest.$ac_objext
11624 if { (ac_try="$ac_compile"
11625 case "(($ac_try" in
11626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11627 *) ac_try_echo=$ac_try;;
11628 esac
11629 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11630 $as_echo "$ac_try_echo") >&5
11631 (eval "$ac_compile") 2>conftest.er1
11632 ac_status=$?
11633 grep -v '^ *+' conftest.er1 >conftest.err
11634 rm -f conftest.er1
11635 cat conftest.err >&5
11636 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11637 (exit $ac_status); } && {
11638 test -z "$ac_c_werror_flag" ||
11639 test ! -s conftest.err
11640 } && test -s conftest.$ac_objext; then
11642 else
11643 $as_echo "$as_me: failed program was:" >&5
11644 sed 's/^/| /' conftest.$ac_ext >&5
11646 ac_cv_type_mode_t=yes
11649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11650 else
11651 $as_echo "$as_me: failed program was:" >&5
11652 sed 's/^/| /' conftest.$ac_ext >&5
11657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11659 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
11660 $as_echo "$ac_cv_type_mode_t" >&6; }
11661 if test $ac_cv_type_mode_t = yes; then
11663 else
11665 cat >>confdefs.h <<_ACEOF
11666 #define mode_t int
11667 _ACEOF
11671 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
11672 $as_echo_n "checking for off_t... " >&6; }
11673 if test "${ac_cv_type_off_t+set}" = set; then
11674 $as_echo_n "(cached) " >&6
11675 else
11676 ac_cv_type_off_t=no
11677 cat >conftest.$ac_ext <<_ACEOF
11678 /* confdefs.h. */
11679 _ACEOF
11680 cat confdefs.h >>conftest.$ac_ext
11681 cat >>conftest.$ac_ext <<_ACEOF
11682 /* end confdefs.h. */
11683 $ac_includes_default
11685 main ()
11687 if (sizeof (off_t))
11688 return 0;
11690 return 0;
11692 _ACEOF
11693 rm -f conftest.$ac_objext
11694 if { (ac_try="$ac_compile"
11695 case "(($ac_try" in
11696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11697 *) ac_try_echo=$ac_try;;
11698 esac
11699 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11700 $as_echo "$ac_try_echo") >&5
11701 (eval "$ac_compile") 2>conftest.er1
11702 ac_status=$?
11703 grep -v '^ *+' conftest.er1 >conftest.err
11704 rm -f conftest.er1
11705 cat conftest.err >&5
11706 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11707 (exit $ac_status); } && {
11708 test -z "$ac_c_werror_flag" ||
11709 test ! -s conftest.err
11710 } && test -s conftest.$ac_objext; then
11711 cat >conftest.$ac_ext <<_ACEOF
11712 /* confdefs.h. */
11713 _ACEOF
11714 cat confdefs.h >>conftest.$ac_ext
11715 cat >>conftest.$ac_ext <<_ACEOF
11716 /* end confdefs.h. */
11717 $ac_includes_default
11719 main ()
11721 if (sizeof ((off_t)))
11722 return 0;
11724 return 0;
11726 _ACEOF
11727 rm -f conftest.$ac_objext
11728 if { (ac_try="$ac_compile"
11729 case "(($ac_try" in
11730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11731 *) ac_try_echo=$ac_try;;
11732 esac
11733 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11734 $as_echo "$ac_try_echo") >&5
11735 (eval "$ac_compile") 2>conftest.er1
11736 ac_status=$?
11737 grep -v '^ *+' conftest.er1 >conftest.err
11738 rm -f conftest.er1
11739 cat conftest.err >&5
11740 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11741 (exit $ac_status); } && {
11742 test -z "$ac_c_werror_flag" ||
11743 test ! -s conftest.err
11744 } && test -s conftest.$ac_objext; then
11746 else
11747 $as_echo "$as_me: failed program was:" >&5
11748 sed 's/^/| /' conftest.$ac_ext >&5
11750 ac_cv_type_off_t=yes
11753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11754 else
11755 $as_echo "$as_me: failed program was:" >&5
11756 sed 's/^/| /' conftest.$ac_ext >&5
11761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11763 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11764 $as_echo "$ac_cv_type_off_t" >&6; }
11765 if test $ac_cv_type_off_t = yes; then
11767 else
11769 cat >>confdefs.h <<_ACEOF
11770 #define off_t long int
11771 _ACEOF
11775 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
11776 $as_echo_n "checking for pid_t... " >&6; }
11777 if test "${ac_cv_type_pid_t+set}" = set; then
11778 $as_echo_n "(cached) " >&6
11779 else
11780 ac_cv_type_pid_t=no
11781 cat >conftest.$ac_ext <<_ACEOF
11782 /* confdefs.h. */
11783 _ACEOF
11784 cat confdefs.h >>conftest.$ac_ext
11785 cat >>conftest.$ac_ext <<_ACEOF
11786 /* end confdefs.h. */
11787 $ac_includes_default
11789 main ()
11791 if (sizeof (pid_t))
11792 return 0;
11794 return 0;
11796 _ACEOF
11797 rm -f conftest.$ac_objext
11798 if { (ac_try="$ac_compile"
11799 case "(($ac_try" in
11800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11801 *) ac_try_echo=$ac_try;;
11802 esac
11803 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11804 $as_echo "$ac_try_echo") >&5
11805 (eval "$ac_compile") 2>conftest.er1
11806 ac_status=$?
11807 grep -v '^ *+' conftest.er1 >conftest.err
11808 rm -f conftest.er1
11809 cat conftest.err >&5
11810 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11811 (exit $ac_status); } && {
11812 test -z "$ac_c_werror_flag" ||
11813 test ! -s conftest.err
11814 } && test -s conftest.$ac_objext; then
11815 cat >conftest.$ac_ext <<_ACEOF
11816 /* confdefs.h. */
11817 _ACEOF
11818 cat confdefs.h >>conftest.$ac_ext
11819 cat >>conftest.$ac_ext <<_ACEOF
11820 /* end confdefs.h. */
11821 $ac_includes_default
11823 main ()
11825 if (sizeof ((pid_t)))
11826 return 0;
11828 return 0;
11830 _ACEOF
11831 rm -f conftest.$ac_objext
11832 if { (ac_try="$ac_compile"
11833 case "(($ac_try" in
11834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11835 *) ac_try_echo=$ac_try;;
11836 esac
11837 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11838 $as_echo "$ac_try_echo") >&5
11839 (eval "$ac_compile") 2>conftest.er1
11840 ac_status=$?
11841 grep -v '^ *+' conftest.er1 >conftest.err
11842 rm -f conftest.er1
11843 cat conftest.err >&5
11844 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11845 (exit $ac_status); } && {
11846 test -z "$ac_c_werror_flag" ||
11847 test ! -s conftest.err
11848 } && test -s conftest.$ac_objext; then
11850 else
11851 $as_echo "$as_me: failed program was:" >&5
11852 sed 's/^/| /' conftest.$ac_ext >&5
11854 ac_cv_type_pid_t=yes
11857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11858 else
11859 $as_echo "$as_me: failed program was:" >&5
11860 sed 's/^/| /' conftest.$ac_ext >&5
11865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11867 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11868 $as_echo "$ac_cv_type_pid_t" >&6; }
11869 if test $ac_cv_type_pid_t = yes; then
11871 else
11873 cat >>confdefs.h <<_ACEOF
11874 #define pid_t int
11875 _ACEOF
11879 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
11880 $as_echo_n "checking for size_t... " >&6; }
11881 if test "${ac_cv_type_size_t+set}" = set; then
11882 $as_echo_n "(cached) " >&6
11883 else
11884 ac_cv_type_size_t=no
11885 cat >conftest.$ac_ext <<_ACEOF
11886 /* confdefs.h. */
11887 _ACEOF
11888 cat confdefs.h >>conftest.$ac_ext
11889 cat >>conftest.$ac_ext <<_ACEOF
11890 /* end confdefs.h. */
11891 $ac_includes_default
11893 main ()
11895 if (sizeof (size_t))
11896 return 0;
11898 return 0;
11900 _ACEOF
11901 rm -f conftest.$ac_objext
11902 if { (ac_try="$ac_compile"
11903 case "(($ac_try" in
11904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11905 *) ac_try_echo=$ac_try;;
11906 esac
11907 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11908 $as_echo "$ac_try_echo") >&5
11909 (eval "$ac_compile") 2>conftest.er1
11910 ac_status=$?
11911 grep -v '^ *+' conftest.er1 >conftest.err
11912 rm -f conftest.er1
11913 cat conftest.err >&5
11914 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11915 (exit $ac_status); } && {
11916 test -z "$ac_c_werror_flag" ||
11917 test ! -s conftest.err
11918 } && test -s conftest.$ac_objext; then
11919 cat >conftest.$ac_ext <<_ACEOF
11920 /* confdefs.h. */
11921 _ACEOF
11922 cat confdefs.h >>conftest.$ac_ext
11923 cat >>conftest.$ac_ext <<_ACEOF
11924 /* end confdefs.h. */
11925 $ac_includes_default
11927 main ()
11929 if (sizeof ((size_t)))
11930 return 0;
11932 return 0;
11934 _ACEOF
11935 rm -f conftest.$ac_objext
11936 if { (ac_try="$ac_compile"
11937 case "(($ac_try" in
11938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11939 *) ac_try_echo=$ac_try;;
11940 esac
11941 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11942 $as_echo "$ac_try_echo") >&5
11943 (eval "$ac_compile") 2>conftest.er1
11944 ac_status=$?
11945 grep -v '^ *+' conftest.er1 >conftest.err
11946 rm -f conftest.er1
11947 cat conftest.err >&5
11948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11949 (exit $ac_status); } && {
11950 test -z "$ac_c_werror_flag" ||
11951 test ! -s conftest.err
11952 } && test -s conftest.$ac_objext; then
11954 else
11955 $as_echo "$as_me: failed program was:" >&5
11956 sed 's/^/| /' conftest.$ac_ext >&5
11958 ac_cv_type_size_t=yes
11961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11962 else
11963 $as_echo "$as_me: failed program was:" >&5
11964 sed 's/^/| /' conftest.$ac_ext >&5
11969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11971 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11972 $as_echo "$ac_cv_type_size_t" >&6; }
11973 if test $ac_cv_type_size_t = yes; then
11975 else
11977 cat >>confdefs.h <<_ACEOF
11978 #define size_t unsigned int
11979 _ACEOF
11983 { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
11984 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
11985 if test "${ac_cv_type_uid_t+set}" = set; then
11986 $as_echo_n "(cached) " >&6
11987 else
11988 cat >conftest.$ac_ext <<_ACEOF
11989 /* confdefs.h. */
11990 _ACEOF
11991 cat confdefs.h >>conftest.$ac_ext
11992 cat >>conftest.$ac_ext <<_ACEOF
11993 /* end confdefs.h. */
11994 #include <sys/types.h>
11996 _ACEOF
11997 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11998 $EGREP "uid_t" >/dev/null 2>&1; then
11999 ac_cv_type_uid_t=yes
12000 else
12001 ac_cv_type_uid_t=no
12003 rm -f conftest*
12006 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
12007 $as_echo "$ac_cv_type_uid_t" >&6; }
12008 if test $ac_cv_type_uid_t = no; then
12010 cat >>confdefs.h <<\_ACEOF
12011 #define uid_t int
12012 _ACEOF
12015 cat >>confdefs.h <<\_ACEOF
12016 #define gid_t int
12017 _ACEOF
12021 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
12022 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
12023 if test "${ac_cv_header_time+set}" = set; then
12024 $as_echo_n "(cached) " >&6
12025 else
12026 cat >conftest.$ac_ext <<_ACEOF
12027 /* confdefs.h. */
12028 _ACEOF
12029 cat confdefs.h >>conftest.$ac_ext
12030 cat >>conftest.$ac_ext <<_ACEOF
12031 /* end confdefs.h. */
12032 #include <sys/types.h>
12033 #include <sys/time.h>
12034 #include <time.h>
12037 main ()
12039 if ((struct tm *) 0)
12040 return 0;
12042 return 0;
12044 _ACEOF
12045 rm -f conftest.$ac_objext
12046 if { (ac_try="$ac_compile"
12047 case "(($ac_try" in
12048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12049 *) ac_try_echo=$ac_try;;
12050 esac
12051 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12052 $as_echo "$ac_try_echo") >&5
12053 (eval "$ac_compile") 2>conftest.er1
12054 ac_status=$?
12055 grep -v '^ *+' conftest.er1 >conftest.err
12056 rm -f conftest.er1
12057 cat conftest.err >&5
12058 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12059 (exit $ac_status); } && {
12060 test -z "$ac_c_werror_flag" ||
12061 test ! -s conftest.err
12062 } && test -s conftest.$ac_objext; then
12063 ac_cv_header_time=yes
12064 else
12065 $as_echo "$as_me: failed program was:" >&5
12066 sed 's/^/| /' conftest.$ac_ext >&5
12068 ac_cv_header_time=no
12071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12073 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
12074 $as_echo "$ac_cv_header_time" >&6; }
12075 if test $ac_cv_header_time = yes; then
12077 cat >>confdefs.h <<\_ACEOF
12078 #define TIME_WITH_SYS_TIME 1
12079 _ACEOF
12083 { $as_echo "$as_me:$LINENO: checking for ino_t" >&5
12084 $as_echo_n "checking for ino_t... " >&6; }
12085 if test "${ac_cv_type_ino_t+set}" = set; then
12086 $as_echo_n "(cached) " >&6
12087 else
12088 ac_cv_type_ino_t=no
12089 cat >conftest.$ac_ext <<_ACEOF
12090 /* confdefs.h. */
12091 _ACEOF
12092 cat confdefs.h >>conftest.$ac_ext
12093 cat >>conftest.$ac_ext <<_ACEOF
12094 /* end confdefs.h. */
12095 $ac_includes_default
12097 main ()
12099 if (sizeof (ino_t))
12100 return 0;
12102 return 0;
12104 _ACEOF
12105 rm -f conftest.$ac_objext
12106 if { (ac_try="$ac_compile"
12107 case "(($ac_try" in
12108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12109 *) ac_try_echo=$ac_try;;
12110 esac
12111 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12112 $as_echo "$ac_try_echo") >&5
12113 (eval "$ac_compile") 2>conftest.er1
12114 ac_status=$?
12115 grep -v '^ *+' conftest.er1 >conftest.err
12116 rm -f conftest.er1
12117 cat conftest.err >&5
12118 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12119 (exit $ac_status); } && {
12120 test -z "$ac_c_werror_flag" ||
12121 test ! -s conftest.err
12122 } && test -s conftest.$ac_objext; then
12123 cat >conftest.$ac_ext <<_ACEOF
12124 /* confdefs.h. */
12125 _ACEOF
12126 cat confdefs.h >>conftest.$ac_ext
12127 cat >>conftest.$ac_ext <<_ACEOF
12128 /* end confdefs.h. */
12129 $ac_includes_default
12131 main ()
12133 if (sizeof ((ino_t)))
12134 return 0;
12136 return 0;
12138 _ACEOF
12139 rm -f conftest.$ac_objext
12140 if { (ac_try="$ac_compile"
12141 case "(($ac_try" in
12142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12143 *) ac_try_echo=$ac_try;;
12144 esac
12145 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12146 $as_echo "$ac_try_echo") >&5
12147 (eval "$ac_compile") 2>conftest.er1
12148 ac_status=$?
12149 grep -v '^ *+' conftest.er1 >conftest.err
12150 rm -f conftest.er1
12151 cat conftest.err >&5
12152 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12153 (exit $ac_status); } && {
12154 test -z "$ac_c_werror_flag" ||
12155 test ! -s conftest.err
12156 } && test -s conftest.$ac_objext; then
12158 else
12159 $as_echo "$as_me: failed program was:" >&5
12160 sed 's/^/| /' conftest.$ac_ext >&5
12162 ac_cv_type_ino_t=yes
12165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12166 else
12167 $as_echo "$as_me: failed program was:" >&5
12168 sed 's/^/| /' conftest.$ac_ext >&5
12173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12175 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
12176 $as_echo "$ac_cv_type_ino_t" >&6; }
12177 if test $ac_cv_type_ino_t = yes; then
12179 else
12181 cat >>confdefs.h <<_ACEOF
12182 #define ino_t long
12183 _ACEOF
12187 { $as_echo "$as_me:$LINENO: checking for dev_t" >&5
12188 $as_echo_n "checking for dev_t... " >&6; }
12189 if test "${ac_cv_type_dev_t+set}" = set; then
12190 $as_echo_n "(cached) " >&6
12191 else
12192 ac_cv_type_dev_t=no
12193 cat >conftest.$ac_ext <<_ACEOF
12194 /* confdefs.h. */
12195 _ACEOF
12196 cat confdefs.h >>conftest.$ac_ext
12197 cat >>conftest.$ac_ext <<_ACEOF
12198 /* end confdefs.h. */
12199 $ac_includes_default
12201 main ()
12203 if (sizeof (dev_t))
12204 return 0;
12206 return 0;
12208 _ACEOF
12209 rm -f conftest.$ac_objext
12210 if { (ac_try="$ac_compile"
12211 case "(($ac_try" in
12212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12213 *) ac_try_echo=$ac_try;;
12214 esac
12215 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12216 $as_echo "$ac_try_echo") >&5
12217 (eval "$ac_compile") 2>conftest.er1
12218 ac_status=$?
12219 grep -v '^ *+' conftest.er1 >conftest.err
12220 rm -f conftest.er1
12221 cat conftest.err >&5
12222 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12223 (exit $ac_status); } && {
12224 test -z "$ac_c_werror_flag" ||
12225 test ! -s conftest.err
12226 } && test -s conftest.$ac_objext; then
12227 cat >conftest.$ac_ext <<_ACEOF
12228 /* confdefs.h. */
12229 _ACEOF
12230 cat confdefs.h >>conftest.$ac_ext
12231 cat >>conftest.$ac_ext <<_ACEOF
12232 /* end confdefs.h. */
12233 $ac_includes_default
12235 main ()
12237 if (sizeof ((dev_t)))
12238 return 0;
12240 return 0;
12242 _ACEOF
12243 rm -f conftest.$ac_objext
12244 if { (ac_try="$ac_compile"
12245 case "(($ac_try" in
12246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12247 *) ac_try_echo=$ac_try;;
12248 esac
12249 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12250 $as_echo "$ac_try_echo") >&5
12251 (eval "$ac_compile") 2>conftest.er1
12252 ac_status=$?
12253 grep -v '^ *+' conftest.er1 >conftest.err
12254 rm -f conftest.er1
12255 cat conftest.err >&5
12256 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12257 (exit $ac_status); } && {
12258 test -z "$ac_c_werror_flag" ||
12259 test ! -s conftest.err
12260 } && test -s conftest.$ac_objext; then
12262 else
12263 $as_echo "$as_me: failed program was:" >&5
12264 sed 's/^/| /' conftest.$ac_ext >&5
12266 ac_cv_type_dev_t=yes
12269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12270 else
12271 $as_echo "$as_me: failed program was:" >&5
12272 sed 's/^/| /' conftest.$ac_ext >&5
12277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12279 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
12280 $as_echo "$ac_cv_type_dev_t" >&6; }
12281 if test $ac_cv_type_dev_t = yes; then
12283 else
12285 cat >>confdefs.h <<_ACEOF
12286 #define dev_t unsigned
12287 _ACEOF
12292 { $as_echo "$as_me:$LINENO: checking for rlim_t" >&5
12293 $as_echo_n "checking for rlim_t... " >&6; }
12294 if eval "test \"`echo '$''{'ac_cv_type_rlim_t'+set}'`\" = set"; then
12295 { $as_echo "$as_me:$LINENO: result: (cached) $ac_cv_type_rlim_t" >&5
12296 $as_echo "(cached) $ac_cv_type_rlim_t" >&6; }
12297 else
12298 cat >conftest.$ac_ext <<_ACEOF
12299 /* confdefs.h. */
12300 _ACEOF
12301 cat confdefs.h >>conftest.$ac_ext
12302 cat >>conftest.$ac_ext <<_ACEOF
12303 /* end confdefs.h. */
12305 #include <sys/types.h>
12306 #if STDC_HEADERS
12307 # include <stdlib.h>
12308 # include <stddef.h>
12309 #endif
12310 #ifdef HAVE_SYS_RESOURCE_H
12311 # include <sys/resource.h>
12312 #endif
12314 _ACEOF
12315 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12316 $EGREP "(^|[^a-zA-Z_0-9])rlim_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
12317 ac_cv_type_rlim_t=yes
12318 else
12319 ac_cv_type_rlim_t=no
12321 rm -f conftest*
12323 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_rlim_t" >&5
12324 $as_echo "$ac_cv_type_rlim_t" >&6; }
12326 if test $ac_cv_type_rlim_t = no; then
12327 cat >> confdefs.h <<\EOF
12328 #define rlim_t unsigned long
12332 { $as_echo "$as_me:$LINENO: checking for stack_t" >&5
12333 $as_echo_n "checking for stack_t... " >&6; }
12334 if eval "test \"`echo '$''{'ac_cv_type_stack_t'+set}'`\" = set"; then
12335 { $as_echo "$as_me:$LINENO: result: (cached) $ac_cv_type_stack_t" >&5
12336 $as_echo "(cached) $ac_cv_type_stack_t" >&6; }
12337 else
12338 cat >conftest.$ac_ext <<_ACEOF
12339 /* confdefs.h. */
12340 _ACEOF
12341 cat confdefs.h >>conftest.$ac_ext
12342 cat >>conftest.$ac_ext <<_ACEOF
12343 /* end confdefs.h. */
12345 #include <sys/types.h>
12346 #if STDC_HEADERS
12347 # include <stdlib.h>
12348 # include <stddef.h>
12349 #endif
12350 #include <signal.h>
12352 _ACEOF
12353 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12354 $EGREP "stack_t" >/dev/null 2>&1; then
12355 ac_cv_type_stack_t=yes
12356 else
12357 ac_cv_type_stack_t=no
12359 rm -f conftest*
12361 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_stack_t" >&5
12362 $as_echo "$ac_cv_type_stack_t" >&6; }
12364 if test $ac_cv_type_stack_t = no; then
12365 cat >> confdefs.h <<\EOF
12366 #define stack_t struct sigaltstack
12370 { $as_echo "$as_me:$LINENO: checking whether stack_t has an ss_base field" >&5
12371 $as_echo_n "checking whether stack_t has an ss_base field... " >&6; }
12372 cat >conftest.$ac_ext <<_ACEOF
12373 /* confdefs.h. */
12374 _ACEOF
12375 cat confdefs.h >>conftest.$ac_ext
12376 cat >>conftest.$ac_ext <<_ACEOF
12377 /* end confdefs.h. */
12379 #include <sys/types.h>
12380 #if STDC_HEADERS
12381 # include <stdlib.h>
12382 # include <stddef.h>
12383 #endif
12384 #include <signal.h>
12385 #include "confdefs.h"
12388 main ()
12390 stack_t sigstk; sigstk.ss_base = 0;
12392 return 0;
12394 _ACEOF
12395 rm -f conftest.$ac_objext
12396 if { (ac_try="$ac_compile"
12397 case "(($ac_try" in
12398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12399 *) ac_try_echo=$ac_try;;
12400 esac
12401 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12402 $as_echo "$ac_try_echo") >&5
12403 (eval "$ac_compile") 2>conftest.er1
12404 ac_status=$?
12405 grep -v '^ *+' conftest.er1 >conftest.err
12406 rm -f conftest.er1
12407 cat conftest.err >&5
12408 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12409 (exit $ac_status); } && {
12410 test -z "$ac_c_werror_flag" ||
12411 test ! -s conftest.err
12412 } && test -s conftest.$ac_objext; then
12413 { $as_echo "$as_me:$LINENO: result: yes" >&5
12414 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
12415 #define HAVE_SS_BASE 1
12416 _ACEOF
12418 else
12419 $as_echo "$as_me: failed program was:" >&5
12420 sed 's/^/| /' conftest.$ac_ext >&5
12422 { $as_echo "$as_me:$LINENO: result: no" >&5
12423 $as_echo "no" >&6; }
12426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12428 olibs="$LIBS"
12429 { $as_echo "$as_me:$LINENO: checking --with-tlib argument" >&5
12430 $as_echo_n "checking --with-tlib argument... " >&6; }
12432 # Check whether --with-tlib was given.
12433 if test "${with_tlib+set}" = set; then
12434 withval=$with_tlib;
12437 if test -n "$with_tlib"; then
12438 { $as_echo "$as_me:$LINENO: result: $with_tlib" >&5
12439 $as_echo "$with_tlib" >&6; }
12440 LIBS="$LIBS -l$with_tlib"
12441 { $as_echo "$as_me:$LINENO: checking for linking with $with_tlib library" >&5
12442 $as_echo_n "checking for linking with $with_tlib library... " >&6; }
12443 cat >conftest.$ac_ext <<_ACEOF
12444 /* confdefs.h. */
12445 _ACEOF
12446 cat confdefs.h >>conftest.$ac_ext
12447 cat >>conftest.$ac_ext <<_ACEOF
12448 /* end confdefs.h. */
12451 main ()
12455 return 0;
12457 _ACEOF
12458 rm -f conftest.$ac_objext conftest$ac_exeext
12459 if { (ac_try="$ac_link"
12460 case "(($ac_try" in
12461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12462 *) ac_try_echo=$ac_try;;
12463 esac
12464 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12465 $as_echo "$ac_try_echo") >&5
12466 (eval "$ac_link") 2>conftest.er1
12467 ac_status=$?
12468 grep -v '^ *+' conftest.er1 >conftest.err
12469 rm -f conftest.er1
12470 cat conftest.err >&5
12471 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12472 (exit $ac_status); } && {
12473 test -z "$ac_c_werror_flag" ||
12474 test ! -s conftest.err
12475 } && test -s conftest$ac_exeext && {
12476 test "$cross_compiling" = yes ||
12477 $as_test_x conftest$ac_exeext
12478 }; then
12479 { $as_echo "$as_me:$LINENO: result: OK" >&5
12480 $as_echo "OK" >&6; }
12481 else
12482 $as_echo "$as_me: failed program was:" >&5
12483 sed 's/^/| /' conftest.$ac_ext >&5
12485 { { $as_echo "$as_me:$LINENO: error: FAILED" >&5
12486 $as_echo "$as_me: error: FAILED" >&2;}
12487 { (exit 1); exit 1; }; }
12490 rm -rf conftest.dSYM
12491 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12492 conftest$ac_exeext conftest.$ac_ext
12493 olibs="$LIBS"
12494 else
12495 { $as_echo "$as_me:$LINENO: result: empty: automatic terminal library selection" >&5
12496 $as_echo "empty: automatic terminal library selection" >&6; }
12497 case "`uname -s 2>/dev/null`" in
12498 OSF1|SCO_SV) tlibs="ncurses curses termlib termcap";;
12499 *) tlibs="ncurses termlib termcap curses";;
12500 esac
12501 for libname in $tlibs; do
12503 as_ac_Lib=`$as_echo "ac_cv_lib_${libname}''_tgetent" | $as_tr_sh`
12504 { $as_echo "$as_me:$LINENO: checking for tgetent in -l${libname}" >&5
12505 $as_echo_n "checking for tgetent in -l${libname}... " >&6; }
12506 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
12507 $as_echo_n "(cached) " >&6
12508 else
12509 ac_check_lib_save_LIBS=$LIBS
12510 LIBS="-l${libname} $LIBS"
12511 cat >conftest.$ac_ext <<_ACEOF
12512 /* confdefs.h. */
12513 _ACEOF
12514 cat confdefs.h >>conftest.$ac_ext
12515 cat >>conftest.$ac_ext <<_ACEOF
12516 /* end confdefs.h. */
12518 /* Override any GCC internal prototype to avoid an error.
12519 Use char because int might match the return type of a GCC
12520 builtin and then its argument prototype would still apply. */
12521 #ifdef __cplusplus
12522 extern "C"
12523 #endif
12524 char tgetent ();
12526 main ()
12528 return tgetent ();
12530 return 0;
12532 _ACEOF
12533 rm -f conftest.$ac_objext conftest$ac_exeext
12534 if { (ac_try="$ac_link"
12535 case "(($ac_try" in
12536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12537 *) ac_try_echo=$ac_try;;
12538 esac
12539 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12540 $as_echo "$ac_try_echo") >&5
12541 (eval "$ac_link") 2>conftest.er1
12542 ac_status=$?
12543 grep -v '^ *+' conftest.er1 >conftest.err
12544 rm -f conftest.er1
12545 cat conftest.err >&5
12546 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12547 (exit $ac_status); } && {
12548 test -z "$ac_c_werror_flag" ||
12549 test ! -s conftest.err
12550 } && test -s conftest$ac_exeext && {
12551 test "$cross_compiling" = yes ||
12552 $as_test_x conftest$ac_exeext
12553 }; then
12554 eval "$as_ac_Lib=yes"
12555 else
12556 $as_echo "$as_me: failed program was:" >&5
12557 sed 's/^/| /' conftest.$ac_ext >&5
12559 eval "$as_ac_Lib=no"
12562 rm -rf conftest.dSYM
12563 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12564 conftest$ac_exeext conftest.$ac_ext
12565 LIBS=$ac_check_lib_save_LIBS
12567 ac_res=`eval 'as_val=${'$as_ac_Lib'}
12568 $as_echo "$as_val"'`
12569 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12570 $as_echo "$ac_res" >&6; }
12571 if test `eval 'as_val=${'$as_ac_Lib'}
12572 $as_echo "$as_val"'` = yes; then
12573 cat >>confdefs.h <<_ACEOF
12574 #define `$as_echo "HAVE_LIB${libname}" | $as_tr_cpp` 1
12575 _ACEOF
12577 LIBS="-l${libname} $LIBS"
12581 if test "x$olibs" != "x$LIBS"; then
12582 if test "$cross_compiling" = yes; then
12583 res="FAIL"
12584 else
12585 cat >conftest.$ac_ext <<_ACEOF
12586 /* confdefs.h. */
12587 _ACEOF
12588 cat confdefs.h >>conftest.$ac_ext
12589 cat >>conftest.$ac_ext <<_ACEOF
12590 /* end confdefs.h. */
12592 #ifdef HAVE_TERMCAP_H
12593 # include <termcap.h>
12594 #endif
12595 #if STDC_HEADERS
12596 # include <stdlib.h>
12597 # include <stddef.h>
12598 #endif
12599 main() {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(0); }
12600 _ACEOF
12601 rm -f conftest$ac_exeext
12602 if { (ac_try="$ac_link"
12603 case "(($ac_try" in
12604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12605 *) ac_try_echo=$ac_try;;
12606 esac
12607 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12608 $as_echo "$ac_try_echo") >&5
12609 (eval "$ac_link") 2>&5
12610 ac_status=$?
12611 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12612 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12613 { (case "(($ac_try" in
12614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12615 *) ac_try_echo=$ac_try;;
12616 esac
12617 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12618 $as_echo "$ac_try_echo") >&5
12619 (eval "$ac_try") 2>&5
12620 ac_status=$?
12621 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12622 (exit $ac_status); }; }; then
12623 res="OK"
12624 else
12625 $as_echo "$as_me: program exited with status $ac_status" >&5
12626 $as_echo "$as_me: failed program was:" >&5
12627 sed 's/^/| /' conftest.$ac_ext >&5
12629 ( exit $ac_status )
12630 res="FAIL"
12632 rm -rf conftest.dSYM
12633 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12637 if test "$res" = "OK"; then
12638 break
12640 { $as_echo "$as_me:$LINENO: result: $libname library is not usable" >&5
12641 $as_echo "$libname library is not usable" >&6; }
12642 LIBS="$olibs"
12644 done
12645 if test "x$olibs" = "x$LIBS"; then
12646 { $as_echo "$as_me:$LINENO: result: no terminal library found" >&5
12647 $as_echo "no terminal library found" >&6; }
12651 if test "x$olibs" = "x$LIBS"; then
12652 { $as_echo "$as_me:$LINENO: checking for tgetent()" >&5
12653 $as_echo_n "checking for tgetent()... " >&6; }
12654 cat >conftest.$ac_ext <<_ACEOF
12655 /* confdefs.h. */
12656 _ACEOF
12657 cat confdefs.h >>conftest.$ac_ext
12658 cat >>conftest.$ac_ext <<_ACEOF
12659 /* end confdefs.h. */
12662 main ()
12664 char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist");
12666 return 0;
12668 _ACEOF
12669 rm -f conftest.$ac_objext conftest$ac_exeext
12670 if { (ac_try="$ac_link"
12671 case "(($ac_try" in
12672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12673 *) ac_try_echo=$ac_try;;
12674 esac
12675 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12676 $as_echo "$ac_try_echo") >&5
12677 (eval "$ac_link") 2>conftest.er1
12678 ac_status=$?
12679 grep -v '^ *+' conftest.er1 >conftest.err
12680 rm -f conftest.er1
12681 cat conftest.err >&5
12682 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12683 (exit $ac_status); } && {
12684 test -z "$ac_c_werror_flag" ||
12685 test ! -s conftest.err
12686 } && test -s conftest$ac_exeext && {
12687 test "$cross_compiling" = yes ||
12688 $as_test_x conftest$ac_exeext
12689 }; then
12690 { $as_echo "$as_me:$LINENO: result: yes" >&5
12691 $as_echo "yes" >&6; }
12692 else
12693 $as_echo "$as_me: failed program was:" >&5
12694 sed 's/^/| /' conftest.$ac_ext >&5
12696 { { $as_echo "$as_me:$LINENO: error: NOT FOUND!
12697 You need to install a terminal library; for example ncurses.
12698 Or specify the name of the library with --with-tlib." >&5
12699 $as_echo "$as_me: error: NOT FOUND!
12700 You need to install a terminal library; for example ncurses.
12701 Or specify the name of the library with --with-tlib." >&2;}
12702 { (exit 1); exit 1; }; }
12705 rm -rf conftest.dSYM
12706 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12707 conftest$ac_exeext conftest.$ac_ext
12710 { $as_echo "$as_me:$LINENO: checking whether we talk terminfo" >&5
12711 $as_echo_n "checking whether we talk terminfo... " >&6; }
12712 if test "${vim_cv_terminfo+set}" = set; then
12713 $as_echo_n "(cached) " >&6
12714 else
12716 if test "$cross_compiling" = yes; then
12718 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_terminfo'" >&5
12719 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_terminfo'" >&2;}
12720 { (exit 1); exit 1; }; }
12722 else
12723 cat >conftest.$ac_ext <<_ACEOF
12725 #include "confdefs.h"
12726 #ifdef HAVE_TERMCAP_H
12727 # include <termcap.h>
12728 #endif
12729 #ifdef HAVE_STRING_H
12730 # include <string.h>
12731 #endif
12732 #if STDC_HEADERS
12733 # include <stdlib.h>
12734 # include <stddef.h>
12735 #endif
12736 main()
12737 {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(!strcmp(s==0 ? "" : s, "1")); }
12739 _ACEOF
12740 rm -f conftest$ac_exeext
12741 if { (ac_try="$ac_link"
12742 case "(($ac_try" in
12743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12744 *) ac_try_echo=$ac_try;;
12745 esac
12746 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12747 $as_echo "$ac_try_echo") >&5
12748 (eval "$ac_link") 2>&5
12749 ac_status=$?
12750 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12751 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12752 { (case "(($ac_try" in
12753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12754 *) ac_try_echo=$ac_try;;
12755 esac
12756 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12757 $as_echo "$ac_try_echo") >&5
12758 (eval "$ac_try") 2>&5
12759 ac_status=$?
12760 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12761 (exit $ac_status); }; }; then
12763 vim_cv_terminfo=no
12765 else
12766 $as_echo "$as_me: program exited with status $ac_status" >&5
12767 $as_echo "$as_me: failed program was:" >&5
12768 sed 's/^/| /' conftest.$ac_ext >&5
12770 ( exit $ac_status )
12772 vim_cv_terminfo=yes
12775 rm -rf conftest.dSYM
12776 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12782 { $as_echo "$as_me:$LINENO: result: $vim_cv_terminfo" >&5
12783 $as_echo "$vim_cv_terminfo" >&6; }
12785 if test "x$vim_cv_terminfo" = "xyes" ; then
12786 cat >>confdefs.h <<\_ACEOF
12787 #define TERMINFO 1
12788 _ACEOF
12792 if test "x$olibs" != "x$LIBS"; then
12793 { $as_echo "$as_me:$LINENO: checking what tgetent() returns for an unknown terminal" >&5
12794 $as_echo_n "checking what tgetent() returns for an unknown terminal... " >&6; }
12795 if test "${vim_cv_tgent+set}" = set; then
12796 $as_echo_n "(cached) " >&6
12797 else
12799 if test "$cross_compiling" = yes; then
12801 { { $as_echo "$as_me:$LINENO: error: failed to compile test program." >&5
12802 $as_echo "$as_me: error: failed to compile test program." >&2;}
12803 { (exit 1); exit 1; }; }
12805 else
12806 cat >conftest.$ac_ext <<_ACEOF
12808 #include "confdefs.h"
12809 #ifdef HAVE_TERMCAP_H
12810 # include <termcap.h>
12811 #endif
12812 #if STDC_HEADERS
12813 # include <stdlib.h>
12814 # include <stddef.h>
12815 #endif
12816 main()
12817 {char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); exit(res != 0); }
12819 _ACEOF
12820 rm -f conftest$ac_exeext
12821 if { (ac_try="$ac_link"
12822 case "(($ac_try" in
12823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12824 *) ac_try_echo=$ac_try;;
12825 esac
12826 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12827 $as_echo "$ac_try_echo") >&5
12828 (eval "$ac_link") 2>&5
12829 ac_status=$?
12830 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12831 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12832 { (case "(($ac_try" in
12833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12834 *) ac_try_echo=$ac_try;;
12835 esac
12836 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12837 $as_echo "$ac_try_echo") >&5
12838 (eval "$ac_try") 2>&5
12839 ac_status=$?
12840 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12841 (exit $ac_status); }; }; then
12843 vim_cv_tgent=zero
12845 else
12846 $as_echo "$as_me: program exited with status $ac_status" >&5
12847 $as_echo "$as_me: failed program was:" >&5
12848 sed 's/^/| /' conftest.$ac_ext >&5
12850 ( exit $ac_status )
12852 vim_cv_tgent=non-zero
12855 rm -rf conftest.dSYM
12856 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12862 { $as_echo "$as_me:$LINENO: result: $vim_cv_tgent" >&5
12863 $as_echo "$vim_cv_tgent" >&6; }
12865 if test "x$vim_cv_tgent" = "xzero" ; then
12866 cat >>confdefs.h <<\_ACEOF
12867 #define TGETENT_ZERO_ERR 0
12868 _ACEOF
12873 { $as_echo "$as_me:$LINENO: checking whether termcap.h contains ospeed" >&5
12874 $as_echo_n "checking whether termcap.h contains ospeed... " >&6; }
12875 cat >conftest.$ac_ext <<_ACEOF
12876 /* confdefs.h. */
12877 _ACEOF
12878 cat confdefs.h >>conftest.$ac_ext
12879 cat >>conftest.$ac_ext <<_ACEOF
12880 /* end confdefs.h. */
12882 #ifdef HAVE_TERMCAP_H
12883 # include <termcap.h>
12884 #endif
12887 main ()
12889 ospeed = 20000
12891 return 0;
12893 _ACEOF
12894 rm -f conftest.$ac_objext conftest$ac_exeext
12895 if { (ac_try="$ac_link"
12896 case "(($ac_try" in
12897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12898 *) ac_try_echo=$ac_try;;
12899 esac
12900 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12901 $as_echo "$ac_try_echo") >&5
12902 (eval "$ac_link") 2>conftest.er1
12903 ac_status=$?
12904 grep -v '^ *+' conftest.er1 >conftest.err
12905 rm -f conftest.er1
12906 cat conftest.err >&5
12907 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12908 (exit $ac_status); } && {
12909 test -z "$ac_c_werror_flag" ||
12910 test ! -s conftest.err
12911 } && test -s conftest$ac_exeext && {
12912 test "$cross_compiling" = yes ||
12913 $as_test_x conftest$ac_exeext
12914 }; then
12915 { $as_echo "$as_me:$LINENO: result: yes" >&5
12916 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
12917 #define HAVE_OSPEED 1
12918 _ACEOF
12920 else
12921 $as_echo "$as_me: failed program was:" >&5
12922 sed 's/^/| /' conftest.$ac_ext >&5
12924 { $as_echo "$as_me:$LINENO: result: no" >&5
12925 $as_echo "no" >&6; }
12926 { $as_echo "$as_me:$LINENO: checking whether ospeed can be extern" >&5
12927 $as_echo_n "checking whether ospeed can be extern... " >&6; }
12928 cat >conftest.$ac_ext <<_ACEOF
12929 /* confdefs.h. */
12930 _ACEOF
12931 cat confdefs.h >>conftest.$ac_ext
12932 cat >>conftest.$ac_ext <<_ACEOF
12933 /* end confdefs.h. */
12935 #ifdef HAVE_TERMCAP_H
12936 # include <termcap.h>
12937 #endif
12938 extern short ospeed;
12941 main ()
12943 ospeed = 20000
12945 return 0;
12947 _ACEOF
12948 rm -f conftest.$ac_objext conftest$ac_exeext
12949 if { (ac_try="$ac_link"
12950 case "(($ac_try" in
12951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12952 *) ac_try_echo=$ac_try;;
12953 esac
12954 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12955 $as_echo "$ac_try_echo") >&5
12956 (eval "$ac_link") 2>conftest.er1
12957 ac_status=$?
12958 grep -v '^ *+' conftest.er1 >conftest.err
12959 rm -f conftest.er1
12960 cat conftest.err >&5
12961 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12962 (exit $ac_status); } && {
12963 test -z "$ac_c_werror_flag" ||
12964 test ! -s conftest.err
12965 } && test -s conftest$ac_exeext && {
12966 test "$cross_compiling" = yes ||
12967 $as_test_x conftest$ac_exeext
12968 }; then
12969 { $as_echo "$as_me:$LINENO: result: yes" >&5
12970 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
12971 #define OSPEED_EXTERN 1
12972 _ACEOF
12974 else
12975 $as_echo "$as_me: failed program was:" >&5
12976 sed 's/^/| /' conftest.$ac_ext >&5
12978 { $as_echo "$as_me:$LINENO: result: no" >&5
12979 $as_echo "no" >&6; }
12982 rm -rf conftest.dSYM
12983 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12984 conftest$ac_exeext conftest.$ac_ext
12988 rm -rf conftest.dSYM
12989 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12990 conftest$ac_exeext conftest.$ac_ext
12992 { $as_echo "$as_me:$LINENO: checking whether termcap.h contains UP, BC and PC" >&5
12993 $as_echo_n "checking whether termcap.h contains UP, BC and PC... " >&6; }
12994 cat >conftest.$ac_ext <<_ACEOF
12995 /* confdefs.h. */
12996 _ACEOF
12997 cat confdefs.h >>conftest.$ac_ext
12998 cat >>conftest.$ac_ext <<_ACEOF
12999 /* end confdefs.h. */
13001 #ifdef HAVE_TERMCAP_H
13002 # include <termcap.h>
13003 #endif
13006 main ()
13008 if (UP == 0 && BC == 0) PC = 1
13010 return 0;
13012 _ACEOF
13013 rm -f conftest.$ac_objext conftest$ac_exeext
13014 if { (ac_try="$ac_link"
13015 case "(($ac_try" in
13016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13017 *) ac_try_echo=$ac_try;;
13018 esac
13019 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13020 $as_echo "$ac_try_echo") >&5
13021 (eval "$ac_link") 2>conftest.er1
13022 ac_status=$?
13023 grep -v '^ *+' conftest.er1 >conftest.err
13024 rm -f conftest.er1
13025 cat conftest.err >&5
13026 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13027 (exit $ac_status); } && {
13028 test -z "$ac_c_werror_flag" ||
13029 test ! -s conftest.err
13030 } && test -s conftest$ac_exeext && {
13031 test "$cross_compiling" = yes ||
13032 $as_test_x conftest$ac_exeext
13033 }; then
13034 { $as_echo "$as_me:$LINENO: result: yes" >&5
13035 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13036 #define HAVE_UP_BC_PC 1
13037 _ACEOF
13039 else
13040 $as_echo "$as_me: failed program was:" >&5
13041 sed 's/^/| /' conftest.$ac_ext >&5
13043 { $as_echo "$as_me:$LINENO: result: no" >&5
13044 $as_echo "no" >&6; }
13045 { $as_echo "$as_me:$LINENO: checking whether UP, BC and PC can be extern" >&5
13046 $as_echo_n "checking whether UP, BC and PC can be extern... " >&6; }
13047 cat >conftest.$ac_ext <<_ACEOF
13048 /* confdefs.h. */
13049 _ACEOF
13050 cat confdefs.h >>conftest.$ac_ext
13051 cat >>conftest.$ac_ext <<_ACEOF
13052 /* end confdefs.h. */
13054 #ifdef HAVE_TERMCAP_H
13055 # include <termcap.h>
13056 #endif
13057 extern char *UP, *BC, PC;
13060 main ()
13062 if (UP == 0 && BC == 0) PC = 1
13064 return 0;
13066 _ACEOF
13067 rm -f conftest.$ac_objext conftest$ac_exeext
13068 if { (ac_try="$ac_link"
13069 case "(($ac_try" in
13070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13071 *) ac_try_echo=$ac_try;;
13072 esac
13073 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13074 $as_echo "$ac_try_echo") >&5
13075 (eval "$ac_link") 2>conftest.er1
13076 ac_status=$?
13077 grep -v '^ *+' conftest.er1 >conftest.err
13078 rm -f conftest.er1
13079 cat conftest.err >&5
13080 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13081 (exit $ac_status); } && {
13082 test -z "$ac_c_werror_flag" ||
13083 test ! -s conftest.err
13084 } && test -s conftest$ac_exeext && {
13085 test "$cross_compiling" = yes ||
13086 $as_test_x conftest$ac_exeext
13087 }; then
13088 { $as_echo "$as_me:$LINENO: result: yes" >&5
13089 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13090 #define UP_BC_PC_EXTERN 1
13091 _ACEOF
13093 else
13094 $as_echo "$as_me: failed program was:" >&5
13095 sed 's/^/| /' conftest.$ac_ext >&5
13097 { $as_echo "$as_me:$LINENO: result: no" >&5
13098 $as_echo "no" >&6; }
13101 rm -rf conftest.dSYM
13102 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13103 conftest$ac_exeext conftest.$ac_ext
13107 rm -rf conftest.dSYM
13108 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13109 conftest$ac_exeext conftest.$ac_ext
13111 { $as_echo "$as_me:$LINENO: checking whether tputs() uses outfuntype" >&5
13112 $as_echo_n "checking whether tputs() uses outfuntype... " >&6; }
13113 cat >conftest.$ac_ext <<_ACEOF
13114 /* confdefs.h. */
13115 _ACEOF
13116 cat confdefs.h >>conftest.$ac_ext
13117 cat >>conftest.$ac_ext <<_ACEOF
13118 /* end confdefs.h. */
13120 #ifdef HAVE_TERMCAP_H
13121 # include <termcap.h>
13122 #endif
13125 main ()
13127 extern int xx(); tputs("test", 1, (outfuntype)xx)
13129 return 0;
13131 _ACEOF
13132 rm -f conftest.$ac_objext
13133 if { (ac_try="$ac_compile"
13134 case "(($ac_try" in
13135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13136 *) ac_try_echo=$ac_try;;
13137 esac
13138 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13139 $as_echo "$ac_try_echo") >&5
13140 (eval "$ac_compile") 2>conftest.er1
13141 ac_status=$?
13142 grep -v '^ *+' conftest.er1 >conftest.err
13143 rm -f conftest.er1
13144 cat conftest.err >&5
13145 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13146 (exit $ac_status); } && {
13147 test -z "$ac_c_werror_flag" ||
13148 test ! -s conftest.err
13149 } && test -s conftest.$ac_objext; then
13150 { $as_echo "$as_me:$LINENO: result: yes" >&5
13151 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13152 #define HAVE_OUTFUNTYPE 1
13153 _ACEOF
13155 else
13156 $as_echo "$as_me: failed program was:" >&5
13157 sed 's/^/| /' conftest.$ac_ext >&5
13159 { $as_echo "$as_me:$LINENO: result: no" >&5
13160 $as_echo "no" >&6; }
13163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13165 { $as_echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
13166 $as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; }
13167 cat >conftest.$ac_ext <<_ACEOF
13168 /* confdefs.h. */
13169 _ACEOF
13170 cat confdefs.h >>conftest.$ac_ext
13171 cat >>conftest.$ac_ext <<_ACEOF
13172 /* end confdefs.h. */
13174 #include <sys/types.h>
13175 #include <sys/time.h>
13176 #include <sys/select.h>
13178 main ()
13182 return 0;
13184 _ACEOF
13185 rm -f conftest.$ac_objext
13186 if { (ac_try="$ac_compile"
13187 case "(($ac_try" in
13188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13189 *) ac_try_echo=$ac_try;;
13190 esac
13191 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13192 $as_echo "$ac_try_echo") >&5
13193 (eval "$ac_compile") 2>conftest.er1
13194 ac_status=$?
13195 grep -v '^ *+' conftest.er1 >conftest.err
13196 rm -f conftest.er1
13197 cat conftest.err >&5
13198 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13199 (exit $ac_status); } && {
13200 test -z "$ac_c_werror_flag" ||
13201 test ! -s conftest.err
13202 } && test -s conftest.$ac_objext; then
13203 { $as_echo "$as_me:$LINENO: result: yes" >&5
13204 $as_echo "yes" >&6; }
13205 cat >>confdefs.h <<\_ACEOF
13206 #define SYS_SELECT_WITH_SYS_TIME 1
13207 _ACEOF
13209 else
13210 $as_echo "$as_me: failed program was:" >&5
13211 sed 's/^/| /' conftest.$ac_ext >&5
13213 { $as_echo "$as_me:$LINENO: result: no" >&5
13214 $as_echo "no" >&6; }
13217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13220 { $as_echo "$as_me:$LINENO: checking for /dev/ptc" >&5
13221 $as_echo_n "checking for /dev/ptc... " >&6; }
13222 if test -r /dev/ptc; then
13223 cat >>confdefs.h <<\_ACEOF
13224 #define HAVE_DEV_PTC 1
13225 _ACEOF
13227 { $as_echo "$as_me:$LINENO: result: yes" >&5
13228 $as_echo "yes" >&6; }
13229 else
13230 { $as_echo "$as_me:$LINENO: result: no" >&5
13231 $as_echo "no" >&6; }
13234 { $as_echo "$as_me:$LINENO: checking for SVR4 ptys" >&5
13235 $as_echo_n "checking for SVR4 ptys... " >&6; }
13236 if test -c /dev/ptmx ; then
13237 cat >conftest.$ac_ext <<_ACEOF
13238 /* confdefs.h. */
13239 _ACEOF
13240 cat confdefs.h >>conftest.$ac_ext
13241 cat >>conftest.$ac_ext <<_ACEOF
13242 /* end confdefs.h. */
13245 main ()
13247 ptsname(0);grantpt(0);unlockpt(0);
13249 return 0;
13251 _ACEOF
13252 rm -f conftest.$ac_objext conftest$ac_exeext
13253 if { (ac_try="$ac_link"
13254 case "(($ac_try" in
13255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13256 *) ac_try_echo=$ac_try;;
13257 esac
13258 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13259 $as_echo "$ac_try_echo") >&5
13260 (eval "$ac_link") 2>conftest.er1
13261 ac_status=$?
13262 grep -v '^ *+' conftest.er1 >conftest.err
13263 rm -f conftest.er1
13264 cat conftest.err >&5
13265 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13266 (exit $ac_status); } && {
13267 test -z "$ac_c_werror_flag" ||
13268 test ! -s conftest.err
13269 } && test -s conftest$ac_exeext && {
13270 test "$cross_compiling" = yes ||
13271 $as_test_x conftest$ac_exeext
13272 }; then
13273 { $as_echo "$as_me:$LINENO: result: yes" >&5
13274 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13275 #define HAVE_SVR4_PTYS 1
13276 _ACEOF
13278 else
13279 $as_echo "$as_me: failed program was:" >&5
13280 sed 's/^/| /' conftest.$ac_ext >&5
13282 { $as_echo "$as_me:$LINENO: result: no" >&5
13283 $as_echo "no" >&6; }
13286 rm -rf conftest.dSYM
13287 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13288 conftest$ac_exeext conftest.$ac_ext
13289 else
13290 { $as_echo "$as_me:$LINENO: result: no" >&5
13291 $as_echo "no" >&6; }
13294 { $as_echo "$as_me:$LINENO: checking for ptyranges" >&5
13295 $as_echo_n "checking for ptyranges... " >&6; }
13296 if test -d /dev/ptym ; then
13297 pdir='/dev/ptym'
13298 else
13299 pdir='/dev'
13301 cat >conftest.$ac_ext <<_ACEOF
13302 /* confdefs.h. */
13303 _ACEOF
13304 cat confdefs.h >>conftest.$ac_ext
13305 cat >>conftest.$ac_ext <<_ACEOF
13306 /* end confdefs.h. */
13307 #ifdef M_UNIX
13308 yes;
13309 #endif
13311 _ACEOF
13312 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13313 $EGREP "yes" >/dev/null 2>&1; then
13314 ptys=`echo /dev/ptyp??`
13315 else
13316 ptys=`echo $pdir/pty??`
13318 rm -f conftest*
13320 if test "$ptys" != "$pdir/pty??" ; then
13321 p0=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'`
13322 p1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'`
13323 cat >>confdefs.h <<_ACEOF
13324 #define PTYRANGE0 "$p0"
13325 _ACEOF
13327 cat >>confdefs.h <<_ACEOF
13328 #define PTYRANGE1 "$p1"
13329 _ACEOF
13331 { $as_echo "$as_me:$LINENO: result: $p0 / $p1" >&5
13332 $as_echo "$p0 / $p1" >&6; }
13333 else
13334 { $as_echo "$as_me:$LINENO: result: don't know" >&5
13335 $as_echo "don't know" >&6; }
13338 rm -f conftest_grp
13339 { $as_echo "$as_me:$LINENO: checking default tty permissions/group" >&5
13340 $as_echo_n "checking default tty permissions/group... " >&6; }
13341 if test "${vim_cv_tty_group+set}" = set; then
13342 $as_echo_n "(cached) " >&6
13343 else
13345 if test "$cross_compiling" = yes; then
13347 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_tty_group' and 'vim_cv_tty_mode'" >&5
13348 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_tty_group' and 'vim_cv_tty_mode'" >&2;}
13349 { (exit 1); exit 1; }; }
13351 else
13352 cat >conftest.$ac_ext <<_ACEOF
13354 #include "confdefs.h"
13355 #include <sys/types.h>
13356 #if STDC_HEADERS
13357 # include <stdlib.h>
13358 # include <stddef.h>
13359 #endif
13360 #ifdef HAVE_UNISTD_H
13361 #include <unistd.h>
13362 #endif
13363 #include <sys/stat.h>
13364 #include <stdio.h>
13365 main()
13367 struct stat sb;
13368 char *x,*ttyname();
13369 int om, m;
13370 FILE *fp;
13372 if (!(x = ttyname(0))) exit(1);
13373 if (stat(x, &sb)) exit(1);
13374 om = sb.st_mode;
13375 if (om & 002) exit(0);
13376 m = system("mesg y");
13377 if (m == -1 || m == 127) exit(1);
13378 if (stat(x, &sb)) exit(1);
13379 m = sb.st_mode;
13380 if (chmod(x, om)) exit(1);
13381 if (m & 002) exit(0);
13382 if (sb.st_gid == getgid()) exit(1);
13383 if (!(fp=fopen("conftest_grp", "w")))
13384 exit(1);
13385 fprintf(fp, "%d\n", sb.st_gid);
13386 fclose(fp);
13387 exit(0);
13390 _ACEOF
13391 rm -f conftest$ac_exeext
13392 if { (ac_try="$ac_link"
13393 case "(($ac_try" in
13394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13395 *) ac_try_echo=$ac_try;;
13396 esac
13397 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13398 $as_echo "$ac_try_echo") >&5
13399 (eval "$ac_link") 2>&5
13400 ac_status=$?
13401 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13402 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13403 { (case "(($ac_try" in
13404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13405 *) ac_try_echo=$ac_try;;
13406 esac
13407 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13408 $as_echo "$ac_try_echo") >&5
13409 (eval "$ac_try") 2>&5
13410 ac_status=$?
13411 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13412 (exit $ac_status); }; }; then
13414 if test -f conftest_grp; then
13415 vim_cv_tty_group=`cat conftest_grp`
13416 if test "x$vim_cv_tty_mode" = "x" ; then
13417 vim_cv_tty_mode=0620
13419 { $as_echo "$as_me:$LINENO: result: pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&5
13420 $as_echo "pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&6; }
13421 else
13422 vim_cv_tty_group=world
13423 { $as_echo "$as_me:$LINENO: result: ptys are world accessable" >&5
13424 $as_echo "ptys are world accessable" >&6; }
13427 else
13428 $as_echo "$as_me: program exited with status $ac_status" >&5
13429 $as_echo "$as_me: failed program was:" >&5
13430 sed 's/^/| /' conftest.$ac_ext >&5
13432 ( exit $ac_status )
13434 vim_cv_tty_group=world
13435 { $as_echo "$as_me:$LINENO: result: can't determine - assume ptys are world accessable" >&5
13436 $as_echo "can't determine - assume ptys are world accessable" >&6; }
13439 rm -rf conftest.dSYM
13440 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13446 { $as_echo "$as_me:$LINENO: result: $vim_cv_tty_group" >&5
13447 $as_echo "$vim_cv_tty_group" >&6; }
13448 rm -f conftest_grp
13450 if test "x$vim_cv_tty_group" != "xworld" ; then
13451 cat >>confdefs.h <<_ACEOF
13452 #define PTYGROUP $vim_cv_tty_group
13453 _ACEOF
13455 if test "x$vim_cv_tty_mode" = "x" ; then
13456 { { $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
13457 $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;}
13458 { (exit 1); exit 1; }; }
13459 else
13460 cat >>confdefs.h <<\_ACEOF
13461 #define PTYMODE 0620
13462 _ACEOF
13468 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13469 $as_echo_n "checking return type of signal handlers... " >&6; }
13470 if test "${ac_cv_type_signal+set}" = set; then
13471 $as_echo_n "(cached) " >&6
13472 else
13473 cat >conftest.$ac_ext <<_ACEOF
13474 /* confdefs.h. */
13475 _ACEOF
13476 cat confdefs.h >>conftest.$ac_ext
13477 cat >>conftest.$ac_ext <<_ACEOF
13478 /* end confdefs.h. */
13479 #include <sys/types.h>
13480 #include <signal.h>
13483 main ()
13485 return *(signal (0, 0)) (0) == 1;
13487 return 0;
13489 _ACEOF
13490 rm -f conftest.$ac_objext
13491 if { (ac_try="$ac_compile"
13492 case "(($ac_try" in
13493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13494 *) ac_try_echo=$ac_try;;
13495 esac
13496 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13497 $as_echo "$ac_try_echo") >&5
13498 (eval "$ac_compile") 2>conftest.er1
13499 ac_status=$?
13500 grep -v '^ *+' conftest.er1 >conftest.err
13501 rm -f conftest.er1
13502 cat conftest.err >&5
13503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13504 (exit $ac_status); } && {
13505 test -z "$ac_c_werror_flag" ||
13506 test ! -s conftest.err
13507 } && test -s conftest.$ac_objext; then
13508 ac_cv_type_signal=int
13509 else
13510 $as_echo "$as_me: failed program was:" >&5
13511 sed 's/^/| /' conftest.$ac_ext >&5
13513 ac_cv_type_signal=void
13516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13518 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
13519 $as_echo "$ac_cv_type_signal" >&6; }
13521 cat >>confdefs.h <<_ACEOF
13522 #define RETSIGTYPE $ac_cv_type_signal
13523 _ACEOF
13527 if test $ac_cv_type_signal = void; then
13528 cat >>confdefs.h <<\_ACEOF
13529 #define SIGRETURN return
13530 _ACEOF
13532 else
13533 cat >>confdefs.h <<\_ACEOF
13534 #define SIGRETURN return 0
13535 _ACEOF
13539 { $as_echo "$as_me:$LINENO: checking for struct sigcontext" >&5
13540 $as_echo_n "checking for struct sigcontext... " >&6; }
13541 cat >conftest.$ac_ext <<_ACEOF
13542 /* confdefs.h. */
13543 _ACEOF
13544 cat confdefs.h >>conftest.$ac_ext
13545 cat >>conftest.$ac_ext <<_ACEOF
13546 /* end confdefs.h. */
13548 #include <signal.h>
13549 test_sig()
13551 struct sigcontext *scont;
13552 scont = (struct sigcontext *)0;
13553 return 1;
13556 main ()
13560 return 0;
13562 _ACEOF
13563 rm -f conftest.$ac_objext
13564 if { (ac_try="$ac_compile"
13565 case "(($ac_try" in
13566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13567 *) ac_try_echo=$ac_try;;
13568 esac
13569 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13570 $as_echo "$ac_try_echo") >&5
13571 (eval "$ac_compile") 2>conftest.er1
13572 ac_status=$?
13573 grep -v '^ *+' conftest.er1 >conftest.err
13574 rm -f conftest.er1
13575 cat conftest.err >&5
13576 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13577 (exit $ac_status); } && {
13578 test -z "$ac_c_werror_flag" ||
13579 test ! -s conftest.err
13580 } && test -s conftest.$ac_objext; then
13581 { $as_echo "$as_me:$LINENO: result: yes" >&5
13582 $as_echo "yes" >&6; }
13583 cat >>confdefs.h <<\_ACEOF
13584 #define HAVE_SIGCONTEXT 1
13585 _ACEOF
13587 else
13588 $as_echo "$as_me: failed program was:" >&5
13589 sed 's/^/| /' conftest.$ac_ext >&5
13591 { $as_echo "$as_me:$LINENO: result: no" >&5
13592 $as_echo "no" >&6; }
13595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13597 { $as_echo "$as_me:$LINENO: checking getcwd implementation is broken" >&5
13598 $as_echo_n "checking getcwd implementation is broken... " >&6; }
13599 if test "${vim_cv_getcwd_broken+set}" = set; then
13600 $as_echo_n "(cached) " >&6
13601 else
13603 if test "$cross_compiling" = yes; then
13605 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_getcwd_broken'" >&5
13606 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_getcwd_broken'" >&2;}
13607 { (exit 1); exit 1; }; }
13609 else
13610 cat >conftest.$ac_ext <<_ACEOF
13612 #include "confdefs.h"
13613 #ifdef HAVE_UNISTD_H
13614 #include <unistd.h>
13615 #endif
13616 char *dagger[] = { "IFS=pwd", 0 };
13617 main()
13619 char buffer[500];
13620 extern char **environ;
13621 environ = dagger;
13622 return getcwd(buffer, 500) ? 0 : 1;
13625 _ACEOF
13626 rm -f conftest$ac_exeext
13627 if { (ac_try="$ac_link"
13628 case "(($ac_try" in
13629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13630 *) ac_try_echo=$ac_try;;
13631 esac
13632 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13633 $as_echo "$ac_try_echo") >&5
13634 (eval "$ac_link") 2>&5
13635 ac_status=$?
13636 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13637 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13638 { (case "(($ac_try" in
13639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13640 *) ac_try_echo=$ac_try;;
13641 esac
13642 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13643 $as_echo "$ac_try_echo") >&5
13644 (eval "$ac_try") 2>&5
13645 ac_status=$?
13646 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13647 (exit $ac_status); }; }; then
13649 vim_cv_getcwd_broken=no
13651 else
13652 $as_echo "$as_me: program exited with status $ac_status" >&5
13653 $as_echo "$as_me: failed program was:" >&5
13654 sed 's/^/| /' conftest.$ac_ext >&5
13656 ( exit $ac_status )
13658 vim_cv_getcwd_broken=yes
13661 rm -rf conftest.dSYM
13662 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13668 { $as_echo "$as_me:$LINENO: result: $vim_cv_getcwd_broken" >&5
13669 $as_echo "$vim_cv_getcwd_broken" >&6; }
13671 if test "x$vim_cv_getcwd_broken" = "xyes" ; then
13672 cat >>confdefs.h <<\_ACEOF
13673 #define BAD_GETCWD 1
13674 _ACEOF
13724 for ac_func in bcmp fchdir fchown fseeko fsync ftello getcwd getpseudotty \
13725 getpwnam getpwuid getrlimit gettimeofday getwd lstat memcmp \
13726 memset nanosleep opendir putenv qsort readlink select setenv \
13727 setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \
13728 sigvec strcasecmp strerror strftime stricmp strncasecmp \
13729 strnicmp strpbrk strtol tgetent towlower towupper iswupper \
13730 usleep utime utimes
13732 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13733 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13734 $as_echo_n "checking for $ac_func... " >&6; }
13735 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13736 $as_echo_n "(cached) " >&6
13737 else
13738 cat >conftest.$ac_ext <<_ACEOF
13739 /* confdefs.h. */
13740 _ACEOF
13741 cat confdefs.h >>conftest.$ac_ext
13742 cat >>conftest.$ac_ext <<_ACEOF
13743 /* end confdefs.h. */
13744 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13745 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13746 #define $ac_func innocuous_$ac_func
13748 /* System header to define __stub macros and hopefully few prototypes,
13749 which can conflict with char $ac_func (); below.
13750 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13751 <limits.h> exists even on freestanding compilers. */
13753 #ifdef __STDC__
13754 # include <limits.h>
13755 #else
13756 # include <assert.h>
13757 #endif
13759 #undef $ac_func
13761 /* Override any GCC internal prototype to avoid an error.
13762 Use char because int might match the return type of a GCC
13763 builtin and then its argument prototype would still apply. */
13764 #ifdef __cplusplus
13765 extern "C"
13766 #endif
13767 char $ac_func ();
13768 /* The GNU C library defines this for functions which it implements
13769 to always fail with ENOSYS. Some functions are actually named
13770 something starting with __ and the normal name is an alias. */
13771 #if defined __stub_$ac_func || defined __stub___$ac_func
13772 choke me
13773 #endif
13776 main ()
13778 return $ac_func ();
13780 return 0;
13782 _ACEOF
13783 rm -f conftest.$ac_objext conftest$ac_exeext
13784 if { (ac_try="$ac_link"
13785 case "(($ac_try" in
13786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13787 *) ac_try_echo=$ac_try;;
13788 esac
13789 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13790 $as_echo "$ac_try_echo") >&5
13791 (eval "$ac_link") 2>conftest.er1
13792 ac_status=$?
13793 grep -v '^ *+' conftest.er1 >conftest.err
13794 rm -f conftest.er1
13795 cat conftest.err >&5
13796 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13797 (exit $ac_status); } && {
13798 test -z "$ac_c_werror_flag" ||
13799 test ! -s conftest.err
13800 } && test -s conftest$ac_exeext && {
13801 test "$cross_compiling" = yes ||
13802 $as_test_x conftest$ac_exeext
13803 }; then
13804 eval "$as_ac_var=yes"
13805 else
13806 $as_echo "$as_me: failed program was:" >&5
13807 sed 's/^/| /' conftest.$ac_ext >&5
13809 eval "$as_ac_var=no"
13812 rm -rf conftest.dSYM
13813 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13814 conftest$ac_exeext conftest.$ac_ext
13816 ac_res=`eval 'as_val=${'$as_ac_var'}
13817 $as_echo "$as_val"'`
13818 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13819 $as_echo "$ac_res" >&6; }
13820 if test `eval 'as_val=${'$as_ac_var'}
13821 $as_echo "$as_val"'` = yes; then
13822 cat >>confdefs.h <<_ACEOF
13823 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13824 _ACEOF
13827 done
13830 { $as_echo "$as_me:$LINENO: checking for st_blksize" >&5
13831 $as_echo_n "checking for st_blksize... " >&6; }
13832 cat >conftest.$ac_ext <<_ACEOF
13833 /* confdefs.h. */
13834 _ACEOF
13835 cat confdefs.h >>conftest.$ac_ext
13836 cat >>conftest.$ac_ext <<_ACEOF
13837 /* end confdefs.h. */
13838 #include <sys/types.h>
13839 #include <sys/stat.h>
13841 main ()
13843 struct stat st;
13844 int n;
13846 stat("/", &st);
13847 n = (int)st.st_blksize;
13849 return 0;
13851 _ACEOF
13852 rm -f conftest.$ac_objext
13853 if { (ac_try="$ac_compile"
13854 case "(($ac_try" in
13855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13856 *) ac_try_echo=$ac_try;;
13857 esac
13858 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13859 $as_echo "$ac_try_echo") >&5
13860 (eval "$ac_compile") 2>conftest.er1
13861 ac_status=$?
13862 grep -v '^ *+' conftest.er1 >conftest.err
13863 rm -f conftest.er1
13864 cat conftest.err >&5
13865 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13866 (exit $ac_status); } && {
13867 test -z "$ac_c_werror_flag" ||
13868 test ! -s conftest.err
13869 } && test -s conftest.$ac_objext; then
13870 { $as_echo "$as_me:$LINENO: result: yes" >&5
13871 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13872 #define HAVE_ST_BLKSIZE 1
13873 _ACEOF
13875 else
13876 $as_echo "$as_me: failed program was:" >&5
13877 sed 's/^/| /' conftest.$ac_ext >&5
13879 { $as_echo "$as_me:$LINENO: result: no" >&5
13880 $as_echo "no" >&6; }
13883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13885 { $as_echo "$as_me:$LINENO: checking whether stat() ignores a trailing slash" >&5
13886 $as_echo_n "checking whether stat() ignores a trailing slash... " >&6; }
13887 if test "${vim_cv_stat_ignores_slash+set}" = set; then
13888 $as_echo_n "(cached) " >&6
13889 else
13891 if test "$cross_compiling" = yes; then
13893 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_stat_ignores_slash'" >&5
13894 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_stat_ignores_slash'" >&2;}
13895 { (exit 1); exit 1; }; }
13897 else
13898 cat >conftest.$ac_ext <<_ACEOF
13900 #include "confdefs.h"
13901 #if STDC_HEADERS
13902 # include <stdlib.h>
13903 # include <stddef.h>
13904 #endif
13905 #include <sys/types.h>
13906 #include <sys/stat.h>
13907 main() {struct stat st; exit(stat("configure/", &st) != 0); }
13909 _ACEOF
13910 rm -f conftest$ac_exeext
13911 if { (ac_try="$ac_link"
13912 case "(($ac_try" in
13913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13914 *) ac_try_echo=$ac_try;;
13915 esac
13916 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13917 $as_echo "$ac_try_echo") >&5
13918 (eval "$ac_link") 2>&5
13919 ac_status=$?
13920 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13921 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13922 { (case "(($ac_try" in
13923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13924 *) ac_try_echo=$ac_try;;
13925 esac
13926 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13927 $as_echo "$ac_try_echo") >&5
13928 (eval "$ac_try") 2>&5
13929 ac_status=$?
13930 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13931 (exit $ac_status); }; }; then
13933 vim_cv_stat_ignores_slash=yes
13935 else
13936 $as_echo "$as_me: program exited with status $ac_status" >&5
13937 $as_echo "$as_me: failed program was:" >&5
13938 sed 's/^/| /' conftest.$ac_ext >&5
13940 ( exit $ac_status )
13942 vim_cv_stat_ignores_slash=no
13945 rm -rf conftest.dSYM
13946 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13952 { $as_echo "$as_me:$LINENO: result: $vim_cv_stat_ignores_slash" >&5
13953 $as_echo "$vim_cv_stat_ignores_slash" >&6; }
13955 if test "x$vim_cv_stat_ignores_slash" = "xyes" ; then
13956 cat >>confdefs.h <<\_ACEOF
13957 #define STAT_IGNORES_SLASH 1
13958 _ACEOF
13962 { $as_echo "$as_me:$LINENO: checking for iconv_open()" >&5
13963 $as_echo_n "checking for iconv_open()... " >&6; }
13964 save_LIBS="$LIBS"
13965 LIBS="$LIBS -liconv"
13966 cat >conftest.$ac_ext <<_ACEOF
13967 /* confdefs.h. */
13968 _ACEOF
13969 cat confdefs.h >>conftest.$ac_ext
13970 cat >>conftest.$ac_ext <<_ACEOF
13971 /* end confdefs.h. */
13973 #ifdef HAVE_ICONV_H
13974 # include <iconv.h>
13975 #endif
13978 main ()
13980 iconv_open("fr", "to");
13982 return 0;
13984 _ACEOF
13985 rm -f conftest.$ac_objext conftest$ac_exeext
13986 if { (ac_try="$ac_link"
13987 case "(($ac_try" in
13988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13989 *) ac_try_echo=$ac_try;;
13990 esac
13991 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13992 $as_echo "$ac_try_echo") >&5
13993 (eval "$ac_link") 2>conftest.er1
13994 ac_status=$?
13995 grep -v '^ *+' conftest.er1 >conftest.err
13996 rm -f conftest.er1
13997 cat conftest.err >&5
13998 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13999 (exit $ac_status); } && {
14000 test -z "$ac_c_werror_flag" ||
14001 test ! -s conftest.err
14002 } && test -s conftest$ac_exeext && {
14003 test "$cross_compiling" = yes ||
14004 $as_test_x conftest$ac_exeext
14005 }; then
14006 { $as_echo "$as_me:$LINENO: result: yes; with -liconv" >&5
14007 $as_echo "yes; with -liconv" >&6; }; cat >>confdefs.h <<\_ACEOF
14008 #define HAVE_ICONV 1
14009 _ACEOF
14011 else
14012 $as_echo "$as_me: failed program was:" >&5
14013 sed 's/^/| /' conftest.$ac_ext >&5
14015 LIBS="$save_LIBS"
14016 cat >conftest.$ac_ext <<_ACEOF
14017 /* confdefs.h. */
14018 _ACEOF
14019 cat confdefs.h >>conftest.$ac_ext
14020 cat >>conftest.$ac_ext <<_ACEOF
14021 /* end confdefs.h. */
14023 #ifdef HAVE_ICONV_H
14024 # include <iconv.h>
14025 #endif
14028 main ()
14030 iconv_open("fr", "to");
14032 return 0;
14034 _ACEOF
14035 rm -f conftest.$ac_objext conftest$ac_exeext
14036 if { (ac_try="$ac_link"
14037 case "(($ac_try" in
14038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14039 *) ac_try_echo=$ac_try;;
14040 esac
14041 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14042 $as_echo "$ac_try_echo") >&5
14043 (eval "$ac_link") 2>conftest.er1
14044 ac_status=$?
14045 grep -v '^ *+' conftest.er1 >conftest.err
14046 rm -f conftest.er1
14047 cat conftest.err >&5
14048 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14049 (exit $ac_status); } && {
14050 test -z "$ac_c_werror_flag" ||
14051 test ! -s conftest.err
14052 } && test -s conftest$ac_exeext && {
14053 test "$cross_compiling" = yes ||
14054 $as_test_x conftest$ac_exeext
14055 }; then
14056 { $as_echo "$as_me:$LINENO: result: yes" >&5
14057 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14058 #define HAVE_ICONV 1
14059 _ACEOF
14061 else
14062 $as_echo "$as_me: failed program was:" >&5
14063 sed 's/^/| /' conftest.$ac_ext >&5
14065 { $as_echo "$as_me:$LINENO: result: no" >&5
14066 $as_echo "no" >&6; }
14069 rm -rf conftest.dSYM
14070 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14071 conftest$ac_exeext conftest.$ac_ext
14074 rm -rf conftest.dSYM
14075 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14076 conftest$ac_exeext conftest.$ac_ext
14079 { $as_echo "$as_me:$LINENO: checking for nl_langinfo(CODESET)" >&5
14080 $as_echo_n "checking for nl_langinfo(CODESET)... " >&6; }
14081 cat >conftest.$ac_ext <<_ACEOF
14082 /* confdefs.h. */
14083 _ACEOF
14084 cat confdefs.h >>conftest.$ac_ext
14085 cat >>conftest.$ac_ext <<_ACEOF
14086 /* end confdefs.h. */
14088 #ifdef HAVE_LANGINFO_H
14089 # include <langinfo.h>
14090 #endif
14093 main ()
14095 char *cs = nl_langinfo(CODESET);
14097 return 0;
14099 _ACEOF
14100 rm -f conftest.$ac_objext conftest$ac_exeext
14101 if { (ac_try="$ac_link"
14102 case "(($ac_try" in
14103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14104 *) ac_try_echo=$ac_try;;
14105 esac
14106 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14107 $as_echo "$ac_try_echo") >&5
14108 (eval "$ac_link") 2>conftest.er1
14109 ac_status=$?
14110 grep -v '^ *+' conftest.er1 >conftest.err
14111 rm -f conftest.er1
14112 cat conftest.err >&5
14113 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14114 (exit $ac_status); } && {
14115 test -z "$ac_c_werror_flag" ||
14116 test ! -s conftest.err
14117 } && test -s conftest$ac_exeext && {
14118 test "$cross_compiling" = yes ||
14119 $as_test_x conftest$ac_exeext
14120 }; then
14121 { $as_echo "$as_me:$LINENO: result: yes" >&5
14122 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14123 #define HAVE_NL_LANGINFO_CODESET 1
14124 _ACEOF
14126 else
14127 $as_echo "$as_me: failed program was:" >&5
14128 sed 's/^/| /' conftest.$ac_ext >&5
14130 { $as_echo "$as_me:$LINENO: result: no" >&5
14131 $as_echo "no" >&6; }
14134 rm -rf conftest.dSYM
14135 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14136 conftest$ac_exeext conftest.$ac_ext
14139 { $as_echo "$as_me:$LINENO: checking for strtod in -lm" >&5
14140 $as_echo_n "checking for strtod in -lm... " >&6; }
14141 if test "${ac_cv_lib_m_strtod+set}" = set; then
14142 $as_echo_n "(cached) " >&6
14143 else
14144 ac_check_lib_save_LIBS=$LIBS
14145 LIBS="-lm $LIBS"
14146 cat >conftest.$ac_ext <<_ACEOF
14147 /* confdefs.h. */
14148 _ACEOF
14149 cat confdefs.h >>conftest.$ac_ext
14150 cat >>conftest.$ac_ext <<_ACEOF
14151 /* end confdefs.h. */
14153 /* Override any GCC internal prototype to avoid an error.
14154 Use char because int might match the return type of a GCC
14155 builtin and then its argument prototype would still apply. */
14156 #ifdef __cplusplus
14157 extern "C"
14158 #endif
14159 char strtod ();
14161 main ()
14163 return strtod ();
14165 return 0;
14167 _ACEOF
14168 rm -f conftest.$ac_objext conftest$ac_exeext
14169 if { (ac_try="$ac_link"
14170 case "(($ac_try" in
14171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14172 *) ac_try_echo=$ac_try;;
14173 esac
14174 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14175 $as_echo "$ac_try_echo") >&5
14176 (eval "$ac_link") 2>conftest.er1
14177 ac_status=$?
14178 grep -v '^ *+' conftest.er1 >conftest.err
14179 rm -f conftest.er1
14180 cat conftest.err >&5
14181 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14182 (exit $ac_status); } && {
14183 test -z "$ac_c_werror_flag" ||
14184 test ! -s conftest.err
14185 } && test -s conftest$ac_exeext && {
14186 test "$cross_compiling" = yes ||
14187 $as_test_x conftest$ac_exeext
14188 }; then
14189 ac_cv_lib_m_strtod=yes
14190 else
14191 $as_echo "$as_me: failed program was:" >&5
14192 sed 's/^/| /' conftest.$ac_ext >&5
14194 ac_cv_lib_m_strtod=no
14197 rm -rf conftest.dSYM
14198 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14199 conftest$ac_exeext conftest.$ac_ext
14200 LIBS=$ac_check_lib_save_LIBS
14202 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_strtod" >&5
14203 $as_echo "$ac_cv_lib_m_strtod" >&6; }
14204 if test $ac_cv_lib_m_strtod = yes; then
14205 cat >>confdefs.h <<_ACEOF
14206 #define HAVE_LIBM 1
14207 _ACEOF
14209 LIBS="-lm $LIBS"
14213 { $as_echo "$as_me:$LINENO: checking for strtod() and other floating point functions" >&5
14214 $as_echo_n "checking for strtod() and other floating point functions... " >&6; }
14215 cat >conftest.$ac_ext <<_ACEOF
14216 /* confdefs.h. */
14217 _ACEOF
14218 cat confdefs.h >>conftest.$ac_ext
14219 cat >>conftest.$ac_ext <<_ACEOF
14220 /* end confdefs.h. */
14222 #ifdef HAVE_MATH_H
14223 # include <math.h>
14224 #endif
14225 #if STDC_HEADERS
14226 # include <stdlib.h>
14227 # include <stddef.h>
14228 #endif
14231 main ()
14233 char *s; double d;
14234 d = strtod("1.1", &s);
14235 d = fabs(1.11);
14236 d = ceil(1.11);
14237 d = floor(1.11);
14238 d = log10(1.11);
14239 d = pow(1.11, 2.22);
14240 d = sqrt(1.11);
14241 d = sin(1.11);
14242 d = cos(1.11);
14243 d = atan(1.11);
14246 return 0;
14248 _ACEOF
14249 rm -f conftest.$ac_objext conftest$ac_exeext
14250 if { (ac_try="$ac_link"
14251 case "(($ac_try" in
14252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14253 *) ac_try_echo=$ac_try;;
14254 esac
14255 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14256 $as_echo "$ac_try_echo") >&5
14257 (eval "$ac_link") 2>conftest.er1
14258 ac_status=$?
14259 grep -v '^ *+' conftest.er1 >conftest.err
14260 rm -f conftest.er1
14261 cat conftest.err >&5
14262 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14263 (exit $ac_status); } && {
14264 test -z "$ac_c_werror_flag" ||
14265 test ! -s conftest.err
14266 } && test -s conftest$ac_exeext && {
14267 test "$cross_compiling" = yes ||
14268 $as_test_x conftest$ac_exeext
14269 }; then
14270 { $as_echo "$as_me:$LINENO: result: yes" >&5
14271 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14272 #define HAVE_FLOAT_FUNCS 1
14273 _ACEOF
14275 else
14276 $as_echo "$as_me: failed program was:" >&5
14277 sed 's/^/| /' conftest.$ac_ext >&5
14279 { $as_echo "$as_me:$LINENO: result: no" >&5
14280 $as_echo "no" >&6; }
14283 rm -rf conftest.dSYM
14284 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14285 conftest$ac_exeext conftest.$ac_ext
14287 { $as_echo "$as_me:$LINENO: checking --disable-acl argument" >&5
14288 $as_echo_n "checking --disable-acl argument... " >&6; }
14289 # Check whether --enable-acl was given.
14290 if test "${enable_acl+set}" = set; then
14291 enableval=$enable_acl;
14292 else
14293 enable_acl="yes"
14296 if test "$enable_acl" = "yes"; then
14297 { $as_echo "$as_me:$LINENO: result: no" >&5
14298 $as_echo "no" >&6; }
14299 { $as_echo "$as_me:$LINENO: checking for acl_get_file in -lposix1e" >&5
14300 $as_echo_n "checking for acl_get_file in -lposix1e... " >&6; }
14301 if test "${ac_cv_lib_posix1e_acl_get_file+set}" = set; then
14302 $as_echo_n "(cached) " >&6
14303 else
14304 ac_check_lib_save_LIBS=$LIBS
14305 LIBS="-lposix1e $LIBS"
14306 cat >conftest.$ac_ext <<_ACEOF
14307 /* confdefs.h. */
14308 _ACEOF
14309 cat confdefs.h >>conftest.$ac_ext
14310 cat >>conftest.$ac_ext <<_ACEOF
14311 /* end confdefs.h. */
14313 /* Override any GCC internal prototype to avoid an error.
14314 Use char because int might match the return type of a GCC
14315 builtin and then its argument prototype would still apply. */
14316 #ifdef __cplusplus
14317 extern "C"
14318 #endif
14319 char acl_get_file ();
14321 main ()
14323 return acl_get_file ();
14325 return 0;
14327 _ACEOF
14328 rm -f conftest.$ac_objext conftest$ac_exeext
14329 if { (ac_try="$ac_link"
14330 case "(($ac_try" in
14331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14332 *) ac_try_echo=$ac_try;;
14333 esac
14334 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14335 $as_echo "$ac_try_echo") >&5
14336 (eval "$ac_link") 2>conftest.er1
14337 ac_status=$?
14338 grep -v '^ *+' conftest.er1 >conftest.err
14339 rm -f conftest.er1
14340 cat conftest.err >&5
14341 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14342 (exit $ac_status); } && {
14343 test -z "$ac_c_werror_flag" ||
14344 test ! -s conftest.err
14345 } && test -s conftest$ac_exeext && {
14346 test "$cross_compiling" = yes ||
14347 $as_test_x conftest$ac_exeext
14348 }; then
14349 ac_cv_lib_posix1e_acl_get_file=yes
14350 else
14351 $as_echo "$as_me: failed program was:" >&5
14352 sed 's/^/| /' conftest.$ac_ext >&5
14354 ac_cv_lib_posix1e_acl_get_file=no
14357 rm -rf conftest.dSYM
14358 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14359 conftest$ac_exeext conftest.$ac_ext
14360 LIBS=$ac_check_lib_save_LIBS
14362 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix1e_acl_get_file" >&5
14363 $as_echo "$ac_cv_lib_posix1e_acl_get_file" >&6; }
14364 if test $ac_cv_lib_posix1e_acl_get_file = yes; then
14365 LIBS="$LIBS -lposix1e"
14366 else
14367 { $as_echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
14368 $as_echo_n "checking for acl_get_file in -lacl... " >&6; }
14369 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
14370 $as_echo_n "(cached) " >&6
14371 else
14372 ac_check_lib_save_LIBS=$LIBS
14373 LIBS="-lacl $LIBS"
14374 cat >conftest.$ac_ext <<_ACEOF
14375 /* confdefs.h. */
14376 _ACEOF
14377 cat confdefs.h >>conftest.$ac_ext
14378 cat >>conftest.$ac_ext <<_ACEOF
14379 /* end confdefs.h. */
14381 /* Override any GCC internal prototype to avoid an error.
14382 Use char because int might match the return type of a GCC
14383 builtin and then its argument prototype would still apply. */
14384 #ifdef __cplusplus
14385 extern "C"
14386 #endif
14387 char acl_get_file ();
14389 main ()
14391 return acl_get_file ();
14393 return 0;
14395 _ACEOF
14396 rm -f conftest.$ac_objext conftest$ac_exeext
14397 if { (ac_try="$ac_link"
14398 case "(($ac_try" in
14399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14400 *) ac_try_echo=$ac_try;;
14401 esac
14402 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14403 $as_echo "$ac_try_echo") >&5
14404 (eval "$ac_link") 2>conftest.er1
14405 ac_status=$?
14406 grep -v '^ *+' conftest.er1 >conftest.err
14407 rm -f conftest.er1
14408 cat conftest.err >&5
14409 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14410 (exit $ac_status); } && {
14411 test -z "$ac_c_werror_flag" ||
14412 test ! -s conftest.err
14413 } && test -s conftest$ac_exeext && {
14414 test "$cross_compiling" = yes ||
14415 $as_test_x conftest$ac_exeext
14416 }; then
14417 ac_cv_lib_acl_acl_get_file=yes
14418 else
14419 $as_echo "$as_me: failed program was:" >&5
14420 sed 's/^/| /' conftest.$ac_ext >&5
14422 ac_cv_lib_acl_acl_get_file=no
14425 rm -rf conftest.dSYM
14426 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14427 conftest$ac_exeext conftest.$ac_ext
14428 LIBS=$ac_check_lib_save_LIBS
14430 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
14431 $as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
14432 if test $ac_cv_lib_acl_acl_get_file = yes; then
14433 LIBS="$LIBS -lacl"
14434 { $as_echo "$as_me:$LINENO: checking for fgetxattr in -lattr" >&5
14435 $as_echo_n "checking for fgetxattr in -lattr... " >&6; }
14436 if test "${ac_cv_lib_attr_fgetxattr+set}" = set; then
14437 $as_echo_n "(cached) " >&6
14438 else
14439 ac_check_lib_save_LIBS=$LIBS
14440 LIBS="-lattr $LIBS"
14441 cat >conftest.$ac_ext <<_ACEOF
14442 /* confdefs.h. */
14443 _ACEOF
14444 cat confdefs.h >>conftest.$ac_ext
14445 cat >>conftest.$ac_ext <<_ACEOF
14446 /* end confdefs.h. */
14448 /* Override any GCC internal prototype to avoid an error.
14449 Use char because int might match the return type of a GCC
14450 builtin and then its argument prototype would still apply. */
14451 #ifdef __cplusplus
14452 extern "C"
14453 #endif
14454 char fgetxattr ();
14456 main ()
14458 return fgetxattr ();
14460 return 0;
14462 _ACEOF
14463 rm -f conftest.$ac_objext conftest$ac_exeext
14464 if { (ac_try="$ac_link"
14465 case "(($ac_try" in
14466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14467 *) ac_try_echo=$ac_try;;
14468 esac
14469 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14470 $as_echo "$ac_try_echo") >&5
14471 (eval "$ac_link") 2>conftest.er1
14472 ac_status=$?
14473 grep -v '^ *+' conftest.er1 >conftest.err
14474 rm -f conftest.er1
14475 cat conftest.err >&5
14476 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14477 (exit $ac_status); } && {
14478 test -z "$ac_c_werror_flag" ||
14479 test ! -s conftest.err
14480 } && test -s conftest$ac_exeext && {
14481 test "$cross_compiling" = yes ||
14482 $as_test_x conftest$ac_exeext
14483 }; then
14484 ac_cv_lib_attr_fgetxattr=yes
14485 else
14486 $as_echo "$as_me: failed program was:" >&5
14487 sed 's/^/| /' conftest.$ac_ext >&5
14489 ac_cv_lib_attr_fgetxattr=no
14492 rm -rf conftest.dSYM
14493 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14494 conftest$ac_exeext conftest.$ac_ext
14495 LIBS=$ac_check_lib_save_LIBS
14497 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_attr_fgetxattr" >&5
14498 $as_echo "$ac_cv_lib_attr_fgetxattr" >&6; }
14499 if test $ac_cv_lib_attr_fgetxattr = yes; then
14500 LIBS="$LIBS -lattr"
14508 { $as_echo "$as_me:$LINENO: checking for POSIX ACL support" >&5
14509 $as_echo_n "checking for POSIX ACL support... " >&6; }
14510 cat >conftest.$ac_ext <<_ACEOF
14511 /* confdefs.h. */
14512 _ACEOF
14513 cat confdefs.h >>conftest.$ac_ext
14514 cat >>conftest.$ac_ext <<_ACEOF
14515 /* end confdefs.h. */
14517 #include <sys/types.h>
14518 #ifdef HAVE_SYS_ACL_H
14519 # include <sys/acl.h>
14520 #endif
14521 acl_t acl;
14523 main ()
14525 acl = acl_get_file("foo", ACL_TYPE_ACCESS);
14526 acl_set_file("foo", ACL_TYPE_ACCESS, acl);
14527 acl_free(acl);
14529 return 0;
14531 _ACEOF
14532 rm -f conftest.$ac_objext conftest$ac_exeext
14533 if { (ac_try="$ac_link"
14534 case "(($ac_try" in
14535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14536 *) ac_try_echo=$ac_try;;
14537 esac
14538 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14539 $as_echo "$ac_try_echo") >&5
14540 (eval "$ac_link") 2>conftest.er1
14541 ac_status=$?
14542 grep -v '^ *+' conftest.er1 >conftest.err
14543 rm -f conftest.er1
14544 cat conftest.err >&5
14545 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14546 (exit $ac_status); } && {
14547 test -z "$ac_c_werror_flag" ||
14548 test ! -s conftest.err
14549 } && test -s conftest$ac_exeext && {
14550 test "$cross_compiling" = yes ||
14551 $as_test_x conftest$ac_exeext
14552 }; then
14553 { $as_echo "$as_me:$LINENO: result: yes" >&5
14554 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14555 #define HAVE_POSIX_ACL 1
14556 _ACEOF
14558 else
14559 $as_echo "$as_me: failed program was:" >&5
14560 sed 's/^/| /' conftest.$ac_ext >&5
14562 { $as_echo "$as_me:$LINENO: result: no" >&5
14563 $as_echo "no" >&6; }
14566 rm -rf conftest.dSYM
14567 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14568 conftest$ac_exeext conftest.$ac_ext
14570 { $as_echo "$as_me:$LINENO: checking for Solaris ACL support" >&5
14571 $as_echo_n "checking for Solaris ACL support... " >&6; }
14572 cat >conftest.$ac_ext <<_ACEOF
14573 /* confdefs.h. */
14574 _ACEOF
14575 cat confdefs.h >>conftest.$ac_ext
14576 cat >>conftest.$ac_ext <<_ACEOF
14577 /* end confdefs.h. */
14579 #ifdef HAVE_SYS_ACL_H
14580 # include <sys/acl.h>
14581 #endif
14583 main ()
14585 acl("foo", GETACLCNT, 0, NULL);
14588 return 0;
14590 _ACEOF
14591 rm -f conftest.$ac_objext conftest$ac_exeext
14592 if { (ac_try="$ac_link"
14593 case "(($ac_try" in
14594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14595 *) ac_try_echo=$ac_try;;
14596 esac
14597 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14598 $as_echo "$ac_try_echo") >&5
14599 (eval "$ac_link") 2>conftest.er1
14600 ac_status=$?
14601 grep -v '^ *+' conftest.er1 >conftest.err
14602 rm -f conftest.er1
14603 cat conftest.err >&5
14604 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14605 (exit $ac_status); } && {
14606 test -z "$ac_c_werror_flag" ||
14607 test ! -s conftest.err
14608 } && test -s conftest$ac_exeext && {
14609 test "$cross_compiling" = yes ||
14610 $as_test_x conftest$ac_exeext
14611 }; then
14612 { $as_echo "$as_me:$LINENO: result: yes" >&5
14613 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14614 #define HAVE_SOLARIS_ACL 1
14615 _ACEOF
14617 else
14618 $as_echo "$as_me: failed program was:" >&5
14619 sed 's/^/| /' conftest.$ac_ext >&5
14621 { $as_echo "$as_me:$LINENO: result: no" >&5
14622 $as_echo "no" >&6; }
14625 rm -rf conftest.dSYM
14626 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14627 conftest$ac_exeext conftest.$ac_ext
14629 { $as_echo "$as_me:$LINENO: checking for AIX ACL support" >&5
14630 $as_echo_n "checking for AIX ACL support... " >&6; }
14631 cat >conftest.$ac_ext <<_ACEOF
14632 /* confdefs.h. */
14633 _ACEOF
14634 cat confdefs.h >>conftest.$ac_ext
14635 cat >>conftest.$ac_ext <<_ACEOF
14636 /* end confdefs.h. */
14638 #if STDC_HEADERS
14639 # include <stdlib.h>
14640 # include <stddef.h>
14641 #endif
14642 #ifdef HAVE_SYS_ACL_H
14643 # include <sys/acl.h>
14644 #endif
14645 #ifdef HAVE_SYS_ACCESS_H
14646 # include <sys/access.h>
14647 #endif
14648 #define _ALL_SOURCE
14650 #include <sys/stat.h>
14652 int aclsize;
14653 struct acl *aclent;
14655 main ()
14657 aclsize = sizeof(struct acl);
14658 aclent = (void *)malloc(aclsize);
14659 statacl("foo", STX_NORMAL, aclent, aclsize);
14662 return 0;
14664 _ACEOF
14665 rm -f conftest.$ac_objext conftest$ac_exeext
14666 if { (ac_try="$ac_link"
14667 case "(($ac_try" in
14668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14669 *) ac_try_echo=$ac_try;;
14670 esac
14671 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14672 $as_echo "$ac_try_echo") >&5
14673 (eval "$ac_link") 2>conftest.er1
14674 ac_status=$?
14675 grep -v '^ *+' conftest.er1 >conftest.err
14676 rm -f conftest.er1
14677 cat conftest.err >&5
14678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14679 (exit $ac_status); } && {
14680 test -z "$ac_c_werror_flag" ||
14681 test ! -s conftest.err
14682 } && test -s conftest$ac_exeext && {
14683 test "$cross_compiling" = yes ||
14684 $as_test_x conftest$ac_exeext
14685 }; then
14686 { $as_echo "$as_me:$LINENO: result: yes" >&5
14687 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14688 #define HAVE_AIX_ACL 1
14689 _ACEOF
14691 else
14692 $as_echo "$as_me: failed program was:" >&5
14693 sed 's/^/| /' conftest.$ac_ext >&5
14695 { $as_echo "$as_me:$LINENO: result: no" >&5
14696 $as_echo "no" >&6; }
14699 rm -rf conftest.dSYM
14700 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14701 conftest$ac_exeext conftest.$ac_ext
14702 else
14703 { $as_echo "$as_me:$LINENO: result: yes" >&5
14704 $as_echo "yes" >&6; }
14707 { $as_echo "$as_me:$LINENO: checking --disable-gpm argument" >&5
14708 $as_echo_n "checking --disable-gpm argument... " >&6; }
14709 # Check whether --enable-gpm was given.
14710 if test "${enable_gpm+set}" = set; then
14711 enableval=$enable_gpm;
14712 else
14713 enable_gpm="yes"
14717 if test "$enable_gpm" = "yes"; then
14718 { $as_echo "$as_me:$LINENO: result: no" >&5
14719 $as_echo "no" >&6; }
14720 { $as_echo "$as_me:$LINENO: checking for gpm" >&5
14721 $as_echo_n "checking for gpm... " >&6; }
14722 if test "${vi_cv_have_gpm+set}" = set; then
14723 $as_echo_n "(cached) " >&6
14724 else
14725 olibs="$LIBS" ; LIBS="-lgpm"
14726 cat >conftest.$ac_ext <<_ACEOF
14727 /* confdefs.h. */
14728 _ACEOF
14729 cat confdefs.h >>conftest.$ac_ext
14730 cat >>conftest.$ac_ext <<_ACEOF
14731 /* end confdefs.h. */
14732 #include <gpm.h>
14733 #include <linux/keyboard.h>
14735 main ()
14737 Gpm_GetLibVersion(NULL);
14739 return 0;
14741 _ACEOF
14742 rm -f conftest.$ac_objext conftest$ac_exeext
14743 if { (ac_try="$ac_link"
14744 case "(($ac_try" in
14745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14746 *) ac_try_echo=$ac_try;;
14747 esac
14748 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14749 $as_echo "$ac_try_echo") >&5
14750 (eval "$ac_link") 2>conftest.er1
14751 ac_status=$?
14752 grep -v '^ *+' conftest.er1 >conftest.err
14753 rm -f conftest.er1
14754 cat conftest.err >&5
14755 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14756 (exit $ac_status); } && {
14757 test -z "$ac_c_werror_flag" ||
14758 test ! -s conftest.err
14759 } && test -s conftest$ac_exeext && {
14760 test "$cross_compiling" = yes ||
14761 $as_test_x conftest$ac_exeext
14762 }; then
14763 vi_cv_have_gpm=yes
14764 else
14765 $as_echo "$as_me: failed program was:" >&5
14766 sed 's/^/| /' conftest.$ac_ext >&5
14768 vi_cv_have_gpm=no
14771 rm -rf conftest.dSYM
14772 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14773 conftest$ac_exeext conftest.$ac_ext
14774 LIBS="$olibs"
14777 { $as_echo "$as_me:$LINENO: result: $vi_cv_have_gpm" >&5
14778 $as_echo "$vi_cv_have_gpm" >&6; }
14779 if test $vi_cv_have_gpm = yes; then
14780 LIBS="$LIBS -lgpm"
14781 cat >>confdefs.h <<\_ACEOF
14782 #define HAVE_GPM 1
14783 _ACEOF
14786 else
14787 { $as_echo "$as_me:$LINENO: result: yes" >&5
14788 $as_echo "yes" >&6; }
14791 { $as_echo "$as_me:$LINENO: checking --disable-sysmouse argument" >&5
14792 $as_echo_n "checking --disable-sysmouse argument... " >&6; }
14793 # Check whether --enable-sysmouse was given.
14794 if test "${enable_sysmouse+set}" = set; then
14795 enableval=$enable_sysmouse;
14796 else
14797 enable_sysmouse="yes"
14801 if test "$enable_sysmouse" = "yes"; then
14802 { $as_echo "$as_me:$LINENO: result: no" >&5
14803 $as_echo "no" >&6; }
14804 { $as_echo "$as_me:$LINENO: checking for sysmouse" >&5
14805 $as_echo_n "checking for sysmouse... " >&6; }
14806 if test "${vi_cv_have_sysmouse+set}" = set; then
14807 $as_echo_n "(cached) " >&6
14808 else
14809 cat >conftest.$ac_ext <<_ACEOF
14810 /* confdefs.h. */
14811 _ACEOF
14812 cat confdefs.h >>conftest.$ac_ext
14813 cat >>conftest.$ac_ext <<_ACEOF
14814 /* end confdefs.h. */
14815 #include <sys/consio.h>
14816 #include <signal.h>
14817 #include <sys/fbio.h>
14819 main ()
14821 struct mouse_info mouse;
14822 mouse.operation = MOUSE_MODE;
14823 mouse.operation = MOUSE_SHOW;
14824 mouse.u.mode.mode = 0;
14825 mouse.u.mode.signal = SIGUSR2;
14827 return 0;
14829 _ACEOF
14830 rm -f conftest.$ac_objext conftest$ac_exeext
14831 if { (ac_try="$ac_link"
14832 case "(($ac_try" in
14833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14834 *) ac_try_echo=$ac_try;;
14835 esac
14836 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14837 $as_echo "$ac_try_echo") >&5
14838 (eval "$ac_link") 2>conftest.er1
14839 ac_status=$?
14840 grep -v '^ *+' conftest.er1 >conftest.err
14841 rm -f conftest.er1
14842 cat conftest.err >&5
14843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14844 (exit $ac_status); } && {
14845 test -z "$ac_c_werror_flag" ||
14846 test ! -s conftest.err
14847 } && test -s conftest$ac_exeext && {
14848 test "$cross_compiling" = yes ||
14849 $as_test_x conftest$ac_exeext
14850 }; then
14851 vi_cv_have_sysmouse=yes
14852 else
14853 $as_echo "$as_me: failed program was:" >&5
14854 sed 's/^/| /' conftest.$ac_ext >&5
14856 vi_cv_have_sysmouse=no
14859 rm -rf conftest.dSYM
14860 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14861 conftest$ac_exeext conftest.$ac_ext
14864 { $as_echo "$as_me:$LINENO: result: $vi_cv_have_sysmouse" >&5
14865 $as_echo "$vi_cv_have_sysmouse" >&6; }
14866 if test $vi_cv_have_sysmouse = yes; then
14867 cat >>confdefs.h <<\_ACEOF
14868 #define HAVE_SYSMOUSE 1
14869 _ACEOF
14872 else
14873 { $as_echo "$as_me:$LINENO: result: yes" >&5
14874 $as_echo "yes" >&6; }
14877 { $as_echo "$as_me:$LINENO: checking for rename" >&5
14878 $as_echo_n "checking for rename... " >&6; }
14879 cat >conftest.$ac_ext <<_ACEOF
14880 /* confdefs.h. */
14881 _ACEOF
14882 cat confdefs.h >>conftest.$ac_ext
14883 cat >>conftest.$ac_ext <<_ACEOF
14884 /* end confdefs.h. */
14885 #include <stdio.h>
14887 main ()
14889 rename("this", "that")
14891 return 0;
14893 _ACEOF
14894 rm -f conftest.$ac_objext conftest$ac_exeext
14895 if { (ac_try="$ac_link"
14896 case "(($ac_try" in
14897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14898 *) ac_try_echo=$ac_try;;
14899 esac
14900 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14901 $as_echo "$ac_try_echo") >&5
14902 (eval "$ac_link") 2>conftest.er1
14903 ac_status=$?
14904 grep -v '^ *+' conftest.er1 >conftest.err
14905 rm -f conftest.er1
14906 cat conftest.err >&5
14907 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14908 (exit $ac_status); } && {
14909 test -z "$ac_c_werror_flag" ||
14910 test ! -s conftest.err
14911 } && test -s conftest$ac_exeext && {
14912 test "$cross_compiling" = yes ||
14913 $as_test_x conftest$ac_exeext
14914 }; then
14915 { $as_echo "$as_me:$LINENO: result: yes" >&5
14916 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14917 #define HAVE_RENAME 1
14918 _ACEOF
14920 else
14921 $as_echo "$as_me: failed program was:" >&5
14922 sed 's/^/| /' conftest.$ac_ext >&5
14924 { $as_echo "$as_me:$LINENO: result: no" >&5
14925 $as_echo "no" >&6; }
14928 rm -rf conftest.dSYM
14929 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14930 conftest$ac_exeext conftest.$ac_ext
14932 { $as_echo "$as_me:$LINENO: checking for sysctl" >&5
14933 $as_echo_n "checking for sysctl... " >&6; }
14934 cat >conftest.$ac_ext <<_ACEOF
14935 /* confdefs.h. */
14936 _ACEOF
14937 cat confdefs.h >>conftest.$ac_ext
14938 cat >>conftest.$ac_ext <<_ACEOF
14939 /* end confdefs.h. */
14940 #include <sys/types.h>
14941 #include <sys/sysctl.h>
14943 main ()
14945 int mib[2], r;
14946 size_t len;
14948 mib[0] = CTL_HW;
14949 mib[1] = HW_USERMEM;
14950 len = sizeof(r);
14951 (void)sysctl(mib, 2, &r, &len, (void *)0, (size_t)0);
14954 return 0;
14956 _ACEOF
14957 rm -f conftest.$ac_objext
14958 if { (ac_try="$ac_compile"
14959 case "(($ac_try" in
14960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14961 *) ac_try_echo=$ac_try;;
14962 esac
14963 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14964 $as_echo "$ac_try_echo") >&5
14965 (eval "$ac_compile") 2>conftest.er1
14966 ac_status=$?
14967 grep -v '^ *+' conftest.er1 >conftest.err
14968 rm -f conftest.er1
14969 cat conftest.err >&5
14970 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14971 (exit $ac_status); } && {
14972 test -z "$ac_c_werror_flag" ||
14973 test ! -s conftest.err
14974 } && test -s conftest.$ac_objext; then
14975 { $as_echo "$as_me:$LINENO: result: yes" >&5
14976 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14977 #define HAVE_SYSCTL 1
14978 _ACEOF
14980 else
14981 $as_echo "$as_me: failed program was:" >&5
14982 sed 's/^/| /' conftest.$ac_ext >&5
14984 { $as_echo "$as_me:$LINENO: result: not usable" >&5
14985 $as_echo "not usable" >&6; }
14988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14990 { $as_echo "$as_me:$LINENO: checking for sysinfo" >&5
14991 $as_echo_n "checking for sysinfo... " >&6; }
14992 cat >conftest.$ac_ext <<_ACEOF
14993 /* confdefs.h. */
14994 _ACEOF
14995 cat confdefs.h >>conftest.$ac_ext
14996 cat >>conftest.$ac_ext <<_ACEOF
14997 /* end confdefs.h. */
14998 #include <sys/types.h>
14999 #include <sys/sysinfo.h>
15001 main ()
15003 struct sysinfo sinfo;
15004 int t;
15006 (void)sysinfo(&sinfo);
15007 t = sinfo.totalram;
15010 return 0;
15012 _ACEOF
15013 rm -f conftest.$ac_objext
15014 if { (ac_try="$ac_compile"
15015 case "(($ac_try" in
15016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15017 *) ac_try_echo=$ac_try;;
15018 esac
15019 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15020 $as_echo "$ac_try_echo") >&5
15021 (eval "$ac_compile") 2>conftest.er1
15022 ac_status=$?
15023 grep -v '^ *+' conftest.er1 >conftest.err
15024 rm -f conftest.er1
15025 cat conftest.err >&5
15026 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15027 (exit $ac_status); } && {
15028 test -z "$ac_c_werror_flag" ||
15029 test ! -s conftest.err
15030 } && test -s conftest.$ac_objext; then
15031 { $as_echo "$as_me:$LINENO: result: yes" >&5
15032 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15033 #define HAVE_SYSINFO 1
15034 _ACEOF
15036 else
15037 $as_echo "$as_me: failed program was:" >&5
15038 sed 's/^/| /' conftest.$ac_ext >&5
15040 { $as_echo "$as_me:$LINENO: result: not usable" >&5
15041 $as_echo "not usable" >&6; }
15044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15046 { $as_echo "$as_me:$LINENO: checking for sysinfo.mem_unit" >&5
15047 $as_echo_n "checking for sysinfo.mem_unit... " >&6; }
15048 cat >conftest.$ac_ext <<_ACEOF
15049 /* confdefs.h. */
15050 _ACEOF
15051 cat confdefs.h >>conftest.$ac_ext
15052 cat >>conftest.$ac_ext <<_ACEOF
15053 /* end confdefs.h. */
15054 #include <sys/types.h>
15055 #include <sys/sysinfo.h>
15057 main ()
15059 struct sysinfo sinfo;
15060 sinfo.mem_unit = 1;
15063 return 0;
15065 _ACEOF
15066 rm -f conftest.$ac_objext
15067 if { (ac_try="$ac_compile"
15068 case "(($ac_try" in
15069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15070 *) ac_try_echo=$ac_try;;
15071 esac
15072 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15073 $as_echo "$ac_try_echo") >&5
15074 (eval "$ac_compile") 2>conftest.er1
15075 ac_status=$?
15076 grep -v '^ *+' conftest.er1 >conftest.err
15077 rm -f conftest.er1
15078 cat conftest.err >&5
15079 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15080 (exit $ac_status); } && {
15081 test -z "$ac_c_werror_flag" ||
15082 test ! -s conftest.err
15083 } && test -s conftest.$ac_objext; then
15084 { $as_echo "$as_me:$LINENO: result: yes" >&5
15085 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15086 #define HAVE_SYSINFO_MEM_UNIT 1
15087 _ACEOF
15089 else
15090 $as_echo "$as_me: failed program was:" >&5
15091 sed 's/^/| /' conftest.$ac_ext >&5
15093 { $as_echo "$as_me:$LINENO: result: no" >&5
15094 $as_echo "no" >&6; }
15097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15099 { $as_echo "$as_me:$LINENO: checking for sysconf" >&5
15100 $as_echo_n "checking for sysconf... " >&6; }
15101 cat >conftest.$ac_ext <<_ACEOF
15102 /* confdefs.h. */
15103 _ACEOF
15104 cat confdefs.h >>conftest.$ac_ext
15105 cat >>conftest.$ac_ext <<_ACEOF
15106 /* end confdefs.h. */
15107 #include <unistd.h>
15109 main ()
15111 (void)sysconf(_SC_PAGESIZE);
15112 (void)sysconf(_SC_PHYS_PAGES);
15115 return 0;
15117 _ACEOF
15118 rm -f conftest.$ac_objext
15119 if { (ac_try="$ac_compile"
15120 case "(($ac_try" in
15121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15122 *) ac_try_echo=$ac_try;;
15123 esac
15124 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15125 $as_echo "$ac_try_echo") >&5
15126 (eval "$ac_compile") 2>conftest.er1
15127 ac_status=$?
15128 grep -v '^ *+' conftest.er1 >conftest.err
15129 rm -f conftest.er1
15130 cat conftest.err >&5
15131 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15132 (exit $ac_status); } && {
15133 test -z "$ac_c_werror_flag" ||
15134 test ! -s conftest.err
15135 } && test -s conftest.$ac_objext; then
15136 { $as_echo "$as_me:$LINENO: result: yes" >&5
15137 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15138 #define HAVE_SYSCONF 1
15139 _ACEOF
15141 else
15142 $as_echo "$as_me: failed program was:" >&5
15143 sed 's/^/| /' conftest.$ac_ext >&5
15145 { $as_echo "$as_me:$LINENO: result: not usable" >&5
15146 $as_echo "not usable" >&6; }
15149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15152 { $as_echo "$as_me:$LINENO: checking size of int" >&5
15153 $as_echo_n "checking size of int... " >&6; }
15154 if test "${ac_cv_sizeof_int+set}" = set; then
15155 $as_echo_n "(cached) " >&6
15156 else
15157 if test "$cross_compiling" = yes; then
15158 { { $as_echo "$as_me:$LINENO: error: failed to compile test program" >&5
15159 $as_echo "$as_me: error: failed to compile test program" >&2;}
15160 { (exit 1); exit 1; }; }
15161 else
15162 cat >conftest.$ac_ext <<_ACEOF
15163 /* confdefs.h. */
15164 _ACEOF
15165 cat confdefs.h >>conftest.$ac_ext
15166 cat >>conftest.$ac_ext <<_ACEOF
15167 /* end confdefs.h. */
15169 #include <stdio.h>
15170 #if STDC_HEADERS
15171 # include <stdlib.h>
15172 # include <stddef.h>
15173 #endif
15174 main()
15176 FILE *f=fopen("conftestval", "w");
15177 if (!f) exit(1);
15178 fprintf(f, "%d\n", (int)sizeof(int));
15179 exit(0);
15181 _ACEOF
15182 rm -f conftest$ac_exeext
15183 if { (ac_try="$ac_link"
15184 case "(($ac_try" in
15185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15186 *) ac_try_echo=$ac_try;;
15187 esac
15188 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15189 $as_echo "$ac_try_echo") >&5
15190 (eval "$ac_link") 2>&5
15191 ac_status=$?
15192 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15193 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15194 { (case "(($ac_try" in
15195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15196 *) ac_try_echo=$ac_try;;
15197 esac
15198 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15199 $as_echo "$ac_try_echo") >&5
15200 (eval "$ac_try") 2>&5
15201 ac_status=$?
15202 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15203 (exit $ac_status); }; }; then
15204 ac_cv_sizeof_int=`cat conftestval`
15205 else
15206 $as_echo "$as_me: program exited with status $ac_status" >&5
15207 $as_echo "$as_me: failed program was:" >&5
15208 sed 's/^/| /' conftest.$ac_ext >&5
15210 ( exit $ac_status )
15211 ac_cv_sizeof_int=0
15213 rm -rf conftest.dSYM
15214 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15220 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15221 $as_echo "$ac_cv_sizeof_int" >&6; }
15222 cat >>confdefs.h <<_ACEOF
15223 #define SIZEOF_INT $ac_cv_sizeof_int
15224 _ACEOF
15229 bcopy_test_prog='
15230 #include "confdefs.h"
15231 #ifdef HAVE_STRING_H
15232 # include <string.h>
15233 #endif
15234 #if STDC_HEADERS
15235 # include <stdlib.h>
15236 # include <stddef.h>
15237 #endif
15238 main() {
15239 char buf[10];
15240 strcpy(buf, "abcdefghi");
15241 mch_memmove(buf, buf + 2, 3);
15242 if (strncmp(buf, "ababcf", 6))
15243 exit(1);
15244 strcpy(buf, "abcdefghi");
15245 mch_memmove(buf + 2, buf, 3);
15246 if (strncmp(buf, "cdedef", 6))
15247 exit(1);
15248 exit(0); /* libc version works properly. */
15251 { $as_echo "$as_me:$LINENO: checking whether memmove handles overlaps" >&5
15252 $as_echo_n "checking whether memmove handles overlaps... " >&6; }
15253 if test "${vim_cv_memmove_handles_overlap+set}" = set; then
15254 $as_echo_n "(cached) " >&6
15255 else
15257 if test "$cross_compiling" = yes; then
15259 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_memmove_handles_overlap'" >&5
15260 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_memmove_handles_overlap'" >&2;}
15261 { (exit 1); exit 1; }; }
15263 else
15264 cat >conftest.$ac_ext <<_ACEOF
15265 #define mch_memmove(s,d,l) memmove(d,s,l) $bcopy_test_prog
15266 _ACEOF
15267 rm -f conftest$ac_exeext
15268 if { (ac_try="$ac_link"
15269 case "(($ac_try" in
15270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15271 *) ac_try_echo=$ac_try;;
15272 esac
15273 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15274 $as_echo "$ac_try_echo") >&5
15275 (eval "$ac_link") 2>&5
15276 ac_status=$?
15277 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15278 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15279 { (case "(($ac_try" in
15280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15281 *) ac_try_echo=$ac_try;;
15282 esac
15283 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15284 $as_echo "$ac_try_echo") >&5
15285 (eval "$ac_try") 2>&5
15286 ac_status=$?
15287 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15288 (exit $ac_status); }; }; then
15290 vim_cv_memmove_handles_overlap=yes
15292 else
15293 $as_echo "$as_me: program exited with status $ac_status" >&5
15294 $as_echo "$as_me: failed program was:" >&5
15295 sed 's/^/| /' conftest.$ac_ext >&5
15297 ( exit $ac_status )
15299 vim_cv_memmove_handles_overlap=no
15302 rm -rf conftest.dSYM
15303 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15309 { $as_echo "$as_me:$LINENO: result: $vim_cv_memmove_handles_overlap" >&5
15310 $as_echo "$vim_cv_memmove_handles_overlap" >&6; }
15312 if test "x$vim_cv_memmove_handles_overlap" = "xyes" ; then
15313 cat >>confdefs.h <<\_ACEOF
15314 #define USEMEMMOVE 1
15315 _ACEOF
15317 else
15318 { $as_echo "$as_me:$LINENO: checking whether bcopy handles overlaps" >&5
15319 $as_echo_n "checking whether bcopy handles overlaps... " >&6; }
15320 if test "${vim_cv_bcopy_handles_overlap+set}" = set; then
15321 $as_echo_n "(cached) " >&6
15322 else
15324 if test "$cross_compiling" = yes; then
15326 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_bcopy_handles_overlap'" >&5
15327 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_bcopy_handles_overlap'" >&2;}
15328 { (exit 1); exit 1; }; }
15330 else
15331 cat >conftest.$ac_ext <<_ACEOF
15332 #define mch_bcopy(s,d,l) bcopy(d,s,l) $bcopy_test_prog
15333 _ACEOF
15334 rm -f conftest$ac_exeext
15335 if { (ac_try="$ac_link"
15336 case "(($ac_try" in
15337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15338 *) ac_try_echo=$ac_try;;
15339 esac
15340 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15341 $as_echo "$ac_try_echo") >&5
15342 (eval "$ac_link") 2>&5
15343 ac_status=$?
15344 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15345 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15346 { (case "(($ac_try" in
15347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15348 *) ac_try_echo=$ac_try;;
15349 esac
15350 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15351 $as_echo "$ac_try_echo") >&5
15352 (eval "$ac_try") 2>&5
15353 ac_status=$?
15354 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15355 (exit $ac_status); }; }; then
15357 vim_cv_bcopy_handles_overlap=yes
15359 else
15360 $as_echo "$as_me: program exited with status $ac_status" >&5
15361 $as_echo "$as_me: failed program was:" >&5
15362 sed 's/^/| /' conftest.$ac_ext >&5
15364 ( exit $ac_status )
15366 vim_cv_bcopy_handles_overlap=no
15369 rm -rf conftest.dSYM
15370 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15376 { $as_echo "$as_me:$LINENO: result: $vim_cv_bcopy_handles_overlap" >&5
15377 $as_echo "$vim_cv_bcopy_handles_overlap" >&6; }
15379 if test "x$vim_cv_bcopy_handles_overlap" = "xyes" ; then
15380 cat >>confdefs.h <<\_ACEOF
15381 #define USEBCOPY 1
15382 _ACEOF
15384 else
15385 { $as_echo "$as_me:$LINENO: checking whether memcpy handles overlaps" >&5
15386 $as_echo_n "checking whether memcpy handles overlaps... " >&6; }
15387 if test "${vim_cv_memcpy_handles_overlap+set}" = set; then
15388 $as_echo_n "(cached) " >&6
15389 else
15391 if test "$cross_compiling" = yes; then
15393 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_memcpy_handles_overlap'" >&5
15394 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_memcpy_handles_overlap'" >&2;}
15395 { (exit 1); exit 1; }; }
15397 else
15398 cat >conftest.$ac_ext <<_ACEOF
15399 #define mch_memcpy(s,d,l) memcpy(d,s,l) $bcopy_test_prog
15400 _ACEOF
15401 rm -f conftest$ac_exeext
15402 if { (ac_try="$ac_link"
15403 case "(($ac_try" in
15404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15405 *) ac_try_echo=$ac_try;;
15406 esac
15407 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15408 $as_echo "$ac_try_echo") >&5
15409 (eval "$ac_link") 2>&5
15410 ac_status=$?
15411 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15412 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15413 { (case "(($ac_try" in
15414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15415 *) ac_try_echo=$ac_try;;
15416 esac
15417 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15418 $as_echo "$ac_try_echo") >&5
15419 (eval "$ac_try") 2>&5
15420 ac_status=$?
15421 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15422 (exit $ac_status); }; }; then
15424 vim_cv_memcpy_handles_overlap=yes
15426 else
15427 $as_echo "$as_me: program exited with status $ac_status" >&5
15428 $as_echo "$as_me: failed program was:" >&5
15429 sed 's/^/| /' conftest.$ac_ext >&5
15431 ( exit $ac_status )
15433 vim_cv_memcpy_handles_overlap=no
15436 rm -rf conftest.dSYM
15437 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15443 { $as_echo "$as_me:$LINENO: result: $vim_cv_memcpy_handles_overlap" >&5
15444 $as_echo "$vim_cv_memcpy_handles_overlap" >&6; }
15446 if test "x$vim_cv_memcpy_handles_overlap" = "xyes" ; then
15447 cat >>confdefs.h <<\_ACEOF
15448 #define USEMEMCPY 1
15449 _ACEOF
15457 if test "$enable_multibyte" = "yes"; then
15458 cflags_save=$CFLAGS
15459 ldflags_save=$LDFLAGS
15460 if test -n "$x_includes" ; then
15461 CFLAGS="$CFLAGS -I$x_includes"
15462 LDFLAGS="$X_LIBS $LDFLAGS -lX11"
15463 { $as_echo "$as_me:$LINENO: checking whether X_LOCALE needed" >&5
15464 $as_echo_n "checking whether X_LOCALE needed... " >&6; }
15465 cat >conftest.$ac_ext <<_ACEOF
15466 /* confdefs.h. */
15467 _ACEOF
15468 cat confdefs.h >>conftest.$ac_ext
15469 cat >>conftest.$ac_ext <<_ACEOF
15470 /* end confdefs.h. */
15471 #include <X11/Xlocale.h>
15473 main ()
15477 return 0;
15479 _ACEOF
15480 rm -f conftest.$ac_objext
15481 if { (ac_try="$ac_compile"
15482 case "(($ac_try" in
15483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15484 *) ac_try_echo=$ac_try;;
15485 esac
15486 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15487 $as_echo "$ac_try_echo") >&5
15488 (eval "$ac_compile") 2>conftest.er1
15489 ac_status=$?
15490 grep -v '^ *+' conftest.er1 >conftest.err
15491 rm -f conftest.er1
15492 cat conftest.err >&5
15493 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15494 (exit $ac_status); } && {
15495 test -z "$ac_c_werror_flag" ||
15496 test ! -s conftest.err
15497 } && test -s conftest.$ac_objext; then
15498 cat >conftest.$ac_ext <<_ACEOF
15499 /* confdefs.h. */
15500 _ACEOF
15501 cat confdefs.h >>conftest.$ac_ext
15502 cat >>conftest.$ac_ext <<_ACEOF
15503 /* end confdefs.h. */
15505 /* Override any GCC internal prototype to avoid an error.
15506 Use char because int might match the return type of a GCC
15507 builtin and then its argument prototype would still apply. */
15508 #ifdef __cplusplus
15509 extern "C"
15510 #endif
15511 char _Xsetlocale ();
15513 main ()
15515 return _Xsetlocale ();
15517 return 0;
15519 _ACEOF
15520 rm -f conftest.$ac_objext conftest$ac_exeext
15521 if { (ac_try="$ac_link"
15522 case "(($ac_try" in
15523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15524 *) ac_try_echo=$ac_try;;
15525 esac
15526 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15527 $as_echo "$ac_try_echo") >&5
15528 (eval "$ac_link") 2>conftest.er1
15529 ac_status=$?
15530 grep -v '^ *+' conftest.er1 >conftest.err
15531 rm -f conftest.er1
15532 cat conftest.err >&5
15533 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15534 (exit $ac_status); } && {
15535 test -z "$ac_c_werror_flag" ||
15536 test ! -s conftest.err
15537 } && test -s conftest$ac_exeext && {
15538 test "$cross_compiling" = yes ||
15539 $as_test_x conftest$ac_exeext
15540 }; then
15541 { $as_echo "$as_me:$LINENO: result: yes" >&5
15542 $as_echo "yes" >&6; }
15543 cat >>confdefs.h <<\_ACEOF
15544 #define X_LOCALE 1
15545 _ACEOF
15547 else
15548 $as_echo "$as_me: failed program was:" >&5
15549 sed 's/^/| /' conftest.$ac_ext >&5
15551 { $as_echo "$as_me:$LINENO: result: no" >&5
15552 $as_echo "no" >&6; }
15555 rm -rf conftest.dSYM
15556 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15557 conftest$ac_exeext conftest.$ac_ext
15558 else
15559 $as_echo "$as_me: failed program was:" >&5
15560 sed 's/^/| /' conftest.$ac_ext >&5
15562 { $as_echo "$as_me:$LINENO: result: no" >&5
15563 $as_echo "no" >&6; }
15566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15568 CFLAGS=$cflags_save
15569 LDFLAGS=$ldflags_save
15572 { $as_echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
15573 $as_echo_n "checking for _xpg4_setrunelocale in -lxpg4... " >&6; }
15574 if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
15575 $as_echo_n "(cached) " >&6
15576 else
15577 ac_check_lib_save_LIBS=$LIBS
15578 LIBS="-lxpg4 $LIBS"
15579 cat >conftest.$ac_ext <<_ACEOF
15580 /* confdefs.h. */
15581 _ACEOF
15582 cat confdefs.h >>conftest.$ac_ext
15583 cat >>conftest.$ac_ext <<_ACEOF
15584 /* end confdefs.h. */
15586 /* Override any GCC internal prototype to avoid an error.
15587 Use char because int might match the return type of a GCC
15588 builtin and then its argument prototype would still apply. */
15589 #ifdef __cplusplus
15590 extern "C"
15591 #endif
15592 char _xpg4_setrunelocale ();
15594 main ()
15596 return _xpg4_setrunelocale ();
15598 return 0;
15600 _ACEOF
15601 rm -f conftest.$ac_objext conftest$ac_exeext
15602 if { (ac_try="$ac_link"
15603 case "(($ac_try" in
15604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15605 *) ac_try_echo=$ac_try;;
15606 esac
15607 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15608 $as_echo "$ac_try_echo") >&5
15609 (eval "$ac_link") 2>conftest.er1
15610 ac_status=$?
15611 grep -v '^ *+' conftest.er1 >conftest.err
15612 rm -f conftest.er1
15613 cat conftest.err >&5
15614 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15615 (exit $ac_status); } && {
15616 test -z "$ac_c_werror_flag" ||
15617 test ! -s conftest.err
15618 } && test -s conftest$ac_exeext && {
15619 test "$cross_compiling" = yes ||
15620 $as_test_x conftest$ac_exeext
15621 }; then
15622 ac_cv_lib_xpg4__xpg4_setrunelocale=yes
15623 else
15624 $as_echo "$as_me: failed program was:" >&5
15625 sed 's/^/| /' conftest.$ac_ext >&5
15627 ac_cv_lib_xpg4__xpg4_setrunelocale=no
15630 rm -rf conftest.dSYM
15631 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15632 conftest$ac_exeext conftest.$ac_ext
15633 LIBS=$ac_check_lib_save_LIBS
15635 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
15636 $as_echo "$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6; }
15637 if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
15638 LIBS="$LIBS -lxpg4"
15642 { $as_echo "$as_me:$LINENO: checking how to create tags" >&5
15643 $as_echo_n "checking how to create tags... " >&6; }
15644 test -f tags && mv tags tags.save
15645 if (eval ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then
15646 TAGPRG="ctags -I INIT+ --fields=+S"
15647 else
15648 (eval etags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags"
15649 (eval etags -c /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags -c"
15650 (eval ctags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags"
15651 (eval ctags -t /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -t"
15652 (eval ctags -ts /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -ts"
15653 (eval ctags -tvs /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -tvs"
15654 (eval ctags -i+m /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -i+m"
15656 test -f tags.save && mv tags.save tags
15657 { $as_echo "$as_me:$LINENO: result: $TAGPRG" >&5
15658 $as_echo "$TAGPRG" >&6; }
15660 { $as_echo "$as_me:$LINENO: checking how to run man with a section nr" >&5
15661 $as_echo_n "checking how to run man with a section nr... " >&6; }
15662 MANDEF="man"
15663 (eval MANPAGER=cat PAGER=cat man -s 2 read) < /dev/null > /dev/null 2>&5 && MANDEF="man -s"
15664 { $as_echo "$as_me:$LINENO: result: $MANDEF" >&5
15665 $as_echo "$MANDEF" >&6; }
15666 if test "$MANDEF" = "man -s"; then
15667 cat >>confdefs.h <<\_ACEOF
15668 #define USEMAN_S 1
15669 _ACEOF
15673 { $as_echo "$as_me:$LINENO: checking --disable-nls argument" >&5
15674 $as_echo_n "checking --disable-nls argument... " >&6; }
15675 # Check whether --enable-nls was given.
15676 if test "${enable_nls+set}" = set; then
15677 enableval=$enable_nls;
15678 else
15679 enable_nls="yes"
15683 if test "$enable_nls" = "yes"; then
15684 { $as_echo "$as_me:$LINENO: result: no" >&5
15685 $as_echo "no" >&6; }
15687 INSTALL_LANGS=install-languages
15689 INSTALL_TOOL_LANGS=install-tool-languages
15692 # Extract the first word of "msgfmt", so it can be a program name with args.
15693 set dummy msgfmt; ac_word=$2
15694 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
15695 $as_echo_n "checking for $ac_word... " >&6; }
15696 if test "${ac_cv_prog_MSGFMT+set}" = set; then
15697 $as_echo_n "(cached) " >&6
15698 else
15699 if test -n "$MSGFMT"; then
15700 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
15701 else
15702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15703 for as_dir in $PATH
15705 IFS=$as_save_IFS
15706 test -z "$as_dir" && as_dir=.
15707 for ac_exec_ext in '' $ac_executable_extensions; do
15708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15709 ac_cv_prog_MSGFMT="msgfmt"
15710 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15711 break 2
15713 done
15714 done
15715 IFS=$as_save_IFS
15719 MSGFMT=$ac_cv_prog_MSGFMT
15720 if test -n "$MSGFMT"; then
15721 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
15722 $as_echo "$MSGFMT" >&6; }
15723 else
15724 { $as_echo "$as_me:$LINENO: result: no" >&5
15725 $as_echo "no" >&6; }
15729 { $as_echo "$as_me:$LINENO: checking for NLS" >&5
15730 $as_echo_n "checking for NLS... " >&6; }
15731 if test -f po/Makefile; then
15732 have_gettext="no"
15733 if test -n "$MSGFMT"; then
15734 cat >conftest.$ac_ext <<_ACEOF
15735 /* confdefs.h. */
15736 _ACEOF
15737 cat confdefs.h >>conftest.$ac_ext
15738 cat >>conftest.$ac_ext <<_ACEOF
15739 /* end confdefs.h. */
15740 #include <libintl.h>
15742 main ()
15744 gettext("Test");
15746 return 0;
15748 _ACEOF
15749 rm -f conftest.$ac_objext conftest$ac_exeext
15750 if { (ac_try="$ac_link"
15751 case "(($ac_try" in
15752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15753 *) ac_try_echo=$ac_try;;
15754 esac
15755 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15756 $as_echo "$ac_try_echo") >&5
15757 (eval "$ac_link") 2>conftest.er1
15758 ac_status=$?
15759 grep -v '^ *+' conftest.er1 >conftest.err
15760 rm -f conftest.er1
15761 cat conftest.err >&5
15762 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15763 (exit $ac_status); } && {
15764 test -z "$ac_c_werror_flag" ||
15765 test ! -s conftest.err
15766 } && test -s conftest$ac_exeext && {
15767 test "$cross_compiling" = yes ||
15768 $as_test_x conftest$ac_exeext
15769 }; then
15770 { $as_echo "$as_me:$LINENO: result: gettext() works" >&5
15771 $as_echo "gettext() works" >&6; }; have_gettext="yes"
15772 else
15773 $as_echo "$as_me: failed program was:" >&5
15774 sed 's/^/| /' conftest.$ac_ext >&5
15776 olibs=$LIBS
15777 LIBS="$LIBS -lintl"
15778 cat >conftest.$ac_ext <<_ACEOF
15779 /* confdefs.h. */
15780 _ACEOF
15781 cat confdefs.h >>conftest.$ac_ext
15782 cat >>conftest.$ac_ext <<_ACEOF
15783 /* end confdefs.h. */
15784 #include <libintl.h>
15786 main ()
15788 gettext("Test");
15790 return 0;
15792 _ACEOF
15793 rm -f conftest.$ac_objext conftest$ac_exeext
15794 if { (ac_try="$ac_link"
15795 case "(($ac_try" in
15796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15797 *) ac_try_echo=$ac_try;;
15798 esac
15799 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15800 $as_echo "$ac_try_echo") >&5
15801 (eval "$ac_link") 2>conftest.er1
15802 ac_status=$?
15803 grep -v '^ *+' conftest.er1 >conftest.err
15804 rm -f conftest.er1
15805 cat conftest.err >&5
15806 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15807 (exit $ac_status); } && {
15808 test -z "$ac_c_werror_flag" ||
15809 test ! -s conftest.err
15810 } && test -s conftest$ac_exeext && {
15811 test "$cross_compiling" = yes ||
15812 $as_test_x conftest$ac_exeext
15813 }; then
15814 { $as_echo "$as_me:$LINENO: result: gettext() works with -lintl" >&5
15815 $as_echo "gettext() works with -lintl" >&6; }; have_gettext="yes"
15816 else
15817 $as_echo "$as_me: failed program was:" >&5
15818 sed 's/^/| /' conftest.$ac_ext >&5
15820 { $as_echo "$as_me:$LINENO: result: gettext() doesn't work" >&5
15821 $as_echo "gettext() doesn't work" >&6; };
15822 LIBS=$olibs
15825 rm -rf conftest.dSYM
15826 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15827 conftest$ac_exeext conftest.$ac_ext
15830 rm -rf conftest.dSYM
15831 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15832 conftest$ac_exeext conftest.$ac_ext
15833 else
15834 { $as_echo "$as_me:$LINENO: result: msgfmt not found - disabled" >&5
15835 $as_echo "msgfmt not found - disabled" >&6; };
15837 if test $have_gettext = "yes"; then
15838 cat >>confdefs.h <<\_ACEOF
15839 #define HAVE_GETTEXT 1
15840 _ACEOF
15842 MAKEMO=yes
15845 for ac_func in bind_textdomain_codeset
15847 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15848 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
15849 $as_echo_n "checking for $ac_func... " >&6; }
15850 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15851 $as_echo_n "(cached) " >&6
15852 else
15853 cat >conftest.$ac_ext <<_ACEOF
15854 /* confdefs.h. */
15855 _ACEOF
15856 cat confdefs.h >>conftest.$ac_ext
15857 cat >>conftest.$ac_ext <<_ACEOF
15858 /* end confdefs.h. */
15859 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15860 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15861 #define $ac_func innocuous_$ac_func
15863 /* System header to define __stub macros and hopefully few prototypes,
15864 which can conflict with char $ac_func (); below.
15865 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15866 <limits.h> exists even on freestanding compilers. */
15868 #ifdef __STDC__
15869 # include <limits.h>
15870 #else
15871 # include <assert.h>
15872 #endif
15874 #undef $ac_func
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 $ac_func ();
15883 /* The GNU C library defines this for functions which it implements
15884 to always fail with ENOSYS. Some functions are actually named
15885 something starting with __ and the normal name is an alias. */
15886 #if defined __stub_$ac_func || defined __stub___$ac_func
15887 choke me
15888 #endif
15891 main ()
15893 return $ac_func ();
15895 return 0;
15897 _ACEOF
15898 rm -f conftest.$ac_objext conftest$ac_exeext
15899 if { (ac_try="$ac_link"
15900 case "(($ac_try" in
15901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15902 *) ac_try_echo=$ac_try;;
15903 esac
15904 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15905 $as_echo "$ac_try_echo") >&5
15906 (eval "$ac_link") 2>conftest.er1
15907 ac_status=$?
15908 grep -v '^ *+' conftest.er1 >conftest.err
15909 rm -f conftest.er1
15910 cat conftest.err >&5
15911 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15912 (exit $ac_status); } && {
15913 test -z "$ac_c_werror_flag" ||
15914 test ! -s conftest.err
15915 } && test -s conftest$ac_exeext && {
15916 test "$cross_compiling" = yes ||
15917 $as_test_x conftest$ac_exeext
15918 }; then
15919 eval "$as_ac_var=yes"
15920 else
15921 $as_echo "$as_me: failed program was:" >&5
15922 sed 's/^/| /' conftest.$ac_ext >&5
15924 eval "$as_ac_var=no"
15927 rm -rf conftest.dSYM
15928 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15929 conftest$ac_exeext conftest.$ac_ext
15931 ac_res=`eval 'as_val=${'$as_ac_var'}
15932 $as_echo "$as_val"'`
15933 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15934 $as_echo "$ac_res" >&6; }
15935 if test `eval 'as_val=${'$as_ac_var'}
15936 $as_echo "$as_val"'` = yes; then
15937 cat >>confdefs.h <<_ACEOF
15938 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15939 _ACEOF
15942 done
15944 { $as_echo "$as_me:$LINENO: checking for _nl_msg_cat_cntr" >&5
15945 $as_echo_n "checking for _nl_msg_cat_cntr... " >&6; }
15946 cat >conftest.$ac_ext <<_ACEOF
15947 /* confdefs.h. */
15948 _ACEOF
15949 cat confdefs.h >>conftest.$ac_ext
15950 cat >>conftest.$ac_ext <<_ACEOF
15951 /* end confdefs.h. */
15952 #include <libintl.h>
15953 extern int _nl_msg_cat_cntr;
15955 main ()
15957 ++_nl_msg_cat_cntr;
15959 return 0;
15961 _ACEOF
15962 rm -f conftest.$ac_objext conftest$ac_exeext
15963 if { (ac_try="$ac_link"
15964 case "(($ac_try" in
15965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15966 *) ac_try_echo=$ac_try;;
15967 esac
15968 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15969 $as_echo "$ac_try_echo") >&5
15970 (eval "$ac_link") 2>conftest.er1
15971 ac_status=$?
15972 grep -v '^ *+' conftest.er1 >conftest.err
15973 rm -f conftest.er1
15974 cat conftest.err >&5
15975 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15976 (exit $ac_status); } && {
15977 test -z "$ac_c_werror_flag" ||
15978 test ! -s conftest.err
15979 } && test -s conftest$ac_exeext && {
15980 test "$cross_compiling" = yes ||
15981 $as_test_x conftest$ac_exeext
15982 }; then
15983 { $as_echo "$as_me:$LINENO: result: yes" >&5
15984 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15985 #define HAVE_NL_MSG_CAT_CNTR 1
15986 _ACEOF
15988 else
15989 $as_echo "$as_me: failed program was:" >&5
15990 sed 's/^/| /' conftest.$ac_ext >&5
15992 { $as_echo "$as_me:$LINENO: result: no" >&5
15993 $as_echo "no" >&6; }
15996 rm -rf conftest.dSYM
15997 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15998 conftest$ac_exeext conftest.$ac_ext
16000 else
16001 { $as_echo "$as_me:$LINENO: result: no \"po/Makefile\" - disabled" >&5
16002 $as_echo "no \"po/Makefile\" - disabled" >&6; };
16004 else
16005 { $as_echo "$as_me:$LINENO: result: yes" >&5
16006 $as_echo "yes" >&6; }
16009 if test "${ac_cv_header_dlfcn_h+set}" = set; then
16010 { $as_echo "$as_me:$LINENO: checking for dlfcn.h" >&5
16011 $as_echo_n "checking for dlfcn.h... " >&6; }
16012 if test "${ac_cv_header_dlfcn_h+set}" = set; then
16013 $as_echo_n "(cached) " >&6
16015 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
16016 $as_echo "$ac_cv_header_dlfcn_h" >&6; }
16017 else
16018 # Is the header compilable?
16019 { $as_echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
16020 $as_echo_n "checking dlfcn.h usability... " >&6; }
16021 cat >conftest.$ac_ext <<_ACEOF
16022 /* confdefs.h. */
16023 _ACEOF
16024 cat confdefs.h >>conftest.$ac_ext
16025 cat >>conftest.$ac_ext <<_ACEOF
16026 /* end confdefs.h. */
16027 $ac_includes_default
16028 #include <dlfcn.h>
16029 _ACEOF
16030 rm -f conftest.$ac_objext
16031 if { (ac_try="$ac_compile"
16032 case "(($ac_try" in
16033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16034 *) ac_try_echo=$ac_try;;
16035 esac
16036 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16037 $as_echo "$ac_try_echo") >&5
16038 (eval "$ac_compile") 2>conftest.er1
16039 ac_status=$?
16040 grep -v '^ *+' conftest.er1 >conftest.err
16041 rm -f conftest.er1
16042 cat conftest.err >&5
16043 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16044 (exit $ac_status); } && {
16045 test -z "$ac_c_werror_flag" ||
16046 test ! -s conftest.err
16047 } && test -s conftest.$ac_objext; then
16048 ac_header_compiler=yes
16049 else
16050 $as_echo "$as_me: failed program was:" >&5
16051 sed 's/^/| /' conftest.$ac_ext >&5
16053 ac_header_compiler=no
16056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16057 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16058 $as_echo "$ac_header_compiler" >&6; }
16060 # Is the header present?
16061 { $as_echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
16062 $as_echo_n "checking dlfcn.h presence... " >&6; }
16063 cat >conftest.$ac_ext <<_ACEOF
16064 /* confdefs.h. */
16065 _ACEOF
16066 cat confdefs.h >>conftest.$ac_ext
16067 cat >>conftest.$ac_ext <<_ACEOF
16068 /* end confdefs.h. */
16069 #include <dlfcn.h>
16070 _ACEOF
16071 if { (ac_try="$ac_cpp conftest.$ac_ext"
16072 case "(($ac_try" in
16073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16074 *) ac_try_echo=$ac_try;;
16075 esac
16076 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16077 $as_echo "$ac_try_echo") >&5
16078 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16079 ac_status=$?
16080 grep -v '^ *+' conftest.er1 >conftest.err
16081 rm -f conftest.er1
16082 cat conftest.err >&5
16083 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16084 (exit $ac_status); } >/dev/null && {
16085 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16086 test ! -s conftest.err
16087 }; then
16088 ac_header_preproc=yes
16089 else
16090 $as_echo "$as_me: failed program was:" >&5
16091 sed 's/^/| /' conftest.$ac_ext >&5
16093 ac_header_preproc=no
16096 rm -f conftest.err conftest.$ac_ext
16097 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16098 $as_echo "$ac_header_preproc" >&6; }
16100 # So? What about this header?
16101 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16102 yes:no: )
16103 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
16104 $as_echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16105 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5
16106 $as_echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;}
16107 ac_header_preproc=yes
16109 no:yes:* )
16110 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
16111 $as_echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
16112 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5
16113 $as_echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;}
16114 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5
16115 $as_echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;}
16116 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5
16117 $as_echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;}
16118 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
16119 $as_echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
16120 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5
16121 $as_echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;}
16124 esac
16125 { $as_echo "$as_me:$LINENO: checking for dlfcn.h" >&5
16126 $as_echo_n "checking for dlfcn.h... " >&6; }
16127 if test "${ac_cv_header_dlfcn_h+set}" = set; then
16128 $as_echo_n "(cached) " >&6
16129 else
16130 ac_cv_header_dlfcn_h=$ac_header_preproc
16132 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
16133 $as_echo "$ac_cv_header_dlfcn_h" >&6; }
16136 if test $ac_cv_header_dlfcn_h = yes; then
16137 DLL=dlfcn.h
16138 else
16139 if test "${ac_cv_header_dl_h+set}" = set; then
16140 { $as_echo "$as_me:$LINENO: checking for dl.h" >&5
16141 $as_echo_n "checking for dl.h... " >&6; }
16142 if test "${ac_cv_header_dl_h+set}" = set; then
16143 $as_echo_n "(cached) " >&6
16145 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5
16146 $as_echo "$ac_cv_header_dl_h" >&6; }
16147 else
16148 # Is the header compilable?
16149 { $as_echo "$as_me:$LINENO: checking dl.h usability" >&5
16150 $as_echo_n "checking dl.h usability... " >&6; }
16151 cat >conftest.$ac_ext <<_ACEOF
16152 /* confdefs.h. */
16153 _ACEOF
16154 cat confdefs.h >>conftest.$ac_ext
16155 cat >>conftest.$ac_ext <<_ACEOF
16156 /* end confdefs.h. */
16157 $ac_includes_default
16158 #include <dl.h>
16159 _ACEOF
16160 rm -f conftest.$ac_objext
16161 if { (ac_try="$ac_compile"
16162 case "(($ac_try" in
16163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16164 *) ac_try_echo=$ac_try;;
16165 esac
16166 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16167 $as_echo "$ac_try_echo") >&5
16168 (eval "$ac_compile") 2>conftest.er1
16169 ac_status=$?
16170 grep -v '^ *+' conftest.er1 >conftest.err
16171 rm -f conftest.er1
16172 cat conftest.err >&5
16173 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16174 (exit $ac_status); } && {
16175 test -z "$ac_c_werror_flag" ||
16176 test ! -s conftest.err
16177 } && test -s conftest.$ac_objext; then
16178 ac_header_compiler=yes
16179 else
16180 $as_echo "$as_me: failed program was:" >&5
16181 sed 's/^/| /' conftest.$ac_ext >&5
16183 ac_header_compiler=no
16186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16187 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16188 $as_echo "$ac_header_compiler" >&6; }
16190 # Is the header present?
16191 { $as_echo "$as_me:$LINENO: checking dl.h presence" >&5
16192 $as_echo_n "checking dl.h presence... " >&6; }
16193 cat >conftest.$ac_ext <<_ACEOF
16194 /* confdefs.h. */
16195 _ACEOF
16196 cat confdefs.h >>conftest.$ac_ext
16197 cat >>conftest.$ac_ext <<_ACEOF
16198 /* end confdefs.h. */
16199 #include <dl.h>
16200 _ACEOF
16201 if { (ac_try="$ac_cpp conftest.$ac_ext"
16202 case "(($ac_try" in
16203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16204 *) ac_try_echo=$ac_try;;
16205 esac
16206 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16207 $as_echo "$ac_try_echo") >&5
16208 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16209 ac_status=$?
16210 grep -v '^ *+' conftest.er1 >conftest.err
16211 rm -f conftest.er1
16212 cat conftest.err >&5
16213 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16214 (exit $ac_status); } >/dev/null && {
16215 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16216 test ! -s conftest.err
16217 }; then
16218 ac_header_preproc=yes
16219 else
16220 $as_echo "$as_me: failed program was:" >&5
16221 sed 's/^/| /' conftest.$ac_ext >&5
16223 ac_header_preproc=no
16226 rm -f conftest.err conftest.$ac_ext
16227 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16228 $as_echo "$ac_header_preproc" >&6; }
16230 # So? What about this header?
16231 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16232 yes:no: )
16233 { $as_echo "$as_me:$LINENO: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&5
16234 $as_echo "$as_me: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16235 { $as_echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the compiler's result" >&5
16236 $as_echo "$as_me: WARNING: dl.h: proceeding with the compiler's result" >&2;}
16237 ac_header_preproc=yes
16239 no:yes:* )
16240 { $as_echo "$as_me:$LINENO: WARNING: dl.h: present but cannot be compiled" >&5
16241 $as_echo "$as_me: WARNING: dl.h: present but cannot be compiled" >&2;}
16242 { $as_echo "$as_me:$LINENO: WARNING: dl.h: check for missing prerequisite headers?" >&5
16243 $as_echo "$as_me: WARNING: dl.h: check for missing prerequisite headers?" >&2;}
16244 { $as_echo "$as_me:$LINENO: WARNING: dl.h: see the Autoconf documentation" >&5
16245 $as_echo "$as_me: WARNING: dl.h: see the Autoconf documentation" >&2;}
16246 { $as_echo "$as_me:$LINENO: WARNING: dl.h: section \"Present But Cannot Be Compiled\"" >&5
16247 $as_echo "$as_me: WARNING: dl.h: section \"Present But Cannot Be Compiled\"" >&2;}
16248 { $as_echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the preprocessor's result" >&5
16249 $as_echo "$as_me: WARNING: dl.h: proceeding with the preprocessor's result" >&2;}
16250 { $as_echo "$as_me:$LINENO: WARNING: dl.h: in the future, the compiler will take precedence" >&5
16251 $as_echo "$as_me: WARNING: dl.h: in the future, the compiler will take precedence" >&2;}
16254 esac
16255 { $as_echo "$as_me:$LINENO: checking for dl.h" >&5
16256 $as_echo_n "checking for dl.h... " >&6; }
16257 if test "${ac_cv_header_dl_h+set}" = set; then
16258 $as_echo_n "(cached) " >&6
16259 else
16260 ac_cv_header_dl_h=$ac_header_preproc
16262 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5
16263 $as_echo "$ac_cv_header_dl_h" >&6; }
16266 if test $ac_cv_header_dl_h = yes; then
16267 DLL=dl.h
16274 if test x${DLL} = xdlfcn.h; then
16276 cat >>confdefs.h <<\_ACEOF
16277 #define HAVE_DLFCN_H 1
16278 _ACEOF
16280 { $as_echo "$as_me:$LINENO: checking for dlopen()" >&5
16281 $as_echo_n "checking for dlopen()... " >&6; }
16282 cat >conftest.$ac_ext <<_ACEOF
16283 /* confdefs.h. */
16284 _ACEOF
16285 cat confdefs.h >>conftest.$ac_ext
16286 cat >>conftest.$ac_ext <<_ACEOF
16287 /* end confdefs.h. */
16290 main ()
16293 extern void* dlopen();
16294 dlopen();
16297 return 0;
16299 _ACEOF
16300 rm -f conftest.$ac_objext conftest$ac_exeext
16301 if { (ac_try="$ac_link"
16302 case "(($ac_try" in
16303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16304 *) ac_try_echo=$ac_try;;
16305 esac
16306 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16307 $as_echo "$ac_try_echo") >&5
16308 (eval "$ac_link") 2>conftest.er1
16309 ac_status=$?
16310 grep -v '^ *+' conftest.er1 >conftest.err
16311 rm -f conftest.er1
16312 cat conftest.err >&5
16313 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16314 (exit $ac_status); } && {
16315 test -z "$ac_c_werror_flag" ||
16316 test ! -s conftest.err
16317 } && test -s conftest$ac_exeext && {
16318 test "$cross_compiling" = yes ||
16319 $as_test_x conftest$ac_exeext
16320 }; then
16321 { $as_echo "$as_me:$LINENO: result: yes" >&5
16322 $as_echo "yes" >&6; };
16324 cat >>confdefs.h <<\_ACEOF
16325 #define HAVE_DLOPEN 1
16326 _ACEOF
16328 else
16329 $as_echo "$as_me: failed program was:" >&5
16330 sed 's/^/| /' conftest.$ac_ext >&5
16332 { $as_echo "$as_me:$LINENO: result: no" >&5
16333 $as_echo "no" >&6; };
16334 { $as_echo "$as_me:$LINENO: checking for dlopen() in -ldl" >&5
16335 $as_echo_n "checking for dlopen() in -ldl... " >&6; }
16336 olibs=$LIBS
16337 LIBS="$LIBS -ldl"
16338 cat >conftest.$ac_ext <<_ACEOF
16339 /* confdefs.h. */
16340 _ACEOF
16341 cat confdefs.h >>conftest.$ac_ext
16342 cat >>conftest.$ac_ext <<_ACEOF
16343 /* end confdefs.h. */
16346 main ()
16349 extern void* dlopen();
16350 dlopen();
16353 return 0;
16355 _ACEOF
16356 rm -f conftest.$ac_objext conftest$ac_exeext
16357 if { (ac_try="$ac_link"
16358 case "(($ac_try" in
16359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16360 *) ac_try_echo=$ac_try;;
16361 esac
16362 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16363 $as_echo "$ac_try_echo") >&5
16364 (eval "$ac_link") 2>conftest.er1
16365 ac_status=$?
16366 grep -v '^ *+' conftest.er1 >conftest.err
16367 rm -f conftest.er1
16368 cat conftest.err >&5
16369 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16370 (exit $ac_status); } && {
16371 test -z "$ac_c_werror_flag" ||
16372 test ! -s conftest.err
16373 } && test -s conftest$ac_exeext && {
16374 test "$cross_compiling" = yes ||
16375 $as_test_x conftest$ac_exeext
16376 }; then
16377 { $as_echo "$as_me:$LINENO: result: yes" >&5
16378 $as_echo "yes" >&6; };
16380 cat >>confdefs.h <<\_ACEOF
16381 #define HAVE_DLOPEN 1
16382 _ACEOF
16384 else
16385 $as_echo "$as_me: failed program was:" >&5
16386 sed 's/^/| /' conftest.$ac_ext >&5
16388 { $as_echo "$as_me:$LINENO: result: no" >&5
16389 $as_echo "no" >&6; };
16390 LIBS=$olibs
16393 rm -rf conftest.dSYM
16394 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16395 conftest$ac_exeext conftest.$ac_ext
16398 rm -rf conftest.dSYM
16399 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16400 conftest$ac_exeext conftest.$ac_ext
16401 { $as_echo "$as_me:$LINENO: checking for dlsym()" >&5
16402 $as_echo_n "checking for dlsym()... " >&6; }
16403 cat >conftest.$ac_ext <<_ACEOF
16404 /* confdefs.h. */
16405 _ACEOF
16406 cat confdefs.h >>conftest.$ac_ext
16407 cat >>conftest.$ac_ext <<_ACEOF
16408 /* end confdefs.h. */
16411 main ()
16414 extern void* dlsym();
16415 dlsym();
16418 return 0;
16420 _ACEOF
16421 rm -f conftest.$ac_objext conftest$ac_exeext
16422 if { (ac_try="$ac_link"
16423 case "(($ac_try" in
16424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16425 *) ac_try_echo=$ac_try;;
16426 esac
16427 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16428 $as_echo "$ac_try_echo") >&5
16429 (eval "$ac_link") 2>conftest.er1
16430 ac_status=$?
16431 grep -v '^ *+' conftest.er1 >conftest.err
16432 rm -f conftest.er1
16433 cat conftest.err >&5
16434 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16435 (exit $ac_status); } && {
16436 test -z "$ac_c_werror_flag" ||
16437 test ! -s conftest.err
16438 } && test -s conftest$ac_exeext && {
16439 test "$cross_compiling" = yes ||
16440 $as_test_x conftest$ac_exeext
16441 }; then
16442 { $as_echo "$as_me:$LINENO: result: yes" >&5
16443 $as_echo "yes" >&6; };
16445 cat >>confdefs.h <<\_ACEOF
16446 #define HAVE_DLSYM 1
16447 _ACEOF
16449 else
16450 $as_echo "$as_me: failed program was:" >&5
16451 sed 's/^/| /' conftest.$ac_ext >&5
16453 { $as_echo "$as_me:$LINENO: result: no" >&5
16454 $as_echo "no" >&6; };
16455 { $as_echo "$as_me:$LINENO: checking for dlsym() in -ldl" >&5
16456 $as_echo_n "checking for dlsym() in -ldl... " >&6; }
16457 olibs=$LIBS
16458 LIBS="$LIBS -ldl"
16459 cat >conftest.$ac_ext <<_ACEOF
16460 /* confdefs.h. */
16461 _ACEOF
16462 cat confdefs.h >>conftest.$ac_ext
16463 cat >>conftest.$ac_ext <<_ACEOF
16464 /* end confdefs.h. */
16467 main ()
16470 extern void* dlsym();
16471 dlsym();
16474 return 0;
16476 _ACEOF
16477 rm -f conftest.$ac_objext conftest$ac_exeext
16478 if { (ac_try="$ac_link"
16479 case "(($ac_try" in
16480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16481 *) ac_try_echo=$ac_try;;
16482 esac
16483 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16484 $as_echo "$ac_try_echo") >&5
16485 (eval "$ac_link") 2>conftest.er1
16486 ac_status=$?
16487 grep -v '^ *+' conftest.er1 >conftest.err
16488 rm -f conftest.er1
16489 cat conftest.err >&5
16490 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16491 (exit $ac_status); } && {
16492 test -z "$ac_c_werror_flag" ||
16493 test ! -s conftest.err
16494 } && test -s conftest$ac_exeext && {
16495 test "$cross_compiling" = yes ||
16496 $as_test_x conftest$ac_exeext
16497 }; then
16498 { $as_echo "$as_me:$LINENO: result: yes" >&5
16499 $as_echo "yes" >&6; };
16501 cat >>confdefs.h <<\_ACEOF
16502 #define HAVE_DLSYM 1
16503 _ACEOF
16505 else
16506 $as_echo "$as_me: failed program was:" >&5
16507 sed 's/^/| /' conftest.$ac_ext >&5
16509 { $as_echo "$as_me:$LINENO: result: no" >&5
16510 $as_echo "no" >&6; };
16511 LIBS=$olibs
16514 rm -rf conftest.dSYM
16515 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16516 conftest$ac_exeext conftest.$ac_ext
16519 rm -rf conftest.dSYM
16520 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16521 conftest$ac_exeext conftest.$ac_ext
16522 elif test x${DLL} = xdl.h; then
16524 cat >>confdefs.h <<\_ACEOF
16525 #define HAVE_DL_H 1
16526 _ACEOF
16528 { $as_echo "$as_me:$LINENO: checking for shl_load()" >&5
16529 $as_echo_n "checking for shl_load()... " >&6; }
16530 cat >conftest.$ac_ext <<_ACEOF
16531 /* confdefs.h. */
16532 _ACEOF
16533 cat confdefs.h >>conftest.$ac_ext
16534 cat >>conftest.$ac_ext <<_ACEOF
16535 /* end confdefs.h. */
16538 main ()
16541 extern void* shl_load();
16542 shl_load();
16545 return 0;
16547 _ACEOF
16548 rm -f conftest.$ac_objext conftest$ac_exeext
16549 if { (ac_try="$ac_link"
16550 case "(($ac_try" in
16551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16552 *) ac_try_echo=$ac_try;;
16553 esac
16554 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16555 $as_echo "$ac_try_echo") >&5
16556 (eval "$ac_link") 2>conftest.er1
16557 ac_status=$?
16558 grep -v '^ *+' conftest.er1 >conftest.err
16559 rm -f conftest.er1
16560 cat conftest.err >&5
16561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16562 (exit $ac_status); } && {
16563 test -z "$ac_c_werror_flag" ||
16564 test ! -s conftest.err
16565 } && test -s conftest$ac_exeext && {
16566 test "$cross_compiling" = yes ||
16567 $as_test_x conftest$ac_exeext
16568 }; then
16569 { $as_echo "$as_me:$LINENO: result: yes" >&5
16570 $as_echo "yes" >&6; };
16572 cat >>confdefs.h <<\_ACEOF
16573 #define HAVE_SHL_LOAD 1
16574 _ACEOF
16576 else
16577 $as_echo "$as_me: failed program was:" >&5
16578 sed 's/^/| /' conftest.$ac_ext >&5
16580 { $as_echo "$as_me:$LINENO: result: no" >&5
16581 $as_echo "no" >&6; };
16582 { $as_echo "$as_me:$LINENO: checking for shl_load() in -ldld" >&5
16583 $as_echo_n "checking for shl_load() in -ldld... " >&6; }
16584 olibs=$LIBS
16585 LIBS="$LIBS -ldld"
16586 cat >conftest.$ac_ext <<_ACEOF
16587 /* confdefs.h. */
16588 _ACEOF
16589 cat confdefs.h >>conftest.$ac_ext
16590 cat >>conftest.$ac_ext <<_ACEOF
16591 /* end confdefs.h. */
16594 main ()
16597 extern void* shl_load();
16598 shl_load();
16601 return 0;
16603 _ACEOF
16604 rm -f conftest.$ac_objext conftest$ac_exeext
16605 if { (ac_try="$ac_link"
16606 case "(($ac_try" in
16607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16608 *) ac_try_echo=$ac_try;;
16609 esac
16610 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16611 $as_echo "$ac_try_echo") >&5
16612 (eval "$ac_link") 2>conftest.er1
16613 ac_status=$?
16614 grep -v '^ *+' conftest.er1 >conftest.err
16615 rm -f conftest.er1
16616 cat conftest.err >&5
16617 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16618 (exit $ac_status); } && {
16619 test -z "$ac_c_werror_flag" ||
16620 test ! -s conftest.err
16621 } && test -s conftest$ac_exeext && {
16622 test "$cross_compiling" = yes ||
16623 $as_test_x conftest$ac_exeext
16624 }; then
16625 { $as_echo "$as_me:$LINENO: result: yes" >&5
16626 $as_echo "yes" >&6; };
16628 cat >>confdefs.h <<\_ACEOF
16629 #define HAVE_SHL_LOAD 1
16630 _ACEOF
16632 else
16633 $as_echo "$as_me: failed program was:" >&5
16634 sed 's/^/| /' conftest.$ac_ext >&5
16636 { $as_echo "$as_me:$LINENO: result: no" >&5
16637 $as_echo "no" >&6; };
16638 LIBS=$olibs
16641 rm -rf conftest.dSYM
16642 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16643 conftest$ac_exeext conftest.$ac_ext
16646 rm -rf conftest.dSYM
16647 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16648 conftest$ac_exeext conftest.$ac_ext
16651 for ac_header in setjmp.h
16653 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16654 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16655 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16656 $as_echo_n "checking for $ac_header... " >&6; }
16657 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16658 $as_echo_n "(cached) " >&6
16660 ac_res=`eval 'as_val=${'$as_ac_Header'}
16661 $as_echo "$as_val"'`
16662 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16663 $as_echo "$ac_res" >&6; }
16664 else
16665 # Is the header compilable?
16666 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16667 $as_echo_n "checking $ac_header usability... " >&6; }
16668 cat >conftest.$ac_ext <<_ACEOF
16669 /* confdefs.h. */
16670 _ACEOF
16671 cat confdefs.h >>conftest.$ac_ext
16672 cat >>conftest.$ac_ext <<_ACEOF
16673 /* end confdefs.h. */
16674 $ac_includes_default
16675 #include <$ac_header>
16676 _ACEOF
16677 rm -f conftest.$ac_objext
16678 if { (ac_try="$ac_compile"
16679 case "(($ac_try" in
16680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16681 *) ac_try_echo=$ac_try;;
16682 esac
16683 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16684 $as_echo "$ac_try_echo") >&5
16685 (eval "$ac_compile") 2>conftest.er1
16686 ac_status=$?
16687 grep -v '^ *+' conftest.er1 >conftest.err
16688 rm -f conftest.er1
16689 cat conftest.err >&5
16690 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16691 (exit $ac_status); } && {
16692 test -z "$ac_c_werror_flag" ||
16693 test ! -s conftest.err
16694 } && test -s conftest.$ac_objext; then
16695 ac_header_compiler=yes
16696 else
16697 $as_echo "$as_me: failed program was:" >&5
16698 sed 's/^/| /' conftest.$ac_ext >&5
16700 ac_header_compiler=no
16703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16704 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16705 $as_echo "$ac_header_compiler" >&6; }
16707 # Is the header present?
16708 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16709 $as_echo_n "checking $ac_header presence... " >&6; }
16710 cat >conftest.$ac_ext <<_ACEOF
16711 /* confdefs.h. */
16712 _ACEOF
16713 cat confdefs.h >>conftest.$ac_ext
16714 cat >>conftest.$ac_ext <<_ACEOF
16715 /* end confdefs.h. */
16716 #include <$ac_header>
16717 _ACEOF
16718 if { (ac_try="$ac_cpp conftest.$ac_ext"
16719 case "(($ac_try" in
16720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16721 *) ac_try_echo=$ac_try;;
16722 esac
16723 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16724 $as_echo "$ac_try_echo") >&5
16725 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16726 ac_status=$?
16727 grep -v '^ *+' conftest.er1 >conftest.err
16728 rm -f conftest.er1
16729 cat conftest.err >&5
16730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16731 (exit $ac_status); } >/dev/null && {
16732 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16733 test ! -s conftest.err
16734 }; then
16735 ac_header_preproc=yes
16736 else
16737 $as_echo "$as_me: failed program was:" >&5
16738 sed 's/^/| /' conftest.$ac_ext >&5
16740 ac_header_preproc=no
16743 rm -f conftest.err conftest.$ac_ext
16744 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16745 $as_echo "$ac_header_preproc" >&6; }
16747 # So? What about this header?
16748 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16749 yes:no: )
16750 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16751 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16752 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16753 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16754 ac_header_preproc=yes
16756 no:yes:* )
16757 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16758 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16759 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16760 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16761 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16762 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16763 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16764 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16765 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16766 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16767 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16768 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16771 esac
16772 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16773 $as_echo_n "checking for $ac_header... " >&6; }
16774 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16775 $as_echo_n "(cached) " >&6
16776 else
16777 eval "$as_ac_Header=\$ac_header_preproc"
16779 ac_res=`eval 'as_val=${'$as_ac_Header'}
16780 $as_echo "$as_val"'`
16781 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16782 $as_echo "$ac_res" >&6; }
16785 if test `eval 'as_val=${'$as_ac_Header'}
16786 $as_echo "$as_val"'` = yes; then
16787 cat >>confdefs.h <<_ACEOF
16788 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16789 _ACEOF
16793 done
16796 if test "x$MACOSX" = "xyes" -a -n "$PERL"; then
16797 if echo $LIBS | grep -e '-ldl' >/dev/null; then
16798 LIBS=`echo $LIBS | sed s/-ldl//`
16799 PERL_LIBS="$PERL_LIBS -ldl"
16803 if test "x$MACOSX" = "xyes" && test "x$CARBON" = "xyes" \
16804 && test "x$GUITYPE" != "xCARBONGUI"; then
16805 { $as_echo "$as_me:$LINENO: checking whether we need -framework Carbon" >&5
16806 $as_echo_n "checking whether we need -framework Carbon... " >&6; }
16807 if test "x$enable_multibyte" = "xyes" || test "x$features" = "xbig" \
16808 || test "x$features" = "xhuge"; then
16809 LIBS="$LIBS -framework Carbon"
16810 { $as_echo "$as_me:$LINENO: result: yes" >&5
16811 $as_echo "yes" >&6; }
16812 else
16813 { $as_echo "$as_me:$LINENO: result: no" >&5
16814 $as_echo "no" >&6; }
16817 if test "x$MACARCH" = "xboth"; then
16818 LDFLAGS="$LDFLAGS -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc"
16821 { $as_echo "$as_me:$LINENO: checking for GCC 3 or later" >&5
16822 $as_echo_n "checking for GCC 3 or later... " >&6; }
16823 DEPEND_CFLAGS_FILTER=
16824 if test "$GCC" = yes; then
16825 gccmajor=`echo "$gccversion" | sed -e 's/^\([1-9]\)\..*$/\1/g'`
16826 if test "$gccmajor" -gt "2"; then
16827 DEPEND_CFLAGS_FILTER="| sed 's+-I */+-isystem /+g'"
16830 if test "$DEPEND_CFLAGS_FILTER" = ""; then
16831 { $as_echo "$as_me:$LINENO: result: no" >&5
16832 $as_echo "no" >&6; }
16833 else
16834 { $as_echo "$as_me:$LINENO: result: yes" >&5
16835 $as_echo "yes" >&6; }
16839 ac_config_files="$ac_config_files auto/config.mk:config.mk.in"
16841 cat >confcache <<\_ACEOF
16842 # This file is a shell script that caches the results of configure
16843 # tests run on this system so they can be shared between configure
16844 # scripts and configure runs, see configure's option --config-cache.
16845 # It is not useful on other systems. If it contains results you don't
16846 # want to keep, you may remove or edit it.
16848 # config.status only pays attention to the cache file if you give it
16849 # the --recheck option to rerun configure.
16851 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16852 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16853 # following values.
16855 _ACEOF
16857 # The following way of writing the cache mishandles newlines in values,
16858 # but we know of no workaround that is simple, portable, and efficient.
16859 # So, we kill variables containing newlines.
16860 # Ultrix sh set writes to stderr and can't be redirected directly,
16861 # and sets the high bit in the cache file unless we assign to the vars.
16863 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16864 eval ac_val=\$$ac_var
16865 case $ac_val in #(
16866 *${as_nl}*)
16867 case $ac_var in #(
16868 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
16869 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
16870 esac
16871 case $ac_var in #(
16872 _ | IFS | as_nl) ;; #(
16873 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16874 *) $as_unset $ac_var ;;
16875 esac ;;
16876 esac
16877 done
16879 (set) 2>&1 |
16880 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16881 *${as_nl}ac_space=\ *)
16882 # `set' does not quote correctly, so add quotes (double-quote
16883 # substitution turns \\\\ into \\, and sed turns \\ into \).
16884 sed -n \
16885 "s/'/'\\\\''/g;
16886 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16887 ;; #(
16889 # `set' quotes correctly as required by POSIX, so do not add quotes.
16890 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16892 esac |
16893 sort
16895 sed '
16896 /^ac_cv_env_/b end
16897 t clear
16898 :clear
16899 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16900 t end
16901 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16902 :end' >>confcache
16903 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16904 if test -w "$cache_file"; then
16905 test "x$cache_file" != "x/dev/null" &&
16906 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
16907 $as_echo "$as_me: updating cache $cache_file" >&6;}
16908 cat confcache >$cache_file
16909 else
16910 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
16911 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16914 rm -f confcache
16916 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16917 # Let make expand exec_prefix.
16918 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16920 DEFS=-DHAVE_CONFIG_H
16922 ac_libobjs=
16923 ac_ltlibobjs=
16924 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16925 # 1. Remove the extension, and $U if already installed.
16926 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16927 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16928 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16929 # will be set to the directory where LIBOBJS objects are built.
16930 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16931 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
16932 done
16933 LIBOBJS=$ac_libobjs
16935 LTLIBOBJS=$ac_ltlibobjs
16939 : ${CONFIG_STATUS=./config.status}
16940 ac_write_fail=0
16941 ac_clean_files_save=$ac_clean_files
16942 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16943 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16944 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16945 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16946 #! $SHELL
16947 # Generated by $as_me.
16948 # Run this file to recreate the current configuration.
16949 # Compiler output produced by configure, useful for debugging
16950 # configure, is in config.log if it exists.
16952 debug=false
16953 ac_cs_recheck=false
16954 ac_cs_silent=false
16955 SHELL=\${CONFIG_SHELL-$SHELL}
16956 _ACEOF
16958 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16959 ## --------------------- ##
16960 ## M4sh Initialization. ##
16961 ## --------------------- ##
16963 # Be more Bourne compatible
16964 DUALCASE=1; export DUALCASE # for MKS sh
16965 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16966 emulate sh
16967 NULLCMD=:
16968 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16969 # is contrary to our usage. Disable this feature.
16970 alias -g '${1+"$@"}'='"$@"'
16971 setopt NO_GLOB_SUBST
16972 else
16973 case `(set -o) 2>/dev/null` in
16974 *posix*) set -o posix ;;
16975 esac
16982 # PATH needs CR
16983 # Avoid depending upon Character Ranges.
16984 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16985 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16986 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16987 as_cr_digits='0123456789'
16988 as_cr_alnum=$as_cr_Letters$as_cr_digits
16990 as_nl='
16992 export as_nl
16993 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16994 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16995 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16996 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16997 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16998 as_echo='printf %s\n'
16999 as_echo_n='printf %s'
17000 else
17001 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17002 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17003 as_echo_n='/usr/ucb/echo -n'
17004 else
17005 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17006 as_echo_n_body='eval
17007 arg=$1;
17008 case $arg in
17009 *"$as_nl"*)
17010 expr "X$arg" : "X\\(.*\\)$as_nl";
17011 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17012 esac;
17013 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17015 export as_echo_n_body
17016 as_echo_n='sh -c $as_echo_n_body as_echo'
17018 export as_echo_body
17019 as_echo='sh -c $as_echo_body as_echo'
17022 # The user is always right.
17023 if test "${PATH_SEPARATOR+set}" != set; then
17024 PATH_SEPARATOR=:
17025 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17026 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17027 PATH_SEPARATOR=';'
17031 # Support unset when possible.
17032 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
17033 as_unset=unset
17034 else
17035 as_unset=false
17039 # IFS
17040 # We need space, tab and new line, in precisely that order. Quoting is
17041 # there to prevent editors from complaining about space-tab.
17042 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17043 # splitting by setting IFS to empty value.)
17044 IFS=" "" $as_nl"
17046 # Find who we are. Look in the path if we contain no directory separator.
17047 case $0 in
17048 *[\\/]* ) as_myself=$0 ;;
17049 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17050 for as_dir in $PATH
17052 IFS=$as_save_IFS
17053 test -z "$as_dir" && as_dir=.
17054 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17055 done
17056 IFS=$as_save_IFS
17059 esac
17060 # We did not find ourselves, most probably we were run as `sh COMMAND'
17061 # in which case we are not to be found in the path.
17062 if test "x$as_myself" = x; then
17063 as_myself=$0
17065 if test ! -f "$as_myself"; then
17066 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17067 { (exit 1); exit 1; }
17070 # Work around bugs in pre-3.0 UWIN ksh.
17071 for as_var in ENV MAIL MAILPATH
17072 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
17073 done
17074 PS1='$ '
17075 PS2='> '
17076 PS4='+ '
17078 # NLS nuisances.
17079 LC_ALL=C
17080 export LC_ALL
17081 LANGUAGE=C
17082 export LANGUAGE
17084 # Required to use basename.
17085 if expr a : '\(a\)' >/dev/null 2>&1 &&
17086 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17087 as_expr=expr
17088 else
17089 as_expr=false
17092 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17093 as_basename=basename
17094 else
17095 as_basename=false
17099 # Name of the executable.
17100 as_me=`$as_basename -- "$0" ||
17101 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17102 X"$0" : 'X\(//\)$' \| \
17103 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17104 $as_echo X/"$0" |
17105 sed '/^.*\/\([^/][^/]*\)\/*$/{
17106 s//\1/
17109 /^X\/\(\/\/\)$/{
17110 s//\1/
17113 /^X\/\(\/\).*/{
17114 s//\1/
17117 s/.*/./; q'`
17119 # CDPATH.
17120 $as_unset CDPATH
17124 as_lineno_1=$LINENO
17125 as_lineno_2=$LINENO
17126 test "x$as_lineno_1" != "x$as_lineno_2" &&
17127 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
17129 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17130 # uniformly replaced by the line number. The first 'sed' inserts a
17131 # line-number line after each line using $LINENO; the second 'sed'
17132 # does the real work. The second script uses 'N' to pair each
17133 # line-number line with the line containing $LINENO, and appends
17134 # trailing '-' during substitution so that $LINENO is not a special
17135 # case at line end.
17136 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17137 # scripts with optimization help from Paolo Bonzini. Blame Lee
17138 # E. McMahon (1931-1989) for sed's syntax. :-)
17139 sed -n '
17141 /[$]LINENO/=
17142 ' <$as_myself |
17143 sed '
17144 s/[$]LINENO.*/&-/
17145 t lineno
17147 :lineno
17149 :loop
17150 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
17151 t loop
17152 s/-\n.*//
17153 ' >$as_me.lineno &&
17154 chmod +x "$as_me.lineno" ||
17155 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
17156 { (exit 1); exit 1; }; }
17158 # Don't try to exec as it changes $[0], causing all sort of problems
17159 # (the dirname of $[0] is not the place where we might find the
17160 # original and so on. Autoconf is especially sensitive to this).
17161 . "./$as_me.lineno"
17162 # Exit status is that of the last command.
17163 exit
17167 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17168 as_dirname=dirname
17169 else
17170 as_dirname=false
17173 ECHO_C= ECHO_N= ECHO_T=
17174 case `echo -n x` in
17175 -n*)
17176 case `echo 'x\c'` in
17177 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17178 *) ECHO_C='\c';;
17179 esac;;
17181 ECHO_N='-n';;
17182 esac
17183 if expr a : '\(a\)' >/dev/null 2>&1 &&
17184 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17185 as_expr=expr
17186 else
17187 as_expr=false
17190 rm -f conf$$ conf$$.exe conf$$.file
17191 if test -d conf$$.dir; then
17192 rm -f conf$$.dir/conf$$.file
17193 else
17194 rm -f conf$$.dir
17195 mkdir conf$$.dir 2>/dev/null
17197 if (echo >conf$$.file) 2>/dev/null; then
17198 if ln -s conf$$.file conf$$ 2>/dev/null; then
17199 as_ln_s='ln -s'
17200 # ... but there are two gotchas:
17201 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17202 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17203 # In both cases, we have to default to `cp -p'.
17204 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17205 as_ln_s='cp -p'
17206 elif ln conf$$.file conf$$ 2>/dev/null; then
17207 as_ln_s=ln
17208 else
17209 as_ln_s='cp -p'
17211 else
17212 as_ln_s='cp -p'
17214 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17215 rmdir conf$$.dir 2>/dev/null
17217 if mkdir -p . 2>/dev/null; then
17218 as_mkdir_p=:
17219 else
17220 test -d ./-p && rmdir ./-p
17221 as_mkdir_p=false
17224 if test -x / >/dev/null 2>&1; then
17225 as_test_x='test -x'
17226 else
17227 if ls -dL / >/dev/null 2>&1; then
17228 as_ls_L_option=L
17229 else
17230 as_ls_L_option=
17232 as_test_x='
17233 eval sh -c '\''
17234 if test -d "$1"; then
17235 test -d "$1/.";
17236 else
17237 case $1 in
17238 -*)set "./$1";;
17239 esac;
17240 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
17241 ???[sx]*):;;*)false;;esac;fi
17242 '\'' sh
17245 as_executable_p=$as_test_x
17247 # Sed expression to map a string onto a valid CPP name.
17248 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17250 # Sed expression to map a string onto a valid variable name.
17251 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17254 exec 6>&1
17256 # Save the log message, to keep $[0] and so on meaningful, and to
17257 # report actual input values of CONFIG_FILES etc. instead of their
17258 # values after options handling.
17259 ac_log="
17260 This file was extended by $as_me, which was
17261 generated by GNU Autoconf 2.62. Invocation command line was
17263 CONFIG_FILES = $CONFIG_FILES
17264 CONFIG_HEADERS = $CONFIG_HEADERS
17265 CONFIG_LINKS = $CONFIG_LINKS
17266 CONFIG_COMMANDS = $CONFIG_COMMANDS
17267 $ $0 $@
17269 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17272 _ACEOF
17274 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17275 # Files that config.status was made for.
17276 config_files="$ac_config_files"
17277 config_headers="$ac_config_headers"
17279 _ACEOF
17281 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17282 ac_cs_usage="\
17283 \`$as_me' instantiates files from templates according to the
17284 current configuration.
17286 Usage: $0 [OPTIONS] [FILE]...
17288 -h, --help print this help, then exit
17289 -V, --version print version number and configuration settings, then exit
17290 -q, --quiet do not print progress messages
17291 -d, --debug don't remove temporary files
17292 --recheck update $as_me by reconfiguring in the same conditions
17293 --file=FILE[:TEMPLATE]
17294 instantiate the configuration file FILE
17295 --header=FILE[:TEMPLATE]
17296 instantiate the configuration header FILE
17298 Configuration files:
17299 $config_files
17301 Configuration headers:
17302 $config_headers
17304 Report bugs to <bug-autoconf@gnu.org>."
17306 _ACEOF
17307 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17308 ac_cs_version="\\
17309 config.status
17310 configured by $0, generated by GNU Autoconf 2.62,
17311 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
17313 Copyright (C) 2008 Free Software Foundation, Inc.
17314 This config.status script is free software; the Free Software Foundation
17315 gives unlimited permission to copy, distribute and modify it."
17317 ac_pwd='$ac_pwd'
17318 srcdir='$srcdir'
17319 AWK='$AWK'
17320 test -n "\$AWK" || AWK=awk
17321 _ACEOF
17323 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17324 # The default lists apply if the user does not specify any file.
17325 ac_need_defaults=:
17326 while test $# != 0
17328 case $1 in
17329 --*=*)
17330 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17331 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17332 ac_shift=:
17335 ac_option=$1
17336 ac_optarg=$2
17337 ac_shift=shift
17339 esac
17341 case $ac_option in
17342 # Handling of the options.
17343 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17344 ac_cs_recheck=: ;;
17345 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17346 $as_echo "$ac_cs_version"; exit ;;
17347 --debug | --debu | --deb | --de | --d | -d )
17348 debug=: ;;
17349 --file | --fil | --fi | --f )
17350 $ac_shift
17351 case $ac_optarg in
17352 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17353 esac
17354 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
17355 ac_need_defaults=false;;
17356 --header | --heade | --head | --hea )
17357 $ac_shift
17358 case $ac_optarg in
17359 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17360 esac
17361 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
17362 ac_need_defaults=false;;
17363 --he | --h)
17364 # Conflict between --help and --header
17365 { $as_echo "$as_me: error: ambiguous option: $1
17366 Try \`$0 --help' for more information." >&2
17367 { (exit 1); exit 1; }; };;
17368 --help | --hel | -h )
17369 $as_echo "$ac_cs_usage"; exit ;;
17370 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17371 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17372 ac_cs_silent=: ;;
17374 # This is an error.
17375 -*) { $as_echo "$as_me: error: unrecognized option: $1
17376 Try \`$0 --help' for more information." >&2
17377 { (exit 1); exit 1; }; } ;;
17379 *) ac_config_targets="$ac_config_targets $1"
17380 ac_need_defaults=false ;;
17382 esac
17383 shift
17384 done
17386 ac_configure_extra_args=
17388 if $ac_cs_silent; then
17389 exec 6>/dev/null
17390 ac_configure_extra_args="$ac_configure_extra_args --silent"
17393 _ACEOF
17394 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17395 if \$ac_cs_recheck; then
17396 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17397 shift
17398 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17399 CONFIG_SHELL='$SHELL'
17400 export CONFIG_SHELL
17401 exec "\$@"
17404 _ACEOF
17405 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17406 exec 5>>auto/config.log
17408 echo
17409 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17410 ## Running $as_me. ##
17411 _ASBOX
17412 $as_echo "$ac_log"
17413 } >&5
17415 _ACEOF
17416 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17417 _ACEOF
17419 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17421 # Handling of arguments.
17422 for ac_config_target in $ac_config_targets
17424 case $ac_config_target in
17425 "auto/config.h") CONFIG_HEADERS="$CONFIG_HEADERS auto/config.h:config.h.in" ;;
17426 "auto/config.mk") CONFIG_FILES="$CONFIG_FILES auto/config.mk:config.mk.in" ;;
17428 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17429 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17430 { (exit 1); exit 1; }; };;
17431 esac
17432 done
17435 # If the user did not use the arguments to specify the items to instantiate,
17436 # then the envvar interface is used. Set only those that are not.
17437 # We use the long form for the default assignment because of an extremely
17438 # bizarre bug on SunOS 4.1.3.
17439 if $ac_need_defaults; then
17440 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17441 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17444 # Have a temporary directory for convenience. Make it in the build tree
17445 # simply because there is no reason against having it here, and in addition,
17446 # creating and moving files from /tmp can sometimes cause problems.
17447 # Hook for its removal unless debugging.
17448 # Note that there is a small window in which the directory will not be cleaned:
17449 # after its creation but before its name has been assigned to `$tmp'.
17450 $debug ||
17452 tmp=
17453 trap 'exit_status=$?
17454 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17456 trap '{ (exit 1); exit 1; }' 1 2 13 15
17458 # Create a (secure) tmp directory for tmp files.
17461 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17462 test -n "$tmp" && test -d "$tmp"
17463 } ||
17465 tmp=./conf$$-$RANDOM
17466 (umask 077 && mkdir "$tmp")
17467 } ||
17469 $as_echo "$as_me: cannot create a temporary directory in ." >&2
17470 { (exit 1); exit 1; }
17473 # Set up the scripts for CONFIG_FILES section.
17474 # No need to generate them if there are no CONFIG_FILES.
17475 # This happens for instance with `./config.status config.h'.
17476 if test -n "$CONFIG_FILES"; then
17479 ac_cr=' '
17480 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17481 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17482 ac_cs_awk_cr='\\r'
17483 else
17484 ac_cs_awk_cr=$ac_cr
17487 echo 'BEGIN {' >"$tmp/subs1.awk" &&
17488 _ACEOF
17492 echo "cat >conf$$subs.awk <<_ACEOF" &&
17493 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17494 echo "_ACEOF"
17495 } >conf$$subs.sh ||
17496 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17497 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17498 { (exit 1); exit 1; }; }
17499 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
17500 ac_delim='%!_!# '
17501 for ac_last_try in false false false false false :; do
17502 . ./conf$$subs.sh ||
17503 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17504 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17505 { (exit 1); exit 1; }; }
17507 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
17508 break
17509 elif $ac_last_try; then
17510 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17511 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17512 { (exit 1); exit 1; }; }
17513 else
17514 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17516 done
17517 rm -f conf$$subs.sh
17519 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17520 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
17521 _ACEOF
17522 sed -n '
17524 s/^/S["/; s/!.*/"]=/
17527 s/^[^!]*!//
17528 :repl
17529 t repl
17530 s/'"$ac_delim"'$//
17531 t delim
17534 s/\(.\{148\}\).*/\1/
17535 t more1
17536 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17539 b repl
17540 :more1
17541 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17544 s/.\{148\}//
17545 t nl
17546 :delim
17548 s/\(.\{148\}\).*/\1/
17549 t more2
17550 s/["\\]/\\&/g; s/^/"/; s/$/"/
17553 :more2
17554 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17557 s/.\{148\}//
17558 t delim
17559 ' <conf$$subs.awk | sed '
17560 /^[^""]/{
17562 s/\n//
17564 ' >>$CONFIG_STATUS || ac_write_fail=1
17565 rm -f conf$$subs.awk
17566 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17567 _ACAWK
17568 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
17569 for (key in S) S_is_set[key] = 1
17570 FS = "\a"
17574 line = $ 0
17575 nfields = split(line, field, "@")
17576 substed = 0
17577 len = length(field[1])
17578 for (i = 2; i < nfields; i++) {
17579 key = field[i]
17580 keylen = length(key)
17581 if (S_is_set[key]) {
17582 value = S[key]
17583 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17584 len += length(value) + length(field[++i])
17585 substed = 1
17586 } else
17587 len += 1 + keylen
17590 print line
17593 _ACAWK
17594 _ACEOF
17595 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17596 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17597 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17598 else
17600 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17601 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
17602 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
17603 { (exit 1); exit 1; }; }
17604 _ACEOF
17606 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17607 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17608 # trailing colons and then remove the whole line if VPATH becomes empty
17609 # (actually we leave an empty line to preserve line numbers).
17610 if test "x$srcdir" = x.; then
17611 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17612 s/:*\$(srcdir):*/:/
17613 s/:*\${srcdir}:*/:/
17614 s/:*@srcdir@:*/:/
17615 s/^\([^=]*=[ ]*\):*/\1/
17616 s/:*$//
17617 s/^[^=]*=[ ]*$//
17621 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17622 fi # test -n "$CONFIG_FILES"
17624 # Set up the scripts for CONFIG_HEADERS section.
17625 # No need to generate them if there are no CONFIG_HEADERS.
17626 # This happens for instance with `./config.status Makefile'.
17627 if test -n "$CONFIG_HEADERS"; then
17628 cat >"$tmp/defines.awk" <<\_ACAWK ||
17629 BEGIN {
17630 _ACEOF
17632 # Transform confdefs.h into an awk script `defines.awk', embedded as
17633 # here-document in config.status, that substitutes the proper values into
17634 # config.h.in to produce config.h.
17636 # Create a delimiter string that does not exist in confdefs.h, to ease
17637 # handling of long lines.
17638 ac_delim='%!_!# '
17639 for ac_last_try in false false :; do
17640 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
17641 if test -z "$ac_t"; then
17642 break
17643 elif $ac_last_try; then
17644 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
17645 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
17646 { (exit 1); exit 1; }; }
17647 else
17648 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17650 done
17652 # For the awk script, D is an array of macro values keyed by name,
17653 # likewise P contains macro parameters if any. Preserve backslash
17654 # newline sequences.
17656 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17657 sed -n '
17658 s/.\{148\}/&'"$ac_delim"'/g
17659 t rset
17660 :rset
17661 s/^[ ]*#[ ]*define[ ][ ]*/ /
17662 t def
17664 :def
17665 s/\\$//
17666 t bsnl
17667 s/["\\]/\\&/g
17668 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17669 D["\1"]=" \3"/p
17670 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17672 :bsnl
17673 s/["\\]/\\&/g
17674 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17675 D["\1"]=" \3\\\\\\n"\\/p
17676 t cont
17677 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17678 t cont
17680 :cont
17682 s/.\{148\}/&'"$ac_delim"'/g
17683 t clear
17684 :clear
17685 s/\\$//
17686 t bsnlc
17687 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17689 :bsnlc
17690 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17691 b cont
17692 ' <confdefs.h | sed '
17693 s/'"$ac_delim"'/"\\\
17694 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17696 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17697 for (key in D) D_is_set[key] = 1
17698 FS = "\a"
17700 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17701 line = \$ 0
17702 split(line, arg, " ")
17703 if (arg[1] == "#") {
17704 defundef = arg[2]
17705 mac1 = arg[3]
17706 } else {
17707 defundef = substr(arg[1], 2)
17708 mac1 = arg[2]
17710 split(mac1, mac2, "(") #)
17711 macro = mac2[1]
17712 if (D_is_set[macro]) {
17713 # Preserve the white space surrounding the "#".
17714 prefix = substr(line, 1, index(line, defundef) - 1)
17715 print prefix "define", macro P[macro] D[macro]
17716 next
17717 } else {
17718 # Replace #undef with comments. This is necessary, for example,
17719 # in the case of _POSIX_SOURCE, which is predefined and required
17720 # on some systems where configure will not decide to define it.
17721 if (defundef == "undef") {
17722 print "/*", line, "*/"
17723 next
17727 { print }
17728 _ACAWK
17729 _ACEOF
17730 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17731 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
17732 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
17733 { (exit 1); exit 1; }; }
17734 fi # test -n "$CONFIG_HEADERS"
17737 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
17738 shift
17739 for ac_tag
17741 case $ac_tag in
17742 :[FHLC]) ac_mode=$ac_tag; continue;;
17743 esac
17744 case $ac_mode$ac_tag in
17745 :[FHL]*:*);;
17746 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
17747 $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
17748 { (exit 1); exit 1; }; };;
17749 :[FH]-) ac_tag=-:-;;
17750 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17751 esac
17752 ac_save_IFS=$IFS
17753 IFS=:
17754 set x $ac_tag
17755 IFS=$ac_save_IFS
17756 shift
17757 ac_file=$1
17758 shift
17760 case $ac_mode in
17761 :L) ac_source=$1;;
17762 :[FH])
17763 ac_file_inputs=
17764 for ac_f
17766 case $ac_f in
17767 -) ac_f="$tmp/stdin";;
17768 *) # Look for the file first in the build tree, then in the source tree
17769 # (if the path is not absolute). The absolute path cannot be DOS-style,
17770 # because $ac_f cannot contain `:'.
17771 test -f "$ac_f" ||
17772 case $ac_f in
17773 [\\/$]*) false;;
17774 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17775 esac ||
17776 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
17777 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
17778 { (exit 1); exit 1; }; };;
17779 esac
17780 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17781 ac_file_inputs="$ac_file_inputs '$ac_f'"
17782 done
17784 # Let's still pretend it is `configure' which instantiates (i.e., don't
17785 # use $as_me), people would be surprised to read:
17786 # /* config.h. Generated by config.status. */
17787 configure_input='Generated from '`
17788 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17789 `' by configure.'
17790 if test x"$ac_file" != x-; then
17791 configure_input="$ac_file. $configure_input"
17792 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
17793 $as_echo "$as_me: creating $ac_file" >&6;}
17795 # Neutralize special characters interpreted by sed in replacement strings.
17796 case $configure_input in #(
17797 *\&* | *\|* | *\\* )
17798 ac_sed_conf_input=`$as_echo "$configure_input" |
17799 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17800 *) ac_sed_conf_input=$configure_input;;
17801 esac
17803 case $ac_tag in
17804 *:-:* | *:-) cat >"$tmp/stdin" \
17805 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
17806 $as_echo "$as_me: error: could not create $ac_file" >&2;}
17807 { (exit 1); exit 1; }; } ;;
17808 esac
17810 esac
17812 ac_dir=`$as_dirname -- "$ac_file" ||
17813 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17814 X"$ac_file" : 'X\(//\)[^/]' \| \
17815 X"$ac_file" : 'X\(//\)$' \| \
17816 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17817 $as_echo X"$ac_file" |
17818 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17819 s//\1/
17822 /^X\(\/\/\)[^/].*/{
17823 s//\1/
17826 /^X\(\/\/\)$/{
17827 s//\1/
17830 /^X\(\/\).*/{
17831 s//\1/
17834 s/.*/./; q'`
17835 { as_dir="$ac_dir"
17836 case $as_dir in #(
17837 -*) as_dir=./$as_dir;;
17838 esac
17839 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
17840 as_dirs=
17841 while :; do
17842 case $as_dir in #(
17843 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17844 *) as_qdir=$as_dir;;
17845 esac
17846 as_dirs="'$as_qdir' $as_dirs"
17847 as_dir=`$as_dirname -- "$as_dir" ||
17848 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17849 X"$as_dir" : 'X\(//\)[^/]' \| \
17850 X"$as_dir" : 'X\(//\)$' \| \
17851 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17852 $as_echo X"$as_dir" |
17853 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17854 s//\1/
17857 /^X\(\/\/\)[^/].*/{
17858 s//\1/
17861 /^X\(\/\/\)$/{
17862 s//\1/
17865 /^X\(\/\).*/{
17866 s//\1/
17869 s/.*/./; q'`
17870 test -d "$as_dir" && break
17871 done
17872 test -z "$as_dirs" || eval "mkdir $as_dirs"
17873 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
17874 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
17875 { (exit 1); exit 1; }; }; }
17876 ac_builddir=.
17878 case "$ac_dir" in
17879 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17881 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17882 # A ".." for each directory in $ac_dir_suffix.
17883 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17884 case $ac_top_builddir_sub in
17885 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17886 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17887 esac ;;
17888 esac
17889 ac_abs_top_builddir=$ac_pwd
17890 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17891 # for backward compatibility:
17892 ac_top_builddir=$ac_top_build_prefix
17894 case $srcdir in
17895 .) # We are building in place.
17896 ac_srcdir=.
17897 ac_top_srcdir=$ac_top_builddir_sub
17898 ac_abs_top_srcdir=$ac_pwd ;;
17899 [\\/]* | ?:[\\/]* ) # Absolute name.
17900 ac_srcdir=$srcdir$ac_dir_suffix;
17901 ac_top_srcdir=$srcdir
17902 ac_abs_top_srcdir=$srcdir ;;
17903 *) # Relative name.
17904 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17905 ac_top_srcdir=$ac_top_build_prefix$srcdir
17906 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17907 esac
17908 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17911 case $ac_mode in
17914 # CONFIG_FILE
17917 _ACEOF
17919 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17920 # If the template does not know about datarootdir, expand it.
17921 # FIXME: This hack should be removed a few years after 2.60.
17922 ac_datarootdir_hack=; ac_datarootdir_seen=
17924 ac_sed_dataroot='
17925 /datarootdir/ {
17929 /@datadir@/p
17930 /@docdir@/p
17931 /@infodir@/p
17932 /@localedir@/p
17933 /@mandir@/p
17935 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17936 *datarootdir*) ac_datarootdir_seen=yes;;
17937 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17938 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17939 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17940 _ACEOF
17941 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17942 ac_datarootdir_hack='
17943 s&@datadir@&$datadir&g
17944 s&@docdir@&$docdir&g
17945 s&@infodir@&$infodir&g
17946 s&@localedir@&$localedir&g
17947 s&@mandir@&$mandir&g
17948 s&\\\${datarootdir}&$datarootdir&g' ;;
17949 esac
17950 _ACEOF
17952 # Neutralize VPATH when `$srcdir' = `.'.
17953 # Shell code in configure.ac might set extrasub.
17954 # FIXME: do we really want to maintain this feature?
17955 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17956 ac_sed_extra="$ac_vpsub
17957 $extrasub
17958 _ACEOF
17959 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17961 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17962 s|@configure_input@|$ac_sed_conf_input|;t t
17963 s&@top_builddir@&$ac_top_builddir_sub&;t t
17964 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17965 s&@srcdir@&$ac_srcdir&;t t
17966 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17967 s&@top_srcdir@&$ac_top_srcdir&;t t
17968 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17969 s&@builddir@&$ac_builddir&;t t
17970 s&@abs_builddir@&$ac_abs_builddir&;t t
17971 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17972 $ac_datarootdir_hack
17974 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17975 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
17976 $as_echo "$as_me: error: could not create $ac_file" >&2;}
17977 { (exit 1); exit 1; }; }
17979 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17980 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17981 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17982 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17983 which seems to be undefined. Please make sure it is defined." >&5
17984 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17985 which seems to be undefined. Please make sure it is defined." >&2;}
17987 rm -f "$tmp/stdin"
17988 case $ac_file in
17989 -) cat "$tmp/out" && rm -f "$tmp/out";;
17990 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17991 esac \
17992 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
17993 $as_echo "$as_me: error: could not create $ac_file" >&2;}
17994 { (exit 1); exit 1; }; }
17998 # CONFIG_HEADER
18000 if test x"$ac_file" != x-; then
18002 $as_echo "/* $configure_input */" \
18003 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18004 } >"$tmp/config.h" \
18005 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18006 $as_echo "$as_me: error: could not create $ac_file" >&2;}
18007 { (exit 1); exit 1; }; }
18008 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18009 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18010 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18011 else
18012 rm -f "$ac_file"
18013 mv "$tmp/config.h" "$ac_file" \
18014 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18015 $as_echo "$as_me: error: could not create $ac_file" >&2;}
18016 { (exit 1); exit 1; }; }
18018 else
18019 $as_echo "/* $configure_input */" \
18020 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18021 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
18022 $as_echo "$as_me: error: could not create -" >&2;}
18023 { (exit 1); exit 1; }; }
18028 esac
18030 done # for ac_tag
18033 { (exit 0); exit 0; }
18034 _ACEOF
18035 chmod +x $CONFIG_STATUS
18036 ac_clean_files=$ac_clean_files_save
18038 test $ac_write_fail = 0 ||
18039 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
18040 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
18041 { (exit 1); exit 1; }; }
18044 # configure is writing to config.log, and then calls config.status.
18045 # config.status does its own redirection, appending to config.log.
18046 # Unfortunately, on DOS this fails, as config.log is still kept open
18047 # by configure, so config.status won't be able to write to it; its
18048 # output is simply discarded. So we exec the FD to /dev/null,
18049 # effectively closing config.log, so it can be properly (re)opened and
18050 # appended to by config.status. When coming back to configure, we
18051 # need to make the FD available again.
18052 if test "$no_create" != yes; then
18053 ac_cs_success=:
18054 ac_config_status_args=
18055 test "$silent" = yes &&
18056 ac_config_status_args="$ac_config_status_args --quiet"
18057 exec 5>/dev/null
18058 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18059 exec 5>>auto/config.log
18060 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18061 # would make configure fail if this is the last instruction.
18062 $ac_cs_success || { (exit 1); exit 1; }
18064 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18065 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
18066 $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}