Change runtime fall-back directory
[MacVim.git] / src / configure
blob7d6540563fd671b0edde780c210a1cbc110ec170
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 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 # Zsh 3.x and 4.x performs 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 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
50 rm -f conf$$.sh
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
61 # IFS
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
68 IFS=" "" $as_nl"
70 # Find who we are. Look in the path if we contain no directory separator.
71 case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87 as_myself=$0
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
102 # NLS nuisances.
103 for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113 done
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
140 /^X\/\(\/\/\)$/{
141 s//\1/
144 /^X\/\(\/\).*/{
145 s//\1/
148 s/.*/./; q'`
150 # CDPATH.
151 $as_unset CDPATH
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157 else
158 as_have_required=no
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
165 as_func_success () {
166 as_func_return 0
168 as_func_failure () {
169 as_func_return 1
171 as_func_ret_success () {
172 return 0
174 as_func_ret_failure () {
175 return 1
178 exitcode=0
179 if as_func_success; then
181 else
182 exitcode=1
183 echo as_func_success failed.
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205 else
206 exitcode=1
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
219 else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232 done
233 IFS=$as_save_IFS
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247 else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250 esac
256 _ASEOF
257 }; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
277 (as_func_return () {
278 (exit $1)
280 as_func_success () {
281 as_func_return 0
283 as_func_failure () {
284 as_func_return 1
286 as_func_ret_success () {
287 return 0
289 as_func_ret_failure () {
290 return 1
293 exitcode=0
294 if as_func_success; then
296 else
297 exitcode=1
298 echo as_func_success failed.
301 if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
308 else
309 exitcode=1
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 else
321 exitcode=1
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
333 _ASEOF
334 }; then
335 break
340 done
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
367 (exit \$1)
369 as_func_success () {
370 as_func_return 0
372 as_func_failure () {
373 as_func_return 1
375 as_func_ret_success () {
376 return 0
378 as_func_ret_failure () {
379 return 1
382 exitcode=0
383 if as_func_success; then
385 else
386 exitcode=1
387 echo as_func_success failed.
390 if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
397 else
398 exitcode=1
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 else
410 exitcode=1
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
446 :lineno
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468 else
469 as_dirname=false
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
480 ECHO_N='-n';;
481 esac
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486 else
487 as_expr=false
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493 else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508 else
509 as_ln_s='cp -p'
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516 else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
521 if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523 else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552 exec 7<&0 </dev/null 6>&1
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
560 # Initializations.
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
573 PACKAGE_NAME=
574 PACKAGE_TARNAME=
575 PACKAGE_VERSION=
576 PACKAGE_STRING=
577 PACKAGE_BUGREPORT=
579 ac_unique_file="vim.h"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
582 #include <stdio.h>
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
585 #endif
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
588 #endif
589 #ifdef STDC_HEADERS
590 # include <stdlib.h>
591 # include <stddef.h>
592 #else
593 # ifdef HAVE_STDLIB_H
594 # include <stdlib.h>
595 # endif
596 #endif
597 #ifdef HAVE_STRING_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 # include <memory.h>
600 # endif
601 # include <string.h>
602 #endif
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
605 #endif
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
608 #endif
609 #ifdef HAVE_STDINT_H
610 # include <stdint.h>
611 #endif
612 #ifdef HAVE_UNISTD_H
613 # include <unistd.h>
614 #endif"
616 ac_subst_vars='SHELL
617 PATH_SEPARATOR
618 PACKAGE_NAME
619 PACKAGE_TARNAME
620 PACKAGE_VERSION
621 PACKAGE_STRING
622 PACKAGE_BUGREPORT
623 exec_prefix
624 prefix
625 program_transform_name
626 bindir
627 sbindir
628 libexecdir
629 datarootdir
630 datadir
631 sysconfdir
632 sharedstatedir
633 localstatedir
634 includedir
635 oldincludedir
636 docdir
637 infodir
638 htmldir
639 dvidir
640 pdfdir
641 psdir
642 libdir
643 localedir
644 mandir
645 DEFS
646 ECHO_C
647 ECHO_N
648 ECHO_T
649 LIBS
650 build_alias
651 host_alias
652 target_alias
653 SET_MAKE
655 CFLAGS
656 LDFLAGS
657 CPPFLAGS
658 ac_ct_CC
659 EXEEXT
660 OBJEXT
662 GREP
663 EGREP
665 STRIP
666 CPP_MM
667 OS_EXTRA_SRC
668 OS_EXTRA_OBJ
669 VIMNAME
670 EXNAME
671 VIEWNAME
672 line_break
673 dovimdiff
674 dogvimdiff
675 compiledby
676 vi_cv_path_mzscheme
677 MZSCHEME_SRC
678 MZSCHEME_OBJ
679 MZSCHEME_PRO
680 MZSCHEME_LIBS
681 MZSCHEME_CFLAGS
682 MZSCHEME_EXTRA
683 MZSCHEME_MZC
684 vi_cv_path_perl
685 vi_cv_perllib
686 shrpenv
687 PERL_SRC
688 PERL_OBJ
689 PERL_PRO
690 PERL_CFLAGS
691 PERL_LIBS
692 vi_cv_path_python
693 PYTHON_CONFDIR
694 PYTHON_LIBS
695 PYTHON_GETPATH_CFLAGS
696 PYTHON_CFLAGS
697 PYTHON_SRC
698 PYTHON_OBJ
699 vi_cv_path_tcl
700 TCL_SRC
701 TCL_OBJ
702 TCL_PRO
703 TCL_CFLAGS
704 TCL_LIBS
705 vi_cv_path_ruby
706 RUBY_SRC
707 RUBY_OBJ
708 RUBY_PRO
709 RUBY_CFLAGS
710 RUBY_LIBS
711 WORKSHOP_SRC
712 WORKSHOP_OBJ
713 NETBEANS_SRC
714 NETBEANS_OBJ
715 SNIFF_SRC
716 SNIFF_OBJ
717 xmkmfpath
718 XMKMF
719 X_CFLAGS
720 X_PRE_LIBS
721 X_LIBS
722 X_EXTRA_LIBS
723 X_LIB
724 GTK_CONFIG
725 GTK12_CONFIG
726 PKG_CONFIG
727 GTK_CFLAGS
728 GTK_LIBS
729 GTK_LIBNAME
730 GNOME_LIBS
731 GNOME_LIBDIR
732 GNOME_INCLUDEDIR
733 GNOME_CONFIG
734 MOTIF_LIBNAME
735 NARROW_PROTO
736 GUI_INC_LOC
737 GUI_LIB_LOC
738 GUITYPE
739 GUI_X_LIBS
740 HANGULIN_SRC
741 HANGULIN_OBJ
742 TAGPRG
743 INSTALL_LANGS
744 INSTALL_TOOL_LANGS
745 MSGFMT
746 MAKEMO
747 DEPEND_CFLAGS_FILTER
748 LIBOBJS
749 LTLIBOBJS'
750 ac_subst_files=''
751 ac_precious_vars='build_alias
752 host_alias
753 target_alias
755 CFLAGS
756 LDFLAGS
757 LIBS
758 CPPFLAGS
760 XMKMF'
763 # Initialize some variables set by options.
764 ac_init_help=
765 ac_init_version=false
766 # The variables have the same names as the options, with
767 # dashes changed to underlines.
768 cache_file=/dev/null
769 exec_prefix=NONE
770 no_create=
771 no_recursion=
772 prefix=NONE
773 program_prefix=NONE
774 program_suffix=NONE
775 program_transform_name=s,x,x,
776 silent=
777 site=
778 srcdir=
779 verbose=
780 x_includes=NONE
781 x_libraries=NONE
783 # Installation directory options.
784 # These are left unexpanded so users can "make install exec_prefix=/foo"
785 # and all the variables that are supposed to be based on exec_prefix
786 # by default will actually change.
787 # Use braces instead of parens because sh, perl, etc. also accept them.
788 # (The list follows the same order as the GNU Coding Standards.)
789 bindir='${exec_prefix}/bin'
790 sbindir='${exec_prefix}/sbin'
791 libexecdir='${exec_prefix}/libexec'
792 datarootdir='${prefix}/share'
793 datadir='${datarootdir}'
794 sysconfdir='${prefix}/etc'
795 sharedstatedir='${prefix}/com'
796 localstatedir='${prefix}/var'
797 includedir='${prefix}/include'
798 oldincludedir='/usr/include'
799 docdir='${datarootdir}/doc/${PACKAGE}'
800 infodir='${datarootdir}/info'
801 htmldir='${docdir}'
802 dvidir='${docdir}'
803 pdfdir='${docdir}'
804 psdir='${docdir}'
805 libdir='${exec_prefix}/lib'
806 localedir='${datarootdir}/locale'
807 mandir='${datarootdir}/man'
809 ac_prev=
810 ac_dashdash=
811 for ac_option
813 # If the previous option needs an argument, assign it.
814 if test -n "$ac_prev"; then
815 eval $ac_prev=\$ac_option
816 ac_prev=
817 continue
820 case $ac_option in
821 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
822 *) ac_optarg=yes ;;
823 esac
825 # Accept the important Cygnus configure options, so we can diagnose typos.
827 case $ac_dashdash$ac_option in
829 ac_dashdash=yes ;;
831 -bindir | --bindir | --bindi | --bind | --bin | --bi)
832 ac_prev=bindir ;;
833 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
834 bindir=$ac_optarg ;;
836 -build | --build | --buil | --bui | --bu)
837 ac_prev=build_alias ;;
838 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
839 build_alias=$ac_optarg ;;
841 -cache-file | --cache-file | --cache-fil | --cache-fi \
842 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
843 ac_prev=cache_file ;;
844 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
845 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
846 cache_file=$ac_optarg ;;
848 --config-cache | -C)
849 cache_file=config.cache ;;
851 -datadir | --datadir | --datadi | --datad)
852 ac_prev=datadir ;;
853 -datadir=* | --datadir=* | --datadi=* | --datad=*)
854 datadir=$ac_optarg ;;
856 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
857 | --dataroo | --dataro | --datar)
858 ac_prev=datarootdir ;;
859 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
860 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
861 datarootdir=$ac_optarg ;;
863 -disable-* | --disable-*)
864 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
865 # Reject names that are not valid shell variable names.
866 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
867 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
868 { (exit 1); exit 1; }; }
869 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
870 eval enable_$ac_feature=no ;;
872 -docdir | --docdir | --docdi | --doc | --do)
873 ac_prev=docdir ;;
874 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
875 docdir=$ac_optarg ;;
877 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
878 ac_prev=dvidir ;;
879 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
880 dvidir=$ac_optarg ;;
882 -enable-* | --enable-*)
883 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
884 # Reject names that are not valid shell variable names.
885 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
886 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
887 { (exit 1); exit 1; }; }
888 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
889 eval enable_$ac_feature=\$ac_optarg ;;
891 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
892 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
893 | --exec | --exe | --ex)
894 ac_prev=exec_prefix ;;
895 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
896 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
897 | --exec=* | --exe=* | --ex=*)
898 exec_prefix=$ac_optarg ;;
900 -gas | --gas | --ga | --g)
901 # Obsolete; use --with-gas.
902 with_gas=yes ;;
904 -help | --help | --hel | --he | -h)
905 ac_init_help=long ;;
906 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
907 ac_init_help=recursive ;;
908 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
909 ac_init_help=short ;;
911 -host | --host | --hos | --ho)
912 ac_prev=host_alias ;;
913 -host=* | --host=* | --hos=* | --ho=*)
914 host_alias=$ac_optarg ;;
916 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
917 ac_prev=htmldir ;;
918 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
919 | --ht=*)
920 htmldir=$ac_optarg ;;
922 -includedir | --includedir | --includedi | --included | --include \
923 | --includ | --inclu | --incl | --inc)
924 ac_prev=includedir ;;
925 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
926 | --includ=* | --inclu=* | --incl=* | --inc=*)
927 includedir=$ac_optarg ;;
929 -infodir | --infodir | --infodi | --infod | --info | --inf)
930 ac_prev=infodir ;;
931 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
932 infodir=$ac_optarg ;;
934 -libdir | --libdir | --libdi | --libd)
935 ac_prev=libdir ;;
936 -libdir=* | --libdir=* | --libdi=* | --libd=*)
937 libdir=$ac_optarg ;;
939 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
940 | --libexe | --libex | --libe)
941 ac_prev=libexecdir ;;
942 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
943 | --libexe=* | --libex=* | --libe=*)
944 libexecdir=$ac_optarg ;;
946 -localedir | --localedir | --localedi | --localed | --locale)
947 ac_prev=localedir ;;
948 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
949 localedir=$ac_optarg ;;
951 -localstatedir | --localstatedir | --localstatedi | --localstated \
952 | --localstate | --localstat | --localsta | --localst | --locals)
953 ac_prev=localstatedir ;;
954 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
955 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
956 localstatedir=$ac_optarg ;;
958 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
959 ac_prev=mandir ;;
960 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
961 mandir=$ac_optarg ;;
963 -nfp | --nfp | --nf)
964 # Obsolete; use --without-fp.
965 with_fp=no ;;
967 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
968 | --no-cr | --no-c | -n)
969 no_create=yes ;;
971 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
972 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
973 no_recursion=yes ;;
975 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
976 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
977 | --oldin | --oldi | --old | --ol | --o)
978 ac_prev=oldincludedir ;;
979 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
980 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
981 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
982 oldincludedir=$ac_optarg ;;
984 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
985 ac_prev=prefix ;;
986 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
987 prefix=$ac_optarg ;;
989 -program-prefix | --program-prefix | --program-prefi | --program-pref \
990 | --program-pre | --program-pr | --program-p)
991 ac_prev=program_prefix ;;
992 -program-prefix=* | --program-prefix=* | --program-prefi=* \
993 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
994 program_prefix=$ac_optarg ;;
996 -program-suffix | --program-suffix | --program-suffi | --program-suff \
997 | --program-suf | --program-su | --program-s)
998 ac_prev=program_suffix ;;
999 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1000 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1001 program_suffix=$ac_optarg ;;
1003 -program-transform-name | --program-transform-name \
1004 | --program-transform-nam | --program-transform-na \
1005 | --program-transform-n | --program-transform- \
1006 | --program-transform | --program-transfor \
1007 | --program-transfo | --program-transf \
1008 | --program-trans | --program-tran \
1009 | --progr-tra | --program-tr | --program-t)
1010 ac_prev=program_transform_name ;;
1011 -program-transform-name=* | --program-transform-name=* \
1012 | --program-transform-nam=* | --program-transform-na=* \
1013 | --program-transform-n=* | --program-transform-=* \
1014 | --program-transform=* | --program-transfor=* \
1015 | --program-transfo=* | --program-transf=* \
1016 | --program-trans=* | --program-tran=* \
1017 | --progr-tra=* | --program-tr=* | --program-t=*)
1018 program_transform_name=$ac_optarg ;;
1020 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1021 ac_prev=pdfdir ;;
1022 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1023 pdfdir=$ac_optarg ;;
1025 -psdir | --psdir | --psdi | --psd | --ps)
1026 ac_prev=psdir ;;
1027 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1028 psdir=$ac_optarg ;;
1030 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1031 | -silent | --silent | --silen | --sile | --sil)
1032 silent=yes ;;
1034 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1035 ac_prev=sbindir ;;
1036 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1037 | --sbi=* | --sb=*)
1038 sbindir=$ac_optarg ;;
1040 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1041 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1042 | --sharedst | --shareds | --shared | --share | --shar \
1043 | --sha | --sh)
1044 ac_prev=sharedstatedir ;;
1045 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1046 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1047 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1048 | --sha=* | --sh=*)
1049 sharedstatedir=$ac_optarg ;;
1051 -site | --site | --sit)
1052 ac_prev=site ;;
1053 -site=* | --site=* | --sit=*)
1054 site=$ac_optarg ;;
1056 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1057 ac_prev=srcdir ;;
1058 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1059 srcdir=$ac_optarg ;;
1061 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1062 | --syscon | --sysco | --sysc | --sys | --sy)
1063 ac_prev=sysconfdir ;;
1064 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1065 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1066 sysconfdir=$ac_optarg ;;
1068 -target | --target | --targe | --targ | --tar | --ta | --t)
1069 ac_prev=target_alias ;;
1070 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1071 target_alias=$ac_optarg ;;
1073 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1074 verbose=yes ;;
1076 -version | --version | --versio | --versi | --vers | -V)
1077 ac_init_version=: ;;
1079 -with-* | --with-*)
1080 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1081 # Reject names that are not valid shell variable names.
1082 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1083 { echo "$as_me: error: invalid package name: $ac_package" >&2
1084 { (exit 1); exit 1; }; }
1085 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1086 eval with_$ac_package=\$ac_optarg ;;
1088 -without-* | --without-*)
1089 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1090 # Reject names that are not valid shell variable names.
1091 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1092 { echo "$as_me: error: invalid package name: $ac_package" >&2
1093 { (exit 1); exit 1; }; }
1094 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1095 eval with_$ac_package=no ;;
1097 --x)
1098 # Obsolete; use --with-x.
1099 with_x=yes ;;
1101 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1102 | --x-incl | --x-inc | --x-in | --x-i)
1103 ac_prev=x_includes ;;
1104 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1105 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1106 x_includes=$ac_optarg ;;
1108 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1109 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1110 ac_prev=x_libraries ;;
1111 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1112 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1113 x_libraries=$ac_optarg ;;
1115 -*) { echo "$as_me: error: unrecognized option: $ac_option
1116 Try \`$0 --help' for more information." >&2
1117 { (exit 1); exit 1; }; }
1120 *=*)
1121 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1122 # Reject names that are not valid shell variable names.
1123 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1124 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1125 { (exit 1); exit 1; }; }
1126 eval $ac_envvar=\$ac_optarg
1127 export $ac_envvar ;;
1130 # FIXME: should be removed in autoconf 3.0.
1131 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1132 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1133 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1134 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1137 esac
1138 done
1140 if test -n "$ac_prev"; then
1141 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1142 { echo "$as_me: error: missing argument to $ac_option" >&2
1143 { (exit 1); exit 1; }; }
1146 # Be sure to have absolute directory names.
1147 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1148 datadir sysconfdir sharedstatedir localstatedir includedir \
1149 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1150 libdir localedir mandir
1152 eval ac_val=\$$ac_var
1153 case $ac_val in
1154 [\\/$]* | ?:[\\/]* ) continue;;
1155 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1156 esac
1157 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1158 { (exit 1); exit 1; }; }
1159 done
1161 # There might be people who depend on the old broken behavior: `$host'
1162 # used to hold the argument of --host etc.
1163 # FIXME: To remove some day.
1164 build=$build_alias
1165 host=$host_alias
1166 target=$target_alias
1168 # FIXME: To remove some day.
1169 if test "x$host_alias" != x; then
1170 if test "x$build_alias" = x; then
1171 cross_compiling=maybe
1172 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1173 If a cross compiler is detected then cross compile mode will be used." >&2
1174 elif test "x$build_alias" != "x$host_alias"; then
1175 cross_compiling=yes
1179 ac_tool_prefix=
1180 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1182 test "$silent" = yes && exec 6>/dev/null
1185 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1186 ac_ls_di=`ls -di .` &&
1187 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1188 { echo "$as_me: error: Working directory cannot be determined" >&2
1189 { (exit 1); exit 1; }; }
1190 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1191 { echo "$as_me: error: pwd does not report name of working directory" >&2
1192 { (exit 1); exit 1; }; }
1195 # Find the source files, if location was not specified.
1196 if test -z "$srcdir"; then
1197 ac_srcdir_defaulted=yes
1198 # Try the directory containing this script, then the parent directory.
1199 ac_confdir=`$as_dirname -- "$0" ||
1200 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1201 X"$0" : 'X\(//\)[^/]' \| \
1202 X"$0" : 'X\(//\)$' \| \
1203 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1204 echo X"$0" |
1205 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1206 s//\1/
1209 /^X\(\/\/\)[^/].*/{
1210 s//\1/
1213 /^X\(\/\/\)$/{
1214 s//\1/
1217 /^X\(\/\).*/{
1218 s//\1/
1221 s/.*/./; q'`
1222 srcdir=$ac_confdir
1223 if test ! -r "$srcdir/$ac_unique_file"; then
1224 srcdir=..
1226 else
1227 ac_srcdir_defaulted=no
1229 if test ! -r "$srcdir/$ac_unique_file"; then
1230 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1231 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1232 { (exit 1); exit 1; }; }
1234 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1235 ac_abs_confdir=`(
1236 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1237 { (exit 1); exit 1; }; }
1238 pwd)`
1239 # When building in place, set srcdir=.
1240 if test "$ac_abs_confdir" = "$ac_pwd"; then
1241 srcdir=.
1243 # Remove unnecessary trailing slashes from srcdir.
1244 # Double slashes in file names in object file debugging info
1245 # mess up M-x gdb in Emacs.
1246 case $srcdir in
1247 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1248 esac
1249 for ac_var in $ac_precious_vars; do
1250 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1251 eval ac_env_${ac_var}_value=\$${ac_var}
1252 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1253 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1254 done
1257 # Report the --help message.
1259 if test "$ac_init_help" = "long"; then
1260 # Omit some internal or obsolete options to make the list less imposing.
1261 # This message is too long to be a string in the A/UX 3.1 sh.
1262 cat <<_ACEOF
1263 \`configure' configures this package to adapt to many kinds of systems.
1265 Usage: $0 [OPTION]... [VAR=VALUE]...
1267 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1268 VAR=VALUE. See below for descriptions of some of the useful variables.
1270 Defaults for the options are specified in brackets.
1272 Configuration:
1273 -h, --help display this help and exit
1274 --help=short display options specific to this package
1275 --help=recursive display the short help of all the included packages
1276 -V, --version display version information and exit
1277 -q, --quiet, --silent do not print \`checking...' messages
1278 --cache-file=FILE cache test results in FILE [disabled]
1279 -C, --config-cache alias for \`--cache-file=config.cache'
1280 -n, --no-create do not create output files
1281 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1283 Installation directories:
1284 --prefix=PREFIX install architecture-independent files in PREFIX
1285 [$ac_default_prefix]
1286 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1287 [PREFIX]
1289 By default, \`make install' will install all the files in
1290 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1291 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1292 for instance \`--prefix=\$HOME'.
1294 For better control, use the options below.
1296 Fine tuning of the installation directories:
1297 --bindir=DIR user executables [EPREFIX/bin]
1298 --sbindir=DIR system admin executables [EPREFIX/sbin]
1299 --libexecdir=DIR program executables [EPREFIX/libexec]
1300 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1301 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1302 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1303 --libdir=DIR object code libraries [EPREFIX/lib]
1304 --includedir=DIR C header files [PREFIX/include]
1305 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1306 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1307 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1308 --infodir=DIR info documentation [DATAROOTDIR/info]
1309 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1310 --mandir=DIR man documentation [DATAROOTDIR/man]
1311 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1312 --htmldir=DIR html documentation [DOCDIR]
1313 --dvidir=DIR dvi documentation [DOCDIR]
1314 --pdfdir=DIR pdf documentation [DOCDIR]
1315 --psdir=DIR ps documentation [DOCDIR]
1316 _ACEOF
1318 cat <<\_ACEOF
1320 X features:
1321 --x-includes=DIR X include files are in DIR
1322 --x-libraries=DIR X library files are in DIR
1323 _ACEOF
1326 if test -n "$ac_init_help"; then
1328 cat <<\_ACEOF
1330 Optional Features:
1331 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1332 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1333 --disable-darwin Disable Darwin (Mac OS X) support.
1334 --disable-selinux Don't check for SELinux support.
1335 --disable-xsmp Disable XSMP session management
1336 --disable-xsmp-interact Disable XSMP interaction
1337 --enable-mzschemeinterp Include MzScheme interpreter.
1338 --enable-perlinterp Include Perl interpreter.
1339 --enable-pythoninterp Include Python interpreter.
1340 --enable-tclinterp Include Tcl interpreter.
1341 --enable-rubyinterp Include Ruby interpreter.
1342 --enable-cscope Include cscope interface.
1343 --enable-workshop Include Sun Visual Workshop support.
1344 --disable-netbeans Disable NetBeans integration support.
1345 --enable-sniff Include Sniff interface.
1346 --enable-multibyte Include multibyte editing support.
1347 --enable-hangulinput Include Hangul input support.
1348 --enable-xim Include XIM input support.
1349 --enable-fontset Include X fontset output support.
1350 --enable-gui=OPTS X11 GUI default=auto OPTS=auto/no/gtk/gtk2/gnome/gnome2/motif/athena/neXtaw/photon/carbon/macvim
1351 --enable-gtk-check If auto-select GUI, check for GTK default=yes
1352 --enable-gtk2-check If GTK GUI, check for GTK+ 2 default=yes
1353 --enable-gnome-check If GTK GUI, check for GNOME default=no
1354 --enable-motif-check If auto-select GUI, check for Motif default=yes
1355 --enable-athena-check If auto-select GUI, check for Athena default=yes
1356 --enable-nextaw-check If auto-select GUI, check for neXtaw default=yes
1357 --enable-carbon-check If auto-select GUI, check for Carbon default=yes
1358 --enable-macvim-check If auto-select GUI, check for MacVim default=yes
1359 --disable-gtktest Do not try to compile and run a test GTK program
1360 --disable-acl Don't check for ACL support.
1361 --disable-gpm Don't use gpm (Linux mouse daemon).
1362 --disable-sysmouse Don't use sysmouse (mouse in *BSD console).
1363 --disable-nls Don't support NLS (gettext()).
1365 Optional Packages:
1366 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1367 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1368 --with-mac-arch=ARCH current, intel, ppc or both
1369 --with-local-dir=PATH search PATH instead of /usr/local for local libraries.
1370 --without-local-dir do not search /usr/local for local libraries.
1371 --with-vim-name=NAME what to call the Vim executable
1372 --with-ex-name=NAME what to call the Ex executable
1373 --with-view-name=NAME what to call the View executable
1374 --with-global-runtime=DIR global runtime directory in 'runtimepath'
1375 --with-modified-by=NAME name of who modified a release version
1376 --with-features=TYPE tiny, small, normal, big or huge (default: normal)
1377 --with-compiledby=NAME name to show in :version message
1378 --with-plthome=PLTHOME Use PLTHOME.
1379 --with-python-config-dir=PATH Python's config directory
1380 --with-tclsh=PATH which tclsh to use (default: tclsh8.0)
1381 --with-x use the X Window System
1382 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1383 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1384 --with-gnome-includes=DIR Specify location of GNOME headers
1385 --with-gnome-libs=DIR Specify location of GNOME libs
1386 --with-gnome Specify prefix for GNOME files
1387 --with-motif-lib=STRING Library for Motif
1388 --with-tlib=library terminal library to be used
1390 Some influential environment variables:
1391 CC C compiler command
1392 CFLAGS C compiler flags
1393 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1394 nonstandard directory <lib dir>
1395 LIBS libraries to pass to the linker, e.g. -l<library>
1396 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1397 you have headers in a nonstandard directory <include dir>
1398 CPP C preprocessor
1399 XMKMF Path to xmkmf, Makefile generator for X Window System
1401 Use these variables to override the choices made by `configure' or to help
1402 it to find libraries and programs with nonstandard names/locations.
1404 _ACEOF
1405 ac_status=$?
1408 if test "$ac_init_help" = "recursive"; then
1409 # If there are subdirs, report their specific --help.
1410 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1411 test -d "$ac_dir" || continue
1412 ac_builddir=.
1414 case "$ac_dir" in
1415 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1417 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1418 # A ".." for each directory in $ac_dir_suffix.
1419 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1420 case $ac_top_builddir_sub in
1421 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1422 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1423 esac ;;
1424 esac
1425 ac_abs_top_builddir=$ac_pwd
1426 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1427 # for backward compatibility:
1428 ac_top_builddir=$ac_top_build_prefix
1430 case $srcdir in
1431 .) # We are building in place.
1432 ac_srcdir=.
1433 ac_top_srcdir=$ac_top_builddir_sub
1434 ac_abs_top_srcdir=$ac_pwd ;;
1435 [\\/]* | ?:[\\/]* ) # Absolute name.
1436 ac_srcdir=$srcdir$ac_dir_suffix;
1437 ac_top_srcdir=$srcdir
1438 ac_abs_top_srcdir=$srcdir ;;
1439 *) # Relative name.
1440 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1441 ac_top_srcdir=$ac_top_build_prefix$srcdir
1442 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1443 esac
1444 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1446 cd "$ac_dir" || { ac_status=$?; continue; }
1447 # Check for guested configure.
1448 if test -f "$ac_srcdir/configure.gnu"; then
1449 echo &&
1450 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1451 elif test -f "$ac_srcdir/configure"; then
1452 echo &&
1453 $SHELL "$ac_srcdir/configure" --help=recursive
1454 else
1455 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1456 fi || ac_status=$?
1457 cd "$ac_pwd" || { ac_status=$?; break; }
1458 done
1461 test -n "$ac_init_help" && exit $ac_status
1462 if $ac_init_version; then
1463 cat <<\_ACEOF
1464 configure
1465 generated by GNU Autoconf 2.61
1467 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1468 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1469 This configure script is free software; the Free Software Foundation
1470 gives unlimited permission to copy, distribute and modify it.
1471 _ACEOF
1472 exit
1474 cat >config.log <<_ACEOF
1475 This file contains any messages produced by compilers while
1476 running configure, to aid debugging if configure makes a mistake.
1478 It was created by $as_me, which was
1479 generated by GNU Autoconf 2.61. Invocation command line was
1481 $ $0 $@
1483 _ACEOF
1484 exec 5>>config.log
1486 cat <<_ASUNAME
1487 ## --------- ##
1488 ## Platform. ##
1489 ## --------- ##
1491 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1492 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1493 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1494 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1495 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1497 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1498 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1500 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1501 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1502 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1503 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1504 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1505 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1506 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1508 _ASUNAME
1510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1511 for as_dir in $PATH
1513 IFS=$as_save_IFS
1514 test -z "$as_dir" && as_dir=.
1515 echo "PATH: $as_dir"
1516 done
1517 IFS=$as_save_IFS
1519 } >&5
1521 cat >&5 <<_ACEOF
1524 ## ----------- ##
1525 ## Core tests. ##
1526 ## ----------- ##
1528 _ACEOF
1531 # Keep a trace of the command line.
1532 # Strip out --no-create and --no-recursion so they do not pile up.
1533 # Strip out --silent because we don't want to record it for future runs.
1534 # Also quote any args containing shell meta-characters.
1535 # Make two passes to allow for proper duplicate-argument suppression.
1536 ac_configure_args=
1537 ac_configure_args0=
1538 ac_configure_args1=
1539 ac_must_keep_next=false
1540 for ac_pass in 1 2
1542 for ac_arg
1544 case $ac_arg in
1545 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1546 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1547 | -silent | --silent | --silen | --sile | --sil)
1548 continue ;;
1549 *\'*)
1550 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1551 esac
1552 case $ac_pass in
1553 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1555 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1556 if test $ac_must_keep_next = true; then
1557 ac_must_keep_next=false # Got value, back to normal.
1558 else
1559 case $ac_arg in
1560 *=* | --config-cache | -C | -disable-* | --disable-* \
1561 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1562 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1563 | -with-* | --with-* | -without-* | --without-* | --x)
1564 case "$ac_configure_args0 " in
1565 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1566 esac
1568 -* ) ac_must_keep_next=true ;;
1569 esac
1571 ac_configure_args="$ac_configure_args '$ac_arg'"
1573 esac
1574 done
1575 done
1576 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1577 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1579 # When interrupted or exit'd, cleanup temporary files, and complete
1580 # config.log. We remove comments because anyway the quotes in there
1581 # would cause problems or look ugly.
1582 # WARNING: Use '\'' to represent an apostrophe within the trap.
1583 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1584 trap 'exit_status=$?
1585 # Save into config.log some information that might help in debugging.
1587 echo
1589 cat <<\_ASBOX
1590 ## ---------------- ##
1591 ## Cache variables. ##
1592 ## ---------------- ##
1593 _ASBOX
1594 echo
1595 # The following way of writing the cache mishandles newlines in values,
1597 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1598 eval ac_val=\$$ac_var
1599 case $ac_val in #(
1600 *${as_nl}*)
1601 case $ac_var in #(
1602 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1603 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1604 esac
1605 case $ac_var in #(
1606 _ | IFS | as_nl) ;; #(
1607 *) $as_unset $ac_var ;;
1608 esac ;;
1609 esac
1610 done
1611 (set) 2>&1 |
1612 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1613 *${as_nl}ac_space=\ *)
1614 sed -n \
1615 "s/'\''/'\''\\\\'\'''\''/g;
1616 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1617 ;; #(
1619 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1621 esac |
1622 sort
1624 echo
1626 cat <<\_ASBOX
1627 ## ----------------- ##
1628 ## Output variables. ##
1629 ## ----------------- ##
1630 _ASBOX
1631 echo
1632 for ac_var in $ac_subst_vars
1634 eval ac_val=\$$ac_var
1635 case $ac_val in
1636 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1637 esac
1638 echo "$ac_var='\''$ac_val'\''"
1639 done | sort
1640 echo
1642 if test -n "$ac_subst_files"; then
1643 cat <<\_ASBOX
1644 ## ------------------- ##
1645 ## File substitutions. ##
1646 ## ------------------- ##
1647 _ASBOX
1648 echo
1649 for ac_var in $ac_subst_files
1651 eval ac_val=\$$ac_var
1652 case $ac_val in
1653 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1654 esac
1655 echo "$ac_var='\''$ac_val'\''"
1656 done | sort
1657 echo
1660 if test -s confdefs.h; then
1661 cat <<\_ASBOX
1662 ## ----------- ##
1663 ## confdefs.h. ##
1664 ## ----------- ##
1665 _ASBOX
1666 echo
1667 cat confdefs.h
1668 echo
1670 test "$ac_signal" != 0 &&
1671 echo "$as_me: caught signal $ac_signal"
1672 echo "$as_me: exit $exit_status"
1673 } >&5
1674 rm -f core *.core core.conftest.* &&
1675 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1676 exit $exit_status
1678 for ac_signal in 1 2 13 15; do
1679 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1680 done
1681 ac_signal=0
1683 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1684 rm -f -r conftest* confdefs.h
1686 # Predefined preprocessor variables.
1688 cat >>confdefs.h <<_ACEOF
1689 #define PACKAGE_NAME "$PACKAGE_NAME"
1690 _ACEOF
1693 cat >>confdefs.h <<_ACEOF
1694 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1695 _ACEOF
1698 cat >>confdefs.h <<_ACEOF
1699 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1700 _ACEOF
1703 cat >>confdefs.h <<_ACEOF
1704 #define PACKAGE_STRING "$PACKAGE_STRING"
1705 _ACEOF
1708 cat >>confdefs.h <<_ACEOF
1709 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1710 _ACEOF
1713 # Let the site file select an alternate cache file if it wants to.
1714 # Prefer explicitly selected file to automatically selected ones.
1715 if test -n "$CONFIG_SITE"; then
1716 set x "$CONFIG_SITE"
1717 elif test "x$prefix" != xNONE; then
1718 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1719 else
1720 set x "$ac_default_prefix/share/config.site" \
1721 "$ac_default_prefix/etc/config.site"
1723 shift
1724 for ac_site_file
1726 if test -r "$ac_site_file"; then
1727 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1728 echo "$as_me: loading site script $ac_site_file" >&6;}
1729 sed 's/^/| /' "$ac_site_file" >&5
1730 . "$ac_site_file"
1732 done
1734 if test -r "$cache_file"; then
1735 # Some versions of bash will fail to source /dev/null (special
1736 # files actually), so we avoid doing that.
1737 if test -f "$cache_file"; then
1738 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1739 echo "$as_me: loading cache $cache_file" >&6;}
1740 case $cache_file in
1741 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1742 *) . "./$cache_file";;
1743 esac
1745 else
1746 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1747 echo "$as_me: creating cache $cache_file" >&6;}
1748 >$cache_file
1751 # Check that the precious variables saved in the cache have kept the same
1752 # value.
1753 ac_cache_corrupted=false
1754 for ac_var in $ac_precious_vars; do
1755 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1756 eval ac_new_set=\$ac_env_${ac_var}_set
1757 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1758 eval ac_new_val=\$ac_env_${ac_var}_value
1759 case $ac_old_set,$ac_new_set in
1760 set,)
1761 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1762 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1763 ac_cache_corrupted=: ;;
1764 ,set)
1765 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1766 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1767 ac_cache_corrupted=: ;;
1768 ,);;
1770 if test "x$ac_old_val" != "x$ac_new_val"; then
1771 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1772 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1773 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1774 echo "$as_me: former value: $ac_old_val" >&2;}
1775 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1776 echo "$as_me: current value: $ac_new_val" >&2;}
1777 ac_cache_corrupted=:
1778 fi;;
1779 esac
1780 # Pass precious variables to config.status.
1781 if test "$ac_new_set" = set; then
1782 case $ac_new_val in
1783 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1784 *) ac_arg=$ac_var=$ac_new_val ;;
1785 esac
1786 case " $ac_configure_args " in
1787 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1788 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1789 esac
1791 done
1792 if $ac_cache_corrupted; then
1793 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1794 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1795 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1796 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1797 { (exit 1); exit 1; }; }
1816 ac_ext=c
1817 ac_cpp='$CPP $CPPFLAGS'
1818 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1819 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1820 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1823 ac_config_headers="$ac_config_headers auto/config.h:config.h.in"
1826 cat >>confdefs.h <<\_ACEOF
1827 #define UNIX 1
1828 _ACEOF
1830 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1831 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
1832 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
1833 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
1834 echo $ECHO_N "(cached) $ECHO_C" >&6
1835 else
1836 cat >conftest.make <<\_ACEOF
1837 SHELL = /bin/sh
1838 all:
1839 @echo '@@@%%%=$(MAKE)=@@@%%%'
1840 _ACEOF
1841 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1842 case `${MAKE-make} -f conftest.make 2>/dev/null` in
1843 *@@@%%%=?*=@@@%%%*)
1844 eval ac_cv_prog_make_${ac_make}_set=yes;;
1846 eval ac_cv_prog_make_${ac_make}_set=no;;
1847 esac
1848 rm -f conftest.make
1850 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
1851 { echo "$as_me:$LINENO: result: yes" >&5
1852 echo "${ECHO_T}yes" >&6; }
1853 SET_MAKE=
1854 else
1855 { echo "$as_me:$LINENO: result: no" >&5
1856 echo "${ECHO_T}no" >&6; }
1857 SET_MAKE="MAKE=${MAKE-make}"
1861 ac_ext=c
1862 ac_cpp='$CPP $CPPFLAGS'
1863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1866 if test -n "$ac_tool_prefix"; then
1867 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1868 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1869 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1870 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1871 if test "${ac_cv_prog_CC+set}" = set; then
1872 echo $ECHO_N "(cached) $ECHO_C" >&6
1873 else
1874 if test -n "$CC"; then
1875 ac_cv_prog_CC="$CC" # Let the user override the test.
1876 else
1877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1878 for as_dir in $PATH
1880 IFS=$as_save_IFS
1881 test -z "$as_dir" && as_dir=.
1882 for ac_exec_ext in '' $ac_executable_extensions; do
1883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1884 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1886 break 2
1888 done
1889 done
1890 IFS=$as_save_IFS
1894 CC=$ac_cv_prog_CC
1895 if test -n "$CC"; then
1896 { echo "$as_me:$LINENO: result: $CC" >&5
1897 echo "${ECHO_T}$CC" >&6; }
1898 else
1899 { echo "$as_me:$LINENO: result: no" >&5
1900 echo "${ECHO_T}no" >&6; }
1905 if test -z "$ac_cv_prog_CC"; then
1906 ac_ct_CC=$CC
1907 # Extract the first word of "gcc", so it can be a program name with args.
1908 set dummy gcc; ac_word=$2
1909 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1910 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1911 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1912 echo $ECHO_N "(cached) $ECHO_C" >&6
1913 else
1914 if test -n "$ac_ct_CC"; then
1915 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1916 else
1917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1918 for as_dir in $PATH
1920 IFS=$as_save_IFS
1921 test -z "$as_dir" && as_dir=.
1922 for ac_exec_ext in '' $ac_executable_extensions; do
1923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1924 ac_cv_prog_ac_ct_CC="gcc"
1925 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1926 break 2
1928 done
1929 done
1930 IFS=$as_save_IFS
1934 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1935 if test -n "$ac_ct_CC"; then
1936 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1937 echo "${ECHO_T}$ac_ct_CC" >&6; }
1938 else
1939 { echo "$as_me:$LINENO: result: no" >&5
1940 echo "${ECHO_T}no" >&6; }
1943 if test "x$ac_ct_CC" = x; then
1944 CC=""
1945 else
1946 case $cross_compiling:$ac_tool_warned in
1947 yes:)
1948 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1949 whose name does not start with the host triplet. If you think this
1950 configuration is useful to you, please write to autoconf@gnu.org." >&5
1951 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1952 whose name does not start with the host triplet. If you think this
1953 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1954 ac_tool_warned=yes ;;
1955 esac
1956 CC=$ac_ct_CC
1958 else
1959 CC="$ac_cv_prog_CC"
1962 if test -z "$CC"; then
1963 if test -n "$ac_tool_prefix"; then
1964 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1965 set dummy ${ac_tool_prefix}cc; ac_word=$2
1966 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1968 if test "${ac_cv_prog_CC+set}" = set; then
1969 echo $ECHO_N "(cached) $ECHO_C" >&6
1970 else
1971 if test -n "$CC"; then
1972 ac_cv_prog_CC="$CC" # Let the user override the test.
1973 else
1974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1975 for as_dir in $PATH
1977 IFS=$as_save_IFS
1978 test -z "$as_dir" && as_dir=.
1979 for ac_exec_ext in '' $ac_executable_extensions; do
1980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1981 ac_cv_prog_CC="${ac_tool_prefix}cc"
1982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1983 break 2
1985 done
1986 done
1987 IFS=$as_save_IFS
1991 CC=$ac_cv_prog_CC
1992 if test -n "$CC"; then
1993 { echo "$as_me:$LINENO: result: $CC" >&5
1994 echo "${ECHO_T}$CC" >&6; }
1995 else
1996 { echo "$as_me:$LINENO: result: no" >&5
1997 echo "${ECHO_T}no" >&6; }
2003 if test -z "$CC"; then
2004 # Extract the first word of "cc", so it can be a program name with args.
2005 set dummy cc; ac_word=$2
2006 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2008 if test "${ac_cv_prog_CC+set}" = set; then
2009 echo $ECHO_N "(cached) $ECHO_C" >&6
2010 else
2011 if test -n "$CC"; then
2012 ac_cv_prog_CC="$CC" # Let the user override the test.
2013 else
2014 ac_prog_rejected=no
2015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2016 for as_dir in $PATH
2018 IFS=$as_save_IFS
2019 test -z "$as_dir" && as_dir=.
2020 for ac_exec_ext in '' $ac_executable_extensions; do
2021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2022 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2023 ac_prog_rejected=yes
2024 continue
2026 ac_cv_prog_CC="cc"
2027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2028 break 2
2030 done
2031 done
2032 IFS=$as_save_IFS
2034 if test $ac_prog_rejected = yes; then
2035 # We found a bogon in the path, so make sure we never use it.
2036 set dummy $ac_cv_prog_CC
2037 shift
2038 if test $# != 0; then
2039 # We chose a different compiler from the bogus one.
2040 # However, it has the same basename, so the bogon will be chosen
2041 # first if we set CC to just the basename; use the full file name.
2042 shift
2043 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2048 CC=$ac_cv_prog_CC
2049 if test -n "$CC"; then
2050 { echo "$as_me:$LINENO: result: $CC" >&5
2051 echo "${ECHO_T}$CC" >&6; }
2052 else
2053 { echo "$as_me:$LINENO: result: no" >&5
2054 echo "${ECHO_T}no" >&6; }
2059 if test -z "$CC"; then
2060 if test -n "$ac_tool_prefix"; then
2061 for ac_prog in cl.exe
2063 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2064 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2065 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2067 if test "${ac_cv_prog_CC+set}" = set; then
2068 echo $ECHO_N "(cached) $ECHO_C" >&6
2069 else
2070 if test -n "$CC"; then
2071 ac_cv_prog_CC="$CC" # Let the user override the test.
2072 else
2073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2074 for as_dir in $PATH
2076 IFS=$as_save_IFS
2077 test -z "$as_dir" && as_dir=.
2078 for ac_exec_ext in '' $ac_executable_extensions; do
2079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2080 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2081 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2082 break 2
2084 done
2085 done
2086 IFS=$as_save_IFS
2090 CC=$ac_cv_prog_CC
2091 if test -n "$CC"; then
2092 { echo "$as_me:$LINENO: result: $CC" >&5
2093 echo "${ECHO_T}$CC" >&6; }
2094 else
2095 { echo "$as_me:$LINENO: result: no" >&5
2096 echo "${ECHO_T}no" >&6; }
2100 test -n "$CC" && break
2101 done
2103 if test -z "$CC"; then
2104 ac_ct_CC=$CC
2105 for ac_prog in cl.exe
2107 # Extract the first word of "$ac_prog", so it can be a program name with args.
2108 set dummy $ac_prog; ac_word=$2
2109 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2110 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2111 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2112 echo $ECHO_N "(cached) $ECHO_C" >&6
2113 else
2114 if test -n "$ac_ct_CC"; then
2115 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2116 else
2117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2118 for as_dir in $PATH
2120 IFS=$as_save_IFS
2121 test -z "$as_dir" && as_dir=.
2122 for ac_exec_ext in '' $ac_executable_extensions; do
2123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2124 ac_cv_prog_ac_ct_CC="$ac_prog"
2125 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2126 break 2
2128 done
2129 done
2130 IFS=$as_save_IFS
2134 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2135 if test -n "$ac_ct_CC"; then
2136 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2137 echo "${ECHO_T}$ac_ct_CC" >&6; }
2138 else
2139 { echo "$as_me:$LINENO: result: no" >&5
2140 echo "${ECHO_T}no" >&6; }
2144 test -n "$ac_ct_CC" && break
2145 done
2147 if test "x$ac_ct_CC" = x; then
2148 CC=""
2149 else
2150 case $cross_compiling:$ac_tool_warned in
2151 yes:)
2152 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2153 whose name does not start with the host triplet. If you think this
2154 configuration is useful to you, please write to autoconf@gnu.org." >&5
2155 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2156 whose name does not start with the host triplet. If you think this
2157 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2158 ac_tool_warned=yes ;;
2159 esac
2160 CC=$ac_ct_CC
2167 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2168 See \`config.log' for more details." >&5
2169 echo "$as_me: error: no acceptable C compiler found in \$PATH
2170 See \`config.log' for more details." >&2;}
2171 { (exit 1); exit 1; }; }
2173 # Provide some information about the compiler.
2174 echo "$as_me:$LINENO: checking for C compiler version" >&5
2175 ac_compiler=`set X $ac_compile; echo $2`
2176 { (ac_try="$ac_compiler --version >&5"
2177 case "(($ac_try" in
2178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2179 *) ac_try_echo=$ac_try;;
2180 esac
2181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2182 (eval "$ac_compiler --version >&5") 2>&5
2183 ac_status=$?
2184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2185 (exit $ac_status); }
2186 { (ac_try="$ac_compiler -v >&5"
2187 case "(($ac_try" in
2188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2189 *) ac_try_echo=$ac_try;;
2190 esac
2191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2192 (eval "$ac_compiler -v >&5") 2>&5
2193 ac_status=$?
2194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2195 (exit $ac_status); }
2196 { (ac_try="$ac_compiler -V >&5"
2197 case "(($ac_try" in
2198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2199 *) ac_try_echo=$ac_try;;
2200 esac
2201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2202 (eval "$ac_compiler -V >&5") 2>&5
2203 ac_status=$?
2204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2205 (exit $ac_status); }
2207 cat >conftest.$ac_ext <<_ACEOF
2208 /* confdefs.h. */
2209 _ACEOF
2210 cat confdefs.h >>conftest.$ac_ext
2211 cat >>conftest.$ac_ext <<_ACEOF
2212 /* end confdefs.h. */
2215 main ()
2219 return 0;
2221 _ACEOF
2222 ac_clean_files_save=$ac_clean_files
2223 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2224 # Try to create an executable without -o first, disregard a.out.
2225 # It will help us diagnose broken compilers, and finding out an intuition
2226 # of exeext.
2227 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2228 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2229 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2231 # List of possible output files, starting from the most likely.
2232 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2233 # only as a last resort. b.out is created by i960 compilers.
2234 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2236 # The IRIX 6 linker writes into existing files which may not be
2237 # executable, retaining their permissions. Remove them first so a
2238 # subsequent execution test works.
2239 ac_rmfiles=
2240 for ac_file in $ac_files
2242 case $ac_file in
2243 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2244 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2245 esac
2246 done
2247 rm -f $ac_rmfiles
2249 if { (ac_try="$ac_link_default"
2250 case "(($ac_try" in
2251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2252 *) ac_try_echo=$ac_try;;
2253 esac
2254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2255 (eval "$ac_link_default") 2>&5
2256 ac_status=$?
2257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258 (exit $ac_status); }; then
2259 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2260 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2261 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2262 # so that the user can short-circuit this test for compilers unknown to
2263 # Autoconf.
2264 for ac_file in $ac_files ''
2266 test -f "$ac_file" || continue
2267 case $ac_file in
2268 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2270 [ab].out )
2271 # We found the default executable, but exeext='' is most
2272 # certainly right.
2273 break;;
2274 *.* )
2275 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2276 then :; else
2277 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2279 # We set ac_cv_exeext here because the later test for it is not
2280 # safe: cross compilers may not add the suffix if given an `-o'
2281 # argument, so we may need to know it at that point already.
2282 # Even if this section looks crufty: it has the advantage of
2283 # actually working.
2284 break;;
2286 break;;
2287 esac
2288 done
2289 test "$ac_cv_exeext" = no && ac_cv_exeext=
2291 else
2292 ac_file=''
2295 { echo "$as_me:$LINENO: result: $ac_file" >&5
2296 echo "${ECHO_T}$ac_file" >&6; }
2297 if test -z "$ac_file"; then
2298 echo "$as_me: failed program was:" >&5
2299 sed 's/^/| /' conftest.$ac_ext >&5
2301 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2302 See \`config.log' for more details." >&5
2303 echo "$as_me: error: C compiler cannot create executables
2304 See \`config.log' for more details." >&2;}
2305 { (exit 77); exit 77; }; }
2308 ac_exeext=$ac_cv_exeext
2310 # Check that the compiler produces executables we can run. If not, either
2311 # the compiler is broken, or we cross compile.
2312 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2313 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2314 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2315 # If not cross compiling, check that we can run a simple program.
2316 if test "$cross_compiling" != yes; then
2317 if { ac_try='./$ac_file'
2318 { (case "(($ac_try" in
2319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2320 *) ac_try_echo=$ac_try;;
2321 esac
2322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2323 (eval "$ac_try") 2>&5
2324 ac_status=$?
2325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326 (exit $ac_status); }; }; then
2327 cross_compiling=no
2328 else
2329 if test "$cross_compiling" = maybe; then
2330 cross_compiling=yes
2331 else
2332 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2333 If you meant to cross compile, use \`--host'.
2334 See \`config.log' for more details." >&5
2335 echo "$as_me: error: cannot run C compiled programs.
2336 If you meant to cross compile, use \`--host'.
2337 See \`config.log' for more details." >&2;}
2338 { (exit 1); exit 1; }; }
2342 { echo "$as_me:$LINENO: result: yes" >&5
2343 echo "${ECHO_T}yes" >&6; }
2345 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2346 ac_clean_files=$ac_clean_files_save
2347 # Check that the compiler produces executables we can run. If not, either
2348 # the compiler is broken, or we cross compile.
2349 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2350 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2351 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2352 echo "${ECHO_T}$cross_compiling" >&6; }
2354 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2355 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2356 if { (ac_try="$ac_link"
2357 case "(($ac_try" in
2358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2359 *) ac_try_echo=$ac_try;;
2360 esac
2361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2362 (eval "$ac_link") 2>&5
2363 ac_status=$?
2364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365 (exit $ac_status); }; then
2366 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2367 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2368 # work properly (i.e., refer to `conftest.exe'), while it won't with
2369 # `rm'.
2370 for ac_file in conftest.exe conftest conftest.*; do
2371 test -f "$ac_file" || continue
2372 case $ac_file in
2373 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2374 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2375 break;;
2376 * ) break;;
2377 esac
2378 done
2379 else
2380 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2381 See \`config.log' for more details." >&5
2382 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2383 See \`config.log' for more details." >&2;}
2384 { (exit 1); exit 1; }; }
2387 rm -f conftest$ac_cv_exeext
2388 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2389 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2391 rm -f conftest.$ac_ext
2392 EXEEXT=$ac_cv_exeext
2393 ac_exeext=$EXEEXT
2394 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2395 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2396 if test "${ac_cv_objext+set}" = set; then
2397 echo $ECHO_N "(cached) $ECHO_C" >&6
2398 else
2399 cat >conftest.$ac_ext <<_ACEOF
2400 /* confdefs.h. */
2401 _ACEOF
2402 cat confdefs.h >>conftest.$ac_ext
2403 cat >>conftest.$ac_ext <<_ACEOF
2404 /* end confdefs.h. */
2407 main ()
2411 return 0;
2413 _ACEOF
2414 rm -f conftest.o conftest.obj
2415 if { (ac_try="$ac_compile"
2416 case "(($ac_try" in
2417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2418 *) ac_try_echo=$ac_try;;
2419 esac
2420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2421 (eval "$ac_compile") 2>&5
2422 ac_status=$?
2423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2424 (exit $ac_status); }; then
2425 for ac_file in conftest.o conftest.obj conftest.*; do
2426 test -f "$ac_file" || continue;
2427 case $ac_file in
2428 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2429 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2430 break;;
2431 esac
2432 done
2433 else
2434 echo "$as_me: failed program was:" >&5
2435 sed 's/^/| /' conftest.$ac_ext >&5
2437 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2438 See \`config.log' for more details." >&5
2439 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2440 See \`config.log' for more details." >&2;}
2441 { (exit 1); exit 1; }; }
2444 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2446 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2447 echo "${ECHO_T}$ac_cv_objext" >&6; }
2448 OBJEXT=$ac_cv_objext
2449 ac_objext=$OBJEXT
2450 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2451 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2452 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2453 echo $ECHO_N "(cached) $ECHO_C" >&6
2454 else
2455 cat >conftest.$ac_ext <<_ACEOF
2456 /* confdefs.h. */
2457 _ACEOF
2458 cat confdefs.h >>conftest.$ac_ext
2459 cat >>conftest.$ac_ext <<_ACEOF
2460 /* end confdefs.h. */
2463 main ()
2465 #ifndef __GNUC__
2466 choke me
2467 #endif
2470 return 0;
2472 _ACEOF
2473 rm -f conftest.$ac_objext
2474 if { (ac_try="$ac_compile"
2475 case "(($ac_try" in
2476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2477 *) ac_try_echo=$ac_try;;
2478 esac
2479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2480 (eval "$ac_compile") 2>conftest.er1
2481 ac_status=$?
2482 grep -v '^ *+' conftest.er1 >conftest.err
2483 rm -f conftest.er1
2484 cat conftest.err >&5
2485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2486 (exit $ac_status); } && {
2487 test -z "$ac_c_werror_flag" ||
2488 test ! -s conftest.err
2489 } && test -s conftest.$ac_objext; then
2490 ac_compiler_gnu=yes
2491 else
2492 echo "$as_me: failed program was:" >&5
2493 sed 's/^/| /' conftest.$ac_ext >&5
2495 ac_compiler_gnu=no
2498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2499 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2502 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2503 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2504 GCC=`test $ac_compiler_gnu = yes && echo yes`
2505 ac_test_CFLAGS=${CFLAGS+set}
2506 ac_save_CFLAGS=$CFLAGS
2507 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2508 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2509 if test "${ac_cv_prog_cc_g+set}" = set; then
2510 echo $ECHO_N "(cached) $ECHO_C" >&6
2511 else
2512 ac_save_c_werror_flag=$ac_c_werror_flag
2513 ac_c_werror_flag=yes
2514 ac_cv_prog_cc_g=no
2515 CFLAGS="-g"
2516 cat >conftest.$ac_ext <<_ACEOF
2517 /* confdefs.h. */
2518 _ACEOF
2519 cat confdefs.h >>conftest.$ac_ext
2520 cat >>conftest.$ac_ext <<_ACEOF
2521 /* end confdefs.h. */
2524 main ()
2528 return 0;
2530 _ACEOF
2531 rm -f conftest.$ac_objext
2532 if { (ac_try="$ac_compile"
2533 case "(($ac_try" in
2534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2535 *) ac_try_echo=$ac_try;;
2536 esac
2537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2538 (eval "$ac_compile") 2>conftest.er1
2539 ac_status=$?
2540 grep -v '^ *+' conftest.er1 >conftest.err
2541 rm -f conftest.er1
2542 cat conftest.err >&5
2543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2544 (exit $ac_status); } && {
2545 test -z "$ac_c_werror_flag" ||
2546 test ! -s conftest.err
2547 } && test -s conftest.$ac_objext; then
2548 ac_cv_prog_cc_g=yes
2549 else
2550 echo "$as_me: failed program was:" >&5
2551 sed 's/^/| /' conftest.$ac_ext >&5
2553 CFLAGS=""
2554 cat >conftest.$ac_ext <<_ACEOF
2555 /* confdefs.h. */
2556 _ACEOF
2557 cat confdefs.h >>conftest.$ac_ext
2558 cat >>conftest.$ac_ext <<_ACEOF
2559 /* end confdefs.h. */
2562 main ()
2566 return 0;
2568 _ACEOF
2569 rm -f conftest.$ac_objext
2570 if { (ac_try="$ac_compile"
2571 case "(($ac_try" in
2572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2573 *) ac_try_echo=$ac_try;;
2574 esac
2575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2576 (eval "$ac_compile") 2>conftest.er1
2577 ac_status=$?
2578 grep -v '^ *+' conftest.er1 >conftest.err
2579 rm -f conftest.er1
2580 cat conftest.err >&5
2581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582 (exit $ac_status); } && {
2583 test -z "$ac_c_werror_flag" ||
2584 test ! -s conftest.err
2585 } && test -s conftest.$ac_objext; then
2587 else
2588 echo "$as_me: failed program was:" >&5
2589 sed 's/^/| /' conftest.$ac_ext >&5
2591 ac_c_werror_flag=$ac_save_c_werror_flag
2592 CFLAGS="-g"
2593 cat >conftest.$ac_ext <<_ACEOF
2594 /* confdefs.h. */
2595 _ACEOF
2596 cat confdefs.h >>conftest.$ac_ext
2597 cat >>conftest.$ac_ext <<_ACEOF
2598 /* end confdefs.h. */
2601 main ()
2605 return 0;
2607 _ACEOF
2608 rm -f conftest.$ac_objext
2609 if { (ac_try="$ac_compile"
2610 case "(($ac_try" in
2611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2612 *) ac_try_echo=$ac_try;;
2613 esac
2614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2615 (eval "$ac_compile") 2>conftest.er1
2616 ac_status=$?
2617 grep -v '^ *+' conftest.er1 >conftest.err
2618 rm -f conftest.er1
2619 cat conftest.err >&5
2620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621 (exit $ac_status); } && {
2622 test -z "$ac_c_werror_flag" ||
2623 test ! -s conftest.err
2624 } && test -s conftest.$ac_objext; then
2625 ac_cv_prog_cc_g=yes
2626 else
2627 echo "$as_me: failed program was:" >&5
2628 sed 's/^/| /' conftest.$ac_ext >&5
2633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2640 ac_c_werror_flag=$ac_save_c_werror_flag
2642 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2643 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2644 if test "$ac_test_CFLAGS" = set; then
2645 CFLAGS=$ac_save_CFLAGS
2646 elif test $ac_cv_prog_cc_g = yes; then
2647 if test "$GCC" = yes; then
2648 CFLAGS="-g -O2"
2649 else
2650 CFLAGS="-g"
2652 else
2653 if test "$GCC" = yes; then
2654 CFLAGS="-O2"
2655 else
2656 CFLAGS=
2659 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2660 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2661 if test "${ac_cv_prog_cc_c89+set}" = set; then
2662 echo $ECHO_N "(cached) $ECHO_C" >&6
2663 else
2664 ac_cv_prog_cc_c89=no
2665 ac_save_CC=$CC
2666 cat >conftest.$ac_ext <<_ACEOF
2667 /* confdefs.h. */
2668 _ACEOF
2669 cat confdefs.h >>conftest.$ac_ext
2670 cat >>conftest.$ac_ext <<_ACEOF
2671 /* end confdefs.h. */
2672 #include <stdarg.h>
2673 #include <stdio.h>
2674 #include <sys/types.h>
2675 #include <sys/stat.h>
2676 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2677 struct buf { int x; };
2678 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2679 static char *e (p, i)
2680 char **p;
2681 int i;
2683 return p[i];
2685 static char *f (char * (*g) (char **, int), char **p, ...)
2687 char *s;
2688 va_list v;
2689 va_start (v,p);
2690 s = g (p, va_arg (v,int));
2691 va_end (v);
2692 return s;
2695 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2696 function prototypes and stuff, but not '\xHH' hex character constants.
2697 These don't provoke an error unfortunately, instead are silently treated
2698 as 'x'. The following induces an error, until -std is added to get
2699 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2700 array size at least. It's necessary to write '\x00'==0 to get something
2701 that's true only with -std. */
2702 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2704 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2705 inside strings and character constants. */
2706 #define FOO(x) 'x'
2707 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2709 int test (int i, double x);
2710 struct s1 {int (*f) (int a);};
2711 struct s2 {int (*f) (double a);};
2712 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2713 int argc;
2714 char **argv;
2716 main ()
2718 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2720 return 0;
2722 _ACEOF
2723 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2724 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2726 CC="$ac_save_CC $ac_arg"
2727 rm -f conftest.$ac_objext
2728 if { (ac_try="$ac_compile"
2729 case "(($ac_try" in
2730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2731 *) ac_try_echo=$ac_try;;
2732 esac
2733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2734 (eval "$ac_compile") 2>conftest.er1
2735 ac_status=$?
2736 grep -v '^ *+' conftest.er1 >conftest.err
2737 rm -f conftest.er1
2738 cat conftest.err >&5
2739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740 (exit $ac_status); } && {
2741 test -z "$ac_c_werror_flag" ||
2742 test ! -s conftest.err
2743 } && test -s conftest.$ac_objext; then
2744 ac_cv_prog_cc_c89=$ac_arg
2745 else
2746 echo "$as_me: failed program was:" >&5
2747 sed 's/^/| /' conftest.$ac_ext >&5
2752 rm -f core conftest.err conftest.$ac_objext
2753 test "x$ac_cv_prog_cc_c89" != "xno" && break
2754 done
2755 rm -f conftest.$ac_ext
2756 CC=$ac_save_CC
2759 # AC_CACHE_VAL
2760 case "x$ac_cv_prog_cc_c89" in
2762 { echo "$as_me:$LINENO: result: none needed" >&5
2763 echo "${ECHO_T}none needed" >&6; } ;;
2764 xno)
2765 { echo "$as_me:$LINENO: result: unsupported" >&5
2766 echo "${ECHO_T}unsupported" >&6; } ;;
2768 CC="$CC $ac_cv_prog_cc_c89"
2769 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2770 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2771 esac
2774 ac_ext=c
2775 ac_cpp='$CPP $CPPFLAGS'
2776 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2777 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2778 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2779 ac_ext=c
2780 ac_cpp='$CPP $CPPFLAGS'
2781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2784 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2785 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2786 # On Suns, sometimes $CPP names a directory.
2787 if test -n "$CPP" && test -d "$CPP"; then
2788 CPP=
2790 if test -z "$CPP"; then
2791 if test "${ac_cv_prog_CPP+set}" = set; then
2792 echo $ECHO_N "(cached) $ECHO_C" >&6
2793 else
2794 # Double quotes because CPP needs to be expanded
2795 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2797 ac_preproc_ok=false
2798 for ac_c_preproc_warn_flag in '' yes
2800 # Use a header file that comes with gcc, so configuring glibc
2801 # with a fresh cross-compiler works.
2802 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2803 # <limits.h> exists even on freestanding compilers.
2804 # On the NeXT, cc -E runs the code through the compiler's parser,
2805 # not just through cpp. "Syntax error" is here to catch this case.
2806 cat >conftest.$ac_ext <<_ACEOF
2807 /* confdefs.h. */
2808 _ACEOF
2809 cat confdefs.h >>conftest.$ac_ext
2810 cat >>conftest.$ac_ext <<_ACEOF
2811 /* end confdefs.h. */
2812 #ifdef __STDC__
2813 # include <limits.h>
2814 #else
2815 # include <assert.h>
2816 #endif
2817 Syntax error
2818 _ACEOF
2819 if { (ac_try="$ac_cpp conftest.$ac_ext"
2820 case "(($ac_try" in
2821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2822 *) ac_try_echo=$ac_try;;
2823 esac
2824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2825 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2826 ac_status=$?
2827 grep -v '^ *+' conftest.er1 >conftest.err
2828 rm -f conftest.er1
2829 cat conftest.err >&5
2830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2831 (exit $ac_status); } >/dev/null && {
2832 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2833 test ! -s conftest.err
2834 }; then
2836 else
2837 echo "$as_me: failed program was:" >&5
2838 sed 's/^/| /' conftest.$ac_ext >&5
2840 # Broken: fails on valid input.
2841 continue
2844 rm -f conftest.err conftest.$ac_ext
2846 # OK, works on sane cases. Now check whether nonexistent headers
2847 # can be detected and how.
2848 cat >conftest.$ac_ext <<_ACEOF
2849 /* confdefs.h. */
2850 _ACEOF
2851 cat confdefs.h >>conftest.$ac_ext
2852 cat >>conftest.$ac_ext <<_ACEOF
2853 /* end confdefs.h. */
2854 #include <ac_nonexistent.h>
2855 _ACEOF
2856 if { (ac_try="$ac_cpp conftest.$ac_ext"
2857 case "(($ac_try" in
2858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2859 *) ac_try_echo=$ac_try;;
2860 esac
2861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2862 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2863 ac_status=$?
2864 grep -v '^ *+' conftest.er1 >conftest.err
2865 rm -f conftest.er1
2866 cat conftest.err >&5
2867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2868 (exit $ac_status); } >/dev/null && {
2869 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2870 test ! -s conftest.err
2871 }; then
2872 # Broken: success on invalid input.
2873 continue
2874 else
2875 echo "$as_me: failed program was:" >&5
2876 sed 's/^/| /' conftest.$ac_ext >&5
2878 # Passes both tests.
2879 ac_preproc_ok=:
2880 break
2883 rm -f conftest.err conftest.$ac_ext
2885 done
2886 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2887 rm -f conftest.err conftest.$ac_ext
2888 if $ac_preproc_ok; then
2889 break
2892 done
2893 ac_cv_prog_CPP=$CPP
2896 CPP=$ac_cv_prog_CPP
2897 else
2898 ac_cv_prog_CPP=$CPP
2900 { echo "$as_me:$LINENO: result: $CPP" >&5
2901 echo "${ECHO_T}$CPP" >&6; }
2902 ac_preproc_ok=false
2903 for ac_c_preproc_warn_flag in '' yes
2905 # Use a header file that comes with gcc, so configuring glibc
2906 # with a fresh cross-compiler works.
2907 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2908 # <limits.h> exists even on freestanding compilers.
2909 # On the NeXT, cc -E runs the code through the compiler's parser,
2910 # not just through cpp. "Syntax error" is here to catch this case.
2911 cat >conftest.$ac_ext <<_ACEOF
2912 /* confdefs.h. */
2913 _ACEOF
2914 cat confdefs.h >>conftest.$ac_ext
2915 cat >>conftest.$ac_ext <<_ACEOF
2916 /* end confdefs.h. */
2917 #ifdef __STDC__
2918 # include <limits.h>
2919 #else
2920 # include <assert.h>
2921 #endif
2922 Syntax error
2923 _ACEOF
2924 if { (ac_try="$ac_cpp conftest.$ac_ext"
2925 case "(($ac_try" in
2926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2927 *) ac_try_echo=$ac_try;;
2928 esac
2929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2930 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2931 ac_status=$?
2932 grep -v '^ *+' conftest.er1 >conftest.err
2933 rm -f conftest.er1
2934 cat conftest.err >&5
2935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936 (exit $ac_status); } >/dev/null && {
2937 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2938 test ! -s conftest.err
2939 }; then
2941 else
2942 echo "$as_me: failed program was:" >&5
2943 sed 's/^/| /' conftest.$ac_ext >&5
2945 # Broken: fails on valid input.
2946 continue
2949 rm -f conftest.err conftest.$ac_ext
2951 # OK, works on sane cases. Now check whether nonexistent headers
2952 # can be detected and how.
2953 cat >conftest.$ac_ext <<_ACEOF
2954 /* confdefs.h. */
2955 _ACEOF
2956 cat confdefs.h >>conftest.$ac_ext
2957 cat >>conftest.$ac_ext <<_ACEOF
2958 /* end confdefs.h. */
2959 #include <ac_nonexistent.h>
2960 _ACEOF
2961 if { (ac_try="$ac_cpp conftest.$ac_ext"
2962 case "(($ac_try" in
2963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2964 *) ac_try_echo=$ac_try;;
2965 esac
2966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2967 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2968 ac_status=$?
2969 grep -v '^ *+' conftest.er1 >conftest.err
2970 rm -f conftest.er1
2971 cat conftest.err >&5
2972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973 (exit $ac_status); } >/dev/null && {
2974 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2975 test ! -s conftest.err
2976 }; then
2977 # Broken: success on invalid input.
2978 continue
2979 else
2980 echo "$as_me: failed program was:" >&5
2981 sed 's/^/| /' conftest.$ac_ext >&5
2983 # Passes both tests.
2984 ac_preproc_ok=:
2985 break
2988 rm -f conftest.err conftest.$ac_ext
2990 done
2991 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2992 rm -f conftest.err conftest.$ac_ext
2993 if $ac_preproc_ok; then
2995 else
2996 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2997 See \`config.log' for more details." >&5
2998 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2999 See \`config.log' for more details." >&2;}
3000 { (exit 1); exit 1; }; }
3003 ac_ext=c
3004 ac_cpp='$CPP $CPPFLAGS'
3005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3010 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3011 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3012 if test "${ac_cv_path_GREP+set}" = set; then
3013 echo $ECHO_N "(cached) $ECHO_C" >&6
3014 else
3015 # Extract the first word of "grep ggrep" to use in msg output
3016 if test -z "$GREP"; then
3017 set dummy grep ggrep; ac_prog_name=$2
3018 if test "${ac_cv_path_GREP+set}" = set; then
3019 echo $ECHO_N "(cached) $ECHO_C" >&6
3020 else
3021 ac_path_GREP_found=false
3022 # Loop through the user's path and test for each of PROGNAME-LIST
3023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3024 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3026 IFS=$as_save_IFS
3027 test -z "$as_dir" && as_dir=.
3028 for ac_prog in grep ggrep; do
3029 for ac_exec_ext in '' $ac_executable_extensions; do
3030 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3031 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3032 # Check for GNU ac_path_GREP and select it if it is found.
3033 # Check for GNU $ac_path_GREP
3034 case `"$ac_path_GREP" --version 2>&1` in
3035 *GNU*)
3036 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3038 ac_count=0
3039 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3040 while :
3042 cat "conftest.in" "conftest.in" >"conftest.tmp"
3043 mv "conftest.tmp" "conftest.in"
3044 cp "conftest.in" "conftest.nl"
3045 echo 'GREP' >> "conftest.nl"
3046 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3047 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3048 ac_count=`expr $ac_count + 1`
3049 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3050 # Best one so far, save it but keep looking for a better one
3051 ac_cv_path_GREP="$ac_path_GREP"
3052 ac_path_GREP_max=$ac_count
3054 # 10*(2^10) chars as input seems more than enough
3055 test $ac_count -gt 10 && break
3056 done
3057 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3058 esac
3061 $ac_path_GREP_found && break 3
3062 done
3063 done
3065 done
3066 IFS=$as_save_IFS
3071 GREP="$ac_cv_path_GREP"
3072 if test -z "$GREP"; then
3073 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3074 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3075 { (exit 1); exit 1; }; }
3078 else
3079 ac_cv_path_GREP=$GREP
3084 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3085 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3086 GREP="$ac_cv_path_GREP"
3089 { echo "$as_me:$LINENO: checking for egrep" >&5
3090 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3091 if test "${ac_cv_path_EGREP+set}" = set; then
3092 echo $ECHO_N "(cached) $ECHO_C" >&6
3093 else
3094 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3095 then ac_cv_path_EGREP="$GREP -E"
3096 else
3097 # Extract the first word of "egrep" to use in msg output
3098 if test -z "$EGREP"; then
3099 set dummy egrep; ac_prog_name=$2
3100 if test "${ac_cv_path_EGREP+set}" = set; then
3101 echo $ECHO_N "(cached) $ECHO_C" >&6
3102 else
3103 ac_path_EGREP_found=false
3104 # Loop through the user's path and test for each of PROGNAME-LIST
3105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3106 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3108 IFS=$as_save_IFS
3109 test -z "$as_dir" && as_dir=.
3110 for ac_prog in egrep; do
3111 for ac_exec_ext in '' $ac_executable_extensions; do
3112 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3113 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3114 # Check for GNU ac_path_EGREP and select it if it is found.
3115 # Check for GNU $ac_path_EGREP
3116 case `"$ac_path_EGREP" --version 2>&1` in
3117 *GNU*)
3118 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3120 ac_count=0
3121 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3122 while :
3124 cat "conftest.in" "conftest.in" >"conftest.tmp"
3125 mv "conftest.tmp" "conftest.in"
3126 cp "conftest.in" "conftest.nl"
3127 echo 'EGREP' >> "conftest.nl"
3128 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3129 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3130 ac_count=`expr $ac_count + 1`
3131 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3132 # Best one so far, save it but keep looking for a better one
3133 ac_cv_path_EGREP="$ac_path_EGREP"
3134 ac_path_EGREP_max=$ac_count
3136 # 10*(2^10) chars as input seems more than enough
3137 test $ac_count -gt 10 && break
3138 done
3139 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3140 esac
3143 $ac_path_EGREP_found && break 3
3144 done
3145 done
3147 done
3148 IFS=$as_save_IFS
3153 EGREP="$ac_cv_path_EGREP"
3154 if test -z "$EGREP"; then
3155 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3156 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3157 { (exit 1); exit 1; }; }
3160 else
3161 ac_cv_path_EGREP=$EGREP
3167 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3168 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3169 EGREP="$ac_cv_path_EGREP"
3172 cat >conftest.$ac_ext <<_ACEOF
3173 /* confdefs.h. */
3174 _ACEOF
3175 cat confdefs.h >>conftest.$ac_ext
3176 cat >>conftest.$ac_ext <<_ACEOF
3177 /* end confdefs.h. */
3179 _ACEOF
3180 rm -f conftest*
3181 { echo "$as_me:$LINENO: checking for library containing strerror" >&5
3182 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
3183 if test "${ac_cv_search_strerror+set}" = set; then
3184 echo $ECHO_N "(cached) $ECHO_C" >&6
3185 else
3186 ac_func_search_save_LIBS=$LIBS
3187 cat >conftest.$ac_ext <<_ACEOF
3188 /* confdefs.h. */
3189 _ACEOF
3190 cat confdefs.h >>conftest.$ac_ext
3191 cat >>conftest.$ac_ext <<_ACEOF
3192 /* end confdefs.h. */
3194 /* Override any GCC internal prototype to avoid an error.
3195 Use char because int might match the return type of a GCC
3196 builtin and then its argument prototype would still apply. */
3197 #ifdef __cplusplus
3198 extern "C"
3199 #endif
3200 char strerror ();
3202 main ()
3204 return strerror ();
3206 return 0;
3208 _ACEOF
3209 for ac_lib in '' cposix; do
3210 if test -z "$ac_lib"; then
3211 ac_res="none required"
3212 else
3213 ac_res=-l$ac_lib
3214 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3216 rm -f conftest.$ac_objext conftest$ac_exeext
3217 if { (ac_try="$ac_link"
3218 case "(($ac_try" in
3219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3220 *) ac_try_echo=$ac_try;;
3221 esac
3222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3223 (eval "$ac_link") 2>conftest.er1
3224 ac_status=$?
3225 grep -v '^ *+' conftest.er1 >conftest.err
3226 rm -f conftest.er1
3227 cat conftest.err >&5
3228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3229 (exit $ac_status); } && {
3230 test -z "$ac_c_werror_flag" ||
3231 test ! -s conftest.err
3232 } && test -s conftest$ac_exeext &&
3233 $as_test_x conftest$ac_exeext; then
3234 ac_cv_search_strerror=$ac_res
3235 else
3236 echo "$as_me: failed program was:" >&5
3237 sed 's/^/| /' conftest.$ac_ext >&5
3242 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3243 conftest$ac_exeext
3244 if test "${ac_cv_search_strerror+set}" = set; then
3245 break
3247 done
3248 if test "${ac_cv_search_strerror+set}" = set; then
3250 else
3251 ac_cv_search_strerror=no
3253 rm conftest.$ac_ext
3254 LIBS=$ac_func_search_save_LIBS
3256 { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3257 echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
3258 ac_res=$ac_cv_search_strerror
3259 if test "$ac_res" != no; then
3260 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3263 for ac_prog in gawk mawk nawk awk
3265 # Extract the first word of "$ac_prog", so it can be a program name with args.
3266 set dummy $ac_prog; ac_word=$2
3267 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3269 if test "${ac_cv_prog_AWK+set}" = set; then
3270 echo $ECHO_N "(cached) $ECHO_C" >&6
3271 else
3272 if test -n "$AWK"; then
3273 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3274 else
3275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3276 for as_dir in $PATH
3278 IFS=$as_save_IFS
3279 test -z "$as_dir" && as_dir=.
3280 for ac_exec_ext in '' $ac_executable_extensions; do
3281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3282 ac_cv_prog_AWK="$ac_prog"
3283 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3284 break 2
3286 done
3287 done
3288 IFS=$as_save_IFS
3292 AWK=$ac_cv_prog_AWK
3293 if test -n "$AWK"; then
3294 { echo "$as_me:$LINENO: result: $AWK" >&5
3295 echo "${ECHO_T}$AWK" >&6; }
3296 else
3297 { echo "$as_me:$LINENO: result: no" >&5
3298 echo "${ECHO_T}no" >&6; }
3302 test -n "$AWK" && break
3303 done
3305 # Extract the first word of "strip", so it can be a program name with args.
3306 set dummy strip; ac_word=$2
3307 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3309 if test "${ac_cv_prog_STRIP+set}" = set; then
3310 echo $ECHO_N "(cached) $ECHO_C" >&6
3311 else
3312 if test -n "$STRIP"; then
3313 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3314 else
3315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3316 for as_dir in $PATH
3318 IFS=$as_save_IFS
3319 test -z "$as_dir" && as_dir=.
3320 for ac_exec_ext in '' $ac_executable_extensions; do
3321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3322 ac_cv_prog_STRIP="strip"
3323 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3324 break 2
3326 done
3327 done
3328 IFS=$as_save_IFS
3330 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
3333 STRIP=$ac_cv_prog_STRIP
3334 if test -n "$STRIP"; then
3335 { echo "$as_me:$LINENO: result: $STRIP" >&5
3336 echo "${ECHO_T}$STRIP" >&6; }
3337 else
3338 { echo "$as_me:$LINENO: result: no" >&5
3339 echo "${ECHO_T}no" >&6; }
3346 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3347 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3348 if test "${ac_cv_header_stdc+set}" = set; then
3349 echo $ECHO_N "(cached) $ECHO_C" >&6
3350 else
3351 cat >conftest.$ac_ext <<_ACEOF
3352 /* confdefs.h. */
3353 _ACEOF
3354 cat confdefs.h >>conftest.$ac_ext
3355 cat >>conftest.$ac_ext <<_ACEOF
3356 /* end confdefs.h. */
3357 #include <stdlib.h>
3358 #include <stdarg.h>
3359 #include <string.h>
3360 #include <float.h>
3363 main ()
3367 return 0;
3369 _ACEOF
3370 rm -f conftest.$ac_objext
3371 if { (ac_try="$ac_compile"
3372 case "(($ac_try" in
3373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3374 *) ac_try_echo=$ac_try;;
3375 esac
3376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3377 (eval "$ac_compile") 2>conftest.er1
3378 ac_status=$?
3379 grep -v '^ *+' conftest.er1 >conftest.err
3380 rm -f conftest.er1
3381 cat conftest.err >&5
3382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3383 (exit $ac_status); } && {
3384 test -z "$ac_c_werror_flag" ||
3385 test ! -s conftest.err
3386 } && test -s conftest.$ac_objext; then
3387 ac_cv_header_stdc=yes
3388 else
3389 echo "$as_me: failed program was:" >&5
3390 sed 's/^/| /' conftest.$ac_ext >&5
3392 ac_cv_header_stdc=no
3395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3397 if test $ac_cv_header_stdc = yes; then
3398 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3399 cat >conftest.$ac_ext <<_ACEOF
3400 /* confdefs.h. */
3401 _ACEOF
3402 cat confdefs.h >>conftest.$ac_ext
3403 cat >>conftest.$ac_ext <<_ACEOF
3404 /* end confdefs.h. */
3405 #include <string.h>
3407 _ACEOF
3408 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3409 $EGREP "memchr" >/dev/null 2>&1; then
3411 else
3412 ac_cv_header_stdc=no
3414 rm -f conftest*
3418 if test $ac_cv_header_stdc = yes; then
3419 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3420 cat >conftest.$ac_ext <<_ACEOF
3421 /* confdefs.h. */
3422 _ACEOF
3423 cat confdefs.h >>conftest.$ac_ext
3424 cat >>conftest.$ac_ext <<_ACEOF
3425 /* end confdefs.h. */
3426 #include <stdlib.h>
3428 _ACEOF
3429 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3430 $EGREP "free" >/dev/null 2>&1; then
3432 else
3433 ac_cv_header_stdc=no
3435 rm -f conftest*
3439 if test $ac_cv_header_stdc = yes; then
3440 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3441 if test "$cross_compiling" = yes; then
3443 else
3444 cat >conftest.$ac_ext <<_ACEOF
3445 /* confdefs.h. */
3446 _ACEOF
3447 cat confdefs.h >>conftest.$ac_ext
3448 cat >>conftest.$ac_ext <<_ACEOF
3449 /* end confdefs.h. */
3450 #include <ctype.h>
3451 #include <stdlib.h>
3452 #if ((' ' & 0x0FF) == 0x020)
3453 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3454 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3455 #else
3456 # define ISLOWER(c) \
3457 (('a' <= (c) && (c) <= 'i') \
3458 || ('j' <= (c) && (c) <= 'r') \
3459 || ('s' <= (c) && (c) <= 'z'))
3460 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3461 #endif
3463 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3465 main ()
3467 int i;
3468 for (i = 0; i < 256; i++)
3469 if (XOR (islower (i), ISLOWER (i))
3470 || toupper (i) != TOUPPER (i))
3471 return 2;
3472 return 0;
3474 _ACEOF
3475 rm -f conftest$ac_exeext
3476 if { (ac_try="$ac_link"
3477 case "(($ac_try" in
3478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3479 *) ac_try_echo=$ac_try;;
3480 esac
3481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3482 (eval "$ac_link") 2>&5
3483 ac_status=$?
3484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3485 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3486 { (case "(($ac_try" in
3487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3488 *) ac_try_echo=$ac_try;;
3489 esac
3490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3491 (eval "$ac_try") 2>&5
3492 ac_status=$?
3493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3494 (exit $ac_status); }; }; then
3496 else
3497 echo "$as_me: program exited with status $ac_status" >&5
3498 echo "$as_me: failed program was:" >&5
3499 sed 's/^/| /' conftest.$ac_ext >&5
3501 ( exit $ac_status )
3502 ac_cv_header_stdc=no
3504 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3510 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3511 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3512 if test $ac_cv_header_stdc = yes; then
3514 cat >>confdefs.h <<\_ACEOF
3515 #define STDC_HEADERS 1
3516 _ACEOF
3520 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
3521 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
3522 if test "${ac_cv_header_sys_wait_h+set}" = set; then
3523 echo $ECHO_N "(cached) $ECHO_C" >&6
3524 else
3525 cat >conftest.$ac_ext <<_ACEOF
3526 /* confdefs.h. */
3527 _ACEOF
3528 cat confdefs.h >>conftest.$ac_ext
3529 cat >>conftest.$ac_ext <<_ACEOF
3530 /* end confdefs.h. */
3531 #include <sys/types.h>
3532 #include <sys/wait.h>
3533 #ifndef WEXITSTATUS
3534 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
3535 #endif
3536 #ifndef WIFEXITED
3537 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3538 #endif
3541 main ()
3543 int s;
3544 wait (&s);
3545 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3547 return 0;
3549 _ACEOF
3550 rm -f conftest.$ac_objext
3551 if { (ac_try="$ac_compile"
3552 case "(($ac_try" in
3553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3554 *) ac_try_echo=$ac_try;;
3555 esac
3556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3557 (eval "$ac_compile") 2>conftest.er1
3558 ac_status=$?
3559 grep -v '^ *+' conftest.er1 >conftest.err
3560 rm -f conftest.er1
3561 cat conftest.err >&5
3562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3563 (exit $ac_status); } && {
3564 test -z "$ac_c_werror_flag" ||
3565 test ! -s conftest.err
3566 } && test -s conftest.$ac_objext; then
3567 ac_cv_header_sys_wait_h=yes
3568 else
3569 echo "$as_me: failed program was:" >&5
3570 sed 's/^/| /' conftest.$ac_ext >&5
3572 ac_cv_header_sys_wait_h=no
3575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3577 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
3578 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
3579 if test $ac_cv_header_sys_wait_h = yes; then
3581 cat >>confdefs.h <<\_ACEOF
3582 #define HAVE_SYS_WAIT_H 1
3583 _ACEOF
3588 if test -z "$CFLAGS"; then
3589 CFLAGS="-O"
3590 test "$GCC" = yes && CFLAGS="-O2 -fno-strength-reduce -Wall"
3592 if test "$GCC" = yes; then
3593 gccversion=`"$CC" -dumpversion`
3594 if test "x$gccversion" = "x"; then
3595 gccversion=`"$CC" --version | sed -e '2,$d' -e 's/darwin.//' -e 's/^[^0-9]*\([0-9]\.[0-9.]*\).*$/\1/g'`
3597 if test "$gccversion" = "3.0.1" -o "$gccversion" = "3.0.2" -o "$gccversion" = "4.0.1"; then
3598 echo 'GCC [34].0.[12] has a bug in the optimizer, disabling "-O#"'
3599 CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-O/'`
3600 else
3601 if test "$gccversion" = "3.1" -o "$gccversion" = "3.2" -o "$gccversion" = "3.2.1" && `echo "$CFLAGS" | grep -v fno-strength-reduce >/dev/null`; then
3602 echo 'GCC 3.1 and 3.2 have a bug in the optimizer, adding "-fno-strength-reduce"'
3603 CFLAGS="$CFLAGS -fno-strength-reduce"
3608 if test "$cross_compiling" = yes; then
3609 { echo "$as_me:$LINENO: result: cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&5
3610 echo "${ECHO_T}cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&6; }
3613 test "$GCC" = yes && CPP_MM=M;
3615 if test -f ./toolcheck; then
3616 { echo "$as_me:$LINENO: checking for buggy tools..." >&5
3617 echo "$as_me: checking for buggy tools..." >&6;}
3618 sh ./toolcheck 1>&6
3621 OS_EXTRA_SRC=""; OS_EXTRA_OBJ=""
3623 { echo "$as_me:$LINENO: checking for BeOS" >&5
3624 echo $ECHO_N "checking for BeOS... $ECHO_C" >&6; }
3625 case `uname` in
3626 BeOS) OS_EXTRA_SRC=os_beos.c; OS_EXTRA_OBJ=objects/os_beos.o
3627 BEOS=yes; { echo "$as_me:$LINENO: result: yes" >&5
3628 echo "${ECHO_T}yes" >&6; };;
3629 *) BEOS=no; { echo "$as_me:$LINENO: result: no" >&5
3630 echo "${ECHO_T}no" >&6; };;
3631 esac
3633 { echo "$as_me:$LINENO: checking for QNX" >&5
3634 echo $ECHO_N "checking for QNX... $ECHO_C" >&6; }
3635 case `uname` in
3636 QNX) OS_EXTRA_SRC=os_qnx.c; OS_EXTRA_OBJ=objects/os_qnx.o
3637 test -z "$with_x" && with_x=no
3638 QNX=yes; { echo "$as_me:$LINENO: result: yes" >&5
3639 echo "${ECHO_T}yes" >&6; };;
3640 *) QNX=no; { echo "$as_me:$LINENO: result: no" >&5
3641 echo "${ECHO_T}no" >&6; };;
3642 esac
3644 { echo "$as_me:$LINENO: checking for Darwin (Mac OS X)" >&5
3645 echo $ECHO_N "checking for Darwin (Mac OS X)... $ECHO_C" >&6; }
3646 if test "`(uname) 2>/dev/null`" = Darwin; then
3647 { echo "$as_me:$LINENO: result: yes" >&5
3648 echo "${ECHO_T}yes" >&6; }
3650 { echo "$as_me:$LINENO: checking --disable-darwin argument" >&5
3651 echo $ECHO_N "checking --disable-darwin argument... $ECHO_C" >&6; }
3652 # Check whether --enable-darwin was given.
3653 if test "${enable_darwin+set}" = set; then
3654 enableval=$enable_darwin;
3655 else
3656 enable_darwin="yes"
3659 if test "$enable_darwin" = "yes"; then
3660 { echo "$as_me:$LINENO: result: no" >&5
3661 echo "${ECHO_T}no" >&6; }
3662 { echo "$as_me:$LINENO: checking if Darwin files are there" >&5
3663 echo $ECHO_N "checking if Darwin files are there... $ECHO_C" >&6; }
3664 if test -f os_macosx.c; then
3665 { echo "$as_me:$LINENO: result: yes" >&5
3666 echo "${ECHO_T}yes" >&6; }
3667 else
3668 { echo "$as_me:$LINENO: result: no, Darwin support disabled" >&5
3669 echo "${ECHO_T}no, Darwin support disabled" >&6; }
3670 enable_darwin=no
3672 else
3673 { echo "$as_me:$LINENO: result: yes, Darwin support excluded" >&5
3674 echo "${ECHO_T}yes, Darwin support excluded" >&6; }
3677 { echo "$as_me:$LINENO: checking --with-mac-arch argument" >&5
3678 echo $ECHO_N "checking --with-mac-arch argument... $ECHO_C" >&6; }
3680 # Check whether --with-mac-arch was given.
3681 if test "${with_mac_arch+set}" = set; then
3682 withval=$with_mac_arch; MACARCH="$withval"; { echo "$as_me:$LINENO: result: $MACARCH" >&5
3683 echo "${ECHO_T}$MACARCH" >&6; }
3684 else
3685 MACARCH="current"; { echo "$as_me:$LINENO: result: defaulting to $MACARCH" >&5
3686 echo "${ECHO_T}defaulting to $MACARCH" >&6; }
3690 if test "x$MACARCH" = "xboth"; then
3691 { echo "$as_me:$LINENO: checking for 10.4 universal SDK" >&5
3692 echo $ECHO_N "checking for 10.4 universal SDK... $ECHO_C" >&6; }
3693 save_cppflags="$CPPFLAGS"
3694 save_cflags="$CFLAGS"
3695 save_ldflags="$LDFLAGS"
3696 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc"
3697 cat >conftest.$ac_ext <<_ACEOF
3698 /* confdefs.h. */
3699 _ACEOF
3700 cat confdefs.h >>conftest.$ac_ext
3701 cat >>conftest.$ac_ext <<_ACEOF
3702 /* end confdefs.h. */
3705 main ()
3709 return 0;
3711 _ACEOF
3712 rm -f conftest.$ac_objext conftest$ac_exeext
3713 if { (ac_try="$ac_link"
3714 case "(($ac_try" in
3715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3716 *) ac_try_echo=$ac_try;;
3717 esac
3718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3719 (eval "$ac_link") 2>conftest.er1
3720 ac_status=$?
3721 grep -v '^ *+' conftest.er1 >conftest.err
3722 rm -f conftest.er1
3723 cat conftest.err >&5
3724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3725 (exit $ac_status); } && {
3726 test -z "$ac_c_werror_flag" ||
3727 test ! -s conftest.err
3728 } && test -s conftest$ac_exeext &&
3729 $as_test_x conftest$ac_exeext; then
3730 { echo "$as_me:$LINENO: result: found" >&5
3731 echo "${ECHO_T}found" >&6; }
3732 else
3733 echo "$as_me: failed program was:" >&5
3734 sed 's/^/| /' conftest.$ac_ext >&5
3736 { echo "$as_me:$LINENO: result: not found" >&5
3737 echo "${ECHO_T}not found" >&6; }
3738 CFLAGS="$save_cflags"
3739 { echo "$as_me:$LINENO: checking if Intel architecture is supported" >&5
3740 echo $ECHO_N "checking if Intel architecture is supported... $ECHO_C" >&6; }
3741 CPPFLAGS="$CPPFLAGS -arch i386"
3742 LDFLAGS="$save_ldflags -arch i386"
3743 cat >conftest.$ac_ext <<_ACEOF
3744 /* confdefs.h. */
3745 _ACEOF
3746 cat confdefs.h >>conftest.$ac_ext
3747 cat >>conftest.$ac_ext <<_ACEOF
3748 /* end confdefs.h. */
3751 main ()
3755 return 0;
3757 _ACEOF
3758 rm -f conftest.$ac_objext conftest$ac_exeext
3759 if { (ac_try="$ac_link"
3760 case "(($ac_try" in
3761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3762 *) ac_try_echo=$ac_try;;
3763 esac
3764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3765 (eval "$ac_link") 2>conftest.er1
3766 ac_status=$?
3767 grep -v '^ *+' conftest.er1 >conftest.err
3768 rm -f conftest.er1
3769 cat conftest.err >&5
3770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3771 (exit $ac_status); } && {
3772 test -z "$ac_c_werror_flag" ||
3773 test ! -s conftest.err
3774 } && test -s conftest$ac_exeext &&
3775 $as_test_x conftest$ac_exeext; then
3776 { echo "$as_me:$LINENO: result: yes" >&5
3777 echo "${ECHO_T}yes" >&6; }; MACARCH="intel"
3778 else
3779 echo "$as_me: failed program was:" >&5
3780 sed 's/^/| /' conftest.$ac_ext >&5
3782 { echo "$as_me:$LINENO: result: no" >&5
3783 echo "${ECHO_T}no" >&6; }
3784 MACARCH="ppc"
3785 CPPFLAGS="$save_cppflags -arch ppc"
3786 LDFLAGS="$save_ldflags -arch ppc"
3789 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3790 conftest$ac_exeext conftest.$ac_ext
3793 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3794 conftest$ac_exeext conftest.$ac_ext
3795 elif test "x$MACARCH" = "xintel"; then
3796 CPPFLAGS="$CPPFLAGS -arch intel"
3797 LDFLAGS="$LDFLAGS -arch intel"
3798 elif test "x$MACARCH" = "xppc"; then
3799 CPPFLAGS="$CPPFLAGS -arch ppc"
3800 LDFLAGS="$LDFLAGS -arch ppc"
3803 if test "$enable_darwin" = "yes"; then
3804 MACOSX=yes
3805 OS_EXTRA_SRC="os_macosx.c os_mac_conv.c";
3806 OS_EXTRA_OBJ="objects/os_macosx.o objects/os_mac_conv.o"
3807 CPPFLAGS="$CPPFLAGS -DMACOS_X_UNIX -no-cpp-precomp"
3808 if test "x$MACARCH" = "xboth"; then
3809 CPPFLAGS="$CPPFLAGS -I/Developer/SDKs/MacOSX10.4u.sdk/Developer/Headers/FlatCarbon"
3810 else
3811 CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon"
3814 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3824 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3825 inttypes.h stdint.h unistd.h
3827 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3828 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3829 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3830 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3831 echo $ECHO_N "(cached) $ECHO_C" >&6
3832 else
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. */
3839 $ac_includes_default
3841 #include <$ac_header>
3842 _ACEOF
3843 rm -f conftest.$ac_objext
3844 if { (ac_try="$ac_compile"
3845 case "(($ac_try" in
3846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3847 *) ac_try_echo=$ac_try;;
3848 esac
3849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3850 (eval "$ac_compile") 2>conftest.er1
3851 ac_status=$?
3852 grep -v '^ *+' conftest.er1 >conftest.err
3853 rm -f conftest.er1
3854 cat conftest.err >&5
3855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856 (exit $ac_status); } && {
3857 test -z "$ac_c_werror_flag" ||
3858 test ! -s conftest.err
3859 } && test -s conftest.$ac_objext; then
3860 eval "$as_ac_Header=yes"
3861 else
3862 echo "$as_me: failed program was:" >&5
3863 sed 's/^/| /' conftest.$ac_ext >&5
3865 eval "$as_ac_Header=no"
3868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3870 ac_res=`eval echo '${'$as_ac_Header'}'`
3871 { echo "$as_me:$LINENO: result: $ac_res" >&5
3872 echo "${ECHO_T}$ac_res" >&6; }
3873 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3874 cat >>confdefs.h <<_ACEOF
3875 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3876 _ACEOF
3880 done
3883 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
3884 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
3885 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
3886 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
3887 echo $ECHO_N "(cached) $ECHO_C" >&6
3889 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
3890 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
3891 else
3892 # Is the header compilable?
3893 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
3894 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
3895 cat >conftest.$ac_ext <<_ACEOF
3896 /* confdefs.h. */
3897 _ACEOF
3898 cat confdefs.h >>conftest.$ac_ext
3899 cat >>conftest.$ac_ext <<_ACEOF
3900 /* end confdefs.h. */
3901 $ac_includes_default
3902 #include <Carbon/Carbon.h>
3903 _ACEOF
3904 rm -f conftest.$ac_objext
3905 if { (ac_try="$ac_compile"
3906 case "(($ac_try" in
3907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3908 *) ac_try_echo=$ac_try;;
3909 esac
3910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3911 (eval "$ac_compile") 2>conftest.er1
3912 ac_status=$?
3913 grep -v '^ *+' conftest.er1 >conftest.err
3914 rm -f conftest.er1
3915 cat conftest.err >&5
3916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3917 (exit $ac_status); } && {
3918 test -z "$ac_c_werror_flag" ||
3919 test ! -s conftest.err
3920 } && test -s conftest.$ac_objext; then
3921 ac_header_compiler=yes
3922 else
3923 echo "$as_me: failed program was:" >&5
3924 sed 's/^/| /' conftest.$ac_ext >&5
3926 ac_header_compiler=no
3929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3930 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3931 echo "${ECHO_T}$ac_header_compiler" >&6; }
3933 # Is the header present?
3934 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
3935 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
3936 cat >conftest.$ac_ext <<_ACEOF
3937 /* confdefs.h. */
3938 _ACEOF
3939 cat confdefs.h >>conftest.$ac_ext
3940 cat >>conftest.$ac_ext <<_ACEOF
3941 /* end confdefs.h. */
3942 #include <Carbon/Carbon.h>
3943 _ACEOF
3944 if { (ac_try="$ac_cpp conftest.$ac_ext"
3945 case "(($ac_try" in
3946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3947 *) ac_try_echo=$ac_try;;
3948 esac
3949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3950 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3951 ac_status=$?
3952 grep -v '^ *+' conftest.er1 >conftest.err
3953 rm -f conftest.er1
3954 cat conftest.err >&5
3955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3956 (exit $ac_status); } >/dev/null && {
3957 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3958 test ! -s conftest.err
3959 }; then
3960 ac_header_preproc=yes
3961 else
3962 echo "$as_me: failed program was:" >&5
3963 sed 's/^/| /' conftest.$ac_ext >&5
3965 ac_header_preproc=no
3968 rm -f conftest.err conftest.$ac_ext
3969 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3970 echo "${ECHO_T}$ac_header_preproc" >&6; }
3972 # So? What about this header?
3973 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3974 yes:no: )
3975 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
3976 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3977 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
3978 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
3979 ac_header_preproc=yes
3981 no:yes:* )
3982 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
3983 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
3984 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
3985 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
3986 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
3987 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
3988 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
3989 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
3990 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
3991 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
3992 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
3993 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
3996 esac
3997 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
3998 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
3999 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
4000 echo $ECHO_N "(cached) $ECHO_C" >&6
4001 else
4002 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
4004 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
4005 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
4008 if test $ac_cv_header_Carbon_Carbon_h = yes; then
4009 CARBON=yes
4014 SAVE_CPPFLAGS=$CPPFLAGS
4015 SAVE_CFLAGS=$CFLAGS
4016 CPPFLAGS="$CPPFLAGS -ObjC"
4017 CFLAGS="$CFLAGS -ObjC"
4018 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
4019 { echo "$as_me:$LINENO: checking for Cocoa/Cocoa.h" >&5
4020 echo $ECHO_N "checking for Cocoa/Cocoa.h... $ECHO_C" >&6; }
4021 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
4022 echo $ECHO_N "(cached) $ECHO_C" >&6
4024 { echo "$as_me:$LINENO: result: $ac_cv_header_Cocoa_Cocoa_h" >&5
4025 echo "${ECHO_T}$ac_cv_header_Cocoa_Cocoa_h" >&6; }
4026 else
4027 # Is the header compilable?
4028 { echo "$as_me:$LINENO: checking Cocoa/Cocoa.h usability" >&5
4029 echo $ECHO_N "checking Cocoa/Cocoa.h usability... $ECHO_C" >&6; }
4030 cat >conftest.$ac_ext <<_ACEOF
4031 /* confdefs.h. */
4032 _ACEOF
4033 cat confdefs.h >>conftest.$ac_ext
4034 cat >>conftest.$ac_ext <<_ACEOF
4035 /* end confdefs.h. */
4036 $ac_includes_default
4037 #include <Cocoa/Cocoa.h>
4038 _ACEOF
4039 rm -f conftest.$ac_objext
4040 if { (ac_try="$ac_compile"
4041 case "(($ac_try" in
4042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4043 *) ac_try_echo=$ac_try;;
4044 esac
4045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4046 (eval "$ac_compile") 2>conftest.er1
4047 ac_status=$?
4048 grep -v '^ *+' conftest.er1 >conftest.err
4049 rm -f conftest.er1
4050 cat conftest.err >&5
4051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4052 (exit $ac_status); } && {
4053 test -z "$ac_c_werror_flag" ||
4054 test ! -s conftest.err
4055 } && test -s conftest.$ac_objext; then
4056 ac_header_compiler=yes
4057 else
4058 echo "$as_me: failed program was:" >&5
4059 sed 's/^/| /' conftest.$ac_ext >&5
4061 ac_header_compiler=no
4064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4065 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4066 echo "${ECHO_T}$ac_header_compiler" >&6; }
4068 # Is the header present?
4069 { echo "$as_me:$LINENO: checking Cocoa/Cocoa.h presence" >&5
4070 echo $ECHO_N "checking Cocoa/Cocoa.h presence... $ECHO_C" >&6; }
4071 cat >conftest.$ac_ext <<_ACEOF
4072 /* confdefs.h. */
4073 _ACEOF
4074 cat confdefs.h >>conftest.$ac_ext
4075 cat >>conftest.$ac_ext <<_ACEOF
4076 /* end confdefs.h. */
4077 #include <Cocoa/Cocoa.h>
4078 _ACEOF
4079 if { (ac_try="$ac_cpp conftest.$ac_ext"
4080 case "(($ac_try" in
4081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4082 *) ac_try_echo=$ac_try;;
4083 esac
4084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4085 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4086 ac_status=$?
4087 grep -v '^ *+' conftest.er1 >conftest.err
4088 rm -f conftest.er1
4089 cat conftest.err >&5
4090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4091 (exit $ac_status); } >/dev/null && {
4092 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4093 test ! -s conftest.err
4094 }; then
4095 ac_header_preproc=yes
4096 else
4097 echo "$as_me: failed program was:" >&5
4098 sed 's/^/| /' conftest.$ac_ext >&5
4100 ac_header_preproc=no
4103 rm -f conftest.err conftest.$ac_ext
4104 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4105 echo "${ECHO_T}$ac_header_preproc" >&6; }
4107 # So? What about this header?
4108 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4109 yes:no: )
4110 { echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: accepted by the compiler, rejected by the preprocessor!" >&5
4111 echo "$as_me: WARNING: Cocoa/Cocoa.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4112 { echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: proceeding with the compiler's result" >&5
4113 echo "$as_me: WARNING: Cocoa/Cocoa.h: proceeding with the compiler's result" >&2;}
4114 ac_header_preproc=yes
4116 no:yes:* )
4117 { echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: present but cannot be compiled" >&5
4118 echo "$as_me: WARNING: Cocoa/Cocoa.h: present but cannot be compiled" >&2;}
4119 { echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: check for missing prerequisite headers?" >&5
4120 echo "$as_me: WARNING: Cocoa/Cocoa.h: check for missing prerequisite headers?" >&2;}
4121 { echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: see the Autoconf documentation" >&5
4122 echo "$as_me: WARNING: Cocoa/Cocoa.h: see the Autoconf documentation" >&2;}
4123 { echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: section \"Present But Cannot Be Compiled\"" >&5
4124 echo "$as_me: WARNING: Cocoa/Cocoa.h: section \"Present But Cannot Be Compiled\"" >&2;}
4125 { echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: proceeding with the preprocessor's result" >&5
4126 echo "$as_me: WARNING: Cocoa/Cocoa.h: proceeding with the preprocessor's result" >&2;}
4127 { echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: in the future, the compiler will take precedence" >&5
4128 echo "$as_me: WARNING: Cocoa/Cocoa.h: in the future, the compiler will take precedence" >&2;}
4131 esac
4132 { echo "$as_me:$LINENO: checking for Cocoa/Cocoa.h" >&5
4133 echo $ECHO_N "checking for Cocoa/Cocoa.h... $ECHO_C" >&6; }
4134 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
4135 echo $ECHO_N "(cached) $ECHO_C" >&6
4136 else
4137 ac_cv_header_Cocoa_Cocoa_h=$ac_header_preproc
4139 { echo "$as_me:$LINENO: result: $ac_cv_header_Cocoa_Cocoa_h" >&5
4140 echo "${ECHO_T}$ac_cv_header_Cocoa_Cocoa_h" >&6; }
4143 if test $ac_cv_header_Cocoa_Cocoa_h = yes; then
4144 COCOA=yes
4148 CPPFLAGS=$SAVE_CPPFLAGS
4149 CFLAGS=$SAVE_CFLAGS
4151 if test "x$CARBON" = "xyes" -o "x$COCOA" = "xyes"; then
4152 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
4153 with_x=no
4158 if test "$MACARCH" = "intel" -o "$MACARCH" = "both"; then
4159 CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-Oz/'`
4162 else
4163 { echo "$as_me:$LINENO: result: no" >&5
4164 echo "${ECHO_T}no" >&6; }
4170 if test "$cross_compiling" = no; then
4171 { echo "$as_me:$LINENO: checking --with-local-dir argument" >&5
4172 echo $ECHO_N "checking --with-local-dir argument... $ECHO_C" >&6; }
4173 have_local_include=''
4174 have_local_lib=''
4176 # Check whether --with-local-dir was given.
4177 if test "${with_local_dir+set}" = set; then
4178 withval=$with_local_dir;
4179 local_dir="$withval"
4180 case "$withval" in
4181 */*) ;;
4183 # avoid adding local dir to LDFLAGS and CPPFLAGS
4184 have_local_dir=yes
4185 have_local_lib=yes
4187 *) { { echo "$as_me:$LINENO: error: must pass path argument to --with-local-dir" >&5
4188 echo "$as_me: error: must pass path argument to --with-local-dir" >&2;}
4189 { (exit 1); exit 1; }; } ;;
4190 esac
4191 { echo "$as_me:$LINENO: result: $local_dir" >&5
4192 echo "${ECHO_T}$local_dir" >&6; }
4194 else
4196 local_dir=/usr/local
4197 { echo "$as_me:$LINENO: result: Defaulting to $local_dir" >&5
4198 echo "${ECHO_T}Defaulting to $local_dir" >&6; }
4202 if test "$GCC" = yes -a "$local_dir" != no; then
4203 echo 'void f(){}' > conftest.c
4204 have_local_include=`${CC-cc} -no-cpp-precomp -c -v conftest.c 2>&1 | grep "${local_dir}/include"`
4205 have_local_lib=`${CC-cc} -c -v conftest.c 2>&1 | grep "${local_dir}/lib"`
4206 rm -f conftest.c conftest.o
4208 if test -z "$have_local_lib" -a -d "${local_dir}/lib"; then
4209 tt=`echo "$LDFLAGS" | sed -e "s+-L${local_dir}/lib ++g" -e "s+-L${local_dir}/lib$++g"`
4210 if test "$tt" = "$LDFLAGS"; then
4211 LDFLAGS="$LDFLAGS -L${local_dir}/lib"
4214 if test -z "$have_local_include" -a -d "${local_dir}/include"; then
4215 tt=`echo "$CPPFLAGS" | sed -e "s+-I${local_dir}/include ++g" -e "s+-I${local_dir}/include$++g"`
4216 if test "$tt" = "$CPPFLAGS"; then
4217 CPPFLAGS="$CPPFLAGS -I${local_dir}/include"
4222 { echo "$as_me:$LINENO: checking --with-vim-name argument" >&5
4223 echo $ECHO_N "checking --with-vim-name argument... $ECHO_C" >&6; }
4225 # Check whether --with-vim-name was given.
4226 if test "${with_vim_name+set}" = set; then
4227 withval=$with_vim_name; VIMNAME="$withval"; { echo "$as_me:$LINENO: result: $VIMNAME" >&5
4228 echo "${ECHO_T}$VIMNAME" >&6; }
4229 else
4230 VIMNAME="vim"; { echo "$as_me:$LINENO: result: Defaulting to $VIMNAME" >&5
4231 echo "${ECHO_T}Defaulting to $VIMNAME" >&6; }
4235 { echo "$as_me:$LINENO: checking --with-ex-name argument" >&5
4236 echo $ECHO_N "checking --with-ex-name argument... $ECHO_C" >&6; }
4238 # Check whether --with-ex-name was given.
4239 if test "${with_ex_name+set}" = set; then
4240 withval=$with_ex_name; EXNAME="$withval"; { echo "$as_me:$LINENO: result: $EXNAME" >&5
4241 echo "${ECHO_T}$EXNAME" >&6; }
4242 else
4243 EXNAME="ex"; { echo "$as_me:$LINENO: result: Defaulting to ex" >&5
4244 echo "${ECHO_T}Defaulting to ex" >&6; }
4248 { echo "$as_me:$LINENO: checking --with-view-name argument" >&5
4249 echo $ECHO_N "checking --with-view-name argument... $ECHO_C" >&6; }
4251 # Check whether --with-view-name was given.
4252 if test "${with_view_name+set}" = set; then
4253 withval=$with_view_name; VIEWNAME="$withval"; { echo "$as_me:$LINENO: result: $VIEWNAME" >&5
4254 echo "${ECHO_T}$VIEWNAME" >&6; }
4255 else
4256 VIEWNAME="view"; { echo "$as_me:$LINENO: result: Defaulting to view" >&5
4257 echo "${ECHO_T}Defaulting to view" >&6; }
4262 { echo "$as_me:$LINENO: checking --with-global-runtime argument" >&5
4263 echo $ECHO_N "checking --with-global-runtime argument... $ECHO_C" >&6; }
4265 # Check whether --with-global-runtime was given.
4266 if test "${with_global_runtime+set}" = set; then
4267 withval=$with_global_runtime; { echo "$as_me:$LINENO: result: $withval" >&5
4268 echo "${ECHO_T}$withval" >&6; }; cat >>confdefs.h <<_ACEOF
4269 #define RUNTIME_GLOBAL "$withval"
4270 _ACEOF
4272 else
4273 { echo "$as_me:$LINENO: result: no" >&5
4274 echo "${ECHO_T}no" >&6; }
4278 { echo "$as_me:$LINENO: checking --with-modified-by argument" >&5
4279 echo $ECHO_N "checking --with-modified-by argument... $ECHO_C" >&6; }
4281 # Check whether --with-modified-by was given.
4282 if test "${with_modified_by+set}" = set; then
4283 withval=$with_modified_by; { echo "$as_me:$LINENO: result: $withval" >&5
4284 echo "${ECHO_T}$withval" >&6; }; cat >>confdefs.h <<_ACEOF
4285 #define MODIFIED_BY "$withval"
4286 _ACEOF
4288 else
4289 { echo "$as_me:$LINENO: result: no" >&5
4290 echo "${ECHO_T}no" >&6; }
4294 { echo "$as_me:$LINENO: checking if character set is EBCDIC" >&5
4295 echo $ECHO_N "checking if character set is EBCDIC... $ECHO_C" >&6; }
4296 cat >conftest.$ac_ext <<_ACEOF
4297 /* confdefs.h. */
4298 _ACEOF
4299 cat confdefs.h >>conftest.$ac_ext
4300 cat >>conftest.$ac_ext <<_ACEOF
4301 /* end confdefs.h. */
4304 main ()
4306 /* TryCompile function for CharSet.
4307 Treat any failure as ASCII for compatibility with existing art.
4308 Use compile-time rather than run-time tests for cross-compiler
4309 tolerance. */
4310 #if '0'!=240
4311 make an error "Character set is not EBCDIC"
4312 #endif
4314 return 0;
4316 _ACEOF
4317 rm -f conftest.$ac_objext
4318 if { (ac_try="$ac_compile"
4319 case "(($ac_try" in
4320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4321 *) ac_try_echo=$ac_try;;
4322 esac
4323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4324 (eval "$ac_compile") 2>conftest.er1
4325 ac_status=$?
4326 grep -v '^ *+' conftest.er1 >conftest.err
4327 rm -f conftest.er1
4328 cat conftest.err >&5
4329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4330 (exit $ac_status); } && {
4331 test -z "$ac_c_werror_flag" ||
4332 test ! -s conftest.err
4333 } && test -s conftest.$ac_objext; then
4334 # TryCompile action if true
4335 cf_cv_ebcdic=yes
4336 else
4337 echo "$as_me: failed program was:" >&5
4338 sed 's/^/| /' conftest.$ac_ext >&5
4340 # TryCompile action if false
4341 cf_cv_ebcdic=no
4344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4345 # end of TryCompile ])
4346 # end of CacheVal CvEbcdic
4347 { echo "$as_me:$LINENO: result: $cf_cv_ebcdic" >&5
4348 echo "${ECHO_T}$cf_cv_ebcdic" >&6; }
4349 case "$cf_cv_ebcdic" in #(vi
4350 yes) cat >>confdefs.h <<\_ACEOF
4351 #define EBCDIC 1
4352 _ACEOF
4354 line_break='"\\n"'
4356 *) line_break='"\\012"';;
4357 esac
4360 if test "$cf_cv_ebcdic" = "yes"; then
4361 { echo "$as_me:$LINENO: checking for OS/390 Unix" >&5
4362 echo $ECHO_N "checking for OS/390 Unix... $ECHO_C" >&6; }
4363 case `uname` in
4364 OS/390) OS390Unix="yes";
4365 if test "$CC" = "cc"; then
4366 ccm="$_CC_CCMODE"
4367 ccn="CC"
4368 else
4369 if test "$CC" = "c89"; then
4370 ccm="$_CC_C89MODE"
4371 ccn="C89"
4372 else
4373 ccm=1
4376 if test "$ccm" != "1"; then
4377 echo ""
4378 echo "------------------------------------------"
4379 echo " On OS/390 Unix, the environment variable"
4380 echo " __CC_${ccn}MODE must be set to \"1\"!"
4381 echo " Do:"
4382 echo " export _CC_${ccn}MODE=1"
4383 echo " and then call configure again."
4384 echo "------------------------------------------"
4385 exit 1
4387 CFLAGS="$CFLAGS -D_ALL_SOURCE"; LDFLAGS="$LDFLAGS -Wl,EDIT=NO"
4388 { echo "$as_me:$LINENO: result: yes" >&5
4389 echo "${ECHO_T}yes" >&6; }
4391 *) OS390Unix="no";
4392 { echo "$as_me:$LINENO: result: no" >&5
4393 echo "${ECHO_T}no" >&6; }
4395 esac
4398 { echo "$as_me:$LINENO: checking --disable-selinux argument" >&5
4399 echo $ECHO_N "checking --disable-selinux argument... $ECHO_C" >&6; }
4400 # Check whether --enable-selinux was given.
4401 if test "${enable_selinux+set}" = set; then
4402 enableval=$enable_selinux;
4403 else
4404 enable_selinux="yes"
4407 if test "$enable_selinux" = "yes"; then
4408 { echo "$as_me:$LINENO: result: no" >&5
4409 echo "${ECHO_T}no" >&6; }
4410 { echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
4411 echo $ECHO_N "checking for is_selinux_enabled in -lselinux... $ECHO_C" >&6; }
4412 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
4413 echo $ECHO_N "(cached) $ECHO_C" >&6
4414 else
4415 ac_check_lib_save_LIBS=$LIBS
4416 LIBS="-lselinux $LIBS"
4417 cat >conftest.$ac_ext <<_ACEOF
4418 /* confdefs.h. */
4419 _ACEOF
4420 cat confdefs.h >>conftest.$ac_ext
4421 cat >>conftest.$ac_ext <<_ACEOF
4422 /* end confdefs.h. */
4424 /* Override any GCC internal prototype to avoid an error.
4425 Use char because int might match the return type of a GCC
4426 builtin and then its argument prototype would still apply. */
4427 #ifdef __cplusplus
4428 extern "C"
4429 #endif
4430 char is_selinux_enabled ();
4432 main ()
4434 return is_selinux_enabled ();
4436 return 0;
4438 _ACEOF
4439 rm -f conftest.$ac_objext conftest$ac_exeext
4440 if { (ac_try="$ac_link"
4441 case "(($ac_try" in
4442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4443 *) ac_try_echo=$ac_try;;
4444 esac
4445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4446 (eval "$ac_link") 2>conftest.er1
4447 ac_status=$?
4448 grep -v '^ *+' conftest.er1 >conftest.err
4449 rm -f conftest.er1
4450 cat conftest.err >&5
4451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4452 (exit $ac_status); } && {
4453 test -z "$ac_c_werror_flag" ||
4454 test ! -s conftest.err
4455 } && test -s conftest$ac_exeext &&
4456 $as_test_x conftest$ac_exeext; then
4457 ac_cv_lib_selinux_is_selinux_enabled=yes
4458 else
4459 echo "$as_me: failed program was:" >&5
4460 sed 's/^/| /' conftest.$ac_ext >&5
4462 ac_cv_lib_selinux_is_selinux_enabled=no
4465 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4466 conftest$ac_exeext conftest.$ac_ext
4467 LIBS=$ac_check_lib_save_LIBS
4469 { echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
4470 echo "${ECHO_T}$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
4471 if test $ac_cv_lib_selinux_is_selinux_enabled = yes; then
4472 LIBS="$LIBS -lselinux"
4473 cat >>confdefs.h <<\_ACEOF
4474 #define HAVE_SELINUX 1
4475 _ACEOF
4479 else
4480 { echo "$as_me:$LINENO: result: yes" >&5
4481 echo "${ECHO_T}yes" >&6; }
4485 { echo "$as_me:$LINENO: checking --with-features argument" >&5
4486 echo $ECHO_N "checking --with-features argument... $ECHO_C" >&6; }
4488 # Check whether --with-features was given.
4489 if test "${with_features+set}" = set; then
4490 withval=$with_features; features="$withval"; { echo "$as_me:$LINENO: result: $features" >&5
4491 echo "${ECHO_T}$features" >&6; }
4492 else
4493 features="normal"; { echo "$as_me:$LINENO: result: Defaulting to normal" >&5
4494 echo "${ECHO_T}Defaulting to normal" >&6; }
4498 dovimdiff=""
4499 dogvimdiff=""
4500 case "$features" in
4501 tiny) cat >>confdefs.h <<\_ACEOF
4502 #define FEAT_TINY 1
4503 _ACEOF
4505 small) cat >>confdefs.h <<\_ACEOF
4506 #define FEAT_SMALL 1
4507 _ACEOF
4509 normal) cat >>confdefs.h <<\_ACEOF
4510 #define FEAT_NORMAL 1
4511 _ACEOF
4512 dovimdiff="installvimdiff";
4513 dogvimdiff="installgvimdiff" ;;
4514 big) cat >>confdefs.h <<\_ACEOF
4515 #define FEAT_BIG 1
4516 _ACEOF
4517 dovimdiff="installvimdiff";
4518 dogvimdiff="installgvimdiff" ;;
4519 huge) cat >>confdefs.h <<\_ACEOF
4520 #define FEAT_HUGE 1
4521 _ACEOF
4522 dovimdiff="installvimdiff";
4523 dogvimdiff="installgvimdiff" ;;
4524 *) { echo "$as_me:$LINENO: result: Sorry, $features is not supported" >&5
4525 echo "${ECHO_T}Sorry, $features is not supported" >&6; } ;;
4526 esac
4531 { echo "$as_me:$LINENO: checking --with-compiledby argument" >&5
4532 echo $ECHO_N "checking --with-compiledby argument... $ECHO_C" >&6; }
4534 # Check whether --with-compiledby was given.
4535 if test "${with_compiledby+set}" = set; then
4536 withval=$with_compiledby; compiledby="$withval"; { echo "$as_me:$LINENO: result: $withval" >&5
4537 echo "${ECHO_T}$withval" >&6; }
4538 else
4539 compiledby=""; { echo "$as_me:$LINENO: result: no" >&5
4540 echo "${ECHO_T}no" >&6; }
4545 { echo "$as_me:$LINENO: checking --disable-xsmp argument" >&5
4546 echo $ECHO_N "checking --disable-xsmp argument... $ECHO_C" >&6; }
4547 # Check whether --enable-xsmp was given.
4548 if test "${enable_xsmp+set}" = set; then
4549 enableval=$enable_xsmp;
4550 else
4551 enable_xsmp="yes"
4555 if test "$enable_xsmp" = "yes"; then
4556 { echo "$as_me:$LINENO: result: no" >&5
4557 echo "${ECHO_T}no" >&6; }
4558 { echo "$as_me:$LINENO: checking --disable-xsmp-interact argument" >&5
4559 echo $ECHO_N "checking --disable-xsmp-interact argument... $ECHO_C" >&6; }
4560 # Check whether --enable-xsmp-interact was given.
4561 if test "${enable_xsmp_interact+set}" = set; then
4562 enableval=$enable_xsmp_interact;
4563 else
4564 enable_xsmp_interact="yes"
4567 if test "$enable_xsmp_interact" = "yes"; then
4568 { echo "$as_me:$LINENO: result: no" >&5
4569 echo "${ECHO_T}no" >&6; }
4570 cat >>confdefs.h <<\_ACEOF
4571 #define USE_XSMP_INTERACT 1
4572 _ACEOF
4574 else
4575 { echo "$as_me:$LINENO: result: yes" >&5
4576 echo "${ECHO_T}yes" >&6; }
4578 else
4579 { echo "$as_me:$LINENO: result: yes" >&5
4580 echo "${ECHO_T}yes" >&6; }
4583 { echo "$as_me:$LINENO: checking --enable-mzschemeinterp argument" >&5
4584 echo $ECHO_N "checking --enable-mzschemeinterp argument... $ECHO_C" >&6; }
4585 # Check whether --enable-mzschemeinterp was given.
4586 if test "${enable_mzschemeinterp+set}" = set; then
4587 enableval=$enable_mzschemeinterp;
4588 else
4589 enable_mzschemeinterp="no"
4592 { echo "$as_me:$LINENO: result: $enable_mzschemeinterp" >&5
4593 echo "${ECHO_T}$enable_mzschemeinterp" >&6; }
4595 if test "$enable_mzschemeinterp" = "yes"; then
4598 { echo "$as_me:$LINENO: checking --with-plthome argument" >&5
4599 echo $ECHO_N "checking --with-plthome argument... $ECHO_C" >&6; }
4601 # Check whether --with-plthome was given.
4602 if test "${with_plthome+set}" = set; then
4603 withval=$with_plthome; with_plthome="$withval"; { echo "$as_me:$LINENO: result: $with_plthome" >&5
4604 echo "${ECHO_T}$with_plthome" >&6; }
4605 else
4606 with_plthome="";{ echo "$as_me:$LINENO: result: \"no\"" >&5
4607 echo "${ECHO_T}\"no\"" >&6; }
4611 if test "X$with_plthome" != "X"; then
4612 vi_cv_path_mzscheme_pfx="$with_plthome"
4613 else
4614 { echo "$as_me:$LINENO: checking PLTHOME environment var" >&5
4615 echo $ECHO_N "checking PLTHOME environment var... $ECHO_C" >&6; }
4616 if test "X$PLTHOME" != "X"; then
4617 { echo "$as_me:$LINENO: result: \"$PLTHOME\"" >&5
4618 echo "${ECHO_T}\"$PLTHOME\"" >&6; }
4619 vi_cv_path_mzscheme_pfx="$PLTHOME"
4620 else
4621 { echo "$as_me:$LINENO: result: not set" >&5
4622 echo "${ECHO_T}not set" >&6; }
4623 # Extract the first word of "mzscheme", so it can be a program name with args.
4624 set dummy mzscheme; ac_word=$2
4625 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4627 if test "${ac_cv_path_vi_cv_path_mzscheme+set}" = set; then
4628 echo $ECHO_N "(cached) $ECHO_C" >&6
4629 else
4630 case $vi_cv_path_mzscheme in
4631 [\\/]* | ?:[\\/]*)
4632 ac_cv_path_vi_cv_path_mzscheme="$vi_cv_path_mzscheme" # Let the user override the test with a path.
4635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4636 for as_dir in $PATH
4638 IFS=$as_save_IFS
4639 test -z "$as_dir" && as_dir=.
4640 for ac_exec_ext in '' $ac_executable_extensions; do
4641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4642 ac_cv_path_vi_cv_path_mzscheme="$as_dir/$ac_word$ac_exec_ext"
4643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4644 break 2
4646 done
4647 done
4648 IFS=$as_save_IFS
4651 esac
4653 vi_cv_path_mzscheme=$ac_cv_path_vi_cv_path_mzscheme
4654 if test -n "$vi_cv_path_mzscheme"; then
4655 { echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme" >&5
4656 echo "${ECHO_T}$vi_cv_path_mzscheme" >&6; }
4657 else
4658 { echo "$as_me:$LINENO: result: no" >&5
4659 echo "${ECHO_T}no" >&6; }
4664 if test "X$vi_cv_path_mzscheme" != "X"; then
4665 lsout=`ls -l $vi_cv_path_mzscheme`
4666 if echo "$lsout" | grep -e '->' >/dev/null 2>/dev/null; then
4667 vi_cv_path_mzscheme=`echo "$lsout" | sed 's/.*-> \(.*\)/\1/'`
4671 if test "X$vi_cv_path_mzscheme" != "X"; then
4672 { echo "$as_me:$LINENO: checking MzScheme install prefix" >&5
4673 echo $ECHO_N "checking MzScheme install prefix... $ECHO_C" >&6; }
4674 if test "${vi_cv_path_mzscheme_pfx+set}" = set; then
4675 echo $ECHO_N "(cached) $ECHO_C" >&6
4676 else
4677 echo "(display (simplify-path \
4678 (build-path (call-with-values \
4679 (lambda () (split-path (find-system-path (quote exec-file)))) \
4680 (lambda (base name must-be-dir?) base)) (quote up))))" > mzdirs.scm
4681 vi_cv_path_mzscheme_pfx=`${vi_cv_path_mzscheme} -r mzdirs.scm | \
4682 sed -e 's+/$++'`
4684 { echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme_pfx" >&5
4685 echo "${ECHO_T}$vi_cv_path_mzscheme_pfx" >&6; }
4686 rm -f mzdirs.scm
4691 SCHEME_INC=
4692 if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
4693 { echo "$as_me:$LINENO: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include" >&5
4694 echo $ECHO_N "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include... $ECHO_C" >&6; }
4695 if test -f $vi_cv_path_mzscheme_pfx/include/scheme.h; then
4696 SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include
4697 { echo "$as_me:$LINENO: result: yes" >&5
4698 echo "${ECHO_T}yes" >&6; }
4699 else
4700 { echo "$as_me:$LINENO: result: no" >&5
4701 echo "${ECHO_T}no" >&6; }
4702 { echo "$as_me:$LINENO: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/plt" >&5
4703 echo $ECHO_N "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/plt... $ECHO_C" >&6; }
4704 if test -f $vi_cv_path_mzscheme_pfx/include/plt/scheme.h; then
4705 { echo "$as_me:$LINENO: result: yes" >&5
4706 echo "${ECHO_T}yes" >&6; }
4707 SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include/plt
4708 else
4709 { echo "$as_me:$LINENO: result: no" >&5
4710 echo "${ECHO_T}no" >&6; }
4711 { echo "$as_me:$LINENO: checking if scheme.h can be found in /usr/include/plt/" >&5
4712 echo $ECHO_N "checking if scheme.h can be found in /usr/include/plt/... $ECHO_C" >&6; }
4713 if test -f /usr/include/plt/scheme.h; then
4714 { echo "$as_me:$LINENO: result: yes" >&5
4715 echo "${ECHO_T}yes" >&6; }
4716 SCHEME_INC=/usr/include/plt
4717 else
4718 { echo "$as_me:$LINENO: result: no" >&5
4719 echo "${ECHO_T}no" >&6; }
4720 vi_cv_path_mzscheme_pfx=
4726 if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
4727 if test "x$MACOSX" = "xyes"; then
4728 MZSCHEME_LIBS="-framework PLT_MzScheme"
4729 elif test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzscheme3m.a"; then
4730 MZSCHEME_LIBS="${vi_cv_path_mzscheme_pfx}/lib/libmzscheme3m.a"
4731 MZSCHEME_CFLAGS="-DMZ_PRECISE_GC"
4732 elif test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a"; then
4733 MZSCHEME_LIBS="${vi_cv_path_mzscheme_pfx}/lib/libmzscheme.a ${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a"
4734 else
4735 if test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzscheme3m.so"; then
4736 MZSCHEME_LIBS="-L${vi_cv_path_mzscheme_pfx}/lib -lmzscheme3m"
4737 MZSCHEME_CFLAGS="-DMZ_PRECISE_GC"
4738 else
4739 MZSCHEME_LIBS="-L${vi_cv_path_mzscheme_pfx}/lib -lmzscheme -lmzgc"
4741 if test "$GCC" = yes; then
4742 MZSCHEME_LIBS="${MZSCHEME_LIBS} -Wl,-rpath -Wl,${vi_cv_path_mzscheme_pfx}/lib"
4743 elif test "`(uname) 2>/dev/null`" = SunOS &&
4744 uname -r | grep '^5' >/dev/null; then
4745 MZSCHEME_LIBS="${MZSCHEME_LIBS} -R ${vi_cv_path_mzscheme_pfx}/lib"
4748 if test -d $vi_cv_path_mzscheme_pfx/lib/plt/collects; then
4749 SCHEME_COLLECTS=lib/plt/
4751 if test -f "${vi_cv_path_mzscheme_pfx}/${SCHEME_COLLECTS}collects/scheme/base.ss" ; then
4752 MZSCHEME_EXTRA="mzscheme_base.c"
4753 MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -DINCLUDE_MZSCHEME_BASE"
4754 MZSCHEME_MZC="${vi_cv_path_mzscheme_pfx}/bin/mzc"
4756 MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -I${SCHEME_INC} \
4757 -DMZSCHEME_COLLECTS='\"${vi_cv_path_mzscheme_pfx}/${SCHEME_COLLECTS}collects\"'"
4758 MZSCHEME_SRC="if_mzsch.c"
4759 MZSCHEME_OBJ="objects/if_mzsch.o"
4760 MZSCHEME_PRO="if_mzsch.pro"
4761 cat >>confdefs.h <<\_ACEOF
4762 #define FEAT_MZSCHEME 1
4763 _ACEOF
4776 { echo "$as_me:$LINENO: checking --enable-perlinterp argument" >&5
4777 echo $ECHO_N "checking --enable-perlinterp argument... $ECHO_C" >&6; }
4778 # Check whether --enable-perlinterp was given.
4779 if test "${enable_perlinterp+set}" = set; then
4780 enableval=$enable_perlinterp;
4781 else
4782 enable_perlinterp="no"
4785 { echo "$as_me:$LINENO: result: $enable_perlinterp" >&5
4786 echo "${ECHO_T}$enable_perlinterp" >&6; }
4787 if test "$enable_perlinterp" = "yes"; then
4789 # Extract the first word of "perl", so it can be a program name with args.
4790 set dummy perl; ac_word=$2
4791 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4792 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4793 if test "${ac_cv_path_vi_cv_path_perl+set}" = set; then
4794 echo $ECHO_N "(cached) $ECHO_C" >&6
4795 else
4796 case $vi_cv_path_perl in
4797 [\\/]* | ?:[\\/]*)
4798 ac_cv_path_vi_cv_path_perl="$vi_cv_path_perl" # Let the user override the test with a path.
4801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4802 for as_dir in $PATH
4804 IFS=$as_save_IFS
4805 test -z "$as_dir" && as_dir=.
4806 for ac_exec_ext in '' $ac_executable_extensions; do
4807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4808 ac_cv_path_vi_cv_path_perl="$as_dir/$ac_word$ac_exec_ext"
4809 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4810 break 2
4812 done
4813 done
4814 IFS=$as_save_IFS
4817 esac
4819 vi_cv_path_perl=$ac_cv_path_vi_cv_path_perl
4820 if test -n "$vi_cv_path_perl"; then
4821 { echo "$as_me:$LINENO: result: $vi_cv_path_perl" >&5
4822 echo "${ECHO_T}$vi_cv_path_perl" >&6; }
4823 else
4824 { echo "$as_me:$LINENO: result: no" >&5
4825 echo "${ECHO_T}no" >&6; }
4829 if test "X$vi_cv_path_perl" != "X"; then
4830 { echo "$as_me:$LINENO: checking Perl version" >&5
4831 echo $ECHO_N "checking Perl version... $ECHO_C" >&6; }
4832 if $vi_cv_path_perl -e 'require 5.003_01' >/dev/null 2>/dev/null; then
4833 eval `$vi_cv_path_perl -V:usethreads`
4834 if test "X$usethreads" = "XUNKNOWN" -o "X$usethreads" = "Xundef"; then
4835 badthreads=no
4836 else
4837 if $vi_cv_path_perl -e 'require 5.6.0' >/dev/null 2>/dev/null; then
4838 eval `$vi_cv_path_perl -V:use5005threads`
4839 if test "X$use5005threads" = "XUNKNOWN" -o "X$use5005threads" = "Xundef"; then
4840 badthreads=no
4841 else
4842 badthreads=yes
4843 { echo "$as_me:$LINENO: result: >>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&5
4844 echo "${ECHO_T}>>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&6; }
4846 else
4847 badthreads=yes
4848 { echo "$as_me:$LINENO: result: >>> Perl 5.5 with threads cannot be used <<<" >&5
4849 echo "${ECHO_T}>>> Perl 5.5 with threads cannot be used <<<" >&6; }
4852 if test $badthreads = no; then
4853 { echo "$as_me:$LINENO: result: OK" >&5
4854 echo "${ECHO_T}OK" >&6; }
4855 eval `$vi_cv_path_perl -V:shrpenv`
4856 if test "X$shrpenv" = "XUNKNOWN"; then # pre 5.003_04
4857 shrpenv=""
4859 vi_cv_perllib=`$vi_cv_path_perl -MConfig -e 'print $Config{privlibexp}'`
4861 perlcppflags=`$vi_cv_path_perl -Mlib=$srcdir -MExtUtils::Embed \
4862 -e 'ccflags;perl_inc;print"\n"' | sed -e 's/-fno[^ ]*//'`
4863 perllibs=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed -e 'ldopts' | \
4864 sed -e '/Warning/d' -e '/Note (probably harmless)/d' \
4865 -e 's/-bE:perl.exp//' -e 's/-lc //'`
4866 perlldflags=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed \
4867 -e 'ccdlflags' | sed -e 's/-bE:perl.exp//'`
4869 { echo "$as_me:$LINENO: checking if compile and link flags for Perl are sane" >&5
4870 echo $ECHO_N "checking if compile and link flags for Perl are sane... $ECHO_C" >&6; }
4871 cflags_save=$CFLAGS
4872 libs_save=$LIBS
4873 ldflags_save=$LDFLAGS
4874 CFLAGS="$CFLAGS $perlcppflags"
4875 LIBS="$LIBS $perllibs"
4876 LDFLAGS="$perlldflags $LDFLAGS"
4877 cat >conftest.$ac_ext <<_ACEOF
4878 /* confdefs.h. */
4879 _ACEOF
4880 cat confdefs.h >>conftest.$ac_ext
4881 cat >>conftest.$ac_ext <<_ACEOF
4882 /* end confdefs.h. */
4885 main ()
4889 return 0;
4891 _ACEOF
4892 rm -f conftest.$ac_objext conftest$ac_exeext
4893 if { (ac_try="$ac_link"
4894 case "(($ac_try" in
4895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4896 *) ac_try_echo=$ac_try;;
4897 esac
4898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4899 (eval "$ac_link") 2>conftest.er1
4900 ac_status=$?
4901 grep -v '^ *+' conftest.er1 >conftest.err
4902 rm -f conftest.er1
4903 cat conftest.err >&5
4904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905 (exit $ac_status); } && {
4906 test -z "$ac_c_werror_flag" ||
4907 test ! -s conftest.err
4908 } && test -s conftest$ac_exeext &&
4909 $as_test_x conftest$ac_exeext; then
4910 { echo "$as_me:$LINENO: result: yes" >&5
4911 echo "${ECHO_T}yes" >&6; }; perl_ok=yes
4912 else
4913 echo "$as_me: failed program was:" >&5
4914 sed 's/^/| /' conftest.$ac_ext >&5
4916 { echo "$as_me:$LINENO: result: no: PERL DISABLED" >&5
4917 echo "${ECHO_T}no: PERL DISABLED" >&6; }; perl_ok=no
4920 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4921 conftest$ac_exeext conftest.$ac_ext
4922 CFLAGS=$cflags_save
4923 LIBS=$libs_save
4924 LDFLAGS=$ldflags_save
4925 if test $perl_ok = yes; then
4926 if test "X$perlcppflags" != "X"; then
4927 PERL_CFLAGS=`echo "$perlcppflags" | sed -e 's/-pipe //' -e 's/-W[^ ]*//'`
4929 if test "X$perlldflags" != "X"; then
4930 LDFLAGS="$perlldflags $LDFLAGS"
4932 PERL_LIBS=$perllibs
4933 PERL_SRC="auto/if_perl.c if_perlsfio.c"
4934 PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o"
4935 PERL_PRO="if_perl.pro if_perlsfio.pro"
4936 cat >>confdefs.h <<\_ACEOF
4937 #define FEAT_PERL 1
4938 _ACEOF
4942 else
4943 { echo "$as_me:$LINENO: result: >>> too old; need Perl version 5.003_01 or later <<<" >&5
4944 echo "${ECHO_T}>>> too old; need Perl version 5.003_01 or later <<<" >&6; }
4948 if test "x$MACOSX" = "xyes"; then
4949 dir=/System/Library/Perl
4950 darwindir=$dir/darwin
4951 if test -d $darwindir; then
4952 PERL=/usr/bin/perl
4953 else
4954 dir=/System/Library/Perl/5.8.1
4955 darwindir=$dir/darwin-thread-multi-2level
4956 if test -d $darwindir; then
4957 PERL=/usr/bin/perl
4960 if test -n "$PERL"; then
4961 PERL_DIR="$dir"
4962 PERL_CFLAGS="-DFEAT_PERL -I$darwindir/CORE"
4963 PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o $darwindir/auto/DynaLoader/DynaLoader.a"
4964 PERL_LIBS="-L$darwindir/CORE -lperl"
4975 { echo "$as_me:$LINENO: checking --enable-pythoninterp argument" >&5
4976 echo $ECHO_N "checking --enable-pythoninterp argument... $ECHO_C" >&6; }
4977 # Check whether --enable-pythoninterp was given.
4978 if test "${enable_pythoninterp+set}" = set; then
4979 enableval=$enable_pythoninterp;
4980 else
4981 enable_pythoninterp="no"
4984 { echo "$as_me:$LINENO: result: $enable_pythoninterp" >&5
4985 echo "${ECHO_T}$enable_pythoninterp" >&6; }
4986 if test "$enable_pythoninterp" = "yes"; then
4987 # Extract the first word of "python", so it can be a program name with args.
4988 set dummy python; ac_word=$2
4989 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4991 if test "${ac_cv_path_vi_cv_path_python+set}" = set; then
4992 echo $ECHO_N "(cached) $ECHO_C" >&6
4993 else
4994 case $vi_cv_path_python in
4995 [\\/]* | ?:[\\/]*)
4996 ac_cv_path_vi_cv_path_python="$vi_cv_path_python" # Let the user override the test with a path.
4999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5000 for as_dir in $PATH
5002 IFS=$as_save_IFS
5003 test -z "$as_dir" && as_dir=.
5004 for ac_exec_ext in '' $ac_executable_extensions; do
5005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5006 ac_cv_path_vi_cv_path_python="$as_dir/$ac_word$ac_exec_ext"
5007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5008 break 2
5010 done
5011 done
5012 IFS=$as_save_IFS
5015 esac
5017 vi_cv_path_python=$ac_cv_path_vi_cv_path_python
5018 if test -n "$vi_cv_path_python"; then
5019 { echo "$as_me:$LINENO: result: $vi_cv_path_python" >&5
5020 echo "${ECHO_T}$vi_cv_path_python" >&6; }
5021 else
5022 { echo "$as_me:$LINENO: result: no" >&5
5023 echo "${ECHO_T}no" >&6; }
5027 if test "X$vi_cv_path_python" != "X"; then
5029 { echo "$as_me:$LINENO: checking Python version" >&5
5030 echo $ECHO_N "checking Python version... $ECHO_C" >&6; }
5031 if test "${vi_cv_var_python_version+set}" = set; then
5032 echo $ECHO_N "(cached) $ECHO_C" >&6
5033 else
5034 vi_cv_var_python_version=`
5035 ${vi_cv_path_python} -c 'import sys; print sys.version[:3]'`
5038 { echo "$as_me:$LINENO: result: $vi_cv_var_python_version" >&5
5039 echo "${ECHO_T}$vi_cv_var_python_version" >&6; }
5041 { echo "$as_me:$LINENO: checking Python is 1.4 or better" >&5
5042 echo $ECHO_N "checking Python is 1.4 or better... $ECHO_C" >&6; }
5043 if ${vi_cv_path_python} -c \
5044 "import sys; sys.exit(${vi_cv_var_python_version} < 1.4)"
5045 then
5046 { echo "$as_me:$LINENO: result: yep" >&5
5047 echo "${ECHO_T}yep" >&6; }
5049 { echo "$as_me:$LINENO: checking Python's install prefix" >&5
5050 echo $ECHO_N "checking Python's install prefix... $ECHO_C" >&6; }
5051 if test "${vi_cv_path_python_pfx+set}" = set; then
5052 echo $ECHO_N "(cached) $ECHO_C" >&6
5053 else
5054 vi_cv_path_python_pfx=`
5055 ${vi_cv_path_python} -c \
5056 "import sys; print sys.prefix"`
5058 { echo "$as_me:$LINENO: result: $vi_cv_path_python_pfx" >&5
5059 echo "${ECHO_T}$vi_cv_path_python_pfx" >&6; }
5061 { echo "$as_me:$LINENO: checking Python's execution prefix" >&5
5062 echo $ECHO_N "checking Python's execution prefix... $ECHO_C" >&6; }
5063 if test "${vi_cv_path_python_epfx+set}" = set; then
5064 echo $ECHO_N "(cached) $ECHO_C" >&6
5065 else
5066 vi_cv_path_python_epfx=`
5067 ${vi_cv_path_python} -c \
5068 "import sys; print sys.exec_prefix"`
5070 { echo "$as_me:$LINENO: result: $vi_cv_path_python_epfx" >&5
5071 echo "${ECHO_T}$vi_cv_path_python_epfx" >&6; }
5074 if test "${vi_cv_path_pythonpath+set}" = set; then
5075 echo $ECHO_N "(cached) $ECHO_C" >&6
5076 else
5077 vi_cv_path_pythonpath=`
5078 unset PYTHONPATH;
5079 ${vi_cv_path_python} -c \
5080 "import sys, string; print string.join(sys.path,':')"`
5086 # Check whether --with-python-config-dir was given.
5087 if test "${with_python_config_dir+set}" = set; then
5088 withval=$with_python_config_dir; vi_cv_path_python_conf="${withval}"
5092 { echo "$as_me:$LINENO: checking Python's configuration directory" >&5
5093 echo $ECHO_N "checking Python's configuration directory... $ECHO_C" >&6; }
5094 if test "${vi_cv_path_python_conf+set}" = set; then
5095 echo $ECHO_N "(cached) $ECHO_C" >&6
5096 else
5098 vi_cv_path_python_conf=
5099 for path in "${vi_cv_path_python_pfx}" "${vi_cv_path_python_epfx}"; do
5100 for subdir in lib share; do
5101 d="${path}/${subdir}/python${vi_cv_var_python_version}/config"
5102 if test -d "$d" && test -f "$d/config.c"; then
5103 vi_cv_path_python_conf="$d"
5105 done
5106 done
5109 { echo "$as_me:$LINENO: result: $vi_cv_path_python_conf" >&5
5110 echo "${ECHO_T}$vi_cv_path_python_conf" >&6; }
5112 PYTHON_CONFDIR="${vi_cv_path_python_conf}"
5114 if test "X$PYTHON_CONFDIR" = "X"; then
5115 { echo "$as_me:$LINENO: result: can't find it!" >&5
5116 echo "${ECHO_T}can't find it!" >&6; }
5117 else
5119 if test "${vi_cv_path_python_plibs+set}" = set; then
5120 echo $ECHO_N "(cached) $ECHO_C" >&6
5121 else
5123 pwd=`pwd`
5124 tmp_mkf="$pwd/config-PyMake$$"
5125 cat -- "${PYTHON_CONFDIR}/Makefile" - <<'eof' >"${tmp_mkf}"
5127 @echo "python_MODLIBS='$(MODLIBS)'"
5128 @echo "python_LIBS='$(LIBS)'"
5129 @echo "python_SYSLIBS='$(SYSLIBS)'"
5130 @echo "python_LINKFORSHARED='$(LINKFORSHARED)'"
5132 eval "`cd ${PYTHON_CONFDIR} && make -f "${tmp_mkf}" __ | sed '/ directory /d'`"
5133 rm -f -- "${tmp_mkf}"
5134 if test "x$MACOSX" = "xyes" && ${vi_cv_path_python} -c \
5135 "import sys; sys.exit(${vi_cv_var_python_version} < 2.3)"; then
5136 vi_cv_path_python_plibs="-framework Python"
5137 else
5138 if test "${vi_cv_var_python_version}" = "1.4"; then
5139 vi_cv_path_python_plibs="${PYTHON_CONFDIR}/libModules.a ${PYTHON_CONFDIR}/libPython.a ${PYTHON_CONFDIR}/libObjects.a ${PYTHON_CONFDIR}/libParser.a"
5140 else
5141 vi_cv_path_python_plibs="-L${PYTHON_CONFDIR} -lpython${vi_cv_var_python_version}"
5143 vi_cv_path_python_plibs="${vi_cv_path_python_plibs} ${python_MODLIBS} ${python_LIBS} ${python_SYSLIBS} ${python_LINKFORSHARED}"
5144 vi_cv_path_python_plibs=`echo $vi_cv_path_python_plibs | sed s/-ltermcap//`
5150 PYTHON_LIBS="${vi_cv_path_python_plibs}"
5151 if test "${vi_cv_path_python_pfx}" = "${vi_cv_path_python_epfx}"; then
5152 PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version}"
5153 else
5154 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}"
5156 PYTHON_SRC="if_python.c"
5157 if test "x$MACOSX" = "xyes"; then
5158 PYTHON_OBJ="objects/if_python.o"
5159 else
5160 PYTHON_OBJ="objects/if_python.o objects/py_config.o"
5162 if test "${vi_cv_var_python_version}" = "1.4"; then
5163 PYTHON_OBJ="$PYTHON_OBJ objects/py_getpath.o"
5165 PYTHON_GETPATH_CFLAGS="-DPYTHONPATH='\"${vi_cv_path_pythonpath}\"' -DPREFIX='\"${vi_cv_path_python_pfx}\"' -DEXEC_PREFIX='\"${vi_cv_path_python_epfx}\"'"
5167 { echo "$as_me:$LINENO: checking if -pthread should be used" >&5
5168 echo $ECHO_N "checking if -pthread should be used... $ECHO_C" >&6; }
5169 threadsafe_flag=
5170 thread_lib=
5171 if test "`(uname) 2>/dev/null`" != Darwin; then
5172 test "$GCC" = yes && threadsafe_flag="-pthread"
5173 if test "`(uname) 2>/dev/null`" = FreeBSD; then
5174 threadsafe_flag="-D_THREAD_SAFE"
5175 thread_lib="-pthread"
5178 libs_save_old=$LIBS
5179 if test -n "$threadsafe_flag"; then
5180 cflags_save=$CFLAGS
5181 CFLAGS="$CFLAGS $threadsafe_flag"
5182 LIBS="$LIBS $thread_lib"
5183 cat >conftest.$ac_ext <<_ACEOF
5184 /* confdefs.h. */
5185 _ACEOF
5186 cat confdefs.h >>conftest.$ac_ext
5187 cat >>conftest.$ac_ext <<_ACEOF
5188 /* end confdefs.h. */
5191 main ()
5195 return 0;
5197 _ACEOF
5198 rm -f conftest.$ac_objext conftest$ac_exeext
5199 if { (ac_try="$ac_link"
5200 case "(($ac_try" in
5201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5202 *) ac_try_echo=$ac_try;;
5203 esac
5204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5205 (eval "$ac_link") 2>conftest.er1
5206 ac_status=$?
5207 grep -v '^ *+' conftest.er1 >conftest.err
5208 rm -f conftest.er1
5209 cat conftest.err >&5
5210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5211 (exit $ac_status); } && {
5212 test -z "$ac_c_werror_flag" ||
5213 test ! -s conftest.err
5214 } && test -s conftest$ac_exeext &&
5215 $as_test_x conftest$ac_exeext; then
5216 { echo "$as_me:$LINENO: result: yes" >&5
5217 echo "${ECHO_T}yes" >&6; }; PYTHON_CFLAGS="$PYTHON_CFLAGS $threadsafe_flag"
5218 else
5219 echo "$as_me: failed program was:" >&5
5220 sed 's/^/| /' conftest.$ac_ext >&5
5222 { echo "$as_me:$LINENO: result: no" >&5
5223 echo "${ECHO_T}no" >&6; }; LIBS=$libs_save_old
5227 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5228 conftest$ac_exeext conftest.$ac_ext
5229 CFLAGS=$cflags_save
5230 else
5231 { echo "$as_me:$LINENO: result: no" >&5
5232 echo "${ECHO_T}no" >&6; }
5235 { echo "$as_me:$LINENO: checking if compile and link flags for Python are sane" >&5
5236 echo $ECHO_N "checking if compile and link flags for Python are sane... $ECHO_C" >&6; }
5237 cflags_save=$CFLAGS
5238 libs_save=$LIBS
5239 CFLAGS="$CFLAGS $PYTHON_CFLAGS"
5240 LIBS="$LIBS $PYTHON_LIBS"
5241 cat >conftest.$ac_ext <<_ACEOF
5242 /* confdefs.h. */
5243 _ACEOF
5244 cat confdefs.h >>conftest.$ac_ext
5245 cat >>conftest.$ac_ext <<_ACEOF
5246 /* end confdefs.h. */
5249 main ()
5253 return 0;
5255 _ACEOF
5256 rm -f conftest.$ac_objext conftest$ac_exeext
5257 if { (ac_try="$ac_link"
5258 case "(($ac_try" in
5259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5260 *) ac_try_echo=$ac_try;;
5261 esac
5262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5263 (eval "$ac_link") 2>conftest.er1
5264 ac_status=$?
5265 grep -v '^ *+' conftest.er1 >conftest.err
5266 rm -f conftest.er1
5267 cat conftest.err >&5
5268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5269 (exit $ac_status); } && {
5270 test -z "$ac_c_werror_flag" ||
5271 test ! -s conftest.err
5272 } && test -s conftest$ac_exeext &&
5273 $as_test_x conftest$ac_exeext; then
5274 { echo "$as_me:$LINENO: result: yes" >&5
5275 echo "${ECHO_T}yes" >&6; }; python_ok=yes
5276 else
5277 echo "$as_me: failed program was:" >&5
5278 sed 's/^/| /' conftest.$ac_ext >&5
5280 { echo "$as_me:$LINENO: result: no: PYTHON DISABLED" >&5
5281 echo "${ECHO_T}no: PYTHON DISABLED" >&6; }; python_ok=no
5284 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5285 conftest$ac_exeext conftest.$ac_ext
5286 CFLAGS=$cflags_save
5287 LIBS=$libs_save
5288 if test $python_ok = yes; then
5289 cat >>confdefs.h <<\_ACEOF
5290 #define FEAT_PYTHON 1
5291 _ACEOF
5293 else
5294 LIBS=$libs_save_old
5295 PYTHON_SRC=
5296 PYTHON_OBJ=
5297 PYTHON_LIBS=
5298 PYTHON_CFLAGS=
5302 else
5303 { echo "$as_me:$LINENO: result: too old" >&5
5304 echo "${ECHO_T}too old" >&6; }
5315 { echo "$as_me:$LINENO: checking --enable-tclinterp argument" >&5
5316 echo $ECHO_N "checking --enable-tclinterp argument... $ECHO_C" >&6; }
5317 # Check whether --enable-tclinterp was given.
5318 if test "${enable_tclinterp+set}" = set; then
5319 enableval=$enable_tclinterp;
5320 else
5321 enable_tclinterp="no"
5324 { echo "$as_me:$LINENO: result: $enable_tclinterp" >&5
5325 echo "${ECHO_T}$enable_tclinterp" >&6; }
5327 if test "$enable_tclinterp" = "yes"; then
5329 { echo "$as_me:$LINENO: checking --with-tclsh argument" >&5
5330 echo $ECHO_N "checking --with-tclsh argument... $ECHO_C" >&6; }
5332 # Check whether --with-tclsh was given.
5333 if test "${with_tclsh+set}" = set; then
5334 withval=$with_tclsh; tclsh_name="$withval"; { echo "$as_me:$LINENO: result: $tclsh_name" >&5
5335 echo "${ECHO_T}$tclsh_name" >&6; }
5336 else
5337 tclsh_name="tclsh8.5"; { echo "$as_me:$LINENO: result: no" >&5
5338 echo "${ECHO_T}no" >&6; }
5341 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5342 set dummy $tclsh_name; ac_word=$2
5343 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5345 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5346 echo $ECHO_N "(cached) $ECHO_C" >&6
5347 else
5348 case $vi_cv_path_tcl in
5349 [\\/]* | ?:[\\/]*)
5350 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5354 for as_dir in $PATH
5356 IFS=$as_save_IFS
5357 test -z "$as_dir" && as_dir=.
5358 for ac_exec_ext in '' $ac_executable_extensions; do
5359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5360 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5361 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5362 break 2
5364 done
5365 done
5366 IFS=$as_save_IFS
5369 esac
5371 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5372 if test -n "$vi_cv_path_tcl"; then
5373 { echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5374 echo "${ECHO_T}$vi_cv_path_tcl" >&6; }
5375 else
5376 { echo "$as_me:$LINENO: result: no" >&5
5377 echo "${ECHO_T}no" >&6; }
5383 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.5"; then
5384 tclsh_name="tclsh8.4"
5385 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5386 set dummy $tclsh_name; ac_word=$2
5387 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5389 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5390 echo $ECHO_N "(cached) $ECHO_C" >&6
5391 else
5392 case $vi_cv_path_tcl in
5393 [\\/]* | ?:[\\/]*)
5394 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5398 for as_dir in $PATH
5400 IFS=$as_save_IFS
5401 test -z "$as_dir" && as_dir=.
5402 for ac_exec_ext in '' $ac_executable_extensions; do
5403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5404 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5406 break 2
5408 done
5409 done
5410 IFS=$as_save_IFS
5413 esac
5415 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5416 if test -n "$vi_cv_path_tcl"; then
5417 { echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5418 echo "${ECHO_T}$vi_cv_path_tcl" >&6; }
5419 else
5420 { echo "$as_me:$LINENO: result: no" >&5
5421 echo "${ECHO_T}no" >&6; }
5426 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.4"; then
5427 tclsh_name="tclsh8.2"
5428 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5429 set dummy $tclsh_name; ac_word=$2
5430 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5432 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5433 echo $ECHO_N "(cached) $ECHO_C" >&6
5434 else
5435 case $vi_cv_path_tcl in
5436 [\\/]* | ?:[\\/]*)
5437 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5441 for as_dir in $PATH
5443 IFS=$as_save_IFS
5444 test -z "$as_dir" && as_dir=.
5445 for ac_exec_ext in '' $ac_executable_extensions; do
5446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5447 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5449 break 2
5451 done
5452 done
5453 IFS=$as_save_IFS
5456 esac
5458 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5459 if test -n "$vi_cv_path_tcl"; then
5460 { echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5461 echo "${ECHO_T}$vi_cv_path_tcl" >&6; }
5462 else
5463 { echo "$as_me:$LINENO: result: no" >&5
5464 echo "${ECHO_T}no" >&6; }
5469 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.2"; then
5470 tclsh_name="tclsh8.0"
5471 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5472 set dummy $tclsh_name; ac_word=$2
5473 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5475 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5476 echo $ECHO_N "(cached) $ECHO_C" >&6
5477 else
5478 case $vi_cv_path_tcl in
5479 [\\/]* | ?:[\\/]*)
5480 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5484 for as_dir in $PATH
5486 IFS=$as_save_IFS
5487 test -z "$as_dir" && as_dir=.
5488 for ac_exec_ext in '' $ac_executable_extensions; do
5489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5490 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5492 break 2
5494 done
5495 done
5496 IFS=$as_save_IFS
5499 esac
5501 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5502 if test -n "$vi_cv_path_tcl"; then
5503 { echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5504 echo "${ECHO_T}$vi_cv_path_tcl" >&6; }
5505 else
5506 { echo "$as_me:$LINENO: result: no" >&5
5507 echo "${ECHO_T}no" >&6; }
5512 if test "X$vi_cv_path_tcl" = "X"; then
5513 tclsh_name="tclsh"
5514 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5515 set dummy $tclsh_name; ac_word=$2
5516 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5517 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5518 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5519 echo $ECHO_N "(cached) $ECHO_C" >&6
5520 else
5521 case $vi_cv_path_tcl in
5522 [\\/]* | ?:[\\/]*)
5523 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5527 for as_dir in $PATH
5529 IFS=$as_save_IFS
5530 test -z "$as_dir" && as_dir=.
5531 for ac_exec_ext in '' $ac_executable_extensions; do
5532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5533 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5535 break 2
5537 done
5538 done
5539 IFS=$as_save_IFS
5542 esac
5544 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5545 if test -n "$vi_cv_path_tcl"; then
5546 { echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5547 echo "${ECHO_T}$vi_cv_path_tcl" >&6; }
5548 else
5549 { echo "$as_me:$LINENO: result: no" >&5
5550 echo "${ECHO_T}no" >&6; }
5555 if test "X$vi_cv_path_tcl" != "X"; then
5556 { echo "$as_me:$LINENO: checking Tcl version" >&5
5557 echo $ECHO_N "checking Tcl version... $ECHO_C" >&6; }
5558 if echo 'exit [expr [info tclversion] < 8.0]' | $vi_cv_path_tcl - ; then
5559 tclver=`echo 'puts [info tclversion]' | $vi_cv_path_tcl -`
5560 { echo "$as_me:$LINENO: result: $tclver - OK" >&5
5561 echo "${ECHO_T}$tclver - OK" >&6; };
5562 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 -`
5564 { echo "$as_me:$LINENO: checking for location of Tcl include" >&5
5565 echo $ECHO_N "checking for location of Tcl include... $ECHO_C" >&6; }
5566 if test "x$MACOSX" != "xyes"; then
5567 tclinc="$tclloc/include $tclloc/include/tcl $tclloc/include/tcl$tclver /usr/local/include /usr/local/include/tcl$tclver /usr/include /usr/include/tcl$tclver"
5568 else
5569 tclinc="/System/Library/Frameworks/Tcl.framework/Headers"
5571 TCL_INC=
5572 for try in $tclinc; do
5573 if test -f "$try/tcl.h"; then
5574 { echo "$as_me:$LINENO: result: $try/tcl.h" >&5
5575 echo "${ECHO_T}$try/tcl.h" >&6; }
5576 TCL_INC=$try
5577 break
5579 done
5580 if test -z "$TCL_INC"; then
5581 { echo "$as_me:$LINENO: result: <not found>" >&5
5582 echo "${ECHO_T}<not found>" >&6; }
5583 SKIP_TCL=YES
5585 if test -z "$SKIP_TCL"; then
5586 { echo "$as_me:$LINENO: checking for location of tclConfig.sh script" >&5
5587 echo $ECHO_N "checking for location of tclConfig.sh script... $ECHO_C" >&6; }
5588 if test "x$MACOSX" != "xyes"; then
5589 tclcnf=`echo $tclinc | sed s/include/lib/g`
5590 tclcnf="$tclcnf `echo $tclinc | sed s/include/lib64/g`"
5591 else
5592 tclcnf="/System/Library/Frameworks/Tcl.framework"
5594 for try in $tclcnf; do
5595 if test -f $try/tclConfig.sh; then
5596 { echo "$as_me:$LINENO: result: $try/tclConfig.sh" >&5
5597 echo "${ECHO_T}$try/tclConfig.sh" >&6; }
5598 . $try/tclConfig.sh
5599 TCL_LIBS=`eval echo "$TCL_LIB_SPEC $TCL_LIBS"`
5600 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'`
5601 break
5603 done
5604 if test -z "$TCL_LIBS"; then
5605 { echo "$as_me:$LINENO: result: <not found>" >&5
5606 echo "${ECHO_T}<not found>" >&6; }
5607 { echo "$as_me:$LINENO: checking for Tcl library by myself" >&5
5608 echo $ECHO_N "checking for Tcl library by myself... $ECHO_C" >&6; }
5609 tcllib=`echo $tclinc | sed s/include/lib/g`
5610 tcllib="$tcllib `echo $tclinc | sed s/include/lib64/g`"
5611 for ext in .so .a ; do
5612 for ver in "" $tclver ; do
5613 for try in $tcllib ; do
5614 trylib=tcl$ver$ext
5615 if test -f $try/lib$trylib ; then
5616 { echo "$as_me:$LINENO: result: $try/lib$trylib" >&5
5617 echo "${ECHO_T}$try/lib$trylib" >&6; }
5618 TCL_LIBS="-L$try -ltcl$ver -ldl -lm"
5619 if test "`(uname) 2>/dev/null`" = SunOS &&
5620 uname -r | grep '^5' >/dev/null; then
5621 TCL_LIBS="$TCL_LIBS -R $try"
5623 break 3
5625 done
5626 done
5627 done
5628 if test -z "$TCL_LIBS"; then
5629 { echo "$as_me:$LINENO: result: <not found>" >&5
5630 echo "${ECHO_T}<not found>" >&6; }
5631 SKIP_TCL=YES
5634 if test -z "$SKIP_TCL"; then
5635 cat >>confdefs.h <<\_ACEOF
5636 #define FEAT_TCL 1
5637 _ACEOF
5639 TCL_SRC=if_tcl.c
5640 TCL_OBJ=objects/if_tcl.o
5641 TCL_PRO=if_tcl.pro
5642 TCL_CFLAGS="-I$TCL_INC $TCL_DEFS"
5645 else
5646 { echo "$as_me:$LINENO: result: too old; need Tcl version 8.0 or later" >&5
5647 echo "${ECHO_T}too old; need Tcl version 8.0 or later" >&6; }
5657 { echo "$as_me:$LINENO: checking --enable-rubyinterp argument" >&5
5658 echo $ECHO_N "checking --enable-rubyinterp argument... $ECHO_C" >&6; }
5659 # Check whether --enable-rubyinterp was given.
5660 if test "${enable_rubyinterp+set}" = set; then
5661 enableval=$enable_rubyinterp;
5662 else
5663 enable_rubyinterp="no"
5666 { echo "$as_me:$LINENO: result: $enable_rubyinterp" >&5
5667 echo "${ECHO_T}$enable_rubyinterp" >&6; }
5668 if test "$enable_rubyinterp" = "yes"; then
5670 # Extract the first word of "ruby", so it can be a program name with args.
5671 set dummy ruby; ac_word=$2
5672 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5674 if test "${ac_cv_path_vi_cv_path_ruby+set}" = set; then
5675 echo $ECHO_N "(cached) $ECHO_C" >&6
5676 else
5677 case $vi_cv_path_ruby in
5678 [\\/]* | ?:[\\/]*)
5679 ac_cv_path_vi_cv_path_ruby="$vi_cv_path_ruby" # Let the user override the test with a path.
5682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5683 for as_dir in $PATH
5685 IFS=$as_save_IFS
5686 test -z "$as_dir" && as_dir=.
5687 for ac_exec_ext in '' $ac_executable_extensions; do
5688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5689 ac_cv_path_vi_cv_path_ruby="$as_dir/$ac_word$ac_exec_ext"
5690 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5691 break 2
5693 done
5694 done
5695 IFS=$as_save_IFS
5698 esac
5700 vi_cv_path_ruby=$ac_cv_path_vi_cv_path_ruby
5701 if test -n "$vi_cv_path_ruby"; then
5702 { echo "$as_me:$LINENO: result: $vi_cv_path_ruby" >&5
5703 echo "${ECHO_T}$vi_cv_path_ruby" >&6; }
5704 else
5705 { echo "$as_me:$LINENO: result: no" >&5
5706 echo "${ECHO_T}no" >&6; }
5710 if test "X$vi_cv_path_ruby" != "X"; then
5711 { echo "$as_me:$LINENO: checking Ruby version" >&5
5712 echo $ECHO_N "checking Ruby version... $ECHO_C" >&6; }
5713 if $vi_cv_path_ruby -e '(VERSION rescue RUBY_VERSION) >= "1.6.0" or exit 1' >/dev/null 2>/dev/null; then
5714 { echo "$as_me:$LINENO: result: OK" >&5
5715 echo "${ECHO_T}OK" >&6; }
5716 { echo "$as_me:$LINENO: checking Ruby header files" >&5
5717 echo $ECHO_N "checking Ruby header files... $ECHO_C" >&6; }
5718 rubyhdrdir=`$vi_cv_path_ruby -r mkmf -e 'print Config::CONFIG["archdir"] || $hdrdir' 2>/dev/null`
5719 if test "X$rubyhdrdir" != "X"; then
5720 { echo "$as_me:$LINENO: result: $rubyhdrdir" >&5
5721 echo "${ECHO_T}$rubyhdrdir" >&6; }
5722 RUBY_CFLAGS="-I$rubyhdrdir"
5723 rubylibs=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LIBS"]'`
5724 if test "X$rubylibs" != "X"; then
5725 RUBY_LIBS="$rubylibs"
5727 librubyarg=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["LIBRUBYARG"])'`
5728 if test -f "$rubyhdrdir/$librubyarg"; then
5729 librubyarg="$rubyhdrdir/$librubyarg"
5730 else
5731 rubylibdir=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["libdir"])'`
5732 if test -f "$rubylibdir/$librubyarg"; then
5733 librubyarg="$rubylibdir/$librubyarg"
5734 elif test "$librubyarg" = "libruby.a"; then
5735 librubyarg="-lruby"
5736 else
5737 librubyarg=`$vi_cv_path_ruby -r rbconfig -e "print '$librubyarg'.gsub(/-L\./, %'-L#{Config.expand(Config::CONFIG[\"libdir\"])}')"`
5741 if test "X$librubyarg" != "X"; then
5742 RUBY_LIBS="$librubyarg $RUBY_LIBS"
5744 rubyldflags=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LDFLAGS"]'`
5745 if test "X$rubyldflags" != "X"; then
5746 rubyldflags=`echo "$rubyldflags" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//'`
5747 if test "X$rubyldflags" != "X"; then
5748 LDFLAGS="$rubyldflags $LDFLAGS"
5751 RUBY_SRC="if_ruby.c"
5752 RUBY_OBJ="objects/if_ruby.o"
5753 RUBY_PRO="if_ruby.pro"
5754 cat >>confdefs.h <<\_ACEOF
5755 #define FEAT_RUBY 1
5756 _ACEOF
5758 else
5759 { echo "$as_me:$LINENO: result: not found" >&5
5760 echo "${ECHO_T}not found" >&6; }
5762 else
5763 { echo "$as_me:$LINENO: result: too old; need Ruby version 1.6.0 or later" >&5
5764 echo "${ECHO_T}too old; need Ruby version 1.6.0 or later" >&6; }
5774 { echo "$as_me:$LINENO: checking --enable-cscope argument" >&5
5775 echo $ECHO_N "checking --enable-cscope argument... $ECHO_C" >&6; }
5776 # Check whether --enable-cscope was given.
5777 if test "${enable_cscope+set}" = set; then
5778 enableval=$enable_cscope;
5779 else
5780 enable_cscope="no"
5783 { echo "$as_me:$LINENO: result: $enable_cscope" >&5
5784 echo "${ECHO_T}$enable_cscope" >&6; }
5785 if test "$enable_cscope" = "yes"; then
5786 cat >>confdefs.h <<\_ACEOF
5787 #define FEAT_CSCOPE 1
5788 _ACEOF
5792 { echo "$as_me:$LINENO: checking --enable-workshop argument" >&5
5793 echo $ECHO_N "checking --enable-workshop argument... $ECHO_C" >&6; }
5794 # Check whether --enable-workshop was given.
5795 if test "${enable_workshop+set}" = set; then
5796 enableval=$enable_workshop;
5797 else
5798 enable_workshop="no"
5801 { echo "$as_me:$LINENO: result: $enable_workshop" >&5
5802 echo "${ECHO_T}$enable_workshop" >&6; }
5803 if test "$enable_workshop" = "yes"; then
5804 cat >>confdefs.h <<\_ACEOF
5805 #define FEAT_SUN_WORKSHOP 1
5806 _ACEOF
5808 WORKSHOP_SRC="workshop.c integration.c"
5810 WORKSHOP_OBJ="objects/workshop.o objects/integration.o"
5812 if test "${enable_gui-xxx}" = xxx; then
5813 enable_gui=motif
5817 { echo "$as_me:$LINENO: checking --disable-netbeans argument" >&5
5818 echo $ECHO_N "checking --disable-netbeans argument... $ECHO_C" >&6; }
5819 # Check whether --enable-netbeans was given.
5820 if test "${enable_netbeans+set}" = set; then
5821 enableval=$enable_netbeans;
5822 else
5823 enable_netbeans="yes"
5826 if test "$enable_netbeans" = "yes"; then
5827 { echo "$as_me:$LINENO: result: no" >&5
5828 echo "${ECHO_T}no" >&6; }
5830 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
5831 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
5832 if test "${ac_cv_lib_socket_socket+set}" = set; then
5833 echo $ECHO_N "(cached) $ECHO_C" >&6
5834 else
5835 ac_check_lib_save_LIBS=$LIBS
5836 LIBS="-lsocket $LIBS"
5837 cat >conftest.$ac_ext <<_ACEOF
5838 /* confdefs.h. */
5839 _ACEOF
5840 cat confdefs.h >>conftest.$ac_ext
5841 cat >>conftest.$ac_ext <<_ACEOF
5842 /* end confdefs.h. */
5844 /* Override any GCC internal prototype to avoid an error.
5845 Use char because int might match the return type of a GCC
5846 builtin and then its argument prototype would still apply. */
5847 #ifdef __cplusplus
5848 extern "C"
5849 #endif
5850 char socket ();
5852 main ()
5854 return socket ();
5856 return 0;
5858 _ACEOF
5859 rm -f conftest.$ac_objext conftest$ac_exeext
5860 if { (ac_try="$ac_link"
5861 case "(($ac_try" in
5862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5863 *) ac_try_echo=$ac_try;;
5864 esac
5865 eval "echo \"\$as_me:$LINENO: $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 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 $as_test_x conftest$ac_exeext; then
5877 ac_cv_lib_socket_socket=yes
5878 else
5879 echo "$as_me: failed program was:" >&5
5880 sed 's/^/| /' conftest.$ac_ext >&5
5882 ac_cv_lib_socket_socket=no
5885 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5886 conftest$ac_exeext conftest.$ac_ext
5887 LIBS=$ac_check_lib_save_LIBS
5889 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
5890 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
5891 if test $ac_cv_lib_socket_socket = yes; then
5892 cat >>confdefs.h <<_ACEOF
5893 #define HAVE_LIBSOCKET 1
5894 _ACEOF
5896 LIBS="-lsocket $LIBS"
5901 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5902 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
5903 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5904 echo $ECHO_N "(cached) $ECHO_C" >&6
5905 else
5906 ac_check_lib_save_LIBS=$LIBS
5907 LIBS="-lnsl $LIBS"
5908 cat >conftest.$ac_ext <<_ACEOF
5909 /* confdefs.h. */
5910 _ACEOF
5911 cat confdefs.h >>conftest.$ac_ext
5912 cat >>conftest.$ac_ext <<_ACEOF
5913 /* end confdefs.h. */
5915 /* Override any GCC internal prototype to avoid an error.
5916 Use char because int might match the return type of a GCC
5917 builtin and then its argument prototype would still apply. */
5918 #ifdef __cplusplus
5919 extern "C"
5920 #endif
5921 char gethostbyname ();
5923 main ()
5925 return gethostbyname ();
5927 return 0;
5929 _ACEOF
5930 rm -f conftest.$ac_objext conftest$ac_exeext
5931 if { (ac_try="$ac_link"
5932 case "(($ac_try" in
5933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5934 *) ac_try_echo=$ac_try;;
5935 esac
5936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5937 (eval "$ac_link") 2>conftest.er1
5938 ac_status=$?
5939 grep -v '^ *+' conftest.er1 >conftest.err
5940 rm -f conftest.er1
5941 cat conftest.err >&5
5942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943 (exit $ac_status); } && {
5944 test -z "$ac_c_werror_flag" ||
5945 test ! -s conftest.err
5946 } && test -s conftest$ac_exeext &&
5947 $as_test_x conftest$ac_exeext; then
5948 ac_cv_lib_nsl_gethostbyname=yes
5949 else
5950 echo "$as_me: failed program was:" >&5
5951 sed 's/^/| /' conftest.$ac_ext >&5
5953 ac_cv_lib_nsl_gethostbyname=no
5956 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5957 conftest$ac_exeext conftest.$ac_ext
5958 LIBS=$ac_check_lib_save_LIBS
5960 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5961 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
5962 if test $ac_cv_lib_nsl_gethostbyname = yes; then
5963 cat >>confdefs.h <<_ACEOF
5964 #define HAVE_LIBNSL 1
5965 _ACEOF
5967 LIBS="-lnsl $LIBS"
5971 { echo "$as_me:$LINENO: checking whether compiling netbeans integration is possible" >&5
5972 echo $ECHO_N "checking whether compiling netbeans integration is possible... $ECHO_C" >&6; }
5973 cat >conftest.$ac_ext <<_ACEOF
5974 /* confdefs.h. */
5975 _ACEOF
5976 cat confdefs.h >>conftest.$ac_ext
5977 cat >>conftest.$ac_ext <<_ACEOF
5978 /* end confdefs.h. */
5980 #include <stdio.h>
5981 #include <stdlib.h>
5982 #include <stdarg.h>
5983 #include <fcntl.h>
5984 #include <netdb.h>
5985 #include <netinet/in.h>
5986 #include <errno.h>
5987 #include <sys/types.h>
5988 #include <sys/socket.h>
5989 /* Check bitfields */
5990 struct nbbuf {
5991 unsigned int initDone:1;
5992 ushort signmaplen;
5996 main ()
5999 /* Check creating a socket. */
6000 struct sockaddr_in server;
6001 (void)socket(AF_INET, SOCK_STREAM, 0);
6002 (void)htons(100);
6003 (void)gethostbyname("microsoft.com");
6004 if (errno == ECONNREFUSED)
6005 (void)connect(1, (struct sockaddr *)&server, sizeof(server));
6008 return 0;
6010 _ACEOF
6011 rm -f conftest.$ac_objext conftest$ac_exeext
6012 if { (ac_try="$ac_link"
6013 case "(($ac_try" in
6014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6015 *) ac_try_echo=$ac_try;;
6016 esac
6017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6018 (eval "$ac_link") 2>conftest.er1
6019 ac_status=$?
6020 grep -v '^ *+' conftest.er1 >conftest.err
6021 rm -f conftest.er1
6022 cat conftest.err >&5
6023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6024 (exit $ac_status); } && {
6025 test -z "$ac_c_werror_flag" ||
6026 test ! -s conftest.err
6027 } && test -s conftest$ac_exeext &&
6028 $as_test_x conftest$ac_exeext; then
6029 { echo "$as_me:$LINENO: result: yes" >&5
6030 echo "${ECHO_T}yes" >&6; }
6031 else
6032 echo "$as_me: failed program was:" >&5
6033 sed 's/^/| /' conftest.$ac_ext >&5
6035 { echo "$as_me:$LINENO: result: no" >&5
6036 echo "${ECHO_T}no" >&6; }; enable_netbeans="no"
6039 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6040 conftest$ac_exeext conftest.$ac_ext
6041 else
6042 { echo "$as_me:$LINENO: result: yes" >&5
6043 echo "${ECHO_T}yes" >&6; }
6045 if test "$enable_netbeans" = "yes"; then
6046 cat >>confdefs.h <<\_ACEOF
6047 #define FEAT_NETBEANS_INTG 1
6048 _ACEOF
6050 NETBEANS_SRC="netbeans.c"
6052 NETBEANS_OBJ="objects/netbeans.o"
6056 { echo "$as_me:$LINENO: checking --enable-sniff argument" >&5
6057 echo $ECHO_N "checking --enable-sniff argument... $ECHO_C" >&6; }
6058 # Check whether --enable-sniff was given.
6059 if test "${enable_sniff+set}" = set; then
6060 enableval=$enable_sniff;
6061 else
6062 enable_sniff="no"
6065 { echo "$as_me:$LINENO: result: $enable_sniff" >&5
6066 echo "${ECHO_T}$enable_sniff" >&6; }
6067 if test "$enable_sniff" = "yes"; then
6068 cat >>confdefs.h <<\_ACEOF
6069 #define FEAT_SNIFF 1
6070 _ACEOF
6072 SNIFF_SRC="if_sniff.c"
6074 SNIFF_OBJ="objects/if_sniff.o"
6078 { echo "$as_me:$LINENO: checking --enable-multibyte argument" >&5
6079 echo $ECHO_N "checking --enable-multibyte argument... $ECHO_C" >&6; }
6080 # Check whether --enable-multibyte was given.
6081 if test "${enable_multibyte+set}" = set; then
6082 enableval=$enable_multibyte;
6083 else
6084 enable_multibyte="no"
6087 { echo "$as_me:$LINENO: result: $enable_multibyte" >&5
6088 echo "${ECHO_T}$enable_multibyte" >&6; }
6089 if test "$enable_multibyte" = "yes"; then
6090 cat >>confdefs.h <<\_ACEOF
6091 #define FEAT_MBYTE 1
6092 _ACEOF
6096 { echo "$as_me:$LINENO: checking --enable-hangulinput argument" >&5
6097 echo $ECHO_N "checking --enable-hangulinput argument... $ECHO_C" >&6; }
6098 # Check whether --enable-hangulinput was given.
6099 if test "${enable_hangulinput+set}" = set; then
6100 enableval=$enable_hangulinput;
6101 else
6102 enable_hangulinput="no"
6105 { echo "$as_me:$LINENO: result: $enable_hangulinput" >&5
6106 echo "${ECHO_T}$enable_hangulinput" >&6; }
6108 { echo "$as_me:$LINENO: checking --enable-xim argument" >&5
6109 echo $ECHO_N "checking --enable-xim argument... $ECHO_C" >&6; }
6110 # Check whether --enable-xim was given.
6111 if test "${enable_xim+set}" = set; then
6112 enableval=$enable_xim; { echo "$as_me:$LINENO: result: $enable_xim" >&5
6113 echo "${ECHO_T}$enable_xim" >&6; }
6114 else
6115 enable_xim="auto"; { echo "$as_me:$LINENO: result: defaulting to auto" >&5
6116 echo "${ECHO_T}defaulting to auto" >&6; }
6120 { echo "$as_me:$LINENO: checking --enable-fontset argument" >&5
6121 echo $ECHO_N "checking --enable-fontset argument... $ECHO_C" >&6; }
6122 # Check whether --enable-fontset was given.
6123 if test "${enable_fontset+set}" = set; then
6124 enableval=$enable_fontset;
6125 else
6126 enable_fontset="no"
6129 { echo "$as_me:$LINENO: result: $enable_fontset" >&5
6130 echo "${ECHO_T}$enable_fontset" >&6; }
6132 test -z "$with_x" && with_x=yes
6133 test "${enable_gui-yes}" != no -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && with_x=yes
6134 if test "$with_x" = no; then
6135 { echo "$as_me:$LINENO: result: defaulting to: don't HAVE_X11" >&5
6136 echo "${ECHO_T}defaulting to: don't HAVE_X11" >&6; }
6137 else
6139 # Extract the first word of "xmkmf", so it can be a program name with args.
6140 set dummy xmkmf; ac_word=$2
6141 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6143 if test "${ac_cv_path_xmkmfpath+set}" = set; then
6144 echo $ECHO_N "(cached) $ECHO_C" >&6
6145 else
6146 case $xmkmfpath in
6147 [\\/]* | ?:[\\/]*)
6148 ac_cv_path_xmkmfpath="$xmkmfpath" # Let the user override the test with a path.
6151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6152 for as_dir in $PATH
6154 IFS=$as_save_IFS
6155 test -z "$as_dir" && as_dir=.
6156 for ac_exec_ext in '' $ac_executable_extensions; do
6157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6158 ac_cv_path_xmkmfpath="$as_dir/$ac_word$ac_exec_ext"
6159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6160 break 2
6162 done
6163 done
6164 IFS=$as_save_IFS
6167 esac
6169 xmkmfpath=$ac_cv_path_xmkmfpath
6170 if test -n "$xmkmfpath"; then
6171 { echo "$as_me:$LINENO: result: $xmkmfpath" >&5
6172 echo "${ECHO_T}$xmkmfpath" >&6; }
6173 else
6174 { echo "$as_me:$LINENO: result: no" >&5
6175 echo "${ECHO_T}no" >&6; }
6180 { echo "$as_me:$LINENO: checking for X" >&5
6181 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
6184 # Check whether --with-x was given.
6185 if test "${with_x+set}" = set; then
6186 withval=$with_x;
6189 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6190 if test "x$with_x" = xno; then
6191 # The user explicitly disabled X.
6192 have_x=disabled
6193 else
6194 case $x_includes,$x_libraries in #(
6195 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
6196 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
6197 { (exit 1); exit 1; }; };; #(
6198 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
6199 echo $ECHO_N "(cached) $ECHO_C" >&6
6200 else
6201 # One or both of the vars are not set, and there is no cached value.
6202 ac_x_includes=no ac_x_libraries=no
6203 rm -f -r conftest.dir
6204 if mkdir conftest.dir; then
6205 cd conftest.dir
6206 cat >Imakefile <<'_ACEOF'
6207 incroot:
6208 @echo incroot='${INCROOT}'
6209 usrlibdir:
6210 @echo usrlibdir='${USRLIBDIR}'
6211 libdir:
6212 @echo libdir='${LIBDIR}'
6213 _ACEOF
6214 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
6215 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6216 for ac_var in incroot usrlibdir libdir; do
6217 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
6218 done
6219 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6220 for ac_extension in a so sl; do
6221 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
6222 test -f "$ac_im_libdir/libX11.$ac_extension"; then
6223 ac_im_usrlibdir=$ac_im_libdir; break
6225 done
6226 # Screen out bogus values from the imake configuration. They are
6227 # bogus both because they are the default anyway, and because
6228 # using them would break gcc on systems where it needs fixed includes.
6229 case $ac_im_incroot in
6230 /usr/include) ac_x_includes= ;;
6231 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6232 esac
6233 case $ac_im_usrlibdir in
6234 /usr/lib | /lib) ;;
6235 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6236 esac
6238 cd ..
6239 rm -f -r conftest.dir
6242 # Standard set of common directories for X headers.
6243 # Check X11 before X11Rn because it is often a symlink to the current release.
6244 ac_x_header_dirs='
6245 /usr/X11/include
6246 /usr/X11R6/include
6247 /usr/X11R5/include
6248 /usr/X11R4/include
6250 /usr/include/X11
6251 /usr/include/X11R6
6252 /usr/include/X11R5
6253 /usr/include/X11R4
6255 /usr/local/X11/include
6256 /usr/local/X11R6/include
6257 /usr/local/X11R5/include
6258 /usr/local/X11R4/include
6260 /usr/local/include/X11
6261 /usr/local/include/X11R6
6262 /usr/local/include/X11R5
6263 /usr/local/include/X11R4
6265 /usr/X386/include
6266 /usr/x386/include
6267 /usr/XFree86/include/X11
6269 /usr/include
6270 /usr/local/include
6271 /usr/unsupported/include
6272 /usr/athena/include
6273 /usr/local/x11r5/include
6274 /usr/lpp/Xamples/include
6276 /usr/openwin/include
6277 /usr/openwin/share/include'
6279 if test "$ac_x_includes" = no; then
6280 # Guess where to find include files, by looking for Xlib.h.
6281 # First, try using that file with no special directory specified.
6282 cat >conftest.$ac_ext <<_ACEOF
6283 /* confdefs.h. */
6284 _ACEOF
6285 cat confdefs.h >>conftest.$ac_ext
6286 cat >>conftest.$ac_ext <<_ACEOF
6287 /* end confdefs.h. */
6288 #include <X11/Xlib.h>
6289 _ACEOF
6290 if { (ac_try="$ac_cpp conftest.$ac_ext"
6291 case "(($ac_try" in
6292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6293 *) ac_try_echo=$ac_try;;
6294 esac
6295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6296 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6297 ac_status=$?
6298 grep -v '^ *+' conftest.er1 >conftest.err
6299 rm -f conftest.er1
6300 cat conftest.err >&5
6301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6302 (exit $ac_status); } >/dev/null && {
6303 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6304 test ! -s conftest.err
6305 }; then
6306 # We can compile using X headers with no special include directory.
6307 ac_x_includes=
6308 else
6309 echo "$as_me: failed program was:" >&5
6310 sed 's/^/| /' conftest.$ac_ext >&5
6312 for ac_dir in $ac_x_header_dirs; do
6313 if test -r "$ac_dir/X11/Xlib.h"; then
6314 ac_x_includes=$ac_dir
6315 break
6317 done
6320 rm -f conftest.err conftest.$ac_ext
6321 fi # $ac_x_includes = no
6323 if test "$ac_x_libraries" = no; then
6324 # Check for the libraries.
6325 # See if we find them without any special options.
6326 # Don't add to $LIBS permanently.
6327 ac_save_LIBS=$LIBS
6328 LIBS="-lX11 $LIBS"
6329 cat >conftest.$ac_ext <<_ACEOF
6330 /* confdefs.h. */
6331 _ACEOF
6332 cat confdefs.h >>conftest.$ac_ext
6333 cat >>conftest.$ac_ext <<_ACEOF
6334 /* end confdefs.h. */
6335 #include <X11/Xlib.h>
6337 main ()
6339 XrmInitialize ()
6341 return 0;
6343 _ACEOF
6344 rm -f conftest.$ac_objext conftest$ac_exeext
6345 if { (ac_try="$ac_link"
6346 case "(($ac_try" in
6347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6348 *) ac_try_echo=$ac_try;;
6349 esac
6350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6351 (eval "$ac_link") 2>conftest.er1
6352 ac_status=$?
6353 grep -v '^ *+' conftest.er1 >conftest.err
6354 rm -f conftest.er1
6355 cat conftest.err >&5
6356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6357 (exit $ac_status); } && {
6358 test -z "$ac_c_werror_flag" ||
6359 test ! -s conftest.err
6360 } && test -s conftest$ac_exeext &&
6361 $as_test_x conftest$ac_exeext; then
6362 LIBS=$ac_save_LIBS
6363 # We can link X programs with no special library path.
6364 ac_x_libraries=
6365 else
6366 echo "$as_me: failed program was:" >&5
6367 sed 's/^/| /' conftest.$ac_ext >&5
6369 LIBS=$ac_save_LIBS
6370 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6372 # Don't even attempt the hair of trying to link an X program!
6373 for ac_extension in a so sl; do
6374 if test -r "$ac_dir/libX11.$ac_extension"; then
6375 ac_x_libraries=$ac_dir
6376 break 2
6378 done
6379 done
6382 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6383 conftest$ac_exeext conftest.$ac_ext
6384 fi # $ac_x_libraries = no
6386 case $ac_x_includes,$ac_x_libraries in #(
6387 no,* | *,no | *\'*)
6388 # Didn't find X, or a directory has "'" in its name.
6389 ac_cv_have_x="have_x=no";; #(
6391 # Record where we found X for the cache.
6392 ac_cv_have_x="have_x=yes\
6393 ac_x_includes='$ac_x_includes'\
6394 ac_x_libraries='$ac_x_libraries'"
6395 esac
6397 ;; #(
6398 *) have_x=yes;;
6399 esac
6400 eval "$ac_cv_have_x"
6401 fi # $with_x != no
6403 if test "$have_x" != yes; then
6404 { echo "$as_me:$LINENO: result: $have_x" >&5
6405 echo "${ECHO_T}$have_x" >&6; }
6406 no_x=yes
6407 else
6408 # If each of the values was on the command line, it overrides each guess.
6409 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6410 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6411 # Update the cache value to reflect the command line values.
6412 ac_cv_have_x="have_x=yes\
6413 ac_x_includes='$x_includes'\
6414 ac_x_libraries='$x_libraries'"
6415 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6416 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
6419 if test "$no_x" = yes; then
6420 # Not all programs may use this symbol, but it does not hurt to define it.
6422 cat >>confdefs.h <<\_ACEOF
6423 #define X_DISPLAY_MISSING 1
6424 _ACEOF
6426 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6427 else
6428 if test -n "$x_includes"; then
6429 X_CFLAGS="$X_CFLAGS -I$x_includes"
6432 # It would also be nice to do this for all -L options, not just this one.
6433 if test -n "$x_libraries"; then
6434 X_LIBS="$X_LIBS -L$x_libraries"
6435 # For Solaris; some versions of Sun CC require a space after -R and
6436 # others require no space. Words are not sufficient . . . .
6437 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
6438 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
6439 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
6440 ac_xsave_c_werror_flag=$ac_c_werror_flag
6441 ac_c_werror_flag=yes
6442 cat >conftest.$ac_ext <<_ACEOF
6443 /* confdefs.h. */
6444 _ACEOF
6445 cat confdefs.h >>conftest.$ac_ext
6446 cat >>conftest.$ac_ext <<_ACEOF
6447 /* end confdefs.h. */
6450 main ()
6454 return 0;
6456 _ACEOF
6457 rm -f conftest.$ac_objext conftest$ac_exeext
6458 if { (ac_try="$ac_link"
6459 case "(($ac_try" in
6460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6461 *) ac_try_echo=$ac_try;;
6462 esac
6463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6464 (eval "$ac_link") 2>conftest.er1
6465 ac_status=$?
6466 grep -v '^ *+' conftest.er1 >conftest.err
6467 rm -f conftest.er1
6468 cat conftest.err >&5
6469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6470 (exit $ac_status); } && {
6471 test -z "$ac_c_werror_flag" ||
6472 test ! -s conftest.err
6473 } && test -s conftest$ac_exeext &&
6474 $as_test_x conftest$ac_exeext; then
6475 { echo "$as_me:$LINENO: result: no" >&5
6476 echo "${ECHO_T}no" >&6; }
6477 X_LIBS="$X_LIBS -R$x_libraries"
6478 else
6479 echo "$as_me: failed program was:" >&5
6480 sed 's/^/| /' conftest.$ac_ext >&5
6482 LIBS="$ac_xsave_LIBS -R $x_libraries"
6483 cat >conftest.$ac_ext <<_ACEOF
6484 /* confdefs.h. */
6485 _ACEOF
6486 cat confdefs.h >>conftest.$ac_ext
6487 cat >>conftest.$ac_ext <<_ACEOF
6488 /* end confdefs.h. */
6491 main ()
6495 return 0;
6497 _ACEOF
6498 rm -f conftest.$ac_objext conftest$ac_exeext
6499 if { (ac_try="$ac_link"
6500 case "(($ac_try" in
6501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6502 *) ac_try_echo=$ac_try;;
6503 esac
6504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6505 (eval "$ac_link") 2>conftest.er1
6506 ac_status=$?
6507 grep -v '^ *+' conftest.er1 >conftest.err
6508 rm -f conftest.er1
6509 cat conftest.err >&5
6510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6511 (exit $ac_status); } && {
6512 test -z "$ac_c_werror_flag" ||
6513 test ! -s conftest.err
6514 } && test -s conftest$ac_exeext &&
6515 $as_test_x conftest$ac_exeext; then
6516 { echo "$as_me:$LINENO: result: yes" >&5
6517 echo "${ECHO_T}yes" >&6; }
6518 X_LIBS="$X_LIBS -R $x_libraries"
6519 else
6520 echo "$as_me: failed program was:" >&5
6521 sed 's/^/| /' conftest.$ac_ext >&5
6523 { echo "$as_me:$LINENO: result: neither works" >&5
6524 echo "${ECHO_T}neither works" >&6; }
6527 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6528 conftest$ac_exeext conftest.$ac_ext
6531 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6532 conftest$ac_exeext conftest.$ac_ext
6533 ac_c_werror_flag=$ac_xsave_c_werror_flag
6534 LIBS=$ac_xsave_LIBS
6537 # Check for system-dependent libraries X programs must link with.
6538 # Do this before checking for the system-independent R6 libraries
6539 # (-lICE), since we may need -lsocket or whatever for X linking.
6541 if test "$ISC" = yes; then
6542 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
6543 else
6544 # Martyn Johnson says this is needed for Ultrix, if the X
6545 # libraries were built with DECnet support. And Karl Berry says
6546 # the Alpha needs dnet_stub (dnet does not exist).
6547 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
6548 cat >conftest.$ac_ext <<_ACEOF
6549 /* confdefs.h. */
6550 _ACEOF
6551 cat confdefs.h >>conftest.$ac_ext
6552 cat >>conftest.$ac_ext <<_ACEOF
6553 /* end confdefs.h. */
6555 /* Override any GCC internal prototype to avoid an error.
6556 Use char because int might match the return type of a GCC
6557 builtin and then its argument prototype would still apply. */
6558 #ifdef __cplusplus
6559 extern "C"
6560 #endif
6561 char XOpenDisplay ();
6563 main ()
6565 return XOpenDisplay ();
6567 return 0;
6569 _ACEOF
6570 rm -f conftest.$ac_objext conftest$ac_exeext
6571 if { (ac_try="$ac_link"
6572 case "(($ac_try" in
6573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6574 *) ac_try_echo=$ac_try;;
6575 esac
6576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6577 (eval "$ac_link") 2>conftest.er1
6578 ac_status=$?
6579 grep -v '^ *+' conftest.er1 >conftest.err
6580 rm -f conftest.er1
6581 cat conftest.err >&5
6582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6583 (exit $ac_status); } && {
6584 test -z "$ac_c_werror_flag" ||
6585 test ! -s conftest.err
6586 } && test -s conftest$ac_exeext &&
6587 $as_test_x conftest$ac_exeext; then
6589 else
6590 echo "$as_me: failed program was:" >&5
6591 sed 's/^/| /' conftest.$ac_ext >&5
6593 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
6594 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
6595 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
6596 echo $ECHO_N "(cached) $ECHO_C" >&6
6597 else
6598 ac_check_lib_save_LIBS=$LIBS
6599 LIBS="-ldnet $LIBS"
6600 cat >conftest.$ac_ext <<_ACEOF
6601 /* confdefs.h. */
6602 _ACEOF
6603 cat confdefs.h >>conftest.$ac_ext
6604 cat >>conftest.$ac_ext <<_ACEOF
6605 /* end confdefs.h. */
6607 /* Override any GCC internal prototype to avoid an error.
6608 Use char because int might match the return type of a GCC
6609 builtin and then its argument prototype would still apply. */
6610 #ifdef __cplusplus
6611 extern "C"
6612 #endif
6613 char dnet_ntoa ();
6615 main ()
6617 return dnet_ntoa ();
6619 return 0;
6621 _ACEOF
6622 rm -f conftest.$ac_objext conftest$ac_exeext
6623 if { (ac_try="$ac_link"
6624 case "(($ac_try" in
6625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6626 *) ac_try_echo=$ac_try;;
6627 esac
6628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6629 (eval "$ac_link") 2>conftest.er1
6630 ac_status=$?
6631 grep -v '^ *+' conftest.er1 >conftest.err
6632 rm -f conftest.er1
6633 cat conftest.err >&5
6634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6635 (exit $ac_status); } && {
6636 test -z "$ac_c_werror_flag" ||
6637 test ! -s conftest.err
6638 } && test -s conftest$ac_exeext &&
6639 $as_test_x conftest$ac_exeext; then
6640 ac_cv_lib_dnet_dnet_ntoa=yes
6641 else
6642 echo "$as_me: failed program was:" >&5
6643 sed 's/^/| /' conftest.$ac_ext >&5
6645 ac_cv_lib_dnet_dnet_ntoa=no
6648 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6649 conftest$ac_exeext conftest.$ac_ext
6650 LIBS=$ac_check_lib_save_LIBS
6652 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6653 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
6654 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
6655 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
6658 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
6659 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
6660 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
6661 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
6662 echo $ECHO_N "(cached) $ECHO_C" >&6
6663 else
6664 ac_check_lib_save_LIBS=$LIBS
6665 LIBS="-ldnet_stub $LIBS"
6666 cat >conftest.$ac_ext <<_ACEOF
6667 /* confdefs.h. */
6668 _ACEOF
6669 cat confdefs.h >>conftest.$ac_ext
6670 cat >>conftest.$ac_ext <<_ACEOF
6671 /* end confdefs.h. */
6673 /* Override any GCC internal prototype to avoid an error.
6674 Use char because int might match the return type of a GCC
6675 builtin and then its argument prototype would still apply. */
6676 #ifdef __cplusplus
6677 extern "C"
6678 #endif
6679 char dnet_ntoa ();
6681 main ()
6683 return dnet_ntoa ();
6685 return 0;
6687 _ACEOF
6688 rm -f conftest.$ac_objext conftest$ac_exeext
6689 if { (ac_try="$ac_link"
6690 case "(($ac_try" in
6691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6692 *) ac_try_echo=$ac_try;;
6693 esac
6694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6695 (eval "$ac_link") 2>conftest.er1
6696 ac_status=$?
6697 grep -v '^ *+' conftest.er1 >conftest.err
6698 rm -f conftest.er1
6699 cat conftest.err >&5
6700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6701 (exit $ac_status); } && {
6702 test -z "$ac_c_werror_flag" ||
6703 test ! -s conftest.err
6704 } && test -s conftest$ac_exeext &&
6705 $as_test_x conftest$ac_exeext; then
6706 ac_cv_lib_dnet_stub_dnet_ntoa=yes
6707 else
6708 echo "$as_me: failed program was:" >&5
6709 sed 's/^/| /' conftest.$ac_ext >&5
6711 ac_cv_lib_dnet_stub_dnet_ntoa=no
6714 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6715 conftest$ac_exeext conftest.$ac_ext
6716 LIBS=$ac_check_lib_save_LIBS
6718 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
6719 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
6720 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
6721 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
6727 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6728 conftest$ac_exeext conftest.$ac_ext
6729 LIBS="$ac_xsave_LIBS"
6731 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
6732 # to get the SysV transport functions.
6733 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
6734 # needs -lnsl.
6735 # The nsl library prevents programs from opening the X display
6736 # on Irix 5.2, according to T.E. Dickey.
6737 # The functions gethostbyname, getservbyname, and inet_addr are
6738 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
6739 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
6740 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
6741 if test "${ac_cv_func_gethostbyname+set}" = set; then
6742 echo $ECHO_N "(cached) $ECHO_C" >&6
6743 else
6744 cat >conftest.$ac_ext <<_ACEOF
6745 /* confdefs.h. */
6746 _ACEOF
6747 cat confdefs.h >>conftest.$ac_ext
6748 cat >>conftest.$ac_ext <<_ACEOF
6749 /* end confdefs.h. */
6750 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
6751 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6752 #define gethostbyname innocuous_gethostbyname
6754 /* System header to define __stub macros and hopefully few prototypes,
6755 which can conflict with char gethostbyname (); below.
6756 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6757 <limits.h> exists even on freestanding compilers. */
6759 #ifdef __STDC__
6760 # include <limits.h>
6761 #else
6762 # include <assert.h>
6763 #endif
6765 #undef gethostbyname
6767 /* Override any GCC internal prototype to avoid an error.
6768 Use char because int might match the return type of a GCC
6769 builtin and then its argument prototype would still apply. */
6770 #ifdef __cplusplus
6771 extern "C"
6772 #endif
6773 char gethostbyname ();
6774 /* The GNU C library defines this for functions which it implements
6775 to always fail with ENOSYS. Some functions are actually named
6776 something starting with __ and the normal name is an alias. */
6777 #if defined __stub_gethostbyname || defined __stub___gethostbyname
6778 choke me
6779 #endif
6782 main ()
6784 return gethostbyname ();
6786 return 0;
6788 _ACEOF
6789 rm -f conftest.$ac_objext conftest$ac_exeext
6790 if { (ac_try="$ac_link"
6791 case "(($ac_try" in
6792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6793 *) ac_try_echo=$ac_try;;
6794 esac
6795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6796 (eval "$ac_link") 2>conftest.er1
6797 ac_status=$?
6798 grep -v '^ *+' conftest.er1 >conftest.err
6799 rm -f conftest.er1
6800 cat conftest.err >&5
6801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6802 (exit $ac_status); } && {
6803 test -z "$ac_c_werror_flag" ||
6804 test ! -s conftest.err
6805 } && test -s conftest$ac_exeext &&
6806 $as_test_x conftest$ac_exeext; then
6807 ac_cv_func_gethostbyname=yes
6808 else
6809 echo "$as_me: failed program was:" >&5
6810 sed 's/^/| /' conftest.$ac_ext >&5
6812 ac_cv_func_gethostbyname=no
6815 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6816 conftest$ac_exeext conftest.$ac_ext
6818 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
6819 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
6821 if test $ac_cv_func_gethostbyname = no; then
6822 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6823 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
6824 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6825 echo $ECHO_N "(cached) $ECHO_C" >&6
6826 else
6827 ac_check_lib_save_LIBS=$LIBS
6828 LIBS="-lnsl $LIBS"
6829 cat >conftest.$ac_ext <<_ACEOF
6830 /* confdefs.h. */
6831 _ACEOF
6832 cat confdefs.h >>conftest.$ac_ext
6833 cat >>conftest.$ac_ext <<_ACEOF
6834 /* end confdefs.h. */
6836 /* Override any GCC internal prototype to avoid an error.
6837 Use char because int might match the return type of a GCC
6838 builtin and then its argument prototype would still apply. */
6839 #ifdef __cplusplus
6840 extern "C"
6841 #endif
6842 char gethostbyname ();
6844 main ()
6846 return gethostbyname ();
6848 return 0;
6850 _ACEOF
6851 rm -f conftest.$ac_objext conftest$ac_exeext
6852 if { (ac_try="$ac_link"
6853 case "(($ac_try" in
6854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6855 *) ac_try_echo=$ac_try;;
6856 esac
6857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6858 (eval "$ac_link") 2>conftest.er1
6859 ac_status=$?
6860 grep -v '^ *+' conftest.er1 >conftest.err
6861 rm -f conftest.er1
6862 cat conftest.err >&5
6863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6864 (exit $ac_status); } && {
6865 test -z "$ac_c_werror_flag" ||
6866 test ! -s conftest.err
6867 } && test -s conftest$ac_exeext &&
6868 $as_test_x conftest$ac_exeext; then
6869 ac_cv_lib_nsl_gethostbyname=yes
6870 else
6871 echo "$as_me: failed program was:" >&5
6872 sed 's/^/| /' conftest.$ac_ext >&5
6874 ac_cv_lib_nsl_gethostbyname=no
6877 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6878 conftest$ac_exeext conftest.$ac_ext
6879 LIBS=$ac_check_lib_save_LIBS
6881 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6882 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
6883 if test $ac_cv_lib_nsl_gethostbyname = yes; then
6884 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
6887 if test $ac_cv_lib_nsl_gethostbyname = no; then
6888 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
6889 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
6890 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
6891 echo $ECHO_N "(cached) $ECHO_C" >&6
6892 else
6893 ac_check_lib_save_LIBS=$LIBS
6894 LIBS="-lbsd $LIBS"
6895 cat >conftest.$ac_ext <<_ACEOF
6896 /* confdefs.h. */
6897 _ACEOF
6898 cat confdefs.h >>conftest.$ac_ext
6899 cat >>conftest.$ac_ext <<_ACEOF
6900 /* end confdefs.h. */
6902 /* Override any GCC internal prototype to avoid an error.
6903 Use char because int might match the return type of a GCC
6904 builtin and then its argument prototype would still apply. */
6905 #ifdef __cplusplus
6906 extern "C"
6907 #endif
6908 char gethostbyname ();
6910 main ()
6912 return gethostbyname ();
6914 return 0;
6916 _ACEOF
6917 rm -f conftest.$ac_objext conftest$ac_exeext
6918 if { (ac_try="$ac_link"
6919 case "(($ac_try" in
6920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6921 *) ac_try_echo=$ac_try;;
6922 esac
6923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6924 (eval "$ac_link") 2>conftest.er1
6925 ac_status=$?
6926 grep -v '^ *+' conftest.er1 >conftest.err
6927 rm -f conftest.er1
6928 cat conftest.err >&5
6929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6930 (exit $ac_status); } && {
6931 test -z "$ac_c_werror_flag" ||
6932 test ! -s conftest.err
6933 } && test -s conftest$ac_exeext &&
6934 $as_test_x conftest$ac_exeext; then
6935 ac_cv_lib_bsd_gethostbyname=yes
6936 else
6937 echo "$as_me: failed program was:" >&5
6938 sed 's/^/| /' conftest.$ac_ext >&5
6940 ac_cv_lib_bsd_gethostbyname=no
6943 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6944 conftest$ac_exeext conftest.$ac_ext
6945 LIBS=$ac_check_lib_save_LIBS
6947 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
6948 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
6949 if test $ac_cv_lib_bsd_gethostbyname = yes; then
6950 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
6956 # lieder@skyler.mavd.honeywell.com says without -lsocket,
6957 # socket/setsockopt and other routines are undefined under SCO ODT
6958 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
6959 # on later versions), says Simon Leinen: it contains gethostby*
6960 # variants that don't use the name server (or something). -lsocket
6961 # must be given before -lnsl if both are needed. We assume that
6962 # if connect needs -lnsl, so does gethostbyname.
6963 { echo "$as_me:$LINENO: checking for connect" >&5
6964 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
6965 if test "${ac_cv_func_connect+set}" = set; then
6966 echo $ECHO_N "(cached) $ECHO_C" >&6
6967 else
6968 cat >conftest.$ac_ext <<_ACEOF
6969 /* confdefs.h. */
6970 _ACEOF
6971 cat confdefs.h >>conftest.$ac_ext
6972 cat >>conftest.$ac_ext <<_ACEOF
6973 /* end confdefs.h. */
6974 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
6975 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6976 #define connect innocuous_connect
6978 /* System header to define __stub macros and hopefully few prototypes,
6979 which can conflict with char connect (); below.
6980 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6981 <limits.h> exists even on freestanding compilers. */
6983 #ifdef __STDC__
6984 # include <limits.h>
6985 #else
6986 # include <assert.h>
6987 #endif
6989 #undef connect
6991 /* Override any GCC internal prototype to avoid an error.
6992 Use char because int might match the return type of a GCC
6993 builtin and then its argument prototype would still apply. */
6994 #ifdef __cplusplus
6995 extern "C"
6996 #endif
6997 char connect ();
6998 /* The GNU C library defines this for functions which it implements
6999 to always fail with ENOSYS. Some functions are actually named
7000 something starting with __ and the normal name is an alias. */
7001 #if defined __stub_connect || defined __stub___connect
7002 choke me
7003 #endif
7006 main ()
7008 return connect ();
7010 return 0;
7012 _ACEOF
7013 rm -f conftest.$ac_objext conftest$ac_exeext
7014 if { (ac_try="$ac_link"
7015 case "(($ac_try" in
7016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7017 *) ac_try_echo=$ac_try;;
7018 esac
7019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7020 (eval "$ac_link") 2>conftest.er1
7021 ac_status=$?
7022 grep -v '^ *+' conftest.er1 >conftest.err
7023 rm -f conftest.er1
7024 cat conftest.err >&5
7025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7026 (exit $ac_status); } && {
7027 test -z "$ac_c_werror_flag" ||
7028 test ! -s conftest.err
7029 } && test -s conftest$ac_exeext &&
7030 $as_test_x conftest$ac_exeext; then
7031 ac_cv_func_connect=yes
7032 else
7033 echo "$as_me: failed program was:" >&5
7034 sed 's/^/| /' conftest.$ac_ext >&5
7036 ac_cv_func_connect=no
7039 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7040 conftest$ac_exeext conftest.$ac_ext
7042 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
7043 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
7045 if test $ac_cv_func_connect = no; then
7046 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
7047 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
7048 if test "${ac_cv_lib_socket_connect+set}" = set; then
7049 echo $ECHO_N "(cached) $ECHO_C" >&6
7050 else
7051 ac_check_lib_save_LIBS=$LIBS
7052 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7053 cat >conftest.$ac_ext <<_ACEOF
7054 /* confdefs.h. */
7055 _ACEOF
7056 cat confdefs.h >>conftest.$ac_ext
7057 cat >>conftest.$ac_ext <<_ACEOF
7058 /* end confdefs.h. */
7060 /* Override any GCC internal prototype to avoid an error.
7061 Use char because int might match the return type of a GCC
7062 builtin and then its argument prototype would still apply. */
7063 #ifdef __cplusplus
7064 extern "C"
7065 #endif
7066 char connect ();
7068 main ()
7070 return connect ();
7072 return 0;
7074 _ACEOF
7075 rm -f conftest.$ac_objext conftest$ac_exeext
7076 if { (ac_try="$ac_link"
7077 case "(($ac_try" in
7078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7079 *) ac_try_echo=$ac_try;;
7080 esac
7081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7082 (eval "$ac_link") 2>conftest.er1
7083 ac_status=$?
7084 grep -v '^ *+' conftest.er1 >conftest.err
7085 rm -f conftest.er1
7086 cat conftest.err >&5
7087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7088 (exit $ac_status); } && {
7089 test -z "$ac_c_werror_flag" ||
7090 test ! -s conftest.err
7091 } && test -s conftest$ac_exeext &&
7092 $as_test_x conftest$ac_exeext; then
7093 ac_cv_lib_socket_connect=yes
7094 else
7095 echo "$as_me: failed program was:" >&5
7096 sed 's/^/| /' conftest.$ac_ext >&5
7098 ac_cv_lib_socket_connect=no
7101 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7102 conftest$ac_exeext conftest.$ac_ext
7103 LIBS=$ac_check_lib_save_LIBS
7105 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
7106 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
7107 if test $ac_cv_lib_socket_connect = yes; then
7108 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7113 # Guillermo Gomez says -lposix is necessary on A/UX.
7114 { echo "$as_me:$LINENO: checking for remove" >&5
7115 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
7116 if test "${ac_cv_func_remove+set}" = set; then
7117 echo $ECHO_N "(cached) $ECHO_C" >&6
7118 else
7119 cat >conftest.$ac_ext <<_ACEOF
7120 /* confdefs.h. */
7121 _ACEOF
7122 cat confdefs.h >>conftest.$ac_ext
7123 cat >>conftest.$ac_ext <<_ACEOF
7124 /* end confdefs.h. */
7125 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
7126 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7127 #define remove innocuous_remove
7129 /* System header to define __stub macros and hopefully few prototypes,
7130 which can conflict with char remove (); below.
7131 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7132 <limits.h> exists even on freestanding compilers. */
7134 #ifdef __STDC__
7135 # include <limits.h>
7136 #else
7137 # include <assert.h>
7138 #endif
7140 #undef remove
7142 /* Override any GCC internal prototype to avoid an error.
7143 Use char because int might match the return type of a GCC
7144 builtin and then its argument prototype would still apply. */
7145 #ifdef __cplusplus
7146 extern "C"
7147 #endif
7148 char remove ();
7149 /* The GNU C library defines this for functions which it implements
7150 to always fail with ENOSYS. Some functions are actually named
7151 something starting with __ and the normal name is an alias. */
7152 #if defined __stub_remove || defined __stub___remove
7153 choke me
7154 #endif
7157 main ()
7159 return remove ();
7161 return 0;
7163 _ACEOF
7164 rm -f conftest.$ac_objext conftest$ac_exeext
7165 if { (ac_try="$ac_link"
7166 case "(($ac_try" in
7167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7168 *) ac_try_echo=$ac_try;;
7169 esac
7170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7171 (eval "$ac_link") 2>conftest.er1
7172 ac_status=$?
7173 grep -v '^ *+' conftest.er1 >conftest.err
7174 rm -f conftest.er1
7175 cat conftest.err >&5
7176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7177 (exit $ac_status); } && {
7178 test -z "$ac_c_werror_flag" ||
7179 test ! -s conftest.err
7180 } && test -s conftest$ac_exeext &&
7181 $as_test_x conftest$ac_exeext; then
7182 ac_cv_func_remove=yes
7183 else
7184 echo "$as_me: failed program was:" >&5
7185 sed 's/^/| /' conftest.$ac_ext >&5
7187 ac_cv_func_remove=no
7190 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7191 conftest$ac_exeext conftest.$ac_ext
7193 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
7194 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
7196 if test $ac_cv_func_remove = no; then
7197 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
7198 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
7199 if test "${ac_cv_lib_posix_remove+set}" = set; then
7200 echo $ECHO_N "(cached) $ECHO_C" >&6
7201 else
7202 ac_check_lib_save_LIBS=$LIBS
7203 LIBS="-lposix $LIBS"
7204 cat >conftest.$ac_ext <<_ACEOF
7205 /* confdefs.h. */
7206 _ACEOF
7207 cat confdefs.h >>conftest.$ac_ext
7208 cat >>conftest.$ac_ext <<_ACEOF
7209 /* end confdefs.h. */
7211 /* Override any GCC internal prototype to avoid an error.
7212 Use char because int might match the return type of a GCC
7213 builtin and then its argument prototype would still apply. */
7214 #ifdef __cplusplus
7215 extern "C"
7216 #endif
7217 char remove ();
7219 main ()
7221 return remove ();
7223 return 0;
7225 _ACEOF
7226 rm -f conftest.$ac_objext conftest$ac_exeext
7227 if { (ac_try="$ac_link"
7228 case "(($ac_try" in
7229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7230 *) ac_try_echo=$ac_try;;
7231 esac
7232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7233 (eval "$ac_link") 2>conftest.er1
7234 ac_status=$?
7235 grep -v '^ *+' conftest.er1 >conftest.err
7236 rm -f conftest.er1
7237 cat conftest.err >&5
7238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7239 (exit $ac_status); } && {
7240 test -z "$ac_c_werror_flag" ||
7241 test ! -s conftest.err
7242 } && test -s conftest$ac_exeext &&
7243 $as_test_x conftest$ac_exeext; then
7244 ac_cv_lib_posix_remove=yes
7245 else
7246 echo "$as_me: failed program was:" >&5
7247 sed 's/^/| /' conftest.$ac_ext >&5
7249 ac_cv_lib_posix_remove=no
7252 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7253 conftest$ac_exeext conftest.$ac_ext
7254 LIBS=$ac_check_lib_save_LIBS
7256 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
7257 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
7258 if test $ac_cv_lib_posix_remove = yes; then
7259 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7264 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7265 { echo "$as_me:$LINENO: checking for shmat" >&5
7266 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
7267 if test "${ac_cv_func_shmat+set}" = set; then
7268 echo $ECHO_N "(cached) $ECHO_C" >&6
7269 else
7270 cat >conftest.$ac_ext <<_ACEOF
7271 /* confdefs.h. */
7272 _ACEOF
7273 cat confdefs.h >>conftest.$ac_ext
7274 cat >>conftest.$ac_ext <<_ACEOF
7275 /* end confdefs.h. */
7276 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
7277 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7278 #define shmat innocuous_shmat
7280 /* System header to define __stub macros and hopefully few prototypes,
7281 which can conflict with char shmat (); below.
7282 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7283 <limits.h> exists even on freestanding compilers. */
7285 #ifdef __STDC__
7286 # include <limits.h>
7287 #else
7288 # include <assert.h>
7289 #endif
7291 #undef shmat
7293 /* Override any GCC internal prototype to avoid an error.
7294 Use char because int might match the return type of a GCC
7295 builtin and then its argument prototype would still apply. */
7296 #ifdef __cplusplus
7297 extern "C"
7298 #endif
7299 char shmat ();
7300 /* The GNU C library defines this for functions which it implements
7301 to always fail with ENOSYS. Some functions are actually named
7302 something starting with __ and the normal name is an alias. */
7303 #if defined __stub_shmat || defined __stub___shmat
7304 choke me
7305 #endif
7308 main ()
7310 return shmat ();
7312 return 0;
7314 _ACEOF
7315 rm -f conftest.$ac_objext conftest$ac_exeext
7316 if { (ac_try="$ac_link"
7317 case "(($ac_try" in
7318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7319 *) ac_try_echo=$ac_try;;
7320 esac
7321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7322 (eval "$ac_link") 2>conftest.er1
7323 ac_status=$?
7324 grep -v '^ *+' conftest.er1 >conftest.err
7325 rm -f conftest.er1
7326 cat conftest.err >&5
7327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7328 (exit $ac_status); } && {
7329 test -z "$ac_c_werror_flag" ||
7330 test ! -s conftest.err
7331 } && test -s conftest$ac_exeext &&
7332 $as_test_x conftest$ac_exeext; then
7333 ac_cv_func_shmat=yes
7334 else
7335 echo "$as_me: failed program was:" >&5
7336 sed 's/^/| /' conftest.$ac_ext >&5
7338 ac_cv_func_shmat=no
7341 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7342 conftest$ac_exeext conftest.$ac_ext
7344 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
7345 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
7347 if test $ac_cv_func_shmat = no; then
7348 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
7349 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
7350 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
7351 echo $ECHO_N "(cached) $ECHO_C" >&6
7352 else
7353 ac_check_lib_save_LIBS=$LIBS
7354 LIBS="-lipc $LIBS"
7355 cat >conftest.$ac_ext <<_ACEOF
7356 /* confdefs.h. */
7357 _ACEOF
7358 cat confdefs.h >>conftest.$ac_ext
7359 cat >>conftest.$ac_ext <<_ACEOF
7360 /* end confdefs.h. */
7362 /* Override any GCC internal prototype to avoid an error.
7363 Use char because int might match the return type of a GCC
7364 builtin and then its argument prototype would still apply. */
7365 #ifdef __cplusplus
7366 extern "C"
7367 #endif
7368 char shmat ();
7370 main ()
7372 return shmat ();
7374 return 0;
7376 _ACEOF
7377 rm -f conftest.$ac_objext conftest$ac_exeext
7378 if { (ac_try="$ac_link"
7379 case "(($ac_try" in
7380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7381 *) ac_try_echo=$ac_try;;
7382 esac
7383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7384 (eval "$ac_link") 2>conftest.er1
7385 ac_status=$?
7386 grep -v '^ *+' conftest.er1 >conftest.err
7387 rm -f conftest.er1
7388 cat conftest.err >&5
7389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7390 (exit $ac_status); } && {
7391 test -z "$ac_c_werror_flag" ||
7392 test ! -s conftest.err
7393 } && test -s conftest$ac_exeext &&
7394 $as_test_x conftest$ac_exeext; then
7395 ac_cv_lib_ipc_shmat=yes
7396 else
7397 echo "$as_me: failed program was:" >&5
7398 sed 's/^/| /' conftest.$ac_ext >&5
7400 ac_cv_lib_ipc_shmat=no
7403 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7404 conftest$ac_exeext conftest.$ac_ext
7405 LIBS=$ac_check_lib_save_LIBS
7407 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
7408 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
7409 if test $ac_cv_lib_ipc_shmat = yes; then
7410 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7416 # Check for libraries that X11R6 Xt/Xaw programs need.
7417 ac_save_LDFLAGS=$LDFLAGS
7418 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7419 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7420 # check for ICE first), but we must link in the order -lSM -lICE or
7421 # we get undefined symbols. So assume we have SM if we have ICE.
7422 # These have to be linked with before -lX11, unlike the other
7423 # libraries we check for below, so use a different variable.
7424 # John Interrante, Karl Berry
7425 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
7426 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
7427 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
7428 echo $ECHO_N "(cached) $ECHO_C" >&6
7429 else
7430 ac_check_lib_save_LIBS=$LIBS
7431 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7432 cat >conftest.$ac_ext <<_ACEOF
7433 /* confdefs.h. */
7434 _ACEOF
7435 cat confdefs.h >>conftest.$ac_ext
7436 cat >>conftest.$ac_ext <<_ACEOF
7437 /* end confdefs.h. */
7439 /* Override any GCC internal prototype to avoid an error.
7440 Use char because int might match the return type of a GCC
7441 builtin and then its argument prototype would still apply. */
7442 #ifdef __cplusplus
7443 extern "C"
7444 #endif
7445 char IceConnectionNumber ();
7447 main ()
7449 return IceConnectionNumber ();
7451 return 0;
7453 _ACEOF
7454 rm -f conftest.$ac_objext conftest$ac_exeext
7455 if { (ac_try="$ac_link"
7456 case "(($ac_try" in
7457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7458 *) ac_try_echo=$ac_try;;
7459 esac
7460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7461 (eval "$ac_link") 2>conftest.er1
7462 ac_status=$?
7463 grep -v '^ *+' conftest.er1 >conftest.err
7464 rm -f conftest.er1
7465 cat conftest.err >&5
7466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7467 (exit $ac_status); } && {
7468 test -z "$ac_c_werror_flag" ||
7469 test ! -s conftest.err
7470 } && test -s conftest$ac_exeext &&
7471 $as_test_x conftest$ac_exeext; then
7472 ac_cv_lib_ICE_IceConnectionNumber=yes
7473 else
7474 echo "$as_me: failed program was:" >&5
7475 sed 's/^/| /' conftest.$ac_ext >&5
7477 ac_cv_lib_ICE_IceConnectionNumber=no
7480 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7481 conftest$ac_exeext conftest.$ac_ext
7482 LIBS=$ac_check_lib_save_LIBS
7484 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7485 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
7486 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
7487 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7490 LDFLAGS=$ac_save_LDFLAGS
7495 if test "$OS390Unix" = "yes"; then
7496 CFLAGS="$CFLAGS -W c,dll"
7497 LDFLAGS="$LDFLAGS -W l,dll"
7498 X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE -lXmu"
7502 if test -d "$x_includes" && test ! -d "$x_libraries"; then
7503 x_libraries=`echo "$x_includes" | sed s/include/lib/`
7504 { echo "$as_me:$LINENO: result: Corrected X libraries to $x_libraries" >&5
7505 echo "${ECHO_T}Corrected X libraries to $x_libraries" >&6; }
7506 X_LIBS="$X_LIBS -L$x_libraries"
7507 if test "`(uname) 2>/dev/null`" = SunOS &&
7508 uname -r | grep '^5' >/dev/null; then
7509 X_LIBS="$X_LIBS -R $x_libraries"
7513 if test -d "$x_libraries" && test ! -d "$x_includes"; then
7514 x_includes=`echo "$x_libraries" | sed s/lib/include/`
7515 { echo "$as_me:$LINENO: result: Corrected X includes to $x_includes" >&5
7516 echo "${ECHO_T}Corrected X includes to $x_includes" >&6; }
7517 X_CFLAGS="$X_CFLAGS -I$x_includes"
7520 X_CFLAGS="`echo $X_CFLAGS\ | sed 's%-I/usr/include %%'`"
7521 X_LIBS="`echo $X_LIBS\ | sed 's%-L/usr/lib %%'`"
7522 X_LIBS="`echo $X_LIBS\ | sed -e 's%-R/usr/lib %%' -e 's%-R /usr/lib %%'`"
7525 { echo "$as_me:$LINENO: checking if X11 header files can be found" >&5
7526 echo $ECHO_N "checking if X11 header files can be found... $ECHO_C" >&6; }
7527 cflags_save=$CFLAGS
7528 CFLAGS="$CFLAGS $X_CFLAGS"
7529 cat >conftest.$ac_ext <<_ACEOF
7530 /* confdefs.h. */
7531 _ACEOF
7532 cat confdefs.h >>conftest.$ac_ext
7533 cat >>conftest.$ac_ext <<_ACEOF
7534 /* end confdefs.h. */
7535 #include <X11/Xlib.h>
7536 #include <X11/Intrinsic.h>
7538 main ()
7542 return 0;
7544 _ACEOF
7545 rm -f conftest.$ac_objext
7546 if { (ac_try="$ac_compile"
7547 case "(($ac_try" in
7548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7549 *) ac_try_echo=$ac_try;;
7550 esac
7551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7552 (eval "$ac_compile") 2>conftest.er1
7553 ac_status=$?
7554 grep -v '^ *+' conftest.er1 >conftest.err
7555 rm -f conftest.er1
7556 cat conftest.err >&5
7557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7558 (exit $ac_status); } && {
7559 test -z "$ac_c_werror_flag" ||
7560 test ! -s conftest.err
7561 } && test -s conftest.$ac_objext; then
7562 { echo "$as_me:$LINENO: result: yes" >&5
7563 echo "${ECHO_T}yes" >&6; }
7564 else
7565 echo "$as_me: failed program was:" >&5
7566 sed 's/^/| /' conftest.$ac_ext >&5
7568 { echo "$as_me:$LINENO: result: no" >&5
7569 echo "${ECHO_T}no" >&6; }; no_x=yes
7572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7573 CFLAGS=$cflags_save
7575 if test "${no_x-no}" = yes; then
7576 with_x=no
7577 else
7578 cat >>confdefs.h <<\_ACEOF
7579 #define HAVE_X11 1
7580 _ACEOF
7582 X_LIB="-lXt -lX11";
7585 ac_save_LDFLAGS="$LDFLAGS"
7586 LDFLAGS="-L$x_libraries $LDFLAGS"
7588 { echo "$as_me:$LINENO: checking for _XdmcpAuthDoIt in -lXdmcp" >&5
7589 echo $ECHO_N "checking for _XdmcpAuthDoIt in -lXdmcp... $ECHO_C" >&6; }
7590 if test "${ac_cv_lib_Xdmcp__XdmcpAuthDoIt+set}" = set; then
7591 echo $ECHO_N "(cached) $ECHO_C" >&6
7592 else
7593 ac_check_lib_save_LIBS=$LIBS
7594 LIBS="-lXdmcp -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS -lXdmcp $LIBS"
7595 cat >conftest.$ac_ext <<_ACEOF
7596 /* confdefs.h. */
7597 _ACEOF
7598 cat confdefs.h >>conftest.$ac_ext
7599 cat >>conftest.$ac_ext <<_ACEOF
7600 /* end confdefs.h. */
7602 /* Override any GCC internal prototype to avoid an error.
7603 Use char because int might match the return type of a GCC
7604 builtin and then its argument prototype would still apply. */
7605 #ifdef __cplusplus
7606 extern "C"
7607 #endif
7608 char _XdmcpAuthDoIt ();
7610 main ()
7612 return _XdmcpAuthDoIt ();
7614 return 0;
7616 _ACEOF
7617 rm -f conftest.$ac_objext conftest$ac_exeext
7618 if { (ac_try="$ac_link"
7619 case "(($ac_try" in
7620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7621 *) ac_try_echo=$ac_try;;
7622 esac
7623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7624 (eval "$ac_link") 2>conftest.er1
7625 ac_status=$?
7626 grep -v '^ *+' conftest.er1 >conftest.err
7627 rm -f conftest.er1
7628 cat conftest.err >&5
7629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7630 (exit $ac_status); } && {
7631 test -z "$ac_c_werror_flag" ||
7632 test ! -s conftest.err
7633 } && test -s conftest$ac_exeext &&
7634 $as_test_x conftest$ac_exeext; then
7635 ac_cv_lib_Xdmcp__XdmcpAuthDoIt=yes
7636 else
7637 echo "$as_me: failed program was:" >&5
7638 sed 's/^/| /' conftest.$ac_ext >&5
7640 ac_cv_lib_Xdmcp__XdmcpAuthDoIt=no
7643 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7644 conftest$ac_exeext conftest.$ac_ext
7645 LIBS=$ac_check_lib_save_LIBS
7647 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&5
7648 echo "${ECHO_T}$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&6; }
7649 if test $ac_cv_lib_Xdmcp__XdmcpAuthDoIt = yes; then
7650 X_EXTRA_LIBS="$X_EXTRA_LIBS -lXdmcp"
7654 { echo "$as_me:$LINENO: checking for IceOpenConnection in -lICE" >&5
7655 echo $ECHO_N "checking for IceOpenConnection in -lICE... $ECHO_C" >&6; }
7656 if test "${ac_cv_lib_ICE_IceOpenConnection+set}" = set; then
7657 echo $ECHO_N "(cached) $ECHO_C" >&6
7658 else
7659 ac_check_lib_save_LIBS=$LIBS
7660 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7661 cat >conftest.$ac_ext <<_ACEOF
7662 /* confdefs.h. */
7663 _ACEOF
7664 cat confdefs.h >>conftest.$ac_ext
7665 cat >>conftest.$ac_ext <<_ACEOF
7666 /* end confdefs.h. */
7668 /* Override any GCC internal prototype to avoid an error.
7669 Use char because int might match the return type of a GCC
7670 builtin and then its argument prototype would still apply. */
7671 #ifdef __cplusplus
7672 extern "C"
7673 #endif
7674 char IceOpenConnection ();
7676 main ()
7678 return IceOpenConnection ();
7680 return 0;
7682 _ACEOF
7683 rm -f conftest.$ac_objext conftest$ac_exeext
7684 if { (ac_try="$ac_link"
7685 case "(($ac_try" in
7686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7687 *) ac_try_echo=$ac_try;;
7688 esac
7689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7690 (eval "$ac_link") 2>conftest.er1
7691 ac_status=$?
7692 grep -v '^ *+' conftest.er1 >conftest.err
7693 rm -f conftest.er1
7694 cat conftest.err >&5
7695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7696 (exit $ac_status); } && {
7697 test -z "$ac_c_werror_flag" ||
7698 test ! -s conftest.err
7699 } && test -s conftest$ac_exeext &&
7700 $as_test_x conftest$ac_exeext; then
7701 ac_cv_lib_ICE_IceOpenConnection=yes
7702 else
7703 echo "$as_me: failed program was:" >&5
7704 sed 's/^/| /' conftest.$ac_ext >&5
7706 ac_cv_lib_ICE_IceOpenConnection=no
7709 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7710 conftest$ac_exeext conftest.$ac_ext
7711 LIBS=$ac_check_lib_save_LIBS
7713 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceOpenConnection" >&5
7714 echo "${ECHO_T}$ac_cv_lib_ICE_IceOpenConnection" >&6; }
7715 if test $ac_cv_lib_ICE_IceOpenConnection = yes; then
7716 X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE"
7720 LDFLAGS="$X_LIBS $ac_save_LDFLAGS"
7721 { echo "$as_me:$LINENO: checking for XpmCreatePixmapFromData in -lXpm" >&5
7722 echo $ECHO_N "checking for XpmCreatePixmapFromData in -lXpm... $ECHO_C" >&6; }
7723 if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then
7724 echo $ECHO_N "(cached) $ECHO_C" >&6
7725 else
7726 ac_check_lib_save_LIBS=$LIBS
7727 LIBS="-lXpm -lXt $X_PRE_LIBS -lXpm -lX11 $X_EXTRA_LIBS $LIBS"
7728 cat >conftest.$ac_ext <<_ACEOF
7729 /* confdefs.h. */
7730 _ACEOF
7731 cat confdefs.h >>conftest.$ac_ext
7732 cat >>conftest.$ac_ext <<_ACEOF
7733 /* end confdefs.h. */
7735 /* Override any GCC internal prototype to avoid an error.
7736 Use char because int might match the return type of a GCC
7737 builtin and then its argument prototype would still apply. */
7738 #ifdef __cplusplus
7739 extern "C"
7740 #endif
7741 char XpmCreatePixmapFromData ();
7743 main ()
7745 return XpmCreatePixmapFromData ();
7747 return 0;
7749 _ACEOF
7750 rm -f conftest.$ac_objext conftest$ac_exeext
7751 if { (ac_try="$ac_link"
7752 case "(($ac_try" in
7753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7754 *) ac_try_echo=$ac_try;;
7755 esac
7756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7757 (eval "$ac_link") 2>conftest.er1
7758 ac_status=$?
7759 grep -v '^ *+' conftest.er1 >conftest.err
7760 rm -f conftest.er1
7761 cat conftest.err >&5
7762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7763 (exit $ac_status); } && {
7764 test -z "$ac_c_werror_flag" ||
7765 test ! -s conftest.err
7766 } && test -s conftest$ac_exeext &&
7767 $as_test_x conftest$ac_exeext; then
7768 ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
7769 else
7770 echo "$as_me: failed program was:" >&5
7771 sed 's/^/| /' conftest.$ac_ext >&5
7773 ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
7776 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7777 conftest$ac_exeext conftest.$ac_ext
7778 LIBS=$ac_check_lib_save_LIBS
7780 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
7781 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6; }
7782 if test $ac_cv_lib_Xpm_XpmCreatePixmapFromData = yes; then
7783 X_PRE_LIBS="$X_PRE_LIBS -lXpm"
7787 { echo "$as_me:$LINENO: checking if X11 header files implicitly declare return values" >&5
7788 echo $ECHO_N "checking if X11 header files implicitly declare return values... $ECHO_C" >&6; }
7789 cflags_save=$CFLAGS
7790 CFLAGS="$CFLAGS $X_CFLAGS -Werror"
7791 cat >conftest.$ac_ext <<_ACEOF
7792 /* confdefs.h. */
7793 _ACEOF
7794 cat confdefs.h >>conftest.$ac_ext
7795 cat >>conftest.$ac_ext <<_ACEOF
7796 /* end confdefs.h. */
7797 #include <X11/Xlib.h>
7799 main ()
7803 return 0;
7805 _ACEOF
7806 rm -f conftest.$ac_objext
7807 if { (ac_try="$ac_compile"
7808 case "(($ac_try" in
7809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7810 *) ac_try_echo=$ac_try;;
7811 esac
7812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7813 (eval "$ac_compile") 2>conftest.er1
7814 ac_status=$?
7815 grep -v '^ *+' conftest.er1 >conftest.err
7816 rm -f conftest.er1
7817 cat conftest.err >&5
7818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7819 (exit $ac_status); } && {
7820 test -z "$ac_c_werror_flag" ||
7821 test ! -s conftest.err
7822 } && test -s conftest.$ac_objext; then
7823 { echo "$as_me:$LINENO: result: no" >&5
7824 echo "${ECHO_T}no" >&6; }
7825 else
7826 echo "$as_me: failed program was:" >&5
7827 sed 's/^/| /' conftest.$ac_ext >&5
7829 CFLAGS="$CFLAGS -Wno-implicit-int"
7830 cat >conftest.$ac_ext <<_ACEOF
7831 /* confdefs.h. */
7832 _ACEOF
7833 cat confdefs.h >>conftest.$ac_ext
7834 cat >>conftest.$ac_ext <<_ACEOF
7835 /* end confdefs.h. */
7836 #include <X11/Xlib.h>
7838 main ()
7842 return 0;
7844 _ACEOF
7845 rm -f conftest.$ac_objext
7846 if { (ac_try="$ac_compile"
7847 case "(($ac_try" in
7848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7849 *) ac_try_echo=$ac_try;;
7850 esac
7851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7852 (eval "$ac_compile") 2>conftest.er1
7853 ac_status=$?
7854 grep -v '^ *+' conftest.er1 >conftest.err
7855 rm -f conftest.er1
7856 cat conftest.err >&5
7857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7858 (exit $ac_status); } && {
7859 test -z "$ac_c_werror_flag" ||
7860 test ! -s conftest.err
7861 } && test -s conftest.$ac_objext; then
7862 { echo "$as_me:$LINENO: result: yes" >&5
7863 echo "${ECHO_T}yes" >&6; }; cflags_save="$cflags_save -Wno-implicit-int"
7864 else
7865 echo "$as_me: failed program was:" >&5
7866 sed 's/^/| /' conftest.$ac_ext >&5
7868 { echo "$as_me:$LINENO: result: test failed" >&5
7869 echo "${ECHO_T}test failed" >&6; }
7873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7878 CFLAGS=$cflags_save
7880 LDFLAGS="$ac_save_LDFLAGS"
7882 { echo "$as_me:$LINENO: checking size of wchar_t is 2 bytes" >&5
7883 echo $ECHO_N "checking size of wchar_t is 2 bytes... $ECHO_C" >&6; }
7884 if test "${ac_cv_small_wchar_t+set}" = set; then
7885 echo $ECHO_N "(cached) $ECHO_C" >&6
7886 else
7887 if test "$cross_compiling" = yes; then
7888 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
7889 echo "$as_me: error: failed to compile test program" >&2;}
7890 { (exit 1); exit 1; }; }
7891 else
7892 cat >conftest.$ac_ext <<_ACEOF
7893 /* confdefs.h. */
7894 _ACEOF
7895 cat confdefs.h >>conftest.$ac_ext
7896 cat >>conftest.$ac_ext <<_ACEOF
7897 /* end confdefs.h. */
7899 #include <X11/Xlib.h>
7900 #if STDC_HEADERS
7901 # include <stdlib.h>
7902 # include <stddef.h>
7903 #endif
7904 main()
7906 if (sizeof(wchar_t) <= 2)
7907 exit(1);
7908 exit(0);
7910 _ACEOF
7911 rm -f conftest$ac_exeext
7912 if { (ac_try="$ac_link"
7913 case "(($ac_try" in
7914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7915 *) ac_try_echo=$ac_try;;
7916 esac
7917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7918 (eval "$ac_link") 2>&5
7919 ac_status=$?
7920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7921 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7922 { (case "(($ac_try" in
7923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7924 *) ac_try_echo=$ac_try;;
7925 esac
7926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7927 (eval "$ac_try") 2>&5
7928 ac_status=$?
7929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7930 (exit $ac_status); }; }; then
7931 ac_cv_small_wchar_t="no"
7932 else
7933 echo "$as_me: program exited with status $ac_status" >&5
7934 echo "$as_me: failed program was:" >&5
7935 sed 's/^/| /' conftest.$ac_ext >&5
7937 ( exit $ac_status )
7938 ac_cv_small_wchar_t="yes"
7940 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7946 { echo "$as_me:$LINENO: result: $ac_cv_small_wchar_t" >&5
7947 echo "${ECHO_T}$ac_cv_small_wchar_t" >&6; }
7948 if test "x$ac_cv_small_wchar_t" = "xyes" ; then
7949 cat >>confdefs.h <<\_ACEOF
7950 #define SMALL_WCHAR_T 1
7951 _ACEOF
7958 test "x$with_x" = xno -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && enable_gui=no
7960 { echo "$as_me:$LINENO: checking --enable-gui argument" >&5
7961 echo $ECHO_N "checking --enable-gui argument... $ECHO_C" >&6; }
7962 # Check whether --enable-gui was given.
7963 if test "${enable_gui+set}" = set; then
7964 enableval=$enable_gui;
7965 else
7966 enable_gui="auto"
7970 enable_gui_canon=`echo "_$enable_gui" | \
7971 sed 's/[ _+-]//g;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
7973 SKIP_GTK=YES
7974 SKIP_GTK2=YES
7975 SKIP_GNOME=YES
7976 SKIP_MOTIF=YES
7977 SKIP_ATHENA=YES
7978 SKIP_NEXTAW=YES
7979 SKIP_PHOTON=YES
7980 SKIP_CARBON=YES
7981 SKIP_MACVIM=YES
7982 GUITYPE=NONE
7984 if test "x$QNX" = "xyes" -a "x$with_x" = "xno" ; then
7985 SKIP_PHOTON=
7986 case "$enable_gui_canon" in
7987 no) { echo "$as_me:$LINENO: result: no GUI support" >&5
7988 echo "${ECHO_T}no GUI support" >&6; }
7989 SKIP_PHOTON=YES ;;
7990 yes|"") { echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5
7991 echo "${ECHO_T}yes - automatic GUI support" >&6; } ;;
7992 auto) { echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5
7993 echo "${ECHO_T}auto - automatic GUI support" >&6; } ;;
7994 photon) { echo "$as_me:$LINENO: result: Photon GUI support" >&5
7995 echo "${ECHO_T}Photon GUI support" >&6; } ;;
7996 *) { echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
7997 echo "${ECHO_T}Sorry, $enable_gui GUI is not supported" >&6; }
7998 SKIP_PHOTON=YES ;;
7999 esac
8001 elif test "x$MACOSX" = "xyes" -a "x$with_x" = "xno" ; then
8002 SKIP_CARBON=
8003 SKIP_MACVIM=
8004 case "$enable_gui_canon" in
8005 no) { echo "$as_me:$LINENO: result: no GUI support" >&5
8006 echo "${ECHO_T}no GUI support" >&6; }
8007 SKIP_CARBON=YES
8008 SKIP_MACVIM=YES ;;
8009 yes|"") { echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5
8010 echo "${ECHO_T}yes - automatic GUI support" >&6; } ;;
8011 auto) { echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5
8012 echo "${ECHO_T}auto - automatic GUI support" >&6; } ;;
8013 carbon) { echo "$as_me:$LINENO: result: Carbon GUI support" >&5
8014 echo "${ECHO_T}Carbon GUI support" >&6; }
8015 SKIP_MACVIM=YES ;;
8016 macvim) { echo "$as_me:$LINENO: result: MacVim GUI support" >&5
8017 echo "${ECHO_T}MacVim GUI support" >&6; }
8018 SKIP_CARBON=YES ;;
8019 *) { echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
8020 echo "${ECHO_T}Sorry, $enable_gui GUI is not supported" >&6; }
8021 SKIP_CARBON=YES
8022 SKIP_MACVIM=YES ;;
8023 esac
8025 else
8027 case "$enable_gui_canon" in
8028 no|none) { echo "$as_me:$LINENO: result: no GUI support" >&5
8029 echo "${ECHO_T}no GUI support" >&6; } ;;
8030 yes|""|auto) { echo "$as_me:$LINENO: result: yes/auto - automatic GUI support" >&5
8031 echo "${ECHO_T}yes/auto - automatic GUI support" >&6; }
8032 SKIP_GTK=
8033 SKIP_GTK2=
8034 SKIP_GNOME=
8035 SKIP_MOTIF=
8036 SKIP_ATHENA=
8037 SKIP_NEXTAW=
8038 SKIP_MACVIM=
8039 SKIP_CARBON=;;
8040 gtk) { echo "$as_me:$LINENO: result: GTK+ 1.x GUI support" >&5
8041 echo "${ECHO_T}GTK+ 1.x GUI support" >&6; }
8042 SKIP_GTK=;;
8043 gtk2) { echo "$as_me:$LINENO: result: GTK+ 2.x GUI support" >&5
8044 echo "${ECHO_T}GTK+ 2.x GUI support" >&6; }
8045 SKIP_GTK=
8046 SKIP_GTK2=;;
8047 gnome) { echo "$as_me:$LINENO: result: GNOME 1.x GUI support" >&5
8048 echo "${ECHO_T}GNOME 1.x GUI support" >&6; }
8049 SKIP_GNOME=
8050 SKIP_GTK=;;
8051 gnome2) { echo "$as_me:$LINENO: result: GNOME 2.x GUI support" >&5
8052 echo "${ECHO_T}GNOME 2.x GUI support" >&6; }
8053 SKIP_GNOME=
8054 SKIP_GTK=
8055 SKIP_GTK2=;;
8056 motif) { echo "$as_me:$LINENO: result: Motif GUI support" >&5
8057 echo "${ECHO_T}Motif GUI support" >&6; }
8058 SKIP_MOTIF=;;
8059 athena) { echo "$as_me:$LINENO: result: Athena GUI support" >&5
8060 echo "${ECHO_T}Athena GUI support" >&6; }
8061 SKIP_ATHENA=;;
8062 nextaw) { echo "$as_me:$LINENO: result: neXtaw GUI support" >&5
8063 echo "${ECHO_T}neXtaw GUI support" >&6; }
8064 SKIP_NEXTAW=;;
8065 *) { echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
8066 echo "${ECHO_T}Sorry, $enable_gui GUI is not supported" >&6; } ;;
8067 esac
8071 if test "x$SKIP_GTK" != "xYES" -a "$enable_gui_canon" != "gtk" -a "$enable_gui_canon" != "gtk2"; then
8072 { echo "$as_me:$LINENO: checking whether or not to look for GTK" >&5
8073 echo $ECHO_N "checking whether or not to look for GTK... $ECHO_C" >&6; }
8074 # Check whether --enable-gtk-check was given.
8075 if test "${enable_gtk_check+set}" = set; then
8076 enableval=$enable_gtk_check;
8077 else
8078 enable_gtk_check="yes"
8081 { echo "$as_me:$LINENO: result: $enable_gtk_check" >&5
8082 echo "${ECHO_T}$enable_gtk_check" >&6; }
8083 if test "x$enable_gtk_check" = "xno"; then
8084 SKIP_GTK=YES
8085 SKIP_GNOME=YES
8089 if test "x$SKIP_GTK2" != "xYES" -a "$enable_gui_canon" != "gtk2" \
8090 -a "$enable_gui_canon" != "gnome2"; then
8091 { echo "$as_me:$LINENO: checking whether or not to look for GTK+ 2" >&5
8092 echo $ECHO_N "checking whether or not to look for GTK+ 2... $ECHO_C" >&6; }
8093 # Check whether --enable-gtk2-check was given.
8094 if test "${enable_gtk2_check+set}" = set; then
8095 enableval=$enable_gtk2_check;
8096 else
8097 enable_gtk2_check="yes"
8100 { echo "$as_me:$LINENO: result: $enable_gtk2_check" >&5
8101 echo "${ECHO_T}$enable_gtk2_check" >&6; }
8102 if test "x$enable_gtk2_check" = "xno"; then
8103 SKIP_GTK2=YES
8107 if test "x$SKIP_GNOME" != "xYES" -a "$enable_gui_canon" != "gnome" \
8108 -a "$enable_gui_canon" != "gnome2"; then
8109 { echo "$as_me:$LINENO: checking whether or not to look for GNOME" >&5
8110 echo $ECHO_N "checking whether or not to look for GNOME... $ECHO_C" >&6; }
8111 # Check whether --enable-gnome-check was given.
8112 if test "${enable_gnome_check+set}" = set; then
8113 enableval=$enable_gnome_check;
8114 else
8115 enable_gnome_check="no"
8118 { echo "$as_me:$LINENO: result: $enable_gnome_check" >&5
8119 echo "${ECHO_T}$enable_gnome_check" >&6; }
8120 if test "x$enable_gnome_check" = "xno"; then
8121 SKIP_GNOME=YES
8125 if test "x$SKIP_MOTIF" != "xYES" -a "$enable_gui_canon" != "motif"; then
8126 { echo "$as_me:$LINENO: checking whether or not to look for Motif" >&5
8127 echo $ECHO_N "checking whether or not to look for Motif... $ECHO_C" >&6; }
8128 # Check whether --enable-motif-check was given.
8129 if test "${enable_motif_check+set}" = set; then
8130 enableval=$enable_motif_check;
8131 else
8132 enable_motif_check="yes"
8135 { echo "$as_me:$LINENO: result: $enable_motif_check" >&5
8136 echo "${ECHO_T}$enable_motif_check" >&6; }
8137 if test "x$enable_motif_check" = "xno"; then
8138 SKIP_MOTIF=YES
8142 if test "x$SKIP_ATHENA" != "xYES" -a "$enable_gui_canon" != "athena"; then
8143 { echo "$as_me:$LINENO: checking whether or not to look for Athena" >&5
8144 echo $ECHO_N "checking whether or not to look for Athena... $ECHO_C" >&6; }
8145 # Check whether --enable-athena-check was given.
8146 if test "${enable_athena_check+set}" = set; then
8147 enableval=$enable_athena_check;
8148 else
8149 enable_athena_check="yes"
8152 { echo "$as_me:$LINENO: result: $enable_athena_check" >&5
8153 echo "${ECHO_T}$enable_athena_check" >&6; }
8154 if test "x$enable_athena_check" = "xno"; then
8155 SKIP_ATHENA=YES
8159 if test "x$SKIP_NEXTAW" != "xYES" -a "$enable_gui_canon" != "nextaw"; then
8160 { echo "$as_me:$LINENO: checking whether or not to look for neXtaw" >&5
8161 echo $ECHO_N "checking whether or not to look for neXtaw... $ECHO_C" >&6; }
8162 # Check whether --enable-nextaw-check was given.
8163 if test "${enable_nextaw_check+set}" = set; then
8164 enableval=$enable_nextaw_check;
8165 else
8166 enable_nextaw_check="yes"
8169 { echo "$as_me:$LINENO: result: $enable_nextaw_check" >&5
8170 echo "${ECHO_T}$enable_nextaw_check" >&6; };
8171 if test "x$enable_nextaw_check" = "xno"; then
8172 SKIP_NEXTAW=YES
8176 if test "x$SKIP_CARBON" != "xYES" -a "$enable_gui_canon" != "carbon"; then
8177 { echo "$as_me:$LINENO: checking whether or not to look for Carbon" >&5
8178 echo $ECHO_N "checking whether or not to look for Carbon... $ECHO_C" >&6; }
8179 # Check whether --enable-carbon-check was given.
8180 if test "${enable_carbon_check+set}" = set; then
8181 enableval=$enable_carbon_check;
8182 else
8183 enable_carbon_check="yes"
8186 { echo "$as_me:$LINENO: result: $enable_carbon_check" >&5
8187 echo "${ECHO_T}$enable_carbon_check" >&6; };
8188 if test "x$enable_carbon_check" = "xno"; then
8189 SKIP_CARBON=YES
8193 if test "x$SKIP_MACVIM" != "xYES" -a "$enable_gui_canon" != "macvim"; then
8194 { echo "$as_me:$LINENO: checking whether or not to look for MacVim" >&5
8195 echo $ECHO_N "checking whether or not to look for MacVim... $ECHO_C" >&6; }
8196 # Check whether --enable-macvim-check was given.
8197 if test "${enable_macvim_check+set}" = set; then
8198 enableval=$enable_macvim_check;
8199 else
8200 enable_macvim_check="yes"
8203 { echo "$as_me:$LINENO: result: $enable_macvim_check" >&5
8204 echo "${ECHO_T}$enable_macvim_check" >&6; };
8205 if test "x$enable_macvim_check" = "xno"; then
8206 SKIP_MACVIM=YES
8210 if test "x$MACOSX" = "xyes"; then
8211 if test x$prefix = xNONE; then
8212 prefix=/Applications
8215 if test -z "$SKIP_CARBON" -a "x$CARBON" = "xyes"; then
8216 { echo "$as_me:$LINENO: checking for Carbon GUI" >&5
8217 echo $ECHO_N "checking for Carbon GUI... $ECHO_C" >&6; }
8218 { echo "$as_me:$LINENO: result: yes" >&5
8219 echo "${ECHO_T}yes" >&6; };
8220 GUITYPE=CARBONGUI
8221 datadir='${prefix}/Vim.app/Contents/Resources'
8222 elif test -z "$SKIP_MACVIM" -a "x$COCOA" = "xyes"; then
8223 { echo "$as_me:$LINENO: checking for MacVim GUI" >&5
8224 echo $ECHO_N "checking for MacVim GUI... $ECHO_C" >&6; }
8225 { echo "$as_me:$LINENO: result: yes" >&5
8226 echo "${ECHO_T}yes" >&6; };
8227 GUITYPE=MACVIMGUI
8228 datadir='${prefix}/MacVim.app/Contents/Resources'
8231 if test "$VIMNAME" = "vim"; then
8232 VIMNAME=Vim
8235 SKIP_GTK=YES;
8236 SKIP_GTK2=YES;
8237 SKIP_GNOME=YES;
8238 SKIP_MOTIF=YES;
8239 SKIP_ATHENA=YES;
8240 SKIP_NEXTAW=YES;
8241 SKIP_PHOTON=YES;
8242 SKIP_MACVIM=YES;
8243 SKIP_CARBON=YES
8254 if test -z "$SKIP_GTK"; then
8256 { echo "$as_me:$LINENO: checking --with-gtk-prefix argument" >&5
8257 echo $ECHO_N "checking --with-gtk-prefix argument... $ECHO_C" >&6; }
8259 # Check whether --with-gtk-prefix was given.
8260 if test "${with_gtk_prefix+set}" = set; then
8261 withval=$with_gtk_prefix; gtk_config_prefix="$withval"; { echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5
8262 echo "${ECHO_T}$gtk_config_prefix" >&6; }
8263 else
8264 gtk_config_prefix=""; { echo "$as_me:$LINENO: result: no" >&5
8265 echo "${ECHO_T}no" >&6; }
8269 { echo "$as_me:$LINENO: checking --with-gtk-exec-prefix argument" >&5
8270 echo $ECHO_N "checking --with-gtk-exec-prefix argument... $ECHO_C" >&6; }
8272 # Check whether --with-gtk-exec-prefix was given.
8273 if test "${with_gtk_exec_prefix+set}" = set; then
8274 withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"; { echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5
8275 echo "${ECHO_T}$gtk_config_prefix" >&6; }
8276 else
8277 gtk_config_exec_prefix=""; { echo "$as_me:$LINENO: result: no" >&5
8278 echo "${ECHO_T}no" >&6; }
8282 { echo "$as_me:$LINENO: checking --disable-gtktest argument" >&5
8283 echo $ECHO_N "checking --disable-gtktest argument... $ECHO_C" >&6; }
8284 # Check whether --enable-gtktest was given.
8285 if test "${enable_gtktest+set}" = set; then
8286 enableval=$enable_gtktest;
8287 else
8288 enable_gtktest=yes
8291 if test "x$enable_gtktest" = "xyes" ; then
8292 { echo "$as_me:$LINENO: result: gtk test enabled" >&5
8293 echo "${ECHO_T}gtk test enabled" >&6; }
8294 else
8295 { echo "$as_me:$LINENO: result: gtk test disabled" >&5
8296 echo "${ECHO_T}gtk test disabled" >&6; }
8299 if test "x$gtk_config_prefix" != "x" ; then
8300 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
8301 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
8303 if test "x$gtk_config_exec_prefix" != "x" ; then
8304 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
8305 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
8307 if test "X$GTK_CONFIG" = "X"; then
8308 # Extract the first word of "gtk-config", so it can be a program name with args.
8309 set dummy gtk-config; ac_word=$2
8310 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8311 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8312 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
8313 echo $ECHO_N "(cached) $ECHO_C" >&6
8314 else
8315 case $GTK_CONFIG in
8316 [\\/]* | ?:[\\/]*)
8317 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
8320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8321 for as_dir in $PATH
8323 IFS=$as_save_IFS
8324 test -z "$as_dir" && as_dir=.
8325 for ac_exec_ext in '' $ac_executable_extensions; do
8326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8327 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8329 break 2
8331 done
8332 done
8333 IFS=$as_save_IFS
8335 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
8337 esac
8339 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
8340 if test -n "$GTK_CONFIG"; then
8341 { echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
8342 echo "${ECHO_T}$GTK_CONFIG" >&6; }
8343 else
8344 { echo "$as_me:$LINENO: result: no" >&5
8345 echo "${ECHO_T}no" >&6; }
8349 if test "X$GTK_CONFIG" = "Xno"; then
8350 # Extract the first word of "gtk12-config", so it can be a program name with args.
8351 set dummy gtk12-config; ac_word=$2
8352 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8353 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8354 if test "${ac_cv_path_GTK12_CONFIG+set}" = set; then
8355 echo $ECHO_N "(cached) $ECHO_C" >&6
8356 else
8357 case $GTK12_CONFIG in
8358 [\\/]* | ?:[\\/]*)
8359 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
8362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8363 for as_dir in $PATH
8365 IFS=$as_save_IFS
8366 test -z "$as_dir" && as_dir=.
8367 for ac_exec_ext in '' $ac_executable_extensions; do
8368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8369 ac_cv_path_GTK12_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8371 break 2
8373 done
8374 done
8375 IFS=$as_save_IFS
8377 test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
8379 esac
8381 GTK12_CONFIG=$ac_cv_path_GTK12_CONFIG
8382 if test -n "$GTK12_CONFIG"; then
8383 { echo "$as_me:$LINENO: result: $GTK12_CONFIG" >&5
8384 echo "${ECHO_T}$GTK12_CONFIG" >&6; }
8385 else
8386 { echo "$as_me:$LINENO: result: no" >&5
8387 echo "${ECHO_T}no" >&6; }
8391 GTK_CONFIG="$GTK12_CONFIG"
8393 else
8394 { echo "$as_me:$LINENO: result: Using GTK configuration program $GTK_CONFIG" >&5
8395 echo "${ECHO_T}Using GTK configuration program $GTK_CONFIG" >&6; }
8397 if test "X$PKG_CONFIG" = "X"; then
8398 # Extract the first word of "pkg-config", so it can be a program name with args.
8399 set dummy pkg-config; ac_word=$2
8400 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8402 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8403 echo $ECHO_N "(cached) $ECHO_C" >&6
8404 else
8405 case $PKG_CONFIG in
8406 [\\/]* | ?:[\\/]*)
8407 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8411 for as_dir in $PATH
8413 IFS=$as_save_IFS
8414 test -z "$as_dir" && as_dir=.
8415 for ac_exec_ext in '' $ac_executable_extensions; do
8416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8417 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8419 break 2
8421 done
8422 done
8423 IFS=$as_save_IFS
8425 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8427 esac
8429 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8430 if test -n "$PKG_CONFIG"; then
8431 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8432 echo "${ECHO_T}$PKG_CONFIG" >&6; }
8433 else
8434 { echo "$as_me:$LINENO: result: no" >&5
8435 echo "${ECHO_T}no" >&6; }
8441 if test "x$GTK_CONFIG:$PKG_CONFIG" != "xno:no"; then
8442 if test "X$SKIP_GTK2" != "XYES"; then
8444 if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
8446 min_gtk_version=2.2.0
8447 { echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
8448 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6; }
8449 no_gtk=""
8450 if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
8451 && $PKG_CONFIG --exists gtk+-2.0; then
8453 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
8454 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0`
8455 GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
8456 gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8457 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8458 gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8459 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8460 gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8461 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8463 elif test "X$GTK_CONFIG" != "Xno"; then
8465 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
8466 GTK_LIBDIR=
8467 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
8468 gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \
8469 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8470 gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
8471 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8472 gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
8473 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8475 else
8476 no_gtk=yes
8479 if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
8481 ac_save_CFLAGS="$CFLAGS"
8482 ac_save_LIBS="$LIBS"
8483 CFLAGS="$CFLAGS $GTK_CFLAGS"
8484 LIBS="$LIBS $GTK_LIBS"
8486 rm -f conf.gtktest
8487 if test "$cross_compiling" = yes; then
8488 echo $ac_n "cross compiling; assumed OK... $ac_c"
8489 else
8490 cat >conftest.$ac_ext <<_ACEOF
8491 /* confdefs.h. */
8492 _ACEOF
8493 cat confdefs.h >>conftest.$ac_ext
8494 cat >>conftest.$ac_ext <<_ACEOF
8495 /* end confdefs.h. */
8497 #include <gtk/gtk.h>
8498 #include <stdio.h>
8499 #if STDC_HEADERS
8500 # include <stdlib.h>
8501 # include <stddef.h>
8502 #endif
8505 main ()
8507 int major, minor, micro;
8508 char *tmp_version;
8510 system ("touch conf.gtktest");
8512 /* HP/UX 9 (%@#!) writes to sscanf strings */
8513 tmp_version = g_strdup("$min_gtk_version");
8514 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
8515 printf("%s, bad version string\n", "$min_gtk_version");
8516 exit(1);
8519 if ((gtk_major_version > major) ||
8520 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
8521 ((gtk_major_version == major) && (gtk_minor_version == minor) &&
8522 (gtk_micro_version >= micro)))
8524 return 0;
8526 return 1;
8529 _ACEOF
8530 rm -f conftest$ac_exeext
8531 if { (ac_try="$ac_link"
8532 case "(($ac_try" in
8533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8534 *) ac_try_echo=$ac_try;;
8535 esac
8536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8537 (eval "$ac_link") 2>&5
8538 ac_status=$?
8539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8540 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8541 { (case "(($ac_try" in
8542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8543 *) ac_try_echo=$ac_try;;
8544 esac
8545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8546 (eval "$ac_try") 2>&5
8547 ac_status=$?
8548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8549 (exit $ac_status); }; }; then
8551 else
8552 echo "$as_me: program exited with status $ac_status" >&5
8553 echo "$as_me: failed program was:" >&5
8554 sed 's/^/| /' conftest.$ac_ext >&5
8556 ( exit $ac_status )
8557 no_gtk=yes
8559 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8563 CFLAGS="$ac_save_CFLAGS"
8564 LIBS="$ac_save_LIBS"
8567 if test "x$no_gtk" = x ; then
8568 if test "x$enable_gtktest" = "xyes"; then
8569 { echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8570 echo "${ECHO_T}yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
8571 else
8572 { echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8573 echo "${ECHO_T}found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
8575 GUI_LIB_LOC="$GTK_LIBDIR"
8576 GTK_LIBNAME="$GTK_LIBS"
8577 GUI_INC_LOC="$GTK_CFLAGS"
8578 else
8580 { echo "$as_me:$LINENO: result: no" >&5
8581 echo "${ECHO_T}no" >&6; }
8582 GTK_CFLAGS=""
8583 GTK_LIBS=""
8588 else
8589 GTK_CFLAGS=""
8590 GTK_LIBS=""
8595 rm -f conf.gtktest
8597 if test "x$GTK_CFLAGS" != "x"; then
8598 SKIP_ATHENA=YES
8599 SKIP_NEXTAW=YES
8600 SKIP_MOTIF=YES
8601 GUITYPE=GTK
8606 if test "x$GUITYPE" != "xGTK"; then
8607 SKIP_GTK2=YES
8609 if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
8611 min_gtk_version=1.1.16
8612 { echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
8613 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6; }
8614 no_gtk=""
8615 if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
8616 && $PKG_CONFIG --exists gtk+-2.0; then
8618 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
8619 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0`
8620 GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
8621 gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8622 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8623 gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8624 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8625 gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8626 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8628 elif test "X$GTK_CONFIG" != "Xno"; then
8630 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
8631 GTK_LIBDIR=
8632 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
8633 gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \
8634 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8635 gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
8636 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8637 gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
8638 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8640 else
8641 no_gtk=yes
8644 if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
8646 ac_save_CFLAGS="$CFLAGS"
8647 ac_save_LIBS="$LIBS"
8648 CFLAGS="$CFLAGS $GTK_CFLAGS"
8649 LIBS="$LIBS $GTK_LIBS"
8651 rm -f conf.gtktest
8652 if test "$cross_compiling" = yes; then
8653 echo $ac_n "cross compiling; assumed OK... $ac_c"
8654 else
8655 cat >conftest.$ac_ext <<_ACEOF
8656 /* confdefs.h. */
8657 _ACEOF
8658 cat confdefs.h >>conftest.$ac_ext
8659 cat >>conftest.$ac_ext <<_ACEOF
8660 /* end confdefs.h. */
8662 #include <gtk/gtk.h>
8663 #include <stdio.h>
8664 #if STDC_HEADERS
8665 # include <stdlib.h>
8666 # include <stddef.h>
8667 #endif
8670 main ()
8672 int major, minor, micro;
8673 char *tmp_version;
8675 system ("touch conf.gtktest");
8677 /* HP/UX 9 (%@#!) writes to sscanf strings */
8678 tmp_version = g_strdup("$min_gtk_version");
8679 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
8680 printf("%s, bad version string\n", "$min_gtk_version");
8681 exit(1);
8684 if ((gtk_major_version > major) ||
8685 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
8686 ((gtk_major_version == major) && (gtk_minor_version == minor) &&
8687 (gtk_micro_version >= micro)))
8689 return 0;
8691 return 1;
8694 _ACEOF
8695 rm -f conftest$ac_exeext
8696 if { (ac_try="$ac_link"
8697 case "(($ac_try" in
8698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8699 *) ac_try_echo=$ac_try;;
8700 esac
8701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8702 (eval "$ac_link") 2>&5
8703 ac_status=$?
8704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8705 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8706 { (case "(($ac_try" in
8707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8708 *) ac_try_echo=$ac_try;;
8709 esac
8710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8711 (eval "$ac_try") 2>&5
8712 ac_status=$?
8713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8714 (exit $ac_status); }; }; then
8716 else
8717 echo "$as_me: program exited with status $ac_status" >&5
8718 echo "$as_me: failed program was:" >&5
8719 sed 's/^/| /' conftest.$ac_ext >&5
8721 ( exit $ac_status )
8722 no_gtk=yes
8724 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8728 CFLAGS="$ac_save_CFLAGS"
8729 LIBS="$ac_save_LIBS"
8732 if test "x$no_gtk" = x ; then
8733 if test "x$enable_gtktest" = "xyes"; then
8734 { echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8735 echo "${ECHO_T}yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
8736 else
8737 { echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8738 echo "${ECHO_T}found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
8740 GTK_LIBNAME="$GTK_LIBS"
8741 GUI_INC_LOC="$GTK_CFLAGS"
8742 else
8744 { echo "$as_me:$LINENO: result: no" >&5
8745 echo "${ECHO_T}no" >&6; }
8746 GTK_CFLAGS=""
8747 GTK_LIBS=""
8752 else
8753 GTK_CFLAGS=""
8754 GTK_LIBS=""
8759 rm -f conf.gtktest
8761 if test "x$GTK_CFLAGS" != "x"; then
8762 SKIP_ATHENA=YES
8763 SKIP_NEXTAW=YES
8764 SKIP_MOTIF=YES
8765 GUITYPE=GTK
8770 if test "x$GUITYPE" = "xGTK"; then
8771 if test "$gtk_major_version" = 1 -a "0$gtk_minor_version" -lt 2 \
8772 -o "$gtk_major_version" = 1 -a "$gtk_minor_version" = 2 -a "0$gtk_micro_version" -lt 3; then
8773 { echo "$as_me:$LINENO: result: this GTK version is old; version 1.2.3 or later is recommended" >&5
8774 echo "${ECHO_T}this GTK version is old; version 1.2.3 or later is recommended" >&6; }
8775 else
8777 if test "0$gtk_major_version" -ge 2; then
8778 cat >>confdefs.h <<\_ACEOF
8779 #define HAVE_GTK2 1
8780 _ACEOF
8782 if test "$gtk_minor_version" = 1 -a "0$gtk_micro_version" -ge 1 \
8783 || test "0$gtk_minor_version" -ge 2 \
8784 || test "0$gtk_major_version" -gt 2; then
8785 cat >>confdefs.h <<\_ACEOF
8786 #define HAVE_GTK_MULTIHEAD 1
8787 _ACEOF
8791 if test -z "$SKIP_GNOME"; then
8799 # Check whether --with-gnome-includes was given.
8800 if test "${with_gnome_includes+set}" = set; then
8801 withval=$with_gnome_includes; CFLAGS="$CFLAGS -I$withval"
8807 # Check whether --with-gnome-libs was given.
8808 if test "${with_gnome_libs+set}" = set; then
8809 withval=$with_gnome_libs; LDFLAGS="$LDFLAGS -L$withval" gnome_prefix=$withval
8815 # Check whether --with-gnome was given.
8816 if test "${with_gnome+set}" = set; then
8817 withval=$with_gnome; if test x$withval = xyes; then
8818 want_gnome=yes
8819 have_gnome=yes
8820 else
8821 if test "x$withval" = xno; then
8822 want_gnome=no
8823 else
8824 want_gnome=yes
8825 LDFLAGS="$LDFLAGS -L$withval/lib"
8826 CFLAGS="$CFLAGS -I$withval/include"
8827 gnome_prefix=$withval/lib
8830 else
8831 want_gnome=yes
8835 if test "x$want_gnome" = xyes -a "0$gtk_major_version" -ge 2; then
8837 { echo "$as_me:$LINENO: checking for libgnomeui-2.0" >&5
8838 echo $ECHO_N "checking for libgnomeui-2.0... $ECHO_C" >&6; }
8839 if $PKG_CONFIG --exists libgnomeui-2.0; then
8840 { echo "$as_me:$LINENO: result: yes" >&5
8841 echo "${ECHO_T}yes" >&6; }
8842 GNOME_LIBS=`$PKG_CONFIG --libs-only-l libgnomeui-2.0`
8843 GNOME_LIBDIR=`$PKG_CONFIG --libs-only-L libgnomeui-2.0`
8844 GNOME_INCLUDEDIR=`$PKG_CONFIG --cflags libgnomeui-2.0`
8846 { echo "$as_me:$LINENO: checking for FreeBSD" >&5
8847 echo $ECHO_N "checking for FreeBSD... $ECHO_C" >&6; }
8848 if test "`(uname) 2>/dev/null`" = FreeBSD; then
8849 { echo "$as_me:$LINENO: result: yes" >&5
8850 echo "${ECHO_T}yes" >&6; }
8851 GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR -D_THREAD_SAFE"
8852 GNOME_LIBS="$GNOME_LIBS -pthread"
8853 else
8854 { echo "$as_me:$LINENO: result: no" >&5
8855 echo "${ECHO_T}no" >&6; }
8857 have_gnome=yes
8858 else
8859 { echo "$as_me:$LINENO: result: not found" >&5
8860 echo "${ECHO_T}not found" >&6; }
8861 if test "x" = xfail; then
8862 { { echo "$as_me:$LINENO: error: Could not find libgnomeui-2.0 via pkg-config" >&5
8863 echo "$as_me: error: Could not find libgnomeui-2.0 via pkg-config" >&2;}
8864 { (exit 1); exit 1; }; }
8868 elif test "x$want_gnome" = xyes; then
8870 # Extract the first word of "gnome-config", so it can be a program name with args.
8871 set dummy gnome-config; ac_word=$2
8872 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8874 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
8875 echo $ECHO_N "(cached) $ECHO_C" >&6
8876 else
8877 case $GNOME_CONFIG in
8878 [\\/]* | ?:[\\/]*)
8879 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
8882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8883 for as_dir in $PATH
8885 IFS=$as_save_IFS
8886 test -z "$as_dir" && as_dir=.
8887 for ac_exec_ext in '' $ac_executable_extensions; do
8888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8889 ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8891 break 2
8893 done
8894 done
8895 IFS=$as_save_IFS
8897 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
8899 esac
8901 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
8902 if test -n "$GNOME_CONFIG"; then
8903 { echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
8904 echo "${ECHO_T}$GNOME_CONFIG" >&6; }
8905 else
8906 { echo "$as_me:$LINENO: result: no" >&5
8907 echo "${ECHO_T}no" >&6; }
8911 if test "$GNOME_CONFIG" = "no"; then
8912 no_gnome_config="yes"
8913 else
8914 { echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
8915 echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6; }
8916 if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
8917 { echo "$as_me:$LINENO: result: yes" >&5
8918 echo "${ECHO_T}yes" >&6; }
8919 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome gnomeui`"
8920 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
8921 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
8922 have_gnome=yes
8923 else
8924 { echo "$as_me:$LINENO: result: no" >&5
8925 echo "${ECHO_T}no" >&6; }
8926 no_gnome_config="yes"
8930 if test x$exec_prefix = xNONE; then
8931 if test x$prefix = xNONE; then
8932 gnome_prefix=$ac_default_prefix/lib
8933 else
8934 gnome_prefix=$prefix/lib
8936 else
8937 gnome_prefix=`eval echo \`echo $libdir\``
8940 if test "$no_gnome_config" = "yes"; then
8941 { echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
8942 echo $ECHO_N "checking for gnomeConf.sh file in $gnome_prefix... $ECHO_C" >&6; }
8943 if test -f $gnome_prefix/gnomeConf.sh; then
8944 { echo "$as_me:$LINENO: result: found" >&5
8945 echo "${ECHO_T}found" >&6; }
8946 echo "loading gnome configuration from" \
8947 "$gnome_prefix/gnomeConf.sh"
8948 . $gnome_prefix/gnomeConf.sh
8949 have_gnome=yes
8950 else
8951 { echo "$as_me:$LINENO: result: not found" >&5
8952 echo "${ECHO_T}not found" >&6; }
8953 if test x = xfail; then
8954 { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
8955 echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
8956 { (exit 1); exit 1; }; }
8963 if test x$have_gnome = xyes ; then
8964 cat >>confdefs.h <<\_ACEOF
8965 #define FEAT_GUI_GNOME 1
8966 _ACEOF
8968 GUI_INC_LOC="$GUI_INC_LOC $GNOME_INCLUDEDIR"
8969 GTK_LIBNAME="$GTK_LIBNAME $GNOME_LIBDIR $GNOME_LIBS"
8979 if test -z "$SKIP_MOTIF"; then
8980 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"
8981 GUI_INC_LOC="`echo $GUI_INC_LOC|sed 's%-I%%g'`"
8983 { echo "$as_me:$LINENO: checking for location of Motif GUI includes" >&5
8984 echo $ECHO_N "checking for location of Motif GUI includes... $ECHO_C" >&6; }
8985 gui_includes="`echo $x_includes|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/include/g` $GUI_INC_LOC"
8986 GUI_INC_LOC=
8987 for try in $gui_includes; do
8988 if test -f "$try/Xm/Xm.h"; then
8989 GUI_INC_LOC=$try
8991 done
8992 if test -n "$GUI_INC_LOC"; then
8993 if test "$GUI_INC_LOC" = /usr/include; then
8994 GUI_INC_LOC=
8995 { echo "$as_me:$LINENO: result: in default path" >&5
8996 echo "${ECHO_T}in default path" >&6; }
8997 else
8998 { echo "$as_me:$LINENO: result: $GUI_INC_LOC" >&5
8999 echo "${ECHO_T}$GUI_INC_LOC" >&6; }
9001 else
9002 { echo "$as_me:$LINENO: result: <not found>" >&5
9003 echo "${ECHO_T}<not found>" >&6; }
9004 SKIP_MOTIF=YES
9009 if test -z "$SKIP_MOTIF"; then
9010 { echo "$as_me:$LINENO: checking --with-motif-lib argument" >&5
9011 echo $ECHO_N "checking --with-motif-lib argument... $ECHO_C" >&6; }
9013 # Check whether --with-motif-lib was given.
9014 if test "${with_motif_lib+set}" = set; then
9015 withval=$with_motif_lib; MOTIF_LIBNAME="${withval}"
9019 if test -n "$MOTIF_LIBNAME"; then
9020 { echo "$as_me:$LINENO: result: $MOTIF_LIBNAME" >&5
9021 echo "${ECHO_T}$MOTIF_LIBNAME" >&6; }
9022 GUI_LIB_LOC=
9023 else
9024 { echo "$as_me:$LINENO: result: no" >&5
9025 echo "${ECHO_T}no" >&6; }
9027 GUI_LIB_LOC="`echo $GUI_LIB_LOC|sed 's%-L%%g'`"
9029 { echo "$as_me:$LINENO: checking for location of Motif GUI libs" >&5
9030 echo $ECHO_N "checking for location of Motif GUI libs... $ECHO_C" >&6; }
9031 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"
9032 GUI_LIB_LOC=
9033 for try in $gui_libs; do
9034 for libtry in "$try"/libXm.a "$try"/libXm.so* "$try"/libXm.sl "$try"/libXm.dylib; do
9035 if test -f "$libtry"; then
9036 GUI_LIB_LOC=$try
9038 done
9039 done
9040 if test -n "$GUI_LIB_LOC"; then
9041 if test "$GUI_LIB_LOC" = /usr/lib; then
9042 GUI_LIB_LOC=
9043 { echo "$as_me:$LINENO: result: in default path" >&5
9044 echo "${ECHO_T}in default path" >&6; }
9045 else
9046 if test -n "$GUI_LIB_LOC"; then
9047 { echo "$as_me:$LINENO: result: $GUI_LIB_LOC" >&5
9048 echo "${ECHO_T}$GUI_LIB_LOC" >&6; }
9049 if test "`(uname) 2>/dev/null`" = SunOS &&
9050 uname -r | grep '^5' >/dev/null; then
9051 GUI_LIB_LOC="$GUI_LIB_LOC -R $GUI_LIB_LOC"
9055 MOTIF_LIBNAME=-lXm
9056 else
9057 { echo "$as_me:$LINENO: result: <not found>" >&5
9058 echo "${ECHO_T}<not found>" >&6; }
9059 SKIP_MOTIF=YES
9064 if test -z "$SKIP_MOTIF"; then
9065 SKIP_ATHENA=YES
9066 SKIP_NEXTAW=YES
9067 GUITYPE=MOTIF
9072 GUI_X_LIBS=
9074 if test -z "$SKIP_ATHENA"; then
9075 { echo "$as_me:$LINENO: checking if Athena header files can be found" >&5
9076 echo $ECHO_N "checking if Athena header files can be found... $ECHO_C" >&6; }
9077 cflags_save=$CFLAGS
9078 CFLAGS="$CFLAGS $X_CFLAGS"
9079 cat >conftest.$ac_ext <<_ACEOF
9080 /* confdefs.h. */
9081 _ACEOF
9082 cat confdefs.h >>conftest.$ac_ext
9083 cat >>conftest.$ac_ext <<_ACEOF
9084 /* end confdefs.h. */
9086 #include <X11/Intrinsic.h>
9087 #include <X11/Xaw/Paned.h>
9089 main ()
9093 return 0;
9095 _ACEOF
9096 rm -f conftest.$ac_objext
9097 if { (ac_try="$ac_compile"
9098 case "(($ac_try" in
9099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9100 *) ac_try_echo=$ac_try;;
9101 esac
9102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9103 (eval "$ac_compile") 2>conftest.er1
9104 ac_status=$?
9105 grep -v '^ *+' conftest.er1 >conftest.err
9106 rm -f conftest.er1
9107 cat conftest.err >&5
9108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9109 (exit $ac_status); } && {
9110 test -z "$ac_c_werror_flag" ||
9111 test ! -s conftest.err
9112 } && test -s conftest.$ac_objext; then
9113 { echo "$as_me:$LINENO: result: yes" >&5
9114 echo "${ECHO_T}yes" >&6; }
9115 else
9116 echo "$as_me: failed program was:" >&5
9117 sed 's/^/| /' conftest.$ac_ext >&5
9119 { echo "$as_me:$LINENO: result: no" >&5
9120 echo "${ECHO_T}no" >&6; }; SKIP_ATHENA=YES
9123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9124 CFLAGS=$cflags_save
9127 if test -z "$SKIP_ATHENA"; then
9128 GUITYPE=ATHENA
9131 if test -z "$SKIP_NEXTAW"; then
9132 { echo "$as_me:$LINENO: checking if neXtaw header files can be found" >&5
9133 echo $ECHO_N "checking if neXtaw header files can be found... $ECHO_C" >&6; }
9134 cflags_save=$CFLAGS
9135 CFLAGS="$CFLAGS $X_CFLAGS"
9136 cat >conftest.$ac_ext <<_ACEOF
9137 /* confdefs.h. */
9138 _ACEOF
9139 cat confdefs.h >>conftest.$ac_ext
9140 cat >>conftest.$ac_ext <<_ACEOF
9141 /* end confdefs.h. */
9143 #include <X11/Intrinsic.h>
9144 #include <X11/neXtaw/Paned.h>
9146 main ()
9150 return 0;
9152 _ACEOF
9153 rm -f conftest.$ac_objext
9154 if { (ac_try="$ac_compile"
9155 case "(($ac_try" in
9156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9157 *) ac_try_echo=$ac_try;;
9158 esac
9159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9160 (eval "$ac_compile") 2>conftest.er1
9161 ac_status=$?
9162 grep -v '^ *+' conftest.er1 >conftest.err
9163 rm -f conftest.er1
9164 cat conftest.err >&5
9165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9166 (exit $ac_status); } && {
9167 test -z "$ac_c_werror_flag" ||
9168 test ! -s conftest.err
9169 } && test -s conftest.$ac_objext; then
9170 { echo "$as_me:$LINENO: result: yes" >&5
9171 echo "${ECHO_T}yes" >&6; }
9172 else
9173 echo "$as_me: failed program was:" >&5
9174 sed 's/^/| /' conftest.$ac_ext >&5
9176 { echo "$as_me:$LINENO: result: no" >&5
9177 echo "${ECHO_T}no" >&6; }; SKIP_NEXTAW=YES
9180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9181 CFLAGS=$cflags_save
9184 if test -z "$SKIP_NEXTAW"; then
9185 GUITYPE=NEXTAW
9188 if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
9189 if test -n "$GUI_INC_LOC"; then
9190 GUI_INC_LOC=-I"`echo $GUI_INC_LOC|sed 's%-I%%'`"
9192 if test -n "$GUI_LIB_LOC"; then
9193 GUI_LIB_LOC=-L"`echo $GUI_LIB_LOC|sed 's%-L%%'`"
9196 ldflags_save=$LDFLAGS
9197 LDFLAGS="$X_LIBS $LDFLAGS"
9198 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
9199 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
9200 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
9201 echo $ECHO_N "(cached) $ECHO_C" >&6
9202 else
9203 ac_check_lib_save_LIBS=$LIBS
9204 LIBS="-lXext -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9205 cat >conftest.$ac_ext <<_ACEOF
9206 /* confdefs.h. */
9207 _ACEOF
9208 cat confdefs.h >>conftest.$ac_ext
9209 cat >>conftest.$ac_ext <<_ACEOF
9210 /* end confdefs.h. */
9212 /* Override any GCC internal prototype to avoid an error.
9213 Use char because int might match the return type of a GCC
9214 builtin and then its argument prototype would still apply. */
9215 #ifdef __cplusplus
9216 extern "C"
9217 #endif
9218 char XShapeQueryExtension ();
9220 main ()
9222 return XShapeQueryExtension ();
9224 return 0;
9226 _ACEOF
9227 rm -f conftest.$ac_objext conftest$ac_exeext
9228 if { (ac_try="$ac_link"
9229 case "(($ac_try" in
9230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9231 *) ac_try_echo=$ac_try;;
9232 esac
9233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9234 (eval "$ac_link") 2>conftest.er1
9235 ac_status=$?
9236 grep -v '^ *+' conftest.er1 >conftest.err
9237 rm -f conftest.er1
9238 cat conftest.err >&5
9239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9240 (exit $ac_status); } && {
9241 test -z "$ac_c_werror_flag" ||
9242 test ! -s conftest.err
9243 } && test -s conftest$ac_exeext &&
9244 $as_test_x conftest$ac_exeext; then
9245 ac_cv_lib_Xext_XShapeQueryExtension=yes
9246 else
9247 echo "$as_me: failed program was:" >&5
9248 sed 's/^/| /' conftest.$ac_ext >&5
9250 ac_cv_lib_Xext_XShapeQueryExtension=no
9253 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9254 conftest$ac_exeext conftest.$ac_ext
9255 LIBS=$ac_check_lib_save_LIBS
9257 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
9258 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
9259 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
9260 GUI_X_LIBS="-lXext"
9263 { echo "$as_me:$LINENO: checking for wslen in -lw" >&5
9264 echo $ECHO_N "checking for wslen in -lw... $ECHO_C" >&6; }
9265 if test "${ac_cv_lib_w_wslen+set}" = set; then
9266 echo $ECHO_N "(cached) $ECHO_C" >&6
9267 else
9268 ac_check_lib_save_LIBS=$LIBS
9269 LIBS="-lw $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9270 cat >conftest.$ac_ext <<_ACEOF
9271 /* confdefs.h. */
9272 _ACEOF
9273 cat confdefs.h >>conftest.$ac_ext
9274 cat >>conftest.$ac_ext <<_ACEOF
9275 /* end confdefs.h. */
9277 /* Override any GCC internal prototype to avoid an error.
9278 Use char because int might match the return type of a GCC
9279 builtin and then its argument prototype would still apply. */
9280 #ifdef __cplusplus
9281 extern "C"
9282 #endif
9283 char wslen ();
9285 main ()
9287 return wslen ();
9289 return 0;
9291 _ACEOF
9292 rm -f conftest.$ac_objext conftest$ac_exeext
9293 if { (ac_try="$ac_link"
9294 case "(($ac_try" in
9295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9296 *) ac_try_echo=$ac_try;;
9297 esac
9298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9299 (eval "$ac_link") 2>conftest.er1
9300 ac_status=$?
9301 grep -v '^ *+' conftest.er1 >conftest.err
9302 rm -f conftest.er1
9303 cat conftest.err >&5
9304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9305 (exit $ac_status); } && {
9306 test -z "$ac_c_werror_flag" ||
9307 test ! -s conftest.err
9308 } && test -s conftest$ac_exeext &&
9309 $as_test_x conftest$ac_exeext; then
9310 ac_cv_lib_w_wslen=yes
9311 else
9312 echo "$as_me: failed program was:" >&5
9313 sed 's/^/| /' conftest.$ac_ext >&5
9315 ac_cv_lib_w_wslen=no
9318 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9319 conftest$ac_exeext conftest.$ac_ext
9320 LIBS=$ac_check_lib_save_LIBS
9322 { echo "$as_me:$LINENO: result: $ac_cv_lib_w_wslen" >&5
9323 echo "${ECHO_T}$ac_cv_lib_w_wslen" >&6; }
9324 if test $ac_cv_lib_w_wslen = yes; then
9325 X_EXTRA_LIBS="$X_EXTRA_LIBS -lw"
9328 { echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5
9329 echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6; }
9330 if test "${ac_cv_lib_dl_dlsym+set}" = set; then
9331 echo $ECHO_N "(cached) $ECHO_C" >&6
9332 else
9333 ac_check_lib_save_LIBS=$LIBS
9334 LIBS="-ldl $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9335 cat >conftest.$ac_ext <<_ACEOF
9336 /* confdefs.h. */
9337 _ACEOF
9338 cat confdefs.h >>conftest.$ac_ext
9339 cat >>conftest.$ac_ext <<_ACEOF
9340 /* end confdefs.h. */
9342 /* Override any GCC internal prototype to avoid an error.
9343 Use char because int might match the return type of a GCC
9344 builtin and then its argument prototype would still apply. */
9345 #ifdef __cplusplus
9346 extern "C"
9347 #endif
9348 char dlsym ();
9350 main ()
9352 return dlsym ();
9354 return 0;
9356 _ACEOF
9357 rm -f conftest.$ac_objext conftest$ac_exeext
9358 if { (ac_try="$ac_link"
9359 case "(($ac_try" in
9360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9361 *) ac_try_echo=$ac_try;;
9362 esac
9363 eval "echo \"\$as_me:$LINENO: $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 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 $as_test_x conftest$ac_exeext; then
9375 ac_cv_lib_dl_dlsym=yes
9376 else
9377 echo "$as_me: failed program was:" >&5
9378 sed 's/^/| /' conftest.$ac_ext >&5
9380 ac_cv_lib_dl_dlsym=no
9383 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9384 conftest$ac_exeext conftest.$ac_ext
9385 LIBS=$ac_check_lib_save_LIBS
9387 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5
9388 echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6; }
9389 if test $ac_cv_lib_dl_dlsym = yes; then
9390 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldl"
9393 { echo "$as_me:$LINENO: checking for XmuCreateStippledPixmap in -lXmu" >&5
9394 echo $ECHO_N "checking for XmuCreateStippledPixmap in -lXmu... $ECHO_C" >&6; }
9395 if test "${ac_cv_lib_Xmu_XmuCreateStippledPixmap+set}" = set; then
9396 echo $ECHO_N "(cached) $ECHO_C" >&6
9397 else
9398 ac_check_lib_save_LIBS=$LIBS
9399 LIBS="-lXmu $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9400 cat >conftest.$ac_ext <<_ACEOF
9401 /* confdefs.h. */
9402 _ACEOF
9403 cat confdefs.h >>conftest.$ac_ext
9404 cat >>conftest.$ac_ext <<_ACEOF
9405 /* end confdefs.h. */
9407 /* Override any GCC internal prototype to avoid an error.
9408 Use char because int might match the return type of a GCC
9409 builtin and then its argument prototype would still apply. */
9410 #ifdef __cplusplus
9411 extern "C"
9412 #endif
9413 char XmuCreateStippledPixmap ();
9415 main ()
9417 return XmuCreateStippledPixmap ();
9419 return 0;
9421 _ACEOF
9422 rm -f conftest.$ac_objext conftest$ac_exeext
9423 if { (ac_try="$ac_link"
9424 case "(($ac_try" in
9425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9426 *) ac_try_echo=$ac_try;;
9427 esac
9428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9429 (eval "$ac_link") 2>conftest.er1
9430 ac_status=$?
9431 grep -v '^ *+' conftest.er1 >conftest.err
9432 rm -f conftest.er1
9433 cat conftest.err >&5
9434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9435 (exit $ac_status); } && {
9436 test -z "$ac_c_werror_flag" ||
9437 test ! -s conftest.err
9438 } && test -s conftest$ac_exeext &&
9439 $as_test_x conftest$ac_exeext; then
9440 ac_cv_lib_Xmu_XmuCreateStippledPixmap=yes
9441 else
9442 echo "$as_me: failed program was:" >&5
9443 sed 's/^/| /' conftest.$ac_ext >&5
9445 ac_cv_lib_Xmu_XmuCreateStippledPixmap=no
9448 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9449 conftest$ac_exeext conftest.$ac_ext
9450 LIBS=$ac_check_lib_save_LIBS
9452 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&5
9453 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&6; }
9454 if test $ac_cv_lib_Xmu_XmuCreateStippledPixmap = yes; then
9455 GUI_X_LIBS="-lXmu $GUI_X_LIBS"
9458 if test -z "$SKIP_MOTIF"; then
9459 { echo "$as_me:$LINENO: checking for XpEndJob in -lXp" >&5
9460 echo $ECHO_N "checking for XpEndJob in -lXp... $ECHO_C" >&6; }
9461 if test "${ac_cv_lib_Xp_XpEndJob+set}" = set; then
9462 echo $ECHO_N "(cached) $ECHO_C" >&6
9463 else
9464 ac_check_lib_save_LIBS=$LIBS
9465 LIBS="-lXp $GUI_X_LIBS -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9466 cat >conftest.$ac_ext <<_ACEOF
9467 /* confdefs.h. */
9468 _ACEOF
9469 cat confdefs.h >>conftest.$ac_ext
9470 cat >>conftest.$ac_ext <<_ACEOF
9471 /* end confdefs.h. */
9473 /* Override any GCC internal prototype to avoid an error.
9474 Use char because int might match the return type of a GCC
9475 builtin and then its argument prototype would still apply. */
9476 #ifdef __cplusplus
9477 extern "C"
9478 #endif
9479 char XpEndJob ();
9481 main ()
9483 return XpEndJob ();
9485 return 0;
9487 _ACEOF
9488 rm -f conftest.$ac_objext conftest$ac_exeext
9489 if { (ac_try="$ac_link"
9490 case "(($ac_try" in
9491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9492 *) ac_try_echo=$ac_try;;
9493 esac
9494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9495 (eval "$ac_link") 2>conftest.er1
9496 ac_status=$?
9497 grep -v '^ *+' conftest.er1 >conftest.err
9498 rm -f conftest.er1
9499 cat conftest.err >&5
9500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9501 (exit $ac_status); } && {
9502 test -z "$ac_c_werror_flag" ||
9503 test ! -s conftest.err
9504 } && test -s conftest$ac_exeext &&
9505 $as_test_x conftest$ac_exeext; then
9506 ac_cv_lib_Xp_XpEndJob=yes
9507 else
9508 echo "$as_me: failed program was:" >&5
9509 sed 's/^/| /' conftest.$ac_ext >&5
9511 ac_cv_lib_Xp_XpEndJob=no
9514 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9515 conftest$ac_exeext conftest.$ac_ext
9516 LIBS=$ac_check_lib_save_LIBS
9518 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpEndJob" >&5
9519 echo "${ECHO_T}$ac_cv_lib_Xp_XpEndJob" >&6; }
9520 if test $ac_cv_lib_Xp_XpEndJob = yes; then
9521 GUI_X_LIBS="-lXp $GUI_X_LIBS"
9525 LDFLAGS=$ldflags_save
9527 { echo "$as_me:$LINENO: checking for extra X11 defines" >&5
9528 echo $ECHO_N "checking for extra X11 defines... $ECHO_C" >&6; }
9529 NARROW_PROTO=
9530 rm -fr conftestdir
9531 if mkdir conftestdir; then
9532 cd conftestdir
9533 cat > Imakefile <<'EOF'
9534 acfindx:
9535 @echo 'NARROW_PROTO="${PROTO_DEFINES}"'
9537 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
9538 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9540 cd ..
9541 rm -fr conftestdir
9543 if test -z "$NARROW_PROTO"; then
9544 { echo "$as_me:$LINENO: result: no" >&5
9545 echo "${ECHO_T}no" >&6; }
9546 else
9547 { echo "$as_me:$LINENO: result: $NARROW_PROTO" >&5
9548 echo "${ECHO_T}$NARROW_PROTO" >&6; }
9553 if test "$enable_xsmp" = "yes"; then
9554 cppflags_save=$CPPFLAGS
9555 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9557 for ac_header in X11/SM/SMlib.h
9559 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9560 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9561 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9562 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9563 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9564 echo $ECHO_N "(cached) $ECHO_C" >&6
9566 ac_res=`eval echo '${'$as_ac_Header'}'`
9567 { echo "$as_me:$LINENO: result: $ac_res" >&5
9568 echo "${ECHO_T}$ac_res" >&6; }
9569 else
9570 # Is the header compilable?
9571 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9572 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9573 cat >conftest.$ac_ext <<_ACEOF
9574 /* confdefs.h. */
9575 _ACEOF
9576 cat confdefs.h >>conftest.$ac_ext
9577 cat >>conftest.$ac_ext <<_ACEOF
9578 /* end confdefs.h. */
9579 $ac_includes_default
9580 #include <$ac_header>
9581 _ACEOF
9582 rm -f conftest.$ac_objext
9583 if { (ac_try="$ac_compile"
9584 case "(($ac_try" in
9585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9586 *) ac_try_echo=$ac_try;;
9587 esac
9588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9589 (eval "$ac_compile") 2>conftest.er1
9590 ac_status=$?
9591 grep -v '^ *+' conftest.er1 >conftest.err
9592 rm -f conftest.er1
9593 cat conftest.err >&5
9594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9595 (exit $ac_status); } && {
9596 test -z "$ac_c_werror_flag" ||
9597 test ! -s conftest.err
9598 } && test -s conftest.$ac_objext; then
9599 ac_header_compiler=yes
9600 else
9601 echo "$as_me: failed program was:" >&5
9602 sed 's/^/| /' conftest.$ac_ext >&5
9604 ac_header_compiler=no
9607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9608 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9609 echo "${ECHO_T}$ac_header_compiler" >&6; }
9611 # Is the header present?
9612 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9613 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9614 cat >conftest.$ac_ext <<_ACEOF
9615 /* confdefs.h. */
9616 _ACEOF
9617 cat confdefs.h >>conftest.$ac_ext
9618 cat >>conftest.$ac_ext <<_ACEOF
9619 /* end confdefs.h. */
9620 #include <$ac_header>
9621 _ACEOF
9622 if { (ac_try="$ac_cpp conftest.$ac_ext"
9623 case "(($ac_try" in
9624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9625 *) ac_try_echo=$ac_try;;
9626 esac
9627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9628 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9629 ac_status=$?
9630 grep -v '^ *+' conftest.er1 >conftest.err
9631 rm -f conftest.er1
9632 cat conftest.err >&5
9633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9634 (exit $ac_status); } >/dev/null && {
9635 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9636 test ! -s conftest.err
9637 }; then
9638 ac_header_preproc=yes
9639 else
9640 echo "$as_me: failed program was:" >&5
9641 sed 's/^/| /' conftest.$ac_ext >&5
9643 ac_header_preproc=no
9646 rm -f conftest.err conftest.$ac_ext
9647 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9648 echo "${ECHO_T}$ac_header_preproc" >&6; }
9650 # So? What about this header?
9651 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9652 yes:no: )
9653 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9654 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9655 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9656 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9657 ac_header_preproc=yes
9659 no:yes:* )
9660 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9661 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9662 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9663 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9664 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9665 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9666 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9667 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9668 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9669 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9670 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9671 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9674 esac
9675 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9676 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9677 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9678 echo $ECHO_N "(cached) $ECHO_C" >&6
9679 else
9680 eval "$as_ac_Header=\$ac_header_preproc"
9682 ac_res=`eval echo '${'$as_ac_Header'}'`
9683 { echo "$as_me:$LINENO: result: $ac_res" >&5
9684 echo "${ECHO_T}$ac_res" >&6; }
9687 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9688 cat >>confdefs.h <<_ACEOF
9689 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9690 _ACEOF
9694 done
9696 CPPFLAGS=$cppflags_save
9700 if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF" -o -z "$SKIP_GTK"; then
9701 cppflags_save=$CPPFLAGS
9702 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9705 for ac_header in X11/xpm.h X11/Sunkeysym.h
9707 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9708 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9709 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9710 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9711 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9712 echo $ECHO_N "(cached) $ECHO_C" >&6
9714 ac_res=`eval echo '${'$as_ac_Header'}'`
9715 { echo "$as_me:$LINENO: result: $ac_res" >&5
9716 echo "${ECHO_T}$ac_res" >&6; }
9717 else
9718 # Is the header compilable?
9719 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9720 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9721 cat >conftest.$ac_ext <<_ACEOF
9722 /* confdefs.h. */
9723 _ACEOF
9724 cat confdefs.h >>conftest.$ac_ext
9725 cat >>conftest.$ac_ext <<_ACEOF
9726 /* end confdefs.h. */
9727 $ac_includes_default
9728 #include <$ac_header>
9729 _ACEOF
9730 rm -f conftest.$ac_objext
9731 if { (ac_try="$ac_compile"
9732 case "(($ac_try" in
9733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9734 *) ac_try_echo=$ac_try;;
9735 esac
9736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9737 (eval "$ac_compile") 2>conftest.er1
9738 ac_status=$?
9739 grep -v '^ *+' conftest.er1 >conftest.err
9740 rm -f conftest.er1
9741 cat conftest.err >&5
9742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9743 (exit $ac_status); } && {
9744 test -z "$ac_c_werror_flag" ||
9745 test ! -s conftest.err
9746 } && test -s conftest.$ac_objext; then
9747 ac_header_compiler=yes
9748 else
9749 echo "$as_me: failed program was:" >&5
9750 sed 's/^/| /' conftest.$ac_ext >&5
9752 ac_header_compiler=no
9755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9756 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9757 echo "${ECHO_T}$ac_header_compiler" >&6; }
9759 # Is the header present?
9760 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9761 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9762 cat >conftest.$ac_ext <<_ACEOF
9763 /* confdefs.h. */
9764 _ACEOF
9765 cat confdefs.h >>conftest.$ac_ext
9766 cat >>conftest.$ac_ext <<_ACEOF
9767 /* end confdefs.h. */
9768 #include <$ac_header>
9769 _ACEOF
9770 if { (ac_try="$ac_cpp conftest.$ac_ext"
9771 case "(($ac_try" in
9772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9773 *) ac_try_echo=$ac_try;;
9774 esac
9775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9776 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9777 ac_status=$?
9778 grep -v '^ *+' conftest.er1 >conftest.err
9779 rm -f conftest.er1
9780 cat conftest.err >&5
9781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9782 (exit $ac_status); } >/dev/null && {
9783 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9784 test ! -s conftest.err
9785 }; then
9786 ac_header_preproc=yes
9787 else
9788 echo "$as_me: failed program was:" >&5
9789 sed 's/^/| /' conftest.$ac_ext >&5
9791 ac_header_preproc=no
9794 rm -f conftest.err conftest.$ac_ext
9795 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9796 echo "${ECHO_T}$ac_header_preproc" >&6; }
9798 # So? What about this header?
9799 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9800 yes:no: )
9801 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9802 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9803 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9804 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9805 ac_header_preproc=yes
9807 no:yes:* )
9808 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9809 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9810 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9811 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9812 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9813 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9814 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9815 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9816 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9817 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9818 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9819 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9822 esac
9823 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9824 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9825 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9826 echo $ECHO_N "(cached) $ECHO_C" >&6
9827 else
9828 eval "$as_ac_Header=\$ac_header_preproc"
9830 ac_res=`eval echo '${'$as_ac_Header'}'`
9831 { echo "$as_me:$LINENO: result: $ac_res" >&5
9832 echo "${ECHO_T}$ac_res" >&6; }
9835 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9836 cat >>confdefs.h <<_ACEOF
9837 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9838 _ACEOF
9842 done
9845 if test ! "$enable_xim" = "no"; then
9846 { echo "$as_me:$LINENO: checking for XIMText in X11/Xlib.h" >&5
9847 echo $ECHO_N "checking for XIMText in X11/Xlib.h... $ECHO_C" >&6; }
9848 cat >conftest.$ac_ext <<_ACEOF
9849 /* confdefs.h. */
9850 _ACEOF
9851 cat confdefs.h >>conftest.$ac_ext
9852 cat >>conftest.$ac_ext <<_ACEOF
9853 /* end confdefs.h. */
9854 #include <X11/Xlib.h>
9855 _ACEOF
9856 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9857 $EGREP "XIMText" >/dev/null 2>&1; then
9858 { echo "$as_me:$LINENO: result: yes" >&5
9859 echo "${ECHO_T}yes" >&6; }
9860 else
9861 { echo "$as_me:$LINENO: result: no; xim has been disabled" >&5
9862 echo "${ECHO_T}no; xim has been disabled" >&6; }; enable_xim = "no"
9864 rm -f conftest*
9867 CPPFLAGS=$cppflags_save
9869 if test "$enable_xim" = "auto" -a "$enable_hangulinput" != "yes" \
9870 -a "x$GUITYPE" != "xNONE" ; then
9871 { echo "$as_me:$LINENO: result: X GUI selected; xim has been enabled" >&5
9872 echo "${ECHO_T}X GUI selected; xim has been enabled" >&6; }
9873 enable_xim="yes"
9877 if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
9878 cppflags_save=$CPPFLAGS
9879 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9880 { echo "$as_me:$LINENO: checking for X11/Xmu/Editres.h" >&5
9881 echo $ECHO_N "checking for X11/Xmu/Editres.h... $ECHO_C" >&6; }
9882 cat >conftest.$ac_ext <<_ACEOF
9883 /* confdefs.h. */
9884 _ACEOF
9885 cat confdefs.h >>conftest.$ac_ext
9886 cat >>conftest.$ac_ext <<_ACEOF
9887 /* end confdefs.h. */
9889 #include <X11/Intrinsic.h>
9890 #include <X11/Xmu/Editres.h>
9892 main ()
9894 int i; i = 0;
9896 return 0;
9898 _ACEOF
9899 rm -f conftest.$ac_objext
9900 if { (ac_try="$ac_compile"
9901 case "(($ac_try" in
9902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9903 *) ac_try_echo=$ac_try;;
9904 esac
9905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9906 (eval "$ac_compile") 2>conftest.er1
9907 ac_status=$?
9908 grep -v '^ *+' conftest.er1 >conftest.err
9909 rm -f conftest.er1
9910 cat conftest.err >&5
9911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9912 (exit $ac_status); } && {
9913 test -z "$ac_c_werror_flag" ||
9914 test ! -s conftest.err
9915 } && test -s conftest.$ac_objext; then
9916 { echo "$as_me:$LINENO: result: yes" >&5
9917 echo "${ECHO_T}yes" >&6; }
9918 cat >>confdefs.h <<\_ACEOF
9919 #define HAVE_X11_XMU_EDITRES_H 1
9920 _ACEOF
9922 else
9923 echo "$as_me: failed program was:" >&5
9924 sed 's/^/| /' conftest.$ac_ext >&5
9926 { echo "$as_me:$LINENO: result: no" >&5
9927 echo "${ECHO_T}no" >&6; }
9930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9931 CPPFLAGS=$cppflags_save
9934 if test -z "$SKIP_MOTIF"; then
9935 cppflags_save=$CPPFLAGS
9936 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9944 for ac_header in Xm/Xm.h Xm/XpmP.h Xm/JoinSideT.h Xm/TraitP.h Xm/Manager.h \
9945 Xm/UnhighlightT.h Xm/Notebook.h
9947 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9948 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9949 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9950 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9951 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9952 echo $ECHO_N "(cached) $ECHO_C" >&6
9954 ac_res=`eval echo '${'$as_ac_Header'}'`
9955 { echo "$as_me:$LINENO: result: $ac_res" >&5
9956 echo "${ECHO_T}$ac_res" >&6; }
9957 else
9958 # Is the header compilable?
9959 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9960 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9961 cat >conftest.$ac_ext <<_ACEOF
9962 /* confdefs.h. */
9963 _ACEOF
9964 cat confdefs.h >>conftest.$ac_ext
9965 cat >>conftest.$ac_ext <<_ACEOF
9966 /* end confdefs.h. */
9967 $ac_includes_default
9968 #include <$ac_header>
9969 _ACEOF
9970 rm -f conftest.$ac_objext
9971 if { (ac_try="$ac_compile"
9972 case "(($ac_try" in
9973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9974 *) ac_try_echo=$ac_try;;
9975 esac
9976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9977 (eval "$ac_compile") 2>conftest.er1
9978 ac_status=$?
9979 grep -v '^ *+' conftest.er1 >conftest.err
9980 rm -f conftest.er1
9981 cat conftest.err >&5
9982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9983 (exit $ac_status); } && {
9984 test -z "$ac_c_werror_flag" ||
9985 test ! -s conftest.err
9986 } && test -s conftest.$ac_objext; then
9987 ac_header_compiler=yes
9988 else
9989 echo "$as_me: failed program was:" >&5
9990 sed 's/^/| /' conftest.$ac_ext >&5
9992 ac_header_compiler=no
9995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9996 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9997 echo "${ECHO_T}$ac_header_compiler" >&6; }
9999 # Is the header present?
10000 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10001 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10002 cat >conftest.$ac_ext <<_ACEOF
10003 /* confdefs.h. */
10004 _ACEOF
10005 cat confdefs.h >>conftest.$ac_ext
10006 cat >>conftest.$ac_ext <<_ACEOF
10007 /* end confdefs.h. */
10008 #include <$ac_header>
10009 _ACEOF
10010 if { (ac_try="$ac_cpp conftest.$ac_ext"
10011 case "(($ac_try" in
10012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10013 *) ac_try_echo=$ac_try;;
10014 esac
10015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10016 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10017 ac_status=$?
10018 grep -v '^ *+' conftest.er1 >conftest.err
10019 rm -f conftest.er1
10020 cat conftest.err >&5
10021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10022 (exit $ac_status); } >/dev/null && {
10023 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10024 test ! -s conftest.err
10025 }; then
10026 ac_header_preproc=yes
10027 else
10028 echo "$as_me: failed program was:" >&5
10029 sed 's/^/| /' conftest.$ac_ext >&5
10031 ac_header_preproc=no
10034 rm -f conftest.err conftest.$ac_ext
10035 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10036 echo "${ECHO_T}$ac_header_preproc" >&6; }
10038 # So? What about this header?
10039 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10040 yes:no: )
10041 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10042 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10043 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10044 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10045 ac_header_preproc=yes
10047 no:yes:* )
10048 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10049 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10050 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10051 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10052 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10053 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10054 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10055 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10056 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10057 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10058 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10059 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10062 esac
10063 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10064 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10065 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10066 echo $ECHO_N "(cached) $ECHO_C" >&6
10067 else
10068 eval "$as_ac_Header=\$ac_header_preproc"
10070 ac_res=`eval echo '${'$as_ac_Header'}'`
10071 { echo "$as_me:$LINENO: result: $ac_res" >&5
10072 echo "${ECHO_T}$ac_res" >&6; }
10075 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10076 cat >>confdefs.h <<_ACEOF
10077 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10078 _ACEOF
10082 done
10085 if test $ac_cv_header_Xm_XpmP_h = yes; then
10086 { echo "$as_me:$LINENO: checking for XpmAttributes_21 in Xm/XpmP.h" >&5
10087 echo $ECHO_N "checking for XpmAttributes_21 in Xm/XpmP.h... $ECHO_C" >&6; }
10088 cat >conftest.$ac_ext <<_ACEOF
10089 /* confdefs.h. */
10090 _ACEOF
10091 cat confdefs.h >>conftest.$ac_ext
10092 cat >>conftest.$ac_ext <<_ACEOF
10093 /* end confdefs.h. */
10094 #include <Xm/XpmP.h>
10096 main ()
10098 XpmAttributes_21 attr;
10100 return 0;
10102 _ACEOF
10103 rm -f conftest.$ac_objext
10104 if { (ac_try="$ac_compile"
10105 case "(($ac_try" in
10106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10107 *) ac_try_echo=$ac_try;;
10108 esac
10109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10110 (eval "$ac_compile") 2>conftest.er1
10111 ac_status=$?
10112 grep -v '^ *+' conftest.er1 >conftest.err
10113 rm -f conftest.er1
10114 cat conftest.err >&5
10115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10116 (exit $ac_status); } && {
10117 test -z "$ac_c_werror_flag" ||
10118 test ! -s conftest.err
10119 } && test -s conftest.$ac_objext; then
10120 { echo "$as_me:$LINENO: result: yes" >&5
10121 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
10122 #define XPMATTRIBUTES_TYPE XpmAttributes_21
10123 _ACEOF
10125 else
10126 echo "$as_me: failed program was:" >&5
10127 sed 's/^/| /' conftest.$ac_ext >&5
10129 { echo "$as_me:$LINENO: result: no" >&5
10130 echo "${ECHO_T}no" >&6; }; cat >>confdefs.h <<\_ACEOF
10131 #define XPMATTRIBUTES_TYPE XpmAttributes
10132 _ACEOF
10137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10138 else
10139 cat >>confdefs.h <<\_ACEOF
10140 #define XPMATTRIBUTES_TYPE XpmAttributes
10141 _ACEOF
10144 CPPFLAGS=$cppflags_save
10147 if test "x$GUITYPE" = "xNONE" -a "$enable_xim" = "yes"; then
10148 { echo "$as_me:$LINENO: result: no GUI selected; xim has been disabled" >&5
10149 echo "${ECHO_T}no GUI selected; xim has been disabled" >&6; }
10150 enable_xim="no"
10152 if test "x$GUITYPE" = "xNONE" -a "$enable_fontset" = "yes"; then
10153 { echo "$as_me:$LINENO: result: no GUI selected; fontset has been disabled" >&5
10154 echo "${ECHO_T}no GUI selected; fontset has been disabled" >&6; }
10155 enable_fontset="no"
10157 if test "x$GUITYPE:$enable_fontset" = "xGTK:yes" -a "0$gtk_major_version" -ge 2; then
10158 { echo "$as_me:$LINENO: result: GTK+ 2 GUI selected; fontset has been disabled" >&5
10159 echo "${ECHO_T}GTK+ 2 GUI selected; fontset has been disabled" >&6; }
10160 enable_fontset="no"
10163 if test -z "$SKIP_PHOTON"; then
10164 GUITYPE=PHOTONGUI
10172 if test "$enable_workshop" = "yes" -a -n "$SKIP_MOTIF"; then
10173 { { echo "$as_me:$LINENO: error: cannot use workshop without Motif" >&5
10174 echo "$as_me: error: cannot use workshop without Motif" >&2;}
10175 { (exit 1); exit 1; }; }
10178 if test "$enable_xim" = "yes"; then
10179 cat >>confdefs.h <<\_ACEOF
10180 #define FEAT_XIM 1
10181 _ACEOF
10184 if test "$enable_fontset" = "yes"; then
10185 cat >>confdefs.h <<\_ACEOF
10186 #define FEAT_XFONTSET 1
10187 _ACEOF
10194 if test "$enable_hangulinput" = "yes"; then
10195 if test "x$GUITYPE" = "xNONE"; then
10196 { echo "$as_me:$LINENO: result: no GUI selected; hangul input has been disabled" >&5
10197 echo "${ECHO_T}no GUI selected; hangul input has been disabled" >&6; }
10198 enable_hangulinput=no
10199 else
10200 cat >>confdefs.h <<\_ACEOF
10201 #define FEAT_HANGULIN 1
10202 _ACEOF
10204 HANGULIN_SRC=hangulin.c
10206 HANGULIN_OBJ=objects/hangulin.o
10212 { echo "$as_me:$LINENO: checking whether toupper is broken" >&5
10213 echo $ECHO_N "checking whether toupper is broken... $ECHO_C" >&6; }
10214 if test "${vim_cv_toupper_broken+set}" = set; then
10215 echo $ECHO_N "(cached) $ECHO_C" >&6
10216 else
10218 if test "$cross_compiling" = yes; then
10220 { { echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_toupper_broken'" >&5
10221 echo "$as_me: error: cross-compiling: please set 'vim_cv_toupper_broken'" >&2;}
10222 { (exit 1); exit 1; }; }
10224 else
10225 cat >conftest.$ac_ext <<_ACEOF
10227 #include "confdefs.h"
10228 #include <ctype.h>
10229 #if STDC_HEADERS
10230 # include <stdlib.h>
10231 # include <stddef.h>
10232 #endif
10233 main() { exit(toupper('A') == 'A' && tolower('z') == 'z'); }
10235 _ACEOF
10236 rm -f conftest$ac_exeext
10237 if { (ac_try="$ac_link"
10238 case "(($ac_try" in
10239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10240 *) ac_try_echo=$ac_try;;
10241 esac
10242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10243 (eval "$ac_link") 2>&5
10244 ac_status=$?
10245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10246 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10247 { (case "(($ac_try" in
10248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10249 *) ac_try_echo=$ac_try;;
10250 esac
10251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10252 (eval "$ac_try") 2>&5
10253 ac_status=$?
10254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10255 (exit $ac_status); }; }; then
10257 vim_cv_toupper_broken=yes
10259 else
10260 echo "$as_me: program exited with status $ac_status" >&5
10261 echo "$as_me: failed program was:" >&5
10262 sed 's/^/| /' conftest.$ac_ext >&5
10264 ( exit $ac_status )
10266 vim_cv_toupper_broken=no
10269 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10274 { echo "$as_me:$LINENO: result: $vim_cv_toupper_broken" >&5
10275 echo "${ECHO_T}$vim_cv_toupper_broken" >&6; }
10277 if test "x$vim_cv_toupper_broken" = "xyes" ; then
10278 cat >>confdefs.h <<\_ACEOF
10279 #define BROKEN_TOUPPER 1
10280 _ACEOF
10284 { echo "$as_me:$LINENO: checking whether __DATE__ and __TIME__ work" >&5
10285 echo $ECHO_N "checking whether __DATE__ and __TIME__ work... $ECHO_C" >&6; }
10286 cat >conftest.$ac_ext <<_ACEOF
10287 /* confdefs.h. */
10288 _ACEOF
10289 cat confdefs.h >>conftest.$ac_ext
10290 cat >>conftest.$ac_ext <<_ACEOF
10291 /* end confdefs.h. */
10292 #include <stdio.h>
10294 main ()
10296 printf("(" __DATE__ " " __TIME__ ")");
10298 return 0;
10300 _ACEOF
10301 rm -f conftest.$ac_objext
10302 if { (ac_try="$ac_compile"
10303 case "(($ac_try" in
10304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10305 *) ac_try_echo=$ac_try;;
10306 esac
10307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10308 (eval "$ac_compile") 2>conftest.er1
10309 ac_status=$?
10310 grep -v '^ *+' conftest.er1 >conftest.err
10311 rm -f conftest.er1
10312 cat conftest.err >&5
10313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10314 (exit $ac_status); } && {
10315 test -z "$ac_c_werror_flag" ||
10316 test ! -s conftest.err
10317 } && test -s conftest.$ac_objext; then
10318 { echo "$as_me:$LINENO: result: yes" >&5
10319 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
10320 #define HAVE_DATE_TIME 1
10321 _ACEOF
10323 else
10324 echo "$as_me: failed program was:" >&5
10325 sed 's/^/| /' conftest.$ac_ext >&5
10327 { echo "$as_me:$LINENO: result: no" >&5
10328 echo "${ECHO_T}no" >&6; }
10331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10333 { echo "$as_me:$LINENO: checking whether __attribute__((unused)) is allowed" >&5
10334 echo $ECHO_N "checking whether __attribute__((unused)) is allowed... $ECHO_C" >&6; }
10335 cat >conftest.$ac_ext <<_ACEOF
10336 /* confdefs.h. */
10337 _ACEOF
10338 cat confdefs.h >>conftest.$ac_ext
10339 cat >>conftest.$ac_ext <<_ACEOF
10340 /* end confdefs.h. */
10341 #include <stdio.h>
10343 main ()
10345 int x __attribute__((unused));
10347 return 0;
10349 _ACEOF
10350 rm -f conftest.$ac_objext
10351 if { (ac_try="$ac_compile"
10352 case "(($ac_try" in
10353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10354 *) ac_try_echo=$ac_try;;
10355 esac
10356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10357 (eval "$ac_compile") 2>conftest.er1
10358 ac_status=$?
10359 grep -v '^ *+' conftest.er1 >conftest.err
10360 rm -f conftest.er1
10361 cat conftest.err >&5
10362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10363 (exit $ac_status); } && {
10364 test -z "$ac_c_werror_flag" ||
10365 test ! -s conftest.err
10366 } && test -s conftest.$ac_objext; then
10367 { echo "$as_me:$LINENO: result: yes" >&5
10368 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
10369 #define HAVE_ATTRIBUTE_UNUSED 1
10370 _ACEOF
10372 else
10373 echo "$as_me: failed program was:" >&5
10374 sed 's/^/| /' conftest.$ac_ext >&5
10376 { echo "$as_me:$LINENO: result: no" >&5
10377 echo "${ECHO_T}no" >&6; }
10380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10382 if test "${ac_cv_header_elf_h+set}" = set; then
10383 { echo "$as_me:$LINENO: checking for elf.h" >&5
10384 echo $ECHO_N "checking for elf.h... $ECHO_C" >&6; }
10385 if test "${ac_cv_header_elf_h+set}" = set; then
10386 echo $ECHO_N "(cached) $ECHO_C" >&6
10388 { echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5
10389 echo "${ECHO_T}$ac_cv_header_elf_h" >&6; }
10390 else
10391 # Is the header compilable?
10392 { echo "$as_me:$LINENO: checking elf.h usability" >&5
10393 echo $ECHO_N "checking elf.h usability... $ECHO_C" >&6; }
10394 cat >conftest.$ac_ext <<_ACEOF
10395 /* confdefs.h. */
10396 _ACEOF
10397 cat confdefs.h >>conftest.$ac_ext
10398 cat >>conftest.$ac_ext <<_ACEOF
10399 /* end confdefs.h. */
10400 $ac_includes_default
10401 #include <elf.h>
10402 _ACEOF
10403 rm -f conftest.$ac_objext
10404 if { (ac_try="$ac_compile"
10405 case "(($ac_try" in
10406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10407 *) ac_try_echo=$ac_try;;
10408 esac
10409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10410 (eval "$ac_compile") 2>conftest.er1
10411 ac_status=$?
10412 grep -v '^ *+' conftest.er1 >conftest.err
10413 rm -f conftest.er1
10414 cat conftest.err >&5
10415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10416 (exit $ac_status); } && {
10417 test -z "$ac_c_werror_flag" ||
10418 test ! -s conftest.err
10419 } && test -s conftest.$ac_objext; then
10420 ac_header_compiler=yes
10421 else
10422 echo "$as_me: failed program was:" >&5
10423 sed 's/^/| /' conftest.$ac_ext >&5
10425 ac_header_compiler=no
10428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10429 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10430 echo "${ECHO_T}$ac_header_compiler" >&6; }
10432 # Is the header present?
10433 { echo "$as_me:$LINENO: checking elf.h presence" >&5
10434 echo $ECHO_N "checking elf.h presence... $ECHO_C" >&6; }
10435 cat >conftest.$ac_ext <<_ACEOF
10436 /* confdefs.h. */
10437 _ACEOF
10438 cat confdefs.h >>conftest.$ac_ext
10439 cat >>conftest.$ac_ext <<_ACEOF
10440 /* end confdefs.h. */
10441 #include <elf.h>
10442 _ACEOF
10443 if { (ac_try="$ac_cpp conftest.$ac_ext"
10444 case "(($ac_try" in
10445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10446 *) ac_try_echo=$ac_try;;
10447 esac
10448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10449 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10450 ac_status=$?
10451 grep -v '^ *+' conftest.er1 >conftest.err
10452 rm -f conftest.er1
10453 cat conftest.err >&5
10454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10455 (exit $ac_status); } >/dev/null && {
10456 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10457 test ! -s conftest.err
10458 }; then
10459 ac_header_preproc=yes
10460 else
10461 echo "$as_me: failed program was:" >&5
10462 sed 's/^/| /' conftest.$ac_ext >&5
10464 ac_header_preproc=no
10467 rm -f conftest.err conftest.$ac_ext
10468 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10469 echo "${ECHO_T}$ac_header_preproc" >&6; }
10471 # So? What about this header?
10472 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10473 yes:no: )
10474 { echo "$as_me:$LINENO: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&5
10475 echo "$as_me: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10476 { echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the compiler's result" >&5
10477 echo "$as_me: WARNING: elf.h: proceeding with the compiler's result" >&2;}
10478 ac_header_preproc=yes
10480 no:yes:* )
10481 { echo "$as_me:$LINENO: WARNING: elf.h: present but cannot be compiled" >&5
10482 echo "$as_me: WARNING: elf.h: present but cannot be compiled" >&2;}
10483 { echo "$as_me:$LINENO: WARNING: elf.h: check for missing prerequisite headers?" >&5
10484 echo "$as_me: WARNING: elf.h: check for missing prerequisite headers?" >&2;}
10485 { echo "$as_me:$LINENO: WARNING: elf.h: see the Autoconf documentation" >&5
10486 echo "$as_me: WARNING: elf.h: see the Autoconf documentation" >&2;}
10487 { echo "$as_me:$LINENO: WARNING: elf.h: section \"Present But Cannot Be Compiled\"" >&5
10488 echo "$as_me: WARNING: elf.h: section \"Present But Cannot Be Compiled\"" >&2;}
10489 { echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the preprocessor's result" >&5
10490 echo "$as_me: WARNING: elf.h: proceeding with the preprocessor's result" >&2;}
10491 { echo "$as_me:$LINENO: WARNING: elf.h: in the future, the compiler will take precedence" >&5
10492 echo "$as_me: WARNING: elf.h: in the future, the compiler will take precedence" >&2;}
10495 esac
10496 { echo "$as_me:$LINENO: checking for elf.h" >&5
10497 echo $ECHO_N "checking for elf.h... $ECHO_C" >&6; }
10498 if test "${ac_cv_header_elf_h+set}" = set; then
10499 echo $ECHO_N "(cached) $ECHO_C" >&6
10500 else
10501 ac_cv_header_elf_h=$ac_header_preproc
10503 { echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5
10504 echo "${ECHO_T}$ac_cv_header_elf_h" >&6; }
10507 if test $ac_cv_header_elf_h = yes; then
10508 HAS_ELF=1
10512 if test "$HAS_ELF" = 1; then
10514 { echo "$as_me:$LINENO: checking for main in -lelf" >&5
10515 echo $ECHO_N "checking for main in -lelf... $ECHO_C" >&6; }
10516 if test "${ac_cv_lib_elf_main+set}" = set; then
10517 echo $ECHO_N "(cached) $ECHO_C" >&6
10518 else
10519 ac_check_lib_save_LIBS=$LIBS
10520 LIBS="-lelf $LIBS"
10521 cat >conftest.$ac_ext <<_ACEOF
10522 /* confdefs.h. */
10523 _ACEOF
10524 cat confdefs.h >>conftest.$ac_ext
10525 cat >>conftest.$ac_ext <<_ACEOF
10526 /* end confdefs.h. */
10530 main ()
10532 return main ();
10534 return 0;
10536 _ACEOF
10537 rm -f conftest.$ac_objext conftest$ac_exeext
10538 if { (ac_try="$ac_link"
10539 case "(($ac_try" in
10540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10541 *) ac_try_echo=$ac_try;;
10542 esac
10543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10544 (eval "$ac_link") 2>conftest.er1
10545 ac_status=$?
10546 grep -v '^ *+' conftest.er1 >conftest.err
10547 rm -f conftest.er1
10548 cat conftest.err >&5
10549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10550 (exit $ac_status); } && {
10551 test -z "$ac_c_werror_flag" ||
10552 test ! -s conftest.err
10553 } && test -s conftest$ac_exeext &&
10554 $as_test_x conftest$ac_exeext; then
10555 ac_cv_lib_elf_main=yes
10556 else
10557 echo "$as_me: failed program was:" >&5
10558 sed 's/^/| /' conftest.$ac_ext >&5
10560 ac_cv_lib_elf_main=no
10563 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10564 conftest$ac_exeext conftest.$ac_ext
10565 LIBS=$ac_check_lib_save_LIBS
10567 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_main" >&5
10568 echo "${ECHO_T}$ac_cv_lib_elf_main" >&6; }
10569 if test $ac_cv_lib_elf_main = yes; then
10570 cat >>confdefs.h <<_ACEOF
10571 #define HAVE_LIBELF 1
10572 _ACEOF
10574 LIBS="-lelf $LIBS"
10585 ac_header_dirent=no
10586 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10587 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10588 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10589 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
10590 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10591 echo $ECHO_N "(cached) $ECHO_C" >&6
10592 else
10593 cat >conftest.$ac_ext <<_ACEOF
10594 /* confdefs.h. */
10595 _ACEOF
10596 cat confdefs.h >>conftest.$ac_ext
10597 cat >>conftest.$ac_ext <<_ACEOF
10598 /* end confdefs.h. */
10599 #include <sys/types.h>
10600 #include <$ac_hdr>
10603 main ()
10605 if ((DIR *) 0)
10606 return 0;
10608 return 0;
10610 _ACEOF
10611 rm -f conftest.$ac_objext
10612 if { (ac_try="$ac_compile"
10613 case "(($ac_try" in
10614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10615 *) ac_try_echo=$ac_try;;
10616 esac
10617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10618 (eval "$ac_compile") 2>conftest.er1
10619 ac_status=$?
10620 grep -v '^ *+' conftest.er1 >conftest.err
10621 rm -f conftest.er1
10622 cat conftest.err >&5
10623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10624 (exit $ac_status); } && {
10625 test -z "$ac_c_werror_flag" ||
10626 test ! -s conftest.err
10627 } && test -s conftest.$ac_objext; then
10628 eval "$as_ac_Header=yes"
10629 else
10630 echo "$as_me: failed program was:" >&5
10631 sed 's/^/| /' conftest.$ac_ext >&5
10633 eval "$as_ac_Header=no"
10636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10638 ac_res=`eval echo '${'$as_ac_Header'}'`
10639 { echo "$as_me:$LINENO: result: $ac_res" >&5
10640 echo "${ECHO_T}$ac_res" >&6; }
10641 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10642 cat >>confdefs.h <<_ACEOF
10643 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10644 _ACEOF
10646 ac_header_dirent=$ac_hdr; break
10649 done
10650 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10651 if test $ac_header_dirent = dirent.h; then
10652 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10653 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10654 if test "${ac_cv_search_opendir+set}" = set; then
10655 echo $ECHO_N "(cached) $ECHO_C" >&6
10656 else
10657 ac_func_search_save_LIBS=$LIBS
10658 cat >conftest.$ac_ext <<_ACEOF
10659 /* confdefs.h. */
10660 _ACEOF
10661 cat confdefs.h >>conftest.$ac_ext
10662 cat >>conftest.$ac_ext <<_ACEOF
10663 /* end confdefs.h. */
10665 /* Override any GCC internal prototype to avoid an error.
10666 Use char because int might match the return type of a GCC
10667 builtin and then its argument prototype would still apply. */
10668 #ifdef __cplusplus
10669 extern "C"
10670 #endif
10671 char opendir ();
10673 main ()
10675 return opendir ();
10677 return 0;
10679 _ACEOF
10680 for ac_lib in '' dir; do
10681 if test -z "$ac_lib"; then
10682 ac_res="none required"
10683 else
10684 ac_res=-l$ac_lib
10685 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10687 rm -f conftest.$ac_objext conftest$ac_exeext
10688 if { (ac_try="$ac_link"
10689 case "(($ac_try" in
10690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10691 *) ac_try_echo=$ac_try;;
10692 esac
10693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10694 (eval "$ac_link") 2>conftest.er1
10695 ac_status=$?
10696 grep -v '^ *+' conftest.er1 >conftest.err
10697 rm -f conftest.er1
10698 cat conftest.err >&5
10699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10700 (exit $ac_status); } && {
10701 test -z "$ac_c_werror_flag" ||
10702 test ! -s conftest.err
10703 } && test -s conftest$ac_exeext &&
10704 $as_test_x conftest$ac_exeext; then
10705 ac_cv_search_opendir=$ac_res
10706 else
10707 echo "$as_me: failed program was:" >&5
10708 sed 's/^/| /' conftest.$ac_ext >&5
10713 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10714 conftest$ac_exeext
10715 if test "${ac_cv_search_opendir+set}" = set; then
10716 break
10718 done
10719 if test "${ac_cv_search_opendir+set}" = set; then
10721 else
10722 ac_cv_search_opendir=no
10724 rm conftest.$ac_ext
10725 LIBS=$ac_func_search_save_LIBS
10727 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10728 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10729 ac_res=$ac_cv_search_opendir
10730 if test "$ac_res" != no; then
10731 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10735 else
10736 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10737 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10738 if test "${ac_cv_search_opendir+set}" = set; then
10739 echo $ECHO_N "(cached) $ECHO_C" >&6
10740 else
10741 ac_func_search_save_LIBS=$LIBS
10742 cat >conftest.$ac_ext <<_ACEOF
10743 /* confdefs.h. */
10744 _ACEOF
10745 cat confdefs.h >>conftest.$ac_ext
10746 cat >>conftest.$ac_ext <<_ACEOF
10747 /* end confdefs.h. */
10749 /* Override any GCC internal prototype to avoid an error.
10750 Use char because int might match the return type of a GCC
10751 builtin and then its argument prototype would still apply. */
10752 #ifdef __cplusplus
10753 extern "C"
10754 #endif
10755 char opendir ();
10757 main ()
10759 return opendir ();
10761 return 0;
10763 _ACEOF
10764 for ac_lib in '' x; do
10765 if test -z "$ac_lib"; then
10766 ac_res="none required"
10767 else
10768 ac_res=-l$ac_lib
10769 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10771 rm -f conftest.$ac_objext conftest$ac_exeext
10772 if { (ac_try="$ac_link"
10773 case "(($ac_try" in
10774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10775 *) ac_try_echo=$ac_try;;
10776 esac
10777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10778 (eval "$ac_link") 2>conftest.er1
10779 ac_status=$?
10780 grep -v '^ *+' conftest.er1 >conftest.err
10781 rm -f conftest.er1
10782 cat conftest.err >&5
10783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10784 (exit $ac_status); } && {
10785 test -z "$ac_c_werror_flag" ||
10786 test ! -s conftest.err
10787 } && test -s conftest$ac_exeext &&
10788 $as_test_x conftest$ac_exeext; then
10789 ac_cv_search_opendir=$ac_res
10790 else
10791 echo "$as_me: failed program was:" >&5
10792 sed 's/^/| /' conftest.$ac_ext >&5
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 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10812 echo "${ECHO_T}$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 { echo "$as_me:$LINENO: checking for sys/wait.h that defines union wait" >&5
10824 echo $ECHO_N "checking for sys/wait.h that defines union wait... $ECHO_C" >&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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10847 (eval "$ac_compile") 2>conftest.er1
10848 ac_status=$?
10849 grep -v '^ *+' conftest.er1 >conftest.err
10850 rm -f conftest.er1
10851 cat conftest.err >&5
10852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10853 (exit $ac_status); } && {
10854 test -z "$ac_c_werror_flag" ||
10855 test ! -s conftest.err
10856 } && test -s conftest.$ac_objext; then
10857 { echo "$as_me:$LINENO: result: yes" >&5
10858 echo "${ECHO_T}yes" >&6; }
10859 cat >>confdefs.h <<\_ACEOF
10860 #define HAVE_SYS_WAIT_H 1
10861 _ACEOF
10863 cat >>confdefs.h <<\_ACEOF
10864 #define HAVE_UNION_WAIT 1
10865 _ACEOF
10867 else
10868 echo "$as_me: failed program was:" >&5
10869 sed 's/^/| /' conftest.$ac_ext >&5
10871 { echo "$as_me:$LINENO: result: no" >&5
10872 echo "${ECHO_T}no" >&6; }
10875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10918 for ac_header in stdarg.h stdlib.h string.h sys/select.h sys/utsname.h \
10919 termcap.h fcntl.h sgtty.h sys/ioctl.h sys/time.h sys/types.h termio.h \
10920 iconv.h langinfo.h math.h unistd.h stropts.h errno.h \
10921 sys/resource.h sys/systeminfo.h locale.h \
10922 sys/stream.h termios.h libc.h sys/statfs.h \
10923 poll.h sys/poll.h pwd.h utime.h sys/param.h libintl.h \
10924 libgen.h util/debug.h util/msg18n.h frame.h \
10925 sys/acl.h sys/access.h sys/sysinfo.h wchar.h wctype.h
10927 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10928 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10929 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10930 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10931 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10932 echo $ECHO_N "(cached) $ECHO_C" >&6
10934 ac_res=`eval echo '${'$as_ac_Header'}'`
10935 { echo "$as_me:$LINENO: result: $ac_res" >&5
10936 echo "${ECHO_T}$ac_res" >&6; }
10937 else
10938 # Is the header compilable?
10939 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10940 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10941 cat >conftest.$ac_ext <<_ACEOF
10942 /* confdefs.h. */
10943 _ACEOF
10944 cat confdefs.h >>conftest.$ac_ext
10945 cat >>conftest.$ac_ext <<_ACEOF
10946 /* end confdefs.h. */
10947 $ac_includes_default
10948 #include <$ac_header>
10949 _ACEOF
10950 rm -f conftest.$ac_objext
10951 if { (ac_try="$ac_compile"
10952 case "(($ac_try" in
10953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10954 *) ac_try_echo=$ac_try;;
10955 esac
10956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10957 (eval "$ac_compile") 2>conftest.er1
10958 ac_status=$?
10959 grep -v '^ *+' conftest.er1 >conftest.err
10960 rm -f conftest.er1
10961 cat conftest.err >&5
10962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10963 (exit $ac_status); } && {
10964 test -z "$ac_c_werror_flag" ||
10965 test ! -s conftest.err
10966 } && test -s conftest.$ac_objext; then
10967 ac_header_compiler=yes
10968 else
10969 echo "$as_me: failed program was:" >&5
10970 sed 's/^/| /' conftest.$ac_ext >&5
10972 ac_header_compiler=no
10975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10976 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10977 echo "${ECHO_T}$ac_header_compiler" >&6; }
10979 # Is the header present?
10980 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10981 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10982 cat >conftest.$ac_ext <<_ACEOF
10983 /* confdefs.h. */
10984 _ACEOF
10985 cat confdefs.h >>conftest.$ac_ext
10986 cat >>conftest.$ac_ext <<_ACEOF
10987 /* end confdefs.h. */
10988 #include <$ac_header>
10989 _ACEOF
10990 if { (ac_try="$ac_cpp conftest.$ac_ext"
10991 case "(($ac_try" in
10992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10993 *) ac_try_echo=$ac_try;;
10994 esac
10995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10996 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10997 ac_status=$?
10998 grep -v '^ *+' conftest.er1 >conftest.err
10999 rm -f conftest.er1
11000 cat conftest.err >&5
11001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11002 (exit $ac_status); } >/dev/null && {
11003 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11004 test ! -s conftest.err
11005 }; then
11006 ac_header_preproc=yes
11007 else
11008 echo "$as_me: failed program was:" >&5
11009 sed 's/^/| /' conftest.$ac_ext >&5
11011 ac_header_preproc=no
11014 rm -f conftest.err conftest.$ac_ext
11015 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11016 echo "${ECHO_T}$ac_header_preproc" >&6; }
11018 # So? What about this header?
11019 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11020 yes:no: )
11021 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11022 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11023 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11024 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11025 ac_header_preproc=yes
11027 no:yes:* )
11028 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11029 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11030 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11031 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11032 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11033 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11034 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11035 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11036 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11037 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11038 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11039 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11042 esac
11043 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11044 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11045 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11046 echo $ECHO_N "(cached) $ECHO_C" >&6
11047 else
11048 eval "$as_ac_Header=\$ac_header_preproc"
11050 ac_res=`eval echo '${'$as_ac_Header'}'`
11051 { echo "$as_me:$LINENO: result: $ac_res" >&5
11052 echo "${ECHO_T}$ac_res" >&6; }
11055 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11056 cat >>confdefs.h <<_ACEOF
11057 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11058 _ACEOF
11062 done
11066 for ac_header in sys/ptem.h
11068 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11069 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11070 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11071 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11072 echo $ECHO_N "(cached) $ECHO_C" >&6
11073 else
11074 cat >conftest.$ac_ext <<_ACEOF
11075 /* confdefs.h. */
11076 _ACEOF
11077 cat confdefs.h >>conftest.$ac_ext
11078 cat >>conftest.$ac_ext <<_ACEOF
11079 /* end confdefs.h. */
11080 #if defined HAVE_SYS_STREAM_H
11081 # include <sys/stream.h>
11082 #endif
11084 #include <$ac_header>
11085 _ACEOF
11086 rm -f conftest.$ac_objext
11087 if { (ac_try="$ac_compile"
11088 case "(($ac_try" in
11089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11090 *) ac_try_echo=$ac_try;;
11091 esac
11092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11093 (eval "$ac_compile") 2>conftest.er1
11094 ac_status=$?
11095 grep -v '^ *+' conftest.er1 >conftest.err
11096 rm -f conftest.er1
11097 cat conftest.err >&5
11098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11099 (exit $ac_status); } && {
11100 test -z "$ac_c_werror_flag" ||
11101 test ! -s conftest.err
11102 } && test -s conftest.$ac_objext; then
11103 eval "$as_ac_Header=yes"
11104 else
11105 echo "$as_me: failed program was:" >&5
11106 sed 's/^/| /' conftest.$ac_ext >&5
11108 eval "$as_ac_Header=no"
11111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11113 ac_res=`eval echo '${'$as_ac_Header'}'`
11114 { echo "$as_me:$LINENO: result: $ac_res" >&5
11115 echo "${ECHO_T}$ac_res" >&6; }
11116 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11117 cat >>confdefs.h <<_ACEOF
11118 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11119 _ACEOF
11123 done
11127 for ac_header in sys/sysctl.h
11129 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11130 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11131 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11132 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11133 echo $ECHO_N "(cached) $ECHO_C" >&6
11134 else
11135 cat >conftest.$ac_ext <<_ACEOF
11136 /* confdefs.h. */
11137 _ACEOF
11138 cat confdefs.h >>conftest.$ac_ext
11139 cat >>conftest.$ac_ext <<_ACEOF
11140 /* end confdefs.h. */
11141 #if defined HAVE_SYS_PARAM_H
11142 # include <sys/param.h>
11143 #endif
11145 #include <$ac_header>
11146 _ACEOF
11147 rm -f conftest.$ac_objext
11148 if { (ac_try="$ac_compile"
11149 case "(($ac_try" in
11150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11151 *) ac_try_echo=$ac_try;;
11152 esac
11153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11154 (eval "$ac_compile") 2>conftest.er1
11155 ac_status=$?
11156 grep -v '^ *+' conftest.er1 >conftest.err
11157 rm -f conftest.er1
11158 cat conftest.err >&5
11159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11160 (exit $ac_status); } && {
11161 test -z "$ac_c_werror_flag" ||
11162 test ! -s conftest.err
11163 } && test -s conftest.$ac_objext; then
11164 eval "$as_ac_Header=yes"
11165 else
11166 echo "$as_me: failed program was:" >&5
11167 sed 's/^/| /' conftest.$ac_ext >&5
11169 eval "$as_ac_Header=no"
11172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11174 ac_res=`eval echo '${'$as_ac_Header'}'`
11175 { echo "$as_me:$LINENO: result: $ac_res" >&5
11176 echo "${ECHO_T}$ac_res" >&6; }
11177 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11178 cat >>confdefs.h <<_ACEOF
11179 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11180 _ACEOF
11184 done
11188 { echo "$as_me:$LINENO: checking for pthread_np.h" >&5
11189 echo $ECHO_N "checking for pthread_np.h... $ECHO_C" >&6; }
11190 cat >conftest.$ac_ext <<_ACEOF
11191 /* confdefs.h. */
11192 _ACEOF
11193 cat confdefs.h >>conftest.$ac_ext
11194 cat >>conftest.$ac_ext <<_ACEOF
11195 /* end confdefs.h. */
11197 #include <pthread.h>
11198 #include <pthread_np.h>
11200 main ()
11202 int i; i = 0;
11204 return 0;
11206 _ACEOF
11207 rm -f conftest.$ac_objext
11208 if { (ac_try="$ac_compile"
11209 case "(($ac_try" in
11210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11211 *) ac_try_echo=$ac_try;;
11212 esac
11213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11214 (eval "$ac_compile") 2>conftest.er1
11215 ac_status=$?
11216 grep -v '^ *+' conftest.er1 >conftest.err
11217 rm -f conftest.er1
11218 cat conftest.err >&5
11219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11220 (exit $ac_status); } && {
11221 test -z "$ac_c_werror_flag" ||
11222 test ! -s conftest.err
11223 } && test -s conftest.$ac_objext; then
11224 { echo "$as_me:$LINENO: result: yes" >&5
11225 echo "${ECHO_T}yes" >&6; }
11226 cat >>confdefs.h <<\_ACEOF
11227 #define HAVE_PTHREAD_NP_H 1
11228 _ACEOF
11230 else
11231 echo "$as_me: failed program was:" >&5
11232 sed 's/^/| /' conftest.$ac_ext >&5
11234 { echo "$as_me:$LINENO: result: no" >&5
11235 echo "${ECHO_T}no" >&6; }
11238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11241 for ac_header in strings.h
11243 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11244 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11245 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11246 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11247 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11248 echo $ECHO_N "(cached) $ECHO_C" >&6
11250 ac_res=`eval echo '${'$as_ac_Header'}'`
11251 { echo "$as_me:$LINENO: result: $ac_res" >&5
11252 echo "${ECHO_T}$ac_res" >&6; }
11253 else
11254 # Is the header compilable?
11255 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11256 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11257 cat >conftest.$ac_ext <<_ACEOF
11258 /* confdefs.h. */
11259 _ACEOF
11260 cat confdefs.h >>conftest.$ac_ext
11261 cat >>conftest.$ac_ext <<_ACEOF
11262 /* end confdefs.h. */
11263 $ac_includes_default
11264 #include <$ac_header>
11265 _ACEOF
11266 rm -f conftest.$ac_objext
11267 if { (ac_try="$ac_compile"
11268 case "(($ac_try" in
11269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11270 *) ac_try_echo=$ac_try;;
11271 esac
11272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11273 (eval "$ac_compile") 2>conftest.er1
11274 ac_status=$?
11275 grep -v '^ *+' conftest.er1 >conftest.err
11276 rm -f conftest.er1
11277 cat conftest.err >&5
11278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11279 (exit $ac_status); } && {
11280 test -z "$ac_c_werror_flag" ||
11281 test ! -s conftest.err
11282 } && test -s conftest.$ac_objext; then
11283 ac_header_compiler=yes
11284 else
11285 echo "$as_me: failed program was:" >&5
11286 sed 's/^/| /' conftest.$ac_ext >&5
11288 ac_header_compiler=no
11291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11292 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11293 echo "${ECHO_T}$ac_header_compiler" >&6; }
11295 # Is the header present?
11296 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11297 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11298 cat >conftest.$ac_ext <<_ACEOF
11299 /* confdefs.h. */
11300 _ACEOF
11301 cat confdefs.h >>conftest.$ac_ext
11302 cat >>conftest.$ac_ext <<_ACEOF
11303 /* end confdefs.h. */
11304 #include <$ac_header>
11305 _ACEOF
11306 if { (ac_try="$ac_cpp conftest.$ac_ext"
11307 case "(($ac_try" in
11308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11309 *) ac_try_echo=$ac_try;;
11310 esac
11311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11312 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11313 ac_status=$?
11314 grep -v '^ *+' conftest.er1 >conftest.err
11315 rm -f conftest.er1
11316 cat conftest.err >&5
11317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11318 (exit $ac_status); } >/dev/null && {
11319 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11320 test ! -s conftest.err
11321 }; then
11322 ac_header_preproc=yes
11323 else
11324 echo "$as_me: failed program was:" >&5
11325 sed 's/^/| /' conftest.$ac_ext >&5
11327 ac_header_preproc=no
11330 rm -f conftest.err conftest.$ac_ext
11331 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11332 echo "${ECHO_T}$ac_header_preproc" >&6; }
11334 # So? What about this header?
11335 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11336 yes:no: )
11337 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11338 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11339 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11340 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11341 ac_header_preproc=yes
11343 no:yes:* )
11344 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11345 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11346 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11347 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11348 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11349 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11350 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11351 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11352 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11353 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11354 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11355 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11358 esac
11359 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11360 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11361 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11362 echo $ECHO_N "(cached) $ECHO_C" >&6
11363 else
11364 eval "$as_ac_Header=\$ac_header_preproc"
11366 ac_res=`eval echo '${'$as_ac_Header'}'`
11367 { echo "$as_me:$LINENO: result: $ac_res" >&5
11368 echo "${ECHO_T}$ac_res" >&6; }
11371 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11372 cat >>confdefs.h <<_ACEOF
11373 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11374 _ACEOF
11378 done
11380 if test "x$MACOSX" = "xyes"; then
11381 cat >>confdefs.h <<\_ACEOF
11382 #define NO_STRINGS_WITH_STRING_H 1
11383 _ACEOF
11385 else
11387 { echo "$as_me:$LINENO: checking if strings.h can be included after string.h" >&5
11388 echo $ECHO_N "checking if strings.h can be included after string.h... $ECHO_C" >&6; }
11389 cppflags_save=$CPPFLAGS
11390 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11391 cat >conftest.$ac_ext <<_ACEOF
11392 /* confdefs.h. */
11393 _ACEOF
11394 cat confdefs.h >>conftest.$ac_ext
11395 cat >>conftest.$ac_ext <<_ACEOF
11396 /* end confdefs.h. */
11398 #if defined(_AIX) && !defined(_AIX51) && !defined(_NO_PROTO)
11399 # define _NO_PROTO /* like in os_unix.h, causes conflict for AIX (Winn) */
11400 /* but don't do it on AIX 5.1 (Uribarri) */
11401 #endif
11402 #ifdef HAVE_XM_XM_H
11403 # include <Xm/Xm.h> /* This breaks it for HP-UX 11 (Squassabia) */
11404 #endif
11405 #ifdef HAVE_STRING_H
11406 # include <string.h>
11407 #endif
11408 #if defined(HAVE_STRINGS_H)
11409 # include <strings.h>
11410 #endif
11413 main ()
11415 int i; i = 0;
11417 return 0;
11419 _ACEOF
11420 rm -f conftest.$ac_objext
11421 if { (ac_try="$ac_compile"
11422 case "(($ac_try" in
11423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11424 *) ac_try_echo=$ac_try;;
11425 esac
11426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11427 (eval "$ac_compile") 2>conftest.er1
11428 ac_status=$?
11429 grep -v '^ *+' conftest.er1 >conftest.err
11430 rm -f conftest.er1
11431 cat conftest.err >&5
11432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11433 (exit $ac_status); } && {
11434 test -z "$ac_c_werror_flag" ||
11435 test ! -s conftest.err
11436 } && test -s conftest.$ac_objext; then
11437 { echo "$as_me:$LINENO: result: yes" >&5
11438 echo "${ECHO_T}yes" >&6; }
11439 else
11440 echo "$as_me: failed program was:" >&5
11441 sed 's/^/| /' conftest.$ac_ext >&5
11443 cat >>confdefs.h <<\_ACEOF
11444 #define NO_STRINGS_WITH_STRING_H 1
11445 _ACEOF
11447 { echo "$as_me:$LINENO: result: no" >&5
11448 echo "${ECHO_T}no" >&6; }
11451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11452 CPPFLAGS=$cppflags_save
11455 if test $ac_cv_c_compiler_gnu = yes; then
11456 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
11457 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
11458 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
11459 echo $ECHO_N "(cached) $ECHO_C" >&6
11460 else
11461 ac_pattern="Autoconf.*'x'"
11462 cat >conftest.$ac_ext <<_ACEOF
11463 /* confdefs.h. */
11464 _ACEOF
11465 cat confdefs.h >>conftest.$ac_ext
11466 cat >>conftest.$ac_ext <<_ACEOF
11467 /* end confdefs.h. */
11468 #include <sgtty.h>
11469 Autoconf TIOCGETP
11470 _ACEOF
11471 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11472 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11473 ac_cv_prog_gcc_traditional=yes
11474 else
11475 ac_cv_prog_gcc_traditional=no
11477 rm -f conftest*
11480 if test $ac_cv_prog_gcc_traditional = no; then
11481 cat >conftest.$ac_ext <<_ACEOF
11482 /* confdefs.h. */
11483 _ACEOF
11484 cat confdefs.h >>conftest.$ac_ext
11485 cat >>conftest.$ac_ext <<_ACEOF
11486 /* end confdefs.h. */
11487 #include <termio.h>
11488 Autoconf TCGETA
11489 _ACEOF
11490 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11491 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11492 ac_cv_prog_gcc_traditional=yes
11494 rm -f conftest*
11498 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
11499 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
11500 if test $ac_cv_prog_gcc_traditional = yes; then
11501 CC="$CC -traditional"
11505 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11506 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
11507 if test "${ac_cv_c_const+set}" = set; then
11508 echo $ECHO_N "(cached) $ECHO_C" >&6
11509 else
11510 cat >conftest.$ac_ext <<_ACEOF
11511 /* confdefs.h. */
11512 _ACEOF
11513 cat confdefs.h >>conftest.$ac_ext
11514 cat >>conftest.$ac_ext <<_ACEOF
11515 /* end confdefs.h. */
11518 main ()
11520 /* FIXME: Include the comments suggested by Paul. */
11521 #ifndef __cplusplus
11522 /* Ultrix mips cc rejects this. */
11523 typedef int charset[2];
11524 const charset cs;
11525 /* SunOS 4.1.1 cc rejects this. */
11526 char const *const *pcpcc;
11527 char **ppc;
11528 /* NEC SVR4.0.2 mips cc rejects this. */
11529 struct point {int x, y;};
11530 static struct point const zero = {0,0};
11531 /* AIX XL C 1.02.0.0 rejects this.
11532 It does not let you subtract one const X* pointer from another in
11533 an arm of an if-expression whose if-part is not a constant
11534 expression */
11535 const char *g = "string";
11536 pcpcc = &g + (g ? g-g : 0);
11537 /* HPUX 7.0 cc rejects these. */
11538 ++pcpcc;
11539 ppc = (char**) pcpcc;
11540 pcpcc = (char const *const *) ppc;
11541 { /* SCO 3.2v4 cc rejects this. */
11542 char *t;
11543 char const *s = 0 ? (char *) 0 : (char const *) 0;
11545 *t++ = 0;
11546 if (s) return 0;
11548 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11549 int x[] = {25, 17};
11550 const int *foo = &x[0];
11551 ++foo;
11553 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11554 typedef const int *iptr;
11555 iptr p = 0;
11556 ++p;
11558 { /* AIX XL C 1.02.0.0 rejects this saying
11559 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11560 struct s { int j; const int *ap[3]; };
11561 struct s *b; b->j = 5;
11563 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11564 const int foo = 10;
11565 if (!foo) return 0;
11567 return !cs[0] && !zero.x;
11568 #endif
11571 return 0;
11573 _ACEOF
11574 rm -f conftest.$ac_objext
11575 if { (ac_try="$ac_compile"
11576 case "(($ac_try" in
11577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11578 *) ac_try_echo=$ac_try;;
11579 esac
11580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11581 (eval "$ac_compile") 2>conftest.er1
11582 ac_status=$?
11583 grep -v '^ *+' conftest.er1 >conftest.err
11584 rm -f conftest.er1
11585 cat conftest.err >&5
11586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11587 (exit $ac_status); } && {
11588 test -z "$ac_c_werror_flag" ||
11589 test ! -s conftest.err
11590 } && test -s conftest.$ac_objext; then
11591 ac_cv_c_const=yes
11592 else
11593 echo "$as_me: failed program was:" >&5
11594 sed 's/^/| /' conftest.$ac_ext >&5
11596 ac_cv_c_const=no
11599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11601 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11602 echo "${ECHO_T}$ac_cv_c_const" >&6; }
11603 if test $ac_cv_c_const = no; then
11605 cat >>confdefs.h <<\_ACEOF
11606 #define const
11607 _ACEOF
11611 { echo "$as_me:$LINENO: checking for working volatile" >&5
11612 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
11613 if test "${ac_cv_c_volatile+set}" = set; then
11614 echo $ECHO_N "(cached) $ECHO_C" >&6
11615 else
11616 cat >conftest.$ac_ext <<_ACEOF
11617 /* confdefs.h. */
11618 _ACEOF
11619 cat confdefs.h >>conftest.$ac_ext
11620 cat >>conftest.$ac_ext <<_ACEOF
11621 /* end confdefs.h. */
11624 main ()
11627 volatile int x;
11628 int * volatile y = (int *) 0;
11629 return !x && !y;
11631 return 0;
11633 _ACEOF
11634 rm -f conftest.$ac_objext
11635 if { (ac_try="$ac_compile"
11636 case "(($ac_try" in
11637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11638 *) ac_try_echo=$ac_try;;
11639 esac
11640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11641 (eval "$ac_compile") 2>conftest.er1
11642 ac_status=$?
11643 grep -v '^ *+' conftest.er1 >conftest.err
11644 rm -f conftest.er1
11645 cat conftest.err >&5
11646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11647 (exit $ac_status); } && {
11648 test -z "$ac_c_werror_flag" ||
11649 test ! -s conftest.err
11650 } && test -s conftest.$ac_objext; then
11651 ac_cv_c_volatile=yes
11652 else
11653 echo "$as_me: failed program was:" >&5
11654 sed 's/^/| /' conftest.$ac_ext >&5
11656 ac_cv_c_volatile=no
11659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11661 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
11662 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
11663 if test $ac_cv_c_volatile = no; then
11665 cat >>confdefs.h <<\_ACEOF
11666 #define volatile
11667 _ACEOF
11671 { echo "$as_me:$LINENO: checking for mode_t" >&5
11672 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
11673 if test "${ac_cv_type_mode_t+set}" = set; then
11674 echo $ECHO_N "(cached) $ECHO_C" >&6
11675 else
11676 cat >conftest.$ac_ext <<_ACEOF
11677 /* confdefs.h. */
11678 _ACEOF
11679 cat confdefs.h >>conftest.$ac_ext
11680 cat >>conftest.$ac_ext <<_ACEOF
11681 /* end confdefs.h. */
11682 $ac_includes_default
11683 typedef mode_t ac__type_new_;
11685 main ()
11687 if ((ac__type_new_ *) 0)
11688 return 0;
11689 if (sizeof (ac__type_new_))
11690 return 0;
11692 return 0;
11694 _ACEOF
11695 rm -f conftest.$ac_objext
11696 if { (ac_try="$ac_compile"
11697 case "(($ac_try" in
11698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11699 *) ac_try_echo=$ac_try;;
11700 esac
11701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11702 (eval "$ac_compile") 2>conftest.er1
11703 ac_status=$?
11704 grep -v '^ *+' conftest.er1 >conftest.err
11705 rm -f conftest.er1
11706 cat conftest.err >&5
11707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11708 (exit $ac_status); } && {
11709 test -z "$ac_c_werror_flag" ||
11710 test ! -s conftest.err
11711 } && test -s conftest.$ac_objext; then
11712 ac_cv_type_mode_t=yes
11713 else
11714 echo "$as_me: failed program was:" >&5
11715 sed 's/^/| /' conftest.$ac_ext >&5
11717 ac_cv_type_mode_t=no
11720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11722 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
11723 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
11724 if test $ac_cv_type_mode_t = yes; then
11726 else
11728 cat >>confdefs.h <<_ACEOF
11729 #define mode_t int
11730 _ACEOF
11734 { echo "$as_me:$LINENO: checking for off_t" >&5
11735 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
11736 if test "${ac_cv_type_off_t+set}" = set; then
11737 echo $ECHO_N "(cached) $ECHO_C" >&6
11738 else
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
11746 typedef off_t ac__type_new_;
11748 main ()
11750 if ((ac__type_new_ *) 0)
11751 return 0;
11752 if (sizeof (ac__type_new_))
11753 return 0;
11755 return 0;
11757 _ACEOF
11758 rm -f conftest.$ac_objext
11759 if { (ac_try="$ac_compile"
11760 case "(($ac_try" in
11761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11762 *) ac_try_echo=$ac_try;;
11763 esac
11764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11765 (eval "$ac_compile") 2>conftest.er1
11766 ac_status=$?
11767 grep -v '^ *+' conftest.er1 >conftest.err
11768 rm -f conftest.er1
11769 cat conftest.err >&5
11770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11771 (exit $ac_status); } && {
11772 test -z "$ac_c_werror_flag" ||
11773 test ! -s conftest.err
11774 } && test -s conftest.$ac_objext; then
11775 ac_cv_type_off_t=yes
11776 else
11777 echo "$as_me: failed program was:" >&5
11778 sed 's/^/| /' conftest.$ac_ext >&5
11780 ac_cv_type_off_t=no
11783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11785 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11786 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
11787 if test $ac_cv_type_off_t = yes; then
11789 else
11791 cat >>confdefs.h <<_ACEOF
11792 #define off_t long int
11793 _ACEOF
11797 { echo "$as_me:$LINENO: checking for pid_t" >&5
11798 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
11799 if test "${ac_cv_type_pid_t+set}" = set; then
11800 echo $ECHO_N "(cached) $ECHO_C" >&6
11801 else
11802 cat >conftest.$ac_ext <<_ACEOF
11803 /* confdefs.h. */
11804 _ACEOF
11805 cat confdefs.h >>conftest.$ac_ext
11806 cat >>conftest.$ac_ext <<_ACEOF
11807 /* end confdefs.h. */
11808 $ac_includes_default
11809 typedef pid_t ac__type_new_;
11811 main ()
11813 if ((ac__type_new_ *) 0)
11814 return 0;
11815 if (sizeof (ac__type_new_))
11816 return 0;
11818 return 0;
11820 _ACEOF
11821 rm -f conftest.$ac_objext
11822 if { (ac_try="$ac_compile"
11823 case "(($ac_try" in
11824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11825 *) ac_try_echo=$ac_try;;
11826 esac
11827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11828 (eval "$ac_compile") 2>conftest.er1
11829 ac_status=$?
11830 grep -v '^ *+' conftest.er1 >conftest.err
11831 rm -f conftest.er1
11832 cat conftest.err >&5
11833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11834 (exit $ac_status); } && {
11835 test -z "$ac_c_werror_flag" ||
11836 test ! -s conftest.err
11837 } && test -s conftest.$ac_objext; then
11838 ac_cv_type_pid_t=yes
11839 else
11840 echo "$as_me: failed program was:" >&5
11841 sed 's/^/| /' conftest.$ac_ext >&5
11843 ac_cv_type_pid_t=no
11846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11848 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11849 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
11850 if test $ac_cv_type_pid_t = yes; then
11852 else
11854 cat >>confdefs.h <<_ACEOF
11855 #define pid_t int
11856 _ACEOF
11860 { echo "$as_me:$LINENO: checking for size_t" >&5
11861 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
11862 if test "${ac_cv_type_size_t+set}" = set; then
11863 echo $ECHO_N "(cached) $ECHO_C" >&6
11864 else
11865 cat >conftest.$ac_ext <<_ACEOF
11866 /* confdefs.h. */
11867 _ACEOF
11868 cat confdefs.h >>conftest.$ac_ext
11869 cat >>conftest.$ac_ext <<_ACEOF
11870 /* end confdefs.h. */
11871 $ac_includes_default
11872 typedef size_t ac__type_new_;
11874 main ()
11876 if ((ac__type_new_ *) 0)
11877 return 0;
11878 if (sizeof (ac__type_new_))
11879 return 0;
11881 return 0;
11883 _ACEOF
11884 rm -f conftest.$ac_objext
11885 if { (ac_try="$ac_compile"
11886 case "(($ac_try" in
11887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11888 *) ac_try_echo=$ac_try;;
11889 esac
11890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11891 (eval "$ac_compile") 2>conftest.er1
11892 ac_status=$?
11893 grep -v '^ *+' conftest.er1 >conftest.err
11894 rm -f conftest.er1
11895 cat conftest.err >&5
11896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11897 (exit $ac_status); } && {
11898 test -z "$ac_c_werror_flag" ||
11899 test ! -s conftest.err
11900 } && test -s conftest.$ac_objext; then
11901 ac_cv_type_size_t=yes
11902 else
11903 echo "$as_me: failed program was:" >&5
11904 sed 's/^/| /' conftest.$ac_ext >&5
11906 ac_cv_type_size_t=no
11909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11911 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11912 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
11913 if test $ac_cv_type_size_t = yes; then
11915 else
11917 cat >>confdefs.h <<_ACEOF
11918 #define size_t unsigned int
11919 _ACEOF
11923 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
11924 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
11925 if test "${ac_cv_type_uid_t+set}" = set; then
11926 echo $ECHO_N "(cached) $ECHO_C" >&6
11927 else
11928 cat >conftest.$ac_ext <<_ACEOF
11929 /* confdefs.h. */
11930 _ACEOF
11931 cat confdefs.h >>conftest.$ac_ext
11932 cat >>conftest.$ac_ext <<_ACEOF
11933 /* end confdefs.h. */
11934 #include <sys/types.h>
11936 _ACEOF
11937 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11938 $EGREP "uid_t" >/dev/null 2>&1; then
11939 ac_cv_type_uid_t=yes
11940 else
11941 ac_cv_type_uid_t=no
11943 rm -f conftest*
11946 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
11947 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
11948 if test $ac_cv_type_uid_t = no; then
11950 cat >>confdefs.h <<\_ACEOF
11951 #define uid_t int
11952 _ACEOF
11955 cat >>confdefs.h <<\_ACEOF
11956 #define gid_t int
11957 _ACEOF
11961 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11962 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
11963 if test "${ac_cv_header_time+set}" = set; then
11964 echo $ECHO_N "(cached) $ECHO_C" >&6
11965 else
11966 cat >conftest.$ac_ext <<_ACEOF
11967 /* confdefs.h. */
11968 _ACEOF
11969 cat confdefs.h >>conftest.$ac_ext
11970 cat >>conftest.$ac_ext <<_ACEOF
11971 /* end confdefs.h. */
11972 #include <sys/types.h>
11973 #include <sys/time.h>
11974 #include <time.h>
11977 main ()
11979 if ((struct tm *) 0)
11980 return 0;
11982 return 0;
11984 _ACEOF
11985 rm -f conftest.$ac_objext
11986 if { (ac_try="$ac_compile"
11987 case "(($ac_try" in
11988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11989 *) ac_try_echo=$ac_try;;
11990 esac
11991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11992 (eval "$ac_compile") 2>conftest.er1
11993 ac_status=$?
11994 grep -v '^ *+' conftest.er1 >conftest.err
11995 rm -f conftest.er1
11996 cat conftest.err >&5
11997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11998 (exit $ac_status); } && {
11999 test -z "$ac_c_werror_flag" ||
12000 test ! -s conftest.err
12001 } && test -s conftest.$ac_objext; then
12002 ac_cv_header_time=yes
12003 else
12004 echo "$as_me: failed program was:" >&5
12005 sed 's/^/| /' conftest.$ac_ext >&5
12007 ac_cv_header_time=no
12010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12012 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
12013 echo "${ECHO_T}$ac_cv_header_time" >&6; }
12014 if test $ac_cv_header_time = yes; then
12016 cat >>confdefs.h <<\_ACEOF
12017 #define TIME_WITH_SYS_TIME 1
12018 _ACEOF
12022 { echo "$as_me:$LINENO: checking for ino_t" >&5
12023 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
12024 if test "${ac_cv_type_ino_t+set}" = set; then
12025 echo $ECHO_N "(cached) $ECHO_C" >&6
12026 else
12027 cat >conftest.$ac_ext <<_ACEOF
12028 /* confdefs.h. */
12029 _ACEOF
12030 cat confdefs.h >>conftest.$ac_ext
12031 cat >>conftest.$ac_ext <<_ACEOF
12032 /* end confdefs.h. */
12033 $ac_includes_default
12034 typedef ino_t ac__type_new_;
12036 main ()
12038 if ((ac__type_new_ *) 0)
12039 return 0;
12040 if (sizeof (ac__type_new_))
12041 return 0;
12043 return 0;
12045 _ACEOF
12046 rm -f conftest.$ac_objext
12047 if { (ac_try="$ac_compile"
12048 case "(($ac_try" in
12049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12050 *) ac_try_echo=$ac_try;;
12051 esac
12052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12053 (eval "$ac_compile") 2>conftest.er1
12054 ac_status=$?
12055 grep -v '^ *+' conftest.er1 >conftest.err
12056 rm -f conftest.er1
12057 cat conftest.err >&5
12058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12059 (exit $ac_status); } && {
12060 test -z "$ac_c_werror_flag" ||
12061 test ! -s conftest.err
12062 } && test -s conftest.$ac_objext; then
12063 ac_cv_type_ino_t=yes
12064 else
12065 echo "$as_me: failed program was:" >&5
12066 sed 's/^/| /' conftest.$ac_ext >&5
12068 ac_cv_type_ino_t=no
12071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12073 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
12074 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
12075 if test $ac_cv_type_ino_t = yes; then
12077 else
12079 cat >>confdefs.h <<_ACEOF
12080 #define ino_t long
12081 _ACEOF
12085 { echo "$as_me:$LINENO: checking for dev_t" >&5
12086 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
12087 if test "${ac_cv_type_dev_t+set}" = set; then
12088 echo $ECHO_N "(cached) $ECHO_C" >&6
12089 else
12090 cat >conftest.$ac_ext <<_ACEOF
12091 /* confdefs.h. */
12092 _ACEOF
12093 cat confdefs.h >>conftest.$ac_ext
12094 cat >>conftest.$ac_ext <<_ACEOF
12095 /* end confdefs.h. */
12096 $ac_includes_default
12097 typedef dev_t ac__type_new_;
12099 main ()
12101 if ((ac__type_new_ *) 0)
12102 return 0;
12103 if (sizeof (ac__type_new_))
12104 return 0;
12106 return 0;
12108 _ACEOF
12109 rm -f conftest.$ac_objext
12110 if { (ac_try="$ac_compile"
12111 case "(($ac_try" in
12112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12113 *) ac_try_echo=$ac_try;;
12114 esac
12115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12116 (eval "$ac_compile") 2>conftest.er1
12117 ac_status=$?
12118 grep -v '^ *+' conftest.er1 >conftest.err
12119 rm -f conftest.er1
12120 cat conftest.err >&5
12121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12122 (exit $ac_status); } && {
12123 test -z "$ac_c_werror_flag" ||
12124 test ! -s conftest.err
12125 } && test -s conftest.$ac_objext; then
12126 ac_cv_type_dev_t=yes
12127 else
12128 echo "$as_me: failed program was:" >&5
12129 sed 's/^/| /' conftest.$ac_ext >&5
12131 ac_cv_type_dev_t=no
12134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12136 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
12137 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
12138 if test $ac_cv_type_dev_t = yes; then
12140 else
12142 cat >>confdefs.h <<_ACEOF
12143 #define dev_t unsigned
12144 _ACEOF
12149 { echo "$as_me:$LINENO: checking for rlim_t" >&5
12150 echo $ECHO_N "checking for rlim_t... $ECHO_C" >&6; }
12151 if eval "test \"`echo '$''{'ac_cv_type_rlim_t'+set}'`\" = set"; then
12152 { echo "$as_me:$LINENO: result: (cached) $ac_cv_type_rlim_t" >&5
12153 echo "${ECHO_T}(cached) $ac_cv_type_rlim_t" >&6; }
12154 else
12155 cat >conftest.$ac_ext <<_ACEOF
12156 /* confdefs.h. */
12157 _ACEOF
12158 cat confdefs.h >>conftest.$ac_ext
12159 cat >>conftest.$ac_ext <<_ACEOF
12160 /* end confdefs.h. */
12162 #include <sys/types.h>
12163 #if STDC_HEADERS
12164 # include <stdlib.h>
12165 # include <stddef.h>
12166 #endif
12167 #ifdef HAVE_SYS_RESOURCE_H
12168 # include <sys/resource.h>
12169 #endif
12171 _ACEOF
12172 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12173 $EGREP "(^|[^a-zA-Z_0-9])rlim_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
12174 ac_cv_type_rlim_t=yes
12175 else
12176 ac_cv_type_rlim_t=no
12178 rm -f conftest*
12180 { echo "$as_me:$LINENO: result: $ac_cv_type_rlim_t" >&5
12181 echo "${ECHO_T}$ac_cv_type_rlim_t" >&6; }
12183 if test $ac_cv_type_rlim_t = no; then
12184 cat >> confdefs.h <<\EOF
12185 #define rlim_t unsigned long
12189 { echo "$as_me:$LINENO: checking for stack_t" >&5
12190 echo $ECHO_N "checking for stack_t... $ECHO_C" >&6; }
12191 if eval "test \"`echo '$''{'ac_cv_type_stack_t'+set}'`\" = set"; then
12192 { echo "$as_me:$LINENO: result: (cached) $ac_cv_type_stack_t" >&5
12193 echo "${ECHO_T}(cached) $ac_cv_type_stack_t" >&6; }
12194 else
12195 cat >conftest.$ac_ext <<_ACEOF
12196 /* confdefs.h. */
12197 _ACEOF
12198 cat confdefs.h >>conftest.$ac_ext
12199 cat >>conftest.$ac_ext <<_ACEOF
12200 /* end confdefs.h. */
12202 #include <sys/types.h>
12203 #if STDC_HEADERS
12204 # include <stdlib.h>
12205 # include <stddef.h>
12206 #endif
12207 #include <signal.h>
12209 _ACEOF
12210 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12211 $EGREP "stack_t" >/dev/null 2>&1; then
12212 ac_cv_type_stack_t=yes
12213 else
12214 ac_cv_type_stack_t=no
12216 rm -f conftest*
12218 { echo "$as_me:$LINENO: result: $ac_cv_type_stack_t" >&5
12219 echo "${ECHO_T}$ac_cv_type_stack_t" >&6; }
12221 if test $ac_cv_type_stack_t = no; then
12222 cat >> confdefs.h <<\EOF
12223 #define stack_t struct sigaltstack
12227 { echo "$as_me:$LINENO: checking whether stack_t has an ss_base field" >&5
12228 echo $ECHO_N "checking whether stack_t has an ss_base field... $ECHO_C" >&6; }
12229 cat >conftest.$ac_ext <<_ACEOF
12230 /* confdefs.h. */
12231 _ACEOF
12232 cat confdefs.h >>conftest.$ac_ext
12233 cat >>conftest.$ac_ext <<_ACEOF
12234 /* end confdefs.h. */
12236 #include <sys/types.h>
12237 #if STDC_HEADERS
12238 # include <stdlib.h>
12239 # include <stddef.h>
12240 #endif
12241 #include <signal.h>
12242 #include "confdefs.h"
12245 main ()
12247 stack_t sigstk; sigstk.ss_base = 0;
12249 return 0;
12251 _ACEOF
12252 rm -f conftest.$ac_objext
12253 if { (ac_try="$ac_compile"
12254 case "(($ac_try" in
12255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12256 *) ac_try_echo=$ac_try;;
12257 esac
12258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12259 (eval "$ac_compile") 2>conftest.er1
12260 ac_status=$?
12261 grep -v '^ *+' conftest.er1 >conftest.err
12262 rm -f conftest.er1
12263 cat conftest.err >&5
12264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12265 (exit $ac_status); } && {
12266 test -z "$ac_c_werror_flag" ||
12267 test ! -s conftest.err
12268 } && test -s conftest.$ac_objext; then
12269 { echo "$as_me:$LINENO: result: yes" >&5
12270 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
12271 #define HAVE_SS_BASE 1
12272 _ACEOF
12274 else
12275 echo "$as_me: failed program was:" >&5
12276 sed 's/^/| /' conftest.$ac_ext >&5
12278 { echo "$as_me:$LINENO: result: no" >&5
12279 echo "${ECHO_T}no" >&6; }
12282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12284 olibs="$LIBS"
12285 { echo "$as_me:$LINENO: checking --with-tlib argument" >&5
12286 echo $ECHO_N "checking --with-tlib argument... $ECHO_C" >&6; }
12288 # Check whether --with-tlib was given.
12289 if test "${with_tlib+set}" = set; then
12290 withval=$with_tlib;
12293 if test -n "$with_tlib"; then
12294 { echo "$as_me:$LINENO: result: $with_tlib" >&5
12295 echo "${ECHO_T}$with_tlib" >&6; }
12296 LIBS="$LIBS -l$with_tlib"
12297 { echo "$as_me:$LINENO: checking for linking with $with_tlib library" >&5
12298 echo $ECHO_N "checking for linking with $with_tlib library... $ECHO_C" >&6; }
12299 cat >conftest.$ac_ext <<_ACEOF
12300 /* confdefs.h. */
12301 _ACEOF
12302 cat confdefs.h >>conftest.$ac_ext
12303 cat >>conftest.$ac_ext <<_ACEOF
12304 /* end confdefs.h. */
12307 main ()
12311 return 0;
12313 _ACEOF
12314 rm -f conftest.$ac_objext conftest$ac_exeext
12315 if { (ac_try="$ac_link"
12316 case "(($ac_try" in
12317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12318 *) ac_try_echo=$ac_try;;
12319 esac
12320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12321 (eval "$ac_link") 2>conftest.er1
12322 ac_status=$?
12323 grep -v '^ *+' conftest.er1 >conftest.err
12324 rm -f conftest.er1
12325 cat conftest.err >&5
12326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12327 (exit $ac_status); } && {
12328 test -z "$ac_c_werror_flag" ||
12329 test ! -s conftest.err
12330 } && test -s conftest$ac_exeext &&
12331 $as_test_x conftest$ac_exeext; then
12332 { echo "$as_me:$LINENO: result: OK" >&5
12333 echo "${ECHO_T}OK" >&6; }
12334 else
12335 echo "$as_me: failed program was:" >&5
12336 sed 's/^/| /' conftest.$ac_ext >&5
12338 { { echo "$as_me:$LINENO: error: FAILED" >&5
12339 echo "$as_me: error: FAILED" >&2;}
12340 { (exit 1); exit 1; }; }
12343 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12344 conftest$ac_exeext conftest.$ac_ext
12345 olibs="$LIBS"
12346 else
12347 { echo "$as_me:$LINENO: result: empty: automatic terminal library selection" >&5
12348 echo "${ECHO_T}empty: automatic terminal library selection" >&6; }
12349 case "`uname -s 2>/dev/null`" in
12350 OSF1|SCO_SV) tlibs="ncurses curses termlib termcap";;
12351 *) tlibs="ncurses termlib termcap curses";;
12352 esac
12353 for libname in $tlibs; do
12355 as_ac_Lib=`echo "ac_cv_lib_${libname}''_tgetent" | $as_tr_sh`
12356 { echo "$as_me:$LINENO: checking for tgetent in -l${libname}" >&5
12357 echo $ECHO_N "checking for tgetent in -l${libname}... $ECHO_C" >&6; }
12358 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
12359 echo $ECHO_N "(cached) $ECHO_C" >&6
12360 else
12361 ac_check_lib_save_LIBS=$LIBS
12362 LIBS="-l${libname} $LIBS"
12363 cat >conftest.$ac_ext <<_ACEOF
12364 /* confdefs.h. */
12365 _ACEOF
12366 cat confdefs.h >>conftest.$ac_ext
12367 cat >>conftest.$ac_ext <<_ACEOF
12368 /* end confdefs.h. */
12370 /* Override any GCC internal prototype to avoid an error.
12371 Use char because int might match the return type of a GCC
12372 builtin and then its argument prototype would still apply. */
12373 #ifdef __cplusplus
12374 extern "C"
12375 #endif
12376 char tgetent ();
12378 main ()
12380 return tgetent ();
12382 return 0;
12384 _ACEOF
12385 rm -f conftest.$ac_objext conftest$ac_exeext
12386 if { (ac_try="$ac_link"
12387 case "(($ac_try" in
12388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12389 *) ac_try_echo=$ac_try;;
12390 esac
12391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12392 (eval "$ac_link") 2>conftest.er1
12393 ac_status=$?
12394 grep -v '^ *+' conftest.er1 >conftest.err
12395 rm -f conftest.er1
12396 cat conftest.err >&5
12397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12398 (exit $ac_status); } && {
12399 test -z "$ac_c_werror_flag" ||
12400 test ! -s conftest.err
12401 } && test -s conftest$ac_exeext &&
12402 $as_test_x conftest$ac_exeext; then
12403 eval "$as_ac_Lib=yes"
12404 else
12405 echo "$as_me: failed program was:" >&5
12406 sed 's/^/| /' conftest.$ac_ext >&5
12408 eval "$as_ac_Lib=no"
12411 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12412 conftest$ac_exeext conftest.$ac_ext
12413 LIBS=$ac_check_lib_save_LIBS
12415 ac_res=`eval echo '${'$as_ac_Lib'}'`
12416 { echo "$as_me:$LINENO: result: $ac_res" >&5
12417 echo "${ECHO_T}$ac_res" >&6; }
12418 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
12419 cat >>confdefs.h <<_ACEOF
12420 #define `echo "HAVE_LIB${libname}" | $as_tr_cpp` 1
12421 _ACEOF
12423 LIBS="-l${libname} $LIBS"
12427 if test "x$olibs" != "x$LIBS"; then
12428 if test "$cross_compiling" = yes; then
12429 res="FAIL"
12430 else
12431 cat >conftest.$ac_ext <<_ACEOF
12432 /* confdefs.h. */
12433 _ACEOF
12434 cat confdefs.h >>conftest.$ac_ext
12435 cat >>conftest.$ac_ext <<_ACEOF
12436 /* end confdefs.h. */
12438 #ifdef HAVE_TERMCAP_H
12439 # include <termcap.h>
12440 #endif
12441 #if STDC_HEADERS
12442 # include <stdlib.h>
12443 # include <stddef.h>
12444 #endif
12445 main() {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(0); }
12446 _ACEOF
12447 rm -f conftest$ac_exeext
12448 if { (ac_try="$ac_link"
12449 case "(($ac_try" in
12450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12451 *) ac_try_echo=$ac_try;;
12452 esac
12453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12454 (eval "$ac_link") 2>&5
12455 ac_status=$?
12456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12457 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12458 { (case "(($ac_try" in
12459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12460 *) ac_try_echo=$ac_try;;
12461 esac
12462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12463 (eval "$ac_try") 2>&5
12464 ac_status=$?
12465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12466 (exit $ac_status); }; }; then
12467 res="OK"
12468 else
12469 echo "$as_me: program exited with status $ac_status" >&5
12470 echo "$as_me: failed program was:" >&5
12471 sed 's/^/| /' conftest.$ac_ext >&5
12473 ( exit $ac_status )
12474 res="FAIL"
12476 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12480 if test "$res" = "OK"; then
12481 break
12483 { echo "$as_me:$LINENO: result: $libname library is not usable" >&5
12484 echo "${ECHO_T}$libname library is not usable" >&6; }
12485 LIBS="$olibs"
12487 done
12488 if test "x$olibs" = "x$LIBS"; then
12489 { echo "$as_me:$LINENO: result: no terminal library found" >&5
12490 echo "${ECHO_T}no terminal library found" >&6; }
12494 if test "x$olibs" = "x$LIBS"; then
12495 { echo "$as_me:$LINENO: checking for tgetent()" >&5
12496 echo $ECHO_N "checking for tgetent()... $ECHO_C" >&6; }
12497 cat >conftest.$ac_ext <<_ACEOF
12498 /* confdefs.h. */
12499 _ACEOF
12500 cat confdefs.h >>conftest.$ac_ext
12501 cat >>conftest.$ac_ext <<_ACEOF
12502 /* end confdefs.h. */
12505 main ()
12507 char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist");
12509 return 0;
12511 _ACEOF
12512 rm -f conftest.$ac_objext conftest$ac_exeext
12513 if { (ac_try="$ac_link"
12514 case "(($ac_try" in
12515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12516 *) ac_try_echo=$ac_try;;
12517 esac
12518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12519 (eval "$ac_link") 2>conftest.er1
12520 ac_status=$?
12521 grep -v '^ *+' conftest.er1 >conftest.err
12522 rm -f conftest.er1
12523 cat conftest.err >&5
12524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12525 (exit $ac_status); } && {
12526 test -z "$ac_c_werror_flag" ||
12527 test ! -s conftest.err
12528 } && test -s conftest$ac_exeext &&
12529 $as_test_x conftest$ac_exeext; then
12530 { echo "$as_me:$LINENO: result: yes" >&5
12531 echo "${ECHO_T}yes" >&6; }
12532 else
12533 echo "$as_me: failed program was:" >&5
12534 sed 's/^/| /' conftest.$ac_ext >&5
12536 { { echo "$as_me:$LINENO: error: NOT FOUND!
12537 You need to install a terminal library; for example ncurses.
12538 Or specify the name of the library with --with-tlib." >&5
12539 echo "$as_me: error: NOT FOUND!
12540 You need to install a terminal library; for example ncurses.
12541 Or specify the name of the library with --with-tlib." >&2;}
12542 { (exit 1); exit 1; }; }
12545 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12546 conftest$ac_exeext conftest.$ac_ext
12549 { echo "$as_me:$LINENO: checking whether we talk terminfo" >&5
12550 echo $ECHO_N "checking whether we talk terminfo... $ECHO_C" >&6; }
12551 if test "${vim_cv_terminfo+set}" = set; then
12552 echo $ECHO_N "(cached) $ECHO_C" >&6
12553 else
12555 if test "$cross_compiling" = yes; then
12557 { { echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_terminfo'" >&5
12558 echo "$as_me: error: cross-compiling: please set 'vim_cv_terminfo'" >&2;}
12559 { (exit 1); exit 1; }; }
12561 else
12562 cat >conftest.$ac_ext <<_ACEOF
12564 #include "confdefs.h"
12565 #ifdef HAVE_TERMCAP_H
12566 # include <termcap.h>
12567 #endif
12568 #ifdef HAVE_STRING_H
12569 # include <string.h>
12570 #endif
12571 #if STDC_HEADERS
12572 # include <stdlib.h>
12573 # include <stddef.h>
12574 #endif
12575 main()
12576 {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(!strcmp(s==0 ? "" : s, "1")); }
12578 _ACEOF
12579 rm -f conftest$ac_exeext
12580 if { (ac_try="$ac_link"
12581 case "(($ac_try" in
12582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12583 *) ac_try_echo=$ac_try;;
12584 esac
12585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12586 (eval "$ac_link") 2>&5
12587 ac_status=$?
12588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12589 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12590 { (case "(($ac_try" in
12591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12592 *) ac_try_echo=$ac_try;;
12593 esac
12594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12595 (eval "$ac_try") 2>&5
12596 ac_status=$?
12597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12598 (exit $ac_status); }; }; then
12600 vim_cv_terminfo=no
12602 else
12603 echo "$as_me: program exited with status $ac_status" >&5
12604 echo "$as_me: failed program was:" >&5
12605 sed 's/^/| /' conftest.$ac_ext >&5
12607 ( exit $ac_status )
12609 vim_cv_terminfo=yes
12612 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12618 { echo "$as_me:$LINENO: result: $vim_cv_terminfo" >&5
12619 echo "${ECHO_T}$vim_cv_terminfo" >&6; }
12621 if test "x$vim_cv_terminfo" = "xyes" ; then
12622 cat >>confdefs.h <<\_ACEOF
12623 #define TERMINFO 1
12624 _ACEOF
12628 if test "x$olibs" != "x$LIBS"; then
12629 { echo "$as_me:$LINENO: checking what tgetent() returns for an unknown terminal" >&5
12630 echo $ECHO_N "checking what tgetent() returns for an unknown terminal... $ECHO_C" >&6; }
12631 if test "${vim_cv_tgent+set}" = set; then
12632 echo $ECHO_N "(cached) $ECHO_C" >&6
12633 else
12635 if test "$cross_compiling" = yes; then
12637 { { echo "$as_me:$LINENO: error: failed to compile test program." >&5
12638 echo "$as_me: error: failed to compile test program." >&2;}
12639 { (exit 1); exit 1; }; }
12641 else
12642 cat >conftest.$ac_ext <<_ACEOF
12644 #include "confdefs.h"
12645 #ifdef HAVE_TERMCAP_H
12646 # include <termcap.h>
12647 #endif
12648 #if STDC_HEADERS
12649 # include <stdlib.h>
12650 # include <stddef.h>
12651 #endif
12652 main()
12653 {char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); exit(res != 0); }
12655 _ACEOF
12656 rm -f conftest$ac_exeext
12657 if { (ac_try="$ac_link"
12658 case "(($ac_try" in
12659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12660 *) ac_try_echo=$ac_try;;
12661 esac
12662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12663 (eval "$ac_link") 2>&5
12664 ac_status=$?
12665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12666 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12667 { (case "(($ac_try" in
12668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12669 *) ac_try_echo=$ac_try;;
12670 esac
12671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12672 (eval "$ac_try") 2>&5
12673 ac_status=$?
12674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12675 (exit $ac_status); }; }; then
12677 vim_cv_tgent=zero
12679 else
12680 echo "$as_me: program exited with status $ac_status" >&5
12681 echo "$as_me: failed program was:" >&5
12682 sed 's/^/| /' conftest.$ac_ext >&5
12684 ( exit $ac_status )
12686 vim_cv_tgent=non-zero
12689 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12695 { echo "$as_me:$LINENO: result: $vim_cv_tgent" >&5
12696 echo "${ECHO_T}$vim_cv_tgent" >&6; }
12698 if test "x$vim_cv_tgent" = "xzero" ; then
12699 cat >>confdefs.h <<\_ACEOF
12700 #define TGETENT_ZERO_ERR 0
12701 _ACEOF
12706 { echo "$as_me:$LINENO: checking whether termcap.h contains ospeed" >&5
12707 echo $ECHO_N "checking whether termcap.h contains ospeed... $ECHO_C" >&6; }
12708 cat >conftest.$ac_ext <<_ACEOF
12709 /* confdefs.h. */
12710 _ACEOF
12711 cat confdefs.h >>conftest.$ac_ext
12712 cat >>conftest.$ac_ext <<_ACEOF
12713 /* end confdefs.h. */
12715 #ifdef HAVE_TERMCAP_H
12716 # include <termcap.h>
12717 #endif
12720 main ()
12722 ospeed = 20000
12724 return 0;
12726 _ACEOF
12727 rm -f conftest.$ac_objext conftest$ac_exeext
12728 if { (ac_try="$ac_link"
12729 case "(($ac_try" in
12730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12731 *) ac_try_echo=$ac_try;;
12732 esac
12733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12734 (eval "$ac_link") 2>conftest.er1
12735 ac_status=$?
12736 grep -v '^ *+' conftest.er1 >conftest.err
12737 rm -f conftest.er1
12738 cat conftest.err >&5
12739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12740 (exit $ac_status); } && {
12741 test -z "$ac_c_werror_flag" ||
12742 test ! -s conftest.err
12743 } && test -s conftest$ac_exeext &&
12744 $as_test_x conftest$ac_exeext; then
12745 { echo "$as_me:$LINENO: result: yes" >&5
12746 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
12747 #define HAVE_OSPEED 1
12748 _ACEOF
12750 else
12751 echo "$as_me: failed program was:" >&5
12752 sed 's/^/| /' conftest.$ac_ext >&5
12754 { echo "$as_me:$LINENO: result: no" >&5
12755 echo "${ECHO_T}no" >&6; }
12756 { echo "$as_me:$LINENO: checking whether ospeed can be extern" >&5
12757 echo $ECHO_N "checking whether ospeed can be extern... $ECHO_C" >&6; }
12758 cat >conftest.$ac_ext <<_ACEOF
12759 /* confdefs.h. */
12760 _ACEOF
12761 cat confdefs.h >>conftest.$ac_ext
12762 cat >>conftest.$ac_ext <<_ACEOF
12763 /* end confdefs.h. */
12765 #ifdef HAVE_TERMCAP_H
12766 # include <termcap.h>
12767 #endif
12768 extern short ospeed;
12771 main ()
12773 ospeed = 20000
12775 return 0;
12777 _ACEOF
12778 rm -f conftest.$ac_objext conftest$ac_exeext
12779 if { (ac_try="$ac_link"
12780 case "(($ac_try" in
12781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12782 *) ac_try_echo=$ac_try;;
12783 esac
12784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12785 (eval "$ac_link") 2>conftest.er1
12786 ac_status=$?
12787 grep -v '^ *+' conftest.er1 >conftest.err
12788 rm -f conftest.er1
12789 cat conftest.err >&5
12790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12791 (exit $ac_status); } && {
12792 test -z "$ac_c_werror_flag" ||
12793 test ! -s conftest.err
12794 } && test -s conftest$ac_exeext &&
12795 $as_test_x conftest$ac_exeext; then
12796 { echo "$as_me:$LINENO: result: yes" >&5
12797 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
12798 #define OSPEED_EXTERN 1
12799 _ACEOF
12801 else
12802 echo "$as_me: failed program was:" >&5
12803 sed 's/^/| /' conftest.$ac_ext >&5
12805 { echo "$as_me:$LINENO: result: no" >&5
12806 echo "${ECHO_T}no" >&6; }
12809 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12810 conftest$ac_exeext conftest.$ac_ext
12814 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12815 conftest$ac_exeext conftest.$ac_ext
12817 { echo "$as_me:$LINENO: checking whether termcap.h contains UP, BC and PC" >&5
12818 echo $ECHO_N "checking whether termcap.h contains UP, BC and PC... $ECHO_C" >&6; }
12819 cat >conftest.$ac_ext <<_ACEOF
12820 /* confdefs.h. */
12821 _ACEOF
12822 cat confdefs.h >>conftest.$ac_ext
12823 cat >>conftest.$ac_ext <<_ACEOF
12824 /* end confdefs.h. */
12826 #ifdef HAVE_TERMCAP_H
12827 # include <termcap.h>
12828 #endif
12831 main ()
12833 if (UP == 0 && BC == 0) PC = 1
12835 return 0;
12837 _ACEOF
12838 rm -f conftest.$ac_objext conftest$ac_exeext
12839 if { (ac_try="$ac_link"
12840 case "(($ac_try" in
12841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12842 *) ac_try_echo=$ac_try;;
12843 esac
12844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12845 (eval "$ac_link") 2>conftest.er1
12846 ac_status=$?
12847 grep -v '^ *+' conftest.er1 >conftest.err
12848 rm -f conftest.er1
12849 cat conftest.err >&5
12850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12851 (exit $ac_status); } && {
12852 test -z "$ac_c_werror_flag" ||
12853 test ! -s conftest.err
12854 } && test -s conftest$ac_exeext &&
12855 $as_test_x conftest$ac_exeext; then
12856 { echo "$as_me:$LINENO: result: yes" >&5
12857 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
12858 #define HAVE_UP_BC_PC 1
12859 _ACEOF
12861 else
12862 echo "$as_me: failed program was:" >&5
12863 sed 's/^/| /' conftest.$ac_ext >&5
12865 { echo "$as_me:$LINENO: result: no" >&5
12866 echo "${ECHO_T}no" >&6; }
12867 { echo "$as_me:$LINENO: checking whether UP, BC and PC can be extern" >&5
12868 echo $ECHO_N "checking whether UP, BC and PC can be extern... $ECHO_C" >&6; }
12869 cat >conftest.$ac_ext <<_ACEOF
12870 /* confdefs.h. */
12871 _ACEOF
12872 cat confdefs.h >>conftest.$ac_ext
12873 cat >>conftest.$ac_ext <<_ACEOF
12874 /* end confdefs.h. */
12876 #ifdef HAVE_TERMCAP_H
12877 # include <termcap.h>
12878 #endif
12879 extern char *UP, *BC, PC;
12882 main ()
12884 if (UP == 0 && BC == 0) PC = 1
12886 return 0;
12888 _ACEOF
12889 rm -f conftest.$ac_objext conftest$ac_exeext
12890 if { (ac_try="$ac_link"
12891 case "(($ac_try" in
12892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12893 *) ac_try_echo=$ac_try;;
12894 esac
12895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12896 (eval "$ac_link") 2>conftest.er1
12897 ac_status=$?
12898 grep -v '^ *+' conftest.er1 >conftest.err
12899 rm -f conftest.er1
12900 cat conftest.err >&5
12901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12902 (exit $ac_status); } && {
12903 test -z "$ac_c_werror_flag" ||
12904 test ! -s conftest.err
12905 } && test -s conftest$ac_exeext &&
12906 $as_test_x conftest$ac_exeext; then
12907 { echo "$as_me:$LINENO: result: yes" >&5
12908 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
12909 #define UP_BC_PC_EXTERN 1
12910 _ACEOF
12912 else
12913 echo "$as_me: failed program was:" >&5
12914 sed 's/^/| /' conftest.$ac_ext >&5
12916 { echo "$as_me:$LINENO: result: no" >&5
12917 echo "${ECHO_T}no" >&6; }
12920 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12921 conftest$ac_exeext conftest.$ac_ext
12925 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12926 conftest$ac_exeext conftest.$ac_ext
12928 { echo "$as_me:$LINENO: checking whether tputs() uses outfuntype" >&5
12929 echo $ECHO_N "checking whether tputs() uses outfuntype... $ECHO_C" >&6; }
12930 cat >conftest.$ac_ext <<_ACEOF
12931 /* confdefs.h. */
12932 _ACEOF
12933 cat confdefs.h >>conftest.$ac_ext
12934 cat >>conftest.$ac_ext <<_ACEOF
12935 /* end confdefs.h. */
12937 #ifdef HAVE_TERMCAP_H
12938 # include <termcap.h>
12939 #endif
12942 main ()
12944 extern int xx(); tputs("test", 1, (outfuntype)xx)
12946 return 0;
12948 _ACEOF
12949 rm -f conftest.$ac_objext
12950 if { (ac_try="$ac_compile"
12951 case "(($ac_try" in
12952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12953 *) ac_try_echo=$ac_try;;
12954 esac
12955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12956 (eval "$ac_compile") 2>conftest.er1
12957 ac_status=$?
12958 grep -v '^ *+' conftest.er1 >conftest.err
12959 rm -f conftest.er1
12960 cat conftest.err >&5
12961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12962 (exit $ac_status); } && {
12963 test -z "$ac_c_werror_flag" ||
12964 test ! -s conftest.err
12965 } && test -s conftest.$ac_objext; then
12966 { echo "$as_me:$LINENO: result: yes" >&5
12967 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
12968 #define HAVE_OUTFUNTYPE 1
12969 _ACEOF
12971 else
12972 echo "$as_me: failed program was:" >&5
12973 sed 's/^/| /' conftest.$ac_ext >&5
12975 { echo "$as_me:$LINENO: result: no" >&5
12976 echo "${ECHO_T}no" >&6; }
12979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12981 { echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
12982 echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6; }
12983 cat >conftest.$ac_ext <<_ACEOF
12984 /* confdefs.h. */
12985 _ACEOF
12986 cat confdefs.h >>conftest.$ac_ext
12987 cat >>conftest.$ac_ext <<_ACEOF
12988 /* end confdefs.h. */
12990 #include <sys/types.h>
12991 #include <sys/time.h>
12992 #include <sys/select.h>
12994 main ()
12998 return 0;
13000 _ACEOF
13001 rm -f conftest.$ac_objext
13002 if { (ac_try="$ac_compile"
13003 case "(($ac_try" in
13004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13005 *) ac_try_echo=$ac_try;;
13006 esac
13007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13008 (eval "$ac_compile") 2>conftest.er1
13009 ac_status=$?
13010 grep -v '^ *+' conftest.er1 >conftest.err
13011 rm -f conftest.er1
13012 cat conftest.err >&5
13013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13014 (exit $ac_status); } && {
13015 test -z "$ac_c_werror_flag" ||
13016 test ! -s conftest.err
13017 } && test -s conftest.$ac_objext; then
13018 { echo "$as_me:$LINENO: result: yes" >&5
13019 echo "${ECHO_T}yes" >&6; }
13020 cat >>confdefs.h <<\_ACEOF
13021 #define SYS_SELECT_WITH_SYS_TIME 1
13022 _ACEOF
13024 else
13025 echo "$as_me: failed program was:" >&5
13026 sed 's/^/| /' conftest.$ac_ext >&5
13028 { echo "$as_me:$LINENO: result: no" >&5
13029 echo "${ECHO_T}no" >&6; }
13032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13035 { echo "$as_me:$LINENO: checking for /dev/ptc" >&5
13036 echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6; }
13037 if test -r /dev/ptc; then
13038 cat >>confdefs.h <<\_ACEOF
13039 #define HAVE_DEV_PTC 1
13040 _ACEOF
13042 { echo "$as_me:$LINENO: result: yes" >&5
13043 echo "${ECHO_T}yes" >&6; }
13044 else
13045 { echo "$as_me:$LINENO: result: no" >&5
13046 echo "${ECHO_T}no" >&6; }
13049 { echo "$as_me:$LINENO: checking for SVR4 ptys" >&5
13050 echo $ECHO_N "checking for SVR4 ptys... $ECHO_C" >&6; }
13051 if test -c /dev/ptmx ; then
13052 cat >conftest.$ac_ext <<_ACEOF
13053 /* confdefs.h. */
13054 _ACEOF
13055 cat confdefs.h >>conftest.$ac_ext
13056 cat >>conftest.$ac_ext <<_ACEOF
13057 /* end confdefs.h. */
13060 main ()
13062 ptsname(0);grantpt(0);unlockpt(0);
13064 return 0;
13066 _ACEOF
13067 rm -f conftest.$ac_objext conftest$ac_exeext
13068 if { (ac_try="$ac_link"
13069 case "(($ac_try" in
13070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13071 *) ac_try_echo=$ac_try;;
13072 esac
13073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13074 (eval "$ac_link") 2>conftest.er1
13075 ac_status=$?
13076 grep -v '^ *+' conftest.er1 >conftest.err
13077 rm -f conftest.er1
13078 cat conftest.err >&5
13079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13080 (exit $ac_status); } && {
13081 test -z "$ac_c_werror_flag" ||
13082 test ! -s conftest.err
13083 } && test -s conftest$ac_exeext &&
13084 $as_test_x conftest$ac_exeext; then
13085 { echo "$as_me:$LINENO: result: yes" >&5
13086 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13087 #define HAVE_SVR4_PTYS 1
13088 _ACEOF
13090 else
13091 echo "$as_me: failed program was:" >&5
13092 sed 's/^/| /' conftest.$ac_ext >&5
13094 { echo "$as_me:$LINENO: result: no" >&5
13095 echo "${ECHO_T}no" >&6; }
13098 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13099 conftest$ac_exeext conftest.$ac_ext
13100 else
13101 { echo "$as_me:$LINENO: result: no" >&5
13102 echo "${ECHO_T}no" >&6; }
13105 { echo "$as_me:$LINENO: checking for ptyranges" >&5
13106 echo $ECHO_N "checking for ptyranges... $ECHO_C" >&6; }
13107 if test -d /dev/ptym ; then
13108 pdir='/dev/ptym'
13109 else
13110 pdir='/dev'
13112 cat >conftest.$ac_ext <<_ACEOF
13113 /* confdefs.h. */
13114 _ACEOF
13115 cat confdefs.h >>conftest.$ac_ext
13116 cat >>conftest.$ac_ext <<_ACEOF
13117 /* end confdefs.h. */
13118 #ifdef M_UNIX
13119 yes;
13120 #endif
13122 _ACEOF
13123 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13124 $EGREP "yes" >/dev/null 2>&1; then
13125 ptys=`echo /dev/ptyp??`
13126 else
13127 ptys=`echo $pdir/pty??`
13129 rm -f conftest*
13131 if test "$ptys" != "$pdir/pty??" ; then
13132 p0=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'`
13133 p1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'`
13134 cat >>confdefs.h <<_ACEOF
13135 #define PTYRANGE0 "$p0"
13136 _ACEOF
13138 cat >>confdefs.h <<_ACEOF
13139 #define PTYRANGE1 "$p1"
13140 _ACEOF
13142 { echo "$as_me:$LINENO: result: $p0 / $p1" >&5
13143 echo "${ECHO_T}$p0 / $p1" >&6; }
13144 else
13145 { echo "$as_me:$LINENO: result: don't know" >&5
13146 echo "${ECHO_T}don't know" >&6; }
13149 rm -f conftest_grp
13150 { echo "$as_me:$LINENO: checking default tty permissions/group" >&5
13151 echo $ECHO_N "checking default tty permissions/group... $ECHO_C" >&6; }
13152 if test "${vim_cv_tty_group+set}" = set; then
13153 echo $ECHO_N "(cached) $ECHO_C" >&6
13154 else
13156 if test "$cross_compiling" = yes; then
13158 { { echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_tty_group' and 'vim_cv_tty_mode'" >&5
13159 echo "$as_me: error: cross-compiling: please set 'vim_cv_tty_group' and 'vim_cv_tty_mode'" >&2;}
13160 { (exit 1); exit 1; }; }
13162 else
13163 cat >conftest.$ac_ext <<_ACEOF
13165 #include "confdefs.h"
13166 #include <sys/types.h>
13167 #if STDC_HEADERS
13168 # include <stdlib.h>
13169 # include <stddef.h>
13170 #endif
13171 #ifdef HAVE_UNISTD_H
13172 #include <unistd.h>
13173 #endif
13174 #include <sys/stat.h>
13175 #include <stdio.h>
13176 main()
13178 struct stat sb;
13179 char *x,*ttyname();
13180 int om, m;
13181 FILE *fp;
13183 if (!(x = ttyname(0))) exit(1);
13184 if (stat(x, &sb)) exit(1);
13185 om = sb.st_mode;
13186 if (om & 002) exit(0);
13187 m = system("mesg y");
13188 if (m == -1 || m == 127) exit(1);
13189 if (stat(x, &sb)) exit(1);
13190 m = sb.st_mode;
13191 if (chmod(x, om)) exit(1);
13192 if (m & 002) exit(0);
13193 if (sb.st_gid == getgid()) exit(1);
13194 if (!(fp=fopen("conftest_grp", "w")))
13195 exit(1);
13196 fprintf(fp, "%d\n", sb.st_gid);
13197 fclose(fp);
13198 exit(0);
13201 _ACEOF
13202 rm -f conftest$ac_exeext
13203 if { (ac_try="$ac_link"
13204 case "(($ac_try" in
13205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13206 *) ac_try_echo=$ac_try;;
13207 esac
13208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13209 (eval "$ac_link") 2>&5
13210 ac_status=$?
13211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13212 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13213 { (case "(($ac_try" in
13214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13215 *) ac_try_echo=$ac_try;;
13216 esac
13217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13218 (eval "$ac_try") 2>&5
13219 ac_status=$?
13220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13221 (exit $ac_status); }; }; then
13223 if test -f conftest_grp; then
13224 vim_cv_tty_group=`cat conftest_grp`
13225 if test "x$vim_cv_tty_mode" = "x" ; then
13226 vim_cv_tty_mode=0620
13228 { echo "$as_me:$LINENO: result: pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&5
13229 echo "${ECHO_T}pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&6; }
13230 else
13231 vim_cv_tty_group=world
13232 { echo "$as_me:$LINENO: result: ptys are world accessable" >&5
13233 echo "${ECHO_T}ptys are world accessable" >&6; }
13236 else
13237 echo "$as_me: program exited with status $ac_status" >&5
13238 echo "$as_me: failed program was:" >&5
13239 sed 's/^/| /' conftest.$ac_ext >&5
13241 ( exit $ac_status )
13243 vim_cv_tty_group=world
13244 { echo "$as_me:$LINENO: result: can't determine - assume ptys are world accessable" >&5
13245 echo "${ECHO_T}can't determine - assume ptys are world accessable" >&6; }
13248 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13254 { echo "$as_me:$LINENO: result: $vim_cv_tty_group" >&5
13255 echo "${ECHO_T}$vim_cv_tty_group" >&6; }
13256 rm -f conftest_grp
13258 if test "x$vim_cv_tty_group" != "xworld" ; then
13259 cat >>confdefs.h <<_ACEOF
13260 #define PTYGROUP $vim_cv_tty_group
13261 _ACEOF
13263 if test "x$vim_cv_tty_mode" = "x" ; then
13264 { { 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
13265 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;}
13266 { (exit 1); exit 1; }; }
13267 else
13268 cat >>confdefs.h <<\_ACEOF
13269 #define PTYMODE 0620
13270 _ACEOF
13276 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13277 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
13278 if test "${ac_cv_type_signal+set}" = set; then
13279 echo $ECHO_N "(cached) $ECHO_C" >&6
13280 else
13281 cat >conftest.$ac_ext <<_ACEOF
13282 /* confdefs.h. */
13283 _ACEOF
13284 cat confdefs.h >>conftest.$ac_ext
13285 cat >>conftest.$ac_ext <<_ACEOF
13286 /* end confdefs.h. */
13287 #include <sys/types.h>
13288 #include <signal.h>
13291 main ()
13293 return *(signal (0, 0)) (0) == 1;
13295 return 0;
13297 _ACEOF
13298 rm -f conftest.$ac_objext
13299 if { (ac_try="$ac_compile"
13300 case "(($ac_try" in
13301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13302 *) ac_try_echo=$ac_try;;
13303 esac
13304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13305 (eval "$ac_compile") 2>conftest.er1
13306 ac_status=$?
13307 grep -v '^ *+' conftest.er1 >conftest.err
13308 rm -f conftest.er1
13309 cat conftest.err >&5
13310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13311 (exit $ac_status); } && {
13312 test -z "$ac_c_werror_flag" ||
13313 test ! -s conftest.err
13314 } && test -s conftest.$ac_objext; then
13315 ac_cv_type_signal=int
13316 else
13317 echo "$as_me: failed program was:" >&5
13318 sed 's/^/| /' conftest.$ac_ext >&5
13320 ac_cv_type_signal=void
13323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13325 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
13326 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
13328 cat >>confdefs.h <<_ACEOF
13329 #define RETSIGTYPE $ac_cv_type_signal
13330 _ACEOF
13334 if test $ac_cv_type_signal = void; then
13335 cat >>confdefs.h <<\_ACEOF
13336 #define SIGRETURN return
13337 _ACEOF
13339 else
13340 cat >>confdefs.h <<\_ACEOF
13341 #define SIGRETURN return 0
13342 _ACEOF
13346 { echo "$as_me:$LINENO: checking for struct sigcontext" >&5
13347 echo $ECHO_N "checking for struct sigcontext... $ECHO_C" >&6; }
13348 cat >conftest.$ac_ext <<_ACEOF
13349 /* confdefs.h. */
13350 _ACEOF
13351 cat confdefs.h >>conftest.$ac_ext
13352 cat >>conftest.$ac_ext <<_ACEOF
13353 /* end confdefs.h. */
13355 #include <signal.h>
13356 test_sig()
13358 struct sigcontext *scont;
13359 scont = (struct sigcontext *)0;
13360 return 1;
13363 main ()
13367 return 0;
13369 _ACEOF
13370 rm -f conftest.$ac_objext
13371 if { (ac_try="$ac_compile"
13372 case "(($ac_try" in
13373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13374 *) ac_try_echo=$ac_try;;
13375 esac
13376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13377 (eval "$ac_compile") 2>conftest.er1
13378 ac_status=$?
13379 grep -v '^ *+' conftest.er1 >conftest.err
13380 rm -f conftest.er1
13381 cat conftest.err >&5
13382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13383 (exit $ac_status); } && {
13384 test -z "$ac_c_werror_flag" ||
13385 test ! -s conftest.err
13386 } && test -s conftest.$ac_objext; then
13387 { echo "$as_me:$LINENO: result: yes" >&5
13388 echo "${ECHO_T}yes" >&6; }
13389 cat >>confdefs.h <<\_ACEOF
13390 #define HAVE_SIGCONTEXT 1
13391 _ACEOF
13393 else
13394 echo "$as_me: failed program was:" >&5
13395 sed 's/^/| /' conftest.$ac_ext >&5
13397 { echo "$as_me:$LINENO: result: no" >&5
13398 echo "${ECHO_T}no" >&6; }
13401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13403 { echo "$as_me:$LINENO: checking getcwd implementation is broken" >&5
13404 echo $ECHO_N "checking getcwd implementation is broken... $ECHO_C" >&6; }
13405 if test "${vim_cv_getcwd_broken+set}" = set; then
13406 echo $ECHO_N "(cached) $ECHO_C" >&6
13407 else
13409 if test "$cross_compiling" = yes; then
13411 { { echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_getcwd_broken'" >&5
13412 echo "$as_me: error: cross-compiling: please set 'vim_cv_getcwd_broken'" >&2;}
13413 { (exit 1); exit 1; }; }
13415 else
13416 cat >conftest.$ac_ext <<_ACEOF
13418 #include "confdefs.h"
13419 #ifdef HAVE_UNISTD_H
13420 #include <unistd.h>
13421 #endif
13422 char *dagger[] = { "IFS=pwd", 0 };
13423 main()
13425 char buffer[500];
13426 extern char **environ;
13427 environ = dagger;
13428 return getcwd(buffer, 500) ? 0 : 1;
13431 _ACEOF
13432 rm -f conftest$ac_exeext
13433 if { (ac_try="$ac_link"
13434 case "(($ac_try" in
13435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13436 *) ac_try_echo=$ac_try;;
13437 esac
13438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13439 (eval "$ac_link") 2>&5
13440 ac_status=$?
13441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13442 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13443 { (case "(($ac_try" in
13444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13445 *) ac_try_echo=$ac_try;;
13446 esac
13447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13448 (eval "$ac_try") 2>&5
13449 ac_status=$?
13450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13451 (exit $ac_status); }; }; then
13453 vim_cv_getcwd_broken=no
13455 else
13456 echo "$as_me: program exited with status $ac_status" >&5
13457 echo "$as_me: failed program was:" >&5
13458 sed 's/^/| /' conftest.$ac_ext >&5
13460 ( exit $ac_status )
13462 vim_cv_getcwd_broken=yes
13465 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13471 { echo "$as_me:$LINENO: result: $vim_cv_getcwd_broken" >&5
13472 echo "${ECHO_T}$vim_cv_getcwd_broken" >&6; }
13474 if test "x$vim_cv_getcwd_broken" = "xyes" ; then
13475 cat >>confdefs.h <<\_ACEOF
13476 #define BAD_GETCWD 1
13477 _ACEOF
13527 for ac_func in bcmp fchdir fchown fseeko fsync ftello getcwd getpseudotty \
13528 getpwnam getpwuid getrlimit gettimeofday getwd lstat memcmp \
13529 memset nanosleep opendir putenv qsort readlink select setenv \
13530 setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \
13531 sigvec strcasecmp strerror strftime stricmp strncasecmp \
13532 strnicmp strpbrk strtol tgetent towlower towupper iswupper \
13533 usleep utime utimes
13535 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13536 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13537 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13538 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13539 echo $ECHO_N "(cached) $ECHO_C" >&6
13540 else
13541 cat >conftest.$ac_ext <<_ACEOF
13542 /* confdefs.h. */
13543 _ACEOF
13544 cat confdefs.h >>conftest.$ac_ext
13545 cat >>conftest.$ac_ext <<_ACEOF
13546 /* end confdefs.h. */
13547 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13548 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13549 #define $ac_func innocuous_$ac_func
13551 /* System header to define __stub macros and hopefully few prototypes,
13552 which can conflict with char $ac_func (); below.
13553 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13554 <limits.h> exists even on freestanding compilers. */
13556 #ifdef __STDC__
13557 # include <limits.h>
13558 #else
13559 # include <assert.h>
13560 #endif
13562 #undef $ac_func
13564 /* Override any GCC internal prototype to avoid an error.
13565 Use char because int might match the return type of a GCC
13566 builtin and then its argument prototype would still apply. */
13567 #ifdef __cplusplus
13568 extern "C"
13569 #endif
13570 char $ac_func ();
13571 /* The GNU C library defines this for functions which it implements
13572 to always fail with ENOSYS. Some functions are actually named
13573 something starting with __ and the normal name is an alias. */
13574 #if defined __stub_$ac_func || defined __stub___$ac_func
13575 choke me
13576 #endif
13579 main ()
13581 return $ac_func ();
13583 return 0;
13585 _ACEOF
13586 rm -f conftest.$ac_objext conftest$ac_exeext
13587 if { (ac_try="$ac_link"
13588 case "(($ac_try" in
13589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13590 *) ac_try_echo=$ac_try;;
13591 esac
13592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13593 (eval "$ac_link") 2>conftest.er1
13594 ac_status=$?
13595 grep -v '^ *+' conftest.er1 >conftest.err
13596 rm -f conftest.er1
13597 cat conftest.err >&5
13598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13599 (exit $ac_status); } && {
13600 test -z "$ac_c_werror_flag" ||
13601 test ! -s conftest.err
13602 } && test -s conftest$ac_exeext &&
13603 $as_test_x conftest$ac_exeext; then
13604 eval "$as_ac_var=yes"
13605 else
13606 echo "$as_me: failed program was:" >&5
13607 sed 's/^/| /' conftest.$ac_ext >&5
13609 eval "$as_ac_var=no"
13612 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13613 conftest$ac_exeext conftest.$ac_ext
13615 ac_res=`eval echo '${'$as_ac_var'}'`
13616 { echo "$as_me:$LINENO: result: $ac_res" >&5
13617 echo "${ECHO_T}$ac_res" >&6; }
13618 if test `eval echo '${'$as_ac_var'}'` = yes; then
13619 cat >>confdefs.h <<_ACEOF
13620 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13621 _ACEOF
13624 done
13627 { echo "$as_me:$LINENO: checking for st_blksize" >&5
13628 echo $ECHO_N "checking for st_blksize... $ECHO_C" >&6; }
13629 cat >conftest.$ac_ext <<_ACEOF
13630 /* confdefs.h. */
13631 _ACEOF
13632 cat confdefs.h >>conftest.$ac_ext
13633 cat >>conftest.$ac_ext <<_ACEOF
13634 /* end confdefs.h. */
13635 #include <sys/types.h>
13636 #include <sys/stat.h>
13638 main ()
13640 struct stat st;
13641 int n;
13643 stat("/", &st);
13644 n = (int)st.st_blksize;
13646 return 0;
13648 _ACEOF
13649 rm -f conftest.$ac_objext
13650 if { (ac_try="$ac_compile"
13651 case "(($ac_try" in
13652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13653 *) ac_try_echo=$ac_try;;
13654 esac
13655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13656 (eval "$ac_compile") 2>conftest.er1
13657 ac_status=$?
13658 grep -v '^ *+' conftest.er1 >conftest.err
13659 rm -f conftest.er1
13660 cat conftest.err >&5
13661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13662 (exit $ac_status); } && {
13663 test -z "$ac_c_werror_flag" ||
13664 test ! -s conftest.err
13665 } && test -s conftest.$ac_objext; then
13666 { echo "$as_me:$LINENO: result: yes" >&5
13667 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13668 #define HAVE_ST_BLKSIZE 1
13669 _ACEOF
13671 else
13672 echo "$as_me: failed program was:" >&5
13673 sed 's/^/| /' conftest.$ac_ext >&5
13675 { echo "$as_me:$LINENO: result: no" >&5
13676 echo "${ECHO_T}no" >&6; }
13679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13681 { echo "$as_me:$LINENO: checking whether stat() ignores a trailing slash" >&5
13682 echo $ECHO_N "checking whether stat() ignores a trailing slash... $ECHO_C" >&6; }
13683 if test "${vim_cv_stat_ignores_slash+set}" = set; then
13684 echo $ECHO_N "(cached) $ECHO_C" >&6
13685 else
13687 if test "$cross_compiling" = yes; then
13689 { { echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_stat_ignores_slash'" >&5
13690 echo "$as_me: error: cross-compiling: please set 'vim_cv_stat_ignores_slash'" >&2;}
13691 { (exit 1); exit 1; }; }
13693 else
13694 cat >conftest.$ac_ext <<_ACEOF
13696 #include "confdefs.h"
13697 #if STDC_HEADERS
13698 # include <stdlib.h>
13699 # include <stddef.h>
13700 #endif
13701 #include <sys/types.h>
13702 #include <sys/stat.h>
13703 main() {struct stat st; exit(stat("configure/", &st) != 0); }
13705 _ACEOF
13706 rm -f conftest$ac_exeext
13707 if { (ac_try="$ac_link"
13708 case "(($ac_try" in
13709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13710 *) ac_try_echo=$ac_try;;
13711 esac
13712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13713 (eval "$ac_link") 2>&5
13714 ac_status=$?
13715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13716 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13717 { (case "(($ac_try" in
13718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13719 *) ac_try_echo=$ac_try;;
13720 esac
13721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13722 (eval "$ac_try") 2>&5
13723 ac_status=$?
13724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13725 (exit $ac_status); }; }; then
13727 vim_cv_stat_ignores_slash=yes
13729 else
13730 echo "$as_me: program exited with status $ac_status" >&5
13731 echo "$as_me: failed program was:" >&5
13732 sed 's/^/| /' conftest.$ac_ext >&5
13734 ( exit $ac_status )
13736 vim_cv_stat_ignores_slash=no
13739 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13745 { echo "$as_me:$LINENO: result: $vim_cv_stat_ignores_slash" >&5
13746 echo "${ECHO_T}$vim_cv_stat_ignores_slash" >&6; }
13748 if test "x$vim_cv_stat_ignores_slash" = "xyes" ; then
13749 cat >>confdefs.h <<\_ACEOF
13750 #define STAT_IGNORES_SLASH 1
13751 _ACEOF
13755 { echo "$as_me:$LINENO: checking for iconv_open()" >&5
13756 echo $ECHO_N "checking for iconv_open()... $ECHO_C" >&6; }
13757 save_LIBS="$LIBS"
13758 LIBS="$LIBS -liconv"
13759 cat >conftest.$ac_ext <<_ACEOF
13760 /* confdefs.h. */
13761 _ACEOF
13762 cat confdefs.h >>conftest.$ac_ext
13763 cat >>conftest.$ac_ext <<_ACEOF
13764 /* end confdefs.h. */
13766 #ifdef HAVE_ICONV_H
13767 # include <iconv.h>
13768 #endif
13771 main ()
13773 iconv_open("fr", "to");
13775 return 0;
13777 _ACEOF
13778 rm -f conftest.$ac_objext conftest$ac_exeext
13779 if { (ac_try="$ac_link"
13780 case "(($ac_try" in
13781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13782 *) ac_try_echo=$ac_try;;
13783 esac
13784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13785 (eval "$ac_link") 2>conftest.er1
13786 ac_status=$?
13787 grep -v '^ *+' conftest.er1 >conftest.err
13788 rm -f conftest.er1
13789 cat conftest.err >&5
13790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13791 (exit $ac_status); } && {
13792 test -z "$ac_c_werror_flag" ||
13793 test ! -s conftest.err
13794 } && test -s conftest$ac_exeext &&
13795 $as_test_x conftest$ac_exeext; then
13796 { echo "$as_me:$LINENO: result: yes; with -liconv" >&5
13797 echo "${ECHO_T}yes; with -liconv" >&6; }; cat >>confdefs.h <<\_ACEOF
13798 #define HAVE_ICONV 1
13799 _ACEOF
13801 else
13802 echo "$as_me: failed program was:" >&5
13803 sed 's/^/| /' conftest.$ac_ext >&5
13805 LIBS="$save_LIBS"
13806 cat >conftest.$ac_ext <<_ACEOF
13807 /* confdefs.h. */
13808 _ACEOF
13809 cat confdefs.h >>conftest.$ac_ext
13810 cat >>conftest.$ac_ext <<_ACEOF
13811 /* end confdefs.h. */
13813 #ifdef HAVE_ICONV_H
13814 # include <iconv.h>
13815 #endif
13818 main ()
13820 iconv_open("fr", "to");
13822 return 0;
13824 _ACEOF
13825 rm -f conftest.$ac_objext conftest$ac_exeext
13826 if { (ac_try="$ac_link"
13827 case "(($ac_try" in
13828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13829 *) ac_try_echo=$ac_try;;
13830 esac
13831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13832 (eval "$ac_link") 2>conftest.er1
13833 ac_status=$?
13834 grep -v '^ *+' conftest.er1 >conftest.err
13835 rm -f conftest.er1
13836 cat conftest.err >&5
13837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13838 (exit $ac_status); } && {
13839 test -z "$ac_c_werror_flag" ||
13840 test ! -s conftest.err
13841 } && test -s conftest$ac_exeext &&
13842 $as_test_x conftest$ac_exeext; then
13843 { echo "$as_me:$LINENO: result: yes" >&5
13844 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13845 #define HAVE_ICONV 1
13846 _ACEOF
13848 else
13849 echo "$as_me: failed program was:" >&5
13850 sed 's/^/| /' conftest.$ac_ext >&5
13852 { echo "$as_me:$LINENO: result: no" >&5
13853 echo "${ECHO_T}no" >&6; }
13856 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13857 conftest$ac_exeext conftest.$ac_ext
13860 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13861 conftest$ac_exeext conftest.$ac_ext
13864 { echo "$as_me:$LINENO: checking for nl_langinfo(CODESET)" >&5
13865 echo $ECHO_N "checking for nl_langinfo(CODESET)... $ECHO_C" >&6; }
13866 cat >conftest.$ac_ext <<_ACEOF
13867 /* confdefs.h. */
13868 _ACEOF
13869 cat confdefs.h >>conftest.$ac_ext
13870 cat >>conftest.$ac_ext <<_ACEOF
13871 /* end confdefs.h. */
13873 #ifdef HAVE_LANGINFO_H
13874 # include <langinfo.h>
13875 #endif
13878 main ()
13880 char *cs = nl_langinfo(CODESET);
13882 return 0;
13884 _ACEOF
13885 rm -f conftest.$ac_objext conftest$ac_exeext
13886 if { (ac_try="$ac_link"
13887 case "(($ac_try" in
13888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13889 *) ac_try_echo=$ac_try;;
13890 esac
13891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13892 (eval "$ac_link") 2>conftest.er1
13893 ac_status=$?
13894 grep -v '^ *+' conftest.er1 >conftest.err
13895 rm -f conftest.er1
13896 cat conftest.err >&5
13897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13898 (exit $ac_status); } && {
13899 test -z "$ac_c_werror_flag" ||
13900 test ! -s conftest.err
13901 } && test -s conftest$ac_exeext &&
13902 $as_test_x conftest$ac_exeext; then
13903 { echo "$as_me:$LINENO: result: yes" >&5
13904 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13905 #define HAVE_NL_LANGINFO_CODESET 1
13906 _ACEOF
13908 else
13909 echo "$as_me: failed program was:" >&5
13910 sed 's/^/| /' conftest.$ac_ext >&5
13912 { echo "$as_me:$LINENO: result: no" >&5
13913 echo "${ECHO_T}no" >&6; }
13916 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13917 conftest$ac_exeext conftest.$ac_ext
13920 { echo "$as_me:$LINENO: checking for strtod in -lm" >&5
13921 echo $ECHO_N "checking for strtod in -lm... $ECHO_C" >&6; }
13922 if test "${ac_cv_lib_m_strtod+set}" = set; then
13923 echo $ECHO_N "(cached) $ECHO_C" >&6
13924 else
13925 ac_check_lib_save_LIBS=$LIBS
13926 LIBS="-lm $LIBS"
13927 cat >conftest.$ac_ext <<_ACEOF
13928 /* confdefs.h. */
13929 _ACEOF
13930 cat confdefs.h >>conftest.$ac_ext
13931 cat >>conftest.$ac_ext <<_ACEOF
13932 /* end confdefs.h. */
13934 /* Override any GCC internal prototype to avoid an error.
13935 Use char because int might match the return type of a GCC
13936 builtin and then its argument prototype would still apply. */
13937 #ifdef __cplusplus
13938 extern "C"
13939 #endif
13940 char strtod ();
13942 main ()
13944 return strtod ();
13946 return 0;
13948 _ACEOF
13949 rm -f conftest.$ac_objext conftest$ac_exeext
13950 if { (ac_try="$ac_link"
13951 case "(($ac_try" in
13952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13953 *) ac_try_echo=$ac_try;;
13954 esac
13955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13956 (eval "$ac_link") 2>conftest.er1
13957 ac_status=$?
13958 grep -v '^ *+' conftest.er1 >conftest.err
13959 rm -f conftest.er1
13960 cat conftest.err >&5
13961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13962 (exit $ac_status); } && {
13963 test -z "$ac_c_werror_flag" ||
13964 test ! -s conftest.err
13965 } && test -s conftest$ac_exeext &&
13966 $as_test_x conftest$ac_exeext; then
13967 ac_cv_lib_m_strtod=yes
13968 else
13969 echo "$as_me: failed program was:" >&5
13970 sed 's/^/| /' conftest.$ac_ext >&5
13972 ac_cv_lib_m_strtod=no
13975 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13976 conftest$ac_exeext conftest.$ac_ext
13977 LIBS=$ac_check_lib_save_LIBS
13979 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_strtod" >&5
13980 echo "${ECHO_T}$ac_cv_lib_m_strtod" >&6; }
13981 if test $ac_cv_lib_m_strtod = yes; then
13982 cat >>confdefs.h <<_ACEOF
13983 #define HAVE_LIBM 1
13984 _ACEOF
13986 LIBS="-lm $LIBS"
13990 { echo "$as_me:$LINENO: checking for strtod() and other floating point functions" >&5
13991 echo $ECHO_N "checking for strtod() and other floating point functions... $ECHO_C" >&6; }
13992 cat >conftest.$ac_ext <<_ACEOF
13993 /* confdefs.h. */
13994 _ACEOF
13995 cat confdefs.h >>conftest.$ac_ext
13996 cat >>conftest.$ac_ext <<_ACEOF
13997 /* end confdefs.h. */
13999 #ifdef HAVE_MATH_H
14000 # include <math.h>
14001 #endif
14002 #if STDC_HEADERS
14003 # include <stdlib.h>
14004 # include <stddef.h>
14005 #endif
14008 main ()
14010 char *s; double d;
14011 d = strtod("1.1", &s);
14012 d = fabs(1.11);
14013 d = ceil(1.11);
14014 d = floor(1.11);
14015 d = log10(1.11);
14016 d = pow(1.11, 2.22);
14017 d = sqrt(1.11);
14018 d = sin(1.11);
14019 d = cos(1.11);
14020 d = atan(1.11);
14023 return 0;
14025 _ACEOF
14026 rm -f conftest.$ac_objext conftest$ac_exeext
14027 if { (ac_try="$ac_link"
14028 case "(($ac_try" in
14029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14030 *) ac_try_echo=$ac_try;;
14031 esac
14032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14033 (eval "$ac_link") 2>conftest.er1
14034 ac_status=$?
14035 grep -v '^ *+' conftest.er1 >conftest.err
14036 rm -f conftest.er1
14037 cat conftest.err >&5
14038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14039 (exit $ac_status); } && {
14040 test -z "$ac_c_werror_flag" ||
14041 test ! -s conftest.err
14042 } && test -s conftest$ac_exeext &&
14043 $as_test_x conftest$ac_exeext; then
14044 { echo "$as_me:$LINENO: result: yes" >&5
14045 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14046 #define HAVE_FLOAT_FUNCS 1
14047 _ACEOF
14049 else
14050 echo "$as_me: failed program was:" >&5
14051 sed 's/^/| /' conftest.$ac_ext >&5
14053 { echo "$as_me:$LINENO: result: no" >&5
14054 echo "${ECHO_T}no" >&6; }
14057 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14058 conftest$ac_exeext conftest.$ac_ext
14060 { echo "$as_me:$LINENO: checking --disable-acl argument" >&5
14061 echo $ECHO_N "checking --disable-acl argument... $ECHO_C" >&6; }
14062 # Check whether --enable-acl was given.
14063 if test "${enable_acl+set}" = set; then
14064 enableval=$enable_acl;
14065 else
14066 enable_acl="yes"
14069 if test "$enable_acl" = "yes"; then
14070 { echo "$as_me:$LINENO: result: no" >&5
14071 echo "${ECHO_T}no" >&6; }
14072 { echo "$as_me:$LINENO: checking for acl_get_file in -lposix1e" >&5
14073 echo $ECHO_N "checking for acl_get_file in -lposix1e... $ECHO_C" >&6; }
14074 if test "${ac_cv_lib_posix1e_acl_get_file+set}" = set; then
14075 echo $ECHO_N "(cached) $ECHO_C" >&6
14076 else
14077 ac_check_lib_save_LIBS=$LIBS
14078 LIBS="-lposix1e $LIBS"
14079 cat >conftest.$ac_ext <<_ACEOF
14080 /* confdefs.h. */
14081 _ACEOF
14082 cat confdefs.h >>conftest.$ac_ext
14083 cat >>conftest.$ac_ext <<_ACEOF
14084 /* end confdefs.h. */
14086 /* Override any GCC internal prototype to avoid an error.
14087 Use char because int might match the return type of a GCC
14088 builtin and then its argument prototype would still apply. */
14089 #ifdef __cplusplus
14090 extern "C"
14091 #endif
14092 char acl_get_file ();
14094 main ()
14096 return acl_get_file ();
14098 return 0;
14100 _ACEOF
14101 rm -f conftest.$ac_objext conftest$ac_exeext
14102 if { (ac_try="$ac_link"
14103 case "(($ac_try" in
14104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14105 *) ac_try_echo=$ac_try;;
14106 esac
14107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14108 (eval "$ac_link") 2>conftest.er1
14109 ac_status=$?
14110 grep -v '^ *+' conftest.er1 >conftest.err
14111 rm -f conftest.er1
14112 cat conftest.err >&5
14113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14114 (exit $ac_status); } && {
14115 test -z "$ac_c_werror_flag" ||
14116 test ! -s conftest.err
14117 } && test -s conftest$ac_exeext &&
14118 $as_test_x conftest$ac_exeext; then
14119 ac_cv_lib_posix1e_acl_get_file=yes
14120 else
14121 echo "$as_me: failed program was:" >&5
14122 sed 's/^/| /' conftest.$ac_ext >&5
14124 ac_cv_lib_posix1e_acl_get_file=no
14127 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14128 conftest$ac_exeext conftest.$ac_ext
14129 LIBS=$ac_check_lib_save_LIBS
14131 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix1e_acl_get_file" >&5
14132 echo "${ECHO_T}$ac_cv_lib_posix1e_acl_get_file" >&6; }
14133 if test $ac_cv_lib_posix1e_acl_get_file = yes; then
14134 LIBS="$LIBS -lposix1e"
14135 else
14136 { echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
14137 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
14138 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
14139 echo $ECHO_N "(cached) $ECHO_C" >&6
14140 else
14141 ac_check_lib_save_LIBS=$LIBS
14142 LIBS="-lacl $LIBS"
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 /* Override any GCC internal prototype to avoid an error.
14151 Use char because int might match the return type of a GCC
14152 builtin and then its argument prototype would still apply. */
14153 #ifdef __cplusplus
14154 extern "C"
14155 #endif
14156 char acl_get_file ();
14158 main ()
14160 return acl_get_file ();
14162 return 0;
14164 _ACEOF
14165 rm -f conftest.$ac_objext conftest$ac_exeext
14166 if { (ac_try="$ac_link"
14167 case "(($ac_try" in
14168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14169 *) ac_try_echo=$ac_try;;
14170 esac
14171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14172 (eval "$ac_link") 2>conftest.er1
14173 ac_status=$?
14174 grep -v '^ *+' conftest.er1 >conftest.err
14175 rm -f conftest.er1
14176 cat conftest.err >&5
14177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14178 (exit $ac_status); } && {
14179 test -z "$ac_c_werror_flag" ||
14180 test ! -s conftest.err
14181 } && test -s conftest$ac_exeext &&
14182 $as_test_x conftest$ac_exeext; then
14183 ac_cv_lib_acl_acl_get_file=yes
14184 else
14185 echo "$as_me: failed program was:" >&5
14186 sed 's/^/| /' conftest.$ac_ext >&5
14188 ac_cv_lib_acl_acl_get_file=no
14191 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14192 conftest$ac_exeext conftest.$ac_ext
14193 LIBS=$ac_check_lib_save_LIBS
14195 { echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
14196 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
14197 if test $ac_cv_lib_acl_acl_get_file = yes; then
14198 LIBS="$LIBS -lacl"
14199 { echo "$as_me:$LINENO: checking for fgetxattr in -lattr" >&5
14200 echo $ECHO_N "checking for fgetxattr in -lattr... $ECHO_C" >&6; }
14201 if test "${ac_cv_lib_attr_fgetxattr+set}" = set; then
14202 echo $ECHO_N "(cached) $ECHO_C" >&6
14203 else
14204 ac_check_lib_save_LIBS=$LIBS
14205 LIBS="-lattr $LIBS"
14206 cat >conftest.$ac_ext <<_ACEOF
14207 /* confdefs.h. */
14208 _ACEOF
14209 cat confdefs.h >>conftest.$ac_ext
14210 cat >>conftest.$ac_ext <<_ACEOF
14211 /* end confdefs.h. */
14213 /* Override any GCC internal prototype to avoid an error.
14214 Use char because int might match the return type of a GCC
14215 builtin and then its argument prototype would still apply. */
14216 #ifdef __cplusplus
14217 extern "C"
14218 #endif
14219 char fgetxattr ();
14221 main ()
14223 return fgetxattr ();
14225 return 0;
14227 _ACEOF
14228 rm -f conftest.$ac_objext conftest$ac_exeext
14229 if { (ac_try="$ac_link"
14230 case "(($ac_try" in
14231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14232 *) ac_try_echo=$ac_try;;
14233 esac
14234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14235 (eval "$ac_link") 2>conftest.er1
14236 ac_status=$?
14237 grep -v '^ *+' conftest.er1 >conftest.err
14238 rm -f conftest.er1
14239 cat conftest.err >&5
14240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14241 (exit $ac_status); } && {
14242 test -z "$ac_c_werror_flag" ||
14243 test ! -s conftest.err
14244 } && test -s conftest$ac_exeext &&
14245 $as_test_x conftest$ac_exeext; then
14246 ac_cv_lib_attr_fgetxattr=yes
14247 else
14248 echo "$as_me: failed program was:" >&5
14249 sed 's/^/| /' conftest.$ac_ext >&5
14251 ac_cv_lib_attr_fgetxattr=no
14254 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14255 conftest$ac_exeext conftest.$ac_ext
14256 LIBS=$ac_check_lib_save_LIBS
14258 { echo "$as_me:$LINENO: result: $ac_cv_lib_attr_fgetxattr" >&5
14259 echo "${ECHO_T}$ac_cv_lib_attr_fgetxattr" >&6; }
14260 if test $ac_cv_lib_attr_fgetxattr = yes; then
14261 LIBS="$LIBS -lattr"
14269 { echo "$as_me:$LINENO: checking for POSIX ACL support" >&5
14270 echo $ECHO_N "checking for POSIX ACL support... $ECHO_C" >&6; }
14271 cat >conftest.$ac_ext <<_ACEOF
14272 /* confdefs.h. */
14273 _ACEOF
14274 cat confdefs.h >>conftest.$ac_ext
14275 cat >>conftest.$ac_ext <<_ACEOF
14276 /* end confdefs.h. */
14278 #include <sys/types.h>
14279 #ifdef HAVE_SYS_ACL_H
14280 # include <sys/acl.h>
14281 #endif
14282 acl_t acl;
14284 main ()
14286 acl = acl_get_file("foo", ACL_TYPE_ACCESS);
14287 acl_set_file("foo", ACL_TYPE_ACCESS, acl);
14288 acl_free(acl);
14290 return 0;
14292 _ACEOF
14293 rm -f conftest.$ac_objext conftest$ac_exeext
14294 if { (ac_try="$ac_link"
14295 case "(($ac_try" in
14296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14297 *) ac_try_echo=$ac_try;;
14298 esac
14299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14300 (eval "$ac_link") 2>conftest.er1
14301 ac_status=$?
14302 grep -v '^ *+' conftest.er1 >conftest.err
14303 rm -f conftest.er1
14304 cat conftest.err >&5
14305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14306 (exit $ac_status); } && {
14307 test -z "$ac_c_werror_flag" ||
14308 test ! -s conftest.err
14309 } && test -s conftest$ac_exeext &&
14310 $as_test_x conftest$ac_exeext; then
14311 { echo "$as_me:$LINENO: result: yes" >&5
14312 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14313 #define HAVE_POSIX_ACL 1
14314 _ACEOF
14316 else
14317 echo "$as_me: failed program was:" >&5
14318 sed 's/^/| /' conftest.$ac_ext >&5
14320 { echo "$as_me:$LINENO: result: no" >&5
14321 echo "${ECHO_T}no" >&6; }
14324 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14325 conftest$ac_exeext conftest.$ac_ext
14327 { echo "$as_me:$LINENO: checking for Solaris ACL support" >&5
14328 echo $ECHO_N "checking for Solaris ACL support... $ECHO_C" >&6; }
14329 cat >conftest.$ac_ext <<_ACEOF
14330 /* confdefs.h. */
14331 _ACEOF
14332 cat confdefs.h >>conftest.$ac_ext
14333 cat >>conftest.$ac_ext <<_ACEOF
14334 /* end confdefs.h. */
14336 #ifdef HAVE_SYS_ACL_H
14337 # include <sys/acl.h>
14338 #endif
14340 main ()
14342 acl("foo", GETACLCNT, 0, NULL);
14345 return 0;
14347 _ACEOF
14348 rm -f conftest.$ac_objext conftest$ac_exeext
14349 if { (ac_try="$ac_link"
14350 case "(($ac_try" in
14351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14352 *) ac_try_echo=$ac_try;;
14353 esac
14354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14355 (eval "$ac_link") 2>conftest.er1
14356 ac_status=$?
14357 grep -v '^ *+' conftest.er1 >conftest.err
14358 rm -f conftest.er1
14359 cat conftest.err >&5
14360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14361 (exit $ac_status); } && {
14362 test -z "$ac_c_werror_flag" ||
14363 test ! -s conftest.err
14364 } && test -s conftest$ac_exeext &&
14365 $as_test_x conftest$ac_exeext; then
14366 { echo "$as_me:$LINENO: result: yes" >&5
14367 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14368 #define HAVE_SOLARIS_ACL 1
14369 _ACEOF
14371 else
14372 echo "$as_me: failed program was:" >&5
14373 sed 's/^/| /' conftest.$ac_ext >&5
14375 { echo "$as_me:$LINENO: result: no" >&5
14376 echo "${ECHO_T}no" >&6; }
14379 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14380 conftest$ac_exeext conftest.$ac_ext
14382 { echo "$as_me:$LINENO: checking for AIX ACL support" >&5
14383 echo $ECHO_N "checking for AIX ACL support... $ECHO_C" >&6; }
14384 cat >conftest.$ac_ext <<_ACEOF
14385 /* confdefs.h. */
14386 _ACEOF
14387 cat confdefs.h >>conftest.$ac_ext
14388 cat >>conftest.$ac_ext <<_ACEOF
14389 /* end confdefs.h. */
14391 #if STDC_HEADERS
14392 # include <stdlib.h>
14393 # include <stddef.h>
14394 #endif
14395 #ifdef HAVE_SYS_ACL_H
14396 # include <sys/acl.h>
14397 #endif
14398 #ifdef HAVE_SYS_ACCESS_H
14399 # include <sys/access.h>
14400 #endif
14401 #define _ALL_SOURCE
14403 #include <sys/stat.h>
14405 int aclsize;
14406 struct acl *aclent;
14408 main ()
14410 aclsize = sizeof(struct acl);
14411 aclent = (void *)malloc(aclsize);
14412 statacl("foo", STX_NORMAL, aclent, aclsize);
14415 return 0;
14417 _ACEOF
14418 rm -f conftest.$ac_objext conftest$ac_exeext
14419 if { (ac_try="$ac_link"
14420 case "(($ac_try" in
14421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14422 *) ac_try_echo=$ac_try;;
14423 esac
14424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14425 (eval "$ac_link") 2>conftest.er1
14426 ac_status=$?
14427 grep -v '^ *+' conftest.er1 >conftest.err
14428 rm -f conftest.er1
14429 cat conftest.err >&5
14430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14431 (exit $ac_status); } && {
14432 test -z "$ac_c_werror_flag" ||
14433 test ! -s conftest.err
14434 } && test -s conftest$ac_exeext &&
14435 $as_test_x conftest$ac_exeext; then
14436 { echo "$as_me:$LINENO: result: yes" >&5
14437 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14438 #define HAVE_AIX_ACL 1
14439 _ACEOF
14441 else
14442 echo "$as_me: failed program was:" >&5
14443 sed 's/^/| /' conftest.$ac_ext >&5
14445 { echo "$as_me:$LINENO: result: no" >&5
14446 echo "${ECHO_T}no" >&6; }
14449 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14450 conftest$ac_exeext conftest.$ac_ext
14451 else
14452 { echo "$as_me:$LINENO: result: yes" >&5
14453 echo "${ECHO_T}yes" >&6; }
14456 { echo "$as_me:$LINENO: checking --disable-gpm argument" >&5
14457 echo $ECHO_N "checking --disable-gpm argument... $ECHO_C" >&6; }
14458 # Check whether --enable-gpm was given.
14459 if test "${enable_gpm+set}" = set; then
14460 enableval=$enable_gpm;
14461 else
14462 enable_gpm="yes"
14466 if test "$enable_gpm" = "yes"; then
14467 { echo "$as_me:$LINENO: result: no" >&5
14468 echo "${ECHO_T}no" >&6; }
14469 { echo "$as_me:$LINENO: checking for gpm" >&5
14470 echo $ECHO_N "checking for gpm... $ECHO_C" >&6; }
14471 if test "${vi_cv_have_gpm+set}" = set; then
14472 echo $ECHO_N "(cached) $ECHO_C" >&6
14473 else
14474 olibs="$LIBS" ; LIBS="-lgpm"
14475 cat >conftest.$ac_ext <<_ACEOF
14476 /* confdefs.h. */
14477 _ACEOF
14478 cat confdefs.h >>conftest.$ac_ext
14479 cat >>conftest.$ac_ext <<_ACEOF
14480 /* end confdefs.h. */
14481 #include <gpm.h>
14482 #include <linux/keyboard.h>
14484 main ()
14486 Gpm_GetLibVersion(NULL);
14488 return 0;
14490 _ACEOF
14491 rm -f conftest.$ac_objext conftest$ac_exeext
14492 if { (ac_try="$ac_link"
14493 case "(($ac_try" in
14494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14495 *) ac_try_echo=$ac_try;;
14496 esac
14497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14498 (eval "$ac_link") 2>conftest.er1
14499 ac_status=$?
14500 grep -v '^ *+' conftest.er1 >conftest.err
14501 rm -f conftest.er1
14502 cat conftest.err >&5
14503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14504 (exit $ac_status); } && {
14505 test -z "$ac_c_werror_flag" ||
14506 test ! -s conftest.err
14507 } && test -s conftest$ac_exeext &&
14508 $as_test_x conftest$ac_exeext; then
14509 vi_cv_have_gpm=yes
14510 else
14511 echo "$as_me: failed program was:" >&5
14512 sed 's/^/| /' conftest.$ac_ext >&5
14514 vi_cv_have_gpm=no
14517 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14518 conftest$ac_exeext conftest.$ac_ext
14519 LIBS="$olibs"
14522 { echo "$as_me:$LINENO: result: $vi_cv_have_gpm" >&5
14523 echo "${ECHO_T}$vi_cv_have_gpm" >&6; }
14524 if test $vi_cv_have_gpm = yes; then
14525 LIBS="$LIBS -lgpm"
14526 cat >>confdefs.h <<\_ACEOF
14527 #define HAVE_GPM 1
14528 _ACEOF
14531 else
14532 { echo "$as_me:$LINENO: result: yes" >&5
14533 echo "${ECHO_T}yes" >&6; }
14536 { echo "$as_me:$LINENO: checking --disable-sysmouse argument" >&5
14537 echo $ECHO_N "checking --disable-sysmouse argument... $ECHO_C" >&6; }
14538 # Check whether --enable-sysmouse was given.
14539 if test "${enable_sysmouse+set}" = set; then
14540 enableval=$enable_sysmouse;
14541 else
14542 enable_sysmouse="yes"
14546 if test "$enable_sysmouse" = "yes"; then
14547 { echo "$as_me:$LINENO: result: no" >&5
14548 echo "${ECHO_T}no" >&6; }
14549 { echo "$as_me:$LINENO: checking for sysmouse" >&5
14550 echo $ECHO_N "checking for sysmouse... $ECHO_C" >&6; }
14551 if test "${vi_cv_have_sysmouse+set}" = set; then
14552 echo $ECHO_N "(cached) $ECHO_C" >&6
14553 else
14554 cat >conftest.$ac_ext <<_ACEOF
14555 /* confdefs.h. */
14556 _ACEOF
14557 cat confdefs.h >>conftest.$ac_ext
14558 cat >>conftest.$ac_ext <<_ACEOF
14559 /* end confdefs.h. */
14560 #include <sys/consio.h>
14561 #include <signal.h>
14562 #include <sys/fbio.h>
14564 main ()
14566 struct mouse_info mouse;
14567 mouse.operation = MOUSE_MODE;
14568 mouse.operation = MOUSE_SHOW;
14569 mouse.u.mode.mode = 0;
14570 mouse.u.mode.signal = SIGUSR2;
14572 return 0;
14574 _ACEOF
14575 rm -f conftest.$ac_objext conftest$ac_exeext
14576 if { (ac_try="$ac_link"
14577 case "(($ac_try" in
14578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14579 *) ac_try_echo=$ac_try;;
14580 esac
14581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14582 (eval "$ac_link") 2>conftest.er1
14583 ac_status=$?
14584 grep -v '^ *+' conftest.er1 >conftest.err
14585 rm -f conftest.er1
14586 cat conftest.err >&5
14587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14588 (exit $ac_status); } && {
14589 test -z "$ac_c_werror_flag" ||
14590 test ! -s conftest.err
14591 } && test -s conftest$ac_exeext &&
14592 $as_test_x conftest$ac_exeext; then
14593 vi_cv_have_sysmouse=yes
14594 else
14595 echo "$as_me: failed program was:" >&5
14596 sed 's/^/| /' conftest.$ac_ext >&5
14598 vi_cv_have_sysmouse=no
14601 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14602 conftest$ac_exeext conftest.$ac_ext
14605 { echo "$as_me:$LINENO: result: $vi_cv_have_sysmouse" >&5
14606 echo "${ECHO_T}$vi_cv_have_sysmouse" >&6; }
14607 if test $vi_cv_have_sysmouse = yes; then
14608 cat >>confdefs.h <<\_ACEOF
14609 #define HAVE_SYSMOUSE 1
14610 _ACEOF
14613 else
14614 { echo "$as_me:$LINENO: result: yes" >&5
14615 echo "${ECHO_T}yes" >&6; }
14618 { echo "$as_me:$LINENO: checking for rename" >&5
14619 echo $ECHO_N "checking for rename... $ECHO_C" >&6; }
14620 cat >conftest.$ac_ext <<_ACEOF
14621 /* confdefs.h. */
14622 _ACEOF
14623 cat confdefs.h >>conftest.$ac_ext
14624 cat >>conftest.$ac_ext <<_ACEOF
14625 /* end confdefs.h. */
14626 #include <stdio.h>
14628 main ()
14630 rename("this", "that")
14632 return 0;
14634 _ACEOF
14635 rm -f conftest.$ac_objext conftest$ac_exeext
14636 if { (ac_try="$ac_link"
14637 case "(($ac_try" in
14638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14639 *) ac_try_echo=$ac_try;;
14640 esac
14641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14642 (eval "$ac_link") 2>conftest.er1
14643 ac_status=$?
14644 grep -v '^ *+' conftest.er1 >conftest.err
14645 rm -f conftest.er1
14646 cat conftest.err >&5
14647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14648 (exit $ac_status); } && {
14649 test -z "$ac_c_werror_flag" ||
14650 test ! -s conftest.err
14651 } && test -s conftest$ac_exeext &&
14652 $as_test_x conftest$ac_exeext; then
14653 { echo "$as_me:$LINENO: result: yes" >&5
14654 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14655 #define HAVE_RENAME 1
14656 _ACEOF
14658 else
14659 echo "$as_me: failed program was:" >&5
14660 sed 's/^/| /' conftest.$ac_ext >&5
14662 { echo "$as_me:$LINENO: result: no" >&5
14663 echo "${ECHO_T}no" >&6; }
14666 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14667 conftest$ac_exeext conftest.$ac_ext
14669 { echo "$as_me:$LINENO: checking for sysctl" >&5
14670 echo $ECHO_N "checking for sysctl... $ECHO_C" >&6; }
14671 cat >conftest.$ac_ext <<_ACEOF
14672 /* confdefs.h. */
14673 _ACEOF
14674 cat confdefs.h >>conftest.$ac_ext
14675 cat >>conftest.$ac_ext <<_ACEOF
14676 /* end confdefs.h. */
14677 #include <sys/types.h>
14678 #include <sys/sysctl.h>
14680 main ()
14682 int mib[2], r;
14683 size_t len;
14685 mib[0] = CTL_HW;
14686 mib[1] = HW_USERMEM;
14687 len = sizeof(r);
14688 (void)sysctl(mib, 2, &r, &len, (void *)0, (size_t)0);
14691 return 0;
14693 _ACEOF
14694 rm -f conftest.$ac_objext
14695 if { (ac_try="$ac_compile"
14696 case "(($ac_try" in
14697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14698 *) ac_try_echo=$ac_try;;
14699 esac
14700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14701 (eval "$ac_compile") 2>conftest.er1
14702 ac_status=$?
14703 grep -v '^ *+' conftest.er1 >conftest.err
14704 rm -f conftest.er1
14705 cat conftest.err >&5
14706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14707 (exit $ac_status); } && {
14708 test -z "$ac_c_werror_flag" ||
14709 test ! -s conftest.err
14710 } && test -s conftest.$ac_objext; then
14711 { echo "$as_me:$LINENO: result: yes" >&5
14712 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14713 #define HAVE_SYSCTL 1
14714 _ACEOF
14716 else
14717 echo "$as_me: failed program was:" >&5
14718 sed 's/^/| /' conftest.$ac_ext >&5
14720 { echo "$as_me:$LINENO: result: not usable" >&5
14721 echo "${ECHO_T}not usable" >&6; }
14724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14726 { echo "$as_me:$LINENO: checking for sysinfo" >&5
14727 echo $ECHO_N "checking for sysinfo... $ECHO_C" >&6; }
14728 cat >conftest.$ac_ext <<_ACEOF
14729 /* confdefs.h. */
14730 _ACEOF
14731 cat confdefs.h >>conftest.$ac_ext
14732 cat >>conftest.$ac_ext <<_ACEOF
14733 /* end confdefs.h. */
14734 #include <sys/types.h>
14735 #include <sys/sysinfo.h>
14737 main ()
14739 struct sysinfo sinfo;
14740 int t;
14742 (void)sysinfo(&sinfo);
14743 t = sinfo.totalram;
14746 return 0;
14748 _ACEOF
14749 rm -f conftest.$ac_objext
14750 if { (ac_try="$ac_compile"
14751 case "(($ac_try" in
14752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14753 *) ac_try_echo=$ac_try;;
14754 esac
14755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14756 (eval "$ac_compile") 2>conftest.er1
14757 ac_status=$?
14758 grep -v '^ *+' conftest.er1 >conftest.err
14759 rm -f conftest.er1
14760 cat conftest.err >&5
14761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14762 (exit $ac_status); } && {
14763 test -z "$ac_c_werror_flag" ||
14764 test ! -s conftest.err
14765 } && test -s conftest.$ac_objext; then
14766 { echo "$as_me:$LINENO: result: yes" >&5
14767 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14768 #define HAVE_SYSINFO 1
14769 _ACEOF
14771 else
14772 echo "$as_me: failed program was:" >&5
14773 sed 's/^/| /' conftest.$ac_ext >&5
14775 { echo "$as_me:$LINENO: result: not usable" >&5
14776 echo "${ECHO_T}not usable" >&6; }
14779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14781 { echo "$as_me:$LINENO: checking for sysinfo.mem_unit" >&5
14782 echo $ECHO_N "checking for sysinfo.mem_unit... $ECHO_C" >&6; }
14783 cat >conftest.$ac_ext <<_ACEOF
14784 /* confdefs.h. */
14785 _ACEOF
14786 cat confdefs.h >>conftest.$ac_ext
14787 cat >>conftest.$ac_ext <<_ACEOF
14788 /* end confdefs.h. */
14789 #include <sys/types.h>
14790 #include <sys/sysinfo.h>
14792 main ()
14794 struct sysinfo sinfo;
14795 sinfo.mem_unit = 1;
14798 return 0;
14800 _ACEOF
14801 rm -f conftest.$ac_objext
14802 if { (ac_try="$ac_compile"
14803 case "(($ac_try" in
14804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14805 *) ac_try_echo=$ac_try;;
14806 esac
14807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14808 (eval "$ac_compile") 2>conftest.er1
14809 ac_status=$?
14810 grep -v '^ *+' conftest.er1 >conftest.err
14811 rm -f conftest.er1
14812 cat conftest.err >&5
14813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14814 (exit $ac_status); } && {
14815 test -z "$ac_c_werror_flag" ||
14816 test ! -s conftest.err
14817 } && test -s conftest.$ac_objext; then
14818 { echo "$as_me:$LINENO: result: yes" >&5
14819 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14820 #define HAVE_SYSINFO_MEM_UNIT 1
14821 _ACEOF
14823 else
14824 echo "$as_me: failed program was:" >&5
14825 sed 's/^/| /' conftest.$ac_ext >&5
14827 { echo "$as_me:$LINENO: result: no" >&5
14828 echo "${ECHO_T}no" >&6; }
14831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14833 { echo "$as_me:$LINENO: checking for sysconf" >&5
14834 echo $ECHO_N "checking for sysconf... $ECHO_C" >&6; }
14835 cat >conftest.$ac_ext <<_ACEOF
14836 /* confdefs.h. */
14837 _ACEOF
14838 cat confdefs.h >>conftest.$ac_ext
14839 cat >>conftest.$ac_ext <<_ACEOF
14840 /* end confdefs.h. */
14841 #include <unistd.h>
14843 main ()
14845 (void)sysconf(_SC_PAGESIZE);
14846 (void)sysconf(_SC_PHYS_PAGES);
14849 return 0;
14851 _ACEOF
14852 rm -f conftest.$ac_objext
14853 if { (ac_try="$ac_compile"
14854 case "(($ac_try" in
14855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14856 *) ac_try_echo=$ac_try;;
14857 esac
14858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14859 (eval "$ac_compile") 2>conftest.er1
14860 ac_status=$?
14861 grep -v '^ *+' conftest.er1 >conftest.err
14862 rm -f conftest.er1
14863 cat conftest.err >&5
14864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14865 (exit $ac_status); } && {
14866 test -z "$ac_c_werror_flag" ||
14867 test ! -s conftest.err
14868 } && test -s conftest.$ac_objext; then
14869 { echo "$as_me:$LINENO: result: yes" >&5
14870 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14871 #define HAVE_SYSCONF 1
14872 _ACEOF
14874 else
14875 echo "$as_me: failed program was:" >&5
14876 sed 's/^/| /' conftest.$ac_ext >&5
14878 { echo "$as_me:$LINENO: result: not usable" >&5
14879 echo "${ECHO_T}not usable" >&6; }
14882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14885 { echo "$as_me:$LINENO: checking size of int" >&5
14886 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
14887 if test "${ac_cv_sizeof_int+set}" = set; then
14888 echo $ECHO_N "(cached) $ECHO_C" >&6
14889 else
14890 if test "$cross_compiling" = yes; then
14891 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
14892 echo "$as_me: error: failed to compile test program" >&2;}
14893 { (exit 1); exit 1; }; }
14894 else
14895 cat >conftest.$ac_ext <<_ACEOF
14896 /* confdefs.h. */
14897 _ACEOF
14898 cat confdefs.h >>conftest.$ac_ext
14899 cat >>conftest.$ac_ext <<_ACEOF
14900 /* end confdefs.h. */
14902 #include <stdio.h>
14903 #if STDC_HEADERS
14904 # include <stdlib.h>
14905 # include <stddef.h>
14906 #endif
14907 main()
14909 FILE *f=fopen("conftestval", "w");
14910 if (!f) exit(1);
14911 fprintf(f, "%d\n", (int)sizeof(int));
14912 exit(0);
14914 _ACEOF
14915 rm -f conftest$ac_exeext
14916 if { (ac_try="$ac_link"
14917 case "(($ac_try" in
14918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14919 *) ac_try_echo=$ac_try;;
14920 esac
14921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14922 (eval "$ac_link") 2>&5
14923 ac_status=$?
14924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14925 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14926 { (case "(($ac_try" in
14927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14928 *) ac_try_echo=$ac_try;;
14929 esac
14930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14931 (eval "$ac_try") 2>&5
14932 ac_status=$?
14933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14934 (exit $ac_status); }; }; then
14935 ac_cv_sizeof_int=`cat conftestval`
14936 else
14937 echo "$as_me: program exited with status $ac_status" >&5
14938 echo "$as_me: failed program was:" >&5
14939 sed 's/^/| /' conftest.$ac_ext >&5
14941 ( exit $ac_status )
14942 ac_cv_sizeof_int=0
14944 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14950 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
14951 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
14952 cat >>confdefs.h <<_ACEOF
14953 #define SIZEOF_INT $ac_cv_sizeof_int
14954 _ACEOF
14958 bcopy_test_prog='
14959 #include "confdefs.h"
14960 #ifdef HAVE_STRING_H
14961 # include <string.h>
14962 #endif
14963 #if STDC_HEADERS
14964 # include <stdlib.h>
14965 # include <stddef.h>
14966 #endif
14967 main() {
14968 char buf[10];
14969 strcpy(buf, "abcdefghi");
14970 mch_memmove(buf, buf + 2, 3);
14971 if (strncmp(buf, "ababcf", 6))
14972 exit(1);
14973 strcpy(buf, "abcdefghi");
14974 mch_memmove(buf + 2, buf, 3);
14975 if (strncmp(buf, "cdedef", 6))
14976 exit(1);
14977 exit(0); /* libc version works properly. */
14980 { echo "$as_me:$LINENO: checking whether memmove handles overlaps" >&5
14981 echo $ECHO_N "checking whether memmove handles overlaps... $ECHO_C" >&6; }
14982 if test "${vim_cv_memmove_handles_overlap+set}" = set; then
14983 echo $ECHO_N "(cached) $ECHO_C" >&6
14984 else
14986 if test "$cross_compiling" = yes; then
14988 { { echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_memmove_handles_overlap'" >&5
14989 echo "$as_me: error: cross-compiling: please set 'vim_cv_memmove_handles_overlap'" >&2;}
14990 { (exit 1); exit 1; }; }
14992 else
14993 cat >conftest.$ac_ext <<_ACEOF
14994 #define mch_memmove(s,d,l) memmove(d,s,l) $bcopy_test_prog
14995 _ACEOF
14996 rm -f conftest$ac_exeext
14997 if { (ac_try="$ac_link"
14998 case "(($ac_try" in
14999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15000 *) ac_try_echo=$ac_try;;
15001 esac
15002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15003 (eval "$ac_link") 2>&5
15004 ac_status=$?
15005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15006 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15007 { (case "(($ac_try" in
15008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15009 *) ac_try_echo=$ac_try;;
15010 esac
15011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15012 (eval "$ac_try") 2>&5
15013 ac_status=$?
15014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15015 (exit $ac_status); }; }; then
15017 vim_cv_memmove_handles_overlap=yes
15019 else
15020 echo "$as_me: program exited with status $ac_status" >&5
15021 echo "$as_me: failed program was:" >&5
15022 sed 's/^/| /' conftest.$ac_ext >&5
15024 ( exit $ac_status )
15026 vim_cv_memmove_handles_overlap=no
15029 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15035 { echo "$as_me:$LINENO: result: $vim_cv_memmove_handles_overlap" >&5
15036 echo "${ECHO_T}$vim_cv_memmove_handles_overlap" >&6; }
15038 if test "x$vim_cv_memmove_handles_overlap" = "xyes" ; then
15039 cat >>confdefs.h <<\_ACEOF
15040 #define USEMEMMOVE 1
15041 _ACEOF
15043 else
15044 { echo "$as_me:$LINENO: checking whether bcopy handles overlaps" >&5
15045 echo $ECHO_N "checking whether bcopy handles overlaps... $ECHO_C" >&6; }
15046 if test "${vim_cv_bcopy_handles_overlap+set}" = set; then
15047 echo $ECHO_N "(cached) $ECHO_C" >&6
15048 else
15050 if test "$cross_compiling" = yes; then
15052 { { echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_bcopy_handles_overlap'" >&5
15053 echo "$as_me: error: cross-compiling: please set 'vim_cv_bcopy_handles_overlap'" >&2;}
15054 { (exit 1); exit 1; }; }
15056 else
15057 cat >conftest.$ac_ext <<_ACEOF
15058 #define mch_bcopy(s,d,l) bcopy(d,s,l) $bcopy_test_prog
15059 _ACEOF
15060 rm -f conftest$ac_exeext
15061 if { (ac_try="$ac_link"
15062 case "(($ac_try" in
15063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15064 *) ac_try_echo=$ac_try;;
15065 esac
15066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15067 (eval "$ac_link") 2>&5
15068 ac_status=$?
15069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15070 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15071 { (case "(($ac_try" in
15072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15073 *) ac_try_echo=$ac_try;;
15074 esac
15075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15076 (eval "$ac_try") 2>&5
15077 ac_status=$?
15078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15079 (exit $ac_status); }; }; then
15081 vim_cv_bcopy_handles_overlap=yes
15083 else
15084 echo "$as_me: program exited with status $ac_status" >&5
15085 echo "$as_me: failed program was:" >&5
15086 sed 's/^/| /' conftest.$ac_ext >&5
15088 ( exit $ac_status )
15090 vim_cv_bcopy_handles_overlap=no
15093 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15099 { echo "$as_me:$LINENO: result: $vim_cv_bcopy_handles_overlap" >&5
15100 echo "${ECHO_T}$vim_cv_bcopy_handles_overlap" >&6; }
15102 if test "x$vim_cv_bcopy_handles_overlap" = "xyes" ; then
15103 cat >>confdefs.h <<\_ACEOF
15104 #define USEBCOPY 1
15105 _ACEOF
15107 else
15108 { echo "$as_me:$LINENO: checking whether memcpy handles overlaps" >&5
15109 echo $ECHO_N "checking whether memcpy handles overlaps... $ECHO_C" >&6; }
15110 if test "${vim_cv_memcpy_handles_overlap+set}" = set; then
15111 echo $ECHO_N "(cached) $ECHO_C" >&6
15112 else
15114 if test "$cross_compiling" = yes; then
15116 { { echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_memcpy_handles_overlap'" >&5
15117 echo "$as_me: error: cross-compiling: please set 'vim_cv_memcpy_handles_overlap'" >&2;}
15118 { (exit 1); exit 1; }; }
15120 else
15121 cat >conftest.$ac_ext <<_ACEOF
15122 #define mch_memcpy(s,d,l) memcpy(d,s,l) $bcopy_test_prog
15123 _ACEOF
15124 rm -f conftest$ac_exeext
15125 if { (ac_try="$ac_link"
15126 case "(($ac_try" in
15127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15128 *) ac_try_echo=$ac_try;;
15129 esac
15130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15131 (eval "$ac_link") 2>&5
15132 ac_status=$?
15133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15134 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15135 { (case "(($ac_try" in
15136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15137 *) ac_try_echo=$ac_try;;
15138 esac
15139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15140 (eval "$ac_try") 2>&5
15141 ac_status=$?
15142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15143 (exit $ac_status); }; }; then
15145 vim_cv_memcpy_handles_overlap=yes
15147 else
15148 echo "$as_me: program exited with status $ac_status" >&5
15149 echo "$as_me: failed program was:" >&5
15150 sed 's/^/| /' conftest.$ac_ext >&5
15152 ( exit $ac_status )
15154 vim_cv_memcpy_handles_overlap=no
15157 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15163 { echo "$as_me:$LINENO: result: $vim_cv_memcpy_handles_overlap" >&5
15164 echo "${ECHO_T}$vim_cv_memcpy_handles_overlap" >&6; }
15166 if test "x$vim_cv_memcpy_handles_overlap" = "xyes" ; then
15167 cat >>confdefs.h <<\_ACEOF
15168 #define USEMEMCPY 1
15169 _ACEOF
15177 if test "$enable_multibyte" = "yes"; then
15178 cflags_save=$CFLAGS
15179 ldflags_save=$LDFLAGS
15180 if test "x$x_includes" != "xNONE" ; then
15181 CFLAGS="$CFLAGS -I$x_includes"
15182 LDFLAGS="$X_LIBS $LDFLAGS -lX11"
15183 { echo "$as_me:$LINENO: checking whether X_LOCALE needed" >&5
15184 echo $ECHO_N "checking whether X_LOCALE needed... $ECHO_C" >&6; }
15185 cat >conftest.$ac_ext <<_ACEOF
15186 /* confdefs.h. */
15187 _ACEOF
15188 cat confdefs.h >>conftest.$ac_ext
15189 cat >>conftest.$ac_ext <<_ACEOF
15190 /* end confdefs.h. */
15191 #include <X11/Xlocale.h>
15193 main ()
15197 return 0;
15199 _ACEOF
15200 rm -f conftest.$ac_objext
15201 if { (ac_try="$ac_compile"
15202 case "(($ac_try" in
15203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15204 *) ac_try_echo=$ac_try;;
15205 esac
15206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15207 (eval "$ac_compile") 2>conftest.er1
15208 ac_status=$?
15209 grep -v '^ *+' conftest.er1 >conftest.err
15210 rm -f conftest.er1
15211 cat conftest.err >&5
15212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15213 (exit $ac_status); } && {
15214 test -z "$ac_c_werror_flag" ||
15215 test ! -s conftest.err
15216 } && test -s conftest.$ac_objext; then
15217 cat >conftest.$ac_ext <<_ACEOF
15218 /* confdefs.h. */
15219 _ACEOF
15220 cat confdefs.h >>conftest.$ac_ext
15221 cat >>conftest.$ac_ext <<_ACEOF
15222 /* end confdefs.h. */
15224 /* Override any GCC internal prototype to avoid an error.
15225 Use char because int might match the return type of a GCC
15226 builtin and then its argument prototype would still apply. */
15227 #ifdef __cplusplus
15228 extern "C"
15229 #endif
15230 char _Xsetlocale ();
15232 main ()
15234 return _Xsetlocale ();
15236 return 0;
15238 _ACEOF
15239 rm -f conftest.$ac_objext conftest$ac_exeext
15240 if { (ac_try="$ac_link"
15241 case "(($ac_try" in
15242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15243 *) ac_try_echo=$ac_try;;
15244 esac
15245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15246 (eval "$ac_link") 2>conftest.er1
15247 ac_status=$?
15248 grep -v '^ *+' conftest.er1 >conftest.err
15249 rm -f conftest.er1
15250 cat conftest.err >&5
15251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15252 (exit $ac_status); } && {
15253 test -z "$ac_c_werror_flag" ||
15254 test ! -s conftest.err
15255 } && test -s conftest$ac_exeext &&
15256 $as_test_x conftest$ac_exeext; then
15257 { echo "$as_me:$LINENO: result: yes" >&5
15258 echo "${ECHO_T}yes" >&6; }
15259 cat >>confdefs.h <<\_ACEOF
15260 #define X_LOCALE 1
15261 _ACEOF
15263 else
15264 echo "$as_me: failed program was:" >&5
15265 sed 's/^/| /' conftest.$ac_ext >&5
15267 { echo "$as_me:$LINENO: result: no" >&5
15268 echo "${ECHO_T}no" >&6; }
15271 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15272 conftest$ac_exeext conftest.$ac_ext
15273 else
15274 echo "$as_me: failed program was:" >&5
15275 sed 's/^/| /' conftest.$ac_ext >&5
15277 { echo "$as_me:$LINENO: result: no" >&5
15278 echo "${ECHO_T}no" >&6; }
15281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15283 CFLAGS=$cflags_save
15284 LDFLAGS=$ldflags_save
15287 { echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
15288 echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6; }
15289 if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
15290 echo $ECHO_N "(cached) $ECHO_C" >&6
15291 else
15292 ac_check_lib_save_LIBS=$LIBS
15293 LIBS="-lxpg4 $LIBS"
15294 cat >conftest.$ac_ext <<_ACEOF
15295 /* confdefs.h. */
15296 _ACEOF
15297 cat confdefs.h >>conftest.$ac_ext
15298 cat >>conftest.$ac_ext <<_ACEOF
15299 /* end confdefs.h. */
15301 /* Override any GCC internal prototype to avoid an error.
15302 Use char because int might match the return type of a GCC
15303 builtin and then its argument prototype would still apply. */
15304 #ifdef __cplusplus
15305 extern "C"
15306 #endif
15307 char _xpg4_setrunelocale ();
15309 main ()
15311 return _xpg4_setrunelocale ();
15313 return 0;
15315 _ACEOF
15316 rm -f conftest.$ac_objext conftest$ac_exeext
15317 if { (ac_try="$ac_link"
15318 case "(($ac_try" in
15319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15320 *) ac_try_echo=$ac_try;;
15321 esac
15322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15323 (eval "$ac_link") 2>conftest.er1
15324 ac_status=$?
15325 grep -v '^ *+' conftest.er1 >conftest.err
15326 rm -f conftest.er1
15327 cat conftest.err >&5
15328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15329 (exit $ac_status); } && {
15330 test -z "$ac_c_werror_flag" ||
15331 test ! -s conftest.err
15332 } && test -s conftest$ac_exeext &&
15333 $as_test_x conftest$ac_exeext; then
15334 ac_cv_lib_xpg4__xpg4_setrunelocale=yes
15335 else
15336 echo "$as_me: failed program was:" >&5
15337 sed 's/^/| /' conftest.$ac_ext >&5
15339 ac_cv_lib_xpg4__xpg4_setrunelocale=no
15342 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15343 conftest$ac_exeext conftest.$ac_ext
15344 LIBS=$ac_check_lib_save_LIBS
15346 { echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
15347 echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6; }
15348 if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
15349 LIBS="$LIBS -lxpg4"
15353 { echo "$as_me:$LINENO: checking how to create tags" >&5
15354 echo $ECHO_N "checking how to create tags... $ECHO_C" >&6; }
15355 test -f tags && mv tags tags.save
15356 if (eval ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then
15357 TAGPRG="ctags -I INIT+ --fields=+S"
15358 else
15359 TAGPRG="ctags"
15360 (eval etags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags"
15361 (eval etags -c /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags -c"
15362 (eval ctags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags"
15363 (eval ctags -t /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -t"
15364 (eval ctags -ts /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -ts"
15365 (eval ctags -tvs /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -tvs"
15366 (eval ctags -i+m /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -i+m"
15368 test -f tags.save && mv tags.save tags
15369 { echo "$as_me:$LINENO: result: $TAGPRG" >&5
15370 echo "${ECHO_T}$TAGPRG" >&6; }
15372 { echo "$as_me:$LINENO: checking how to run man with a section nr" >&5
15373 echo $ECHO_N "checking how to run man with a section nr... $ECHO_C" >&6; }
15374 MANDEF="man"
15375 (eval MANPAGER=cat PAGER=cat man -s 2 read) < /dev/null > /dev/null 2>&5 && MANDEF="man -s"
15376 { echo "$as_me:$LINENO: result: $MANDEF" >&5
15377 echo "${ECHO_T}$MANDEF" >&6; }
15378 if test "$MANDEF" = "man -s"; then
15379 cat >>confdefs.h <<\_ACEOF
15380 #define USEMAN_S 1
15381 _ACEOF
15385 { echo "$as_me:$LINENO: checking --disable-nls argument" >&5
15386 echo $ECHO_N "checking --disable-nls argument... $ECHO_C" >&6; }
15387 # Check whether --enable-nls was given.
15388 if test "${enable_nls+set}" = set; then
15389 enableval=$enable_nls;
15390 else
15391 enable_nls="yes"
15395 if test "$enable_nls" = "yes"; then
15396 { echo "$as_me:$LINENO: result: no" >&5
15397 echo "${ECHO_T}no" >&6; }
15399 INSTALL_LANGS=install-languages
15401 INSTALL_TOOL_LANGS=install-tool-languages
15404 # Extract the first word of "msgfmt", so it can be a program name with args.
15405 set dummy msgfmt; ac_word=$2
15406 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15408 if test "${ac_cv_prog_MSGFMT+set}" = set; then
15409 echo $ECHO_N "(cached) $ECHO_C" >&6
15410 else
15411 if test -n "$MSGFMT"; then
15412 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
15413 else
15414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15415 for as_dir in $PATH
15417 IFS=$as_save_IFS
15418 test -z "$as_dir" && as_dir=.
15419 for ac_exec_ext in '' $ac_executable_extensions; do
15420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15421 ac_cv_prog_MSGFMT="msgfmt"
15422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15423 break 2
15425 done
15426 done
15427 IFS=$as_save_IFS
15431 MSGFMT=$ac_cv_prog_MSGFMT
15432 if test -n "$MSGFMT"; then
15433 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
15434 echo "${ECHO_T}$MSGFMT" >&6; }
15435 else
15436 { echo "$as_me:$LINENO: result: no" >&5
15437 echo "${ECHO_T}no" >&6; }
15441 { echo "$as_me:$LINENO: checking for NLS" >&5
15442 echo $ECHO_N "checking for NLS... $ECHO_C" >&6; }
15443 if test -f po/Makefile; then
15444 have_gettext="no"
15445 if test -n "$MSGFMT"; then
15446 cat >conftest.$ac_ext <<_ACEOF
15447 /* confdefs.h. */
15448 _ACEOF
15449 cat confdefs.h >>conftest.$ac_ext
15450 cat >>conftest.$ac_ext <<_ACEOF
15451 /* end confdefs.h. */
15452 #include <libintl.h>
15454 main ()
15456 gettext("Test");
15458 return 0;
15460 _ACEOF
15461 rm -f conftest.$ac_objext conftest$ac_exeext
15462 if { (ac_try="$ac_link"
15463 case "(($ac_try" in
15464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15465 *) ac_try_echo=$ac_try;;
15466 esac
15467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15468 (eval "$ac_link") 2>conftest.er1
15469 ac_status=$?
15470 grep -v '^ *+' conftest.er1 >conftest.err
15471 rm -f conftest.er1
15472 cat conftest.err >&5
15473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15474 (exit $ac_status); } && {
15475 test -z "$ac_c_werror_flag" ||
15476 test ! -s conftest.err
15477 } && test -s conftest$ac_exeext &&
15478 $as_test_x conftest$ac_exeext; then
15479 { echo "$as_me:$LINENO: result: gettext() works" >&5
15480 echo "${ECHO_T}gettext() works" >&6; }; have_gettext="yes"
15481 else
15482 echo "$as_me: failed program was:" >&5
15483 sed 's/^/| /' conftest.$ac_ext >&5
15485 olibs=$LIBS
15486 LIBS="$LIBS -lintl"
15487 cat >conftest.$ac_ext <<_ACEOF
15488 /* confdefs.h. */
15489 _ACEOF
15490 cat confdefs.h >>conftest.$ac_ext
15491 cat >>conftest.$ac_ext <<_ACEOF
15492 /* end confdefs.h. */
15493 #include <libintl.h>
15495 main ()
15497 gettext("Test");
15499 return 0;
15501 _ACEOF
15502 rm -f conftest.$ac_objext conftest$ac_exeext
15503 if { (ac_try="$ac_link"
15504 case "(($ac_try" in
15505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15506 *) ac_try_echo=$ac_try;;
15507 esac
15508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15509 (eval "$ac_link") 2>conftest.er1
15510 ac_status=$?
15511 grep -v '^ *+' conftest.er1 >conftest.err
15512 rm -f conftest.er1
15513 cat conftest.err >&5
15514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15515 (exit $ac_status); } && {
15516 test -z "$ac_c_werror_flag" ||
15517 test ! -s conftest.err
15518 } && test -s conftest$ac_exeext &&
15519 $as_test_x conftest$ac_exeext; then
15520 { echo "$as_me:$LINENO: result: gettext() works with -lintl" >&5
15521 echo "${ECHO_T}gettext() works with -lintl" >&6; }; have_gettext="yes"
15522 else
15523 echo "$as_me: failed program was:" >&5
15524 sed 's/^/| /' conftest.$ac_ext >&5
15526 { echo "$as_me:$LINENO: result: gettext() doesn't work" >&5
15527 echo "${ECHO_T}gettext() doesn't work" >&6; };
15528 LIBS=$olibs
15531 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15532 conftest$ac_exeext conftest.$ac_ext
15535 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15536 conftest$ac_exeext conftest.$ac_ext
15537 else
15538 { echo "$as_me:$LINENO: result: msgfmt not found - disabled" >&5
15539 echo "${ECHO_T}msgfmt not found - disabled" >&6; };
15541 if test $have_gettext = "yes"; then
15542 cat >>confdefs.h <<\_ACEOF
15543 #define HAVE_GETTEXT 1
15544 _ACEOF
15546 MAKEMO=yes
15549 for ac_func in bind_textdomain_codeset
15551 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15552 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15553 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15554 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15555 echo $ECHO_N "(cached) $ECHO_C" >&6
15556 else
15557 cat >conftest.$ac_ext <<_ACEOF
15558 /* confdefs.h. */
15559 _ACEOF
15560 cat confdefs.h >>conftest.$ac_ext
15561 cat >>conftest.$ac_ext <<_ACEOF
15562 /* end confdefs.h. */
15563 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15564 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15565 #define $ac_func innocuous_$ac_func
15567 /* System header to define __stub macros and hopefully few prototypes,
15568 which can conflict with char $ac_func (); below.
15569 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15570 <limits.h> exists even on freestanding compilers. */
15572 #ifdef __STDC__
15573 # include <limits.h>
15574 #else
15575 # include <assert.h>
15576 #endif
15578 #undef $ac_func
15580 /* Override any GCC internal prototype to avoid an error.
15581 Use char because int might match the return type of a GCC
15582 builtin and then its argument prototype would still apply. */
15583 #ifdef __cplusplus
15584 extern "C"
15585 #endif
15586 char $ac_func ();
15587 /* The GNU C library defines this for functions which it implements
15588 to always fail with ENOSYS. Some functions are actually named
15589 something starting with __ and the normal name is an alias. */
15590 #if defined __stub_$ac_func || defined __stub___$ac_func
15591 choke me
15592 #endif
15595 main ()
15597 return $ac_func ();
15599 return 0;
15601 _ACEOF
15602 rm -f conftest.$ac_objext conftest$ac_exeext
15603 if { (ac_try="$ac_link"
15604 case "(($ac_try" in
15605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15606 *) ac_try_echo=$ac_try;;
15607 esac
15608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15609 (eval "$ac_link") 2>conftest.er1
15610 ac_status=$?
15611 grep -v '^ *+' conftest.er1 >conftest.err
15612 rm -f conftest.er1
15613 cat conftest.err >&5
15614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15615 (exit $ac_status); } && {
15616 test -z "$ac_c_werror_flag" ||
15617 test ! -s conftest.err
15618 } && test -s conftest$ac_exeext &&
15619 $as_test_x conftest$ac_exeext; then
15620 eval "$as_ac_var=yes"
15621 else
15622 echo "$as_me: failed program was:" >&5
15623 sed 's/^/| /' conftest.$ac_ext >&5
15625 eval "$as_ac_var=no"
15628 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15629 conftest$ac_exeext conftest.$ac_ext
15631 ac_res=`eval echo '${'$as_ac_var'}'`
15632 { echo "$as_me:$LINENO: result: $ac_res" >&5
15633 echo "${ECHO_T}$ac_res" >&6; }
15634 if test `eval echo '${'$as_ac_var'}'` = yes; then
15635 cat >>confdefs.h <<_ACEOF
15636 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15637 _ACEOF
15640 done
15642 { echo "$as_me:$LINENO: checking for _nl_msg_cat_cntr" >&5
15643 echo $ECHO_N "checking for _nl_msg_cat_cntr... $ECHO_C" >&6; }
15644 cat >conftest.$ac_ext <<_ACEOF
15645 /* confdefs.h. */
15646 _ACEOF
15647 cat confdefs.h >>conftest.$ac_ext
15648 cat >>conftest.$ac_ext <<_ACEOF
15649 /* end confdefs.h. */
15650 #include <libintl.h>
15651 extern int _nl_msg_cat_cntr;
15653 main ()
15655 ++_nl_msg_cat_cntr;
15657 return 0;
15659 _ACEOF
15660 rm -f conftest.$ac_objext conftest$ac_exeext
15661 if { (ac_try="$ac_link"
15662 case "(($ac_try" in
15663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15664 *) ac_try_echo=$ac_try;;
15665 esac
15666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15667 (eval "$ac_link") 2>conftest.er1
15668 ac_status=$?
15669 grep -v '^ *+' conftest.er1 >conftest.err
15670 rm -f conftest.er1
15671 cat conftest.err >&5
15672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15673 (exit $ac_status); } && {
15674 test -z "$ac_c_werror_flag" ||
15675 test ! -s conftest.err
15676 } && test -s conftest$ac_exeext &&
15677 $as_test_x conftest$ac_exeext; then
15678 { echo "$as_me:$LINENO: result: yes" >&5
15679 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15680 #define HAVE_NL_MSG_CAT_CNTR 1
15681 _ACEOF
15683 else
15684 echo "$as_me: failed program was:" >&5
15685 sed 's/^/| /' conftest.$ac_ext >&5
15687 { echo "$as_me:$LINENO: result: no" >&5
15688 echo "${ECHO_T}no" >&6; }
15691 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15692 conftest$ac_exeext conftest.$ac_ext
15694 else
15695 { echo "$as_me:$LINENO: result: no \"po/Makefile\" - disabled" >&5
15696 echo "${ECHO_T}no \"po/Makefile\" - disabled" >&6; };
15698 else
15699 { echo "$as_me:$LINENO: result: yes" >&5
15700 echo "${ECHO_T}yes" >&6; }
15703 if test "${ac_cv_header_dlfcn_h+set}" = set; then
15704 { echo "$as_me:$LINENO: checking for dlfcn.h" >&5
15705 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; }
15706 if test "${ac_cv_header_dlfcn_h+set}" = set; then
15707 echo $ECHO_N "(cached) $ECHO_C" >&6
15709 { echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
15710 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; }
15711 else
15712 # Is the header compilable?
15713 { echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
15714 echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6; }
15715 cat >conftest.$ac_ext <<_ACEOF
15716 /* confdefs.h. */
15717 _ACEOF
15718 cat confdefs.h >>conftest.$ac_ext
15719 cat >>conftest.$ac_ext <<_ACEOF
15720 /* end confdefs.h. */
15721 $ac_includes_default
15722 #include <dlfcn.h>
15723 _ACEOF
15724 rm -f conftest.$ac_objext
15725 if { (ac_try="$ac_compile"
15726 case "(($ac_try" in
15727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15728 *) ac_try_echo=$ac_try;;
15729 esac
15730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15731 (eval "$ac_compile") 2>conftest.er1
15732 ac_status=$?
15733 grep -v '^ *+' conftest.er1 >conftest.err
15734 rm -f conftest.er1
15735 cat conftest.err >&5
15736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15737 (exit $ac_status); } && {
15738 test -z "$ac_c_werror_flag" ||
15739 test ! -s conftest.err
15740 } && test -s conftest.$ac_objext; then
15741 ac_header_compiler=yes
15742 else
15743 echo "$as_me: failed program was:" >&5
15744 sed 's/^/| /' conftest.$ac_ext >&5
15746 ac_header_compiler=no
15749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15750 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15751 echo "${ECHO_T}$ac_header_compiler" >&6; }
15753 # Is the header present?
15754 { echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
15755 echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6; }
15756 cat >conftest.$ac_ext <<_ACEOF
15757 /* confdefs.h. */
15758 _ACEOF
15759 cat confdefs.h >>conftest.$ac_ext
15760 cat >>conftest.$ac_ext <<_ACEOF
15761 /* end confdefs.h. */
15762 #include <dlfcn.h>
15763 _ACEOF
15764 if { (ac_try="$ac_cpp conftest.$ac_ext"
15765 case "(($ac_try" in
15766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15767 *) ac_try_echo=$ac_try;;
15768 esac
15769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15770 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15771 ac_status=$?
15772 grep -v '^ *+' conftest.er1 >conftest.err
15773 rm -f conftest.er1
15774 cat conftest.err >&5
15775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15776 (exit $ac_status); } >/dev/null && {
15777 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15778 test ! -s conftest.err
15779 }; then
15780 ac_header_preproc=yes
15781 else
15782 echo "$as_me: failed program was:" >&5
15783 sed 's/^/| /' conftest.$ac_ext >&5
15785 ac_header_preproc=no
15788 rm -f conftest.err conftest.$ac_ext
15789 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15790 echo "${ECHO_T}$ac_header_preproc" >&6; }
15792 # So? What about this header?
15793 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15794 yes:no: )
15795 { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
15796 echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15797 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5
15798 echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;}
15799 ac_header_preproc=yes
15801 no:yes:* )
15802 { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
15803 echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
15804 { echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5
15805 echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;}
15806 { echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5
15807 echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;}
15808 { echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5
15809 echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;}
15810 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
15811 echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
15812 { echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5
15813 echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;}
15816 esac
15817 { echo "$as_me:$LINENO: checking for dlfcn.h" >&5
15818 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; }
15819 if test "${ac_cv_header_dlfcn_h+set}" = set; then
15820 echo $ECHO_N "(cached) $ECHO_C" >&6
15821 else
15822 ac_cv_header_dlfcn_h=$ac_header_preproc
15824 { echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
15825 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; }
15828 if test $ac_cv_header_dlfcn_h = yes; then
15829 DLL=dlfcn.h
15830 else
15831 if test "${ac_cv_header_dl_h+set}" = set; then
15832 { echo "$as_me:$LINENO: checking for dl.h" >&5
15833 echo $ECHO_N "checking for dl.h... $ECHO_C" >&6; }
15834 if test "${ac_cv_header_dl_h+set}" = set; then
15835 echo $ECHO_N "(cached) $ECHO_C" >&6
15837 { echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5
15838 echo "${ECHO_T}$ac_cv_header_dl_h" >&6; }
15839 else
15840 # Is the header compilable?
15841 { echo "$as_me:$LINENO: checking dl.h usability" >&5
15842 echo $ECHO_N "checking dl.h usability... $ECHO_C" >&6; }
15843 cat >conftest.$ac_ext <<_ACEOF
15844 /* confdefs.h. */
15845 _ACEOF
15846 cat confdefs.h >>conftest.$ac_ext
15847 cat >>conftest.$ac_ext <<_ACEOF
15848 /* end confdefs.h. */
15849 $ac_includes_default
15850 #include <dl.h>
15851 _ACEOF
15852 rm -f conftest.$ac_objext
15853 if { (ac_try="$ac_compile"
15854 case "(($ac_try" in
15855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15856 *) ac_try_echo=$ac_try;;
15857 esac
15858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15859 (eval "$ac_compile") 2>conftest.er1
15860 ac_status=$?
15861 grep -v '^ *+' conftest.er1 >conftest.err
15862 rm -f conftest.er1
15863 cat conftest.err >&5
15864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15865 (exit $ac_status); } && {
15866 test -z "$ac_c_werror_flag" ||
15867 test ! -s conftest.err
15868 } && test -s conftest.$ac_objext; then
15869 ac_header_compiler=yes
15870 else
15871 echo "$as_me: failed program was:" >&5
15872 sed 's/^/| /' conftest.$ac_ext >&5
15874 ac_header_compiler=no
15877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15878 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15879 echo "${ECHO_T}$ac_header_compiler" >&6; }
15881 # Is the header present?
15882 { echo "$as_me:$LINENO: checking dl.h presence" >&5
15883 echo $ECHO_N "checking dl.h presence... $ECHO_C" >&6; }
15884 cat >conftest.$ac_ext <<_ACEOF
15885 /* confdefs.h. */
15886 _ACEOF
15887 cat confdefs.h >>conftest.$ac_ext
15888 cat >>conftest.$ac_ext <<_ACEOF
15889 /* end confdefs.h. */
15890 #include <dl.h>
15891 _ACEOF
15892 if { (ac_try="$ac_cpp conftest.$ac_ext"
15893 case "(($ac_try" in
15894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15895 *) ac_try_echo=$ac_try;;
15896 esac
15897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15898 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15899 ac_status=$?
15900 grep -v '^ *+' conftest.er1 >conftest.err
15901 rm -f conftest.er1
15902 cat conftest.err >&5
15903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15904 (exit $ac_status); } >/dev/null && {
15905 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15906 test ! -s conftest.err
15907 }; then
15908 ac_header_preproc=yes
15909 else
15910 echo "$as_me: failed program was:" >&5
15911 sed 's/^/| /' conftest.$ac_ext >&5
15913 ac_header_preproc=no
15916 rm -f conftest.err conftest.$ac_ext
15917 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15918 echo "${ECHO_T}$ac_header_preproc" >&6; }
15920 # So? What about this header?
15921 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15922 yes:no: )
15923 { echo "$as_me:$LINENO: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&5
15924 echo "$as_me: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15925 { echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the compiler's result" >&5
15926 echo "$as_me: WARNING: dl.h: proceeding with the compiler's result" >&2;}
15927 ac_header_preproc=yes
15929 no:yes:* )
15930 { echo "$as_me:$LINENO: WARNING: dl.h: present but cannot be compiled" >&5
15931 echo "$as_me: WARNING: dl.h: present but cannot be compiled" >&2;}
15932 { echo "$as_me:$LINENO: WARNING: dl.h: check for missing prerequisite headers?" >&5
15933 echo "$as_me: WARNING: dl.h: check for missing prerequisite headers?" >&2;}
15934 { echo "$as_me:$LINENO: WARNING: dl.h: see the Autoconf documentation" >&5
15935 echo "$as_me: WARNING: dl.h: see the Autoconf documentation" >&2;}
15936 { echo "$as_me:$LINENO: WARNING: dl.h: section \"Present But Cannot Be Compiled\"" >&5
15937 echo "$as_me: WARNING: dl.h: section \"Present But Cannot Be Compiled\"" >&2;}
15938 { echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the preprocessor's result" >&5
15939 echo "$as_me: WARNING: dl.h: proceeding with the preprocessor's result" >&2;}
15940 { echo "$as_me:$LINENO: WARNING: dl.h: in the future, the compiler will take precedence" >&5
15941 echo "$as_me: WARNING: dl.h: in the future, the compiler will take precedence" >&2;}
15944 esac
15945 { echo "$as_me:$LINENO: checking for dl.h" >&5
15946 echo $ECHO_N "checking for dl.h... $ECHO_C" >&6; }
15947 if test "${ac_cv_header_dl_h+set}" = set; then
15948 echo $ECHO_N "(cached) $ECHO_C" >&6
15949 else
15950 ac_cv_header_dl_h=$ac_header_preproc
15952 { echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5
15953 echo "${ECHO_T}$ac_cv_header_dl_h" >&6; }
15956 if test $ac_cv_header_dl_h = yes; then
15957 DLL=dl.h
15964 if test x${DLL} = xdlfcn.h; then
15966 cat >>confdefs.h <<\_ACEOF
15967 #define HAVE_DLFCN_H 1
15968 _ACEOF
15970 { echo "$as_me:$LINENO: checking for dlopen()" >&5
15971 echo $ECHO_N "checking for dlopen()... $ECHO_C" >&6; }
15972 cat >conftest.$ac_ext <<_ACEOF
15973 /* confdefs.h. */
15974 _ACEOF
15975 cat confdefs.h >>conftest.$ac_ext
15976 cat >>conftest.$ac_ext <<_ACEOF
15977 /* end confdefs.h. */
15980 main ()
15983 extern void* dlopen();
15984 dlopen();
15987 return 0;
15989 _ACEOF
15990 rm -f conftest.$ac_objext conftest$ac_exeext
15991 if { (ac_try="$ac_link"
15992 case "(($ac_try" in
15993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15994 *) ac_try_echo=$ac_try;;
15995 esac
15996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15997 (eval "$ac_link") 2>conftest.er1
15998 ac_status=$?
15999 grep -v '^ *+' conftest.er1 >conftest.err
16000 rm -f conftest.er1
16001 cat conftest.err >&5
16002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16003 (exit $ac_status); } && {
16004 test -z "$ac_c_werror_flag" ||
16005 test ! -s conftest.err
16006 } && test -s conftest$ac_exeext &&
16007 $as_test_x conftest$ac_exeext; then
16008 { echo "$as_me:$LINENO: result: yes" >&5
16009 echo "${ECHO_T}yes" >&6; };
16011 cat >>confdefs.h <<\_ACEOF
16012 #define HAVE_DLOPEN 1
16013 _ACEOF
16015 else
16016 echo "$as_me: failed program was:" >&5
16017 sed 's/^/| /' conftest.$ac_ext >&5
16019 { echo "$as_me:$LINENO: result: no" >&5
16020 echo "${ECHO_T}no" >&6; };
16021 { echo "$as_me:$LINENO: checking for dlopen() in -ldl" >&5
16022 echo $ECHO_N "checking for dlopen() in -ldl... $ECHO_C" >&6; }
16023 olibs=$LIBS
16024 LIBS="$LIBS -ldl"
16025 cat >conftest.$ac_ext <<_ACEOF
16026 /* confdefs.h. */
16027 _ACEOF
16028 cat confdefs.h >>conftest.$ac_ext
16029 cat >>conftest.$ac_ext <<_ACEOF
16030 /* end confdefs.h. */
16033 main ()
16036 extern void* dlopen();
16037 dlopen();
16040 return 0;
16042 _ACEOF
16043 rm -f conftest.$ac_objext conftest$ac_exeext
16044 if { (ac_try="$ac_link"
16045 case "(($ac_try" in
16046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16047 *) ac_try_echo=$ac_try;;
16048 esac
16049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16050 (eval "$ac_link") 2>conftest.er1
16051 ac_status=$?
16052 grep -v '^ *+' conftest.er1 >conftest.err
16053 rm -f conftest.er1
16054 cat conftest.err >&5
16055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16056 (exit $ac_status); } && {
16057 test -z "$ac_c_werror_flag" ||
16058 test ! -s conftest.err
16059 } && test -s conftest$ac_exeext &&
16060 $as_test_x conftest$ac_exeext; then
16061 { echo "$as_me:$LINENO: result: yes" >&5
16062 echo "${ECHO_T}yes" >&6; };
16064 cat >>confdefs.h <<\_ACEOF
16065 #define HAVE_DLOPEN 1
16066 _ACEOF
16068 else
16069 echo "$as_me: failed program was:" >&5
16070 sed 's/^/| /' conftest.$ac_ext >&5
16072 { echo "$as_me:$LINENO: result: no" >&5
16073 echo "${ECHO_T}no" >&6; };
16074 LIBS=$olibs
16077 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16078 conftest$ac_exeext conftest.$ac_ext
16081 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16082 conftest$ac_exeext conftest.$ac_ext
16083 { echo "$as_me:$LINENO: checking for dlsym()" >&5
16084 echo $ECHO_N "checking for dlsym()... $ECHO_C" >&6; }
16085 cat >conftest.$ac_ext <<_ACEOF
16086 /* confdefs.h. */
16087 _ACEOF
16088 cat confdefs.h >>conftest.$ac_ext
16089 cat >>conftest.$ac_ext <<_ACEOF
16090 /* end confdefs.h. */
16093 main ()
16096 extern void* dlsym();
16097 dlsym();
16100 return 0;
16102 _ACEOF
16103 rm -f conftest.$ac_objext conftest$ac_exeext
16104 if { (ac_try="$ac_link"
16105 case "(($ac_try" in
16106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16107 *) ac_try_echo=$ac_try;;
16108 esac
16109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16110 (eval "$ac_link") 2>conftest.er1
16111 ac_status=$?
16112 grep -v '^ *+' conftest.er1 >conftest.err
16113 rm -f conftest.er1
16114 cat conftest.err >&5
16115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16116 (exit $ac_status); } && {
16117 test -z "$ac_c_werror_flag" ||
16118 test ! -s conftest.err
16119 } && test -s conftest$ac_exeext &&
16120 $as_test_x conftest$ac_exeext; then
16121 { echo "$as_me:$LINENO: result: yes" >&5
16122 echo "${ECHO_T}yes" >&6; };
16124 cat >>confdefs.h <<\_ACEOF
16125 #define HAVE_DLSYM 1
16126 _ACEOF
16128 else
16129 echo "$as_me: failed program was:" >&5
16130 sed 's/^/| /' conftest.$ac_ext >&5
16132 { echo "$as_me:$LINENO: result: no" >&5
16133 echo "${ECHO_T}no" >&6; };
16134 { echo "$as_me:$LINENO: checking for dlsym() in -ldl" >&5
16135 echo $ECHO_N "checking for dlsym() in -ldl... $ECHO_C" >&6; }
16136 olibs=$LIBS
16137 LIBS="$LIBS -ldl"
16138 cat >conftest.$ac_ext <<_ACEOF
16139 /* confdefs.h. */
16140 _ACEOF
16141 cat confdefs.h >>conftest.$ac_ext
16142 cat >>conftest.$ac_ext <<_ACEOF
16143 /* end confdefs.h. */
16146 main ()
16149 extern void* dlsym();
16150 dlsym();
16153 return 0;
16155 _ACEOF
16156 rm -f conftest.$ac_objext conftest$ac_exeext
16157 if { (ac_try="$ac_link"
16158 case "(($ac_try" in
16159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16160 *) ac_try_echo=$ac_try;;
16161 esac
16162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16163 (eval "$ac_link") 2>conftest.er1
16164 ac_status=$?
16165 grep -v '^ *+' conftest.er1 >conftest.err
16166 rm -f conftest.er1
16167 cat conftest.err >&5
16168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16169 (exit $ac_status); } && {
16170 test -z "$ac_c_werror_flag" ||
16171 test ! -s conftest.err
16172 } && test -s conftest$ac_exeext &&
16173 $as_test_x conftest$ac_exeext; then
16174 { echo "$as_me:$LINENO: result: yes" >&5
16175 echo "${ECHO_T}yes" >&6; };
16177 cat >>confdefs.h <<\_ACEOF
16178 #define HAVE_DLSYM 1
16179 _ACEOF
16181 else
16182 echo "$as_me: failed program was:" >&5
16183 sed 's/^/| /' conftest.$ac_ext >&5
16185 { echo "$as_me:$LINENO: result: no" >&5
16186 echo "${ECHO_T}no" >&6; };
16187 LIBS=$olibs
16190 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16191 conftest$ac_exeext conftest.$ac_ext
16194 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16195 conftest$ac_exeext conftest.$ac_ext
16196 elif test x${DLL} = xdl.h; then
16198 cat >>confdefs.h <<\_ACEOF
16199 #define HAVE_DL_H 1
16200 _ACEOF
16202 { echo "$as_me:$LINENO: checking for shl_load()" >&5
16203 echo $ECHO_N "checking for shl_load()... $ECHO_C" >&6; }
16204 cat >conftest.$ac_ext <<_ACEOF
16205 /* confdefs.h. */
16206 _ACEOF
16207 cat confdefs.h >>conftest.$ac_ext
16208 cat >>conftest.$ac_ext <<_ACEOF
16209 /* end confdefs.h. */
16212 main ()
16215 extern void* shl_load();
16216 shl_load();
16219 return 0;
16221 _ACEOF
16222 rm -f conftest.$ac_objext conftest$ac_exeext
16223 if { (ac_try="$ac_link"
16224 case "(($ac_try" in
16225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16226 *) ac_try_echo=$ac_try;;
16227 esac
16228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16229 (eval "$ac_link") 2>conftest.er1
16230 ac_status=$?
16231 grep -v '^ *+' conftest.er1 >conftest.err
16232 rm -f conftest.er1
16233 cat conftest.err >&5
16234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16235 (exit $ac_status); } && {
16236 test -z "$ac_c_werror_flag" ||
16237 test ! -s conftest.err
16238 } && test -s conftest$ac_exeext &&
16239 $as_test_x conftest$ac_exeext; then
16240 { echo "$as_me:$LINENO: result: yes" >&5
16241 echo "${ECHO_T}yes" >&6; };
16243 cat >>confdefs.h <<\_ACEOF
16244 #define HAVE_SHL_LOAD 1
16245 _ACEOF
16247 else
16248 echo "$as_me: failed program was:" >&5
16249 sed 's/^/| /' conftest.$ac_ext >&5
16251 { echo "$as_me:$LINENO: result: no" >&5
16252 echo "${ECHO_T}no" >&6; };
16253 { echo "$as_me:$LINENO: checking for shl_load() in -ldld" >&5
16254 echo $ECHO_N "checking for shl_load() in -ldld... $ECHO_C" >&6; }
16255 olibs=$LIBS
16256 LIBS="$LIBS -ldld"
16257 cat >conftest.$ac_ext <<_ACEOF
16258 /* confdefs.h. */
16259 _ACEOF
16260 cat confdefs.h >>conftest.$ac_ext
16261 cat >>conftest.$ac_ext <<_ACEOF
16262 /* end confdefs.h. */
16265 main ()
16268 extern void* shl_load();
16269 shl_load();
16272 return 0;
16274 _ACEOF
16275 rm -f conftest.$ac_objext conftest$ac_exeext
16276 if { (ac_try="$ac_link"
16277 case "(($ac_try" in
16278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16279 *) ac_try_echo=$ac_try;;
16280 esac
16281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16282 (eval "$ac_link") 2>conftest.er1
16283 ac_status=$?
16284 grep -v '^ *+' conftest.er1 >conftest.err
16285 rm -f conftest.er1
16286 cat conftest.err >&5
16287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16288 (exit $ac_status); } && {
16289 test -z "$ac_c_werror_flag" ||
16290 test ! -s conftest.err
16291 } && test -s conftest$ac_exeext &&
16292 $as_test_x conftest$ac_exeext; then
16293 { echo "$as_me:$LINENO: result: yes" >&5
16294 echo "${ECHO_T}yes" >&6; };
16296 cat >>confdefs.h <<\_ACEOF
16297 #define HAVE_SHL_LOAD 1
16298 _ACEOF
16300 else
16301 echo "$as_me: failed program was:" >&5
16302 sed 's/^/| /' conftest.$ac_ext >&5
16304 { echo "$as_me:$LINENO: result: no" >&5
16305 echo "${ECHO_T}no" >&6; };
16306 LIBS=$olibs
16309 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16310 conftest$ac_exeext conftest.$ac_ext
16313 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16314 conftest$ac_exeext conftest.$ac_ext
16317 for ac_header in setjmp.h
16319 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16320 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16321 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16322 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16323 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16324 echo $ECHO_N "(cached) $ECHO_C" >&6
16326 ac_res=`eval echo '${'$as_ac_Header'}'`
16327 { echo "$as_me:$LINENO: result: $ac_res" >&5
16328 echo "${ECHO_T}$ac_res" >&6; }
16329 else
16330 # Is the header compilable?
16331 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16332 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16333 cat >conftest.$ac_ext <<_ACEOF
16334 /* confdefs.h. */
16335 _ACEOF
16336 cat confdefs.h >>conftest.$ac_ext
16337 cat >>conftest.$ac_ext <<_ACEOF
16338 /* end confdefs.h. */
16339 $ac_includes_default
16340 #include <$ac_header>
16341 _ACEOF
16342 rm -f conftest.$ac_objext
16343 if { (ac_try="$ac_compile"
16344 case "(($ac_try" in
16345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16346 *) ac_try_echo=$ac_try;;
16347 esac
16348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16349 (eval "$ac_compile") 2>conftest.er1
16350 ac_status=$?
16351 grep -v '^ *+' conftest.er1 >conftest.err
16352 rm -f conftest.er1
16353 cat conftest.err >&5
16354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16355 (exit $ac_status); } && {
16356 test -z "$ac_c_werror_flag" ||
16357 test ! -s conftest.err
16358 } && test -s conftest.$ac_objext; then
16359 ac_header_compiler=yes
16360 else
16361 echo "$as_me: failed program was:" >&5
16362 sed 's/^/| /' conftest.$ac_ext >&5
16364 ac_header_compiler=no
16367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16368 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16369 echo "${ECHO_T}$ac_header_compiler" >&6; }
16371 # Is the header present?
16372 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16373 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16374 cat >conftest.$ac_ext <<_ACEOF
16375 /* confdefs.h. */
16376 _ACEOF
16377 cat confdefs.h >>conftest.$ac_ext
16378 cat >>conftest.$ac_ext <<_ACEOF
16379 /* end confdefs.h. */
16380 #include <$ac_header>
16381 _ACEOF
16382 if { (ac_try="$ac_cpp conftest.$ac_ext"
16383 case "(($ac_try" in
16384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16385 *) ac_try_echo=$ac_try;;
16386 esac
16387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16388 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16389 ac_status=$?
16390 grep -v '^ *+' conftest.er1 >conftest.err
16391 rm -f conftest.er1
16392 cat conftest.err >&5
16393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16394 (exit $ac_status); } >/dev/null && {
16395 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16396 test ! -s conftest.err
16397 }; then
16398 ac_header_preproc=yes
16399 else
16400 echo "$as_me: failed program was:" >&5
16401 sed 's/^/| /' conftest.$ac_ext >&5
16403 ac_header_preproc=no
16406 rm -f conftest.err conftest.$ac_ext
16407 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16408 echo "${ECHO_T}$ac_header_preproc" >&6; }
16410 # So? What about this header?
16411 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16412 yes:no: )
16413 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16414 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16415 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16416 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16417 ac_header_preproc=yes
16419 no:yes:* )
16420 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16421 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16422 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16423 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16424 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16425 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16426 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16427 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16428 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16429 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16430 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16431 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16434 esac
16435 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16436 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16437 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16438 echo $ECHO_N "(cached) $ECHO_C" >&6
16439 else
16440 eval "$as_ac_Header=\$ac_header_preproc"
16442 ac_res=`eval echo '${'$as_ac_Header'}'`
16443 { echo "$as_me:$LINENO: result: $ac_res" >&5
16444 echo "${ECHO_T}$ac_res" >&6; }
16447 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16448 cat >>confdefs.h <<_ACEOF
16449 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16450 _ACEOF
16454 done
16457 if test "x$MACOSX" = "xyes" -a -n "$PERL"; then
16458 if echo $LIBS | grep -e '-ldl' >/dev/null; then
16459 LIBS=`echo $LIBS | sed s/-ldl//`
16460 PERL_LIBS="$PERL_LIBS -ldl"
16464 if test "x$MACOSX" = "xyes" && test "x$CARBON" = "xyes" \
16465 && test "x$GUITYPE" != "xCARBONGUI" && test "x$GUITYPE" != "xMACVIMGUI"; then
16466 { echo "$as_me:$LINENO: checking whether we need -framework Carbon" >&5
16467 echo $ECHO_N "checking whether we need -framework Carbon... $ECHO_C" >&6; }
16468 if test "x$enable_multibyte" = "xyes" || test "x$features" = "xbig" \
16469 || test "x$features" = "xhuge"; then
16470 LIBS="$LIBS -framework Carbon"
16471 { echo "$as_me:$LINENO: result: yes" >&5
16472 echo "${ECHO_T}yes" >&6; }
16473 else
16474 { echo "$as_me:$LINENO: result: no" >&5
16475 echo "${ECHO_T}no" >&6; }
16478 if test "x$MACARCH" = "xboth"; then
16479 LDFLAGS="$LDFLAGS -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc"
16482 DEPEND_CFLAGS_FILTER=
16483 if test "$GCC" = yes; then
16484 { echo "$as_me:$LINENO: checking for GCC 3 or later" >&5
16485 echo $ECHO_N "checking for GCC 3 or later... $ECHO_C" >&6; }
16486 gccmajor=`echo "$gccversion" | sed -e 's/^\([1-9]\)\..*$/\1/g'`
16487 if test "$gccmajor" -gt "2"; then
16488 DEPEND_CFLAGS_FILTER="| sed 's+-I */+-isystem /+g'"
16489 { echo "$as_me:$LINENO: result: yes" >&5
16490 echo "${ECHO_T}yes" >&6; }
16491 else
16492 { echo "$as_me:$LINENO: result: no" >&5
16493 echo "${ECHO_T}no" >&6; }
16495 { echo "$as_me:$LINENO: checking whether we need -D_FORTIFY_SOURCE=1" >&5
16496 echo $ECHO_N "checking whether we need -D_FORTIFY_SOURCE=1... $ECHO_C" >&6; }
16497 if test "$gccmajor" -gt "3"; then
16498 CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=1"
16499 { echo "$as_me:$LINENO: result: yes" >&5
16500 echo "${ECHO_T}yes" >&6; }
16501 else
16502 { echo "$as_me:$LINENO: result: no" >&5
16503 echo "${ECHO_T}no" >&6; }
16508 ac_config_files="$ac_config_files auto/config.mk:config.mk.in"
16510 cat >confcache <<\_ACEOF
16511 # This file is a shell script that caches the results of configure
16512 # tests run on this system so they can be shared between configure
16513 # scripts and configure runs, see configure's option --config-cache.
16514 # It is not useful on other systems. If it contains results you don't
16515 # want to keep, you may remove or edit it.
16517 # config.status only pays attention to the cache file if you give it
16518 # the --recheck option to rerun configure.
16520 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16521 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16522 # following values.
16524 _ACEOF
16526 # The following way of writing the cache mishandles newlines in values,
16527 # but we know of no workaround that is simple, portable, and efficient.
16528 # So, we kill variables containing newlines.
16529 # Ultrix sh set writes to stderr and can't be redirected directly,
16530 # and sets the high bit in the cache file unless we assign to the vars.
16532 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16533 eval ac_val=\$$ac_var
16534 case $ac_val in #(
16535 *${as_nl}*)
16536 case $ac_var in #(
16537 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
16538 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
16539 esac
16540 case $ac_var in #(
16541 _ | IFS | as_nl) ;; #(
16542 *) $as_unset $ac_var ;;
16543 esac ;;
16544 esac
16545 done
16547 (set) 2>&1 |
16548 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16549 *${as_nl}ac_space=\ *)
16550 # `set' does not quote correctly, so add quotes (double-quote
16551 # substitution turns \\\\ into \\, and sed turns \\ into \).
16552 sed -n \
16553 "s/'/'\\\\''/g;
16554 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16555 ;; #(
16557 # `set' quotes correctly as required by POSIX, so do not add quotes.
16558 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16560 esac |
16561 sort
16563 sed '
16564 /^ac_cv_env_/b end
16565 t clear
16566 :clear
16567 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16568 t end
16569 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16570 :end' >>confcache
16571 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16572 if test -w "$cache_file"; then
16573 test "x$cache_file" != "x/dev/null" &&
16574 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
16575 echo "$as_me: updating cache $cache_file" >&6;}
16576 cat confcache >$cache_file
16577 else
16578 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
16579 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16582 rm -f confcache
16584 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16585 # Let make expand exec_prefix.
16586 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16588 DEFS=-DHAVE_CONFIG_H
16590 ac_libobjs=
16591 ac_ltlibobjs=
16592 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16593 # 1. Remove the extension, and $U if already installed.
16594 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16595 ac_i=`echo "$ac_i" | sed "$ac_script"`
16596 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16597 # will be set to the directory where LIBOBJS objects are built.
16598 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16599 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
16600 done
16601 LIBOBJS=$ac_libobjs
16603 LTLIBOBJS=$ac_ltlibobjs
16607 : ${CONFIG_STATUS=./config.status}
16608 ac_clean_files_save=$ac_clean_files
16609 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16610 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16611 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16612 cat >$CONFIG_STATUS <<_ACEOF
16613 #! $SHELL
16614 # Generated by $as_me.
16615 # Run this file to recreate the current configuration.
16616 # Compiler output produced by configure, useful for debugging
16617 # configure, is in config.log if it exists.
16619 debug=false
16620 ac_cs_recheck=false
16621 ac_cs_silent=false
16622 SHELL=\${CONFIG_SHELL-$SHELL}
16623 _ACEOF
16625 cat >>$CONFIG_STATUS <<\_ACEOF
16626 ## --------------------- ##
16627 ## M4sh Initialization. ##
16628 ## --------------------- ##
16630 # Be more Bourne compatible
16631 DUALCASE=1; export DUALCASE # for MKS sh
16632 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16633 emulate sh
16634 NULLCMD=:
16635 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16636 # is contrary to our usage. Disable this feature.
16637 alias -g '${1+"$@"}'='"$@"'
16638 setopt NO_GLOB_SUBST
16639 else
16640 case `(set -o) 2>/dev/null` in
16641 *posix*) set -o posix ;;
16642 esac
16649 # PATH needs CR
16650 # Avoid depending upon Character Ranges.
16651 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16652 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16653 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16654 as_cr_digits='0123456789'
16655 as_cr_alnum=$as_cr_Letters$as_cr_digits
16657 # The user is always right.
16658 if test "${PATH_SEPARATOR+set}" != set; then
16659 echo "#! /bin/sh" >conf$$.sh
16660 echo "exit 0" >>conf$$.sh
16661 chmod +x conf$$.sh
16662 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16663 PATH_SEPARATOR=';'
16664 else
16665 PATH_SEPARATOR=:
16667 rm -f conf$$.sh
16670 # Support unset when possible.
16671 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16672 as_unset=unset
16673 else
16674 as_unset=false
16678 # IFS
16679 # We need space, tab and new line, in precisely that order. Quoting is
16680 # there to prevent editors from complaining about space-tab.
16681 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16682 # splitting by setting IFS to empty value.)
16683 as_nl='
16685 IFS=" "" $as_nl"
16687 # Find who we are. Look in the path if we contain no directory separator.
16688 case $0 in
16689 *[\\/]* ) as_myself=$0 ;;
16690 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16691 for as_dir in $PATH
16693 IFS=$as_save_IFS
16694 test -z "$as_dir" && as_dir=.
16695 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16696 done
16697 IFS=$as_save_IFS
16700 esac
16701 # We did not find ourselves, most probably we were run as `sh COMMAND'
16702 # in which case we are not to be found in the path.
16703 if test "x$as_myself" = x; then
16704 as_myself=$0
16706 if test ! -f "$as_myself"; then
16707 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16708 { (exit 1); exit 1; }
16711 # Work around bugs in pre-3.0 UWIN ksh.
16712 for as_var in ENV MAIL MAILPATH
16713 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
16714 done
16715 PS1='$ '
16716 PS2='> '
16717 PS4='+ '
16719 # NLS nuisances.
16720 for as_var in \
16721 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16722 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16723 LC_TELEPHONE LC_TIME
16725 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
16726 eval $as_var=C; export $as_var
16727 else
16728 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
16730 done
16732 # Required to use basename.
16733 if expr a : '\(a\)' >/dev/null 2>&1 &&
16734 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16735 as_expr=expr
16736 else
16737 as_expr=false
16740 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16741 as_basename=basename
16742 else
16743 as_basename=false
16747 # Name of the executable.
16748 as_me=`$as_basename -- "$0" ||
16749 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16750 X"$0" : 'X\(//\)$' \| \
16751 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16752 echo X/"$0" |
16753 sed '/^.*\/\([^/][^/]*\)\/*$/{
16754 s//\1/
16757 /^X\/\(\/\/\)$/{
16758 s//\1/
16761 /^X\/\(\/\).*/{
16762 s//\1/
16765 s/.*/./; q'`
16767 # CDPATH.
16768 $as_unset CDPATH
16772 as_lineno_1=$LINENO
16773 as_lineno_2=$LINENO
16774 test "x$as_lineno_1" != "x$as_lineno_2" &&
16775 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
16777 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16778 # uniformly replaced by the line number. The first 'sed' inserts a
16779 # line-number line after each line using $LINENO; the second 'sed'
16780 # does the real work. The second script uses 'N' to pair each
16781 # line-number line with the line containing $LINENO, and appends
16782 # trailing '-' during substitution so that $LINENO is not a special
16783 # case at line end.
16784 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16785 # scripts with optimization help from Paolo Bonzini. Blame Lee
16786 # E. McMahon (1931-1989) for sed's syntax. :-)
16787 sed -n '
16789 /[$]LINENO/=
16790 ' <$as_myself |
16791 sed '
16792 s/[$]LINENO.*/&-/
16793 t lineno
16795 :lineno
16797 :loop
16798 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
16799 t loop
16800 s/-\n.*//
16801 ' >$as_me.lineno &&
16802 chmod +x "$as_me.lineno" ||
16803 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
16804 { (exit 1); exit 1; }; }
16806 # Don't try to exec as it changes $[0], causing all sort of problems
16807 # (the dirname of $[0] is not the place where we might find the
16808 # original and so on. Autoconf is especially sensitive to this).
16809 . "./$as_me.lineno"
16810 # Exit status is that of the last command.
16811 exit
16815 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16816 as_dirname=dirname
16817 else
16818 as_dirname=false
16821 ECHO_C= ECHO_N= ECHO_T=
16822 case `echo -n x` in
16823 -n*)
16824 case `echo 'x\c'` in
16825 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16826 *) ECHO_C='\c';;
16827 esac;;
16829 ECHO_N='-n';;
16830 esac
16832 if expr a : '\(a\)' >/dev/null 2>&1 &&
16833 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16834 as_expr=expr
16835 else
16836 as_expr=false
16839 rm -f conf$$ conf$$.exe conf$$.file
16840 if test -d conf$$.dir; then
16841 rm -f conf$$.dir/conf$$.file
16842 else
16843 rm -f conf$$.dir
16844 mkdir conf$$.dir
16846 echo >conf$$.file
16847 if ln -s conf$$.file conf$$ 2>/dev/null; then
16848 as_ln_s='ln -s'
16849 # ... but there are two gotchas:
16850 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16851 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16852 # In both cases, we have to default to `cp -p'.
16853 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16854 as_ln_s='cp -p'
16855 elif ln conf$$.file conf$$ 2>/dev/null; then
16856 as_ln_s=ln
16857 else
16858 as_ln_s='cp -p'
16860 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16861 rmdir conf$$.dir 2>/dev/null
16863 if mkdir -p . 2>/dev/null; then
16864 as_mkdir_p=:
16865 else
16866 test -d ./-p && rmdir ./-p
16867 as_mkdir_p=false
16870 if test -x / >/dev/null 2>&1; then
16871 as_test_x='test -x'
16872 else
16873 if ls -dL / >/dev/null 2>&1; then
16874 as_ls_L_option=L
16875 else
16876 as_ls_L_option=
16878 as_test_x='
16879 eval sh -c '\''
16880 if test -d "$1"; then
16881 test -d "$1/.";
16882 else
16883 case $1 in
16884 -*)set "./$1";;
16885 esac;
16886 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
16887 ???[sx]*):;;*)false;;esac;fi
16888 '\'' sh
16891 as_executable_p=$as_test_x
16893 # Sed expression to map a string onto a valid CPP name.
16894 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16896 # Sed expression to map a string onto a valid variable name.
16897 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16900 exec 6>&1
16902 # Save the log message, to keep $[0] and so on meaningful, and to
16903 # report actual input values of CONFIG_FILES etc. instead of their
16904 # values after options handling.
16905 ac_log="
16906 This file was extended by $as_me, which was
16907 generated by GNU Autoconf 2.61. Invocation command line was
16909 CONFIG_FILES = $CONFIG_FILES
16910 CONFIG_HEADERS = $CONFIG_HEADERS
16911 CONFIG_LINKS = $CONFIG_LINKS
16912 CONFIG_COMMANDS = $CONFIG_COMMANDS
16913 $ $0 $@
16915 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16918 _ACEOF
16920 cat >>$CONFIG_STATUS <<_ACEOF
16921 # Files that config.status was made for.
16922 config_files="$ac_config_files"
16923 config_headers="$ac_config_headers"
16925 _ACEOF
16927 cat >>$CONFIG_STATUS <<\_ACEOF
16928 ac_cs_usage="\
16929 \`$as_me' instantiates files from templates according to the
16930 current configuration.
16932 Usage: $0 [OPTIONS] [FILE]...
16934 -h, --help print this help, then exit
16935 -V, --version print version number and configuration settings, then exit
16936 -q, --quiet do not print progress messages
16937 -d, --debug don't remove temporary files
16938 --recheck update $as_me by reconfiguring in the same conditions
16939 --file=FILE[:TEMPLATE]
16940 instantiate the configuration file FILE
16941 --header=FILE[:TEMPLATE]
16942 instantiate the configuration header FILE
16944 Configuration files:
16945 $config_files
16947 Configuration headers:
16948 $config_headers
16950 Report bugs to <bug-autoconf@gnu.org>."
16952 _ACEOF
16953 cat >>$CONFIG_STATUS <<_ACEOF
16954 ac_cs_version="\\
16955 config.status
16956 configured by $0, generated by GNU Autoconf 2.61,
16957 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16959 Copyright (C) 2006 Free Software Foundation, Inc.
16960 This config.status script is free software; the Free Software Foundation
16961 gives unlimited permission to copy, distribute and modify it."
16963 ac_pwd='$ac_pwd'
16964 srcdir='$srcdir'
16965 _ACEOF
16967 cat >>$CONFIG_STATUS <<\_ACEOF
16968 # If no file are specified by the user, then we need to provide default
16969 # value. By we need to know if files were specified by the user.
16970 ac_need_defaults=:
16971 while test $# != 0
16973 case $1 in
16974 --*=*)
16975 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16976 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16977 ac_shift=:
16980 ac_option=$1
16981 ac_optarg=$2
16982 ac_shift=shift
16984 esac
16986 case $ac_option in
16987 # Handling of the options.
16988 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16989 ac_cs_recheck=: ;;
16990 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16991 echo "$ac_cs_version"; exit ;;
16992 --debug | --debu | --deb | --de | --d | -d )
16993 debug=: ;;
16994 --file | --fil | --fi | --f )
16995 $ac_shift
16996 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
16997 ac_need_defaults=false;;
16998 --header | --heade | --head | --hea )
16999 $ac_shift
17000 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
17001 ac_need_defaults=false;;
17002 --he | --h)
17003 # Conflict between --help and --header
17004 { echo "$as_me: error: ambiguous option: $1
17005 Try \`$0 --help' for more information." >&2
17006 { (exit 1); exit 1; }; };;
17007 --help | --hel | -h )
17008 echo "$ac_cs_usage"; exit ;;
17009 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17010 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17011 ac_cs_silent=: ;;
17013 # This is an error.
17014 -*) { echo "$as_me: error: unrecognized option: $1
17015 Try \`$0 --help' for more information." >&2
17016 { (exit 1); exit 1; }; } ;;
17018 *) ac_config_targets="$ac_config_targets $1"
17019 ac_need_defaults=false ;;
17021 esac
17022 shift
17023 done
17025 ac_configure_extra_args=
17027 if $ac_cs_silent; then
17028 exec 6>/dev/null
17029 ac_configure_extra_args="$ac_configure_extra_args --silent"
17032 _ACEOF
17033 cat >>$CONFIG_STATUS <<_ACEOF
17034 if \$ac_cs_recheck; then
17035 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
17036 CONFIG_SHELL=$SHELL
17037 export CONFIG_SHELL
17038 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17041 _ACEOF
17042 cat >>$CONFIG_STATUS <<\_ACEOF
17043 exec 5>>config.log
17045 echo
17046 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17047 ## Running $as_me. ##
17048 _ASBOX
17049 echo "$ac_log"
17050 } >&5
17052 _ACEOF
17053 cat >>$CONFIG_STATUS <<_ACEOF
17054 _ACEOF
17056 cat >>$CONFIG_STATUS <<\_ACEOF
17058 # Handling of arguments.
17059 for ac_config_target in $ac_config_targets
17061 case $ac_config_target in
17062 "auto/config.h") CONFIG_HEADERS="$CONFIG_HEADERS auto/config.h:config.h.in" ;;
17063 "auto/config.mk") CONFIG_FILES="$CONFIG_FILES auto/config.mk:config.mk.in" ;;
17065 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17066 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17067 { (exit 1); exit 1; }; };;
17068 esac
17069 done
17072 # If the user did not use the arguments to specify the items to instantiate,
17073 # then the envvar interface is used. Set only those that are not.
17074 # We use the long form for the default assignment because of an extremely
17075 # bizarre bug on SunOS 4.1.3.
17076 if $ac_need_defaults; then
17077 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17078 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17081 # Have a temporary directory for convenience. Make it in the build tree
17082 # simply because there is no reason against having it here, and in addition,
17083 # creating and moving files from /tmp can sometimes cause problems.
17084 # Hook for its removal unless debugging.
17085 # Note that there is a small window in which the directory will not be cleaned:
17086 # after its creation but before its name has been assigned to `$tmp'.
17087 $debug ||
17089 tmp=
17090 trap 'exit_status=$?
17091 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17093 trap '{ (exit 1); exit 1; }' 1 2 13 15
17095 # Create a (secure) tmp directory for tmp files.
17098 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17099 test -n "$tmp" && test -d "$tmp"
17100 } ||
17102 tmp=./conf$$-$RANDOM
17103 (umask 077 && mkdir "$tmp")
17104 } ||
17106 echo "$me: cannot create a temporary directory in ." >&2
17107 { (exit 1); exit 1; }
17111 # Set up the sed scripts for CONFIG_FILES section.
17114 # No need to generate the scripts if there are no CONFIG_FILES.
17115 # This happens for instance when ./config.status config.h
17116 if test -n "$CONFIG_FILES"; then
17118 _ACEOF
17122 ac_delim='%!_!# '
17123 for ac_last_try in false false false false false :; do
17124 cat >conf$$subs.sed <<_ACEOF
17125 SHELL!$SHELL$ac_delim
17126 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
17127 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
17128 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
17129 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
17130 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
17131 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
17132 exec_prefix!$exec_prefix$ac_delim
17133 prefix!$prefix$ac_delim
17134 program_transform_name!$program_transform_name$ac_delim
17135 bindir!$bindir$ac_delim
17136 sbindir!$sbindir$ac_delim
17137 libexecdir!$libexecdir$ac_delim
17138 datarootdir!$datarootdir$ac_delim
17139 datadir!$datadir$ac_delim
17140 sysconfdir!$sysconfdir$ac_delim
17141 sharedstatedir!$sharedstatedir$ac_delim
17142 localstatedir!$localstatedir$ac_delim
17143 includedir!$includedir$ac_delim
17144 oldincludedir!$oldincludedir$ac_delim
17145 docdir!$docdir$ac_delim
17146 infodir!$infodir$ac_delim
17147 htmldir!$htmldir$ac_delim
17148 dvidir!$dvidir$ac_delim
17149 pdfdir!$pdfdir$ac_delim
17150 psdir!$psdir$ac_delim
17151 libdir!$libdir$ac_delim
17152 localedir!$localedir$ac_delim
17153 mandir!$mandir$ac_delim
17154 DEFS!$DEFS$ac_delim
17155 ECHO_C!$ECHO_C$ac_delim
17156 ECHO_N!$ECHO_N$ac_delim
17157 ECHO_T!$ECHO_T$ac_delim
17158 LIBS!$LIBS$ac_delim
17159 build_alias!$build_alias$ac_delim
17160 host_alias!$host_alias$ac_delim
17161 target_alias!$target_alias$ac_delim
17162 SET_MAKE!$SET_MAKE$ac_delim
17163 CC!$CC$ac_delim
17164 CFLAGS!$CFLAGS$ac_delim
17165 LDFLAGS!$LDFLAGS$ac_delim
17166 CPPFLAGS!$CPPFLAGS$ac_delim
17167 ac_ct_CC!$ac_ct_CC$ac_delim
17168 EXEEXT!$EXEEXT$ac_delim
17169 OBJEXT!$OBJEXT$ac_delim
17170 CPP!$CPP$ac_delim
17171 GREP!$GREP$ac_delim
17172 EGREP!$EGREP$ac_delim
17173 AWK!$AWK$ac_delim
17174 STRIP!$STRIP$ac_delim
17175 CPP_MM!$CPP_MM$ac_delim
17176 OS_EXTRA_SRC!$OS_EXTRA_SRC$ac_delim
17177 OS_EXTRA_OBJ!$OS_EXTRA_OBJ$ac_delim
17178 VIMNAME!$VIMNAME$ac_delim
17179 EXNAME!$EXNAME$ac_delim
17180 VIEWNAME!$VIEWNAME$ac_delim
17181 line_break!$line_break$ac_delim
17182 dovimdiff!$dovimdiff$ac_delim
17183 dogvimdiff!$dogvimdiff$ac_delim
17184 compiledby!$compiledby$ac_delim
17185 vi_cv_path_mzscheme!$vi_cv_path_mzscheme$ac_delim
17186 MZSCHEME_SRC!$MZSCHEME_SRC$ac_delim
17187 MZSCHEME_OBJ!$MZSCHEME_OBJ$ac_delim
17188 MZSCHEME_PRO!$MZSCHEME_PRO$ac_delim
17189 MZSCHEME_LIBS!$MZSCHEME_LIBS$ac_delim
17190 MZSCHEME_CFLAGS!$MZSCHEME_CFLAGS$ac_delim
17191 MZSCHEME_EXTRA!$MZSCHEME_EXTRA$ac_delim
17192 MZSCHEME_MZC!$MZSCHEME_MZC$ac_delim
17193 vi_cv_path_perl!$vi_cv_path_perl$ac_delim
17194 vi_cv_perllib!$vi_cv_perllib$ac_delim
17195 shrpenv!$shrpenv$ac_delim
17196 PERL_SRC!$PERL_SRC$ac_delim
17197 PERL_OBJ!$PERL_OBJ$ac_delim
17198 PERL_PRO!$PERL_PRO$ac_delim
17199 PERL_CFLAGS!$PERL_CFLAGS$ac_delim
17200 PERL_LIBS!$PERL_LIBS$ac_delim
17201 vi_cv_path_python!$vi_cv_path_python$ac_delim
17202 PYTHON_CONFDIR!$PYTHON_CONFDIR$ac_delim
17203 PYTHON_LIBS!$PYTHON_LIBS$ac_delim
17204 PYTHON_GETPATH_CFLAGS!$PYTHON_GETPATH_CFLAGS$ac_delim
17205 PYTHON_CFLAGS!$PYTHON_CFLAGS$ac_delim
17206 PYTHON_SRC!$PYTHON_SRC$ac_delim
17207 PYTHON_OBJ!$PYTHON_OBJ$ac_delim
17208 vi_cv_path_tcl!$vi_cv_path_tcl$ac_delim
17209 TCL_SRC!$TCL_SRC$ac_delim
17210 TCL_OBJ!$TCL_OBJ$ac_delim
17211 TCL_PRO!$TCL_PRO$ac_delim
17212 TCL_CFLAGS!$TCL_CFLAGS$ac_delim
17213 TCL_LIBS!$TCL_LIBS$ac_delim
17214 vi_cv_path_ruby!$vi_cv_path_ruby$ac_delim
17215 RUBY_SRC!$RUBY_SRC$ac_delim
17216 RUBY_OBJ!$RUBY_OBJ$ac_delim
17217 RUBY_PRO!$RUBY_PRO$ac_delim
17218 RUBY_CFLAGS!$RUBY_CFLAGS$ac_delim
17219 RUBY_LIBS!$RUBY_LIBS$ac_delim
17220 WORKSHOP_SRC!$WORKSHOP_SRC$ac_delim
17221 WORKSHOP_OBJ!$WORKSHOP_OBJ$ac_delim
17222 _ACEOF
17224 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
17225 break
17226 elif $ac_last_try; then
17227 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17228 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17229 { (exit 1); exit 1; }; }
17230 else
17231 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17233 done
17235 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
17236 if test -n "$ac_eof"; then
17237 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
17238 ac_eof=`expr $ac_eof + 1`
17241 cat >>$CONFIG_STATUS <<_ACEOF
17242 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
17243 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17244 _ACEOF
17245 sed '
17246 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
17247 s/^/s,@/; s/!/@,|#_!!_#|/
17250 s/'"$ac_delim"'$/,g/; t
17251 s/$/\\/; p
17252 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
17253 ' >>$CONFIG_STATUS <conf$$subs.sed
17254 rm -f conf$$subs.sed
17255 cat >>$CONFIG_STATUS <<_ACEOF
17256 CEOF$ac_eof
17257 _ACEOF
17260 ac_delim='%!_!# '
17261 for ac_last_try in false false false false false :; do
17262 cat >conf$$subs.sed <<_ACEOF
17263 NETBEANS_SRC!$NETBEANS_SRC$ac_delim
17264 NETBEANS_OBJ!$NETBEANS_OBJ$ac_delim
17265 SNIFF_SRC!$SNIFF_SRC$ac_delim
17266 SNIFF_OBJ!$SNIFF_OBJ$ac_delim
17267 xmkmfpath!$xmkmfpath$ac_delim
17268 XMKMF!$XMKMF$ac_delim
17269 X_CFLAGS!$X_CFLAGS$ac_delim
17270 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
17271 X_LIBS!$X_LIBS$ac_delim
17272 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
17273 X_LIB!$X_LIB$ac_delim
17274 GTK_CONFIG!$GTK_CONFIG$ac_delim
17275 GTK12_CONFIG!$GTK12_CONFIG$ac_delim
17276 PKG_CONFIG!$PKG_CONFIG$ac_delim
17277 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
17278 GTK_LIBS!$GTK_LIBS$ac_delim
17279 GTK_LIBNAME!$GTK_LIBNAME$ac_delim
17280 GNOME_LIBS!$GNOME_LIBS$ac_delim
17281 GNOME_LIBDIR!$GNOME_LIBDIR$ac_delim
17282 GNOME_INCLUDEDIR!$GNOME_INCLUDEDIR$ac_delim
17283 GNOME_CONFIG!$GNOME_CONFIG$ac_delim
17284 MOTIF_LIBNAME!$MOTIF_LIBNAME$ac_delim
17285 NARROW_PROTO!$NARROW_PROTO$ac_delim
17286 GUI_INC_LOC!$GUI_INC_LOC$ac_delim
17287 GUI_LIB_LOC!$GUI_LIB_LOC$ac_delim
17288 GUITYPE!$GUITYPE$ac_delim
17289 GUI_X_LIBS!$GUI_X_LIBS$ac_delim
17290 HANGULIN_SRC!$HANGULIN_SRC$ac_delim
17291 HANGULIN_OBJ!$HANGULIN_OBJ$ac_delim
17292 TAGPRG!$TAGPRG$ac_delim
17293 INSTALL_LANGS!$INSTALL_LANGS$ac_delim
17294 INSTALL_TOOL_LANGS!$INSTALL_TOOL_LANGS$ac_delim
17295 MSGFMT!$MSGFMT$ac_delim
17296 MAKEMO!$MAKEMO$ac_delim
17297 DEPEND_CFLAGS_FILTER!$DEPEND_CFLAGS_FILTER$ac_delim
17298 LIBOBJS!$LIBOBJS$ac_delim
17299 LTLIBOBJS!$LTLIBOBJS$ac_delim
17300 _ACEOF
17302 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 37; then
17303 break
17304 elif $ac_last_try; then
17305 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17306 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17307 { (exit 1); exit 1; }; }
17308 else
17309 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17311 done
17313 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
17314 if test -n "$ac_eof"; then
17315 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
17316 ac_eof=`expr $ac_eof + 1`
17319 cat >>$CONFIG_STATUS <<_ACEOF
17320 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
17321 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
17322 _ACEOF
17323 sed '
17324 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
17325 s/^/s,@/; s/!/@,|#_!!_#|/
17328 s/'"$ac_delim"'$/,g/; t
17329 s/$/\\/; p
17330 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
17331 ' >>$CONFIG_STATUS <conf$$subs.sed
17332 rm -f conf$$subs.sed
17333 cat >>$CONFIG_STATUS <<_ACEOF
17334 :end
17335 s/|#_!!_#|//g
17336 CEOF$ac_eof
17337 _ACEOF
17340 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17341 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17342 # trailing colons and then remove the whole line if VPATH becomes empty
17343 # (actually we leave an empty line to preserve line numbers).
17344 if test "x$srcdir" = x.; then
17345 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17346 s/:*\$(srcdir):*/:/
17347 s/:*\${srcdir}:*/:/
17348 s/:*@srcdir@:*/:/
17349 s/^\([^=]*=[ ]*\):*/\1/
17350 s/:*$//
17351 s/^[^=]*=[ ]*$//
17355 cat >>$CONFIG_STATUS <<\_ACEOF
17356 fi # test -n "$CONFIG_FILES"
17359 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
17361 case $ac_tag in
17362 :[FHLC]) ac_mode=$ac_tag; continue;;
17363 esac
17364 case $ac_mode$ac_tag in
17365 :[FHL]*:*);;
17366 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
17367 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
17368 { (exit 1); exit 1; }; };;
17369 :[FH]-) ac_tag=-:-;;
17370 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17371 esac
17372 ac_save_IFS=$IFS
17373 IFS=:
17374 set x $ac_tag
17375 IFS=$ac_save_IFS
17376 shift
17377 ac_file=$1
17378 shift
17380 case $ac_mode in
17381 :L) ac_source=$1;;
17382 :[FH])
17383 ac_file_inputs=
17384 for ac_f
17386 case $ac_f in
17387 -) ac_f="$tmp/stdin";;
17388 *) # Look for the file first in the build tree, then in the source tree
17389 # (if the path is not absolute). The absolute path cannot be DOS-style,
17390 # because $ac_f cannot contain `:'.
17391 test -f "$ac_f" ||
17392 case $ac_f in
17393 [\\/$]*) false;;
17394 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17395 esac ||
17396 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
17397 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
17398 { (exit 1); exit 1; }; };;
17399 esac
17400 ac_file_inputs="$ac_file_inputs $ac_f"
17401 done
17403 # Let's still pretend it is `configure' which instantiates (i.e., don't
17404 # use $as_me), people would be surprised to read:
17405 # /* config.h. Generated by config.status. */
17406 configure_input="Generated from "`IFS=:
17407 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
17408 if test x"$ac_file" != x-; then
17409 configure_input="$ac_file. $configure_input"
17410 { echo "$as_me:$LINENO: creating $ac_file" >&5
17411 echo "$as_me: creating $ac_file" >&6;}
17414 case $ac_tag in
17415 *:-:* | *:-) cat >"$tmp/stdin";;
17416 esac
17418 esac
17420 ac_dir=`$as_dirname -- "$ac_file" ||
17421 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17422 X"$ac_file" : 'X\(//\)[^/]' \| \
17423 X"$ac_file" : 'X\(//\)$' \| \
17424 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17425 echo X"$ac_file" |
17426 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17427 s//\1/
17430 /^X\(\/\/\)[^/].*/{
17431 s//\1/
17434 /^X\(\/\/\)$/{
17435 s//\1/
17438 /^X\(\/\).*/{
17439 s//\1/
17442 s/.*/./; q'`
17443 { as_dir="$ac_dir"
17444 case $as_dir in #(
17445 -*) as_dir=./$as_dir;;
17446 esac
17447 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
17448 as_dirs=
17449 while :; do
17450 case $as_dir in #(
17451 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
17452 *) as_qdir=$as_dir;;
17453 esac
17454 as_dirs="'$as_qdir' $as_dirs"
17455 as_dir=`$as_dirname -- "$as_dir" ||
17456 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17457 X"$as_dir" : 'X\(//\)[^/]' \| \
17458 X"$as_dir" : 'X\(//\)$' \| \
17459 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17460 echo X"$as_dir" |
17461 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17462 s//\1/
17465 /^X\(\/\/\)[^/].*/{
17466 s//\1/
17469 /^X\(\/\/\)$/{
17470 s//\1/
17473 /^X\(\/\).*/{
17474 s//\1/
17477 s/.*/./; q'`
17478 test -d "$as_dir" && break
17479 done
17480 test -z "$as_dirs" || eval "mkdir $as_dirs"
17481 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
17482 echo "$as_me: error: cannot create directory $as_dir" >&2;}
17483 { (exit 1); exit 1; }; }; }
17484 ac_builddir=.
17486 case "$ac_dir" in
17487 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17489 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17490 # A ".." for each directory in $ac_dir_suffix.
17491 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
17492 case $ac_top_builddir_sub in
17493 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17494 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17495 esac ;;
17496 esac
17497 ac_abs_top_builddir=$ac_pwd
17498 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17499 # for backward compatibility:
17500 ac_top_builddir=$ac_top_build_prefix
17502 case $srcdir in
17503 .) # We are building in place.
17504 ac_srcdir=.
17505 ac_top_srcdir=$ac_top_builddir_sub
17506 ac_abs_top_srcdir=$ac_pwd ;;
17507 [\\/]* | ?:[\\/]* ) # Absolute name.
17508 ac_srcdir=$srcdir$ac_dir_suffix;
17509 ac_top_srcdir=$srcdir
17510 ac_abs_top_srcdir=$srcdir ;;
17511 *) # Relative name.
17512 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17513 ac_top_srcdir=$ac_top_build_prefix$srcdir
17514 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17515 esac
17516 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17519 case $ac_mode in
17522 # CONFIG_FILE
17525 _ACEOF
17527 cat >>$CONFIG_STATUS <<\_ACEOF
17528 # If the template does not know about datarootdir, expand it.
17529 # FIXME: This hack should be removed a few years after 2.60.
17530 ac_datarootdir_hack=; ac_datarootdir_seen=
17532 case `sed -n '/datarootdir/ {
17536 /@datadir@/p
17537 /@docdir@/p
17538 /@infodir@/p
17539 /@localedir@/p
17540 /@mandir@/p
17541 ' $ac_file_inputs` in
17542 *datarootdir*) ac_datarootdir_seen=yes;;
17543 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17544 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17545 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17546 _ACEOF
17547 cat >>$CONFIG_STATUS <<_ACEOF
17548 ac_datarootdir_hack='
17549 s&@datadir@&$datadir&g
17550 s&@docdir@&$docdir&g
17551 s&@infodir@&$infodir&g
17552 s&@localedir@&$localedir&g
17553 s&@mandir@&$mandir&g
17554 s&\\\${datarootdir}&$datarootdir&g' ;;
17555 esac
17556 _ACEOF
17558 # Neutralize VPATH when `$srcdir' = `.'.
17559 # Shell code in configure.ac might set extrasub.
17560 # FIXME: do we really want to maintain this feature?
17561 cat >>$CONFIG_STATUS <<_ACEOF
17562 sed "$ac_vpsub
17563 $extrasub
17564 _ACEOF
17565 cat >>$CONFIG_STATUS <<\_ACEOF
17567 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17568 s&@configure_input@&$configure_input&;t t
17569 s&@top_builddir@&$ac_top_builddir_sub&;t t
17570 s&@srcdir@&$ac_srcdir&;t t
17571 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17572 s&@top_srcdir@&$ac_top_srcdir&;t t
17573 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17574 s&@builddir@&$ac_builddir&;t t
17575 s&@abs_builddir@&$ac_abs_builddir&;t t
17576 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17577 $ac_datarootdir_hack
17578 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
17580 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17581 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17582 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17583 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17584 which seems to be undefined. Please make sure it is defined." >&5
17585 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17586 which seems to be undefined. Please make sure it is defined." >&2;}
17588 rm -f "$tmp/stdin"
17589 case $ac_file in
17590 -) cat "$tmp/out"; rm -f "$tmp/out";;
17591 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
17592 esac
17596 # CONFIG_HEADER
17598 _ACEOF
17600 # Transform confdefs.h into a sed script `conftest.defines', that
17601 # substitutes the proper values into config.h.in to produce config.h.
17602 rm -f conftest.defines conftest.tail
17603 # First, append a space to every undef/define line, to ease matching.
17604 echo 's/$/ /' >conftest.defines
17605 # Then, protect against being on the right side of a sed subst, or in
17606 # an unquoted here document, in config.status. If some macros were
17607 # called several times there might be several #defines for the same
17608 # symbol, which is useless. But do not sort them, since the last
17609 # AC_DEFINE must be honored.
17610 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17611 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
17612 # NAME is the cpp macro being defined, VALUE is the value it is being given.
17613 # PARAMS is the parameter list in the macro definition--in most cases, it's
17614 # just an empty string.
17615 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
17616 ac_dB='\\)[ (].*,\\1define\\2'
17617 ac_dC=' '
17618 ac_dD=' ,'
17620 uniq confdefs.h |
17621 sed -n '
17622 t rset
17623 :rset
17624 s/^[ ]*#[ ]*define[ ][ ]*//
17625 t ok
17628 s/[\\&,]/\\&/g
17629 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
17630 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
17631 ' >>conftest.defines
17633 # Remove the space that was appended to ease matching.
17634 # Then replace #undef with comments. This is necessary, for
17635 # example, in the case of _POSIX_SOURCE, which is predefined and required
17636 # on some systems where configure will not decide to define it.
17637 # (The regexp can be short, since the line contains either #define or #undef.)
17638 echo 's/ $//
17639 s,^[ #]*u.*,/* & */,' >>conftest.defines
17641 # Break up conftest.defines:
17642 ac_max_sed_lines=50
17644 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
17645 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
17646 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
17647 # et cetera.
17648 ac_in='$ac_file_inputs'
17649 ac_out='"$tmp/out1"'
17650 ac_nxt='"$tmp/out2"'
17652 while :
17654 # Write a here document:
17655 cat >>$CONFIG_STATUS <<_ACEOF
17656 # First, check the format of the line:
17657 cat >"\$tmp/defines.sed" <<\\CEOF
17658 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
17659 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
17661 :def
17662 _ACEOF
17663 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
17664 echo 'CEOF
17665 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
17666 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
17667 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
17668 grep . conftest.tail >/dev/null || break
17669 rm -f conftest.defines
17670 mv conftest.tail conftest.defines
17671 done
17672 rm -f conftest.defines conftest.tail
17674 echo "ac_result=$ac_in" >>$CONFIG_STATUS
17675 cat >>$CONFIG_STATUS <<\_ACEOF
17676 if test x"$ac_file" != x-; then
17677 echo "/* $configure_input */" >"$tmp/config.h"
17678 cat "$ac_result" >>"$tmp/config.h"
17679 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
17680 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17681 echo "$as_me: $ac_file is unchanged" >&6;}
17682 else
17683 rm -f $ac_file
17684 mv "$tmp/config.h" $ac_file
17686 else
17687 echo "/* $configure_input */"
17688 cat "$ac_result"
17690 rm -f "$tmp/out12"
17694 esac
17696 done # for ac_tag
17699 { (exit 0); exit 0; }
17700 _ACEOF
17701 chmod +x $CONFIG_STATUS
17702 ac_clean_files=$ac_clean_files_save
17705 # configure is writing to config.log, and then calls config.status.
17706 # config.status does its own redirection, appending to config.log.
17707 # Unfortunately, on DOS this fails, as config.log is still kept open
17708 # by configure, so config.status won't be able to write to it; its
17709 # output is simply discarded. So we exec the FD to /dev/null,
17710 # effectively closing config.log, so it can be properly (re)opened and
17711 # appended to by config.status. When coming back to configure, we
17712 # need to make the FD available again.
17713 if test "$no_create" != yes; then
17714 ac_cs_success=:
17715 ac_config_status_args=
17716 test "$silent" = yes &&
17717 ac_config_status_args="$ac_config_status_args --quiet"
17718 exec 5>/dev/null
17719 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17720 exec 5>>config.log
17721 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17722 # would make configure fail if this is the last instruction.
17723 $ac_cs_success || { (exit 1); exit 1; }