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
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+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix
*) set -o posix
;;
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
45 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
53 # Support unset when possible.
54 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
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.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself
=$0 ;;
73 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir
=.
78 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
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
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
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
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 \
108 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C
; export $as_var
111 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
123 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
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 ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x
; then
155 if (eval ":") 2>/dev
/null
; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
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
221 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
222 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir
=.
228 for as_base
in sh bash ksh sh5
; do
229 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
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
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+"$@"}'='"$@"'
248 case `(set -o) 2>/dev/null` in
249 *posix
*) set -o posix
;;
258 CONFIG_SHELL
=$as_shell
260 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
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+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix
*) set -o posix
;;
286 as_func_ret_success
() {
289 as_func_ret_failure
() {
294 if as_func_success
; then
298 echo as_func_success failed.
301 if as_func_failure
; then
303 echo as_func_failure succeeded.
306 if as_func_ret_success
; then
310 echo as_func_ret_success failed.
313 if as_func_ret_failure
; then
315 echo as_func_ret_failure succeeded.
318 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
322 echo positional parameters were not saved.
325 test $exitcode = 0) ||
{ (exit 1); exit 1; }
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; }
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
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 () {
375 as_func_ret_success () {
378 as_func_ret_failure () {
383 if as_func_success; then
387 echo as_func_success failed.
390 if as_func_failure; then
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
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
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
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. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
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).
461 # Exit status is that of the last command.
466 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
472 ECHO_C
= ECHO_N
= ECHO_T
=
476 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
483 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
490 rm -f conf$$ conf$$.exe conf$$.
file
491 if test -d conf$$.dir
; then
492 rm -f conf$$.dir
/conf$$.
file
498 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
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 ||
506 elif ln conf$$.
file conf$$
2>/dev
/null
; then
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
517 test -d .
/-p && rmdir .
/-p
521 if test -x / >/dev
/null
2>&1; then
524 if ls -dL / >/dev
/null
2>&1; then
531 if test -d "$1"; then
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
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
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`
562 ac_default_prefix
=/usr
/local
564 ac_config_libobj_dir
=.
570 SHELL
=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
579 ac_unique_file
="vim.h"
580 # Factoring default headers for most tests.
581 ac_includes_default
="\
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
593 # ifdef HAVE_STDLIB_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
625 program_transform_name
695 PYTHON_GETPATH_CFLAGS
751 ac_precious_vars
='build_alias
763 # Initialize some variables set by options.
765 ac_init_version
=false
766 # The variables have the same names as the options, with
767 # dashes changed to underlines.
775 program_transform_name
=s
,x
,x
,
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'
805 libdir
='${exec_prefix}/lib'
806 localedir
='${datarootdir}/locale'
807 mandir
='${datarootdir}/man'
813 # If the previous option needs an argument, assign it.
814 if test -n "$ac_prev"; then
815 eval $ac_prev=\
$ac_option
821 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
825 # Accept the important Cygnus configure options, so we can diagnose typos.
827 case $ac_dashdash$ac_option in
831 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
833 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
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 ;;
849 cache_file
=config.cache
;;
851 -datadir |
--datadir |
--datadi |
--datad)
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)
874 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
877 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
879 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
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.
904 -help |
--help |
--hel |
--he |
-h)
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)
918 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
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)
931 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
932 infodir
=$ac_optarg ;;
934 -libdir |
--libdir |
--libdi |
--libd)
936 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
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)
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)
960 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
964 # Obsolete; use --without-fp.
967 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
968 |
--no-cr |
--no-c |
-n)
971 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
972 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
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)
986 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
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)
1022 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1023 pdfdir
=$ac_optarg ;;
1025 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1027 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1030 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1031 |
-silent |
--silent |
--silen |
--sile |
--sil)
1034 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1036 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1038 sbindir
=$ac_optarg ;;
1040 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1041 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1042 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1044 ac_prev
=sharedstatedir
;;
1045 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1046 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1047 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1049 sharedstatedir
=$ac_optarg ;;
1051 -site |
--site |
--sit)
1053 -site=* |
--site=* |
--sit=*)
1056 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
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)
1076 -version |
--version |
--versio |
--versi |
--vers |
-V)
1077 ac_init_version
=: ;;
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
;;
1098 # Obsolete; use --with-x.
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; }; }
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}
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
1154 [\\/$
]* | ?
:[\\/]* ) continue;;
1155 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1157 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1158 { (exit 1); exit 1; }; }
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.
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
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 ||
1205 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1223 if test ! -r "$srcdir/$ac_unique_file"; then
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"
1236 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1237 { (exit 1); exit 1; }; }
1239 # When building in place, set srcdir=.
1240 if test "$ac_abs_confdir" = "$ac_pwd"; then
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.
1247 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
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}
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.
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.
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
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]
1321 --x-includes=DIR X include files are
in DIR
1322 --x-libraries=DIR X library files are
in DIR
1326 if test -n "$ac_init_help"; then
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()).
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
>
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.
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
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/ ;;
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
1431 .) # We are building in place.
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 ;;
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 ;;
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
1450 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1451 elif test -f "$ac_srcdir/configure"; then
1453 $SHELL "$ac_srcdir/configure" --help=recursive
1455 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1457 cd "$ac_pwd" || { ac_status=$?; break; }
1461 test -n "$ac_init_help" && exit $ac_status
1462 if $ac_init_version; then
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.
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
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
`
1510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1514 test -z "$as_dir" && as_dir=.
1515 echo "PATH: $as_dir"
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.
1539 ac_must_keep_next=false
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)
1550 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
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.
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 ;;
1568 -* ) ac_must_keep_next=true ;;
1571 ac_configure_args="$ac_configure_args '$ac_arg'"
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.
1590 ## ---------------- ##
1591 ## Cache variables. ##
1592 ## ---------------- ##
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
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;} ;;
1606 _ | IFS | as_nl) ;; #(
1607 *) $as_unset $ac_var ;;
1612 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1613 *${as_nl}ac_space=\ *)
1615 "s/'\''/'\''\\\\'\'''\''/g;
1616 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1619 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1627 ## ----------------- ##
1628 ## Output variables. ##
1629 ## ----------------- ##
1632 for ac_var in $ac_subst_vars
1634 eval ac_val=\$$ac_var
1636 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1638 echo "$ac_var='\''$ac_val'\''"
1642 if test -n "$ac_subst_files"; then
1644 ## ------------------- ##
1645 ## File substitutions. ##
1646 ## ------------------- ##
1649 for ac_var in $ac_subst_files
1651 eval ac_val=\$$ac_var
1653 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1655 echo "$ac_var='\''$ac_val'\''"
1660 if test -s confdefs.h; then
1670 test "$ac_signal" != 0 &&
1671 echo "$as_me: caught signal $ac_signal"
1672 echo "$as_me: exit $exit_status"
1674 rm -f core *.core core.conftest.* &&
1675 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1678 for ac_signal in 1 2 13 15; do
1679 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
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"
1693 cat >>confdefs.h <<_ACEOF
1694 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1698 cat >>confdefs.h <<_ACEOF
1699 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1703 cat >>confdefs.h <<_ACEOF
1704 #define PACKAGE_STRING "$PACKAGE_STRING"
1708 cat >>confdefs.h <<_ACEOF
1709 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
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"
1720 set x "$ac_default_prefix/share/config.site" \
1721 "$ac_default_prefix/etc/config.site"
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
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;}
1741 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1742 *) . "./$cache_file";;
1746 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1747 echo "$as_me: creating cache $cache_file" >&6;}
1751 # Check that the precious variables saved in the cache have kept the same
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
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=: ;;
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=: ;;
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=:
1780 # Pass precious variables to config.status.
1781 if test "$ac_new_set" = set; then
1783 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1784 *) ac_arg=$ac_var=$ac_new_val ;;
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'" ;;
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; }; }
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
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
1836 cat >conftest.make <<\_ACEOF
1839 @echo '@@@%%%=$(MAKE)=@@@%%%'
1841 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1842 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
1844 eval ac_cv_prog_make_${ac_make}_set=yes;;
1846 eval ac_cv_prog_make_${ac_make}_set=no;;
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; }
1855 { echo "$as_me:$LINENO: result: no" >&5
1856 echo "${ECHO_T}no" >&6; }
1857 SET_MAKE="MAKE=${MAKE-make}"
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
1874 if test -n "$CC"; then
1875 ac_cv_prog_CC="$CC" # Let the user override the test.
1877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
1895 if test -n "$CC"; then
1896 { echo "$as_me:$LINENO: result: $CC" >&5
1897 echo "${ECHO_T}$CC" >&6; }
1899 { echo "$as_me:$LINENO: result: no" >&5
1900 echo "${ECHO_T}no" >&6; }
1905 if test -z "$ac_cv_prog_CC"; then
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
1914 if test -n "$ac_ct_CC"; then
1915 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
1939 { echo "$as_me:$LINENO: result: no" >&5
1940 echo "${ECHO_T}no" >&6; }
1943 if test "x$ac_ct_CC" = x; then
1946 case $cross_compiling:$ac_tool_warned in
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 ;;
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
1971 if test -n "$CC"; then
1972 ac_cv_prog_CC="$CC" # Let the user override the test.
1974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
1992 if test -n "$CC"; then
1993 { echo "$as_me:$LINENO: result: $CC" >&5
1994 echo "${ECHO_T}$CC" >&6; }
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
2011 if test -n "$CC"; then
2012 ac_cv_prog_CC="$CC" # Let the user override the test.
2015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
2027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
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
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.
2043 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2049 if test -n "$CC"; then
2050 { echo "$as_me:$LINENO: result: $CC" >&5
2051 echo "${ECHO_T}$CC" >&6; }
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
2070 if test -n "$CC"; then
2071 ac_cv_prog_CC="$CC" # Let the user override the test.
2073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
2091 if test -n "$CC"; then
2092 { echo "$as_me:$LINENO: result: $CC" >&5
2093 echo "${ECHO_T}$CC" >&6; }
2095 { echo "$as_me:$LINENO: result: no" >&5
2096 echo "${ECHO_T}no" >&6; }
2100 test -n "$CC" && break
2103 if test -z "$CC"; then
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
2114 if test -n "$ac_ct_CC"; then
2115 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
2139 { echo "$as_me:$LINENO: result: no" >&5
2140 echo "${ECHO_T}no" >&6; }
2144 test -n "$ac_ct_CC" && break
2147 if test "x$ac_ct_CC" = x; then
2150 case $cross_compiling:$ac_tool_warned in
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 ;;
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"
2178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2179 *) ac_try_echo=$ac_try;;
2181 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2182 (eval "$ac_compiler --version >&5") 2>&5
2184 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2185 (exit $ac_status); }
2186 { (ac_try="$ac_compiler -v >&5"
2188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2189 *) ac_try_echo=$ac_try;;
2191 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2192 (eval "$ac_compiler -v >&5") 2>&5
2194 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2195 (exit $ac_status); }
2196 { (ac_try="$ac_compiler -V >&5"
2198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2199 *) ac_try_echo=$ac_try;;
2201 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2202 (eval "$ac_compiler -V >&5") 2>&5
2204 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2205 (exit $ac_status); }
2207 cat >conftest.$ac_ext <<_ACEOF
2210 cat confdefs.h >>conftest.$ac_ext
2211 cat >>conftest.$ac_ext <<_ACEOF
2212 /* end confdefs.h. */
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
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.
2240 for ac_file in $ac_files
2243 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2244 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2249 if { (ac_try="$ac_link_default"
2251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2252 *) ac_try_echo=$ac_try;;
2254 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2255 (eval "$ac_link_default") 2>&5
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
2264 for ac_file in $ac_files ''
2266 test -f "$ac_file" || continue
2268 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2271 # We found the default executable, but exeext='' is most
2275 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
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
2289 test "$ac_cv_exeext" = no && ac_cv_exeext=
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;;
2322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2323 (eval "$ac_try") 2>&5
2325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326 (exit $ac_status); }; }; then
2329 if test "$cross_compiling" = maybe; then
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"
2358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2359 *) ac_try_echo=$ac_try;;
2361 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2362 (eval "$ac_link") 2>&5
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
2370 for ac_file in conftest.exe conftest conftest.*; do
2371 test -f "$ac_file" || continue
2373 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2374 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
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
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
2399 cat >conftest.$ac_ext <<_ACEOF
2402 cat confdefs.h >>conftest.$ac_ext
2403 cat >>conftest.$ac_ext <<_ACEOF
2404 /* end confdefs.h. */
2414 rm -f conftest.o conftest.obj
2415 if { (ac_try="$ac_compile"
2417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2418 *) ac_try_echo=$ac_try;;
2420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2421 (eval "$ac_compile") 2>&5
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;
2428 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2429 *) ac_cv_objext=`expr "$ac_file" : '.
*\.\
(.
*\
)'`
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
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
2455 cat >conftest.$ac_ext <<_ACEOF
2458 cat confdefs.h >>conftest.$ac_ext
2459 cat >>conftest.$ac_ext <<_ACEOF
2460 /* end confdefs.h. */
2473 rm -f conftest.$ac_objext
2474 if { (ac_try="$ac_compile"
2476 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2477 *) ac_try_echo
=$ac_try;;
2479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2480 (eval "$ac_compile") 2>conftest.er1
2482 grep -v '^ *+' conftest.er1
>conftest.err
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
2492 echo "$as_me: failed program was:" >&5
2493 sed 's/^/| /' conftest.
$ac_ext >&5
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
2512 ac_save_c_werror_flag
=$ac_c_werror_flag
2513 ac_c_werror_flag
=yes
2516 cat >conftest.
$ac_ext <<_ACEOF
2519 cat confdefs.h
>>conftest.
$ac_ext
2520 cat >>conftest.
$ac_ext <<_ACEOF
2521 /* end confdefs.h. */
2531 rm -f conftest.
$ac_objext
2532 if { (ac_try
="$ac_compile"
2534 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2535 *) ac_try_echo=$ac_try;;
2537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2538 (eval "$ac_compile") 2>conftest.er1
2540 grep -v '^ *+' conftest.er1 >conftest.err
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
2550 echo "$as_me: failed program was:" >&5
2551 sed 's/^/| /' conftest.$ac_ext >&5
2554 cat >conftest.$ac_ext <<_ACEOF
2557 cat confdefs.h >>conftest.$ac_ext
2558 cat >>conftest.$ac_ext <<_ACEOF
2559 /* end confdefs.h. */
2569 rm -f conftest.$ac_objext
2570 if { (ac_try="$ac_compile"
2572 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2573 *) ac_try_echo
=$ac_try;;
2575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2576 (eval "$ac_compile") 2>conftest.er1
2578 grep -v '^ *+' conftest.er1
>conftest.err
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
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
2593 cat >conftest.
$ac_ext <<_ACEOF
2596 cat confdefs.h
>>conftest.
$ac_ext
2597 cat >>conftest.
$ac_ext <<_ACEOF
2598 /* end confdefs.h. */
2608 rm -f conftest.
$ac_objext
2609 if { (ac_try
="$ac_compile"
2611 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2612 *) ac_try_echo=$ac_try;;
2614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2615 (eval "$ac_compile") 2>conftest.er1
2617 grep -v '^ *+' conftest.er1 >conftest.err
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
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
2653 if test "$GCC" = yes; then
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
2664 ac_cv_prog_cc_c89=no
2666 cat >conftest.$ac_ext <<_ACEOF
2669 cat confdefs.h >>conftest.$ac_ext
2670 cat >>conftest.$ac_ext <<_ACEOF
2671 /* end confdefs.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)
2685 static char *f (char * (*g) (char **, int), char **p, ...)
2690 s = g (p, va_arg (v,int));
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. */
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);
2718 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
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"
2730 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2731 *) ac_try_echo
=$ac_try;;
2733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2734 (eval "$ac_compile") 2>conftest.er1
2736 grep -v '^ *+' conftest.er1
>conftest.err
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
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
2755 rm -f conftest.
$ac_ext
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; } ;;
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; } ;;
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
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
2790 if test -z "$CPP"; then
2791 if test "${ac_cv_prog_CPP+set}" = set; then
2792 echo $ECHO_N "(cached) $ECHO_C" >&6
2794 # Double quotes because CPP needs to be expanded
2795 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
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
2809 cat confdefs.h
>>conftest.
$ac_ext
2810 cat >>conftest.
$ac_ext <<_ACEOF
2811 /* end confdefs.h. */
2813 # include <limits.h>
2815 # include <assert.h>
2819 if { (ac_try
="$ac_cpp conftest.$ac_ext"
2821 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2822 *) ac_try_echo=$ac_try;;
2824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2825 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2827 grep -v '^ *+' conftest.er1 >conftest.err
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
2837 echo "$as_me: failed program was:" >&5
2838 sed 's/^/| /' conftest.$ac_ext >&5
2840 # Broken: fails on valid input.
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
2851 cat confdefs.h >>conftest.$ac_ext
2852 cat >>conftest.$ac_ext <<_ACEOF
2853 /* end confdefs.h. */
2854 #include <ac_nonexistent.h>
2856 if { (ac_try="$ac_cpp conftest.$ac_ext"
2858 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2859 *) ac_try_echo
=$ac_try;;
2861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2862 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2864 grep -v '^ *+' conftest.er1
>conftest.err
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
2872 # Broken: success on invalid input.
2875 echo "$as_me: failed program was:" >&5
2876 sed 's/^/| /' conftest.
$ac_ext >&5
2878 # Passes both tests.
2883 rm -f conftest.err conftest.
$ac_ext
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
2900 { echo "$as_me:$LINENO: result: $CPP" >&5
2901 echo "${ECHO_T}$CPP" >&6; }
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
2914 cat confdefs.h
>>conftest.
$ac_ext
2915 cat >>conftest.
$ac_ext <<_ACEOF
2916 /* end confdefs.h. */
2918 # include <limits.h>
2920 # include <assert.h>
2924 if { (ac_try
="$ac_cpp conftest.$ac_ext"
2926 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2927 *) ac_try_echo=$ac_try;;
2929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2930 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2932 grep -v '^ *+' conftest.er1 >conftest.err
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
2942 echo "$as_me: failed program was:" >&5
2943 sed 's/^/| /' conftest.$ac_ext >&5
2945 # Broken: fails on valid input.
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
2956 cat confdefs.h >>conftest.$ac_ext
2957 cat >>conftest.$ac_ext <<_ACEOF
2958 /* end confdefs.h. */
2959 #include <ac_nonexistent.h>
2961 if { (ac_try="$ac_cpp conftest.$ac_ext"
2963 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2964 *) ac_try_echo
=$ac_try;;
2966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2967 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2969 grep -v '^ *+' conftest.er1
>conftest.err
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
2977 # Broken: success on invalid input.
2980 echo "$as_me: failed program was:" >&5
2981 sed 's/^/| /' conftest.
$ac_ext >&5
2983 # Passes both tests.
2988 rm -f conftest.err conftest.
$ac_ext
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
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; }; }
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
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
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
/xpg
4/bin
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
3036 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3039 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
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
3057 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3061 $ac_path_GREP_found && break 3
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; }; }
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
3094 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3095 then ac_cv_path_EGREP
="$GREP -E"
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
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
/xpg
4/bin
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
3118 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3121 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
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
3139 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3143 $ac_path_EGREP_found && break 3
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; }; }
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
3175 cat confdefs.h
>>conftest.
$ac_ext
3176 cat >>conftest.
$ac_ext <<_ACEOF
3177 /* end confdefs.h. */
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
3186 ac_func_search_save_LIBS
=$LIBS
3187 cat >conftest.
$ac_ext <<_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. */
3209 for ac_lib
in '' cposix
; do
3210 if test -z "$ac_lib"; then
3211 ac_res
="none required"
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"
3219 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3220 *) ac_try_echo=$ac_try;;
3222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3223 (eval "$ac_link") 2>conftest.er1
3225 grep -v '^ *+' conftest.er1 >conftest.err
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
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 \
3244 if test "${ac_cv_search_strerror+set}" = set; then
3248 if test "${ac_cv_search_strerror+set}" = set; then
3251 ac_cv_search_strerror=no
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
3272 if test -n "$AWK"; then
3273 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
3293 if test -n "$AWK"; then
3294 { echo "$as_me:$LINENO: result: $AWK" >&5
3295 echo "${ECHO_T}$AWK" >&6; }
3297 { echo "$as_me:$LINENO: result: no" >&5
3298 echo "${ECHO_T}no" >&6; }
3302 test -n "$AWK" && break
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
3312 if test -n "$STRIP"; then
3313 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
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
3351 cat >conftest.$ac_ext <<_ACEOF
3354 cat confdefs.h >>conftest.$ac_ext
3355 cat >>conftest.$ac_ext <<_ACEOF
3356 /* end confdefs.h. */
3370 rm -f conftest.$ac_objext
3371 if { (ac_try="$ac_compile"
3373 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3374 *) ac_try_echo
=$ac_try;;
3376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3377 (eval "$ac_compile") 2>conftest.er1
3379 grep -v '^ *+' conftest.er1
>conftest.err
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
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
3402 cat confdefs.h
>>conftest.
$ac_ext
3403 cat >>conftest.
$ac_ext <<_ACEOF
3404 /* end confdefs.h. */
3408 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3409 $EGREP "memchr" >/dev
/null
2>&1; then
3412 ac_cv_header_stdc
=no
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
3423 cat confdefs.h
>>conftest.
$ac_ext
3424 cat >>conftest.
$ac_ext <<_ACEOF
3425 /* end confdefs.h. */
3429 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3430 $EGREP "free" >/dev
/null
2>&1; then
3433 ac_cv_header_stdc
=no
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
3444 cat >conftest.
$ac_ext <<_ACEOF
3447 cat confdefs.h
>>conftest.
$ac_ext
3448 cat >>conftest.
$ac_ext <<_ACEOF
3449 /* end confdefs.h. */
3452 #if ((' ' & 0x0FF) == 0x020)
3453 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3454 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
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))
3463 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3468 for (i = 0; i < 256; i++)
3469 if (XOR (islower (i), ISLOWER (i))
3470 || toupper (i) != TOUPPER (i))
3475 rm -f conftest
$ac_exeext
3476 if { (ac_try
="$ac_link"
3478 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3479 *) ac_try_echo=$ac_try;;
3481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3482 (eval "$ac_link") 2>&5
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;;
3490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3491 (eval "$ac_try") 2>&5
3493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3494 (exit $ac_status); }; }; then
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
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
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
3525 cat >conftest.
$ac_ext <<_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>
3534 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
3537 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3545 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3550 rm -f conftest.
$ac_objext
3551 if { (ac_try
="$ac_compile"
3553 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3554 *) ac_try_echo=$ac_try;;
3556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3557 (eval "$ac_compile") 2>conftest.er1
3559 grep -v '^ *+' conftest.er1 >conftest.err
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
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
3588 if test -z "$CFLAGS"; then
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/'`
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;}
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; }
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; };;
3633 { echo "$as_me:$LINENO: checking for QNX" >&5
3634 echo $ECHO_N "checking for QNX... $ECHO_C" >&6; }
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; };;
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;
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; }
3668 { echo "$as_me:$LINENO: result: no, Darwin support disabled" >&5
3669 echo "${ECHO_T}no, Darwin support disabled" >&6; }
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; }
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
3700 cat confdefs.h >>conftest.$ac_ext
3701 cat >>conftest.$ac_ext <<_ACEOF
3702 /* end confdefs.h. */
3712 rm -f conftest.$ac_objext conftest$ac_exeext
3713 if { (ac_try="$ac_link"
3715 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3716 *) ac_try_echo
=$ac_try;;
3718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3719 (eval "$ac_link") 2>conftest.er1
3721 grep -v '^ *+' conftest.er1
>conftest.err
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; }
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
3746 cat confdefs.h
>>conftest.
$ac_ext
3747 cat >>conftest.
$ac_ext <<_ACEOF
3748 /* end confdefs.h. */
3758 rm -f conftest.
$ac_objext conftest
$ac_exeext
3759 if { (ac_try
="$ac_link"
3761 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3762 *) ac_try_echo=$ac_try;;
3764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3765 (eval "$ac_link") 2>conftest.er1
3767 grep -v '^ *+' conftest.er1 >conftest.err
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"
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; }
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
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"
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
3833 cat >conftest.$ac_ext <<_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>
3843 rm -f conftest.$ac_objext
3844 if { (ac_try="$ac_compile"
3846 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3847 *) ac_try_echo
=$ac_try;;
3849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3850 (eval "$ac_compile") 2>conftest.er1
3852 grep -v '^ *+' conftest.er1
>conftest.err
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"
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
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; }
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
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>
3904 rm -f conftest.
$ac_objext
3905 if { (ac_try
="$ac_compile"
3907 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3908 *) ac_try_echo=$ac_try;;
3910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3911 (eval "$ac_compile") 2>conftest.er1
3913 grep -v '^ *+' conftest.er1 >conftest.err
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
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
3939 cat confdefs.h >>conftest.$ac_ext
3940 cat >>conftest.$ac_ext <<_ACEOF
3941 /* end confdefs.h. */
3942 #include <Carbon/Carbon.h>
3944 if { (ac_try="$ac_cpp conftest.$ac_ext"
3946 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3947 *) ac_try_echo
=$ac_try;;
3949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3950 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3952 grep -v '^ *+' conftest.er1
>conftest.err
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
3960 ac_header_preproc
=yes
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
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
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;}
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
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
4014 SAVE_CPPFLAGS
=$CPPFLAGS
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; }
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
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>
4039 rm -f conftest.
$ac_objext
4040 if { (ac_try
="$ac_compile"
4042 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4043 *) ac_try_echo=$ac_try;;
4045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4046 (eval "$ac_compile") 2>conftest.er1
4048 grep -v '^ *+' conftest.er1 >conftest.err
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
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
4074 cat confdefs.h >>conftest.$ac_ext
4075 cat >>conftest.$ac_ext <<_ACEOF
4076 /* end confdefs.h. */
4077 #include <Cocoa/Cocoa.h>
4079 if { (ac_try="$ac_cpp conftest.$ac_ext"
4081 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4082 *) ac_try_echo
=$ac_try;;
4084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4085 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4087 grep -v '^ *+' conftest.er1
>conftest.err
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
4095 ac_header_preproc
=yes
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
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
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;}
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
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
4148 CPPFLAGS
=$SAVE_CPPFLAGS
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
4158 if test "$MACARCH" = "intel" -o "$MACARCH" = "both"; then
4159 CFLAGS
=`echo "$CFLAGS" | sed 's/-O[23456789]/-Oz/'`
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
=''
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"
4183 # avoid adding local dir to LDFLAGS and CPPFLAGS
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; }; } ;;
4191 { echo "$as_me:$LINENO: result: $local_dir" >&5
4192 echo "${ECHO_T}$local_dir" >&6; }
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; }
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; }
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; }
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"
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"
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
4299 cat confdefs.h
>>conftest.
$ac_ext
4300 cat >>conftest.
$ac_ext <<_ACEOF
4301 /* end confdefs.h. */
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
4311 make an error "Character set is not EBCDIC"
4317 rm -f conftest.
$ac_objext
4318 if { (ac_try
="$ac_compile"
4320 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4321 *) ac_try_echo=$ac_try;;
4323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4324 (eval "$ac_compile") 2>conftest.er1
4326 grep -v '^ *+' conftest.er1 >conftest.err
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
4337 echo "$as_me: failed program was:" >&5
4338 sed 's/^/| /' conftest.$ac_ext >&5
4340 # TryCompile action if false
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
4356 *) line_break='"\\012"';;
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; }
4364 OS/390) OS390Unix="yes";
4365 if test "$CC" = "cc"; then
4369 if test "$CC" = "c89"; then
4376 if test "$ccm" != "1"; then
4378 echo "------------------------------------------"
4379 echo " On OS/390 Unix, the environment variable"
4380 echo " __CC_${ccn}MODE must be set to \"1\"!"
4382 echo " export _CC_${ccn}MODE=1"
4383 echo " and then call configure again."
4384 echo "------------------------------------------"
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; }
4392 { echo "$as_me:$LINENO: result: no" >&5
4393 echo "${ECHO_T}no" >&6; }
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;
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
4415 ac_check_lib_save_LIBS=$LIBS
4416 LIBS="-lselinux $LIBS"
4417 cat >conftest.$ac_ext <<_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. */
4430 char is_selinux_enabled ();
4434 return is_selinux_enabled ();
4439 rm -f conftest.$ac_objext conftest$ac_exeext
4440 if { (ac_try="$ac_link"
4442 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4443 *) ac_try_echo
=$ac_try;;
4445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4446 (eval "$ac_link") 2>conftest.er1
4448 grep -v '^ *+' conftest.er1
>conftest.err
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
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
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; }
4493 features
="normal"; { echo "$as_me:$LINENO: result: Defaulting to normal" >&5
4494 echo "${ECHO_T}Defaulting to normal" >&6; }
4501 tiny
) cat >>confdefs.h
<<\_ACEOF
4505 small
) cat >>confdefs.h
<<\_ACEOF
4506 #define FEAT_SMALL 1
4509 normal
) cat >>confdefs.h
<<\_ACEOF
4510 #define FEAT_NORMAL 1
4512 dovimdiff
="installvimdiff";
4513 dogvimdiff
="installgvimdiff" ;;
4514 big
) cat >>confdefs.h
<<\_ACEOF
4517 dovimdiff
="installvimdiff";
4518 dogvimdiff
="installgvimdiff" ;;
4519 huge
) cat >>confdefs.h
<<\_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; } ;;
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; }
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;
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;
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
4575 { echo "$as_me:$LINENO: result: yes" >&5
4576 echo "${ECHO_T}yes" >&6; }
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;
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; }
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"
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"
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
4630 case $vi_cv_path_mzscheme in
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
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
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; }
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
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 | \
4684 { echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme_pfx" >&5
4685 echo "${ECHO_T}$vi_cv_path_mzscheme_pfx" >&6; }
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; }
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
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
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"
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"
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
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;
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
4796 case $vi_cv_path_perl in
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
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
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; }
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
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
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; }
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
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; }
4873 ldflags_save
=$LDFLAGS
4874 CFLAGS
="$CFLAGS $perlcppflags"
4875 LIBS
="$LIBS $perllibs"
4876 LDFLAGS
="$perlldflags $LDFLAGS"
4877 cat >conftest.
$ac_ext <<_ACEOF
4880 cat confdefs.h
>>conftest.
$ac_ext
4881 cat >>conftest.
$ac_ext <<_ACEOF
4882 /* end confdefs.h. */
4892 rm -f conftest.
$ac_objext conftest
$ac_exeext
4893 if { (ac_try
="$ac_link"
4895 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4896 *) ac_try_echo=$ac_try;;
4898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4899 (eval "$ac_link") 2>conftest.er1
4901 grep -v '^ *+' conftest.er1 >conftest.err
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
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
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"
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
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
4954 dir=/System/Library/Perl/5.8.1
4955 darwindir=$dir/darwin-thread-multi-2level
4956 if test -d $darwindir; then
4960 if test -n "$PERL"; then
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;
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
4994 case $vi_cv_path_python in
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
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
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; }
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
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)"
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
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
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
5077 vi_cv_path_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
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"
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; }
5119 if test "${vi_cv_path_python_plibs+set}" = set; then
5120 echo $ECHO_N "(cached) $ECHO_C" >&6
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"
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"
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}"
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"
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; }
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"
5179 if test -n "$threadsafe_flag"; then
5181 CFLAGS="$CFLAGS $threadsafe_flag"
5182 LIBS="$LIBS $thread_lib"
5183 cat >conftest.$ac_ext <<_ACEOF
5186 cat confdefs.h >>conftest.$ac_ext
5187 cat >>conftest.$ac_ext <<_ACEOF
5188 /* end confdefs.h. */
5198 rm -f conftest.$ac_objext conftest$ac_exeext
5199 if { (ac_try="$ac_link"
5201 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5202 *) ac_try_echo
=$ac_try;;
5204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5205 (eval "$ac_link") 2>conftest.er1
5207 grep -v '^ *+' conftest.er1
>conftest.err
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"
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
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; }
5239 CFLAGS
="$CFLAGS $PYTHON_CFLAGS"
5240 LIBS
="$LIBS $PYTHON_LIBS"
5241 cat >conftest.
$ac_ext <<_ACEOF
5244 cat confdefs.h
>>conftest.
$ac_ext
5245 cat >>conftest.
$ac_ext <<_ACEOF
5246 /* end confdefs.h. */
5256 rm -f conftest.
$ac_objext conftest
$ac_exeext
5257 if { (ac_try
="$ac_link"
5259 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5260 *) ac_try_echo=$ac_try;;
5262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5263 (eval "$ac_link") 2>conftest.er1
5265 grep -v '^ *+' conftest.er1 >conftest.err
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
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
5288 if test $python_ok = yes; then
5289 cat >>confdefs.h <<\_ACEOF
5290 #define FEAT_PYTHON 1
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;
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; }
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
5348 case $vi_cv_path_tcl in
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
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
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; }
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
5392 case $vi_cv_path_tcl in
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
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
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; }
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
5435 case $vi_cv_path_tcl in
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
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
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; }
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
5478 case $vi_cv_path_tcl in
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
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
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; }
5506 { echo "$as_me:$LINENO: result: no" >&5
5507 echo "${ECHO_T}no" >&6; }
5512 if test "X$vi_cv_path_tcl" = "X"; then
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
5521 case $vi_cv_path_tcl in
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
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
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; }
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"
5569 tclinc="/System/Library/Frameworks/Tcl.framework/Headers"
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; }
5580 if test -z "$TCL_INC"; then
5581 { echo "$as_me:$LINENO: result: <not found>" >&5
5582 echo "${ECHO_T}<not found>" >&6; }
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
`"
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; }
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'`
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
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"
5628 if test -z "$TCL_LIBS"; then
5629 { echo "$as_me:$LINENO: result: <not found>" >&5
5630 echo "${ECHO_T}<not found>" >&6; }
5634 if test -z "$SKIP_TCL"; then
5635 cat >>confdefs.h <<\_ACEOF
5640 TCL_OBJ=objects/if_tcl.o
5642 TCL_CFLAGS="-I$TCL_INC $TCL_DEFS"
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;
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
5677 case $vi_cv_path_ruby in
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
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
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; }
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"
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
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
5759 { echo "$as_me:$LINENO: result: not found" >&5
5760 echo "${ECHO_T}not found" >&6; }
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;
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
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;
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
5808 WORKSHOP_SRC="workshop.c integration.c"
5810 WORKSHOP_OBJ="objects/workshop.o objects/integration.o"
5812 if test "${enable_gui-xxx}" = xxx; then
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;
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
5835 ac_check_lib_save_LIBS=$LIBS
5836 LIBS="-lsocket $LIBS"
5837 cat >conftest.$ac_ext <<_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. */
5859 rm -f conftest.$ac_objext conftest$ac_exeext
5860 if { (ac_try="$ac_link"
5862 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5863 *) ac_try_echo
=$ac_try;;
5865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5866 (eval "$ac_link") 2>conftest.er1
5868 grep -v '^ *+' conftest.er1
>conftest.err
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
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
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
5906 ac_check_lib_save_LIBS
=$LIBS
5908 cat >conftest.
$ac_ext <<_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. */
5921 char gethostbyname ();
5925 return gethostbyname ();
5930 rm -f conftest.
$ac_objext conftest
$ac_exeext
5931 if { (ac_try
="$ac_link"
5933 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5934 *) ac_try_echo=$ac_try;;
5936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5937 (eval "$ac_link") 2>conftest.er1
5939 grep -v '^ *+' conftest.er1 >conftest.err
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
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
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
5976 cat confdefs.h >>conftest.$ac_ext
5977 cat >>conftest.$ac_ext <<_ACEOF
5978 /* end confdefs.h. */
5985 #include <netinet/in.h>
5987 #include <sys/types.h>
5988 #include <sys/socket.h>
5989 /* Check bitfields */
5991 unsigned int initDone:1;
5999 /* Check creating a socket. */
6000 struct sockaddr_in server;
6001 (void)socket(AF_INET, SOCK_STREAM, 0);
6003 (void)gethostbyname("microsoft.com");
6004 if (errno == ECONNREFUSED)
6005 (void)connect(1, (struct sockaddr *)&server, sizeof(server));
6011 rm -f conftest.$ac_objext conftest$ac_exeext
6012 if { (ac_try="$ac_link"
6014 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6015 *) ac_try_echo
=$ac_try;;
6017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6018 (eval "$ac_link") 2>conftest.er1
6020 grep -v '^ *+' conftest.er1
>conftest.err
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; }
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
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
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;
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
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;
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
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;
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; }
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;
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; }
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
6148 ac_cv_path_xmkmfpath
="$xmkmfpath" # Let the user override the test with a path.
6151 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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
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; }
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
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.
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
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
6206 cat >Imakefile
<<'_ACEOF'
6208 @echo incroot='${INCROOT}'
6210 @echo usrlibdir='${USRLIBDIR}'
6212 @echo libdir='${LIBDIR}'
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'\`"
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
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;;
6233 case $ac_im_usrlibdir in
6235 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
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.
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
6267 /usr/XFree86/include/X11
6271 /usr/unsupported/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
6285 cat confdefs.h
>>conftest.
$ac_ext
6286 cat >>conftest.
$ac_ext <<_ACEOF
6287 /* end confdefs.h. */
6288 #include <X11/Xlib.h>
6290 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6292 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6293 *) ac_try_echo=$ac_try;;
6295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6296 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6298 grep -v '^ *+' conftest.er1 >conftest.err
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
6306 # We can compile using X headers with no special include directory.
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
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.
6329 cat >conftest.$ac_ext <<_ACEOF
6332 cat confdefs.h >>conftest.$ac_ext
6333 cat >>conftest.$ac_ext <<_ACEOF
6334 /* end confdefs.h. */
6335 #include <X11/Xlib.h>
6344 rm -f conftest.$ac_objext conftest$ac_exeext
6345 if { (ac_try="$ac_link"
6347 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6348 *) ac_try_echo
=$ac_try;;
6350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6351 (eval "$ac_link") 2>conftest.er1
6353 grep -v '^ *+' conftest.er1
>conftest.err
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
6363 # We can link X programs with no special library path.
6366 echo "$as_me: failed program was:" >&5
6367 sed 's/^/| /' conftest.
$ac_ext >&5
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
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 #(
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'"
6400 eval "$ac_cv_have_x"
6403 if test "$have_x" != yes; then
6404 { echo "$as_me:$LINENO: result: $have_x" >&5
6405 echo "${ECHO_T}$have_x" >&6; }
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
6426 X_CFLAGS
= X_PRE_LIBS
= X_LIBS
= X_EXTRA_LIBS
=
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
6445 cat confdefs.h
>>conftest.
$ac_ext
6446 cat >>conftest.
$ac_ext <<_ACEOF
6447 /* end confdefs.h. */
6457 rm -f conftest.
$ac_objext conftest
$ac_exeext
6458 if { (ac_try
="$ac_link"
6460 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6461 *) ac_try_echo=$ac_try;;
6463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6464 (eval "$ac_link") 2>conftest.er1
6466 grep -v '^ *+' conftest.er1 >conftest.err
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"
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
6486 cat confdefs.h >>conftest.$ac_ext
6487 cat >>conftest.$ac_ext <<_ACEOF
6488 /* end confdefs.h. */
6498 rm -f conftest.$ac_objext conftest$ac_exeext
6499 if { (ac_try="$ac_link"
6501 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6502 *) ac_try_echo
=$ac_try;;
6504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6505 (eval "$ac_link") 2>conftest.er1
6507 grep -v '^ *+' conftest.er1
>conftest.err
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"
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
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"
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
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. */
6561 char XOpenDisplay ();
6565 return XOpenDisplay ();
6570 rm -f conftest.
$ac_objext conftest
$ac_exeext
6571 if { (ac_try
="$ac_link"
6573 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6574 *) ac_try_echo=$ac_try;;
6576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6577 (eval "$ac_link") 2>conftest.er1
6579 grep -v '^ *+' conftest.er1 >conftest.err
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
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
6598 ac_check_lib_save_LIBS=$LIBS
6600 cat >conftest.$ac_ext <<_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. */
6617 return dnet_ntoa ();
6622 rm -f conftest.$ac_objext conftest$ac_exeext
6623 if { (ac_try="$ac_link"
6625 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6626 *) ac_try_echo
=$ac_try;;
6628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6629 (eval "$ac_link") 2>conftest.er1
6631 grep -v '^ *+' conftest.er1
>conftest.err
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
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
6664 ac_check_lib_save_LIBS
=$LIBS
6665 LIBS
="-ldnet_stub $LIBS"
6666 cat >conftest.
$ac_ext <<_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. */
6683 return dnet_ntoa ();
6688 rm -f conftest.
$ac_objext conftest
$ac_exeext
6689 if { (ac_try
="$ac_link"
6691 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6692 *) ac_try_echo=$ac_try;;
6694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6695 (eval "$ac_link") 2>conftest.er1
6697 grep -v '^ *+' conftest.er1 >conftest.err
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
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)
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
6744 cat >conftest.$ac_ext <<_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. */
6760 # include <limits.h>
6762 # include <assert.h>
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. */
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
6784 return gethostbyname ();
6789 rm -f conftest.$ac_objext conftest$ac_exeext
6790 if { (ac_try="$ac_link"
6792 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6793 *) ac_try_echo
=$ac_try;;
6795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6796 (eval "$ac_link") 2>conftest.er1
6798 grep -v '^ *+' conftest.er1
>conftest.err
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
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
6827 ac_check_lib_save_LIBS
=$LIBS
6829 cat >conftest.
$ac_ext <<_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. */
6842 char gethostbyname ();
6846 return gethostbyname ();
6851 rm -f conftest.
$ac_objext conftest
$ac_exeext
6852 if { (ac_try
="$ac_link"
6854 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6855 *) ac_try_echo=$ac_try;;
6857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6858 (eval "$ac_link") 2>conftest.er1
6860 grep -v '^ *+' conftest.er1 >conftest.err
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
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
6893 ac_check_lib_save_LIBS=$LIBS
6895 cat >conftest.$ac_ext <<_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. */
6908 char gethostbyname ();
6912 return gethostbyname ();
6917 rm -f conftest.$ac_objext conftest$ac_exeext
6918 if { (ac_try="$ac_link"
6920 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6921 *) ac_try_echo
=$ac_try;;
6923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6924 (eval "$ac_link") 2>conftest.er1
6926 grep -v '^ *+' conftest.er1
>conftest.err
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
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
6968 cat >conftest.
$ac_ext <<_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. */
6984 # include <limits.h>
6986 # include <assert.h>
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. */
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
7013 rm -f conftest.
$ac_objext conftest
$ac_exeext
7014 if { (ac_try
="$ac_link"
7016 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7017 *) ac_try_echo=$ac_try;;
7019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7020 (eval "$ac_link") 2>conftest.er1
7022 grep -v '^ *+' conftest.er1 >conftest.err
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
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
7051 ac_check_lib_save_LIBS=$LIBS
7052 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7053 cat >conftest.$ac_ext <<_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. */
7075 rm -f conftest.$ac_objext conftest$ac_exeext
7076 if { (ac_try="$ac_link"
7078 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7079 *) ac_try_echo
=$ac_try;;
7081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7082 (eval "$ac_link") 2>conftest.er1
7084 grep -v '^ *+' conftest.er1
>conftest.err
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
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
7119 cat >conftest.
$ac_ext <<_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. */
7135 # include <limits.h>
7137 # include <assert.h>
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. */
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
7164 rm -f conftest.
$ac_objext conftest
$ac_exeext
7165 if { (ac_try
="$ac_link"
7167 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7168 *) ac_try_echo=$ac_try;;
7170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7171 (eval "$ac_link") 2>conftest.er1
7173 grep -v '^ *+' conftest.er1 >conftest.err
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
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
7202 ac_check_lib_save_LIBS=$LIBS
7203 LIBS="-lposix $LIBS"
7204 cat >conftest.$ac_ext <<_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. */
7226 rm -f conftest.$ac_objext conftest$ac_exeext
7227 if { (ac_try="$ac_link"
7229 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7230 *) ac_try_echo
=$ac_try;;
7232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7233 (eval "$ac_link") 2>conftest.er1
7235 grep -v '^ *+' conftest.er1
>conftest.err
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
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
7270 cat >conftest.
$ac_ext <<_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. */
7286 # include <limits.h>
7288 # include <assert.h>
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. */
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
7315 rm -f conftest.
$ac_objext conftest
$ac_exeext
7316 if { (ac_try
="$ac_link"
7318 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7319 *) ac_try_echo=$ac_try;;
7321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7322 (eval "$ac_link") 2>conftest.er1
7324 grep -v '^ *+' conftest.er1 >conftest.err
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
7335 echo "$as_me: failed program was:" >&5
7336 sed 's/^/| /' conftest.$ac_ext >&5
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
7353 ac_check_lib_save_LIBS=$LIBS
7355 cat >conftest.$ac_ext <<_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. */
7377 rm -f conftest.$ac_objext conftest$ac_exeext
7378 if { (ac_try="$ac_link"
7380 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7381 *) ac_try_echo
=$ac_try;;
7383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7384 (eval "$ac_link") 2>conftest.er1
7386 grep -v '^ *+' conftest.er1
>conftest.err
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
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
7430 ac_check_lib_save_LIBS
=$LIBS
7431 LIBS
="-lICE $X_EXTRA_LIBS $LIBS"
7432 cat >conftest.
$ac_ext <<_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. */
7445 char IceConnectionNumber ();
7449 return IceConnectionNumber ();
7454 rm -f conftest.
$ac_objext conftest
$ac_exeext
7455 if { (ac_try
="$ac_link"
7457 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7458 *) ac_try_echo=$ac_try;;
7460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7461 (eval "$ac_link") 2>conftest.er1
7463 grep -v '^ *+' conftest.er1 >conftest.err
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
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; }
7528 CFLAGS="$CFLAGS $X_CFLAGS"
7529 cat >conftest.$ac_ext <<_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>
7545 rm -f conftest.$ac_objext
7546 if { (ac_try="$ac_compile"
7548 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7549 *) ac_try_echo
=$ac_try;;
7551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7552 (eval "$ac_compile") 2>conftest.er1
7554 grep -v '^ *+' conftest.er1
>conftest.err
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; }
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
7575 if test "${no_x-no}" = yes; then
7578 cat >>confdefs.h
<<\_ACEOF
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
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
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. */
7608 char _XdmcpAuthDoIt ();
7612 return _XdmcpAuthDoIt ();
7617 rm -f conftest.
$ac_objext conftest
$ac_exeext
7618 if { (ac_try
="$ac_link"
7620 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7621 *) ac_try_echo=$ac_try;;
7623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7624 (eval "$ac_link") 2>conftest.er1
7626 grep -v '^ *+' conftest.er1 >conftest.err
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
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
7659 ac_check_lib_save_LIBS=$LIBS
7660 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7661 cat >conftest.$ac_ext <<_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. */
7674 char IceOpenConnection ();
7678 return IceOpenConnection ();
7683 rm -f conftest.$ac_objext conftest$ac_exeext
7684 if { (ac_try="$ac_link"
7686 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7687 *) ac_try_echo
=$ac_try;;
7689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7690 (eval "$ac_link") 2>conftest.er1
7692 grep -v '^ *+' conftest.er1
>conftest.err
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
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
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
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. */
7741 char XpmCreatePixmapFromData ();
7745 return XpmCreatePixmapFromData ();
7750 rm -f conftest.
$ac_objext conftest
$ac_exeext
7751 if { (ac_try
="$ac_link"
7753 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7754 *) ac_try_echo=$ac_try;;
7756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7757 (eval "$ac_link") 2>conftest.er1
7759 grep -v '^ *+' conftest.er1 >conftest.err
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
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; }
7790 CFLAGS="$CFLAGS $X_CFLAGS -Werror"
7791 cat >conftest.$ac_ext <<_ACEOF
7794 cat confdefs.h >>conftest.$ac_ext
7795 cat >>conftest.$ac_ext <<_ACEOF
7796 /* end confdefs.h. */
7797 #include <X11/Xlib.h>
7806 rm -f conftest.$ac_objext
7807 if { (ac_try="$ac_compile"
7809 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7810 *) ac_try_echo
=$ac_try;;
7812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7813 (eval "$ac_compile") 2>conftest.er1
7815 grep -v '^ *+' conftest.er1
>conftest.err
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; }
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
7833 cat confdefs.h
>>conftest.
$ac_ext
7834 cat >>conftest.
$ac_ext <<_ACEOF
7835 /* end confdefs.h. */
7836 #include <X11/Xlib.h>
7845 rm -f conftest.
$ac_objext
7846 if { (ac_try
="$ac_compile"
7848 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7849 *) ac_try_echo=$ac_try;;
7851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7852 (eval "$ac_compile") 2>conftest.er1
7854 grep -v '^ *+' conftest.er1 >conftest.err
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"
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
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
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; }; }
7892 cat >conftest.$ac_ext <<_ACEOF
7895 cat confdefs.h >>conftest.$ac_ext
7896 cat >>conftest.$ac_ext <<_ACEOF
7897 /* end confdefs.h. */
7899 #include <X11/Xlib.h>
7901 # include <stdlib.h>
7902 # include <stddef.h>
7906 if (sizeof(wchar_t) <= 2)
7911 rm -f conftest$ac_exeext
7912 if { (ac_try="$ac_link"
7914 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7915 *) ac_try_echo
=$ac_try;;
7917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7918 (eval "$ac_link") 2>&5
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;;
7926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7927 (eval "$ac_try") 2>&5
7929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7930 (exit $ac_status); }; }; then
7931 ac_cv_small_wchar_t="no"
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
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
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;
7970 enable_gui_canon=`echo "_$enable_gui" | \
7971 sed 's/[ _+-]//g;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
7984 if test "x$QNX" = "xyes" -a "x$with_x" = "xno" ; then
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; }
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; }
8001 elif test "x$MACOSX" = "xyes" -a "x$with_x" = "xno" ; then
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; }
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; }
8016 macvim) { echo "$as_me:$LINENO: result: MacVim GUI support" >&5
8017 echo "${ECHO_T}MacVim GUI support" >&6; }
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; }
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; }
8040 gtk) { echo "$as_me:$LINENO: result: GTK+ 1.x GUI support" >&5
8041 echo "${ECHO_T}GTK+ 1.x GUI support" >&6; }
8043 gtk2) { echo "$as_me:$LINENO: result: GTK+ 2.x GUI support" >&5
8044 echo "${ECHO_T}GTK+ 2.x GUI support" >&6; }
8047 gnome) { echo "$as_me:$LINENO: result: GNOME 1.x GUI support" >&5
8048 echo "${ECHO_T}GNOME 1.x GUI support" >&6; }
8051 gnome2) { echo "$as_me:$LINENO: result: GNOME 2.x GUI support" >&5
8052 echo "${ECHO_T}GNOME 2.x GUI support" >&6; }
8056 motif) { echo "$as_me:$LINENO: result: Motif GUI support" >&5
8057 echo "${ECHO_T}Motif GUI support" >&6; }
8059 athena) { echo "$as_me:$LINENO: result: Athena GUI support" >&5
8060 echo "${ECHO_T}Athena GUI support" >&6; }
8062 nextaw) { echo "$as_me:$LINENO: result: neXtaw GUI support" >&5
8063 echo "${ECHO_T}neXtaw GUI support" >&6; }
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; } ;;
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;
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
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;
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
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;
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
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;
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
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;
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
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;
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
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;
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
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;
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
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; };
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; };
8228 datadir='${prefix}/MacVim.app/Contents/Resources'
8231 if test "$VIMNAME" = "vim"; then
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; }
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; }
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;
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; }
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
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
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
8335 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
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; }
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
8357 case $GTK12_CONFIG in
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
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
8377 test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
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; }
8386 { echo "$as_me:$LINENO: result: no" >&5
8387 echo "${ECHO_T}no" >&6; }
8391 GTK_CONFIG="$GTK12_CONFIG"
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
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
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
8425 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
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; }
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; }
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`
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/'`
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"
8487 if test "$cross_compiling" = yes; then
8488 echo $ac_n "cross compiling; assumed OK... $ac_c"
8490 cat >conftest.$ac_ext <<_ACEOF
8493 cat confdefs.h >>conftest.$ac_ext
8494 cat >>conftest.$ac_ext <<_ACEOF
8495 /* end confdefs.h. */
8497 #include <gtk/gtk.h>
8500 # include <stdlib.h>
8501 # include <stddef.h>
8507 int major, minor, micro;
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, µ) != 3) {
8515 printf("%s, bad version string\n", "$min_gtk_version");
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)))
8530 rm -f conftest$ac_exeext
8531 if { (ac_try="$ac_link"
8533 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8534 *) ac_try_echo
=$ac_try;;
8536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8537 (eval "$ac_link") 2>&5
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;;
8545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8546 (eval "$ac_try") 2>&5
8548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8549 (exit $ac_status); }; }; then
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
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; }
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"
8580 { echo "$as_me:$LINENO: result: no" >&5
8581 echo "${ECHO_T}no" >&6; }
8597 if test "x$GTK_CFLAGS" != "x"; then
8606 if test "x$GUITYPE" != "xGTK"; then
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; }
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`
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/'`
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"
8652 if test "$cross_compiling" = yes; then
8653 echo $ac_n "cross compiling; assumed OK... $ac_c"
8655 cat >conftest.$ac_ext <<_ACEOF
8658 cat confdefs.h >>conftest.$ac_ext
8659 cat >>conftest.$ac_ext <<_ACEOF
8660 /* end confdefs.h. */
8662 #include <gtk/gtk.h>
8665 # include <stdlib.h>
8666 # include <stddef.h>
8672 int major, minor, micro;
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, µ) != 3) {
8680 printf("%s, bad version string\n", "$min_gtk_version");
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)))
8695 rm -f conftest$ac_exeext
8696 if { (ac_try="$ac_link"
8698 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8699 *) ac_try_echo
=$ac_try;;
8701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8702 (eval "$ac_link") 2>&5
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;;
8710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8711 (eval "$ac_try") 2>&5
8713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8714 (exit $ac_status); }; }; then
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
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; }
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"
8744 { echo "$as_me:$LINENO: result: no" >&5
8745 echo "${ECHO_T}no" >&6; }
8761 if test "x$GTK_CFLAGS" != "x"; then
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; }
8777 if test "0$gtk_major_version" -ge 2; then
8778 cat >>confdefs.h <<\_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
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
8821 if test "x$withval" = xno; then
8825 LDFLAGS="$LDFLAGS -L$withval/lib"
8826 CFLAGS="$CFLAGS -I$withval/include"
8827 gnome_prefix=$withval/lib
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"
8854 { echo "$as_me:$LINENO: result: no" >&5
8855 echo "${ECHO_T}no" >&6; }
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
8877 case $GNOME_CONFIG in
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
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
8897 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
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; }
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"
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
`"
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
8934 gnome_prefix=$prefix/lib
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
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
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"
8987 for try in $gui_includes; do
8988 if test -f "$try/Xm/Xm.h"; then
8992 if test -n "$GUI_INC_LOC"; then
8993 if test "$GUI_INC_LOC" = /usr/include; then
8995 { echo "$as_me:$LINENO: result: in default path" >&5
8996 echo "${ECHO_T}in default path" >&6; }
8998 { echo "$as_me:$LINENO: result: $GUI_INC_LOC" >&5
8999 echo "${ECHO_T}$GUI_INC_LOC" >&6; }
9002 { echo "$as_me:$LINENO: result: <not found>" >&5
9003 echo "${ECHO_T}<not found>" >&6; }
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; }
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"
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
9040 if test -n "$GUI_LIB_LOC"; then
9041 if test "$GUI_LIB_LOC" = /usr/lib; then
9043 { echo "$as_me:$LINENO: result: in default path" >&5
9044 echo "${ECHO_T}in default path" >&6; }
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"
9057 { echo "$as_me:$LINENO: result: <not found>" >&5
9058 echo "${ECHO_T}<not found>" >&6; }
9064 if test -z "$SKIP_MOTIF"; then
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; }
9078 CFLAGS="$CFLAGS $X_CFLAGS"
9079 cat >conftest.$ac_ext <<_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>
9096 rm -f conftest.$ac_objext
9097 if { (ac_try="$ac_compile"
9099 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9100 *) ac_try_echo
=$ac_try;;
9102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9103 (eval "$ac_compile") 2>conftest.er1
9105 grep -v '^ *+' conftest.er1
>conftest.err
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; }
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
9127 if test -z "$SKIP_ATHENA"; then
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; }
9135 CFLAGS
="$CFLAGS $X_CFLAGS"
9136 cat >conftest.
$ac_ext <<_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>
9153 rm -f conftest.
$ac_objext
9154 if { (ac_try
="$ac_compile"
9156 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9157 *) ac_try_echo=$ac_try;;
9159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9160 (eval "$ac_compile") 2>conftest.er1
9162 grep -v '^ *+' conftest.er1 >conftest.err
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; }
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
9184 if test -z "$SKIP_NEXTAW"; then
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
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
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. */
9218 char XShapeQueryExtension ();
9222 return XShapeQueryExtension ();
9227 rm -f conftest.$ac_objext conftest$ac_exeext
9228 if { (ac_try="$ac_link"
9230 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9231 *) ac_try_echo
=$ac_try;;
9233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9234 (eval "$ac_link") 2>conftest.er1
9236 grep -v '^ *+' conftest.er1
>conftest.err
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
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
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
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
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. */
9292 rm -f conftest.
$ac_objext conftest
$ac_exeext
9293 if { (ac_try
="$ac_link"
9295 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9296 *) ac_try_echo=$ac_try;;
9298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9299 (eval "$ac_link") 2>conftest.er1
9301 grep -v '^ *+' conftest.er1 >conftest.err
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
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
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
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. */
9357 rm -f conftest.$ac_objext conftest$ac_exeext
9358 if { (ac_try="$ac_link"
9360 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9361 *) ac_try_echo
=$ac_try;;
9363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9364 (eval "$ac_link") 2>conftest.er1
9366 grep -v '^ *+' conftest.er1
>conftest.err
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
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
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
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. */
9413 char XmuCreateStippledPixmap ();
9417 return XmuCreateStippledPixmap ();
9422 rm -f conftest.
$ac_objext conftest
$ac_exeext
9423 if { (ac_try
="$ac_link"
9425 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9426 *) ac_try_echo=$ac_try;;
9428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9429 (eval "$ac_link") 2>conftest.er1
9431 grep -v '^ *+' conftest.er1 >conftest.err
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
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
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
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. */
9488 rm -f conftest.$ac_objext conftest$ac_exeext
9489 if { (ac_try="$ac_link"
9491 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9492 *) ac_try_echo
=$ac_try;;
9494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9495 (eval "$ac_link") 2>conftest.er1
9497 grep -v '^ *+' conftest.er1
>conftest.err
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
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; }
9531 if mkdir conftestdir
; then
9533 cat > Imakefile
<<'EOF'
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`
9543 if test -z "$NARROW_PROTO"; then
9544 { echo "$as_me:$LINENO: result: no" >&5
9545 echo "${ECHO_T}no" >&6; }
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; }
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
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>
9582 rm -f conftest.
$ac_objext
9583 if { (ac_try
="$ac_compile"
9585 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9586 *) ac_try_echo=$ac_try;;
9588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9589 (eval "$ac_compile") 2>conftest.er1
9591 grep -v '^ *+' conftest.er1 >conftest.err
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
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
9617 cat confdefs.h >>conftest.$ac_ext
9618 cat >>conftest.$ac_ext <<_ACEOF
9619 /* end confdefs.h. */
9620 #include <$ac_header>
9622 if { (ac_try="$ac_cpp conftest.$ac_ext"
9624 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9625 *) ac_try_echo
=$ac_try;;
9627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9628 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9630 grep -v '^ *+' conftest.er1
>conftest.err
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
9638 ac_header_preproc
=yes
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
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
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;}
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
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
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; }
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
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>
9730 rm -f conftest.
$ac_objext
9731 if { (ac_try
="$ac_compile"
9733 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9734 *) ac_try_echo=$ac_try;;
9736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9737 (eval "$ac_compile") 2>conftest.er1
9739 grep -v '^ *+' conftest.er1 >conftest.err
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
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
9765 cat confdefs.h >>conftest.$ac_ext
9766 cat >>conftest.$ac_ext <<_ACEOF
9767 /* end confdefs.h. */
9768 #include <$ac_header>
9770 if { (ac_try="$ac_cpp conftest.$ac_ext"
9772 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9773 *) ac_try_echo
=$ac_try;;
9775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9776 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9778 grep -v '^ *+' conftest.er1
>conftest.err
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
9786 ac_header_preproc
=yes
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
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
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;}
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
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
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
9851 cat confdefs.h
>>conftest.
$ac_ext
9852 cat >>conftest.
$ac_ext <<_ACEOF
9853 /* end confdefs.h. */
9854 #include <X11/Xlib.h>
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; }
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"
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; }
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
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>
9899 rm -f conftest.
$ac_objext
9900 if { (ac_try
="$ac_compile"
9902 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9903 *) ac_try_echo=$ac_try;;
9905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9906 (eval "$ac_compile") 2>conftest.er1
9908 grep -v '^ *+' conftest.er1 >conftest.err
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
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; }
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
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>
9970 rm -f conftest.$ac_objext
9971 if { (ac_try="$ac_compile"
9973 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9974 *) ac_try_echo
=$ac_try;;
9976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9977 (eval "$ac_compile") 2>conftest.er1
9979 grep -v '^ *+' conftest.er1
>conftest.err
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
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
10005 cat confdefs.h
>>conftest.
$ac_ext
10006 cat >>conftest.
$ac_ext <<_ACEOF
10007 /* end confdefs.h. */
10008 #include <$ac_header>
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;;
10015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10016 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10018 grep -v '^ *+' conftest.er1 >conftest.err
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
10026 ac_header_preproc=yes
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
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
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;}
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
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
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
10091 cat confdefs.h >>conftest.$ac_ext
10092 cat >>conftest.$ac_ext <<_ACEOF
10093 /* end confdefs.h. */
10094 #include <Xm/XpmP.h>
10098 XpmAttributes_21 attr;
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;;
10109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10110 (eval "$ac_compile") 2>conftest.er1
10112 grep -v '^ *+' conftest.er1
>conftest.err
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
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
10137 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10139 cat >>confdefs.h
<<\_ACEOF
10140 #define XPMATTRIBUTES_TYPE XpmAttributes
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; }
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
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
10184 if test "$enable_fontset" = "yes"; then
10185 cat >>confdefs.h
<<\_ACEOF
10186 #define FEAT_XFONTSET 1
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
10200 cat >>confdefs.h
<<\_ACEOF
10201 #define FEAT_HANGULIN 1
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
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; }; }
10225 cat >conftest.
$ac_ext <<_ACEOF
10227 #include "confdefs.h"
10230 # include <stdlib.h>
10231 # include <stddef.h>
10233 main() { exit(toupper('A') == 'A' && tolower('z') == 'z'); }
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;;
10242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10243 (eval "$ac_link") 2>&5
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;;
10251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10252 (eval "$ac_try") 2>&5
10254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10255 (exit $ac_status); }; }; then
10257 vim_cv_toupper_broken
=yes
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
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
10289 cat confdefs.h
>>conftest.
$ac_ext
10290 cat >>conftest.
$ac_ext <<_ACEOF
10291 /* end confdefs.h. */
10296 printf("(" __DATE__ " " __TIME__ ")");
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;;
10307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10308 (eval "$ac_compile") 2>conftest.er1
10310 grep -v '^ *+' conftest.er1 >conftest.err
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
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
10338 cat confdefs.h >>conftest.$ac_ext
10339 cat >>conftest.$ac_ext <<_ACEOF
10340 /* end confdefs.h. */
10345 int x __attribute__((unused));
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;;
10356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10357 (eval "$ac_compile") 2>conftest.er1
10359 grep -v '^ *+' conftest.er1
>conftest.err
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
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; }
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
10397 cat confdefs.h
>>conftest.
$ac_ext
10398 cat >>conftest.
$ac_ext <<_ACEOF
10399 /* end confdefs.h. */
10400 $ac_includes_default
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;;
10409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10410 (eval "$ac_compile") 2>conftest.er1
10412 grep -v '^ *+' conftest.er1 >conftest.err
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
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
10438 cat confdefs.h >>conftest.$ac_ext
10439 cat >>conftest.$ac_ext <<_ACEOF
10440 /* end confdefs.h. */
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;;
10448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10449 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10451 grep -v '^ *+' conftest.er1
>conftest.err
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
10459 ac_header_preproc
=yes
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
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
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;}
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
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
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
10519 ac_check_lib_save_LIBS
=$LIBS
10521 cat >conftest.
$ac_ext <<_ACEOF
10524 cat confdefs.h
>>conftest.
$ac_ext
10525 cat >>conftest.
$ac_ext <<_ACEOF
10526 /* end confdefs.h. */
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;;
10543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10544 (eval "$ac_link") 2>conftest.er1
10546 grep -v '^ *+' conftest.er1 >conftest.err
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
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
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
10593 cat >conftest.$ac_ext <<_ACEOF
10596 cat confdefs.h >>conftest.$ac_ext
10597 cat >>conftest.$ac_ext <<_ACEOF
10598 /* end confdefs.h. */
10599 #include <sys/types.h>
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;;
10617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10618 (eval "$ac_compile") 2>conftest.er1
10620 grep -v '^ *+' conftest.er1
>conftest.err
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"
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
10646 ac_header_dirent
=$ac_hdr; break
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
10657 ac_func_search_save_LIBS
=$LIBS
10658 cat >conftest.
$ac_ext <<_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. */
10680 for ac_lib
in '' dir
; do
10681 if test -z "$ac_lib"; then
10682 ac_res
="none required"
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;;
10693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10694 (eval "$ac_link") 2>conftest.er1
10696 grep -v '^ *+' conftest.er1 >conftest.err
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
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 \
10715 if test "${ac_cv_search_opendir+set}" = set; then
10719 if test "${ac_cv_search_opendir+set}" = set; then
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"
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
10741 ac_func_search_save_LIBS=$LIBS
10742 cat >conftest.$ac_ext <<_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. */
10764 for ac_lib in '' x; do
10765 if test -z "$ac_lib"; then
10766 ac_res="none required"
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;;
10777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10778 (eval "$ac_link") 2>conftest.er1
10780 grep -v '^ *+' conftest.er1
>conftest.err
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
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 \
10799 if test "${ac_cv_search_opendir+set}" = set; then
10803 if test "${ac_cv_search_opendir+set}" = set; then
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
10828 cat confdefs.h
>>conftest.
$ac_ext
10829 cat >>conftest.
$ac_ext <<_ACEOF
10830 /* end confdefs.h. */
10831 #include <sys/wait.h>
10835 union wait xx, yy; xx = yy
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;;
10846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10847 (eval "$ac_compile") 2>conftest.er1
10849 grep -v '^ *+' conftest.er1 >conftest.err
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
10863 cat >>confdefs.h <<\_ACEOF
10864 #define HAVE_UNION_WAIT 1
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; }
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
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>
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;;
10956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10957 (eval "$ac_compile") 2>conftest.er1
10959 grep -v '^ *+' conftest.er1
>conftest.err
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
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
10985 cat confdefs.h
>>conftest.
$ac_ext
10986 cat >>conftest.
$ac_ext <<_ACEOF
10987 /* end confdefs.h. */
10988 #include <$ac_header>
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;;
10995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10996 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10998 grep -v '^ *+' conftest.er1 >conftest.err
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
11006 ac_header_preproc=yes
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
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
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;}
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
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
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
11074 cat >conftest.$ac_ext <<_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>
11084 #include <$ac_header>
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;;
11092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11093 (eval "$ac_compile") 2>conftest.er1
11095 grep -v '^ *+' conftest.er1
>conftest.err
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"
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
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
11135 cat >conftest.
$ac_ext <<_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>
11145 #include <$ac_header>
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;;
11153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11154 (eval "$ac_compile") 2>conftest.er1
11156 grep -v '^ *+' conftest.er1 >conftest.err
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"
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
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
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>
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;;
11213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11214 (eval "$ac_compile") 2>conftest.er1
11216 grep -v '^ *+' conftest.er1
>conftest.err
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
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; }
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
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>
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;;
11272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11273 (eval "$ac_compile") 2>conftest.er1
11275 grep -v '^ *+' conftest.er1 >conftest.err
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
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
11301 cat confdefs.h >>conftest.$ac_ext
11302 cat >>conftest.$ac_ext <<_ACEOF
11303 /* end confdefs.h. */
11304 #include <$ac_header>
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;;
11311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11312 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11314 grep -v '^ *+' conftest.er1
>conftest.err
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
11322 ac_header_preproc
=yes
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
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
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;}
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
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
11380 if test "x$MACOSX" = "xyes"; then
11381 cat >>confdefs.h
<<\_ACEOF
11382 #define NO_STRINGS_WITH_STRING_H 1
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
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) */
11402 #ifdef HAVE_XM_XM_H
11403 # include <Xm/Xm.h> /* This breaks it for HP-UX 11 (Squassabia) */
11405 #ifdef HAVE_STRING_H
11406 # include <string.h>
11408 #if defined(HAVE_STRINGS_H)
11409 # include <strings.h>
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;;
11426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11427 (eval "$ac_compile") 2>conftest.er1
11429 grep -v '^ *+' conftest.er1 >conftest.err
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; }
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
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
11461 ac_pattern="Autoconf.*'x'"
11462 cat >conftest.$ac_ext <<_ACEOF
11465 cat confdefs.h >>conftest.$ac_ext
11466 cat >>conftest.$ac_ext <<_ACEOF
11467 /* end confdefs.h. */
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
11475 ac_cv_prog_gcc_traditional=no
11480 if test $ac_cv_prog_gcc_traditional = no; then
11481 cat >conftest.$ac_ext <<_ACEOF
11484 cat confdefs.h >>conftest.$ac_ext
11485 cat >>conftest.$ac_ext <<_ACEOF
11486 /* end confdefs.h. */
11487 #include <termio.h>
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
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
11510 cat >conftest.$ac_ext <<_ACEOF
11513 cat confdefs.h >>conftest.$ac_ext
11514 cat >>conftest.$ac_ext <<_ACEOF
11515 /* end confdefs.h. */
11520 /* FIXME: Include the comments suggested by Paul. */
11521 #ifndef __cplusplus
11522 /* Ultrix mips cc rejects this. */
11523 typedef int charset[2];
11525 /* SunOS 4.1.1 cc rejects this. */
11526 char const *const *pcpcc;
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
11535 const char *g = "string";
11536 pcpcc = &g + (g ? g-g : 0);
11537 /* HPUX 7.0 cc rejects these. */
11539 ppc = (char**) pcpcc;
11540 pcpcc = (char const *const *) ppc;
11541 { /* SCO 3.2v4 cc rejects this. */
11543 char const *s = 0 ? (char *) 0 : (char const *) 0;
11548 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11549 int x[] = {25, 17};
11550 const int *foo = &x[0];
11553 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11554 typedef const int *iptr;
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;
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;;
11580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11581 (eval "$ac_compile") 2>conftest.er1
11583 grep -v '^ *+' conftest.er1
>conftest.err
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
11593 echo "$as_me: failed program was:" >&5
11594 sed 's/^/| /' conftest.
$ac_ext >&5
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
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
11616 cat >conftest.
$ac_ext <<_ACEOF
11619 cat confdefs.h
>>conftest.
$ac_ext
11620 cat >>conftest.
$ac_ext <<_ACEOF
11621 /* end confdefs.h. */
11628 int * volatile y = (int *) 0;
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;;
11640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11641 (eval "$ac_compile") 2>conftest.er1
11643 grep -v '^ *+' conftest.er1 >conftest.err
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
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
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
11676 cat >conftest.$ac_ext <<_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_;
11687 if ((ac__type_new_ *) 0)
11689 if (sizeof (ac__type_new_))
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;;
11701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11702 (eval "$ac_compile") 2>conftest.er1
11704 grep -v '^ *+' conftest.er1
>conftest.err
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
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
11728 cat >>confdefs.h
<<_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
11739 cat >conftest.
$ac_ext <<_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_;
11750 if ((ac__type_new_ *) 0)
11752 if (sizeof (ac__type_new_))
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;;
11764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11765 (eval "$ac_compile") 2>conftest.er1
11767 grep -v '^ *+' conftest.er1 >conftest.err
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
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
11791 cat >>confdefs.h <<_ACEOF
11792 #define off_t long int
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
11802 cat >conftest.$ac_ext <<_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_;
11813 if ((ac__type_new_ *) 0)
11815 if (sizeof (ac__type_new_))
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;;
11827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11828 (eval "$ac_compile") 2>conftest.er1
11830 grep -v '^ *+' conftest.er1
>conftest.err
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
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
11854 cat >>confdefs.h
<<_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
11865 cat >conftest.
$ac_ext <<_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_;
11876 if ((ac__type_new_ *) 0)
11878 if (sizeof (ac__type_new_))
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;;
11890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11891 (eval "$ac_compile") 2>conftest.er1
11893 grep -v '^ *+' conftest.er1 >conftest.err
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
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
11917 cat >>confdefs.h <<_ACEOF
11918 #define size_t unsigned int
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
11928 cat >conftest.$ac_ext <<_ACEOF
11931 cat confdefs.h >>conftest.$ac_ext
11932 cat >>conftest.$ac_ext <<_ACEOF
11933 /* end confdefs.h. */
11934 #include <sys/types.h>
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
11941 ac_cv_type_uid_t=no
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
11955 cat >>confdefs.h <<\_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
11966 cat >conftest.$ac_ext <<_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>
11979 if ((struct tm *) 0)
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;;
11991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11992 (eval "$ac_compile") 2>conftest.er1
11994 grep -v '^ *+' conftest.er1
>conftest.err
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
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
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
12027 cat >conftest.
$ac_ext <<_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_;
12038 if ((ac__type_new_ *) 0)
12040 if (sizeof (ac__type_new_))
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;;
12052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12053 (eval "$ac_compile") 2>conftest.er1
12055 grep -v '^ *+' conftest.er1 >conftest.err
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
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
12079 cat >>confdefs.h <<_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
12090 cat >conftest.$ac_ext <<_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_;
12101 if ((ac__type_new_ *) 0)
12103 if (sizeof (ac__type_new_))
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;;
12115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12116 (eval "$ac_compile") 2>conftest.er1
12118 grep -v '^ *+' conftest.er1
>conftest.err
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
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
12142 cat >>confdefs.h
<<_ACEOF
12143 #define dev_t unsigned
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; }
12155 cat >conftest.
$ac_ext <<_ACEOF
12158 cat confdefs.h
>>conftest.
$ac_ext
12159 cat >>conftest.
$ac_ext <<_ACEOF
12160 /* end confdefs.h. */
12162 #include <sys/types.h>
12164 # include <stdlib.h>
12165 # include <stddef.h>
12167 #ifdef HAVE_SYS_RESOURCE_H
12168 # include <sys/resource.h>
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
12176 ac_cv_type_rlim_t
=no
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; }
12195 cat >conftest.
$ac_ext <<_ACEOF
12198 cat confdefs.h
>>conftest.
$ac_ext
12199 cat >>conftest.
$ac_ext <<_ACEOF
12200 /* end confdefs.h. */
12202 #include <sys/types.h>
12204 # include <stdlib.h>
12205 # include <stddef.h>
12207 #include <signal.h>
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
12214 ac_cv_type_stack_t
=no
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
12232 cat confdefs.h
>>conftest.
$ac_ext
12233 cat >>conftest.
$ac_ext <<_ACEOF
12234 /* end confdefs.h. */
12236 #include <sys/types.h>
12238 # include <stdlib.h>
12239 # include <stddef.h>
12241 #include <signal.h>
12242 #include "confdefs.h"
12247 stack_t sigstk; sigstk.ss_base = 0;
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;;
12258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12259 (eval "$ac_compile") 2>conftest.er1
12261 grep -v '^ *+' conftest.er1 >conftest.err
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
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
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
12302 cat confdefs.h >>conftest.$ac_ext
12303 cat >>conftest.$ac_ext <<_ACEOF
12304 /* end confdefs.h. */
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;;
12320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12321 (eval "$ac_link") 2>conftest.er1
12323 grep -v '^ *+' conftest.er1
>conftest.err
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; }
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
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";;
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
12361 ac_check_lib_save_LIBS
=$LIBS
12362 LIBS
="-l${libname} $LIBS"
12363 cat >conftest.
$ac_ext <<_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. */
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;;
12391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12392 (eval "$ac_link") 2>conftest.er1
12394 grep -v '^ *+' conftest.er1 >conftest.err
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"
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
12423 LIBS="-l${libname} $LIBS"
12427 if test "x$olibs" != "x$LIBS"; then
12428 if test "$cross_compiling" = yes; then
12431 cat >conftest.$ac_ext <<_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>
12442 # include <stdlib.h>
12443 # include <stddef.h>
12445 main() {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(0); }
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;;
12453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12454 (eval "$ac_link") 2>&5
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;;
12462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12463 (eval "$ac_try") 2>&5
12465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12466 (exit $ac_status); }; }; then
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 )
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
12483 { echo "$as_me:$LINENO: result: $libname library is not usable" >&5
12484 echo "${ECHO_T}$libname library is not usable" >&6; }
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
12500 cat confdefs.h >>conftest.$ac_ext
12501 cat >>conftest.$ac_ext <<_ACEOF
12502 /* end confdefs.h. */
12507 char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist");
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;;
12518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12519 (eval "$ac_link") 2>conftest.er1
12521 grep -v '^ *+' conftest.er1
>conftest.err
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; }
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
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; }; }
12562 cat >conftest.
$ac_ext <<_ACEOF
12564 #include "confdefs.h"
12565 #ifdef HAVE_TERMCAP_H
12566 # include <termcap.h>
12568 #ifdef HAVE_STRING_H
12569 # include <string.h>
12572 # include <stdlib.h>
12573 # include <stddef.h>
12576 {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(!strcmp(s==0 ? "" : s, "1")); }
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;;
12585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12586 (eval "$ac_link") 2>&5
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;;
12594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12595 (eval "$ac_try") 2>&5
12597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12598 (exit $ac_status); }; }; then
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
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
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; }; }
12642 cat >conftest.
$ac_ext <<_ACEOF
12644 #include "confdefs.h"
12645 #ifdef HAVE_TERMCAP_H
12646 # include <termcap.h>
12649 # include <stdlib.h>
12650 # include <stddef.h>
12653 {char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); exit(res != 0); }
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;;
12662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12663 (eval "$ac_link") 2>&5
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;;
12671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12672 (eval "$ac_try") 2>&5
12674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12675 (exit $ac_status); }; }; then
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
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
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>
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;;
12733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12734 (eval "$ac_link") 2>conftest.er1
12736 grep -v '^ *+' conftest.er1 >conftest.err
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
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
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>
12768 extern short ospeed;
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;;
12784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12785 (eval "$ac_link") 2>conftest.er1
12787 grep -v '^ *+' conftest.er1
>conftest.err
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
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
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>
12833 if (UP == 0 && BC == 0) PC = 1
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;;
12844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12845 (eval "$ac_link") 2>conftest.er1
12847 grep -v '^ *+' conftest.er1 >conftest.err
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
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
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>
12879 extern char *UP, *BC, PC;
12884 if (UP == 0 && BC == 0) PC = 1
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;;
12895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12896 (eval "$ac_link") 2>conftest.er1
12898 grep -v '^ *+' conftest.er1
>conftest.err
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
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
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>
12944 extern int xx(); tputs("test", 1, (outfuntype)xx)
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;;
12955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12956 (eval "$ac_compile") 2>conftest.er1
12958 grep -v '^ *+' conftest.er1 >conftest.err
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
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
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>
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;;
13007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13008 (eval "$ac_compile") 2>conftest.er1
13010 grep -v '^ *+' conftest.er1
>conftest.err
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
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
13042 { echo "$as_me:$LINENO: result: yes" >&5
13043 echo "${ECHO_T}yes" >&6; }
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
13055 cat confdefs.h
>>conftest.
$ac_ext
13056 cat >>conftest.
$ac_ext <<_ACEOF
13057 /* end confdefs.h. */
13062 ptsname(0);grantpt(0);unlockpt(0);
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;;
13073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13074 (eval "$ac_link") 2>conftest.er1
13076 grep -v '^ *+' conftest.er1 >conftest.err
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
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
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
13112 cat >conftest.$ac_ext <<_ACEOF
13115 cat confdefs.h >>conftest.$ac_ext
13116 cat >>conftest.$ac_ext <<_ACEOF
13117 /* end confdefs.h. */
13123 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13124 $EGREP "yes" >/dev/null 2>&1; then
13125 ptys=`echo /dev
/ptyp??
`
13127 ptys=`echo $pdir/pty??
`
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"
13138 cat >>confdefs.h <<_ACEOF
13139 #define PTYRANGE1 "$p1"
13142 { echo "$as_me:$LINENO: result: $p0 / $p1" >&5
13143 echo "${ECHO_T}$p0 / $p1" >&6; }
13145 { echo "$as_me:$LINENO: result: don't know" >&5
13146 echo "${ECHO_T}don't know" >&6; }
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
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; }; }
13163 cat >conftest.$ac_ext <<_ACEOF
13165 #include "confdefs.h"
13166 #include <sys/types.h>
13168 # include <stdlib.h>
13169 # include <stddef.h>
13171 #ifdef HAVE_UNISTD_H
13172 #include <unistd.h>
13174 #include <sys/stat.h>
13179 char *x,*ttyname();
13183 if (!(x = ttyname(0))) exit(1);
13184 if (stat(x, &sb)) exit(1);
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);
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")))
13196 fprintf(fp, "%d\n", sb.st_gid);
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;;
13208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13209 (eval "$ac_link") 2>&5
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;;
13217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13218 (eval "$ac_try") 2>&5
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; }
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; }
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; }
13258 if test "x$vim_cv_tty_group" != "xworld" ; then
13259 cat >>confdefs.h <<_ACEOF
13260 #define PTYGROUP $vim_cv_tty_group
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; }; }
13268 cat >>confdefs.h <<\_ACEOF
13269 #define PTYMODE 0620
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
13281 cat >conftest.$ac_ext <<_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>
13293 return *(signal (0, 0)) (0) == 1;
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;;
13304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13305 (eval "$ac_compile") 2>conftest.er1
13307 grep -v '^ *+' conftest.er1
>conftest.err
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
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
13334 if test $ac_cv_type_signal = void
; then
13335 cat >>confdefs.h
<<\_ACEOF
13336 #define SIGRETURN return
13340 cat >>confdefs.h
<<\_ACEOF
13341 #define SIGRETURN return 0
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
13351 cat confdefs.h
>>conftest.
$ac_ext
13352 cat >>conftest.
$ac_ext <<_ACEOF
13353 /* end confdefs.h. */
13355 #include <signal.h>
13358 struct sigcontext *scont;
13359 scont = (struct sigcontext *)0;
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;;
13376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13377 (eval "$ac_compile") 2>conftest.er1
13379 grep -v '^ *+' conftest.er1 >conftest.err
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
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
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; }; }
13416 cat >conftest.$ac_ext <<_ACEOF
13418 #include "confdefs.h"
13419 #ifdef HAVE_UNISTD_H
13420 #include <unistd.h>
13422 char *dagger[] = { "IFS=pwd", 0 };
13426 extern char **environ;
13428 return getcwd(buffer, 500) ? 0 : 1;
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;;
13438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13439 (eval "$ac_link") 2>&5
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;;
13447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13448 (eval "$ac_try") 2>&5
13450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13451 (exit $ac_status); }; }; then
13453 vim_cv_getcwd_broken=no
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
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
13541 cat >conftest.$ac_ext <<_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. */
13557 # include <limits.h>
13559 # include <assert.h>
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. */
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
13581 return $ac_func ();
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;;
13592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13593 (eval "$ac_link") 2>conftest.er1
13595 grep -v '^ *+' conftest.er1
>conftest.err
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"
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
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
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>
13644 n = (int)st.st_blksize;
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;;
13655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13656 (eval "$ac_compile") 2>conftest.er1
13658 grep -v '^ *+' conftest.er1 >conftest.err
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
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
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; }; }
13694 cat >conftest.$ac_ext <<_ACEOF
13696 #include "confdefs.h"
13698 # include <stdlib.h>
13699 # include <stddef.h>
13701 #include <sys/types.h>
13702 #include <sys/stat.h>
13703 main() {struct stat st; exit(stat("configure/", &st) != 0); }
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;;
13712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13713 (eval "$ac_link") 2>&5
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;;
13721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13722 (eval "$ac_try") 2>&5
13724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13725 (exit $ac_status); }; }; then
13727 vim_cv_stat_ignores_slash=yes
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
13755 { echo "$as_me:$LINENO: checking for iconv_open()" >&5
13756 echo $ECHO_N "checking for iconv_open()... $ECHO_C" >&6; }
13758 LIBS="$LIBS -liconv"
13759 cat >conftest.$ac_ext <<_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>
13773 iconv_open("fr", "to");
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;;
13784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13785 (eval "$ac_link") 2>conftest.er1
13787 grep -v '^ *+' conftest.er1
>conftest.err
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
13802 echo "$as_me: failed program was:" >&5
13803 sed 's/^/| /' conftest.
$ac_ext >&5
13806 cat >conftest.
$ac_ext <<_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>
13820 iconv_open("fr", "to");
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;;
13831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13832 (eval "$ac_link") 2>conftest.er1
13834 grep -v '^ *+' conftest.er1 >conftest.err
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
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
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>
13880 char *cs = nl_langinfo(CODESET);
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;;
13891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13892 (eval "$ac_link") 2>conftest.er1
13894 grep -v '^ *+' conftest.er1
>conftest.err
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
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
13925 ac_check_lib_save_LIBS
=$LIBS
13927 cat >conftest.
$ac_ext <<_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. */
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;;
13955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13956 (eval "$ac_link") 2>conftest.er1
13958 grep -v '^ *+' conftest.er1 >conftest.err
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
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
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
13995 cat confdefs.h >>conftest.$ac_ext
13996 cat >>conftest.$ac_ext <<_ACEOF
13997 /* end confdefs.h. */
14003 # include <stdlib.h>
14004 # include <stddef.h>
14011 d = strtod("1.1", &s);
14016 d = pow(1.11, 2.22);
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;;
14032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14033 (eval "$ac_link") 2>conftest.er1
14035 grep -v '^ *+' conftest.er1
>conftest.err
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
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;
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
14077 ac_check_lib_save_LIBS
=$LIBS
14078 LIBS
="-lposix1e $LIBS"
14079 cat >conftest.
$ac_ext <<_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. */
14092 char acl_get_file ();
14096 return acl_get_file ();
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;;
14107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14108 (eval "$ac_link") 2>conftest.er1
14110 grep -v '^ *+' conftest.er1 >conftest.err
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
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"
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
14141 ac_check_lib_save_LIBS=$LIBS
14143 cat >conftest.$ac_ext <<_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. */
14156 char acl_get_file ();
14160 return acl_get_file ();
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;;
14171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14172 (eval "$ac_link") 2>conftest.er1
14174 grep -v '^ *+' conftest.er1
>conftest.err
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
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
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
14204 ac_check_lib_save_LIBS
=$LIBS
14205 LIBS
="-lattr $LIBS"
14206 cat >conftest.
$ac_ext <<_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. */
14223 return fgetxattr ();
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;;
14234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14235 (eval "$ac_link") 2>conftest.er1
14237 grep -v '^ *+' conftest.er1 >conftest.err
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
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
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>
14286 acl = acl_get_file("foo", ACL_TYPE_ACCESS);
14287 acl_set_file("foo", ACL_TYPE_ACCESS, acl);
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;;
14299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14300 (eval "$ac_link") 2>conftest.er1
14302 grep -v '^ *+' conftest.er1
>conftest.err
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
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
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>
14342 acl("foo", GETACLCNT, 0, NULL);
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;;
14354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14355 (eval "$ac_link") 2>conftest.er1
14357 grep -v '^ *+' conftest.er1 >conftest.err
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
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
14387 cat confdefs.h >>conftest.$ac_ext
14388 cat >>conftest.$ac_ext <<_ACEOF
14389 /* end confdefs.h. */
14392 # include <stdlib.h>
14393 # include <stddef.h>
14395 #ifdef HAVE_SYS_ACL_H
14396 # include <sys/acl.h>
14398 #ifdef HAVE_SYS_ACCESS_H
14399 # include <sys/access.h>
14401 #define _ALL_SOURCE
14403 #include <sys/stat.h>
14406 struct acl *aclent;
14410 aclsize = sizeof(struct acl);
14411 aclent = (void *)malloc(aclsize);
14412 statacl("foo", STX_NORMAL, aclent, aclsize);
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;;
14424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14425 (eval "$ac_link") 2>conftest.er1
14427 grep -v '^ *+' conftest.er1
>conftest.err
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
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
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;
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
14474 olibs
="$LIBS" ; LIBS
="-lgpm"
14475 cat >conftest.
$ac_ext <<_ACEOF
14478 cat confdefs.h
>>conftest.
$ac_ext
14479 cat >>conftest.
$ac_ext <<_ACEOF
14480 /* end confdefs.h. */
14482 #include <linux/keyboard.h>
14486 Gpm_GetLibVersion(NULL);
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;;
14497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14498 (eval "$ac_link") 2>conftest.er1
14500 grep -v '^ *+' conftest.er1 >conftest.err
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
14511 echo "$as_me: failed program was:" >&5
14512 sed 's/^/| /' conftest.$ac_ext >&5
14517 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14518 conftest$ac_exeext conftest.$ac_ext
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
14526 cat >>confdefs.h <<\_ACEOF
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;
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
14554 cat >conftest.$ac_ext <<_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>
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;
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;;
14581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14582 (eval "$ac_link") 2>conftest.er1
14584 grep -v '^ *+' conftest.er1
>conftest.err
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
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
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
14623 cat confdefs.h
>>conftest.
$ac_ext
14624 cat >>conftest.
$ac_ext <<_ACEOF
14625 /* end confdefs.h. */
14630 rename("this", "that")
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;;
14641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14642 (eval "$ac_link") 2>conftest.er1
14644 grep -v '^ *+' conftest.er1 >conftest.err
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
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
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>
14686 mib[1] = HW_USERMEM;
14688 (void)sysctl(mib, 2, &r, &len, (void *)0, (size_t)0);
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;;
14700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14701 (eval "$ac_compile") 2>conftest.er1
14703 grep -v '^ *+' conftest.er1
>conftest.err
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
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
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>
14739 struct sysinfo sinfo;
14742 (void)sysinfo(&sinfo);
14743 t = sinfo.totalram;
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;;
14755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14756 (eval "$ac_compile") 2>conftest.er1
14758 grep -v '^ *+' conftest.er1 >conftest.err
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
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
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>
14794 struct sysinfo sinfo;
14795 sinfo.mem_unit = 1;
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;;
14807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14808 (eval "$ac_compile") 2>conftest.er1
14810 grep -v '^ *+' conftest.er1
>conftest.err
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
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
14838 cat confdefs.h
>>conftest.
$ac_ext
14839 cat >>conftest.
$ac_ext <<_ACEOF
14840 /* end confdefs.h. */
14841 #include <unistd.h>
14845 (void)sysconf(_SC_PAGESIZE);
14846 (void)sysconf(_SC_PHYS_PAGES);
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;;
14858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14859 (eval "$ac_compile") 2>conftest.er1
14861 grep -v '^ *+' conftest.er1 >conftest.err
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
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
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; }; }
14895 cat >conftest.$ac_ext <<_ACEOF
14898 cat confdefs.h >>conftest.$ac_ext
14899 cat >>conftest.$ac_ext <<_ACEOF
14900 /* end confdefs.h. */
14904 # include <stdlib.h>
14905 # include <stddef.h>
14909 FILE *f=fopen("conftestval", "w");
14911 fprintf(f, "%d\n", (int)sizeof(int));
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;;
14921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14922 (eval "$ac_link") 2>&5
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;;
14930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14931 (eval "$ac_try") 2>&5
14933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14934 (exit $ac_status); }; }; then
14935 ac_cv_sizeof_int=`cat conftestval
`
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 )
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
14959 #include "confdefs.h"
14960 #ifdef HAVE_STRING_H
14961 # include <string.h>
14964 # include <stdlib.h>
14965 # include <stddef.h>
14969 strcpy(buf, "abcdefghi");
14970 mch_memmove(buf, buf + 2, 3);
14971 if (strncmp(buf, "ababcf", 6))
14973 strcpy(buf, "abcdefghi");
14974 mch_memmove(buf + 2, buf, 3);
14975 if (strncmp(buf, "cdedef", 6))
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
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; }; }
14993 cat >conftest.$ac_ext <<_ACEOF
14994 #define mch_memmove(s,d,l) memmove(d,s,l) $bcopy_test_prog
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;;
15002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15003 (eval "$ac_link") 2>&5
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;;
15011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15012 (eval "$ac_try") 2>&5
15014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15015 (exit $ac_status); }; }; then
15017 vim_cv_memmove_handles_overlap=yes
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
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
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; }; }
15057 cat >conftest.$ac_ext <<_ACEOF
15058 #define mch_bcopy(s,d,l) bcopy(d,s,l) $bcopy_test_prog
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;;
15066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15067 (eval "$ac_link") 2>&5
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;;
15075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15076 (eval "$ac_try") 2>&5
15078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15079 (exit $ac_status); }; }; then
15081 vim_cv_bcopy_handles_overlap=yes
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
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
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; }; }
15121 cat >conftest.$ac_ext <<_ACEOF
15122 #define mch_memcpy(s,d,l) memcpy(d,s,l) $bcopy_test_prog
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;;
15130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15131 (eval "$ac_link") 2>&5
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;;
15139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15140 (eval "$ac_try") 2>&5
15142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15143 (exit $ac_status); }; }; then
15145 vim_cv_memcpy_handles_overlap=yes
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
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
15188 cat confdefs.h >>conftest.$ac_ext
15189 cat >>conftest.$ac_ext <<_ACEOF
15190 /* end confdefs.h. */
15191 #include <X11/Xlocale.h>
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;;
15206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15207 (eval "$ac_compile") 2>conftest.er1
15209 grep -v '^ *+' conftest.er1
>conftest.err
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
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. */
15230 char _Xsetlocale ();
15234 return _Xsetlocale ();
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;;
15245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15246 (eval "$ac_link") 2>conftest.er1
15248 grep -v '^ *+' conftest.er1 >conftest.err
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
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
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
15292 ac_check_lib_save_LIBS=$LIBS
15293 LIBS="-lxpg4 $LIBS"
15294 cat >conftest.$ac_ext <<_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. */
15307 char _xpg4_setrunelocale ();
15311 return _xpg4_setrunelocale ();
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;;
15322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15323 (eval "$ac_link") 2>conftest.er1
15325 grep -v '^ *+' conftest.er1
>conftest.err
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
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"
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; }
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
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;
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
15411 if test -n "$MSGFMT"; then
15412 ac_cv_prog_MSGFMT
="$MSGFMT" # Let the user override the test.
15414 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15415 for as_dir
in $PATH
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
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; }
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
15445 if test -n "$MSGFMT"; then
15446 cat >conftest.
$ac_ext <<_ACEOF
15449 cat confdefs.h
>>conftest.
$ac_ext
15450 cat >>conftest.
$ac_ext <<_ACEOF
15451 /* end confdefs.h. */
15452 #include <libintl.h>
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;;
15467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15468 (eval "$ac_link") 2>conftest.er1
15470 grep -v '^ *+' conftest.er1 >conftest.err
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"
15482 echo "$as_me: failed program was:" >&5
15483 sed 's/^/| /' conftest.$ac_ext >&5
15486 LIBS="$LIBS -lintl"
15487 cat >conftest.$ac_ext <<_ACEOF
15490 cat confdefs.h >>conftest.$ac_ext
15491 cat >>conftest.$ac_ext <<_ACEOF
15492 /* end confdefs.h. */
15493 #include <libintl.h>
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;;
15508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15509 (eval "$ac_link") 2>conftest.er1
15511 grep -v '^ *+' conftest.er1
>conftest.err
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"
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; };
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
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
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
15557 cat >conftest.
$ac_ext <<_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. */
15573 # include <limits.h>
15575 # include <assert.h>
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. */
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
15597 return $ac_func ();
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;;
15608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15609 (eval "$ac_link") 2>conftest.er1
15611 grep -v '^ *+' conftest.er1 >conftest.err
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"
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
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
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;
15655 ++_nl_msg_cat_cntr;
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;;
15666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15667 (eval "$ac_link") 2>conftest.er1
15669 grep -v '^ *+' conftest.er1
>conftest.err
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
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
15695 { echo "$as_me:$LINENO: result: no \"po/Makefile\" - disabled" >&5
15696 echo "${ECHO_T}no \"po/Makefile\" - disabled" >&6; };
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; }
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
15718 cat confdefs.h
>>conftest.
$ac_ext
15719 cat >>conftest.
$ac_ext <<_ACEOF
15720 /* end confdefs.h. */
15721 $ac_includes_default
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;;
15730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15731 (eval "$ac_compile") 2>conftest.er1
15733 grep -v '^ *+' conftest.er1 >conftest.err
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
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
15759 cat confdefs.h >>conftest.$ac_ext
15760 cat >>conftest.$ac_ext <<_ACEOF
15761 /* end confdefs.h. */
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;;
15769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15770 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15772 grep -v '^ *+' conftest.er1
>conftest.err
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
15780 ac_header_preproc
=yes
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
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
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;}
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
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
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; }
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
15846 cat confdefs.h
>>conftest.
$ac_ext
15847 cat >>conftest.
$ac_ext <<_ACEOF
15848 /* end confdefs.h. */
15849 $ac_includes_default
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;;
15858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15859 (eval "$ac_compile") 2>conftest.er1
15861 grep -v '^ *+' conftest.er1 >conftest.err
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
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
15887 cat confdefs.h >>conftest.$ac_ext
15888 cat >>conftest.$ac_ext <<_ACEOF
15889 /* end confdefs.h. */
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;;
15897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15898 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15900 grep -v '^ *+' conftest.er1
>conftest.err
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
15908 ac_header_preproc
=yes
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
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
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;}
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
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
15964 if test x
${DLL} = xdlfcn.h
; then
15966 cat >>confdefs.h
<<\_ACEOF
15967 #define HAVE_DLFCN_H 1
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
15975 cat confdefs.h
>>conftest.
$ac_ext
15976 cat >>conftest.
$ac_ext <<_ACEOF
15977 /* end confdefs.h. */
15983 extern void* dlopen();
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;;
15996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15997 (eval "$ac_link") 2>conftest.er1
15999 grep -v '^ *+' conftest.er1 >conftest.err
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
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; }
16025 cat >conftest.$ac_ext <<_ACEOF
16028 cat confdefs.h >>conftest.$ac_ext
16029 cat >>conftest.$ac_ext <<_ACEOF
16030 /* end confdefs.h. */
16036 extern void* dlopen();
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;;
16049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16050 (eval "$ac_link") 2>conftest.er1
16052 grep -v '^ *+' conftest.er1
>conftest.err
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
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; };
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
16088 cat confdefs.h
>>conftest.
$ac_ext
16089 cat >>conftest.
$ac_ext <<_ACEOF
16090 /* end confdefs.h. */
16096 extern void* dlsym();
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;;
16109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16110 (eval "$ac_link") 2>conftest.er1
16112 grep -v '^ *+' conftest.er1 >conftest.err
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
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; }
16138 cat >conftest.$ac_ext <<_ACEOF
16141 cat confdefs.h >>conftest.$ac_ext
16142 cat >>conftest.$ac_ext <<_ACEOF
16143 /* end confdefs.h. */
16149 extern void* dlsym();
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;;
16162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16163 (eval "$ac_link") 2>conftest.er1
16165 grep -v '^ *+' conftest.er1
>conftest.err
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
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; };
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
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
16207 cat confdefs.h
>>conftest.
$ac_ext
16208 cat >>conftest.
$ac_ext <<_ACEOF
16209 /* end confdefs.h. */
16215 extern void* shl_load();
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;;
16228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16229 (eval "$ac_link") 2>conftest.er1
16231 grep -v '^ *+' conftest.er1 >conftest.err
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
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; }
16257 cat >conftest.$ac_ext <<_ACEOF
16260 cat confdefs.h >>conftest.$ac_ext
16261 cat >>conftest.$ac_ext <<_ACEOF
16262 /* end confdefs.h. */
16268 extern void* shl_load();
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;;
16281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16282 (eval "$ac_link") 2>conftest.er1
16284 grep -v '^ *+' conftest.er1
>conftest.err
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
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; };
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; }
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
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>
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;;
16348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16349 (eval "$ac_compile") 2>conftest.er1
16351 grep -v '^ *+' conftest.er1 >conftest.err
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
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
16377 cat confdefs.h >>conftest.$ac_ext
16378 cat >>conftest.$ac_ext <<_ACEOF
16379 /* end confdefs.h. */
16380 #include <$ac_header>
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;;
16387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16388 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16390 grep -v '^ *+' conftest.er1
>conftest.err
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
16398 ac_header_preproc
=yes
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
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
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;}
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
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
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; }
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; }
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; }
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.
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
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;} ;;
16541 _ | IFS | as_nl
) ;; #(
16542 *) $as_unset $ac_var ;;
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 \).
16554 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16557 # `set' quotes correctly as required by POSIX, so do not add quotes.
16558 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16567 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16569 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
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
16578 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
16579 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
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
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'
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
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.
16620 ac_cs_recheck=false
16622 SHELL=\${CONFIG_SHELL-$SHELL}
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
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
16640 case `(set -o) 2>/dev/null` in
16641 *posix
*) set -o posix
;;
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
16662 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
16670 # Support unset when possible.
16671 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
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.)
16687 # Find who we are. Look in the path if we contain no directory separator.
16689 *[\\/]* ) as_myself
=$0 ;;
16690 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16691 for as_dir
in $PATH
16694 test -z "$as_dir" && as_dir
=.
16695 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
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
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
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
16728 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
16732 # Required to use basename.
16733 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
16734 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
16740 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16741 as_basename
=basename
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 ||
16753 sed '/^.*\/\([^/][^/]*\)\/*$/{
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. :-)
16798 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
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.
16815 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
16821 ECHO_C
= ECHO_N
= ECHO_T
=
16822 case `echo -n x` in
16824 case `echo 'x\c'` in
16825 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
16832 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
16833 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
16839 rm -f conf$$ conf$$.exe conf$$.
file
16840 if test -d conf$$.dir
; then
16841 rm -f conf$$.dir
/conf$$.
file
16847 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
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 ||
16855 elif ln conf$$.
file conf$$
2>/dev
/null
; then
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
16866 test -d .
/-p && rmdir .
/-p
16870 if test -x / >/dev
/null
2>&1; then
16871 as_test_x
='test -x'
16873 if ls -dL / >/dev
/null
2>&1; then
16880 if test -d "$1"; then
16886 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
16887 ???[sx]*):;;*)false;;esac;fi
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'"
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.
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
16915 on `(hostname || uname -n) 2>/dev/null | sed 1q`
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"
16927 cat >>$CONFIG_STATUS <<\_ACEOF
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:
16947 Configuration headers:
16950 Report bugs to <bug-autoconf@gnu.org>."
16953 cat >>$CONFIG_STATUS <<_ACEOF
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."
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.
16975 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
16976 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
16987 # Handling of the options.
16988 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
16990 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
16991 echo "$ac_cs_version"; exit ;;
16992 --debug |
--debu |
--deb |
--de |
--d |
-d )
16994 --file |
--fil |
--fi |
--f )
16996 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
16997 ac_need_defaults
=false
;;
16998 --header |
--heade |
--head |
--hea )
17000 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
17001 ac_need_defaults
=false
;;
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)
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
;;
17025 ac_configure_extra_args
=
17027 if $ac_cs_silent; then
17029 ac_configure_extra_args
="$ac_configure_extra_args --silent"
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
17042 cat >>$CONFIG_STATUS <<\_ACEOF
17046 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17047 ## Running $as_me. ##
17053 cat >>$CONFIG_STATUS <<_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; }; };;
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'.
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"
17102 tmp
=.
/conf$$
-$RANDOM
17103 (umask 077 && mkdir
"$tmp")
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
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
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
17171 GREP!$GREP$ac_delim
17172 EGREP!$EGREP$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
17224 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
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; }; }
17231 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
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
17246 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
17247 s/^/s,@/; s/!/@,|#_!!_#|/
17250 s/'"$ac_delim"'$/,g/; t
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
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
17302 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 37; then
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; }; }
17309 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
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
17324 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
17325 s/^/s,@/; s/!/@,|#_!!_#|/
17328 s/'"$ac_delim"'$/,g/; t
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
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}:*/:/
17349 s/^\([^=]*=[ ]*\):*/\1/
17355 cat >>$CONFIG_STATUS <<\_ACEOF
17356 fi # test -n "$CONFIG_FILES"
17359 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS
17362 :[FHLC
]) ac_mode
=$ac_tag; continue;;
17364 case $ac_mode$ac_tag in
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;;
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 `:'.
17394 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
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; }; };;
17400 ac_file_inputs
="$ac_file_inputs $ac_f"
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;}
17415 *:-:* |
*:-) cat >"$tmp/stdin";;
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 ||
17426 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17430 /^X\(\/\/\)[^/].*/{
17445 -*) as_dir
=.
/$as_dir;;
17447 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
17451 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
17452 *) as_qdir
=$as_dir;;
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 ||
17461 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17465 /^X\(\/\/\)[^/].*/{
17478 test -d "$as_dir" && break
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; }; }; }
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/ ;;
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
17503 .
) # We are building in place.
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 ;;
17516 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
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/ {
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;}
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' ;;
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
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;}
17590 -) cat "$tmp/out"; rm -f "$tmp/out";;
17591 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
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'
17624 s/^[ ]*#[ ]*define[ ][ ]*//
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.)
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"
17648 ac_in
='$ac_file_inputs'
17649 ac_out
='"$tmp/out1"'
17650 ac_nxt
='"$tmp/out2"'
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
17663 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
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
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;}
17684 mv "$tmp/config.h" $ac_file
17687 echo "/* $configure_input */"
17699 { (exit 0); exit 0; }
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
17715 ac_config_status_args
=
17716 test "$silent" = yes &&
17717 ac_config_status_args
="$ac_config_status_args --quiet"
17719 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
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; }