2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE
=1; export DUALCASE
# for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
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
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
53 as_echo_n='/usr
/ucb
/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
96 # Find who we are. Look in the path if we contain no directory separator.
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x
; then
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var
in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
134 # Required to use basename.
135 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
142 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
149 # Name of the executable.
150 as_me
=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
173 if test "x$CONFIG_SHELL" = x
; then
174 if (eval ":") 2>/dev
/null
; then
180 if test $as_have_required = yes && (eval ":
190 as_func_ret_success () {
193 as_func_ret_failure () {
198 if as_func_success; then
202 echo as_func_success failed.
205 if as_func_failure; then
207 echo as_func_failure succeeded.
210 if as_func_ret_success; then
214 echo as_func_ret_success failed.
217 if as_func_ret_failure; then
219 echo as_func_ret_failure succeeded.
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
226 echo positional parameters were not saved.
229 test \$exitcode = 0) || { (exit 1); exit 1; }
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev
/null
; then
240 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
241 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
244 test -z "$as_dir" && as_dir
=.
247 for as_base
in sh bash ksh sh5
; do
248 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
255 for as_shell
in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
267 case `(set -o) 2>/dev/null` in
268 *posix
*) set -o posix
;;
277 CONFIG_SHELL
=$as_shell
279 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
288 case `(set -o) 2>/dev/null` in
289 *posix
*) set -o posix
;;
305 as_func_ret_success
() {
308 as_func_ret_failure
() {
313 if as_func_success
; then
317 echo as_func_success failed.
320 if as_func_failure
; then
322 echo as_func_failure succeeded.
325 if as_func_ret_success
; then
329 echo as_func_ret_success failed.
332 if as_func_ret_failure
; then
334 echo as_func_ret_failure succeeded.
337 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
341 echo positional parameters were not saved.
344 test $exitcode = 0) ||
{ (exit 1); exit 1; }
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") ||
{ (exit 1); exit 1; }
361 if test "x$CONFIG_SHELL" != x
; then
362 for as_var
in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
370 if test $as_have_required = no
; then
371 echo This
script requires a shell
more modern than all the
372 echo shells that I found on your system. Please
install a
373 echo modern shell
, or manually run the
script under such a
374 echo shell
if you
do have one.
375 { (exit 1); exit 1; }
385 (eval "as_func_return () {
394 as_func_ret_success () {
397 as_func_ret_failure () {
402 if as_func_success; then
406 echo as_func_success failed.
409 if as_func_failure; then
411 echo as_func_failure succeeded.
414 if as_func_ret_success; then
418 echo as_func_ret_success failed.
421 if as_func_ret_failure; then
423 echo as_func_ret_failure succeeded.
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
430 echo positional parameters were not saved.
433 test \$exitcode = 0") ||
{
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system
,
436 echo including any error possibly output before this message.
437 echo This can
help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
473 chmod +x
"$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
481 # Exit status is that of the last command.
486 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
492 ECHO_C
= ECHO_N
= ECHO_T
=
496 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
502 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
509 rm -f conf$$ conf$$.exe conf$$.
file
510 if test -d conf$$.dir
; then
511 rm -f conf$$.dir
/conf$$.
file
514 mkdir conf$$.dir
2>/dev
/null
516 if (echo >conf$$.
file) 2>/dev
/null
; then
517 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
525 elif ln conf$$.
file conf$$
2>/dev
/null
; then
533 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
534 rmdir conf$$.dir
2>/dev
/null
536 if mkdir
-p .
2>/dev
/null
; then
539 test -d .
/-p && rmdir .
/-p
543 if test -x / >/dev
/null
2>&1; then
546 if ls -dL / >/dev
/null
2>&1; then
553 if test -d "$1"; then
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
564 as_executable_p
=$as_test_x
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
574 exec 7<&0 </dev
/null
6>&1
577 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578 # so uname gets run too.
579 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
584 ac_default_prefix
=/usr
/local
586 ac_config_libobj_dir
=.
592 SHELL
=${CONFIG_SHELL-/bin/sh}
594 # Identity of this package.
601 ac_unique_file
="vim.h"
602 # Factoring default headers for most tests.
603 ac_includes_default
="\
605 #ifdef HAVE_SYS_TYPES_H
606 # include <sys/types.h>
608 #ifdef HAVE_SYS_STAT_H
609 # include <sys/stat.h>
615 # ifdef HAVE_STDLIB_H
620 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
625 #ifdef HAVE_STRINGS_H
626 # include <strings.h>
628 #ifdef HAVE_INTTYPES_H
629 # include <inttypes.h>
638 ac_subst_vars
='LTLIBOBJS
692 PYTHON_GETPATH_CFLAGS
700 vi_cv_path_ecl_config
774 program_transform_name
786 enable_option_checking
803 enable_mzschemeinterp
808 with_python_config_dir
844 ac_precious_vars
='build_alias
856 # Initialize some variables set by options.
858 ac_init_version
=false
859 ac_unrecognized_opts
=
861 # The variables have the same names as the options, with
862 # dashes changed to underlines.
870 program_transform_name
=s
,x
,x
,
878 # Installation directory options.
879 # These are left unexpanded so users can "make install exec_prefix=/foo"
880 # and all the variables that are supposed to be based on exec_prefix
881 # by default will actually change.
882 # Use braces instead of parens because sh, perl, etc. also accept them.
883 # (The list follows the same order as the GNU Coding Standards.)
884 bindir
='${exec_prefix}/bin'
885 sbindir
='${exec_prefix}/sbin'
886 libexecdir
='${exec_prefix}/libexec'
887 datarootdir
='${prefix}/share'
888 datadir
='${datarootdir}'
889 sysconfdir
='${prefix}/etc'
890 sharedstatedir
='${prefix}/com'
891 localstatedir
='${prefix}/var'
892 includedir
='${prefix}/include'
893 oldincludedir
='/usr/include'
894 docdir
='${datarootdir}/doc/${PACKAGE}'
895 infodir
='${datarootdir}/info'
900 libdir
='${exec_prefix}/lib'
901 localedir
='${datarootdir}/locale'
902 mandir
='${datarootdir}/man'
908 # If the previous option needs an argument, assign it.
909 if test -n "$ac_prev"; then
910 eval $ac_prev=\
$ac_option
916 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
920 # Accept the important Cygnus configure options, so we can diagnose typos.
922 case $ac_dashdash$ac_option in
926 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
928 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
931 -build |
--build |
--buil |
--bui |
--bu)
932 ac_prev
=build_alias
;;
933 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
934 build_alias
=$ac_optarg ;;
936 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
937 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
938 ac_prev
=cache_file
;;
939 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
940 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
941 cache_file
=$ac_optarg ;;
944 cache_file
=config.cache
;;
946 -datadir |
--datadir |
--datadi |
--datad)
948 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
949 datadir
=$ac_optarg ;;
951 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
952 |
--dataroo |
--dataro |
--datar)
953 ac_prev
=datarootdir
;;
954 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
955 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
956 datarootdir
=$ac_optarg ;;
958 -disable-* |
--disable-*)
959 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
960 # Reject names that are not valid shell variable names.
961 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
962 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
963 { (exit 1); exit 1; }; }
964 ac_useropt_orig
=$ac_useropt
965 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
966 case $ac_user_opts in
970 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
971 ac_unrecognized_sep
=', ';;
973 eval enable_
$ac_useropt=no
;;
975 -docdir |
--docdir |
--docdi |
--doc |
--do)
977 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
980 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
982 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
985 -enable-* |
--enable-*)
986 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
987 # Reject names that are not valid shell variable names.
988 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
989 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
990 { (exit 1); exit 1; }; }
991 ac_useropt_orig
=$ac_useropt
992 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
993 case $ac_user_opts in
997 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
998 ac_unrecognized_sep
=', ';;
1000 eval enable_
$ac_useropt=\
$ac_optarg ;;
1002 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1003 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1004 |
--exec |
--exe |
--ex)
1005 ac_prev
=exec_prefix
;;
1006 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1007 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1008 |
--exec=* |
--exe=* |
--ex=*)
1009 exec_prefix
=$ac_optarg ;;
1011 -gas |
--gas |
--ga |
--g)
1012 # Obsolete; use --with-gas.
1015 -help |
--help |
--hel |
--he |
-h)
1016 ac_init_help
=long
;;
1017 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1018 ac_init_help
=recursive
;;
1019 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1020 ac_init_help
=short
;;
1022 -host |
--host |
--hos |
--ho)
1023 ac_prev
=host_alias
;;
1024 -host=* |
--host=* |
--hos=* |
--ho=*)
1025 host_alias
=$ac_optarg ;;
1027 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1029 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1031 htmldir
=$ac_optarg ;;
1033 -includedir |
--includedir |
--includedi |
--included |
--include \
1034 |
--includ |
--inclu |
--incl |
--inc)
1035 ac_prev
=includedir
;;
1036 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1037 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1038 includedir
=$ac_optarg ;;
1040 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1042 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1043 infodir
=$ac_optarg ;;
1045 -libdir |
--libdir |
--libdi |
--libd)
1047 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1048 libdir
=$ac_optarg ;;
1050 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1051 |
--libexe |
--libex |
--libe)
1052 ac_prev
=libexecdir
;;
1053 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1054 |
--libexe=* |
--libex=* |
--libe=*)
1055 libexecdir
=$ac_optarg ;;
1057 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1058 ac_prev
=localedir
;;
1059 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1060 localedir
=$ac_optarg ;;
1062 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1063 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1064 ac_prev
=localstatedir
;;
1065 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1066 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1067 localstatedir
=$ac_optarg ;;
1069 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1071 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1072 mandir
=$ac_optarg ;;
1074 -nfp |
--nfp |
--nf)
1075 # Obsolete; use --without-fp.
1078 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1079 |
--no-cr |
--no-c |
-n)
1082 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1083 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1086 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1087 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1088 |
--oldin |
--oldi |
--old |
--ol |
--o)
1089 ac_prev
=oldincludedir
;;
1090 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1091 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1092 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1093 oldincludedir
=$ac_optarg ;;
1095 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1097 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1098 prefix
=$ac_optarg ;;
1100 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1101 |
--program-pre |
--program-pr |
--program-p)
1102 ac_prev
=program_prefix
;;
1103 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1104 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1105 program_prefix
=$ac_optarg ;;
1107 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1108 |
--program-suf |
--program-su |
--program-s)
1109 ac_prev
=program_suffix
;;
1110 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1111 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1112 program_suffix
=$ac_optarg ;;
1114 -program-transform-name |
--program-transform-name \
1115 |
--program-transform-nam |
--program-transform-na \
1116 |
--program-transform-n |
--program-transform- \
1117 |
--program-transform |
--program-transfor \
1118 |
--program-transfo |
--program-transf \
1119 |
--program-trans |
--program-tran \
1120 |
--progr-tra |
--program-tr |
--program-t)
1121 ac_prev
=program_transform_name
;;
1122 -program-transform-name=* |
--program-transform-name=* \
1123 |
--program-transform-nam=* |
--program-transform-na=* \
1124 |
--program-transform-n=* |
--program-transform-=* \
1125 |
--program-transform=* |
--program-transfor=* \
1126 |
--program-transfo=* |
--program-transf=* \
1127 |
--program-trans=* |
--program-tran=* \
1128 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1129 program_transform_name
=$ac_optarg ;;
1131 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1133 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1134 pdfdir
=$ac_optarg ;;
1136 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1138 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1141 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1142 |
-silent |
--silent |
--silen |
--sile |
--sil)
1145 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1147 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1149 sbindir
=$ac_optarg ;;
1151 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1152 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1153 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1155 ac_prev
=sharedstatedir
;;
1156 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1157 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1158 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1160 sharedstatedir
=$ac_optarg ;;
1162 -site |
--site |
--sit)
1164 -site=* |
--site=* |
--sit=*)
1167 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1169 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1170 srcdir
=$ac_optarg ;;
1172 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1173 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1174 ac_prev
=sysconfdir
;;
1175 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1176 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1177 sysconfdir
=$ac_optarg ;;
1179 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1180 ac_prev
=target_alias
;;
1181 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1182 target_alias
=$ac_optarg ;;
1184 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1187 -version |
--version |
--versio |
--versi |
--vers |
-V)
1188 ac_init_version
=: ;;
1191 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1192 # Reject names that are not valid shell variable names.
1193 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1194 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1195 { (exit 1); exit 1; }; }
1196 ac_useropt_orig
=$ac_useropt
1197 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1198 case $ac_user_opts in
1202 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1203 ac_unrecognized_sep
=', ';;
1205 eval with_
$ac_useropt=\
$ac_optarg ;;
1207 -without-* |
--without-*)
1208 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1209 # Reject names that are not valid shell variable names.
1210 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1211 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1212 { (exit 1); exit 1; }; }
1213 ac_useropt_orig
=$ac_useropt
1214 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1215 case $ac_user_opts in
1219 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1220 ac_unrecognized_sep
=', ';;
1222 eval with_
$ac_useropt=no
;;
1225 # Obsolete; use --with-x.
1228 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1229 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1230 ac_prev
=x_includes
;;
1231 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1232 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1233 x_includes
=$ac_optarg ;;
1235 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1236 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1237 ac_prev
=x_libraries
;;
1238 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1239 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1240 x_libraries
=$ac_optarg ;;
1242 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1243 Try \`$0 --help' for more information." >&2
1244 { (exit 1); exit 1; }; }
1248 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1249 # Reject names that are not valid shell variable names.
1250 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1251 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1252 { (exit 1); exit 1; }; }
1253 eval $ac_envvar=\
$ac_optarg
1254 export $ac_envvar ;;
1257 # FIXME: should be removed in autoconf 3.0.
1258 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1259 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1260 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1261 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1267 if test -n "$ac_prev"; then
1268 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1269 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1270 { (exit 1); exit 1; }; }
1273 if test -n "$ac_unrecognized_opts"; then
1274 case $enable_option_checking in
1276 fatal
) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1277 { (exit 1); exit 1; }; } ;;
1278 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1282 # Check all directory arguments for consistency.
1283 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1284 datadir sysconfdir sharedstatedir localstatedir includedir \
1285 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1286 libdir localedir mandir
1288 eval ac_val
=\$
$ac_var
1289 # Remove trailing slashes.
1292 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1293 eval $ac_var=\
$ac_val;;
1295 # Be sure to have absolute directory names.
1297 [\\/$
]* | ?
:[\\/]* ) continue;;
1298 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1300 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1301 { (exit 1); exit 1; }; }
1304 # There might be people who depend on the old broken behavior: `$host'
1305 # used to hold the argument of --host etc.
1306 # FIXME: To remove some day.
1309 target
=$target_alias
1311 # FIXME: To remove some day.
1312 if test "x$host_alias" != x
; then
1313 if test "x$build_alias" = x
; then
1314 cross_compiling
=maybe
1315 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1316 If a cross compiler is detected then cross compile mode will be used." >&2
1317 elif test "x$build_alias" != "x$host_alias"; then
1323 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1325 test "$silent" = yes && exec 6>/dev
/null
1328 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1329 ac_ls_di
=`ls -di .` &&
1330 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1331 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1332 { (exit 1); exit 1; }; }
1333 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1334 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1335 { (exit 1); exit 1; }; }
1338 # Find the source files, if location was not specified.
1339 if test -z "$srcdir"; then
1340 ac_srcdir_defaulted
=yes
1341 # Try the directory containing this script, then the parent directory.
1342 ac_confdir
=`$as_dirname -- "$as_myself" ||
1343 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1344 X"$as_myself" : 'X\(//\)[^/]' \| \
1345 X"$as_myself" : 'X\(//\)$' \| \
1346 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1347 $as_echo X"$as_myself" |
1348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1366 if test ! -r "$srcdir/$ac_unique_file"; then
1370 ac_srcdir_defaulted
=no
1372 if test ! -r "$srcdir/$ac_unique_file"; then
1373 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1374 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1375 { (exit 1); exit 1; }; }
1377 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1379 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1380 { (exit 1); exit 1; }; }
1382 # When building in place, set srcdir=.
1383 if test "$ac_abs_confdir" = "$ac_pwd"; then
1386 # Remove unnecessary trailing slashes from srcdir.
1387 # Double slashes in file names in object file debugging info
1388 # mess up M-x gdb in Emacs.
1390 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1392 for ac_var
in $ac_precious_vars; do
1393 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1394 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1395 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1396 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1400 # Report the --help message.
1402 if test "$ac_init_help" = "long"; then
1403 # Omit some internal or obsolete options to make the list less imposing.
1404 # This message is too long to be a string in the A/UX 3.1 sh.
1406 \`configure' configures this package to adapt to many kinds of systems.
1408 Usage: $0 [OPTION]... [VAR=VALUE]...
1410 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1411 VAR=VALUE. See below for descriptions of some of the useful variables.
1413 Defaults for the options are specified in brackets.
1416 -h, --help display this help and exit
1417 --help=short display options specific to this package
1418 --help=recursive display the short help of all the included packages
1419 -V, --version display version information and exit
1420 -q, --quiet, --silent do not print \`checking...' messages
1421 --cache-file=FILE cache test results in FILE [disabled]
1422 -C, --config-cache alias for \`--cache-file=config.cache'
1423 -n, --no-create do not create output files
1424 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1426 Installation directories:
1427 --prefix=PREFIX install architecture-independent files in PREFIX
1428 [$ac_default_prefix]
1429 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1432 By default, \`make install' will install all the files in
1433 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1434 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1435 for instance \`--prefix=\$HOME'.
1437 For better control, use the options below.
1439 Fine tuning of the installation directories:
1440 --bindir=DIR user executables [EPREFIX/bin]
1441 --sbindir=DIR system admin executables [EPREFIX/sbin]
1442 --libexecdir=DIR program executables [EPREFIX/libexec]
1443 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1444 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1445 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1446 --libdir=DIR object code libraries [EPREFIX/lib]
1447 --includedir=DIR C header files [PREFIX/include]
1448 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1449 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1450 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1451 --infodir=DIR info documentation [DATAROOTDIR/info]
1452 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1453 --mandir=DIR man documentation [DATAROOTDIR/man]
1454 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1455 --htmldir=DIR html documentation [DOCDIR]
1456 --dvidir=DIR dvi documentation [DOCDIR]
1457 --pdfdir=DIR pdf documentation [DOCDIR]
1458 --psdir=DIR ps documentation [DOCDIR]
1464 --x-includes=DIR X include files are
in DIR
1465 --x-libraries=DIR X library files are
in DIR
1469 if test -n "$ac_init_help"; then
1474 --disable-option-checking ignore unrecognized
--enable/--with options
1475 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1476 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1477 --disable-darwin Disable Darwin
(Mac OS X
) support.
1478 --disable-selinux Don
't check for SELinux support.
1479 --disable-xsmp Disable XSMP session management
1480 --disable-xsmp-interact Disable XSMP interaction
1481 --enable-luainterp Include Lua interpreter.
1482 --enable-mzschemeinterp Include MzScheme interpreter.
1483 --enable-perlinterp Include Perl interpreter.
1484 --enable-eclinterp Include ECL compiler.
1485 --enable-pythoninterp Include Python interpreter.
1486 --enable-tclinterp Include Tcl interpreter.
1487 --enable-rubyinterp Include Ruby interpreter.
1488 --enable-cscope Include cscope interface.
1489 --enable-workshop Include Sun Visual Workshop support.
1490 --disable-netbeans Disable NetBeans integration support.
1491 --enable-sniff Include Sniff interface.
1492 --enable-multibyte Include multibyte editing support.
1493 --enable-hangulinput Include Hangul input support.
1494 --enable-xim Include XIM input support.
1495 --enable-fontset Include X fontset output support.
1496 --enable-gui=OPTS X11 GUI default=auto OPTS=auto/no/gtk/gtk2/gnome/gnome2/motif/athena/neXtaw/photon/carbon
1497 --enable-gtk-check If auto-select GUI, check for GTK default=yes
1498 --enable-gtk2-check If GTK GUI, check for GTK+ 2 default=yes
1499 --enable-gnome-check If GTK GUI, check for GNOME default=no
1500 --enable-motif-check If auto-select GUI, check for Motif default=yes
1501 --enable-athena-check If auto-select GUI, check for Athena default=yes
1502 --enable-nextaw-check If auto-select GUI, check for neXtaw default=yes
1503 --enable-carbon-check If auto-select GUI, check for Carbon default=yes
1504 --disable-gtktest Do not try to compile and run a test GTK program
1505 --disable-largefile omit support for large files
1506 --disable-acl Don't check
for ACL support.
1507 --disable-gpm Don
't use gpm (Linux mouse daemon).
1508 --disable-sysmouse Don't use sysmouse
(mouse
in *BSD console
).
1509 --disable-nls Don
't support NLS (gettext()).
1512 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1513 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1514 --with-mac-arch=ARCH current, intel, ppc or both
1515 --with-developer-dir=PATH use PATH as location for Xcode developer tools
1516 --with-local-dir=PATH search PATH instead of /usr/local for local libraries.
1517 --without-local-dir do not search /usr/local for local libraries.
1518 --with-vim-name=NAME what to call the Vim executable
1519 --with-ex-name=NAME what to call the Ex executable
1520 --with-view-name=NAME what to call the View executable
1521 --with-global-runtime=DIR global runtime directory in 'runtimepath
'
1522 --with-modified-by=NAME name of who modified a release version
1523 --with-features=TYPE tiny, small, normal, big or huge (default: normal)
1524 --with-compiledby=NAME name to show in :version message
1525 --with-lua-prefix=PFX Prefix where Lua is installed.
1526 --with-plthome=PLTHOME Use PLTHOME.
1527 --with-python-config-dir=PATH Python's config directory
1528 --with-tclsh=PATH
which tclsh to use
(default
: tclsh8.0
)
1529 --with-ruby-command=RUBY name of the Ruby
command (default
: ruby
)
1530 --with-x use the X Window System
1531 --with-gtk-prefix=PFX Prefix where GTK is installed
(optional
)
1532 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed
(optional
)
1533 --with-gnome-includes=DIR Specify location of GNOME headers
1534 --with-gnome-libs=DIR Specify location of GNOME libs
1535 --with-gnome Specify prefix
for GNOME files
1536 --with-motif-lib=STRING Library
for Motif
1537 --with-tlib=library terminal library to be used
1539 Some influential environment variables
:
1540 CC C compiler
command
1541 CFLAGS C compiler flags
1542 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1543 nonstandard directory
<lib dir
>
1544 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1545 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1546 you have headers
in a nonstandard directory
<include dir
>
1548 XMKMF Path to xmkmf
, Makefile generator
for X Window System
1550 Use these variables to override the choices made by
`configure' or to help
1551 it to find libraries and programs with nonstandard names/locations.
1557 if test "$ac_init_help" = "recursive"; then
1558 # If there are subdirs, report their specific --help.
1559 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1560 test -d "$ac_dir" ||
1561 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1566 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1568 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1569 # A ".." for each directory in $ac_dir_suffix.
1570 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1571 case $ac_top_builddir_sub in
1572 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1573 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1576 ac_abs_top_builddir=$ac_pwd
1577 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1578 # for backward compatibility:
1579 ac_top_builddir=$ac_top_build_prefix
1582 .) # We are building in place.
1584 ac_top_srcdir=$ac_top_builddir_sub
1585 ac_abs_top_srcdir=$ac_pwd ;;
1586 [\\/]* | ?:[\\/]* ) # Absolute name.
1587 ac_srcdir=$srcdir$ac_dir_suffix;
1588 ac_top_srcdir=$srcdir
1589 ac_abs_top_srcdir=$srcdir ;;
1591 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1592 ac_top_srcdir=$ac_top_build_prefix$srcdir
1593 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1595 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1597 cd "$ac_dir" || { ac_status=$?; continue; }
1598 # Check for guested configure.
1599 if test -f "$ac_srcdir/configure.gnu"; then
1601 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1602 elif test -f "$ac_srcdir/configure"; then
1604 $SHELL "$ac_srcdir/configure" --help=recursive
1606 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1608 cd "$ac_pwd" || { ac_status=$?; break; }
1612 test -n "$ac_init_help" && exit $ac_status
1613 if $ac_init_version; then
1616 generated by GNU Autoconf 2.63
1618 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1619 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1620 This configure script is free software; the Free Software Foundation
1621 gives unlimited permission to copy, distribute and modify it.
1625 cat >auto/config.log <<_ACEOF
1626 This file contains any messages produced by compilers while
1627 running configure, to aid debugging if configure makes a mistake.
1629 It was created by $as_me, which was
1630 generated by GNU Autoconf 2.63. Invocation command line was
1635 exec 5>>auto/config.log
1642 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1643 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1644 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1645 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1646 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1648 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1649 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1651 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1652 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1653 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1654 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1655 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1656 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1657 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1665 test -z "$as_dir" && as_dir=.
1666 $as_echo "PATH: $as_dir"
1682 # Keep a trace of the command line.
1683 # Strip out --no-create and --no-recursion so they do not pile up.
1684 # Strip out --silent because we don't want to record it for future runs.
1685 # Also quote any args containing shell meta-characters.
1686 # Make two passes to allow for proper duplicate-argument suppression.
1690 ac_must_keep_next=false
1696 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1697 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1698 | -silent | --silent | --silen | --sile | --sil)
1701 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1704 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1706 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1707 if test $ac_must_keep_next = true; then
1708 ac_must_keep_next=false # Got value, back to normal.
1711 *=* | --config-cache | -C | -disable-* | --disable-* \
1712 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1713 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1714 | -with-* | --with-* | -without-* | --without-* | --x)
1715 case "$ac_configure_args0 " in
1716 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1719 -* ) ac_must_keep_next=true ;;
1722 ac_configure_args="$ac_configure_args '$ac_arg'"
1727 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1728 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1730 # When interrupted or exit'd, cleanup temporary files, and complete
1731 # config.log. We remove comments because anyway the quotes in there
1732 # would cause problems or look ugly.
1733 # WARNING: Use '\'' to represent an apostrophe within the trap.
1734 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1735 trap 'exit_status=$?
1736 # Save into config.log some information that might help in debugging.
1741 ## ---------------- ##
1742 ## Cache variables. ##
1743 ## ---------------- ##
1746 # The following way of writing the cache mishandles newlines in values,
1748 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1749 eval ac_val=\$$ac_var
1753 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1754 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1757 _ | IFS | as_nl) ;; #(
1758 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1759 *) $as_unset $ac_var ;;
1764 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1765 *${as_nl}ac_space=\ *)
1767 "s/'\''/'\''\\\\'\'''\''/g;
1768 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1771 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1779 ## ----------------- ##
1780 ## Output variables. ##
1781 ## ----------------- ##
1784 for ac_var in $ac_subst_vars
1786 eval ac_val=\$$ac_var
1788 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1790 $as_echo "$ac_var='\''$ac_val'\''"
1794 if test -n "$ac_subst_files"; then
1796 ## ------------------- ##
1797 ## File substitutions. ##
1798 ## ------------------- ##
1801 for ac_var in $ac_subst_files
1803 eval ac_val=\$$ac_var
1805 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1807 $as_echo "$ac_var='\''$ac_val'\''"
1812 if test -s confdefs.h; then
1822 test "$ac_signal" != 0 &&
1823 $as_echo "$as_me: caught signal $ac_signal"
1824 $as_echo "$as_me: exit $exit_status"
1826 rm -f core *.core core.conftest.* &&
1827 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1830 for ac_signal in 1 2 13 15; do
1831 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1835 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1836 rm -f -r conftest* confdefs.h
1838 # Predefined preprocessor variables.
1840 cat >>confdefs.h <<_ACEOF
1841 #define PACKAGE_NAME "$PACKAGE_NAME"
1845 cat >>confdefs.h <<_ACEOF
1846 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1850 cat >>confdefs.h <<_ACEOF
1851 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1855 cat >>confdefs.h <<_ACEOF
1856 #define PACKAGE_STRING "$PACKAGE_STRING"
1860 cat >>confdefs.h <<_ACEOF
1861 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1865 # Let the site file select an alternate cache file if it wants to.
1866 # Prefer an explicitly selected file to automatically selected ones.
1869 if test -n "$CONFIG_SITE"; then
1870 ac_site_file1=$CONFIG_SITE
1871 elif test "x$prefix" != xNONE; then
1872 ac_site_file1=$prefix/share/config.site
1873 ac_site_file2=$prefix/etc/config.site
1875 ac_site_file1=$ac_default_prefix/share/config.site
1876 ac_site_file2=$ac_default_prefix/etc/config.site
1878 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1880 test "x$ac_site_file" = xNONE && continue
1881 if test -r "$ac_site_file"; then
1882 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1883 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1884 sed 's/^/| /' "$ac_site_file" >&5
1889 if test -r "$cache_file"; then
1890 # Some versions of bash will fail to source /dev/null (special
1891 # files actually), so we avoid doing that.
1892 if test -f "$cache_file"; then
1893 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1894 $as_echo "$as_me: loading cache $cache_file" >&6;}
1896 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1897 *) . "./$cache_file";;
1901 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1902 $as_echo "$as_me: creating cache $cache_file" >&6;}
1906 # Check that the precious variables saved in the cache have kept the same
1908 ac_cache_corrupted=false
1909 for ac_var in $ac_precious_vars; do
1910 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1911 eval ac_new_set=\$ac_env_${ac_var}_set
1912 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1913 eval ac_new_val=\$ac_env_${ac_var}_value
1914 case $ac_old_set,$ac_new_set in
1916 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1917 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1918 ac_cache_corrupted=: ;;
1920 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1921 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1922 ac_cache_corrupted=: ;;
1925 if test "x$ac_old_val" != "x$ac_new_val"; then
1926 # differences in whitespace do not lead to failure.
1927 ac_old_val_w=`echo x
$ac_old_val`
1928 ac_new_val_w=`echo x
$ac_new_val`
1929 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1930 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1931 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1932 ac_cache_corrupted=:
1934 { $as_echo "$as_me:$LINENO: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
1935 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1936 eval $ac_var=\$ac_old_val
1938 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1939 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
1940 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1941 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1944 # Pass precious variables to config.status.
1945 if test "$ac_new_set" = set; then
1947 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1948 *) ac_arg=$ac_var=$ac_new_val ;;
1950 case " $ac_configure_args " in
1951 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1952 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1956 if $ac_cache_corrupted; then
1957 { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
1958 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1959 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1960 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1961 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&5
1962 $as_echo "$as_me: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&2;}
1963 { (exit 1); exit 1; }; }
1983 ac_cpp='$CPP $CPPFLAGS'
1984 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1985 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1986 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1989 ac_config_headers="$ac_config_headers auto
/config.h
:config.h.
in"
1992 cat >>confdefs.h <<\_ACEOF
1996 { $as_echo "$as_me:$LINENO: checking whether
${MAKE-make} sets \$
(MAKE
)" >&5
1997 $as_echo_n "checking whether
${MAKE-make} sets \$
(MAKE
)...
" >&6; }
1999 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2000 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2001 $as_echo_n "(cached
) " >&6
2003 cat >conftest.make <<\_ACEOF
2006 @echo '@@@%%%=$(MAKE)=@@@%%%'
2008 # GNU make sometimes prints "make[1]: Entering...
", which would confuse us.
2009 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2011 eval ac_cv_prog_make_${ac_make}_set=yes;;
2013 eval ac_cv_prog_make_${ac_make}_set=no;;
2017 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2018 { $as_echo "$as_me:$LINENO: result
: yes" >&5
2019 $as_echo "yes" >&6; }
2022 { $as_echo "$as_me:$LINENO: result
: no
" >&5
2023 $as_echo "no
" >&6; }
2024 SET_MAKE="MAKE
=${MAKE-make}"
2029 ac_cpp='$CPP $CPPFLAGS'
2030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2033 if test -n "$ac_tool_prefix"; then
2034 # Extract the first word of "${ac_tool_prefix}gcc
", so it can be a program name with args.
2035 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2036 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
2037 $as_echo_n "checking
for $ac_word...
" >&6; }
2038 if test "${ac_cv_prog_CC+set}" = set; then
2039 $as_echo_n "(cached
) " >&6
2041 if test -n "$CC"; then
2042 ac_cv_prog_CC="$CC" # Let the user override the test.
2044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2048 test -z "$as_dir" && as_dir=.
2049 for ac_exec_ext in '' $ac_executable_extensions; do
2050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2051 ac_cv_prog_CC="${ac_tool_prefix}gcc
"
2052 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
2062 if test -n "$CC"; then
2063 { $as_echo "$as_me:$LINENO: result
: $CC" >&5
2064 $as_echo "$CC" >&6; }
2066 { $as_echo "$as_me:$LINENO: result
: no
" >&5
2067 $as_echo "no
" >&6; }
2072 if test -z "$ac_cv_prog_CC"; then
2074 # Extract the first word of "gcc
", so it can be a program name with args.
2075 set dummy gcc; ac_word=$2
2076 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
2077 $as_echo_n "checking
for $ac_word...
" >&6; }
2078 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2079 $as_echo_n "(cached
) " >&6
2081 if test -n "$ac_ct_CC"; then
2082 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2088 test -z "$as_dir" && as_dir=.
2089 for ac_exec_ext in '' $ac_executable_extensions; do
2090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2091 ac_cv_prog_ac_ct_CC="gcc
"
2092 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
2101 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2102 if test -n "$ac_ct_CC"; then
2103 { $as_echo "$as_me:$LINENO: result
: $ac_ct_CC" >&5
2104 $as_echo "$ac_ct_CC" >&6; }
2106 { $as_echo "$as_me:$LINENO: result
: no
" >&5
2107 $as_echo "no
" >&6; }
2110 if test "x
$ac_ct_CC" = x; then
2113 case $cross_compiling:$ac_tool_warned in
2115 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
2116 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
2117 ac_tool_warned=yes ;;
2125 if test -z "$CC"; then
2126 if test -n "$ac_tool_prefix"; then
2127 # Extract the first word of "${ac_tool_prefix}cc
", so it can be a program name with args.
2128 set dummy ${ac_tool_prefix}cc; ac_word=$2
2129 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
2130 $as_echo_n "checking
for $ac_word...
" >&6; }
2131 if test "${ac_cv_prog_CC+set}" = set; then
2132 $as_echo_n "(cached
) " >&6
2134 if test -n "$CC"; then
2135 ac_cv_prog_CC="$CC" # Let the user override the test.
2137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2141 test -z "$as_dir" && as_dir=.
2142 for ac_exec_ext in '' $ac_executable_extensions; do
2143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2144 ac_cv_prog_CC="${ac_tool_prefix}cc
"
2145 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
2155 if test -n "$CC"; then
2156 { $as_echo "$as_me:$LINENO: result
: $CC" >&5
2157 $as_echo "$CC" >&6; }
2159 { $as_echo "$as_me:$LINENO: result
: no
" >&5
2160 $as_echo "no
" >&6; }
2166 if test -z "$CC"; then
2167 # Extract the first word of "cc
", so it can be a program name with args.
2168 set dummy cc; ac_word=$2
2169 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
2170 $as_echo_n "checking
for $ac_word...
" >&6; }
2171 if test "${ac_cv_prog_CC+set}" = set; then
2172 $as_echo_n "(cached
) " >&6
2174 if test -n "$CC"; then
2175 ac_cv_prog_CC="$CC" # Let the user override the test.
2178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2182 test -z "$as_dir" && as_dir=.
2183 for ac_exec_ext in '' $ac_executable_extensions; do
2184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2185 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr
/ucb
/cc
"; then
2186 ac_prog_rejected=yes
2190 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
2197 if test $ac_prog_rejected = yes; then
2198 # We found a bogon in the path, so make sure we never use it.
2199 set dummy $ac_cv_prog_CC
2201 if test $# != 0; then
2202 # We chose a different compiler from the bogus one.
2203 # However, it has the same basename, so the bogon will be chosen
2204 # first if we set CC to just the basename; use the full file name.
2206 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@
"
2212 if test -n "$CC"; then
2213 { $as_echo "$as_me:$LINENO: result
: $CC" >&5
2214 $as_echo "$CC" >&6; }
2216 { $as_echo "$as_me:$LINENO: result
: no
" >&5
2217 $as_echo "no
" >&6; }
2222 if test -z "$CC"; then
2223 if test -n "$ac_tool_prefix"; then
2224 for ac_prog in cl.exe
2226 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2227 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2228 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
2229 $as_echo_n "checking
for $ac_word...
" >&6; }
2230 if test "${ac_cv_prog_CC+set}" = set; then
2231 $as_echo_n "(cached
) " >&6
2233 if test -n "$CC"; then
2234 ac_cv_prog_CC="$CC" # Let the user override the test.
2236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2240 test -z "$as_dir" && as_dir=.
2241 for ac_exec_ext in '' $ac_executable_extensions; do
2242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2243 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2244 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
2254 if test -n "$CC"; then
2255 { $as_echo "$as_me:$LINENO: result
: $CC" >&5
2256 $as_echo "$CC" >&6; }
2258 { $as_echo "$as_me:$LINENO: result
: no
" >&5
2259 $as_echo "no
" >&6; }
2263 test -n "$CC" && break
2266 if test -z "$CC"; then
2268 for ac_prog in cl.exe
2270 # Extract the first word of "$ac_prog", so it can be a program name with args.
2271 set dummy $ac_prog; ac_word=$2
2272 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
2273 $as_echo_n "checking
for $ac_word...
" >&6; }
2274 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2275 $as_echo_n "(cached
) " >&6
2277 if test -n "$ac_ct_CC"; then
2278 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2284 test -z "$as_dir" && as_dir=.
2285 for ac_exec_ext in '' $ac_executable_extensions; do
2286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2287 ac_cv_prog_ac_ct_CC="$ac_prog"
2288 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
2297 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2298 if test -n "$ac_ct_CC"; then
2299 { $as_echo "$as_me:$LINENO: result
: $ac_ct_CC" >&5
2300 $as_echo "$ac_ct_CC" >&6; }
2302 { $as_echo "$as_me:$LINENO: result
: no
" >&5
2303 $as_echo "no
" >&6; }
2307 test -n "$ac_ct_CC" && break
2310 if test "x
$ac_ct_CC" = x; then
2313 case $cross_compiling:$ac_tool_warned in
2315 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
2316 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
2317 ac_tool_warned=yes ;;
2326 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
2327 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2328 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2329 See \`config.log' for more details.
" >&5
2330 $as_echo "$as_me: error
: no acceptable C compiler found
in \
$PATH
2331 See \
`config.log' for more details." >&2;}
2332 { (exit 1); exit 1; }; }; }
2334 # Provide some information about the compiler.
2335 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2338 { (ac_try="$ac_compiler --version >&5"
2340 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2341 *) ac_try_echo
=$ac_try;;
2343 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
2344 $as_echo "$ac_try_echo") >&5
2345 (eval "$ac_compiler --version >&5") 2>&5
2347 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2348 (exit $ac_status); }
2349 { (ac_try
="$ac_compiler -v >&5"
2351 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2352 *) ac_try_echo=$ac_try;;
2354 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2355 $as_echo "$ac_try_echo") >&5
2356 (eval "$ac_compiler -v >&5") 2>&5
2358 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2359 (exit $ac_status); }
2360 { (ac_try="$ac_compiler -V >&5"
2362 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2363 *) ac_try_echo
=$ac_try;;
2365 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
2366 $as_echo "$ac_try_echo") >&5
2367 (eval "$ac_compiler -V >&5") 2>&5
2369 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2370 (exit $ac_status); }
2372 cat >conftest.
$ac_ext <<_ACEOF
2375 cat confdefs.h
>>conftest.
$ac_ext
2376 cat >>conftest.
$ac_ext <<_ACEOF
2377 /* end confdefs.h. */
2387 ac_clean_files_save
=$ac_clean_files
2388 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2389 # Try to create an executable without -o first, disregard a.out.
2390 # It will help us diagnose broken compilers, and finding out an intuition
2392 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2393 $as_echo_n "checking for C compiler default output file name... " >&6; }
2394 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2396 # The possible output files:
2397 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2400 for ac_file
in $ac_files
2403 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2404 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
2409 if { (ac_try
="$ac_link_default"
2411 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2412 *) ac_try_echo=$ac_try;;
2414 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2415 $as_echo "$ac_try_echo") >&5
2416 (eval "$ac_link_default") 2>&5
2418 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2419 (exit $ac_status); }; then
2420 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
2421 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
2422 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2423 # so that the user can short-circuit this test for compilers unknown to
2425 for ac_file in $ac_files ''
2427 test -f "$ac_file" || continue
2429 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2432 # We found the default executable, but exeext='' is most
2436 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2438 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2440 # We set ac_cv_exeext here because the later test for it is not
2441 # safe: cross compilers may not add the suffix if given an `-o'
2442 # argument, so we may need to know it at that point already.
2443 # Even if this section looks crufty: it has the advantage of
2450 test "$ac_cv_exeext" = no && ac_cv_exeext=
2456 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2457 $as_echo "$ac_file" >&6; }
2458 if test -z "$ac_file"; then
2459 $as_echo "$as_me: failed program was:" >&5
2460 sed 's
/^
/|
/' conftest.$ac_ext >&5
2462 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2463 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
2464 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2465 See \`config.log
' for more details." >&5
2466 $as_echo "$as_me: error: C compiler cannot create executables
2467 See \`config.log' for more details.
" >&2;}
2468 { (exit 77); exit 77; }; }; }
2471 ac_exeext=$ac_cv_exeext
2473 # Check that the compiler produces executables we can run. If not, either
2474 # the compiler is broken, or we cross compile.
2475 { $as_echo "$as_me:$LINENO: checking whether the C compiler works
" >&5
2476 $as_echo_n "checking whether the C compiler works...
" >&6; }
2477 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2478 # If not cross compiling, check that we can run a simple program.
2479 if test "$cross_compiling" != yes; then
2480 if { ac_try='./$ac_file'
2481 { (case "(($ac_try" in
2482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2483 *) ac_try_echo=$ac_try;;
2485 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
2486 $as_echo "$ac_try_echo") >&5
2487 (eval "$ac_try") 2>&5
2489 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2490 (exit $ac_status); }; }; then
2493 if test "$cross_compiling" = maybe; then
2496 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
2497 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2498 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2499 If you meant to cross compile, use \`--host'.
2500 See \
`config.log' for more details." >&5
2501 $as_echo "$as_me: error: cannot run C compiled programs.
2502 If you meant to cross compile, use \`--host'.
2503 See \`config.log' for more details.
" >&2;}
2504 { (exit 1); exit 1; }; }; }
2508 { $as_echo "$as_me:$LINENO: result
: yes" >&5
2509 $as_echo "yes" >&6; }
2511 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2512 ac_clean_files=$ac_clean_files_save
2513 # Check that the compiler produces executables we can run. If not, either
2514 # the compiler is broken, or we cross compile.
2515 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling
" >&5
2516 $as_echo_n "checking whether we are cross compiling...
" >&6; }
2517 { $as_echo "$as_me:$LINENO: result
: $cross_compiling" >&5
2518 $as_echo "$cross_compiling" >&6; }
2520 { $as_echo "$as_me:$LINENO: checking
for suffix of executables
" >&5
2521 $as_echo_n "checking
for suffix of executables...
" >&6; }
2522 if { (ac_try="$ac_link"
2524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2525 *) ac_try_echo=$ac_try;;
2527 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
2528 $as_echo "$ac_try_echo") >&5
2529 (eval "$ac_link") 2>&5
2531 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2532 (exit $ac_status); }; then
2533 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2534 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2535 # work properly (i.e., refer to `conftest.exe'), while it won't with
2537 for ac_file in conftest.exe conftest conftest.*; do
2538 test -f "$ac_file" || continue
2540 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2541 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2547 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
2548 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2549 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2550 See \`config.log' for more details.
" >&5
2551 $as_echo "$as_me: error
: cannot compute suffix of executables
: cannot compile and link
2552 See \
`config.log' for more details." >&2;}
2553 { (exit 1); exit 1; }; }; }
2556 rm -f conftest$ac_cv_exeext
2557 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2558 $as_echo "$ac_cv_exeext" >&6; }
2560 rm -f conftest.$ac_ext
2561 EXEEXT=$ac_cv_exeext
2563 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2564 $as_echo_n "checking for suffix of object files... " >&6; }
2565 if test "${ac_cv_objext+set}" = set; then
2566 $as_echo_n "(cached) " >&6
2568 cat >conftest.$ac_ext <<_ACEOF
2571 cat confdefs.h >>conftest.$ac_ext
2572 cat >>conftest.$ac_ext <<_ACEOF
2573 /* end confdefs.h. */
2583 rm -f conftest.o conftest.obj
2584 if { (ac_try="$ac_compile"
2586 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2587 *) ac_try_echo
=$ac_try;;
2589 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
2590 $as_echo "$ac_try_echo") >&5
2591 (eval "$ac_compile") 2>&5
2593 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594 (exit $ac_status); }; then
2595 for ac_file
in conftest.o conftest.obj conftest.
*; do
2596 test -f "$ac_file" ||
continue;
2598 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM
) ;;
2599 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2604 $as_echo "$as_me: failed program was:" >&5
2605 sed 's/^/| /' conftest.
$ac_ext >&5
2607 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2608 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2609 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2610 See \`config.log' for more details." >&5
2611 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2612 See \`config.log' for more details." >&2;}
2613 { (exit 1); exit 1; }; }; }
2616 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2618 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2619 $as_echo "$ac_cv_objext" >&6; }
2620 OBJEXT
=$ac_cv_objext
2622 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2623 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2624 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2625 $as_echo_n "(cached) " >&6
2627 cat >conftest.
$ac_ext <<_ACEOF
2630 cat confdefs.h
>>conftest.
$ac_ext
2631 cat >>conftest.
$ac_ext <<_ACEOF
2632 /* end confdefs.h. */
2645 rm -f conftest.
$ac_objext
2646 if { (ac_try
="$ac_compile"
2648 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2649 *) ac_try_echo=$ac_try;;
2651 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2652 $as_echo "$ac_try_echo") >&5
2653 (eval "$ac_compile") 2>conftest.er1
2655 grep -v '^ *+' conftest.er1 >conftest.err
2657 cat conftest.err >&5
2658 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2659 (exit $ac_status); } && {
2660 test -z "$ac_c_werror_flag" ||
2661 test ! -s conftest.err
2662 } && test -s conftest.$ac_objext; then
2665 $as_echo "$as_me: failed program was:" >&5
2666 sed 's/^/| /' conftest.$ac_ext >&5
2671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2672 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2675 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2676 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2677 if test $ac_compiler_gnu = yes; then
2682 ac_test_CFLAGS=${CFLAGS+set}
2683 ac_save_CFLAGS=$CFLAGS
2684 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2685 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2686 if test "${ac_cv_prog_cc_g+set}" = set; then
2687 $as_echo_n "(cached) " >&6
2689 ac_save_c_werror_flag=$ac_c_werror_flag
2690 ac_c_werror_flag=yes
2693 cat >conftest.$ac_ext <<_ACEOF
2696 cat confdefs.h >>conftest.$ac_ext
2697 cat >>conftest.$ac_ext <<_ACEOF
2698 /* end confdefs.h. */
2708 rm -f conftest.$ac_objext
2709 if { (ac_try="$ac_compile"
2711 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2712 *) ac_try_echo
=$ac_try;;
2714 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
2715 $as_echo "$ac_try_echo") >&5
2716 (eval "$ac_compile") 2>conftest.er1
2718 grep -v '^ *+' conftest.er1
>conftest.err
2720 cat conftest.err
>&5
2721 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2722 (exit $ac_status); } && {
2723 test -z "$ac_c_werror_flag" ||
2724 test ! -s conftest.err
2725 } && test -s conftest.
$ac_objext; then
2728 $as_echo "$as_me: failed program was:" >&5
2729 sed 's/^/| /' conftest.
$ac_ext >&5
2732 cat >conftest.
$ac_ext <<_ACEOF
2735 cat confdefs.h
>>conftest.
$ac_ext
2736 cat >>conftest.
$ac_ext <<_ACEOF
2737 /* end confdefs.h. */
2747 rm -f conftest.
$ac_objext
2748 if { (ac_try
="$ac_compile"
2750 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2751 *) ac_try_echo=$ac_try;;
2753 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2754 $as_echo "$ac_try_echo") >&5
2755 (eval "$ac_compile") 2>conftest.er1
2757 grep -v '^ *+' conftest.er1 >conftest.err
2759 cat conftest.err >&5
2760 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2761 (exit $ac_status); } && {
2762 test -z "$ac_c_werror_flag" ||
2763 test ! -s conftest.err
2764 } && test -s conftest.$ac_objext; then
2767 $as_echo "$as_me: failed program was:" >&5
2768 sed 's/^/| /' conftest.$ac_ext >&5
2770 ac_c_werror_flag=$ac_save_c_werror_flag
2772 cat >conftest.$ac_ext <<_ACEOF
2775 cat confdefs.h >>conftest.$ac_ext
2776 cat >>conftest.$ac_ext <<_ACEOF
2777 /* end confdefs.h. */
2787 rm -f conftest.$ac_objext
2788 if { (ac_try="$ac_compile"
2790 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2791 *) ac_try_echo
=$ac_try;;
2793 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
2794 $as_echo "$ac_try_echo") >&5
2795 (eval "$ac_compile") 2>conftest.er1
2797 grep -v '^ *+' conftest.er1
>conftest.err
2799 cat conftest.err
>&5
2800 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801 (exit $ac_status); } && {
2802 test -z "$ac_c_werror_flag" ||
2803 test ! -s conftest.err
2804 } && test -s conftest.
$ac_objext; then
2807 $as_echo "$as_me: failed program was:" >&5
2808 sed 's/^/| /' conftest.
$ac_ext >&5
2813 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2816 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2819 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2820 ac_c_werror_flag
=$ac_save_c_werror_flag
2822 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2823 $as_echo "$ac_cv_prog_cc_g" >&6; }
2824 if test "$ac_test_CFLAGS" = set; then
2825 CFLAGS
=$ac_save_CFLAGS
2826 elif test $ac_cv_prog_cc_g = yes; then
2827 if test "$GCC" = yes; then
2833 if test "$GCC" = yes; then
2839 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2840 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2841 if test "${ac_cv_prog_cc_c89+set}" = set; then
2842 $as_echo_n "(cached) " >&6
2844 ac_cv_prog_cc_c89
=no
2846 cat >conftest.
$ac_ext <<_ACEOF
2849 cat confdefs.h
>>conftest.
$ac_ext
2850 cat >>conftest.
$ac_ext <<_ACEOF
2851 /* end confdefs.h. */
2854 #include <sys/types.h>
2855 #include <sys/stat.h>
2856 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2857 struct buf { int x; };
2858 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2859 static char *e (p, i)
2865 static char *f (char * (*g) (char **, int), char **p, ...)
2870 s = g (p, va_arg (v,int));
2875 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2876 function prototypes and stuff, but not '\xHH' hex character constants.
2877 These don't provoke an error unfortunately, instead are silently treated
2878 as 'x'. The following induces an error, until -std is added to get
2879 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2880 array size at least. It's necessary to write '\x00'==0 to get something
2881 that's true only with -std. */
2882 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2884 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2885 inside strings and character constants. */
2887 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2889 int test (int i, double x);
2890 struct s1 {int (*f) (int a);};
2891 struct s2 {int (*f) (double a);};
2892 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2898 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2903 for ac_arg
in '' -qlanglvl=extc89
-qlanglvl=ansi
-std \
2904 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2906 CC
="$ac_save_CC $ac_arg"
2907 rm -f conftest.
$ac_objext
2908 if { (ac_try
="$ac_compile"
2910 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2911 *) ac_try_echo=$ac_try;;
2913 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2914 $as_echo "$ac_try_echo") >&5
2915 (eval "$ac_compile") 2>conftest.er1
2917 grep -v '^ *+' conftest.er1 >conftest.err
2919 cat conftest.err >&5
2920 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921 (exit $ac_status); } && {
2922 test -z "$ac_c_werror_flag" ||
2923 test ! -s conftest.err
2924 } && test -s conftest.$ac_objext; then
2925 ac_cv_prog_cc_c89=$ac_arg
2927 $as_echo "$as_me: failed program was:" >&5
2928 sed 's/^/| /' conftest.$ac_ext >&5
2933 rm -f core conftest.err conftest.$ac_objext
2934 test "x$ac_cv_prog_cc_c89" != "xno" && break
2936 rm -f conftest.$ac_ext
2941 case "x$ac_cv_prog_cc_c89" in
2943 { $as_echo "$as_me:$LINENO: result: none needed" >&5
2944 $as_echo "none needed" >&6; } ;;
2946 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
2947 $as_echo "unsupported" >&6; } ;;
2949 CC="$CC $ac_cv_prog_cc_c89"
2950 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2951 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2956 ac_cpp='$CPP $CPPFLAGS'
2957 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2958 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2959 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2961 ac_cpp='$CPP $CPPFLAGS'
2962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2965 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2966 $as_echo_n "checking how to run the C preprocessor... " >&6; }
2967 # On Suns, sometimes $CPP names a directory.
2968 if test -n "$CPP" && test -d "$CPP"; then
2971 if test -z "$CPP"; then
2972 if test "${ac_cv_prog_CPP+set}" = set; then
2973 $as_echo_n "(cached) " >&6
2975 # Double quotes because CPP needs to be expanded
2976 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2979 for ac_c_preproc_warn_flag in '' yes
2981 # Use a header file that comes with gcc, so configuring glibc
2982 # with a fresh cross-compiler works.
2983 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2984 # <limits.h> exists even on freestanding compilers.
2985 # On the NeXT, cc -E runs the code through the compiler's parser,
2986 # not just through cpp. "Syntax error" is here to catch this case.
2987 cat >conftest.$ac_ext <<_ACEOF
2990 cat confdefs.h >>conftest.$ac_ext
2991 cat >>conftest.$ac_ext <<_ACEOF
2992 /* end confdefs.h. */
2994 # include <limits.h>
2996 # include <assert.h>
3000 if { (ac_try="$ac_cpp conftest.$ac_ext"
3002 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3003 *) ac_try_echo
=$ac_try;;
3005 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3006 $as_echo "$ac_try_echo") >&5
3007 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3009 grep -v '^ *+' conftest.er1
>conftest.err
3011 cat conftest.err
>&5
3012 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013 (exit $ac_status); } >/dev
/null
&& {
3014 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3015 test ! -s conftest.err
3019 $as_echo "$as_me: failed program was:" >&5
3020 sed 's/^/| /' conftest.
$ac_ext >&5
3022 # Broken: fails on valid input.
3026 rm -f conftest.err conftest.
$ac_ext
3028 # OK, works on sane cases. Now check whether nonexistent headers
3029 # can be detected and how.
3030 cat >conftest.
$ac_ext <<_ACEOF
3033 cat confdefs.h
>>conftest.
$ac_ext
3034 cat >>conftest.
$ac_ext <<_ACEOF
3035 /* end confdefs.h. */
3036 #include <ac_nonexistent.h>
3038 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3040 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3041 *) ac_try_echo=$ac_try;;
3043 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3044 $as_echo "$ac_try_echo") >&5
3045 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3047 grep -v '^ *+' conftest.er1 >conftest.err
3049 cat conftest.err >&5
3050 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051 (exit $ac_status); } >/dev/null && {
3052 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3053 test ! -s conftest.err
3055 # Broken: success on invalid input.
3058 $as_echo "$as_me: failed program was:" >&5
3059 sed 's/^/| /' conftest.$ac_ext >&5
3061 # Passes both tests.
3066 rm -f conftest.err conftest.$ac_ext
3069 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3070 rm -f conftest.err conftest.
$ac_ext
3071 if $ac_preproc_ok; then
3083 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3084 $as_echo "$CPP" >&6; }
3086 for ac_c_preproc_warn_flag
in '' yes
3088 # Use a header file that comes with gcc, so configuring glibc
3089 # with a fresh cross-compiler works.
3090 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3091 # <limits.h> exists even on freestanding compilers.
3092 # On the NeXT, cc -E runs the code through the compiler's parser,
3093 # not just through cpp. "Syntax error" is here to catch this case.
3094 cat >conftest.
$ac_ext <<_ACEOF
3097 cat confdefs.h
>>conftest.
$ac_ext
3098 cat >>conftest.
$ac_ext <<_ACEOF
3099 /* end confdefs.h. */
3101 # include <limits.h>
3103 # include <assert.h>
3107 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3109 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3110 *) ac_try_echo=$ac_try;;
3112 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3113 $as_echo "$ac_try_echo") >&5
3114 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3116 grep -v '^ *+' conftest.er1 >conftest.err
3118 cat conftest.err >&5
3119 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3120 (exit $ac_status); } >/dev/null && {
3121 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3122 test ! -s conftest.err
3126 $as_echo "$as_me: failed program was:" >&5
3127 sed 's/^/| /' conftest.$ac_ext >&5
3129 # Broken: fails on valid input.
3133 rm -f conftest.err conftest.$ac_ext
3135 # OK, works on sane cases. Now check whether nonexistent headers
3136 # can be detected and how.
3137 cat >conftest.$ac_ext <<_ACEOF
3140 cat confdefs.h >>conftest.$ac_ext
3141 cat >>conftest.$ac_ext <<_ACEOF
3142 /* end confdefs.h. */
3143 #include <ac_nonexistent.h>
3145 if { (ac_try="$ac_cpp conftest.$ac_ext"
3147 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3148 *) ac_try_echo
=$ac_try;;
3150 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3151 $as_echo "$ac_try_echo") >&5
3152 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3154 grep -v '^ *+' conftest.er1
>conftest.err
3156 cat conftest.err
>&5
3157 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158 (exit $ac_status); } >/dev
/null
&& {
3159 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3160 test ! -s conftest.err
3162 # Broken: success on invalid input.
3165 $as_echo "$as_me: failed program was:" >&5
3166 sed 's/^/| /' conftest.
$ac_ext >&5
3168 # Passes both tests.
3173 rm -f conftest.err conftest.
$ac_ext
3176 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3177 rm -f conftest.err conftest.
$ac_ext
3178 if $ac_preproc_ok; then
3181 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3182 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3183 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3184 See \`config.log' for more details." >&5
3185 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3186 See \`config.log' for more details." >&2;}
3187 { (exit 1); exit 1; }; }; }
3191 ac_cpp
='$CPP $CPPFLAGS'
3192 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3193 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3194 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3197 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3198 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3199 if test "${ac_cv_path_GREP+set}" = set; then
3200 $as_echo_n "(cached) " >&6
3202 if test -z "$GREP"; then
3203 ac_path_GREP_found
=false
3204 # Loop through the user's path and test for each of PROGNAME-LIST
3205 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3206 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3209 test -z "$as_dir" && as_dir
=.
3210 for ac_prog
in grep ggrep
; do
3211 for ac_exec_ext
in '' $ac_executable_extensions; do
3212 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3213 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3214 # Check for GNU ac_path_GREP and select it if it is found.
3215 # Check for GNU $ac_path_GREP
3216 case `"$ac_path_GREP" --version 2>&1` in
3218 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3221 $as_echo_n 0123456789 >"conftest.in"
3224 cat "conftest.in" "conftest.in" >"conftest.tmp"
3225 mv "conftest.tmp" "conftest.in"
3226 cp "conftest.in" "conftest.nl"
3227 $as_echo 'GREP' >> "conftest.nl"
3228 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3229 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3230 ac_count
=`expr $ac_count + 1`
3231 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3232 # Best one so far, save it but keep looking for a better one
3233 ac_cv_path_GREP
="$ac_path_GREP"
3234 ac_path_GREP_max
=$ac_count
3236 # 10*(2^10) chars as input seems more than enough
3237 test $ac_count -gt 10 && break
3239 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3242 $ac_path_GREP_found && break 3
3247 if test -z "$ac_cv_path_GREP"; then
3248 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3249 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3250 { (exit 1); exit 1; }; }
3253 ac_cv_path_GREP
=$GREP
3257 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3258 $as_echo "$ac_cv_path_GREP" >&6; }
3259 GREP
="$ac_cv_path_GREP"
3262 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3263 $as_echo_n "checking for egrep... " >&6; }
3264 if test "${ac_cv_path_EGREP+set}" = set; then
3265 $as_echo_n "(cached) " >&6
3267 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3268 then ac_cv_path_EGREP
="$GREP -E"
3270 if test -z "$EGREP"; then
3271 ac_path_EGREP_found
=false
3272 # Loop through the user's path and test for each of PROGNAME-LIST
3273 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3274 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3277 test -z "$as_dir" && as_dir
=.
3278 for ac_prog
in egrep; do
3279 for ac_exec_ext
in '' $ac_executable_extensions; do
3280 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3281 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3282 # Check for GNU ac_path_EGREP and select it if it is found.
3283 # Check for GNU $ac_path_EGREP
3284 case `"$ac_path_EGREP" --version 2>&1` in
3286 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3289 $as_echo_n 0123456789 >"conftest.in"
3292 cat "conftest.in" "conftest.in" >"conftest.tmp"
3293 mv "conftest.tmp" "conftest.in"
3294 cp "conftest.in" "conftest.nl"
3295 $as_echo 'EGREP' >> "conftest.nl"
3296 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3297 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3298 ac_count
=`expr $ac_count + 1`
3299 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3300 # Best one so far, save it but keep looking for a better one
3301 ac_cv_path_EGREP
="$ac_path_EGREP"
3302 ac_path_EGREP_max
=$ac_count
3304 # 10*(2^10) chars as input seems more than enough
3305 test $ac_count -gt 10 && break
3307 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3310 $ac_path_EGREP_found && break 3
3315 if test -z "$ac_cv_path_EGREP"; then
3316 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3317 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3318 { (exit 1); exit 1; }; }
3321 ac_cv_path_EGREP
=$EGREP
3326 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3327 $as_echo "$ac_cv_path_EGREP" >&6; }
3328 EGREP
="$ac_cv_path_EGREP"
3331 cat >conftest.
$ac_ext <<_ACEOF
3334 cat confdefs.h
>>conftest.
$ac_ext
3335 cat >>conftest.
$ac_ext <<_ACEOF
3336 /* end confdefs.h. */
3340 { $as_echo "$as_me:$LINENO: checking for library containing strerror" >&5
3341 $as_echo_n "checking for library containing strerror... " >&6; }
3342 if test "${ac_cv_search_strerror+set}" = set; then
3343 $as_echo_n "(cached) " >&6
3345 ac_func_search_save_LIBS
=$LIBS
3346 cat >conftest.
$ac_ext <<_ACEOF
3349 cat confdefs.h
>>conftest.
$ac_ext
3350 cat >>conftest.
$ac_ext <<_ACEOF
3351 /* end confdefs.h. */
3353 /* Override any GCC internal prototype to avoid an error.
3354 Use char because int might match the return type of a GCC
3355 builtin and then its argument prototype would still apply. */
3368 for ac_lib
in '' cposix
; do
3369 if test -z "$ac_lib"; then
3370 ac_res
="none required"
3373 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
3375 rm -f conftest.
$ac_objext conftest
$ac_exeext
3376 if { (ac_try
="$ac_link"
3378 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3379 *) ac_try_echo=$ac_try;;
3381 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3382 $as_echo "$ac_try_echo") >&5
3383 (eval "$ac_link") 2>conftest.er1
3385 grep -v '^ *+' conftest.er1 >conftest.err
3387 cat conftest.err >&5
3388 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389 (exit $ac_status); } && {
3390 test -z "$ac_c_werror_flag" ||
3391 test ! -s conftest.err
3392 } && test -s conftest$ac_exeext && {
3393 test "$cross_compiling" = yes ||
3394 $as_test_x conftest$ac_exeext
3396 ac_cv_search_strerror=$ac_res
3398 $as_echo "$as_me: failed program was:" >&5
3399 sed 's/^/| /' conftest.$ac_ext >&5
3404 rm -rf conftest.dSYM
3405 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3407 if test "${ac_cv_search_strerror+set}" = set; then
3411 if test "${ac_cv_search_strerror+set}" = set; then
3414 ac_cv_search_strerror=no
3417 LIBS=$ac_func_search_save_LIBS
3419 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3420 $as_echo "$ac_cv_search_strerror" >&6; }
3421 ac_res=$ac_cv_search_strerror
3422 if test "$ac_res" != no; then
3423 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3426 for ac_prog in gawk mawk nawk awk
3428 # Extract the first word of "$ac_prog", so it can be a program name with args.
3429 set dummy $ac_prog; ac_word=$2
3430 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3431 $as_echo_n "checking for $ac_word... " >&6; }
3432 if test "${ac_cv_prog_AWK+set}" = set; then
3433 $as_echo_n "(cached) " >&6
3435 if test -n "$AWK"; then
3436 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3442 test -z "$as_dir" && as_dir=.
3443 for ac_exec_ext in '' $ac_executable_extensions; do
3444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3445 ac_cv_prog_AWK="$ac_prog"
3446 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3456 if test -n "$AWK"; then
3457 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
3458 $as_echo "$AWK" >&6; }
3460 { $as_echo "$as_me:$LINENO: result: no" >&5
3461 $as_echo "no" >&6; }
3465 test -n "$AWK" && break
3468 # Extract the first word of "strip", so it can be a program name with args.
3469 set dummy strip; ac_word=$2
3470 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3471 $as_echo_n "checking for $ac_word... " >&6; }
3472 if test "${ac_cv_prog_STRIP+set}" = set; then
3473 $as_echo_n "(cached) " >&6
3475 if test -n "$STRIP"; then
3476 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3482 test -z "$as_dir" && as_dir=.
3483 for ac_exec_ext in '' $ac_executable_extensions; do
3484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3485 ac_cv_prog_STRIP="strip"
3486 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3493 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
3496 STRIP=$ac_cv_prog_STRIP
3497 if test -n "$STRIP"; then
3498 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
3499 $as_echo "$STRIP" >&6; }
3501 { $as_echo "$as_me:$LINENO: result: no" >&5
3502 $as_echo "no" >&6; }
3509 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3510 $as_echo_n "checking for ANSI C header files... " >&6; }
3511 if test "${ac_cv_header_stdc+set}" = set; then
3512 $as_echo_n "(cached) " >&6
3514 cat >conftest.$ac_ext <<_ACEOF
3517 cat confdefs.h >>conftest.$ac_ext
3518 cat >>conftest.$ac_ext <<_ACEOF
3519 /* end confdefs.h. */
3533 rm -f conftest.$ac_objext
3534 if { (ac_try="$ac_compile"
3536 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3537 *) ac_try_echo
=$ac_try;;
3539 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3540 $as_echo "$ac_try_echo") >&5
3541 (eval "$ac_compile") 2>conftest.er1
3543 grep -v '^ *+' conftest.er1
>conftest.err
3545 cat conftest.err
>&5
3546 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3547 (exit $ac_status); } && {
3548 test -z "$ac_c_werror_flag" ||
3549 test ! -s conftest.err
3550 } && test -s conftest.
$ac_objext; then
3551 ac_cv_header_stdc
=yes
3553 $as_echo "$as_me: failed program was:" >&5
3554 sed 's/^/| /' conftest.
$ac_ext >&5
3556 ac_cv_header_stdc
=no
3559 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3561 if test $ac_cv_header_stdc = yes; then
3562 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3563 cat >conftest.
$ac_ext <<_ACEOF
3566 cat confdefs.h
>>conftest.
$ac_ext
3567 cat >>conftest.
$ac_ext <<_ACEOF
3568 /* end confdefs.h. */
3572 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3573 $EGREP "memchr" >/dev
/null
2>&1; then
3576 ac_cv_header_stdc
=no
3582 if test $ac_cv_header_stdc = yes; then
3583 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3584 cat >conftest.
$ac_ext <<_ACEOF
3587 cat confdefs.h
>>conftest.
$ac_ext
3588 cat >>conftest.
$ac_ext <<_ACEOF
3589 /* end confdefs.h. */
3593 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3594 $EGREP "free" >/dev
/null
2>&1; then
3597 ac_cv_header_stdc
=no
3603 if test $ac_cv_header_stdc = yes; then
3604 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3605 if test "$cross_compiling" = yes; then
3608 cat >conftest.
$ac_ext <<_ACEOF
3611 cat confdefs.h
>>conftest.
$ac_ext
3612 cat >>conftest.
$ac_ext <<_ACEOF
3613 /* end confdefs.h. */
3616 #if ((' ' & 0x0FF) == 0x020)
3617 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3618 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3620 # define ISLOWER(c) \
3621 (('a' <= (c) && (c) <= 'i') \
3622 || ('j' <= (c) && (c) <= 'r') \
3623 || ('s' <= (c) && (c) <= 'z'))
3624 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3627 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3632 for (i = 0; i < 256; i++)
3633 if (XOR (islower (i), ISLOWER (i))
3634 || toupper (i) != TOUPPER (i))
3639 rm -f conftest
$ac_exeext
3640 if { (ac_try
="$ac_link"
3642 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3643 *) ac_try_echo=$ac_try;;
3645 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3646 $as_echo "$ac_try_echo") >&5
3647 (eval "$ac_link") 2>&5
3649 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3650 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3651 { (case "(($ac_try" in
3652 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3653 *) ac_try_echo
=$ac_try;;
3655 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3656 $as_echo "$ac_try_echo") >&5
3657 (eval "$ac_try") 2>&5
3659 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3660 (exit $ac_status); }; }; then
3663 $as_echo "$as_me: program exited with status $ac_status" >&5
3664 $as_echo "$as_me: failed program was:" >&5
3665 sed 's/^/| /' conftest.
$ac_ext >&5
3668 ac_cv_header_stdc
=no
3670 rm -rf conftest.dSYM
3671 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3677 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3678 $as_echo "$ac_cv_header_stdc" >&6; }
3679 if test $ac_cv_header_stdc = yes; then
3681 cat >>confdefs.h
<<\_ACEOF
3682 #define STDC_HEADERS 1
3687 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
3688 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
3689 if test "${ac_cv_header_sys_wait_h+set}" = set; then
3690 $as_echo_n "(cached) " >&6
3692 cat >conftest.
$ac_ext <<_ACEOF
3695 cat confdefs.h
>>conftest.
$ac_ext
3696 cat >>conftest.
$ac_ext <<_ACEOF
3697 /* end confdefs.h. */
3698 #include <sys/types.h>
3699 #include <sys/wait.h>
3701 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
3704 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3712 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3717 rm -f conftest.
$ac_objext
3718 if { (ac_try
="$ac_compile"
3720 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3721 *) ac_try_echo=$ac_try;;
3723 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3724 $as_echo "$ac_try_echo") >&5
3725 (eval "$ac_compile") 2>conftest.er1
3727 grep -v '^ *+' conftest.er1 >conftest.err
3729 cat conftest.err >&5
3730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3731 (exit $ac_status); } && {
3732 test -z "$ac_c_werror_flag" ||
3733 test ! -s conftest.err
3734 } && test -s conftest.$ac_objext; then
3735 ac_cv_header_sys_wait_h=yes
3737 $as_echo "$as_me: failed program was:" >&5
3738 sed 's/^/| /' conftest.$ac_ext >&5
3740 ac_cv_header_sys_wait_h=no
3743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3745 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
3746 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
3747 if test $ac_cv_header_sys_wait_h = yes; then
3749 cat >>confdefs.h <<\_ACEOF
3750 #define HAVE_SYS_WAIT_H 1
3756 if test -z "$CFLAGS"; then
3758 test "$GCC" = yes && CFLAGS="-O2 -fno-strength-reduce -Wall"
3760 if test "$GCC" = yes; then
3761 gccversion=`"$CC" -dumpversion`
3762 if test "x$gccversion" = "x"; then
3763 gccversion=`"$CC" --version |
sed -e '2,$d' -e 's/darwin.//' -e 's/^[^0-9]*\([0-9]\.[0-9.]*\).*$/\1/g'`
3765 if test "$gccversion" = "3.0.1" -o "$gccversion" = "3.0.2" -o "$gccversion" = "4.0.1"; then
3766 echo 'GCC [34].0.[12] has a bug in the optimizer, disabling "-O#"'
3767 CFLAGS=`echo "$CFLAGS" |
sed 's/-O[23456789]/-O/'`
3769 if test "$gccversion" = "3.1" -o "$gccversion" = "3.2" -o "$gccversion" = "3.2.1" && `echo "$CFLAGS" |
grep -v fno-strength-reduce
>/dev
/null
`; then
3770 echo 'GCC 3.1 and 3.2 have a bug in the optimizer, adding "-fno-strength-reduce"'
3771 CFLAGS="$CFLAGS -fno-strength-reduce"
3776 if test "$cross_compiling" = yes; then
3777 { $as_echo "$as_me:$LINENO: result: cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&5
3778 $as_echo "cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&6; }
3781 test "$GCC" = yes && CPP_MM=M;
3783 if test -f ./toolcheck; then
3784 { $as_echo "$as_me:$LINENO: checking for buggy tools..." >&5
3785 $as_echo "$as_me: checking for buggy tools..." >&6;}
3789 OS_EXTRA_SRC=""; OS_EXTRA_OBJ=""
3791 { $as_echo "$as_me:$LINENO: checking for BeOS" >&5
3792 $as_echo_n "checking for BeOS... " >&6; }
3794 BeOS) OS_EXTRA_SRC=os_beos.c; OS_EXTRA_OBJ=objects/os_beos.o
3795 BEOS=yes; { $as_echo "$as_me:$LINENO: result: yes" >&5
3796 $as_echo "yes" >&6; };;
3797 *) BEOS=no; { $as_echo "$as_me:$LINENO: result: no" >&5
3798 $as_echo "no" >&6; };;
3801 { $as_echo "$as_me:$LINENO: checking for QNX" >&5
3802 $as_echo_n "checking for QNX... " >&6; }
3804 QNX) OS_EXTRA_SRC=os_qnx.c; OS_EXTRA_OBJ=objects/os_qnx.o
3805 test -z "$with_x" && with_x=no
3806 QNX=yes; { $as_echo "$as_me:$LINENO: result: yes" >&5
3807 $as_echo "yes" >&6; };;
3808 *) QNX=no; { $as_echo "$as_me:$LINENO: result: no" >&5
3809 $as_echo "no" >&6; };;
3812 { $as_echo "$as_me:$LINENO: checking for Darwin (Mac OS X)" >&5
3813 $as_echo_n "checking for Darwin (Mac OS X)... " >&6; }
3814 if test "`(uname
) 2>/dev
/null
`" = Darwin; then
3815 { $as_echo "$as_me:$LINENO: result: yes" >&5
3816 $as_echo "yes" >&6; }
3818 { $as_echo "$as_me:$LINENO: checking --disable-darwin argument" >&5
3819 $as_echo_n "checking --disable-darwin argument... " >&6; }
3820 # Check whether --enable-darwin was given.
3821 if test "${enable_darwin+set}" = set; then
3822 enableval=$enable_darwin;
3827 if test "$enable_darwin" = "yes"; then
3828 { $as_echo "$as_me:$LINENO: result: no" >&5
3829 $as_echo "no" >&6; }
3830 { $as_echo "$as_me:$LINENO: checking if Darwin files are there" >&5
3831 $as_echo_n "checking if Darwin files are there... " >&6; }
3832 if test -f os_macosx.c; then
3833 { $as_echo "$as_me:$LINENO: result: yes" >&5
3834 $as_echo "yes" >&6; }
3836 { $as_echo "$as_me:$LINENO: result: no, Darwin support disabled" >&5
3837 $as_echo "no, Darwin support disabled" >&6; }
3841 { $as_echo "$as_me:$LINENO: result: yes, Darwin support excluded" >&5
3842 $as_echo "yes, Darwin support excluded" >&6; }
3845 { $as_echo "$as_me:$LINENO: checking --with-mac-arch argument" >&5
3846 $as_echo_n "checking --with-mac-arch argument... " >&6; }
3848 # Check whether --with-mac-arch was given.
3849 if test "${with_mac_arch+set}" = set; then
3850 withval=$with_mac_arch; MACARCH="$withval"; { $as_echo "$as_me:$LINENO: result: $MACARCH" >&5
3851 $as_echo "$MACARCH" >&6; }
3853 MACARCH="current"; { $as_echo "$as_me:$LINENO: result: defaulting to $MACARCH" >&5
3854 $as_echo "defaulting to $MACARCH" >&6; }
3858 { $as_echo "$as_me:$LINENO: checking --with-developer-dir argument" >&5
3859 $as_echo_n "checking --with-developer-dir argument... " >&6; }
3861 # Check whether --with-developer-dir was given.
3862 if test "${with_developer_dir+set}" = set; then
3863 withval=$with_developer_dir; DEVELOPER_DIR="$withval"; { $as_echo "$as_me:$LINENO: result: $DEVELOPER_DIR" >&5
3864 $as_echo "$DEVELOPER_DIR" >&6; }
3866 DEVELOPER_DIR=""; { $as_echo "$as_me:$LINENO: result: not present" >&5
3867 $as_echo "not present" >&6; }
3871 if test "x$DEVELOPER_DIR" = "x"; then
3872 # Extract the first word of "xcode-select", so it can be a program name with args.
3873 set dummy xcode-select; ac_word=$2
3874 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3875 $as_echo_n "checking for $ac_word... " >&6; }
3876 if test "${ac_cv_path_XCODE_SELECT+set}" = set; then
3877 $as_echo_n "(cached) " >&6
3879 case $XCODE_SELECT in
3881 ac_cv_path_XCODE_SELECT="$XCODE_SELECT" # Let the user override the test with a path.
3884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3888 test -z "$as_dir" && as_dir=.
3889 for ac_exec_ext in '' $ac_executable_extensions; do
3890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3891 ac_cv_path_XCODE_SELECT="$as_dir/$ac_word$ac_exec_ext"
3892 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3902 XCODE_SELECT=$ac_cv_path_XCODE_SELECT
3903 if test -n "$XCODE_SELECT"; then
3904 { $as_echo "$as_me:$LINENO: result: $XCODE_SELECT" >&5
3905 $as_echo "$XCODE_SELECT" >&6; }
3907 { $as_echo "$as_me:$LINENO: result: no" >&5
3908 $as_echo "no" >&6; }
3912 if test "x$XCODE_SELECT" != "x"; then
3913 { $as_echo "$as_me:$LINENO: checking for developer dir using xcode-select" >&5
3914 $as_echo_n "checking for developer dir using xcode-select... " >&6; }
3915 DEVELOPER_DIR=`$XCODE_SELECT -print-path`
3916 { $as_echo "$as_me:$LINENO: result: $DEVELOPER_DIR" >&5
3917 $as_echo "$DEVELOPER_DIR" >&6; }
3919 DEVELOPER_DIR=/Developer
3923 if test "x$MACARCH" = "xboth"; then
3924 { $as_echo "$as_me:$LINENO: checking for 10.4 universal SDK" >&5
3925 $as_echo_n "checking for 10.4 universal SDK... " >&6; }
3926 save_cppflags="$CPPFLAGS"
3927 save_cflags="$CFLAGS"
3928 save_ldflags="$LDFLAGS"
3929 CFLAGS="$CFLAGS -isysroot $DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc"
3930 cat >conftest.$ac_ext <<_ACEOF
3933 cat confdefs.h >>conftest.$ac_ext
3934 cat >>conftest.$ac_ext <<_ACEOF
3935 /* end confdefs.h. */
3945 rm -f conftest.$ac_objext conftest$ac_exeext
3946 if { (ac_try="$ac_link"
3948 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3949 *) ac_try_echo
=$ac_try;;
3951 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3952 $as_echo "$ac_try_echo") >&5
3953 (eval "$ac_link") 2>conftest.er1
3955 grep -v '^ *+' conftest.er1
>conftest.err
3957 cat conftest.err
>&5
3958 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3959 (exit $ac_status); } && {
3960 test -z "$ac_c_werror_flag" ||
3961 test ! -s conftest.err
3962 } && test -s conftest
$ac_exeext && {
3963 test "$cross_compiling" = yes ||
3964 $as_test_x conftest
$ac_exeext
3966 { $as_echo "$as_me:$LINENO: result: found" >&5
3967 $as_echo "found" >&6; }
3969 $as_echo "$as_me: failed program was:" >&5
3970 sed 's/^/| /' conftest.
$ac_ext >&5
3972 { $as_echo "$as_me:$LINENO: result: not found" >&5
3973 $as_echo "not found" >&6; }
3974 CFLAGS
="$save_cflags"
3975 { $as_echo "$as_me:$LINENO: checking if Intel architecture is supported" >&5
3976 $as_echo_n "checking if Intel architecture is supported... " >&6; }
3977 CPPFLAGS
="$CPPFLAGS -arch i386"
3978 LDFLAGS
="$save_ldflags -arch i386"
3979 cat >conftest.
$ac_ext <<_ACEOF
3982 cat confdefs.h
>>conftest.
$ac_ext
3983 cat >>conftest.
$ac_ext <<_ACEOF
3984 /* end confdefs.h. */
3994 rm -f conftest.
$ac_objext conftest
$ac_exeext
3995 if { (ac_try
="$ac_link"
3997 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3998 *) ac_try_echo=$ac_try;;
4000 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4001 $as_echo "$ac_try_echo") >&5
4002 (eval "$ac_link") 2>conftest.er1
4004 grep -v '^ *+' conftest.er1 >conftest.err
4006 cat conftest.err >&5
4007 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008 (exit $ac_status); } && {
4009 test -z "$ac_c_werror_flag" ||
4010 test ! -s conftest.err
4011 } && test -s conftest$ac_exeext && {
4012 test "$cross_compiling" = yes ||
4013 $as_test_x conftest$ac_exeext
4015 { $as_echo "$as_me:$LINENO: result: yes" >&5
4016 $as_echo "yes" >&6; }; MACARCH="intel"
4018 $as_echo "$as_me: failed program was:" >&5
4019 sed 's/^/| /' conftest.$ac_ext >&5
4021 { $as_echo "$as_me:$LINENO: result: no" >&5
4022 $as_echo "no" >&6; }
4024 CPPFLAGS="$save_cppflags -arch ppc"
4025 LDFLAGS="$save_ldflags -arch ppc"
4028 rm -rf conftest.dSYM
4029 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4030 conftest$ac_exeext conftest.$ac_ext
4033 rm -rf conftest.dSYM
4034 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4035 conftest$ac_exeext conftest.$ac_ext
4036 elif test "x$MACARCH" = "xintel"; then
4037 CPPFLAGS="$CPPFLAGS -arch intel"
4038 LDFLAGS="$LDFLAGS -arch intel"
4039 elif test "x$MACARCH" = "xppc"; then
4040 CPPFLAGS="$CPPFLAGS -arch ppc"
4041 LDFLAGS="$LDFLAGS -arch ppc"
4044 if test "$enable_darwin" = "yes"; then
4046 OS_EXTRA_SRC="os_macosx.c os_mac_conv.c";
4047 OS_EXTRA_OBJ="objects/os_macosx.o objects/os_mac_conv.o"
4048 CPPFLAGS="$CPPFLAGS -DMACOS_X_UNIX -no-cpp-precomp"
4049 if test "x$MACARCH" = "xboth"; then
4050 CPPFLAGS="$CPPFLAGS -I$DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk/Developer/Headers/FlatCarbon"
4052 CPPFLAGS="$CPPFLAGS -I$DEVELOPER_DIR/Headers/FlatCarbon"
4055 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4065 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4066 inttypes.h stdint.h unistd.h
4068 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4069 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4070 $as_echo_n "checking for $ac_header... " >&6; }
4071 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4072 $as_echo_n "(cached) " >&6
4074 cat >conftest.$ac_ext <<_ACEOF
4077 cat confdefs.h >>conftest.$ac_ext
4078 cat >>conftest.$ac_ext <<_ACEOF
4079 /* end confdefs.h. */
4080 $ac_includes_default
4082 #include <$ac_header>
4084 rm -f conftest.$ac_objext
4085 if { (ac_try="$ac_compile"
4087 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4088 *) ac_try_echo
=$ac_try;;
4090 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4091 $as_echo "$ac_try_echo") >&5
4092 (eval "$ac_compile") 2>conftest.er1
4094 grep -v '^ *+' conftest.er1
>conftest.err
4096 cat conftest.err
>&5
4097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4098 (exit $ac_status); } && {
4099 test -z "$ac_c_werror_flag" ||
4100 test ! -s conftest.err
4101 } && test -s conftest.
$ac_objext; then
4102 eval "$as_ac_Header=yes"
4104 $as_echo "$as_me: failed program was:" >&5
4105 sed 's/^/| /' conftest.
$ac_ext >&5
4107 eval "$as_ac_Header=no"
4110 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4112 ac_res
=`eval 'as_val=${'$as_ac_Header'}
4113 $as_echo "$as_val"'`
4114 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4115 $as_echo "$ac_res" >&6; }
4116 as_val
=`eval 'as_val=${'$as_ac_Header'}
4117 $as_echo "$as_val"'`
4118 if test "x$as_val" = x
""yes; then
4119 cat >>confdefs.h
<<_ACEOF
4120 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4128 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
4129 { $as_echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
4130 $as_echo_n "checking for Carbon/Carbon.h... " >&6; }
4131 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
4132 $as_echo_n "(cached) " >&6
4134 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
4135 $as_echo "$ac_cv_header_Carbon_Carbon_h" >&6; }
4137 # Is the header compilable?
4138 { $as_echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
4139 $as_echo_n "checking Carbon/Carbon.h usability... " >&6; }
4140 cat >conftest.
$ac_ext <<_ACEOF
4143 cat confdefs.h
>>conftest.
$ac_ext
4144 cat >>conftest.
$ac_ext <<_ACEOF
4145 /* end confdefs.h. */
4146 $ac_includes_default
4147 #include <Carbon/Carbon.h>
4149 rm -f conftest.
$ac_objext
4150 if { (ac_try
="$ac_compile"
4152 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4153 *) ac_try_echo=$ac_try;;
4155 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4156 $as_echo "$ac_try_echo") >&5
4157 (eval "$ac_compile") 2>conftest.er1
4159 grep -v '^ *+' conftest.er1 >conftest.err
4161 cat conftest.err >&5
4162 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4163 (exit $ac_status); } && {
4164 test -z "$ac_c_werror_flag" ||
4165 test ! -s conftest.err
4166 } && test -s conftest.$ac_objext; then
4167 ac_header_compiler=yes
4169 $as_echo "$as_me: failed program was:" >&5
4170 sed 's/^/| /' conftest.$ac_ext >&5
4172 ac_header_compiler=no
4175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4176 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4177 $as_echo "$ac_header_compiler" >&6; }
4179 # Is the header present?
4180 { $as_echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
4181 $as_echo_n "checking Carbon/Carbon.h presence... " >&6; }
4182 cat >conftest.$ac_ext <<_ACEOF
4185 cat confdefs.h >>conftest.$ac_ext
4186 cat >>conftest.$ac_ext <<_ACEOF
4187 /* end confdefs.h. */
4188 #include <Carbon/Carbon.h>
4190 if { (ac_try="$ac_cpp conftest.$ac_ext"
4192 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4193 *) ac_try_echo
=$ac_try;;
4195 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4196 $as_echo "$ac_try_echo") >&5
4197 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4199 grep -v '^ *+' conftest.er1
>conftest.err
4201 cat conftest.err
>&5
4202 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4203 (exit $ac_status); } >/dev
/null
&& {
4204 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4205 test ! -s conftest.err
4207 ac_header_preproc
=yes
4209 $as_echo "$as_me: failed program was:" >&5
4210 sed 's/^/| /' conftest.
$ac_ext >&5
4212 ac_header_preproc
=no
4215 rm -f conftest.err conftest.
$ac_ext
4216 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4217 $as_echo "$ac_header_preproc" >&6; }
4219 # So? What about this header?
4220 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4222 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
4223 $as_echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4224 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
4225 $as_echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
4226 ac_header_preproc
=yes
4229 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
4230 $as_echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
4231 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
4232 $as_echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
4233 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
4234 $as_echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
4235 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
4236 $as_echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
4237 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
4238 $as_echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
4239 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
4240 $as_echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
4244 { $as_echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
4245 $as_echo_n "checking for Carbon/Carbon.h... " >&6; }
4246 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
4247 $as_echo_n "(cached) " >&6
4249 ac_cv_header_Carbon_Carbon_h
=$ac_header_preproc
4251 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
4252 $as_echo "$ac_cv_header_Carbon_Carbon_h" >&6; }
4255 if test "x$ac_cv_header_Carbon_Carbon_h" = x
""yes; then
4260 if test "x$CARBON" = "xyes"; then
4261 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
4267 if test "$MACARCH" = "intel" -o "$MACARCH" = "both"; then
4268 CFLAGS
=`echo "$CFLAGS" | sed 's/-O[23456789]/-Oz/'`
4272 { $as_echo "$as_me:$LINENO: result: no" >&5
4273 $as_echo "no" >&6; }
4279 if test "$cross_compiling" = no
; then
4280 { $as_echo "$as_me:$LINENO: checking --with-local-dir argument" >&5
4281 $as_echo_n "checking --with-local-dir argument... " >&6; }
4282 have_local_include
=''
4285 # Check whether --with-local-dir was given.
4286 if test "${with_local_dir+set}" = set; then
4287 withval
=$with_local_dir;
4288 local_dir
="$withval"
4292 # avoid adding local dir to LDFLAGS and CPPFLAGS
4296 *) { { $as_echo "$as_me:$LINENO: error: must pass path argument to --with-local-dir" >&5
4297 $as_echo "$as_me: error: must pass path argument to --with-local-dir" >&2;}
4298 { (exit 1); exit 1; }; } ;;
4300 { $as_echo "$as_me:$LINENO: result: $local_dir" >&5
4301 $as_echo "$local_dir" >&6; }
4305 local_dir
=/usr
/local
4306 { $as_echo "$as_me:$LINENO: result: Defaulting to $local_dir" >&5
4307 $as_echo "Defaulting to $local_dir" >&6; }
4311 if test "$GCC" = yes -a "$local_dir" != no
; then
4312 echo 'void f(){}' > conftest.c
4313 have_local_include
=`${CC-cc} -no-cpp-precomp -c -v conftest.c 2>&1 | grep "${local_dir}/include"`
4314 have_local_lib
=`${CC-cc} -c -v conftest.c 2>&1 | grep "${local_dir}/lib"`
4315 rm -f conftest.c conftest.o
4317 if test -z "$have_local_lib" -a -d "${local_dir}/lib"; then
4318 tt
=`echo "$LDFLAGS" | sed -e "s+-L${local_dir}/lib ++g" -e "s+-L${local_dir}/lib$++g"`
4319 if test "$tt" = "$LDFLAGS"; then
4320 LDFLAGS
="$LDFLAGS -L${local_dir}/lib"
4323 if test -z "$have_local_include" -a -d "${local_dir}/include"; then
4324 tt
=`echo "$CPPFLAGS" | sed -e "s+-I${local_dir}/include ++g" -e "s+-I${local_dir}/include$++g"`
4325 if test "$tt" = "$CPPFLAGS"; then
4326 CPPFLAGS
="$CPPFLAGS -I${local_dir}/include"
4331 { $as_echo "$as_me:$LINENO: checking --with-vim-name argument" >&5
4332 $as_echo_n "checking --with-vim-name argument... " >&6; }
4334 # Check whether --with-vim-name was given.
4335 if test "${with_vim_name+set}" = set; then
4336 withval
=$with_vim_name; VIMNAME
="$withval"; { $as_echo "$as_me:$LINENO: result: $VIMNAME" >&5
4337 $as_echo "$VIMNAME" >&6; }
4339 VIMNAME
="vim"; { $as_echo "$as_me:$LINENO: result: Defaulting to $VIMNAME" >&5
4340 $as_echo "Defaulting to $VIMNAME" >&6; }
4344 { $as_echo "$as_me:$LINENO: checking --with-ex-name argument" >&5
4345 $as_echo_n "checking --with-ex-name argument... " >&6; }
4347 # Check whether --with-ex-name was given.
4348 if test "${with_ex_name+set}" = set; then
4349 withval
=$with_ex_name; EXNAME
="$withval"; { $as_echo "$as_me:$LINENO: result: $EXNAME" >&5
4350 $as_echo "$EXNAME" >&6; }
4352 EXNAME
="ex"; { $as_echo "$as_me:$LINENO: result: Defaulting to ex" >&5
4353 $as_echo "Defaulting to ex" >&6; }
4357 { $as_echo "$as_me:$LINENO: checking --with-view-name argument" >&5
4358 $as_echo_n "checking --with-view-name argument... " >&6; }
4360 # Check whether --with-view-name was given.
4361 if test "${with_view_name+set}" = set; then
4362 withval
=$with_view_name; VIEWNAME
="$withval"; { $as_echo "$as_me:$LINENO: result: $VIEWNAME" >&5
4363 $as_echo "$VIEWNAME" >&6; }
4365 VIEWNAME
="view"; { $as_echo "$as_me:$LINENO: result: Defaulting to view" >&5
4366 $as_echo "Defaulting to view" >&6; }
4371 { $as_echo "$as_me:$LINENO: checking --with-global-runtime argument" >&5
4372 $as_echo_n "checking --with-global-runtime argument... " >&6; }
4374 # Check whether --with-global-runtime was given.
4375 if test "${with_global_runtime+set}" = set; then
4376 withval
=$with_global_runtime; { $as_echo "$as_me:$LINENO: result: $withval" >&5
4377 $as_echo "$withval" >&6; }; cat >>confdefs.h
<<_ACEOF
4378 #define RUNTIME_GLOBAL "$withval"
4382 { $as_echo "$as_me:$LINENO: result: no" >&5
4383 $as_echo "no" >&6; }
4387 { $as_echo "$as_me:$LINENO: checking --with-modified-by argument" >&5
4388 $as_echo_n "checking --with-modified-by argument... " >&6; }
4390 # Check whether --with-modified-by was given.
4391 if test "${with_modified_by+set}" = set; then
4392 withval
=$with_modified_by; { $as_echo "$as_me:$LINENO: result: $withval" >&5
4393 $as_echo "$withval" >&6; }; cat >>confdefs.h
<<_ACEOF
4394 #define MODIFIED_BY "$withval"
4398 { $as_echo "$as_me:$LINENO: result: no" >&5
4399 $as_echo "no" >&6; }
4403 { $as_echo "$as_me:$LINENO: checking if character set is EBCDIC" >&5
4404 $as_echo_n "checking if character set is EBCDIC... " >&6; }
4405 cat >conftest.
$ac_ext <<_ACEOF
4408 cat confdefs.h
>>conftest.
$ac_ext
4409 cat >>conftest.
$ac_ext <<_ACEOF
4410 /* end confdefs.h. */
4415 /* TryCompile function for CharSet.
4416 Treat any failure as ASCII for compatibility with existing art.
4417 Use compile-time rather than run-time tests for cross-compiler
4420 make an error "Character set is not EBCDIC"
4426 rm -f conftest.
$ac_objext
4427 if { (ac_try
="$ac_compile"
4429 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4430 *) ac_try_echo=$ac_try;;
4432 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4433 $as_echo "$ac_try_echo") >&5
4434 (eval "$ac_compile") 2>conftest.er1
4436 grep -v '^ *+' conftest.er1 >conftest.err
4438 cat conftest.err >&5
4439 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4440 (exit $ac_status); } && {
4441 test -z "$ac_c_werror_flag" ||
4442 test ! -s conftest.err
4443 } && test -s conftest.$ac_objext; then
4444 # TryCompile action if true
4447 $as_echo "$as_me: failed program was:" >&5
4448 sed 's/^/| /' conftest.$ac_ext >&5
4450 # TryCompile action if false
4454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4455 # end of TryCompile ])
4456 # end of CacheVal CvEbcdic
4457 { $as_echo "$as_me:$LINENO: result: $cf_cv_ebcdic" >&5
4458 $as_echo "$cf_cv_ebcdic" >&6; }
4459 case "$cf_cv_ebcdic" in #(vi
4460 yes) cat >>confdefs.h <<\_ACEOF
4466 *) line_break='"\\012"';;
4470 if test "$cf_cv_ebcdic" = "yes"; then
4471 { $as_echo "$as_me:$LINENO: checking for OS/390 Unix" >&5
4472 $as_echo_n "checking for OS/390 Unix... " >&6; }
4474 OS/390) OS390Unix="yes";
4475 if test "$CC" = "cc"; then
4479 if test "$CC" = "c89"; then
4486 if test "$ccm" != "1"; then
4488 echo "------------------------------------------"
4489 echo " On OS/390 Unix, the environment variable"
4490 echo " __CC_${ccn}MODE must be set to \"1\"!"
4492 echo " export _CC_${ccn}MODE=1"
4493 echo " and then call configure again."
4494 echo "------------------------------------------"
4497 CFLAGS="$CFLAGS -D_ALL_SOURCE"; LDFLAGS="$LDFLAGS -Wl,EDIT=NO"
4498 { $as_echo "$as_me:$LINENO: result: yes" >&5
4499 $as_echo "yes" >&6; }
4502 { $as_echo "$as_me:$LINENO: result: no" >&5
4503 $as_echo "no" >&6; }
4508 { $as_echo "$as_me:$LINENO: checking --disable-selinux argument" >&5
4509 $as_echo_n "checking --disable-selinux argument... " >&6; }
4510 # Check whether --enable-selinux was given.
4511 if test "${enable_selinux+set}" = set; then
4512 enableval=$enable_selinux;
4514 enable_selinux="yes"
4517 if test "$enable_selinux" = "yes"; then
4518 { $as_echo "$as_me:$LINENO: result: no" >&5
4519 $as_echo "no" >&6; }
4520 { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
4521 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
4522 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
4523 $as_echo_n "(cached) " >&6
4525 ac_check_lib_save_LIBS=$LIBS
4526 LIBS="-lselinux $LIBS"
4527 cat >conftest.$ac_ext <<_ACEOF
4530 cat confdefs.h >>conftest.$ac_ext
4531 cat >>conftest.$ac_ext <<_ACEOF
4532 /* end confdefs.h. */
4534 /* Override any GCC internal prototype to avoid an error.
4535 Use char because int might match the return type of a GCC
4536 builtin and then its argument prototype would still apply. */
4540 char is_selinux_enabled ();
4544 return is_selinux_enabled ();
4549 rm -f conftest.$ac_objext conftest$ac_exeext
4550 if { (ac_try="$ac_link"
4552 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4553 *) ac_try_echo
=$ac_try;;
4555 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4556 $as_echo "$ac_try_echo") >&5
4557 (eval "$ac_link") 2>conftest.er1
4559 grep -v '^ *+' conftest.er1
>conftest.err
4561 cat conftest.err
>&5
4562 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563 (exit $ac_status); } && {
4564 test -z "$ac_c_werror_flag" ||
4565 test ! -s conftest.err
4566 } && test -s conftest
$ac_exeext && {
4567 test "$cross_compiling" = yes ||
4568 $as_test_x conftest
$ac_exeext
4570 ac_cv_lib_selinux_is_selinux_enabled
=yes
4572 $as_echo "$as_me: failed program was:" >&5
4573 sed 's/^/| /' conftest.
$ac_ext >&5
4575 ac_cv_lib_selinux_is_selinux_enabled
=no
4578 rm -rf conftest.dSYM
4579 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
4580 conftest
$ac_exeext conftest.
$ac_ext
4581 LIBS
=$ac_check_lib_save_LIBS
4583 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
4584 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
4585 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x
""yes; then
4586 LIBS
="$LIBS -lselinux"
4587 cat >>confdefs.h
<<\_ACEOF
4588 #define HAVE_SELINUX 1
4594 { $as_echo "$as_me:$LINENO: result: yes" >&5
4595 $as_echo "yes" >&6; }
4599 { $as_echo "$as_me:$LINENO: checking --with-features argument" >&5
4600 $as_echo_n "checking --with-features argument... " >&6; }
4602 # Check whether --with-features was given.
4603 if test "${with_features+set}" = set; then
4604 withval
=$with_features; features
="$withval"; { $as_echo "$as_me:$LINENO: result: $features" >&5
4605 $as_echo "$features" >&6; }
4607 features
="normal"; { $as_echo "$as_me:$LINENO: result: Defaulting to normal" >&5
4608 $as_echo "Defaulting to normal" >&6; }
4615 tiny
) cat >>confdefs.h
<<\_ACEOF
4619 small
) cat >>confdefs.h
<<\_ACEOF
4620 #define FEAT_SMALL 1
4623 normal
) cat >>confdefs.h
<<\_ACEOF
4624 #define FEAT_NORMAL 1
4626 dovimdiff
="installvimdiff";
4627 dogvimdiff
="installgvimdiff" ;;
4628 big
) cat >>confdefs.h
<<\_ACEOF
4631 dovimdiff
="installvimdiff";
4632 dogvimdiff
="installgvimdiff" ;;
4633 huge
) cat >>confdefs.h
<<\_ACEOF
4636 dovimdiff
="installvimdiff";
4637 dogvimdiff
="installgvimdiff" ;;
4638 *) { $as_echo "$as_me:$LINENO: result: Sorry, $features is not supported" >&5
4639 $as_echo "Sorry, $features is not supported" >&6; } ;;
4645 { $as_echo "$as_me:$LINENO: checking --with-compiledby argument" >&5
4646 $as_echo_n "checking --with-compiledby argument... " >&6; }
4648 # Check whether --with-compiledby was given.
4649 if test "${with_compiledby+set}" = set; then
4650 withval
=$with_compiledby; compiledby
="$withval"; { $as_echo "$as_me:$LINENO: result: $withval" >&5
4651 $as_echo "$withval" >&6; }
4653 compiledby
=""; { $as_echo "$as_me:$LINENO: result: no" >&5
4654 $as_echo "no" >&6; }
4659 { $as_echo "$as_me:$LINENO: checking --disable-xsmp argument" >&5
4660 $as_echo_n "checking --disable-xsmp argument... " >&6; }
4661 # Check whether --enable-xsmp was given.
4662 if test "${enable_xsmp+set}" = set; then
4663 enableval
=$enable_xsmp;
4669 if test "$enable_xsmp" = "yes"; then
4670 { $as_echo "$as_me:$LINENO: result: no" >&5
4671 $as_echo "no" >&6; }
4672 { $as_echo "$as_me:$LINENO: checking --disable-xsmp-interact argument" >&5
4673 $as_echo_n "checking --disable-xsmp-interact argument... " >&6; }
4674 # Check whether --enable-xsmp-interact was given.
4675 if test "${enable_xsmp_interact+set}" = set; then
4676 enableval
=$enable_xsmp_interact;
4678 enable_xsmp_interact
="yes"
4681 if test "$enable_xsmp_interact" = "yes"; then
4682 { $as_echo "$as_me:$LINENO: result: no" >&5
4683 $as_echo "no" >&6; }
4684 cat >>confdefs.h
<<\_ACEOF
4685 #define USE_XSMP_INTERACT 1
4689 { $as_echo "$as_me:$LINENO: result: yes" >&5
4690 $as_echo "yes" >&6; }
4693 { $as_echo "$as_me:$LINENO: result: yes" >&5
4694 $as_echo "yes" >&6; }
4697 { $as_echo "$as_me:$LINENO: checking --enable-luainterp argument" >&5
4698 $as_echo_n "checking --enable-luainterp argument... " >&6; }
4699 # Check whether --enable-luainterp was given.
4700 if test "${enable_luainterp+set}" = set; then
4701 enableval
=$enable_luainterp;
4703 enable_luainterp
="no"
4706 { $as_echo "$as_me:$LINENO: result: $enable_luainterp" >&5
4707 $as_echo "$enable_luainterp" >&6; }
4709 if test "$enable_luainterp" = "yes"; then
4712 { $as_echo "$as_me:$LINENO: checking --with-lua-prefix argument" >&5
4713 $as_echo_n "checking --with-lua-prefix argument... " >&6; }
4715 # Check whether --with-lua_prefix was given.
4716 if test "${with_lua_prefix+set}" = set; then
4717 withval
=$with_lua_prefix; with_lua_prefix
="$withval"; { $as_echo "$as_me:$LINENO: result: $with_lua_prefix" >&5
4718 $as_echo "$with_lua_prefix" >&6; }
4720 with_lua_prefix
="";{ $as_echo "$as_me:$LINENO: result: \"no\"" >&5
4721 $as_echo "\"no\"" >&6; }
4725 if test "X$with_lua_prefix" != "X"; then
4726 vi_cv_path_lua_pfx
="$with_lua_prefix"
4728 { $as_echo "$as_me:$LINENO: checking LUA_PREFIX environment var" >&5
4729 $as_echo_n "checking LUA_PREFIX environment var... " >&6; }
4730 if test "X$LUA_PREFIX" != "X"; then
4731 { $as_echo "$as_me:$LINENO: result: \"$LUA_PREFIX\"" >&5
4732 $as_echo "\"$LUA_PREFIX\"" >&6; }
4733 vi_cv_path_lua_pfx
="$LUA_PREFIX"
4735 { $as_echo "$as_me:$LINENO: result: \"not set\"" >&5
4736 $as_echo "\"not set\"" >&6; }
4741 if test "X$vi_cv_path_lua_pfx" != "X"; then
4742 { $as_echo "$as_me:$LINENO: checking if lua.h can be found in $vi_cv_path_lua_pfx/include" >&5
4743 $as_echo_n "checking if lua.h can be found in $vi_cv_path_lua_pfx/include... " >&6; }
4744 if test -f $vi_cv_path_lua_pfx/include
/lua.h
; then
4745 { $as_echo "$as_me:$LINENO: result: \"yes\"" >&5
4746 $as_echo "\"yes\"" >&6; }
4748 { $as_echo "$as_me:$LINENO: result: \"no\"" >&5
4749 $as_echo "\"no\"" >&6; }
4750 # Extract the first word of "lua", so it can be a program name with args.
4751 set dummy lua
; ac_word
=$2
4752 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4753 $as_echo_n "checking for $ac_word... " >&6; }
4754 if test "${ac_cv_path_vi_cv_path_lua+set}" = set; then
4755 $as_echo_n "(cached) " >&6
4757 case $vi_cv_path_lua in
4759 ac_cv_path_vi_cv_path_lua
="$vi_cv_path_lua" # Let the user override the test with a path.
4762 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4766 test -z "$as_dir" && as_dir
=.
4767 for ac_exec_ext
in '' $ac_executable_extensions; do
4768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4769 ac_cv_path_vi_cv_path_lua
="$as_dir/$ac_word$ac_exec_ext"
4770 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4780 vi_cv_path_lua
=$ac_cv_path_vi_cv_path_lua
4781 if test -n "$vi_cv_path_lua"; then
4782 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_lua" >&5
4783 $as_echo "$vi_cv_path_lua" >&6; }
4785 { $as_echo "$as_me:$LINENO: result: no" >&5
4786 $as_echo "no" >&6; }
4790 if test "X$vi_cv_path_lua" != "X"; then
4791 { $as_echo "$as_me:$LINENO: checking Lua version" >&5
4792 $as_echo_n "checking Lua version... " >&6; }
4793 if test "${vi_cv_version_lua+set}" = set; then
4794 $as_echo_n "(cached) " >&6
4796 vi_cv_version_lua
=`${vi_cv_path_lua} -e "print(_VERSION:sub(5,7))"`
4798 { $as_echo "$as_me:$LINENO: result: $vi_cv_version_lua" >&5
4799 $as_echo "$vi_cv_version_lua" >&6; }
4800 { $as_echo "$as_me:$LINENO: checking if lua.h can be found in $vi_cv_path_lua_pfx/include/lua$vi_cv_version_lua" >&5
4801 $as_echo_n "checking if lua.h can be found in $vi_cv_path_lua_pfx/include/lua$vi_cv_version_lua... " >&6; }
4802 if test -f $vi_cv_path_lua_pfx/include
/lua
$vi_cv_version_lua/lua.h
; then
4803 { $as_echo "$as_me:$LINENO: result: \"yes\"" >&5
4804 $as_echo "\"yes\"" >&6; }
4805 LUA_INC
=/lua
$vi_cv_version_lua
4807 { $as_echo "$as_me:$LINENO: result: \"no\"" >&5
4808 $as_echo "\"no\"" >&6; }
4815 if test "X$vi_cv_path_lua_pfx" != "X"; then
4816 if test "X$vi_cv_version_lua" != "X"; then
4817 LUA_LIBS
="-L${vi_cv_path_lua_pfx}/lib -llua$vi_cv_version_lua"
4819 LUA_LIBS
="-L${vi_cv_path_lua_pfx}/lib -llua"
4821 LUA_CFLAGS
="-I${vi_cv_path_lua_pfx}/include${LUA_INC}"
4823 LUA_OBJ
="objects/if_lua.o"
4824 LUA_PRO
="if_lua.pro"
4825 cat >>confdefs.h
<<\_ACEOF
4838 { $as_echo "$as_me:$LINENO: checking --enable-mzschemeinterp argument" >&5
4839 $as_echo_n "checking --enable-mzschemeinterp argument... " >&6; }
4840 # Check whether --enable-mzschemeinterp was given.
4841 if test "${enable_mzschemeinterp+set}" = set; then
4842 enableval
=$enable_mzschemeinterp;
4844 enable_mzschemeinterp
="no"
4847 { $as_echo "$as_me:$LINENO: result: $enable_mzschemeinterp" >&5
4848 $as_echo "$enable_mzschemeinterp" >&6; }
4850 if test "$enable_mzschemeinterp" = "yes"; then
4853 { $as_echo "$as_me:$LINENO: checking --with-plthome argument" >&5
4854 $as_echo_n "checking --with-plthome argument... " >&6; }
4856 # Check whether --with-plthome was given.
4857 if test "${with_plthome+set}" = set; then
4858 withval
=$with_plthome; with_plthome
="$withval"; { $as_echo "$as_me:$LINENO: result: $with_plthome" >&5
4859 $as_echo "$with_plthome" >&6; }
4861 with_plthome
="";{ $as_echo "$as_me:$LINENO: result: \"no\"" >&5
4862 $as_echo "\"no\"" >&6; }
4866 if test "X$with_plthome" != "X"; then
4867 vi_cv_path_mzscheme_pfx
="$with_plthome"
4869 { $as_echo "$as_me:$LINENO: checking PLTHOME environment var" >&5
4870 $as_echo_n "checking PLTHOME environment var... " >&6; }
4871 if test "X$PLTHOME" != "X"; then
4872 { $as_echo "$as_me:$LINENO: result: \"$PLTHOME\"" >&5
4873 $as_echo "\"$PLTHOME\"" >&6; }
4874 vi_cv_path_mzscheme_pfx
="$PLTHOME"
4876 { $as_echo "$as_me:$LINENO: result: not set" >&5
4877 $as_echo "not set" >&6; }
4878 # Extract the first word of "mzscheme", so it can be a program name with args.
4879 set dummy mzscheme
; ac_word
=$2
4880 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4881 $as_echo_n "checking for $ac_word... " >&6; }
4882 if test "${ac_cv_path_vi_cv_path_mzscheme+set}" = set; then
4883 $as_echo_n "(cached) " >&6
4885 case $vi_cv_path_mzscheme in
4887 ac_cv_path_vi_cv_path_mzscheme
="$vi_cv_path_mzscheme" # Let the user override the test with a path.
4890 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4894 test -z "$as_dir" && as_dir
=.
4895 for ac_exec_ext
in '' $ac_executable_extensions; do
4896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4897 ac_cv_path_vi_cv_path_mzscheme
="$as_dir/$ac_word$ac_exec_ext"
4898 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4908 vi_cv_path_mzscheme
=$ac_cv_path_vi_cv_path_mzscheme
4909 if test -n "$vi_cv_path_mzscheme"; then
4910 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme" >&5
4911 $as_echo "$vi_cv_path_mzscheme" >&6; }
4913 { $as_echo "$as_me:$LINENO: result: no" >&5
4914 $as_echo "no" >&6; }
4919 if test "X$vi_cv_path_mzscheme" != "X"; then
4920 lsout
=`ls -l $vi_cv_path_mzscheme`
4921 if echo "$lsout" |
grep -e '->' >/dev
/null
2>/dev
/null
; then
4922 vi_cv_path_mzscheme
=`echo "$lsout" | sed 's/.*-> \(.*\)/\1/'`
4926 if test "X$vi_cv_path_mzscheme" != "X"; then
4927 { $as_echo "$as_me:$LINENO: checking MzScheme install prefix" >&5
4928 $as_echo_n "checking MzScheme install prefix... " >&6; }
4929 if test "${vi_cv_path_mzscheme_pfx+set}" = set; then
4930 $as_echo_n "(cached) " >&6
4932 echo "(display (simplify-path \
4933 (build-path (call-with-values \
4934 (lambda () (split-path (find-system-path (quote exec-file)))) \
4935 (lambda (base name must-be-dir?) base)) (quote up))))" > mzdirs.scm
4936 vi_cv_path_mzscheme_pfx
=`${vi_cv_path_mzscheme} -r mzdirs.scm | \
4939 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme_pfx" >&5
4940 $as_echo "$vi_cv_path_mzscheme_pfx" >&6; }
4947 if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
4948 { $as_echo "$as_me:$LINENO: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include" >&5
4949 $as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include... " >&6; }
4950 if test -f $vi_cv_path_mzscheme_pfx/include
/scheme.h
; then
4951 SCHEME_INC
=${vi_cv_path_mzscheme_pfx}/include
4952 { $as_echo "$as_me:$LINENO: result: yes" >&5
4953 $as_echo "yes" >&6; }
4955 { $as_echo "$as_me:$LINENO: result: no" >&5
4956 $as_echo "no" >&6; }
4957 { $as_echo "$as_me:$LINENO: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/plt" >&5
4958 $as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/plt... " >&6; }
4959 if test -f $vi_cv_path_mzscheme_pfx/include
/plt
/scheme.h
; then
4960 { $as_echo "$as_me:$LINENO: result: yes" >&5
4961 $as_echo "yes" >&6; }
4962 SCHEME_INC
=${vi_cv_path_mzscheme_pfx}/include
/plt
4964 { $as_echo "$as_me:$LINENO: result: no" >&5
4965 $as_echo "no" >&6; }
4966 { $as_echo "$as_me:$LINENO: checking if scheme.h can be found in /usr/include/plt/" >&5
4967 $as_echo_n "checking if scheme.h can be found in /usr/include/plt/... " >&6; }
4968 if test -f /usr
/include
/plt
/scheme.h
; then
4969 { $as_echo "$as_me:$LINENO: result: yes" >&5
4970 $as_echo "yes" >&6; }
4971 SCHEME_INC
=/usr
/include
/plt
4973 { $as_echo "$as_me:$LINENO: result: no" >&5
4974 $as_echo "no" >&6; }
4975 vi_cv_path_mzscheme_pfx
=
4981 if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
4982 if test "x$MACOSX" = "xyes"; then
4983 MZSCHEME_LIBS
="-framework PLT_MzScheme"
4984 elif test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzscheme3m.a"; then
4985 MZSCHEME_LIBS
="${vi_cv_path_mzscheme_pfx}/lib/libmzscheme3m.a"
4986 MZSCHEME_CFLAGS
="-DMZ_PRECISE_GC"
4987 elif test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a"; then
4988 MZSCHEME_LIBS
="${vi_cv_path_mzscheme_pfx}/lib/libmzscheme.a ${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a"
4990 if test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzscheme3m.so"; then
4991 MZSCHEME_LIBS
="-L${vi_cv_path_mzscheme_pfx}/lib -lmzscheme3m"
4992 MZSCHEME_CFLAGS
="-DMZ_PRECISE_GC"
4994 MZSCHEME_LIBS
="-L${vi_cv_path_mzscheme_pfx}/lib -lmzscheme -lmzgc"
4996 if test "$GCC" = yes; then
4997 MZSCHEME_LIBS
="${MZSCHEME_LIBS} -Wl,-rpath -Wl,${vi_cv_path_mzscheme_pfx}/lib"
4998 elif test "`(uname) 2>/dev/null`" = SunOS
&&
4999 uname
-r |
grep '^5' >/dev
/null
; then
5000 MZSCHEME_LIBS
="${MZSCHEME_LIBS} -R ${vi_cv_path_mzscheme_pfx}/lib"
5003 if test -d $vi_cv_path_mzscheme_pfx/lib
/plt
/collects
; then
5004 SCHEME_COLLECTS
=lib
/plt
/
5006 if test -f "${vi_cv_path_mzscheme_pfx}/${SCHEME_COLLECTS}collects/scheme/base.ss" ; then
5007 MZSCHEME_EXTRA
="mzscheme_base.c"
5008 MZSCHEME_CFLAGS
="${MZSCHEME_CFLAGS} -DINCLUDE_MZSCHEME_BASE"
5009 MZSCHEME_MZC
="${vi_cv_path_mzscheme_pfx}/bin/mzc"
5011 MZSCHEME_CFLAGS
="${MZSCHEME_CFLAGS} -I${SCHEME_INC} \
5012 -DMZSCHEME_COLLECTS='\"${vi_cv_path_mzscheme_pfx}/${SCHEME_COLLECTS}collects\"'"
5013 MZSCHEME_SRC
="if_mzsch.c"
5014 MZSCHEME_OBJ
="objects/if_mzsch.o"
5015 MZSCHEME_PRO
="if_mzsch.pro"
5016 cat >>confdefs.h
<<\_ACEOF
5017 #define FEAT_MZSCHEME 1
5031 { $as_echo "$as_me:$LINENO: checking --enable-perlinterp argument" >&5
5032 $as_echo_n "checking --enable-perlinterp argument... " >&6; }
5033 # Check whether --enable-perlinterp was given.
5034 if test "${enable_perlinterp+set}" = set; then
5035 enableval
=$enable_perlinterp;
5037 enable_perlinterp
="no"
5040 { $as_echo "$as_me:$LINENO: result: $enable_perlinterp" >&5
5041 $as_echo "$enable_perlinterp" >&6; }
5042 if test "$enable_perlinterp" = "yes"; then
5044 # Extract the first word of "perl", so it can be a program name with args.
5045 set dummy perl
; ac_word
=$2
5046 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5047 $as_echo_n "checking for $ac_word... " >&6; }
5048 if test "${ac_cv_path_vi_cv_path_perl+set}" = set; then
5049 $as_echo_n "(cached) " >&6
5051 case $vi_cv_path_perl in
5053 ac_cv_path_vi_cv_path_perl
="$vi_cv_path_perl" # Let the user override the test with a path.
5056 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5060 test -z "$as_dir" && as_dir
=.
5061 for ac_exec_ext
in '' $ac_executable_extensions; do
5062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5063 ac_cv_path_vi_cv_path_perl
="$as_dir/$ac_word$ac_exec_ext"
5064 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5074 vi_cv_path_perl
=$ac_cv_path_vi_cv_path_perl
5075 if test -n "$vi_cv_path_perl"; then
5076 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_perl" >&5
5077 $as_echo "$vi_cv_path_perl" >&6; }
5079 { $as_echo "$as_me:$LINENO: result: no" >&5
5080 $as_echo "no" >&6; }
5084 if test "X$vi_cv_path_perl" != "X"; then
5085 { $as_echo "$as_me:$LINENO: checking Perl version" >&5
5086 $as_echo_n "checking Perl version... " >&6; }
5087 if $vi_cv_path_perl -e 'require 5.003_01' >/dev
/null
2>/dev
/null
; then
5088 eval `$vi_cv_path_perl -V:usethreads`
5089 if test "X$usethreads" = "XUNKNOWN" -o "X$usethreads" = "Xundef"; then
5092 if $vi_cv_path_perl -e 'require 5.6.0' >/dev
/null
2>/dev
/null
; then
5093 eval `$vi_cv_path_perl -V:use5005threads`
5094 if test "X$use5005threads" = "XUNKNOWN" -o "X$use5005threads" = "Xundef"; then
5098 { $as_echo "$as_me:$LINENO: result: >>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&5
5099 $as_echo ">>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&6; }
5103 { $as_echo "$as_me:$LINENO: result: >>> Perl 5.5 with threads cannot be used <<<" >&5
5104 $as_echo ">>> Perl 5.5 with threads cannot be used <<<" >&6; }
5107 if test $badthreads = no
; then
5108 { $as_echo "$as_me:$LINENO: result: OK" >&5
5109 $as_echo "OK" >&6; }
5110 eval `$vi_cv_path_perl -V:shrpenv`
5111 if test "X$shrpenv" = "XUNKNOWN"; then # pre 5.003_04
5114 vi_cv_perllib
=`$vi_cv_path_perl -MConfig -e 'print $Config{privlibexp}'`
5116 perlcppflags
=`$vi_cv_path_perl -Mlib=$srcdir -MExtUtils::Embed \
5117 -e 'ccflags;perl_inc;print"\n"' | sed -e 's/-fno[^ ]*//'`
5118 perllibs
=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed -e 'ldopts' | \
5119 sed -e '/Warning/d' -e '/Note (probably harmless)/d' \
5120 -e 's/-bE:perl.exp//' -e 's/-lc //'`
5121 perlldflags
=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed \
5122 -e 'ccdlflags' | sed -e 's/-bE:perl.exp//'`
5124 { $as_echo "$as_me:$LINENO: checking if compile and link flags for Perl are sane" >&5
5125 $as_echo_n "checking if compile and link flags for Perl are sane... " >&6; }
5128 ldflags_save
=$LDFLAGS
5129 CFLAGS
="$CFLAGS $perlcppflags"
5130 LIBS
="$LIBS $perllibs"
5131 LDFLAGS
="$perlldflags $LDFLAGS"
5132 cat >conftest.
$ac_ext <<_ACEOF
5135 cat confdefs.h
>>conftest.
$ac_ext
5136 cat >>conftest.
$ac_ext <<_ACEOF
5137 /* end confdefs.h. */
5147 rm -f conftest.
$ac_objext conftest
$ac_exeext
5148 if { (ac_try
="$ac_link"
5150 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5151 *) ac_try_echo=$ac_try;;
5153 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5154 $as_echo "$ac_try_echo") >&5
5155 (eval "$ac_link") 2>conftest.er1
5157 grep -v '^ *+' conftest.er1 >conftest.err
5159 cat conftest.err >&5
5160 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5161 (exit $ac_status); } && {
5162 test -z "$ac_c_werror_flag" ||
5163 test ! -s conftest.err
5164 } && test -s conftest$ac_exeext && {
5165 test "$cross_compiling" = yes ||
5166 $as_test_x conftest$ac_exeext
5168 { $as_echo "$as_me:$LINENO: result: yes" >&5
5169 $as_echo "yes" >&6; }; perl_ok=yes
5171 $as_echo "$as_me: failed program was:" >&5
5172 sed 's/^/| /' conftest.$ac_ext >&5
5174 { $as_echo "$as_me:$LINENO: result: no: PERL DISABLED" >&5
5175 $as_echo "no: PERL DISABLED" >&6; }; perl_ok=no
5178 rm -rf conftest.dSYM
5179 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5180 conftest$ac_exeext conftest.$ac_ext
5183 LDFLAGS=$ldflags_save
5184 if test $perl_ok = yes; then
5185 if test "X$perlcppflags" != "X"; then
5186 PERL_CFLAGS=`echo "$perlcppflags" |
sed -e 's/-pipe //' -e 's/-W[^ ]*//'`
5188 if test "X$perlldflags" != "X"; then
5189 LDFLAGS="$perlldflags $LDFLAGS"
5192 PERL_SRC="auto/if_perl.c if_perlsfio.c"
5193 PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o"
5194 PERL_PRO="if_perl.pro if_perlsfio.pro"
5195 cat >>confdefs.h <<\_ACEOF
5202 { $as_echo "$as_me:$LINENO: result: >>> too old; need Perl version 5.003_01 or later <<<" >&5
5203 $as_echo ">>> too old; need Perl version 5.003_01 or later <<<" >&6; }
5207 if test "x$MACOSX" = "xyes"; then
5208 dir=/System/Library/Perl
5209 darwindir=$dir/darwin
5210 if test -d $darwindir; then
5213 dir=/System/Library/Perl/5.8.1
5214 darwindir=$dir/darwin-thread-multi-2level
5215 if test -d $darwindir; then
5219 if test -n "$PERL"; then
5221 PERL_CFLAGS="-DFEAT_PERL -I$darwindir/CORE"
5222 PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o $darwindir/auto/DynaLoader/DynaLoader.a"
5223 PERL_LIBS="-L$darwindir/CORE -lperl"
5234 { $as_echo "$as_me:$LINENO: checking --enable-eclinterp argument" >&5
5235 $as_echo_n "checking --enable-eclinterp argument... " >&6; }
5236 # Check whether --enable-eclinterp was given.
5237 if test "${enable_eclinterp+set}" = set; then
5238 enableval=$enable_eclinterp;
5240 enable_eclinterp="no"
5243 { $as_echo "$as_me:$LINENO: result: $enable_eclinterp" >&5
5244 $as_echo "$enable_eclinterp" >&6; }
5245 if test "$enable_eclinterp" = "yes"; then
5246 # Extract the first word of "ecl-config", so it can be a program name with args.
5247 set dummy ecl-config; ac_word=$2
5248 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5249 $as_echo_n "checking for $ac_word... " >&6; }
5250 if test "${ac_cv_path_vi_cv_path_ecl_config+set}" = set; then
5251 $as_echo_n "(cached) " >&6
5253 case $vi_cv_path_ecl_config in
5255 ac_cv_path_vi_cv_path_ecl_config="$vi_cv_path_ecl_config" # Let the user override the test with a path.
5258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5262 test -z "$as_dir" && as_dir=.
5263 for ac_exec_ext in '' $ac_executable_extensions; do
5264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5265 ac_cv_path_vi_cv_path_ecl_config="$as_dir/$ac_word$ac_exec_ext"
5266 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5276 vi_cv_path_ecl_config=$ac_cv_path_vi_cv_path_ecl_config
5277 if test -n "$vi_cv_path_ecl_config"; then
5278 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_ecl_config" >&5
5279 $as_echo "$vi_cv_path_ecl_config" >&6; }
5281 { $as_echo "$as_me:$LINENO: result: no" >&5
5282 $as_echo "no" >&6; }
5286 if test "X$vi_cv_path_ecl_config" != "X"; then
5288 if test "${vi_cv_path_ecl_plibs+set}" = set; then
5289 $as_echo_n "(cached) " >&6
5292 vi_cv_path_ecl_plibs=`ecl-config
--libs`
5297 ECL_LIBS="${vi_cv_path_ecl_plibs}"
5298 if test "${vi_cv_path_ecl_cflags+set}" = set; then
5299 $as_echo_n "(cached) " >&6
5302 vi_cv_path_ecl_cflags=`ecl-config
--cflags`
5306 ECL_CFLAGS="${vi_cv_path_ecl_cflags}"
5309 ECL_OBJ="objects/if_ecl.o"
5311 { $as_echo "$as_me:$LINENO: checking if compile and link flags for ECL are sane" >&5
5312 $as_echo_n "checking if compile and link flags for ECL are sane... " >&6; }
5315 CFLAGS="$CFLAGS $ECL_CFLAGS"
5316 LIBS="$LIBS $ECL_LIBS"
5317 cat >conftest.$ac_ext <<_ACEOF
5320 cat confdefs.h >>conftest.$ac_ext
5321 cat >>conftest.$ac_ext <<_ACEOF
5322 /* end confdefs.h. */
5332 rm -f conftest.$ac_objext conftest$ac_exeext
5333 if { (ac_try="$ac_link"
5335 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5336 *) ac_try_echo
=$ac_try;;
5338 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5339 $as_echo "$ac_try_echo") >&5
5340 (eval "$ac_link") 2>conftest.er1
5342 grep -v '^ *+' conftest.er1
>conftest.err
5344 cat conftest.err
>&5
5345 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346 (exit $ac_status); } && {
5347 test -z "$ac_c_werror_flag" ||
5348 test ! -s conftest.err
5349 } && test -s conftest
$ac_exeext && {
5350 test "$cross_compiling" = yes ||
5351 $as_test_x conftest
$ac_exeext
5353 { $as_echo "$as_me:$LINENO: result: yes" >&5
5354 $as_echo "yes" >&6; }; ecl_ok
=yes
5356 $as_echo "$as_me: failed program was:" >&5
5357 sed 's/^/| /' conftest.
$ac_ext >&5
5359 { $as_echo "$as_me:$LINENO: result: no: ECL DISABLED" >&5
5360 $as_echo "no: ECL DISABLED" >&6; }; ecl_ok
=no
5363 rm -rf conftest.dSYM
5364 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5365 conftest
$ac_exeext conftest.
$ac_ext
5368 if test $ecl_ok = yes; then
5369 cat >>confdefs.h
<<\_ACEOF
5386 { $as_echo "$as_me:$LINENO: checking --enable-pythoninterp argument" >&5
5387 $as_echo_n "checking --enable-pythoninterp argument... " >&6; }
5388 # Check whether --enable-pythoninterp was given.
5389 if test "${enable_pythoninterp+set}" = set; then
5390 enableval
=$enable_pythoninterp;
5392 enable_pythoninterp
="no"
5395 { $as_echo "$as_me:$LINENO: result: $enable_pythoninterp" >&5
5396 $as_echo "$enable_pythoninterp" >&6; }
5397 if test "$enable_pythoninterp" = "yes"; then
5398 # Extract the first word of "python", so it can be a program name with args.
5399 set dummy python
; ac_word
=$2
5400 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5401 $as_echo_n "checking for $ac_word... " >&6; }
5402 if test "${ac_cv_path_vi_cv_path_python+set}" = set; then
5403 $as_echo_n "(cached) " >&6
5405 case $vi_cv_path_python in
5407 ac_cv_path_vi_cv_path_python
="$vi_cv_path_python" # Let the user override the test with a path.
5410 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5414 test -z "$as_dir" && as_dir
=.
5415 for ac_exec_ext
in '' $ac_executable_extensions; do
5416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5417 ac_cv_path_vi_cv_path_python
="$as_dir/$ac_word$ac_exec_ext"
5418 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5428 vi_cv_path_python
=$ac_cv_path_vi_cv_path_python
5429 if test -n "$vi_cv_path_python"; then
5430 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_python" >&5
5431 $as_echo "$vi_cv_path_python" >&6; }
5433 { $as_echo "$as_me:$LINENO: result: no" >&5
5434 $as_echo "no" >&6; }
5438 if test "X$vi_cv_path_python" != "X"; then
5440 { $as_echo "$as_me:$LINENO: checking Python version" >&5
5441 $as_echo_n "checking Python version... " >&6; }
5442 if test "${vi_cv_var_python_version+set}" = set; then
5443 $as_echo_n "(cached) " >&6
5445 vi_cv_var_python_version
=`
5446 ${vi_cv_path_python} -c 'import sys; print sys.version[:3]'`
5449 { $as_echo "$as_me:$LINENO: result: $vi_cv_var_python_version" >&5
5450 $as_echo "$vi_cv_var_python_version" >&6; }
5452 { $as_echo "$as_me:$LINENO: checking Python is 1.4 or better" >&5
5453 $as_echo_n "checking Python is 1.4 or better... " >&6; }
5454 if ${vi_cv_path_python} -c \
5455 "import sys; sys.exit(${vi_cv_var_python_version} < 1.4)"
5457 { $as_echo "$as_me:$LINENO: result: yep" >&5
5458 $as_echo "yep" >&6; }
5460 { $as_echo "$as_me:$LINENO: checking Python's install prefix" >&5
5461 $as_echo_n "checking Python's install prefix... " >&6; }
5462 if test "${vi_cv_path_python_pfx+set}" = set; then
5463 $as_echo_n "(cached) " >&6
5465 vi_cv_path_python_pfx
=`
5466 ${vi_cv_path_python} -c \
5467 "import sys; print sys.prefix"`
5469 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_python_pfx" >&5
5470 $as_echo "$vi_cv_path_python_pfx" >&6; }
5472 { $as_echo "$as_me:$LINENO: checking Python's execution prefix" >&5
5473 $as_echo_n "checking Python's execution prefix... " >&6; }
5474 if test "${vi_cv_path_python_epfx+set}" = set; then
5475 $as_echo_n "(cached) " >&6
5477 vi_cv_path_python_epfx
=`
5478 ${vi_cv_path_python} -c \
5479 "import sys; print sys.exec_prefix"`
5481 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_python_epfx" >&5
5482 $as_echo "$vi_cv_path_python_epfx" >&6; }
5485 if test "${vi_cv_path_pythonpath+set}" = set; then
5486 $as_echo_n "(cached) " >&6
5488 vi_cv_path_pythonpath
=`
5490 ${vi_cv_path_python} -c \
5491 "import sys, string; print string.join(sys.path,':')"`
5497 # Check whether --with-python-config-dir was given.
5498 if test "${with_python_config_dir+set}" = set; then
5499 withval
=$with_python_config_dir; vi_cv_path_python_conf
="${withval}"
5503 { $as_echo "$as_me:$LINENO: checking Python's configuration directory" >&5
5504 $as_echo_n "checking Python's configuration directory... " >&6; }
5505 if test "${vi_cv_path_python_conf+set}" = set; then
5506 $as_echo_n "(cached) " >&6
5509 vi_cv_path_python_conf
=
5510 for path
in "${vi_cv_path_python_pfx}" "${vi_cv_path_python_epfx}"; do
5511 for subdir
in lib64 lib share
; do
5512 d
="${path}/${subdir}/python${vi_cv_var_python_version}/config"
5513 if test -d "$d" && test -f "$d/config.c"; then
5514 vi_cv_path_python_conf
="$d"
5520 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_python_conf" >&5
5521 $as_echo "$vi_cv_path_python_conf" >&6; }
5523 PYTHON_CONFDIR
="${vi_cv_path_python_conf}"
5525 if test "X$PYTHON_CONFDIR" = "X"; then
5526 { $as_echo "$as_me:$LINENO: result: can't find it!" >&5
5527 $as_echo "can't find it!" >&6; }
5530 if test "${vi_cv_path_python_plibs+set}" = set; then
5531 $as_echo_n "(cached) " >&6
5535 tmp_mkf
="$pwd/config-PyMake$$"
5536 cat -- "${PYTHON_CONFDIR}/Makefile" - <<'eof' >"${tmp_mkf}"
5538 @echo "python_MODLIBS='$(MODLIBS)'"
5539 @echo "python_LIBS='$(LIBS)'"
5540 @echo "python_SYSLIBS='$(SYSLIBS)'"
5541 @echo "python_LINKFORSHARED='$(LINKFORSHARED)'"
5543 eval "`cd ${PYTHON_CONFDIR} && make -f "${tmp_mkf}" __ | sed '/ directory /d'`"
5544 rm -f -- "${tmp_mkf}"
5545 if test "x$MACOSX" = "xyes" && ${vi_cv_path_python} -c \
5546 "import sys; sys.exit(${vi_cv_var_python_version} < 2.3)"; then
5547 vi_cv_path_python_plibs
="-framework Python"
5549 if test "${vi_cv_var_python_version}" = "1.4"; then
5550 vi_cv_path_python_plibs
="${PYTHON_CONFDIR}/libModules.a ${PYTHON_CONFDIR}/libPython.a ${PYTHON_CONFDIR}/libObjects.a ${PYTHON_CONFDIR}/libParser.a"
5552 vi_cv_path_python_plibs
="-L${PYTHON_CONFDIR} -lpython${vi_cv_var_python_version}"
5554 vi_cv_path_python_plibs
="${vi_cv_path_python_plibs} ${python_MODLIBS} ${python_LIBS} ${python_SYSLIBS} ${python_LINKFORSHARED}"
5555 vi_cv_path_python_plibs
=`echo $vi_cv_path_python_plibs | sed s/-ltermcap//`
5561 PYTHON_LIBS
="${vi_cv_path_python_plibs}"
5562 if test "${vi_cv_path_python_pfx}" = "${vi_cv_path_python_epfx}"; then
5563 PYTHON_CFLAGS
="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version}"
5565 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}"
5567 PYTHON_SRC
="if_python.c"
5568 if test "x$MACOSX" = "xyes"; then
5569 PYTHON_OBJ
="objects/if_python.o"
5571 PYTHON_OBJ
="objects/if_python.o objects/py_config.o"
5573 if test "${vi_cv_var_python_version}" = "1.4"; then
5574 PYTHON_OBJ
="$PYTHON_OBJ objects/py_getpath.o"
5576 PYTHON_GETPATH_CFLAGS
="-DPYTHONPATH='\"${vi_cv_path_pythonpath}\"' -DPREFIX='\"${vi_cv_path_python_pfx}\"' -DEXEC_PREFIX='\"${vi_cv_path_python_epfx}\"'"
5578 { $as_echo "$as_me:$LINENO: checking if -pthread should be used" >&5
5579 $as_echo_n "checking if -pthread should be used... " >&6; }
5582 if test "`(uname) 2>/dev/null`" != Darwin
; then
5583 test "$GCC" = yes && threadsafe_flag
="-pthread"
5584 if test "`(uname) 2>/dev/null`" = FreeBSD
; then
5585 threadsafe_flag
="-D_THREAD_SAFE"
5586 thread_lib
="-pthread"
5590 if test -n "$threadsafe_flag"; then
5592 CFLAGS
="$CFLAGS $threadsafe_flag"
5593 LIBS
="$LIBS $thread_lib"
5594 cat >conftest.
$ac_ext <<_ACEOF
5597 cat confdefs.h
>>conftest.
$ac_ext
5598 cat >>conftest.
$ac_ext <<_ACEOF
5599 /* end confdefs.h. */
5609 rm -f conftest.
$ac_objext conftest
$ac_exeext
5610 if { (ac_try
="$ac_link"
5612 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5613 *) ac_try_echo=$ac_try;;
5615 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5616 $as_echo "$ac_try_echo") >&5
5617 (eval "$ac_link") 2>conftest.er1
5619 grep -v '^ *+' conftest.er1 >conftest.err
5621 cat conftest.err >&5
5622 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5623 (exit $ac_status); } && {
5624 test -z "$ac_c_werror_flag" ||
5625 test ! -s conftest.err
5626 } && test -s conftest$ac_exeext && {
5627 test "$cross_compiling" = yes ||
5628 $as_test_x conftest$ac_exeext
5630 { $as_echo "$as_me:$LINENO: result: yes" >&5
5631 $as_echo "yes" >&6; }; PYTHON_CFLAGS="$PYTHON_CFLAGS $threadsafe_flag"
5633 $as_echo "$as_me: failed program was:" >&5
5634 sed 's/^/| /' conftest.$ac_ext >&5
5636 { $as_echo "$as_me:$LINENO: result: no" >&5
5637 $as_echo "no" >&6; }; LIBS=$libs_save_old
5641 rm -rf conftest.dSYM
5642 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5643 conftest$ac_exeext conftest.$ac_ext
5646 { $as_echo "$as_me:$LINENO: result: no" >&5
5647 $as_echo "no" >&6; }
5650 { $as_echo "$as_me:$LINENO: checking if compile and link flags for Python are sane" >&5
5651 $as_echo_n "checking if compile and link flags for Python are sane... " >&6; }
5654 CFLAGS="$CFLAGS $PYTHON_CFLAGS"
5655 LIBS="$LIBS $PYTHON_LIBS"
5656 cat >conftest.$ac_ext <<_ACEOF
5659 cat confdefs.h >>conftest.$ac_ext
5660 cat >>conftest.$ac_ext <<_ACEOF
5661 /* end confdefs.h. */
5671 rm -f conftest.$ac_objext conftest$ac_exeext
5672 if { (ac_try="$ac_link"
5674 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5675 *) ac_try_echo
=$ac_try;;
5677 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5678 $as_echo "$ac_try_echo") >&5
5679 (eval "$ac_link") 2>conftest.er1
5681 grep -v '^ *+' conftest.er1
>conftest.err
5683 cat conftest.err
>&5
5684 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5685 (exit $ac_status); } && {
5686 test -z "$ac_c_werror_flag" ||
5687 test ! -s conftest.err
5688 } && test -s conftest
$ac_exeext && {
5689 test "$cross_compiling" = yes ||
5690 $as_test_x conftest
$ac_exeext
5692 { $as_echo "$as_me:$LINENO: result: yes" >&5
5693 $as_echo "yes" >&6; }; python_ok
=yes
5695 $as_echo "$as_me: failed program was:" >&5
5696 sed 's/^/| /' conftest.
$ac_ext >&5
5698 { $as_echo "$as_me:$LINENO: result: no: PYTHON DISABLED" >&5
5699 $as_echo "no: PYTHON DISABLED" >&6; }; python_ok
=no
5702 rm -rf conftest.dSYM
5703 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5704 conftest
$ac_exeext conftest.
$ac_ext
5707 if test $python_ok = yes; then
5708 cat >>confdefs.h
<<\_ACEOF
5709 #define FEAT_PYTHON 1
5722 { $as_echo "$as_me:$LINENO: result: too old" >&5
5723 $as_echo "too old" >&6; }
5734 { $as_echo "$as_me:$LINENO: checking --enable-tclinterp argument" >&5
5735 $as_echo_n "checking --enable-tclinterp argument... " >&6; }
5736 # Check whether --enable-tclinterp was given.
5737 if test "${enable_tclinterp+set}" = set; then
5738 enableval
=$enable_tclinterp;
5740 enable_tclinterp
="no"
5743 { $as_echo "$as_me:$LINENO: result: $enable_tclinterp" >&5
5744 $as_echo "$enable_tclinterp" >&6; }
5746 if test "$enable_tclinterp" = "yes"; then
5748 { $as_echo "$as_me:$LINENO: checking --with-tclsh argument" >&5
5749 $as_echo_n "checking --with-tclsh argument... " >&6; }
5751 # Check whether --with-tclsh was given.
5752 if test "${with_tclsh+set}" = set; then
5753 withval
=$with_tclsh; tclsh_name
="$withval"; { $as_echo "$as_me:$LINENO: result: $tclsh_name" >&5
5754 $as_echo "$tclsh_name" >&6; }
5756 tclsh_name
="tclsh8.5"; { $as_echo "$as_me:$LINENO: result: no" >&5
5757 $as_echo "no" >&6; }
5760 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5761 set dummy
$tclsh_name; ac_word
=$2
5762 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5763 $as_echo_n "checking for $ac_word... " >&6; }
5764 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5765 $as_echo_n "(cached) " >&6
5767 case $vi_cv_path_tcl in
5769 ac_cv_path_vi_cv_path_tcl
="$vi_cv_path_tcl" # Let the user override the test with a path.
5772 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5776 test -z "$as_dir" && as_dir
=.
5777 for ac_exec_ext
in '' $ac_executable_extensions; do
5778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5779 ac_cv_path_vi_cv_path_tcl
="$as_dir/$ac_word$ac_exec_ext"
5780 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5790 vi_cv_path_tcl
=$ac_cv_path_vi_cv_path_tcl
5791 if test -n "$vi_cv_path_tcl"; then
5792 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5793 $as_echo "$vi_cv_path_tcl" >&6; }
5795 { $as_echo "$as_me:$LINENO: result: no" >&5
5796 $as_echo "no" >&6; }
5802 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.5"; then
5803 tclsh_name
="tclsh8.4"
5804 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5805 set dummy
$tclsh_name; ac_word
=$2
5806 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5807 $as_echo_n "checking for $ac_word... " >&6; }
5808 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5809 $as_echo_n "(cached) " >&6
5811 case $vi_cv_path_tcl in
5813 ac_cv_path_vi_cv_path_tcl
="$vi_cv_path_tcl" # Let the user override the test with a path.
5816 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5820 test -z "$as_dir" && as_dir
=.
5821 for ac_exec_ext
in '' $ac_executable_extensions; do
5822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5823 ac_cv_path_vi_cv_path_tcl
="$as_dir/$ac_word$ac_exec_ext"
5824 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5834 vi_cv_path_tcl
=$ac_cv_path_vi_cv_path_tcl
5835 if test -n "$vi_cv_path_tcl"; then
5836 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5837 $as_echo "$vi_cv_path_tcl" >&6; }
5839 { $as_echo "$as_me:$LINENO: result: no" >&5
5840 $as_echo "no" >&6; }
5845 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.4"; then
5846 tclsh_name
="tclsh8.2"
5847 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5848 set dummy
$tclsh_name; ac_word
=$2
5849 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5850 $as_echo_n "checking for $ac_word... " >&6; }
5851 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5852 $as_echo_n "(cached) " >&6
5854 case $vi_cv_path_tcl in
5856 ac_cv_path_vi_cv_path_tcl
="$vi_cv_path_tcl" # Let the user override the test with a path.
5859 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5863 test -z "$as_dir" && as_dir
=.
5864 for ac_exec_ext
in '' $ac_executable_extensions; do
5865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5866 ac_cv_path_vi_cv_path_tcl
="$as_dir/$ac_word$ac_exec_ext"
5867 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5877 vi_cv_path_tcl
=$ac_cv_path_vi_cv_path_tcl
5878 if test -n "$vi_cv_path_tcl"; then
5879 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5880 $as_echo "$vi_cv_path_tcl" >&6; }
5882 { $as_echo "$as_me:$LINENO: result: no" >&5
5883 $as_echo "no" >&6; }
5888 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.2"; then
5889 tclsh_name
="tclsh8.0"
5890 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5891 set dummy
$tclsh_name; ac_word
=$2
5892 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5893 $as_echo_n "checking for $ac_word... " >&6; }
5894 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5895 $as_echo_n "(cached) " >&6
5897 case $vi_cv_path_tcl in
5899 ac_cv_path_vi_cv_path_tcl
="$vi_cv_path_tcl" # Let the user override the test with a path.
5902 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5906 test -z "$as_dir" && as_dir
=.
5907 for ac_exec_ext
in '' $ac_executable_extensions; do
5908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5909 ac_cv_path_vi_cv_path_tcl
="$as_dir/$ac_word$ac_exec_ext"
5910 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5920 vi_cv_path_tcl
=$ac_cv_path_vi_cv_path_tcl
5921 if test -n "$vi_cv_path_tcl"; then
5922 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5923 $as_echo "$vi_cv_path_tcl" >&6; }
5925 { $as_echo "$as_me:$LINENO: result: no" >&5
5926 $as_echo "no" >&6; }
5931 if test "X$vi_cv_path_tcl" = "X"; then
5933 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5934 set dummy
$tclsh_name; ac_word
=$2
5935 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5936 $as_echo_n "checking for $ac_word... " >&6; }
5937 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5938 $as_echo_n "(cached) " >&6
5940 case $vi_cv_path_tcl in
5942 ac_cv_path_vi_cv_path_tcl
="$vi_cv_path_tcl" # Let the user override the test with a path.
5945 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5949 test -z "$as_dir" && as_dir
=.
5950 for ac_exec_ext
in '' $ac_executable_extensions; do
5951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5952 ac_cv_path_vi_cv_path_tcl
="$as_dir/$ac_word$ac_exec_ext"
5953 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5963 vi_cv_path_tcl
=$ac_cv_path_vi_cv_path_tcl
5964 if test -n "$vi_cv_path_tcl"; then
5965 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5966 $as_echo "$vi_cv_path_tcl" >&6; }
5968 { $as_echo "$as_me:$LINENO: result: no" >&5
5969 $as_echo "no" >&6; }
5974 if test "X$vi_cv_path_tcl" != "X"; then
5975 { $as_echo "$as_me:$LINENO: checking Tcl version" >&5
5976 $as_echo_n "checking Tcl version... " >&6; }
5977 if echo 'exit [expr [info tclversion] < 8.0]' |
$vi_cv_path_tcl - ; then
5978 tclver
=`echo 'puts [info tclversion]' | $vi_cv_path_tcl -`
5979 { $as_echo "$as_me:$LINENO: result: $tclver - OK" >&5
5980 $as_echo "$tclver - OK" >&6; };
5981 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 -`
5983 { $as_echo "$as_me:$LINENO: checking for location of Tcl include" >&5
5984 $as_echo_n "checking for location of Tcl include... " >&6; }
5985 if test "x$MACOSX" != "xyes"; then
5986 tclinc
="$tclloc/include $tclloc/include/tcl $tclloc/include/tcl$tclver /usr/local/include /usr/local/include/tcl$tclver /usr/include /usr/include/tcl$tclver"
5988 tclinc
="/System/Library/Frameworks/Tcl.framework/Headers"
5991 for try
in $tclinc; do
5992 if test -f "$try/tcl.h"; then
5993 { $as_echo "$as_me:$LINENO: result: $try/tcl.h" >&5
5994 $as_echo "$try/tcl.h" >&6; }
5999 if test -z "$TCL_INC"; then
6000 { $as_echo "$as_me:$LINENO: result: <not found>" >&5
6001 $as_echo "<not found>" >&6; }
6004 if test -z "$SKIP_TCL"; then
6005 { $as_echo "$as_me:$LINENO: checking for location of tclConfig.sh script" >&5
6006 $as_echo_n "checking for location of tclConfig.sh script... " >&6; }
6007 if test "x$MACOSX" != "xyes"; then
6008 tclcnf
=`echo $tclinc | sed s/include/lib/g`
6009 tclcnf
="$tclcnf `echo $tclinc | sed s/include/lib64/g`"
6011 tclcnf
="/System/Library/Frameworks/Tcl.framework"
6013 for try
in $tclcnf; do
6014 if test -f $try/tclConfig.sh
; then
6015 { $as_echo "$as_me:$LINENO: result: $try/tclConfig.sh" >&5
6016 $as_echo "$try/tclConfig.sh" >&6; }
6018 TCL_LIBS
=`eval echo "$TCL_LIB_SPEC $TCL_LIBS"`
6019 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'`
6023 if test -z "$TCL_LIBS"; then
6024 { $as_echo "$as_me:$LINENO: result: <not found>" >&5
6025 $as_echo "<not found>" >&6; }
6026 { $as_echo "$as_me:$LINENO: checking for Tcl library by myself" >&5
6027 $as_echo_n "checking for Tcl library by myself... " >&6; }
6028 tcllib
=`echo $tclinc | sed s/include/lib/g`
6029 tcllib
="$tcllib `echo $tclinc | sed s/include/lib64/g`"
6030 for ext
in .so .a
; do
6031 for ver
in "" $tclver ; do
6032 for try
in $tcllib ; do
6034 if test -f $try/lib
$trylib ; then
6035 { $as_echo "$as_me:$LINENO: result: $try/lib$trylib" >&5
6036 $as_echo "$try/lib$trylib" >&6; }
6037 TCL_LIBS
="-L$try -ltcl$ver -ldl -lm"
6038 if test "`(uname) 2>/dev/null`" = SunOS
&&
6039 uname
-r |
grep '^5' >/dev
/null
; then
6040 TCL_LIBS
="$TCL_LIBS -R $try"
6047 if test -z "$TCL_LIBS"; then
6048 { $as_echo "$as_me:$LINENO: result: <not found>" >&5
6049 $as_echo "<not found>" >&6; }
6053 if test -z "$SKIP_TCL"; then
6054 cat >>confdefs.h
<<\_ACEOF
6059 TCL_OBJ
=objects
/if_tcl.o
6061 TCL_CFLAGS
="-I$TCL_INC $TCL_DEFS"
6065 { $as_echo "$as_me:$LINENO: result: too old; need Tcl version 8.0 or later" >&5
6066 $as_echo "too old; need Tcl version 8.0 or later" >&6; }
6076 { $as_echo "$as_me:$LINENO: checking --enable-rubyinterp argument" >&5
6077 $as_echo_n "checking --enable-rubyinterp argument... " >&6; }
6078 # Check whether --enable-rubyinterp was given.
6079 if test "${enable_rubyinterp+set}" = set; then
6080 enableval
=$enable_rubyinterp;
6082 enable_rubyinterp
="no"
6085 { $as_echo "$as_me:$LINENO: result: $enable_rubyinterp" >&5
6086 $as_echo "$enable_rubyinterp" >&6; }
6087 if test "$enable_rubyinterp" = "yes"; then
6088 { $as_echo "$as_me:$LINENO: checking --with-ruby-command argument" >&5
6089 $as_echo_n "checking --with-ruby-command argument... " >&6; }
6091 # Check whether --with-ruby-command was given.
6092 if test "${with_ruby_command+set}" = set; then
6093 withval
=$with_ruby_command; RUBY_CMD
="$withval"; { $as_echo "$as_me:$LINENO: result: $RUBY_CMD" >&5
6094 $as_echo "$RUBY_CMD" >&6; }
6096 RUBY_CMD
="ruby"; { $as_echo "$as_me:$LINENO: result: defaulting to $RUBY_CMD" >&5
6097 $as_echo "defaulting to $RUBY_CMD" >&6; }
6101 # Extract the first word of "$RUBY_CMD", so it can be a program name with args.
6102 set dummy
$RUBY_CMD; ac_word
=$2
6103 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6104 $as_echo_n "checking for $ac_word... " >&6; }
6105 if test "${ac_cv_path_vi_cv_path_ruby+set}" = set; then
6106 $as_echo_n "(cached) " >&6
6108 case $vi_cv_path_ruby in
6110 ac_cv_path_vi_cv_path_ruby
="$vi_cv_path_ruby" # Let the user override the test with a path.
6113 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6117 test -z "$as_dir" && as_dir
=.
6118 for ac_exec_ext
in '' $ac_executable_extensions; do
6119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6120 ac_cv_path_vi_cv_path_ruby
="$as_dir/$ac_word$ac_exec_ext"
6121 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6131 vi_cv_path_ruby
=$ac_cv_path_vi_cv_path_ruby
6132 if test -n "$vi_cv_path_ruby"; then
6133 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_ruby" >&5
6134 $as_echo "$vi_cv_path_ruby" >&6; }
6136 { $as_echo "$as_me:$LINENO: result: no" >&5
6137 $as_echo "no" >&6; }
6141 if test "X$vi_cv_path_ruby" != "X"; then
6142 { $as_echo "$as_me:$LINENO: checking Ruby version" >&5
6143 $as_echo_n "checking Ruby version... " >&6; }
6144 if $vi_cv_path_ruby -e '(VERSION rescue RUBY_VERSION) >= "1.6.0" or exit 1' >/dev
/null
2>/dev
/null
; then
6145 { $as_echo "$as_me:$LINENO: result: OK" >&5
6146 $as_echo "OK" >&6; }
6147 { $as_echo "$as_me:$LINENO: checking Ruby header files" >&5
6148 $as_echo_n "checking Ruby header files... " >&6; }
6149 rubyhdrdir
=`$vi_cv_path_ruby -r mkmf -e 'print Config::CONFIG["rubyhdrdir"] || Config::CONFIG["archdir"] || $hdrdir' 2>/dev/null`
6150 if test "X$rubyhdrdir" != "X"; then
6151 { $as_echo "$as_me:$LINENO: result: $rubyhdrdir" >&5
6152 $as_echo "$rubyhdrdir" >&6; }
6153 RUBY_CFLAGS
="-I$rubyhdrdir"
6154 rubyarch
=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["arch"]'`
6155 if test -d "$rubyhdrdir/$rubyarch"; then
6156 RUBY_CFLAGS
="$RUBY_CFLAGS -I$rubyhdrdir/$rubyarch"
6158 rubyversion
=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["ruby_version"].gsub(/\./, "")[0,2]'`
6159 RUBY_CFLAGS
="$RUBY_CFLAGS -DRUBY_VERSION=$rubyversion"
6160 rubylibs
=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LIBS"]'`
6161 if test "X$rubylibs" != "X"; then
6162 RUBY_LIBS
="$rubylibs"
6164 librubyarg
=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["LIBRUBYARG"])'`
6165 if test -f "$rubyhdrdir/$librubyarg"; then
6166 librubyarg
="$rubyhdrdir/$librubyarg"
6168 rubylibdir
=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["libdir"])'`
6169 if test -f "$rubylibdir/$librubyarg"; then
6170 librubyarg
="$rubylibdir/$librubyarg"
6171 elif test "$librubyarg" = "libruby.a"; then
6174 librubyarg
=`$vi_cv_path_ruby -r rbconfig -e "print '$librubyarg'.gsub(/-L\./, %'-L#{Config.expand(Config::CONFIG[\"libdir\"])}')"`
6178 if test "X$librubyarg" != "X"; then
6179 RUBY_LIBS
="$librubyarg $RUBY_LIBS"
6181 rubyldflags
=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LDFLAGS"]'`
6182 if test "X$rubyldflags" != "X"; then
6183 rubyldflags
=`echo "$rubyldflags" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//'`
6184 if test "X$rubyldflags" != "X"; then
6185 LDFLAGS
="$rubyldflags $LDFLAGS"
6188 RUBY_SRC
="if_ruby.c"
6189 RUBY_OBJ
="objects/if_ruby.o"
6190 RUBY_PRO
="if_ruby.pro"
6191 cat >>confdefs.h
<<\_ACEOF
6196 { $as_echo "$as_me:$LINENO: result: not found; disabling Ruby" >&5
6197 $as_echo "not found; disabling Ruby" >&6; }
6200 { $as_echo "$as_me:$LINENO: result: too old; need Ruby version 1.6.0 or later" >&5
6201 $as_echo "too old; need Ruby version 1.6.0 or later" >&6; }
6211 { $as_echo "$as_me:$LINENO: checking --enable-cscope argument" >&5
6212 $as_echo_n "checking --enable-cscope argument... " >&6; }
6213 # Check whether --enable-cscope was given.
6214 if test "${enable_cscope+set}" = set; then
6215 enableval
=$enable_cscope;
6220 { $as_echo "$as_me:$LINENO: result: $enable_cscope" >&5
6221 $as_echo "$enable_cscope" >&6; }
6222 if test "$enable_cscope" = "yes"; then
6223 cat >>confdefs.h
<<\_ACEOF
6224 #define FEAT_CSCOPE 1
6229 { $as_echo "$as_me:$LINENO: checking --enable-workshop argument" >&5
6230 $as_echo_n "checking --enable-workshop argument... " >&6; }
6231 # Check whether --enable-workshop was given.
6232 if test "${enable_workshop+set}" = set; then
6233 enableval
=$enable_workshop;
6235 enable_workshop
="no"
6238 { $as_echo "$as_me:$LINENO: result: $enable_workshop" >&5
6239 $as_echo "$enable_workshop" >&6; }
6240 if test "$enable_workshop" = "yes"; then
6241 cat >>confdefs.h
<<\_ACEOF
6242 #define FEAT_SUN_WORKSHOP 1
6245 WORKSHOP_SRC
="workshop.c integration.c"
6247 WORKSHOP_OBJ
="objects/workshop.o objects/integration.o"
6249 if test "${enable_gui-xxx}" = xxx
; then
6254 { $as_echo "$as_me:$LINENO: checking --disable-netbeans argument" >&5
6255 $as_echo_n "checking --disable-netbeans argument... " >&6; }
6256 # Check whether --enable-netbeans was given.
6257 if test "${enable_netbeans+set}" = set; then
6258 enableval
=$enable_netbeans;
6260 enable_netbeans
="yes"
6263 if test "$enable_netbeans" = "yes"; then
6264 { $as_echo "$as_me:$LINENO: result: no" >&5
6265 $as_echo "no" >&6; }
6267 { $as_echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
6268 $as_echo_n "checking for socket in -lsocket... " >&6; }
6269 if test "${ac_cv_lib_socket_socket+set}" = set; then
6270 $as_echo_n "(cached) " >&6
6272 ac_check_lib_save_LIBS
=$LIBS
6273 LIBS
="-lsocket $LIBS"
6274 cat >conftest.
$ac_ext <<_ACEOF
6277 cat confdefs.h
>>conftest.
$ac_ext
6278 cat >>conftest.
$ac_ext <<_ACEOF
6279 /* end confdefs.h. */
6281 /* Override any GCC internal prototype to avoid an error.
6282 Use char because int might match the return type of a GCC
6283 builtin and then its argument prototype would still apply. */
6296 rm -f conftest.
$ac_objext conftest
$ac_exeext
6297 if { (ac_try
="$ac_link"
6299 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6300 *) ac_try_echo=$ac_try;;
6302 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6303 $as_echo "$ac_try_echo") >&5
6304 (eval "$ac_link") 2>conftest.er1
6306 grep -v '^ *+' conftest.er1 >conftest.err
6308 cat conftest.err >&5
6309 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6310 (exit $ac_status); } && {
6311 test -z "$ac_c_werror_flag" ||
6312 test ! -s conftest.err
6313 } && test -s conftest$ac_exeext && {
6314 test "$cross_compiling" = yes ||
6315 $as_test_x conftest$ac_exeext
6317 ac_cv_lib_socket_socket=yes
6319 $as_echo "$as_me: failed program was:" >&5
6320 sed 's/^/| /' conftest.$ac_ext >&5
6322 ac_cv_lib_socket_socket=no
6325 rm -rf conftest.dSYM
6326 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6327 conftest$ac_exeext conftest.$ac_ext
6328 LIBS=$ac_check_lib_save_LIBS
6330 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
6331 $as_echo "$ac_cv_lib_socket_socket" >&6; }
6332 if test "x$ac_cv_lib_socket_socket" = x""yes; then
6333 cat >>confdefs.h <<_ACEOF
6334 #define HAVE_LIBSOCKET 1
6337 LIBS="-lsocket $LIBS"
6342 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6343 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
6344 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6345 $as_echo_n "(cached) " >&6
6347 ac_check_lib_save_LIBS=$LIBS
6349 cat >conftest.$ac_ext <<_ACEOF
6352 cat confdefs.h >>conftest.$ac_ext
6353 cat >>conftest.$ac_ext <<_ACEOF
6354 /* end confdefs.h. */
6356 /* Override any GCC internal prototype to avoid an error.
6357 Use char because int might match the return type of a GCC
6358 builtin and then its argument prototype would still apply. */
6362 char gethostbyname ();
6366 return gethostbyname ();
6371 rm -f conftest.$ac_objext conftest$ac_exeext
6372 if { (ac_try="$ac_link"
6374 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6375 *) ac_try_echo
=$ac_try;;
6377 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6378 $as_echo "$ac_try_echo") >&5
6379 (eval "$ac_link") 2>conftest.er1
6381 grep -v '^ *+' conftest.er1
>conftest.err
6383 cat conftest.err
>&5
6384 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6385 (exit $ac_status); } && {
6386 test -z "$ac_c_werror_flag" ||
6387 test ! -s conftest.err
6388 } && test -s conftest
$ac_exeext && {
6389 test "$cross_compiling" = yes ||
6390 $as_test_x conftest
$ac_exeext
6392 ac_cv_lib_nsl_gethostbyname
=yes
6394 $as_echo "$as_me: failed program was:" >&5
6395 sed 's/^/| /' conftest.
$ac_ext >&5
6397 ac_cv_lib_nsl_gethostbyname
=no
6400 rm -rf conftest.dSYM
6401 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6402 conftest
$ac_exeext conftest.
$ac_ext
6403 LIBS
=$ac_check_lib_save_LIBS
6405 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6406 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
6407 if test "x$ac_cv_lib_nsl_gethostbyname" = x
""yes; then
6408 cat >>confdefs.h
<<_ACEOF
6409 #define HAVE_LIBNSL 1
6416 { $as_echo "$as_me:$LINENO: checking whether compiling netbeans integration is possible" >&5
6417 $as_echo_n "checking whether compiling netbeans integration is possible... " >&6; }
6418 cat >conftest.
$ac_ext <<_ACEOF
6421 cat confdefs.h
>>conftest.
$ac_ext
6422 cat >>conftest.
$ac_ext <<_ACEOF
6423 /* end confdefs.h. */
6430 #include <netinet/in.h>
6432 #include <sys/types.h>
6433 #include <sys/socket.h>
6434 /* Check bitfields */
6436 unsigned int initDone:1;
6444 /* Check creating a socket. */
6445 struct sockaddr_in server;
6446 (void)socket(AF_INET, SOCK_STREAM, 0);
6448 (void)gethostbyname("microsoft.com");
6449 if (errno == ECONNREFUSED)
6450 (void)connect(1, (struct sockaddr *)&server, sizeof(server));
6456 rm -f conftest.
$ac_objext conftest
$ac_exeext
6457 if { (ac_try
="$ac_link"
6459 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6460 *) ac_try_echo=$ac_try;;
6462 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6463 $as_echo "$ac_try_echo") >&5
6464 (eval "$ac_link") 2>conftest.er1
6466 grep -v '^ *+' conftest.er1 >conftest.err
6468 cat conftest.err >&5
6469 $as_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 test "$cross_compiling" = yes ||
6475 $as_test_x conftest$ac_exeext
6477 { $as_echo "$as_me:$LINENO: result: yes" >&5
6478 $as_echo "yes" >&6; }
6480 $as_echo "$as_me: failed program was:" >&5
6481 sed 's/^/| /' conftest.$ac_ext >&5
6483 { $as_echo "$as_me:$LINENO: result: no" >&5
6484 $as_echo "no" >&6; }; enable_netbeans="no"
6487 rm -rf conftest.dSYM
6488 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6489 conftest$ac_exeext conftest.$ac_ext
6491 { $as_echo "$as_me:$LINENO: result: yes" >&5
6492 $as_echo "yes" >&6; }
6494 if test "$enable_netbeans" = "yes"; then
6495 cat >>confdefs.h <<\_ACEOF
6496 #define FEAT_NETBEANS_INTG 1
6499 NETBEANS_SRC="netbeans.c"
6501 NETBEANS_OBJ="objects/netbeans.o"
6505 { $as_echo "$as_me:$LINENO: checking --enable-sniff argument" >&5
6506 $as_echo_n "checking --enable-sniff argument... " >&6; }
6507 # Check whether --enable-sniff was given.
6508 if test "${enable_sniff+set}" = set; then
6509 enableval=$enable_sniff;
6514 { $as_echo "$as_me:$LINENO: result: $enable_sniff" >&5
6515 $as_echo "$enable_sniff" >&6; }
6516 if test "$enable_sniff" = "yes"; then
6517 cat >>confdefs.h <<\_ACEOF
6518 #define FEAT_SNIFF 1
6521 SNIFF_SRC="if_sniff.c"
6523 SNIFF_OBJ="objects/if_sniff.o"
6527 { $as_echo "$as_me:$LINENO: checking --enable-multibyte argument" >&5
6528 $as_echo_n "checking --enable-multibyte argument... " >&6; }
6529 # Check whether --enable-multibyte was given.
6530 if test "${enable_multibyte+set}" = set; then
6531 enableval=$enable_multibyte;
6533 enable_multibyte="no"
6536 { $as_echo "$as_me:$LINENO: result: $enable_multibyte" >&5
6537 $as_echo "$enable_multibyte" >&6; }
6538 if test "$enable_multibyte" = "yes"; then
6539 cat >>confdefs.h <<\_ACEOF
6540 #define FEAT_MBYTE 1
6545 { $as_echo "$as_me:$LINENO: checking --enable-hangulinput argument" >&5
6546 $as_echo_n "checking --enable-hangulinput argument... " >&6; }
6547 # Check whether --enable-hangulinput was given.
6548 if test "${enable_hangulinput+set}" = set; then
6549 enableval=$enable_hangulinput;
6551 enable_hangulinput="no"
6554 { $as_echo "$as_me:$LINENO: result: $enable_hangulinput" >&5
6555 $as_echo "$enable_hangulinput" >&6; }
6557 { $as_echo "$as_me:$LINENO: checking --enable-xim argument" >&5
6558 $as_echo_n "checking --enable-xim argument... " >&6; }
6559 # Check whether --enable-xim was given.
6560 if test "${enable_xim+set}" = set; then
6561 enableval=$enable_xim; { $as_echo "$as_me:$LINENO: result: $enable_xim" >&5
6562 $as_echo "$enable_xim" >&6; }
6564 enable_xim="auto"; { $as_echo "$as_me:$LINENO: result: defaulting to auto" >&5
6565 $as_echo "defaulting to auto" >&6; }
6569 { $as_echo "$as_me:$LINENO: checking --enable-fontset argument" >&5
6570 $as_echo_n "checking --enable-fontset argument... " >&6; }
6571 # Check whether --enable-fontset was given.
6572 if test "${enable_fontset+set}" = set; then
6573 enableval=$enable_fontset;
6578 { $as_echo "$as_me:$LINENO: result: $enable_fontset" >&5
6579 $as_echo "$enable_fontset" >&6; }
6581 test -z "$with_x" && with_x=yes
6582 test "${enable_gui-yes}" != no -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && with_x=yes
6583 if test "$with_x" = no; then
6584 { $as_echo "$as_me:$LINENO: result: defaulting to: don't HAVE_X11" >&5
6585 $as_echo "defaulting to: don't HAVE_X11" >&6; }
6588 # Extract the first word of "xmkmf", so it can be a program name with args.
6589 set dummy xmkmf; ac_word=$2
6590 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6591 $as_echo_n "checking for $ac_word... " >&6; }
6592 if test "${ac_cv_path_xmkmfpath+set}" = set; then
6593 $as_echo_n "(cached) " >&6
6597 ac_cv_path_xmkmfpath="$xmkmfpath" # Let the user override the test with a path.
6600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6604 test -z "$as_dir" && as_dir=.
6605 for ac_exec_ext in '' $ac_executable_extensions; do
6606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6607 ac_cv_path_xmkmfpath="$as_dir/$ac_word$ac_exec_ext"
6608 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6618 xmkmfpath=$ac_cv_path_xmkmfpath
6619 if test -n "$xmkmfpath"; then
6620 { $as_echo "$as_me:$LINENO: result: $xmkmfpath" >&5
6621 $as_echo "$xmkmfpath" >&6; }
6623 { $as_echo "$as_me:$LINENO: result: no" >&5
6624 $as_echo "no" >&6; }
6629 { $as_echo "$as_me:$LINENO: checking for X" >&5
6630 $as_echo_n "checking for X... " >&6; }
6633 # Check whether --with-x was given.
6634 if test "${with_x+set}" = set; then
6638 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6639 if test "x$with_x" = xno; then
6640 # The user explicitly disabled X.
6643 case $x_includes,$x_libraries in #(
6644 *\'*) { { $as_echo "$as_me:$LINENO: error: cannot use X directory names containing '" >&5
6645 $as_echo "$as_me: error: cannot use X directory names containing '" >&2;}
6646 { (exit 1); exit 1; }; };; #(
6647 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
6648 $as_echo_n "(cached) " >&6
6650 # One or both of the vars are not set, and there is no cached value.
6651 ac_x_includes=no ac_x_libraries=no
6652 rm -f -r conftest.dir
6653 if mkdir conftest.dir; then
6655 cat >Imakefile <<'_ACEOF'
6657 @echo incroot='${INCROOT}'
6659 @echo usrlibdir='${USRLIBDIR}'
6661 @echo libdir='${LIBDIR}'
6663 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
6664 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6665 for ac_var in incroot usrlibdir libdir; do
6666 eval "ac_im_$ac_var=\`\
${MAKE-make} $ac_var 2>/dev
/null |
sed -n 's/^$ac_var=//p'\
`"
6668 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6669 for ac_extension in a so sl dylib la dll; do
6670 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
6671 test -f "$ac_im_libdir/libX11.$ac_extension"; then
6672 ac_im_usrlibdir=$ac_im_libdir; break
6675 # Screen out bogus values from the imake configuration. They are
6676 # bogus both because they are the default anyway, and because
6677 # using them would break gcc on systems where it needs fixed includes.
6678 case $ac_im_incroot in
6679 /usr/include) ac_x_includes= ;;
6680 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6682 case $ac_im_usrlibdir in
6683 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
6684 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6688 rm -f -r conftest.dir
6691 # Standard set of common directories for X headers.
6692 # Check X11 before X11Rn because it is often a symlink to the current release.
6704 /usr/local/X11/include
6705 /usr/local/X11R6/include
6706 /usr/local/X11R5/include
6707 /usr/local/X11R4/include
6709 /usr/local/include/X11
6710 /usr/local/include/X11R6
6711 /usr/local/include/X11R5
6712 /usr/local/include/X11R4
6716 /usr/XFree86/include/X11
6720 /usr/unsupported/include
6722 /usr/local/x11r5/include
6723 /usr/lpp/Xamples/include
6725 /usr/openwin/include
6726 /usr/openwin/share/include'
6728 if test "$ac_x_includes" = no; then
6729 # Guess where to find include files, by looking for Xlib.h.
6730 # First, try using that file with no special directory specified.
6731 cat >conftest.$ac_ext <<_ACEOF
6734 cat confdefs.h >>conftest.$ac_ext
6735 cat >>conftest.$ac_ext <<_ACEOF
6736 /* end confdefs.h. */
6737 #include <X11/Xlib.h>
6739 if { (ac_try="$ac_cpp conftest.$ac_ext"
6741 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6742 *) ac_try_echo
=$ac_try;;
6744 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6745 $as_echo "$ac_try_echo") >&5
6746 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6748 grep -v '^ *+' conftest.er1
>conftest.err
6750 cat conftest.err
>&5
6751 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6752 (exit $ac_status); } >/dev
/null
&& {
6753 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6754 test ! -s conftest.err
6756 # We can compile using X headers with no special include directory.
6759 $as_echo "$as_me: failed program was:" >&5
6760 sed 's/^/| /' conftest.
$ac_ext >&5
6762 for ac_dir
in $ac_x_header_dirs; do
6763 if test -r "$ac_dir/X11/Xlib.h"; then
6764 ac_x_includes
=$ac_dir
6770 rm -f conftest.err conftest.
$ac_ext
6771 fi # $ac_x_includes = no
6773 if test "$ac_x_libraries" = no
; then
6774 # Check for the libraries.
6775 # See if we find them without any special options.
6776 # Don't add to $LIBS permanently.
6779 cat >conftest.
$ac_ext <<_ACEOF
6782 cat confdefs.h
>>conftest.
$ac_ext
6783 cat >>conftest.
$ac_ext <<_ACEOF
6784 /* end confdefs.h. */
6785 #include <X11/Xlib.h>
6794 rm -f conftest.
$ac_objext conftest
$ac_exeext
6795 if { (ac_try
="$ac_link"
6797 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6798 *) ac_try_echo=$ac_try;;
6800 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6801 $as_echo "$ac_try_echo") >&5
6802 (eval "$ac_link") 2>conftest.er1
6804 grep -v '^ *+' conftest.er1 >conftest.err
6806 cat conftest.err >&5
6807 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6808 (exit $ac_status); } && {
6809 test -z "$ac_c_werror_flag" ||
6810 test ! -s conftest.err
6811 } && test -s conftest$ac_exeext && {
6812 test "$cross_compiling" = yes ||
6813 $as_test_x conftest$ac_exeext
6816 # We can link X programs with no special library path.
6819 $as_echo "$as_me: failed program was:" >&5
6820 sed 's/^/| /' conftest.$ac_ext >&5
6823 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" |
sed s
/include
/lib
/g
`
6825 # Don't even attempt the hair of trying to link an X program!
6826 for ac_extension in a so sl dylib la dll; do
6827 if test -r "$ac_dir/libX11.$ac_extension"; then
6828 ac_x_libraries=$ac_dir
6835 rm -rf conftest.dSYM
6836 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6837 conftest$ac_exeext conftest.$ac_ext
6838 fi # $ac_x_libraries = no
6840 case $ac_x_includes,$ac_x_libraries in #(
6842 # Didn't find X, or a directory has "'" in its name.
6843 ac_cv_have_x="have_x=no";; #(
6845 # Record where we found X for the cache.
6846 ac_cv_have_x="have_x=yes\
6847 ac_x_includes='$ac_x_includes'\
6848 ac_x_libraries='$ac_x_libraries'"
6854 eval "$ac_cv_have_x"
6857 if test "$have_x" != yes; then
6858 { $as_echo "$as_me:$LINENO: result: $have_x" >&5
6859 $as_echo "$have_x" >&6; }
6862 # If each of the values was on the command line, it overrides each guess.
6863 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6864 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6865 # Update the cache value to reflect the command line values.
6866 ac_cv_have_x="have_x=yes\
6867 ac_x_includes='$x_includes'\
6868 ac_x_libraries='$x_libraries'"
6869 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6870 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
6873 if test "$no_x" = yes; then
6874 # Not all programs may use this symbol, but it does not hurt to define it.
6876 cat >>confdefs.h <<\_ACEOF
6877 #define X_DISPLAY_MISSING 1
6880 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6882 if test -n "$x_includes"; then
6883 X_CFLAGS="$X_CFLAGS -I$x_includes"
6886 # It would also be nice to do this for all -L options, not just this one.
6887 if test -n "$x_libraries"; then
6888 X_LIBS="$X_LIBS -L$x_libraries"
6889 # For Solaris; some versions of Sun CC require a space after -R and
6890 # others require no space. Words are not sufficient . . . .
6891 { $as_echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
6892 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
6893 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
6894 ac_xsave_c_werror_flag=$ac_c_werror_flag
6895 ac_c_werror_flag=yes
6896 cat >conftest.$ac_ext <<_ACEOF
6899 cat confdefs.h >>conftest.$ac_ext
6900 cat >>conftest.$ac_ext <<_ACEOF
6901 /* end confdefs.h. */
6911 rm -f conftest.$ac_objext conftest$ac_exeext
6912 if { (ac_try="$ac_link"
6914 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6915 *) ac_try_echo
=$ac_try;;
6917 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6918 $as_echo "$ac_try_echo") >&5
6919 (eval "$ac_link") 2>conftest.er1
6921 grep -v '^ *+' conftest.er1
>conftest.err
6923 cat conftest.err
>&5
6924 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6925 (exit $ac_status); } && {
6926 test -z "$ac_c_werror_flag" ||
6927 test ! -s conftest.err
6928 } && test -s conftest
$ac_exeext && {
6929 test "$cross_compiling" = yes ||
6930 $as_test_x conftest
$ac_exeext
6932 { $as_echo "$as_me:$LINENO: result: no" >&5
6933 $as_echo "no" >&6; }
6934 X_LIBS
="$X_LIBS -R$x_libraries"
6936 $as_echo "$as_me: failed program was:" >&5
6937 sed 's/^/| /' conftest.
$ac_ext >&5
6939 LIBS
="$ac_xsave_LIBS -R $x_libraries"
6940 cat >conftest.
$ac_ext <<_ACEOF
6943 cat confdefs.h
>>conftest.
$ac_ext
6944 cat >>conftest.
$ac_ext <<_ACEOF
6945 /* end confdefs.h. */
6955 rm -f conftest.
$ac_objext conftest
$ac_exeext
6956 if { (ac_try
="$ac_link"
6958 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6959 *) ac_try_echo=$ac_try;;
6961 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6962 $as_echo "$ac_try_echo") >&5
6963 (eval "$ac_link") 2>conftest.er1
6965 grep -v '^ *+' conftest.er1 >conftest.err
6967 cat conftest.err >&5
6968 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6969 (exit $ac_status); } && {
6970 test -z "$ac_c_werror_flag" ||
6971 test ! -s conftest.err
6972 } && test -s conftest$ac_exeext && {
6973 test "$cross_compiling" = yes ||
6974 $as_test_x conftest$ac_exeext
6976 { $as_echo "$as_me:$LINENO: result: yes" >&5
6977 $as_echo "yes" >&6; }
6978 X_LIBS="$X_LIBS -R $x_libraries"
6980 $as_echo "$as_me: failed program was:" >&5
6981 sed 's/^/| /' conftest.$ac_ext >&5
6983 { $as_echo "$as_me:$LINENO: result: neither works" >&5
6984 $as_echo "neither works" >&6; }
6987 rm -rf conftest.dSYM
6988 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6989 conftest$ac_exeext conftest.$ac_ext
6992 rm -rf conftest.dSYM
6993 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6994 conftest$ac_exeext conftest.$ac_ext
6995 ac_c_werror_flag=$ac_xsave_c_werror_flag
6999 # Check for system-dependent libraries X programs must link with.
7000 # Do this before checking for the system-independent R6 libraries
7001 # (-lICE), since we may need -lsocket or whatever for X linking.
7003 if test "$ISC" = yes; then
7004 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7006 # Martyn Johnson says this is needed for Ultrix, if the X
7007 # libraries were built with DECnet support. And Karl Berry says
7008 # the Alpha needs dnet_stub (dnet does not exist).
7009 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
7010 cat >conftest.$ac_ext <<_ACEOF
7013 cat confdefs.h >>conftest.$ac_ext
7014 cat >>conftest.$ac_ext <<_ACEOF
7015 /* end confdefs.h. */
7017 /* Override any GCC internal prototype to avoid an error.
7018 Use char because int might match the return type of a GCC
7019 builtin and then its argument prototype would still apply. */
7023 char XOpenDisplay ();
7027 return XOpenDisplay ();
7032 rm -f conftest.$ac_objext conftest$ac_exeext
7033 if { (ac_try="$ac_link"
7035 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7036 *) ac_try_echo
=$ac_try;;
7038 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7039 $as_echo "$ac_try_echo") >&5
7040 (eval "$ac_link") 2>conftest.er1
7042 grep -v '^ *+' conftest.er1
>conftest.err
7044 cat conftest.err
>&5
7045 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7046 (exit $ac_status); } && {
7047 test -z "$ac_c_werror_flag" ||
7048 test ! -s conftest.err
7049 } && test -s conftest
$ac_exeext && {
7050 test "$cross_compiling" = yes ||
7051 $as_test_x conftest
$ac_exeext
7055 $as_echo "$as_me: failed program was:" >&5
7056 sed 's/^/| /' conftest.
$ac_ext >&5
7058 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
7059 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
7060 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
7061 $as_echo_n "(cached) " >&6
7063 ac_check_lib_save_LIBS
=$LIBS
7065 cat >conftest.
$ac_ext <<_ACEOF
7068 cat confdefs.h
>>conftest.
$ac_ext
7069 cat >>conftest.
$ac_ext <<_ACEOF
7070 /* end confdefs.h. */
7072 /* Override any GCC internal prototype to avoid an error.
7073 Use char because int might match the return type of a GCC
7074 builtin and then its argument prototype would still apply. */
7082 return dnet_ntoa ();
7087 rm -f conftest.
$ac_objext conftest
$ac_exeext
7088 if { (ac_try
="$ac_link"
7090 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7091 *) ac_try_echo=$ac_try;;
7093 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7094 $as_echo "$ac_try_echo") >&5
7095 (eval "$ac_link") 2>conftest.er1
7097 grep -v '^ *+' conftest.er1 >conftest.err
7099 cat conftest.err >&5
7100 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7101 (exit $ac_status); } && {
7102 test -z "$ac_c_werror_flag" ||
7103 test ! -s conftest.err
7104 } && test -s conftest$ac_exeext && {
7105 test "$cross_compiling" = yes ||
7106 $as_test_x conftest$ac_exeext
7108 ac_cv_lib_dnet_dnet_ntoa=yes
7110 $as_echo "$as_me: failed program was:" >&5
7111 sed 's/^/| /' conftest.$ac_ext >&5
7113 ac_cv_lib_dnet_dnet_ntoa=no
7116 rm -rf conftest.dSYM
7117 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7118 conftest$ac_exeext conftest.$ac_ext
7119 LIBS=$ac_check_lib_save_LIBS
7121 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7122 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
7123 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then
7124 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7127 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7128 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
7129 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
7130 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
7131 $as_echo_n "(cached) " >&6
7133 ac_check_lib_save_LIBS=$LIBS
7134 LIBS="-ldnet_stub $LIBS"
7135 cat >conftest.$ac_ext <<_ACEOF
7138 cat confdefs.h >>conftest.$ac_ext
7139 cat >>conftest.$ac_ext <<_ACEOF
7140 /* end confdefs.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. */
7152 return dnet_ntoa ();
7157 rm -f conftest.$ac_objext conftest$ac_exeext
7158 if { (ac_try="$ac_link"
7160 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7161 *) ac_try_echo
=$ac_try;;
7163 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7164 $as_echo "$ac_try_echo") >&5
7165 (eval "$ac_link") 2>conftest.er1
7167 grep -v '^ *+' conftest.er1
>conftest.err
7169 cat conftest.err
>&5
7170 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7171 (exit $ac_status); } && {
7172 test -z "$ac_c_werror_flag" ||
7173 test ! -s conftest.err
7174 } && test -s conftest
$ac_exeext && {
7175 test "$cross_compiling" = yes ||
7176 $as_test_x conftest
$ac_exeext
7178 ac_cv_lib_dnet_stub_dnet_ntoa
=yes
7180 $as_echo "$as_me: failed program was:" >&5
7181 sed 's/^/| /' conftest.
$ac_ext >&5
7183 ac_cv_lib_dnet_stub_dnet_ntoa
=no
7186 rm -rf conftest.dSYM
7187 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7188 conftest
$ac_exeext conftest.
$ac_ext
7189 LIBS
=$ac_check_lib_save_LIBS
7191 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
7192 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
7193 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x
""yes; then
7194 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet_stub"
7200 rm -rf conftest.dSYM
7201 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7202 conftest
$ac_exeext conftest.
$ac_ext
7203 LIBS
="$ac_xsave_LIBS"
7205 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7206 # to get the SysV transport functions.
7207 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7209 # The nsl library prevents programs from opening the X display
7210 # on Irix 5.2, according to T.E. Dickey.
7211 # The functions gethostbyname, getservbyname, and inet_addr are
7212 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
7213 { $as_echo "$as_me:$LINENO: checking for gethostbyname" >&5
7214 $as_echo_n "checking for gethostbyname... " >&6; }
7215 if test "${ac_cv_func_gethostbyname+set}" = set; then
7216 $as_echo_n "(cached) " >&6
7218 cat >conftest.
$ac_ext <<_ACEOF
7221 cat confdefs.h
>>conftest.
$ac_ext
7222 cat >>conftest.
$ac_ext <<_ACEOF
7223 /* end confdefs.h. */
7224 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
7225 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7226 #define gethostbyname innocuous_gethostbyname
7228 /* System header to define __stub macros and hopefully few prototypes,
7229 which can conflict with char gethostbyname (); below.
7230 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7231 <limits.h> exists even on freestanding compilers. */
7234 # include <limits.h>
7236 # include <assert.h>
7239 #undef gethostbyname
7241 /* Override any GCC internal prototype to avoid an error.
7242 Use char because int might match the return type of a GCC
7243 builtin and then its argument prototype would still apply. */
7247 char gethostbyname ();
7248 /* The GNU C library defines this for functions which it implements
7249 to always fail with ENOSYS. Some functions are actually named
7250 something starting with __ and the normal name is an alias. */
7251 #if defined __stub_gethostbyname || defined __stub___gethostbyname
7258 return gethostbyname ();
7263 rm -f conftest.
$ac_objext conftest
$ac_exeext
7264 if { (ac_try
="$ac_link"
7266 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7267 *) ac_try_echo=$ac_try;;
7269 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7270 $as_echo "$ac_try_echo") >&5
7271 (eval "$ac_link") 2>conftest.er1
7273 grep -v '^ *+' conftest.er1 >conftest.err
7275 cat conftest.err >&5
7276 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7277 (exit $ac_status); } && {
7278 test -z "$ac_c_werror_flag" ||
7279 test ! -s conftest.err
7280 } && test -s conftest$ac_exeext && {
7281 test "$cross_compiling" = yes ||
7282 $as_test_x conftest$ac_exeext
7284 ac_cv_func_gethostbyname=yes
7286 $as_echo "$as_me: failed program was:" >&5
7287 sed 's/^/| /' conftest.$ac_ext >&5
7289 ac_cv_func_gethostbyname=no
7292 rm -rf conftest.dSYM
7293 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7294 conftest$ac_exeext conftest.$ac_ext
7296 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
7297 $as_echo "$ac_cv_func_gethostbyname" >&6; }
7299 if test $ac_cv_func_gethostbyname = no; then
7300 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
7301 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
7302 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
7303 $as_echo_n "(cached) " >&6
7305 ac_check_lib_save_LIBS=$LIBS
7307 cat >conftest.$ac_ext <<_ACEOF
7310 cat confdefs.h >>conftest.$ac_ext
7311 cat >>conftest.$ac_ext <<_ACEOF
7312 /* end confdefs.h. */
7314 /* Override any GCC internal prototype to avoid an error.
7315 Use char because int might match the return type of a GCC
7316 builtin and then its argument prototype would still apply. */
7320 char gethostbyname ();
7324 return gethostbyname ();
7329 rm -f conftest.$ac_objext conftest$ac_exeext
7330 if { (ac_try="$ac_link"
7332 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7333 *) ac_try_echo
=$ac_try;;
7335 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7336 $as_echo "$ac_try_echo") >&5
7337 (eval "$ac_link") 2>conftest.er1
7339 grep -v '^ *+' conftest.er1
>conftest.err
7341 cat conftest.err
>&5
7342 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7343 (exit $ac_status); } && {
7344 test -z "$ac_c_werror_flag" ||
7345 test ! -s conftest.err
7346 } && test -s conftest
$ac_exeext && {
7347 test "$cross_compiling" = yes ||
7348 $as_test_x conftest
$ac_exeext
7350 ac_cv_lib_nsl_gethostbyname
=yes
7352 $as_echo "$as_me: failed program was:" >&5
7353 sed 's/^/| /' conftest.
$ac_ext >&5
7355 ac_cv_lib_nsl_gethostbyname
=no
7358 rm -rf conftest.dSYM
7359 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7360 conftest
$ac_exeext conftest.
$ac_ext
7361 LIBS
=$ac_check_lib_save_LIBS
7363 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
7364 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
7365 if test "x$ac_cv_lib_nsl_gethostbyname" = x
""yes; then
7366 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl"
7369 if test $ac_cv_lib_nsl_gethostbyname = no
; then
7370 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
7371 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
7372 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
7373 $as_echo_n "(cached) " >&6
7375 ac_check_lib_save_LIBS
=$LIBS
7377 cat >conftest.
$ac_ext <<_ACEOF
7380 cat confdefs.h
>>conftest.
$ac_ext
7381 cat >>conftest.
$ac_ext <<_ACEOF
7382 /* end confdefs.h. */
7384 /* Override any GCC internal prototype to avoid an error.
7385 Use char because int might match the return type of a GCC
7386 builtin and then its argument prototype would still apply. */
7390 char gethostbyname ();
7394 return gethostbyname ();
7399 rm -f conftest.
$ac_objext conftest
$ac_exeext
7400 if { (ac_try
="$ac_link"
7402 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7403 *) ac_try_echo=$ac_try;;
7405 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7406 $as_echo "$ac_try_echo") >&5
7407 (eval "$ac_link") 2>conftest.er1
7409 grep -v '^ *+' conftest.er1 >conftest.err
7411 cat conftest.err >&5
7412 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7413 (exit $ac_status); } && {
7414 test -z "$ac_c_werror_flag" ||
7415 test ! -s conftest.err
7416 } && test -s conftest$ac_exeext && {
7417 test "$cross_compiling" = yes ||
7418 $as_test_x conftest$ac_exeext
7420 ac_cv_lib_bsd_gethostbyname=yes
7422 $as_echo "$as_me: failed program was:" >&5
7423 sed 's/^/| /' conftest.$ac_ext >&5
7425 ac_cv_lib_bsd_gethostbyname=no
7428 rm -rf conftest.dSYM
7429 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7430 conftest$ac_exeext conftest.$ac_ext
7431 LIBS=$ac_check_lib_save_LIBS
7433 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
7434 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
7435 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then
7436 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7442 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7443 # socket/setsockopt and other routines are undefined under SCO ODT
7444 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7445 # on later versions), says Simon Leinen: it contains gethostby*
7446 # variants that don't use the name server (or something). -lsocket
7447 # must be given before -lnsl if both are needed. We assume that
7448 # if connect needs -lnsl, so does gethostbyname.
7449 { $as_echo "$as_me:$LINENO: checking for connect" >&5
7450 $as_echo_n "checking for connect... " >&6; }
7451 if test "${ac_cv_func_connect+set}" = set; then
7452 $as_echo_n "(cached) " >&6
7454 cat >conftest.$ac_ext <<_ACEOF
7457 cat confdefs.h >>conftest.$ac_ext
7458 cat >>conftest.$ac_ext <<_ACEOF
7459 /* end confdefs.h. */
7460 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
7461 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7462 #define connect innocuous_connect
7464 /* System header to define __stub macros and hopefully few prototypes,
7465 which can conflict with char connect (); below.
7466 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7467 <limits.h> exists even on freestanding compilers. */
7470 # include <limits.h>
7472 # include <assert.h>
7477 /* Override any GCC internal prototype to avoid an error.
7478 Use char because int might match the return type of a GCC
7479 builtin and then its argument prototype would still apply. */
7484 /* The GNU C library defines this for functions which it implements
7485 to always fail with ENOSYS. Some functions are actually named
7486 something starting with __ and the normal name is an alias. */
7487 #if defined __stub_connect || defined __stub___connect
7499 rm -f conftest.$ac_objext conftest$ac_exeext
7500 if { (ac_try="$ac_link"
7502 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7503 *) ac_try_echo
=$ac_try;;
7505 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7506 $as_echo "$ac_try_echo") >&5
7507 (eval "$ac_link") 2>conftest.er1
7509 grep -v '^ *+' conftest.er1
>conftest.err
7511 cat conftest.err
>&5
7512 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7513 (exit $ac_status); } && {
7514 test -z "$ac_c_werror_flag" ||
7515 test ! -s conftest.err
7516 } && test -s conftest
$ac_exeext && {
7517 test "$cross_compiling" = yes ||
7518 $as_test_x conftest
$ac_exeext
7520 ac_cv_func_connect
=yes
7522 $as_echo "$as_me: failed program was:" >&5
7523 sed 's/^/| /' conftest.
$ac_ext >&5
7525 ac_cv_func_connect
=no
7528 rm -rf conftest.dSYM
7529 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7530 conftest
$ac_exeext conftest.
$ac_ext
7532 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
7533 $as_echo "$ac_cv_func_connect" >&6; }
7535 if test $ac_cv_func_connect = no
; then
7536 { $as_echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
7537 $as_echo_n "checking for connect in -lsocket... " >&6; }
7538 if test "${ac_cv_lib_socket_connect+set}" = set; then
7539 $as_echo_n "(cached) " >&6
7541 ac_check_lib_save_LIBS
=$LIBS
7542 LIBS
="-lsocket $X_EXTRA_LIBS $LIBS"
7543 cat >conftest.
$ac_ext <<_ACEOF
7546 cat confdefs.h
>>conftest.
$ac_ext
7547 cat >>conftest.
$ac_ext <<_ACEOF
7548 /* end confdefs.h. */
7550 /* Override any GCC internal prototype to avoid an error.
7551 Use char because int might match the return type of a GCC
7552 builtin and then its argument prototype would still apply. */
7565 rm -f conftest.
$ac_objext conftest
$ac_exeext
7566 if { (ac_try
="$ac_link"
7568 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7569 *) ac_try_echo=$ac_try;;
7571 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7572 $as_echo "$ac_try_echo") >&5
7573 (eval "$ac_link") 2>conftest.er1
7575 grep -v '^ *+' conftest.er1 >conftest.err
7577 cat conftest.err >&5
7578 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7579 (exit $ac_status); } && {
7580 test -z "$ac_c_werror_flag" ||
7581 test ! -s conftest.err
7582 } && test -s conftest$ac_exeext && {
7583 test "$cross_compiling" = yes ||
7584 $as_test_x conftest$ac_exeext
7586 ac_cv_lib_socket_connect=yes
7588 $as_echo "$as_me: failed program was:" >&5
7589 sed 's/^/| /' conftest.$ac_ext >&5
7591 ac_cv_lib_socket_connect=no
7594 rm -rf conftest.dSYM
7595 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7596 conftest$ac_exeext conftest.$ac_ext
7597 LIBS=$ac_check_lib_save_LIBS
7599 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
7600 $as_echo "$ac_cv_lib_socket_connect" >&6; }
7601 if test "x$ac_cv_lib_socket_connect" = x""yes; then
7602 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7607 # Guillermo Gomez says -lposix is necessary on A/UX.
7608 { $as_echo "$as_me:$LINENO: checking for remove" >&5
7609 $as_echo_n "checking for remove... " >&6; }
7610 if test "${ac_cv_func_remove+set}" = set; then
7611 $as_echo_n "(cached) " >&6
7613 cat >conftest.$ac_ext <<_ACEOF
7616 cat confdefs.h >>conftest.$ac_ext
7617 cat >>conftest.$ac_ext <<_ACEOF
7618 /* end confdefs.h. */
7619 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
7620 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7621 #define remove innocuous_remove
7623 /* System header to define __stub macros and hopefully few prototypes,
7624 which can conflict with char remove (); below.
7625 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7626 <limits.h> exists even on freestanding compilers. */
7629 # include <limits.h>
7631 # include <assert.h>
7636 /* Override any GCC internal prototype to avoid an error.
7637 Use char because int might match the return type of a GCC
7638 builtin and then its argument prototype would still apply. */
7643 /* The GNU C library defines this for functions which it implements
7644 to always fail with ENOSYS. Some functions are actually named
7645 something starting with __ and the normal name is an alias. */
7646 #if defined __stub_remove || defined __stub___remove
7658 rm -f conftest.$ac_objext conftest$ac_exeext
7659 if { (ac_try="$ac_link"
7661 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7662 *) ac_try_echo
=$ac_try;;
7664 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7665 $as_echo "$ac_try_echo") >&5
7666 (eval "$ac_link") 2>conftest.er1
7668 grep -v '^ *+' conftest.er1
>conftest.err
7670 cat conftest.err
>&5
7671 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7672 (exit $ac_status); } && {
7673 test -z "$ac_c_werror_flag" ||
7674 test ! -s conftest.err
7675 } && test -s conftest
$ac_exeext && {
7676 test "$cross_compiling" = yes ||
7677 $as_test_x conftest
$ac_exeext
7679 ac_cv_func_remove
=yes
7681 $as_echo "$as_me: failed program was:" >&5
7682 sed 's/^/| /' conftest.
$ac_ext >&5
7684 ac_cv_func_remove
=no
7687 rm -rf conftest.dSYM
7688 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7689 conftest
$ac_exeext conftest.
$ac_ext
7691 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
7692 $as_echo "$ac_cv_func_remove" >&6; }
7694 if test $ac_cv_func_remove = no
; then
7695 { $as_echo "$as_me:$LINENO: checking for remove in -lposix" >&5
7696 $as_echo_n "checking for remove in -lposix... " >&6; }
7697 if test "${ac_cv_lib_posix_remove+set}" = set; then
7698 $as_echo_n "(cached) " >&6
7700 ac_check_lib_save_LIBS
=$LIBS
7701 LIBS
="-lposix $LIBS"
7702 cat >conftest.
$ac_ext <<_ACEOF
7705 cat confdefs.h
>>conftest.
$ac_ext
7706 cat >>conftest.
$ac_ext <<_ACEOF
7707 /* end confdefs.h. */
7709 /* Override any GCC internal prototype to avoid an error.
7710 Use char because int might match the return type of a GCC
7711 builtin and then its argument prototype would still apply. */
7724 rm -f conftest.
$ac_objext conftest
$ac_exeext
7725 if { (ac_try
="$ac_link"
7727 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7728 *) ac_try_echo=$ac_try;;
7730 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7731 $as_echo "$ac_try_echo") >&5
7732 (eval "$ac_link") 2>conftest.er1
7734 grep -v '^ *+' conftest.er1 >conftest.err
7736 cat conftest.err >&5
7737 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7738 (exit $ac_status); } && {
7739 test -z "$ac_c_werror_flag" ||
7740 test ! -s conftest.err
7741 } && test -s conftest$ac_exeext && {
7742 test "$cross_compiling" = yes ||
7743 $as_test_x conftest$ac_exeext
7745 ac_cv_lib_posix_remove=yes
7747 $as_echo "$as_me: failed program was:" >&5
7748 sed 's/^/| /' conftest.$ac_ext >&5
7750 ac_cv_lib_posix_remove=no
7753 rm -rf conftest.dSYM
7754 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7755 conftest$ac_exeext conftest.$ac_ext
7756 LIBS=$ac_check_lib_save_LIBS
7758 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
7759 $as_echo "$ac_cv_lib_posix_remove" >&6; }
7760 if test "x$ac_cv_lib_posix_remove" = x""yes; then
7761 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7766 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7767 { $as_echo "$as_me:$LINENO: checking for shmat" >&5
7768 $as_echo_n "checking for shmat... " >&6; }
7769 if test "${ac_cv_func_shmat+set}" = set; then
7770 $as_echo_n "(cached) " >&6
7772 cat >conftest.$ac_ext <<_ACEOF
7775 cat confdefs.h >>conftest.$ac_ext
7776 cat >>conftest.$ac_ext <<_ACEOF
7777 /* end confdefs.h. */
7778 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
7779 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7780 #define shmat innocuous_shmat
7782 /* System header to define __stub macros and hopefully few prototypes,
7783 which can conflict with char shmat (); below.
7784 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7785 <limits.h> exists even on freestanding compilers. */
7788 # include <limits.h>
7790 # include <assert.h>
7795 /* Override any GCC internal prototype to avoid an error.
7796 Use char because int might match the return type of a GCC
7797 builtin and then its argument prototype would still apply. */
7802 /* The GNU C library defines this for functions which it implements
7803 to always fail with ENOSYS. Some functions are actually named
7804 something starting with __ and the normal name is an alias. */
7805 #if defined __stub_shmat || defined __stub___shmat
7817 rm -f conftest.$ac_objext conftest$ac_exeext
7818 if { (ac_try="$ac_link"
7820 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7821 *) ac_try_echo
=$ac_try;;
7823 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7824 $as_echo "$ac_try_echo") >&5
7825 (eval "$ac_link") 2>conftest.er1
7827 grep -v '^ *+' conftest.er1
>conftest.err
7829 cat conftest.err
>&5
7830 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7831 (exit $ac_status); } && {
7832 test -z "$ac_c_werror_flag" ||
7833 test ! -s conftest.err
7834 } && test -s conftest
$ac_exeext && {
7835 test "$cross_compiling" = yes ||
7836 $as_test_x conftest
$ac_exeext
7838 ac_cv_func_shmat
=yes
7840 $as_echo "$as_me: failed program was:" >&5
7841 sed 's/^/| /' conftest.
$ac_ext >&5
7846 rm -rf conftest.dSYM
7847 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7848 conftest
$ac_exeext conftest.
$ac_ext
7850 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
7851 $as_echo "$ac_cv_func_shmat" >&6; }
7853 if test $ac_cv_func_shmat = no
; then
7854 { $as_echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
7855 $as_echo_n "checking for shmat in -lipc... " >&6; }
7856 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
7857 $as_echo_n "(cached) " >&6
7859 ac_check_lib_save_LIBS
=$LIBS
7861 cat >conftest.
$ac_ext <<_ACEOF
7864 cat confdefs.h
>>conftest.
$ac_ext
7865 cat >>conftest.
$ac_ext <<_ACEOF
7866 /* end confdefs.h. */
7868 /* Override any GCC internal prototype to avoid an error.
7869 Use char because int might match the return type of a GCC
7870 builtin and then its argument prototype would still apply. */
7883 rm -f conftest.
$ac_objext conftest
$ac_exeext
7884 if { (ac_try
="$ac_link"
7886 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7887 *) ac_try_echo=$ac_try;;
7889 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7890 $as_echo "$ac_try_echo") >&5
7891 (eval "$ac_link") 2>conftest.er1
7893 grep -v '^ *+' conftest.er1 >conftest.err
7895 cat conftest.err >&5
7896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7897 (exit $ac_status); } && {
7898 test -z "$ac_c_werror_flag" ||
7899 test ! -s conftest.err
7900 } && test -s conftest$ac_exeext && {
7901 test "$cross_compiling" = yes ||
7902 $as_test_x conftest$ac_exeext
7904 ac_cv_lib_ipc_shmat=yes
7906 $as_echo "$as_me: failed program was:" >&5
7907 sed 's/^/| /' conftest.$ac_ext >&5
7909 ac_cv_lib_ipc_shmat=no
7912 rm -rf conftest.dSYM
7913 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7914 conftest$ac_exeext conftest.$ac_ext
7915 LIBS=$ac_check_lib_save_LIBS
7917 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
7918 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
7919 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then
7920 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7926 # Check for libraries that X11R6 Xt/Xaw programs need.
7927 ac_save_LDFLAGS=$LDFLAGS
7928 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7929 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7930 # check for ICE first), but we must link in the order -lSM -lICE or
7931 # we get undefined symbols. So assume we have SM if we have ICE.
7932 # These have to be linked with before -lX11, unlike the other
7933 # libraries we check for below, so use a different variable.
7934 # John Interrante, Karl Berry
7935 { $as_echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
7936 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
7937 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
7938 $as_echo_n "(cached) " >&6
7940 ac_check_lib_save_LIBS=$LIBS
7941 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7942 cat >conftest.$ac_ext <<_ACEOF
7945 cat confdefs.h >>conftest.$ac_ext
7946 cat >>conftest.$ac_ext <<_ACEOF
7947 /* end confdefs.h. */
7949 /* Override any GCC internal prototype to avoid an error.
7950 Use char because int might match the return type of a GCC
7951 builtin and then its argument prototype would still apply. */
7955 char IceConnectionNumber ();
7959 return IceConnectionNumber ();
7964 rm -f conftest.$ac_objext conftest$ac_exeext
7965 if { (ac_try="$ac_link"
7967 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7968 *) ac_try_echo
=$ac_try;;
7970 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7971 $as_echo "$ac_try_echo") >&5
7972 (eval "$ac_link") 2>conftest.er1
7974 grep -v '^ *+' conftest.er1
>conftest.err
7976 cat conftest.err
>&5
7977 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7978 (exit $ac_status); } && {
7979 test -z "$ac_c_werror_flag" ||
7980 test ! -s conftest.err
7981 } && test -s conftest
$ac_exeext && {
7982 test "$cross_compiling" = yes ||
7983 $as_test_x conftest
$ac_exeext
7985 ac_cv_lib_ICE_IceConnectionNumber
=yes
7987 $as_echo "$as_me: failed program was:" >&5
7988 sed 's/^/| /' conftest.
$ac_ext >&5
7990 ac_cv_lib_ICE_IceConnectionNumber
=no
7993 rm -rf conftest.dSYM
7994 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7995 conftest
$ac_exeext conftest.
$ac_ext
7996 LIBS
=$ac_check_lib_save_LIBS
7998 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7999 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
8000 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x
""yes; then
8001 X_PRE_LIBS
="$X_PRE_LIBS -lSM -lICE"
8004 LDFLAGS
=$ac_save_LDFLAGS
8009 if test "$OS390Unix" = "yes"; then
8010 CFLAGS
="$CFLAGS -W c,dll"
8011 LDFLAGS
="$LDFLAGS -W l,dll"
8012 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lSM -lICE -lXmu"
8016 if test -d "$x_includes" && test ! -d "$x_libraries"; then
8017 x_libraries
=`echo "$x_includes" | sed s/include/lib/`
8018 { $as_echo "$as_me:$LINENO: result: Corrected X libraries to $x_libraries" >&5
8019 $as_echo "Corrected X libraries to $x_libraries" >&6; }
8020 X_LIBS
="$X_LIBS -L$x_libraries"
8021 if test "`(uname) 2>/dev/null`" = SunOS
&&
8022 uname
-r |
grep '^5' >/dev
/null
; then
8023 X_LIBS
="$X_LIBS -R $x_libraries"
8027 if test -d "$x_libraries" && test ! -d "$x_includes"; then
8028 x_includes
=`echo "$x_libraries" | sed s/lib/include/`
8029 { $as_echo "$as_me:$LINENO: result: Corrected X includes to $x_includes" >&5
8030 $as_echo "Corrected X includes to $x_includes" >&6; }
8031 X_CFLAGS
="$X_CFLAGS -I$x_includes"
8034 X_CFLAGS
="`echo $X_CFLAGS\ | sed 's%-I/usr/include %%'`"
8035 X_LIBS
="`echo $X_LIBS\ | sed 's%-L/usr/lib %%'`"
8036 X_LIBS
="`echo $X_LIBS\ | sed -e 's%-R/usr/lib %%' -e 's%-R /usr/lib %%'`"
8039 { $as_echo "$as_me:$LINENO: checking if X11 header files can be found" >&5
8040 $as_echo_n "checking if X11 header files can be found... " >&6; }
8042 CFLAGS
="$CFLAGS $X_CFLAGS"
8043 cat >conftest.
$ac_ext <<_ACEOF
8046 cat confdefs.h
>>conftest.
$ac_ext
8047 cat >>conftest.
$ac_ext <<_ACEOF
8048 /* end confdefs.h. */
8049 #include <X11/Xlib.h>
8050 #include <X11/Intrinsic.h>
8059 rm -f conftest.
$ac_objext
8060 if { (ac_try
="$ac_compile"
8062 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8063 *) ac_try_echo=$ac_try;;
8065 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8066 $as_echo "$ac_try_echo") >&5
8067 (eval "$ac_compile") 2>conftest.er1
8069 grep -v '^ *+' conftest.er1 >conftest.err
8071 cat conftest.err >&5
8072 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8073 (exit $ac_status); } && {
8074 test -z "$ac_c_werror_flag" ||
8075 test ! -s conftest.err
8076 } && test -s conftest.$ac_objext; then
8077 { $as_echo "$as_me:$LINENO: result: yes" >&5
8078 $as_echo "yes" >&6; }
8080 $as_echo "$as_me: failed program was:" >&5
8081 sed 's/^/| /' conftest.$ac_ext >&5
8083 { $as_echo "$as_me:$LINENO: result: no" >&5
8084 $as_echo "no" >&6; }; no_x=yes
8087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8090 if test "${no_x-no}" = yes; then
8093 cat >>confdefs.h <<\_ACEOF
8100 ac_save_LDFLAGS="$LDFLAGS"
8101 LDFLAGS="-L$x_libraries $LDFLAGS"
8103 { $as_echo "$as_me:$LINENO: checking for _XdmcpAuthDoIt in -lXdmcp" >&5
8104 $as_echo_n "checking for _XdmcpAuthDoIt in -lXdmcp... " >&6; }
8105 if test "${ac_cv_lib_Xdmcp__XdmcpAuthDoIt+set}" = set; then
8106 $as_echo_n "(cached) " >&6
8108 ac_check_lib_save_LIBS=$LIBS
8109 LIBS="-lXdmcp -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS -lXdmcp $LIBS"
8110 cat >conftest.$ac_ext <<_ACEOF
8113 cat confdefs.h >>conftest.$ac_ext
8114 cat >>conftest.$ac_ext <<_ACEOF
8115 /* end confdefs.h. */
8117 /* Override any GCC internal prototype to avoid an error.
8118 Use char because int might match the return type of a GCC
8119 builtin and then its argument prototype would still apply. */
8123 char _XdmcpAuthDoIt ();
8127 return _XdmcpAuthDoIt ();
8132 rm -f conftest.$ac_objext conftest$ac_exeext
8133 if { (ac_try="$ac_link"
8135 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8136 *) ac_try_echo
=$ac_try;;
8138 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8139 $as_echo "$ac_try_echo") >&5
8140 (eval "$ac_link") 2>conftest.er1
8142 grep -v '^ *+' conftest.er1
>conftest.err
8144 cat conftest.err
>&5
8145 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8146 (exit $ac_status); } && {
8147 test -z "$ac_c_werror_flag" ||
8148 test ! -s conftest.err
8149 } && test -s conftest
$ac_exeext && {
8150 test "$cross_compiling" = yes ||
8151 $as_test_x conftest
$ac_exeext
8153 ac_cv_lib_Xdmcp__XdmcpAuthDoIt
=yes
8155 $as_echo "$as_me: failed program was:" >&5
8156 sed 's/^/| /' conftest.
$ac_ext >&5
8158 ac_cv_lib_Xdmcp__XdmcpAuthDoIt
=no
8161 rm -rf conftest.dSYM
8162 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8163 conftest
$ac_exeext conftest.
$ac_ext
8164 LIBS
=$ac_check_lib_save_LIBS
8166 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&5
8167 $as_echo "$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&6; }
8168 if test "x$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" = x
""yes; then
8169 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lXdmcp"
8173 { $as_echo "$as_me:$LINENO: checking for IceOpenConnection in -lICE" >&5
8174 $as_echo_n "checking for IceOpenConnection in -lICE... " >&6; }
8175 if test "${ac_cv_lib_ICE_IceOpenConnection+set}" = set; then
8176 $as_echo_n "(cached) " >&6
8178 ac_check_lib_save_LIBS
=$LIBS
8179 LIBS
="-lICE $X_EXTRA_LIBS $LIBS"
8180 cat >conftest.
$ac_ext <<_ACEOF
8183 cat confdefs.h
>>conftest.
$ac_ext
8184 cat >>conftest.
$ac_ext <<_ACEOF
8185 /* end confdefs.h. */
8187 /* Override any GCC internal prototype to avoid an error.
8188 Use char because int might match the return type of a GCC
8189 builtin and then its argument prototype would still apply. */
8193 char IceOpenConnection ();
8197 return IceOpenConnection ();
8202 rm -f conftest.
$ac_objext conftest
$ac_exeext
8203 if { (ac_try
="$ac_link"
8205 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8206 *) ac_try_echo=$ac_try;;
8208 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8209 $as_echo "$ac_try_echo") >&5
8210 (eval "$ac_link") 2>conftest.er1
8212 grep -v '^ *+' conftest.er1 >conftest.err
8214 cat conftest.err >&5
8215 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8216 (exit $ac_status); } && {
8217 test -z "$ac_c_werror_flag" ||
8218 test ! -s conftest.err
8219 } && test -s conftest$ac_exeext && {
8220 test "$cross_compiling" = yes ||
8221 $as_test_x conftest$ac_exeext
8223 ac_cv_lib_ICE_IceOpenConnection=yes
8225 $as_echo "$as_me: failed program was:" >&5
8226 sed 's/^/| /' conftest.$ac_ext >&5
8228 ac_cv_lib_ICE_IceOpenConnection=no
8231 rm -rf conftest.dSYM
8232 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8233 conftest$ac_exeext conftest.$ac_ext
8234 LIBS=$ac_check_lib_save_LIBS
8236 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceOpenConnection" >&5
8237 $as_echo "$ac_cv_lib_ICE_IceOpenConnection" >&6; }
8238 if test "x$ac_cv_lib_ICE_IceOpenConnection" = x""yes; then
8239 X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE"
8243 LDFLAGS="$X_LIBS $ac_save_LDFLAGS"
8244 { $as_echo "$as_me:$LINENO: checking for XpmCreatePixmapFromData in -lXpm" >&5
8245 $as_echo_n "checking for XpmCreatePixmapFromData in -lXpm... " >&6; }
8246 if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then
8247 $as_echo_n "(cached) " >&6
8249 ac_check_lib_save_LIBS=$LIBS
8250 LIBS="-lXpm -lXt $X_PRE_LIBS -lXpm -lX11 $X_EXTRA_LIBS $LIBS"
8251 cat >conftest.$ac_ext <<_ACEOF
8254 cat confdefs.h >>conftest.$ac_ext
8255 cat >>conftest.$ac_ext <<_ACEOF
8256 /* end confdefs.h. */
8258 /* Override any GCC internal prototype to avoid an error.
8259 Use char because int might match the return type of a GCC
8260 builtin and then its argument prototype would still apply. */
8264 char XpmCreatePixmapFromData ();
8268 return XpmCreatePixmapFromData ();
8273 rm -f conftest.$ac_objext conftest$ac_exeext
8274 if { (ac_try="$ac_link"
8276 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8277 *) ac_try_echo
=$ac_try;;
8279 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8280 $as_echo "$ac_try_echo") >&5
8281 (eval "$ac_link") 2>conftest.er1
8283 grep -v '^ *+' conftest.er1
>conftest.err
8285 cat conftest.err
>&5
8286 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8287 (exit $ac_status); } && {
8288 test -z "$ac_c_werror_flag" ||
8289 test ! -s conftest.err
8290 } && test -s conftest
$ac_exeext && {
8291 test "$cross_compiling" = yes ||
8292 $as_test_x conftest
$ac_exeext
8294 ac_cv_lib_Xpm_XpmCreatePixmapFromData
=yes
8296 $as_echo "$as_me: failed program was:" >&5
8297 sed 's/^/| /' conftest.
$ac_ext >&5
8299 ac_cv_lib_Xpm_XpmCreatePixmapFromData
=no
8302 rm -rf conftest.dSYM
8303 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8304 conftest
$ac_exeext conftest.
$ac_ext
8305 LIBS
=$ac_check_lib_save_LIBS
8307 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
8308 $as_echo "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6; }
8309 if test "x$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = x
""yes; then
8310 X_PRE_LIBS
="$X_PRE_LIBS -lXpm"
8314 { $as_echo "$as_me:$LINENO: checking if X11 header files implicitly declare return values" >&5
8315 $as_echo_n "checking if X11 header files implicitly declare return values... " >&6; }
8317 CFLAGS
="$CFLAGS $X_CFLAGS -Werror"
8318 cat >conftest.
$ac_ext <<_ACEOF
8321 cat confdefs.h
>>conftest.
$ac_ext
8322 cat >>conftest.
$ac_ext <<_ACEOF
8323 /* end confdefs.h. */
8324 #include <X11/Xlib.h>
8333 rm -f conftest.
$ac_objext
8334 if { (ac_try
="$ac_compile"
8336 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8337 *) ac_try_echo=$ac_try;;
8339 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8340 $as_echo "$ac_try_echo") >&5
8341 (eval "$ac_compile") 2>conftest.er1
8343 grep -v '^ *+' conftest.er1 >conftest.err
8345 cat conftest.err >&5
8346 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8347 (exit $ac_status); } && {
8348 test -z "$ac_c_werror_flag" ||
8349 test ! -s conftest.err
8350 } && test -s conftest.$ac_objext; then
8351 { $as_echo "$as_me:$LINENO: result: no" >&5
8352 $as_echo "no" >&6; }
8354 $as_echo "$as_me: failed program was:" >&5
8355 sed 's/^/| /' conftest.$ac_ext >&5
8357 CFLAGS="$CFLAGS -Wno-implicit-int"
8358 cat >conftest.$ac_ext <<_ACEOF
8361 cat confdefs.h >>conftest.$ac_ext
8362 cat >>conftest.$ac_ext <<_ACEOF
8363 /* end confdefs.h. */
8364 #include <X11/Xlib.h>
8373 rm -f conftest.$ac_objext
8374 if { (ac_try="$ac_compile"
8376 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8377 *) ac_try_echo
=$ac_try;;
8379 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8380 $as_echo "$ac_try_echo") >&5
8381 (eval "$ac_compile") 2>conftest.er1
8383 grep -v '^ *+' conftest.er1
>conftest.err
8385 cat conftest.err
>&5
8386 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8387 (exit $ac_status); } && {
8388 test -z "$ac_c_werror_flag" ||
8389 test ! -s conftest.err
8390 } && test -s conftest.
$ac_objext; then
8391 { $as_echo "$as_me:$LINENO: result: yes" >&5
8392 $as_echo "yes" >&6; }; cflags_save
="$cflags_save -Wno-implicit-int"
8394 $as_echo "$as_me: failed program was:" >&5
8395 sed 's/^/| /' conftest.
$ac_ext >&5
8397 { $as_echo "$as_me:$LINENO: result: test failed" >&5
8398 $as_echo "test failed" >&6; }
8402 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8406 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8409 LDFLAGS
="$ac_save_LDFLAGS"
8411 { $as_echo "$as_me:$LINENO: checking size of wchar_t is 2 bytes" >&5
8412 $as_echo_n "checking size of wchar_t is 2 bytes... " >&6; }
8413 if test "${ac_cv_small_wchar_t+set}" = set; then
8414 $as_echo_n "(cached) " >&6
8416 if test "$cross_compiling" = yes; then
8417 { { $as_echo "$as_me:$LINENO: error: failed to compile test program" >&5
8418 $as_echo "$as_me: error: failed to compile test program" >&2;}
8419 { (exit 1); exit 1; }; }
8421 cat >conftest.
$ac_ext <<_ACEOF
8424 cat confdefs.h
>>conftest.
$ac_ext
8425 cat >>conftest.
$ac_ext <<_ACEOF
8426 /* end confdefs.h. */
8428 #include <X11/Xlib.h>
8430 # include <stdlib.h>
8431 # include <stddef.h>
8435 if (sizeof(wchar_t) <= 2)
8440 rm -f conftest
$ac_exeext
8441 if { (ac_try
="$ac_link"
8443 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8444 *) ac_try_echo=$ac_try;;
8446 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8447 $as_echo "$ac_try_echo") >&5
8448 (eval "$ac_link") 2>&5
8450 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8451 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8452 { (case "(($ac_try" in
8453 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8454 *) ac_try_echo
=$ac_try;;
8456 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8457 $as_echo "$ac_try_echo") >&5
8458 (eval "$ac_try") 2>&5
8460 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8461 (exit $ac_status); }; }; then
8462 ac_cv_small_wchar_t
="no"
8464 $as_echo "$as_me: program exited with status $ac_status" >&5
8465 $as_echo "$as_me: failed program was:" >&5
8466 sed 's/^/| /' conftest.
$ac_ext >&5
8469 ac_cv_small_wchar_t
="yes"
8471 rm -rf conftest.dSYM
8472 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8478 { $as_echo "$as_me:$LINENO: result: $ac_cv_small_wchar_t" >&5
8479 $as_echo "$ac_cv_small_wchar_t" >&6; }
8480 if test "x$ac_cv_small_wchar_t" = "xyes" ; then
8481 cat >>confdefs.h
<<\_ACEOF
8482 #define SMALL_WCHAR_T 1
8490 test "x$with_x" = xno
-a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && enable_gui
=no
8492 { $as_echo "$as_me:$LINENO: checking --enable-gui argument" >&5
8493 $as_echo_n "checking --enable-gui argument... " >&6; }
8494 # Check whether --enable-gui was given.
8495 if test "${enable_gui+set}" = set; then
8496 enableval
=$enable_gui;
8502 enable_gui_canon
=`echo "_$enable_gui" | \
8503 sed 's/[ _+-]//g;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
8515 if test "x$QNX" = "xyes" -a "x$with_x" = "xno" ; then
8517 case "$enable_gui_canon" in
8518 no
) { $as_echo "$as_me:$LINENO: result: no GUI support" >&5
8519 $as_echo "no GUI support" >&6; }
8521 yes|
"") { $as_echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5
8522 $as_echo "yes - automatic GUI support" >&6; } ;;
8523 auto
) { $as_echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5
8524 $as_echo "auto - automatic GUI support" >&6; } ;;
8525 photon
) { $as_echo "$as_me:$LINENO: result: Photon GUI support" >&5
8526 $as_echo "Photon GUI support" >&6; } ;;
8527 *) { $as_echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
8528 $as_echo "Sorry, $enable_gui GUI is not supported" >&6; }
8532 elif test "x$MACOSX" = "xyes" -a "x$with_x" = "xno" ; then
8534 case "$enable_gui_canon" in
8535 no
) { $as_echo "$as_me:$LINENO: result: no GUI support" >&5
8536 $as_echo "no GUI support" >&6; }
8538 yes|
"") { $as_echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5
8539 $as_echo "yes - automatic GUI support" >&6; } ;;
8540 auto
) { $as_echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5
8541 $as_echo "auto - automatic GUI support" >&6; } ;;
8542 carbon
) { $as_echo "$as_me:$LINENO: result: Carbon GUI support" >&5
8543 $as_echo "Carbon GUI support" >&6; } ;;
8544 *) { $as_echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
8545 $as_echo "Sorry, $enable_gui GUI is not supported" >&6; }
8551 case "$enable_gui_canon" in
8552 no|none
) { $as_echo "$as_me:$LINENO: result: no GUI support" >&5
8553 $as_echo "no GUI support" >&6; } ;;
8554 yes|
""|auto
) { $as_echo "$as_me:$LINENO: result: yes/auto - automatic GUI support" >&5
8555 $as_echo "yes/auto - automatic GUI support" >&6; }
8563 gtk
) { $as_echo "$as_me:$LINENO: result: GTK+ 1.x GUI support" >&5
8564 $as_echo "GTK+ 1.x GUI support" >&6; }
8566 gtk2
) { $as_echo "$as_me:$LINENO: result: GTK+ 2.x GUI support" >&5
8567 $as_echo "GTK+ 2.x GUI support" >&6; }
8570 gnome
) { $as_echo "$as_me:$LINENO: result: GNOME 1.x GUI support" >&5
8571 $as_echo "GNOME 1.x GUI support" >&6; }
8574 gnome2
) { $as_echo "$as_me:$LINENO: result: GNOME 2.x GUI support" >&5
8575 $as_echo "GNOME 2.x GUI support" >&6; }
8579 motif
) { $as_echo "$as_me:$LINENO: result: Motif GUI support" >&5
8580 $as_echo "Motif GUI support" >&6; }
8582 athena
) { $as_echo "$as_me:$LINENO: result: Athena GUI support" >&5
8583 $as_echo "Athena GUI support" >&6; }
8585 nextaw
) { $as_echo "$as_me:$LINENO: result: neXtaw GUI support" >&5
8586 $as_echo "neXtaw GUI support" >&6; }
8588 *) { $as_echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
8589 $as_echo "Sorry, $enable_gui GUI is not supported" >&6; } ;;
8594 if test "x$SKIP_GTK" != "xYES" -a "$enable_gui_canon" != "gtk" -a "$enable_gui_canon" != "gtk2"; then
8595 { $as_echo "$as_me:$LINENO: checking whether or not to look for GTK" >&5
8596 $as_echo_n "checking whether or not to look for GTK... " >&6; }
8597 # Check whether --enable-gtk-check was given.
8598 if test "${enable_gtk_check+set}" = set; then
8599 enableval
=$enable_gtk_check;
8601 enable_gtk_check
="yes"
8604 { $as_echo "$as_me:$LINENO: result: $enable_gtk_check" >&5
8605 $as_echo "$enable_gtk_check" >&6; }
8606 if test "x$enable_gtk_check" = "xno"; then
8612 if test "x$SKIP_GTK2" != "xYES" -a "$enable_gui_canon" != "gtk2" \
8613 -a "$enable_gui_canon" != "gnome2"; then
8614 { $as_echo "$as_me:$LINENO: checking whether or not to look for GTK+ 2" >&5
8615 $as_echo_n "checking whether or not to look for GTK+ 2... " >&6; }
8616 # Check whether --enable-gtk2-check was given.
8617 if test "${enable_gtk2_check+set}" = set; then
8618 enableval
=$enable_gtk2_check;
8620 enable_gtk2_check
="yes"
8623 { $as_echo "$as_me:$LINENO: result: $enable_gtk2_check" >&5
8624 $as_echo "$enable_gtk2_check" >&6; }
8625 if test "x$enable_gtk2_check" = "xno"; then
8630 if test "x$SKIP_GNOME" != "xYES" -a "$enable_gui_canon" != "gnome" \
8631 -a "$enable_gui_canon" != "gnome2"; then
8632 { $as_echo "$as_me:$LINENO: checking whether or not to look for GNOME" >&5
8633 $as_echo_n "checking whether or not to look for GNOME... " >&6; }
8634 # Check whether --enable-gnome-check was given.
8635 if test "${enable_gnome_check+set}" = set; then
8636 enableval
=$enable_gnome_check;
8638 enable_gnome_check
="no"
8641 { $as_echo "$as_me:$LINENO: result: $enable_gnome_check" >&5
8642 $as_echo "$enable_gnome_check" >&6; }
8643 if test "x$enable_gnome_check" = "xno"; then
8648 if test "x$SKIP_MOTIF" != "xYES" -a "$enable_gui_canon" != "motif"; then
8649 { $as_echo "$as_me:$LINENO: checking whether or not to look for Motif" >&5
8650 $as_echo_n "checking whether or not to look for Motif... " >&6; }
8651 # Check whether --enable-motif-check was given.
8652 if test "${enable_motif_check+set}" = set; then
8653 enableval
=$enable_motif_check;
8655 enable_motif_check
="yes"
8658 { $as_echo "$as_me:$LINENO: result: $enable_motif_check" >&5
8659 $as_echo "$enable_motif_check" >&6; }
8660 if test "x$enable_motif_check" = "xno"; then
8665 if test "x$SKIP_ATHENA" != "xYES" -a "$enable_gui_canon" != "athena"; then
8666 { $as_echo "$as_me:$LINENO: checking whether or not to look for Athena" >&5
8667 $as_echo_n "checking whether or not to look for Athena... " >&6; }
8668 # Check whether --enable-athena-check was given.
8669 if test "${enable_athena_check+set}" = set; then
8670 enableval
=$enable_athena_check;
8672 enable_athena_check
="yes"
8675 { $as_echo "$as_me:$LINENO: result: $enable_athena_check" >&5
8676 $as_echo "$enable_athena_check" >&6; }
8677 if test "x$enable_athena_check" = "xno"; then
8682 if test "x$SKIP_NEXTAW" != "xYES" -a "$enable_gui_canon" != "nextaw"; then
8683 { $as_echo "$as_me:$LINENO: checking whether or not to look for neXtaw" >&5
8684 $as_echo_n "checking whether or not to look for neXtaw... " >&6; }
8685 # Check whether --enable-nextaw-check was given.
8686 if test "${enable_nextaw_check+set}" = set; then
8687 enableval
=$enable_nextaw_check;
8689 enable_nextaw_check
="yes"
8692 { $as_echo "$as_me:$LINENO: result: $enable_nextaw_check" >&5
8693 $as_echo "$enable_nextaw_check" >&6; };
8694 if test "x$enable_nextaw_check" = "xno"; then
8699 if test "x$SKIP_CARBON" != "xYES" -a "$enable_gui_canon" != "carbon"; then
8700 { $as_echo "$as_me:$LINENO: checking whether or not to look for Carbon" >&5
8701 $as_echo_n "checking whether or not to look for Carbon... " >&6; }
8702 # Check whether --enable-carbon-check was given.
8703 if test "${enable_carbon_check+set}" = set; then
8704 enableval
=$enable_carbon_check;
8706 enable_carbon_check
="yes"
8709 { $as_echo "$as_me:$LINENO: result: $enable_carbon_check" >&5
8710 $as_echo "$enable_carbon_check" >&6; };
8711 if test "x$enable_carbon_check" = "xno"; then
8717 if test "x$MACOSX" = "xyes" -a -z "$SKIP_CARBON" -a "x$CARBON" = "xyes"; then
8718 { $as_echo "$as_me:$LINENO: checking for Carbon GUI" >&5
8719 $as_echo_n "checking for Carbon GUI... " >&6; }
8720 { $as_echo "$as_me:$LINENO: result: yes" >&5
8721 $as_echo "yes" >&6; };
8723 if test "$VIMNAME" = "vim"; then
8727 if test x
$prefix = xNONE
; then
8728 prefix
=/Applications
8731 datadir
='${prefix}/Vim.app/Contents/Resources'
8751 if test -z "$SKIP_GTK"; then
8753 { $as_echo "$as_me:$LINENO: checking --with-gtk-prefix argument" >&5
8754 $as_echo_n "checking --with-gtk-prefix argument... " >&6; }
8756 # Check whether --with-gtk-prefix was given.
8757 if test "${with_gtk_prefix+set}" = set; then
8758 withval
=$with_gtk_prefix; gtk_config_prefix
="$withval"; { $as_echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5
8759 $as_echo "$gtk_config_prefix" >&6; }
8761 gtk_config_prefix
=""; { $as_echo "$as_me:$LINENO: result: no" >&5
8762 $as_echo "no" >&6; }
8766 { $as_echo "$as_me:$LINENO: checking --with-gtk-exec-prefix argument" >&5
8767 $as_echo_n "checking --with-gtk-exec-prefix argument... " >&6; }
8769 # Check whether --with-gtk-exec-prefix was given.
8770 if test "${with_gtk_exec_prefix+set}" = set; then
8771 withval
=$with_gtk_exec_prefix; gtk_config_exec_prefix
="$withval"; { $as_echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5
8772 $as_echo "$gtk_config_prefix" >&6; }
8774 gtk_config_exec_prefix
=""; { $as_echo "$as_me:$LINENO: result: no" >&5
8775 $as_echo "no" >&6; }
8779 { $as_echo "$as_me:$LINENO: checking --disable-gtktest argument" >&5
8780 $as_echo_n "checking --disable-gtktest argument... " >&6; }
8781 # Check whether --enable-gtktest was given.
8782 if test "${enable_gtktest+set}" = set; then
8783 enableval
=$enable_gtktest;
8788 if test "x$enable_gtktest" = "xyes" ; then
8789 { $as_echo "$as_me:$LINENO: result: gtk test enabled" >&5
8790 $as_echo "gtk test enabled" >&6; }
8792 { $as_echo "$as_me:$LINENO: result: gtk test disabled" >&5
8793 $as_echo "gtk test disabled" >&6; }
8796 if test "x$gtk_config_prefix" != "x" ; then
8797 gtk_config_args
="$gtk_config_args --prefix=$gtk_config_prefix"
8798 GTK_CONFIG
=$gtk_config_prefix/bin
/gtk-config
8800 if test "x$gtk_config_exec_prefix" != "x" ; then
8801 gtk_config_args
="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
8802 GTK_CONFIG
=$gtk_config_exec_prefix/bin
/gtk-config
8804 if test "X$GTK_CONFIG" = "X"; then
8805 # Extract the first word of "gtk-config", so it can be a program name with args.
8806 set dummy gtk-config
; ac_word
=$2
8807 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8808 $as_echo_n "checking for $ac_word... " >&6; }
8809 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
8810 $as_echo_n "(cached) " >&6
8814 ac_cv_path_GTK_CONFIG
="$GTK_CONFIG" # Let the user override the test with a path.
8817 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8821 test -z "$as_dir" && as_dir
=.
8822 for ac_exec_ext
in '' $ac_executable_extensions; do
8823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8824 ac_cv_path_GTK_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8825 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8832 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG
="no"
8836 GTK_CONFIG
=$ac_cv_path_GTK_CONFIG
8837 if test -n "$GTK_CONFIG"; then
8838 { $as_echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
8839 $as_echo "$GTK_CONFIG" >&6; }
8841 { $as_echo "$as_me:$LINENO: result: no" >&5
8842 $as_echo "no" >&6; }
8846 if test "X$GTK_CONFIG" = "Xno"; then
8847 # Extract the first word of "gtk12-config", so it can be a program name with args.
8848 set dummy gtk12-config
; ac_word
=$2
8849 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8850 $as_echo_n "checking for $ac_word... " >&6; }
8851 if test "${ac_cv_path_GTK12_CONFIG+set}" = set; then
8852 $as_echo_n "(cached) " >&6
8854 case $GTK12_CONFIG in
8856 ac_cv_path_GTK12_CONFIG
="$GTK12_CONFIG" # Let the user override the test with a path.
8859 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8863 test -z "$as_dir" && as_dir
=.
8864 for ac_exec_ext
in '' $ac_executable_extensions; do
8865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8866 ac_cv_path_GTK12_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8867 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8874 test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG
="no"
8878 GTK12_CONFIG
=$ac_cv_path_GTK12_CONFIG
8879 if test -n "$GTK12_CONFIG"; then
8880 { $as_echo "$as_me:$LINENO: result: $GTK12_CONFIG" >&5
8881 $as_echo "$GTK12_CONFIG" >&6; }
8883 { $as_echo "$as_me:$LINENO: result: no" >&5
8884 $as_echo "no" >&6; }
8888 GTK_CONFIG
="$GTK12_CONFIG"
8891 { $as_echo "$as_me:$LINENO: result: Using GTK configuration program $GTK_CONFIG" >&5
8892 $as_echo "Using GTK configuration program $GTK_CONFIG" >&6; }
8894 if test "X$PKG_CONFIG" = "X"; then
8895 # Extract the first word of "pkg-config", so it can be a program name with args.
8896 set dummy pkg-config
; ac_word
=$2
8897 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8898 $as_echo_n "checking for $ac_word... " >&6; }
8899 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8900 $as_echo_n "(cached) " >&6
8904 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
8907 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8911 test -z "$as_dir" && as_dir
=.
8912 for ac_exec_ext
in '' $ac_executable_extensions; do
8913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8914 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8915 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8922 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
8926 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
8927 if test -n "$PKG_CONFIG"; then
8928 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8929 $as_echo "$PKG_CONFIG" >&6; }
8931 { $as_echo "$as_me:$LINENO: result: no" >&5
8932 $as_echo "no" >&6; }
8938 if test "x$GTK_CONFIG:$PKG_CONFIG" != "xno:no"; then
8939 if test "X$SKIP_GTK2" != "XYES"; then
8941 if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
8943 min_gtk_version
=2.2.0
8944 { $as_echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
8945 $as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; }
8947 if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
8948 && $PKG_CONFIG --exists gtk
+-2.0
; then
8950 GTK_CFLAGS
=`$PKG_CONFIG --cflags gtk+-2.0`
8951 GTK_LIBDIR
=`$PKG_CONFIG --libs-only-L gtk+-2.0`
8952 GTK_LIBS
=`$PKG_CONFIG --libs gtk+-2.0`
8953 gtk_major_version
=`$PKG_CONFIG --modversion gtk+-2.0 | \
8954 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8955 gtk_minor_version
=`$PKG_CONFIG --modversion gtk+-2.0 | \
8956 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8957 gtk_micro_version
=`$PKG_CONFIG --modversion gtk+-2.0 | \
8958 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8960 elif test "X$GTK_CONFIG" != "Xno"; then
8962 GTK_CFLAGS
=`$GTK_CONFIG $gtk_config_args --cflags`
8964 GTK_LIBS
=`$GTK_CONFIG $gtk_config_args --libs`
8965 gtk_major_version
=`$GTK_CONFIG $gtk_config_args --version | \
8966 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8967 gtk_minor_version
=`$GTK_CONFIG $gtk_config_args --version | \
8968 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8969 gtk_micro_version
=`$GTK_CONFIG $gtk_config_args --version | \
8970 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8976 if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
8978 ac_save_CFLAGS
="$CFLAGS"
8979 ac_save_LIBS
="$LIBS"
8980 CFLAGS
="$CFLAGS $GTK_CFLAGS"
8981 LIBS
="$LIBS $GTK_LIBS"
8984 if test "$cross_compiling" = yes; then
8985 echo $ac_n "cross compiling; assumed OK... $ac_c"
8987 cat >conftest.
$ac_ext <<_ACEOF
8990 cat confdefs.h
>>conftest.
$ac_ext
8991 cat >>conftest.
$ac_ext <<_ACEOF
8992 /* end confdefs.h. */
8994 #include <gtk/gtk.h>
8997 # include <stdlib.h>
8998 # include <stddef.h>
9004 int major, minor, micro;
9007 system ("touch conf.gtktest");
9009 /* HP/UX 9 (%@#!) writes to sscanf strings */
9010 tmp_version = g_strdup("$min_gtk_version");
9011 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
9012 printf("%s, bad version string\n", "$min_gtk_version");
9016 if ((gtk_major_version > major) ||
9017 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
9018 ((gtk_major_version == major) && (gtk_minor_version == minor) &&
9019 (gtk_micro_version >= micro)))
9027 rm -f conftest
$ac_exeext
9028 if { (ac_try
="$ac_link"
9030 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9031 *) ac_try_echo=$ac_try;;
9033 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9034 $as_echo "$ac_try_echo") >&5
9035 (eval "$ac_link") 2>&5
9037 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9038 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9039 { (case "(($ac_try" in
9040 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9041 *) ac_try_echo
=$ac_try;;
9043 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9044 $as_echo "$ac_try_echo") >&5
9045 (eval "$ac_try") 2>&5
9047 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9048 (exit $ac_status); }; }; then
9051 $as_echo "$as_me: program exited with status $ac_status" >&5
9052 $as_echo "$as_me: failed program was:" >&5
9053 sed 's/^/| /' conftest.
$ac_ext >&5
9058 rm -rf conftest.dSYM
9059 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9063 CFLAGS
="$ac_save_CFLAGS"
9064 LIBS
="$ac_save_LIBS"
9067 if test "x$no_gtk" = x
; then
9068 if test "x$enable_gtktest" = "xyes"; then
9069 { $as_echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
9070 $as_echo "yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
9072 { $as_echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
9073 $as_echo "found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
9075 GUI_LIB_LOC
="$GTK_LIBDIR"
9076 GTK_LIBNAME
="$GTK_LIBS"
9077 GUI_INC_LOC
="$GTK_CFLAGS"
9080 { $as_echo "$as_me:$LINENO: result: no" >&5
9081 $as_echo "no" >&6; }
9097 if test "x$GTK_CFLAGS" != "x"; then
9106 if test "x$GUITYPE" != "xGTK"; then
9109 if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
9111 min_gtk_version
=1.1.16
9112 { $as_echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
9113 $as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; }
9115 if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
9116 && $PKG_CONFIG --exists gtk
+-2.0
; then
9118 GTK_CFLAGS
=`$PKG_CONFIG --cflags gtk+-2.0`
9119 GTK_LIBDIR
=`$PKG_CONFIG --libs-only-L gtk+-2.0`
9120 GTK_LIBS
=`$PKG_CONFIG --libs gtk+-2.0`
9121 gtk_major_version
=`$PKG_CONFIG --modversion gtk+-2.0 | \
9122 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
9123 gtk_minor_version
=`$PKG_CONFIG --modversion gtk+-2.0 | \
9124 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
9125 gtk_micro_version
=`$PKG_CONFIG --modversion gtk+-2.0 | \
9126 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
9128 elif test "X$GTK_CONFIG" != "Xno"; then
9130 GTK_CFLAGS
=`$GTK_CONFIG $gtk_config_args --cflags`
9132 GTK_LIBS
=`$GTK_CONFIG $gtk_config_args --libs`
9133 gtk_major_version
=`$GTK_CONFIG $gtk_config_args --version | \
9134 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
9135 gtk_minor_version
=`$GTK_CONFIG $gtk_config_args --version | \
9136 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
9137 gtk_micro_version
=`$GTK_CONFIG $gtk_config_args --version | \
9138 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
9144 if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
9146 ac_save_CFLAGS
="$CFLAGS"
9147 ac_save_LIBS
="$LIBS"
9148 CFLAGS
="$CFLAGS $GTK_CFLAGS"
9149 LIBS
="$LIBS $GTK_LIBS"
9152 if test "$cross_compiling" = yes; then
9153 echo $ac_n "cross compiling; assumed OK... $ac_c"
9155 cat >conftest.
$ac_ext <<_ACEOF
9158 cat confdefs.h
>>conftest.
$ac_ext
9159 cat >>conftest.
$ac_ext <<_ACEOF
9160 /* end confdefs.h. */
9162 #include <gtk/gtk.h>
9165 # include <stdlib.h>
9166 # include <stddef.h>
9172 int major, minor, micro;
9175 system ("touch conf.gtktest");
9177 /* HP/UX 9 (%@#!) writes to sscanf strings */
9178 tmp_version = g_strdup("$min_gtk_version");
9179 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
9180 printf("%s, bad version string\n", "$min_gtk_version");
9184 if ((gtk_major_version > major) ||
9185 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
9186 ((gtk_major_version == major) && (gtk_minor_version == minor) &&
9187 (gtk_micro_version >= micro)))
9195 rm -f conftest
$ac_exeext
9196 if { (ac_try
="$ac_link"
9198 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9199 *) ac_try_echo=$ac_try;;
9201 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9202 $as_echo "$ac_try_echo") >&5
9203 (eval "$ac_link") 2>&5
9205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9206 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9207 { (case "(($ac_try" in
9208 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9209 *) ac_try_echo
=$ac_try;;
9211 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9212 $as_echo "$ac_try_echo") >&5
9213 (eval "$ac_try") 2>&5
9215 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9216 (exit $ac_status); }; }; then
9219 $as_echo "$as_me: program exited with status $ac_status" >&5
9220 $as_echo "$as_me: failed program was:" >&5
9221 sed 's/^/| /' conftest.
$ac_ext >&5
9226 rm -rf conftest.dSYM
9227 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9231 CFLAGS
="$ac_save_CFLAGS"
9232 LIBS
="$ac_save_LIBS"
9235 if test "x$no_gtk" = x
; then
9236 if test "x$enable_gtktest" = "xyes"; then
9237 { $as_echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
9238 $as_echo "yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
9240 { $as_echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
9241 $as_echo "found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
9243 GTK_LIBNAME
="$GTK_LIBS"
9244 GUI_INC_LOC
="$GTK_CFLAGS"
9247 { $as_echo "$as_me:$LINENO: result: no" >&5
9248 $as_echo "no" >&6; }
9264 if test "x$GTK_CFLAGS" != "x"; then
9273 if test "x$GUITYPE" = "xGTK"; then
9274 if test "$gtk_major_version" = 1 -a "0$gtk_minor_version" -lt 2 \
9275 -o "$gtk_major_version" = 1 -a "$gtk_minor_version" = 2 -a "0$gtk_micro_version" -lt 3; then
9276 { $as_echo "$as_me:$LINENO: result: this GTK version is old; version 1.2.3 or later is recommended" >&5
9277 $as_echo "this GTK version is old; version 1.2.3 or later is recommended" >&6; }
9280 if test "0$gtk_major_version" -ge 2; then
9281 cat >>confdefs.h
<<\_ACEOF
9285 if test "$gtk_minor_version" = 1 -a "0$gtk_micro_version" -ge 1 \
9286 ||
test "0$gtk_minor_version" -ge 2 \
9287 ||
test "0$gtk_major_version" -gt 2; then
9288 cat >>confdefs.h
<<\_ACEOF
9289 #define HAVE_GTK_MULTIHEAD 1
9294 if test -z "$SKIP_GNOME"; then
9302 # Check whether --with-gnome-includes was given.
9303 if test "${with_gnome_includes+set}" = set; then
9304 withval
=$with_gnome_includes; CFLAGS
="$CFLAGS -I$withval"
9310 # Check whether --with-gnome-libs was given.
9311 if test "${with_gnome_libs+set}" = set; then
9312 withval
=$with_gnome_libs; LDFLAGS
="$LDFLAGS -L$withval" gnome_prefix
=$withval
9318 # Check whether --with-gnome was given.
9319 if test "${with_gnome+set}" = set; then
9320 withval
=$with_gnome; if test x
$withval = xyes
; then
9324 if test "x$withval" = xno
; then
9328 LDFLAGS
="$LDFLAGS -L$withval/lib"
9329 CFLAGS
="$CFLAGS -I$withval/include"
9330 gnome_prefix
=$withval/lib
9338 if test "x$want_gnome" = xyes
-a "0$gtk_major_version" -ge 2; then
9340 { $as_echo "$as_me:$LINENO: checking for libgnomeui-2.0" >&5
9341 $as_echo_n "checking for libgnomeui-2.0... " >&6; }
9342 if $PKG_CONFIG --exists libgnomeui-2.0
; then
9343 { $as_echo "$as_me:$LINENO: result: yes" >&5
9344 $as_echo "yes" >&6; }
9345 GNOME_LIBS
=`$PKG_CONFIG --libs-only-l libgnomeui-2.0`
9346 GNOME_LIBDIR
=`$PKG_CONFIG --libs-only-L libgnomeui-2.0`
9347 GNOME_INCLUDEDIR
=`$PKG_CONFIG --cflags libgnomeui-2.0`
9349 { $as_echo "$as_me:$LINENO: checking for FreeBSD" >&5
9350 $as_echo_n "checking for FreeBSD... " >&6; }
9351 if test "`(uname) 2>/dev/null`" = FreeBSD
; then
9352 { $as_echo "$as_me:$LINENO: result: yes" >&5
9353 $as_echo "yes" >&6; }
9354 GNOME_INCLUDEDIR
="$GNOME_INCLUDEDIR -D_THREAD_SAFE"
9355 GNOME_LIBS
="$GNOME_LIBS -pthread"
9357 { $as_echo "$as_me:$LINENO: result: no" >&5
9358 $as_echo "no" >&6; }
9362 { $as_echo "$as_me:$LINENO: result: not found" >&5
9363 $as_echo "not found" >&6; }
9364 if test "x" = xfail
; then
9365 { { $as_echo "$as_me:$LINENO: error: Could not find libgnomeui-2.0 via pkg-config" >&5
9366 $as_echo "$as_me: error: Could not find libgnomeui-2.0 via pkg-config" >&2;}
9367 { (exit 1); exit 1; }; }
9371 elif test "x$want_gnome" = xyes
; then
9373 # Extract the first word of "gnome-config", so it can be a program name with args.
9374 set dummy gnome-config
; ac_word
=$2
9375 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9376 $as_echo_n "checking for $ac_word... " >&6; }
9377 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
9378 $as_echo_n "(cached) " >&6
9380 case $GNOME_CONFIG in
9382 ac_cv_path_GNOME_CONFIG
="$GNOME_CONFIG" # Let the user override the test with a path.
9385 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9389 test -z "$as_dir" && as_dir
=.
9390 for ac_exec_ext
in '' $ac_executable_extensions; do
9391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9392 ac_cv_path_GNOME_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9393 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9400 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG
="no"
9404 GNOME_CONFIG
=$ac_cv_path_GNOME_CONFIG
9405 if test -n "$GNOME_CONFIG"; then
9406 { $as_echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
9407 $as_echo "$GNOME_CONFIG" >&6; }
9409 { $as_echo "$as_me:$LINENO: result: no" >&5
9410 $as_echo "no" >&6; }
9414 if test "$GNOME_CONFIG" = "no"; then
9415 no_gnome_config
="yes"
9417 { $as_echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
9418 $as_echo_n "checking if $GNOME_CONFIG works... " >&6; }
9419 if $GNOME_CONFIG --libs-only-l gnome
>/dev
/null
2>&1; then
9420 { $as_echo "$as_me:$LINENO: result: yes" >&5
9421 $as_echo "yes" >&6; }
9422 GNOME_LIBS
="`$GNOME_CONFIG --libs-only-l gnome gnomeui`"
9423 GNOME_LIBDIR
="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
9424 GNOME_INCLUDEDIR
="`$GNOME_CONFIG --cflags gnorba gnomeui`"
9427 { $as_echo "$as_me:$LINENO: result: no" >&5
9428 $as_echo "no" >&6; }
9429 no_gnome_config
="yes"
9433 if test x
$exec_prefix = xNONE
; then
9434 if test x
$prefix = xNONE
; then
9435 gnome_prefix
=$ac_default_prefix/lib
9437 gnome_prefix
=$prefix/lib
9440 gnome_prefix
=`eval echo \`echo $libdir\
``
9443 if test "$no_gnome_config" = "yes"; then
9444 { $as_echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
9445 $as_echo_n "checking for gnomeConf.sh file in $gnome_prefix... " >&6; }
9446 if test -f $gnome_prefix/gnomeConf.sh
; then
9447 { $as_echo "$as_me:$LINENO: result: found" >&5
9448 $as_echo "found" >&6; }
9449 echo "loading gnome configuration from" \
9450 "$gnome_prefix/gnomeConf.sh"
9451 .
$gnome_prefix/gnomeConf.sh
9454 { $as_echo "$as_me:$LINENO: result: not found" >&5
9455 $as_echo "not found" >&6; }
9456 if test x
= xfail
; then
9457 { { $as_echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
9458 $as_echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
9459 { (exit 1); exit 1; }; }
9466 if test x
$have_gnome = xyes
; then
9467 cat >>confdefs.h
<<\_ACEOF
9468 #define FEAT_GUI_GNOME 1
9471 GUI_INC_LOC
="$GUI_INC_LOC $GNOME_INCLUDEDIR"
9472 GTK_LIBNAME
="$GTK_LIBNAME $GNOME_LIBDIR $GNOME_LIBS"
9482 if test -z "$SKIP_MOTIF"; then
9483 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"
9484 GUI_INC_LOC
="`echo $GUI_INC_LOC|sed 's%-I%%g'`"
9486 { $as_echo "$as_me:$LINENO: checking for location of Motif GUI includes" >&5
9487 $as_echo_n "checking for location of Motif GUI includes... " >&6; }
9488 gui_includes
="`echo $x_includes|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/include/g` $GUI_INC_LOC"
9490 for try
in $gui_includes; do
9491 if test -f "$try/Xm/Xm.h"; then
9495 if test -n "$GUI_INC_LOC"; then
9496 if test "$GUI_INC_LOC" = /usr
/include
; then
9498 { $as_echo "$as_me:$LINENO: result: in default path" >&5
9499 $as_echo "in default path" >&6; }
9501 { $as_echo "$as_me:$LINENO: result: $GUI_INC_LOC" >&5
9502 $as_echo "$GUI_INC_LOC" >&6; }
9505 { $as_echo "$as_me:$LINENO: result: <not found>" >&5
9506 $as_echo "<not found>" >&6; }
9512 if test -z "$SKIP_MOTIF"; then
9513 { $as_echo "$as_me:$LINENO: checking --with-motif-lib argument" >&5
9514 $as_echo_n "checking --with-motif-lib argument... " >&6; }
9516 # Check whether --with-motif-lib was given.
9517 if test "${with_motif_lib+set}" = set; then
9518 withval
=$with_motif_lib; MOTIF_LIBNAME
="${withval}"
9522 if test -n "$MOTIF_LIBNAME"; then
9523 { $as_echo "$as_me:$LINENO: result: $MOTIF_LIBNAME" >&5
9524 $as_echo "$MOTIF_LIBNAME" >&6; }
9527 { $as_echo "$as_me:$LINENO: result: no" >&5
9528 $as_echo "no" >&6; }
9530 GUI_LIB_LOC
="`echo $GUI_LIB_LOC|sed 's%-L%%g'`"
9532 { $as_echo "$as_me:$LINENO: checking for location of Motif GUI libs" >&5
9533 $as_echo_n "checking for location of Motif GUI libs... " >&6; }
9534 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"
9536 for try
in $gui_libs; do
9537 for libtry
in "$try"/libXm.a
"$try"/libXm.so
* "$try"/libXm.sl
"$try"/libXm.dylib
; do
9538 if test -f "$libtry"; then
9543 if test -n "$GUI_LIB_LOC"; then
9544 if test "$GUI_LIB_LOC" = /usr
/lib
; then
9546 { $as_echo "$as_me:$LINENO: result: in default path" >&5
9547 $as_echo "in default path" >&6; }
9549 if test -n "$GUI_LIB_LOC"; then
9550 { $as_echo "$as_me:$LINENO: result: $GUI_LIB_LOC" >&5
9551 $as_echo "$GUI_LIB_LOC" >&6; }
9552 if test "`(uname) 2>/dev/null`" = SunOS
&&
9553 uname
-r |
grep '^5' >/dev
/null
; then
9554 GUI_LIB_LOC
="$GUI_LIB_LOC -R $GUI_LIB_LOC"
9560 { $as_echo "$as_me:$LINENO: result: <not found>" >&5
9561 $as_echo "<not found>" >&6; }
9567 if test -z "$SKIP_MOTIF"; then
9577 if test -z "$SKIP_ATHENA"; then
9578 { $as_echo "$as_me:$LINENO: checking if Athena header files can be found" >&5
9579 $as_echo_n "checking if Athena header files can be found... " >&6; }
9581 CFLAGS
="$CFLAGS $X_CFLAGS"
9582 cat >conftest.
$ac_ext <<_ACEOF
9585 cat confdefs.h
>>conftest.
$ac_ext
9586 cat >>conftest.
$ac_ext <<_ACEOF
9587 /* end confdefs.h. */
9589 #include <X11/Intrinsic.h>
9590 #include <X11/Xaw/Paned.h>
9599 rm -f conftest.
$ac_objext
9600 if { (ac_try
="$ac_compile"
9602 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9603 *) ac_try_echo=$ac_try;;
9605 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9606 $as_echo "$ac_try_echo") >&5
9607 (eval "$ac_compile") 2>conftest.er1
9609 grep -v '^ *+' conftest.er1 >conftest.err
9611 cat conftest.err >&5
9612 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9613 (exit $ac_status); } && {
9614 test -z "$ac_c_werror_flag" ||
9615 test ! -s conftest.err
9616 } && test -s conftest.$ac_objext; then
9617 { $as_echo "$as_me:$LINENO: result: yes" >&5
9618 $as_echo "yes" >&6; }
9620 $as_echo "$as_me: failed program was:" >&5
9621 sed 's/^/| /' conftest.$ac_ext >&5
9623 { $as_echo "$as_me:$LINENO: result: no" >&5
9624 $as_echo "no" >&6; }; SKIP_ATHENA=YES
9627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9631 if test -z "$SKIP_ATHENA"; then
9635 if test -z "$SKIP_NEXTAW"; then
9636 { $as_echo "$as_me:$LINENO: checking if neXtaw header files can be found" >&5
9637 $as_echo_n "checking if neXtaw header files can be found... " >&6; }
9639 CFLAGS="$CFLAGS $X_CFLAGS"
9640 cat >conftest.$ac_ext <<_ACEOF
9643 cat confdefs.h >>conftest.$ac_ext
9644 cat >>conftest.$ac_ext <<_ACEOF
9645 /* end confdefs.h. */
9647 #include <X11/Intrinsic.h>
9648 #include <X11/neXtaw/Paned.h>
9657 rm -f conftest.$ac_objext
9658 if { (ac_try="$ac_compile"
9660 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9661 *) ac_try_echo
=$ac_try;;
9663 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9664 $as_echo "$ac_try_echo") >&5
9665 (eval "$ac_compile") 2>conftest.er1
9667 grep -v '^ *+' conftest.er1
>conftest.err
9669 cat conftest.err
>&5
9670 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9671 (exit $ac_status); } && {
9672 test -z "$ac_c_werror_flag" ||
9673 test ! -s conftest.err
9674 } && test -s conftest.
$ac_objext; then
9675 { $as_echo "$as_me:$LINENO: result: yes" >&5
9676 $as_echo "yes" >&6; }
9678 $as_echo "$as_me: failed program was:" >&5
9679 sed 's/^/| /' conftest.
$ac_ext >&5
9681 { $as_echo "$as_me:$LINENO: result: no" >&5
9682 $as_echo "no" >&6; }; SKIP_NEXTAW
=YES
9685 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9689 if test -z "$SKIP_NEXTAW"; then
9693 if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
9694 if test -n "$GUI_INC_LOC"; then
9695 GUI_INC_LOC
=-I"`echo $GUI_INC_LOC|sed 's%-I%%'`"
9697 if test -n "$GUI_LIB_LOC"; then
9698 GUI_LIB_LOC
=-L"`echo $GUI_LIB_LOC|sed 's%-L%%'`"
9701 ldflags_save
=$LDFLAGS
9702 LDFLAGS
="$X_LIBS $LDFLAGS"
9703 { $as_echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
9704 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
9705 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
9706 $as_echo_n "(cached) " >&6
9708 ac_check_lib_save_LIBS
=$LIBS
9709 LIBS
="-lXext -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9710 cat >conftest.
$ac_ext <<_ACEOF
9713 cat confdefs.h
>>conftest.
$ac_ext
9714 cat >>conftest.
$ac_ext <<_ACEOF
9715 /* end confdefs.h. */
9717 /* Override any GCC internal prototype to avoid an error.
9718 Use char because int might match the return type of a GCC
9719 builtin and then its argument prototype would still apply. */
9723 char XShapeQueryExtension ();
9727 return XShapeQueryExtension ();
9732 rm -f conftest.
$ac_objext conftest
$ac_exeext
9733 if { (ac_try
="$ac_link"
9735 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9736 *) ac_try_echo=$ac_try;;
9738 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9739 $as_echo "$ac_try_echo") >&5
9740 (eval "$ac_link") 2>conftest.er1
9742 grep -v '^ *+' conftest.er1 >conftest.err
9744 cat conftest.err >&5
9745 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9746 (exit $ac_status); } && {
9747 test -z "$ac_c_werror_flag" ||
9748 test ! -s conftest.err
9749 } && test -s conftest$ac_exeext && {
9750 test "$cross_compiling" = yes ||
9751 $as_test_x conftest$ac_exeext
9753 ac_cv_lib_Xext_XShapeQueryExtension=yes
9755 $as_echo "$as_me: failed program was:" >&5
9756 sed 's/^/| /' conftest.$ac_ext >&5
9758 ac_cv_lib_Xext_XShapeQueryExtension=no
9761 rm -rf conftest.dSYM
9762 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9763 conftest$ac_exeext conftest.$ac_ext
9764 LIBS=$ac_check_lib_save_LIBS
9766 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
9767 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
9768 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then
9772 { $as_echo "$as_me:$LINENO: checking for wslen in -lw" >&5
9773 $as_echo_n "checking for wslen in -lw... " >&6; }
9774 if test "${ac_cv_lib_w_wslen+set}" = set; then
9775 $as_echo_n "(cached) " >&6
9777 ac_check_lib_save_LIBS=$LIBS
9778 LIBS="-lw $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9779 cat >conftest.$ac_ext <<_ACEOF
9782 cat confdefs.h >>conftest.$ac_ext
9783 cat >>conftest.$ac_ext <<_ACEOF
9784 /* end confdefs.h. */
9786 /* Override any GCC internal prototype to avoid an error.
9787 Use char because int might match the return type of a GCC
9788 builtin and then its argument prototype would still apply. */
9801 rm -f conftest.$ac_objext conftest$ac_exeext
9802 if { (ac_try="$ac_link"
9804 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9805 *) ac_try_echo
=$ac_try;;
9807 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9808 $as_echo "$ac_try_echo") >&5
9809 (eval "$ac_link") 2>conftest.er1
9811 grep -v '^ *+' conftest.er1
>conftest.err
9813 cat conftest.err
>&5
9814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9815 (exit $ac_status); } && {
9816 test -z "$ac_c_werror_flag" ||
9817 test ! -s conftest.err
9818 } && test -s conftest
$ac_exeext && {
9819 test "$cross_compiling" = yes ||
9820 $as_test_x conftest
$ac_exeext
9822 ac_cv_lib_w_wslen
=yes
9824 $as_echo "$as_me: failed program was:" >&5
9825 sed 's/^/| /' conftest.
$ac_ext >&5
9827 ac_cv_lib_w_wslen
=no
9830 rm -rf conftest.dSYM
9831 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9832 conftest
$ac_exeext conftest.
$ac_ext
9833 LIBS
=$ac_check_lib_save_LIBS
9835 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_w_wslen" >&5
9836 $as_echo "$ac_cv_lib_w_wslen" >&6; }
9837 if test "x$ac_cv_lib_w_wslen" = x
""yes; then
9838 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lw"
9841 { $as_echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5
9842 $as_echo_n "checking for dlsym in -ldl... " >&6; }
9843 if test "${ac_cv_lib_dl_dlsym+set}" = set; then
9844 $as_echo_n "(cached) " >&6
9846 ac_check_lib_save_LIBS
=$LIBS
9847 LIBS
="-ldl $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9848 cat >conftest.
$ac_ext <<_ACEOF
9851 cat confdefs.h
>>conftest.
$ac_ext
9852 cat >>conftest.
$ac_ext <<_ACEOF
9853 /* end confdefs.h. */
9855 /* Override any GCC internal prototype to avoid an error.
9856 Use char because int might match the return type of a GCC
9857 builtin and then its argument prototype would still apply. */
9870 rm -f conftest.
$ac_objext conftest
$ac_exeext
9871 if { (ac_try
="$ac_link"
9873 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9874 *) ac_try_echo=$ac_try;;
9876 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9877 $as_echo "$ac_try_echo") >&5
9878 (eval "$ac_link") 2>conftest.er1
9880 grep -v '^ *+' conftest.er1 >conftest.err
9882 cat conftest.err >&5
9883 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9884 (exit $ac_status); } && {
9885 test -z "$ac_c_werror_flag" ||
9886 test ! -s conftest.err
9887 } && test -s conftest$ac_exeext && {
9888 test "$cross_compiling" = yes ||
9889 $as_test_x conftest$ac_exeext
9891 ac_cv_lib_dl_dlsym=yes
9893 $as_echo "$as_me: failed program was:" >&5
9894 sed 's/^/| /' conftest.$ac_ext >&5
9896 ac_cv_lib_dl_dlsym=no
9899 rm -rf conftest.dSYM
9900 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9901 conftest$ac_exeext conftest.$ac_ext
9902 LIBS=$ac_check_lib_save_LIBS
9904 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5
9905 $as_echo "$ac_cv_lib_dl_dlsym" >&6; }
9906 if test "x$ac_cv_lib_dl_dlsym" = x""yes; then
9907 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldl"
9910 { $as_echo "$as_me:$LINENO: checking for XmuCreateStippledPixmap in -lXmu" >&5
9911 $as_echo_n "checking for XmuCreateStippledPixmap in -lXmu... " >&6; }
9912 if test "${ac_cv_lib_Xmu_XmuCreateStippledPixmap+set}" = set; then
9913 $as_echo_n "(cached) " >&6
9915 ac_check_lib_save_LIBS=$LIBS
9916 LIBS="-lXmu $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9917 cat >conftest.$ac_ext <<_ACEOF
9920 cat confdefs.h >>conftest.$ac_ext
9921 cat >>conftest.$ac_ext <<_ACEOF
9922 /* end confdefs.h. */
9924 /* Override any GCC internal prototype to avoid an error.
9925 Use char because int might match the return type of a GCC
9926 builtin and then its argument prototype would still apply. */
9930 char XmuCreateStippledPixmap ();
9934 return XmuCreateStippledPixmap ();
9939 rm -f conftest.$ac_objext conftest$ac_exeext
9940 if { (ac_try="$ac_link"
9942 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9943 *) ac_try_echo
=$ac_try;;
9945 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9946 $as_echo "$ac_try_echo") >&5
9947 (eval "$ac_link") 2>conftest.er1
9949 grep -v '^ *+' conftest.er1
>conftest.err
9951 cat conftest.err
>&5
9952 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9953 (exit $ac_status); } && {
9954 test -z "$ac_c_werror_flag" ||
9955 test ! -s conftest.err
9956 } && test -s conftest
$ac_exeext && {
9957 test "$cross_compiling" = yes ||
9958 $as_test_x conftest
$ac_exeext
9960 ac_cv_lib_Xmu_XmuCreateStippledPixmap
=yes
9962 $as_echo "$as_me: failed program was:" >&5
9963 sed 's/^/| /' conftest.
$ac_ext >&5
9965 ac_cv_lib_Xmu_XmuCreateStippledPixmap
=no
9968 rm -rf conftest.dSYM
9969 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9970 conftest
$ac_exeext conftest.
$ac_ext
9971 LIBS
=$ac_check_lib_save_LIBS
9973 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&5
9974 $as_echo "$ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&6; }
9975 if test "x$ac_cv_lib_Xmu_XmuCreateStippledPixmap" = x
""yes; then
9976 GUI_X_LIBS
="-lXmu $GUI_X_LIBS"
9979 if test -z "$SKIP_MOTIF"; then
9980 { $as_echo "$as_me:$LINENO: checking for XpEndJob in -lXp" >&5
9981 $as_echo_n "checking for XpEndJob in -lXp... " >&6; }
9982 if test "${ac_cv_lib_Xp_XpEndJob+set}" = set; then
9983 $as_echo_n "(cached) " >&6
9985 ac_check_lib_save_LIBS
=$LIBS
9986 LIBS
="-lXp $GUI_X_LIBS -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9987 cat >conftest.
$ac_ext <<_ACEOF
9990 cat confdefs.h
>>conftest.
$ac_ext
9991 cat >>conftest.
$ac_ext <<_ACEOF
9992 /* end confdefs.h. */
9994 /* Override any GCC internal prototype to avoid an error.
9995 Use char because int might match the return type of a GCC
9996 builtin and then its argument prototype would still apply. */
10004 return XpEndJob ();
10009 rm -f conftest.
$ac_objext conftest
$ac_exeext
10010 if { (ac_try
="$ac_link"
10011 case "(($ac_try" in
10012 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10013 *) ac_try_echo=$ac_try;;
10015 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10016 $as_echo "$ac_try_echo") >&5
10017 (eval "$ac_link") 2>conftest.er1
10019 grep -v '^ *+' conftest.er1 >conftest.err
10021 cat conftest.err >&5
10022 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10023 (exit $ac_status); } && {
10024 test -z "$ac_c_werror_flag" ||
10025 test ! -s conftest.err
10026 } && test -s conftest$ac_exeext && {
10027 test "$cross_compiling" = yes ||
10028 $as_test_x conftest$ac_exeext
10030 ac_cv_lib_Xp_XpEndJob=yes
10032 $as_echo "$as_me: failed program was:" >&5
10033 sed 's/^/| /' conftest.$ac_ext >&5
10035 ac_cv_lib_Xp_XpEndJob=no
10038 rm -rf conftest.dSYM
10039 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10040 conftest$ac_exeext conftest.$ac_ext
10041 LIBS=$ac_check_lib_save_LIBS
10043 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpEndJob" >&5
10044 $as_echo "$ac_cv_lib_Xp_XpEndJob" >&6; }
10045 if test "x$ac_cv_lib_Xp_XpEndJob" = x""yes; then
10046 GUI_X_LIBS="-lXp $GUI_X_LIBS"
10050 LDFLAGS=$ldflags_save
10052 { $as_echo "$as_me:$LINENO: checking for extra X11 defines" >&5
10053 $as_echo_n "checking for extra X11 defines... " >&6; }
10056 if mkdir conftestdir; then
10058 cat > Imakefile <<'EOF'
10060 @echo 'NARROW_PROTO="${PROTO_DEFINES}"'
10062 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
10063 eval `${MAKE-make} acfindx
2>/dev
/null |
grep -v make`
10068 if test -z "$NARROW_PROTO"; then
10069 { $as_echo "$as_me:$LINENO: result: no" >&5
10070 $as_echo "no" >&6; }
10072 { $as_echo "$as_me:$LINENO: result: $NARROW_PROTO" >&5
10073 $as_echo "$NARROW_PROTO" >&6; }
10078 if test "$enable_xsmp" = "yes"; then
10079 cppflags_save=$CPPFLAGS
10080 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10082 for ac_header in X11/SM/SMlib.h
10084 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
10085 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10086 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10087 $as_echo_n "checking for $ac_header... " >&6; }
10088 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10089 $as_echo_n "(cached) " >&6
10091 ac_res=`eval 'as_val=${'$as_ac_Header'}
10092 $as_echo "$as_val"'`
10093 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10094 $as_echo "$ac_res" >&6; }
10096 # Is the header compilable?
10097 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10098 $as_echo_n "checking $ac_header usability... " >&6; }
10099 cat >conftest.$ac_ext <<_ACEOF
10102 cat confdefs.h >>conftest.$ac_ext
10103 cat >>conftest.$ac_ext <<_ACEOF
10104 /* end confdefs.h. */
10105 $ac_includes_default
10106 #include <$ac_header>
10108 rm -f conftest.$ac_objext
10109 if { (ac_try="$ac_compile"
10110 case "(($ac_try" in
10111 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10112 *) ac_try_echo
=$ac_try;;
10114 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10115 $as_echo "$ac_try_echo") >&5
10116 (eval "$ac_compile") 2>conftest.er1
10118 grep -v '^ *+' conftest.er1
>conftest.err
10120 cat conftest.err
>&5
10121 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10122 (exit $ac_status); } && {
10123 test -z "$ac_c_werror_flag" ||
10124 test ! -s conftest.err
10125 } && test -s conftest.
$ac_objext; then
10126 ac_header_compiler
=yes
10128 $as_echo "$as_me: failed program was:" >&5
10129 sed 's/^/| /' conftest.
$ac_ext >&5
10131 ac_header_compiler
=no
10134 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10135 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10136 $as_echo "$ac_header_compiler" >&6; }
10138 # Is the header present?
10139 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10140 $as_echo_n "checking $ac_header presence... " >&6; }
10141 cat >conftest.
$ac_ext <<_ACEOF
10144 cat confdefs.h
>>conftest.
$ac_ext
10145 cat >>conftest.
$ac_ext <<_ACEOF
10146 /* end confdefs.h. */
10147 #include <$ac_header>
10149 if { (ac_try
="$ac_cpp conftest.$ac_ext"
10150 case "(($ac_try" in
10151 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10152 *) ac_try_echo=$ac_try;;
10154 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10155 $as_echo "$ac_try_echo") >&5
10156 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10158 grep -v '^ *+' conftest.er1 >conftest.err
10160 cat conftest.err >&5
10161 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10162 (exit $ac_status); } >/dev/null && {
10163 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10164 test ! -s conftest.err
10166 ac_header_preproc=yes
10168 $as_echo "$as_me: failed program was:" >&5
10169 sed 's/^/| /' conftest.$ac_ext >&5
10171 ac_header_preproc=no
10174 rm -f conftest.err conftest.$ac_ext
10175 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10176 $as_echo "$ac_header_preproc" >&6; }
10178 # So? What about this header?
10179 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10181 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10182 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10183 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10184 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10185 ac_header_preproc=yes
10188 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10189 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10190 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10191 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10192 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10193 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10194 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10195 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10196 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10197 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10198 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10199 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10203 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10204 $as_echo_n "checking for $ac_header... " >&6; }
10205 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10206 $as_echo_n "(cached) " >&6
10208 eval "$as_ac_Header=\$ac_header_preproc"
10210 ac_res=`eval 'as_val=${'$as_ac_Header'}
10211 $as_echo "$as_val"'`
10212 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10213 $as_echo "$ac_res" >&6; }
10216 as_val=`eval 'as_val=${'$as_ac_Header'}
10217 $as_echo "$as_val"'`
10218 if test "x$as_val" = x""yes; then
10219 cat >>confdefs.h <<_ACEOF
10220 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
10227 CPPFLAGS=$cppflags_save
10231 if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF" -o -z "$SKIP_GTK"; then
10232 cppflags_save=$CPPFLAGS
10233 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10236 for ac_header in X11/xpm.h X11/Sunkeysym.h
10238 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
10239 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10240 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10241 $as_echo_n "checking for $ac_header... " >&6; }
10242 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10243 $as_echo_n "(cached) " >&6
10245 ac_res=`eval 'as_val=${'$as_ac_Header'}
10246 $as_echo "$as_val"'`
10247 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10248 $as_echo "$ac_res" >&6; }
10250 # Is the header compilable?
10251 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10252 $as_echo_n "checking $ac_header usability... " >&6; }
10253 cat >conftest.$ac_ext <<_ACEOF
10256 cat confdefs.h >>conftest.$ac_ext
10257 cat >>conftest.$ac_ext <<_ACEOF
10258 /* end confdefs.h. */
10259 $ac_includes_default
10260 #include <$ac_header>
10262 rm -f conftest.$ac_objext
10263 if { (ac_try="$ac_compile"
10264 case "(($ac_try" in
10265 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10266 *) ac_try_echo
=$ac_try;;
10268 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10269 $as_echo "$ac_try_echo") >&5
10270 (eval "$ac_compile") 2>conftest.er1
10272 grep -v '^ *+' conftest.er1
>conftest.err
10274 cat conftest.err
>&5
10275 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10276 (exit $ac_status); } && {
10277 test -z "$ac_c_werror_flag" ||
10278 test ! -s conftest.err
10279 } && test -s conftest.
$ac_objext; then
10280 ac_header_compiler
=yes
10282 $as_echo "$as_me: failed program was:" >&5
10283 sed 's/^/| /' conftest.
$ac_ext >&5
10285 ac_header_compiler
=no
10288 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10289 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10290 $as_echo "$ac_header_compiler" >&6; }
10292 # Is the header present?
10293 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10294 $as_echo_n "checking $ac_header presence... " >&6; }
10295 cat >conftest.
$ac_ext <<_ACEOF
10298 cat confdefs.h
>>conftest.
$ac_ext
10299 cat >>conftest.
$ac_ext <<_ACEOF
10300 /* end confdefs.h. */
10301 #include <$ac_header>
10303 if { (ac_try
="$ac_cpp conftest.$ac_ext"
10304 case "(($ac_try" in
10305 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10306 *) ac_try_echo=$ac_try;;
10308 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10309 $as_echo "$ac_try_echo") >&5
10310 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10312 grep -v '^ *+' conftest.er1 >conftest.err
10314 cat conftest.err >&5
10315 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10316 (exit $ac_status); } >/dev/null && {
10317 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10318 test ! -s conftest.err
10320 ac_header_preproc=yes
10322 $as_echo "$as_me: failed program was:" >&5
10323 sed 's/^/| /' conftest.$ac_ext >&5
10325 ac_header_preproc=no
10328 rm -f conftest.err conftest.$ac_ext
10329 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10330 $as_echo "$ac_header_preproc" >&6; }
10332 # So? What about this header?
10333 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10335 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10336 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10337 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10338 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10339 ac_header_preproc=yes
10342 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10343 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10344 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10345 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10346 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10347 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10348 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10349 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10350 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10351 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10352 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10353 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10357 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10358 $as_echo_n "checking for $ac_header... " >&6; }
10359 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10360 $as_echo_n "(cached) " >&6
10362 eval "$as_ac_Header=\$ac_header_preproc"
10364 ac_res=`eval 'as_val=${'$as_ac_Header'}
10365 $as_echo "$as_val"'`
10366 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10367 $as_echo "$ac_res" >&6; }
10370 as_val=`eval 'as_val=${'$as_ac_Header'}
10371 $as_echo "$as_val"'`
10372 if test "x$as_val" = x""yes; then
10373 cat >>confdefs.h <<_ACEOF
10374 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
10382 if test ! "$enable_xim" = "no"; then
10383 { $as_echo "$as_me:$LINENO: checking for XIMText in X11/Xlib.h" >&5
10384 $as_echo_n "checking for XIMText in X11/Xlib.h... " >&6; }
10385 cat >conftest.$ac_ext <<_ACEOF
10388 cat confdefs.h >>conftest.$ac_ext
10389 cat >>conftest.$ac_ext <<_ACEOF
10390 /* end confdefs.h. */
10391 #include <X11/Xlib.h>
10393 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10394 $EGREP "XIMText" >/dev/null 2>&1; then
10395 { $as_echo "$as_me:$LINENO: result: yes" >&5
10396 $as_echo "yes" >&6; }
10398 { $as_echo "$as_me:$LINENO: result: no; xim has been disabled" >&5
10399 $as_echo "no; xim has been disabled" >&6; }; enable_xim = "no"
10404 CPPFLAGS=$cppflags_save
10406 if test "$enable_xim" = "auto" -a "$enable_hangulinput" != "yes" \
10407 -a "x$GUITYPE" != "xNONE" ; then
10408 { $as_echo "$as_me:$LINENO: result: X GUI selected; xim has been enabled" >&5
10409 $as_echo "X GUI selected; xim has been enabled" >&6; }
10414 if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
10415 cppflags_save=$CPPFLAGS
10416 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10417 { $as_echo "$as_me:$LINENO: checking for X11/Xmu/Editres.h" >&5
10418 $as_echo_n "checking for X11/Xmu/Editres.h... " >&6; }
10419 cat >conftest.$ac_ext <<_ACEOF
10422 cat confdefs.h >>conftest.$ac_ext
10423 cat >>conftest.$ac_ext <<_ACEOF
10424 /* end confdefs.h. */
10426 #include <X11/Intrinsic.h>
10427 #include <X11/Xmu/Editres.h>
10436 rm -f conftest.$ac_objext
10437 if { (ac_try="$ac_compile"
10438 case "(($ac_try" in
10439 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10440 *) ac_try_echo
=$ac_try;;
10442 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10443 $as_echo "$ac_try_echo") >&5
10444 (eval "$ac_compile") 2>conftest.er1
10446 grep -v '^ *+' conftest.er1
>conftest.err
10448 cat conftest.err
>&5
10449 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10450 (exit $ac_status); } && {
10451 test -z "$ac_c_werror_flag" ||
10452 test ! -s conftest.err
10453 } && test -s conftest.
$ac_objext; then
10454 { $as_echo "$as_me:$LINENO: result: yes" >&5
10455 $as_echo "yes" >&6; }
10456 cat >>confdefs.h
<<\_ACEOF
10457 #define HAVE_X11_XMU_EDITRES_H 1
10461 $as_echo "$as_me: failed program was:" >&5
10462 sed 's/^/| /' conftest.
$ac_ext >&5
10464 { $as_echo "$as_me:$LINENO: result: no" >&5
10465 $as_echo "no" >&6; }
10468 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10469 CPPFLAGS
=$cppflags_save
10472 if test -z "$SKIP_MOTIF"; then
10473 cppflags_save
=$CPPFLAGS
10474 CPPFLAGS
="$CPPFLAGS $X_CFLAGS"
10482 for ac_header
in Xm
/Xm.h Xm
/XpmP.h Xm
/JoinSideT.h Xm
/TraitP.h Xm
/Manager.h \
10483 Xm
/UnhighlightT.h Xm
/Notebook.h
10485 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10486 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10487 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10488 $as_echo_n "checking for $ac_header... " >&6; }
10489 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10490 $as_echo_n "(cached) " >&6
10492 ac_res
=`eval 'as_val=${'$as_ac_Header'}
10493 $as_echo "$as_val"'`
10494 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10495 $as_echo "$ac_res" >&6; }
10497 # Is the header compilable?
10498 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10499 $as_echo_n "checking $ac_header usability... " >&6; }
10500 cat >conftest.
$ac_ext <<_ACEOF
10503 cat confdefs.h
>>conftest.
$ac_ext
10504 cat >>conftest.
$ac_ext <<_ACEOF
10505 /* end confdefs.h. */
10506 $ac_includes_default
10507 #include <$ac_header>
10509 rm -f conftest.
$ac_objext
10510 if { (ac_try
="$ac_compile"
10511 case "(($ac_try" in
10512 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10513 *) ac_try_echo=$ac_try;;
10515 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10516 $as_echo "$ac_try_echo") >&5
10517 (eval "$ac_compile") 2>conftest.er1
10519 grep -v '^ *+' conftest.er1 >conftest.err
10521 cat conftest.err >&5
10522 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10523 (exit $ac_status); } && {
10524 test -z "$ac_c_werror_flag" ||
10525 test ! -s conftest.err
10526 } && test -s conftest.$ac_objext; then
10527 ac_header_compiler=yes
10529 $as_echo "$as_me: failed program was:" >&5
10530 sed 's/^/| /' conftest.$ac_ext >&5
10532 ac_header_compiler=no
10535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10536 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10537 $as_echo "$ac_header_compiler" >&6; }
10539 # Is the header present?
10540 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10541 $as_echo_n "checking $ac_header presence... " >&6; }
10542 cat >conftest.$ac_ext <<_ACEOF
10545 cat confdefs.h >>conftest.$ac_ext
10546 cat >>conftest.$ac_ext <<_ACEOF
10547 /* end confdefs.h. */
10548 #include <$ac_header>
10550 if { (ac_try="$ac_cpp conftest.$ac_ext"
10551 case "(($ac_try" in
10552 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10553 *) ac_try_echo
=$ac_try;;
10555 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10556 $as_echo "$ac_try_echo") >&5
10557 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10559 grep -v '^ *+' conftest.er1
>conftest.err
10561 cat conftest.err
>&5
10562 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10563 (exit $ac_status); } >/dev
/null
&& {
10564 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10565 test ! -s conftest.err
10567 ac_header_preproc
=yes
10569 $as_echo "$as_me: failed program was:" >&5
10570 sed 's/^/| /' conftest.
$ac_ext >&5
10572 ac_header_preproc
=no
10575 rm -f conftest.err conftest.
$ac_ext
10576 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10577 $as_echo "$ac_header_preproc" >&6; }
10579 # So? What about this header?
10580 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10582 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10583 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10584 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10585 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10586 ac_header_preproc
=yes
10589 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10590 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10591 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10592 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10593 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10594 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10595 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10596 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10597 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10598 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10599 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10600 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10604 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10605 $as_echo_n "checking for $ac_header... " >&6; }
10606 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10607 $as_echo_n "(cached) " >&6
10609 eval "$as_ac_Header=\$ac_header_preproc"
10611 ac_res
=`eval 'as_val=${'$as_ac_Header'}
10612 $as_echo "$as_val"'`
10613 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10614 $as_echo "$ac_res" >&6; }
10617 as_val
=`eval 'as_val=${'$as_ac_Header'}
10618 $as_echo "$as_val"'`
10619 if test "x$as_val" = x
""yes; then
10620 cat >>confdefs.h
<<_ACEOF
10621 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10629 if test $ac_cv_header_Xm_XpmP_h = yes; then
10630 { $as_echo "$as_me:$LINENO: checking for XpmAttributes_21 in Xm/XpmP.h" >&5
10631 $as_echo_n "checking for XpmAttributes_21 in Xm/XpmP.h... " >&6; }
10632 cat >conftest.
$ac_ext <<_ACEOF
10635 cat confdefs.h
>>conftest.
$ac_ext
10636 cat >>conftest.
$ac_ext <<_ACEOF
10637 /* end confdefs.h. */
10638 #include <Xm/XpmP.h>
10642 XpmAttributes_21 attr;
10647 rm -f conftest.
$ac_objext
10648 if { (ac_try
="$ac_compile"
10649 case "(($ac_try" in
10650 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10651 *) ac_try_echo=$ac_try;;
10653 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10654 $as_echo "$ac_try_echo") >&5
10655 (eval "$ac_compile") 2>conftest.er1
10657 grep -v '^ *+' conftest.er1 >conftest.err
10659 cat conftest.err >&5
10660 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10661 (exit $ac_status); } && {
10662 test -z "$ac_c_werror_flag" ||
10663 test ! -s conftest.err
10664 } && test -s conftest.$ac_objext; then
10665 { $as_echo "$as_me:$LINENO: result: yes" >&5
10666 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
10667 #define XPMATTRIBUTES_TYPE XpmAttributes_21
10671 $as_echo "$as_me: failed program was:" >&5
10672 sed 's/^/| /' conftest.$ac_ext >&5
10674 { $as_echo "$as_me:$LINENO: result: no" >&5
10675 $as_echo "no" >&6; }; cat >>confdefs.h <<\_ACEOF
10676 #define XPMATTRIBUTES_TYPE XpmAttributes
10682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10684 cat >>confdefs.h <<\_ACEOF
10685 #define XPMATTRIBUTES_TYPE XpmAttributes
10689 CPPFLAGS=$cppflags_save
10692 if test "x$GUITYPE" = "xNONE" -a "$enable_xim" = "yes"; then
10693 { $as_echo "$as_me:$LINENO: result: no GUI selected; xim has been disabled" >&5
10694 $as_echo "no GUI selected; xim has been disabled" >&6; }
10697 if test "x$GUITYPE" = "xNONE" -a "$enable_fontset" = "yes"; then
10698 { $as_echo "$as_me:$LINENO: result: no GUI selected; fontset has been disabled" >&5
10699 $as_echo "no GUI selected; fontset has been disabled" >&6; }
10700 enable_fontset="no"
10702 if test "x$GUITYPE:$enable_fontset" = "xGTK:yes" -a "0$gtk_major_version" -ge 2; then
10703 { $as_echo "$as_me:$LINENO: result: GTK+ 2 GUI selected; fontset has been disabled" >&5
10704 $as_echo "GTK+ 2 GUI selected; fontset has been disabled" >&6; }
10705 enable_fontset="no"
10708 if test -z "$SKIP_PHOTON"; then
10717 if test "$enable_workshop" = "yes" -a -n "$SKIP_MOTIF"; then
10718 { { $as_echo "$as_me:$LINENO: error: cannot use workshop without Motif" >&5
10719 $as_echo "$as_me: error: cannot use workshop without Motif" >&2;}
10720 { (exit 1); exit 1; }; }
10723 if test "$enable_xim" = "yes"; then
10724 cat >>confdefs.h <<\_ACEOF
10729 if test "$enable_fontset" = "yes"; then
10730 cat >>confdefs.h <<\_ACEOF
10731 #define FEAT_XFONTSET 1
10739 if test "$enable_hangulinput" = "yes"; then
10740 if test "x$GUITYPE" = "xNONE"; then
10741 { $as_echo "$as_me:$LINENO: result: no GUI selected; hangul input has been disabled" >&5
10742 $as_echo "no GUI selected; hangul input has been disabled" >&6; }
10743 enable_hangulinput=no
10745 cat >>confdefs.h <<\_ACEOF
10746 #define FEAT_HANGULIN 1
10749 HANGULIN_SRC=hangulin.c
10751 HANGULIN_OBJ=objects/hangulin.o
10757 { $as_echo "$as_me:$LINENO: checking whether toupper is broken" >&5
10758 $as_echo_n "checking whether toupper is broken... " >&6; }
10759 if test "${vim_cv_toupper_broken+set}" = set; then
10760 $as_echo_n "(cached) " >&6
10763 if test "$cross_compiling" = yes; then
10765 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_toupper_broken'" >&5
10766 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_toupper_broken'" >&2;}
10767 { (exit 1); exit 1; }; }
10770 cat >conftest.$ac_ext <<_ACEOF
10772 #include "confdefs.h"
10775 # include <stdlib.h>
10776 # include <stddef.h>
10778 main() { exit(toupper('A') == 'A' && tolower('z') == 'z'); }
10781 rm -f conftest$ac_exeext
10782 if { (ac_try="$ac_link"
10783 case "(($ac_try" in
10784 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10785 *) ac_try_echo
=$ac_try;;
10787 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10788 $as_echo "$ac_try_echo") >&5
10789 (eval "$ac_link") 2>&5
10791 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10792 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10793 { (case "(($ac_try" in
10794 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10795 *) ac_try_echo=$ac_try;;
10797 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10798 $as_echo "$ac_try_echo") >&5
10799 (eval "$ac_try") 2>&5
10801 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10802 (exit $ac_status); }; }; then
10804 vim_cv_toupper_broken=yes
10807 $as_echo "$as_me: program exited with status $ac_status" >&5
10808 $as_echo "$as_me: failed program was:" >&5
10809 sed 's/^/| /' conftest.$ac_ext >&5
10811 ( exit $ac_status )
10813 vim_cv_toupper_broken=no
10816 rm -rf conftest.dSYM
10817 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10822 { $as_echo "$as_me:$LINENO: result: $vim_cv_toupper_broken" >&5
10823 $as_echo "$vim_cv_toupper_broken" >&6; }
10825 if test "x$vim_cv_toupper_broken" = "xyes" ; then
10826 cat >>confdefs.h <<\_ACEOF
10827 #define BROKEN_TOUPPER 1
10832 { $as_echo "$as_me:$LINENO: checking whether __DATE__ and __TIME__ work" >&5
10833 $as_echo_n "checking whether __DATE__ and __TIME__ work... " >&6; }
10834 cat >conftest.$ac_ext <<_ACEOF
10837 cat confdefs.h >>conftest.$ac_ext
10838 cat >>conftest.$ac_ext <<_ACEOF
10839 /* end confdefs.h. */
10844 printf("(" __DATE__ " " __TIME__ ")");
10849 rm -f conftest.$ac_objext
10850 if { (ac_try="$ac_compile"
10851 case "(($ac_try" in
10852 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10853 *) ac_try_echo
=$ac_try;;
10855 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10856 $as_echo "$ac_try_echo") >&5
10857 (eval "$ac_compile") 2>conftest.er1
10859 grep -v '^ *+' conftest.er1
>conftest.err
10861 cat conftest.err
>&5
10862 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10863 (exit $ac_status); } && {
10864 test -z "$ac_c_werror_flag" ||
10865 test ! -s conftest.err
10866 } && test -s conftest.
$ac_objext; then
10867 { $as_echo "$as_me:$LINENO: result: yes" >&5
10868 $as_echo "yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
10869 #define HAVE_DATE_TIME 1
10873 $as_echo "$as_me: failed program was:" >&5
10874 sed 's/^/| /' conftest.
$ac_ext >&5
10876 { $as_echo "$as_me:$LINENO: result: no" >&5
10877 $as_echo "no" >&6; }
10880 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10882 { $as_echo "$as_me:$LINENO: checking whether __attribute__((unused)) is allowed" >&5
10883 $as_echo_n "checking whether __attribute__((unused)) is allowed... " >&6; }
10884 cat >conftest.
$ac_ext <<_ACEOF
10887 cat confdefs.h
>>conftest.
$ac_ext
10888 cat >>conftest.
$ac_ext <<_ACEOF
10889 /* end confdefs.h. */
10894 int x __attribute__((unused));
10899 rm -f conftest.
$ac_objext
10900 if { (ac_try
="$ac_compile"
10901 case "(($ac_try" in
10902 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10903 *) ac_try_echo=$ac_try;;
10905 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10906 $as_echo "$ac_try_echo") >&5
10907 (eval "$ac_compile") 2>conftest.er1
10909 grep -v '^ *+' conftest.er1 >conftest.err
10911 cat conftest.err >&5
10912 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10913 (exit $ac_status); } && {
10914 test -z "$ac_c_werror_flag" ||
10915 test ! -s conftest.err
10916 } && test -s conftest.$ac_objext; then
10917 { $as_echo "$as_me:$LINENO: result: yes" >&5
10918 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
10919 #define HAVE_ATTRIBUTE_UNUSED 1
10923 $as_echo "$as_me: failed program was:" >&5
10924 sed 's/^/| /' conftest.$ac_ext >&5
10926 { $as_echo "$as_me:$LINENO: result: no" >&5
10927 $as_echo "no" >&6; }
10930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10932 if test "${ac_cv_header_elf_h+set}" = set; then
10933 { $as_echo "$as_me:$LINENO: checking for elf.h" >&5
10934 $as_echo_n "checking for elf.h... " >&6; }
10935 if test "${ac_cv_header_elf_h+set}" = set; then
10936 $as_echo_n "(cached) " >&6
10938 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5
10939 $as_echo "$ac_cv_header_elf_h" >&6; }
10941 # Is the header compilable?
10942 { $as_echo "$as_me:$LINENO: checking elf.h usability" >&5
10943 $as_echo_n "checking elf.h usability... " >&6; }
10944 cat >conftest.$ac_ext <<_ACEOF
10947 cat confdefs.h >>conftest.$ac_ext
10948 cat >>conftest.$ac_ext <<_ACEOF
10949 /* end confdefs.h. */
10950 $ac_includes_default
10953 rm -f conftest.$ac_objext
10954 if { (ac_try="$ac_compile"
10955 case "(($ac_try" in
10956 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10957 *) ac_try_echo
=$ac_try;;
10959 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10960 $as_echo "$ac_try_echo") >&5
10961 (eval "$ac_compile") 2>conftest.er1
10963 grep -v '^ *+' conftest.er1
>conftest.err
10965 cat conftest.err
>&5
10966 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10967 (exit $ac_status); } && {
10968 test -z "$ac_c_werror_flag" ||
10969 test ! -s conftest.err
10970 } && test -s conftest.
$ac_objext; then
10971 ac_header_compiler
=yes
10973 $as_echo "$as_me: failed program was:" >&5
10974 sed 's/^/| /' conftest.
$ac_ext >&5
10976 ac_header_compiler
=no
10979 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10980 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10981 $as_echo "$ac_header_compiler" >&6; }
10983 # Is the header present?
10984 { $as_echo "$as_me:$LINENO: checking elf.h presence" >&5
10985 $as_echo_n "checking elf.h presence... " >&6; }
10986 cat >conftest.
$ac_ext <<_ACEOF
10989 cat confdefs.h
>>conftest.
$ac_ext
10990 cat >>conftest.
$ac_ext <<_ACEOF
10991 /* end confdefs.h. */
10994 if { (ac_try
="$ac_cpp conftest.$ac_ext"
10995 case "(($ac_try" in
10996 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10997 *) ac_try_echo=$ac_try;;
10999 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11000 $as_echo "$ac_try_echo") >&5
11001 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11003 grep -v '^ *+' conftest.er1 >conftest.err
11005 cat conftest.err >&5
11006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11007 (exit $ac_status); } >/dev/null && {
11008 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11009 test ! -s conftest.err
11011 ac_header_preproc=yes
11013 $as_echo "$as_me: failed program was:" >&5
11014 sed 's/^/| /' conftest.$ac_ext >&5
11016 ac_header_preproc=no
11019 rm -f conftest.err conftest.$ac_ext
11020 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11021 $as_echo "$ac_header_preproc" >&6; }
11023 # So? What about this header?
11024 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11026 { $as_echo "$as_me:$LINENO: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&5
11027 $as_echo "$as_me: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11028 { $as_echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the compiler's result" >&5
11029 $as_echo "$as_me: WARNING: elf.h: proceeding with the compiler's result" >&2;}
11030 ac_header_preproc=yes
11033 { $as_echo "$as_me:$LINENO: WARNING: elf.h: present but cannot be compiled" >&5
11034 $as_echo "$as_me: WARNING: elf.h: present but cannot be compiled" >&2;}
11035 { $as_echo "$as_me:$LINENO: WARNING: elf.h: check for missing prerequisite headers?" >&5
11036 $as_echo "$as_me: WARNING: elf.h: check for missing prerequisite headers?" >&2;}
11037 { $as_echo "$as_me:$LINENO: WARNING: elf.h: see the Autoconf documentation" >&5
11038 $as_echo "$as_me: WARNING: elf.h: see the Autoconf documentation" >&2;}
11039 { $as_echo "$as_me:$LINENO: WARNING: elf.h: section \"Present But Cannot Be Compiled\"" >&5
11040 $as_echo "$as_me: WARNING: elf.h: section \"Present But Cannot Be Compiled\"" >&2;}
11041 { $as_echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the preprocessor's result" >&5
11042 $as_echo "$as_me: WARNING: elf.h: proceeding with the preprocessor's result" >&2;}
11043 { $as_echo "$as_me:$LINENO: WARNING: elf.h: in the future, the compiler will take precedence" >&5
11044 $as_echo "$as_me: WARNING: elf.h: in the future, the compiler will take precedence" >&2;}
11048 { $as_echo "$as_me:$LINENO: checking for elf.h" >&5
11049 $as_echo_n "checking for elf.h... " >&6; }
11050 if test "${ac_cv_header_elf_h+set}" = set; then
11051 $as_echo_n "(cached) " >&6
11053 ac_cv_header_elf_h=$ac_header_preproc
11055 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5
11056 $as_echo "$ac_cv_header_elf_h" >&6; }
11059 if test "x$ac_cv_header_elf_h" = x""yes; then
11064 if test "$HAS_ELF" = 1; then
11066 { $as_echo "$as_me:$LINENO: checking for main in -lelf" >&5
11067 $as_echo_n "checking for main in -lelf... " >&6; }
11068 if test "${ac_cv_lib_elf_main+set}" = set; then
11069 $as_echo_n "(cached) " >&6
11071 ac_check_lib_save_LIBS=$LIBS
11073 cat >conftest.$ac_ext <<_ACEOF
11076 cat confdefs.h >>conftest.$ac_ext
11077 cat >>conftest.$ac_ext <<_ACEOF
11078 /* end confdefs.h. */
11089 rm -f conftest.$ac_objext conftest$ac_exeext
11090 if { (ac_try="$ac_link"
11091 case "(($ac_try" in
11092 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11093 *) ac_try_echo
=$ac_try;;
11095 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11096 $as_echo "$ac_try_echo") >&5
11097 (eval "$ac_link") 2>conftest.er1
11099 grep -v '^ *+' conftest.er1
>conftest.err
11101 cat conftest.err
>&5
11102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11103 (exit $ac_status); } && {
11104 test -z "$ac_c_werror_flag" ||
11105 test ! -s conftest.err
11106 } && test -s conftest
$ac_exeext && {
11107 test "$cross_compiling" = yes ||
11108 $as_test_x conftest
$ac_exeext
11110 ac_cv_lib_elf_main
=yes
11112 $as_echo "$as_me: failed program was:" >&5
11113 sed 's/^/| /' conftest.
$ac_ext >&5
11115 ac_cv_lib_elf_main
=no
11118 rm -rf conftest.dSYM
11119 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11120 conftest
$ac_exeext conftest.
$ac_ext
11121 LIBS
=$ac_check_lib_save_LIBS
11123 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_elf_main" >&5
11124 $as_echo "$ac_cv_lib_elf_main" >&6; }
11125 if test "x$ac_cv_lib_elf_main" = x
""yes; then
11126 cat >>confdefs.h
<<_ACEOF
11127 #define HAVE_LIBELF 1
11141 ac_header_dirent
=no
11142 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
11143 as_ac_Header
=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
11144 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
11145 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
11146 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11147 $as_echo_n "(cached) " >&6
11149 cat >conftest.
$ac_ext <<_ACEOF
11152 cat confdefs.h
>>conftest.
$ac_ext
11153 cat >>conftest.
$ac_ext <<_ACEOF
11154 /* end confdefs.h. */
11155 #include <sys/types.h>
11167 rm -f conftest.
$ac_objext
11168 if { (ac_try
="$ac_compile"
11169 case "(($ac_try" in
11170 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11171 *) ac_try_echo=$ac_try;;
11173 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11174 $as_echo "$ac_try_echo") >&5
11175 (eval "$ac_compile") 2>conftest.er1
11177 grep -v '^ *+' conftest.er1 >conftest.err
11179 cat conftest.err >&5
11180 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11181 (exit $ac_status); } && {
11182 test -z "$ac_c_werror_flag" ||
11183 test ! -s conftest.err
11184 } && test -s conftest.$ac_objext; then
11185 eval "$as_ac_Header=yes"
11187 $as_echo "$as_me: failed program was:" >&5
11188 sed 's/^/| /' conftest.$ac_ext >&5
11190 eval "$as_ac_Header=no"
11193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11195 ac_res=`eval 'as_val=${'$as_ac_Header'}
11196 $as_echo "$as_val"'`
11197 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11198 $as_echo "$ac_res" >&6; }
11199 as_val=`eval 'as_val=${'$as_ac_Header'}
11200 $as_echo "$as_val"'`
11201 if test "x$as_val" = x""yes; then
11202 cat >>confdefs.h <<_ACEOF
11203 #define `$as_echo "HAVE_$ac_hdr" |
$as_tr_cpp` 1
11206 ac_header_dirent=$ac_hdr; break
11210 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11211 if test $ac_header_dirent = dirent.h; then
11212 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
11213 $as_echo_n "checking for library containing opendir... " >&6; }
11214 if test "${ac_cv_search_opendir+set}" = set; then
11215 $as_echo_n "(cached) " >&6
11217 ac_func_search_save_LIBS=$LIBS
11218 cat >conftest.$ac_ext <<_ACEOF
11221 cat confdefs.h >>conftest.$ac_ext
11222 cat >>conftest.$ac_ext <<_ACEOF
11223 /* end confdefs.h. */
11225 /* Override any GCC internal prototype to avoid an error.
11226 Use char because int might match the return type of a GCC
11227 builtin and then its argument prototype would still apply. */
11240 for ac_lib in '' dir; do
11241 if test -z "$ac_lib"; then
11242 ac_res="none required"
11245 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11247 rm -f conftest.$ac_objext conftest$ac_exeext
11248 if { (ac_try="$ac_link"
11249 case "(($ac_try" in
11250 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11251 *) ac_try_echo
=$ac_try;;
11253 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11254 $as_echo "$ac_try_echo") >&5
11255 (eval "$ac_link") 2>conftest.er1
11257 grep -v '^ *+' conftest.er1
>conftest.err
11259 cat conftest.err
>&5
11260 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11261 (exit $ac_status); } && {
11262 test -z "$ac_c_werror_flag" ||
11263 test ! -s conftest.err
11264 } && test -s conftest
$ac_exeext && {
11265 test "$cross_compiling" = yes ||
11266 $as_test_x conftest
$ac_exeext
11268 ac_cv_search_opendir
=$ac_res
11270 $as_echo "$as_me: failed program was:" >&5
11271 sed 's/^/| /' conftest.
$ac_ext >&5
11276 rm -rf conftest.dSYM
11277 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11279 if test "${ac_cv_search_opendir+set}" = set; then
11283 if test "${ac_cv_search_opendir+set}" = set; then
11286 ac_cv_search_opendir
=no
11288 rm conftest.
$ac_ext
11289 LIBS
=$ac_func_search_save_LIBS
11291 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11292 $as_echo "$ac_cv_search_opendir" >&6; }
11293 ac_res
=$ac_cv_search_opendir
11294 if test "$ac_res" != no
; then
11295 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11300 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
11301 $as_echo_n "checking for library containing opendir... " >&6; }
11302 if test "${ac_cv_search_opendir+set}" = set; then
11303 $as_echo_n "(cached) " >&6
11305 ac_func_search_save_LIBS
=$LIBS
11306 cat >conftest.
$ac_ext <<_ACEOF
11309 cat confdefs.h
>>conftest.
$ac_ext
11310 cat >>conftest.
$ac_ext <<_ACEOF
11311 /* end confdefs.h. */
11313 /* Override any GCC internal prototype to avoid an error.
11314 Use char because int might match the return type of a GCC
11315 builtin and then its argument prototype would still apply. */
11328 for ac_lib
in '' x
; do
11329 if test -z "$ac_lib"; then
11330 ac_res
="none required"
11333 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11335 rm -f conftest.
$ac_objext conftest
$ac_exeext
11336 if { (ac_try
="$ac_link"
11337 case "(($ac_try" in
11338 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11339 *) ac_try_echo=$ac_try;;
11341 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11342 $as_echo "$ac_try_echo") >&5
11343 (eval "$ac_link") 2>conftest.er1
11345 grep -v '^ *+' conftest.er1 >conftest.err
11347 cat conftest.err >&5
11348 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11349 (exit $ac_status); } && {
11350 test -z "$ac_c_werror_flag" ||
11351 test ! -s conftest.err
11352 } && test -s conftest$ac_exeext && {
11353 test "$cross_compiling" = yes ||
11354 $as_test_x conftest$ac_exeext
11356 ac_cv_search_opendir=$ac_res
11358 $as_echo "$as_me: failed program was:" >&5
11359 sed 's/^/| /' conftest.$ac_ext >&5
11364 rm -rf conftest.dSYM
11365 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11367 if test "${ac_cv_search_opendir+set}" = set; then
11371 if test "${ac_cv_search_opendir+set}" = set; then
11374 ac_cv_search_opendir=no
11376 rm conftest.$ac_ext
11377 LIBS=$ac_func_search_save_LIBS
11379 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11380 $as_echo "$ac_cv_search_opendir" >&6; }
11381 ac_res=$ac_cv_search_opendir
11382 if test "$ac_res" != no; then
11383 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11390 if test $ac_cv_header_sys_wait_h = no; then
11391 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that defines union wait" >&5
11392 $as_echo_n "checking for sys/wait.h that defines union wait... " >&6; }
11393 cat >conftest.$ac_ext <<_ACEOF
11396 cat confdefs.h >>conftest.$ac_ext
11397 cat >>conftest.$ac_ext <<_ACEOF
11398 /* end confdefs.h. */
11399 #include <sys/wait.h>
11403 union wait xx, yy; xx = yy
11408 rm -f conftest.$ac_objext
11409 if { (ac_try="$ac_compile"
11410 case "(($ac_try" in
11411 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11412 *) ac_try_echo
=$ac_try;;
11414 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11415 $as_echo "$ac_try_echo") >&5
11416 (eval "$ac_compile") 2>conftest.er1
11418 grep -v '^ *+' conftest.er1
>conftest.err
11420 cat conftest.err
>&5
11421 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11422 (exit $ac_status); } && {
11423 test -z "$ac_c_werror_flag" ||
11424 test ! -s conftest.err
11425 } && test -s conftest.
$ac_objext; then
11426 { $as_echo "$as_me:$LINENO: result: yes" >&5
11427 $as_echo "yes" >&6; }
11428 cat >>confdefs.h
<<\_ACEOF
11429 #define HAVE_SYS_WAIT_H 1
11432 cat >>confdefs.h
<<\_ACEOF
11433 #define HAVE_UNION_WAIT 1
11437 $as_echo "$as_me: failed program was:" >&5
11438 sed 's/^/| /' conftest.
$ac_ext >&5
11440 { $as_echo "$as_me:$LINENO: result: no" >&5
11441 $as_echo "no" >&6; }
11444 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11487 for ac_header
in stdarg.h stdlib.h string.h sys
/select.h sys
/utsname.h \
11488 termcap.h fcntl.h sgtty.h sys
/ioctl.h sys
/time.h sys
/types.h termio.h \
11489 iconv.h langinfo.h math.h unistd.h stropts.h errno.h \
11490 sys
/resource.h sys
/systeminfo.h locale.h \
11491 sys
/stream.h termios.h libc.h sys
/statfs.h \
11492 poll.h sys
/poll.h
pwd.h utime.h sys
/param.h libintl.h \
11493 libgen.h util
/debug.h util
/msg18n.h frame.h \
11494 sys
/acl.h sys
/access.h sys
/sysinfo.h wchar.h wctype.h
11496 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11497 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11498 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11499 $as_echo_n "checking for $ac_header... " >&6; }
11500 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11501 $as_echo_n "(cached) " >&6
11503 ac_res
=`eval 'as_val=${'$as_ac_Header'}
11504 $as_echo "$as_val"'`
11505 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11506 $as_echo "$ac_res" >&6; }
11508 # Is the header compilable?
11509 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11510 $as_echo_n "checking $ac_header usability... " >&6; }
11511 cat >conftest.
$ac_ext <<_ACEOF
11514 cat confdefs.h
>>conftest.
$ac_ext
11515 cat >>conftest.
$ac_ext <<_ACEOF
11516 /* end confdefs.h. */
11517 $ac_includes_default
11518 #include <$ac_header>
11520 rm -f conftest.
$ac_objext
11521 if { (ac_try
="$ac_compile"
11522 case "(($ac_try" in
11523 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11524 *) ac_try_echo=$ac_try;;
11526 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11527 $as_echo "$ac_try_echo") >&5
11528 (eval "$ac_compile") 2>conftest.er1
11530 grep -v '^ *+' conftest.er1 >conftest.err
11532 cat conftest.err >&5
11533 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11534 (exit $ac_status); } && {
11535 test -z "$ac_c_werror_flag" ||
11536 test ! -s conftest.err
11537 } && test -s conftest.$ac_objext; then
11538 ac_header_compiler=yes
11540 $as_echo "$as_me: failed program was:" >&5
11541 sed 's/^/| /' conftest.$ac_ext >&5
11543 ac_header_compiler=no
11546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11547 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11548 $as_echo "$ac_header_compiler" >&6; }
11550 # Is the header present?
11551 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11552 $as_echo_n "checking $ac_header presence... " >&6; }
11553 cat >conftest.$ac_ext <<_ACEOF
11556 cat confdefs.h >>conftest.$ac_ext
11557 cat >>conftest.$ac_ext <<_ACEOF
11558 /* end confdefs.h. */
11559 #include <$ac_header>
11561 if { (ac_try="$ac_cpp conftest.$ac_ext"
11562 case "(($ac_try" in
11563 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11564 *) ac_try_echo
=$ac_try;;
11566 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11567 $as_echo "$ac_try_echo") >&5
11568 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11570 grep -v '^ *+' conftest.er1
>conftest.err
11572 cat conftest.err
>&5
11573 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11574 (exit $ac_status); } >/dev
/null
&& {
11575 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11576 test ! -s conftest.err
11578 ac_header_preproc
=yes
11580 $as_echo "$as_me: failed program was:" >&5
11581 sed 's/^/| /' conftest.
$ac_ext >&5
11583 ac_header_preproc
=no
11586 rm -f conftest.err conftest.
$ac_ext
11587 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11588 $as_echo "$ac_header_preproc" >&6; }
11590 # So? What about this header?
11591 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11593 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11594 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11595 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11596 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11597 ac_header_preproc
=yes
11600 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11601 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11602 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11603 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11604 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11605 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11606 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11607 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11608 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11609 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11610 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11611 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11615 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11616 $as_echo_n "checking for $ac_header... " >&6; }
11617 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11618 $as_echo_n "(cached) " >&6
11620 eval "$as_ac_Header=\$ac_header_preproc"
11622 ac_res
=`eval 'as_val=${'$as_ac_Header'}
11623 $as_echo "$as_val"'`
11624 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11625 $as_echo "$ac_res" >&6; }
11628 as_val
=`eval 'as_val=${'$as_ac_Header'}
11629 $as_echo "$as_val"'`
11630 if test "x$as_val" = x
""yes; then
11631 cat >>confdefs.h
<<_ACEOF
11632 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11641 for ac_header
in sys
/ptem.h
11643 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11644 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11645 $as_echo_n "checking for $ac_header... " >&6; }
11646 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11647 $as_echo_n "(cached) " >&6
11649 cat >conftest.
$ac_ext <<_ACEOF
11652 cat confdefs.h
>>conftest.
$ac_ext
11653 cat >>conftest.
$ac_ext <<_ACEOF
11654 /* end confdefs.h. */
11655 #if defined HAVE_SYS_STREAM_H
11656 # include <sys/stream.h>
11659 #include <$ac_header>
11661 rm -f conftest.
$ac_objext
11662 if { (ac_try
="$ac_compile"
11663 case "(($ac_try" in
11664 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11665 *) ac_try_echo=$ac_try;;
11667 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11668 $as_echo "$ac_try_echo") >&5
11669 (eval "$ac_compile") 2>conftest.er1
11671 grep -v '^ *+' conftest.er1 >conftest.err
11673 cat conftest.err >&5
11674 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11675 (exit $ac_status); } && {
11676 test -z "$ac_c_werror_flag" ||
11677 test ! -s conftest.err
11678 } && test -s conftest.$ac_objext; then
11679 eval "$as_ac_Header=yes"
11681 $as_echo "$as_me: failed program was:" >&5
11682 sed 's/^/| /' conftest.$ac_ext >&5
11684 eval "$as_ac_Header=no"
11687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11689 ac_res=`eval 'as_val=${'$as_ac_Header'}
11690 $as_echo "$as_val"'`
11691 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11692 $as_echo "$ac_res" >&6; }
11693 as_val=`eval 'as_val=${'$as_ac_Header'}
11694 $as_echo "$as_val"'`
11695 if test "x$as_val" = x""yes; then
11696 cat >>confdefs.h <<_ACEOF
11697 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
11706 for ac_header in sys/sysctl.h
11708 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
11709 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11710 $as_echo_n "checking for $ac_header... " >&6; }
11711 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11712 $as_echo_n "(cached) " >&6
11714 cat >conftest.$ac_ext <<_ACEOF
11717 cat confdefs.h >>conftest.$ac_ext
11718 cat >>conftest.$ac_ext <<_ACEOF
11719 /* end confdefs.h. */
11720 #if defined HAVE_SYS_PARAM_H
11721 # include <sys/param.h>
11724 #include <$ac_header>
11726 rm -f conftest.$ac_objext
11727 if { (ac_try="$ac_compile"
11728 case "(($ac_try" in
11729 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11730 *) ac_try_echo
=$ac_try;;
11732 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11733 $as_echo "$ac_try_echo") >&5
11734 (eval "$ac_compile") 2>conftest.er1
11736 grep -v '^ *+' conftest.er1
>conftest.err
11738 cat conftest.err
>&5
11739 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11740 (exit $ac_status); } && {
11741 test -z "$ac_c_werror_flag" ||
11742 test ! -s conftest.err
11743 } && test -s conftest.
$ac_objext; then
11744 eval "$as_ac_Header=yes"
11746 $as_echo "$as_me: failed program was:" >&5
11747 sed 's/^/| /' conftest.
$ac_ext >&5
11749 eval "$as_ac_Header=no"
11752 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11754 ac_res
=`eval 'as_val=${'$as_ac_Header'}
11755 $as_echo "$as_val"'`
11756 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11757 $as_echo "$ac_res" >&6; }
11758 as_val
=`eval 'as_val=${'$as_ac_Header'}
11759 $as_echo "$as_val"'`
11760 if test "x$as_val" = x
""yes; then
11761 cat >>confdefs.h
<<_ACEOF
11762 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11771 { $as_echo "$as_me:$LINENO: checking for pthread_np.h" >&5
11772 $as_echo_n "checking for pthread_np.h... " >&6; }
11773 cat >conftest.
$ac_ext <<_ACEOF
11776 cat confdefs.h
>>conftest.
$ac_ext
11777 cat >>conftest.
$ac_ext <<_ACEOF
11778 /* end confdefs.h. */
11780 #include <pthread.h>
11781 #include <pthread_np.h>
11790 rm -f conftest.
$ac_objext
11791 if { (ac_try
="$ac_compile"
11792 case "(($ac_try" in
11793 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11794 *) ac_try_echo=$ac_try;;
11796 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11797 $as_echo "$ac_try_echo") >&5
11798 (eval "$ac_compile") 2>conftest.er1
11800 grep -v '^ *+' conftest.er1 >conftest.err
11802 cat conftest.err >&5
11803 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11804 (exit $ac_status); } && {
11805 test -z "$ac_c_werror_flag" ||
11806 test ! -s conftest.err
11807 } && test -s conftest.$ac_objext; then
11808 { $as_echo "$as_me:$LINENO: result: yes" >&5
11809 $as_echo "yes" >&6; }
11810 cat >>confdefs.h <<\_ACEOF
11811 #define HAVE_PTHREAD_NP_H 1
11815 $as_echo "$as_me: failed program was:" >&5
11816 sed 's/^/| /' conftest.$ac_ext >&5
11818 { $as_echo "$as_me:$LINENO: result: no" >&5
11819 $as_echo "no" >&6; }
11822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11825 for ac_header in strings.h
11827 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
11828 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11829 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11830 $as_echo_n "checking for $ac_header... " >&6; }
11831 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11832 $as_echo_n "(cached) " >&6
11834 ac_res=`eval 'as_val=${'$as_ac_Header'}
11835 $as_echo "$as_val"'`
11836 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11837 $as_echo "$ac_res" >&6; }
11839 # Is the header compilable?
11840 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11841 $as_echo_n "checking $ac_header usability... " >&6; }
11842 cat >conftest.$ac_ext <<_ACEOF
11845 cat confdefs.h >>conftest.$ac_ext
11846 cat >>conftest.$ac_ext <<_ACEOF
11847 /* end confdefs.h. */
11848 $ac_includes_default
11849 #include <$ac_header>
11851 rm -f conftest.$ac_objext
11852 if { (ac_try="$ac_compile"
11853 case "(($ac_try" in
11854 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11855 *) ac_try_echo
=$ac_try;;
11857 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11858 $as_echo "$ac_try_echo") >&5
11859 (eval "$ac_compile") 2>conftest.er1
11861 grep -v '^ *+' conftest.er1
>conftest.err
11863 cat conftest.err
>&5
11864 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11865 (exit $ac_status); } && {
11866 test -z "$ac_c_werror_flag" ||
11867 test ! -s conftest.err
11868 } && test -s conftest.
$ac_objext; then
11869 ac_header_compiler
=yes
11871 $as_echo "$as_me: failed program was:" >&5
11872 sed 's/^/| /' conftest.
$ac_ext >&5
11874 ac_header_compiler
=no
11877 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11878 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11879 $as_echo "$ac_header_compiler" >&6; }
11881 # Is the header present?
11882 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11883 $as_echo_n "checking $ac_header presence... " >&6; }
11884 cat >conftest.
$ac_ext <<_ACEOF
11887 cat confdefs.h
>>conftest.
$ac_ext
11888 cat >>conftest.
$ac_ext <<_ACEOF
11889 /* end confdefs.h. */
11890 #include <$ac_header>
11892 if { (ac_try
="$ac_cpp conftest.$ac_ext"
11893 case "(($ac_try" in
11894 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11895 *) ac_try_echo=$ac_try;;
11897 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11898 $as_echo "$ac_try_echo") >&5
11899 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11901 grep -v '^ *+' conftest.er1 >conftest.err
11903 cat conftest.err >&5
11904 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11905 (exit $ac_status); } >/dev/null && {
11906 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11907 test ! -s conftest.err
11909 ac_header_preproc=yes
11911 $as_echo "$as_me: failed program was:" >&5
11912 sed 's/^/| /' conftest.$ac_ext >&5
11914 ac_header_preproc=no
11917 rm -f conftest.err conftest.$ac_ext
11918 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11919 $as_echo "$ac_header_preproc" >&6; }
11921 # So? What about this header?
11922 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11924 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11925 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11926 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11927 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11928 ac_header_preproc=yes
11931 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11932 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11933 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11934 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11935 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11936 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11937 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11938 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11939 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11940 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11941 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11942 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11946 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11947 $as_echo_n "checking for $ac_header... " >&6; }
11948 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11949 $as_echo_n "(cached) " >&6
11951 eval "$as_ac_Header=\$ac_header_preproc"
11953 ac_res=`eval 'as_val=${'$as_ac_Header'}
11954 $as_echo "$as_val"'`
11955 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11956 $as_echo "$ac_res" >&6; }
11959 as_val=`eval 'as_val=${'$as_ac_Header'}
11960 $as_echo "$as_val"'`
11961 if test "x$as_val" = x""yes; then
11962 cat >>confdefs.h <<_ACEOF
11963 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
11970 if test "x$MACOSX" = "xyes"; then
11971 cat >>confdefs.h <<\_ACEOF
11972 #define NO_STRINGS_WITH_STRING_H 1
11977 { $as_echo "$as_me:$LINENO: checking if strings.h can be included after string.h" >&5
11978 $as_echo_n "checking if strings.h can be included after string.h... " >&6; }
11979 cppflags_save=$CPPFLAGS
11980 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11981 cat >conftest.$ac_ext <<_ACEOF
11984 cat confdefs.h >>conftest.$ac_ext
11985 cat >>conftest.$ac_ext <<_ACEOF
11986 /* end confdefs.h. */
11988 #if defined(_AIX) && !defined(_AIX51) && !defined(_NO_PROTO)
11989 # define _NO_PROTO /* like in os_unix.h, causes conflict for AIX (Winn) */
11990 /* but don't do it on AIX 5.1 (Uribarri) */
11992 #ifdef HAVE_XM_XM_H
11993 # include <Xm/Xm.h> /* This breaks it for HP-UX 11 (Squassabia) */
11995 #ifdef HAVE_STRING_H
11996 # include <string.h>
11998 #if defined(HAVE_STRINGS_H)
11999 # include <strings.h>
12010 rm -f conftest.$ac_objext
12011 if { (ac_try="$ac_compile"
12012 case "(($ac_try" in
12013 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12014 *) ac_try_echo
=$ac_try;;
12016 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12017 $as_echo "$ac_try_echo") >&5
12018 (eval "$ac_compile") 2>conftest.er1
12020 grep -v '^ *+' conftest.er1
>conftest.err
12022 cat conftest.err
>&5
12023 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12024 (exit $ac_status); } && {
12025 test -z "$ac_c_werror_flag" ||
12026 test ! -s conftest.err
12027 } && test -s conftest.
$ac_objext; then
12028 { $as_echo "$as_me:$LINENO: result: yes" >&5
12029 $as_echo "yes" >&6; }
12031 $as_echo "$as_me: failed program was:" >&5
12032 sed 's/^/| /' conftest.
$ac_ext >&5
12034 cat >>confdefs.h
<<\_ACEOF
12035 #define NO_STRINGS_WITH_STRING_H 1
12038 { $as_echo "$as_me:$LINENO: result: no" >&5
12039 $as_echo "no" >&6; }
12042 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12043 CPPFLAGS
=$cppflags_save
12046 if test $ac_cv_c_compiler_gnu = yes; then
12047 { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
12048 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
12049 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
12050 $as_echo_n "(cached) " >&6
12052 ac_pattern
="Autoconf.*'x'"
12053 cat >conftest.
$ac_ext <<_ACEOF
12056 cat confdefs.h
>>conftest.
$ac_ext
12057 cat >>conftest.
$ac_ext <<_ACEOF
12058 /* end confdefs.h. */
12062 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12063 $EGREP "$ac_pattern" >/dev
/null
2>&1; then
12064 ac_cv_prog_gcc_traditional
=yes
12066 ac_cv_prog_gcc_traditional
=no
12071 if test $ac_cv_prog_gcc_traditional = no
; then
12072 cat >conftest.
$ac_ext <<_ACEOF
12075 cat confdefs.h
>>conftest.
$ac_ext
12076 cat >>conftest.
$ac_ext <<_ACEOF
12077 /* end confdefs.h. */
12078 #include <termio.h>
12081 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12082 $EGREP "$ac_pattern" >/dev
/null
2>&1; then
12083 ac_cv_prog_gcc_traditional
=yes
12089 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
12090 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
12091 if test $ac_cv_prog_gcc_traditional = yes; then
12092 CC
="$CC -traditional"
12096 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12097 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12098 if test "${ac_cv_c_const+set}" = set; then
12099 $as_echo_n "(cached) " >&6
12101 cat >conftest.
$ac_ext <<_ACEOF
12104 cat confdefs.h
>>conftest.
$ac_ext
12105 cat >>conftest.
$ac_ext <<_ACEOF
12106 /* end confdefs.h. */
12111 /* FIXME: Include the comments suggested by Paul. */
12112 #ifndef __cplusplus
12113 /* Ultrix mips cc rejects this. */
12114 typedef int charset[2];
12116 /* SunOS 4.1.1 cc rejects this. */
12117 char const *const *pcpcc;
12119 /* NEC SVR4.0.2 mips cc rejects this. */
12120 struct point {int x, y;};
12121 static struct point const zero = {0,0};
12122 /* AIX XL C 1.02.0.0 rejects this.
12123 It does not let you subtract one const X* pointer from another in
12124 an arm of an if-expression whose if-part is not a constant
12126 const char *g = "string";
12127 pcpcc = &g + (g ? g-g : 0);
12128 /* HPUX 7.0 cc rejects these. */
12130 ppc = (char**) pcpcc;
12131 pcpcc = (char const *const *) ppc;
12132 { /* SCO 3.2v4 cc rejects this. */
12134 char const *s = 0 ? (char *) 0 : (char const *) 0;
12139 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12140 int x[] = {25, 17};
12141 const int *foo = &x[0];
12144 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12145 typedef const int *iptr;
12149 { /* AIX XL C 1.02.0.0 rejects this saying
12150 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12151 struct s { int j; const int *ap[3]; };
12152 struct s *b; b->j = 5;
12154 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12155 const int foo = 10;
12156 if (!foo) return 0;
12158 return !cs[0] && !zero.x;
12165 rm -f conftest.
$ac_objext
12166 if { (ac_try
="$ac_compile"
12167 case "(($ac_try" in
12168 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12169 *) ac_try_echo=$ac_try;;
12171 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12172 $as_echo "$ac_try_echo") >&5
12173 (eval "$ac_compile") 2>conftest.er1
12175 grep -v '^ *+' conftest.er1 >conftest.err
12177 cat conftest.err >&5
12178 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12179 (exit $ac_status); } && {
12180 test -z "$ac_c_werror_flag" ||
12181 test ! -s conftest.err
12182 } && test -s conftest.$ac_objext; then
12185 $as_echo "$as_me: failed program was:" >&5
12186 sed 's/^/| /' conftest.$ac_ext >&5
12191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12193 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12194 $as_echo "$ac_cv_c_const" >&6; }
12195 if test $ac_cv_c_const = no; then
12197 cat >>confdefs.h <<\_ACEOF
12203 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
12204 $as_echo_n "checking for working volatile... " >&6; }
12205 if test "${ac_cv_c_volatile+set}" = set; then
12206 $as_echo_n "(cached) " >&6
12208 cat >conftest.$ac_ext <<_ACEOF
12211 cat confdefs.h >>conftest.$ac_ext
12212 cat >>conftest.$ac_ext <<_ACEOF
12213 /* end confdefs.h. */
12220 int * volatile y = (int *) 0;
12226 rm -f conftest.$ac_objext
12227 if { (ac_try="$ac_compile"
12228 case "(($ac_try" in
12229 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12230 *) ac_try_echo
=$ac_try;;
12232 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12233 $as_echo "$ac_try_echo") >&5
12234 (eval "$ac_compile") 2>conftest.er1
12236 grep -v '^ *+' conftest.er1
>conftest.err
12238 cat conftest.err
>&5
12239 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12240 (exit $ac_status); } && {
12241 test -z "$ac_c_werror_flag" ||
12242 test ! -s conftest.err
12243 } && test -s conftest.
$ac_objext; then
12244 ac_cv_c_volatile
=yes
12246 $as_echo "$as_me: failed program was:" >&5
12247 sed 's/^/| /' conftest.
$ac_ext >&5
12249 ac_cv_c_volatile
=no
12252 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12254 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
12255 $as_echo "$ac_cv_c_volatile" >&6; }
12256 if test $ac_cv_c_volatile = no
; then
12258 cat >>confdefs.h
<<\_ACEOF
12259 #define volatile /**/
12264 { $as_echo "$as_me:$LINENO: checking for mode_t" >&5
12265 $as_echo_n "checking for mode_t... " >&6; }
12266 if test "${ac_cv_type_mode_t+set}" = set; then
12267 $as_echo_n "(cached) " >&6
12269 ac_cv_type_mode_t
=no
12270 cat >conftest.
$ac_ext <<_ACEOF
12273 cat confdefs.h
>>conftest.
$ac_ext
12274 cat >>conftest.
$ac_ext <<_ACEOF
12275 /* end confdefs.h. */
12276 $ac_includes_default
12280 if (sizeof (mode_t))
12286 rm -f conftest.
$ac_objext
12287 if { (ac_try
="$ac_compile"
12288 case "(($ac_try" in
12289 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12290 *) ac_try_echo=$ac_try;;
12292 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12293 $as_echo "$ac_try_echo") >&5
12294 (eval "$ac_compile") 2>conftest.er1
12296 grep -v '^ *+' conftest.er1 >conftest.err
12298 cat conftest.err >&5
12299 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12300 (exit $ac_status); } && {
12301 test -z "$ac_c_werror_flag" ||
12302 test ! -s conftest.err
12303 } && test -s conftest.$ac_objext; then
12304 cat >conftest.$ac_ext <<_ACEOF
12307 cat confdefs.h >>conftest.$ac_ext
12308 cat >>conftest.$ac_ext <<_ACEOF
12309 /* end confdefs.h. */
12310 $ac_includes_default
12314 if (sizeof ((mode_t)))
12320 rm -f conftest.$ac_objext
12321 if { (ac_try="$ac_compile"
12322 case "(($ac_try" in
12323 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12324 *) ac_try_echo
=$ac_try;;
12326 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12327 $as_echo "$ac_try_echo") >&5
12328 (eval "$ac_compile") 2>conftest.er1
12330 grep -v '^ *+' conftest.er1
>conftest.err
12332 cat conftest.err
>&5
12333 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12334 (exit $ac_status); } && {
12335 test -z "$ac_c_werror_flag" ||
12336 test ! -s conftest.err
12337 } && test -s conftest.
$ac_objext; then
12340 $as_echo "$as_me: failed program was:" >&5
12341 sed 's/^/| /' conftest.
$ac_ext >&5
12343 ac_cv_type_mode_t
=yes
12346 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12348 $as_echo "$as_me: failed program was:" >&5
12349 sed 's/^/| /' conftest.
$ac_ext >&5
12354 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12356 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
12357 $as_echo "$ac_cv_type_mode_t" >&6; }
12358 if test "x$ac_cv_type_mode_t" = x
""yes; then
12362 cat >>confdefs.h
<<_ACEOF
12368 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
12369 $as_echo_n "checking for off_t... " >&6; }
12370 if test "${ac_cv_type_off_t+set}" = set; then
12371 $as_echo_n "(cached) " >&6
12373 ac_cv_type_off_t
=no
12374 cat >conftest.
$ac_ext <<_ACEOF
12377 cat confdefs.h
>>conftest.
$ac_ext
12378 cat >>conftest.
$ac_ext <<_ACEOF
12379 /* end confdefs.h. */
12380 $ac_includes_default
12384 if (sizeof (off_t))
12390 rm -f conftest.
$ac_objext
12391 if { (ac_try
="$ac_compile"
12392 case "(($ac_try" in
12393 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12394 *) ac_try_echo=$ac_try;;
12396 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12397 $as_echo "$ac_try_echo") >&5
12398 (eval "$ac_compile") 2>conftest.er1
12400 grep -v '^ *+' conftest.er1 >conftest.err
12402 cat conftest.err >&5
12403 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12404 (exit $ac_status); } && {
12405 test -z "$ac_c_werror_flag" ||
12406 test ! -s conftest.err
12407 } && test -s conftest.$ac_objext; then
12408 cat >conftest.$ac_ext <<_ACEOF
12411 cat confdefs.h >>conftest.$ac_ext
12412 cat >>conftest.$ac_ext <<_ACEOF
12413 /* end confdefs.h. */
12414 $ac_includes_default
12418 if (sizeof ((off_t)))
12424 rm -f conftest.$ac_objext
12425 if { (ac_try="$ac_compile"
12426 case "(($ac_try" in
12427 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12428 *) ac_try_echo
=$ac_try;;
12430 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12431 $as_echo "$ac_try_echo") >&5
12432 (eval "$ac_compile") 2>conftest.er1
12434 grep -v '^ *+' conftest.er1
>conftest.err
12436 cat conftest.err
>&5
12437 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12438 (exit $ac_status); } && {
12439 test -z "$ac_c_werror_flag" ||
12440 test ! -s conftest.err
12441 } && test -s conftest.
$ac_objext; then
12444 $as_echo "$as_me: failed program was:" >&5
12445 sed 's/^/| /' conftest.
$ac_ext >&5
12447 ac_cv_type_off_t
=yes
12450 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12452 $as_echo "$as_me: failed program was:" >&5
12453 sed 's/^/| /' conftest.
$ac_ext >&5
12458 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12460 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
12461 $as_echo "$ac_cv_type_off_t" >&6; }
12462 if test "x$ac_cv_type_off_t" = x
""yes; then
12466 cat >>confdefs.h
<<_ACEOF
12467 #define off_t long int
12472 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
12473 $as_echo_n "checking for pid_t... " >&6; }
12474 if test "${ac_cv_type_pid_t+set}" = set; then
12475 $as_echo_n "(cached) " >&6
12477 ac_cv_type_pid_t
=no
12478 cat >conftest.
$ac_ext <<_ACEOF
12481 cat confdefs.h
>>conftest.
$ac_ext
12482 cat >>conftest.
$ac_ext <<_ACEOF
12483 /* end confdefs.h. */
12484 $ac_includes_default
12488 if (sizeof (pid_t))
12494 rm -f conftest.
$ac_objext
12495 if { (ac_try
="$ac_compile"
12496 case "(($ac_try" in
12497 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12498 *) ac_try_echo=$ac_try;;
12500 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12501 $as_echo "$ac_try_echo") >&5
12502 (eval "$ac_compile") 2>conftest.er1
12504 grep -v '^ *+' conftest.er1 >conftest.err
12506 cat conftest.err >&5
12507 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12508 (exit $ac_status); } && {
12509 test -z "$ac_c_werror_flag" ||
12510 test ! -s conftest.err
12511 } && test -s conftest.$ac_objext; then
12512 cat >conftest.$ac_ext <<_ACEOF
12515 cat confdefs.h >>conftest.$ac_ext
12516 cat >>conftest.$ac_ext <<_ACEOF
12517 /* end confdefs.h. */
12518 $ac_includes_default
12522 if (sizeof ((pid_t)))
12528 rm -f conftest.$ac_objext
12529 if { (ac_try="$ac_compile"
12530 case "(($ac_try" in
12531 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12532 *) ac_try_echo
=$ac_try;;
12534 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12535 $as_echo "$ac_try_echo") >&5
12536 (eval "$ac_compile") 2>conftest.er1
12538 grep -v '^ *+' conftest.er1
>conftest.err
12540 cat conftest.err
>&5
12541 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12542 (exit $ac_status); } && {
12543 test -z "$ac_c_werror_flag" ||
12544 test ! -s conftest.err
12545 } && test -s conftest.
$ac_objext; then
12548 $as_echo "$as_me: failed program was:" >&5
12549 sed 's/^/| /' conftest.
$ac_ext >&5
12551 ac_cv_type_pid_t
=yes
12554 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12556 $as_echo "$as_me: failed program was:" >&5
12557 sed 's/^/| /' conftest.
$ac_ext >&5
12562 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12564 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
12565 $as_echo "$ac_cv_type_pid_t" >&6; }
12566 if test "x$ac_cv_type_pid_t" = x
""yes; then
12570 cat >>confdefs.h
<<_ACEOF
12576 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
12577 $as_echo_n "checking for size_t... " >&6; }
12578 if test "${ac_cv_type_size_t+set}" = set; then
12579 $as_echo_n "(cached) " >&6
12581 ac_cv_type_size_t
=no
12582 cat >conftest.
$ac_ext <<_ACEOF
12585 cat confdefs.h
>>conftest.
$ac_ext
12586 cat >>conftest.
$ac_ext <<_ACEOF
12587 /* end confdefs.h. */
12588 $ac_includes_default
12592 if (sizeof (size_t))
12598 rm -f conftest.
$ac_objext
12599 if { (ac_try
="$ac_compile"
12600 case "(($ac_try" in
12601 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12602 *) ac_try_echo=$ac_try;;
12604 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12605 $as_echo "$ac_try_echo") >&5
12606 (eval "$ac_compile") 2>conftest.er1
12608 grep -v '^ *+' conftest.er1 >conftest.err
12610 cat conftest.err >&5
12611 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12612 (exit $ac_status); } && {
12613 test -z "$ac_c_werror_flag" ||
12614 test ! -s conftest.err
12615 } && test -s conftest.$ac_objext; then
12616 cat >conftest.$ac_ext <<_ACEOF
12619 cat confdefs.h >>conftest.$ac_ext
12620 cat >>conftest.$ac_ext <<_ACEOF
12621 /* end confdefs.h. */
12622 $ac_includes_default
12626 if (sizeof ((size_t)))
12632 rm -f conftest.$ac_objext
12633 if { (ac_try="$ac_compile"
12634 case "(($ac_try" in
12635 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12636 *) ac_try_echo
=$ac_try;;
12638 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12639 $as_echo "$ac_try_echo") >&5
12640 (eval "$ac_compile") 2>conftest.er1
12642 grep -v '^ *+' conftest.er1
>conftest.err
12644 cat conftest.err
>&5
12645 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12646 (exit $ac_status); } && {
12647 test -z "$ac_c_werror_flag" ||
12648 test ! -s conftest.err
12649 } && test -s conftest.
$ac_objext; then
12652 $as_echo "$as_me: failed program was:" >&5
12653 sed 's/^/| /' conftest.
$ac_ext >&5
12655 ac_cv_type_size_t
=yes
12658 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12660 $as_echo "$as_me: failed program was:" >&5
12661 sed 's/^/| /' conftest.
$ac_ext >&5
12666 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12668 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
12669 $as_echo "$ac_cv_type_size_t" >&6; }
12670 if test "x$ac_cv_type_size_t" = x
""yes; then
12674 cat >>confdefs.h
<<_ACEOF
12675 #define size_t unsigned int
12680 { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
12681 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
12682 if test "${ac_cv_type_uid_t+set}" = set; then
12683 $as_echo_n "(cached) " >&6
12685 cat >conftest.
$ac_ext <<_ACEOF
12688 cat confdefs.h
>>conftest.
$ac_ext
12689 cat >>conftest.
$ac_ext <<_ACEOF
12690 /* end confdefs.h. */
12691 #include <sys/types.h>
12694 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12695 $EGREP "uid_t" >/dev
/null
2>&1; then
12696 ac_cv_type_uid_t
=yes
12698 ac_cv_type_uid_t
=no
12703 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
12704 $as_echo "$ac_cv_type_uid_t" >&6; }
12705 if test $ac_cv_type_uid_t = no
; then
12707 cat >>confdefs.h
<<\_ACEOF
12712 cat >>confdefs.h
<<\_ACEOF
12718 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
12719 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
12720 if test "${ac_cv_header_time+set}" = set; then
12721 $as_echo_n "(cached) " >&6
12723 cat >conftest.
$ac_ext <<_ACEOF
12726 cat confdefs.h
>>conftest.
$ac_ext
12727 cat >>conftest.
$ac_ext <<_ACEOF
12728 /* end confdefs.h. */
12729 #include <sys/types.h>
12730 #include <sys/time.h>
12736 if ((struct tm *) 0)
12742 rm -f conftest.
$ac_objext
12743 if { (ac_try
="$ac_compile"
12744 case "(($ac_try" in
12745 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12746 *) ac_try_echo=$ac_try;;
12748 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12749 $as_echo "$ac_try_echo") >&5
12750 (eval "$ac_compile") 2>conftest.er1
12752 grep -v '^ *+' conftest.er1 >conftest.err
12754 cat conftest.err >&5
12755 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12756 (exit $ac_status); } && {
12757 test -z "$ac_c_werror_flag" ||
12758 test ! -s conftest.err
12759 } && test -s conftest.$ac_objext; then
12760 ac_cv_header_time=yes
12762 $as_echo "$as_me: failed program was:" >&5
12763 sed 's/^/| /' conftest.$ac_ext >&5
12765 ac_cv_header_time=no
12768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12770 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
12771 $as_echo "$ac_cv_header_time" >&6; }
12772 if test $ac_cv_header_time = yes; then
12774 cat >>confdefs.h <<\_ACEOF
12775 #define TIME_WITH_SYS_TIME 1
12780 { $as_echo "$as_me:$LINENO: checking for ino_t" >&5
12781 $as_echo_n "checking for ino_t... " >&6; }
12782 if test "${ac_cv_type_ino_t+set}" = set; then
12783 $as_echo_n "(cached) " >&6
12785 ac_cv_type_ino_t=no
12786 cat >conftest.$ac_ext <<_ACEOF
12789 cat confdefs.h >>conftest.$ac_ext
12790 cat >>conftest.$ac_ext <<_ACEOF
12791 /* end confdefs.h. */
12792 $ac_includes_default
12796 if (sizeof (ino_t))
12802 rm -f conftest.$ac_objext
12803 if { (ac_try="$ac_compile"
12804 case "(($ac_try" in
12805 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12806 *) ac_try_echo
=$ac_try;;
12808 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12809 $as_echo "$ac_try_echo") >&5
12810 (eval "$ac_compile") 2>conftest.er1
12812 grep -v '^ *+' conftest.er1
>conftest.err
12814 cat conftest.err
>&5
12815 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12816 (exit $ac_status); } && {
12817 test -z "$ac_c_werror_flag" ||
12818 test ! -s conftest.err
12819 } && test -s conftest.
$ac_objext; then
12820 cat >conftest.
$ac_ext <<_ACEOF
12823 cat confdefs.h
>>conftest.
$ac_ext
12824 cat >>conftest.
$ac_ext <<_ACEOF
12825 /* end confdefs.h. */
12826 $ac_includes_default
12830 if (sizeof ((ino_t)))
12836 rm -f conftest.
$ac_objext
12837 if { (ac_try
="$ac_compile"
12838 case "(($ac_try" in
12839 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12840 *) ac_try_echo=$ac_try;;
12842 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12843 $as_echo "$ac_try_echo") >&5
12844 (eval "$ac_compile") 2>conftest.er1
12846 grep -v '^ *+' conftest.er1 >conftest.err
12848 cat conftest.err >&5
12849 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12850 (exit $ac_status); } && {
12851 test -z "$ac_c_werror_flag" ||
12852 test ! -s conftest.err
12853 } && test -s conftest.$ac_objext; then
12856 $as_echo "$as_me: failed program was:" >&5
12857 sed 's/^/| /' conftest.$ac_ext >&5
12859 ac_cv_type_ino_t=yes
12862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12864 $as_echo "$as_me: failed program was:" >&5
12865 sed 's/^/| /' conftest.$ac_ext >&5
12870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12872 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
12873 $as_echo "$ac_cv_type_ino_t" >&6; }
12874 if test "x$ac_cv_type_ino_t" = x""yes; then
12878 cat >>confdefs.h <<_ACEOF
12884 { $as_echo "$as_me:$LINENO: checking for dev_t" >&5
12885 $as_echo_n "checking for dev_t... " >&6; }
12886 if test "${ac_cv_type_dev_t+set}" = set; then
12887 $as_echo_n "(cached) " >&6
12889 ac_cv_type_dev_t=no
12890 cat >conftest.$ac_ext <<_ACEOF
12893 cat confdefs.h >>conftest.$ac_ext
12894 cat >>conftest.$ac_ext <<_ACEOF
12895 /* end confdefs.h. */
12896 $ac_includes_default
12900 if (sizeof (dev_t))
12906 rm -f conftest.$ac_objext
12907 if { (ac_try="$ac_compile"
12908 case "(($ac_try" in
12909 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12910 *) ac_try_echo
=$ac_try;;
12912 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12913 $as_echo "$ac_try_echo") >&5
12914 (eval "$ac_compile") 2>conftest.er1
12916 grep -v '^ *+' conftest.er1
>conftest.err
12918 cat conftest.err
>&5
12919 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12920 (exit $ac_status); } && {
12921 test -z "$ac_c_werror_flag" ||
12922 test ! -s conftest.err
12923 } && test -s conftest.
$ac_objext; then
12924 cat >conftest.
$ac_ext <<_ACEOF
12927 cat confdefs.h
>>conftest.
$ac_ext
12928 cat >>conftest.
$ac_ext <<_ACEOF
12929 /* end confdefs.h. */
12930 $ac_includes_default
12934 if (sizeof ((dev_t)))
12940 rm -f conftest.
$ac_objext
12941 if { (ac_try
="$ac_compile"
12942 case "(($ac_try" in
12943 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12944 *) ac_try_echo=$ac_try;;
12946 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12947 $as_echo "$ac_try_echo") >&5
12948 (eval "$ac_compile") 2>conftest.er1
12950 grep -v '^ *+' conftest.er1 >conftest.err
12952 cat conftest.err >&5
12953 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12954 (exit $ac_status); } && {
12955 test -z "$ac_c_werror_flag" ||
12956 test ! -s conftest.err
12957 } && test -s conftest.$ac_objext; then
12960 $as_echo "$as_me: failed program was:" >&5
12961 sed 's/^/| /' conftest.$ac_ext >&5
12963 ac_cv_type_dev_t=yes
12966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12968 $as_echo "$as_me: failed program was:" >&5
12969 sed 's/^/| /' conftest.$ac_ext >&5
12974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12976 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
12977 $as_echo "$ac_cv_type_dev_t" >&6; }
12978 if test "x$ac_cv_type_dev_t" = x""yes; then
12982 cat >>confdefs.h <<_ACEOF
12983 #define dev_t unsigned
12989 { $as_echo "$as_me:$LINENO: checking for rlim_t" >&5
12990 $as_echo_n "checking for rlim_t... " >&6; }
12991 if eval "test \"`echo '$''{'ac_cv_type_rlim_t
'+set}'`\" = set"; then
12992 { $as_echo "$as_me:$LINENO: result: (cached) $ac_cv_type_rlim_t" >&5
12993 $as_echo "(cached) $ac_cv_type_rlim_t" >&6; }
12995 cat >conftest.$ac_ext <<_ACEOF
12998 cat confdefs.h >>conftest.$ac_ext
12999 cat >>conftest.$ac_ext <<_ACEOF
13000 /* end confdefs.h. */
13002 #include <sys/types.h>
13004 # include <stdlib.h>
13005 # include <stddef.h>
13007 #ifdef HAVE_SYS_RESOURCE_H
13008 # include <sys/resource.h>
13012 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13013 $EGREP "(^|[^a-zA-Z_0-9])rlim_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13014 ac_cv_type_rlim_t=yes
13016 ac_cv_type_rlim_t=no
13020 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_rlim_t" >&5
13021 $as_echo "$ac_cv_type_rlim_t" >&6; }
13023 if test $ac_cv_type_rlim_t = no; then
13024 cat >> confdefs.h <<\EOF
13025 #define rlim_t unsigned long
13029 { $as_echo "$as_me:$LINENO: checking for stack_t" >&5
13030 $as_echo_n "checking for stack_t... " >&6; }
13031 if eval "test \"`echo '$''{'ac_cv_type_stack_t
'+set}'`\" = set"; then
13032 { $as_echo "$as_me:$LINENO: result: (cached) $ac_cv_type_stack_t" >&5
13033 $as_echo "(cached) $ac_cv_type_stack_t" >&6; }
13035 cat >conftest.$ac_ext <<_ACEOF
13038 cat confdefs.h >>conftest.$ac_ext
13039 cat >>conftest.$ac_ext <<_ACEOF
13040 /* end confdefs.h. */
13042 #include <sys/types.h>
13044 # include <stdlib.h>
13045 # include <stddef.h>
13047 #include <signal.h>
13050 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13051 $EGREP "stack_t" >/dev/null 2>&1; then
13052 ac_cv_type_stack_t=yes
13054 ac_cv_type_stack_t=no
13058 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_stack_t" >&5
13059 $as_echo "$ac_cv_type_stack_t" >&6; }
13061 if test $ac_cv_type_stack_t = no; then
13062 cat >> confdefs.h <<\EOF
13063 #define stack_t struct sigaltstack
13067 { $as_echo "$as_me:$LINENO: checking whether stack_t has an ss_base field" >&5
13068 $as_echo_n "checking whether stack_t has an ss_base field... " >&6; }
13069 cat >conftest.$ac_ext <<_ACEOF
13072 cat confdefs.h >>conftest.$ac_ext
13073 cat >>conftest.$ac_ext <<_ACEOF
13074 /* end confdefs.h. */
13076 #include <sys/types.h>
13078 # include <stdlib.h>
13079 # include <stddef.h>
13081 #include <signal.h>
13082 #include "confdefs.h"
13087 stack_t sigstk; sigstk.ss_base = 0;
13092 rm -f conftest.$ac_objext
13093 if { (ac_try="$ac_compile"
13094 case "(($ac_try" in
13095 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13096 *) ac_try_echo
=$ac_try;;
13098 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13099 $as_echo "$ac_try_echo") >&5
13100 (eval "$ac_compile") 2>conftest.er1
13102 grep -v '^ *+' conftest.er1
>conftest.err
13104 cat conftest.err
>&5
13105 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13106 (exit $ac_status); } && {
13107 test -z "$ac_c_werror_flag" ||
13108 test ! -s conftest.err
13109 } && test -s conftest.
$ac_objext; then
13110 { $as_echo "$as_me:$LINENO: result: yes" >&5
13111 $as_echo "yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
13112 #define HAVE_SS_BASE 1
13116 $as_echo "$as_me: failed program was:" >&5
13117 sed 's/^/| /' conftest.
$ac_ext >&5
13119 { $as_echo "$as_me:$LINENO: result: no" >&5
13120 $as_echo "no" >&6; }
13123 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13126 { $as_echo "$as_me:$LINENO: checking --with-tlib argument" >&5
13127 $as_echo_n "checking --with-tlib argument... " >&6; }
13129 # Check whether --with-tlib was given.
13130 if test "${with_tlib+set}" = set; then
13131 withval
=$with_tlib;
13134 if test -n "$with_tlib"; then
13135 { $as_echo "$as_me:$LINENO: result: $with_tlib" >&5
13136 $as_echo "$with_tlib" >&6; }
13137 LIBS
="$LIBS -l$with_tlib"
13138 { $as_echo "$as_me:$LINENO: checking for linking with $with_tlib library" >&5
13139 $as_echo_n "checking for linking with $with_tlib library... " >&6; }
13140 cat >conftest.
$ac_ext <<_ACEOF
13143 cat confdefs.h
>>conftest.
$ac_ext
13144 cat >>conftest.
$ac_ext <<_ACEOF
13145 /* end confdefs.h. */
13155 rm -f conftest.
$ac_objext conftest
$ac_exeext
13156 if { (ac_try
="$ac_link"
13157 case "(($ac_try" in
13158 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13159 *) ac_try_echo=$ac_try;;
13161 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13162 $as_echo "$ac_try_echo") >&5
13163 (eval "$ac_link") 2>conftest.er1
13165 grep -v '^ *+' conftest.er1 >conftest.err
13167 cat conftest.err >&5
13168 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13169 (exit $ac_status); } && {
13170 test -z "$ac_c_werror_flag" ||
13171 test ! -s conftest.err
13172 } && test -s conftest$ac_exeext && {
13173 test "$cross_compiling" = yes ||
13174 $as_test_x conftest$ac_exeext
13176 { $as_echo "$as_me:$LINENO: result: OK" >&5
13177 $as_echo "OK" >&6; }
13179 $as_echo "$as_me: failed program was:" >&5
13180 sed 's/^/| /' conftest.$ac_ext >&5
13182 { { $as_echo "$as_me:$LINENO: error: FAILED" >&5
13183 $as_echo "$as_me: error: FAILED" >&2;}
13184 { (exit 1); exit 1; }; }
13187 rm -rf conftest.dSYM
13188 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13189 conftest$ac_exeext conftest.$ac_ext
13192 { $as_echo "$as_me:$LINENO: result: empty: automatic terminal library selection" >&5
13193 $as_echo "empty: automatic terminal library selection" >&6; }
13194 case "`uname
-s 2>/dev
/null
`" in
13195 OSF1|SCO_SV) tlibs="ncurses curses termlib termcap";;
13196 *) tlibs="ncurses termlib termcap curses";;
13198 for libname in $tlibs; do
13200 as_ac_Lib=`$as_echo "ac_cv_lib_${libname}''_tgetent" |
$as_tr_sh`
13201 { $as_echo "$as_me:$LINENO: checking for tgetent in -l${libname}" >&5
13202 $as_echo_n "checking for tgetent in -l${libname}... " >&6; }
13203 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
13204 $as_echo_n "(cached) " >&6
13206 ac_check_lib_save_LIBS=$LIBS
13207 LIBS="-l${libname} $LIBS"
13208 cat >conftest.$ac_ext <<_ACEOF
13211 cat confdefs.h >>conftest.$ac_ext
13212 cat >>conftest.$ac_ext <<_ACEOF
13213 /* end confdefs.h. */
13215 /* Override any GCC internal prototype to avoid an error.
13216 Use char because int might match the return type of a GCC
13217 builtin and then its argument prototype would still apply. */
13230 rm -f conftest.$ac_objext conftest$ac_exeext
13231 if { (ac_try="$ac_link"
13232 case "(($ac_try" in
13233 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13234 *) ac_try_echo
=$ac_try;;
13236 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13237 $as_echo "$ac_try_echo") >&5
13238 (eval "$ac_link") 2>conftest.er1
13240 grep -v '^ *+' conftest.er1
>conftest.err
13242 cat conftest.err
>&5
13243 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13244 (exit $ac_status); } && {
13245 test -z "$ac_c_werror_flag" ||
13246 test ! -s conftest.err
13247 } && test -s conftest
$ac_exeext && {
13248 test "$cross_compiling" = yes ||
13249 $as_test_x conftest
$ac_exeext
13251 eval "$as_ac_Lib=yes"
13253 $as_echo "$as_me: failed program was:" >&5
13254 sed 's/^/| /' conftest.
$ac_ext >&5
13256 eval "$as_ac_Lib=no"
13259 rm -rf conftest.dSYM
13260 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13261 conftest
$ac_exeext conftest.
$ac_ext
13262 LIBS
=$ac_check_lib_save_LIBS
13264 ac_res
=`eval 'as_val=${'$as_ac_Lib'}
13265 $as_echo "$as_val"'`
13266 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13267 $as_echo "$ac_res" >&6; }
13268 as_val
=`eval 'as_val=${'$as_ac_Lib'}
13269 $as_echo "$as_val"'`
13270 if test "x$as_val" = x
""yes; then
13271 cat >>confdefs.h
<<_ACEOF
13272 #define `$as_echo "HAVE_LIB${libname}" | $as_tr_cpp` 1
13275 LIBS
="-l${libname} $LIBS"
13279 if test "x$olibs" != "x$LIBS"; then
13280 if test "$cross_compiling" = yes; then
13283 cat >conftest.
$ac_ext <<_ACEOF
13286 cat confdefs.h
>>conftest.
$ac_ext
13287 cat >>conftest.
$ac_ext <<_ACEOF
13288 /* end confdefs.h. */
13290 #ifdef HAVE_TERMCAP_H
13291 # include <termcap.h>
13294 # include <stdlib.h>
13295 # include <stddef.h>
13297 main() {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(0); }
13299 rm -f conftest
$ac_exeext
13300 if { (ac_try
="$ac_link"
13301 case "(($ac_try" in
13302 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13303 *) ac_try_echo=$ac_try;;
13305 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13306 $as_echo "$ac_try_echo") >&5
13307 (eval "$ac_link") 2>&5
13309 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13310 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13311 { (case "(($ac_try" in
13312 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13313 *) ac_try_echo
=$ac_try;;
13315 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13316 $as_echo "$ac_try_echo") >&5
13317 (eval "$ac_try") 2>&5
13319 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13320 (exit $ac_status); }; }; then
13323 $as_echo "$as_me: program exited with status $ac_status" >&5
13324 $as_echo "$as_me: failed program was:" >&5
13325 sed 's/^/| /' conftest.
$ac_ext >&5
13327 ( exit $ac_status )
13330 rm -rf conftest.dSYM
13331 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13335 if test "$res" = "OK"; then
13338 { $as_echo "$as_me:$LINENO: result: $libname library is not usable" >&5
13339 $as_echo "$libname library is not usable" >&6; }
13343 if test "x$olibs" = "x$LIBS"; then
13344 { $as_echo "$as_me:$LINENO: result: no terminal library found" >&5
13345 $as_echo "no terminal library found" >&6; }
13349 if test "x$olibs" = "x$LIBS"; then
13350 { $as_echo "$as_me:$LINENO: checking for tgetent()" >&5
13351 $as_echo_n "checking for tgetent()... " >&6; }
13352 cat >conftest.
$ac_ext <<_ACEOF
13355 cat confdefs.h
>>conftest.
$ac_ext
13356 cat >>conftest.
$ac_ext <<_ACEOF
13357 /* end confdefs.h. */
13362 char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist");
13367 rm -f conftest.
$ac_objext conftest
$ac_exeext
13368 if { (ac_try
="$ac_link"
13369 case "(($ac_try" in
13370 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13371 *) ac_try_echo=$ac_try;;
13373 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13374 $as_echo "$ac_try_echo") >&5
13375 (eval "$ac_link") 2>conftest.er1
13377 grep -v '^ *+' conftest.er1 >conftest.err
13379 cat conftest.err >&5
13380 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13381 (exit $ac_status); } && {
13382 test -z "$ac_c_werror_flag" ||
13383 test ! -s conftest.err
13384 } && test -s conftest$ac_exeext && {
13385 test "$cross_compiling" = yes ||
13386 $as_test_x conftest$ac_exeext
13388 { $as_echo "$as_me:$LINENO: result: yes" >&5
13389 $as_echo "yes" >&6; }
13391 $as_echo "$as_me: failed program was:" >&5
13392 sed 's/^/| /' conftest.$ac_ext >&5
13394 { { $as_echo "$as_me:$LINENO: error: NOT FOUND!
13395 You need to install a terminal library; for example ncurses.
13396 Or specify the name of the library with --with-tlib." >&5
13397 $as_echo "$as_me: error: NOT FOUND!
13398 You need to install a terminal library; for example ncurses.
13399 Or specify the name of the library with --with-tlib." >&2;}
13400 { (exit 1); exit 1; }; }
13403 rm -rf conftest.dSYM
13404 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13405 conftest$ac_exeext conftest.$ac_ext
13408 { $as_echo "$as_me:$LINENO: checking whether we talk terminfo" >&5
13409 $as_echo_n "checking whether we talk terminfo... " >&6; }
13410 if test "${vim_cv_terminfo+set}" = set; then
13411 $as_echo_n "(cached) " >&6
13414 if test "$cross_compiling" = yes; then
13416 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_terminfo'" >&5
13417 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_terminfo'" >&2;}
13418 { (exit 1); exit 1; }; }
13421 cat >conftest.$ac_ext <<_ACEOF
13423 #include "confdefs.h"
13424 #ifdef HAVE_TERMCAP_H
13425 # include <termcap.h>
13427 #ifdef HAVE_STRING_H
13428 # include <string.h>
13431 # include <stdlib.h>
13432 # include <stddef.h>
13435 {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(!strcmp(s==0 ? "" : s, "1")); }
13438 rm -f conftest$ac_exeext
13439 if { (ac_try="$ac_link"
13440 case "(($ac_try" in
13441 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13442 *) ac_try_echo
=$ac_try;;
13444 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13445 $as_echo "$ac_try_echo") >&5
13446 (eval "$ac_link") 2>&5
13448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13449 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13450 { (case "(($ac_try" in
13451 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13452 *) ac_try_echo=$ac_try;;
13454 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13455 $as_echo "$ac_try_echo") >&5
13456 (eval "$ac_try") 2>&5
13458 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13459 (exit $ac_status); }; }; then
13464 $as_echo "$as_me: program exited with status $ac_status" >&5
13465 $as_echo "$as_me: failed program was:" >&5
13466 sed 's/^/| /' conftest.$ac_ext >&5
13468 ( exit $ac_status )
13470 vim_cv_terminfo=yes
13473 rm -rf conftest.dSYM
13474 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13480 { $as_echo "$as_me:$LINENO: result: $vim_cv_terminfo" >&5
13481 $as_echo "$vim_cv_terminfo" >&6; }
13483 if test "x$vim_cv_terminfo" = "xyes" ; then
13484 cat >>confdefs.h <<\_ACEOF
13490 if test "x$olibs" != "x$LIBS"; then
13491 { $as_echo "$as_me:$LINENO: checking what tgetent() returns for an unknown terminal" >&5
13492 $as_echo_n "checking what tgetent() returns for an unknown terminal... " >&6; }
13493 if test "${vim_cv_tgent+set}" = set; then
13494 $as_echo_n "(cached) " >&6
13497 if test "$cross_compiling" = yes; then
13499 { { $as_echo "$as_me:$LINENO: error: failed to compile test program." >&5
13500 $as_echo "$as_me: error: failed to compile test program." >&2;}
13501 { (exit 1); exit 1; }; }
13504 cat >conftest.$ac_ext <<_ACEOF
13506 #include "confdefs.h"
13507 #ifdef HAVE_TERMCAP_H
13508 # include <termcap.h>
13511 # include <stdlib.h>
13512 # include <stddef.h>
13515 {char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); exit(res != 0); }
13518 rm -f conftest$ac_exeext
13519 if { (ac_try="$ac_link"
13520 case "(($ac_try" in
13521 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13522 *) ac_try_echo
=$ac_try;;
13524 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13525 $as_echo "$ac_try_echo") >&5
13526 (eval "$ac_link") 2>&5
13528 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13529 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13530 { (case "(($ac_try" in
13531 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13532 *) ac_try_echo=$ac_try;;
13534 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13535 $as_echo "$ac_try_echo") >&5
13536 (eval "$ac_try") 2>&5
13538 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13539 (exit $ac_status); }; }; then
13544 $as_echo "$as_me: program exited with status $ac_status" >&5
13545 $as_echo "$as_me: failed program was:" >&5
13546 sed 's/^/| /' conftest.$ac_ext >&5
13548 ( exit $ac_status )
13550 vim_cv_tgent=non-zero
13553 rm -rf conftest.dSYM
13554 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13560 { $as_echo "$as_me:$LINENO: result: $vim_cv_tgent" >&5
13561 $as_echo "$vim_cv_tgent" >&6; }
13563 if test "x$vim_cv_tgent" = "xzero" ; then
13564 cat >>confdefs.h <<\_ACEOF
13565 #define TGETENT_ZERO_ERR 0
13571 { $as_echo "$as_me:$LINENO: checking whether termcap.h contains ospeed" >&5
13572 $as_echo_n "checking whether termcap.h contains ospeed... " >&6; }
13573 cat >conftest.$ac_ext <<_ACEOF
13576 cat confdefs.h >>conftest.$ac_ext
13577 cat >>conftest.$ac_ext <<_ACEOF
13578 /* end confdefs.h. */
13580 #ifdef HAVE_TERMCAP_H
13581 # include <termcap.h>
13592 rm -f conftest.$ac_objext conftest$ac_exeext
13593 if { (ac_try="$ac_link"
13594 case "(($ac_try" in
13595 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13596 *) ac_try_echo
=$ac_try;;
13598 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13599 $as_echo "$ac_try_echo") >&5
13600 (eval "$ac_link") 2>conftest.er1
13602 grep -v '^ *+' conftest.er1
>conftest.err
13604 cat conftest.err
>&5
13605 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13606 (exit $ac_status); } && {
13607 test -z "$ac_c_werror_flag" ||
13608 test ! -s conftest.err
13609 } && test -s conftest
$ac_exeext && {
13610 test "$cross_compiling" = yes ||
13611 $as_test_x conftest
$ac_exeext
13613 { $as_echo "$as_me:$LINENO: result: yes" >&5
13614 $as_echo "yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
13615 #define HAVE_OSPEED 1
13619 $as_echo "$as_me: failed program was:" >&5
13620 sed 's/^/| /' conftest.
$ac_ext >&5
13622 { $as_echo "$as_me:$LINENO: result: no" >&5
13623 $as_echo "no" >&6; }
13624 { $as_echo "$as_me:$LINENO: checking whether ospeed can be extern" >&5
13625 $as_echo_n "checking whether ospeed can be extern... " >&6; }
13626 cat >conftest.
$ac_ext <<_ACEOF
13629 cat confdefs.h
>>conftest.
$ac_ext
13630 cat >>conftest.
$ac_ext <<_ACEOF
13631 /* end confdefs.h. */
13633 #ifdef HAVE_TERMCAP_H
13634 # include <termcap.h>
13636 extern short ospeed;
13646 rm -f conftest.
$ac_objext conftest
$ac_exeext
13647 if { (ac_try
="$ac_link"
13648 case "(($ac_try" in
13649 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13650 *) ac_try_echo=$ac_try;;
13652 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13653 $as_echo "$ac_try_echo") >&5
13654 (eval "$ac_link") 2>conftest.er1
13656 grep -v '^ *+' conftest.er1 >conftest.err
13658 cat conftest.err >&5
13659 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13660 (exit $ac_status); } && {
13661 test -z "$ac_c_werror_flag" ||
13662 test ! -s conftest.err
13663 } && test -s conftest$ac_exeext && {
13664 test "$cross_compiling" = yes ||
13665 $as_test_x conftest$ac_exeext
13667 { $as_echo "$as_me:$LINENO: result: yes" >&5
13668 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13669 #define OSPEED_EXTERN 1
13673 $as_echo "$as_me: failed program was:" >&5
13674 sed 's/^/| /' conftest.$ac_ext >&5
13676 { $as_echo "$as_me:$LINENO: result: no" >&5
13677 $as_echo "no" >&6; }
13680 rm -rf conftest.dSYM
13681 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13682 conftest$ac_exeext conftest.$ac_ext
13686 rm -rf conftest.dSYM
13687 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13688 conftest$ac_exeext conftest.$ac_ext
13690 { $as_echo "$as_me:$LINENO: checking whether termcap.h contains UP, BC and PC" >&5
13691 $as_echo_n "checking whether termcap.h contains UP, BC and PC... " >&6; }
13692 cat >conftest.$ac_ext <<_ACEOF
13695 cat confdefs.h >>conftest.$ac_ext
13696 cat >>conftest.$ac_ext <<_ACEOF
13697 /* end confdefs.h. */
13699 #ifdef HAVE_TERMCAP_H
13700 # include <termcap.h>
13706 if (UP == 0 && BC == 0) PC = 1
13711 rm -f conftest.$ac_objext conftest$ac_exeext
13712 if { (ac_try="$ac_link"
13713 case "(($ac_try" in
13714 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13715 *) ac_try_echo
=$ac_try;;
13717 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13718 $as_echo "$ac_try_echo") >&5
13719 (eval "$ac_link") 2>conftest.er1
13721 grep -v '^ *+' conftest.er1
>conftest.err
13723 cat conftest.err
>&5
13724 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13725 (exit $ac_status); } && {
13726 test -z "$ac_c_werror_flag" ||
13727 test ! -s conftest.err
13728 } && test -s conftest
$ac_exeext && {
13729 test "$cross_compiling" = yes ||
13730 $as_test_x conftest
$ac_exeext
13732 { $as_echo "$as_me:$LINENO: result: yes" >&5
13733 $as_echo "yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
13734 #define HAVE_UP_BC_PC 1
13738 $as_echo "$as_me: failed program was:" >&5
13739 sed 's/^/| /' conftest.
$ac_ext >&5
13741 { $as_echo "$as_me:$LINENO: result: no" >&5
13742 $as_echo "no" >&6; }
13743 { $as_echo "$as_me:$LINENO: checking whether UP, BC and PC can be extern" >&5
13744 $as_echo_n "checking whether UP, BC and PC can be extern... " >&6; }
13745 cat >conftest.
$ac_ext <<_ACEOF
13748 cat confdefs.h
>>conftest.
$ac_ext
13749 cat >>conftest.
$ac_ext <<_ACEOF
13750 /* end confdefs.h. */
13752 #ifdef HAVE_TERMCAP_H
13753 # include <termcap.h>
13755 extern char *UP, *BC, PC;
13760 if (UP == 0 && BC == 0) PC = 1
13765 rm -f conftest.
$ac_objext conftest
$ac_exeext
13766 if { (ac_try
="$ac_link"
13767 case "(($ac_try" in
13768 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13769 *) ac_try_echo=$ac_try;;
13771 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13772 $as_echo "$ac_try_echo") >&5
13773 (eval "$ac_link") 2>conftest.er1
13775 grep -v '^ *+' conftest.er1 >conftest.err
13777 cat conftest.err >&5
13778 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13779 (exit $ac_status); } && {
13780 test -z "$ac_c_werror_flag" ||
13781 test ! -s conftest.err
13782 } && test -s conftest$ac_exeext && {
13783 test "$cross_compiling" = yes ||
13784 $as_test_x conftest$ac_exeext
13786 { $as_echo "$as_me:$LINENO: result: yes" >&5
13787 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13788 #define UP_BC_PC_EXTERN 1
13792 $as_echo "$as_me: failed program was:" >&5
13793 sed 's/^/| /' conftest.$ac_ext >&5
13795 { $as_echo "$as_me:$LINENO: result: no" >&5
13796 $as_echo "no" >&6; }
13799 rm -rf conftest.dSYM
13800 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13801 conftest$ac_exeext conftest.$ac_ext
13805 rm -rf conftest.dSYM
13806 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13807 conftest$ac_exeext conftest.$ac_ext
13809 { $as_echo "$as_me:$LINENO: checking whether tputs() uses outfuntype" >&5
13810 $as_echo_n "checking whether tputs() uses outfuntype... " >&6; }
13811 cat >conftest.$ac_ext <<_ACEOF
13814 cat confdefs.h >>conftest.$ac_ext
13815 cat >>conftest.$ac_ext <<_ACEOF
13816 /* end confdefs.h. */
13818 #ifdef HAVE_TERMCAP_H
13819 # include <termcap.h>
13825 extern int xx(); tputs("test", 1, (outfuntype)xx)
13830 rm -f conftest.$ac_objext
13831 if { (ac_try="$ac_compile"
13832 case "(($ac_try" in
13833 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13834 *) ac_try_echo
=$ac_try;;
13836 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13837 $as_echo "$ac_try_echo") >&5
13838 (eval "$ac_compile") 2>conftest.er1
13840 grep -v '^ *+' conftest.er1
>conftest.err
13842 cat conftest.err
>&5
13843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13844 (exit $ac_status); } && {
13845 test -z "$ac_c_werror_flag" ||
13846 test ! -s conftest.err
13847 } && test -s conftest.
$ac_objext; then
13848 { $as_echo "$as_me:$LINENO: result: yes" >&5
13849 $as_echo "yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
13850 #define HAVE_OUTFUNTYPE 1
13854 $as_echo "$as_me: failed program was:" >&5
13855 sed 's/^/| /' conftest.
$ac_ext >&5
13857 { $as_echo "$as_me:$LINENO: result: no" >&5
13858 $as_echo "no" >&6; }
13861 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13863 { $as_echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
13864 $as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; }
13865 cat >conftest.
$ac_ext <<_ACEOF
13868 cat confdefs.h
>>conftest.
$ac_ext
13869 cat >>conftest.
$ac_ext <<_ACEOF
13870 /* end confdefs.h. */
13872 #include <sys/types.h>
13873 #include <sys/time.h>
13874 #include <sys/select.h>
13883 rm -f conftest.
$ac_objext
13884 if { (ac_try
="$ac_compile"
13885 case "(($ac_try" in
13886 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13887 *) ac_try_echo=$ac_try;;
13889 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13890 $as_echo "$ac_try_echo") >&5
13891 (eval "$ac_compile") 2>conftest.er1
13893 grep -v '^ *+' conftest.er1 >conftest.err
13895 cat conftest.err >&5
13896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13897 (exit $ac_status); } && {
13898 test -z "$ac_c_werror_flag" ||
13899 test ! -s conftest.err
13900 } && test -s conftest.$ac_objext; then
13901 { $as_echo "$as_me:$LINENO: result: yes" >&5
13902 $as_echo "yes" >&6; }
13903 cat >>confdefs.h <<\_ACEOF
13904 #define SYS_SELECT_WITH_SYS_TIME 1
13908 $as_echo "$as_me: failed program was:" >&5
13909 sed 's/^/| /' conftest.$ac_ext >&5
13911 { $as_echo "$as_me:$LINENO: result: no" >&5
13912 $as_echo "no" >&6; }
13915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13918 { $as_echo "$as_me:$LINENO: checking for /dev/ptc" >&5
13919 $as_echo_n "checking for /dev/ptc... " >&6; }
13920 if test -r /dev/ptc; then
13921 cat >>confdefs.h <<\_ACEOF
13922 #define HAVE_DEV_PTC 1
13925 { $as_echo "$as_me:$LINENO: result: yes" >&5
13926 $as_echo "yes" >&6; }
13928 { $as_echo "$as_me:$LINENO: result: no" >&5
13929 $as_echo "no" >&6; }
13932 { $as_echo "$as_me:$LINENO: checking for SVR4 ptys" >&5
13933 $as_echo_n "checking for SVR4 ptys... " >&6; }
13934 if test -c /dev/ptmx ; then
13935 cat >conftest.$ac_ext <<_ACEOF
13938 cat confdefs.h >>conftest.$ac_ext
13939 cat >>conftest.$ac_ext <<_ACEOF
13940 /* end confdefs.h. */
13945 ptsname(0);grantpt(0);unlockpt(0);
13950 rm -f conftest.$ac_objext conftest$ac_exeext
13951 if { (ac_try="$ac_link"
13952 case "(($ac_try" in
13953 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13954 *) ac_try_echo
=$ac_try;;
13956 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13957 $as_echo "$ac_try_echo") >&5
13958 (eval "$ac_link") 2>conftest.er1
13960 grep -v '^ *+' conftest.er1
>conftest.err
13962 cat conftest.err
>&5
13963 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13964 (exit $ac_status); } && {
13965 test -z "$ac_c_werror_flag" ||
13966 test ! -s conftest.err
13967 } && test -s conftest
$ac_exeext && {
13968 test "$cross_compiling" = yes ||
13969 $as_test_x conftest
$ac_exeext
13971 { $as_echo "$as_me:$LINENO: result: yes" >&5
13972 $as_echo "yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
13973 #define HAVE_SVR4_PTYS 1
13977 $as_echo "$as_me: failed program was:" >&5
13978 sed 's/^/| /' conftest.
$ac_ext >&5
13980 { $as_echo "$as_me:$LINENO: result: no" >&5
13981 $as_echo "no" >&6; }
13984 rm -rf conftest.dSYM
13985 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13986 conftest
$ac_exeext conftest.
$ac_ext
13988 { $as_echo "$as_me:$LINENO: result: no" >&5
13989 $as_echo "no" >&6; }
13992 { $as_echo "$as_me:$LINENO: checking for ptyranges" >&5
13993 $as_echo_n "checking for ptyranges... " >&6; }
13994 if test -d /dev
/ptym
; then
13999 cat >conftest.
$ac_ext <<_ACEOF
14002 cat confdefs.h
>>conftest.
$ac_ext
14003 cat >>conftest.
$ac_ext <<_ACEOF
14004 /* end confdefs.h. */
14010 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14011 $EGREP "yes" >/dev
/null
2>&1; then
14012 ptys
=`echo /dev/ptyp??`
14014 ptys
=`echo $pdir/pty??`
14018 if test "$ptys" != "$pdir/pty??" ; then
14019 p0
=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'`
14020 p1
=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'`
14021 cat >>confdefs.h
<<_ACEOF
14022 #define PTYRANGE0 "$p0"
14025 cat >>confdefs.h
<<_ACEOF
14026 #define PTYRANGE1 "$p1"
14029 { $as_echo "$as_me:$LINENO: result: $p0 / $p1" >&5
14030 $as_echo "$p0 / $p1" >&6; }
14032 { $as_echo "$as_me:$LINENO: result: don't know" >&5
14033 $as_echo "don't know" >&6; }
14037 { $as_echo "$as_me:$LINENO: checking default tty permissions/group" >&5
14038 $as_echo_n "checking default tty permissions/group... " >&6; }
14039 if test "${vim_cv_tty_group+set}" = set; then
14040 $as_echo_n "(cached) " >&6
14043 if test "$cross_compiling" = yes; then
14045 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_tty_group' and 'vim_cv_tty_mode'" >&5
14046 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_tty_group' and 'vim_cv_tty_mode'" >&2;}
14047 { (exit 1); exit 1; }; }
14050 cat >conftest.
$ac_ext <<_ACEOF
14052 #include "confdefs.h"
14053 #include <sys/types.h>
14055 # include <stdlib.h>
14056 # include <stddef.h>
14058 #ifdef HAVE_UNISTD_H
14059 #include <unistd.h>
14061 #include <sys/stat.h>
14066 char *x,*ttyname();
14070 if (!(x = ttyname(0))) exit(1);
14071 if (stat(x, &sb)) exit(1);
14073 if (om & 002) exit(0);
14074 m = system("mesg y");
14075 if (m == -1 || m == 127) exit(1);
14076 if (stat(x, &sb)) exit(1);
14078 if (chmod(x, om)) exit(1);
14079 if (m & 002) exit(0);
14080 if (sb.st_gid == getgid()) exit(1);
14081 if (!(fp=fopen("conftest_grp", "w")))
14083 fprintf(fp, "%d\n", sb.st_gid);
14089 rm -f conftest
$ac_exeext
14090 if { (ac_try
="$ac_link"
14091 case "(($ac_try" in
14092 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14093 *) ac_try_echo=$ac_try;;
14095 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14096 $as_echo "$ac_try_echo") >&5
14097 (eval "$ac_link") 2>&5
14099 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14100 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14101 { (case "(($ac_try" in
14102 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14103 *) ac_try_echo
=$ac_try;;
14105 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14106 $as_echo "$ac_try_echo") >&5
14107 (eval "$ac_try") 2>&5
14109 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14110 (exit $ac_status); }; }; then
14112 if test -f conftest_grp
; then
14113 vim_cv_tty_group
=`cat conftest_grp`
14114 if test "x$vim_cv_tty_mode" = "x" ; then
14115 vim_cv_tty_mode
=0620
14117 { $as_echo "$as_me:$LINENO: result: pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&5
14118 $as_echo "pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&6; }
14120 vim_cv_tty_group
=world
14121 { $as_echo "$as_me:$LINENO: result: ptys are world accessible" >&5
14122 $as_echo "ptys are world accessible" >&6; }
14126 $as_echo "$as_me: program exited with status $ac_status" >&5
14127 $as_echo "$as_me: failed program was:" >&5
14128 sed 's/^/| /' conftest.
$ac_ext >&5
14130 ( exit $ac_status )
14132 vim_cv_tty_group
=world
14133 { $as_echo "$as_me:$LINENO: result: can't determine - assume ptys are world accessible" >&5
14134 $as_echo "can't determine - assume ptys are world accessible" >&6; }
14137 rm -rf conftest.dSYM
14138 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
14144 { $as_echo "$as_me:$LINENO: result: $vim_cv_tty_group" >&5
14145 $as_echo "$vim_cv_tty_group" >&6; }
14148 if test "x$vim_cv_tty_group" != "xworld" ; then
14149 cat >>confdefs.h
<<_ACEOF
14150 #define PTYGROUP $vim_cv_tty_group
14153 if test "x$vim_cv_tty_mode" = "x" ; then
14154 { { $as_echo "$as_me:$LINENO: error: It seems you're cross compiling and have 'vim_cv_tty_group' set, please also set the environment variable 'vim_cv_tty_mode' to the correct mode (propably 0620)" >&5
14155 $as_echo "$as_me: error: It seems you're cross compiling and have 'vim_cv_tty_group' set, please also set the environment variable 'vim_cv_tty_mode' to the correct mode (propably 0620)" >&2;}
14156 { (exit 1); exit 1; }; }
14158 cat >>confdefs.h
<<\_ACEOF
14159 #define PTYMODE 0620
14166 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
14167 $as_echo_n "checking return type of signal handlers... " >&6; }
14168 if test "${ac_cv_type_signal+set}" = set; then
14169 $as_echo_n "(cached) " >&6
14171 cat >conftest.
$ac_ext <<_ACEOF
14174 cat confdefs.h
>>conftest.
$ac_ext
14175 cat >>conftest.
$ac_ext <<_ACEOF
14176 /* end confdefs.h. */
14177 #include <sys/types.h>
14178 #include <signal.h>
14183 return *(signal (0, 0)) (0) == 1;
14188 rm -f conftest.
$ac_objext
14189 if { (ac_try
="$ac_compile"
14190 case "(($ac_try" in
14191 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14192 *) ac_try_echo=$ac_try;;
14194 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14195 $as_echo "$ac_try_echo") >&5
14196 (eval "$ac_compile") 2>conftest.er1
14198 grep -v '^ *+' conftest.er1 >conftest.err
14200 cat conftest.err >&5
14201 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14202 (exit $ac_status); } && {
14203 test -z "$ac_c_werror_flag" ||
14204 test ! -s conftest.err
14205 } && test -s conftest.$ac_objext; then
14206 ac_cv_type_signal=int
14208 $as_echo "$as_me: failed program was:" >&5
14209 sed 's/^/| /' conftest.$ac_ext >&5
14211 ac_cv_type_signal=void
14214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14216 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
14217 $as_echo "$ac_cv_type_signal" >&6; }
14219 cat >>confdefs.h <<_ACEOF
14220 #define RETSIGTYPE $ac_cv_type_signal
14225 if test $ac_cv_type_signal = void; then
14226 cat >>confdefs.h <<\_ACEOF
14227 #define SIGRETURN return
14231 cat >>confdefs.h <<\_ACEOF
14232 #define SIGRETURN return 0
14237 { $as_echo "$as_me:$LINENO: checking for struct sigcontext" >&5
14238 $as_echo_n "checking for struct sigcontext... " >&6; }
14239 cat >conftest.$ac_ext <<_ACEOF
14242 cat confdefs.h >>conftest.$ac_ext
14243 cat >>conftest.$ac_ext <<_ACEOF
14244 /* end confdefs.h. */
14246 #include <signal.h>
14249 struct sigcontext *scont;
14250 scont = (struct sigcontext *)0;
14261 rm -f conftest.$ac_objext
14262 if { (ac_try="$ac_compile"
14263 case "(($ac_try" in
14264 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14265 *) ac_try_echo
=$ac_try;;
14267 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14268 $as_echo "$ac_try_echo") >&5
14269 (eval "$ac_compile") 2>conftest.er1
14271 grep -v '^ *+' conftest.er1
>conftest.err
14273 cat conftest.err
>&5
14274 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14275 (exit $ac_status); } && {
14276 test -z "$ac_c_werror_flag" ||
14277 test ! -s conftest.err
14278 } && test -s conftest.
$ac_objext; then
14279 { $as_echo "$as_me:$LINENO: result: yes" >&5
14280 $as_echo "yes" >&6; }
14281 cat >>confdefs.h
<<\_ACEOF
14282 #define HAVE_SIGCONTEXT 1
14286 $as_echo "$as_me: failed program was:" >&5
14287 sed 's/^/| /' conftest.
$ac_ext >&5
14289 { $as_echo "$as_me:$LINENO: result: no" >&5
14290 $as_echo "no" >&6; }
14293 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14295 { $as_echo "$as_me:$LINENO: checking getcwd implementation is broken" >&5
14296 $as_echo_n "checking getcwd implementation is broken... " >&6; }
14297 if test "${vim_cv_getcwd_broken+set}" = set; then
14298 $as_echo_n "(cached) " >&6
14301 if test "$cross_compiling" = yes; then
14303 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_getcwd_broken'" >&5
14304 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_getcwd_broken'" >&2;}
14305 { (exit 1); exit 1; }; }
14308 cat >conftest.
$ac_ext <<_ACEOF
14310 #include "confdefs.h"
14311 #ifdef HAVE_UNISTD_H
14312 #include <unistd.h>
14314 char *dagger[] = { "IFS=pwd", 0 };
14318 extern char **environ;
14320 return getcwd(buffer, 500) ? 0 : 1;
14324 rm -f conftest
$ac_exeext
14325 if { (ac_try
="$ac_link"
14326 case "(($ac_try" in
14327 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14328 *) ac_try_echo=$ac_try;;
14330 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14331 $as_echo "$ac_try_echo") >&5
14332 (eval "$ac_link") 2>&5
14334 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14335 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14336 { (case "(($ac_try" in
14337 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14338 *) ac_try_echo
=$ac_try;;
14340 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14341 $as_echo "$ac_try_echo") >&5
14342 (eval "$ac_try") 2>&5
14344 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14345 (exit $ac_status); }; }; then
14347 vim_cv_getcwd_broken
=no
14350 $as_echo "$as_me: program exited with status $ac_status" >&5
14351 $as_echo "$as_me: failed program was:" >&5
14352 sed 's/^/| /' conftest.
$ac_ext >&5
14354 ( exit $ac_status )
14356 vim_cv_getcwd_broken
=yes
14359 rm -rf conftest.dSYM
14360 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
14366 { $as_echo "$as_me:$LINENO: result: $vim_cv_getcwd_broken" >&5
14367 $as_echo "$vim_cv_getcwd_broken" >&6; }
14369 if test "x$vim_cv_getcwd_broken" = "xyes" ; then
14370 cat >>confdefs.h
<<\_ACEOF
14371 #define BAD_GETCWD 1
14421 for ac_func
in bcmp fchdir fchown fsync getcwd getpseudotty \
14422 getpwnam getpwuid getrlimit gettimeofday getwd lstat memcmp \
14423 memset mkdtemp nanosleep opendir putenv qsort readlink
select setenv \
14424 setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \
14425 sigvec strcasecmp strerror strftime stricmp strncasecmp \
14426 strnicmp strpbrk strtol tgetent towlower towupper iswupper \
14427 usleep utime utimes
14429 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14430 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14431 $as_echo_n "checking for $ac_func... " >&6; }
14432 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14433 $as_echo_n "(cached) " >&6
14435 cat >conftest.
$ac_ext <<_ACEOF
14438 cat confdefs.h
>>conftest.
$ac_ext
14439 cat >>conftest.
$ac_ext <<_ACEOF
14440 /* end confdefs.h. */
14441 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14442 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14443 #define $ac_func innocuous_$ac_func
14445 /* System header to define __stub macros and hopefully few prototypes,
14446 which can conflict with char $ac_func (); below.
14447 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14448 <limits.h> exists even on freestanding compilers. */
14451 # include <limits.h>
14453 # include <assert.h>
14458 /* Override any GCC internal prototype to avoid an error.
14459 Use char because int might match the return type of a GCC
14460 builtin and then its argument prototype would still apply. */
14465 /* The GNU C library defines this for functions which it implements
14466 to always fail with ENOSYS. Some functions are actually named
14467 something starting with __ and the normal name is an alias. */
14468 #if defined __stub_$ac_func || defined __stub___$ac_func
14475 return $ac_func ();
14480 rm -f conftest.
$ac_objext conftest
$ac_exeext
14481 if { (ac_try
="$ac_link"
14482 case "(($ac_try" in
14483 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14484 *) ac_try_echo=$ac_try;;
14486 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14487 $as_echo "$ac_try_echo") >&5
14488 (eval "$ac_link") 2>conftest.er1
14490 grep -v '^ *+' conftest.er1 >conftest.err
14492 cat conftest.err >&5
14493 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14494 (exit $ac_status); } && {
14495 test -z "$ac_c_werror_flag" ||
14496 test ! -s conftest.err
14497 } && test -s conftest$ac_exeext && {
14498 test "$cross_compiling" = yes ||
14499 $as_test_x conftest$ac_exeext
14501 eval "$as_ac_var=yes"
14503 $as_echo "$as_me: failed program was:" >&5
14504 sed 's/^/| /' conftest.$ac_ext >&5
14506 eval "$as_ac_var=no"
14509 rm -rf conftest.dSYM
14510 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14511 conftest$ac_exeext conftest.$ac_ext
14513 ac_res=`eval 'as_val=${'$as_ac_var'}
14514 $as_echo "$as_val"'`
14515 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14516 $as_echo "$ac_res" >&6; }
14517 as_val=`eval 'as_val=${'$as_ac_var'}
14518 $as_echo "$as_val"'`
14519 if test "x$as_val" = x""yes; then
14520 cat >>confdefs.h <<_ACEOF
14521 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
14527 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
14528 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
14529 if test "${ac_cv_sys_largefile_source+set}" = set; then
14530 $as_echo_n "(cached) " >&6
14533 cat >conftest.$ac_ext <<_ACEOF
14536 cat confdefs.h >>conftest.$ac_ext
14537 cat >>conftest.$ac_ext <<_ACEOF
14538 /* end confdefs.h. */
14539 #include <sys/types.h> /* for off_t */
14544 int (*fp) (FILE *, off_t, int) = fseeko;
14545 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14550 rm -f conftest.$ac_objext conftest$ac_exeext
14551 if { (ac_try="$ac_link"
14552 case "(($ac_try" in
14553 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14554 *) ac_try_echo
=$ac_try;;
14556 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14557 $as_echo "$ac_try_echo") >&5
14558 (eval "$ac_link") 2>conftest.er1
14560 grep -v '^ *+' conftest.er1
>conftest.err
14562 cat conftest.err
>&5
14563 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14564 (exit $ac_status); } && {
14565 test -z "$ac_c_werror_flag" ||
14566 test ! -s conftest.err
14567 } && test -s conftest
$ac_exeext && {
14568 test "$cross_compiling" = yes ||
14569 $as_test_x conftest
$ac_exeext
14571 ac_cv_sys_largefile_source
=no
; break
14573 $as_echo "$as_me: failed program was:" >&5
14574 sed 's/^/| /' conftest.
$ac_ext >&5
14579 rm -rf conftest.dSYM
14580 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14581 conftest
$ac_exeext conftest.
$ac_ext
14582 cat >conftest.
$ac_ext <<_ACEOF
14585 cat confdefs.h
>>conftest.
$ac_ext
14586 cat >>conftest.
$ac_ext <<_ACEOF
14587 /* end confdefs.h. */
14588 #define _LARGEFILE_SOURCE 1
14589 #include <sys/types.h> /* for off_t */
14594 int (*fp) (FILE *, off_t, int) = fseeko;
14595 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14600 rm -f conftest.
$ac_objext conftest
$ac_exeext
14601 if { (ac_try
="$ac_link"
14602 case "(($ac_try" in
14603 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14604 *) ac_try_echo=$ac_try;;
14606 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14607 $as_echo "$ac_try_echo") >&5
14608 (eval "$ac_link") 2>conftest.er1
14610 grep -v '^ *+' conftest.er1 >conftest.err
14612 cat conftest.err >&5
14613 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14614 (exit $ac_status); } && {
14615 test -z "$ac_c_werror_flag" ||
14616 test ! -s conftest.err
14617 } && test -s conftest$ac_exeext && {
14618 test "$cross_compiling" = yes ||
14619 $as_test_x conftest$ac_exeext
14621 ac_cv_sys_largefile_source=1; break
14623 $as_echo "$as_me: failed program was:" >&5
14624 sed 's/^/| /' conftest.$ac_ext >&5
14629 rm -rf conftest.dSYM
14630 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14631 conftest$ac_exeext conftest.$ac_ext
14632 ac_cv_sys_largefile_source=unknown
14636 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
14637 $as_echo "$ac_cv_sys_largefile_source" >&6; }
14638 case $ac_cv_sys_largefile_source in #(
14641 cat >>confdefs.h <<_ACEOF
14642 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
14648 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
14649 # in glibc 2.1.3, but that breaks too many other things.
14650 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
14651 if test $ac_cv_sys_largefile_source != unknown; then
14653 cat >>confdefs.h <<\_ACEOF
14654 #define HAVE_FSEEKO 1
14660 # Check whether --enable-largefile was given.
14661 if test "${enable_largefile+set}" = set; then
14662 enableval=$enable_largefile;
14665 if test "$enable_largefile" != no; then
14667 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
14668 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
14669 if test "${ac_cv_sys_largefile_CC+set}" = set; then
14670 $as_echo_n "(cached) " >&6
14672 ac_cv_sys_largefile_CC=no
14673 if test "$GCC" != yes; then
14676 # IRIX 6.2 and later do not support large files by default,
14677 # so use the C compiler's -n32 option if that helps.
14678 cat >conftest.$ac_ext <<_ACEOF
14681 cat confdefs.h >>conftest.$ac_ext
14682 cat >>conftest.$ac_ext <<_ACEOF
14683 /* end confdefs.h. */
14684 #include <sys/types.h>
14685 /* Check that off_t can represent 2**63 - 1 correctly.
14686 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14687 since some C++ compilers masquerading as C compilers
14688 incorrectly reject 9223372036854775807. */
14689 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14690 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14691 && LARGE_OFF_T % 2147483647 == 1)
14701 rm -f conftest.$ac_objext
14702 if { (ac_try="$ac_compile"
14703 case "(($ac_try" in
14704 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14705 *) ac_try_echo
=$ac_try;;
14707 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14708 $as_echo "$ac_try_echo") >&5
14709 (eval "$ac_compile") 2>conftest.er1
14711 grep -v '^ *+' conftest.er1
>conftest.err
14713 cat conftest.err
>&5
14714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14715 (exit $ac_status); } && {
14716 test -z "$ac_c_werror_flag" ||
14717 test ! -s conftest.err
14718 } && test -s conftest.
$ac_objext; then
14721 $as_echo "$as_me: failed program was:" >&5
14722 sed 's/^/| /' conftest.
$ac_ext >&5
14727 rm -f core conftest.err conftest.
$ac_objext
14729 rm -f conftest.
$ac_objext
14730 if { (ac_try
="$ac_compile"
14731 case "(($ac_try" in
14732 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14733 *) ac_try_echo=$ac_try;;
14735 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14736 $as_echo "$ac_try_echo") >&5
14737 (eval "$ac_compile") 2>conftest.er1
14739 grep -v '^ *+' conftest.er1 >conftest.err
14741 cat conftest.err >&5
14742 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14743 (exit $ac_status); } && {
14744 test -z "$ac_c_werror_flag" ||
14745 test ! -s conftest.err
14746 } && test -s conftest.$ac_objext; then
14747 ac_cv_sys_largefile_CC=' -n32'; break
14749 $as_echo "$as_me: failed program was:" >&5
14750 sed 's/^/| /' conftest.$ac_ext >&5
14755 rm -f core conftest.err conftest.$ac_objext
14759 rm -f conftest.$ac_ext
14762 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
14763 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
14764 if test "$ac_cv_sys_largefile_CC" != no; then
14765 CC=$CC$ac_cv_sys_largefile_CC
14768 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
14769 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
14770 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
14771 $as_echo_n "(cached) " >&6
14774 cat >conftest.$ac_ext <<_ACEOF
14777 cat confdefs.h >>conftest.$ac_ext
14778 cat >>conftest.$ac_ext <<_ACEOF
14779 /* end confdefs.h. */
14780 #include <sys/types.h>
14781 /* Check that off_t can represent 2**63 - 1 correctly.
14782 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14783 since some C++ compilers masquerading as C compilers
14784 incorrectly reject 9223372036854775807. */
14785 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14786 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14787 && LARGE_OFF_T % 2147483647 == 1)
14797 rm -f conftest.$ac_objext
14798 if { (ac_try="$ac_compile"
14799 case "(($ac_try" in
14800 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14801 *) ac_try_echo
=$ac_try;;
14803 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14804 $as_echo "$ac_try_echo") >&5
14805 (eval "$ac_compile") 2>conftest.er1
14807 grep -v '^ *+' conftest.er1
>conftest.err
14809 cat conftest.err
>&5
14810 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14811 (exit $ac_status); } && {
14812 test -z "$ac_c_werror_flag" ||
14813 test ! -s conftest.err
14814 } && test -s conftest.
$ac_objext; then
14815 ac_cv_sys_file_offset_bits
=no
; break
14817 $as_echo "$as_me: failed program was:" >&5
14818 sed 's/^/| /' conftest.
$ac_ext >&5
14823 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14824 cat >conftest.
$ac_ext <<_ACEOF
14827 cat confdefs.h
>>conftest.
$ac_ext
14828 cat >>conftest.
$ac_ext <<_ACEOF
14829 /* end confdefs.h. */
14830 #define _FILE_OFFSET_BITS 64
14831 #include <sys/types.h>
14832 /* Check that off_t can represent 2**63 - 1 correctly.
14833 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14834 since some C++ compilers masquerading as C compilers
14835 incorrectly reject 9223372036854775807. */
14836 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14837 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14838 && LARGE_OFF_T % 2147483647 == 1)
14848 rm -f conftest.
$ac_objext
14849 if { (ac_try
="$ac_compile"
14850 case "(($ac_try" in
14851 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14852 *) ac_try_echo=$ac_try;;
14854 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14855 $as_echo "$ac_try_echo") >&5
14856 (eval "$ac_compile") 2>conftest.er1
14858 grep -v '^ *+' conftest.er1 >conftest.err
14860 cat conftest.err >&5
14861 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14862 (exit $ac_status); } && {
14863 test -z "$ac_c_werror_flag" ||
14864 test ! -s conftest.err
14865 } && test -s conftest.$ac_objext; then
14866 ac_cv_sys_file_offset_bits=64; break
14868 $as_echo "$as_me: failed program was:" >&5
14869 sed 's/^/| /' conftest.$ac_ext >&5
14874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14875 ac_cv_sys_file_offset_bits=unknown
14879 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
14880 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
14881 case $ac_cv_sys_file_offset_bits in #(
14884 cat >>confdefs.h <<_ACEOF
14885 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
14890 if test $ac_cv_sys_file_offset_bits = unknown; then
14891 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
14892 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
14893 if test "${ac_cv_sys_large_files+set}" = set; then
14894 $as_echo_n "(cached) " >&6
14897 cat >conftest.$ac_ext <<_ACEOF
14900 cat confdefs.h >>conftest.$ac_ext
14901 cat >>conftest.$ac_ext <<_ACEOF
14902 /* end confdefs.h. */
14903 #include <sys/types.h>
14904 /* Check that off_t can represent 2**63 - 1 correctly.
14905 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14906 since some C++ compilers masquerading as C compilers
14907 incorrectly reject 9223372036854775807. */
14908 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14909 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14910 && LARGE_OFF_T % 2147483647 == 1)
14920 rm -f conftest.$ac_objext
14921 if { (ac_try="$ac_compile"
14922 case "(($ac_try" in
14923 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14924 *) ac_try_echo
=$ac_try;;
14926 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14927 $as_echo "$ac_try_echo") >&5
14928 (eval "$ac_compile") 2>conftest.er1
14930 grep -v '^ *+' conftest.er1
>conftest.err
14932 cat conftest.err
>&5
14933 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14934 (exit $ac_status); } && {
14935 test -z "$ac_c_werror_flag" ||
14936 test ! -s conftest.err
14937 } && test -s conftest.
$ac_objext; then
14938 ac_cv_sys_large_files
=no
; break
14940 $as_echo "$as_me: failed program was:" >&5
14941 sed 's/^/| /' conftest.
$ac_ext >&5
14946 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14947 cat >conftest.
$ac_ext <<_ACEOF
14950 cat confdefs.h
>>conftest.
$ac_ext
14951 cat >>conftest.
$ac_ext <<_ACEOF
14952 /* end confdefs.h. */
14953 #define _LARGE_FILES 1
14954 #include <sys/types.h>
14955 /* Check that off_t can represent 2**63 - 1 correctly.
14956 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14957 since some C++ compilers masquerading as C compilers
14958 incorrectly reject 9223372036854775807. */
14959 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14960 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14961 && LARGE_OFF_T % 2147483647 == 1)
14971 rm -f conftest.
$ac_objext
14972 if { (ac_try
="$ac_compile"
14973 case "(($ac_try" in
14974 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14975 *) ac_try_echo=$ac_try;;
14977 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14978 $as_echo "$ac_try_echo") >&5
14979 (eval "$ac_compile") 2>conftest.er1
14981 grep -v '^ *+' conftest.er1 >conftest.err
14983 cat conftest.err >&5
14984 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14985 (exit $ac_status); } && {
14986 test -z "$ac_c_werror_flag" ||
14987 test ! -s conftest.err
14988 } && test -s conftest.$ac_objext; then
14989 ac_cv_sys_large_files=1; break
14991 $as_echo "$as_me: failed program was:" >&5
14992 sed 's/^/| /' conftest.$ac_ext >&5
14997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14998 ac_cv_sys_large_files=unknown
15002 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
15003 $as_echo "$ac_cv_sys_large_files" >&6; }
15004 case $ac_cv_sys_large_files in #(
15007 cat >>confdefs.h <<_ACEOF
15008 #define _LARGE_FILES $ac_cv_sys_large_files
15017 { $as_echo "$as_me:$LINENO: checking for st_blksize" >&5
15018 $as_echo_n "checking for st_blksize... " >&6; }
15019 cat >conftest.$ac_ext <<_ACEOF
15022 cat confdefs.h >>conftest.$ac_ext
15023 cat >>conftest.$ac_ext <<_ACEOF
15024 /* end confdefs.h. */
15025 #include <sys/types.h>
15026 #include <sys/stat.h>
15034 n = (int)st.st_blksize;
15039 rm -f conftest.$ac_objext
15040 if { (ac_try="$ac_compile"
15041 case "(($ac_try" in
15042 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15043 *) ac_try_echo
=$ac_try;;
15045 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15046 $as_echo "$ac_try_echo") >&5
15047 (eval "$ac_compile") 2>conftest.er1
15049 grep -v '^ *+' conftest.er1
>conftest.err
15051 cat conftest.err
>&5
15052 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15053 (exit $ac_status); } && {
15054 test -z "$ac_c_werror_flag" ||
15055 test ! -s conftest.err
15056 } && test -s conftest.
$ac_objext; then
15057 { $as_echo "$as_me:$LINENO: result: yes" >&5
15058 $as_echo "yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
15059 #define HAVE_ST_BLKSIZE 1
15063 $as_echo "$as_me: failed program was:" >&5
15064 sed 's/^/| /' conftest.
$ac_ext >&5
15066 { $as_echo "$as_me:$LINENO: result: no" >&5
15067 $as_echo "no" >&6; }
15070 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15072 { $as_echo "$as_me:$LINENO: checking whether stat() ignores a trailing slash" >&5
15073 $as_echo_n "checking whether stat() ignores a trailing slash... " >&6; }
15074 if test "${vim_cv_stat_ignores_slash+set}" = set; then
15075 $as_echo_n "(cached) " >&6
15078 if test "$cross_compiling" = yes; then
15080 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_stat_ignores_slash'" >&5
15081 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_stat_ignores_slash'" >&2;}
15082 { (exit 1); exit 1; }; }
15085 cat >conftest.
$ac_ext <<_ACEOF
15087 #include "confdefs.h"
15089 # include <stdlib.h>
15090 # include <stddef.h>
15092 #include <sys/types.h>
15093 #include <sys/stat.h>
15094 main() {struct stat st; exit(stat("configure/", &st) != 0); }
15097 rm -f conftest
$ac_exeext
15098 if { (ac_try
="$ac_link"
15099 case "(($ac_try" in
15100 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15101 *) ac_try_echo=$ac_try;;
15103 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15104 $as_echo "$ac_try_echo") >&5
15105 (eval "$ac_link") 2>&5
15107 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15108 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15109 { (case "(($ac_try" in
15110 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15111 *) ac_try_echo
=$ac_try;;
15113 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15114 $as_echo "$ac_try_echo") >&5
15115 (eval "$ac_try") 2>&5
15117 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15118 (exit $ac_status); }; }; then
15120 vim_cv_stat_ignores_slash
=yes
15123 $as_echo "$as_me: program exited with status $ac_status" >&5
15124 $as_echo "$as_me: failed program was:" >&5
15125 sed 's/^/| /' conftest.
$ac_ext >&5
15127 ( exit $ac_status )
15129 vim_cv_stat_ignores_slash
=no
15132 rm -rf conftest.dSYM
15133 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15139 { $as_echo "$as_me:$LINENO: result: $vim_cv_stat_ignores_slash" >&5
15140 $as_echo "$vim_cv_stat_ignores_slash" >&6; }
15142 if test "x$vim_cv_stat_ignores_slash" = "xyes" ; then
15143 cat >>confdefs.h
<<\_ACEOF
15144 #define STAT_IGNORES_SLASH 1
15149 { $as_echo "$as_me:$LINENO: checking for iconv_open()" >&5
15150 $as_echo_n "checking for iconv_open()... " >&6; }
15152 LIBS
="$LIBS -liconv"
15153 cat >conftest.
$ac_ext <<_ACEOF
15156 cat confdefs.h
>>conftest.
$ac_ext
15157 cat >>conftest.
$ac_ext <<_ACEOF
15158 /* end confdefs.h. */
15160 #ifdef HAVE_ICONV_H
15161 # include <iconv.h>
15167 iconv_open("fr", "to");
15172 rm -f conftest.
$ac_objext conftest
$ac_exeext
15173 if { (ac_try
="$ac_link"
15174 case "(($ac_try" in
15175 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15176 *) ac_try_echo=$ac_try;;
15178 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15179 $as_echo "$ac_try_echo") >&5
15180 (eval "$ac_link") 2>conftest.er1
15182 grep -v '^ *+' conftest.er1 >conftest.err
15184 cat conftest.err >&5
15185 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15186 (exit $ac_status); } && {
15187 test -z "$ac_c_werror_flag" ||
15188 test ! -s conftest.err
15189 } && test -s conftest$ac_exeext && {
15190 test "$cross_compiling" = yes ||
15191 $as_test_x conftest$ac_exeext
15193 { $as_echo "$as_me:$LINENO: result: yes; with -liconv" >&5
15194 $as_echo "yes; with -liconv" >&6; }; cat >>confdefs.h <<\_ACEOF
15195 #define HAVE_ICONV 1
15199 $as_echo "$as_me: failed program was:" >&5
15200 sed 's/^/| /' conftest.$ac_ext >&5
15203 cat >conftest.$ac_ext <<_ACEOF
15206 cat confdefs.h >>conftest.$ac_ext
15207 cat >>conftest.$ac_ext <<_ACEOF
15208 /* end confdefs.h. */
15210 #ifdef HAVE_ICONV_H
15211 # include <iconv.h>
15217 iconv_open("fr", "to");
15222 rm -f conftest.$ac_objext conftest$ac_exeext
15223 if { (ac_try="$ac_link"
15224 case "(($ac_try" in
15225 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15226 *) ac_try_echo
=$ac_try;;
15228 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15229 $as_echo "$ac_try_echo") >&5
15230 (eval "$ac_link") 2>conftest.er1
15232 grep -v '^ *+' conftest.er1
>conftest.err
15234 cat conftest.err
>&5
15235 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15236 (exit $ac_status); } && {
15237 test -z "$ac_c_werror_flag" ||
15238 test ! -s conftest.err
15239 } && test -s conftest
$ac_exeext && {
15240 test "$cross_compiling" = yes ||
15241 $as_test_x conftest
$ac_exeext
15243 { $as_echo "$as_me:$LINENO: result: yes" >&5
15244 $as_echo "yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
15245 #define HAVE_ICONV 1
15249 $as_echo "$as_me: failed program was:" >&5
15250 sed 's/^/| /' conftest.
$ac_ext >&5
15252 { $as_echo "$as_me:$LINENO: result: no" >&5
15253 $as_echo "no" >&6; }
15256 rm -rf conftest.dSYM
15257 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15258 conftest
$ac_exeext conftest.
$ac_ext
15261 rm -rf conftest.dSYM
15262 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15263 conftest
$ac_exeext conftest.
$ac_ext
15266 { $as_echo "$as_me:$LINENO: checking for nl_langinfo(CODESET)" >&5
15267 $as_echo_n "checking for nl_langinfo(CODESET)... " >&6; }
15268 cat >conftest.
$ac_ext <<_ACEOF
15271 cat confdefs.h
>>conftest.
$ac_ext
15272 cat >>conftest.
$ac_ext <<_ACEOF
15273 /* end confdefs.h. */
15275 #ifdef HAVE_LANGINFO_H
15276 # include <langinfo.h>
15282 char *cs = nl_langinfo(CODESET);
15287 rm -f conftest.
$ac_objext conftest
$ac_exeext
15288 if { (ac_try
="$ac_link"
15289 case "(($ac_try" in
15290 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15291 *) ac_try_echo=$ac_try;;
15293 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15294 $as_echo "$ac_try_echo") >&5
15295 (eval "$ac_link") 2>conftest.er1
15297 grep -v '^ *+' conftest.er1 >conftest.err
15299 cat conftest.err >&5
15300 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15301 (exit $ac_status); } && {
15302 test -z "$ac_c_werror_flag" ||
15303 test ! -s conftest.err
15304 } && test -s conftest$ac_exeext && {
15305 test "$cross_compiling" = yes ||
15306 $as_test_x conftest$ac_exeext
15308 { $as_echo "$as_me:$LINENO: result: yes" >&5
15309 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15310 #define HAVE_NL_LANGINFO_CODESET 1
15314 $as_echo "$as_me: failed program was:" >&5
15315 sed 's/^/| /' conftest.$ac_ext >&5
15317 { $as_echo "$as_me:$LINENO: result: no" >&5
15318 $as_echo "no" >&6; }
15321 rm -rf conftest.dSYM
15322 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15323 conftest$ac_exeext conftest.$ac_ext
15326 { $as_echo "$as_me:$LINENO: checking for strtod in -lm" >&5
15327 $as_echo_n "checking for strtod in -lm... " >&6; }
15328 if test "${ac_cv_lib_m_strtod+set}" = set; then
15329 $as_echo_n "(cached) " >&6
15331 ac_check_lib_save_LIBS=$LIBS
15333 cat >conftest.$ac_ext <<_ACEOF
15336 cat confdefs.h >>conftest.$ac_ext
15337 cat >>conftest.$ac_ext <<_ACEOF
15338 /* end confdefs.h. */
15340 /* Override any GCC internal prototype to avoid an error.
15341 Use char because int might match the return type of a GCC
15342 builtin and then its argument prototype would still apply. */
15355 rm -f conftest.$ac_objext conftest$ac_exeext
15356 if { (ac_try="$ac_link"
15357 case "(($ac_try" in
15358 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15359 *) ac_try_echo
=$ac_try;;
15361 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15362 $as_echo "$ac_try_echo") >&5
15363 (eval "$ac_link") 2>conftest.er1
15365 grep -v '^ *+' conftest.er1
>conftest.err
15367 cat conftest.err
>&5
15368 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15369 (exit $ac_status); } && {
15370 test -z "$ac_c_werror_flag" ||
15371 test ! -s conftest.err
15372 } && test -s conftest
$ac_exeext && {
15373 test "$cross_compiling" = yes ||
15374 $as_test_x conftest
$ac_exeext
15376 ac_cv_lib_m_strtod
=yes
15378 $as_echo "$as_me: failed program was:" >&5
15379 sed 's/^/| /' conftest.
$ac_ext >&5
15381 ac_cv_lib_m_strtod
=no
15384 rm -rf conftest.dSYM
15385 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15386 conftest
$ac_exeext conftest.
$ac_ext
15387 LIBS
=$ac_check_lib_save_LIBS
15389 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_strtod" >&5
15390 $as_echo "$ac_cv_lib_m_strtod" >&6; }
15391 if test "x$ac_cv_lib_m_strtod" = x
""yes; then
15392 cat >>confdefs.h
<<_ACEOF
15393 #define HAVE_LIBM 1
15400 { $as_echo "$as_me:$LINENO: checking for strtod() and other floating point functions" >&5
15401 $as_echo_n "checking for strtod() and other floating point functions... " >&6; }
15402 cat >conftest.
$ac_ext <<_ACEOF
15405 cat confdefs.h
>>conftest.
$ac_ext
15406 cat >>conftest.
$ac_ext <<_ACEOF
15407 /* end confdefs.h. */
15413 # include <stdlib.h>
15414 # include <stddef.h>
15421 d = strtod("1.1", &s);
15426 d = pow(1.11, 2.22);
15436 rm -f conftest.
$ac_objext conftest
$ac_exeext
15437 if { (ac_try
="$ac_link"
15438 case "(($ac_try" in
15439 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15440 *) ac_try_echo=$ac_try;;
15442 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15443 $as_echo "$ac_try_echo") >&5
15444 (eval "$ac_link") 2>conftest.er1
15446 grep -v '^ *+' conftest.er1 >conftest.err
15448 cat conftest.err >&5
15449 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15450 (exit $ac_status); } && {
15451 test -z "$ac_c_werror_flag" ||
15452 test ! -s conftest.err
15453 } && test -s conftest$ac_exeext && {
15454 test "$cross_compiling" = yes ||
15455 $as_test_x conftest$ac_exeext
15457 { $as_echo "$as_me:$LINENO: result: yes" >&5
15458 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15459 #define HAVE_FLOAT_FUNCS 1
15463 $as_echo "$as_me: failed program was:" >&5
15464 sed 's/^/| /' conftest.$ac_ext >&5
15466 { $as_echo "$as_me:$LINENO: result: no" >&5
15467 $as_echo "no" >&6; }
15470 rm -rf conftest.dSYM
15471 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15472 conftest$ac_exeext conftest.$ac_ext
15474 { $as_echo "$as_me:$LINENO: checking --disable-acl argument" >&5
15475 $as_echo_n "checking --disable-acl argument... " >&6; }
15476 # Check whether --enable-acl was given.
15477 if test "${enable_acl+set}" = set; then
15478 enableval=$enable_acl;
15483 if test "$enable_acl" = "yes"; then
15484 { $as_echo "$as_me:$LINENO: result: no" >&5
15485 $as_echo "no" >&6; }
15486 { $as_echo "$as_me:$LINENO: checking for acl_get_file in -lposix1e" >&5
15487 $as_echo_n "checking for acl_get_file in -lposix1e... " >&6; }
15488 if test "${ac_cv_lib_posix1e_acl_get_file+set}" = set; then
15489 $as_echo_n "(cached) " >&6
15491 ac_check_lib_save_LIBS=$LIBS
15492 LIBS="-lposix1e $LIBS"
15493 cat >conftest.$ac_ext <<_ACEOF
15496 cat confdefs.h >>conftest.$ac_ext
15497 cat >>conftest.$ac_ext <<_ACEOF
15498 /* end confdefs.h. */
15500 /* Override any GCC internal prototype to avoid an error.
15501 Use char because int might match the return type of a GCC
15502 builtin and then its argument prototype would still apply. */
15506 char acl_get_file ();
15510 return acl_get_file ();
15515 rm -f conftest.$ac_objext conftest$ac_exeext
15516 if { (ac_try="$ac_link"
15517 case "(($ac_try" in
15518 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15519 *) ac_try_echo
=$ac_try;;
15521 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15522 $as_echo "$ac_try_echo") >&5
15523 (eval "$ac_link") 2>conftest.er1
15525 grep -v '^ *+' conftest.er1
>conftest.err
15527 cat conftest.err
>&5
15528 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15529 (exit $ac_status); } && {
15530 test -z "$ac_c_werror_flag" ||
15531 test ! -s conftest.err
15532 } && test -s conftest
$ac_exeext && {
15533 test "$cross_compiling" = yes ||
15534 $as_test_x conftest
$ac_exeext
15536 ac_cv_lib_posix1e_acl_get_file
=yes
15538 $as_echo "$as_me: failed program was:" >&5
15539 sed 's/^/| /' conftest.
$ac_ext >&5
15541 ac_cv_lib_posix1e_acl_get_file
=no
15544 rm -rf conftest.dSYM
15545 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15546 conftest
$ac_exeext conftest.
$ac_ext
15547 LIBS
=$ac_check_lib_save_LIBS
15549 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix1e_acl_get_file" >&5
15550 $as_echo "$ac_cv_lib_posix1e_acl_get_file" >&6; }
15551 if test "x$ac_cv_lib_posix1e_acl_get_file" = x
""yes; then
15552 LIBS
="$LIBS -lposix1e"
15554 { $as_echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
15555 $as_echo_n "checking for acl_get_file in -lacl... " >&6; }
15556 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
15557 $as_echo_n "(cached) " >&6
15559 ac_check_lib_save_LIBS
=$LIBS
15561 cat >conftest.
$ac_ext <<_ACEOF
15564 cat confdefs.h
>>conftest.
$ac_ext
15565 cat >>conftest.
$ac_ext <<_ACEOF
15566 /* end confdefs.h. */
15568 /* Override any GCC internal prototype to avoid an error.
15569 Use char because int might match the return type of a GCC
15570 builtin and then its argument prototype would still apply. */
15574 char acl_get_file ();
15578 return acl_get_file ();
15583 rm -f conftest.
$ac_objext conftest
$ac_exeext
15584 if { (ac_try
="$ac_link"
15585 case "(($ac_try" in
15586 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15587 *) ac_try_echo=$ac_try;;
15589 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15590 $as_echo "$ac_try_echo") >&5
15591 (eval "$ac_link") 2>conftest.er1
15593 grep -v '^ *+' conftest.er1 >conftest.err
15595 cat conftest.err >&5
15596 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15597 (exit $ac_status); } && {
15598 test -z "$ac_c_werror_flag" ||
15599 test ! -s conftest.err
15600 } && test -s conftest$ac_exeext && {
15601 test "$cross_compiling" = yes ||
15602 $as_test_x conftest$ac_exeext
15604 ac_cv_lib_acl_acl_get_file=yes
15606 $as_echo "$as_me: failed program was:" >&5
15607 sed 's/^/| /' conftest.$ac_ext >&5
15609 ac_cv_lib_acl_acl_get_file=no
15612 rm -rf conftest.dSYM
15613 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15614 conftest$ac_exeext conftest.$ac_ext
15615 LIBS=$ac_check_lib_save_LIBS
15617 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
15618 $as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
15619 if test "x$ac_cv_lib_acl_acl_get_file" = x""yes; then
15621 { $as_echo "$as_me:$LINENO: checking for fgetxattr in -lattr" >&5
15622 $as_echo_n "checking for fgetxattr in -lattr... " >&6; }
15623 if test "${ac_cv_lib_attr_fgetxattr+set}" = set; then
15624 $as_echo_n "(cached) " >&6
15626 ac_check_lib_save_LIBS=$LIBS
15627 LIBS="-lattr $LIBS"
15628 cat >conftest.$ac_ext <<_ACEOF
15631 cat confdefs.h >>conftest.$ac_ext
15632 cat >>conftest.$ac_ext <<_ACEOF
15633 /* end confdefs.h. */
15635 /* Override any GCC internal prototype to avoid an error.
15636 Use char because int might match the return type of a GCC
15637 builtin and then its argument prototype would still apply. */
15645 return fgetxattr ();
15650 rm -f conftest.$ac_objext conftest$ac_exeext
15651 if { (ac_try="$ac_link"
15652 case "(($ac_try" in
15653 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15654 *) ac_try_echo
=$ac_try;;
15656 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15657 $as_echo "$ac_try_echo") >&5
15658 (eval "$ac_link") 2>conftest.er1
15660 grep -v '^ *+' conftest.er1
>conftest.err
15662 cat conftest.err
>&5
15663 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15664 (exit $ac_status); } && {
15665 test -z "$ac_c_werror_flag" ||
15666 test ! -s conftest.err
15667 } && test -s conftest
$ac_exeext && {
15668 test "$cross_compiling" = yes ||
15669 $as_test_x conftest
$ac_exeext
15671 ac_cv_lib_attr_fgetxattr
=yes
15673 $as_echo "$as_me: failed program was:" >&5
15674 sed 's/^/| /' conftest.
$ac_ext >&5
15676 ac_cv_lib_attr_fgetxattr
=no
15679 rm -rf conftest.dSYM
15680 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15681 conftest
$ac_exeext conftest.
$ac_ext
15682 LIBS
=$ac_check_lib_save_LIBS
15684 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_attr_fgetxattr" >&5
15685 $as_echo "$ac_cv_lib_attr_fgetxattr" >&6; }
15686 if test "x$ac_cv_lib_attr_fgetxattr" = x
""yes; then
15687 LIBS
="$LIBS -lattr"
15695 { $as_echo "$as_me:$LINENO: checking for POSIX ACL support" >&5
15696 $as_echo_n "checking for POSIX ACL support... " >&6; }
15697 cat >conftest.
$ac_ext <<_ACEOF
15700 cat confdefs.h
>>conftest.
$ac_ext
15701 cat >>conftest.
$ac_ext <<_ACEOF
15702 /* end confdefs.h. */
15704 #include <sys/types.h>
15705 #ifdef HAVE_SYS_ACL_H
15706 # include <sys/acl.h>
15712 acl = acl_get_file("foo", ACL_TYPE_ACCESS);
15713 acl_set_file("foo", ACL_TYPE_ACCESS, acl);
15719 rm -f conftest.
$ac_objext conftest
$ac_exeext
15720 if { (ac_try
="$ac_link"
15721 case "(($ac_try" in
15722 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15723 *) ac_try_echo=$ac_try;;
15725 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15726 $as_echo "$ac_try_echo") >&5
15727 (eval "$ac_link") 2>conftest.er1
15729 grep -v '^ *+' conftest.er1 >conftest.err
15731 cat conftest.err >&5
15732 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15733 (exit $ac_status); } && {
15734 test -z "$ac_c_werror_flag" ||
15735 test ! -s conftest.err
15736 } && test -s conftest$ac_exeext && {
15737 test "$cross_compiling" = yes ||
15738 $as_test_x conftest$ac_exeext
15740 { $as_echo "$as_me:$LINENO: result: yes" >&5
15741 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15742 #define HAVE_POSIX_ACL 1
15746 $as_echo "$as_me: failed program was:" >&5
15747 sed 's/^/| /' conftest.$ac_ext >&5
15749 { $as_echo "$as_me:$LINENO: result: no" >&5
15750 $as_echo "no" >&6; }
15753 rm -rf conftest.dSYM
15754 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15755 conftest$ac_exeext conftest.$ac_ext
15757 { $as_echo "$as_me:$LINENO: checking for Solaris ACL support" >&5
15758 $as_echo_n "checking for Solaris ACL support... " >&6; }
15759 cat >conftest.$ac_ext <<_ACEOF
15762 cat confdefs.h >>conftest.$ac_ext
15763 cat >>conftest.$ac_ext <<_ACEOF
15764 /* end confdefs.h. */
15766 #ifdef HAVE_SYS_ACL_H
15767 # include <sys/acl.h>
15772 acl("foo", GETACLCNT, 0, NULL);
15778 rm -f conftest.$ac_objext conftest$ac_exeext
15779 if { (ac_try="$ac_link"
15780 case "(($ac_try" in
15781 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15782 *) ac_try_echo
=$ac_try;;
15784 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15785 $as_echo "$ac_try_echo") >&5
15786 (eval "$ac_link") 2>conftest.er1
15788 grep -v '^ *+' conftest.er1
>conftest.err
15790 cat conftest.err
>&5
15791 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15792 (exit $ac_status); } && {
15793 test -z "$ac_c_werror_flag" ||
15794 test ! -s conftest.err
15795 } && test -s conftest
$ac_exeext && {
15796 test "$cross_compiling" = yes ||
15797 $as_test_x conftest
$ac_exeext
15799 { $as_echo "$as_me:$LINENO: result: yes" >&5
15800 $as_echo "yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
15801 #define HAVE_SOLARIS_ACL 1
15805 $as_echo "$as_me: failed program was:" >&5
15806 sed 's/^/| /' conftest.
$ac_ext >&5
15808 { $as_echo "$as_me:$LINENO: result: no" >&5
15809 $as_echo "no" >&6; }
15812 rm -rf conftest.dSYM
15813 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15814 conftest
$ac_exeext conftest.
$ac_ext
15816 { $as_echo "$as_me:$LINENO: checking for AIX ACL support" >&5
15817 $as_echo_n "checking for AIX ACL support... " >&6; }
15818 cat >conftest.
$ac_ext <<_ACEOF
15821 cat confdefs.h
>>conftest.
$ac_ext
15822 cat >>conftest.
$ac_ext <<_ACEOF
15823 /* end confdefs.h. */
15826 # include <stdlib.h>
15827 # include <stddef.h>
15829 #ifdef HAVE_SYS_ACL_H
15830 # include <sys/acl.h>
15832 #ifdef HAVE_SYS_ACCESS_H
15833 # include <sys/access.h>
15835 #define _ALL_SOURCE
15837 #include <sys/stat.h>
15840 struct acl *aclent;
15844 aclsize = sizeof(struct acl);
15845 aclent = (void *)malloc(aclsize);
15846 statacl("foo", STX_NORMAL, aclent, aclsize);
15852 rm -f conftest.
$ac_objext conftest
$ac_exeext
15853 if { (ac_try
="$ac_link"
15854 case "(($ac_try" in
15855 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15856 *) ac_try_echo=$ac_try;;
15858 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15859 $as_echo "$ac_try_echo") >&5
15860 (eval "$ac_link") 2>conftest.er1
15862 grep -v '^ *+' conftest.er1 >conftest.err
15864 cat conftest.err >&5
15865 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15866 (exit $ac_status); } && {
15867 test -z "$ac_c_werror_flag" ||
15868 test ! -s conftest.err
15869 } && test -s conftest$ac_exeext && {
15870 test "$cross_compiling" = yes ||
15871 $as_test_x conftest$ac_exeext
15873 { $as_echo "$as_me:$LINENO: result: yes" >&5
15874 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15875 #define HAVE_AIX_ACL 1
15879 $as_echo "$as_me: failed program was:" >&5
15880 sed 's/^/| /' conftest.$ac_ext >&5
15882 { $as_echo "$as_me:$LINENO: result: no" >&5
15883 $as_echo "no" >&6; }
15886 rm -rf conftest.dSYM
15887 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15888 conftest$ac_exeext conftest.$ac_ext
15890 { $as_echo "$as_me:$LINENO: result: yes" >&5
15891 $as_echo "yes" >&6; }
15894 { $as_echo "$as_me:$LINENO: checking --disable-gpm argument" >&5
15895 $as_echo_n "checking --disable-gpm argument... " >&6; }
15896 # Check whether --enable-gpm was given.
15897 if test "${enable_gpm+set}" = set; then
15898 enableval=$enable_gpm;
15904 if test "$enable_gpm" = "yes"; then
15905 { $as_echo "$as_me:$LINENO: result: no" >&5
15906 $as_echo "no" >&6; }
15907 { $as_echo "$as_me:$LINENO: checking for gpm" >&5
15908 $as_echo_n "checking for gpm... " >&6; }
15909 if test "${vi_cv_have_gpm+set}" = set; then
15910 $as_echo_n "(cached) " >&6
15912 olibs="$LIBS" ; LIBS="-lgpm"
15913 cat >conftest.$ac_ext <<_ACEOF
15916 cat confdefs.h >>conftest.$ac_ext
15917 cat >>conftest.$ac_ext <<_ACEOF
15918 /* end confdefs.h. */
15920 #include <linux/keyboard.h>
15924 Gpm_GetLibVersion(NULL);
15929 rm -f conftest.$ac_objext conftest$ac_exeext
15930 if { (ac_try="$ac_link"
15931 case "(($ac_try" in
15932 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15933 *) ac_try_echo
=$ac_try;;
15935 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15936 $as_echo "$ac_try_echo") >&5
15937 (eval "$ac_link") 2>conftest.er1
15939 grep -v '^ *+' conftest.er1
>conftest.err
15941 cat conftest.err
>&5
15942 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15943 (exit $ac_status); } && {
15944 test -z "$ac_c_werror_flag" ||
15945 test ! -s conftest.err
15946 } && test -s conftest
$ac_exeext && {
15947 test "$cross_compiling" = yes ||
15948 $as_test_x conftest
$ac_exeext
15952 $as_echo "$as_me: failed program was:" >&5
15953 sed 's/^/| /' conftest.
$ac_ext >&5
15958 rm -rf conftest.dSYM
15959 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15960 conftest
$ac_exeext conftest.
$ac_ext
15964 { $as_echo "$as_me:$LINENO: result: $vi_cv_have_gpm" >&5
15965 $as_echo "$vi_cv_have_gpm" >&6; }
15966 if test $vi_cv_have_gpm = yes; then
15968 cat >>confdefs.h
<<\_ACEOF
15974 { $as_echo "$as_me:$LINENO: result: yes" >&5
15975 $as_echo "yes" >&6; }
15978 { $as_echo "$as_me:$LINENO: checking --disable-sysmouse argument" >&5
15979 $as_echo_n "checking --disable-sysmouse argument... " >&6; }
15980 # Check whether --enable-sysmouse was given.
15981 if test "${enable_sysmouse+set}" = set; then
15982 enableval
=$enable_sysmouse;
15984 enable_sysmouse
="yes"
15988 if test "$enable_sysmouse" = "yes"; then
15989 { $as_echo "$as_me:$LINENO: result: no" >&5
15990 $as_echo "no" >&6; }
15991 { $as_echo "$as_me:$LINENO: checking for sysmouse" >&5
15992 $as_echo_n "checking for sysmouse... " >&6; }
15993 if test "${vi_cv_have_sysmouse+set}" = set; then
15994 $as_echo_n "(cached) " >&6
15996 cat >conftest.
$ac_ext <<_ACEOF
15999 cat confdefs.h
>>conftest.
$ac_ext
16000 cat >>conftest.
$ac_ext <<_ACEOF
16001 /* end confdefs.h. */
16002 #include <sys/consio.h>
16003 #include <signal.h>
16004 #include <sys/fbio.h>
16008 struct mouse_info mouse;
16009 mouse.operation = MOUSE_MODE;
16010 mouse.operation = MOUSE_SHOW;
16011 mouse.u.mode.mode = 0;
16012 mouse.u.mode.signal = SIGUSR2;
16017 rm -f conftest.
$ac_objext conftest
$ac_exeext
16018 if { (ac_try
="$ac_link"
16019 case "(($ac_try" in
16020 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16021 *) ac_try_echo=$ac_try;;
16023 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16024 $as_echo "$ac_try_echo") >&5
16025 (eval "$ac_link") 2>conftest.er1
16027 grep -v '^ *+' conftest.er1 >conftest.err
16029 cat conftest.err >&5
16030 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16031 (exit $ac_status); } && {
16032 test -z "$ac_c_werror_flag" ||
16033 test ! -s conftest.err
16034 } && test -s conftest$ac_exeext && {
16035 test "$cross_compiling" = yes ||
16036 $as_test_x conftest$ac_exeext
16038 vi_cv_have_sysmouse=yes
16040 $as_echo "$as_me: failed program was:" >&5
16041 sed 's/^/| /' conftest.$ac_ext >&5
16043 vi_cv_have_sysmouse=no
16046 rm -rf conftest.dSYM
16047 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16048 conftest$ac_exeext conftest.$ac_ext
16051 { $as_echo "$as_me:$LINENO: result: $vi_cv_have_sysmouse" >&5
16052 $as_echo "$vi_cv_have_sysmouse" >&6; }
16053 if test $vi_cv_have_sysmouse = yes; then
16054 cat >>confdefs.h <<\_ACEOF
16055 #define HAVE_SYSMOUSE 1
16060 { $as_echo "$as_me:$LINENO: result: yes" >&5
16061 $as_echo "yes" >&6; }
16064 { $as_echo "$as_me:$LINENO: checking for FD_CLOEXEC" >&5
16065 $as_echo_n "checking for FD_CLOEXEC... " >&6; }
16066 cat >conftest.$ac_ext <<_ACEOF
16069 cat confdefs.h >>conftest.$ac_ext
16070 cat >>conftest.$ac_ext <<_ACEOF
16071 /* end confdefs.h. */
16073 # include <fcntl.h>
16078 int flag = FD_CLOEXEC;
16083 rm -f conftest.$ac_objext
16084 if { (ac_try="$ac_compile"
16085 case "(($ac_try" in
16086 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16087 *) ac_try_echo
=$ac_try;;
16089 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16090 $as_echo "$ac_try_echo") >&5
16091 (eval "$ac_compile") 2>conftest.er1
16093 grep -v '^ *+' conftest.er1
>conftest.err
16095 cat conftest.err
>&5
16096 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16097 (exit $ac_status); } && {
16098 test -z "$ac_c_werror_flag" ||
16099 test ! -s conftest.err
16100 } && test -s conftest.
$ac_objext; then
16101 { $as_echo "$as_me:$LINENO: result: yes" >&5
16102 $as_echo "yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
16103 #define HAVE_FD_CLOEXEC 1
16107 $as_echo "$as_me: failed program was:" >&5
16108 sed 's/^/| /' conftest.
$ac_ext >&5
16110 { $as_echo "$as_me:$LINENO: result: not usable" >&5
16111 $as_echo "not usable" >&6; }
16114 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16116 { $as_echo "$as_me:$LINENO: checking for rename" >&5
16117 $as_echo_n "checking for rename... " >&6; }
16118 cat >conftest.
$ac_ext <<_ACEOF
16121 cat confdefs.h
>>conftest.
$ac_ext
16122 cat >>conftest.
$ac_ext <<_ACEOF
16123 /* end confdefs.h. */
16128 rename("this", "that")
16133 rm -f conftest.
$ac_objext conftest
$ac_exeext
16134 if { (ac_try
="$ac_link"
16135 case "(($ac_try" in
16136 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16137 *) ac_try_echo=$ac_try;;
16139 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16140 $as_echo "$ac_try_echo") >&5
16141 (eval "$ac_link") 2>conftest.er1
16143 grep -v '^ *+' conftest.er1 >conftest.err
16145 cat conftest.err >&5
16146 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16147 (exit $ac_status); } && {
16148 test -z "$ac_c_werror_flag" ||
16149 test ! -s conftest.err
16150 } && test -s conftest$ac_exeext && {
16151 test "$cross_compiling" = yes ||
16152 $as_test_x conftest$ac_exeext
16154 { $as_echo "$as_me:$LINENO: result: yes" >&5
16155 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
16156 #define HAVE_RENAME 1
16160 $as_echo "$as_me: failed program was:" >&5
16161 sed 's/^/| /' conftest.$ac_ext >&5
16163 { $as_echo "$as_me:$LINENO: result: no" >&5
16164 $as_echo "no" >&6; }
16167 rm -rf conftest.dSYM
16168 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16169 conftest$ac_exeext conftest.$ac_ext
16171 { $as_echo "$as_me:$LINENO: checking for sysctl" >&5
16172 $as_echo_n "checking for sysctl... " >&6; }
16173 cat >conftest.$ac_ext <<_ACEOF
16176 cat confdefs.h >>conftest.$ac_ext
16177 cat >>conftest.$ac_ext <<_ACEOF
16178 /* end confdefs.h. */
16179 #include <sys/types.h>
16180 #include <sys/sysctl.h>
16188 mib[1] = HW_USERMEM;
16190 (void)sysctl(mib, 2, &r, &len, (void *)0, (size_t)0);
16196 rm -f conftest.$ac_objext
16197 if { (ac_try="$ac_compile"
16198 case "(($ac_try" in
16199 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16200 *) ac_try_echo
=$ac_try;;
16202 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16203 $as_echo "$ac_try_echo") >&5
16204 (eval "$ac_compile") 2>conftest.er1
16206 grep -v '^ *+' conftest.er1
>conftest.err
16208 cat conftest.err
>&5
16209 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16210 (exit $ac_status); } && {
16211 test -z "$ac_c_werror_flag" ||
16212 test ! -s conftest.err
16213 } && test -s conftest.
$ac_objext; then
16214 { $as_echo "$as_me:$LINENO: result: yes" >&5
16215 $as_echo "yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
16216 #define HAVE_SYSCTL 1
16220 $as_echo "$as_me: failed program was:" >&5
16221 sed 's/^/| /' conftest.
$ac_ext >&5
16223 { $as_echo "$as_me:$LINENO: result: not usable" >&5
16224 $as_echo "not usable" >&6; }
16227 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16229 { $as_echo "$as_me:$LINENO: checking for sysinfo" >&5
16230 $as_echo_n "checking for sysinfo... " >&6; }
16231 cat >conftest.
$ac_ext <<_ACEOF
16234 cat confdefs.h
>>conftest.
$ac_ext
16235 cat >>conftest.
$ac_ext <<_ACEOF
16236 /* end confdefs.h. */
16237 #include <sys/types.h>
16238 #include <sys/sysinfo.h>
16242 struct sysinfo sinfo;
16245 (void)sysinfo(&sinfo);
16246 t = sinfo.totalram;
16252 rm -f conftest.
$ac_objext
16253 if { (ac_try
="$ac_compile"
16254 case "(($ac_try" in
16255 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16256 *) ac_try_echo=$ac_try;;
16258 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16259 $as_echo "$ac_try_echo") >&5
16260 (eval "$ac_compile") 2>conftest.er1
16262 grep -v '^ *+' conftest.er1 >conftest.err
16264 cat conftest.err >&5
16265 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16266 (exit $ac_status); } && {
16267 test -z "$ac_c_werror_flag" ||
16268 test ! -s conftest.err
16269 } && test -s conftest.$ac_objext; then
16270 { $as_echo "$as_me:$LINENO: result: yes" >&5
16271 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
16272 #define HAVE_SYSINFO 1
16276 $as_echo "$as_me: failed program was:" >&5
16277 sed 's/^/| /' conftest.$ac_ext >&5
16279 { $as_echo "$as_me:$LINENO: result: not usable" >&5
16280 $as_echo "not usable" >&6; }
16283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16285 { $as_echo "$as_me:$LINENO: checking for sysinfo.mem_unit" >&5
16286 $as_echo_n "checking for sysinfo.mem_unit... " >&6; }
16287 cat >conftest.$ac_ext <<_ACEOF
16290 cat confdefs.h >>conftest.$ac_ext
16291 cat >>conftest.$ac_ext <<_ACEOF
16292 /* end confdefs.h. */
16293 #include <sys/types.h>
16294 #include <sys/sysinfo.h>
16298 struct sysinfo sinfo;
16299 sinfo.mem_unit = 1;
16305 rm -f conftest.$ac_objext
16306 if { (ac_try="$ac_compile"
16307 case "(($ac_try" in
16308 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16309 *) ac_try_echo
=$ac_try;;
16311 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16312 $as_echo "$ac_try_echo") >&5
16313 (eval "$ac_compile") 2>conftest.er1
16315 grep -v '^ *+' conftest.er1
>conftest.err
16317 cat conftest.err
>&5
16318 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16319 (exit $ac_status); } && {
16320 test -z "$ac_c_werror_flag" ||
16321 test ! -s conftest.err
16322 } && test -s conftest.
$ac_objext; then
16323 { $as_echo "$as_me:$LINENO: result: yes" >&5
16324 $as_echo "yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
16325 #define HAVE_SYSINFO_MEM_UNIT 1
16329 $as_echo "$as_me: failed program was:" >&5
16330 sed 's/^/| /' conftest.
$ac_ext >&5
16332 { $as_echo "$as_me:$LINENO: result: no" >&5
16333 $as_echo "no" >&6; }
16336 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16338 { $as_echo "$as_me:$LINENO: checking for sysconf" >&5
16339 $as_echo_n "checking for sysconf... " >&6; }
16340 cat >conftest.
$ac_ext <<_ACEOF
16343 cat confdefs.h
>>conftest.
$ac_ext
16344 cat >>conftest.
$ac_ext <<_ACEOF
16345 /* end confdefs.h. */
16346 #include <unistd.h>
16350 (void)sysconf(_SC_PAGESIZE);
16351 (void)sysconf(_SC_PHYS_PAGES);
16357 rm -f conftest.
$ac_objext
16358 if { (ac_try
="$ac_compile"
16359 case "(($ac_try" in
16360 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16361 *) ac_try_echo=$ac_try;;
16363 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16364 $as_echo "$ac_try_echo") >&5
16365 (eval "$ac_compile") 2>conftest.er1
16367 grep -v '^ *+' conftest.er1 >conftest.err
16369 cat conftest.err >&5
16370 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16371 (exit $ac_status); } && {
16372 test -z "$ac_c_werror_flag" ||
16373 test ! -s conftest.err
16374 } && test -s conftest.$ac_objext; then
16375 { $as_echo "$as_me:$LINENO: result: yes" >&5
16376 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
16377 #define HAVE_SYSCONF 1
16381 $as_echo "$as_me: failed program was:" >&5
16382 sed 's/^/| /' conftest.$ac_ext >&5
16384 { $as_echo "$as_me:$LINENO: result: not usable" >&5
16385 $as_echo "not usable" >&6; }
16388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16391 { $as_echo "$as_me:$LINENO: checking size of int" >&5
16392 $as_echo_n "checking size of int... " >&6; }
16393 if test "${ac_cv_sizeof_int+set}" = set; then
16394 $as_echo_n "(cached) " >&6
16396 if test "$cross_compiling" = yes; then
16397 { { $as_echo "$as_me:$LINENO: error: failed to compile test program" >&5
16398 $as_echo "$as_me: error: failed to compile test program" >&2;}
16399 { (exit 1); exit 1; }; }
16401 cat >conftest.$ac_ext <<_ACEOF
16404 cat confdefs.h >>conftest.$ac_ext
16405 cat >>conftest.$ac_ext <<_ACEOF
16406 /* end confdefs.h. */
16410 # include <stdlib.h>
16411 # include <stddef.h>
16415 FILE *f=fopen("conftestval", "w");
16417 fprintf(f, "%d\n", (int)sizeof(int));
16421 rm -f conftest$ac_exeext
16422 if { (ac_try="$ac_link"
16423 case "(($ac_try" in
16424 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16425 *) ac_try_echo
=$ac_try;;
16427 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16428 $as_echo "$ac_try_echo") >&5
16429 (eval "$ac_link") 2>&5
16431 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16432 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
16433 { (case "(($ac_try" in
16434 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16435 *) ac_try_echo=$ac_try;;
16437 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16438 $as_echo "$ac_try_echo") >&5
16439 (eval "$ac_try") 2>&5
16441 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16442 (exit $ac_status); }; }; then
16443 ac_cv_sizeof_int=`cat conftestval
`
16445 $as_echo "$as_me: program exited with status $ac_status" >&5
16446 $as_echo "$as_me: failed program was:" >&5
16447 sed 's/^/| /' conftest.$ac_ext >&5
16449 ( exit $ac_status )
16452 rm -rf conftest.dSYM
16453 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16459 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
16460 $as_echo "$ac_cv_sizeof_int" >&6; }
16461 cat >>confdefs.h <<_ACEOF
16462 #define SIZEOF_INT $ac_cv_sizeof_int
16468 #include "confdefs.h"
16469 #ifdef HAVE_STRING_H
16470 # include <string.h>
16473 # include <stdlib.h>
16474 # include <stddef.h>
16478 strcpy(buf, "abcdefghi");
16479 mch_memmove(buf, buf + 2, 3);
16480 if (strncmp(buf, "ababcf", 6))
16482 strcpy(buf, "abcdefghi");
16483 mch_memmove(buf + 2, buf, 3);
16484 if (strncmp(buf, "cdedef", 6))
16486 exit(0); /* libc version works properly. */
16489 { $as_echo "$as_me:$LINENO: checking whether memmove handles overlaps" >&5
16490 $as_echo_n "checking whether memmove handles overlaps... " >&6; }
16491 if test "${vim_cv_memmove_handles_overlap+set}" = set; then
16492 $as_echo_n "(cached) " >&6
16495 if test "$cross_compiling" = yes; then
16497 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_memmove_handles_overlap'" >&5
16498 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_memmove_handles_overlap'" >&2;}
16499 { (exit 1); exit 1; }; }
16502 cat >conftest.$ac_ext <<_ACEOF
16503 #define mch_memmove(s,d,l) memmove(d,s,l) $bcopy_test_prog
16505 rm -f conftest$ac_exeext
16506 if { (ac_try="$ac_link"
16507 case "(($ac_try" in
16508 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16509 *) ac_try_echo
=$ac_try;;
16511 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16512 $as_echo "$ac_try_echo") >&5
16513 (eval "$ac_link") 2>&5
16515 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16516 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
16517 { (case "(($ac_try" in
16518 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16519 *) ac_try_echo=$ac_try;;
16521 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16522 $as_echo "$ac_try_echo") >&5
16523 (eval "$ac_try") 2>&5
16525 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16526 (exit $ac_status); }; }; then
16528 vim_cv_memmove_handles_overlap=yes
16531 $as_echo "$as_me: program exited with status $ac_status" >&5
16532 $as_echo "$as_me: failed program was:" >&5
16533 sed 's/^/| /' conftest.$ac_ext >&5
16535 ( exit $ac_status )
16537 vim_cv_memmove_handles_overlap=no
16540 rm -rf conftest.dSYM
16541 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16547 { $as_echo "$as_me:$LINENO: result: $vim_cv_memmove_handles_overlap" >&5
16548 $as_echo "$vim_cv_memmove_handles_overlap" >&6; }
16550 if test "x$vim_cv_memmove_handles_overlap" = "xyes" ; then
16551 cat >>confdefs.h <<\_ACEOF
16552 #define USEMEMMOVE 1
16556 { $as_echo "$as_me:$LINENO: checking whether bcopy handles overlaps" >&5
16557 $as_echo_n "checking whether bcopy handles overlaps... " >&6; }
16558 if test "${vim_cv_bcopy_handles_overlap+set}" = set; then
16559 $as_echo_n "(cached) " >&6
16562 if test "$cross_compiling" = yes; then
16564 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_bcopy_handles_overlap'" >&5
16565 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_bcopy_handles_overlap'" >&2;}
16566 { (exit 1); exit 1; }; }
16569 cat >conftest.$ac_ext <<_ACEOF
16570 #define mch_bcopy(s,d,l) bcopy(d,s,l) $bcopy_test_prog
16572 rm -f conftest$ac_exeext
16573 if { (ac_try="$ac_link"
16574 case "(($ac_try" in
16575 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16576 *) ac_try_echo
=$ac_try;;
16578 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16579 $as_echo "$ac_try_echo") >&5
16580 (eval "$ac_link") 2>&5
16582 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16583 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
16584 { (case "(($ac_try" in
16585 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16586 *) ac_try_echo=$ac_try;;
16588 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16589 $as_echo "$ac_try_echo") >&5
16590 (eval "$ac_try") 2>&5
16592 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16593 (exit $ac_status); }; }; then
16595 vim_cv_bcopy_handles_overlap=yes
16598 $as_echo "$as_me: program exited with status $ac_status" >&5
16599 $as_echo "$as_me: failed program was:" >&5
16600 sed 's/^/| /' conftest.$ac_ext >&5
16602 ( exit $ac_status )
16604 vim_cv_bcopy_handles_overlap=no
16607 rm -rf conftest.dSYM
16608 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16614 { $as_echo "$as_me:$LINENO: result: $vim_cv_bcopy_handles_overlap" >&5
16615 $as_echo "$vim_cv_bcopy_handles_overlap" >&6; }
16617 if test "x$vim_cv_bcopy_handles_overlap" = "xyes" ; then
16618 cat >>confdefs.h <<\_ACEOF
16623 { $as_echo "$as_me:$LINENO: checking whether memcpy handles overlaps" >&5
16624 $as_echo_n "checking whether memcpy handles overlaps... " >&6; }
16625 if test "${vim_cv_memcpy_handles_overlap+set}" = set; then
16626 $as_echo_n "(cached) " >&6
16629 if test "$cross_compiling" = yes; then
16631 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_memcpy_handles_overlap'" >&5
16632 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_memcpy_handles_overlap'" >&2;}
16633 { (exit 1); exit 1; }; }
16636 cat >conftest.$ac_ext <<_ACEOF
16637 #define mch_memcpy(s,d,l) memcpy(d,s,l) $bcopy_test_prog
16639 rm -f conftest$ac_exeext
16640 if { (ac_try="$ac_link"
16641 case "(($ac_try" in
16642 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16643 *) ac_try_echo
=$ac_try;;
16645 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16646 $as_echo "$ac_try_echo") >&5
16647 (eval "$ac_link") 2>&5
16649 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16650 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
16651 { (case "(($ac_try" in
16652 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16653 *) ac_try_echo=$ac_try;;
16655 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16656 $as_echo "$ac_try_echo") >&5
16657 (eval "$ac_try") 2>&5
16659 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16660 (exit $ac_status); }; }; then
16662 vim_cv_memcpy_handles_overlap=yes
16665 $as_echo "$as_me: program exited with status $ac_status" >&5
16666 $as_echo "$as_me: failed program was:" >&5
16667 sed 's/^/| /' conftest.$ac_ext >&5
16669 ( exit $ac_status )
16671 vim_cv_memcpy_handles_overlap=no
16674 rm -rf conftest.dSYM
16675 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16681 { $as_echo "$as_me:$LINENO: result: $vim_cv_memcpy_handles_overlap" >&5
16682 $as_echo "$vim_cv_memcpy_handles_overlap" >&6; }
16684 if test "x$vim_cv_memcpy_handles_overlap" = "xyes" ; then
16685 cat >>confdefs.h <<\_ACEOF
16686 #define USEMEMCPY 1
16695 if test "$enable_multibyte" = "yes"; then
16696 cflags_save=$CFLAGS
16697 ldflags_save=$LDFLAGS
16698 if test "x$x_includes" != "xNONE" ; then
16699 CFLAGS="$CFLAGS -I$x_includes"
16700 LDFLAGS="$X_LIBS $LDFLAGS -lX11"
16701 { $as_echo "$as_me:$LINENO: checking whether X_LOCALE needed" >&5
16702 $as_echo_n "checking whether X_LOCALE needed... " >&6; }
16703 cat >conftest.$ac_ext <<_ACEOF
16706 cat confdefs.h >>conftest.$ac_ext
16707 cat >>conftest.$ac_ext <<_ACEOF
16708 /* end confdefs.h. */
16709 #include <X11/Xlocale.h>
16718 rm -f conftest.$ac_objext
16719 if { (ac_try="$ac_compile"
16720 case "(($ac_try" in
16721 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16722 *) ac_try_echo
=$ac_try;;
16724 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16725 $as_echo "$ac_try_echo") >&5
16726 (eval "$ac_compile") 2>conftest.er1
16728 grep -v '^ *+' conftest.er1
>conftest.err
16730 cat conftest.err
>&5
16731 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16732 (exit $ac_status); } && {
16733 test -z "$ac_c_werror_flag" ||
16734 test ! -s conftest.err
16735 } && test -s conftest.
$ac_objext; then
16736 cat >conftest.
$ac_ext <<_ACEOF
16739 cat confdefs.h
>>conftest.
$ac_ext
16740 cat >>conftest.
$ac_ext <<_ACEOF
16741 /* end confdefs.h. */
16743 /* Override any GCC internal prototype to avoid an error.
16744 Use char because int might match the return type of a GCC
16745 builtin and then its argument prototype would still apply. */
16749 char _Xsetlocale ();
16753 return _Xsetlocale ();
16758 rm -f conftest.
$ac_objext conftest
$ac_exeext
16759 if { (ac_try
="$ac_link"
16760 case "(($ac_try" in
16761 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16762 *) ac_try_echo=$ac_try;;
16764 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16765 $as_echo "$ac_try_echo") >&5
16766 (eval "$ac_link") 2>conftest.er1
16768 grep -v '^ *+' conftest.er1 >conftest.err
16770 cat conftest.err >&5
16771 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16772 (exit $ac_status); } && {
16773 test -z "$ac_c_werror_flag" ||
16774 test ! -s conftest.err
16775 } && test -s conftest$ac_exeext && {
16776 test "$cross_compiling" = yes ||
16777 $as_test_x conftest$ac_exeext
16779 { $as_echo "$as_me:$LINENO: result: yes" >&5
16780 $as_echo "yes" >&6; }
16781 cat >>confdefs.h <<\_ACEOF
16786 $as_echo "$as_me: failed program was:" >&5
16787 sed 's/^/| /' conftest.$ac_ext >&5
16789 { $as_echo "$as_me:$LINENO: result: no" >&5
16790 $as_echo "no" >&6; }
16793 rm -rf conftest.dSYM
16794 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16795 conftest$ac_exeext conftest.$ac_ext
16797 $as_echo "$as_me: failed program was:" >&5
16798 sed 's/^/| /' conftest.$ac_ext >&5
16800 { $as_echo "$as_me:$LINENO: result: no" >&5
16801 $as_echo "no" >&6; }
16804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16806 CFLAGS=$cflags_save
16807 LDFLAGS=$ldflags_save
16810 { $as_echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
16811 $as_echo_n "checking for _xpg4_setrunelocale in -lxpg4... " >&6; }
16812 if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
16813 $as_echo_n "(cached) " >&6
16815 ac_check_lib_save_LIBS=$LIBS
16816 LIBS="-lxpg4 $LIBS"
16817 cat >conftest.$ac_ext <<_ACEOF
16820 cat confdefs.h >>conftest.$ac_ext
16821 cat >>conftest.$ac_ext <<_ACEOF
16822 /* end confdefs.h. */
16824 /* Override any GCC internal prototype to avoid an error.
16825 Use char because int might match the return type of a GCC
16826 builtin and then its argument prototype would still apply. */
16830 char _xpg4_setrunelocale ();
16834 return _xpg4_setrunelocale ();
16839 rm -f conftest.$ac_objext conftest$ac_exeext
16840 if { (ac_try="$ac_link"
16841 case "(($ac_try" in
16842 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16843 *) ac_try_echo
=$ac_try;;
16845 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16846 $as_echo "$ac_try_echo") >&5
16847 (eval "$ac_link") 2>conftest.er1
16849 grep -v '^ *+' conftest.er1
>conftest.err
16851 cat conftest.err
>&5
16852 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16853 (exit $ac_status); } && {
16854 test -z "$ac_c_werror_flag" ||
16855 test ! -s conftest.err
16856 } && test -s conftest
$ac_exeext && {
16857 test "$cross_compiling" = yes ||
16858 $as_test_x conftest
$ac_exeext
16860 ac_cv_lib_xpg4__xpg4_setrunelocale
=yes
16862 $as_echo "$as_me: failed program was:" >&5
16863 sed 's/^/| /' conftest.
$ac_ext >&5
16865 ac_cv_lib_xpg4__xpg4_setrunelocale
=no
16868 rm -rf conftest.dSYM
16869 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16870 conftest
$ac_exeext conftest.
$ac_ext
16871 LIBS
=$ac_check_lib_save_LIBS
16873 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
16874 $as_echo "$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6; }
16875 if test "x$ac_cv_lib_xpg4__xpg4_setrunelocale" = x
""yes; then
16876 LIBS
="$LIBS -lxpg4"
16880 { $as_echo "$as_me:$LINENO: checking how to create tags" >&5
16881 $as_echo_n "checking how to create tags... " >&6; }
16882 test -f tags
&& mv tags tags.save
16883 if (eval ctags
--version /dev
/null |
grep Exuberant
) < /dev
/null
1>&5 2>&1; then
16884 TAGPRG
="ctags -I INIT+ --fields=+S"
16887 (eval etags
/dev
/null
) < /dev
/null
1>&5 2>&1 && TAGPRG
="etags"
16888 (eval etags
-c /dev
/null
) < /dev
/null
1>&5 2>&1 && TAGPRG
="etags -c"
16889 (eval ctags
/dev
/null
) < /dev
/null
1>&5 2>&1 && TAGPRG
="ctags"
16890 (eval ctags
-t /dev
/null
) < /dev
/null
1>&5 2>&1 && TAGPRG
="ctags -t"
16891 (eval ctags
-ts /dev
/null
) < /dev
/null
1>&5 2>&1 && TAGPRG
="ctags -ts"
16892 (eval ctags
-tvs /dev
/null
) < /dev
/null
1>&5 2>&1 && TAGPRG
="ctags -tvs"
16893 (eval ctags
-i+m
/dev
/null
) < /dev
/null
1>&5 2>&1 && TAGPRG
="ctags -i+m"
16895 test -f tags.save
&& mv tags.save tags
16896 { $as_echo "$as_me:$LINENO: result: $TAGPRG" >&5
16897 $as_echo "$TAGPRG" >&6; }
16899 { $as_echo "$as_me:$LINENO: checking how to run man with a section nr" >&5
16900 $as_echo_n "checking how to run man with a section nr... " >&6; }
16902 (eval MANPAGER
=cat PAGER
=cat man
-s 2 read) < /dev
/null
> /dev
/null
2>&5 && MANDEF
="man -s"
16903 { $as_echo "$as_me:$LINENO: result: $MANDEF" >&5
16904 $as_echo "$MANDEF" >&6; }
16905 if test "$MANDEF" = "man -s"; then
16906 cat >>confdefs.h
<<\_ACEOF
16912 { $as_echo "$as_me:$LINENO: checking --disable-nls argument" >&5
16913 $as_echo_n "checking --disable-nls argument... " >&6; }
16914 # Check whether --enable-nls was given.
16915 if test "${enable_nls+set}" = set; then
16916 enableval
=$enable_nls;
16922 if test "$enable_nls" = "yes"; then
16923 { $as_echo "$as_me:$LINENO: result: no" >&5
16924 $as_echo "no" >&6; }
16926 INSTALL_LANGS
=install-languages
16928 INSTALL_TOOL_LANGS
=install-tool-languages
16931 # Extract the first word of "msgfmt", so it can be a program name with args.
16932 set dummy msgfmt
; ac_word
=$2
16933 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16934 $as_echo_n "checking for $ac_word... " >&6; }
16935 if test "${ac_cv_prog_MSGFMT+set}" = set; then
16936 $as_echo_n "(cached) " >&6
16938 if test -n "$MSGFMT"; then
16939 ac_cv_prog_MSGFMT
="$MSGFMT" # Let the user override the test.
16941 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16942 for as_dir
in $PATH
16945 test -z "$as_dir" && as_dir
=.
16946 for ac_exec_ext
in '' $ac_executable_extensions; do
16947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16948 ac_cv_prog_MSGFMT
="msgfmt"
16949 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16958 MSGFMT
=$ac_cv_prog_MSGFMT
16959 if test -n "$MSGFMT"; then
16960 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
16961 $as_echo "$MSGFMT" >&6; }
16963 { $as_echo "$as_me:$LINENO: result: no" >&5
16964 $as_echo "no" >&6; }
16968 { $as_echo "$as_me:$LINENO: checking for NLS" >&5
16969 $as_echo_n "checking for NLS... " >&6; }
16970 if test -f po
/Makefile
; then
16972 if test -n "$MSGFMT"; then
16973 cat >conftest.
$ac_ext <<_ACEOF
16976 cat confdefs.h
>>conftest.
$ac_ext
16977 cat >>conftest.
$ac_ext <<_ACEOF
16978 /* end confdefs.h. */
16979 #include <libintl.h>
16988 rm -f conftest.
$ac_objext conftest
$ac_exeext
16989 if { (ac_try
="$ac_link"
16990 case "(($ac_try" in
16991 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16992 *) ac_try_echo=$ac_try;;
16994 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16995 $as_echo "$ac_try_echo") >&5
16996 (eval "$ac_link") 2>conftest.er1
16998 grep -v '^ *+' conftest.er1 >conftest.err
17000 cat conftest.err >&5
17001 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17002 (exit $ac_status); } && {
17003 test -z "$ac_c_werror_flag" ||
17004 test ! -s conftest.err
17005 } && test -s conftest$ac_exeext && {
17006 test "$cross_compiling" = yes ||
17007 $as_test_x conftest$ac_exeext
17009 { $as_echo "$as_me:$LINENO: result: gettext() works" >&5
17010 $as_echo "gettext() works" >&6; }; have_gettext="yes"
17012 $as_echo "$as_me: failed program was:" >&5
17013 sed 's/^/| /' conftest.$ac_ext >&5
17016 LIBS="$LIBS -lintl"
17017 cat >conftest.$ac_ext <<_ACEOF
17020 cat confdefs.h >>conftest.$ac_ext
17021 cat >>conftest.$ac_ext <<_ACEOF
17022 /* end confdefs.h. */
17023 #include <libintl.h>
17032 rm -f conftest.$ac_objext conftest$ac_exeext
17033 if { (ac_try="$ac_link"
17034 case "(($ac_try" in
17035 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17036 *) ac_try_echo
=$ac_try;;
17038 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17039 $as_echo "$ac_try_echo") >&5
17040 (eval "$ac_link") 2>conftest.er1
17042 grep -v '^ *+' conftest.er1
>conftest.err
17044 cat conftest.err
>&5
17045 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17046 (exit $ac_status); } && {
17047 test -z "$ac_c_werror_flag" ||
17048 test ! -s conftest.err
17049 } && test -s conftest
$ac_exeext && {
17050 test "$cross_compiling" = yes ||
17051 $as_test_x conftest
$ac_exeext
17053 { $as_echo "$as_me:$LINENO: result: gettext() works with -lintl" >&5
17054 $as_echo "gettext() works with -lintl" >&6; }; have_gettext
="yes"
17056 $as_echo "$as_me: failed program was:" >&5
17057 sed 's/^/| /' conftest.
$ac_ext >&5
17059 { $as_echo "$as_me:$LINENO: result: gettext() doesn't work" >&5
17060 $as_echo "gettext() doesn't work" >&6; };
17064 rm -rf conftest.dSYM
17065 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17066 conftest
$ac_exeext conftest.
$ac_ext
17069 rm -rf conftest.dSYM
17070 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17071 conftest
$ac_exeext conftest.
$ac_ext
17073 { $as_echo "$as_me:$LINENO: result: msgfmt not found - disabled" >&5
17074 $as_echo "msgfmt not found - disabled" >&6; };
17076 if test $have_gettext = "yes"; then
17077 cat >>confdefs.h
<<\_ACEOF
17078 #define HAVE_GETTEXT 1
17084 for ac_func
in bind_textdomain_codeset
17086 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17087 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17088 $as_echo_n "checking for $ac_func... " >&6; }
17089 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17090 $as_echo_n "(cached) " >&6
17092 cat >conftest.
$ac_ext <<_ACEOF
17095 cat confdefs.h
>>conftest.
$ac_ext
17096 cat >>conftest.
$ac_ext <<_ACEOF
17097 /* end confdefs.h. */
17098 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17099 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17100 #define $ac_func innocuous_$ac_func
17102 /* System header to define __stub macros and hopefully few prototypes,
17103 which can conflict with char $ac_func (); below.
17104 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17105 <limits.h> exists even on freestanding compilers. */
17108 # include <limits.h>
17110 # include <assert.h>
17115 /* Override any GCC internal prototype to avoid an error.
17116 Use char because int might match the return type of a GCC
17117 builtin and then its argument prototype would still apply. */
17122 /* The GNU C library defines this for functions which it implements
17123 to always fail with ENOSYS. Some functions are actually named
17124 something starting with __ and the normal name is an alias. */
17125 #if defined __stub_$ac_func || defined __stub___$ac_func
17132 return $ac_func ();
17137 rm -f conftest.
$ac_objext conftest
$ac_exeext
17138 if { (ac_try
="$ac_link"
17139 case "(($ac_try" in
17140 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17141 *) ac_try_echo=$ac_try;;
17143 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17144 $as_echo "$ac_try_echo") >&5
17145 (eval "$ac_link") 2>conftest.er1
17147 grep -v '^ *+' conftest.er1 >conftest.err
17149 cat conftest.err >&5
17150 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17151 (exit $ac_status); } && {
17152 test -z "$ac_c_werror_flag" ||
17153 test ! -s conftest.err
17154 } && test -s conftest$ac_exeext && {
17155 test "$cross_compiling" = yes ||
17156 $as_test_x conftest$ac_exeext
17158 eval "$as_ac_var=yes"
17160 $as_echo "$as_me: failed program was:" >&5
17161 sed 's/^/| /' conftest.$ac_ext >&5
17163 eval "$as_ac_var=no"
17166 rm -rf conftest.dSYM
17167 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17168 conftest$ac_exeext conftest.$ac_ext
17170 ac_res=`eval 'as_val=${'$as_ac_var'}
17171 $as_echo "$as_val"'`
17172 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17173 $as_echo "$ac_res" >&6; }
17174 as_val=`eval 'as_val=${'$as_ac_var'}
17175 $as_echo "$as_val"'`
17176 if test "x$as_val" = x""yes; then
17177 cat >>confdefs.h <<_ACEOF
17178 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
17184 { $as_echo "$as_me:$LINENO: checking for _nl_msg_cat_cntr" >&5
17185 $as_echo_n "checking for _nl_msg_cat_cntr... " >&6; }
17186 cat >conftest.$ac_ext <<_ACEOF
17189 cat confdefs.h >>conftest.$ac_ext
17190 cat >>conftest.$ac_ext <<_ACEOF
17191 /* end confdefs.h. */
17192 #include <libintl.h>
17193 extern int _nl_msg_cat_cntr;
17197 ++_nl_msg_cat_cntr;
17202 rm -f conftest.$ac_objext conftest$ac_exeext
17203 if { (ac_try="$ac_link"
17204 case "(($ac_try" in
17205 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17206 *) ac_try_echo
=$ac_try;;
17208 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17209 $as_echo "$ac_try_echo") >&5
17210 (eval "$ac_link") 2>conftest.er1
17212 grep -v '^ *+' conftest.er1
>conftest.err
17214 cat conftest.err
>&5
17215 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17216 (exit $ac_status); } && {
17217 test -z "$ac_c_werror_flag" ||
17218 test ! -s conftest.err
17219 } && test -s conftest
$ac_exeext && {
17220 test "$cross_compiling" = yes ||
17221 $as_test_x conftest
$ac_exeext
17223 { $as_echo "$as_me:$LINENO: result: yes" >&5
17224 $as_echo "yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
17225 #define HAVE_NL_MSG_CAT_CNTR 1
17229 $as_echo "$as_me: failed program was:" >&5
17230 sed 's/^/| /' conftest.
$ac_ext >&5
17232 { $as_echo "$as_me:$LINENO: result: no" >&5
17233 $as_echo "no" >&6; }
17236 rm -rf conftest.dSYM
17237 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17238 conftest
$ac_exeext conftest.
$ac_ext
17241 { $as_echo "$as_me:$LINENO: result: no \"po/Makefile\" - disabled" >&5
17242 $as_echo "no \"po/Makefile\" - disabled" >&6; };
17245 { $as_echo "$as_me:$LINENO: result: yes" >&5
17246 $as_echo "yes" >&6; }
17249 if test "${ac_cv_header_dlfcn_h+set}" = set; then
17250 { $as_echo "$as_me:$LINENO: checking for dlfcn.h" >&5
17251 $as_echo_n "checking for dlfcn.h... " >&6; }
17252 if test "${ac_cv_header_dlfcn_h+set}" = set; then
17253 $as_echo_n "(cached) " >&6
17255 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
17256 $as_echo "$ac_cv_header_dlfcn_h" >&6; }
17258 # Is the header compilable?
17259 { $as_echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
17260 $as_echo_n "checking dlfcn.h usability... " >&6; }
17261 cat >conftest.
$ac_ext <<_ACEOF
17264 cat confdefs.h
>>conftest.
$ac_ext
17265 cat >>conftest.
$ac_ext <<_ACEOF
17266 /* end confdefs.h. */
17267 $ac_includes_default
17270 rm -f conftest.
$ac_objext
17271 if { (ac_try
="$ac_compile"
17272 case "(($ac_try" in
17273 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17274 *) ac_try_echo=$ac_try;;
17276 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17277 $as_echo "$ac_try_echo") >&5
17278 (eval "$ac_compile") 2>conftest.er1
17280 grep -v '^ *+' conftest.er1 >conftest.err
17282 cat conftest.err >&5
17283 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17284 (exit $ac_status); } && {
17285 test -z "$ac_c_werror_flag" ||
17286 test ! -s conftest.err
17287 } && test -s conftest.$ac_objext; then
17288 ac_header_compiler=yes
17290 $as_echo "$as_me: failed program was:" >&5
17291 sed 's/^/| /' conftest.$ac_ext >&5
17293 ac_header_compiler=no
17296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17297 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17298 $as_echo "$ac_header_compiler" >&6; }
17300 # Is the header present?
17301 { $as_echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
17302 $as_echo_n "checking dlfcn.h presence... " >&6; }
17303 cat >conftest.$ac_ext <<_ACEOF
17306 cat confdefs.h >>conftest.$ac_ext
17307 cat >>conftest.$ac_ext <<_ACEOF
17308 /* end confdefs.h. */
17311 if { (ac_try="$ac_cpp conftest.$ac_ext"
17312 case "(($ac_try" in
17313 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17314 *) ac_try_echo
=$ac_try;;
17316 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17317 $as_echo "$ac_try_echo") >&5
17318 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17320 grep -v '^ *+' conftest.er1
>conftest.err
17322 cat conftest.err
>&5
17323 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17324 (exit $ac_status); } >/dev
/null
&& {
17325 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17326 test ! -s conftest.err
17328 ac_header_preproc
=yes
17330 $as_echo "$as_me: failed program was:" >&5
17331 sed 's/^/| /' conftest.
$ac_ext >&5
17333 ac_header_preproc
=no
17336 rm -f conftest.err conftest.
$ac_ext
17337 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17338 $as_echo "$ac_header_preproc" >&6; }
17340 # So? What about this header?
17341 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17343 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
17344 $as_echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17345 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5
17346 $as_echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;}
17347 ac_header_preproc
=yes
17350 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
17351 $as_echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
17352 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5
17353 $as_echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;}
17354 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5
17355 $as_echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;}
17356 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5
17357 $as_echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;}
17358 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
17359 $as_echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
17360 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5
17361 $as_echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;}
17365 { $as_echo "$as_me:$LINENO: checking for dlfcn.h" >&5
17366 $as_echo_n "checking for dlfcn.h... " >&6; }
17367 if test "${ac_cv_header_dlfcn_h+set}" = set; then
17368 $as_echo_n "(cached) " >&6
17370 ac_cv_header_dlfcn_h
=$ac_header_preproc
17372 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
17373 $as_echo "$ac_cv_header_dlfcn_h" >&6; }
17376 if test "x$ac_cv_header_dlfcn_h" = x
""yes; then
17379 if test "${ac_cv_header_dl_h+set}" = set; then
17380 { $as_echo "$as_me:$LINENO: checking for dl.h" >&5
17381 $as_echo_n "checking for dl.h... " >&6; }
17382 if test "${ac_cv_header_dl_h+set}" = set; then
17383 $as_echo_n "(cached) " >&6
17385 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5
17386 $as_echo "$ac_cv_header_dl_h" >&6; }
17388 # Is the header compilable?
17389 { $as_echo "$as_me:$LINENO: checking dl.h usability" >&5
17390 $as_echo_n "checking dl.h usability... " >&6; }
17391 cat >conftest.
$ac_ext <<_ACEOF
17394 cat confdefs.h
>>conftest.
$ac_ext
17395 cat >>conftest.
$ac_ext <<_ACEOF
17396 /* end confdefs.h. */
17397 $ac_includes_default
17400 rm -f conftest.
$ac_objext
17401 if { (ac_try
="$ac_compile"
17402 case "(($ac_try" in
17403 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17404 *) ac_try_echo=$ac_try;;
17406 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17407 $as_echo "$ac_try_echo") >&5
17408 (eval "$ac_compile") 2>conftest.er1
17410 grep -v '^ *+' conftest.er1 >conftest.err
17412 cat conftest.err >&5
17413 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17414 (exit $ac_status); } && {
17415 test -z "$ac_c_werror_flag" ||
17416 test ! -s conftest.err
17417 } && test -s conftest.$ac_objext; then
17418 ac_header_compiler=yes
17420 $as_echo "$as_me: failed program was:" >&5
17421 sed 's/^/| /' conftest.$ac_ext >&5
17423 ac_header_compiler=no
17426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17427 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17428 $as_echo "$ac_header_compiler" >&6; }
17430 # Is the header present?
17431 { $as_echo "$as_me:$LINENO: checking dl.h presence" >&5
17432 $as_echo_n "checking dl.h presence... " >&6; }
17433 cat >conftest.$ac_ext <<_ACEOF
17436 cat confdefs.h >>conftest.$ac_ext
17437 cat >>conftest.$ac_ext <<_ACEOF
17438 /* end confdefs.h. */
17441 if { (ac_try="$ac_cpp conftest.$ac_ext"
17442 case "(($ac_try" in
17443 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17444 *) ac_try_echo
=$ac_try;;
17446 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17447 $as_echo "$ac_try_echo") >&5
17448 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17450 grep -v '^ *+' conftest.er1
>conftest.err
17452 cat conftest.err
>&5
17453 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17454 (exit $ac_status); } >/dev
/null
&& {
17455 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17456 test ! -s conftest.err
17458 ac_header_preproc
=yes
17460 $as_echo "$as_me: failed program was:" >&5
17461 sed 's/^/| /' conftest.
$ac_ext >&5
17463 ac_header_preproc
=no
17466 rm -f conftest.err conftest.
$ac_ext
17467 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17468 $as_echo "$ac_header_preproc" >&6; }
17470 # So? What about this header?
17471 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17473 { $as_echo "$as_me:$LINENO: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&5
17474 $as_echo "$as_me: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17475 { $as_echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the compiler's result" >&5
17476 $as_echo "$as_me: WARNING: dl.h: proceeding with the compiler's result" >&2;}
17477 ac_header_preproc
=yes
17480 { $as_echo "$as_me:$LINENO: WARNING: dl.h: present but cannot be compiled" >&5
17481 $as_echo "$as_me: WARNING: dl.h: present but cannot be compiled" >&2;}
17482 { $as_echo "$as_me:$LINENO: WARNING: dl.h: check for missing prerequisite headers?" >&5
17483 $as_echo "$as_me: WARNING: dl.h: check for missing prerequisite headers?" >&2;}
17484 { $as_echo "$as_me:$LINENO: WARNING: dl.h: see the Autoconf documentation" >&5
17485 $as_echo "$as_me: WARNING: dl.h: see the Autoconf documentation" >&2;}
17486 { $as_echo "$as_me:$LINENO: WARNING: dl.h: section \"Present But Cannot Be Compiled\"" >&5
17487 $as_echo "$as_me: WARNING: dl.h: section \"Present But Cannot Be Compiled\"" >&2;}
17488 { $as_echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the preprocessor's result" >&5
17489 $as_echo "$as_me: WARNING: dl.h: proceeding with the preprocessor's result" >&2;}
17490 { $as_echo "$as_me:$LINENO: WARNING: dl.h: in the future, the compiler will take precedence" >&5
17491 $as_echo "$as_me: WARNING: dl.h: in the future, the compiler will take precedence" >&2;}
17495 { $as_echo "$as_me:$LINENO: checking for dl.h" >&5
17496 $as_echo_n "checking for dl.h... " >&6; }
17497 if test "${ac_cv_header_dl_h+set}" = set; then
17498 $as_echo_n "(cached) " >&6
17500 ac_cv_header_dl_h
=$ac_header_preproc
17502 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5
17503 $as_echo "$ac_cv_header_dl_h" >&6; }
17506 if test "x$ac_cv_header_dl_h" = x
""yes; then
17514 if test x
${DLL} = xdlfcn.h
; then
17516 cat >>confdefs.h
<<\_ACEOF
17517 #define HAVE_DLFCN_H 1
17520 { $as_echo "$as_me:$LINENO: checking for dlopen()" >&5
17521 $as_echo_n "checking for dlopen()... " >&6; }
17522 cat >conftest.
$ac_ext <<_ACEOF
17525 cat confdefs.h
>>conftest.
$ac_ext
17526 cat >>conftest.
$ac_ext <<_ACEOF
17527 /* end confdefs.h. */
17533 extern void* dlopen();
17540 rm -f conftest.
$ac_objext conftest
$ac_exeext
17541 if { (ac_try
="$ac_link"
17542 case "(($ac_try" in
17543 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17544 *) ac_try_echo=$ac_try;;
17546 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17547 $as_echo "$ac_try_echo") >&5
17548 (eval "$ac_link") 2>conftest.er1
17550 grep -v '^ *+' conftest.er1 >conftest.err
17552 cat conftest.err >&5
17553 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17554 (exit $ac_status); } && {
17555 test -z "$ac_c_werror_flag" ||
17556 test ! -s conftest.err
17557 } && test -s conftest$ac_exeext && {
17558 test "$cross_compiling" = yes ||
17559 $as_test_x conftest$ac_exeext
17561 { $as_echo "$as_me:$LINENO: result: yes" >&5
17562 $as_echo "yes" >&6; };
17564 cat >>confdefs.h <<\_ACEOF
17565 #define HAVE_DLOPEN 1
17569 $as_echo "$as_me: failed program was:" >&5
17570 sed 's/^/| /' conftest.$ac_ext >&5
17572 { $as_echo "$as_me:$LINENO: result: no" >&5
17573 $as_echo "no" >&6; };
17574 { $as_echo "$as_me:$LINENO: checking for dlopen() in -ldl" >&5
17575 $as_echo_n "checking for dlopen() in -ldl... " >&6; }
17578 cat >conftest.$ac_ext <<_ACEOF
17581 cat confdefs.h >>conftest.$ac_ext
17582 cat >>conftest.$ac_ext <<_ACEOF
17583 /* end confdefs.h. */
17589 extern void* dlopen();
17596 rm -f conftest.$ac_objext conftest$ac_exeext
17597 if { (ac_try="$ac_link"
17598 case "(($ac_try" in
17599 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17600 *) ac_try_echo
=$ac_try;;
17602 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17603 $as_echo "$ac_try_echo") >&5
17604 (eval "$ac_link") 2>conftest.er1
17606 grep -v '^ *+' conftest.er1
>conftest.err
17608 cat conftest.err
>&5
17609 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17610 (exit $ac_status); } && {
17611 test -z "$ac_c_werror_flag" ||
17612 test ! -s conftest.err
17613 } && test -s conftest
$ac_exeext && {
17614 test "$cross_compiling" = yes ||
17615 $as_test_x conftest
$ac_exeext
17617 { $as_echo "$as_me:$LINENO: result: yes" >&5
17618 $as_echo "yes" >&6; };
17620 cat >>confdefs.h
<<\_ACEOF
17621 #define HAVE_DLOPEN 1
17625 $as_echo "$as_me: failed program was:" >&5
17626 sed 's/^/| /' conftest.
$ac_ext >&5
17628 { $as_echo "$as_me:$LINENO: result: no" >&5
17629 $as_echo "no" >&6; };
17633 rm -rf conftest.dSYM
17634 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17635 conftest
$ac_exeext conftest.
$ac_ext
17638 rm -rf conftest.dSYM
17639 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17640 conftest
$ac_exeext conftest.
$ac_ext
17641 { $as_echo "$as_me:$LINENO: checking for dlsym()" >&5
17642 $as_echo_n "checking for dlsym()... " >&6; }
17643 cat >conftest.
$ac_ext <<_ACEOF
17646 cat confdefs.h
>>conftest.
$ac_ext
17647 cat >>conftest.
$ac_ext <<_ACEOF
17648 /* end confdefs.h. */
17654 extern void* dlsym();
17661 rm -f conftest.
$ac_objext conftest
$ac_exeext
17662 if { (ac_try
="$ac_link"
17663 case "(($ac_try" in
17664 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17665 *) ac_try_echo=$ac_try;;
17667 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17668 $as_echo "$ac_try_echo") >&5
17669 (eval "$ac_link") 2>conftest.er1
17671 grep -v '^ *+' conftest.er1 >conftest.err
17673 cat conftest.err >&5
17674 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17675 (exit $ac_status); } && {
17676 test -z "$ac_c_werror_flag" ||
17677 test ! -s conftest.err
17678 } && test -s conftest$ac_exeext && {
17679 test "$cross_compiling" = yes ||
17680 $as_test_x conftest$ac_exeext
17682 { $as_echo "$as_me:$LINENO: result: yes" >&5
17683 $as_echo "yes" >&6; };
17685 cat >>confdefs.h <<\_ACEOF
17686 #define HAVE_DLSYM 1
17690 $as_echo "$as_me: failed program was:" >&5
17691 sed 's/^/| /' conftest.$ac_ext >&5
17693 { $as_echo "$as_me:$LINENO: result: no" >&5
17694 $as_echo "no" >&6; };
17695 { $as_echo "$as_me:$LINENO: checking for dlsym() in -ldl" >&5
17696 $as_echo_n "checking for dlsym() in -ldl... " >&6; }
17699 cat >conftest.$ac_ext <<_ACEOF
17702 cat confdefs.h >>conftest.$ac_ext
17703 cat >>conftest.$ac_ext <<_ACEOF
17704 /* end confdefs.h. */
17710 extern void* dlsym();
17717 rm -f conftest.$ac_objext conftest$ac_exeext
17718 if { (ac_try="$ac_link"
17719 case "(($ac_try" in
17720 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17721 *) ac_try_echo
=$ac_try;;
17723 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17724 $as_echo "$ac_try_echo") >&5
17725 (eval "$ac_link") 2>conftest.er1
17727 grep -v '^ *+' conftest.er1
>conftest.err
17729 cat conftest.err
>&5
17730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17731 (exit $ac_status); } && {
17732 test -z "$ac_c_werror_flag" ||
17733 test ! -s conftest.err
17734 } && test -s conftest
$ac_exeext && {
17735 test "$cross_compiling" = yes ||
17736 $as_test_x conftest
$ac_exeext
17738 { $as_echo "$as_me:$LINENO: result: yes" >&5
17739 $as_echo "yes" >&6; };
17741 cat >>confdefs.h
<<\_ACEOF
17742 #define HAVE_DLSYM 1
17746 $as_echo "$as_me: failed program was:" >&5
17747 sed 's/^/| /' conftest.
$ac_ext >&5
17749 { $as_echo "$as_me:$LINENO: result: no" >&5
17750 $as_echo "no" >&6; };
17754 rm -rf conftest.dSYM
17755 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17756 conftest
$ac_exeext conftest.
$ac_ext
17759 rm -rf conftest.dSYM
17760 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17761 conftest
$ac_exeext conftest.
$ac_ext
17762 elif test x
${DLL} = xdl.h
; then
17764 cat >>confdefs.h
<<\_ACEOF
17765 #define HAVE_DL_H 1
17768 { $as_echo "$as_me:$LINENO: checking for shl_load()" >&5
17769 $as_echo_n "checking for shl_load()... " >&6; }
17770 cat >conftest.
$ac_ext <<_ACEOF
17773 cat confdefs.h
>>conftest.
$ac_ext
17774 cat >>conftest.
$ac_ext <<_ACEOF
17775 /* end confdefs.h. */
17781 extern void* shl_load();
17788 rm -f conftest.
$ac_objext conftest
$ac_exeext
17789 if { (ac_try
="$ac_link"
17790 case "(($ac_try" in
17791 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17792 *) ac_try_echo=$ac_try;;
17794 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17795 $as_echo "$ac_try_echo") >&5
17796 (eval "$ac_link") 2>conftest.er1
17798 grep -v '^ *+' conftest.er1 >conftest.err
17800 cat conftest.err >&5
17801 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17802 (exit $ac_status); } && {
17803 test -z "$ac_c_werror_flag" ||
17804 test ! -s conftest.err
17805 } && test -s conftest$ac_exeext && {
17806 test "$cross_compiling" = yes ||
17807 $as_test_x conftest$ac_exeext
17809 { $as_echo "$as_me:$LINENO: result: yes" >&5
17810 $as_echo "yes" >&6; };
17812 cat >>confdefs.h <<\_ACEOF
17813 #define HAVE_SHL_LOAD 1
17817 $as_echo "$as_me: failed program was:" >&5
17818 sed 's/^/| /' conftest.$ac_ext >&5
17820 { $as_echo "$as_me:$LINENO: result: no" >&5
17821 $as_echo "no" >&6; };
17822 { $as_echo "$as_me:$LINENO: checking for shl_load() in -ldld" >&5
17823 $as_echo_n "checking for shl_load() in -ldld... " >&6; }
17826 cat >conftest.$ac_ext <<_ACEOF
17829 cat confdefs.h >>conftest.$ac_ext
17830 cat >>conftest.$ac_ext <<_ACEOF
17831 /* end confdefs.h. */
17837 extern void* shl_load();
17844 rm -f conftest.$ac_objext conftest$ac_exeext
17845 if { (ac_try="$ac_link"
17846 case "(($ac_try" in
17847 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17848 *) ac_try_echo
=$ac_try;;
17850 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17851 $as_echo "$ac_try_echo") >&5
17852 (eval "$ac_link") 2>conftest.er1
17854 grep -v '^ *+' conftest.er1
>conftest.err
17856 cat conftest.err
>&5
17857 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17858 (exit $ac_status); } && {
17859 test -z "$ac_c_werror_flag" ||
17860 test ! -s conftest.err
17861 } && test -s conftest
$ac_exeext && {
17862 test "$cross_compiling" = yes ||
17863 $as_test_x conftest
$ac_exeext
17865 { $as_echo "$as_me:$LINENO: result: yes" >&5
17866 $as_echo "yes" >&6; };
17868 cat >>confdefs.h
<<\_ACEOF
17869 #define HAVE_SHL_LOAD 1
17873 $as_echo "$as_me: failed program was:" >&5
17874 sed 's/^/| /' conftest.
$ac_ext >&5
17876 { $as_echo "$as_me:$LINENO: result: no" >&5
17877 $as_echo "no" >&6; };
17881 rm -rf conftest.dSYM
17882 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17883 conftest
$ac_exeext conftest.
$ac_ext
17886 rm -rf conftest.dSYM
17887 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17888 conftest
$ac_exeext conftest.
$ac_ext
17891 for ac_header
in setjmp.h
17893 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17894 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17895 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17896 $as_echo_n "checking for $ac_header... " >&6; }
17897 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17898 $as_echo_n "(cached) " >&6
17900 ac_res
=`eval 'as_val=${'$as_ac_Header'}
17901 $as_echo "$as_val"'`
17902 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17903 $as_echo "$ac_res" >&6; }
17905 # Is the header compilable?
17906 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17907 $as_echo_n "checking $ac_header usability... " >&6; }
17908 cat >conftest.
$ac_ext <<_ACEOF
17911 cat confdefs.h
>>conftest.
$ac_ext
17912 cat >>conftest.
$ac_ext <<_ACEOF
17913 /* end confdefs.h. */
17914 $ac_includes_default
17915 #include <$ac_header>
17917 rm -f conftest.
$ac_objext
17918 if { (ac_try
="$ac_compile"
17919 case "(($ac_try" in
17920 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17921 *) ac_try_echo=$ac_try;;
17923 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17924 $as_echo "$ac_try_echo") >&5
17925 (eval "$ac_compile") 2>conftest.er1
17927 grep -v '^ *+' conftest.er1 >conftest.err
17929 cat conftest.err >&5
17930 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17931 (exit $ac_status); } && {
17932 test -z "$ac_c_werror_flag" ||
17933 test ! -s conftest.err
17934 } && test -s conftest.$ac_objext; then
17935 ac_header_compiler=yes
17937 $as_echo "$as_me: failed program was:" >&5
17938 sed 's/^/| /' conftest.$ac_ext >&5
17940 ac_header_compiler=no
17943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17944 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17945 $as_echo "$ac_header_compiler" >&6; }
17947 # Is the header present?
17948 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17949 $as_echo_n "checking $ac_header presence... " >&6; }
17950 cat >conftest.$ac_ext <<_ACEOF
17953 cat confdefs.h >>conftest.$ac_ext
17954 cat >>conftest.$ac_ext <<_ACEOF
17955 /* end confdefs.h. */
17956 #include <$ac_header>
17958 if { (ac_try="$ac_cpp conftest.$ac_ext"
17959 case "(($ac_try" in
17960 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17961 *) ac_try_echo
=$ac_try;;
17963 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17964 $as_echo "$ac_try_echo") >&5
17965 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17967 grep -v '^ *+' conftest.er1
>conftest.err
17969 cat conftest.err
>&5
17970 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17971 (exit $ac_status); } >/dev
/null
&& {
17972 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17973 test ! -s conftest.err
17975 ac_header_preproc
=yes
17977 $as_echo "$as_me: failed program was:" >&5
17978 sed 's/^/| /' conftest.
$ac_ext >&5
17980 ac_header_preproc
=no
17983 rm -f conftest.err conftest.
$ac_ext
17984 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17985 $as_echo "$ac_header_preproc" >&6; }
17987 # So? What about this header?
17988 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17990 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17991 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17992 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17993 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17994 ac_header_preproc
=yes
17997 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17998 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17999 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18000 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18001 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18002 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18003 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18004 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18005 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18006 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18007 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18008 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18012 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18013 $as_echo_n "checking for $ac_header... " >&6; }
18014 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18015 $as_echo_n "(cached) " >&6
18017 eval "$as_ac_Header=\$ac_header_preproc"
18019 ac_res
=`eval 'as_val=${'$as_ac_Header'}
18020 $as_echo "$as_val"'`
18021 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18022 $as_echo "$ac_res" >&6; }
18025 as_val
=`eval 'as_val=${'$as_ac_Header'}
18026 $as_echo "$as_val"'`
18027 if test "x$as_val" = x
""yes; then
18028 cat >>confdefs.h
<<_ACEOF
18029 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18037 if test "x$MACOSX" = "xyes" -a -n "$PERL"; then
18038 if echo $LIBS |
grep -e '-ldl' >/dev
/null
; then
18039 LIBS
=`echo $LIBS | sed s/-ldl//`
18040 PERL_LIBS
="$PERL_LIBS -ldl"
18044 if test "x$MACOSX" = "xyes" && test "x$CARBON" = "xyes" \
18045 && test "x$GUITYPE" != "xCARBONGUI"; then
18046 { $as_echo "$as_me:$LINENO: checking whether we need -framework Carbon" >&5
18047 $as_echo_n "checking whether we need -framework Carbon... " >&6; }
18048 if test "x$enable_multibyte" = "xyes" ||
test "x$features" = "xbig" \
18049 ||
test "x$features" = "xhuge"; then
18050 LIBS
="$LIBS -framework Carbon"
18051 { $as_echo "$as_me:$LINENO: result: yes" >&5
18052 $as_echo "yes" >&6; }
18054 { $as_echo "$as_me:$LINENO: result: no" >&5
18055 $as_echo "no" >&6; }
18058 if test "x$MACARCH" = "xboth"; then
18059 LDFLAGS
="$LDFLAGS -isysroot $DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc"
18062 DEPEND_CFLAGS_FILTER
=
18063 if test "$GCC" = yes; then
18064 { $as_echo "$as_me:$LINENO: checking for GCC 3 or later" >&5
18065 $as_echo_n "checking for GCC 3 or later... " >&6; }
18066 gccmajor
=`echo "$gccversion" | sed -e 's/^\([1-9]\)\..*$/\1/g'`
18067 if test "$gccmajor" -gt "2"; then
18068 DEPEND_CFLAGS_FILTER
="| sed 's+-I */+-isystem /+g'"
18069 { $as_echo "$as_me:$LINENO: result: yes" >&5
18070 $as_echo "yes" >&6; }
18072 { $as_echo "$as_me:$LINENO: result: no" >&5
18073 $as_echo "no" >&6; }
18075 { $as_echo "$as_me:$LINENO: checking whether we need -D_FORTIFY_SOURCE=1" >&5
18076 $as_echo_n "checking whether we need -D_FORTIFY_SOURCE=1... " >&6; }
18077 if test "$gccmajor" -gt "3"; then
18078 CFLAGS
=`echo "$CFLAGS" | sed -e 's/-Wp,-D_FORTIFY_SOURCE=.//g' -e 's/-D_FORTIFY_SOURCE=.//g' -e 's/$/ -D_FORTIFY_SOURCE=1/'`
18079 { $as_echo "$as_me:$LINENO: result: yes" >&5
18080 $as_echo "yes" >&6; }
18082 { $as_echo "$as_me:$LINENO: result: no" >&5
18083 $as_echo "no" >&6; }
18088 ac_config_files
="$ac_config_files auto/config.mk:config.mk.in"
18090 cat >confcache
<<\_ACEOF
18091 # This file is a shell script that caches the results of configure
18092 # tests run on this system so they can be shared between configure
18093 # scripts and configure runs, see configure's option --config-cache.
18094 # It is not useful on other systems. If it contains results you don't
18095 # want to keep, you may remove or edit it.
18097 # config.status only pays attention to the cache file if you give it
18098 # the --recheck option to rerun configure.
18100 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18101 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18102 # following values.
18106 # The following way of writing the cache mishandles newlines in values,
18107 # but we know of no workaround that is simple, portable, and efficient.
18108 # So, we kill variables containing newlines.
18109 # Ultrix sh set writes to stderr and can't be redirected directly,
18110 # and sets the high bit in the cache file unless we assign to the vars.
18112 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18113 eval ac_val
=\$
$ac_var
18117 *_cv_
*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
18118 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18121 _ | IFS | as_nl
) ;; #(
18122 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
18123 *) $as_unset $ac_var ;;
18129 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18130 *${as_nl}ac_space
=\
*)
18131 # `set' does not quote correctly, so add quotes (double-quote
18132 # substitution turns \\\\ into \\, and sed turns \\ into \).
18135 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18138 # `set' quotes correctly as required by POSIX, so do not add quotes.
18139 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18148 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18150 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18152 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
18153 if test -w "$cache_file"; then
18154 test "x$cache_file" != "x/dev/null" &&
18155 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
18156 $as_echo "$as_me: updating cache $cache_file" >&6;}
18157 cat confcache
>$cache_file
18159 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
18160 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18165 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
18166 # Let make expand exec_prefix.
18167 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
18169 DEFS
=-DHAVE_CONFIG_H
18173 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
18174 # 1. Remove the extension, and $U if already installed.
18175 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
18176 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
18177 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18178 # will be set to the directory where LIBOBJS objects are built.
18179 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18180 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
18182 LIBOBJS
=$ac_libobjs
18184 LTLIBOBJS
=$ac_ltlibobjs
18188 : ${CONFIG_STATUS=./config.status}
18190 ac_clean_files_save
=$ac_clean_files
18191 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
18192 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18193 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18194 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18196 # Generated by $as_me.
18197 # Run this file to recreate the current configuration.
18198 # Compiler output produced by configure, useful for debugging
18199 # configure, is in config.log if it exists.
18202 ac_cs_recheck=false
18204 SHELL=\${CONFIG_SHELL-$SHELL}
18207 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18208 ## --------------------- ##
18209 ## M4sh Initialization. ##
18210 ## --------------------- ##
18212 # Be more Bourne compatible
18213 DUALCASE
=1; export DUALCASE
# for MKS sh
18214 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
18217 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18218 # is contrary to our usage. Disable this feature.
18219 alias -g '${1+"$@"}'='"$@"'
18220 setopt NO_GLOB_SUBST
18222 case `(set -o) 2>/dev/null` in
18223 *posix
*) set -o posix
;;
18232 # Avoid depending upon Character Ranges.
18233 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
18234 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18235 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
18236 as_cr_digits
='0123456789'
18237 as_cr_alnum
=$as_cr_Letters$as_cr_digits
18242 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18243 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18244 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18245 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18246 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18247 as_echo='printf %s
\n'
18248 as_echo_n='printf %s
'
18250 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18251 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
18252 as_echo_n='/usr
/ucb
/echo -n'
18254 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18255 as_echo_n_body='eval
18259 expr "X$arg" : "X\\(.*\\)$as_nl";
18260 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18262 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
18264 export as_echo_n_body
18265 as_echo_n='sh
-c $as_echo_n_body as_echo
'
18267 export as_echo_body
18268 as_echo='sh
-c $as_echo_body as_echo
'
18271 # The user is always right.
18272 if test "${PATH_SEPARATOR+set}" != set; then
18274 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18275 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18280 # Support unset when possible.
18281 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
18289 # We need space, tab and new line, in precisely that order. Quoting is
18290 # there to prevent editors from complaining about space-tab.
18291 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18292 # splitting by setting IFS to empty value.)
18295 # Find who we are. Look in the path if we contain no directory separator.
18297 *[\\/]* ) as_myself=$0 ;;
18298 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18299 for as_dir in $PATH
18302 test -z "$as_dir" && as_dir=.
18303 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18309 # We did not find ourselves, most probably we were run as `sh COMMAND'
18310 # in which case we are not to be found in the path.
18311 if test "x$as_myself" = x
; then
18314 if test ! -f "$as_myself"; then
18315 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18316 { (exit 1); exit 1; }
18319 # Work around bugs in pre-3.0 UWIN ksh.
18320 for as_var
in ENV MAIL MAILPATH
18321 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
18333 # Required to use basename.
18334 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
18335 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
18341 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18342 as_basename
=basename
18348 # Name of the executable.
18349 as_me
=`$as_basename -- "$0" ||
18350 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18351 X"$0" : 'X\(//\)$' \| \
18352 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18354 sed '/^.*\/\([^/][^/]*\)\/*$/{
18373 as_lineno_1
=$LINENO
18374 as_lineno_2
=$LINENO
18375 test "x$as_lineno_1" != "x$as_lineno_2" &&
18376 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
18378 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18379 # uniformly replaced by the line number. The first 'sed' inserts a
18380 # line-number line after each line using $LINENO; the second 'sed'
18381 # does the real work. The second script uses 'N' to pair each
18382 # line-number line with the line containing $LINENO, and appends
18383 # trailing '-' during substitution so that $LINENO is not a special
18384 # case at line end.
18385 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18386 # scripts with optimization help from Paolo Bonzini. Blame Lee
18387 # E. McMahon (1931-1989) for sed's syntax. :-)
18399 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
18402 ' >$as_me.lineno
&&
18403 chmod +x
"$as_me.lineno" ||
18404 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
18405 { (exit 1); exit 1; }; }
18407 # Don't try to exec as it changes $[0], causing all sort of problems
18408 # (the dirname of $[0] is not the place where we might find the
18409 # original and so on. Autoconf is especially sensitive to this).
18410 .
"./$as_me.lineno"
18411 # Exit status is that of the last command.
18416 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
18422 ECHO_C
= ECHO_N
= ECHO_T
=
18423 case `echo -n x` in
18425 case `echo 'x\c'` in
18426 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
18432 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
18433 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
18439 rm -f conf$$ conf$$.exe conf$$.
file
18440 if test -d conf$$.dir
; then
18441 rm -f conf$$.dir
/conf$$.
file
18444 mkdir conf$$.dir
2>/dev
/null
18446 if (echo >conf$$.
file) 2>/dev
/null
; then
18447 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
18449 # ... but there are two gotchas:
18450 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18451 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18452 # In both cases, we have to default to `cp -p'.
18453 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
18455 elif ln conf$$.
file conf$$
2>/dev
/null
; then
18463 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
18464 rmdir conf$$.dir
2>/dev
/null
18466 if mkdir
-p .
2>/dev
/null
; then
18469 test -d .
/-p && rmdir .
/-p
18473 if test -x / >/dev
/null
2>&1; then
18474 as_test_x
='test -x'
18476 if ls -dL / >/dev
/null
2>&1; then
18483 if test -d "$1"; then
18489 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
18490 ???[sx]*):;;*)false;;esac;fi
18494 as_executable_p
=$as_test_x
18496 # Sed expression to map a string onto a valid CPP name.
18497 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18499 # Sed expression to map a string onto a valid variable name.
18500 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18505 # Save the log message, to keep $[0] and so on meaningful, and to
18506 # report actual input values of CONFIG_FILES etc. instead of their
18507 # values after options handling.
18509 This file was extended by $as_me, which was
18510 generated by GNU Autoconf 2.63. Invocation command line was
18512 CONFIG_FILES = $CONFIG_FILES
18513 CONFIG_HEADERS = $CONFIG_HEADERS
18514 CONFIG_LINKS = $CONFIG_LINKS
18515 CONFIG_COMMANDS = $CONFIG_COMMANDS
18518 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18523 case $ac_config_files in *"
18524 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
18527 case $ac_config_headers in *"
18528 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
18532 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18533 # Files that config.status was made for.
18534 config_files="$ac_config_files"
18535 config_headers="$ac_config_headers"
18539 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18541 \`$as_me' instantiates files from templates according to the
18542 current configuration.
18544 Usage: $0 [OPTION]... [FILE]...
18546 -h, --help print this help, then exit
18547 -V, --version print version number and configuration settings, then exit
18548 -q, --quiet, --silent
18549 do not print progress messages
18550 -d, --debug don't remove temporary files
18551 --recheck update $as_me by reconfiguring in the same conditions
18552 --file=FILE[:TEMPLATE]
18553 instantiate the configuration file FILE
18554 --header=FILE[:TEMPLATE]
18555 instantiate the configuration header FILE
18557 Configuration files:
18560 Configuration headers:
18563 Report bugs to <bug-autoconf@gnu.org>."
18566 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18569 configured by $0, generated by GNU Autoconf 2.63,
18570 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
18572 Copyright (C) 2008 Free Software Foundation, Inc.
18573 This config.status script is free software; the Free Software Foundation
18574 gives unlimited permission to copy, distribute and modify it."
18579 test -n "\$AWK" || AWK=awk
18582 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18583 # The default lists apply if the user does not specify any file.
18589 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
18590 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
18601 # Handling of the options.
18602 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
18604 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
18605 $as_echo "$ac_cs_version"; exit ;;
18606 --debug |
--debu |
--deb |
--de |
--d |
-d )
18608 --file |
--fil |
--fi |
--f )
18611 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18613 CONFIG_FILES
="$CONFIG_FILES '$ac_optarg'"
18614 ac_need_defaults
=false
;;
18615 --header |
--heade |
--head |
--hea )
18618 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18620 CONFIG_HEADERS
="$CONFIG_HEADERS '$ac_optarg'"
18621 ac_need_defaults
=false
;;
18623 # Conflict between --help and --header
18624 { $as_echo "$as_me: error: ambiguous option: $1
18625 Try \`$0 --help' for more information." >&2
18626 { (exit 1); exit 1; }; };;
18627 --help |
--hel |
-h )
18628 $as_echo "$ac_cs_usage"; exit ;;
18629 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
18630 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
18633 # This is an error.
18634 -*) { $as_echo "$as_me: error: unrecognized option: $1
18635 Try \`$0 --help' for more information." >&2
18636 { (exit 1); exit 1; }; } ;;
18638 *) ac_config_targets
="$ac_config_targets $1"
18639 ac_need_defaults
=false
;;
18645 ac_configure_extra_args
=
18647 if $ac_cs_silent; then
18649 ac_configure_extra_args
="$ac_configure_extra_args --silent"
18653 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18654 if \$ac_cs_recheck; then
18655 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18657 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18658 CONFIG_SHELL='$SHELL'
18659 export CONFIG_SHELL
18664 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18665 exec 5>>auto
/config.log
18668 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18669 ## Running $as_me. ##
18675 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18678 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18680 # Handling of arguments.
18681 for ac_config_target
in $ac_config_targets
18683 case $ac_config_target in
18684 "auto/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS auto/config.h:config.h.in" ;;
18685 "auto/config.mk") CONFIG_FILES
="$CONFIG_FILES auto/config.mk:config.mk.in" ;;
18687 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18688 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18689 { (exit 1); exit 1; }; };;
18694 # If the user did not use the arguments to specify the items to instantiate,
18695 # then the envvar interface is used. Set only those that are not.
18696 # We use the long form for the default assignment because of an extremely
18697 # bizarre bug on SunOS 4.1.3.
18698 if $ac_need_defaults; then
18699 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
18700 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
18703 # Have a temporary directory for convenience. Make it in the build tree
18704 # simply because there is no reason against having it here, and in addition,
18705 # creating and moving files from /tmp can sometimes cause problems.
18706 # Hook for its removal unless debugging.
18707 # Note that there is a small window in which the directory will not be cleaned:
18708 # after its creation but before its name has been assigned to `$tmp'.
18712 trap 'exit_status=$?
18713 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18715 trap '{ (exit 1); exit 1; }' 1 2 13 15
18717 # Create a (secure) tmp directory for tmp files.
18720 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18721 test -n "$tmp" && test -d "$tmp"
18724 tmp
=.
/conf$$
-$RANDOM
18725 (umask 077 && mkdir
"$tmp")
18728 $as_echo "$as_me: cannot create a temporary directory in ." >&2
18729 { (exit 1); exit 1; }
18732 # Set up the scripts for CONFIG_FILES section.
18733 # No need to generate them if there are no CONFIG_FILES.
18734 # This happens for instance with `./config.status config.h'.
18735 if test -n "$CONFIG_FILES"; then
18739 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18740 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18743 ac_cs_awk_cr
=$ac_cr
18746 echo 'BEGIN {' >"$tmp/subs1.awk" &&
18751 echo "cat >conf$$subs.awk <<_ACEOF" &&
18752 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18754 } >conf$$subs.sh ||
18755 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
18756 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
18757 { (exit 1); exit 1; }; }
18758 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
18760 for ac_last_try in false false false false false :; do
18761 . ./conf$$subs.sh ||
18762 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
18763 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
18764 { (exit 1); exit 1; }; }
18766 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
18767 if test $ac_delim_n = $ac_delim_num; then
18769 elif $ac_last_try; then
18770 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
18771 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
18772 { (exit 1); exit 1; }; }
18774 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
18777 rm -f conf$$subs.sh
18779 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18780 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
18784 s/^/S["/; s
/!.
*/"]=/
18794 s/\(.\{148\}\).*/\1/
18796 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
18801 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
18808 s/\(.\{148\}\).*/\1/
18810 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
18814 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
18819 ' <conf$$subs.awk | sed '
18824 ' >>$CONFIG_STATUS || ac_write_fail=1
18825 rm -f conf$$subs.awk
18826 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18828 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
18829 for (key in S) S_is_set[key] = 1
18835 nfields = split(line, field, "@
")
18837 len = length(field[1])
18838 for (i = 2; i < nfields; i++) {
18840 keylen = length(key)
18841 if (S_is_set[key]) {
18843 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18844 len += length(value) + length(field[++i])
18855 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18856 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18857 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
18860 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
18861 || { { $as_echo "$as_me:$LINENO: error
: could not setup config files machinery
" >&5
18862 $as_echo "$as_me: error
: could not setup config files machinery
" >&2;}
18863 { (exit 1); exit 1; }; }
18866 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18867 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
18868 # trailing colons and then remove the whole line if VPATH becomes empty
18869 # (actually we leave an empty line to preserve line numbers).
18870 if test "x
$srcdir" = x.; then
18871 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18872 s/:*\$(srcdir):*/:/
18873 s/:*\${srcdir}:*/:/
18875 s/^\([^=]*=[ ]*\):*/\1/
18881 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18882 fi # test -n "$CONFIG_FILES"
18884 # Set up the scripts for CONFIG_HEADERS section.
18885 # No need to generate them if there are no CONFIG_HEADERS.
18886 # This happens for instance with `./config.status Makefile'.
18887 if test -n "$CONFIG_HEADERS"; then
18888 cat >"$tmp/defines.
awk" <<\_ACAWK ||
18892 # Transform confdefs.h into an awk script `defines.awk', embedded as
18893 # here-document in config.status, that substitutes the proper values into
18894 # config.h.in to produce config.h.
18896 # Create a delimiter string that does not exist in confdefs.h, to ease
18897 # handling of long lines.
18899 for ac_last_try in false false :; do
18900 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
18901 if test -z "$ac_t"; then
18903 elif $ac_last_try; then
18904 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_HEADERS" >&5
18905 $as_echo "$as_me: error
: could not
make $CONFIG_HEADERS" >&2;}
18906 { (exit 1); exit 1; }; }
18908 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
18912 # For the awk script, D is an array of macro values keyed by name,
18913 # likewise P contains macro parameters if any. Preserve backslash
18914 # newline sequences.
18916 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18918 s/.\{148\}/&'"$ac_delim"'/g
18921 s/^[ ]*#[ ]*define[ ][ ]*/ /
18928 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
18930 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
18934 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
18935 D["\
1"]=" \
3\\\\\\n
"\\/p
18937 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
18942 s/.\{148\}/&'"$ac_delim"'/g
18947 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
18950 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
18952 ' <confdefs.h | sed '
18953 s/'"$ac_delim"'/"\\\
18954 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18956 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18957 for (key in D) D_is_set[key] = 1
18960 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18962 split(line, arg, " ")
18963 if (arg[1] == "#") {
18967 defundef
= substr
(arg
[1], 2)
18970 split(mac1
, mac2
, "(") #)
18972 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
18973 if (D_is_set
[macro
]) {
18974 # Preserve the white space surrounding the "#".
18975 print prefix
"define", macro P
[macro
] D
[macro
]
18978 # Replace #undef with comments. This is necessary, for example,
18979 # in the case of _POSIX_SOURCE, which is predefined and required
18980 # on some systems where configure will not decide to define it.
18981 if (defundef
== "undef") {
18982 print
"/*", prefix defundef
, macro
, "*/"
18990 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18991 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
18992 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
18993 { (exit 1); exit 1; }; }
18994 fi # test -n "$CONFIG_HEADERS"
18997 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS "
19002 :[FHLC
]) ac_mode
=$ac_tag; continue;;
19004 case $ac_mode$ac_tag in
19006 :L
* |
:C
*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
19007 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
19008 { (exit 1); exit 1; }; };;
19009 :[FH
]-) ac_tag
=-:-;;
19010 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
19027 -) ac_f
="$tmp/stdin";;
19028 *) # Look for the file first in the build tree, then in the source tree
19029 # (if the path is not absolute). The absolute path cannot be DOS-style,
19030 # because $ac_f cannot contain `:'.
19034 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
19036 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
19037 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
19038 { (exit 1); exit 1; }; };;
19040 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19041 ac_file_inputs
="$ac_file_inputs '$ac_f'"
19044 # Let's still pretend it is `configure' which instantiates (i.e., don't
19045 # use $as_me), people would be surprised to read:
19046 # /* config.h. Generated by config.status. */
19047 configure_input
='Generated from '`
19048 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19050 if test x
"$ac_file" != x-
; then
19051 configure_input
="$ac_file. $configure_input"
19052 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
19053 $as_echo "$as_me: creating $ac_file" >&6;}
19055 # Neutralize special characters interpreted by sed in replacement strings.
19056 case $configure_input in #(
19057 *\
&* |
*\|
* |
*\\* )
19058 ac_sed_conf_input
=`$as_echo "$configure_input" |
19059 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19060 *) ac_sed_conf_input
=$configure_input;;
19064 *:-:* |
*:-) cat >"$tmp/stdin" \
19065 ||
{ { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19066 $as_echo "$as_me: error: could not create $ac_file" >&2;}
19067 { (exit 1); exit 1; }; } ;;
19072 ac_dir
=`$as_dirname -- "$ac_file" ||
19073 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19074 X"$ac_file" : 'X\(//\)[^/]' \| \
19075 X"$ac_file" : 'X\(//\)$' \| \
19076 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19077 $as_echo X"$ac_file" |
19078 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19082 /^X\(\/\/\)[^/].*/{
19097 -*) as_dir
=.
/$as_dir;;
19099 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
19103 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19104 *) as_qdir
=$as_dir;;
19106 as_dirs
="'$as_qdir' $as_dirs"
19107 as_dir
=`$as_dirname -- "$as_dir" ||
19108 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19109 X"$as_dir" : 'X\(//\)[^/]' \| \
19110 X"$as_dir" : 'X\(//\)$' \| \
19111 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19112 $as_echo X"$as_dir" |
19113 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19117 /^X\(\/\/\)[^/].*/{
19130 test -d "$as_dir" && break
19132 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
19133 } ||
test -d "$as_dir" ||
{ { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19134 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
19135 { (exit 1); exit 1; }; }; }
19139 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
19141 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19142 # A ".." for each directory in $ac_dir_suffix.
19143 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19144 case $ac_top_builddir_sub in
19145 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
19146 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
19149 ac_abs_top_builddir
=$ac_pwd
19150 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
19151 # for backward compatibility:
19152 ac_top_builddir
=$ac_top_build_prefix
19155 .
) # We are building in place.
19157 ac_top_srcdir
=$ac_top_builddir_sub
19158 ac_abs_top_srcdir
=$ac_pwd ;;
19159 [\\/]* | ?
:[\\/]* ) # Absolute name.
19160 ac_srcdir
=$srcdir$ac_dir_suffix;
19161 ac_top_srcdir
=$srcdir
19162 ac_abs_top_srcdir
=$srcdir ;;
19163 *) # Relative name.
19164 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
19165 ac_top_srcdir
=$ac_top_build_prefix$srcdir
19166 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
19168 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
19179 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19180 # If the template does not know about datarootdir, expand it.
19181 # FIXME: This hack should be removed a few years after 2.60.
19182 ac_datarootdir_hack
=; ac_datarootdir_seen
=
19195 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19196 *datarootdir
*) ac_datarootdir_seen
=yes;;
19197 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
19198 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19199 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19201 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19202 ac_datarootdir_hack='
19203 s&@datadir@&$datadir&g
19204 s&@docdir@&$docdir&g
19205 s&@infodir@&$infodir&g
19206 s&@localedir@&$localedir&g
19207 s&@mandir@&$mandir&g
19208 s&\\\${datarootdir}&$datarootdir&g' ;;
19212 # Neutralize VPATH when `$srcdir' = `.'.
19213 # Shell code in configure.ac might set extrasub.
19214 # FIXME: do we really want to maintain this feature?
19215 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19216 ac_sed_extra="$ac_vpsub
19219 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19221 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
19222 s|@configure_input@|
$ac_sed_conf_input|
;t t
19223 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
19224 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
19225 s
&@srcdir@
&$ac_srcdir&;t t
19226 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
19227 s
&@top_srcdir@
&$ac_top_srcdir&;t t
19228 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
19229 s
&@builddir@
&$ac_builddir&;t t
19230 s
&@abs_builddir@
&$ac_abs_builddir&;t t
19231 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
19232 $ac_datarootdir_hack
19234 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
19235 || { { $as_echo "$as_me:$LINENO: error
: could not create
$ac_file" >&5
19236 $as_echo "$as_me: error
: could not create
$ac_file" >&2;}
19237 { (exit 1); exit 1; }; }
19239 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19240 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
19241 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
19242 { $as_echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
19243 which seems to be undefined. Please make sure it is defined." >&5
19244 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
19245 which seems to be undefined. Please make sure it is defined." >&2;}
19249 -) cat "$tmp/out" && rm -f "$tmp/out";;
19250 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
19252 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19253 $as_echo "$as_me: error: could not create $ac_file" >&2;}
19254 { (exit 1); exit 1; }; }
19260 if test x"$ac_file" != x-; then
19262 $as_echo "/* $configure_input */" \
19263 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
19264 } >"$tmp/config.h" \
19265 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19266 $as_echo "$as_me: error: could not create $ac_file" >&2;}
19267 { (exit 1); exit 1; }; }
19268 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
19269 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19270 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19273 mv "$tmp/config.h" "$ac_file" \
19274 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19275 $as_echo "$as_me: error: could not create $ac_file" >&2;}
19276 { (exit 1); exit 1; }; }
19279 $as_echo "/* $configure_input */" \
19280 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
19281 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
19282 $as_echo "$as_me: error: could not create -" >&2;}
19283 { (exit 1); exit 1; }; }
19293 { (exit 0); exit 0; }
19295 chmod +x $CONFIG_STATUS
19296 ac_clean_files=$ac_clean_files_save
19298 test $ac_write_fail = 0 ||
19299 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
19300 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
19301 { (exit 1); exit 1; }; }
19304 # configure is writing to config.log, and then calls config.status.
19305 # config.status does its own redirection, appending to config.log.
19306 # Unfortunately, on DOS this fails, as config.log is still kept open
19307 # by configure, so config.status won't be able to
write to it
; its
19308 # output is simply discarded. So we exec the FD to /dev/null,
19309 # effectively closing config.log, so it can be properly (re)opened and
19310 # appended to by config.status. When coming back to configure, we
19311 # need to make the FD available again.
19312 if test "$no_create" != yes; then
19314 ac_config_status_args
=
19315 test "$silent" = yes &&
19316 ac_config_status_args
="$ac_config_status_args --quiet"
19318 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
19319 exec 5>>auto
/config.log
19320 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19321 # would make configure fail if this is the last instruction.
19322 $ac_cs_success ||
{ (exit 1); exit 1; }
19324 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
19325 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19326 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}