Synced.
[MacVim.git] / src / auto / configure
blobaea0013d4490458eb44a89207a19f440ef7a4a93
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_SRC="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 pwd=`pwd`
5118 tmp_mkf="$pwd/config-PyMake$$"
5119 cat -- "${PYTHON_CONFDIR}/Makefile" - <<'eof' >"${tmp_mkf}"
5121 @echo "python_MODLIBS='$(MODLIBS)'"
5122 @echo "python_LIBS='$(LIBS)'"
5123 @echo "python_SYSLIBS='$(SYSLIBS)'"
5124 @echo "python_LINKFORSHARED='$(LINKFORSHARED)'"
5126 eval "`cd ${PYTHON_CONFDIR} && make -f "${tmp_mkf}" __ | sed '/ directory /d'`"
5127 rm -f -- "${tmp_mkf}"
5128 if test "x$MACOSX" = "xyes" && ${vi_cv_path_python} -c \
5129 "import sys; sys.exit(${vi_cv_var_python_version} < 2.3)"; then
5130 vi_cv_path_python_plibs="-framework Python"
5131 else
5132 if test "${vi_cv_var_python_version}" = "1.4"; then
5133 vi_cv_path_python_plibs="${PYTHON_CONFDIR}/libModules.a ${PYTHON_CONFDIR}/libPython.a ${PYTHON_CONFDIR}/libObjects.a ${PYTHON_CONFDIR}/libParser.a"
5134 else
5135 vi_cv_path_python_plibs="-L${PYTHON_CONFDIR} -lpython${vi_cv_var_python_version}"
5137 vi_cv_path_python_plibs="${vi_cv_path_python_plibs} ${python_MODLIBS} ${python_LIBS} ${python_SYSLIBS} ${python_LINKFORSHARED}"
5138 vi_cv_path_python_plibs=`echo $vi_cv_path_python_plibs | sed s/-ltermcap//`
5144 PYTHON_LIBS="${vi_cv_path_python_plibs}"
5145 if test "${vi_cv_path_python_pfx}" = "${vi_cv_path_python_epfx}"; then
5146 PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version}"
5147 else
5148 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}"
5150 PYTHON_SRC="if_python.c"
5151 if test "x$MACOSX" = "xyes"; then
5152 PYTHON_OBJ="objects/if_python.o"
5153 else
5154 PYTHON_OBJ="objects/if_python.o objects/py_config.o"
5156 if test "${vi_cv_var_python_version}" = "1.4"; then
5157 PYTHON_OBJ="$PYTHON_OBJ objects/py_getpath.o"
5159 PYTHON_GETPATH_CFLAGS="-DPYTHONPATH='\"${vi_cv_path_pythonpath}\"' -DPREFIX='\"${vi_cv_path_python_pfx}\"' -DEXEC_PREFIX='\"${vi_cv_path_python_epfx}\"'"
5161 { $as_echo "$as_me:$LINENO: checking if -pthread should be used" >&5
5162 $as_echo_n "checking if -pthread should be used... " >&6; }
5163 threadsafe_flag=
5164 thread_lib=
5165 if test "`(uname) 2>/dev/null`" != Darwin; then
5166 test "$GCC" = yes && threadsafe_flag="-pthread"
5167 if test "`(uname) 2>/dev/null`" = FreeBSD; then
5168 threadsafe_flag="-D_THREAD_SAFE"
5169 thread_lib="-pthread"
5172 libs_save_old=$LIBS
5173 if test -n "$threadsafe_flag"; then
5174 cflags_save=$CFLAGS
5175 CFLAGS="$CFLAGS $threadsafe_flag"
5176 LIBS="$LIBS $thread_lib"
5177 cat >conftest.$ac_ext <<_ACEOF
5178 /* confdefs.h. */
5179 _ACEOF
5180 cat confdefs.h >>conftest.$ac_ext
5181 cat >>conftest.$ac_ext <<_ACEOF
5182 /* end confdefs.h. */
5185 main ()
5189 return 0;
5191 _ACEOF
5192 rm -f conftest.$ac_objext conftest$ac_exeext
5193 if { (ac_try="$ac_link"
5194 case "(($ac_try" in
5195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5196 *) ac_try_echo=$ac_try;;
5197 esac
5198 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5199 $as_echo "$ac_try_echo") >&5
5200 (eval "$ac_link") 2>conftest.er1
5201 ac_status=$?
5202 grep -v '^ *+' conftest.er1 >conftest.err
5203 rm -f conftest.er1
5204 cat conftest.err >&5
5205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5206 (exit $ac_status); } && {
5207 test -z "$ac_c_werror_flag" ||
5208 test ! -s conftest.err
5209 } && test -s conftest$ac_exeext && {
5210 test "$cross_compiling" = yes ||
5211 $as_test_x conftest$ac_exeext
5212 }; then
5213 { $as_echo "$as_me:$LINENO: result: yes" >&5
5214 $as_echo "yes" >&6; }; PYTHON_CFLAGS="$PYTHON_CFLAGS $threadsafe_flag"
5215 else
5216 $as_echo "$as_me: failed program was:" >&5
5217 sed 's/^/| /' conftest.$ac_ext >&5
5219 { $as_echo "$as_me:$LINENO: result: no" >&5
5220 $as_echo "no" >&6; }; LIBS=$libs_save_old
5224 rm -rf conftest.dSYM
5225 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5226 conftest$ac_exeext conftest.$ac_ext
5227 CFLAGS=$cflags_save
5228 else
5229 { $as_echo "$as_me:$LINENO: result: no" >&5
5230 $as_echo "no" >&6; }
5233 { $as_echo "$as_me:$LINENO: checking if compile and link flags for Python are sane" >&5
5234 $as_echo_n "checking if compile and link flags for Python are sane... " >&6; }
5235 cflags_save=$CFLAGS
5236 libs_save=$LIBS
5237 CFLAGS="$CFLAGS $PYTHON_CFLAGS"
5238 LIBS="$LIBS $PYTHON_LIBS"
5239 cat >conftest.$ac_ext <<_ACEOF
5240 /* confdefs.h. */
5241 _ACEOF
5242 cat confdefs.h >>conftest.$ac_ext
5243 cat >>conftest.$ac_ext <<_ACEOF
5244 /* end confdefs.h. */
5247 main ()
5251 return 0;
5253 _ACEOF
5254 rm -f conftest.$ac_objext conftest$ac_exeext
5255 if { (ac_try="$ac_link"
5256 case "(($ac_try" in
5257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5258 *) ac_try_echo=$ac_try;;
5259 esac
5260 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5261 $as_echo "$ac_try_echo") >&5
5262 (eval "$ac_link") 2>conftest.er1
5263 ac_status=$?
5264 grep -v '^ *+' conftest.er1 >conftest.err
5265 rm -f conftest.er1
5266 cat conftest.err >&5
5267 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5268 (exit $ac_status); } && {
5269 test -z "$ac_c_werror_flag" ||
5270 test ! -s conftest.err
5271 } && test -s conftest$ac_exeext && {
5272 test "$cross_compiling" = yes ||
5273 $as_test_x conftest$ac_exeext
5274 }; then
5275 { $as_echo "$as_me:$LINENO: result: yes" >&5
5276 $as_echo "yes" >&6; }; python_ok=yes
5277 else
5278 $as_echo "$as_me: failed program was:" >&5
5279 sed 's/^/| /' conftest.$ac_ext >&5
5281 { $as_echo "$as_me:$LINENO: result: no: PYTHON DISABLED" >&5
5282 $as_echo "no: PYTHON DISABLED" >&6; }; python_ok=no
5285 rm -rf conftest.dSYM
5286 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5287 conftest$ac_exeext conftest.$ac_ext
5288 CFLAGS=$cflags_save
5289 LIBS=$libs_save
5290 if test $python_ok = yes; then
5291 cat >>confdefs.h <<\_ACEOF
5292 #define FEAT_PYTHON 1
5293 _ACEOF
5295 else
5296 LIBS=$libs_save_old
5297 PYTHON_SRC=
5298 PYTHON_OBJ=
5299 PYTHON_LIBS=
5300 PYTHON_CFLAGS=
5304 else
5305 { $as_echo "$as_me:$LINENO: result: too old" >&5
5306 $as_echo "too old" >&6; }
5317 { $as_echo "$as_me:$LINENO: checking --enable-tclinterp argument" >&5
5318 $as_echo_n "checking --enable-tclinterp argument... " >&6; }
5319 # Check whether --enable-tclinterp was given.
5320 if test "${enable_tclinterp+set}" = set; then
5321 enableval=$enable_tclinterp;
5322 else
5323 enable_tclinterp="no"
5326 { $as_echo "$as_me:$LINENO: result: $enable_tclinterp" >&5
5327 $as_echo "$enable_tclinterp" >&6; }
5329 if test "$enable_tclinterp" = "yes"; then
5331 { $as_echo "$as_me:$LINENO: checking --with-tclsh argument" >&5
5332 $as_echo_n "checking --with-tclsh argument... " >&6; }
5334 # Check whether --with-tclsh was given.
5335 if test "${with_tclsh+set}" = set; then
5336 withval=$with_tclsh; tclsh_name="$withval"; { $as_echo "$as_me:$LINENO: result: $tclsh_name" >&5
5337 $as_echo "$tclsh_name" >&6; }
5338 else
5339 tclsh_name="tclsh8.5"; { $as_echo "$as_me:$LINENO: result: no" >&5
5340 $as_echo "no" >&6; }
5343 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5344 set dummy $tclsh_name; ac_word=$2
5345 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5346 $as_echo_n "checking for $ac_word... " >&6; }
5347 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5348 $as_echo_n "(cached) " >&6
5349 else
5350 case $vi_cv_path_tcl in
5351 [\\/]* | ?:[\\/]*)
5352 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5356 for as_dir in $PATH
5358 IFS=$as_save_IFS
5359 test -z "$as_dir" && as_dir=.
5360 for ac_exec_ext in '' $ac_executable_extensions; do
5361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5362 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5363 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5364 break 2
5366 done
5367 done
5368 IFS=$as_save_IFS
5371 esac
5373 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5374 if test -n "$vi_cv_path_tcl"; then
5375 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5376 $as_echo "$vi_cv_path_tcl" >&6; }
5377 else
5378 { $as_echo "$as_me:$LINENO: result: no" >&5
5379 $as_echo "no" >&6; }
5385 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.5"; then
5386 tclsh_name="tclsh8.4"
5387 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5388 set dummy $tclsh_name; ac_word=$2
5389 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5390 $as_echo_n "checking for $ac_word... " >&6; }
5391 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5392 $as_echo_n "(cached) " >&6
5393 else
5394 case $vi_cv_path_tcl in
5395 [\\/]* | ?:[\\/]*)
5396 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5400 for as_dir in $PATH
5402 IFS=$as_save_IFS
5403 test -z "$as_dir" && as_dir=.
5404 for ac_exec_ext in '' $ac_executable_extensions; do
5405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5406 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5407 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5408 break 2
5410 done
5411 done
5412 IFS=$as_save_IFS
5415 esac
5417 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5418 if test -n "$vi_cv_path_tcl"; then
5419 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5420 $as_echo "$vi_cv_path_tcl" >&6; }
5421 else
5422 { $as_echo "$as_me:$LINENO: result: no" >&5
5423 $as_echo "no" >&6; }
5428 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.4"; then
5429 tclsh_name="tclsh8.2"
5430 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5431 set dummy $tclsh_name; ac_word=$2
5432 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5433 $as_echo_n "checking for $ac_word... " >&6; }
5434 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5435 $as_echo_n "(cached) " >&6
5436 else
5437 case $vi_cv_path_tcl in
5438 [\\/]* | ?:[\\/]*)
5439 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5443 for as_dir in $PATH
5445 IFS=$as_save_IFS
5446 test -z "$as_dir" && as_dir=.
5447 for ac_exec_ext in '' $ac_executable_extensions; do
5448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5449 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5450 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5451 break 2
5453 done
5454 done
5455 IFS=$as_save_IFS
5458 esac
5460 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5461 if test -n "$vi_cv_path_tcl"; then
5462 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5463 $as_echo "$vi_cv_path_tcl" >&6; }
5464 else
5465 { $as_echo "$as_me:$LINENO: result: no" >&5
5466 $as_echo "no" >&6; }
5471 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.2"; then
5472 tclsh_name="tclsh8.0"
5473 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5474 set dummy $tclsh_name; ac_word=$2
5475 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5476 $as_echo_n "checking for $ac_word... " >&6; }
5477 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5478 $as_echo_n "(cached) " >&6
5479 else
5480 case $vi_cv_path_tcl in
5481 [\\/]* | ?:[\\/]*)
5482 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5486 for as_dir in $PATH
5488 IFS=$as_save_IFS
5489 test -z "$as_dir" && as_dir=.
5490 for ac_exec_ext in '' $ac_executable_extensions; do
5491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5492 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5493 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5494 break 2
5496 done
5497 done
5498 IFS=$as_save_IFS
5501 esac
5503 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5504 if test -n "$vi_cv_path_tcl"; then
5505 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5506 $as_echo "$vi_cv_path_tcl" >&6; }
5507 else
5508 { $as_echo "$as_me:$LINENO: result: no" >&5
5509 $as_echo "no" >&6; }
5514 if test "X$vi_cv_path_tcl" = "X"; then
5515 tclsh_name="tclsh"
5516 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5517 set dummy $tclsh_name; ac_word=$2
5518 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5519 $as_echo_n "checking for $ac_word... " >&6; }
5520 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5521 $as_echo_n "(cached) " >&6
5522 else
5523 case $vi_cv_path_tcl in
5524 [\\/]* | ?:[\\/]*)
5525 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5529 for as_dir in $PATH
5531 IFS=$as_save_IFS
5532 test -z "$as_dir" && as_dir=.
5533 for ac_exec_ext in '' $ac_executable_extensions; do
5534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5535 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5536 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5537 break 2
5539 done
5540 done
5541 IFS=$as_save_IFS
5544 esac
5546 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5547 if test -n "$vi_cv_path_tcl"; then
5548 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5549 $as_echo "$vi_cv_path_tcl" >&6; }
5550 else
5551 { $as_echo "$as_me:$LINENO: result: no" >&5
5552 $as_echo "no" >&6; }
5557 if test "X$vi_cv_path_tcl" != "X"; then
5558 { $as_echo "$as_me:$LINENO: checking Tcl version" >&5
5559 $as_echo_n "checking Tcl version... " >&6; }
5560 if echo 'exit [expr [info tclversion] < 8.0]' | $vi_cv_path_tcl - ; then
5561 tclver=`echo 'puts [info tclversion]' | $vi_cv_path_tcl -`
5562 { $as_echo "$as_me:$LINENO: result: $tclver - OK" >&5
5563 $as_echo "$tclver - OK" >&6; };
5564 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 -`
5566 { $as_echo "$as_me:$LINENO: checking for location of Tcl include" >&5
5567 $as_echo_n "checking for location of Tcl include... " >&6; }
5568 if test "x$MACOSX" != "xyes"; then
5569 tclinc="$tclloc/include $tclloc/include/tcl $tclloc/include/tcl$tclver /usr/local/include /usr/local/include/tcl$tclver /usr/include /usr/include/tcl$tclver"
5570 else
5571 tclinc="/System/Library/Frameworks/Tcl.framework/Headers"
5573 TCL_INC=
5574 for try in $tclinc; do
5575 if test -f "$try/tcl.h"; then
5576 { $as_echo "$as_me:$LINENO: result: $try/tcl.h" >&5
5577 $as_echo "$try/tcl.h" >&6; }
5578 TCL_INC=$try
5579 break
5581 done
5582 if test -z "$TCL_INC"; then
5583 { $as_echo "$as_me:$LINENO: result: <not found>" >&5
5584 $as_echo "<not found>" >&6; }
5585 SKIP_TCL=YES
5587 if test -z "$SKIP_TCL"; then
5588 { $as_echo "$as_me:$LINENO: checking for location of tclConfig.sh script" >&5
5589 $as_echo_n "checking for location of tclConfig.sh script... " >&6; }
5590 if test "x$MACOSX" != "xyes"; then
5591 tclcnf=`echo $tclinc | sed s/include/lib/g`
5592 tclcnf="$tclcnf `echo $tclinc | sed s/include/lib64/g`"
5593 else
5594 tclcnf="/System/Library/Frameworks/Tcl.framework"
5596 for try in $tclcnf; do
5597 if test -f $try/tclConfig.sh; then
5598 { $as_echo "$as_me:$LINENO: result: $try/tclConfig.sh" >&5
5599 $as_echo "$try/tclConfig.sh" >&6; }
5600 . $try/tclConfig.sh
5601 TCL_LIBS=`eval echo "$TCL_LIB_SPEC $TCL_LIBS"`
5602 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'`
5603 break
5605 done
5606 if test -z "$TCL_LIBS"; then
5607 { $as_echo "$as_me:$LINENO: result: <not found>" >&5
5608 $as_echo "<not found>" >&6; }
5609 { $as_echo "$as_me:$LINENO: checking for Tcl library by myself" >&5
5610 $as_echo_n "checking for Tcl library by myself... " >&6; }
5611 tcllib=`echo $tclinc | sed s/include/lib/g`
5612 tcllib="$tcllib `echo $tclinc | sed s/include/lib64/g`"
5613 for ext in .so .a ; do
5614 for ver in "" $tclver ; do
5615 for try in $tcllib ; do
5616 trylib=tcl$ver$ext
5617 if test -f $try/lib$trylib ; then
5618 { $as_echo "$as_me:$LINENO: result: $try/lib$trylib" >&5
5619 $as_echo "$try/lib$trylib" >&6; }
5620 TCL_LIBS="-L$try -ltcl$ver -ldl -lm"
5621 if test "`(uname) 2>/dev/null`" = SunOS &&
5622 uname -r | grep '^5' >/dev/null; then
5623 TCL_LIBS="$TCL_LIBS -R $try"
5625 break 3
5627 done
5628 done
5629 done
5630 if test -z "$TCL_LIBS"; then
5631 { $as_echo "$as_me:$LINENO: result: <not found>" >&5
5632 $as_echo "<not found>" >&6; }
5633 SKIP_TCL=YES
5636 if test -z "$SKIP_TCL"; then
5637 cat >>confdefs.h <<\_ACEOF
5638 #define FEAT_TCL 1
5639 _ACEOF
5641 TCL_SRC=if_tcl.c
5642 TCL_OBJ=objects/if_tcl.o
5643 TCL_PRO=if_tcl.pro
5644 TCL_CFLAGS="-I$TCL_INC $TCL_DEFS"
5647 else
5648 { $as_echo "$as_me:$LINENO: result: too old; need Tcl version 8.0 or later" >&5
5649 $as_echo "too old; need Tcl version 8.0 or later" >&6; }
5659 { $as_echo "$as_me:$LINENO: checking --enable-rubyinterp argument" >&5
5660 $as_echo_n "checking --enable-rubyinterp argument... " >&6; }
5661 # Check whether --enable-rubyinterp was given.
5662 if test "${enable_rubyinterp+set}" = set; then
5663 enableval=$enable_rubyinterp;
5664 else
5665 enable_rubyinterp="no"
5668 { $as_echo "$as_me:$LINENO: result: $enable_rubyinterp" >&5
5669 $as_echo "$enable_rubyinterp" >&6; }
5670 if test "$enable_rubyinterp" = "yes"; then
5672 # Extract the first word of "ruby", so it can be a program name with args.
5673 set dummy ruby; ac_word=$2
5674 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5675 $as_echo_n "checking for $ac_word... " >&6; }
5676 if test "${ac_cv_path_vi_cv_path_ruby+set}" = set; then
5677 $as_echo_n "(cached) " >&6
5678 else
5679 case $vi_cv_path_ruby in
5680 [\\/]* | ?:[\\/]*)
5681 ac_cv_path_vi_cv_path_ruby="$vi_cv_path_ruby" # Let the user override the test with a path.
5684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5685 for as_dir in $PATH
5687 IFS=$as_save_IFS
5688 test -z "$as_dir" && as_dir=.
5689 for ac_exec_ext in '' $ac_executable_extensions; do
5690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5691 ac_cv_path_vi_cv_path_ruby="$as_dir/$ac_word$ac_exec_ext"
5692 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5693 break 2
5695 done
5696 done
5697 IFS=$as_save_IFS
5700 esac
5702 vi_cv_path_ruby=$ac_cv_path_vi_cv_path_ruby
5703 if test -n "$vi_cv_path_ruby"; then
5704 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_ruby" >&5
5705 $as_echo "$vi_cv_path_ruby" >&6; }
5706 else
5707 { $as_echo "$as_me:$LINENO: result: no" >&5
5708 $as_echo "no" >&6; }
5712 if test "X$vi_cv_path_ruby" != "X"; then
5713 { $as_echo "$as_me:$LINENO: checking Ruby version" >&5
5714 $as_echo_n "checking Ruby version... " >&6; }
5715 if $vi_cv_path_ruby -e '(VERSION rescue RUBY_VERSION) >= "1.6.0" or exit 1' >/dev/null 2>/dev/null; then
5716 { $as_echo "$as_me:$LINENO: result: OK" >&5
5717 $as_echo "OK" >&6; }
5718 { $as_echo "$as_me:$LINENO: checking Ruby header files" >&5
5719 $as_echo_n "checking Ruby header files... " >&6; }
5720 rubyhdrdir=`$vi_cv_path_ruby -r mkmf -e 'print Config::CONFIG["archdir"] || $hdrdir' 2>/dev/null`
5721 if test "X$rubyhdrdir" != "X"; then
5722 { $as_echo "$as_me:$LINENO: result: $rubyhdrdir" >&5
5723 $as_echo "$rubyhdrdir" >&6; }
5724 RUBY_CFLAGS="-I$rubyhdrdir"
5725 rubylibs=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LIBS"]'`
5726 if test "X$rubylibs" != "X"; then
5727 RUBY_LIBS="$rubylibs"
5729 librubyarg=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["LIBRUBYARG"])'`
5730 if test -f "$rubyhdrdir/$librubyarg"; then
5731 librubyarg="$rubyhdrdir/$librubyarg"
5732 else
5733 rubylibdir=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["libdir"])'`
5734 if test -f "$rubylibdir/$librubyarg"; then
5735 librubyarg="$rubylibdir/$librubyarg"
5736 elif test "$librubyarg" = "libruby.a"; then
5737 librubyarg="-lruby"
5738 else
5739 librubyarg=`$vi_cv_path_ruby -r rbconfig -e "print '$librubyarg'.gsub(/-L\./, %'-L#{Config.expand(Config::CONFIG[\"libdir\"])}')"`
5743 if test "X$librubyarg" != "X"; then
5744 RUBY_LIBS="$librubyarg $RUBY_LIBS"
5746 rubyldflags=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LDFLAGS"]'`
5747 if test "X$rubyldflags" != "X"; then
5748 LDFLAGS="$rubyldflags $LDFLAGS"
5750 RUBY_SRC="if_ruby.c"
5751 RUBY_OBJ="objects/if_ruby.o"
5752 RUBY_PRO="if_ruby.pro"
5753 cat >>confdefs.h <<\_ACEOF
5754 #define FEAT_RUBY 1
5755 _ACEOF
5757 else
5758 { $as_echo "$as_me:$LINENO: result: not found" >&5
5759 $as_echo "not found" >&6; }
5761 else
5762 { $as_echo "$as_me:$LINENO: result: too old; need Ruby version 1.6.0 or later" >&5
5763 $as_echo "too old; need Ruby version 1.6.0 or later" >&6; }
5773 { $as_echo "$as_me:$LINENO: checking --enable-cscope argument" >&5
5774 $as_echo_n "checking --enable-cscope argument... " >&6; }
5775 # Check whether --enable-cscope was given.
5776 if test "${enable_cscope+set}" = set; then
5777 enableval=$enable_cscope;
5778 else
5779 enable_cscope="no"
5782 { $as_echo "$as_me:$LINENO: result: $enable_cscope" >&5
5783 $as_echo "$enable_cscope" >&6; }
5784 if test "$enable_cscope" = "yes"; then
5785 cat >>confdefs.h <<\_ACEOF
5786 #define FEAT_CSCOPE 1
5787 _ACEOF
5791 { $as_echo "$as_me:$LINENO: checking --enable-workshop argument" >&5
5792 $as_echo_n "checking --enable-workshop argument... " >&6; }
5793 # Check whether --enable-workshop was given.
5794 if test "${enable_workshop+set}" = set; then
5795 enableval=$enable_workshop;
5796 else
5797 enable_workshop="no"
5800 { $as_echo "$as_me:$LINENO: result: $enable_workshop" >&5
5801 $as_echo "$enable_workshop" >&6; }
5802 if test "$enable_workshop" = "yes"; then
5803 cat >>confdefs.h <<\_ACEOF
5804 #define FEAT_SUN_WORKSHOP 1
5805 _ACEOF
5807 WORKSHOP_SRC="workshop.c integration.c"
5809 WORKSHOP_OBJ="objects/workshop.o objects/integration.o"
5811 if test "${enable_gui-xxx}" = xxx; then
5812 enable_gui=motif
5816 { $as_echo "$as_me:$LINENO: checking --disable-netbeans argument" >&5
5817 $as_echo_n "checking --disable-netbeans argument... " >&6; }
5818 # Check whether --enable-netbeans was given.
5819 if test "${enable_netbeans+set}" = set; then
5820 enableval=$enable_netbeans;
5821 else
5822 enable_netbeans="yes"
5825 if test "$enable_netbeans" = "yes"; then
5826 { $as_echo "$as_me:$LINENO: result: no" >&5
5827 $as_echo "no" >&6; }
5829 { $as_echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
5830 $as_echo_n "checking for socket in -lsocket... " >&6; }
5831 if test "${ac_cv_lib_socket_socket+set}" = set; then
5832 $as_echo_n "(cached) " >&6
5833 else
5834 ac_check_lib_save_LIBS=$LIBS
5835 LIBS="-lsocket $LIBS"
5836 cat >conftest.$ac_ext <<_ACEOF
5837 /* confdefs.h. */
5838 _ACEOF
5839 cat confdefs.h >>conftest.$ac_ext
5840 cat >>conftest.$ac_ext <<_ACEOF
5841 /* end confdefs.h. */
5843 /* Override any GCC internal prototype to avoid an error.
5844 Use char because int might match the return type of a GCC
5845 builtin and then its argument prototype would still apply. */
5846 #ifdef __cplusplus
5847 extern "C"
5848 #endif
5849 char socket ();
5851 main ()
5853 return socket ();
5855 return 0;
5857 _ACEOF
5858 rm -f conftest.$ac_objext conftest$ac_exeext
5859 if { (ac_try="$ac_link"
5860 case "(($ac_try" in
5861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5862 *) ac_try_echo=$ac_try;;
5863 esac
5864 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5865 $as_echo "$ac_try_echo") >&5
5866 (eval "$ac_link") 2>conftest.er1
5867 ac_status=$?
5868 grep -v '^ *+' conftest.er1 >conftest.err
5869 rm -f conftest.er1
5870 cat conftest.err >&5
5871 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872 (exit $ac_status); } && {
5873 test -z "$ac_c_werror_flag" ||
5874 test ! -s conftest.err
5875 } && test -s conftest$ac_exeext && {
5876 test "$cross_compiling" = yes ||
5877 $as_test_x conftest$ac_exeext
5878 }; then
5879 ac_cv_lib_socket_socket=yes
5880 else
5881 $as_echo "$as_me: failed program was:" >&5
5882 sed 's/^/| /' conftest.$ac_ext >&5
5884 ac_cv_lib_socket_socket=no
5887 rm -rf conftest.dSYM
5888 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5889 conftest$ac_exeext conftest.$ac_ext
5890 LIBS=$ac_check_lib_save_LIBS
5892 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
5893 $as_echo "$ac_cv_lib_socket_socket" >&6; }
5894 if test $ac_cv_lib_socket_socket = yes; then
5895 cat >>confdefs.h <<_ACEOF
5896 #define HAVE_LIBSOCKET 1
5897 _ACEOF
5899 LIBS="-lsocket $LIBS"
5904 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5905 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
5906 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5907 $as_echo_n "(cached) " >&6
5908 else
5909 ac_check_lib_save_LIBS=$LIBS
5910 LIBS="-lnsl $LIBS"
5911 cat >conftest.$ac_ext <<_ACEOF
5912 /* confdefs.h. */
5913 _ACEOF
5914 cat confdefs.h >>conftest.$ac_ext
5915 cat >>conftest.$ac_ext <<_ACEOF
5916 /* end confdefs.h. */
5918 /* Override any GCC internal prototype to avoid an error.
5919 Use char because int might match the return type of a GCC
5920 builtin and then its argument prototype would still apply. */
5921 #ifdef __cplusplus
5922 extern "C"
5923 #endif
5924 char gethostbyname ();
5926 main ()
5928 return gethostbyname ();
5930 return 0;
5932 _ACEOF
5933 rm -f conftest.$ac_objext conftest$ac_exeext
5934 if { (ac_try="$ac_link"
5935 case "(($ac_try" in
5936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5937 *) ac_try_echo=$ac_try;;
5938 esac
5939 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5940 $as_echo "$ac_try_echo") >&5
5941 (eval "$ac_link") 2>conftest.er1
5942 ac_status=$?
5943 grep -v '^ *+' conftest.er1 >conftest.err
5944 rm -f conftest.er1
5945 cat conftest.err >&5
5946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5947 (exit $ac_status); } && {
5948 test -z "$ac_c_werror_flag" ||
5949 test ! -s conftest.err
5950 } && test -s conftest$ac_exeext && {
5951 test "$cross_compiling" = yes ||
5952 $as_test_x conftest$ac_exeext
5953 }; then
5954 ac_cv_lib_nsl_gethostbyname=yes
5955 else
5956 $as_echo "$as_me: failed program was:" >&5
5957 sed 's/^/| /' conftest.$ac_ext >&5
5959 ac_cv_lib_nsl_gethostbyname=no
5962 rm -rf conftest.dSYM
5963 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5964 conftest$ac_exeext conftest.$ac_ext
5965 LIBS=$ac_check_lib_save_LIBS
5967 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5968 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
5969 if test $ac_cv_lib_nsl_gethostbyname = yes; then
5970 cat >>confdefs.h <<_ACEOF
5971 #define HAVE_LIBNSL 1
5972 _ACEOF
5974 LIBS="-lnsl $LIBS"
5978 { $as_echo "$as_me:$LINENO: checking whether compiling netbeans integration is possible" >&5
5979 $as_echo_n "checking whether compiling netbeans integration is possible... " >&6; }
5980 cat >conftest.$ac_ext <<_ACEOF
5981 /* confdefs.h. */
5982 _ACEOF
5983 cat confdefs.h >>conftest.$ac_ext
5984 cat >>conftest.$ac_ext <<_ACEOF
5985 /* end confdefs.h. */
5987 #include <stdio.h>
5988 #include <stdlib.h>
5989 #include <stdarg.h>
5990 #include <fcntl.h>
5991 #include <netdb.h>
5992 #include <netinet/in.h>
5993 #include <errno.h>
5994 #include <sys/types.h>
5995 #include <sys/socket.h>
5996 /* Check bitfields */
5997 struct nbbuf {
5998 unsigned int initDone:1;
5999 ushort signmaplen;
6003 main ()
6006 /* Check creating a socket. */
6007 struct sockaddr_in server;
6008 (void)socket(AF_INET, SOCK_STREAM, 0);
6009 (void)htons(100);
6010 (void)gethostbyname("microsoft.com");
6011 if (errno == ECONNREFUSED)
6012 (void)connect(1, (struct sockaddr *)&server, sizeof(server));
6015 return 0;
6017 _ACEOF
6018 rm -f conftest.$ac_objext conftest$ac_exeext
6019 if { (ac_try="$ac_link"
6020 case "(($ac_try" in
6021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6022 *) ac_try_echo=$ac_try;;
6023 esac
6024 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6025 $as_echo "$ac_try_echo") >&5
6026 (eval "$ac_link") 2>conftest.er1
6027 ac_status=$?
6028 grep -v '^ *+' conftest.er1 >conftest.err
6029 rm -f conftest.er1
6030 cat conftest.err >&5
6031 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032 (exit $ac_status); } && {
6033 test -z "$ac_c_werror_flag" ||
6034 test ! -s conftest.err
6035 } && test -s conftest$ac_exeext && {
6036 test "$cross_compiling" = yes ||
6037 $as_test_x conftest$ac_exeext
6038 }; then
6039 { $as_echo "$as_me:$LINENO: result: yes" >&5
6040 $as_echo "yes" >&6; }
6041 else
6042 $as_echo "$as_me: failed program was:" >&5
6043 sed 's/^/| /' conftest.$ac_ext >&5
6045 { $as_echo "$as_me:$LINENO: result: no" >&5
6046 $as_echo "no" >&6; }; enable_netbeans="no"
6049 rm -rf conftest.dSYM
6050 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6051 conftest$ac_exeext conftest.$ac_ext
6052 else
6053 { $as_echo "$as_me:$LINENO: result: yes" >&5
6054 $as_echo "yes" >&6; }
6056 if test "$enable_netbeans" = "yes"; then
6057 cat >>confdefs.h <<\_ACEOF
6058 #define FEAT_NETBEANS_INTG 1
6059 _ACEOF
6061 NETBEANS_SRC="netbeans.c"
6063 NETBEANS_OBJ="objects/netbeans.o"
6067 { $as_echo "$as_me:$LINENO: checking --enable-sniff argument" >&5
6068 $as_echo_n "checking --enable-sniff argument... " >&6; }
6069 # Check whether --enable-sniff was given.
6070 if test "${enable_sniff+set}" = set; then
6071 enableval=$enable_sniff;
6072 else
6073 enable_sniff="no"
6076 { $as_echo "$as_me:$LINENO: result: $enable_sniff" >&5
6077 $as_echo "$enable_sniff" >&6; }
6078 if test "$enable_sniff" = "yes"; then
6079 cat >>confdefs.h <<\_ACEOF
6080 #define FEAT_SNIFF 1
6081 _ACEOF
6083 SNIFF_SRC="if_sniff.c"
6085 SNIFF_OBJ="objects/if_sniff.o"
6089 { $as_echo "$as_me:$LINENO: checking --enable-multibyte argument" >&5
6090 $as_echo_n "checking --enable-multibyte argument... " >&6; }
6091 # Check whether --enable-multibyte was given.
6092 if test "${enable_multibyte+set}" = set; then
6093 enableval=$enable_multibyte;
6094 else
6095 enable_multibyte="no"
6098 { $as_echo "$as_me:$LINENO: result: $enable_multibyte" >&5
6099 $as_echo "$enable_multibyte" >&6; }
6100 if test "$enable_multibyte" = "yes"; then
6101 cat >>confdefs.h <<\_ACEOF
6102 #define FEAT_MBYTE 1
6103 _ACEOF
6107 { $as_echo "$as_me:$LINENO: checking --enable-hangulinput argument" >&5
6108 $as_echo_n "checking --enable-hangulinput argument... " >&6; }
6109 # Check whether --enable-hangulinput was given.
6110 if test "${enable_hangulinput+set}" = set; then
6111 enableval=$enable_hangulinput;
6112 else
6113 enable_hangulinput="no"
6116 { $as_echo "$as_me:$LINENO: result: $enable_hangulinput" >&5
6117 $as_echo "$enable_hangulinput" >&6; }
6119 { $as_echo "$as_me:$LINENO: checking --enable-xim argument" >&5
6120 $as_echo_n "checking --enable-xim argument... " >&6; }
6121 # Check whether --enable-xim was given.
6122 if test "${enable_xim+set}" = set; then
6123 enableval=$enable_xim; { $as_echo "$as_me:$LINENO: result: $enable_xim" >&5
6124 $as_echo "$enable_xim" >&6; }
6125 else
6126 enable_xim="auto"; { $as_echo "$as_me:$LINENO: result: defaulting to auto" >&5
6127 $as_echo "defaulting to auto" >&6; }
6131 { $as_echo "$as_me:$LINENO: checking --enable-fontset argument" >&5
6132 $as_echo_n "checking --enable-fontset argument... " >&6; }
6133 # Check whether --enable-fontset was given.
6134 if test "${enable_fontset+set}" = set; then
6135 enableval=$enable_fontset;
6136 else
6137 enable_fontset="no"
6140 { $as_echo "$as_me:$LINENO: result: $enable_fontset" >&5
6141 $as_echo "$enable_fontset" >&6; }
6143 test -z "$with_x" && with_x=yes
6144 test "${enable_gui-yes}" != no -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && with_x=yes
6145 if test "$with_x" = no; then
6146 { $as_echo "$as_me:$LINENO: result: defaulting to: don't HAVE_X11" >&5
6147 $as_echo "defaulting to: don't HAVE_X11" >&6; }
6148 else
6150 # Extract the first word of "xmkmf", so it can be a program name with args.
6151 set dummy xmkmf; ac_word=$2
6152 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6153 $as_echo_n "checking for $ac_word... " >&6; }
6154 if test "${ac_cv_path_xmkmfpath+set}" = set; then
6155 $as_echo_n "(cached) " >&6
6156 else
6157 case $xmkmfpath in
6158 [\\/]* | ?:[\\/]*)
6159 ac_cv_path_xmkmfpath="$xmkmfpath" # Let the user override the test with a path.
6162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6163 for as_dir in $PATH
6165 IFS=$as_save_IFS
6166 test -z "$as_dir" && as_dir=.
6167 for ac_exec_ext in '' $ac_executable_extensions; do
6168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6169 ac_cv_path_xmkmfpath="$as_dir/$ac_word$ac_exec_ext"
6170 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6171 break 2
6173 done
6174 done
6175 IFS=$as_save_IFS
6178 esac
6180 xmkmfpath=$ac_cv_path_xmkmfpath
6181 if test -n "$xmkmfpath"; then
6182 { $as_echo "$as_me:$LINENO: result: $xmkmfpath" >&5
6183 $as_echo "$xmkmfpath" >&6; }
6184 else
6185 { $as_echo "$as_me:$LINENO: result: no" >&5
6186 $as_echo "no" >&6; }
6191 { $as_echo "$as_me:$LINENO: checking for X" >&5
6192 $as_echo_n "checking for X... " >&6; }
6195 # Check whether --with-x was given.
6196 if test "${with_x+set}" = set; then
6197 withval=$with_x;
6200 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6201 if test "x$with_x" = xno; then
6202 # The user explicitly disabled X.
6203 have_x=disabled
6204 else
6205 case $x_includes,$x_libraries in #(
6206 *\'*) { { $as_echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
6207 $as_echo "$as_me: error: Cannot use X directory names containing '" >&2;}
6208 { (exit 1); exit 1; }; };; #(
6209 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
6210 $as_echo_n "(cached) " >&6
6211 else
6212 # One or both of the vars are not set, and there is no cached value.
6213 ac_x_includes=no ac_x_libraries=no
6214 rm -f -r conftest.dir
6215 if mkdir conftest.dir; then
6216 cd conftest.dir
6217 cat >Imakefile <<'_ACEOF'
6218 incroot:
6219 @echo incroot='${INCROOT}'
6220 usrlibdir:
6221 @echo usrlibdir='${USRLIBDIR}'
6222 libdir:
6223 @echo libdir='${LIBDIR}'
6224 _ACEOF
6225 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
6226 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6227 for ac_var in incroot usrlibdir libdir; do
6228 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
6229 done
6230 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6231 for ac_extension in a so sl dylib la dll; do
6232 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
6233 test -f "$ac_im_libdir/libX11.$ac_extension"; then
6234 ac_im_usrlibdir=$ac_im_libdir; break
6236 done
6237 # Screen out bogus values from the imake configuration. They are
6238 # bogus both because they are the default anyway, and because
6239 # using them would break gcc on systems where it needs fixed includes.
6240 case $ac_im_incroot in
6241 /usr/include) ac_x_includes= ;;
6242 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6243 esac
6244 case $ac_im_usrlibdir in
6245 /usr/lib | /lib) ;;
6246 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6247 esac
6249 cd ..
6250 rm -f -r conftest.dir
6253 # Standard set of common directories for X headers.
6254 # Check X11 before X11Rn because it is often a symlink to the current release.
6255 ac_x_header_dirs='
6256 /usr/X11/include
6257 /usr/X11R6/include
6258 /usr/X11R5/include
6259 /usr/X11R4/include
6261 /usr/include/X11
6262 /usr/include/X11R6
6263 /usr/include/X11R5
6264 /usr/include/X11R4
6266 /usr/local/X11/include
6267 /usr/local/X11R6/include
6268 /usr/local/X11R5/include
6269 /usr/local/X11R4/include
6271 /usr/local/include/X11
6272 /usr/local/include/X11R6
6273 /usr/local/include/X11R5
6274 /usr/local/include/X11R4
6276 /usr/X386/include
6277 /usr/x386/include
6278 /usr/XFree86/include/X11
6280 /usr/include
6281 /usr/local/include
6282 /usr/unsupported/include
6283 /usr/athena/include
6284 /usr/local/x11r5/include
6285 /usr/lpp/Xamples/include
6287 /usr/openwin/include
6288 /usr/openwin/share/include'
6290 if test "$ac_x_includes" = no; then
6291 # Guess where to find include files, by looking for Xlib.h.
6292 # First, try using that file with no special directory specified.
6293 cat >conftest.$ac_ext <<_ACEOF
6294 /* confdefs.h. */
6295 _ACEOF
6296 cat confdefs.h >>conftest.$ac_ext
6297 cat >>conftest.$ac_ext <<_ACEOF
6298 /* end confdefs.h. */
6299 #include <X11/Xlib.h>
6300 _ACEOF
6301 if { (ac_try="$ac_cpp conftest.$ac_ext"
6302 case "(($ac_try" in
6303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6304 *) ac_try_echo=$ac_try;;
6305 esac
6306 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6307 $as_echo "$ac_try_echo") >&5
6308 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6309 ac_status=$?
6310 grep -v '^ *+' conftest.er1 >conftest.err
6311 rm -f conftest.er1
6312 cat conftest.err >&5
6313 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6314 (exit $ac_status); } >/dev/null && {
6315 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6316 test ! -s conftest.err
6317 }; then
6318 # We can compile using X headers with no special include directory.
6319 ac_x_includes=
6320 else
6321 $as_echo "$as_me: failed program was:" >&5
6322 sed 's/^/| /' conftest.$ac_ext >&5
6324 for ac_dir in $ac_x_header_dirs; do
6325 if test -r "$ac_dir/X11/Xlib.h"; then
6326 ac_x_includes=$ac_dir
6327 break
6329 done
6332 rm -f conftest.err conftest.$ac_ext
6333 fi # $ac_x_includes = no
6335 if test "$ac_x_libraries" = no; then
6336 # Check for the libraries.
6337 # See if we find them without any special options.
6338 # Don't add to $LIBS permanently.
6339 ac_save_LIBS=$LIBS
6340 LIBS="-lX11 $LIBS"
6341 cat >conftest.$ac_ext <<_ACEOF
6342 /* confdefs.h. */
6343 _ACEOF
6344 cat confdefs.h >>conftest.$ac_ext
6345 cat >>conftest.$ac_ext <<_ACEOF
6346 /* end confdefs.h. */
6347 #include <X11/Xlib.h>
6349 main ()
6351 XrmInitialize ()
6353 return 0;
6355 _ACEOF
6356 rm -f conftest.$ac_objext conftest$ac_exeext
6357 if { (ac_try="$ac_link"
6358 case "(($ac_try" in
6359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6360 *) ac_try_echo=$ac_try;;
6361 esac
6362 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6363 $as_echo "$ac_try_echo") >&5
6364 (eval "$ac_link") 2>conftest.er1
6365 ac_status=$?
6366 grep -v '^ *+' conftest.er1 >conftest.err
6367 rm -f conftest.er1
6368 cat conftest.err >&5
6369 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6370 (exit $ac_status); } && {
6371 test -z "$ac_c_werror_flag" ||
6372 test ! -s conftest.err
6373 } && test -s conftest$ac_exeext && {
6374 test "$cross_compiling" = yes ||
6375 $as_test_x conftest$ac_exeext
6376 }; then
6377 LIBS=$ac_save_LIBS
6378 # We can link X programs with no special library path.
6379 ac_x_libraries=
6380 else
6381 $as_echo "$as_me: failed program was:" >&5
6382 sed 's/^/| /' conftest.$ac_ext >&5
6384 LIBS=$ac_save_LIBS
6385 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6387 # Don't even attempt the hair of trying to link an X program!
6388 for ac_extension in a so sl dylib la dll; do
6389 if test -r "$ac_dir/libX11.$ac_extension"; then
6390 ac_x_libraries=$ac_dir
6391 break 2
6393 done
6394 done
6397 rm -rf conftest.dSYM
6398 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6399 conftest$ac_exeext conftest.$ac_ext
6400 fi # $ac_x_libraries = no
6402 case $ac_x_includes,$ac_x_libraries in #(
6403 no,* | *,no | *\'*)
6404 # Didn't find X, or a directory has "'" in its name.
6405 ac_cv_have_x="have_x=no";; #(
6407 # Record where we found X for the cache.
6408 ac_cv_have_x="have_x=yes\
6409 ac_x_includes='$ac_x_includes'\
6410 ac_x_libraries='$ac_x_libraries'"
6411 esac
6413 ;; #(
6414 *) have_x=yes;;
6415 esac
6416 eval "$ac_cv_have_x"
6417 fi # $with_x != no
6419 if test "$have_x" != yes; then
6420 { $as_echo "$as_me:$LINENO: result: $have_x" >&5
6421 $as_echo "$have_x" >&6; }
6422 no_x=yes
6423 else
6424 # If each of the values was on the command line, it overrides each guess.
6425 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6426 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6427 # Update the cache value to reflect the command line values.
6428 ac_cv_have_x="have_x=yes\
6429 ac_x_includes='$x_includes'\
6430 ac_x_libraries='$x_libraries'"
6431 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6432 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
6435 if test "$no_x" = yes; then
6436 # Not all programs may use this symbol, but it does not hurt to define it.
6438 cat >>confdefs.h <<\_ACEOF
6439 #define X_DISPLAY_MISSING 1
6440 _ACEOF
6442 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6443 else
6444 if test -n "$x_includes"; then
6445 X_CFLAGS="$X_CFLAGS -I$x_includes"
6448 # It would also be nice to do this for all -L options, not just this one.
6449 if test -n "$x_libraries"; then
6450 X_LIBS="$X_LIBS -L$x_libraries"
6451 # For Solaris; some versions of Sun CC require a space after -R and
6452 # others require no space. Words are not sufficient . . . .
6453 { $as_echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
6454 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
6455 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
6456 ac_xsave_c_werror_flag=$ac_c_werror_flag
6457 ac_c_werror_flag=yes
6458 cat >conftest.$ac_ext <<_ACEOF
6459 /* confdefs.h. */
6460 _ACEOF
6461 cat confdefs.h >>conftest.$ac_ext
6462 cat >>conftest.$ac_ext <<_ACEOF
6463 /* end confdefs.h. */
6466 main ()
6470 return 0;
6472 _ACEOF
6473 rm -f conftest.$ac_objext conftest$ac_exeext
6474 if { (ac_try="$ac_link"
6475 case "(($ac_try" in
6476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6477 *) ac_try_echo=$ac_try;;
6478 esac
6479 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6480 $as_echo "$ac_try_echo") >&5
6481 (eval "$ac_link") 2>conftest.er1
6482 ac_status=$?
6483 grep -v '^ *+' conftest.er1 >conftest.err
6484 rm -f conftest.er1
6485 cat conftest.err >&5
6486 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6487 (exit $ac_status); } && {
6488 test -z "$ac_c_werror_flag" ||
6489 test ! -s conftest.err
6490 } && test -s conftest$ac_exeext && {
6491 test "$cross_compiling" = yes ||
6492 $as_test_x conftest$ac_exeext
6493 }; then
6494 { $as_echo "$as_me:$LINENO: result: no" >&5
6495 $as_echo "no" >&6; }
6496 X_LIBS="$X_LIBS -R$x_libraries"
6497 else
6498 $as_echo "$as_me: failed program was:" >&5
6499 sed 's/^/| /' conftest.$ac_ext >&5
6501 LIBS="$ac_xsave_LIBS -R $x_libraries"
6502 cat >conftest.$ac_ext <<_ACEOF
6503 /* confdefs.h. */
6504 _ACEOF
6505 cat confdefs.h >>conftest.$ac_ext
6506 cat >>conftest.$ac_ext <<_ACEOF
6507 /* end confdefs.h. */
6510 main ()
6514 return 0;
6516 _ACEOF
6517 rm -f conftest.$ac_objext conftest$ac_exeext
6518 if { (ac_try="$ac_link"
6519 case "(($ac_try" in
6520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6521 *) ac_try_echo=$ac_try;;
6522 esac
6523 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6524 $as_echo "$ac_try_echo") >&5
6525 (eval "$ac_link") 2>conftest.er1
6526 ac_status=$?
6527 grep -v '^ *+' conftest.er1 >conftest.err
6528 rm -f conftest.er1
6529 cat conftest.err >&5
6530 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6531 (exit $ac_status); } && {
6532 test -z "$ac_c_werror_flag" ||
6533 test ! -s conftest.err
6534 } && test -s conftest$ac_exeext && {
6535 test "$cross_compiling" = yes ||
6536 $as_test_x conftest$ac_exeext
6537 }; then
6538 { $as_echo "$as_me:$LINENO: result: yes" >&5
6539 $as_echo "yes" >&6; }
6540 X_LIBS="$X_LIBS -R $x_libraries"
6541 else
6542 $as_echo "$as_me: failed program was:" >&5
6543 sed 's/^/| /' conftest.$ac_ext >&5
6545 { $as_echo "$as_me:$LINENO: result: neither works" >&5
6546 $as_echo "neither works" >&6; }
6549 rm -rf conftest.dSYM
6550 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6551 conftest$ac_exeext conftest.$ac_ext
6554 rm -rf conftest.dSYM
6555 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6556 conftest$ac_exeext conftest.$ac_ext
6557 ac_c_werror_flag=$ac_xsave_c_werror_flag
6558 LIBS=$ac_xsave_LIBS
6561 # Check for system-dependent libraries X programs must link with.
6562 # Do this before checking for the system-independent R6 libraries
6563 # (-lICE), since we may need -lsocket or whatever for X linking.
6565 if test "$ISC" = yes; then
6566 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
6567 else
6568 # Martyn Johnson says this is needed for Ultrix, if the X
6569 # libraries were built with DECnet support. And Karl Berry says
6570 # the Alpha needs dnet_stub (dnet does not exist).
6571 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
6572 cat >conftest.$ac_ext <<_ACEOF
6573 /* confdefs.h. */
6574 _ACEOF
6575 cat confdefs.h >>conftest.$ac_ext
6576 cat >>conftest.$ac_ext <<_ACEOF
6577 /* end confdefs.h. */
6579 /* Override any GCC internal prototype to avoid an error.
6580 Use char because int might match the return type of a GCC
6581 builtin and then its argument prototype would still apply. */
6582 #ifdef __cplusplus
6583 extern "C"
6584 #endif
6585 char XOpenDisplay ();
6587 main ()
6589 return XOpenDisplay ();
6591 return 0;
6593 _ACEOF
6594 rm -f conftest.$ac_objext conftest$ac_exeext
6595 if { (ac_try="$ac_link"
6596 case "(($ac_try" in
6597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6598 *) ac_try_echo=$ac_try;;
6599 esac
6600 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6601 $as_echo "$ac_try_echo") >&5
6602 (eval "$ac_link") 2>conftest.er1
6603 ac_status=$?
6604 grep -v '^ *+' conftest.er1 >conftest.err
6605 rm -f conftest.er1
6606 cat conftest.err >&5
6607 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6608 (exit $ac_status); } && {
6609 test -z "$ac_c_werror_flag" ||
6610 test ! -s conftest.err
6611 } && test -s conftest$ac_exeext && {
6612 test "$cross_compiling" = yes ||
6613 $as_test_x conftest$ac_exeext
6614 }; then
6616 else
6617 $as_echo "$as_me: failed program was:" >&5
6618 sed 's/^/| /' conftest.$ac_ext >&5
6620 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
6621 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
6622 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
6623 $as_echo_n "(cached) " >&6
6624 else
6625 ac_check_lib_save_LIBS=$LIBS
6626 LIBS="-ldnet $LIBS"
6627 cat >conftest.$ac_ext <<_ACEOF
6628 /* confdefs.h. */
6629 _ACEOF
6630 cat confdefs.h >>conftest.$ac_ext
6631 cat >>conftest.$ac_ext <<_ACEOF
6632 /* end confdefs.h. */
6634 /* Override any GCC internal prototype to avoid an error.
6635 Use char because int might match the return type of a GCC
6636 builtin and then its argument prototype would still apply. */
6637 #ifdef __cplusplus
6638 extern "C"
6639 #endif
6640 char dnet_ntoa ();
6642 main ()
6644 return dnet_ntoa ();
6646 return 0;
6648 _ACEOF
6649 rm -f conftest.$ac_objext conftest$ac_exeext
6650 if { (ac_try="$ac_link"
6651 case "(($ac_try" in
6652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6653 *) ac_try_echo=$ac_try;;
6654 esac
6655 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6656 $as_echo "$ac_try_echo") >&5
6657 (eval "$ac_link") 2>conftest.er1
6658 ac_status=$?
6659 grep -v '^ *+' conftest.er1 >conftest.err
6660 rm -f conftest.er1
6661 cat conftest.err >&5
6662 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6663 (exit $ac_status); } && {
6664 test -z "$ac_c_werror_flag" ||
6665 test ! -s conftest.err
6666 } && test -s conftest$ac_exeext && {
6667 test "$cross_compiling" = yes ||
6668 $as_test_x conftest$ac_exeext
6669 }; then
6670 ac_cv_lib_dnet_dnet_ntoa=yes
6671 else
6672 $as_echo "$as_me: failed program was:" >&5
6673 sed 's/^/| /' conftest.$ac_ext >&5
6675 ac_cv_lib_dnet_dnet_ntoa=no
6678 rm -rf conftest.dSYM
6679 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6680 conftest$ac_exeext conftest.$ac_ext
6681 LIBS=$ac_check_lib_save_LIBS
6683 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6684 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
6685 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
6686 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
6689 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
6690 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
6691 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
6692 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
6693 $as_echo_n "(cached) " >&6
6694 else
6695 ac_check_lib_save_LIBS=$LIBS
6696 LIBS="-ldnet_stub $LIBS"
6697 cat >conftest.$ac_ext <<_ACEOF
6698 /* confdefs.h. */
6699 _ACEOF
6700 cat confdefs.h >>conftest.$ac_ext
6701 cat >>conftest.$ac_ext <<_ACEOF
6702 /* end confdefs.h. */
6704 /* Override any GCC internal prototype to avoid an error.
6705 Use char because int might match the return type of a GCC
6706 builtin and then its argument prototype would still apply. */
6707 #ifdef __cplusplus
6708 extern "C"
6709 #endif
6710 char dnet_ntoa ();
6712 main ()
6714 return dnet_ntoa ();
6716 return 0;
6718 _ACEOF
6719 rm -f conftest.$ac_objext conftest$ac_exeext
6720 if { (ac_try="$ac_link"
6721 case "(($ac_try" in
6722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6723 *) ac_try_echo=$ac_try;;
6724 esac
6725 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6726 $as_echo "$ac_try_echo") >&5
6727 (eval "$ac_link") 2>conftest.er1
6728 ac_status=$?
6729 grep -v '^ *+' conftest.er1 >conftest.err
6730 rm -f conftest.er1
6731 cat conftest.err >&5
6732 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6733 (exit $ac_status); } && {
6734 test -z "$ac_c_werror_flag" ||
6735 test ! -s conftest.err
6736 } && test -s conftest$ac_exeext && {
6737 test "$cross_compiling" = yes ||
6738 $as_test_x conftest$ac_exeext
6739 }; then
6740 ac_cv_lib_dnet_stub_dnet_ntoa=yes
6741 else
6742 $as_echo "$as_me: failed program was:" >&5
6743 sed 's/^/| /' conftest.$ac_ext >&5
6745 ac_cv_lib_dnet_stub_dnet_ntoa=no
6748 rm -rf conftest.dSYM
6749 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6750 conftest$ac_exeext conftest.$ac_ext
6751 LIBS=$ac_check_lib_save_LIBS
6753 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
6754 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
6755 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
6756 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
6762 rm -rf conftest.dSYM
6763 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6764 conftest$ac_exeext conftest.$ac_ext
6765 LIBS="$ac_xsave_LIBS"
6767 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
6768 # to get the SysV transport functions.
6769 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
6770 # needs -lnsl.
6771 # The nsl library prevents programs from opening the X display
6772 # on Irix 5.2, according to T.E. Dickey.
6773 # The functions gethostbyname, getservbyname, and inet_addr are
6774 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
6775 { $as_echo "$as_me:$LINENO: checking for gethostbyname" >&5
6776 $as_echo_n "checking for gethostbyname... " >&6; }
6777 if test "${ac_cv_func_gethostbyname+set}" = set; then
6778 $as_echo_n "(cached) " >&6
6779 else
6780 cat >conftest.$ac_ext <<_ACEOF
6781 /* confdefs.h. */
6782 _ACEOF
6783 cat confdefs.h >>conftest.$ac_ext
6784 cat >>conftest.$ac_ext <<_ACEOF
6785 /* end confdefs.h. */
6786 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
6787 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6788 #define gethostbyname innocuous_gethostbyname
6790 /* System header to define __stub macros and hopefully few prototypes,
6791 which can conflict with char gethostbyname (); below.
6792 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6793 <limits.h> exists even on freestanding compilers. */
6795 #ifdef __STDC__
6796 # include <limits.h>
6797 #else
6798 # include <assert.h>
6799 #endif
6801 #undef gethostbyname
6803 /* Override any GCC internal prototype to avoid an error.
6804 Use char because int might match the return type of a GCC
6805 builtin and then its argument prototype would still apply. */
6806 #ifdef __cplusplus
6807 extern "C"
6808 #endif
6809 char gethostbyname ();
6810 /* The GNU C library defines this for functions which it implements
6811 to always fail with ENOSYS. Some functions are actually named
6812 something starting with __ and the normal name is an alias. */
6813 #if defined __stub_gethostbyname || defined __stub___gethostbyname
6814 choke me
6815 #endif
6818 main ()
6820 return gethostbyname ();
6822 return 0;
6824 _ACEOF
6825 rm -f conftest.$ac_objext conftest$ac_exeext
6826 if { (ac_try="$ac_link"
6827 case "(($ac_try" in
6828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6829 *) ac_try_echo=$ac_try;;
6830 esac
6831 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6832 $as_echo "$ac_try_echo") >&5
6833 (eval "$ac_link") 2>conftest.er1
6834 ac_status=$?
6835 grep -v '^ *+' conftest.er1 >conftest.err
6836 rm -f conftest.er1
6837 cat conftest.err >&5
6838 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6839 (exit $ac_status); } && {
6840 test -z "$ac_c_werror_flag" ||
6841 test ! -s conftest.err
6842 } && test -s conftest$ac_exeext && {
6843 test "$cross_compiling" = yes ||
6844 $as_test_x conftest$ac_exeext
6845 }; then
6846 ac_cv_func_gethostbyname=yes
6847 else
6848 $as_echo "$as_me: failed program was:" >&5
6849 sed 's/^/| /' conftest.$ac_ext >&5
6851 ac_cv_func_gethostbyname=no
6854 rm -rf conftest.dSYM
6855 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6856 conftest$ac_exeext conftest.$ac_ext
6858 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
6859 $as_echo "$ac_cv_func_gethostbyname" >&6; }
6861 if test $ac_cv_func_gethostbyname = no; then
6862 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6863 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
6864 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6865 $as_echo_n "(cached) " >&6
6866 else
6867 ac_check_lib_save_LIBS=$LIBS
6868 LIBS="-lnsl $LIBS"
6869 cat >conftest.$ac_ext <<_ACEOF
6870 /* confdefs.h. */
6871 _ACEOF
6872 cat confdefs.h >>conftest.$ac_ext
6873 cat >>conftest.$ac_ext <<_ACEOF
6874 /* end confdefs.h. */
6876 /* Override any GCC internal prototype to avoid an error.
6877 Use char because int might match the return type of a GCC
6878 builtin and then its argument prototype would still apply. */
6879 #ifdef __cplusplus
6880 extern "C"
6881 #endif
6882 char gethostbyname ();
6884 main ()
6886 return gethostbyname ();
6888 return 0;
6890 _ACEOF
6891 rm -f conftest.$ac_objext conftest$ac_exeext
6892 if { (ac_try="$ac_link"
6893 case "(($ac_try" in
6894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6895 *) ac_try_echo=$ac_try;;
6896 esac
6897 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6898 $as_echo "$ac_try_echo") >&5
6899 (eval "$ac_link") 2>conftest.er1
6900 ac_status=$?
6901 grep -v '^ *+' conftest.er1 >conftest.err
6902 rm -f conftest.er1
6903 cat conftest.err >&5
6904 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6905 (exit $ac_status); } && {
6906 test -z "$ac_c_werror_flag" ||
6907 test ! -s conftest.err
6908 } && test -s conftest$ac_exeext && {
6909 test "$cross_compiling" = yes ||
6910 $as_test_x conftest$ac_exeext
6911 }; then
6912 ac_cv_lib_nsl_gethostbyname=yes
6913 else
6914 $as_echo "$as_me: failed program was:" >&5
6915 sed 's/^/| /' conftest.$ac_ext >&5
6917 ac_cv_lib_nsl_gethostbyname=no
6920 rm -rf conftest.dSYM
6921 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6922 conftest$ac_exeext conftest.$ac_ext
6923 LIBS=$ac_check_lib_save_LIBS
6925 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6926 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
6927 if test $ac_cv_lib_nsl_gethostbyname = yes; then
6928 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
6931 if test $ac_cv_lib_nsl_gethostbyname = no; then
6932 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
6933 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
6934 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
6935 $as_echo_n "(cached) " >&6
6936 else
6937 ac_check_lib_save_LIBS=$LIBS
6938 LIBS="-lbsd $LIBS"
6939 cat >conftest.$ac_ext <<_ACEOF
6940 /* confdefs.h. */
6941 _ACEOF
6942 cat confdefs.h >>conftest.$ac_ext
6943 cat >>conftest.$ac_ext <<_ACEOF
6944 /* end confdefs.h. */
6946 /* Override any GCC internal prototype to avoid an error.
6947 Use char because int might match the return type of a GCC
6948 builtin and then its argument prototype would still apply. */
6949 #ifdef __cplusplus
6950 extern "C"
6951 #endif
6952 char gethostbyname ();
6954 main ()
6956 return gethostbyname ();
6958 return 0;
6960 _ACEOF
6961 rm -f conftest.$ac_objext conftest$ac_exeext
6962 if { (ac_try="$ac_link"
6963 case "(($ac_try" in
6964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6965 *) ac_try_echo=$ac_try;;
6966 esac
6967 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6968 $as_echo "$ac_try_echo") >&5
6969 (eval "$ac_link") 2>conftest.er1
6970 ac_status=$?
6971 grep -v '^ *+' conftest.er1 >conftest.err
6972 rm -f conftest.er1
6973 cat conftest.err >&5
6974 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6975 (exit $ac_status); } && {
6976 test -z "$ac_c_werror_flag" ||
6977 test ! -s conftest.err
6978 } && test -s conftest$ac_exeext && {
6979 test "$cross_compiling" = yes ||
6980 $as_test_x conftest$ac_exeext
6981 }; then
6982 ac_cv_lib_bsd_gethostbyname=yes
6983 else
6984 $as_echo "$as_me: failed program was:" >&5
6985 sed 's/^/| /' conftest.$ac_ext >&5
6987 ac_cv_lib_bsd_gethostbyname=no
6990 rm -rf conftest.dSYM
6991 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6992 conftest$ac_exeext conftest.$ac_ext
6993 LIBS=$ac_check_lib_save_LIBS
6995 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
6996 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
6997 if test $ac_cv_lib_bsd_gethostbyname = yes; then
6998 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7004 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7005 # socket/setsockopt and other routines are undefined under SCO ODT
7006 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7007 # on later versions), says Simon Leinen: it contains gethostby*
7008 # variants that don't use the name server (or something). -lsocket
7009 # must be given before -lnsl if both are needed. We assume that
7010 # if connect needs -lnsl, so does gethostbyname.
7011 { $as_echo "$as_me:$LINENO: checking for connect" >&5
7012 $as_echo_n "checking for connect... " >&6; }
7013 if test "${ac_cv_func_connect+set}" = set; then
7014 $as_echo_n "(cached) " >&6
7015 else
7016 cat >conftest.$ac_ext <<_ACEOF
7017 /* confdefs.h. */
7018 _ACEOF
7019 cat confdefs.h >>conftest.$ac_ext
7020 cat >>conftest.$ac_ext <<_ACEOF
7021 /* end confdefs.h. */
7022 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
7023 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7024 #define connect innocuous_connect
7026 /* System header to define __stub macros and hopefully few prototypes,
7027 which can conflict with char connect (); below.
7028 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7029 <limits.h> exists even on freestanding compilers. */
7031 #ifdef __STDC__
7032 # include <limits.h>
7033 #else
7034 # include <assert.h>
7035 #endif
7037 #undef connect
7039 /* Override any GCC internal prototype to avoid an error.
7040 Use char because int might match the return type of a GCC
7041 builtin and then its argument prototype would still apply. */
7042 #ifdef __cplusplus
7043 extern "C"
7044 #endif
7045 char connect ();
7046 /* The GNU C library defines this for functions which it implements
7047 to always fail with ENOSYS. Some functions are actually named
7048 something starting with __ and the normal name is an alias. */
7049 #if defined __stub_connect || defined __stub___connect
7050 choke me
7051 #endif
7054 main ()
7056 return connect ();
7058 return 0;
7060 _ACEOF
7061 rm -f conftest.$ac_objext conftest$ac_exeext
7062 if { (ac_try="$ac_link"
7063 case "(($ac_try" in
7064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7065 *) ac_try_echo=$ac_try;;
7066 esac
7067 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7068 $as_echo "$ac_try_echo") >&5
7069 (eval "$ac_link") 2>conftest.er1
7070 ac_status=$?
7071 grep -v '^ *+' conftest.er1 >conftest.err
7072 rm -f conftest.er1
7073 cat conftest.err >&5
7074 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7075 (exit $ac_status); } && {
7076 test -z "$ac_c_werror_flag" ||
7077 test ! -s conftest.err
7078 } && test -s conftest$ac_exeext && {
7079 test "$cross_compiling" = yes ||
7080 $as_test_x conftest$ac_exeext
7081 }; then
7082 ac_cv_func_connect=yes
7083 else
7084 $as_echo "$as_me: failed program was:" >&5
7085 sed 's/^/| /' conftest.$ac_ext >&5
7087 ac_cv_func_connect=no
7090 rm -rf conftest.dSYM
7091 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7092 conftest$ac_exeext conftest.$ac_ext
7094 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
7095 $as_echo "$ac_cv_func_connect" >&6; }
7097 if test $ac_cv_func_connect = no; then
7098 { $as_echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
7099 $as_echo_n "checking for connect in -lsocket... " >&6; }
7100 if test "${ac_cv_lib_socket_connect+set}" = set; then
7101 $as_echo_n "(cached) " >&6
7102 else
7103 ac_check_lib_save_LIBS=$LIBS
7104 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7105 cat >conftest.$ac_ext <<_ACEOF
7106 /* confdefs.h. */
7107 _ACEOF
7108 cat confdefs.h >>conftest.$ac_ext
7109 cat >>conftest.$ac_ext <<_ACEOF
7110 /* end confdefs.h. */
7112 /* Override any GCC internal prototype to avoid an error.
7113 Use char because int might match the return type of a GCC
7114 builtin and then its argument prototype would still apply. */
7115 #ifdef __cplusplus
7116 extern "C"
7117 #endif
7118 char connect ();
7120 main ()
7122 return connect ();
7124 return 0;
7126 _ACEOF
7127 rm -f conftest.$ac_objext conftest$ac_exeext
7128 if { (ac_try="$ac_link"
7129 case "(($ac_try" in
7130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7131 *) ac_try_echo=$ac_try;;
7132 esac
7133 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7134 $as_echo "$ac_try_echo") >&5
7135 (eval "$ac_link") 2>conftest.er1
7136 ac_status=$?
7137 grep -v '^ *+' conftest.er1 >conftest.err
7138 rm -f conftest.er1
7139 cat conftest.err >&5
7140 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7141 (exit $ac_status); } && {
7142 test -z "$ac_c_werror_flag" ||
7143 test ! -s conftest.err
7144 } && test -s conftest$ac_exeext && {
7145 test "$cross_compiling" = yes ||
7146 $as_test_x conftest$ac_exeext
7147 }; then
7148 ac_cv_lib_socket_connect=yes
7149 else
7150 $as_echo "$as_me: failed program was:" >&5
7151 sed 's/^/| /' conftest.$ac_ext >&5
7153 ac_cv_lib_socket_connect=no
7156 rm -rf conftest.dSYM
7157 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7158 conftest$ac_exeext conftest.$ac_ext
7159 LIBS=$ac_check_lib_save_LIBS
7161 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
7162 $as_echo "$ac_cv_lib_socket_connect" >&6; }
7163 if test $ac_cv_lib_socket_connect = yes; then
7164 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7169 # Guillermo Gomez says -lposix is necessary on A/UX.
7170 { $as_echo "$as_me:$LINENO: checking for remove" >&5
7171 $as_echo_n "checking for remove... " >&6; }
7172 if test "${ac_cv_func_remove+set}" = set; then
7173 $as_echo_n "(cached) " >&6
7174 else
7175 cat >conftest.$ac_ext <<_ACEOF
7176 /* confdefs.h. */
7177 _ACEOF
7178 cat confdefs.h >>conftest.$ac_ext
7179 cat >>conftest.$ac_ext <<_ACEOF
7180 /* end confdefs.h. */
7181 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
7182 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7183 #define remove innocuous_remove
7185 /* System header to define __stub macros and hopefully few prototypes,
7186 which can conflict with char remove (); below.
7187 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7188 <limits.h> exists even on freestanding compilers. */
7190 #ifdef __STDC__
7191 # include <limits.h>
7192 #else
7193 # include <assert.h>
7194 #endif
7196 #undef remove
7198 /* Override any GCC internal prototype to avoid an error.
7199 Use char because int might match the return type of a GCC
7200 builtin and then its argument prototype would still apply. */
7201 #ifdef __cplusplus
7202 extern "C"
7203 #endif
7204 char remove ();
7205 /* The GNU C library defines this for functions which it implements
7206 to always fail with ENOSYS. Some functions are actually named
7207 something starting with __ and the normal name is an alias. */
7208 #if defined __stub_remove || defined __stub___remove
7209 choke me
7210 #endif
7213 main ()
7215 return remove ();
7217 return 0;
7219 _ACEOF
7220 rm -f conftest.$ac_objext conftest$ac_exeext
7221 if { (ac_try="$ac_link"
7222 case "(($ac_try" in
7223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7224 *) ac_try_echo=$ac_try;;
7225 esac
7226 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7227 $as_echo "$ac_try_echo") >&5
7228 (eval "$ac_link") 2>conftest.er1
7229 ac_status=$?
7230 grep -v '^ *+' conftest.er1 >conftest.err
7231 rm -f conftest.er1
7232 cat conftest.err >&5
7233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7234 (exit $ac_status); } && {
7235 test -z "$ac_c_werror_flag" ||
7236 test ! -s conftest.err
7237 } && test -s conftest$ac_exeext && {
7238 test "$cross_compiling" = yes ||
7239 $as_test_x conftest$ac_exeext
7240 }; then
7241 ac_cv_func_remove=yes
7242 else
7243 $as_echo "$as_me: failed program was:" >&5
7244 sed 's/^/| /' conftest.$ac_ext >&5
7246 ac_cv_func_remove=no
7249 rm -rf conftest.dSYM
7250 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7251 conftest$ac_exeext conftest.$ac_ext
7253 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
7254 $as_echo "$ac_cv_func_remove" >&6; }
7256 if test $ac_cv_func_remove = no; then
7257 { $as_echo "$as_me:$LINENO: checking for remove in -lposix" >&5
7258 $as_echo_n "checking for remove in -lposix... " >&6; }
7259 if test "${ac_cv_lib_posix_remove+set}" = set; then
7260 $as_echo_n "(cached) " >&6
7261 else
7262 ac_check_lib_save_LIBS=$LIBS
7263 LIBS="-lposix $LIBS"
7264 cat >conftest.$ac_ext <<_ACEOF
7265 /* confdefs.h. */
7266 _ACEOF
7267 cat confdefs.h >>conftest.$ac_ext
7268 cat >>conftest.$ac_ext <<_ACEOF
7269 /* end confdefs.h. */
7271 /* Override any GCC internal prototype to avoid an error.
7272 Use char because int might match the return type of a GCC
7273 builtin and then its argument prototype would still apply. */
7274 #ifdef __cplusplus
7275 extern "C"
7276 #endif
7277 char remove ();
7279 main ()
7281 return remove ();
7283 return 0;
7285 _ACEOF
7286 rm -f conftest.$ac_objext conftest$ac_exeext
7287 if { (ac_try="$ac_link"
7288 case "(($ac_try" in
7289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7290 *) ac_try_echo=$ac_try;;
7291 esac
7292 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7293 $as_echo "$ac_try_echo") >&5
7294 (eval "$ac_link") 2>conftest.er1
7295 ac_status=$?
7296 grep -v '^ *+' conftest.er1 >conftest.err
7297 rm -f conftest.er1
7298 cat conftest.err >&5
7299 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7300 (exit $ac_status); } && {
7301 test -z "$ac_c_werror_flag" ||
7302 test ! -s conftest.err
7303 } && test -s conftest$ac_exeext && {
7304 test "$cross_compiling" = yes ||
7305 $as_test_x conftest$ac_exeext
7306 }; then
7307 ac_cv_lib_posix_remove=yes
7308 else
7309 $as_echo "$as_me: failed program was:" >&5
7310 sed 's/^/| /' conftest.$ac_ext >&5
7312 ac_cv_lib_posix_remove=no
7315 rm -rf conftest.dSYM
7316 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7317 conftest$ac_exeext conftest.$ac_ext
7318 LIBS=$ac_check_lib_save_LIBS
7320 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
7321 $as_echo "$ac_cv_lib_posix_remove" >&6; }
7322 if test $ac_cv_lib_posix_remove = yes; then
7323 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7328 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7329 { $as_echo "$as_me:$LINENO: checking for shmat" >&5
7330 $as_echo_n "checking for shmat... " >&6; }
7331 if test "${ac_cv_func_shmat+set}" = set; then
7332 $as_echo_n "(cached) " >&6
7333 else
7334 cat >conftest.$ac_ext <<_ACEOF
7335 /* confdefs.h. */
7336 _ACEOF
7337 cat confdefs.h >>conftest.$ac_ext
7338 cat >>conftest.$ac_ext <<_ACEOF
7339 /* end confdefs.h. */
7340 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
7341 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7342 #define shmat innocuous_shmat
7344 /* System header to define __stub macros and hopefully few prototypes,
7345 which can conflict with char shmat (); below.
7346 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7347 <limits.h> exists even on freestanding compilers. */
7349 #ifdef __STDC__
7350 # include <limits.h>
7351 #else
7352 # include <assert.h>
7353 #endif
7355 #undef shmat
7357 /* Override any GCC internal prototype to avoid an error.
7358 Use char because int might match the return type of a GCC
7359 builtin and then its argument prototype would still apply. */
7360 #ifdef __cplusplus
7361 extern "C"
7362 #endif
7363 char shmat ();
7364 /* The GNU C library defines this for functions which it implements
7365 to always fail with ENOSYS. Some functions are actually named
7366 something starting with __ and the normal name is an alias. */
7367 #if defined __stub_shmat || defined __stub___shmat
7368 choke me
7369 #endif
7372 main ()
7374 return shmat ();
7376 return 0;
7378 _ACEOF
7379 rm -f conftest.$ac_objext conftest$ac_exeext
7380 if { (ac_try="$ac_link"
7381 case "(($ac_try" in
7382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7383 *) ac_try_echo=$ac_try;;
7384 esac
7385 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7386 $as_echo "$ac_try_echo") >&5
7387 (eval "$ac_link") 2>conftest.er1
7388 ac_status=$?
7389 grep -v '^ *+' conftest.er1 >conftest.err
7390 rm -f conftest.er1
7391 cat conftest.err >&5
7392 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7393 (exit $ac_status); } && {
7394 test -z "$ac_c_werror_flag" ||
7395 test ! -s conftest.err
7396 } && test -s conftest$ac_exeext && {
7397 test "$cross_compiling" = yes ||
7398 $as_test_x conftest$ac_exeext
7399 }; then
7400 ac_cv_func_shmat=yes
7401 else
7402 $as_echo "$as_me: failed program was:" >&5
7403 sed 's/^/| /' conftest.$ac_ext >&5
7405 ac_cv_func_shmat=no
7408 rm -rf conftest.dSYM
7409 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7410 conftest$ac_exeext conftest.$ac_ext
7412 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
7413 $as_echo "$ac_cv_func_shmat" >&6; }
7415 if test $ac_cv_func_shmat = no; then
7416 { $as_echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
7417 $as_echo_n "checking for shmat in -lipc... " >&6; }
7418 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
7419 $as_echo_n "(cached) " >&6
7420 else
7421 ac_check_lib_save_LIBS=$LIBS
7422 LIBS="-lipc $LIBS"
7423 cat >conftest.$ac_ext <<_ACEOF
7424 /* confdefs.h. */
7425 _ACEOF
7426 cat confdefs.h >>conftest.$ac_ext
7427 cat >>conftest.$ac_ext <<_ACEOF
7428 /* end confdefs.h. */
7430 /* Override any GCC internal prototype to avoid an error.
7431 Use char because int might match the return type of a GCC
7432 builtin and then its argument prototype would still apply. */
7433 #ifdef __cplusplus
7434 extern "C"
7435 #endif
7436 char shmat ();
7438 main ()
7440 return shmat ();
7442 return 0;
7444 _ACEOF
7445 rm -f conftest.$ac_objext conftest$ac_exeext
7446 if { (ac_try="$ac_link"
7447 case "(($ac_try" in
7448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7449 *) ac_try_echo=$ac_try;;
7450 esac
7451 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7452 $as_echo "$ac_try_echo") >&5
7453 (eval "$ac_link") 2>conftest.er1
7454 ac_status=$?
7455 grep -v '^ *+' conftest.er1 >conftest.err
7456 rm -f conftest.er1
7457 cat conftest.err >&5
7458 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7459 (exit $ac_status); } && {
7460 test -z "$ac_c_werror_flag" ||
7461 test ! -s conftest.err
7462 } && test -s conftest$ac_exeext && {
7463 test "$cross_compiling" = yes ||
7464 $as_test_x conftest$ac_exeext
7465 }; then
7466 ac_cv_lib_ipc_shmat=yes
7467 else
7468 $as_echo "$as_me: failed program was:" >&5
7469 sed 's/^/| /' conftest.$ac_ext >&5
7471 ac_cv_lib_ipc_shmat=no
7474 rm -rf conftest.dSYM
7475 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7476 conftest$ac_exeext conftest.$ac_ext
7477 LIBS=$ac_check_lib_save_LIBS
7479 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
7480 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
7481 if test $ac_cv_lib_ipc_shmat = yes; then
7482 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7488 # Check for libraries that X11R6 Xt/Xaw programs need.
7489 ac_save_LDFLAGS=$LDFLAGS
7490 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7491 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7492 # check for ICE first), but we must link in the order -lSM -lICE or
7493 # we get undefined symbols. So assume we have SM if we have ICE.
7494 # These have to be linked with before -lX11, unlike the other
7495 # libraries we check for below, so use a different variable.
7496 # John Interrante, Karl Berry
7497 { $as_echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
7498 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
7499 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
7500 $as_echo_n "(cached) " >&6
7501 else
7502 ac_check_lib_save_LIBS=$LIBS
7503 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7504 cat >conftest.$ac_ext <<_ACEOF
7505 /* confdefs.h. */
7506 _ACEOF
7507 cat confdefs.h >>conftest.$ac_ext
7508 cat >>conftest.$ac_ext <<_ACEOF
7509 /* end confdefs.h. */
7511 /* Override any GCC internal prototype to avoid an error.
7512 Use char because int might match the return type of a GCC
7513 builtin and then its argument prototype would still apply. */
7514 #ifdef __cplusplus
7515 extern "C"
7516 #endif
7517 char IceConnectionNumber ();
7519 main ()
7521 return IceConnectionNumber ();
7523 return 0;
7525 _ACEOF
7526 rm -f conftest.$ac_objext conftest$ac_exeext
7527 if { (ac_try="$ac_link"
7528 case "(($ac_try" in
7529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7530 *) ac_try_echo=$ac_try;;
7531 esac
7532 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7533 $as_echo "$ac_try_echo") >&5
7534 (eval "$ac_link") 2>conftest.er1
7535 ac_status=$?
7536 grep -v '^ *+' conftest.er1 >conftest.err
7537 rm -f conftest.er1
7538 cat conftest.err >&5
7539 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7540 (exit $ac_status); } && {
7541 test -z "$ac_c_werror_flag" ||
7542 test ! -s conftest.err
7543 } && test -s conftest$ac_exeext && {
7544 test "$cross_compiling" = yes ||
7545 $as_test_x conftest$ac_exeext
7546 }; then
7547 ac_cv_lib_ICE_IceConnectionNumber=yes
7548 else
7549 $as_echo "$as_me: failed program was:" >&5
7550 sed 's/^/| /' conftest.$ac_ext >&5
7552 ac_cv_lib_ICE_IceConnectionNumber=no
7555 rm -rf conftest.dSYM
7556 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7557 conftest$ac_exeext conftest.$ac_ext
7558 LIBS=$ac_check_lib_save_LIBS
7560 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7561 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
7562 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
7563 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7566 LDFLAGS=$ac_save_LDFLAGS
7571 if test "$OS390Unix" = "yes"; then
7572 CFLAGS="$CFLAGS -W c,dll"
7573 LDFLAGS="$LDFLAGS -W l,dll"
7574 X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE -lXmu"
7578 if test -d "$x_includes" && test ! -d "$x_libraries"; then
7579 x_libraries=`echo "$x_includes" | sed s/include/lib/`
7580 { $as_echo "$as_me:$LINENO: result: Corrected X libraries to $x_libraries" >&5
7581 $as_echo "Corrected X libraries to $x_libraries" >&6; }
7582 X_LIBS="$X_LIBS -L$x_libraries"
7583 if test "`(uname) 2>/dev/null`" = SunOS &&
7584 uname -r | grep '^5' >/dev/null; then
7585 X_LIBS="$X_LIBS -R $x_libraries"
7589 if test -d "$x_libraries" && test ! -d "$x_includes"; then
7590 x_includes=`echo "$x_libraries" | sed s/lib/include/`
7591 { $as_echo "$as_me:$LINENO: result: Corrected X includes to $x_includes" >&5
7592 $as_echo "Corrected X includes to $x_includes" >&6; }
7593 X_CFLAGS="$X_CFLAGS -I$x_includes"
7596 X_CFLAGS="`echo $X_CFLAGS\ | sed 's%-I/usr/include %%'`"
7597 X_LIBS="`echo $X_LIBS\ | sed 's%-L/usr/lib %%'`"
7598 X_LIBS="`echo $X_LIBS\ | sed -e 's%-R/usr/lib %%' -e 's%-R /usr/lib %%'`"
7601 { $as_echo "$as_me:$LINENO: checking if X11 header files can be found" >&5
7602 $as_echo_n "checking if X11 header files can be found... " >&6; }
7603 cflags_save=$CFLAGS
7604 CFLAGS="$CFLAGS $X_CFLAGS"
7605 cat >conftest.$ac_ext <<_ACEOF
7606 /* confdefs.h. */
7607 _ACEOF
7608 cat confdefs.h >>conftest.$ac_ext
7609 cat >>conftest.$ac_ext <<_ACEOF
7610 /* end confdefs.h. */
7611 #include <X11/Xlib.h>
7612 #include <X11/Intrinsic.h>
7614 main ()
7618 return 0;
7620 _ACEOF
7621 rm -f conftest.$ac_objext
7622 if { (ac_try="$ac_compile"
7623 case "(($ac_try" in
7624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7625 *) ac_try_echo=$ac_try;;
7626 esac
7627 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7628 $as_echo "$ac_try_echo") >&5
7629 (eval "$ac_compile") 2>conftest.er1
7630 ac_status=$?
7631 grep -v '^ *+' conftest.er1 >conftest.err
7632 rm -f conftest.er1
7633 cat conftest.err >&5
7634 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7635 (exit $ac_status); } && {
7636 test -z "$ac_c_werror_flag" ||
7637 test ! -s conftest.err
7638 } && test -s conftest.$ac_objext; then
7639 { $as_echo "$as_me:$LINENO: result: yes" >&5
7640 $as_echo "yes" >&6; }
7641 else
7642 $as_echo "$as_me: failed program was:" >&5
7643 sed 's/^/| /' conftest.$ac_ext >&5
7645 { $as_echo "$as_me:$LINENO: result: no" >&5
7646 $as_echo "no" >&6; }; no_x=yes
7649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7650 CFLAGS=$cflags_save
7652 if test "${no_x-no}" = yes; then
7653 with_x=no
7654 else
7655 cat >>confdefs.h <<\_ACEOF
7656 #define HAVE_X11 1
7657 _ACEOF
7659 X_LIB="-lXt -lX11";
7662 ac_save_LDFLAGS="$LDFLAGS"
7663 LDFLAGS="-L$x_libraries $LDFLAGS"
7665 { $as_echo "$as_me:$LINENO: checking for _XdmcpAuthDoIt in -lXdmcp" >&5
7666 $as_echo_n "checking for _XdmcpAuthDoIt in -lXdmcp... " >&6; }
7667 if test "${ac_cv_lib_Xdmcp__XdmcpAuthDoIt+set}" = set; then
7668 $as_echo_n "(cached) " >&6
7669 else
7670 ac_check_lib_save_LIBS=$LIBS
7671 LIBS="-lXdmcp -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS -lXdmcp $LIBS"
7672 cat >conftest.$ac_ext <<_ACEOF
7673 /* confdefs.h. */
7674 _ACEOF
7675 cat confdefs.h >>conftest.$ac_ext
7676 cat >>conftest.$ac_ext <<_ACEOF
7677 /* end confdefs.h. */
7679 /* Override any GCC internal prototype to avoid an error.
7680 Use char because int might match the return type of a GCC
7681 builtin and then its argument prototype would still apply. */
7682 #ifdef __cplusplus
7683 extern "C"
7684 #endif
7685 char _XdmcpAuthDoIt ();
7687 main ()
7689 return _XdmcpAuthDoIt ();
7691 return 0;
7693 _ACEOF
7694 rm -f conftest.$ac_objext conftest$ac_exeext
7695 if { (ac_try="$ac_link"
7696 case "(($ac_try" in
7697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7698 *) ac_try_echo=$ac_try;;
7699 esac
7700 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7701 $as_echo "$ac_try_echo") >&5
7702 (eval "$ac_link") 2>conftest.er1
7703 ac_status=$?
7704 grep -v '^ *+' conftest.er1 >conftest.err
7705 rm -f conftest.er1
7706 cat conftest.err >&5
7707 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7708 (exit $ac_status); } && {
7709 test -z "$ac_c_werror_flag" ||
7710 test ! -s conftest.err
7711 } && test -s conftest$ac_exeext && {
7712 test "$cross_compiling" = yes ||
7713 $as_test_x conftest$ac_exeext
7714 }; then
7715 ac_cv_lib_Xdmcp__XdmcpAuthDoIt=yes
7716 else
7717 $as_echo "$as_me: failed program was:" >&5
7718 sed 's/^/| /' conftest.$ac_ext >&5
7720 ac_cv_lib_Xdmcp__XdmcpAuthDoIt=no
7723 rm -rf conftest.dSYM
7724 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7725 conftest$ac_exeext conftest.$ac_ext
7726 LIBS=$ac_check_lib_save_LIBS
7728 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&5
7729 $as_echo "$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&6; }
7730 if test $ac_cv_lib_Xdmcp__XdmcpAuthDoIt = yes; then
7731 X_EXTRA_LIBS="$X_EXTRA_LIBS -lXdmcp"
7735 { $as_echo "$as_me:$LINENO: checking for IceOpenConnection in -lICE" >&5
7736 $as_echo_n "checking for IceOpenConnection in -lICE... " >&6; }
7737 if test "${ac_cv_lib_ICE_IceOpenConnection+set}" = set; then
7738 $as_echo_n "(cached) " >&6
7739 else
7740 ac_check_lib_save_LIBS=$LIBS
7741 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7742 cat >conftest.$ac_ext <<_ACEOF
7743 /* confdefs.h. */
7744 _ACEOF
7745 cat confdefs.h >>conftest.$ac_ext
7746 cat >>conftest.$ac_ext <<_ACEOF
7747 /* end confdefs.h. */
7749 /* Override any GCC internal prototype to avoid an error.
7750 Use char because int might match the return type of a GCC
7751 builtin and then its argument prototype would still apply. */
7752 #ifdef __cplusplus
7753 extern "C"
7754 #endif
7755 char IceOpenConnection ();
7757 main ()
7759 return IceOpenConnection ();
7761 return 0;
7763 _ACEOF
7764 rm -f conftest.$ac_objext conftest$ac_exeext
7765 if { (ac_try="$ac_link"
7766 case "(($ac_try" in
7767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7768 *) ac_try_echo=$ac_try;;
7769 esac
7770 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7771 $as_echo "$ac_try_echo") >&5
7772 (eval "$ac_link") 2>conftest.er1
7773 ac_status=$?
7774 grep -v '^ *+' conftest.er1 >conftest.err
7775 rm -f conftest.er1
7776 cat conftest.err >&5
7777 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7778 (exit $ac_status); } && {
7779 test -z "$ac_c_werror_flag" ||
7780 test ! -s conftest.err
7781 } && test -s conftest$ac_exeext && {
7782 test "$cross_compiling" = yes ||
7783 $as_test_x conftest$ac_exeext
7784 }; then
7785 ac_cv_lib_ICE_IceOpenConnection=yes
7786 else
7787 $as_echo "$as_me: failed program was:" >&5
7788 sed 's/^/| /' conftest.$ac_ext >&5
7790 ac_cv_lib_ICE_IceOpenConnection=no
7793 rm -rf conftest.dSYM
7794 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7795 conftest$ac_exeext conftest.$ac_ext
7796 LIBS=$ac_check_lib_save_LIBS
7798 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceOpenConnection" >&5
7799 $as_echo "$ac_cv_lib_ICE_IceOpenConnection" >&6; }
7800 if test $ac_cv_lib_ICE_IceOpenConnection = yes; then
7801 X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE"
7805 LDFLAGS="$X_LIBS $ac_save_LDFLAGS"
7806 { $as_echo "$as_me:$LINENO: checking for XpmCreatePixmapFromData in -lXpm" >&5
7807 $as_echo_n "checking for XpmCreatePixmapFromData in -lXpm... " >&6; }
7808 if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then
7809 $as_echo_n "(cached) " >&6
7810 else
7811 ac_check_lib_save_LIBS=$LIBS
7812 LIBS="-lXpm -lXt $X_PRE_LIBS -lXpm -lX11 $X_EXTRA_LIBS $LIBS"
7813 cat >conftest.$ac_ext <<_ACEOF
7814 /* confdefs.h. */
7815 _ACEOF
7816 cat confdefs.h >>conftest.$ac_ext
7817 cat >>conftest.$ac_ext <<_ACEOF
7818 /* end confdefs.h. */
7820 /* Override any GCC internal prototype to avoid an error.
7821 Use char because int might match the return type of a GCC
7822 builtin and then its argument prototype would still apply. */
7823 #ifdef __cplusplus
7824 extern "C"
7825 #endif
7826 char XpmCreatePixmapFromData ();
7828 main ()
7830 return XpmCreatePixmapFromData ();
7832 return 0;
7834 _ACEOF
7835 rm -f conftest.$ac_objext conftest$ac_exeext
7836 if { (ac_try="$ac_link"
7837 case "(($ac_try" in
7838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7839 *) ac_try_echo=$ac_try;;
7840 esac
7841 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7842 $as_echo "$ac_try_echo") >&5
7843 (eval "$ac_link") 2>conftest.er1
7844 ac_status=$?
7845 grep -v '^ *+' conftest.er1 >conftest.err
7846 rm -f conftest.er1
7847 cat conftest.err >&5
7848 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7849 (exit $ac_status); } && {
7850 test -z "$ac_c_werror_flag" ||
7851 test ! -s conftest.err
7852 } && test -s conftest$ac_exeext && {
7853 test "$cross_compiling" = yes ||
7854 $as_test_x conftest$ac_exeext
7855 }; then
7856 ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
7857 else
7858 $as_echo "$as_me: failed program was:" >&5
7859 sed 's/^/| /' conftest.$ac_ext >&5
7861 ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
7864 rm -rf conftest.dSYM
7865 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7866 conftest$ac_exeext conftest.$ac_ext
7867 LIBS=$ac_check_lib_save_LIBS
7869 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
7870 $as_echo "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6; }
7871 if test $ac_cv_lib_Xpm_XpmCreatePixmapFromData = yes; then
7872 X_PRE_LIBS="$X_PRE_LIBS -lXpm"
7876 { $as_echo "$as_me:$LINENO: checking if X11 header files implicitly declare return values" >&5
7877 $as_echo_n "checking if X11 header files implicitly declare return values... " >&6; }
7878 cflags_save=$CFLAGS
7879 CFLAGS="$CFLAGS $X_CFLAGS -Werror"
7880 cat >conftest.$ac_ext <<_ACEOF
7881 /* confdefs.h. */
7882 _ACEOF
7883 cat confdefs.h >>conftest.$ac_ext
7884 cat >>conftest.$ac_ext <<_ACEOF
7885 /* end confdefs.h. */
7886 #include <X11/Xlib.h>
7888 main ()
7892 return 0;
7894 _ACEOF
7895 rm -f conftest.$ac_objext
7896 if { (ac_try="$ac_compile"
7897 case "(($ac_try" in
7898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7899 *) ac_try_echo=$ac_try;;
7900 esac
7901 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7902 $as_echo "$ac_try_echo") >&5
7903 (eval "$ac_compile") 2>conftest.er1
7904 ac_status=$?
7905 grep -v '^ *+' conftest.er1 >conftest.err
7906 rm -f conftest.er1
7907 cat conftest.err >&5
7908 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7909 (exit $ac_status); } && {
7910 test -z "$ac_c_werror_flag" ||
7911 test ! -s conftest.err
7912 } && test -s conftest.$ac_objext; then
7913 { $as_echo "$as_me:$LINENO: result: no" >&5
7914 $as_echo "no" >&6; }
7915 else
7916 $as_echo "$as_me: failed program was:" >&5
7917 sed 's/^/| /' conftest.$ac_ext >&5
7919 CFLAGS="$CFLAGS -Wno-implicit-int"
7920 cat >conftest.$ac_ext <<_ACEOF
7921 /* confdefs.h. */
7922 _ACEOF
7923 cat confdefs.h >>conftest.$ac_ext
7924 cat >>conftest.$ac_ext <<_ACEOF
7925 /* end confdefs.h. */
7926 #include <X11/Xlib.h>
7928 main ()
7932 return 0;
7934 _ACEOF
7935 rm -f conftest.$ac_objext
7936 if { (ac_try="$ac_compile"
7937 case "(($ac_try" in
7938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7939 *) ac_try_echo=$ac_try;;
7940 esac
7941 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7942 $as_echo "$ac_try_echo") >&5
7943 (eval "$ac_compile") 2>conftest.er1
7944 ac_status=$?
7945 grep -v '^ *+' conftest.er1 >conftest.err
7946 rm -f conftest.er1
7947 cat conftest.err >&5
7948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7949 (exit $ac_status); } && {
7950 test -z "$ac_c_werror_flag" ||
7951 test ! -s conftest.err
7952 } && test -s conftest.$ac_objext; then
7953 { $as_echo "$as_me:$LINENO: result: yes" >&5
7954 $as_echo "yes" >&6; }; cflags_save="$cflags_save -Wno-implicit-int"
7955 else
7956 $as_echo "$as_me: failed program was:" >&5
7957 sed 's/^/| /' conftest.$ac_ext >&5
7959 { $as_echo "$as_me:$LINENO: result: test failed" >&5
7960 $as_echo "test failed" >&6; }
7964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7969 CFLAGS=$cflags_save
7971 LDFLAGS="$ac_save_LDFLAGS"
7976 test "x$with_x" = xno -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && enable_gui=no
7978 { $as_echo "$as_me:$LINENO: checking --enable-gui argument" >&5
7979 $as_echo_n "checking --enable-gui argument... " >&6; }
7980 # Check whether --enable-gui was given.
7981 if test "${enable_gui+set}" = set; then
7982 enableval=$enable_gui;
7983 else
7984 enable_gui="auto"
7988 enable_gui_canon=`echo "_$enable_gui" | \
7989 sed 's/[ _+-]//g;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
7991 SKIP_GTK=YES
7992 SKIP_GTK2=YES
7993 SKIP_GNOME=YES
7994 SKIP_MOTIF=YES
7995 SKIP_ATHENA=YES
7996 SKIP_NEXTAW=YES
7997 SKIP_PHOTON=YES
7998 SKIP_CARBON=YES
7999 GUITYPE=NONE
8001 if test "x$QNX" = "xyes" -a "x$with_x" = "xno" ; then
8002 SKIP_PHOTON=
8003 case "$enable_gui_canon" in
8004 no) { $as_echo "$as_me:$LINENO: result: no GUI support" >&5
8005 $as_echo "no GUI support" >&6; }
8006 SKIP_PHOTON=YES ;;
8007 yes|"") { $as_echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5
8008 $as_echo "yes - automatic GUI support" >&6; } ;;
8009 auto) { $as_echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5
8010 $as_echo "auto - automatic GUI support" >&6; } ;;
8011 photon) { $as_echo "$as_me:$LINENO: result: Photon GUI support" >&5
8012 $as_echo "Photon GUI support" >&6; } ;;
8013 *) { $as_echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
8014 $as_echo "Sorry, $enable_gui GUI is not supported" >&6; }
8015 SKIP_PHOTON=YES ;;
8016 esac
8018 elif test "x$MACOSX" = "xyes" -a "x$with_x" = "xno" ; then
8019 SKIP_CARBON=
8020 case "$enable_gui_canon" in
8021 no) { $as_echo "$as_me:$LINENO: result: no GUI support" >&5
8022 $as_echo "no GUI support" >&6; }
8023 SKIP_CARBON=YES ;;
8024 yes|"") { $as_echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5
8025 $as_echo "yes - automatic GUI support" >&6; } ;;
8026 auto) { $as_echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5
8027 $as_echo "auto - automatic GUI support" >&6; } ;;
8028 carbon) { $as_echo "$as_me:$LINENO: result: Carbon GUI support" >&5
8029 $as_echo "Carbon GUI support" >&6; } ;;
8030 *) { $as_echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
8031 $as_echo "Sorry, $enable_gui GUI is not supported" >&6; }
8032 SKIP_CARBON=YES ;;
8033 esac
8035 else
8037 case "$enable_gui_canon" in
8038 no|none) { $as_echo "$as_me:$LINENO: result: no GUI support" >&5
8039 $as_echo "no GUI support" >&6; } ;;
8040 yes|""|auto) { $as_echo "$as_me:$LINENO: result: yes/auto - automatic GUI support" >&5
8041 $as_echo "yes/auto - automatic GUI support" >&6; }
8042 SKIP_GTK=
8043 SKIP_GTK2=
8044 SKIP_GNOME=
8045 SKIP_MOTIF=
8046 SKIP_ATHENA=
8047 SKIP_NEXTAW=
8048 SKIP_CARBON=;;
8049 gtk) { $as_echo "$as_me:$LINENO: result: GTK+ 1.x GUI support" >&5
8050 $as_echo "GTK+ 1.x GUI support" >&6; }
8051 SKIP_GTK=;;
8052 gtk2) { $as_echo "$as_me:$LINENO: result: GTK+ 2.x GUI support" >&5
8053 $as_echo "GTK+ 2.x GUI support" >&6; }
8054 SKIP_GTK=
8055 SKIP_GTK2=;;
8056 gnome) { $as_echo "$as_me:$LINENO: result: GNOME 1.x GUI support" >&5
8057 $as_echo "GNOME 1.x GUI support" >&6; }
8058 SKIP_GNOME=
8059 SKIP_GTK=;;
8060 gnome2) { $as_echo "$as_me:$LINENO: result: GNOME 2.x GUI support" >&5
8061 $as_echo "GNOME 2.x GUI support" >&6; }
8062 SKIP_GNOME=
8063 SKIP_GTK=
8064 SKIP_GTK2=;;
8065 motif) { $as_echo "$as_me:$LINENO: result: Motif GUI support" >&5
8066 $as_echo "Motif GUI support" >&6; }
8067 SKIP_MOTIF=;;
8068 athena) { $as_echo "$as_me:$LINENO: result: Athena GUI support" >&5
8069 $as_echo "Athena GUI support" >&6; }
8070 SKIP_ATHENA=;;
8071 nextaw) { $as_echo "$as_me:$LINENO: result: neXtaw GUI support" >&5
8072 $as_echo "neXtaw GUI support" >&6; }
8073 SKIP_NEXTAW=;;
8074 *) { $as_echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
8075 $as_echo "Sorry, $enable_gui GUI is not supported" >&6; } ;;
8076 esac
8080 if test "x$SKIP_GTK" != "xYES" -a "$enable_gui_canon" != "gtk" -a "$enable_gui_canon" != "gtk2"; then
8081 { $as_echo "$as_me:$LINENO: checking whether or not to look for GTK" >&5
8082 $as_echo_n "checking whether or not to look for GTK... " >&6; }
8083 # Check whether --enable-gtk-check was given.
8084 if test "${enable_gtk_check+set}" = set; then
8085 enableval=$enable_gtk_check;
8086 else
8087 enable_gtk_check="yes"
8090 { $as_echo "$as_me:$LINENO: result: $enable_gtk_check" >&5
8091 $as_echo "$enable_gtk_check" >&6; }
8092 if test "x$enable_gtk_check" = "xno"; then
8093 SKIP_GTK=YES
8094 SKIP_GNOME=YES
8098 if test "x$SKIP_GTK2" != "xYES" -a "$enable_gui_canon" != "gtk2" \
8099 -a "$enable_gui_canon" != "gnome2"; then
8100 { $as_echo "$as_me:$LINENO: checking whether or not to look for GTK+ 2" >&5
8101 $as_echo_n "checking whether or not to look for GTK+ 2... " >&6; }
8102 # Check whether --enable-gtk2-check was given.
8103 if test "${enable_gtk2_check+set}" = set; then
8104 enableval=$enable_gtk2_check;
8105 else
8106 enable_gtk2_check="yes"
8109 { $as_echo "$as_me:$LINENO: result: $enable_gtk2_check" >&5
8110 $as_echo "$enable_gtk2_check" >&6; }
8111 if test "x$enable_gtk2_check" = "xno"; then
8112 SKIP_GTK2=YES
8116 if test "x$SKIP_GNOME" != "xYES" -a "$enable_gui_canon" != "gnome" \
8117 -a "$enable_gui_canon" != "gnome2"; then
8118 { $as_echo "$as_me:$LINENO: checking whether or not to look for GNOME" >&5
8119 $as_echo_n "checking whether or not to look for GNOME... " >&6; }
8120 # Check whether --enable-gnome-check was given.
8121 if test "${enable_gnome_check+set}" = set; then
8122 enableval=$enable_gnome_check;
8123 else
8124 enable_gnome_check="no"
8127 { $as_echo "$as_me:$LINENO: result: $enable_gnome_check" >&5
8128 $as_echo "$enable_gnome_check" >&6; }
8129 if test "x$enable_gnome_check" = "xno"; then
8130 SKIP_GNOME=YES
8134 if test "x$SKIP_MOTIF" != "xYES" -a "$enable_gui_canon" != "motif"; then
8135 { $as_echo "$as_me:$LINENO: checking whether or not to look for Motif" >&5
8136 $as_echo_n "checking whether or not to look for Motif... " >&6; }
8137 # Check whether --enable-motif-check was given.
8138 if test "${enable_motif_check+set}" = set; then
8139 enableval=$enable_motif_check;
8140 else
8141 enable_motif_check="yes"
8144 { $as_echo "$as_me:$LINENO: result: $enable_motif_check" >&5
8145 $as_echo "$enable_motif_check" >&6; }
8146 if test "x$enable_motif_check" = "xno"; then
8147 SKIP_MOTIF=YES
8151 if test "x$SKIP_ATHENA" != "xYES" -a "$enable_gui_canon" != "athena"; then
8152 { $as_echo "$as_me:$LINENO: checking whether or not to look for Athena" >&5
8153 $as_echo_n "checking whether or not to look for Athena... " >&6; }
8154 # Check whether --enable-athena-check was given.
8155 if test "${enable_athena_check+set}" = set; then
8156 enableval=$enable_athena_check;
8157 else
8158 enable_athena_check="yes"
8161 { $as_echo "$as_me:$LINENO: result: $enable_athena_check" >&5
8162 $as_echo "$enable_athena_check" >&6; }
8163 if test "x$enable_athena_check" = "xno"; then
8164 SKIP_ATHENA=YES
8168 if test "x$SKIP_NEXTAW" != "xYES" -a "$enable_gui_canon" != "nextaw"; then
8169 { $as_echo "$as_me:$LINENO: checking whether or not to look for neXtaw" >&5
8170 $as_echo_n "checking whether or not to look for neXtaw... " >&6; }
8171 # Check whether --enable-nextaw-check was given.
8172 if test "${enable_nextaw_check+set}" = set; then
8173 enableval=$enable_nextaw_check;
8174 else
8175 enable_nextaw_check="yes"
8178 { $as_echo "$as_me:$LINENO: result: $enable_nextaw_check" >&5
8179 $as_echo "$enable_nextaw_check" >&6; };
8180 if test "x$enable_nextaw_check" = "xno"; then
8181 SKIP_NEXTAW=YES
8185 if test "x$SKIP_CARBON" != "xYES" -a "$enable_gui_canon" != "carbon"; then
8186 { $as_echo "$as_me:$LINENO: checking whether or not to look for Carbon" >&5
8187 $as_echo_n "checking whether or not to look for Carbon... " >&6; }
8188 # Check whether --enable-carbon-check was given.
8189 if test "${enable_carbon_check+set}" = set; then
8190 enableval=$enable_carbon_check;
8191 else
8192 enable_carbon_check="yes"
8195 { $as_echo "$as_me:$LINENO: result: $enable_carbon_check" >&5
8196 $as_echo "$enable_carbon_check" >&6; };
8197 if test "x$enable_carbon_check" = "xno"; then
8198 SKIP_CARBON=YES
8203 if test "x$MACOSX" = "xyes" -a -z "$SKIP_CARBON" -a "x$CARBON" = "xyes"; then
8204 { $as_echo "$as_me:$LINENO: checking for Carbon GUI" >&5
8205 $as_echo_n "checking for Carbon GUI... " >&6; }
8206 { $as_echo "$as_me:$LINENO: result: yes" >&5
8207 $as_echo "yes" >&6; };
8208 GUITYPE=CARBONGUI
8209 if test "$VIMNAME" = "vim"; then
8210 VIMNAME=Vim
8213 if test x$prefix = xNONE; then
8214 prefix=/Applications
8217 datadir='${prefix}/Vim.app/Contents/Resources'
8219 SKIP_GTK=YES;
8220 SKIP_GTK2=YES;
8221 SKIP_GNOME=YES;
8222 SKIP_MOTIF=YES;
8223 SKIP_ATHENA=YES;
8224 SKIP_NEXTAW=YES;
8225 SKIP_PHOTON=YES;
8226 SKIP_CARBON=YES
8237 if test -z "$SKIP_GTK"; then
8239 { $as_echo "$as_me:$LINENO: checking --with-gtk-prefix argument" >&5
8240 $as_echo_n "checking --with-gtk-prefix argument... " >&6; }
8242 # Check whether --with-gtk-prefix was given.
8243 if test "${with_gtk_prefix+set}" = set; then
8244 withval=$with_gtk_prefix; gtk_config_prefix="$withval"; { $as_echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5
8245 $as_echo "$gtk_config_prefix" >&6; }
8246 else
8247 gtk_config_prefix=""; { $as_echo "$as_me:$LINENO: result: no" >&5
8248 $as_echo "no" >&6; }
8252 { $as_echo "$as_me:$LINENO: checking --with-gtk-exec-prefix argument" >&5
8253 $as_echo_n "checking --with-gtk-exec-prefix argument... " >&6; }
8255 # Check whether --with-gtk-exec-prefix was given.
8256 if test "${with_gtk_exec_prefix+set}" = set; then
8257 withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"; { $as_echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5
8258 $as_echo "$gtk_config_prefix" >&6; }
8259 else
8260 gtk_config_exec_prefix=""; { $as_echo "$as_me:$LINENO: result: no" >&5
8261 $as_echo "no" >&6; }
8265 { $as_echo "$as_me:$LINENO: checking --disable-gtktest argument" >&5
8266 $as_echo_n "checking --disable-gtktest argument... " >&6; }
8267 # Check whether --enable-gtktest was given.
8268 if test "${enable_gtktest+set}" = set; then
8269 enableval=$enable_gtktest;
8270 else
8271 enable_gtktest=yes
8274 if test "x$enable_gtktest" = "xyes" ; then
8275 { $as_echo "$as_me:$LINENO: result: gtk test enabled" >&5
8276 $as_echo "gtk test enabled" >&6; }
8277 else
8278 { $as_echo "$as_me:$LINENO: result: gtk test disabled" >&5
8279 $as_echo "gtk test disabled" >&6; }
8282 if test "x$gtk_config_prefix" != "x" ; then
8283 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
8284 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
8286 if test "x$gtk_config_exec_prefix" != "x" ; then
8287 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
8288 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
8290 if test "X$GTK_CONFIG" = "X"; then
8291 # Extract the first word of "gtk-config", so it can be a program name with args.
8292 set dummy gtk-config; ac_word=$2
8293 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8294 $as_echo_n "checking for $ac_word... " >&6; }
8295 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
8296 $as_echo_n "(cached) " >&6
8297 else
8298 case $GTK_CONFIG in
8299 [\\/]* | ?:[\\/]*)
8300 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
8303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8304 for as_dir in $PATH
8306 IFS=$as_save_IFS
8307 test -z "$as_dir" && as_dir=.
8308 for ac_exec_ext in '' $ac_executable_extensions; do
8309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8310 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8311 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8312 break 2
8314 done
8315 done
8316 IFS=$as_save_IFS
8318 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
8320 esac
8322 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
8323 if test -n "$GTK_CONFIG"; then
8324 { $as_echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
8325 $as_echo "$GTK_CONFIG" >&6; }
8326 else
8327 { $as_echo "$as_me:$LINENO: result: no" >&5
8328 $as_echo "no" >&6; }
8332 if test "X$GTK_CONFIG" = "Xno"; then
8333 # Extract the first word of "gtk12-config", so it can be a program name with args.
8334 set dummy gtk12-config; ac_word=$2
8335 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8336 $as_echo_n "checking for $ac_word... " >&6; }
8337 if test "${ac_cv_path_GTK12_CONFIG+set}" = set; then
8338 $as_echo_n "(cached) " >&6
8339 else
8340 case $GTK12_CONFIG in
8341 [\\/]* | ?:[\\/]*)
8342 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
8345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8346 for as_dir in $PATH
8348 IFS=$as_save_IFS
8349 test -z "$as_dir" && as_dir=.
8350 for ac_exec_ext in '' $ac_executable_extensions; do
8351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8352 ac_cv_path_GTK12_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8353 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8354 break 2
8356 done
8357 done
8358 IFS=$as_save_IFS
8360 test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
8362 esac
8364 GTK12_CONFIG=$ac_cv_path_GTK12_CONFIG
8365 if test -n "$GTK12_CONFIG"; then
8366 { $as_echo "$as_me:$LINENO: result: $GTK12_CONFIG" >&5
8367 $as_echo "$GTK12_CONFIG" >&6; }
8368 else
8369 { $as_echo "$as_me:$LINENO: result: no" >&5
8370 $as_echo "no" >&6; }
8374 GTK_CONFIG="$GTK12_CONFIG"
8376 else
8377 { $as_echo "$as_me:$LINENO: result: Using GTK configuration program $GTK_CONFIG" >&5
8378 $as_echo "Using GTK configuration program $GTK_CONFIG" >&6; }
8380 if test "X$PKG_CONFIG" = "X"; then
8381 # Extract the first word of "pkg-config", so it can be a program name with args.
8382 set dummy pkg-config; ac_word=$2
8383 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8384 $as_echo_n "checking for $ac_word... " >&6; }
8385 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8386 $as_echo_n "(cached) " >&6
8387 else
8388 case $PKG_CONFIG in
8389 [\\/]* | ?:[\\/]*)
8390 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8394 for as_dir in $PATH
8396 IFS=$as_save_IFS
8397 test -z "$as_dir" && as_dir=.
8398 for ac_exec_ext in '' $ac_executable_extensions; do
8399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8400 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8401 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8402 break 2
8404 done
8405 done
8406 IFS=$as_save_IFS
8408 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8410 esac
8412 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8413 if test -n "$PKG_CONFIG"; then
8414 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8415 $as_echo "$PKG_CONFIG" >&6; }
8416 else
8417 { $as_echo "$as_me:$LINENO: result: no" >&5
8418 $as_echo "no" >&6; }
8424 if test "x$GTK_CONFIG:$PKG_CONFIG" != "xno:no"; then
8425 if test "X$SKIP_GTK2" != "XYES"; then
8427 if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
8429 min_gtk_version=2.2.0
8430 { $as_echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
8431 $as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; }
8432 no_gtk=""
8433 if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
8434 && $PKG_CONFIG --exists gtk+-2.0; then
8436 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
8437 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0`
8438 GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
8439 gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8440 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8441 gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8442 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8443 gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8444 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8446 elif test "X$GTK_CONFIG" != "Xno"; then
8448 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
8449 GTK_LIBDIR=
8450 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
8451 gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \
8452 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8453 gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
8454 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8455 gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
8456 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8458 else
8459 no_gtk=yes
8462 if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
8464 ac_save_CFLAGS="$CFLAGS"
8465 ac_save_LIBS="$LIBS"
8466 CFLAGS="$CFLAGS $GTK_CFLAGS"
8467 LIBS="$LIBS $GTK_LIBS"
8469 rm -f conf.gtktest
8470 if test "$cross_compiling" = yes; then
8471 echo $ac_n "cross compiling; assumed OK... $ac_c"
8472 else
8473 cat >conftest.$ac_ext <<_ACEOF
8474 /* confdefs.h. */
8475 _ACEOF
8476 cat confdefs.h >>conftest.$ac_ext
8477 cat >>conftest.$ac_ext <<_ACEOF
8478 /* end confdefs.h. */
8480 #include <gtk/gtk.h>
8481 #include <stdio.h>
8482 #if STDC_HEADERS
8483 # include <stdlib.h>
8484 # include <stddef.h>
8485 #endif
8488 main ()
8490 int major, minor, micro;
8491 char *tmp_version;
8493 system ("touch conf.gtktest");
8495 /* HP/UX 9 (%@#!) writes to sscanf strings */
8496 tmp_version = g_strdup("$min_gtk_version");
8497 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
8498 printf("%s, bad version string\n", "$min_gtk_version");
8499 exit(1);
8502 if ((gtk_major_version > major) ||
8503 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
8504 ((gtk_major_version == major) && (gtk_minor_version == minor) &&
8505 (gtk_micro_version >= micro)))
8507 return 0;
8509 return 1;
8512 _ACEOF
8513 rm -f conftest$ac_exeext
8514 if { (ac_try="$ac_link"
8515 case "(($ac_try" in
8516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8517 *) ac_try_echo=$ac_try;;
8518 esac
8519 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8520 $as_echo "$ac_try_echo") >&5
8521 (eval "$ac_link") 2>&5
8522 ac_status=$?
8523 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8524 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8525 { (case "(($ac_try" in
8526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8527 *) ac_try_echo=$ac_try;;
8528 esac
8529 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8530 $as_echo "$ac_try_echo") >&5
8531 (eval "$ac_try") 2>&5
8532 ac_status=$?
8533 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8534 (exit $ac_status); }; }; then
8536 else
8537 $as_echo "$as_me: program exited with status $ac_status" >&5
8538 $as_echo "$as_me: failed program was:" >&5
8539 sed 's/^/| /' conftest.$ac_ext >&5
8541 ( exit $ac_status )
8542 no_gtk=yes
8544 rm -rf conftest.dSYM
8545 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8549 CFLAGS="$ac_save_CFLAGS"
8550 LIBS="$ac_save_LIBS"
8553 if test "x$no_gtk" = x ; then
8554 if test "x$enable_gtktest" = "xyes"; then
8555 { $as_echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8556 $as_echo "yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
8557 else
8558 { $as_echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8559 $as_echo "found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
8561 GUI_LIB_LOC="$GTK_LIBDIR"
8562 GTK_LIBNAME="$GTK_LIBS"
8563 GUI_INC_LOC="$GTK_CFLAGS"
8564 else
8566 { $as_echo "$as_me:$LINENO: result: no" >&5
8567 $as_echo "no" >&6; }
8568 GTK_CFLAGS=""
8569 GTK_LIBS=""
8574 else
8575 GTK_CFLAGS=""
8576 GTK_LIBS=""
8581 rm -f conf.gtktest
8583 if test "x$GTK_CFLAGS" != "x"; then
8584 SKIP_ATHENA=YES
8585 SKIP_NEXTAW=YES
8586 SKIP_MOTIF=YES
8587 GUITYPE=GTK
8592 if test "x$GUITYPE" != "xGTK"; then
8593 SKIP_GTK2=YES
8595 if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
8597 min_gtk_version=1.1.16
8598 { $as_echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
8599 $as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; }
8600 no_gtk=""
8601 if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
8602 && $PKG_CONFIG --exists gtk+-2.0; then
8604 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
8605 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0`
8606 GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
8607 gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8608 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8609 gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8610 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8611 gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8612 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8614 elif test "X$GTK_CONFIG" != "Xno"; then
8616 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
8617 GTK_LIBDIR=
8618 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
8619 gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \
8620 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8621 gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
8622 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8623 gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
8624 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8626 else
8627 no_gtk=yes
8630 if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
8632 ac_save_CFLAGS="$CFLAGS"
8633 ac_save_LIBS="$LIBS"
8634 CFLAGS="$CFLAGS $GTK_CFLAGS"
8635 LIBS="$LIBS $GTK_LIBS"
8637 rm -f conf.gtktest
8638 if test "$cross_compiling" = yes; then
8639 echo $ac_n "cross compiling; assumed OK... $ac_c"
8640 else
8641 cat >conftest.$ac_ext <<_ACEOF
8642 /* confdefs.h. */
8643 _ACEOF
8644 cat confdefs.h >>conftest.$ac_ext
8645 cat >>conftest.$ac_ext <<_ACEOF
8646 /* end confdefs.h. */
8648 #include <gtk/gtk.h>
8649 #include <stdio.h>
8650 #if STDC_HEADERS
8651 # include <stdlib.h>
8652 # include <stddef.h>
8653 #endif
8656 main ()
8658 int major, minor, micro;
8659 char *tmp_version;
8661 system ("touch conf.gtktest");
8663 /* HP/UX 9 (%@#!) writes to sscanf strings */
8664 tmp_version = g_strdup("$min_gtk_version");
8665 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
8666 printf("%s, bad version string\n", "$min_gtk_version");
8667 exit(1);
8670 if ((gtk_major_version > major) ||
8671 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
8672 ((gtk_major_version == major) && (gtk_minor_version == minor) &&
8673 (gtk_micro_version >= micro)))
8675 return 0;
8677 return 1;
8680 _ACEOF
8681 rm -f conftest$ac_exeext
8682 if { (ac_try="$ac_link"
8683 case "(($ac_try" in
8684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8685 *) ac_try_echo=$ac_try;;
8686 esac
8687 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8688 $as_echo "$ac_try_echo") >&5
8689 (eval "$ac_link") 2>&5
8690 ac_status=$?
8691 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8692 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8693 { (case "(($ac_try" in
8694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8695 *) ac_try_echo=$ac_try;;
8696 esac
8697 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8698 $as_echo "$ac_try_echo") >&5
8699 (eval "$ac_try") 2>&5
8700 ac_status=$?
8701 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8702 (exit $ac_status); }; }; then
8704 else
8705 $as_echo "$as_me: program exited with status $ac_status" >&5
8706 $as_echo "$as_me: failed program was:" >&5
8707 sed 's/^/| /' conftest.$ac_ext >&5
8709 ( exit $ac_status )
8710 no_gtk=yes
8712 rm -rf conftest.dSYM
8713 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8717 CFLAGS="$ac_save_CFLAGS"
8718 LIBS="$ac_save_LIBS"
8721 if test "x$no_gtk" = x ; then
8722 if test "x$enable_gtktest" = "xyes"; then
8723 { $as_echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8724 $as_echo "yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
8725 else
8726 { $as_echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8727 $as_echo "found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
8729 GTK_LIBNAME="$GTK_LIBS"
8730 GUI_INC_LOC="$GTK_CFLAGS"
8731 else
8733 { $as_echo "$as_me:$LINENO: result: no" >&5
8734 $as_echo "no" >&6; }
8735 GTK_CFLAGS=""
8736 GTK_LIBS=""
8741 else
8742 GTK_CFLAGS=""
8743 GTK_LIBS=""
8748 rm -f conf.gtktest
8750 if test "x$GTK_CFLAGS" != "x"; then
8751 SKIP_ATHENA=YES
8752 SKIP_NEXTAW=YES
8753 SKIP_MOTIF=YES
8754 GUITYPE=GTK
8759 if test "x$GUITYPE" = "xGTK"; then
8760 if test "$gtk_major_version" = 1 -a "0$gtk_minor_version" -lt 2 \
8761 -o "$gtk_major_version" = 1 -a "$gtk_minor_version" = 2 -a "0$gtk_micro_version" -lt 3; then
8762 { $as_echo "$as_me:$LINENO: result: this GTK version is old; version 1.2.3 or later is recommended" >&5
8763 $as_echo "this GTK version is old; version 1.2.3 or later is recommended" >&6; }
8764 else
8766 if test "0$gtk_major_version" -ge 2; then
8767 cat >>confdefs.h <<\_ACEOF
8768 #define HAVE_GTK2 1
8769 _ACEOF
8771 if test "$gtk_minor_version" = 1 -a "0$gtk_micro_version" -ge 1 \
8772 || test "0$gtk_minor_version" -ge 2 \
8773 || test "0$gtk_major_version" -gt 2; then
8774 cat >>confdefs.h <<\_ACEOF
8775 #define HAVE_GTK_MULTIHEAD 1
8776 _ACEOF
8780 if test -z "$SKIP_GNOME"; then
8788 # Check whether --with-gnome-includes was given.
8789 if test "${with_gnome_includes+set}" = set; then
8790 withval=$with_gnome_includes; CFLAGS="$CFLAGS -I$withval"
8796 # Check whether --with-gnome-libs was given.
8797 if test "${with_gnome_libs+set}" = set; then
8798 withval=$with_gnome_libs; LDFLAGS="$LDFLAGS -L$withval" gnome_prefix=$withval
8804 # Check whether --with-gnome was given.
8805 if test "${with_gnome+set}" = set; then
8806 withval=$with_gnome; if test x$withval = xyes; then
8807 want_gnome=yes
8808 have_gnome=yes
8809 else
8810 if test "x$withval" = xno; then
8811 want_gnome=no
8812 else
8813 want_gnome=yes
8814 LDFLAGS="$LDFLAGS -L$withval/lib"
8815 CFLAGS="$CFLAGS -I$withval/include"
8816 gnome_prefix=$withval/lib
8819 else
8820 want_gnome=yes
8824 if test "x$want_gnome" = xyes -a "0$gtk_major_version" -ge 2; then
8826 { $as_echo "$as_me:$LINENO: checking for libgnomeui-2.0" >&5
8827 $as_echo_n "checking for libgnomeui-2.0... " >&6; }
8828 if $PKG_CONFIG --exists libgnomeui-2.0; then
8829 { $as_echo "$as_me:$LINENO: result: yes" >&5
8830 $as_echo "yes" >&6; }
8831 GNOME_LIBS=`$PKG_CONFIG --libs-only-l libgnomeui-2.0`
8832 GNOME_LIBDIR=`$PKG_CONFIG --libs-only-L libgnomeui-2.0`
8833 GNOME_INCLUDEDIR=`$PKG_CONFIG --cflags libgnomeui-2.0`
8835 { $as_echo "$as_me:$LINENO: checking for FreeBSD" >&5
8836 $as_echo_n "checking for FreeBSD... " >&6; }
8837 if test "`(uname) 2>/dev/null`" = FreeBSD; then
8838 { $as_echo "$as_me:$LINENO: result: yes" >&5
8839 $as_echo "yes" >&6; }
8840 GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR -D_THREAD_SAFE"
8841 GNOME_LIBS="$GNOME_LIBS -pthread"
8842 else
8843 { $as_echo "$as_me:$LINENO: result: no" >&5
8844 $as_echo "no" >&6; }
8846 have_gnome=yes
8847 else
8848 { $as_echo "$as_me:$LINENO: result: not found" >&5
8849 $as_echo "not found" >&6; }
8850 if test "x" = xfail; then
8851 { { $as_echo "$as_me:$LINENO: error: Could not find libgnomeui-2.0 via pkg-config" >&5
8852 $as_echo "$as_me: error: Could not find libgnomeui-2.0 via pkg-config" >&2;}
8853 { (exit 1); exit 1; }; }
8857 elif test "x$want_gnome" = xyes; then
8859 # Extract the first word of "gnome-config", so it can be a program name with args.
8860 set dummy gnome-config; ac_word=$2
8861 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8862 $as_echo_n "checking for $ac_word... " >&6; }
8863 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
8864 $as_echo_n "(cached) " >&6
8865 else
8866 case $GNOME_CONFIG in
8867 [\\/]* | ?:[\\/]*)
8868 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
8871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8872 for as_dir in $PATH
8874 IFS=$as_save_IFS
8875 test -z "$as_dir" && as_dir=.
8876 for ac_exec_ext in '' $ac_executable_extensions; do
8877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8878 ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8879 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8880 break 2
8882 done
8883 done
8884 IFS=$as_save_IFS
8886 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
8888 esac
8890 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
8891 if test -n "$GNOME_CONFIG"; then
8892 { $as_echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
8893 $as_echo "$GNOME_CONFIG" >&6; }
8894 else
8895 { $as_echo "$as_me:$LINENO: result: no" >&5
8896 $as_echo "no" >&6; }
8900 if test "$GNOME_CONFIG" = "no"; then
8901 no_gnome_config="yes"
8902 else
8903 { $as_echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
8904 $as_echo_n "checking if $GNOME_CONFIG works... " >&6; }
8905 if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
8906 { $as_echo "$as_me:$LINENO: result: yes" >&5
8907 $as_echo "yes" >&6; }
8908 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome gnomeui`"
8909 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
8910 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
8911 have_gnome=yes
8912 else
8913 { $as_echo "$as_me:$LINENO: result: no" >&5
8914 $as_echo "no" >&6; }
8915 no_gnome_config="yes"
8919 if test x$exec_prefix = xNONE; then
8920 if test x$prefix = xNONE; then
8921 gnome_prefix=$ac_default_prefix/lib
8922 else
8923 gnome_prefix=$prefix/lib
8925 else
8926 gnome_prefix=`eval echo \`echo $libdir\``
8929 if test "$no_gnome_config" = "yes"; then
8930 { $as_echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
8931 $as_echo_n "checking for gnomeConf.sh file in $gnome_prefix... " >&6; }
8932 if test -f $gnome_prefix/gnomeConf.sh; then
8933 { $as_echo "$as_me:$LINENO: result: found" >&5
8934 $as_echo "found" >&6; }
8935 echo "loading gnome configuration from" \
8936 "$gnome_prefix/gnomeConf.sh"
8937 . $gnome_prefix/gnomeConf.sh
8938 have_gnome=yes
8939 else
8940 { $as_echo "$as_me:$LINENO: result: not found" >&5
8941 $as_echo "not found" >&6; }
8942 if test x = xfail; then
8943 { { $as_echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
8944 $as_echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
8945 { (exit 1); exit 1; }; }
8952 if test x$have_gnome = xyes ; then
8953 cat >>confdefs.h <<\_ACEOF
8954 #define FEAT_GUI_GNOME 1
8955 _ACEOF
8957 GUI_INC_LOC="$GUI_INC_LOC $GNOME_INCLUDEDIR"
8958 GTK_LIBNAME="$GTK_LIBNAME $GNOME_LIBDIR $GNOME_LIBS"
8968 if test -z "$SKIP_MOTIF"; then
8969 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"
8970 GUI_INC_LOC="`echo $GUI_INC_LOC|sed 's%-I%%g'`"
8972 { $as_echo "$as_me:$LINENO: checking for location of Motif GUI includes" >&5
8973 $as_echo_n "checking for location of Motif GUI includes... " >&6; }
8974 gui_includes="`echo $x_includes|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/include/g` $GUI_INC_LOC"
8975 GUI_INC_LOC=
8976 for try in $gui_includes; do
8977 if test -f "$try/Xm/Xm.h"; then
8978 GUI_INC_LOC=$try
8980 done
8981 if test -n "$GUI_INC_LOC"; then
8982 if test "$GUI_INC_LOC" = /usr/include; then
8983 GUI_INC_LOC=
8984 { $as_echo "$as_me:$LINENO: result: in default path" >&5
8985 $as_echo "in default path" >&6; }
8986 else
8987 { $as_echo "$as_me:$LINENO: result: $GUI_INC_LOC" >&5
8988 $as_echo "$GUI_INC_LOC" >&6; }
8990 else
8991 { $as_echo "$as_me:$LINENO: result: <not found>" >&5
8992 $as_echo "<not found>" >&6; }
8993 SKIP_MOTIF=YES
8998 if test -z "$SKIP_MOTIF"; then
8999 { $as_echo "$as_me:$LINENO: checking --with-motif-lib argument" >&5
9000 $as_echo_n "checking --with-motif-lib argument... " >&6; }
9002 # Check whether --with-motif-lib was given.
9003 if test "${with_motif_lib+set}" = set; then
9004 withval=$with_motif_lib; MOTIF_LIBNAME="${withval}"
9008 if test -n "$MOTIF_LIBNAME"; then
9009 { $as_echo "$as_me:$LINENO: result: $MOTIF_LIBNAME" >&5
9010 $as_echo "$MOTIF_LIBNAME" >&6; }
9011 GUI_LIB_LOC=
9012 else
9013 { $as_echo "$as_me:$LINENO: result: no" >&5
9014 $as_echo "no" >&6; }
9016 GUI_LIB_LOC="`echo $GUI_LIB_LOC|sed 's%-L%%g'`"
9018 { $as_echo "$as_me:$LINENO: checking for location of Motif GUI libs" >&5
9019 $as_echo_n "checking for location of Motif GUI libs... " >&6; }
9020 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"
9021 GUI_LIB_LOC=
9022 for try in $gui_libs; do
9023 for libtry in "$try"/libXm.a "$try"/libXm.so* "$try"/libXm.sl "$try"/libXm.dylib; do
9024 if test -f "$libtry"; then
9025 GUI_LIB_LOC=$try
9027 done
9028 done
9029 if test -n "$GUI_LIB_LOC"; then
9030 if test "$GUI_LIB_LOC" = /usr/lib; then
9031 GUI_LIB_LOC=
9032 { $as_echo "$as_me:$LINENO: result: in default path" >&5
9033 $as_echo "in default path" >&6; }
9034 else
9035 if test -n "$GUI_LIB_LOC"; then
9036 { $as_echo "$as_me:$LINENO: result: $GUI_LIB_LOC" >&5
9037 $as_echo "$GUI_LIB_LOC" >&6; }
9038 if test "`(uname) 2>/dev/null`" = SunOS &&
9039 uname -r | grep '^5' >/dev/null; then
9040 GUI_LIB_LOC="$GUI_LIB_LOC -R $GUI_LIB_LOC"
9044 MOTIF_LIBNAME=-lXm
9045 else
9046 { $as_echo "$as_me:$LINENO: result: <not found>" >&5
9047 $as_echo "<not found>" >&6; }
9048 SKIP_MOTIF=YES
9053 if test -z "$SKIP_MOTIF"; then
9054 SKIP_ATHENA=YES
9055 SKIP_NEXTAW=YES
9056 GUITYPE=MOTIF
9061 GUI_X_LIBS=
9063 if test -z "$SKIP_ATHENA"; then
9064 { $as_echo "$as_me:$LINENO: checking if Athena header files can be found" >&5
9065 $as_echo_n "checking if Athena header files can be found... " >&6; }
9066 cflags_save=$CFLAGS
9067 CFLAGS="$CFLAGS $X_CFLAGS"
9068 cat >conftest.$ac_ext <<_ACEOF
9069 /* confdefs.h. */
9070 _ACEOF
9071 cat confdefs.h >>conftest.$ac_ext
9072 cat >>conftest.$ac_ext <<_ACEOF
9073 /* end confdefs.h. */
9075 #include <X11/Intrinsic.h>
9076 #include <X11/Xaw/Paned.h>
9078 main ()
9082 return 0;
9084 _ACEOF
9085 rm -f conftest.$ac_objext
9086 if { (ac_try="$ac_compile"
9087 case "(($ac_try" in
9088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9089 *) ac_try_echo=$ac_try;;
9090 esac
9091 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9092 $as_echo "$ac_try_echo") >&5
9093 (eval "$ac_compile") 2>conftest.er1
9094 ac_status=$?
9095 grep -v '^ *+' conftest.er1 >conftest.err
9096 rm -f conftest.er1
9097 cat conftest.err >&5
9098 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9099 (exit $ac_status); } && {
9100 test -z "$ac_c_werror_flag" ||
9101 test ! -s conftest.err
9102 } && test -s conftest.$ac_objext; then
9103 { $as_echo "$as_me:$LINENO: result: yes" >&5
9104 $as_echo "yes" >&6; }
9105 else
9106 $as_echo "$as_me: failed program was:" >&5
9107 sed 's/^/| /' conftest.$ac_ext >&5
9109 { $as_echo "$as_me:$LINENO: result: no" >&5
9110 $as_echo "no" >&6; }; SKIP_ATHENA=YES
9113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9114 CFLAGS=$cflags_save
9117 if test -z "$SKIP_ATHENA"; then
9118 GUITYPE=ATHENA
9121 if test -z "$SKIP_NEXTAW"; then
9122 { $as_echo "$as_me:$LINENO: checking if neXtaw header files can be found" >&5
9123 $as_echo_n "checking if neXtaw header files can be found... " >&6; }
9124 cflags_save=$CFLAGS
9125 CFLAGS="$CFLAGS $X_CFLAGS"
9126 cat >conftest.$ac_ext <<_ACEOF
9127 /* confdefs.h. */
9128 _ACEOF
9129 cat confdefs.h >>conftest.$ac_ext
9130 cat >>conftest.$ac_ext <<_ACEOF
9131 /* end confdefs.h. */
9133 #include <X11/Intrinsic.h>
9134 #include <X11/neXtaw/Paned.h>
9136 main ()
9140 return 0;
9142 _ACEOF
9143 rm -f conftest.$ac_objext
9144 if { (ac_try="$ac_compile"
9145 case "(($ac_try" in
9146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9147 *) ac_try_echo=$ac_try;;
9148 esac
9149 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9150 $as_echo "$ac_try_echo") >&5
9151 (eval "$ac_compile") 2>conftest.er1
9152 ac_status=$?
9153 grep -v '^ *+' conftest.er1 >conftest.err
9154 rm -f conftest.er1
9155 cat conftest.err >&5
9156 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9157 (exit $ac_status); } && {
9158 test -z "$ac_c_werror_flag" ||
9159 test ! -s conftest.err
9160 } && test -s conftest.$ac_objext; then
9161 { $as_echo "$as_me:$LINENO: result: yes" >&5
9162 $as_echo "yes" >&6; }
9163 else
9164 $as_echo "$as_me: failed program was:" >&5
9165 sed 's/^/| /' conftest.$ac_ext >&5
9167 { $as_echo "$as_me:$LINENO: result: no" >&5
9168 $as_echo "no" >&6; }; SKIP_NEXTAW=YES
9171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9172 CFLAGS=$cflags_save
9175 if test -z "$SKIP_NEXTAW"; then
9176 GUITYPE=NEXTAW
9179 if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
9180 if test -n "$GUI_INC_LOC"; then
9181 GUI_INC_LOC=-I"`echo $GUI_INC_LOC|sed 's%-I%%'`"
9183 if test -n "$GUI_LIB_LOC"; then
9184 GUI_LIB_LOC=-L"`echo $GUI_LIB_LOC|sed 's%-L%%'`"
9187 ldflags_save=$LDFLAGS
9188 LDFLAGS="$X_LIBS $LDFLAGS"
9189 { $as_echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
9190 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
9191 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
9192 $as_echo_n "(cached) " >&6
9193 else
9194 ac_check_lib_save_LIBS=$LIBS
9195 LIBS="-lXext -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9196 cat >conftest.$ac_ext <<_ACEOF
9197 /* confdefs.h. */
9198 _ACEOF
9199 cat confdefs.h >>conftest.$ac_ext
9200 cat >>conftest.$ac_ext <<_ACEOF
9201 /* end confdefs.h. */
9203 /* Override any GCC internal prototype to avoid an error.
9204 Use char because int might match the return type of a GCC
9205 builtin and then its argument prototype would still apply. */
9206 #ifdef __cplusplus
9207 extern "C"
9208 #endif
9209 char XShapeQueryExtension ();
9211 main ()
9213 return XShapeQueryExtension ();
9215 return 0;
9217 _ACEOF
9218 rm -f conftest.$ac_objext conftest$ac_exeext
9219 if { (ac_try="$ac_link"
9220 case "(($ac_try" in
9221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9222 *) ac_try_echo=$ac_try;;
9223 esac
9224 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9225 $as_echo "$ac_try_echo") >&5
9226 (eval "$ac_link") 2>conftest.er1
9227 ac_status=$?
9228 grep -v '^ *+' conftest.er1 >conftest.err
9229 rm -f conftest.er1
9230 cat conftest.err >&5
9231 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9232 (exit $ac_status); } && {
9233 test -z "$ac_c_werror_flag" ||
9234 test ! -s conftest.err
9235 } && test -s conftest$ac_exeext && {
9236 test "$cross_compiling" = yes ||
9237 $as_test_x conftest$ac_exeext
9238 }; then
9239 ac_cv_lib_Xext_XShapeQueryExtension=yes
9240 else
9241 $as_echo "$as_me: failed program was:" >&5
9242 sed 's/^/| /' conftest.$ac_ext >&5
9244 ac_cv_lib_Xext_XShapeQueryExtension=no
9247 rm -rf conftest.dSYM
9248 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9249 conftest$ac_exeext conftest.$ac_ext
9250 LIBS=$ac_check_lib_save_LIBS
9252 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
9253 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
9254 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
9255 GUI_X_LIBS="-lXext"
9258 { $as_echo "$as_me:$LINENO: checking for wslen in -lw" >&5
9259 $as_echo_n "checking for wslen in -lw... " >&6; }
9260 if test "${ac_cv_lib_w_wslen+set}" = set; then
9261 $as_echo_n "(cached) " >&6
9262 else
9263 ac_check_lib_save_LIBS=$LIBS
9264 LIBS="-lw $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9265 cat >conftest.$ac_ext <<_ACEOF
9266 /* confdefs.h. */
9267 _ACEOF
9268 cat confdefs.h >>conftest.$ac_ext
9269 cat >>conftest.$ac_ext <<_ACEOF
9270 /* end confdefs.h. */
9272 /* Override any GCC internal prototype to avoid an error.
9273 Use char because int might match the return type of a GCC
9274 builtin and then its argument prototype would still apply. */
9275 #ifdef __cplusplus
9276 extern "C"
9277 #endif
9278 char wslen ();
9280 main ()
9282 return wslen ();
9284 return 0;
9286 _ACEOF
9287 rm -f conftest.$ac_objext conftest$ac_exeext
9288 if { (ac_try="$ac_link"
9289 case "(($ac_try" in
9290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9291 *) ac_try_echo=$ac_try;;
9292 esac
9293 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9294 $as_echo "$ac_try_echo") >&5
9295 (eval "$ac_link") 2>conftest.er1
9296 ac_status=$?
9297 grep -v '^ *+' conftest.er1 >conftest.err
9298 rm -f conftest.er1
9299 cat conftest.err >&5
9300 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9301 (exit $ac_status); } && {
9302 test -z "$ac_c_werror_flag" ||
9303 test ! -s conftest.err
9304 } && test -s conftest$ac_exeext && {
9305 test "$cross_compiling" = yes ||
9306 $as_test_x conftest$ac_exeext
9307 }; then
9308 ac_cv_lib_w_wslen=yes
9309 else
9310 $as_echo "$as_me: failed program was:" >&5
9311 sed 's/^/| /' conftest.$ac_ext >&5
9313 ac_cv_lib_w_wslen=no
9316 rm -rf conftest.dSYM
9317 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9318 conftest$ac_exeext conftest.$ac_ext
9319 LIBS=$ac_check_lib_save_LIBS
9321 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_w_wslen" >&5
9322 $as_echo "$ac_cv_lib_w_wslen" >&6; }
9323 if test $ac_cv_lib_w_wslen = yes; then
9324 X_EXTRA_LIBS="$X_EXTRA_LIBS -lw"
9327 { $as_echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5
9328 $as_echo_n "checking for dlsym in -ldl... " >&6; }
9329 if test "${ac_cv_lib_dl_dlsym+set}" = set; then
9330 $as_echo_n "(cached) " >&6
9331 else
9332 ac_check_lib_save_LIBS=$LIBS
9333 LIBS="-ldl $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9334 cat >conftest.$ac_ext <<_ACEOF
9335 /* confdefs.h. */
9336 _ACEOF
9337 cat confdefs.h >>conftest.$ac_ext
9338 cat >>conftest.$ac_ext <<_ACEOF
9339 /* end confdefs.h. */
9341 /* Override any GCC internal prototype to avoid an error.
9342 Use char because int might match the return type of a GCC
9343 builtin and then its argument prototype would still apply. */
9344 #ifdef __cplusplus
9345 extern "C"
9346 #endif
9347 char dlsym ();
9349 main ()
9351 return dlsym ();
9353 return 0;
9355 _ACEOF
9356 rm -f conftest.$ac_objext conftest$ac_exeext
9357 if { (ac_try="$ac_link"
9358 case "(($ac_try" in
9359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9360 *) ac_try_echo=$ac_try;;
9361 esac
9362 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9363 $as_echo "$ac_try_echo") >&5
9364 (eval "$ac_link") 2>conftest.er1
9365 ac_status=$?
9366 grep -v '^ *+' conftest.er1 >conftest.err
9367 rm -f conftest.er1
9368 cat conftest.err >&5
9369 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9370 (exit $ac_status); } && {
9371 test -z "$ac_c_werror_flag" ||
9372 test ! -s conftest.err
9373 } && test -s conftest$ac_exeext && {
9374 test "$cross_compiling" = yes ||
9375 $as_test_x conftest$ac_exeext
9376 }; then
9377 ac_cv_lib_dl_dlsym=yes
9378 else
9379 $as_echo "$as_me: failed program was:" >&5
9380 sed 's/^/| /' conftest.$ac_ext >&5
9382 ac_cv_lib_dl_dlsym=no
9385 rm -rf conftest.dSYM
9386 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9387 conftest$ac_exeext conftest.$ac_ext
9388 LIBS=$ac_check_lib_save_LIBS
9390 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5
9391 $as_echo "$ac_cv_lib_dl_dlsym" >&6; }
9392 if test $ac_cv_lib_dl_dlsym = yes; then
9393 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldl"
9396 { $as_echo "$as_me:$LINENO: checking for XmuCreateStippledPixmap in -lXmu" >&5
9397 $as_echo_n "checking for XmuCreateStippledPixmap in -lXmu... " >&6; }
9398 if test "${ac_cv_lib_Xmu_XmuCreateStippledPixmap+set}" = set; then
9399 $as_echo_n "(cached) " >&6
9400 else
9401 ac_check_lib_save_LIBS=$LIBS
9402 LIBS="-lXmu $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9403 cat >conftest.$ac_ext <<_ACEOF
9404 /* confdefs.h. */
9405 _ACEOF
9406 cat confdefs.h >>conftest.$ac_ext
9407 cat >>conftest.$ac_ext <<_ACEOF
9408 /* end confdefs.h. */
9410 /* Override any GCC internal prototype to avoid an error.
9411 Use char because int might match the return type of a GCC
9412 builtin and then its argument prototype would still apply. */
9413 #ifdef __cplusplus
9414 extern "C"
9415 #endif
9416 char XmuCreateStippledPixmap ();
9418 main ()
9420 return XmuCreateStippledPixmap ();
9422 return 0;
9424 _ACEOF
9425 rm -f conftest.$ac_objext conftest$ac_exeext
9426 if { (ac_try="$ac_link"
9427 case "(($ac_try" in
9428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9429 *) ac_try_echo=$ac_try;;
9430 esac
9431 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9432 $as_echo "$ac_try_echo") >&5
9433 (eval "$ac_link") 2>conftest.er1
9434 ac_status=$?
9435 grep -v '^ *+' conftest.er1 >conftest.err
9436 rm -f conftest.er1
9437 cat conftest.err >&5
9438 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9439 (exit $ac_status); } && {
9440 test -z "$ac_c_werror_flag" ||
9441 test ! -s conftest.err
9442 } && test -s conftest$ac_exeext && {
9443 test "$cross_compiling" = yes ||
9444 $as_test_x conftest$ac_exeext
9445 }; then
9446 ac_cv_lib_Xmu_XmuCreateStippledPixmap=yes
9447 else
9448 $as_echo "$as_me: failed program was:" >&5
9449 sed 's/^/| /' conftest.$ac_ext >&5
9451 ac_cv_lib_Xmu_XmuCreateStippledPixmap=no
9454 rm -rf conftest.dSYM
9455 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9456 conftest$ac_exeext conftest.$ac_ext
9457 LIBS=$ac_check_lib_save_LIBS
9459 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&5
9460 $as_echo "$ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&6; }
9461 if test $ac_cv_lib_Xmu_XmuCreateStippledPixmap = yes; then
9462 GUI_X_LIBS="-lXmu $GUI_X_LIBS"
9465 if test -z "$SKIP_MOTIF"; then
9466 { $as_echo "$as_me:$LINENO: checking for XpEndJob in -lXp" >&5
9467 $as_echo_n "checking for XpEndJob in -lXp... " >&6; }
9468 if test "${ac_cv_lib_Xp_XpEndJob+set}" = set; then
9469 $as_echo_n "(cached) " >&6
9470 else
9471 ac_check_lib_save_LIBS=$LIBS
9472 LIBS="-lXp $GUI_X_LIBS -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9473 cat >conftest.$ac_ext <<_ACEOF
9474 /* confdefs.h. */
9475 _ACEOF
9476 cat confdefs.h >>conftest.$ac_ext
9477 cat >>conftest.$ac_ext <<_ACEOF
9478 /* end confdefs.h. */
9480 /* Override any GCC internal prototype to avoid an error.
9481 Use char because int might match the return type of a GCC
9482 builtin and then its argument prototype would still apply. */
9483 #ifdef __cplusplus
9484 extern "C"
9485 #endif
9486 char XpEndJob ();
9488 main ()
9490 return XpEndJob ();
9492 return 0;
9494 _ACEOF
9495 rm -f conftest.$ac_objext conftest$ac_exeext
9496 if { (ac_try="$ac_link"
9497 case "(($ac_try" in
9498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9499 *) ac_try_echo=$ac_try;;
9500 esac
9501 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9502 $as_echo "$ac_try_echo") >&5
9503 (eval "$ac_link") 2>conftest.er1
9504 ac_status=$?
9505 grep -v '^ *+' conftest.er1 >conftest.err
9506 rm -f conftest.er1
9507 cat conftest.err >&5
9508 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9509 (exit $ac_status); } && {
9510 test -z "$ac_c_werror_flag" ||
9511 test ! -s conftest.err
9512 } && test -s conftest$ac_exeext && {
9513 test "$cross_compiling" = yes ||
9514 $as_test_x conftest$ac_exeext
9515 }; then
9516 ac_cv_lib_Xp_XpEndJob=yes
9517 else
9518 $as_echo "$as_me: failed program was:" >&5
9519 sed 's/^/| /' conftest.$ac_ext >&5
9521 ac_cv_lib_Xp_XpEndJob=no
9524 rm -rf conftest.dSYM
9525 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9526 conftest$ac_exeext conftest.$ac_ext
9527 LIBS=$ac_check_lib_save_LIBS
9529 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpEndJob" >&5
9530 $as_echo "$ac_cv_lib_Xp_XpEndJob" >&6; }
9531 if test $ac_cv_lib_Xp_XpEndJob = yes; then
9532 GUI_X_LIBS="-lXp $GUI_X_LIBS"
9536 LDFLAGS=$ldflags_save
9538 { $as_echo "$as_me:$LINENO: checking for extra X11 defines" >&5
9539 $as_echo_n "checking for extra X11 defines... " >&6; }
9540 NARROW_PROTO=
9541 rm -fr conftestdir
9542 if mkdir conftestdir; then
9543 cd conftestdir
9544 cat > Imakefile <<'EOF'
9545 acfindx:
9546 @echo 'NARROW_PROTO="${PROTO_DEFINES}"'
9548 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
9549 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9551 cd ..
9552 rm -fr conftestdir
9554 if test -z "$NARROW_PROTO"; then
9555 { $as_echo "$as_me:$LINENO: result: no" >&5
9556 $as_echo "no" >&6; }
9557 else
9558 { $as_echo "$as_me:$LINENO: result: $NARROW_PROTO" >&5
9559 $as_echo "$NARROW_PROTO" >&6; }
9564 if test "$enable_xsmp" = "yes"; then
9565 cppflags_save=$CPPFLAGS
9566 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9568 for ac_header in X11/SM/SMlib.h
9570 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9571 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9572 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9573 $as_echo_n "checking for $ac_header... " >&6; }
9574 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9575 $as_echo_n "(cached) " >&6
9577 ac_res=`eval 'as_val=${'$as_ac_Header'}
9578 $as_echo "$as_val"'`
9579 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9580 $as_echo "$ac_res" >&6; }
9581 else
9582 # Is the header compilable?
9583 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9584 $as_echo_n "checking $ac_header usability... " >&6; }
9585 cat >conftest.$ac_ext <<_ACEOF
9586 /* confdefs.h. */
9587 _ACEOF
9588 cat confdefs.h >>conftest.$ac_ext
9589 cat >>conftest.$ac_ext <<_ACEOF
9590 /* end confdefs.h. */
9591 $ac_includes_default
9592 #include <$ac_header>
9593 _ACEOF
9594 rm -f conftest.$ac_objext
9595 if { (ac_try="$ac_compile"
9596 case "(($ac_try" in
9597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9598 *) ac_try_echo=$ac_try;;
9599 esac
9600 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9601 $as_echo "$ac_try_echo") >&5
9602 (eval "$ac_compile") 2>conftest.er1
9603 ac_status=$?
9604 grep -v '^ *+' conftest.er1 >conftest.err
9605 rm -f conftest.er1
9606 cat conftest.err >&5
9607 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9608 (exit $ac_status); } && {
9609 test -z "$ac_c_werror_flag" ||
9610 test ! -s conftest.err
9611 } && test -s conftest.$ac_objext; then
9612 ac_header_compiler=yes
9613 else
9614 $as_echo "$as_me: failed program was:" >&5
9615 sed 's/^/| /' conftest.$ac_ext >&5
9617 ac_header_compiler=no
9620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9621 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9622 $as_echo "$ac_header_compiler" >&6; }
9624 # Is the header present?
9625 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9626 $as_echo_n "checking $ac_header presence... " >&6; }
9627 cat >conftest.$ac_ext <<_ACEOF
9628 /* confdefs.h. */
9629 _ACEOF
9630 cat confdefs.h >>conftest.$ac_ext
9631 cat >>conftest.$ac_ext <<_ACEOF
9632 /* end confdefs.h. */
9633 #include <$ac_header>
9634 _ACEOF
9635 if { (ac_try="$ac_cpp conftest.$ac_ext"
9636 case "(($ac_try" in
9637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9638 *) ac_try_echo=$ac_try;;
9639 esac
9640 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9641 $as_echo "$ac_try_echo") >&5
9642 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9643 ac_status=$?
9644 grep -v '^ *+' conftest.er1 >conftest.err
9645 rm -f conftest.er1
9646 cat conftest.err >&5
9647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9648 (exit $ac_status); } >/dev/null && {
9649 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9650 test ! -s conftest.err
9651 }; then
9652 ac_header_preproc=yes
9653 else
9654 $as_echo "$as_me: failed program was:" >&5
9655 sed 's/^/| /' conftest.$ac_ext >&5
9657 ac_header_preproc=no
9660 rm -f conftest.err conftest.$ac_ext
9661 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9662 $as_echo "$ac_header_preproc" >&6; }
9664 # So? What about this header?
9665 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9666 yes:no: )
9667 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9668 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9669 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9670 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9671 ac_header_preproc=yes
9673 no:yes:* )
9674 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9675 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9676 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9677 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9678 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9679 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9680 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9681 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9682 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9683 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9684 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9685 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9688 esac
9689 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9690 $as_echo_n "checking for $ac_header... " >&6; }
9691 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9692 $as_echo_n "(cached) " >&6
9693 else
9694 eval "$as_ac_Header=\$ac_header_preproc"
9696 ac_res=`eval 'as_val=${'$as_ac_Header'}
9697 $as_echo "$as_val"'`
9698 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9699 $as_echo "$ac_res" >&6; }
9702 if test `eval 'as_val=${'$as_ac_Header'}
9703 $as_echo "$as_val"'` = yes; then
9704 cat >>confdefs.h <<_ACEOF
9705 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9706 _ACEOF
9710 done
9712 CPPFLAGS=$cppflags_save
9716 if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF" -o -z "$SKIP_GTK"; then
9717 cppflags_save=$CPPFLAGS
9718 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9721 for ac_header in X11/xpm.h X11/Sunkeysym.h
9723 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9724 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9725 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9726 $as_echo_n "checking for $ac_header... " >&6; }
9727 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9728 $as_echo_n "(cached) " >&6
9730 ac_res=`eval 'as_val=${'$as_ac_Header'}
9731 $as_echo "$as_val"'`
9732 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9733 $as_echo "$ac_res" >&6; }
9734 else
9735 # Is the header compilable?
9736 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9737 $as_echo_n "checking $ac_header usability... " >&6; }
9738 cat >conftest.$ac_ext <<_ACEOF
9739 /* confdefs.h. */
9740 _ACEOF
9741 cat confdefs.h >>conftest.$ac_ext
9742 cat >>conftest.$ac_ext <<_ACEOF
9743 /* end confdefs.h. */
9744 $ac_includes_default
9745 #include <$ac_header>
9746 _ACEOF
9747 rm -f conftest.$ac_objext
9748 if { (ac_try="$ac_compile"
9749 case "(($ac_try" in
9750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9751 *) ac_try_echo=$ac_try;;
9752 esac
9753 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9754 $as_echo "$ac_try_echo") >&5
9755 (eval "$ac_compile") 2>conftest.er1
9756 ac_status=$?
9757 grep -v '^ *+' conftest.er1 >conftest.err
9758 rm -f conftest.er1
9759 cat conftest.err >&5
9760 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9761 (exit $ac_status); } && {
9762 test -z "$ac_c_werror_flag" ||
9763 test ! -s conftest.err
9764 } && test -s conftest.$ac_objext; then
9765 ac_header_compiler=yes
9766 else
9767 $as_echo "$as_me: failed program was:" >&5
9768 sed 's/^/| /' conftest.$ac_ext >&5
9770 ac_header_compiler=no
9773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9774 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9775 $as_echo "$ac_header_compiler" >&6; }
9777 # Is the header present?
9778 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9779 $as_echo_n "checking $ac_header presence... " >&6; }
9780 cat >conftest.$ac_ext <<_ACEOF
9781 /* confdefs.h. */
9782 _ACEOF
9783 cat confdefs.h >>conftest.$ac_ext
9784 cat >>conftest.$ac_ext <<_ACEOF
9785 /* end confdefs.h. */
9786 #include <$ac_header>
9787 _ACEOF
9788 if { (ac_try="$ac_cpp conftest.$ac_ext"
9789 case "(($ac_try" in
9790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9791 *) ac_try_echo=$ac_try;;
9792 esac
9793 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9794 $as_echo "$ac_try_echo") >&5
9795 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9796 ac_status=$?
9797 grep -v '^ *+' conftest.er1 >conftest.err
9798 rm -f conftest.er1
9799 cat conftest.err >&5
9800 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9801 (exit $ac_status); } >/dev/null && {
9802 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9803 test ! -s conftest.err
9804 }; then
9805 ac_header_preproc=yes
9806 else
9807 $as_echo "$as_me: failed program was:" >&5
9808 sed 's/^/| /' conftest.$ac_ext >&5
9810 ac_header_preproc=no
9813 rm -f conftest.err conftest.$ac_ext
9814 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9815 $as_echo "$ac_header_preproc" >&6; }
9817 # So? What about this header?
9818 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9819 yes:no: )
9820 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9821 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9822 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9823 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9824 ac_header_preproc=yes
9826 no:yes:* )
9827 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9828 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9829 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9830 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9831 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9832 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9833 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9834 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9835 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9836 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9837 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9838 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9841 esac
9842 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9843 $as_echo_n "checking for $ac_header... " >&6; }
9844 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9845 $as_echo_n "(cached) " >&6
9846 else
9847 eval "$as_ac_Header=\$ac_header_preproc"
9849 ac_res=`eval 'as_val=${'$as_ac_Header'}
9850 $as_echo "$as_val"'`
9851 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9852 $as_echo "$ac_res" >&6; }
9855 if test `eval 'as_val=${'$as_ac_Header'}
9856 $as_echo "$as_val"'` = yes; then
9857 cat >>confdefs.h <<_ACEOF
9858 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9859 _ACEOF
9863 done
9866 if test ! "$enable_xim" = "no"; then
9867 { $as_echo "$as_me:$LINENO: checking for XIMText in X11/Xlib.h" >&5
9868 $as_echo_n "checking for XIMText in X11/Xlib.h... " >&6; }
9869 cat >conftest.$ac_ext <<_ACEOF
9870 /* confdefs.h. */
9871 _ACEOF
9872 cat confdefs.h >>conftest.$ac_ext
9873 cat >>conftest.$ac_ext <<_ACEOF
9874 /* end confdefs.h. */
9875 #include <X11/Xlib.h>
9876 _ACEOF
9877 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9878 $EGREP "XIMText" >/dev/null 2>&1; then
9879 { $as_echo "$as_me:$LINENO: result: yes" >&5
9880 $as_echo "yes" >&6; }
9881 else
9882 { $as_echo "$as_me:$LINENO: result: no; xim has been disabled" >&5
9883 $as_echo "no; xim has been disabled" >&6; }; enable_xim = "no"
9885 rm -f conftest*
9888 CPPFLAGS=$cppflags_save
9890 if test "$enable_xim" = "auto" -a "$enable_hangulinput" != "yes" \
9891 -a "x$GUITYPE" != "xNONE" ; then
9892 { $as_echo "$as_me:$LINENO: result: X GUI selected; xim has been enabled" >&5
9893 $as_echo "X GUI selected; xim has been enabled" >&6; }
9894 enable_xim="yes"
9898 if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
9899 cppflags_save=$CPPFLAGS
9900 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9901 { $as_echo "$as_me:$LINENO: checking for X11/Xmu/Editres.h" >&5
9902 $as_echo_n "checking for X11/Xmu/Editres.h... " >&6; }
9903 cat >conftest.$ac_ext <<_ACEOF
9904 /* confdefs.h. */
9905 _ACEOF
9906 cat confdefs.h >>conftest.$ac_ext
9907 cat >>conftest.$ac_ext <<_ACEOF
9908 /* end confdefs.h. */
9910 #include <X11/Intrinsic.h>
9911 #include <X11/Xmu/Editres.h>
9913 main ()
9915 int i; i = 0;
9917 return 0;
9919 _ACEOF
9920 rm -f conftest.$ac_objext
9921 if { (ac_try="$ac_compile"
9922 case "(($ac_try" in
9923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9924 *) ac_try_echo=$ac_try;;
9925 esac
9926 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9927 $as_echo "$ac_try_echo") >&5
9928 (eval "$ac_compile") 2>conftest.er1
9929 ac_status=$?
9930 grep -v '^ *+' conftest.er1 >conftest.err
9931 rm -f conftest.er1
9932 cat conftest.err >&5
9933 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9934 (exit $ac_status); } && {
9935 test -z "$ac_c_werror_flag" ||
9936 test ! -s conftest.err
9937 } && test -s conftest.$ac_objext; then
9938 { $as_echo "$as_me:$LINENO: result: yes" >&5
9939 $as_echo "yes" >&6; }
9940 cat >>confdefs.h <<\_ACEOF
9941 #define HAVE_X11_XMU_EDITRES_H 1
9942 _ACEOF
9944 else
9945 $as_echo "$as_me: failed program was:" >&5
9946 sed 's/^/| /' conftest.$ac_ext >&5
9948 { $as_echo "$as_me:$LINENO: result: no" >&5
9949 $as_echo "no" >&6; }
9952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9953 CPPFLAGS=$cppflags_save
9956 if test -z "$SKIP_MOTIF"; then
9957 cppflags_save=$CPPFLAGS
9958 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9966 for ac_header in Xm/Xm.h Xm/XpmP.h Xm/JoinSideT.h Xm/TraitP.h Xm/Manager.h \
9967 Xm/UnhighlightT.h Xm/Notebook.h
9969 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9970 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9971 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9972 $as_echo_n "checking for $ac_header... " >&6; }
9973 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9974 $as_echo_n "(cached) " >&6
9976 ac_res=`eval 'as_val=${'$as_ac_Header'}
9977 $as_echo "$as_val"'`
9978 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9979 $as_echo "$ac_res" >&6; }
9980 else
9981 # Is the header compilable?
9982 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9983 $as_echo_n "checking $ac_header usability... " >&6; }
9984 cat >conftest.$ac_ext <<_ACEOF
9985 /* confdefs.h. */
9986 _ACEOF
9987 cat confdefs.h >>conftest.$ac_ext
9988 cat >>conftest.$ac_ext <<_ACEOF
9989 /* end confdefs.h. */
9990 $ac_includes_default
9991 #include <$ac_header>
9992 _ACEOF
9993 rm -f conftest.$ac_objext
9994 if { (ac_try="$ac_compile"
9995 case "(($ac_try" in
9996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9997 *) ac_try_echo=$ac_try;;
9998 esac
9999 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10000 $as_echo "$ac_try_echo") >&5
10001 (eval "$ac_compile") 2>conftest.er1
10002 ac_status=$?
10003 grep -v '^ *+' conftest.er1 >conftest.err
10004 rm -f conftest.er1
10005 cat conftest.err >&5
10006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10007 (exit $ac_status); } && {
10008 test -z "$ac_c_werror_flag" ||
10009 test ! -s conftest.err
10010 } && test -s conftest.$ac_objext; then
10011 ac_header_compiler=yes
10012 else
10013 $as_echo "$as_me: failed program was:" >&5
10014 sed 's/^/| /' conftest.$ac_ext >&5
10016 ac_header_compiler=no
10019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10020 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10021 $as_echo "$ac_header_compiler" >&6; }
10023 # Is the header present?
10024 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10025 $as_echo_n "checking $ac_header presence... " >&6; }
10026 cat >conftest.$ac_ext <<_ACEOF
10027 /* confdefs.h. */
10028 _ACEOF
10029 cat confdefs.h >>conftest.$ac_ext
10030 cat >>conftest.$ac_ext <<_ACEOF
10031 /* end confdefs.h. */
10032 #include <$ac_header>
10033 _ACEOF
10034 if { (ac_try="$ac_cpp conftest.$ac_ext"
10035 case "(($ac_try" in
10036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10037 *) ac_try_echo=$ac_try;;
10038 esac
10039 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10040 $as_echo "$ac_try_echo") >&5
10041 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10042 ac_status=$?
10043 grep -v '^ *+' conftest.er1 >conftest.err
10044 rm -f conftest.er1
10045 cat conftest.err >&5
10046 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10047 (exit $ac_status); } >/dev/null && {
10048 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10049 test ! -s conftest.err
10050 }; then
10051 ac_header_preproc=yes
10052 else
10053 $as_echo "$as_me: failed program was:" >&5
10054 sed 's/^/| /' conftest.$ac_ext >&5
10056 ac_header_preproc=no
10059 rm -f conftest.err conftest.$ac_ext
10060 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10061 $as_echo "$ac_header_preproc" >&6; }
10063 # So? What about this header?
10064 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10065 yes:no: )
10066 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10067 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10068 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10069 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10070 ac_header_preproc=yes
10072 no:yes:* )
10073 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10074 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10075 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10076 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10077 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10078 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10079 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10080 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10081 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10082 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10083 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10084 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10087 esac
10088 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10089 $as_echo_n "checking for $ac_header... " >&6; }
10090 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10091 $as_echo_n "(cached) " >&6
10092 else
10093 eval "$as_ac_Header=\$ac_header_preproc"
10095 ac_res=`eval 'as_val=${'$as_ac_Header'}
10096 $as_echo "$as_val"'`
10097 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10098 $as_echo "$ac_res" >&6; }
10101 if test `eval 'as_val=${'$as_ac_Header'}
10102 $as_echo "$as_val"'` = yes; then
10103 cat >>confdefs.h <<_ACEOF
10104 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10105 _ACEOF
10109 done
10112 if test $ac_cv_header_Xm_XpmP_h = yes; then
10113 { $as_echo "$as_me:$LINENO: checking for XpmAttributes_21 in Xm/XpmP.h" >&5
10114 $as_echo_n "checking for XpmAttributes_21 in Xm/XpmP.h... " >&6; }
10115 cat >conftest.$ac_ext <<_ACEOF
10116 /* confdefs.h. */
10117 _ACEOF
10118 cat confdefs.h >>conftest.$ac_ext
10119 cat >>conftest.$ac_ext <<_ACEOF
10120 /* end confdefs.h. */
10121 #include <Xm/XpmP.h>
10123 main ()
10125 XpmAttributes_21 attr;
10127 return 0;
10129 _ACEOF
10130 rm -f conftest.$ac_objext
10131 if { (ac_try="$ac_compile"
10132 case "(($ac_try" in
10133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10134 *) ac_try_echo=$ac_try;;
10135 esac
10136 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10137 $as_echo "$ac_try_echo") >&5
10138 (eval "$ac_compile") 2>conftest.er1
10139 ac_status=$?
10140 grep -v '^ *+' conftest.er1 >conftest.err
10141 rm -f conftest.er1
10142 cat conftest.err >&5
10143 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10144 (exit $ac_status); } && {
10145 test -z "$ac_c_werror_flag" ||
10146 test ! -s conftest.err
10147 } && test -s conftest.$ac_objext; then
10148 { $as_echo "$as_me:$LINENO: result: yes" >&5
10149 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
10150 #define XPMATTRIBUTES_TYPE XpmAttributes_21
10151 _ACEOF
10153 else
10154 $as_echo "$as_me: failed program was:" >&5
10155 sed 's/^/| /' conftest.$ac_ext >&5
10157 { $as_echo "$as_me:$LINENO: result: no" >&5
10158 $as_echo "no" >&6; }; cat >>confdefs.h <<\_ACEOF
10159 #define XPMATTRIBUTES_TYPE XpmAttributes
10160 _ACEOF
10165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10166 else
10167 cat >>confdefs.h <<\_ACEOF
10168 #define XPMATTRIBUTES_TYPE XpmAttributes
10169 _ACEOF
10172 CPPFLAGS=$cppflags_save
10175 if test "x$GUITYPE" = "xNONE" -a "$enable_xim" = "yes"; then
10176 { $as_echo "$as_me:$LINENO: result: no GUI selected; xim has been disabled" >&5
10177 $as_echo "no GUI selected; xim has been disabled" >&6; }
10178 enable_xim="no"
10180 if test "x$GUITYPE" = "xNONE" -a "$enable_fontset" = "yes"; then
10181 { $as_echo "$as_me:$LINENO: result: no GUI selected; fontset has been disabled" >&5
10182 $as_echo "no GUI selected; fontset has been disabled" >&6; }
10183 enable_fontset="no"
10185 if test "x$GUITYPE:$enable_fontset" = "xGTK:yes" -a "0$gtk_major_version" -ge 2; then
10186 { $as_echo "$as_me:$LINENO: result: GTK+ 2 GUI selected; fontset has been disabled" >&5
10187 $as_echo "GTK+ 2 GUI selected; fontset has been disabled" >&6; }
10188 enable_fontset="no"
10191 if test -z "$SKIP_PHOTON"; then
10192 GUITYPE=PHOTONGUI
10200 if test "$enable_workshop" = "yes" -a -n "$SKIP_MOTIF"; then
10201 { { $as_echo "$as_me:$LINENO: error: cannot use workshop without Motif" >&5
10202 $as_echo "$as_me: error: cannot use workshop without Motif" >&2;}
10203 { (exit 1); exit 1; }; }
10206 if test "$enable_xim" = "yes"; then
10207 cat >>confdefs.h <<\_ACEOF
10208 #define FEAT_XIM 1
10209 _ACEOF
10212 if test "$enable_fontset" = "yes"; then
10213 cat >>confdefs.h <<\_ACEOF
10214 #define FEAT_XFONTSET 1
10215 _ACEOF
10222 if test "$enable_hangulinput" = "yes"; then
10223 if test "x$GUITYPE" = "xNONE"; then
10224 { $as_echo "$as_me:$LINENO: result: no GUI selected; hangul input has been disabled" >&5
10225 $as_echo "no GUI selected; hangul input has been disabled" >&6; }
10226 enable_hangulinput=no
10227 else
10228 cat >>confdefs.h <<\_ACEOF
10229 #define FEAT_HANGULIN 1
10230 _ACEOF
10232 HANGULIN_SRC=hangulin.c
10234 HANGULIN_OBJ=objects/hangulin.o
10240 { $as_echo "$as_me:$LINENO: checking whether toupper is broken" >&5
10241 $as_echo_n "checking whether toupper is broken... " >&6; }
10242 if test "${vim_cv_toupper_broken+set}" = set; then
10243 $as_echo_n "(cached) " >&6
10244 else
10246 if test "$cross_compiling" = yes; then
10248 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_toupper_broken'" >&5
10249 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_toupper_broken'" >&2;}
10250 { (exit 1); exit 1; }; }
10252 else
10253 cat >conftest.$ac_ext <<_ACEOF
10255 #include "confdefs.h"
10256 #include <ctype.h>
10257 #if STDC_HEADERS
10258 # include <stdlib.h>
10259 # include <stddef.h>
10260 #endif
10261 main() { exit(toupper('A') == 'A' && tolower('z') == 'z'); }
10263 _ACEOF
10264 rm -f conftest$ac_exeext
10265 if { (ac_try="$ac_link"
10266 case "(($ac_try" in
10267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10268 *) ac_try_echo=$ac_try;;
10269 esac
10270 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10271 $as_echo "$ac_try_echo") >&5
10272 (eval "$ac_link") 2>&5
10273 ac_status=$?
10274 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10275 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10276 { (case "(($ac_try" in
10277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10278 *) ac_try_echo=$ac_try;;
10279 esac
10280 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10281 $as_echo "$ac_try_echo") >&5
10282 (eval "$ac_try") 2>&5
10283 ac_status=$?
10284 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10285 (exit $ac_status); }; }; then
10287 vim_cv_toupper_broken=yes
10289 else
10290 $as_echo "$as_me: program exited with status $ac_status" >&5
10291 $as_echo "$as_me: failed program was:" >&5
10292 sed 's/^/| /' conftest.$ac_ext >&5
10294 ( exit $ac_status )
10296 vim_cv_toupper_broken=no
10299 rm -rf conftest.dSYM
10300 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10305 { $as_echo "$as_me:$LINENO: result: $vim_cv_toupper_broken" >&5
10306 $as_echo "$vim_cv_toupper_broken" >&6; }
10308 if test "x$vim_cv_toupper_broken" = "xyes" ; then
10309 cat >>confdefs.h <<\_ACEOF
10310 #define BROKEN_TOUPPER 1
10311 _ACEOF
10315 { $as_echo "$as_me:$LINENO: checking whether __DATE__ and __TIME__ work" >&5
10316 $as_echo_n "checking whether __DATE__ and __TIME__ work... " >&6; }
10317 cat >conftest.$ac_ext <<_ACEOF
10318 /* confdefs.h. */
10319 _ACEOF
10320 cat confdefs.h >>conftest.$ac_ext
10321 cat >>conftest.$ac_ext <<_ACEOF
10322 /* end confdefs.h. */
10323 #include <stdio.h>
10325 main ()
10327 printf("(" __DATE__ " " __TIME__ ")");
10329 return 0;
10331 _ACEOF
10332 rm -f conftest.$ac_objext
10333 if { (ac_try="$ac_compile"
10334 case "(($ac_try" in
10335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10336 *) ac_try_echo=$ac_try;;
10337 esac
10338 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10339 $as_echo "$ac_try_echo") >&5
10340 (eval "$ac_compile") 2>conftest.er1
10341 ac_status=$?
10342 grep -v '^ *+' conftest.er1 >conftest.err
10343 rm -f conftest.er1
10344 cat conftest.err >&5
10345 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10346 (exit $ac_status); } && {
10347 test -z "$ac_c_werror_flag" ||
10348 test ! -s conftest.err
10349 } && test -s conftest.$ac_objext; then
10350 { $as_echo "$as_me:$LINENO: result: yes" >&5
10351 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
10352 #define HAVE_DATE_TIME 1
10353 _ACEOF
10355 else
10356 $as_echo "$as_me: failed program was:" >&5
10357 sed 's/^/| /' conftest.$ac_ext >&5
10359 { $as_echo "$as_me:$LINENO: result: no" >&5
10360 $as_echo "no" >&6; }
10363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10365 if test "${ac_cv_header_elf_h+set}" = set; then
10366 { $as_echo "$as_me:$LINENO: checking for elf.h" >&5
10367 $as_echo_n "checking for elf.h... " >&6; }
10368 if test "${ac_cv_header_elf_h+set}" = set; then
10369 $as_echo_n "(cached) " >&6
10371 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5
10372 $as_echo "$ac_cv_header_elf_h" >&6; }
10373 else
10374 # Is the header compilable?
10375 { $as_echo "$as_me:$LINENO: checking elf.h usability" >&5
10376 $as_echo_n "checking elf.h usability... " >&6; }
10377 cat >conftest.$ac_ext <<_ACEOF
10378 /* confdefs.h. */
10379 _ACEOF
10380 cat confdefs.h >>conftest.$ac_ext
10381 cat >>conftest.$ac_ext <<_ACEOF
10382 /* end confdefs.h. */
10383 $ac_includes_default
10384 #include <elf.h>
10385 _ACEOF
10386 rm -f conftest.$ac_objext
10387 if { (ac_try="$ac_compile"
10388 case "(($ac_try" in
10389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10390 *) ac_try_echo=$ac_try;;
10391 esac
10392 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10393 $as_echo "$ac_try_echo") >&5
10394 (eval "$ac_compile") 2>conftest.er1
10395 ac_status=$?
10396 grep -v '^ *+' conftest.er1 >conftest.err
10397 rm -f conftest.er1
10398 cat conftest.err >&5
10399 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10400 (exit $ac_status); } && {
10401 test -z "$ac_c_werror_flag" ||
10402 test ! -s conftest.err
10403 } && test -s conftest.$ac_objext; then
10404 ac_header_compiler=yes
10405 else
10406 $as_echo "$as_me: failed program was:" >&5
10407 sed 's/^/| /' conftest.$ac_ext >&5
10409 ac_header_compiler=no
10412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10413 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10414 $as_echo "$ac_header_compiler" >&6; }
10416 # Is the header present?
10417 { $as_echo "$as_me:$LINENO: checking elf.h presence" >&5
10418 $as_echo_n "checking elf.h presence... " >&6; }
10419 cat >conftest.$ac_ext <<_ACEOF
10420 /* confdefs.h. */
10421 _ACEOF
10422 cat confdefs.h >>conftest.$ac_ext
10423 cat >>conftest.$ac_ext <<_ACEOF
10424 /* end confdefs.h. */
10425 #include <elf.h>
10426 _ACEOF
10427 if { (ac_try="$ac_cpp conftest.$ac_ext"
10428 case "(($ac_try" in
10429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10430 *) ac_try_echo=$ac_try;;
10431 esac
10432 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10433 $as_echo "$ac_try_echo") >&5
10434 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10435 ac_status=$?
10436 grep -v '^ *+' conftest.er1 >conftest.err
10437 rm -f conftest.er1
10438 cat conftest.err >&5
10439 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10440 (exit $ac_status); } >/dev/null && {
10441 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10442 test ! -s conftest.err
10443 }; then
10444 ac_header_preproc=yes
10445 else
10446 $as_echo "$as_me: failed program was:" >&5
10447 sed 's/^/| /' conftest.$ac_ext >&5
10449 ac_header_preproc=no
10452 rm -f conftest.err conftest.$ac_ext
10453 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10454 $as_echo "$ac_header_preproc" >&6; }
10456 # So? What about this header?
10457 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10458 yes:no: )
10459 { $as_echo "$as_me:$LINENO: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&5
10460 $as_echo "$as_me: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10461 { $as_echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the compiler's result" >&5
10462 $as_echo "$as_me: WARNING: elf.h: proceeding with the compiler's result" >&2;}
10463 ac_header_preproc=yes
10465 no:yes:* )
10466 { $as_echo "$as_me:$LINENO: WARNING: elf.h: present but cannot be compiled" >&5
10467 $as_echo "$as_me: WARNING: elf.h: present but cannot be compiled" >&2;}
10468 { $as_echo "$as_me:$LINENO: WARNING: elf.h: check for missing prerequisite headers?" >&5
10469 $as_echo "$as_me: WARNING: elf.h: check for missing prerequisite headers?" >&2;}
10470 { $as_echo "$as_me:$LINENO: WARNING: elf.h: see the Autoconf documentation" >&5
10471 $as_echo "$as_me: WARNING: elf.h: see the Autoconf documentation" >&2;}
10472 { $as_echo "$as_me:$LINENO: WARNING: elf.h: section \"Present But Cannot Be Compiled\"" >&5
10473 $as_echo "$as_me: WARNING: elf.h: section \"Present But Cannot Be Compiled\"" >&2;}
10474 { $as_echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the preprocessor's result" >&5
10475 $as_echo "$as_me: WARNING: elf.h: proceeding with the preprocessor's result" >&2;}
10476 { $as_echo "$as_me:$LINENO: WARNING: elf.h: in the future, the compiler will take precedence" >&5
10477 $as_echo "$as_me: WARNING: elf.h: in the future, the compiler will take precedence" >&2;}
10480 esac
10481 { $as_echo "$as_me:$LINENO: checking for elf.h" >&5
10482 $as_echo_n "checking for elf.h... " >&6; }
10483 if test "${ac_cv_header_elf_h+set}" = set; then
10484 $as_echo_n "(cached) " >&6
10485 else
10486 ac_cv_header_elf_h=$ac_header_preproc
10488 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5
10489 $as_echo "$ac_cv_header_elf_h" >&6; }
10492 if test $ac_cv_header_elf_h = yes; then
10493 HAS_ELF=1
10497 if test "$HAS_ELF" = 1; then
10499 { $as_echo "$as_me:$LINENO: checking for main in -lelf" >&5
10500 $as_echo_n "checking for main in -lelf... " >&6; }
10501 if test "${ac_cv_lib_elf_main+set}" = set; then
10502 $as_echo_n "(cached) " >&6
10503 else
10504 ac_check_lib_save_LIBS=$LIBS
10505 LIBS="-lelf $LIBS"
10506 cat >conftest.$ac_ext <<_ACEOF
10507 /* confdefs.h. */
10508 _ACEOF
10509 cat confdefs.h >>conftest.$ac_ext
10510 cat >>conftest.$ac_ext <<_ACEOF
10511 /* end confdefs.h. */
10515 main ()
10517 return main ();
10519 return 0;
10521 _ACEOF
10522 rm -f conftest.$ac_objext conftest$ac_exeext
10523 if { (ac_try="$ac_link"
10524 case "(($ac_try" in
10525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10526 *) ac_try_echo=$ac_try;;
10527 esac
10528 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10529 $as_echo "$ac_try_echo") >&5
10530 (eval "$ac_link") 2>conftest.er1
10531 ac_status=$?
10532 grep -v '^ *+' conftest.er1 >conftest.err
10533 rm -f conftest.er1
10534 cat conftest.err >&5
10535 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10536 (exit $ac_status); } && {
10537 test -z "$ac_c_werror_flag" ||
10538 test ! -s conftest.err
10539 } && test -s conftest$ac_exeext && {
10540 test "$cross_compiling" = yes ||
10541 $as_test_x conftest$ac_exeext
10542 }; then
10543 ac_cv_lib_elf_main=yes
10544 else
10545 $as_echo "$as_me: failed program was:" >&5
10546 sed 's/^/| /' conftest.$ac_ext >&5
10548 ac_cv_lib_elf_main=no
10551 rm -rf conftest.dSYM
10552 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10553 conftest$ac_exeext conftest.$ac_ext
10554 LIBS=$ac_check_lib_save_LIBS
10556 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_elf_main" >&5
10557 $as_echo "$ac_cv_lib_elf_main" >&6; }
10558 if test $ac_cv_lib_elf_main = yes; then
10559 cat >>confdefs.h <<_ACEOF
10560 #define HAVE_LIBELF 1
10561 _ACEOF
10563 LIBS="-lelf $LIBS"
10574 ac_header_dirent=no
10575 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10576 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10577 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10578 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
10579 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10580 $as_echo_n "(cached) " >&6
10581 else
10582 cat >conftest.$ac_ext <<_ACEOF
10583 /* confdefs.h. */
10584 _ACEOF
10585 cat confdefs.h >>conftest.$ac_ext
10586 cat >>conftest.$ac_ext <<_ACEOF
10587 /* end confdefs.h. */
10588 #include <sys/types.h>
10589 #include <$ac_hdr>
10592 main ()
10594 if ((DIR *) 0)
10595 return 0;
10597 return 0;
10599 _ACEOF
10600 rm -f conftest.$ac_objext
10601 if { (ac_try="$ac_compile"
10602 case "(($ac_try" in
10603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10604 *) ac_try_echo=$ac_try;;
10605 esac
10606 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10607 $as_echo "$ac_try_echo") >&5
10608 (eval "$ac_compile") 2>conftest.er1
10609 ac_status=$?
10610 grep -v '^ *+' conftest.er1 >conftest.err
10611 rm -f conftest.er1
10612 cat conftest.err >&5
10613 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10614 (exit $ac_status); } && {
10615 test -z "$ac_c_werror_flag" ||
10616 test ! -s conftest.err
10617 } && test -s conftest.$ac_objext; then
10618 eval "$as_ac_Header=yes"
10619 else
10620 $as_echo "$as_me: failed program was:" >&5
10621 sed 's/^/| /' conftest.$ac_ext >&5
10623 eval "$as_ac_Header=no"
10626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10628 ac_res=`eval 'as_val=${'$as_ac_Header'}
10629 $as_echo "$as_val"'`
10630 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10631 $as_echo "$ac_res" >&6; }
10632 if test `eval 'as_val=${'$as_ac_Header'}
10633 $as_echo "$as_val"'` = yes; then
10634 cat >>confdefs.h <<_ACEOF
10635 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10636 _ACEOF
10638 ac_header_dirent=$ac_hdr; break
10641 done
10642 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10643 if test $ac_header_dirent = dirent.h; then
10644 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
10645 $as_echo_n "checking for library containing opendir... " >&6; }
10646 if test "${ac_cv_search_opendir+set}" = set; then
10647 $as_echo_n "(cached) " >&6
10648 else
10649 ac_func_search_save_LIBS=$LIBS
10650 cat >conftest.$ac_ext <<_ACEOF
10651 /* confdefs.h. */
10652 _ACEOF
10653 cat confdefs.h >>conftest.$ac_ext
10654 cat >>conftest.$ac_ext <<_ACEOF
10655 /* end confdefs.h. */
10657 /* Override any GCC internal prototype to avoid an error.
10658 Use char because int might match the return type of a GCC
10659 builtin and then its argument prototype would still apply. */
10660 #ifdef __cplusplus
10661 extern "C"
10662 #endif
10663 char opendir ();
10665 main ()
10667 return opendir ();
10669 return 0;
10671 _ACEOF
10672 for ac_lib in '' dir; do
10673 if test -z "$ac_lib"; then
10674 ac_res="none required"
10675 else
10676 ac_res=-l$ac_lib
10677 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10679 rm -f conftest.$ac_objext conftest$ac_exeext
10680 if { (ac_try="$ac_link"
10681 case "(($ac_try" in
10682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10683 *) ac_try_echo=$ac_try;;
10684 esac
10685 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10686 $as_echo "$ac_try_echo") >&5
10687 (eval "$ac_link") 2>conftest.er1
10688 ac_status=$?
10689 grep -v '^ *+' conftest.er1 >conftest.err
10690 rm -f conftest.er1
10691 cat conftest.err >&5
10692 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10693 (exit $ac_status); } && {
10694 test -z "$ac_c_werror_flag" ||
10695 test ! -s conftest.err
10696 } && test -s conftest$ac_exeext && {
10697 test "$cross_compiling" = yes ||
10698 $as_test_x conftest$ac_exeext
10699 }; then
10700 ac_cv_search_opendir=$ac_res
10701 else
10702 $as_echo "$as_me: failed program was:" >&5
10703 sed 's/^/| /' conftest.$ac_ext >&5
10708 rm -rf conftest.dSYM
10709 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10710 conftest$ac_exeext
10711 if test "${ac_cv_search_opendir+set}" = set; then
10712 break
10714 done
10715 if test "${ac_cv_search_opendir+set}" = set; then
10717 else
10718 ac_cv_search_opendir=no
10720 rm conftest.$ac_ext
10721 LIBS=$ac_func_search_save_LIBS
10723 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10724 $as_echo "$ac_cv_search_opendir" >&6; }
10725 ac_res=$ac_cv_search_opendir
10726 if test "$ac_res" != no; then
10727 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10731 else
10732 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
10733 $as_echo_n "checking for library containing opendir... " >&6; }
10734 if test "${ac_cv_search_opendir+set}" = set; then
10735 $as_echo_n "(cached) " >&6
10736 else
10737 ac_func_search_save_LIBS=$LIBS
10738 cat >conftest.$ac_ext <<_ACEOF
10739 /* confdefs.h. */
10740 _ACEOF
10741 cat confdefs.h >>conftest.$ac_ext
10742 cat >>conftest.$ac_ext <<_ACEOF
10743 /* end confdefs.h. */
10745 /* Override any GCC internal prototype to avoid an error.
10746 Use char because int might match the return type of a GCC
10747 builtin and then its argument prototype would still apply. */
10748 #ifdef __cplusplus
10749 extern "C"
10750 #endif
10751 char opendir ();
10753 main ()
10755 return opendir ();
10757 return 0;
10759 _ACEOF
10760 for ac_lib in '' x; do
10761 if test -z "$ac_lib"; then
10762 ac_res="none required"
10763 else
10764 ac_res=-l$ac_lib
10765 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10767 rm -f conftest.$ac_objext conftest$ac_exeext
10768 if { (ac_try="$ac_link"
10769 case "(($ac_try" in
10770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10771 *) ac_try_echo=$ac_try;;
10772 esac
10773 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10774 $as_echo "$ac_try_echo") >&5
10775 (eval "$ac_link") 2>conftest.er1
10776 ac_status=$?
10777 grep -v '^ *+' conftest.er1 >conftest.err
10778 rm -f conftest.er1
10779 cat conftest.err >&5
10780 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10781 (exit $ac_status); } && {
10782 test -z "$ac_c_werror_flag" ||
10783 test ! -s conftest.err
10784 } && test -s conftest$ac_exeext && {
10785 test "$cross_compiling" = yes ||
10786 $as_test_x conftest$ac_exeext
10787 }; then
10788 ac_cv_search_opendir=$ac_res
10789 else
10790 $as_echo "$as_me: failed program was:" >&5
10791 sed 's/^/| /' conftest.$ac_ext >&5
10796 rm -rf conftest.dSYM
10797 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10798 conftest$ac_exeext
10799 if test "${ac_cv_search_opendir+set}" = set; then
10800 break
10802 done
10803 if test "${ac_cv_search_opendir+set}" = set; then
10805 else
10806 ac_cv_search_opendir=no
10808 rm conftest.$ac_ext
10809 LIBS=$ac_func_search_save_LIBS
10811 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10812 $as_echo "$ac_cv_search_opendir" >&6; }
10813 ac_res=$ac_cv_search_opendir
10814 if test "$ac_res" != no; then
10815 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10822 if test $ac_cv_header_sys_wait_h = no; then
10823 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that defines union wait" >&5
10824 $as_echo_n "checking for sys/wait.h that defines union wait... " >&6; }
10825 cat >conftest.$ac_ext <<_ACEOF
10826 /* confdefs.h. */
10827 _ACEOF
10828 cat confdefs.h >>conftest.$ac_ext
10829 cat >>conftest.$ac_ext <<_ACEOF
10830 /* end confdefs.h. */
10831 #include <sys/wait.h>
10833 main ()
10835 union wait xx, yy; xx = yy
10837 return 0;
10839 _ACEOF
10840 rm -f conftest.$ac_objext
10841 if { (ac_try="$ac_compile"
10842 case "(($ac_try" in
10843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10844 *) ac_try_echo=$ac_try;;
10845 esac
10846 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10847 $as_echo "$ac_try_echo") >&5
10848 (eval "$ac_compile") 2>conftest.er1
10849 ac_status=$?
10850 grep -v '^ *+' conftest.er1 >conftest.err
10851 rm -f conftest.er1
10852 cat conftest.err >&5
10853 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10854 (exit $ac_status); } && {
10855 test -z "$ac_c_werror_flag" ||
10856 test ! -s conftest.err
10857 } && test -s conftest.$ac_objext; then
10858 { $as_echo "$as_me:$LINENO: result: yes" >&5
10859 $as_echo "yes" >&6; }
10860 cat >>confdefs.h <<\_ACEOF
10861 #define HAVE_SYS_WAIT_H 1
10862 _ACEOF
10864 cat >>confdefs.h <<\_ACEOF
10865 #define HAVE_UNION_WAIT 1
10866 _ACEOF
10868 else
10869 $as_echo "$as_me: failed program was:" >&5
10870 sed 's/^/| /' conftest.$ac_ext >&5
10872 { $as_echo "$as_me:$LINENO: result: no" >&5
10873 $as_echo "no" >&6; }
10876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10920 for ac_header in stdarg.h stdlib.h string.h sys/select.h sys/utsname.h \
10921 termcap.h fcntl.h sgtty.h sys/ioctl.h sys/time.h sys/types.h termio.h \
10922 iconv.h langinfo.h math.h unistd.h stropts.h errno.h \
10923 sys/resource.h sys/systeminfo.h locale.h \
10924 sys/stream.h termios.h libc.h sys/statfs.h \
10925 poll.h sys/poll.h pwd.h utime.h sys/param.h libintl.h \
10926 libgen.h util/debug.h util/msg18n.h frame.h \
10927 sys/acl.h sys/access.h sys/sysctl.h sys/sysinfo.h wchar.h wctype.h
10929 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10930 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10931 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10932 $as_echo_n "checking for $ac_header... " >&6; }
10933 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10934 $as_echo_n "(cached) " >&6
10936 ac_res=`eval 'as_val=${'$as_ac_Header'}
10937 $as_echo "$as_val"'`
10938 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10939 $as_echo "$ac_res" >&6; }
10940 else
10941 # Is the header compilable?
10942 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10943 $as_echo_n "checking $ac_header usability... " >&6; }
10944 cat >conftest.$ac_ext <<_ACEOF
10945 /* confdefs.h. */
10946 _ACEOF
10947 cat confdefs.h >>conftest.$ac_ext
10948 cat >>conftest.$ac_ext <<_ACEOF
10949 /* end confdefs.h. */
10950 $ac_includes_default
10951 #include <$ac_header>
10952 _ACEOF
10953 rm -f conftest.$ac_objext
10954 if { (ac_try="$ac_compile"
10955 case "(($ac_try" in
10956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10957 *) ac_try_echo=$ac_try;;
10958 esac
10959 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10960 $as_echo "$ac_try_echo") >&5
10961 (eval "$ac_compile") 2>conftest.er1
10962 ac_status=$?
10963 grep -v '^ *+' conftest.er1 >conftest.err
10964 rm -f conftest.er1
10965 cat conftest.err >&5
10966 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10967 (exit $ac_status); } && {
10968 test -z "$ac_c_werror_flag" ||
10969 test ! -s conftest.err
10970 } && test -s conftest.$ac_objext; then
10971 ac_header_compiler=yes
10972 else
10973 $as_echo "$as_me: failed program was:" >&5
10974 sed 's/^/| /' conftest.$ac_ext >&5
10976 ac_header_compiler=no
10979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10980 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10981 $as_echo "$ac_header_compiler" >&6; }
10983 # Is the header present?
10984 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10985 $as_echo_n "checking $ac_header presence... " >&6; }
10986 cat >conftest.$ac_ext <<_ACEOF
10987 /* confdefs.h. */
10988 _ACEOF
10989 cat confdefs.h >>conftest.$ac_ext
10990 cat >>conftest.$ac_ext <<_ACEOF
10991 /* end confdefs.h. */
10992 #include <$ac_header>
10993 _ACEOF
10994 if { (ac_try="$ac_cpp conftest.$ac_ext"
10995 case "(($ac_try" in
10996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10997 *) ac_try_echo=$ac_try;;
10998 esac
10999 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11000 $as_echo "$ac_try_echo") >&5
11001 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11002 ac_status=$?
11003 grep -v '^ *+' conftest.er1 >conftest.err
11004 rm -f conftest.er1
11005 cat conftest.err >&5
11006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11007 (exit $ac_status); } >/dev/null && {
11008 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11009 test ! -s conftest.err
11010 }; then
11011 ac_header_preproc=yes
11012 else
11013 $as_echo "$as_me: failed program was:" >&5
11014 sed 's/^/| /' conftest.$ac_ext >&5
11016 ac_header_preproc=no
11019 rm -f conftest.err conftest.$ac_ext
11020 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11021 $as_echo "$ac_header_preproc" >&6; }
11023 # So? What about this header?
11024 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11025 yes:no: )
11026 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11027 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11028 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11029 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11030 ac_header_preproc=yes
11032 no:yes:* )
11033 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11034 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11035 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11036 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11037 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11038 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11039 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11040 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11041 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11042 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11043 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11044 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11047 esac
11048 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11049 $as_echo_n "checking for $ac_header... " >&6; }
11050 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11051 $as_echo_n "(cached) " >&6
11052 else
11053 eval "$as_ac_Header=\$ac_header_preproc"
11055 ac_res=`eval 'as_val=${'$as_ac_Header'}
11056 $as_echo "$as_val"'`
11057 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11058 $as_echo "$ac_res" >&6; }
11061 if test `eval 'as_val=${'$as_ac_Header'}
11062 $as_echo "$as_val"'` = yes; then
11063 cat >>confdefs.h <<_ACEOF
11064 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11065 _ACEOF
11069 done
11073 for ac_header in sys/ptem.h
11075 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11076 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11077 $as_echo_n "checking for $ac_header... " >&6; }
11078 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11079 $as_echo_n "(cached) " >&6
11080 else
11081 cat >conftest.$ac_ext <<_ACEOF
11082 /* confdefs.h. */
11083 _ACEOF
11084 cat confdefs.h >>conftest.$ac_ext
11085 cat >>conftest.$ac_ext <<_ACEOF
11086 /* end confdefs.h. */
11087 #if defined HAVE_SYS_STREAM_H
11088 # include <sys/stream.h>
11089 #endif
11091 #include <$ac_header>
11092 _ACEOF
11093 rm -f conftest.$ac_objext
11094 if { (ac_try="$ac_compile"
11095 case "(($ac_try" in
11096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11097 *) ac_try_echo=$ac_try;;
11098 esac
11099 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11100 $as_echo "$ac_try_echo") >&5
11101 (eval "$ac_compile") 2>conftest.er1
11102 ac_status=$?
11103 grep -v '^ *+' conftest.er1 >conftest.err
11104 rm -f conftest.er1
11105 cat conftest.err >&5
11106 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11107 (exit $ac_status); } && {
11108 test -z "$ac_c_werror_flag" ||
11109 test ! -s conftest.err
11110 } && test -s conftest.$ac_objext; then
11111 eval "$as_ac_Header=yes"
11112 else
11113 $as_echo "$as_me: failed program was:" >&5
11114 sed 's/^/| /' conftest.$ac_ext >&5
11116 eval "$as_ac_Header=no"
11119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11121 ac_res=`eval 'as_val=${'$as_ac_Header'}
11122 $as_echo "$as_val"'`
11123 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11124 $as_echo "$ac_res" >&6; }
11125 if test `eval 'as_val=${'$as_ac_Header'}
11126 $as_echo "$as_val"'` = yes; then
11127 cat >>confdefs.h <<_ACEOF
11128 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11129 _ACEOF
11133 done
11137 { $as_echo "$as_me:$LINENO: checking for pthread_np.h" >&5
11138 $as_echo_n "checking for pthread_np.h... " >&6; }
11139 cat >conftest.$ac_ext <<_ACEOF
11140 /* confdefs.h. */
11141 _ACEOF
11142 cat confdefs.h >>conftest.$ac_ext
11143 cat >>conftest.$ac_ext <<_ACEOF
11144 /* end confdefs.h. */
11146 #include <pthread.h>
11147 #include <pthread_np.h>
11149 main ()
11151 int i; i = 0;
11153 return 0;
11155 _ACEOF
11156 rm -f conftest.$ac_objext
11157 if { (ac_try="$ac_compile"
11158 case "(($ac_try" in
11159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11160 *) ac_try_echo=$ac_try;;
11161 esac
11162 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11163 $as_echo "$ac_try_echo") >&5
11164 (eval "$ac_compile") 2>conftest.er1
11165 ac_status=$?
11166 grep -v '^ *+' conftest.er1 >conftest.err
11167 rm -f conftest.er1
11168 cat conftest.err >&5
11169 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11170 (exit $ac_status); } && {
11171 test -z "$ac_c_werror_flag" ||
11172 test ! -s conftest.err
11173 } && test -s conftest.$ac_objext; then
11174 { $as_echo "$as_me:$LINENO: result: yes" >&5
11175 $as_echo "yes" >&6; }
11176 cat >>confdefs.h <<\_ACEOF
11177 #define HAVE_PTHREAD_NP_H 1
11178 _ACEOF
11180 else
11181 $as_echo "$as_me: failed program was:" >&5
11182 sed 's/^/| /' conftest.$ac_ext >&5
11184 { $as_echo "$as_me:$LINENO: result: no" >&5
11185 $as_echo "no" >&6; }
11188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11191 for ac_header in strings.h
11193 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11194 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11195 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11196 $as_echo_n "checking for $ac_header... " >&6; }
11197 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11198 $as_echo_n "(cached) " >&6
11200 ac_res=`eval 'as_val=${'$as_ac_Header'}
11201 $as_echo "$as_val"'`
11202 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11203 $as_echo "$ac_res" >&6; }
11204 else
11205 # Is the header compilable?
11206 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11207 $as_echo_n "checking $ac_header usability... " >&6; }
11208 cat >conftest.$ac_ext <<_ACEOF
11209 /* confdefs.h. */
11210 _ACEOF
11211 cat confdefs.h >>conftest.$ac_ext
11212 cat >>conftest.$ac_ext <<_ACEOF
11213 /* end confdefs.h. */
11214 $ac_includes_default
11215 #include <$ac_header>
11216 _ACEOF
11217 rm -f conftest.$ac_objext
11218 if { (ac_try="$ac_compile"
11219 case "(($ac_try" in
11220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11221 *) ac_try_echo=$ac_try;;
11222 esac
11223 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11224 $as_echo "$ac_try_echo") >&5
11225 (eval "$ac_compile") 2>conftest.er1
11226 ac_status=$?
11227 grep -v '^ *+' conftest.er1 >conftest.err
11228 rm -f conftest.er1
11229 cat conftest.err >&5
11230 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11231 (exit $ac_status); } && {
11232 test -z "$ac_c_werror_flag" ||
11233 test ! -s conftest.err
11234 } && test -s conftest.$ac_objext; then
11235 ac_header_compiler=yes
11236 else
11237 $as_echo "$as_me: failed program was:" >&5
11238 sed 's/^/| /' conftest.$ac_ext >&5
11240 ac_header_compiler=no
11243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11244 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11245 $as_echo "$ac_header_compiler" >&6; }
11247 # Is the header present?
11248 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11249 $as_echo_n "checking $ac_header presence... " >&6; }
11250 cat >conftest.$ac_ext <<_ACEOF
11251 /* confdefs.h. */
11252 _ACEOF
11253 cat confdefs.h >>conftest.$ac_ext
11254 cat >>conftest.$ac_ext <<_ACEOF
11255 /* end confdefs.h. */
11256 #include <$ac_header>
11257 _ACEOF
11258 if { (ac_try="$ac_cpp conftest.$ac_ext"
11259 case "(($ac_try" in
11260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11261 *) ac_try_echo=$ac_try;;
11262 esac
11263 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11264 $as_echo "$ac_try_echo") >&5
11265 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11266 ac_status=$?
11267 grep -v '^ *+' conftest.er1 >conftest.err
11268 rm -f conftest.er1
11269 cat conftest.err >&5
11270 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11271 (exit $ac_status); } >/dev/null && {
11272 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11273 test ! -s conftest.err
11274 }; then
11275 ac_header_preproc=yes
11276 else
11277 $as_echo "$as_me: failed program was:" >&5
11278 sed 's/^/| /' conftest.$ac_ext >&5
11280 ac_header_preproc=no
11283 rm -f conftest.err conftest.$ac_ext
11284 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11285 $as_echo "$ac_header_preproc" >&6; }
11287 # So? What about this header?
11288 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11289 yes:no: )
11290 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11291 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11292 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11293 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11294 ac_header_preproc=yes
11296 no:yes:* )
11297 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11298 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11299 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11300 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11301 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11302 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11303 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11304 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11305 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11306 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11307 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11308 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11311 esac
11312 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11313 $as_echo_n "checking for $ac_header... " >&6; }
11314 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11315 $as_echo_n "(cached) " >&6
11316 else
11317 eval "$as_ac_Header=\$ac_header_preproc"
11319 ac_res=`eval 'as_val=${'$as_ac_Header'}
11320 $as_echo "$as_val"'`
11321 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11322 $as_echo "$ac_res" >&6; }
11325 if test `eval 'as_val=${'$as_ac_Header'}
11326 $as_echo "$as_val"'` = yes; then
11327 cat >>confdefs.h <<_ACEOF
11328 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11329 _ACEOF
11333 done
11335 if test "x$MACOSX" = "xyes"; then
11336 cat >>confdefs.h <<\_ACEOF
11337 #define NO_STRINGS_WITH_STRING_H 1
11338 _ACEOF
11340 else
11342 { $as_echo "$as_me:$LINENO: checking if strings.h can be included after string.h" >&5
11343 $as_echo_n "checking if strings.h can be included after string.h... " >&6; }
11344 cppflags_save=$CPPFLAGS
11345 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11346 cat >conftest.$ac_ext <<_ACEOF
11347 /* confdefs.h. */
11348 _ACEOF
11349 cat confdefs.h >>conftest.$ac_ext
11350 cat >>conftest.$ac_ext <<_ACEOF
11351 /* end confdefs.h. */
11353 #if defined(_AIX) && !defined(_AIX51) && !defined(_NO_PROTO)
11354 # define _NO_PROTO /* like in os_unix.h, causes conflict for AIX (Winn) */
11355 /* but don't do it on AIX 5.1 (Uribarri) */
11356 #endif
11357 #ifdef HAVE_XM_XM_H
11358 # include <Xm/Xm.h> /* This breaks it for HP-UX 11 (Squassabia) */
11359 #endif
11360 #ifdef HAVE_STRING_H
11361 # include <string.h>
11362 #endif
11363 #if defined(HAVE_STRINGS_H)
11364 # include <strings.h>
11365 #endif
11368 main ()
11370 int i; i = 0;
11372 return 0;
11374 _ACEOF
11375 rm -f conftest.$ac_objext
11376 if { (ac_try="$ac_compile"
11377 case "(($ac_try" in
11378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11379 *) ac_try_echo=$ac_try;;
11380 esac
11381 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11382 $as_echo "$ac_try_echo") >&5
11383 (eval "$ac_compile") 2>conftest.er1
11384 ac_status=$?
11385 grep -v '^ *+' conftest.er1 >conftest.err
11386 rm -f conftest.er1
11387 cat conftest.err >&5
11388 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11389 (exit $ac_status); } && {
11390 test -z "$ac_c_werror_flag" ||
11391 test ! -s conftest.err
11392 } && test -s conftest.$ac_objext; then
11393 { $as_echo "$as_me:$LINENO: result: yes" >&5
11394 $as_echo "yes" >&6; }
11395 else
11396 $as_echo "$as_me: failed program was:" >&5
11397 sed 's/^/| /' conftest.$ac_ext >&5
11399 cat >>confdefs.h <<\_ACEOF
11400 #define NO_STRINGS_WITH_STRING_H 1
11401 _ACEOF
11403 { $as_echo "$as_me:$LINENO: result: no" >&5
11404 $as_echo "no" >&6; }
11407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11408 CPPFLAGS=$cppflags_save
11411 if test $ac_cv_c_compiler_gnu = yes; then
11412 { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
11413 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
11414 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
11415 $as_echo_n "(cached) " >&6
11416 else
11417 ac_pattern="Autoconf.*'x'"
11418 cat >conftest.$ac_ext <<_ACEOF
11419 /* confdefs.h. */
11420 _ACEOF
11421 cat confdefs.h >>conftest.$ac_ext
11422 cat >>conftest.$ac_ext <<_ACEOF
11423 /* end confdefs.h. */
11424 #include <sgtty.h>
11425 Autoconf TIOCGETP
11426 _ACEOF
11427 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11428 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11429 ac_cv_prog_gcc_traditional=yes
11430 else
11431 ac_cv_prog_gcc_traditional=no
11433 rm -f conftest*
11436 if test $ac_cv_prog_gcc_traditional = no; then
11437 cat >conftest.$ac_ext <<_ACEOF
11438 /* confdefs.h. */
11439 _ACEOF
11440 cat confdefs.h >>conftest.$ac_ext
11441 cat >>conftest.$ac_ext <<_ACEOF
11442 /* end confdefs.h. */
11443 #include <termio.h>
11444 Autoconf TCGETA
11445 _ACEOF
11446 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11447 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11448 ac_cv_prog_gcc_traditional=yes
11450 rm -f conftest*
11454 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
11455 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
11456 if test $ac_cv_prog_gcc_traditional = yes; then
11457 CC="$CC -traditional"
11461 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11462 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11463 if test "${ac_cv_c_const+set}" = set; then
11464 $as_echo_n "(cached) " >&6
11465 else
11466 cat >conftest.$ac_ext <<_ACEOF
11467 /* confdefs.h. */
11468 _ACEOF
11469 cat confdefs.h >>conftest.$ac_ext
11470 cat >>conftest.$ac_ext <<_ACEOF
11471 /* end confdefs.h. */
11474 main ()
11476 /* FIXME: Include the comments suggested by Paul. */
11477 #ifndef __cplusplus
11478 /* Ultrix mips cc rejects this. */
11479 typedef int charset[2];
11480 const charset cs;
11481 /* SunOS 4.1.1 cc rejects this. */
11482 char const *const *pcpcc;
11483 char **ppc;
11484 /* NEC SVR4.0.2 mips cc rejects this. */
11485 struct point {int x, y;};
11486 static struct point const zero = {0,0};
11487 /* AIX XL C 1.02.0.0 rejects this.
11488 It does not let you subtract one const X* pointer from another in
11489 an arm of an if-expression whose if-part is not a constant
11490 expression */
11491 const char *g = "string";
11492 pcpcc = &g + (g ? g-g : 0);
11493 /* HPUX 7.0 cc rejects these. */
11494 ++pcpcc;
11495 ppc = (char**) pcpcc;
11496 pcpcc = (char const *const *) ppc;
11497 { /* SCO 3.2v4 cc rejects this. */
11498 char *t;
11499 char const *s = 0 ? (char *) 0 : (char const *) 0;
11501 *t++ = 0;
11502 if (s) return 0;
11504 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11505 int x[] = {25, 17};
11506 const int *foo = &x[0];
11507 ++foo;
11509 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11510 typedef const int *iptr;
11511 iptr p = 0;
11512 ++p;
11514 { /* AIX XL C 1.02.0.0 rejects this saying
11515 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11516 struct s { int j; const int *ap[3]; };
11517 struct s *b; b->j = 5;
11519 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11520 const int foo = 10;
11521 if (!foo) return 0;
11523 return !cs[0] && !zero.x;
11524 #endif
11527 return 0;
11529 _ACEOF
11530 rm -f conftest.$ac_objext
11531 if { (ac_try="$ac_compile"
11532 case "(($ac_try" in
11533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11534 *) ac_try_echo=$ac_try;;
11535 esac
11536 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11537 $as_echo "$ac_try_echo") >&5
11538 (eval "$ac_compile") 2>conftest.er1
11539 ac_status=$?
11540 grep -v '^ *+' conftest.er1 >conftest.err
11541 rm -f conftest.er1
11542 cat conftest.err >&5
11543 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11544 (exit $ac_status); } && {
11545 test -z "$ac_c_werror_flag" ||
11546 test ! -s conftest.err
11547 } && test -s conftest.$ac_objext; then
11548 ac_cv_c_const=yes
11549 else
11550 $as_echo "$as_me: failed program was:" >&5
11551 sed 's/^/| /' conftest.$ac_ext >&5
11553 ac_cv_c_const=no
11556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11558 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11559 $as_echo "$ac_cv_c_const" >&6; }
11560 if test $ac_cv_c_const = no; then
11562 cat >>confdefs.h <<\_ACEOF
11563 #define const /**/
11564 _ACEOF
11568 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
11569 $as_echo_n "checking for working volatile... " >&6; }
11570 if test "${ac_cv_c_volatile+set}" = set; then
11571 $as_echo_n "(cached) " >&6
11572 else
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. */
11581 main ()
11584 volatile int x;
11585 int * volatile y = (int *) 0;
11586 return !x && !y;
11588 return 0;
11590 _ACEOF
11591 rm -f conftest.$ac_objext
11592 if { (ac_try="$ac_compile"
11593 case "(($ac_try" in
11594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11595 *) ac_try_echo=$ac_try;;
11596 esac
11597 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11598 $as_echo "$ac_try_echo") >&5
11599 (eval "$ac_compile") 2>conftest.er1
11600 ac_status=$?
11601 grep -v '^ *+' conftest.er1 >conftest.err
11602 rm -f conftest.er1
11603 cat conftest.err >&5
11604 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11605 (exit $ac_status); } && {
11606 test -z "$ac_c_werror_flag" ||
11607 test ! -s conftest.err
11608 } && test -s conftest.$ac_objext; then
11609 ac_cv_c_volatile=yes
11610 else
11611 $as_echo "$as_me: failed program was:" >&5
11612 sed 's/^/| /' conftest.$ac_ext >&5
11614 ac_cv_c_volatile=no
11617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11619 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
11620 $as_echo "$ac_cv_c_volatile" >&6; }
11621 if test $ac_cv_c_volatile = no; then
11623 cat >>confdefs.h <<\_ACEOF
11624 #define volatile /**/
11625 _ACEOF
11629 { $as_echo "$as_me:$LINENO: checking for mode_t" >&5
11630 $as_echo_n "checking for mode_t... " >&6; }
11631 if test "${ac_cv_type_mode_t+set}" = set; then
11632 $as_echo_n "(cached) " >&6
11633 else
11634 ac_cv_type_mode_t=no
11635 cat >conftest.$ac_ext <<_ACEOF
11636 /* confdefs.h. */
11637 _ACEOF
11638 cat confdefs.h >>conftest.$ac_ext
11639 cat >>conftest.$ac_ext <<_ACEOF
11640 /* end confdefs.h. */
11641 $ac_includes_default
11643 main ()
11645 if (sizeof (mode_t))
11646 return 0;
11648 return 0;
11650 _ACEOF
11651 rm -f conftest.$ac_objext
11652 if { (ac_try="$ac_compile"
11653 case "(($ac_try" in
11654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11655 *) ac_try_echo=$ac_try;;
11656 esac
11657 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11658 $as_echo "$ac_try_echo") >&5
11659 (eval "$ac_compile") 2>conftest.er1
11660 ac_status=$?
11661 grep -v '^ *+' conftest.er1 >conftest.err
11662 rm -f conftest.er1
11663 cat conftest.err >&5
11664 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11665 (exit $ac_status); } && {
11666 test -z "$ac_c_werror_flag" ||
11667 test ! -s conftest.err
11668 } && test -s conftest.$ac_objext; then
11669 cat >conftest.$ac_ext <<_ACEOF
11670 /* confdefs.h. */
11671 _ACEOF
11672 cat confdefs.h >>conftest.$ac_ext
11673 cat >>conftest.$ac_ext <<_ACEOF
11674 /* end confdefs.h. */
11675 $ac_includes_default
11677 main ()
11679 if (sizeof ((mode_t)))
11680 return 0;
11682 return 0;
11684 _ACEOF
11685 rm -f conftest.$ac_objext
11686 if { (ac_try="$ac_compile"
11687 case "(($ac_try" in
11688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11689 *) ac_try_echo=$ac_try;;
11690 esac
11691 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11692 $as_echo "$ac_try_echo") >&5
11693 (eval "$ac_compile") 2>conftest.er1
11694 ac_status=$?
11695 grep -v '^ *+' conftest.er1 >conftest.err
11696 rm -f conftest.er1
11697 cat conftest.err >&5
11698 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11699 (exit $ac_status); } && {
11700 test -z "$ac_c_werror_flag" ||
11701 test ! -s conftest.err
11702 } && test -s conftest.$ac_objext; then
11704 else
11705 $as_echo "$as_me: failed program was:" >&5
11706 sed 's/^/| /' conftest.$ac_ext >&5
11708 ac_cv_type_mode_t=yes
11711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11712 else
11713 $as_echo "$as_me: failed program was:" >&5
11714 sed 's/^/| /' conftest.$ac_ext >&5
11719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11721 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
11722 $as_echo "$ac_cv_type_mode_t" >&6; }
11723 if test $ac_cv_type_mode_t = yes; then
11725 else
11727 cat >>confdefs.h <<_ACEOF
11728 #define mode_t int
11729 _ACEOF
11733 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
11734 $as_echo_n "checking for off_t... " >&6; }
11735 if test "${ac_cv_type_off_t+set}" = set; then
11736 $as_echo_n "(cached) " >&6
11737 else
11738 ac_cv_type_off_t=no
11739 cat >conftest.$ac_ext <<_ACEOF
11740 /* confdefs.h. */
11741 _ACEOF
11742 cat confdefs.h >>conftest.$ac_ext
11743 cat >>conftest.$ac_ext <<_ACEOF
11744 /* end confdefs.h. */
11745 $ac_includes_default
11747 main ()
11749 if (sizeof (off_t))
11750 return 0;
11752 return 0;
11754 _ACEOF
11755 rm -f conftest.$ac_objext
11756 if { (ac_try="$ac_compile"
11757 case "(($ac_try" in
11758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11759 *) ac_try_echo=$ac_try;;
11760 esac
11761 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11762 $as_echo "$ac_try_echo") >&5
11763 (eval "$ac_compile") 2>conftest.er1
11764 ac_status=$?
11765 grep -v '^ *+' conftest.er1 >conftest.err
11766 rm -f conftest.er1
11767 cat conftest.err >&5
11768 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11769 (exit $ac_status); } && {
11770 test -z "$ac_c_werror_flag" ||
11771 test ! -s conftest.err
11772 } && test -s conftest.$ac_objext; then
11773 cat >conftest.$ac_ext <<_ACEOF
11774 /* confdefs.h. */
11775 _ACEOF
11776 cat confdefs.h >>conftest.$ac_ext
11777 cat >>conftest.$ac_ext <<_ACEOF
11778 /* end confdefs.h. */
11779 $ac_includes_default
11781 main ()
11783 if (sizeof ((off_t)))
11784 return 0;
11786 return 0;
11788 _ACEOF
11789 rm -f conftest.$ac_objext
11790 if { (ac_try="$ac_compile"
11791 case "(($ac_try" in
11792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11793 *) ac_try_echo=$ac_try;;
11794 esac
11795 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11796 $as_echo "$ac_try_echo") >&5
11797 (eval "$ac_compile") 2>conftest.er1
11798 ac_status=$?
11799 grep -v '^ *+' conftest.er1 >conftest.err
11800 rm -f conftest.er1
11801 cat conftest.err >&5
11802 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11803 (exit $ac_status); } && {
11804 test -z "$ac_c_werror_flag" ||
11805 test ! -s conftest.err
11806 } && test -s conftest.$ac_objext; then
11808 else
11809 $as_echo "$as_me: failed program was:" >&5
11810 sed 's/^/| /' conftest.$ac_ext >&5
11812 ac_cv_type_off_t=yes
11815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11816 else
11817 $as_echo "$as_me: failed program was:" >&5
11818 sed 's/^/| /' conftest.$ac_ext >&5
11823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11825 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11826 $as_echo "$ac_cv_type_off_t" >&6; }
11827 if test $ac_cv_type_off_t = yes; then
11829 else
11831 cat >>confdefs.h <<_ACEOF
11832 #define off_t long int
11833 _ACEOF
11837 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
11838 $as_echo_n "checking for pid_t... " >&6; }
11839 if test "${ac_cv_type_pid_t+set}" = set; then
11840 $as_echo_n "(cached) " >&6
11841 else
11842 ac_cv_type_pid_t=no
11843 cat >conftest.$ac_ext <<_ACEOF
11844 /* confdefs.h. */
11845 _ACEOF
11846 cat confdefs.h >>conftest.$ac_ext
11847 cat >>conftest.$ac_ext <<_ACEOF
11848 /* end confdefs.h. */
11849 $ac_includes_default
11851 main ()
11853 if (sizeof (pid_t))
11854 return 0;
11856 return 0;
11858 _ACEOF
11859 rm -f conftest.$ac_objext
11860 if { (ac_try="$ac_compile"
11861 case "(($ac_try" in
11862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11863 *) ac_try_echo=$ac_try;;
11864 esac
11865 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11866 $as_echo "$ac_try_echo") >&5
11867 (eval "$ac_compile") 2>conftest.er1
11868 ac_status=$?
11869 grep -v '^ *+' conftest.er1 >conftest.err
11870 rm -f conftest.er1
11871 cat conftest.err >&5
11872 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11873 (exit $ac_status); } && {
11874 test -z "$ac_c_werror_flag" ||
11875 test ! -s conftest.err
11876 } && test -s conftest.$ac_objext; then
11877 cat >conftest.$ac_ext <<_ACEOF
11878 /* confdefs.h. */
11879 _ACEOF
11880 cat confdefs.h >>conftest.$ac_ext
11881 cat >>conftest.$ac_ext <<_ACEOF
11882 /* end confdefs.h. */
11883 $ac_includes_default
11885 main ()
11887 if (sizeof ((pid_t)))
11888 return 0;
11890 return 0;
11892 _ACEOF
11893 rm -f conftest.$ac_objext
11894 if { (ac_try="$ac_compile"
11895 case "(($ac_try" in
11896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11897 *) ac_try_echo=$ac_try;;
11898 esac
11899 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11900 $as_echo "$ac_try_echo") >&5
11901 (eval "$ac_compile") 2>conftest.er1
11902 ac_status=$?
11903 grep -v '^ *+' conftest.er1 >conftest.err
11904 rm -f conftest.er1
11905 cat conftest.err >&5
11906 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11907 (exit $ac_status); } && {
11908 test -z "$ac_c_werror_flag" ||
11909 test ! -s conftest.err
11910 } && test -s conftest.$ac_objext; then
11912 else
11913 $as_echo "$as_me: failed program was:" >&5
11914 sed 's/^/| /' conftest.$ac_ext >&5
11916 ac_cv_type_pid_t=yes
11919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11920 else
11921 $as_echo "$as_me: failed program was:" >&5
11922 sed 's/^/| /' conftest.$ac_ext >&5
11927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11929 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11930 $as_echo "$ac_cv_type_pid_t" >&6; }
11931 if test $ac_cv_type_pid_t = yes; then
11933 else
11935 cat >>confdefs.h <<_ACEOF
11936 #define pid_t int
11937 _ACEOF
11941 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
11942 $as_echo_n "checking for size_t... " >&6; }
11943 if test "${ac_cv_type_size_t+set}" = set; then
11944 $as_echo_n "(cached) " >&6
11945 else
11946 ac_cv_type_size_t=no
11947 cat >conftest.$ac_ext <<_ACEOF
11948 /* confdefs.h. */
11949 _ACEOF
11950 cat confdefs.h >>conftest.$ac_ext
11951 cat >>conftest.$ac_ext <<_ACEOF
11952 /* end confdefs.h. */
11953 $ac_includes_default
11955 main ()
11957 if (sizeof (size_t))
11958 return 0;
11960 return 0;
11962 _ACEOF
11963 rm -f conftest.$ac_objext
11964 if { (ac_try="$ac_compile"
11965 case "(($ac_try" in
11966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11967 *) ac_try_echo=$ac_try;;
11968 esac
11969 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11970 $as_echo "$ac_try_echo") >&5
11971 (eval "$ac_compile") 2>conftest.er1
11972 ac_status=$?
11973 grep -v '^ *+' conftest.er1 >conftest.err
11974 rm -f conftest.er1
11975 cat conftest.err >&5
11976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11977 (exit $ac_status); } && {
11978 test -z "$ac_c_werror_flag" ||
11979 test ! -s conftest.err
11980 } && test -s conftest.$ac_objext; then
11981 cat >conftest.$ac_ext <<_ACEOF
11982 /* confdefs.h. */
11983 _ACEOF
11984 cat confdefs.h >>conftest.$ac_ext
11985 cat >>conftest.$ac_ext <<_ACEOF
11986 /* end confdefs.h. */
11987 $ac_includes_default
11989 main ()
11991 if (sizeof ((size_t)))
11992 return 0;
11994 return 0;
11996 _ACEOF
11997 rm -f conftest.$ac_objext
11998 if { (ac_try="$ac_compile"
11999 case "(($ac_try" in
12000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12001 *) ac_try_echo=$ac_try;;
12002 esac
12003 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12004 $as_echo "$ac_try_echo") >&5
12005 (eval "$ac_compile") 2>conftest.er1
12006 ac_status=$?
12007 grep -v '^ *+' conftest.er1 >conftest.err
12008 rm -f conftest.er1
12009 cat conftest.err >&5
12010 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12011 (exit $ac_status); } && {
12012 test -z "$ac_c_werror_flag" ||
12013 test ! -s conftest.err
12014 } && test -s conftest.$ac_objext; then
12016 else
12017 $as_echo "$as_me: failed program was:" >&5
12018 sed 's/^/| /' conftest.$ac_ext >&5
12020 ac_cv_type_size_t=yes
12023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12024 else
12025 $as_echo "$as_me: failed program was:" >&5
12026 sed 's/^/| /' conftest.$ac_ext >&5
12031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12033 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
12034 $as_echo "$ac_cv_type_size_t" >&6; }
12035 if test $ac_cv_type_size_t = yes; then
12037 else
12039 cat >>confdefs.h <<_ACEOF
12040 #define size_t unsigned int
12041 _ACEOF
12045 { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
12046 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
12047 if test "${ac_cv_type_uid_t+set}" = set; then
12048 $as_echo_n "(cached) " >&6
12049 else
12050 cat >conftest.$ac_ext <<_ACEOF
12051 /* confdefs.h. */
12052 _ACEOF
12053 cat confdefs.h >>conftest.$ac_ext
12054 cat >>conftest.$ac_ext <<_ACEOF
12055 /* end confdefs.h. */
12056 #include <sys/types.h>
12058 _ACEOF
12059 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12060 $EGREP "uid_t" >/dev/null 2>&1; then
12061 ac_cv_type_uid_t=yes
12062 else
12063 ac_cv_type_uid_t=no
12065 rm -f conftest*
12068 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
12069 $as_echo "$ac_cv_type_uid_t" >&6; }
12070 if test $ac_cv_type_uid_t = no; then
12072 cat >>confdefs.h <<\_ACEOF
12073 #define uid_t int
12074 _ACEOF
12077 cat >>confdefs.h <<\_ACEOF
12078 #define gid_t int
12079 _ACEOF
12083 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
12084 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
12085 if test "${ac_cv_header_time+set}" = set; then
12086 $as_echo_n "(cached) " >&6
12087 else
12088 cat >conftest.$ac_ext <<_ACEOF
12089 /* confdefs.h. */
12090 _ACEOF
12091 cat confdefs.h >>conftest.$ac_ext
12092 cat >>conftest.$ac_ext <<_ACEOF
12093 /* end confdefs.h. */
12094 #include <sys/types.h>
12095 #include <sys/time.h>
12096 #include <time.h>
12099 main ()
12101 if ((struct tm *) 0)
12102 return 0;
12104 return 0;
12106 _ACEOF
12107 rm -f conftest.$ac_objext
12108 if { (ac_try="$ac_compile"
12109 case "(($ac_try" in
12110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12111 *) ac_try_echo=$ac_try;;
12112 esac
12113 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12114 $as_echo "$ac_try_echo") >&5
12115 (eval "$ac_compile") 2>conftest.er1
12116 ac_status=$?
12117 grep -v '^ *+' conftest.er1 >conftest.err
12118 rm -f conftest.er1
12119 cat conftest.err >&5
12120 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12121 (exit $ac_status); } && {
12122 test -z "$ac_c_werror_flag" ||
12123 test ! -s conftest.err
12124 } && test -s conftest.$ac_objext; then
12125 ac_cv_header_time=yes
12126 else
12127 $as_echo "$as_me: failed program was:" >&5
12128 sed 's/^/| /' conftest.$ac_ext >&5
12130 ac_cv_header_time=no
12133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12135 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
12136 $as_echo "$ac_cv_header_time" >&6; }
12137 if test $ac_cv_header_time = yes; then
12139 cat >>confdefs.h <<\_ACEOF
12140 #define TIME_WITH_SYS_TIME 1
12141 _ACEOF
12145 { $as_echo "$as_me:$LINENO: checking for ino_t" >&5
12146 $as_echo_n "checking for ino_t... " >&6; }
12147 if test "${ac_cv_type_ino_t+set}" = set; then
12148 $as_echo_n "(cached) " >&6
12149 else
12150 ac_cv_type_ino_t=no
12151 cat >conftest.$ac_ext <<_ACEOF
12152 /* confdefs.h. */
12153 _ACEOF
12154 cat confdefs.h >>conftest.$ac_ext
12155 cat >>conftest.$ac_ext <<_ACEOF
12156 /* end confdefs.h. */
12157 $ac_includes_default
12159 main ()
12161 if (sizeof (ino_t))
12162 return 0;
12164 return 0;
12166 _ACEOF
12167 rm -f conftest.$ac_objext
12168 if { (ac_try="$ac_compile"
12169 case "(($ac_try" in
12170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12171 *) ac_try_echo=$ac_try;;
12172 esac
12173 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12174 $as_echo "$ac_try_echo") >&5
12175 (eval "$ac_compile") 2>conftest.er1
12176 ac_status=$?
12177 grep -v '^ *+' conftest.er1 >conftest.err
12178 rm -f conftest.er1
12179 cat conftest.err >&5
12180 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12181 (exit $ac_status); } && {
12182 test -z "$ac_c_werror_flag" ||
12183 test ! -s conftest.err
12184 } && test -s conftest.$ac_objext; then
12185 cat >conftest.$ac_ext <<_ACEOF
12186 /* confdefs.h. */
12187 _ACEOF
12188 cat confdefs.h >>conftest.$ac_ext
12189 cat >>conftest.$ac_ext <<_ACEOF
12190 /* end confdefs.h. */
12191 $ac_includes_default
12193 main ()
12195 if (sizeof ((ino_t)))
12196 return 0;
12198 return 0;
12200 _ACEOF
12201 rm -f conftest.$ac_objext
12202 if { (ac_try="$ac_compile"
12203 case "(($ac_try" in
12204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12205 *) ac_try_echo=$ac_try;;
12206 esac
12207 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12208 $as_echo "$ac_try_echo") >&5
12209 (eval "$ac_compile") 2>conftest.er1
12210 ac_status=$?
12211 grep -v '^ *+' conftest.er1 >conftest.err
12212 rm -f conftest.er1
12213 cat conftest.err >&5
12214 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12215 (exit $ac_status); } && {
12216 test -z "$ac_c_werror_flag" ||
12217 test ! -s conftest.err
12218 } && test -s conftest.$ac_objext; then
12220 else
12221 $as_echo "$as_me: failed program was:" >&5
12222 sed 's/^/| /' conftest.$ac_ext >&5
12224 ac_cv_type_ino_t=yes
12227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12228 else
12229 $as_echo "$as_me: failed program was:" >&5
12230 sed 's/^/| /' conftest.$ac_ext >&5
12235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12237 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
12238 $as_echo "$ac_cv_type_ino_t" >&6; }
12239 if test $ac_cv_type_ino_t = yes; then
12241 else
12243 cat >>confdefs.h <<_ACEOF
12244 #define ino_t long
12245 _ACEOF
12249 { $as_echo "$as_me:$LINENO: checking for dev_t" >&5
12250 $as_echo_n "checking for dev_t... " >&6; }
12251 if test "${ac_cv_type_dev_t+set}" = set; then
12252 $as_echo_n "(cached) " >&6
12253 else
12254 ac_cv_type_dev_t=no
12255 cat >conftest.$ac_ext <<_ACEOF
12256 /* confdefs.h. */
12257 _ACEOF
12258 cat confdefs.h >>conftest.$ac_ext
12259 cat >>conftest.$ac_ext <<_ACEOF
12260 /* end confdefs.h. */
12261 $ac_includes_default
12263 main ()
12265 if (sizeof (dev_t))
12266 return 0;
12268 return 0;
12270 _ACEOF
12271 rm -f conftest.$ac_objext
12272 if { (ac_try="$ac_compile"
12273 case "(($ac_try" in
12274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12275 *) ac_try_echo=$ac_try;;
12276 esac
12277 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12278 $as_echo "$ac_try_echo") >&5
12279 (eval "$ac_compile") 2>conftest.er1
12280 ac_status=$?
12281 grep -v '^ *+' conftest.er1 >conftest.err
12282 rm -f conftest.er1
12283 cat conftest.err >&5
12284 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12285 (exit $ac_status); } && {
12286 test -z "$ac_c_werror_flag" ||
12287 test ! -s conftest.err
12288 } && test -s conftest.$ac_objext; then
12289 cat >conftest.$ac_ext <<_ACEOF
12290 /* confdefs.h. */
12291 _ACEOF
12292 cat confdefs.h >>conftest.$ac_ext
12293 cat >>conftest.$ac_ext <<_ACEOF
12294 /* end confdefs.h. */
12295 $ac_includes_default
12297 main ()
12299 if (sizeof ((dev_t)))
12300 return 0;
12302 return 0;
12304 _ACEOF
12305 rm -f conftest.$ac_objext
12306 if { (ac_try="$ac_compile"
12307 case "(($ac_try" in
12308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12309 *) ac_try_echo=$ac_try;;
12310 esac
12311 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12312 $as_echo "$ac_try_echo") >&5
12313 (eval "$ac_compile") 2>conftest.er1
12314 ac_status=$?
12315 grep -v '^ *+' conftest.er1 >conftest.err
12316 rm -f conftest.er1
12317 cat conftest.err >&5
12318 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12319 (exit $ac_status); } && {
12320 test -z "$ac_c_werror_flag" ||
12321 test ! -s conftest.err
12322 } && test -s conftest.$ac_objext; then
12324 else
12325 $as_echo "$as_me: failed program was:" >&5
12326 sed 's/^/| /' conftest.$ac_ext >&5
12328 ac_cv_type_dev_t=yes
12331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12332 else
12333 $as_echo "$as_me: failed program was:" >&5
12334 sed 's/^/| /' conftest.$ac_ext >&5
12339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12341 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
12342 $as_echo "$ac_cv_type_dev_t" >&6; }
12343 if test $ac_cv_type_dev_t = yes; then
12345 else
12347 cat >>confdefs.h <<_ACEOF
12348 #define dev_t unsigned
12349 _ACEOF
12354 { $as_echo "$as_me:$LINENO: checking for rlim_t" >&5
12355 $as_echo_n "checking for rlim_t... " >&6; }
12356 if eval "test \"`echo '$''{'ac_cv_type_rlim_t'+set}'`\" = set"; then
12357 { $as_echo "$as_me:$LINENO: result: (cached) $ac_cv_type_rlim_t" >&5
12358 $as_echo "(cached) $ac_cv_type_rlim_t" >&6; }
12359 else
12360 cat >conftest.$ac_ext <<_ACEOF
12361 /* confdefs.h. */
12362 _ACEOF
12363 cat confdefs.h >>conftest.$ac_ext
12364 cat >>conftest.$ac_ext <<_ACEOF
12365 /* end confdefs.h. */
12367 #include <sys/types.h>
12368 #if STDC_HEADERS
12369 # include <stdlib.h>
12370 # include <stddef.h>
12371 #endif
12372 #ifdef HAVE_SYS_RESOURCE_H
12373 # include <sys/resource.h>
12374 #endif
12376 _ACEOF
12377 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12378 $EGREP "(^|[^a-zA-Z_0-9])rlim_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
12379 ac_cv_type_rlim_t=yes
12380 else
12381 ac_cv_type_rlim_t=no
12383 rm -f conftest*
12385 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_rlim_t" >&5
12386 $as_echo "$ac_cv_type_rlim_t" >&6; }
12388 if test $ac_cv_type_rlim_t = no; then
12389 cat >> confdefs.h <<\EOF
12390 #define rlim_t unsigned long
12394 { $as_echo "$as_me:$LINENO: checking for stack_t" >&5
12395 $as_echo_n "checking for stack_t... " >&6; }
12396 if eval "test \"`echo '$''{'ac_cv_type_stack_t'+set}'`\" = set"; then
12397 { $as_echo "$as_me:$LINENO: result: (cached) $ac_cv_type_stack_t" >&5
12398 $as_echo "(cached) $ac_cv_type_stack_t" >&6; }
12399 else
12400 cat >conftest.$ac_ext <<_ACEOF
12401 /* confdefs.h. */
12402 _ACEOF
12403 cat confdefs.h >>conftest.$ac_ext
12404 cat >>conftest.$ac_ext <<_ACEOF
12405 /* end confdefs.h. */
12407 #include <sys/types.h>
12408 #if STDC_HEADERS
12409 # include <stdlib.h>
12410 # include <stddef.h>
12411 #endif
12412 #include <signal.h>
12414 _ACEOF
12415 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12416 $EGREP "stack_t" >/dev/null 2>&1; then
12417 ac_cv_type_stack_t=yes
12418 else
12419 ac_cv_type_stack_t=no
12421 rm -f conftest*
12423 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_stack_t" >&5
12424 $as_echo "$ac_cv_type_stack_t" >&6; }
12426 if test $ac_cv_type_stack_t = no; then
12427 cat >> confdefs.h <<\EOF
12428 #define stack_t struct sigaltstack
12432 { $as_echo "$as_me:$LINENO: checking whether stack_t has an ss_base field" >&5
12433 $as_echo_n "checking whether stack_t has an ss_base field... " >&6; }
12434 cat >conftest.$ac_ext <<_ACEOF
12435 /* confdefs.h. */
12436 _ACEOF
12437 cat confdefs.h >>conftest.$ac_ext
12438 cat >>conftest.$ac_ext <<_ACEOF
12439 /* end confdefs.h. */
12441 #include <sys/types.h>
12442 #if STDC_HEADERS
12443 # include <stdlib.h>
12444 # include <stddef.h>
12445 #endif
12446 #include <signal.h>
12447 #include "confdefs.h"
12450 main ()
12452 stack_t sigstk; sigstk.ss_base = 0;
12454 return 0;
12456 _ACEOF
12457 rm -f conftest.$ac_objext
12458 if { (ac_try="$ac_compile"
12459 case "(($ac_try" in
12460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12461 *) ac_try_echo=$ac_try;;
12462 esac
12463 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12464 $as_echo "$ac_try_echo") >&5
12465 (eval "$ac_compile") 2>conftest.er1
12466 ac_status=$?
12467 grep -v '^ *+' conftest.er1 >conftest.err
12468 rm -f conftest.er1
12469 cat conftest.err >&5
12470 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12471 (exit $ac_status); } && {
12472 test -z "$ac_c_werror_flag" ||
12473 test ! -s conftest.err
12474 } && test -s conftest.$ac_objext; then
12475 { $as_echo "$as_me:$LINENO: result: yes" >&5
12476 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
12477 #define HAVE_SS_BASE 1
12478 _ACEOF
12480 else
12481 $as_echo "$as_me: failed program was:" >&5
12482 sed 's/^/| /' conftest.$ac_ext >&5
12484 { $as_echo "$as_me:$LINENO: result: no" >&5
12485 $as_echo "no" >&6; }
12488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12490 olibs="$LIBS"
12491 { $as_echo "$as_me:$LINENO: checking --with-tlib argument" >&5
12492 $as_echo_n "checking --with-tlib argument... " >&6; }
12494 # Check whether --with-tlib was given.
12495 if test "${with_tlib+set}" = set; then
12496 withval=$with_tlib;
12499 if test -n "$with_tlib"; then
12500 { $as_echo "$as_me:$LINENO: result: $with_tlib" >&5
12501 $as_echo "$with_tlib" >&6; }
12502 LIBS="$LIBS -l$with_tlib"
12503 { $as_echo "$as_me:$LINENO: checking for linking with $with_tlib library" >&5
12504 $as_echo_n "checking for linking with $with_tlib library... " >&6; }
12505 cat >conftest.$ac_ext <<_ACEOF
12506 /* confdefs.h. */
12507 _ACEOF
12508 cat confdefs.h >>conftest.$ac_ext
12509 cat >>conftest.$ac_ext <<_ACEOF
12510 /* end confdefs.h. */
12513 main ()
12517 return 0;
12519 _ACEOF
12520 rm -f conftest.$ac_objext conftest$ac_exeext
12521 if { (ac_try="$ac_link"
12522 case "(($ac_try" in
12523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12524 *) ac_try_echo=$ac_try;;
12525 esac
12526 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12527 $as_echo "$ac_try_echo") >&5
12528 (eval "$ac_link") 2>conftest.er1
12529 ac_status=$?
12530 grep -v '^ *+' conftest.er1 >conftest.err
12531 rm -f conftest.er1
12532 cat conftest.err >&5
12533 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12534 (exit $ac_status); } && {
12535 test -z "$ac_c_werror_flag" ||
12536 test ! -s conftest.err
12537 } && test -s conftest$ac_exeext && {
12538 test "$cross_compiling" = yes ||
12539 $as_test_x conftest$ac_exeext
12540 }; then
12541 { $as_echo "$as_me:$LINENO: result: OK" >&5
12542 $as_echo "OK" >&6; }
12543 else
12544 $as_echo "$as_me: failed program was:" >&5
12545 sed 's/^/| /' conftest.$ac_ext >&5
12547 { { $as_echo "$as_me:$LINENO: error: FAILED" >&5
12548 $as_echo "$as_me: error: FAILED" >&2;}
12549 { (exit 1); exit 1; }; }
12552 rm -rf conftest.dSYM
12553 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12554 conftest$ac_exeext conftest.$ac_ext
12555 olibs="$LIBS"
12556 else
12557 { $as_echo "$as_me:$LINENO: result: empty: automatic terminal library selection" >&5
12558 $as_echo "empty: automatic terminal library selection" >&6; }
12559 case "`uname -s 2>/dev/null`" in
12560 OSF1|SCO_SV) tlibs="ncurses curses termlib termcap";;
12561 *) tlibs="ncurses termlib termcap curses";;
12562 esac
12563 for libname in $tlibs; do
12565 as_ac_Lib=`$as_echo "ac_cv_lib_${libname}''_tgetent" | $as_tr_sh`
12566 { $as_echo "$as_me:$LINENO: checking for tgetent in -l${libname}" >&5
12567 $as_echo_n "checking for tgetent in -l${libname}... " >&6; }
12568 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
12569 $as_echo_n "(cached) " >&6
12570 else
12571 ac_check_lib_save_LIBS=$LIBS
12572 LIBS="-l${libname} $LIBS"
12573 cat >conftest.$ac_ext <<_ACEOF
12574 /* confdefs.h. */
12575 _ACEOF
12576 cat confdefs.h >>conftest.$ac_ext
12577 cat >>conftest.$ac_ext <<_ACEOF
12578 /* end confdefs.h. */
12580 /* Override any GCC internal prototype to avoid an error.
12581 Use char because int might match the return type of a GCC
12582 builtin and then its argument prototype would still apply. */
12583 #ifdef __cplusplus
12584 extern "C"
12585 #endif
12586 char tgetent ();
12588 main ()
12590 return tgetent ();
12592 return 0;
12594 _ACEOF
12595 rm -f conftest.$ac_objext conftest$ac_exeext
12596 if { (ac_try="$ac_link"
12597 case "(($ac_try" in
12598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12599 *) ac_try_echo=$ac_try;;
12600 esac
12601 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12602 $as_echo "$ac_try_echo") >&5
12603 (eval "$ac_link") 2>conftest.er1
12604 ac_status=$?
12605 grep -v '^ *+' conftest.er1 >conftest.err
12606 rm -f conftest.er1
12607 cat conftest.err >&5
12608 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12609 (exit $ac_status); } && {
12610 test -z "$ac_c_werror_flag" ||
12611 test ! -s conftest.err
12612 } && test -s conftest$ac_exeext && {
12613 test "$cross_compiling" = yes ||
12614 $as_test_x conftest$ac_exeext
12615 }; then
12616 eval "$as_ac_Lib=yes"
12617 else
12618 $as_echo "$as_me: failed program was:" >&5
12619 sed 's/^/| /' conftest.$ac_ext >&5
12621 eval "$as_ac_Lib=no"
12624 rm -rf conftest.dSYM
12625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12626 conftest$ac_exeext conftest.$ac_ext
12627 LIBS=$ac_check_lib_save_LIBS
12629 ac_res=`eval 'as_val=${'$as_ac_Lib'}
12630 $as_echo "$as_val"'`
12631 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12632 $as_echo "$ac_res" >&6; }
12633 if test `eval 'as_val=${'$as_ac_Lib'}
12634 $as_echo "$as_val"'` = yes; then
12635 cat >>confdefs.h <<_ACEOF
12636 #define `$as_echo "HAVE_LIB${libname}" | $as_tr_cpp` 1
12637 _ACEOF
12639 LIBS="-l${libname} $LIBS"
12643 if test "x$olibs" != "x$LIBS"; then
12644 if test "$cross_compiling" = yes; then
12645 res="FAIL"
12646 else
12647 cat >conftest.$ac_ext <<_ACEOF
12648 /* confdefs.h. */
12649 _ACEOF
12650 cat confdefs.h >>conftest.$ac_ext
12651 cat >>conftest.$ac_ext <<_ACEOF
12652 /* end confdefs.h. */
12654 #ifdef HAVE_TERMCAP_H
12655 # include <termcap.h>
12656 #endif
12657 #if STDC_HEADERS
12658 # include <stdlib.h>
12659 # include <stddef.h>
12660 #endif
12661 main() {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(0); }
12662 _ACEOF
12663 rm -f conftest$ac_exeext
12664 if { (ac_try="$ac_link"
12665 case "(($ac_try" in
12666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12667 *) ac_try_echo=$ac_try;;
12668 esac
12669 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12670 $as_echo "$ac_try_echo") >&5
12671 (eval "$ac_link") 2>&5
12672 ac_status=$?
12673 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12674 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12675 { (case "(($ac_try" in
12676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12677 *) ac_try_echo=$ac_try;;
12678 esac
12679 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12680 $as_echo "$ac_try_echo") >&5
12681 (eval "$ac_try") 2>&5
12682 ac_status=$?
12683 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12684 (exit $ac_status); }; }; then
12685 res="OK"
12686 else
12687 $as_echo "$as_me: program exited with status $ac_status" >&5
12688 $as_echo "$as_me: failed program was:" >&5
12689 sed 's/^/| /' conftest.$ac_ext >&5
12691 ( exit $ac_status )
12692 res="FAIL"
12694 rm -rf conftest.dSYM
12695 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12699 if test "$res" = "OK"; then
12700 break
12702 { $as_echo "$as_me:$LINENO: result: $libname library is not usable" >&5
12703 $as_echo "$libname library is not usable" >&6; }
12704 LIBS="$olibs"
12706 done
12707 if test "x$olibs" = "x$LIBS"; then
12708 { $as_echo "$as_me:$LINENO: result: no terminal library found" >&5
12709 $as_echo "no terminal library found" >&6; }
12713 if test "x$olibs" = "x$LIBS"; then
12714 { $as_echo "$as_me:$LINENO: checking for tgetent()" >&5
12715 $as_echo_n "checking for tgetent()... " >&6; }
12716 cat >conftest.$ac_ext <<_ACEOF
12717 /* confdefs.h. */
12718 _ACEOF
12719 cat confdefs.h >>conftest.$ac_ext
12720 cat >>conftest.$ac_ext <<_ACEOF
12721 /* end confdefs.h. */
12724 main ()
12726 char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist");
12728 return 0;
12730 _ACEOF
12731 rm -f conftest.$ac_objext conftest$ac_exeext
12732 if { (ac_try="$ac_link"
12733 case "(($ac_try" in
12734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12735 *) ac_try_echo=$ac_try;;
12736 esac
12737 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12738 $as_echo "$ac_try_echo") >&5
12739 (eval "$ac_link") 2>conftest.er1
12740 ac_status=$?
12741 grep -v '^ *+' conftest.er1 >conftest.err
12742 rm -f conftest.er1
12743 cat conftest.err >&5
12744 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12745 (exit $ac_status); } && {
12746 test -z "$ac_c_werror_flag" ||
12747 test ! -s conftest.err
12748 } && test -s conftest$ac_exeext && {
12749 test "$cross_compiling" = yes ||
12750 $as_test_x conftest$ac_exeext
12751 }; then
12752 { $as_echo "$as_me:$LINENO: result: yes" >&5
12753 $as_echo "yes" >&6; }
12754 else
12755 $as_echo "$as_me: failed program was:" >&5
12756 sed 's/^/| /' conftest.$ac_ext >&5
12758 { { $as_echo "$as_me:$LINENO: error: NOT FOUND!
12759 You need to install a terminal library; for example ncurses.
12760 Or specify the name of the library with --with-tlib." >&5
12761 $as_echo "$as_me: error: NOT FOUND!
12762 You need to install a terminal library; for example ncurses.
12763 Or specify the name of the library with --with-tlib." >&2;}
12764 { (exit 1); exit 1; }; }
12767 rm -rf conftest.dSYM
12768 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12769 conftest$ac_exeext conftest.$ac_ext
12772 { $as_echo "$as_me:$LINENO: checking whether we talk terminfo" >&5
12773 $as_echo_n "checking whether we talk terminfo... " >&6; }
12774 if test "${vim_cv_terminfo+set}" = set; then
12775 $as_echo_n "(cached) " >&6
12776 else
12778 if test "$cross_compiling" = yes; then
12780 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_terminfo'" >&5
12781 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_terminfo'" >&2;}
12782 { (exit 1); exit 1; }; }
12784 else
12785 cat >conftest.$ac_ext <<_ACEOF
12787 #include "confdefs.h"
12788 #ifdef HAVE_TERMCAP_H
12789 # include <termcap.h>
12790 #endif
12791 #ifdef HAVE_STRING_H
12792 # include <string.h>
12793 #endif
12794 #if STDC_HEADERS
12795 # include <stdlib.h>
12796 # include <stddef.h>
12797 #endif
12798 main()
12799 {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(!strcmp(s==0 ? "" : s, "1")); }
12801 _ACEOF
12802 rm -f conftest$ac_exeext
12803 if { (ac_try="$ac_link"
12804 case "(($ac_try" in
12805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12806 *) ac_try_echo=$ac_try;;
12807 esac
12808 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12809 $as_echo "$ac_try_echo") >&5
12810 (eval "$ac_link") 2>&5
12811 ac_status=$?
12812 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12813 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12814 { (case "(($ac_try" in
12815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12816 *) ac_try_echo=$ac_try;;
12817 esac
12818 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12819 $as_echo "$ac_try_echo") >&5
12820 (eval "$ac_try") 2>&5
12821 ac_status=$?
12822 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12823 (exit $ac_status); }; }; then
12825 vim_cv_terminfo=no
12827 else
12828 $as_echo "$as_me: program exited with status $ac_status" >&5
12829 $as_echo "$as_me: failed program was:" >&5
12830 sed 's/^/| /' conftest.$ac_ext >&5
12832 ( exit $ac_status )
12834 vim_cv_terminfo=yes
12837 rm -rf conftest.dSYM
12838 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12844 { $as_echo "$as_me:$LINENO: result: $vim_cv_terminfo" >&5
12845 $as_echo "$vim_cv_terminfo" >&6; }
12847 if test "x$vim_cv_terminfo" = "xyes" ; then
12848 cat >>confdefs.h <<\_ACEOF
12849 #define TERMINFO 1
12850 _ACEOF
12854 if test "x$olibs" != "x$LIBS"; then
12855 { $as_echo "$as_me:$LINENO: checking what tgetent() returns for an unknown terminal" >&5
12856 $as_echo_n "checking what tgetent() returns for an unknown terminal... " >&6; }
12857 if test "${vim_cv_tgent+set}" = set; then
12858 $as_echo_n "(cached) " >&6
12859 else
12861 if test "$cross_compiling" = yes; then
12863 { { $as_echo "$as_me:$LINENO: error: failed to compile test program." >&5
12864 $as_echo "$as_me: error: failed to compile test program." >&2;}
12865 { (exit 1); exit 1; }; }
12867 else
12868 cat >conftest.$ac_ext <<_ACEOF
12870 #include "confdefs.h"
12871 #ifdef HAVE_TERMCAP_H
12872 # include <termcap.h>
12873 #endif
12874 #if STDC_HEADERS
12875 # include <stdlib.h>
12876 # include <stddef.h>
12877 #endif
12878 main()
12879 {char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); exit(res != 0); }
12881 _ACEOF
12882 rm -f conftest$ac_exeext
12883 if { (ac_try="$ac_link"
12884 case "(($ac_try" in
12885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12886 *) ac_try_echo=$ac_try;;
12887 esac
12888 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12889 $as_echo "$ac_try_echo") >&5
12890 (eval "$ac_link") 2>&5
12891 ac_status=$?
12892 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12893 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12894 { (case "(($ac_try" in
12895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12896 *) ac_try_echo=$ac_try;;
12897 esac
12898 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12899 $as_echo "$ac_try_echo") >&5
12900 (eval "$ac_try") 2>&5
12901 ac_status=$?
12902 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12903 (exit $ac_status); }; }; then
12905 vim_cv_tgent=zero
12907 else
12908 $as_echo "$as_me: program exited with status $ac_status" >&5
12909 $as_echo "$as_me: failed program was:" >&5
12910 sed 's/^/| /' conftest.$ac_ext >&5
12912 ( exit $ac_status )
12914 vim_cv_tgent=non-zero
12917 rm -rf conftest.dSYM
12918 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12924 { $as_echo "$as_me:$LINENO: result: $vim_cv_tgent" >&5
12925 $as_echo "$vim_cv_tgent" >&6; }
12927 if test "x$vim_cv_tgent" = "xzero" ; then
12928 cat >>confdefs.h <<\_ACEOF
12929 #define TGETENT_ZERO_ERR 0
12930 _ACEOF
12935 { $as_echo "$as_me:$LINENO: checking whether termcap.h contains ospeed" >&5
12936 $as_echo_n "checking whether termcap.h contains ospeed... " >&6; }
12937 cat >conftest.$ac_ext <<_ACEOF
12938 /* confdefs.h. */
12939 _ACEOF
12940 cat confdefs.h >>conftest.$ac_ext
12941 cat >>conftest.$ac_ext <<_ACEOF
12942 /* end confdefs.h. */
12944 #ifdef HAVE_TERMCAP_H
12945 # include <termcap.h>
12946 #endif
12949 main ()
12951 ospeed = 20000
12953 return 0;
12955 _ACEOF
12956 rm -f conftest.$ac_objext conftest$ac_exeext
12957 if { (ac_try="$ac_link"
12958 case "(($ac_try" in
12959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12960 *) ac_try_echo=$ac_try;;
12961 esac
12962 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12963 $as_echo "$ac_try_echo") >&5
12964 (eval "$ac_link") 2>conftest.er1
12965 ac_status=$?
12966 grep -v '^ *+' conftest.er1 >conftest.err
12967 rm -f conftest.er1
12968 cat conftest.err >&5
12969 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12970 (exit $ac_status); } && {
12971 test -z "$ac_c_werror_flag" ||
12972 test ! -s conftest.err
12973 } && test -s conftest$ac_exeext && {
12974 test "$cross_compiling" = yes ||
12975 $as_test_x conftest$ac_exeext
12976 }; then
12977 { $as_echo "$as_me:$LINENO: result: yes" >&5
12978 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
12979 #define HAVE_OSPEED 1
12980 _ACEOF
12982 else
12983 $as_echo "$as_me: failed program was:" >&5
12984 sed 's/^/| /' conftest.$ac_ext >&5
12986 { $as_echo "$as_me:$LINENO: result: no" >&5
12987 $as_echo "no" >&6; }
12988 { $as_echo "$as_me:$LINENO: checking whether ospeed can be extern" >&5
12989 $as_echo_n "checking whether ospeed can be extern... " >&6; }
12990 cat >conftest.$ac_ext <<_ACEOF
12991 /* confdefs.h. */
12992 _ACEOF
12993 cat confdefs.h >>conftest.$ac_ext
12994 cat >>conftest.$ac_ext <<_ACEOF
12995 /* end confdefs.h. */
12997 #ifdef HAVE_TERMCAP_H
12998 # include <termcap.h>
12999 #endif
13000 extern short ospeed;
13003 main ()
13005 ospeed = 20000
13007 return 0;
13009 _ACEOF
13010 rm -f conftest.$ac_objext conftest$ac_exeext
13011 if { (ac_try="$ac_link"
13012 case "(($ac_try" in
13013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13014 *) ac_try_echo=$ac_try;;
13015 esac
13016 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13017 $as_echo "$ac_try_echo") >&5
13018 (eval "$ac_link") 2>conftest.er1
13019 ac_status=$?
13020 grep -v '^ *+' conftest.er1 >conftest.err
13021 rm -f conftest.er1
13022 cat conftest.err >&5
13023 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13024 (exit $ac_status); } && {
13025 test -z "$ac_c_werror_flag" ||
13026 test ! -s conftest.err
13027 } && test -s conftest$ac_exeext && {
13028 test "$cross_compiling" = yes ||
13029 $as_test_x conftest$ac_exeext
13030 }; then
13031 { $as_echo "$as_me:$LINENO: result: yes" >&5
13032 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13033 #define OSPEED_EXTERN 1
13034 _ACEOF
13036 else
13037 $as_echo "$as_me: failed program was:" >&5
13038 sed 's/^/| /' conftest.$ac_ext >&5
13040 { $as_echo "$as_me:$LINENO: result: no" >&5
13041 $as_echo "no" >&6; }
13044 rm -rf conftest.dSYM
13045 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13046 conftest$ac_exeext conftest.$ac_ext
13050 rm -rf conftest.dSYM
13051 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13052 conftest$ac_exeext conftest.$ac_ext
13054 { $as_echo "$as_me:$LINENO: checking whether termcap.h contains UP, BC and PC" >&5
13055 $as_echo_n "checking whether termcap.h contains UP, BC and PC... " >&6; }
13056 cat >conftest.$ac_ext <<_ACEOF
13057 /* confdefs.h. */
13058 _ACEOF
13059 cat confdefs.h >>conftest.$ac_ext
13060 cat >>conftest.$ac_ext <<_ACEOF
13061 /* end confdefs.h. */
13063 #ifdef HAVE_TERMCAP_H
13064 # include <termcap.h>
13065 #endif
13068 main ()
13070 if (UP == 0 && BC == 0) PC = 1
13072 return 0;
13074 _ACEOF
13075 rm -f conftest.$ac_objext conftest$ac_exeext
13076 if { (ac_try="$ac_link"
13077 case "(($ac_try" in
13078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13079 *) ac_try_echo=$ac_try;;
13080 esac
13081 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13082 $as_echo "$ac_try_echo") >&5
13083 (eval "$ac_link") 2>conftest.er1
13084 ac_status=$?
13085 grep -v '^ *+' conftest.er1 >conftest.err
13086 rm -f conftest.er1
13087 cat conftest.err >&5
13088 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13089 (exit $ac_status); } && {
13090 test -z "$ac_c_werror_flag" ||
13091 test ! -s conftest.err
13092 } && test -s conftest$ac_exeext && {
13093 test "$cross_compiling" = yes ||
13094 $as_test_x conftest$ac_exeext
13095 }; then
13096 { $as_echo "$as_me:$LINENO: result: yes" >&5
13097 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13098 #define HAVE_UP_BC_PC 1
13099 _ACEOF
13101 else
13102 $as_echo "$as_me: failed program was:" >&5
13103 sed 's/^/| /' conftest.$ac_ext >&5
13105 { $as_echo "$as_me:$LINENO: result: no" >&5
13106 $as_echo "no" >&6; }
13107 { $as_echo "$as_me:$LINENO: checking whether UP, BC and PC can be extern" >&5
13108 $as_echo_n "checking whether UP, BC and PC can be extern... " >&6; }
13109 cat >conftest.$ac_ext <<_ACEOF
13110 /* confdefs.h. */
13111 _ACEOF
13112 cat confdefs.h >>conftest.$ac_ext
13113 cat >>conftest.$ac_ext <<_ACEOF
13114 /* end confdefs.h. */
13116 #ifdef HAVE_TERMCAP_H
13117 # include <termcap.h>
13118 #endif
13119 extern char *UP, *BC, PC;
13122 main ()
13124 if (UP == 0 && BC == 0) PC = 1
13126 return 0;
13128 _ACEOF
13129 rm -f conftest.$ac_objext conftest$ac_exeext
13130 if { (ac_try="$ac_link"
13131 case "(($ac_try" in
13132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13133 *) ac_try_echo=$ac_try;;
13134 esac
13135 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13136 $as_echo "$ac_try_echo") >&5
13137 (eval "$ac_link") 2>conftest.er1
13138 ac_status=$?
13139 grep -v '^ *+' conftest.er1 >conftest.err
13140 rm -f conftest.er1
13141 cat conftest.err >&5
13142 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13143 (exit $ac_status); } && {
13144 test -z "$ac_c_werror_flag" ||
13145 test ! -s conftest.err
13146 } && test -s conftest$ac_exeext && {
13147 test "$cross_compiling" = yes ||
13148 $as_test_x conftest$ac_exeext
13149 }; then
13150 { $as_echo "$as_me:$LINENO: result: yes" >&5
13151 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13152 #define UP_BC_PC_EXTERN 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 -rf conftest.dSYM
13164 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13165 conftest$ac_exeext conftest.$ac_ext
13169 rm -rf conftest.dSYM
13170 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13171 conftest$ac_exeext conftest.$ac_ext
13173 { $as_echo "$as_me:$LINENO: checking whether tputs() uses outfuntype" >&5
13174 $as_echo_n "checking whether tputs() uses outfuntype... " >&6; }
13175 cat >conftest.$ac_ext <<_ACEOF
13176 /* confdefs.h. */
13177 _ACEOF
13178 cat confdefs.h >>conftest.$ac_ext
13179 cat >>conftest.$ac_ext <<_ACEOF
13180 /* end confdefs.h. */
13182 #ifdef HAVE_TERMCAP_H
13183 # include <termcap.h>
13184 #endif
13187 main ()
13189 extern int xx(); tputs("test", 1, (outfuntype)xx)
13191 return 0;
13193 _ACEOF
13194 rm -f conftest.$ac_objext
13195 if { (ac_try="$ac_compile"
13196 case "(($ac_try" in
13197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13198 *) ac_try_echo=$ac_try;;
13199 esac
13200 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13201 $as_echo "$ac_try_echo") >&5
13202 (eval "$ac_compile") 2>conftest.er1
13203 ac_status=$?
13204 grep -v '^ *+' conftest.er1 >conftest.err
13205 rm -f conftest.er1
13206 cat conftest.err >&5
13207 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13208 (exit $ac_status); } && {
13209 test -z "$ac_c_werror_flag" ||
13210 test ! -s conftest.err
13211 } && test -s conftest.$ac_objext; then
13212 { $as_echo "$as_me:$LINENO: result: yes" >&5
13213 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13214 #define HAVE_OUTFUNTYPE 1
13215 _ACEOF
13217 else
13218 $as_echo "$as_me: failed program was:" >&5
13219 sed 's/^/| /' conftest.$ac_ext >&5
13221 { $as_echo "$as_me:$LINENO: result: no" >&5
13222 $as_echo "no" >&6; }
13225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13227 { $as_echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
13228 $as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; }
13229 cat >conftest.$ac_ext <<_ACEOF
13230 /* confdefs.h. */
13231 _ACEOF
13232 cat confdefs.h >>conftest.$ac_ext
13233 cat >>conftest.$ac_ext <<_ACEOF
13234 /* end confdefs.h. */
13236 #include <sys/types.h>
13237 #include <sys/time.h>
13238 #include <sys/select.h>
13240 main ()
13244 return 0;
13246 _ACEOF
13247 rm -f conftest.$ac_objext
13248 if { (ac_try="$ac_compile"
13249 case "(($ac_try" in
13250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13251 *) ac_try_echo=$ac_try;;
13252 esac
13253 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13254 $as_echo "$ac_try_echo") >&5
13255 (eval "$ac_compile") 2>conftest.er1
13256 ac_status=$?
13257 grep -v '^ *+' conftest.er1 >conftest.err
13258 rm -f conftest.er1
13259 cat conftest.err >&5
13260 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13261 (exit $ac_status); } && {
13262 test -z "$ac_c_werror_flag" ||
13263 test ! -s conftest.err
13264 } && test -s conftest.$ac_objext; then
13265 { $as_echo "$as_me:$LINENO: result: yes" >&5
13266 $as_echo "yes" >&6; }
13267 cat >>confdefs.h <<\_ACEOF
13268 #define SYS_SELECT_WITH_SYS_TIME 1
13269 _ACEOF
13271 else
13272 $as_echo "$as_me: failed program was:" >&5
13273 sed 's/^/| /' conftest.$ac_ext >&5
13275 { $as_echo "$as_me:$LINENO: result: no" >&5
13276 $as_echo "no" >&6; }
13279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13282 { $as_echo "$as_me:$LINENO: checking for /dev/ptc" >&5
13283 $as_echo_n "checking for /dev/ptc... " >&6; }
13284 if test -r /dev/ptc; then
13285 cat >>confdefs.h <<\_ACEOF
13286 #define HAVE_DEV_PTC 1
13287 _ACEOF
13289 { $as_echo "$as_me:$LINENO: result: yes" >&5
13290 $as_echo "yes" >&6; }
13291 else
13292 { $as_echo "$as_me:$LINENO: result: no" >&5
13293 $as_echo "no" >&6; }
13296 { $as_echo "$as_me:$LINENO: checking for SVR4 ptys" >&5
13297 $as_echo_n "checking for SVR4 ptys... " >&6; }
13298 if test -c /dev/ptmx ; then
13299 cat >conftest.$ac_ext <<_ACEOF
13300 /* confdefs.h. */
13301 _ACEOF
13302 cat confdefs.h >>conftest.$ac_ext
13303 cat >>conftest.$ac_ext <<_ACEOF
13304 /* end confdefs.h. */
13307 main ()
13309 ptsname(0);grantpt(0);unlockpt(0);
13311 return 0;
13313 _ACEOF
13314 rm -f conftest.$ac_objext conftest$ac_exeext
13315 if { (ac_try="$ac_link"
13316 case "(($ac_try" in
13317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13318 *) ac_try_echo=$ac_try;;
13319 esac
13320 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13321 $as_echo "$ac_try_echo") >&5
13322 (eval "$ac_link") 2>conftest.er1
13323 ac_status=$?
13324 grep -v '^ *+' conftest.er1 >conftest.err
13325 rm -f conftest.er1
13326 cat conftest.err >&5
13327 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13328 (exit $ac_status); } && {
13329 test -z "$ac_c_werror_flag" ||
13330 test ! -s conftest.err
13331 } && test -s conftest$ac_exeext && {
13332 test "$cross_compiling" = yes ||
13333 $as_test_x conftest$ac_exeext
13334 }; then
13335 { $as_echo "$as_me:$LINENO: result: yes" >&5
13336 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13337 #define HAVE_SVR4_PTYS 1
13338 _ACEOF
13340 else
13341 $as_echo "$as_me: failed program was:" >&5
13342 sed 's/^/| /' conftest.$ac_ext >&5
13344 { $as_echo "$as_me:$LINENO: result: no" >&5
13345 $as_echo "no" >&6; }
13348 rm -rf conftest.dSYM
13349 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13350 conftest$ac_exeext conftest.$ac_ext
13351 else
13352 { $as_echo "$as_me:$LINENO: result: no" >&5
13353 $as_echo "no" >&6; }
13356 { $as_echo "$as_me:$LINENO: checking for ptyranges" >&5
13357 $as_echo_n "checking for ptyranges... " >&6; }
13358 if test -d /dev/ptym ; then
13359 pdir='/dev/ptym'
13360 else
13361 pdir='/dev'
13363 cat >conftest.$ac_ext <<_ACEOF
13364 /* confdefs.h. */
13365 _ACEOF
13366 cat confdefs.h >>conftest.$ac_ext
13367 cat >>conftest.$ac_ext <<_ACEOF
13368 /* end confdefs.h. */
13369 #ifdef M_UNIX
13370 yes;
13371 #endif
13373 _ACEOF
13374 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13375 $EGREP "yes" >/dev/null 2>&1; then
13376 ptys=`echo /dev/ptyp??`
13377 else
13378 ptys=`echo $pdir/pty??`
13380 rm -f conftest*
13382 if test "$ptys" != "$pdir/pty??" ; then
13383 p0=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'`
13384 p1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'`
13385 cat >>confdefs.h <<_ACEOF
13386 #define PTYRANGE0 "$p0"
13387 _ACEOF
13389 cat >>confdefs.h <<_ACEOF
13390 #define PTYRANGE1 "$p1"
13391 _ACEOF
13393 { $as_echo "$as_me:$LINENO: result: $p0 / $p1" >&5
13394 $as_echo "$p0 / $p1" >&6; }
13395 else
13396 { $as_echo "$as_me:$LINENO: result: don't know" >&5
13397 $as_echo "don't know" >&6; }
13400 rm -f conftest_grp
13401 { $as_echo "$as_me:$LINENO: checking default tty permissions/group" >&5
13402 $as_echo_n "checking default tty permissions/group... " >&6; }
13403 if test "${vim_cv_tty_group+set}" = set; then
13404 $as_echo_n "(cached) " >&6
13405 else
13407 if test "$cross_compiling" = yes; then
13409 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_tty_group' and 'vim_cv_tty_mode'" >&5
13410 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_tty_group' and 'vim_cv_tty_mode'" >&2;}
13411 { (exit 1); exit 1; }; }
13413 else
13414 cat >conftest.$ac_ext <<_ACEOF
13416 #include "confdefs.h"
13417 #include <sys/types.h>
13418 #if STDC_HEADERS
13419 # include <stdlib.h>
13420 # include <stddef.h>
13421 #endif
13422 #ifdef HAVE_UNISTD_H
13423 #include <unistd.h>
13424 #endif
13425 #include <sys/stat.h>
13426 #include <stdio.h>
13427 main()
13429 struct stat sb;
13430 char *x,*ttyname();
13431 int om, m;
13432 FILE *fp;
13434 if (!(x = ttyname(0))) exit(1);
13435 if (stat(x, &sb)) exit(1);
13436 om = sb.st_mode;
13437 if (om & 002) exit(0);
13438 m = system("mesg y");
13439 if (m == -1 || m == 127) exit(1);
13440 if (stat(x, &sb)) exit(1);
13441 m = sb.st_mode;
13442 if (chmod(x, om)) exit(1);
13443 if (m & 002) exit(0);
13444 if (sb.st_gid == getgid()) exit(1);
13445 if (!(fp=fopen("conftest_grp", "w")))
13446 exit(1);
13447 fprintf(fp, "%d\n", sb.st_gid);
13448 fclose(fp);
13449 exit(0);
13452 _ACEOF
13453 rm -f conftest$ac_exeext
13454 if { (ac_try="$ac_link"
13455 case "(($ac_try" in
13456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13457 *) ac_try_echo=$ac_try;;
13458 esac
13459 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13460 $as_echo "$ac_try_echo") >&5
13461 (eval "$ac_link") 2>&5
13462 ac_status=$?
13463 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13464 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13465 { (case "(($ac_try" in
13466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13467 *) ac_try_echo=$ac_try;;
13468 esac
13469 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13470 $as_echo "$ac_try_echo") >&5
13471 (eval "$ac_try") 2>&5
13472 ac_status=$?
13473 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13474 (exit $ac_status); }; }; then
13476 if test -f conftest_grp; then
13477 vim_cv_tty_group=`cat conftest_grp`
13478 if test "x$vim_cv_tty_mode" = "x" ; then
13479 vim_cv_tty_mode=0620
13481 { $as_echo "$as_me:$LINENO: result: pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&5
13482 $as_echo "pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&6; }
13483 else
13484 vim_cv_tty_group=world
13485 { $as_echo "$as_me:$LINENO: result: ptys are world accessable" >&5
13486 $as_echo "ptys are world accessable" >&6; }
13489 else
13490 $as_echo "$as_me: program exited with status $ac_status" >&5
13491 $as_echo "$as_me: failed program was:" >&5
13492 sed 's/^/| /' conftest.$ac_ext >&5
13494 ( exit $ac_status )
13496 vim_cv_tty_group=world
13497 { $as_echo "$as_me:$LINENO: result: can't determine - assume ptys are world accessable" >&5
13498 $as_echo "can't determine - assume ptys are world accessable" >&6; }
13501 rm -rf conftest.dSYM
13502 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13508 { $as_echo "$as_me:$LINENO: result: $vim_cv_tty_group" >&5
13509 $as_echo "$vim_cv_tty_group" >&6; }
13510 rm -f conftest_grp
13512 if test "x$vim_cv_tty_group" != "xworld" ; then
13513 cat >>confdefs.h <<_ACEOF
13514 #define PTYGROUP $vim_cv_tty_group
13515 _ACEOF
13517 if test "x$vim_cv_tty_mode" = "x" ; then
13518 { { $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
13519 $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;}
13520 { (exit 1); exit 1; }; }
13521 else
13522 cat >>confdefs.h <<\_ACEOF
13523 #define PTYMODE 0620
13524 _ACEOF
13530 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13531 $as_echo_n "checking return type of signal handlers... " >&6; }
13532 if test "${ac_cv_type_signal+set}" = set; then
13533 $as_echo_n "(cached) " >&6
13534 else
13535 cat >conftest.$ac_ext <<_ACEOF
13536 /* confdefs.h. */
13537 _ACEOF
13538 cat confdefs.h >>conftest.$ac_ext
13539 cat >>conftest.$ac_ext <<_ACEOF
13540 /* end confdefs.h. */
13541 #include <sys/types.h>
13542 #include <signal.h>
13545 main ()
13547 return *(signal (0, 0)) (0) == 1;
13549 return 0;
13551 _ACEOF
13552 rm -f conftest.$ac_objext
13553 if { (ac_try="$ac_compile"
13554 case "(($ac_try" in
13555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13556 *) ac_try_echo=$ac_try;;
13557 esac
13558 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13559 $as_echo "$ac_try_echo") >&5
13560 (eval "$ac_compile") 2>conftest.er1
13561 ac_status=$?
13562 grep -v '^ *+' conftest.er1 >conftest.err
13563 rm -f conftest.er1
13564 cat conftest.err >&5
13565 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13566 (exit $ac_status); } && {
13567 test -z "$ac_c_werror_flag" ||
13568 test ! -s conftest.err
13569 } && test -s conftest.$ac_objext; then
13570 ac_cv_type_signal=int
13571 else
13572 $as_echo "$as_me: failed program was:" >&5
13573 sed 's/^/| /' conftest.$ac_ext >&5
13575 ac_cv_type_signal=void
13578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13580 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
13581 $as_echo "$ac_cv_type_signal" >&6; }
13583 cat >>confdefs.h <<_ACEOF
13584 #define RETSIGTYPE $ac_cv_type_signal
13585 _ACEOF
13589 if test $ac_cv_type_signal = void; then
13590 cat >>confdefs.h <<\_ACEOF
13591 #define SIGRETURN return
13592 _ACEOF
13594 else
13595 cat >>confdefs.h <<\_ACEOF
13596 #define SIGRETURN return 0
13597 _ACEOF
13601 { $as_echo "$as_me:$LINENO: checking for struct sigcontext" >&5
13602 $as_echo_n "checking for struct sigcontext... " >&6; }
13603 cat >conftest.$ac_ext <<_ACEOF
13604 /* confdefs.h. */
13605 _ACEOF
13606 cat confdefs.h >>conftest.$ac_ext
13607 cat >>conftest.$ac_ext <<_ACEOF
13608 /* end confdefs.h. */
13610 #include <signal.h>
13611 test_sig()
13613 struct sigcontext *scont;
13614 scont = (struct sigcontext *)0;
13615 return 1;
13618 main ()
13622 return 0;
13624 _ACEOF
13625 rm -f conftest.$ac_objext
13626 if { (ac_try="$ac_compile"
13627 case "(($ac_try" in
13628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13629 *) ac_try_echo=$ac_try;;
13630 esac
13631 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13632 $as_echo "$ac_try_echo") >&5
13633 (eval "$ac_compile") 2>conftest.er1
13634 ac_status=$?
13635 grep -v '^ *+' conftest.er1 >conftest.err
13636 rm -f conftest.er1
13637 cat conftest.err >&5
13638 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13639 (exit $ac_status); } && {
13640 test -z "$ac_c_werror_flag" ||
13641 test ! -s conftest.err
13642 } && test -s conftest.$ac_objext; then
13643 { $as_echo "$as_me:$LINENO: result: yes" >&5
13644 $as_echo "yes" >&6; }
13645 cat >>confdefs.h <<\_ACEOF
13646 #define HAVE_SIGCONTEXT 1
13647 _ACEOF
13649 else
13650 $as_echo "$as_me: failed program was:" >&5
13651 sed 's/^/| /' conftest.$ac_ext >&5
13653 { $as_echo "$as_me:$LINENO: result: no" >&5
13654 $as_echo "no" >&6; }
13657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13659 { $as_echo "$as_me:$LINENO: checking getcwd implementation is broken" >&5
13660 $as_echo_n "checking getcwd implementation is broken... " >&6; }
13661 if test "${vim_cv_getcwd_broken+set}" = set; then
13662 $as_echo_n "(cached) " >&6
13663 else
13665 if test "$cross_compiling" = yes; then
13667 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_getcwd_broken'" >&5
13668 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_getcwd_broken'" >&2;}
13669 { (exit 1); exit 1; }; }
13671 else
13672 cat >conftest.$ac_ext <<_ACEOF
13674 #include "confdefs.h"
13675 #ifdef HAVE_UNISTD_H
13676 #include <unistd.h>
13677 #endif
13678 char *dagger[] = { "IFS=pwd", 0 };
13679 main()
13681 char buffer[500];
13682 extern char **environ;
13683 environ = dagger;
13684 return getcwd(buffer, 500) ? 0 : 1;
13687 _ACEOF
13688 rm -f conftest$ac_exeext
13689 if { (ac_try="$ac_link"
13690 case "(($ac_try" in
13691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13692 *) ac_try_echo=$ac_try;;
13693 esac
13694 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13695 $as_echo "$ac_try_echo") >&5
13696 (eval "$ac_link") 2>&5
13697 ac_status=$?
13698 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13699 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13700 { (case "(($ac_try" in
13701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13702 *) ac_try_echo=$ac_try;;
13703 esac
13704 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13705 $as_echo "$ac_try_echo") >&5
13706 (eval "$ac_try") 2>&5
13707 ac_status=$?
13708 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13709 (exit $ac_status); }; }; then
13711 vim_cv_getcwd_broken=no
13713 else
13714 $as_echo "$as_me: program exited with status $ac_status" >&5
13715 $as_echo "$as_me: failed program was:" >&5
13716 sed 's/^/| /' conftest.$ac_ext >&5
13718 ( exit $ac_status )
13720 vim_cv_getcwd_broken=yes
13723 rm -rf conftest.dSYM
13724 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13730 { $as_echo "$as_me:$LINENO: result: $vim_cv_getcwd_broken" >&5
13731 $as_echo "$vim_cv_getcwd_broken" >&6; }
13733 if test "x$vim_cv_getcwd_broken" = "xyes" ; then
13734 cat >>confdefs.h <<\_ACEOF
13735 #define BAD_GETCWD 1
13736 _ACEOF
13786 for ac_func in bcmp fchdir fchown fseeko fsync ftello getcwd getpseudotty \
13787 getpwnam getpwuid getrlimit gettimeofday getwd lstat memcmp \
13788 memset nanosleep opendir putenv qsort readlink select setenv \
13789 setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \
13790 sigvec strcasecmp strerror strftime stricmp strncasecmp \
13791 strnicmp strpbrk strtol tgetent towlower towupper iswupper \
13792 usleep utime utimes
13794 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13795 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13796 $as_echo_n "checking for $ac_func... " >&6; }
13797 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13798 $as_echo_n "(cached) " >&6
13799 else
13800 cat >conftest.$ac_ext <<_ACEOF
13801 /* confdefs.h. */
13802 _ACEOF
13803 cat confdefs.h >>conftest.$ac_ext
13804 cat >>conftest.$ac_ext <<_ACEOF
13805 /* end confdefs.h. */
13806 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13807 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13808 #define $ac_func innocuous_$ac_func
13810 /* System header to define __stub macros and hopefully few prototypes,
13811 which can conflict with char $ac_func (); below.
13812 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13813 <limits.h> exists even on freestanding compilers. */
13815 #ifdef __STDC__
13816 # include <limits.h>
13817 #else
13818 # include <assert.h>
13819 #endif
13821 #undef $ac_func
13823 /* Override any GCC internal prototype to avoid an error.
13824 Use char because int might match the return type of a GCC
13825 builtin and then its argument prototype would still apply. */
13826 #ifdef __cplusplus
13827 extern "C"
13828 #endif
13829 char $ac_func ();
13830 /* The GNU C library defines this for functions which it implements
13831 to always fail with ENOSYS. Some functions are actually named
13832 something starting with __ and the normal name is an alias. */
13833 #if defined __stub_$ac_func || defined __stub___$ac_func
13834 choke me
13835 #endif
13838 main ()
13840 return $ac_func ();
13842 return 0;
13844 _ACEOF
13845 rm -f conftest.$ac_objext conftest$ac_exeext
13846 if { (ac_try="$ac_link"
13847 case "(($ac_try" in
13848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13849 *) ac_try_echo=$ac_try;;
13850 esac
13851 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13852 $as_echo "$ac_try_echo") >&5
13853 (eval "$ac_link") 2>conftest.er1
13854 ac_status=$?
13855 grep -v '^ *+' conftest.er1 >conftest.err
13856 rm -f conftest.er1
13857 cat conftest.err >&5
13858 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13859 (exit $ac_status); } && {
13860 test -z "$ac_c_werror_flag" ||
13861 test ! -s conftest.err
13862 } && test -s conftest$ac_exeext && {
13863 test "$cross_compiling" = yes ||
13864 $as_test_x conftest$ac_exeext
13865 }; then
13866 eval "$as_ac_var=yes"
13867 else
13868 $as_echo "$as_me: failed program was:" >&5
13869 sed 's/^/| /' conftest.$ac_ext >&5
13871 eval "$as_ac_var=no"
13874 rm -rf conftest.dSYM
13875 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13876 conftest$ac_exeext conftest.$ac_ext
13878 ac_res=`eval 'as_val=${'$as_ac_var'}
13879 $as_echo "$as_val"'`
13880 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13881 $as_echo "$ac_res" >&6; }
13882 if test `eval 'as_val=${'$as_ac_var'}
13883 $as_echo "$as_val"'` = yes; then
13884 cat >>confdefs.h <<_ACEOF
13885 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13886 _ACEOF
13889 done
13892 { $as_echo "$as_me:$LINENO: checking for st_blksize" >&5
13893 $as_echo_n "checking for st_blksize... " >&6; }
13894 cat >conftest.$ac_ext <<_ACEOF
13895 /* confdefs.h. */
13896 _ACEOF
13897 cat confdefs.h >>conftest.$ac_ext
13898 cat >>conftest.$ac_ext <<_ACEOF
13899 /* end confdefs.h. */
13900 #include <sys/types.h>
13901 #include <sys/stat.h>
13903 main ()
13905 struct stat st;
13906 int n;
13908 stat("/", &st);
13909 n = (int)st.st_blksize;
13911 return 0;
13913 _ACEOF
13914 rm -f conftest.$ac_objext
13915 if { (ac_try="$ac_compile"
13916 case "(($ac_try" in
13917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13918 *) ac_try_echo=$ac_try;;
13919 esac
13920 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13921 $as_echo "$ac_try_echo") >&5
13922 (eval "$ac_compile") 2>conftest.er1
13923 ac_status=$?
13924 grep -v '^ *+' conftest.er1 >conftest.err
13925 rm -f conftest.er1
13926 cat conftest.err >&5
13927 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13928 (exit $ac_status); } && {
13929 test -z "$ac_c_werror_flag" ||
13930 test ! -s conftest.err
13931 } && test -s conftest.$ac_objext; then
13932 { $as_echo "$as_me:$LINENO: result: yes" >&5
13933 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13934 #define HAVE_ST_BLKSIZE 1
13935 _ACEOF
13937 else
13938 $as_echo "$as_me: failed program was:" >&5
13939 sed 's/^/| /' conftest.$ac_ext >&5
13941 { $as_echo "$as_me:$LINENO: result: no" >&5
13942 $as_echo "no" >&6; }
13945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13947 { $as_echo "$as_me:$LINENO: checking whether stat() ignores a trailing slash" >&5
13948 $as_echo_n "checking whether stat() ignores a trailing slash... " >&6; }
13949 if test "${vim_cv_stat_ignores_slash+set}" = set; then
13950 $as_echo_n "(cached) " >&6
13951 else
13953 if test "$cross_compiling" = yes; then
13955 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_stat_ignores_slash'" >&5
13956 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_stat_ignores_slash'" >&2;}
13957 { (exit 1); exit 1; }; }
13959 else
13960 cat >conftest.$ac_ext <<_ACEOF
13962 #include "confdefs.h"
13963 #if STDC_HEADERS
13964 # include <stdlib.h>
13965 # include <stddef.h>
13966 #endif
13967 #include <sys/types.h>
13968 #include <sys/stat.h>
13969 main() {struct stat st; exit(stat("configure/", &st) != 0); }
13971 _ACEOF
13972 rm -f conftest$ac_exeext
13973 if { (ac_try="$ac_link"
13974 case "(($ac_try" in
13975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13976 *) ac_try_echo=$ac_try;;
13977 esac
13978 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13979 $as_echo "$ac_try_echo") >&5
13980 (eval "$ac_link") 2>&5
13981 ac_status=$?
13982 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13983 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13984 { (case "(($ac_try" in
13985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13986 *) ac_try_echo=$ac_try;;
13987 esac
13988 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13989 $as_echo "$ac_try_echo") >&5
13990 (eval "$ac_try") 2>&5
13991 ac_status=$?
13992 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13993 (exit $ac_status); }; }; then
13995 vim_cv_stat_ignores_slash=yes
13997 else
13998 $as_echo "$as_me: program exited with status $ac_status" >&5
13999 $as_echo "$as_me: failed program was:" >&5
14000 sed 's/^/| /' conftest.$ac_ext >&5
14002 ( exit $ac_status )
14004 vim_cv_stat_ignores_slash=no
14007 rm -rf conftest.dSYM
14008 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14014 { $as_echo "$as_me:$LINENO: result: $vim_cv_stat_ignores_slash" >&5
14015 $as_echo "$vim_cv_stat_ignores_slash" >&6; }
14017 if test "x$vim_cv_stat_ignores_slash" = "xyes" ; then
14018 cat >>confdefs.h <<\_ACEOF
14019 #define STAT_IGNORES_SLASH 1
14020 _ACEOF
14024 { $as_echo "$as_me:$LINENO: checking for iconv_open()" >&5
14025 $as_echo_n "checking for iconv_open()... " >&6; }
14026 save_LIBS="$LIBS"
14027 LIBS="$LIBS -liconv"
14028 cat >conftest.$ac_ext <<_ACEOF
14029 /* confdefs.h. */
14030 _ACEOF
14031 cat confdefs.h >>conftest.$ac_ext
14032 cat >>conftest.$ac_ext <<_ACEOF
14033 /* end confdefs.h. */
14035 #ifdef HAVE_ICONV_H
14036 # include <iconv.h>
14037 #endif
14040 main ()
14042 iconv_open("fr", "to");
14044 return 0;
14046 _ACEOF
14047 rm -f conftest.$ac_objext conftest$ac_exeext
14048 if { (ac_try="$ac_link"
14049 case "(($ac_try" in
14050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14051 *) ac_try_echo=$ac_try;;
14052 esac
14053 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14054 $as_echo "$ac_try_echo") >&5
14055 (eval "$ac_link") 2>conftest.er1
14056 ac_status=$?
14057 grep -v '^ *+' conftest.er1 >conftest.err
14058 rm -f conftest.er1
14059 cat conftest.err >&5
14060 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14061 (exit $ac_status); } && {
14062 test -z "$ac_c_werror_flag" ||
14063 test ! -s conftest.err
14064 } && test -s conftest$ac_exeext && {
14065 test "$cross_compiling" = yes ||
14066 $as_test_x conftest$ac_exeext
14067 }; then
14068 { $as_echo "$as_me:$LINENO: result: yes; with -liconv" >&5
14069 $as_echo "yes; with -liconv" >&6; }; cat >>confdefs.h <<\_ACEOF
14070 #define HAVE_ICONV 1
14071 _ACEOF
14073 else
14074 $as_echo "$as_me: failed program was:" >&5
14075 sed 's/^/| /' conftest.$ac_ext >&5
14077 LIBS="$save_LIBS"
14078 cat >conftest.$ac_ext <<_ACEOF
14079 /* confdefs.h. */
14080 _ACEOF
14081 cat confdefs.h >>conftest.$ac_ext
14082 cat >>conftest.$ac_ext <<_ACEOF
14083 /* end confdefs.h. */
14085 #ifdef HAVE_ICONV_H
14086 # include <iconv.h>
14087 #endif
14090 main ()
14092 iconv_open("fr", "to");
14094 return 0;
14096 _ACEOF
14097 rm -f conftest.$ac_objext conftest$ac_exeext
14098 if { (ac_try="$ac_link"
14099 case "(($ac_try" in
14100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14101 *) ac_try_echo=$ac_try;;
14102 esac
14103 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14104 $as_echo "$ac_try_echo") >&5
14105 (eval "$ac_link") 2>conftest.er1
14106 ac_status=$?
14107 grep -v '^ *+' conftest.er1 >conftest.err
14108 rm -f conftest.er1
14109 cat conftest.err >&5
14110 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14111 (exit $ac_status); } && {
14112 test -z "$ac_c_werror_flag" ||
14113 test ! -s conftest.err
14114 } && test -s conftest$ac_exeext && {
14115 test "$cross_compiling" = yes ||
14116 $as_test_x conftest$ac_exeext
14117 }; then
14118 { $as_echo "$as_me:$LINENO: result: yes" >&5
14119 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14120 #define HAVE_ICONV 1
14121 _ACEOF
14123 else
14124 $as_echo "$as_me: failed program was:" >&5
14125 sed 's/^/| /' conftest.$ac_ext >&5
14127 { $as_echo "$as_me:$LINENO: result: no" >&5
14128 $as_echo "no" >&6; }
14131 rm -rf conftest.dSYM
14132 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14133 conftest$ac_exeext conftest.$ac_ext
14136 rm -rf conftest.dSYM
14137 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14138 conftest$ac_exeext conftest.$ac_ext
14141 { $as_echo "$as_me:$LINENO: checking for nl_langinfo(CODESET)" >&5
14142 $as_echo_n "checking for nl_langinfo(CODESET)... " >&6; }
14143 cat >conftest.$ac_ext <<_ACEOF
14144 /* confdefs.h. */
14145 _ACEOF
14146 cat confdefs.h >>conftest.$ac_ext
14147 cat >>conftest.$ac_ext <<_ACEOF
14148 /* end confdefs.h. */
14150 #ifdef HAVE_LANGINFO_H
14151 # include <langinfo.h>
14152 #endif
14155 main ()
14157 char *cs = nl_langinfo(CODESET);
14159 return 0;
14161 _ACEOF
14162 rm -f conftest.$ac_objext conftest$ac_exeext
14163 if { (ac_try="$ac_link"
14164 case "(($ac_try" in
14165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14166 *) ac_try_echo=$ac_try;;
14167 esac
14168 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14169 $as_echo "$ac_try_echo") >&5
14170 (eval "$ac_link") 2>conftest.er1
14171 ac_status=$?
14172 grep -v '^ *+' conftest.er1 >conftest.err
14173 rm -f conftest.er1
14174 cat conftest.err >&5
14175 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14176 (exit $ac_status); } && {
14177 test -z "$ac_c_werror_flag" ||
14178 test ! -s conftest.err
14179 } && test -s conftest$ac_exeext && {
14180 test "$cross_compiling" = yes ||
14181 $as_test_x conftest$ac_exeext
14182 }; then
14183 { $as_echo "$as_me:$LINENO: result: yes" >&5
14184 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14185 #define HAVE_NL_LANGINFO_CODESET 1
14186 _ACEOF
14188 else
14189 $as_echo "$as_me: failed program was:" >&5
14190 sed 's/^/| /' conftest.$ac_ext >&5
14192 { $as_echo "$as_me:$LINENO: result: no" >&5
14193 $as_echo "no" >&6; }
14196 rm -rf conftest.dSYM
14197 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14198 conftest$ac_exeext conftest.$ac_ext
14201 { $as_echo "$as_me:$LINENO: checking for strtod in -lm" >&5
14202 $as_echo_n "checking for strtod in -lm... " >&6; }
14203 if test "${ac_cv_lib_m_strtod+set}" = set; then
14204 $as_echo_n "(cached) " >&6
14205 else
14206 ac_check_lib_save_LIBS=$LIBS
14207 LIBS="-lm $LIBS"
14208 cat >conftest.$ac_ext <<_ACEOF
14209 /* confdefs.h. */
14210 _ACEOF
14211 cat confdefs.h >>conftest.$ac_ext
14212 cat >>conftest.$ac_ext <<_ACEOF
14213 /* end confdefs.h. */
14215 /* Override any GCC internal prototype to avoid an error.
14216 Use char because int might match the return type of a GCC
14217 builtin and then its argument prototype would still apply. */
14218 #ifdef __cplusplus
14219 extern "C"
14220 #endif
14221 char strtod ();
14223 main ()
14225 return strtod ();
14227 return 0;
14229 _ACEOF
14230 rm -f conftest.$ac_objext conftest$ac_exeext
14231 if { (ac_try="$ac_link"
14232 case "(($ac_try" in
14233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14234 *) ac_try_echo=$ac_try;;
14235 esac
14236 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14237 $as_echo "$ac_try_echo") >&5
14238 (eval "$ac_link") 2>conftest.er1
14239 ac_status=$?
14240 grep -v '^ *+' conftest.er1 >conftest.err
14241 rm -f conftest.er1
14242 cat conftest.err >&5
14243 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14244 (exit $ac_status); } && {
14245 test -z "$ac_c_werror_flag" ||
14246 test ! -s conftest.err
14247 } && test -s conftest$ac_exeext && {
14248 test "$cross_compiling" = yes ||
14249 $as_test_x conftest$ac_exeext
14250 }; then
14251 ac_cv_lib_m_strtod=yes
14252 else
14253 $as_echo "$as_me: failed program was:" >&5
14254 sed 's/^/| /' conftest.$ac_ext >&5
14256 ac_cv_lib_m_strtod=no
14259 rm -rf conftest.dSYM
14260 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14261 conftest$ac_exeext conftest.$ac_ext
14262 LIBS=$ac_check_lib_save_LIBS
14264 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_strtod" >&5
14265 $as_echo "$ac_cv_lib_m_strtod" >&6; }
14266 if test $ac_cv_lib_m_strtod = yes; then
14267 cat >>confdefs.h <<_ACEOF
14268 #define HAVE_LIBM 1
14269 _ACEOF
14271 LIBS="-lm $LIBS"
14275 { $as_echo "$as_me:$LINENO: checking for strtod() and other floating point functions" >&5
14276 $as_echo_n "checking for strtod() and other floating point functions... " >&6; }
14277 cat >conftest.$ac_ext <<_ACEOF
14278 /* confdefs.h. */
14279 _ACEOF
14280 cat confdefs.h >>conftest.$ac_ext
14281 cat >>conftest.$ac_ext <<_ACEOF
14282 /* end confdefs.h. */
14284 #ifdef HAVE_MATH_H
14285 # include <math.h>
14286 #endif
14287 #if STDC_HEADERS
14288 # include <stdlib.h>
14289 # include <stddef.h>
14290 #endif
14293 main ()
14295 char *s; double d;
14296 d = strtod("1.1", &s);
14297 d = fabs(1.11);
14298 d = ceil(1.11);
14299 d = floor(1.11);
14300 d = log10(1.11);
14301 d = pow(1.11, 2.22);
14302 d = sqrt(1.11);
14303 d = sin(1.11);
14304 d = cos(1.11);
14305 d = atan(1.11);
14308 return 0;
14310 _ACEOF
14311 rm -f conftest.$ac_objext conftest$ac_exeext
14312 if { (ac_try="$ac_link"
14313 case "(($ac_try" in
14314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14315 *) ac_try_echo=$ac_try;;
14316 esac
14317 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14318 $as_echo "$ac_try_echo") >&5
14319 (eval "$ac_link") 2>conftest.er1
14320 ac_status=$?
14321 grep -v '^ *+' conftest.er1 >conftest.err
14322 rm -f conftest.er1
14323 cat conftest.err >&5
14324 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14325 (exit $ac_status); } && {
14326 test -z "$ac_c_werror_flag" ||
14327 test ! -s conftest.err
14328 } && test -s conftest$ac_exeext && {
14329 test "$cross_compiling" = yes ||
14330 $as_test_x conftest$ac_exeext
14331 }; then
14332 { $as_echo "$as_me:$LINENO: result: yes" >&5
14333 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14334 #define HAVE_FLOAT_FUNCS 1
14335 _ACEOF
14337 else
14338 $as_echo "$as_me: failed program was:" >&5
14339 sed 's/^/| /' conftest.$ac_ext >&5
14341 { $as_echo "$as_me:$LINENO: result: no" >&5
14342 $as_echo "no" >&6; }
14345 rm -rf conftest.dSYM
14346 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14347 conftest$ac_exeext conftest.$ac_ext
14349 { $as_echo "$as_me:$LINENO: checking --disable-acl argument" >&5
14350 $as_echo_n "checking --disable-acl argument... " >&6; }
14351 # Check whether --enable-acl was given.
14352 if test "${enable_acl+set}" = set; then
14353 enableval=$enable_acl;
14354 else
14355 enable_acl="yes"
14358 if test "$enable_acl" = "yes"; then
14359 { $as_echo "$as_me:$LINENO: result: no" >&5
14360 $as_echo "no" >&6; }
14361 { $as_echo "$as_me:$LINENO: checking for acl_get_file in -lposix1e" >&5
14362 $as_echo_n "checking for acl_get_file in -lposix1e... " >&6; }
14363 if test "${ac_cv_lib_posix1e_acl_get_file+set}" = set; then
14364 $as_echo_n "(cached) " >&6
14365 else
14366 ac_check_lib_save_LIBS=$LIBS
14367 LIBS="-lposix1e $LIBS"
14368 cat >conftest.$ac_ext <<_ACEOF
14369 /* confdefs.h. */
14370 _ACEOF
14371 cat confdefs.h >>conftest.$ac_ext
14372 cat >>conftest.$ac_ext <<_ACEOF
14373 /* end confdefs.h. */
14375 /* Override any GCC internal prototype to avoid an error.
14376 Use char because int might match the return type of a GCC
14377 builtin and then its argument prototype would still apply. */
14378 #ifdef __cplusplus
14379 extern "C"
14380 #endif
14381 char acl_get_file ();
14383 main ()
14385 return acl_get_file ();
14387 return 0;
14389 _ACEOF
14390 rm -f conftest.$ac_objext conftest$ac_exeext
14391 if { (ac_try="$ac_link"
14392 case "(($ac_try" in
14393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14394 *) ac_try_echo=$ac_try;;
14395 esac
14396 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14397 $as_echo "$ac_try_echo") >&5
14398 (eval "$ac_link") 2>conftest.er1
14399 ac_status=$?
14400 grep -v '^ *+' conftest.er1 >conftest.err
14401 rm -f conftest.er1
14402 cat conftest.err >&5
14403 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14404 (exit $ac_status); } && {
14405 test -z "$ac_c_werror_flag" ||
14406 test ! -s conftest.err
14407 } && test -s conftest$ac_exeext && {
14408 test "$cross_compiling" = yes ||
14409 $as_test_x conftest$ac_exeext
14410 }; then
14411 ac_cv_lib_posix1e_acl_get_file=yes
14412 else
14413 $as_echo "$as_me: failed program was:" >&5
14414 sed 's/^/| /' conftest.$ac_ext >&5
14416 ac_cv_lib_posix1e_acl_get_file=no
14419 rm -rf conftest.dSYM
14420 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14421 conftest$ac_exeext conftest.$ac_ext
14422 LIBS=$ac_check_lib_save_LIBS
14424 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix1e_acl_get_file" >&5
14425 $as_echo "$ac_cv_lib_posix1e_acl_get_file" >&6; }
14426 if test $ac_cv_lib_posix1e_acl_get_file = yes; then
14427 LIBS="$LIBS -lposix1e"
14428 else
14429 { $as_echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
14430 $as_echo_n "checking for acl_get_file in -lacl... " >&6; }
14431 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
14432 $as_echo_n "(cached) " >&6
14433 else
14434 ac_check_lib_save_LIBS=$LIBS
14435 LIBS="-lacl $LIBS"
14436 cat >conftest.$ac_ext <<_ACEOF
14437 /* confdefs.h. */
14438 _ACEOF
14439 cat confdefs.h >>conftest.$ac_ext
14440 cat >>conftest.$ac_ext <<_ACEOF
14441 /* end confdefs.h. */
14443 /* Override any GCC internal prototype to avoid an error.
14444 Use char because int might match the return type of a GCC
14445 builtin and then its argument prototype would still apply. */
14446 #ifdef __cplusplus
14447 extern "C"
14448 #endif
14449 char acl_get_file ();
14451 main ()
14453 return acl_get_file ();
14455 return 0;
14457 _ACEOF
14458 rm -f conftest.$ac_objext conftest$ac_exeext
14459 if { (ac_try="$ac_link"
14460 case "(($ac_try" in
14461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14462 *) ac_try_echo=$ac_try;;
14463 esac
14464 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14465 $as_echo "$ac_try_echo") >&5
14466 (eval "$ac_link") 2>conftest.er1
14467 ac_status=$?
14468 grep -v '^ *+' conftest.er1 >conftest.err
14469 rm -f conftest.er1
14470 cat conftest.err >&5
14471 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14472 (exit $ac_status); } && {
14473 test -z "$ac_c_werror_flag" ||
14474 test ! -s conftest.err
14475 } && test -s conftest$ac_exeext && {
14476 test "$cross_compiling" = yes ||
14477 $as_test_x conftest$ac_exeext
14478 }; then
14479 ac_cv_lib_acl_acl_get_file=yes
14480 else
14481 $as_echo "$as_me: failed program was:" >&5
14482 sed 's/^/| /' conftest.$ac_ext >&5
14484 ac_cv_lib_acl_acl_get_file=no
14487 rm -rf conftest.dSYM
14488 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14489 conftest$ac_exeext conftest.$ac_ext
14490 LIBS=$ac_check_lib_save_LIBS
14492 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
14493 $as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
14494 if test $ac_cv_lib_acl_acl_get_file = yes; then
14495 LIBS="$LIBS -lacl"
14496 { $as_echo "$as_me:$LINENO: checking for fgetxattr in -lattr" >&5
14497 $as_echo_n "checking for fgetxattr in -lattr... " >&6; }
14498 if test "${ac_cv_lib_attr_fgetxattr+set}" = set; then
14499 $as_echo_n "(cached) " >&6
14500 else
14501 ac_check_lib_save_LIBS=$LIBS
14502 LIBS="-lattr $LIBS"
14503 cat >conftest.$ac_ext <<_ACEOF
14504 /* confdefs.h. */
14505 _ACEOF
14506 cat confdefs.h >>conftest.$ac_ext
14507 cat >>conftest.$ac_ext <<_ACEOF
14508 /* end confdefs.h. */
14510 /* Override any GCC internal prototype to avoid an error.
14511 Use char because int might match the return type of a GCC
14512 builtin and then its argument prototype would still apply. */
14513 #ifdef __cplusplus
14514 extern "C"
14515 #endif
14516 char fgetxattr ();
14518 main ()
14520 return fgetxattr ();
14522 return 0;
14524 _ACEOF
14525 rm -f conftest.$ac_objext conftest$ac_exeext
14526 if { (ac_try="$ac_link"
14527 case "(($ac_try" in
14528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14529 *) ac_try_echo=$ac_try;;
14530 esac
14531 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14532 $as_echo "$ac_try_echo") >&5
14533 (eval "$ac_link") 2>conftest.er1
14534 ac_status=$?
14535 grep -v '^ *+' conftest.er1 >conftest.err
14536 rm -f conftest.er1
14537 cat conftest.err >&5
14538 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14539 (exit $ac_status); } && {
14540 test -z "$ac_c_werror_flag" ||
14541 test ! -s conftest.err
14542 } && test -s conftest$ac_exeext && {
14543 test "$cross_compiling" = yes ||
14544 $as_test_x conftest$ac_exeext
14545 }; then
14546 ac_cv_lib_attr_fgetxattr=yes
14547 else
14548 $as_echo "$as_me: failed program was:" >&5
14549 sed 's/^/| /' conftest.$ac_ext >&5
14551 ac_cv_lib_attr_fgetxattr=no
14554 rm -rf conftest.dSYM
14555 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14556 conftest$ac_exeext conftest.$ac_ext
14557 LIBS=$ac_check_lib_save_LIBS
14559 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_attr_fgetxattr" >&5
14560 $as_echo "$ac_cv_lib_attr_fgetxattr" >&6; }
14561 if test $ac_cv_lib_attr_fgetxattr = yes; then
14562 LIBS="$LIBS -lattr"
14570 { $as_echo "$as_me:$LINENO: checking for POSIX ACL support" >&5
14571 $as_echo_n "checking for POSIX 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 #include <sys/types.h>
14580 #ifdef HAVE_SYS_ACL_H
14581 # include <sys/acl.h>
14582 #endif
14583 acl_t acl;
14585 main ()
14587 acl = acl_get_file("foo", ACL_TYPE_ACCESS);
14588 acl_set_file("foo", ACL_TYPE_ACCESS, acl);
14589 acl_free(acl);
14591 return 0;
14593 _ACEOF
14594 rm -f conftest.$ac_objext conftest$ac_exeext
14595 if { (ac_try="$ac_link"
14596 case "(($ac_try" in
14597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14598 *) ac_try_echo=$ac_try;;
14599 esac
14600 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14601 $as_echo "$ac_try_echo") >&5
14602 (eval "$ac_link") 2>conftest.er1
14603 ac_status=$?
14604 grep -v '^ *+' conftest.er1 >conftest.err
14605 rm -f conftest.er1
14606 cat conftest.err >&5
14607 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14608 (exit $ac_status); } && {
14609 test -z "$ac_c_werror_flag" ||
14610 test ! -s conftest.err
14611 } && test -s conftest$ac_exeext && {
14612 test "$cross_compiling" = yes ||
14613 $as_test_x conftest$ac_exeext
14614 }; then
14615 { $as_echo "$as_me:$LINENO: result: yes" >&5
14616 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14617 #define HAVE_POSIX_ACL 1
14618 _ACEOF
14620 else
14621 $as_echo "$as_me: failed program was:" >&5
14622 sed 's/^/| /' conftest.$ac_ext >&5
14624 { $as_echo "$as_me:$LINENO: result: no" >&5
14625 $as_echo "no" >&6; }
14628 rm -rf conftest.dSYM
14629 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14630 conftest$ac_exeext conftest.$ac_ext
14632 { $as_echo "$as_me:$LINENO: checking for Solaris ACL support" >&5
14633 $as_echo_n "checking for Solaris ACL support... " >&6; }
14634 cat >conftest.$ac_ext <<_ACEOF
14635 /* confdefs.h. */
14636 _ACEOF
14637 cat confdefs.h >>conftest.$ac_ext
14638 cat >>conftest.$ac_ext <<_ACEOF
14639 /* end confdefs.h. */
14641 #ifdef HAVE_SYS_ACL_H
14642 # include <sys/acl.h>
14643 #endif
14645 main ()
14647 acl("foo", GETACLCNT, 0, NULL);
14650 return 0;
14652 _ACEOF
14653 rm -f conftest.$ac_objext conftest$ac_exeext
14654 if { (ac_try="$ac_link"
14655 case "(($ac_try" in
14656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14657 *) ac_try_echo=$ac_try;;
14658 esac
14659 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14660 $as_echo "$ac_try_echo") >&5
14661 (eval "$ac_link") 2>conftest.er1
14662 ac_status=$?
14663 grep -v '^ *+' conftest.er1 >conftest.err
14664 rm -f conftest.er1
14665 cat conftest.err >&5
14666 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14667 (exit $ac_status); } && {
14668 test -z "$ac_c_werror_flag" ||
14669 test ! -s conftest.err
14670 } && test -s conftest$ac_exeext && {
14671 test "$cross_compiling" = yes ||
14672 $as_test_x conftest$ac_exeext
14673 }; then
14674 { $as_echo "$as_me:$LINENO: result: yes" >&5
14675 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14676 #define HAVE_SOLARIS_ACL 1
14677 _ACEOF
14679 else
14680 $as_echo "$as_me: failed program was:" >&5
14681 sed 's/^/| /' conftest.$ac_ext >&5
14683 { $as_echo "$as_me:$LINENO: result: no" >&5
14684 $as_echo "no" >&6; }
14687 rm -rf conftest.dSYM
14688 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14689 conftest$ac_exeext conftest.$ac_ext
14691 { $as_echo "$as_me:$LINENO: checking for AIX ACL support" >&5
14692 $as_echo_n "checking for AIX ACL support... " >&6; }
14693 cat >conftest.$ac_ext <<_ACEOF
14694 /* confdefs.h. */
14695 _ACEOF
14696 cat confdefs.h >>conftest.$ac_ext
14697 cat >>conftest.$ac_ext <<_ACEOF
14698 /* end confdefs.h. */
14700 #if STDC_HEADERS
14701 # include <stdlib.h>
14702 # include <stddef.h>
14703 #endif
14704 #ifdef HAVE_SYS_ACL_H
14705 # include <sys/acl.h>
14706 #endif
14707 #ifdef HAVE_SYS_ACCESS_H
14708 # include <sys/access.h>
14709 #endif
14710 #define _ALL_SOURCE
14712 #include <sys/stat.h>
14714 int aclsize;
14715 struct acl *aclent;
14717 main ()
14719 aclsize = sizeof(struct acl);
14720 aclent = (void *)malloc(aclsize);
14721 statacl("foo", STX_NORMAL, aclent, aclsize);
14724 return 0;
14726 _ACEOF
14727 rm -f conftest.$ac_objext conftest$ac_exeext
14728 if { (ac_try="$ac_link"
14729 case "(($ac_try" in
14730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14731 *) ac_try_echo=$ac_try;;
14732 esac
14733 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14734 $as_echo "$ac_try_echo") >&5
14735 (eval "$ac_link") 2>conftest.er1
14736 ac_status=$?
14737 grep -v '^ *+' conftest.er1 >conftest.err
14738 rm -f conftest.er1
14739 cat conftest.err >&5
14740 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14741 (exit $ac_status); } && {
14742 test -z "$ac_c_werror_flag" ||
14743 test ! -s conftest.err
14744 } && test -s conftest$ac_exeext && {
14745 test "$cross_compiling" = yes ||
14746 $as_test_x conftest$ac_exeext
14747 }; then
14748 { $as_echo "$as_me:$LINENO: result: yes" >&5
14749 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14750 #define HAVE_AIX_ACL 1
14751 _ACEOF
14753 else
14754 $as_echo "$as_me: failed program was:" >&5
14755 sed 's/^/| /' conftest.$ac_ext >&5
14757 { $as_echo "$as_me:$LINENO: result: no" >&5
14758 $as_echo "no" >&6; }
14761 rm -rf conftest.dSYM
14762 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14763 conftest$ac_exeext conftest.$ac_ext
14764 else
14765 { $as_echo "$as_me:$LINENO: result: yes" >&5
14766 $as_echo "yes" >&6; }
14769 { $as_echo "$as_me:$LINENO: checking --disable-gpm argument" >&5
14770 $as_echo_n "checking --disable-gpm argument... " >&6; }
14771 # Check whether --enable-gpm was given.
14772 if test "${enable_gpm+set}" = set; then
14773 enableval=$enable_gpm;
14774 else
14775 enable_gpm="yes"
14779 if test "$enable_gpm" = "yes"; then
14780 { $as_echo "$as_me:$LINENO: result: no" >&5
14781 $as_echo "no" >&6; }
14782 { $as_echo "$as_me:$LINENO: checking for gpm" >&5
14783 $as_echo_n "checking for gpm... " >&6; }
14784 if test "${vi_cv_have_gpm+set}" = set; then
14785 $as_echo_n "(cached) " >&6
14786 else
14787 olibs="$LIBS" ; LIBS="-lgpm"
14788 cat >conftest.$ac_ext <<_ACEOF
14789 /* confdefs.h. */
14790 _ACEOF
14791 cat confdefs.h >>conftest.$ac_ext
14792 cat >>conftest.$ac_ext <<_ACEOF
14793 /* end confdefs.h. */
14794 #include <gpm.h>
14795 #include <linux/keyboard.h>
14797 main ()
14799 Gpm_GetLibVersion(NULL);
14801 return 0;
14803 _ACEOF
14804 rm -f conftest.$ac_objext conftest$ac_exeext
14805 if { (ac_try="$ac_link"
14806 case "(($ac_try" in
14807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14808 *) ac_try_echo=$ac_try;;
14809 esac
14810 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14811 $as_echo "$ac_try_echo") >&5
14812 (eval "$ac_link") 2>conftest.er1
14813 ac_status=$?
14814 grep -v '^ *+' conftest.er1 >conftest.err
14815 rm -f conftest.er1
14816 cat conftest.err >&5
14817 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14818 (exit $ac_status); } && {
14819 test -z "$ac_c_werror_flag" ||
14820 test ! -s conftest.err
14821 } && test -s conftest$ac_exeext && {
14822 test "$cross_compiling" = yes ||
14823 $as_test_x conftest$ac_exeext
14824 }; then
14825 vi_cv_have_gpm=yes
14826 else
14827 $as_echo "$as_me: failed program was:" >&5
14828 sed 's/^/| /' conftest.$ac_ext >&5
14830 vi_cv_have_gpm=no
14833 rm -rf conftest.dSYM
14834 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14835 conftest$ac_exeext conftest.$ac_ext
14836 LIBS="$olibs"
14839 { $as_echo "$as_me:$LINENO: result: $vi_cv_have_gpm" >&5
14840 $as_echo "$vi_cv_have_gpm" >&6; }
14841 if test $vi_cv_have_gpm = yes; then
14842 LIBS="$LIBS -lgpm"
14843 cat >>confdefs.h <<\_ACEOF
14844 #define HAVE_GPM 1
14845 _ACEOF
14848 else
14849 { $as_echo "$as_me:$LINENO: result: yes" >&5
14850 $as_echo "yes" >&6; }
14853 { $as_echo "$as_me:$LINENO: checking --disable-sysmouse argument" >&5
14854 $as_echo_n "checking --disable-sysmouse argument... " >&6; }
14855 # Check whether --enable-sysmouse was given.
14856 if test "${enable_sysmouse+set}" = set; then
14857 enableval=$enable_sysmouse;
14858 else
14859 enable_sysmouse="yes"
14863 if test "$enable_sysmouse" = "yes"; then
14864 { $as_echo "$as_me:$LINENO: result: no" >&5
14865 $as_echo "no" >&6; }
14866 { $as_echo "$as_me:$LINENO: checking for sysmouse" >&5
14867 $as_echo_n "checking for sysmouse... " >&6; }
14868 if test "${vi_cv_have_sysmouse+set}" = set; then
14869 $as_echo_n "(cached) " >&6
14870 else
14871 cat >conftest.$ac_ext <<_ACEOF
14872 /* confdefs.h. */
14873 _ACEOF
14874 cat confdefs.h >>conftest.$ac_ext
14875 cat >>conftest.$ac_ext <<_ACEOF
14876 /* end confdefs.h. */
14877 #include <sys/consio.h>
14878 #include <signal.h>
14879 #include <sys/fbio.h>
14881 main ()
14883 struct mouse_info mouse;
14884 mouse.operation = MOUSE_MODE;
14885 mouse.operation = MOUSE_SHOW;
14886 mouse.u.mode.mode = 0;
14887 mouse.u.mode.signal = SIGUSR2;
14889 return 0;
14891 _ACEOF
14892 rm -f conftest.$ac_objext conftest$ac_exeext
14893 if { (ac_try="$ac_link"
14894 case "(($ac_try" in
14895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14896 *) ac_try_echo=$ac_try;;
14897 esac
14898 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14899 $as_echo "$ac_try_echo") >&5
14900 (eval "$ac_link") 2>conftest.er1
14901 ac_status=$?
14902 grep -v '^ *+' conftest.er1 >conftest.err
14903 rm -f conftest.er1
14904 cat conftest.err >&5
14905 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14906 (exit $ac_status); } && {
14907 test -z "$ac_c_werror_flag" ||
14908 test ! -s conftest.err
14909 } && test -s conftest$ac_exeext && {
14910 test "$cross_compiling" = yes ||
14911 $as_test_x conftest$ac_exeext
14912 }; then
14913 vi_cv_have_sysmouse=yes
14914 else
14915 $as_echo "$as_me: failed program was:" >&5
14916 sed 's/^/| /' conftest.$ac_ext >&5
14918 vi_cv_have_sysmouse=no
14921 rm -rf conftest.dSYM
14922 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14923 conftest$ac_exeext conftest.$ac_ext
14926 { $as_echo "$as_me:$LINENO: result: $vi_cv_have_sysmouse" >&5
14927 $as_echo "$vi_cv_have_sysmouse" >&6; }
14928 if test $vi_cv_have_sysmouse = yes; then
14929 cat >>confdefs.h <<\_ACEOF
14930 #define HAVE_SYSMOUSE 1
14931 _ACEOF
14934 else
14935 { $as_echo "$as_me:$LINENO: result: yes" >&5
14936 $as_echo "yes" >&6; }
14939 { $as_echo "$as_me:$LINENO: checking for rename" >&5
14940 $as_echo_n "checking for rename... " >&6; }
14941 cat >conftest.$ac_ext <<_ACEOF
14942 /* confdefs.h. */
14943 _ACEOF
14944 cat confdefs.h >>conftest.$ac_ext
14945 cat >>conftest.$ac_ext <<_ACEOF
14946 /* end confdefs.h. */
14947 #include <stdio.h>
14949 main ()
14951 rename("this", "that")
14953 return 0;
14955 _ACEOF
14956 rm -f conftest.$ac_objext conftest$ac_exeext
14957 if { (ac_try="$ac_link"
14958 case "(($ac_try" in
14959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14960 *) ac_try_echo=$ac_try;;
14961 esac
14962 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14963 $as_echo "$ac_try_echo") >&5
14964 (eval "$ac_link") 2>conftest.er1
14965 ac_status=$?
14966 grep -v '^ *+' conftest.er1 >conftest.err
14967 rm -f conftest.er1
14968 cat conftest.err >&5
14969 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14970 (exit $ac_status); } && {
14971 test -z "$ac_c_werror_flag" ||
14972 test ! -s conftest.err
14973 } && test -s conftest$ac_exeext && {
14974 test "$cross_compiling" = yes ||
14975 $as_test_x conftest$ac_exeext
14976 }; then
14977 { $as_echo "$as_me:$LINENO: result: yes" >&5
14978 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14979 #define HAVE_RENAME 1
14980 _ACEOF
14982 else
14983 $as_echo "$as_me: failed program was:" >&5
14984 sed 's/^/| /' conftest.$ac_ext >&5
14986 { $as_echo "$as_me:$LINENO: result: no" >&5
14987 $as_echo "no" >&6; }
14990 rm -rf conftest.dSYM
14991 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14992 conftest$ac_exeext conftest.$ac_ext
14994 { $as_echo "$as_me:$LINENO: checking for sysctl" >&5
14995 $as_echo_n "checking for sysctl... " >&6; }
14996 cat >conftest.$ac_ext <<_ACEOF
14997 /* confdefs.h. */
14998 _ACEOF
14999 cat confdefs.h >>conftest.$ac_ext
15000 cat >>conftest.$ac_ext <<_ACEOF
15001 /* end confdefs.h. */
15002 #include <sys/types.h>
15003 #include <sys/sysctl.h>
15005 main ()
15007 int mib[2], r;
15008 size_t len;
15010 mib[0] = CTL_HW;
15011 mib[1] = HW_USERMEM;
15012 len = sizeof(r);
15013 (void)sysctl(mib, 2, &r, &len, (void *)0, (size_t)0);
15016 return 0;
15018 _ACEOF
15019 rm -f conftest.$ac_objext
15020 if { (ac_try="$ac_compile"
15021 case "(($ac_try" in
15022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15023 *) ac_try_echo=$ac_try;;
15024 esac
15025 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15026 $as_echo "$ac_try_echo") >&5
15027 (eval "$ac_compile") 2>conftest.er1
15028 ac_status=$?
15029 grep -v '^ *+' conftest.er1 >conftest.err
15030 rm -f conftest.er1
15031 cat conftest.err >&5
15032 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15033 (exit $ac_status); } && {
15034 test -z "$ac_c_werror_flag" ||
15035 test ! -s conftest.err
15036 } && test -s conftest.$ac_objext; then
15037 { $as_echo "$as_me:$LINENO: result: yes" >&5
15038 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15039 #define HAVE_SYSCTL 1
15040 _ACEOF
15042 else
15043 $as_echo "$as_me: failed program was:" >&5
15044 sed 's/^/| /' conftest.$ac_ext >&5
15046 { $as_echo "$as_me:$LINENO: result: not usable" >&5
15047 $as_echo "not usable" >&6; }
15050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15052 { $as_echo "$as_me:$LINENO: checking for sysinfo" >&5
15053 $as_echo_n "checking for sysinfo... " >&6; }
15054 cat >conftest.$ac_ext <<_ACEOF
15055 /* confdefs.h. */
15056 _ACEOF
15057 cat confdefs.h >>conftest.$ac_ext
15058 cat >>conftest.$ac_ext <<_ACEOF
15059 /* end confdefs.h. */
15060 #include <sys/types.h>
15061 #include <sys/sysinfo.h>
15063 main ()
15065 struct sysinfo sinfo;
15066 int t;
15068 (void)sysinfo(&sinfo);
15069 t = sinfo.totalram;
15072 return 0;
15074 _ACEOF
15075 rm -f conftest.$ac_objext
15076 if { (ac_try="$ac_compile"
15077 case "(($ac_try" in
15078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15079 *) ac_try_echo=$ac_try;;
15080 esac
15081 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15082 $as_echo "$ac_try_echo") >&5
15083 (eval "$ac_compile") 2>conftest.er1
15084 ac_status=$?
15085 grep -v '^ *+' conftest.er1 >conftest.err
15086 rm -f conftest.er1
15087 cat conftest.err >&5
15088 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15089 (exit $ac_status); } && {
15090 test -z "$ac_c_werror_flag" ||
15091 test ! -s conftest.err
15092 } && test -s conftest.$ac_objext; then
15093 { $as_echo "$as_me:$LINENO: result: yes" >&5
15094 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15095 #define HAVE_SYSINFO 1
15096 _ACEOF
15098 else
15099 $as_echo "$as_me: failed program was:" >&5
15100 sed 's/^/| /' conftest.$ac_ext >&5
15102 { $as_echo "$as_me:$LINENO: result: not usable" >&5
15103 $as_echo "not usable" >&6; }
15106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15108 { $as_echo "$as_me:$LINENO: checking for sysinfo.mem_unit" >&5
15109 $as_echo_n "checking for sysinfo.mem_unit... " >&6; }
15110 cat >conftest.$ac_ext <<_ACEOF
15111 /* confdefs.h. */
15112 _ACEOF
15113 cat confdefs.h >>conftest.$ac_ext
15114 cat >>conftest.$ac_ext <<_ACEOF
15115 /* end confdefs.h. */
15116 #include <sys/types.h>
15117 #include <sys/sysinfo.h>
15119 main ()
15121 struct sysinfo sinfo;
15122 sinfo.mem_unit = 1;
15125 return 0;
15127 _ACEOF
15128 rm -f conftest.$ac_objext
15129 if { (ac_try="$ac_compile"
15130 case "(($ac_try" in
15131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15132 *) ac_try_echo=$ac_try;;
15133 esac
15134 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15135 $as_echo "$ac_try_echo") >&5
15136 (eval "$ac_compile") 2>conftest.er1
15137 ac_status=$?
15138 grep -v '^ *+' conftest.er1 >conftest.err
15139 rm -f conftest.er1
15140 cat conftest.err >&5
15141 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15142 (exit $ac_status); } && {
15143 test -z "$ac_c_werror_flag" ||
15144 test ! -s conftest.err
15145 } && test -s conftest.$ac_objext; then
15146 { $as_echo "$as_me:$LINENO: result: yes" >&5
15147 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15148 #define HAVE_SYSINFO_MEM_UNIT 1
15149 _ACEOF
15151 else
15152 $as_echo "$as_me: failed program was:" >&5
15153 sed 's/^/| /' conftest.$ac_ext >&5
15155 { $as_echo "$as_me:$LINENO: result: no" >&5
15156 $as_echo "no" >&6; }
15159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15161 { $as_echo "$as_me:$LINENO: checking for sysconf" >&5
15162 $as_echo_n "checking for sysconf... " >&6; }
15163 cat >conftest.$ac_ext <<_ACEOF
15164 /* confdefs.h. */
15165 _ACEOF
15166 cat confdefs.h >>conftest.$ac_ext
15167 cat >>conftest.$ac_ext <<_ACEOF
15168 /* end confdefs.h. */
15169 #include <unistd.h>
15171 main ()
15173 (void)sysconf(_SC_PAGESIZE);
15174 (void)sysconf(_SC_PHYS_PAGES);
15177 return 0;
15179 _ACEOF
15180 rm -f conftest.$ac_objext
15181 if { (ac_try="$ac_compile"
15182 case "(($ac_try" in
15183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15184 *) ac_try_echo=$ac_try;;
15185 esac
15186 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15187 $as_echo "$ac_try_echo") >&5
15188 (eval "$ac_compile") 2>conftest.er1
15189 ac_status=$?
15190 grep -v '^ *+' conftest.er1 >conftest.err
15191 rm -f conftest.er1
15192 cat conftest.err >&5
15193 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15194 (exit $ac_status); } && {
15195 test -z "$ac_c_werror_flag" ||
15196 test ! -s conftest.err
15197 } && test -s conftest.$ac_objext; then
15198 { $as_echo "$as_me:$LINENO: result: yes" >&5
15199 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15200 #define HAVE_SYSCONF 1
15201 _ACEOF
15203 else
15204 $as_echo "$as_me: failed program was:" >&5
15205 sed 's/^/| /' conftest.$ac_ext >&5
15207 { $as_echo "$as_me:$LINENO: result: not usable" >&5
15208 $as_echo "not usable" >&6; }
15211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15214 { $as_echo "$as_me:$LINENO: checking size of int" >&5
15215 $as_echo_n "checking size of int... " >&6; }
15216 if test "${ac_cv_sizeof_int+set}" = set; then
15217 $as_echo_n "(cached) " >&6
15218 else
15219 if test "$cross_compiling" = yes; then
15220 { { $as_echo "$as_me:$LINENO: error: failed to compile test program" >&5
15221 $as_echo "$as_me: error: failed to compile test program" >&2;}
15222 { (exit 1); exit 1; }; }
15223 else
15224 cat >conftest.$ac_ext <<_ACEOF
15225 /* confdefs.h. */
15226 _ACEOF
15227 cat confdefs.h >>conftest.$ac_ext
15228 cat >>conftest.$ac_ext <<_ACEOF
15229 /* end confdefs.h. */
15231 #include <stdio.h>
15232 #if STDC_HEADERS
15233 # include <stdlib.h>
15234 # include <stddef.h>
15235 #endif
15236 main()
15238 FILE *f=fopen("conftestval", "w");
15239 if (!f) exit(1);
15240 fprintf(f, "%d\n", (int)sizeof(int));
15241 exit(0);
15243 _ACEOF
15244 rm -f conftest$ac_exeext
15245 if { (ac_try="$ac_link"
15246 case "(($ac_try" in
15247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15248 *) ac_try_echo=$ac_try;;
15249 esac
15250 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15251 $as_echo "$ac_try_echo") >&5
15252 (eval "$ac_link") 2>&5
15253 ac_status=$?
15254 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15255 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15256 { (case "(($ac_try" in
15257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15258 *) ac_try_echo=$ac_try;;
15259 esac
15260 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15261 $as_echo "$ac_try_echo") >&5
15262 (eval "$ac_try") 2>&5
15263 ac_status=$?
15264 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15265 (exit $ac_status); }; }; then
15266 ac_cv_sizeof_int=`cat conftestval`
15267 else
15268 $as_echo "$as_me: program exited with status $ac_status" >&5
15269 $as_echo "$as_me: failed program was:" >&5
15270 sed 's/^/| /' conftest.$ac_ext >&5
15272 ( exit $ac_status )
15273 ac_cv_sizeof_int=0
15275 rm -rf conftest.dSYM
15276 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15282 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15283 $as_echo "$ac_cv_sizeof_int" >&6; }
15284 cat >>confdefs.h <<_ACEOF
15285 #define SIZEOF_INT $ac_cv_sizeof_int
15286 _ACEOF
15291 bcopy_test_prog='
15292 #include "confdefs.h"
15293 #ifdef HAVE_STRING_H
15294 # include <string.h>
15295 #endif
15296 #if STDC_HEADERS
15297 # include <stdlib.h>
15298 # include <stddef.h>
15299 #endif
15300 main() {
15301 char buf[10];
15302 strcpy(buf, "abcdefghi");
15303 mch_memmove(buf, buf + 2, 3);
15304 if (strncmp(buf, "ababcf", 6))
15305 exit(1);
15306 strcpy(buf, "abcdefghi");
15307 mch_memmove(buf + 2, buf, 3);
15308 if (strncmp(buf, "cdedef", 6))
15309 exit(1);
15310 exit(0); /* libc version works properly. */
15313 { $as_echo "$as_me:$LINENO: checking whether memmove handles overlaps" >&5
15314 $as_echo_n "checking whether memmove handles overlaps... " >&6; }
15315 if test "${vim_cv_memmove_handles_overlap+set}" = set; then
15316 $as_echo_n "(cached) " >&6
15317 else
15319 if test "$cross_compiling" = yes; then
15321 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_memmove_handles_overlap'" >&5
15322 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_memmove_handles_overlap'" >&2;}
15323 { (exit 1); exit 1; }; }
15325 else
15326 cat >conftest.$ac_ext <<_ACEOF
15327 #define mch_memmove(s,d,l) memmove(d,s,l) $bcopy_test_prog
15328 _ACEOF
15329 rm -f conftest$ac_exeext
15330 if { (ac_try="$ac_link"
15331 case "(($ac_try" in
15332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15333 *) ac_try_echo=$ac_try;;
15334 esac
15335 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15336 $as_echo "$ac_try_echo") >&5
15337 (eval "$ac_link") 2>&5
15338 ac_status=$?
15339 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15340 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15341 { (case "(($ac_try" in
15342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15343 *) ac_try_echo=$ac_try;;
15344 esac
15345 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15346 $as_echo "$ac_try_echo") >&5
15347 (eval "$ac_try") 2>&5
15348 ac_status=$?
15349 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15350 (exit $ac_status); }; }; then
15352 vim_cv_memmove_handles_overlap=yes
15354 else
15355 $as_echo "$as_me: program exited with status $ac_status" >&5
15356 $as_echo "$as_me: failed program was:" >&5
15357 sed 's/^/| /' conftest.$ac_ext >&5
15359 ( exit $ac_status )
15361 vim_cv_memmove_handles_overlap=no
15364 rm -rf conftest.dSYM
15365 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15371 { $as_echo "$as_me:$LINENO: result: $vim_cv_memmove_handles_overlap" >&5
15372 $as_echo "$vim_cv_memmove_handles_overlap" >&6; }
15374 if test "x$vim_cv_memmove_handles_overlap" = "xyes" ; then
15375 cat >>confdefs.h <<\_ACEOF
15376 #define USEMEMMOVE 1
15377 _ACEOF
15379 else
15380 { $as_echo "$as_me:$LINENO: checking whether bcopy handles overlaps" >&5
15381 $as_echo_n "checking whether bcopy handles overlaps... " >&6; }
15382 if test "${vim_cv_bcopy_handles_overlap+set}" = set; then
15383 $as_echo_n "(cached) " >&6
15384 else
15386 if test "$cross_compiling" = yes; then
15388 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_bcopy_handles_overlap'" >&5
15389 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_bcopy_handles_overlap'" >&2;}
15390 { (exit 1); exit 1; }; }
15392 else
15393 cat >conftest.$ac_ext <<_ACEOF
15394 #define mch_bcopy(s,d,l) bcopy(d,s,l) $bcopy_test_prog
15395 _ACEOF
15396 rm -f conftest$ac_exeext
15397 if { (ac_try="$ac_link"
15398 case "(($ac_try" in
15399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15400 *) ac_try_echo=$ac_try;;
15401 esac
15402 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15403 $as_echo "$ac_try_echo") >&5
15404 (eval "$ac_link") 2>&5
15405 ac_status=$?
15406 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15407 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15408 { (case "(($ac_try" in
15409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15410 *) ac_try_echo=$ac_try;;
15411 esac
15412 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15413 $as_echo "$ac_try_echo") >&5
15414 (eval "$ac_try") 2>&5
15415 ac_status=$?
15416 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15417 (exit $ac_status); }; }; then
15419 vim_cv_bcopy_handles_overlap=yes
15421 else
15422 $as_echo "$as_me: program exited with status $ac_status" >&5
15423 $as_echo "$as_me: failed program was:" >&5
15424 sed 's/^/| /' conftest.$ac_ext >&5
15426 ( exit $ac_status )
15428 vim_cv_bcopy_handles_overlap=no
15431 rm -rf conftest.dSYM
15432 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15438 { $as_echo "$as_me:$LINENO: result: $vim_cv_bcopy_handles_overlap" >&5
15439 $as_echo "$vim_cv_bcopy_handles_overlap" >&6; }
15441 if test "x$vim_cv_bcopy_handles_overlap" = "xyes" ; then
15442 cat >>confdefs.h <<\_ACEOF
15443 #define USEBCOPY 1
15444 _ACEOF
15446 else
15447 { $as_echo "$as_me:$LINENO: checking whether memcpy handles overlaps" >&5
15448 $as_echo_n "checking whether memcpy handles overlaps... " >&6; }
15449 if test "${vim_cv_memcpy_handles_overlap+set}" = set; then
15450 $as_echo_n "(cached) " >&6
15451 else
15453 if test "$cross_compiling" = yes; then
15455 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_memcpy_handles_overlap'" >&5
15456 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_memcpy_handles_overlap'" >&2;}
15457 { (exit 1); exit 1; }; }
15459 else
15460 cat >conftest.$ac_ext <<_ACEOF
15461 #define mch_memcpy(s,d,l) memcpy(d,s,l) $bcopy_test_prog
15462 _ACEOF
15463 rm -f conftest$ac_exeext
15464 if { (ac_try="$ac_link"
15465 case "(($ac_try" in
15466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15467 *) ac_try_echo=$ac_try;;
15468 esac
15469 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15470 $as_echo "$ac_try_echo") >&5
15471 (eval "$ac_link") 2>&5
15472 ac_status=$?
15473 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15474 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15475 { (case "(($ac_try" in
15476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15477 *) ac_try_echo=$ac_try;;
15478 esac
15479 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15480 $as_echo "$ac_try_echo") >&5
15481 (eval "$ac_try") 2>&5
15482 ac_status=$?
15483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15484 (exit $ac_status); }; }; then
15486 vim_cv_memcpy_handles_overlap=yes
15488 else
15489 $as_echo "$as_me: program exited with status $ac_status" >&5
15490 $as_echo "$as_me: failed program was:" >&5
15491 sed 's/^/| /' conftest.$ac_ext >&5
15493 ( exit $ac_status )
15495 vim_cv_memcpy_handles_overlap=no
15498 rm -rf conftest.dSYM
15499 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15505 { $as_echo "$as_me:$LINENO: result: $vim_cv_memcpy_handles_overlap" >&5
15506 $as_echo "$vim_cv_memcpy_handles_overlap" >&6; }
15508 if test "x$vim_cv_memcpy_handles_overlap" = "xyes" ; then
15509 cat >>confdefs.h <<\_ACEOF
15510 #define USEMEMCPY 1
15511 _ACEOF
15519 if test "$enable_multibyte" = "yes"; then
15520 cflags_save=$CFLAGS
15521 ldflags_save=$LDFLAGS
15522 if test -n "$x_includes" ; then
15523 CFLAGS="$CFLAGS -I$x_includes"
15524 LDFLAGS="$X_LIBS $LDFLAGS -lX11"
15525 { $as_echo "$as_me:$LINENO: checking whether X_LOCALE needed" >&5
15526 $as_echo_n "checking whether X_LOCALE needed... " >&6; }
15527 cat >conftest.$ac_ext <<_ACEOF
15528 /* confdefs.h. */
15529 _ACEOF
15530 cat confdefs.h >>conftest.$ac_ext
15531 cat >>conftest.$ac_ext <<_ACEOF
15532 /* end confdefs.h. */
15533 #include <X11/Xlocale.h>
15535 main ()
15539 return 0;
15541 _ACEOF
15542 rm -f conftest.$ac_objext
15543 if { (ac_try="$ac_compile"
15544 case "(($ac_try" in
15545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15546 *) ac_try_echo=$ac_try;;
15547 esac
15548 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15549 $as_echo "$ac_try_echo") >&5
15550 (eval "$ac_compile") 2>conftest.er1
15551 ac_status=$?
15552 grep -v '^ *+' conftest.er1 >conftest.err
15553 rm -f conftest.er1
15554 cat conftest.err >&5
15555 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15556 (exit $ac_status); } && {
15557 test -z "$ac_c_werror_flag" ||
15558 test ! -s conftest.err
15559 } && test -s conftest.$ac_objext; then
15560 cat >conftest.$ac_ext <<_ACEOF
15561 /* confdefs.h. */
15562 _ACEOF
15563 cat confdefs.h >>conftest.$ac_ext
15564 cat >>conftest.$ac_ext <<_ACEOF
15565 /* end confdefs.h. */
15567 /* Override any GCC internal prototype to avoid an error.
15568 Use char because int might match the return type of a GCC
15569 builtin and then its argument prototype would still apply. */
15570 #ifdef __cplusplus
15571 extern "C"
15572 #endif
15573 char _Xsetlocale ();
15575 main ()
15577 return _Xsetlocale ();
15579 return 0;
15581 _ACEOF
15582 rm -f conftest.$ac_objext conftest$ac_exeext
15583 if { (ac_try="$ac_link"
15584 case "(($ac_try" in
15585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15586 *) ac_try_echo=$ac_try;;
15587 esac
15588 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15589 $as_echo "$ac_try_echo") >&5
15590 (eval "$ac_link") 2>conftest.er1
15591 ac_status=$?
15592 grep -v '^ *+' conftest.er1 >conftest.err
15593 rm -f conftest.er1
15594 cat conftest.err >&5
15595 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15596 (exit $ac_status); } && {
15597 test -z "$ac_c_werror_flag" ||
15598 test ! -s conftest.err
15599 } && test -s conftest$ac_exeext && {
15600 test "$cross_compiling" = yes ||
15601 $as_test_x conftest$ac_exeext
15602 }; then
15603 { $as_echo "$as_me:$LINENO: result: yes" >&5
15604 $as_echo "yes" >&6; }
15605 cat >>confdefs.h <<\_ACEOF
15606 #define X_LOCALE 1
15607 _ACEOF
15609 else
15610 $as_echo "$as_me: failed program was:" >&5
15611 sed 's/^/| /' conftest.$ac_ext >&5
15613 { $as_echo "$as_me:$LINENO: result: no" >&5
15614 $as_echo "no" >&6; }
15617 rm -rf conftest.dSYM
15618 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15619 conftest$ac_exeext conftest.$ac_ext
15620 else
15621 $as_echo "$as_me: failed program was:" >&5
15622 sed 's/^/| /' conftest.$ac_ext >&5
15624 { $as_echo "$as_me:$LINENO: result: no" >&5
15625 $as_echo "no" >&6; }
15628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15630 CFLAGS=$cflags_save
15631 LDFLAGS=$ldflags_save
15634 { $as_echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
15635 $as_echo_n "checking for _xpg4_setrunelocale in -lxpg4... " >&6; }
15636 if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
15637 $as_echo_n "(cached) " >&6
15638 else
15639 ac_check_lib_save_LIBS=$LIBS
15640 LIBS="-lxpg4 $LIBS"
15641 cat >conftest.$ac_ext <<_ACEOF
15642 /* confdefs.h. */
15643 _ACEOF
15644 cat confdefs.h >>conftest.$ac_ext
15645 cat >>conftest.$ac_ext <<_ACEOF
15646 /* end confdefs.h. */
15648 /* Override any GCC internal prototype to avoid an error.
15649 Use char because int might match the return type of a GCC
15650 builtin and then its argument prototype would still apply. */
15651 #ifdef __cplusplus
15652 extern "C"
15653 #endif
15654 char _xpg4_setrunelocale ();
15656 main ()
15658 return _xpg4_setrunelocale ();
15660 return 0;
15662 _ACEOF
15663 rm -f conftest.$ac_objext conftest$ac_exeext
15664 if { (ac_try="$ac_link"
15665 case "(($ac_try" in
15666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15667 *) ac_try_echo=$ac_try;;
15668 esac
15669 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15670 $as_echo "$ac_try_echo") >&5
15671 (eval "$ac_link") 2>conftest.er1
15672 ac_status=$?
15673 grep -v '^ *+' conftest.er1 >conftest.err
15674 rm -f conftest.er1
15675 cat conftest.err >&5
15676 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15677 (exit $ac_status); } && {
15678 test -z "$ac_c_werror_flag" ||
15679 test ! -s conftest.err
15680 } && test -s conftest$ac_exeext && {
15681 test "$cross_compiling" = yes ||
15682 $as_test_x conftest$ac_exeext
15683 }; then
15684 ac_cv_lib_xpg4__xpg4_setrunelocale=yes
15685 else
15686 $as_echo "$as_me: failed program was:" >&5
15687 sed 's/^/| /' conftest.$ac_ext >&5
15689 ac_cv_lib_xpg4__xpg4_setrunelocale=no
15692 rm -rf conftest.dSYM
15693 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15694 conftest$ac_exeext conftest.$ac_ext
15695 LIBS=$ac_check_lib_save_LIBS
15697 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
15698 $as_echo "$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6; }
15699 if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
15700 LIBS="$LIBS -lxpg4"
15704 { $as_echo "$as_me:$LINENO: checking how to create tags" >&5
15705 $as_echo_n "checking how to create tags... " >&6; }
15706 test -f tags && mv tags tags.save
15707 if (eval ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then
15708 TAGPRG="ctags -I INIT+ --fields=+S"
15709 else
15710 (eval etags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags"
15711 (eval etags -c /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags -c"
15712 (eval ctags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags"
15713 (eval ctags -t /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -t"
15714 (eval ctags -ts /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -ts"
15715 (eval ctags -tvs /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -tvs"
15716 (eval ctags -i+m /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -i+m"
15718 test -f tags.save && mv tags.save tags
15719 { $as_echo "$as_me:$LINENO: result: $TAGPRG" >&5
15720 $as_echo "$TAGPRG" >&6; }
15722 { $as_echo "$as_me:$LINENO: checking how to run man with a section nr" >&5
15723 $as_echo_n "checking how to run man with a section nr... " >&6; }
15724 MANDEF="man"
15725 (eval MANPAGER=cat PAGER=cat man -s 2 read) < /dev/null > /dev/null 2>&5 && MANDEF="man -s"
15726 { $as_echo "$as_me:$LINENO: result: $MANDEF" >&5
15727 $as_echo "$MANDEF" >&6; }
15728 if test "$MANDEF" = "man -s"; then
15729 cat >>confdefs.h <<\_ACEOF
15730 #define USEMAN_S 1
15731 _ACEOF
15735 { $as_echo "$as_me:$LINENO: checking --disable-nls argument" >&5
15736 $as_echo_n "checking --disable-nls argument... " >&6; }
15737 # Check whether --enable-nls was given.
15738 if test "${enable_nls+set}" = set; then
15739 enableval=$enable_nls;
15740 else
15741 enable_nls="yes"
15745 if test "$enable_nls" = "yes"; then
15746 { $as_echo "$as_me:$LINENO: result: no" >&5
15747 $as_echo "no" >&6; }
15749 INSTALL_LANGS=install-languages
15751 INSTALL_TOOL_LANGS=install-tool-languages
15754 # Extract the first word of "msgfmt", so it can be a program name with args.
15755 set dummy msgfmt; ac_word=$2
15756 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
15757 $as_echo_n "checking for $ac_word... " >&6; }
15758 if test "${ac_cv_prog_MSGFMT+set}" = set; then
15759 $as_echo_n "(cached) " >&6
15760 else
15761 if test -n "$MSGFMT"; then
15762 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
15763 else
15764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15765 for as_dir in $PATH
15767 IFS=$as_save_IFS
15768 test -z "$as_dir" && as_dir=.
15769 for ac_exec_ext in '' $ac_executable_extensions; do
15770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15771 ac_cv_prog_MSGFMT="msgfmt"
15772 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15773 break 2
15775 done
15776 done
15777 IFS=$as_save_IFS
15781 MSGFMT=$ac_cv_prog_MSGFMT
15782 if test -n "$MSGFMT"; then
15783 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
15784 $as_echo "$MSGFMT" >&6; }
15785 else
15786 { $as_echo "$as_me:$LINENO: result: no" >&5
15787 $as_echo "no" >&6; }
15791 { $as_echo "$as_me:$LINENO: checking for NLS" >&5
15792 $as_echo_n "checking for NLS... " >&6; }
15793 if test -f po/Makefile; then
15794 have_gettext="no"
15795 if test -n "$MSGFMT"; then
15796 cat >conftest.$ac_ext <<_ACEOF
15797 /* confdefs.h. */
15798 _ACEOF
15799 cat confdefs.h >>conftest.$ac_ext
15800 cat >>conftest.$ac_ext <<_ACEOF
15801 /* end confdefs.h. */
15802 #include <libintl.h>
15804 main ()
15806 gettext("Test");
15808 return 0;
15810 _ACEOF
15811 rm -f conftest.$ac_objext conftest$ac_exeext
15812 if { (ac_try="$ac_link"
15813 case "(($ac_try" in
15814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15815 *) ac_try_echo=$ac_try;;
15816 esac
15817 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15818 $as_echo "$ac_try_echo") >&5
15819 (eval "$ac_link") 2>conftest.er1
15820 ac_status=$?
15821 grep -v '^ *+' conftest.er1 >conftest.err
15822 rm -f conftest.er1
15823 cat conftest.err >&5
15824 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15825 (exit $ac_status); } && {
15826 test -z "$ac_c_werror_flag" ||
15827 test ! -s conftest.err
15828 } && test -s conftest$ac_exeext && {
15829 test "$cross_compiling" = yes ||
15830 $as_test_x conftest$ac_exeext
15831 }; then
15832 { $as_echo "$as_me:$LINENO: result: gettext() works" >&5
15833 $as_echo "gettext() works" >&6; }; have_gettext="yes"
15834 else
15835 $as_echo "$as_me: failed program was:" >&5
15836 sed 's/^/| /' conftest.$ac_ext >&5
15838 olibs=$LIBS
15839 LIBS="$LIBS -lintl"
15840 cat >conftest.$ac_ext <<_ACEOF
15841 /* confdefs.h. */
15842 _ACEOF
15843 cat confdefs.h >>conftest.$ac_ext
15844 cat >>conftest.$ac_ext <<_ACEOF
15845 /* end confdefs.h. */
15846 #include <libintl.h>
15848 main ()
15850 gettext("Test");
15852 return 0;
15854 _ACEOF
15855 rm -f conftest.$ac_objext conftest$ac_exeext
15856 if { (ac_try="$ac_link"
15857 case "(($ac_try" in
15858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15859 *) ac_try_echo=$ac_try;;
15860 esac
15861 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15862 $as_echo "$ac_try_echo") >&5
15863 (eval "$ac_link") 2>conftest.er1
15864 ac_status=$?
15865 grep -v '^ *+' conftest.er1 >conftest.err
15866 rm -f conftest.er1
15867 cat conftest.err >&5
15868 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15869 (exit $ac_status); } && {
15870 test -z "$ac_c_werror_flag" ||
15871 test ! -s conftest.err
15872 } && test -s conftest$ac_exeext && {
15873 test "$cross_compiling" = yes ||
15874 $as_test_x conftest$ac_exeext
15875 }; then
15876 { $as_echo "$as_me:$LINENO: result: gettext() works with -lintl" >&5
15877 $as_echo "gettext() works with -lintl" >&6; }; have_gettext="yes"
15878 else
15879 $as_echo "$as_me: failed program was:" >&5
15880 sed 's/^/| /' conftest.$ac_ext >&5
15882 { $as_echo "$as_me:$LINENO: result: gettext() doesn't work" >&5
15883 $as_echo "gettext() doesn't work" >&6; };
15884 LIBS=$olibs
15887 rm -rf conftest.dSYM
15888 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15889 conftest$ac_exeext conftest.$ac_ext
15892 rm -rf conftest.dSYM
15893 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15894 conftest$ac_exeext conftest.$ac_ext
15895 else
15896 { $as_echo "$as_me:$LINENO: result: msgfmt not found - disabled" >&5
15897 $as_echo "msgfmt not found - disabled" >&6; };
15899 if test $have_gettext = "yes"; then
15900 cat >>confdefs.h <<\_ACEOF
15901 #define HAVE_GETTEXT 1
15902 _ACEOF
15904 MAKEMO=yes
15907 for ac_func in bind_textdomain_codeset
15909 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15910 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
15911 $as_echo_n "checking for $ac_func... " >&6; }
15912 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15913 $as_echo_n "(cached) " >&6
15914 else
15915 cat >conftest.$ac_ext <<_ACEOF
15916 /* confdefs.h. */
15917 _ACEOF
15918 cat confdefs.h >>conftest.$ac_ext
15919 cat >>conftest.$ac_ext <<_ACEOF
15920 /* end confdefs.h. */
15921 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15922 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15923 #define $ac_func innocuous_$ac_func
15925 /* System header to define __stub macros and hopefully few prototypes,
15926 which can conflict with char $ac_func (); below.
15927 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15928 <limits.h> exists even on freestanding compilers. */
15930 #ifdef __STDC__
15931 # include <limits.h>
15932 #else
15933 # include <assert.h>
15934 #endif
15936 #undef $ac_func
15938 /* Override any GCC internal prototype to avoid an error.
15939 Use char because int might match the return type of a GCC
15940 builtin and then its argument prototype would still apply. */
15941 #ifdef __cplusplus
15942 extern "C"
15943 #endif
15944 char $ac_func ();
15945 /* The GNU C library defines this for functions which it implements
15946 to always fail with ENOSYS. Some functions are actually named
15947 something starting with __ and the normal name is an alias. */
15948 #if defined __stub_$ac_func || defined __stub___$ac_func
15949 choke me
15950 #endif
15953 main ()
15955 return $ac_func ();
15957 return 0;
15959 _ACEOF
15960 rm -f conftest.$ac_objext conftest$ac_exeext
15961 if { (ac_try="$ac_link"
15962 case "(($ac_try" in
15963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15964 *) ac_try_echo=$ac_try;;
15965 esac
15966 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15967 $as_echo "$ac_try_echo") >&5
15968 (eval "$ac_link") 2>conftest.er1
15969 ac_status=$?
15970 grep -v '^ *+' conftest.er1 >conftest.err
15971 rm -f conftest.er1
15972 cat conftest.err >&5
15973 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15974 (exit $ac_status); } && {
15975 test -z "$ac_c_werror_flag" ||
15976 test ! -s conftest.err
15977 } && test -s conftest$ac_exeext && {
15978 test "$cross_compiling" = yes ||
15979 $as_test_x conftest$ac_exeext
15980 }; then
15981 eval "$as_ac_var=yes"
15982 else
15983 $as_echo "$as_me: failed program was:" >&5
15984 sed 's/^/| /' conftest.$ac_ext >&5
15986 eval "$as_ac_var=no"
15989 rm -rf conftest.dSYM
15990 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15991 conftest$ac_exeext conftest.$ac_ext
15993 ac_res=`eval 'as_val=${'$as_ac_var'}
15994 $as_echo "$as_val"'`
15995 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15996 $as_echo "$ac_res" >&6; }
15997 if test `eval 'as_val=${'$as_ac_var'}
15998 $as_echo "$as_val"'` = yes; then
15999 cat >>confdefs.h <<_ACEOF
16000 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16001 _ACEOF
16004 done
16006 { $as_echo "$as_me:$LINENO: checking for _nl_msg_cat_cntr" >&5
16007 $as_echo_n "checking for _nl_msg_cat_cntr... " >&6; }
16008 cat >conftest.$ac_ext <<_ACEOF
16009 /* confdefs.h. */
16010 _ACEOF
16011 cat confdefs.h >>conftest.$ac_ext
16012 cat >>conftest.$ac_ext <<_ACEOF
16013 /* end confdefs.h. */
16014 #include <libintl.h>
16015 extern int _nl_msg_cat_cntr;
16017 main ()
16019 ++_nl_msg_cat_cntr;
16021 return 0;
16023 _ACEOF
16024 rm -f conftest.$ac_objext conftest$ac_exeext
16025 if { (ac_try="$ac_link"
16026 case "(($ac_try" in
16027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16028 *) ac_try_echo=$ac_try;;
16029 esac
16030 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16031 $as_echo "$ac_try_echo") >&5
16032 (eval "$ac_link") 2>conftest.er1
16033 ac_status=$?
16034 grep -v '^ *+' conftest.er1 >conftest.err
16035 rm -f conftest.er1
16036 cat conftest.err >&5
16037 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16038 (exit $ac_status); } && {
16039 test -z "$ac_c_werror_flag" ||
16040 test ! -s conftest.err
16041 } && test -s conftest$ac_exeext && {
16042 test "$cross_compiling" = yes ||
16043 $as_test_x conftest$ac_exeext
16044 }; then
16045 { $as_echo "$as_me:$LINENO: result: yes" >&5
16046 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
16047 #define HAVE_NL_MSG_CAT_CNTR 1
16048 _ACEOF
16050 else
16051 $as_echo "$as_me: failed program was:" >&5
16052 sed 's/^/| /' conftest.$ac_ext >&5
16054 { $as_echo "$as_me:$LINENO: result: no" >&5
16055 $as_echo "no" >&6; }
16058 rm -rf conftest.dSYM
16059 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16060 conftest$ac_exeext conftest.$ac_ext
16062 else
16063 { $as_echo "$as_me:$LINENO: result: no \"po/Makefile\" - disabled" >&5
16064 $as_echo "no \"po/Makefile\" - disabled" >&6; };
16066 else
16067 { $as_echo "$as_me:$LINENO: result: yes" >&5
16068 $as_echo "yes" >&6; }
16071 if test "${ac_cv_header_dlfcn_h+set}" = set; then
16072 { $as_echo "$as_me:$LINENO: checking for dlfcn.h" >&5
16073 $as_echo_n "checking for dlfcn.h... " >&6; }
16074 if test "${ac_cv_header_dlfcn_h+set}" = set; then
16075 $as_echo_n "(cached) " >&6
16077 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
16078 $as_echo "$ac_cv_header_dlfcn_h" >&6; }
16079 else
16080 # Is the header compilable?
16081 { $as_echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
16082 $as_echo_n "checking dlfcn.h usability... " >&6; }
16083 cat >conftest.$ac_ext <<_ACEOF
16084 /* confdefs.h. */
16085 _ACEOF
16086 cat confdefs.h >>conftest.$ac_ext
16087 cat >>conftest.$ac_ext <<_ACEOF
16088 /* end confdefs.h. */
16089 $ac_includes_default
16090 #include <dlfcn.h>
16091 _ACEOF
16092 rm -f conftest.$ac_objext
16093 if { (ac_try="$ac_compile"
16094 case "(($ac_try" in
16095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16096 *) ac_try_echo=$ac_try;;
16097 esac
16098 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16099 $as_echo "$ac_try_echo") >&5
16100 (eval "$ac_compile") 2>conftest.er1
16101 ac_status=$?
16102 grep -v '^ *+' conftest.er1 >conftest.err
16103 rm -f conftest.er1
16104 cat conftest.err >&5
16105 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16106 (exit $ac_status); } && {
16107 test -z "$ac_c_werror_flag" ||
16108 test ! -s conftest.err
16109 } && test -s conftest.$ac_objext; then
16110 ac_header_compiler=yes
16111 else
16112 $as_echo "$as_me: failed program was:" >&5
16113 sed 's/^/| /' conftest.$ac_ext >&5
16115 ac_header_compiler=no
16118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16119 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16120 $as_echo "$ac_header_compiler" >&6; }
16122 # Is the header present?
16123 { $as_echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
16124 $as_echo_n "checking dlfcn.h presence... " >&6; }
16125 cat >conftest.$ac_ext <<_ACEOF
16126 /* confdefs.h. */
16127 _ACEOF
16128 cat confdefs.h >>conftest.$ac_ext
16129 cat >>conftest.$ac_ext <<_ACEOF
16130 /* end confdefs.h. */
16131 #include <dlfcn.h>
16132 _ACEOF
16133 if { (ac_try="$ac_cpp conftest.$ac_ext"
16134 case "(($ac_try" in
16135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16136 *) ac_try_echo=$ac_try;;
16137 esac
16138 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16139 $as_echo "$ac_try_echo") >&5
16140 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16141 ac_status=$?
16142 grep -v '^ *+' conftest.er1 >conftest.err
16143 rm -f conftest.er1
16144 cat conftest.err >&5
16145 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16146 (exit $ac_status); } >/dev/null && {
16147 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16148 test ! -s conftest.err
16149 }; then
16150 ac_header_preproc=yes
16151 else
16152 $as_echo "$as_me: failed program was:" >&5
16153 sed 's/^/| /' conftest.$ac_ext >&5
16155 ac_header_preproc=no
16158 rm -f conftest.err conftest.$ac_ext
16159 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16160 $as_echo "$ac_header_preproc" >&6; }
16162 # So? What about this header?
16163 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16164 yes:no: )
16165 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
16166 $as_echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16167 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5
16168 $as_echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;}
16169 ac_header_preproc=yes
16171 no:yes:* )
16172 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
16173 $as_echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
16174 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5
16175 $as_echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;}
16176 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5
16177 $as_echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;}
16178 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5
16179 $as_echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;}
16180 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
16181 $as_echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
16182 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5
16183 $as_echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;}
16186 esac
16187 { $as_echo "$as_me:$LINENO: checking for dlfcn.h" >&5
16188 $as_echo_n "checking for dlfcn.h... " >&6; }
16189 if test "${ac_cv_header_dlfcn_h+set}" = set; then
16190 $as_echo_n "(cached) " >&6
16191 else
16192 ac_cv_header_dlfcn_h=$ac_header_preproc
16194 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
16195 $as_echo "$ac_cv_header_dlfcn_h" >&6; }
16198 if test $ac_cv_header_dlfcn_h = yes; then
16199 DLL=dlfcn.h
16200 else
16201 if test "${ac_cv_header_dl_h+set}" = set; then
16202 { $as_echo "$as_me:$LINENO: checking for dl.h" >&5
16203 $as_echo_n "checking for dl.h... " >&6; }
16204 if test "${ac_cv_header_dl_h+set}" = set; then
16205 $as_echo_n "(cached) " >&6
16207 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5
16208 $as_echo "$ac_cv_header_dl_h" >&6; }
16209 else
16210 # Is the header compilable?
16211 { $as_echo "$as_me:$LINENO: checking dl.h usability" >&5
16212 $as_echo_n "checking dl.h usability... " >&6; }
16213 cat >conftest.$ac_ext <<_ACEOF
16214 /* confdefs.h. */
16215 _ACEOF
16216 cat confdefs.h >>conftest.$ac_ext
16217 cat >>conftest.$ac_ext <<_ACEOF
16218 /* end confdefs.h. */
16219 $ac_includes_default
16220 #include <dl.h>
16221 _ACEOF
16222 rm -f conftest.$ac_objext
16223 if { (ac_try="$ac_compile"
16224 case "(($ac_try" in
16225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16226 *) ac_try_echo=$ac_try;;
16227 esac
16228 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16229 $as_echo "$ac_try_echo") >&5
16230 (eval "$ac_compile") 2>conftest.er1
16231 ac_status=$?
16232 grep -v '^ *+' conftest.er1 >conftest.err
16233 rm -f conftest.er1
16234 cat conftest.err >&5
16235 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16236 (exit $ac_status); } && {
16237 test -z "$ac_c_werror_flag" ||
16238 test ! -s conftest.err
16239 } && test -s conftest.$ac_objext; then
16240 ac_header_compiler=yes
16241 else
16242 $as_echo "$as_me: failed program was:" >&5
16243 sed 's/^/| /' conftest.$ac_ext >&5
16245 ac_header_compiler=no
16248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16249 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16250 $as_echo "$ac_header_compiler" >&6; }
16252 # Is the header present?
16253 { $as_echo "$as_me:$LINENO: checking dl.h presence" >&5
16254 $as_echo_n "checking dl.h presence... " >&6; }
16255 cat >conftest.$ac_ext <<_ACEOF
16256 /* confdefs.h. */
16257 _ACEOF
16258 cat confdefs.h >>conftest.$ac_ext
16259 cat >>conftest.$ac_ext <<_ACEOF
16260 /* end confdefs.h. */
16261 #include <dl.h>
16262 _ACEOF
16263 if { (ac_try="$ac_cpp conftest.$ac_ext"
16264 case "(($ac_try" in
16265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16266 *) ac_try_echo=$ac_try;;
16267 esac
16268 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16269 $as_echo "$ac_try_echo") >&5
16270 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16271 ac_status=$?
16272 grep -v '^ *+' conftest.er1 >conftest.err
16273 rm -f conftest.er1
16274 cat conftest.err >&5
16275 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16276 (exit $ac_status); } >/dev/null && {
16277 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16278 test ! -s conftest.err
16279 }; then
16280 ac_header_preproc=yes
16281 else
16282 $as_echo "$as_me: failed program was:" >&5
16283 sed 's/^/| /' conftest.$ac_ext >&5
16285 ac_header_preproc=no
16288 rm -f conftest.err conftest.$ac_ext
16289 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16290 $as_echo "$ac_header_preproc" >&6; }
16292 # So? What about this header?
16293 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16294 yes:no: )
16295 { $as_echo "$as_me:$LINENO: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&5
16296 $as_echo "$as_me: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16297 { $as_echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the compiler's result" >&5
16298 $as_echo "$as_me: WARNING: dl.h: proceeding with the compiler's result" >&2;}
16299 ac_header_preproc=yes
16301 no:yes:* )
16302 { $as_echo "$as_me:$LINENO: WARNING: dl.h: present but cannot be compiled" >&5
16303 $as_echo "$as_me: WARNING: dl.h: present but cannot be compiled" >&2;}
16304 { $as_echo "$as_me:$LINENO: WARNING: dl.h: check for missing prerequisite headers?" >&5
16305 $as_echo "$as_me: WARNING: dl.h: check for missing prerequisite headers?" >&2;}
16306 { $as_echo "$as_me:$LINENO: WARNING: dl.h: see the Autoconf documentation" >&5
16307 $as_echo "$as_me: WARNING: dl.h: see the Autoconf documentation" >&2;}
16308 { $as_echo "$as_me:$LINENO: WARNING: dl.h: section \"Present But Cannot Be Compiled\"" >&5
16309 $as_echo "$as_me: WARNING: dl.h: section \"Present But Cannot Be Compiled\"" >&2;}
16310 { $as_echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the preprocessor's result" >&5
16311 $as_echo "$as_me: WARNING: dl.h: proceeding with the preprocessor's result" >&2;}
16312 { $as_echo "$as_me:$LINENO: WARNING: dl.h: in the future, the compiler will take precedence" >&5
16313 $as_echo "$as_me: WARNING: dl.h: in the future, the compiler will take precedence" >&2;}
16316 esac
16317 { $as_echo "$as_me:$LINENO: checking for dl.h" >&5
16318 $as_echo_n "checking for dl.h... " >&6; }
16319 if test "${ac_cv_header_dl_h+set}" = set; then
16320 $as_echo_n "(cached) " >&6
16321 else
16322 ac_cv_header_dl_h=$ac_header_preproc
16324 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5
16325 $as_echo "$ac_cv_header_dl_h" >&6; }
16328 if test $ac_cv_header_dl_h = yes; then
16329 DLL=dl.h
16336 if test x${DLL} = xdlfcn.h; then
16338 cat >>confdefs.h <<\_ACEOF
16339 #define HAVE_DLFCN_H 1
16340 _ACEOF
16342 { $as_echo "$as_me:$LINENO: checking for dlopen()" >&5
16343 $as_echo_n "checking for dlopen()... " >&6; }
16344 cat >conftest.$ac_ext <<_ACEOF
16345 /* confdefs.h. */
16346 _ACEOF
16347 cat confdefs.h >>conftest.$ac_ext
16348 cat >>conftest.$ac_ext <<_ACEOF
16349 /* end confdefs.h. */
16352 main ()
16355 extern void* dlopen();
16356 dlopen();
16359 return 0;
16361 _ACEOF
16362 rm -f conftest.$ac_objext conftest$ac_exeext
16363 if { (ac_try="$ac_link"
16364 case "(($ac_try" in
16365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16366 *) ac_try_echo=$ac_try;;
16367 esac
16368 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16369 $as_echo "$ac_try_echo") >&5
16370 (eval "$ac_link") 2>conftest.er1
16371 ac_status=$?
16372 grep -v '^ *+' conftest.er1 >conftest.err
16373 rm -f conftest.er1
16374 cat conftest.err >&5
16375 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16376 (exit $ac_status); } && {
16377 test -z "$ac_c_werror_flag" ||
16378 test ! -s conftest.err
16379 } && test -s conftest$ac_exeext && {
16380 test "$cross_compiling" = yes ||
16381 $as_test_x conftest$ac_exeext
16382 }; then
16383 { $as_echo "$as_me:$LINENO: result: yes" >&5
16384 $as_echo "yes" >&6; };
16386 cat >>confdefs.h <<\_ACEOF
16387 #define HAVE_DLOPEN 1
16388 _ACEOF
16390 else
16391 $as_echo "$as_me: failed program was:" >&5
16392 sed 's/^/| /' conftest.$ac_ext >&5
16394 { $as_echo "$as_me:$LINENO: result: no" >&5
16395 $as_echo "no" >&6; };
16396 { $as_echo "$as_me:$LINENO: checking for dlopen() in -ldl" >&5
16397 $as_echo_n "checking for dlopen() in -ldl... " >&6; }
16398 olibs=$LIBS
16399 LIBS="$LIBS -ldl"
16400 cat >conftest.$ac_ext <<_ACEOF
16401 /* confdefs.h. */
16402 _ACEOF
16403 cat confdefs.h >>conftest.$ac_ext
16404 cat >>conftest.$ac_ext <<_ACEOF
16405 /* end confdefs.h. */
16408 main ()
16411 extern void* dlopen();
16412 dlopen();
16415 return 0;
16417 _ACEOF
16418 rm -f conftest.$ac_objext conftest$ac_exeext
16419 if { (ac_try="$ac_link"
16420 case "(($ac_try" in
16421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16422 *) ac_try_echo=$ac_try;;
16423 esac
16424 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16425 $as_echo "$ac_try_echo") >&5
16426 (eval "$ac_link") 2>conftest.er1
16427 ac_status=$?
16428 grep -v '^ *+' conftest.er1 >conftest.err
16429 rm -f conftest.er1
16430 cat conftest.err >&5
16431 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16432 (exit $ac_status); } && {
16433 test -z "$ac_c_werror_flag" ||
16434 test ! -s conftest.err
16435 } && test -s conftest$ac_exeext && {
16436 test "$cross_compiling" = yes ||
16437 $as_test_x conftest$ac_exeext
16438 }; then
16439 { $as_echo "$as_me:$LINENO: result: yes" >&5
16440 $as_echo "yes" >&6; };
16442 cat >>confdefs.h <<\_ACEOF
16443 #define HAVE_DLOPEN 1
16444 _ACEOF
16446 else
16447 $as_echo "$as_me: failed program was:" >&5
16448 sed 's/^/| /' conftest.$ac_ext >&5
16450 { $as_echo "$as_me:$LINENO: result: no" >&5
16451 $as_echo "no" >&6; };
16452 LIBS=$olibs
16455 rm -rf conftest.dSYM
16456 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16457 conftest$ac_exeext conftest.$ac_ext
16460 rm -rf conftest.dSYM
16461 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16462 conftest$ac_exeext conftest.$ac_ext
16463 { $as_echo "$as_me:$LINENO: checking for dlsym()" >&5
16464 $as_echo_n "checking for dlsym()... " >&6; }
16465 cat >conftest.$ac_ext <<_ACEOF
16466 /* confdefs.h. */
16467 _ACEOF
16468 cat confdefs.h >>conftest.$ac_ext
16469 cat >>conftest.$ac_ext <<_ACEOF
16470 /* end confdefs.h. */
16473 main ()
16476 extern void* dlsym();
16477 dlsym();
16480 return 0;
16482 _ACEOF
16483 rm -f conftest.$ac_objext conftest$ac_exeext
16484 if { (ac_try="$ac_link"
16485 case "(($ac_try" in
16486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16487 *) ac_try_echo=$ac_try;;
16488 esac
16489 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16490 $as_echo "$ac_try_echo") >&5
16491 (eval "$ac_link") 2>conftest.er1
16492 ac_status=$?
16493 grep -v '^ *+' conftest.er1 >conftest.err
16494 rm -f conftest.er1
16495 cat conftest.err >&5
16496 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16497 (exit $ac_status); } && {
16498 test -z "$ac_c_werror_flag" ||
16499 test ! -s conftest.err
16500 } && test -s conftest$ac_exeext && {
16501 test "$cross_compiling" = yes ||
16502 $as_test_x conftest$ac_exeext
16503 }; then
16504 { $as_echo "$as_me:$LINENO: result: yes" >&5
16505 $as_echo "yes" >&6; };
16507 cat >>confdefs.h <<\_ACEOF
16508 #define HAVE_DLSYM 1
16509 _ACEOF
16511 else
16512 $as_echo "$as_me: failed program was:" >&5
16513 sed 's/^/| /' conftest.$ac_ext >&5
16515 { $as_echo "$as_me:$LINENO: result: no" >&5
16516 $as_echo "no" >&6; };
16517 { $as_echo "$as_me:$LINENO: checking for dlsym() in -ldl" >&5
16518 $as_echo_n "checking for dlsym() in -ldl... " >&6; }
16519 olibs=$LIBS
16520 LIBS="$LIBS -ldl"
16521 cat >conftest.$ac_ext <<_ACEOF
16522 /* confdefs.h. */
16523 _ACEOF
16524 cat confdefs.h >>conftest.$ac_ext
16525 cat >>conftest.$ac_ext <<_ACEOF
16526 /* end confdefs.h. */
16529 main ()
16532 extern void* dlsym();
16533 dlsym();
16536 return 0;
16538 _ACEOF
16539 rm -f conftest.$ac_objext conftest$ac_exeext
16540 if { (ac_try="$ac_link"
16541 case "(($ac_try" in
16542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16543 *) ac_try_echo=$ac_try;;
16544 esac
16545 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16546 $as_echo "$ac_try_echo") >&5
16547 (eval "$ac_link") 2>conftest.er1
16548 ac_status=$?
16549 grep -v '^ *+' conftest.er1 >conftest.err
16550 rm -f conftest.er1
16551 cat conftest.err >&5
16552 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16553 (exit $ac_status); } && {
16554 test -z "$ac_c_werror_flag" ||
16555 test ! -s conftest.err
16556 } && test -s conftest$ac_exeext && {
16557 test "$cross_compiling" = yes ||
16558 $as_test_x conftest$ac_exeext
16559 }; then
16560 { $as_echo "$as_me:$LINENO: result: yes" >&5
16561 $as_echo "yes" >&6; };
16563 cat >>confdefs.h <<\_ACEOF
16564 #define HAVE_DLSYM 1
16565 _ACEOF
16567 else
16568 $as_echo "$as_me: failed program was:" >&5
16569 sed 's/^/| /' conftest.$ac_ext >&5
16571 { $as_echo "$as_me:$LINENO: result: no" >&5
16572 $as_echo "no" >&6; };
16573 LIBS=$olibs
16576 rm -rf conftest.dSYM
16577 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16578 conftest$ac_exeext conftest.$ac_ext
16581 rm -rf conftest.dSYM
16582 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16583 conftest$ac_exeext conftest.$ac_ext
16584 elif test x${DLL} = xdl.h; then
16586 cat >>confdefs.h <<\_ACEOF
16587 #define HAVE_DL_H 1
16588 _ACEOF
16590 { $as_echo "$as_me:$LINENO: checking for shl_load()" >&5
16591 $as_echo_n "checking for shl_load()... " >&6; }
16592 cat >conftest.$ac_ext <<_ACEOF
16593 /* confdefs.h. */
16594 _ACEOF
16595 cat confdefs.h >>conftest.$ac_ext
16596 cat >>conftest.$ac_ext <<_ACEOF
16597 /* end confdefs.h. */
16600 main ()
16603 extern void* shl_load();
16604 shl_load();
16607 return 0;
16609 _ACEOF
16610 rm -f conftest.$ac_objext conftest$ac_exeext
16611 if { (ac_try="$ac_link"
16612 case "(($ac_try" in
16613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16614 *) ac_try_echo=$ac_try;;
16615 esac
16616 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16617 $as_echo "$ac_try_echo") >&5
16618 (eval "$ac_link") 2>conftest.er1
16619 ac_status=$?
16620 grep -v '^ *+' conftest.er1 >conftest.err
16621 rm -f conftest.er1
16622 cat conftest.err >&5
16623 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16624 (exit $ac_status); } && {
16625 test -z "$ac_c_werror_flag" ||
16626 test ! -s conftest.err
16627 } && test -s conftest$ac_exeext && {
16628 test "$cross_compiling" = yes ||
16629 $as_test_x conftest$ac_exeext
16630 }; then
16631 { $as_echo "$as_me:$LINENO: result: yes" >&5
16632 $as_echo "yes" >&6; };
16634 cat >>confdefs.h <<\_ACEOF
16635 #define HAVE_SHL_LOAD 1
16636 _ACEOF
16638 else
16639 $as_echo "$as_me: failed program was:" >&5
16640 sed 's/^/| /' conftest.$ac_ext >&5
16642 { $as_echo "$as_me:$LINENO: result: no" >&5
16643 $as_echo "no" >&6; };
16644 { $as_echo "$as_me:$LINENO: checking for shl_load() in -ldld" >&5
16645 $as_echo_n "checking for shl_load() in -ldld... " >&6; }
16646 olibs=$LIBS
16647 LIBS="$LIBS -ldld"
16648 cat >conftest.$ac_ext <<_ACEOF
16649 /* confdefs.h. */
16650 _ACEOF
16651 cat confdefs.h >>conftest.$ac_ext
16652 cat >>conftest.$ac_ext <<_ACEOF
16653 /* end confdefs.h. */
16656 main ()
16659 extern void* shl_load();
16660 shl_load();
16663 return 0;
16665 _ACEOF
16666 rm -f conftest.$ac_objext conftest$ac_exeext
16667 if { (ac_try="$ac_link"
16668 case "(($ac_try" in
16669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16670 *) ac_try_echo=$ac_try;;
16671 esac
16672 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16673 $as_echo "$ac_try_echo") >&5
16674 (eval "$ac_link") 2>conftest.er1
16675 ac_status=$?
16676 grep -v '^ *+' conftest.er1 >conftest.err
16677 rm -f conftest.er1
16678 cat conftest.err >&5
16679 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16680 (exit $ac_status); } && {
16681 test -z "$ac_c_werror_flag" ||
16682 test ! -s conftest.err
16683 } && test -s conftest$ac_exeext && {
16684 test "$cross_compiling" = yes ||
16685 $as_test_x conftest$ac_exeext
16686 }; then
16687 { $as_echo "$as_me:$LINENO: result: yes" >&5
16688 $as_echo "yes" >&6; };
16690 cat >>confdefs.h <<\_ACEOF
16691 #define HAVE_SHL_LOAD 1
16692 _ACEOF
16694 else
16695 $as_echo "$as_me: failed program was:" >&5
16696 sed 's/^/| /' conftest.$ac_ext >&5
16698 { $as_echo "$as_me:$LINENO: result: no" >&5
16699 $as_echo "no" >&6; };
16700 LIBS=$olibs
16703 rm -rf conftest.dSYM
16704 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16705 conftest$ac_exeext conftest.$ac_ext
16708 rm -rf conftest.dSYM
16709 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16710 conftest$ac_exeext conftest.$ac_ext
16713 for ac_header in setjmp.h
16715 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16716 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16717 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16718 $as_echo_n "checking for $ac_header... " >&6; }
16719 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16720 $as_echo_n "(cached) " >&6
16722 ac_res=`eval 'as_val=${'$as_ac_Header'}
16723 $as_echo "$as_val"'`
16724 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16725 $as_echo "$ac_res" >&6; }
16726 else
16727 # Is the header compilable?
16728 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16729 $as_echo_n "checking $ac_header usability... " >&6; }
16730 cat >conftest.$ac_ext <<_ACEOF
16731 /* confdefs.h. */
16732 _ACEOF
16733 cat confdefs.h >>conftest.$ac_ext
16734 cat >>conftest.$ac_ext <<_ACEOF
16735 /* end confdefs.h. */
16736 $ac_includes_default
16737 #include <$ac_header>
16738 _ACEOF
16739 rm -f conftest.$ac_objext
16740 if { (ac_try="$ac_compile"
16741 case "(($ac_try" in
16742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16743 *) ac_try_echo=$ac_try;;
16744 esac
16745 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16746 $as_echo "$ac_try_echo") >&5
16747 (eval "$ac_compile") 2>conftest.er1
16748 ac_status=$?
16749 grep -v '^ *+' conftest.er1 >conftest.err
16750 rm -f conftest.er1
16751 cat conftest.err >&5
16752 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16753 (exit $ac_status); } && {
16754 test -z "$ac_c_werror_flag" ||
16755 test ! -s conftest.err
16756 } && test -s conftest.$ac_objext; then
16757 ac_header_compiler=yes
16758 else
16759 $as_echo "$as_me: failed program was:" >&5
16760 sed 's/^/| /' conftest.$ac_ext >&5
16762 ac_header_compiler=no
16765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16766 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16767 $as_echo "$ac_header_compiler" >&6; }
16769 # Is the header present?
16770 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16771 $as_echo_n "checking $ac_header presence... " >&6; }
16772 cat >conftest.$ac_ext <<_ACEOF
16773 /* confdefs.h. */
16774 _ACEOF
16775 cat confdefs.h >>conftest.$ac_ext
16776 cat >>conftest.$ac_ext <<_ACEOF
16777 /* end confdefs.h. */
16778 #include <$ac_header>
16779 _ACEOF
16780 if { (ac_try="$ac_cpp conftest.$ac_ext"
16781 case "(($ac_try" in
16782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16783 *) ac_try_echo=$ac_try;;
16784 esac
16785 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16786 $as_echo "$ac_try_echo") >&5
16787 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16788 ac_status=$?
16789 grep -v '^ *+' conftest.er1 >conftest.err
16790 rm -f conftest.er1
16791 cat conftest.err >&5
16792 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16793 (exit $ac_status); } >/dev/null && {
16794 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16795 test ! -s conftest.err
16796 }; then
16797 ac_header_preproc=yes
16798 else
16799 $as_echo "$as_me: failed program was:" >&5
16800 sed 's/^/| /' conftest.$ac_ext >&5
16802 ac_header_preproc=no
16805 rm -f conftest.err conftest.$ac_ext
16806 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16807 $as_echo "$ac_header_preproc" >&6; }
16809 # So? What about this header?
16810 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16811 yes:no: )
16812 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16813 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16814 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16815 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16816 ac_header_preproc=yes
16818 no:yes:* )
16819 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16820 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16821 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16822 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16823 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16824 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16825 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16826 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16827 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16828 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16829 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16830 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16833 esac
16834 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16835 $as_echo_n "checking for $ac_header... " >&6; }
16836 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16837 $as_echo_n "(cached) " >&6
16838 else
16839 eval "$as_ac_Header=\$ac_header_preproc"
16841 ac_res=`eval 'as_val=${'$as_ac_Header'}
16842 $as_echo "$as_val"'`
16843 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16844 $as_echo "$ac_res" >&6; }
16847 if test `eval 'as_val=${'$as_ac_Header'}
16848 $as_echo "$as_val"'` = yes; then
16849 cat >>confdefs.h <<_ACEOF
16850 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16851 _ACEOF
16855 done
16858 if test "x$MACOSX" = "xyes" -a -n "$PERL"; then
16859 if echo $LIBS | grep -e '-ldl' >/dev/null; then
16860 LIBS=`echo $LIBS | sed s/-ldl//`
16861 PERL_LIBS="$PERL_LIBS -ldl"
16865 if test "x$MACOSX" = "xyes" && test "x$CARBON" = "xyes" \
16866 && test "x$GUITYPE" != "xCARBONGUI"; then
16867 { $as_echo "$as_me:$LINENO: checking whether we need -framework Carbon" >&5
16868 $as_echo_n "checking whether we need -framework Carbon... " >&6; }
16869 if test "x$enable_multibyte" = "xyes" || test "x$features" = "xbig" \
16870 || test "x$features" = "xhuge"; then
16871 LIBS="$LIBS -framework Carbon"
16872 { $as_echo "$as_me:$LINENO: result: yes" >&5
16873 $as_echo "yes" >&6; }
16874 else
16875 { $as_echo "$as_me:$LINENO: result: no" >&5
16876 $as_echo "no" >&6; }
16879 if test "x$MACARCH" = "xboth"; then
16880 LDFLAGS="$LDFLAGS -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc"
16883 DEPEND_CFLAGS_FILTER=
16884 if test "$GCC" = yes; then
16885 { $as_echo "$as_me:$LINENO: checking for GCC 3 or later" >&5
16886 $as_echo_n "checking for GCC 3 or later... " >&6; }
16887 gccmajor=`echo "$gccversion" | sed -e 's/^\([1-9]\)\..*$/\1/g'`
16888 if test "$gccmajor" -gt "2"; then
16889 DEPEND_CFLAGS_FILTER="| sed 's+-I */+-isystem /+g'"
16890 { $as_echo "$as_me:$LINENO: result: yes" >&5
16891 $as_echo "yes" >&6; }
16892 else
16893 { $as_echo "$as_me:$LINENO: result: no" >&5
16894 $as_echo "no" >&6; }
16896 { $as_echo "$as_me:$LINENO: checking whether we need -D_FORTIFY_SOURCE=1" >&5
16897 $as_echo_n "checking whether we need -D_FORTIFY_SOURCE=1... " >&6; }
16898 if test "$gccmajor" -gt "3"; then
16899 CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=1"
16900 { $as_echo "$as_me:$LINENO: result: yes" >&5
16901 $as_echo "yes" >&6; }
16902 else
16903 { $as_echo "$as_me:$LINENO: result: no" >&5
16904 $as_echo "no" >&6; }
16909 ac_config_files="$ac_config_files auto/config.mk:config.mk.in"
16911 cat >confcache <<\_ACEOF
16912 # This file is a shell script that caches the results of configure
16913 # tests run on this system so they can be shared between configure
16914 # scripts and configure runs, see configure's option --config-cache.
16915 # It is not useful on other systems. If it contains results you don't
16916 # want to keep, you may remove or edit it.
16918 # config.status only pays attention to the cache file if you give it
16919 # the --recheck option to rerun configure.
16921 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16922 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16923 # following values.
16925 _ACEOF
16927 # The following way of writing the cache mishandles newlines in values,
16928 # but we know of no workaround that is simple, portable, and efficient.
16929 # So, we kill variables containing newlines.
16930 # Ultrix sh set writes to stderr and can't be redirected directly,
16931 # and sets the high bit in the cache file unless we assign to the vars.
16933 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16934 eval ac_val=\$$ac_var
16935 case $ac_val in #(
16936 *${as_nl}*)
16937 case $ac_var in #(
16938 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
16939 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
16940 esac
16941 case $ac_var in #(
16942 _ | IFS | as_nl) ;; #(
16943 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16944 *) $as_unset $ac_var ;;
16945 esac ;;
16946 esac
16947 done
16949 (set) 2>&1 |
16950 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16951 *${as_nl}ac_space=\ *)
16952 # `set' does not quote correctly, so add quotes (double-quote
16953 # substitution turns \\\\ into \\, and sed turns \\ into \).
16954 sed -n \
16955 "s/'/'\\\\''/g;
16956 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16957 ;; #(
16959 # `set' quotes correctly as required by POSIX, so do not add quotes.
16960 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16962 esac |
16963 sort
16965 sed '
16966 /^ac_cv_env_/b end
16967 t clear
16968 :clear
16969 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16970 t end
16971 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16972 :end' >>confcache
16973 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16974 if test -w "$cache_file"; then
16975 test "x$cache_file" != "x/dev/null" &&
16976 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
16977 $as_echo "$as_me: updating cache $cache_file" >&6;}
16978 cat confcache >$cache_file
16979 else
16980 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
16981 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16984 rm -f confcache
16986 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16987 # Let make expand exec_prefix.
16988 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16990 DEFS=-DHAVE_CONFIG_H
16992 ac_libobjs=
16993 ac_ltlibobjs=
16994 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16995 # 1. Remove the extension, and $U if already installed.
16996 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16997 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16998 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16999 # will be set to the directory where LIBOBJS objects are built.
17000 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17001 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
17002 done
17003 LIBOBJS=$ac_libobjs
17005 LTLIBOBJS=$ac_ltlibobjs
17009 : ${CONFIG_STATUS=./config.status}
17010 ac_write_fail=0
17011 ac_clean_files_save=$ac_clean_files
17012 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17013 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17014 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17015 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17016 #! $SHELL
17017 # Generated by $as_me.
17018 # Run this file to recreate the current configuration.
17019 # Compiler output produced by configure, useful for debugging
17020 # configure, is in config.log if it exists.
17022 debug=false
17023 ac_cs_recheck=false
17024 ac_cs_silent=false
17025 SHELL=\${CONFIG_SHELL-$SHELL}
17026 _ACEOF
17028 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17029 ## --------------------- ##
17030 ## M4sh Initialization. ##
17031 ## --------------------- ##
17033 # Be more Bourne compatible
17034 DUALCASE=1; export DUALCASE # for MKS sh
17035 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17036 emulate sh
17037 NULLCMD=:
17038 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17039 # is contrary to our usage. Disable this feature.
17040 alias -g '${1+"$@"}'='"$@"'
17041 setopt NO_GLOB_SUBST
17042 else
17043 case `(set -o) 2>/dev/null` in
17044 *posix*) set -o posix ;;
17045 esac
17052 # PATH needs CR
17053 # Avoid depending upon Character Ranges.
17054 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17055 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17056 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17057 as_cr_digits='0123456789'
17058 as_cr_alnum=$as_cr_Letters$as_cr_digits
17060 as_nl='
17062 export as_nl
17063 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17064 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17065 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17066 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17067 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17068 as_echo='printf %s\n'
17069 as_echo_n='printf %s'
17070 else
17071 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17072 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17073 as_echo_n='/usr/ucb/echo -n'
17074 else
17075 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17076 as_echo_n_body='eval
17077 arg=$1;
17078 case $arg in
17079 *"$as_nl"*)
17080 expr "X$arg" : "X\\(.*\\)$as_nl";
17081 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17082 esac;
17083 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17085 export as_echo_n_body
17086 as_echo_n='sh -c $as_echo_n_body as_echo'
17088 export as_echo_body
17089 as_echo='sh -c $as_echo_body as_echo'
17092 # The user is always right.
17093 if test "${PATH_SEPARATOR+set}" != set; then
17094 PATH_SEPARATOR=:
17095 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17096 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17097 PATH_SEPARATOR=';'
17101 # Support unset when possible.
17102 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
17103 as_unset=unset
17104 else
17105 as_unset=false
17109 # IFS
17110 # We need space, tab and new line, in precisely that order. Quoting is
17111 # there to prevent editors from complaining about space-tab.
17112 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17113 # splitting by setting IFS to empty value.)
17114 IFS=" "" $as_nl"
17116 # Find who we are. Look in the path if we contain no directory separator.
17117 case $0 in
17118 *[\\/]* ) as_myself=$0 ;;
17119 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17120 for as_dir in $PATH
17122 IFS=$as_save_IFS
17123 test -z "$as_dir" && as_dir=.
17124 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17125 done
17126 IFS=$as_save_IFS
17129 esac
17130 # We did not find ourselves, most probably we were run as `sh COMMAND'
17131 # in which case we are not to be found in the path.
17132 if test "x$as_myself" = x; then
17133 as_myself=$0
17135 if test ! -f "$as_myself"; then
17136 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17137 { (exit 1); exit 1; }
17140 # Work around bugs in pre-3.0 UWIN ksh.
17141 for as_var in ENV MAIL MAILPATH
17142 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
17143 done
17144 PS1='$ '
17145 PS2='> '
17146 PS4='+ '
17148 # NLS nuisances.
17149 LC_ALL=C
17150 export LC_ALL
17151 LANGUAGE=C
17152 export LANGUAGE
17154 # Required to use basename.
17155 if expr a : '\(a\)' >/dev/null 2>&1 &&
17156 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17157 as_expr=expr
17158 else
17159 as_expr=false
17162 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17163 as_basename=basename
17164 else
17165 as_basename=false
17169 # Name of the executable.
17170 as_me=`$as_basename -- "$0" ||
17171 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17172 X"$0" : 'X\(//\)$' \| \
17173 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17174 $as_echo X/"$0" |
17175 sed '/^.*\/\([^/][^/]*\)\/*$/{
17176 s//\1/
17179 /^X\/\(\/\/\)$/{
17180 s//\1/
17183 /^X\/\(\/\).*/{
17184 s//\1/
17187 s/.*/./; q'`
17189 # CDPATH.
17190 $as_unset CDPATH
17194 as_lineno_1=$LINENO
17195 as_lineno_2=$LINENO
17196 test "x$as_lineno_1" != "x$as_lineno_2" &&
17197 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
17199 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17200 # uniformly replaced by the line number. The first 'sed' inserts a
17201 # line-number line after each line using $LINENO; the second 'sed'
17202 # does the real work. The second script uses 'N' to pair each
17203 # line-number line with the line containing $LINENO, and appends
17204 # trailing '-' during substitution so that $LINENO is not a special
17205 # case at line end.
17206 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17207 # scripts with optimization help from Paolo Bonzini. Blame Lee
17208 # E. McMahon (1931-1989) for sed's syntax. :-)
17209 sed -n '
17211 /[$]LINENO/=
17212 ' <$as_myself |
17213 sed '
17214 s/[$]LINENO.*/&-/
17215 t lineno
17217 :lineno
17219 :loop
17220 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
17221 t loop
17222 s/-\n.*//
17223 ' >$as_me.lineno &&
17224 chmod +x "$as_me.lineno" ||
17225 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
17226 { (exit 1); exit 1; }; }
17228 # Don't try to exec as it changes $[0], causing all sort of problems
17229 # (the dirname of $[0] is not the place where we might find the
17230 # original and so on. Autoconf is especially sensitive to this).
17231 . "./$as_me.lineno"
17232 # Exit status is that of the last command.
17233 exit
17237 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17238 as_dirname=dirname
17239 else
17240 as_dirname=false
17243 ECHO_C= ECHO_N= ECHO_T=
17244 case `echo -n x` in
17245 -n*)
17246 case `echo 'x\c'` in
17247 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17248 *) ECHO_C='\c';;
17249 esac;;
17251 ECHO_N='-n';;
17252 esac
17253 if expr a : '\(a\)' >/dev/null 2>&1 &&
17254 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17255 as_expr=expr
17256 else
17257 as_expr=false
17260 rm -f conf$$ conf$$.exe conf$$.file
17261 if test -d conf$$.dir; then
17262 rm -f conf$$.dir/conf$$.file
17263 else
17264 rm -f conf$$.dir
17265 mkdir conf$$.dir 2>/dev/null
17267 if (echo >conf$$.file) 2>/dev/null; then
17268 if ln -s conf$$.file conf$$ 2>/dev/null; then
17269 as_ln_s='ln -s'
17270 # ... but there are two gotchas:
17271 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17272 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17273 # In both cases, we have to default to `cp -p'.
17274 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17275 as_ln_s='cp -p'
17276 elif ln conf$$.file conf$$ 2>/dev/null; then
17277 as_ln_s=ln
17278 else
17279 as_ln_s='cp -p'
17281 else
17282 as_ln_s='cp -p'
17284 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17285 rmdir conf$$.dir 2>/dev/null
17287 if mkdir -p . 2>/dev/null; then
17288 as_mkdir_p=:
17289 else
17290 test -d ./-p && rmdir ./-p
17291 as_mkdir_p=false
17294 if test -x / >/dev/null 2>&1; then
17295 as_test_x='test -x'
17296 else
17297 if ls -dL / >/dev/null 2>&1; then
17298 as_ls_L_option=L
17299 else
17300 as_ls_L_option=
17302 as_test_x='
17303 eval sh -c '\''
17304 if test -d "$1"; then
17305 test -d "$1/.";
17306 else
17307 case $1 in
17308 -*)set "./$1";;
17309 esac;
17310 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
17311 ???[sx]*):;;*)false;;esac;fi
17312 '\'' sh
17315 as_executable_p=$as_test_x
17317 # Sed expression to map a string onto a valid CPP name.
17318 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17320 # Sed expression to map a string onto a valid variable name.
17321 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17324 exec 6>&1
17326 # Save the log message, to keep $[0] and so on meaningful, and to
17327 # report actual input values of CONFIG_FILES etc. instead of their
17328 # values after options handling.
17329 ac_log="
17330 This file was extended by $as_me, which was
17331 generated by GNU Autoconf 2.62. Invocation command line was
17333 CONFIG_FILES = $CONFIG_FILES
17334 CONFIG_HEADERS = $CONFIG_HEADERS
17335 CONFIG_LINKS = $CONFIG_LINKS
17336 CONFIG_COMMANDS = $CONFIG_COMMANDS
17337 $ $0 $@
17339 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17342 _ACEOF
17344 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17345 # Files that config.status was made for.
17346 config_files="$ac_config_files"
17347 config_headers="$ac_config_headers"
17349 _ACEOF
17351 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17352 ac_cs_usage="\
17353 \`$as_me' instantiates files from templates according to the
17354 current configuration.
17356 Usage: $0 [OPTIONS] [FILE]...
17358 -h, --help print this help, then exit
17359 -V, --version print version number and configuration settings, then exit
17360 -q, --quiet do not print progress messages
17361 -d, --debug don't remove temporary files
17362 --recheck update $as_me by reconfiguring in the same conditions
17363 --file=FILE[:TEMPLATE]
17364 instantiate the configuration file FILE
17365 --header=FILE[:TEMPLATE]
17366 instantiate the configuration header FILE
17368 Configuration files:
17369 $config_files
17371 Configuration headers:
17372 $config_headers
17374 Report bugs to <bug-autoconf@gnu.org>."
17376 _ACEOF
17377 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17378 ac_cs_version="\\
17379 config.status
17380 configured by $0, generated by GNU Autoconf 2.62,
17381 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
17383 Copyright (C) 2008 Free Software Foundation, Inc.
17384 This config.status script is free software; the Free Software Foundation
17385 gives unlimited permission to copy, distribute and modify it."
17387 ac_pwd='$ac_pwd'
17388 srcdir='$srcdir'
17389 AWK='$AWK'
17390 test -n "\$AWK" || AWK=awk
17391 _ACEOF
17393 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17394 # The default lists apply if the user does not specify any file.
17395 ac_need_defaults=:
17396 while test $# != 0
17398 case $1 in
17399 --*=*)
17400 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17401 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17402 ac_shift=:
17405 ac_option=$1
17406 ac_optarg=$2
17407 ac_shift=shift
17409 esac
17411 case $ac_option in
17412 # Handling of the options.
17413 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17414 ac_cs_recheck=: ;;
17415 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17416 $as_echo "$ac_cs_version"; exit ;;
17417 --debug | --debu | --deb | --de | --d | -d )
17418 debug=: ;;
17419 --file | --fil | --fi | --f )
17420 $ac_shift
17421 case $ac_optarg in
17422 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17423 esac
17424 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
17425 ac_need_defaults=false;;
17426 --header | --heade | --head | --hea )
17427 $ac_shift
17428 case $ac_optarg in
17429 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17430 esac
17431 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
17432 ac_need_defaults=false;;
17433 --he | --h)
17434 # Conflict between --help and --header
17435 { $as_echo "$as_me: error: ambiguous option: $1
17436 Try \`$0 --help' for more information." >&2
17437 { (exit 1); exit 1; }; };;
17438 --help | --hel | -h )
17439 $as_echo "$ac_cs_usage"; exit ;;
17440 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17441 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17442 ac_cs_silent=: ;;
17444 # This is an error.
17445 -*) { $as_echo "$as_me: error: unrecognized option: $1
17446 Try \`$0 --help' for more information." >&2
17447 { (exit 1); exit 1; }; } ;;
17449 *) ac_config_targets="$ac_config_targets $1"
17450 ac_need_defaults=false ;;
17452 esac
17453 shift
17454 done
17456 ac_configure_extra_args=
17458 if $ac_cs_silent; then
17459 exec 6>/dev/null
17460 ac_configure_extra_args="$ac_configure_extra_args --silent"
17463 _ACEOF
17464 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17465 if \$ac_cs_recheck; then
17466 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17467 shift
17468 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17469 CONFIG_SHELL='$SHELL'
17470 export CONFIG_SHELL
17471 exec "\$@"
17474 _ACEOF
17475 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17476 exec 5>>auto/config.log
17478 echo
17479 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17480 ## Running $as_me. ##
17481 _ASBOX
17482 $as_echo "$ac_log"
17483 } >&5
17485 _ACEOF
17486 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17487 _ACEOF
17489 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17491 # Handling of arguments.
17492 for ac_config_target in $ac_config_targets
17494 case $ac_config_target in
17495 "auto/config.h") CONFIG_HEADERS="$CONFIG_HEADERS auto/config.h:config.h.in" ;;
17496 "auto/config.mk") CONFIG_FILES="$CONFIG_FILES auto/config.mk:config.mk.in" ;;
17498 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17499 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17500 { (exit 1); exit 1; }; };;
17501 esac
17502 done
17505 # If the user did not use the arguments to specify the items to instantiate,
17506 # then the envvar interface is used. Set only those that are not.
17507 # We use the long form for the default assignment because of an extremely
17508 # bizarre bug on SunOS 4.1.3.
17509 if $ac_need_defaults; then
17510 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17511 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17514 # Have a temporary directory for convenience. Make it in the build tree
17515 # simply because there is no reason against having it here, and in addition,
17516 # creating and moving files from /tmp can sometimes cause problems.
17517 # Hook for its removal unless debugging.
17518 # Note that there is a small window in which the directory will not be cleaned:
17519 # after its creation but before its name has been assigned to `$tmp'.
17520 $debug ||
17522 tmp=
17523 trap 'exit_status=$?
17524 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17526 trap '{ (exit 1); exit 1; }' 1 2 13 15
17528 # Create a (secure) tmp directory for tmp files.
17531 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17532 test -n "$tmp" && test -d "$tmp"
17533 } ||
17535 tmp=./conf$$-$RANDOM
17536 (umask 077 && mkdir "$tmp")
17537 } ||
17539 $as_echo "$as_me: cannot create a temporary directory in ." >&2
17540 { (exit 1); exit 1; }
17543 # Set up the scripts for CONFIG_FILES section.
17544 # No need to generate them if there are no CONFIG_FILES.
17545 # This happens for instance with `./config.status config.h'.
17546 if test -n "$CONFIG_FILES"; then
17549 ac_cr=' '
17550 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17551 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17552 ac_cs_awk_cr='\\r'
17553 else
17554 ac_cs_awk_cr=$ac_cr
17557 echo 'BEGIN {' >"$tmp/subs1.awk" &&
17558 _ACEOF
17562 echo "cat >conf$$subs.awk <<_ACEOF" &&
17563 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17564 echo "_ACEOF"
17565 } >conf$$subs.sh ||
17566 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17567 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17568 { (exit 1); exit 1; }; }
17569 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
17570 ac_delim='%!_!# '
17571 for ac_last_try in false false false false false :; do
17572 . ./conf$$subs.sh ||
17573 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17574 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17575 { (exit 1); exit 1; }; }
17577 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
17578 break
17579 elif $ac_last_try; then
17580 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17581 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17582 { (exit 1); exit 1; }; }
17583 else
17584 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17586 done
17587 rm -f conf$$subs.sh
17589 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17590 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
17591 _ACEOF
17592 sed -n '
17594 s/^/S["/; s/!.*/"]=/
17597 s/^[^!]*!//
17598 :repl
17599 t repl
17600 s/'"$ac_delim"'$//
17601 t delim
17604 s/\(.\{148\}\).*/\1/
17605 t more1
17606 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17609 b repl
17610 :more1
17611 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17614 s/.\{148\}//
17615 t nl
17616 :delim
17618 s/\(.\{148\}\).*/\1/
17619 t more2
17620 s/["\\]/\\&/g; s/^/"/; s/$/"/
17623 :more2
17624 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17627 s/.\{148\}//
17628 t delim
17629 ' <conf$$subs.awk | sed '
17630 /^[^""]/{
17632 s/\n//
17634 ' >>$CONFIG_STATUS || ac_write_fail=1
17635 rm -f conf$$subs.awk
17636 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17637 _ACAWK
17638 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
17639 for (key in S) S_is_set[key] = 1
17640 FS = "\a"
17644 line = $ 0
17645 nfields = split(line, field, "@")
17646 substed = 0
17647 len = length(field[1])
17648 for (i = 2; i < nfields; i++) {
17649 key = field[i]
17650 keylen = length(key)
17651 if (S_is_set[key]) {
17652 value = S[key]
17653 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17654 len += length(value) + length(field[++i])
17655 substed = 1
17656 } else
17657 len += 1 + keylen
17660 print line
17663 _ACAWK
17664 _ACEOF
17665 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17666 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17667 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17668 else
17670 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17671 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
17672 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
17673 { (exit 1); exit 1; }; }
17674 _ACEOF
17676 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17677 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17678 # trailing colons and then remove the whole line if VPATH becomes empty
17679 # (actually we leave an empty line to preserve line numbers).
17680 if test "x$srcdir" = x.; then
17681 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17682 s/:*\$(srcdir):*/:/
17683 s/:*\${srcdir}:*/:/
17684 s/:*@srcdir@:*/:/
17685 s/^\([^=]*=[ ]*\):*/\1/
17686 s/:*$//
17687 s/^[^=]*=[ ]*$//
17691 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17692 fi # test -n "$CONFIG_FILES"
17694 # Set up the scripts for CONFIG_HEADERS section.
17695 # No need to generate them if there are no CONFIG_HEADERS.
17696 # This happens for instance with `./config.status Makefile'.
17697 if test -n "$CONFIG_HEADERS"; then
17698 cat >"$tmp/defines.awk" <<\_ACAWK ||
17699 BEGIN {
17700 _ACEOF
17702 # Transform confdefs.h into an awk script `defines.awk', embedded as
17703 # here-document in config.status, that substitutes the proper values into
17704 # config.h.in to produce config.h.
17706 # Create a delimiter string that does not exist in confdefs.h, to ease
17707 # handling of long lines.
17708 ac_delim='%!_!# '
17709 for ac_last_try in false false :; do
17710 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
17711 if test -z "$ac_t"; then
17712 break
17713 elif $ac_last_try; then
17714 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
17715 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
17716 { (exit 1); exit 1; }; }
17717 else
17718 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17720 done
17722 # For the awk script, D is an array of macro values keyed by name,
17723 # likewise P contains macro parameters if any. Preserve backslash
17724 # newline sequences.
17726 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17727 sed -n '
17728 s/.\{148\}/&'"$ac_delim"'/g
17729 t rset
17730 :rset
17731 s/^[ ]*#[ ]*define[ ][ ]*/ /
17732 t def
17734 :def
17735 s/\\$//
17736 t bsnl
17737 s/["\\]/\\&/g
17738 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17739 D["\1"]=" \3"/p
17740 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17742 :bsnl
17743 s/["\\]/\\&/g
17744 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17745 D["\1"]=" \3\\\\\\n"\\/p
17746 t cont
17747 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17748 t cont
17750 :cont
17752 s/.\{148\}/&'"$ac_delim"'/g
17753 t clear
17754 :clear
17755 s/\\$//
17756 t bsnlc
17757 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17759 :bsnlc
17760 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17761 b cont
17762 ' <confdefs.h | sed '
17763 s/'"$ac_delim"'/"\\\
17764 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17766 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17767 for (key in D) D_is_set[key] = 1
17768 FS = "\a"
17770 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17771 line = \$ 0
17772 split(line, arg, " ")
17773 if (arg[1] == "#") {
17774 defundef = arg[2]
17775 mac1 = arg[3]
17776 } else {
17777 defundef = substr(arg[1], 2)
17778 mac1 = arg[2]
17780 split(mac1, mac2, "(") #)
17781 macro = mac2[1]
17782 if (D_is_set[macro]) {
17783 # Preserve the white space surrounding the "#".
17784 prefix = substr(line, 1, index(line, defundef) - 1)
17785 print prefix "define", macro P[macro] D[macro]
17786 next
17787 } else {
17788 # Replace #undef with comments. This is necessary, for example,
17789 # in the case of _POSIX_SOURCE, which is predefined and required
17790 # on some systems where configure will not decide to define it.
17791 if (defundef == "undef") {
17792 print "/*", line, "*/"
17793 next
17797 { print }
17798 _ACAWK
17799 _ACEOF
17800 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17801 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
17802 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
17803 { (exit 1); exit 1; }; }
17804 fi # test -n "$CONFIG_HEADERS"
17807 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
17808 shift
17809 for ac_tag
17811 case $ac_tag in
17812 :[FHLC]) ac_mode=$ac_tag; continue;;
17813 esac
17814 case $ac_mode$ac_tag in
17815 :[FHL]*:*);;
17816 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
17817 $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
17818 { (exit 1); exit 1; }; };;
17819 :[FH]-) ac_tag=-:-;;
17820 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17821 esac
17822 ac_save_IFS=$IFS
17823 IFS=:
17824 set x $ac_tag
17825 IFS=$ac_save_IFS
17826 shift
17827 ac_file=$1
17828 shift
17830 case $ac_mode in
17831 :L) ac_source=$1;;
17832 :[FH])
17833 ac_file_inputs=
17834 for ac_f
17836 case $ac_f in
17837 -) ac_f="$tmp/stdin";;
17838 *) # Look for the file first in the build tree, then in the source tree
17839 # (if the path is not absolute). The absolute path cannot be DOS-style,
17840 # because $ac_f cannot contain `:'.
17841 test -f "$ac_f" ||
17842 case $ac_f in
17843 [\\/$]*) false;;
17844 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17845 esac ||
17846 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
17847 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
17848 { (exit 1); exit 1; }; };;
17849 esac
17850 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17851 ac_file_inputs="$ac_file_inputs '$ac_f'"
17852 done
17854 # Let's still pretend it is `configure' which instantiates (i.e., don't
17855 # use $as_me), people would be surprised to read:
17856 # /* config.h. Generated by config.status. */
17857 configure_input='Generated from '`
17858 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17859 `' by configure.'
17860 if test x"$ac_file" != x-; then
17861 configure_input="$ac_file. $configure_input"
17862 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
17863 $as_echo "$as_me: creating $ac_file" >&6;}
17865 # Neutralize special characters interpreted by sed in replacement strings.
17866 case $configure_input in #(
17867 *\&* | *\|* | *\\* )
17868 ac_sed_conf_input=`$as_echo "$configure_input" |
17869 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17870 *) ac_sed_conf_input=$configure_input;;
17871 esac
17873 case $ac_tag in
17874 *:-:* | *:-) cat >"$tmp/stdin" \
17875 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
17876 $as_echo "$as_me: error: could not create $ac_file" >&2;}
17877 { (exit 1); exit 1; }; } ;;
17878 esac
17880 esac
17882 ac_dir=`$as_dirname -- "$ac_file" ||
17883 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17884 X"$ac_file" : 'X\(//\)[^/]' \| \
17885 X"$ac_file" : 'X\(//\)$' \| \
17886 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17887 $as_echo X"$ac_file" |
17888 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17889 s//\1/
17892 /^X\(\/\/\)[^/].*/{
17893 s//\1/
17896 /^X\(\/\/\)$/{
17897 s//\1/
17900 /^X\(\/\).*/{
17901 s//\1/
17904 s/.*/./; q'`
17905 { as_dir="$ac_dir"
17906 case $as_dir in #(
17907 -*) as_dir=./$as_dir;;
17908 esac
17909 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
17910 as_dirs=
17911 while :; do
17912 case $as_dir in #(
17913 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17914 *) as_qdir=$as_dir;;
17915 esac
17916 as_dirs="'$as_qdir' $as_dirs"
17917 as_dir=`$as_dirname -- "$as_dir" ||
17918 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17919 X"$as_dir" : 'X\(//\)[^/]' \| \
17920 X"$as_dir" : 'X\(//\)$' \| \
17921 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17922 $as_echo X"$as_dir" |
17923 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17924 s//\1/
17927 /^X\(\/\/\)[^/].*/{
17928 s//\1/
17931 /^X\(\/\/\)$/{
17932 s//\1/
17935 /^X\(\/\).*/{
17936 s//\1/
17939 s/.*/./; q'`
17940 test -d "$as_dir" && break
17941 done
17942 test -z "$as_dirs" || eval "mkdir $as_dirs"
17943 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
17944 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
17945 { (exit 1); exit 1; }; }; }
17946 ac_builddir=.
17948 case "$ac_dir" in
17949 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17951 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17952 # A ".." for each directory in $ac_dir_suffix.
17953 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17954 case $ac_top_builddir_sub in
17955 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17956 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17957 esac ;;
17958 esac
17959 ac_abs_top_builddir=$ac_pwd
17960 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17961 # for backward compatibility:
17962 ac_top_builddir=$ac_top_build_prefix
17964 case $srcdir in
17965 .) # We are building in place.
17966 ac_srcdir=.
17967 ac_top_srcdir=$ac_top_builddir_sub
17968 ac_abs_top_srcdir=$ac_pwd ;;
17969 [\\/]* | ?:[\\/]* ) # Absolute name.
17970 ac_srcdir=$srcdir$ac_dir_suffix;
17971 ac_top_srcdir=$srcdir
17972 ac_abs_top_srcdir=$srcdir ;;
17973 *) # Relative name.
17974 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17975 ac_top_srcdir=$ac_top_build_prefix$srcdir
17976 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17977 esac
17978 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17981 case $ac_mode in
17984 # CONFIG_FILE
17987 _ACEOF
17989 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17990 # If the template does not know about datarootdir, expand it.
17991 # FIXME: This hack should be removed a few years after 2.60.
17992 ac_datarootdir_hack=; ac_datarootdir_seen=
17994 ac_sed_dataroot='
17995 /datarootdir/ {
17999 /@datadir@/p
18000 /@docdir@/p
18001 /@infodir@/p
18002 /@localedir@/p
18003 /@mandir@/p
18005 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18006 *datarootdir*) ac_datarootdir_seen=yes;;
18007 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18008 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18009 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18010 _ACEOF
18011 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18012 ac_datarootdir_hack='
18013 s&@datadir@&$datadir&g
18014 s&@docdir@&$docdir&g
18015 s&@infodir@&$infodir&g
18016 s&@localedir@&$localedir&g
18017 s&@mandir@&$mandir&g
18018 s&\\\${datarootdir}&$datarootdir&g' ;;
18019 esac
18020 _ACEOF
18022 # Neutralize VPATH when `$srcdir' = `.'.
18023 # Shell code in configure.ac might set extrasub.
18024 # FIXME: do we really want to maintain this feature?
18025 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18026 ac_sed_extra="$ac_vpsub
18027 $extrasub
18028 _ACEOF
18029 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18031 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18032 s|@configure_input@|$ac_sed_conf_input|;t t
18033 s&@top_builddir@&$ac_top_builddir_sub&;t t
18034 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18035 s&@srcdir@&$ac_srcdir&;t t
18036 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18037 s&@top_srcdir@&$ac_top_srcdir&;t t
18038 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18039 s&@builddir@&$ac_builddir&;t t
18040 s&@abs_builddir@&$ac_abs_builddir&;t t
18041 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18042 $ac_datarootdir_hack
18044 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
18045 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18046 $as_echo "$as_me: error: could not create $ac_file" >&2;}
18047 { (exit 1); exit 1; }; }
18049 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18050 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
18051 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
18052 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18053 which seems to be undefined. Please make sure it is defined." >&5
18054 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18055 which seems to be undefined. Please make sure it is defined." >&2;}
18057 rm -f "$tmp/stdin"
18058 case $ac_file in
18059 -) cat "$tmp/out" && rm -f "$tmp/out";;
18060 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18061 esac \
18062 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18063 $as_echo "$as_me: error: could not create $ac_file" >&2;}
18064 { (exit 1); exit 1; }; }
18068 # CONFIG_HEADER
18070 if test x"$ac_file" != x-; then
18072 $as_echo "/* $configure_input */" \
18073 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18074 } >"$tmp/config.h" \
18075 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18076 $as_echo "$as_me: error: could not create $ac_file" >&2;}
18077 { (exit 1); exit 1; }; }
18078 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18079 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18080 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18081 else
18082 rm -f "$ac_file"
18083 mv "$tmp/config.h" "$ac_file" \
18084 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18085 $as_echo "$as_me: error: could not create $ac_file" >&2;}
18086 { (exit 1); exit 1; }; }
18088 else
18089 $as_echo "/* $configure_input */" \
18090 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18091 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
18092 $as_echo "$as_me: error: could not create -" >&2;}
18093 { (exit 1); exit 1; }; }
18098 esac
18100 done # for ac_tag
18103 { (exit 0); exit 0; }
18104 _ACEOF
18105 chmod +x $CONFIG_STATUS
18106 ac_clean_files=$ac_clean_files_save
18108 test $ac_write_fail = 0 ||
18109 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
18110 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
18111 { (exit 1); exit 1; }; }
18114 # configure is writing to config.log, and then calls config.status.
18115 # config.status does its own redirection, appending to config.log.
18116 # Unfortunately, on DOS this fails, as config.log is still kept open
18117 # by configure, so config.status won't be able to write to it; its
18118 # output is simply discarded. So we exec the FD to /dev/null,
18119 # effectively closing config.log, so it can be properly (re)opened and
18120 # appended to by config.status. When coming back to configure, we
18121 # need to make the FD available again.
18122 if test "$no_create" != yes; then
18123 ac_cs_success=:
18124 ac_config_status_args=
18125 test "$silent" = yes &&
18126 ac_config_status_args="$ac_config_status_args --quiet"
18127 exec 5>/dev/null
18128 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18129 exec 5>>auto/config.log
18130 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18131 # would make configure fail if this is the last instruction.
18132 $ac_cs_success || { (exit 1); exit 1; }
18134 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18135 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
18136 $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}