2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.62.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE
=1; export DUALCASE
# for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
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>
647 program_transform_name
712 vi_cv_path_ecl_config
720 PYTHON_GETPATH_CFLAGS
777 enable_option_checking
791 enable_mzschemeinterp
796 with_python_config_dir
830 ac_precious_vars
='build_alias
842 # Initialize some variables set by options.
844 ac_init_version
=false
845 ac_unrecognized_opts
=
847 # The variables have the same names as the options, with
848 # dashes changed to underlines.
856 program_transform_name
=s
,x
,x
,
864 # Installation directory options.
865 # These are left unexpanded so users can "make install exec_prefix=/foo"
866 # and all the variables that are supposed to be based on exec_prefix
867 # by default will actually change.
868 # Use braces instead of parens because sh, perl, etc. also accept them.
869 # (The list follows the same order as the GNU Coding Standards.)
870 bindir
='${exec_prefix}/bin'
871 sbindir
='${exec_prefix}/sbin'
872 libexecdir
='${exec_prefix}/libexec'
873 datarootdir
='${prefix}/share'
874 datadir
='${datarootdir}'
875 sysconfdir
='${prefix}/etc'
876 sharedstatedir
='${prefix}/com'
877 localstatedir
='${prefix}/var'
878 includedir
='${prefix}/include'
879 oldincludedir
='/usr/include'
880 docdir
='${datarootdir}/doc/${PACKAGE}'
881 infodir
='${datarootdir}/info'
886 libdir
='${exec_prefix}/lib'
887 localedir
='${datarootdir}/locale'
888 mandir
='${datarootdir}/man'
894 # If the previous option needs an argument, assign it.
895 if test -n "$ac_prev"; then
896 eval $ac_prev=\
$ac_option
902 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
906 # Accept the important Cygnus configure options, so we can diagnose typos.
908 case $ac_dashdash$ac_option in
912 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
914 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
917 -build |
--build |
--buil |
--bui |
--bu)
918 ac_prev
=build_alias
;;
919 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
920 build_alias
=$ac_optarg ;;
922 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
923 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
924 ac_prev
=cache_file
;;
925 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
926 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
927 cache_file
=$ac_optarg ;;
930 cache_file
=config.cache
;;
932 -datadir |
--datadir |
--datadi |
--datad)
934 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
935 datadir
=$ac_optarg ;;
937 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
938 |
--dataroo |
--dataro |
--datar)
939 ac_prev
=datarootdir
;;
940 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
941 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
942 datarootdir
=$ac_optarg ;;
944 -disable-* |
--disable-*)
945 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
946 # Reject names that are not valid shell variable names.
947 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
948 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
949 { (exit 1); exit 1; }; }
950 ac_useropt_orig
=$ac_useropt
951 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
952 case $ac_user_opts in
956 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
957 ac_unrecognized_sep
=', ';;
959 eval enable_
$ac_useropt=no
;;
961 -docdir |
--docdir |
--docdi |
--doc |
--do)
963 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
966 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
968 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
971 -enable-* |
--enable-*)
972 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
973 # Reject names that are not valid shell variable names.
974 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
975 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
976 { (exit 1); exit 1; }; }
977 ac_useropt_orig
=$ac_useropt
978 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
979 case $ac_user_opts in
983 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
984 ac_unrecognized_sep
=', ';;
986 eval enable_
$ac_useropt=\
$ac_optarg ;;
988 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
989 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
990 |
--exec |
--exe |
--ex)
991 ac_prev
=exec_prefix
;;
992 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
993 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
994 |
--exec=* |
--exe=* |
--ex=*)
995 exec_prefix
=$ac_optarg ;;
997 -gas |
--gas |
--ga |
--g)
998 # Obsolete; use --with-gas.
1001 -help |
--help |
--hel |
--he |
-h)
1002 ac_init_help
=long
;;
1003 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1004 ac_init_help
=recursive
;;
1005 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1006 ac_init_help
=short
;;
1008 -host |
--host |
--hos |
--ho)
1009 ac_prev
=host_alias
;;
1010 -host=* |
--host=* |
--hos=* |
--ho=*)
1011 host_alias
=$ac_optarg ;;
1013 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1015 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1017 htmldir
=$ac_optarg ;;
1019 -includedir |
--includedir |
--includedi |
--included |
--include \
1020 |
--includ |
--inclu |
--incl |
--inc)
1021 ac_prev
=includedir
;;
1022 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1023 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1024 includedir
=$ac_optarg ;;
1026 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1028 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1029 infodir
=$ac_optarg ;;
1031 -libdir |
--libdir |
--libdi |
--libd)
1033 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1034 libdir
=$ac_optarg ;;
1036 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1037 |
--libexe |
--libex |
--libe)
1038 ac_prev
=libexecdir
;;
1039 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1040 |
--libexe=* |
--libex=* |
--libe=*)
1041 libexecdir
=$ac_optarg ;;
1043 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1044 ac_prev
=localedir
;;
1045 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1046 localedir
=$ac_optarg ;;
1048 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1049 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1050 ac_prev
=localstatedir
;;
1051 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1052 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1053 localstatedir
=$ac_optarg ;;
1055 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1057 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1058 mandir
=$ac_optarg ;;
1060 -nfp |
--nfp |
--nf)
1061 # Obsolete; use --without-fp.
1064 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1065 |
--no-cr |
--no-c |
-n)
1068 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1069 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1072 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1073 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1074 |
--oldin |
--oldi |
--old |
--ol |
--o)
1075 ac_prev
=oldincludedir
;;
1076 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1077 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1078 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1079 oldincludedir
=$ac_optarg ;;
1081 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1083 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1084 prefix
=$ac_optarg ;;
1086 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1087 |
--program-pre |
--program-pr |
--program-p)
1088 ac_prev
=program_prefix
;;
1089 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1090 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1091 program_prefix
=$ac_optarg ;;
1093 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1094 |
--program-suf |
--program-su |
--program-s)
1095 ac_prev
=program_suffix
;;
1096 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1097 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1098 program_suffix
=$ac_optarg ;;
1100 -program-transform-name |
--program-transform-name \
1101 |
--program-transform-nam |
--program-transform-na \
1102 |
--program-transform-n |
--program-transform- \
1103 |
--program-transform |
--program-transfor \
1104 |
--program-transfo |
--program-transf \
1105 |
--program-trans |
--program-tran \
1106 |
--progr-tra |
--program-tr |
--program-t)
1107 ac_prev
=program_transform_name
;;
1108 -program-transform-name=* |
--program-transform-name=* \
1109 |
--program-transform-nam=* |
--program-transform-na=* \
1110 |
--program-transform-n=* |
--program-transform-=* \
1111 |
--program-transform=* |
--program-transfor=* \
1112 |
--program-transfo=* |
--program-transf=* \
1113 |
--program-trans=* |
--program-tran=* \
1114 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1115 program_transform_name
=$ac_optarg ;;
1117 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1119 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1120 pdfdir
=$ac_optarg ;;
1122 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1124 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1127 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1128 |
-silent |
--silent |
--silen |
--sile |
--sil)
1131 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1133 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1135 sbindir
=$ac_optarg ;;
1137 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1138 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1139 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1141 ac_prev
=sharedstatedir
;;
1142 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1143 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1144 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1146 sharedstatedir
=$ac_optarg ;;
1148 -site |
--site |
--sit)
1150 -site=* |
--site=* |
--sit=*)
1153 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1155 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1156 srcdir
=$ac_optarg ;;
1158 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1159 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1160 ac_prev
=sysconfdir
;;
1161 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1162 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1163 sysconfdir
=$ac_optarg ;;
1165 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1166 ac_prev
=target_alias
;;
1167 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1168 target_alias
=$ac_optarg ;;
1170 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1173 -version |
--version |
--versio |
--versi |
--vers |
-V)
1174 ac_init_version
=: ;;
1177 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1178 # Reject names that are not valid shell variable names.
1179 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1180 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1181 { (exit 1); exit 1; }; }
1182 ac_useropt_orig
=$ac_useropt
1183 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1184 case $ac_user_opts in
1188 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1189 ac_unrecognized_sep
=', ';;
1191 eval with_
$ac_useropt=\
$ac_optarg ;;
1193 -without-* |
--without-*)
1194 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1195 # Reject names that are not valid shell variable names.
1196 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1197 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1198 { (exit 1); exit 1; }; }
1199 ac_useropt_orig
=$ac_useropt
1200 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1201 case $ac_user_opts in
1205 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1206 ac_unrecognized_sep
=', ';;
1208 eval with_
$ac_useropt=no
;;
1211 # Obsolete; use --with-x.
1214 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1215 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1216 ac_prev
=x_includes
;;
1217 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1218 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1219 x_includes
=$ac_optarg ;;
1221 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1222 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1223 ac_prev
=x_libraries
;;
1224 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1225 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1226 x_libraries
=$ac_optarg ;;
1228 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1229 Try \`$0 --help' for more information." >&2
1230 { (exit 1); exit 1; }; }
1234 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1235 # Reject names that are not valid shell variable names.
1236 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1237 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1238 { (exit 1); exit 1; }; }
1239 eval $ac_envvar=\
$ac_optarg
1240 export $ac_envvar ;;
1243 # FIXME: should be removed in autoconf 3.0.
1244 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1245 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1246 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1247 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1253 if test -n "$ac_prev"; then
1254 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1255 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1256 { (exit 1); exit 1; }; }
1259 if test -n "$ac_unrecognized_opts"; then
1260 case $enable_option_checking in
1262 fatal
) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1263 { (exit 1); exit 1; }; } ;;
1264 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1268 # Check all directory arguments for consistency.
1269 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1270 datadir sysconfdir sharedstatedir localstatedir includedir \
1271 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1272 libdir localedir mandir
1274 eval ac_val
=\$
$ac_var
1275 # Remove trailing slashes.
1278 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1279 eval $ac_var=\
$ac_val;;
1281 # Be sure to have absolute directory names.
1283 [\\/$
]* | ?
:[\\/]* ) continue;;
1284 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1286 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1287 { (exit 1); exit 1; }; }
1290 # There might be people who depend on the old broken behavior: `$host'
1291 # used to hold the argument of --host etc.
1292 # FIXME: To remove some day.
1295 target
=$target_alias
1297 # FIXME: To remove some day.
1298 if test "x$host_alias" != x
; then
1299 if test "x$build_alias" = x
; then
1300 cross_compiling
=maybe
1301 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1302 If a cross compiler is detected then cross compile mode will be used." >&2
1303 elif test "x$build_alias" != "x$host_alias"; then
1309 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1311 test "$silent" = yes && exec 6>/dev
/null
1314 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1315 ac_ls_di
=`ls -di .` &&
1316 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1317 { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1318 { (exit 1); exit 1; }; }
1319 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1320 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1321 { (exit 1); exit 1; }; }
1324 # Find the source files, if location was not specified.
1325 if test -z "$srcdir"; then
1326 ac_srcdir_defaulted
=yes
1327 # Try the directory containing this script, then the parent directory.
1328 ac_confdir
=`$as_dirname -- "$as_myself" ||
1329 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1330 X"$as_myself" : 'X\(//\)[^/]' \| \
1331 X"$as_myself" : 'X\(//\)$' \| \
1332 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1333 $as_echo X"$as_myself" |
1334 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1352 if test ! -r "$srcdir/$ac_unique_file"; then
1356 ac_srcdir_defaulted
=no
1358 if test ! -r "$srcdir/$ac_unique_file"; then
1359 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1360 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1361 { (exit 1); exit 1; }; }
1363 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1365 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1366 { (exit 1); exit 1; }; }
1368 # When building in place, set srcdir=.
1369 if test "$ac_abs_confdir" = "$ac_pwd"; then
1372 # Remove unnecessary trailing slashes from srcdir.
1373 # Double slashes in file names in object file debugging info
1374 # mess up M-x gdb in Emacs.
1376 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1378 for ac_var
in $ac_precious_vars; do
1379 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1380 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1381 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1382 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1386 # Report the --help message.
1388 if test "$ac_init_help" = "long"; then
1389 # Omit some internal or obsolete options to make the list less imposing.
1390 # This message is too long to be a string in the A/UX 3.1 sh.
1392 \`configure' configures this package to adapt to many kinds of systems.
1394 Usage: $0 [OPTION]... [VAR=VALUE]...
1396 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1397 VAR=VALUE. See below for descriptions of some of the useful variables.
1399 Defaults for the options are specified in brackets.
1402 -h, --help display this help and exit
1403 --help=short display options specific to this package
1404 --help=recursive display the short help of all the included packages
1405 -V, --version display version information and exit
1406 -q, --quiet, --silent do not print \`checking...' messages
1407 --cache-file=FILE cache test results in FILE [disabled]
1408 -C, --config-cache alias for \`--cache-file=config.cache'
1409 -n, --no-create do not create output files
1410 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1412 Installation directories:
1413 --prefix=PREFIX install architecture-independent files in PREFIX
1414 [$ac_default_prefix]
1415 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1418 By default, \`make install' will install all the files in
1419 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1420 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1421 for instance \`--prefix=\$HOME'.
1423 For better control, use the options below.
1425 Fine tuning of the installation directories:
1426 --bindir=DIR user executables [EPREFIX/bin]
1427 --sbindir=DIR system admin executables [EPREFIX/sbin]
1428 --libexecdir=DIR program executables [EPREFIX/libexec]
1429 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1430 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1431 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1432 --libdir=DIR object code libraries [EPREFIX/lib]
1433 --includedir=DIR C header files [PREFIX/include]
1434 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1435 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1436 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1437 --infodir=DIR info documentation [DATAROOTDIR/info]
1438 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1439 --mandir=DIR man documentation [DATAROOTDIR/man]
1440 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1441 --htmldir=DIR html documentation [DOCDIR]
1442 --dvidir=DIR dvi documentation [DOCDIR]
1443 --pdfdir=DIR pdf documentation [DOCDIR]
1444 --psdir=DIR ps documentation [DOCDIR]
1450 --x-includes=DIR X include files are
in DIR
1451 --x-libraries=DIR X library files are
in DIR
1455 if test -n "$ac_init_help"; then
1460 --disable-option-checking ignore unrecognized
--enable/--with options
1461 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1462 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1463 --disable-darwin Disable Darwin
(Mac OS X
) support.
1464 --disable-selinux Don
't check for SELinux support.
1465 --disable-xsmp Disable XSMP session management
1466 --disable-xsmp-interact Disable XSMP interaction
1467 --enable-mzschemeinterp Include MzScheme interpreter.
1468 --enable-perlinterp Include Perl interpreter.
1469 --enable-eclinterp Include ECL compiler.
1470 --enable-pythoninterp Include Python interpreter.
1471 --enable-tclinterp Include Tcl interpreter.
1472 --enable-rubyinterp Include Ruby interpreter.
1473 --enable-cscope Include cscope interface.
1474 --enable-workshop Include Sun Visual Workshop support.
1475 --disable-netbeans Disable NetBeans integration support.
1476 --enable-sniff Include Sniff interface.
1477 --enable-multibyte Include multibyte editing support.
1478 --enable-hangulinput Include Hangul input support.
1479 --enable-xim Include XIM input support.
1480 --enable-fontset Include X fontset output support.
1481 --enable-gui=OPTS X11 GUI default=auto OPTS=auto/no/gtk/gtk2/gnome/gnome2/motif/athena/neXtaw/photon/carbon
1482 --enable-gtk-check If auto-select GUI, check for GTK default=yes
1483 --enable-gtk2-check If GTK GUI, check for GTK+ 2 default=yes
1484 --enable-gnome-check If GTK GUI, check for GNOME default=no
1485 --enable-motif-check If auto-select GUI, check for Motif default=yes
1486 --enable-athena-check If auto-select GUI, check for Athena default=yes
1487 --enable-nextaw-check If auto-select GUI, check for neXtaw default=yes
1488 --enable-carbon-check If auto-select GUI, check for Carbon default=yes
1489 --disable-gtktest Do not try to compile and run a test GTK program
1490 --disable-acl Don't check
for ACL support.
1491 --disable-gpm Don
't use gpm (Linux mouse daemon).
1492 --disable-sysmouse Don't use sysmouse
(mouse
in *BSD console
).
1493 --disable-nls Don
't support NLS (gettext()).
1496 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1497 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1498 --with-mac-arch=ARCH current, intel, ppc or both
1499 --with-local-dir=PATH search PATH instead of /usr/local for local libraries.
1500 --without-local-dir do not search /usr/local for local libraries.
1501 --with-vim-name=NAME what to call the Vim executable
1502 --with-ex-name=NAME what to call the Ex executable
1503 --with-view-name=NAME what to call the View executable
1504 --with-global-runtime=DIR global runtime directory in 'runtimepath
'
1505 --with-modified-by=NAME name of who modified a release version
1506 --with-features=TYPE tiny, small, normal, big or huge (default: normal)
1507 --with-compiledby=NAME name to show in :version message
1508 --with-plthome=PLTHOME Use PLTHOME.
1509 --with-python-config-dir=PATH Python's config directory
1510 --with-tclsh=PATH
which tclsh to use
(default
: tclsh8.0
)
1511 --with-x use the X Window System
1512 --with-gtk-prefix=PFX Prefix where GTK is installed
(optional
)
1513 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed
(optional
)
1514 --with-gnome-includes=DIR Specify location of GNOME headers
1515 --with-gnome-libs=DIR Specify location of GNOME libs
1516 --with-gnome Specify prefix
for GNOME files
1517 --with-motif-lib=STRING Library
for Motif
1518 --with-tlib=library terminal library to be used
1520 Some influential environment variables
:
1521 CC C compiler
command
1522 CFLAGS C compiler flags
1523 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1524 nonstandard directory
<lib dir
>
1525 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1526 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1527 you have headers
in a nonstandard directory
<include dir
>
1529 XMKMF Path to xmkmf
, Makefile generator
for X Window System
1531 Use these variables to override the choices made by
`configure' or to help
1532 it to find libraries and programs with nonstandard names/locations.
1538 if test "$ac_init_help" = "recursive"; then
1539 # If there are subdirs, report their specific --help.
1540 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1541 test -d "$ac_dir" ||
1542 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1547 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1549 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1550 # A ".." for each directory in $ac_dir_suffix.
1551 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1552 case $ac_top_builddir_sub in
1553 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1554 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1557 ac_abs_top_builddir=$ac_pwd
1558 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1559 # for backward compatibility:
1560 ac_top_builddir=$ac_top_build_prefix
1563 .) # We are building in place.
1565 ac_top_srcdir=$ac_top_builddir_sub
1566 ac_abs_top_srcdir=$ac_pwd ;;
1567 [\\/]* | ?:[\\/]* ) # Absolute name.
1568 ac_srcdir=$srcdir$ac_dir_suffix;
1569 ac_top_srcdir=$srcdir
1570 ac_abs_top_srcdir=$srcdir ;;
1572 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1573 ac_top_srcdir=$ac_top_build_prefix$srcdir
1574 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1576 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1578 cd "$ac_dir" || { ac_status=$?; continue; }
1579 # Check for guested configure.
1580 if test -f "$ac_srcdir/configure.gnu"; then
1582 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1583 elif test -f "$ac_srcdir/configure"; then
1585 $SHELL "$ac_srcdir/configure" --help=recursive
1587 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1589 cd "$ac_pwd" || { ac_status=$?; break; }
1593 test -n "$ac_init_help" && exit $ac_status
1594 if $ac_init_version; then
1597 generated by GNU Autoconf 2.62
1599 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1600 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1601 This configure script is free software; the Free Software Foundation
1602 gives unlimited permission to copy, distribute and modify it.
1606 cat >auto/config.log <<_ACEOF
1607 This file contains any messages produced by compilers while
1608 running configure, to aid debugging if configure makes a mistake.
1610 It was created by $as_me, which was
1611 generated by GNU Autoconf 2.62. Invocation command line was
1616 exec 5>>auto/config.log
1623 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1624 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1625 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1626 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1627 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1629 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1630 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1632 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1633 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1634 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1635 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1636 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1637 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1638 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1646 test -z "$as_dir" && as_dir=.
1647 $as_echo "PATH: $as_dir"
1663 # Keep a trace of the command line.
1664 # Strip out --no-create and --no-recursion so they do not pile up.
1665 # Strip out --silent because we don't want to record it for future runs.
1666 # Also quote any args containing shell meta-characters.
1667 # Make two passes to allow for proper duplicate-argument suppression.
1671 ac_must_keep_next=false
1677 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1678 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1679 | -silent | --silent | --silen | --sile | --sil)
1682 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1685 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1687 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1688 if test $ac_must_keep_next = true; then
1689 ac_must_keep_next=false # Got value, back to normal.
1692 *=* | --config-cache | -C | -disable-* | --disable-* \
1693 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1694 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1695 | -with-* | --with-* | -without-* | --without-* | --x)
1696 case "$ac_configure_args0 " in
1697 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1700 -* ) ac_must_keep_next=true ;;
1703 ac_configure_args="$ac_configure_args '$ac_arg'"
1708 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1709 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1711 # When interrupted or exit'd, cleanup temporary files, and complete
1712 # config.log. We remove comments because anyway the quotes in there
1713 # would cause problems or look ugly.
1714 # WARNING: Use '\'' to represent an apostrophe within the trap.
1715 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1716 trap 'exit_status=$?
1717 # Save into config.log some information that might help in debugging.
1722 ## ---------------- ##
1723 ## Cache variables. ##
1724 ## ---------------- ##
1727 # The following way of writing the cache mishandles newlines in values,
1729 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1730 eval ac_val=\$$ac_var
1734 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1735 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1738 _ | IFS | as_nl) ;; #(
1739 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1740 *) $as_unset $ac_var ;;
1745 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1746 *${as_nl}ac_space=\ *)
1748 "s/'\''/'\''\\\\'\'''\''/g;
1749 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1752 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1760 ## ----------------- ##
1761 ## Output variables. ##
1762 ## ----------------- ##
1765 for ac_var in $ac_subst_vars
1767 eval ac_val=\$$ac_var
1769 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1771 $as_echo "$ac_var='\''$ac_val'\''"
1775 if test -n "$ac_subst_files"; then
1777 ## ------------------- ##
1778 ## File substitutions. ##
1779 ## ------------------- ##
1782 for ac_var in $ac_subst_files
1784 eval ac_val=\$$ac_var
1786 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1788 $as_echo "$ac_var='\''$ac_val'\''"
1793 if test -s confdefs.h; then
1803 test "$ac_signal" != 0 &&
1804 $as_echo "$as_me: caught signal $ac_signal"
1805 $as_echo "$as_me: exit $exit_status"
1807 rm -f core *.core core.conftest.* &&
1808 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1811 for ac_signal in 1 2 13 15; do
1812 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1816 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1817 rm -f -r conftest* confdefs.h
1819 # Predefined preprocessor variables.
1821 cat >>confdefs.h <<_ACEOF
1822 #define PACKAGE_NAME "$PACKAGE_NAME"
1826 cat >>confdefs.h <<_ACEOF
1827 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1831 cat >>confdefs.h <<_ACEOF
1832 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1836 cat >>confdefs.h <<_ACEOF
1837 #define PACKAGE_STRING "$PACKAGE_STRING"
1841 cat >>confdefs.h <<_ACEOF
1842 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1846 # Let the site file select an alternate cache file if it wants to.
1847 # Prefer an explicitly selected file to automatically selected ones.
1850 if test -n "$CONFIG_SITE"; then
1851 ac_site_file1=$CONFIG_SITE
1852 elif test "x$prefix" != xNONE; then
1853 ac_site_file1=$prefix/share/config.site
1854 ac_site_file2=$prefix/etc/config.site
1856 ac_site_file1=$ac_default_prefix/share/config.site
1857 ac_site_file2=$ac_default_prefix/etc/config.site
1859 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1861 test "x$ac_site_file" = xNONE && continue
1862 if test -r "$ac_site_file"; then
1863 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1864 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1865 sed 's/^/| /' "$ac_site_file" >&5
1870 if test -r "$cache_file"; then
1871 # Some versions of bash will fail to source /dev/null (special
1872 # files actually), so we avoid doing that.
1873 if test -f "$cache_file"; then
1874 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1875 $as_echo "$as_me: loading cache $cache_file" >&6;}
1877 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1878 *) . "./$cache_file";;
1882 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1883 $as_echo "$as_me: creating cache $cache_file" >&6;}
1887 # Check that the precious variables saved in the cache have kept the same
1889 ac_cache_corrupted=false
1890 for ac_var in $ac_precious_vars; do
1891 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1892 eval ac_new_set=\$ac_env_${ac_var}_set
1893 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1894 eval ac_new_val=\$ac_env_${ac_var}_value
1895 case $ac_old_set,$ac_new_set in
1897 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1898 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1899 ac_cache_corrupted=: ;;
1901 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1902 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1903 ac_cache_corrupted=: ;;
1906 if test "x$ac_old_val" != "x$ac_new_val"; then
1907 # differences in whitespace do not lead to failure.
1908 ac_old_val_w=`echo x
$ac_old_val`
1909 ac_new_val_w=`echo x
$ac_new_val`
1910 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1911 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1912 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1913 ac_cache_corrupted=:
1915 { $as_echo "$as_me:$LINENO: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
1916 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1917 eval $ac_var=\$ac_old_val
1919 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1920 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
1921 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1922 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1925 # Pass precious variables to config.status.
1926 if test "$ac_new_set" = set; then
1928 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1929 *) ac_arg=$ac_var=$ac_new_val ;;
1931 case " $ac_configure_args " in
1932 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1933 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1937 if $ac_cache_corrupted; then
1938 { $as_echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1939 $as_echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1940 { { $as_echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1941 $as_echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1942 { (exit 1); exit 1; }; }
1962 ac_cpp='$CPP $CPPFLAGS'
1963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1968 ac_config_headers="$ac_config_headers auto/config.h:config.h.in"
1971 cat >>confdefs.h <<\_ACEOF
1975 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1976 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
1978 ac_make=`$as_echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
1979 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
1980 $as_echo_n "(cached) " >&6
1982 cat >conftest.make <<\_ACEOF
1985 @echo '@@@%%%=$(MAKE)=@@@%%%'
1987 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1988 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
1990 eval ac_cv_prog_make_${ac_make}_set=yes;;
1992 eval ac_cv_prog_make_${ac_make}_set=no;;
1996 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
1997 { $as_echo "$as_me:$LINENO: result: yes" >&5
1998 $as_echo "yes" >&6; }
2001 { $as_echo "$as_me:$LINENO: result: no" >&5
2002 $as_echo "no" >&6; }
2003 SET_MAKE="MAKE=${MAKE-make}"
2008 ac_cpp='$CPP $CPPFLAGS'
2009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2012 if test -n "$ac_tool_prefix"; then
2013 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2014 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2015 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2016 $as_echo_n "checking for $ac_word... " >&6; }
2017 if test "${ac_cv_prog_CC+set}" = set; then
2018 $as_echo_n "(cached) " >&6
2020 if test -n "$CC"; then
2021 ac_cv_prog_CC="$CC" # Let the user override the test.
2023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2027 test -z "$as_dir" && as_dir=.
2028 for ac_exec_ext in '' $ac_executable_extensions; do
2029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2030 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2031 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2041 if test -n "$CC"; then
2042 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2043 $as_echo "$CC" >&6; }
2045 { $as_echo "$as_me:$LINENO: result: no" >&5
2046 $as_echo "no" >&6; }
2051 if test -z "$ac_cv_prog_CC"; then
2053 # Extract the first word of "gcc", so it can be a program name with args.
2054 set dummy gcc; ac_word=$2
2055 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2056 $as_echo_n "checking for $ac_word... " >&6; }
2057 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2058 $as_echo_n "(cached) " >&6
2060 if test -n "$ac_ct_CC"; then
2061 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2067 test -z "$as_dir" && as_dir=.
2068 for ac_exec_ext in '' $ac_executable_extensions; do
2069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2070 ac_cv_prog_ac_ct_CC="gcc"
2071 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2080 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2081 if test -n "$ac_ct_CC"; then
2082 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2083 $as_echo "$ac_ct_CC" >&6; }
2085 { $as_echo "$as_me:$LINENO: result: no" >&5
2086 $as_echo "no" >&6; }
2089 if test "x$ac_ct_CC" = x; then
2092 case $cross_compiling:$ac_tool_warned in
2094 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2095 whose name does not start with the host triplet. If you think this
2096 configuration is useful to you, please write to autoconf@gnu.org." >&5
2097 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2098 whose name does not start with the host triplet. If you think this
2099 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2100 ac_tool_warned=yes ;;
2108 if test -z "$CC"; then
2109 if test -n "$ac_tool_prefix"; then
2110 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2111 set dummy ${ac_tool_prefix}cc; ac_word=$2
2112 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2113 $as_echo_n "checking for $ac_word... " >&6; }
2114 if test "${ac_cv_prog_CC+set}" = set; then
2115 $as_echo_n "(cached) " >&6
2117 if test -n "$CC"; then
2118 ac_cv_prog_CC="$CC" # Let the user override the test.
2120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2124 test -z "$as_dir" && as_dir=.
2125 for ac_exec_ext in '' $ac_executable_extensions; do
2126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2127 ac_cv_prog_CC="${ac_tool_prefix}cc"
2128 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2138 if test -n "$CC"; then
2139 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2140 $as_echo "$CC" >&6; }
2142 { $as_echo "$as_me:$LINENO: result: no" >&5
2143 $as_echo "no" >&6; }
2149 if test -z "$CC"; then
2150 # Extract the first word of "cc", so it can be a program name with args.
2151 set dummy cc; ac_word=$2
2152 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2153 $as_echo_n "checking for $ac_word... " >&6; }
2154 if test "${ac_cv_prog_CC+set}" = set; then
2155 $as_echo_n "(cached) " >&6
2157 if test -n "$CC"; then
2158 ac_cv_prog_CC="$CC" # Let the user override the test.
2161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2165 test -z "$as_dir" && as_dir=.
2166 for ac_exec_ext in '' $ac_executable_extensions; do
2167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2168 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2169 ac_prog_rejected=yes
2173 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2180 if test $ac_prog_rejected = yes; then
2181 # We found a bogon in the path, so make sure we never use it.
2182 set dummy $ac_cv_prog_CC
2184 if test $# != 0; then
2185 # We chose a different compiler from the bogus one.
2186 # However, it has the same basename, so the bogon will be chosen
2187 # first if we set CC to just the basename; use the full file name.
2189 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2195 if test -n "$CC"; then
2196 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2197 $as_echo "$CC" >&6; }
2199 { $as_echo "$as_me:$LINENO: result: no" >&5
2200 $as_echo "no" >&6; }
2205 if test -z "$CC"; then
2206 if test -n "$ac_tool_prefix"; then
2207 for ac_prog in cl.exe
2209 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2210 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2211 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2212 $as_echo_n "checking for $ac_word... " >&6; }
2213 if test "${ac_cv_prog_CC+set}" = set; then
2214 $as_echo_n "(cached) " >&6
2216 if test -n "$CC"; then
2217 ac_cv_prog_CC="$CC" # Let the user override the test.
2219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2223 test -z "$as_dir" && as_dir=.
2224 for ac_exec_ext in '' $ac_executable_extensions; do
2225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2226 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2227 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2237 if test -n "$CC"; then
2238 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2239 $as_echo "$CC" >&6; }
2241 { $as_echo "$as_me:$LINENO: result: no" >&5
2242 $as_echo "no" >&6; }
2246 test -n "$CC" && break
2249 if test -z "$CC"; then
2251 for ac_prog in cl.exe
2253 # Extract the first word of "$ac_prog", so it can be a program name with args.
2254 set dummy $ac_prog; ac_word=$2
2255 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2256 $as_echo_n "checking for $ac_word... " >&6; }
2257 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2258 $as_echo_n "(cached) " >&6
2260 if test -n "$ac_ct_CC"; then
2261 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2267 test -z "$as_dir" && as_dir=.
2268 for ac_exec_ext in '' $ac_executable_extensions; do
2269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2270 ac_cv_prog_ac_ct_CC="$ac_prog"
2271 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2280 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2281 if test -n "$ac_ct_CC"; then
2282 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2283 $as_echo "$ac_ct_CC" >&6; }
2285 { $as_echo "$as_me:$LINENO: result: no" >&5
2286 $as_echo "no" >&6; }
2290 test -n "$ac_ct_CC" && break
2293 if test "x$ac_ct_CC" = x; then
2296 case $cross_compiling:$ac_tool_warned in
2298 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2299 whose name does not start with the host triplet. If you think this
2300 configuration is useful to you, please write to autoconf@gnu.org." >&5
2301 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2302 whose name does not start with the host triplet. If you think this
2303 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2304 ac_tool_warned=yes ;;
2313 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2314 See \`config.log
' for more details." >&5
2315 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2316 See \`config.log' for more details.
" >&2;}
2317 { (exit 1); exit 1; }; }
2319 # Provide some information about the compiler.
2320 $as_echo "$as_me:$LINENO: checking
for C compiler version
" >&5
2323 { (ac_try="$ac_compiler --version >&5"
2325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2326 *) ac_try_echo=$ac_try;;
2328 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
2329 $as_echo "$ac_try_echo") >&5
2330 (eval "$ac_compiler --version >&5") 2>&5
2332 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2333 (exit $ac_status); }
2334 { (ac_try="$ac_compiler -v >&5"
2336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2337 *) ac_try_echo=$ac_try;;
2339 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
2340 $as_echo "$ac_try_echo") >&5
2341 (eval "$ac_compiler -v >&5") 2>&5
2343 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2344 (exit $ac_status); }
2345 { (ac_try="$ac_compiler -V >&5"
2347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2348 *) ac_try_echo=$ac_try;;
2350 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
2351 $as_echo "$ac_try_echo") >&5
2352 (eval "$ac_compiler -V >&5") 2>&5
2354 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2355 (exit $ac_status); }
2357 cat >conftest.$ac_ext <<_ACEOF
2360 cat confdefs.h >>conftest.$ac_ext
2361 cat >>conftest.$ac_ext <<_ACEOF
2362 /* end confdefs.h. */
2372 ac_clean_files_save=$ac_clean_files
2373 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out
"
2374 # Try to create an executable without -o first, disregard a.out.
2375 # It will help us diagnose broken compilers, and finding out an intuition
2377 { $as_echo "$as_me:$LINENO: checking
for C compiler default output
file name
" >&5
2378 $as_echo_n "checking
for C compiler default output
file name...
" >&6; }
2379 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2381 # The possible output files:
2382 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.
*"
2385 for ac_file in $ac_files
2388 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2389 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2394 if { (ac_try="$ac_link_default"
2396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2397 *) ac_try_echo=$ac_try;;
2399 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
2400 $as_echo "$ac_try_echo") >&5
2401 (eval "$ac_link_default") 2>&5
2403 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2404 (exit $ac_status); }; then
2405 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2406 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2407 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2408 # so that the user can short-circuit this test for compilers unknown to
2410 for ac_file in $ac_files ''
2412 test -f "$ac_file" || continue
2414 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2417 # We found the default executable, but exeext='' is most
2421 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2423 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2425 # We set ac_cv_exeext here because the later test for it is not
2426 # safe: cross compilers may not add the suffix if given an `-o'
2427 # argument, so we may need to know it at that point already.
2428 # Even if this section looks crufty: it has the advantage of
2435 test "$ac_cv_exeext" = no && ac_cv_exeext=
2441 { $as_echo "$as_me:$LINENO: result
: $ac_file" >&5
2442 $as_echo "$ac_file" >&6; }
2443 if test -z "$ac_file"; then
2444 $as_echo "$as_me: failed program was
:" >&5
2445 sed 's/^/| /' conftest.$ac_ext >&5
2447 { { $as_echo "$as_me:$LINENO: error
: C compiler cannot create executables
2448 See \
`config.log' for more details." >&5
2449 $as_echo "$as_me: error: C compiler cannot create executables
2450 See \`config.log
' for more details." >&2;}
2451 { (exit 77); exit 77; }; }
2454 ac_exeext=$ac_cv_exeext
2456 # Check that the compiler produces executables we can run. If not, either
2457 # the compiler is broken, or we cross compile.
2458 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2459 $as_echo_n "checking whether the C compiler works... " >&6; }
2460 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2461 # If not cross compiling, check that we can run a simple program.
2462 if test "$cross_compiling" != yes; then
2463 if { ac_try='.
/$ac_file'
2464 { (case "(($ac_try" in
2465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2466 *) ac_try_echo=$ac_try;;
2468 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2469 $as_echo "$ac_try_echo") >&5
2470 (eval "$ac_try") 2>&5
2472 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473 (exit $ac_status); }; }; then
2476 if test "$cross_compiling" = maybe; then
2479 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2480 If you meant to cross compile, use \`--host'.
2481 See \
`config.log' for more details." >&5
2482 $as_echo "$as_me: error: cannot run C compiled programs.
2483 If you meant to cross compile, use \`--host'.
2484 See \`config.log' for more details.
" >&2;}
2485 { (exit 1); exit 1; }; }
2489 { $as_echo "$as_me:$LINENO: result
: yes" >&5
2490 $as_echo "yes" >&6; }
2492 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2493 ac_clean_files=$ac_clean_files_save
2494 # Check that the compiler produces executables we can run. If not, either
2495 # the compiler is broken, or we cross compile.
2496 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling
" >&5
2497 $as_echo_n "checking whether we are cross compiling...
" >&6; }
2498 { $as_echo "$as_me:$LINENO: result
: $cross_compiling" >&5
2499 $as_echo "$cross_compiling" >&6; }
2501 { $as_echo "$as_me:$LINENO: checking
for suffix of executables
" >&5
2502 $as_echo_n "checking
for suffix of executables...
" >&6; }
2503 if { (ac_try="$ac_link"
2505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2506 *) ac_try_echo=$ac_try;;
2508 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
2509 $as_echo "$ac_try_echo") >&5
2510 (eval "$ac_link") 2>&5
2512 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2513 (exit $ac_status); }; then
2514 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2515 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2516 # work properly (i.e., refer to `conftest.exe'), while it won't with
2518 for ac_file in conftest.exe conftest conftest.*; do
2519 test -f "$ac_file" || continue
2521 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2522 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2528 { { $as_echo "$as_me:$LINENO: error
: cannot compute suffix of executables
: cannot compile and link
2529 See \
`config.log' for more details." >&5
2530 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2531 See \`config.log
' for more details." >&2;}
2532 { (exit 1); exit 1; }; }
2535 rm -f conftest$ac_cv_exeext
2536 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2537 $as_echo "$ac_cv_exeext" >&6; }
2539 rm -f conftest.$ac_ext
2540 EXEEXT=$ac_cv_exeext
2542 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2543 $as_echo_n "checking for suffix of object files... " >&6; }
2544 if test "${ac_cv_objext+set}" = set; then
2545 $as_echo_n "(cached) " >&6
2547 cat >conftest.$ac_ext <<_ACEOF
2550 cat confdefs.h >>conftest.$ac_ext
2551 cat >>conftest.$ac_ext <<_ACEOF
2552 /* end confdefs.h. */
2562 rm -f conftest.o conftest.obj
2563 if { (ac_try="$ac_compile"
2565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2566 *) ac_try_echo=$ac_try;;
2568 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2569 $as_echo "$ac_try_echo") >&5
2570 (eval "$ac_compile") 2>&5
2572 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573 (exit $ac_status); }; then
2574 for ac_file in conftest.o conftest.obj conftest.*; do
2575 test -f "$ac_file" || continue;
2577 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2578 *) ac_cv_objext=`expr "$ac_file" : '.
*\.\
(.
*\
)'`
2583 $as_echo "$as_me: failed program was:" >&5
2584 sed 's
/^
/|
/' conftest.$ac_ext >&5
2586 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2587 See \`config.log' for more details.
" >&5
2588 $as_echo "$as_me: error
: cannot compute suffix of object files
: cannot compile
2589 See \
`config.log' for more details." >&2;}
2590 { (exit 1); exit 1; }; }
2593 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2595 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2596 $as_echo "$ac_cv_objext" >&6; }
2597 OBJEXT=$ac_cv_objext
2599 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2600 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2601 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2602 $as_echo_n "(cached) " >&6
2604 cat >conftest.$ac_ext <<_ACEOF
2607 cat confdefs.h >>conftest.$ac_ext
2608 cat >>conftest.$ac_ext <<_ACEOF
2609 /* end confdefs.h. */
2622 rm -f conftest.$ac_objext
2623 if { (ac_try="$ac_compile"
2625 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2626 *) ac_try_echo
=$ac_try;;
2628 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
2629 $as_echo "$ac_try_echo") >&5
2630 (eval "$ac_compile") 2>conftest.er1
2632 grep -v '^ *+' conftest.er1
>conftest.err
2634 cat conftest.err
>&5
2635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636 (exit $ac_status); } && {
2637 test -z "$ac_c_werror_flag" ||
2638 test ! -s conftest.err
2639 } && test -s conftest.
$ac_objext; then
2642 $as_echo "$as_me: failed program was:" >&5
2643 sed 's/^/| /' conftest.
$ac_ext >&5
2648 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2649 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2652 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2653 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2654 if test $ac_compiler_gnu = yes; then
2659 ac_test_CFLAGS
=${CFLAGS+set}
2660 ac_save_CFLAGS
=$CFLAGS
2661 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2662 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2663 if test "${ac_cv_prog_cc_g+set}" = set; then
2664 $as_echo_n "(cached) " >&6
2666 ac_save_c_werror_flag
=$ac_c_werror_flag
2667 ac_c_werror_flag
=yes
2670 cat >conftest.
$ac_ext <<_ACEOF
2673 cat confdefs.h
>>conftest.
$ac_ext
2674 cat >>conftest.
$ac_ext <<_ACEOF
2675 /* end confdefs.h. */
2685 rm -f conftest.
$ac_objext
2686 if { (ac_try
="$ac_compile"
2688 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2689 *) ac_try_echo=$ac_try;;
2691 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2692 $as_echo "$ac_try_echo") >&5
2693 (eval "$ac_compile") 2>conftest.er1
2695 grep -v '^ *+' conftest.er1 >conftest.err
2697 cat conftest.err >&5
2698 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699 (exit $ac_status); } && {
2700 test -z "$ac_c_werror_flag" ||
2701 test ! -s conftest.err
2702 } && test -s conftest.$ac_objext; then
2705 $as_echo "$as_me: failed program was:" >&5
2706 sed 's/^/| /' conftest.$ac_ext >&5
2709 cat >conftest.$ac_ext <<_ACEOF
2712 cat confdefs.h >>conftest.$ac_ext
2713 cat >>conftest.$ac_ext <<_ACEOF
2714 /* end confdefs.h. */
2724 rm -f conftest.$ac_objext
2725 if { (ac_try="$ac_compile"
2727 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2728 *) ac_try_echo
=$ac_try;;
2730 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
2731 $as_echo "$ac_try_echo") >&5
2732 (eval "$ac_compile") 2>conftest.er1
2734 grep -v '^ *+' conftest.er1
>conftest.err
2736 cat conftest.err
>&5
2737 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738 (exit $ac_status); } && {
2739 test -z "$ac_c_werror_flag" ||
2740 test ! -s conftest.err
2741 } && test -s conftest.
$ac_objext; then
2744 $as_echo "$as_me: failed program was:" >&5
2745 sed 's/^/| /' conftest.
$ac_ext >&5
2747 ac_c_werror_flag
=$ac_save_c_werror_flag
2749 cat >conftest.
$ac_ext <<_ACEOF
2752 cat confdefs.h
>>conftest.
$ac_ext
2753 cat >>conftest.
$ac_ext <<_ACEOF
2754 /* end confdefs.h. */
2764 rm -f conftest.
$ac_objext
2765 if { (ac_try
="$ac_compile"
2767 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2768 *) ac_try_echo=$ac_try;;
2770 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2771 $as_echo "$ac_try_echo") >&5
2772 (eval "$ac_compile") 2>conftest.er1
2774 grep -v '^ *+' conftest.er1 >conftest.err
2776 cat conftest.err >&5
2777 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2778 (exit $ac_status); } && {
2779 test -z "$ac_c_werror_flag" ||
2780 test ! -s conftest.err
2781 } && test -s conftest.$ac_objext; then
2784 $as_echo "$as_me: failed program was:" >&5
2785 sed 's/^/| /' conftest.$ac_ext >&5
2790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2797 ac_c_werror_flag=$ac_save_c_werror_flag
2799 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2800 $as_echo "$ac_cv_prog_cc_g" >&6; }
2801 if test "$ac_test_CFLAGS" = set; then
2802 CFLAGS=$ac_save_CFLAGS
2803 elif test $ac_cv_prog_cc_g = yes; then
2804 if test "$GCC" = yes; then
2810 if test "$GCC" = yes; then
2816 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2817 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2818 if test "${ac_cv_prog_cc_c89+set}" = set; then
2819 $as_echo_n "(cached) " >&6
2821 ac_cv_prog_cc_c89=no
2823 cat >conftest.$ac_ext <<_ACEOF
2826 cat confdefs.h >>conftest.$ac_ext
2827 cat >>conftest.$ac_ext <<_ACEOF
2828 /* end confdefs.h. */
2831 #include <sys/types.h>
2832 #include <sys/stat.h>
2833 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2834 struct buf { int x; };
2835 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2836 static char *e (p, i)
2842 static char *f (char * (*g) (char **, int), char **p, ...)
2847 s = g (p, va_arg (v,int));
2852 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2853 function prototypes and stuff, but not '\xHH' hex character constants.
2854 These don't provoke an error unfortunately, instead are silently treated
2855 as 'x'. The following induces an error, until -std is added to get
2856 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2857 array size at least. It's necessary to write '\x00'==0 to get something
2858 that's true only with -std. */
2859 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2861 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2862 inside strings and character constants. */
2864 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2866 int test (int i, double x);
2867 struct s1 {int (*f) (int a);};
2868 struct s2 {int (*f) (double a);};
2869 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2875 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2880 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2881 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2883 CC="$ac_save_CC $ac_arg"
2884 rm -f conftest.$ac_objext
2885 if { (ac_try="$ac_compile"
2887 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2888 *) ac_try_echo
=$ac_try;;
2890 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
2891 $as_echo "$ac_try_echo") >&5
2892 (eval "$ac_compile") 2>conftest.er1
2894 grep -v '^ *+' conftest.er1
>conftest.err
2896 cat conftest.err
>&5
2897 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898 (exit $ac_status); } && {
2899 test -z "$ac_c_werror_flag" ||
2900 test ! -s conftest.err
2901 } && test -s conftest.
$ac_objext; then
2902 ac_cv_prog_cc_c89
=$ac_arg
2904 $as_echo "$as_me: failed program was:" >&5
2905 sed 's/^/| /' conftest.
$ac_ext >&5
2910 rm -f core conftest.err conftest.
$ac_objext
2911 test "x$ac_cv_prog_cc_c89" != "xno" && break
2913 rm -f conftest.
$ac_ext
2918 case "x$ac_cv_prog_cc_c89" in
2920 { $as_echo "$as_me:$LINENO: result: none needed" >&5
2921 $as_echo "none needed" >&6; } ;;
2923 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
2924 $as_echo "unsupported" >&6; } ;;
2926 CC
="$CC $ac_cv_prog_cc_c89"
2927 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2928 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2933 ac_cpp
='$CPP $CPPFLAGS'
2934 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2935 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2936 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2938 ac_cpp
='$CPP $CPPFLAGS'
2939 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2940 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2941 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2942 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2943 $as_echo_n "checking how to run the C preprocessor... " >&6; }
2944 # On Suns, sometimes $CPP names a directory.
2945 if test -n "$CPP" && test -d "$CPP"; then
2948 if test -z "$CPP"; then
2949 if test "${ac_cv_prog_CPP+set}" = set; then
2950 $as_echo_n "(cached) " >&6
2952 # Double quotes because CPP needs to be expanded
2953 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2956 for ac_c_preproc_warn_flag
in '' yes
2958 # Use a header file that comes with gcc, so configuring glibc
2959 # with a fresh cross-compiler works.
2960 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2961 # <limits.h> exists even on freestanding compilers.
2962 # On the NeXT, cc -E runs the code through the compiler's parser,
2963 # not just through cpp. "Syntax error" is here to catch this case.
2964 cat >conftest.
$ac_ext <<_ACEOF
2967 cat confdefs.h
>>conftest.
$ac_ext
2968 cat >>conftest.
$ac_ext <<_ACEOF
2969 /* end confdefs.h. */
2971 # include <limits.h>
2973 # include <assert.h>
2977 if { (ac_try
="$ac_cpp conftest.$ac_ext"
2979 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2980 *) ac_try_echo=$ac_try;;
2982 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2983 $as_echo "$ac_try_echo") >&5
2984 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2986 grep -v '^ *+' conftest.er1 >conftest.err
2988 cat conftest.err >&5
2989 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2990 (exit $ac_status); } >/dev/null && {
2991 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2992 test ! -s conftest.err
2996 $as_echo "$as_me: failed program was:" >&5
2997 sed 's/^/| /' conftest.$ac_ext >&5
2999 # Broken: fails on valid input.
3003 rm -f conftest.err conftest.$ac_ext
3005 # OK, works on sane cases. Now check whether nonexistent headers
3006 # can be detected and how.
3007 cat >conftest.$ac_ext <<_ACEOF
3010 cat confdefs.h >>conftest.$ac_ext
3011 cat >>conftest.$ac_ext <<_ACEOF
3012 /* end confdefs.h. */
3013 #include <ac_nonexistent.h>
3015 if { (ac_try="$ac_cpp conftest.$ac_ext"
3017 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3018 *) ac_try_echo
=$ac_try;;
3020 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3021 $as_echo "$ac_try_echo") >&5
3022 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3024 grep -v '^ *+' conftest.er1
>conftest.err
3026 cat conftest.err
>&5
3027 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3028 (exit $ac_status); } >/dev
/null
&& {
3029 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3030 test ! -s conftest.err
3032 # Broken: success on invalid input.
3035 $as_echo "$as_me: failed program was:" >&5
3036 sed 's/^/| /' conftest.
$ac_ext >&5
3038 # Passes both tests.
3043 rm -f conftest.err conftest.
$ac_ext
3046 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3047 rm -f conftest.err conftest.
$ac_ext
3048 if $ac_preproc_ok; then
3060 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3061 $as_echo "$CPP" >&6; }
3063 for ac_c_preproc_warn_flag
in '' yes
3065 # Use a header file that comes with gcc, so configuring glibc
3066 # with a fresh cross-compiler works.
3067 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3068 # <limits.h> exists even on freestanding compilers.
3069 # On the NeXT, cc -E runs the code through the compiler's parser,
3070 # not just through cpp. "Syntax error" is here to catch this case.
3071 cat >conftest.
$ac_ext <<_ACEOF
3074 cat confdefs.h
>>conftest.
$ac_ext
3075 cat >>conftest.
$ac_ext <<_ACEOF
3076 /* end confdefs.h. */
3078 # include <limits.h>
3080 # include <assert.h>
3084 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3086 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3087 *) ac_try_echo=$ac_try;;
3089 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3090 $as_echo "$ac_try_echo") >&5
3091 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3093 grep -v '^ *+' conftest.er1 >conftest.err
3095 cat conftest.err >&5
3096 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097 (exit $ac_status); } >/dev/null && {
3098 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3099 test ! -s conftest.err
3103 $as_echo "$as_me: failed program was:" >&5
3104 sed 's/^/| /' conftest.$ac_ext >&5
3106 # Broken: fails on valid input.
3110 rm -f conftest.err conftest.$ac_ext
3112 # OK, works on sane cases. Now check whether nonexistent headers
3113 # can be detected and how.
3114 cat >conftest.$ac_ext <<_ACEOF
3117 cat confdefs.h >>conftest.$ac_ext
3118 cat >>conftest.$ac_ext <<_ACEOF
3119 /* end confdefs.h. */
3120 #include <ac_nonexistent.h>
3122 if { (ac_try="$ac_cpp conftest.$ac_ext"
3124 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3125 *) ac_try_echo
=$ac_try;;
3127 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3128 $as_echo "$ac_try_echo") >&5
3129 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3131 grep -v '^ *+' conftest.er1
>conftest.err
3133 cat conftest.err
>&5
3134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3135 (exit $ac_status); } >/dev
/null
&& {
3136 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3137 test ! -s conftest.err
3139 # Broken: success on invalid input.
3142 $as_echo "$as_me: failed program was:" >&5
3143 sed 's/^/| /' conftest.
$ac_ext >&5
3145 # Passes both tests.
3150 rm -f conftest.err conftest.
$ac_ext
3153 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3154 rm -f conftest.err conftest.
$ac_ext
3155 if $ac_preproc_ok; then
3158 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3159 See \`config.log' for more details." >&5
3160 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3161 See \`config.log' for more details." >&2;}
3162 { (exit 1); exit 1; }; }
3166 ac_cpp
='$CPP $CPPFLAGS'
3167 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3168 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3169 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3172 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3173 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3174 if test "${ac_cv_path_GREP+set}" = set; then
3175 $as_echo_n "(cached) " >&6
3177 if test -z "$GREP"; then
3178 ac_path_GREP_found
=false
3179 # Loop through the user's path and test for each of PROGNAME-LIST
3180 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3181 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3184 test -z "$as_dir" && as_dir
=.
3185 for ac_prog
in grep ggrep
; do
3186 for ac_exec_ext
in '' $ac_executable_extensions; do
3187 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3188 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3189 # Check for GNU ac_path_GREP and select it if it is found.
3190 # Check for GNU $ac_path_GREP
3191 case `"$ac_path_GREP" --version 2>&1` in
3193 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3196 $as_echo_n 0123456789 >"conftest.in"
3199 cat "conftest.in" "conftest.in" >"conftest.tmp"
3200 mv "conftest.tmp" "conftest.in"
3201 cp "conftest.in" "conftest.nl"
3202 $as_echo 'GREP' >> "conftest.nl"
3203 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3204 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3205 ac_count
=`expr $ac_count + 1`
3206 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3207 # Best one so far, save it but keep looking for a better one
3208 ac_cv_path_GREP
="$ac_path_GREP"
3209 ac_path_GREP_max
=$ac_count
3211 # 10*(2^10) chars as input seems more than enough
3212 test $ac_count -gt 10 && break
3214 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3217 $ac_path_GREP_found && break 3
3222 if test -z "$ac_cv_path_GREP"; then
3223 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3224 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3225 { (exit 1); exit 1; }; }
3228 ac_cv_path_GREP
=$GREP
3232 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3233 $as_echo "$ac_cv_path_GREP" >&6; }
3234 GREP
="$ac_cv_path_GREP"
3237 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3238 $as_echo_n "checking for egrep... " >&6; }
3239 if test "${ac_cv_path_EGREP+set}" = set; then
3240 $as_echo_n "(cached) " >&6
3242 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3243 then ac_cv_path_EGREP
="$GREP -E"
3245 if test -z "$EGREP"; then
3246 ac_path_EGREP_found
=false
3247 # Loop through the user's path and test for each of PROGNAME-LIST
3248 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3249 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3252 test -z "$as_dir" && as_dir
=.
3253 for ac_prog
in egrep; do
3254 for ac_exec_ext
in '' $ac_executable_extensions; do
3255 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3256 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3257 # Check for GNU ac_path_EGREP and select it if it is found.
3258 # Check for GNU $ac_path_EGREP
3259 case `"$ac_path_EGREP" --version 2>&1` in
3261 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3264 $as_echo_n 0123456789 >"conftest.in"
3267 cat "conftest.in" "conftest.in" >"conftest.tmp"
3268 mv "conftest.tmp" "conftest.in"
3269 cp "conftest.in" "conftest.nl"
3270 $as_echo 'EGREP' >> "conftest.nl"
3271 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3272 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3273 ac_count
=`expr $ac_count + 1`
3274 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3275 # Best one so far, save it but keep looking for a better one
3276 ac_cv_path_EGREP
="$ac_path_EGREP"
3277 ac_path_EGREP_max
=$ac_count
3279 # 10*(2^10) chars as input seems more than enough
3280 test $ac_count -gt 10 && break
3282 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3285 $ac_path_EGREP_found && break 3
3290 if test -z "$ac_cv_path_EGREP"; then
3291 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3292 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3293 { (exit 1); exit 1; }; }
3296 ac_cv_path_EGREP
=$EGREP
3301 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3302 $as_echo "$ac_cv_path_EGREP" >&6; }
3303 EGREP
="$ac_cv_path_EGREP"
3306 cat >conftest.
$ac_ext <<_ACEOF
3309 cat confdefs.h
>>conftest.
$ac_ext
3310 cat >>conftest.
$ac_ext <<_ACEOF
3311 /* end confdefs.h. */
3315 { $as_echo "$as_me:$LINENO: checking for library containing strerror" >&5
3316 $as_echo_n "checking for library containing strerror... " >&6; }
3317 if test "${ac_cv_search_strerror+set}" = set; then
3318 $as_echo_n "(cached) " >&6
3320 ac_func_search_save_LIBS
=$LIBS
3321 cat >conftest.
$ac_ext <<_ACEOF
3324 cat confdefs.h
>>conftest.
$ac_ext
3325 cat >>conftest.
$ac_ext <<_ACEOF
3326 /* end confdefs.h. */
3328 /* Override any GCC internal prototype to avoid an error.
3329 Use char because int might match the return type of a GCC
3330 builtin and then its argument prototype would still apply. */
3343 for ac_lib
in '' cposix
; do
3344 if test -z "$ac_lib"; then
3345 ac_res
="none required"
3348 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
3350 rm -f conftest.
$ac_objext conftest
$ac_exeext
3351 if { (ac_try
="$ac_link"
3353 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3354 *) ac_try_echo=$ac_try;;
3356 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3357 $as_echo "$ac_try_echo") >&5
3358 (eval "$ac_link") 2>conftest.er1
3360 grep -v '^ *+' conftest.er1 >conftest.err
3362 cat conftest.err >&5
3363 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3364 (exit $ac_status); } && {
3365 test -z "$ac_c_werror_flag" ||
3366 test ! -s conftest.err
3367 } && test -s conftest$ac_exeext && {
3368 test "$cross_compiling" = yes ||
3369 $as_test_x conftest$ac_exeext
3371 ac_cv_search_strerror=$ac_res
3373 $as_echo "$as_me: failed program was:" >&5
3374 sed 's/^/| /' conftest.$ac_ext >&5
3379 rm -rf conftest.dSYM
3380 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3382 if test "${ac_cv_search_strerror+set}" = set; then
3386 if test "${ac_cv_search_strerror+set}" = set; then
3389 ac_cv_search_strerror=no
3392 LIBS=$ac_func_search_save_LIBS
3394 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3395 $as_echo "$ac_cv_search_strerror" >&6; }
3396 ac_res=$ac_cv_search_strerror
3397 if test "$ac_res" != no; then
3398 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3401 for ac_prog in gawk mawk nawk awk
3403 # Extract the first word of "$ac_prog", so it can be a program name with args.
3404 set dummy $ac_prog; ac_word=$2
3405 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3406 $as_echo_n "checking for $ac_word... " >&6; }
3407 if test "${ac_cv_prog_AWK+set}" = set; then
3408 $as_echo_n "(cached) " >&6
3410 if test -n "$AWK"; then
3411 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3417 test -z "$as_dir" && as_dir=.
3418 for ac_exec_ext in '' $ac_executable_extensions; do
3419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3420 ac_cv_prog_AWK="$ac_prog"
3421 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3431 if test -n "$AWK"; then
3432 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
3433 $as_echo "$AWK" >&6; }
3435 { $as_echo "$as_me:$LINENO: result: no" >&5
3436 $as_echo "no" >&6; }
3440 test -n "$AWK" && break
3443 # Extract the first word of "strip", so it can be a program name with args.
3444 set dummy strip; ac_word=$2
3445 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3446 $as_echo_n "checking for $ac_word... " >&6; }
3447 if test "${ac_cv_prog_STRIP+set}" = set; then
3448 $as_echo_n "(cached) " >&6
3450 if test -n "$STRIP"; then
3451 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3457 test -z "$as_dir" && as_dir=.
3458 for ac_exec_ext in '' $ac_executable_extensions; do
3459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3460 ac_cv_prog_STRIP="strip"
3461 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3468 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
3471 STRIP=$ac_cv_prog_STRIP
3472 if test -n "$STRIP"; then
3473 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
3474 $as_echo "$STRIP" >&6; }
3476 { $as_echo "$as_me:$LINENO: result: no" >&5
3477 $as_echo "no" >&6; }
3484 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3485 $as_echo_n "checking for ANSI C header files... " >&6; }
3486 if test "${ac_cv_header_stdc+set}" = set; then
3487 $as_echo_n "(cached) " >&6
3489 cat >conftest.$ac_ext <<_ACEOF
3492 cat confdefs.h >>conftest.$ac_ext
3493 cat >>conftest.$ac_ext <<_ACEOF
3494 /* end confdefs.h. */
3508 rm -f conftest.$ac_objext
3509 if { (ac_try="$ac_compile"
3511 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3512 *) ac_try_echo
=$ac_try;;
3514 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3515 $as_echo "$ac_try_echo") >&5
3516 (eval "$ac_compile") 2>conftest.er1
3518 grep -v '^ *+' conftest.er1
>conftest.err
3520 cat conftest.err
>&5
3521 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3522 (exit $ac_status); } && {
3523 test -z "$ac_c_werror_flag" ||
3524 test ! -s conftest.err
3525 } && test -s conftest.
$ac_objext; then
3526 ac_cv_header_stdc
=yes
3528 $as_echo "$as_me: failed program was:" >&5
3529 sed 's/^/| /' conftest.
$ac_ext >&5
3531 ac_cv_header_stdc
=no
3534 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3536 if test $ac_cv_header_stdc = yes; then
3537 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3538 cat >conftest.
$ac_ext <<_ACEOF
3541 cat confdefs.h
>>conftest.
$ac_ext
3542 cat >>conftest.
$ac_ext <<_ACEOF
3543 /* end confdefs.h. */
3547 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3548 $EGREP "memchr" >/dev
/null
2>&1; then
3551 ac_cv_header_stdc
=no
3557 if test $ac_cv_header_stdc = yes; then
3558 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3559 cat >conftest.
$ac_ext <<_ACEOF
3562 cat confdefs.h
>>conftest.
$ac_ext
3563 cat >>conftest.
$ac_ext <<_ACEOF
3564 /* end confdefs.h. */
3568 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3569 $EGREP "free" >/dev
/null
2>&1; then
3572 ac_cv_header_stdc
=no
3578 if test $ac_cv_header_stdc = yes; then
3579 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3580 if test "$cross_compiling" = yes; then
3583 cat >conftest.
$ac_ext <<_ACEOF
3586 cat confdefs.h
>>conftest.
$ac_ext
3587 cat >>conftest.
$ac_ext <<_ACEOF
3588 /* end confdefs.h. */
3591 #if ((' ' & 0x0FF) == 0x020)
3592 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3593 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3595 # define ISLOWER(c) \
3596 (('a' <= (c) && (c) <= 'i') \
3597 || ('j' <= (c) && (c) <= 'r') \
3598 || ('s' <= (c) && (c) <= 'z'))
3599 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3602 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3607 for (i = 0; i < 256; i++)
3608 if (XOR (islower (i), ISLOWER (i))
3609 || toupper (i) != TOUPPER (i))
3614 rm -f conftest
$ac_exeext
3615 if { (ac_try
="$ac_link"
3617 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3618 *) ac_try_echo=$ac_try;;
3620 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3621 $as_echo "$ac_try_echo") >&5
3622 (eval "$ac_link") 2>&5
3624 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3625 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3626 { (case "(($ac_try" in
3627 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3628 *) ac_try_echo
=$ac_try;;
3630 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3631 $as_echo "$ac_try_echo") >&5
3632 (eval "$ac_try") 2>&5
3634 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3635 (exit $ac_status); }; }; then
3638 $as_echo "$as_me: program exited with status $ac_status" >&5
3639 $as_echo "$as_me: failed program was:" >&5
3640 sed 's/^/| /' conftest.
$ac_ext >&5
3643 ac_cv_header_stdc
=no
3645 rm -rf conftest.dSYM
3646 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3652 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3653 $as_echo "$ac_cv_header_stdc" >&6; }
3654 if test $ac_cv_header_stdc = yes; then
3656 cat >>confdefs.h
<<\_ACEOF
3657 #define STDC_HEADERS 1
3662 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
3663 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
3664 if test "${ac_cv_header_sys_wait_h+set}" = set; then
3665 $as_echo_n "(cached) " >&6
3667 cat >conftest.
$ac_ext <<_ACEOF
3670 cat confdefs.h
>>conftest.
$ac_ext
3671 cat >>conftest.
$ac_ext <<_ACEOF
3672 /* end confdefs.h. */
3673 #include <sys/types.h>
3674 #include <sys/wait.h>
3676 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
3679 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3687 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3692 rm -f conftest.
$ac_objext
3693 if { (ac_try
="$ac_compile"
3695 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3696 *) ac_try_echo=$ac_try;;
3698 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3699 $as_echo "$ac_try_echo") >&5
3700 (eval "$ac_compile") 2>conftest.er1
3702 grep -v '^ *+' conftest.er1 >conftest.err
3704 cat conftest.err >&5
3705 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3706 (exit $ac_status); } && {
3707 test -z "$ac_c_werror_flag" ||
3708 test ! -s conftest.err
3709 } && test -s conftest.$ac_objext; then
3710 ac_cv_header_sys_wait_h=yes
3712 $as_echo "$as_me: failed program was:" >&5
3713 sed 's/^/| /' conftest.$ac_ext >&5
3715 ac_cv_header_sys_wait_h=no
3718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3720 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
3721 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
3722 if test $ac_cv_header_sys_wait_h = yes; then
3724 cat >>confdefs.h <<\_ACEOF
3725 #define HAVE_SYS_WAIT_H 1
3731 if test -z "$CFLAGS"; then
3733 test "$GCC" = yes && CFLAGS="-O2 -fno-strength-reduce -Wall"
3735 if test "$GCC" = yes; then
3736 gccversion=`"$CC" -dumpversion`
3737 if test "x$gccversion" = "x"; then
3738 gccversion=`"$CC" --version |
sed -e '2,$d' -e 's/darwin.//' -e 's/^[^0-9]*\([0-9]\.[0-9.]*\).*$/\1/g'`
3740 if test "$gccversion" = "3.0.1" -o "$gccversion" = "3.0.2" -o "$gccversion" = "4.0.1"; then
3741 echo 'GCC [34].0.[12] has a bug in the optimizer, disabling "-O#"'
3742 CFLAGS=`echo "$CFLAGS" |
sed 's/-O[23456789]/-O/'`
3744 if test "$gccversion" = "3.1" -o "$gccversion" = "3.2" -o "$gccversion" = "3.2.1" && `echo "$CFLAGS" |
grep -v fno-strength-reduce
>/dev
/null
`; then
3745 echo 'GCC 3.1 and 3.2 have a bug in the optimizer, adding "-fno-strength-reduce"'
3746 CFLAGS="$CFLAGS -fno-strength-reduce"
3751 if test "$cross_compiling" = yes; then
3752 { $as_echo "$as_me:$LINENO: result: cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&5
3753 $as_echo "cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&6; }
3756 test "$GCC" = yes && CPP_MM=M;
3758 if test -f ./toolcheck; then
3759 { $as_echo "$as_me:$LINENO: checking for buggy tools..." >&5
3760 $as_echo "$as_me: checking for buggy tools..." >&6;}
3764 OS_EXTRA_SRC=""; OS_EXTRA_OBJ=""
3766 { $as_echo "$as_me:$LINENO: checking for BeOS" >&5
3767 $as_echo_n "checking for BeOS... " >&6; }
3769 BeOS) OS_EXTRA_SRC=os_beos.c; OS_EXTRA_OBJ=objects/os_beos.o
3770 BEOS=yes; { $as_echo "$as_me:$LINENO: result: yes" >&5
3771 $as_echo "yes" >&6; };;
3772 *) BEOS=no; { $as_echo "$as_me:$LINENO: result: no" >&5
3773 $as_echo "no" >&6; };;
3776 { $as_echo "$as_me:$LINENO: checking for QNX" >&5
3777 $as_echo_n "checking for QNX... " >&6; }
3779 QNX) OS_EXTRA_SRC=os_qnx.c; OS_EXTRA_OBJ=objects/os_qnx.o
3780 test -z "$with_x" && with_x=no
3781 QNX=yes; { $as_echo "$as_me:$LINENO: result: yes" >&5
3782 $as_echo "yes" >&6; };;
3783 *) QNX=no; { $as_echo "$as_me:$LINENO: result: no" >&5
3784 $as_echo "no" >&6; };;
3787 { $as_echo "$as_me:$LINENO: checking for Darwin (Mac OS X)" >&5
3788 $as_echo_n "checking for Darwin (Mac OS X)... " >&6; }
3789 if test "`(uname
) 2>/dev
/null
`" = Darwin; then
3790 { $as_echo "$as_me:$LINENO: result: yes" >&5
3791 $as_echo "yes" >&6; }
3793 { $as_echo "$as_me:$LINENO: checking --disable-darwin argument" >&5
3794 $as_echo_n "checking --disable-darwin argument... " >&6; }
3795 # Check whether --enable-darwin was given.
3796 if test "${enable_darwin+set}" = set; then
3797 enableval=$enable_darwin;
3802 if test "$enable_darwin" = "yes"; then
3803 { $as_echo "$as_me:$LINENO: result: no" >&5
3804 $as_echo "no" >&6; }
3805 { $as_echo "$as_me:$LINENO: checking if Darwin files are there" >&5
3806 $as_echo_n "checking if Darwin files are there... " >&6; }
3807 if test -f os_macosx.c; then
3808 { $as_echo "$as_me:$LINENO: result: yes" >&5
3809 $as_echo "yes" >&6; }
3811 { $as_echo "$as_me:$LINENO: result: no, Darwin support disabled" >&5
3812 $as_echo "no, Darwin support disabled" >&6; }
3816 { $as_echo "$as_me:$LINENO: result: yes, Darwin support excluded" >&5
3817 $as_echo "yes, Darwin support excluded" >&6; }
3820 { $as_echo "$as_me:$LINENO: checking --with-mac-arch argument" >&5
3821 $as_echo_n "checking --with-mac-arch argument... " >&6; }
3823 # Check whether --with-mac-arch was given.
3824 if test "${with_mac_arch+set}" = set; then
3825 withval=$with_mac_arch; MACARCH="$withval"; { $as_echo "$as_me:$LINENO: result: $MACARCH" >&5
3826 $as_echo "$MACARCH" >&6; }
3828 MACARCH="current"; { $as_echo "$as_me:$LINENO: result: defaulting to $MACARCH" >&5
3829 $as_echo "defaulting to $MACARCH" >&6; }
3833 if test "x$MACARCH" = "xboth"; then
3834 { $as_echo "$as_me:$LINENO: checking for 10.4 universal SDK" >&5
3835 $as_echo_n "checking for 10.4 universal SDK... " >&6; }
3836 save_cppflags="$CPPFLAGS"
3837 save_cflags="$CFLAGS"
3838 save_ldflags="$LDFLAGS"
3839 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc"
3840 cat >conftest.$ac_ext <<_ACEOF
3843 cat confdefs.h >>conftest.$ac_ext
3844 cat >>conftest.$ac_ext <<_ACEOF
3845 /* end confdefs.h. */
3855 rm -f conftest.$ac_objext conftest$ac_exeext
3856 if { (ac_try="$ac_link"
3858 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3859 *) ac_try_echo
=$ac_try;;
3861 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3862 $as_echo "$ac_try_echo") >&5
3863 (eval "$ac_link") 2>conftest.er1
3865 grep -v '^ *+' conftest.er1
>conftest.err
3867 cat conftest.err
>&5
3868 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3869 (exit $ac_status); } && {
3870 test -z "$ac_c_werror_flag" ||
3871 test ! -s conftest.err
3872 } && test -s conftest
$ac_exeext && {
3873 test "$cross_compiling" = yes ||
3874 $as_test_x conftest
$ac_exeext
3876 { $as_echo "$as_me:$LINENO: result: found" >&5
3877 $as_echo "found" >&6; }
3879 $as_echo "$as_me: failed program was:" >&5
3880 sed 's/^/| /' conftest.
$ac_ext >&5
3882 { $as_echo "$as_me:$LINENO: result: not found" >&5
3883 $as_echo "not found" >&6; }
3884 CFLAGS
="$save_cflags"
3885 { $as_echo "$as_me:$LINENO: checking if Intel architecture is supported" >&5
3886 $as_echo_n "checking if Intel architecture is supported... " >&6; }
3887 CPPFLAGS
="$CPPFLAGS -arch i386"
3888 LDFLAGS
="$save_ldflags -arch i386"
3889 cat >conftest.
$ac_ext <<_ACEOF
3892 cat confdefs.h
>>conftest.
$ac_ext
3893 cat >>conftest.
$ac_ext <<_ACEOF
3894 /* end confdefs.h. */
3904 rm -f conftest.
$ac_objext conftest
$ac_exeext
3905 if { (ac_try
="$ac_link"
3907 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3908 *) ac_try_echo=$ac_try;;
3910 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3911 $as_echo "$ac_try_echo") >&5
3912 (eval "$ac_link") 2>conftest.er1
3914 grep -v '^ *+' conftest.er1 >conftest.err
3916 cat conftest.err >&5
3917 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3918 (exit $ac_status); } && {
3919 test -z "$ac_c_werror_flag" ||
3920 test ! -s conftest.err
3921 } && test -s conftest$ac_exeext && {
3922 test "$cross_compiling" = yes ||
3923 $as_test_x conftest$ac_exeext
3925 { $as_echo "$as_me:$LINENO: result: yes" >&5
3926 $as_echo "yes" >&6; }; MACARCH="intel"
3928 $as_echo "$as_me: failed program was:" >&5
3929 sed 's/^/| /' conftest.$ac_ext >&5
3931 { $as_echo "$as_me:$LINENO: result: no" >&5
3932 $as_echo "no" >&6; }
3934 CPPFLAGS="$save_cppflags -arch ppc"
3935 LDFLAGS="$save_ldflags -arch ppc"
3938 rm -rf conftest.dSYM
3939 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3940 conftest$ac_exeext conftest.$ac_ext
3943 rm -rf conftest.dSYM
3944 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3945 conftest$ac_exeext conftest.$ac_ext
3946 elif test "x$MACARCH" = "xintel"; then
3947 CPPFLAGS="$CPPFLAGS -arch intel"
3948 LDFLAGS="$LDFLAGS -arch intel"
3949 elif test "x$MACARCH" = "xppc"; then
3950 CPPFLAGS="$CPPFLAGS -arch ppc"
3951 LDFLAGS="$LDFLAGS -arch ppc"
3954 if test "$enable_darwin" = "yes"; then
3956 OS_EXTRA_SRC="os_macosx.c os_mac_conv.c";
3957 OS_EXTRA_OBJ="objects/os_macosx.o objects/os_mac_conv.o"
3958 CPPFLAGS="$CPPFLAGS -DMACOS_X_UNIX -no-cpp-precomp"
3959 if test "x$MACARCH" = "xboth"; then
3960 CPPFLAGS="$CPPFLAGS -I/Developer/SDKs/MacOSX10.4u.sdk/Developer/Headers/FlatCarbon"
3962 CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon"
3965 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3975 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3976 inttypes.h stdint.h unistd.h
3978 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
3979 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
3980 $as_echo_n "checking for $ac_header... " >&6; }
3981 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3982 $as_echo_n "(cached) " >&6
3984 cat >conftest.$ac_ext <<_ACEOF
3987 cat confdefs.h >>conftest.$ac_ext
3988 cat >>conftest.$ac_ext <<_ACEOF
3989 /* end confdefs.h. */
3990 $ac_includes_default
3992 #include <$ac_header>
3994 rm -f conftest.$ac_objext
3995 if { (ac_try="$ac_compile"
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_compile") 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_objext; then
4012 eval "$as_ac_Header=yes"
4014 $as_echo "$as_me: failed program was:" >&5
4015 sed 's/^/| /' conftest.
$ac_ext >&5
4017 eval "$as_ac_Header=no"
4020 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4022 ac_res
=`eval 'as_val=${'$as_ac_Header'}
4023 $as_echo "$as_val"'`
4024 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4025 $as_echo "$ac_res" >&6; }
4026 if test `eval 'as_val=${'$as_ac_Header'}
4027 $as_echo "$as_val"'` = yes; then
4028 cat >>confdefs.h
<<_ACEOF
4029 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4037 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
4038 { $as_echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
4039 $as_echo_n "checking for Carbon/Carbon.h... " >&6; }
4040 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
4041 $as_echo_n "(cached) " >&6
4043 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
4044 $as_echo "$ac_cv_header_Carbon_Carbon_h" >&6; }
4046 # Is the header compilable?
4047 { $as_echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
4048 $as_echo_n "checking Carbon/Carbon.h usability... " >&6; }
4049 cat >conftest.
$ac_ext <<_ACEOF
4052 cat confdefs.h
>>conftest.
$ac_ext
4053 cat >>conftest.
$ac_ext <<_ACEOF
4054 /* end confdefs.h. */
4055 $ac_includes_default
4056 #include <Carbon/Carbon.h>
4058 rm -f conftest.
$ac_objext
4059 if { (ac_try
="$ac_compile"
4061 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4062 *) ac_try_echo=$ac_try;;
4064 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4065 $as_echo "$ac_try_echo") >&5
4066 (eval "$ac_compile") 2>conftest.er1
4068 grep -v '^ *+' conftest.er1 >conftest.err
4070 cat conftest.err >&5
4071 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4072 (exit $ac_status); } && {
4073 test -z "$ac_c_werror_flag" ||
4074 test ! -s conftest.err
4075 } && test -s conftest.$ac_objext; then
4076 ac_header_compiler=yes
4078 $as_echo "$as_me: failed program was:" >&5
4079 sed 's/^/| /' conftest.$ac_ext >&5
4081 ac_header_compiler=no
4084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4085 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4086 $as_echo "$ac_header_compiler" >&6; }
4088 # Is the header present?
4089 { $as_echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
4090 $as_echo_n "checking Carbon/Carbon.h presence... " >&6; }
4091 cat >conftest.$ac_ext <<_ACEOF
4094 cat confdefs.h >>conftest.$ac_ext
4095 cat >>conftest.$ac_ext <<_ACEOF
4096 /* end confdefs.h. */
4097 #include <Carbon/Carbon.h>
4099 if { (ac_try="$ac_cpp conftest.$ac_ext"
4101 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4102 *) ac_try_echo
=$ac_try;;
4104 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4105 $as_echo "$ac_try_echo") >&5
4106 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4108 grep -v '^ *+' conftest.er1
>conftest.err
4110 cat conftest.err
>&5
4111 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4112 (exit $ac_status); } >/dev
/null
&& {
4113 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4114 test ! -s conftest.err
4116 ac_header_preproc
=yes
4118 $as_echo "$as_me: failed program was:" >&5
4119 sed 's/^/| /' conftest.
$ac_ext >&5
4121 ac_header_preproc
=no
4124 rm -f conftest.err conftest.
$ac_ext
4125 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4126 $as_echo "$ac_header_preproc" >&6; }
4128 # So? What about this header?
4129 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4131 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
4132 $as_echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4133 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
4134 $as_echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
4135 ac_header_preproc
=yes
4138 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
4139 $as_echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
4140 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
4141 $as_echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
4142 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
4143 $as_echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
4144 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
4145 $as_echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
4146 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
4147 $as_echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
4148 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
4149 $as_echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
4153 { $as_echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
4154 $as_echo_n "checking for Carbon/Carbon.h... " >&6; }
4155 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
4156 $as_echo_n "(cached) " >&6
4158 ac_cv_header_Carbon_Carbon_h
=$ac_header_preproc
4160 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
4161 $as_echo "$ac_cv_header_Carbon_Carbon_h" >&6; }
4164 if test $ac_cv_header_Carbon_Carbon_h = yes; then
4169 if test "x$CARBON" = "xyes"; then
4170 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
4176 if test "$MACARCH" = "intel" -o "$MACARCH" = "both"; then
4177 CFLAGS
=`echo "$CFLAGS" | sed 's/-O[23456789]/-Oz/'`
4181 { $as_echo "$as_me:$LINENO: result: no" >&5
4182 $as_echo "no" >&6; }
4188 if test "$cross_compiling" = no
; then
4189 { $as_echo "$as_me:$LINENO: checking --with-local-dir argument" >&5
4190 $as_echo_n "checking --with-local-dir argument... " >&6; }
4191 have_local_include
=''
4194 # Check whether --with-local-dir was given.
4195 if test "${with_local_dir+set}" = set; then
4196 withval
=$with_local_dir;
4197 local_dir
="$withval"
4201 # avoid adding local dir to LDFLAGS and CPPFLAGS
4205 *) { { $as_echo "$as_me:$LINENO: error: must pass path argument to --with-local-dir" >&5
4206 $as_echo "$as_me: error: must pass path argument to --with-local-dir" >&2;}
4207 { (exit 1); exit 1; }; } ;;
4209 { $as_echo "$as_me:$LINENO: result: $local_dir" >&5
4210 $as_echo "$local_dir" >&6; }
4214 local_dir
=/usr
/local
4215 { $as_echo "$as_me:$LINENO: result: Defaulting to $local_dir" >&5
4216 $as_echo "Defaulting to $local_dir" >&6; }
4220 if test "$GCC" = yes -a "$local_dir" != no
; then
4221 echo 'void f(){}' > conftest.c
4222 have_local_include
=`${CC-cc} -no-cpp-precomp -c -v conftest.c 2>&1 | grep "${local_dir}/include"`
4223 have_local_lib
=`${CC-cc} -c -v conftest.c 2>&1 | grep "${local_dir}/lib"`
4224 rm -f conftest.c conftest.o
4226 if test -z "$have_local_lib" -a -d "${local_dir}/lib"; then
4227 tt
=`echo "$LDFLAGS" | sed -e "s+-L${local_dir}/lib ++g" -e "s+-L${local_dir}/lib$++g"`
4228 if test "$tt" = "$LDFLAGS"; then
4229 LDFLAGS
="$LDFLAGS -L${local_dir}/lib"
4232 if test -z "$have_local_include" -a -d "${local_dir}/include"; then
4233 tt
=`echo "$CPPFLAGS" | sed -e "s+-I${local_dir}/include ++g" -e "s+-I${local_dir}/include$++g"`
4234 if test "$tt" = "$CPPFLAGS"; then
4235 CPPFLAGS
="$CPPFLAGS -I${local_dir}/include"
4240 { $as_echo "$as_me:$LINENO: checking --with-vim-name argument" >&5
4241 $as_echo_n "checking --with-vim-name argument... " >&6; }
4243 # Check whether --with-vim-name was given.
4244 if test "${with_vim_name+set}" = set; then
4245 withval
=$with_vim_name; VIMNAME
="$withval"; { $as_echo "$as_me:$LINENO: result: $VIMNAME" >&5
4246 $as_echo "$VIMNAME" >&6; }
4248 VIMNAME
="vim"; { $as_echo "$as_me:$LINENO: result: Defaulting to $VIMNAME" >&5
4249 $as_echo "Defaulting to $VIMNAME" >&6; }
4253 { $as_echo "$as_me:$LINENO: checking --with-ex-name argument" >&5
4254 $as_echo_n "checking --with-ex-name argument... " >&6; }
4256 # Check whether --with-ex-name was given.
4257 if test "${with_ex_name+set}" = set; then
4258 withval
=$with_ex_name; EXNAME
="$withval"; { $as_echo "$as_me:$LINENO: result: $EXNAME" >&5
4259 $as_echo "$EXNAME" >&6; }
4261 EXNAME
="ex"; { $as_echo "$as_me:$LINENO: result: Defaulting to ex" >&5
4262 $as_echo "Defaulting to ex" >&6; }
4266 { $as_echo "$as_me:$LINENO: checking --with-view-name argument" >&5
4267 $as_echo_n "checking --with-view-name argument... " >&6; }
4269 # Check whether --with-view-name was given.
4270 if test "${with_view_name+set}" = set; then
4271 withval
=$with_view_name; VIEWNAME
="$withval"; { $as_echo "$as_me:$LINENO: result: $VIEWNAME" >&5
4272 $as_echo "$VIEWNAME" >&6; }
4274 VIEWNAME
="view"; { $as_echo "$as_me:$LINENO: result: Defaulting to view" >&5
4275 $as_echo "Defaulting to view" >&6; }
4280 { $as_echo "$as_me:$LINENO: checking --with-global-runtime argument" >&5
4281 $as_echo_n "checking --with-global-runtime argument... " >&6; }
4283 # Check whether --with-global-runtime was given.
4284 if test "${with_global_runtime+set}" = set; then
4285 withval
=$with_global_runtime; { $as_echo "$as_me:$LINENO: result: $withval" >&5
4286 $as_echo "$withval" >&6; }; cat >>confdefs.h
<<_ACEOF
4287 #define RUNTIME_GLOBAL "$withval"
4291 { $as_echo "$as_me:$LINENO: result: no" >&5
4292 $as_echo "no" >&6; }
4296 { $as_echo "$as_me:$LINENO: checking --with-modified-by argument" >&5
4297 $as_echo_n "checking --with-modified-by argument... " >&6; }
4299 # Check whether --with-modified-by was given.
4300 if test "${with_modified_by+set}" = set; then
4301 withval
=$with_modified_by; { $as_echo "$as_me:$LINENO: result: $withval" >&5
4302 $as_echo "$withval" >&6; }; cat >>confdefs.h
<<_ACEOF
4303 #define MODIFIED_BY "$withval"
4307 { $as_echo "$as_me:$LINENO: result: no" >&5
4308 $as_echo "no" >&6; }
4312 { $as_echo "$as_me:$LINENO: checking if character set is EBCDIC" >&5
4313 $as_echo_n "checking if character set is EBCDIC... " >&6; }
4314 cat >conftest.
$ac_ext <<_ACEOF
4317 cat confdefs.h
>>conftest.
$ac_ext
4318 cat >>conftest.
$ac_ext <<_ACEOF
4319 /* end confdefs.h. */
4324 /* TryCompile function for CharSet.
4325 Treat any failure as ASCII for compatibility with existing art.
4326 Use compile-time rather than run-time tests for cross-compiler
4329 make an error "Character set is not EBCDIC"
4335 rm -f conftest.
$ac_objext
4336 if { (ac_try
="$ac_compile"
4338 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4339 *) ac_try_echo=$ac_try;;
4341 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4342 $as_echo "$ac_try_echo") >&5
4343 (eval "$ac_compile") 2>conftest.er1
4345 grep -v '^ *+' conftest.er1 >conftest.err
4347 cat conftest.err >&5
4348 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4349 (exit $ac_status); } && {
4350 test -z "$ac_c_werror_flag" ||
4351 test ! -s conftest.err
4352 } && test -s conftest.$ac_objext; then
4353 # TryCompile action if true
4356 $as_echo "$as_me: failed program was:" >&5
4357 sed 's/^/| /' conftest.$ac_ext >&5
4359 # TryCompile action if false
4363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4364 # end of TryCompile ])
4365 # end of CacheVal CvEbcdic
4366 { $as_echo "$as_me:$LINENO: result: $cf_cv_ebcdic" >&5
4367 $as_echo "$cf_cv_ebcdic" >&6; }
4368 case "$cf_cv_ebcdic" in #(vi
4369 yes) cat >>confdefs.h <<\_ACEOF
4375 *) line_break='"\\012"';;
4379 if test "$cf_cv_ebcdic" = "yes"; then
4380 { $as_echo "$as_me:$LINENO: checking for OS/390 Unix" >&5
4381 $as_echo_n "checking for OS/390 Unix... " >&6; }
4383 OS/390) OS390Unix="yes";
4384 if test "$CC" = "cc"; then
4388 if test "$CC" = "c89"; then
4395 if test "$ccm" != "1"; then
4397 echo "------------------------------------------"
4398 echo " On OS/390 Unix, the environment variable"
4399 echo " __CC_${ccn}MODE must be set to \"1\"!"
4401 echo " export _CC_${ccn}MODE=1"
4402 echo " and then call configure again."
4403 echo "------------------------------------------"
4406 CFLAGS="$CFLAGS -D_ALL_SOURCE"; LDFLAGS="$LDFLAGS -Wl,EDIT=NO"
4407 { $as_echo "$as_me:$LINENO: result: yes" >&5
4408 $as_echo "yes" >&6; }
4411 { $as_echo "$as_me:$LINENO: result: no" >&5
4412 $as_echo "no" >&6; }
4417 { $as_echo "$as_me:$LINENO: checking --disable-selinux argument" >&5
4418 $as_echo_n "checking --disable-selinux argument... " >&6; }
4419 # Check whether --enable-selinux was given.
4420 if test "${enable_selinux+set}" = set; then
4421 enableval=$enable_selinux;
4423 enable_selinux="yes"
4426 if test "$enable_selinux" = "yes"; then
4427 { $as_echo "$as_me:$LINENO: result: no" >&5
4428 $as_echo "no" >&6; }
4429 { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
4430 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
4431 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
4432 $as_echo_n "(cached) " >&6
4434 ac_check_lib_save_LIBS=$LIBS
4435 LIBS="-lselinux $LIBS"
4436 cat >conftest.$ac_ext <<_ACEOF
4439 cat confdefs.h >>conftest.$ac_ext
4440 cat >>conftest.$ac_ext <<_ACEOF
4441 /* end confdefs.h. */
4443 /* Override any GCC internal prototype to avoid an error.
4444 Use char because int might match the return type of a GCC
4445 builtin and then its argument prototype would still apply. */
4449 char is_selinux_enabled ();
4453 return is_selinux_enabled ();
4458 rm -f conftest.$ac_objext conftest$ac_exeext
4459 if { (ac_try="$ac_link"
4461 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4462 *) ac_try_echo
=$ac_try;;
4464 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4465 $as_echo "$ac_try_echo") >&5
4466 (eval "$ac_link") 2>conftest.er1
4468 grep -v '^ *+' conftest.er1
>conftest.err
4470 cat conftest.err
>&5
4471 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4472 (exit $ac_status); } && {
4473 test -z "$ac_c_werror_flag" ||
4474 test ! -s conftest.err
4475 } && test -s conftest
$ac_exeext && {
4476 test "$cross_compiling" = yes ||
4477 $as_test_x conftest
$ac_exeext
4479 ac_cv_lib_selinux_is_selinux_enabled
=yes
4481 $as_echo "$as_me: failed program was:" >&5
4482 sed 's/^/| /' conftest.
$ac_ext >&5
4484 ac_cv_lib_selinux_is_selinux_enabled
=no
4487 rm -rf conftest.dSYM
4488 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
4489 conftest
$ac_exeext conftest.
$ac_ext
4490 LIBS
=$ac_check_lib_save_LIBS
4492 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
4493 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
4494 if test $ac_cv_lib_selinux_is_selinux_enabled = yes; then
4495 LIBS
="$LIBS -lselinux"
4496 cat >>confdefs.h
<<\_ACEOF
4497 #define HAVE_SELINUX 1
4503 { $as_echo "$as_me:$LINENO: result: yes" >&5
4504 $as_echo "yes" >&6; }
4508 { $as_echo "$as_me:$LINENO: checking --with-features argument" >&5
4509 $as_echo_n "checking --with-features argument... " >&6; }
4511 # Check whether --with-features was given.
4512 if test "${with_features+set}" = set; then
4513 withval
=$with_features; features
="$withval"; { $as_echo "$as_me:$LINENO: result: $features" >&5
4514 $as_echo "$features" >&6; }
4516 features
="normal"; { $as_echo "$as_me:$LINENO: result: Defaulting to normal" >&5
4517 $as_echo "Defaulting to normal" >&6; }
4524 tiny
) cat >>confdefs.h
<<\_ACEOF
4528 small
) cat >>confdefs.h
<<\_ACEOF
4529 #define FEAT_SMALL 1
4532 normal
) cat >>confdefs.h
<<\_ACEOF
4533 #define FEAT_NORMAL 1
4535 dovimdiff
="installvimdiff";
4536 dogvimdiff
="installgvimdiff" ;;
4537 big
) cat >>confdefs.h
<<\_ACEOF
4540 dovimdiff
="installvimdiff";
4541 dogvimdiff
="installgvimdiff" ;;
4542 huge
) cat >>confdefs.h
<<\_ACEOF
4545 dovimdiff
="installvimdiff";
4546 dogvimdiff
="installgvimdiff" ;;
4547 *) { $as_echo "$as_me:$LINENO: result: Sorry, $features is not supported" >&5
4548 $as_echo "Sorry, $features is not supported" >&6; } ;;
4554 { $as_echo "$as_me:$LINENO: checking --with-compiledby argument" >&5
4555 $as_echo_n "checking --with-compiledby argument... " >&6; }
4557 # Check whether --with-compiledby was given.
4558 if test "${with_compiledby+set}" = set; then
4559 withval
=$with_compiledby; compiledby
="$withval"; { $as_echo "$as_me:$LINENO: result: $withval" >&5
4560 $as_echo "$withval" >&6; }
4562 compiledby
=""; { $as_echo "$as_me:$LINENO: result: no" >&5
4563 $as_echo "no" >&6; }
4568 { $as_echo "$as_me:$LINENO: checking --disable-xsmp argument" >&5
4569 $as_echo_n "checking --disable-xsmp argument... " >&6; }
4570 # Check whether --enable-xsmp was given.
4571 if test "${enable_xsmp+set}" = set; then
4572 enableval
=$enable_xsmp;
4578 if test "$enable_xsmp" = "yes"; then
4579 { $as_echo "$as_me:$LINENO: result: no" >&5
4580 $as_echo "no" >&6; }
4581 { $as_echo "$as_me:$LINENO: checking --disable-xsmp-interact argument" >&5
4582 $as_echo_n "checking --disable-xsmp-interact argument... " >&6; }
4583 # Check whether --enable-xsmp-interact was given.
4584 if test "${enable_xsmp_interact+set}" = set; then
4585 enableval
=$enable_xsmp_interact;
4587 enable_xsmp_interact
="yes"
4590 if test "$enable_xsmp_interact" = "yes"; then
4591 { $as_echo "$as_me:$LINENO: result: no" >&5
4592 $as_echo "no" >&6; }
4593 cat >>confdefs.h
<<\_ACEOF
4594 #define USE_XSMP_INTERACT 1
4598 { $as_echo "$as_me:$LINENO: result: yes" >&5
4599 $as_echo "yes" >&6; }
4602 { $as_echo "$as_me:$LINENO: result: yes" >&5
4603 $as_echo "yes" >&6; }
4606 { $as_echo "$as_me:$LINENO: checking --enable-mzschemeinterp argument" >&5
4607 $as_echo_n "checking --enable-mzschemeinterp argument... " >&6; }
4608 # Check whether --enable-mzschemeinterp was given.
4609 if test "${enable_mzschemeinterp+set}" = set; then
4610 enableval
=$enable_mzschemeinterp;
4612 enable_mzschemeinterp
="no"
4615 { $as_echo "$as_me:$LINENO: result: $enable_mzschemeinterp" >&5
4616 $as_echo "$enable_mzschemeinterp" >&6; }
4618 if test "$enable_mzschemeinterp" = "yes"; then
4621 { $as_echo "$as_me:$LINENO: checking --with-plthome argument" >&5
4622 $as_echo_n "checking --with-plthome argument... " >&6; }
4624 # Check whether --with-plthome was given.
4625 if test "${with_plthome+set}" = set; then
4626 withval
=$with_plthome; with_plthome
="$withval"; { $as_echo "$as_me:$LINENO: result: $with_plthome" >&5
4627 $as_echo "$with_plthome" >&6; }
4629 with_plthome
="";{ $as_echo "$as_me:$LINENO: result: \"no\"" >&5
4630 $as_echo "\"no\"" >&6; }
4634 if test "X$with_plthome" != "X"; then
4635 vi_cv_path_mzscheme_pfx
="$with_plthome"
4637 { $as_echo "$as_me:$LINENO: checking PLTHOME environment var" >&5
4638 $as_echo_n "checking PLTHOME environment var... " >&6; }
4639 if test "X$PLTHOME" != "X"; then
4640 { $as_echo "$as_me:$LINENO: result: \"$PLTHOME\"" >&5
4641 $as_echo "\"$PLTHOME\"" >&6; }
4642 vi_cv_path_mzscheme_pfx
="$PLTHOME"
4644 { $as_echo "$as_me:$LINENO: result: \"not set\"" >&5
4645 $as_echo "\"not set\"" >&6; }
4646 # Extract the first word of "mzscheme", so it can be a program name with args.
4647 set dummy mzscheme
; ac_word
=$2
4648 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4649 $as_echo_n "checking for $ac_word... " >&6; }
4650 if test "${ac_cv_path_vi_cv_path_mzscheme+set}" = set; then
4651 $as_echo_n "(cached) " >&6
4653 case $vi_cv_path_mzscheme in
4655 ac_cv_path_vi_cv_path_mzscheme
="$vi_cv_path_mzscheme" # Let the user override the test with a path.
4658 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4662 test -z "$as_dir" && as_dir
=.
4663 for ac_exec_ext
in '' $ac_executable_extensions; do
4664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4665 ac_cv_path_vi_cv_path_mzscheme
="$as_dir/$ac_word$ac_exec_ext"
4666 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4676 vi_cv_path_mzscheme
=$ac_cv_path_vi_cv_path_mzscheme
4677 if test -n "$vi_cv_path_mzscheme"; then
4678 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme" >&5
4679 $as_echo "$vi_cv_path_mzscheme" >&6; }
4681 { $as_echo "$as_me:$LINENO: result: no" >&5
4682 $as_echo "no" >&6; }
4687 if test "X$vi_cv_path_mzscheme" != "X"; then
4688 lsout
=`ls -l $vi_cv_path_mzscheme`
4689 if echo "$lsout" |
grep -e '->' >/dev
/null
2>/dev
/null
; then
4690 vi_cv_path_mzscheme
=`echo "$lsout" | sed 's/.*-> \(.*\)/\1/'`
4694 if test "X$vi_cv_path_mzscheme" != "X"; then
4695 { $as_echo "$as_me:$LINENO: checking MzScheme install prefix" >&5
4696 $as_echo_n "checking MzScheme install prefix... " >&6; }
4697 if test "${vi_cv_path_mzscheme_pfx+set}" = set; then
4698 $as_echo_n "(cached) " >&6
4700 vi_cv_path_mzscheme_pfx
=`
4701 ${vi_cv_path_mzscheme} -evm \
4702 "(display (simplify-path \
4703 (build-path (call-with-values \
4704 (lambda () (split-path (find-system-path (quote exec-file)))) \
4705 (lambda (base name must-be-dir?) base)) (quote up))))"`
4707 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme_pfx" >&5
4708 $as_echo "$vi_cv_path_mzscheme_pfx" >&6; }
4709 vi_cv_path_mzscheme_pfx
=`echo "$vi_cv_path_mzscheme_pfx" | sed 's+/$++'`
4715 if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
4716 { $as_echo "$as_me:$LINENO: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include" >&5
4717 $as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include... " >&6; }
4718 if test -f $vi_cv_path_mzscheme_pfx/include
/scheme.h
; then
4719 { $as_echo "$as_me:$LINENO: result: \"yes\"" >&5
4720 $as_echo "\"yes\"" >&6; }
4722 { $as_echo "$as_me:$LINENO: result: \"no\"" >&5
4723 $as_echo "\"no\"" >&6; }
4724 { $as_echo "$as_me:$LINENO: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/plt/include" >&5
4725 $as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/plt/include... " >&6; }
4726 if test -f $vi_cv_path_mzscheme_pfx/include
/plt
/scheme.h
; then
4727 { $as_echo "$as_me:$LINENO: result: \"yes\"" >&5
4728 $as_echo "\"yes\"" >&6; }
4731 { $as_echo "$as_me:$LINENO: result: \"no\"" >&5
4732 $as_echo "\"no\"" >&6; }
4733 vi_cv_path_mzscheme_pfx
=
4738 if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
4739 if test "x$MACOSX" = "xyes"; then
4740 MZSCHEME_LIBS
="-framework PLT_MzScheme"
4741 elif test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a"; then
4742 MZSCHEME_LIBS
="${vi_cv_path_mzscheme_pfx}/lib/libmzscheme.a ${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a"
4744 MZSCHEME_LIBS
="-L${vi_cv_path_mzscheme_pfx}/lib -lmzscheme -lmzgc"
4745 if test "$GCC" = yes; then
4746 MZSCHEME_LIBS
="$MZSCHEME_LIBS -Wl,-rpath -Wl,${vi_cv_path_mzscheme_pfx}/lib"
4747 elif test "`(uname) 2>/dev/null`" = SunOS
&&
4748 uname
-r |
grep '^5' >/dev
/null
; then
4749 MZSCHEME_LIBS
="$MZSCHEME_LIBS -R ${vi_cv_path_mzscheme_pfx}/lib"
4752 if test -d $vi_cv_path_mzscheme_pfx/lib
/plt
/collects
; then
4753 SCHEME_COLLECTS
=lib
/plt
/
4755 MZSCHEME_CFLAGS
="-I${vi_cv_path_mzscheme_pfx}/include${SCHEME_INC} \
4756 -DMZSCHEME_COLLECTS='\"${vi_cv_path_mzscheme_pfx}/${SCHEME_COLLECTS}collects\"'"
4757 MZSCHEME_SRC
="if_mzsch.c"
4758 MZSCHEME_OBJ
="objects/if_mzsch.o"
4759 MZSCHEME_PRO
="if_mzsch.pro"
4760 cat >>confdefs.h
<<\_ACEOF
4761 #define FEAT_MZSCHEME 1
4773 { $as_echo "$as_me:$LINENO: checking --enable-perlinterp argument" >&5
4774 $as_echo_n "checking --enable-perlinterp argument... " >&6; }
4775 # Check whether --enable-perlinterp was given.
4776 if test "${enable_perlinterp+set}" = set; then
4777 enableval
=$enable_perlinterp;
4779 enable_perlinterp
="no"
4782 { $as_echo "$as_me:$LINENO: result: $enable_perlinterp" >&5
4783 $as_echo "$enable_perlinterp" >&6; }
4784 if test "$enable_perlinterp" = "yes"; then
4786 # Extract the first word of "perl", so it can be a program name with args.
4787 set dummy perl
; ac_word
=$2
4788 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4789 $as_echo_n "checking for $ac_word... " >&6; }
4790 if test "${ac_cv_path_vi_cv_path_perl+set}" = set; then
4791 $as_echo_n "(cached) " >&6
4793 case $vi_cv_path_perl in
4795 ac_cv_path_vi_cv_path_perl
="$vi_cv_path_perl" # Let the user override the test with a path.
4798 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4802 test -z "$as_dir" && as_dir
=.
4803 for ac_exec_ext
in '' $ac_executable_extensions; do
4804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4805 ac_cv_path_vi_cv_path_perl
="$as_dir/$ac_word$ac_exec_ext"
4806 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4816 vi_cv_path_perl
=$ac_cv_path_vi_cv_path_perl
4817 if test -n "$vi_cv_path_perl"; then
4818 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_perl" >&5
4819 $as_echo "$vi_cv_path_perl" >&6; }
4821 { $as_echo "$as_me:$LINENO: result: no" >&5
4822 $as_echo "no" >&6; }
4826 if test "X$vi_cv_path_perl" != "X"; then
4827 { $as_echo "$as_me:$LINENO: checking Perl version" >&5
4828 $as_echo_n "checking Perl version... " >&6; }
4829 if $vi_cv_path_perl -e 'require 5.003_01' >/dev
/null
2>/dev
/null
; then
4830 eval `$vi_cv_path_perl -V:usethreads`
4831 if test "X$usethreads" = "XUNKNOWN" -o "X$usethreads" = "Xundef"; then
4834 if $vi_cv_path_perl -e 'require 5.6.0' >/dev
/null
2>/dev
/null
; then
4835 eval `$vi_cv_path_perl -V:use5005threads`
4836 if test "X$use5005threads" = "XUNKNOWN" -o "X$use5005threads" = "Xundef"; then
4840 { $as_echo "$as_me:$LINENO: result: >>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&5
4841 $as_echo ">>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&6; }
4845 { $as_echo "$as_me:$LINENO: result: >>> Perl 5.5 with threads cannot be used <<<" >&5
4846 $as_echo ">>> Perl 5.5 with threads cannot be used <<<" >&6; }
4849 if test $badthreads = no
; then
4850 { $as_echo "$as_me:$LINENO: result: OK" >&5
4851 $as_echo "OK" >&6; }
4852 eval `$vi_cv_path_perl -V:shrpenv`
4853 if test "X$shrpenv" = "XUNKNOWN"; then # pre 5.003_04
4856 vi_cv_perllib
=`$vi_cv_path_perl -MConfig -e 'print $Config{privlibexp}'`
4858 perlcppflags
=`$vi_cv_path_perl -Mlib=$srcdir -MExtUtils::Embed \
4859 -e 'ccflags;perl_inc;print"\n"' | sed -e 's/-fno[^ ]*//'`
4860 perllibs
=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed -e 'ldopts' | \
4861 sed -e '/Warning/d' -e '/Note (probably harmless)/d' \
4862 -e 's/-bE:perl.exp//' -e 's/-lc //'`
4863 perlldflags
=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed \
4864 -e 'ccdlflags' | sed -e 's/-bE:perl.exp//'`
4866 { $as_echo "$as_me:$LINENO: checking if compile and link flags for Perl are sane" >&5
4867 $as_echo_n "checking if compile and link flags for Perl are sane... " >&6; }
4870 ldflags_save
=$LDFLAGS
4871 CFLAGS
="$CFLAGS $perlcppflags"
4872 LIBS
="$LIBS $perllibs"
4873 LDFLAGS
="$perlldflags $LDFLAGS"
4874 cat >conftest.
$ac_ext <<_ACEOF
4877 cat confdefs.h
>>conftest.
$ac_ext
4878 cat >>conftest.
$ac_ext <<_ACEOF
4879 /* end confdefs.h. */
4889 rm -f conftest.
$ac_objext conftest
$ac_exeext
4890 if { (ac_try
="$ac_link"
4892 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4893 *) ac_try_echo=$ac_try;;
4895 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4896 $as_echo "$ac_try_echo") >&5
4897 (eval "$ac_link") 2>conftest.er1
4899 grep -v '^ *+' conftest.er1 >conftest.err
4901 cat conftest.err >&5
4902 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903 (exit $ac_status); } && {
4904 test -z "$ac_c_werror_flag" ||
4905 test ! -s conftest.err
4906 } && test -s conftest$ac_exeext && {
4907 test "$cross_compiling" = yes ||
4908 $as_test_x conftest$ac_exeext
4910 { $as_echo "$as_me:$LINENO: result: yes" >&5
4911 $as_echo "yes" >&6; }; perl_ok=yes
4913 $as_echo "$as_me: failed program was:" >&5
4914 sed 's/^/| /' conftest.$ac_ext >&5
4916 { $as_echo "$as_me:$LINENO: result: no: PERL DISABLED" >&5
4917 $as_echo "no: PERL DISABLED" >&6; }; perl_ok=no
4920 rm -rf conftest.dSYM
4921 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4922 conftest$ac_exeext conftest.$ac_ext
4925 LDFLAGS=$ldflags_save
4926 if test $perl_ok = yes; then
4927 if test "X$perlcppflags" != "X"; then
4928 PERL_CFLAGS=`echo "$perlcppflags" |
sed -e 's/-pipe //' -e 's/-W[^ ]*//'`
4930 if test "X$perlldflags" != "X"; then
4931 LDFLAGS="$perlldflags $LDFLAGS"
4934 PERL_SRC="auto/if_perl.c if_perlsfio.c"
4935 PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o"
4936 PERL_PRO="if_perl.pro if_perlsfio.pro"
4937 cat >>confdefs.h <<\_ACEOF
4944 { $as_echo "$as_me:$LINENO: result: >>> too old; need Perl version 5.003_01 or later <<<" >&5
4945 $as_echo ">>> too old; need Perl version 5.003_01 or later <<<" >&6; }
4949 if test "x$MACOSX" = "xyes"; then
4950 dir=/System/Library/Perl
4951 darwindir=$dir/darwin
4952 if test -d $darwindir; then
4955 dir=/System/Library/Perl/5.8.1
4956 darwindir=$dir/darwin-thread-multi-2level
4957 if test -d $darwindir; then
4961 if test -n "$PERL"; then
4963 PERL_CFLAGS="-DFEAT_PERL -I$darwindir/CORE"
4964 PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o $darwindir/auto/DynaLoader/DynaLoader.a"
4965 PERL_LIBS="-L$darwindir/CORE -lperl"
4975 { $as_echo "$as_me:$LINENO: checking --enable-eclinterp argument" >&5
4976 $as_echo_n "checking --enable-eclinterp argument..." >&6; }
4977 # Check whether --enable-eclinterp was given.
4978 if test "${enable_eclinterp+set}" = set; then
4979 enableval=$enable_eclinterp;
4981 enable_eclinterp="no"
4984 { $as_echo "$as_me:$LINENO: result: $enable_eclinterp" >&5
4985 $as_echo "${ECHO_T}$enable_eclinterp" >&6; }
4986 if test "$enable_eclinterp" = "yes"; then
4987 # Extract the first word of "ecl-config", so it can be a program name with args.
4988 set dummy ecl-config; ac_word=$2
4989 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4990 $as_echo_n "checking for $ac_word..." >&6; }
4991 if test "${ac_cv_path_vi_cv_path_ecl_config+set}" = set; then
4992 $as_echo_n "(cached)" >&6
4994 case $vi_cv_path_ecl_config in
4996 ac_cv_path_vi_cv_path_ecl_config="$vi_cv_path_ecl_config" # Let the user override the test with a path.
4999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5003 test -z "$as_dir" && as_dir=.
5004 for ac_exec_ext in '' $ac_executable_extensions; do
5005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5006 ac_cv_path_vi_cv_path_ecl_config="$as_dir/$ac_word$ac_exec_ext"
5007 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5017 vi_cv_path_ecl_config=$ac_cv_path_vi_cv_path_ecl_config
5018 if test -n "$vi_cv_path_ecl_config"; then
5019 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_ecl_config" >&5
5020 $as_echo "${ECHO_T}$vi_cv_path_ecl_config" >&6; }
5022 { $as_echo "$as_me:$LINENO: result: no" >&5
5023 $as_echo "${ECHO_T}no" >&6; }
5027 if test "X$vi_cv_path_ecl_config" != "X"; then
5029 if test "${vi_cv_path_ecl_plibs+set}" = set; then
5030 $as_echo_n "(cached)" >&6
5033 vi_cv_path_ecl_plibs=`ecl-config
--libs`
5038 ECL_LIBS="${vi_cv_path_ecl_plibs}"
5039 if test "${vi_cv_path_ecl_cflags+set}" = set; then
5040 $as_echo_n "(cached)" >&6
5043 vi_cv_path_ecl_cflags=`ecl-config
--cflags`
5047 ECL_CFLAGS="${vi_cv_path_ecl_cflags}"
5050 ECL_OBJ="objects/if_ecl.o"
5052 { echo "$as_me:$LINENO: checking if compile and link flags for ECL are sane" >&5
5053 $as_echo_n "checking if compile and link flags for ECL are sane..." >&6; }
5056 CFLAGS="$CFLAGS $ECL_CFLAGS"
5057 LIBS="$LIBS $ECL_LIBS"
5058 cat >conftest.$ac_ext <<_ACEOF
5061 cat confdefs.h >>conftest.$ac_ext
5062 cat >>conftest.$ac_ext <<_ACEOF
5063 /* end confdefs.h. */
5073 rm -f conftest.$ac_objext conftest$ac_exeext
5074 if { (eval $as_echo "$as_me:$LINENO: \"$ac_link\"") >&5
5075 (eval $ac_link) 2>conftest.er1
5077 grep -v '^ *+' conftest.er1 >conftest.err
5079 cat conftest.err >&5
5080 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5081 (exit $ac_status); } &&
5082 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5083 { (eval $as_echo "$as_me:$LINENO: \"$ac_try\"") >&5
5086 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5087 (exit $ac_status); }; } &&
5088 { ac_try='test -s conftest$ac_exeext'
5089 { (eval $as_echo "$as_me:$LINENO: \"$ac_try\"") >&5
5092 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5093 (exit $ac_status); }; }; then
5094 { $as_echo "$as_me:$LINENO: result: yes" >&5
5095 $as_echo "${ECHO_T}yes" >&6; }; ecl_ok=yes
5097 $as_echo "$as_me: failed program was:" >&5
5098 sed 's/^/| /' conftest.$ac_ext >&5
5100 { $as_echo "$as_me:$LINENO: result: no: ECL DISABLED" >&5
5101 $as_echo "${ECHO_T}no: ECL DISABLED" >&6; }; ecl_ok=no
5104 rm -f conftest.err conftest.$ac_objext \
5105 conftest$ac_exeext conftest.$ac_ext
5108 if test $ecl_ok = yes; then
5109 cat >>confdefs.h <<\_ACEOF
5121 { $as_echo "$as_me:$LINENO: checking --enable-pythoninterp argument" >&5
5122 $as_echo_n "checking --enable-pythoninterp argument... " >&6; }
5123 # Check whether --enable-pythoninterp was given.
5124 if test "${enable_pythoninterp+set}" = set; then
5125 enableval=$enable_pythoninterp;
5127 enable_pythoninterp="no"
5130 { $as_echo "$as_me:$LINENO: result: $enable_pythoninterp" >&5
5131 $as_echo "$enable_pythoninterp" >&6; }
5132 if test "$enable_pythoninterp" = "yes"; then
5133 # Extract the first word of "python", so it can be a program name with args.
5134 set dummy python; ac_word=$2
5135 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5136 $as_echo_n "checking for $ac_word... " >&6; }
5137 if test "${ac_cv_path_vi_cv_path_python+set}" = set; then
5138 $as_echo_n "(cached) " >&6
5140 case $vi_cv_path_python in
5142 ac_cv_path_vi_cv_path_python="$vi_cv_path_python" # Let the user override the test with a path.
5145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5149 test -z "$as_dir" && as_dir=.
5150 for ac_exec_ext in '' $ac_executable_extensions; do
5151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5152 ac_cv_path_vi_cv_path_python="$as_dir/$ac_word$ac_exec_ext"
5153 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5163 vi_cv_path_python=$ac_cv_path_vi_cv_path_python
5164 if test -n "$vi_cv_path_python"; then
5165 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_python" >&5
5166 $as_echo "$vi_cv_path_python" >&6; }
5168 { $as_echo "$as_me:$LINENO: result: no" >&5
5169 $as_echo "no" >&6; }
5173 if test "X$vi_cv_path_python" != "X"; then
5175 { $as_echo "$as_me:$LINENO: checking Python version" >&5
5176 $as_echo_n "checking Python version... " >&6; }
5177 if test "${vi_cv_var_python_version+set}" = set; then
5178 $as_echo_n "(cached) " >&6
5180 vi_cv_var_python_version=`
5181 ${vi_cv_path_python} -c 'import sys; print sys.version[:3]'`
5184 { $as_echo "$as_me:$LINENO: result: $vi_cv_var_python_version" >&5
5185 $as_echo "$vi_cv_var_python_version" >&6; }
5187 { $as_echo "$as_me:$LINENO: checking Python is 1.4 or better" >&5
5188 $as_echo_n "checking Python is 1.4 or better... " >&6; }
5189 if ${vi_cv_path_python} -c \
5190 "import sys; sys.exit(${vi_cv_var_python_version} < 1.4)"
5192 { $as_echo "$as_me:$LINENO: result: yep" >&5
5193 $as_echo "yep" >&6; }
5195 { $as_echo "$as_me:$LINENO: checking Python's install prefix" >&5
5196 $as_echo_n "checking Python's install prefix... " >&6; }
5197 if test "${vi_cv_path_python_pfx+set}" = set; then
5198 $as_echo_n "(cached) " >&6
5200 vi_cv_path_python_pfx=`
5201 ${vi_cv_path_python} -c \
5202 "import sys; print sys.prefix"`
5204 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_python_pfx" >&5
5205 $as_echo "$vi_cv_path_python_pfx" >&6; }
5207 { $as_echo "$as_me:$LINENO: checking Python's execution prefix" >&5
5208 $as_echo_n "checking Python's execution prefix... " >&6; }
5209 if test "${vi_cv_path_python_epfx+set}" = set; then
5210 $as_echo_n "(cached) " >&6
5212 vi_cv_path_python_epfx=`
5213 ${vi_cv_path_python} -c \
5214 "import sys; print sys.exec_prefix"`
5216 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_python_epfx" >&5
5217 $as_echo "$vi_cv_path_python_epfx" >&6; }
5220 if test "${vi_cv_path_pythonpath+set}" = set; then
5221 $as_echo_n "(cached) " >&6
5223 vi_cv_path_pythonpath=`
5225 ${vi_cv_path_python} -c \
5226 "import sys, string; print string.join(sys.path,':')"`
5232 # Check whether --with-python-config-dir was given.
5233 if test "${with_python_config_dir+set}" = set; then
5234 withval=$with_python_config_dir; vi_cv_path_python_conf="${withval}"
5238 { $as_echo "$as_me:$LINENO: checking Python's configuration directory" >&5
5239 $as_echo_n "checking Python's configuration directory... " >&6; }
5240 if test "${vi_cv_path_python_conf+set}" = set; then
5241 $as_echo_n "(cached) " >&6
5244 vi_cv_path_python_conf=
5245 for path in "${vi_cv_path_python_pfx}" "${vi_cv_path_python_epfx}"; do
5246 for subdir in lib share; do
5247 d="${path}/${subdir}/python${vi_cv_var_python_version}/config"
5248 if test -d "$d" && test -f "$d/config.c"; then
5249 vi_cv_path_python_conf="$d"
5255 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_python_conf" >&5
5256 $as_echo "$vi_cv_path_python_conf" >&6; }
5258 PYTHON_CONFDIR="${vi_cv_path_python_conf}"
5260 if test "X$PYTHON_CONFDIR" = "X"; then
5261 { $as_echo "$as_me:$LINENO: result: can't find it!" >&5
5262 $as_echo "can't find it!" >&6; }
5265 if test "${vi_cv_path_python_plibs+set}" = set; then
5266 $as_echo_n "(cached) " >&6
5270 tmp_mkf="$pwd/config-PyMake$$"
5271 cat -- "${PYTHON_CONFDIR}/Makefile" - <<'eof' >"${tmp_mkf}"
5273 @echo "python_MODLIBS='$(MODLIBS)'"
5274 @echo "python_LIBS='$(LIBS)'"
5275 @echo "python_SYSLIBS='$(SYSLIBS)'"
5276 @echo "python_LINKFORSHARED='$(LINKFORSHARED)'"
5278 eval "`cd ${PYTHON_CONFDIR} && make -f "${tmp_mkf}" __ |
sed '/ directory /d'`"
5279 rm -f -- "${tmp_mkf}"
5280 if test "x$MACOSX" = "xyes" && ${vi_cv_path_python} -c \
5281 "import sys; sys.exit(${vi_cv_var_python_version} < 2.3)"; then
5282 vi_cv_path_python_plibs="-framework Python"
5284 if test "${vi_cv_var_python_version}" = "1.4"; then
5285 vi_cv_path_python_plibs="${PYTHON_CONFDIR}/libModules.a ${PYTHON_CONFDIR}/libPython.a ${PYTHON_CONFDIR}/libObjects.a ${PYTHON_CONFDIR}/libParser.a"
5287 vi_cv_path_python_plibs="-L${PYTHON_CONFDIR} -lpython${vi_cv_var_python_version}"
5289 vi_cv_path_python_plibs="${vi_cv_path_python_plibs} ${python_MODLIBS} ${python_LIBS} ${python_SYSLIBS} ${python_LINKFORSHARED}"
5290 vi_cv_path_python_plibs=`echo $vi_cv_path_python_plibs |
sed s
/-ltermcap//`
5296 PYTHON_LIBS="${vi_cv_path_python_plibs}"
5297 if test "${vi_cv_path_python_pfx}" = "${vi_cv_path_python_epfx}"; then
5298 PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version}"
5300 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}"
5302 PYTHON_SRC="if_python.c"
5303 if test "x$MACOSX" = "xyes"; then
5304 PYTHON_OBJ="objects/if_python.o"
5306 PYTHON_OBJ="objects/if_python.o objects/py_config.o"
5308 if test "${vi_cv_var_python_version}" = "1.4"; then
5309 PYTHON_OBJ="$PYTHON_OBJ objects/py_getpath.o"
5311 PYTHON_GETPATH_CFLAGS="-DPYTHONPATH='\"${vi_cv_path_pythonpath}\"' -DPREFIX='\"${vi_cv_path_python_pfx}\"' -DEXEC_PREFIX='\"${vi_cv_path_python_epfx}\"'"
5313 { $as_echo "$as_me:$LINENO: checking if -pthread should be used" >&5
5314 $as_echo_n "checking if -pthread should be used... " >&6; }
5317 if test "`(uname
) 2>/dev
/null
`" != Darwin; then
5318 test "$GCC" = yes && threadsafe_flag="-pthread"
5319 if test "`(uname
) 2>/dev
/null
`" = FreeBSD; then
5320 threadsafe_flag="-D_THREAD_SAFE"
5321 thread_lib="-pthread"
5325 if test -n "$threadsafe_flag"; then
5327 CFLAGS="$CFLAGS $threadsafe_flag"
5328 LIBS="$LIBS $thread_lib"
5329 cat >conftest.$ac_ext <<_ACEOF
5332 cat confdefs.h >>conftest.$ac_ext
5333 cat >>conftest.$ac_ext <<_ACEOF
5334 /* end confdefs.h. */
5344 rm -f conftest.$ac_objext conftest$ac_exeext
5345 if { (ac_try="$ac_link"
5347 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5348 *) ac_try_echo
=$ac_try;;
5350 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5351 $as_echo "$ac_try_echo") >&5
5352 (eval "$ac_link") 2>conftest.er1
5354 grep -v '^ *+' conftest.er1
>conftest.err
5356 cat conftest.err
>&5
5357 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5358 (exit $ac_status); } && {
5359 test -z "$ac_c_werror_flag" ||
5360 test ! -s conftest.err
5361 } && test -s conftest
$ac_exeext && {
5362 test "$cross_compiling" = yes ||
5363 $as_test_x conftest
$ac_exeext
5365 { $as_echo "$as_me:$LINENO: result: yes" >&5
5366 $as_echo "yes" >&6; }; PYTHON_CFLAGS
="$PYTHON_CFLAGS $threadsafe_flag"
5368 $as_echo "$as_me: failed program was:" >&5
5369 sed 's/^/| /' conftest.
$ac_ext >&5
5371 { $as_echo "$as_me:$LINENO: result: no" >&5
5372 $as_echo "no" >&6; }; LIBS
=$libs_save_old
5376 rm -rf conftest.dSYM
5377 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5378 conftest
$ac_exeext conftest.
$ac_ext
5381 { $as_echo "$as_me:$LINENO: result: no" >&5
5382 $as_echo "no" >&6; }
5385 { $as_echo "$as_me:$LINENO: checking if compile and link flags for Python are sane" >&5
5386 $as_echo_n "checking if compile and link flags for Python are sane... " >&6; }
5389 CFLAGS
="$CFLAGS $PYTHON_CFLAGS"
5390 LIBS
="$LIBS $PYTHON_LIBS"
5391 cat >conftest.
$ac_ext <<_ACEOF
5394 cat confdefs.h
>>conftest.
$ac_ext
5395 cat >>conftest.
$ac_ext <<_ACEOF
5396 /* end confdefs.h. */
5406 rm -f conftest.
$ac_objext conftest
$ac_exeext
5407 if { (ac_try
="$ac_link"
5409 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5410 *) ac_try_echo=$ac_try;;
5412 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5413 $as_echo "$ac_try_echo") >&5
5414 (eval "$ac_link") 2>conftest.er1
5416 grep -v '^ *+' conftest.er1 >conftest.err
5418 cat conftest.err >&5
5419 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5420 (exit $ac_status); } && {
5421 test -z "$ac_c_werror_flag" ||
5422 test ! -s conftest.err
5423 } && test -s conftest$ac_exeext && {
5424 test "$cross_compiling" = yes ||
5425 $as_test_x conftest$ac_exeext
5427 { $as_echo "$as_me:$LINENO: result: yes" >&5
5428 $as_echo "yes" >&6; }; python_ok=yes
5430 $as_echo "$as_me: failed program was:" >&5
5431 sed 's/^/| /' conftest.$ac_ext >&5
5433 { $as_echo "$as_me:$LINENO: result: no: PYTHON DISABLED" >&5
5434 $as_echo "no: PYTHON DISABLED" >&6; }; python_ok=no
5437 rm -rf conftest.dSYM
5438 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5439 conftest$ac_exeext conftest.$ac_ext
5442 if test $python_ok = yes; then
5443 cat >>confdefs.h <<\_ACEOF
5444 #define FEAT_PYTHON 1
5457 { $as_echo "$as_me:$LINENO: result: too old" >&5
5458 $as_echo "too old" >&6; }
5469 { $as_echo "$as_me:$LINENO: checking --enable-tclinterp argument" >&5
5470 $as_echo_n "checking --enable-tclinterp argument... " >&6; }
5471 # Check whether --enable-tclinterp was given.
5472 if test "${enable_tclinterp+set}" = set; then
5473 enableval=$enable_tclinterp;
5475 enable_tclinterp="no"
5478 { $as_echo "$as_me:$LINENO: result: $enable_tclinterp" >&5
5479 $as_echo "$enable_tclinterp" >&6; }
5481 if test "$enable_tclinterp" = "yes"; then
5483 { $as_echo "$as_me:$LINENO: checking --with-tclsh argument" >&5
5484 $as_echo_n "checking --with-tclsh argument... " >&6; }
5486 # Check whether --with-tclsh was given.
5487 if test "${with_tclsh+set}" = set; then
5488 withval=$with_tclsh; tclsh_name="$withval"; { $as_echo "$as_me:$LINENO: result: $tclsh_name" >&5
5489 $as_echo "$tclsh_name" >&6; }
5491 tclsh_name="tclsh8.5"; { $as_echo "$as_me:$LINENO: result: no" >&5
5492 $as_echo "no" >&6; }
5495 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5496 set dummy $tclsh_name; ac_word=$2
5497 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5498 $as_echo_n "checking for $ac_word... " >&6; }
5499 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5500 $as_echo_n "(cached) " >&6
5502 case $vi_cv_path_tcl in
5504 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5511 test -z "$as_dir" && as_dir=.
5512 for ac_exec_ext in '' $ac_executable_extensions; do
5513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5514 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5515 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5525 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5526 if test -n "$vi_cv_path_tcl"; then
5527 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5528 $as_echo "$vi_cv_path_tcl" >&6; }
5530 { $as_echo "$as_me:$LINENO: result: no" >&5
5531 $as_echo "no" >&6; }
5537 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.5"; then
5538 tclsh_name="tclsh8.4"
5539 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5540 set dummy $tclsh_name; ac_word=$2
5541 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5542 $as_echo_n "checking for $ac_word... " >&6; }
5543 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5544 $as_echo_n "(cached) " >&6
5546 case $vi_cv_path_tcl in
5548 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5555 test -z "$as_dir" && as_dir=.
5556 for ac_exec_ext in '' $ac_executable_extensions; do
5557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5558 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5559 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5569 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5570 if test -n "$vi_cv_path_tcl"; then
5571 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5572 $as_echo "$vi_cv_path_tcl" >&6; }
5574 { $as_echo "$as_me:$LINENO: result: no" >&5
5575 $as_echo "no" >&6; }
5580 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.4"; then
5581 tclsh_name="tclsh8.2"
5582 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5583 set dummy $tclsh_name; ac_word=$2
5584 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5585 $as_echo_n "checking for $ac_word... " >&6; }
5586 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5587 $as_echo_n "(cached) " >&6
5589 case $vi_cv_path_tcl in
5591 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5598 test -z "$as_dir" && as_dir=.
5599 for ac_exec_ext in '' $ac_executable_extensions; do
5600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5601 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5602 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5612 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5613 if test -n "$vi_cv_path_tcl"; then
5614 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5615 $as_echo "$vi_cv_path_tcl" >&6; }
5617 { $as_echo "$as_me:$LINENO: result: no" >&5
5618 $as_echo "no" >&6; }
5623 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.2"; then
5624 tclsh_name="tclsh8.0"
5625 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5626 set dummy $tclsh_name; ac_word=$2
5627 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5628 $as_echo_n "checking for $ac_word... " >&6; }
5629 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5630 $as_echo_n "(cached) " >&6
5632 case $vi_cv_path_tcl in
5634 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5641 test -z "$as_dir" && as_dir=.
5642 for ac_exec_ext in '' $ac_executable_extensions; do
5643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5644 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5645 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5655 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5656 if test -n "$vi_cv_path_tcl"; then
5657 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5658 $as_echo "$vi_cv_path_tcl" >&6; }
5660 { $as_echo "$as_me:$LINENO: result: no" >&5
5661 $as_echo "no" >&6; }
5666 if test "X$vi_cv_path_tcl" = "X"; then
5668 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5669 set dummy $tclsh_name; ac_word=$2
5670 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5671 $as_echo_n "checking for $ac_word... " >&6; }
5672 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5673 $as_echo_n "(cached) " >&6
5675 case $vi_cv_path_tcl in
5677 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5684 test -z "$as_dir" && as_dir=.
5685 for ac_exec_ext in '' $ac_executable_extensions; do
5686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5687 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5688 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5698 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5699 if test -n "$vi_cv_path_tcl"; then
5700 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5701 $as_echo "$vi_cv_path_tcl" >&6; }
5703 { $as_echo "$as_me:$LINENO: result: no" >&5
5704 $as_echo "no" >&6; }
5709 if test "X$vi_cv_path_tcl" != "X"; then
5710 { $as_echo "$as_me:$LINENO: checking Tcl version" >&5
5711 $as_echo_n "checking Tcl version... " >&6; }
5712 if echo 'exit [expr [info tclversion] < 8.0]' | $vi_cv_path_tcl - ; then
5713 tclver=`echo 'puts [info tclversion]' |
$vi_cv_path_tcl -`
5714 { $as_echo "$as_me:$LINENO: result: $tclver - OK" >&5
5715 $as_echo "$tclver - OK" >&6; };
5716 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 -`
5718 { $as_echo "$as_me:$LINENO: checking for location of Tcl include" >&5
5719 $as_echo_n "checking for location of Tcl include... " >&6; }
5720 if test "x$MACOSX" != "xyes"; then
5721 tclinc="$tclloc/include $tclloc/include/tcl $tclloc/include/tcl$tclver /usr/local/include /usr/local/include/tcl$tclver /usr/include /usr/include/tcl$tclver"
5723 tclinc="/System/Library/Frameworks/Tcl.framework/Headers"
5726 for try in $tclinc; do
5727 if test -f "$try/tcl.h"; then
5728 { $as_echo "$as_me:$LINENO: result: $try/tcl.h" >&5
5729 $as_echo "$try/tcl.h" >&6; }
5734 if test -z "$TCL_INC"; then
5735 { $as_echo "$as_me:$LINENO: result: <not found>" >&5
5736 $as_echo "<not found>" >&6; }
5739 if test -z "$SKIP_TCL"; then
5740 { $as_echo "$as_me:$LINENO: checking for location of tclConfig.sh script" >&5
5741 $as_echo_n "checking for location of tclConfig.sh script... " >&6; }
5742 if test "x$MACOSX" != "xyes"; then
5743 tclcnf=`echo $tclinc |
sed s
/include
/lib
/g
`
5744 tclcnf="$tclcnf `echo $tclinc |
sed s
/include
/lib64
/g
`"
5746 tclcnf="/System/Library/Frameworks/Tcl.framework"
5748 for try in $tclcnf; do
5749 if test -f $try/tclConfig.sh; then
5750 { $as_echo "$as_me:$LINENO: result: $try/tclConfig.sh" >&5
5751 $as_echo "$try/tclConfig.sh" >&6; }
5753 TCL_LIBS=`eval echo "$TCL_LIB_SPEC $TCL_LIBS"`
5754 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'`
5758 if test -z "$TCL_LIBS"; then
5759 { $as_echo "$as_me:$LINENO: result: <not found>" >&5
5760 $as_echo "<not found>" >&6; }
5761 { $as_echo "$as_me:$LINENO: checking for Tcl library by myself" >&5
5762 $as_echo_n "checking for Tcl library by myself... " >&6; }
5763 tcllib=`echo $tclinc |
sed s
/include
/lib
/g
`
5764 tcllib="$tcllib `echo $tclinc |
sed s
/include
/lib64
/g
`"
5765 for ext in .so .a ; do
5766 for ver in "" $tclver ; do
5767 for try in $tcllib ; do
5769 if test -f $try/lib$trylib ; then
5770 { $as_echo "$as_me:$LINENO: result: $try/lib$trylib" >&5
5771 $as_echo "$try/lib$trylib" >&6; }
5772 TCL_LIBS="-L$try -ltcl$ver -ldl -lm"
5773 if test "`(uname
) 2>/dev
/null
`" = SunOS &&
5774 uname -r | grep '^5' >/dev/null; then
5775 TCL_LIBS="$TCL_LIBS -R $try"
5782 if test -z "$TCL_LIBS"; then
5783 { $as_echo "$as_me:$LINENO: result: <not found>" >&5
5784 $as_echo "<not found>" >&6; }
5788 if test -z "$SKIP_TCL"; then
5789 cat >>confdefs.h <<\_ACEOF
5794 TCL_OBJ=objects/if_tcl.o
5796 TCL_CFLAGS="-I$TCL_INC $TCL_DEFS"
5800 { $as_echo "$as_me:$LINENO: result: too old; need Tcl version 8.0 or later" >&5
5801 $as_echo "too old; need Tcl version 8.0 or later" >&6; }
5811 { $as_echo "$as_me:$LINENO: checking --enable-rubyinterp argument" >&5
5812 $as_echo_n "checking --enable-rubyinterp argument... " >&6; }
5813 # Check whether --enable-rubyinterp was given.
5814 if test "${enable_rubyinterp+set}" = set; then
5815 enableval=$enable_rubyinterp;
5817 enable_rubyinterp="no"
5820 { $as_echo "$as_me:$LINENO: result: $enable_rubyinterp" >&5
5821 $as_echo "$enable_rubyinterp" >&6; }
5822 if test "$enable_rubyinterp" = "yes"; then
5824 # Extract the first word of "ruby", so it can be a program name with args.
5825 set dummy ruby; ac_word=$2
5826 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5827 $as_echo_n "checking for $ac_word... " >&6; }
5828 if test "${ac_cv_path_vi_cv_path_ruby+set}" = set; then
5829 $as_echo_n "(cached) " >&6
5831 case $vi_cv_path_ruby in
5833 ac_cv_path_vi_cv_path_ruby="$vi_cv_path_ruby" # Let the user override the test with a path.
5836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5840 test -z "$as_dir" && as_dir=.
5841 for ac_exec_ext in '' $ac_executable_extensions; do
5842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5843 ac_cv_path_vi_cv_path_ruby="$as_dir/$ac_word$ac_exec_ext"
5844 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5854 vi_cv_path_ruby=$ac_cv_path_vi_cv_path_ruby
5855 if test -n "$vi_cv_path_ruby"; then
5856 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_ruby" >&5
5857 $as_echo "$vi_cv_path_ruby" >&6; }
5859 { $as_echo "$as_me:$LINENO: result: no" >&5
5860 $as_echo "no" >&6; }
5864 if test "X$vi_cv_path_ruby" != "X"; then
5865 { $as_echo "$as_me:$LINENO: checking Ruby version" >&5
5866 $as_echo_n "checking Ruby version... " >&6; }
5867 if $vi_cv_path_ruby -e '(VERSION rescue RUBY_VERSION) >= "1.6.0" or exit 1' >/dev/null 2>/dev/null; then
5868 { $as_echo "$as_me:$LINENO: result: OK" >&5
5869 $as_echo "OK" >&6; }
5870 { $as_echo "$as_me:$LINENO: checking Ruby header files" >&5
5871 $as_echo_n "checking Ruby header files... " >&6; }
5872 rubyhdrdir=`$vi_cv_path_ruby -r mkmf
-e 'print Config::CONFIG["archdir"] || $hdrdir' 2>/dev
/null
`
5873 if test "X$rubyhdrdir" != "X"; then
5874 { $as_echo "$as_me:$LINENO: result: $rubyhdrdir" >&5
5875 $as_echo "$rubyhdrdir" >&6; }
5876 RUBY_CFLAGS="-I$rubyhdrdir"
5877 rubylibs=`$vi_cv_path_ruby -r rbconfig
-e 'print Config::CONFIG["LIBS"]'`
5878 if test "X$rubylibs" != "X"; then
5879 RUBY_LIBS="$rubylibs"
5881 librubyarg=`$vi_cv_path_ruby -r rbconfig
-e 'print Config.expand(Config::CONFIG["LIBRUBYARG"])'`
5882 if test -f "$rubyhdrdir/$librubyarg"; then
5883 librubyarg="$rubyhdrdir/$librubyarg"
5885 rubylibdir=`$vi_cv_path_ruby -r rbconfig
-e 'print Config.expand(Config::CONFIG["libdir"])'`
5886 if test -f "$rubylibdir/$librubyarg"; then
5887 librubyarg="$rubylibdir/$librubyarg"
5888 elif test "$librubyarg" = "libruby.a"; then
5891 librubyarg=`$vi_cv_path_ruby -r rbconfig
-e "print '$librubyarg'.gsub(/-L\./, %'-L#{Config.expand(Config::CONFIG[\"libdir\"])}')"`
5895 if test "X$librubyarg" != "X"; then
5896 RUBY_LIBS="$librubyarg $RUBY_LIBS"
5898 rubyldflags=`$vi_cv_path_ruby -r rbconfig
-e 'print Config::CONFIG["LDFLAGS"]'`
5899 if test "X$rubyldflags" != "X"; then
5900 LDFLAGS="$rubyldflags $LDFLAGS"
5902 RUBY_SRC="if_ruby.c"
5903 RUBY_OBJ="objects/if_ruby.o"
5904 RUBY_PRO="if_ruby.pro"
5905 cat >>confdefs.h <<\_ACEOF
5910 { $as_echo "$as_me:$LINENO: result: not found" >&5
5911 $as_echo "not found" >&6; }
5914 { $as_echo "$as_me:$LINENO: result: too old; need Ruby version 1.6.0 or later" >&5
5915 $as_echo "too old; need Ruby version 1.6.0 or later" >&6; }
5925 { $as_echo "$as_me:$LINENO: checking --enable-cscope argument" >&5
5926 $as_echo_n "checking --enable-cscope argument... " >&6; }
5927 # Check whether --enable-cscope was given.
5928 if test "${enable_cscope+set}" = set; then
5929 enableval=$enable_cscope;
5934 { $as_echo "$as_me:$LINENO: result: $enable_cscope" >&5
5935 $as_echo "$enable_cscope" >&6; }
5936 if test "$enable_cscope" = "yes"; then
5937 cat >>confdefs.h <<\_ACEOF
5938 #define FEAT_CSCOPE 1
5943 { $as_echo "$as_me:$LINENO: checking --enable-workshop argument" >&5
5944 $as_echo_n "checking --enable-workshop argument... " >&6; }
5945 # Check whether --enable-workshop was given.
5946 if test "${enable_workshop+set}" = set; then
5947 enableval=$enable_workshop;
5949 enable_workshop="no"
5952 { $as_echo "$as_me:$LINENO: result: $enable_workshop" >&5
5953 $as_echo "$enable_workshop" >&6; }
5954 if test "$enable_workshop" = "yes"; then
5955 cat >>confdefs.h <<\_ACEOF
5956 #define FEAT_SUN_WORKSHOP 1
5959 WORKSHOP_SRC="workshop.c integration.c"
5961 WORKSHOP_OBJ="objects/workshop.o objects/integration.o"
5963 if test "${enable_gui-xxx}" = xxx; then
5968 { $as_echo "$as_me:$LINENO: checking --disable-netbeans argument" >&5
5969 $as_echo_n "checking --disable-netbeans argument... " >&6; }
5970 # Check whether --enable-netbeans was given.
5971 if test "${enable_netbeans+set}" = set; then
5972 enableval=$enable_netbeans;
5974 enable_netbeans="yes"
5977 if test "$enable_netbeans" = "yes"; then
5978 { $as_echo "$as_me:$LINENO: result: no" >&5
5979 $as_echo "no" >&6; }
5981 { $as_echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
5982 $as_echo_n "checking for socket in -lsocket... " >&6; }
5983 if test "${ac_cv_lib_socket_socket+set}" = set; then
5984 $as_echo_n "(cached) " >&6
5986 ac_check_lib_save_LIBS=$LIBS
5987 LIBS="-lsocket $LIBS"
5988 cat >conftest.$ac_ext <<_ACEOF
5991 cat confdefs.h >>conftest.$ac_ext
5992 cat >>conftest.$ac_ext <<_ACEOF
5993 /* end confdefs.h. */
5995 /* Override any GCC internal prototype to avoid an error.
5996 Use char because int might match the return type of a GCC
5997 builtin and then its argument prototype would still apply. */
6010 rm -f conftest.$ac_objext conftest$ac_exeext
6011 if { (ac_try="$ac_link"
6013 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6014 *) ac_try_echo
=$ac_try;;
6016 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6017 $as_echo "$ac_try_echo") >&5
6018 (eval "$ac_link") 2>conftest.er1
6020 grep -v '^ *+' conftest.er1
>conftest.err
6022 cat conftest.err
>&5
6023 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6024 (exit $ac_status); } && {
6025 test -z "$ac_c_werror_flag" ||
6026 test ! -s conftest.err
6027 } && test -s conftest
$ac_exeext && {
6028 test "$cross_compiling" = yes ||
6029 $as_test_x conftest
$ac_exeext
6031 ac_cv_lib_socket_socket
=yes
6033 $as_echo "$as_me: failed program was:" >&5
6034 sed 's/^/| /' conftest.
$ac_ext >&5
6036 ac_cv_lib_socket_socket
=no
6039 rm -rf conftest.dSYM
6040 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6041 conftest
$ac_exeext conftest.
$ac_ext
6042 LIBS
=$ac_check_lib_save_LIBS
6044 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
6045 $as_echo "$ac_cv_lib_socket_socket" >&6; }
6046 if test $ac_cv_lib_socket_socket = yes; then
6047 cat >>confdefs.h
<<_ACEOF
6048 #define HAVE_LIBSOCKET 1
6051 LIBS
="-lsocket $LIBS"
6056 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6057 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
6058 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6059 $as_echo_n "(cached) " >&6
6061 ac_check_lib_save_LIBS
=$LIBS
6063 cat >conftest.
$ac_ext <<_ACEOF
6066 cat confdefs.h
>>conftest.
$ac_ext
6067 cat >>conftest.
$ac_ext <<_ACEOF
6068 /* end confdefs.h. */
6070 /* Override any GCC internal prototype to avoid an error.
6071 Use char because int might match the return type of a GCC
6072 builtin and then its argument prototype would still apply. */
6076 char gethostbyname ();
6080 return gethostbyname ();
6085 rm -f conftest.
$ac_objext conftest
$ac_exeext
6086 if { (ac_try
="$ac_link"
6088 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6089 *) ac_try_echo=$ac_try;;
6091 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6092 $as_echo "$ac_try_echo") >&5
6093 (eval "$ac_link") 2>conftest.er1
6095 grep -v '^ *+' conftest.er1 >conftest.err
6097 cat conftest.err >&5
6098 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6099 (exit $ac_status); } && {
6100 test -z "$ac_c_werror_flag" ||
6101 test ! -s conftest.err
6102 } && test -s conftest$ac_exeext && {
6103 test "$cross_compiling" = yes ||
6104 $as_test_x conftest$ac_exeext
6106 ac_cv_lib_nsl_gethostbyname=yes
6108 $as_echo "$as_me: failed program was:" >&5
6109 sed 's/^/| /' conftest.$ac_ext >&5
6111 ac_cv_lib_nsl_gethostbyname=no
6114 rm -rf conftest.dSYM
6115 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6116 conftest$ac_exeext conftest.$ac_ext
6117 LIBS=$ac_check_lib_save_LIBS
6119 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6120 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
6121 if test $ac_cv_lib_nsl_gethostbyname = yes; then
6122 cat >>confdefs.h <<_ACEOF
6123 #define HAVE_LIBNSL 1
6130 { $as_echo "$as_me:$LINENO: checking whether compiling netbeans integration is possible" >&5
6131 $as_echo_n "checking whether compiling netbeans integration is possible... " >&6; }
6132 cat >conftest.$ac_ext <<_ACEOF
6135 cat confdefs.h >>conftest.$ac_ext
6136 cat >>conftest.$ac_ext <<_ACEOF
6137 /* end confdefs.h. */
6144 #include <netinet/in.h>
6146 #include <sys/types.h>
6147 #include <sys/socket.h>
6148 /* Check bitfields */
6150 unsigned int initDone:1;
6158 /* Check creating a socket. */
6159 struct sockaddr_in server;
6160 (void)socket(AF_INET, SOCK_STREAM, 0);
6162 (void)gethostbyname("microsoft.com");
6163 if (errno == ECONNREFUSED)
6164 (void)connect(1, (struct sockaddr *)&server, sizeof(server));
6170 rm -f conftest.$ac_objext conftest$ac_exeext
6171 if { (ac_try="$ac_link"
6173 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6174 *) ac_try_echo
=$ac_try;;
6176 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6177 $as_echo "$ac_try_echo") >&5
6178 (eval "$ac_link") 2>conftest.er1
6180 grep -v '^ *+' conftest.er1
>conftest.err
6182 cat conftest.err
>&5
6183 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6184 (exit $ac_status); } && {
6185 test -z "$ac_c_werror_flag" ||
6186 test ! -s conftest.err
6187 } && test -s conftest
$ac_exeext && {
6188 test "$cross_compiling" = yes ||
6189 $as_test_x conftest
$ac_exeext
6191 { $as_echo "$as_me:$LINENO: result: yes" >&5
6192 $as_echo "yes" >&6; }
6194 $as_echo "$as_me: failed program was:" >&5
6195 sed 's/^/| /' conftest.
$ac_ext >&5
6197 { $as_echo "$as_me:$LINENO: result: no" >&5
6198 $as_echo "no" >&6; }; enable_netbeans
="no"
6201 rm -rf conftest.dSYM
6202 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6203 conftest
$ac_exeext conftest.
$ac_ext
6205 { $as_echo "$as_me:$LINENO: result: yes" >&5
6206 $as_echo "yes" >&6; }
6208 if test "$enable_netbeans" = "yes"; then
6209 cat >>confdefs.h
<<\_ACEOF
6210 #define FEAT_NETBEANS_INTG 1
6213 NETBEANS_SRC
="netbeans.c"
6215 NETBEANS_OBJ
="objects/netbeans.o"
6219 { $as_echo "$as_me:$LINENO: checking --enable-sniff argument" >&5
6220 $as_echo_n "checking --enable-sniff argument... " >&6; }
6221 # Check whether --enable-sniff was given.
6222 if test "${enable_sniff+set}" = set; then
6223 enableval
=$enable_sniff;
6228 { $as_echo "$as_me:$LINENO: result: $enable_sniff" >&5
6229 $as_echo "$enable_sniff" >&6; }
6230 if test "$enable_sniff" = "yes"; then
6231 cat >>confdefs.h
<<\_ACEOF
6232 #define FEAT_SNIFF 1
6235 SNIFF_SRC
="if_sniff.c"
6237 SNIFF_OBJ
="objects/if_sniff.o"
6241 { $as_echo "$as_me:$LINENO: checking --enable-multibyte argument" >&5
6242 $as_echo_n "checking --enable-multibyte argument... " >&6; }
6243 # Check whether --enable-multibyte was given.
6244 if test "${enable_multibyte+set}" = set; then
6245 enableval
=$enable_multibyte;
6247 enable_multibyte
="no"
6250 { $as_echo "$as_me:$LINENO: result: $enable_multibyte" >&5
6251 $as_echo "$enable_multibyte" >&6; }
6252 if test "$enable_multibyte" = "yes"; then
6253 cat >>confdefs.h
<<\_ACEOF
6254 #define FEAT_MBYTE 1
6259 { $as_echo "$as_me:$LINENO: checking --enable-hangulinput argument" >&5
6260 $as_echo_n "checking --enable-hangulinput argument... " >&6; }
6261 # Check whether --enable-hangulinput was given.
6262 if test "${enable_hangulinput+set}" = set; then
6263 enableval
=$enable_hangulinput;
6265 enable_hangulinput
="no"
6268 { $as_echo "$as_me:$LINENO: result: $enable_hangulinput" >&5
6269 $as_echo "$enable_hangulinput" >&6; }
6271 { $as_echo "$as_me:$LINENO: checking --enable-xim argument" >&5
6272 $as_echo_n "checking --enable-xim argument... " >&6; }
6273 # Check whether --enable-xim was given.
6274 if test "${enable_xim+set}" = set; then
6275 enableval
=$enable_xim; { $as_echo "$as_me:$LINENO: result: $enable_xim" >&5
6276 $as_echo "$enable_xim" >&6; }
6278 enable_xim
="auto"; { $as_echo "$as_me:$LINENO: result: defaulting to auto" >&5
6279 $as_echo "defaulting to auto" >&6; }
6283 { $as_echo "$as_me:$LINENO: checking --enable-fontset argument" >&5
6284 $as_echo_n "checking --enable-fontset argument... " >&6; }
6285 # Check whether --enable-fontset was given.
6286 if test "${enable_fontset+set}" = set; then
6287 enableval
=$enable_fontset;
6292 { $as_echo "$as_me:$LINENO: result: $enable_fontset" >&5
6293 $as_echo "$enable_fontset" >&6; }
6295 test -z "$with_x" && with_x
=yes
6296 test "${enable_gui-yes}" != no
-a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && with_x
=yes
6297 if test "$with_x" = no
; then
6298 { $as_echo "$as_me:$LINENO: result: defaulting to: don't HAVE_X11" >&5
6299 $as_echo "defaulting to: don't HAVE_X11" >&6; }
6302 # Extract the first word of "xmkmf", so it can be a program name with args.
6303 set dummy xmkmf
; ac_word
=$2
6304 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6305 $as_echo_n "checking for $ac_word... " >&6; }
6306 if test "${ac_cv_path_xmkmfpath+set}" = set; then
6307 $as_echo_n "(cached) " >&6
6311 ac_cv_path_xmkmfpath
="$xmkmfpath" # Let the user override the test with a path.
6314 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6318 test -z "$as_dir" && as_dir
=.
6319 for ac_exec_ext
in '' $ac_executable_extensions; do
6320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6321 ac_cv_path_xmkmfpath
="$as_dir/$ac_word$ac_exec_ext"
6322 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6332 xmkmfpath
=$ac_cv_path_xmkmfpath
6333 if test -n "$xmkmfpath"; then
6334 { $as_echo "$as_me:$LINENO: result: $xmkmfpath" >&5
6335 $as_echo "$xmkmfpath" >&6; }
6337 { $as_echo "$as_me:$LINENO: result: no" >&5
6338 $as_echo "no" >&6; }
6343 { $as_echo "$as_me:$LINENO: checking for X" >&5
6344 $as_echo_n "checking for X... " >&6; }
6347 # Check whether --with-x was given.
6348 if test "${with_x+set}" = set; then
6352 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6353 if test "x$with_x" = xno
; then
6354 # The user explicitly disabled X.
6357 case $x_includes,$x_libraries in #(
6358 *\'*) { { $as_echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
6359 $as_echo "$as_me: error: Cannot use X directory names containing '" >&2;}
6360 { (exit 1); exit 1; }; };; #(
6361 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then
6362 $as_echo_n "(cached) " >&6
6364 # One or both of the vars are not set, and there is no cached value.
6365 ac_x_includes
=no ac_x_libraries
=no
6366 rm -f -r conftest.dir
6367 if mkdir conftest.dir
; then
6369 cat >Imakefile
<<'_ACEOF'
6371 @echo incroot='${INCROOT}'
6373 @echo usrlibdir='${USRLIBDIR}'
6375 @echo libdir='${LIBDIR}'
6377 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
6378 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6379 for ac_var
in incroot usrlibdir libdir
; do
6380 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
6382 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6383 for ac_extension
in a so sl dylib la dll
; do
6384 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
6385 test -f "$ac_im_libdir/libX11.$ac_extension"; then
6386 ac_im_usrlibdir
=$ac_im_libdir; break
6389 # Screen out bogus values from the imake configuration. They are
6390 # bogus both because they are the default anyway, and because
6391 # using them would break gcc on systems where it needs fixed includes.
6392 case $ac_im_incroot in
6393 /usr
/include
) ac_x_includes
= ;;
6394 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
6396 case $ac_im_usrlibdir in
6398 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
6402 rm -f -r conftest.dir
6405 # Standard set of common directories for X headers.
6406 # Check X11 before X11Rn because it is often a symlink to the current release.
6418 /usr/local/X11/include
6419 /usr/local/X11R6/include
6420 /usr/local/X11R5/include
6421 /usr/local/X11R4/include
6423 /usr/local/include/X11
6424 /usr/local/include/X11R6
6425 /usr/local/include/X11R5
6426 /usr/local/include/X11R4
6430 /usr/XFree86/include/X11
6434 /usr/unsupported/include
6436 /usr/local/x11r5/include
6437 /usr/lpp/Xamples/include
6439 /usr/openwin/include
6440 /usr/openwin/share/include'
6442 if test "$ac_x_includes" = no
; then
6443 # Guess where to find include files, by looking for Xlib.h.
6444 # First, try using that file with no special directory specified.
6445 cat >conftest.
$ac_ext <<_ACEOF
6448 cat confdefs.h
>>conftest.
$ac_ext
6449 cat >>conftest.
$ac_ext <<_ACEOF
6450 /* end confdefs.h. */
6451 #include <X11/Xlib.h>
6453 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6455 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6456 *) ac_try_echo=$ac_try;;
6458 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6459 $as_echo "$ac_try_echo") >&5
6460 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6462 grep -v '^ *+' conftest.er1 >conftest.err
6464 cat conftest.err >&5
6465 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6466 (exit $ac_status); } >/dev/null && {
6467 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6468 test ! -s conftest.err
6470 # We can compile using X headers with no special include directory.
6473 $as_echo "$as_me: failed program was:" >&5
6474 sed 's/^/| /' conftest.$ac_ext >&5
6476 for ac_dir in $ac_x_header_dirs; do
6477 if test -r "$ac_dir/X11/Xlib.h"; then
6478 ac_x_includes=$ac_dir
6484 rm -f conftest.err conftest.$ac_ext
6485 fi # $ac_x_includes = no
6487 if test "$ac_x_libraries" = no; then
6488 # Check for the libraries.
6489 # See if we find them without any special options.
6490 # Don't add to $LIBS permanently.
6493 cat >conftest.$ac_ext <<_ACEOF
6496 cat confdefs.h >>conftest.$ac_ext
6497 cat >>conftest.$ac_ext <<_ACEOF
6498 /* end confdefs.h. */
6499 #include <X11/Xlib.h>
6508 rm -f conftest.$ac_objext conftest$ac_exeext
6509 if { (ac_try="$ac_link"
6511 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6512 *) ac_try_echo
=$ac_try;;
6514 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6515 $as_echo "$ac_try_echo") >&5
6516 (eval "$ac_link") 2>conftest.er1
6518 grep -v '^ *+' conftest.er1
>conftest.err
6520 cat conftest.err
>&5
6521 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6522 (exit $ac_status); } && {
6523 test -z "$ac_c_werror_flag" ||
6524 test ! -s conftest.err
6525 } && test -s conftest
$ac_exeext && {
6526 test "$cross_compiling" = yes ||
6527 $as_test_x conftest
$ac_exeext
6530 # We can link X programs with no special library path.
6533 $as_echo "$as_me: failed program was:" >&5
6534 sed 's/^/| /' conftest.
$ac_ext >&5
6537 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6539 # Don't even attempt the hair of trying to link an X program!
6540 for ac_extension
in a so sl dylib la dll
; do
6541 if test -r "$ac_dir/libX11.$ac_extension"; then
6542 ac_x_libraries
=$ac_dir
6549 rm -rf conftest.dSYM
6550 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6551 conftest
$ac_exeext conftest.
$ac_ext
6552 fi # $ac_x_libraries = no
6554 case $ac_x_includes,$ac_x_libraries in #(
6556 # Didn't find X, or a directory has "'" in its name.
6557 ac_cv_have_x
="have_x=no";; #(
6559 # Record where we found X for the cache.
6560 ac_cv_have_x
="have_x=yes\
6561 ac_x_includes='$ac_x_includes'\
6562 ac_x_libraries='$ac_x_libraries'"
6568 eval "$ac_cv_have_x"
6571 if test "$have_x" != yes; then
6572 { $as_echo "$as_me:$LINENO: result: $have_x" >&5
6573 $as_echo "$have_x" >&6; }
6576 # If each of the values was on the command line, it overrides each guess.
6577 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
6578 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
6579 # Update the cache value to reflect the command line values.
6580 ac_cv_have_x
="have_x=yes\
6581 ac_x_includes='$x_includes'\
6582 ac_x_libraries='$x_libraries'"
6583 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6584 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
6587 if test "$no_x" = yes; then
6588 # Not all programs may use this symbol, but it does not hurt to define it.
6590 cat >>confdefs.h
<<\_ACEOF
6591 #define X_DISPLAY_MISSING 1
6594 X_CFLAGS
= X_PRE_LIBS
= X_LIBS
= X_EXTRA_LIBS
=
6596 if test -n "$x_includes"; then
6597 X_CFLAGS
="$X_CFLAGS -I$x_includes"
6600 # It would also be nice to do this for all -L options, not just this one.
6601 if test -n "$x_libraries"; then
6602 X_LIBS
="$X_LIBS -L$x_libraries"
6603 # For Solaris; some versions of Sun CC require a space after -R and
6604 # others require no space. Words are not sufficient . . . .
6605 { $as_echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
6606 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
6607 ac_xsave_LIBS
=$LIBS; LIBS
="$LIBS -R$x_libraries"
6608 ac_xsave_c_werror_flag
=$ac_c_werror_flag
6609 ac_c_werror_flag
=yes
6610 cat >conftest.
$ac_ext <<_ACEOF
6613 cat confdefs.h
>>conftest.
$ac_ext
6614 cat >>conftest.
$ac_ext <<_ACEOF
6615 /* end confdefs.h. */
6625 rm -f conftest.
$ac_objext conftest
$ac_exeext
6626 if { (ac_try
="$ac_link"
6628 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6629 *) ac_try_echo=$ac_try;;
6631 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6632 $as_echo "$ac_try_echo") >&5
6633 (eval "$ac_link") 2>conftest.er1
6635 grep -v '^ *+' conftest.er1 >conftest.err
6637 cat conftest.err >&5
6638 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6639 (exit $ac_status); } && {
6640 test -z "$ac_c_werror_flag" ||
6641 test ! -s conftest.err
6642 } && test -s conftest$ac_exeext && {
6643 test "$cross_compiling" = yes ||
6644 $as_test_x conftest$ac_exeext
6646 { $as_echo "$as_me:$LINENO: result: no" >&5
6647 $as_echo "no" >&6; }
6648 X_LIBS="$X_LIBS -R$x_libraries"
6650 $as_echo "$as_me: failed program was:" >&5
6651 sed 's/^/| /' conftest.$ac_ext >&5
6653 LIBS="$ac_xsave_LIBS -R $x_libraries"
6654 cat >conftest.$ac_ext <<_ACEOF
6657 cat confdefs.h >>conftest.$ac_ext
6658 cat >>conftest.$ac_ext <<_ACEOF
6659 /* end confdefs.h. */
6669 rm -f conftest.$ac_objext conftest$ac_exeext
6670 if { (ac_try="$ac_link"
6672 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6673 *) ac_try_echo
=$ac_try;;
6675 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6676 $as_echo "$ac_try_echo") >&5
6677 (eval "$ac_link") 2>conftest.er1
6679 grep -v '^ *+' conftest.er1
>conftest.err
6681 cat conftest.err
>&5
6682 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6683 (exit $ac_status); } && {
6684 test -z "$ac_c_werror_flag" ||
6685 test ! -s conftest.err
6686 } && test -s conftest
$ac_exeext && {
6687 test "$cross_compiling" = yes ||
6688 $as_test_x conftest
$ac_exeext
6690 { $as_echo "$as_me:$LINENO: result: yes" >&5
6691 $as_echo "yes" >&6; }
6692 X_LIBS
="$X_LIBS -R $x_libraries"
6694 $as_echo "$as_me: failed program was:" >&5
6695 sed 's/^/| /' conftest.
$ac_ext >&5
6697 { $as_echo "$as_me:$LINENO: result: neither works" >&5
6698 $as_echo "neither works" >&6; }
6701 rm -rf conftest.dSYM
6702 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6703 conftest
$ac_exeext conftest.
$ac_ext
6706 rm -rf conftest.dSYM
6707 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6708 conftest
$ac_exeext conftest.
$ac_ext
6709 ac_c_werror_flag
=$ac_xsave_c_werror_flag
6713 # Check for system-dependent libraries X programs must link with.
6714 # Do this before checking for the system-independent R6 libraries
6715 # (-lICE), since we may need -lsocket or whatever for X linking.
6717 if test "$ISC" = yes; then
6718 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl_s -linet"
6720 # Martyn Johnson says this is needed for Ultrix, if the X
6721 # libraries were built with DECnet support. And Karl Berry says
6722 # the Alpha needs dnet_stub (dnet does not exist).
6723 ac_xsave_LIBS
="$LIBS"; LIBS
="$LIBS $X_LIBS -lX11"
6724 cat >conftest.
$ac_ext <<_ACEOF
6727 cat confdefs.h
>>conftest.
$ac_ext
6728 cat >>conftest.
$ac_ext <<_ACEOF
6729 /* end confdefs.h. */
6731 /* Override any GCC internal prototype to avoid an error.
6732 Use char because int might match the return type of a GCC
6733 builtin and then its argument prototype would still apply. */
6737 char XOpenDisplay ();
6741 return XOpenDisplay ();
6746 rm -f conftest.
$ac_objext conftest
$ac_exeext
6747 if { (ac_try
="$ac_link"
6749 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6750 *) ac_try_echo=$ac_try;;
6752 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6753 $as_echo "$ac_try_echo") >&5
6754 (eval "$ac_link") 2>conftest.er1
6756 grep -v '^ *+' conftest.er1 >conftest.err
6758 cat conftest.err >&5
6759 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6760 (exit $ac_status); } && {
6761 test -z "$ac_c_werror_flag" ||
6762 test ! -s conftest.err
6763 } && test -s conftest$ac_exeext && {
6764 test "$cross_compiling" = yes ||
6765 $as_test_x conftest$ac_exeext
6769 $as_echo "$as_me: failed program was:" >&5
6770 sed 's/^/| /' conftest.$ac_ext >&5
6772 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
6773 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
6774 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
6775 $as_echo_n "(cached) " >&6
6777 ac_check_lib_save_LIBS=$LIBS
6779 cat >conftest.$ac_ext <<_ACEOF
6782 cat confdefs.h >>conftest.$ac_ext
6783 cat >>conftest.$ac_ext <<_ACEOF
6784 /* end confdefs.h. */
6786 /* Override any GCC internal prototype to avoid an error.
6787 Use char because int might match the return type of a GCC
6788 builtin and then its argument prototype would still apply. */
6796 return dnet_ntoa ();
6801 rm -f conftest.$ac_objext conftest$ac_exeext
6802 if { (ac_try="$ac_link"
6804 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6805 *) ac_try_echo
=$ac_try;;
6807 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6808 $as_echo "$ac_try_echo") >&5
6809 (eval "$ac_link") 2>conftest.er1
6811 grep -v '^ *+' conftest.er1
>conftest.err
6813 cat conftest.err
>&5
6814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6815 (exit $ac_status); } && {
6816 test -z "$ac_c_werror_flag" ||
6817 test ! -s conftest.err
6818 } && test -s conftest
$ac_exeext && {
6819 test "$cross_compiling" = yes ||
6820 $as_test_x conftest
$ac_exeext
6822 ac_cv_lib_dnet_dnet_ntoa
=yes
6824 $as_echo "$as_me: failed program was:" >&5
6825 sed 's/^/| /' conftest.
$ac_ext >&5
6827 ac_cv_lib_dnet_dnet_ntoa
=no
6830 rm -rf conftest.dSYM
6831 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6832 conftest
$ac_exeext conftest.
$ac_ext
6833 LIBS
=$ac_check_lib_save_LIBS
6835 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6836 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
6837 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
6838 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet"
6841 if test $ac_cv_lib_dnet_dnet_ntoa = no
; then
6842 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
6843 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
6844 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
6845 $as_echo_n "(cached) " >&6
6847 ac_check_lib_save_LIBS
=$LIBS
6848 LIBS
="-ldnet_stub $LIBS"
6849 cat >conftest.
$ac_ext <<_ACEOF
6852 cat confdefs.h
>>conftest.
$ac_ext
6853 cat >>conftest.
$ac_ext <<_ACEOF
6854 /* end confdefs.h. */
6856 /* Override any GCC internal prototype to avoid an error.
6857 Use char because int might match the return type of a GCC
6858 builtin and then its argument prototype would still apply. */
6866 return dnet_ntoa ();
6871 rm -f conftest.
$ac_objext conftest
$ac_exeext
6872 if { (ac_try
="$ac_link"
6874 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6875 *) ac_try_echo=$ac_try;;
6877 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6878 $as_echo "$ac_try_echo") >&5
6879 (eval "$ac_link") 2>conftest.er1
6881 grep -v '^ *+' conftest.er1 >conftest.err
6883 cat conftest.err >&5
6884 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6885 (exit $ac_status); } && {
6886 test -z "$ac_c_werror_flag" ||
6887 test ! -s conftest.err
6888 } && test -s conftest$ac_exeext && {
6889 test "$cross_compiling" = yes ||
6890 $as_test_x conftest$ac_exeext
6892 ac_cv_lib_dnet_stub_dnet_ntoa=yes
6894 $as_echo "$as_me: failed program was:" >&5
6895 sed 's/^/| /' conftest.$ac_ext >&5
6897 ac_cv_lib_dnet_stub_dnet_ntoa=no
6900 rm -rf conftest.dSYM
6901 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6902 conftest$ac_exeext conftest.$ac_ext
6903 LIBS=$ac_check_lib_save_LIBS
6905 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
6906 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
6907 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
6908 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
6914 rm -rf conftest.dSYM
6915 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6916 conftest$ac_exeext conftest.$ac_ext
6917 LIBS="$ac_xsave_LIBS"
6919 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
6920 # to get the SysV transport functions.
6921 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
6923 # The nsl library prevents programs from opening the X display
6924 # on Irix 5.2, according to T.E. Dickey.
6925 # The functions gethostbyname, getservbyname, and inet_addr are
6926 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
6927 { $as_echo "$as_me:$LINENO: checking for gethostbyname" >&5
6928 $as_echo_n "checking for gethostbyname... " >&6; }
6929 if test "${ac_cv_func_gethostbyname+set}" = set; then
6930 $as_echo_n "(cached) " >&6
6932 cat >conftest.$ac_ext <<_ACEOF
6935 cat confdefs.h >>conftest.$ac_ext
6936 cat >>conftest.$ac_ext <<_ACEOF
6937 /* end confdefs.h. */
6938 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
6939 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6940 #define gethostbyname innocuous_gethostbyname
6942 /* System header to define __stub macros and hopefully few prototypes,
6943 which can conflict with char gethostbyname (); below.
6944 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6945 <limits.h> exists even on freestanding compilers. */
6948 # include <limits.h>
6950 # include <assert.h>
6953 #undef gethostbyname
6955 /* Override any GCC internal prototype to avoid an error.
6956 Use char because int might match the return type of a GCC
6957 builtin and then its argument prototype would still apply. */
6961 char gethostbyname ();
6962 /* The GNU C library defines this for functions which it implements
6963 to always fail with ENOSYS. Some functions are actually named
6964 something starting with __ and the normal name is an alias. */
6965 #if defined __stub_gethostbyname || defined __stub___gethostbyname
6972 return gethostbyname ();
6977 rm -f conftest.$ac_objext conftest$ac_exeext
6978 if { (ac_try="$ac_link"
6980 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6981 *) ac_try_echo
=$ac_try;;
6983 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6984 $as_echo "$ac_try_echo") >&5
6985 (eval "$ac_link") 2>conftest.er1
6987 grep -v '^ *+' conftest.er1
>conftest.err
6989 cat conftest.err
>&5
6990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6991 (exit $ac_status); } && {
6992 test -z "$ac_c_werror_flag" ||
6993 test ! -s conftest.err
6994 } && test -s conftest
$ac_exeext && {
6995 test "$cross_compiling" = yes ||
6996 $as_test_x conftest
$ac_exeext
6998 ac_cv_func_gethostbyname
=yes
7000 $as_echo "$as_me: failed program was:" >&5
7001 sed 's/^/| /' conftest.
$ac_ext >&5
7003 ac_cv_func_gethostbyname
=no
7006 rm -rf conftest.dSYM
7007 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7008 conftest
$ac_exeext conftest.
$ac_ext
7010 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
7011 $as_echo "$ac_cv_func_gethostbyname" >&6; }
7013 if test $ac_cv_func_gethostbyname = no
; then
7014 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
7015 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
7016 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
7017 $as_echo_n "(cached) " >&6
7019 ac_check_lib_save_LIBS
=$LIBS
7021 cat >conftest.
$ac_ext <<_ACEOF
7024 cat confdefs.h
>>conftest.
$ac_ext
7025 cat >>conftest.
$ac_ext <<_ACEOF
7026 /* end confdefs.h. */
7028 /* Override any GCC internal prototype to avoid an error.
7029 Use char because int might match the return type of a GCC
7030 builtin and then its argument prototype would still apply. */
7034 char gethostbyname ();
7038 return gethostbyname ();
7043 rm -f conftest.
$ac_objext conftest
$ac_exeext
7044 if { (ac_try
="$ac_link"
7046 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7047 *) ac_try_echo=$ac_try;;
7049 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7050 $as_echo "$ac_try_echo") >&5
7051 (eval "$ac_link") 2>conftest.er1
7053 grep -v '^ *+' conftest.er1 >conftest.err
7055 cat conftest.err >&5
7056 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7057 (exit $ac_status); } && {
7058 test -z "$ac_c_werror_flag" ||
7059 test ! -s conftest.err
7060 } && test -s conftest$ac_exeext && {
7061 test "$cross_compiling" = yes ||
7062 $as_test_x conftest$ac_exeext
7064 ac_cv_lib_nsl_gethostbyname=yes
7066 $as_echo "$as_me: failed program was:" >&5
7067 sed 's/^/| /' conftest.$ac_ext >&5
7069 ac_cv_lib_nsl_gethostbyname=no
7072 rm -rf conftest.dSYM
7073 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7074 conftest$ac_exeext conftest.$ac_ext
7075 LIBS=$ac_check_lib_save_LIBS
7077 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
7078 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
7079 if test $ac_cv_lib_nsl_gethostbyname = yes; then
7080 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7083 if test $ac_cv_lib_nsl_gethostbyname = no; then
7084 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
7085 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
7086 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
7087 $as_echo_n "(cached) " >&6
7089 ac_check_lib_save_LIBS=$LIBS
7091 cat >conftest.$ac_ext <<_ACEOF
7094 cat confdefs.h >>conftest.$ac_ext
7095 cat >>conftest.$ac_ext <<_ACEOF
7096 /* end confdefs.h. */
7098 /* Override any GCC internal prototype to avoid an error.
7099 Use char because int might match the return type of a GCC
7100 builtin and then its argument prototype would still apply. */
7104 char gethostbyname ();
7108 return gethostbyname ();
7113 rm -f conftest.$ac_objext conftest$ac_exeext
7114 if { (ac_try="$ac_link"
7116 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7117 *) ac_try_echo
=$ac_try;;
7119 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7120 $as_echo "$ac_try_echo") >&5
7121 (eval "$ac_link") 2>conftest.er1
7123 grep -v '^ *+' conftest.er1
>conftest.err
7125 cat conftest.err
>&5
7126 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7127 (exit $ac_status); } && {
7128 test -z "$ac_c_werror_flag" ||
7129 test ! -s conftest.err
7130 } && test -s conftest
$ac_exeext && {
7131 test "$cross_compiling" = yes ||
7132 $as_test_x conftest
$ac_exeext
7134 ac_cv_lib_bsd_gethostbyname
=yes
7136 $as_echo "$as_me: failed program was:" >&5
7137 sed 's/^/| /' conftest.
$ac_ext >&5
7139 ac_cv_lib_bsd_gethostbyname
=no
7142 rm -rf conftest.dSYM
7143 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7144 conftest
$ac_exeext conftest.
$ac_ext
7145 LIBS
=$ac_check_lib_save_LIBS
7147 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
7148 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
7149 if test $ac_cv_lib_bsd_gethostbyname = yes; then
7150 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lbsd"
7156 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7157 # socket/setsockopt and other routines are undefined under SCO ODT
7158 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7159 # on later versions), says Simon Leinen: it contains gethostby*
7160 # variants that don't use the name server (or something). -lsocket
7161 # must be given before -lnsl if both are needed. We assume that
7162 # if connect needs -lnsl, so does gethostbyname.
7163 { $as_echo "$as_me:$LINENO: checking for connect" >&5
7164 $as_echo_n "checking for connect... " >&6; }
7165 if test "${ac_cv_func_connect+set}" = set; then
7166 $as_echo_n "(cached) " >&6
7168 cat >conftest.
$ac_ext <<_ACEOF
7171 cat confdefs.h
>>conftest.
$ac_ext
7172 cat >>conftest.
$ac_ext <<_ACEOF
7173 /* end confdefs.h. */
7174 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
7175 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7176 #define connect innocuous_connect
7178 /* System header to define __stub macros and hopefully few prototypes,
7179 which can conflict with char connect (); below.
7180 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7181 <limits.h> exists even on freestanding compilers. */
7184 # include <limits.h>
7186 # include <assert.h>
7191 /* Override any GCC internal prototype to avoid an error.
7192 Use char because int might match the return type of a GCC
7193 builtin and then its argument prototype would still apply. */
7198 /* The GNU C library defines this for functions which it implements
7199 to always fail with ENOSYS. Some functions are actually named
7200 something starting with __ and the normal name is an alias. */
7201 #if defined __stub_connect || defined __stub___connect
7213 rm -f conftest.
$ac_objext conftest
$ac_exeext
7214 if { (ac_try
="$ac_link"
7216 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7217 *) ac_try_echo=$ac_try;;
7219 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7220 $as_echo "$ac_try_echo") >&5
7221 (eval "$ac_link") 2>conftest.er1
7223 grep -v '^ *+' conftest.er1 >conftest.err
7225 cat conftest.err >&5
7226 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7227 (exit $ac_status); } && {
7228 test -z "$ac_c_werror_flag" ||
7229 test ! -s conftest.err
7230 } && test -s conftest$ac_exeext && {
7231 test "$cross_compiling" = yes ||
7232 $as_test_x conftest$ac_exeext
7234 ac_cv_func_connect=yes
7236 $as_echo "$as_me: failed program was:" >&5
7237 sed 's/^/| /' conftest.$ac_ext >&5
7239 ac_cv_func_connect=no
7242 rm -rf conftest.dSYM
7243 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7244 conftest$ac_exeext conftest.$ac_ext
7246 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
7247 $as_echo "$ac_cv_func_connect" >&6; }
7249 if test $ac_cv_func_connect = no; then
7250 { $as_echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
7251 $as_echo_n "checking for connect in -lsocket... " >&6; }
7252 if test "${ac_cv_lib_socket_connect+set}" = set; then
7253 $as_echo_n "(cached) " >&6
7255 ac_check_lib_save_LIBS=$LIBS
7256 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7257 cat >conftest.$ac_ext <<_ACEOF
7260 cat confdefs.h >>conftest.$ac_ext
7261 cat >>conftest.$ac_ext <<_ACEOF
7262 /* end confdefs.h. */
7264 /* Override any GCC internal prototype to avoid an error.
7265 Use char because int might match the return type of a GCC
7266 builtin and then its argument prototype would still apply. */
7279 rm -f conftest.$ac_objext conftest$ac_exeext
7280 if { (ac_try="$ac_link"
7282 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7283 *) ac_try_echo
=$ac_try;;
7285 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7286 $as_echo "$ac_try_echo") >&5
7287 (eval "$ac_link") 2>conftest.er1
7289 grep -v '^ *+' conftest.er1
>conftest.err
7291 cat conftest.err
>&5
7292 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7293 (exit $ac_status); } && {
7294 test -z "$ac_c_werror_flag" ||
7295 test ! -s conftest.err
7296 } && test -s conftest
$ac_exeext && {
7297 test "$cross_compiling" = yes ||
7298 $as_test_x conftest
$ac_exeext
7300 ac_cv_lib_socket_connect
=yes
7302 $as_echo "$as_me: failed program was:" >&5
7303 sed 's/^/| /' conftest.
$ac_ext >&5
7305 ac_cv_lib_socket_connect
=no
7308 rm -rf conftest.dSYM
7309 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7310 conftest
$ac_exeext conftest.
$ac_ext
7311 LIBS
=$ac_check_lib_save_LIBS
7313 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
7314 $as_echo "$ac_cv_lib_socket_connect" >&6; }
7315 if test $ac_cv_lib_socket_connect = yes; then
7316 X_EXTRA_LIBS
="-lsocket $X_EXTRA_LIBS"
7321 # Guillermo Gomez says -lposix is necessary on A/UX.
7322 { $as_echo "$as_me:$LINENO: checking for remove" >&5
7323 $as_echo_n "checking for remove... " >&6; }
7324 if test "${ac_cv_func_remove+set}" = set; then
7325 $as_echo_n "(cached) " >&6
7327 cat >conftest.
$ac_ext <<_ACEOF
7330 cat confdefs.h
>>conftest.
$ac_ext
7331 cat >>conftest.
$ac_ext <<_ACEOF
7332 /* end confdefs.h. */
7333 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
7334 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7335 #define remove innocuous_remove
7337 /* System header to define __stub macros and hopefully few prototypes,
7338 which can conflict with char remove (); below.
7339 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7340 <limits.h> exists even on freestanding compilers. */
7343 # include <limits.h>
7345 # include <assert.h>
7350 /* Override any GCC internal prototype to avoid an error.
7351 Use char because int might match the return type of a GCC
7352 builtin and then its argument prototype would still apply. */
7357 /* The GNU C library defines this for functions which it implements
7358 to always fail with ENOSYS. Some functions are actually named
7359 something starting with __ and the normal name is an alias. */
7360 #if defined __stub_remove || defined __stub___remove
7372 rm -f conftest.
$ac_objext conftest
$ac_exeext
7373 if { (ac_try
="$ac_link"
7375 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7376 *) ac_try_echo=$ac_try;;
7378 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7379 $as_echo "$ac_try_echo") >&5
7380 (eval "$ac_link") 2>conftest.er1
7382 grep -v '^ *+' conftest.er1 >conftest.err
7384 cat conftest.err >&5
7385 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7386 (exit $ac_status); } && {
7387 test -z "$ac_c_werror_flag" ||
7388 test ! -s conftest.err
7389 } && test -s conftest$ac_exeext && {
7390 test "$cross_compiling" = yes ||
7391 $as_test_x conftest$ac_exeext
7393 ac_cv_func_remove=yes
7395 $as_echo "$as_me: failed program was:" >&5
7396 sed 's/^/| /' conftest.$ac_ext >&5
7398 ac_cv_func_remove=no
7401 rm -rf conftest.dSYM
7402 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7403 conftest$ac_exeext conftest.$ac_ext
7405 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
7406 $as_echo "$ac_cv_func_remove" >&6; }
7408 if test $ac_cv_func_remove = no; then
7409 { $as_echo "$as_me:$LINENO: checking for remove in -lposix" >&5
7410 $as_echo_n "checking for remove in -lposix... " >&6; }
7411 if test "${ac_cv_lib_posix_remove+set}" = set; then
7412 $as_echo_n "(cached) " >&6
7414 ac_check_lib_save_LIBS=$LIBS
7415 LIBS="-lposix $LIBS"
7416 cat >conftest.$ac_ext <<_ACEOF
7419 cat confdefs.h >>conftest.$ac_ext
7420 cat >>conftest.$ac_ext <<_ACEOF
7421 /* end confdefs.h. */
7423 /* Override any GCC internal prototype to avoid an error.
7424 Use char because int might match the return type of a GCC
7425 builtin and then its argument prototype would still apply. */
7438 rm -f conftest.$ac_objext conftest$ac_exeext
7439 if { (ac_try="$ac_link"
7441 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7442 *) ac_try_echo
=$ac_try;;
7444 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7445 $as_echo "$ac_try_echo") >&5
7446 (eval "$ac_link") 2>conftest.er1
7448 grep -v '^ *+' conftest.er1
>conftest.err
7450 cat conftest.err
>&5
7451 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7452 (exit $ac_status); } && {
7453 test -z "$ac_c_werror_flag" ||
7454 test ! -s conftest.err
7455 } && test -s conftest
$ac_exeext && {
7456 test "$cross_compiling" = yes ||
7457 $as_test_x conftest
$ac_exeext
7459 ac_cv_lib_posix_remove
=yes
7461 $as_echo "$as_me: failed program was:" >&5
7462 sed 's/^/| /' conftest.
$ac_ext >&5
7464 ac_cv_lib_posix_remove
=no
7467 rm -rf conftest.dSYM
7468 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7469 conftest
$ac_exeext conftest.
$ac_ext
7470 LIBS
=$ac_check_lib_save_LIBS
7472 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
7473 $as_echo "$ac_cv_lib_posix_remove" >&6; }
7474 if test $ac_cv_lib_posix_remove = yes; then
7475 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lposix"
7480 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7481 { $as_echo "$as_me:$LINENO: checking for shmat" >&5
7482 $as_echo_n "checking for shmat... " >&6; }
7483 if test "${ac_cv_func_shmat+set}" = set; then
7484 $as_echo_n "(cached) " >&6
7486 cat >conftest.
$ac_ext <<_ACEOF
7489 cat confdefs.h
>>conftest.
$ac_ext
7490 cat >>conftest.
$ac_ext <<_ACEOF
7491 /* end confdefs.h. */
7492 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
7493 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7494 #define shmat innocuous_shmat
7496 /* System header to define __stub macros and hopefully few prototypes,
7497 which can conflict with char shmat (); below.
7498 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7499 <limits.h> exists even on freestanding compilers. */
7502 # include <limits.h>
7504 # include <assert.h>
7509 /* Override any GCC internal prototype to avoid an error.
7510 Use char because int might match the return type of a GCC
7511 builtin and then its argument prototype would still apply. */
7516 /* The GNU C library defines this for functions which it implements
7517 to always fail with ENOSYS. Some functions are actually named
7518 something starting with __ and the normal name is an alias. */
7519 #if defined __stub_shmat || defined __stub___shmat
7531 rm -f conftest.
$ac_objext conftest
$ac_exeext
7532 if { (ac_try
="$ac_link"
7534 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7535 *) ac_try_echo=$ac_try;;
7537 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7538 $as_echo "$ac_try_echo") >&5
7539 (eval "$ac_link") 2>conftest.er1
7541 grep -v '^ *+' conftest.er1 >conftest.err
7543 cat conftest.err >&5
7544 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7545 (exit $ac_status); } && {
7546 test -z "$ac_c_werror_flag" ||
7547 test ! -s conftest.err
7548 } && test -s conftest$ac_exeext && {
7549 test "$cross_compiling" = yes ||
7550 $as_test_x conftest$ac_exeext
7552 ac_cv_func_shmat=yes
7554 $as_echo "$as_me: failed program was:" >&5
7555 sed 's/^/| /' conftest.$ac_ext >&5
7560 rm -rf conftest.dSYM
7561 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7562 conftest$ac_exeext conftest.$ac_ext
7564 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
7565 $as_echo "$ac_cv_func_shmat" >&6; }
7567 if test $ac_cv_func_shmat = no; then
7568 { $as_echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
7569 $as_echo_n "checking for shmat in -lipc... " >&6; }
7570 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
7571 $as_echo_n "(cached) " >&6
7573 ac_check_lib_save_LIBS=$LIBS
7575 cat >conftest.$ac_ext <<_ACEOF
7578 cat confdefs.h >>conftest.$ac_ext
7579 cat >>conftest.$ac_ext <<_ACEOF
7580 /* end confdefs.h. */
7582 /* Override any GCC internal prototype to avoid an error.
7583 Use char because int might match the return type of a GCC
7584 builtin and then its argument prototype would still apply. */
7597 rm -f conftest.$ac_objext conftest$ac_exeext
7598 if { (ac_try="$ac_link"
7600 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7601 *) ac_try_echo
=$ac_try;;
7603 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7604 $as_echo "$ac_try_echo") >&5
7605 (eval "$ac_link") 2>conftest.er1
7607 grep -v '^ *+' conftest.er1
>conftest.err
7609 cat conftest.err
>&5
7610 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7611 (exit $ac_status); } && {
7612 test -z "$ac_c_werror_flag" ||
7613 test ! -s conftest.err
7614 } && test -s conftest
$ac_exeext && {
7615 test "$cross_compiling" = yes ||
7616 $as_test_x conftest
$ac_exeext
7618 ac_cv_lib_ipc_shmat
=yes
7620 $as_echo "$as_me: failed program was:" >&5
7621 sed 's/^/| /' conftest.
$ac_ext >&5
7623 ac_cv_lib_ipc_shmat
=no
7626 rm -rf conftest.dSYM
7627 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7628 conftest
$ac_exeext conftest.
$ac_ext
7629 LIBS
=$ac_check_lib_save_LIBS
7631 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
7632 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
7633 if test $ac_cv_lib_ipc_shmat = yes; then
7634 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lipc"
7640 # Check for libraries that X11R6 Xt/Xaw programs need.
7641 ac_save_LDFLAGS
=$LDFLAGS
7642 test -n "$x_libraries" && LDFLAGS
="$LDFLAGS -L$x_libraries"
7643 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7644 # check for ICE first), but we must link in the order -lSM -lICE or
7645 # we get undefined symbols. So assume we have SM if we have ICE.
7646 # These have to be linked with before -lX11, unlike the other
7647 # libraries we check for below, so use a different variable.
7648 # John Interrante, Karl Berry
7649 { $as_echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
7650 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
7651 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
7652 $as_echo_n "(cached) " >&6
7654 ac_check_lib_save_LIBS
=$LIBS
7655 LIBS
="-lICE $X_EXTRA_LIBS $LIBS"
7656 cat >conftest.
$ac_ext <<_ACEOF
7659 cat confdefs.h
>>conftest.
$ac_ext
7660 cat >>conftest.
$ac_ext <<_ACEOF
7661 /* end confdefs.h. */
7663 /* Override any GCC internal prototype to avoid an error.
7664 Use char because int might match the return type of a GCC
7665 builtin and then its argument prototype would still apply. */
7669 char IceConnectionNumber ();
7673 return IceConnectionNumber ();
7678 rm -f conftest.
$ac_objext conftest
$ac_exeext
7679 if { (ac_try
="$ac_link"
7681 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7682 *) ac_try_echo=$ac_try;;
7684 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7685 $as_echo "$ac_try_echo") >&5
7686 (eval "$ac_link") 2>conftest.er1
7688 grep -v '^ *+' conftest.er1 >conftest.err
7690 cat conftest.err >&5
7691 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7692 (exit $ac_status); } && {
7693 test -z "$ac_c_werror_flag" ||
7694 test ! -s conftest.err
7695 } && test -s conftest$ac_exeext && {
7696 test "$cross_compiling" = yes ||
7697 $as_test_x conftest$ac_exeext
7699 ac_cv_lib_ICE_IceConnectionNumber=yes
7701 $as_echo "$as_me: failed program was:" >&5
7702 sed 's/^/| /' conftest.$ac_ext >&5
7704 ac_cv_lib_ICE_IceConnectionNumber=no
7707 rm -rf conftest.dSYM
7708 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7709 conftest$ac_exeext conftest.$ac_ext
7710 LIBS=$ac_check_lib_save_LIBS
7712 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7713 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
7714 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
7715 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7718 LDFLAGS=$ac_save_LDFLAGS
7723 if test "$OS390Unix" = "yes"; then
7724 CFLAGS="$CFLAGS -W c,dll"
7725 LDFLAGS="$LDFLAGS -W l,dll"
7726 X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE -lXmu"
7730 if test -d "$x_includes" && test ! -d "$x_libraries"; then
7731 x_libraries=`echo "$x_includes" |
sed s
/include
/lib
/`
7732 { $as_echo "$as_me:$LINENO: result: Corrected X libraries to $x_libraries" >&5
7733 $as_echo "Corrected X libraries to $x_libraries" >&6; }
7734 X_LIBS="$X_LIBS -L$x_libraries"
7735 if test "`(uname
) 2>/dev
/null
`" = SunOS &&
7736 uname -r | grep '^5' >/dev/null; then
7737 X_LIBS="$X_LIBS -R $x_libraries"
7741 if test -d "$x_libraries" && test ! -d "$x_includes"; then
7742 x_includes=`echo "$x_libraries" |
sed s
/lib
/include
/`
7743 { $as_echo "$as_me:$LINENO: result: Corrected X includes to $x_includes" >&5
7744 $as_echo "Corrected X includes to $x_includes" >&6; }
7745 X_CFLAGS="$X_CFLAGS -I$x_includes"
7748 X_CFLAGS="`echo $X_CFLAGS\ |
sed 's%-I/usr/include %%'`"
7749 X_LIBS="`echo $X_LIBS\ |
sed 's%-L/usr/lib %%'`"
7750 X_LIBS="`echo $X_LIBS\ |
sed -e 's%-R/usr/lib %%' -e 's%-R /usr/lib %%'`"
7753 { $as_echo "$as_me:$LINENO: checking if X11 header files can be found" >&5
7754 $as_echo_n "checking if X11 header files can be found... " >&6; }
7756 CFLAGS="$CFLAGS $X_CFLAGS"
7757 cat >conftest.$ac_ext <<_ACEOF
7760 cat confdefs.h >>conftest.$ac_ext
7761 cat >>conftest.$ac_ext <<_ACEOF
7762 /* end confdefs.h. */
7763 #include <X11/Xlib.h>
7764 #include <X11/Intrinsic.h>
7773 rm -f conftest.$ac_objext
7774 if { (ac_try="$ac_compile"
7776 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7777 *) ac_try_echo
=$ac_try;;
7779 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7780 $as_echo "$ac_try_echo") >&5
7781 (eval "$ac_compile") 2>conftest.er1
7783 grep -v '^ *+' conftest.er1
>conftest.err
7785 cat conftest.err
>&5
7786 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7787 (exit $ac_status); } && {
7788 test -z "$ac_c_werror_flag" ||
7789 test ! -s conftest.err
7790 } && test -s conftest.
$ac_objext; then
7791 { $as_echo "$as_me:$LINENO: result: yes" >&5
7792 $as_echo "yes" >&6; }
7794 $as_echo "$as_me: failed program was:" >&5
7795 sed 's/^/| /' conftest.
$ac_ext >&5
7797 { $as_echo "$as_me:$LINENO: result: no" >&5
7798 $as_echo "no" >&6; }; no_x
=yes
7801 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7804 if test "${no_x-no}" = yes; then
7807 cat >>confdefs.h
<<\_ACEOF
7814 ac_save_LDFLAGS
="$LDFLAGS"
7815 LDFLAGS
="-L$x_libraries $LDFLAGS"
7817 { $as_echo "$as_me:$LINENO: checking for _XdmcpAuthDoIt in -lXdmcp" >&5
7818 $as_echo_n "checking for _XdmcpAuthDoIt in -lXdmcp... " >&6; }
7819 if test "${ac_cv_lib_Xdmcp__XdmcpAuthDoIt+set}" = set; then
7820 $as_echo_n "(cached) " >&6
7822 ac_check_lib_save_LIBS
=$LIBS
7823 LIBS
="-lXdmcp -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS -lXdmcp $LIBS"
7824 cat >conftest.
$ac_ext <<_ACEOF
7827 cat confdefs.h
>>conftest.
$ac_ext
7828 cat >>conftest.
$ac_ext <<_ACEOF
7829 /* end confdefs.h. */
7831 /* Override any GCC internal prototype to avoid an error.
7832 Use char because int might match the return type of a GCC
7833 builtin and then its argument prototype would still apply. */
7837 char _XdmcpAuthDoIt ();
7841 return _XdmcpAuthDoIt ();
7846 rm -f conftest.
$ac_objext conftest
$ac_exeext
7847 if { (ac_try
="$ac_link"
7849 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7850 *) ac_try_echo=$ac_try;;
7852 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7853 $as_echo "$ac_try_echo") >&5
7854 (eval "$ac_link") 2>conftest.er1
7856 grep -v '^ *+' conftest.er1 >conftest.err
7858 cat conftest.err >&5
7859 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7860 (exit $ac_status); } && {
7861 test -z "$ac_c_werror_flag" ||
7862 test ! -s conftest.err
7863 } && test -s conftest$ac_exeext && {
7864 test "$cross_compiling" = yes ||
7865 $as_test_x conftest$ac_exeext
7867 ac_cv_lib_Xdmcp__XdmcpAuthDoIt=yes
7869 $as_echo "$as_me: failed program was:" >&5
7870 sed 's/^/| /' conftest.$ac_ext >&5
7872 ac_cv_lib_Xdmcp__XdmcpAuthDoIt=no
7875 rm -rf conftest.dSYM
7876 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7877 conftest$ac_exeext conftest.$ac_ext
7878 LIBS=$ac_check_lib_save_LIBS
7880 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&5
7881 $as_echo "$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&6; }
7882 if test $ac_cv_lib_Xdmcp__XdmcpAuthDoIt = yes; then
7883 X_EXTRA_LIBS="$X_EXTRA_LIBS -lXdmcp"
7887 { $as_echo "$as_me:$LINENO: checking for IceOpenConnection in -lICE" >&5
7888 $as_echo_n "checking for IceOpenConnection in -lICE... " >&6; }
7889 if test "${ac_cv_lib_ICE_IceOpenConnection+set}" = set; then
7890 $as_echo_n "(cached) " >&6
7892 ac_check_lib_save_LIBS=$LIBS
7893 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7894 cat >conftest.$ac_ext <<_ACEOF
7897 cat confdefs.h >>conftest.$ac_ext
7898 cat >>conftest.$ac_ext <<_ACEOF
7899 /* end confdefs.h. */
7901 /* Override any GCC internal prototype to avoid an error.
7902 Use char because int might match the return type of a GCC
7903 builtin and then its argument prototype would still apply. */
7907 char IceOpenConnection ();
7911 return IceOpenConnection ();
7916 rm -f conftest.$ac_objext conftest$ac_exeext
7917 if { (ac_try="$ac_link"
7919 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7920 *) ac_try_echo
=$ac_try;;
7922 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7923 $as_echo "$ac_try_echo") >&5
7924 (eval "$ac_link") 2>conftest.er1
7926 grep -v '^ *+' conftest.er1
>conftest.err
7928 cat conftest.err
>&5
7929 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7930 (exit $ac_status); } && {
7931 test -z "$ac_c_werror_flag" ||
7932 test ! -s conftest.err
7933 } && test -s conftest
$ac_exeext && {
7934 test "$cross_compiling" = yes ||
7935 $as_test_x conftest
$ac_exeext
7937 ac_cv_lib_ICE_IceOpenConnection
=yes
7939 $as_echo "$as_me: failed program was:" >&5
7940 sed 's/^/| /' conftest.
$ac_ext >&5
7942 ac_cv_lib_ICE_IceOpenConnection
=no
7945 rm -rf conftest.dSYM
7946 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7947 conftest
$ac_exeext conftest.
$ac_ext
7948 LIBS
=$ac_check_lib_save_LIBS
7950 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceOpenConnection" >&5
7951 $as_echo "$ac_cv_lib_ICE_IceOpenConnection" >&6; }
7952 if test $ac_cv_lib_ICE_IceOpenConnection = yes; then
7953 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lSM -lICE"
7957 LDFLAGS
="$X_LIBS $ac_save_LDFLAGS"
7958 { $as_echo "$as_me:$LINENO: checking for XpmCreatePixmapFromData in -lXpm" >&5
7959 $as_echo_n "checking for XpmCreatePixmapFromData in -lXpm... " >&6; }
7960 if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then
7961 $as_echo_n "(cached) " >&6
7963 ac_check_lib_save_LIBS
=$LIBS
7964 LIBS
="-lXpm -lXt $X_PRE_LIBS -lXpm -lX11 $X_EXTRA_LIBS $LIBS"
7965 cat >conftest.
$ac_ext <<_ACEOF
7968 cat confdefs.h
>>conftest.
$ac_ext
7969 cat >>conftest.
$ac_ext <<_ACEOF
7970 /* end confdefs.h. */
7972 /* Override any GCC internal prototype to avoid an error.
7973 Use char because int might match the return type of a GCC
7974 builtin and then its argument prototype would still apply. */
7978 char XpmCreatePixmapFromData ();
7982 return XpmCreatePixmapFromData ();
7987 rm -f conftest.
$ac_objext conftest
$ac_exeext
7988 if { (ac_try
="$ac_link"
7990 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7991 *) ac_try_echo=$ac_try;;
7993 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7994 $as_echo "$ac_try_echo") >&5
7995 (eval "$ac_link") 2>conftest.er1
7997 grep -v '^ *+' conftest.er1 >conftest.err
7999 cat conftest.err >&5
8000 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8001 (exit $ac_status); } && {
8002 test -z "$ac_c_werror_flag" ||
8003 test ! -s conftest.err
8004 } && test -s conftest$ac_exeext && {
8005 test "$cross_compiling" = yes ||
8006 $as_test_x conftest$ac_exeext
8008 ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
8010 $as_echo "$as_me: failed program was:" >&5
8011 sed 's/^/| /' conftest.$ac_ext >&5
8013 ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
8016 rm -rf conftest.dSYM
8017 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8018 conftest$ac_exeext conftest.$ac_ext
8019 LIBS=$ac_check_lib_save_LIBS
8021 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
8022 $as_echo "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6; }
8023 if test $ac_cv_lib_Xpm_XpmCreatePixmapFromData = yes; then
8024 X_PRE_LIBS="$X_PRE_LIBS -lXpm"
8028 { $as_echo "$as_me:$LINENO: checking if X11 header files implicitly declare return values" >&5
8029 $as_echo_n "checking if X11 header files implicitly declare return values... " >&6; }
8031 CFLAGS="$CFLAGS $X_CFLAGS -Werror"
8032 cat >conftest.$ac_ext <<_ACEOF
8035 cat confdefs.h >>conftest.$ac_ext
8036 cat >>conftest.$ac_ext <<_ACEOF
8037 /* end confdefs.h. */
8038 #include <X11/Xlib.h>
8047 rm -f conftest.$ac_objext
8048 if { (ac_try="$ac_compile"
8050 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8051 *) ac_try_echo
=$ac_try;;
8053 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8054 $as_echo "$ac_try_echo") >&5
8055 (eval "$ac_compile") 2>conftest.er1
8057 grep -v '^ *+' conftest.er1
>conftest.err
8059 cat conftest.err
>&5
8060 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8061 (exit $ac_status); } && {
8062 test -z "$ac_c_werror_flag" ||
8063 test ! -s conftest.err
8064 } && test -s conftest.
$ac_objext; then
8065 { $as_echo "$as_me:$LINENO: result: no" >&5
8066 $as_echo "no" >&6; }
8068 $as_echo "$as_me: failed program was:" >&5
8069 sed 's/^/| /' conftest.
$ac_ext >&5
8071 CFLAGS
="$CFLAGS -Wno-implicit-int"
8072 cat >conftest.
$ac_ext <<_ACEOF
8075 cat confdefs.h
>>conftest.
$ac_ext
8076 cat >>conftest.
$ac_ext <<_ACEOF
8077 /* end confdefs.h. */
8078 #include <X11/Xlib.h>
8087 rm -f conftest.
$ac_objext
8088 if { (ac_try
="$ac_compile"
8090 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8091 *) ac_try_echo=$ac_try;;
8093 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8094 $as_echo "$ac_try_echo") >&5
8095 (eval "$ac_compile") 2>conftest.er1
8097 grep -v '^ *+' conftest.er1 >conftest.err
8099 cat conftest.err >&5
8100 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8101 (exit $ac_status); } && {
8102 test -z "$ac_c_werror_flag" ||
8103 test ! -s conftest.err
8104 } && test -s conftest.$ac_objext; then
8105 { $as_echo "$as_me:$LINENO: result: yes" >&5
8106 $as_echo "yes" >&6; }; cflags_save="$cflags_save -Wno-implicit-int"
8108 $as_echo "$as_me: failed program was:" >&5
8109 sed 's/^/| /' conftest.$ac_ext >&5
8111 { $as_echo "$as_me:$LINENO: result: test failed" >&5
8112 $as_echo "test failed" >&6; }
8116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8123 LDFLAGS="$ac_save_LDFLAGS"
8128 test "x$with_x" = xno -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && enable_gui=no
8130 { $as_echo "$as_me:$LINENO: checking --enable-gui argument" >&5
8131 $as_echo_n "checking --enable-gui argument... " >&6; }
8132 # Check whether --enable-gui was given.
8133 if test "${enable_gui+set}" = set; then
8134 enableval=$enable_gui;
8140 enable_gui_canon=`echo "_$enable_gui" | \
8141 sed 's/[ _+-]//g;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
8153 if test "x$QNX" = "xyes" -a "x$with_x" = "xno" ; then
8155 case "$enable_gui_canon" in
8156 no) { $as_echo "$as_me:$LINENO: result: no GUI support" >&5
8157 $as_echo "no GUI support" >&6; }
8159 yes|"") { $as_echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5
8160 $as_echo "yes - automatic GUI support" >&6; } ;;
8161 auto) { $as_echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5
8162 $as_echo "auto - automatic GUI support" >&6; } ;;
8163 photon) { $as_echo "$as_me:$LINENO: result: Photon GUI support" >&5
8164 $as_echo "Photon GUI support" >&6; } ;;
8165 *) { $as_echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
8166 $as_echo "Sorry, $enable_gui GUI is not supported" >&6; }
8170 elif test "x$MACOSX" = "xyes" -a "x$with_x" = "xno" ; then
8172 case "$enable_gui_canon" in
8173 no) { $as_echo "$as_me:$LINENO: result: no GUI support" >&5
8174 $as_echo "no GUI support" >&6; }
8176 yes|"") { $as_echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5
8177 $as_echo "yes - automatic GUI support" >&6; } ;;
8178 auto) { $as_echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5
8179 $as_echo "auto - automatic GUI support" >&6; } ;;
8180 carbon) { $as_echo "$as_me:$LINENO: result: Carbon GUI support" >&5
8181 $as_echo "Carbon GUI support" >&6; } ;;
8182 *) { $as_echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
8183 $as_echo "Sorry, $enable_gui GUI is not supported" >&6; }
8189 case "$enable_gui_canon" in
8190 no|none) { $as_echo "$as_me:$LINENO: result: no GUI support" >&5
8191 $as_echo "no GUI support" >&6; } ;;
8192 yes|""|auto) { $as_echo "$as_me:$LINENO: result: yes/auto - automatic GUI support" >&5
8193 $as_echo "yes/auto - automatic GUI support" >&6; }
8201 gtk) { $as_echo "$as_me:$LINENO: result: GTK+ 1.x GUI support" >&5
8202 $as_echo "GTK+ 1.x GUI support" >&6; }
8204 gtk2) { $as_echo "$as_me:$LINENO: result: GTK+ 2.x GUI support" >&5
8205 $as_echo "GTK+ 2.x GUI support" >&6; }
8208 gnome) { $as_echo "$as_me:$LINENO: result: GNOME 1.x GUI support" >&5
8209 $as_echo "GNOME 1.x GUI support" >&6; }
8212 gnome2) { $as_echo "$as_me:$LINENO: result: GNOME 2.x GUI support" >&5
8213 $as_echo "GNOME 2.x GUI support" >&6; }
8217 motif) { $as_echo "$as_me:$LINENO: result: Motif GUI support" >&5
8218 $as_echo "Motif GUI support" >&6; }
8220 athena) { $as_echo "$as_me:$LINENO: result: Athena GUI support" >&5
8221 $as_echo "Athena GUI support" >&6; }
8223 nextaw) { $as_echo "$as_me:$LINENO: result: neXtaw GUI support" >&5
8224 $as_echo "neXtaw GUI support" >&6; }
8226 *) { $as_echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
8227 $as_echo "Sorry, $enable_gui GUI is not supported" >&6; } ;;
8232 if test "x$SKIP_GTK" != "xYES" -a "$enable_gui_canon" != "gtk" -a "$enable_gui_canon" != "gtk2"; then
8233 { $as_echo "$as_me:$LINENO: checking whether or not to look for GTK" >&5
8234 $as_echo_n "checking whether or not to look for GTK... " >&6; }
8235 # Check whether --enable-gtk-check was given.
8236 if test "${enable_gtk_check+set}" = set; then
8237 enableval=$enable_gtk_check;
8239 enable_gtk_check="yes"
8242 { $as_echo "$as_me:$LINENO: result: $enable_gtk_check" >&5
8243 $as_echo "$enable_gtk_check" >&6; }
8244 if test "x$enable_gtk_check" = "xno"; then
8250 if test "x$SKIP_GTK2" != "xYES" -a "$enable_gui_canon" != "gtk2" \
8251 -a "$enable_gui_canon" != "gnome2"; then
8252 { $as_echo "$as_me:$LINENO: checking whether or not to look for GTK+ 2" >&5
8253 $as_echo_n "checking whether or not to look for GTK+ 2... " >&6; }
8254 # Check whether --enable-gtk2-check was given.
8255 if test "${enable_gtk2_check+set}" = set; then
8256 enableval=$enable_gtk2_check;
8258 enable_gtk2_check="yes"
8261 { $as_echo "$as_me:$LINENO: result: $enable_gtk2_check" >&5
8262 $as_echo "$enable_gtk2_check" >&6; }
8263 if test "x$enable_gtk2_check" = "xno"; then
8268 if test "x$SKIP_GNOME" != "xYES" -a "$enable_gui_canon" != "gnome" \
8269 -a "$enable_gui_canon" != "gnome2"; then
8270 { $as_echo "$as_me:$LINENO: checking whether or not to look for GNOME" >&5
8271 $as_echo_n "checking whether or not to look for GNOME... " >&6; }
8272 # Check whether --enable-gnome-check was given.
8273 if test "${enable_gnome_check+set}" = set; then
8274 enableval=$enable_gnome_check;
8276 enable_gnome_check="no"
8279 { $as_echo "$as_me:$LINENO: result: $enable_gnome_check" >&5
8280 $as_echo "$enable_gnome_check" >&6; }
8281 if test "x$enable_gnome_check" = "xno"; then
8286 if test "x$SKIP_MOTIF" != "xYES" -a "$enable_gui_canon" != "motif"; then
8287 { $as_echo "$as_me:$LINENO: checking whether or not to look for Motif" >&5
8288 $as_echo_n "checking whether or not to look for Motif... " >&6; }
8289 # Check whether --enable-motif-check was given.
8290 if test "${enable_motif_check+set}" = set; then
8291 enableval=$enable_motif_check;
8293 enable_motif_check="yes"
8296 { $as_echo "$as_me:$LINENO: result: $enable_motif_check" >&5
8297 $as_echo "$enable_motif_check" >&6; }
8298 if test "x$enable_motif_check" = "xno"; then
8303 if test "x$SKIP_ATHENA" != "xYES" -a "$enable_gui_canon" != "athena"; then
8304 { $as_echo "$as_me:$LINENO: checking whether or not to look for Athena" >&5
8305 $as_echo_n "checking whether or not to look for Athena... " >&6; }
8306 # Check whether --enable-athena-check was given.
8307 if test "${enable_athena_check+set}" = set; then
8308 enableval=$enable_athena_check;
8310 enable_athena_check="yes"
8313 { $as_echo "$as_me:$LINENO: result: $enable_athena_check" >&5
8314 $as_echo "$enable_athena_check" >&6; }
8315 if test "x$enable_athena_check" = "xno"; then
8320 if test "x$SKIP_NEXTAW" != "xYES" -a "$enable_gui_canon" != "nextaw"; then
8321 { $as_echo "$as_me:$LINENO: checking whether or not to look for neXtaw" >&5
8322 $as_echo_n "checking whether or not to look for neXtaw... " >&6; }
8323 # Check whether --enable-nextaw-check was given.
8324 if test "${enable_nextaw_check+set}" = set; then
8325 enableval=$enable_nextaw_check;
8327 enable_nextaw_check="yes"
8330 { $as_echo "$as_me:$LINENO: result: $enable_nextaw_check" >&5
8331 $as_echo "$enable_nextaw_check" >&6; };
8332 if test "x$enable_nextaw_check" = "xno"; then
8337 if test "x$SKIP_CARBON" != "xYES" -a "$enable_gui_canon" != "carbon"; then
8338 { $as_echo "$as_me:$LINENO: checking whether or not to look for Carbon" >&5
8339 $as_echo_n "checking whether or not to look for Carbon... " >&6; }
8340 # Check whether --enable-carbon-check was given.
8341 if test "${enable_carbon_check+set}" = set; then
8342 enableval=$enable_carbon_check;
8344 enable_carbon_check="yes"
8347 { $as_echo "$as_me:$LINENO: result: $enable_carbon_check" >&5
8348 $as_echo "$enable_carbon_check" >&6; };
8349 if test "x$enable_carbon_check" = "xno"; then
8355 if test "x$MACOSX" = "xyes" -a -z "$SKIP_CARBON" -a "x$CARBON" = "xyes"; then
8356 { $as_echo "$as_me:$LINENO: checking for Carbon GUI" >&5
8357 $as_echo_n "checking for Carbon GUI... " >&6; }
8358 { $as_echo "$as_me:$LINENO: result: yes" >&5
8359 $as_echo "yes" >&6; };
8361 if test "$VIMNAME" = "vim"; then
8365 if test x$prefix = xNONE; then
8366 prefix=/Applications
8369 datadir='${prefix}/Vim.app/Contents/Resources'
8389 if test -z "$SKIP_GTK"; then
8391 { $as_echo "$as_me:$LINENO: checking --with-gtk-prefix argument" >&5
8392 $as_echo_n "checking --with-gtk-prefix argument... " >&6; }
8394 # Check whether --with-gtk-prefix was given.
8395 if test "${with_gtk_prefix+set}" = set; then
8396 withval=$with_gtk_prefix; gtk_config_prefix="$withval"; { $as_echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5
8397 $as_echo "$gtk_config_prefix" >&6; }
8399 gtk_config_prefix=""; { $as_echo "$as_me:$LINENO: result: no" >&5
8400 $as_echo "no" >&6; }
8404 { $as_echo "$as_me:$LINENO: checking --with-gtk-exec-prefix argument" >&5
8405 $as_echo_n "checking --with-gtk-exec-prefix argument... " >&6; }
8407 # Check whether --with-gtk-exec-prefix was given.
8408 if test "${with_gtk_exec_prefix+set}" = set; then
8409 withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"; { $as_echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5
8410 $as_echo "$gtk_config_prefix" >&6; }
8412 gtk_config_exec_prefix=""; { $as_echo "$as_me:$LINENO: result: no" >&5
8413 $as_echo "no" >&6; }
8417 { $as_echo "$as_me:$LINENO: checking --disable-gtktest argument" >&5
8418 $as_echo_n "checking --disable-gtktest argument... " >&6; }
8419 # Check whether --enable-gtktest was given.
8420 if test "${enable_gtktest+set}" = set; then
8421 enableval=$enable_gtktest;
8426 if test "x$enable_gtktest" = "xyes" ; then
8427 { $as_echo "$as_me:$LINENO: result: gtk test enabled" >&5
8428 $as_echo "gtk test enabled" >&6; }
8430 { $as_echo "$as_me:$LINENO: result: gtk test disabled" >&5
8431 $as_echo "gtk test disabled" >&6; }
8434 if test "x$gtk_config_prefix" != "x" ; then
8435 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
8436 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
8438 if test "x$gtk_config_exec_prefix" != "x" ; then
8439 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
8440 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
8442 if test "X$GTK_CONFIG" = "X"; then
8443 # Extract the first word of "gtk-config", so it can be a program name with args.
8444 set dummy gtk-config; ac_word=$2
8445 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8446 $as_echo_n "checking for $ac_word... " >&6; }
8447 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
8448 $as_echo_n "(cached) " >&6
8452 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
8455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8459 test -z "$as_dir" && as_dir=.
8460 for ac_exec_ext in '' $ac_executable_extensions; do
8461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8462 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8463 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8470 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
8474 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
8475 if test -n "$GTK_CONFIG"; then
8476 { $as_echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
8477 $as_echo "$GTK_CONFIG" >&6; }
8479 { $as_echo "$as_me:$LINENO: result: no" >&5
8480 $as_echo "no" >&6; }
8484 if test "X$GTK_CONFIG" = "Xno"; then
8485 # Extract the first word of "gtk12-config", so it can be a program name with args.
8486 set dummy gtk12-config; ac_word=$2
8487 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8488 $as_echo_n "checking for $ac_word... " >&6; }
8489 if test "${ac_cv_path_GTK12_CONFIG+set}" = set; then
8490 $as_echo_n "(cached) " >&6
8492 case $GTK12_CONFIG in
8494 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
8497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8501 test -z "$as_dir" && as_dir=.
8502 for ac_exec_ext in '' $ac_executable_extensions; do
8503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8504 ac_cv_path_GTK12_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8505 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8512 test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
8516 GTK12_CONFIG=$ac_cv_path_GTK12_CONFIG
8517 if test -n "$GTK12_CONFIG"; then
8518 { $as_echo "$as_me:$LINENO: result: $GTK12_CONFIG" >&5
8519 $as_echo "$GTK12_CONFIG" >&6; }
8521 { $as_echo "$as_me:$LINENO: result: no" >&5
8522 $as_echo "no" >&6; }
8526 GTK_CONFIG="$GTK12_CONFIG"
8529 { $as_echo "$as_me:$LINENO: result: Using GTK configuration program $GTK_CONFIG" >&5
8530 $as_echo "Using GTK configuration program $GTK_CONFIG" >&6; }
8532 if test "X$PKG_CONFIG" = "X"; then
8533 # Extract the first word of "pkg-config", so it can be a program name with args.
8534 set dummy pkg-config; ac_word=$2
8535 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8536 $as_echo_n "checking for $ac_word... " >&6; }
8537 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8538 $as_echo_n "(cached) " >&6
8542 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8549 test -z "$as_dir" && as_dir=.
8550 for ac_exec_ext in '' $ac_executable_extensions; do
8551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8552 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8553 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8560 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8564 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8565 if test -n "$PKG_CONFIG"; then
8566 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8567 $as_echo "$PKG_CONFIG" >&6; }
8569 { $as_echo "$as_me:$LINENO: result: no" >&5
8570 $as_echo "no" >&6; }
8576 if test "x$GTK_CONFIG:$PKG_CONFIG" != "xno:no"; then
8577 if test "X$SKIP_GTK2" != "XYES"; then
8579 if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
8581 min_gtk_version=2.2.0
8582 { $as_echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
8583 $as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; }
8585 if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
8586 && $PKG_CONFIG --exists gtk+-2.0; then
8588 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk
+-2.0
`
8589 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk
+-2.0
`
8590 GTK_LIBS=`$PKG_CONFIG --libs gtk
+-2.0
`
8591 gtk_major_version=`$PKG_CONFIG --modversion gtk
+-2.0 | \
8592 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8593 gtk_minor_version=`$PKG_CONFIG --modversion gtk
+-2.0 | \
8594 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8595 gtk_micro_version=`$PKG_CONFIG --modversion gtk
+-2.0 | \
8596 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8598 elif test "X$GTK_CONFIG" != "Xno"; then
8600 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
8602 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
8603 gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \
8604 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8605 gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
8606 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8607 gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
8608 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8614 if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
8616 ac_save_CFLAGS="$CFLAGS"
8617 ac_save_LIBS="$LIBS"
8618 CFLAGS="$CFLAGS $GTK_CFLAGS"
8619 LIBS="$LIBS $GTK_LIBS"
8622 if test "$cross_compiling" = yes; then
8623 echo $ac_n "cross compiling; assumed OK... $ac_c"
8625 cat >conftest.$ac_ext <<_ACEOF
8628 cat confdefs.h >>conftest.$ac_ext
8629 cat >>conftest.$ac_ext <<_ACEOF
8630 /* end confdefs.h. */
8632 #include <gtk/gtk.h>
8635 # include <stdlib.h>
8636 # include <stddef.h>
8642 int major, minor, micro;
8645 system ("touch conf.gtktest");
8647 /* HP/UX 9 (%@#!) writes to sscanf strings */
8648 tmp_version = g_strdup("$min_gtk_version");
8649 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
8650 printf("%s, bad version string\n", "$min_gtk_version");
8654 if ((gtk_major_version > major) ||
8655 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
8656 ((gtk_major_version == major) && (gtk_minor_version == minor) &&
8657 (gtk_micro_version >= micro)))
8665 rm -f conftest$ac_exeext
8666 if { (ac_try="$ac_link"
8668 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8669 *) ac_try_echo
=$ac_try;;
8671 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8672 $as_echo "$ac_try_echo") >&5
8673 (eval "$ac_link") 2>&5
8675 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8676 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8677 { (case "(($ac_try" in
8678 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8679 *) ac_try_echo=$ac_try;;
8681 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8682 $as_echo "$ac_try_echo") >&5
8683 (eval "$ac_try") 2>&5
8685 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8686 (exit $ac_status); }; }; then
8689 $as_echo "$as_me: program exited with status $ac_status" >&5
8690 $as_echo "$as_me: failed program was:" >&5
8691 sed 's/^/| /' conftest.$ac_ext >&5
8696 rm -rf conftest.dSYM
8697 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8701 CFLAGS="$ac_save_CFLAGS"
8702 LIBS="$ac_save_LIBS"
8705 if test "x$no_gtk" = x ; then
8706 if test "x$enable_gtktest" = "xyes"; then
8707 { $as_echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8708 $as_echo "yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
8710 { $as_echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8711 $as_echo "found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
8713 GUI_LIB_LOC="$GTK_LIBDIR"
8714 GTK_LIBNAME="$GTK_LIBS"
8715 GUI_INC_LOC="$GTK_CFLAGS"
8718 { $as_echo "$as_me:$LINENO: result: no" >&5
8719 $as_echo "no" >&6; }
8735 if test "x$GTK_CFLAGS" != "x"; then
8744 if test "x$GUITYPE" != "xGTK"; then
8747 if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
8749 min_gtk_version=1.1.16
8750 { $as_echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
8751 $as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; }
8753 if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
8754 && $PKG_CONFIG --exists gtk+-2.0; then
8756 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk
+-2.0
`
8757 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk
+-2.0
`
8758 GTK_LIBS=`$PKG_CONFIG --libs gtk
+-2.0
`
8759 gtk_major_version=`$PKG_CONFIG --modversion gtk
+-2.0 | \
8760 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8761 gtk_minor_version=`$PKG_CONFIG --modversion gtk
+-2.0 | \
8762 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8763 gtk_micro_version=`$PKG_CONFIG --modversion gtk
+-2.0 | \
8764 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8766 elif test "X$GTK_CONFIG" != "Xno"; then
8768 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
8770 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
8771 gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \
8772 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8773 gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
8774 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8775 gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
8776 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8782 if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
8784 ac_save_CFLAGS="$CFLAGS"
8785 ac_save_LIBS="$LIBS"
8786 CFLAGS="$CFLAGS $GTK_CFLAGS"
8787 LIBS="$LIBS $GTK_LIBS"
8790 if test "$cross_compiling" = yes; then
8791 echo $ac_n "cross compiling; assumed OK... $ac_c"
8793 cat >conftest.$ac_ext <<_ACEOF
8796 cat confdefs.h >>conftest.$ac_ext
8797 cat >>conftest.$ac_ext <<_ACEOF
8798 /* end confdefs.h. */
8800 #include <gtk/gtk.h>
8803 # include <stdlib.h>
8804 # include <stddef.h>
8810 int major, minor, micro;
8813 system ("touch conf.gtktest");
8815 /* HP/UX 9 (%@#!) writes to sscanf strings */
8816 tmp_version = g_strdup("$min_gtk_version");
8817 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
8818 printf("%s, bad version string\n", "$min_gtk_version");
8822 if ((gtk_major_version > major) ||
8823 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
8824 ((gtk_major_version == major) && (gtk_minor_version == minor) &&
8825 (gtk_micro_version >= micro)))
8833 rm -f conftest$ac_exeext
8834 if { (ac_try="$ac_link"
8836 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8837 *) ac_try_echo
=$ac_try;;
8839 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8840 $as_echo "$ac_try_echo") >&5
8841 (eval "$ac_link") 2>&5
8843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8844 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8845 { (case "(($ac_try" in
8846 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8847 *) ac_try_echo=$ac_try;;
8849 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8850 $as_echo "$ac_try_echo") >&5
8851 (eval "$ac_try") 2>&5
8853 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8854 (exit $ac_status); }; }; then
8857 $as_echo "$as_me: program exited with status $ac_status" >&5
8858 $as_echo "$as_me: failed program was:" >&5
8859 sed 's/^/| /' conftest.$ac_ext >&5
8864 rm -rf conftest.dSYM
8865 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8869 CFLAGS="$ac_save_CFLAGS"
8870 LIBS="$ac_save_LIBS"
8873 if test "x$no_gtk" = x ; then
8874 if test "x$enable_gtktest" = "xyes"; then
8875 { $as_echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8876 $as_echo "yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
8878 { $as_echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8879 $as_echo "found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
8881 GTK_LIBNAME="$GTK_LIBS"
8882 GUI_INC_LOC="$GTK_CFLAGS"
8885 { $as_echo "$as_me:$LINENO: result: no" >&5
8886 $as_echo "no" >&6; }
8902 if test "x$GTK_CFLAGS" != "x"; then
8911 if test "x$GUITYPE" = "xGTK"; then
8912 if test "$gtk_major_version" = 1 -a "0$gtk_minor_version" -lt 2 \
8913 -o "$gtk_major_version" = 1 -a "$gtk_minor_version" = 2 -a "0$gtk_micro_version" -lt 3; then
8914 { $as_echo "$as_me:$LINENO: result: this GTK version is old; version 1.2.3 or later is recommended" >&5
8915 $as_echo "this GTK version is old; version 1.2.3 or later is recommended" >&6; }
8918 if test "0$gtk_major_version" -ge 2; then
8919 cat >>confdefs.h <<\_ACEOF
8923 if test "$gtk_minor_version" = 1 -a "0$gtk_micro_version" -ge 1 \
8924 || test "0$gtk_minor_version" -ge 2 \
8925 || test "0$gtk_major_version" -gt 2; then
8926 cat >>confdefs.h <<\_ACEOF
8927 #define HAVE_GTK_MULTIHEAD 1
8932 if test -z "$SKIP_GNOME"; then
8940 # Check whether --with-gnome-includes was given.
8941 if test "${with_gnome_includes+set}" = set; then
8942 withval=$with_gnome_includes; CFLAGS="$CFLAGS -I$withval"
8948 # Check whether --with-gnome-libs was given.
8949 if test "${with_gnome_libs+set}" = set; then
8950 withval=$with_gnome_libs; LDFLAGS="$LDFLAGS -L$withval" gnome_prefix=$withval
8956 # Check whether --with-gnome was given.
8957 if test "${with_gnome+set}" = set; then
8958 withval=$with_gnome; if test x$withval = xyes; then
8962 if test "x$withval" = xno; then
8966 LDFLAGS="$LDFLAGS -L$withval/lib"
8967 CFLAGS="$CFLAGS -I$withval/include"
8968 gnome_prefix=$withval/lib
8976 if test "x$want_gnome" = xyes -a "0$gtk_major_version" -ge 2; then
8978 { $as_echo "$as_me:$LINENO: checking for libgnomeui-2.0" >&5
8979 $as_echo_n "checking for libgnomeui-2.0... " >&6; }
8980 if $PKG_CONFIG --exists libgnomeui-2.0; then
8981 { $as_echo "$as_me:$LINENO: result: yes" >&5
8982 $as_echo "yes" >&6; }
8983 GNOME_LIBS=`$PKG_CONFIG --libs-only-l libgnomeui-2.0
`
8984 GNOME_LIBDIR=`$PKG_CONFIG --libs-only-L libgnomeui-2.0
`
8985 GNOME_INCLUDEDIR=`$PKG_CONFIG --cflags libgnomeui-2.0
`
8987 { $as_echo "$as_me:$LINENO: checking for FreeBSD" >&5
8988 $as_echo_n "checking for FreeBSD... " >&6; }
8989 if test "`(uname
) 2>/dev
/null
`" = FreeBSD; then
8990 { $as_echo "$as_me:$LINENO: result: yes" >&5
8991 $as_echo "yes" >&6; }
8992 GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR -D_THREAD_SAFE"
8993 GNOME_LIBS="$GNOME_LIBS -pthread"
8995 { $as_echo "$as_me:$LINENO: result: no" >&5
8996 $as_echo "no" >&6; }
9000 { $as_echo "$as_me:$LINENO: result: not found" >&5
9001 $as_echo "not found" >&6; }
9002 if test "x" = xfail; then
9003 { { $as_echo "$as_me:$LINENO: error: Could not find libgnomeui-2.0 via pkg-config" >&5
9004 $as_echo "$as_me: error: Could not find libgnomeui-2.0 via pkg-config" >&2;}
9005 { (exit 1); exit 1; }; }
9009 elif test "x$want_gnome" = xyes; then
9011 # Extract the first word of "gnome-config", so it can be a program name with args.
9012 set dummy gnome-config; ac_word=$2
9013 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9014 $as_echo_n "checking for $ac_word... " >&6; }
9015 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
9016 $as_echo_n "(cached) " >&6
9018 case $GNOME_CONFIG in
9020 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
9023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9027 test -z "$as_dir" && as_dir=.
9028 for ac_exec_ext in '' $ac_executable_extensions; do
9029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9030 ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9031 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9038 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
9042 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
9043 if test -n "$GNOME_CONFIG"; then
9044 { $as_echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
9045 $as_echo "$GNOME_CONFIG" >&6; }
9047 { $as_echo "$as_me:$LINENO: result: no" >&5
9048 $as_echo "no" >&6; }
9052 if test "$GNOME_CONFIG" = "no"; then
9053 no_gnome_config="yes"
9055 { $as_echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
9056 $as_echo_n "checking if $GNOME_CONFIG works... " >&6; }
9057 if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
9058 { $as_echo "$as_me:$LINENO: result: yes" >&5
9059 $as_echo "yes" >&6; }
9060 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome gnomeui
`"
9061 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui
`"
9062 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui
`"
9065 { $as_echo "$as_me:$LINENO: result: no" >&5
9066 $as_echo "no" >&6; }
9067 no_gnome_config="yes"
9071 if test x$exec_prefix = xNONE; then
9072 if test x$prefix = xNONE; then
9073 gnome_prefix=$ac_default_prefix/lib
9075 gnome_prefix=$prefix/lib
9078 gnome_prefix=`eval echo \
`echo $libdir\``
9081 if test "$no_gnome_config" = "yes"; then
9082 { $as_echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
9083 $as_echo_n "checking for gnomeConf.sh file in $gnome_prefix... " >&6; }
9084 if test -f $gnome_prefix/gnomeConf.sh; then
9085 { $as_echo "$as_me:$LINENO: result: found" >&5
9086 $as_echo "found" >&6; }
9087 echo "loading gnome configuration from" \
9088 "$gnome_prefix/gnomeConf.sh"
9089 . $gnome_prefix/gnomeConf.sh
9092 { $as_echo "$as_me:$LINENO: result: not found" >&5
9093 $as_echo "not found" >&6; }
9094 if test x = xfail; then
9095 { { $as_echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
9096 $as_echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
9097 { (exit 1); exit 1; }; }
9104 if test x$have_gnome = xyes ; then
9105 cat >>confdefs.h <<\_ACEOF
9106 #define FEAT_GUI_GNOME 1
9109 GUI_INC_LOC="$GUI_INC_LOC $GNOME_INCLUDEDIR"
9110 GTK_LIBNAME="$GTK_LIBNAME $GNOME_LIBDIR $GNOME_LIBS"
9120 if test -z "$SKIP_MOTIF"; then
9121 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"
9122 GUI_INC_LOC="`echo $GUI_INC_LOC|
sed 's%-I%%g'`"
9124 { $as_echo "$as_me:$LINENO: checking for location of Motif GUI includes" >&5
9125 $as_echo_n "checking for location of Motif GUI includes... " >&6; }
9126 gui_includes="`echo $x_includes|
sed 's%/^/^/*$%%'` `echo "$gui_XXX" |
sed s
/XXX
/include
/g
` $GUI_INC_LOC"
9128 for try in $gui_includes; do
9129 if test -f "$try/Xm/Xm.h"; then
9133 if test -n "$GUI_INC_LOC"; then
9134 if test "$GUI_INC_LOC" = /usr/include; then
9136 { $as_echo "$as_me:$LINENO: result: in default path" >&5
9137 $as_echo "in default path" >&6; }
9139 { $as_echo "$as_me:$LINENO: result: $GUI_INC_LOC" >&5
9140 $as_echo "$GUI_INC_LOC" >&6; }
9143 { $as_echo "$as_me:$LINENO: result: <not found>" >&5
9144 $as_echo "<not found>" >&6; }
9150 if test -z "$SKIP_MOTIF"; then
9151 { $as_echo "$as_me:$LINENO: checking --with-motif-lib argument" >&5
9152 $as_echo_n "checking --with-motif-lib argument... " >&6; }
9154 # Check whether --with-motif-lib was given.
9155 if test "${with_motif_lib+set}" = set; then
9156 withval=$with_motif_lib; MOTIF_LIBNAME="${withval}"
9160 if test -n "$MOTIF_LIBNAME"; then
9161 { $as_echo "$as_me:$LINENO: result: $MOTIF_LIBNAME" >&5
9162 $as_echo "$MOTIF_LIBNAME" >&6; }
9165 { $as_echo "$as_me:$LINENO: result: no" >&5
9166 $as_echo "no" >&6; }
9168 GUI_LIB_LOC="`echo $GUI_LIB_LOC|
sed 's%-L%%g'`"
9170 { $as_echo "$as_me:$LINENO: checking for location of Motif GUI libs" >&5
9171 $as_echo_n "checking for location of Motif GUI libs... " >&6; }
9172 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"
9174 for try in $gui_libs; do
9175 for libtry in "$try"/libXm.a "$try"/libXm.so* "$try"/libXm.sl "$try"/libXm.dylib; do
9176 if test -f "$libtry"; then
9181 if test -n "$GUI_LIB_LOC"; then
9182 if test "$GUI_LIB_LOC" = /usr/lib; then
9184 { $as_echo "$as_me:$LINENO: result: in default path" >&5
9185 $as_echo "in default path" >&6; }
9187 if test -n "$GUI_LIB_LOC"; then
9188 { $as_echo "$as_me:$LINENO: result: $GUI_LIB_LOC" >&5
9189 $as_echo "$GUI_LIB_LOC" >&6; }
9190 if test "`(uname
) 2>/dev
/null
`" = SunOS &&
9191 uname -r | grep '^5' >/dev/null; then
9192 GUI_LIB_LOC="$GUI_LIB_LOC -R $GUI_LIB_LOC"
9198 { $as_echo "$as_me:$LINENO: result: <not found>" >&5
9199 $as_echo "<not found>" >&6; }
9205 if test -z "$SKIP_MOTIF"; then
9215 if test -z "$SKIP_ATHENA"; then
9216 { $as_echo "$as_me:$LINENO: checking if Athena header files can be found" >&5
9217 $as_echo_n "checking if Athena header files can be found... " >&6; }
9219 CFLAGS="$CFLAGS $X_CFLAGS"
9220 cat >conftest.$ac_ext <<_ACEOF
9223 cat confdefs.h >>conftest.$ac_ext
9224 cat >>conftest.$ac_ext <<_ACEOF
9225 /* end confdefs.h. */
9227 #include <X11/Intrinsic.h>
9228 #include <X11/Xaw/Paned.h>
9237 rm -f conftest.$ac_objext
9238 if { (ac_try="$ac_compile"
9240 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9241 *) ac_try_echo
=$ac_try;;
9243 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9244 $as_echo "$ac_try_echo") >&5
9245 (eval "$ac_compile") 2>conftest.er1
9247 grep -v '^ *+' conftest.er1
>conftest.err
9249 cat conftest.err
>&5
9250 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9251 (exit $ac_status); } && {
9252 test -z "$ac_c_werror_flag" ||
9253 test ! -s conftest.err
9254 } && test -s conftest.
$ac_objext; then
9255 { $as_echo "$as_me:$LINENO: result: yes" >&5
9256 $as_echo "yes" >&6; }
9258 $as_echo "$as_me: failed program was:" >&5
9259 sed 's/^/| /' conftest.
$ac_ext >&5
9261 { $as_echo "$as_me:$LINENO: result: no" >&5
9262 $as_echo "no" >&6; }; SKIP_ATHENA
=YES
9265 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9269 if test -z "$SKIP_ATHENA"; then
9273 if test -z "$SKIP_NEXTAW"; then
9274 { $as_echo "$as_me:$LINENO: checking if neXtaw header files can be found" >&5
9275 $as_echo_n "checking if neXtaw header files can be found... " >&6; }
9277 CFLAGS
="$CFLAGS $X_CFLAGS"
9278 cat >conftest.
$ac_ext <<_ACEOF
9281 cat confdefs.h
>>conftest.
$ac_ext
9282 cat >>conftest.
$ac_ext <<_ACEOF
9283 /* end confdefs.h. */
9285 #include <X11/Intrinsic.h>
9286 #include <X11/neXtaw/Paned.h>
9295 rm -f conftest.
$ac_objext
9296 if { (ac_try
="$ac_compile"
9298 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9299 *) ac_try_echo=$ac_try;;
9301 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9302 $as_echo "$ac_try_echo") >&5
9303 (eval "$ac_compile") 2>conftest.er1
9305 grep -v '^ *+' conftest.er1 >conftest.err
9307 cat conftest.err >&5
9308 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9309 (exit $ac_status); } && {
9310 test -z "$ac_c_werror_flag" ||
9311 test ! -s conftest.err
9312 } && test -s conftest.$ac_objext; then
9313 { $as_echo "$as_me:$LINENO: result: yes" >&5
9314 $as_echo "yes" >&6; }
9316 $as_echo "$as_me: failed program was:" >&5
9317 sed 's/^/| /' conftest.$ac_ext >&5
9319 { $as_echo "$as_me:$LINENO: result: no" >&5
9320 $as_echo "no" >&6; }; SKIP_NEXTAW=YES
9323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9327 if test -z "$SKIP_NEXTAW"; then
9331 if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
9332 if test -n "$GUI_INC_LOC"; then
9333 GUI_INC_LOC=-I"`echo $GUI_INC_LOC|
sed 's%-I%%'`"
9335 if test -n "$GUI_LIB_LOC"; then
9336 GUI_LIB_LOC=-L"`echo $GUI_LIB_LOC|
sed 's%-L%%'`"
9339 ldflags_save=$LDFLAGS
9340 LDFLAGS="$X_LIBS $LDFLAGS"
9341 { $as_echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
9342 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
9343 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
9344 $as_echo_n "(cached) " >&6
9346 ac_check_lib_save_LIBS=$LIBS
9347 LIBS="-lXext -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9348 cat >conftest.$ac_ext <<_ACEOF
9351 cat confdefs.h >>conftest.$ac_ext
9352 cat >>conftest.$ac_ext <<_ACEOF
9353 /* end confdefs.h. */
9355 /* Override any GCC internal prototype to avoid an error.
9356 Use char because int might match the return type of a GCC
9357 builtin and then its argument prototype would still apply. */
9361 char XShapeQueryExtension ();
9365 return XShapeQueryExtension ();
9370 rm -f conftest.$ac_objext conftest$ac_exeext
9371 if { (ac_try="$ac_link"
9373 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9374 *) ac_try_echo
=$ac_try;;
9376 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9377 $as_echo "$ac_try_echo") >&5
9378 (eval "$ac_link") 2>conftest.er1
9380 grep -v '^ *+' conftest.er1
>conftest.err
9382 cat conftest.err
>&5
9383 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9384 (exit $ac_status); } && {
9385 test -z "$ac_c_werror_flag" ||
9386 test ! -s conftest.err
9387 } && test -s conftest
$ac_exeext && {
9388 test "$cross_compiling" = yes ||
9389 $as_test_x conftest
$ac_exeext
9391 ac_cv_lib_Xext_XShapeQueryExtension
=yes
9393 $as_echo "$as_me: failed program was:" >&5
9394 sed 's/^/| /' conftest.
$ac_ext >&5
9396 ac_cv_lib_Xext_XShapeQueryExtension
=no
9399 rm -rf conftest.dSYM
9400 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9401 conftest
$ac_exeext conftest.
$ac_ext
9402 LIBS
=$ac_check_lib_save_LIBS
9404 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
9405 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
9406 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
9410 { $as_echo "$as_me:$LINENO: checking for wslen in -lw" >&5
9411 $as_echo_n "checking for wslen in -lw... " >&6; }
9412 if test "${ac_cv_lib_w_wslen+set}" = set; then
9413 $as_echo_n "(cached) " >&6
9415 ac_check_lib_save_LIBS
=$LIBS
9416 LIBS
="-lw $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9417 cat >conftest.
$ac_ext <<_ACEOF
9420 cat confdefs.h
>>conftest.
$ac_ext
9421 cat >>conftest.
$ac_ext <<_ACEOF
9422 /* end confdefs.h. */
9424 /* Override any GCC internal prototype to avoid an error.
9425 Use char because int might match the return type of a GCC
9426 builtin and then its argument prototype would still apply. */
9439 rm -f conftest.
$ac_objext conftest
$ac_exeext
9440 if { (ac_try
="$ac_link"
9442 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9443 *) ac_try_echo=$ac_try;;
9445 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9446 $as_echo "$ac_try_echo") >&5
9447 (eval "$ac_link") 2>conftest.er1
9449 grep -v '^ *+' conftest.er1 >conftest.err
9451 cat conftest.err >&5
9452 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9453 (exit $ac_status); } && {
9454 test -z "$ac_c_werror_flag" ||
9455 test ! -s conftest.err
9456 } && test -s conftest$ac_exeext && {
9457 test "$cross_compiling" = yes ||
9458 $as_test_x conftest$ac_exeext
9460 ac_cv_lib_w_wslen=yes
9462 $as_echo "$as_me: failed program was:" >&5
9463 sed 's/^/| /' conftest.$ac_ext >&5
9465 ac_cv_lib_w_wslen=no
9468 rm -rf conftest.dSYM
9469 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9470 conftest$ac_exeext conftest.$ac_ext
9471 LIBS=$ac_check_lib_save_LIBS
9473 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_w_wslen" >&5
9474 $as_echo "$ac_cv_lib_w_wslen" >&6; }
9475 if test $ac_cv_lib_w_wslen = yes; then
9476 X_EXTRA_LIBS="$X_EXTRA_LIBS -lw"
9479 { $as_echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5
9480 $as_echo_n "checking for dlsym in -ldl... " >&6; }
9481 if test "${ac_cv_lib_dl_dlsym+set}" = set; then
9482 $as_echo_n "(cached) " >&6
9484 ac_check_lib_save_LIBS=$LIBS
9485 LIBS="-ldl $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9486 cat >conftest.$ac_ext <<_ACEOF
9489 cat confdefs.h >>conftest.$ac_ext
9490 cat >>conftest.$ac_ext <<_ACEOF
9491 /* end confdefs.h. */
9493 /* Override any GCC internal prototype to avoid an error.
9494 Use char because int might match the return type of a GCC
9495 builtin and then its argument prototype would still apply. */
9508 rm -f conftest.$ac_objext conftest$ac_exeext
9509 if { (ac_try="$ac_link"
9511 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9512 *) ac_try_echo
=$ac_try;;
9514 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9515 $as_echo "$ac_try_echo") >&5
9516 (eval "$ac_link") 2>conftest.er1
9518 grep -v '^ *+' conftest.er1
>conftest.err
9520 cat conftest.err
>&5
9521 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9522 (exit $ac_status); } && {
9523 test -z "$ac_c_werror_flag" ||
9524 test ! -s conftest.err
9525 } && test -s conftest
$ac_exeext && {
9526 test "$cross_compiling" = yes ||
9527 $as_test_x conftest
$ac_exeext
9529 ac_cv_lib_dl_dlsym
=yes
9531 $as_echo "$as_me: failed program was:" >&5
9532 sed 's/^/| /' conftest.
$ac_ext >&5
9534 ac_cv_lib_dl_dlsym
=no
9537 rm -rf conftest.dSYM
9538 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9539 conftest
$ac_exeext conftest.
$ac_ext
9540 LIBS
=$ac_check_lib_save_LIBS
9542 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5
9543 $as_echo "$ac_cv_lib_dl_dlsym" >&6; }
9544 if test $ac_cv_lib_dl_dlsym = yes; then
9545 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldl"
9548 { $as_echo "$as_me:$LINENO: checking for XmuCreateStippledPixmap in -lXmu" >&5
9549 $as_echo_n "checking for XmuCreateStippledPixmap in -lXmu... " >&6; }
9550 if test "${ac_cv_lib_Xmu_XmuCreateStippledPixmap+set}" = set; then
9551 $as_echo_n "(cached) " >&6
9553 ac_check_lib_save_LIBS
=$LIBS
9554 LIBS
="-lXmu $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9555 cat >conftest.
$ac_ext <<_ACEOF
9558 cat confdefs.h
>>conftest.
$ac_ext
9559 cat >>conftest.
$ac_ext <<_ACEOF
9560 /* end confdefs.h. */
9562 /* Override any GCC internal prototype to avoid an error.
9563 Use char because int might match the return type of a GCC
9564 builtin and then its argument prototype would still apply. */
9568 char XmuCreateStippledPixmap ();
9572 return XmuCreateStippledPixmap ();
9577 rm -f conftest.
$ac_objext conftest
$ac_exeext
9578 if { (ac_try
="$ac_link"
9580 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9581 *) ac_try_echo=$ac_try;;
9583 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9584 $as_echo "$ac_try_echo") >&5
9585 (eval "$ac_link") 2>conftest.er1
9587 grep -v '^ *+' conftest.er1 >conftest.err
9589 cat conftest.err >&5
9590 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9591 (exit $ac_status); } && {
9592 test -z "$ac_c_werror_flag" ||
9593 test ! -s conftest.err
9594 } && test -s conftest$ac_exeext && {
9595 test "$cross_compiling" = yes ||
9596 $as_test_x conftest$ac_exeext
9598 ac_cv_lib_Xmu_XmuCreateStippledPixmap=yes
9600 $as_echo "$as_me: failed program was:" >&5
9601 sed 's/^/| /' conftest.$ac_ext >&5
9603 ac_cv_lib_Xmu_XmuCreateStippledPixmap=no
9606 rm -rf conftest.dSYM
9607 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9608 conftest$ac_exeext conftest.$ac_ext
9609 LIBS=$ac_check_lib_save_LIBS
9611 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&5
9612 $as_echo "$ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&6; }
9613 if test $ac_cv_lib_Xmu_XmuCreateStippledPixmap = yes; then
9614 GUI_X_LIBS="-lXmu $GUI_X_LIBS"
9617 if test -z "$SKIP_MOTIF"; then
9618 { $as_echo "$as_me:$LINENO: checking for XpEndJob in -lXp" >&5
9619 $as_echo_n "checking for XpEndJob in -lXp... " >&6; }
9620 if test "${ac_cv_lib_Xp_XpEndJob+set}" = set; then
9621 $as_echo_n "(cached) " >&6
9623 ac_check_lib_save_LIBS=$LIBS
9624 LIBS="-lXp $GUI_X_LIBS -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9625 cat >conftest.$ac_ext <<_ACEOF
9628 cat confdefs.h >>conftest.$ac_ext
9629 cat >>conftest.$ac_ext <<_ACEOF
9630 /* end confdefs.h. */
9632 /* Override any GCC internal prototype to avoid an error.
9633 Use char because int might match the return type of a GCC
9634 builtin and then its argument prototype would still apply. */
9647 rm -f conftest.$ac_objext conftest$ac_exeext
9648 if { (ac_try="$ac_link"
9650 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9651 *) ac_try_echo
=$ac_try;;
9653 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9654 $as_echo "$ac_try_echo") >&5
9655 (eval "$ac_link") 2>conftest.er1
9657 grep -v '^ *+' conftest.er1
>conftest.err
9659 cat conftest.err
>&5
9660 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9661 (exit $ac_status); } && {
9662 test -z "$ac_c_werror_flag" ||
9663 test ! -s conftest.err
9664 } && test -s conftest
$ac_exeext && {
9665 test "$cross_compiling" = yes ||
9666 $as_test_x conftest
$ac_exeext
9668 ac_cv_lib_Xp_XpEndJob
=yes
9670 $as_echo "$as_me: failed program was:" >&5
9671 sed 's/^/| /' conftest.
$ac_ext >&5
9673 ac_cv_lib_Xp_XpEndJob
=no
9676 rm -rf conftest.dSYM
9677 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9678 conftest
$ac_exeext conftest.
$ac_ext
9679 LIBS
=$ac_check_lib_save_LIBS
9681 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpEndJob" >&5
9682 $as_echo "$ac_cv_lib_Xp_XpEndJob" >&6; }
9683 if test $ac_cv_lib_Xp_XpEndJob = yes; then
9684 GUI_X_LIBS
="-lXp $GUI_X_LIBS"
9688 LDFLAGS
=$ldflags_save
9690 { $as_echo "$as_me:$LINENO: checking for extra X11 defines" >&5
9691 $as_echo_n "checking for extra X11 defines... " >&6; }
9694 if mkdir conftestdir
; then
9696 cat > Imakefile
<<'EOF'
9698 @echo 'NARROW_PROTO="${PROTO_DEFINES}"'
9700 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
9701 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9706 if test -z "$NARROW_PROTO"; then
9707 { $as_echo "$as_me:$LINENO: result: no" >&5
9708 $as_echo "no" >&6; }
9710 { $as_echo "$as_me:$LINENO: result: $NARROW_PROTO" >&5
9711 $as_echo "$NARROW_PROTO" >&6; }
9716 if test "$enable_xsmp" = "yes"; then
9717 cppflags_save
=$CPPFLAGS
9718 CPPFLAGS
="$CPPFLAGS $X_CFLAGS"
9720 for ac_header
in X11
/SM
/SMlib.h
9722 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9723 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9724 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9725 $as_echo_n "checking for $ac_header... " >&6; }
9726 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9727 $as_echo_n "(cached) " >&6
9729 ac_res
=`eval 'as_val=${'$as_ac_Header'}
9730 $as_echo "$as_val"'`
9731 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9732 $as_echo "$ac_res" >&6; }
9734 # Is the header compilable?
9735 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9736 $as_echo_n "checking $ac_header usability... " >&6; }
9737 cat >conftest.
$ac_ext <<_ACEOF
9740 cat confdefs.h
>>conftest.
$ac_ext
9741 cat >>conftest.
$ac_ext <<_ACEOF
9742 /* end confdefs.h. */
9743 $ac_includes_default
9744 #include <$ac_header>
9746 rm -f conftest.
$ac_objext
9747 if { (ac_try
="$ac_compile"
9749 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9750 *) ac_try_echo=$ac_try;;
9752 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9753 $as_echo "$ac_try_echo") >&5
9754 (eval "$ac_compile") 2>conftest.er1
9756 grep -v '^ *+' conftest.er1 >conftest.err
9758 cat conftest.err >&5
9759 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9760 (exit $ac_status); } && {
9761 test -z "$ac_c_werror_flag" ||
9762 test ! -s conftest.err
9763 } && test -s conftest.$ac_objext; then
9764 ac_header_compiler=yes
9766 $as_echo "$as_me: failed program was:" >&5
9767 sed 's/^/| /' conftest.$ac_ext >&5
9769 ac_header_compiler=no
9772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9773 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9774 $as_echo "$ac_header_compiler" >&6; }
9776 # Is the header present?
9777 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9778 $as_echo_n "checking $ac_header presence... " >&6; }
9779 cat >conftest.$ac_ext <<_ACEOF
9782 cat confdefs.h >>conftest.$ac_ext
9783 cat >>conftest.$ac_ext <<_ACEOF
9784 /* end confdefs.h. */
9785 #include <$ac_header>
9787 if { (ac_try="$ac_cpp conftest.$ac_ext"
9789 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9790 *) ac_try_echo
=$ac_try;;
9792 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9793 $as_echo "$ac_try_echo") >&5
9794 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9796 grep -v '^ *+' conftest.er1
>conftest.err
9798 cat conftest.err
>&5
9799 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9800 (exit $ac_status); } >/dev
/null
&& {
9801 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9802 test ! -s conftest.err
9804 ac_header_preproc
=yes
9806 $as_echo "$as_me: failed program was:" >&5
9807 sed 's/^/| /' conftest.
$ac_ext >&5
9809 ac_header_preproc
=no
9812 rm -f conftest.err conftest.
$ac_ext
9813 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9814 $as_echo "$ac_header_preproc" >&6; }
9816 # So? What about this header?
9817 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9819 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9820 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9821 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9822 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9823 ac_header_preproc
=yes
9826 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9827 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9828 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9829 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9830 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9831 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9832 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9833 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9834 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9835 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9836 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9837 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9841 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9842 $as_echo_n "checking for $ac_header... " >&6; }
9843 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9844 $as_echo_n "(cached) " >&6
9846 eval "$as_ac_Header=\$ac_header_preproc"
9848 ac_res
=`eval 'as_val=${'$as_ac_Header'}
9849 $as_echo "$as_val"'`
9850 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9851 $as_echo "$ac_res" >&6; }
9854 if test `eval 'as_val=${'$as_ac_Header'}
9855 $as_echo "$as_val"'` = yes; then
9856 cat >>confdefs.h
<<_ACEOF
9857 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9864 CPPFLAGS
=$cppflags_save
9868 if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF" -o -z "$SKIP_GTK"; then
9869 cppflags_save
=$CPPFLAGS
9870 CPPFLAGS
="$CPPFLAGS $X_CFLAGS"
9873 for ac_header
in X11
/xpm.h X11
/Sunkeysym.h
9875 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9876 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9877 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9878 $as_echo_n "checking for $ac_header... " >&6; }
9879 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9880 $as_echo_n "(cached) " >&6
9882 ac_res
=`eval 'as_val=${'$as_ac_Header'}
9883 $as_echo "$as_val"'`
9884 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9885 $as_echo "$ac_res" >&6; }
9887 # Is the header compilable?
9888 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9889 $as_echo_n "checking $ac_header usability... " >&6; }
9890 cat >conftest.
$ac_ext <<_ACEOF
9893 cat confdefs.h
>>conftest.
$ac_ext
9894 cat >>conftest.
$ac_ext <<_ACEOF
9895 /* end confdefs.h. */
9896 $ac_includes_default
9897 #include <$ac_header>
9899 rm -f conftest.
$ac_objext
9900 if { (ac_try
="$ac_compile"
9902 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9903 *) ac_try_echo=$ac_try;;
9905 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9906 $as_echo "$ac_try_echo") >&5
9907 (eval "$ac_compile") 2>conftest.er1
9909 grep -v '^ *+' conftest.er1 >conftest.err
9911 cat conftest.err >&5
9912 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9913 (exit $ac_status); } && {
9914 test -z "$ac_c_werror_flag" ||
9915 test ! -s conftest.err
9916 } && test -s conftest.$ac_objext; then
9917 ac_header_compiler=yes
9919 $as_echo "$as_me: failed program was:" >&5
9920 sed 's/^/| /' conftest.$ac_ext >&5
9922 ac_header_compiler=no
9925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9926 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9927 $as_echo "$ac_header_compiler" >&6; }
9929 # Is the header present?
9930 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9931 $as_echo_n "checking $ac_header presence... " >&6; }
9932 cat >conftest.$ac_ext <<_ACEOF
9935 cat confdefs.h >>conftest.$ac_ext
9936 cat >>conftest.$ac_ext <<_ACEOF
9937 /* end confdefs.h. */
9938 #include <$ac_header>
9940 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev
/null
&& {
9954 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9955 test ! -s conftest.err
9957 ac_header_preproc
=yes
9959 $as_echo "$as_me: failed program was:" >&5
9960 sed 's/^/| /' conftest.
$ac_ext >&5
9962 ac_header_preproc
=no
9965 rm -f conftest.err conftest.
$ac_ext
9966 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9967 $as_echo "$ac_header_preproc" >&6; }
9969 # So? What about this header?
9970 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9972 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9973 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9974 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9975 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9976 ac_header_preproc
=yes
9979 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9980 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9981 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9982 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9983 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9984 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9985 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9986 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9987 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9988 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9989 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9990 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9994 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9995 $as_echo_n "checking for $ac_header... " >&6; }
9996 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9997 $as_echo_n "(cached) " >&6
9999 eval "$as_ac_Header=\$ac_header_preproc"
10001 ac_res
=`eval 'as_val=${'$as_ac_Header'}
10002 $as_echo "$as_val"'`
10003 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10004 $as_echo "$ac_res" >&6; }
10007 if test `eval 'as_val=${'$as_ac_Header'}
10008 $as_echo "$as_val"'` = yes; then
10009 cat >>confdefs.h
<<_ACEOF
10010 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10018 if test ! "$enable_xim" = "no"; then
10019 { $as_echo "$as_me:$LINENO: checking for XIMText in X11/Xlib.h" >&5
10020 $as_echo_n "checking for XIMText in X11/Xlib.h... " >&6; }
10021 cat >conftest.
$ac_ext <<_ACEOF
10024 cat confdefs.h
>>conftest.
$ac_ext
10025 cat >>conftest.
$ac_ext <<_ACEOF
10026 /* end confdefs.h. */
10027 #include <X11/Xlib.h>
10029 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10030 $EGREP "XIMText" >/dev
/null
2>&1; then
10031 { $as_echo "$as_me:$LINENO: result: yes" >&5
10032 $as_echo "yes" >&6; }
10034 { $as_echo "$as_me:$LINENO: result: no; xim has been disabled" >&5
10035 $as_echo "no; xim has been disabled" >&6; }; enable_xim
= "no"
10040 CPPFLAGS
=$cppflags_save
10042 if test "$enable_xim" = "auto" -a "$enable_hangulinput" != "yes" \
10043 -a "x$GUITYPE" != "xNONE" ; then
10044 { $as_echo "$as_me:$LINENO: result: X GUI selected; xim has been enabled" >&5
10045 $as_echo "X GUI selected; xim has been enabled" >&6; }
10050 if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
10051 cppflags_save
=$CPPFLAGS
10052 CPPFLAGS
="$CPPFLAGS $X_CFLAGS"
10053 { $as_echo "$as_me:$LINENO: checking for X11/Xmu/Editres.h" >&5
10054 $as_echo_n "checking for X11/Xmu/Editres.h... " >&6; }
10055 cat >conftest.
$ac_ext <<_ACEOF
10058 cat confdefs.h
>>conftest.
$ac_ext
10059 cat >>conftest.
$ac_ext <<_ACEOF
10060 /* end confdefs.h. */
10062 #include <X11/Intrinsic.h>
10063 #include <X11/Xmu/Editres.h>
10072 rm -f conftest.
$ac_objext
10073 if { (ac_try
="$ac_compile"
10074 case "(($ac_try" in
10075 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10076 *) ac_try_echo=$ac_try;;
10078 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10079 $as_echo "$ac_try_echo") >&5
10080 (eval "$ac_compile") 2>conftest.er1
10082 grep -v '^ *+' conftest.er1 >conftest.err
10084 cat conftest.err >&5
10085 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10086 (exit $ac_status); } && {
10087 test -z "$ac_c_werror_flag" ||
10088 test ! -s conftest.err
10089 } && test -s conftest.$ac_objext; then
10090 { $as_echo "$as_me:$LINENO: result: yes" >&5
10091 $as_echo "yes" >&6; }
10092 cat >>confdefs.h <<\_ACEOF
10093 #define HAVE_X11_XMU_EDITRES_H 1
10097 $as_echo "$as_me: failed program was:" >&5
10098 sed 's/^/| /' conftest.$ac_ext >&5
10100 { $as_echo "$as_me:$LINENO: result: no" >&5
10101 $as_echo "no" >&6; }
10104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10105 CPPFLAGS=$cppflags_save
10108 if test -z "$SKIP_MOTIF"; then
10109 cppflags_save=$CPPFLAGS
10110 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10118 for ac_header in Xm/Xm.h Xm/XpmP.h Xm/JoinSideT.h Xm/TraitP.h Xm/Manager.h \
10119 Xm/UnhighlightT.h Xm/Notebook.h
10121 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
10122 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10123 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10124 $as_echo_n "checking for $ac_header... " >&6; }
10125 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10126 $as_echo_n "(cached) " >&6
10128 ac_res=`eval 'as_val=${'$as_ac_Header'}
10129 $as_echo "$as_val"'`
10130 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10131 $as_echo "$ac_res" >&6; }
10133 # Is the header compilable?
10134 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10135 $as_echo_n "checking $ac_header usability... " >&6; }
10136 cat >conftest.$ac_ext <<_ACEOF
10139 cat confdefs.h >>conftest.$ac_ext
10140 cat >>conftest.$ac_ext <<_ACEOF
10141 /* end confdefs.h. */
10142 $ac_includes_default
10143 #include <$ac_header>
10145 rm -f conftest.$ac_objext
10146 if { (ac_try="$ac_compile"
10147 case "(($ac_try" in
10148 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10149 *) ac_try_echo
=$ac_try;;
10151 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10152 $as_echo "$ac_try_echo") >&5
10153 (eval "$ac_compile") 2>conftest.er1
10155 grep -v '^ *+' conftest.er1
>conftest.err
10157 cat conftest.err
>&5
10158 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10159 (exit $ac_status); } && {
10160 test -z "$ac_c_werror_flag" ||
10161 test ! -s conftest.err
10162 } && test -s conftest.
$ac_objext; then
10163 ac_header_compiler
=yes
10165 $as_echo "$as_me: failed program was:" >&5
10166 sed 's/^/| /' conftest.
$ac_ext >&5
10168 ac_header_compiler
=no
10171 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10172 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10173 $as_echo "$ac_header_compiler" >&6; }
10175 # Is the header present?
10176 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10177 $as_echo_n "checking $ac_header presence... " >&6; }
10178 cat >conftest.
$ac_ext <<_ACEOF
10181 cat confdefs.h
>>conftest.
$ac_ext
10182 cat >>conftest.
$ac_ext <<_ACEOF
10183 /* end confdefs.h. */
10184 #include <$ac_header>
10186 if { (ac_try
="$ac_cpp conftest.$ac_ext"
10187 case "(($ac_try" in
10188 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10189 *) ac_try_echo=$ac_try;;
10191 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10192 $as_echo "$ac_try_echo") >&5
10193 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10195 grep -v '^ *+' conftest.er1 >conftest.err
10197 cat conftest.err >&5
10198 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10199 (exit $ac_status); } >/dev/null && {
10200 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10201 test ! -s conftest.err
10203 ac_header_preproc=yes
10205 $as_echo "$as_me: failed program was:" >&5
10206 sed 's/^/| /' conftest.$ac_ext >&5
10208 ac_header_preproc=no
10211 rm -f conftest.err conftest.$ac_ext
10212 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10213 $as_echo "$ac_header_preproc" >&6; }
10215 # So? What about this header?
10216 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10218 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10219 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10220 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10221 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10222 ac_header_preproc=yes
10225 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10226 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10227 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10228 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10229 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10230 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10231 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10232 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10233 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10234 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10235 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10236 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
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 eval "$as_ac_Header=\$ac_header_preproc"
10247 ac_res=`eval 'as_val=${'$as_ac_Header'}
10248 $as_echo "$as_val"'`
10249 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10250 $as_echo "$ac_res" >&6; }
10253 if test `eval 'as_val=${'$as_ac_Header'}
10254 $as_echo "$as_val"'` = yes; then
10255 cat >>confdefs.h <<_ACEOF
10256 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
10264 if test $ac_cv_header_Xm_XpmP_h = yes; then
10265 { $as_echo "$as_me:$LINENO: checking for XpmAttributes_21 in Xm/XpmP.h" >&5
10266 $as_echo_n "checking for XpmAttributes_21 in Xm/XpmP.h... " >&6; }
10267 cat >conftest.$ac_ext <<_ACEOF
10270 cat confdefs.h >>conftest.$ac_ext
10271 cat >>conftest.$ac_ext <<_ACEOF
10272 /* end confdefs.h. */
10273 #include <Xm/XpmP.h>
10277 XpmAttributes_21 attr;
10282 rm -f conftest.$ac_objext
10283 if { (ac_try="$ac_compile"
10284 case "(($ac_try" in
10285 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10286 *) ac_try_echo
=$ac_try;;
10288 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10289 $as_echo "$ac_try_echo") >&5
10290 (eval "$ac_compile") 2>conftest.er1
10292 grep -v '^ *+' conftest.er1
>conftest.err
10294 cat conftest.err
>&5
10295 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10296 (exit $ac_status); } && {
10297 test -z "$ac_c_werror_flag" ||
10298 test ! -s conftest.err
10299 } && test -s conftest.
$ac_objext; then
10300 { $as_echo "$as_me:$LINENO: result: yes" >&5
10301 $as_echo "yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
10302 #define XPMATTRIBUTES_TYPE XpmAttributes_21
10306 $as_echo "$as_me: failed program was:" >&5
10307 sed 's/^/| /' conftest.
$ac_ext >&5
10309 { $as_echo "$as_me:$LINENO: result: no" >&5
10310 $as_echo "no" >&6; }; cat >>confdefs.h
<<\_ACEOF
10311 #define XPMATTRIBUTES_TYPE XpmAttributes
10317 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10319 cat >>confdefs.h
<<\_ACEOF
10320 #define XPMATTRIBUTES_TYPE XpmAttributes
10324 CPPFLAGS
=$cppflags_save
10327 if test "x$GUITYPE" = "xNONE" -a "$enable_xim" = "yes"; then
10328 { $as_echo "$as_me:$LINENO: result: no GUI selected; xim has been disabled" >&5
10329 $as_echo "no GUI selected; xim has been disabled" >&6; }
10332 if test "x$GUITYPE" = "xNONE" -a "$enable_fontset" = "yes"; then
10333 { $as_echo "$as_me:$LINENO: result: no GUI selected; fontset has been disabled" >&5
10334 $as_echo "no GUI selected; fontset has been disabled" >&6; }
10335 enable_fontset
="no"
10337 if test "x$GUITYPE:$enable_fontset" = "xGTK:yes" -a "0$gtk_major_version" -ge 2; then
10338 { $as_echo "$as_me:$LINENO: result: GTK+ 2 GUI selected; fontset has been disabled" >&5
10339 $as_echo "GTK+ 2 GUI selected; fontset has been disabled" >&6; }
10340 enable_fontset
="no"
10343 if test -z "$SKIP_PHOTON"; then
10352 if test "$enable_workshop" = "yes" -a -n "$SKIP_MOTIF"; then
10353 { { $as_echo "$as_me:$LINENO: error: cannot use workshop without Motif" >&5
10354 $as_echo "$as_me: error: cannot use workshop without Motif" >&2;}
10355 { (exit 1); exit 1; }; }
10358 if test "$enable_xim" = "yes"; then
10359 cat >>confdefs.h
<<\_ACEOF
10364 if test "$enable_fontset" = "yes"; then
10365 cat >>confdefs.h
<<\_ACEOF
10366 #define FEAT_XFONTSET 1
10374 if test "$enable_hangulinput" = "yes"; then
10375 if test "x$GUITYPE" = "xNONE"; then
10376 { $as_echo "$as_me:$LINENO: result: no GUI selected; hangul input has been disabled" >&5
10377 $as_echo "no GUI selected; hangul input has been disabled" >&6; }
10378 enable_hangulinput
=no
10380 cat >>confdefs.h
<<\_ACEOF
10381 #define FEAT_HANGULIN 1
10384 HANGULIN_SRC
=hangulin.c
10386 HANGULIN_OBJ
=objects
/hangulin.o
10392 { $as_echo "$as_me:$LINENO: checking whether toupper is broken" >&5
10393 $as_echo_n "checking whether toupper is broken... " >&6; }
10394 if test "${vim_cv_toupper_broken+set}" = set; then
10395 $as_echo_n "(cached) " >&6
10398 if test "$cross_compiling" = yes; then
10400 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_toupper_broken'" >&5
10401 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_toupper_broken'" >&2;}
10402 { (exit 1); exit 1; }; }
10405 cat >conftest.
$ac_ext <<_ACEOF
10407 #include "confdefs.h"
10410 # include <stdlib.h>
10411 # include <stddef.h>
10413 main() { exit(toupper('A') == 'A' && tolower('z') == 'z'); }
10416 rm -f conftest
$ac_exeext
10417 if { (ac_try
="$ac_link"
10418 case "(($ac_try" in
10419 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10420 *) ac_try_echo=$ac_try;;
10422 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10423 $as_echo "$ac_try_echo") >&5
10424 (eval "$ac_link") 2>&5
10426 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10427 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10428 { (case "(($ac_try" in
10429 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10430 *) ac_try_echo
=$ac_try;;
10432 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10433 $as_echo "$ac_try_echo") >&5
10434 (eval "$ac_try") 2>&5
10436 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10437 (exit $ac_status); }; }; then
10439 vim_cv_toupper_broken
=yes
10442 $as_echo "$as_me: program exited with status $ac_status" >&5
10443 $as_echo "$as_me: failed program was:" >&5
10444 sed 's/^/| /' conftest.
$ac_ext >&5
10446 ( exit $ac_status )
10448 vim_cv_toupper_broken
=no
10451 rm -rf conftest.dSYM
10452 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10457 { $as_echo "$as_me:$LINENO: result: $vim_cv_toupper_broken" >&5
10458 $as_echo "$vim_cv_toupper_broken" >&6; }
10460 if test "x$vim_cv_toupper_broken" = "xyes" ; then
10461 cat >>confdefs.h
<<\_ACEOF
10462 #define BROKEN_TOUPPER 1
10467 { $as_echo "$as_me:$LINENO: checking whether __DATE__ and __TIME__ work" >&5
10468 $as_echo_n "checking whether __DATE__ and __TIME__ work... " >&6; }
10469 cat >conftest.
$ac_ext <<_ACEOF
10472 cat confdefs.h
>>conftest.
$ac_ext
10473 cat >>conftest.
$ac_ext <<_ACEOF
10474 /* end confdefs.h. */
10479 printf("(" __DATE__ " " __TIME__ ")");
10484 rm -f conftest.
$ac_objext
10485 if { (ac_try
="$ac_compile"
10486 case "(($ac_try" in
10487 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10488 *) ac_try_echo=$ac_try;;
10490 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10491 $as_echo "$ac_try_echo") >&5
10492 (eval "$ac_compile") 2>conftest.er1
10494 grep -v '^ *+' conftest.er1 >conftest.err
10496 cat conftest.err >&5
10497 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10498 (exit $ac_status); } && {
10499 test -z "$ac_c_werror_flag" ||
10500 test ! -s conftest.err
10501 } && test -s conftest.$ac_objext; then
10502 { $as_echo "$as_me:$LINENO: result: yes" >&5
10503 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
10504 #define HAVE_DATE_TIME 1
10508 $as_echo "$as_me: failed program was:" >&5
10509 sed 's/^/| /' conftest.$ac_ext >&5
10511 { $as_echo "$as_me:$LINENO: result: no" >&5
10512 $as_echo "no" >&6; }
10515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10517 if test "${ac_cv_header_elf_h+set}" = set; then
10518 { $as_echo "$as_me:$LINENO: checking for elf.h" >&5
10519 $as_echo_n "checking for elf.h... " >&6; }
10520 if test "${ac_cv_header_elf_h+set}" = set; then
10521 $as_echo_n "(cached) " >&6
10523 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5
10524 $as_echo "$ac_cv_header_elf_h" >&6; }
10526 # Is the header compilable?
10527 { $as_echo "$as_me:$LINENO: checking elf.h usability" >&5
10528 $as_echo_n "checking elf.h usability... " >&6; }
10529 cat >conftest.$ac_ext <<_ACEOF
10532 cat confdefs.h >>conftest.$ac_ext
10533 cat >>conftest.$ac_ext <<_ACEOF
10534 /* end confdefs.h. */
10535 $ac_includes_default
10538 rm -f conftest.$ac_objext
10539 if { (ac_try="$ac_compile"
10540 case "(($ac_try" in
10541 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10542 *) ac_try_echo
=$ac_try;;
10544 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10545 $as_echo "$ac_try_echo") >&5
10546 (eval "$ac_compile") 2>conftest.er1
10548 grep -v '^ *+' conftest.er1
>conftest.err
10550 cat conftest.err
>&5
10551 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10552 (exit $ac_status); } && {
10553 test -z "$ac_c_werror_flag" ||
10554 test ! -s conftest.err
10555 } && test -s conftest.
$ac_objext; then
10556 ac_header_compiler
=yes
10558 $as_echo "$as_me: failed program was:" >&5
10559 sed 's/^/| /' conftest.
$ac_ext >&5
10561 ac_header_compiler
=no
10564 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10565 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10566 $as_echo "$ac_header_compiler" >&6; }
10568 # Is the header present?
10569 { $as_echo "$as_me:$LINENO: checking elf.h presence" >&5
10570 $as_echo_n "checking elf.h presence... " >&6; }
10571 cat >conftest.
$ac_ext <<_ACEOF
10574 cat confdefs.h
>>conftest.
$ac_ext
10575 cat >>conftest.
$ac_ext <<_ACEOF
10576 /* end confdefs.h. */
10579 if { (ac_try
="$ac_cpp conftest.$ac_ext"
10580 case "(($ac_try" in
10581 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10582 *) ac_try_echo=$ac_try;;
10584 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10585 $as_echo "$ac_try_echo") >&5
10586 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10588 grep -v '^ *+' conftest.er1 >conftest.err
10590 cat conftest.err >&5
10591 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10592 (exit $ac_status); } >/dev/null && {
10593 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10594 test ! -s conftest.err
10596 ac_header_preproc=yes
10598 $as_echo "$as_me: failed program was:" >&5
10599 sed 's/^/| /' conftest.$ac_ext >&5
10601 ac_header_preproc=no
10604 rm -f conftest.err conftest.$ac_ext
10605 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10606 $as_echo "$ac_header_preproc" >&6; }
10608 # So? What about this header?
10609 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10611 { $as_echo "$as_me:$LINENO: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&5
10612 $as_echo "$as_me: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10613 { $as_echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the compiler's result" >&5
10614 $as_echo "$as_me: WARNING: elf.h: proceeding with the compiler's result" >&2;}
10615 ac_header_preproc=yes
10618 { $as_echo "$as_me:$LINENO: WARNING: elf.h: present but cannot be compiled" >&5
10619 $as_echo "$as_me: WARNING: elf.h: present but cannot be compiled" >&2;}
10620 { $as_echo "$as_me:$LINENO: WARNING: elf.h: check for missing prerequisite headers?" >&5
10621 $as_echo "$as_me: WARNING: elf.h: check for missing prerequisite headers?" >&2;}
10622 { $as_echo "$as_me:$LINENO: WARNING: elf.h: see the Autoconf documentation" >&5
10623 $as_echo "$as_me: WARNING: elf.h: see the Autoconf documentation" >&2;}
10624 { $as_echo "$as_me:$LINENO: WARNING: elf.h: section \"Present But Cannot Be Compiled\"" >&5
10625 $as_echo "$as_me: WARNING: elf.h: section \"Present But Cannot Be Compiled\"" >&2;}
10626 { $as_echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the preprocessor's result" >&5
10627 $as_echo "$as_me: WARNING: elf.h: proceeding with the preprocessor's result" >&2;}
10628 { $as_echo "$as_me:$LINENO: WARNING: elf.h: in the future, the compiler will take precedence" >&5
10629 $as_echo "$as_me: WARNING: elf.h: in the future, the compiler will take precedence" >&2;}
10633 { $as_echo "$as_me:$LINENO: checking for elf.h" >&5
10634 $as_echo_n "checking for elf.h... " >&6; }
10635 if test "${ac_cv_header_elf_h+set}" = set; then
10636 $as_echo_n "(cached) " >&6
10638 ac_cv_header_elf_h=$ac_header_preproc
10640 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5
10641 $as_echo "$ac_cv_header_elf_h" >&6; }
10644 if test $ac_cv_header_elf_h = yes; then
10649 if test "$HAS_ELF" = 1; then
10651 { $as_echo "$as_me:$LINENO: checking for main in -lelf" >&5
10652 $as_echo_n "checking for main in -lelf... " >&6; }
10653 if test "${ac_cv_lib_elf_main+set}" = set; then
10654 $as_echo_n "(cached) " >&6
10656 ac_check_lib_save_LIBS=$LIBS
10658 cat >conftest.$ac_ext <<_ACEOF
10661 cat confdefs.h >>conftest.$ac_ext
10662 cat >>conftest.$ac_ext <<_ACEOF
10663 /* end confdefs.h. */
10674 rm -f conftest.$ac_objext conftest$ac_exeext
10675 if { (ac_try="$ac_link"
10676 case "(($ac_try" in
10677 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10678 *) ac_try_echo
=$ac_try;;
10680 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10681 $as_echo "$ac_try_echo") >&5
10682 (eval "$ac_link") 2>conftest.er1
10684 grep -v '^ *+' conftest.er1
>conftest.err
10686 cat conftest.err
>&5
10687 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10688 (exit $ac_status); } && {
10689 test -z "$ac_c_werror_flag" ||
10690 test ! -s conftest.err
10691 } && test -s conftest
$ac_exeext && {
10692 test "$cross_compiling" = yes ||
10693 $as_test_x conftest
$ac_exeext
10695 ac_cv_lib_elf_main
=yes
10697 $as_echo "$as_me: failed program was:" >&5
10698 sed 's/^/| /' conftest.
$ac_ext >&5
10700 ac_cv_lib_elf_main
=no
10703 rm -rf conftest.dSYM
10704 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10705 conftest
$ac_exeext conftest.
$ac_ext
10706 LIBS
=$ac_check_lib_save_LIBS
10708 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_elf_main" >&5
10709 $as_echo "$ac_cv_lib_elf_main" >&6; }
10710 if test $ac_cv_lib_elf_main = yes; then
10711 cat >>confdefs.h
<<_ACEOF
10712 #define HAVE_LIBELF 1
10726 ac_header_dirent
=no
10727 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
10728 as_ac_Header
=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10729 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10730 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
10731 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10732 $as_echo_n "(cached) " >&6
10734 cat >conftest.
$ac_ext <<_ACEOF
10737 cat confdefs.h
>>conftest.
$ac_ext
10738 cat >>conftest.
$ac_ext <<_ACEOF
10739 /* end confdefs.h. */
10740 #include <sys/types.h>
10752 rm -f conftest.
$ac_objext
10753 if { (ac_try
="$ac_compile"
10754 case "(($ac_try" in
10755 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10756 *) ac_try_echo=$ac_try;;
10758 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10759 $as_echo "$ac_try_echo") >&5
10760 (eval "$ac_compile") 2>conftest.er1
10762 grep -v '^ *+' conftest.er1 >conftest.err
10764 cat conftest.err >&5
10765 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10766 (exit $ac_status); } && {
10767 test -z "$ac_c_werror_flag" ||
10768 test ! -s conftest.err
10769 } && test -s conftest.$ac_objext; then
10770 eval "$as_ac_Header=yes"
10772 $as_echo "$as_me: failed program was:" >&5
10773 sed 's/^/| /' conftest.$ac_ext >&5
10775 eval "$as_ac_Header=no"
10778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10780 ac_res=`eval 'as_val=${'$as_ac_Header'}
10781 $as_echo "$as_val"'`
10782 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10783 $as_echo "$ac_res" >&6; }
10784 if test `eval 'as_val=${'$as_ac_Header'}
10785 $as_echo "$as_val"'` = yes; then
10786 cat >>confdefs.h <<_ACEOF
10787 #define `$as_echo "HAVE_$ac_hdr" |
$as_tr_cpp` 1
10790 ac_header_dirent=$ac_hdr; break
10794 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10795 if test $ac_header_dirent = dirent.h; then
10796 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
10797 $as_echo_n "checking for library containing opendir... " >&6; }
10798 if test "${ac_cv_search_opendir+set}" = set; then
10799 $as_echo_n "(cached) " >&6
10801 ac_func_search_save_LIBS=$LIBS
10802 cat >conftest.$ac_ext <<_ACEOF
10805 cat confdefs.h >>conftest.$ac_ext
10806 cat >>conftest.$ac_ext <<_ACEOF
10807 /* end confdefs.h. */
10809 /* Override any GCC internal prototype to avoid an error.
10810 Use char because int might match the return type of a GCC
10811 builtin and then its argument prototype would still apply. */
10824 for ac_lib in '' dir; do
10825 if test -z "$ac_lib"; then
10826 ac_res="none required"
10829 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10831 rm -f conftest.$ac_objext conftest$ac_exeext
10832 if { (ac_try="$ac_link"
10833 case "(($ac_try" in
10834 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10835 *) ac_try_echo
=$ac_try;;
10837 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10838 $as_echo "$ac_try_echo") >&5
10839 (eval "$ac_link") 2>conftest.er1
10841 grep -v '^ *+' conftest.er1
>conftest.err
10843 cat conftest.err
>&5
10844 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10845 (exit $ac_status); } && {
10846 test -z "$ac_c_werror_flag" ||
10847 test ! -s conftest.err
10848 } && test -s conftest
$ac_exeext && {
10849 test "$cross_compiling" = yes ||
10850 $as_test_x conftest
$ac_exeext
10852 ac_cv_search_opendir
=$ac_res
10854 $as_echo "$as_me: failed program was:" >&5
10855 sed 's/^/| /' conftest.
$ac_ext >&5
10860 rm -rf conftest.dSYM
10861 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10863 if test "${ac_cv_search_opendir+set}" = set; then
10867 if test "${ac_cv_search_opendir+set}" = set; then
10870 ac_cv_search_opendir
=no
10872 rm conftest.
$ac_ext
10873 LIBS
=$ac_func_search_save_LIBS
10875 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10876 $as_echo "$ac_cv_search_opendir" >&6; }
10877 ac_res
=$ac_cv_search_opendir
10878 if test "$ac_res" != no
; then
10879 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10884 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
10885 $as_echo_n "checking for library containing opendir... " >&6; }
10886 if test "${ac_cv_search_opendir+set}" = set; then
10887 $as_echo_n "(cached) " >&6
10889 ac_func_search_save_LIBS
=$LIBS
10890 cat >conftest.
$ac_ext <<_ACEOF
10893 cat confdefs.h
>>conftest.
$ac_ext
10894 cat >>conftest.
$ac_ext <<_ACEOF
10895 /* end confdefs.h. */
10897 /* Override any GCC internal prototype to avoid an error.
10898 Use char because int might match the return type of a GCC
10899 builtin and then its argument prototype would still apply. */
10912 for ac_lib
in '' x
; do
10913 if test -z "$ac_lib"; then
10914 ac_res
="none required"
10917 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10919 rm -f conftest.
$ac_objext conftest
$ac_exeext
10920 if { (ac_try
="$ac_link"
10921 case "(($ac_try" in
10922 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10923 *) ac_try_echo=$ac_try;;
10925 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10926 $as_echo "$ac_try_echo") >&5
10927 (eval "$ac_link") 2>conftest.er1
10929 grep -v '^ *+' conftest.er1 >conftest.err
10931 cat conftest.err >&5
10932 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10933 (exit $ac_status); } && {
10934 test -z "$ac_c_werror_flag" ||
10935 test ! -s conftest.err
10936 } && test -s conftest$ac_exeext && {
10937 test "$cross_compiling" = yes ||
10938 $as_test_x conftest$ac_exeext
10940 ac_cv_search_opendir=$ac_res
10942 $as_echo "$as_me: failed program was:" >&5
10943 sed 's/^/| /' conftest.$ac_ext >&5
10948 rm -rf conftest.dSYM
10949 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10951 if test "${ac_cv_search_opendir+set}" = set; then
10955 if test "${ac_cv_search_opendir+set}" = set; then
10958 ac_cv_search_opendir=no
10960 rm conftest.$ac_ext
10961 LIBS=$ac_func_search_save_LIBS
10963 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10964 $as_echo "$ac_cv_search_opendir" >&6; }
10965 ac_res=$ac_cv_search_opendir
10966 if test "$ac_res" != no; then
10967 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10974 if test $ac_cv_header_sys_wait_h = no; then
10975 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that defines union wait" >&5
10976 $as_echo_n "checking for sys/wait.h that defines union wait... " >&6; }
10977 cat >conftest.$ac_ext <<_ACEOF
10980 cat confdefs.h >>conftest.$ac_ext
10981 cat >>conftest.$ac_ext <<_ACEOF
10982 /* end confdefs.h. */
10983 #include <sys/wait.h>
10987 union wait xx, yy; xx = yy
10992 rm -f conftest.$ac_objext
10993 if { (ac_try="$ac_compile"
10994 case "(($ac_try" in
10995 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10996 *) ac_try_echo
=$ac_try;;
10998 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10999 $as_echo "$ac_try_echo") >&5
11000 (eval "$ac_compile") 2>conftest.er1
11002 grep -v '^ *+' conftest.er1
>conftest.err
11004 cat conftest.err
>&5
11005 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11006 (exit $ac_status); } && {
11007 test -z "$ac_c_werror_flag" ||
11008 test ! -s conftest.err
11009 } && test -s conftest.
$ac_objext; then
11010 { $as_echo "$as_me:$LINENO: result: yes" >&5
11011 $as_echo "yes" >&6; }
11012 cat >>confdefs.h
<<\_ACEOF
11013 #define HAVE_SYS_WAIT_H 1
11016 cat >>confdefs.h
<<\_ACEOF
11017 #define HAVE_UNION_WAIT 1
11021 $as_echo "$as_me: failed program was:" >&5
11022 sed 's/^/| /' conftest.
$ac_ext >&5
11024 { $as_echo "$as_me:$LINENO: result: no" >&5
11025 $as_echo "no" >&6; }
11028 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11072 for ac_header
in stdarg.h stdlib.h string.h sys
/select.h sys
/utsname.h \
11073 termcap.h fcntl.h sgtty.h sys
/ioctl.h sys
/time.h sys
/types.h termio.h \
11074 iconv.h langinfo.h math.h unistd.h stropts.h errno.h \
11075 sys
/resource.h sys
/systeminfo.h locale.h \
11076 sys
/stream.h termios.h libc.h sys
/statfs.h \
11077 poll.h sys
/poll.h
pwd.h utime.h sys
/param.h libintl.h \
11078 libgen.h util
/debug.h util
/msg18n.h frame.h \
11079 sys
/acl.h sys
/access.h sys
/sysctl.h sys
/sysinfo.h wchar.h wctype.h
11081 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11082 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11083 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11084 $as_echo_n "checking for $ac_header... " >&6; }
11085 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11086 $as_echo_n "(cached) " >&6
11088 ac_res
=`eval 'as_val=${'$as_ac_Header'}
11089 $as_echo "$as_val"'`
11090 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11091 $as_echo "$ac_res" >&6; }
11093 # Is the header compilable?
11094 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11095 $as_echo_n "checking $ac_header usability... " >&6; }
11096 cat >conftest.
$ac_ext <<_ACEOF
11099 cat confdefs.h
>>conftest.
$ac_ext
11100 cat >>conftest.
$ac_ext <<_ACEOF
11101 /* end confdefs.h. */
11102 $ac_includes_default
11103 #include <$ac_header>
11105 rm -f conftest.
$ac_objext
11106 if { (ac_try
="$ac_compile"
11107 case "(($ac_try" in
11108 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11109 *) ac_try_echo=$ac_try;;
11111 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11112 $as_echo "$ac_try_echo") >&5
11113 (eval "$ac_compile") 2>conftest.er1
11115 grep -v '^ *+' conftest.er1 >conftest.err
11117 cat conftest.err >&5
11118 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11119 (exit $ac_status); } && {
11120 test -z "$ac_c_werror_flag" ||
11121 test ! -s conftest.err
11122 } && test -s conftest.$ac_objext; then
11123 ac_header_compiler=yes
11125 $as_echo "$as_me: failed program was:" >&5
11126 sed 's/^/| /' conftest.$ac_ext >&5
11128 ac_header_compiler=no
11131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11132 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11133 $as_echo "$ac_header_compiler" >&6; }
11135 # Is the header present?
11136 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11137 $as_echo_n "checking $ac_header presence... " >&6; }
11138 cat >conftest.$ac_ext <<_ACEOF
11141 cat confdefs.h >>conftest.$ac_ext
11142 cat >>conftest.$ac_ext <<_ACEOF
11143 /* end confdefs.h. */
11144 #include <$ac_header>
11146 if { (ac_try="$ac_cpp conftest.$ac_ext"
11147 case "(($ac_try" in
11148 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11149 *) ac_try_echo
=$ac_try;;
11151 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11152 $as_echo "$ac_try_echo") >&5
11153 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11155 grep -v '^ *+' conftest.er1
>conftest.err
11157 cat conftest.err
>&5
11158 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11159 (exit $ac_status); } >/dev
/null
&& {
11160 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11161 test ! -s conftest.err
11163 ac_header_preproc
=yes
11165 $as_echo "$as_me: failed program was:" >&5
11166 sed 's/^/| /' conftest.
$ac_ext >&5
11168 ac_header_preproc
=no
11171 rm -f conftest.err conftest.
$ac_ext
11172 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11173 $as_echo "$ac_header_preproc" >&6; }
11175 # So? What about this header?
11176 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11178 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11179 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11180 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11181 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11182 ac_header_preproc
=yes
11185 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11186 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11187 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11188 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11189 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11190 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11191 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11192 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11193 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11194 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11195 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11196 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11200 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11201 $as_echo_n "checking for $ac_header... " >&6; }
11202 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11203 $as_echo_n "(cached) " >&6
11205 eval "$as_ac_Header=\$ac_header_preproc"
11207 ac_res
=`eval 'as_val=${'$as_ac_Header'}
11208 $as_echo "$as_val"'`
11209 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11210 $as_echo "$ac_res" >&6; }
11213 if test `eval 'as_val=${'$as_ac_Header'}
11214 $as_echo "$as_val"'` = yes; then
11215 cat >>confdefs.h
<<_ACEOF
11216 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11225 for ac_header
in sys
/ptem.h
11227 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11228 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11229 $as_echo_n "checking for $ac_header... " >&6; }
11230 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11231 $as_echo_n "(cached) " >&6
11233 cat >conftest.
$ac_ext <<_ACEOF
11236 cat confdefs.h
>>conftest.
$ac_ext
11237 cat >>conftest.
$ac_ext <<_ACEOF
11238 /* end confdefs.h. */
11239 #if defined HAVE_SYS_STREAM_H
11240 # include <sys/stream.h>
11243 #include <$ac_header>
11245 rm -f conftest.
$ac_objext
11246 if { (ac_try
="$ac_compile"
11247 case "(($ac_try" in
11248 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11249 *) ac_try_echo=$ac_try;;
11251 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11252 $as_echo "$ac_try_echo") >&5
11253 (eval "$ac_compile") 2>conftest.er1
11255 grep -v '^ *+' conftest.er1 >conftest.err
11257 cat conftest.err >&5
11258 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11259 (exit $ac_status); } && {
11260 test -z "$ac_c_werror_flag" ||
11261 test ! -s conftest.err
11262 } && test -s conftest.$ac_objext; then
11263 eval "$as_ac_Header=yes"
11265 $as_echo "$as_me: failed program was:" >&5
11266 sed 's/^/| /' conftest.$ac_ext >&5
11268 eval "$as_ac_Header=no"
11271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11273 ac_res=`eval 'as_val=${'$as_ac_Header'}
11274 $as_echo "$as_val"'`
11275 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11276 $as_echo "$ac_res" >&6; }
11277 if test `eval 'as_val=${'$as_ac_Header'}
11278 $as_echo "$as_val"'` = yes; then
11279 cat >>confdefs.h <<_ACEOF
11280 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
11289 { $as_echo "$as_me:$LINENO: checking for pthread_np.h" >&5
11290 $as_echo_n "checking for pthread_np.h... " >&6; }
11291 cat >conftest.$ac_ext <<_ACEOF
11294 cat confdefs.h >>conftest.$ac_ext
11295 cat >>conftest.$ac_ext <<_ACEOF
11296 /* end confdefs.h. */
11298 #include <pthread.h>
11299 #include <pthread_np.h>
11308 rm -f conftest.$ac_objext
11309 if { (ac_try="$ac_compile"
11310 case "(($ac_try" in
11311 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11312 *) ac_try_echo
=$ac_try;;
11314 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11315 $as_echo "$ac_try_echo") >&5
11316 (eval "$ac_compile") 2>conftest.er1
11318 grep -v '^ *+' conftest.er1
>conftest.err
11320 cat conftest.err
>&5
11321 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11322 (exit $ac_status); } && {
11323 test -z "$ac_c_werror_flag" ||
11324 test ! -s conftest.err
11325 } && test -s conftest.
$ac_objext; then
11326 { $as_echo "$as_me:$LINENO: result: yes" >&5
11327 $as_echo "yes" >&6; }
11328 cat >>confdefs.h
<<\_ACEOF
11329 #define HAVE_PTHREAD_NP_H 1
11333 $as_echo "$as_me: failed program was:" >&5
11334 sed 's/^/| /' conftest.
$ac_ext >&5
11336 { $as_echo "$as_me:$LINENO: result: no" >&5
11337 $as_echo "no" >&6; }
11340 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11343 for ac_header
in strings.h
11345 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11346 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11347 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11348 $as_echo_n "checking for $ac_header... " >&6; }
11349 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11350 $as_echo_n "(cached) " >&6
11352 ac_res
=`eval 'as_val=${'$as_ac_Header'}
11353 $as_echo "$as_val"'`
11354 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11355 $as_echo "$ac_res" >&6; }
11357 # Is the header compilable?
11358 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11359 $as_echo_n "checking $ac_header usability... " >&6; }
11360 cat >conftest.
$ac_ext <<_ACEOF
11363 cat confdefs.h
>>conftest.
$ac_ext
11364 cat >>conftest.
$ac_ext <<_ACEOF
11365 /* end confdefs.h. */
11366 $ac_includes_default
11367 #include <$ac_header>
11369 rm -f conftest.
$ac_objext
11370 if { (ac_try
="$ac_compile"
11371 case "(($ac_try" in
11372 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11373 *) ac_try_echo=$ac_try;;
11375 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11376 $as_echo "$ac_try_echo") >&5
11377 (eval "$ac_compile") 2>conftest.er1
11379 grep -v '^ *+' conftest.er1 >conftest.err
11381 cat conftest.err >&5
11382 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11383 (exit $ac_status); } && {
11384 test -z "$ac_c_werror_flag" ||
11385 test ! -s conftest.err
11386 } && test -s conftest.$ac_objext; then
11387 ac_header_compiler=yes
11389 $as_echo "$as_me: failed program was:" >&5
11390 sed 's/^/| /' conftest.$ac_ext >&5
11392 ac_header_compiler=no
11395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11396 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11397 $as_echo "$ac_header_compiler" >&6; }
11399 # Is the header present?
11400 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11401 $as_echo_n "checking $ac_header presence... " >&6; }
11402 cat >conftest.$ac_ext <<_ACEOF
11405 cat confdefs.h >>conftest.$ac_ext
11406 cat >>conftest.$ac_ext <<_ACEOF
11407 /* end confdefs.h. */
11408 #include <$ac_header>
11410 if { (ac_try="$ac_cpp conftest.$ac_ext"
11411 case "(($ac_try" in
11412 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11413 *) ac_try_echo
=$ac_try;;
11415 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11416 $as_echo "$ac_try_echo") >&5
11417 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11419 grep -v '^ *+' conftest.er1
>conftest.err
11421 cat conftest.err
>&5
11422 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11423 (exit $ac_status); } >/dev
/null
&& {
11424 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11425 test ! -s conftest.err
11427 ac_header_preproc
=yes
11429 $as_echo "$as_me: failed program was:" >&5
11430 sed 's/^/| /' conftest.
$ac_ext >&5
11432 ac_header_preproc
=no
11435 rm -f conftest.err conftest.
$ac_ext
11436 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11437 $as_echo "$ac_header_preproc" >&6; }
11439 # So? What about this header?
11440 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11442 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11443 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11444 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11445 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11446 ac_header_preproc
=yes
11449 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11450 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11451 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11452 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11453 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11454 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11455 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11456 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11457 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11458 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11459 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11460 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11464 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11465 $as_echo_n "checking for $ac_header... " >&6; }
11466 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11467 $as_echo_n "(cached) " >&6
11469 eval "$as_ac_Header=\$ac_header_preproc"
11471 ac_res
=`eval 'as_val=${'$as_ac_Header'}
11472 $as_echo "$as_val"'`
11473 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11474 $as_echo "$ac_res" >&6; }
11477 if test `eval 'as_val=${'$as_ac_Header'}
11478 $as_echo "$as_val"'` = yes; then
11479 cat >>confdefs.h
<<_ACEOF
11480 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11487 if test "x$MACOSX" = "xyes"; then
11488 cat >>confdefs.h
<<\_ACEOF
11489 #define NO_STRINGS_WITH_STRING_H 1
11494 { $as_echo "$as_me:$LINENO: checking if strings.h can be included after string.h" >&5
11495 $as_echo_n "checking if strings.h can be included after string.h... " >&6; }
11496 cppflags_save
=$CPPFLAGS
11497 CPPFLAGS
="$CPPFLAGS $X_CFLAGS"
11498 cat >conftest.
$ac_ext <<_ACEOF
11501 cat confdefs.h
>>conftest.
$ac_ext
11502 cat >>conftest.
$ac_ext <<_ACEOF
11503 /* end confdefs.h. */
11505 #if defined(_AIX) && !defined(_AIX51) && !defined(_NO_PROTO)
11506 # define _NO_PROTO /* like in os_unix.h, causes conflict for AIX (Winn) */
11507 /* but don't do it on AIX 5.1 (Uribarri) */
11509 #ifdef HAVE_XM_XM_H
11510 # include <Xm/Xm.h> /* This breaks it for HP-UX 11 (Squassabia) */
11512 #ifdef HAVE_STRING_H
11513 # include <string.h>
11515 #if defined(HAVE_STRINGS_H)
11516 # include <strings.h>
11527 rm -f conftest.
$ac_objext
11528 if { (ac_try
="$ac_compile"
11529 case "(($ac_try" in
11530 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11531 *) ac_try_echo=$ac_try;;
11533 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11534 $as_echo "$ac_try_echo") >&5
11535 (eval "$ac_compile") 2>conftest.er1
11537 grep -v '^ *+' conftest.er1 >conftest.err
11539 cat conftest.err >&5
11540 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11541 (exit $ac_status); } && {
11542 test -z "$ac_c_werror_flag" ||
11543 test ! -s conftest.err
11544 } && test -s conftest.$ac_objext; then
11545 { $as_echo "$as_me:$LINENO: result: yes" >&5
11546 $as_echo "yes" >&6; }
11548 $as_echo "$as_me: failed program was:" >&5
11549 sed 's/^/| /' conftest.$ac_ext >&5
11551 cat >>confdefs.h <<\_ACEOF
11552 #define NO_STRINGS_WITH_STRING_H 1
11555 { $as_echo "$as_me:$LINENO: result: no" >&5
11556 $as_echo "no" >&6; }
11559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11560 CPPFLAGS=$cppflags_save
11563 if test $ac_cv_c_compiler_gnu = yes; then
11564 { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
11565 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
11566 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
11567 $as_echo_n "(cached) " >&6
11569 ac_pattern="Autoconf.*'x'"
11570 cat >conftest.$ac_ext <<_ACEOF
11573 cat confdefs.h >>conftest.$ac_ext
11574 cat >>conftest.$ac_ext <<_ACEOF
11575 /* end confdefs.h. */
11579 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11580 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11581 ac_cv_prog_gcc_traditional=yes
11583 ac_cv_prog_gcc_traditional=no
11588 if test $ac_cv_prog_gcc_traditional = no; then
11589 cat >conftest.$ac_ext <<_ACEOF
11592 cat confdefs.h >>conftest.$ac_ext
11593 cat >>conftest.$ac_ext <<_ACEOF
11594 /* end confdefs.h. */
11595 #include <termio.h>
11598 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11599 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11600 ac_cv_prog_gcc_traditional=yes
11606 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
11607 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
11608 if test $ac_cv_prog_gcc_traditional = yes; then
11609 CC="$CC -traditional"
11613 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11614 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11615 if test "${ac_cv_c_const+set}" = set; then
11616 $as_echo_n "(cached) " >&6
11618 cat >conftest.$ac_ext <<_ACEOF
11621 cat confdefs.h >>conftest.$ac_ext
11622 cat >>conftest.$ac_ext <<_ACEOF
11623 /* end confdefs.h. */
11628 /* FIXME: Include the comments suggested by Paul. */
11629 #ifndef __cplusplus
11630 /* Ultrix mips cc rejects this. */
11631 typedef int charset[2];
11633 /* SunOS 4.1.1 cc rejects this. */
11634 char const *const *pcpcc;
11636 /* NEC SVR4.0.2 mips cc rejects this. */
11637 struct point {int x, y;};
11638 static struct point const zero = {0,0};
11639 /* AIX XL C 1.02.0.0 rejects this.
11640 It does not let you subtract one const X* pointer from another in
11641 an arm of an if-expression whose if-part is not a constant
11643 const char *g = "string";
11644 pcpcc = &g + (g ? g-g : 0);
11645 /* HPUX 7.0 cc rejects these. */
11647 ppc = (char**) pcpcc;
11648 pcpcc = (char const *const *) ppc;
11649 { /* SCO 3.2v4 cc rejects this. */
11651 char const *s = 0 ? (char *) 0 : (char const *) 0;
11656 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11657 int x[] = {25, 17};
11658 const int *foo = &x[0];
11661 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11662 typedef const int *iptr;
11666 { /* AIX XL C 1.02.0.0 rejects this saying
11667 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11668 struct s { int j; const int *ap[3]; };
11669 struct s *b; b->j = 5;
11671 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11672 const int foo = 10;
11673 if (!foo) return 0;
11675 return !cs[0] && !zero.x;
11682 rm -f conftest.$ac_objext
11683 if { (ac_try="$ac_compile"
11684 case "(($ac_try" in
11685 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11686 *) ac_try_echo
=$ac_try;;
11688 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11689 $as_echo "$ac_try_echo") >&5
11690 (eval "$ac_compile") 2>conftest.er1
11692 grep -v '^ *+' conftest.er1
>conftest.err
11694 cat conftest.err
>&5
11695 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11696 (exit $ac_status); } && {
11697 test -z "$ac_c_werror_flag" ||
11698 test ! -s conftest.err
11699 } && test -s conftest.
$ac_objext; then
11702 $as_echo "$as_me: failed program was:" >&5
11703 sed 's/^/| /' conftest.
$ac_ext >&5
11708 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11710 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11711 $as_echo "$ac_cv_c_const" >&6; }
11712 if test $ac_cv_c_const = no
; then
11714 cat >>confdefs.h
<<\_ACEOF
11720 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
11721 $as_echo_n "checking for working volatile... " >&6; }
11722 if test "${ac_cv_c_volatile+set}" = set; then
11723 $as_echo_n "(cached) " >&6
11725 cat >conftest.
$ac_ext <<_ACEOF
11728 cat confdefs.h
>>conftest.
$ac_ext
11729 cat >>conftest.
$ac_ext <<_ACEOF
11730 /* end confdefs.h. */
11737 int * volatile y = (int *) 0;
11743 rm -f conftest.
$ac_objext
11744 if { (ac_try
="$ac_compile"
11745 case "(($ac_try" in
11746 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11747 *) ac_try_echo=$ac_try;;
11749 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11750 $as_echo "$ac_try_echo") >&5
11751 (eval "$ac_compile") 2>conftest.er1
11753 grep -v '^ *+' conftest.er1 >conftest.err
11755 cat conftest.err >&5
11756 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11757 (exit $ac_status); } && {
11758 test -z "$ac_c_werror_flag" ||
11759 test ! -s conftest.err
11760 } && test -s conftest.$ac_objext; then
11761 ac_cv_c_volatile=yes
11763 $as_echo "$as_me: failed program was:" >&5
11764 sed 's/^/| /' conftest.$ac_ext >&5
11766 ac_cv_c_volatile=no
11769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11771 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
11772 $as_echo "$ac_cv_c_volatile" >&6; }
11773 if test $ac_cv_c_volatile = no; then
11775 cat >>confdefs.h <<\_ACEOF
11776 #define volatile /**/
11781 { $as_echo "$as_me:$LINENO: checking for mode_t" >&5
11782 $as_echo_n "checking for mode_t... " >&6; }
11783 if test "${ac_cv_type_mode_t+set}" = set; then
11784 $as_echo_n "(cached) " >&6
11786 ac_cv_type_mode_t=no
11787 cat >conftest.$ac_ext <<_ACEOF
11790 cat confdefs.h >>conftest.$ac_ext
11791 cat >>conftest.$ac_ext <<_ACEOF
11792 /* end confdefs.h. */
11793 $ac_includes_default
11797 if (sizeof (mode_t))
11803 rm -f conftest.$ac_objext
11804 if { (ac_try="$ac_compile"
11805 case "(($ac_try" in
11806 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11807 *) ac_try_echo
=$ac_try;;
11809 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11810 $as_echo "$ac_try_echo") >&5
11811 (eval "$ac_compile") 2>conftest.er1
11813 grep -v '^ *+' conftest.er1
>conftest.err
11815 cat conftest.err
>&5
11816 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11817 (exit $ac_status); } && {
11818 test -z "$ac_c_werror_flag" ||
11819 test ! -s conftest.err
11820 } && test -s conftest.
$ac_objext; then
11821 cat >conftest.
$ac_ext <<_ACEOF
11824 cat confdefs.h
>>conftest.
$ac_ext
11825 cat >>conftest.
$ac_ext <<_ACEOF
11826 /* end confdefs.h. */
11827 $ac_includes_default
11831 if (sizeof ((mode_t)))
11837 rm -f conftest.
$ac_objext
11838 if { (ac_try
="$ac_compile"
11839 case "(($ac_try" in
11840 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11841 *) ac_try_echo=$ac_try;;
11843 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11844 $as_echo "$ac_try_echo") >&5
11845 (eval "$ac_compile") 2>conftest.er1
11847 grep -v '^ *+' conftest.er1 >conftest.err
11849 cat conftest.err >&5
11850 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11851 (exit $ac_status); } && {
11852 test -z "$ac_c_werror_flag" ||
11853 test ! -s conftest.err
11854 } && test -s conftest.$ac_objext; then
11857 $as_echo "$as_me: failed program was:" >&5
11858 sed 's/^/| /' conftest.$ac_ext >&5
11860 ac_cv_type_mode_t=yes
11863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11865 $as_echo "$as_me: failed program was:" >&5
11866 sed 's/^/| /' conftest.$ac_ext >&5
11871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11873 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
11874 $as_echo "$ac_cv_type_mode_t" >&6; }
11875 if test $ac_cv_type_mode_t = yes; then
11879 cat >>confdefs.h <<_ACEOF
11885 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
11886 $as_echo_n "checking for off_t... " >&6; }
11887 if test "${ac_cv_type_off_t+set}" = set; then
11888 $as_echo_n "(cached) " >&6
11890 ac_cv_type_off_t=no
11891 cat >conftest.$ac_ext <<_ACEOF
11894 cat confdefs.h >>conftest.$ac_ext
11895 cat >>conftest.$ac_ext <<_ACEOF
11896 /* end confdefs.h. */
11897 $ac_includes_default
11901 if (sizeof (off_t))
11907 rm -f conftest.$ac_objext
11908 if { (ac_try="$ac_compile"
11909 case "(($ac_try" in
11910 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11911 *) ac_try_echo
=$ac_try;;
11913 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11914 $as_echo "$ac_try_echo") >&5
11915 (eval "$ac_compile") 2>conftest.er1
11917 grep -v '^ *+' conftest.er1
>conftest.err
11919 cat conftest.err
>&5
11920 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11921 (exit $ac_status); } && {
11922 test -z "$ac_c_werror_flag" ||
11923 test ! -s conftest.err
11924 } && test -s conftest.
$ac_objext; then
11925 cat >conftest.
$ac_ext <<_ACEOF
11928 cat confdefs.h
>>conftest.
$ac_ext
11929 cat >>conftest.
$ac_ext <<_ACEOF
11930 /* end confdefs.h. */
11931 $ac_includes_default
11935 if (sizeof ((off_t)))
11941 rm -f conftest.
$ac_objext
11942 if { (ac_try
="$ac_compile"
11943 case "(($ac_try" in
11944 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11945 *) ac_try_echo=$ac_try;;
11947 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11948 $as_echo "$ac_try_echo") >&5
11949 (eval "$ac_compile") 2>conftest.er1
11951 grep -v '^ *+' conftest.er1 >conftest.err
11953 cat conftest.err >&5
11954 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11955 (exit $ac_status); } && {
11956 test -z "$ac_c_werror_flag" ||
11957 test ! -s conftest.err
11958 } && test -s conftest.$ac_objext; then
11961 $as_echo "$as_me: failed program was:" >&5
11962 sed 's/^/| /' conftest.$ac_ext >&5
11964 ac_cv_type_off_t=yes
11967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11969 $as_echo "$as_me: failed program was:" >&5
11970 sed 's/^/| /' conftest.$ac_ext >&5
11975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11977 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11978 $as_echo "$ac_cv_type_off_t" >&6; }
11979 if test $ac_cv_type_off_t = yes; then
11983 cat >>confdefs.h <<_ACEOF
11984 #define off_t long int
11989 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
11990 $as_echo_n "checking for pid_t... " >&6; }
11991 if test "${ac_cv_type_pid_t+set}" = set; then
11992 $as_echo_n "(cached) " >&6
11994 ac_cv_type_pid_t=no
11995 cat >conftest.$ac_ext <<_ACEOF
11998 cat confdefs.h >>conftest.$ac_ext
11999 cat >>conftest.$ac_ext <<_ACEOF
12000 /* end confdefs.h. */
12001 $ac_includes_default
12005 if (sizeof (pid_t))
12011 rm -f conftest.$ac_objext
12012 if { (ac_try="$ac_compile"
12013 case "(($ac_try" in
12014 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12015 *) ac_try_echo
=$ac_try;;
12017 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12018 $as_echo "$ac_try_echo") >&5
12019 (eval "$ac_compile") 2>conftest.er1
12021 grep -v '^ *+' conftest.er1
>conftest.err
12023 cat conftest.err
>&5
12024 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12025 (exit $ac_status); } && {
12026 test -z "$ac_c_werror_flag" ||
12027 test ! -s conftest.err
12028 } && test -s conftest.
$ac_objext; then
12029 cat >conftest.
$ac_ext <<_ACEOF
12032 cat confdefs.h
>>conftest.
$ac_ext
12033 cat >>conftest.
$ac_ext <<_ACEOF
12034 /* end confdefs.h. */
12035 $ac_includes_default
12039 if (sizeof ((pid_t)))
12045 rm -f conftest.
$ac_objext
12046 if { (ac_try
="$ac_compile"
12047 case "(($ac_try" in
12048 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12049 *) ac_try_echo=$ac_try;;
12051 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12052 $as_echo "$ac_try_echo") >&5
12053 (eval "$ac_compile") 2>conftest.er1
12055 grep -v '^ *+' conftest.er1 >conftest.err
12057 cat conftest.err >&5
12058 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12059 (exit $ac_status); } && {
12060 test -z "$ac_c_werror_flag" ||
12061 test ! -s conftest.err
12062 } && test -s conftest.$ac_objext; then
12065 $as_echo "$as_me: failed program was:" >&5
12066 sed 's/^/| /' conftest.$ac_ext >&5
12068 ac_cv_type_pid_t=yes
12071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12073 $as_echo "$as_me: failed program was:" >&5
12074 sed 's/^/| /' conftest.$ac_ext >&5
12079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12081 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
12082 $as_echo "$ac_cv_type_pid_t" >&6; }
12083 if test $ac_cv_type_pid_t = yes; then
12087 cat >>confdefs.h <<_ACEOF
12093 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
12094 $as_echo_n "checking for size_t... " >&6; }
12095 if test "${ac_cv_type_size_t+set}" = set; then
12096 $as_echo_n "(cached) " >&6
12098 ac_cv_type_size_t=no
12099 cat >conftest.$ac_ext <<_ACEOF
12102 cat confdefs.h >>conftest.$ac_ext
12103 cat >>conftest.$ac_ext <<_ACEOF
12104 /* end confdefs.h. */
12105 $ac_includes_default
12109 if (sizeof (size_t))
12115 rm -f conftest.$ac_objext
12116 if { (ac_try="$ac_compile"
12117 case "(($ac_try" in
12118 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12119 *) ac_try_echo
=$ac_try;;
12121 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12122 $as_echo "$ac_try_echo") >&5
12123 (eval "$ac_compile") 2>conftest.er1
12125 grep -v '^ *+' conftest.er1
>conftest.err
12127 cat conftest.err
>&5
12128 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12129 (exit $ac_status); } && {
12130 test -z "$ac_c_werror_flag" ||
12131 test ! -s conftest.err
12132 } && test -s conftest.
$ac_objext; then
12133 cat >conftest.
$ac_ext <<_ACEOF
12136 cat confdefs.h
>>conftest.
$ac_ext
12137 cat >>conftest.
$ac_ext <<_ACEOF
12138 /* end confdefs.h. */
12139 $ac_includes_default
12143 if (sizeof ((size_t)))
12149 rm -f conftest.
$ac_objext
12150 if { (ac_try
="$ac_compile"
12151 case "(($ac_try" in
12152 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12153 *) ac_try_echo=$ac_try;;
12155 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12156 $as_echo "$ac_try_echo") >&5
12157 (eval "$ac_compile") 2>conftest.er1
12159 grep -v '^ *+' conftest.er1 >conftest.err
12161 cat conftest.err >&5
12162 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12163 (exit $ac_status); } && {
12164 test -z "$ac_c_werror_flag" ||
12165 test ! -s conftest.err
12166 } && test -s conftest.$ac_objext; then
12169 $as_echo "$as_me: failed program was:" >&5
12170 sed 's/^/| /' conftest.$ac_ext >&5
12172 ac_cv_type_size_t=yes
12175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12177 $as_echo "$as_me: failed program was:" >&5
12178 sed 's/^/| /' conftest.$ac_ext >&5
12183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12185 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
12186 $as_echo "$ac_cv_type_size_t" >&6; }
12187 if test $ac_cv_type_size_t = yes; then
12191 cat >>confdefs.h <<_ACEOF
12192 #define size_t unsigned int
12197 { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
12198 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
12199 if test "${ac_cv_type_uid_t+set}" = set; then
12200 $as_echo_n "(cached) " >&6
12202 cat >conftest.$ac_ext <<_ACEOF
12205 cat confdefs.h >>conftest.$ac_ext
12206 cat >>conftest.$ac_ext <<_ACEOF
12207 /* end confdefs.h. */
12208 #include <sys/types.h>
12211 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12212 $EGREP "uid_t" >/dev/null 2>&1; then
12213 ac_cv_type_uid_t=yes
12215 ac_cv_type_uid_t=no
12220 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
12221 $as_echo "$ac_cv_type_uid_t" >&6; }
12222 if test $ac_cv_type_uid_t = no; then
12224 cat >>confdefs.h <<\_ACEOF
12229 cat >>confdefs.h <<\_ACEOF
12235 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
12236 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
12237 if test "${ac_cv_header_time+set}" = set; then
12238 $as_echo_n "(cached) " >&6
12240 cat >conftest.$ac_ext <<_ACEOF
12243 cat confdefs.h >>conftest.$ac_ext
12244 cat >>conftest.$ac_ext <<_ACEOF
12245 /* end confdefs.h. */
12246 #include <sys/types.h>
12247 #include <sys/time.h>
12253 if ((struct tm *) 0)
12259 rm -f conftest.$ac_objext
12260 if { (ac_try="$ac_compile"
12261 case "(($ac_try" in
12262 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12263 *) ac_try_echo
=$ac_try;;
12265 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12266 $as_echo "$ac_try_echo") >&5
12267 (eval "$ac_compile") 2>conftest.er1
12269 grep -v '^ *+' conftest.er1
>conftest.err
12271 cat conftest.err
>&5
12272 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12273 (exit $ac_status); } && {
12274 test -z "$ac_c_werror_flag" ||
12275 test ! -s conftest.err
12276 } && test -s conftest.
$ac_objext; then
12277 ac_cv_header_time
=yes
12279 $as_echo "$as_me: failed program was:" >&5
12280 sed 's/^/| /' conftest.
$ac_ext >&5
12282 ac_cv_header_time
=no
12285 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12287 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
12288 $as_echo "$ac_cv_header_time" >&6; }
12289 if test $ac_cv_header_time = yes; then
12291 cat >>confdefs.h
<<\_ACEOF
12292 #define TIME_WITH_SYS_TIME 1
12297 { $as_echo "$as_me:$LINENO: checking for ino_t" >&5
12298 $as_echo_n "checking for ino_t... " >&6; }
12299 if test "${ac_cv_type_ino_t+set}" = set; then
12300 $as_echo_n "(cached) " >&6
12302 ac_cv_type_ino_t
=no
12303 cat >conftest.
$ac_ext <<_ACEOF
12306 cat confdefs.h
>>conftest.
$ac_ext
12307 cat >>conftest.
$ac_ext <<_ACEOF
12308 /* end confdefs.h. */
12309 $ac_includes_default
12313 if (sizeof (ino_t))
12319 rm -f conftest.
$ac_objext
12320 if { (ac_try
="$ac_compile"
12321 case "(($ac_try" in
12322 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12323 *) ac_try_echo=$ac_try;;
12325 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12326 $as_echo "$ac_try_echo") >&5
12327 (eval "$ac_compile") 2>conftest.er1
12329 grep -v '^ *+' conftest.er1 >conftest.err
12331 cat conftest.err >&5
12332 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12333 (exit $ac_status); } && {
12334 test -z "$ac_c_werror_flag" ||
12335 test ! -s conftest.err
12336 } && test -s conftest.$ac_objext; then
12337 cat >conftest.$ac_ext <<_ACEOF
12340 cat confdefs.h >>conftest.$ac_ext
12341 cat >>conftest.$ac_ext <<_ACEOF
12342 /* end confdefs.h. */
12343 $ac_includes_default
12347 if (sizeof ((ino_t)))
12353 rm -f conftest.$ac_objext
12354 if { (ac_try="$ac_compile"
12355 case "(($ac_try" in
12356 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12357 *) ac_try_echo
=$ac_try;;
12359 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12360 $as_echo "$ac_try_echo") >&5
12361 (eval "$ac_compile") 2>conftest.er1
12363 grep -v '^ *+' conftest.er1
>conftest.err
12365 cat conftest.err
>&5
12366 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12367 (exit $ac_status); } && {
12368 test -z "$ac_c_werror_flag" ||
12369 test ! -s conftest.err
12370 } && test -s conftest.
$ac_objext; then
12373 $as_echo "$as_me: failed program was:" >&5
12374 sed 's/^/| /' conftest.
$ac_ext >&5
12376 ac_cv_type_ino_t
=yes
12379 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12381 $as_echo "$as_me: failed program was:" >&5
12382 sed 's/^/| /' conftest.
$ac_ext >&5
12387 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12389 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
12390 $as_echo "$ac_cv_type_ino_t" >&6; }
12391 if test $ac_cv_type_ino_t = yes; then
12395 cat >>confdefs.h
<<_ACEOF
12401 { $as_echo "$as_me:$LINENO: checking for dev_t" >&5
12402 $as_echo_n "checking for dev_t... " >&6; }
12403 if test "${ac_cv_type_dev_t+set}" = set; then
12404 $as_echo_n "(cached) " >&6
12406 ac_cv_type_dev_t
=no
12407 cat >conftest.
$ac_ext <<_ACEOF
12410 cat confdefs.h
>>conftest.
$ac_ext
12411 cat >>conftest.
$ac_ext <<_ACEOF
12412 /* end confdefs.h. */
12413 $ac_includes_default
12417 if (sizeof (dev_t))
12423 rm -f conftest.
$ac_objext
12424 if { (ac_try
="$ac_compile"
12425 case "(($ac_try" in
12426 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12427 *) ac_try_echo=$ac_try;;
12429 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12430 $as_echo "$ac_try_echo") >&5
12431 (eval "$ac_compile") 2>conftest.er1
12433 grep -v '^ *+' conftest.er1 >conftest.err
12435 cat conftest.err >&5
12436 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12437 (exit $ac_status); } && {
12438 test -z "$ac_c_werror_flag" ||
12439 test ! -s conftest.err
12440 } && test -s conftest.$ac_objext; then
12441 cat >conftest.$ac_ext <<_ACEOF
12444 cat confdefs.h >>conftest.$ac_ext
12445 cat >>conftest.$ac_ext <<_ACEOF
12446 /* end confdefs.h. */
12447 $ac_includes_default
12451 if (sizeof ((dev_t)))
12457 rm -f conftest.$ac_objext
12458 if { (ac_try="$ac_compile"
12459 case "(($ac_try" in
12460 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12461 *) ac_try_echo
=$ac_try;;
12463 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12464 $as_echo "$ac_try_echo") >&5
12465 (eval "$ac_compile") 2>conftest.er1
12467 grep -v '^ *+' conftest.er1
>conftest.err
12469 cat conftest.err
>&5
12470 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12471 (exit $ac_status); } && {
12472 test -z "$ac_c_werror_flag" ||
12473 test ! -s conftest.err
12474 } && test -s conftest.
$ac_objext; then
12477 $as_echo "$as_me: failed program was:" >&5
12478 sed 's/^/| /' conftest.
$ac_ext >&5
12480 ac_cv_type_dev_t
=yes
12483 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12485 $as_echo "$as_me: failed program was:" >&5
12486 sed 's/^/| /' conftest.
$ac_ext >&5
12491 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12493 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
12494 $as_echo "$ac_cv_type_dev_t" >&6; }
12495 if test $ac_cv_type_dev_t = yes; then
12499 cat >>confdefs.h
<<_ACEOF
12500 #define dev_t unsigned
12506 { $as_echo "$as_me:$LINENO: checking for rlim_t" >&5
12507 $as_echo_n "checking for rlim_t... " >&6; }
12508 if eval "test \"`echo '$''{'ac_cv_type_rlim_t'+set}'`\" = set"; then
12509 { $as_echo "$as_me:$LINENO: result: (cached) $ac_cv_type_rlim_t" >&5
12510 $as_echo "(cached) $ac_cv_type_rlim_t" >&6; }
12512 cat >conftest.
$ac_ext <<_ACEOF
12515 cat confdefs.h
>>conftest.
$ac_ext
12516 cat >>conftest.
$ac_ext <<_ACEOF
12517 /* end confdefs.h. */
12519 #include <sys/types.h>
12521 # include <stdlib.h>
12522 # include <stddef.h>
12524 #ifdef HAVE_SYS_RESOURCE_H
12525 # include <sys/resource.h>
12529 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12530 $EGREP "(^|[^a-zA-Z_0-9])rlim_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
12531 ac_cv_type_rlim_t
=yes
12533 ac_cv_type_rlim_t
=no
12537 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_rlim_t" >&5
12538 $as_echo "$ac_cv_type_rlim_t" >&6; }
12540 if test $ac_cv_type_rlim_t = no
; then
12541 cat >> confdefs.h
<<\EOF
12542 #define rlim_t unsigned long
12546 { $as_echo "$as_me:$LINENO: checking for stack_t" >&5
12547 $as_echo_n "checking for stack_t... " >&6; }
12548 if eval "test \"`echo '$''{'ac_cv_type_stack_t'+set}'`\" = set"; then
12549 { $as_echo "$as_me:$LINENO: result: (cached) $ac_cv_type_stack_t" >&5
12550 $as_echo "(cached) $ac_cv_type_stack_t" >&6; }
12552 cat >conftest.
$ac_ext <<_ACEOF
12555 cat confdefs.h
>>conftest.
$ac_ext
12556 cat >>conftest.
$ac_ext <<_ACEOF
12557 /* end confdefs.h. */
12559 #include <sys/types.h>
12561 # include <stdlib.h>
12562 # include <stddef.h>
12564 #include <signal.h>
12567 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12568 $EGREP "stack_t" >/dev
/null
2>&1; then
12569 ac_cv_type_stack_t
=yes
12571 ac_cv_type_stack_t
=no
12575 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_stack_t" >&5
12576 $as_echo "$ac_cv_type_stack_t" >&6; }
12578 if test $ac_cv_type_stack_t = no
; then
12579 cat >> confdefs.h
<<\EOF
12580 #define stack_t struct sigaltstack
12584 { $as_echo "$as_me:$LINENO: checking whether stack_t has an ss_base field" >&5
12585 $as_echo_n "checking whether stack_t has an ss_base field... " >&6; }
12586 cat >conftest.
$ac_ext <<_ACEOF
12589 cat confdefs.h
>>conftest.
$ac_ext
12590 cat >>conftest.
$ac_ext <<_ACEOF
12591 /* end confdefs.h. */
12593 #include <sys/types.h>
12595 # include <stdlib.h>
12596 # include <stddef.h>
12598 #include <signal.h>
12599 #include "confdefs.h"
12604 stack_t sigstk; sigstk.ss_base = 0;
12609 rm -f conftest.
$ac_objext
12610 if { (ac_try
="$ac_compile"
12611 case "(($ac_try" in
12612 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12613 *) ac_try_echo=$ac_try;;
12615 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12616 $as_echo "$ac_try_echo") >&5
12617 (eval "$ac_compile") 2>conftest.er1
12619 grep -v '^ *+' conftest.er1 >conftest.err
12621 cat conftest.err >&5
12622 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12623 (exit $ac_status); } && {
12624 test -z "$ac_c_werror_flag" ||
12625 test ! -s conftest.err
12626 } && test -s conftest.$ac_objext; then
12627 { $as_echo "$as_me:$LINENO: result: yes" >&5
12628 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
12629 #define HAVE_SS_BASE 1
12633 $as_echo "$as_me: failed program was:" >&5
12634 sed 's/^/| /' conftest.$ac_ext >&5
12636 { $as_echo "$as_me:$LINENO: result: no" >&5
12637 $as_echo "no" >&6; }
12640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12643 { $as_echo "$as_me:$LINENO: checking --with-tlib argument" >&5
12644 $as_echo_n "checking --with-tlib argument... " >&6; }
12646 # Check whether --with-tlib was given.
12647 if test "${with_tlib+set}" = set; then
12648 withval=$with_tlib;
12651 if test -n "$with_tlib"; then
12652 { $as_echo "$as_me:$LINENO: result: $with_tlib" >&5
12653 $as_echo "$with_tlib" >&6; }
12654 LIBS="$LIBS -l$with_tlib"
12655 { $as_echo "$as_me:$LINENO: checking for linking with $with_tlib library" >&5
12656 $as_echo_n "checking for linking with $with_tlib library... " >&6; }
12657 cat >conftest.$ac_ext <<_ACEOF
12660 cat confdefs.h >>conftest.$ac_ext
12661 cat >>conftest.$ac_ext <<_ACEOF
12662 /* end confdefs.h. */
12672 rm -f conftest.$ac_objext conftest$ac_exeext
12673 if { (ac_try="$ac_link"
12674 case "(($ac_try" in
12675 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12676 *) ac_try_echo
=$ac_try;;
12678 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12679 $as_echo "$ac_try_echo") >&5
12680 (eval "$ac_link") 2>conftest.er1
12682 grep -v '^ *+' conftest.er1
>conftest.err
12684 cat conftest.err
>&5
12685 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12686 (exit $ac_status); } && {
12687 test -z "$ac_c_werror_flag" ||
12688 test ! -s conftest.err
12689 } && test -s conftest
$ac_exeext && {
12690 test "$cross_compiling" = yes ||
12691 $as_test_x conftest
$ac_exeext
12693 { $as_echo "$as_me:$LINENO: result: OK" >&5
12694 $as_echo "OK" >&6; }
12696 $as_echo "$as_me: failed program was:" >&5
12697 sed 's/^/| /' conftest.
$ac_ext >&5
12699 { { $as_echo "$as_me:$LINENO: error: FAILED" >&5
12700 $as_echo "$as_me: error: FAILED" >&2;}
12701 { (exit 1); exit 1; }; }
12704 rm -rf conftest.dSYM
12705 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12706 conftest
$ac_exeext conftest.
$ac_ext
12709 { $as_echo "$as_me:$LINENO: result: empty: automatic terminal library selection" >&5
12710 $as_echo "empty: automatic terminal library selection" >&6; }
12711 case "`uname -s 2>/dev/null`" in
12712 OSF1|SCO_SV
) tlibs
="ncurses curses termlib termcap";;
12713 *) tlibs
="ncurses termlib termcap curses";;
12715 for libname
in $tlibs; do
12717 as_ac_Lib
=`$as_echo "ac_cv_lib_${libname}''_tgetent" | $as_tr_sh`
12718 { $as_echo "$as_me:$LINENO: checking for tgetent in -l${libname}" >&5
12719 $as_echo_n "checking for tgetent in -l${libname}... " >&6; }
12720 if { as_var
=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
12721 $as_echo_n "(cached) " >&6
12723 ac_check_lib_save_LIBS
=$LIBS
12724 LIBS
="-l${libname} $LIBS"
12725 cat >conftest.
$ac_ext <<_ACEOF
12728 cat confdefs.h
>>conftest.
$ac_ext
12729 cat >>conftest.
$ac_ext <<_ACEOF
12730 /* end confdefs.h. */
12732 /* Override any GCC internal prototype to avoid an error.
12733 Use char because int might match the return type of a GCC
12734 builtin and then its argument prototype would still apply. */
12747 rm -f conftest.
$ac_objext conftest
$ac_exeext
12748 if { (ac_try
="$ac_link"
12749 case "(($ac_try" in
12750 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12751 *) ac_try_echo=$ac_try;;
12753 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12754 $as_echo "$ac_try_echo") >&5
12755 (eval "$ac_link") 2>conftest.er1
12757 grep -v '^ *+' conftest.er1 >conftest.err
12759 cat conftest.err >&5
12760 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12761 (exit $ac_status); } && {
12762 test -z "$ac_c_werror_flag" ||
12763 test ! -s conftest.err
12764 } && test -s conftest$ac_exeext && {
12765 test "$cross_compiling" = yes ||
12766 $as_test_x conftest$ac_exeext
12768 eval "$as_ac_Lib=yes"
12770 $as_echo "$as_me: failed program was:" >&5
12771 sed 's/^/| /' conftest.$ac_ext >&5
12773 eval "$as_ac_Lib=no"
12776 rm -rf conftest.dSYM
12777 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12778 conftest$ac_exeext conftest.$ac_ext
12779 LIBS=$ac_check_lib_save_LIBS
12781 ac_res=`eval 'as_val=${'$as_ac_Lib'}
12782 $as_echo "$as_val"'`
12783 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12784 $as_echo "$ac_res" >&6; }
12785 if test `eval 'as_val=${'$as_ac_Lib'}
12786 $as_echo "$as_val"'` = yes; then
12787 cat >>confdefs.h <<_ACEOF
12788 #define `$as_echo "HAVE_LIB${libname}" |
$as_tr_cpp` 1
12791 LIBS="-l${libname} $LIBS"
12795 if test "x$olibs" != "x$LIBS"; then
12796 if test "$cross_compiling" = yes; then
12799 cat >conftest.$ac_ext <<_ACEOF
12802 cat confdefs.h >>conftest.$ac_ext
12803 cat >>conftest.$ac_ext <<_ACEOF
12804 /* end confdefs.h. */
12806 #ifdef HAVE_TERMCAP_H
12807 # include <termcap.h>
12810 # include <stdlib.h>
12811 # include <stddef.h>
12813 main() {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(0); }
12815 rm -f conftest$ac_exeext
12816 if { (ac_try="$ac_link"
12817 case "(($ac_try" in
12818 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12819 *) ac_try_echo
=$ac_try;;
12821 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12822 $as_echo "$ac_try_echo") >&5
12823 (eval "$ac_link") 2>&5
12825 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12826 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12827 { (case "(($ac_try" in
12828 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12829 *) ac_try_echo=$ac_try;;
12831 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12832 $as_echo "$ac_try_echo") >&5
12833 (eval "$ac_try") 2>&5
12835 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12836 (exit $ac_status); }; }; then
12839 $as_echo "$as_me: program exited with status $ac_status" >&5
12840 $as_echo "$as_me: failed program was:" >&5
12841 sed 's/^/| /' conftest.$ac_ext >&5
12843 ( exit $ac_status )
12846 rm -rf conftest.dSYM
12847 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12851 if test "$res" = "OK"; then
12854 { $as_echo "$as_me:$LINENO: result: $libname library is not usable" >&5
12855 $as_echo "$libname library is not usable" >&6; }
12859 if test "x$olibs" = "x$LIBS"; then
12860 { $as_echo "$as_me:$LINENO: result: no terminal library found" >&5
12861 $as_echo "no terminal library found" >&6; }
12865 if test "x$olibs" = "x$LIBS"; then
12866 { $as_echo "$as_me:$LINENO: checking for tgetent()" >&5
12867 $as_echo_n "checking for tgetent()... " >&6; }
12868 cat >conftest.$ac_ext <<_ACEOF
12871 cat confdefs.h >>conftest.$ac_ext
12872 cat >>conftest.$ac_ext <<_ACEOF
12873 /* end confdefs.h. */
12878 char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist");
12883 rm -f conftest.$ac_objext conftest$ac_exeext
12884 if { (ac_try="$ac_link"
12885 case "(($ac_try" in
12886 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12887 *) ac_try_echo
=$ac_try;;
12889 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12890 $as_echo "$ac_try_echo") >&5
12891 (eval "$ac_link") 2>conftest.er1
12893 grep -v '^ *+' conftest.er1
>conftest.err
12895 cat conftest.err
>&5
12896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12897 (exit $ac_status); } && {
12898 test -z "$ac_c_werror_flag" ||
12899 test ! -s conftest.err
12900 } && test -s conftest
$ac_exeext && {
12901 test "$cross_compiling" = yes ||
12902 $as_test_x conftest
$ac_exeext
12904 { $as_echo "$as_me:$LINENO: result: yes" >&5
12905 $as_echo "yes" >&6; }
12907 $as_echo "$as_me: failed program was:" >&5
12908 sed 's/^/| /' conftest.
$ac_ext >&5
12910 { { $as_echo "$as_me:$LINENO: error: NOT FOUND!
12911 You need to install a terminal library; for example ncurses.
12912 Or specify the name of the library with --with-tlib." >&5
12913 $as_echo "$as_me: error: NOT FOUND!
12914 You need to install a terminal library; for example ncurses.
12915 Or specify the name of the library with --with-tlib." >&2;}
12916 { (exit 1); exit 1; }; }
12919 rm -rf conftest.dSYM
12920 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12921 conftest
$ac_exeext conftest.
$ac_ext
12924 { $as_echo "$as_me:$LINENO: checking whether we talk terminfo" >&5
12925 $as_echo_n "checking whether we talk terminfo... " >&6; }
12926 if test "${vim_cv_terminfo+set}" = set; then
12927 $as_echo_n "(cached) " >&6
12930 if test "$cross_compiling" = yes; then
12932 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_terminfo'" >&5
12933 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_terminfo'" >&2;}
12934 { (exit 1); exit 1; }; }
12937 cat >conftest.
$ac_ext <<_ACEOF
12939 #include "confdefs.h"
12940 #ifdef HAVE_TERMCAP_H
12941 # include <termcap.h>
12943 #ifdef HAVE_STRING_H
12944 # include <string.h>
12947 # include <stdlib.h>
12948 # include <stddef.h>
12951 {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(!strcmp(s==0 ? "" : s, "1")); }
12954 rm -f conftest
$ac_exeext
12955 if { (ac_try
="$ac_link"
12956 case "(($ac_try" in
12957 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12958 *) ac_try_echo=$ac_try;;
12960 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12961 $as_echo "$ac_try_echo") >&5
12962 (eval "$ac_link") 2>&5
12964 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12965 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12966 { (case "(($ac_try" in
12967 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12968 *) ac_try_echo
=$ac_try;;
12970 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12971 $as_echo "$ac_try_echo") >&5
12972 (eval "$ac_try") 2>&5
12974 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12975 (exit $ac_status); }; }; then
12980 $as_echo "$as_me: program exited with status $ac_status" >&5
12981 $as_echo "$as_me: failed program was:" >&5
12982 sed 's/^/| /' conftest.
$ac_ext >&5
12984 ( exit $ac_status )
12986 vim_cv_terminfo
=yes
12989 rm -rf conftest.dSYM
12990 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12996 { $as_echo "$as_me:$LINENO: result: $vim_cv_terminfo" >&5
12997 $as_echo "$vim_cv_terminfo" >&6; }
12999 if test "x$vim_cv_terminfo" = "xyes" ; then
13000 cat >>confdefs.h
<<\_ACEOF
13006 if test "x$olibs" != "x$LIBS"; then
13007 { $as_echo "$as_me:$LINENO: checking what tgetent() returns for an unknown terminal" >&5
13008 $as_echo_n "checking what tgetent() returns for an unknown terminal... " >&6; }
13009 if test "${vim_cv_tgent+set}" = set; then
13010 $as_echo_n "(cached) " >&6
13013 if test "$cross_compiling" = yes; then
13015 { { $as_echo "$as_me:$LINENO: error: failed to compile test program." >&5
13016 $as_echo "$as_me: error: failed to compile test program." >&2;}
13017 { (exit 1); exit 1; }; }
13020 cat >conftest.
$ac_ext <<_ACEOF
13022 #include "confdefs.h"
13023 #ifdef HAVE_TERMCAP_H
13024 # include <termcap.h>
13027 # include <stdlib.h>
13028 # include <stddef.h>
13031 {char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); exit(res != 0); }
13034 rm -f conftest
$ac_exeext
13035 if { (ac_try
="$ac_link"
13036 case "(($ac_try" in
13037 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13038 *) ac_try_echo=$ac_try;;
13040 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13041 $as_echo "$ac_try_echo") >&5
13042 (eval "$ac_link") 2>&5
13044 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13045 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13046 { (case "(($ac_try" in
13047 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13048 *) ac_try_echo
=$ac_try;;
13050 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13051 $as_echo "$ac_try_echo") >&5
13052 (eval "$ac_try") 2>&5
13054 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13055 (exit $ac_status); }; }; then
13060 $as_echo "$as_me: program exited with status $ac_status" >&5
13061 $as_echo "$as_me: failed program was:" >&5
13062 sed 's/^/| /' conftest.
$ac_ext >&5
13064 ( exit $ac_status )
13066 vim_cv_tgent
=non-zero
13069 rm -rf conftest.dSYM
13070 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13076 { $as_echo "$as_me:$LINENO: result: $vim_cv_tgent" >&5
13077 $as_echo "$vim_cv_tgent" >&6; }
13079 if test "x$vim_cv_tgent" = "xzero" ; then
13080 cat >>confdefs.h
<<\_ACEOF
13081 #define TGETENT_ZERO_ERR 0
13087 { $as_echo "$as_me:$LINENO: checking whether termcap.h contains ospeed" >&5
13088 $as_echo_n "checking whether termcap.h contains ospeed... " >&6; }
13089 cat >conftest.
$ac_ext <<_ACEOF
13092 cat confdefs.h
>>conftest.
$ac_ext
13093 cat >>conftest.
$ac_ext <<_ACEOF
13094 /* end confdefs.h. */
13096 #ifdef HAVE_TERMCAP_H
13097 # include <termcap.h>
13108 rm -f conftest.
$ac_objext conftest
$ac_exeext
13109 if { (ac_try
="$ac_link"
13110 case "(($ac_try" in
13111 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13112 *) ac_try_echo=$ac_try;;
13114 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13115 $as_echo "$ac_try_echo") >&5
13116 (eval "$ac_link") 2>conftest.er1
13118 grep -v '^ *+' conftest.er1 >conftest.err
13120 cat conftest.err >&5
13121 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13122 (exit $ac_status); } && {
13123 test -z "$ac_c_werror_flag" ||
13124 test ! -s conftest.err
13125 } && test -s conftest$ac_exeext && {
13126 test "$cross_compiling" = yes ||
13127 $as_test_x conftest$ac_exeext
13129 { $as_echo "$as_me:$LINENO: result: yes" >&5
13130 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13131 #define HAVE_OSPEED 1
13135 $as_echo "$as_me: failed program was:" >&5
13136 sed 's/^/| /' conftest.$ac_ext >&5
13138 { $as_echo "$as_me:$LINENO: result: no" >&5
13139 $as_echo "no" >&6; }
13140 { $as_echo "$as_me:$LINENO: checking whether ospeed can be extern" >&5
13141 $as_echo_n "checking whether ospeed can be extern... " >&6; }
13142 cat >conftest.$ac_ext <<_ACEOF
13145 cat confdefs.h >>conftest.$ac_ext
13146 cat >>conftest.$ac_ext <<_ACEOF
13147 /* end confdefs.h. */
13149 #ifdef HAVE_TERMCAP_H
13150 # include <termcap.h>
13152 extern short ospeed;
13162 rm -f conftest.$ac_objext conftest$ac_exeext
13163 if { (ac_try="$ac_link"
13164 case "(($ac_try" in
13165 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13166 *) ac_try_echo
=$ac_try;;
13168 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13169 $as_echo "$ac_try_echo") >&5
13170 (eval "$ac_link") 2>conftest.er1
13172 grep -v '^ *+' conftest.er1
>conftest.err
13174 cat conftest.err
>&5
13175 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13176 (exit $ac_status); } && {
13177 test -z "$ac_c_werror_flag" ||
13178 test ! -s conftest.err
13179 } && test -s conftest
$ac_exeext && {
13180 test "$cross_compiling" = yes ||
13181 $as_test_x conftest
$ac_exeext
13183 { $as_echo "$as_me:$LINENO: result: yes" >&5
13184 $as_echo "yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
13185 #define OSPEED_EXTERN 1
13189 $as_echo "$as_me: failed program was:" >&5
13190 sed 's/^/| /' conftest.
$ac_ext >&5
13192 { $as_echo "$as_me:$LINENO: result: no" >&5
13193 $as_echo "no" >&6; }
13196 rm -rf conftest.dSYM
13197 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13198 conftest
$ac_exeext conftest.
$ac_ext
13202 rm -rf conftest.dSYM
13203 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13204 conftest
$ac_exeext conftest.
$ac_ext
13206 { $as_echo "$as_me:$LINENO: checking whether termcap.h contains UP, BC and PC" >&5
13207 $as_echo_n "checking whether termcap.h contains UP, BC and PC... " >&6; }
13208 cat >conftest.
$ac_ext <<_ACEOF
13211 cat confdefs.h
>>conftest.
$ac_ext
13212 cat >>conftest.
$ac_ext <<_ACEOF
13213 /* end confdefs.h. */
13215 #ifdef HAVE_TERMCAP_H
13216 # include <termcap.h>
13222 if (UP == 0 && BC == 0) PC = 1
13227 rm -f conftest.
$ac_objext conftest
$ac_exeext
13228 if { (ac_try
="$ac_link"
13229 case "(($ac_try" in
13230 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13231 *) ac_try_echo=$ac_try;;
13233 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13234 $as_echo "$ac_try_echo") >&5
13235 (eval "$ac_link") 2>conftest.er1
13237 grep -v '^ *+' conftest.er1 >conftest.err
13239 cat conftest.err >&5
13240 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13241 (exit $ac_status); } && {
13242 test -z "$ac_c_werror_flag" ||
13243 test ! -s conftest.err
13244 } && test -s conftest$ac_exeext && {
13245 test "$cross_compiling" = yes ||
13246 $as_test_x conftest$ac_exeext
13248 { $as_echo "$as_me:$LINENO: result: yes" >&5
13249 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13250 #define HAVE_UP_BC_PC 1
13254 $as_echo "$as_me: failed program was:" >&5
13255 sed 's/^/| /' conftest.$ac_ext >&5
13257 { $as_echo "$as_me:$LINENO: result: no" >&5
13258 $as_echo "no" >&6; }
13259 { $as_echo "$as_me:$LINENO: checking whether UP, BC and PC can be extern" >&5
13260 $as_echo_n "checking whether UP, BC and PC can be extern... " >&6; }
13261 cat >conftest.$ac_ext <<_ACEOF
13264 cat confdefs.h >>conftest.$ac_ext
13265 cat >>conftest.$ac_ext <<_ACEOF
13266 /* end confdefs.h. */
13268 #ifdef HAVE_TERMCAP_H
13269 # include <termcap.h>
13271 extern char *UP, *BC, PC;
13276 if (UP == 0 && BC == 0) PC = 1
13281 rm -f conftest.$ac_objext conftest$ac_exeext
13282 if { (ac_try="$ac_link"
13283 case "(($ac_try" in
13284 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13285 *) ac_try_echo
=$ac_try;;
13287 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13288 $as_echo "$ac_try_echo") >&5
13289 (eval "$ac_link") 2>conftest.er1
13291 grep -v '^ *+' conftest.er1
>conftest.err
13293 cat conftest.err
>&5
13294 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13295 (exit $ac_status); } && {
13296 test -z "$ac_c_werror_flag" ||
13297 test ! -s conftest.err
13298 } && test -s conftest
$ac_exeext && {
13299 test "$cross_compiling" = yes ||
13300 $as_test_x conftest
$ac_exeext
13302 { $as_echo "$as_me:$LINENO: result: yes" >&5
13303 $as_echo "yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
13304 #define UP_BC_PC_EXTERN 1
13308 $as_echo "$as_me: failed program was:" >&5
13309 sed 's/^/| /' conftest.
$ac_ext >&5
13311 { $as_echo "$as_me:$LINENO: result: no" >&5
13312 $as_echo "no" >&6; }
13315 rm -rf conftest.dSYM
13316 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13317 conftest
$ac_exeext conftest.
$ac_ext
13321 rm -rf conftest.dSYM
13322 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13323 conftest
$ac_exeext conftest.
$ac_ext
13325 { $as_echo "$as_me:$LINENO: checking whether tputs() uses outfuntype" >&5
13326 $as_echo_n "checking whether tputs() uses outfuntype... " >&6; }
13327 cat >conftest.
$ac_ext <<_ACEOF
13330 cat confdefs.h
>>conftest.
$ac_ext
13331 cat >>conftest.
$ac_ext <<_ACEOF
13332 /* end confdefs.h. */
13334 #ifdef HAVE_TERMCAP_H
13335 # include <termcap.h>
13341 extern int xx(); tputs("test", 1, (outfuntype)xx)
13346 rm -f conftest.
$ac_objext
13347 if { (ac_try
="$ac_compile"
13348 case "(($ac_try" in
13349 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13350 *) ac_try_echo=$ac_try;;
13352 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13353 $as_echo "$ac_try_echo") >&5
13354 (eval "$ac_compile") 2>conftest.er1
13356 grep -v '^ *+' conftest.er1 >conftest.err
13358 cat conftest.err >&5
13359 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13360 (exit $ac_status); } && {
13361 test -z "$ac_c_werror_flag" ||
13362 test ! -s conftest.err
13363 } && test -s conftest.$ac_objext; then
13364 { $as_echo "$as_me:$LINENO: result: yes" >&5
13365 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13366 #define HAVE_OUTFUNTYPE 1
13370 $as_echo "$as_me: failed program was:" >&5
13371 sed 's/^/| /' conftest.$ac_ext >&5
13373 { $as_echo "$as_me:$LINENO: result: no" >&5
13374 $as_echo "no" >&6; }
13377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13379 { $as_echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
13380 $as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; }
13381 cat >conftest.$ac_ext <<_ACEOF
13384 cat confdefs.h >>conftest.$ac_ext
13385 cat >>conftest.$ac_ext <<_ACEOF
13386 /* end confdefs.h. */
13388 #include <sys/types.h>
13389 #include <sys/time.h>
13390 #include <sys/select.h>
13399 rm -f conftest.$ac_objext
13400 if { (ac_try="$ac_compile"
13401 case "(($ac_try" in
13402 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13403 *) ac_try_echo
=$ac_try;;
13405 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13406 $as_echo "$ac_try_echo") >&5
13407 (eval "$ac_compile") 2>conftest.er1
13409 grep -v '^ *+' conftest.er1
>conftest.err
13411 cat conftest.err
>&5
13412 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13413 (exit $ac_status); } && {
13414 test -z "$ac_c_werror_flag" ||
13415 test ! -s conftest.err
13416 } && test -s conftest.
$ac_objext; then
13417 { $as_echo "$as_me:$LINENO: result: yes" >&5
13418 $as_echo "yes" >&6; }
13419 cat >>confdefs.h
<<\_ACEOF
13420 #define SYS_SELECT_WITH_SYS_TIME 1
13424 $as_echo "$as_me: failed program was:" >&5
13425 sed 's/^/| /' conftest.
$ac_ext >&5
13427 { $as_echo "$as_me:$LINENO: result: no" >&5
13428 $as_echo "no" >&6; }
13431 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13434 { $as_echo "$as_me:$LINENO: checking for /dev/ptc" >&5
13435 $as_echo_n "checking for /dev/ptc... " >&6; }
13436 if test -r /dev
/ptc
; then
13437 cat >>confdefs.h
<<\_ACEOF
13438 #define HAVE_DEV_PTC 1
13441 { $as_echo "$as_me:$LINENO: result: yes" >&5
13442 $as_echo "yes" >&6; }
13444 { $as_echo "$as_me:$LINENO: result: no" >&5
13445 $as_echo "no" >&6; }
13448 { $as_echo "$as_me:$LINENO: checking for SVR4 ptys" >&5
13449 $as_echo_n "checking for SVR4 ptys... " >&6; }
13450 if test -c /dev
/ptmx
; then
13451 cat >conftest.
$ac_ext <<_ACEOF
13454 cat confdefs.h
>>conftest.
$ac_ext
13455 cat >>conftest.
$ac_ext <<_ACEOF
13456 /* end confdefs.h. */
13461 ptsname(0);grantpt(0);unlockpt(0);
13466 rm -f conftest.
$ac_objext conftest
$ac_exeext
13467 if { (ac_try
="$ac_link"
13468 case "(($ac_try" in
13469 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13470 *) ac_try_echo=$ac_try;;
13472 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13473 $as_echo "$ac_try_echo") >&5
13474 (eval "$ac_link") 2>conftest.er1
13476 grep -v '^ *+' conftest.er1 >conftest.err
13478 cat conftest.err >&5
13479 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13480 (exit $ac_status); } && {
13481 test -z "$ac_c_werror_flag" ||
13482 test ! -s conftest.err
13483 } && test -s conftest$ac_exeext && {
13484 test "$cross_compiling" = yes ||
13485 $as_test_x conftest$ac_exeext
13487 { $as_echo "$as_me:$LINENO: result: yes" >&5
13488 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13489 #define HAVE_SVR4_PTYS 1
13493 $as_echo "$as_me: failed program was:" >&5
13494 sed 's/^/| /' conftest.$ac_ext >&5
13496 { $as_echo "$as_me:$LINENO: result: no" >&5
13497 $as_echo "no" >&6; }
13500 rm -rf conftest.dSYM
13501 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13502 conftest$ac_exeext conftest.$ac_ext
13504 { $as_echo "$as_me:$LINENO: result: no" >&5
13505 $as_echo "no" >&6; }
13508 { $as_echo "$as_me:$LINENO: checking for ptyranges" >&5
13509 $as_echo_n "checking for ptyranges... " >&6; }
13510 if test -d /dev/ptym ; then
13515 cat >conftest.$ac_ext <<_ACEOF
13518 cat confdefs.h >>conftest.$ac_ext
13519 cat >>conftest.$ac_ext <<_ACEOF
13520 /* end confdefs.h. */
13526 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13527 $EGREP "yes" >/dev/null 2>&1; then
13528 ptys=`echo /dev
/ptyp??
`
13530 ptys=`echo $pdir/pty??
`
13534 if test "$ptys" != "$pdir/pty??" ; then
13535 p0=`echo $ptys |
tr ' ' '\012' |
sed -e 's/^.*\(.\).$/\1/g' |
sort -u |
tr -d '\012'`
13536 p1=`echo $ptys |
tr ' ' '\012' |
sed -e 's/^.*\(.\)$/\1/g' |
sort -u |
tr -d '\012'`
13537 cat >>confdefs.h <<_ACEOF
13538 #define PTYRANGE0 "$p0"
13541 cat >>confdefs.h <<_ACEOF
13542 #define PTYRANGE1 "$p1"
13545 { $as_echo "$as_me:$LINENO: result: $p0 / $p1" >&5
13546 $as_echo "$p0 / $p1" >&6; }
13548 { $as_echo "$as_me:$LINENO: result: don't know" >&5
13549 $as_echo "don't know" >&6; }
13553 { $as_echo "$as_me:$LINENO: checking default tty permissions/group" >&5
13554 $as_echo_n "checking default tty permissions/group... " >&6; }
13555 if test "${vim_cv_tty_group+set}" = set; then
13556 $as_echo_n "(cached) " >&6
13559 if test "$cross_compiling" = yes; then
13561 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_tty_group' and 'vim_cv_tty_mode'" >&5
13562 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_tty_group' and 'vim_cv_tty_mode'" >&2;}
13563 { (exit 1); exit 1; }; }
13566 cat >conftest.$ac_ext <<_ACEOF
13568 #include "confdefs.h"
13569 #include <sys/types.h>
13571 # include <stdlib.h>
13572 # include <stddef.h>
13574 #ifdef HAVE_UNISTD_H
13575 #include <unistd.h>
13577 #include <sys/stat.h>
13582 char *x,*ttyname();
13586 if (!(x = ttyname(0))) exit(1);
13587 if (stat(x, &sb)) exit(1);
13589 if (om & 002) exit(0);
13590 m = system("mesg y");
13591 if (m == -1 || m == 127) exit(1);
13592 if (stat(x, &sb)) exit(1);
13594 if (chmod(x, om)) exit(1);
13595 if (m & 002) exit(0);
13596 if (sb.st_gid == getgid()) exit(1);
13597 if (!(fp=fopen("conftest_grp", "w")))
13599 fprintf(fp, "%d\n", sb.st_gid);
13605 rm -f conftest$ac_exeext
13606 if { (ac_try="$ac_link"
13607 case "(($ac_try" in
13608 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13609 *) ac_try_echo
=$ac_try;;
13611 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13612 $as_echo "$ac_try_echo") >&5
13613 (eval "$ac_link") 2>&5
13615 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13616 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13617 { (case "(($ac_try" in
13618 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13619 *) ac_try_echo=$ac_try;;
13621 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13622 $as_echo "$ac_try_echo") >&5
13623 (eval "$ac_try") 2>&5
13625 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13626 (exit $ac_status); }; }; then
13628 if test -f conftest_grp; then
13629 vim_cv_tty_group=`cat conftest_grp
`
13630 if test "x$vim_cv_tty_mode" = "x" ; then
13631 vim_cv_tty_mode=0620
13633 { $as_echo "$as_me:$LINENO: result: pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&5
13634 $as_echo "pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&6; }
13636 vim_cv_tty_group=world
13637 { $as_echo "$as_me:$LINENO: result: ptys are world accessable" >&5
13638 $as_echo "ptys are world accessable" >&6; }
13642 $as_echo "$as_me: program exited with status $ac_status" >&5
13643 $as_echo "$as_me: failed program was:" >&5
13644 sed 's/^/| /' conftest.$ac_ext >&5
13646 ( exit $ac_status )
13648 vim_cv_tty_group=world
13649 { $as_echo "$as_me:$LINENO: result: can't determine - assume ptys are world accessable" >&5
13650 $as_echo "can't determine - assume ptys are world accessable" >&6; }
13653 rm -rf conftest.dSYM
13654 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13660 { $as_echo "$as_me:$LINENO: result: $vim_cv_tty_group" >&5
13661 $as_echo "$vim_cv_tty_group" >&6; }
13664 if test "x$vim_cv_tty_group" != "xworld" ; then
13665 cat >>confdefs.h <<_ACEOF
13666 #define PTYGROUP $vim_cv_tty_group
13669 if test "x$vim_cv_tty_mode" = "x" ; then
13670 { { $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
13671 $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;}
13672 { (exit 1); exit 1; }; }
13674 cat >>confdefs.h <<\_ACEOF
13675 #define PTYMODE 0620
13682 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13683 $as_echo_n "checking return type of signal handlers... " >&6; }
13684 if test "${ac_cv_type_signal+set}" = set; then
13685 $as_echo_n "(cached) " >&6
13687 cat >conftest.$ac_ext <<_ACEOF
13690 cat confdefs.h >>conftest.$ac_ext
13691 cat >>conftest.$ac_ext <<_ACEOF
13692 /* end confdefs.h. */
13693 #include <sys/types.h>
13694 #include <signal.h>
13699 return *(signal (0, 0)) (0) == 1;
13704 rm -f conftest.$ac_objext
13705 if { (ac_try="$ac_compile"
13706 case "(($ac_try" in
13707 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13708 *) ac_try_echo
=$ac_try;;
13710 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13711 $as_echo "$ac_try_echo") >&5
13712 (eval "$ac_compile") 2>conftest.er1
13714 grep -v '^ *+' conftest.er1
>conftest.err
13716 cat conftest.err
>&5
13717 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13718 (exit $ac_status); } && {
13719 test -z "$ac_c_werror_flag" ||
13720 test ! -s conftest.err
13721 } && test -s conftest.
$ac_objext; then
13722 ac_cv_type_signal
=int
13724 $as_echo "$as_me: failed program was:" >&5
13725 sed 's/^/| /' conftest.
$ac_ext >&5
13727 ac_cv_type_signal
=void
13730 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13732 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
13733 $as_echo "$ac_cv_type_signal" >&6; }
13735 cat >>confdefs.h
<<_ACEOF
13736 #define RETSIGTYPE $ac_cv_type_signal
13741 if test $ac_cv_type_signal = void
; then
13742 cat >>confdefs.h
<<\_ACEOF
13743 #define SIGRETURN return
13747 cat >>confdefs.h
<<\_ACEOF
13748 #define SIGRETURN return 0
13753 { $as_echo "$as_me:$LINENO: checking for struct sigcontext" >&5
13754 $as_echo_n "checking for struct sigcontext... " >&6; }
13755 cat >conftest.
$ac_ext <<_ACEOF
13758 cat confdefs.h
>>conftest.
$ac_ext
13759 cat >>conftest.
$ac_ext <<_ACEOF
13760 /* end confdefs.h. */
13762 #include <signal.h>
13765 struct sigcontext *scont;
13766 scont = (struct sigcontext *)0;
13777 rm -f conftest.
$ac_objext
13778 if { (ac_try
="$ac_compile"
13779 case "(($ac_try" in
13780 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13781 *) ac_try_echo=$ac_try;;
13783 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13784 $as_echo "$ac_try_echo") >&5
13785 (eval "$ac_compile") 2>conftest.er1
13787 grep -v '^ *+' conftest.er1 >conftest.err
13789 cat conftest.err >&5
13790 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13791 (exit $ac_status); } && {
13792 test -z "$ac_c_werror_flag" ||
13793 test ! -s conftest.err
13794 } && test -s conftest.$ac_objext; then
13795 { $as_echo "$as_me:$LINENO: result: yes" >&5
13796 $as_echo "yes" >&6; }
13797 cat >>confdefs.h <<\_ACEOF
13798 #define HAVE_SIGCONTEXT 1
13802 $as_echo "$as_me: failed program was:" >&5
13803 sed 's/^/| /' conftest.$ac_ext >&5
13805 { $as_echo "$as_me:$LINENO: result: no" >&5
13806 $as_echo "no" >&6; }
13809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13811 { $as_echo "$as_me:$LINENO: checking getcwd implementation is broken" >&5
13812 $as_echo_n "checking getcwd implementation is broken... " >&6; }
13813 if test "${vim_cv_getcwd_broken+set}" = set; then
13814 $as_echo_n "(cached) " >&6
13817 if test "$cross_compiling" = yes; then
13819 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_getcwd_broken'" >&5
13820 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_getcwd_broken'" >&2;}
13821 { (exit 1); exit 1; }; }
13824 cat >conftest.$ac_ext <<_ACEOF
13826 #include "confdefs.h"
13827 #ifdef HAVE_UNISTD_H
13828 #include <unistd.h>
13830 char *dagger[] = { "IFS=pwd", 0 };
13834 extern char **environ;
13836 return getcwd(buffer, 500) ? 0 : 1;
13840 rm -f conftest$ac_exeext
13841 if { (ac_try="$ac_link"
13842 case "(($ac_try" in
13843 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13844 *) ac_try_echo
=$ac_try;;
13846 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13847 $as_echo "$ac_try_echo") >&5
13848 (eval "$ac_link") 2>&5
13850 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13851 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13852 { (case "(($ac_try" in
13853 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13854 *) ac_try_echo=$ac_try;;
13856 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13857 $as_echo "$ac_try_echo") >&5
13858 (eval "$ac_try") 2>&5
13860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13861 (exit $ac_status); }; }; then
13863 vim_cv_getcwd_broken=no
13866 $as_echo "$as_me: program exited with status $ac_status" >&5
13867 $as_echo "$as_me: failed program was:" >&5
13868 sed 's/^/| /' conftest.$ac_ext >&5
13870 ( exit $ac_status )
13872 vim_cv_getcwd_broken=yes
13875 rm -rf conftest.dSYM
13876 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13882 { $as_echo "$as_me:$LINENO: result: $vim_cv_getcwd_broken" >&5
13883 $as_echo "$vim_cv_getcwd_broken" >&6; }
13885 if test "x$vim_cv_getcwd_broken" = "xyes" ; then
13886 cat >>confdefs.h <<\_ACEOF
13887 #define BAD_GETCWD 1
13938 for ac_func in bcmp fchdir fchown fseeko fsync ftello getcwd getpseudotty \
13939 getpwnam getpwuid getrlimit gettimeofday getwd lstat memcmp \
13940 memset nanosleep opendir putenv qsort readlink select setenv \
13941 setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \
13942 sigvec strcasecmp strerror strftime stricmp strncasecmp \
13943 strnicmp strpbrk strtol tgetent towlower towupper iswupper \
13944 usleep utime utimes
13946 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
13947 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13948 $as_echo_n "checking for $ac_func... " >&6; }
13949 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13950 $as_echo_n "(cached) " >&6
13952 cat >conftest.$ac_ext <<_ACEOF
13955 cat confdefs.h >>conftest.$ac_ext
13956 cat >>conftest.$ac_ext <<_ACEOF
13957 /* end confdefs.h. */
13958 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13959 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13960 #define $ac_func innocuous_$ac_func
13962 /* System header to define __stub macros and hopefully few prototypes,
13963 which can conflict with char $ac_func (); below.
13964 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13965 <limits.h> exists even on freestanding compilers. */
13968 # include <limits.h>
13970 # include <assert.h>
13975 /* Override any GCC internal prototype to avoid an error.
13976 Use char because int might match the return type of a GCC
13977 builtin and then its argument prototype would still apply. */
13982 /* The GNU C library defines this for functions which it implements
13983 to always fail with ENOSYS. Some functions are actually named
13984 something starting with __ and the normal name is an alias. */
13985 #if defined __stub_$ac_func || defined __stub___$ac_func
13992 return $ac_func ();
13997 rm -f conftest.$ac_objext conftest$ac_exeext
13998 if { (ac_try="$ac_link"
13999 case "(($ac_try" in
14000 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14001 *) ac_try_echo
=$ac_try;;
14003 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14004 $as_echo "$ac_try_echo") >&5
14005 (eval "$ac_link") 2>conftest.er1
14007 grep -v '^ *+' conftest.er1
>conftest.err
14009 cat conftest.err
>&5
14010 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14011 (exit $ac_status); } && {
14012 test -z "$ac_c_werror_flag" ||
14013 test ! -s conftest.err
14014 } && test -s conftest
$ac_exeext && {
14015 test "$cross_compiling" = yes ||
14016 $as_test_x conftest
$ac_exeext
14018 eval "$as_ac_var=yes"
14020 $as_echo "$as_me: failed program was:" >&5
14021 sed 's/^/| /' conftest.
$ac_ext >&5
14023 eval "$as_ac_var=no"
14026 rm -rf conftest.dSYM
14027 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14028 conftest
$ac_exeext conftest.
$ac_ext
14030 ac_res
=`eval 'as_val=${'$as_ac_var'}
14031 $as_echo "$as_val"'`
14032 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14033 $as_echo "$ac_res" >&6; }
14034 if test `eval 'as_val=${'$as_ac_var'}
14035 $as_echo "$as_val"'` = yes; then
14036 cat >>confdefs.h
<<_ACEOF
14037 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14044 { $as_echo "$as_me:$LINENO: checking for st_blksize" >&5
14045 $as_echo_n "checking for st_blksize... " >&6; }
14046 cat >conftest.
$ac_ext <<_ACEOF
14049 cat confdefs.h
>>conftest.
$ac_ext
14050 cat >>conftest.
$ac_ext <<_ACEOF
14051 /* end confdefs.h. */
14052 #include <sys/types.h>
14053 #include <sys/stat.h>
14061 n = (int)st.st_blksize;
14066 rm -f conftest.
$ac_objext
14067 if { (ac_try
="$ac_compile"
14068 case "(($ac_try" in
14069 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14070 *) ac_try_echo=$ac_try;;
14072 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14073 $as_echo "$ac_try_echo") >&5
14074 (eval "$ac_compile") 2>conftest.er1
14076 grep -v '^ *+' conftest.er1 >conftest.err
14078 cat conftest.err >&5
14079 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14080 (exit $ac_status); } && {
14081 test -z "$ac_c_werror_flag" ||
14082 test ! -s conftest.err
14083 } && test -s conftest.$ac_objext; then
14084 { $as_echo "$as_me:$LINENO: result: yes" >&5
14085 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14086 #define HAVE_ST_BLKSIZE 1
14090 $as_echo "$as_me: failed program was:" >&5
14091 sed 's/^/| /' conftest.$ac_ext >&5
14093 { $as_echo "$as_me:$LINENO: result: no" >&5
14094 $as_echo "no" >&6; }
14097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14099 { $as_echo "$as_me:$LINENO: checking whether stat() ignores a trailing slash" >&5
14100 $as_echo_n "checking whether stat() ignores a trailing slash... " >&6; }
14101 if test "${vim_cv_stat_ignores_slash+set}" = set; then
14102 $as_echo_n "(cached) " >&6
14105 if test "$cross_compiling" = yes; then
14107 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_stat_ignores_slash'" >&5
14108 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_stat_ignores_slash'" >&2;}
14109 { (exit 1); exit 1; }; }
14112 cat >conftest.$ac_ext <<_ACEOF
14114 #include "confdefs.h"
14116 # include <stdlib.h>
14117 # include <stddef.h>
14119 #include <sys/types.h>
14120 #include <sys/stat.h>
14121 main() {struct stat st; exit(stat("configure/", &st) != 0); }
14124 rm -f conftest$ac_exeext
14125 if { (ac_try="$ac_link"
14126 case "(($ac_try" in
14127 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14128 *) ac_try_echo
=$ac_try;;
14130 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14131 $as_echo "$ac_try_echo") >&5
14132 (eval "$ac_link") 2>&5
14134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14135 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
14136 { (case "(($ac_try" in
14137 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14138 *) ac_try_echo=$ac_try;;
14140 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14141 $as_echo "$ac_try_echo") >&5
14142 (eval "$ac_try") 2>&5
14144 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14145 (exit $ac_status); }; }; then
14147 vim_cv_stat_ignores_slash=yes
14150 $as_echo "$as_me: program exited with status $ac_status" >&5
14151 $as_echo "$as_me: failed program was:" >&5
14152 sed 's/^/| /' conftest.$ac_ext >&5
14154 ( exit $ac_status )
14156 vim_cv_stat_ignores_slash=no
14159 rm -rf conftest.dSYM
14160 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14166 { $as_echo "$as_me:$LINENO: result: $vim_cv_stat_ignores_slash" >&5
14167 $as_echo "$vim_cv_stat_ignores_slash" >&6; }
14169 if test "x$vim_cv_stat_ignores_slash" = "xyes" ; then
14170 cat >>confdefs.h <<\_ACEOF
14171 #define STAT_IGNORES_SLASH 1
14176 { $as_echo "$as_me:$LINENO: checking for iconv_open()" >&5
14177 $as_echo_n "checking for iconv_open()... " >&6; }
14179 LIBS="$LIBS -liconv"
14180 cat >conftest.$ac_ext <<_ACEOF
14183 cat confdefs.h >>conftest.$ac_ext
14184 cat >>conftest.$ac_ext <<_ACEOF
14185 /* end confdefs.h. */
14187 #ifdef HAVE_ICONV_H
14188 # include <iconv.h>
14194 iconv_open("fr", "to");
14199 rm -f conftest.$ac_objext conftest$ac_exeext
14200 if { (ac_try="$ac_link"
14201 case "(($ac_try" in
14202 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14203 *) ac_try_echo
=$ac_try;;
14205 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14206 $as_echo "$ac_try_echo") >&5
14207 (eval "$ac_link") 2>conftest.er1
14209 grep -v '^ *+' conftest.er1
>conftest.err
14211 cat conftest.err
>&5
14212 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14213 (exit $ac_status); } && {
14214 test -z "$ac_c_werror_flag" ||
14215 test ! -s conftest.err
14216 } && test -s conftest
$ac_exeext && {
14217 test "$cross_compiling" = yes ||
14218 $as_test_x conftest
$ac_exeext
14220 { $as_echo "$as_me:$LINENO: result: yes; with -liconv" >&5
14221 $as_echo "yes; with -liconv" >&6; }; cat >>confdefs.h
<<\_ACEOF
14222 #define HAVE_ICONV 1
14226 $as_echo "$as_me: failed program was:" >&5
14227 sed 's/^/| /' conftest.
$ac_ext >&5
14230 cat >conftest.
$ac_ext <<_ACEOF
14233 cat confdefs.h
>>conftest.
$ac_ext
14234 cat >>conftest.
$ac_ext <<_ACEOF
14235 /* end confdefs.h. */
14237 #ifdef HAVE_ICONV_H
14238 # include <iconv.h>
14244 iconv_open("fr", "to");
14249 rm -f conftest.
$ac_objext conftest
$ac_exeext
14250 if { (ac_try
="$ac_link"
14251 case "(($ac_try" in
14252 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14253 *) ac_try_echo=$ac_try;;
14255 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14256 $as_echo "$ac_try_echo") >&5
14257 (eval "$ac_link") 2>conftest.er1
14259 grep -v '^ *+' conftest.er1 >conftest.err
14261 cat conftest.err >&5
14262 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14263 (exit $ac_status); } && {
14264 test -z "$ac_c_werror_flag" ||
14265 test ! -s conftest.err
14266 } && test -s conftest$ac_exeext && {
14267 test "$cross_compiling" = yes ||
14268 $as_test_x conftest$ac_exeext
14270 { $as_echo "$as_me:$LINENO: result: yes" >&5
14271 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14272 #define HAVE_ICONV 1
14276 $as_echo "$as_me: failed program was:" >&5
14277 sed 's/^/| /' conftest.$ac_ext >&5
14279 { $as_echo "$as_me:$LINENO: result: no" >&5
14280 $as_echo "no" >&6; }
14283 rm -rf conftest.dSYM
14284 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14285 conftest$ac_exeext conftest.$ac_ext
14288 rm -rf conftest.dSYM
14289 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14290 conftest$ac_exeext conftest.$ac_ext
14293 { $as_echo "$as_me:$LINENO: checking for nl_langinfo(CODESET)" >&5
14294 $as_echo_n "checking for nl_langinfo(CODESET)... " >&6; }
14295 cat >conftest.$ac_ext <<_ACEOF
14298 cat confdefs.h >>conftest.$ac_ext
14299 cat >>conftest.$ac_ext <<_ACEOF
14300 /* end confdefs.h. */
14302 #ifdef HAVE_LANGINFO_H
14303 # include <langinfo.h>
14309 char *cs = nl_langinfo(CODESET);
14314 rm -f conftest.$ac_objext conftest$ac_exeext
14315 if { (ac_try="$ac_link"
14316 case "(($ac_try" in
14317 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14318 *) ac_try_echo
=$ac_try;;
14320 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14321 $as_echo "$ac_try_echo") >&5
14322 (eval "$ac_link") 2>conftest.er1
14324 grep -v '^ *+' conftest.er1
>conftest.err
14326 cat conftest.err
>&5
14327 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14328 (exit $ac_status); } && {
14329 test -z "$ac_c_werror_flag" ||
14330 test ! -s conftest.err
14331 } && test -s conftest
$ac_exeext && {
14332 test "$cross_compiling" = yes ||
14333 $as_test_x conftest
$ac_exeext
14335 { $as_echo "$as_me:$LINENO: result: yes" >&5
14336 $as_echo "yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
14337 #define HAVE_NL_LANGINFO_CODESET 1
14341 $as_echo "$as_me: failed program was:" >&5
14342 sed 's/^/| /' conftest.
$ac_ext >&5
14344 { $as_echo "$as_me:$LINENO: result: no" >&5
14345 $as_echo "no" >&6; }
14348 rm -rf conftest.dSYM
14349 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14350 conftest
$ac_exeext conftest.
$ac_ext
14353 { $as_echo "$as_me:$LINENO: checking for strtod in -lm" >&5
14354 $as_echo_n "checking for strtod in -lm... " >&6; }
14355 if test "${ac_cv_lib_m_strtod+set}" = set; then
14356 $as_echo_n "(cached) " >&6
14358 ac_check_lib_save_LIBS
=$LIBS
14360 cat >conftest.
$ac_ext <<_ACEOF
14363 cat confdefs.h
>>conftest.
$ac_ext
14364 cat >>conftest.
$ac_ext <<_ACEOF
14365 /* end confdefs.h. */
14367 /* Override any GCC internal prototype to avoid an error.
14368 Use char because int might match the return type of a GCC
14369 builtin and then its argument prototype would still apply. */
14382 rm -f conftest.
$ac_objext conftest
$ac_exeext
14383 if { (ac_try
="$ac_link"
14384 case "(($ac_try" in
14385 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14386 *) ac_try_echo=$ac_try;;
14388 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14389 $as_echo "$ac_try_echo") >&5
14390 (eval "$ac_link") 2>conftest.er1
14392 grep -v '^ *+' conftest.er1 >conftest.err
14394 cat conftest.err >&5
14395 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14396 (exit $ac_status); } && {
14397 test -z "$ac_c_werror_flag" ||
14398 test ! -s conftest.err
14399 } && test -s conftest$ac_exeext && {
14400 test "$cross_compiling" = yes ||
14401 $as_test_x conftest$ac_exeext
14403 ac_cv_lib_m_strtod=yes
14405 $as_echo "$as_me: failed program was:" >&5
14406 sed 's/^/| /' conftest.$ac_ext >&5
14408 ac_cv_lib_m_strtod=no
14411 rm -rf conftest.dSYM
14412 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14413 conftest$ac_exeext conftest.$ac_ext
14414 LIBS=$ac_check_lib_save_LIBS
14416 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_strtod" >&5
14417 $as_echo "$ac_cv_lib_m_strtod" >&6; }
14418 if test $ac_cv_lib_m_strtod = yes; then
14419 cat >>confdefs.h <<_ACEOF
14420 #define HAVE_LIBM 1
14427 { $as_echo "$as_me:$LINENO: checking for strtod() and other floating point functions" >&5
14428 $as_echo_n "checking for strtod() and other floating point functions... " >&6; }
14429 cat >conftest.$ac_ext <<_ACEOF
14432 cat confdefs.h >>conftest.$ac_ext
14433 cat >>conftest.$ac_ext <<_ACEOF
14434 /* end confdefs.h. */
14440 # include <stdlib.h>
14441 # include <stddef.h>
14448 d = strtod("1.1", &s);
14453 d = pow(1.11, 2.22);
14463 rm -f conftest.$ac_objext conftest$ac_exeext
14464 if { (ac_try="$ac_link"
14465 case "(($ac_try" in
14466 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14467 *) ac_try_echo
=$ac_try;;
14469 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14470 $as_echo "$ac_try_echo") >&5
14471 (eval "$ac_link") 2>conftest.er1
14473 grep -v '^ *+' conftest.er1
>conftest.err
14475 cat conftest.err
>&5
14476 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14477 (exit $ac_status); } && {
14478 test -z "$ac_c_werror_flag" ||
14479 test ! -s conftest.err
14480 } && test -s conftest
$ac_exeext && {
14481 test "$cross_compiling" = yes ||
14482 $as_test_x conftest
$ac_exeext
14484 { $as_echo "$as_me:$LINENO: result: yes" >&5
14485 $as_echo "yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
14486 #define HAVE_FLOAT_FUNCS 1
14490 $as_echo "$as_me: failed program was:" >&5
14491 sed 's/^/| /' conftest.
$ac_ext >&5
14493 { $as_echo "$as_me:$LINENO: result: no" >&5
14494 $as_echo "no" >&6; }
14497 rm -rf conftest.dSYM
14498 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14499 conftest
$ac_exeext conftest.
$ac_ext
14501 { $as_echo "$as_me:$LINENO: checking --disable-acl argument" >&5
14502 $as_echo_n "checking --disable-acl argument... " >&6; }
14503 # Check whether --enable-acl was given.
14504 if test "${enable_acl+set}" = set; then
14505 enableval
=$enable_acl;
14510 if test "$enable_acl" = "yes"; then
14511 { $as_echo "$as_me:$LINENO: result: no" >&5
14512 $as_echo "no" >&6; }
14513 { $as_echo "$as_me:$LINENO: checking for acl_get_file in -lposix1e" >&5
14514 $as_echo_n "checking for acl_get_file in -lposix1e... " >&6; }
14515 if test "${ac_cv_lib_posix1e_acl_get_file+set}" = set; then
14516 $as_echo_n "(cached) " >&6
14518 ac_check_lib_save_LIBS
=$LIBS
14519 LIBS
="-lposix1e $LIBS"
14520 cat >conftest.
$ac_ext <<_ACEOF
14523 cat confdefs.h
>>conftest.
$ac_ext
14524 cat >>conftest.
$ac_ext <<_ACEOF
14525 /* end confdefs.h. */
14527 /* Override any GCC internal prototype to avoid an error.
14528 Use char because int might match the return type of a GCC
14529 builtin and then its argument prototype would still apply. */
14533 char acl_get_file ();
14537 return acl_get_file ();
14542 rm -f conftest.
$ac_objext conftest
$ac_exeext
14543 if { (ac_try
="$ac_link"
14544 case "(($ac_try" in
14545 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14546 *) ac_try_echo=$ac_try;;
14548 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14549 $as_echo "$ac_try_echo") >&5
14550 (eval "$ac_link") 2>conftest.er1
14552 grep -v '^ *+' conftest.er1 >conftest.err
14554 cat conftest.err >&5
14555 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14556 (exit $ac_status); } && {
14557 test -z "$ac_c_werror_flag" ||
14558 test ! -s conftest.err
14559 } && test -s conftest$ac_exeext && {
14560 test "$cross_compiling" = yes ||
14561 $as_test_x conftest$ac_exeext
14563 ac_cv_lib_posix1e_acl_get_file=yes
14565 $as_echo "$as_me: failed program was:" >&5
14566 sed 's/^/| /' conftest.$ac_ext >&5
14568 ac_cv_lib_posix1e_acl_get_file=no
14571 rm -rf conftest.dSYM
14572 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14573 conftest$ac_exeext conftest.$ac_ext
14574 LIBS=$ac_check_lib_save_LIBS
14576 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix1e_acl_get_file" >&5
14577 $as_echo "$ac_cv_lib_posix1e_acl_get_file" >&6; }
14578 if test $ac_cv_lib_posix1e_acl_get_file = yes; then
14579 LIBS="$LIBS -lposix1e"
14581 { $as_echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
14582 $as_echo_n "checking for acl_get_file in -lacl... " >&6; }
14583 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
14584 $as_echo_n "(cached) " >&6
14586 ac_check_lib_save_LIBS=$LIBS
14588 cat >conftest.$ac_ext <<_ACEOF
14591 cat confdefs.h >>conftest.$ac_ext
14592 cat >>conftest.$ac_ext <<_ACEOF
14593 /* end confdefs.h. */
14595 /* Override any GCC internal prototype to avoid an error.
14596 Use char because int might match the return type of a GCC
14597 builtin and then its argument prototype would still apply. */
14601 char acl_get_file ();
14605 return acl_get_file ();
14610 rm -f conftest.$ac_objext conftest$ac_exeext
14611 if { (ac_try="$ac_link"
14612 case "(($ac_try" in
14613 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14614 *) ac_try_echo
=$ac_try;;
14616 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14617 $as_echo "$ac_try_echo") >&5
14618 (eval "$ac_link") 2>conftest.er1
14620 grep -v '^ *+' conftest.er1
>conftest.err
14622 cat conftest.err
>&5
14623 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14624 (exit $ac_status); } && {
14625 test -z "$ac_c_werror_flag" ||
14626 test ! -s conftest.err
14627 } && test -s conftest
$ac_exeext && {
14628 test "$cross_compiling" = yes ||
14629 $as_test_x conftest
$ac_exeext
14631 ac_cv_lib_acl_acl_get_file
=yes
14633 $as_echo "$as_me: failed program was:" >&5
14634 sed 's/^/| /' conftest.
$ac_ext >&5
14636 ac_cv_lib_acl_acl_get_file
=no
14639 rm -rf conftest.dSYM
14640 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14641 conftest
$ac_exeext conftest.
$ac_ext
14642 LIBS
=$ac_check_lib_save_LIBS
14644 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
14645 $as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
14646 if test $ac_cv_lib_acl_acl_get_file = yes; then
14648 { $as_echo "$as_me:$LINENO: checking for fgetxattr in -lattr" >&5
14649 $as_echo_n "checking for fgetxattr in -lattr... " >&6; }
14650 if test "${ac_cv_lib_attr_fgetxattr+set}" = set; then
14651 $as_echo_n "(cached) " >&6
14653 ac_check_lib_save_LIBS
=$LIBS
14654 LIBS
="-lattr $LIBS"
14655 cat >conftest.
$ac_ext <<_ACEOF
14658 cat confdefs.h
>>conftest.
$ac_ext
14659 cat >>conftest.
$ac_ext <<_ACEOF
14660 /* end confdefs.h. */
14662 /* Override any GCC internal prototype to avoid an error.
14663 Use char because int might match the return type of a GCC
14664 builtin and then its argument prototype would still apply. */
14672 return fgetxattr ();
14677 rm -f conftest.
$ac_objext conftest
$ac_exeext
14678 if { (ac_try
="$ac_link"
14679 case "(($ac_try" in
14680 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14681 *) ac_try_echo=$ac_try;;
14683 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14684 $as_echo "$ac_try_echo") >&5
14685 (eval "$ac_link") 2>conftest.er1
14687 grep -v '^ *+' conftest.er1 >conftest.err
14689 cat conftest.err >&5
14690 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14691 (exit $ac_status); } && {
14692 test -z "$ac_c_werror_flag" ||
14693 test ! -s conftest.err
14694 } && test -s conftest$ac_exeext && {
14695 test "$cross_compiling" = yes ||
14696 $as_test_x conftest$ac_exeext
14698 ac_cv_lib_attr_fgetxattr=yes
14700 $as_echo "$as_me: failed program was:" >&5
14701 sed 's/^/| /' conftest.$ac_ext >&5
14703 ac_cv_lib_attr_fgetxattr=no
14706 rm -rf conftest.dSYM
14707 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14708 conftest$ac_exeext conftest.$ac_ext
14709 LIBS=$ac_check_lib_save_LIBS
14711 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_attr_fgetxattr" >&5
14712 $as_echo "$ac_cv_lib_attr_fgetxattr" >&6; }
14713 if test $ac_cv_lib_attr_fgetxattr = yes; then
14714 LIBS="$LIBS -lattr"
14722 { $as_echo "$as_me:$LINENO: checking for POSIX ACL support" >&5
14723 $as_echo_n "checking for POSIX ACL support... " >&6; }
14724 cat >conftest.$ac_ext <<_ACEOF
14727 cat confdefs.h >>conftest.$ac_ext
14728 cat >>conftest.$ac_ext <<_ACEOF
14729 /* end confdefs.h. */
14731 #include <sys/types.h>
14732 #ifdef HAVE_SYS_ACL_H
14733 # include <sys/acl.h>
14739 acl = acl_get_file("foo", ACL_TYPE_ACCESS);
14740 acl_set_file("foo", ACL_TYPE_ACCESS, acl);
14746 rm -f conftest.$ac_objext conftest$ac_exeext
14747 if { (ac_try="$ac_link"
14748 case "(($ac_try" in
14749 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14750 *) ac_try_echo
=$ac_try;;
14752 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14753 $as_echo "$ac_try_echo") >&5
14754 (eval "$ac_link") 2>conftest.er1
14756 grep -v '^ *+' conftest.er1
>conftest.err
14758 cat conftest.err
>&5
14759 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14760 (exit $ac_status); } && {
14761 test -z "$ac_c_werror_flag" ||
14762 test ! -s conftest.err
14763 } && test -s conftest
$ac_exeext && {
14764 test "$cross_compiling" = yes ||
14765 $as_test_x conftest
$ac_exeext
14767 { $as_echo "$as_me:$LINENO: result: yes" >&5
14768 $as_echo "yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
14769 #define HAVE_POSIX_ACL 1
14773 $as_echo "$as_me: failed program was:" >&5
14774 sed 's/^/| /' conftest.
$ac_ext >&5
14776 { $as_echo "$as_me:$LINENO: result: no" >&5
14777 $as_echo "no" >&6; }
14780 rm -rf conftest.dSYM
14781 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14782 conftest
$ac_exeext conftest.
$ac_ext
14784 { $as_echo "$as_me:$LINENO: checking for Solaris ACL support" >&5
14785 $as_echo_n "checking for Solaris ACL support... " >&6; }
14786 cat >conftest.
$ac_ext <<_ACEOF
14789 cat confdefs.h
>>conftest.
$ac_ext
14790 cat >>conftest.
$ac_ext <<_ACEOF
14791 /* end confdefs.h. */
14793 #ifdef HAVE_SYS_ACL_H
14794 # include <sys/acl.h>
14799 acl("foo", GETACLCNT, 0, NULL);
14805 rm -f conftest.
$ac_objext conftest
$ac_exeext
14806 if { (ac_try
="$ac_link"
14807 case "(($ac_try" in
14808 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14809 *) ac_try_echo=$ac_try;;
14811 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14812 $as_echo "$ac_try_echo") >&5
14813 (eval "$ac_link") 2>conftest.er1
14815 grep -v '^ *+' conftest.er1 >conftest.err
14817 cat conftest.err >&5
14818 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14819 (exit $ac_status); } && {
14820 test -z "$ac_c_werror_flag" ||
14821 test ! -s conftest.err
14822 } && test -s conftest$ac_exeext && {
14823 test "$cross_compiling" = yes ||
14824 $as_test_x conftest$ac_exeext
14826 { $as_echo "$as_me:$LINENO: result: yes" >&5
14827 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14828 #define HAVE_SOLARIS_ACL 1
14832 $as_echo "$as_me: failed program was:" >&5
14833 sed 's/^/| /' conftest.$ac_ext >&5
14835 { $as_echo "$as_me:$LINENO: result: no" >&5
14836 $as_echo "no" >&6; }
14839 rm -rf conftest.dSYM
14840 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14841 conftest$ac_exeext conftest.$ac_ext
14843 { $as_echo "$as_me:$LINENO: checking for AIX ACL support" >&5
14844 $as_echo_n "checking for AIX ACL support... " >&6; }
14845 cat >conftest.$ac_ext <<_ACEOF
14848 cat confdefs.h >>conftest.$ac_ext
14849 cat >>conftest.$ac_ext <<_ACEOF
14850 /* end confdefs.h. */
14853 # include <stdlib.h>
14854 # include <stddef.h>
14856 #ifdef HAVE_SYS_ACL_H
14857 # include <sys/acl.h>
14859 #ifdef HAVE_SYS_ACCESS_H
14860 # include <sys/access.h>
14862 #define _ALL_SOURCE
14864 #include <sys/stat.h>
14867 struct acl *aclent;
14871 aclsize = sizeof(struct acl);
14872 aclent = (void *)malloc(aclsize);
14873 statacl("foo", STX_NORMAL, aclent, aclsize);
14879 rm -f conftest.$ac_objext conftest$ac_exeext
14880 if { (ac_try="$ac_link"
14881 case "(($ac_try" in
14882 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14883 *) ac_try_echo
=$ac_try;;
14885 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14886 $as_echo "$ac_try_echo") >&5
14887 (eval "$ac_link") 2>conftest.er1
14889 grep -v '^ *+' conftest.er1
>conftest.err
14891 cat conftest.err
>&5
14892 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14893 (exit $ac_status); } && {
14894 test -z "$ac_c_werror_flag" ||
14895 test ! -s conftest.err
14896 } && test -s conftest
$ac_exeext && {
14897 test "$cross_compiling" = yes ||
14898 $as_test_x conftest
$ac_exeext
14900 { $as_echo "$as_me:$LINENO: result: yes" >&5
14901 $as_echo "yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
14902 #define HAVE_AIX_ACL 1
14906 $as_echo "$as_me: failed program was:" >&5
14907 sed 's/^/| /' conftest.
$ac_ext >&5
14909 { $as_echo "$as_me:$LINENO: result: no" >&5
14910 $as_echo "no" >&6; }
14913 rm -rf conftest.dSYM
14914 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14915 conftest
$ac_exeext conftest.
$ac_ext
14917 { $as_echo "$as_me:$LINENO: result: yes" >&5
14918 $as_echo "yes" >&6; }
14921 { $as_echo "$as_me:$LINENO: checking --disable-gpm argument" >&5
14922 $as_echo_n "checking --disable-gpm argument... " >&6; }
14923 # Check whether --enable-gpm was given.
14924 if test "${enable_gpm+set}" = set; then
14925 enableval
=$enable_gpm;
14931 if test "$enable_gpm" = "yes"; then
14932 { $as_echo "$as_me:$LINENO: result: no" >&5
14933 $as_echo "no" >&6; }
14934 { $as_echo "$as_me:$LINENO: checking for gpm" >&5
14935 $as_echo_n "checking for gpm... " >&6; }
14936 if test "${vi_cv_have_gpm+set}" = set; then
14937 $as_echo_n "(cached) " >&6
14939 olibs
="$LIBS" ; LIBS
="-lgpm"
14940 cat >conftest.
$ac_ext <<_ACEOF
14943 cat confdefs.h
>>conftest.
$ac_ext
14944 cat >>conftest.
$ac_ext <<_ACEOF
14945 /* end confdefs.h. */
14947 #include <linux/keyboard.h>
14951 Gpm_GetLibVersion(NULL);
14956 rm -f conftest.
$ac_objext conftest
$ac_exeext
14957 if { (ac_try
="$ac_link"
14958 case "(($ac_try" in
14959 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14960 *) ac_try_echo=$ac_try;;
14962 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14963 $as_echo "$ac_try_echo") >&5
14964 (eval "$ac_link") 2>conftest.er1
14966 grep -v '^ *+' conftest.er1 >conftest.err
14968 cat conftest.err >&5
14969 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14970 (exit $ac_status); } && {
14971 test -z "$ac_c_werror_flag" ||
14972 test ! -s conftest.err
14973 } && test -s conftest$ac_exeext && {
14974 test "$cross_compiling" = yes ||
14975 $as_test_x conftest$ac_exeext
14979 $as_echo "$as_me: failed program was:" >&5
14980 sed 's/^/| /' conftest.$ac_ext >&5
14985 rm -rf conftest.dSYM
14986 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14987 conftest$ac_exeext conftest.$ac_ext
14991 { $as_echo "$as_me:$LINENO: result: $vi_cv_have_gpm" >&5
14992 $as_echo "$vi_cv_have_gpm" >&6; }
14993 if test $vi_cv_have_gpm = yes; then
14995 cat >>confdefs.h <<\_ACEOF
15001 { $as_echo "$as_me:$LINENO: result: yes" >&5
15002 $as_echo "yes" >&6; }
15005 { $as_echo "$as_me:$LINENO: checking --disable-sysmouse argument" >&5
15006 $as_echo_n "checking --disable-sysmouse argument... " >&6; }
15007 # Check whether --enable-sysmouse was given.
15008 if test "${enable_sysmouse+set}" = set; then
15009 enableval=$enable_sysmouse;
15011 enable_sysmouse="yes"
15015 if test "$enable_sysmouse" = "yes"; then
15016 { $as_echo "$as_me:$LINENO: result: no" >&5
15017 $as_echo "no" >&6; }
15018 { $as_echo "$as_me:$LINENO: checking for sysmouse" >&5
15019 $as_echo_n "checking for sysmouse... " >&6; }
15020 if test "${vi_cv_have_sysmouse+set}" = set; then
15021 $as_echo_n "(cached) " >&6
15023 cat >conftest.$ac_ext <<_ACEOF
15026 cat confdefs.h >>conftest.$ac_ext
15027 cat >>conftest.$ac_ext <<_ACEOF
15028 /* end confdefs.h. */
15029 #include <sys/consio.h>
15030 #include <signal.h>
15031 #include <sys/fbio.h>
15035 struct mouse_info mouse;
15036 mouse.operation = MOUSE_MODE;
15037 mouse.operation = MOUSE_SHOW;
15038 mouse.u.mode.mode = 0;
15039 mouse.u.mode.signal = SIGUSR2;
15044 rm -f conftest.$ac_objext conftest$ac_exeext
15045 if { (ac_try="$ac_link"
15046 case "(($ac_try" in
15047 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15048 *) ac_try_echo
=$ac_try;;
15050 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15051 $as_echo "$ac_try_echo") >&5
15052 (eval "$ac_link") 2>conftest.er1
15054 grep -v '^ *+' conftest.er1
>conftest.err
15056 cat conftest.err
>&5
15057 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15058 (exit $ac_status); } && {
15059 test -z "$ac_c_werror_flag" ||
15060 test ! -s conftest.err
15061 } && test -s conftest
$ac_exeext && {
15062 test "$cross_compiling" = yes ||
15063 $as_test_x conftest
$ac_exeext
15065 vi_cv_have_sysmouse
=yes
15067 $as_echo "$as_me: failed program was:" >&5
15068 sed 's/^/| /' conftest.
$ac_ext >&5
15070 vi_cv_have_sysmouse
=no
15073 rm -rf conftest.dSYM
15074 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15075 conftest
$ac_exeext conftest.
$ac_ext
15078 { $as_echo "$as_me:$LINENO: result: $vi_cv_have_sysmouse" >&5
15079 $as_echo "$vi_cv_have_sysmouse" >&6; }
15080 if test $vi_cv_have_sysmouse = yes; then
15081 cat >>confdefs.h
<<\_ACEOF
15082 #define HAVE_SYSMOUSE 1
15087 { $as_echo "$as_me:$LINENO: result: yes" >&5
15088 $as_echo "yes" >&6; }
15091 { $as_echo "$as_me:$LINENO: checking for rename" >&5
15092 $as_echo_n "checking for rename... " >&6; }
15093 cat >conftest.
$ac_ext <<_ACEOF
15096 cat confdefs.h
>>conftest.
$ac_ext
15097 cat >>conftest.
$ac_ext <<_ACEOF
15098 /* end confdefs.h. */
15103 rename("this", "that")
15108 rm -f conftest.
$ac_objext conftest
$ac_exeext
15109 if { (ac_try
="$ac_link"
15110 case "(($ac_try" in
15111 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15112 *) ac_try_echo=$ac_try;;
15114 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15115 $as_echo "$ac_try_echo") >&5
15116 (eval "$ac_link") 2>conftest.er1
15118 grep -v '^ *+' conftest.er1 >conftest.err
15120 cat conftest.err >&5
15121 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15122 (exit $ac_status); } && {
15123 test -z "$ac_c_werror_flag" ||
15124 test ! -s conftest.err
15125 } && test -s conftest$ac_exeext && {
15126 test "$cross_compiling" = yes ||
15127 $as_test_x conftest$ac_exeext
15129 { $as_echo "$as_me:$LINENO: result: yes" >&5
15130 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15131 #define HAVE_RENAME 1
15135 $as_echo "$as_me: failed program was:" >&5
15136 sed 's/^/| /' conftest.$ac_ext >&5
15138 { $as_echo "$as_me:$LINENO: result: no" >&5
15139 $as_echo "no" >&6; }
15142 rm -rf conftest.dSYM
15143 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15144 conftest$ac_exeext conftest.$ac_ext
15146 { $as_echo "$as_me:$LINENO: checking for sysctl" >&5
15147 $as_echo_n "checking for sysctl... " >&6; }
15148 cat >conftest.$ac_ext <<_ACEOF
15151 cat confdefs.h >>conftest.$ac_ext
15152 cat >>conftest.$ac_ext <<_ACEOF
15153 /* end confdefs.h. */
15154 #include <sys/types.h>
15155 #include <sys/sysctl.h>
15163 mib[1] = HW_USERMEM;
15165 (void)sysctl(mib, 2, &r, &len, (void *)0, (size_t)0);
15171 rm -f conftest.$ac_objext
15172 if { (ac_try="$ac_compile"
15173 case "(($ac_try" in
15174 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15175 *) ac_try_echo
=$ac_try;;
15177 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15178 $as_echo "$ac_try_echo") >&5
15179 (eval "$ac_compile") 2>conftest.er1
15181 grep -v '^ *+' conftest.er1
>conftest.err
15183 cat conftest.err
>&5
15184 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15185 (exit $ac_status); } && {
15186 test -z "$ac_c_werror_flag" ||
15187 test ! -s conftest.err
15188 } && test -s conftest.
$ac_objext; then
15189 { $as_echo "$as_me:$LINENO: result: yes" >&5
15190 $as_echo "yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
15191 #define HAVE_SYSCTL 1
15195 $as_echo "$as_me: failed program was:" >&5
15196 sed 's/^/| /' conftest.
$ac_ext >&5
15198 { $as_echo "$as_me:$LINENO: result: not usable" >&5
15199 $as_echo "not usable" >&6; }
15202 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15204 { $as_echo "$as_me:$LINENO: checking for sysinfo" >&5
15205 $as_echo_n "checking for sysinfo... " >&6; }
15206 cat >conftest.
$ac_ext <<_ACEOF
15209 cat confdefs.h
>>conftest.
$ac_ext
15210 cat >>conftest.
$ac_ext <<_ACEOF
15211 /* end confdefs.h. */
15212 #include <sys/types.h>
15213 #include <sys/sysinfo.h>
15217 struct sysinfo sinfo;
15220 (void)sysinfo(&sinfo);
15221 t = sinfo.totalram;
15227 rm -f conftest.
$ac_objext
15228 if { (ac_try
="$ac_compile"
15229 case "(($ac_try" in
15230 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15231 *) ac_try_echo=$ac_try;;
15233 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15234 $as_echo "$ac_try_echo") >&5
15235 (eval "$ac_compile") 2>conftest.er1
15237 grep -v '^ *+' conftest.er1 >conftest.err
15239 cat conftest.err >&5
15240 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15241 (exit $ac_status); } && {
15242 test -z "$ac_c_werror_flag" ||
15243 test ! -s conftest.err
15244 } && test -s conftest.$ac_objext; then
15245 { $as_echo "$as_me:$LINENO: result: yes" >&5
15246 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15247 #define HAVE_SYSINFO 1
15251 $as_echo "$as_me: failed program was:" >&5
15252 sed 's/^/| /' conftest.$ac_ext >&5
15254 { $as_echo "$as_me:$LINENO: result: not usable" >&5
15255 $as_echo "not usable" >&6; }
15258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15260 { $as_echo "$as_me:$LINENO: checking for sysinfo.mem_unit" >&5
15261 $as_echo_n "checking for sysinfo.mem_unit... " >&6; }
15262 cat >conftest.$ac_ext <<_ACEOF
15265 cat confdefs.h >>conftest.$ac_ext
15266 cat >>conftest.$ac_ext <<_ACEOF
15267 /* end confdefs.h. */
15268 #include <sys/types.h>
15269 #include <sys/sysinfo.h>
15273 struct sysinfo sinfo;
15274 sinfo.mem_unit = 1;
15280 rm -f conftest.$ac_objext
15281 if { (ac_try="$ac_compile"
15282 case "(($ac_try" in
15283 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15284 *) ac_try_echo
=$ac_try;;
15286 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15287 $as_echo "$ac_try_echo") >&5
15288 (eval "$ac_compile") 2>conftest.er1
15290 grep -v '^ *+' conftest.er1
>conftest.err
15292 cat conftest.err
>&5
15293 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15294 (exit $ac_status); } && {
15295 test -z "$ac_c_werror_flag" ||
15296 test ! -s conftest.err
15297 } && test -s conftest.
$ac_objext; then
15298 { $as_echo "$as_me:$LINENO: result: yes" >&5
15299 $as_echo "yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
15300 #define HAVE_SYSINFO_MEM_UNIT 1
15304 $as_echo "$as_me: failed program was:" >&5
15305 sed 's/^/| /' conftest.
$ac_ext >&5
15307 { $as_echo "$as_me:$LINENO: result: no" >&5
15308 $as_echo "no" >&6; }
15311 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15313 { $as_echo "$as_me:$LINENO: checking for sysconf" >&5
15314 $as_echo_n "checking for sysconf... " >&6; }
15315 cat >conftest.
$ac_ext <<_ACEOF
15318 cat confdefs.h
>>conftest.
$ac_ext
15319 cat >>conftest.
$ac_ext <<_ACEOF
15320 /* end confdefs.h. */
15321 #include <unistd.h>
15325 (void)sysconf(_SC_PAGESIZE);
15326 (void)sysconf(_SC_PHYS_PAGES);
15332 rm -f conftest.
$ac_objext
15333 if { (ac_try
="$ac_compile"
15334 case "(($ac_try" in
15335 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15336 *) ac_try_echo=$ac_try;;
15338 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15339 $as_echo "$ac_try_echo") >&5
15340 (eval "$ac_compile") 2>conftest.er1
15342 grep -v '^ *+' conftest.er1 >conftest.err
15344 cat conftest.err >&5
15345 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15346 (exit $ac_status); } && {
15347 test -z "$ac_c_werror_flag" ||
15348 test ! -s conftest.err
15349 } && test -s conftest.$ac_objext; then
15350 { $as_echo "$as_me:$LINENO: result: yes" >&5
15351 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15352 #define HAVE_SYSCONF 1
15356 $as_echo "$as_me: failed program was:" >&5
15357 sed 's/^/| /' conftest.$ac_ext >&5
15359 { $as_echo "$as_me:$LINENO: result: not usable" >&5
15360 $as_echo "not usable" >&6; }
15363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15366 { $as_echo "$as_me:$LINENO: checking size of int" >&5
15367 $as_echo_n "checking size of int... " >&6; }
15368 if test "${ac_cv_sizeof_int+set}" = set; then
15369 $as_echo_n "(cached) " >&6
15371 if test "$cross_compiling" = yes; then
15372 { { $as_echo "$as_me:$LINENO: error: failed to compile test program" >&5
15373 $as_echo "$as_me: error: failed to compile test program" >&2;}
15374 { (exit 1); exit 1; }; }
15376 cat >conftest.$ac_ext <<_ACEOF
15379 cat confdefs.h >>conftest.$ac_ext
15380 cat >>conftest.$ac_ext <<_ACEOF
15381 /* end confdefs.h. */
15385 # include <stdlib.h>
15386 # include <stddef.h>
15390 FILE *f=fopen("conftestval", "w");
15392 fprintf(f, "%d\n", (int)sizeof(int));
15396 rm -f conftest$ac_exeext
15397 if { (ac_try="$ac_link"
15398 case "(($ac_try" in
15399 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15400 *) ac_try_echo
=$ac_try;;
15402 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15403 $as_echo "$ac_try_echo") >&5
15404 (eval "$ac_link") 2>&5
15406 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15407 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
15408 { (case "(($ac_try" in
15409 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15410 *) ac_try_echo=$ac_try;;
15412 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15413 $as_echo "$ac_try_echo") >&5
15414 (eval "$ac_try") 2>&5
15416 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15417 (exit $ac_status); }; }; then
15418 ac_cv_sizeof_int=`cat conftestval
`
15420 $as_echo "$as_me: program exited with status $ac_status" >&5
15421 $as_echo "$as_me: failed program was:" >&5
15422 sed 's/^/| /' conftest.$ac_ext >&5
15424 ( exit $ac_status )
15427 rm -rf conftest.dSYM
15428 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15434 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15435 $as_echo "$ac_cv_sizeof_int" >&6; }
15436 cat >>confdefs.h <<_ACEOF
15437 #define SIZEOF_INT $ac_cv_sizeof_int
15444 #include "confdefs.h"
15445 #ifdef HAVE_STRING_H
15446 # include <string.h>
15449 # include <stdlib.h>
15450 # include <stddef.h>
15454 strcpy(buf, "abcdefghi");
15455 mch_memmove(buf, buf + 2, 3);
15456 if (strncmp(buf, "ababcf", 6))
15458 strcpy(buf, "abcdefghi");
15459 mch_memmove(buf + 2, buf, 3);
15460 if (strncmp(buf, "cdedef", 6))
15462 exit(0); /* libc version works properly. */
15465 { $as_echo "$as_me:$LINENO: checking whether memmove handles overlaps" >&5
15466 $as_echo_n "checking whether memmove handles overlaps... " >&6; }
15467 if test "${vim_cv_memmove_handles_overlap+set}" = set; then
15468 $as_echo_n "(cached) " >&6
15471 if test "$cross_compiling" = yes; then
15473 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_memmove_handles_overlap'" >&5
15474 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_memmove_handles_overlap'" >&2;}
15475 { (exit 1); exit 1; }; }
15478 cat >conftest.$ac_ext <<_ACEOF
15479 #define mch_memmove(s,d,l) memmove(d,s,l) $bcopy_test_prog
15481 rm -f conftest$ac_exeext
15482 if { (ac_try="$ac_link"
15483 case "(($ac_try" in
15484 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15485 *) ac_try_echo
=$ac_try;;
15487 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15488 $as_echo "$ac_try_echo") >&5
15489 (eval "$ac_link") 2>&5
15491 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15492 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
15493 { (case "(($ac_try" in
15494 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15495 *) ac_try_echo=$ac_try;;
15497 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15498 $as_echo "$ac_try_echo") >&5
15499 (eval "$ac_try") 2>&5
15501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15502 (exit $ac_status); }; }; then
15504 vim_cv_memmove_handles_overlap=yes
15507 $as_echo "$as_me: program exited with status $ac_status" >&5
15508 $as_echo "$as_me: failed program was:" >&5
15509 sed 's/^/| /' conftest.$ac_ext >&5
15511 ( exit $ac_status )
15513 vim_cv_memmove_handles_overlap=no
15516 rm -rf conftest.dSYM
15517 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15523 { $as_echo "$as_me:$LINENO: result: $vim_cv_memmove_handles_overlap" >&5
15524 $as_echo "$vim_cv_memmove_handles_overlap" >&6; }
15526 if test "x$vim_cv_memmove_handles_overlap" = "xyes" ; then
15527 cat >>confdefs.h <<\_ACEOF
15528 #define USEMEMMOVE 1
15532 { $as_echo "$as_me:$LINENO: checking whether bcopy handles overlaps" >&5
15533 $as_echo_n "checking whether bcopy handles overlaps... " >&6; }
15534 if test "${vim_cv_bcopy_handles_overlap+set}" = set; then
15535 $as_echo_n "(cached) " >&6
15538 if test "$cross_compiling" = yes; then
15540 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_bcopy_handles_overlap'" >&5
15541 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_bcopy_handles_overlap'" >&2;}
15542 { (exit 1); exit 1; }; }
15545 cat >conftest.$ac_ext <<_ACEOF
15546 #define mch_bcopy(s,d,l) bcopy(d,s,l) $bcopy_test_prog
15548 rm -f conftest$ac_exeext
15549 if { (ac_try="$ac_link"
15550 case "(($ac_try" in
15551 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15552 *) ac_try_echo
=$ac_try;;
15554 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15555 $as_echo "$ac_try_echo") >&5
15556 (eval "$ac_link") 2>&5
15558 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15559 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
15560 { (case "(($ac_try" in
15561 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15562 *) ac_try_echo=$ac_try;;
15564 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15565 $as_echo "$ac_try_echo") >&5
15566 (eval "$ac_try") 2>&5
15568 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15569 (exit $ac_status); }; }; then
15571 vim_cv_bcopy_handles_overlap=yes
15574 $as_echo "$as_me: program exited with status $ac_status" >&5
15575 $as_echo "$as_me: failed program was:" >&5
15576 sed 's/^/| /' conftest.$ac_ext >&5
15578 ( exit $ac_status )
15580 vim_cv_bcopy_handles_overlap=no
15583 rm -rf conftest.dSYM
15584 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15590 { $as_echo "$as_me:$LINENO: result: $vim_cv_bcopy_handles_overlap" >&5
15591 $as_echo "$vim_cv_bcopy_handles_overlap" >&6; }
15593 if test "x$vim_cv_bcopy_handles_overlap" = "xyes" ; then
15594 cat >>confdefs.h <<\_ACEOF
15599 { $as_echo "$as_me:$LINENO: checking whether memcpy handles overlaps" >&5
15600 $as_echo_n "checking whether memcpy handles overlaps... " >&6; }
15601 if test "${vim_cv_memcpy_handles_overlap+set}" = set; then
15602 $as_echo_n "(cached) " >&6
15605 if test "$cross_compiling" = yes; then
15607 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_memcpy_handles_overlap'" >&5
15608 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_memcpy_handles_overlap'" >&2;}
15609 { (exit 1); exit 1; }; }
15612 cat >conftest.$ac_ext <<_ACEOF
15613 #define mch_memcpy(s,d,l) memcpy(d,s,l) $bcopy_test_prog
15615 rm -f conftest$ac_exeext
15616 if { (ac_try="$ac_link"
15617 case "(($ac_try" in
15618 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15619 *) ac_try_echo
=$ac_try;;
15621 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15622 $as_echo "$ac_try_echo") >&5
15623 (eval "$ac_link") 2>&5
15625 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15626 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
15627 { (case "(($ac_try" in
15628 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15629 *) ac_try_echo=$ac_try;;
15631 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15632 $as_echo "$ac_try_echo") >&5
15633 (eval "$ac_try") 2>&5
15635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15636 (exit $ac_status); }; }; then
15638 vim_cv_memcpy_handles_overlap=yes
15641 $as_echo "$as_me: program exited with status $ac_status" >&5
15642 $as_echo "$as_me: failed program was:" >&5
15643 sed 's/^/| /' conftest.$ac_ext >&5
15645 ( exit $ac_status )
15647 vim_cv_memcpy_handles_overlap=no
15650 rm -rf conftest.dSYM
15651 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15657 { $as_echo "$as_me:$LINENO: result: $vim_cv_memcpy_handles_overlap" >&5
15658 $as_echo "$vim_cv_memcpy_handles_overlap" >&6; }
15660 if test "x$vim_cv_memcpy_handles_overlap" = "xyes" ; then
15661 cat >>confdefs.h <<\_ACEOF
15662 #define USEMEMCPY 1
15671 if test "$enable_multibyte" = "yes"; then
15672 cflags_save=$CFLAGS
15673 ldflags_save=$LDFLAGS
15674 if test -n "$x_includes" ; then
15675 CFLAGS="$CFLAGS -I$x_includes"
15676 LDFLAGS="$X_LIBS $LDFLAGS -lX11"
15677 { $as_echo "$as_me:$LINENO: checking whether X_LOCALE needed" >&5
15678 $as_echo_n "checking whether X_LOCALE needed... " >&6; }
15679 cat >conftest.$ac_ext <<_ACEOF
15682 cat confdefs.h >>conftest.$ac_ext
15683 cat >>conftest.$ac_ext <<_ACEOF
15684 /* end confdefs.h. */
15685 #include <X11/Xlocale.h>
15694 rm -f conftest.$ac_objext
15695 if { (ac_try="$ac_compile"
15696 case "(($ac_try" in
15697 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15698 *) ac_try_echo
=$ac_try;;
15700 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15701 $as_echo "$ac_try_echo") >&5
15702 (eval "$ac_compile") 2>conftest.er1
15704 grep -v '^ *+' conftest.er1
>conftest.err
15706 cat conftest.err
>&5
15707 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15708 (exit $ac_status); } && {
15709 test -z "$ac_c_werror_flag" ||
15710 test ! -s conftest.err
15711 } && test -s conftest.
$ac_objext; then
15712 cat >conftest.
$ac_ext <<_ACEOF
15715 cat confdefs.h
>>conftest.
$ac_ext
15716 cat >>conftest.
$ac_ext <<_ACEOF
15717 /* end confdefs.h. */
15719 /* Override any GCC internal prototype to avoid an error.
15720 Use char because int might match the return type of a GCC
15721 builtin and then its argument prototype would still apply. */
15725 char _Xsetlocale ();
15729 return _Xsetlocale ();
15734 rm -f conftest.
$ac_objext conftest
$ac_exeext
15735 if { (ac_try
="$ac_link"
15736 case "(($ac_try" in
15737 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15738 *) ac_try_echo=$ac_try;;
15740 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15741 $as_echo "$ac_try_echo") >&5
15742 (eval "$ac_link") 2>conftest.er1
15744 grep -v '^ *+' conftest.er1 >conftest.err
15746 cat conftest.err >&5
15747 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15748 (exit $ac_status); } && {
15749 test -z "$ac_c_werror_flag" ||
15750 test ! -s conftest.err
15751 } && test -s conftest$ac_exeext && {
15752 test "$cross_compiling" = yes ||
15753 $as_test_x conftest$ac_exeext
15755 { $as_echo "$as_me:$LINENO: result: yes" >&5
15756 $as_echo "yes" >&6; }
15757 cat >>confdefs.h <<\_ACEOF
15762 $as_echo "$as_me: failed program was:" >&5
15763 sed 's/^/| /' conftest.$ac_ext >&5
15765 { $as_echo "$as_me:$LINENO: result: no" >&5
15766 $as_echo "no" >&6; }
15769 rm -rf conftest.dSYM
15770 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15771 conftest$ac_exeext conftest.$ac_ext
15773 $as_echo "$as_me: failed program was:" >&5
15774 sed 's/^/| /' conftest.$ac_ext >&5
15776 { $as_echo "$as_me:$LINENO: result: no" >&5
15777 $as_echo "no" >&6; }
15780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15782 CFLAGS=$cflags_save
15783 LDFLAGS=$ldflags_save
15786 { $as_echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
15787 $as_echo_n "checking for _xpg4_setrunelocale in -lxpg4... " >&6; }
15788 if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
15789 $as_echo_n "(cached) " >&6
15791 ac_check_lib_save_LIBS=$LIBS
15792 LIBS="-lxpg4 $LIBS"
15793 cat >conftest.$ac_ext <<_ACEOF
15796 cat confdefs.h >>conftest.$ac_ext
15797 cat >>conftest.$ac_ext <<_ACEOF
15798 /* end confdefs.h. */
15800 /* Override any GCC internal prototype to avoid an error.
15801 Use char because int might match the return type of a GCC
15802 builtin and then its argument prototype would still apply. */
15806 char _xpg4_setrunelocale ();
15810 return _xpg4_setrunelocale ();
15815 rm -f conftest.$ac_objext conftest$ac_exeext
15816 if { (ac_try="$ac_link"
15817 case "(($ac_try" in
15818 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15819 *) ac_try_echo
=$ac_try;;
15821 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15822 $as_echo "$ac_try_echo") >&5
15823 (eval "$ac_link") 2>conftest.er1
15825 grep -v '^ *+' conftest.er1
>conftest.err
15827 cat conftest.err
>&5
15828 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15829 (exit $ac_status); } && {
15830 test -z "$ac_c_werror_flag" ||
15831 test ! -s conftest.err
15832 } && test -s conftest
$ac_exeext && {
15833 test "$cross_compiling" = yes ||
15834 $as_test_x conftest
$ac_exeext
15836 ac_cv_lib_xpg4__xpg4_setrunelocale
=yes
15838 $as_echo "$as_me: failed program was:" >&5
15839 sed 's/^/| /' conftest.
$ac_ext >&5
15841 ac_cv_lib_xpg4__xpg4_setrunelocale
=no
15844 rm -rf conftest.dSYM
15845 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15846 conftest
$ac_exeext conftest.
$ac_ext
15847 LIBS
=$ac_check_lib_save_LIBS
15849 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
15850 $as_echo "$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6; }
15851 if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
15852 LIBS
="$LIBS -lxpg4"
15856 { $as_echo "$as_me:$LINENO: checking how to create tags" >&5
15857 $as_echo_n "checking how to create tags... " >&6; }
15858 test -f tags
&& mv tags tags.save
15859 if (eval ctags
--version /dev
/null |
grep Exuberant
) < /dev
/null
1>&5 2>&1; then
15860 TAGPRG
="ctags -I INIT+ --fields=+S"
15862 (eval etags
/dev
/null
) < /dev
/null
1>&5 2>&1 && TAGPRG
="etags"
15863 (eval etags
-c /dev
/null
) < /dev
/null
1>&5 2>&1 && TAGPRG
="etags -c"
15864 (eval ctags
/dev
/null
) < /dev
/null
1>&5 2>&1 && TAGPRG
="ctags"
15865 (eval ctags
-t /dev
/null
) < /dev
/null
1>&5 2>&1 && TAGPRG
="ctags -t"
15866 (eval ctags
-ts /dev
/null
) < /dev
/null
1>&5 2>&1 && TAGPRG
="ctags -ts"
15867 (eval ctags
-tvs /dev
/null
) < /dev
/null
1>&5 2>&1 && TAGPRG
="ctags -tvs"
15868 (eval ctags
-i+m
/dev
/null
) < /dev
/null
1>&5 2>&1 && TAGPRG
="ctags -i+m"
15870 test -f tags.save
&& mv tags.save tags
15871 { $as_echo "$as_me:$LINENO: result: $TAGPRG" >&5
15872 $as_echo "$TAGPRG" >&6; }
15874 { $as_echo "$as_me:$LINENO: checking how to run man with a section nr" >&5
15875 $as_echo_n "checking how to run man with a section nr... " >&6; }
15877 (eval MANPAGER
=cat PAGER
=cat man
-s 2 read) < /dev
/null
> /dev
/null
2>&5 && MANDEF
="man -s"
15878 { $as_echo "$as_me:$LINENO: result: $MANDEF" >&5
15879 $as_echo "$MANDEF" >&6; }
15880 if test "$MANDEF" = "man -s"; then
15881 cat >>confdefs.h
<<\_ACEOF
15887 { $as_echo "$as_me:$LINENO: checking --disable-nls argument" >&5
15888 $as_echo_n "checking --disable-nls argument... " >&6; }
15889 # Check whether --enable-nls was given.
15890 if test "${enable_nls+set}" = set; then
15891 enableval
=$enable_nls;
15897 if test "$enable_nls" = "yes"; then
15898 { $as_echo "$as_me:$LINENO: result: no" >&5
15899 $as_echo "no" >&6; }
15901 INSTALL_LANGS
=install-languages
15903 INSTALL_TOOL_LANGS
=install-tool-languages
15906 # Extract the first word of "msgfmt", so it can be a program name with args.
15907 set dummy msgfmt
; ac_word
=$2
15908 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
15909 $as_echo_n "checking for $ac_word... " >&6; }
15910 if test "${ac_cv_prog_MSGFMT+set}" = set; then
15911 $as_echo_n "(cached) " >&6
15913 if test -n "$MSGFMT"; then
15914 ac_cv_prog_MSGFMT
="$MSGFMT" # Let the user override the test.
15916 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15917 for as_dir
in $PATH
15920 test -z "$as_dir" && as_dir
=.
15921 for ac_exec_ext
in '' $ac_executable_extensions; do
15922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15923 ac_cv_prog_MSGFMT
="msgfmt"
15924 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15933 MSGFMT
=$ac_cv_prog_MSGFMT
15934 if test -n "$MSGFMT"; then
15935 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
15936 $as_echo "$MSGFMT" >&6; }
15938 { $as_echo "$as_me:$LINENO: result: no" >&5
15939 $as_echo "no" >&6; }
15943 { $as_echo "$as_me:$LINENO: checking for NLS" >&5
15944 $as_echo_n "checking for NLS... " >&6; }
15945 if test -f po
/Makefile
; then
15947 if test -n "$MSGFMT"; then
15948 cat >conftest.
$ac_ext <<_ACEOF
15951 cat confdefs.h
>>conftest.
$ac_ext
15952 cat >>conftest.
$ac_ext <<_ACEOF
15953 /* end confdefs.h. */
15954 #include <libintl.h>
15963 rm -f conftest.
$ac_objext conftest
$ac_exeext
15964 if { (ac_try
="$ac_link"
15965 case "(($ac_try" in
15966 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15967 *) ac_try_echo=$ac_try;;
15969 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15970 $as_echo "$ac_try_echo") >&5
15971 (eval "$ac_link") 2>conftest.er1
15973 grep -v '^ *+' conftest.er1 >conftest.err
15975 cat conftest.err >&5
15976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15977 (exit $ac_status); } && {
15978 test -z "$ac_c_werror_flag" ||
15979 test ! -s conftest.err
15980 } && test -s conftest$ac_exeext && {
15981 test "$cross_compiling" = yes ||
15982 $as_test_x conftest$ac_exeext
15984 { $as_echo "$as_me:$LINENO: result: gettext() works" >&5
15985 $as_echo "gettext() works" >&6; }; have_gettext="yes"
15987 $as_echo "$as_me: failed program was:" >&5
15988 sed 's/^/| /' conftest.$ac_ext >&5
15991 LIBS="$LIBS -lintl"
15992 cat >conftest.$ac_ext <<_ACEOF
15995 cat confdefs.h >>conftest.$ac_ext
15996 cat >>conftest.$ac_ext <<_ACEOF
15997 /* end confdefs.h. */
15998 #include <libintl.h>
16007 rm -f conftest.$ac_objext conftest$ac_exeext
16008 if { (ac_try="$ac_link"
16009 case "(($ac_try" in
16010 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16011 *) ac_try_echo
=$ac_try;;
16013 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16014 $as_echo "$ac_try_echo") >&5
16015 (eval "$ac_link") 2>conftest.er1
16017 grep -v '^ *+' conftest.er1
>conftest.err
16019 cat conftest.err
>&5
16020 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16021 (exit $ac_status); } && {
16022 test -z "$ac_c_werror_flag" ||
16023 test ! -s conftest.err
16024 } && test -s conftest
$ac_exeext && {
16025 test "$cross_compiling" = yes ||
16026 $as_test_x conftest
$ac_exeext
16028 { $as_echo "$as_me:$LINENO: result: gettext() works with -lintl" >&5
16029 $as_echo "gettext() works with -lintl" >&6; }; have_gettext
="yes"
16031 $as_echo "$as_me: failed program was:" >&5
16032 sed 's/^/| /' conftest.
$ac_ext >&5
16034 { $as_echo "$as_me:$LINENO: result: gettext() doesn't work" >&5
16035 $as_echo "gettext() doesn't work" >&6; };
16039 rm -rf conftest.dSYM
16040 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16041 conftest
$ac_exeext conftest.
$ac_ext
16044 rm -rf conftest.dSYM
16045 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16046 conftest
$ac_exeext conftest.
$ac_ext
16048 { $as_echo "$as_me:$LINENO: result: msgfmt not found - disabled" >&5
16049 $as_echo "msgfmt not found - disabled" >&6; };
16051 if test $have_gettext = "yes"; then
16052 cat >>confdefs.h
<<\_ACEOF
16053 #define HAVE_GETTEXT 1
16059 for ac_func
in bind_textdomain_codeset
16061 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16062 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16063 $as_echo_n "checking for $ac_func... " >&6; }
16064 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16065 $as_echo_n "(cached) " >&6
16067 cat >conftest.
$ac_ext <<_ACEOF
16070 cat confdefs.h
>>conftest.
$ac_ext
16071 cat >>conftest.
$ac_ext <<_ACEOF
16072 /* end confdefs.h. */
16073 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16074 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16075 #define $ac_func innocuous_$ac_func
16077 /* System header to define __stub macros and hopefully few prototypes,
16078 which can conflict with char $ac_func (); below.
16079 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16080 <limits.h> exists even on freestanding compilers. */
16083 # include <limits.h>
16085 # include <assert.h>
16090 /* Override any GCC internal prototype to avoid an error.
16091 Use char because int might match the return type of a GCC
16092 builtin and then its argument prototype would still apply. */
16097 /* The GNU C library defines this for functions which it implements
16098 to always fail with ENOSYS. Some functions are actually named
16099 something starting with __ and the normal name is an alias. */
16100 #if defined __stub_$ac_func || defined __stub___$ac_func
16107 return $ac_func ();
16112 rm -f conftest.
$ac_objext conftest
$ac_exeext
16113 if { (ac_try
="$ac_link"
16114 case "(($ac_try" in
16115 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16116 *) ac_try_echo=$ac_try;;
16118 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16119 $as_echo "$ac_try_echo") >&5
16120 (eval "$ac_link") 2>conftest.er1
16122 grep -v '^ *+' conftest.er1 >conftest.err
16124 cat conftest.err >&5
16125 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16126 (exit $ac_status); } && {
16127 test -z "$ac_c_werror_flag" ||
16128 test ! -s conftest.err
16129 } && test -s conftest$ac_exeext && {
16130 test "$cross_compiling" = yes ||
16131 $as_test_x conftest$ac_exeext
16133 eval "$as_ac_var=yes"
16135 $as_echo "$as_me: failed program was:" >&5
16136 sed 's/^/| /' conftest.$ac_ext >&5
16138 eval "$as_ac_var=no"
16141 rm -rf conftest.dSYM
16142 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16143 conftest$ac_exeext conftest.$ac_ext
16145 ac_res=`eval 'as_val=${'$as_ac_var'}
16146 $as_echo "$as_val"'`
16147 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16148 $as_echo "$ac_res" >&6; }
16149 if test `eval 'as_val=${'$as_ac_var'}
16150 $as_echo "$as_val"'` = yes; then
16151 cat >>confdefs.h <<_ACEOF
16152 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
16158 { $as_echo "$as_me:$LINENO: checking for _nl_msg_cat_cntr" >&5
16159 $as_echo_n "checking for _nl_msg_cat_cntr... " >&6; }
16160 cat >conftest.$ac_ext <<_ACEOF
16163 cat confdefs.h >>conftest.$ac_ext
16164 cat >>conftest.$ac_ext <<_ACEOF
16165 /* end confdefs.h. */
16166 #include <libintl.h>
16167 extern int _nl_msg_cat_cntr;
16171 ++_nl_msg_cat_cntr;
16176 rm -f conftest.$ac_objext conftest$ac_exeext
16177 if { (ac_try="$ac_link"
16178 case "(($ac_try" in
16179 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16180 *) ac_try_echo
=$ac_try;;
16182 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16183 $as_echo "$ac_try_echo") >&5
16184 (eval "$ac_link") 2>conftest.er1
16186 grep -v '^ *+' conftest.er1
>conftest.err
16188 cat conftest.err
>&5
16189 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16190 (exit $ac_status); } && {
16191 test -z "$ac_c_werror_flag" ||
16192 test ! -s conftest.err
16193 } && test -s conftest
$ac_exeext && {
16194 test "$cross_compiling" = yes ||
16195 $as_test_x conftest
$ac_exeext
16197 { $as_echo "$as_me:$LINENO: result: yes" >&5
16198 $as_echo "yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
16199 #define HAVE_NL_MSG_CAT_CNTR 1
16203 $as_echo "$as_me: failed program was:" >&5
16204 sed 's/^/| /' conftest.
$ac_ext >&5
16206 { $as_echo "$as_me:$LINENO: result: no" >&5
16207 $as_echo "no" >&6; }
16210 rm -rf conftest.dSYM
16211 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16212 conftest
$ac_exeext conftest.
$ac_ext
16215 { $as_echo "$as_me:$LINENO: result: no \"po/Makefile\" - disabled" >&5
16216 $as_echo "no \"po/Makefile\" - disabled" >&6; };
16219 { $as_echo "$as_me:$LINENO: result: yes" >&5
16220 $as_echo "yes" >&6; }
16223 if test "${ac_cv_header_dlfcn_h+set}" = set; then
16224 { $as_echo "$as_me:$LINENO: checking for dlfcn.h" >&5
16225 $as_echo_n "checking for dlfcn.h... " >&6; }
16226 if test "${ac_cv_header_dlfcn_h+set}" = set; then
16227 $as_echo_n "(cached) " >&6
16229 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
16230 $as_echo "$ac_cv_header_dlfcn_h" >&6; }
16232 # Is the header compilable?
16233 { $as_echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
16234 $as_echo_n "checking dlfcn.h usability... " >&6; }
16235 cat >conftest.
$ac_ext <<_ACEOF
16238 cat confdefs.h
>>conftest.
$ac_ext
16239 cat >>conftest.
$ac_ext <<_ACEOF
16240 /* end confdefs.h. */
16241 $ac_includes_default
16244 rm -f conftest.
$ac_objext
16245 if { (ac_try
="$ac_compile"
16246 case "(($ac_try" in
16247 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16248 *) ac_try_echo=$ac_try;;
16250 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16251 $as_echo "$ac_try_echo") >&5
16252 (eval "$ac_compile") 2>conftest.er1
16254 grep -v '^ *+' conftest.er1 >conftest.err
16256 cat conftest.err >&5
16257 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16258 (exit $ac_status); } && {
16259 test -z "$ac_c_werror_flag" ||
16260 test ! -s conftest.err
16261 } && test -s conftest.$ac_objext; then
16262 ac_header_compiler=yes
16264 $as_echo "$as_me: failed program was:" >&5
16265 sed 's/^/| /' conftest.$ac_ext >&5
16267 ac_header_compiler=no
16270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16271 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16272 $as_echo "$ac_header_compiler" >&6; }
16274 # Is the header present?
16275 { $as_echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
16276 $as_echo_n "checking dlfcn.h presence... " >&6; }
16277 cat >conftest.$ac_ext <<_ACEOF
16280 cat confdefs.h >>conftest.$ac_ext
16281 cat >>conftest.$ac_ext <<_ACEOF
16282 /* end confdefs.h. */
16285 if { (ac_try="$ac_cpp conftest.$ac_ext"
16286 case "(($ac_try" in
16287 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16288 *) ac_try_echo
=$ac_try;;
16290 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16291 $as_echo "$ac_try_echo") >&5
16292 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16294 grep -v '^ *+' conftest.er1
>conftest.err
16296 cat conftest.err
>&5
16297 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16298 (exit $ac_status); } >/dev
/null
&& {
16299 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16300 test ! -s conftest.err
16302 ac_header_preproc
=yes
16304 $as_echo "$as_me: failed program was:" >&5
16305 sed 's/^/| /' conftest.
$ac_ext >&5
16307 ac_header_preproc
=no
16310 rm -f conftest.err conftest.
$ac_ext
16311 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16312 $as_echo "$ac_header_preproc" >&6; }
16314 # So? What about this header?
16315 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16317 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
16318 $as_echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16319 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5
16320 $as_echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;}
16321 ac_header_preproc
=yes
16324 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
16325 $as_echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
16326 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5
16327 $as_echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;}
16328 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5
16329 $as_echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;}
16330 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5
16331 $as_echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;}
16332 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
16333 $as_echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
16334 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5
16335 $as_echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;}
16339 { $as_echo "$as_me:$LINENO: checking for dlfcn.h" >&5
16340 $as_echo_n "checking for dlfcn.h... " >&6; }
16341 if test "${ac_cv_header_dlfcn_h+set}" = set; then
16342 $as_echo_n "(cached) " >&6
16344 ac_cv_header_dlfcn_h
=$ac_header_preproc
16346 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
16347 $as_echo "$ac_cv_header_dlfcn_h" >&6; }
16350 if test $ac_cv_header_dlfcn_h = yes; then
16353 if test "${ac_cv_header_dl_h+set}" = set; then
16354 { $as_echo "$as_me:$LINENO: checking for dl.h" >&5
16355 $as_echo_n "checking for dl.h... " >&6; }
16356 if test "${ac_cv_header_dl_h+set}" = set; then
16357 $as_echo_n "(cached) " >&6
16359 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5
16360 $as_echo "$ac_cv_header_dl_h" >&6; }
16362 # Is the header compilable?
16363 { $as_echo "$as_me:$LINENO: checking dl.h usability" >&5
16364 $as_echo_n "checking dl.h usability... " >&6; }
16365 cat >conftest.
$ac_ext <<_ACEOF
16368 cat confdefs.h
>>conftest.
$ac_ext
16369 cat >>conftest.
$ac_ext <<_ACEOF
16370 /* end confdefs.h. */
16371 $ac_includes_default
16374 rm -f conftest.
$ac_objext
16375 if { (ac_try
="$ac_compile"
16376 case "(($ac_try" in
16377 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16378 *) ac_try_echo=$ac_try;;
16380 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16381 $as_echo "$ac_try_echo") >&5
16382 (eval "$ac_compile") 2>conftest.er1
16384 grep -v '^ *+' conftest.er1 >conftest.err
16386 cat conftest.err >&5
16387 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16388 (exit $ac_status); } && {
16389 test -z "$ac_c_werror_flag" ||
16390 test ! -s conftest.err
16391 } && test -s conftest.$ac_objext; then
16392 ac_header_compiler=yes
16394 $as_echo "$as_me: failed program was:" >&5
16395 sed 's/^/| /' conftest.$ac_ext >&5
16397 ac_header_compiler=no
16400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16401 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16402 $as_echo "$ac_header_compiler" >&6; }
16404 # Is the header present?
16405 { $as_echo "$as_me:$LINENO: checking dl.h presence" >&5
16406 $as_echo_n "checking dl.h presence... " >&6; }
16407 cat >conftest.$ac_ext <<_ACEOF
16410 cat confdefs.h >>conftest.$ac_ext
16411 cat >>conftest.$ac_ext <<_ACEOF
16412 /* end confdefs.h. */
16415 if { (ac_try="$ac_cpp conftest.$ac_ext"
16416 case "(($ac_try" in
16417 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16418 *) ac_try_echo
=$ac_try;;
16420 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16421 $as_echo "$ac_try_echo") >&5
16422 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16424 grep -v '^ *+' conftest.er1
>conftest.err
16426 cat conftest.err
>&5
16427 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16428 (exit $ac_status); } >/dev
/null
&& {
16429 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16430 test ! -s conftest.err
16432 ac_header_preproc
=yes
16434 $as_echo "$as_me: failed program was:" >&5
16435 sed 's/^/| /' conftest.
$ac_ext >&5
16437 ac_header_preproc
=no
16440 rm -f conftest.err conftest.
$ac_ext
16441 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16442 $as_echo "$ac_header_preproc" >&6; }
16444 # So? What about this header?
16445 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16447 { $as_echo "$as_me:$LINENO: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&5
16448 $as_echo "$as_me: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16449 { $as_echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the compiler's result" >&5
16450 $as_echo "$as_me: WARNING: dl.h: proceeding with the compiler's result" >&2;}
16451 ac_header_preproc
=yes
16454 { $as_echo "$as_me:$LINENO: WARNING: dl.h: present but cannot be compiled" >&5
16455 $as_echo "$as_me: WARNING: dl.h: present but cannot be compiled" >&2;}
16456 { $as_echo "$as_me:$LINENO: WARNING: dl.h: check for missing prerequisite headers?" >&5
16457 $as_echo "$as_me: WARNING: dl.h: check for missing prerequisite headers?" >&2;}
16458 { $as_echo "$as_me:$LINENO: WARNING: dl.h: see the Autoconf documentation" >&5
16459 $as_echo "$as_me: WARNING: dl.h: see the Autoconf documentation" >&2;}
16460 { $as_echo "$as_me:$LINENO: WARNING: dl.h: section \"Present But Cannot Be Compiled\"" >&5
16461 $as_echo "$as_me: WARNING: dl.h: section \"Present But Cannot Be Compiled\"" >&2;}
16462 { $as_echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the preprocessor's result" >&5
16463 $as_echo "$as_me: WARNING: dl.h: proceeding with the preprocessor's result" >&2;}
16464 { $as_echo "$as_me:$LINENO: WARNING: dl.h: in the future, the compiler will take precedence" >&5
16465 $as_echo "$as_me: WARNING: dl.h: in the future, the compiler will take precedence" >&2;}
16469 { $as_echo "$as_me:$LINENO: checking for dl.h" >&5
16470 $as_echo_n "checking for dl.h... " >&6; }
16471 if test "${ac_cv_header_dl_h+set}" = set; then
16472 $as_echo_n "(cached) " >&6
16474 ac_cv_header_dl_h
=$ac_header_preproc
16476 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5
16477 $as_echo "$ac_cv_header_dl_h" >&6; }
16480 if test $ac_cv_header_dl_h = yes; then
16488 if test x
${DLL} = xdlfcn.h
; then
16490 cat >>confdefs.h
<<\_ACEOF
16491 #define HAVE_DLFCN_H 1
16494 { $as_echo "$as_me:$LINENO: checking for dlopen()" >&5
16495 $as_echo_n "checking for dlopen()... " >&6; }
16496 cat >conftest.
$ac_ext <<_ACEOF
16499 cat confdefs.h
>>conftest.
$ac_ext
16500 cat >>conftest.
$ac_ext <<_ACEOF
16501 /* end confdefs.h. */
16507 extern void* dlopen();
16514 rm -f conftest.
$ac_objext conftest
$ac_exeext
16515 if { (ac_try
="$ac_link"
16516 case "(($ac_try" in
16517 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16518 *) ac_try_echo=$ac_try;;
16520 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16521 $as_echo "$ac_try_echo") >&5
16522 (eval "$ac_link") 2>conftest.er1
16524 grep -v '^ *+' conftest.er1 >conftest.err
16526 cat conftest.err >&5
16527 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16528 (exit $ac_status); } && {
16529 test -z "$ac_c_werror_flag" ||
16530 test ! -s conftest.err
16531 } && test -s conftest$ac_exeext && {
16532 test "$cross_compiling" = yes ||
16533 $as_test_x conftest$ac_exeext
16535 { $as_echo "$as_me:$LINENO: result: yes" >&5
16536 $as_echo "yes" >&6; };
16538 cat >>confdefs.h <<\_ACEOF
16539 #define HAVE_DLOPEN 1
16543 $as_echo "$as_me: failed program was:" >&5
16544 sed 's/^/| /' conftest.$ac_ext >&5
16546 { $as_echo "$as_me:$LINENO: result: no" >&5
16547 $as_echo "no" >&6; };
16548 { $as_echo "$as_me:$LINENO: checking for dlopen() in -ldl" >&5
16549 $as_echo_n "checking for dlopen() in -ldl... " >&6; }
16552 cat >conftest.$ac_ext <<_ACEOF
16555 cat confdefs.h >>conftest.$ac_ext
16556 cat >>conftest.$ac_ext <<_ACEOF
16557 /* end confdefs.h. */
16563 extern void* dlopen();
16570 rm -f conftest.$ac_objext conftest$ac_exeext
16571 if { (ac_try="$ac_link"
16572 case "(($ac_try" in
16573 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16574 *) ac_try_echo
=$ac_try;;
16576 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16577 $as_echo "$ac_try_echo") >&5
16578 (eval "$ac_link") 2>conftest.er1
16580 grep -v '^ *+' conftest.er1
>conftest.err
16582 cat conftest.err
>&5
16583 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16584 (exit $ac_status); } && {
16585 test -z "$ac_c_werror_flag" ||
16586 test ! -s conftest.err
16587 } && test -s conftest
$ac_exeext && {
16588 test "$cross_compiling" = yes ||
16589 $as_test_x conftest
$ac_exeext
16591 { $as_echo "$as_me:$LINENO: result: yes" >&5
16592 $as_echo "yes" >&6; };
16594 cat >>confdefs.h
<<\_ACEOF
16595 #define HAVE_DLOPEN 1
16599 $as_echo "$as_me: failed program was:" >&5
16600 sed 's/^/| /' conftest.
$ac_ext >&5
16602 { $as_echo "$as_me:$LINENO: result: no" >&5
16603 $as_echo "no" >&6; };
16607 rm -rf conftest.dSYM
16608 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16609 conftest
$ac_exeext conftest.
$ac_ext
16612 rm -rf conftest.dSYM
16613 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16614 conftest
$ac_exeext conftest.
$ac_ext
16615 { $as_echo "$as_me:$LINENO: checking for dlsym()" >&5
16616 $as_echo_n "checking for dlsym()... " >&6; }
16617 cat >conftest.
$ac_ext <<_ACEOF
16620 cat confdefs.h
>>conftest.
$ac_ext
16621 cat >>conftest.
$ac_ext <<_ACEOF
16622 /* end confdefs.h. */
16628 extern void* dlsym();
16635 rm -f conftest.
$ac_objext conftest
$ac_exeext
16636 if { (ac_try
="$ac_link"
16637 case "(($ac_try" in
16638 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16639 *) ac_try_echo=$ac_try;;
16641 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16642 $as_echo "$ac_try_echo") >&5
16643 (eval "$ac_link") 2>conftest.er1
16645 grep -v '^ *+' conftest.er1 >conftest.err
16647 cat conftest.err >&5
16648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16649 (exit $ac_status); } && {
16650 test -z "$ac_c_werror_flag" ||
16651 test ! -s conftest.err
16652 } && test -s conftest$ac_exeext && {
16653 test "$cross_compiling" = yes ||
16654 $as_test_x conftest$ac_exeext
16656 { $as_echo "$as_me:$LINENO: result: yes" >&5
16657 $as_echo "yes" >&6; };
16659 cat >>confdefs.h <<\_ACEOF
16660 #define HAVE_DLSYM 1
16664 $as_echo "$as_me: failed program was:" >&5
16665 sed 's/^/| /' conftest.$ac_ext >&5
16667 { $as_echo "$as_me:$LINENO: result: no" >&5
16668 $as_echo "no" >&6; };
16669 { $as_echo "$as_me:$LINENO: checking for dlsym() in -ldl" >&5
16670 $as_echo_n "checking for dlsym() in -ldl... " >&6; }
16673 cat >conftest.$ac_ext <<_ACEOF
16676 cat confdefs.h >>conftest.$ac_ext
16677 cat >>conftest.$ac_ext <<_ACEOF
16678 /* end confdefs.h. */
16684 extern void* dlsym();
16691 rm -f conftest.$ac_objext conftest$ac_exeext
16692 if { (ac_try="$ac_link"
16693 case "(($ac_try" in
16694 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16695 *) ac_try_echo
=$ac_try;;
16697 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16698 $as_echo "$ac_try_echo") >&5
16699 (eval "$ac_link") 2>conftest.er1
16701 grep -v '^ *+' conftest.er1
>conftest.err
16703 cat conftest.err
>&5
16704 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16705 (exit $ac_status); } && {
16706 test -z "$ac_c_werror_flag" ||
16707 test ! -s conftest.err
16708 } && test -s conftest
$ac_exeext && {
16709 test "$cross_compiling" = yes ||
16710 $as_test_x conftest
$ac_exeext
16712 { $as_echo "$as_me:$LINENO: result: yes" >&5
16713 $as_echo "yes" >&6; };
16715 cat >>confdefs.h
<<\_ACEOF
16716 #define HAVE_DLSYM 1
16720 $as_echo "$as_me: failed program was:" >&5
16721 sed 's/^/| /' conftest.
$ac_ext >&5
16723 { $as_echo "$as_me:$LINENO: result: no" >&5
16724 $as_echo "no" >&6; };
16728 rm -rf conftest.dSYM
16729 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16730 conftest
$ac_exeext conftest.
$ac_ext
16733 rm -rf conftest.dSYM
16734 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16735 conftest
$ac_exeext conftest.
$ac_ext
16736 elif test x
${DLL} = xdl.h
; then
16738 cat >>confdefs.h
<<\_ACEOF
16739 #define HAVE_DL_H 1
16742 { $as_echo "$as_me:$LINENO: checking for shl_load()" >&5
16743 $as_echo_n "checking for shl_load()... " >&6; }
16744 cat >conftest.
$ac_ext <<_ACEOF
16747 cat confdefs.h
>>conftest.
$ac_ext
16748 cat >>conftest.
$ac_ext <<_ACEOF
16749 /* end confdefs.h. */
16755 extern void* shl_load();
16762 rm -f conftest.
$ac_objext conftest
$ac_exeext
16763 if { (ac_try
="$ac_link"
16764 case "(($ac_try" in
16765 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16766 *) ac_try_echo=$ac_try;;
16768 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16769 $as_echo "$ac_try_echo") >&5
16770 (eval "$ac_link") 2>conftest.er1
16772 grep -v '^ *+' conftest.er1 >conftest.err
16774 cat conftest.err >&5
16775 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16776 (exit $ac_status); } && {
16777 test -z "$ac_c_werror_flag" ||
16778 test ! -s conftest.err
16779 } && test -s conftest$ac_exeext && {
16780 test "$cross_compiling" = yes ||
16781 $as_test_x conftest$ac_exeext
16783 { $as_echo "$as_me:$LINENO: result: yes" >&5
16784 $as_echo "yes" >&6; };
16786 cat >>confdefs.h <<\_ACEOF
16787 #define HAVE_SHL_LOAD 1
16791 $as_echo "$as_me: failed program was:" >&5
16792 sed 's/^/| /' conftest.$ac_ext >&5
16794 { $as_echo "$as_me:$LINENO: result: no" >&5
16795 $as_echo "no" >&6; };
16796 { $as_echo "$as_me:$LINENO: checking for shl_load() in -ldld" >&5
16797 $as_echo_n "checking for shl_load() in -ldld... " >&6; }
16800 cat >conftest.$ac_ext <<_ACEOF
16803 cat confdefs.h >>conftest.$ac_ext
16804 cat >>conftest.$ac_ext <<_ACEOF
16805 /* end confdefs.h. */
16811 extern void* shl_load();
16818 rm -f conftest.$ac_objext conftest$ac_exeext
16819 if { (ac_try="$ac_link"
16820 case "(($ac_try" in
16821 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16822 *) ac_try_echo
=$ac_try;;
16824 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16825 $as_echo "$ac_try_echo") >&5
16826 (eval "$ac_link") 2>conftest.er1
16828 grep -v '^ *+' conftest.er1
>conftest.err
16830 cat conftest.err
>&5
16831 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16832 (exit $ac_status); } && {
16833 test -z "$ac_c_werror_flag" ||
16834 test ! -s conftest.err
16835 } && test -s conftest
$ac_exeext && {
16836 test "$cross_compiling" = yes ||
16837 $as_test_x conftest
$ac_exeext
16839 { $as_echo "$as_me:$LINENO: result: yes" >&5
16840 $as_echo "yes" >&6; };
16842 cat >>confdefs.h
<<\_ACEOF
16843 #define HAVE_SHL_LOAD 1
16847 $as_echo "$as_me: failed program was:" >&5
16848 sed 's/^/| /' conftest.
$ac_ext >&5
16850 { $as_echo "$as_me:$LINENO: result: no" >&5
16851 $as_echo "no" >&6; };
16855 rm -rf conftest.dSYM
16856 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16857 conftest
$ac_exeext conftest.
$ac_ext
16860 rm -rf conftest.dSYM
16861 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16862 conftest
$ac_exeext conftest.
$ac_ext
16865 for ac_header
in setjmp.h
16867 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16868 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16869 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16870 $as_echo_n "checking for $ac_header... " >&6; }
16871 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16872 $as_echo_n "(cached) " >&6
16874 ac_res
=`eval 'as_val=${'$as_ac_Header'}
16875 $as_echo "$as_val"'`
16876 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16877 $as_echo "$ac_res" >&6; }
16879 # Is the header compilable?
16880 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16881 $as_echo_n "checking $ac_header usability... " >&6; }
16882 cat >conftest.
$ac_ext <<_ACEOF
16885 cat confdefs.h
>>conftest.
$ac_ext
16886 cat >>conftest.
$ac_ext <<_ACEOF
16887 /* end confdefs.h. */
16888 $ac_includes_default
16889 #include <$ac_header>
16891 rm -f conftest.
$ac_objext
16892 if { (ac_try
="$ac_compile"
16893 case "(($ac_try" in
16894 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16895 *) ac_try_echo=$ac_try;;
16897 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16898 $as_echo "$ac_try_echo") >&5
16899 (eval "$ac_compile") 2>conftest.er1
16901 grep -v '^ *+' conftest.er1 >conftest.err
16903 cat conftest.err >&5
16904 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16905 (exit $ac_status); } && {
16906 test -z "$ac_c_werror_flag" ||
16907 test ! -s conftest.err
16908 } && test -s conftest.$ac_objext; then
16909 ac_header_compiler=yes
16911 $as_echo "$as_me: failed program was:" >&5
16912 sed 's/^/| /' conftest.$ac_ext >&5
16914 ac_header_compiler=no
16917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16918 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16919 $as_echo "$ac_header_compiler" >&6; }
16921 # Is the header present?
16922 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16923 $as_echo_n "checking $ac_header presence... " >&6; }
16924 cat >conftest.$ac_ext <<_ACEOF
16927 cat confdefs.h >>conftest.$ac_ext
16928 cat >>conftest.$ac_ext <<_ACEOF
16929 /* end confdefs.h. */
16930 #include <$ac_header>
16932 if { (ac_try="$ac_cpp conftest.$ac_ext"
16933 case "(($ac_try" in
16934 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16935 *) ac_try_echo
=$ac_try;;
16937 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16938 $as_echo "$ac_try_echo") >&5
16939 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16941 grep -v '^ *+' conftest.er1
>conftest.err
16943 cat conftest.err
>&5
16944 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16945 (exit $ac_status); } >/dev
/null
&& {
16946 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16947 test ! -s conftest.err
16949 ac_header_preproc
=yes
16951 $as_echo "$as_me: failed program was:" >&5
16952 sed 's/^/| /' conftest.
$ac_ext >&5
16954 ac_header_preproc
=no
16957 rm -f conftest.err conftest.
$ac_ext
16958 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16959 $as_echo "$ac_header_preproc" >&6; }
16961 # So? What about this header?
16962 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16964 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16965 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16966 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16967 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16968 ac_header_preproc
=yes
16971 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16972 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16973 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16974 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16975 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16976 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16977 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16978 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16979 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16980 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16981 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16982 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16986 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16987 $as_echo_n "checking for $ac_header... " >&6; }
16988 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16989 $as_echo_n "(cached) " >&6
16991 eval "$as_ac_Header=\$ac_header_preproc"
16993 ac_res
=`eval 'as_val=${'$as_ac_Header'}
16994 $as_echo "$as_val"'`
16995 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16996 $as_echo "$ac_res" >&6; }
16999 if test `eval 'as_val=${'$as_ac_Header'}
17000 $as_echo "$as_val"'` = yes; then
17001 cat >>confdefs.h
<<_ACEOF
17002 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17010 if test "x$MACOSX" = "xyes" -a -n "$PERL"; then
17011 if echo $LIBS |
grep -e '-ldl' >/dev
/null
; then
17012 LIBS
=`echo $LIBS | sed s/-ldl//`
17013 PERL_LIBS
="$PERL_LIBS -ldl"
17017 if test "x$MACOSX" = "xyes" && test "x$CARBON" = "xyes" \
17018 && test "x$GUITYPE" != "xCARBONGUI"; then
17019 { $as_echo "$as_me:$LINENO: checking whether we need -framework Carbon" >&5
17020 $as_echo_n "checking whether we need -framework Carbon... " >&6; }
17021 if test "x$enable_multibyte" = "xyes" ||
test "x$features" = "xbig" \
17022 ||
test "x$features" = "xhuge"; then
17023 LIBS
="$LIBS -framework Carbon"
17024 { $as_echo "$as_me:$LINENO: result: yes" >&5
17025 $as_echo "yes" >&6; }
17027 { $as_echo "$as_me:$LINENO: result: no" >&5
17028 $as_echo "no" >&6; }
17031 if test "x$MACARCH" = "xboth"; then
17032 LDFLAGS
="$LDFLAGS -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc"
17035 DEPEND_CFLAGS_FILTER
=
17036 if test "$GCC" = yes; then
17037 { $as_echo "$as_me:$LINENO: checking for GCC 3 or later" >&5
17038 $as_echo_n "checking for GCC 3 or later... " >&6; }
17039 gccmajor
=`echo "$gccversion" | sed -e 's/^\([1-9]\)\..*$/\1/g'`
17040 if test "$gccmajor" -gt "2"; then
17041 DEPEND_CFLAGS_FILTER
="| sed 's+-I */+-isystem /+g'"
17042 { $as_echo "$as_me:$LINENO: result: yes" >&5
17043 $as_echo "yes" >&6; }
17045 { $as_echo "$as_me:$LINENO: result: no" >&5
17046 $as_echo "no" >&6; }
17048 { $as_echo "$as_me:$LINENO: checking whether we need -D_FORTIFY_SOURCE=1" >&5
17049 $as_echo_n "checking whether we need -D_FORTIFY_SOURCE=1... " >&6; }
17050 if test "$gccmajor" -gt "3"; then
17051 CFLAGS
="$CFLAGS -D_FORTIFY_SOURCE=1"
17052 { $as_echo "$as_me:$LINENO: result: yes" >&5
17053 $as_echo "yes" >&6; }
17055 { $as_echo "$as_me:$LINENO: result: no" >&5
17056 $as_echo "no" >&6; }
17061 ac_config_files
="$ac_config_files auto/config.mk:config.mk.in"
17063 cat >confcache
<<\_ACEOF
17064 # This file is a shell script that caches the results of configure
17065 # tests run on this system so they can be shared between configure
17066 # scripts and configure runs, see configure's option --config-cache.
17067 # It is not useful on other systems. If it contains results you don't
17068 # want to keep, you may remove or edit it.
17070 # config.status only pays attention to the cache file if you give it
17071 # the --recheck option to rerun configure.
17073 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17074 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17075 # following values.
17079 # The following way of writing the cache mishandles newlines in values,
17080 # but we know of no workaround that is simple, portable, and efficient.
17081 # So, we kill variables containing newlines.
17082 # Ultrix sh set writes to stderr and can't be redirected directly,
17083 # and sets the high bit in the cache file unless we assign to the vars.
17085 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17086 eval ac_val
=\$
$ac_var
17090 *_cv_
*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
17091 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
17094 _ | IFS | as_nl
) ;; #(
17095 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
17096 *) $as_unset $ac_var ;;
17102 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17103 *${as_nl}ac_space
=\
*)
17104 # `set' does not quote correctly, so add quotes (double-quote
17105 # substitution turns \\\\ into \\, and sed turns \\ into \).
17108 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17111 # `set' quotes correctly as required by POSIX, so do not add quotes.
17112 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17121 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17123 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17125 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
17126 if test -w "$cache_file"; then
17127 test "x$cache_file" != "x/dev/null" &&
17128 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
17129 $as_echo "$as_me: updating cache $cache_file" >&6;}
17130 cat confcache
>$cache_file
17132 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
17133 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17138 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
17139 # Let make expand exec_prefix.
17140 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
17142 DEFS
=-DHAVE_CONFIG_H
17146 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
17147 # 1. Remove the extension, and $U if already installed.
17148 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
17149 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
17150 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17151 # will be set to the directory where LIBOBJS objects are built.
17152 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17153 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
17155 LIBOBJS
=$ac_libobjs
17157 LTLIBOBJS
=$ac_ltlibobjs
17161 : ${CONFIG_STATUS=./config.status}
17163 ac_clean_files_save
=$ac_clean_files
17164 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
17165 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17166 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17167 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17169 # Generated by $as_me.
17170 # Run this file to recreate the current configuration.
17171 # Compiler output produced by configure, useful for debugging
17172 # configure, is in config.log if it exists.
17175 ac_cs_recheck=false
17177 SHELL=\${CONFIG_SHELL-$SHELL}
17180 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17181 ## --------------------- ##
17182 ## M4sh Initialization. ##
17183 ## --------------------- ##
17185 # Be more Bourne compatible
17186 DUALCASE
=1; export DUALCASE
# for MKS sh
17187 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
17190 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17191 # is contrary to our usage. Disable this feature.
17192 alias -g '${1+"$@"}'='"$@"'
17193 setopt NO_GLOB_SUBST
17195 case `(set -o) 2>/dev/null` in
17196 *posix
*) set -o posix
;;
17205 # Avoid depending upon Character Ranges.
17206 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
17207 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17208 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
17209 as_cr_digits
='0123456789'
17210 as_cr_alnum
=$as_cr_Letters$as_cr_digits
17215 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17216 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17217 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17218 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17219 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17220 as_echo='printf %s
\n'
17221 as_echo_n='printf %s
'
17223 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17224 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
17225 as_echo_n='/usr
/ucb
/echo -n'
17227 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17228 as_echo_n_body='eval
17232 expr "X$arg" : "X\\(.*\\)$as_nl";
17233 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17235 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
17237 export as_echo_n_body
17238 as_echo_n='sh
-c $as_echo_n_body as_echo
'
17240 export as_echo_body
17241 as_echo='sh
-c $as_echo_body as_echo
'
17244 # The user is always right.
17245 if test "${PATH_SEPARATOR+set}" != set; then
17247 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17248 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17253 # Support unset when possible.
17254 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
17262 # We need space, tab and new line, in precisely that order. Quoting is
17263 # there to prevent editors from complaining about space-tab.
17264 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17265 # splitting by setting IFS to empty value.)
17268 # Find who we are. Look in the path if we contain no directory separator.
17270 *[\\/]* ) as_myself=$0 ;;
17271 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17272 for as_dir in $PATH
17275 test -z "$as_dir" && as_dir=.
17276 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17282 # We did not find ourselves, most probably we were run as `sh COMMAND'
17283 # in which case we are not to be found in the path.
17284 if test "x$as_myself" = x
; then
17287 if test ! -f "$as_myself"; then
17288 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17289 { (exit 1); exit 1; }
17292 # Work around bugs in pre-3.0 UWIN ksh.
17293 for as_var
in ENV MAIL MAILPATH
17294 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
17306 # Required to use basename.
17307 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
17308 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
17314 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17315 as_basename
=basename
17321 # Name of the executable.
17322 as_me
=`$as_basename -- "$0" ||
17323 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17324 X"$0" : 'X\(//\)$' \| \
17325 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17327 sed '/^.*\/\([^/][^/]*\)\/*$/{
17346 as_lineno_1
=$LINENO
17347 as_lineno_2
=$LINENO
17348 test "x$as_lineno_1" != "x$as_lineno_2" &&
17349 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
17351 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17352 # uniformly replaced by the line number. The first 'sed' inserts a
17353 # line-number line after each line using $LINENO; the second 'sed'
17354 # does the real work. The second script uses 'N' to pair each
17355 # line-number line with the line containing $LINENO, and appends
17356 # trailing '-' during substitution so that $LINENO is not a special
17357 # case at line end.
17358 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17359 # scripts with optimization help from Paolo Bonzini. Blame Lee
17360 # E. McMahon (1931-1989) for sed's syntax. :-)
17372 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
17375 ' >$as_me.lineno
&&
17376 chmod +x
"$as_me.lineno" ||
17377 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
17378 { (exit 1); exit 1; }; }
17380 # Don't try to exec as it changes $[0], causing all sort of problems
17381 # (the dirname of $[0] is not the place where we might find the
17382 # original and so on. Autoconf is especially sensitive to this).
17383 .
"./$as_me.lineno"
17384 # Exit status is that of the last command.
17389 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
17395 ECHO_C
= ECHO_N
= ECHO_T
=
17396 case `echo -n x` in
17398 case `echo 'x\c'` in
17399 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
17405 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
17406 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
17412 rm -f conf$$ conf$$.exe conf$$.
file
17413 if test -d conf$$.dir
; then
17414 rm -f conf$$.dir
/conf$$.
file
17417 mkdir conf$$.dir
2>/dev
/null
17419 if (echo >conf$$.
file) 2>/dev
/null
; then
17420 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
17422 # ... but there are two gotchas:
17423 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17424 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17425 # In both cases, we have to default to `cp -p'.
17426 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
17428 elif ln conf$$.
file conf$$
2>/dev
/null
; then
17436 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
17437 rmdir conf$$.dir
2>/dev
/null
17439 if mkdir
-p .
2>/dev
/null
; then
17442 test -d .
/-p && rmdir .
/-p
17446 if test -x / >/dev
/null
2>&1; then
17447 as_test_x
='test -x'
17449 if ls -dL / >/dev
/null
2>&1; then
17456 if test -d "$1"; then
17462 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
17463 ???[sx]*):;;*)false;;esac;fi
17467 as_executable_p
=$as_test_x
17469 # Sed expression to map a string onto a valid CPP name.
17470 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17472 # Sed expression to map a string onto a valid variable name.
17473 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17478 # Save the log message, to keep $[0] and so on meaningful, and to
17479 # report actual input values of CONFIG_FILES etc. instead of their
17480 # values after options handling.
17482 This file was extended by $as_me, which was
17483 generated by GNU Autoconf 2.62. Invocation command line was
17485 CONFIG_FILES = $CONFIG_FILES
17486 CONFIG_HEADERS = $CONFIG_HEADERS
17487 CONFIG_LINKS = $CONFIG_LINKS
17488 CONFIG_COMMANDS = $CONFIG_COMMANDS
17491 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17496 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17497 # Files that config.status was made for.
17498 config_files="$ac_config_files"
17499 config_headers="$ac_config_headers"
17503 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17505 \`$as_me' instantiates files from templates according to the
17506 current configuration.
17508 Usage: $0 [OPTIONS] [FILE]...
17510 -h, --help print this help, then exit
17511 -V, --version print version number and configuration settings, then exit
17512 -q, --quiet do not print progress messages
17513 -d, --debug don't remove temporary files
17514 --recheck update $as_me by reconfiguring in the same conditions
17515 --file=FILE[:TEMPLATE]
17516 instantiate the configuration file FILE
17517 --header=FILE[:TEMPLATE]
17518 instantiate the configuration header FILE
17520 Configuration files:
17523 Configuration headers:
17526 Report bugs to <bug-autoconf@gnu.org>."
17529 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17532 configured by $0, generated by GNU Autoconf 2.62,
17533 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
17535 Copyright (C) 2008 Free Software Foundation, Inc.
17536 This config.status script is free software; the Free Software Foundation
17537 gives unlimited permission to copy, distribute and modify it."
17542 test -n "\$AWK" || AWK=awk
17545 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17546 # The default lists apply if the user does not specify any file.
17552 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
17553 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
17564 # Handling of the options.
17565 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
17567 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
17568 $as_echo "$ac_cs_version"; exit ;;
17569 --debug |
--debu |
--deb |
--de |
--d |
-d )
17571 --file |
--fil |
--fi |
--f )
17574 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17576 CONFIG_FILES
="$CONFIG_FILES '$ac_optarg'"
17577 ac_need_defaults
=false
;;
17578 --header |
--heade |
--head |
--hea )
17581 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17583 CONFIG_HEADERS
="$CONFIG_HEADERS '$ac_optarg'"
17584 ac_need_defaults
=false
;;
17586 # Conflict between --help and --header
17587 { $as_echo "$as_me: error: ambiguous option: $1
17588 Try \`$0 --help' for more information." >&2
17589 { (exit 1); exit 1; }; };;
17590 --help |
--hel |
-h )
17591 $as_echo "$ac_cs_usage"; exit ;;
17592 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
17593 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
17596 # This is an error.
17597 -*) { $as_echo "$as_me: error: unrecognized option: $1
17598 Try \`$0 --help' for more information." >&2
17599 { (exit 1); exit 1; }; } ;;
17601 *) ac_config_targets
="$ac_config_targets $1"
17602 ac_need_defaults
=false
;;
17608 ac_configure_extra_args
=
17610 if $ac_cs_silent; then
17612 ac_configure_extra_args
="$ac_configure_extra_args --silent"
17616 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17617 if \$ac_cs_recheck; then
17618 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17620 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17621 CONFIG_SHELL='$SHELL'
17622 export CONFIG_SHELL
17627 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17628 exec 5>>auto
/config.log
17631 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17632 ## Running $as_me. ##
17638 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17641 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17643 # Handling of arguments.
17644 for ac_config_target
in $ac_config_targets
17646 case $ac_config_target in
17647 "auto/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS auto/config.h:config.h.in" ;;
17648 "auto/config.mk") CONFIG_FILES
="$CONFIG_FILES auto/config.mk:config.mk.in" ;;
17650 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17651 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17652 { (exit 1); exit 1; }; };;
17657 # If the user did not use the arguments to specify the items to instantiate,
17658 # then the envvar interface is used. Set only those that are not.
17659 # We use the long form for the default assignment because of an extremely
17660 # bizarre bug on SunOS 4.1.3.
17661 if $ac_need_defaults; then
17662 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
17663 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
17666 # Have a temporary directory for convenience. Make it in the build tree
17667 # simply because there is no reason against having it here, and in addition,
17668 # creating and moving files from /tmp can sometimes cause problems.
17669 # Hook for its removal unless debugging.
17670 # Note that there is a small window in which the directory will not be cleaned:
17671 # after its creation but before its name has been assigned to `$tmp'.
17675 trap 'exit_status=$?
17676 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17678 trap '{ (exit 1); exit 1; }' 1 2 13 15
17680 # Create a (secure) tmp directory for tmp files.
17683 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17684 test -n "$tmp" && test -d "$tmp"
17687 tmp
=.
/conf$$
-$RANDOM
17688 (umask 077 && mkdir
"$tmp")
17691 $as_echo "$as_me: cannot create a temporary directory in ." >&2
17692 { (exit 1); exit 1; }
17695 # Set up the scripts for CONFIG_FILES section.
17696 # No need to generate them if there are no CONFIG_FILES.
17697 # This happens for instance with `./config.status config.h'.
17698 if test -n "$CONFIG_FILES"; then
17702 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17703 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17706 ac_cs_awk_cr
=$ac_cr
17709 echo 'BEGIN {' >"$tmp/subs1.awk" &&
17714 echo "cat >conf$$subs.awk <<_ACEOF" &&
17715 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17717 } >conf$$subs.sh ||
17718 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
17719 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
17720 { (exit 1); exit 1; }; }
17721 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
17723 for ac_last_try in false false false false false :; do
17724 . ./conf$$subs.sh ||
17725 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
17726 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
17727 { (exit 1); exit 1; }; }
17729 if test `sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X` = $ac_delim_num; then
17731 elif $ac_last_try; then
17732 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
17733 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
17734 { (exit 1); exit 1; }; }
17736 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
17739 rm -f conf$$subs.sh
17741 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17742 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
17746 s/^/S["/; s
/!.
*/"]=/
17756 s/\(.\{148\}\).*/\1/
17758 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
17763 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
17770 s/\(.\{148\}\).*/\1/
17772 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
17776 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
17781 ' <conf$$subs.awk | sed '
17786 ' >>$CONFIG_STATUS || ac_write_fail=1
17787 rm -f conf$$subs.awk
17788 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17790 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
17791 for (key in S) S_is_set[key] = 1
17797 nfields = split(line, field, "@
")
17799 len = length(field[1])
17800 for (i = 2; i < nfields; i++) {
17802 keylen = length(key)
17803 if (S_is_set[key]) {
17805 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17806 len += length(value) + length(field[++i])
17817 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17818 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17819 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
17822 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
17823 || { { $as_echo "$as_me:$LINENO: error
: could not setup config files machinery
" >&5
17824 $as_echo "$as_me: error
: could not setup config files machinery
" >&2;}
17825 { (exit 1); exit 1; }; }
17828 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17829 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
17830 # trailing colons and then remove the whole line if VPATH becomes empty
17831 # (actually we leave an empty line to preserve line numbers).
17832 if test "x
$srcdir" = x.; then
17833 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17834 s/:*\$(srcdir):*/:/
17835 s/:*\${srcdir}:*/:/
17837 s/^\([^=]*=[ ]*\):*/\1/
17843 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17844 fi # test -n "$CONFIG_FILES"
17846 # Set up the scripts for CONFIG_HEADERS section.
17847 # No need to generate them if there are no CONFIG_HEADERS.
17848 # This happens for instance with `./config.status Makefile'.
17849 if test -n "$CONFIG_HEADERS"; then
17850 cat >"$tmp/defines.
awk" <<\_ACAWK ||
17854 # Transform confdefs.h into an awk script `defines.awk', embedded as
17855 # here-document in config.status, that substitutes the proper values into
17856 # config.h.in to produce config.h.
17858 # Create a delimiter string that does not exist in confdefs.h, to ease
17859 # handling of long lines.
17861 for ac_last_try in false false :; do
17862 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
17863 if test -z "$ac_t"; then
17865 elif $ac_last_try; then
17866 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_HEADERS" >&5
17867 $as_echo "$as_me: error
: could not
make $CONFIG_HEADERS" >&2;}
17868 { (exit 1); exit 1; }; }
17870 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
17874 # For the awk script, D is an array of macro values keyed by name,
17875 # likewise P contains macro parameters if any. Preserve backslash
17876 # newline sequences.
17878 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17880 s/.\{148\}/&'"$ac_delim"'/g
17883 s/^[ ]*#[ ]*define[ ][ ]*/ /
17890 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
17892 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
17896 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
17897 D["\
1"]=" \
3\\\\\\n
"\\/p
17899 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
17904 s/.\{148\}/&'"$ac_delim"'/g
17909 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
17912 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
17914 ' <confdefs.h | sed '
17915 s/'"$ac_delim"'/"\\\
17916 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17918 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17919 for (key in D) D_is_set[key] = 1
17922 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17924 split(line, arg, " ")
17925 if (arg[1] == "#") {
17929 defundef
= substr
(arg
[1], 2)
17932 split(mac1
, mac2
, "(") #)
17934 if (D_is_set
[macro
]) {
17935 # Preserve the white space surrounding the "#".
17936 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
17937 print prefix
"define", macro P
[macro
] D
[macro
]
17940 # Replace #undef with comments. This is necessary, for example,
17941 # in the case of _POSIX_SOURCE, which is predefined and required
17942 # on some systems where configure will not decide to define it.
17943 if (defundef
== "undef") {
17944 print
"/*", line
, "*/"
17952 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17953 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
17954 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
17955 { (exit 1); exit 1; }; }
17956 fi # test -n "$CONFIG_HEADERS"
17959 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS "
17964 :[FHLC
]) ac_mode
=$ac_tag; continue;;
17966 case $ac_mode$ac_tag in
17968 :L
* |
:C
*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
17969 $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
17970 { (exit 1); exit 1; }; };;
17971 :[FH
]-) ac_tag
=-:-;;
17972 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
17989 -) ac_f
="$tmp/stdin";;
17990 *) # Look for the file first in the build tree, then in the source tree
17991 # (if the path is not absolute). The absolute path cannot be DOS-style,
17992 # because $ac_f cannot contain `:'.
17996 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
17998 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
17999 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
18000 { (exit 1); exit 1; }; };;
18002 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18003 ac_file_inputs
="$ac_file_inputs '$ac_f'"
18006 # Let's still pretend it is `configure' which instantiates (i.e., don't
18007 # use $as_me), people would be surprised to read:
18008 # /* config.h. Generated by config.status. */
18009 configure_input
='Generated from '`
18010 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18012 if test x
"$ac_file" != x-
; then
18013 configure_input
="$ac_file. $configure_input"
18014 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
18015 $as_echo "$as_me: creating $ac_file" >&6;}
18017 # Neutralize special characters interpreted by sed in replacement strings.
18018 case $configure_input in #(
18019 *\
&* |
*\|
* |
*\\* )
18020 ac_sed_conf_input
=`$as_echo "$configure_input" |
18021 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18022 *) ac_sed_conf_input
=$configure_input;;
18026 *:-:* |
*:-) cat >"$tmp/stdin" \
18027 ||
{ { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18028 $as_echo "$as_me: error: could not create $ac_file" >&2;}
18029 { (exit 1); exit 1; }; } ;;
18034 ac_dir
=`$as_dirname -- "$ac_file" ||
18035 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18036 X"$ac_file" : 'X\(//\)[^/]' \| \
18037 X"$ac_file" : 'X\(//\)$' \| \
18038 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18039 $as_echo X"$ac_file" |
18040 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18044 /^X\(\/\/\)[^/].*/{
18059 -*) as_dir
=.
/$as_dir;;
18061 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
18065 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18066 *) as_qdir
=$as_dir;;
18068 as_dirs
="'$as_qdir' $as_dirs"
18069 as_dir
=`$as_dirname -- "$as_dir" ||
18070 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18071 X"$as_dir" : 'X\(//\)[^/]' \| \
18072 X"$as_dir" : 'X\(//\)$' \| \
18073 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18074 $as_echo X"$as_dir" |
18075 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18079 /^X\(\/\/\)[^/].*/{
18092 test -d "$as_dir" && break
18094 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
18095 } ||
test -d "$as_dir" ||
{ { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
18096 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
18097 { (exit 1); exit 1; }; }; }
18101 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
18103 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18104 # A ".." for each directory in $ac_dir_suffix.
18105 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18106 case $ac_top_builddir_sub in
18107 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
18108 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
18111 ac_abs_top_builddir
=$ac_pwd
18112 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
18113 # for backward compatibility:
18114 ac_top_builddir
=$ac_top_build_prefix
18117 .
) # We are building in place.
18119 ac_top_srcdir
=$ac_top_builddir_sub
18120 ac_abs_top_srcdir
=$ac_pwd ;;
18121 [\\/]* | ?
:[\\/]* ) # Absolute name.
18122 ac_srcdir
=$srcdir$ac_dir_suffix;
18123 ac_top_srcdir
=$srcdir
18124 ac_abs_top_srcdir
=$srcdir ;;
18125 *) # Relative name.
18126 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
18127 ac_top_srcdir
=$ac_top_build_prefix$srcdir
18128 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
18130 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
18141 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18142 # If the template does not know about datarootdir, expand it.
18143 # FIXME: This hack should be removed a few years after 2.60.
18144 ac_datarootdir_hack
=; ac_datarootdir_seen
=
18157 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18158 *datarootdir
*) ac_datarootdir_seen
=yes;;
18159 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
18160 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18161 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18163 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18164 ac_datarootdir_hack='
18165 s&@datadir@&$datadir&g
18166 s&@docdir@&$docdir&g
18167 s&@infodir@&$infodir&g
18168 s&@localedir@&$localedir&g
18169 s&@mandir@&$mandir&g
18170 s&\\\${datarootdir}&$datarootdir&g' ;;
18174 # Neutralize VPATH when `$srcdir' = `.'.
18175 # Shell code in configure.ac might set extrasub.
18176 # FIXME: do we really want to maintain this feature?
18177 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18178 ac_sed_extra="$ac_vpsub
18181 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18183 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
18184 s|@configure_input@|
$ac_sed_conf_input|
;t t
18185 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
18186 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
18187 s
&@srcdir@
&$ac_srcdir&;t t
18188 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
18189 s
&@top_srcdir@
&$ac_top_srcdir&;t t
18190 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
18191 s
&@builddir@
&$ac_builddir&;t t
18192 s
&@abs_builddir@
&$ac_abs_builddir&;t t
18193 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
18194 $ac_datarootdir_hack
18196 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
18197 || { { $as_echo "$as_me:$LINENO: error
: could not create
$ac_file" >&5
18198 $as_echo "$as_me: error
: could not create
$ac_file" >&2;}
18199 { (exit 1); exit 1; }; }
18201 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18202 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
18203 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
18204 { $as_echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
18205 which seems to be undefined. Please make sure it is defined." >&5
18206 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
18207 which seems to be undefined. Please make sure it is defined." >&2;}
18211 -) cat "$tmp/out" && rm -f "$tmp/out";;
18212 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18214 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18215 $as_echo "$as_me: error: could not create $ac_file" >&2;}
18216 { (exit 1); exit 1; }; }
18222 if test x"$ac_file" != x-; then
18224 $as_echo "/* $configure_input */" \
18225 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18226 } >"$tmp/config.h" \
18227 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18228 $as_echo "$as_me: error: could not create $ac_file" >&2;}
18229 { (exit 1); exit 1; }; }
18230 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18231 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18232 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18235 mv "$tmp/config.h" "$ac_file" \
18236 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18237 $as_echo "$as_me: error: could not create $ac_file" >&2;}
18238 { (exit 1); exit 1; }; }
18241 $as_echo "/* $configure_input */" \
18242 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18243 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
18244 $as_echo "$as_me: error: could not create -" >&2;}
18245 { (exit 1); exit 1; }; }
18255 { (exit 0); exit 0; }
18257 chmod +x $CONFIG_STATUS
18258 ac_clean_files=$ac_clean_files_save
18260 test $ac_write_fail = 0 ||
18261 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
18262 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
18263 { (exit 1); exit 1; }; }
18266 # configure is writing to config.log, and then calls config.status.
18267 # config.status does its own redirection, appending to config.log.
18268 # Unfortunately, on DOS this fails, as config.log is still kept open
18269 # by configure, so config.status won't be able to
write to it
; its
18270 # output is simply discarded. So we exec the FD to /dev/null,
18271 # effectively closing config.log, so it can be properly (re)opened and
18272 # appended to by config.status. When coming back to configure, we
18273 # need to make the FD available again.
18274 if test "$no_create" != yes; then
18276 ac_config_status_args
=
18277 test "$silent" = yes &&
18278 ac_config_status_args
="$ac_config_status_args --quiet"
18280 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
18281 exec 5>>auto
/config.log
18282 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18283 # would make configure fail if this is the last instruction.
18284 $ac_cs_success ||
{ (exit 1); exit 1; }
18286 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
18287 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
18288 $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}